@everymatrix/loyalty-level 0.2.8 → 0.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{LoyaltyLevel-BzJws8-G.js → LoyaltyLevel-BFulMCiM.js} +2 -2
- package/components/{LoyaltyLevel-B4lImGDu.cjs → LoyaltyLevel-BHXpcbZe.cjs} +1 -1
- package/components/{LoyaltyLevel-C5IRTxL3.cjs → LoyaltyLevel-DhFE7P_8.cjs} +1 -1
- package/components/{LoyaltyLevel-uSDbSl-J.js → LoyaltyLevel-djuv309X.js} +2 -2
- package/components/{LoyaltyPagination-DwqIqlFP.js → LoyaltyPagination-0kd-2vyw.js} +2028 -2035
- package/components/LoyaltyPagination-BDLYAGbl.cjs +14 -0
- package/components/LoyaltyPagination-D8xdohN0.cjs +14 -0
- package/components/{LoyaltyPagination-fzOoPxDh.js → LoyaltyPagination-Yz3a65F3.js} +483 -488
- 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/LoyaltyPagination-CxnhtBhF.cjs +0 -14
- package/components/LoyaltyPagination-D5WM82CZ.cjs +0 -14
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
var ha=Object.defineProperty,ca=Object.defineProperties;var da=Object.getOwnPropertyDescriptors;var Zi=Object.getOwnPropertySymbols;var pa=Object.prototype.hasOwnProperty,va=Object.prototype.propertyIsEnumerable;var qi=e=>{throw TypeError(e)};var Dn=(e,t,r)=>t in e?ha(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Yr=(e,t)=>{for(var r in t||(t={}))pa.call(t,r)&&Dn(e,r,t[r]);if(Zi)for(var r of Zi(t))va.call(t,r)&&Dn(e,r,t[r]);return e},Zr=(e,t)=>ca(e,da(t));var X=(e,t,r)=>Dn(e,typeof t!="symbol"?t+"":t,r),Un=(e,t,r)=>t.has(e)||qi("Cannot "+r);var h=(e,t,r)=>(Un(e,t,"read from private field"),r?r.call(e):t.get(e)),I=(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),P=(e,t,r,n)=>(Un(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),T=(e,t,r)=>(Un(e,t,"access private method"),r);var Ft=(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 _a="5";var Es,xs,ws;typeof window!="undefined"&&((ws=(xs=(Es=window.__svelte)!=null?Es:window.__svelte={}).v)!=null?ws:xs.v=new Set).add(_a);const ma=1,ga=2,ya=16,ba=1,Ea=2,As="[",Ai="[!",Ji="[?",Hi="]",ut={},re=Symbol("uninitialized"),Hs="http://www.w3.org/1999/xhtml",xa="http://www.w3.org/2000/svg",wa="http://www.w3.org/1998/Math/MathML",Ms=!1;var Os=Array.isArray,Ta=Array.prototype.indexOf,Pr=Array.prototype.includes,Tn=Array.from,un=Object.keys,tr=Object.defineProperty,Wt=Object.getOwnPropertyDescriptor,Ns=Object.getOwnPropertyDescriptors,Sa=Object.prototype,Aa=Array.prototype,Mi=Object.getPrototypeOf,Qi=Object.isExtensible;const ot=()=>{};function Ps(e){for(var t=0;t<e.length;t++)e[t]()}function $s(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const fe=2,rr=4,kr=8,Is=1<<24,Ue=16,ke=32,lt=64,Qn=128,Oi=256,Ge=512,ne=1024,z=2048,He=4096,ve=8192,oe=16384,Rt=32768,$r=1<<25,nr=65536,ln=1<<17,Ha=1<<18,Dt=1<<19,Bs=1<<20,it=1<<25,fn=1<<21,zt=1<<22,mt=1<<23,Yt=Symbol("$state"),Ls=Symbol("component"),Ma=Symbol("legacy props"),Oa=Symbol(""),Qr=Symbol("attributes"),Kn=Symbol("class"),Na=Symbol("style"),Er=Symbol("text"),jr=new class extends Error{constructor(){super(...arguments);X(this,"name","StaleReactionError");X(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};var Ts;const Pa=!!((Ts=globalThis.document)!=null&&Ts.contentType)&&globalThis.document.contentType.includes("xml"),Sn=3,cr=8;function $a(){console.warn("https://svelte.dev/e/derived_inert")}function Vr(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Ia(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let F=!1;function st(e){F=e}let L;function ge(e){if(e===null)throw Vr(),ut;return L=e}function ir(){return ge(Ve(L))}function hn(e){if(F){if(Ve(L)!==null)throw Vr(),ut;L=e}}function Ba(e=1){if(F){for(var t=e,r=L;t--;)r=Ve(r);L=r}}function cn(e=!0){for(var t=0,r=L;;){if(r.nodeType===cr){var n=r.data;if(n===Hi){if(t===0)return r;t-=1}else(n===As||n===Ai||n[0]==="["&&!isNaN(Number(n.slice(1))))&&(t+=1)}var i=Ve(r);e&&r.remove(),r=i}}function Ni(e){if(!e||e.nodeType!==cr)throw Vr(),ut;return e.data}function Cs(e){return e===this.v}function Pi(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Rs(e){return!Pi(e,this.v)}function La(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Ca(e,t,r){throw new Error("https://svelte.dev/e/each_key_duplicate")}function Ra(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Da(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Ua(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Fa(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Ga(){throw new Error("https://svelte.dev/e/hydration_failed")}function ka(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function ja(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Va(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Xa(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}let Wa=!1,_e=null;function sr(e){_e=e}function An(e,t=!1,r){_e={p:_e,i:!1,c:null,e:null,s:e,x:null,r:$,l:null}}function Hn(e){var t=_e,r=t.e;if(r!==null){t.e=null;for(var n of r)ao(n)}return e!==void 0&&(t.x=e),t.i=!0,_e=t.p,$i(e)}function $i(e={}){return tr(e,Ls,{value:!0}),e}function Ds(){return!0}let At=[];function Us(){var e=At;At=[],Ps(e)}function Ht(e){if(At.length===0&&!Hr){var t=At;queueMicrotask(()=>{t===At&&Us()})}At.push(e)}function za(){for(;At.length>0;)Us()}const Ya=-7169;function te(e,t){e.f=e.f&Ya|t}function Ii(e){e.f&Ge||e.deps===null?te(e,ne):te(e,He)}function Fs(e,t){e.f&z?t.set(e,z):e.f&He&&t.get(e)!==z&&t.set(e,He),te(e,ne)}function Mn(e){var t=B,r=$;Le(null),Ke(null);try{return e()}finally{Le(t),Ke(r)}}function Za(e,t,r,n){const i=On;var s=e.filter(v=>!v.settled),a=t.map(i);if(r.length===0&&s.length===0){n(a);return}var o=$,u=qa(),l=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(v=>v.promise)):null;function f(v){if(!(o.f&oe)){u();try{n([...a,...v])}catch(c){qe(c,o)}dn()}}var d=Gs();if(r.length===0){l.then(()=>f([])).finally(d);return}function p(){Promise.all(r.map(v=>Ja(v))).then(f).catch(v=>qe(v,o)).finally(d)}l?l.then(()=>{if(o.f&oe){d();return}u(),p(),dn()}):p()}function qa(){var e=$,t=B,r=_e,n=A;return function(s=!0){Ke(e),Le(t),sr(r),s&&!(e.f&oe)&&(n==null||n.activate(),n==null||n.apply())}}function dn(e=!0){Ke(null),Le(null),sr(null),e&&(A==null||A.deactivate())}function Gs(){var e=$,t=e.b,r=A,n=!!(t!=null&&t.is_rendered());return t==null||t.update_pending_count(1,r),r.increment(n,e),()=>{t==null||t.update_pending_count(-1,r),r.decrement(n,e)}}function On(e){var t=fe|z;return $!==null&&($.f|=Dt),{ctx:_e,deps:null,effects:null,equals:Cs,f:t,fn:e,reactions:null,rv:0,v:re,wv:0,parent:$,ac:null}}const xr=Symbol("obsolete");function Ja(e,t,r){let n=$;n===null&&La();var i=void 0,s=Ct(re),a=!B,o=new Set;return fu(()=>{var v,c;var u=$,l=$s();i=l.promise;try{Promise.resolve(e()).then(l.resolve,_=>{_!==jr&&l.reject(_)}).finally(dn)}catch(_){l.reject(_),dn()}var f=A;if(a){if(u.f&Rt)var d=Gs();if((v=n.b)!=null&&v.is_rendered())(c=f.async_deriveds.get(u))==null||c.reject(xr);else for(const _ of o.values())_.reject(xr);o.add(l),f.async_deriveds.set(u,l)}const p=(_,b=void 0)=>{d==null||d(),o.delete(l),b!==xr&&(f.activate(),b?(s.f|=mt,or(s,b)):(s.f&mt&&(s.f^=mt),or(s,_)),f.deactivate())};l.promise.then(p,_=>p(null,_||"unknown"))}),oo(()=>{for(const u of o)u.reject(xr)}),new Promise(u=>{function l(f){function d(){f===i?u(s):l(i)}f.then(d,d)}l(i)})}function wt(e){const t=On(e);return po(t),t}function Qa(e){const t=On(e);return t.equals=Rs,t}function Ka(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)me(t[r])}}function Bi(e){var t,r=$,n=e.parent;if(!ft&&n!==null&&e.v!==re&&n.f&(oe|ve))return $a(),e.v;Ke(n);try{Ka(e),t=go(e)}finally{Ke(r)}return t}function ks(e){var t=Bi(e);if(!e.equals(t)&&(e.wv=_o(),(!(A!=null&&A.is_fork)||e.deps===null)&&(A!==null?(A.capture(e,t,!0),gt==null||gt.capture(e,t,!0)):e.v=t,e.deps===null))){te(e,ne);return}ft||(se!==null?(Ui()||A!=null&&A.is_fork)&&se.set(e,t):Ii(e))}function eu(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&&Mn(()=>{r.ac.abort(jr),r.ac=null}),r.fn!==null&&(r.teardown=ot),Br(r,0),ki(r))}function js(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&t.fn!==null&&ar(t)}let Fn=null,Gt=null,A=null,gt=null,se=null,ei=null,Hr=!1,Gn=!1,Mr=null,Kr=null;var Ki=0;let tu=1;var Zt,qt,Jt,et,Qt,tt,Rr,We,ze,Kt,Nt,R,ti,Vs,ri,wr,ni,Xs,Ws,zs,Vt,ru,Tr;const En=class En{constructor(){I(this,R);X(this,"id",tu++);X(this,"started",!1);X(this,"linked",!0);X(this,"prev",null);X(this,"next",null);X(this,"async_deriveds",new Map);X(this,"current",new Map);X(this,"previous",new Map);I(this,Zt,new Set);I(this,qt,new Set);I(this,Jt,0);I(this,et,new Map);I(this,Qt,null);I(this,tt,[]);I(this,Rr,[]);I(this,We,new Map);I(this,ze,new Map);I(this,Kt,new Set);X(this,"is_fork",!1);I(this,Nt,!1);Gt===null?Fn=Gt=this:(Gt.next=this,this.prev=Gt),Gt=this}skip_effect(t){h(this,ze).has(t)||h(this,ze).set(t,{d:[],m:[]}),h(this,Kt).delete(t)}unskip_effect(t,r=n=>this.schedule(n)){var n=h(this,ze).get(t);if(n){h(this,ze).delete(t);for(var i of n.d)te(i,z),r(i);for(i of n.m)te(i,He),r(i)}h(this,Kt).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]),se==null||se.set(t,r)),this.is_fork||(t.v=r)}activate(){A=this}deactivate(){A=null,se=null}flush(){try{Gn=!0,A=this,T(this,R,wr).call(this)}finally{Ki=0,ei=null,Mr=null,Kr=null,Gn=!1,A=null,se=null,Qe.clear()}}discard(){var t;for(const r of h(this,qt))r(this);h(this,qt).clear();for(const r of this.async_deriveds.values())r.reject(xr);T(this,R,Tr).call(this),(t=h(this,Qt))==null||t.resolve()}register_created_effect(t){h(this,Rr).push(t)}increment(t,r){var n;if(P(this,Jt,h(this,Jt)+1),t){let i=(n=h(this,et).get(r))!=null?n:0;h(this,et).set(r,i+1)}}decrement(t,r){var n;if(P(this,Jt,h(this,Jt)-1),t){let i=(n=h(this,et).get(r))!=null?n:0;i===1?h(this,et).delete(r):h(this,et).set(r,i-1)}h(this,Nt)||(P(this,Nt,!0),Ht(()=>{P(this,Nt,!1),this.linked&&this.flush()}))}transfer_reactions(t){for(const[r,n]of t)this.add_dirty_reaction(r,n);t.clear()}add_dirty_reaction(t,r){(r===z||h(this,We).get(t)!==z)&&h(this,We).set(t,r)}oncommit(t){h(this,Zt).add(t)}ondiscard(t){h(this,qt).add(t)}settled(){var t;return((t=h(this,Qt))!=null?t:P(this,Qt,$s())).promise}static ensure(){if(A===null){const t=A=new En;!Gn&&!Hr&&Ht(()=>{t.started||t.flush()})}return A}apply(){{se=null;return}}schedule(t){var r;if(ei=t,(r=t.b)!=null&&r.is_pending&&t.f&(rr|kr|Is)&&!(t.f&Rt)){t.b.defer_effect(t);return}h(this,tt).push(t)}};Zt=new WeakMap,qt=new WeakMap,Jt=new WeakMap,et=new WeakMap,Qt=new WeakMap,tt=new WeakMap,Rr=new WeakMap,We=new WeakMap,ze=new WeakMap,Kt=new WeakMap,Nt=new WeakMap,R=new WeakSet,ti=function(){if(this.is_fork)return!0;for(const t of h(this,et).keys())if(!T(this,R,Vs).call(this,t))return!0;return!1},Vs=function(t){for(var r=t;r!==null;r=r.parent)if(h(this,ze).has(r))return!0;return!1},ri=function(){var t=[];for(const s of h(this,tt))if(!(s.f&oe||!(s.f&(z|He)))){for(var r=s,n=!1;r.parent!==null;){r=r.parent;var i=r.f;if(i&(lt|ke)){if(!(i&ne)){n=!0;break}r.f^=ne}}n||t.push(r)}return P(this,tt,[]),t},wr=function(){var o,u,l,f;this.started=!0;for(const[d,p]of h(this,We))te(d,p),this.schedule(d);this.apply();for(var t=Mr=[],r=[],n=Kr=[];h(this,tt).length>0;){Ki++>1e3&&(T(this,R,Tr).call(this),nu());for(const d of T(this,R,ri).call(this))try{T(this,R,ni).call(this,d,t,r)}catch(p){throw qs(d),T(this,R,ti).call(this)||this.discard(),p}}if(A=null,n.length>0){var i=En.ensure();for(const d of n)i.schedule(d)}if(Mr=null,Kr=null,T(this,R,ti).call(this)){T(this,R,Vt).call(this,r),T(this,R,Vt).call(this,t);for(const[d,p]of h(this,ze))Zs(d,p);n.length>0&&T(o=A,R,wr).call(o);return}const s=T(this,R,Xs).call(this);if(s){T(this,R,Vt).call(this,r),T(this,R,Vt).call(this,t),T(u=s,R,zs).call(u,this);return}h(this,We).clear();for(const d of h(this,Zt))d(this);h(this,Zt).clear(),gt=this,es(r),es(t),gt=null,(l=h(this,Qt))==null||l.resolve();var a=A;h(this,Jt)===0&&(h(this,tt).length===0||a!==null)&&T(this,R,Tr).call(this),a!==null&&(Qe.clear(),T(f=a,R,wr).call(f))},ni=function(t,r,n){t.f^=ne;for(var i=t.first;i!==null;){var s=i.f,a=(s&(ke|lt))!==0,o=a&&(s&ne)!==0,u=o||(s&ve)!==0||h(this,ze).has(i);if(!u&&i.fn!==null){a?i.f^=ne:s&rr?r.push(i):Xr(i)&&(s&Ue&&this.add_dirty_reaction(i,He),ar(i));var l=i.first;if(l!==null){i=l;continue}}for(;i!==null;){var f=i.next;if(f!==null){i=f;break}i=i.parent}}},Xs=function(){for(var t=this.prev;t!==null;t=t.prev)if(!t.is_fork&&T(this,R,Ws).call(this,t))return t;return null},Ws=function(t){for(const[r,[,n]]of this.current)if(!n&&t.current.has(r))return!0;return!1},zs=function(t){var n;for(const[i,s]of t.current)!this.previous.has(i)&&t.previous.has(i)&&this.previous.set(i,t.previous.get(i)),this.current.set(i,s);for(const[i,s]of t.async_deriveds){const a=this.async_deriveds.get(i);a&&s.promise.then(a.resolve).catch(a.reject)}t.async_deriveds.clear(),this.transfer_reactions(h(t,We));const r=i=>{var s=i.reactions;if(s!==null&&!(i.f&fe&&!(i.f&(z|He))))for(const u of s){var a=u.f;if(a&fe)r(u);else{var o=u;a&(zt|Ue)&&!this.async_deriveds.has(o)&&(h(this,We).delete(o),te(o,z),this.schedule(o))}}};for(const i of this.current.keys())r(i);this.oncommit(()=>t.discard()),T(n=t,R,Tr).call(n),A=this,T(this,R,wr).call(this)},Vt=function(t){for(var r=0;r<t.length;r+=1)Fs(t[r],h(this,We))},ru=function(){var d,p;for(let v=Fn;v!==null;v=v.next){var t=v.id<this.id,r=[];for(const[c,[_,b]]of this.current){if(v.current.has(c)){var n=v.current.get(c)[0];if(t&&_!==n)v.current.set(c,[_,b]);else continue}r.push(c)}if(t)for(const[c,_]of this.async_deriveds){const b=v.async_deriveds.get(c);b&&_.promise.then(b.resolve).catch(b.reject)}var i=[...v.current.keys()].filter(c=>!v.current.get(c)[1]);if(!(!v.started||i.length===0)){var s=i.filter(c=>!this.current.has(c));if(s.length===0)t&&v.discard();else if(r.length>0){if(t)for(const c of h(this,Kt))v.unskip_effect(c,_=>{var b;_.f&(Ue|zt)?v.schedule(_):T(b=v,R,Vt).call(b,[_])});v.activate();var a=new Set,o=new Map;for(var u of r)Ys(u,s,a,o);o=new Map;var l=[...v.current].filter(([c,_])=>{const b=this.current.get(c);return b?b[0]!==_[0]||b[1]!==_[1]:!0}).map(([c])=>c);if(l.length>0)for(const c of h(this,Rr))!(c.f&(oe|ve|ln))&&Li(c,l,o)&&(c.f&(zt|Ue)?(te(c,z),v.schedule(c)):v.add_dirty_reaction(c,z));if(h(v,tt).length>0&&!h(v,Nt)){v.apply();for(var f of T(d=v,R,ri).call(d))T(p=v,R,ni).call(p,f,[],[])}v.deactivate()}}}},Tr=function(){if(this.linked){var t=this.prev,r=this.next;t===null?Fn=r:t.next=r,r===null?Gt=t:r.prev=t,this.linked=!1}};let yt=En;function Ae(e){var t=Hr,r=gt;gt=null,Hr=!0;try{for(var n;;){if(za(),A===null)return n;A.flush()}}finally{Hr=t,gt=r}}function nu(){try{Fa()}catch(e){qe(e,ei)}}let Ce=null;function es(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if(!(n.f&(oe|ve))&&Xr(n)&&(Ce=new Set,ar(n),n.deps===null&&n.first===null&&n.nodes===null&&n.teardown===null&&n.ac===null&&fo(n),(Ce==null?void 0:Ce.size)>0)){Qe.clear();for(const i of Ce){if(i.f&(oe|ve))continue;const s=[i];let a=i.parent;for(;a!==null;)Ce.has(a)&&(Ce.delete(a),s.push(a)),a=a.parent;for(let o=s.length-1;o>=0;o--){const u=s[o];u.f&(oe|ve)||ar(u)}}Ce.clear()}}Ce=null}}function Ys(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;s&fe?Ys(i,t,r,n):s&(zt|Ue)&&!(s&z)&&Li(i,t,n)&&(te(i,z),Ci(i))}}function Li(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(Pr.call(t,i))return!0;if(i.f&fe&&Li(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function Ci(e){A.schedule(e)}function Zs(e,t){if(!(e.f&ke&&e.f&ne)){e.f&z?t.d.push(e):e.f&He&&t.m.push(e),te(e,ne);for(var r=e.first;r!==null;)Zs(r,t),r=r.next}}function qs(e){te(e,ne);for(var t=e.first;t!==null;)qs(t),t=t.next}let pn=new Set;const Qe=new Map;let Js=!1;function Ct(e,t){var r={f:0,v:e,reactions:null,equals:Cs,rv:0,wv:0};return r}function le(e,t){const r=Ct(e);return po(r),r}function Ri(e,t=!1,r=!0){const n=Ct(e);return t||(n.equals=Rs),n}function ee(e,t,r=!1){B!==null&&(!Fe||B.f&ln)&&Ds()&&B.f&(fe|Ue|zt|ln)&&(Be===null||!Be.has(e))&&Va();let n=r?Xt(t):t;return or(e,n,Kr)}var Tt=null,ii=0;function or(e,t,r=null){if(!e.equals(t)){ft?Qe.set(e,t):Qe.has(e)||Qe.set(e,e.v);var n=yt.ensure();if(n.capture(e,t),e.f&fe){const i=e;e.f&z&&Bi(i),se===null&&Ii(i)}e.wv=_o(),Tt=null,ii=0,Qs(e,z,r),Tt=null,$!==null&&$.f&ne&&!($.f&(ke|lt))&&(Oe===null?cu([e]):Oe.push(e)),!n.is_fork&&pn.size>0&&!Js&&iu()}return t}function iu(){Js=!1;for(const e of pn){e.f&ne&&te(e,He);let t;try{t=Xr(e)}catch(r){t=!0}t&&ar(e)}pn.clear()}function Or(e){ee(e,e.v+1)}function Qs(e,t,r){var n=e.reactions;if(n!==null){var i=n.length;if(ii+=i,ii>1e5&&Tt===null&&(Tt=new Set),Tt!==null){if(Tt.has(e))return;Tt.add(e)}for(var s=0;s<i;s++){var a=n[s],o=a.f,u=(o&z)===0;if(u&&te(a,t),o&ln)pn.add(a);else if(o&fe){var l=a;se==null||se.delete(l),Qs(l,He,r)}else if(u){var f=a;o&Ue&&Ce!==null&&Ce.add(f),r!==null?r.push(f):Ci(f)}}}}function Xt(e){if(typeof e!="object"||e===null||Yt in e||Ls in e)return e;const t=Mi(e);if(t!==Sa&&t!==Aa)return e;var r=new Map,n=Os(e),i=le(0),s=Lt,a=o=>{if(Lt===s)return o();var u=B,l=Lt;Le(null),ns(s);var f=o();return Le(u),ns(l),f};return n&&r.set("length",le(e.length)),new Proxy(e,{defineProperty(o,u,l){(!("value"in l)||l.configurable===!1||l.enumerable===!1||l.writable===!1)&&ka();var f=r.get(u);return f===void 0?a(()=>{var d=le(l.value);return r.set(u,d),d}):ee(f,l.value,!0),!0},deleteProperty(o,u){var l=r.get(u);if(l===void 0){if(u in o){const f=a(()=>le(re));r.set(u,f),Or(i)}}else ee(l,re),Or(i);return!0},get(o,u,l){var v;if(u===Yt)return e;var f=r.get(u),d=u in o;if(f===void 0&&(!d||(v=Wt(o,u))!=null&&v.writable)&&(f=a(()=>{var c=Xt(d?o[u]:re),_=le(c);return _}),r.set(u,f)),f!==void 0){var p=w(f);return p===re?void 0:p}return Reflect.get(o,u,l)},getOwnPropertyDescriptor(o,u){var p;(p=this.has)==null||p.call(this,o,u);var l=Reflect.getOwnPropertyDescriptor(o,u),f=r.get(u);if(f!==void 0){var d=w(f);if(d===re)return;if(l&&"value"in l)l.value=d;else return{enumerable:!0,configurable:!0,value:d,writable:!0}}return l},has(o,u){var p;if(u===Yt)return!0;var l=r.get(u),f=l!==void 0&&l.v!==re||Reflect.has(o,u);if(l!==void 0||($!==null||B!==null)&&(!f||(p=Wt(o,u))!=null&&p.writable)){l===void 0&&(l=a(()=>{var v=f?Xt(o[u]):re,c=le(v);return c}),r.set(u,l));var d=w(l);if(d===re)return!1}return f},set(o,u,l,f){var k;var d=r.get(u),p=u in o;if(n&&u==="length")for(var v=l;v<d.v;v+=1){var c=r.get(v+"");c!==void 0?ee(c,re):v in o&&(c=a(()=>le(re)),r.set(v+"",c))}if(d===void 0)(!p||(k=Wt(o,u))!=null&&k.writable)&&(d=a(()=>le(void 0)),ee(d,Xt(l)),r.set(u,d));else{p=d.v!==re;var _=a(()=>Xt(l));ee(d,_)}var b=Reflect.getOwnPropertyDescriptor(o,u);if(b!=null&&b.set&&b.set.call(f,l),!p){if(n&&typeof u=="string"){var H=r.get("length"),G=Number(u);Number.isInteger(G)&&G>=H.v&&ee(H,G+1)}Or(i)}return!0},ownKeys(o){w(i);var u=Reflect.ownKeys(o).filter(d=>{var p=r.get(d);return p===void 0||p.v!==re});for(var[l,f]of r)f.v!==re&&!(l in o)&&u.push(l);return u},setPrototypeOf(){ja()}})}var ts,Ks,eo,to;function si(){if(ts===void 0){ts=window,Ks=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;eo=Wt(t,"firstChild").get,to=Wt(t,"nextSibling").get,Qi(e)&&(e[Kn]=void 0,e[Qr]=null,e[Na]=void 0,e.__e=void 0),Qi(r)&&(r[Er]=void 0)}}function je(e=""){return document.createTextNode(e)}function Ie(e){return eo.call(e)}function Ve(e){return to.call(e)}function vn(e,t){if(!F)return Ie(e);var r=Ie(L);if(r===null)r=L.appendChild(je());else if(t&&r.nodeType!==Sn){var n=je();return r==null||r.before(n),ge(n),n}return t&&Di(r),ge(r),r}function ro(e,t=!1){if(!F){var r=Ie(e);return r instanceof Comment&&r.data===""?Ve(r):r}if(t){if((L==null?void 0:L.nodeType)!==Sn){var n=je();return L==null||L.before(n),ge(n),n}Di(L)}return L}function en(e,t=!1){if(!F)return Ie(e);var r=vn(e,t);return hn(e),r}function oi(e,t=1,r=!1){let n=F?L:e;for(var i;t--;)i=n,n=Ve(n);if(!F)return n;if(r){if((n==null?void 0:n.nodeType)!==Sn){var s=je();return n===null?i==null||i.after(s):n.before(s),ge(s),s}Di(n)}return ge(n),n}function no(e){e.textContent=""}function io(){return!1}function Nn(e,t,r){return t==null||t===Hs?r?document.createElement(e,{is:r}):document.createElement(e):r?document.createElementNS(t,e,{is:r}):document.createElementNS(t,e)}function Di(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===Sn;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function su(e){var t=$;if(t===null)return B.f|=mt,e;if(!(t.f&Rt)&&!(t.f&rr))throw e;qe(e,t)}function qe(e,t){if(e===ut)throw e;if(!(t!==null&&t.f&oe)){for(;t!==null;){if(t.f&Qn&&!(t.f&(oe|$r))){if(!(t.f&Rt))throw e;try{t.b.error(e);return}catch(r){e=r}}t=t.parent}throw e}}function so(e){$===null&&(B===null&&Ua(),Da()),ft&&Ra()}function ou(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function Xe(e,t){var a;var r=$;r!==null&&r.f&ve&&(e|=ve);var n={ctx:_e,deps:null,nodes:null,f:e|z|Ge,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};A==null||A.register_created_effect(n);var i=n;if(e&rr)Mr!==null?Mr.push(n):yt.ensure().schedule(n);else if(t!==null){try{ar(n)}catch(o){throw me(n),o}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&Dt)&&(i=i.first,e&Ue&&e&nr&&i!==null&&(i.f|=nr))}if(i!==null&&(i.parent=r,r!==null&&ou(i,r),B!==null&&B.f&fe&&!(e<))){var s=B;((a=s.effects)!=null?a:s.effects=[]).push(i)}return n}function Ui(){return B!==null&&!Fe}function oo(e){const t=Xe(kr,null);return te(t,ne),t.teardown=e,t}function Ir(e){var i;so();var t=$.f,r=!B&&(t&ke)!==0&&_e!==null&&!_e.i;if(r){var n=_e;((i=n.e)!=null?i:n.e=[]).push(e)}else return ao(e)}function ao(e){return Xe(rr|Bs,e)}function au(e){return so(),Xe(kr|Bs,e)}function uu(e){yt.ensure();const t=Xe(lt|Dt,e);return()=>{me(t)}}function lu(e){yt.ensure();const t=Xe(lt|Dt,e);return(r={})=>new Promise(n=>{r.outro?Bt(t,()=>{me(t),n(void 0)}):(me(t),n(void 0))})}function Fi(e){return Xe(rr,e)}function fu(e){return Xe(zt|Dt,e)}function Pn(e,t=0){return Xe(kr|t,e)}function _n(e,t=[],r=[],n=[]){Za(n,t,r,i=>{Xe(kr,()=>{e(...i.map(w))})})}function Gi(e,t=0){var r=Xe(Ue|t,e);return r}function $e(e){return Xe(ke|Dt,e)}function uo(e){var t=e.teardown;if(t!==null){const r=ft,n=B;rs(!0),Le(null);try{t.call(null)}catch(i){qe(i,e.parent)}finally{rs(r),Le(n)}}}function ki(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&Mn(()=>{i.abort(jr)});var n=r.next;r.f<?r.parent=null:me(r,t),r=n}}function hu(e){for(var t=e.first;t!==null;){var r=t.next;t.f&ke||me(t),t=r}}function me(e,t=!0){var r=!1;(t||e.f&Ha)&&e.nodes!==null&&e.nodes.end!==null&&(lo(e.nodes.start,e.nodes.end),r=!0),e.f|=$r,ki(e,t&&!r),Br(e,0);var n=e.nodes&&e.nodes.t;if(n!==null)for(const s of n)s.stop();uo(e),e.f^=$r,e.f|=oe;var i=e.parent;i!==null&&i.first!==null&&fo(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function lo(e,t){for(;e!==null;){var r=e===t?null:Ve(e);e.remove(),e=r}}function fo(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 Bt(e,t,r=!0){var n=[];e.f|=Oi,ho(e,n,!0);var i=()=>{r&&me(e),t&&t()},s=n.length;if(s>0){var a=()=>--s||i();for(var o of n)o.out(a)}else i()}function ho(e,t,r){if(!(e.f&ve)){e.f^=ve;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<)){var a=(i.f&nr)!==0||(i.f&ke)!==0&&(e.f&Ue)!==0;ho(i,t,a?r:!1)}i=s}}}function mn(e){e.f&=~Oi,co(e,!0)}function co(e,t){if(!(e.f&Oi)&&e.f&ve){e.f^=ve,e.f&ne||(te(e,z),yt.ensure().schedule(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&nr)!==0||(r.f&ke)!==0;co(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 ji(e,t){if(e.nodes)for(var r=e.nodes.start,n=e.nodes.end;r!==null;){var i=r===n?null:Ve(r);t.append(r),r=i}}let ft=!1;function rs(e){ft=e}let B=null,Fe=!1;function Le(e){B=e}let $=null;function Ke(e){$=e}let Be=null;function po(e){B!==null&&(B.f&fn||B.f&fe)&&(Be!=null?Be:Be=new Set).add(e)}let be=null,Se=0,Oe=null;function cu(e){Oe=e}let vo=1,Mt=0,Lt=Mt;function ns(e){Lt=e}function _o(){return++vo}function Xr(e){var t=e.f;if(t&z)return!0;if(t&He){for(var r=e.deps,n=r.length,i=0;i<n;i++){var s=r[i];if(Xr(s)&&ks(s),s.wv>e.wv)return!0}t&Ge&&se===null&&te(e,ne)}return!1}function mo(e,t,r=!0){var n=e.reactions;if(n!==null&&!(Be!==null&&Be.has(e)))for(var i=0;i<n.length;i++){var s=n[i];s.f&fe?mo(s,t,!1):t===s&&(r?te(s,z):s.f&ne&&te(s,He),Ci(s))}}function go(e){var t=be,r=Se,n=Oe,i=B,s=Be,a=_e,o=Fe,u=Lt,l=e.f;be=null,Se=0,Oe=null,B=l&(ke|lt)?null:e,Be=null,sr(e.ctx),Fe=!1,Lt=++Mt,e.ac!==null&&(Mn(()=>{e.ac.abort(jr)}),e.ac=null);try{e.f|=fn;var f=e.fn,d=f();e.f|=Rt;var p=is(e);if(Ds()&&Oe!==null&&!Fe&&p!==null&&!(e.f&(fe|He|z)))for(var v=0;v<Oe.length;v++)mo(Oe[v],e);if(i!==null&&i!==e){if(Mt++,i.deps!==null)for(let c=0;c<r;c+=1)i.deps[c].rv=Mt;if(t!==null)for(const c of t)c.rv=Mt;Oe!==null&&(n===null?n=Oe:n.push(...Oe))}return e.f&mt&&(e.f^=mt),d}catch(c){return is(e),su(c)}finally{e.f^=fn,be=t,Se=r,Oe=n,B=i,Be=s,sr(a),Fe=o,Lt=u}}function is(e){var i,s;var t=e.deps,r=A==null?void 0:A.is_fork;if(be!==null){var n;if(r||Br(e,Se),t!==null&&Se>0)for(t.length=Se+be.length,n=0;n<be.length;n++)t[Se+n]=be[n];else e.deps=t=be;if(Ui()&&e.f&Ge)for(n=Se;n<t.length;n++)((s=(i=t[n]).reactions)!=null?s:i.reactions=[]).push(e)}else!r&&t!==null&&Se<t.length&&(Br(e,Se),t.length=Se);return t}function du(e,t){let r=t.reactions;if(r!==null){var n=Ta.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&fe&&(be===null||!Pr.call(be,t))){var s=t;s.f&Ge&&(s.f^=Ge),s.v!==re&&Ii(s),s.ac!==null&&Mn(()=>{s.ac.abort(jr),s.ac=null,te(s,z)}),eu(s),Br(s,0)}}function Br(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)du(e,r[n])}function ar(e){var t=e.f;if(!(t&oe)){te(e,ne);var r=$;$=e;try{t&(Ue|Is)?hu(e):ki(e),uo(e);var n=go(e);e.teardown=typeof n=="function"?n:null,e.wv=vo;var i;Ms&&Wa&&e.f&z&&e.deps}finally{$=r}}}function pu(){return Ft(this,null,function*(){yield Promise.resolve(),Ae()})}function w(e){var f;var t=e.f,r=(t&fe)!==0;if(B!==null&&!Fe){var n=$!==null&&($.f&oe)!==0;if(!n&&(Be===null||!Be.has(e))){var i=B.deps;if(B.f&fn)e.rv<Mt&&(e.rv=Mt,be===null&&i!==null&&i[Se]===e?Se++:be===null?be=[e]:be.push(e));else{(f=B.deps)!=null||(B.deps=[]),Pr.call(B.deps,e)||B.deps.push(e);var s=e.reactions;s===null?e.reactions=[B]:Pr.call(s,B)||s.push(B)}}}if(ft&&Qe.has(e))return Qe.get(e);if(r){var a=e;if(ft){var o=a.v;return(!(a.f&ne)&&a.reactions!==null||bo(a))&&(o=Bi(a)),Qe.set(a,o),o}var u=(a.f&Ge)===0&&!Fe&&B!==null&&(B.f&Ge)!==0,l=(a.f&Rt)===0;Xr(a)&&(u&&(a.f|=Ge),ks(a)),u&&!l&&(js(a),yo(a))}if(se!=null&&se.has(e))return se.get(e);if(e.f&mt)throw e.v;return e.v}function yo(e){if(e.f|=Ge,e.deps!==null)for(const r of e.deps){var t=r.reactions;t===null?r.reactions=[e]:Pr.call(t,e)||t.push(e),r.f&fe&&!(r.f&Ge)&&(js(r),yo(r))}}function bo(e){if(e.v===re)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Qe.has(t)||t.f&fe&&bo(t))return!0;return!1}function $n(e){var t=Fe;try{return Fe=!0,e()}finally{Fe=t}}function vu(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(Yt in e)ai(e);else if(!Array.isArray(e))for(let t in e){const r=e[t];typeof r=="object"&&r&&Yt in r&&ai(r)}}}function ai(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{ai(e[n],t)}catch(i){}const r=Mi(e);if(r!==Object.prototype&&r!==Array.prototype&&r!==Map.prototype&&r!==Set.prototype&&r!==Date.prototype){const n=Ns(r);for(let i in n){const s=n[i].get;if(s)try{s.call(e)}catch(a){}}}}}const Ot=Symbol("events"),Eo=new Set,ui=new Set;function tn(e,t,r){var n;((n=t[Ot])!=null?n:t[Ot]={})[e]=r}function xo(e){for(var t=0;t<e.length;t++)Eo.add(e[t]);for(var r of ui)r(e)}let kn=null,jn=!1;function ss(e){var _,b;var t=this,r=t.ownerDocument,n=e.type,i=((_=e.composedPath)==null?void 0:_.call(e))||[],s=i[0]||e.target;kn=e,jn||(jn=!0,setTimeout(()=>{jn=!1,kn=null}));var a=0,o=kn===e&&e[Ot];if(o){var u=i.indexOf(o);if(u!==-1&&(t===document||t===window)){e[Ot]=t;return}var l=i.indexOf(t);if(l===-1)return;u<=l&&(a=u)}if(s=i[a]||e.target,s!==t){tr(e,"currentTarget",{configurable:!0,get(){return s||r}});var f=B,d=$;Le(null),Ke(null);try{for(var p,v=[];s!==null&&s!==t;){try{var c=(b=s[Ot])==null?void 0:b[n];c!=null&&(!s.disabled||e.target===s)&&c.call(s,e)}catch(H){p?v.push(H):p=H}if(e.cancelBubble)break;a++,s=a<i.length?i[a]:null}if(p){for(let H of v)queueMicrotask(()=>{throw H});throw p}}finally{e[Ot]=t,delete e.currentTarget,Le(f),Ke(d)}}}var Ss;const Vn=((Ss=globalThis==null?void 0:globalThis.window)==null?void 0:Ss.trustedTypes)&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function _u(e){var t;return(t=Vn==null?void 0:Vn.createHTML(e))!=null?t:e}function mu(e){var t=Nn("template");return t.innerHTML=_u(e.replaceAll("<!>","<!---->")),t.content}function at(e,t){var r=$;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function Wr(e,t){var r=(t&ba)!==0,n=(t&Ea)!==0,i,s=!e.startsWith("<!>");return()=>{if(F)return at(L,null),L;i===void 0&&(i=mu(s?e:"<!>"+e),r||(i=Ie(i)));var a=n||Ks?document.importNode(i,!0):i.cloneNode(!0);if(r){var o=Ie(a),u=a.lastChild;at(o,u)}else at(a,a);return a}}function wo(){if(F)return at(L,null),L;var e=document.createDocumentFragment(),t=document.createComment(""),r=je();return e.append(t,r),at(t,r),e}function St(e,t){if(F){var r=$;(!(r.f&Rt)||r.nodes.end===null)&&(r.nodes.end=L),ir();return}e!==null&&e.before(t)}const gu=["touchstart","touchmove"];function yu(e){return gu.includes(e)}function bu(e){let t=0,r=Ct(0),n;return()=>{Ui()&&(w(r),Pn(()=>(t===0&&(n=$n(()=>e(()=>Or(r)))),t+=1,()=>{Ht(()=>{t-=1,t===0&&(n==null||n(),n=void 0,Or(r))})})))}}var Eu=nr|Dt;function xu(e,t,r,n){new wu(e,t,r,n)}var Ee,Dr,Ne,Pt,ue,xe,de,we,Ye,$t,vt,er,Ur,rt,xn,C,To,So,li,pt,Ao,fi,Sr,rn,hi,ci;class wu{constructor(t,r,n,i){I(this,C);X(this,"parent");X(this,"is_pending",!1);X(this,"transform_error");I(this,Ee);I(this,Dr,F?L:null);I(this,Ne);I(this,Pt);I(this,ue);I(this,xe,null);I(this,de,null);I(this,we,null);I(this,Ye,null);I(this,$t,0);I(this,vt,0);I(this,er,!1);I(this,Ur,new Map);I(this,rt,null);I(this,xn,bu(()=>(P(this,rt,Ct(h(this,$t))),()=>{P(this,rt,null)})));var s,a;P(this,Ee,t),P(this,Ne,r),P(this,Pt,o=>{var u=$;u.b=this,u.f|=Qn,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,P(this,ue,Gi(()=>{if(F){const o=Ni(h(this,Dr));ir();const u=o===Ai;if(o.startsWith(Ji)){const f=JSON.parse(o.slice(Ji.length));T(this,C,So).call(this,f)}else u?T(this,C,Ao).call(this):T(this,C,To).call(this)}else T(this,C,fi).call(this)},Eu)),F&&P(this,Ee,L)}defer_effect(t){Fs(t,h(this,Ur))}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){T(this,C,hi).call(this,t,r),P(this,$t,h(this,$t)+t),!(!h(this,rt)||h(this,er))&&(P(this,er,!0),Ht(()=>{P(this,er,!1),h(this,rt)&&or(h(this,rt),h(this,$t))}))}get_effect_pending(){return h(this,xn).call(this),w(h(this,rt))}error(t){if(t===ut||!h(this,Ne).onerror&&!h(this,Ne).failed)throw t;A!=null&&A.is_fork?(h(this,xe)&&A.skip_effect(h(this,xe)),h(this,de)&&A.skip_effect(h(this,de)),h(this,we)&&A.skip_effect(h(this,we)),A.oncommit(()=>{T(this,C,pt).call(this)||T(this,C,ci).call(this,t)})):T(this,C,ci).call(this,t)}}Ee=new WeakMap,Dr=new WeakMap,Ne=new WeakMap,Pt=new WeakMap,ue=new WeakMap,xe=new WeakMap,de=new WeakMap,we=new WeakMap,Ye=new WeakMap,$t=new WeakMap,vt=new WeakMap,er=new WeakMap,Ur=new WeakMap,rt=new WeakMap,xn=new WeakMap,C=new WeakSet,To=function(){try{P(this,xe,$e(()=>h(this,Pt).call(this,h(this,Ee))))}catch(t){this.error(t)}},So=function(t){const r=h(this,Ne).failed,{reset:n,invoke_onerror:i}=T(this,C,li).call(this,t);Ht(i),r&&P(this,we,$e(()=>{r(h(this,Ee),()=>t,()=>n)}))},li=function(t){var r=!1,n=!1;const i=()=>{if(!T(this,C,pt).call(this)){if(r){Ia();return}r=!0,n&&Xa(),h(this,we)!==null&&Bt(h(this,we),()=>{P(this,we,null)}),T(this,C,rn).call(this,()=>{T(this,C,fi).call(this)})}};return{reset:i,invoke_onerror:()=>{var a,o;if(!T(this,C,pt).call(this))try{n=!0,(o=(a=h(this,Ne)).onerror)==null||o.call(a,t,i),n=!1}catch(u){qe(u,h(this,ue)&&h(this,ue).parent)}}}},pt=function(){return(h(this,ue).f&(oe|$r))!==0},Ao=function(){const t=h(this,Ne).pending;t&&(this.is_pending=!0,P(this,de,$e(()=>t(h(this,Ee)))),Ht(()=>{if(!T(this,C,pt).call(this)){var r=P(this,Ye,document.createDocumentFragment()),n=je(),i=!1;if(r.append(n),P(this,xe,T(this,C,rn).call(this,()=>{try{return $e(()=>h(this,Pt).call(this,n))}catch(s){try{this.error(s),i=!0}catch(a){qe(a,h(this,ue).parent)}return null}})),h(this,xe)===null){P(this,Ye,null),i&&T(this,C,Sr).call(this,A);return}h(this,vt)===0&&(h(this,Ee).before(r),P(this,Ye,null),Bt(h(this,de),()=>{P(this,de,null)}),T(this,C,Sr).call(this,A))}}))},fi=function(){try{if(this.is_pending=this.has_pending_snippet(),P(this,vt,0),P(this,$t,0),P(this,xe,$e(()=>{h(this,Pt).call(this,h(this,Ee))})),h(this,vt)>0){var t=P(this,Ye,document.createDocumentFragment());ji(h(this,xe),t);const r=h(this,Ne).pending;P(this,de,$e(()=>r(h(this,Ee))))}else T(this,C,Sr).call(this,A)}catch(r){this.error(r)}},Sr=function(t){this.is_pending=!1,t.transfer_reactions(h(this,Ur))},rn=function(t){var r=$,n=B,i=_e;Ke(h(this,ue)),Le(h(this,ue)),sr(h(this,ue).ctx);try{return yt.ensure(),t()}finally{Ke(r),Le(n),sr(i)}},hi=function(t,r){var n;if(!this.has_pending_snippet()){this.parent&&T(n=this.parent,C,hi).call(n,t,r);return}P(this,vt,h(this,vt)+t),h(this,vt)===0&&(T(this,C,Sr).call(this,r),h(this,de)&&Bt(h(this,de),()=>{P(this,de,null)}),h(this,Ye)&&(h(this,Ee).before(h(this,Ye)),P(this,Ye,null)))},ci=function(t){h(this,xe)&&(me(h(this,xe)),P(this,xe,null)),h(this,de)&&(me(h(this,de)),P(this,de,null)),h(this,we)&&(me(h(this,we)),P(this,we,null)),F&&(ge(h(this,Dr)),Ba(),ge(cn()));let r=h(this,Ne).failed;const n=i=>{if(T(this,C,pt).call(this))return;const{reset:s,invoke_onerror:a}=T(this,C,li).call(this,i);a(),r&&!T(this,C,pt).call(this)&&P(this,we,T(this,C,rn).call(this,()=>{try{return $e(()=>{var o=$;o.b=this,o.f|=Qn,r(h(this,Ee),()=>i,()=>s)})}catch(o){return qe(o,h(this,ue).parent),null}}))};Ht(()=>{if(!T(this,C,pt).call(this)){var i;try{i=this.transform_error(t)}catch(s){qe(s,h(this,ue)&&h(this,ue).parent);return}i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(n,s=>qe(s,h(this,ue)&&h(this,ue).parent)):n(i)}})};function nn(e,t){var n;var r=t==null?"":typeof t=="object"?`${t}`:t;r!==((n=e[Er])!=null?n:e[Er]=e.nodeValue)&&(e[Er]=r,e.nodeValue=`${r}`)}function Ho(e,t){return Mo(e,t)}function Tu(e,t){var a;si(),t.intro=(a=t.intro)!=null?a:!1;const r=t.target,n=F,i=L;try{for(var s=Ie(r);s&&(s.nodeType!==cr||s.data!==As);)s=Ve(s);if(!s)throw ut;st(!0),ge(s);const o=Mo(e,Zr(Yr({},t),{anchor:s}));return st(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
|
|
2
|
+
`).some(u=>u.startsWith("https://svelte.dev/e/")))throw o;return o!==ut&&console.warn("Failed to hydrate: ",o),t.recover===!1&&Ga(),si(),no(r),st(!1),Ho(e,t)}finally{st(n),ge(i)}}const qr=new Map;function Mo(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:a=!0,transformError:o}){si();var u=void 0,l=lu(()=>{var f=r!=null?r:t.appendChild(je());xu(f,{pending:()=>{}},v=>{An({});var c=_e;if(s&&(c.c=s),i&&(n.$$events=i),F&&at(v,null),u=e(v,n)||$i(),F&&($.nodes.end=L,L===null||L.nodeType!==cr||L.data!==Hi))throw Vr(),ut;Hn()},o);var d=new Set,p=v=>{for(var c=0;c<v.length;c++){var _=v[c];if(!d.has(_)){d.add(_);var b=yu(_);for(const k of[t,document]){var H=qr.get(k);H===void 0&&(H=new Map,qr.set(k,H));var G=H.get(_);G===void 0?(k.addEventListener(_,ss,{passive:b}),H.set(_,1)):H.set(_,G+1)}}}};return p(Tn(Eo)),ui.add(p),()=>{var b;for(var v of d)for(const H of[t,document]){var c=qr.get(H),_=c.get(v);--_==0?(H.removeEventListener(v,ss),c.delete(v),c.size===0&&qr.delete(H)):c.set(v,_)}ui.delete(p),f!==r&&((b=f.parentNode)==null||b.removeChild(f))}});return di.set(u,l),u}let di=new WeakMap;function Su(e,t){const r=di.get(e);return r?(di.delete(e),r(t)):Promise.resolve()}var Re,Ze,Te,It,Fr,Gr,wn;class Au{constructor(t,r=!0){X(this,"anchor");I(this,Re,new Map);I(this,Ze,new Map);I(this,Te,new Map);I(this,It,new Set);I(this,Fr,!0);I(this,Gr,t=>{if(h(this,Re).has(t)){var r=h(this,Re).get(t),n=h(this,Ze).get(r);if(n)mn(n),h(this,It).delete(r);else{var i=h(this,Te).get(r);i&&(mn(i.effect),h(this,Ze).set(r,i.effect),h(this,Te).delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(const[s,a]of h(this,Re)){if(h(this,Re).delete(s),s===t)break;const o=h(this,Te).get(a);o&&(me(o.effect),h(this,Te).delete(a))}for(const[s,a]of h(this,Ze)){if(s===r||h(this,It).has(s))continue;const o=()=>{if(Array.from(h(this,Re).values()).includes(s)){var l=document.createDocumentFragment();ji(a,l),l.append(je()),h(this,Te).set(s,{effect:a,fragment:l})}else me(a);h(this,It).delete(s),h(this,Ze).delete(s)};h(this,Fr)||!n?(h(this,It).add(s),Bt(a,o,!1)):o()}}});I(this,wn,t=>{h(this,Re).delete(t);const r=Array.from(h(this,Re).values());for(const[n,i]of h(this,Te))r.includes(n)||(me(i.effect),h(this,Te).delete(n))});this.anchor=t,P(this,Fr,r)}ensure(t,r){var n=A,i=io();if(r&&!h(this,Ze).has(t)&&!h(this,Te).has(t))if(i){var s=document.createDocumentFragment(),a=je();s.append(a),h(this,Te).set(t,{effect:$e(()=>r(a)),fragment:s})}else h(this,Ze).set(t,$e(()=>r(this.anchor)));if(h(this,Re).set(n,t),i){for(const[o,u]of h(this,Ze))o===t?n.unskip_effect(u):n.skip_effect(u);for(const[o,u]of h(this,Te))o===t?n.unskip_effect(u.effect):n.skip_effect(u.effect);n.oncommit(h(this,Gr)),n.ondiscard(h(this,wn))}else F&&(this.anchor=L),h(this,Gr).call(this,n)}}Re=new WeakMap,Ze=new WeakMap,Te=new WeakMap,It=new WeakMap,Fr=new WeakMap,Gr=new WeakMap,wn=new WeakMap;function pi(e,t,r=!1){var n;F&&(n=L,ir());var i=new Au(e),s=r?nr:0;function a(o,u){if(F){var l=Ni(n);if(o!==parseInt(l.substring(1))){var f=cn();ge(f),i.anchor=f,st(!1),i.ensure(o,u),st(!0);return}}i.ensure(o,u)}Gi(()=>{var o=!1;t((u,l=0)=>{o=!0,a(l,u)}),o||a(-1,null)},s)}function Oo(e,t){return t}function Hu(e,t,r){var d;for(var n=[],i=t.length,s,a=t.length,o=0;o<i;o++){let p=t[o];Bt(p,()=>{if(s){if(s.pending.delete(p),s.done.add(p),s.pending.size===0){var v=e.outrogroups;vi(e,Tn(s.done)),v.delete(s),v.size===0&&(e.outrogroups=null)}}else a-=1},!1)}if(a===0){var u=n.length===0&&r!==null&&e.pending.size===0;if(u){var l=r,f=l.parentNode;no(f),f.append(l),e.items.clear()}vi(e,t,!u)}else s={pending:new Set(t),done:new Set},((d=e.outrogroups)!=null?d:e.outrogroups=new Set).add(s)}function vi(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|=it;const a=document.createDocumentFragment();ji(s,a)}else me(t[i],r)}}var kt;function No(e,t,r,n,i,s=null){var a=e,o=new Map;F&&ir();var u=null,l=Qa(()=>{var b=r();return Os(b)?b:b==null?[]:Tn(b)}),f=new Map,d=!0;function p(b){if(!(_.effect.f&oe)){_.pending.delete(b);var H=w(l);_.fallback=u,Mu(_,H,a,t,n),u!==null&&(H.length===0?u.f&it?(u.f^=it,Ar(u,null,a)):mn(u):Bt(u,()=>{u=null}))}}function v(b){_.pending.delete(b)}var c=Gi(()=>{var b=w(l),H=b.length;let G=!1;if(F){var k=Ni(a)===Ai;k!==(H===0)&&(a=cn(),ge(a),st(!1),G=!0)}for(var K=new Set,j=A,Y=io(),ae=0;ae<H;ae+=1){F&&L.nodeType===cr&&L.data===Hi&&(a=L,G=!0,st(!1));var Me=b[ae],ie=n(Me,ae),E=d?null:o.get(ie);E?(E.v&&or(E.v,Me),E.i&&or(E.i,ae),Y&&j.unskip_effect(E.e)):(E=Ou(o,d?a:kt!=null?kt:kt=je(),Me,ie,ae,i,t,r),d||(E.e.f|=it),o.set(ie,E)),K.add(ie)}if(H===0&&s&&!u&&(d?u=$e(()=>s(a)):(u=$e(()=>s(kt!=null?kt:kt=je())),u.f|=it)),H>K.size&&Ca(),F&&H>0&&ge(cn()),!d)if(f.set(j,K),Y){for(const[M,he]of o)K.has(M)||j.skip_effect(he.e);j.oncommit(p),j.ondiscard(v)}else p(j);G&&st(!0),w(l)}),_={effect:c,items:o,pending:f,outrogroups:null,fallback:u};d=!1,F&&(a=L)}function yr(e){for(;e!==null&&!(e.f&ke);)e=e.next;return e}function Mu(e,t,r,n,i){var Me;var s=t.length,a=e.items,o=yr(e.effect.first),u,l=null,f=[],d=[],p,v,c,_;for(_=0;_<s;_+=1){if(p=t[_],v=i(p,_),c=a.get(v).e,e.outrogroups!==null)for(const ie of e.outrogroups)ie.pending.delete(c),ie.done.delete(c);if(c.f&ve&&mn(c),c.f&it)if(c.f^=it,c===o)Ar(c,null,r);else{var b=l?l.next:o;c===e.effect.last&&(e.effect.last=c.prev),c.prev&&(c.prev.next=c.next),c.next&&(c.next.prev=c.prev),dt(e,l,c),dt(e,c,b),Ar(c,b,r),l=c,f=[],d=[],o=yr(l.next);continue}if(c!==o){if(u!==void 0&&u.has(c)){if(f.length<d.length){var H=d[0],G;l=H.prev;var k=f[0],K=f[f.length-1];for(G=0;G<f.length;G+=1)Ar(f[G],H,r);for(G=0;G<d.length;G+=1)u.delete(d[G]);dt(e,k.prev,K.next),dt(e,l,k),dt(e,K,H),o=H,l=K,_-=1,f=[],d=[]}else u.delete(c),Ar(c,o,r),dt(e,c.prev,c.next),dt(e,c,l===null?e.effect.first:l.next),dt(e,l,c),l=c;continue}for(f=[],d=[];o!==null&&o!==c;)(u!=null?u:u=new Set).add(o),d.push(o),o=yr(o.next);if(o===null)continue}c.f&it||f.push(c),l=c,o=yr(c.next)}if(e.outrogroups!==null){for(const ie of e.outrogroups)ie.pending.size===0&&(vi(e,Tn(ie.done)),(Me=e.outrogroups)==null||Me.delete(ie));e.outrogroups.size===0&&(e.outrogroups=null)}if(o!==null||u!==void 0){var j=[];if(u!==void 0)for(c of u)c.f&ve||j.push(c);for(;o!==null;)!(o.f&ve)&&o!==e.fallback&&j.push(o),o=yr(o.next);var Y=j.length;if(Y>0){var ae=null;Hu(e,j,ae)}}}function Ou(e,t,r,n,i,s,a,o){var u=a&ma?a&ya?Ct(r):Ri(r,!1,!1):null,l=a&ga?Ct(i):null;return{v:u,i:l,e:$e(()=>(s(t,u!=null?u:r,l!=null?l:i,o),()=>{e.delete(n)}))}}function Ar(e,t,r){if(e.nodes)for(var n=e.nodes.start,i=e.nodes.end,s=t&&!(t.f&it)?t.nodes.start:r;n!==null;){var a=Ve(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 Nu(e,t,r=!1,n=!1,i=!1,s=!1){var a=e,o="";if(r){var u=e;F&&(a=ge(Ie(u)))}_n(()=>{var _;var l=$;if(o===(o=(_=t())!=null?_:"")){F&&ir();return}if(r&&!F){l.nodes=null,u.innerHTML=o,o!==""&&at(Ie(u),u.lastChild);return}if(l.nodes!==null&&(lo(l.nodes.start,l.nodes.end),l.nodes=null),o!==""){if(F){L.data;for(var f=ir(),d=f;f!==null&&(f.nodeType!==cr||f.data!=="");)d=f,f=Ve(f);if(f===null)throw Vr(),ut;at(L,d),a=ge(f);return}var p=n?xa:i?wa:void 0,v=Nn(n?"svg":i?"math":"template",p);v.innerHTML=o;var c=n||i?v:v.content;if(at(Ie(c),c.lastChild),n||i)for(;Ie(c);)a.before(Ie(c));else a.before(c)}})}function Po(e,t){Fi(()=>{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=Nn("style");u.id=t.hash,u.textContent=t.code,n.appendChild(u)}})}function Pu(e,t,r){Fi(()=>{var n=$n(()=>t(e,r==null?void 0:r())||{});if(r&&(n!=null&&n.update)){var i=!1,s={};Pn(()=>{var a=r();vu(a),i&&Pi(s,a)&&(s=a,n.update(a))}),i=!0}if(n!=null&&n.destroy)return()=>n.destroy()})}const os=[...`
|
|
3
|
+
\r\f \v\uFEFF`];function $u(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||os.includes(n[a-1]))&&(o===n.length||os.includes(n[o]))?n=(a===0?"":n.substring(0,a))+n.substring(o+1):a=o}}return n===""?null:n}function $o(e,t,r,n,i,s){var a=e[Kn];if(F||a!==r||a===void 0){var o=$u(r,n,s);(!F||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e[Kn]=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 Iu=Symbol("is custom element"),Bu=Symbol("is html"),Lu=Pa?"link":"LINK";function Cu(e,t,r,n){var i=Ru(e);if(!(F&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===Lu))){var s=i[t];s!==(i[t]=r)&&(t==="loading"&&(e[Oa]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Du(e).has(t)?e[t]=r:F&&(typeof r=="number"||typeof r=="boolean")&&s===String(r)||e.setAttribute(t,r))}}function Ru(e){var t;return(t=e[Qr])!=null?t:e[Qr]={[Iu]:e.nodeName.includes("-"),[Bu]:e.namespaceURI===Hs}}var as=new Map;function Du(e){var t=e.getAttribute("is")||e.nodeName,r=as.get(t);if(r)return r;as.set(t,r=new Set);for(var n,i=e,s=Element.prototype;s!==i;){n=Ns(i);for(var a in n)n[a].set&&a!=="innerHTML"&&a!=="textContent"&&a!=="innerText"&&r.add(a);i=Mi(i)}return r}function Xn(e,t){return e===t||(e==null?void 0:e[Yt])===t}function Uu(e=$i(),t,r,n){var i=_e.r,s=$;return Fi(()=>{var a,o;return Pn(()=>{a=o,o=[],$n(()=>{Xn(r(...o),e)||(t(e,...o),a&&Xn(r(...a),e)&&t(null,...a))})}),()=>{let u=s;for(;u!==i&&u.parent!==null&&u.parent.f&$r;)u=u.parent;const l=()=>{o&&Xn(r(...o),e)&&t(null,...o)},f=u.teardown;u.teardown=()=>{l(),f==null||f()}}}),e}function Vi(e,t,r){if(e==null)return t(void 0),r&&r(void 0),ot;const n=$n(()=>e.subscribe(t,r));return n.unsubscribe?()=>n.unsubscribe():n}const jt=[];function Fu(e,t){return{subscribe:In(e,t).subscribe}}function In(e,t=ot){let r=null;const n=new Set;function i(o){if(Pi(e,o)&&(e=o,r)){const u=!jt.length;for(const l of n)l[1](),jt.push(l,e);if(u){for(let l=0;l<jt.length;l+=2)jt[l][0](jt[l+1]);jt.length=0}}}function s(o){i(o(e))}function a(o,u=ot){const l=[o,u];return n.add(l),n.size===1&&(r=t(i,s)||ot),o(e),()=>{n.delete(l),n.size===0&&r&&(r(),r=null)}}return{set:i,update:s,subscribe:a}}function dr(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 Fu(r,(a,o)=>{let u=!1;const l=[];let f=0,d=ot;const p=()=>{if(f)return;d();const c=t(n?l[0]:l,a,o);s?a(c):d=typeof c=="function"?c:ot},v=i.map((c,_)=>Vi(c,b=>{l[_]=b,f&=~(1<<_),u&&p()},()=>{f|=1<<_}));return u=!0,p(),function(){Ps(v),d(),u=!1}})}function Gu(e){let t;return Vi(e,r=>t=r)(),t}let _i=Symbol("unmounted");function Io(e,t,r){var s;const n=(s=r[t])!=null?s:r[t]={store:null,source:Ri(void 0),unsubscribe:ot};if(n.store!==e&&!(_i in r))if(n.unsubscribe(),n.store=e!=null?e:null,e==null)n.source.v=void 0,n.unsubscribe=ot;else{var i=!0;n.unsubscribe=Vi(e,a=>{i?n.source.v=a:ee(n.source,a)}),i=!1}return e&&_i in r?Gu(e):w(n.source)}function Bo(){const e={};function t(){oo(()=>{for(var r in e)e[r].unsubscribe();tr(e,_i,{enumerable:!1,value:!0})})}return[e,t]}function De(e,t,r,n){var i=n,s=!0,a=()=>(s&&(s=!1,i=n),i),o;o=e[t],o===void 0&&n!==void 0&&(o=a());var u;u=()=>{var p=e[t];return p===void 0?a():(s=!0,p)};var l=!1,f=On(()=>(l=!1,u())),d=$;return function(p,v){if(arguments.length>0){const c=v?w(f):p;return ee(f,c),l=!0,i!==void 0&&(i=c),p}return ft&&l||d.f&oe?f.v:w(f)}}function ku(e){return new ju(e)}var nt,Pe;class ju{constructor(t){I(this,nt);I(this,Pe);var s,a;var r=new Map,n=(o,u)=>{var l=Ri(u,!1,!1);return r.set(o,l),l};const i=new Proxy(Zr(Yr({},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===Ma?!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)}});P(this,Pe,(t.hydrate?Tu:Ho)(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)&&Ae(),P(this,nt,i.$$events);for(const o of Object.keys(h(this,Pe)))o==="$set"||o==="$destroy"||o==="$on"||tr(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=()=>{Su(h(this,Pe))}}$set(t){h(this,Pe).$set(t)}$on(t,r){h(this,nt)[t]=h(this,nt)[t]||[];const n=(...i)=>r.call(this,...i);return h(this,nt)[t].push(n),()=>{h(this,nt)[t]=h(this,nt)[t].filter(i=>i!==n)}}$destroy(){h(this,Pe).$destroy()}}nt=new WeakMap,Pe=new WeakMap;let Lo;typeof HTMLElement=="function"&&(Lo=class extends HTMLElement{constructor(t,r,n){super();X(this,"$$ctor");X(this,"$$s");X(this,"$$c");X(this,"$$cn",!1);X(this,"$$d",{});X(this,"$$r",!1);X(this,"$$p_d",{});X(this,"$$l",{});X(this,"$$l_u",new Map);X(this,"$$me");X(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 Ft(this,null,function*(){if(this.$$cn=!0,!this.$$c){let r=function(s){return a=>{const o=Nn("slot");s!=="default"&&(o.name=s),St(a,o)}};var t=r;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=Vu(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]=sn(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=ku({component:this.$$ctor,target:this.$$shadowRoot||this,props:Zr(Yr({},this.$$d),{$$slots:n,$$host:this})}),this.$$me=uu(()=>{Pn(()=>{var s;this.$$r=!0;for(const a of un(this.$$c)){if(!((s=this.$$p_d[a])!=null&&s.reflect))continue;this.$$d[a]=this.$$c[a];const o=sn(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]=sn(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 un(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function sn(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 Vu(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function Xi(e,t,r,n,i,s){let a=class extends Lo{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return un(t).map(o=>(t[o].attribute||o).toLowerCase())}};return un(t).forEach(o=>{tr(a.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(u){var d;u=sn(o,u,t),this.$$d[o]=u;var l=this.$$c;if(l){var f=(d=Wt(l,o))==null?void 0:d.get;f?l[o]=u:l.$set({[o]:u})}}})}),n.forEach(o=>{tr(a.prototype,o,{get(){var u;return(u=this.$$c)==null?void 0:u[o]}})}),e.element=a,a}class Xu extends Error{constructor(t,r){super(r),this.code=t,this.name="ElevateApiError"}}const Wu=e=>Ft(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 Xu(i.errorCode,i.errorMessage);return i.data}),zu=e=>Ft(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}),Yu=10,Zu=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 Ju=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Qu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ku={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Ju,function(){var r=1e3,n=6e4,i=36e5,s="millisecond",a="second",o="minute",u="hour",l="day",f="week",d="month",p="quarter",v="year",c="date",_="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,H=/\[([^\]]+)]|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,G={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(S){var y=["th","st","nd","rd"],m=S%100;return"["+S+(y[(m-20)%10]||y[m]||y[0])+"]"}},k=function(S,y,m){var x=String(S);return!x||x.length>=y?S:""+Array(y+1-x.length).join(m)+S},K={s:k,z:function(S){var y=-S.utcOffset(),m=Math.abs(y),x=Math.floor(m/60),g=m%60;return(y<=0?"+":"-")+k(x,2,"0")+":"+k(g,2,"0")},m:function S(y,m){if(y.date()<m.date())return-S(m,y);var x=12*(m.year()-y.year())+(m.month()-y.month()),g=y.clone().add(x,d),O=m-g<0,N=y.clone().add(x+(O?-1:1),d);return+(-(x+(m-g)/(O?g-N:N-g))||0)},a:function(S){return S<0?Math.ceil(S)||0:Math.floor(S)},p:function(S){return{M:d,y:v,w:f,d:l,D:c,h:u,m:o,s:a,ms:s,Q:p}[S]||String(S||"").toLowerCase().replace(/s$/,"")},u:function(S){return S===void 0}},j="en",Y={};Y[j]=G;var ae="$isDayjsObject",Me=function(S){return S instanceof he||!(!S||!S[ae])},ie=function S(y,m,x){var g;if(!y)return j;if(typeof y=="string"){var O=y.toLowerCase();Y[O]&&(g=O),m&&(Y[O]=m,g=O);var N=y.split("-");if(!g&&N.length>1)return S(N[0])}else{var V=y.name;Y[V]=y,g=V}return!x&&g&&(j=g),g||!x&&j},E=function(S,y){if(Me(S))return S.clone();var m=typeof y=="object"?y:{};return m.date=S,m.args=arguments,new he(m)},M=K;M.l=ie,M.i=Me,M.w=function(S,y){return E(S,{locale:y.$L,utc:y.$u,x:y.$x,$offset:y.$offset})};var he=function(){function S(m){this.$L=ie(m.locale,null,!0),this.parse(m),this.$x=this.$x||m.x||{},this[ae]=!0}var y=S.prototype;return y.parse=function(m){this.$d=function(x){var g=x.date,O=x.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(b);if(N){var V=N[2]-1||0,q=(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,q)):new Date(N[1],V,N[3]||1,N[4]||0,N[5]||0,N[6]||0,q)}}return new Date(g)}(m),this.init()},y.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()},y.$utils=function(){return M},y.isValid=function(){return this.$d.toString()!==_},y.isSame=function(m,x){var g=E(m);return this.startOf(x)<=g&&g<=this.endOf(x)},y.isAfter=function(m,x){return E(m)<this.startOf(x)},y.isBefore=function(m,x){return this.endOf(x)<E(m)},y.$g=function(m,x,g){return M.u(m)?this[x]:this.set(g,m)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(m,x){var g=this,O=!!M.u(x)||x,N=M.p(m),V=function(xt,ye){var ct=M.w(g.$u?Date.UTC(g.$y,ye,xt):new Date(g.$y,ye,xt),g);return O?ct:ct.endOf(l)},q=function(xt,ye){return M.w(g.toDate()[xt].apply(g.toDate("s"),(O?[0,0,0,0]:[23,59,59,999]).slice(ye)),g)},W=this.$W,J=this.$M,ce=this.$D,ht="set"+(this.$u?"UTC":"");switch(N){case v:return O?V(1,0):V(31,11);case d:return O?V(1,J):V(0,J+1);case f:var Et=this.$locale().weekStart||0,mr=(W<Et?W+7:W)-Et;return V(O?ce-mr:ce+(6-mr),J);case l:case c:return q(ht+"Hours",0);case u:return q(ht+"Minutes",1);case o:return q(ht+"Seconds",2);case a:return q(ht+"Milliseconds",3);default:return this.clone()}},y.endOf=function(m){return this.startOf(m,!1)},y.$set=function(m,x){var g,O=M.p(m),N="set"+(this.$u?"UTC":""),V=(g={},g[l]=N+"Date",g[c]=N+"Date",g[d]=N+"Month",g[v]=N+"FullYear",g[u]=N+"Hours",g[o]=N+"Minutes",g[a]=N+"Seconds",g[s]=N+"Milliseconds",g)[O],q=O===l?this.$D+(x-this.$W):x;if(O===d||O===v){var W=this.clone().set(c,1);W.$d[V](q),W.init(),this.$d=W.set(c,Math.min(this.$D,W.daysInMonth())).$d}else V&&this.$d[V](q);return this.init(),this},y.set=function(m,x){return this.clone().$set(m,x)},y.get=function(m){return this[M.p(m)]()},y.add=function(m,x){var g,O=this;m=Number(m);var N=M.p(x),V=function(J){var ce=E(O);return M.w(ce.date(ce.date()+Math.round(J*m)),O)};if(N===d)return this.set(d,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 q=(g={},g[o]=n,g[u]=i,g[a]=r,g)[N]||1,W=this.$d.getTime()+m*q;return M.w(W,this)},y.subtract=function(m,x){return this.add(-1*m,x)},y.format=function(m){var x=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,q=this.$m,W=this.$M,J=g.weekdays,ce=g.months,ht=g.meridiem,Et=function(ye,ct,gr,zr){return ye&&(ye[ct]||ye(x,O))||gr[ct].slice(0,zr)},mr=function(ye){return M.s(V%12||12,ye,"0")},xt=ht||function(ye,ct,gr){var zr=ye<12?"AM":"PM";return gr?zr.toLowerCase():zr};return O.replace(H,function(ye,ct){return ct||function(gr){switch(gr){case"YY":return String(x.$y).slice(-2);case"YYYY":return M.s(x.$y,4,"0");case"M":return W+1;case"MM":return M.s(W+1,2,"0");case"MMM":return Et(g.monthsShort,W,ce,3);case"MMMM":return Et(ce,W);case"D":return x.$D;case"DD":return M.s(x.$D,2,"0");case"d":return String(x.$W);case"dd":return Et(g.weekdaysMin,x.$W,J,2);case"ddd":return Et(g.weekdaysShort,x.$W,J,3);case"dddd":return J[x.$W];case"H":return String(V);case"HH":return M.s(V,2,"0");case"h":return mr(1);case"hh":return mr(2);case"a":return xt(V,q,!0);case"A":return xt(V,q,!1);case"m":return String(q);case"mm":return M.s(q,2,"0");case"s":return String(x.$s);case"ss":return M.s(x.$s,2,"0");case"SSS":return M.s(x.$ms,3,"0");case"Z":return N}return null}(ye)||N.replace(":","")})},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(m,x,g){var O,N=this,V=M.p(x),q=E(m),W=(q.utcOffset()-this.utcOffset())*n,J=this-q,ce=function(){return M.m(N,q)};switch(V){case v:O=ce()/12;break;case d:O=ce();break;case p:O=ce()/3;break;case f:O=(J-W)/6048e5;break;case l:O=(J-W)/864e5;break;case u:O=J/i;break;case o:O=J/n;break;case a:O=J/r;break;default:O=J}return g?O:M.a(O)},y.daysInMonth=function(){return this.endOf(d).$D},y.$locale=function(){return Y[this.$L]},y.locale=function(m,x){if(!m)return this.$L;var g=this.clone(),O=ie(m,x,!0);return O&&(g.$L=O),g},y.clone=function(){return M.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},S}(),_r=he.prototype;return E.prototype=_r,[["$ms",s],["$s",a],["$m",o],["$H",u],["$W",l],["$M",d],["$y",v],["$D",c]].forEach(function(S){_r[S[1]]=function(y){return this.$g(y,S[0],S[1])}}),E.extend=function(S,y){return S.$i||(S(y,he,E),S.$i=!0),E},E.locale=ie,E.isDayjs=Me,E.unix=function(S){return E(1e3*S)},E.en=Y[j],E.Ls=Y,E.p={},E})})(Ku);const el=e=>{window.postMessage({type:"Loyalty:LoyaltyLevelClicked",tierName:e},window.location.href)};var tl=function(t){return rl(t)&&!nl(t)};function rl(e){return!!e&&typeof e=="object"}function nl(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||ol(e)}var il=typeof Symbol=="function"&&Symbol.for,sl=il?Symbol.for("react.element"):60103;function ol(e){return e.$$typeof===sl}function al(e){return Array.isArray(e)?[]:{}}function Lr(e,t){return t.clone!==!1&&t.isMergeableObject(e)?ur(al(e),e,t):e}function ul(e,t,r){return e.concat(t).map(function(n){return Lr(n,r)})}function ll(e,t){if(!t.customMerge)return ur;var r=t.customMerge(e);return typeof r=="function"?r:ur}function fl(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function us(e){return Object.keys(e).concat(fl(e))}function Co(e,t){try{return t in e}catch(r){return!1}}function hl(e,t){return Co(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function cl(e,t,r){var n={};return r.isMergeableObject(e)&&us(e).forEach(function(i){n[i]=Lr(e[i],r)}),us(t).forEach(function(i){hl(e,i)||(Co(e,i)&&r.isMergeableObject(t[i])?n[i]=ll(i,r)(e[i],t[i],r):n[i]=Lr(t[i],r))}),n}function ur(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||ul,r.isMergeableObject=r.isMergeableObject||tl,r.cloneUnlessOtherwiseSpecified=Lr;var n=Array.isArray(t),i=Array.isArray(e),s=n===i;return s?n?r.arrayMerge(e,t,r):cl(e,t,r):Lr(t,r)}ur.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return ur(n,i,r)},{})};var dl=ur,pl=dl;const vl=Qu(pl);var mi=function(e,t){return mi=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])},mi(e,t)};function Bn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");mi(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Je=function(){return Je=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},Je.apply(this,arguments)};function _l(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 Wn(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 zn(e,t){var r=t&&t.cache?t.cache:wl,n=t&&t.serializer?t.serializer:El,i=t&&t.strategy?t.strategy:yl;return i(e,{cache:r,serializer:n})}function ml(e){return e==null||typeof e=="number"||typeof e=="boolean"}function gl(e,t,r,n){var i=ml(n)?n:r(n),s=t.get(i);return typeof s=="undefined"&&(s=e.call(this,n),t.set(i,s)),s}function Ro(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 Do(e,t,r,n,i){return r.bind(t,e,n,i)}function yl(e,t){var r=e.length===1?gl:Ro;return Do(e,this,r,t.cache.create(),t.serializer)}function bl(e,t){return Do(e,this,Ro,t.cache.create(),t.serializer)}var El=function(){return JSON.stringify(arguments)},xl=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}(),wl={create:function(){return new xl}},Yn={variadic:bl},gn=function(){return gn=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},gn.apply(this,arguments)};var D;(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"})(D||(D={}));var Z;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(Z||(Z={}));var lr;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(lr||(lr={}));function ls(e){return e.type===Z.literal}function Tl(e){return e.type===Z.argument}function Uo(e){return e.type===Z.number}function Fo(e){return e.type===Z.date}function Go(e){return e.type===Z.time}function ko(e){return e.type===Z.select}function jo(e){return e.type===Z.plural}function Sl(e){return e.type===Z.pound}function Vo(e){return e.type===Z.tag}function Xo(e){return!!(e&&typeof e=="object"&&e.type===lr.number)}function gi(e){return!!(e&&typeof e=="object"&&e.type===lr.dateTime)}var Wo=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Al=/(?:[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 Hl(e){var t={};return e.replace(Al,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 Q=function(){return Q=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},Q.apply(this,arguments)};var Ml=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Ol(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Ml).filter(function(p){return p.length>0}),r=[],n=0,i=t;n<i.length;n++){var s=i[n],a=s.split("/");if(a.length===0)throw new Error("Invalid number skeleton");for(var o=a[0],u=a.slice(1),l=0,f=u;l<f.length;l++){var d=f[l];if(d.length===0)throw new Error("Invalid number skeleton")}r.push({stem:o,options:u})}return r}function Nl(e){return e.replace(/^(.*?)-/,"")}var fs=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,zo=/^(@+)?(\+|#+)?[rs]?$/g,Pl=/(\*)(0+)|(#+)(0+)|(0+)/g,Yo=/^(0+)$/;function hs(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 Zo(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 $l(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)),!Yo.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function cs(e){var t={},r=Zo(e);return r||t}function Il(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=Nl(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=Q(Q(Q({},t),{notation:"scientific"}),i.options.reduce(function(u,l){return Q(Q({},u),cs(l))},{}));continue;case"engineering":t=Q(Q(Q({},t),{notation:"engineering"}),i.options.reduce(function(u,l){return Q(Q({},u),cs(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(Pl,function(u,l,f,d,p,v){if(l)t.minimumIntegerDigits=f.length;else{if(d&&p)throw new Error("We currently do not support maximum integer digits");if(v)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Yo.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(fs.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(fs,function(u,l,f,d,p,v){return f==="*"?t.minimumFractionDigits=l.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:p&&v?(t.minimumFractionDigits=p.length,t.maximumFractionDigits=p.length+v.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var s=i.options[0];s==="w"?t=Q(Q({},t),{trailingZeroDisplay:"stripIfInteger"}):s&&(t=Q(Q({},t),hs(s)));continue}if(zo.test(i.stem)){t=Q(Q({},t),hs(i.stem));continue}var a=Zo(i.stem);a&&(t=Q(Q({},t),a));var o=$l(i.stem);o&&(t=Q(Q({},t),o))}return t}var Jr={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function Bl(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=Ll(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 Ll(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var i=Jr[n||""]||Jr[r||""]||Jr["".concat(r,"-001")]||Jr["001"];return i[0]}var Zn,Cl=new RegExp("^".concat(Wo.source,"*")),Rl=new RegExp("".concat(Wo.source,"*$"));function U(e,t){return{start:e,end:t}}var Dl=!!String.prototype.startsWith&&"_a".startsWith("a",1),Ul=!!String.fromCodePoint,Fl=!!Object.fromEntries,Gl=!!String.prototype.codePointAt,kl=!!String.prototype.trimStart,jl=!!String.prototype.trimEnd,Vl=!!Number.isSafeInteger,Xl=Vl?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},yi=!0;try{var Wl=Jo("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");yi=((Zn=Wl.exec("a"))===null||Zn===void 0?void 0:Zn[0])==="a"}catch(e){yi=!1}var ds=Dl?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},bi=Ul?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},ps=Fl?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=Gl?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=kl?function(t){return t.trimStart()}:function(t){return t.replace(Cl,"")},Yl=jl?function(t){return t.trimEnd()}:function(t){return t.replace(Rl,"")};function Jo(e,t){return new RegExp(e,t)}var Ei;if(yi){var vs=Jo("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ei=function(t,r){var n;vs.lastIndex=r;var i=vs.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}}else Ei=function(t,r){for(var n=[];;){var i=qo(t,r);if(i===void 0||Qo(i)||Ql(i))break;n.push(i),r+=i>=65536?2:1}return bi.apply(void 0,n)};var Zl=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:Z.pound,location:U(o,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(D.UNMATCHED_CLOSING_TAG,U(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&xi(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:Z.literal,value:"<".concat(i,"/>"),location:U(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()||!xi(this.char()))return this.error(D.INVALID_TAG,U(o,this.clonePosition()));var u=this.clonePosition(),l=this.parseTagName();return i!==l?this.error(D.UNMATCHED_CLOSING_TAG,U(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Z.tag,value:i,children:a,location:U(n,this.clonePosition())},err:null}:this.error(D.INVALID_TAG,U(o,this.clonePosition())))}else return this.error(D.UNCLOSED_TAG,U(n,this.clonePosition()))}else return this.error(D.INVALID_TAG,U(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Jl(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),i="";;){var s=this.tryParseQuote(r);if(s){i+=s;continue}var a=this.tryParseUnquoted(t,r);if(a){i+=a;continue}var o=this.tryParseLeftAngleBracket();if(o){i+=o;continue}break}var u=U(n,this.clonePosition());return{val:{type:Z.literal,value:i,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!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 bi.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(),bi(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(D.EXPECT_ARGUMENT_CLOSING_BRACE,U(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(D.EMPTY_ARGUMENT,U(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(D.MALFORMED_ARGUMENT,U(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(D.EXPECT_ARGUMENT_CLOSING_BRACE,U(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Z.argument,value:i,location:U(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(D.EXPECT_ARGUMENT_CLOSING_BRACE,U(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(D.MALFORMED_ARGUMENT,U(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=Ei(this.message,r),i=r+n.length;this.bumpTo(i);var s=this.clonePosition(),a=U(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(D.EXPECT_ARGUMENT_TYPE,U(a,u));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var p=Yl(d.val);if(p.length===0)return this.error(D.EXPECT_ARGUMENT_STYLE,U(this.clonePosition(),this.clonePosition()));var v=U(f,this.clonePosition());l={style:p,styleLocation:v}}var c=this.tryParseArgumentClose(i);if(c.err)return c;var _=U(i,this.clonePosition());if(l&&ds(l==null?void 0:l.style,"::",0)){var b=zl(l.style.slice(2));if(o==="number"){var d=this.parseNumberSkeletonFromString(b,l.styleLocation);return d.err?d:{val:{type:Z.number,value:n,location:_,style:d.val},err:null}}else{if(b.length===0)return this.error(D.EXPECT_DATE_TIME_SKELETON,_);var H=b;this.locale&&(H=Bl(b,this.locale));var p={type:lr.dateTime,pattern:H,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?Hl(H):{}},G=o==="date"?Z.date:Z.time;return{val:{type:G,value:n,location:_,style:p},err:null}}}return{val:{type:o==="number"?Z.number:o==="date"?Z.date:Z.time,value:n,location:_,style:(s=l==null?void 0:l.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var k=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(D.EXPECT_SELECT_ARGUMENT_OPTIONS,U(k,gn({},k)));this.bumpSpace();var K=this.parseIdentifierIfPossible(),j=0;if(o!=="select"&&K.value==="offset"){if(!this.bumpIf(":"))return this.error(D.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,U(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(D.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,D.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),K=this.parseIdentifierIfPossible(),j=d.val}var Y=this.tryParsePluralOrSelectOptions(t,o,r,K);if(Y.err)return Y;var c=this.tryParseArgumentClose(i);if(c.err)return c;var ae=U(i,this.clonePosition());return o==="select"?{val:{type:Z.select,value:n,options:ps(Y.val),location:ae},err:null}:{val:{type:Z.plural,value:n,options:ps(Y.val),offset:j,pluralType:o==="plural"?"cardinal":"ordinal",location:ae},err:null}}default:return this.error(D.INVALID_ARGUMENT_TYPE,U(a,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(D.EXPECT_ARGUMENT_CLOSING_BRACE,U(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(D.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,U(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=Ol(t)}catch(i){return this.error(D.INVALID_NUMBER_SKELETON,r)}return{val:{type:lr.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?Il(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var s,a=!1,o=[],u=new Set,l=i.value,f=i.location;;){if(l.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var p=this.tryParseDecimalInteger(D.EXPECT_PLURAL_ARGUMENT_SELECTOR,D.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;f=U(d,this.clonePosition()),l=this.message.slice(d.offset,this.offset())}else break}if(u.has(l))return this.error(r==="select"?D.DUPLICATE_SELECT_ARGUMENT_SELECTOR:D.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);l==="other"&&(a=!0),this.bumpSpace();var v=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?D.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:D.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,U(this.clonePosition(),this.clonePosition()));var c=this.parseMessage(t+1,r,n);if(c.err)return c;var _=this.tryParseArgumentClose(v);if(_.err)return _;o.push([l,{value:c.val,location:U(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"?D.EXPECT_SELECT_ARGUMENT_SELECTOR:D.EXPECT_PLURAL_ARGUMENT_SELECTOR,U(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(D.MISSING_OTHER_CLAUSE,U(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=U(i,this.clonePosition());return s?(a*=n,Xl(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(ds(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()&&Qo(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 xi(e){return e>=97&&e<=122||e>=65&&e<=90}function ql(e){return xi(e)||e===47}function Jl(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Qo(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Ql(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 wi(e){e.forEach(function(t){if(delete t.location,ko(t)||jo(t))for(var r in t.options)delete t.options[r].location,wi(t.options[r].value);else Uo(t)&&Xo(t.style)||(Fo(t)||Go(t))&&gi(t.style)?delete t.style.location:Vo(t)&&wi(t.children)})}function Kl(e,t){t===void 0&&(t={}),t=gn({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Zl(e,t).parse();if(r.err){var n=SyntaxError(D[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||wi(r.val),r.val}var fr;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(fr||(fr={}));var Ln=function(e){Bn(t,e);function t(r,n,i){var s=e.call(this,r)||this;return s.code=n,s.originalMessage=i,s}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),_s=function(e){Bn(t,e);function t(r,n,i,s){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),fr.INVALID_VALUE,s)||this}return t}(Ln),ef=function(e){Bn(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),fr.INVALID_VALUE,i)||this}return t}(Ln),tf=function(e){Bn(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),fr.MISSING_VALUE,n)||this}return t}(Ln),pe;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(pe||(pe={}));function rf(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==pe.literal||r.type!==pe.literal?t.push(r):n.value+=r.value,t},[])}function nf(e){return typeof e=="function"}function on(e,t,r,n,i,s,a){if(e.length===1&&ls(e[0]))return[{type:pe.literal,value:e[0].value}];for(var o=[],u=0,l=e;u<l.length;u++){var f=l[u];if(ls(f)){o.push({type:pe.literal,value:f.value});continue}if(Sl(f)){typeof s=="number"&&o.push({type:pe.literal,value:r.getNumberFormat(t).format(s)});continue}var d=f.value;if(!(i&&d in i))throw new tf(d,a);var p=i[d];if(Tl(f)){(!p||typeof p=="string"||typeof p=="number")&&(p=typeof p=="string"||typeof p=="number"?String(p):""),o.push({type:typeof p=="string"?pe.literal:pe.object,value:p});continue}if(Fo(f)){var v=typeof f.style=="string"?n.date[f.style]:gi(f.style)?f.style.parsedOptions:void 0;o.push({type:pe.literal,value:r.getDateTimeFormat(t,v).format(p)});continue}if(Go(f)){var v=typeof f.style=="string"?n.time[f.style]:gi(f.style)?f.style.parsedOptions:n.time.medium;o.push({type:pe.literal,value:r.getDateTimeFormat(t,v).format(p)});continue}if(Uo(f)){var v=typeof f.style=="string"?n.number[f.style]:Xo(f.style)?f.style.parsedOptions:void 0;v&&v.scale&&(p=p*(v.scale||1)),o.push({type:pe.literal,value:r.getNumberFormat(t,v).format(p)});continue}if(Vo(f)){var c=f.children,_=f.value,b=i[_];if(!nf(b))throw new ef(_,"function",a);var H=on(c,t,r,n,i,s),G=b(H.map(function(j){return j.value}));Array.isArray(G)||(G=[G]),o.push.apply(o,G.map(function(j){return{type:typeof j=="string"?pe.literal:pe.object,value:j}}))}if(ko(f)){var k=f.options[p]||f.options.other;if(!k)throw new _s(f.value,p,Object.keys(f.options),a);o.push.apply(o,on(k.value,t,r,n,i));continue}if(jo(f)){var k=f.options["=".concat(p)];if(!k){if(!Intl.PluralRules)throw new Ln(`Intl.PluralRules is not available in this environment.
|
|
4
|
+
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
5
|
+
`,fr.MISSING_INTL_API,a);var K=r.getPluralRules(t,{type:f.pluralType}).select(p-(f.offset||0));k=f.options[K]||f.options.other}if(!k)throw new _s(f.value,p,Object.keys(f.options),a);o.push.apply(o,on(k.value,t,r,n,i,p-(f.offset||0)));continue}}return rf(o)}function sf(e,t){return t?Je(Je(Je({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=Je(Je({},e[n]),t[n]||{}),r},{})):e}function of(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=sf(e[n],t[n]),r},Je({},e)):e}function qn(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function af(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:zn(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,Wn([void 0],r,!1)))},{cache:qn(e.number),strategy:Yn.variadic}),getDateTimeFormat:zn(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,Wn([void 0],r,!1)))},{cache:qn(e.dateTime),strategy:Yn.variadic}),getPluralRules:zn(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,Wn([void 0],r,!1)))},{cache:qn(e.pluralRules),strategy:Yn.variadic})}}var uf=function(){function e(t,r,n,i){r===void 0&&(r=e.defaultLocale);var s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var l=s.formatToParts(u);if(l.length===1)return l[0].value;var f=l.reduce(function(d,p){return!d.length||p.type!==pe.literal||typeof d[d.length-1]!="string"?d.push(p.value):d[d.length-1]+=p.value,d},[]);return f.length<=1?f[0]||"":f},this.formatToParts=function(u){return on(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=_l(a,["formatters"]);this.ast=e.__parse(t,Je(Je({},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=of(e.formats,n),this.formatters=i&&i.formatters||af(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=Kl,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 lf(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={},ff=(e,t,r)=>r&&(t in _t||(_t[t]={}),e in _t[t]||(_t[t][e]=r),r),Ko=(e,t)=>{if(t==null)return;if(t in _t&&e in _t[t])return _t[t][e];const r=Cn(t);for(let n=0;n<r.length;n++){const i=r[n],s=cf(i,e);if(s)return ff(e,t,s)}};let Wi;const pr=In({});function hf(e){return Wi[e]||null}function ea(e){return e in Wi}function cf(e,t){if(!ea(e))return null;const r=hf(e);return lf(r,t)}function df(e){if(e==null)return;const t=Cn(e);for(let r=0;r<t.length;r++){const n=t[r];if(ea(n))return n}}function ta(e,...t){delete _t[e],pr.update(r=>(r[e]=vl.all([r[e]||{},...t]),r))}dr([pr],([e])=>Object.keys(e));pr.subscribe(e=>Wi=e);const an={};function pf(e,t){an[e].delete(t),an[e].size===0&&delete an[e]}function ra(e){return an[e]}function vf(e){return Cn(e).map(t=>{const r=ra(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function Ti(e){return e==null?!1:Cn(e).some(t=>{var r;return(r=ra(t))==null?void 0:r.size})}function _f(e,t){return Promise.all(t.map(n=>(pf(e,n),n().then(i=>i.default||i)))).then(n=>ta(e,...n))}const br={};function na(e){if(!Ti(e))return e in br?br[e]:Promise.resolve();const t=vf(e);return br[e]=Promise.all(t.map(([r,n])=>_f(r,n))).then(()=>{if(Ti(e))return na(e);delete br[e]}),br[e]}const mf={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"}}},gf={fallbackLocale:null,loadingDelay:200,formats:mf,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},yf=gf;function hr(){return yf}const Jn=In(!1);var bf=Object.defineProperty,Ef=Object.defineProperties,xf=Object.getOwnPropertyDescriptors,ms=Object.getOwnPropertySymbols,wf=Object.prototype.hasOwnProperty,Tf=Object.prototype.propertyIsEnumerable,gs=(e,t,r)=>t in e?bf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Sf=(e,t)=>{for(var r in t||(t={}))wf.call(t,r)&&gs(e,r,t[r]);if(ms)for(var r of ms(t))Tf.call(t,r)&&gs(e,r,t[r]);return e},Af=(e,t)=>Ef(e,xf(t));let Si;const yn=In(null);function ys(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function Cn(e,t=hr().fallbackLocale){const r=ys(e);return t?[...new Set([...r,...ys(t)])]:r}function Ut(){return Si!=null?Si:void 0}yn.subscribe(e=>{Si=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Hf=e=>{if(e&&df(e)&&Ti(e)){const{loadingDelay:t}=hr();let r;return typeof window!="undefined"&&Ut()!=null&&t?r=window.setTimeout(()=>Jn.set(!0),t):Jn.set(!0),na(e).then(()=>{yn.set(e)}).finally(()=>{clearTimeout(r),Jn.set(!1)})}return yn.set(e)},bt=Af(Sf({},yn),{set:Hf}),Rn=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var Mf=Object.defineProperty,bn=Object.getOwnPropertySymbols,ia=Object.prototype.hasOwnProperty,sa=Object.prototype.propertyIsEnumerable,bs=(e,t,r)=>t in e?Mf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,zi=(e,t)=>{for(var r in t||(t={}))ia.call(t,r)&&bs(e,r,t[r]);if(bn)for(var r of bn(t))sa.call(t,r)&&bs(e,r,t[r]);return e},vr=(e,t)=>{var r={};for(var n in e)ia.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&bn)for(var n of bn(e))t.indexOf(n)<0&&sa.call(e,n)&&(r[n]=e[n]);return r};const Cr=(e,t)=>{const{formats:r}=hr();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Of=Rn(e=>{var t=e,{locale:r,format:n}=t,i=vr(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=Cr("number",n)),new Intl.NumberFormat(r,i)}),Nf=Rn(e=>{var t=e,{locale:r,format:n}=t,i=vr(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=Cr("date",n):Object.keys(i).length===0&&(i=Cr("date","short")),new Intl.DateTimeFormat(r,i)}),Pf=Rn(e=>{var t=e,{locale:r,format:n}=t,i=vr(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=Cr("time",n):Object.keys(i).length===0&&(i=Cr("time","short")),new Intl.DateTimeFormat(r,i)}),$f=(e={})=>{var t=e,{locale:r=Ut()}=t,n=vr(t,["locale"]);return Of(zi({locale:r},n))},If=(e={})=>{var t=e,{locale:r=Ut()}=t,n=vr(t,["locale"]);return Nf(zi({locale:r},n))},Bf=(e={})=>{var t=e,{locale:r=Ut()}=t,n=vr(t,["locale"]);return Pf(zi({locale:r},n))},Lf=Rn((e,t=Ut())=>new uf(e,t,hr().formats,{ignoreTag:hr().ignoreTag})),Cf=(e,t={})=>{var r,n,i,s;let a=t;typeof e=="object"&&(a=e,e=a.id);const{values:o,locale:u=Ut(),default:l}=a;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let f=Ko(e,u);if(!f)f=(s=(i=(n=(r=hr()).handleMissingMessage)==null?void 0:n.call(r,{locale:u,id:e,defaultValue:l}))!=null?i:l)!=null?s:e;else if(typeof f!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),f;if(!o)return f;let d=f;try{d=Lf(f,u).format(o)}catch(p){p instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,p.message)}return d},Rf=(e,t)=>Bf(t).format(e),Df=(e,t)=>If(t).format(e),Uf=(e,t)=>$f(t).format(e),Ff=(e,t=Ut())=>Ko(e,t),oa=dr([bt,pr],()=>Cf);dr([bt],()=>Rf);dr([bt],()=>Df);dr([bt],()=>Uf);dr([bt,pr],()=>Ff);function aa({withLocale:e,translations:t}){bt.subscribe(r=>{r==null&&(pr.set(t),bt.set(e))})}function ua(e,t){ta(e,t)}function la(e){bt.set(e)}const Gf=e=>{let t=le(void 0),r=le(void 0),n=le(void 0),i=le(void 0),s=le(!1),a=le(void 0);const o=()=>Ft(exports,null,function*(){var v;const{apiEndpoint:u,userSession:l,locale:f,loadLevels:d,onLevelLoaded:p}=e();if(!(!u||!l)){ee(s,!0),ee(a,void 0);try{const c=[Wu({apiEndpoint:u,userSession:l,locale:f}).then(_=>{var H,G,k,K,j,Y;const b=_.level;b.name=((H=b.presentation)==null?void 0:H.displayName)||b.name,b.spendablePoints=((G=_.spendableWallet)==null?void 0:G.total.points)||0,ee(t,b,!0),ee(n,(k=_.loyaltyWallet)==null?void 0:k.total,!0),ee(i,(K=_.spendableWallet)==null?void 0:K.total,!0),p==null||p({elevateLevel:b}),p==null||p({elevateLevelWalletTotal:(j=_.spendableWallet)==null?void 0:j.total,loyaltyWalletTotal:(Y=_.loyaltyWallet)==null?void 0:Y.total})})];d&&c.push(zu({apiEndpoint:u,userSession:l,locale:f}).then(_=>{ee(r,_,!0)})),yield Promise.all(c),yield pu(),w(r)&&w(t)&&(p==null||p({calculatedLevelFlag:qu(w(r),(v=w(t).loyaltyPoints)!=null?v:0)}))}catch(c){ee(a,c,!0),console.error("Failed to load elevate info:",c)}finally{ee(s,!1)}}});return Ir(()=>{const{apiEndpoint:u,userSession:l,locale:f,loadLevels:d}=e();o()}),Ir(()=>{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}},kf={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ő"}},Nr=10,jf=7,Vf=4;var Xf=Wr('<span class="loyalty-pagination__ellipsis" aria-hidden="true">...</span>'),Wf=Wr('<button type="button"> </button>'),zf=Wr('<div class="loyalty-pagination__pages"><button class="loyalty-pagination__btn loyalty-pagination__btn--prev" type="button"> </button> <!> <button class="loyalty-pagination__btn loyalty-pagination__btn--next" type="button"> </button></div>'),Yf=Wr('<div class="loyalty-pagination"><!></div>');const Zf={hash:"svelte-1op0ean",code:`.loyalty-pagination {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 {width:auto;margin-left:auto;justify-content:flex-end;padding-right:10px;}.loyalty-pagination__pages {justify-content:flex-end;}
|
|
8
|
+
}.loyalty-pagination__pages {display:flex;flex-wrap:wrap;align-items:center;gap:8px;justify-content:flex-start;}.loyalty-pagination__ellipsis {display:inline-flex;align-items:center;justify-content:center;color:var(--text-default, #dfe3e8);font-size:13px;width:24px;}.loyalty-pagination__btn {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 {background:var(--accent, #ffcc00);color:var(--text-on-color, #261d00);}.loyalty-pagination__btn:disabled {cursor:default;color:var(--text-muted, rgba(251, 251, 251, 0.15));}.loyalty-pagination__btn--prev,
|
|
9
|
+
.loyalty-pagination__btn--next {width:95px;}
|
|
10
|
+
|
|
11
|
+
@media (max-width: 767px) {.loyalty-pagination__btn--prev,
|
|
12
|
+
.loyalty-pagination__btn--next {width:90px;}
|
|
13
|
+
}.loyalty-pagination__btn--prev:not(:disabled),
|
|
14
|
+
.loyalty-pagination__btn--next:not(:disabled) {color:var(--text-default, #dfe3e8);}`};function Yi(e,t){An(t,!0),Po(e,Zf);const r=()=>Io(oa,"$_",n),[n,i]=Bo(),s=De(t,"offset",7,0),a=De(t,"limit",7,Nr),o=De(t,"total",7,0),u=De(t,"onPageChange",7,E=>{}),l=De(t,"locale",7,"en");aa({withLocale:l(),translations:{}}),Object.entries(kf).forEach(([E,M])=>{ua(E,M)}),Ir(()=>{var E;la((E=l())!=null?E:"en")});const f=wt(()=>Number(s())||0),d=wt(()=>Number(a())||Nr),p=wt(()=>Number(o())||0),v=wt(()=>Math.max(1,Math.ceil(w(p)/Math.max(1,w(d))))),c=wt(()=>w(d)>0?Math.floor(w(f)/w(d)):0);let _=le(!1);Ir(()=>{const E=window.matchMedia("(max-width: 767px)"),M=he=>{ee(_,he.matches,!0)};return ee(_,E.matches,!0),E.addEventListener("change",M),()=>E.removeEventListener("change",M)});const b=(E,M,he)=>E<=(he?Vf:jf)?Array.from({length:E},(m,x)=>x):M<=1||M>=E-2?[0,1,"ellipsis",E-2,E-1]:[0,"ellipsis",M,"ellipsis",E-1],H=wt(()=>b(w(v),w(c),w(_))),G=E=>u()(E*w(d)),k=()=>u()(Math.max(0,w(c)-1)*w(d)),K=()=>u()(Math.min(w(v)-1,w(c)+1)*w(d));var j={get offset(){return s()},set offset(E=0){s(E),Ae()},get limit(){return a()},set limit(E=Nr){a(E),Ae()},get total(){return o()},set total(E=0){o(E),Ae()},get onPageChange(){return u()},set onPageChange(E=M=>{}){u(E),Ae()},get locale(){return l()},set locale(E="en"){l(E),Ae()}},Y=Yf(),ae=vn(Y);{var Me=E=>{var M=zf(),he=vn(M),_r=en(he,!0),S=oi(he,2);No(S,17,()=>w(H),Oo,(x,g)=>{var O=wo(),N=ro(O);{var V=W=>{var J=Xf();St(W,J)},q=W=>{var J=Wf();let ce;var ht=en(J,!0);_n(()=>{ce=$o(J,1,"loyalty-pagination__btn",null,ce,{"loyalty-pagination__btn--active":w(g)===w(c)}),nn(ht,w(g)+1)}),tn("click",J,()=>G(w(g))),St(W,J)};pi(N,W=>{w(g)==="ellipsis"?W(V):W(q,-1)})}St(x,O)});var y=oi(S,2),m=en(y,!0);hn(M),_n((x,g)=>{he.disabled=w(c)<=0,nn(_r,x),y.disabled=w(c)>=w(v)-1,nn(m,g)},[()=>r()("prev"),()=>r()("next")]),tn("click",he,k),tn("click",y,K),St(E,M)};pi(ae,E=>{w(v)>1&&E(Me)})}hn(Y),St(e,Y);var ie=Hn(j);return i(),ie}xo(["click"]);Xi(Yi,{offset:{},limit:{},total:{},onPageChange:{},locale:{}},[],[],{mode:"open"});function fa(e,t){An(t,!0);let r=De(t,"offset",7,0),n=De(t,"limit",7,Nr),i=De(t,"total",7,0),s=De(t,"onPageChange"),a=De(t,"locale",7,"en");var o={get offset(){return r()},set offset(u=0){r(u),Ae()},get limit(){return n()},set limit(u=Nr){n(u),Ae()},get total(){return i()},set total(u=0){i(u),Ae()},get onPageChange(){return s()},set onPageChange(u){s(u),Ae()},get locale(){return a()},set locale(u="en"){a(u),Ae()}};return Yi(e,{get offset(){return r()},get limit(){return n()},get total(){return i()},get onPageChange(){return s()},get locale(){return a()}}),Hn(o)}customElements.define("loyalty-pagination",Xi(fa,{offset:{},limit:{},total:{},onPageChange:{},locale:{}},[],[]));const qf=Object.freeze(Object.defineProperty({__proto__:null,default:fa},Symbol.toStringTag,{value:"Module"}));exports.$format=oa;exports.ITEMS_LIMIT_DEFAULT=Zu;exports.LoyaltyPagination=Yi;exports.LoyaltyPagination_ce=qf;exports.MOBILE_LOAD_ITEMS=Yu;exports.action=Pu;exports.addNewMessages=ua;exports.append=St;exports.append_styles=Po;exports.bind_this=Uu;exports.child=vn;exports.comment=wo;exports.createElevateData=Gf;exports.create_custom_element=Xi;exports.delegate=xo;exports.delegated=tn;exports.each=No;exports.first_child=ro;exports.flushSync=Ae;exports.from_html=Wr;exports.get=w;exports.html=Nu;exports.if_block=pi;exports.index=Oo;exports.only_child=en;exports.pop=Hn;exports.prop=De;exports.proxy=Xt;exports.push=An;exports.reset=hn;exports.sendLoyaltyLevelClicked=el;exports.set=ee;exports.setLocale=la;exports.set_attribute=Cu;exports.set_class=$o;exports.set_text=nn;exports.setupI18n=aa;exports.setup_stores=Bo;exports.sibling=oi;exports.state=le;exports.store_get=Io;exports.template_effect=_n;exports.user_derived=wt;exports.user_effect=Ir;exports.user_pre_effect=au;
|