@everymatrix/loyalty-level 0.1.9 → 0.1.10

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