@everymatrix/loyalty-shop 0.1.5 → 0.1.7

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