@everymatrix/loyalty-shop 0.1.15 → 0.1.19

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 (23) hide show
  1. package/components/LoyaltyPagination-ChnSUs6d.cjs +14 -0
  2. package/components/{LoyaltyPagination-5mlynRsD.js → LoyaltyPagination-D7m97E0W.js} +1973 -1943
  3. package/components/LoyaltyPagination-DzmuO9_8.cjs +14 -0
  4. package/components/{LoyaltyPagination-WMbwps-Y.js → LoyaltyPagination-o3rQCgms.js} +2011 -1982
  5. package/components/{LoyaltyPointsCard-BthOcyvZ.cjs → LoyaltyPointsCard-46BqNZEK.cjs} +3 -3
  6. package/components/{LoyaltyPointsCard-Ctxmn0pn.cjs → LoyaltyPointsCard-5kjF6xRz.cjs} +3 -3
  7. package/components/{LoyaltyPointsCard-DnyOr6RH.js → LoyaltyPointsCard-CdBEe40I.js} +64 -68
  8. package/components/{LoyaltyPointsCard-JV_Vm052.js → LoyaltyPointsCard-SZEIZzo0.js} +59 -63
  9. package/components/{LoyaltyShop-BvDigxmH.cjs → LoyaltyShop-B2lSw5jy.cjs} +3 -3
  10. package/components/{LoyaltyShop-CewjK7_m.js → LoyaltyShop-DGAZjo_P.js} +141 -149
  11. package/components/{LoyaltyShop-D78F7HNs.cjs → LoyaltyShop-DGLy6Hu5.cjs} +3 -3
  12. package/components/{LoyaltyShop-DORwVB2x.js → LoyaltyShop-_bWN39Rn.js} +135 -143
  13. package/components/{LoyaltyShopItem-qD3S4Ug2.js → LoyaltyShopItem-CtZFkxzA.js} +68 -72
  14. package/components/{LoyaltyShopItem-BDOJ0nlu.cjs → LoyaltyShopItem-DpFV9qnk.cjs} +3 -3
  15. package/components/{LoyaltyShopItem-B5HPzm1z.js → LoyaltyShopItem-DxwkafBG.js} +81 -85
  16. package/components/{LoyaltyShopItem-DETZUW3x.cjs → LoyaltyShopItem-PkfmBV5A.cjs} +3 -3
  17. package/es2015/loyalty-shop.cjs +1 -1
  18. package/es2015/loyalty-shop.js +2 -2
  19. package/esnext/loyalty-shop.cjs +1 -1
  20. package/esnext/loyalty-shop.js +2 -2
  21. package/package.json +1 -1
  22. package/components/LoyaltyPagination-D7TGgpOl.cjs +0 -16
  23. package/components/LoyaltyPagination-DoaWx3gW.cjs +0 -16
