@everymatrix/loyalty-level 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/LoyaltyLevel-2hhRinCa.js +6589 -0
- package/components/LoyaltyLevel-ByFtxWEU.cjs +5 -0
- package/components/{LoyaltyLevel-C2oaeZs2.js → LoyaltyLevel-ByLvDhUG.js} +1691 -1735
- package/components/LoyaltyPagination-B5rxwaYY.js +141 -0
- package/components/LoyaltyPagination-DSdslRRF.js +142 -0
- package/components/LoyaltyPagination-izmgSCYv.cjs +10 -0
- package/es2015/loyalty-level.cjs +1 -0
- package/es2015/loyalty-level.js +16 -0
- package/package.json +9 -21
- package/components/LoyaltyLevel-Dl163hXA.cjs +0 -5
- package/svelte/loyalty-level.js +0 -5586
- package/wc/loyalty-level.cjs +0 -1
- package/wc/loyalty-level.js +0 -14
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";var Wa=Object.defineProperty,za=Object.defineProperties;var qa=Object.getOwnPropertyDescriptors;var Ni=Object.getOwnPropertySymbols;var Za=Object.prototype.hasOwnProperty,Ya=Object.prototype.propertyIsEnumerable;var Bi=e=>{throw TypeError(e)};var Pn=(e,t,r)=>t in e?Wa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,zr=(e,t)=>{for(var r in t||(t={}))Za.call(t,r)&&Pn(e,r,t[r]);if(Ni)for(var r of Ni(t))Ya.call(t,r)&&Pn(e,r,t[r]);return e},qr=(e,t)=>za(e,qa(t));var G=(e,t,r)=>Pn(e,typeof t!="symbol"?t+"":t,r),On=(e,t,r)=>t.has(e)||Bi("Cannot "+r);var c=(e,t,r)=>(On(e,t,"read from private field"),r?r.call(e):t.get(e)),T=(e,t,r)=>t.has(e)?Bi("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),x=(e,t,r,n)=>(On(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),z=(e,t,r)=>(On(e,t,"access private method"),r);var Wt=(e,t,r)=>new Promise((n,i)=>{var s=o=>{try{l(r.next(o))}catch(u){i(u)}},a=o=>{try{l(r.throw(o))}catch(u){i(u)}},l=o=>o.done?n(o.value):Promise.resolve(o.value).then(s,a);l((r=r.apply(e,t)).next())});const Qa="5";var es,ts,rs;typeof window!="undefined"&&((rs=(ts=(es=window.__svelte)!=null?es:window.__svelte={}).v)!=null?rs:ts.v=new Set).add(Qa);const Ja=1,Ka=2,ns=4,eo=8,to=16,ro=1,no=2,is="[",mn="[!",ui="]",It={},Z=Symbol(),io="http://www.w3.org/1999/xhtml",Un=!1;var ss=Array.isArray,so=Array.prototype.indexOf,gn=Array.from,sn=Object.keys,Hr=Object.defineProperty,Kt=Object.getOwnPropertyDescriptor,ao=Object.getOwnPropertyDescriptors,oo=Object.prototype,lo=Array.prototype,as=Object.getPrototypeOf,Li=Object.isExtensible;const ht=()=>{};function os(e){for(var t=0;t<e.length;t++)e[t]()}function ls(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const Q=2,an=4,yn=8,us=1<<24,Ke=16,et=32,mt=64,fi=128,Te=512,ee=1024,oe=2048,tt=4096,_e=8192,Qe=16384,bn=32768,ar=65536,Pi=1<<17,fs=1<<18,Rt=1<<19,uo=1<<20,Ye=1<<25,Ct=32768,kn=1<<21,hi=1<<22,ct=1<<23,Jr=Symbol("$state"),fo=Symbol("legacy props"),ho=Symbol(""),Qt=new class extends Error{constructor(){super(...arguments);G(this,"name","StaleReactionError");G(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},ci=3,$t=8;function co(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function vo(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function po(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function _o(e){throw new Error("https://svelte.dev/e/effect_orphan")}function mo(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function go(){throw new Error("https://svelte.dev/e/hydration_failed")}function yo(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function bo(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Eo(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function xo(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Mr(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function wo(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let N=!1;function Oe(e){N=e}let S;function ie(e){if(e===null)throw Mr(),It;return S=e}function or(){return ie(Me(S))}function F(e){if(N){if(Me(S)!==null)throw Mr(),It;S=e}}function To(e=1){if(N){for(var t=e,r=S;t--;)r=Me(r);S=r}}function on(e=!0){for(var t=0,r=S;;){if(r.nodeType===$t){var n=r.data;if(n===ui){if(t===0)return r;t-=1}else(n===is||n===mn)&&(t+=1)}var i=Me(r);e&&r.remove(),r=i}}function hs(e){if(!e||e.nodeType!==$t)throw Mr(),It;return e.data}function cs(e){return e===this.v}function ds(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function vs(e){return!ds(e,this.v)}let So=!1,Ae=null;function lr(e){Ae=e}function di(e,t=!1,r){Ae={p:Ae,i:!1,c:null,e:null,s:e,x:null,l:null}}function vi(e){var t=Ae,r=t.e;if(r!==null){t.e=null;for(var n of r)$s(n)}return e!==void 0&&(t.x=e),t.i=!0,Ae=t.p,e!=null?e:{}}function ps(){return!0}let xt=[];function _s(){var e=xt;xt=[],os(e)}function pr(e){if(xt.length===0&&!Sr){var t=xt;queueMicrotask(()=>{t===xt&&_s()})}xt.push(e)}function Ao(){for(;xt.length>0;)_s()}function ms(e){var t=B;if(t===null)return w.f|=ct,e;if(t.f&bn)ur(e,t);else{if(!(t.f&fi))throw e;t.b.error(e)}}function ur(e,t){for(;t!==null;){if(t.f&fi)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const Ho=-7169;function q(e,t){e.f=e.f&Ho|t}function pi(e){e.f&Te||e.deps===null?q(e,ee):q(e,tt)}function gs(e){if(e!==null)for(const t of e)!(t.f&Q)||!(t.f&Ct)||(t.f^=Ct,gs(t.deps))}function ys(e,t,r){e.f&oe?t.add(e):e.f&tt&&r.add(e),gs(e.deps),q(e,ee)}const Zr=new Set;let O=null,Y=null,xe=[],En=null,Gn=!1,Sr=!1;var er,tr,Tt,St,Pr,rr,nr,Ne,jn,Vn,bs,Es;const vn=class vn{constructor(){T(this,Ne);G(this,"committed",!1);G(this,"current",new Map);G(this,"previous",new Map);T(this,er,new Set);T(this,tr,new Set);T(this,Tt,0);T(this,St,0);T(this,Pr,null);T(this,rr,new Set);T(this,nr,new Set);G(this,"skipped_effects",new Set);G(this,"is_fork",!1)}is_deferred(){return this.is_fork||c(this,St)>0}process(t){var i;xe=[],this.apply();var r=[],n=[];for(const s of t)z(this,Ne,jn).call(this,s,r,n);this.is_fork||z(this,Ne,bs).call(this),this.is_deferred()?(z(this,Ne,Vn).call(this,n),z(this,Ne,Vn).call(this,r)):(O=null,Oi(n),Oi(r),(i=c(this,Pr))==null||i.resolve()),Y=null}capture(t,r){r!==Z&&!this.previous.has(t)&&this.previous.set(t,r),t.f&ct||(this.current.set(t,t.v),Y==null||Y.set(t,t.v))}activate(){O=this,this.apply()}deactivate(){O===this&&(O=null,Y=null)}flush(){if(this.activate(),xe.length>0){if(xs(),O!==null&&O!==this)return}else c(this,Tt)===0&&this.process([]);this.deactivate()}discard(){for(const t of c(this,tr))t(this);c(this,tr).clear()}increment(t){x(this,Tt,c(this,Tt)+1),t&&x(this,St,c(this,St)+1)}decrement(t){x(this,Tt,c(this,Tt)-1),t&&x(this,St,c(this,St)-1),this.revive()}revive(){for(const t of c(this,rr))c(this,nr).delete(t),q(t,oe),Je(t);for(const t of c(this,nr))q(t,tt),Je(t);this.flush()}oncommit(t){c(this,er).add(t)}ondiscard(t){c(this,tr).add(t)}settled(){var t;return((t=c(this,Pr))!=null?t:x(this,Pr,ls())).promise}static ensure(){if(O===null){const t=O=new vn;Zr.add(O),Sr||vn.enqueue(()=>{O===t&&t.flush()})}return O}static enqueue(t){pr(t)}apply(){}};er=new WeakMap,tr=new WeakMap,Tt=new WeakMap,St=new WeakMap,Pr=new WeakMap,rr=new WeakMap,nr=new WeakMap,Ne=new WeakSet,jn=function(t,r,n){t.f^=ee;for(var i=t.first,s=null;i!==null;){var a=i.f,l=(a&(et|mt))!==0,o=l&&(a&ee)!==0,u=o||(a&_e)!==0||this.skipped_effects.has(i);if(!u&&i.fn!==null){l?i.f^=ee:s!==null&&a&(an|yn|us)?s.b.defer_effect(i):a&an?r.push(i):Rr(i)&&(a&Ke&&c(this,rr).add(i),Nr(i));var f=i.first;if(f!==null){i=f;continue}}var d=i.parent;for(i=i.next;i===null&&d!==null;)d===s&&(s=null),i=d.next,d=d.parent}},Vn=function(t){for(var r=0;r<t.length;r+=1)ys(t[r],c(this,rr),c(this,nr))},bs=function(){if(c(this,St)===0){for(const t of c(this,er))t();c(this,er).clear()}c(this,Tt)===0&&z(this,Ne,Es).call(this)},Es=function(){var i;if(Zr.size>1){this.previous.clear();var t=Y,r=!0;for(const s of Zr){if(s===this){r=!1;continue}const a=[];for(const[o,u]of this.current){if(s.current.has(o))if(r&&u!==s.current.get(o))s.current.set(o,u);else continue;a.push(o)}if(a.length===0)continue;const l=[...s.current.keys()].filter(o=>!this.current.has(o));if(l.length>0){var n=xe;xe=[];const o=new Set,u=new Map;for(const f of a)ws(f,l,o,u);if(xe.length>0){O=s,s.apply();for(const f of xe)z(i=s,Ne,jn).call(i,f,[],[]);s.deactivate()}xe=n}}O=null,Y=t}this.committed=!0,Zr.delete(this)};let Ge=vn;function ot(e){var t=Sr;Sr=!0;try{for(var r;;){if(Ao(),xe.length===0&&(O==null||O.flush(),xe.length===0))return En=null,r;xs()}}finally{Sr=t}}function xs(){var e=Pt;Gn=!0;var t=null;try{var r=0;for(un(!0);xe.length>0;){var n=Ge.ensure();if(r++>1e3){var i,s;No()}n.process(xe),dt.clear()}}finally{Gn=!1,un(e),En=null}}function No(){try{mo()}catch(e){ur(e,En)}}let Le=null;function Oi(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if(!(n.f&(Qe|_e))&&Rr(n)&&(Le=new Set,Nr(n),n.deps===null&&n.first===null&&n.nodes===null&&(n.teardown===null&&n.ac===null?Gs(n):n.fn=null),(Le==null?void 0:Le.size)>0)){dt.clear();for(const i of Le){if(i.f&(Qe|_e))continue;const s=[i];let a=i.parent;for(;a!==null;)Le.has(a)&&(Le.delete(a),s.push(a)),a=a.parent;for(let l=s.length-1;l>=0;l--){const o=s[l];o.f&(Qe|_e)||Nr(o)}}Le.clear()}}Le=null}}function ws(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&Q?ws(i,t,r,n):s&(hi|Ke)&&!(s&oe)&&Ts(i,t,n)&&(q(i,oe),Je(i))}}function Ts(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&Q&&Ts(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function Je(e){for(var t=En=e;t.parent!==null;){t=t.parent;var r=t.f;if(Gn&&t===B&&r&Ke&&!(r&fs))return;if(r&(mt|et)){if(!(r&ee))return;t.f^=ee}}xe.push(t)}function Bo(e){let t=0,r=Mt(0),n;return()=>{yi()&&(_(r),Ei(()=>(t===0&&(n=Ti(()=>e(()=>Ar(r)))),t+=1,()=>{pr(()=>{t-=1,t===0&&(n==null||n(),n=void 0,Ar(r))})})))}}var Lo=ar|Rt|fi;function Po(e,t,r){new Oo(e,t,r)}var ve,Or,$e,At,De,be,fe,Fe,ze,lt,Ht,qe,Nt,ir,sr,ut,pn,X,Ss,As,Xn,Kr,en,Wn;class Oo{constructor(t,r,n){T(this,X);G(this,"parent");G(this,"is_pending",!1);T(this,ve);T(this,Or,N?S:null);T(this,$e);T(this,At);T(this,De);T(this,be,null);T(this,fe,null);T(this,Fe,null);T(this,ze,null);T(this,lt,null);T(this,Ht,0);T(this,qe,0);T(this,Nt,!1);T(this,ir,new Set);T(this,sr,new Set);T(this,ut,null);T(this,pn,Bo(()=>(x(this,ut,Mt(c(this,Ht))),()=>{x(this,ut,null)})));x(this,ve,t),x(this,$e,r),x(this,At,n),this.parent=B.b,this.is_pending=!!c(this,$e).pending,x(this,De,xi(()=>{if(B.b=this,N){const s=c(this,Or);or(),s.nodeType===$t&&s.data===mn?z(this,X,As).call(this):(z(this,X,Ss).call(this),c(this,qe)===0&&(this.is_pending=!1))}else{var i=z(this,X,Xn).call(this);try{x(this,be,we(()=>n(i)))}catch(s){this.error(s)}c(this,qe)>0?z(this,X,en).call(this):this.is_pending=!1}return()=>{var s;(s=c(this,lt))==null||s.remove()}},Lo)),N&&x(this,ve,S)}defer_effect(t){ys(t,c(this,ir),c(this,sr))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!c(this,$e).pending}update_pending_count(t){z(this,X,Wn).call(this,t),x(this,Ht,c(this,Ht)+t),c(this,ut)&&fr(c(this,ut),c(this,Ht))}get_effect_pending(){return c(this,pn).call(this),_(c(this,ut))}error(t){var r=c(this,$e).onerror;let n=c(this,$e).failed;if(c(this,Nt)||!r&&!n)throw t;c(this,be)&&(se(c(this,be)),x(this,be,null)),c(this,fe)&&(se(c(this,fe)),x(this,fe,null)),c(this,Fe)&&(se(c(this,Fe)),x(this,Fe,null)),N&&(ie(c(this,Or)),To(),ie(on()));var i=!1,s=!1;const a=()=>{if(i){wo();return}i=!0,s&&xo(),Ge.ensure(),x(this,Ht,0),c(this,Fe)!==null&&Lt(c(this,Fe),()=>{x(this,Fe,null)}),this.is_pending=this.has_pending_snippet(),x(this,be,z(this,X,Kr).call(this,()=>(x(this,Nt,!1),we(()=>c(this,At).call(this,c(this,ve)))))),c(this,qe)>0?z(this,X,en).call(this):this.is_pending=!1};var l=w;try{K(null),s=!0,r==null||r(t,a),s=!1}catch(o){ur(o,c(this,De)&&c(this,De).parent)}finally{K(l)}n&&pr(()=>{x(this,Fe,z(this,X,Kr).call(this,()=>{Ge.ensure(),x(this,Nt,!0);try{return we(()=>{n(c(this,ve),()=>t,()=>a)})}catch(o){return ur(o,c(this,De).parent),null}finally{x(this,Nt,!1)}}))})}}ve=new WeakMap,Or=new WeakMap,$e=new WeakMap,At=new WeakMap,De=new WeakMap,be=new WeakMap,fe=new WeakMap,Fe=new WeakMap,ze=new WeakMap,lt=new WeakMap,Ht=new WeakMap,qe=new WeakMap,Nt=new WeakMap,ir=new WeakMap,sr=new WeakMap,ut=new WeakMap,pn=new WeakMap,X=new WeakSet,Ss=function(){try{x(this,be,we(()=>c(this,At).call(this,c(this,ve))))}catch(t){this.error(t)}},As=function(){const t=c(this,$e).pending;t&&(x(this,fe,we(()=>t(c(this,ve)))),Ge.enqueue(()=>{var r=z(this,X,Xn).call(this);x(this,be,z(this,X,Kr).call(this,()=>(Ge.ensure(),we(()=>c(this,At).call(this,r))))),c(this,qe)>0?z(this,X,en).call(this):(Lt(c(this,fe),()=>{x(this,fe,null)}),this.is_pending=!1)}))},Xn=function(){var t=c(this,ve);return this.is_pending&&(x(this,lt,Se()),c(this,ve).before(c(this,lt)),t=c(this,lt)),t},Kr=function(t){var r=B,n=w,i=Ae;He(c(this,De)),K(c(this,De)),lr(c(this,De).ctx);try{return t()}catch(s){return ms(s),null}finally{He(r),K(n),lr(i)}},en=function(){const t=c(this,$e).pending;c(this,be)!==null&&(x(this,ze,document.createDocumentFragment()),c(this,ze).append(c(this,lt)),Xs(c(this,be),c(this,ze))),c(this,fe)===null&&x(this,fe,we(()=>t(c(this,ve))))},Wn=function(t){var r;if(!this.has_pending_snippet()){this.parent&&z(r=this.parent,X,Wn).call(r,t);return}if(x(this,qe,c(this,qe)+t),c(this,qe)===0){this.is_pending=!1;for(const n of c(this,ir))q(n,oe),Je(n);for(const n of c(this,sr))q(n,tt),Je(n);c(this,ir).clear(),c(this,sr).clear(),c(this,fe)&&Lt(c(this,fe),()=>{x(this,fe,null)}),c(this,ze)&&(c(this,ve).before(c(this,ze)),x(this,ze,null))}};function Io(e,t,r,n){const i=xn;if(r.length===0&&e.length===0){n(t.map(i));return}var s=O,a=B,l=Co();function o(){Promise.all(r.map(u=>Mo(u))).then(u=>{l();try{n([...t.map(i),...u])}catch(f){a.f&Qe||ur(f,a)}s==null||s.deactivate(),ln()}).catch(u=>{ur(u,a)})}e.length>0?Promise.all(e).then(()=>{l();try{return o()}finally{s==null||s.deactivate(),ln()}}):o()}function Co(){var e=B,t=w,r=Ae,n=O;return function(s=!0){He(e),K(t),lr(r),s&&(n==null||n.activate())}}function ln(){He(null),K(null),lr(null)}function xn(e){var t=Q|oe,r=w!==null&&w.f&Q?w:null;return B!==null&&(B.f|=Rt),{ctx:Ae,deps:null,effects:null,equals:cs,f:t,fn:e,reactions:null,rv:0,v:Z,wv:0,parent:r!=null?r:B,ac:null}}function Mo(e,t,r){let n=B;n===null&&co();var i=n.b,s=void 0,a=Mt(Z),l=!w,o=new Map;return jo(()=>{var v;var u=ls();s=u.promise;try{Promise.resolve(e()).then(u.resolve,u.reject).then(()=>{f===O&&f.committed&&f.deactivate(),ln()})}catch(g){u.reject(g),ln()}var f=O;if(l){var d=i.is_rendered();i.update_pending_count(1),f.increment(d),(v=o.get(f))==null||v.reject(Qt),o.delete(f),o.set(f,u)}const h=(g,b=void 0)=>{if(f.activate(),b)b!==Qt&&(a.f|=ct,fr(a,b));else{a.f&ct&&(a.f^=ct),fr(a,g);for(const[p,y]of o){if(o.delete(p),p===f)break;y.reject(Qt)}}l&&(i.update_pending_count(-1),f.decrement(d))};u.promise.then(h,g=>h(null,g||"unknown"))}),bi(()=>{for(const u of o.values())u.reject(Qt)}),new Promise(u=>{function f(d){function h(){d===s?u(a):f(s)}d.then(h,h)}f(s)})}function Et(e){const t=xn(e);return Ws(t),t}function Ro(e){const t=xn(e);return t.equals=vs,t}function Hs(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)se(t[r])}}function $o(e){for(var t=e.parent;t!==null;){if(!(t.f&Q))return t.f&Qe?null:t;t=t.parent}return null}function _i(e){var t,r=B;He($o(e));try{e.f&=~Ct,Hs(e),t=Ys(e)}finally{He(r)}return t}function Ns(e){var t=_i(e);if(!e.equals(t)&&(e.wv=qs(),(!(O!=null&&O.is_fork)||e.deps===null)&&(e.v=t,e.deps===null))){q(e,ee);return}pt||(Y!==null?(yi()||O!=null&&O.is_fork)&&Y.set(e,t):pi(e))}let zn=new Set;const dt=new Map;let Bs=!1;function Mt(e,t){var r={f:0,v:e,reactions:null,equals:cs,rv:0,wv:0};return r}function V(e,t){const r=Mt(e);return Ws(r),r}function mi(e,t=!1,r=!0){const n=Mt(e);return t||(n.equals=vs),n}function I(e,t,r=!1){w!==null&&(!Ce||w.f&Pi)&&ps()&&w.f&(Q|Ke|hi|Pi)&&!(ae!=null&&ae.includes(e))&&Eo();let n=r?Jt(t):t;return fr(e,n)}function fr(e,t){if(!e.equals(t)){var r=e.v;pt?dt.set(e,t):dt.set(e,r),e.v=t;var n=Ge.ensure();if(n.capture(e,r),e.f&Q){const i=e;e.f&oe&&_i(i),pi(i)}e.wv=qs(),Ls(e,oe),B!==null&&B.f&ee&&!(B.f&(et|mt))&&(ye===null?Xo([e]):ye.push(e)),!n.is_fork&&zn.size>0&&!Bs&&Do()}return t}function Do(){Bs=!1;var e=Pt;un(!0);const t=Array.from(zn);try{for(const r of t)r.f&ee&&q(r,tt),Rr(r)&&Nr(r)}finally{un(e)}zn.clear()}function Ar(e){I(e,e.v+1)}function Ls(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,l=(a&oe)===0;if(l&&q(s,t),a&Q){var o=s;Y==null||Y.delete(o),a&Ct||(a&Te&&(s.f|=Ct),Ls(o,tt))}else l&&(a&Ke&&Le!==null&&Le.add(s),Je(s))}}function Jt(e){if(typeof e!="object"||e===null||Jr in e)return e;const t=as(e);if(t!==oo&&t!==lo)return e;var r=new Map,n=ss(e),i=V(0),s=Ot,a=l=>{if(Ot===s)return l();var o=w,u=Ot;K(null),Mi(s);var f=l();return K(o),Mi(u),f};return n&&r.set("length",V(e.length)),new Proxy(e,{defineProperty(l,o,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&yo();var f=r.get(o);return f===void 0?f=a(()=>{var d=V(u.value);return r.set(o,d),d}):I(f,u.value,!0),!0},deleteProperty(l,o){var u=r.get(o);if(u===void 0){if(o in l){const f=a(()=>V(Z));r.set(o,f),Ar(i)}}else I(u,Z),Ar(i);return!0},get(l,o,u){var v;if(o===Jr)return e;var f=r.get(o),d=o in l;if(f===void 0&&(!d||(v=Kt(l,o))!=null&&v.writable)&&(f=a(()=>{var g=Jt(d?l[o]:Z),b=V(g);return b}),r.set(o,f)),f!==void 0){var h=_(f);return h===Z?void 0:h}return Reflect.get(l,o,u)},getOwnPropertyDescriptor(l,o){var u=Reflect.getOwnPropertyDescriptor(l,o);if(u&&"value"in u){var f=r.get(o);f&&(u.value=_(f))}else if(u===void 0){var d=r.get(o),h=d==null?void 0:d.v;if(d!==void 0&&h!==Z)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return u},has(l,o){var h;if(o===Jr)return!0;var u=r.get(o),f=u!==void 0&&u.v!==Z||Reflect.has(l,o);if(u!==void 0||B!==null&&(!f||(h=Kt(l,o))!=null&&h.writable)){u===void 0&&(u=a(()=>{var v=f?Jt(l[o]):Z,g=V(v);return g}),r.set(o,u));var d=_(u);if(d===Z)return!1}return f},set(l,o,u,f){var P;var d=r.get(o),h=o in l;if(n&&o==="length")for(var v=u;v<d.v;v+=1){var g=r.get(v+"");g!==void 0?I(g,Z):v in l&&(g=a(()=>V(Z)),r.set(v+"",g))}if(d===void 0)(!h||(P=Kt(l,o))!=null&&P.writable)&&(d=a(()=>V(void 0)),I(d,Jt(u)),r.set(o,d));else{h=d.v!==Z;var b=a(()=>Jt(u));I(d,b)}var p=Reflect.getOwnPropertyDescriptor(l,o);if(p!=null&&p.set&&p.set.call(f,u),!h){if(n&&typeof o=="string"){var y=r.get("length"),L=Number(o);Number.isInteger(L)&&L>=y.v&&I(y,L+1)}Ar(i)}return!0},ownKeys(l){_(i);var o=Reflect.ownKeys(l).filter(d=>{var h=r.get(d);return h===void 0||h.v!==Z});for(var[u,f]of r)f.v!==Z&&!(u in l)&&o.push(u);return o},setPrototypeOf(){bo()}})}var Ii,Ps,Os,Is;function qn(){if(Ii===void 0){Ii=window,Ps=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Os=Kt(t,"firstChild").get,Is=Kt(t,"nextSibling").get,Li(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Li(r)&&(r.__t=void 0)}}function Se(e=""){return document.createTextNode(e)}function Ie(e){return Os.call(e)}function Me(e){return Is.call(e)}function j(e,t){if(!N)return Ie(e);var r=Ie(S);if(r===null)r=S.appendChild(Se());else if(t&&r.nodeType!==ci){var n=Se();return r==null||r.before(n),ie(n),n}return ie(r),r}function Cs(e,t=!1){if(!N){var r=Ie(e);return r instanceof Comment&&r.data===""?Me(r):r}if(t&&(S==null?void 0:S.nodeType)!==ci){var n=Se();return S==null||S.before(n),ie(n),n}return S}function ue(e,t=1,r=!1){let n=N?S:e;for(var i;t--;)i=n,n=Me(n);if(!N)return n;if(r&&(n==null?void 0:n.nodeType)!==ci){var s=Se();return n===null?i==null||i.after(s):n.before(s),ie(s),s}return ie(n),n}function Ms(e){e.textContent=""}function Rs(){return!1}function gi(e){var t=w,r=B;K(null),He(null);try{return e()}finally{K(t),He(r)}}function Fo(e){B===null&&(w===null&&_o(),po()),pt&&vo()}function Uo(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function je(e,t,r){var l;var n=B;n!==null&&n.f&_e&&(e|=_e);var i={ctx:Ae,deps:null,nodes:null,f:e|oe|Te,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{Nr(i),i.f|=bn}catch(o){throw se(i),o}else t!==null&&Je(i);var s=i;if(r&&s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&!(s.f&Rt)&&(s=s.first,e&Ke&&e&ar&&s!==null&&(s.f|=ar)),s!==null&&(s.parent=n,n!==null&&Uo(s,n),w!==null&&w.f&Q&&!(e&mt))){var a=w;((l=a.effects)!=null?l:a.effects=[]).push(s)}return i}function yi(){return w!==null&&!Ce}function bi(e){const t=je(yn,null,!1);return q(t,ee),t.teardown=e,t}function We(e){var i;Fo();var t=B.f,r=!w&&(t&et)!==0&&(t&bn)===0;if(r){var n=Ae;((i=n.e)!=null?i:n.e=[]).push(e)}else return $s(e)}function $s(e){return je(an|uo,e,!1)}function ko(e){Ge.ensure();const t=je(mt|Rt,e,!0);return()=>{se(t)}}function Go(e){Ge.ensure();const t=je(mt|Rt,e,!0);return(r={})=>new Promise(n=>{r.outro?Lt(t,()=>{se(t),n(void 0)}):(se(t),n(void 0))})}function Ds(e){return je(an,e,!1)}function jo(e){return je(hi|Rt,e,!0)}function Ei(e,t=0){return je(yn|t,e,!0)}function ge(e,t=[],r=[],n=[]){Io(n,t,r,i=>{je(yn,()=>e(...i.map(_)),!0)})}function xi(e,t=0){var r=je(Ke|t,e,!0);return r}function we(e){return je(et|Rt,e,!0)}function Fs(e){var t=e.teardown;if(t!==null){const r=pt,n=w;Ci(!0),K(null);try{t.call(null)}finally{Ci(r),K(n)}}}function Us(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&gi(()=>{i.abort(Qt)});var n=r.next;r.f&mt?r.parent=null:se(r,t),r=n}}function Vo(e){for(var t=e.first;t!==null;){var r=t.next;t.f&et||se(t),t=r}}function se(e,t=!0){var r=!1;(t||e.f&fs)&&e.nodes!==null&&e.nodes.end!==null&&(ks(e.nodes.start,e.nodes.end),r=!0),Us(e,t&&!r),fn(e,0),q(e,Qe);var n=e.nodes&&e.nodes.t;if(n!==null)for(const s of n)s.stop();Fs(e);var i=e.parent;i!==null&&i.first!==null&&Gs(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function ks(e,t){for(;e!==null;){var r=e===t?null:Me(e);e.remove(),e=r}}function Gs(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 Lt(e,t,r=!0){var n=[];js(e,n,!0);var i=()=>{r&&se(e),t&&t()},s=n.length;if(s>0){var a=()=>--s||i();for(var l of n)l.out(a)}else i()}function js(e,t,r){if(!(e.f&_e)){e.f^=_e;var n=e.nodes&&e.nodes.t;if(n!==null)for(const l of n)(l.is_global||r)&&t.push(l);for(var i=e.first;i!==null;){var s=i.next,a=(i.f&ar)!==0||(i.f&et)!==0&&(e.f&Ke)!==0;js(i,t,a?r:!1),i=s}}}function wi(e){Vs(e,!0)}function Vs(e,t){if(e.f&_e){e.f^=_e,e.f&ee||(q(e,oe),Je(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&ar)!==0||(r.f&et)!==0;Vs(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 Xs(e,t){if(e.nodes)for(var r=e.nodes.start,n=e.nodes.end;r!==null;){var i=r===n?null:Me(r);t.append(r),r=i}}let Pt=!1;function un(e){Pt=e}let pt=!1;function Ci(e){pt=e}let w=null,Ce=!1;function K(e){w=e}let B=null;function He(e){B=e}let ae=null;function Ws(e){w!==null&&(ae===null?ae=[e]:ae.push(e))}let he=null,ce=0,ye=null;function Xo(e){ye=e}let zs=1,wt=0,Ot=wt;function Mi(e){Ot=e}function qs(){return++zs}function Rr(e){var t=e.f;if(t&oe)return!0;if(t&Q&&(e.f&=~Ct),t&tt){for(var r=e.deps,n=r.length,i=0;i<n;i++){var s=r[i];if(Rr(s)&&Ns(s),s.wv>e.wv)return!0}t&Te&&Y===null&&q(e,ee)}return!1}function Zs(e,t,r=!0){var n=e.reactions;if(n!==null&&!(ae!=null&&ae.includes(e)))for(var i=0;i<n.length;i++){var s=n[i];s.f&Q?Zs(s,t,!1):t===s&&(r?q(s,oe):s.f&ee&&q(s,tt),Je(s))}}function Ys(e){var g,b;var t=he,r=ce,n=ye,i=w,s=ae,a=Ae,l=Ce,o=Ot,u=e.f;he=null,ce=0,ye=null,w=u&(et|mt)?null:e,ae=null,lr(e.ctx),Ce=!1,Ot=++wt,e.ac!==null&&(gi(()=>{e.ac.abort(Qt)}),e.ac=null);try{e.f|=kn;var f=e.fn,d=f(),h=e.deps;if(he!==null){var v;if(fn(e,ce),h!==null&&ce>0)for(h.length=ce+he.length,v=0;v<he.length;v++)h[ce+v]=he[v];else e.deps=h=he;if(yi()&&e.f&Te)for(v=ce;v<h.length;v++)((b=(g=h[v]).reactions)!=null?b:g.reactions=[]).push(e)}else h!==null&&ce<h.length&&(fn(e,ce),h.length=ce);if(ps()&&ye!==null&&!Ce&&h!==null&&!(e.f&(Q|tt|oe)))for(v=0;v<ye.length;v++)Zs(ye[v],e);if(i!==null&&i!==e){if(wt++,i.deps!==null)for(let p=0;p<r;p+=1)i.deps[p].rv=wt;if(t!==null)for(const p of t)p.rv=wt;ye!==null&&(n===null?n=ye:n.push(...ye))}return e.f&ct&&(e.f^=ct),d}catch(p){return ms(p)}finally{e.f^=kn,he=t,ce=r,ye=n,w=i,ae=s,lr(a),Ce=l,Ot=o}}function Wo(e,t){let r=t.reactions;if(r!==null){var n=so.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&Q&&(he===null||!he.includes(t))){var s=t;s.f&Te&&(s.f^=Te,s.f&=~Ct),pi(s),Hs(s),fn(s,0)}}function fn(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Wo(e,r[n])}function Nr(e){var t=e.f;if(!(t&Qe)){q(e,ee);var r=B,n=Pt;B=e,Pt=!0;try{t&(Ke|us)?Vo(e):Us(e),Fs(e);var i=Ys(e);e.teardown=typeof i=="function"?i:null,e.wv=zs;var s;Un&&So&&e.f&oe&&e.deps}finally{Pt=n,B=r}}}function zo(){return Wt(this,null,function*(){yield Promise.resolve(),ot()})}function _(e){var f;var t=e.f,r=(t&Q)!==0;if(w!==null&&!Ce){var n=B!==null&&(B.f&Qe)!==0;if(!n&&!(ae!=null&&ae.includes(e))){var i=w.deps;if(w.f&kn)e.rv<wt&&(e.rv=wt,he===null&&i!==null&&i[ce]===e?ce++:he===null?he=[e]:he.push(e));else{((f=w.deps)!=null?f:w.deps=[]).push(e);var s=e.reactions;s===null?e.reactions=[w]:s.includes(w)||s.push(w)}}}if(pt&&dt.has(e))return dt.get(e);if(r){var a=e;if(pt){var l=a.v;return(!(a.f&ee)&&a.reactions!==null||Js(a))&&(l=_i(a)),dt.set(a,l),l}var o=(a.f&Te)===0&&!Ce&&w!==null&&(Pt||(w.f&Te)!==0),u=a.deps===null;Rr(a)&&(o&&(a.f|=Te),Ns(a)),o&&!u&&Qs(a)}if(Y!=null&&Y.has(e))return Y.get(e);if(e.f&ct)throw e.v;return e.v}function Qs(e){var t;if(e.deps!==null){e.f|=Te;for(const r of e.deps)((t=r.reactions)!=null?t:r.reactions=[]).push(e),r.f&Q&&!(r.f&Te)&&Qs(r)}}function Js(e){if(e.v===Z)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(dt.has(t)||t.f&Q&&Js(t))return!0;return!1}function Ti(e){var t=Ce;try{return Ce=!0,e()}finally{Ce=t}}const Ks=new Set,Zn=new Set;function qo(e,t,r,n={}){function i(s){if(n.capture||xr.call(t,s),!s.cancelBubble)return gi(()=>r==null?void 0:r.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?pr(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function Zo(e,t,r,n,i){var s={capture:n,passive:i},a=qo(e,t,r,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&bi(()=>{t.removeEventListener(e,a,s)})}function ea(e){for(var t=0;t<e.length;t++)Ks.add(e[t]);for(var r of Zn)r(e)}let Ri=null;function xr(e){var p;var t=this,r=t.ownerDocument,n=e.type,i=((p=e.composedPath)==null?void 0:p.call(e))||[],s=i[0]||e.target;Ri=e;var a=0,l=Ri===e&&e.__root;if(l){var o=i.indexOf(l);if(o!==-1&&(t===document||t===window)){e.__root=t;return}var u=i.indexOf(t);if(u===-1)return;o<=u&&(a=o)}if(s=i[a]||e.target,s!==t){Hr(e,"currentTarget",{configurable:!0,get(){return s||r}});var f=w,d=B;K(null),He(null);try{for(var h,v=[];s!==null;){var g=s.assignedSlot||s.parentNode||s.host||null;try{var b=s["__"+n];b!=null&&(!s.disabled||e.target===s)&&b.call(s,e)}catch(y){h?v.push(y):h=y}if(e.cancelBubble||g===t||g===null)break;s=g}if(h){for(let y of v)queueMicrotask(()=>{throw y});throw h}}finally{e.__root=t,delete e.currentTarget,K(f),He(d)}}}function ta(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function vt(e,t){var r=B;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function Be(e,t){var r=(t&ro)!==0,n=(t&no)!==0,i,s=!e.startsWith("<!>");return()=>{if(N)return vt(S,null),S;i===void 0&&(i=ta(s?e:"<!>"+e),r||(i=Ie(i)));var a=n||Ps?document.importNode(i,!0):i.cloneNode(!0);if(r){var l=Ie(a),o=a.lastChild;vt(l,o)}else vt(a,a);return a}}function Yo(){if(N)return vt(S,null),S;var e=document.createDocumentFragment(),t=document.createComment(""),r=Se();return e.append(t,r),vt(t,r),e}function de(e,t){if(N){var r=B;(!(r.f&bn)||r.nodes.end===null)&&(r.nodes.end=S),or();return}e!==null&&e.before(t)}const Qo=["touchstart","touchmove"];function Jo(e){return Qo.includes(e)}function at(e,t){var n;var r=t==null?"":typeof t=="object"?t+"":t;r!==((n=e.__t)!=null?n:e.__t=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function ra(e,t){return na(e,t)}function Ko(e,t){var a;qn(),t.intro=(a=t.intro)!=null?a:!1;const r=t.target,n=N,i=S;try{for(var s=Ie(r);s&&(s.nodeType!==$t||s.data!==is);)s=Me(s);if(!s)throw It;Oe(!0),ie(s);const l=na(e,qr(zr({},t),{anchor:s}));return Oe(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
|
|
2
|
+
`).some(o=>o.startsWith("https://svelte.dev/e/")))throw l;return l!==It&&console.warn("Failed to hydrate: ",l),t.recover===!1&&go(),qn(),Ms(r),Oe(!1),ra(e,t)}finally{Oe(n),ie(i)}}const zt=new Map;function na(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:a=!0}){qn();var l=new Set,o=d=>{for(var h=0;h<d.length;h++){var v=d[h];if(!l.has(v)){l.add(v);var g=Jo(v);t.addEventListener(v,xr,{passive:g});var b=zt.get(v);b===void 0?(document.addEventListener(v,xr,{passive:g}),zt.set(v,1)):zt.set(v,b+1)}}};o(gn(Ks)),Zn.add(o);var u=void 0,f=Go(()=>{var d=r!=null?r:t.appendChild(Se());return Po(d,{pending:()=>{}},h=>{if(s){di({});var v=Ae;v.c=s}if(i&&(n.$$events=i),N&&vt(h,null),u=e(h,n)||{},N&&(B.nodes.end=S,S===null||S.nodeType!==$t||S.data!==ui))throw Mr(),It;s&&vi()}),()=>{var g;for(var h of l){t.removeEventListener(h,xr);var v=zt.get(h);--v===0?(document.removeEventListener(h,xr),zt.delete(h)):zt.set(h,v)}Zn.delete(o),d!==r&&((g=d.parentNode)==null||g.removeChild(d))}});return Yn.set(u,f),u}let Yn=new WeakMap;function el(e,t){const r=Yn.get(e);return r?(Yn.delete(e),r(t)):Promise.resolve()}var Pe,Ue,pe,Bt,Ir,Cr,_n;class tl{constructor(t,r=!0){G(this,"anchor");T(this,Pe,new Map);T(this,Ue,new Map);T(this,pe,new Map);T(this,Bt,new Set);T(this,Ir,!0);T(this,Cr,()=>{var t=O;if(c(this,Pe).has(t)){var r=c(this,Pe).get(t),n=c(this,Ue).get(r);if(n)wi(n),c(this,Bt).delete(r);else{var i=c(this,pe).get(r);i&&(c(this,Ue).set(r,i.effect),c(this,pe).delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(const[s,a]of c(this,Pe)){if(c(this,Pe).delete(s),s===t)break;const l=c(this,pe).get(a);l&&(se(l.effect),c(this,pe).delete(a))}for(const[s,a]of c(this,Ue)){if(s===r||c(this,Bt).has(s))continue;const l=()=>{if(Array.from(c(this,Pe).values()).includes(s)){var u=document.createDocumentFragment();Xs(a,u),u.append(Se()),c(this,pe).set(s,{effect:a,fragment:u})}else se(a);c(this,Bt).delete(s),c(this,Ue).delete(s)};c(this,Ir)||!n?(c(this,Bt).add(s),Lt(a,l,!1)):l()}}});T(this,_n,t=>{c(this,Pe).delete(t);const r=Array.from(c(this,Pe).values());for(const[n,i]of c(this,pe))r.includes(n)||(se(i.effect),c(this,pe).delete(n))});this.anchor=t,x(this,Ir,r)}ensure(t,r){var n=O,i=Rs();if(r&&!c(this,Ue).has(t)&&!c(this,pe).has(t))if(i){var s=document.createDocumentFragment(),a=Se();s.append(a),c(this,pe).set(t,{effect:we(()=>r(a)),fragment:s})}else c(this,Ue).set(t,we(()=>r(this.anchor)));if(c(this,Pe).set(n,t),i){for(const[l,o]of c(this,Ue))l===t?n.skipped_effects.delete(o):n.skipped_effects.add(o);for(const[l,o]of c(this,pe))l===t?n.skipped_effects.delete(o.effect):n.skipped_effects.add(o.effect);n.oncommit(c(this,Cr)),n.ondiscard(c(this,_n))}else N&&(this.anchor=S),c(this,Cr).call(this)}}Pe=new WeakMap,Ue=new WeakMap,pe=new WeakMap,Bt=new WeakMap,Ir=new WeakMap,Cr=new WeakMap,_n=new WeakMap;function Re(e,t,r=!1){N&&or();var n=new tl(e),i=r?ar:0;function s(a,l){if(N){const u=hs(e)===mn;if(a===u){var o=on();ie(o),n.anchor=o,Oe(!1),n.ensure(a,l),Oe(!0);return}}n.ensure(a,l)}xi(()=>{var a=!1;t((l,o=!0)=>{a=!0,s(o,l)}),a||s(!1,null)},i)}function rl(e,t){return t}function nl(e,t,r){var d;for(var n=[],i=t.length,s,a=t.length,l=0;l<i;l++){let h=t[l];Lt(h,()=>{if(s){if(s.pending.delete(h),s.done.add(h),s.pending.size===0){var v=e.outrogroups;Qn(gn(s.done)),v.delete(s),v.size===0&&(e.outrogroups=null)}}else a-=1},!1)}if(a===0){var o=n.length===0&&r!==null;if(o){var u=r,f=u.parentNode;Ms(f),f.append(u),e.items.clear()}Qn(t,!o)}else s={pending:new Set(t),done:new Set},((d=e.outrogroups)!=null?d:e.outrogroups=new Set).add(s)}function Qn(e,t=!0){for(var r=0;r<e.length;r++)se(e[r],t)}var qt;function ia(e,t,r,n,i,s=null){var a=e,l=new Map,o=(t&ns)!==0;if(o){var u=e;a=N?ie(Ie(u)):u.appendChild(Se())}N&&or();var f=null,d=Ro(()=>{var y=r();return ss(y)?y:y==null?[]:gn(y)}),h,v=!0;function g(){p.fallback=f,il(p,h,a,t,n),f!==null&&(h.length===0?f.f&Ye?(f.f^=Ye,wr(f,null,a)):wi(f):Lt(f,()=>{f=null}))}var b=xi(()=>{h=_(d);var y=h.length;let L=!1;if(N){var P=hs(a)===mn;P!==(y===0)&&(a=on(),ie(a),Oe(!1),L=!0)}for(var M=new Set,R=O,C=Rs(),k=0;k<y;k+=1){N&&S.nodeType===$t&&S.data===ui&&(a=S,L=!0,Oe(!1));var Ve=h[k],rt=n(Ve,k),le=v?null:l.get(rt);le?(le.v&&fr(le.v,Ve),le.i&&fr(le.i,k),C&&R.skipped_effects.delete(le.e)):(le=sl(l,v?a:qt!=null?qt:qt=Se(),Ve,rt,k,i,t,r),v||(le.e.f|=Ye),l.set(rt,le)),M.add(rt)}if(y===0&&s&&!f&&(v?f=we(()=>s(a)):(f=we(()=>s(qt!=null?qt:qt=Se())),f.f|=Ye)),N&&y>0&&ie(on()),!v)if(C){for(const[nt,Ft]of l)M.has(nt)||R.skipped_effects.add(Ft.e);R.oncommit(g),R.ondiscard(()=>{})}else g();L&&Oe(!0),_(d)}),p={effect:b,items:l,outrogroups:null,fallback:f};v=!1,N&&(a=S)}function il(e,t,r,n,i){var le,nt,Ft,$r,Dr,Fr,yr,Ut,kt;var s=(n&eo)!==0,a=t.length,l=e.items,o=e.effect.first,u,f=null,d,h=[],v=[],g,b,p,y;if(s)for(y=0;y<a;y+=1)g=t[y],b=i(g,y),p=l.get(b).e,p.f&Ye||((nt=(le=p.nodes)==null?void 0:le.a)==null||nt.measure(),(d!=null?d:d=new Set).add(p));for(y=0;y<a;y+=1){if(g=t[y],b=i(g,y),p=l.get(b).e,e.outrogroups!==null)for(const me of e.outrogroups)me.pending.delete(p),me.done.delete(p);if(p.f&Ye)if(p.f^=Ye,p===o)wr(p,null,r);else{var L=f?f.next:o;p===e.effect.last&&(e.effect.last=p.prev),p.prev&&(p.prev.next=p.next),p.next&&(p.next.prev=p.prev),st(e,f,p),st(e,p,L),wr(p,L,r),f=p,h=[],v=[],o=f.next;continue}if(p.f&_e&&(wi(p),s&&(($r=(Ft=p.nodes)==null?void 0:Ft.a)==null||$r.unfix(),(d!=null?d:d=new Set).delete(p))),p!==o){if(u!==void 0&&u.has(p)){if(h.length<v.length){var P=v[0],M;f=P.prev;var R=h[0],C=h[h.length-1];for(M=0;M<h.length;M+=1)wr(h[M],P,r);for(M=0;M<v.length;M+=1)u.delete(v[M]);st(e,R.prev,C.next),st(e,f,R),st(e,C,P),o=P,f=C,y-=1,h=[],v=[]}else u.delete(p),wr(p,o,r),st(e,p.prev,p.next),st(e,p,f===null?e.effect.first:f.next),st(e,f,p),f=p;continue}for(h=[],v=[];o!==null&&o!==p;)(u!=null?u:u=new Set).add(o),v.push(o),o=o.next;if(o===null)continue}p.f&Ye||h.push(p),f=p,o=p.next}if(e.outrogroups!==null){for(const me of e.outrogroups)me.pending.size===0&&(Qn(gn(me.done)),(Dr=e.outrogroups)==null||Dr.delete(me));e.outrogroups.size===0&&(e.outrogroups=null)}if(o!==null||u!==void 0){var k=[];if(u!==void 0)for(p of u)p.f&_e||k.push(p);for(;o!==null;)!(o.f&_e)&&o!==e.fallback&&k.push(o),o=o.next;var Ve=k.length;if(Ve>0){var rt=n&ns&&a===0?r:null;if(s){for(y=0;y<Ve;y+=1)(yr=(Fr=k[y].nodes)==null?void 0:Fr.a)==null||yr.measure();for(y=0;y<Ve;y+=1)(kt=(Ut=k[y].nodes)==null?void 0:Ut.a)==null||kt.fix()}nl(e,k,rt)}}s&&pr(()=>{var me,Ur;if(d!==void 0)for(p of d)(Ur=(me=p.nodes)==null?void 0:me.a)==null||Ur.apply()})}function sl(e,t,r,n,i,s,a,l){var o=a&Ja?a&to?Mt(r):mi(r,!1,!1):null,u=a&Ka?Mt(i):null;return{v:o,i:u,e:we(()=>(s(t,o!=null?o:r,u!=null?u:i,l),()=>{e.delete(n)}))}}function wr(e,t,r){if(e.nodes)for(var n=e.nodes.start,i=e.nodes.end,s=t&&!(t.f&Ye)?t.nodes.start:r;n!==null;){var a=Me(n);if(s.before(n),n===i)return;n=a}}function st(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}function $i(e,t,r=!1,n=!1,i=!1){var s=e,a="";ge(()=>{var h;var l=B;if(a===(a=(h=t())!=null?h:"")){N&&or();return}if(l.nodes!==null&&(ks(l.nodes.start,l.nodes.end),l.nodes=null),a!==""){if(N){S.data;for(var o=or(),u=o;o!==null&&(o.nodeType!==$t||o.data!=="");)u=o,o=Me(o);if(o===null)throw Mr(),It;vt(S,u),s=ie(o);return}var f=a+"";r?f=`<svg>${f}</svg>`:n&&(f=`<math>${f}</math>`);var d=ta(f);if((r||n)&&(d=Ie(d)),vt(Ie(d),d.lastChild),r||n)for(;Ie(d);)s.before(Ie(d));else s.before(d)}})}function sa(e,t){Ds(()=>{var i;var r=e.getRootNode(),n=r.host?r:(i=r.head)!=null?i:r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const s=document.createElement("style");s.id=t.hash,s.textContent=t.code,n.appendChild(s)}})}const Di=[...`
|
|
3
|
+
\r\f \v\uFEFF`];function al(e,t,r){var n=e==null?"":""+e;if(r){for(var i in r)if(r[i])n=n?n+" "+i:i;else if(n.length)for(var s=i.length,a=0;(a=n.indexOf(i,a))>=0;){var l=a+s;(a===0||Di.includes(n[a-1]))&&(l===n.length||Di.includes(n[l]))?n=(a===0?"":n.substring(0,a))+n.substring(l+1):a=l}}return n===""?null:n}function aa(e,t,r,n,i,s){var a=e.__className;if(N||a!==r||a===void 0){var l=al(r,n,s);(!N||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):e.className=l),e.__className=r}else if(s&&i!==s)for(var o in s){var u=!!s[o];(i==null||u!==!!i[o])&&e.classList.toggle(o,u)}return s}const ol=Symbol("is custom element"),ll=Symbol("is html");function Tr(e,t,r,n){var i=ul(e);N&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[ho]=r),r==null?e.removeAttribute(t):typeof r!="string"&&oa(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Yr(e,t,r){var n=w,i=B;let s=N;N&&Oe(!1),K(null),He(null);try{t!=="style"&&(Jn.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?oa(e).includes(t):r&&typeof r=="object")?e[t]=r:Tr(e,t,r==null?r:String(r))}finally{K(n),He(i),s&&Oe(!0)}}function ul(e){var t;return(t=e.__attributes)!=null?t:e.__attributes={[ol]:e.nodeName.includes("-"),[ll]:e.namespaceURI===io}}var Jn=new Map;function oa(e){var t=e.getAttribute("is")||e.nodeName,r=Jn.get(t);if(r)return r;Jn.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=ao(i);for(var a in n)n[a].set&&r.push(a);i=as(i)}return r}function Fi(e,t){return e===t||(e==null?void 0:e[Jr])===t}function fl(e={},t,r,n){return Ds(()=>{var i,s;return Ei(()=>{i=s,s=[],Ti(()=>{e!==r(...s)&&(t(e,...s),i&&Fi(r(...i),e)&&t(null,...i))})}),()=>{pr(()=>{s&&Fi(r(...s),e)&&t(null,...s)})}}),e}function Si(e,t,r){if(e==null)return t(void 0),r&&r(void 0),ht;const n=Ti(()=>e.subscribe(t,r));return n.unsubscribe?()=>n.unsubscribe():n}const Zt=[];function hl(e,t){return{subscribe:wn(e,t).subscribe}}function wn(e,t=ht){let r=null;const n=new Set;function i(l){if(ds(e,l)&&(e=l,r)){const o=!Zt.length;for(const u of n)u[1](),Zt.push(u,e);if(o){for(let u=0;u<Zt.length;u+=2)Zt[u][0](Zt[u+1]);Zt.length=0}}}function s(l){i(l(e))}function a(l,o=ht){const u=[l,o];return n.add(u),n.size===1&&(r=t(i,s)||ht),l(e),()=>{n.delete(u),n.size===0&&r&&(r(),r=null)}}return{set:i,update:s,subscribe:a}}function _r(e,t,r){const n=!Array.isArray(e),i=n?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=t.length<2;return hl(r,(a,l)=>{let o=!1;const u=[];let f=0,d=ht;const h=()=>{if(f)return;d();const g=t(n?u[0]:u,a,l);s?a(g):d=typeof g=="function"?g:ht},v=i.map((g,b)=>Si(g,p=>{u[b]=p,f&=~(1<<b),o&&h()},()=>{f|=1<<b}));return o=!0,h(),function(){os(v),d(),o=!1}})}function cl(e){let t;return Si(e,r=>t=r)(),t}let Kn=Symbol();function la(e,t,r){var s;const n=(s=r[t])!=null?s:r[t]={store:null,source:mi(void 0),unsubscribe:ht};if(n.store!==e&&!(Kn in r))if(n.unsubscribe(),n.store=e!=null?e:null,e==null)n.source.v=void 0,n.unsubscribe=ht;else{var i=!0;n.unsubscribe=Si(e,a=>{i?n.source.v=a:I(n.source,a)}),i=!1}return e&&Kn in r?cl(e):_(n.source)}function ua(){const e={};function t(){bi(()=>{for(var r in e)e[r].unsubscribe();Hr(e,Kn,{enumerable:!1,value:!0})})}return[e,t]}function Yt(e,t,r,n){var i=n,s=!0,a=()=>(s&&(s=!1,i=n),i),l;l=e[t],l===void 0&&n!==void 0&&(l=a());var o;o=()=>{var h=e[t];return h===void 0?a():(s=!0,h)};var u=!1,f=xn(()=>(u=!1,o())),d=B;return function(h,v){if(arguments.length>0){const g=v?_(f):h;return I(f,g),u=!0,i!==void 0&&(i=g),h}return pt&&u||d.f&Qe?f.v:_(f)}}function dl(e){return new vl(e)}var Ze,Ee;class vl{constructor(t){T(this,Ze);T(this,Ee);var s,a;var r=new Map,n=(l,o)=>{var u=mi(o,!1,!1);return r.set(l,u),u};const i=new Proxy(qr(zr({},t.props||{}),{$$events:{}}),{get(l,o){var u;return _((u=r.get(o))!=null?u:n(o,Reflect.get(l,o)))},has(l,o){var u;return o===fo?!0:(_((u=r.get(o))!=null?u:n(o,Reflect.get(l,o))),Reflect.has(l,o))},set(l,o,u){var f;return I((f=r.get(o))!=null?f:n(o,u),u),Reflect.set(l,o,u)}});x(this,Ee,(t.hydrate?Ko:ra)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:(s=t.intro)!=null?s:!1,recover:t.recover})),(!((a=t==null?void 0:t.props)!=null&&a.$$host)||t.sync===!1)&&ot(),x(this,Ze,i.$$events);for(const l of Object.keys(c(this,Ee)))l==="$set"||l==="$destroy"||l==="$on"||Hr(this,l,{get(){return c(this,Ee)[l]},set(o){c(this,Ee)[l]=o},enumerable:!0});c(this,Ee).$set=l=>{Object.assign(i,l)},c(this,Ee).$destroy=()=>{el(c(this,Ee))}}$set(t){c(this,Ee).$set(t)}$on(t,r){c(this,Ze)[t]=c(this,Ze)[t]||[];const n=(...i)=>r.call(this,...i);return c(this,Ze)[t].push(n),()=>{c(this,Ze)[t]=c(this,Ze)[t].filter(i=>i!==n)}}$destroy(){c(this,Ee).$destroy()}}Ze=new WeakMap,Ee=new WeakMap;let fa;typeof HTMLElement=="function"&&(fa=class extends HTMLElement{constructor(t,r,n){super();G(this,"$$ctor");G(this,"$$s");G(this,"$$c");G(this,"$$cn",!1);G(this,"$$d",{});G(this,"$$r",!1);G(this,"$$p_d",{});G(this,"$$l",{});G(this,"$$l_u",new Map);G(this,"$$me");this.$$ctor=t,this.$$s=r,n&&this.attachShadow({mode:"open"})}addEventListener(t,r,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const i=this.$$c.$on(t,r);this.$$l_u.set(r,i)}super.addEventListener(t,r,n)}removeEventListener(t,r,n){if(super.removeEventListener(t,r,n),this.$$c){const i=this.$$l_u.get(r);i&&(i(),this.$$l_u.delete(r))}}connectedCallback(){return Wt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(i){return s=>{const a=document.createElement("slot");i!=="default"&&(a.name=i),de(s,a)}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=pl(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]=tn(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=dl({component:this.$$ctor,target:this.shadowRoot||this,props:qr(zr({},this.$$d),{$$slots:r,$$host:this})}),this.$$me=ko(()=>{Ei(()=>{var i;this.$$r=!0;for(const s of sn(this.$$c)){if(!((i=this.$$p_d[s])!=null&&i.reflect))continue;this.$$d[s]=this.$$c[s];const a=tn(s,this.$$d[s],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,a)}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(t,r,n){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=tn(t,n,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return sn(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function tn(e,t,r,n){var s;const i=(s=r[e])==null?void 0:s.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function pl(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function ha(e,t,r,n,i,s){let a=class extends fa{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return sn(t).map(l=>(t[l].attribute||l).toLowerCase())}};return sn(t).forEach(l=>{Hr(a.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(o){var d;o=tn(l,o,t),this.$$d[l]=o;var u=this.$$c;if(u){var f=(d=Kt(u,l))==null?void 0:d.get;f?u[l]=o:u.$set({[l]:o})}}})}),n.forEach(l=>{Hr(a.prototype,l,{get(){var o;return(o=this.$$c)==null?void 0:o[l]}})}),e.element=a,a}class _l extends Error{constructor(t,r){super(r),this.code=t,this.name="ElevateApiError"}}const ml=e=>Wt(exports,null,function*(){var s;const t=new URL(`${e.apiEndpoint}/elevate/playerInfo?language=${(s=e.locale)!=null?s:""}`),r=new Headers({"Content-Type":"application/json"});e.userSession&&r.append("X-SessionId",e.userSession);const i=yield(yield fetch(t.href,{method:"GET",headers:r})).json();if(!i.success)throw new _l(i.errorCode,i.errorMessage);return i.data}),gl=e=>Wt(exports,null,function*(){var i;const t=new URL(`${e.apiEndpoint}/elevate/levels?language=${(i=e.locale)!=null?i:""}`);return(yield(yield fetch(t.href,{method:"GET"})).json()).data}),In=10,yl=(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},bl=e=>{window.postMessage({type:"GamificationXpUpdated",points:e},window.location.href)},El=e=>{let t=V(void 0),r=V(void 0),n=V(void 0),i=V(void 0),s=V(!1),a=V(void 0);const l=()=>Wt(exports,null,function*(){var v;const{apiEndpoint:o,userSession:u,locale:f,loadLevels:d,onLevelLoaded:h}=e();if(!(!o||!u)){I(s,!0),I(a,void 0);try{const g=[ml({apiEndpoint:o,userSession:u,locale:f}).then(b=>{var y,L,P,M,R,C,k;bl((y=b.level)==null?void 0:y.loyaltyPoints);const p=b.level;p.name=((L=p.presentation)==null?void 0:L.displayName)||p.name,p.spendablePoints=((P=b.spendableWallet)==null?void 0:P.total.points)||0,I(t,p,!0),I(n,(M=b.loyaltyWallet)==null?void 0:M.total,!0),I(i,(R=b.spendableWallet)==null?void 0:R.total,!0),h==null||h({elevateLevel:p}),h==null||h({elevateLevelWalletTotal:(C=b.spendableWallet)==null?void 0:C.total,loyaltyWalletTotal:(k=b.loyaltyWallet)==null?void 0:k.total})})];d&&g.push(gl({apiEndpoint:o,userSession:u,locale:f}).then(b=>{I(r,b,!0)})),yield Promise.all(g),yield zo(),_(r)&&_(t)&&(h==null||h({calculatedLevelFlag:yl(_(r),(v=_(t).loyaltyPoints)!=null?v:0)}))}catch(g){I(a,g,!0),console.error("Failed to load elevate info:",g)}finally{I(s,!1)}}});return We(()=>{const{apiEndpoint:o,userSession:u,locale:f,loadLevels:d}=e();l()}),We(()=>{const o=()=>{l()};return window.addEventListener("redeemRewardButton",o),()=>window.removeEventListener("redeemRewardButton",o)}),{get playerElevateLevel(){return _(t)},get levels(){return _(r)},get loyaltyWalletTotal(){return _(n)},get spendableWalletTotal(){return _(i)},get loading(){return _(s)},get error(){return _(a)},reload:l}};function xl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wl=function(t){return Tl(t)&&!Sl(t)};function Tl(e){return!!e&&typeof e=="object"}function Sl(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Nl(e)}var Al=typeof Symbol=="function"&&Symbol.for,Hl=Al?Symbol.for("react.element"):60103;function Nl(e){return e.$$typeof===Hl}function Bl(e){return Array.isArray(e)?[]:{}}function Br(e,t){return t.clone!==!1&&t.isMergeableObject(e)?hr(Bl(e),e,t):e}function Ll(e,t,r){return e.concat(t).map(function(n){return Br(n,r)})}function Pl(e,t){if(!t.customMerge)return hr;var r=t.customMerge(e);return typeof r=="function"?r:hr}function Ol(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Ui(e){return Object.keys(e).concat(Ol(e))}function ca(e,t){try{return t in e}catch(r){return!1}}function Il(e,t){return ca(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Cl(e,t,r){var n={};return r.isMergeableObject(e)&&Ui(e).forEach(function(i){n[i]=Br(e[i],r)}),Ui(t).forEach(function(i){Il(e,i)||(ca(e,i)&&r.isMergeableObject(t[i])?n[i]=Pl(i,r)(e[i],t[i],r):n[i]=Br(t[i],r))}),n}function hr(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Ll,r.isMergeableObject=r.isMergeableObject||wl,r.cloneUnlessOtherwiseSpecified=Br;var n=Array.isArray(t),i=Array.isArray(e),s=n===i;return s?n?r.arrayMerge(e,t,r):Cl(e,t,r):Br(t,r)}hr.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return hr(n,i,r)},{})};var Ml=hr,Rl=Ml;const $l=xl(Rl);var ei=function(e,t){return ei=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])},ei(e,t)};function Tn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ei(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var ke=function(){return ke=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},ke.apply(this,arguments)};function Dl(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function Cn(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))}function Mn(e,t){var r=t&&t.cache?t.cache:Xl,n=t&&t.serializer?t.serializer:jl,i=t&&t.strategy?t.strategy:kl;return i(e,{cache:r,serializer:n})}function Fl(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Ul(e,t,r,n){var i=Fl(n)?n:r(n),s=t.get(i);return typeof s=="undefined"&&(s=e.call(this,n),t.set(i,s)),s}function da(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),s=t.get(i);return typeof s=="undefined"&&(s=e.apply(this,n),t.set(i,s)),s}function va(e,t,r,n,i){return r.bind(t,e,n,i)}function kl(e,t){var r=e.length===1?Ul:da;return va(e,this,r,t.cache.create(),t.serializer)}function Gl(e,t){return va(e,this,da,t.cache.create(),t.serializer)}var jl=function(){return JSON.stringify(arguments)},Vl=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}(),Xl={create:function(){return new Vl}},Rn={variadic:Gl},hn=function(){return hn=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},hn.apply(this,arguments)};var A;(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"})(A||(A={}));var $;(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"})($||($={}));var cr;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(cr||(cr={}));function ki(e){return e.type===$.literal}function Wl(e){return e.type===$.argument}function pa(e){return e.type===$.number}function _a(e){return e.type===$.date}function ma(e){return e.type===$.time}function ga(e){return e.type===$.select}function ya(e){return e.type===$.plural}function zl(e){return e.type===$.pound}function ba(e){return e.type===$.tag}function Ea(e){return!!(e&&typeof e=="object"&&e.type===cr.number)}function ti(e){return!!(e&&typeof e=="object"&&e.type===cr.dateTime)}var xa=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ql=/(?:[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 Zl(e){var t={};return e.replace(ql,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 U=function(){return U=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},U.apply(this,arguments)};var Yl=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Ql(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Yl).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 l=a[0],o=a.slice(1),u=0,f=o;u<f.length;u++){var d=f[u];if(d.length===0)throw new Error("Invalid number skeleton")}r.push({stem:l,options:o})}return r}function Jl(e){return e.replace(/^(.*?)-/,"")}var Gi=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,wa=/^(@+)?(\+|#+)?[rs]?$/g,Kl=/(\*)(0+)|(#+)(0+)|(0+)/g,Ta=/^(0+)$/;function ji(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(wa,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 Sa(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 eu(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)),!Ta.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Vi(e){var t={},r=Sa(e);return r||t}function tu(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=Jl(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=U(U(U({},t),{notation:"scientific"}),i.options.reduce(function(o,u){return U(U({},o),Vi(u))},{}));continue;case"engineering":t=U(U(U({},t),{notation:"engineering"}),i.options.reduce(function(o,u){return U(U({},o),Vi(u))},{}));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(Kl,function(o,u,f,d,h,v){if(u)t.minimumIntegerDigits=f.length;else{if(d&&h)throw new Error("We currently do not support maximum integer digits");if(v)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Ta.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Gi.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Gi,function(o,u,f,d,h,v){return f==="*"?t.minimumFractionDigits=u.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:h&&v?(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length+v.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var s=i.options[0];s==="w"?t=U(U({},t),{trailingZeroDisplay:"stripIfInteger"}):s&&(t=U(U({},t),ji(s)));continue}if(wa.test(i.stem)){t=U(U({},t),ji(i.stem));continue}var a=Sa(i.stem);a&&(t=U(U({},t),a));var l=eu(i.stem);l&&(t=U(U({},t),l))}return t}var Qr={"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 ru(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),l=s<2?1:3+(s>>1),o="a",u=nu(t);for((u=="H"||u=="k")&&(l=0);l-- >0;)r+=o;for(;a-- >0;)r=u+r}else i==="J"?r+="H":r+=i}return r}function nu(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=Qr[n||""]||Qr[r||""]||Qr["".concat(r,"-001")]||Qr["001"];return i[0]}var $n,iu=new RegExp("^".concat(xa.source,"*")),su=new RegExp("".concat(xa.source,"*$"));function H(e,t){return{start:e,end:t}}var au=!!String.prototype.startsWith&&"_a".startsWith("a",1),ou=!!String.fromCodePoint,lu=!!Object.fromEntries,uu=!!String.prototype.codePointAt,fu=!!String.prototype.trimStart,hu=!!String.prototype.trimEnd,cu=!!Number.isSafeInteger,du=cu?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},ri=!0;try{var vu=Ha("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ri=(($n=vu.exec("a"))===null||$n===void 0?void 0:$n[0])==="a"}catch(e){ri=!1}var Xi=au?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},ni=ou?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},Wi=lu?Object.fromEntries:function(t){for(var r={},n=0,i=t;n<i.length;n++){var s=i[n],a=s[0],l=s[1];r[a]=l}return r},Aa=uu?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}},pu=fu?function(t){return t.trimStart()}:function(t){return t.replace(iu,"")},_u=hu?function(t){return t.trimEnd()}:function(t){return t.replace(su,"")};function Ha(e,t){return new RegExp(e,t)}var ii;if(ri){var zi=Ha("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ii=function(t,r){var n;zi.lastIndex=r;var i=zi.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}}else ii=function(t,r){for(var n=[];;){var i=Aa(t,r);if(i===void 0||Na(i)||bu(i))break;n.push(i),r+=i>=65536?2:1}return ni.apply(void 0,n)};var mu=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 l=this.clonePosition();this.bump(),i.push({type:$.pound,location:H(l,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(A.UNMATCHED_CLOSING_TAG,H(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&si(this.peek()||0)){var a=this.parseTag(t,r);if(a.err)return a;i.push(a.val)}else{var a=this.parseLiteral(t,r);if(a.err)return a;i.push(a.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:$.literal,value:"<".concat(i,"/>"),location:H(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,l=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!si(this.char()))return this.error(A.INVALID_TAG,H(l,this.clonePosition()));var o=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(A.UNMATCHED_CLOSING_TAG,H(o,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:$.tag,value:i,children:a,location:H(n,this.clonePosition())},err:null}:this.error(A.INVALID_TAG,H(l,this.clonePosition())))}else return this.error(A.UNCLOSED_TAG,H(n,this.clonePosition()))}else return this.error(A.INVALID_TAG,H(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&yu(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 l=this.tryParseLeftAngleBracket();if(l){i+=l;continue}break}var o=H(n,this.clonePosition());return{val:{type:$.literal,value:i,location:o},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!gu(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 ni.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(),ni(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(A.EXPECT_ARGUMENT_CLOSING_BRACE,H(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(A.EMPTY_ARGUMENT,H(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(A.MALFORMED_ARGUMENT,H(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(A.EXPECT_ARGUMENT_CLOSING_BRACE,H(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:$.argument,value:i,location:H(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(A.EXPECT_ARGUMENT_CLOSING_BRACE,H(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(A.MALFORMED_ARGUMENT,H(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=ii(this.message,r),i=r+n.length;this.bumpTo(i);var s=this.clonePosition(),a=H(t,s);return{value:n,location:a}},e.prototype.parseArgumentOptions=function(t,r,n,i){var s,a=this.clonePosition(),l=this.parseIdentifierIfPossible().value,o=this.clonePosition();switch(l){case"":return this.error(A.EXPECT_ARGUMENT_TYPE,H(a,o));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var h=_u(d.val);if(h.length===0)return this.error(A.EXPECT_ARGUMENT_STYLE,H(this.clonePosition(),this.clonePosition()));var v=H(f,this.clonePosition());u={style:h,styleLocation:v}}var g=this.tryParseArgumentClose(i);if(g.err)return g;var b=H(i,this.clonePosition());if(u&&Xi(u==null?void 0:u.style,"::",0)){var p=pu(u.style.slice(2));if(l==="number"){var d=this.parseNumberSkeletonFromString(p,u.styleLocation);return d.err?d:{val:{type:$.number,value:n,location:b,style:d.val},err:null}}else{if(p.length===0)return this.error(A.EXPECT_DATE_TIME_SKELETON,b);var y=p;this.locale&&(y=ru(p,this.locale));var h={type:cr.dateTime,pattern:y,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?Zl(y):{}},L=l==="date"?$.date:$.time;return{val:{type:L,value:n,location:b,style:h},err:null}}}return{val:{type:l==="number"?$.number:l==="date"?$.date:$.time,value:n,location:b,style:(s=u==null?void 0:u.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var P=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(A.EXPECT_SELECT_ARGUMENT_OPTIONS,H(P,hn({},P)));this.bumpSpace();var M=this.parseIdentifierIfPossible(),R=0;if(l!=="select"&&M.value==="offset"){if(!this.bumpIf(":"))return this.error(A.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,H(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(A.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,A.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),M=this.parseIdentifierIfPossible(),R=d.val}var C=this.tryParsePluralOrSelectOptions(t,l,r,M);if(C.err)return C;var g=this.tryParseArgumentClose(i);if(g.err)return g;var k=H(i,this.clonePosition());return l==="select"?{val:{type:$.select,value:n,options:Wi(C.val),location:k},err:null}:{val:{type:$.plural,value:n,options:Wi(C.val),offset:R,pluralType:l==="plural"?"cardinal":"ordinal",location:k},err:null}}default:return this.error(A.INVALID_ARGUMENT_TYPE,H(a,o))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(A.EXPECT_ARGUMENT_CLOSING_BRACE,H(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(A.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,H(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=Ql(t)}catch(i){return this.error(A.INVALID_NUMBER_SKELETON,r)}return{val:{type:cr.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?tu(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var s,a=!1,l=[],o=new Set,u=i.value,f=i.location;;){if(u.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(A.EXPECT_PLURAL_ARGUMENT_SELECTOR,A.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;f=H(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}else break}if(o.has(u))return this.error(r==="select"?A.DUPLICATE_SELECT_ARGUMENT_SELECTOR:A.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);u==="other"&&(a=!0),this.bumpSpace();var v=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?A.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:A.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,H(this.clonePosition(),this.clonePosition()));var g=this.parseMessage(t+1,r,n);if(g.err)return g;var b=this.tryParseArgumentClose(v);if(b.err)return b;l.push([u,{value:g.val,location:H(v,this.clonePosition())}]),o.add(u),this.bumpSpace(),s=this.parseIdentifierIfPossible(),u=s.value,f=s.location}return l.length===0?this.error(r==="select"?A.EXPECT_SELECT_ARGUMENT_SELECTOR:A.EXPECT_PLURAL_ARGUMENT_SELECTOR,H(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(A.MISSING_OTHER_CLAUSE,H(this.clonePosition(),this.clonePosition())):{val:l,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 l=this.char();if(l>=48&&l<=57)s=!0,a=a*10+(l-48),this.bump();else break}var o=H(i,this.clonePosition());return s?(a*=n,du(a)?{val:a,err:null}:this.error(r,o)):this.error(t,o)},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=Aa(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(Xi(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()&&Na(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n!=null?n:null},e}();function si(e){return e>=97&&e<=122||e>=65&&e<=90}function gu(e){return si(e)||e===47}function yu(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 Na(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function bu(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function ai(e){e.forEach(function(t){if(delete t.location,ga(t)||ya(t))for(var r in t.options)delete t.options[r].location,ai(t.options[r].value);else pa(t)&&Ea(t.style)||(_a(t)||ma(t))&&ti(t.style)?delete t.style.location:ba(t)&&ai(t.children)})}function Eu(e,t){t===void 0&&(t={}),t=hn({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new mu(e,t).parse();if(r.err){var n=SyntaxError(A[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||ai(r.val),r.val}var dr;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(dr||(dr={}));var Sn=function(e){Tn(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),qi=function(e){Tn(t,e);function t(r,n,i,s){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),dr.INVALID_VALUE,s)||this}return t}(Sn),xu=function(e){Tn(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),dr.INVALID_VALUE,i)||this}return t}(Sn),wu=function(e){Tn(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),dr.MISSING_VALUE,n)||this}return t}(Sn),ne;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(ne||(ne={}));function Tu(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==ne.literal||r.type!==ne.literal?t.push(r):n.value+=r.value,t},[])}function Su(e){return typeof e=="function"}function rn(e,t,r,n,i,s,a){if(e.length===1&&ki(e[0]))return[{type:ne.literal,value:e[0].value}];for(var l=[],o=0,u=e;o<u.length;o++){var f=u[o];if(ki(f)){l.push({type:ne.literal,value:f.value});continue}if(zl(f)){typeof s=="number"&&l.push({type:ne.literal,value:r.getNumberFormat(t).format(s)});continue}var d=f.value;if(!(i&&d in i))throw new wu(d,a);var h=i[d];if(Wl(f)){(!h||typeof h=="string"||typeof h=="number")&&(h=typeof h=="string"||typeof h=="number"?String(h):""),l.push({type:typeof h=="string"?ne.literal:ne.object,value:h});continue}if(_a(f)){var v=typeof f.style=="string"?n.date[f.style]:ti(f.style)?f.style.parsedOptions:void 0;l.push({type:ne.literal,value:r.getDateTimeFormat(t,v).format(h)});continue}if(ma(f)){var v=typeof f.style=="string"?n.time[f.style]:ti(f.style)?f.style.parsedOptions:n.time.medium;l.push({type:ne.literal,value:r.getDateTimeFormat(t,v).format(h)});continue}if(pa(f)){var v=typeof f.style=="string"?n.number[f.style]:Ea(f.style)?f.style.parsedOptions:void 0;v&&v.scale&&(h=h*(v.scale||1)),l.push({type:ne.literal,value:r.getNumberFormat(t,v).format(h)});continue}if(ba(f)){var g=f.children,b=f.value,p=i[b];if(!Su(p))throw new xu(b,"function",a);var y=rn(g,t,r,n,i,s),L=p(y.map(function(R){return R.value}));Array.isArray(L)||(L=[L]),l.push.apply(l,L.map(function(R){return{type:typeof R=="string"?ne.literal:ne.object,value:R}}))}if(ga(f)){var P=f.options[h]||f.options.other;if(!P)throw new qi(f.value,h,Object.keys(f.options),a);l.push.apply(l,rn(P.value,t,r,n,i));continue}if(ya(f)){var P=f.options["=".concat(h)];if(!P){if(!Intl.PluralRules)throw new Sn(`Intl.PluralRules is not available in this environment.
|
|
4
|
+
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
5
|
+
`,dr.MISSING_INTL_API,a);var M=r.getPluralRules(t,{type:f.pluralType}).select(h-(f.offset||0));P=f.options[M]||f.options.other}if(!P)throw new qi(f.value,h,Object.keys(f.options),a);l.push.apply(l,rn(P.value,t,r,n,i,h-(f.offset||0)));continue}}return Tu(l)}function Au(e,t){return t?ke(ke(ke({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=ke(ke({},e[n]),t[n]||{}),r},{})):e}function Hu(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=Au(e[n],t[n]),r},ke({},e)):e}function Dn(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Nu(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Mn(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,Cn([void 0],r,!1)))},{cache:Dn(e.number),strategy:Rn.variadic}),getDateTimeFormat:Mn(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,Cn([void 0],r,!1)))},{cache:Dn(e.dateTime),strategy:Rn.variadic}),getPluralRules:Mn(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,Cn([void 0],r,!1)))},{cache:Dn(e.pluralRules),strategy:Rn.variadic})}}var Bu=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(o){var u=s.formatToParts(o);if(u.length===1)return u[0].value;var f=u.reduce(function(d,h){return!d.length||h.type!==ne.literal||typeof d[d.length-1]!="string"?d.push(h.value):d[d.length-1]+=h.value,d},[]);return f.length<=1?f[0]||"":f},this.formatToParts=function(o){return rn(s.ast,s.locales,s.formatters,s.formats,o,void 0,s.message)},this.resolvedOptions=function(){var o;return{locale:((o=s.resolvedLocale)===null||o===void 0?void 0:o.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 l=Dl(a,["formatters"]);this.ast=e.__parse(t,ke(ke({},l),{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=Hu(e.formats,n),this.formatters=i&&i.formatters||Nu(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Eu,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 Lu(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 ft={},Pu=(e,t,r)=>r&&(t in ft||(ft[t]={}),e in ft[t]||(ft[t][e]=r),r),Ba=(e,t)=>{if(t==null)return;if(t in ft&&e in ft[t])return ft[t][e];const r=An(t);for(let n=0;n<r.length;n++){const i=r[n],s=Iu(i,e);if(s)return Pu(e,t,s)}};let Ai;const mr=wn({});function Ou(e){return Ai[e]||null}function La(e){return e in Ai}function Iu(e,t){if(!La(e))return null;const r=Ou(e);return Lu(r,t)}function Cu(e){if(e==null)return;const t=An(e);for(let r=0;r<t.length;r++){const n=t[r];if(La(n))return n}}function Pa(e,...t){delete ft[e],mr.update(r=>(r[e]=$l.all([r[e]||{},...t]),r))}_r([mr],([e])=>Object.keys(e));mr.subscribe(e=>Ai=e);const nn={};function Mu(e,t){nn[e].delete(t),nn[e].size===0&&delete nn[e]}function Oa(e){return nn[e]}function Ru(e){return An(e).map(t=>{const r=Oa(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function oi(e){return e==null?!1:An(e).some(t=>{var r;return(r=Oa(t))==null?void 0:r.size})}function $u(e,t){return Promise.all(t.map(n=>(Mu(e,n),n().then(i=>i.default||i)))).then(n=>Pa(e,...n))}const Er={};function Ia(e){if(!oi(e))return e in Er?Er[e]:Promise.resolve();const t=Ru(e);return Er[e]=Promise.all(t.map(([r,n])=>$u(r,n))).then(()=>{if(oi(e))return Ia(e);delete Er[e]}),Er[e]}const Du={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"}}},Fu={fallbackLocale:null,loadingDelay:200,formats:Du,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Uu=Fu;function vr(){return Uu}const Fn=wn(!1);var ku=Object.defineProperty,Gu=Object.defineProperties,ju=Object.getOwnPropertyDescriptors,Zi=Object.getOwnPropertySymbols,Vu=Object.prototype.hasOwnProperty,Xu=Object.prototype.propertyIsEnumerable,Yi=(e,t,r)=>t in e?ku(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Wu=(e,t)=>{for(var r in t||(t={}))Vu.call(t,r)&&Yi(e,r,t[r]);if(Zi)for(var r of Zi(t))Xu.call(t,r)&&Yi(e,r,t[r]);return e},zu=(e,t)=>Gu(e,ju(t));let li;const cn=wn(null);function Qi(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function An(e,t=vr().fallbackLocale){const r=Qi(e);return t?[...new Set([...r,...Qi(t)])]:r}function Dt(){return li!=null?li:void 0}cn.subscribe(e=>{li=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const qu=e=>{if(e&&Cu(e)&&oi(e)){const{loadingDelay:t}=vr();let r;return typeof window!="undefined"&&Dt()!=null&&t?r=window.setTimeout(()=>Fn.set(!0),t):Fn.set(!0),Ia(e).then(()=>{cn.set(e)}).finally(()=>{clearTimeout(r),Fn.set(!1)})}return cn.set(e)},_t=zu(Wu({},cn),{set:qu}),Hn=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var Zu=Object.defineProperty,dn=Object.getOwnPropertySymbols,Ca=Object.prototype.hasOwnProperty,Ma=Object.prototype.propertyIsEnumerable,Ji=(e,t,r)=>t in e?Zu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Hi=(e,t)=>{for(var r in t||(t={}))Ca.call(t,r)&&Ji(e,r,t[r]);if(dn)for(var r of dn(t))Ma.call(t,r)&&Ji(e,r,t[r]);return e},gr=(e,t)=>{var r={};for(var n in e)Ca.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&dn)for(var n of dn(e))t.indexOf(n)<0&&Ma.call(e,n)&&(r[n]=e[n]);return r};const Lr=(e,t)=>{const{formats:r}=vr();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Yu=Hn(e=>{var t=e,{locale:r,format:n}=t,i=gr(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=Lr("number",n)),new Intl.NumberFormat(r,i)}),Qu=Hn(e=>{var t=e,{locale:r,format:n}=t,i=gr(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=Lr("date",n):Object.keys(i).length===0&&(i=Lr("date","short")),new Intl.DateTimeFormat(r,i)}),Ju=Hn(e=>{var t=e,{locale:r,format:n}=t,i=gr(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=Lr("time",n):Object.keys(i).length===0&&(i=Lr("time","short")),new Intl.DateTimeFormat(r,i)}),Ku=(e={})=>{var t=e,{locale:r=Dt()}=t,n=gr(t,["locale"]);return Yu(Hi({locale:r},n))},ef=(e={})=>{var t=e,{locale:r=Dt()}=t,n=gr(t,["locale"]);return Qu(Hi({locale:r},n))},tf=(e={})=>{var t=e,{locale:r=Dt()}=t,n=gr(t,["locale"]);return Ju(Hi({locale:r},n))},rf=Hn((e,t=Dt())=>new Bu(e,t,vr().formats,{ignoreTag:vr().ignoreTag})),nf=(e,t={})=>{var r,n,i,s;let a=t;typeof e=="object"&&(a=e,e=a.id);const{values:l,locale:o=Dt(),default:u}=a;if(o==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let f=Ba(e,o);if(!f)f=(s=(i=(n=(r=vr()).handleMissingMessage)==null?void 0:n.call(r,{locale:o,id:e,defaultValue:u}))!=null?i:u)!=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(!l)return f;let d=f;try{d=rf(f,o).format(l)}catch(h){h instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,h.message)}return d},sf=(e,t)=>tf(t).format(e),af=(e,t)=>ef(t).format(e),of=(e,t)=>Ku(t).format(e),lf=(e,t=Dt())=>Ba(e,t),Ra=_r([_t,mr],()=>nf);_r([_t],()=>sf);_r([_t],()=>af);_r([_t],()=>of);_r([_t,mr],()=>lf);function $a({withLocale:e,translations:t}){_t.subscribe(r=>{r==null&&(mr.set(t),_t.set(e))})}function Da(e,t){Pa(e,t)}function Fa(e){_t.set(e)}if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./LoyaltyPagination-izmgSCYv.cjs")).then(({default:t})=>{!customElements.get("loyalty-pagination")&&customElements.define("loyalty-pagination",t.element)})}const uf={en:{startingLevel:"Starting Level: {points} points",seeMore:"See More",seeLess:"See Less",current:"Current",next:"Next"},tr:{startingLevel:"Başlangıç Seviyesi: {points} puan",seeMore:"Daha Fazla",seeLess:"Daha Az",current:"Mevcut",next:"Sonraki"}},Xe=12,Ki="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='800px'%20height='800px'%20viewBox='0%200%20120%20120'%20fill='none'%3e%3crect%20width='120'%20height='120'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M33.2503%2038.4816C33.2603%2037.0472%2034.4199%2035.8864%2035.8543%2035.875H83.1463C84.5848%2035.875%2085.7503%2037.0431%2085.7503%2038.4816V80.5184C85.7403%2081.9528%2084.5807%2083.1136%2083.1463%2083.125H35.8543C34.4158%2083.1236%2033.2503%2081.957%2033.2503%2080.5184V38.4816ZM80.5006%2041.1251H38.5006V77.8751L62.8921%2053.4783C63.9172%2052.4536%2065.5788%2052.4536%2066.6039%2053.4783L80.5006%2067.4013V41.1251ZM43.75%2051.6249C43.75%2054.5244%2046.1005%2056.8749%2049%2056.8749C51.8995%2056.8749%2054.25%2054.5244%2054.25%2051.6249C54.25%2048.7254%2051.8995%2046.3749%2049%2046.3749C46.1005%2046.3749%2043.75%2048.7254%2043.75%2051.6249Z'%20fill='%23687787'/%3e%3c/svg%3e";var ff=Be('<img class="loyalty-level__badge svelte-ml7rkt"/>'),hf=Be('<span class="loyalty-level__tag svelte-ml7rkt"> </span>'),cf=Be('<div class="loyalty-level__benefits svelte-ml7rkt"><!></div>'),df=Be('<article><header class="loyalty-level__head svelte-ml7rkt"><!> <div class="loyalty-level__headings svelte-ml7rkt"><div class="loyalty-level__title-row svelte-ml7rkt"><span class="loyalty-level__name svelte-ml7rkt"> </span> <!></div> <span class="loyalty-level__starting svelte-ml7rkt"> </span></div></header> <!> <button class="loyalty-level__action svelte-ml7rkt" type="button"> </button></article>'),vf=Be("<loyalty-pagination></loyalty-pagination>",2),pf=Be('<div class="loyalty-level__sentinel svelte-ml7rkt" aria-hidden="true"></div>'),_f=Be('<img class="loyalty-level__badge svelte-ml7rkt"/>'),mf=Be('<span class="loyalty-level__tag svelte-ml7rkt"> </span>'),gf=Be('<div class="loyalty-level__benefits svelte-ml7rkt"><!></div>'),yf=Be('<div class="loyalty-level__modal-overlay svelte-ml7rkt" role="presentation"><div class="loyalty-level__modal svelte-ml7rkt" role="dialog" aria-modal="true" tabindex="-1"><div class="loyalty-level__modal-close-wrapper svelte-ml7rkt"><button class="loyalty-level__modal-close svelte-ml7rkt" type="button" aria-label="close">×</button></div> <header class="loyalty-level__modal-head svelte-ml7rkt"><!> <div class="loyalty-level__headings svelte-ml7rkt"><div class="loyalty-level__title-row svelte-ml7rkt"><span class="loyalty-level__name svelte-ml7rkt"> </span> <!></div> <span class="loyalty-level__starting svelte-ml7rkt"> </span></div></header> <!></div></div>'),bf=Be('<div class="loyalty-level svelte-ml7rkt"><div class="loyalty-level__grid svelte-ml7rkt"></div> <!> <!></div> <!>',1);const Ef={hash:"svelte-ml7rkt",code:".loyalty-level.svelte-ml7rkt {width:100%;box-sizing:border-box;}.loyalty-level__grid.svelte-ml7rkt {display:grid;grid-template-columns:repeat(auto-fill, minmax(min(100%, 326px), 1fr));gap:12px;align-items:stretch;}.loyalty-level__card.svelte-ml7rkt {display:flex;flex-direction:column;gap:16px;padding:16px;background-color:var(--app-container-bg-default, #022652);border:1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));border-radius:6px;box-sizing:border-box;max-height:242px;overflow:hidden;}.loyalty-level__card--expanded.svelte-ml7rkt {max-height:none;overflow:visible;}.loyalty-level__head.svelte-ml7rkt {display:flex;align-items:flex-start;gap:6px;}.loyalty-level__badge.svelte-ml7rkt {width:40px;height:40px;flex-shrink:0;}.loyalty-level__headings.svelte-ml7rkt {display:flex;flex-direction:column;gap:2px;flex:1;min-width:0;}.loyalty-level__title-row.svelte-ml7rkt {display:flex;align-items:center;justify-content:space-between;gap:8px;}.loyalty-level__name.svelte-ml7rkt {color:var(--text-default, #FFFFFF);font-size:14px;font-weight:500;text-transform:uppercase;line-height:140%;}.loyalty-level__tag.svelte-ml7rkt {flex-shrink:0;padding:10px;border-radius:100px;background:var(--badges-element-default, rgba(255, 204, 0, 0.05));color:var(--text-brand, #FFCC00);font-size:12px;font-weight:500;}.loyalty-level__starting.svelte-ml7rkt {color:var(--text-subtle, #DFE3E8);font-size:14px;font-weight:400;}.loyalty-level__benefits.svelte-ml7rkt {color:var(--text-subtle, #DFE3E8);font-size:13px;line-height:1.5;flex:1 1 auto;min-height:0;overflow:hidden;}.loyalty-level__card--expanded.svelte-ml7rkt .loyalty-level__benefits:where(.svelte-ml7rkt) {flex:none;overflow:visible;}.loyalty-level__benefits.svelte-ml7rkt ul {margin:0;padding-left:18px;list-style:disc;}.loyalty-level__benefits.svelte-ml7rkt li {margin-bottom:6px;}.loyalty-level__action.svelte-ml7rkt {margin-top:auto;width:100%;padding:8px 16px;border:1px solid var(--button-secondary-border-default, rgba(251, 251, 251, 0.05));border-radius:6px;background:var(--button-secondary-bg-default, rgba(251, 251, 251, 0.1));color:var(--button-secondary-text-default, #FFFFFF);font-size:12px;font-weight:400;cursor:pointer;}.loyalty-level__modal-overlay.svelte-ml7rkt {position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:24px;background-color:rgba(0, 0, 0, 0.7);backdrop-filter:blur(3px);}.loyalty-level__modal.svelte-ml7rkt {position:relative;width:100%;max-width:50dvw;max-height:90dvh;padding:24px 16px;background-color:var(--app-container-bg-default, #022652);border:1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));border-radius:12px;box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden;}.loyalty-level__modal-head.svelte-ml7rkt {display:flex;align-items:flex-start;gap:12px;flex-shrink:0;}.loyalty-level__modal-close-wrapper.svelte-ml7rkt {display:flex;justify-content:flex-end;}.loyalty-level__modal-close.svelte-ml7rkt {border:none;background:transparent;color:var(--icon-default, #B3BECB);font-size:25px;line-height:1;cursor:pointer;}.loyalty-level__sentinel.svelte-ml7rkt {width:100%;height:1px;}"};function Ua(e,t){di(t,!0),sa(e,Ef);const r=()=>la(Ra,"$_",n),[n,i]=ua(),s=Yt(t,"apiEndpoint",7,""),a=Yt(t,"userSession",7,""),l=Yt(t,"locale",7,""),o=Yt(t,"onLevelLoaded",7,m=>{}),u=Yt(t,"onSeeMore",7,m=>{});$a({withLocale:l(),translations:{}}),Object.entries(uf).forEach(([m,E])=>{Da(m,E)}),We(()=>{var m;Fa((m=l())!=null?m:"en")});const f=m=>{o()(m)},d=El(()=>({apiEndpoint:s(),userSession:a(),locale:l(),loadLevels:!0,onLevelLoaded:f})),h=Et(()=>{var m;return(m=d.playerElevateLevel)==null?void 0:m.id}),v=Et(()=>{var m;return[...(m=d.levels)!=null?m:[]].sort((E,W)=>E.firstEntryPoints<W.firstEntryPoints?-1:1)}),g=Et(()=>_(v).findIndex(m=>m.id===_(h))),b=m=>{var E,W,it;return(it=(W=(E=m.presentation)==null?void 0:E.displayName)!=null?W:m.displayName)!=null?it:String(m.id)},p=m=>_(g)>=0&&m<_(g);let y=V(0),L=V(!1),P=V(Jt(In)),M=V(void 0),R=V(void 0),C=V(void 0);const k=Et(()=>Math.max(1,Math.ceil(_(v).length/Xe))),Ve=Et(()=>_(L)?_(v).slice(0,_(P)):_(v).slice(_(y)*Xe,_(y)*Xe+Xe));We(()=>{_(y)>_(k)-1&&I(y,0)}),We(()=>{I(P,_(L)?In:Xe,!0)}),We(()=>{if(!_(L)||!_(M))return;const m=new IntersectionObserver(E=>{E.some(W=>W.isIntersecting)&&I(P,Math.min(_(v).length,_(P)+In),!0)},{rootMargin:"200px"});return m.observe(_(M)),()=>m.disconnect()});const rt=m=>{I(y,Math.floor(m/Xe),!0)};We(()=>{const m=window.matchMedia("(max-width: 767px)"),E=W=>{I(L,W.matches,!0)};return I(L,m.matches,!0),m.addEventListener("change",E),()=>m.removeEventListener("change",E)});const le=m=>{u()(m),_(L)?I(R,_(R)===m.id?void 0:m.id,!0):I(C,m,!0)},nt=()=>{I(C,void 0)},Ft=m=>{m.target===m.currentTarget&&nt()},$r=m=>{m.key==="Escape"&&nt()};We(()=>{if(!_(C))return;const m=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=m}});const Dr=(m,E)=>{var W;return!!((W=m.presentation)!=null&&W.description)&&(!p(E)||_(R)===m.id)};var Fr={get apiEndpoint(){return s()},set apiEndpoint(m=""){s(m),ot()},get userSession(){return a()},set userSession(m=""){a(m),ot()},get locale(){return l()},set locale(m=""){l(m),ot()},get onLevelLoaded(){return o()},set onLevelLoaded(m=E=>{}){o(m),ot()},get onSeeMore(){return u()},set onSeeMore(m=E=>{}){u(m),ot()}},yr=bf(),Ut=Cs(yr),kt=j(Ut);ia(kt,23,()=>_(Ve),m=>m.id,(m,E,W)=>{const it=Et(()=>_(L)?_(W):_(y)*Xe+_(W));var Gt=df();let jt;var Vt=j(Gt),kr=j(Vt);{var Gr=re=>{var J=ff();ge(bt=>{Tr(J,"src",_(E).presentation.asset||Ki),Tr(J,"alt",bt)},[()=>b(_(E))]),de(re,J)};Re(kr,re=>{var J;(J=_(E).presentation)!=null&&J.asset&&re(Gr)})}var Xt=ue(kr,2),gt=j(Xt),br=j(gt),Nn=j(br,!0);F(br);var Bn=ue(br,2);{var jr=re=>{var J=hf(),bt=j(J,!0);F(J),ge(Wr=>at(bt,Wr),[()=>r()("current")]),de(re,J)};Re(Bn,re=>{_(E).id===_(h)&&re(jr)})}F(gt);var Vr=ue(gt,2),Ln=j(Vr,!0);F(Vr),F(Xt),F(Vt);var Xr=ue(Vt,2);{var te=re=>{var J=cf(),bt=j(J);$i(bt,()=>{var Wr;return(Wr=_(E).presentation)==null?void 0:Wr.description}),F(J),de(re,J)};Re(Xr,re=>{Dr(_(E),_(it))&&re(te)})}var D=ue(Xr,2);D.__click=()=>le(_(E));var yt=j(D,!0);F(D),F(Gt),ge((re,J,bt)=>{jt=aa(Gt,1,"loyalty-level__card svelte-ml7rkt",null,jt,{"loyalty-level__card--current":_(E).id===_(h),"loyalty-level__card--expanded":_(R)===_(E).id}),at(Nn,re),at(Ln,J),at(yt,bt)},[()=>b(_(E)),()=>r()("startingLevel",{values:{points:_(E).firstEntryPoints.toLocaleString()}}),()=>_(R)===_(E).id?r()("seeLess"):r()("seeMore")]),de(m,Gt)}),F(kt);var me=ue(kt,2);{var Ur=m=>{var E=vf();ge(()=>Yr(E,"offset",_(y)*Xe)),ge(()=>Yr(E,"limit",Xe)),ge(()=>Yr(E,"total",_(v).length)),ge(()=>Yr(E,"locale",l())),Zo("PageChange",E,rt),de(m,E)};Re(me,m=>{_(L)||m(Ur)})}var ka=ue(me,2);{var Ga=m=>{var E=pf();fl(E,W=>I(M,W),()=>_(M)),de(m,E)};Re(ka,m=>{_(L)&&_(P)<_(v).length&&m(Ga)})}F(Ut);var ja=ue(Ut,2);{var Va=m=>{var E=yf();E.__click=Ft,E.__keydown=$r;var W=j(E),it=j(W),Gt=j(it);Gt.__click=nt,F(it);var jt=ue(it,2),Vt=j(jt);{var kr=te=>{var D=_f();ge(yt=>{Tr(D,"src",_(C).presentation.asset||Ki),Tr(D,"alt",yt)},[()=>b(_(C))]),de(te,D)};Re(Vt,te=>{var D;(D=_(C).presentation)!=null&&D.asset&&te(kr)})}var Gr=ue(Vt,2),Xt=j(Gr),gt=j(Xt),br=j(gt,!0);F(gt);var Nn=ue(gt,2);{var Bn=te=>{var D=mf(),yt=j(D,!0);F(D),ge(re=>at(yt,re),[()=>r()("current")]),de(te,D)};Re(Nn,te=>{_(C).id===_(h)&&te(Bn)})}F(Xt);var jr=ue(Xt,2),Vr=j(jr,!0);F(jr),F(Gr),F(jt);var Ln=ue(jt,2);{var Xr=te=>{var D=gf(),yt=j(D);$i(yt,()=>_(C).presentation.description),F(D),de(te,D)};Re(Ln,te=>{var D;(D=_(C).presentation)!=null&&D.description&&te(Xr)})}F(W),F(E),ge((te,D)=>{at(br,te),at(Vr,D)},[()=>b(_(C)),()=>r()("startingLevel",{values:{points:_(C).firstEntryPoints.toLocaleString()}})]),de(m,E)};Re(ja,m=>{_(C)&&m(Va)})}de(e,yr);var Xa=vi(Fr);return i(),Xa}ea(["click","keydown"]);customElements.define("loyalty-level",ha(Ua,{apiEndpoint:{},userSession:{},locale:{},onLevelLoaded:{},onSeeMore:{}},[],[],!1));const xf=Object.freeze(Object.defineProperty({__proto__:null,default:Ua},Symbol.toStringTag,{value:"Module"}));exports.$format=Ra;exports.LoyaltyLevel_ce=xf;exports.addNewMessages=Da;exports.append=de;exports.append_styles=sa;exports.child=j;exports.comment=Yo;exports.create_custom_element=ha;exports.delegate=ea;exports.each=ia;exports.first_child=Cs;exports.flushSync=ot;exports.from_html=Be;exports.get=_;exports.if_block=Re;exports.index=rl;exports.pop=vi;exports.prop=Yt;exports.push=di;exports.reset=F;exports.set=I;exports.setLocale=Fa;exports.set_class=aa;exports.set_text=at;exports.setupI18n=$a;exports.setup_stores=ua;exports.sibling=ue;exports.state=V;exports.store_get=la;exports.template_effect=ge;exports.user_derived=Et;exports.user_effect=We;
|