@everymatrix/loyalty-points-card 0.1.11 → 0.1.13
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/LoyaltyPointsCard-5OfeNw6l.js +6378 -0
- package/components/{LoyaltyPointsCard-CkgdCVDQ.js → LoyaltyPointsCard-CULWD6ZO.js} +2263 -2622
- package/components/LoyaltyPointsCard-CjxDfDyI.cjs +21 -0
- package/components/LoyaltyPointsCard-D4gxs6co.cjs +21 -0
- package/es2015/loyalty-points-card.cjs +1 -0
- package/es2015/loyalty-points-card.js +28 -0
- package/esnext/loyalty-points-card.cjs +1 -1
- package/esnext/loyalty-points-card.js +8 -3
- package/package.json +5 -2
- package/components/LoyaltyPointsCard-xROmaSc_.cjs +0 -21
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const Ui="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(Ui);const Gi=2,yn="[",Pr="[!",En="]",ot={},G=Symbol(),vr=!1;var ji=Array.isArray,Vi=Array.prototype.indexOf,Wi=Array.from,Gt=Object.keys,Ht=Object.defineProperty,at=Object.getOwnPropertyDescriptor,Xi=Object.prototype,Yi=Array.prototype,zi=Object.getPrototypeOf,zr=Object.isExtensible;const Ne=()=>{};function xn(e){for(var t=0;t<e.length;t++)e[t]()}function wn(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const j=2,jt=4,Qt=8,Tn=1<<24,$e=16,Oe=32,De=64,Lr=128,fe=512,X=1024,Z=2048,Be=4096,ge=8192,Te=16384,Kt=32768,ut=65536,qr=1<<17,Sn=1<<18,ze=1<<19,qi=1<<20,Xe=32768,_r=1<<21,Mr=1<<22,Ie=1<<23,or=Symbol("$state"),Zi=Symbol("legacy props"),it=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Nr=3,Lt=8;function Ji(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Qi(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Ki(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function es(e){throw new Error("https://svelte.dev/e/effect_orphan")}function ts(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function rs(){throw new Error("https://svelte.dev/e/hydration_failed")}function ns(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function is(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function ss(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function as(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function er(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function os(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let D=!1;function st(e){D=e}let P;function ve(e){if(e===null)throw er(),ot;return P=e}function Ir(){return ve(Pe(P))}function Ke(e){if(D){if(Pe(P)!==null)throw er(),ot;P=e}}function us(e=1){if(D){for(var t=e,r=P;t--;)r=Pe(r);P=r}}function Hn(e=!0){for(var t=0,r=P;;){if(r.nodeType===Lt){var n=r.data;if(n===En){if(t===0)return r;t-=1}else(n===yn||n===Pr)&&(t+=1)}var i=Pe(r);e&&r.remove(),r=i}}function ls(e){if(!e||e.nodeType!==Lt)throw er(),ot;return e.data}function An(e){return e===this.v}function $n(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function fs(e){return!$n(e,this.v)}let hs=!1,he=null;function lt(e){he=e}function Rr(e,t=!1,r){he={p:he,i:!1,c:null,e:null,s:e,x:null,l:null}}function Cr(e){var t=he,r=t.e;if(r!==null){t.e=null;for(var n of r)Yn(n)}return e!==void 0&&(t.x=e),t.i=!0,he=t.p,e??{}}function On(){return!0}let Ge=[];function Bn(){var e=Ge;Ge=[],xn(e)}function Dr(e){if(Ge.length===0&&!wt){var t=Ge;queueMicrotask(()=>{t===Ge&&Bn()})}Ge.push(e)}function cs(){for(;Ge.length>0;)Bn()}function Pn(e){var t=$;if(t===null)return T.f|=Ie,e;if(t.f&Kt)ft(e,t);else{if(!(t.f&Lr))throw e;t.b.error(e)}}function ft(e,t){for(;t!==null;){if(t.f&Lr)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const ds=-7169;function U(e,t){e.f=e.f&ds|t}function kr(e){e.f&fe||e.deps===null?U(e,X):U(e,Be)}function Ln(e){if(e!==null)for(const t of e)!(t.f&j)||!(t.f&Xe)||(t.f^=Xe,Ln(t.deps))}function Mn(e,t,r){e.f&Z?t.add(e):e.f&Be&&r.add(e),Ln(e.deps),U(e,X)}const Rt=new Set;let I=null,ce=null,ue=[],tr=null,mr=!1,wt=!1;class de{committed=!1;current=new Map;previous=new Map;#e=new Set;#t=new Set;#r=0;#s=0;#a=null;#i=new Set;#n=new Set;skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#s>0}process(t){ue=[],this.apply();var r=[],n=[];for(const i of t)this.#o(i,r,n);this.is_fork||this.#l(),this.is_deferred()?(this.#u(n),this.#u(r)):(I=null,Zr(n),Zr(r),this.#a?.resolve()),ce=null}#o(t,r,n){t.f^=X;for(var i=t.first,s=null;i!==null;){var a=i.f,o=(a&(Oe|De))!==0,u=o&&(a&X)!==0,l=u||(a&ge)!==0||this.skipped_effects.has(i);if(!l&&i.fn!==null){o?i.f^=X:s!==null&&a&(jt|Qt|Tn)?s.b.defer_effect(i):a&jt?r.push(i):Nt(i)&&(a&$e&&this.#i.add(i),$t(i));var f=i.first;if(f!==null){i=f;continue}}var c=i.parent;for(i=i.next;i===null&&c!==null;)c===s&&(s=null),i=c.next,c=c.parent}}#u(t){for(var r=0;r<t.length;r+=1)Mn(t[r],this.#i,this.#n)}capture(t,r){r!==G&&!this.previous.has(t)&&this.previous.set(t,r),t.f&Ie||(this.current.set(t,t.v),ce?.set(t,t.v))}activate(){I=this,this.apply()}deactivate(){I===this&&(I=null,ce=null)}flush(){if(this.activate(),ue.length>0){if(Nn(),I!==null&&I!==this)return}else this.#r===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#t)t(this);this.#t.clear()}#l(){if(this.#s===0){for(const t of this.#e)t();this.#e.clear()}this.#r===0&&this.#f()}#f(){if(Rt.size>1){this.previous.clear();var t=ce,r=!0;for(const i of Rt){if(i===this){r=!1;continue}const s=[];for(const[o,u]of this.current){if(i.current.has(o))if(r&&u!==i.current.get(o))i.current.set(o,u);else continue;s.push(o)}if(s.length===0)continue;const a=[...i.current.keys()].filter(o=>!this.current.has(o));if(a.length>0){var n=ue;ue=[];const o=new Set,u=new Map;for(const l of s)In(l,a,o,u);if(ue.length>0){I=i,i.apply();for(const l of ue)i.#o(l,[],[]);i.deactivate()}ue=n}}I=null,ce=t}this.committed=!0,Rt.delete(this)}increment(t){this.#r+=1,t&&(this.#s+=1)}decrement(t){this.#r-=1,t&&(this.#s-=1),this.revive()}revive(){for(const t of this.#i)this.#n.delete(t),U(t,Z),He(t);for(const t of this.#n)U(t,Be),He(t);this.flush()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#t.add(t)}settled(){return(this.#a??=wn()).promise}static ensure(){if(I===null){const t=I=new de;Rt.add(I),wt||de.enqueue(()=>{I===t&&t.flush()})}return I}static enqueue(t){Dr(t)}apply(){}}function le(e){var t=wt;wt=!0;try{for(var r;;){if(cs(),ue.length===0&&(I?.flush(),ue.length===0))return tr=null,r;Nn()}}finally{wt=t}}function Nn(){var e=Ve;mr=!0;var t=null;try{var r=0;for(Xt(!0);ue.length>0;){var n=de.ensure();if(r++>1e3){var i,s;ps()}n.process(ue),Re.clear()}}finally{mr=!1,Xt(e),tr=null}}function ps(){try{ts()}catch(e){ft(e,tr)}}let xe=null;function Zr(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if(!(n.f&(Te|ge))&&Nt(n)&&(xe=new Set,$t(n),n.deps===null&&n.first===null&&n.nodes===null&&(n.teardown===null&&n.ac===null?Qn(n):n.fn=null),xe?.size>0)){Re.clear();for(const i of xe){if(i.f&(Te|ge))continue;const s=[i];let a=i.parent;for(;a!==null;)xe.has(a)&&(xe.delete(a),s.push(a)),a=a.parent;for(let o=s.length-1;o>=0;o--){const u=s[o];u.f&(Te|ge)||$t(u)}}xe.clear()}}xe=null}}function In(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&j?In(i,t,r,n):s&(Mr|$e)&&!(s&Z)&&Rn(i,t,n)&&(U(i,Z),He(i))}}function Rn(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const i of e.deps){if(t.includes(i))return!0;if(i.f&j&&Rn(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function He(e){for(var t=tr=e;t.parent!==null;){t=t.parent;var r=t.f;if(mr&&t===$&&r&$e&&!(r&Sn))return;if(r&(De|Oe)){if(!(r&X))return;t.f^=X}}ue.push(t)}function vs(e){let t=0,r=Mt(0),n;return()=>{Gr()&&(H(r),zn(()=>(t===0&&(n=li(()=>e(()=>Tt(r)))),t+=1,()=>{Dr(()=>{t-=1,t===0&&(n?.(),n=void 0,Tt(r))})})))}}var _s=ut|ze|Lr;function ms(e,t,r){new gs(e,t,r)}class gs{parent;is_pending=!1;#e;#t=D?P:null;#r;#s;#a;#i=null;#n=null;#o=null;#u=null;#l=null;#f=0;#h=0;#d=!1;#p=new Set;#v=new Set;#c=null;#y=vs(()=>(this.#c=Mt(this.#f),()=>{this.#c=null}));constructor(t,r,n){this.#e=t,this.#r=r,this.#s=n,this.parent=$.b,this.is_pending=!!this.#r.pending,this.#a=qn(()=>{if($.b=this,D){const s=this.#t;Ir(),s.nodeType===Lt&&s.data===Pr?this.#x():(this.#E(),this.#h===0&&(this.is_pending=!1))}else{var i=this.#g();try{this.#i=we(()=>n(i))}catch(s){this.error(s)}this.#h>0?this.#m():this.is_pending=!1}return()=>{this.#l?.remove()}},_s),D&&(this.#e=P)}#E(){try{this.#i=we(()=>this.#s(this.#e))}catch(t){this.error(t)}}#x(){const t=this.#r.pending;t&&(this.#n=we(()=>t(this.#e)),de.enqueue(()=>{var r=this.#g();this.#i=this.#_(()=>(de.ensure(),we(()=>this.#s(r)))),this.#h>0?this.#m():(St(this.#n,()=>{this.#n=null}),this.is_pending=!1)}))}#g(){var t=this.#e;return this.is_pending&&(this.#l=Ae(),this.#e.before(this.#l),t=this.#l),t}defer_effect(t){Mn(t,this.#p,this.#v)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#r.pending}#_(t){var r=$,n=T,i=he;be(this.#a),re(this.#a),lt(this.#a.ctx);try{return t()}catch(s){return Pn(s),null}finally{be(r),re(n),lt(i)}}#m(){const t=this.#r.pending;this.#i!==null&&(this.#u=document.createDocumentFragment(),this.#u.append(this.#l),ti(this.#i,this.#u)),this.#n===null&&(this.#n=we(()=>t(this.#e)))}#b(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#b(t);return}if(this.#h+=t,this.#h===0){this.is_pending=!1;for(const r of this.#p)U(r,Z),He(r);for(const r of this.#v)U(r,Be),He(r);this.#p.clear(),this.#v.clear(),this.#n&&St(this.#n,()=>{this.#n=null}),this.#u&&(this.#e.before(this.#u),this.#u=null)}}update_pending_count(t){this.#b(t),this.#f+=t,this.#c&&Wt(this.#c,this.#f)}get_effect_pending(){return this.#y(),H(this.#c)}error(t){var r=this.#r.onerror;let n=this.#r.failed;if(this.#d||!r&&!n)throw t;this.#i&&(ne(this.#i),this.#i=null),this.#n&&(ne(this.#n),this.#n=null),this.#o&&(ne(this.#o),this.#o=null),D&&(ve(this.#t),us(),ve(Hn()));var i=!1,s=!1;const a=()=>{if(i){os();return}i=!0,s&&as(),de.ensure(),this.#f=0,this.#o!==null&&St(this.#o,()=>{this.#o=null}),this.is_pending=this.has_pending_snippet(),this.#i=this.#_(()=>(this.#d=!1,we(()=>this.#s(this.#e)))),this.#h>0?this.#m():this.is_pending=!1};var o=T;try{re(null),s=!0,r?.(t,a),s=!1}catch(u){ft(u,this.#a&&this.#a.parent)}finally{re(o)}n&&Dr(()=>{this.#o=this.#_(()=>{de.ensure(),this.#d=!0;try{return we(()=>{n(this.#e,()=>t,()=>a)})}catch(u){return ft(u,this.#a.parent),null}finally{this.#d=!1}})})}}function bs(e,t,r,n){const i=Fr;if(r.length===0&&e.length===0){n(t.map(i));return}var s=I,a=$,o=ys();function u(){Promise.all(r.map(l=>Es(l))).then(l=>{o();try{n([...t.map(i),...l])}catch(f){a.f&Te||ft(f,a)}s?.deactivate(),Vt()}).catch(l=>{ft(l,a)})}e.length>0?Promise.all(e).then(()=>{o();try{return u()}finally{s?.deactivate(),Vt()}}):u()}function ys(){var e=$,t=T,r=he,n=I;return function(s=!0){be(e),re(t),lt(r),s&&n?.activate()}}function Vt(){be(null),re(null),lt(null)}function Fr(e){var t=j|Z,r=T!==null&&T.f&j?T:null;return $!==null&&($.f|=ze),{ctx:he,deps:null,effects:null,equals:An,f:t,fn:e,reactions:null,rv:0,v:G,wv:0,parent:r??$,ac:null}}function Es(e,t,r){let n=$;n===null&&Ji();var i=n.b,s=void 0,a=Mt(G),o=!T,u=new Map;return Ls(()=>{var l=wn();s=l.promise;try{Promise.resolve(e()).then(l.resolve,l.reject).then(()=>{f===I&&f.committed&&f.deactivate(),Vt()})}catch(d){l.reject(d),Vt()}var f=I;if(o){var c=i.is_rendered();i.update_pending_count(1),f.increment(c),u.get(f)?.reject(it),u.delete(f),u.set(f,l)}const h=(d,m=void 0)=>{if(f.activate(),m)m!==it&&(a.f|=Ie,Wt(a,m));else{a.f&Ie&&(a.f^=Ie),Wt(a,d);for(const[x,M]of u){if(u.delete(x),x===f)break;M.reject(it)}}o&&(i.update_pending_count(-1),f.decrement(c))};l.promise.then(h,d=>h(null,d||"unknown"))}),Xn(()=>{for(const l of u.values())l.reject(it)}),new Promise(l=>{function f(c){function h(){c===s?l(a):f(s)}c.then(h,h)}f(s)})}function et(e){const t=Fr(e);return ri(t),t}function Cn(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)ne(t[r])}}function xs(e){for(var t=e.parent;t!==null;){if(!(t.f&j))return t.f&Te?null:t;t=t.parent}return null}function Ur(e){var t,r=$;be(xs(e));try{e.f&=~Xe,Cn(e),t=ai(e)}finally{be(r)}return t}function Dn(e){var t=Ur(e);if(!e.equals(t)&&(e.wv=ii(),(!I?.is_fork||e.deps===null)&&(e.v=t,e.deps===null))){U(e,X);return}Ce||(ce!==null?(Gr()||I?.is_fork)&&ce.set(e,t):kr(e))}let gr=new Set;const Re=new Map;let kn=!1;function Mt(e,t){var r={f:0,v:e,reactions:null,equals:An,rv:0,wv:0};return r}function ee(e,t){const r=Mt(e);return ri(r),r}function Fn(e,t=!1,r=!0){const n=Mt(e);return t||(n.equals=fs),n}function F(e,t,r=!1){T!==null&&(!pe||T.f&qr)&&On()&&T.f&(j|$e|Mr|qr)&&!Se?.includes(e)&&ss();let n=r?Et(t):t;return Wt(e,n)}function Wt(e,t){if(!e.equals(t)){var r=e.v;Ce?Re.set(e,t):Re.set(e,r),e.v=t;var n=de.ensure();if(n.capture(e,r),e.f&j){const i=e;e.f&Z&&Ur(i),kr(i)}e.wv=ii(),Un(e,Z),$!==null&&$.f&X&&!($.f&(Oe|De))&&(oe===null?Rs([e]):oe.push(e)),!n.is_fork&&gr.size>0&&!kn&&ws()}return t}function ws(){kn=!1;var e=Ve;Xt(!0);const t=Array.from(gr);try{for(const r of t)r.f&X&&U(r,Be),Nt(r)&&$t(r)}finally{Xt(e)}gr.clear()}function Tt(e){F(e,e.v+1)}function Un(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i],a=s.f,o=(a&Z)===0;if(o&&U(s,t),a&j){var u=s;ce?.delete(u),a&Xe||(a&fe&&(s.f|=Xe),Un(u,Be))}else o&&(a&$e&&xe!==null&&xe.add(s),He(s))}}function Et(e){if(typeof e!="object"||e===null||or in e)return e;const t=zi(e);if(t!==Xi&&t!==Yi)return e;var r=new Map,n=ji(e),i=ee(0),s=We,a=o=>{if(We===s)return o();var u=T,l=We;re(null),rn(s);var f=o();return re(u),rn(l),f};return n&&r.set("length",ee(e.length)),new Proxy(e,{defineProperty(o,u,l){(!("value"in l)||l.configurable===!1||l.enumerable===!1||l.writable===!1)&&ns();var f=r.get(u);return f===void 0?f=a(()=>{var c=ee(l.value);return r.set(u,c),c}):F(f,l.value,!0),!0},deleteProperty(o,u){var l=r.get(u);if(l===void 0){if(u in o){const f=a(()=>ee(G));r.set(u,f),Tt(i)}}else F(l,G),Tt(i);return!0},get(o,u,l){if(u===or)return e;var f=r.get(u),c=u in o;if(f===void 0&&(!c||at(o,u)?.writable)&&(f=a(()=>{var d=Et(c?o[u]:G),m=ee(d);return m}),r.set(u,f)),f!==void 0){var h=H(f);return h===G?void 0:h}return Reflect.get(o,u,l)},getOwnPropertyDescriptor(o,u){var l=Reflect.getOwnPropertyDescriptor(o,u);if(l&&"value"in l){var f=r.get(u);f&&(l.value=H(f))}else if(l===void 0){var c=r.get(u),h=c?.v;if(c!==void 0&&h!==G)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return l},has(o,u){if(u===or)return!0;var l=r.get(u),f=l!==void 0&&l.v!==G||Reflect.has(o,u);if(l!==void 0||$!==null&&(!f||at(o,u)?.writable)){l===void 0&&(l=a(()=>{var h=f?Et(o[u]):G,d=ee(h);return d}),r.set(u,l));var c=H(l);if(c===G)return!1}return f},set(o,u,l,f){var c=r.get(u),h=u in o;if(n&&u==="length")for(var d=l;d<c.v;d+=1){var m=r.get(d+"");m!==void 0?F(m,G):d in o&&(m=a(()=>ee(G)),r.set(d+"",m))}if(c===void 0)(!h||at(o,u)?.writable)&&(c=a(()=>ee(void 0)),F(c,Et(l)),r.set(u,c));else{h=c.v!==G;var x=a(()=>Et(l));F(c,x)}var M=Reflect.getOwnPropertyDescriptor(o,u);if(M?.set&&M.set.call(f,l),!h){if(n&&typeof u=="string"){var se=r.get("length"),Y=Number(u);Number.isInteger(Y)&&Y>=se.v&&F(se,Y+1)}Tt(i)}return!0},ownKeys(o){H(i);var u=Reflect.ownKeys(o).filter(c=>{var h=r.get(c);return h===void 0||h.v!==G});for(var[l,f]of r)f.v!==G&&!(l in o)&&u.push(l);return u},setPrototypeOf(){is()}})}var Jr,Gn,jn,Vn;function br(){if(Jr===void 0){Jr=window,Gn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;jn=at(t,"firstChild").get,Vn=at(t,"nextSibling").get,zr(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),zr(r)&&(r.__t=void 0)}}function Ae(e=""){return document.createTextNode(e)}function At(e){return jn.call(e)}function Pe(e){return Vn.call(e)}function tt(e,t){if(!D)return At(e);var r=At(P);if(r===null)r=P.appendChild(Ae());else if(t&&r.nodeType!==Nr){var n=Ae();return r?.before(n),ve(n),n}return ve(r),r}function Ts(e,t=!1){if(!D){var r=At(e);return r instanceof Comment&&r.data===""?Pe(r):r}if(t&&P?.nodeType!==Nr){var n=Ae();return P?.before(n),ve(n),n}return P}function Qr(e,t=1,r=!1){let n=D?P:e;for(var i;t--;)i=n,n=Pe(n);if(!D)return n;if(r&&n?.nodeType!==Nr){var s=Ae();return n===null?i?.after(s):n.before(s),ve(s),s}return ve(n),n}function Ss(e){e.textContent=""}function Hs(){return!1}function Wn(e){var t=T,r=$;re(null),be(null);try{return e()}finally{re(t),be(r)}}function As(e){$===null&&(T===null&&es(),Ki()),Ce&&Qi()}function $s(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function ye(e,t,r){var n=$;n!==null&&n.f&ge&&(e|=ge);var i={ctx:he,deps:null,nodes:null,f:e|Z|fe,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};if(r)try{$t(i),i.f|=Kt}catch(o){throw ne(i),o}else t!==null&&He(i);var s=i;if(r&&s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&!(s.f&ze)&&(s=s.first,e&$e&&e&ut&&s!==null&&(s.f|=ut)),s!==null&&(s.parent=n,n!==null&&$s(s,n),T!==null&&T.f&j&&!(e&De))){var a=T;(a.effects??=[]).push(s)}return i}function Gr(){return T!==null&&!pe}function Xn(e){const t=ye(Qt,null,!1);return U(t,X),t.teardown=e,t}function Kr(e){As();var t=$.f,r=!T&&(t&Oe)!==0&&(t&Kt)===0;if(r){var n=he;(n.e??=[]).push(e)}else return Yn(e)}function Yn(e){return ye(jt|qi,e,!1)}function Os(e){de.ensure();const t=ye(De|ze,e,!0);return()=>{ne(t)}}function Bs(e){de.ensure();const t=ye(De|ze,e,!0);return(r={})=>new Promise(n=>{r.outro?St(t,()=>{ne(t),n(void 0)}):(ne(t),n(void 0))})}function Ps(e){return ye(jt,e,!1)}function Ls(e){return ye(Mr|ze,e,!0)}function zn(e,t=0){return ye(Qt|t,e,!0)}function en(e,t=[],r=[],n=[]){bs(n,t,r,i=>{ye(Qt,()=>e(...i.map(H)),!0)})}function qn(e,t=0){var r=ye($e|t,e,!0);return r}function we(e){return ye(Oe|ze,e,!0)}function Zn(e){var t=e.teardown;if(t!==null){const r=Ce,n=T;tn(!0),re(null);try{t.call(null)}finally{tn(r),re(n)}}}function Jn(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&Wn(()=>{i.abort(it)});var n=r.next;r.f&De?r.parent=null:ne(r,t),r=n}}function Ms(e){for(var t=e.first;t!==null;){var r=t.next;t.f&Oe||ne(t),t=r}}function ne(e,t=!0){var r=!1;(t||e.f&Sn)&&e.nodes!==null&&e.nodes.end!==null&&(Ns(e.nodes.start,e.nodes.end),r=!0),Jn(e,t&&!r),Yt(e,0),U(e,Te);var n=e.nodes&&e.nodes.t;if(n!==null)for(const s of n)s.stop();Zn(e);var i=e.parent;i!==null&&i.first!==null&&Qn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Ns(e,t){for(;e!==null;){var r=e===t?null:Pe(e);e.remove(),e=r}}function Qn(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 St(e,t,r=!0){var n=[];Kn(e,n,!0);var i=()=>{r&&ne(e),t&&t()},s=n.length;if(s>0){var a=()=>--s||i();for(var o of n)o.out(a)}else i()}function Kn(e,t,r){if(!(e.f&ge)){e.f^=ge;var n=e.nodes&&e.nodes.t;if(n!==null)for(const o of n)(o.is_global||r)&&t.push(o);for(var i=e.first;i!==null;){var s=i.next,a=(i.f&ut)!==0||(i.f&Oe)!==0&&(e.f&$e)!==0;Kn(i,t,a?r:!1),i=s}}}function Is(e){ei(e,!0)}function ei(e,t){if(e.f&ge){e.f^=ge,e.f&X||(U(e,Z),He(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&ut)!==0||(r.f&Oe)!==0;ei(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 ti(e,t){if(e.nodes)for(var r=e.nodes.start,n=e.nodes.end;r!==null;){var i=r===n?null:Pe(r);t.append(r),r=i}}let Ve=!1;function Xt(e){Ve=e}let Ce=!1;function tn(e){Ce=e}let T=null,pe=!1;function re(e){T=e}let $=null;function be(e){$=e}let Se=null;function ri(e){T!==null&&(Se===null?Se=[e]:Se.push(e))}let te=null,ie=0,oe=null;function Rs(e){oe=e}let ni=1,je=0,We=je;function rn(e){We=e}function ii(){return++ni}function Nt(e){var t=e.f;if(t&Z)return!0;if(t&j&&(e.f&=~Xe),t&Be){for(var r=e.deps,n=r.length,i=0;i<n;i++){var s=r[i];if(Nt(s)&&Dn(s),s.wv>e.wv)return!0}t&fe&&ce===null&&U(e,X)}return!1}function si(e,t,r=!0){var n=e.reactions;if(n!==null&&!Se?.includes(e))for(var i=0;i<n.length;i++){var s=n[i];s.f&j?si(s,t,!1):t===s&&(r?U(s,Z):s.f&X&&U(s,Be),He(s))}}function ai(e){var t=te,r=ie,n=oe,i=T,s=Se,a=he,o=pe,u=We,l=e.f;te=null,ie=0,oe=null,T=l&(Oe|De)?null:e,Se=null,lt(e.ctx),pe=!1,We=++je,e.ac!==null&&(Wn(()=>{e.ac.abort(it)}),e.ac=null);try{e.f|=_r;var f=e.fn,c=f(),h=e.deps;if(te!==null){var d;if(Yt(e,ie),h!==null&&ie>0)for(h.length=ie+te.length,d=0;d<te.length;d++)h[ie+d]=te[d];else e.deps=h=te;if(Gr()&&e.f&fe)for(d=ie;d<h.length;d++)(h[d].reactions??=[]).push(e)}else h!==null&&ie<h.length&&(Yt(e,ie),h.length=ie);if(On()&&oe!==null&&!pe&&h!==null&&!(e.f&(j|Be|Z)))for(d=0;d<oe.length;d++)si(oe[d],e);if(i!==null&&i!==e){if(je++,i.deps!==null)for(let m=0;m<r;m+=1)i.deps[m].rv=je;if(t!==null)for(const m of t)m.rv=je;oe!==null&&(n===null?n=oe:n.push(...oe))}return e.f&Ie&&(e.f^=Ie),c}catch(m){return Pn(m)}finally{e.f^=_r,te=t,ie=r,oe=n,T=i,Se=s,lt(a),pe=o,We=u}}function Cs(e,t){let r=t.reactions;if(r!==null){var n=Vi.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&j&&(te===null||!te.includes(t))){var s=t;s.f&fe&&(s.f^=fe,s.f&=~Xe),kr(s),Cn(s),Yt(s,0)}}function Yt(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Cs(e,r[n])}function $t(e){var t=e.f;if(!(t&Te)){U(e,X);var r=$,n=Ve;$=e,Ve=!0;try{t&($e|Tn)?Ms(e):Jn(e),Zn(e);var i=ai(e);e.teardown=typeof i=="function"?i:null,e.wv=ni;var s;vr&&hs&&e.f&Z&&e.deps}finally{Ve=n,$=r}}}async function Ds(){await Promise.resolve(),le()}function H(e){var t=e.f,r=(t&j)!==0;if(T!==null&&!pe){var n=$!==null&&($.f&Te)!==0;if(!n&&!Se?.includes(e)){var i=T.deps;if(T.f&_r)e.rv<je&&(e.rv=je,te===null&&i!==null&&i[ie]===e?ie++:te===null?te=[e]:te.push(e));else{(T.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[T]:s.includes(T)||s.push(T)}}}if(Ce&&Re.has(e))return Re.get(e);if(r){var a=e;if(Ce){var o=a.v;return(!(a.f&X)&&a.reactions!==null||ui(a))&&(o=Ur(a)),Re.set(a,o),o}var u=(a.f&fe)===0&&!pe&&T!==null&&(Ve||(T.f&fe)!==0),l=a.deps===null;Nt(a)&&(u&&(a.f|=fe),Dn(a)),u&&!l&&oi(a)}if(ce?.has(e))return ce.get(e);if(e.f&Ie)throw e.v;return e.v}function oi(e){if(e.deps!==null){e.f|=fe;for(const t of e.deps)(t.reactions??=[]).push(e),t.f&j&&!(t.f&fe)&&oi(t)}}function ui(e){if(e.v===G)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Re.has(t)||t.f&j&&ui(t))return!0;return!1}function li(e){var t=pe;try{return pe=!0,e()}finally{pe=t}}const ks=new Set,nn=new Set;let sn=null;function Ct(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;sn=e;var a=0,o=sn===e&&e.__root;if(o){var u=i.indexOf(o);if(u!==-1&&(t===document||t===window)){e.__root=t;return}var l=i.indexOf(t);if(l===-1)return;u<=l&&(a=u)}if(s=i[a]||e.target,s!==t){Ht(e,"currentTarget",{configurable:!0,get(){return s||r}});var f=T,c=$;re(null),be(null);try{for(var h,d=[];s!==null;){var m=s.assignedSlot||s.parentNode||s.host||null;try{var x=s["__"+n];x!=null&&(!s.disabled||e.target===s)&&x.call(s,e)}catch(M){h?d.push(M):h=M}if(e.cancelBubble||m===t||m===null)break;s=m}if(h){for(let M of d)queueMicrotask(()=>{throw M});throw h}}finally{e.__root=t,delete e.currentTarget,re(f),be(c)}}}function Fs(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Ot(e,t){var r=$;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function jr(e,t){var r=(t&Gi)!==0,n,i=!e.startsWith("<!>");return()=>{if(D)return Ot(P,null),P;n===void 0&&(n=Fs(i?e:"<!>"+e),n=At(n));var s=r||Gn?document.importNode(n,!0):n.cloneNode(!0);return Ot(s,s),s}}function Us(){if(D)return Ot(P,null),P;var e=document.createDocumentFragment(),t=document.createComment(""),r=Ae();return e.append(t,r),Ot(t,r),e}function xt(e,t){if(D){var r=$;(!(r.f&Kt)||r.nodes.end===null)&&(r.nodes.end=P),Ir();return}e!==null&&e.before(t)}const Gs=["touchstart","touchmove"];function js(e){return Gs.includes(e)}function ur(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function fi(e,t){return hi(e,t)}function Vs(e,t){br(),t.intro=t.intro??!1;const r=t.target,n=D,i=P;try{for(var s=At(r);s&&(s.nodeType!==Lt||s.data!==yn);)s=Pe(s);if(!s)throw ot;st(!0),ve(s);const a=hi(e,{...t,anchor:s});return st(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
|
|
2
|
+
`).some(o=>o.startsWith("https://svelte.dev/e/")))throw a;return a!==ot&&console.warn("Failed to hydrate: ",a),t.recover===!1&&rs(),br(),Ss(r),st(!1),fi(e,t)}finally{st(n),ve(i)}}const rt=new Map;function hi(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:a=!0}){br();var o=new Set,u=c=>{for(var h=0;h<c.length;h++){var d=c[h];if(!o.has(d)){o.add(d);var m=js(d);t.addEventListener(d,Ct,{passive:m});var x=rt.get(d);x===void 0?(document.addEventListener(d,Ct,{passive:m}),rt.set(d,1)):rt.set(d,x+1)}}};u(Wi(ks)),nn.add(u);var l=void 0,f=Bs(()=>{var c=r??t.appendChild(Ae());return ms(c,{pending:()=>{}},h=>{if(s){Rr({});var d=he;d.c=s}if(i&&(n.$$events=i),D&&Ot(h,null),l=e(h,n)||{},D&&($.nodes.end=P,P===null||P.nodeType!==Lt||P.data!==En))throw er(),ot;s&&Cr()}),()=>{for(var h of o){t.removeEventListener(h,Ct);var d=rt.get(h);--d===0?(document.removeEventListener(h,Ct),rt.delete(h)):rt.set(h,d)}nn.delete(u),c!==r&&c.parentNode?.removeChild(c)}});return yr.set(l,f),l}let yr=new WeakMap;function Ws(e,t){const r=yr.get(e);return r?(yr.delete(e),r(t)):Promise.resolve()}class Xs{anchor;#e=new Map;#t=new Map;#r=new Map;#s=new Set;#a=!0;constructor(t,r=!0){this.anchor=t,this.#a=r}#i=()=>{var t=I;if(this.#e.has(t)){var r=this.#e.get(t),n=this.#t.get(r);if(n)Is(n),this.#s.delete(r);else{var i=this.#r.get(r);i&&(this.#t.set(r,i.effect),this.#r.delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(const[s,a]of this.#e){if(this.#e.delete(s),s===t)break;const o=this.#r.get(a);o&&(ne(o.effect),this.#r.delete(a))}for(const[s,a]of this.#t){if(s===r||this.#s.has(s))continue;const o=()=>{if(Array.from(this.#e.values()).includes(s)){var l=document.createDocumentFragment();ti(a,l),l.append(Ae()),this.#r.set(s,{effect:a,fragment:l})}else ne(a);this.#s.delete(s),this.#t.delete(s)};this.#a||!n?(this.#s.add(s),St(a,o,!1)):o()}}};#n=t=>{this.#e.delete(t);const r=Array.from(this.#e.values());for(const[n,i]of this.#r)r.includes(n)||(ne(i.effect),this.#r.delete(n))};ensure(t,r){var n=I,i=Hs();if(r&&!this.#t.has(t)&&!this.#r.has(t))if(i){var s=document.createDocumentFragment(),a=Ae();s.append(a),this.#r.set(t,{effect:we(()=>r(a)),fragment:s})}else this.#t.set(t,we(()=>r(this.anchor)));if(this.#e.set(n,t),i){for(const[o,u]of this.#t)o===t?n.skipped_effects.delete(u):n.skipped_effects.add(u);for(const[o,u]of this.#r)o===t?n.skipped_effects.delete(u.effect):n.skipped_effects.add(u.effect);n.oncommit(this.#i),n.ondiscard(this.#n)}else D&&(this.anchor=P),this.#i()}}function an(e,t,r=!1){D&&Ir();var n=new Xs(e),i=r?ut:0;function s(a,o){if(D){const l=ls(e)===Pr;if(a===l){var u=Hn();ve(u),n.anchor=u,st(!1),n.ensure(a,o),st(!0);return}}n.ensure(a,o)}qn(()=>{var a=!1;t((o,u=!0)=>{a=!0,s(u,o)}),a||s(!1,null)},i)}function Ys(e,t){Ps(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}function Vr(e,t,r){if(e==null)return t(void 0),r&&r(void 0),Ne;const n=li(()=>e.subscribe(t,r));return n.unsubscribe?()=>n.unsubscribe():n}const nt=[];function zs(e,t){return{subscribe:rr(e,t).subscribe}}function rr(e,t=Ne){let r=null;const n=new Set;function i(o){if($n(e,o)&&(e=o,r)){const u=!nt.length;for(const l of n)l[1](),nt.push(l,e);if(u){for(let l=0;l<nt.length;l+=2)nt[l][0](nt[l+1]);nt.length=0}}}function s(o){i(o(e))}function a(o,u=Ne){const l=[o,u];return n.add(l),n.size===1&&(r=t(i,s)||Ne),o(e),()=>{n.delete(l),n.size===0&&r&&(r(),r=null)}}return{set:i,update:s,subscribe:a}}function vt(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 zs(r,(a,o)=>{let u=!1;const l=[];let f=0,c=Ne;const h=()=>{if(f)return;c();const m=t(n?l[0]:l,a,o);s?a(m):c=typeof m=="function"?m:Ne},d=i.map((m,x)=>Vr(m,M=>{l[x]=M,f&=~(1<<x),u&&h()},()=>{f|=1<<x}));return u=!0,h(),function(){xn(d),c(),u=!1}})}function qs(e){let t;return Vr(e,r=>t=r)(),t}let Er=Symbol();function Zs(e,t,r){const n=r[t]??={store:null,source:Fn(void 0),unsubscribe:Ne};if(n.store!==e&&!(Er in r))if(n.unsubscribe(),n.store=e??null,e==null)n.source.v=void 0,n.unsubscribe=Ne;else{var i=!0;n.unsubscribe=Vr(e,s=>{i?n.source.v=s:F(n.source,s)}),i=!1}return e&&Er in r?qs(e):H(n.source)}function Js(){const e={};function t(){Xn(()=>{for(var r in e)e[r].unsubscribe();Ht(e,Er,{enumerable:!1,value:!0})})}return[e,t]}function _e(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 h=e[t];return h===void 0?a():(s=!0,h)};var l=!1,f=Fr(()=>(l=!1,u())),c=$;return function(h,d){if(arguments.length>0){const m=d?H(f):h;return F(f,m),l=!0,i!==void 0&&(i=m),h}return Ce&&l||c.f&Te?f.v:H(f)}}function Qs(e){return new Ks(e)}class Ks{#e;#t;constructor(t){var r=new Map,n=(s,a)=>{var o=Fn(a,!1,!1);return r.set(s,o),o};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return H(r.get(a)??n(a,Reflect.get(s,a)))},has(s,a){return a===Zi?!0:(H(r.get(a)??n(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,o){return F(r.get(a)??n(a,o),o),Reflect.set(s,a,o)}});this.#t=(t.hydrate?Vs:fi)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&le(),this.#e=i.$$events;for(const s of Object.keys(this.#t))s==="$set"||s==="$destroy"||s==="$on"||Ht(this,s,{get(){return this.#t[s]},set(a){this.#t[s]=a},enumerable:!0});this.#t.$set=s=>{Object.assign(i,s)},this.#t.$destroy=()=>{Ws(this.#t)}}$set(t){this.#t.$set(t)}$on(t,r){this.#e[t]=this.#e[t]||[];const n=(...i)=>r.call(this,...i);return this.#e[t].push(n),()=>{this.#e[t]=this.#e[t].filter(i=>i!==n)}}$destroy(){this.#t.$destroy()}}let ci;typeof HTMLElement=="function"&&(ci=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(i){return s=>{const a=document.createElement("slot");i!=="default"&&(a.name=i),xt(s,a)}};var e=t;if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=ea(this);for(const i of this.$$s)i in n&&(i==="default"&&!this.$$d.children?(this.$$d.children=t(i),r.default=!0):r[i]=t(i));for(const i of this.attributes){const s=this.$$g_p(i.name);s in this.$$d||(this.$$d[s]=kt(s,i.value,this.$$p_d,"toProp"))}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=Qs({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=Os(()=>{zn(()=>{this.$$r=!0;for(const i of Gt(this.$$c)){if(!this.$$p_d[i]?.reflect)continue;this.$$d[i]=this.$$c[i];const s=kt(i,this.$$d[i],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[i].attribute||i):this.setAttribute(this.$$p_d[i].attribute||i,s)}this.$$r=!1})});for(const i in this.$$l)for(const s of this.$$l[i]){const a=this.$$c.$on(i,s);this.$$l_u.set(s,a)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=kt(e,r,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Gt(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function kt(e,t,r,n){const i=r[e]?.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;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 ea(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function di(e,t,r,n,i,s){let a=class extends ci{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Gt(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Gt(t).forEach(o=>{Ht(a.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(u){u=kt(o,u,t),this.$$d[o]=u;var l=this.$$c;if(l){var f=at(l,o)?.get;f?l[o]=u:l.$set({[o]:u})}}})}),n.forEach(o=>{Ht(a.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=a,a}class ta extends Error{constructor(t,r){super(r),this.code=t,this.name="ElevateApiError"}}const ra=async e=>{const t=new URL(`${e.apiEndpoint}/elevate/playerInfo?language=${e.locale??""}`),r=new Headers({"Content-Type":"application/json"});e.userSession&&r.append("X-SessionId",e.userSession);const i=await(await fetch(t.href,{method:"GET",headers:r})).json();if(!i.success)throw new ta(i.errorCode,i.errorMessage);return i.data},na=async e=>{const t=new URL(`${e.apiEndpoint}/elevate/levels?language=${e.locale??""}`);return(await(await fetch(t.href,{method:"GET"})).json()).data},zt="DD/MM/YYYY HH:mm:ss",ia=(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 sa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var vi={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(sa,function(){var r=1e3,n=6e4,i=36e5,s="millisecond",a="second",o="minute",u="hour",l="day",f="week",c="month",h="quarter",d="year",m="date",x="Invalid Date",M=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,se=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,Y={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(b){var _=["th","st","nd","rd"],p=b%100;return"["+b+(_[(p-20)%10]||_[p]||_[0])+"]"}},V=function(b,_,p){var g=String(b);return!g||g.length>=_?b:""+Array(_+1-g.length).join(p)+b},Ee={s:V,z:function(b){var _=-b.utcOffset(),p=Math.abs(_),g=Math.floor(p/60),v=p%60;return(_<=0?"+":"-")+V(g,2,"0")+":"+V(v,2,"0")},m:function b(_,p){if(_.date()<p.date())return-b(p,_);var g=12*(p.year()-_.year())+(p.month()-_.month()),v=_.clone().add(g,c),y=p-v<0,E=_.clone().add(g+(y?-1:1),c);return+(-(g+(p-v)/(y?v-E:E-v))||0)},a:function(b){return b<0?Math.ceil(b)||0:Math.floor(b)},p:function(b){return{M:c,y:d,w:f,d:l,D:m,h:u,m:o,s:a,ms:s,Q:h}[b]||String(b||"").toLowerCase().replace(/s$/,"")},u:function(b){return b===void 0}},z="en",J={};J[z]=Y;var O="$isDayjsObject",Q=function(b){return b instanceof Ze||!(!b||!b[O])},ke=function b(_,p,g){var v;if(!_)return z;if(typeof _=="string"){var y=_.toLowerCase();J[y]&&(v=y),p&&(J[y]=p,v=y);var E=_.split("-");if(!v&&E.length>1)return b(E[0])}else{var B=_.name;J[B]=_,v=B}return!g&&v&&(z=v),v||!g&&z},R=function(b,_){if(Q(b))return b.clone();var p=typeof _=="object"?_:{};return p.date=b,p.args=arguments,new Ze(p)},A=Ee;A.l=ke,A.i=Q,A.w=function(b,_){return R(b,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var Ze=function(){function b(p){this.$L=ke(p.locale,null,!0),this.parse(p),this.$x=this.$x||p.x||{},this[O]=!0}var _=b.prototype;return _.parse=function(p){this.$d=function(g){var v=g.date,y=g.utc;if(v===null)return new Date(NaN);if(A.u(v))return new Date;if(v instanceof Date)return new Date(v);if(typeof v=="string"&&!/Z$/i.test(v)){var E=v.match(M);if(E){var B=E[2]-1||0,C=(E[7]||"0").substring(0,3);return y?new Date(Date.UTC(E[1],B,E[3]||1,E[4]||0,E[5]||0,E[6]||0,C)):new Date(E[1],B,E[3]||1,E[4]||0,E[5]||0,E[6]||0,C)}}return new Date(v)}(p),this.init()},_.init=function(){var p=this.$d;this.$y=p.getFullYear(),this.$M=p.getMonth(),this.$D=p.getDate(),this.$W=p.getDay(),this.$H=p.getHours(),this.$m=p.getMinutes(),this.$s=p.getSeconds(),this.$ms=p.getMilliseconds()},_.$utils=function(){return A},_.isValid=function(){return this.$d.toString()!==x},_.isSame=function(p,g){var v=R(p);return this.startOf(g)<=v&&v<=this.endOf(g)},_.isAfter=function(p,g){return R(p)<this.startOf(g)},_.isBefore=function(p,g){return this.endOf(g)<R(p)},_.$g=function(p,g,v){return A.u(p)?this[g]:this.set(v,p)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(p,g){var v=this,y=!!A.u(g)||g,E=A.p(p),B=function(Ue,K){var Le=A.w(v.$u?Date.UTC(v.$y,K,Ue):new Date(v.$y,K,Ue),v);return y?Le:Le.endOf(l)},C=function(Ue,K){return A.w(v.toDate()[Ue].apply(v.toDate("s"),(y?[0,0,0,0]:[23,59,59,999]).slice(K)),v)},k=this.$W,W=this.$M,ae=this.$D,Qe="set"+(this.$u?"UTC":"");switch(E){case d:return y?B(1,0):B(31,11);case c:return y?B(1,W):B(0,W+1);case f:var Fe=this.$locale().weekStart||0,gt=(k<Fe?k+7:k)-Fe;return B(y?ae-gt:ae+(6-gt),W);case l:case m:return C(Qe+"Hours",0);case u:return C(Qe+"Minutes",1);case o:return C(Qe+"Seconds",2);case a:return C(Qe+"Milliseconds",3);default:return this.clone()}},_.endOf=function(p){return this.startOf(p,!1)},_.$set=function(p,g){var v,y=A.p(p),E="set"+(this.$u?"UTC":""),B=(v={},v[l]=E+"Date",v[m]=E+"Date",v[c]=E+"Month",v[d]=E+"FullYear",v[u]=E+"Hours",v[o]=E+"Minutes",v[a]=E+"Seconds",v[s]=E+"Milliseconds",v)[y],C=y===l?this.$D+(g-this.$W):g;if(y===c||y===d){var k=this.clone().set(m,1);k.$d[B](C),k.init(),this.$d=k.set(m,Math.min(this.$D,k.daysInMonth())).$d}else B&&this.$d[B](C);return this.init(),this},_.set=function(p,g){return this.clone().$set(p,g)},_.get=function(p){return this[A.p(p)]()},_.add=function(p,g){var v,y=this;p=Number(p);var E=A.p(g),B=function(W){var ae=R(y);return A.w(ae.date(ae.date()+Math.round(W*p)),y)};if(E===c)return this.set(c,this.$M+p);if(E===d)return this.set(d,this.$y+p);if(E===l)return B(1);if(E===f)return B(7);var C=(v={},v[o]=n,v[u]=i,v[a]=r,v)[E]||1,k=this.$d.getTime()+p*C;return A.w(k,this)},_.subtract=function(p,g){return this.add(-1*p,g)},_.format=function(p){var g=this,v=this.$locale();if(!this.isValid())return v.invalidDate||x;var y=p||"YYYY-MM-DDTHH:mm:ssZ",E=A.z(this),B=this.$H,C=this.$m,k=this.$M,W=v.weekdays,ae=v.months,Qe=v.meridiem,Fe=function(K,Le,bt,It){return K&&(K[Le]||K(g,y))||bt[Le].slice(0,It)},gt=function(K){return A.s(B%12||12,K,"0")},Ue=Qe||function(K,Le,bt){var It=K<12?"AM":"PM";return bt?It.toLowerCase():It};return y.replace(se,function(K,Le){return Le||function(bt){switch(bt){case"YY":return String(g.$y).slice(-2);case"YYYY":return A.s(g.$y,4,"0");case"M":return k+1;case"MM":return A.s(k+1,2,"0");case"MMM":return Fe(v.monthsShort,k,ae,3);case"MMMM":return Fe(ae,k);case"D":return g.$D;case"DD":return A.s(g.$D,2,"0");case"d":return String(g.$W);case"dd":return Fe(v.weekdaysMin,g.$W,W,2);case"ddd":return Fe(v.weekdaysShort,g.$W,W,3);case"dddd":return W[g.$W];case"H":return String(B);case"HH":return A.s(B,2,"0");case"h":return gt(1);case"hh":return gt(2);case"a":return Ue(B,C,!0);case"A":return Ue(B,C,!1);case"m":return String(C);case"mm":return A.s(C,2,"0");case"s":return String(g.$s);case"ss":return A.s(g.$s,2,"0");case"SSS":return A.s(g.$ms,3,"0");case"Z":return E}return null}(K)||E.replace(":","")})},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(p,g,v){var y,E=this,B=A.p(g),C=R(p),k=(C.utcOffset()-this.utcOffset())*n,W=this-C,ae=function(){return A.m(E,C)};switch(B){case d:y=ae()/12;break;case c:y=ae();break;case h:y=ae()/3;break;case f:y=(W-k)/6048e5;break;case l:y=(W-k)/864e5;break;case u:y=W/i;break;case o:y=W/n;break;case a:y=W/r;break;default:y=W}return v?y:A.a(y)},_.daysInMonth=function(){return this.endOf(c).$D},_.$locale=function(){return J[this.$L]},_.locale=function(p,g){if(!p)return this.$L;var v=this.clone(),y=ke(p,g,!0);return y&&(v.$L=y),v},_.clone=function(){return A.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},b}(),Je=Ze.prototype;return R.prototype=Je,[["$ms",s],["$s",a],["$m",o],["$H",u],["$W",l],["$M",c],["$y",d],["$D",m]].forEach(function(b){Je[b[1]]=function(_){return this.$g(_,b[0],b[1])}}),R.extend=function(b,_){return b.$i||(b(_,Ze,R),b.$i=!0),R},R.locale=ke,R.isDayjs=Q,R.unix=function(b){return R(1e3*b)},R.en=J[z],R.Ls=J,R.p={},R})})(vi);var aa=vi.exports;const oa=pi(aa),ua=(e,t="DD/MM/YYYY")=>{const r=oa(e);return r.isValid()?r.format(t):""};var la=function(t){return fa(t)&&!ha(t)};function fa(e){return!!e&&typeof e=="object"}function ha(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||pa(e)}var ca=typeof Symbol=="function"&&Symbol.for,da=ca?Symbol.for("react.element"):60103;function pa(e){return e.$$typeof===da}function va(e){return Array.isArray(e)?[]:{}}function Bt(e,t){return t.clone!==!1&&t.isMergeableObject(e)?ht(va(e),e,t):e}function _a(e,t,r){return e.concat(t).map(function(n){return Bt(n,r)})}function ma(e,t){if(!t.customMerge)return ht;var r=t.customMerge(e);return typeof r=="function"?r:ht}function ga(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function on(e){return Object.keys(e).concat(ga(e))}function _i(e,t){try{return t in e}catch{return!1}}function ba(e,t){return _i(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function ya(e,t,r){var n={};return r.isMergeableObject(e)&&on(e).forEach(function(i){n[i]=Bt(e[i],r)}),on(t).forEach(function(i){ba(e,i)||(_i(e,i)&&r.isMergeableObject(t[i])?n[i]=ma(i,r)(e[i],t[i],r):n[i]=Bt(t[i],r))}),n}function ht(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||_a,r.isMergeableObject=r.isMergeableObject||la,r.cloneUnlessOtherwiseSpecified=Bt;var n=Array.isArray(t),i=Array.isArray(e),s=n===i;return s?n?r.arrayMerge(e,t,r):ya(e,t,r):Bt(t,r)}ht.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return ht(n,i,r)},{})};var Ea=ht,xa=Ea;const wa=pi(xa);var xr=function(e,t){return xr=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])},xr(e,t)};function nr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");xr(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var me=function(){return me=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},me.apply(this,arguments)};function Ta(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 lr(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 fr(e,t){var r=t&&t.cache?t.cache:Pa,n=t&&t.serializer?t.serializer:Oa,i=t&&t.strategy?t.strategy:Aa;return i(e,{cache:r,serializer:n})}function Sa(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Ha(e,t,r,n){var i=Sa(n)?n:r(n),s=t.get(i);return typeof s>"u"&&(s=e.call(this,n),t.set(i,s)),s}function mi(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),s=t.get(i);return typeof s>"u"&&(s=e.apply(this,n),t.set(i,s)),s}function gi(e,t,r,n,i){return r.bind(t,e,n,i)}function Aa(e,t){var r=e.length===1?Ha:mi;return gi(e,this,r,t.cache.create(),t.serializer)}function $a(e,t){return gi(e,this,mi,t.cache.create(),t.serializer)}var Oa=function(){return JSON.stringify(arguments)},Ba=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}(),Pa={create:function(){return new Ba}},hr={variadic:$a},qt=function(){return qt=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},qt.apply(this,arguments)};var w;(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"})(w||(w={}));var L;(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"})(L||(L={}));var ct;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(ct||(ct={}));function un(e){return e.type===L.literal}function La(e){return e.type===L.argument}function bi(e){return e.type===L.number}function yi(e){return e.type===L.date}function Ei(e){return e.type===L.time}function xi(e){return e.type===L.select}function wi(e){return e.type===L.plural}function Ma(e){return e.type===L.pound}function Ti(e){return e.type===L.tag}function Si(e){return!!(e&&typeof e=="object"&&e.type===ct.number)}function wr(e){return!!(e&&typeof e=="object"&&e.type===ct.dateTime)}var Hi=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Na=/(?:[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 Ia(e){var t={};return e.replace(Na,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 N=function(){return N=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},N.apply(this,arguments)};var Ra=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Ca(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Ra).filter(function(h){return h.length>0}),r=[],n=0,i=t;n<i.length;n++){var s=i[n],a=s.split("/");if(a.length===0)throw new Error("Invalid number skeleton");for(var o=a[0],u=a.slice(1),l=0,f=u;l<f.length;l++){var c=f[l];if(c.length===0)throw new Error("Invalid number skeleton")}r.push({stem:o,options:u})}return r}function Da(e){return e.replace(/^(.*?)-/,"")}var ln=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ai=/^(@+)?(\+|#+)?[rs]?$/g,ka=/(\*)(0+)|(#+)(0+)|(0+)/g,$i=/^(0+)$/;function fn(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Ai,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 Oi(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 Fa(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)),!$i.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function hn(e){var t={},r=Oi(e);return r||t}function Ua(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=Da(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=N(N(N({},t),{notation:"scientific"}),i.options.reduce(function(u,l){return N(N({},u),hn(l))},{}));continue;case"engineering":t=N(N(N({},t),{notation:"engineering"}),i.options.reduce(function(u,l){return N(N({},u),hn(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(ka,function(u,l,f,c,h,d){if(l)t.minimumIntegerDigits=f.length;else{if(c&&h)throw new Error("We currently do not support maximum integer digits");if(d)throw new Error("We currently do not support exact integer digits")}return""});continue}if($i.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(ln.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(ln,function(u,l,f,c,h,d){return f==="*"?t.minimumFractionDigits=l.length:c&&c[0]==="#"?t.maximumFractionDigits=c.length:h&&d?(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length+d.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var s=i.options[0];s==="w"?t=N(N({},t),{trailingZeroDisplay:"stripIfInteger"}):s&&(t=N(N({},t),fn(s)));continue}if(Ai.test(i.stem)){t=N(N({},t),fn(i.stem));continue}var a=Oi(i.stem);a&&(t=N(N({},t),a));var o=Fa(i.stem);o&&(t=N(N({},t),o))}return t}var Dt={"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 Ga(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=ja(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 ja(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=Dt[n||""]||Dt[r||""]||Dt["".concat(r,"-001")]||Dt["001"];return i[0]}var cr,Va=new RegExp("^".concat(Hi.source,"*")),Wa=new RegExp("".concat(Hi.source,"*$"));function S(e,t){return{start:e,end:t}}var Xa=!!String.prototype.startsWith&&"_a".startsWith("a",1),Ya=!!String.fromCodePoint,za=!!Object.fromEntries,qa=!!String.prototype.codePointAt,Za=!!String.prototype.trimStart,Ja=!!String.prototype.trimEnd,Qa=!!Number.isSafeInteger,Ka=Qa?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Tr=!0;try{var eo=Pi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Tr=((cr=eo.exec("a"))===null||cr===void 0?void 0:cr[0])==="a"}catch{Tr=!1}var cn=Xa?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},Sr=Ya?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},dn=za?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},Bi=qa?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}},to=Za?function(t){return t.trimStart()}:function(t){return t.replace(Va,"")},ro=Ja?function(t){return t.trimEnd()}:function(t){return t.replace(Wa,"")};function Pi(e,t){return new RegExp(e,t)}var Hr;if(Tr){var pn=Pi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Hr=function(t,r){var n;pn.lastIndex=r;var i=pn.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}}else Hr=function(t,r){for(var n=[];;){var i=Bi(t,r);if(i===void 0||Li(i)||ao(i))break;n.push(i),r+=i>=65536?2:1}return Sr.apply(void 0,n)};var no=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:L.pound,location:S(o,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(w.UNMATCHED_CLOSING_TAG,S(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&Ar(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:L.literal,value:"<".concat(i,"/>"),location:S(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()||!Ar(this.char()))return this.error(w.INVALID_TAG,S(o,this.clonePosition()));var u=this.clonePosition(),l=this.parseTagName();return i!==l?this.error(w.UNMATCHED_CLOSING_TAG,S(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:L.tag,value:i,children:a,location:S(n,this.clonePosition())},err:null}:this.error(w.INVALID_TAG,S(o,this.clonePosition())))}else return this.error(w.UNCLOSED_TAG,S(n,this.clonePosition()))}else return this.error(w.INVALID_TAG,S(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&so(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=S(n,this.clonePosition());return{val:{type:L.literal,value:i,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!io(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 Sr.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(),Sr(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE,S(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(w.EMPTY_ARGUMENT,S(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(w.MALFORMED_ARGUMENT,S(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE,S(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:L.argument,value:i,location:S(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE,S(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(w.MALFORMED_ARGUMENT,S(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=Hr(this.message,r),i=r+n.length;this.bumpTo(i);var s=this.clonePosition(),a=S(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(w.EXPECT_ARGUMENT_TYPE,S(a,u));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),c=this.parseSimpleArgStyleIfPossible();if(c.err)return c;var h=ro(c.val);if(h.length===0)return this.error(w.EXPECT_ARGUMENT_STYLE,S(this.clonePosition(),this.clonePosition()));var d=S(f,this.clonePosition());l={style:h,styleLocation:d}}var m=this.tryParseArgumentClose(i);if(m.err)return m;var x=S(i,this.clonePosition());if(l&&cn(l?.style,"::",0)){var M=to(l.style.slice(2));if(o==="number"){var c=this.parseNumberSkeletonFromString(M,l.styleLocation);return c.err?c:{val:{type:L.number,value:n,location:x,style:c.val},err:null}}else{if(M.length===0)return this.error(w.EXPECT_DATE_TIME_SKELETON,x);var se=M;this.locale&&(se=Ga(M,this.locale));var h={type:ct.dateTime,pattern:se,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?Ia(se):{}},Y=o==="date"?L.date:L.time;return{val:{type:Y,value:n,location:x,style:h},err:null}}}return{val:{type:o==="number"?L.number:o==="date"?L.date:L.time,value:n,location:x,style:(s=l?.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var V=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(w.EXPECT_SELECT_ARGUMENT_OPTIONS,S(V,qt({},V)));this.bumpSpace();var Ee=this.parseIdentifierIfPossible(),z=0;if(o!=="select"&&Ee.value==="offset"){if(!this.bumpIf(":"))return this.error(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,S(this.clonePosition(),this.clonePosition()));this.bumpSpace();var c=this.tryParseDecimalInteger(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,w.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(c.err)return c;this.bumpSpace(),Ee=this.parseIdentifierIfPossible(),z=c.val}var J=this.tryParsePluralOrSelectOptions(t,o,r,Ee);if(J.err)return J;var m=this.tryParseArgumentClose(i);if(m.err)return m;var O=S(i,this.clonePosition());return o==="select"?{val:{type:L.select,value:n,options:dn(J.val),location:O},err:null}:{val:{type:L.plural,value:n,options:dn(J.val),offset:z,pluralType:o==="plural"?"cardinal":"ordinal",location:O},err:null}}default:return this.error(w.INVALID_ARGUMENT_TYPE,S(a,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE,S(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(w.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,S(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=Ca(t)}catch{return this.error(w.INVALID_NUMBER_SKELETON,r)}return{val:{type:ct.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?Ua(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var s,a=!1,o=[],u=new Set,l=i.value,f=i.location;;){if(l.length===0){var c=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(w.EXPECT_PLURAL_ARGUMENT_SELECTOR,w.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;f=S(c,this.clonePosition()),l=this.message.slice(c.offset,this.offset())}else break}if(u.has(l))return this.error(r==="select"?w.DUPLICATE_SELECT_ARGUMENT_SELECTOR:w.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);l==="other"&&(a=!0),this.bumpSpace();var d=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?w.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:w.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,S(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(t+1,r,n);if(m.err)return m;var x=this.tryParseArgumentClose(d);if(x.err)return x;o.push([l,{value:m.val,location:S(d,this.clonePosition())}]),u.add(l),this.bumpSpace(),s=this.parseIdentifierIfPossible(),l=s.value,f=s.location}return o.length===0?this.error(r==="select"?w.EXPECT_SELECT_ARGUMENT_SELECTOR:w.EXPECT_PLURAL_ARGUMENT_SELECTOR,S(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(w.MISSING_OTHER_CLAUSE,S(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=S(i,this.clonePosition());return s?(a*=n,Ka(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=Bi(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(cn(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()&&Li(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},e}();function Ar(e){return e>=97&&e<=122||e>=65&&e<=90}function io(e){return Ar(e)||e===47}function so(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 Li(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function ao(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 $r(e){e.forEach(function(t){if(delete t.location,xi(t)||wi(t))for(var r in t.options)delete t.options[r].location,$r(t.options[r].value);else bi(t)&&Si(t.style)||(yi(t)||Ei(t))&&wr(t.style)?delete t.style.location:Ti(t)&&$r(t.children)})}function oo(e,t){t===void 0&&(t={}),t=qt({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new no(e,t).parse();if(r.err){var n=SyntaxError(w[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t?.captureLocation||$r(r.val),r.val}var dt;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(dt||(dt={}));var ir=function(e){nr(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),vn=function(e){nr(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('", "'),'"'),dt.INVALID_VALUE,s)||this}return t}(ir),uo=function(e){nr(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),dt.INVALID_VALUE,i)||this}return t}(ir),lo=function(e){nr(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,'"'),dt.MISSING_VALUE,n)||this}return t}(ir),q;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(q||(q={}));function fo(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==q.literal||r.type!==q.literal?t.push(r):n.value+=r.value,t},[])}function ho(e){return typeof e=="function"}function Ft(e,t,r,n,i,s,a){if(e.length===1&&un(e[0]))return[{type:q.literal,value:e[0].value}];for(var o=[],u=0,l=e;u<l.length;u++){var f=l[u];if(un(f)){o.push({type:q.literal,value:f.value});continue}if(Ma(f)){typeof s=="number"&&o.push({type:q.literal,value:r.getNumberFormat(t).format(s)});continue}var c=f.value;if(!(i&&c in i))throw new lo(c,a);var h=i[c];if(La(f)){(!h||typeof h=="string"||typeof h=="number")&&(h=typeof h=="string"||typeof h=="number"?String(h):""),o.push({type:typeof h=="string"?q.literal:q.object,value:h});continue}if(yi(f)){var d=typeof f.style=="string"?n.date[f.style]:wr(f.style)?f.style.parsedOptions:void 0;o.push({type:q.literal,value:r.getDateTimeFormat(t,d).format(h)});continue}if(Ei(f)){var d=typeof f.style=="string"?n.time[f.style]:wr(f.style)?f.style.parsedOptions:n.time.medium;o.push({type:q.literal,value:r.getDateTimeFormat(t,d).format(h)});continue}if(bi(f)){var d=typeof f.style=="string"?n.number[f.style]:Si(f.style)?f.style.parsedOptions:void 0;d&&d.scale&&(h=h*(d.scale||1)),o.push({type:q.literal,value:r.getNumberFormat(t,d).format(h)});continue}if(Ti(f)){var m=f.children,x=f.value,M=i[x];if(!ho(M))throw new uo(x,"function",a);var se=Ft(m,t,r,n,i,s),Y=M(se.map(function(z){return z.value}));Array.isArray(Y)||(Y=[Y]),o.push.apply(o,Y.map(function(z){return{type:typeof z=="string"?q.literal:q.object,value:z}}))}if(xi(f)){var V=f.options[h]||f.options.other;if(!V)throw new vn(f.value,h,Object.keys(f.options),a);o.push.apply(o,Ft(V.value,t,r,n,i));continue}if(wi(f)){var V=f.options["=".concat(h)];if(!V){if(!Intl.PluralRules)throw new ir(`Intl.PluralRules is not available in this environment.
|
|
3
|
+
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
4
|
+
`,dt.MISSING_INTL_API,a);var Ee=r.getPluralRules(t,{type:f.pluralType}).select(h-(f.offset||0));V=f.options[Ee]||f.options.other}if(!V)throw new vn(f.value,h,Object.keys(f.options),a);o.push.apply(o,Ft(V.value,t,r,n,i,h-(f.offset||0)));continue}}return fo(o)}function co(e,t){return t?me(me(me({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=me(me({},e[n]),t[n]||{}),r},{})):e}function po(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=co(e[n],t[n]),r},me({},e)):e}function dr(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function vo(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:fr(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,lr([void 0],r,!1)))},{cache:dr(e.number),strategy:hr.variadic}),getDateTimeFormat:fr(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,lr([void 0],r,!1)))},{cache:dr(e.dateTime),strategy:hr.variadic}),getPluralRules:fr(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,lr([void 0],r,!1)))},{cache:dr(e.pluralRules),strategy:hr.variadic})}}var _o=function(){function e(t,r,n,i){r===void 0&&(r=e.defaultLocale);var s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var l=s.formatToParts(u);if(l.length===1)return l[0].value;var f=l.reduce(function(c,h){return!c.length||h.type!==q.literal||typeof c[c.length-1]!="string"?c.push(h.value):c[c.length-1]+=h.value,c},[]);return f.length<=1?f[0]||"":f},this.formatToParts=function(u){return Ft(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=Ta(a,["formatters"]);this.ast=e.__parse(t,me(me({},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=po(e.formats,n),this.formatters=i&&i.formatters||vo(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>"u")){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=oo,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 mo(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 Me={},go=(e,t,r)=>r&&(t in Me||(Me[t]={}),e in Me[t]||(Me[t][e]=r),r),Mi=(e,t)=>{if(t==null)return;if(t in Me&&e in Me[t])return Me[t][e];const r=sr(t);for(let n=0;n<r.length;n++){const i=r[n],s=yo(i,e);if(s)return go(e,t,s)}};let Wr;const _t=rr({});function bo(e){return Wr[e]||null}function Ni(e){return e in Wr}function yo(e,t){if(!Ni(e))return null;const r=bo(e);return mo(r,t)}function Eo(e){if(e==null)return;const t=sr(e);for(let r=0;r<t.length;r++){const n=t[r];if(Ni(n))return n}}function Ii(e,...t){delete Me[e],_t.update(r=>(r[e]=wa.all([r[e]||{},...t]),r))}vt([_t],([e])=>Object.keys(e));_t.subscribe(e=>Wr=e);const Ut={};function xo(e,t){Ut[e].delete(t),Ut[e].size===0&&delete Ut[e]}function Ri(e){return Ut[e]}function wo(e){return sr(e).map(t=>{const r=Ri(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function Or(e){return e==null?!1:sr(e).some(t=>{var r;return(r=Ri(t))==null?void 0:r.size})}function To(e,t){return Promise.all(t.map(n=>(xo(e,n),n().then(i=>i.default||i)))).then(n=>Ii(e,...n))}const yt={};function Ci(e){if(!Or(e))return e in yt?yt[e]:Promise.resolve();const t=wo(e);return yt[e]=Promise.all(t.map(([r,n])=>To(r,n))).then(()=>{if(Or(e))return Ci(e);delete yt[e]}),yt[e]}const So={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"}}},Ho={fallbackLocale:null,loadingDelay:200,formats:So,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Ao=Ho;function pt(){return Ao}const pr=rr(!1);var $o=Object.defineProperty,Oo=Object.defineProperties,Bo=Object.getOwnPropertyDescriptors,_n=Object.getOwnPropertySymbols,Po=Object.prototype.hasOwnProperty,Lo=Object.prototype.propertyIsEnumerable,mn=(e,t,r)=>t in e?$o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Mo=(e,t)=>{for(var r in t||(t={}))Po.call(t,r)&&mn(e,r,t[r]);if(_n)for(var r of _n(t))Lo.call(t,r)&&mn(e,r,t[r]);return e},No=(e,t)=>Oo(e,Bo(t));let Br;const Zt=rr(null);function gn(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function sr(e,t=pt().fallbackLocale){const r=gn(e);return t?[...new Set([...r,...gn(t)])]:r}function qe(){return Br??void 0}Zt.subscribe(e=>{Br=e??void 0,typeof window<"u"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Io=e=>{if(e&&Eo(e)&&Or(e)){const{loadingDelay:t}=pt();let r;return typeof window<"u"&&qe()!=null&&t?r=window.setTimeout(()=>pr.set(!0),t):pr.set(!0),Ci(e).then(()=>{Zt.set(e)}).finally(()=>{clearTimeout(r),pr.set(!1)})}return Zt.set(e)},Ye=No(Mo({},Zt),{set:Io}),ar=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var Ro=Object.defineProperty,Jt=Object.getOwnPropertySymbols,Di=Object.prototype.hasOwnProperty,ki=Object.prototype.propertyIsEnumerable,bn=(e,t,r)=>t in e?Ro(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Xr=(e,t)=>{for(var r in t||(t={}))Di.call(t,r)&&bn(e,r,t[r]);if(Jt)for(var r of Jt(t))ki.call(t,r)&&bn(e,r,t[r]);return e},mt=(e,t)=>{var r={};for(var n in e)Di.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Jt)for(var n of Jt(e))t.indexOf(n)<0&&ki.call(e,n)&&(r[n]=e[n]);return r};const Pt=(e,t)=>{const{formats:r}=pt();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Co=ar(e=>{var t=e,{locale:r,format:n}=t,i=mt(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=Pt("number",n)),new Intl.NumberFormat(r,i)}),Do=ar(e=>{var t=e,{locale:r,format:n}=t,i=mt(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=Pt("date",n):Object.keys(i).length===0&&(i=Pt("date","short")),new Intl.DateTimeFormat(r,i)}),ko=ar(e=>{var t=e,{locale:r,format:n}=t,i=mt(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=Pt("time",n):Object.keys(i).length===0&&(i=Pt("time","short")),new Intl.DateTimeFormat(r,i)}),Fo=(e={})=>{var t=e,{locale:r=qe()}=t,n=mt(t,["locale"]);return Co(Xr({locale:r},n))},Uo=(e={})=>{var t=e,{locale:r=qe()}=t,n=mt(t,["locale"]);return Do(Xr({locale:r},n))},Go=(e={})=>{var t=e,{locale:r=qe()}=t,n=mt(t,["locale"]);return ko(Xr({locale:r},n))},jo=ar((e,t=qe())=>new _o(e,t,pt().formats,{ignoreTag:pt().ignoreTag})),Vo=(e,t={})=>{var r,n,i,s;let a=t;typeof e=="object"&&(a=e,e=a.id);const{values:o,locale:u=qe(),default:l}=a;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let f=Mi(e,u);if(!f)f=(s=(i=(n=(r=pt()).handleMissingMessage)==null?void 0:n.call(r,{locale:u,id:e,defaultValue:l}))!=null?i:l)!=null?s:e;else if(typeof f!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),f;if(!o)return f;let c=f;try{c=jo(f,u).format(o)}catch(h){h instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,h.message)}return c},Wo=(e,t)=>Go(t).format(e),Xo=(e,t)=>Uo(t).format(e),Yo=(e,t)=>Fo(t).format(e),zo=(e,t=qe())=>Mi(e,t),qo=vt([Ye,_t],()=>Vo);vt([Ye],()=>Wo);vt([Ye],()=>Xo);vt([Ye],()=>Yo);vt([Ye,_t],()=>zo);function Zo({withLocale:e,translations:t}){Ye.subscribe(r=>{r==null&&(_t.set(t),Ye.set(e))})}function Jo(e,t){Ii(e,t)}const Qo=e=>{let t=ee(void 0),r=ee(void 0),n=ee(void 0),i=ee(void 0),s=ee(!1),a=ee(void 0);const o=async()=>{const{apiEndpoint:u,userSession:l,locale:f,loadLevels:c,onLevelLoaded:h}=e();if(!(!u||!l)){F(s,!0),F(a,void 0);try{const d=[ra({apiEndpoint:u,userSession:l,locale:f}).then(m=>{const x=m.level;x.name=x.presentation?.displayName||x.name,x.spendablePoints=m.spendableWallet?.total.points||0,F(t,x,!0),F(n,m.loyaltyWallet?.total,!0),F(i,m.spendableWallet?.total,!0),h?.({elevateLevel:x}),h?.({elevateLevelWalletTotal:m.spendableWallet?.total,loyaltyWalletTotal:m.loyaltyWallet?.total})})];c&&d.push(na({apiEndpoint:u,userSession:l,locale:f}).then(m=>{F(r,m,!0)})),await Promise.all(d),await Ds(),H(r)&&H(t)&&h?.({calculatedLevelFlag:ia(H(r),H(t).loyaltyPoints??0)})}catch(d){F(a,d,!0),console.error("Failed to load elevate info:",d)}finally{F(s,!1)}}};return Kr(()=>{const{apiEndpoint:u,userSession:l,locale:f,loadLevels:c}=e();o()}),Kr(()=>{const u=()=>{o()};return window.addEventListener("redeemRewardButton",u),()=>window.removeEventListener("redeemRewardButton",u)}),{get playerElevateLevel(){return H(t)},get levels(){return H(r)},get loyaltyWalletTotal(){return H(n)},get spendableWalletTotal(){return H(i)},get loading(){return H(s)},get error(){return H(a)},reload:o}},Ko={en:{tokens:"Tokens",tokenBalance:"Token Balance",requestRakeback:"Request Rakeback",pointsToExpire:"{points} Tokens to expire on {date}"},tr:{tokens:"Tokens",tokenBalance:"Token Bakiyesi",requestRakeback:"Rakeback Talebi",pointsToExpire:"{date} tarihinde {points} Tokens sona erecek"},da:{tokens:"Tokens",tokenBalance:"Tokenbalance",requestRakeback:"Anmod om Rakeback",pointsToExpire:"{points} Tokens udløber den {date}"},de:{tokens:"Token",tokenBalance:"Token-Guthaben",requestRakeback:"Rakeback anfordern",pointsToExpire:"{points} Token verfallen am {date}"},nl:{tokens:"Tokens",tokenBalance:"Tokensaldo",requestRakeback:"Rakeback aanvragen",pointsToExpire:"{points} Tokens verlopen op {date}"},fr:{tokens:"Jetons",tokenBalance:"Solde de jetons",requestRakeback:"Demander un Rakeback",pointsToExpire:"{points} jetons expirent le {date}"},hu:{tokens:"Tokenek",tokenBalance:"Token egyenleg",requestRakeback:"Rakeback igénylése",pointsToExpire:"{points} token lejár ekkor: {date}"}};var eu=jr('<div class="loyalty-points svelte-1hsy08w"><div class="loyalty-points__content svelte-1hsy08w"><div class="loyalty-points__value svelte-1hsy08w"><span class="loyalty-points__skeleton loyalty-points__skeleton--amount svelte-1hsy08w"></span> <span class="loyalty-points__skeleton loyalty-points__skeleton--description svelte-1hsy08w"></span></div></div></div>'),tu=jr('<span class="loyalty-points__expiry svelte-1hsy08w"> </span>'),ru=jr('<div class="loyalty-points svelte-1hsy08w"><div class="loyalty-points__content svelte-1hsy08w"><div class="loyalty-points__value svelte-1hsy08w"><span class="loyalty-points__amount svelte-1hsy08w"> </span> <span class="loyalty-points__description svelte-1hsy08w"> </span> <!></div></div></div>');const nu={hash:"svelte-1hsy08w",code:`.loyalty-points.svelte-1hsy08w {padding:11px 16px;display:inline-flex;flex-direction:column;background-color:var(--app-container-bg-default, #022652);border-radius:6px;border:1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));width:100%;box-sizing:border-box;}.loyalty-points__content.svelte-1hsy08w {display:flex;align-items:center;justify-content:space-between;gap:12px;}.loyalty-points__value.svelte-1hsy08w {display:flex;flex-direction:column;gap:6px;}.loyalty-points__amount.svelte-1hsy08w {color:var(--text-default, #FFFFFF);font-size:16px;font-weight:700;line-height:140%;}.loyalty-points__description.svelte-1hsy08w {color:var(--text-subtle, #DFE3E8);font-size:14px;font-weight:400;}.loyalty-points__expiry.svelte-1hsy08w {color:var(--text-super-subtle, #DFE3E8);font-size:12px;font-weight:400;}.loyalty-points__skeleton.svelte-1hsy08w {display:block;border-radius:6px;background:linear-gradient(
|
|
5
|
+
90deg,
|
|
6
|
+
var(--app-container-bg-subtle, rgba(251, 251, 251, 0.1)) 0%,
|
|
7
|
+
color-mix(in srgb, var(--app-container-bg-subtle, rgba(251, 251, 251, 0.1)) 80%, white) 50%,
|
|
8
|
+
var(--app-container-bg-subtle, rgba(251, 251, 251, 0.1)) 100%
|
|
9
|
+
);background-size:200% 100%;
|
|
10
|
+
animation: svelte-1hsy08w-shimmer 3s linear infinite;}.loyalty-points__skeleton--amount.svelte-1hsy08w {width:120px;height:22px;}.loyalty-points__skeleton--description.svelte-1hsy08w {width:90px;height:20px;}
|
|
11
|
+
|
|
12
|
+
@keyframes svelte-1hsy08w-shimmer {
|
|
13
|
+
0% {
|
|
14
|
+
background-position: 200% 0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
100% {
|
|
18
|
+
background-position: -200% 0;
|
|
19
|
+
}
|
|
20
|
+
}`};function Yr(e,t){Rr(t,!0),Ys(e,nu);const r=()=>Zs(qo,"$_",n),[n,i]=Js(),s=_e(t,"apiEndpoint",7,""),a=_e(t,"userSession",7,""),o=_e(t,"locale",7,""),u=_e(t,"dateFormat",7,zt),l=_e(t,"onLevelLoaded",7,O=>{});Zo({withLocale:o(),translations:{}}),Object.entries(Ko).forEach(([O,Q])=>{Jo(O,Q)});const f=Qo(()=>({apiEndpoint:s(),userSession:a(),locale:o(),loadLevels:!1,onLevelLoaded:l()})),c=et(()=>f.spendableWalletTotal),h=et(()=>H(c)?.points??0),d=et(()=>H(h).toLocaleString()),m=et(()=>f.loading&&H(c)===void 0),x=et(()=>[...H(c)?.aboutToExpire??[]].filter(O=>O.points>0).sort((O,Q)=>new Date(O.expireTime).getTime()-new Date(Q.expireTime).getTime())[0]),M=et(()=>H(x)?ua(H(x).expireTime,u()):"");var se={get apiEndpoint(){return s()},set apiEndpoint(O=""){s(O),le()},get userSession(){return a()},set userSession(O=""){a(O),le()},get locale(){return o()},set locale(O=""){o(O),le()},get dateFormat(){return u()},set dateFormat(O=zt){u(O),le()},get onLevelLoaded(){return l()},set onLevelLoaded(O=Q=>{}){l(O),le()}},Y=Us(),V=Ts(Y);{var Ee=O=>{var Q=eu();xt(O,Q)},z=O=>{var Q=ru(),ke=tt(Q),R=tt(ke),A=tt(R),Ze=tt(A);Ke(A);var Je=Qr(A,2),b=tt(Je,!0);Ke(Je);var _=Qr(Je,2);{var p=g=>{var v=tu(),y=tt(v,!0);Ke(v),en(E=>ur(y,E),[()=>r()("pointsToExpire",{values:{points:H(x).points.toLocaleString(),date:H(M)}})]),xt(g,v)};an(_,g=>{H(x)&&g(p)})}Ke(R),Ke(ke),Ke(Q),en((g,v)=>{ur(Ze,`${H(d)??""}
|
|
21
|
+
${g??""}`),ur(b,v)},[()=>r()("tokens"),()=>r()("tokenBalance")]),xt(O,Q)};an(V,O=>{H(m)?O(Ee):O(z,!1)})}xt(e,Y);var J=Cr(se);return i(),J}di(Yr,{apiEndpoint:{},userSession:{},locale:{},dateFormat:{},onLevelLoaded:{}},[],[],!0);function Fi(e,t){Rr(t,!0);let r=_e(t,"apiEndpoint",7,""),n=_e(t,"userSession",7,""),i=_e(t,"locale",7,""),s=_e(t,"dateFormat",7,zt),a=_e(t,"onLevelLoaded");var o={get apiEndpoint(){return r()},set apiEndpoint(u=""){r(u),le()},get userSession(){return n()},set userSession(u=""){n(u),le()},get locale(){return i()},set locale(u=""){i(u),le()},get dateFormat(){return s()},set dateFormat(u=zt){s(u),le()},get onLevelLoaded(){return a()},set onLevelLoaded(u){a(u),le()}};return Yr(e,{get apiEndpoint(){return r()},get userSession(){return n()},get locale(){return i()},get dateFormat(){return s()},get onLevelLoaded(){return a()}}),Cr(o)}customElements.define("loyalty-points-card",di(Fi,{apiEndpoint:{},userSession:{},locale:{},dateFormat:{},onLevelLoaded:{}},[],[],!1));const iu=Object.freeze(Object.defineProperty({__proto__:null,default:Fi},Symbol.toStringTag,{value:"Module"}));exports.LoyaltyPointsCard=Yr;exports.LoyaltyPointsCard_ce=iu;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
typeof globalThis.HTMLElement=="undefined"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const o=require("../components/LoyaltyPointsCard-CjxDfDyI.cjs");if(typeof window!="undefined"){let s=function(e){return function(...n){try{return e.apply(this,n)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t instanceof Error&&t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("../components/LoyaltyPointsCard-CjxDfDyI.cjs")).then(e=>e.LoyaltyPointsCard_ce).then(e=>{const n=e.default||e;customElements.get("loyalty-points-card")||customElements.define("loyalty-points-card",n.element||n)}).catch(e=>{console.error("BOOT ERROR:",e)})}module.exports=o.LoyaltyPointsCard;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { L as l } from "../components/LoyaltyPointsCard-5OfeNw6l.js";
|
|
2
|
+
typeof globalThis.HTMLElement == "undefined" && (globalThis.HTMLElement = class {
|
|
3
|
+
}, globalThis.customElements = { define() {
|
|
4
|
+
}, get() {
|
|
5
|
+
}, whenDefined() {
|
|
6
|
+
} });
|
|
7
|
+
if (typeof window != "undefined") {
|
|
8
|
+
let s = function(e) {
|
|
9
|
+
return function(...n) {
|
|
10
|
+
try {
|
|
11
|
+
return e.apply(this, n);
|
|
12
|
+
} catch (t) {
|
|
13
|
+
if (t instanceof DOMException && t.message.includes("has already been used with this registry") || t instanceof Error && t.message.includes("Cannot define multiple custom elements with the same tag name"))
|
|
14
|
+
return !1;
|
|
15
|
+
throw t;
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
customElements.define = s(customElements.define), import("../components/LoyaltyPointsCard-5OfeNw6l.js").then((e) => e.a).then((e) => {
|
|
20
|
+
const n = e.default || e;
|
|
21
|
+
customElements.get("loyalty-points-card") || customElements.define("loyalty-points-card", n.element || n);
|
|
22
|
+
}).catch((e) => {
|
|
23
|
+
console.error("BOOT ERROR:", e);
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
l as default
|
|
28
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const o=require("../components/LoyaltyPointsCard-D4gxs6co.cjs");if(typeof window<"u"){let s=function(e){return function(...n){try{return e.apply(this,n)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t instanceof Error&&t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("../components/LoyaltyPointsCard-D4gxs6co.cjs")).then(e=>e.LoyaltyPointsCard_ce).then(e=>{const n=e.default||e;customElements.get("loyalty-points-card")||customElements.define("loyalty-points-card",n.element||n)}).catch(e=>{console.error("BOOT ERROR:",e)})}module.exports=o.LoyaltyPointsCard;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import { L as
|
|
1
|
+
import { L as l } from "../components/LoyaltyPointsCard-CULWD6ZO.js";
|
|
2
|
+
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
3
|
+
}, globalThis.customElements = { define() {
|
|
4
|
+
}, get() {
|
|
5
|
+
}, whenDefined() {
|
|
6
|
+
} });
|
|
2
7
|
if (typeof window < "u") {
|
|
3
8
|
let s = function(e) {
|
|
4
9
|
return function(...n) {
|
|
@@ -11,7 +16,7 @@ if (typeof window < "u") {
|
|
|
11
16
|
}
|
|
12
17
|
};
|
|
13
18
|
};
|
|
14
|
-
customElements.define = s(customElements.define), import("../components/LoyaltyPointsCard-
|
|
19
|
+
customElements.define = s(customElements.define), import("../components/LoyaltyPointsCard-CULWD6ZO.js").then((e) => e.a).then((e) => {
|
|
15
20
|
const n = e.default || e;
|
|
16
21
|
customElements.get("loyalty-points-card") || customElements.define("loyalty-points-card", n.element || n);
|
|
17
22
|
}).catch((e) => {
|
|
@@ -19,5 +24,5 @@ if (typeof window < "u") {
|
|
|
19
24
|
});
|
|
20
25
|
}
|
|
21
26
|
export {
|
|
22
|
-
|
|
27
|
+
l as default
|
|
23
28
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/loyalty-points-card",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.13",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./esnext/loyalty-points-card.cjs",
|
|
6
6
|
"module": "./esnext/loyalty-points-card.js",
|
|
@@ -12,10 +12,13 @@
|
|
|
12
12
|
"default": "./esnext/loyalty-points-card.js"
|
|
13
13
|
},
|
|
14
14
|
"./esnext/loyalty-points-card.cjs": "./esnext/loyalty-points-card.cjs",
|
|
15
|
-
"./esnext/loyalty-points-card.js": "./esnext/loyalty-points-card.js"
|
|
15
|
+
"./esnext/loyalty-points-card.js": "./esnext/loyalty-points-card.js",
|
|
16
|
+
"./es2015/loyalty-points-card.cjs": "./es2015/loyalty-points-card.cjs",
|
|
17
|
+
"./es2015/loyalty-points-card.js": "./es2015/loyalty-points-card.js"
|
|
16
18
|
},
|
|
17
19
|
"files": [
|
|
18
20
|
"esnext",
|
|
21
|
+
"es2015",
|
|
19
22
|
"components"
|
|
20
23
|
],
|
|
21
24
|
"publishConfig": {
|