@everymatrix/loyalty-shop 0.1.18 → 0.1.20

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.
Files changed (23) hide show
  1. package/components/LoyaltyPagination-ChnSUs6d.cjs +14 -0
  2. package/components/{LoyaltyPagination-Bdx-smp6.js → LoyaltyPagination-D7m97E0W.js} +2283 -2227
  3. package/components/LoyaltyPagination-DzmuO9_8.cjs +14 -0
  4. package/components/{LoyaltyPagination-kvqB9vki.js → LoyaltyPagination-o3rQCgms.js} +2287 -2232
  5. package/components/{LoyaltyPointsCard-a-ERcIbF.cjs → LoyaltyPointsCard-46BqNZEK.cjs} +3 -3
  6. package/components/{LoyaltyPointsCard-DAwt9_VW.cjs → LoyaltyPointsCard-5kjF6xRz.cjs} +3 -3
  7. package/components/{LoyaltyPointsCard-Dte4kVve.js → LoyaltyPointsCard-CdBEe40I.js} +64 -68
  8. package/components/{LoyaltyPointsCard-CpUgbUoh.js → LoyaltyPointsCard-SZEIZzo0.js} +59 -63
  9. package/components/{LoyaltyShop-ICV4lgAz.cjs → LoyaltyShop-B2lSw5jy.cjs} +3 -3
  10. package/components/{LoyaltyShop-D4hhy3SS.js → LoyaltyShop-DGAZjo_P.js} +141 -149
  11. package/components/{LoyaltyShop-Dvy8bKVO.cjs → LoyaltyShop-DGLy6Hu5.cjs} +3 -3
  12. package/components/{LoyaltyShop-B5kW3Kng.js → LoyaltyShop-_bWN39Rn.js} +135 -143
  13. package/components/{LoyaltyShopItem-B-9ignkf.js → LoyaltyShopItem-CtZFkxzA.js} +68 -72
  14. package/components/{LoyaltyShopItem-DY4h5OAR.cjs → LoyaltyShopItem-DpFV9qnk.cjs} +3 -3
  15. package/components/{LoyaltyShopItem-Dwm024JF.js → LoyaltyShopItem-DxwkafBG.js} +81 -85
  16. package/components/{LoyaltyShopItem-DCnDun5S.cjs → LoyaltyShopItem-PkfmBV5A.cjs} +3 -3
  17. package/es2015/loyalty-shop.cjs +1 -1
  18. package/es2015/loyalty-shop.js +2 -2
  19. package/esnext/loyalty-shop.cjs +1 -1
  20. package/esnext/loyalty-shop.js +2 -2
  21. package/package.json +1 -1
  22. package/components/LoyaltyPagination-ClX3N4HA.cjs +0 -16
  23. package/components/LoyaltyPagination-DdJI2Ptf.cjs +0 -16
