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