@@ -1,16 +0,0 @@
1
- var uo=Object.defineProperty,lo=Object.defineProperties;var fo=Object.getOwnPropertyDescriptors;var ki=Object.getOwnPropertySymbols;var ho=Object.prototype.hasOwnProperty,co=Object.prototype.propertyIsEnumerable;var ji=e=>{throw TypeError(e)};var Cn=(e,t,r)=>t in e?uo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,zr=(e,t)=>{for(var r in t||(t={}))ho.call(t,r)&&Cn(e,r,t[r]);if(ki)for(var r of ki(t))co.call(t,r)&&Cn(e,r,t[r]);return e},qr=(e,t)=>lo(e,fo(t));var q=(e,t,r)=>Cn(e,typeof t!="symbol"?t+"":t,r),Dn=(e,t,r)=>t.has(e)||ji("Cannot "+r);var h=(e,t,r)=>(Dn(e,t,"read from private field"),r?r.call(e):t.get(e)),$=(e,t,r)=>t.has(e)?ji("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),P=(e,t,r,n)=>(Dn(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),B=(e,t,r)=>(Dn(e,t,"access private method"),r);var et=(e,t,r)=>new Promise((n,i)=>{var s=u=>{try{a(r.next(u))}catch(l){i(l)}},o=u=>{try{a(r.throw(u))}catch(l){i(l)}},a=u=>u.done?n(u.value):Promise.resolve(u.value).then(s,o);a((r=r.apply(e,t)).next())});typeof globalThis.HTMLElement=="undefined"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const po="5";var ps,vs,ms;typeof window!="undefined"&&((ms=(vs=(ps=window.__svelte)!=null?ps:window.__svelte={}).v)!=null?ms:vs.v=new Set).add(po);const vo=1,mo=2,bs=4,_o=8,go=16,bo=1,yo=2,ys="[",xi="[!",Vi="[?",wi="]",sr={},ie=Symbol("uninitialized"),Eo="http://www.w3.org/1999/xhtml",Es=!1;var xs=Array.isArray,xo=Array.prototype.indexOf,fn=Array.prototype.includes,Tn=Array.from,hn=Object.keys,Nr=Object.defineProperty,qt=Object.getOwnPropertyDescriptor,wo=Object.getOwnPropertyDescriptors,To=Object.prototype,So=Array.prototype,ws=Object.getPrototypeOf,Xi=Object.isExtensible;const ot=()=>{};function Ts(e){for(var t=0;t<e.length;t++)e[t]()}function Ss(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const ae=2,ar=4,kr=8,As=1<<24,ke=16,Le=32,Je=64,qn=128,Ie=512,se=1024,ne=2048,Ve=4096,de=8192,Ae=16384,Dt=32768,Zn=1<<25,or=65536,cn=1<<17,Ao=1<<18,Ut=1<<19,Hs=1<<20,Ze=1<<25,Rt=65536,dn=1<<21,Zt=1<<22,_t=1<<23,Qr=Symbol("$state"),Ho=Symbol("legacy props"),Mo=Symbol(""),Kr=Symbol("attributes"),Jn=Symbol("class"),Oo=Symbol("style"),xr=Symbol("text"),jr=new class extends Error{constructor(){super(...arguments);q(this,"name","StaleReactionError");q(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};var _s;const Po=!!((_s=globalThis.document)!=null&&_s.contentType)&&globalThis.document.contentType.includes("xml"),Sn=3,Vr=8;function No(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function $o(e,t,r){throw new Error("https://svelte.dev/e/each_key_duplicate")}function Io(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Bo(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Ro(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Lo(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Co(){throw new Error("https://svelte.dev/e/hydration_failed")}function Do(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Uo(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Fo(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Go(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function ko(){console.warn("https://svelte.dev/e/derived_inert")}function An(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function jo(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let F=!1;function at(e){F=e}let L;function ye(e){if(e===null)throw An(),sr;return L=e}function Hn(){return ye(Ke(L))}function Vt(e){if(F){if(Ke(L)!==null)throw An(),sr;L=e}}function Vo(e=1){if(F){for(var t=e,r=L;t--;)r=Ke(r);L=r}}function pn(e=!0){for(var t=0,r=L;;){if(r.nodeType===Vr){var n=r.data;if(n===wi){if(t===0)return r;t-=1}else(n===ys||n===xi||n[0]==="["&&!isNaN(Number(n.slice(1))))&&(t+=1)}var i=Ke(r);e&&r.remove(),r=i}}function Ms(e){if(!e||e.nodeType!==Vr)throw An(),sr;return e.data}function Os(e){return e===this.v}function Ps(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Ns(e){return!Ps(e,this.v)}let Xo=!1,pe=null;function ur(e){pe=e}function Mn(e,t=!1,r){pe={p:pe,i:!1,c:null,e:null,s:e,x:null,r:I,l:null}}function On(e){var t=pe,r=t.e;if(r!==null){t.e=null;for(var n of r)aa(n)}return e!==void 0&&(t.x=e),t.i=!0,pe=t.p,e!=null?e:{}}function $s(){return!0}let Tt=[];function Is(){var e=Tt;Tt=[],Ts(e)}function pt(e){if(Tt.length===0&&!Mr){var t=Tt;queueMicrotask(()=>{t===Tt&&Is()})}Tt.push(e)}function Wo(){for(;Tt.length>0;)Is()}function Bs(e){var t=I;if(t===null)return R.f|=_t,e;if(!(t.f&Dt)&&!(t.f&ar))throw e;vt(e,t)}function vt(e,t){if(!(t!==null&&t.f&Ae)){for(;t!==null;){if(t.f&qn){if(!(t.f&Dt))throw e;try{t.b.error(e);return}catch(r){e=r}}t=t.parent}throw e}}const Yo=-7169;function ee(e,t){e.f=e.f&Yo|t}function Ti(e){e.f&Ie||e.deps===null?ee(e,se):ee(e,Ve)}function Rs(e){if(e!==null)for(const t of e)!(t.f&ae)||!(t.f&Rt)||(t.f^=Rt,Rs(t.deps))}function Ls(e,t,r){e.f&ne?t.add(e):e.f&Ve&&r.add(e),Rs(e.deps),ee(e,se)}function Si(e,t,r){if(e==null)return t(void 0),r&&r(void 0),ot;const n=Ci(()=>e.subscribe(t,r));return n.unsubscribe?()=>n.unsubscribe():n}const Gt=[];function zo(e,t){return{subscribe:Pn(e,t).subscribe}}function Pn(e,t=ot){let r=null;const n=new Set;function i(a){if(Ps(e,a)&&(e=a,r)){const u=!Gt.length;for(const l of n)l[1](),Gt.push(l,e);if(u){for(let l=0;l<Gt.length;l+=2)Gt[l][0](Gt[l+1]);Gt.length=0}}}function s(a){i(a(e))}function o(a,u=ot){const l=[a,u];return n.add(l),n.size===1&&(r=t(i,s)||ot),a(e),()=>{n.delete(l),n.size===0&&r&&(r(),r=null)}}return{set:i,update:s,subscribe:o}}function vr(e,t,r){const n=!Array.isArray(e),i=n?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=t.length<2;return zo(r,(o,a)=>{let u=!1;const l=[];let f=0,d=ot;const c=()=>{if(f)return;d();const v=t(n?l[0]:l,o,a);s?o(v):d=typeof v=="function"?v:ot},p=i.map((v,_)=>Si(v,m=>{l[_]=m,f&=~(1<<_),u&&c()},()=>{f|=1<<_}));return u=!0,c(),function(){Ts(p),d(),u=!1}})}function qo(e){let t;return Si(e,r=>t=r)(),t}let Qn=Symbol("unmounted");function Cs(e,t,r){var s;const n=(s=r[t])!=null?s:r[t]={store:null,source:Oi(void 0),unsubscribe:ot};if(n.store!==e&&!(Qn in r))if(n.unsubscribe(),n.store=e!=null?e:null,e==null)n.source.v=void 0,n.unsubscribe=ot;else{var i=!0;n.unsubscribe=Si(e,o=>{i?n.source.v=o:re(n.source,o)}),i=!1}return e&&Qn in r?qo(e):H(n.source)}function Ds(){const e={};function t(){sa(()=>{for(var r in e)e[r].unsubscribe();Nr(e,Qn,{enumerable:!1,value:!0})})}return[e,t]}function Nn(e){var t=R,r=I;Ce(null),Qe(null);try{return e()}finally{Ce(t),Qe(r)}}function Zo(e){let t=0,r=Lt(0),n;return()=>{$i()&&(H(r),Ii(()=>(t===0&&(n=Ci(()=>e(()=>Or(r)))),t+=1,()=>{pt(()=>{t-=1,t===0&&(n==null||n(),n=void 0,Or(r))})})))}}var Jo=or|Ut;function Qo(e,t,r,n){new Ko(e,t,r,n)}var xe,Lr,Oe,Ht,_e,Pe,he,we,tt,Mt,ct,Qt,Cr,Dr,rt,En,V,Us,Fs,Kn,Gs,ei,en,tn,ti,ri;class Ko{constructor(t,r,n,i){$(this,V);q(this,"parent");q(this,"is_pending",!1);q(this,"transform_error");$(this,xe);$(this,Lr,F?L:null);$(this,Oe);$(this,Ht);$(this,_e);$(this,Pe,null);$(this,he,null);$(this,we,null);$(this,tt,null);$(this,Mt,0);$(this,ct,0);$(this,Qt,!1);$(this,Cr,new Set);$(this,Dr,new Set);$(this,rt,null);$(this,En,Zo(()=>(P(this,rt,Lt(h(this,Mt))),()=>{P(this,rt,null)})));var s,o;P(this,xe,t),P(this,Oe,r),P(this,Ht,a=>{var u=I;u.b=this,u.f|=qn,n(a)}),this.parent=I.b,this.transform_error=(o=i!=null?i:(s=this.parent)==null?void 0:s.transform_error)!=null?o:a=>a,P(this,_e,Bi(()=>{if(F){const a=h(this,Lr);Hn();const u=a.data===xi;if(a.data.startsWith(Vi)){const f=JSON.parse(a.data.slice(Vi.length));B(this,V,Fs).call(this,f)}else u?B(this,V,Gs).call(this):B(this,V,Us).call(this)}else B(this,V,ei).call(this)},Jo)),F&&P(this,xe,L)}defer_effect(t){Ls(t,h(this,Cr),h(this,Dr))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!h(this,Oe).pending}update_pending_count(t,r){B(this,V,ti).call(this,t,r),P(this,Mt,h(this,Mt)+t),!(!h(this,rt)||h(this,Qt))&&(P(this,Qt,!0),pt(()=>{P(this,Qt,!1),h(this,rt)&&lr(h(this,rt),h(this,Mt))}))}get_effect_pending(){return h(this,En).call(this),H(h(this,rt))}error(t){if(!h(this,Oe).onerror&&!h(this,Oe).failed)throw t;N!=null&&N.is_fork?(h(this,Pe)&&N.skip_effect(h(this,Pe)),h(this,he)&&N.skip_effect(h(this,he)),h(this,we)&&N.skip_effect(h(this,we)),N.oncommit(()=>{B(this,V,ri).call(this,t)})):B(this,V,ri).call(this,t)}}xe=new WeakMap,Lr=new WeakMap,Oe=new WeakMap,Ht=new WeakMap,_e=new WeakMap,Pe=new WeakMap,he=new WeakMap,we=new WeakMap,tt=new WeakMap,Mt=new WeakMap,ct=new WeakMap,Qt=new WeakMap,Cr=new WeakMap,Dr=new WeakMap,rt=new WeakMap,En=new WeakMap,V=new WeakSet,Us=function(){try{P(this,Pe,$e(()=>h(this,Ht).call(this,h(this,xe))))}catch(t){this.error(t)}},Fs=function(t){const r=h(this,Oe).failed,{reset:n,invoke_onerror:i}=B(this,V,Kn).call(this,t);pt(i),r&&P(this,we,$e(()=>{r(h(this,xe),()=>t,()=>n)}))},Kn=function(t){var r=!1,n=!1;const i=()=>{if(r){jo();return}r=!0,n&&Go(),h(this,we)!==null&&It(h(this,we),()=>{P(this,we,null)}),B(this,V,tn).call(this,()=>{B(this,V,ei).call(this)})};return{reset:i,invoke_onerror:()=>{var o,a;try{n=!0,(a=(o=h(this,Oe)).onerror)==null||a.call(o,t,i),n=!1}catch(u){vt(u,h(this,_e)&&h(this,_e).parent)}}}},Gs=function(){const t=h(this,Oe).pending;t&&(this.is_pending=!0,P(this,he,$e(()=>t(h(this,xe)))),pt(()=>{var r=P(this,tt,document.createDocumentFragment()),n=Be();r.append(n),P(this,Pe,B(this,V,tn).call(this,()=>$e(()=>h(this,Ht).call(this,n)))),h(this,ct)===0&&(h(this,xe).before(r),P(this,tt,null),It(h(this,he),()=>{P(this,he,null)}),B(this,V,en).call(this,N))}))},ei=function(){try{if(this.is_pending=this.has_pending_snippet(),P(this,ct,0),P(this,Mt,0),P(this,Pe,$e(()=>{h(this,Ht).call(this,h(this,xe))})),h(this,ct)>0){var t=P(this,tt,document.createDocumentFragment());Li(h(this,Pe),t);const r=h(this,Oe).pending;P(this,he,$e(()=>r(h(this,xe))))}else B(this,V,en).call(this,N)}catch(r){this.error(r)}},en=function(t){this.is_pending=!1,t.transfer_effects(h(this,Cr),h(this,Dr))},tn=function(t){var r=I,n=R,i=pe;Qe(h(this,_e)),Ce(h(this,_e)),ur(h(this,_e).ctx);try{return gt.ensure(),t()}catch(s){return Bs(s),null}finally{Qe(r),Ce(n),ur(i)}},ti=function(t,r){var n;if(!this.has_pending_snippet()){this.parent&&B(n=this.parent,V,ti).call(n,t,r);return}P(this,ct,h(this,ct)+t),h(this,ct)===0&&(B(this,V,en).call(this,r),h(this,he)&&It(h(this,he),()=>{P(this,he,null)}),h(this,tt)&&(h(this,xe).before(h(this,tt)),P(this,tt,null)))},ri=function(t){h(this,Pe)&&(ve(h(this,Pe)),P(this,Pe,null)),h(this,he)&&(ve(h(this,he)),P(this,he,null)),h(this,we)&&(ve(h(this,we)),P(this,we,null)),F&&(ye(h(this,Lr)),Vo(),ye(pn()));let r=h(this,Oe).failed;const n=i=>{const{reset:s,invoke_onerror:o}=B(this,V,Kn).call(this,i);o(),r&&P(this,we,B(this,V,tn).call(this,()=>{try{return $e(()=>{var a=I;a.b=this,a.f|=qn,r(h(this,xe),()=>i,()=>s)})}catch(a){return vt(a,h(this,_e).parent),null}}))};pt(()=>{var i;try{i=this.transform_error(t)}catch(s){vt(s,h(this,_e)&&h(this,_e).parent);return}i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(n,s=>vt(s,h(this,_e)&&h(this,_e).parent)):n(i)})};function eu(e,t,r,n){const i=$n;var s=e.filter(p=>!p.settled),o=t.map(i);if(r.length===0&&s.length===0){n(o);return}var a=I,u=tu(),l=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(p=>p.promise)):null;function f(p){if(!(a.f&Ae)){u();try{n([...o,...p])}catch(v){vt(v,a)}vn()}}var d=ks();if(r.length===0){l.then(()=>f([])).finally(d);return}function c(){Promise.all(r.map(p=>ru(p))).then(f).catch(p=>vt(p,a)).finally(d)}l?l.then(()=>{u(),c(),vn()}):c()}function tu(){var e=I,t=R,r=pe,n=N;return function(s=!0){Qe(e),Ce(t),ur(r),s&&!(e.f&Ae)&&(n==null||n.activate(),n==null||n.apply())}}function vn(e=!0){Qe(null),Ce(null),ur(null),e&&(N==null||N.deactivate())}function ks(){var e=I,t=e.b,r=N,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 $n(e){var t=ae|ne;return I!==null&&(I.f|=Ut),{ctx:pe,deps:null,effects:null,equals:Os,f:t,fn:e,reactions:null,rv:0,v:ie,wv:0,parent:I,ac:null}}const wr=Symbol("obsolete");function ru(e,t,r){let n=I;n===null&&No();var i=void 0,s=Lt(ie),o=!R,a=new Set;return pu(()=>{var p,v;var u=I,l=Ss();i=l.promise;try{Promise.resolve(e()).then(l.resolve,_=>{_!==jr&&l.reject(_)}).finally(vn)}catch(_){l.reject(_),vn()}var f=N;if(o){if(u.f&Dt)var d=ks();if((p=n.b)!=null&&p.is_rendered())(v=f.async_deriveds.get(u))==null||v.reject(wr);else for(const _ of a.values())_.reject(wr);a.add(l),f.async_deriveds.set(u,l)}const c=(_,m=void 0)=>{d==null||d(),a.delete(l),m!==wr&&(f.activate(),m?(s.f|=_t,lr(s,m)):(s.f&_t&&(s.f^=_t),lr(s,_)),f.deactivate())};l.promise.then(c,_=>c(null,_||"unknown"))}),sa(()=>{for(const u of a)u.reject(wr)}),new Promise(u=>{function l(f){function d(){f===i?u(s):l(i)}f.then(d,d)}l(i)})}function xt(e){const t=$n(e);return ca(t),t}function nu(e){const t=$n(e);return t.equals=Ns,t}function iu(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)ve(t[r])}}function Ai(e){var t,r=I,n=e.parent;if(!ut&&n!==null&&e.v!==ie&&n.f&(Ae|de))return ko(),e.v;Qe(n);try{e.f&=~Rt,iu(e),t=ma(e)}finally{Qe(r)}return t}function js(e){var t=Ai(e);if(!e.equals(t)&&(e.wv=pa(),(!(N!=null&&N.is_fork)||e.deps===null)&&(N!==null?(N.capture(e,t,!0),Hr==null||Hr.capture(e,t,!0)):e.v=t,e.deps===null))){ee(e,se);return}ut||(oe!==null?($i()||N!=null&&N.is_fork)&&oe.set(e,t):Ti(e))}function su(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&&Nn(()=>{r.ac.abort(jr),r.ac=null}),r.fn!==null&&(r.teardown=ot),Ir(r,0),Ri(r))}function Vs(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&t.fn!==null&&fr(t)}let Un=null,kt=null,N=null,Hr=null,oe=null,ni=null,Mr=!1,Fn=!1,Yt=null,rn=null;var Wi=0;let au=1;var Kt,dt,Ot,er,tr,rr,nt,nr,ge,Ur,it,Ue,Ye,ir,Pt,G,ii,Tr,si,Xs,Ws,Xt,ou,Sr;const xn=class xn{constructor(){$(this,G);q(this,"id",au++);$(this,Kt,!1);q(this,"linked",!0);$(this,dt,null);$(this,Ot,null);q(this,"async_deriveds",new Map);q(this,"current",new Map);q(this,"previous",new Map);$(this,er,new Set);$(this,tr,new Set);$(this,rr,0);$(this,nt,new Map);$(this,nr,null);$(this,ge,[]);$(this,Ur,[]);$(this,it,new Set);$(this,Ue,new Set);$(this,Ye,new Map);$(this,ir,new Set);q(this,"is_fork",!1);$(this,Pt,!1);kt===null?Un=kt=this:(P(kt,Ot,this),P(this,dt,kt)),kt=this}skip_effect(t){h(this,Ye).has(t)||h(this,Ye).set(t,{d:[],m:[]}),h(this,ir).delete(t)}unskip_effect(t,r=n=>this.schedule(n)){var n=h(this,Ye).get(t);if(n){h(this,Ye).delete(t);for(var i of n.d)ee(i,ne),r(i);for(i of n.m)ee(i,Ve),r(i)}h(this,ir).add(t)}capture(t,r,n=!1){t.v!==ie&&!this.previous.has(t)&&this.previous.set(t,t.v),t.f&_t||(this.current.set(t,[r,n]),oe==null||oe.set(t,r)),this.is_fork||(t.v=r)}activate(){N=this}deactivate(){N=null,oe=null}flush(){try{Fn=!0,N=this,B(this,G,Tr).call(this)}finally{Wi=0,ni=null,Yt=null,rn=null,Fn=!1,N=null,oe=null,$t.clear()}}discard(){var t;for(const r of h(this,tr))r(this);h(this,tr).clear();for(const r of this.async_deriveds.values())r.reject(wr);B(this,G,Sr).call(this),(t=h(this,nr))==null||t.resolve()}register_created_effect(t){h(this,Ur).push(t)}increment(t,r){var n;if(P(this,rr,h(this,rr)+1),t){let i=(n=h(this,nt).get(r))!=null?n:0;h(this,nt).set(r,i+1)}}decrement(t,r){var n;if(P(this,rr,h(this,rr)-1),t){let i=(n=h(this,nt).get(r))!=null?n:0;i===1?h(this,nt).delete(r):h(this,nt).set(r,i-1)}h(this,Pt)||(P(this,Pt,!0),pt(()=>{P(this,Pt,!1),this.linked&&this.flush()}))}transfer_effects(t,r){for(const n of t)h(this,it).add(n);for(const n of r)h(this,Ue).add(n);t.clear(),r.clear()}oncommit(t){h(this,er).add(t)}ondiscard(t){h(this,tr).add(t)}settled(){var t;return((t=h(this,nr))!=null?t:P(this,nr,Ss())).promise}static ensure(){if(N===null){const t=N=new xn;!Fn&&!Mr&&pt(()=>{h(t,Kt)||t.flush()})}return N}apply(){{oe=null;return}}schedule(t){var i;if(ni=t,(i=t.b)!=null&&i.is_pending&&t.f&(ar|kr|As)&&!(t.f&Dt)){t.b.defer_effect(t);return}for(var r=t;r.parent!==null;){r=r.parent;var n=r.f;if(Yt!==null&&r===I&&(R===null||!(R.f&ae)))return;if(n&(Je|Le)){if(!(n&se))return;r.f^=se}}h(this,ge).push(r)}};Kt=new WeakMap,dt=new WeakMap,Ot=new WeakMap,er=new WeakMap,tr=new WeakMap,rr=new WeakMap,nt=new WeakMap,nr=new WeakMap,ge=new WeakMap,Ur=new WeakMap,it=new WeakMap,Ue=new WeakMap,Ye=new WeakMap,ir=new WeakMap,Pt=new WeakMap,G=new WeakSet,ii=function(){if(this.is_fork)return!0;for(const n of h(this,nt).keys()){for(var t=n,r=!1;t.parent!==null;){if(h(this,Ye).has(t)){r=!0;break}t=t.parent}if(!r)return!0}return!1},Tr=function(){var u,l,f,d;P(this,Kt,!0),Wi++>1e3&&(B(this,G,Sr).call(this),uu());for(const c of h(this,it))h(this,Ue).delete(c),ee(c,ne),this.schedule(c);for(const c of h(this,Ue))ee(c,Ve),this.schedule(c);const t=h(this,ge);P(this,ge,[]),this.apply();var r=Yt=[],n=[],i=rn=[];for(const c of t)try{B(this,G,si).call(this,c,r,n)}catch(p){throw qs(c),B(this,G,ii).call(this)||this.discard(),p}if(N=null,i.length>0){var s=xn.ensure();for(const c of i)s.schedule(c)}if(Yt=null,rn=null,B(this,G,ii).call(this)){B(this,G,Xt).call(this,n),B(this,G,Xt).call(this,r);for(const[c,p]of h(this,Ye))zs(c,p);i.length>0&&B(u=N,G,Tr).call(u);return}const o=B(this,G,Xs).call(this);if(o){B(this,G,Xt).call(this,n),B(this,G,Xt).call(this,r),B(l=o,G,Ws).call(l,this);return}h(this,it).clear(),h(this,Ue).clear();for(const c of h(this,er))c(this);h(this,er).clear(),Hr=this,Yi(n),Yi(r),Hr=null,(f=h(this,nr))==null||f.resolve();var a=N;if(h(this,rr)===0&&(h(this,ge).length===0||a!==null)&&B(this,G,Sr).call(this),h(this,ge).length>0)if(a!==null){const c=a;h(c,ge).push(...h(this,ge).filter(p=>!h(c,ge).includes(p)))}else a=this;a!==null&&B(d=a,G,Tr).call(d)},si=function(t,r,n){t.f^=se;for(var i=t.first;i!==null;){var s=i.f,o=(s&(Le|Je))!==0,a=o&&(s&se)!==0,u=a||(s&de)!==0||h(this,Ye).has(i);if(!u&&i.fn!==null){o?i.f^=se:s&ar?r.push(i):Xr(i)&&(s&ke&&h(this,Ue).add(i),fr(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}}},Xs=function(){for(var t=h(this,dt);t!==null;){if(!t.is_fork){for(const[r,[,n]]of this.current)if(t.current.has(r)&&!n)return t}t=h(t,dt)}return null},Ws=function(t){var n;for(const[i,s]of t.current)!this.previous.has(i)&&t.previous.has(i)&&this.previous.set(i,t.previous.get(i)),this.current.set(i,s);for(const[i,s]of t.async_deriveds){const o=this.async_deriveds.get(i);o&&s.promise.then(o.resolve).catch(o.reject)}t.async_deriveds.clear(),this.transfer_effects(h(t,it),h(t,Ue));const r=i=>{var s=i.reactions;if(s!==null&&!(i.f&ae&&!(i.f&(ne|Ve))))for(const u of s){var o=u.f;if(o&ae)r(u);else{var a=u;o&(Zt|ke)&&!this.async_deriveds.has(a)&&(h(this,Ue).delete(a),ee(a,ne),this.schedule(a))}}};for(const i of this.current.keys())r(i);this.oncommit(()=>t.discard()),B(n=t,G,Sr).call(n),N=this,B(this,G,Tr).call(this)},Xt=function(t){for(var r=0;r<t.length;r+=1)Ls(t[r],h(this,it),h(this,Ue))},ou=function(){var d;for(let c=Un;c!==null;c=h(c,Ot)){var t=c.id<this.id,r=[];for(const[p,[v,_]]of this.current){if(c.current.has(p)){var n=c.current.get(p)[0];if(t&&v!==n)c.current.set(p,[v,_]);else continue}r.push(p)}if(t)for(const[p,v]of this.async_deriveds){const _=c.async_deriveds.get(p);_&&v.promise.then(_.resolve).catch(_.reject)}var i=[...c.current.keys()].filter(p=>!c.current.get(p)[1]);if(!(!h(c,Kt)||i.length===0)){var s=i.filter(p=>!this.current.has(p));if(s.length===0)t&&c.discard();else if(r.length>0){if(t)for(const p of h(this,ir))c.unskip_effect(p,v=>{var _;v.f&(ke|Zt)?c.schedule(v):B(_=c,G,Xt).call(_,[v])});c.activate();var o=new Set,a=new Map;for(var u of r)Ys(u,s,o,a);a=new Map;var l=[...c.current].filter(([p,v])=>{const _=this.current.get(p);return _?_[0]!==v[0]||_[1]!==v[1]:!0}).map(([p])=>p);if(l.length>0)for(const p of h(this,Ur))!(p.f&(Ae|de|cn))&&Hi(p,l,a)&&(p.f&(Zt|ke)?(ee(p,ne),c.schedule(p)):h(c,it).add(p));if(h(c,ge).length>0&&!h(c,Pt)){c.apply();for(var f of h(c,ge))B(d=c,G,si).call(d,f,[],[]);P(c,ge,[])}c.deactivate()}}}},Sr=function(){if(this.linked){var t=h(this,dt),r=h(this,Ot);t===null?Un=r:P(t,Ot,r),r===null?kt=t:P(r,dt,t),this.linked=!1}};let gt=xn;function Se(e){var t=Mr;Mr=!0;try{for(var r;;){if(Wo(),N===null)return r;N.flush()}}finally{Mr=t}}function uu(){try{Lo()}catch(e){vt(e,ni)}}let De=null;function Yi(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if(!(n.f&(Ae|de))&&Xr(n)&&(De=new Set,fr(n),n.deps===null&&n.first===null&&n.nodes===null&&n.teardown===null&&n.ac===null&&la(n),(De==null?void 0:De.size)>0)){$t.clear();for(const i of De){if(i.f&(Ae|de))continue;const s=[i];let o=i.parent;for(;o!==null;)De.has(o)&&(De.delete(o),s.push(o)),o=o.parent;for(let a=s.length-1;a>=0;a--){const u=s[a];u.f&(Ae|de)||fr(u)}}De.clear()}}De=null}}function Ys(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&ae?Ys(i,t,r,n):s&(Zt|ke)&&!(s&ne)&&Hi(i,t,n)&&(ee(i,ne),Mi(i))}}function Hi(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(fn.call(t,i))return!0;if(i.f&ae&&Hi(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function Mi(e){N.schedule(e)}function zs(e,t){if(!(e.f&Le&&e.f&se)){e.f&ne?t.d.push(e):e.f&Ve&&t.m.push(e),ee(e,se);for(var r=e.first;r!==null;)zs(r,t),r=r.next}}function qs(e){ee(e,se);for(var t=e.first;t!==null;)qs(t),t=t.next}let mn=new Set;const $t=new Map;let Zs=!1;function Lt(e,t){var r={f:0,v:e,reactions:null,equals:Os,rv:0,wv:0};return r}function ue(e,t){const r=Lt(e);return ca(r),r}function Oi(e,t=!1,r=!0){const n=Lt(e);return t||(n.equals=Ns),n}function re(e,t,r=!1){R!==null&&(!je||R.f&cn)&&$s()&&R.f&(ae|ke|Zt|cn)&&(Re===null||!Re.has(e))&&Fo();let n=r?zt(t):t;return lr(e,n,rn)}function lr(e,t,r=null){if(!e.equals(t)){$t.set(e,ut?t:e.v);var n=gt.ensure();if(n.capture(e,t),e.f&ae){const i=e;e.f&ne&&Ai(i),oe===null&&Ti(i)}e.wv=pa(),Js(e,ne,r),I!==null&&I.f&se&&!(I.f&(Le|Je))&&(Me===null?_u([e]):Me.push(e)),!n.is_fork&&mn.size>0&&!Zs&&lu()}return t}function lu(){Zs=!1;for(const e of mn){e.f&se&&ee(e,Ve);let t;try{t=Xr(e)}catch(r){t=!0}t&&fr(e)}mn.clear()}function Or(e){re(e,e.v+1)}function Js(e,t,r){var n=e.reactions;if(n!==null)for(var i=n.length,s=0;s<i;s++){var o=n[s],a=o.f,u=(a&ne)===0;if(u&&ee(o,t),a&cn)mn.add(o);else if(a&ae){var l=o;oe==null||oe.delete(l),a&Rt||(a&Ie&&(I===null||!(I.f&dn))&&(o.f|=Rt),Js(l,Ve,r))}else if(u){var f=o;a&ke&&De!==null&&De.add(f),r!==null?r.push(f):Mi(f)}}}function zt(e){if(typeof e!="object"||e===null||Qr in e)return e;const t=ws(e);if(t!==To&&t!==So)return e;var r=new Map,n=xs(e),i=ue(0),s=Bt,o=a=>{if(Bt===s)return a();var u=R,l=Bt;Ce(null),Zi(s);var f=a();return Ce(u),Zi(l),f};return n&&r.set("length",ue(e.length)),new Proxy(e,{defineProperty(a,u,l){(!("value"in l)||l.configurable===!1||l.enumerable===!1||l.writable===!1)&&Do();var f=r.get(u);return f===void 0?o(()=>{var d=ue(l.value);return r.set(u,d),d}):re(f,l.value,!0),!0},deleteProperty(a,u){var l=r.get(u);if(l===void 0){if(u in a){const f=o(()=>ue(ie));r.set(u,f),Or(i)}}else re(l,ie),Or(i);return!0},get(a,u,l){var p;if(u===Qr)return e;var f=r.get(u),d=u in a;if(f===void 0&&(!d||(p=qt(a,u))!=null&&p.writable)&&(f=o(()=>{var v=zt(d?a[u]:ie),_=ue(v);return _}),r.set(u,f)),f!==void 0){var c=H(f);return c===ie?void 0:c}return Reflect.get(a,u,l)},getOwnPropertyDescriptor(a,u){var l=Reflect.getOwnPropertyDescriptor(a,u);if(l&&"value"in l){var f=r.get(u);f&&(l.value=H(f))}else if(l===void 0){var d=r.get(u),c=d==null?void 0:d.v;if(d!==void 0&&c!==ie)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return l},has(a,u){var c;if(u===Qr)return!0;var l=r.get(u),f=l!==void 0&&l.v!==ie||Reflect.has(a,u);if(l!==void 0||I!==null&&(!f||(c=qt(a,u))!=null&&c.writable)){l===void 0&&(l=o(()=>{var p=f?zt(a[u]):ie,v=ue(p);return v}),r.set(u,l));var d=H(l);if(d===ie)return!1}return f},set(a,u,l,f){var M;var d=r.get(u),c=u in a;if(n&&u==="length")for(var p=l;p<d.v;p+=1){var v=r.get(p+"");v!==void 0?re(v,ie):p in a&&(v=o(()=>ue(ie)),r.set(p+"",v))}if(d===void 0)(!c||(M=qt(a,u))!=null&&M.writable)&&(d=o(()=>ue(void 0)),re(d,zt(l)),r.set(u,d));else{c=d.v!==ie;var _=o(()=>zt(l));re(d,_)}var m=Reflect.getOwnPropertyDescriptor(a,u);if(m!=null&&m.set&&m.set.call(f,l),!c){if(n&&typeof u=="string"){var x=r.get("length"),U=Number(u);Number.isInteger(U)&&U>=x.v&&re(x,U+1)}Or(i)}return!0},ownKeys(a){H(i);var u=Reflect.ownKeys(a).filter(d=>{var c=r.get(d);return c===void 0||c.v!==ie});for(var[l,f]of r)f.v!==ie&&!(l in a)&&u.push(l);return u},setPrototypeOf(){Uo()}})}var zi,Qs,Ks,ea;function ai(){if(zi===void 0){zi=window,Qs=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Ks=qt(t,"firstChild").get,ea=qt(t,"nextSibling").get,Xi(e)&&(e[Jn]=void 0,e[Kr]=null,e[Oo]=void 0,e.__e=void 0),Xi(r)&&(r[xr]=void 0)}}function Be(e=""){return document.createTextNode(e)}function Ct(e){return Ks.call(e)}function Ke(e){return ea.call(e)}function Wt(e,t){if(!F)return Ct(e);var r=Ct(L);if(r===null)r=L.appendChild(Be());else if(t&&r.nodeType!==Sn){var n=Be();return r==null||r.before(n),ye(n),n}return t&&Ni(r),ye(r),r}function ta(e,t=!1){if(!F){var r=Ct(e);return r instanceof Comment&&r.data===""?Ke(r):r}if(t){if((L==null?void 0:L.nodeType)!==Sn){var n=Be();return L==null||L.before(n),ye(n),n}Ni(L)}return L}function oi(e,t=1,r=!1){let n=F?L:e;for(var i;t--;)i=n,n=Ke(n);if(!F)return n;if(r){if((n==null?void 0:n.nodeType)!==Sn){var s=Be();return n===null?i==null||i.after(s):n.before(s),ye(s),s}Ni(n)}return ye(n),n}function ra(e){e.textContent=""}function na(){return!1}function Pi(e,t,r){return r?document.createElement(e,{is:r}):document.createElement(e)}function Ni(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===Sn;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function ia(e){I===null&&(R===null&&Ro(),Bo()),ut&&Io()}function fu(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function Xe(e,t){var o;var r=I;r!==null&&r.f&de&&(e|=de);var n={ctx:pe,deps:null,nodes:null,f:e|ne|Ie,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};N==null||N.register_created_effect(n);var i=n;if(e&ar)Yt!==null?Yt.push(n):gt.ensure().schedule(n);else if(t!==null){try{fr(n)}catch(a){throw ve(n),a}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&Ut)&&(i=i.first,e&ke&&e&or&&i!==null&&(i.f|=or))}if(i!==null&&(i.parent=r,r!==null&&fu(i,r),R!==null&&R.f&ae&&!(e&Je))){var s=R;((o=s.effects)!=null?o:s.effects=[]).push(i)}return n}function $i(){return R!==null&&!je}function sa(e){const t=Xe(kr,null);return ee(t,se),t.teardown=e,t}function $r(e){var i;ia();var t=I.f,r=!R&&(t&Le)!==0&&pe!==null&&!pe.i;if(r){var n=pe;((i=n.e)!=null?i:n.e=[]).push(e)}else return aa(e)}function aa(e){return Xe(ar|Hs,e)}function hu(e){return ia(),Xe(kr|Hs,e)}function cu(e){gt.ensure();const t=Xe(Je|Ut,e);return()=>{ve(t)}}function du(e){gt.ensure();const t=Xe(Je|Ut,e);return(r={})=>new Promise(n=>{r.outro?It(t,()=>{ve(t),n(void 0)}):(ve(t),n(void 0))})}function oa(e){return Xe(ar,e)}function pu(e){return Xe(Zt|Ut,e)}function Ii(e,t=0){return Xe(kr|t,e)}function ui(e,t=[],r=[],n=[]){eu(n,t,r,i=>{Xe(kr,()=>{e(...i.map(H))})})}function Bi(e,t=0){var r=Xe(ke|t,e);return r}function $e(e){return Xe(Le|Ut,e)}function ua(e){var t=e.teardown;if(t!==null){const r=ut,n=R;qi(!0),Ce(null);try{t.call(null)}finally{qi(r),Ce(n)}}}function Ri(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&Nn(()=>{i.abort(jr)});var n=r.next;r.f&Je?r.parent=null:ve(r,t),r=n}}function vu(e){for(var t=e.first;t!==null;){var r=t.next;t.f&Le||ve(t),t=r}}function ve(e,t=!0){var r=!1;(t||e.f&Ao)&&e.nodes!==null&&e.nodes.end!==null&&(mu(e.nodes.start,e.nodes.end),r=!0),e.f|=Zn,Ri(e,t&&!r),Ir(e,0);var n=e.nodes&&e.nodes.t;if(n!==null)for(const s of n)s.stop();ua(e),e.f^=Zn,e.f|=Ae;var i=e.parent;i!==null&&i.first!==null&&la(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function mu(e,t){for(;e!==null;){var r=e===t?null:Ke(e);e.remove(),e=r}}function la(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 It(e,t,r=!0){var n=[];fa(e,n,!0);var i=()=>{r&&ve(e),t&&t()},s=n.length;if(s>0){var o=()=>--s||i();for(var a of n)a.out(o)}else i()}function fa(e,t,r){if(!(e.f&de)){e.f^=de;var n=e.nodes&&e.nodes.t;if(n!==null)for(const a of n)(a.is_global||r)&&t.push(a);for(var i=e.first;i!==null;){var s=i.next;if(!(i.f&Je)){var o=(i.f&or)!==0||(i.f&Le)!==0&&(e.f&ke)!==0;fa(i,t,o?r:!1)}i=s}}}function _n(e){ha(e,!0)}function ha(e,t){if(e.f&de){e.f^=de,e.f&se||(ee(e,ne),gt.ensure().schedule(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&or)!==0||(r.f&Le)!==0;ha(r,i?t:!1),r=n}var s=e.nodes&&e.nodes.t;if(s!==null)for(const o of s)(o.is_global||t)&&o.in()}}function Li(e,t){if(e.nodes)for(var r=e.nodes.start,n=e.nodes.end;r!==null;){var i=r===n?null:Ke(r);t.append(r),r=i}}let nn=!1,ut=!1;function qi(e){ut=e}let R=null,je=!1;function Ce(e){R=e}let I=null;function Qe(e){I=e}let Re=null;function ca(e){R!==null&&(Re!=null?Re:Re=new Set).add(e)}let be=null,Ee=0,Me=null;function _u(e){Me=e}let da=1,St=0,Bt=St;function Zi(e){Bt=e}function pa(){return++da}function Xr(e){var t=e.f;if(t&ne)return!0;if(t&ae&&(e.f&=~Rt),t&Ve){for(var r=e.deps,n=r.length,i=0;i<n;i++){var s=r[i];if(Xr(s)&&js(s),s.wv>e.wv)return!0}t&Ie&&oe===null&&ee(e,se)}return!1}function va(e,t,r=!0){var n=e.reactions;if(n!==null&&!(Re!==null&&Re.has(e)))for(var i=0;i<n.length;i++){var s=n[i];s.f&ae?va(s,t,!1):t===s&&(r?ee(s,ne):s.f&se&&ee(s,Ve),Mi(s))}}function ma(e){var _,m;var t=be,r=Ee,n=Me,i=R,s=Re,o=pe,a=je,u=Bt,l=e.f;be=null,Ee=0,Me=null,R=l&(Le|Je)?null:e,Re=null,ur(e.ctx),je=!1,Bt=++St,e.ac!==null&&(Nn(()=>{e.ac.abort(jr)}),e.ac=null);try{e.f|=dn;var f=e.fn,d=f();e.f|=Dt;var c=e.deps,p=N==null?void 0:N.is_fork;if(be!==null){var v;if(p||Ir(e,Ee),c!==null&&Ee>0)for(c.length=Ee+be.length,v=0;v<be.length;v++)c[Ee+v]=be[v];else e.deps=c=be;if($i()&&e.f&Ie)for(v=Ee;v<c.length;v++)((m=(_=c[v]).reactions)!=null?m:_.reactions=[]).push(e)}else!p&&c!==null&&Ee<c.length&&(Ir(e,Ee),c.length=Ee);if($s()&&Me!==null&&!je&&c!==null&&!(e.f&(ae|Ve|ne)))for(v=0;v<Me.length;v++)va(Me[v],e);if(i!==null&&i!==e){if(St++,i.deps!==null)for(let x=0;x<r;x+=1)i.deps[x].rv=St;if(t!==null)for(const x of t)x.rv=St;Me!==null&&(n===null?n=Me:n.push(...Me))}return e.f&_t&&(e.f^=_t),d}catch(x){return Bs(x)}finally{e.f^=dn,be=t,Ee=r,Me=n,R=i,Re=s,ur(o),je=a,Bt=u}}function gu(e,t){let r=t.reactions;if(r!==null){var n=xo.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&ae&&(be===null||!fn.call(be,t))){var s=t;s.f&Ie&&(s.f^=Ie,s.f&=~Rt),s.v!==ie&&Ti(s),s.ac!==null&&Nn(()=>{s.ac.abort(jr),s.ac=null,ee(s,ne)}),su(s),Ir(s,0)}}function Ir(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)gu(e,r[n])}function fr(e){var t=e.f;if(!(t&Ae)){ee(e,se);var r=I,n=nn;I=e,nn=(t&(Le|Je))===0;try{t&(ke|As)?vu(e):Ri(e),ua(e);var i=ma(e);e.teardown=typeof i=="function"?i:null,e.wv=da;var s;Es&&Xo&&e.f&ne&&e.deps}finally{nn=n,I=r}}}function bu(){return et(this,null,function*(){yield Promise.resolve(),Se()})}function H(e){var f;var t=e.f,r=(t&ae)!==0;if(R!==null&&!je){var n=I!==null&&(I.f&Ae)!==0;if(!n&&(Re===null||!Re.has(e))){var i=R.deps;if(R.f&dn)e.rv<St&&(e.rv=St,be===null&&i!==null&&i[Ee]===e?Ee++:be===null?be=[e]:be.push(e));else{(f=R.deps)!=null||(R.deps=[]),fn.call(R.deps,e)||R.deps.push(e);var s=e.reactions;s===null?e.reactions=[R]:fn.call(s,R)||s.push(R)}}}if(ut&&$t.has(e))return $t.get(e);if(r){var o=e;if(ut){var a=o.v;return(!(o.f&se)&&o.reactions!==null||ga(o))&&(a=Ai(o)),$t.set(o,a),a}var u=(o.f&Ie)===0&&!je&&R!==null&&(nn||(R.f&Ie)!==0),l=(o.f&Dt)===0;Xr(o)&&(u&&(o.f|=Ie),js(o)),u&&!l&&(Vs(o),_a(o))}if(oe!=null&&oe.has(e))return oe.get(e);if(e.f&_t)throw e.v;return e.v}function _a(e){var t;if(e.f|=Ie,e.deps!==null)for(const r of e.deps)((t=r.reactions)!=null?t:r.reactions=[]).push(e),r.f&ae&&!(r.f&Ie)&&(Vs(r),_a(r))}function ga(e){if(e.v===ie)return!0;if(e.deps===null)return!1;for(const t of e.deps)if($t.has(t)||t.f&ae&&ga(t))return!0;return!1}function Ci(e){var t=je;try{return je=!0,e()}finally{je=t}}const At=Symbol("events"),ba=new Set,li=new Set;function sn(e,t,r){var n;((n=t[At])!=null?n:t[At]={})[e]=r}function ya(e){for(var t=0;t<e.length;t++)ba.add(e[t]);for(var r of li)r(e)}let Ji=null;function Qi(e){var _,m;var t=this,r=t.ownerDocument,n=e.type,i=((_=e.composedPath)==null?void 0:_.call(e))||[],s=i[0]||e.target;Ji=e;var o=0,a=Ji===e&&e[At];if(a){var u=i.indexOf(a);if(u!==-1&&(t===document||t===window)){e[At]=t;return}var l=i.indexOf(t);if(l===-1)return;u<=l&&(o=u)}if(s=i[o]||e.target,s!==t){Nr(e,"currentTarget",{configurable:!0,get(){return s||r}});var f=R,d=I;Ce(null),Qe(null);try{for(var c,p=[];s!==null&&s!==t;){try{var v=(m=s[At])==null?void 0:m[n];v!=null&&(!s.disabled||e.target===s)&&v.call(s,e)}catch(x){c?p.push(x):c=x}if(e.cancelBubble)break;o++,s=o<i.length?i[o]:null}if(c){for(let x of p)queueMicrotask(()=>{throw x});throw c}}finally{e[At]=t,delete e.currentTarget,Ce(f),Qe(d)}}}var gs;const Gn=((gs=globalThis==null?void 0:globalThis.window)==null?void 0:gs.trustedTypes)&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function yu(e){var t;return(t=Gn==null?void 0:Gn.createHTML(e))!=null?t:e}function Eu(e){var t=Pi("template");return t.innerHTML=yu(e.replaceAll("<!>","<!---->")),t.content}function Jt(e,t){var r=I;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function Wr(e,t){var r=(t&bo)!==0,n=(t&yo)!==0,i,s=!e.startsWith("<!>");return()=>{if(F)return Jt(L,null),L;i===void 0&&(i=Eu(s?e:"<!>"+e),r||(i=Ct(i)));var o=n||Qs?document.importNode(i,!0):i.cloneNode(!0);if(r){var a=Ct(o),u=o.lastChild;Jt(a,u)}else Jt(o,o);return o}}function Ea(){if(F)return Jt(L,null),L;var e=document.createDocumentFragment(),t=document.createComment(""),r=Be();return e.append(t,r),Jt(t,r),e}function wt(e,t){if(F){var r=I;(!(r.f&Dt)||r.nodes.end===null)&&(r.nodes.end=L),Hn();return}e!==null&&e.before(t)}const xu=["touchstart","touchmove"];function wu(e){return xu.includes(e)}function an(e,t){var n;var r=t==null?"":typeof t=="object"?`${t}`:t;r!==((n=e[xr])!=null?n:e[xr]=e.nodeValue)&&(e[xr]=r,e.nodeValue=`${r}`)}function xa(e,t){return wa(e,t)}function Tu(e,t){var o;ai(),t.intro=(o=t.intro)!=null?o:!1;const r=t.target,n=F,i=L;try{for(var s=Ct(r);s&&(s.nodeType!==Vr||s.data!==ys);)s=Ke(s);if(!s)throw sr;at(!0),ye(s);const a=wa(e,qr(zr({},t),{anchor:s}));return at(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
2
- `).some(u=>u.startsWith("https://svelte.dev/e/")))throw a;return a!==sr&&console.warn("Failed to hydrate: ",a),t.recover===!1&&Co(),ai(),ra(r),at(!1),xa(e,t)}finally{at(n),ye(i)}}const Zr=new Map;function wa(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:o=!0,transformError:a}){ai();var u=void 0,l=du(()=>{var f=r!=null?r:t.appendChild(Be());Qo(f,{pending:()=>{}},p=>{Mn({});var v=pe;if(s&&(v.c=s),i&&(n.$$events=i),F&&Jt(p,null),u=e(p,n)||{},F&&(I.nodes.end=L,L===null||L.nodeType!==Vr||L.data!==wi))throw An(),sr;On()},a);var d=new Set,c=p=>{for(var v=0;v<p.length;v++){var _=p[v];if(!d.has(_)){d.add(_);var m=wu(_);for(const M of[t,document]){var x=Zr.get(M);x===void 0&&(x=new Map,Zr.set(M,x));var U=x.get(_);U===void 0?(M.addEventListener(_,Qi,{passive:m}),x.set(_,1)):x.set(_,U+1)}}}};return c(Tn(ba)),li.add(c),()=>{var m;for(var p of d)for(const x of[t,document]){var v=Zr.get(x),_=v.get(p);--_==0?(x.removeEventListener(p,Qi),v.delete(p),v.size===0&&Zr.delete(x)):v.set(p,_)}li.delete(c),f!==r&&((m=f.parentNode)==null||m.removeChild(f))}});return fi.set(u,l),u}let fi=new WeakMap;function Su(e,t){const r=fi.get(e);return r?(fi.delete(e),r(t)):Promise.resolve()}var Fe,ze,Te,Nt,Fr,Gr,wn;class Au{constructor(t,r=!0){q(this,"anchor");$(this,Fe,new Map);$(this,ze,new Map);$(this,Te,new Map);$(this,Nt,new Set);$(this,Fr,!0);$(this,Gr,t=>{if(h(this,Fe).has(t)){var r=h(this,Fe).get(t),n=h(this,ze).get(r);if(n)_n(n),h(this,Nt).delete(r);else{var i=h(this,Te).get(r);i&&(_n(i.effect),h(this,ze).set(r,i.effect),h(this,Te).delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(const[s,o]of h(this,Fe)){if(h(this,Fe).delete(s),s===t)break;const a=h(this,Te).get(o);a&&(ve(a.effect),h(this,Te).delete(o))}for(const[s,o]of h(this,ze)){if(s===r||h(this,Nt).has(s))continue;const a=()=>{if(Array.from(h(this,Fe).values()).includes(s)){var l=document.createDocumentFragment();Li(o,l),l.append(Be()),h(this,Te).set(s,{effect:o,fragment:l})}else ve(o);h(this,Nt).delete(s),h(this,ze).delete(s)};h(this,Fr)||!n?(h(this,Nt).add(s),It(o,a,!1)):a()}}});$(this,wn,t=>{h(this,Fe).delete(t);const r=Array.from(h(this,Fe).values());for(const[n,i]of h(this,Te))r.includes(n)||(ve(i.effect),h(this,Te).delete(n))});this.anchor=t,P(this,Fr,r)}ensure(t,r){var n=N,i=na();if(r&&!h(this,ze).has(t)&&!h(this,Te).has(t))if(i){var s=document.createDocumentFragment(),o=Be();s.append(o),h(this,Te).set(t,{effect:$e(()=>r(o)),fragment:s})}else h(this,ze).set(t,$e(()=>r(this.anchor)));if(h(this,Fe).set(n,t),i){for(const[a,u]of h(this,ze))a===t?n.unskip_effect(u):n.skip_effect(u);for(const[a,u]of h(this,Te))a===t?n.unskip_effect(u.effect):n.skip_effect(u.effect);n.oncommit(h(this,Gr)),n.ondiscard(h(this,wn))}else F&&(this.anchor=L),h(this,Gr).call(this,n)}}Fe=new WeakMap,ze=new WeakMap,Te=new WeakMap,Nt=new WeakMap,Fr=new WeakMap,Gr=new WeakMap,wn=new WeakMap;function hi(e,t,r=!1){var n;F&&(n=L,Hn());var i=new Au(e),s=r?or:0;function o(a,u){if(F){var l=Ms(n);if(a!==parseInt(l.substring(1))){var f=pn();ye(f),i.anchor=f,at(!1),i.ensure(a,u),at(!0);return}}i.ensure(a,u)}Bi(()=>{var a=!1;t((u,l=0)=>{a=!0,o(l,u)}),a||o(-1,null)},s)}function Ta(e,t){return t}function Hu(e,t,r){var d;for(var n=[],i=t.length,s,o=t.length,a=0;a<i;a++){let c=t[a];It(c,()=>{if(s){if(s.pending.delete(c),s.done.add(c),s.pending.size===0){var p=e.outrogroups;ci(e,Tn(s.done)),p.delete(s),p.size===0&&(e.outrogroups=null)}}else o-=1},!1)}if(o===0){var u=n.length===0&&r!==null&&e.pending.size===0;if(u){var l=r,f=l.parentNode;ra(f),f.append(l),e.items.clear()}ci(e,t,!u)}else s={pending:new Set(t),done:new Set},((d=e.outrogroups)!=null?d:e.outrogroups=new Set).add(s)}function ci(e,t,r=!0){var n;if(e.pending.size>0){n=new Set;for(const o of e.pending.values())for(const a of o)n.add(e.items.get(a).e)}for(var i=0;i<t.length;i++){var s=t[i];if(n!=null&&n.has(s)){s.f|=Ze;const o=document.createDocumentFragment();Li(s,o)}else ve(t[i],r)}}var jt;function Sa(e,t,r,n,i,s=null){var o=e,a=new Map,u=(t&bs)!==0;if(u){var l=e;o=F?ye(Ct(l)):l.appendChild(Be())}F&&Hn();var f=null,d=nu(()=>{var M=r();return xs(M)?M:M==null?[]:Tn(M)}),c,p=new Map,v=!0;function _(M){U.effect.f&Ae||(U.pending.delete(M),U.fallback=f,Mu(U,c,o,t,n),f!==null&&(c.length===0?f.f&Ze?(f.f^=Ze,Ar(f,null,o)):_n(f):It(f,()=>{f=null})))}function m(M){U.pending.delete(M)}var x=Bi(()=>{c=H(d);var M=c.length;let W=!1;if(F){var J=Ms(o)===xi;J!==(M===0)&&(o=pn(),ye(o),at(!1),W=!0)}for(var k=new Set,te=N,He=na(),le=0;le<M;le+=1){F&&L.nodeType===Vr&&L.data===wi&&(o=L,W=!0,at(!1));var w=c[le],A=n(w,le),X=v?null:a.get(A);X?(X.v&&lr(X.v,w),X.i&&lr(X.i,le),He&&te.unskip_effect(X.e)):(X=Ou(a,v?o:jt!=null?jt:jt=Be(),w,A,le,i,t,r),v||(X.e.f|=Ze),a.set(A,X)),k.add(A)}if(M===0&&s&&!f&&(v?f=$e(()=>s(o)):(f=$e(()=>s(jt!=null?jt:jt=Be())),f.f|=Ze)),M>k.size&&$o(),F&&M>0&&ye(pn()),!v)if(p.set(te,k),He){for(const[We,S]of a)k.has(We)||te.skip_effect(S.e);te.oncommit(_),te.ondiscard(m)}else _(te);W&&at(!0),H(d)}),U={effect:x,items:a,pending:p,outrogroups:null,fallback:f};v=!1,F&&(o=L)}function yr(e){for(;e!==null&&!(e.f&Le);)e=e.next;return e}function Mu(e,t,r,n,i){var w,A,X,We,S,y,g,E,b;var s=(n&_o)!==0,o=t.length,a=e.items,u=yr(e.effect.first),l,f=null,d,c=[],p=[],v,_,m,x;if(s)for(x=0;x<o;x+=1)v=t[x],_=i(v,x),m=a.get(_).e,m.f&Ze||((A=(w=m.nodes)==null?void 0:w.a)==null||A.measure(),(d!=null?d:d=new Set).add(m));for(x=0;x<o;x+=1){if(v=t[x],_=i(v,x),m=a.get(_).e,e.outrogroups!==null)for(const T of e.outrogroups)T.pending.delete(m),T.done.delete(m);if(m.f&de&&(_n(m),s&&((We=(X=m.nodes)==null?void 0:X.a)==null||We.unfix(),(d!=null?d:d=new Set).delete(m))),m.f&Ze)if(m.f^=Ze,m===u)Ar(m,null,r);else{var U=f?f.next:u;m===e.effect.last&&(e.effect.last=m.prev),m.prev&&(m.prev.next=m.next),m.next&&(m.next.prev=m.prev),ht(e,f,m),ht(e,m,U),Ar(m,U,r),f=m,c=[],p=[],u=yr(f.next);continue}if(m!==u){if(l!==void 0&&l.has(m)){if(c.length<p.length){var M=p[0],W;f=M.prev;var J=c[0],k=c[c.length-1];for(W=0;W<c.length;W+=1)Ar(c[W],M,r);for(W=0;W<p.length;W+=1)l.delete(p[W]);ht(e,J.prev,k.next),ht(e,f,J),ht(e,k,M),u=M,f=k,x-=1,c=[],p=[]}else l.delete(m),Ar(m,u,r),ht(e,m.prev,m.next),ht(e,m,f===null?e.effect.first:f.next),ht(e,f,m),f=m;continue}for(c=[],p=[];u!==null&&u!==m;)(l!=null?l:l=new Set).add(u),p.push(u),u=yr(u.next);if(u===null)continue}m.f&Ze||c.push(m),f=m,u=yr(m.next)}if(e.outrogroups!==null){for(const T of e.outrogroups)T.pending.size===0&&(ci(e,Tn(T.done)),(S=e.outrogroups)==null||S.delete(T));e.outrogroups.size===0&&(e.outrogroups=null)}if(u!==null||l!==void 0){var te=[];if(l!==void 0)for(m of l)m.f&de||te.push(m);for(;u!==null;)!(u.f&de)&&u!==e.fallback&&te.push(u),u=yr(u.next);var He=te.length;if(He>0){var le=n&bs&&o===0?r:null;if(s){for(x=0;x<He;x+=1)(g=(y=te[x].nodes)==null?void 0:y.a)==null||g.measure();for(x=0;x<He;x+=1)(b=(E=te[x].nodes)==null?void 0:E.a)==null||b.fix()}Hu(e,te,le)}}s&&pt(()=>{var T,O;if(d!==void 0)for(m of d)(O=(T=m.nodes)==null?void 0:T.a)==null||O.apply()})}function Ou(e,t,r,n,i,s,o,a){var u=o&vo?o&go?Lt(r):Oi(r,!1,!1):null,l=o&mo?Lt(i):null;return{v:u,i:l,e:$e(()=>(s(t,u!=null?u:r,l!=null?l:i,a),()=>{e.delete(n)}))}}function Ar(e,t,r){if(e.nodes)for(var n=e.nodes.start,i=e.nodes.end,s=t&&!(t.f&Ze)?t.nodes.start:r;n!==null;){var o=Ke(n);if(s.before(n),n===i)return;n=o}}function ht(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}function Aa(e,t){oa(()=>{var i;var r=e.getRootNode(),n=r.host?r:(i=r.head)!=null?i:r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const s=Pi("style");s.id=t.hash,s.textContent=t.code,n.appendChild(s)}})}const Ki=[...`
3
- \r\f \v\uFEFF`];function Pu(e,t,r){var n=e==null?"":""+e;if(r){for(var i of Object.keys(r))if(r[i])n=n?n+" "+i:i;else if(n.length)for(var s=i.length,o=0;(o=n.indexOf(i,o))>=0;){var a=o+s;(o===0||Ki.includes(n[o-1]))&&(a===n.length||Ki.includes(n[a]))?n=(o===0?"":n.substring(0,o))+n.substring(a+1):o=a}}return n===""?null:n}function Ha(e,t,r,n,i,s){var o=e[Jn];if(F||o!==r||o===void 0){var a=Pu(r,n,s);(!F||a!==e.getAttribute("class"))&&(a==null?e.removeAttribute("class"):e.className=a),e[Jn]=r}else if(s&&i!==s)for(var u in s){var l=!!s[u];(i==null||l!==!!i[u])&&e.classList.toggle(u,l)}return s}const Nu=Symbol("is custom element"),$u=Symbol("is html"),Iu=Po?"link":"LINK";function Bu(e,t,r,n){var i=Ru(e);F&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===Iu)||i[t]!==(i[t]=r)&&(t==="loading"&&(e[Mo]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Lu(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Ru(e){var t;return(t=e[Kr])!=null?t:e[Kr]={[Nu]:e.nodeName.includes("-"),[$u]:e.namespaceURI===Eo}}var es=new Map;function Lu(e){var t=e.getAttribute("is")||e.nodeName,r=es.get(t);if(r)return r;es.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=wo(i);for(var o in n)n[o].set&&o!=="innerHTML"&&o!=="textContent"&&o!=="innerText"&&r.push(o);i=ws(i)}return r}function kn(e,t){return e===t||(e==null?void 0:e[Qr])===t}function Cu(e={},t,r,n){var i=pe.r,s=I;return oa(()=>{var o,a;return Ii(()=>{o=a,a=[],Ci(()=>{kn(r(...a),e)||(t(e,...a),o&&kn(r(...o),e)&&t(null,...o))})}),()=>{let u=s;for(;u!==i&&u.parent!==null&&u.parent.f&Zn;)u=u.parent;const l=()=>{a&&kn(r(...a),e)&&t(null,...a)},f=u.teardown;u.teardown=()=>{l(),f==null||f()}}}),e}function Ge(e,t,r,n){var i=n,s=!0,o=()=>(s&&(s=!1,i=n),i),a;a=e[t],a===void 0&&n!==void 0&&(a=o());var u;u=()=>{var c=e[t];return c===void 0?o():(s=!0,c)};var l=!1,f=$n(()=>(l=!1,u())),d=I;return function(c,p){if(arguments.length>0){const v=p?H(f):c;return re(f,v),l=!0,i!==void 0&&(i=v),c}return ut&&l||d.f&Ae?f.v:H(f)}}function Du(e){return new Uu(e)}var st,Ne;class Uu{constructor(t){$(this,st);$(this,Ne);var s,o;var r=new Map,n=(a,u)=>{var l=Oi(u,!1,!1);return r.set(a,l),l};const i=new Proxy(qr(zr({},t.props||{}),{$$events:{}}),{get(a,u){var l;return H((l=r.get(u))!=null?l:n(u,Reflect.get(a,u)))},has(a,u){var l;return u===Ho?!0:(H((l=r.get(u))!=null?l:n(u,Reflect.get(a,u))),Reflect.has(a,u))},set(a,u,l){var f;return re((f=r.get(u))!=null?f:n(u,l),l),Reflect.set(a,u,l)}});P(this,Ne,(t.hydrate?Tu:xa)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:(s=t.intro)!=null?s:!1,recover:t.recover,transformError:t.transformError})),(!((o=t==null?void 0:t.props)!=null&&o.$$host)||t.sync===!1)&&Se(),P(this,st,i.$$events);for(const a of Object.keys(h(this,Ne)))a==="$set"||a==="$destroy"||a==="$on"||Nr(this,a,{get(){return h(this,Ne)[a]},set(u){h(this,Ne)[a]=u},enumerable:!0});h(this,Ne).$set=a=>{Object.assign(i,a)},h(this,Ne).$destroy=()=>{Su(h(this,Ne))}}$set(t){h(this,Ne).$set(t)}$on(t,r){h(this,st)[t]=h(this,st)[t]||[];const n=(...i)=>r.call(this,...i);return h(this,st)[t].push(n),()=>{h(this,st)[t]=h(this,st)[t].filter(i=>i!==n)}}$destroy(){h(this,Ne).$destroy()}}st=new WeakMap,Ne=new WeakMap;let Ma;typeof HTMLElement=="function"&&(Ma=class extends HTMLElement{constructor(t,r,n){super();q(this,"$$ctor");q(this,"$$s");q(this,"$$c");q(this,"$$cn",!1);q(this,"$$d",{});q(this,"$$r",!1);q(this,"$$p_d",{});q(this,"$$l",{});q(this,"$$l_u",new Map);q(this,"$$me");q(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 et(this,null,function*(){if(this.$$cn=!0,!this.$$c){let r=function(s){return o=>{const a=Pi("slot");s!=="default"&&(a.name=s),wt(o,a)}};var t=r;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=Fu(this);for(const s of this.$$s)s in i&&(s==="default"&&!this.$$d.children?(this.$$d.children=r(s),n.default=!0):n[s]=r(s));for(const s of this.attributes){const o=this.$$g_p(s.name);o in this.$$d||(this.$$d[o]=on(o,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=Du({component:this.$$ctor,target:this.$$shadowRoot||this,props:qr(zr({},this.$$d),{$$slots:n,$$host:this})}),this.$$me=cu(()=>{Ii(()=>{var s;this.$$r=!0;for(const o of hn(this.$$c)){if(!((s=this.$$p_d[o])!=null&&s.reflect))continue;this.$$d[o]=this.$$c[o];const a=on(o,this.$$d[o],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,a)}this.$$r=!1})});for(const s in this.$$l)for(const o of this.$$l[s]){const a=this.$$c.$on(s,o);this.$$l_u.set(o,a)}this.$$l={}}})}attributeChangedCallback(t,r,n){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=on(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 hn(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function on(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 Fu(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function Di(e,t,r,n,i,s){let o=class extends Ma{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return hn(t).map(a=>(t[a].attribute||a).toLowerCase())}};return hn(t).forEach(a=>{Nr(o.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(u){var d;u=on(a,u,t),this.$$d[a]=u;var l=this.$$c;if(l){var f=(d=qt(l,a))==null?void 0:d.get;f?l[a]=u:l.$set({[a]:u})}}})}),n.forEach(a=>{Nr(o.prototype,a,{get(){var u;return(u=this.$$c)==null?void 0:u[a]}})}),e.element=o,o}class Oa extends Error{constructor(t,r){super(r),this.code=t,this.name="ElevateApiError"}}const Gu=e=>et(exports,null,function*(){var s;const t=new URL(`${e.apiEndpoint}/elevate/playerInfo?language=${(s=e.locale)!=null?s:""}`),r=new Headers({"Content-Type":"application/json"});e.userSession&&r.append("X-SessionId",e.userSession);const i=yield(yield fetch(t.href,{method:"GET",headers:r})).json();if(!i.success)throw new Oa(i.errorCode,i.errorMessage);return i.data}),ku=e=>et(exports,null,function*(){var i;const t=new URL(`${e.apiEndpoint}/elevate/levels?language=${(i=e.locale)!=null?i:""}`);return(yield(yield fetch(t.href,{method:"GET"})).json()).data}),ju={REDEEM_REWARD_CONFIRMED:"Loyalty:RedeemRewardConfirmed",BACK_BUTTON_CLICKED:"Loyalty:BackButtonClicked"},Vu="shop",Xu=10,Pa=12,Wu="DD/MM/YYYY HH:mm:ss",Na=e=>{const t=new Headers({"Content-Type":"application/json"});return e&&t.append("X-SessionId",e),t},Yu=(n,...i)=>et(exports,[n,...i],function*(e,t=0,r=Pa){var u;const s=new URL(`${e.apiEndpoint}/elevate/shop`);return s.searchParams.set("language",(u=e.locale)!=null?u:""),s.searchParams.set("pagination",`offset=${t},limit=${r}`),yield(yield fetch(s.href,{method:"GET",headers:Na(e.userSession)})).json()}),zu=(e,t)=>et(exports,null,function*(){var s,o;const r=new URL(`${e.apiEndpoint}/elevate/shop`);return r.searchParams.set("language",(s=e.locale)!=null?s:""),r.searchParams.set("filter",`id=${t}`),(o=(yield(yield fetch(r.href,{method:"GET",headers:Na(e.userSession)})).json()).data)==null?void 0:o[0]}),qu=(e,t)=>et(exports,null,function*(){var o,a;const r=new URL(`${e.apiEndpoint}/elevate/redeem`),n=new Headers({"Content-Type":"application/json-patch+json"});e.userSession&&n.append("X-SessionId",e.userSession);const s=yield(yield fetch(r.href,{method:"PUT",headers:n,body:JSON.stringify({giftID:t})})).json();if(!s.success)throw new Oa((o=s.errorCode)!=null?o:"",(a=s.errorMessage)!=null?a:"Redeem failed")}),Zu=(e,t)=>{const r=[...e].sort((i,s)=>i.firstEntryPoints>s.firstEntryPoints?1:-1);let n=0;return r.forEach((i,s)=>{t>i.firstEntryPoints&&(n=s)}),n};var Ju=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function $a(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ia={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Ju,function(){var r=1e3,n=6e4,i=36e5,s="millisecond",o="second",a="minute",u="hour",l="day",f="week",d="month",c="quarter",p="year",v="date",_="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,U={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(S){var y=["th","st","nd","rd"],g=S%100;return"["+S+(y[(g-20)%10]||y[g]||y[0])+"]"}},M=function(S,y,g){var E=String(S);return!E||E.length>=y?S:""+Array(y+1-E.length).join(g)+S},W={s:M,z:function(S){var y=-S.utcOffset(),g=Math.abs(y),E=Math.floor(g/60),b=g%60;return(y<=0?"+":"-")+M(E,2,"0")+":"+M(b,2,"0")},m:function S(y,g){if(y.date()<g.date())return-S(g,y);var E=12*(g.year()-y.year())+(g.month()-y.month()),b=y.clone().add(E,d),T=g-b<0,O=y.clone().add(E+(T?-1:1),d);return+(-(E+(g-b)/(T?b-O:O-b))||0)},a:function(S){return S<0?Math.ceil(S)||0:Math.floor(S)},p:function(S){return{M:d,y:p,w:f,d:l,D:v,h:u,m:a,s:o,ms:s,Q:c}[S]||String(S||"").toLowerCase().replace(/s$/,"")},u:function(S){return S===void 0}},J="en",k={};k[J]=U;var te="$isDayjsObject",He=function(S){return S instanceof X||!(!S||!S[te])},le=function S(y,g,E){var b;if(!y)return J;if(typeof y=="string"){var T=y.toLowerCase();k[T]&&(b=T),g&&(k[T]=g,b=T);var O=y.split("-");if(!b&&O.length>1)return S(O[0])}else{var j=y.name;k[j]=y,b=j}return!E&&b&&(J=b),b||!E&&J},w=function(S,y){if(He(S))return S.clone();var g=typeof y=="object"?y:{};return g.date=S,g.args=arguments,new X(g)},A=W;A.l=le,A.i=He,A.w=function(S,y){return w(S,{locale:y.$L,utc:y.$u,x:y.$x,$offset:y.$offset})};var X=function(){function S(g){this.$L=le(g.locale,null,!0),this.parse(g),this.$x=this.$x||g.x||{},this[te]=!0}var y=S.prototype;return y.parse=function(g){this.$d=function(E){var b=E.date,T=E.utc;if(b===null)return new Date(NaN);if(A.u(b))return new Date;if(b instanceof Date)return new Date(b);if(typeof b=="string"&&!/Z$/i.test(b)){var O=b.match(m);if(O){var j=O[2]-1||0,Q=(O[7]||"0").substring(0,3);return T?new Date(Date.UTC(O[1],j,O[3]||1,O[4]||0,O[5]||0,O[6]||0,Q)):new Date(O[1],j,O[3]||1,O[4]||0,O[5]||0,O[6]||0,Q)}}return new Date(b)}(g),this.init()},y.init=function(){var g=this.$d;this.$y=g.getFullYear(),this.$M=g.getMonth(),this.$D=g.getDate(),this.$W=g.getDay(),this.$H=g.getHours(),this.$m=g.getMinutes(),this.$s=g.getSeconds(),this.$ms=g.getMilliseconds()},y.$utils=function(){return A},y.isValid=function(){return this.$d.toString()!==_},y.isSame=function(g,E){var b=w(g);return this.startOf(E)<=b&&b<=this.endOf(E)},y.isAfter=function(g,E){return w(g)<this.startOf(E)},y.isBefore=function(g,E){return this.endOf(E)<w(g)},y.$g=function(g,E,b){return A.u(g)?this[E]:this.set(b,g)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(g,E){var b=this,T=!!A.u(E)||E,O=A.p(g),j=function(Et,me){var ft=A.w(b.$u?Date.UTC(b.$y,me,Et):new Date(b.$y,me,Et),b);return T?ft:ft.endOf(l)},Q=function(Et,me){return A.w(b.toDate()[Et].apply(b.toDate("s"),(T?[0,0,0,0]:[23,59,59,999]).slice(me)),b)},Y=this.$W,z=this.$M,fe=this.$D,lt="set"+(this.$u?"UTC":"");switch(O){case p:return T?j(1,0):j(31,11);case d:return T?j(1,z):j(0,z+1);case f:var yt=this.$locale().weekStart||0,gr=(Y<yt?Y+7:Y)-yt;return j(T?fe-gr:fe+(6-gr),z);case l:case v:return Q(lt+"Hours",0);case u:return Q(lt+"Minutes",1);case a:return Q(lt+"Seconds",2);case o:return Q(lt+"Milliseconds",3);default:return this.clone()}},y.endOf=function(g){return this.startOf(g,!1)},y.$set=function(g,E){var b,T=A.p(g),O="set"+(this.$u?"UTC":""),j=(b={},b[l]=O+"Date",b[v]=O+"Date",b[d]=O+"Month",b[p]=O+"FullYear",b[u]=O+"Hours",b[a]=O+"Minutes",b[o]=O+"Seconds",b[s]=O+"Milliseconds",b)[T],Q=T===l?this.$D+(E-this.$W):E;if(T===d||T===p){var Y=this.clone().set(v,1);Y.$d[j](Q),Y.init(),this.$d=Y.set(v,Math.min(this.$D,Y.daysInMonth())).$d}else j&&this.$d[j](Q);return this.init(),this},y.set=function(g,E){return this.clone().$set(g,E)},y.get=function(g){return this[A.p(g)]()},y.add=function(g,E){var b,T=this;g=Number(g);var O=A.p(E),j=function(z){var fe=w(T);return A.w(fe.date(fe.date()+Math.round(z*g)),T)};if(O===d)return this.set(d,this.$M+g);if(O===p)return this.set(p,this.$y+g);if(O===l)return j(1);if(O===f)return j(7);var Q=(b={},b[a]=n,b[u]=i,b[o]=r,b)[O]||1,Y=this.$d.getTime()+g*Q;return A.w(Y,this)},y.subtract=function(g,E){return this.add(-1*g,E)},y.format=function(g){var E=this,b=this.$locale();if(!this.isValid())return b.invalidDate||_;var T=g||"YYYY-MM-DDTHH:mm:ssZ",O=A.z(this),j=this.$H,Q=this.$m,Y=this.$M,z=b.weekdays,fe=b.months,lt=b.meridiem,yt=function(me,ft,br,Yr){return me&&(me[ft]||me(E,T))||br[ft].slice(0,Yr)},gr=function(me){return A.s(j%12||12,me,"0")},Et=lt||function(me,ft,br){var Yr=me<12?"AM":"PM";return br?Yr.toLowerCase():Yr};return T.replace(x,function(me,ft){return ft||function(br){switch(br){case"YY":return String(E.$y).slice(-2);case"YYYY":return A.s(E.$y,4,"0");case"M":return Y+1;case"MM":return A.s(Y+1,2,"0");case"MMM":return yt(b.monthsShort,Y,fe,3);case"MMMM":return yt(fe,Y);case"D":return E.$D;case"DD":return A.s(E.$D,2,"0");case"d":return String(E.$W);case"dd":return yt(b.weekdaysMin,E.$W,z,2);case"ddd":return yt(b.weekdaysShort,E.$W,z,3);case"dddd":return z[E.$W];case"H":return String(j);case"HH":return A.s(j,2,"0");case"h":return gr(1);case"hh":return gr(2);case"a":return Et(j,Q,!0);case"A":return Et(j,Q,!1);case"m":return String(Q);case"mm":return A.s(Q,2,"0");case"s":return String(E.$s);case"ss":return A.s(E.$s,2,"0");case"SSS":return A.s(E.$ms,3,"0");case"Z":return O}return null}(me)||O.replace(":","")})},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(g,E,b){var T,O=this,j=A.p(E),Q=w(g),Y=(Q.utcOffset()-this.utcOffset())*n,z=this-Q,fe=function(){return A.m(O,Q)};switch(j){case p:T=fe()/12;break;case d:T=fe();break;case c:T=fe()/3;break;case f:T=(z-Y)/6048e5;break;case l:T=(z-Y)/864e5;break;case u:T=z/i;break;case a:T=z/n;break;case o:T=z/r;break;default:T=z}return b?T:A.a(T)},y.daysInMonth=function(){return this.endOf(d).$D},y.$locale=function(){return k[this.$L]},y.locale=function(g,E){if(!g)return this.$L;var b=this.clone(),T=le(g,E,!0);return T&&(b.$L=T),b},y.clone=function(){return A.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},S}(),We=X.prototype;return w.prototype=We,[["$ms",s],["$s",o],["$m",a],["$H",u],["$W",l],["$M",d],["$y",p],["$D",v]].forEach(function(S){We[S[1]]=function(y){return this.$g(y,S[0],S[1])}}),w.extend=function(S,y){return S.$i||(S(y,X,w),S.$i=!0),w},w.locale=le,w.isDayjs=He,w.unix=function(S){return w(1e3*S)},w.en=k[J],w.Ls=k,w.p={},w})})(Ia);var Qu=Ia.exports;const Ku=$a(Qu),el=(e,t="DD/MM/YYYY")=>{const r=Ku(e);return r.isValid()?r.format(t):""},tl=(e,t)=>{window.postMessage({type:"Loyalty:RewardItemClicked",name:e,id:t},window.location.href)},rl=(e,t)=>{window.postMessage({type:"Loyalty:RedeemRewardRequested",name:e,id:t},window.location.href)},nl=e=>{window.postMessage({type:"Loyalty:RedeemRewardSuccess",itemId:e},window.location.href)},il=(e,t)=>{window.postMessage({type:"Loyalty:RedeemRewardFailed",itemId:e,res:t},window.location.href)},sl=()=>{window.dispatchEvent(new CustomEvent("redeemRewardButton"))};var al=function(t){return ol(t)&&!ul(t)};function ol(e){return!!e&&typeof e=="object"}function ul(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||hl(e)}var ll=typeof Symbol=="function"&&Symbol.for,fl=ll?Symbol.for("react.element"):60103;function hl(e){return e.$$typeof===fl}function cl(e){return Array.isArray(e)?[]:{}}function Br(e,t){return t.clone!==!1&&t.isMergeableObject(e)?hr(cl(e),e,t):e}function dl(e,t,r){return e.concat(t).map(function(n){return Br(n,r)})}function pl(e,t){if(!t.customMerge)return hr;var r=t.customMerge(e);return typeof r=="function"?r:hr}function vl(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function ts(e){return Object.keys(e).concat(vl(e))}function Ba(e,t){try{return t in e}catch(r){return!1}}function ml(e,t){return Ba(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function _l(e,t,r){var n={};return r.isMergeableObject(e)&&ts(e).forEach(function(i){n[i]=Br(e[i],r)}),ts(t).forEach(function(i){ml(e,i)||(Ba(e,i)&&r.isMergeableObject(t[i])?n[i]=pl(i,r)(e[i],t[i],r):n[i]=Br(t[i],r))}),n}function hr(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||dl,r.isMergeableObject=r.isMergeableObject||al,r.cloneUnlessOtherwiseSpecified=Br;var n=Array.isArray(t),i=Array.isArray(e),s=n===i;return s?n?r.arrayMerge(e,t,r):_l(e,t,r):Br(t,r)}hr.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return hr(n,i,r)},{})};var gl=hr,bl=gl;const yl=$a(bl);var di=function(e,t){return di=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])},di(e,t)};function In(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");di(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var qe=function(){return qe=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},qe.apply(this,arguments)};function El(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 jn(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 Vn(e,t){var r=t&&t.cache?t.cache:Ml,n=t&&t.serializer?t.serializer:Al,i=t&&t.strategy?t.strategy:Tl;return i(e,{cache:r,serializer:n})}function xl(e){return e==null||typeof e=="number"||typeof e=="boolean"}function wl(e,t,r,n){var i=xl(n)?n:r(n),s=t.get(i);return typeof s=="undefined"&&(s=e.call(this,n),t.set(i,s)),s}function Ra(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 La(e,t,r,n,i){return r.bind(t,e,n,i)}function Tl(e,t){var r=e.length===1?wl:Ra;return La(e,this,r,t.cache.create(),t.serializer)}function Sl(e,t){return La(e,this,Ra,t.cache.create(),t.serializer)}var Al=function(){return JSON.stringify(arguments)},Hl=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}(),Ml={create:function(){return new Hl}},Xn={variadic:Sl},gn=function(){return gn=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},gn.apply(this,arguments)};var C;(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"})(C||(C={}));var Z;(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"})(Z||(Z={}));var cr;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(cr||(cr={}));function rs(e){return e.type===Z.literal}function Ol(e){return e.type===Z.argument}function Ca(e){return e.type===Z.number}function Da(e){return e.type===Z.date}function Ua(e){return e.type===Z.time}function Fa(e){return e.type===Z.select}function Ga(e){return e.type===Z.plural}function Pl(e){return e.type===Z.pound}function ka(e){return e.type===Z.tag}function ja(e){return!!(e&&typeof e=="object"&&e.type===cr.number)}function pi(e){return!!(e&&typeof e=="object"&&e.type===cr.dateTime)}var Va=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Nl=/(?:[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(Nl,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 K=function(){return K=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},K.apply(this,arguments)};var Il=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Bl(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Il).filter(function(c){return c.length>0}),r=[],n=0,i=t;n<i.length;n++){var s=i[n],o=s.split("/");if(o.length===0)throw new Error("Invalid number skeleton");for(var a=o[0],u=o.slice(1),l=0,f=u;l<f.length;l++){var d=f[l];if(d.length===0)throw new Error("Invalid number skeleton")}r.push({stem:a,options:u})}return r}function Rl(e){return e.replace(/^(.*?)-/,"")}var ns=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Xa=/^(@+)?(\+|#+)?[rs]?$/g,Ll=/(\*)(0+)|(#+)(0+)|(0+)/g,Wa=/^(0+)$/;function is(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Xa,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 Ya(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Cl(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Wa.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function ss(e){var t={},r=Ya(e);return r||t}function Dl(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=Rl(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=K(K(K({},t),{notation:"scientific"}),i.options.reduce(function(u,l){return K(K({},u),ss(l))},{}));continue;case"engineering":t=K(K(K({},t),{notation:"engineering"}),i.options.reduce(function(u,l){return K(K({},u),ss(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(Ll,function(u,l,f,d,c,p){if(l)t.minimumIntegerDigits=f.length;else{if(d&&c)throw new Error("We currently do not support maximum integer digits");if(p)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Wa.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(ns.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(ns,function(u,l,f,d,c,p){return f==="*"?t.minimumFractionDigits=l.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:c&&p?(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length+p.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var s=i.options[0];s==="w"?t=K(K({},t),{trailingZeroDisplay:"stripIfInteger"}):s&&(t=K(K({},t),is(s)));continue}if(Xa.test(i.stem)){t=K(K({},t),is(i.stem));continue}var o=Ya(i.stem);o&&(t=K(K({},t),o));var a=Cl(i.stem);a&&(t=K(K({},t),a))}return t}var Jr={"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 Ul(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if(i==="j"){for(var s=0;n+1<e.length&&e.charAt(n+1)===i;)s++,n++;var o=1+(s&1),a=s<2?1:3+(s>>1),u="a",l=Fl(t);for((l=="H"||l=="k")&&(a=0);a-- >0;)r+=u;for(;o-- >0;)r=l+r}else i==="J"?r+="H":r+=i}return r}function Fl(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=Jr[n||""]||Jr[r||""]||Jr["".concat(r,"-001")]||Jr["001"];return i[0]}var Wn,Gl=new RegExp("^".concat(Va.source,"*")),kl=new RegExp("".concat(Va.source,"*$"));function D(e,t){return{start:e,end:t}}var jl=!!String.prototype.startsWith&&"_a".startsWith("a",1),Vl=!!String.fromCodePoint,Xl=!!Object.fromEntries,Wl=!!String.prototype.codePointAt,Yl=!!String.prototype.trimStart,zl=!!String.prototype.trimEnd,ql=!!Number.isSafeInteger,Zl=ql?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},vi=!0;try{var Jl=qa("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");vi=((Wn=Jl.exec("a"))===null||Wn===void 0?void 0:Wn[0])==="a"}catch(e){vi=!1}var as=jl?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},mi=Vl?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",i=t.length,s=0,o;i>s;){if(o=t[s++],o>1114111)throw RangeError(o+" is not a valid code point");n+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return n},os=Xl?Object.fromEntries:function(t){for(var r={},n=0,i=t;n<i.length;n++){var s=i[n],o=s[0],a=s[1];r[o]=a}return r},za=Wl?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}},Ql=Yl?function(t){return t.trimStart()}:function(t){return t.replace(Gl,"")},Kl=zl?function(t){return t.trimEnd()}:function(t){return t.replace(kl,"")};function qa(e,t){return new RegExp(e,t)}var _i;if(vi){var us=qa("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");_i=function(t,r){var n;us.lastIndex=r;var i=us.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}}else _i=function(t,r){for(var n=[];;){var i=za(t,r);if(i===void 0||Za(i)||nf(i))break;n.push(i),r+=i>=65536?2:1}return mi.apply(void 0,n)};var ef=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var i=[];!this.isEOF();){var s=this.char();if(s===123){var o=this.parseArgument(t,n);if(o.err)return o;i.push(o.val)}else{if(s===125&&t>0)break;if(s===35&&(r==="plural"||r==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:Z.pound,location:D(a,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(C.UNMATCHED_CLOSING_TAG,D(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&gi(this.peek()||0)){var o=this.parseTag(t,r);if(o.err)return o;i.push(o.val)}else{var o=this.parseLiteral(t,r);if(o.err)return o;i.push(o.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Z.literal,value:"<".concat(i,"/>"),location:D(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(t+1,r,!0);if(s.err)return s;var o=s.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!gi(this.char()))return this.error(C.INVALID_TAG,D(a,this.clonePosition()));var u=this.clonePosition(),l=this.parseTagName();return i!==l?this.error(C.UNMATCHED_CLOSING_TAG,D(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Z.tag,value:i,children:o,location:D(n,this.clonePosition())},err:null}:this.error(C.INVALID_TAG,D(a,this.clonePosition())))}else return this.error(C.UNCLOSED_TAG,D(n,this.clonePosition()))}else return this.error(C.INVALID_TAG,D(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&rf(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),i="";;){var s=this.tryParseQuote(r);if(s){i+=s;continue}var o=this.tryParseUnquoted(t,r);if(o){i+=o;continue}var a=this.tryParseLeftAngleBracket();if(a){i+=a;continue}break}var u=D(n,this.clonePosition());return{val:{type:Z.literal,value:i,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!tf(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 mi.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(),mi(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(C.EXPECT_ARGUMENT_CLOSING_BRACE,D(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(C.EMPTY_ARGUMENT,D(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(C.MALFORMED_ARGUMENT,D(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(C.EXPECT_ARGUMENT_CLOSING_BRACE,D(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Z.argument,value:i,location:D(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(C.EXPECT_ARGUMENT_CLOSING_BRACE,D(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(C.MALFORMED_ARGUMENT,D(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=_i(this.message,r),i=r+n.length;this.bumpTo(i);var s=this.clonePosition(),o=D(t,s);return{value:n,location:o}},e.prototype.parseArgumentOptions=function(t,r,n,i){var s,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(a){case"":return this.error(C.EXPECT_ARGUMENT_TYPE,D(o,u));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var c=Kl(d.val);if(c.length===0)return this.error(C.EXPECT_ARGUMENT_STYLE,D(this.clonePosition(),this.clonePosition()));var p=D(f,this.clonePosition());l={style:c,styleLocation:p}}var v=this.tryParseArgumentClose(i);if(v.err)return v;var _=D(i,this.clonePosition());if(l&&as(l==null?void 0:l.style,"::",0)){var m=Ql(l.style.slice(2));if(a==="number"){var d=this.parseNumberSkeletonFromString(m,l.styleLocation);return d.err?d:{val:{type:Z.number,value:n,location:_,style:d.val},err:null}}else{if(m.length===0)return this.error(C.EXPECT_DATE_TIME_SKELETON,_);var x=m;this.locale&&(x=Ul(m,this.locale));var c={type:cr.dateTime,pattern:x,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?$l(x):{}},U=a==="date"?Z.date:Z.time;return{val:{type:U,value:n,location:_,style:c},err:null}}}return{val:{type:a==="number"?Z.number:a==="date"?Z.date:Z.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 M=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(C.EXPECT_SELECT_ARGUMENT_OPTIONS,D(M,gn({},M)));this.bumpSpace();var W=this.parseIdentifierIfPossible(),J=0;if(a!=="select"&&W.value==="offset"){if(!this.bumpIf(":"))return this.error(C.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,D(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(C.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,C.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),W=this.parseIdentifierIfPossible(),J=d.val}var k=this.tryParsePluralOrSelectOptions(t,a,r,W);if(k.err)return k;var v=this.tryParseArgumentClose(i);if(v.err)return v;var te=D(i,this.clonePosition());return a==="select"?{val:{type:Z.select,value:n,options:os(k.val),location:te},err:null}:{val:{type:Z.plural,value:n,options:os(k.val),offset:J,pluralType:a==="plural"?"cardinal":"ordinal",location:te},err:null}}default:return this.error(C.INVALID_ARGUMENT_TYPE,D(o,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(C.EXPECT_ARGUMENT_CLOSING_BRACE,D(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(C.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,D(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=Bl(t)}catch(i){return this.error(C.INVALID_NUMBER_SKELETON,r)}return{val:{type:cr.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?Dl(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var s,o=!1,a=[],u=new Set,l=i.value,f=i.location;;){if(l.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var c=this.tryParseDecimalInteger(C.EXPECT_PLURAL_ARGUMENT_SELECTOR,C.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;f=D(d,this.clonePosition()),l=this.message.slice(d.offset,this.offset())}else break}if(u.has(l))return this.error(r==="select"?C.DUPLICATE_SELECT_ARGUMENT_SELECTOR:C.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);l==="other"&&(o=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?C.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:C.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,D(this.clonePosition(),this.clonePosition()));var v=this.parseMessage(t+1,r,n);if(v.err)return v;var _=this.tryParseArgumentClose(p);if(_.err)return _;a.push([l,{value:v.val,location:D(p,this.clonePosition())}]),u.add(l),this.bumpSpace(),s=this.parseIdentifierIfPossible(),l=s.value,f=s.location}return a.length===0?this.error(r==="select"?C.EXPECT_SELECT_ARGUMENT_SELECTOR:C.EXPECT_PLURAL_ARGUMENT_SELECTOR,D(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(C.MISSING_OTHER_CLAUSE,D(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var s=!1,o=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)s=!0,o=o*10+(a-48),this.bump();else break}var u=D(i,this.clonePosition());return s?(o*=n,Zl(o)?{val:o,err:null}:this.error(r,u)):this.error(t,u)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=za(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(as(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()&&Za(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 gi(e){return e>=97&&e<=122||e>=65&&e<=90}function tf(e){return gi(e)||e===47}function rf(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 Za(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function nf(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 bi(e){e.forEach(function(t){if(delete t.location,Fa(t)||Ga(t))for(var r in t.options)delete t.options[r].location,bi(t.options[r].value);else Ca(t)&&ja(t.style)||(Da(t)||Ua(t))&&pi(t.style)?delete t.style.location:ka(t)&&bi(t.children)})}function sf(e,t){t===void 0&&(t={}),t=gn({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new ef(e,t).parse();if(r.err){var n=SyntaxError(C[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||bi(r.val),r.val}var dr;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(dr||(dr={}));var Bn=function(e){In(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),ls=function(e){In(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('", "'),'"'),dr.INVALID_VALUE,s)||this}return t}(Bn),af=function(e){In(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),dr.INVALID_VALUE,i)||this}return t}(Bn),of=function(e){In(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,'"'),dr.MISSING_VALUE,n)||this}return t}(Bn),ce;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(ce||(ce={}));function uf(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==ce.literal||r.type!==ce.literal?t.push(r):n.value+=r.value,t},[])}function lf(e){return typeof e=="function"}function un(e,t,r,n,i,s,o){if(e.length===1&&rs(e[0]))return[{type:ce.literal,value:e[0].value}];for(var a=[],u=0,l=e;u<l.length;u++){var f=l[u];if(rs(f)){a.push({type:ce.literal,value:f.value});continue}if(Pl(f)){typeof s=="number"&&a.push({type:ce.literal,value:r.getNumberFormat(t).format(s)});continue}var d=f.value;if(!(i&&d in i))throw new of(d,o);var c=i[d];if(Ol(f)){(!c||typeof c=="string"||typeof c=="number")&&(c=typeof c=="string"||typeof c=="number"?String(c):""),a.push({type:typeof c=="string"?ce.literal:ce.object,value:c});continue}if(Da(f)){var p=typeof f.style=="string"?n.date[f.style]:pi(f.style)?f.style.parsedOptions:void 0;a.push({type:ce.literal,value:r.getDateTimeFormat(t,p).format(c)});continue}if(Ua(f)){var p=typeof f.style=="string"?n.time[f.style]:pi(f.style)?f.style.parsedOptions:n.time.medium;a.push({type:ce.literal,value:r.getDateTimeFormat(t,p).format(c)});continue}if(Ca(f)){var p=typeof f.style=="string"?n.number[f.style]:ja(f.style)?f.style.parsedOptions:void 0;p&&p.scale&&(c=c*(p.scale||1)),a.push({type:ce.literal,value:r.getNumberFormat(t,p).format(c)});continue}if(ka(f)){var v=f.children,_=f.value,m=i[_];if(!lf(m))throw new af(_,"function",o);var x=un(v,t,r,n,i,s),U=m(x.map(function(J){return J.value}));Array.isArray(U)||(U=[U]),a.push.apply(a,U.map(function(J){return{type:typeof J=="string"?ce.literal:ce.object,value:J}}))}if(Fa(f)){var M=f.options[c]||f.options.other;if(!M)throw new ls(f.value,c,Object.keys(f.options),o);a.push.apply(a,un(M.value,t,r,n,i));continue}if(Ga(f)){var M=f.options["=".concat(c)];if(!M){if(!Intl.PluralRules)throw new Bn(`Intl.PluralRules is not available in this environment.
4
- Try polyfilling it using "@formatjs/intl-pluralrules"
5
- `,dr.MISSING_INTL_API,o);var W=r.getPluralRules(t,{type:f.pluralType}).select(c-(f.offset||0));M=f.options[W]||f.options.other}if(!M)throw new ls(f.value,c,Object.keys(f.options),o);a.push.apply(a,un(M.value,t,r,n,i,c-(f.offset||0)));continue}}return uf(a)}function ff(e,t){return t?qe(qe(qe({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=qe(qe({},e[n]),t[n]||{}),r},{})):e}function hf(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=ff(e[n],t[n]),r},qe({},e)):e}function Yn(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function cf(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Vn(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,jn([void 0],r,!1)))},{cache:Yn(e.number),strategy:Xn.variadic}),getDateTimeFormat:Vn(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,jn([void 0],r,!1)))},{cache:Yn(e.dateTime),strategy:Xn.variadic}),getPluralRules:Vn(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,jn([void 0],r,!1)))},{cache:Yn(e.pluralRules),strategy:Xn.variadic})}}var df=function(){function e(t,r,n,i){r===void 0&&(r=e.defaultLocale);var s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var l=s.formatToParts(u);if(l.length===1)return l[0].value;var f=l.reduce(function(d,c){return!d.length||c.type!==ce.literal||typeof d[d.length-1]!="string"?d.push(c.value):d[d.length-1]+=c.value,d},[]);return f.length<=1?f[0]||"":f},this.formatToParts=function(u){return un(s.ast,s.locales,s.formatters,s.formats,u,void 0,s.message)},this.resolvedOptions=function(){var u;return{locale:((u=s.resolvedLocale)===null||u===void 0?void 0:u.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var o=i||{};o.formatters;var a=El(o,["formatters"]);this.ast=e.__parse(t,qe(qe({},a),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=hf(e.formats,n),this.formatters=i&&i.formatters||cf(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=sf,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 pf(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 mt={},vf=(e,t,r)=>r&&(t in mt||(mt[t]={}),e in mt[t]||(mt[t][e]=r),r),Ja=(e,t)=>{if(t==null)return;if(t in mt&&e in mt[t])return mt[t][e];const r=Rn(t);for(let n=0;n<r.length;n++){const i=r[n],s=_f(i,e);if(s)return vf(e,t,s)}};let Ui;const mr=Pn({});function mf(e){return Ui[e]||null}function Qa(e){return e in Ui}function _f(e,t){if(!Qa(e))return null;const r=mf(e);return pf(r,t)}function gf(e){if(e==null)return;const t=Rn(e);for(let r=0;r<t.length;r++){const n=t[r];if(Qa(n))return n}}function Ka(e,...t){delete mt[e],mr.update(r=>(r[e]=yl.all([r[e]||{},...t]),r))}vr([mr],([e])=>Object.keys(e));mr.subscribe(e=>Ui=e);const ln={};function bf(e,t){ln[e].delete(t),ln[e].size===0&&delete ln[e]}function eo(e){return ln[e]}function yf(e){return Rn(e).map(t=>{const r=eo(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function yi(e){return e==null?!1:Rn(e).some(t=>{var r;return(r=eo(t))==null?void 0:r.size})}function Ef(e,t){return Promise.all(t.map(n=>(bf(e,n),n().then(i=>i.default||i)))).then(n=>Ka(e,...n))}const Er={};function to(e){if(!yi(e))return e in Er?Er[e]:Promise.resolve();const t=yf(e);return Er[e]=Promise.all(t.map(([r,n])=>Ef(r,n))).then(()=>{if(yi(e))return to(e);delete Er[e]}),Er[e]}const xf={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"}}},wf={fallbackLocale:null,loadingDelay:200,formats:xf,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Tf=wf;function pr(){return Tf}const zn=Pn(!1);var Sf=Object.defineProperty,Af=Object.defineProperties,Hf=Object.getOwnPropertyDescriptors,fs=Object.getOwnPropertySymbols,Mf=Object.prototype.hasOwnProperty,Of=Object.prototype.propertyIsEnumerable,hs=(e,t,r)=>t in e?Sf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Pf=(e,t)=>{for(var r in t||(t={}))Mf.call(t,r)&&hs(e,r,t[r]);if(fs)for(var r of fs(t))Of.call(t,r)&&hs(e,r,t[r]);return e},Nf=(e,t)=>Af(e,Hf(t));let Ei;const bn=Pn(null);function cs(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function Rn(e,t=pr().fallbackLocale){const r=cs(e);return t?[...new Set([...r,...cs(t)])]:r}function Ft(){return Ei!=null?Ei:void 0}bn.subscribe(e=>{Ei=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const $f=e=>{if(e&&gf(e)&&yi(e)){const{loadingDelay:t}=pr();let r;return typeof window!="undefined"&&Ft()!=null&&t?r=window.setTimeout(()=>zn.set(!0),t):zn.set(!0),to(e).then(()=>{bn.set(e)}).finally(()=>{clearTimeout(r),zn.set(!1)})}return bn.set(e)},bt=Nf(Pf({},bn),{set:$f}),Ln=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var If=Object.defineProperty,yn=Object.getOwnPropertySymbols,ro=Object.prototype.hasOwnProperty,no=Object.prototype.propertyIsEnumerable,ds=(e,t,r)=>t in e?If(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Fi=(e,t)=>{for(var r in t||(t={}))ro.call(t,r)&&ds(e,r,t[r]);if(yn)for(var r of yn(t))no.call(t,r)&&ds(e,r,t[r]);return e},_r=(e,t)=>{var r={};for(var n in e)ro.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&yn)for(var n of yn(e))t.indexOf(n)<0&&no.call(e,n)&&(r[n]=e[n]);return r};const Rr=(e,t)=>{const{formats:r}=pr();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Bf=Ln(e=>{var t=e,{locale:r,format:n}=t,i=_r(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=Rr("number",n)),new Intl.NumberFormat(r,i)}),Rf=Ln(e=>{var t=e,{locale:r,format:n}=t,i=_r(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=Rr("date",n):Object.keys(i).length===0&&(i=Rr("date","short")),new Intl.DateTimeFormat(r,i)}),Lf=Ln(e=>{var t=e,{locale:r,format:n}=t,i=_r(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=Rr("time",n):Object.keys(i).length===0&&(i=Rr("time","short")),new Intl.DateTimeFormat(r,i)}),Cf=(e={})=>{var t=e,{locale:r=Ft()}=t,n=_r(t,["locale"]);return Bf(Fi({locale:r},n))},Df=(e={})=>{var t=e,{locale:r=Ft()}=t,n=_r(t,["locale"]);return Rf(Fi({locale:r},n))},Uf=(e={})=>{var t=e,{locale:r=Ft()}=t,n=_r(t,["locale"]);return Lf(Fi({locale:r},n))},Ff=Ln((e,t=Ft())=>new df(e,t,pr().formats,{ignoreTag:pr().ignoreTag})),Gf=(e,t={})=>{var r,n,i,s;let o=t;typeof e=="object"&&(o=e,e=o.id);const{values:a,locale:u=Ft(),default:l}=o;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let f=Ja(e,u);if(!f)f=(s=(i=(n=(r=pr()).handleMissingMessage)==null?void 0:n.call(r,{locale:u,id:e,defaultValue:l}))!=null?i:l)!=null?s:e;else if(typeof f!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),f;if(!a)return f;let d=f;try{d=Ff(f,u).format(a)}catch(c){c instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,c.message)}return d},kf=(e,t)=>Uf(t).format(e),jf=(e,t)=>Df(t).format(e),Vf=(e,t)=>Cf(t).format(e),Xf=(e,t=Ft())=>Ja(e,t),io=vr([bt,mr],()=>Gf);vr([bt],()=>kf);vr([bt],()=>jf);vr([bt],()=>Vf);vr([bt,mr],()=>Xf);function so({withLocale:e,translations:t}){bt.subscribe(r=>{r==null&&(mr.set(t),bt.set(e))})}function ao(e,t){Ka(e,t)}function Wf(e){bt.set(e)}const Yf=e=>{let t=ue(void 0),r=ue(void 0),n=ue(void 0),i=ue(void 0),s=ue(!1),o=ue(void 0);const a=()=>et(exports,null,function*(){var p;const{apiEndpoint:u,userSession:l,locale:f,loadLevels:d,onLevelLoaded:c}=e();if(!(!u||!l)){re(s,!0),re(o,void 0);try{const v=[Gu({apiEndpoint:u,userSession:l,locale:f}).then(_=>{var x,U,M,W,J,k;const m=_.level;m.name=((x=m.presentation)==null?void 0:x.displayName)||m.name,m.spendablePoints=((U=_.spendableWallet)==null?void 0:U.total.points)||0,re(t,m,!0),re(n,(M=_.loyaltyWallet)==null?void 0:M.total,!0),re(i,(W=_.spendableWallet)==null?void 0:W.total,!0),c==null||c({elevateLevel:m}),c==null||c({elevateLevelWalletTotal:(J=_.spendableWallet)==null?void 0:J.total,loyaltyWalletTotal:(k=_.loyaltyWallet)==null?void 0:k.total})})];d&&v.push(ku({apiEndpoint:u,userSession:l,locale:f}).then(_=>{re(r,_,!0)})),yield Promise.all(v),yield bu(),H(r)&&H(t)&&(c==null||c({calculatedLevelFlag:Zu(H(r),(p=H(t).loyaltyPoints)!=null?p:0)}))}catch(v){re(o,v,!0),console.error("Failed to load elevate info:",v)}finally{re(s,!1)}}});return $r(()=>{const{apiEndpoint:u,userSession:l,locale:f,loadLevels:d}=e();a()}),$r(()=>{const u=()=>{a()};return window.addEventListener("redeemRewardButton",u),()=>window.removeEventListener("redeemRewardButton",u)}),{get playerElevateLevel(){return H(t)},get levels(){return H(r)},get loyaltyWalletTotal(){return H(n)},get spendableWalletTotal(){return H(i)},get loading(){return H(s)},get error(){return H(o)},reload:a}},zf={en:{prev:"Previous",next:"Next"},tr:{prev:"Önceki",next:"Sonraki"},da:{prev:"Forrige",next:"Næste"},de:{prev:"Zurück",next:"Weiter"},nl:{prev:"Vorige",next:"Volgende"},fr:{prev:"Précédent",next:"Suivant"},hu:{prev:"Előző",next:"Következő"}},Pr=10,qf=7,Zf=4;var Jf=Wr('<span class="loyalty-pagination__ellipsis svelte-1op0ean" aria-hidden="true">...</span>'),Qf=Wr('<button type="button"> </button>'),Kf=Wr('<div class="loyalty-pagination__pages svelte-1op0ean"><button class="loyalty-pagination__btn loyalty-pagination__btn--prev svelte-1op0ean" type="button"> </button> <!> <button class="loyalty-pagination__btn loyalty-pagination__btn--next svelte-1op0ean" type="button"> </button></div>'),eh=Wr('<div class="loyalty-pagination svelte-1op0ean"><!></div>');const th={hash:"svelte-1op0ean",code:`
6
- @layer loyalty-pagination-component {.loyalty-pagination.svelte-1op0ean {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;box-sizing:border-box;width:100%;}
7
-
8
- @media (min-width: 768px) {.loyalty-pagination.svelte-1op0ean {width:auto;margin-left:auto;justify-content:flex-end;padding-right:10px;}.loyalty-pagination__pages.svelte-1op0ean {justify-content:flex-end;}
9
- }.loyalty-pagination__pages.svelte-1op0ean {display:flex;flex-wrap:wrap;align-items:center;gap:8px;justify-content:flex-start;}.loyalty-pagination__ellipsis.svelte-1op0ean {display:inline-flex;align-items:center;justify-content:center;color:var(--text-default, #dfe3e8);font-size:13px;width:24px;}.loyalty-pagination__btn.svelte-1op0ean {min-width:30px;height:30px;padding:4px 8px;border:none;border-radius:4px;background:var(--bg-overlay-neutral-level-1, rgba(251, 251, 251, 0.05));color:var(--text-subtle, #dfe3e8);font-size:13px;font-weight:400;cursor:pointer;}.loyalty-pagination__btn--active.svelte-1op0ean {background:var(--accent, #ffcc00);color:var(--text-on-color, #261d00);}.loyalty-pagination__btn.svelte-1op0ean:disabled {cursor:default;color:var(--text-muted, rgba(251, 251, 251, 0.15));}.loyalty-pagination__btn--prev.svelte-1op0ean,
10
- .loyalty-pagination__btn--next.svelte-1op0ean {width:95px;}
11
-
12
- @media (max-width: 767px) {.loyalty-pagination__btn--prev.svelte-1op0ean,
13
- .loyalty-pagination__btn--next.svelte-1op0ean {width:90px;}
14
- }.loyalty-pagination__btn--prev.svelte-1op0ean:not(:disabled),
15
- .loyalty-pagination__btn--next.svelte-1op0ean:not(:disabled) {color:var(--text-default, #dfe3e8);}
16
- }`};function Gi(e,t){Mn(t,!0),Aa(e,th);const r=()=>Cs(io,"$_",n),[n,i]=Ds(),s=Ge(t,"offset",7,0),o=Ge(t,"limit",7,Pr),a=Ge(t,"total",7,0),u=Ge(t,"onPageChange",7,w=>{}),l=Ge(t,"locale",7,"en");so({withLocale:l(),translations:{}}),Object.entries(zf).forEach(([w,A])=>{ao(w,A)}),$r(()=>{var w;Wf((w=l())!=null?w:"en")});const f=xt(()=>Number(s())||0),d=xt(()=>Number(o())||Pr),c=xt(()=>Number(a())||0),p=xt(()=>Math.max(1,Math.ceil(H(c)/Math.max(1,H(d))))),v=xt(()=>H(d)>0?Math.floor(H(f)/H(d)):0);let _=ue(!1);$r(()=>{const w=window.matchMedia("(max-width: 767px)"),A=X=>{re(_,X.matches,!0)};return re(_,w.matches,!0),w.addEventListener("change",A),()=>w.removeEventListener("change",A)});const m=(w,A,X)=>w<=(X?Zf:qf)?Array.from({length:w},(g,E)=>E):A<=1||A>=w-2?[0,1,"ellipsis",w-2,w-1]:[0,"ellipsis",A,"ellipsis",w-1],x=xt(()=>m(H(p),H(v),H(_))),U=w=>u()(w*H(d)),M=()=>u()(Math.max(0,H(v)-1)*H(d)),W=()=>u()(Math.min(H(p)-1,H(v)+1)*H(d));var J={get offset(){return s()},set offset(w=0){s(w),Se()},get limit(){return o()},set limit(w=Pr){o(w),Se()},get total(){return a()},set total(w=0){a(w),Se()},get onPageChange(){return u()},set onPageChange(w=A=>{}){u(w),Se()},get locale(){return l()},set locale(w="en"){l(w),Se()}},k=eh(),te=Wt(k);{var He=w=>{var A=Kf(),X=Wt(A),We=Wt(X,!0);Vt(X);var S=oi(X,2);Sa(S,17,()=>H(x),Ta,(E,b)=>{var T=Ea(),O=ta(T);{var j=Y=>{var z=Jf();wt(Y,z)},Q=Y=>{var z=Qf();let fe;var lt=Wt(z,!0);Vt(z),ui(()=>{fe=Ha(z,1,"loyalty-pagination__btn svelte-1op0ean",null,fe,{"loyalty-pagination__btn--active":H(b)===H(v)}),an(lt,H(b)+1)}),sn("click",z,()=>U(H(b))),wt(Y,z)};hi(O,Y=>{H(b)==="ellipsis"?Y(j):Y(Q,-1)})}wt(E,T)});var y=oi(S,2),g=Wt(y,!0);Vt(y),Vt(A),ui((E,b)=>{X.disabled=H(v)<=0,an(We,E),y.disabled=H(v)>=H(p)-1,an(g,b)},[()=>r()("prev"),()=>r()("next")]),sn("click",X,M),sn("click",y,W),wt(w,A)};hi(te,w=>{H(p)>1&&w(He)})}Vt(k),wt(e,k);var le=On(J);return i(),le}ya(["click"]);Di(Gi,{offset:{},limit:{},total:{},onPageChange:{},locale:{}},[],[],{mode:"open"});function oo(e,t){Mn(t,!0);let r=Ge(t,"offset",7,0),n=Ge(t,"limit",7,Pr),i=Ge(t,"total",7,0),s=Ge(t,"onPageChange"),o=Ge(t,"locale",7,"en");var a={get offset(){return r()},set offset(u=0){r(u),Se()},get limit(){return n()},set limit(u=Pr){n(u),Se()},get total(){return i()},set total(u=0){i(u),Se()},get onPageChange(){return s()},set onPageChange(u){s(u),Se()},get locale(){return o()},set locale(u="en"){o(u),Se()}};return Gi(e,{get offset(){return r()},get limit(){return n()},get total(){return i()},get onPageChange(){return s()},get locale(){return o()}}),On(a)}customElements.define("loyalty-pagination",Di(oo,{offset:{},limit:{},total:{},onPageChange:{},locale:{}},[],[]));const rh=Object.freeze(Object.defineProperty({__proto__:null,default:oo},Symbol.toStringTag,{value:"Module"}));exports.$format=io;exports.DATE_FORMATS=Wu;exports.EVENT_TYPES=ju;exports.ITEMS_LIMIT_DEFAULT=Pa;exports.LoyaltyPagination=Gi;exports.LoyaltyPagination_ce=rh;exports.MOBILE_LOAD_ITEMS=Xu;exports.SOURCE=Vu;exports.addNewMessages=ao;exports.append=wt;exports.append_styles=Aa;exports.bind_this=Cu;exports.child=Wt;exports.comment=Ea;exports.createElevateData=Yf;exports.create_custom_element=Di;exports.delegate=ya;exports.delegated=sn;exports.dispatchRedeemRewardButton=sl;exports.each=Sa;exports.fetchShopItem=zu;exports.fetchShopRewards=Yu;exports.first_child=ta;exports.flushSync=Se;exports.formatDate=el;exports.from_html=Wr;exports.get=H;exports.if_block=hi;exports.index=Ta;exports.pop=On;exports.prop=Ge;exports.proxy=zt;exports.push=Mn;exports.redeemReward=qu;exports.reset=Vt;exports.sendRedeemRewardFailed=il;exports.sendRedeemRewardRequested=rl;exports.sendRedeemRewardSuccess=nl;exports.sendRewardItemClicked=tl;exports.set=re;exports.set_attribute=Bu;exports.set_class=Ha;exports.set_text=an;exports.setupI18n=so;exports.setup_stores=Ds;exports.sibling=oi;exports.state=ue;exports.store_get=Cs;exports.template_effect=ui;exports.user_derived=xt;exports.user_effect=$r;exports.user_pre_effect=hu;