@@ -1,16 +0,0 @@
1
- typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const Us="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(Us);const Fs=1,Gs=2,ti=4,ks=8,js=16,Vs=1,Xs=2,ri="[",hn="[!",Nn="[?",cn="]",vt={},Z=Symbol("uninitialized"),Ws="http://www.w3.org/1999/xhtml",ni=!1;var ii=Array.isArray,Ys=Array.prototype.indexOf,ar=Array.prototype.includes,mr=Array.from,or=Object.keys,Ut=Object.defineProperty,ct=Object.getOwnPropertyDescriptor,zs=Object.getOwnPropertyDescriptors,qs=Object.prototype,Zs=Array.prototype,si=Object.getPrototypeOf,In=Object.isExtensible;const Be=()=>{};function ai(e){for(var t=0;t<e.length;t++)e[t]()}function oi(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const Q=2,_t=4,Vt=8,ui=1<<24,ye=16,_e=32,Pe=64,Gr=128,ve=512,J=1024,q=2048,we=4096,re=8192,de=16384,nt=32768,kr=1<<25,mt=65536,ur=1<<17,Js=1<<18,it=1<<19,li=1<<20,He=1<<25,et=65536,lr=1<<21,dt=1<<22,Ve=1<<23,Qt=Symbol("$state"),Qs=Symbol("legacy props"),Ks=Symbol(""),fi=Symbol("attributes"),jr=Symbol("class"),ea=Symbol("style"),Vr=Symbol("text"),Xt=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},ta=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),gr=3,Wt=8;function ra(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function na(e,t,r){throw new Error("https://svelte.dev/e/each_key_duplicate")}function ia(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function sa(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function aa(e){throw new Error("https://svelte.dev/e/effect_orphan")}function oa(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function ua(){throw new Error("https://svelte.dev/e/hydration_failed")}function la(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function fa(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function ha(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function ca(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function da(){console.warn("https://svelte.dev/e/derived_inert")}function br(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function pa(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let C=!1;function Le(e){C=e}let L;function ue(e){if(e===null)throw br(),vt;return L=e}function yr(){return ue(Ie(L))}function ut(e){if(C){if(Ie(L)!==null)throw br(),vt;L=e}}function va(e=1){if(C){for(var t=e,r=L;t--;)r=Ie(r);L=r}}function fr(e=!0){for(var t=0,r=L;;){if(r.nodeType===Wt){var n=r.data;if(n===cn){if(t===0)return r;t-=1}else(n===ri||n===hn||n[0]==="["&&!isNaN(Number(n.slice(1))))&&(t+=1)}var i=Ie(r);e&&r.remove(),r=i}}function hi(e){if(!e||e.nodeType!==Wt)throw br(),vt;return e.data}function ci(e){return e===this.v}function di(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function pi(e){return!di(e,this.v)}let _a=!1,ne=null;function gt(e){ne=e}function Er(e,t=!1,r){ne={p:ne,i:!1,c:null,e:null,s:e,x:null,r:M,l:null}}function xr(e){var t=ne,r=t.e;if(r!==null){t.e=null;for(var n of r)Ri(n)}return e!==void 0&&(t.x=e),t.i=!0,ne=t.p,e??{}}function vi(){return!0}let Ze=[];function _i(){var e=Ze;Ze=[],ai(e)}function Ge(e){if(Ze.length===0&&!Ct){var t=Ze;queueMicrotask(()=>{t===Ze&&_i()})}Ze.push(e)}function ma(){for(;Ze.length>0;)_i()}function mi(e){var t=M;if(t===null)return P.f|=Ve,e;if(!(t.f&nt)&&!(t.f&_t))throw e;ke(e,t)}function ke(e,t){if(!(t!==null&&t.f&de)){for(;t!==null;){if(t.f&Gr){if(!(t.f&nt))throw e;try{t.b.error(e);return}catch(r){e=r}}t=t.parent}throw e}}const ga=-7169;function X(e,t){e.f=e.f&ga|t}function dn(e){e.f&ve||e.deps===null?X(e,J):X(e,we)}function gi(e){if(e!==null)for(const t of e)!(t.f&Q)||!(t.f&et)||(t.f^=et,gi(t.deps))}function bi(e,t,r){e.f&q?t.add(e):e.f&we&&r.add(e),gi(e.deps),X(e,J)}function pn(e,t,r){if(e==null)return t(void 0),r&&r(void 0),Be;const n=An(()=>e.subscribe(t,r));return n.unsubscribe?()=>n.unsubscribe():n}const at=[];function ba(e,t){return{subscribe:wr(e,t).subscribe}}function wr(e,t=Be){let r=null;const n=new Set;function i(o){if(di(e,o)&&(e=o,r)){const u=!at.length;for(const l of n)l[1](),at.push(l,e);if(u){for(let l=0;l<at.length;l+=2)at[l][0](at[l+1]);at.length=0}}}function s(o){i(o(e))}function a(o,u=Be){const l=[o,u];return n.add(l),n.size===1&&(r=t(i,s)||Be),o(e),()=>{n.delete(l),n.size===0&&r&&(r(),r=null)}}return{set:i,update:s,subscribe:a}}function St(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 ba(r,(a,o)=>{let u=!1;const l=[];let f=0,c=Be;const h=()=>{if(f)return;c();const p=t(n?l[0]:l,a,o);s?a(p):c=typeof p=="function"?p:Be},d=i.map((p,y)=>pn(p,m=>{l[y]=m,f&=~(1<<y),u&&h()},()=>{f|=1<<y}));return u=!0,h(),function(){ai(d),c(),u=!1}})}function ya(e){let t;return pn(e,r=>t=r)(),t}let Xr=Symbol("unmounted");function yi(e,t,r){const n=r[t]??={store:null,source:gn(void 0),unsubscribe:Be};if(n.store!==e&&!(Xr in r))if(n.unsubscribe(),n.store=e??null,e==null)n.source.v=void 0,n.unsubscribe=Be;else{var i=!0;n.unsubscribe=pn(e,s=>{i?n.source.v=s:Y(n.source,s)}),i=!1}return e&&Xr in r?ya(e):x(n.source)}function Ei(){const e={};function t(){Ci(()=>{for(var r in e)e[r].unsubscribe();Ut(e,Xr,{enumerable:!1,value:!0})})}return[e,t]}function Tr(e){var t=P,r=M;me(null),Ne(null);try{return e()}finally{me(t),Ne(r)}}function Ea(e){let t=0,r=tt(0),n;return()=>{En()&&(x(r),xn(()=>(t===0&&(n=An(()=>e(()=>Rt(r)))),t+=1,()=>{Ge(()=>{t-=1,t===0&&(n?.(),n=void 0,Rt(r))})})))}}var xa=mt|it;function wa(e,t,r,n){new Ta(e,t,r,n)}class Ta{parent;is_pending=!1;transform_error;#e;#t=C?L:null;#r;#u;#i;#a=null;#n=null;#o=null;#s=null;#v=0;#l=0;#f=!1;#c=new Set;#_=new Set;#h=null;#g=Ea(()=>(this.#h=tt(this.#v),()=>{this.#h=null}));constructor(t,r,n,i){this.#e=t,this.#r=r,this.#u=s=>{var a=M;a.b=this,a.f|=Gr,n(s)},this.parent=M.b,this.transform_error=i??this.parent?.transform_error??(s=>s),this.#i=wn(()=>{if(C){const s=this.#t;yr();const a=s.data===hn;if(s.data.startsWith(Nn)){const u=JSON.parse(s.data.slice(Nn.length));this.#b(u)}else a?this.#x():this.#m()}else this.#d()},xa),C&&(this.#e=L)}#m(){try{this.#a=ge(()=>this.#u(this.#e))}catch(t){this.error(t)}}#b(t){const r=this.#r.failed,{reset:n,invoke_onerror:i}=this.#y(t);Ge(i),r&&(this.#o=ge(()=>{r(this.#e,()=>t,()=>n)}))}#y(t){var r=!1,n=!1;const i=()=>{if(r){pa();return}r=!0,n&&ca(),this.#o!==null&&Qe(this.#o,()=>{this.#o=null}),this.#p(()=>{this.#d()})};return{reset:i,invoke_onerror:()=>{try{n=!0,this.#r.onerror?.(t,i),n=!1}catch(a){ke(a,this.#i&&this.#i.parent)}}}}#x(){const t=this.#r.pending;t&&(this.is_pending=!0,this.#n=ge(()=>t(this.#e)),Ge(()=>{var r=this.#s=document.createDocumentFragment(),n=Te();r.append(n),this.#a=this.#p(()=>ge(()=>this.#u(n))),this.#l===0&&(this.#e.before(r),this.#s=null,Qe(this.#n,()=>{this.#n=null}),this.#E($))}))}#d(){try{if(this.is_pending=this.has_pending_snippet(),this.#l=0,this.#v=0,this.#a=ge(()=>{this.#u(this.#e)}),this.#l>0){var t=this.#s=document.createDocumentFragment();Sn(this.#a,t);const r=this.#r.pending;this.#n=ge(()=>r(this.#e))}else this.#E($)}catch(r){this.error(r)}}#E(t){this.is_pending=!1,t.transfer_effects(this.#c,this.#_)}defer_effect(t){bi(t,this.#c,this.#_)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#r.pending}#p(t){var r=M,n=P,i=ne;Ne(this.#i),me(this.#i),gt(this.#i.ctx);try{return Ce.ensure(),t()}catch(s){return mi(s),null}finally{Ne(r),me(n),gt(i)}}#w(t,r){if(!this.has_pending_snippet()){this.parent&&this.parent.#w(t,r);return}this.#l+=t,this.#l===0&&(this.#E(r),this.#n&&Qe(this.#n,()=>{this.#n=null}),this.#s&&(this.#e.before(this.#s),this.#s=null))}update_pending_count(t,r){this.#w(t,r),this.#v+=t,!(!this.#h||this.#f)&&(this.#f=!0,Ge(()=>{this.#f=!1,this.#h&&bt(this.#h,this.#v)}))}get_effect_pending(){return this.#g(),x(this.#h)}error(t){if(!this.#r.onerror&&!this.#r.failed)throw t;$?.is_fork?(this.#a&&$.skip_effect(this.#a),this.#n&&$.skip_effect(this.#n),this.#o&&$.skip_effect(this.#o),$.oncommit(()=>{this.#T(t)})):this.#T(t)}#T(t){this.#a&&(ie(this.#a),this.#a=null),this.#n&&(ie(this.#n),this.#n=null),this.#o&&(ie(this.#o),this.#o=null),C&&(ue(this.#t),va(),ue(fr()));let r=this.#r.failed;const n=i=>{const{reset:s,invoke_onerror:a}=this.#y(i);a(),r&&(this.#o=this.#p(()=>{try{return ge(()=>{var o=M;o.b=this,o.f|=Gr,r(this.#e,()=>i,()=>s)})}catch(o){return ke(o,this.#i.parent),null}}))};Ge(()=>{var i;try{i=this.transform_error(t)}catch(s){ke(s,this.#i&&this.#i.parent);return}i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(n,s=>ke(s,this.#i&&this.#i.parent)):n(i)})}}function Sa(e,t,r,n){const i=Sr;var s=e.filter(d=>!d.settled),a=t.map(i);if(r.length===0&&s.length===0){n(a);return}var o=M,u=Aa(),l=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(d=>d.promise)):null;function f(d){if(!(o.f&de)){u();try{n([...a,...d])}catch(p){ke(p,o)}hr()}}var c=xi();if(r.length===0){l.then(()=>f([])).finally(c);return}function h(){Promise.all(r.map(d=>Ha(d))).then(f).catch(d=>ke(d,o)).finally(c)}l?l.then(()=>{u(),h(),hr()}):h()}function Aa(){var e=M,t=P,r=ne,n=$;return function(s=!0){Ne(e),me(t),gt(r),s&&!(e.f&de)&&(n?.activate(),n?.apply())}}function hr(e=!0){Ne(null),me(null),gt(null),e&&$?.deactivate()}function xi(){var e=M,t=e.b,r=$,n=!!t?.is_rendered();return t?.update_pending_count(1,r),r.increment(n,e),()=>{t?.update_pending_count(-1,r),r.decrement(n,e)}}function Sr(e){var t=Q|q;return M!==null&&(M.f|=it),{ctx:ne,deps:null,effects:null,equals:ci,f:t,fn:e,reactions:null,rv:0,v:Z,wv:0,parent:M,ac:null}}const $t=Symbol("obsolete");function Ha(e,t,r){let n=M;n===null&&ra();var i=void 0,s=tt(Z),a=!P,o=new Set;return Da(()=>{var u=M,l=oi();i=l.promise;try{Promise.resolve(e()).then(l.resolve,d=>{d!==Xt&&l.reject(d)}).finally(hr)}catch(d){l.reject(d),hr()}var f=$;if(a){if(u.f&nt)var c=xi();if(n.b?.is_rendered())f.async_deriveds.get(u)?.reject($t);else for(const d of o.values())d.reject($t);o.add(l),f.async_deriveds.set(u,l)}const h=(d,p=void 0)=>{c?.(),o.delete(l),p!==$t&&(f.activate(),p?(s.f|=Ve,bt(s,p)):(s.f&Ve&&(s.f^=Ve),bt(s,d)),f.deactivate())};l.promise.then(h,d=>h(null,d||"unknown"))}),Ci(()=>{for(const u of o)u.reject($t)}),new Promise(u=>{function l(f){function c(){f===i?u(s):l(i)}f.then(c,c)}l(i)})}function ze(e){const t=Sr(e);return ji(t),t}function Ma(e){const t=Sr(e);return t.equals=pi,t}function Oa(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)ie(t[r])}}function vn(e){var t,r=M,n=e.parent;if(!Re&&n!==null&&e.v!==Z&&n.f&(de|re))return da(),e.v;Ne(n);try{e.f&=~et,Oa(e),t=Yi(e)}finally{Ne(r)}return t}function wi(e){var t=vn(e);if(!e.equals(t)&&(e.wv=Xi(),(!$?.is_fork||e.deps===null)&&($!==null?($.capture(e,t,!0),Wr?.capture(e,t,!0)):e.v=t,e.deps===null))){X(e,J);return}Re||(Ee!==null?(En()||$?.is_fork)&&Ee.set(e,t):dn(e))}function Pa(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac!==null&&Tr(()=>{t.ac.abort(Xt),t.ac=null}),t.fn!==null&&(t.teardown=Be),Gt(t,0),Tn(t))}function Ti(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&t.fn!==null&&yt(t)}let Pr=null,ot=null,$=null,Wr=null,Ee=null,Yr=null,Ct=!1,Nr=!1,ft=null,Kt=null;var $n=0;let Na=1;class Ce{id=Na++;#e=!1;linked=!0;#t=null;#r=null;async_deriveds=new Map;current=new Map;previous=new Map;#u=new Set;#i=new Set;#a=0;#n=new Map;#o=null;#s=[];#v=[];#l=new Set;#f=new Set;#c=new Map;#_=new Set;is_fork=!1;#h=!1;constructor(){ot===null?Pr=ot=this:(ot.#r=this,this.#t=ot),ot=this}#g(){if(this.is_fork)return!0;for(const n of this.#n.keys()){for(var t=n,r=!1;t.parent!==null;){if(this.#c.has(t)){r=!0;break}t=t.parent}if(!r)return!0}return!1}skip_effect(t){this.#c.has(t)||this.#c.set(t,{d:[],m:[]}),this.#_.delete(t)}unskip_effect(t,r=n=>this.schedule(n)){var n=this.#c.get(t);if(n){this.#c.delete(t);for(var i of n.d)X(i,q),r(i);for(i of n.m)X(i,we),r(i)}this.#_.add(t)}#m(){this.#e=!0,$n++>1e3&&(this.#p(),Ia());for(const u of this.#l)this.#f.delete(u),X(u,q),this.schedule(u);for(const u of this.#f)X(u,we),this.schedule(u);const t=this.#s;this.#s=[],this.apply();var r=ft=[],n=[],i=Kt=[];for(const u of t)try{this.#b(u,r,n)}catch(l){throw Hi(u),this.#g()||this.discard(),l}if($=null,i.length>0){var s=Ce.ensure();for(const u of i)s.schedule(u)}if(ft=null,Kt=null,this.#g()){this.#d(n),this.#d(r);for(const[u,l]of this.#c)Ai(u,l);i.length>0&&$.#m();return}const a=this.#y();if(a){this.#d(n),this.#d(r),a.#x(this);return}this.#l.clear(),this.#f.clear();for(const u of this.#u)u(this);this.#u.clear(),Wr=this,Ln(n),Ln(r),Wr=null,this.#o?.resolve();var o=$;if(this.#a===0&&(this.#s.length===0||o!==null)&&this.#p(),this.#s.length>0)if(o!==null){const u=o;u.#s.push(...this.#s.filter(l=>!u.#s.includes(l)))}else o=this;o!==null&&(Me.clear(),o.#m())}#b(t,r,n){t.f^=J;for(var i=t.first;i!==null;){var s=i.f,a=(s&(_e|Pe))!==0,o=a&&(s&J)!==0,u=o||(s&re)!==0||this.#c.has(i);if(!u&&i.fn!==null){a?i.f^=J:s&_t?r.push(i):Yt(i)&&(s&ye&&this.#f.add(i),yt(i));var l=i.first;if(l!==null){i=l;continue}}for(;i!==null;){var f=i.next;if(f!==null){i=f;break}i=i.parent}}}#y(){for(var t=this.#t;t!==null;){if(!t.is_fork){for(const[r,[,n]]of this.current)if(t.current.has(r)&&!n)return t}t=t.#t}return null}#x(t){for(const[n,i]of t.current)!this.previous.has(n)&&t.previous.has(n)&&this.previous.set(n,t.previous.get(n)),this.current.set(n,i);for(const[n,i]of t.async_deriveds){const s=this.async_deriveds.get(n);s&&i.promise.then(s.resolve).catch(s.reject)}t.async_deriveds.clear(),this.transfer_effects(t.#l,t.#f);const r=n=>{var i=n.reactions;if(i!==null&&!(n.f&Q&&!(n.f&(q|we))))for(const o of i){var s=o.f;if(s&Q)r(o);else{var a=o;s&(dt|ye)&&!this.async_deriveds.has(a)&&(this.#f.delete(a),X(a,q),this.schedule(a))}}};for(const n of this.current.keys())r(n);this.oncommit(()=>t.discard()),t.#p(),$=this,this.#m()}#d(t){for(var r=0;r<t.length;r+=1)bi(t[r],this.#l,this.#f)}capture(t,r,n=!1){t.v!==Z&&!this.previous.has(t)&&this.previous.set(t,t.v),t.f&Ve||(this.current.set(t,[r,n]),Ee?.set(t,r)),this.is_fork||(t.v=r)}activate(){$=this}deactivate(){$=null,Ee=null}flush(){try{Nr=!0,$=this,this.#m()}finally{$n=0,Yr=null,ft=null,Kt=null,Nr=!1,$=null,Ee=null,Me.clear()}}discard(){for(const t of this.#i)t(this);this.#i.clear();for(const t of this.async_deriveds.values())t.reject($t);this.#p(),this.#o?.resolve()}register_created_effect(t){this.#v.push(t)}#E(){for(let c=Pr;c!==null;c=c.#r){var t=c.id<this.id,r=[];for(const[h,[d,p]]of this.current){if(c.current.has(h)){var n=c.current.get(h)[0];if(t&&d!==n)c.current.set(h,[d,p]);else continue}r.push(h)}if(t)for(const[h,d]of this.async_deriveds){const p=c.async_deriveds.get(h);p&&d.promise.then(p.resolve).catch(p.reject)}var i=[...c.current.keys()].filter(h=>!c.current.get(h)[1]);if(!(!c.#e||i.length===0)){var s=i.filter(h=>!this.current.has(h));if(s.length===0)t&&c.discard();else if(r.length>0){if(t)for(const h of this.#_)c.unskip_effect(h,d=>{d.f&(ye|dt)?c.schedule(d):c.#d([d])});c.activate();var a=new Set,o=new Map;for(var u of r)Si(u,s,a,o);o=new Map;var l=[...c.current].filter(([h,d])=>{const p=this.current.get(h);return p?p[0]!==d[0]||p[1]!==d[1]:!0}).map(([h])=>h);if(l.length>0)for(const h of this.#v)!(h.f&(de|re|ur))&&_n(h,l,o)&&(h.f&(dt|ye)?(X(h,q),c.schedule(h)):c.#l.add(h));if(c.#s.length>0&&!c.#h){c.apply();for(var f of c.#s)c.#b(f,[],[]);c.#s=[]}c.deactivate()}}}}increment(t,r){if(this.#a+=1,t){let n=this.#n.get(r)??0;this.#n.set(r,n+1)}}decrement(t,r){if(this.#a-=1,t){let n=this.#n.get(r)??0;n===1?this.#n.delete(r):this.#n.set(r,n-1)}this.#h||(this.#h=!0,Ge(()=>{this.#h=!1,this.linked&&this.flush()}))}transfer_effects(t,r){for(const n of t)this.#l.add(n);for(const n of r)this.#f.add(n);t.clear(),r.clear()}oncommit(t){this.#u.add(t)}ondiscard(t){this.#i.add(t)}settled(){return(this.#o??=oi()).promise}static ensure(){if($===null){const t=$=new Ce;!Nr&&!Ct&&Ge(()=>{t.#e||t.flush()})}return $}apply(){{Ee=null;return}}schedule(t){if(Yr=t,t.b?.is_pending&&t.f&(_t|Vt|ui)&&!(t.f&nt)){t.b.defer_effect(t);return}for(var r=t;r.parent!==null;){r=r.parent;var n=r.f;if(ft!==null&&r===M&&(P===null||!(P.f&Q)))return;if(n&(Pe|_e)){if(!(n&J))return;r.f^=J}}this.#s.push(r)}#p(){if(this.linked){var t=this.#t,r=this.#r;t===null?Pr=r:t.#r=r,r===null?ot=t:r.#t=t,this.linked=!1}}}function ce(e){var t=Ct;Ct=!0;try{for(var r;;){if(ma(),$===null)return r;$.flush()}}finally{Ct=t}}function Ia(){try{oa()}catch(e){ke(e,Yr)}}let $e=null;function Ln(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if(!(n.f&(de|re))&&Yt(n)&&($e=new Set,yt(n),n.deps===null&&n.first===null&&n.nodes===null&&n.teardown===null&&n.ac===null&&Fi(n),$e?.size>0)){Me.clear();for(const i of $e){if(i.f&(de|re))continue;const s=[i];let a=i.parent;for(;a!==null;)$e.has(a)&&($e.delete(a),s.push(a)),a=a.parent;for(let o=s.length-1;o>=0;o--){const u=s[o];u.f&(de|re)||yt(u)}}$e.clear()}}$e=null}}function Si(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?Si(i,t,r,n):s&(dt|ye)&&!(s&q)&&_n(i,t,n)&&(X(i,q),mn(i))}}function _n(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(ar.call(t,i))return!0;if(i.f&Q&&_n(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function mn(e){$.schedule(e)}function Ai(e,t){if(!(e.f&_e&&e.f&J)){e.f&q?t.d.push(e):e.f&we&&t.m.push(e),X(e,J);for(var r=e.first;r!==null;)Ai(r,t),r=r.next}}function Hi(e){X(e,J);for(var t=e.first;t!==null;)Hi(t),t=t.next}let cr=new Set;const Me=new Map;let Mi=!1;function tt(e,t){var r={f:0,v:e,reactions:null,equals:ci,rv:0,wv:0};return r}function K(e,t){const r=tt(e);return ji(r),r}function gn(e,t=!1,r=!0){const n=tt(e);return t||(n.equals=pi),n}function Y(e,t,r=!1){P!==null&&(!xe||P.f&ur)&&vi()&&P.f&(Q|ye|dt|ur)&&(Oe===null||!Oe.has(e))&&ha();let n=r?ht(t):t;return bt(e,n,Kt)}function bt(e,t,r=null){if(!e.equals(t)){Re?Me.set(e,t):Me.has(e)||Me.set(e,e.v);var n=Ce.ensure();if(n.capture(e,t),e.f&Q){const i=e;e.f&q&&vn(i),Ee===null&&dn(i)}e.wv=Xi(),Oi(e,q,r),M!==null&&M.f&J&&!(M.f&(_e|Pe))&&(pe===null?Ga([e]):pe.push(e)),!n.is_fork&&cr.size>0&&!Mi&&$a()}return t}function $a(){Mi=!1;for(const e of cr){e.f&J&&X(e,we);let t;try{t=Yt(e)}catch{t=!0}t&&yt(e)}cr.clear()}function Rt(e){Y(e,e.v+1)}function Oi(e,t,r){var n=e.reactions;if(n!==null)for(var i=n.length,s=0;s<i;s++){var a=n[s],o=a.f,u=(o&q)===0;if(u&&X(a,t),o&ur)cr.add(a);else if(o&Q){var l=a;Ee?.delete(l),o&et||(o&ve&&(M===null||!(M.f&lr))&&(a.f|=et),Oi(l,we,r))}else if(u){var f=a;o&ye&&$e!==null&&$e.add(f),r!==null?r.push(f):mn(f)}}}function ht(e){if(typeof e!="object"||e===null||Qt in e)return e;const t=si(e);if(t!==qs&&t!==Zs)return e;var r=new Map,n=ii(e),i=K(0),s=Ke,a=o=>{if(Ke===s)return o();var u=P,l=Ke;me(null),Rn(s);var f=o();return me(u),Rn(l),f};return n&&r.set("length",K(e.length)),new Proxy(e,{defineProperty(o,u,l){(!("value"in l)||l.configurable===!1||l.enumerable===!1||l.writable===!1)&&la();var f=r.get(u);return f===void 0?a(()=>{var c=K(l.value);return r.set(u,c),c}):Y(f,l.value,!0),!0},deleteProperty(o,u){var l=r.get(u);if(l===void 0){if(u in o){const f=a(()=>K(Z));r.set(u,f),Rt(i)}}else Y(l,Z),Rt(i);return!0},get(o,u,l){if(u===Qt)return e;var f=r.get(u),c=u in o;if(f===void 0&&(!c||ct(o,u)?.writable)&&(f=a(()=>{var d=ht(c?o[u]:Z),p=K(d);return p}),r.set(u,f)),f!==void 0){var h=x(f);return h===Z?void 0:h}return Reflect.get(o,u,l)},getOwnPropertyDescriptor(o,u){var l=Reflect.getOwnPropertyDescriptor(o,u);if(l&&"value"in l){var f=r.get(u);f&&(l.value=x(f))}else if(l===void 0){var c=r.get(u),h=c?.v;if(c!==void 0&&h!==Z)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return l},has(o,u){if(u===Qt)return!0;var l=r.get(u),f=l!==void 0&&l.v!==Z||Reflect.has(o,u);if(l!==void 0||M!==null&&(!f||ct(o,u)?.writable)){l===void 0&&(l=a(()=>{var h=f?ht(o[u]):Z,d=K(h);return d}),r.set(u,l));var c=x(l);if(c===Z)return!1}return f},set(o,u,l,f){var c=r.get(u),h=u in o;if(n&&u==="length")for(var d=l;d<c.v;d+=1){var p=r.get(d+"");p!==void 0?Y(p,Z):d in o&&(p=a(()=>K(Z)),r.set(d+"",p))}if(c===void 0)(!h||ct(o,u)?.writable)&&(c=a(()=>K(void 0)),Y(c,ht(l)),r.set(u,c));else{h=c.v!==Z;var y=a(()=>ht(l));Y(c,y)}var m=Reflect.getOwnPropertyDescriptor(o,u);if(m?.set&&m.set.call(f,l),!h){if(n&&typeof u=="string"){var T=r.get("length"),I=Number(u);Number.isInteger(I)&&I>=T.v&&Y(T,I+1)}Rt(i)}return!0},ownKeys(o){x(i);var u=Reflect.ownKeys(o).filter(c=>{var h=r.get(c);return h===void 0||h.v!==Z});for(var[l,f]of r)f.v!==Z&&!(l in o)&&u.push(l);return u},setPrototypeOf(){fa()}})}var Bn,Pi,Ni,Ii;function zr(){if(Bn===void 0){Bn=window,Pi=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Ni=ct(t,"firstChild").get,Ii=ct(t,"nextSibling").get,In(e)&&(e[jr]=void 0,e[fi]=null,e[ea]=void 0,e.__e=void 0),In(r)&&(r[Vr]=void 0)}}function Te(e=""){return document.createTextNode(e)}function rt(e){return Ni.call(e)}function Ie(e){return Ii.call(e)}function lt(e,t){if(!C)return rt(e);var r=rt(L);if(r===null)r=L.appendChild(Te());else if(t&&r.nodeType!==gr){var n=Te();return r?.before(n),ue(n),n}return t&&yn(r),ue(r),r}function $i(e,t=!1){if(!C){var r=rt(e);return r instanceof Comment&&r.data===""?Ie(r):r}if(t){if(L?.nodeType!==gr){var n=Te();return L?.before(n),ue(n),n}yn(L)}return L}function qr(e,t=1,r=!1){let n=C?L:e;for(var i;t--;)i=n,n=Ie(n);if(!C)return n;if(r){if(n?.nodeType!==gr){var s=Te();return n===null?i?.after(s):n.before(s),ue(s),s}yn(n)}return ue(n),n}function Li(e){e.textContent=""}function bn(e,t,r){return r?document.createElement(e,{is:r}):document.createElement(e)}function yn(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===gr;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Bi(e){M===null&&(P===null&&aa(),sa()),Re&&ia()}function La(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function Se(e,t){var r=M;r!==null&&r.f&re&&(e|=re);var n={ctx:ne,deps:null,nodes:null,f:e|q|ve,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};$?.register_created_effect(n);var i=n;if(e&_t)ft!==null?ft.push(n):Ce.ensure().schedule(n);else if(t!==null){try{yt(n)}catch(a){throw ie(n),a}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&it)&&(i=i.first,e&ye&&e&mt&&i!==null&&(i.f|=mt))}if(i!==null&&(i.parent=r,r!==null&&La(i,r),P!==null&&P.f&Q&&!(e&Pe))){var s=P;(s.effects??=[]).push(i)}return n}function En(){return P!==null&&!xe}function Ci(e){const t=Se(Vt,null);return X(t,J),t.teardown=e,t}function Ft(e){Bi();var t=M.f,r=!P&&(t&_e)!==0&&ne!==null&&!ne.i;if(r){var n=ne;(n.e??=[]).push(e)}else return Ri(e)}function Ri(e){return Se(_t|li,e)}function Ba(e){return Bi(),Se(Vt|li,e)}function Ca(e){Ce.ensure();const t=Se(Pe|it,e);return()=>{ie(t)}}function Ra(e){Ce.ensure();const t=Se(Pe|it,e);return(r={})=>new Promise(n=>{r.outro?Qe(t,()=>{ie(t),n(void 0)}):(ie(t),n(void 0))})}function Di(e){return Se(_t,e)}function Da(e){return Se(dt|it,e)}function xn(e,t=0){return Se(Vt|t,e)}function Zr(e,t=[],r=[],n=[]){Sa(n,t,r,i=>{Se(Vt,()=>{e(...i.map(x))})})}function wn(e,t=0){var r=Se(ye|t,e);return r}function ge(e){return Se(_e|it,e)}function Ui(e){var t=e.teardown;if(t!==null){const r=Re,n=P;Cn(!0),me(null);try{t.call(null)}finally{Cn(r),me(n)}}}function Tn(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&Tr(()=>{i.abort(Xt)});var n=r.next;r.f&Pe?r.parent=null:ie(r,t),r=n}}function Ua(e){for(var t=e.first;t!==null;){var r=t.next;t.f&_e||ie(t),t=r}}function ie(e,t=!0){var r=!1;(t||e.f&Js)&&e.nodes!==null&&e.nodes.end!==null&&(Fa(e.nodes.start,e.nodes.end),r=!0),e.f|=kr,Tn(e,t&&!r),Gt(e,0);var n=e.nodes&&e.nodes.t;if(n!==null)for(const s of n)s.stop();Ui(e),e.f^=kr,e.f|=de;var i=e.parent;i!==null&&i.first!==null&&Fi(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Fa(e,t){for(;e!==null;){var r=e===t?null:Ie(e);e.remove(),e=r}}function Fi(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 Qe(e,t,r=!0){var n=[];Gi(e,n,!0);var i=()=>{r&&ie(e),t&&t()},s=n.length;if(s>0){var a=()=>--s||i();for(var o of n)o.out(a)}else i()}function Gi(e,t,r){if(!(e.f&re)){e.f^=re;var n=e.nodes&&e.nodes.t;if(n!==null)for(const o of n)(o.is_global||r)&&t.push(o);for(var i=e.first;i!==null;){var s=i.next;if(!(i.f&Pe)){var a=(i.f&mt)!==0||(i.f&_e)!==0&&(e.f&ye)!==0;Gi(i,t,a?r:!1)}i=s}}}function dr(e){ki(e,!0)}function ki(e,t){if(e.f&re){e.f^=re,e.f&J||(X(e,q),Ce.ensure().schedule(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&mt)!==0||(r.f&_e)!==0;ki(r,i?t:!1),r=n}var s=e.nodes&&e.nodes.t;if(s!==null)for(const a of s)(a.is_global||t)&&a.in()}}function Sn(e,t){if(e.nodes)for(var r=e.nodes.start,n=e.nodes.end;r!==null;){var i=r===n?null:Ie(r);t.append(r),r=i}}let er=!1,Re=!1;function Cn(e){Re=e}let P=null,xe=!1;function me(e){P=e}let M=null;function Ne(e){M=e}let Oe=null;function ji(e){P!==null&&(Oe??=new Set).add(e)}let oe=null,he=0,pe=null;function Ga(e){pe=e}let Vi=1,Je=0,Ke=Je;function Rn(e){Ke=e}function Xi(){return++Vi}function Yt(e){var t=e.f;if(t&q)return!0;if(t&Q&&(e.f&=~et),t&we){for(var r=e.deps,n=r.length,i=0;i<n;i++){var s=r[i];if(Yt(s)&&wi(s),s.wv>e.wv)return!0}t&ve&&Ee===null&&X(e,J)}return!1}function Wi(e,t,r=!0){var n=e.reactions;if(n!==null&&!(Oe!==null&&Oe.has(e)))for(var i=0;i<n.length;i++){var s=n[i];s.f&Q?Wi(s,t,!1):t===s&&(r?X(s,q):s.f&J&&X(s,we),mn(s))}}function Yi(e){var t=oe,r=he,n=pe,i=P,s=Oe,a=ne,o=xe,u=Ke,l=e.f;oe=null,he=0,pe=null,P=l&(_e|Pe)?null:e,Oe=null,gt(e.ctx),xe=!1,Ke=++Je,e.ac!==null&&(Tr(()=>{e.ac.abort(Xt)}),e.ac=null);try{e.f|=lr;var f=e.fn,c=f();e.f|=nt;var h=e.deps,d=$?.is_fork;if(oe!==null){var p;if(d||Gt(e,he),h!==null&&he>0)for(h.length=he+oe.length,p=0;p<oe.length;p++)h[he+p]=oe[p];else e.deps=h=oe;if(En()&&e.f&ve)for(p=he;p<h.length;p++)(h[p].reactions??=[]).push(e)}else!d&&h!==null&&he<h.length&&(Gt(e,he),h.length=he);if(vi()&&pe!==null&&!xe&&h!==null&&!(e.f&(Q|we|q)))for(p=0;p<pe.length;p++)Wi(pe[p],e);if(i!==null&&i!==e){if(Je++,i.deps!==null)for(let y=0;y<r;y+=1)i.deps[y].rv=Je;if(t!==null)for(const y of t)y.rv=Je;pe!==null&&(n===null?n=pe:n.push(...pe))}return e.f&Ve&&(e.f^=Ve),c}catch(y){return mi(y)}finally{e.f^=lr,oe=t,he=r,pe=n,P=i,Oe=s,gt(a),xe=o,Ke=u}}function ka(e,t){let r=t.reactions;if(r!==null){var n=Ys.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&&(oe===null||!ar.call(oe,t))){var s=t;s.f&ve&&(s.f^=ve,s.f&=~et),s.v!==Z&&dn(s),s.ac!==null&&Tr(()=>{s.ac.abort(Xt),s.ac=null,X(s,q)}),Pa(s),Gt(s,0)}}function Gt(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)ka(e,r[n])}function yt(e){var t=e.f;if(!(t&de)){X(e,J);var r=M,n=er;M=e,er=(t&(_e|Pe))===0;try{t&(ye|ui)?Ua(e):Tn(e),Ui(e);var i=Yi(e);e.teardown=typeof i=="function"?i:null,e.wv=Vi;var s;ni&&_a&&e.f&q&&e.deps}finally{er=n,M=r}}}async function ja(){await Promise.resolve(),ce()}function x(e){var t=e.f,r=(t&Q)!==0;if(P!==null&&!xe){var n=M!==null&&(M.f&de)!==0;if(!n&&(Oe===null||!Oe.has(e))){var i=P.deps;if(P.f&lr)e.rv<Je&&(e.rv=Je,oe===null&&i!==null&&i[he]===e?he++:oe===null?oe=[e]:oe.push(e));else{P.deps??=[],ar.call(P.deps,e)||P.deps.push(e);var s=e.reactions;s===null?e.reactions=[P]:ar.call(s,P)||s.push(P)}}}if(Re&&Me.has(e))return Me.get(e);if(r){var a=e;if(Re){var o=a.v;return(!(a.f&J)&&a.reactions!==null||qi(a))&&(o=vn(a)),Me.set(a,o),o}var u=(a.f&ve)===0&&!xe&&P!==null&&(er||(P.f&ve)!==0),l=(a.f&nt)===0;Yt(a)&&(u&&(a.f|=ve),wi(a)),u&&!l&&(Ti(a),zi(a))}if(Ee?.has(e))return Ee.get(e);if(e.f&Ve)throw e.v;return e.v}function zi(e){if(e.f|=ve,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),t.f&Q&&!(t.f&ve)&&(Ti(t),zi(t))}function qi(e){if(e.v===Z)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Me.has(t)||t.f&Q&&qi(t))return!0;return!1}function An(e){var t=xe;try{return xe=!0,e()}finally{xe=t}}const Lt=Symbol("events"),Zi=new Set,Jr=new Set;function tr(e,t,r){(t[Lt]??={})[e]=r}function Ji(e){for(var t=0;t<e.length;t++)Zi.add(e[t]);for(var r of Jr)r(e)}let Ir=null,$r=!1;function Dn(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Ir=e,$r||($r=!0,setTimeout(()=>{$r=!1,Ir=null}));var a=0,o=Ir===e&&e[Lt];if(o){var u=i.indexOf(o);if(u!==-1&&(t===document||t===window)){e[Lt]=t;return}var l=i.indexOf(t);if(l===-1)return;u<=l&&(a=u)}if(s=i[a]||e.target,s!==t){Ut(e,"currentTarget",{configurable:!0,get(){return s||r}});var f=P,c=M;me(null),Ne(null);try{for(var h,d=[];s!==null&&s!==t;){try{var p=s[Lt]?.[n];p!=null&&(!s.disabled||e.target===s)&&p.call(s,e)}catch(y){h?d.push(y):h=y}if(e.cancelBubble)break;a++,s=a<i.length?i[a]:null}if(h){for(let y of d)queueMicrotask(()=>{throw y});throw h}}finally{e[Lt]=t,delete e.currentTarget,me(f),Ne(c)}}}const Va=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Xa(e){return Va?.createHTML(e)??e}function Wa(e){var t=bn("template");return t.innerHTML=Xa(e.replaceAll("<!>","<!---->")),t.content}function pt(e,t){var r=M;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function zt(e,t){var r=(t&Vs)!==0,n=(t&Xs)!==0,i,s=!e.startsWith("<!>");return()=>{if(C)return pt(L,null),L;i===void 0&&(i=Wa(s?e:"<!>"+e),r||(i=rt(i)));var a=n||Pi?document.importNode(i,!0):i.cloneNode(!0);if(r){var o=rt(a),u=a.lastChild;pt(o,u)}else pt(a,a);return a}}function Qi(){if(C)return pt(L,null),L;var e=document.createDocumentFragment(),t=document.createComment(""),r=Te();return e.append(t,r),pt(t,r),e}function qe(e,t){if(C){var r=M;(!(r.f&nt)||r.nodes.end===null)&&(r.nodes.end=L),yr();return}e!==null&&e.before(t)}const Ya=["touchstart","touchmove"];function za(e){return Ya.includes(e)}function rr(e,t){var r=t==null?"":typeof t=="object"?`${t}`:t;r!==(e[Vr]??=e.nodeValue)&&(e[Vr]=r,e.nodeValue=`${r}`)}function Ki(e,t){return es(e,t)}function qa(e,t){zr(),t.intro=t.intro??!1;const r=t.target,n=C,i=L;try{for(var s=rt(r);s&&(s.nodeType!==Wt||s.data!==ri);)s=Ie(s);if(!s)throw vt;Le(!0),ue(s);const a=es(e,{...t,anchor:s});return Le(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
2
- `).some(o=>o.startsWith("https://svelte.dev/e/")))throw a;return a!==vt&&console.warn("Failed to hydrate: ",a),t.recover===!1&&ua(),zr(),Li(r),Le(!1),Ki(e,t)}finally{Le(n),ue(i)}}const Zt=new Map;function es(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:a=!0,transformError:o}){zr();var u=void 0,l=Ra(()=>{var f=r??t.appendChild(Te());wa(f,{pending:()=>{}},d=>{Er({});var p=ne;if(s&&(p.c=s),i&&(n.$$events=i),C&&pt(d,null),u=e(d,n)||{},C&&(M.nodes.end=L,L===null||L.nodeType!==Wt||L.data!==cn))throw br(),vt;xr()},o);var c=new Set,h=d=>{for(var p=0;p<d.length;p++){var y=d[p];if(!c.has(y)){c.add(y);var m=za(y);for(const B of[t,document]){var T=Zt.get(B);T===void 0&&(T=new Map,Zt.set(B,T));var I=T.get(y);I===void 0?(B.addEventListener(y,Dn,{passive:m}),T.set(y,1)):T.set(y,I+1)}}}};return h(mr(Zi)),Jr.add(h),()=>{for(var d of c)for(const m of[t,document]){var p=Zt.get(m),y=p.get(d);--y==0?(m.removeEventListener(d,Dn),p.delete(d),p.size===0&&Zt.delete(m)):p.set(d,y)}Jr.delete(h),f!==r&&f.parentNode?.removeChild(f)}});return Qr.set(u,l),u}let Qr=new WeakMap;function Za(e,t){const r=Qr.get(e);return r?(Qr.delete(e),r(t)):Promise.resolve()}class Ja{anchor;#e=new Map;#t=new Map;#r=new Map;#u=new Set;#i=!0;constructor(t,r=!0){this.anchor=t,this.#i=r}#a=t=>{if(this.#e.has(t)){var r=this.#e.get(t),n=this.#t.get(r);if(n)dr(n),this.#u.delete(r);else{var i=this.#r.get(r);i&&(dr(i.effect),this.#t.set(r,i.effect),this.#r.delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(const[s,a]of this.#e){if(this.#e.delete(s),s===t)break;const o=this.#r.get(a);o&&(ie(o.effect),this.#r.delete(a))}for(const[s,a]of this.#t){if(s===r||this.#u.has(s))continue;const o=()=>{if(Array.from(this.#e.values()).includes(s)){var l=document.createDocumentFragment();Sn(a,l),l.append(Te()),this.#r.set(s,{effect:a,fragment:l})}else ie(a);this.#u.delete(s),this.#t.delete(s)};this.#i||!n?(this.#u.add(s),Qe(a,o,!1)):o()}}};#n=t=>{this.#e.delete(t);const r=Array.from(this.#e.values());for(const[n,i]of this.#r)r.includes(n)||(ie(i.effect),this.#r.delete(n))};ensure(t,r){var n=$;r&&!this.#t.has(t)&&!this.#r.has(t)&&this.#t.set(t,ge(()=>r(this.anchor))),this.#e.set(n,t),C&&(this.anchor=L),this.#a(n)}}function Kr(e,t,r=!1){var n;C&&(n=L,yr());var i=new Ja(e),s=r?mt:0;function a(o,u){if(C){var l=hi(n);if(o!==parseInt(l.substring(1))){var f=fr();ue(f),i.anchor=f,Le(!1),i.ensure(o,u),Le(!0);return}}i.ensure(o,u)}wn(()=>{var o=!1;t((u,l=0)=>{o=!0,a(l,u)}),o||a(-1,null)},s)}function ts(e,t){return t}function Qa(e,t,r){for(var n=[],i=t.length,s,a=t.length,o=0;o<i;o++){let c=t[o];Qe(c,()=>{if(s){if(s.pending.delete(c),s.done.add(c),s.pending.size===0){var h=e.outrogroups;en(e,mr(s.done)),h.delete(s),h.size===0&&(e.outrogroups=null)}}else a-=1},!1)}if(a===0){var u=n.length===0&&r!==null&&e.pending.size===0;if(u){var l=r,f=l.parentNode;Li(f),f.append(l),e.items.clear()}en(e,t,!u)}else s={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(s)}function en(e,t,r=!0){var n;if(e.pending.size>0){n=new Set;for(const a of e.pending.values())for(const o of a)n.add(e.items.get(o).e)}for(var i=0;i<t.length;i++){var s=t[i];if(n?.has(s)){s.f|=He;const a=document.createDocumentFragment();Sn(s,a)}else ie(t[i],r)}}var Un;function rs(e,t,r,n,i,s=null){var a=e,o=new Map,u=(t&ti)!==0;if(u){var l=e;a=C?ue(rt(l)):l.appendChild(Te())}C&&yr();var f=null,c=Ma(()=>{var I=r();return ii(I)?I:I==null?[]:mr(I)}),h,d=new Map,p=!0;function y(I){T.effect.f&de||(T.pending.delete(I),T.fallback=f,Ka(T,h,a,t,n),f!==null&&(h.length===0?f.f&He?(f.f^=He,Bt(f,null,a)):dr(f):Qe(f,()=>{f=null})))}var m=wn(()=>{h=x(c);var I=h.length;let B=!1;if(C){var z=hi(a)===hn;z!==(I===0)&&(a=fr(),ue(a),Le(!1),B=!0)}for(var j=new Set,G=$,W=0;W<I;W+=1){C&&L.nodeType===Wt&&L.data===cn&&(a=L,B=!0,Le(!1));var le=h[W],fe=n(le,W),b=p?null:o.get(fe);b?(b.v&&bt(b.v,le),b.i&&bt(b.i,W)):(b=eo(o,p?a:Un??=Te(),le,fe,W,i,t,r),p||(b.e.f|=He),o.set(fe,b)),j.add(fe)}I===0&&s&&!f&&(p?f=ge(()=>s(a)):(f=ge(()=>s(Un??=Te())),f.f|=He)),I>j.size&&na(),C&&I>0&&ue(fr()),p||(d.set(G,j),y(G)),B&&Le(!0),x(c)}),T={effect:m,items:o,pending:d,outrogroups:null,fallback:f};p=!1,C&&(a=L)}function Nt(e){for(;e!==null&&!(e.f&_e);)e=e.next;return e}function Ka(e,t,r,n,i){var s=(n&ks)!==0,a=t.length,o=e.items,u=Nt(e.effect.first),l,f=null,c,h=[],d=[],p,y,m,T;if(s)for(T=0;T<a;T+=1)p=t[T],y=i(p,T),m=o.get(y).e,m.f&He||(m.nodes?.a?.measure(),(c??=new Set).add(m));for(T=0;T<a;T+=1){if(p=t[T],y=i(p,T),m=o.get(y).e,e.outrogroups!==null)for(const b of e.outrogroups)b.pending.delete(m),b.done.delete(m);if(m.f&re&&(dr(m),s&&(m.nodes?.a?.unfix(),(c??=new Set).delete(m))),m.f&He)if(m.f^=He,m===u)Bt(m,null,r);else{var I=f?f.next:u;m===e.effect.last&&(e.effect.last=m.prev),m.prev&&(m.prev.next=m.next),m.next&&(m.next.prev=m.prev),Fe(e,f,m),Fe(e,m,I),Bt(m,I,r),f=m,h=[],d=[],u=Nt(f.next);continue}if(m!==u){if(l!==void 0&&l.has(m)){if(h.length<d.length){var B=d[0],z;f=B.prev;var j=h[0],G=h[h.length-1];for(z=0;z<h.length;z+=1)Bt(h[z],B,r);for(z=0;z<d.length;z+=1)l.delete(d[z]);Fe(e,j.prev,G.next),Fe(e,f,j),Fe(e,G,B),u=B,f=G,T-=1,h=[],d=[]}else l.delete(m),Bt(m,u,r),Fe(e,m.prev,m.next),Fe(e,m,f===null?e.effect.first:f.next),Fe(e,f,m),f=m;continue}for(h=[],d=[];u!==null&&u!==m;)(l??=new Set).add(u),d.push(u),u=Nt(u.next);if(u===null)continue}m.f&He||h.push(m),f=m,u=Nt(m.next)}if(e.outrogroups!==null){for(const b of e.outrogroups)b.pending.size===0&&(en(e,mr(b.done)),e.outrogroups?.delete(b));e.outrogroups.size===0&&(e.outrogroups=null)}if(u!==null||l!==void 0){var W=[];if(l!==void 0)for(m of l)m.f&re||W.push(m);for(;u!==null;)!(u.f&re)&&u!==e.fallback&&W.push(u),u=Nt(u.next);var le=W.length;if(le>0){var fe=n&ti&&a===0?r:null;if(s){for(T=0;T<le;T+=1)W[T].nodes?.a?.measure();for(T=0;T<le;T+=1)W[T].nodes?.a?.fix()}Qa(e,W,fe)}}s&&Ge(()=>{if(c!==void 0)for(m of c)m.nodes?.a?.apply()})}function eo(e,t,r,n,i,s,a,o){var u=a&Fs?a&js?tt(r):gn(r,!1,!1):null,l=a&Gs?tt(i):null;return{v:u,i:l,e:ge(()=>(s(t,u??r,l??i,o),()=>{e.delete(n)}))}}function Bt(e,t,r){if(e.nodes)for(var n=e.nodes.start,i=e.nodes.end,s=t&&!(t.f&He)?t.nodes.start:r;n!==null;){var a=Ie(n);if(s.before(n),n===i)return;n=a}}function Fe(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}function ns(e,t){Di(()=>{e=M?.parent?.nodes?.start??e;var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=bn("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}const Fn=[...`
3
- \r\f \v\uFEFF`];function to(e,t,r){var n=e==null?"":""+e;if(r){for(var i of Object.keys(r))if(r[i])n=n?n+" "+i:i;else if(n.length)for(var s=i.length,a=0;(a=n.indexOf(i,a))>=0;){var o=a+s;(a===0||Fn.includes(n[a-1]))&&(o===n.length||Fn.includes(n[o]))?n=(a===0?"":n.substring(0,a))+n.substring(o+1):a=o}}return n===""?null:n}function is(e,t,r,n,i,s){var a=e[jr];if(C||a!==r||a===void 0){var o=to(r,n,s);(!C||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e[jr]=r}else if(s&&i!==s)for(var u in s){var l=!!s[u];(i==null||l!==!!i[u])&&e.classList.toggle(u,l)}return s}const ro=Symbol("is custom element"),no=Symbol("is html"),io=ta?"link":"LINK";function so(e,t,r,n){var i=ao(e);C&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===io)||i[t]!==(i[t]=r)&&(t==="loading"&&(e[Ks]=r),r==null?e.removeAttribute(t):typeof r!="string"&&oo(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function ao(e){return e[fi]??={[ro]:e.nodeName.includes("-"),[no]:e.namespaceURI===Ws}}var Gn=new Map;function oo(e){var t=e.getAttribute("is")||e.nodeName,r=Gn.get(t);if(r)return r;Gn.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=zs(i);for(var a in n)n[a].set&&a!=="innerHTML"&&a!=="textContent"&&a!=="innerText"&&r.push(a);i=si(i)}return r}function Lr(e,t){return e===t||e?.[Qt]===t}function uo(e={},t,r,n){var i=ne.r,s=M;return Di(()=>{var a,o;return xn(()=>{a=o,o=[],An(()=>{Lr(r(...o),e)||(t(e,...o),a&&Lr(r(...a),e)&&t(null,...a))})}),()=>{let u=s;for(;u!==i&&u.parent!==null&&u.parent.f&kr;)u=u.parent;const l=()=>{o&&Lr(r(...o),e)&&t(null,...o)},f=u.teardown;u.teardown=()=>{l(),f?.()}}}),e}function be(e,t,r,n){var i=n,s=!0,a=()=>(s&&(s=!1,i=n),i),o;o=e[t],o===void 0&&n!==void 0&&(o=a());var u;u=()=>{var h=e[t];return h===void 0?a():(s=!0,h)};var l=!1,f=Sr(()=>(l=!1,u())),c=M;return function(h,d){if(arguments.length>0){const p=d?x(f):h;return Y(f,p),l=!0,i!==void 0&&(i=p),h}return Re&&l||c.f&de?f.v:x(f)}}function lo(e){return new fo(e)}class fo{#e;#t;constructor(t){var r=new Map,n=(s,a)=>{var o=gn(a,!1,!1);return r.set(s,o),o};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return x(r.get(a)??n(a,Reflect.get(s,a)))},has(s,a){return a===Qs?!0:(x(r.get(a)??n(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,o){return Y(r.get(a)??n(a,o),o),Reflect.set(s,a,o)}});this.#t=(t.hydrate?qa:Ki)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&ce(),this.#e=i.$$events;for(const s of Object.keys(this.#t))s==="$set"||s==="$destroy"||s==="$on"||Ut(this,s,{get(){return this.#t[s]},set(a){this.#t[s]=a},enumerable:!0});this.#t.$set=s=>{Object.assign(i,s)},this.#t.$destroy=()=>{Za(this.#t)}}$set(t){this.#t.$set(t)}$on(t,r){this.#e[t]=this.#e[t]||[];const n=(...i)=>r.call(this,...i);return this.#e[t].push(n),()=>{this.#e[t]=this.#e[t].filter(i=>i!==n)}}$destroy(){this.#t.$destroy()}}let ss;typeof HTMLElement=="function"&&(ss=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&(this.$$shadowRoot=this.attachShadow(r))}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(i){return s=>{const a=bn("slot");i!=="default"&&(a.name=i),qe(s,a)}};var e=t;if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=ho(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]=nr(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=lo({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=Ca(()=>{xn(()=>{this.$$r=!0;for(const i of or(this.$$c)){if(!this.$$p_d[i]?.reflect)continue;this.$$d[i]=this.$$c[i];const s=nr(i,this.$$d[i],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[i].attribute||i):this.setAttribute(this.$$p_d[i].attribute||i,s)}this.$$r=!1})});for(const i in this.$$l)for(const s of this.$$l[i]){const a=this.$$c.$on(i,s);this.$$l_u.set(s,a)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=nr(e,r,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return or(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function nr(e,t,r,n){const i=r[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function ho(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function Hn(e,t,r,n,i,s){let a=class extends ss{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return or(t).map(o=>(t[o].attribute||o).toLowerCase())}};return or(t).forEach(o=>{Ut(a.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(u){u=nr(o,u,t),this.$$d[o]=u;var l=this.$$c;if(l){var f=ct(l,o)?.get;f?l[o]=u:l.$set({[o]:u})}}})}),n.forEach(o=>{Ut(a.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=a,a}class as extends Error{constructor(t,r){super(r),this.code=t,this.name="ElevateApiError"}}const co=async e=>{const t=new URL(`${e.apiEndpoint}/elevate/playerInfo?language=${e.locale??""}`),r=new Headers({"Content-Type":"application/json"});e.userSession&&r.append("X-SessionId",e.userSession);const i=await(await fetch(t.href,{method:"GET",headers:r})).json();if(!i.success)throw new as(i.errorCode,i.errorMessage);return i.data},po=async e=>{const t=new URL(`${e.apiEndpoint}/elevate/levels?language=${e.locale??""}`);return(await(await fetch(t.href,{method:"GET"})).json()).data},vo={REDEEM_REWARD_CONFIRMED:"Loyalty:RedeemRewardConfirmed",BACK_BUTTON_CLICKED:"Loyalty:BackButtonClicked"},_o="shop",mo=10,os=12,go="DD/MM/YYYY HH:mm:ss",us=e=>{const t=new Headers({"Content-Type":"application/json"});return e&&t.append("X-SessionId",e),t},bo=async(e,t=0,r=os)=>{const n=new URL(`${e.apiEndpoint}/elevate/shop`);return n.searchParams.set("language",e.locale??""),n.searchParams.set("pagination",`offset=${t},limit=${r}`),await(await fetch(n.href,{method:"GET",headers:us(e.userSession)})).json()},yo=async(e,t)=>{const r=new URL(`${e.apiEndpoint}/elevate/shop`);return r.searchParams.set("language",e.locale??""),r.searchParams.set("filter",`id=${t}`),(await(await fetch(r.href,{method:"GET",headers:us(e.userSession)})).json()).data?.[0]},Eo=async(e,t)=>{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=await(await fetch(r.href,{method:"PUT",headers:n,body:JSON.stringify({giftID:t})})).json();if(!s.success)throw new as(s.errorCode??"",s.errorMessage??"Redeem failed")},xo=(e,t)=>{const r=[...e].sort((i,s)=>i.firstEntryPoints>s.firstEntryPoints?1:-1);let n=0;return r.forEach((i,s)=>{t>i.firstEntryPoints&&(n=s)}),n};var wo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ls(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var fs={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(wo,function(){var r=1e3,n=6e4,i=36e5,s="millisecond",a="second",o="minute",u="hour",l="day",f="week",c="month",h="quarter",d="year",p="date",y="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,T=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,I={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(w){var g=["th","st","nd","rd"],v=w%100;return"["+w+(g[(v-20)%10]||g[v]||g[0])+"]"}},B=function(w,g,v){var E=String(w);return!E||E.length>=g?w:""+Array(g+1-E.length).join(v)+w},z={s:B,z:function(w){var g=-w.utcOffset(),v=Math.abs(g),E=Math.floor(v/60),_=v%60;return(g<=0?"+":"-")+B(E,2,"0")+":"+B(_,2,"0")},m:function w(g,v){if(g.date()<v.date())return-w(v,g);var E=12*(v.year()-g.year())+(v.month()-g.month()),_=g.clone().add(E,c),S=v-_<0,A=g.clone().add(E+(S?-1:1),c);return+(-(E+(v-_)/(S?_-A:A-_))||0)},a:function(w){return w<0?Math.ceil(w)||0:Math.floor(w)},p:function(w){return{M:c,y:d,w:f,d:l,D:p,h:u,m:o,s:a,ms:s,Q:h}[w]||String(w||"").toLowerCase().replace(/s$/,"")},u:function(w){return w===void 0}},j="en",G={};G[j]=I;var W="$isDayjsObject",le=function(w){return w instanceof se||!(!w||!w[W])},fe=function w(g,v,E){var _;if(!g)return j;if(typeof g=="string"){var S=g.toLowerCase();G[S]&&(_=S),v&&(G[S]=v,_=S);var A=g.split("-");if(!_&&A.length>1)return w(A[0])}else{var R=g.name;G[R]=g,_=R}return!E&&_&&(j=_),_||!E&&j},b=function(w,g){if(le(w))return w.clone();var v=typeof g=="object"?g:{};return v.date=w,v.args=arguments,new se(v)},H=z;H.l=fe,H.i=le,H.w=function(w,g){return b(w,{locale:g.$L,utc:g.$u,x:g.$x,$offset:g.$offset})};var se=function(){function w(v){this.$L=fe(v.locale,null,!0),this.parse(v),this.$x=this.$x||v.x||{},this[W]=!0}var g=w.prototype;return g.parse=function(v){this.$d=function(E){var _=E.date,S=E.utc;if(_===null)return new Date(NaN);if(H.u(_))return new Date;if(_ instanceof Date)return new Date(_);if(typeof _=="string"&&!/Z$/i.test(_)){var A=_.match(m);if(A){var R=A[2]-1||0,k=(A[7]||"0").substring(0,3);return S?new Date(Date.UTC(A[1],R,A[3]||1,A[4]||0,A[5]||0,A[6]||0,k)):new Date(A[1],R,A[3]||1,A[4]||0,A[5]||0,A[6]||0,k)}}return new Date(_)}(v),this.init()},g.init=function(){var v=this.$d;this.$y=v.getFullYear(),this.$M=v.getMonth(),this.$D=v.getDate(),this.$W=v.getDay(),this.$H=v.getHours(),this.$m=v.getMinutes(),this.$s=v.getSeconds(),this.$ms=v.getMilliseconds()},g.$utils=function(){return H},g.isValid=function(){return this.$d.toString()!==y},g.isSame=function(v,E){var _=b(v);return this.startOf(E)<=_&&_<=this.endOf(E)},g.isAfter=function(v,E){return b(v)<this.startOf(E)},g.isBefore=function(v,E){return this.endOf(E)<b(v)},g.$g=function(v,E,_){return H.u(v)?this[E]:this.set(_,v)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(v,E){var _=this,S=!!H.u(E)||E,A=H.p(v),R=function(Ye,ae){var Ue=H.w(_.$u?Date.UTC(_.$y,ae,Ye):new Date(_.$y,ae,Ye),_);return S?Ue:Ue.endOf(l)},k=function(Ye,ae){return H.w(_.toDate()[Ye].apply(_.toDate("s"),(S?[0,0,0,0]:[23,59,59,999]).slice(ae)),_)},D=this.$W,U=this.$M,ee=this.$D,De="set"+(this.$u?"UTC":"");switch(A){case d:return S?R(1,0):R(31,11);case c:return S?R(1,U):R(0,U+1);case f:var We=this.$locale().weekStart||0,Ot=(D<We?D+7:D)-We;return R(S?ee-Ot:ee+(6-Ot),U);case l:case p:return k(De+"Hours",0);case u:return k(De+"Minutes",1);case o:return k(De+"Seconds",2);case a:return k(De+"Milliseconds",3);default:return this.clone()}},g.endOf=function(v){return this.startOf(v,!1)},g.$set=function(v,E){var _,S=H.p(v),A="set"+(this.$u?"UTC":""),R=(_={},_[l]=A+"Date",_[p]=A+"Date",_[c]=A+"Month",_[d]=A+"FullYear",_[u]=A+"Hours",_[o]=A+"Minutes",_[a]=A+"Seconds",_[s]=A+"Milliseconds",_)[S],k=S===l?this.$D+(E-this.$W):E;if(S===c||S===d){var D=this.clone().set(p,1);D.$d[R](k),D.init(),this.$d=D.set(p,Math.min(this.$D,D.daysInMonth())).$d}else R&&this.$d[R](k);return this.init(),this},g.set=function(v,E){return this.clone().$set(v,E)},g.get=function(v){return this[H.p(v)]()},g.add=function(v,E){var _,S=this;v=Number(v);var A=H.p(E),R=function(U){var ee=b(S);return H.w(ee.date(ee.date()+Math.round(U*v)),S)};if(A===c)return this.set(c,this.$M+v);if(A===d)return this.set(d,this.$y+v);if(A===l)return R(1);if(A===f)return R(7);var k=(_={},_[o]=n,_[u]=i,_[a]=r,_)[A]||1,D=this.$d.getTime()+v*k;return H.w(D,this)},g.subtract=function(v,E){return this.add(-1*v,E)},g.format=function(v){var E=this,_=this.$locale();if(!this.isValid())return _.invalidDate||y;var S=v||"YYYY-MM-DDTHH:mm:ssZ",A=H.z(this),R=this.$H,k=this.$m,D=this.$M,U=_.weekdays,ee=_.months,De=_.meridiem,We=function(ae,Ue,Pt,qt){return ae&&(ae[Ue]||ae(E,S))||Pt[Ue].slice(0,qt)},Ot=function(ae){return H.s(R%12||12,ae,"0")},Ye=De||function(ae,Ue,Pt){var qt=ae<12?"AM":"PM";return Pt?qt.toLowerCase():qt};return S.replace(T,function(ae,Ue){return Ue||function(Pt){switch(Pt){case"YY":return String(E.$y).slice(-2);case"YYYY":return H.s(E.$y,4,"0");case"M":return D+1;case"MM":return H.s(D+1,2,"0");case"MMM":return We(_.monthsShort,D,ee,3);case"MMMM":return We(ee,D);case"D":return E.$D;case"DD":return H.s(E.$D,2,"0");case"d":return String(E.$W);case"dd":return We(_.weekdaysMin,E.$W,U,2);case"ddd":return We(_.weekdaysShort,E.$W,U,3);case"dddd":return U[E.$W];case"H":return String(R);case"HH":return H.s(R,2,"0");case"h":return Ot(1);case"hh":return Ot(2);case"a":return Ye(R,k,!0);case"A":return Ye(R,k,!1);case"m":return String(k);case"mm":return H.s(k,2,"0");case"s":return String(E.$s);case"ss":return H.s(E.$s,2,"0");case"SSS":return H.s(E.$ms,3,"0");case"Z":return A}return null}(ae)||A.replace(":","")})},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(v,E,_){var S,A=this,R=H.p(E),k=b(v),D=(k.utcOffset()-this.utcOffset())*n,U=this-k,ee=function(){return H.m(A,k)};switch(R){case d:S=ee()/12;break;case c:S=ee();break;case h:S=ee()/3;break;case f:S=(U-D)/6048e5;break;case l:S=(U-D)/864e5;break;case u:S=U/i;break;case o:S=U/n;break;case a:S=U/r;break;default:S=U}return _?S:H.a(S)},g.daysInMonth=function(){return this.endOf(c).$D},g.$locale=function(){return G[this.$L]},g.locale=function(v,E){if(!v)return this.$L;var _=this.clone(),S=fe(v,E,!0);return S&&(_.$L=S),_},g.clone=function(){return H.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},w}(),Mt=se.prototype;return b.prototype=Mt,[["$ms",s],["$s",a],["$m",o],["$H",u],["$W",l],["$M",c],["$y",d],["$D",p]].forEach(function(w){Mt[w[1]]=function(g){return this.$g(g,w[0],w[1])}}),b.extend=function(w,g){return w.$i||(w(g,se,b),w.$i=!0),b},b.locale=fe,b.isDayjs=le,b.unix=function(w){return b(1e3*w)},b.en=G[j],b.Ls=G,b.p={},b})})(fs);var To=fs.exports;const So=ls(To),Ao=(e,t="DD/MM/YYYY")=>{const r=So(e);return r.isValid()?r.format(t):""},Ho=(e,t)=>{window.postMessage({type:"Loyalty:RewardItemClicked",name:e,id:t},window.location.href)},Mo=(e,t)=>{window.postMessage({type:"Loyalty:RedeemRewardRequested",name:e,id:t},window.location.href)},Oo=e=>{window.postMessage({type:"Loyalty:RedeemRewardSuccess",itemId:e},window.location.href)},Po=(e,t)=>{window.postMessage({type:"Loyalty:RedeemRewardFailed",itemId:e,res:t},window.location.href)},No=()=>{window.dispatchEvent(new CustomEvent("redeemRewardButton"))};var Io=function(t){return $o(t)&&!Lo(t)};function $o(e){return!!e&&typeof e=="object"}function Lo(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Ro(e)}var Bo=typeof Symbol=="function"&&Symbol.for,Co=Bo?Symbol.for("react.element"):60103;function Ro(e){return e.$$typeof===Co}function Do(e){return Array.isArray(e)?[]:{}}function kt(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Et(Do(e),e,t):e}function Uo(e,t,r){return e.concat(t).map(function(n){return kt(n,r)})}function Fo(e,t){if(!t.customMerge)return Et;var r=t.customMerge(e);return typeof r=="function"?r:Et}function Go(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function kn(e){return Object.keys(e).concat(Go(e))}function hs(e,t){try{return t in e}catch{return!1}}function ko(e,t){return hs(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function jo(e,t,r){var n={};return r.isMergeableObject(e)&&kn(e).forEach(function(i){n[i]=kt(e[i],r)}),kn(t).forEach(function(i){ko(e,i)||(hs(e,i)&&r.isMergeableObject(t[i])?n[i]=Fo(i,r)(e[i],t[i],r):n[i]=kt(t[i],r))}),n}function Et(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Uo,r.isMergeableObject=r.isMergeableObject||Io,r.cloneUnlessOtherwiseSpecified=kt;var n=Array.isArray(t),i=Array.isArray(e),s=n===i;return s?n?r.arrayMerge(e,t,r):jo(e,t,r):kt(t,r)}Et.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return Et(n,i,r)},{})};var Vo=Et,Xo=Vo;const Wo=ls(Xo);var tn=function(e,t){return tn=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])},tn(e,t)};function Ar(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");tn(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Ae=function(){return Ae=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},Ae.apply(this,arguments)};function Yo(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 Br(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 Cr(e,t){var r=t&&t.cache?t.cache:eu,n=t&&t.serializer?t.serializer:Qo,i=t&&t.strategy?t.strategy:Zo;return i(e,{cache:r,serializer:n})}function zo(e){return e==null||typeof e=="number"||typeof e=="boolean"}function qo(e,t,r,n){var i=zo(n)?n:r(n),s=t.get(i);return typeof s>"u"&&(s=e.call(this,n),t.set(i,s)),s}function cs(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),s=t.get(i);return typeof s>"u"&&(s=e.apply(this,n),t.set(i,s)),s}function ds(e,t,r,n,i){return r.bind(t,e,n,i)}function Zo(e,t){var r=e.length===1?qo:cs;return ds(e,this,r,t.cache.create(),t.serializer)}function Jo(e,t){return ds(e,this,cs,t.cache.create(),t.serializer)}var Qo=function(){return JSON.stringify(arguments)},Ko=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}(),eu={create:function(){return new Ko}},Rr={variadic:Jo},pr=function(){return pr=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},pr.apply(this,arguments)};var O;(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"})(O||(O={}));var F;(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"})(F||(F={}));var xt;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(xt||(xt={}));function jn(e){return e.type===F.literal}function tu(e){return e.type===F.argument}function ps(e){return e.type===F.number}function vs(e){return e.type===F.date}function _s(e){return e.type===F.time}function ms(e){return e.type===F.select}function gs(e){return e.type===F.plural}function ru(e){return e.type===F.pound}function bs(e){return e.type===F.tag}function ys(e){return!!(e&&typeof e=="object"&&e.type===xt.number)}function rn(e){return!!(e&&typeof e=="object"&&e.type===xt.dateTime)}var Es=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,nu=/(?:[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 iu(e){var t={};return e.replace(nu,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 V=function(){return V=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},V.apply(this,arguments)};var su=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function au(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(su).filter(function(h){return h.length>0}),r=[],n=0,i=t;n<i.length;n++){var s=i[n],a=s.split("/");if(a.length===0)throw new Error("Invalid number skeleton");for(var o=a[0],u=a.slice(1),l=0,f=u;l<f.length;l++){var c=f[l];if(c.length===0)throw new Error("Invalid number skeleton")}r.push({stem:o,options:u})}return r}function ou(e){return e.replace(/^(.*?)-/,"")}var Vn=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,xs=/^(@+)?(\+|#+)?[rs]?$/g,uu=/(\*)(0+)|(#+)(0+)|(0+)/g,ws=/^(0+)$/;function Xn(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(xs,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 Ts(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 lu(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)),!ws.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Wn(e){var t={},r=Ts(e);return r||t}function fu(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=ou(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=V(V(V({},t),{notation:"scientific"}),i.options.reduce(function(u,l){return V(V({},u),Wn(l))},{}));continue;case"engineering":t=V(V(V({},t),{notation:"engineering"}),i.options.reduce(function(u,l){return V(V({},u),Wn(l))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(uu,function(u,l,f,c,h,d){if(l)t.minimumIntegerDigits=f.length;else{if(c&&h)throw new Error("We currently do not support maximum integer digits");if(d)throw new Error("We currently do not support exact integer digits")}return""});continue}if(ws.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Vn.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Vn,function(u,l,f,c,h,d){return f==="*"?t.minimumFractionDigits=l.length:c&&c[0]==="#"?t.maximumFractionDigits=c.length:h&&d?(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length+d.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var s=i.options[0];s==="w"?t=V(V({},t),{trailingZeroDisplay:"stripIfInteger"}):s&&(t=V(V({},t),Xn(s)));continue}if(xs.test(i.stem)){t=V(V({},t),Xn(i.stem));continue}var a=Ts(i.stem);a&&(t=V(V({},t),a));var o=lu(i.stem);o&&(t=V(V({},t),o))}return t}var Jt={"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 hu(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if(i==="j"){for(var s=0;n+1<e.length&&e.charAt(n+1)===i;)s++,n++;var a=1+(s&1),o=s<2?1:3+(s>>1),u="a",l=cu(t);for((l=="H"||l=="k")&&(o=0);o-- >0;)r+=u;for(;a-- >0;)r=l+r}else i==="J"?r+="H":r+=i}return r}function cu(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=Jt[n||""]||Jt[r||""]||Jt["".concat(r,"-001")]||Jt["001"];return i[0]}var Dr,du=new RegExp("^".concat(Es.source,"*")),pu=new RegExp("".concat(Es.source,"*$"));function N(e,t){return{start:e,end:t}}var vu=!!String.prototype.startsWith&&"_a".startsWith("a",1),_u=!!String.fromCodePoint,mu=!!Object.fromEntries,gu=!!String.prototype.codePointAt,bu=!!String.prototype.trimStart,yu=!!String.prototype.trimEnd,Eu=!!Number.isSafeInteger,xu=Eu?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},nn=!0;try{var wu=As("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");nn=((Dr=wu.exec("a"))===null||Dr===void 0?void 0:Dr[0])==="a"}catch{nn=!1}var Yn=vu?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},sn=_u?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",i=t.length,s=0,a;i>s;){if(a=t[s++],a>1114111)throw RangeError(a+" is not a valid code point");n+=a<65536?String.fromCharCode(a):String.fromCharCode(((a-=65536)>>10)+55296,a%1024+56320)}return n},zn=mu?Object.fromEntries:function(t){for(var r={},n=0,i=t;n<i.length;n++){var s=i[n],a=s[0],o=s[1];r[a]=o}return r},Ss=gu?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}},Tu=bu?function(t){return t.trimStart()}:function(t){return t.replace(du,"")},Su=yu?function(t){return t.trimEnd()}:function(t){return t.replace(pu,"")};function As(e,t){return new RegExp(e,t)}var an;if(nn){var qn=As("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");an=function(t,r){var n;qn.lastIndex=r;var i=qn.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}}else an=function(t,r){for(var n=[];;){var i=Ss(t,r);if(i===void 0||Hs(i)||Ou(i))break;n.push(i),r+=i>=65536?2:1}return sn.apply(void 0,n)};var Au=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var i=[];!this.isEOF();){var s=this.char();if(s===123){var a=this.parseArgument(t,n);if(a.err)return a;i.push(a.val)}else{if(s===125&&t>0)break;if(s===35&&(r==="plural"||r==="selectordinal")){var o=this.clonePosition();this.bump(),i.push({type:F.pound,location:N(o,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(O.UNMATCHED_CLOSING_TAG,N(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&on(this.peek()||0)){var a=this.parseTag(t,r);if(a.err)return a;i.push(a.val)}else{var a=this.parseLiteral(t,r);if(a.err)return a;i.push(a.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:F.literal,value:"<".concat(i,"/>"),location:N(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(t+1,r,!0);if(s.err)return s;var a=s.val,o=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!on(this.char()))return this.error(O.INVALID_TAG,N(o,this.clonePosition()));var u=this.clonePosition(),l=this.parseTagName();return i!==l?this.error(O.UNMATCHED_CLOSING_TAG,N(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:F.tag,value:i,children:a,location:N(n,this.clonePosition())},err:null}:this.error(O.INVALID_TAG,N(o,this.clonePosition())))}else return this.error(O.UNCLOSED_TAG,N(n,this.clonePosition()))}else return this.error(O.INVALID_TAG,N(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Mu(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),i="";;){var s=this.tryParseQuote(r);if(s){i+=s;continue}var a=this.tryParseUnquoted(t,r);if(a){i+=a;continue}var o=this.tryParseLeftAngleBracket();if(o){i+=o;continue}break}var u=N(n,this.clonePosition());return{val:{type:F.literal,value:i,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Hu(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 sn.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(),sn(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE,N(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(O.EMPTY_ARGUMENT,N(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(O.MALFORMED_ARGUMENT,N(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE,N(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:F.argument,value:i,location:N(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE,N(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(O.MALFORMED_ARGUMENT,N(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=an(this.message,r),i=r+n.length;this.bumpTo(i);var s=this.clonePosition(),a=N(t,s);return{value:n,location:a}},e.prototype.parseArgumentOptions=function(t,r,n,i){var s,a=this.clonePosition(),o=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(o){case"":return this.error(O.EXPECT_ARGUMENT_TYPE,N(a,u));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),c=this.parseSimpleArgStyleIfPossible();if(c.err)return c;var h=Su(c.val);if(h.length===0)return this.error(O.EXPECT_ARGUMENT_STYLE,N(this.clonePosition(),this.clonePosition()));var d=N(f,this.clonePosition());l={style:h,styleLocation:d}}var p=this.tryParseArgumentClose(i);if(p.err)return p;var y=N(i,this.clonePosition());if(l&&Yn(l?.style,"::",0)){var m=Tu(l.style.slice(2));if(o==="number"){var c=this.parseNumberSkeletonFromString(m,l.styleLocation);return c.err?c:{val:{type:F.number,value:n,location:y,style:c.val},err:null}}else{if(m.length===0)return this.error(O.EXPECT_DATE_TIME_SKELETON,y);var T=m;this.locale&&(T=hu(m,this.locale));var h={type:xt.dateTime,pattern:T,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?iu(T):{}},I=o==="date"?F.date:F.time;return{val:{type:I,value:n,location:y,style:h},err:null}}}return{val:{type:o==="number"?F.number:o==="date"?F.date:F.time,value:n,location:y,style:(s=l?.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var B=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(O.EXPECT_SELECT_ARGUMENT_OPTIONS,N(B,pr({},B)));this.bumpSpace();var z=this.parseIdentifierIfPossible(),j=0;if(o!=="select"&&z.value==="offset"){if(!this.bumpIf(":"))return this.error(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,N(this.clonePosition(),this.clonePosition()));this.bumpSpace();var c=this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,O.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(c.err)return c;this.bumpSpace(),z=this.parseIdentifierIfPossible(),j=c.val}var G=this.tryParsePluralOrSelectOptions(t,o,r,z);if(G.err)return G;var p=this.tryParseArgumentClose(i);if(p.err)return p;var W=N(i,this.clonePosition());return o==="select"?{val:{type:F.select,value:n,options:zn(G.val),location:W},err:null}:{val:{type:F.plural,value:n,options:zn(G.val),offset:j,pluralType:o==="plural"?"cardinal":"ordinal",location:W},err:null}}default:return this.error(O.INVALID_ARGUMENT_TYPE,N(a,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE,N(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(O.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,N(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=au(t)}catch{return this.error(O.INVALID_NUMBER_SKELETON,r)}return{val:{type:xt.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?fu(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var s,a=!1,o=[],u=new Set,l=i.value,f=i.location;;){if(l.length===0){var c=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_SELECTOR,O.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;f=N(c,this.clonePosition()),l=this.message.slice(c.offset,this.offset())}else break}if(u.has(l))return this.error(r==="select"?O.DUPLICATE_SELECT_ARGUMENT_SELECTOR:O.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);l==="other"&&(a=!0),this.bumpSpace();var d=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?O.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:O.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,N(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(t+1,r,n);if(p.err)return p;var y=this.tryParseArgumentClose(d);if(y.err)return y;o.push([l,{value:p.val,location:N(d,this.clonePosition())}]),u.add(l),this.bumpSpace(),s=this.parseIdentifierIfPossible(),l=s.value,f=s.location}return o.length===0?this.error(r==="select"?O.EXPECT_SELECT_ARGUMENT_SELECTOR:O.EXPECT_PLURAL_ARGUMENT_SELECTOR,N(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(O.MISSING_OTHER_CLAUSE,N(this.clonePosition(),this.clonePosition())):{val:o,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var s=!1,a=0;!this.isEOF();){var o=this.char();if(o>=48&&o<=57)s=!0,a=a*10+(o-48),this.bump();else break}var u=N(i,this.clonePosition());return s?(a*=n,xu(a)?{val:a,err:null}:this.error(r,u)):this.error(t,u)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=Ss(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(Yn(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()&&Hs(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n??null},e}();function on(e){return e>=97&&e<=122||e>=65&&e<=90}function Hu(e){return on(e)||e===47}function Mu(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 Hs(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Ou(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 un(e){e.forEach(function(t){if(delete t.location,ms(t)||gs(t))for(var r in t.options)delete t.options[r].location,un(t.options[r].value);else ps(t)&&ys(t.style)||(vs(t)||_s(t))&&rn(t.style)?delete t.style.location:bs(t)&&un(t.children)})}function Pu(e,t){t===void 0&&(t={}),t=pr({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Au(e,t).parse();if(r.err){var n=SyntaxError(O[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t?.captureLocation||un(r.val),r.val}var wt;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(wt||(wt={}));var Hr=function(e){Ar(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),Zn=function(e){Ar(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('", "'),'"'),wt.INVALID_VALUE,s)||this}return t}(Hr),Nu=function(e){Ar(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),wt.INVALID_VALUE,i)||this}return t}(Hr),Iu=function(e){Ar(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,'"'),wt.MISSING_VALUE,n)||this}return t}(Hr),te;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(te||(te={}));function $u(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==te.literal||r.type!==te.literal?t.push(r):n.value+=r.value,t},[])}function Lu(e){return typeof e=="function"}function ir(e,t,r,n,i,s,a){if(e.length===1&&jn(e[0]))return[{type:te.literal,value:e[0].value}];for(var o=[],u=0,l=e;u<l.length;u++){var f=l[u];if(jn(f)){o.push({type:te.literal,value:f.value});continue}if(ru(f)){typeof s=="number"&&o.push({type:te.literal,value:r.getNumberFormat(t).format(s)});continue}var c=f.value;if(!(i&&c in i))throw new Iu(c,a);var h=i[c];if(tu(f)){(!h||typeof h=="string"||typeof h=="number")&&(h=typeof h=="string"||typeof h=="number"?String(h):""),o.push({type:typeof h=="string"?te.literal:te.object,value:h});continue}if(vs(f)){var d=typeof f.style=="string"?n.date[f.style]:rn(f.style)?f.style.parsedOptions:void 0;o.push({type:te.literal,value:r.getDateTimeFormat(t,d).format(h)});continue}if(_s(f)){var d=typeof f.style=="string"?n.time[f.style]:rn(f.style)?f.style.parsedOptions:n.time.medium;o.push({type:te.literal,value:r.getDateTimeFormat(t,d).format(h)});continue}if(ps(f)){var d=typeof f.style=="string"?n.number[f.style]:ys(f.style)?f.style.parsedOptions:void 0;d&&d.scale&&(h=h*(d.scale||1)),o.push({type:te.literal,value:r.getNumberFormat(t,d).format(h)});continue}if(bs(f)){var p=f.children,y=f.value,m=i[y];if(!Lu(m))throw new Nu(y,"function",a);var T=ir(p,t,r,n,i,s),I=m(T.map(function(j){return j.value}));Array.isArray(I)||(I=[I]),o.push.apply(o,I.map(function(j){return{type:typeof j=="string"?te.literal:te.object,value:j}}))}if(ms(f)){var B=f.options[h]||f.options.other;if(!B)throw new Zn(f.value,h,Object.keys(f.options),a);o.push.apply(o,ir(B.value,t,r,n,i));continue}if(gs(f)){var B=f.options["=".concat(h)];if(!B){if(!Intl.PluralRules)throw new Hr(`Intl.PluralRules is not available in this environment.
4
- Try polyfilling it using "@formatjs/intl-pluralrules"
5
- `,wt.MISSING_INTL_API,a);var z=r.getPluralRules(t,{type:f.pluralType}).select(h-(f.offset||0));B=f.options[z]||f.options.other}if(!B)throw new Zn(f.value,h,Object.keys(f.options),a);o.push.apply(o,ir(B.value,t,r,n,i,h-(f.offset||0)));continue}}return $u(o)}function Bu(e,t){return t?Ae(Ae(Ae({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=Ae(Ae({},e[n]),t[n]||{}),r},{})):e}function Cu(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=Bu(e[n],t[n]),r},Ae({},e)):e}function Ur(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Ru(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Cr(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,Br([void 0],r,!1)))},{cache:Ur(e.number),strategy:Rr.variadic}),getDateTimeFormat:Cr(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,Br([void 0],r,!1)))},{cache:Ur(e.dateTime),strategy:Rr.variadic}),getPluralRules:Cr(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,Br([void 0],r,!1)))},{cache:Ur(e.pluralRules),strategy:Rr.variadic})}}var Du=function(){function e(t,r,n,i){r===void 0&&(r=e.defaultLocale);var s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var l=s.formatToParts(u);if(l.length===1)return l[0].value;var f=l.reduce(function(c,h){return!c.length||h.type!==te.literal||typeof c[c.length-1]!="string"?c.push(h.value):c[c.length-1]+=h.value,c},[]);return f.length<=1?f[0]||"":f},this.formatToParts=function(u){return ir(s.ast,s.locales,s.formatters,s.formats,u,void 0,s.message)},this.resolvedOptions=function(){var u;return{locale:((u=s.resolvedLocale)===null||u===void 0?void 0:u.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var a=i||{};a.formatters;var o=Yo(a,["formatters"]);this.ast=e.__parse(t,Ae(Ae({},o),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Cu(e.formats,n),this.formatters=i&&i.formatters||Ru(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Pu,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 Uu(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 je={},Fu=(e,t,r)=>r&&(t in je||(je[t]={}),e in je[t]||(je[t][e]=r),r),Ms=(e,t)=>{if(t==null)return;if(t in je&&e in je[t])return je[t][e];const r=Mr(t);for(let n=0;n<r.length;n++){const i=r[n],s=ku(i,e);if(s)return Fu(e,t,s)}};let Mn;const At=wr({});function Gu(e){return Mn[e]||null}function Os(e){return e in Mn}function ku(e,t){if(!Os(e))return null;const r=Gu(e);return Uu(r,t)}function ju(e){if(e==null)return;const t=Mr(e);for(let r=0;r<t.length;r++){const n=t[r];if(Os(n))return n}}function Ps(e,...t){delete je[e],At.update(r=>(r[e]=Wo.all([r[e]||{},...t]),r))}St([At],([e])=>Object.keys(e));At.subscribe(e=>Mn=e);const sr={};function Vu(e,t){sr[e].delete(t),sr[e].size===0&&delete sr[e]}function Ns(e){return sr[e]}function Xu(e){return Mr(e).map(t=>{const r=Ns(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function ln(e){return e==null?!1:Mr(e).some(t=>{var r;return(r=Ns(t))==null?void 0:r.size})}function Wu(e,t){return Promise.all(t.map(n=>(Vu(e,n),n().then(i=>i.default||i)))).then(n=>Ps(e,...n))}const It={};function Is(e){if(!ln(e))return e in It?It[e]:Promise.resolve();const t=Xu(e);return It[e]=Promise.all(t.map(([r,n])=>Wu(r,n))).then(()=>{if(ln(e))return Is(e);delete It[e]}),It[e]}const Yu={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"}}},zu={fallbackLocale:null,loadingDelay:200,formats:Yu,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},qu=zu;function Tt(){return qu}const Fr=wr(!1);var Zu=Object.defineProperty,Ju=Object.defineProperties,Qu=Object.getOwnPropertyDescriptors,Jn=Object.getOwnPropertySymbols,Ku=Object.prototype.hasOwnProperty,el=Object.prototype.propertyIsEnumerable,Qn=(e,t,r)=>t in e?Zu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,tl=(e,t)=>{for(var r in t||(t={}))Ku.call(t,r)&&Qn(e,r,t[r]);if(Jn)for(var r of Jn(t))el.call(t,r)&&Qn(e,r,t[r]);return e},rl=(e,t)=>Ju(e,Qu(t));let fn;const vr=wr(null);function Kn(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function Mr(e,t=Tt().fallbackLocale){const r=Kn(e);return t?[...new Set([...r,...Kn(t)])]:r}function st(){return fn??void 0}vr.subscribe(e=>{fn=e??void 0,typeof window<"u"&&e!=null&&document.documentElement.setAttribute("lang",e)});const nl=e=>{if(e&&ju(e)&&ln(e)){const{loadingDelay:t}=Tt();let r;return typeof window<"u"&&st()!=null&&t?r=window.setTimeout(()=>Fr.set(!0),t):Fr.set(!0),Is(e).then(()=>{vr.set(e)}).finally(()=>{clearTimeout(r),Fr.set(!1)})}return vr.set(e)},Xe=rl(tl({},vr),{set:nl}),Or=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var il=Object.defineProperty,_r=Object.getOwnPropertySymbols,$s=Object.prototype.hasOwnProperty,Ls=Object.prototype.propertyIsEnumerable,ei=(e,t,r)=>t in e?il(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,On=(e,t)=>{for(var r in t||(t={}))$s.call(t,r)&&ei(e,r,t[r]);if(_r)for(var r of _r(t))Ls.call(t,r)&&ei(e,r,t[r]);return e},Ht=(e,t)=>{var r={};for(var n in e)$s.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&_r)for(var n of _r(e))t.indexOf(n)<0&&Ls.call(e,n)&&(r[n]=e[n]);return r};const jt=(e,t)=>{const{formats:r}=Tt();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},sl=Or(e=>{var t=e,{locale:r,format:n}=t,i=Ht(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=jt("number",n)),new Intl.NumberFormat(r,i)}),al=Or(e=>{var t=e,{locale:r,format:n}=t,i=Ht(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=jt("date",n):Object.keys(i).length===0&&(i=jt("date","short")),new Intl.DateTimeFormat(r,i)}),ol=Or(e=>{var t=e,{locale:r,format:n}=t,i=Ht(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=jt("time",n):Object.keys(i).length===0&&(i=jt("time","short")),new Intl.DateTimeFormat(r,i)}),ul=(e={})=>{var t=e,{locale:r=st()}=t,n=Ht(t,["locale"]);return sl(On({locale:r},n))},ll=(e={})=>{var t=e,{locale:r=st()}=t,n=Ht(t,["locale"]);return al(On({locale:r},n))},fl=(e={})=>{var t=e,{locale:r=st()}=t,n=Ht(t,["locale"]);return ol(On({locale:r},n))},hl=Or((e,t=st())=>new Du(e,t,Tt().formats,{ignoreTag:Tt().ignoreTag})),cl=(e,t={})=>{var r,n,i,s;let a=t;typeof e=="object"&&(a=e,e=a.id);const{values:o,locale:u=st(),default:l}=a;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let f=Ms(e,u);if(!f)f=(s=(i=(n=(r=Tt()).handleMissingMessage)==null?void 0:n.call(r,{locale:u,id:e,defaultValue:l}))!=null?i:l)!=null?s:e;else if(typeof f!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),f;if(!o)return f;let c=f;try{c=hl(f,u).format(o)}catch(h){h instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,h.message)}return c},dl=(e,t)=>fl(t).format(e),pl=(e,t)=>ll(t).format(e),vl=(e,t)=>ul(t).format(e),_l=(e,t=st())=>Ms(e,t),Bs=St([Xe,At],()=>cl);St([Xe],()=>dl);St([Xe],()=>pl);St([Xe],()=>vl);St([Xe,At],()=>_l);function Cs({withLocale:e,translations:t}){Xe.subscribe(r=>{r==null&&(At.set(t),Xe.set(e))})}function Rs(e,t){Ps(e,t)}function ml(e){Xe.set(e)}const gl=e=>{let t=K(void 0),r=K(void 0),n=K(void 0),i=K(void 0),s=K(!1),a=K(void 0);const o=async()=>{const{apiEndpoint:u,userSession:l,locale:f,loadLevels:c,onLevelLoaded:h}=e();if(!(!u||!l)){Y(s,!0),Y(a,void 0);try{const d=[co({apiEndpoint:u,userSession:l,locale:f}).then(p=>{const y=p.level;y.name=y.presentation?.displayName||y.name,y.spendablePoints=p.spendableWallet?.total.points||0,Y(t,y,!0),Y(n,p.loyaltyWallet?.total,!0),Y(i,p.spendableWallet?.total,!0),h?.({elevateLevel:y}),h?.({elevateLevelWalletTotal:p.spendableWallet?.total,loyaltyWalletTotal:p.loyaltyWallet?.total})})];c&&d.push(po({apiEndpoint:u,userSession:l,locale:f}).then(p=>{Y(r,p,!0)})),await Promise.all(d),await ja(),x(r)&&x(t)&&h?.({calculatedLevelFlag:xo(x(r),x(t).loyaltyPoints??0)})}catch(d){Y(a,d,!0),console.error("Failed to load elevate info:",d)}finally{Y(s,!1)}}};return Ft(()=>{const{apiEndpoint:u,userSession:l,locale:f,loadLevels:c}=e();o()}),Ft(()=>{const u=()=>{o()};return window.addEventListener("redeemRewardButton",u),()=>window.removeEventListener("redeemRewardButton",u)}),{get playerElevateLevel(){return x(t)},get levels(){return x(r)},get loyaltyWalletTotal(){return x(n)},get spendableWalletTotal(){return x(i)},get loading(){return x(s)},get error(){return x(a)},reload:o}},bl={en:{prev:"Previous",next:"Next"},tr:{prev:"Önceki",next:"Sonraki"},da:{prev:"Forrige",next:"Næste"},de:{prev:"Zurück",next:"Weiter"},nl:{prev:"Vorige",next:"Volgende"},fr:{prev:"Précédent",next:"Suivant"},hu:{prev:"Előző",next:"Következő"}},Dt=10,yl=7,El=4;var xl=zt('<span class="loyalty-pagination__ellipsis svelte-1op0ean" aria-hidden="true">...</span>'),wl=zt('<button type="button"> </button>'),Tl=zt('<div class="loyalty-pagination__pages svelte-1op0ean"><button class="loyalty-pagination__btn loyalty-pagination__btn--prev svelte-1op0ean" type="button"> </button> <!> <button class="loyalty-pagination__btn loyalty-pagination__btn--next svelte-1op0ean" type="button"> </button></div>'),Sl=zt('<div class="loyalty-pagination svelte-1op0ean"><!></div>');const Al={hash:"svelte-1op0ean",code:`
6
- @layer loyalty-pagination-component {.loyalty-pagination.svelte-1op0ean {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;box-sizing:border-box;width:100%;}
7
-
8
- @media (min-width: 768px) {.loyalty-pagination.svelte-1op0ean {width:auto;margin-left:auto;justify-content:flex-end;padding-right:10px;}.loyalty-pagination__pages.svelte-1op0ean {justify-content:flex-end;}
9
- }.loyalty-pagination__pages.svelte-1op0ean {display:flex;flex-wrap:wrap;align-items:center;gap:8px;justify-content:flex-start;}.loyalty-pagination__ellipsis.svelte-1op0ean {display:inline-flex;align-items:center;justify-content:center;color:var(--text-default, #dfe3e8);font-size:13px;width:24px;}.loyalty-pagination__btn.svelte-1op0ean {min-width:30px;height:30px;padding:4px 8px;border:none;border-radius:4px;background:var(--bg-overlay-neutral-level-1, rgba(251, 251, 251, 0.05));color:var(--text-subtle, #dfe3e8);font-size:13px;font-weight:400;cursor:pointer;}.loyalty-pagination__btn--active.svelte-1op0ean {background:var(--accent, #ffcc00);color:var(--text-on-color, #261d00);}.loyalty-pagination__btn.svelte-1op0ean:disabled {cursor:default;color:var(--text-muted, rgba(251, 251, 251, 0.15));}.loyalty-pagination__btn--prev.svelte-1op0ean,
10
- .loyalty-pagination__btn--next.svelte-1op0ean {width:95px;}
11
-
12
- @media (max-width: 767px) {.loyalty-pagination__btn--prev.svelte-1op0ean,
13
- .loyalty-pagination__btn--next.svelte-1op0ean {width:90px;}
14
- }.loyalty-pagination__btn--prev.svelte-1op0ean:not(:disabled),
15
- .loyalty-pagination__btn--next.svelte-1op0ean:not(:disabled) {color:var(--text-default, #dfe3e8);}
16
- }`};function Pn(e,t){Er(t,!0),ns(e,Al);const r=()=>yi(Bs,"$_",n),[n,i]=Ei(),s=be(t,"offset",7,0),a=be(t,"limit",7,Dt),o=be(t,"total",7,0),u=be(t,"onPageChange",7,b=>{}),l=be(t,"locale",7,"en");Cs({withLocale:l(),translations:{}}),Object.entries(bl).forEach(([b,H])=>{Rs(b,H)}),Ft(()=>{ml(l()??"en")});const f=ze(()=>Number(s())||0),c=ze(()=>Number(a())||Dt),h=ze(()=>Number(o())||0),d=ze(()=>Math.max(1,Math.ceil(x(h)/Math.max(1,x(c))))),p=ze(()=>x(c)>0?Math.floor(x(f)/x(c)):0);let y=K(!1);Ft(()=>{const b=window.matchMedia("(max-width: 767px)"),H=se=>{Y(y,se.matches,!0)};return Y(y,b.matches,!0),b.addEventListener("change",H),()=>b.removeEventListener("change",H)});const m=(b,H,se)=>b<=(se?El:yl)?Array.from({length:b},(v,E)=>E):H<=1||H>=b-2?[0,1,"ellipsis",b-2,b-1]:[0,"ellipsis",H,"ellipsis",b-1],T=ze(()=>m(x(d),x(p),x(y))),I=b=>u()(b*x(c)),B=()=>u()(Math.max(0,x(p)-1)*x(c)),z=()=>u()(Math.min(x(d)-1,x(p)+1)*x(c));var j={get offset(){return s()},set offset(b=0){s(b),ce()},get limit(){return a()},set limit(b=Dt){a(b),ce()},get total(){return o()},set total(b=0){o(b),ce()},get onPageChange(){return u()},set onPageChange(b=H=>{}){u(b),ce()},get locale(){return l()},set locale(b="en"){l(b),ce()}},G=Sl(),W=lt(G);{var le=b=>{var H=Tl(),se=lt(H),Mt=lt(se,!0);ut(se);var w=qr(se,2);rs(w,17,()=>x(T),ts,(E,_)=>{var S=Qi(),A=$i(S);{var R=D=>{var U=xl();qe(D,U)},k=D=>{var U=wl();let ee;var De=lt(U,!0);ut(U),Zr(()=>{ee=is(U,1,"loyalty-pagination__btn svelte-1op0ean",null,ee,{"loyalty-pagination__btn--active":x(_)===x(p)}),rr(De,x(_)+1)}),tr("click",U,()=>I(x(_))),qe(D,U)};Kr(A,D=>{x(_)==="ellipsis"?D(R):D(k,-1)})}qe(E,S)});var g=qr(w,2),v=lt(g,!0);ut(g),ut(H),Zr((E,_)=>{se.disabled=x(p)<=0,rr(Mt,E),g.disabled=x(p)>=x(d)-1,rr(v,_)},[()=>r()("prev"),()=>r()("next")]),tr("click",se,B),tr("click",g,z),qe(b,H)};Kr(W,b=>{x(d)>1&&b(le)})}ut(G),qe(e,G);var fe=xr(j);return i(),fe}Ji(["click"]);Hn(Pn,{offset:{},limit:{},total:{},onPageChange:{},locale:{}},[],[],{mode:"open"});function Ds(e,t){Er(t,!0);let r=be(t,"offset",7,0),n=be(t,"limit",7,Dt),i=be(t,"total",7,0),s=be(t,"onPageChange"),a=be(t,"locale",7,"en");var o={get offset(){return r()},set offset(u=0){r(u),ce()},get limit(){return n()},set limit(u=Dt){n(u),ce()},get total(){return i()},set total(u=0){i(u),ce()},get onPageChange(){return s()},set onPageChange(u){s(u),ce()},get locale(){return a()},set locale(u="en"){a(u),ce()}};return Pn(e,{get offset(){return r()},get limit(){return n()},get total(){return i()},get onPageChange(){return s()},get locale(){return a()}}),xr(o)}customElements.define("loyalty-pagination",Hn(Ds,{offset:{},limit:{},total:{},onPageChange:{},locale:{}},[],[]));const Hl=Object.freeze(Object.defineProperty({__proto__:null,default:Ds},Symbol.toStringTag,{value:"Module"}));exports.$format=Bs;exports.DATE_FORMATS=go;exports.EVENT_TYPES=vo;exports.ITEMS_LIMIT_DEFAULT=os;exports.LoyaltyPagination=Pn;exports.LoyaltyPagination_ce=Hl;exports.MOBILE_LOAD_ITEMS=mo;exports.SOURCE=_o;exports.addNewMessages=Rs;exports.append=qe;exports.append_styles=ns;exports.bind_this=uo;exports.child=lt;exports.comment=Qi;exports.createElevateData=gl;exports.create_custom_element=Hn;exports.delegate=Ji;exports.delegated=tr;exports.dispatchRedeemRewardButton=No;exports.each=rs;exports.fetchShopItem=yo;exports.fetchShopRewards=bo;exports.first_child=$i;exports.flushSync=ce;exports.formatDate=Ao;exports.from_html=zt;exports.get=x;exports.if_block=Kr;exports.index=ts;exports.pop=xr;exports.prop=be;exports.proxy=ht;exports.push=Er;exports.redeemReward=Eo;exports.reset=ut;exports.sendRedeemRewardFailed=Po;exports.sendRedeemRewardRequested=Mo;exports.sendRedeemRewardSuccess=Oo;exports.sendRewardItemClicked=Ho;exports.set=Y;exports.set_attribute=so;exports.set_class=is;exports.set_text=rr;exports.setupI18n=Cs;exports.setup_stores=Ei;exports.sibling=qr;exports.state=K;exports.store_get=yi;exports.template_effect=Zr;exports.user_derived=ze;exports.user_effect=Ft;exports.user_pre_effect=Ba;