@everymatrix/loyalty-level 0.1.8 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,26 +0,0 @@
1
- "use strict";var ho=Object.defineProperty,co=Object.defineProperties;var vo=Object.getOwnPropertyDescriptors;var Di=Object.getOwnPropertySymbols;var po=Object.prototype.hasOwnProperty,_o=Object.prototype.propertyIsEnumerable;var Ui=e=>{throw TypeError(e)};var $n=(e,t,r)=>t in e?ho(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Yr=(e,t)=>{for(var r in t||(t={}))po.call(t,r)&&$n(e,r,t[r]);if(Di)for(var r of Di(t))_o.call(t,r)&&$n(e,r,t[r]);return e},Qr=(e,t)=>co(e,vo(t));var V=(e,t,r)=>$n(e,typeof t!="symbol"?t+"":t,r),kn=(e,t,r)=>t.has(e)||Ui("Cannot "+r);var c=(e,t,r)=>(kn(e,t,"read from private field"),r?r.call(e):t.get(e)),T=(e,t,r)=>t.has(e)?Ui("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),x=(e,t,r,n)=>(kn(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),q=(e,t,r)=>(kn(e,t,"access private method"),r);var Xt=(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 mo="5";var cs,ds,vs;typeof window!="undefined"&&((vs=(ds=(cs=window.__svelte)!=null?cs:window.__svelte={}).v)!=null?vs:ds.v=new Set).add(mo);const go=1,yo=2,ps=4,bo=8,Eo=16,xo=1,wo=2,_s="[",wn="[!",gi="]",Ct={},Q=Symbol(),To="http://www.w3.org/1999/xhtml",Xn=!1;var ms=Array.isArray,So=Array.prototype.indexOf,Tn=Array.from,hn=Object.keys,Nr=Object.defineProperty,Qt=Object.getOwnPropertyDescriptor,Ao=Object.getOwnPropertyDescriptors,Ho=Object.prototype,Lo=Array.prototype,gs=Object.getPrototypeOf,Fi=Object.isExtensible;const vt=()=>{};function ys(e){for(var t=0;t<e.length;t++)e[t]()}function bs(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const K=2,cn=4,$r=8,Es=1<<24,st=16,at=32,bt=64,yi=128,Ne=512,ne=1024,fe=2048,ot=4096,be=8192,nt=16384,Sn=32768,ir=65536,Gi=1<<17,xs=1<<18,$t=1<<19,ws=1<<20,rt=1<<25,Mt=32768,zn=1<<21,bi=1<<22,pt=1<<23,nn=Symbol("$state"),No=Symbol("legacy props"),Po=Symbol(""),Zt=new class extends Error{constructor(){super(...arguments);V(this,"name","StaleReactionError");V(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},Ei=3,kt=8;function Bo(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Oo(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Io(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Co(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Mo(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Ro(){throw new Error("https://svelte.dev/e/hydration_failed")}function $o(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function ko(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Do(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Uo(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function kr(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Fo(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let L=!1;function De(e){L=e}let S;function oe(e){if(e===null)throw kr(),Ct;return S=e}function sr(){return oe(Ge(S))}function k(e){if(L){if(Ge(S)!==null)throw kr(),Ct;S=e}}function Go(e=1){if(L){for(var t=e,r=S;t--;)r=Ge(r);S=r}}function dn(e=!0){for(var t=0,r=S;;){if(r.nodeType===kt){var n=r.data;if(n===gi){if(t===0)return r;t-=1}else(n===_s||n===wn)&&(t+=1)}var i=Ge(r);e&&r.remove(),r=i}}function Ts(e){if(!e||e.nodeType!==kt)throw kr(),Ct;return e.data}function Ss(e){return e===this.v}function As(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Hs(e){return!As(e,this.v)}let jo=!1,Be=null;function ar(e){Be=e}function xi(e,t=!1,r){Be={p:Be,i:!1,c:null,e:null,s:e,x:null,l:null}}function wi(e){var t=Be,r=t.e;if(r!==null){t.e=null;for(var n of r)Ys(n)}return e!==void 0&&(t.x=e),t.i=!0,Be=t.p,e!=null?e:{}}function Ls(){return!0}let wt=[];function Ns(){var e=wt;wt=[],ys(e)}function dr(e){if(wt.length===0&&!Hr){var t=wt;queueMicrotask(()=>{t===wt&&Ns()})}wt.push(e)}function Vo(){for(;wt.length>0;)Ns()}function Ps(e){var t=N;if(t===null)return w.f|=pt,e;if(t.f&Sn)or(e,t);else{if(!(t.f&yi))throw e;t.b.error(e)}}function or(e,t){for(;t!==null;){if(t.f&yi)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const Xo=-7169;function Z(e,t){e.f=e.f&Xo|t}function Ti(e){e.f&Ne||e.deps===null?Z(e,ne):Z(e,ot)}function Bs(e){if(e!==null)for(const t of e)!(t.f&K)||!(t.f&Mt)||(t.f^=Mt,Bs(t.deps))}function Os(e,t,r){e.f&fe?t.add(e):e.f&ot&&r.add(e),Bs(e.deps),Z(e,ne)}const Jr=new Set;let O=null,J=null,He=[],An=null,Wn=!1,Hr=!1;var Jt,Kt,St,At,Ir,er,tr,Ie,qn,Zn,Is,Cs;const bn=class bn{constructor(){T(this,Ie);V(this,"committed",!1);V(this,"current",new Map);V(this,"previous",new Map);T(this,Jt,new Set);T(this,Kt,new Set);T(this,St,0);T(this,At,0);T(this,Ir,null);T(this,er,new Set);T(this,tr,new Set);V(this,"skipped_effects",new Set);V(this,"is_fork",!1)}is_deferred(){return this.is_fork||c(this,At)>0}process(t){var i;He=[],this.apply();var r=[],n=[];for(const s of t)q(this,Ie,qn).call(this,s,r,n);this.is_fork||q(this,Ie,Is).call(this),this.is_deferred()?(q(this,Ie,Zn).call(this,n),q(this,Ie,Zn).call(this,r)):(O=null,ji(n),ji(r),(i=c(this,Ir))==null||i.resolve()),J=null}capture(t,r){r!==Q&&!this.previous.has(t)&&this.previous.set(t,r),t.f&pt||(this.current.set(t,t.v),J==null||J.set(t,t.v))}activate(){O=this,this.apply()}deactivate(){O===this&&(O=null,J=null)}flush(){if(this.activate(),He.length>0){if(Ms(),O!==null&&O!==this)return}else c(this,St)===0&&this.process([]);this.deactivate()}discard(){for(const t of c(this,Kt))t(this);c(this,Kt).clear()}increment(t){x(this,St,c(this,St)+1),t&&x(this,At,c(this,At)+1)}decrement(t){x(this,St,c(this,St)-1),t&&x(this,At,c(this,At)-1),this.revive()}revive(){for(const t of c(this,er))c(this,tr).delete(t),Z(t,fe),it(t);for(const t of c(this,tr))Z(t,ot),it(t);this.flush()}oncommit(t){c(this,Jt).add(t)}ondiscard(t){c(this,Kt).add(t)}settled(){var t;return((t=c(this,Ir))!=null?t:x(this,Ir,bs())).promise}static ensure(){if(O===null){const t=O=new bn;Jr.add(O),Hr||bn.enqueue(()=>{O===t&&t.flush()})}return O}static enqueue(t){dr(t)}apply(){}};Jt=new WeakMap,Kt=new WeakMap,St=new WeakMap,At=new WeakMap,Ir=new WeakMap,er=new WeakMap,tr=new WeakMap,Ie=new WeakSet,qn=function(t,r,n){t.f^=ne;for(var i=t.first,s=null;i!==null;){var a=i.f,l=(a&(at|bt))!==0,o=l&&(a&ne)!==0,u=o||(a&be)!==0||this.skipped_effects.has(i);if(!u&&i.fn!==null){l?i.f^=ne:s!==null&&a&(cn|$r|Es)?s.b.defer_effect(i):a&cn?r.push(i):Dr(i)&&(a&st&&c(this,er).add(i),Pr(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}},Zn=function(t){for(var r=0;r<t.length;r+=1)Os(t[r],c(this,er),c(this,tr))},Is=function(){if(c(this,At)===0){for(const t of c(this,Jt))t();c(this,Jt).clear()}c(this,St)===0&&q(this,Ie,Cs).call(this)},Cs=function(){var i;if(Jr.size>1){this.previous.clear();var t=J,r=!0;for(const s of Jr){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=He;He=[];const o=new Set,u=new Map;for(const f of a)Rs(f,l,o,u);if(He.length>0){O=s,s.apply();for(const f of He)q(i=s,Ie,qn).call(i,f,[],[]);s.deactivate()}He=n}}O=null,J=t}this.committed=!0,Jr.delete(this)};let Qe=bn;function Ve(e){var t=Hr;Hr=!0;try{for(var r;;){if(Vo(),He.length===0&&(O==null||O.flush(),He.length===0))return An=null,r;Ms()}}finally{Hr=t}}function Ms(){var e=Ot;Wn=!0;var t=null;try{var r=0;for(pn(!0);He.length>0;){var n=Qe.ensure();if(r++>1e3){var i,s;zo()}n.process(He),_t.clear()}}finally{Wn=!1,pn(e),An=null}}function zo(){try{Mo()}catch(e){or(e,An)}}let $e=null;function ji(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if(!(n.f&(nt|be))&&Dr(n)&&($e=new Set,Pr(n),n.deps===null&&n.first===null&&n.nodes===null&&(n.teardown===null&&n.ac===null?ta(n):n.fn=null),($e==null?void 0:$e.size)>0)){_t.clear();for(const i of $e){if(i.f&(nt|be))continue;const s=[i];let a=i.parent;for(;a!==null;)$e.has(a)&&($e.delete(a),s.push(a)),a=a.parent;for(let l=s.length-1;l>=0;l--){const o=s[l];o.f&(nt|be)||Pr(o)}}$e.clear()}}$e=null}}function Rs(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&K?Rs(i,t,r,n):s&(bi|st)&&!(s&fe)&&$s(i,t,n)&&(Z(i,fe),it(i))}}function $s(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&K&&$s(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function it(e){for(var t=An=e;t.parent!==null;){t=t.parent;var r=t.f;if(Wn&&t===N&&r&st&&!(r&xs))return;if(r&(bt|at)){if(!(r&ne))return;t.f^=ne}}He.push(t)}function Wo(e){let t=0,r=Rt(0),n;return()=>{Li()&&(v(r),Pi(()=>(t===0&&(n=Ii(()=>e(()=>Lr(r)))),t+=1,()=>{dr(()=>{t-=1,t===0&&(n==null||n(),n=void 0,Lr(r))})})))}}var qo=ir|$t|yi;function Zo(e,t,r){new Yo(e,t,r)}var ge,Cr,ze,Ht,We,Se,ce,qe,Ke,ht,Lt,et,Nt,rr,nr,ct,En,z,ks,Ds,Yn,sn,an,Qn;class Yo{constructor(t,r,n){T(this,z);V(this,"parent");V(this,"is_pending",!1);T(this,ge);T(this,Cr,L?S:null);T(this,ze);T(this,Ht);T(this,We);T(this,Se,null);T(this,ce,null);T(this,qe,null);T(this,Ke,null);T(this,ht,null);T(this,Lt,0);T(this,et,0);T(this,Nt,!1);T(this,rr,new Set);T(this,nr,new Set);T(this,ct,null);T(this,En,Wo(()=>(x(this,ct,Rt(c(this,Lt))),()=>{x(this,ct,null)})));x(this,ge,t),x(this,ze,r),x(this,Ht,n),this.parent=N.b,this.is_pending=!!c(this,ze).pending,x(this,We,Bi(()=>{if(N.b=this,L){const s=c(this,Cr);sr(),s.nodeType===kt&&s.data===wn?q(this,z,Ds).call(this):(q(this,z,ks).call(this),c(this,et)===0&&(this.is_pending=!1))}else{var i=q(this,z,Yn).call(this);try{x(this,Se,Le(()=>n(i)))}catch(s){this.error(s)}c(this,et)>0?q(this,z,an).call(this):this.is_pending=!1}return()=>{var s;(s=c(this,ht))==null||s.remove()}},qo)),L&&x(this,ge,S)}defer_effect(t){Os(t,c(this,rr),c(this,nr))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!c(this,ze).pending}update_pending_count(t){q(this,z,Qn).call(this,t),x(this,Lt,c(this,Lt)+t),c(this,ct)&&lr(c(this,ct),c(this,Lt))}get_effect_pending(){return c(this,En).call(this),v(c(this,ct))}error(t){var r=c(this,ze).onerror;let n=c(this,ze).failed;if(c(this,Nt)||!r&&!n)throw t;c(this,Se)&&(le(c(this,Se)),x(this,Se,null)),c(this,ce)&&(le(c(this,ce)),x(this,ce,null)),c(this,qe)&&(le(c(this,qe)),x(this,qe,null)),L&&(oe(c(this,Cr)),Go(),oe(dn()));var i=!1,s=!1;const a=()=>{if(i){Fo();return}i=!0,s&&Uo(),Qe.ensure(),x(this,Lt,0),c(this,qe)!==null&&Bt(c(this,qe),()=>{x(this,qe,null)}),this.is_pending=this.has_pending_snippet(),x(this,Se,q(this,z,sn).call(this,()=>(x(this,Nt,!1),Le(()=>c(this,Ht).call(this,c(this,ge)))))),c(this,et)>0?q(this,z,an).call(this):this.is_pending=!1};var l=w;try{re(null),s=!0,r==null||r(t,a),s=!1}catch(o){or(o,c(this,We)&&c(this,We).parent)}finally{re(l)}n&&dr(()=>{x(this,qe,q(this,z,sn).call(this,()=>{Qe.ensure(),x(this,Nt,!0);try{return Le(()=>{n(c(this,ge),()=>t,()=>a)})}catch(o){return or(o,c(this,We).parent),null}finally{x(this,Nt,!1)}}))})}}ge=new WeakMap,Cr=new WeakMap,ze=new WeakMap,Ht=new WeakMap,We=new WeakMap,Se=new WeakMap,ce=new WeakMap,qe=new WeakMap,Ke=new WeakMap,ht=new WeakMap,Lt=new WeakMap,et=new WeakMap,Nt=new WeakMap,rr=new WeakMap,nr=new WeakMap,ct=new WeakMap,En=new WeakMap,z=new WeakSet,ks=function(){try{x(this,Se,Le(()=>c(this,Ht).call(this,c(this,ge))))}catch(t){this.error(t)}},Ds=function(){const t=c(this,ze).pending;t&&(x(this,ce,Le(()=>t(c(this,ge)))),Qe.enqueue(()=>{var r=q(this,z,Yn).call(this);x(this,Se,q(this,z,sn).call(this,()=>(Qe.ensure(),Le(()=>c(this,Ht).call(this,r))))),c(this,et)>0?q(this,z,an).call(this):(Bt(c(this,ce),()=>{x(this,ce,null)}),this.is_pending=!1)}))},Yn=function(){var t=c(this,ge);return this.is_pending&&(x(this,ht,Pe()),c(this,ge).before(c(this,ht)),t=c(this,ht)),t},sn=function(t){var r=N,n=w,i=Be;Oe(c(this,We)),re(c(this,We)),ar(c(this,We).ctx);try{return t()}catch(s){return Ps(s),null}finally{Oe(r),re(n),ar(i)}},an=function(){const t=c(this,ze).pending;c(this,Se)!==null&&(x(this,Ke,document.createDocumentFragment()),c(this,Ke).append(c(this,ht)),ia(c(this,Se),c(this,Ke))),c(this,ce)===null&&x(this,ce,Le(()=>t(c(this,ge))))},Qn=function(t){var r;if(!this.has_pending_snippet()){this.parent&&q(r=this.parent,z,Qn).call(r,t);return}if(x(this,et,c(this,et)+t),c(this,et)===0){this.is_pending=!1;for(const n of c(this,rr))Z(n,fe),it(n);for(const n of c(this,nr))Z(n,ot),it(n);c(this,rr).clear(),c(this,nr).clear(),c(this,ce)&&Bt(c(this,ce),()=>{x(this,ce,null)}),c(this,Ke)&&(c(this,ge).before(c(this,Ke)),x(this,Ke,null))}};function Qo(e,t,r,n){const i=Hn;if(r.length===0&&e.length===0){n(t.map(i));return}var s=O,a=N,l=Jo();function o(){Promise.all(r.map(u=>Ko(u))).then(u=>{l();try{n([...t.map(i),...u])}catch(f){a.f&nt||or(f,a)}s==null||s.deactivate(),vn()}).catch(u=>{or(u,a)})}e.length>0?Promise.all(e).then(()=>{l();try{return o()}finally{s==null||s.deactivate(),vn()}}):o()}function Jo(){var e=N,t=w,r=Be,n=O;return function(s=!0){Oe(e),re(t),ar(r),s&&(n==null||n.activate())}}function vn(){Oe(null),re(null),ar(null)}function Hn(e){var t=K|fe,r=w!==null&&w.f&K?w:null;return N!==null&&(N.f|=$t),{ctx:Be,deps:null,effects:null,equals:Ss,f:t,fn:e,reactions:null,rv:0,v:Q,wv:0,parent:r!=null?r:N,ac:null}}function Ko(e,t,r){let n=N;n===null&&Bo();var i=n.b,s=void 0,a=Rt(Q),l=!w,o=new Map;return ol(()=>{var p;var u=bs();s=u.promise;try{Promise.resolve(e()).then(u.resolve,u.reject).then(()=>{f===O&&f.committed&&f.deactivate(),vn()})}catch(g){u.reject(g),vn()}var f=O;if(l){var d=i.is_rendered();i.update_pending_count(1),f.increment(d),(p=o.get(f))==null||p.reject(Zt),o.delete(f),o.set(f,u)}const h=(g,b=void 0)=>{if(f.activate(),b)b!==Zt&&(a.f|=pt,lr(a,b));else{a.f&pt&&(a.f^=pt),lr(a,g);for(const[_,y]of o){if(o.delete(_),_===f)break;y.reject(Zt)}}l&&(i.update_pending_count(-1),f.decrement(d))};u.promise.then(h,g=>h(null,g||"unknown"))}),Ni(()=>{for(const u of o.values())u.reject(Zt)}),new Promise(u=>{function f(d){function h(){d===s?u(a):f(s)}d.then(h,h)}f(s)})}function Me(e){const t=Hn(e);return sa(t),t}function el(e){const t=Hn(e);return t.equals=Hs,t}function Us(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)le(t[r])}}function tl(e){for(var t=e.parent;t!==null;){if(!(t.f&K))return t.f&nt?null:t;t=t.parent}return null}function Si(e){var t,r=N;Oe(tl(e));try{e.f&=~Mt,Us(e),t=ua(e)}finally{Oe(r)}return t}function Fs(e){var t=Si(e);if(!e.equals(t)&&(e.wv=oa(),(!(O!=null&&O.is_fork)||e.deps===null)&&(e.v=t,e.deps===null))){Z(e,ne);return}gt||(J!==null?(Li()||O!=null&&O.is_fork)&&J.set(e,t):Ti(e))}let Jn=new Set;const _t=new Map;let Gs=!1;function Rt(e,t){var r={f:0,v:e,reactions:null,equals:Ss,rv:0,wv:0};return r}function j(e,t){const r=Rt(e);return sa(r),r}function Ai(e,t=!1,r=!0){const n=Rt(e);return t||(n.equals=Hs),n}function P(e,t,r=!1){w!==null&&(!Fe||w.f&Gi)&&Ls()&&w.f&(K|st|bi|Gi)&&!(ue!=null&&ue.includes(e))&&Do();let n=r?Yt(t):t;return lr(e,n)}function lr(e,t){if(!e.equals(t)){var r=e.v;gt?_t.set(e,t):_t.set(e,r),e.v=t;var n=Qe.ensure();if(n.capture(e,r),e.f&K){const i=e;e.f&fe&&Si(i),Ti(i)}e.wv=oa(),js(e,fe),N!==null&&N.f&ne&&!(N.f&(at|bt))&&(Te===null?ul([e]):Te.push(e)),!n.is_fork&&Jn.size>0&&!Gs&&rl()}return t}function rl(){Gs=!1;var e=Ot;pn(!0);const t=Array.from(Jn);try{for(const r of t)r.f&ne&&Z(r,ot),Dr(r)&&Pr(r)}finally{pn(e)}Jn.clear()}function Lr(e){P(e,e.v+1)}function js(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&fe)===0;if(l&&Z(s,t),a&K){var o=s;J==null||J.delete(o),a&Mt||(a&Ne&&(s.f|=Mt),js(o,ot))}else l&&(a&st&&$e!==null&&$e.add(s),it(s))}}function Yt(e){if(typeof e!="object"||e===null||nn in e)return e;const t=gs(e);if(t!==Ho&&t!==Lo)return e;var r=new Map,n=ms(e),i=j(0),s=It,a=l=>{if(It===s)return l();var o=w,u=It;re(null),zi(s);var f=l();return re(o),zi(u),f};return n&&r.set("length",j(e.length)),new Proxy(e,{defineProperty(l,o,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&$o();var f=r.get(o);return f===void 0?f=a(()=>{var d=j(u.value);return r.set(o,d),d}):P(f,u.value,!0),!0},deleteProperty(l,o){var u=r.get(o);if(u===void 0){if(o in l){const f=a(()=>j(Q));r.set(o,f),Lr(i)}}else P(u,Q),Lr(i);return!0},get(l,o,u){var p;if(o===nn)return e;var f=r.get(o),d=o in l;if(f===void 0&&(!d||(p=Qt(l,o))!=null&&p.writable)&&(f=a(()=>{var g=Yt(d?l[o]:Q),b=j(g);return b}),r.set(o,f)),f!==void 0){var h=v(f);return h===Q?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=v(f))}else if(u===void 0){var d=r.get(o),h=d==null?void 0:d.v;if(d!==void 0&&h!==Q)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return u},has(l,o){var h;if(o===nn)return!0;var u=r.get(o),f=u!==void 0&&u.v!==Q||Reflect.has(l,o);if(u!==void 0||N!==null&&(!f||(h=Qt(l,o))!=null&&h.writable)){u===void 0&&(u=a(()=>{var p=f?Yt(l[o]):Q,g=j(p);return g}),r.set(o,u));var d=v(u);if(d===Q)return!1}return f},set(l,o,u,f){var C;var d=r.get(o),h=o in l;if(n&&o==="length")for(var p=u;p<d.v;p+=1){var g=r.get(p+"");g!==void 0?P(g,Q):p in l&&(g=a(()=>j(Q)),r.set(p+"",g))}if(d===void 0)(!h||(C=Qt(l,o))!=null&&C.writable)&&(d=a(()=>j(void 0)),P(d,Yt(u)),r.set(o,d));else{h=d.v!==Q;var b=a(()=>Yt(u));P(d,b)}var _=Reflect.getOwnPropertyDescriptor(l,o);if(_!=null&&_.set&&_.set.call(f,u),!h){if(n&&typeof o=="string"){var y=r.get("length"),B=Number(o);Number.isInteger(B)&&B>=y.v&&P(y,B+1)}Lr(i)}return!0},ownKeys(l){v(i);var o=Reflect.ownKeys(l).filter(d=>{var h=r.get(d);return h===void 0||h.v!==Q});for(var[u,f]of r)f.v!==Q&&!(u in l)&&o.push(u);return o},setPrototypeOf(){ko()}})}var Vi,Vs,Xs,zs;function Kn(){if(Vi===void 0){Vi=window,Vs=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Xs=Qt(t,"firstChild").get,zs=Qt(t,"nextSibling").get,Fi(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Fi(r)&&(r.__t=void 0)}}function Pe(e=""){return document.createTextNode(e)}function Ue(e){return Xs.call(e)}function Ge(e){return zs.call(e)}function D(e,t){if(!L)return Ue(e);var r=Ue(S);if(r===null)r=S.appendChild(Pe());else if(t&&r.nodeType!==Ei){var n=Pe();return r==null||r.before(n),oe(n),n}return oe(r),r}function on(e,t=!1){if(!L){var r=Ue(e);return r instanceof Comment&&r.data===""?Ge(r):r}if(t&&(S==null?void 0:S.nodeType)!==Ei){var n=Pe();return S==null||S.before(n),oe(n),n}return S}function he(e,t=1,r=!1){let n=L?S:e;for(var i;t--;)i=n,n=Ge(n);if(!L)return n;if(r&&(n==null?void 0:n.nodeType)!==Ei){var s=Pe();return n===null?i==null||i.after(s):n.before(s),oe(s),s}return oe(n),n}function Ws(e){e.textContent=""}function qs(){return!1}function Hi(e){var t=w,r=N;re(null),Oe(null);try{return e()}finally{re(t),Oe(r)}}function Zs(e){N===null&&(w===null&&Co(),Io()),gt&&Oo()}function nl(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=N;n!==null&&n.f&be&&(e|=be);var i={ctx:Be,deps:null,nodes:null,f:e|fe|Ne,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{Pr(i),i.f|=Sn}catch(o){throw le(i),o}else t!==null&&it(i);var s=i;if(r&&s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&!(s.f&$t)&&(s=s.first,e&st&&e&ir&&s!==null&&(s.f|=ir)),s!==null&&(s.parent=n,n!==null&&nl(s,n),w!==null&&w.f&K&&!(e&bt))){var a=w;((l=a.effects)!=null?l:a.effects=[]).push(s)}return i}function Li(){return w!==null&&!Fe}function Ni(e){const t=je($r,null,!1);return Z(t,ne),t.teardown=e,t}function Xe(e){var i;Zs();var t=N.f,r=!w&&(t&at)!==0&&(t&Sn)===0;if(r){var n=Be;((i=n.e)!=null?i:n.e=[]).push(e)}else return Ys(e)}function Ys(e){return je(cn|ws,e,!1)}function il(e){return Zs(),je($r|ws,e,!0)}function sl(e){Qe.ensure();const t=je(bt|$t,e,!0);return()=>{le(t)}}function al(e){Qe.ensure();const t=je(bt|$t,e,!0);return(r={})=>new Promise(n=>{r.outro?Bt(t,()=>{le(t),n(void 0)}):(le(t),n(void 0))})}function Qs(e){return je(cn,e,!1)}function ol(e){return je(bi|$t,e,!0)}function Pi(e,t=0){return je($r|t,e,!0)}function we(e,t=[],r=[],n=[]){Qo(n,t,r,i=>{je($r,()=>e(...i.map(v)),!0)})}function Bi(e,t=0){var r=je(st|t,e,!0);return r}function Le(e){return je(at|$t,e,!0)}function Js(e){var t=e.teardown;if(t!==null){const r=gt,n=w;Xi(!0),re(null);try{t.call(null)}finally{Xi(r),re(n)}}}function Ks(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&Hi(()=>{i.abort(Zt)});var n=r.next;r.f&bt?r.parent=null:le(r,t),r=n}}function ll(e){for(var t=e.first;t!==null;){var r=t.next;t.f&at||le(t),t=r}}function le(e,t=!0){var r=!1;(t||e.f&xs)&&e.nodes!==null&&e.nodes.end!==null&&(ea(e.nodes.start,e.nodes.end),r=!0),Ks(e,t&&!r),_n(e,0),Z(e,nt);var n=e.nodes&&e.nodes.t;if(n!==null)for(const s of n)s.stop();Js(e);var i=e.parent;i!==null&&i.first!==null&&ta(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function ea(e,t){for(;e!==null;){var r=e===t?null:Ge(e);e.remove(),e=r}}function ta(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function Bt(e,t,r=!0){var n=[];ra(e,n,!0);var i=()=>{r&&le(e),t&&t()},s=n.length;if(s>0){var a=()=>--s||i();for(var l of n)l.out(a)}else i()}function ra(e,t,r){if(!(e.f&be)){e.f^=be;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&ir)!==0||(i.f&at)!==0&&(e.f&st)!==0;ra(i,t,a?r:!1),i=s}}}function Oi(e){na(e,!0)}function na(e,t){if(e.f&be){e.f^=be,e.f&ne||(Z(e,fe),it(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&ir)!==0||(r.f&at)!==0;na(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 ia(e,t){if(e.nodes)for(var r=e.nodes.start,n=e.nodes.end;r!==null;){var i=r===n?null:Ge(r);t.append(r),r=i}}let Ot=!1;function pn(e){Ot=e}let gt=!1;function Xi(e){gt=e}let w=null,Fe=!1;function re(e){w=e}let N=null;function Oe(e){N=e}let ue=null;function sa(e){w!==null&&(ue===null?ue=[e]:ue.push(e))}let de=null,me=0,Te=null;function ul(e){Te=e}let aa=1,Tt=0,It=Tt;function zi(e){It=e}function oa(){return++aa}function Dr(e){var t=e.f;if(t&fe)return!0;if(t&K&&(e.f&=~Mt),t&ot){for(var r=e.deps,n=r.length,i=0;i<n;i++){var s=r[i];if(Dr(s)&&Fs(s),s.wv>e.wv)return!0}t&Ne&&J===null&&Z(e,ne)}return!1}function la(e,t,r=!0){var n=e.reactions;if(n!==null&&!(ue!=null&&ue.includes(e)))for(var i=0;i<n.length;i++){var s=n[i];s.f&K?la(s,t,!1):t===s&&(r?Z(s,fe):s.f&ne&&Z(s,ot),it(s))}}function ua(e){var g,b;var t=de,r=me,n=Te,i=w,s=ue,a=Be,l=Fe,o=It,u=e.f;de=null,me=0,Te=null,w=u&(at|bt)?null:e,ue=null,ar(e.ctx),Fe=!1,It=++Tt,e.ac!==null&&(Hi(()=>{e.ac.abort(Zt)}),e.ac=null);try{e.f|=zn;var f=e.fn,d=f(),h=e.deps;if(de!==null){var p;if(_n(e,me),h!==null&&me>0)for(h.length=me+de.length,p=0;p<de.length;p++)h[me+p]=de[p];else e.deps=h=de;if(Li()&&e.f&Ne)for(p=me;p<h.length;p++)((b=(g=h[p]).reactions)!=null?b:g.reactions=[]).push(e)}else h!==null&&me<h.length&&(_n(e,me),h.length=me);if(Ls()&&Te!==null&&!Fe&&h!==null&&!(e.f&(K|ot|fe)))for(p=0;p<Te.length;p++)la(Te[p],e);if(i!==null&&i!==e){if(Tt++,i.deps!==null)for(let _=0;_<r;_+=1)i.deps[_].rv=Tt;if(t!==null)for(const _ of t)_.rv=Tt;Te!==null&&(n===null?n=Te:n.push(...Te))}return e.f&pt&&(e.f^=pt),d}catch(_){return Ps(_)}finally{e.f^=zn,de=t,me=r,Te=n,w=i,ue=s,ar(a),Fe=l,It=o}}function fl(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&K&&(de===null||!de.includes(t))){var s=t;s.f&Ne&&(s.f^=Ne,s.f&=~Mt),Ti(s),Us(s),_n(s,0)}}function _n(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)fl(e,r[n])}function Pr(e){var t=e.f;if(!(t&nt)){Z(e,ne);var r=N,n=Ot;N=e,Ot=!0;try{t&(st|Es)?ll(e):Ks(e),Js(e);var i=ua(e);e.teardown=typeof i=="function"?i:null,e.wv=aa;var s;Xn&&jo&&e.f&fe&&e.deps}finally{Ot=n,N=r}}}function hl(){return Xt(this,null,function*(){yield Promise.resolve(),Ve()})}function v(e){var f;var t=e.f,r=(t&K)!==0;if(w!==null&&!Fe){var n=N!==null&&(N.f&nt)!==0;if(!n&&!(ue!=null&&ue.includes(e))){var i=w.deps;if(w.f&zn)e.rv<Tt&&(e.rv=Tt,de===null&&i!==null&&i[me]===e?me++:de===null?de=[e]:de.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(gt&&_t.has(e))return _t.get(e);if(r){var a=e;if(gt){var l=a.v;return(!(a.f&ne)&&a.reactions!==null||ha(a))&&(l=Si(a)),_t.set(a,l),l}var o=(a.f&Ne)===0&&!Fe&&w!==null&&(Ot||(w.f&Ne)!==0),u=a.deps===null;Dr(a)&&(o&&(a.f|=Ne),Fs(a)),o&&!u&&fa(a)}if(J!=null&&J.has(e))return J.get(e);if(e.f&pt)throw e.v;return e.v}function fa(e){var t;if(e.deps!==null){e.f|=Ne;for(const r of e.deps)((t=r.reactions)!=null?t:r.reactions=[]).push(e),r.f&K&&!(r.f&Ne)&&fa(r)}}function ha(e){if(e.v===Q)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(_t.has(t)||t.f&K&&ha(t))return!0;return!1}function Ii(e){var t=Fe;try{return Fe=!0,e()}finally{Fe=t}}const ca=new Set,ei=new Set;function cl(e,t,r,n={}){function i(s){if(n.capture||Tr.call(t,s),!s.cancelBubble)return Hi(()=>r==null?void 0:r.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?dr(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function dl(e,t,r,n,i){var s={capture:n,passive:i},a=cl(e,t,r,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Ni(()=>{t.removeEventListener(e,a,s)})}function da(e){for(var t=0;t<e.length;t++)ca.add(e[t]);for(var r of ei)r(e)}let Wi=null;function Tr(e){var _;var t=this,r=t.ownerDocument,n=e.type,i=((_=e.composedPath)==null?void 0:_.call(e))||[],s=i[0]||e.target;Wi=e;var a=0,l=Wi===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){Nr(e,"currentTarget",{configurable:!0,get(){return s||r}});var f=w,d=N;re(null),Oe(null);try{for(var h,p=[];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?p.push(y):h=y}if(e.cancelBubble||g===t||g===null)break;s=g}if(h){for(let y of p)queueMicrotask(()=>{throw y});throw h}}finally{e.__root=t,delete e.currentTarget,re(f),Oe(d)}}}function va(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function mt(e,t){var r=N;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function Ee(e,t){var r=(t&xo)!==0,n=(t&wo)!==0,i,s=!e.startsWith("<!>");return()=>{if(L)return mt(S,null),S;i===void 0&&(i=va(s?e:"<!>"+e),r||(i=Ue(i)));var a=n||Vs?document.importNode(i,!0):i.cloneNode(!0);if(r){var l=Ue(a),o=a.lastChild;mt(l,o)}else mt(a,a);return a}}function ti(){if(L)return mt(S,null),S;var e=document.createDocumentFragment(),t=document.createComment(""),r=Pe();return e.append(t,r),mt(t,r),e}function te(e,t){if(L){var r=N;(!(r.f&Sn)||r.nodes.end===null)&&(r.nodes.end=S),sr();return}e!==null&&e.before(t)}const vl=["touchstart","touchmove"];function pl(e){return vl.includes(e)}function ut(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 pa(e,t){return _a(e,t)}function _l(e,t){var a;Kn(),t.intro=(a=t.intro)!=null?a:!1;const r=t.target,n=L,i=S;try{for(var s=Ue(r);s&&(s.nodeType!==kt||s.data!==_s);)s=Ge(s);if(!s)throw Ct;De(!0),oe(s);const l=_a(e,Qr(Yr({},t),{anchor:s}));return De(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
2
- `).some(o=>o.startsWith("https://svelte.dev/e/")))throw l;return l!==Ct&&console.warn("Failed to hydrate: ",l),t.recover===!1&&Ro(),Kn(),Ws(r),De(!1),pa(e,t)}finally{De(n),oe(i)}}const zt=new Map;function _a(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:a=!0}){Kn();var l=new Set,o=d=>{for(var h=0;h<d.length;h++){var p=d[h];if(!l.has(p)){l.add(p);var g=pl(p);t.addEventListener(p,Tr,{passive:g});var b=zt.get(p);b===void 0?(document.addEventListener(p,Tr,{passive:g}),zt.set(p,1)):zt.set(p,b+1)}}};o(Tn(ca)),ei.add(o);var u=void 0,f=al(()=>{var d=r!=null?r:t.appendChild(Pe());return Zo(d,{pending:()=>{}},h=>{if(s){xi({});var p=Be;p.c=s}if(i&&(n.$$events=i),L&&mt(h,null),u=e(h,n)||{},L&&(N.nodes.end=S,S===null||S.nodeType!==kt||S.data!==gi))throw kr(),Ct;s&&wi()}),()=>{var g;for(var h of l){t.removeEventListener(h,Tr);var p=zt.get(h);--p===0?(document.removeEventListener(h,Tr),zt.delete(h)):zt.set(h,p)}ei.delete(o),d!==r&&((g=d.parentNode)==null||g.removeChild(d))}});return ri.set(u,f),u}let ri=new WeakMap;function ml(e,t){const r=ri.get(e);return r?(ri.delete(e),r(t)):Promise.resolve()}var ke,Ze,ye,Pt,Mr,Rr,xn;class gl{constructor(t,r=!0){V(this,"anchor");T(this,ke,new Map);T(this,Ze,new Map);T(this,ye,new Map);T(this,Pt,new Set);T(this,Mr,!0);T(this,Rr,()=>{var t=O;if(c(this,ke).has(t)){var r=c(this,ke).get(t),n=c(this,Ze).get(r);if(n)Oi(n),c(this,Pt).delete(r);else{var i=c(this,ye).get(r);i&&(c(this,Ze).set(r,i.effect),c(this,ye).delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(const[s,a]of c(this,ke)){if(c(this,ke).delete(s),s===t)break;const l=c(this,ye).get(a);l&&(le(l.effect),c(this,ye).delete(a))}for(const[s,a]of c(this,Ze)){if(s===r||c(this,Pt).has(s))continue;const l=()=>{if(Array.from(c(this,ke).values()).includes(s)){var u=document.createDocumentFragment();ia(a,u),u.append(Pe()),c(this,ye).set(s,{effect:a,fragment:u})}else le(a);c(this,Pt).delete(s),c(this,Ze).delete(s)};c(this,Mr)||!n?(c(this,Pt).add(s),Bt(a,l,!1)):l()}}});T(this,xn,t=>{c(this,ke).delete(t);const r=Array.from(c(this,ke).values());for(const[n,i]of c(this,ye))r.includes(n)||(le(i.effect),c(this,ye).delete(n))});this.anchor=t,x(this,Mr,r)}ensure(t,r){var n=O,i=qs();if(r&&!c(this,Ze).has(t)&&!c(this,ye).has(t))if(i){var s=document.createDocumentFragment(),a=Pe();s.append(a),c(this,ye).set(t,{effect:Le(()=>r(a)),fragment:s})}else c(this,Ze).set(t,Le(()=>r(this.anchor)));if(c(this,ke).set(n,t),i){for(const[l,o]of c(this,Ze))l===t?n.skipped_effects.delete(o):n.skipped_effects.add(o);for(const[l,o]of c(this,ye))l===t?n.skipped_effects.delete(o.effect):n.skipped_effects.add(o.effect);n.oncommit(c(this,Rr)),n.ondiscard(c(this,xn))}else L&&(this.anchor=S),c(this,Rr).call(this)}}ke=new WeakMap,Ze=new WeakMap,ye=new WeakMap,Pt=new WeakMap,Mr=new WeakMap,Rr=new WeakMap,xn=new WeakMap;function Re(e,t,r=!1){L&&sr();var n=new gl(e),i=r?ir:0;function s(a,l){if(L){const u=Ts(e)===wn;if(a===u){var o=dn();oe(o),n.anchor=o,De(!1),n.ensure(a,l),De(!0);return}}n.ensure(a,l)}Bi(()=>{var a=!1;t((l,o=!0)=>{a=!0,s(o,l)}),a||s(!1,null)},i)}function ma(e,t){return t}function yl(e,t,r){var d;for(var n=[],i=t.length,s,a=t.length,l=0;l<i;l++){let h=t[l];Bt(h,()=>{if(s){if(s.pending.delete(h),s.done.add(h),s.pending.size===0){var p=e.outrogroups;ni(Tn(s.done)),p.delete(s),p.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;Ws(f),f.append(u),e.items.clear()}ni(t,!o)}else s={pending:new Set(t),done:new Set},((d=e.outrogroups)!=null?d:e.outrogroups=new Set).add(s)}function ni(e,t=!0){for(var r=0;r<e.length;r++)le(e[r],t)}var Wt;function ii(e,t,r,n,i,s=null){var a=e,l=new Map,o=(t&ps)!==0;if(o){var u=e;a=L?oe(Ue(u)):u.appendChild(Pe())}L&&sr();var f=null,d=el(()=>{var y=r();return ms(y)?y:y==null?[]:Tn(y)}),h,p=!0;function g(){_.fallback=f,bl(_,h,a,t,n),f!==null&&(h.length===0?f.f&rt?(f.f^=rt,Sr(f,null,a)):Oi(f):Bt(f,()=>{f=null}))}var b=Bi(()=>{h=v(d);var y=h.length;let B=!1;if(L){var C=Ts(a)===wn;C!==(y===0)&&(a=dn(),oe(a),De(!1),B=!0)}for(var M=new Set,X=O,U=qs(),I=0;I<y;I+=1){L&&S.nodeType===kt&&S.data===gi&&(a=S,B=!0,De(!1));var ve=h[I],Ce=n(ve,I),W=p?null:l.get(Ce);W?(W.v&&lr(W.v,ve),W.i&&lr(W.i,I),U&&X.skipped_effects.delete(W.e)):(W=El(l,p?a:Wt!=null?Wt:Wt=Pe(),ve,Ce,I,i,t,r),p||(W.e.f|=rt),l.set(Ce,W)),M.add(Ce)}if(y===0&&s&&!f&&(p?f=Le(()=>s(a)):(f=Le(()=>s(Wt!=null?Wt:Wt=Pe())),f.f|=rt)),L&&y>0&&oe(dn()),!p)if(U){for(const[Y,Ut]of l)M.has(Y)||X.skipped_effects.add(Ut.e);X.oncommit(g),X.ondiscard(()=>{})}else g();B&&De(!0),v(d)}),_={effect:b,items:l,outrogroups:null,fallback:f};p=!1,L&&(a=S)}function bl(e,t,r,n,i){var W,Y,Ut,Ur,Fr,mr,Gr,gr,jr;var s=(n&bo)!==0,a=t.length,l=e.items,o=e.effect.first,u,f=null,d,h=[],p=[],g,b,_,y;if(s)for(y=0;y<a;y+=1)g=t[y],b=i(g,y),_=l.get(b).e,_.f&rt||((Y=(W=_.nodes)==null?void 0:W.a)==null||Y.measure(),(d!=null?d:d=new Set).add(_));for(y=0;y<a;y+=1){if(g=t[y],b=i(g,y),_=l.get(b).e,e.outrogroups!==null)for(const pe of e.outrogroups)pe.pending.delete(_),pe.done.delete(_);if(_.f&rt)if(_.f^=rt,_===o)Sr(_,null,r);else{var B=f?f.next:o;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),lt(e,f,_),lt(e,_,B),Sr(_,B,r),f=_,h=[],p=[],o=f.next;continue}if(_.f&be&&(Oi(_),s&&((Ur=(Ut=_.nodes)==null?void 0:Ut.a)==null||Ur.unfix(),(d!=null?d:d=new Set).delete(_))),_!==o){if(u!==void 0&&u.has(_)){if(h.length<p.length){var C=p[0],M;f=C.prev;var X=h[0],U=h[h.length-1];for(M=0;M<h.length;M+=1)Sr(h[M],C,r);for(M=0;M<p.length;M+=1)u.delete(p[M]);lt(e,X.prev,U.next),lt(e,f,X),lt(e,U,C),o=C,f=U,y-=1,h=[],p=[]}else u.delete(_),Sr(_,o,r),lt(e,_.prev,_.next),lt(e,_,f===null?e.effect.first:f.next),lt(e,f,_),f=_;continue}for(h=[],p=[];o!==null&&o!==_;)(u!=null?u:u=new Set).add(o),p.push(o),o=o.next;if(o===null)continue}_.f&rt||h.push(_),f=_,o=_.next}if(e.outrogroups!==null){for(const pe of e.outrogroups)pe.pending.size===0&&(ni(Tn(pe.done)),(Fr=e.outrogroups)==null||Fr.delete(pe));e.outrogroups.size===0&&(e.outrogroups=null)}if(o!==null||u!==void 0){var I=[];if(u!==void 0)for(_ of u)_.f&be||I.push(_);for(;o!==null;)!(o.f&be)&&o!==e.fallback&&I.push(o),o=o.next;var ve=I.length;if(ve>0){var Ce=n&ps&&a===0?r:null;if(s){for(y=0;y<ve;y+=1)(Gr=(mr=I[y].nodes)==null?void 0:mr.a)==null||Gr.measure();for(y=0;y<ve;y+=1)(jr=(gr=I[y].nodes)==null?void 0:gr.a)==null||jr.fix()}yl(e,I,Ce)}}s&&dr(()=>{var pe,Vr;if(d!==void 0)for(_ of d)(Vr=(pe=_.nodes)==null?void 0:pe.a)==null||Vr.apply()})}function El(e,t,r,n,i,s,a,l){var o=a&go?a&Eo?Rt(r):Ai(r,!1,!1):null,u=a&yo?Rt(i):null;return{v:o,i:u,e:Le(()=>(s(t,o!=null?o:r,u!=null?u:i,l),()=>{e.delete(n)}))}}function Sr(e,t,r){if(e.nodes)for(var n=e.nodes.start,i=e.nodes.end,s=t&&!(t.f&rt)?t.nodes.start:r;n!==null;){var a=Ge(n);if(s.before(n),n===i)return;n=a}}function lt(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}function qi(e,t,r=!1,n=!1,i=!1){var s=e,a="";we(()=>{var h;var l=N;if(a===(a=(h=t())!=null?h:"")){L&&sr();return}if(l.nodes!==null&&(ea(l.nodes.start,l.nodes.end),l.nodes=null),a!==""){if(L){S.data;for(var o=sr(),u=o;o!==null&&(o.nodeType!==kt||o.data!=="");)u=o,o=Ge(o);if(o===null)throw kr(),Ct;mt(S,u),s=oe(o);return}var f=a+"";r?f=`<svg>${f}</svg>`:n&&(f=`<math>${f}</math>`);var d=va(f);if((r||n)&&(d=Ue(d)),mt(Ue(d),d.lastChild),r||n)for(;Ue(d);)s.before(Ue(d));else s.before(d)}})}function ga(e,t){Qs(()=>{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 Zi=[...`
3
- \r\f \v\uFEFF`];function xl(e,t,r){var n=e==null?"":""+e;if(t&&(n=n?n+" "+t:t),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||Zi.includes(n[a-1]))&&(l===n.length||Zi.includes(n[l]))?n=(a===0?"":n.substring(0,a))+n.substring(l+1):a=l}}return n===""?null:n}function si(e,t,r,n,i,s){var a=e.__className;if(L||a!==r||a===void 0){var l=xl(r,n,s);(!L||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 wl=Symbol("is custom element"),Tl=Symbol("is html");function Ar(e,t,r,n){var i=Sl(e);L&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[Po]=r),r==null?e.removeAttribute(t):typeof r!="string"&&ya(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Kr(e,t,r){var n=w,i=N;let s=L;L&&De(!1),re(null),Oe(null);try{t!=="style"&&(ai.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?ya(e).includes(t):r&&typeof r=="object")?e[t]=r:Ar(e,t,r==null?r:String(r))}finally{re(n),Oe(i),s&&De(!0)}}function Sl(e){var t;return(t=e.__attributes)!=null?t:e.__attributes={[wl]:e.nodeName.includes("-"),[Tl]:e.namespaceURI===To}}var ai=new Map;function ya(e){var t=e.getAttribute("is")||e.nodeName,r=ai.get(t);if(r)return r;ai.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=gs(i)}return r}function Yi(e,t){return e===t||(e==null?void 0:e[nn])===t}function Qi(e={},t,r,n){return Qs(()=>{var i,s;return Pi(()=>{i=s,s=[],Ii(()=>{e!==r(...s)&&(t(e,...s),i&&Yi(r(...i),e)&&t(null,...i))})}),()=>{dr(()=>{s&&Yi(r(...s),e)&&t(null,...s)})}}),e}function Ci(e,t,r){if(e==null)return t(void 0),r&&r(void 0),vt;const n=Ii(()=>e.subscribe(t,r));return n.unsubscribe?()=>n.unsubscribe():n}const qt=[];function Al(e,t){return{subscribe:Ln(e,t).subscribe}}function Ln(e,t=vt){let r=null;const n=new Set;function i(l){if(As(e,l)&&(e=l,r)){const o=!qt.length;for(const u of n)u[1](),qt.push(u,e);if(o){for(let u=0;u<qt.length;u+=2)qt[u][0](qt[u+1]);qt.length=0}}}function s(l){i(l(e))}function a(l,o=vt){const u=[l,o];return n.add(u),n.size===1&&(r=t(i,s)||vt),l(e),()=>{n.delete(u),n.size===0&&r&&(r(),r=null)}}return{set:i,update:s,subscribe:a}}function vr(e,t,r){const n=!Array.isArray(e),i=n?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=t.length<2;return Al(r,(a,l)=>{let o=!1;const u=[];let f=0,d=vt;const h=()=>{if(f)return;d();const g=t(n?u[0]:u,a,l);s?a(g):d=typeof g=="function"?g:vt},p=i.map((g,b)=>Ci(g,_=>{u[b]=_,f&=~(1<<b),o&&h()},()=>{f|=1<<b}));return o=!0,h(),function(){ys(p),d(),o=!1}})}function Hl(e){let t;return Ci(e,r=>t=r)(),t}let oi=Symbol();function ba(e,t,r){var s;const n=(s=r[t])!=null?s:r[t]={store:null,source:Ai(void 0),unsubscribe:vt};if(n.store!==e&&!(oi in r))if(n.unsubscribe(),n.store=e!=null?e:null,e==null)n.source.v=void 0,n.unsubscribe=vt;else{var i=!0;n.unsubscribe=Ci(e,a=>{i?n.source.v=a:P(n.source,a)}),i=!1}return e&&oi in r?Hl(e):v(n.source)}function Ea(){const e={};function t(){Ni(()=>{for(var r in e)e[r].unsubscribe();Nr(e,oi,{enumerable:!1,value:!0})})}return[e,t]}function ft(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=Hn(()=>(u=!1,o())),d=N;return function(h,p){if(arguments.length>0){const g=p?v(f):h;return P(f,g),u=!0,i!==void 0&&(i=g),h}return gt&&u||d.f&nt?f.v:v(f)}}function Ll(e){return new Nl(e)}var tt,Ae;class Nl{constructor(t){T(this,tt);T(this,Ae);var s,a;var r=new Map,n=(l,o)=>{var u=Ai(o,!1,!1);return r.set(l,u),u};const i=new Proxy(Qr(Yr({},t.props||{}),{$$events:{}}),{get(l,o){var u;return v((u=r.get(o))!=null?u:n(o,Reflect.get(l,o)))},has(l,o){var u;return o===No?!0:(v((u=r.get(o))!=null?u:n(o,Reflect.get(l,o))),Reflect.has(l,o))},set(l,o,u){var f;return P((f=r.get(o))!=null?f:n(o,u),u),Reflect.set(l,o,u)}});x(this,Ae,(t.hydrate?_l:pa)(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)&&Ve(),x(this,tt,i.$$events);for(const l of Object.keys(c(this,Ae)))l==="$set"||l==="$destroy"||l==="$on"||Nr(this,l,{get(){return c(this,Ae)[l]},set(o){c(this,Ae)[l]=o},enumerable:!0});c(this,Ae).$set=l=>{Object.assign(i,l)},c(this,Ae).$destroy=()=>{ml(c(this,Ae))}}$set(t){c(this,Ae).$set(t)}$on(t,r){c(this,tt)[t]=c(this,tt)[t]||[];const n=(...i)=>r.call(this,...i);return c(this,tt)[t].push(n),()=>{c(this,tt)[t]=c(this,tt)[t].filter(i=>i!==n)}}$destroy(){c(this,Ae).$destroy()}}tt=new WeakMap,Ae=new WeakMap;let xa;typeof HTMLElement=="function"&&(xa=class extends HTMLElement{constructor(t,r,n){super();V(this,"$$ctor");V(this,"$$s");V(this,"$$c");V(this,"$$cn",!1);V(this,"$$d",{});V(this,"$$r",!1);V(this,"$$p_d",{});V(this,"$$l",{});V(this,"$$l_u",new Map);V(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 Xt(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),te(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]=ln(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=Ll({component:this.$$ctor,target:this.shadowRoot||this,props:Qr(Yr({},this.$$d),{$$slots:r,$$host:this})}),this.$$me=sl(()=>{Pi(()=>{var i;this.$$r=!0;for(const s of hn(this.$$c)){if(!((i=this.$$p_d[s])!=null&&i.reflect))continue;this.$$d[s]=this.$$c[s];const a=ln(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]=ln(t,n,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return hn(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function ln(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 wa(e,t,r,n,i,s){let a=class extends xa{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return hn(t).map(l=>(t[l].attribute||l).toLowerCase())}};return hn(t).forEach(l=>{Nr(a.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(o){var d;o=ln(l,o,t),this.$$d[l]=o;var u=this.$$c;if(u){var f=(d=Qt(u,l))==null?void 0:d.get;f?u[l]=o:u.$set({[l]:o})}}})}),n.forEach(l=>{Nr(a.prototype,l,{get(){var o;return(o=this.$$c)==null?void 0:o[l]}})}),e.element=a,a}class Bl extends Error{constructor(t,r){super(r),this.code=t,this.name="ElevateApiError"}}const Ol=e=>Xt(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 Bl(i.errorCode,i.errorMessage);return i.data}),Il=e=>Xt(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}),en=10,tn=12,Cl=(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},Ml=e=>{window.postMessage({type:"LoyaltyLevelClicked",tierName:e},window.location.href)},Rl=e=>{let t=j(void 0),r=j(void 0),n=j(void 0),i=j(void 0),s=j(!1),a=j(void 0);const l=()=>Xt(exports,null,function*(){var p;const{apiEndpoint:o,userSession:u,locale:f,loadLevels:d,onLevelLoaded:h}=e();if(!(!o||!u)){P(s,!0),P(a,void 0);try{const g=[Ol({apiEndpoint:o,userSession:u,locale:f}).then(b=>{var y,B,C,M,X,U;const _=b.level;_.name=((y=_.presentation)==null?void 0:y.displayName)||_.name,_.spendablePoints=((B=b.spendableWallet)==null?void 0:B.total.points)||0,P(t,_,!0),P(n,(C=b.loyaltyWallet)==null?void 0:C.total,!0),P(i,(M=b.spendableWallet)==null?void 0:M.total,!0),h==null||h({elevateLevel:_}),h==null||h({elevateLevelWalletTotal:(X=b.spendableWallet)==null?void 0:X.total,loyaltyWalletTotal:(U=b.loyaltyWallet)==null?void 0:U.total})})];d&&g.push(Il({apiEndpoint:o,userSession:u,locale:f}).then(b=>{P(r,b,!0)})),yield Promise.all(g),yield hl(),v(r)&&v(t)&&(h==null||h({calculatedLevelFlag:Cl(v(r),(p=v(t).loyaltyPoints)!=null?p:0)}))}catch(g){P(a,g,!0),console.error("Failed to load elevate info:",g)}finally{P(s,!1)}}});return Xe(()=>{const{apiEndpoint:o,userSession:u,locale:f,loadLevels:d}=e();l()}),Xe(()=>{const o=()=>{l()};return window.addEventListener("redeemRewardButton",o),()=>window.removeEventListener("redeemRewardButton",o)}),{get playerElevateLevel(){return v(t)},get levels(){return v(r)},get loyaltyWalletTotal(){return v(n)},get spendableWalletTotal(){return v(i)},get loading(){return v(s)},get error(){return v(a)},reload:l}};function $l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var kl=function(t){return Dl(t)&&!Ul(t)};function Dl(e){return!!e&&typeof e=="object"}function Ul(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||jl(e)}var Fl=typeof Symbol=="function"&&Symbol.for,Gl=Fl?Symbol.for("react.element"):60103;function jl(e){return e.$$typeof===Gl}function Vl(e){return Array.isArray(e)?[]:{}}function Br(e,t){return t.clone!==!1&&t.isMergeableObject(e)?ur(Vl(e),e,t):e}function Xl(e,t,r){return e.concat(t).map(function(n){return Br(n,r)})}function zl(e,t){if(!t.customMerge)return ur;var r=t.customMerge(e);return typeof r=="function"?r:ur}function Wl(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Ji(e){return Object.keys(e).concat(Wl(e))}function Ta(e,t){try{return t in e}catch(r){return!1}}function ql(e,t){return Ta(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Zl(e,t,r){var n={};return r.isMergeableObject(e)&&Ji(e).forEach(function(i){n[i]=Br(e[i],r)}),Ji(t).forEach(function(i){ql(e,i)||(Ta(e,i)&&r.isMergeableObject(t[i])?n[i]=zl(i,r)(e[i],t[i],r):n[i]=Br(t[i],r))}),n}function ur(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Xl,r.isMergeableObject=r.isMergeableObject||kl,r.cloneUnlessOtherwiseSpecified=Br;var n=Array.isArray(t),i=Array.isArray(e),s=n===i;return s?n?r.arrayMerge(e,t,r):Zl(e,t,r):Br(t,r)}ur.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return ur(n,i,r)},{})};var Yl=ur,Ql=Yl;const Jl=$l(Ql);var li=function(e,t){return li=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])},li(e,t)};function Nn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");li(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Ye=function(){return Ye=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},Ye.apply(this,arguments)};function Kl(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 Dn(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 Un(e,t){var r=t&&t.cache?t.cache:au,n=t&&t.serializer?t.serializer:iu,i=t&&t.strategy?t.strategy:ru;return i(e,{cache:r,serializer:n})}function eu(e){return e==null||typeof e=="number"||typeof e=="boolean"}function tu(e,t,r,n){var i=eu(n)?n:r(n),s=t.get(i);return typeof s=="undefined"&&(s=e.call(this,n),t.set(i,s)),s}function Sa(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 Aa(e,t,r,n,i){return r.bind(t,e,n,i)}function ru(e,t){var r=e.length===1?tu:Sa;return Aa(e,this,r,t.cache.create(),t.serializer)}function nu(e,t){return Aa(e,this,Sa,t.cache.create(),t.serializer)}var iu=function(){return JSON.stringify(arguments)},su=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}(),au={create:function(){return new su}},Fn={variadic:nu},mn=function(){return mn=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},mn.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 fr;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(fr||(fr={}));function Ki(e){return e.type===$.literal}function ou(e){return e.type===$.argument}function Ha(e){return e.type===$.number}function La(e){return e.type===$.date}function Na(e){return e.type===$.time}function Pa(e){return e.type===$.select}function Ba(e){return e.type===$.plural}function lu(e){return e.type===$.pound}function Oa(e){return e.type===$.tag}function Ia(e){return!!(e&&typeof e=="object"&&e.type===fr.number)}function ui(e){return!!(e&&typeof e=="object"&&e.type===fr.dateTime)}var Ca=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,uu=/(?:[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 fu(e){var t={};return e.replace(uu,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 G=function(){return G=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},G.apply(this,arguments)};var hu=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function cu(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(hu).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 du(e){return e.replace(/^(.*?)-/,"")}var es=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ma=/^(@+)?(\+|#+)?[rs]?$/g,vu=/(\*)(0+)|(#+)(0+)|(0+)/g,Ra=/^(0+)$/;function ts(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Ma,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 $a(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 pu(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)),!Ra.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function rs(e){var t={},r=$a(e);return r||t}function _u(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=du(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=G(G(G({},t),{notation:"scientific"}),i.options.reduce(function(o,u){return G(G({},o),rs(u))},{}));continue;case"engineering":t=G(G(G({},t),{notation:"engineering"}),i.options.reduce(function(o,u){return G(G({},o),rs(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(vu,function(o,u,f,d,h,p){if(u)t.minimumIntegerDigits=f.length;else{if(d&&h)throw new Error("We currently do not support maximum integer digits");if(p)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Ra.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(es.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(es,function(o,u,f,d,h,p){return f==="*"?t.minimumFractionDigits=u.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:h&&p?(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length+p.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var s=i.options[0];s==="w"?t=G(G({},t),{trailingZeroDisplay:"stripIfInteger"}):s&&(t=G(G({},t),ts(s)));continue}if(Ma.test(i.stem)){t=G(G({},t),ts(i.stem));continue}var a=$a(i.stem);a&&(t=G(G({},t),a));var l=pu(i.stem);l&&(t=G(G({},t),l))}return t}var rn={"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 mu(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=gu(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 gu(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=rn[n||""]||rn[r||""]||rn["".concat(r,"-001")]||rn["001"];return i[0]}var Gn,yu=new RegExp("^".concat(Ca.source,"*")),bu=new RegExp("".concat(Ca.source,"*$"));function H(e,t){return{start:e,end:t}}var Eu=!!String.prototype.startsWith&&"_a".startsWith("a",1),xu=!!String.fromCodePoint,wu=!!Object.fromEntries,Tu=!!String.prototype.codePointAt,Su=!!String.prototype.trimStart,Au=!!String.prototype.trimEnd,Hu=!!Number.isSafeInteger,Lu=Hu?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},fi=!0;try{var Nu=Da("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");fi=((Gn=Nu.exec("a"))===null||Gn===void 0?void 0:Gn[0])==="a"}catch(e){fi=!1}var ns=Eu?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},hi=xu?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},is=wu?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},ka=Tu?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=Su?function(t){return t.trimStart()}:function(t){return t.replace(yu,"")},Bu=Au?function(t){return t.trimEnd()}:function(t){return t.replace(bu,"")};function Da(e,t){return new RegExp(e,t)}var ci;if(fi){var ss=Da("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ci=function(t,r){var n;ss.lastIndex=r;var i=ss.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}}else ci=function(t,r){for(var n=[];;){var i=ka(t,r);if(i===void 0||Ua(i)||Mu(i))break;n.push(i),r+=i>=65536?2:1}return hi.apply(void 0,n)};var Ou=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&&di(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()||!di(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()&&Cu(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||!Iu(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 hi.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(),hi(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=ci(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=Bu(d.val);if(h.length===0)return this.error(A.EXPECT_ARGUMENT_STYLE,H(this.clonePosition(),this.clonePosition()));var p=H(f,this.clonePosition());u={style:h,styleLocation:p}}var g=this.tryParseArgumentClose(i);if(g.err)return g;var b=H(i,this.clonePosition());if(u&&ns(u==null?void 0:u.style,"::",0)){var _=Pu(u.style.slice(2));if(l==="number"){var d=this.parseNumberSkeletonFromString(_,u.styleLocation);return d.err?d:{val:{type:$.number,value:n,location:b,style:d.val},err:null}}else{if(_.length===0)return this.error(A.EXPECT_DATE_TIME_SKELETON,b);var y=_;this.locale&&(y=mu(_,this.locale));var h={type:fr.dateTime,pattern:y,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?fu(y):{}},B=l==="date"?$.date:$.time;return{val:{type:B,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 C=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(A.EXPECT_SELECT_ARGUMENT_OPTIONS,H(C,mn({},C)));this.bumpSpace();var M=this.parseIdentifierIfPossible(),X=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(),X=d.val}var U=this.tryParsePluralOrSelectOptions(t,l,r,M);if(U.err)return U;var g=this.tryParseArgumentClose(i);if(g.err)return g;var I=H(i,this.clonePosition());return l==="select"?{val:{type:$.select,value:n,options:is(U.val),location:I},err:null}:{val:{type:$.plural,value:n,options:is(U.val),offset:X,pluralType:l==="plural"?"cardinal":"ordinal",location:I},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=cu(t)}catch(i){return this.error(A.INVALID_NUMBER_SKELETON,r)}return{val:{type:fr.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?_u(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 p=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(p);if(b.err)return b;l.push([u,{value:g.val,location:H(p,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,Lu(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=ka(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(ns(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()&&Ua(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 di(e){return e>=97&&e<=122||e>=65&&e<=90}function Iu(e){return di(e)||e===47}function Cu(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 Ua(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Mu(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 vi(e){e.forEach(function(t){if(delete t.location,Pa(t)||Ba(t))for(var r in t.options)delete t.options[r].location,vi(t.options[r].value);else Ha(t)&&Ia(t.style)||(La(t)||Na(t))&&ui(t.style)?delete t.style.location:Oa(t)&&vi(t.children)})}function Ru(e,t){t===void 0&&(t={}),t=mn({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Ou(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||vi(r.val),r.val}var hr;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(hr||(hr={}));var Pn=function(e){Nn(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),as=function(e){Nn(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('", "'),'"'),hr.INVALID_VALUE,s)||this}return t}(Pn),$u=function(e){Nn(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),hr.INVALID_VALUE,i)||this}return t}(Pn),ku=function(e){Nn(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,'"'),hr.MISSING_VALUE,n)||this}return t}(Pn),ae;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(ae||(ae={}));function Du(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==ae.literal||r.type!==ae.literal?t.push(r):n.value+=r.value,t},[])}function Uu(e){return typeof e=="function"}function un(e,t,r,n,i,s,a){if(e.length===1&&Ki(e[0]))return[{type:ae.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:ae.literal,value:f.value});continue}if(lu(f)){typeof s=="number"&&l.push({type:ae.literal,value:r.getNumberFormat(t).format(s)});continue}var d=f.value;if(!(i&&d in i))throw new ku(d,a);var h=i[d];if(ou(f)){(!h||typeof h=="string"||typeof h=="number")&&(h=typeof h=="string"||typeof h=="number"?String(h):""),l.push({type:typeof h=="string"?ae.literal:ae.object,value:h});continue}if(La(f)){var p=typeof f.style=="string"?n.date[f.style]:ui(f.style)?f.style.parsedOptions:void 0;l.push({type:ae.literal,value:r.getDateTimeFormat(t,p).format(h)});continue}if(Na(f)){var p=typeof f.style=="string"?n.time[f.style]:ui(f.style)?f.style.parsedOptions:n.time.medium;l.push({type:ae.literal,value:r.getDateTimeFormat(t,p).format(h)});continue}if(Ha(f)){var p=typeof f.style=="string"?n.number[f.style]:Ia(f.style)?f.style.parsedOptions:void 0;p&&p.scale&&(h=h*(p.scale||1)),l.push({type:ae.literal,value:r.getNumberFormat(t,p).format(h)});continue}if(Oa(f)){var g=f.children,b=f.value,_=i[b];if(!Uu(_))throw new $u(b,"function",a);var y=un(g,t,r,n,i,s),B=_(y.map(function(X){return X.value}));Array.isArray(B)||(B=[B]),l.push.apply(l,B.map(function(X){return{type:typeof X=="string"?ae.literal:ae.object,value:X}}))}if(Pa(f)){var C=f.options[h]||f.options.other;if(!C)throw new as(f.value,h,Object.keys(f.options),a);l.push.apply(l,un(C.value,t,r,n,i));continue}if(Ba(f)){var C=f.options["=".concat(h)];if(!C){if(!Intl.PluralRules)throw new Pn(`Intl.PluralRules is not available in this environment.
4
- Try polyfilling it using "@formatjs/intl-pluralrules"
5
- `,hr.MISSING_INTL_API,a);var M=r.getPluralRules(t,{type:f.pluralType}).select(h-(f.offset||0));C=f.options[M]||f.options.other}if(!C)throw new as(f.value,h,Object.keys(f.options),a);l.push.apply(l,un(C.value,t,r,n,i,h-(f.offset||0)));continue}}return Du(l)}function Fu(e,t){return t?Ye(Ye(Ye({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=Ye(Ye({},e[n]),t[n]||{}),r},{})):e}function Gu(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=Fu(e[n],t[n]),r},Ye({},e)):e}function jn(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function ju(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Un(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,Dn([void 0],r,!1)))},{cache:jn(e.number),strategy:Fn.variadic}),getDateTimeFormat:Un(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,Dn([void 0],r,!1)))},{cache:jn(e.dateTime),strategy:Fn.variadic}),getPluralRules:Un(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,Dn([void 0],r,!1)))},{cache:jn(e.pluralRules),strategy:Fn.variadic})}}var Vu=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!==ae.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 un(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=Kl(a,["formatters"]);this.ast=e.__parse(t,Ye(Ye({},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=Gu(e.formats,n),this.formatters=i&&i.formatters||ju(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=Ru,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 Xu(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 dt={},zu=(e,t,r)=>r&&(t in dt||(dt[t]={}),e in dt[t]||(dt[t][e]=r),r),Fa=(e,t)=>{if(t==null)return;if(t in dt&&e in dt[t])return dt[t][e];const r=Bn(t);for(let n=0;n<r.length;n++){const i=r[n],s=qu(i,e);if(s)return zu(e,t,s)}};let Mi;const pr=Ln({});function Wu(e){return Mi[e]||null}function Ga(e){return e in Mi}function qu(e,t){if(!Ga(e))return null;const r=Wu(e);return Xu(r,t)}function Zu(e){if(e==null)return;const t=Bn(e);for(let r=0;r<t.length;r++){const n=t[r];if(Ga(n))return n}}function ja(e,...t){delete dt[e],pr.update(r=>(r[e]=Jl.all([r[e]||{},...t]),r))}vr([pr],([e])=>Object.keys(e));pr.subscribe(e=>Mi=e);const fn={};function Yu(e,t){fn[e].delete(t),fn[e].size===0&&delete fn[e]}function Va(e){return fn[e]}function Qu(e){return Bn(e).map(t=>{const r=Va(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function pi(e){return e==null?!1:Bn(e).some(t=>{var r;return(r=Va(t))==null?void 0:r.size})}function Ju(e,t){return Promise.all(t.map(n=>(Yu(e,n),n().then(i=>i.default||i)))).then(n=>ja(e,...n))}const wr={};function Xa(e){if(!pi(e))return e in wr?wr[e]:Promise.resolve();const t=Qu(e);return wr[e]=Promise.all(t.map(([r,n])=>Ju(r,n))).then(()=>{if(pi(e))return Xa(e);delete wr[e]}),wr[e]}const Ku={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"}}},ef={fallbackLocale:null,loadingDelay:200,formats:Ku,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},tf=ef;function cr(){return tf}const Vn=Ln(!1);var rf=Object.defineProperty,nf=Object.defineProperties,sf=Object.getOwnPropertyDescriptors,os=Object.getOwnPropertySymbols,af=Object.prototype.hasOwnProperty,of=Object.prototype.propertyIsEnumerable,ls=(e,t,r)=>t in e?rf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,lf=(e,t)=>{for(var r in t||(t={}))af.call(t,r)&&ls(e,r,t[r]);if(os)for(var r of os(t))of.call(t,r)&&ls(e,r,t[r]);return e},uf=(e,t)=>nf(e,sf(t));let _i;const gn=Ln(null);function us(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function Bn(e,t=cr().fallbackLocale){const r=us(e);return t?[...new Set([...r,...us(t)])]:r}function Dt(){return _i!=null?_i:void 0}gn.subscribe(e=>{_i=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const ff=e=>{if(e&&Zu(e)&&pi(e)){const{loadingDelay:t}=cr();let r;return typeof window!="undefined"&&Dt()!=null&&t?r=window.setTimeout(()=>Vn.set(!0),t):Vn.set(!0),Xa(e).then(()=>{gn.set(e)}).finally(()=>{clearTimeout(r),Vn.set(!1)})}return gn.set(e)},yt=uf(lf({},gn),{set:ff}),On=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var hf=Object.defineProperty,yn=Object.getOwnPropertySymbols,za=Object.prototype.hasOwnProperty,Wa=Object.prototype.propertyIsEnumerable,fs=(e,t,r)=>t in e?hf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ri=(e,t)=>{for(var r in t||(t={}))za.call(t,r)&&fs(e,r,t[r]);if(yn)for(var r of yn(t))Wa.call(t,r)&&fs(e,r,t[r]);return e},_r=(e,t)=>{var r={};for(var n in e)za.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&yn)for(var n of yn(e))t.indexOf(n)<0&&Wa.call(e,n)&&(r[n]=e[n]);return r};const Or=(e,t)=>{const{formats:r}=cr();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},cf=On(e=>{var t=e,{locale:r,format:n}=t,i=_r(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=Or("number",n)),new Intl.NumberFormat(r,i)}),df=On(e=>{var t=e,{locale:r,format:n}=t,i=_r(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=Or("date",n):Object.keys(i).length===0&&(i=Or("date","short")),new Intl.DateTimeFormat(r,i)}),vf=On(e=>{var t=e,{locale:r,format:n}=t,i=_r(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=Or("time",n):Object.keys(i).length===0&&(i=Or("time","short")),new Intl.DateTimeFormat(r,i)}),pf=(e={})=>{var t=e,{locale:r=Dt()}=t,n=_r(t,["locale"]);return cf(Ri({locale:r},n))},_f=(e={})=>{var t=e,{locale:r=Dt()}=t,n=_r(t,["locale"]);return df(Ri({locale:r},n))},mf=(e={})=>{var t=e,{locale:r=Dt()}=t,n=_r(t,["locale"]);return vf(Ri({locale:r},n))},gf=On((e,t=Dt())=>new Vu(e,t,cr().formats,{ignoreTag:cr().ignoreTag})),yf=(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=Fa(e,o);if(!f)f=(s=(i=(n=(r=cr()).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=gf(f,o).format(l)}catch(h){h instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,h.message)}return d},bf=(e,t)=>mf(t).format(e),Ef=(e,t)=>_f(t).format(e),xf=(e,t)=>pf(t).format(e),wf=(e,t=Dt())=>Fa(e,t),qa=vr([yt,pr],()=>yf);vr([yt],()=>bf);vr([yt],()=>Ef);vr([yt],()=>xf);vr([yt,pr],()=>wf);function Za({withLocale:e,translations:t}){yt.subscribe(r=>{r==null&&(pr.set(t),yt.set(e))})}function mi(e,t){ja(e,t)}function Ya(e){yt.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-g9b1ikls.cjs")).then(({default:t})=>{!customElements.get("loyalty-pagination")&&customElements.define("loyalty-pagination",t.element)})}const Tf={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"}},hs="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 Sf=Ee('<article class="loyalty-level__card loyalty-level__card--skeleton svelte-ml7rkt" aria-busy="true"><header class="loyalty-level__head svelte-ml7rkt"><span class="loyalty-level__skeleton loyalty-level__skeleton--badge svelte-ml7rkt"></span> <div class="loyalty-level__headings svelte-ml7rkt"><span class="loyalty-level__skeleton loyalty-level__skeleton--name svelte-ml7rkt"></span> <span class="loyalty-level__skeleton loyalty-level__skeleton--starting svelte-ml7rkt"></span></div></header> <span class="loyalty-level__skeleton loyalty-level__skeleton--action svelte-ml7rkt"></span></article>'),Af=Ee('<img class="loyalty-level__badge svelte-ml7rkt"/>'),Hf=Ee('<span class="loyalty-level__tag svelte-ml7rkt"> </span>'),Lf=Ee('<div class="loyalty-level__benefits svelte-ml7rkt"><!></div>'),Nf=Ee('<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>'),Pf=Ee("<loyalty-pagination></loyalty-pagination>",2),Bf=Ee('<div class="loyalty-level__sentinel svelte-ml7rkt" aria-hidden="true"></div>'),Of=Ee('<img class="loyalty-level__badge svelte-ml7rkt"/>'),If=Ee('<span class="loyalty-level__tag svelte-ml7rkt"> </span>'),Cf=Ee('<div class="loyalty-level__benefits svelte-ml7rkt"><!></div>'),Mf=Ee('<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> <div class="loyalty-level__modal-content svelte-ml7rkt"><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></div>'),Rf=Ee('<div class="loyalty-level svelte-ml7rkt"><div class="loyalty-level__grid svelte-ml7rkt"><!></div> <!> <!></div> <!>',1);const $f={hash:"svelte-ml7rkt",code:`
6
- @layer loyalty-level-component {.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;line-height:1.4;}.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:1.4;}.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:33dvw;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:8px;box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden;}.loyalty-level__modal-content.svelte-ml7rkt {padding:8px;display:flex;flex-direction:column;gap:16px;}.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;}.loyalty-level__card--skeleton.svelte-ml7rkt {pointer-events:none;justify-content:flex-start;height:180px;}.loyalty-level__skeleton.svelte-ml7rkt {display:block;border-radius:4px;background:linear-gradient(
7
- 90deg,
8
- var(--app-container-bg-subtle, rgba(251, 251, 251, 0.1)) 0%,
9
- color-mix(in srgb, var(--app-container-bg-subtle, rgba(251, 251, 251, 0.1)) 80%, white) 50%,
10
- var(--app-container-bg-subtle, rgba(251, 251, 251, 0.1)) 100%
11
- );background-size:400% 100%;
12
- animation: svelte-ml7rkt-loyalty-level-shimmer 1.4s ease infinite;}.loyalty-level__skeleton--badge.svelte-ml7rkt {width:40px;height:40px;flex-shrink:0;border-radius:6px;}.loyalty-level__skeleton--name.svelte-ml7rkt {width:60%;height:16px;}.loyalty-level__skeleton--starting.svelte-ml7rkt {width:40%;height:14px;}.loyalty-level__skeleton--action.svelte-ml7rkt {margin-top:auto;width:100%;height:33px;border-radius:6px;}
13
-
14
- @keyframes svelte-ml7rkt-loyalty-level-shimmer {
15
- 0% {
16
- background-position: 100% 50%;
17
- }
18
- 100% {
19
- background-position: 0 50%;
20
- }
21
- }
22
-
23
- @media (prefers-reduced-motion: reduce) {.loyalty-level__skeleton.svelte-ml7rkt {
24
- animation: none;}
25
- }
26
- }`};function Qa(e,t){xi(t,!0),ga(e,$f);const r=()=>ba(qa,"$_",n),[n,i]=Ea(),s=ft(t,"apiEndpoint",7,""),a=ft(t,"userSession",7,""),l=ft(t,"locale",7,""),o=ft(t,"onLevelLoaded",7,m=>{}),u=ft(t,"onSeeMore",7,m=>{}),f=ft(t,"limitItem",7,tn),d=ft(t,"translationUrl");let h=j(void 0);Za({withLocale:l(),translations:{}});const p=()=>{let m=new URL(d(),window.location.href);fetch(m.href).then(E=>E.json()).then(E=>{Object.keys(E).forEach(R=>{mi(R,E[R])})}).catch(E=>{console.log("loyalty level translation url err:",E)})};Object.entries(Tf).forEach(([m,E])=>{mi(m,E)}),Xe(()=>{var m;Ya((m=l())!=null?m:"en")}),il(()=>{d()&&p()});const g=m=>{o()(m)},b=Rl(()=>({apiEndpoint:s(),userSession:a(),locale:l(),loadLevels:!0,onLevelLoaded:g})),_=Me(()=>{var m;return(m=b.playerElevateLevel)==null?void 0:m.id}),y=Me(()=>typeof f()=="number"?f():parseInt(f(),tn)||tn),B=Me(()=>{var m;return[...(m=b.levels)!=null?m:[]].sort((E,R)=>E.firstEntryPoints<R.firstEntryPoints?-1:1)}),C=Me(()=>v(B).findIndex(m=>m.id===v(_))),M=m=>{var E,R,xe;return(xe=(R=(E=m.presentation)==null?void 0:E.displayName)!=null?R:m.displayName)!=null?xe:String(m.id)},X=m=>v(C)>=0&&m<=v(C);let U=j(0),I=j(!1),ve=j(Yt(en)),Ce=j(void 0),W=j(void 0),Y=j(void 0);const Ut=Me(()=>Math.max(1,Math.ceil(v(B).length/v(y)))),Ur=Me(()=>v(I)?v(B).slice(0,v(ve)):v(B).slice(v(U)*v(y),v(U)*v(y)+v(y))),Fr=Me(()=>v(B).length>0&&!!b.playerElevateLevel),mr=Me(()=>b.loading&&!v(Fr)),Gr=Me(()=>v(I)?en:v(y));Xe(()=>{v(h)&&(v(h).onPageChange=gr)}),Xe(()=>{v(U)>v(Ut)-1&&P(U,0)}),Xe(()=>{P(ve,v(I)?en:v(y),!0)}),Xe(()=>{if(!v(I)||!v(Ce))return;const m=new IntersectionObserver(E=>{E.some(R=>R.isIntersecting)&&P(ve,Math.min(v(B).length,v(ve)+en),!0)},{rootMargin:"200px"});return m.observe(v(Ce)),()=>m.disconnect()});const gr=m=>{P(U,Math.floor(m/v(y)),!0)};Xe(()=>{const m=window.matchMedia("(max-width: 767px)"),E=R=>{P(I,R.matches,!0)};return P(I,m.matches,!0),m.addEventListener("change",E),()=>m.removeEventListener("change",E)});const jr=m=>{u()(m),v(W)!==m.id&&Ml(M(m)),v(I)?P(W,v(W)===m.id?void 0:m.id,!0):P(Y,m,!0)},pe=()=>{P(Y,void 0)},Vr=m=>{m.target===m.currentTarget&&pe()},Ja=m=>{m.key==="Escape"&&pe()};Xe(()=>{if(!v(Y))return;const m=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=m}});const Ka=(m,E)=>{var R;return!!((R=m.presentation)!=null&&R.description)&&(!X(E)||v(W)===m.id)};var eo={get apiEndpoint(){return s()},set apiEndpoint(m=""){s(m),Ve()},get userSession(){return a()},set userSession(m=""){a(m),Ve()},get locale(){return l()},set locale(m=""){l(m),Ve()},get onLevelLoaded(){return o()},set onLevelLoaded(m=E=>{}){o(m),Ve()},get onSeeMore(){return u()},set onSeeMore(m=E=>{}){u(m),Ve()},get limitItem(){return f()},set limitItem(m=tn){f(m),Ve()},get translationUrl(){return d()},set translationUrl(m){d(m),Ve()}},$i=Rf(),In=on($i),Cn=D(In),to=D(Cn);{var ro=m=>{var E=ti(),R=on(E);ii(R,17,()=>({length:v(Gr)}),ma,(xe,ie,Ft,Gt)=>{var Je=Sf();te(xe,Je)}),te(m,E)},no=m=>{var E=ti(),R=on(E);ii(R,19,()=>v(Ur),xe=>xe.id,(xe,ie,Ft)=>{const Gt=Me(()=>v(I)?v(Ft):v(U)*v(y)+v(Ft));var Je=Nf();let Xr;var jt=D(Je),Vt=D(jt);{var yr=_e=>{var ee=Af();we(xt=>{Ar(ee,"src",v(ie).presentation.asset||hs),Ar(ee,"alt",xt)},[()=>M(v(ie))]),te(_e,ee)};Re(Vt,_e=>{var ee;(ee=v(ie).presentation)!=null&&ee.asset&&_e(yr)})}var zr=he(Vt,2),br=D(zr),Er=D(br),Wr=D(Er,!0);k(Er);var Mn=he(Er,2);{var Rn=_e=>{var ee=Hf(),xt=D(ee,!0);k(ee),we(Zr=>ut(xt,Zr),[()=>r()("current")]),te(_e,ee)};Re(Mn,_e=>{v(ie).id===v(_)&&_e(Rn)})}k(br);var qr=he(br,2),se=D(qr,!0);k(qr),k(zr),k(jt);var F=he(jt,2);{var Et=_e=>{var ee=Lf(),xt=D(ee);qi(xt,()=>{var Zr;return(Zr=v(ie).presentation)==null?void 0:Zr.description}),k(ee),te(_e,ee)};Re(F,_e=>{Ka(v(ie),v(Gt))&&_e(Et)})}var xr=he(F,2);xr.__click=()=>jr(v(ie));var fo=D(xr,!0);k(xr),k(Je),we((_e,ee,xt)=>{Xr=si(Je,1,"loyalty-level__card svelte-ml7rkt",null,Xr,{"loyalty-level__card--current":v(ie).id===v(_),"loyalty-level__card--expanded":v(W)===v(ie).id}),ut(Wr,_e),ut(se,ee),ut(fo,xt)},[()=>M(v(ie)),()=>r()("startingLevel",{values:{points:v(ie).firstEntryPoints.toLocaleString()}}),()=>v(W)===v(ie).id?r()("seeLess"):r()("seeMore")]),te(xe,Je)}),te(m,E)};Re(to,m=>{v(mr)?m(ro):m(no,!1)})}k(Cn);var ki=he(Cn,2);{var io=m=>{var E=Pf();we(()=>Kr(E,"offset",v(U)*v(y))),we(()=>Kr(E,"limit",v(y))),we(()=>Kr(E,"total",v(B).length)),we(()=>Kr(E,"locale",l())),si(E,1,"svelte-ml7rkt"),Qi(E,R=>P(h,R),()=>v(h)),dl("PageChange",E,gr),te(m,E)};Re(ki,m=>{!v(mr)&&!v(I)&&m(io)})}var so=he(ki,2);{var ao=m=>{var E=Bf();Qi(E,R=>P(Ce,R),()=>v(Ce)),te(m,E)};Re(so,m=>{v(I)&&v(ve)<v(B).length&&m(ao)})}k(In);var oo=he(In,2);{var lo=m=>{var E=Mf();E.__click=Vr,E.__keydown=Ja;var R=D(E),xe=D(R),ie=D(xe);ie.__click=pe,k(xe);var Ft=he(xe,2),Gt=D(Ft),Je=D(Gt);{var Xr=se=>{var F=Of();we(Et=>{Ar(F,"src",v(Y).presentation.asset||hs),Ar(F,"alt",Et)},[()=>M(v(Y))]),te(se,F)};Re(Je,se=>{var F;(F=v(Y).presentation)!=null&&F.asset&&se(Xr)})}var jt=he(Je,2),Vt=D(jt),yr=D(Vt),zr=D(yr,!0);k(yr);var br=he(yr,2);{var Er=se=>{var F=If(),Et=D(F,!0);k(F),we(xr=>ut(Et,xr),[()=>r()("current")]),te(se,F)};Re(br,se=>{v(Y).id===v(_)&&se(Er)})}k(Vt);var Wr=he(Vt,2),Mn=D(Wr,!0);k(Wr),k(jt),k(Gt);var Rn=he(Gt,2);{var qr=se=>{var F=Cf(),Et=D(F);qi(Et,()=>v(Y).presentation.description),k(F),te(se,F)};Re(Rn,se=>{var F;(F=v(Y).presentation)!=null&&F.description&&se(qr)})}k(Ft),k(R),k(E),we((se,F)=>{ut(zr,se),ut(Mn,F)},[()=>M(v(Y)),()=>r()("startingLevel",{values:{points:v(Y).firstEntryPoints.toLocaleString()}})]),te(m,E)};Re(oo,m=>{v(Y)&&m(lo)})}te(e,$i);var uo=wi(eo);return i(),uo}da(["click","keydown"]);customElements.define("loyalty-level",wa(Qa,{apiEndpoint:{},userSession:{},locale:{},onLevelLoaded:{},onSeeMore:{},limitItem:{},translationUrl:{}},[],[],!1));const kf=Object.freeze(Object.defineProperty({__proto__:null,default:Qa},Symbol.toStringTag,{value:"Module"}));exports.$format=qa;exports.LoyaltyLevel_ce=kf;exports.addNewMessages=mi;exports.append=te;exports.append_styles=ga;exports.child=D;exports.comment=ti;exports.create_custom_element=wa;exports.delegate=da;exports.each=ii;exports.first_child=on;exports.flushSync=Ve;exports.from_html=Ee;exports.get=v;exports.if_block=Re;exports.index=ma;exports.pop=wi;exports.prop=ft;exports.push=xi;exports.reset=k;exports.set=P;exports.setLocale=Ya;exports.set_class=si;exports.set_text=ut;exports.setupI18n=Za;exports.setup_stores=Ea;exports.sibling=he;exports.state=j;exports.store_get=ba;exports.template_effect=we;exports.user_derived=Me;exports.user_effect=Xe;
@@ -1,143 +0,0 @@
1
- import { a as et, p as g, s as at, b as st, u as S, i as B, c as f, d as nt, e as lt, f as x, g as v, h as ot, j as it, k as O, l as rt, m as pt, n as ct, o as y, q as e, r as m, t as M, v as z, w as _t, x as dt, y as G, z as T, A as gt, $ as ft, B as vt, C as yt, D as mt } from "./LoyaltyLevel-BysLrZMx.js";
2
- const ut = {
3
- en: {
4
- prev: "Previous",
5
- next: "Next"
6
- },
7
- tr: {
8
- prev: "Önceki",
9
- next: "Sonraki"
10
- }
11
- }, q = 10, ht = 7, xt = 4;
12
- var bt = x('<span class="loyalty-pagination__ellipsis svelte-lms3sp" aria-hidden="true">...</span>'), wt = x('<button type="button"> </button>'), It = x('<div class="loyalty-pagination__pages svelte-lms3sp"><button class="loyalty-pagination__btn loyalty-pagination__btn--prev svelte-lms3sp" type="button"> </button> <!> <button class="loyalty-pagination__btn loyalty-pagination__btn--next svelte-lms3sp" type="button"> </button></div>'), Pt = x('<div class="loyalty-pagination svelte-lms3sp"><!></div>');
13
- const kt = {
14
- hash: "svelte-lms3sp",
15
- code: `
16
- @layer loyalty-pagination-component {.loyalty-pagination.svelte-lms3sp {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;box-sizing:border-box;width:100%;}
17
-
18
- @media (min-width: 768px) {.loyalty-pagination.svelte-lms3sp {width:auto;margin-left:auto;justify-content:flex-end;padding-right:10px;}.loyalty-pagination__pages.svelte-lms3sp {justify-content:flex-end;}
19
- }.loyalty-pagination__pages.svelte-lms3sp {display:flex;flex-wrap:wrap;align-items:center;gap:8px;justify-content:flex-start;}.loyalty-pagination__ellipsis.svelte-lms3sp {display:inline-flex;align-items:center;justify-content:center;color:var(--text-default, #ffffff);font-size:13px;width:24px;}.loyalty-pagination__btn.svelte-lms3sp {min-width:30px;height:30px;padding:4px 8px;border:none;border-radius:4px;background:var(--bg-overlay-neutral-level-1, rgba(251, 251, 251, 0.05));color:var(--text-subtle, #dfe3e8);font-size:13px;font-weight:400;cursor:pointer;}.loyalty-pagination__btn--active.svelte-lms3sp {background:var(--accent, #ffcc00);color:var(--text-on-color, #261d00);}.loyalty-pagination__btn.svelte-lms3sp:disabled {cursor:default;color:var(--text-muted, rgba(251, 251, 251, 0.15));}.loyalty-pagination__btn--prev.svelte-lms3sp,
20
- .loyalty-pagination__btn--next.svelte-lms3sp {width:95px;}
21
-
22
- @media (max-width: 767px) {.loyalty-pagination__btn--prev.svelte-lms3sp,
23
- .loyalty-pagination__btn--next.svelte-lms3sp {width:90px;}
24
- }.loyalty-pagination__btn--prev.svelte-lms3sp:not(:disabled),
25
- .loyalty-pagination__btn--next.svelte-lms3sp:not(:disabled) {color:var(--text-default, #ffffff);}
26
- }`
27
- };
28
- function Mt(A, o) {
29
- ot(o, !0), et(A, kt);
30
- const E = () => gt(ft, "$_", D), [D, V] = lt(), b = g(o, "offset", 7, 0), n = g(o, "limit", 7, q), w = g(o, "total", 7, 0), c = g(o, "onPageChange", 7, (t) => {
31
- }), u = g(o, "locale", 7, "en");
32
- at({ withLocale: u(), translations: {} }), Object.entries(ut).forEach(([t, a]) => {
33
- st(t, a);
34
- }), S(() => {
35
- it(u() ?? "en");
36
- });
37
- const h = M(() => Math.max(1, Math.ceil(w() / Math.max(1, n())))), i = M(() => n() > 0 ? Math.floor(b() / n()) : 0);
38
- let I = ct(!1);
39
- S(() => {
40
- const t = window.matchMedia("(max-width: 767px)"), a = (s) => {
41
- O(I, s.matches, !0);
42
- };
43
- return O(I, t.matches, !0), t.addEventListener("change", a), () => t.removeEventListener("change", a);
44
- });
45
- const F = (t, a, s) => t <= (s ? xt : ht) ? Array.from({ length: t }, (N, d) => d) : a <= 1 || a >= t - 2 ? [0, 1, "ellipsis", t - 2, t - 1] : [0, "ellipsis", a, "ellipsis", t - 1], R = M(() => F(e(h), e(i), e(I))), U = (t) => c()(t * n()), H = () => c()(Math.max(0, e(i) - 1) * n()), J = () => c()(Math.min(e(h) - 1, e(i) + 1) * n());
46
- var K = {
47
- get offset() {
48
- return b();
49
- },
50
- set offset(t = 0) {
51
- b(t), v();
52
- },
53
- get limit() {
54
- return n();
55
- },
56
- set limit(t = q) {
57
- n(t), v();
58
- },
59
- get total() {
60
- return w();
61
- },
62
- set total(t = 0) {
63
- w(t), v();
64
- },
65
- get onPageChange() {
66
- return c();
67
- },
68
- set onPageChange(t = (a) => {
69
- }) {
70
- c(t), v();
71
- },
72
- get locale() {
73
- return u();
74
- },
75
- set locale(t = "en") {
76
- u(t), v();
77
- }
78
- }, P = Pt(), Q = y(P);
79
- {
80
- var W = (t) => {
81
- var a = It(), s = y(a);
82
- s.__click = H;
83
- var L = y(s, !0);
84
- m(s);
85
- var k = z(s, 2);
86
- _t(k, 17, () => e(R), dt, (d, r) => {
87
- var C = vt(), Y = yt(C);
88
- {
89
- var Z = (p) => {
90
- var l = bt();
91
- f(p, l);
92
- }, $ = (p) => {
93
- var l = wt();
94
- let j;
95
- l.__click = () => U(e(r));
96
- var tt = y(l, !0);
97
- m(l), G(() => {
98
- j = mt(l, 1, "loyalty-pagination__btn svelte-lms3sp", null, j, {
99
- "loyalty-pagination__btn--active": e(r) === e(i)
100
- }), T(tt, e(r) + 1);
101
- }), f(p, l);
102
- };
103
- B(Y, (p) => {
104
- e(r) === "ellipsis" ? p(Z) : p($, !1);
105
- });
106
- }
107
- f(d, C);
108
- });
109
- var _ = z(k, 2);
110
- _.__click = J;
111
- var N = y(_, !0);
112
- m(_), m(a), G(
113
- (d, r) => {
114
- s.disabled = e(i) <= 0, T(L, d), _.disabled = e(i) >= e(h) - 1, T(N, r);
115
- },
116
- [() => E()("prev"), () => E()("next")]
117
- ), f(t, a);
118
- };
119
- B(Q, (t) => {
120
- e(h) > 1 && t(W);
121
- });
122
- }
123
- m(P), f(A, P);
124
- var X = nt(K);
125
- return V(), X;
126
- }
127
- rt(["click"]);
128
- customElements.define("loyalty-pagination", pt(
129
- Mt,
130
- {
131
- offset: {},
132
- limit: {},
133
- total: {},
134
- onPageChange: {},
135
- locale: {}
136
- },
137
- [],
138
- [],
139
- !1
140
- ));
141
- export {
142
- Mt as default
143
- };
@@ -1,144 +0,0 @@
1
- import { p as et, a as at, b as g, s as st, c as nt, u as S, d as lt, e as B, i as O, g as e, f, h as ot, j as it, k as M, l as rt, m as v, n as y, o as pt, t as z, q as x, r as G, v as ct, w as T, x as _t, y as dt, z as gt, $ as ft, A as m, B as vt, C as yt, D as mt } from "./LoyaltyLevel-BLd5gWWr.js";
2
- const ut = {
3
- en: {
4
- prev: "Previous",
5
- next: "Next"
6
- },
7
- tr: {
8
- prev: "Önceki",
9
- next: "Sonraki"
10
- }
11
- }, q = 10, ht = 7, xt = 4;
12
- var bt = x('<span class="loyalty-pagination__ellipsis svelte-lms3sp" aria-hidden="true">...</span>'), wt = x('<button type="button"> </button>'), It = x('<div class="loyalty-pagination__pages svelte-lms3sp"><button class="loyalty-pagination__btn loyalty-pagination__btn--prev svelte-lms3sp" type="button"> </button> <!> <button class="loyalty-pagination__btn loyalty-pagination__btn--next svelte-lms3sp" type="button"> </button></div>'), Pt = x('<div class="loyalty-pagination svelte-lms3sp"><!></div>');
13
- const kt = {
14
- hash: "svelte-lms3sp",
15
- code: `
16
- @layer loyalty-pagination-component {.loyalty-pagination.svelte-lms3sp {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;box-sizing:border-box;width:100%;}
17
-
18
- @media (min-width: 768px) {.loyalty-pagination.svelte-lms3sp {width:auto;margin-left:auto;justify-content:flex-end;padding-right:10px;}.loyalty-pagination__pages.svelte-lms3sp {justify-content:flex-end;}
19
- }.loyalty-pagination__pages.svelte-lms3sp {display:flex;flex-wrap:wrap;align-items:center;gap:8px;justify-content:flex-start;}.loyalty-pagination__ellipsis.svelte-lms3sp {display:inline-flex;align-items:center;justify-content:center;color:var(--text-default, #ffffff);font-size:13px;width:24px;}.loyalty-pagination__btn.svelte-lms3sp {min-width:30px;height:30px;padding:4px 8px;border:none;border-radius:4px;background:var(--bg-overlay-neutral-level-1, rgba(251, 251, 251, 0.05));color:var(--text-subtle, #dfe3e8);font-size:13px;font-weight:400;cursor:pointer;}.loyalty-pagination__btn--active.svelte-lms3sp {background:var(--accent, #ffcc00);color:var(--text-on-color, #261d00);}.loyalty-pagination__btn.svelte-lms3sp:disabled {cursor:default;color:var(--text-muted, rgba(251, 251, 251, 0.15));}.loyalty-pagination__btn--prev.svelte-lms3sp,
20
- .loyalty-pagination__btn--next.svelte-lms3sp {width:95px;}
21
-
22
- @media (max-width: 767px) {.loyalty-pagination__btn--prev.svelte-lms3sp,
23
- .loyalty-pagination__btn--next.svelte-lms3sp {width:90px;}
24
- }.loyalty-pagination__btn--prev.svelte-lms3sp:not(:disabled),
25
- .loyalty-pagination__btn--next.svelte-lms3sp:not(:disabled) {color:var(--text-default, #ffffff);}
26
- }`
27
- };
28
- function Mt(A, o) {
29
- et(o, !0), at(A, kt);
30
- const E = () => gt(ft, "$_", D), [D, V] = it(), b = g(o, "offset", 7, 0), n = g(o, "limit", 7, q), w = g(o, "total", 7, 0), c = g(o, "onPageChange", 7, (t) => {
31
- }), u = g(o, "locale", 7, "en");
32
- st({ withLocale: u(), translations: {} }), Object.entries(ut).forEach(([t, a]) => {
33
- nt(t, a);
34
- }), S(() => {
35
- var t;
36
- lt((t = u()) != null ? t : "en");
37
- });
38
- const h = M(() => Math.max(1, Math.ceil(w() / Math.max(1, n())))), i = M(() => n() > 0 ? Math.floor(b() / n()) : 0);
39
- let I = rt(!1);
40
- S(() => {
41
- const t = window.matchMedia("(max-width: 767px)"), a = (s) => {
42
- B(I, s.matches, !0);
43
- };
44
- return B(I, t.matches, !0), t.addEventListener("change", a), () => t.removeEventListener("change", a);
45
- });
46
- const F = (t, a, s) => t <= (s ? xt : ht) ? Array.from({ length: t }, (N, d) => d) : a <= 1 || a >= t - 2 ? [0, 1, "ellipsis", t - 2, t - 1] : [0, "ellipsis", a, "ellipsis", t - 1], R = M(() => F(e(h), e(i), e(I))), U = (t) => c()(t * n()), H = () => c()(Math.max(0, e(i) - 1) * n()), J = () => c()(Math.min(e(h) - 1, e(i) + 1) * n());
47
- var K = {
48
- get offset() {
49
- return b();
50
- },
51
- set offset(t = 0) {
52
- b(t), v();
53
- },
54
- get limit() {
55
- return n();
56
- },
57
- set limit(t = q) {
58
- n(t), v();
59
- },
60
- get total() {
61
- return w();
62
- },
63
- set total(t = 0) {
64
- w(t), v();
65
- },
66
- get onPageChange() {
67
- return c();
68
- },
69
- set onPageChange(t = (a) => {
70
- }) {
71
- c(t), v();
72
- },
73
- get locale() {
74
- return u();
75
- },
76
- set locale(t = "en") {
77
- u(t), v();
78
- }
79
- }, P = Pt(), Q = y(P);
80
- {
81
- var W = (t) => {
82
- var a = It(), s = y(a);
83
- s.__click = H;
84
- var L = y(s, !0);
85
- m(s);
86
- var k = G(s, 2);
87
- pt(k, 17, () => e(R), ct, (d, r) => {
88
- var C = vt(), Y = yt(C);
89
- {
90
- var Z = (p) => {
91
- var l = bt();
92
- f(p, l);
93
- }, $ = (p) => {
94
- var l = wt();
95
- let j;
96
- l.__click = () => U(e(r));
97
- var tt = y(l, !0);
98
- m(l), z(() => {
99
- j = mt(l, 1, "loyalty-pagination__btn svelte-lms3sp", null, j, {
100
- "loyalty-pagination__btn--active": e(r) === e(i)
101
- }), T(tt, e(r) + 1);
102
- }), f(p, l);
103
- };
104
- O(Y, (p) => {
105
- e(r) === "ellipsis" ? p(Z) : p($, !1);
106
- });
107
- }
108
- f(d, C);
109
- });
110
- var _ = G(k, 2);
111
- _.__click = J;
112
- var N = y(_, !0);
113
- m(_), m(a), z(
114
- (d, r) => {
115
- s.disabled = e(i) <= 0, T(L, d), _.disabled = e(i) >= e(h) - 1, T(N, r);
116
- },
117
- [() => E()("prev"), () => E()("next")]
118
- ), f(t, a);
119
- };
120
- O(Q, (t) => {
121
- e(h) > 1 && t(W);
122
- });
123
- }
124
- m(P), f(A, P);
125
- var X = ot(K);
126
- return V(), X;
127
- }
128
- _t(["click"]);
129
- customElements.define("loyalty-pagination", dt(
130
- Mt,
131
- {
132
- offset: {},
133
- limit: {},
134
- total: {},
135
- onPageChange: {},
136
- locale: {}
137
- },
138
- [],
139
- [],
140
- !1
141
- ));
142
- export {
143
- Mt as default
144
- };