@everymatrix/loyalty-shop 0.1.8 → 0.2.0

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,31 +0,0 @@
1
- "use strict";var Yo=Object.defineProperty,Qo=Object.defineProperties;var Jo=Object.getOwnPropertyDescriptors;var Oi=Object.getOwnPropertySymbols;var Ko=Object.prototype.hasOwnProperty,ea=Object.prototype.propertyIsEnumerable;var Bi=e=>{throw TypeError(e)};var Sn=(e,t,r)=>t in e?Yo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Gr=(e,t)=>{for(var r in t||(t={}))Ko.call(t,r)&&Sn(e,r,t[r]);if(Oi)for(var r of Oi(t))ea.call(t,r)&&Sn(e,r,t[r]);return e},kr=(e,t)=>Qo(e,Jo(t));var U=(e,t,r)=>Sn(e,typeof t!="symbol"?t+"":t,r),An=(e,t,r)=>t.has(e)||Bi("Cannot "+r);var h=(e,t,r)=>(An(e,t,"read from private field"),r?r.call(e):t.get(e)),w=(e,t,r)=>t.has(e)?Bi("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),E=(e,t,r,n)=>(An(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),k=(e,t,r)=>(An(e,t,"access private method"),r);var vr=(e,t,r)=>new Promise((n,i)=>{var s=l=>{try{a(r.next(l))}catch(u){i(u)}},o=l=>{try{a(r.throw(l))}catch(u){i(u)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(s,o);a((r=r.apply(e,t)).next())});const ta="5";var ts,rs,ns;typeof window!="undefined"&&((ns=(rs=(ts=window.__svelte)!=null?ts:window.__svelte={}).v)!=null?ns:rs.v=new Set).add(ta);const ra=1,na=2,is=4,ia=8,sa=16,oa=1,aa=2,ss="[",hn="[!",li="]",Zt={},z=Symbol(),la="http://www.w3.org/1999/xhtml",Cn=!1;var os=Array.isArray,ua=Array.prototype.indexOf,cn=Array.from,Jr=Object.keys,wr=Object.defineProperty,Gt=Object.getOwnPropertyDescriptor,fa=Object.getOwnPropertyDescriptors,ha=Object.prototype,ca=Array.prototype,as=Object.getPrototypeOf,Ii=Object.isExtensible;const st=()=>{};function ls(e){for(var t=0;t<e.length;t++)e[t]()}function us(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const q=2,Kr=4,Ir=8,fs=1<<24,We=16,qe=32,ft=64,ui=128,ye=512,J=1024,re=2048,Ze=4096,he=8192,Xe=16384,dn=32768,Yt=65536,Pi=1<<17,hs=1<<18,Bt=1<<19,cs=1<<20,Ve=1<<25,Ht=32768,Rn=1<<21,fi=1<<22,ot=1<<23,zr=Symbol("$state"),da=Symbol("legacy props"),pa=Symbol(""),Ft=new class extends Error{constructor(){super(...arguments);U(this,"name","StaleReactionError");U(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},hi=3,ir=8;function va(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function ma(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function _a(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function ga(e){throw new Error("https://svelte.dev/e/effect_orphan")}function ya(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function ba(){throw new Error("https://svelte.dev/e/hydration_failed")}function Ea(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function xa(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function wa(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Ta(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function pn(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Sa(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let O=!1;function He(e){O=e}let H;function oe(e){if(e===null)throw pn(),Zt;return H=e}function vn(){return oe(De(H))}function Ie(e){if(O){if(De(H)!==null)throw pn(),Zt;H=e}}function Aa(e=1){if(O){for(var t=e,r=H;t--;)r=De(r);H=r}}function en(e=!0){for(var t=0,r=H;;){if(r.nodeType===ir){var n=r.data;if(n===li){if(t===0)return r;t-=1}else(n===ss||n===hn)&&(t+=1)}var i=De(r);e&&r.remove(),r=i}}function ds(e){if(!e||e.nodeType!==ir)throw pn(),Zt;return e.data}function ps(e){return e===this.v}function vs(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function ms(e){return!vs(e,this.v)}let Ha=!1,Ee=null;function Qt(e){Ee=e}function ci(e,t=!1,r){Ee={p:Ee,i:!1,c:null,e:null,s:e,x:null,l:null}}function di(e){var t=Ee,r=t.e;if(r!==null){t.e=null;for(var n of r)Us(n)}return e!==void 0&&(t.x=e),t.i=!0,Ee=t.p,e!=null?e:{}}function _s(){return!0}let vt=[];function gs(){var e=vt;vt=[],ls(e)}function sr(e){if(vt.length===0&&!Er){var t=vt;queueMicrotask(()=>{t===vt&&gs()})}vt.push(e)}function Na(){for(;vt.length>0;)gs()}function ys(e){var t=N;if(t===null)return x.f|=ot,e;if(t.f&dn)Jt(e,t);else{if(!(t.f&ui))throw e;t.b.error(e)}}function Jt(e,t){for(;t!==null;){if(t.f&ui)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const Oa=-7169;function V(e,t){e.f=e.f&Oa|t}function pi(e){e.f&ye||e.deps===null?V(e,J):V(e,Ze)}function bs(e){if(e!==null)for(const t of e)!(t.f&q)||!(t.f&Ht)||(t.f^=Ht,bs(t.deps))}function Es(e,t,r){e.f&re?t.add(e):e.f&Ze&&r.add(e),bs(e.deps),V(e,J)}const jr=new Set;let B=null,W=null,_e=[],mn=null,Ln=!1,Er=!1;var jt,Vt,gt,yt,Hr,Xt,zt,we,Mn,$n,xs,ws;const ln=class ln{constructor(){w(this,we);U(this,"committed",!1);U(this,"current",new Map);U(this,"previous",new Map);w(this,jt,new Set);w(this,Vt,new Set);w(this,gt,0);w(this,yt,0);w(this,Hr,null);w(this,Xt,new Set);w(this,zt,new Set);U(this,"skipped_effects",new Set);U(this,"is_fork",!1)}is_deferred(){return this.is_fork||h(this,yt)>0}process(t){var i;_e=[],this.apply();var r=[],n=[];for(const s of t)k(this,we,Mn).call(this,s,r,n);this.is_fork||k(this,we,xs).call(this),this.is_deferred()?(k(this,we,$n).call(this,n),k(this,we,$n).call(this,r)):(B=null,Ci(n),Ci(r),(i=h(this,Hr))==null||i.resolve()),W=null}capture(t,r){r!==z&&!this.previous.has(t)&&this.previous.set(t,r),t.f&ot||(this.current.set(t,t.v),W==null||W.set(t,t.v))}activate(){B=this,this.apply()}deactivate(){B===this&&(B=null,W=null)}flush(){if(this.activate(),_e.length>0){if(Ts(),B!==null&&B!==this)return}else h(this,gt)===0&&this.process([]);this.deactivate()}discard(){for(const t of h(this,Vt))t(this);h(this,Vt).clear()}increment(t){E(this,gt,h(this,gt)+1),t&&E(this,yt,h(this,yt)+1)}decrement(t){E(this,gt,h(this,gt)-1),t&&E(this,yt,h(this,yt)-1),this.revive()}revive(){for(const t of h(this,Xt))h(this,zt).delete(t),V(t,re),ze(t);for(const t of h(this,zt))V(t,Ze),ze(t);this.flush()}oncommit(t){h(this,jt).add(t)}ondiscard(t){h(this,Vt).add(t)}settled(){var t;return((t=h(this,Hr))!=null?t:E(this,Hr,us())).promise}static ensure(){if(B===null){const t=B=new ln;jr.add(B),Er||ln.enqueue(()=>{B===t&&t.flush()})}return B}static enqueue(t){sr(t)}apply(){}};jt=new WeakMap,Vt=new WeakMap,gt=new WeakMap,yt=new WeakMap,Hr=new WeakMap,Xt=new WeakMap,zt=new WeakMap,we=new WeakSet,Mn=function(t,r,n){t.f^=J;for(var i=t.first,s=null;i!==null;){var o=i.f,a=(o&(qe|ft))!==0,l=a&&(o&J)!==0,u=l||(o&he)!==0||this.skipped_effects.has(i);if(!u&&i.fn!==null){a?i.f^=J:s!==null&&o&(Kr|Ir|fs)?s.b.defer_effect(i):o&Kr?r.push(i):Pr(i)&&(o&We&&h(this,Xt).add(i),Tr(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}},$n=function(t){for(var r=0;r<t.length;r+=1)Es(t[r],h(this,Xt),h(this,zt))},xs=function(){if(h(this,yt)===0){for(const t of h(this,jt))t();h(this,jt).clear()}h(this,gt)===0&&k(this,we,ws).call(this)},ws=function(){var i;if(jr.size>1){this.previous.clear();var t=W,r=!0;for(const s of jr){if(s===this){r=!1;continue}const o=[];for(const[l,u]of this.current){if(s.current.has(l))if(r&&u!==s.current.get(l))s.current.set(l,u);else continue;o.push(l)}if(o.length===0)continue;const a=[...s.current.keys()].filter(l=>!this.current.has(l));if(a.length>0){var n=_e;_e=[];const l=new Set,u=new Map;for(const f of o)Ss(f,a,l,u);if(_e.length>0){B=s,s.apply();for(const f of _e)k(i=s,we,Mn).call(i,f,[],[]);s.deactivate()}_e=n}}B=null,W=t}this.committed=!0,jr.delete(this)};let $e=ln;function pt(e){var t=Er;Er=!0;try{for(var r;;){if(Na(),_e.length===0&&(B==null||B.flush(),_e.length===0))return mn=null,r;Ts()}}finally{Er=t}}function Ts(){var e=St;Ln=!0;var t=null;try{var r=0;for(rn(!0);_e.length>0;){var n=$e.ensure();if(r++>1e3){var i,s;Ba()}n.process(_e),at.clear()}}finally{Ln=!1,rn(e),mn=null}}function Ba(){try{ya()}catch(e){Jt(e,mn)}}let Se=null;function Ci(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if(!(n.f&(Xe|he))&&Pr(n)&&(Se=new Set,Tr(n),n.deps===null&&n.first===null&&n.nodes===null&&(n.teardown===null&&n.ac===null?js(n):n.fn=null),(Se==null?void 0:Se.size)>0)){at.clear();for(const i of Se){if(i.f&(Xe|he))continue;const s=[i];let o=i.parent;for(;o!==null;)Se.has(o)&&(Se.delete(o),s.push(o)),o=o.parent;for(let a=s.length-1;a>=0;a--){const l=s[a];l.f&(Xe|he)||Tr(l)}}Se.clear()}}Se=null}}function Ss(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;s&q?Ss(i,t,r,n):s&(fi|We)&&!(s&re)&&As(i,t,n)&&(V(i,re),ze(i))}}function As(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const i of e.deps){if(t.includes(i))return!0;if(i.f&q&&As(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function ze(e){for(var t=mn=e;t.parent!==null;){t=t.parent;var r=t.f;if(Ln&&t===N&&r&We&&!(r&hs))return;if(r&(ft|qe)){if(!(r&J))return;t.f^=J}}_e.push(t)}function Ia(e){let t=0,r=Nt(0),n;return()=>{gi()&&(m(r),bi(()=>(t===0&&(n=wi(()=>e(()=>xr(r)))),t+=1,()=>{sr(()=>{t-=1,t===0&&(n==null||n(),n=void 0,xr(r))})})))}}var Pa=Yt|Bt|ui;function Ca(e,t,r){new Ra(e,t,r)}var ue,Nr,Pe,bt,Ce,ve,ie,Re,Ge,rt,Et,ke,xt,Wt,qt,nt,un,F,Hs,Ns,Dn,Wr,qr,Un;class Ra{constructor(t,r,n){w(this,F);U(this,"parent");U(this,"is_pending",!1);w(this,ue);w(this,Nr,O?H:null);w(this,Pe);w(this,bt);w(this,Ce);w(this,ve,null);w(this,ie,null);w(this,Re,null);w(this,Ge,null);w(this,rt,null);w(this,Et,0);w(this,ke,0);w(this,xt,!1);w(this,Wt,new Set);w(this,qt,new Set);w(this,nt,null);w(this,un,Ia(()=>(E(this,nt,Nt(h(this,Et))),()=>{E(this,nt,null)})));E(this,ue,t),E(this,Pe,r),E(this,bt,n),this.parent=N.b,this.is_pending=!!h(this,Pe).pending,E(this,Ce,Ei(()=>{if(N.b=this,O){const s=h(this,Nr);vn(),s.nodeType===ir&&s.data===hn?k(this,F,Ns).call(this):(k(this,F,Hs).call(this),h(this,ke)===0&&(this.is_pending=!1))}else{var i=k(this,F,Dn).call(this);try{E(this,ve,ge(()=>n(i)))}catch(s){this.error(s)}h(this,ke)>0?k(this,F,qr).call(this):this.is_pending=!1}return()=>{var s;(s=h(this,rt))==null||s.remove()}},Pa)),O&&E(this,ue,H)}defer_effect(t){Es(t,h(this,Wt),h(this,qt))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!h(this,Pe).pending}update_pending_count(t){k(this,F,Un).call(this,t),E(this,Et,h(this,Et)+t),h(this,nt)&&Kt(h(this,nt),h(this,Et))}get_effect_pending(){return h(this,un).call(this),m(h(this,nt))}error(t){var r=h(this,Pe).onerror;let n=h(this,Pe).failed;if(h(this,xt)||!r&&!n)throw t;h(this,ve)&&(ee(h(this,ve)),E(this,ve,null)),h(this,ie)&&(ee(h(this,ie)),E(this,ie,null)),h(this,Re)&&(ee(h(this,Re)),E(this,Re,null)),O&&(oe(h(this,Nr)),Aa(),oe(en()));var i=!1,s=!1;const o=()=>{if(i){Sa();return}i=!0,s&&Ta(),$e.ensure(),E(this,Et,0),h(this,Re)!==null&&Tt(h(this,Re),()=>{E(this,Re,null)}),this.is_pending=this.has_pending_snippet(),E(this,ve,k(this,F,Wr).call(this,()=>(E(this,xt,!1),ge(()=>h(this,bt).call(this,h(this,ue)))))),h(this,ke)>0?k(this,F,qr).call(this):this.is_pending=!1};var a=x;try{Q(null),s=!0,r==null||r(t,o),s=!1}catch(l){Jt(l,h(this,Ce)&&h(this,Ce).parent)}finally{Q(a)}n&&sr(()=>{E(this,Re,k(this,F,Wr).call(this,()=>{$e.ensure(),E(this,xt,!0);try{return ge(()=>{n(h(this,ue),()=>t,()=>o)})}catch(l){return Jt(l,h(this,Ce).parent),null}finally{E(this,xt,!1)}}))})}}ue=new WeakMap,Nr=new WeakMap,Pe=new WeakMap,bt=new WeakMap,Ce=new WeakMap,ve=new WeakMap,ie=new WeakMap,Re=new WeakMap,Ge=new WeakMap,rt=new WeakMap,Et=new WeakMap,ke=new WeakMap,xt=new WeakMap,Wt=new WeakMap,qt=new WeakMap,nt=new WeakMap,un=new WeakMap,F=new WeakSet,Hs=function(){try{E(this,ve,ge(()=>h(this,bt).call(this,h(this,ue))))}catch(t){this.error(t)}},Ns=function(){const t=h(this,Pe).pending;t&&(E(this,ie,ge(()=>t(h(this,ue)))),$e.enqueue(()=>{var r=k(this,F,Dn).call(this);E(this,ve,k(this,F,Wr).call(this,()=>($e.ensure(),ge(()=>h(this,bt).call(this,r))))),h(this,ke)>0?k(this,F,qr).call(this):(Tt(h(this,ie),()=>{E(this,ie,null)}),this.is_pending=!1)}))},Dn=function(){var t=h(this,ue);return this.is_pending&&(E(this,rt,be()),h(this,ue).before(h(this,rt)),t=h(this,rt)),t},Wr=function(t){var r=N,n=x,i=Ee;xe(h(this,Ce)),Q(h(this,Ce)),Qt(h(this,Ce).ctx);try{return t()}catch(s){return ys(s),null}finally{xe(r),Q(n),Qt(i)}},qr=function(){const t=h(this,Pe).pending;h(this,ve)!==null&&(E(this,Ge,document.createDocumentFragment()),h(this,Ge).append(h(this,rt)),zs(h(this,ve),h(this,Ge))),h(this,ie)===null&&E(this,ie,ge(()=>t(h(this,ue))))},Un=function(t){var r;if(!this.has_pending_snippet()){this.parent&&k(r=this.parent,F,Un).call(r,t);return}if(E(this,ke,h(this,ke)+t),h(this,ke)===0){this.is_pending=!1;for(const n of h(this,Wt))V(n,re),ze(n);for(const n of h(this,qt))V(n,Ze),ze(n);h(this,Wt).clear(),h(this,qt).clear(),h(this,ie)&&Tt(h(this,ie),()=>{E(this,ie,null)}),h(this,Ge)&&(h(this,ue).before(h(this,Ge)),E(this,Ge,null))}};function La(e,t,r,n){const i=_n;if(r.length===0&&e.length===0){n(t.map(i));return}var s=B,o=N,a=Ma();function l(){Promise.all(r.map(u=>$a(u))).then(u=>{a();try{n([...t.map(i),...u])}catch(f){o.f&Xe||Jt(f,o)}s==null||s.deactivate(),tn()}).catch(u=>{Jt(u,o)})}e.length>0?Promise.all(e).then(()=>{a();try{return l()}finally{s==null||s.deactivate(),tn()}}):l()}function Ma(){var e=N,t=x,r=Ee,n=B;return function(s=!0){xe(e),Q(t),Qt(r),s&&(n==null||n.activate())}}function tn(){xe(null),Q(null),Qt(null)}function _n(e){var t=q|re,r=x!==null&&x.f&q?x:null;return N!==null&&(N.f|=Bt),{ctx:Ee,deps:null,effects:null,equals:ps,f:t,fn:e,reactions:null,rv:0,v:z,wv:0,parent:r!=null?r:N,ac:null}}function $a(e,t,r){let n=N;n===null&&va();var i=n.b,s=void 0,o=Nt(z),a=!x,l=new Map;return Xa(()=>{var p;var u=us();s=u.promise;try{Promise.resolve(e()).then(u.resolve,u.reject).then(()=>{f===B&&f.committed&&f.deactivate(),tn()})}catch(_){u.reject(_),tn()}var f=B;if(a){var d=i.is_rendered();i.update_pending_count(1),f.increment(d),(p=l.get(f))==null||p.reject(Ft),l.delete(f),l.set(f,u)}const c=(_,b=void 0)=>{if(f.activate(),b)b!==Ft&&(o.f|=ot,Kt(o,b));else{o.f&ot&&(o.f^=ot),Kt(o,_);for(const[v,y]of l){if(l.delete(v),v===f)break;y.reject(Ft)}}a&&(i.update_pending_count(-1),f.decrement(d))};u.promise.then(c,_=>c(null,_||"unknown"))}),yi(()=>{for(const u of l.values())u.reject(Ft)}),new Promise(u=>{function f(d){function c(){d===s?u(o):f(s)}d.then(c,c)}f(s)})}function Fn(e){const t=_n(e);return Ws(t),t}function Da(e){const t=_n(e);return t.equals=ms,t}function Os(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)ee(t[r])}}function Ua(e){for(var t=e.parent;t!==null;){if(!(t.f&q))return t.f&Xe?null:t;t=t.parent}return null}function vi(e){var t,r=N;xe(Ua(e));try{e.f&=~Ht,Os(e),t=Qs(e)}finally{xe(r)}return t}function Bs(e){var t=vi(e);if(!e.equals(t)&&(e.wv=Zs(),(!(B!=null&&B.is_fork)||e.deps===null)&&(e.v=t,e.deps===null))){V(e,J);return}lt||(W!==null?(gi()||B!=null&&B.is_fork)&&W.set(e,t):pi(e))}let Gn=new Set;const at=new Map;let Is=!1;function Nt(e,t){var r={f:0,v:e,reactions:null,equals:ps,rv:0,wv:0};return r}function j(e,t){const r=Nt(e);return Ws(r),r}function mi(e,t=!1,r=!0){const n=Nt(e);return t||(n.equals=ms),n}function I(e,t,r=!1){x!==null&&(!Ne||x.f&Pi)&&_s()&&x.f&(q|We|fi|Pi)&&!(te!=null&&te.includes(e))&&wa();let n=r?mt(t):t;return Kt(e,n)}function Kt(e,t){if(!e.equals(t)){var r=e.v;lt?at.set(e,t):at.set(e,r),e.v=t;var n=$e.ensure();if(n.capture(e,r),e.f&q){const i=e;e.f&re&&vi(i),pi(i)}e.wv=Zs(),Ps(e,re),N!==null&&N.f&J&&!(N.f&(qe|ft))&&(pe===null?qa([e]):pe.push(e)),!n.is_fork&&Gn.size>0&&!Is&&Fa()}return t}function Fa(){Is=!1;var e=St;rn(!0);const t=Array.from(Gn);try{for(const r of t)r.f&J&&V(r,Ze),Pr(r)&&Tr(r)}finally{rn(e)}Gn.clear()}function xr(e){I(e,e.v+1)}function Ps(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i],o=s.f,a=(o&re)===0;if(a&&V(s,t),o&q){var l=s;W==null||W.delete(l),o&Ht||(o&ye&&(s.f|=Ht),Ps(l,Ze))}else a&&(o&We&&Se!==null&&Se.add(s),ze(s))}}function mt(e){if(typeof e!="object"||e===null||zr in e)return e;const t=as(e);if(t!==ha&&t!==ca)return e;var r=new Map,n=os(e),i=j(0),s=At,o=a=>{if(At===s)return a();var l=x,u=At;Q(null),Mi(s);var f=a();return Q(l),Mi(u),f};return n&&r.set("length",j(e.length)),new Proxy(e,{defineProperty(a,l,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Ea();var f=r.get(l);return f===void 0?f=o(()=>{var d=j(u.value);return r.set(l,d),d}):I(f,u.value,!0),!0},deleteProperty(a,l){var u=r.get(l);if(u===void 0){if(l in a){const f=o(()=>j(z));r.set(l,f),xr(i)}}else I(u,z),xr(i);return!0},get(a,l,u){var p;if(l===zr)return e;var f=r.get(l),d=l in a;if(f===void 0&&(!d||(p=Gt(a,l))!=null&&p.writable)&&(f=o(()=>{var _=mt(d?a[l]:z),b=j(_);return b}),r.set(l,f)),f!==void 0){var c=m(f);return c===z?void 0:c}return Reflect.get(a,l,u)},getOwnPropertyDescriptor(a,l){var u=Reflect.getOwnPropertyDescriptor(a,l);if(u&&"value"in u){var f=r.get(l);f&&(u.value=m(f))}else if(u===void 0){var d=r.get(l),c=d==null?void 0:d.v;if(d!==void 0&&c!==z)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return u},has(a,l){var c;if(l===zr)return!0;var u=r.get(l),f=u!==void 0&&u.v!==z||Reflect.has(a,l);if(u!==void 0||N!==null&&(!f||(c=Gt(a,l))!=null&&c.writable)){u===void 0&&(u=o(()=>{var p=f?mt(a[l]):z,_=j(p);return _}),r.set(l,u));var d=m(u);if(d===z)return!1}return f},set(a,l,u,f){var C;var d=r.get(l),c=l in a;if(n&&l==="length")for(var p=u;p<d.v;p+=1){var _=r.get(p+"");_!==void 0?I(_,z):p in a&&(_=o(()=>j(z)),r.set(p+"",_))}if(d===void 0)(!c||(C=Gt(a,l))!=null&&C.writable)&&(d=o(()=>j(void 0)),I(d,mt(u)),r.set(l,d));else{c=d.v!==z;var b=o(()=>mt(u));I(d,b)}var v=Reflect.getOwnPropertyDescriptor(a,l);if(v!=null&&v.set&&v.set.call(f,u),!c){if(n&&typeof l=="string"){var y=r.get("length"),P=Number(l);Number.isInteger(P)&&P>=y.v&&I(y,P+1)}xr(i)}return!0},ownKeys(a){m(i);var l=Reflect.ownKeys(a).filter(d=>{var c=r.get(d);return c===void 0||c.v!==z});for(var[u,f]of r)f.v!==z&&!(u in a)&&l.push(u);return l},setPrototypeOf(){xa()}})}var Ri,Cs,Rs,Ls;function kn(){if(Ri===void 0){Ri=window,Cs=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Rs=Gt(t,"firstChild").get,Ls=Gt(t,"nextSibling").get,Ii(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Ii(r)&&(r.__t=void 0)}}function be(e=""){return document.createTextNode(e)}function Ot(e){return Rs.call(e)}function De(e){return Ls.call(e)}function et(e,t){if(!O)return Ot(e);var r=Ot(H);if(r===null)r=H.appendChild(be());else if(t&&r.nodeType!==hi){var n=be();return r==null||r.before(n),oe(n),n}return oe(r),r}function jn(e,t=!1){if(!O){var r=Ot(e);return r instanceof Comment&&r.data===""?De(r):r}if(t&&(H==null?void 0:H.nodeType)!==hi){var n=be();return H==null||H.before(n),oe(n),n}return H}function $t(e,t=1,r=!1){let n=O?H:e;for(var i;t--;)i=n,n=De(n);if(!O)return n;if(r&&(n==null?void 0:n.nodeType)!==hi){var s=be();return n===null?i==null||i.after(s):n.before(s),oe(s),s}return oe(n),n}function Ms(e){e.textContent=""}function $s(){return!1}function _i(e){var t=x,r=N;Q(null),xe(null);try{return e()}finally{Q(t),xe(r)}}function Ds(e){N===null&&(x===null&&ga(),_a()),lt&&ma()}function Ga(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function Oe(e,t,r){var a;var n=N;n!==null&&n.f&he&&(e|=he);var i={ctx:Ee,deps:null,nodes:null,f:e|re|ye,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{Tr(i),i.f|=dn}catch(l){throw ee(i),l}else t!==null&&ze(i);var s=i;if(r&&s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&!(s.f&Bt)&&(s=s.first,e&We&&e&Yt&&s!==null&&(s.f|=Yt)),s!==null&&(s.parent=n,n!==null&&Ga(s,n),x!==null&&x.f&q&&!(e&ft))){var o=x;((a=o.effects)!=null?a:o.effects=[]).push(s)}return i}function gi(){return x!==null&&!Ne}function yi(e){const t=Oe(Ir,null,!1);return V(t,J),t.teardown=e,t}function dt(e){var i;Ds();var t=N.f,r=!x&&(t&qe)!==0&&(t&dn)===0;if(r){var n=Ee;((i=n.e)!=null?i:n.e=[]).push(e)}else return Us(e)}function Us(e){return Oe(Kr|cs,e,!1)}function ka(e){return Ds(),Oe(Ir|cs,e,!0)}function ja(e){$e.ensure();const t=Oe(ft|Bt,e,!0);return()=>{ee(t)}}function Va(e){$e.ensure();const t=Oe(ft|Bt,e,!0);return(r={})=>new Promise(n=>{r.outro?Tt(t,()=>{ee(t),n(void 0)}):(ee(t),n(void 0))})}function Fs(e){return Oe(Kr,e,!1)}function Xa(e){return Oe(fi|Bt,e,!0)}function bi(e,t=0){return Oe(Ir|t,e,!0)}function tt(e,t=[],r=[],n=[]){La(n,t,r,i=>{Oe(Ir,()=>e(...i.map(m)),!0)})}function Ei(e,t=0){var r=Oe(We|t,e,!0);return r}function ge(e){return Oe(qe|Bt,e,!0)}function Gs(e){var t=e.teardown;if(t!==null){const r=lt,n=x;Li(!0),Q(null);try{t.call(null)}finally{Li(r),Q(n)}}}function ks(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&_i(()=>{i.abort(Ft)});var n=r.next;r.f&ft?r.parent=null:ee(r,t),r=n}}function za(e){for(var t=e.first;t!==null;){var r=t.next;t.f&qe||ee(t),t=r}}function ee(e,t=!0){var r=!1;(t||e.f&hs)&&e.nodes!==null&&e.nodes.end!==null&&(Wa(e.nodes.start,e.nodes.end),r=!0),ks(e,t&&!r),nn(e,0),V(e,Xe);var n=e.nodes&&e.nodes.t;if(n!==null)for(const s of n)s.stop();Gs(e);var i=e.parent;i!==null&&i.first!==null&&js(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Wa(e,t){for(;e!==null;){var r=e===t?null:De(e);e.remove(),e=r}}function js(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 Tt(e,t,r=!0){var n=[];Vs(e,n,!0);var i=()=>{r&&ee(e),t&&t()},s=n.length;if(s>0){var o=()=>--s||i();for(var a of n)a.out(o)}else i()}function Vs(e,t,r){if(!(e.f&he)){e.f^=he;var n=e.nodes&&e.nodes.t;if(n!==null)for(const a of n)(a.is_global||r)&&t.push(a);for(var i=e.first;i!==null;){var s=i.next,o=(i.f&Yt)!==0||(i.f&qe)!==0&&(e.f&We)!==0;Vs(i,t,o?r:!1),i=s}}}function xi(e){Xs(e,!0)}function Xs(e,t){if(e.f&he){e.f^=he,e.f&J||(V(e,re),ze(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&Yt)!==0||(r.f&qe)!==0;Xs(r,i?t:!1),r=n}var s=e.nodes&&e.nodes.t;if(s!==null)for(const o of s)(o.is_global||t)&&o.in()}}function zs(e,t){if(e.nodes)for(var r=e.nodes.start,n=e.nodes.end;r!==null;){var i=r===n?null:De(r);t.append(r),r=i}}let St=!1;function rn(e){St=e}let lt=!1;function Li(e){lt=e}let x=null,Ne=!1;function Q(e){x=e}let N=null;function xe(e){N=e}let te=null;function Ws(e){x!==null&&(te===null?te=[e]:te.push(e))}let se=null,le=0,pe=null;function qa(e){pe=e}let qs=1,_t=0,At=_t;function Mi(e){At=e}function Zs(){return++qs}function Pr(e){var t=e.f;if(t&re)return!0;if(t&q&&(e.f&=~Ht),t&Ze){for(var r=e.deps,n=r.length,i=0;i<n;i++){var s=r[i];if(Pr(s)&&Bs(s),s.wv>e.wv)return!0}t&ye&&W===null&&V(e,J)}return!1}function Ys(e,t,r=!0){var n=e.reactions;if(n!==null&&!(te!=null&&te.includes(e)))for(var i=0;i<n.length;i++){var s=n[i];s.f&q?Ys(s,t,!1):t===s&&(r?V(s,re):s.f&J&&V(s,Ze),ze(s))}}function Qs(e){var _,b;var t=se,r=le,n=pe,i=x,s=te,o=Ee,a=Ne,l=At,u=e.f;se=null,le=0,pe=null,x=u&(qe|ft)?null:e,te=null,Qt(e.ctx),Ne=!1,At=++_t,e.ac!==null&&(_i(()=>{e.ac.abort(Ft)}),e.ac=null);try{e.f|=Rn;var f=e.fn,d=f(),c=e.deps;if(se!==null){var p;if(nn(e,le),c!==null&&le>0)for(c.length=le+se.length,p=0;p<se.length;p++)c[le+p]=se[p];else e.deps=c=se;if(gi()&&e.f&ye)for(p=le;p<c.length;p++)((b=(_=c[p]).reactions)!=null?b:_.reactions=[]).push(e)}else c!==null&&le<c.length&&(nn(e,le),c.length=le);if(_s()&&pe!==null&&!Ne&&c!==null&&!(e.f&(q|Ze|re)))for(p=0;p<pe.length;p++)Ys(pe[p],e);if(i!==null&&i!==e){if(_t++,i.deps!==null)for(let v=0;v<r;v+=1)i.deps[v].rv=_t;if(t!==null)for(const v of t)v.rv=_t;pe!==null&&(n===null?n=pe:n.push(...pe))}return e.f&ot&&(e.f^=ot),d}catch(v){return ys(v)}finally{e.f^=Rn,se=t,le=r,pe=n,x=i,te=s,Qt(o),Ne=a,At=l}}function Za(e,t){let r=t.reactions;if(r!==null){var n=ua.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}if(r===null&&t.f&q&&(se===null||!se.includes(t))){var s=t;s.f&ye&&(s.f^=ye,s.f&=~Ht),pi(s),Os(s),nn(s,0)}}function nn(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Za(e,r[n])}function Tr(e){var t=e.f;if(!(t&Xe)){V(e,J);var r=N,n=St;N=e,St=!0;try{t&(We|fs)?za(e):ks(e),Gs(e);var i=Qs(e);e.teardown=typeof i=="function"?i:null,e.wv=qs;var s;Cn&&Ha&&e.f&re&&e.deps}finally{St=n,N=r}}}function m(e){var f;var t=e.f,r=(t&q)!==0;if(x!==null&&!Ne){var n=N!==null&&(N.f&Xe)!==0;if(!n&&!(te!=null&&te.includes(e))){var i=x.deps;if(x.f&Rn)e.rv<_t&&(e.rv=_t,se===null&&i!==null&&i[le]===e?le++:se===null?se=[e]:se.push(e));else{((f=x.deps)!=null?f:x.deps=[]).push(e);var s=e.reactions;s===null?e.reactions=[x]:s.includes(x)||s.push(x)}}}if(lt&&at.has(e))return at.get(e);if(r){var o=e;if(lt){var a=o.v;return(!(o.f&J)&&o.reactions!==null||Ks(o))&&(a=vi(o)),at.set(o,a),a}var l=(o.f&ye)===0&&!Ne&&x!==null&&(St||(x.f&ye)!==0),u=o.deps===null;Pr(o)&&(l&&(o.f|=ye),Bs(o)),l&&!u&&Js(o)}if(W!=null&&W.has(e))return W.get(e);if(e.f&ot)throw e.v;return e.v}function Js(e){var t;if(e.deps!==null){e.f|=ye;for(const r of e.deps)((t=r.reactions)!=null?t:r.reactions=[]).push(e),r.f&q&&!(r.f&ye)&&Js(r)}}function Ks(e){if(e.v===z)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(at.has(t)||t.f&q&&Ks(t))return!0;return!1}function wi(e){var t=Ne;try{return Ne=!0,e()}finally{Ne=t}}const eo=new Set,Vn=new Set;function Ya(e,t,r,n={}){function i(s){if(n.capture||_r.call(t,s),!s.cancelBubble)return _i(()=>r==null?void 0:r.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?sr(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function Qa(e,t,r,n,i){var s={capture:n,passive:i},o=Ya(e,t,r,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&yi(()=>{t.removeEventListener(e,o,s)})}function to(e){for(var t=0;t<e.length;t++)eo.add(e[t]);for(var r of Vn)r(e)}let $i=null;function _r(e){var v;var t=this,r=t.ownerDocument,n=e.type,i=((v=e.composedPath)==null?void 0:v.call(e))||[],s=i[0]||e.target;$i=e;var o=0,a=$i===e&&e.__root;if(a){var l=i.indexOf(a);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var u=i.indexOf(t);if(u===-1)return;l<=u&&(o=l)}if(s=i[o]||e.target,s!==t){wr(e,"currentTarget",{configurable:!0,get(){return s||r}});var f=x,d=N;Q(null),xe(null);try{for(var c,p=[];s!==null;){var _=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){c?p.push(y):c=y}if(e.cancelBubble||_===t||_===null)break;s=_}if(c){for(let y of p)queueMicrotask(()=>{throw y});throw c}}finally{e.__root=t,delete e.currentTarget,Q(f),xe(d)}}}function Ja(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function kt(e,t){var r=N;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function Ue(e,t){var r=(t&oa)!==0,n=(t&aa)!==0,i,s=!e.startsWith("<!>");return()=>{if(O)return kt(H,null),H;i===void 0&&(i=Ja(s?e:"<!>"+e),r||(i=Ot(i)));var o=n||Cs?document.importNode(i,!0):i.cloneNode(!0);if(r){var a=Ot(o),l=o.lastChild;kt(a,l)}else kt(o,o);return o}}function ro(){if(O)return kt(H,null),H;var e=document.createDocumentFragment(),t=document.createComment(""),r=be();return e.append(t,r),kt(t,r),e}function de(e,t){if(O){var r=N;(!(r.f&dn)||r.nodes.end===null)&&(r.nodes.end=H),vn();return}e!==null&&e.before(t)}const Ka=["touchstart","touchmove"];function el(e){return Ka.includes(e)}function gr(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 no(e,t){return io(e,t)}function tl(e,t){var o;kn(),t.intro=(o=t.intro)!=null?o:!1;const r=t.target,n=O,i=H;try{for(var s=Ot(r);s&&(s.nodeType!==ir||s.data!==ss);)s=De(s);if(!s)throw Zt;He(!0),oe(s);const a=io(e,kr(Gr({},t),{anchor:s}));return He(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
2
- `).some(l=>l.startsWith("https://svelte.dev/e/")))throw a;return a!==Zt&&console.warn("Failed to hydrate: ",a),t.recover===!1&&ba(),kn(),Ms(r),He(!1),no(e,t)}finally{He(n),oe(i)}}const Rt=new Map;function io(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:o=!0}){kn();var a=new Set,l=d=>{for(var c=0;c<d.length;c++){var p=d[c];if(!a.has(p)){a.add(p);var _=el(p);t.addEventListener(p,_r,{passive:_});var b=Rt.get(p);b===void 0?(document.addEventListener(p,_r,{passive:_}),Rt.set(p,1)):Rt.set(p,b+1)}}};l(cn(eo)),Vn.add(l);var u=void 0,f=Va(()=>{var d=r!=null?r:t.appendChild(be());return Ca(d,{pending:()=>{}},c=>{if(s){ci({});var p=Ee;p.c=s}if(i&&(n.$$events=i),O&&kt(c,null),u=e(c,n)||{},O&&(N.nodes.end=H,H===null||H.nodeType!==ir||H.data!==li))throw pn(),Zt;s&&di()}),()=>{var _;for(var c of a){t.removeEventListener(c,_r);var p=Rt.get(c);--p===0?(document.removeEventListener(c,_r),Rt.delete(c)):Rt.set(c,p)}Vn.delete(l),d!==r&&((_=d.parentNode)==null||_.removeChild(d))}});return Xn.set(u,f),u}let Xn=new WeakMap;function rl(e,t){const r=Xn.get(e);return r?(Xn.delete(e),r(t)):Promise.resolve()}var Ae,Le,fe,wt,Or,Br,fn;class nl{constructor(t,r=!0){U(this,"anchor");w(this,Ae,new Map);w(this,Le,new Map);w(this,fe,new Map);w(this,wt,new Set);w(this,Or,!0);w(this,Br,()=>{var t=B;if(h(this,Ae).has(t)){var r=h(this,Ae).get(t),n=h(this,Le).get(r);if(n)xi(n),h(this,wt).delete(r);else{var i=h(this,fe).get(r);i&&(h(this,Le).set(r,i.effect),h(this,fe).delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(const[s,o]of h(this,Ae)){if(h(this,Ae).delete(s),s===t)break;const a=h(this,fe).get(o);a&&(ee(a.effect),h(this,fe).delete(o))}for(const[s,o]of h(this,Le)){if(s===r||h(this,wt).has(s))continue;const a=()=>{if(Array.from(h(this,Ae).values()).includes(s)){var u=document.createDocumentFragment();zs(o,u),u.append(be()),h(this,fe).set(s,{effect:o,fragment:u})}else ee(o);h(this,wt).delete(s),h(this,Le).delete(s)};h(this,Or)||!n?(h(this,wt).add(s),Tt(o,a,!1)):a()}}});w(this,fn,t=>{h(this,Ae).delete(t);const r=Array.from(h(this,Ae).values());for(const[n,i]of h(this,fe))r.includes(n)||(ee(i.effect),h(this,fe).delete(n))});this.anchor=t,E(this,Or,r)}ensure(t,r){var n=B,i=$s();if(r&&!h(this,Le).has(t)&&!h(this,fe).has(t))if(i){var s=document.createDocumentFragment(),o=be();s.append(o),h(this,fe).set(t,{effect:ge(()=>r(o)),fragment:s})}else h(this,Le).set(t,ge(()=>r(this.anchor)));if(h(this,Ae).set(n,t),i){for(const[a,l]of h(this,Le))a===t?n.skipped_effects.delete(l):n.skipped_effects.add(l);for(const[a,l]of h(this,fe))a===t?n.skipped_effects.delete(l.effect):n.skipped_effects.add(l.effect);n.oncommit(h(this,Br)),n.ondiscard(h(this,fn))}else O&&(this.anchor=H),h(this,Br).call(this)}}Ae=new WeakMap,Le=new WeakMap,fe=new WeakMap,wt=new WeakMap,Or=new WeakMap,Br=new WeakMap,fn=new WeakMap;function Dt(e,t,r=!1){O&&vn();var n=new nl(e),i=r?Yt:0;function s(o,a){if(O){const u=ds(e)===hn;if(o===u){var l=en();oe(l),n.anchor=l,He(!1),n.ensure(o,a),He(!0);return}}n.ensure(o,a)}Ei(()=>{var o=!1;t((a,l=!0)=>{o=!0,s(l,a)}),o||s(!1,null)},i)}function so(e,t){return t}function il(e,t,r){var d;for(var n=[],i=t.length,s,o=t.length,a=0;a<i;a++){let c=t[a];Tt(c,()=>{if(s){if(s.pending.delete(c),s.done.add(c),s.pending.size===0){var p=e.outrogroups;zn(cn(s.done)),p.delete(s),p.size===0&&(e.outrogroups=null)}}else o-=1},!1)}if(o===0){var l=n.length===0&&r!==null;if(l){var u=r,f=u.parentNode;Ms(f),f.append(u),e.items.clear()}zn(t,!l)}else s={pending:new Set(t),done:new Set},((d=e.outrogroups)!=null?d:e.outrogroups=new Set).add(s)}function zn(e,t=!0){for(var r=0;r<e.length;r++)ee(e[r],t)}var Lt;function Wn(e,t,r,n,i,s=null){var o=e,a=new Map,l=(t&is)!==0;if(l){var u=e;o=O?oe(Ot(u)):u.appendChild(be())}O&&vn();var f=null,d=Da(()=>{var y=r();return os(y)?y:y==null?[]:cn(y)}),c,p=!0;function _(){v.fallback=f,sl(v,c,o,t,n),f!==null&&(c.length===0?f.f&Ve?(f.f^=Ve,yr(f,null,o)):xi(f):Tt(f,()=>{f=null}))}var b=Ei(()=>{c=m(d);var y=c.length;let P=!1;if(O){var C=ds(o)===hn;C!==(y===0)&&(o=en(),oe(o),He(!1),P=!0)}for(var $=new Set,X=B,Z=$s(),G=0;G<y;G+=1){O&&H.nodeType===ir&&H.data===li&&(o=H,P=!0,He(!1));var Be=c[G],Fe=n(Be,G),Y=p?null:a.get(Fe);Y?(Y.v&&Kt(Y.v,Be),Y.i&&Kt(Y.i,G),Z&&X.skipped_effects.delete(Y.e)):(Y=ol(a,p?o:Lt!=null?Lt:Lt=be(),Be,Fe,G,i,t,r),p||(Y.e.f|=Ve),a.set(Fe,Y)),$.add(Fe)}if(y===0&&s&&!f&&(p?f=ge(()=>s(o)):(f=ge(()=>s(Lt!=null?Lt:Lt=be())),f.f|=Ve)),O&&y>0&&oe(en()),!p)if(Z){for(const[Pt,Ct]of a)$.has(Pt)||X.skipped_effects.add(Ct.e);X.oncommit(_),X.ondiscard(()=>{})}else _();P&&He(!0),m(d)}),v={effect:b,items:a,outrogroups:null,fallback:f};p=!1,O&&(o=H)}function sl(e,t,r,n,i){var Y,Pt,Ct,Cr,ur,fr,Rr,Lr,Mr;var s=(n&ia)!==0,o=t.length,a=e.items,l=e.effect.first,u,f=null,d,c=[],p=[],_,b,v,y;if(s)for(y=0;y<o;y+=1)_=t[y],b=i(_,y),v=a.get(b).e,v.f&Ve||((Pt=(Y=v.nodes)==null?void 0:Y.a)==null||Pt.measure(),(d!=null?d:d=new Set).add(v));for(y=0;y<o;y+=1){if(_=t[y],b=i(_,y),v=a.get(b).e,e.outrogroups!==null)for(const ae of e.outrogroups)ae.pending.delete(v),ae.done.delete(v);if(v.f&Ve)if(v.f^=Ve,v===l)yr(v,null,r);else{var P=f?f.next:l;v===e.effect.last&&(e.effect.last=v.prev),v.prev&&(v.prev.next=v.next),v.next&&(v.next.prev=v.prev),Ke(e,f,v),Ke(e,v,P),yr(v,P,r),f=v,c=[],p=[],l=f.next;continue}if(v.f&he&&(xi(v),s&&((Cr=(Ct=v.nodes)==null?void 0:Ct.a)==null||Cr.unfix(),(d!=null?d:d=new Set).delete(v))),v!==l){if(u!==void 0&&u.has(v)){if(c.length<p.length){var C=p[0],$;f=C.prev;var X=c[0],Z=c[c.length-1];for($=0;$<c.length;$+=1)yr(c[$],C,r);for($=0;$<p.length;$+=1)u.delete(p[$]);Ke(e,X.prev,Z.next),Ke(e,f,X),Ke(e,Z,C),l=C,f=Z,y-=1,c=[],p=[]}else u.delete(v),yr(v,l,r),Ke(e,v.prev,v.next),Ke(e,v,f===null?e.effect.first:f.next),Ke(e,f,v),f=v;continue}for(c=[],p=[];l!==null&&l!==v;)(u!=null?u:u=new Set).add(l),p.push(l),l=l.next;if(l===null)continue}v.f&Ve||c.push(v),f=v,l=v.next}if(e.outrogroups!==null){for(const ae of e.outrogroups)ae.pending.size===0&&(zn(cn(ae.done)),(ur=e.outrogroups)==null||ur.delete(ae));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||u!==void 0){var G=[];if(u!==void 0)for(v of u)v.f&he||G.push(v);for(;l!==null;)!(l.f&he)&&l!==e.fallback&&G.push(l),l=l.next;var Be=G.length;if(Be>0){var Fe=n&is&&o===0?r:null;if(s){for(y=0;y<Be;y+=1)(Rr=(fr=G[y].nodes)==null?void 0:fr.a)==null||Rr.measure();for(y=0;y<Be;y+=1)(Mr=(Lr=G[y].nodes)==null?void 0:Lr.a)==null||Mr.fix()}il(e,G,Fe)}}s&&sr(()=>{var ae,$r;if(d!==void 0)for(v of d)($r=(ae=v.nodes)==null?void 0:ae.a)==null||$r.apply()})}function ol(e,t,r,n,i,s,o,a){var l=o&ra?o&sa?Nt(r):mi(r,!1,!1):null,u=o&na?Nt(i):null;return{v:l,i:u,e:ge(()=>(s(t,l!=null?l:r,u!=null?u:i,a),()=>{e.delete(n)}))}}function yr(e,t,r){if(e.nodes)for(var n=e.nodes.start,i=e.nodes.end,s=t&&!(t.f&Ve)?t.nodes.start:r;n!==null;){var o=De(n);if(s.before(n),n===i)return;n=o}}function Ke(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}function oo(e,t){Fs(()=>{var i;var r=e.getRootNode(),n=r.host?r:(i=r.head)!=null?i:r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const s=document.createElement("style");s.id=t.hash,s.textContent=t.code,n.appendChild(s)}})}const Di=[...`
3
- \r\f \v\uFEFF`];function al(e,t,r){var n=e==null?"":""+e;if(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,o=0;(o=n.indexOf(i,o))>=0;){var a=o+s;(o===0||Di.includes(n[o-1]))&&(a===n.length||Di.includes(n[a]))?n=(o===0?"":n.substring(0,o))+n.substring(a+1):o=a}}return n===""?null:n}function qn(e,t,r,n,i,s){var o=e.__className;if(O||o!==r||o===void 0){var a=al(r,n,s);(!O||a!==e.getAttribute("class"))&&(a==null?e.removeAttribute("class"):e.className=a),e.__className=r}else if(s&&i!==s)for(var l in s){var u=!!s[l];(i==null||u!==!!i[l])&&e.classList.toggle(l,u)}return s}const ll=Symbol("is custom element"),ul=Symbol("is html");function Zn(e,t,r,n){var i=fl(e);O&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[pa]=r),r==null?e.removeAttribute(t):typeof r!="string"&&ao(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Vr(e,t,r){var n=x,i=N;let s=O;O&&He(!1),Q(null),xe(null);try{t!=="style"&&(Yn.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?ao(e).includes(t):r&&typeof r=="object")?e[t]=r:Zn(e,t,r==null?r:String(r))}finally{Q(n),xe(i),s&&He(!0)}}function fl(e){var t;return(t=e.__attributes)!=null?t:e.__attributes={[ll]:e.nodeName.includes("-"),[ul]:e.namespaceURI===la}}var Yn=new Map;function ao(e){var t=e.getAttribute("is")||e.nodeName,r=Yn.get(t);if(r)return r;Yn.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=fa(i);for(var o in n)n[o].set&&r.push(o);i=as(i)}return r}function Ui(e,t){return e===t||(e==null?void 0:e[zr])===t}function Fi(e={},t,r,n){return Fs(()=>{var i,s;return bi(()=>{i=s,s=[],wi(()=>{e!==r(...s)&&(t(e,...s),i&&Ui(r(...i),e)&&t(null,...i))})}),()=>{sr(()=>{s&&Ui(r(...s),e)&&t(null,...s)})}}),e}function Ti(e,t,r){if(e==null)return t(void 0),r&&r(void 0),st;const n=wi(()=>e.subscribe(t,r));return n.unsubscribe?()=>n.unsubscribe():n}const Mt=[];function hl(e,t){return{subscribe:gn(e,t).subscribe}}function gn(e,t=st){let r=null;const n=new Set;function i(a){if(vs(e,a)&&(e=a,r)){const l=!Mt.length;for(const u of n)u[1](),Mt.push(u,e);if(l){for(let u=0;u<Mt.length;u+=2)Mt[u][0](Mt[u+1]);Mt.length=0}}}function s(a){i(a(e))}function o(a,l=st){const u=[a,l];return n.add(u),n.size===1&&(r=t(i,s)||st),a(e),()=>{n.delete(u),n.size===0&&r&&(r(),r=null)}}return{set:i,update:s,subscribe:o}}function or(e,t,r){const n=!Array.isArray(e),i=n?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=t.length<2;return hl(r,(o,a)=>{let l=!1;const u=[];let f=0,d=st;const c=()=>{if(f)return;d();const _=t(n?u[0]:u,o,a);s?o(_):d=typeof _=="function"?_:st},p=i.map((_,b)=>Ti(_,v=>{u[b]=v,f&=~(1<<b),l&&c()},()=>{f|=1<<b}));return l=!0,c(),function(){ls(p),d(),l=!1}})}function cl(e){let t;return Ti(e,r=>t=r)(),t}let Qn=Symbol();function lo(e,t,r){var s;const n=(s=r[t])!=null?s:r[t]={store:null,source:mi(void 0),unsubscribe:st};if(n.store!==e&&!(Qn in r))if(n.unsubscribe(),n.store=e!=null?e:null,e==null)n.source.v=void 0,n.unsubscribe=st;else{var i=!0;n.unsubscribe=Ti(e,o=>{i?n.source.v=o:I(n.source,o)}),i=!1}return e&&Qn in r?cl(e):m(n.source)}function uo(){const e={};function t(){yi(()=>{for(var r in e)e[r].unsubscribe();wr(e,Qn,{enumerable:!1,value:!0})})}return[e,t]}function Ut(e,t,r,n){var i=n,s=!0,o=()=>(s&&(s=!1,i=n),i),a;a=e[t],a===void 0&&n!==void 0&&(a=o());var l;l=()=>{var c=e[t];return c===void 0?o():(s=!0,c)};var u=!1,f=_n(()=>(u=!1,l())),d=N;return function(c,p){if(arguments.length>0){const _=p?m(f):c;return I(f,_),u=!0,i!==void 0&&(i=_),c}return lt&&u||d.f&Xe?f.v:m(f)}}function dl(e){return new pl(e)}var je,me;class pl{constructor(t){w(this,je);w(this,me);var s,o;var r=new Map,n=(a,l)=>{var u=mi(l,!1,!1);return r.set(a,u),u};const i=new Proxy(kr(Gr({},t.props||{}),{$$events:{}}),{get(a,l){var u;return m((u=r.get(l))!=null?u:n(l,Reflect.get(a,l)))},has(a,l){var u;return l===da?!0:(m((u=r.get(l))!=null?u:n(l,Reflect.get(a,l))),Reflect.has(a,l))},set(a,l,u){var f;return I((f=r.get(l))!=null?f:n(l,u),u),Reflect.set(a,l,u)}});E(this,me,(t.hydrate?tl:no)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:(s=t.intro)!=null?s:!1,recover:t.recover})),(!((o=t==null?void 0:t.props)!=null&&o.$$host)||t.sync===!1)&&pt(),E(this,je,i.$$events);for(const a of Object.keys(h(this,me)))a==="$set"||a==="$destroy"||a==="$on"||wr(this,a,{get(){return h(this,me)[a]},set(l){h(this,me)[a]=l},enumerable:!0});h(this,me).$set=a=>{Object.assign(i,a)},h(this,me).$destroy=()=>{rl(h(this,me))}}$set(t){h(this,me).$set(t)}$on(t,r){h(this,je)[t]=h(this,je)[t]||[];const n=(...i)=>r.call(this,...i);return h(this,je)[t].push(n),()=>{h(this,je)[t]=h(this,je)[t].filter(i=>i!==n)}}$destroy(){h(this,me).$destroy()}}je=new WeakMap,me=new WeakMap;let fo;typeof HTMLElement=="function"&&(fo=class extends HTMLElement{constructor(t,r,n){super();U(this,"$$ctor");U(this,"$$s");U(this,"$$c");U(this,"$$cn",!1);U(this,"$$d",{});U(this,"$$r",!1);U(this,"$$p_d",{});U(this,"$$l",{});U(this,"$$l_u",new Map);U(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 vr(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(i){return s=>{const o=document.createElement("slot");i!=="default"&&(o.name=i),de(s,o)}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=vl(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]=Zr(s,i.value,this.$$p_d,"toProp"))}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=dl({component:this.$$ctor,target:this.shadowRoot||this,props:kr(Gr({},this.$$d),{$$slots:r,$$host:this})}),this.$$me=ja(()=>{bi(()=>{var i;this.$$r=!0;for(const s of Jr(this.$$c)){if(!((i=this.$$p_d[s])!=null&&i.reflect))continue;this.$$d[s]=this.$$c[s];const o=Zr(s,this.$$d[s],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,o)}this.$$r=!1})});for(const i in this.$$l)for(const s of this.$$l[i]){const o=this.$$c.$on(i,s);this.$$l_u.set(s,o)}this.$$l={}}})}attributeChangedCallback(t,r,n){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Zr(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 Jr(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function Zr(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 vl(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function ho(e,t,r,n,i,s){let o=class extends fo{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Jr(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Jr(t).forEach(a=>{wr(o.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){var d;l=Zr(a,l,t),this.$$d[a]=l;var u=this.$$c;if(u){var f=(d=Gt(u,a))==null?void 0:d.get;f?u[a]=l:u.$set({[a]:l})}}})}),n.forEach(a=>{wr(o.prototype,a,{get(){var l;return(l=this.$$c)==null?void 0:l[a]}})}),e.element=o,o}class ml extends Error{constructor(t,r){super(r),this.code=t,this.name="ElevateApiError"}}const _l={REDEEM_REWARD_CONFIRMED:"RedeemRewardConfirmed"},Gi=10,br=12,gl=e=>{const t=new Headers({"Content-Type":"application/json"});return e&&t.append("X-SessionId",e),t},yl=(n,...i)=>vr(exports,[n,...i],function*(e,t=0,r=br){var l;const s=new URL(`${e.apiEndpoint}/elevate/shop`);return s.searchParams.set("language",(l=e.locale)!=null?l:""),s.searchParams.set("pagination",`offset=${t},limit=${r}`),yield(yield fetch(s.href,{method:"GET",headers:gl(e.userSession)})).json()}),bl=(e,t)=>vr(exports,null,function*(){var o,a;const r=new URL(`${e.apiEndpoint}/elevate/redeem`),n=new Headers({"Content-Type":"application/json-patch+json"});e.userSession&&n.append("X-SessionId",e.userSession);const s=yield(yield fetch(r.href,{method:"PUT",headers:n,body:JSON.stringify({giftID:t})})).json();if(!s.success)throw new ml((o=s.errorCode)!=null?o:"",(a=s.errorMessage)!=null?a:"Redeem failed")}),El=(e,t)=>{window.postMessage({type:"RewardItemClicked",name:e,id:t},window.location.href)},xl=(e,t)=>{window.postMessage({type:"RedeemRewardRequested",name:e,id:t},window.location.href)},wl=e=>{window.postMessage({type:"RedeemRewardSuccess",itemId:e},window.location.href)},Tl=(e,t)=>{window.postMessage({type:"RedeemRewardFailed",itemId:e,res:t},window.location.href)},Sl=()=>{window.dispatchEvent(new CustomEvent("redeemRewardButton"))};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-ISl0nfTe.cjs")).then(({default:t})=>{!customElements.get("loyalty-pagination")&&customElements.define("loyalty-pagination",t.element)})}function Al(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Hl=function(t){return Nl(t)&&!Ol(t)};function Nl(e){return!!e&&typeof e=="object"}function Ol(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Pl(e)}var Bl=typeof Symbol=="function"&&Symbol.for,Il=Bl?Symbol.for("react.element"):60103;function Pl(e){return e.$$typeof===Il}function Cl(e){return Array.isArray(e)?[]:{}}function Sr(e,t){return t.clone!==!1&&t.isMergeableObject(e)?er(Cl(e),e,t):e}function Rl(e,t,r){return e.concat(t).map(function(n){return Sr(n,r)})}function Ll(e,t){if(!t.customMerge)return er;var r=t.customMerge(e);return typeof r=="function"?r:er}function Ml(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function ki(e){return Object.keys(e).concat(Ml(e))}function co(e,t){try{return t in e}catch(r){return!1}}function $l(e,t){return co(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Dl(e,t,r){var n={};return r.isMergeableObject(e)&&ki(e).forEach(function(i){n[i]=Sr(e[i],r)}),ki(t).forEach(function(i){$l(e,i)||(co(e,i)&&r.isMergeableObject(t[i])?n[i]=Ll(i,r)(e[i],t[i],r):n[i]=Sr(t[i],r))}),n}function er(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Rl,r.isMergeableObject=r.isMergeableObject||Hl,r.cloneUnlessOtherwiseSpecified=Sr;var n=Array.isArray(t),i=Array.isArray(e),s=n===i;return s?n?r.arrayMerge(e,t,r):Dl(e,t,r):Sr(t,r)}er.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return er(n,i,r)},{})};var Ul=er,Fl=Ul;const Gl=Al(Fl);var Jn=function(e,t){return Jn=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])},Jn(e,t)};function yn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Jn(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Me=function(){return Me=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},Me.apply(this,arguments)};function 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 Hn(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 Nn(e,t){var r=t&&t.cache?t.cache:Zl,n=t&&t.serializer?t.serializer:Wl,i=t&&t.strategy?t.strategy:Xl;return i(e,{cache:r,serializer:n})}function jl(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Vl(e,t,r,n){var i=jl(n)?n:r(n),s=t.get(i);return typeof s=="undefined"&&(s=e.call(this,n),t.set(i,s)),s}function po(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 vo(e,t,r,n,i){return r.bind(t,e,n,i)}function Xl(e,t){var r=e.length===1?Vl:po;return vo(e,this,r,t.cache.create(),t.serializer)}function zl(e,t){return vo(e,this,po,t.cache.create(),t.serializer)}var Wl=function(){return JSON.stringify(arguments)},ql=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}(),Zl={create:function(){return new ql}},On={variadic:zl},sn=function(){return sn=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},sn.apply(this,arguments)};var S;(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"})(S||(S={}));var L;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(L||(L={}));var tr;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(tr||(tr={}));function ji(e){return e.type===L.literal}function Yl(e){return e.type===L.argument}function mo(e){return e.type===L.number}function _o(e){return e.type===L.date}function go(e){return e.type===L.time}function yo(e){return e.type===L.select}function bo(e){return e.type===L.plural}function Ql(e){return e.type===L.pound}function Eo(e){return e.type===L.tag}function xo(e){return!!(e&&typeof e=="object"&&e.type===tr.number)}function Kn(e){return!!(e&&typeof e=="object"&&e.type===tr.dateTime)}var wo=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Jl=/(?:[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 Kl(e){var t={};return e.replace(Jl,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 D=function(){return D=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},D.apply(this,arguments)};var eu=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function tu(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(eu).filter(function(c){return c.length>0}),r=[],n=0,i=t;n<i.length;n++){var s=i[n],o=s.split("/");if(o.length===0)throw new Error("Invalid number skeleton");for(var a=o[0],l=o.slice(1),u=0,f=l;u<f.length;u++){var d=f[u];if(d.length===0)throw new Error("Invalid number skeleton")}r.push({stem:a,options:l})}return r}function ru(e){return e.replace(/^(.*?)-/,"")}var Vi=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,To=/^(@+)?(\+|#+)?[rs]?$/g,nu=/(\*)(0+)|(#+)(0+)|(0+)/g,So=/^(0+)$/;function Xi(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(To,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 Ao(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 iu(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)),!So.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function zi(e){var t={},r=Ao(e);return r||t}function su(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=ru(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=D(D(D({},t),{notation:"scientific"}),i.options.reduce(function(l,u){return D(D({},l),zi(u))},{}));continue;case"engineering":t=D(D(D({},t),{notation:"engineering"}),i.options.reduce(function(l,u){return D(D({},l),zi(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(nu,function(l,u,f,d,c,p){if(u)t.minimumIntegerDigits=f.length;else{if(d&&c)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(So.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Vi.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Vi,function(l,u,f,d,c,p){return f==="*"?t.minimumFractionDigits=u.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:c&&p?(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length+p.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var s=i.options[0];s==="w"?t=D(D({},t),{trailingZeroDisplay:"stripIfInteger"}):s&&(t=D(D({},t),Xi(s)));continue}if(To.test(i.stem)){t=D(D({},t),Xi(i.stem));continue}var o=Ao(i.stem);o&&(t=D(D({},t),o));var a=iu(i.stem);a&&(t=D(D({},t),a))}return t}var Xr={"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 ou(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 o=1+(s&1),a=s<2?1:3+(s>>1),l="a",u=au(t);for((u=="H"||u=="k")&&(a=0);a-- >0;)r+=l;for(;o-- >0;)r=u+r}else i==="J"?r+="H":r+=i}return r}function au(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=Xr[n||""]||Xr[r||""]||Xr["".concat(r,"-001")]||Xr["001"];return i[0]}var Bn,lu=new RegExp("^".concat(wo.source,"*")),uu=new RegExp("".concat(wo.source,"*$"));function A(e,t){return{start:e,end:t}}var fu=!!String.prototype.startsWith&&"_a".startsWith("a",1),hu=!!String.fromCodePoint,cu=!!Object.fromEntries,du=!!String.prototype.codePointAt,pu=!!String.prototype.trimStart,vu=!!String.prototype.trimEnd,mu=!!Number.isSafeInteger,_u=mu?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},ei=!0;try{var gu=No("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ei=((Bn=gu.exec("a"))===null||Bn===void 0?void 0:Bn[0])==="a"}catch(e){ei=!1}var Wi=fu?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},ti=hu?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",i=t.length,s=0,o;i>s;){if(o=t[s++],o>1114111)throw RangeError(o+" is not a valid code point");n+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return n},qi=cu?Object.fromEntries:function(t){for(var r={},n=0,i=t;n<i.length;n++){var s=i[n],o=s[0],a=s[1];r[o]=a}return r},Ho=du?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}},yu=pu?function(t){return t.trimStart()}:function(t){return t.replace(lu,"")},bu=vu?function(t){return t.trimEnd()}:function(t){return t.replace(uu,"")};function No(e,t){return new RegExp(e,t)}var ri;if(ei){var Zi=No("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ri=function(t,r){var n;Zi.lastIndex=r;var i=Zi.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}}else ri=function(t,r){for(var n=[];;){var i=Ho(t,r);if(i===void 0||Oo(i)||Tu(i))break;n.push(i),r+=i>=65536?2:1}return ti.apply(void 0,n)};var Eu=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 o=this.parseArgument(t,n);if(o.err)return o;i.push(o.val)}else{if(s===125&&t>0)break;if(s===35&&(r==="plural"||r==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:L.pound,location:A(a,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(S.UNMATCHED_CLOSING_TAG,A(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&ni(this.peek()||0)){var o=this.parseTag(t,r);if(o.err)return o;i.push(o.val)}else{var o=this.parseLiteral(t,r);if(o.err)return o;i.push(o.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:L.literal,value:"<".concat(i,"/>"),location:A(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(t+1,r,!0);if(s.err)return s;var o=s.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!ni(this.char()))return this.error(S.INVALID_TAG,A(a,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(S.UNMATCHED_CLOSING_TAG,A(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:L.tag,value:i,children:o,location:A(n,this.clonePosition())},err:null}:this.error(S.INVALID_TAG,A(a,this.clonePosition())))}else return this.error(S.UNCLOSED_TAG,A(n,this.clonePosition()))}else return this.error(S.INVALID_TAG,A(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&wu(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 o=this.tryParseUnquoted(t,r);if(o){i+=o;continue}var a=this.tryParseLeftAngleBracket();if(a){i+=a;continue}break}var l=A(n,this.clonePosition());return{val:{type:L.literal,value:i,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!xu(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 ti.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(),ti(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,A(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(S.EMPTY_ARGUMENT,A(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(S.MALFORMED_ARGUMENT,A(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,A(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:L.argument,value:i,location:A(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,A(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(S.MALFORMED_ARGUMENT,A(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=ri(this.message,r),i=r+n.length;this.bumpTo(i);var s=this.clonePosition(),o=A(t,s);return{value:n,location:o}},e.prototype.parseArgumentOptions=function(t,r,n,i){var s,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(S.EXPECT_ARGUMENT_TYPE,A(o,l));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 c=bu(d.val);if(c.length===0)return this.error(S.EXPECT_ARGUMENT_STYLE,A(this.clonePosition(),this.clonePosition()));var p=A(f,this.clonePosition());u={style:c,styleLocation:p}}var _=this.tryParseArgumentClose(i);if(_.err)return _;var b=A(i,this.clonePosition());if(u&&Wi(u==null?void 0:u.style,"::",0)){var v=yu(u.style.slice(2));if(a==="number"){var d=this.parseNumberSkeletonFromString(v,u.styleLocation);return d.err?d:{val:{type:L.number,value:n,location:b,style:d.val},err:null}}else{if(v.length===0)return this.error(S.EXPECT_DATE_TIME_SKELETON,b);var y=v;this.locale&&(y=ou(v,this.locale));var c={type:tr.dateTime,pattern:y,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?Kl(y):{}},P=a==="date"?L.date:L.time;return{val:{type:P,value:n,location:b,style:c},err:null}}}return{val:{type:a==="number"?L.number:a==="date"?L.date:L.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(S.EXPECT_SELECT_ARGUMENT_OPTIONS,A(C,sn({},C)));this.bumpSpace();var $=this.parseIdentifierIfPossible(),X=0;if(a!=="select"&&$.value==="offset"){if(!this.bumpIf(":"))return this.error(S.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,A(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(S.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,S.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),$=this.parseIdentifierIfPossible(),X=d.val}var Z=this.tryParsePluralOrSelectOptions(t,a,r,$);if(Z.err)return Z;var _=this.tryParseArgumentClose(i);if(_.err)return _;var G=A(i,this.clonePosition());return a==="select"?{val:{type:L.select,value:n,options:qi(Z.val),location:G},err:null}:{val:{type:L.plural,value:n,options:qi(Z.val),offset:X,pluralType:a==="plural"?"cardinal":"ordinal",location:G},err:null}}default:return this.error(S.INVALID_ARGUMENT_TYPE,A(o,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,A(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(S.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,A(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=tu(t)}catch(i){return this.error(S.INVALID_NUMBER_SKELETON,r)}return{val:{type:tr.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?su(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var s,o=!1,a=[],l=new Set,u=i.value,f=i.location;;){if(u.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var c=this.tryParseDecimalInteger(S.EXPECT_PLURAL_ARGUMENT_SELECTOR,S.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;f=A(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}else break}if(l.has(u))return this.error(r==="select"?S.DUPLICATE_SELECT_ARGUMENT_SELECTOR:S.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);u==="other"&&(o=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?S.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:S.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,A(this.clonePosition(),this.clonePosition()));var _=this.parseMessage(t+1,r,n);if(_.err)return _;var b=this.tryParseArgumentClose(p);if(b.err)return b;a.push([u,{value:_.val,location:A(p,this.clonePosition())}]),l.add(u),this.bumpSpace(),s=this.parseIdentifierIfPossible(),u=s.value,f=s.location}return a.length===0?this.error(r==="select"?S.EXPECT_SELECT_ARGUMENT_SELECTOR:S.EXPECT_PLURAL_ARGUMENT_SELECTOR,A(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(S.MISSING_OTHER_CLAUSE,A(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var s=!1,o=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)s=!0,o=o*10+(a-48),this.bump();else break}var l=A(i,this.clonePosition());return s?(o*=n,_u(o)?{val:o,err:null}:this.error(r,l)):this.error(t,l)},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=Ho(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(Wi(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()&&Oo(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 ni(e){return e>=97&&e<=122||e>=65&&e<=90}function xu(e){return ni(e)||e===47}function wu(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 Oo(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Tu(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 ii(e){e.forEach(function(t){if(delete t.location,yo(t)||bo(t))for(var r in t.options)delete t.options[r].location,ii(t.options[r].value);else mo(t)&&xo(t.style)||(_o(t)||go(t))&&Kn(t.style)?delete t.style.location:Eo(t)&&ii(t.children)})}function Su(e,t){t===void 0&&(t={}),t=sn({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Eu(e,t).parse();if(r.err){var n=SyntaxError(S[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||ii(r.val),r.val}var rr;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(rr||(rr={}));var bn=function(e){yn(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),Yi=function(e){yn(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('", "'),'"'),rr.INVALID_VALUE,s)||this}return t}(bn),Au=function(e){yn(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),rr.INVALID_VALUE,i)||this}return t}(bn),Hu=function(e){yn(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,'"'),rr.MISSING_VALUE,n)||this}return t}(bn),K;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(K||(K={}));function Nu(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==K.literal||r.type!==K.literal?t.push(r):n.value+=r.value,t},[])}function Ou(e){return typeof e=="function"}function Yr(e,t,r,n,i,s,o){if(e.length===1&&ji(e[0]))return[{type:K.literal,value:e[0].value}];for(var a=[],l=0,u=e;l<u.length;l++){var f=u[l];if(ji(f)){a.push({type:K.literal,value:f.value});continue}if(Ql(f)){typeof s=="number"&&a.push({type:K.literal,value:r.getNumberFormat(t).format(s)});continue}var d=f.value;if(!(i&&d in i))throw new Hu(d,o);var c=i[d];if(Yl(f)){(!c||typeof c=="string"||typeof c=="number")&&(c=typeof c=="string"||typeof c=="number"?String(c):""),a.push({type:typeof c=="string"?K.literal:K.object,value:c});continue}if(_o(f)){var p=typeof f.style=="string"?n.date[f.style]:Kn(f.style)?f.style.parsedOptions:void 0;a.push({type:K.literal,value:r.getDateTimeFormat(t,p).format(c)});continue}if(go(f)){var p=typeof f.style=="string"?n.time[f.style]:Kn(f.style)?f.style.parsedOptions:n.time.medium;a.push({type:K.literal,value:r.getDateTimeFormat(t,p).format(c)});continue}if(mo(f)){var p=typeof f.style=="string"?n.number[f.style]:xo(f.style)?f.style.parsedOptions:void 0;p&&p.scale&&(c=c*(p.scale||1)),a.push({type:K.literal,value:r.getNumberFormat(t,p).format(c)});continue}if(Eo(f)){var _=f.children,b=f.value,v=i[b];if(!Ou(v))throw new Au(b,"function",o);var y=Yr(_,t,r,n,i,s),P=v(y.map(function(X){return X.value}));Array.isArray(P)||(P=[P]),a.push.apply(a,P.map(function(X){return{type:typeof X=="string"?K.literal:K.object,value:X}}))}if(yo(f)){var C=f.options[c]||f.options.other;if(!C)throw new Yi(f.value,c,Object.keys(f.options),o);a.push.apply(a,Yr(C.value,t,r,n,i));continue}if(bo(f)){var C=f.options["=".concat(c)];if(!C){if(!Intl.PluralRules)throw new bn(`Intl.PluralRules is not available in this environment.
4
- Try polyfilling it using "@formatjs/intl-pluralrules"
5
- `,rr.MISSING_INTL_API,o);var $=r.getPluralRules(t,{type:f.pluralType}).select(c-(f.offset||0));C=f.options[$]||f.options.other}if(!C)throw new Yi(f.value,c,Object.keys(f.options),o);a.push.apply(a,Yr(C.value,t,r,n,i,c-(f.offset||0)));continue}}return Nu(a)}function Bu(e,t){return t?Me(Me(Me({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=Me(Me({},e[n]),t[n]||{}),r},{})):e}function Iu(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=Bu(e[n],t[n]),r},Me({},e)):e}function In(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Pu(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Nn(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,Hn([void 0],r,!1)))},{cache:In(e.number),strategy:On.variadic}),getDateTimeFormat:Nn(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,Hn([void 0],r,!1)))},{cache:In(e.dateTime),strategy:On.variadic}),getPluralRules:Nn(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,Hn([void 0],r,!1)))},{cache:In(e.pluralRules),strategy:On.variadic})}}var Cu=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(l){var u=s.formatToParts(l);if(u.length===1)return u[0].value;var f=u.reduce(function(d,c){return!d.length||c.type!==K.literal||typeof d[d.length-1]!="string"?d.push(c.value):d[d.length-1]+=c.value,d},[]);return f.length<=1?f[0]||"":f},this.formatToParts=function(l){return Yr(s.ast,s.locales,s.formatters,s.formats,l,void 0,s.message)},this.resolvedOptions=function(){var l;return{locale:((l=s.resolvedLocale)===null||l===void 0?void 0:l.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 o=i||{};o.formatters;var a=kl(o,["formatters"]);this.ast=e.__parse(t,Me(Me({},a),{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=Iu(e.formats,n),this.formatters=i&&i.formatters||Pu(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=Su,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 Ru(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 it={},Lu=(e,t,r)=>r&&(t in it||(it[t]={}),e in it[t]||(it[t][e]=r),r),Bo=(e,t)=>{if(t==null)return;if(t in it&&e in it[t])return it[t][e];const r=En(t);for(let n=0;n<r.length;n++){const i=r[n],s=$u(i,e);if(s)return Lu(e,t,s)}};let Si;const ar=gn({});function Mu(e){return Si[e]||null}function Io(e){return e in Si}function $u(e,t){if(!Io(e))return null;const r=Mu(e);return Ru(r,t)}function Du(e){if(e==null)return;const t=En(e);for(let r=0;r<t.length;r++){const n=t[r];if(Io(n))return n}}function Po(e,...t){delete it[e],ar.update(r=>(r[e]=Gl.all([r[e]||{},...t]),r))}or([ar],([e])=>Object.keys(e));ar.subscribe(e=>Si=e);const Qr={};function Uu(e,t){Qr[e].delete(t),Qr[e].size===0&&delete Qr[e]}function Co(e){return Qr[e]}function Fu(e){return En(e).map(t=>{const r=Co(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function si(e){return e==null?!1:En(e).some(t=>{var r;return(r=Co(t))==null?void 0:r.size})}function Gu(e,t){return Promise.all(t.map(n=>(Uu(e,n),n().then(i=>i.default||i)))).then(n=>Po(e,...n))}const mr={};function Ro(e){if(!si(e))return e in mr?mr[e]:Promise.resolve();const t=Fu(e);return mr[e]=Promise.all(t.map(([r,n])=>Gu(r,n))).then(()=>{if(si(e))return Ro(e);delete mr[e]}),mr[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"}}},ju={fallbackLocale:null,loadingDelay:200,formats:ku,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Vu=ju;function nr(){return Vu}const Pn=gn(!1);var Xu=Object.defineProperty,zu=Object.defineProperties,Wu=Object.getOwnPropertyDescriptors,Qi=Object.getOwnPropertySymbols,qu=Object.prototype.hasOwnProperty,Zu=Object.prototype.propertyIsEnumerable,Ji=(e,t,r)=>t in e?Xu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Yu=(e,t)=>{for(var r in t||(t={}))qu.call(t,r)&&Ji(e,r,t[r]);if(Qi)for(var r of Qi(t))Zu.call(t,r)&&Ji(e,r,t[r]);return e},Qu=(e,t)=>zu(e,Wu(t));let oi;const on=gn(null);function Ki(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function En(e,t=nr().fallbackLocale){const r=Ki(e);return t?[...new Set([...r,...Ki(t)])]:r}function It(){return oi!=null?oi:void 0}on.subscribe(e=>{oi=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Ju=e=>{if(e&&Du(e)&&si(e)){const{loadingDelay:t}=nr();let r;return typeof window!="undefined"&&It()!=null&&t?r=window.setTimeout(()=>Pn.set(!0),t):Pn.set(!0),Ro(e).then(()=>{on.set(e)}).finally(()=>{clearTimeout(r),Pn.set(!1)})}return on.set(e)},ut=Qu(Yu({},on),{set:Ju}),xn=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var Ku=Object.defineProperty,an=Object.getOwnPropertySymbols,Lo=Object.prototype.hasOwnProperty,Mo=Object.prototype.propertyIsEnumerable,es=(e,t,r)=>t in e?Ku(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ai=(e,t)=>{for(var r in t||(t={}))Lo.call(t,r)&&es(e,r,t[r]);if(an)for(var r of an(t))Mo.call(t,r)&&es(e,r,t[r]);return e},lr=(e,t)=>{var r={};for(var n in e)Lo.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&an)for(var n of an(e))t.indexOf(n)<0&&Mo.call(e,n)&&(r[n]=e[n]);return r};const Ar=(e,t)=>{const{formats:r}=nr();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},ef=xn(e=>{var t=e,{locale:r,format:n}=t,i=lr(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=Ar("number",n)),new Intl.NumberFormat(r,i)}),tf=xn(e=>{var t=e,{locale:r,format:n}=t,i=lr(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=Ar("date",n):Object.keys(i).length===0&&(i=Ar("date","short")),new Intl.DateTimeFormat(r,i)}),rf=xn(e=>{var t=e,{locale:r,format:n}=t,i=lr(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=Ar("time",n):Object.keys(i).length===0&&(i=Ar("time","short")),new Intl.DateTimeFormat(r,i)}),nf=(e={})=>{var t=e,{locale:r=It()}=t,n=lr(t,["locale"]);return ef(Ai({locale:r},n))},sf=(e={})=>{var t=e,{locale:r=It()}=t,n=lr(t,["locale"]);return tf(Ai({locale:r},n))},of=(e={})=>{var t=e,{locale:r=It()}=t,n=lr(t,["locale"]);return rf(Ai({locale:r},n))},af=xn((e,t=It())=>new Cu(e,t,nr().formats,{ignoreTag:nr().ignoreTag})),lf=(e,t={})=>{var r,n,i,s;let o=t;typeof e=="object"&&(o=e,e=o.id);const{values:a,locale:l=It(),default:u}=o;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let f=Bo(e,l);if(!f)f=(s=(i=(n=(r=nr()).handleMissingMessage)==null?void 0:n.call(r,{locale:l,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(!a)return f;let d=f;try{d=af(f,l).format(a)}catch(c){c instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,c.message)}return d},uf=(e,t)=>of(t).format(e),ff=(e,t)=>sf(t).format(e),hf=(e,t)=>nf(t).format(e),cf=(e,t=It())=>Bo(e,t),$o=or([ut,ar],()=>lf);or([ut],()=>uf);or([ut],()=>ff);or([ut],()=>hf);or([ut,ar],()=>cf);function Do({withLocale:e,translations:t}){ut.subscribe(r=>{r==null&&(ar.set(t),ut.set(e))})}function ai(e,t){Po(e,t)}function df(e){ut.set(e)}const pf={en:{loading:"Loading…",noContent:"There is no bonus items available for redemption.",networkProblem:"Network problem. Please reload.",coins:"Tokens",buyNow:"Buy Now",generalError:"Something went wrong... Please try again."},tr:{loading:"Yükleniyor",noContent:"There is no bonus items available for redemption.",networkProblem:"Ağ sorunu. Lütfen yeniden yükleyin.",coins:"Tokens",buyNow:"Satın Al",generalError:"Bir sorun oluştu, lütfen tekrar deneyin."}},vf="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 mf=Ue('<div class="loyalty-shop__item loyalty-shop__item--skeleton svelte-ay4lyh"><div class="loyalty-shop__item-image skeleton-box svelte-ay4lyh"></div> <div class="loyalty-shop__item-title skeleton-line svelte-ay4lyh"></div> <div class="loyalty-shop__item-points skeleton-line skeleton-line--short svelte-ay4lyh"></div> <div class="loyalty-shop__item-button-skeleton skeleton-box svelte-ay4lyh"></div></div>'),_f=Ue('<div class="loyalty-shop__grid loyalty-shop__grid--skeleton svelte-ay4lyh"></div>'),gf=Ue('<div class="loyalty-shop__unavailable svelte-ay4lyh"> </div>'),yf=Ue('<div role="button" tabindex="0" class="loyalty-shop__item-image-container svelte-ay4lyh"><img class="loyalty-shop__item-image svelte-ay4lyh"/></div>'),bf=Ue('<div><!> <span class="loyalty-shop__item-title svelte-ay4lyh"> </span> <span class="loyalty-shop__item-points svelte-ay4lyh"> </span> <button class="loyalty-shop__item-button svelte-ay4lyh" type="button"> </button></div>'),Ef=Ue("<loyalty-pagination></loyalty-pagination>",2),xf=Ue('<div class="load-more-sentinel svelte-ay4lyh" aria-hidden="true"></div>'),wf=Ue('<div class="loyalty-shop__grid svelte-ay4lyh"></div> <!> <!>',1),Tf=Ue('<div class="loyalty-shop svelte-ay4lyh"><!></div>');const Sf={hash:"svelte-ay4lyh",code:`.loyalty-shop.svelte-ay4lyh {padding:16px;border-radius:6px;border:1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));background-color:var(--app-container-bg-default, #022652);width:100%;box-sizing:border-box;display:flex;flex-direction:column;gap:16px;}.loyalty-shop__unavailable.svelte-ay4lyh {color:var(--text-subtle, #dfe3e8);font-size:14px;padding:24px 0;text-align:center;}.loyalty-shop__grid.svelte-ay4lyh {display:grid;gap:16px;grid-template-columns:repeat(2, 1fr);margin:0;}.loyalty-shop__item.svelte-ay4lyh {display:flex;flex-direction:column;gap:8px;padding:16px;border-radius:10px;border:1px solid var(--border-default, rgba(251, 251, 251, 0.15));background-color:var(--app-container-bg-subtle, rgba(251, 251, 251, 0.1));}.loyalty-shop__item--unavailable.svelte-ay4lyh {opacity:1;}.loyalty-shop__item-image.svelte-ay4lyh {width:100%;height:82px;border-radius:6px;}.loyalty-shop__item-title.svelte-ay4lyh {color:var(--text-default, #ffffff);font-size:12px;font-weight:400;}.loyalty-shop__item-points.svelte-ay4lyh {color:var(--text-subtle, #dfe3e8);font-size:14px;font-weight:400;}.loyalty-shop__item-button.svelte-ay4lyh {margin-top:auto;width:100%;height:37px;padding:8px 16px;border:none;border-radius:6px;background:var(--button-primary-bg-default, #ffcc00);color:var(--button-primary-text-default, #261d00);font-size:12px;font-weight:400;cursor:pointer;}.loyalty-shop__item-button.svelte-ay4lyh:disabled {opacity:0.4;cursor:default;}.skeleton-box.svelte-ay4lyh {background:linear-gradient(
6
- 90deg,
7
- var(--app-container-bg-subtle, rgba(251, 251, 251, 0.1)) 0%,
8
- color-mix(in srgb, var(--app-container-bg-subtle, rgba(251, 251, 251, 0.1)) 80%, white) 50%,
9
- var(--app-container-bg-subtle, rgba(251, 251, 251, 0.1)) 100%
10
- );background-size:200% 100%;
11
- animation: svelte-ay4lyh-shimmer 3s linear infinite;border-radius:6px;}.skeleton-line.svelte-ay4lyh {height:14px;border-radius:6px;background:linear-gradient(
12
- 90deg,
13
- var(--app-container-bg-subtle, rgba(251, 251, 251, 0.1)) 0%,
14
- color-mix(in srgb, var(--app-container-bg-subtle, rgba(251, 251, 251, 0.1)) 80%, white) 50%,
15
- var(--app-container-bg-subtle, rgba(251, 251, 251, 0.1)) 100%
16
- );background-size:200% 100%;
17
- animation: svelte-ay4lyh-shimmer 3s linear infinite;}.skeleton-line--short.svelte-ay4lyh {width:40%;}.loyalty-shop__item--skeleton.svelte-ay4lyh {display:flex;flex-direction:column;}.loyalty-shop__item--skeleton.svelte-ay4lyh .loyalty-shop__item-image:where(.svelte-ay4lyh) {width:100%;height:82px;border-radius:6px;}.loyalty-shop__item--skeleton.svelte-ay4lyh .loyalty-shop__item-title:where(.svelte-ay4lyh) {width:90%;}.loyalty-shop__item--skeleton.svelte-ay4lyh .loyalty-shop__item-points:where(.svelte-ay4lyh) {width:40%;}.loyalty-shop__item-button-skeleton.svelte-ay4lyh {margin-top:auto;width:100%;height:40px;border-radius:6px;}.loyalty-shop__item-image-container.svelte-ay4lyh {cursor:pointer;}
18
-
19
- @keyframes svelte-ay4lyh-shimmer {
20
- 0% {
21
- background-position: 200% 0;
22
- }
23
-
24
- 100% {
25
- background-position: -200% 0;
26
- }
27
- }
28
-
29
- @media (min-width: 768px) {.loyalty-shop__grid.svelte-ay4lyh {grid-template-columns:repeat(4, 1fr);justify-content:start;margin:0;}.loyalty-shop__item.svelte-ay4lyh {width:100%;height:100%;box-sizing:border-box;}.loyalty-shop__item-image.svelte-ay4lyh {height:200px;}.loyalty-shop__item--skeleton.svelte-ay4lyh .loyalty-shop__item-image:where(.svelte-ay4lyh) {height:200px;}
30
- }`};function Uo(e,t){ci(t,!0),oo(e,Sf);const r=()=>lo($o,"$_",n),[n,i]=uo(),s=Ut(t,"apiEndpoint",7,""),o=Ut(t,"userSession",7,""),a=Ut(t,"locale",7,""),l=Ut(t,"limitItem",7,br),u=Ut(t,"translationUrl");Do({withLocale:a(),translations:{}});const f=()=>{let g=new URL(u(),window.location.href);fetch(g.href).then(T=>T.json()).then(T=>{Object.keys(T).forEach(R=>{ai(R,T[R])})}).catch(T=>{console.log("loyalty shop translation url err:",T)})};Object.entries(pf).forEach(([g,T])=>{ai(g,T)});let d=j(mt([])),c=j(0),p=j(0),_=j(mt(Gi)),b=j(!1),v=j(!1),y=j(void 0),P=j(!1),C=j(void 0),$=0;const X=Fn(()=>typeof l()=="number"?l():parseInt(l(),br)||br);let Z=j(void 0);const G=()=>{if(!s()||!o())return;I(b,!0),I(v,!1);const g=++$,T=m(P)&&m(p)>0;yl({apiEndpoint:s(),userSession:o(),locale:a()},m(p),m(_)).then(R=>{var Ye,ce;if(g!==$)return;const ne=(Ye=R.data)!=null?Ye:[];I(c,(ce=R.total)!=null?ce:0,!0),T?I(d,[...m(d),...ne],!0):I(d,ne,!0)}).catch(R=>{g===$&&(I(v,!0),console.error("Failed to load shop rewards:",R))}).finally(()=>{g===$&&I(b,!1)})};dt(()=>{s(),o(),a(),m(p),m(_),G()}),dt(()=>{const g=window.matchMedia("(max-width: 767px)"),T=R=>{I(P,R.matches,!0)};return I(P,g.matches,!0),g.addEventListener("change",T),()=>g.removeEventListener("change",T)}),dt(()=>{I(_,m(P)?Gi:m(X),!0)}),dt(()=>{if(!m(P)||!m(C))return;const g=new IntersectionObserver(T=>{T.some(R=>R.isIntersecting)&&m(d).length<m(c)&&I(p,m(p)+m(_))},{rootMargin:"200px"});return g.observe(m(C)),()=>g.disconnect()}),dt(()=>{m(Z)&&(m(Z).onPageChange=ur)}),ka(()=>{u()&&f()});const Be=g=>{var T,R,ne;return(ne=(R=(T=g.presentation)==null?void 0:T.assets)==null?void 0:R[0])!=null?ne:""},Fe=g=>{var T,R,ne;return(ne=(R=(T=g.presentation)==null?void 0:T.displayName)!=null?R:g.displayName)!=null?ne:""},Y=g=>g.available==="true",Pt=g=>{m(y)||!Y(g)||xl(g.displayName||g.presentation.displayName,g.id)},Ct=g=>vr(this,null,function*(){if(!(!s()||m(y))){I(y,g,!0);try{yield bl({apiEndpoint:s(),userSession:o()},g),wl(g),Sl(),G()}catch(T){Tl(g,T)}finally{I(y,void 0)}}});dt(()=>{const g=T=>{var ne,Ye;const R=(ne=T.data)==null?void 0:ne.id;((Ye=T.data)==null?void 0:Ye.type)===_l.REDEEM_REWARD_CONFIRMED&&R&&m(d).some(ce=>ce.id===R)&&Ct(R)};return window.addEventListener("message",g),()=>window.removeEventListener("message",g)});const Cr=()=>m(d).length?r()("generalError"):r()("noContent"),ur=g=>{I(p,g,!0)},fr=g=>{El(g.displayName||g.presentation.displayName,g.id)},Rr=g=>{fr(g)},Lr=g=>T=>{T.key==="Enter"&&fr(g)};var Mr={get apiEndpoint(){return s()},set apiEndpoint(g=""){s(g),pt()},get userSession(){return o()},set userSession(g=""){o(g),pt()},get locale(){return a()},set locale(g=""){a(g),pt()},get limitItem(){return l()},set limitItem(g=br){l(g),pt()},get translationUrl(){return u()},set translationUrl(g){u(g),pt()}},ae=Tf(),$r=et(ae);{var Fo=g=>{var T=_f();Wn(T,21,()=>Array(m(_)),so,(R,ne,Ye,ce)=>{var Qe=mf();de(R,Qe)}),Ie(T),de(g,T)},Go=g=>{var T=ro(),R=jn(T);{var ne=ce=>{var Qe=gf(),hr=et(Qe,!0);Ie(Qe),tt(Dr=>gr(hr,Dr),[Cr]),de(ce,Qe)},Ye=ce=>{var Qe=wf(),hr=jn(Qe);Wn(hr,21,()=>m(d),Te=>Te.id,(Te,M)=>{var Je=bf();let Hi;var Ni=et(Je);{var zo=cr=>{var ht=yf();ht.__click=()=>Rr(m(M));var dr=Fn(()=>Lr(m(M)));ht.__keydown=function(...pr){var ct;(ct=m(dr))==null||ct.apply(this,pr)};var Fr=et(ht);Ie(ht),tt((pr,ct)=>{Zn(Fr,"src",pr),Zn(Fr,"alt",ct)},[()=>Be(m(M))||vf,()=>Fe(m(M))]),de(cr,ht)};Dt(Ni,cr=>{Be(m(M))&&cr(zo)})}var wn=$t(Ni,2),Wo=et(wn,!0);Ie(wn);var Tn=$t(wn,2),qo=et(Tn);Ie(Tn);var Ur=$t(Tn,2);Ur.__click=()=>Pt(m(M));var Zo=et(Ur,!0);Ie(Ur),Ie(Je),tt((cr,ht,dr,Fr,pr)=>{var ct;Hi=qn(Je,1,"loyalty-shop__item svelte-ay4lyh",null,Hi,cr),gr(Wo,ht),gr(qo,`${(ct=m(M).points)!=null?ct:""}
31
- ${dr!=null?dr:""}`),Ur.disabled=Fr,gr(Zo,pr)},[()=>({"loyalty-shop__item--unavailable":!Y(m(M))}),()=>Fe(m(M)),()=>r()("tokens"),()=>!Y(m(M))||m(y)===m(M).id,()=>r()("buyNow")]),de(Te,Je)}),Ie(hr);var Dr=$t(hr,2);{var jo=Te=>{var M=Ef();tt(()=>Vr(M,"offset",m(p))),tt(()=>Vr(M,"limit",m(_))),tt(()=>Vr(M,"total",m(c))),tt(()=>Vr(M,"locale",a())),qn(M,1,"svelte-ay4lyh"),Fi(M,Je=>I(Z,Je),()=>m(Z)),Qa("PageChange",M,ur),de(Te,M)};Dt(Dr,Te=>{m(P)||Te(jo)})}var Vo=$t(Dr,2);{var Xo=Te=>{var M=xf();Fi(M,Je=>I(C,Je),()=>m(C)),de(Te,M)};Dt(Vo,Te=>{m(P)&&m(d).length<m(c)&&Te(Xo)})}de(ce,Qe)};Dt(R,ce=>{!m(d).length||m(v)?ce(ne):ce(Ye,!1)},!0)}de(g,T)};Dt($r,g=>{m(b)&&m(d).length===0?g(Fo):g(Go,!1)})}Ie(ae),de(e,ae);var ko=di(Mr);return i(),ko}to(["click","keydown"]);customElements.define("loyalty-shop",ho(Uo,{apiEndpoint:{},userSession:{},locale:{},limitItem:{},translationUrl:{}},[],[],!1));const Af=Object.freeze(Object.defineProperty({__proto__:null,default:Uo},Symbol.toStringTag,{value:"Module"}));exports.$format=$o;exports.LoyaltyShop_ce=Af;exports.addNewMessages=ai;exports.append=de;exports.append_styles=oo;exports.child=et;exports.comment=ro;exports.create_custom_element=ho;exports.delegate=to;exports.each=Wn;exports.first_child=jn;exports.flushSync=pt;exports.from_html=Ue;exports.get=m;exports.if_block=Dt;exports.index=so;exports.pop=di;exports.prop=Ut;exports.push=ci;exports.reset=Ie;exports.set=I;exports.setLocale=df;exports.set_class=qn;exports.set_text=gr;exports.setupI18n=Do;exports.setup_stores=uo;exports.sibling=$t;exports.state=j;exports.store_get=lo;exports.template_effect=tt;exports.user_derived=Fn;exports.user_effect=dt;
@@ -1 +0,0 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/LoyaltyShop-rDkxy2lO.cjs")).then(e=>e.LoyaltyShop_ce).then(({default:e})=>{!customElements.get("loyalty-shop")&&customElements.define("loyalty-shop",e.element)})}
@@ -1,16 +0,0 @@
1
- if (typeof window != "undefined") {
2
- let n = function(e) {
3
- return function(...s) {
4
- try {
5
- return e.apply(this, s);
6
- } catch (t) {
7
- if (t instanceof DOMException && t.message.includes("has already been used with this registry") || t.message.includes("Cannot define multiple custom elements with the same tag name"))
8
- return !1;
9
- throw t;
10
- }
11
- };
12
- };
13
- customElements.define = n(customElements.define), import("../components/LoyaltyShop-CXYYTheE.js").then((e) => e.L).then(({ default: e }) => {
14
- !customElements.get("loyalty-shop") && customElements.define("loyalty-shop", e.element);
15
- });
16
- }