@moonbase.sh/storefront 0.2.33 β†’ 0.2.34

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.
package/dist/moonbase.js CHANGED
@@ -9577,10 +9577,11 @@ var li = class it {
9577
9577
  } finally {
9578
9578
  this.loadedUser.value = !0;
9579
9579
  }
9580
+ return this.currentUser.value;
9580
9581
  }
9581
9582
  async updateStorefront() {
9582
9583
  const t = await this.client.storefront.get(this.hasUtm.value ? this.utm.value : void 0);
9583
- t && (typeof window < "u" && localStorage.setItem(it.storefrontKey, JSON.stringify(t)), this.storefront.value = t, this.loadedStorefront.value = !0, this.currentOrder.value.currency || (this.currentOrder.value.currency = t.suggestedCurrency));
9584
+ return t && (typeof window < "u" && localStorage.setItem(it.storefrontKey, JSON.stringify(t)), this.storefront.value = t, this.loadedStorefront.value = !0, this.currentOrder.value.currency || (this.currentOrder.value.currency = t.suggestedCurrency)), t;
9584
9585
  }
9585
9586
  async pushOrderContent() {
9586
9587
  typeof window < "u" && localStorage.setItem(it.sessionKey, JSON.stringify(this.currentOrder.value)), this.debouncedPushOrderContent(this.currentOrder.value);
@@ -9866,9 +9867,7 @@ function xt(e) {
9866
9867
  },
9867
9868
  confirmAccount: async (n, r) => await t.client.identity.confirmAccount(n, r),
9868
9869
  confirmEmail: async (n, r) => await t.client.identity.confirmEmail(n, r),
9869
- confirmEmailChange: async (n, r) => {
9870
- await t.client.identity.confirmEmailChange(n, r), t.updateUser();
9871
- }
9870
+ confirmEmailChange: async (n, r) => (await t.client.identity.confirmEmailChange(n, r), await t.updateUser())
9872
9871
  };
9873
9872
  }
9874
9873
  function Hg(e, t) {
@@ -12,7 +12,7 @@ If this is a native custom element, make sure to exclude it from component resol
12
12
 
13
13
  For more details, see https://link.vuejs.org/feature-flags.`)}}const Nt=wv;function lv(e){return uv(e)}function uv(e,t){av();const n=Mi();n.__VUE__=!0,g.NODE_ENV!=="production"&&Bu(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:r,remove:o,patchProp:s,createElement:i,createText:a,createComment:l,setText:u,setElementText:c,parentNode:d,nextSibling:f,setScopeId:m=Qe,insertStaticContent:b}=e,O=(p,h,k,L=null,I=null,R=null,J=void 0,z=null,W=g.NODE_ENV!=="production"&&Fn?!1:!!h.dynamicChildren)=>{if(p===h)return;p&&!yr(p,h)&&(L=yi(p),Be(p,I,R,!0),p=null),h.patchFlag===-2&&(W=!1,h.dynamicChildren=null);const{type:M,ref:me,shapeFlag:X}=h;switch(M){case Ro:w(p,h,k,L);break;case Ge:$(p,h,k,L);break;case jo:p==null?H(h,k,L,J):g.NODE_ENV!=="production"&&T(p,h,k,J);break;case xe:ie(p,h,k,L,I,R,J,z,W);break;default:X&1?U(p,h,k,L,I,R,J,z,W):X&6?$e(p,h,k,L,I,R,J,z,W):X&64||X&128?M.process(p,h,k,L,I,R,J,z,W,es):g.NODE_ENV!=="production"&&F("Invalid VNode type:",M,`(${typeof M})`)}me!=null&&I&&da(me,p&&p.ref,R,h||p,!h)},w=(p,h,k,L)=>{if(p==null)r(h.el=a(h.children),k,L);else{const I=h.el=p.el;h.children!==p.children&&u(I,h.children)}},$=(p,h,k,L)=>{p==null?r(h.el=l(h.children||""),k,L):h.el=p.el},H=(p,h,k,L)=>{[p.el,p.anchor]=b(p.children,h,k,L,p.el,p.anchor)},T=(p,h,k,L)=>{if(h.children!==p.children){const I=f(p.anchor);S(p),[h.el,h.anchor]=b(h.children,k,I,L)}else h.el=p.el,h.anchor=p.anchor},te=({el:p,anchor:h},k,L)=>{let I;for(;p&&p!==h;)I=f(p),r(p,k,L),p=I;r(h,k,L)},S=({el:p,anchor:h})=>{let k;for(;p&&p!==h;)k=f(p),o(p),p=k;o(h)},U=(p,h,k,L,I,R,J,z,W)=>{h.type==="svg"?J="svg":h.type==="math"&&(J="mathml"),p==null?j(h,k,L,I,R,J,z,W):A(p,h,I,R,J,z,W)},j=(p,h,k,L,I,R,J,z)=>{let W,M;const{props:me,shapeFlag:X,transition:ae,dirs:we}=p;if(W=p.el=i(p.type,R,me&&me.is,me),X&8?c(W,p.children):X&16&&q(p.children,W,null,L,I,Na(p,R),J,z),we&&pr(p,null,L,"created"),ge(W,p,p.scopeId,J,L),me){for(const He in me)He!=="value"&&!go(He)&&s(W,He,null,me[He],R,L);"value"in me&&s(W,"value",null,me.value,R),(M=me.onVnodeBeforeMount)&&sn(M,L,p)}g.NODE_ENV!=="production"&&(gs(W,"__vnode",p,!0),gs(W,"__vueParentComponent",L,!0)),we&&pr(p,null,L,"beforeMount");const Pe=cv(I,ae);Pe&&ae.beforeEnter(W),r(W,h,k),((M=me&&me.onVnodeMounted)||Pe||we)&&Nt(()=>{M&&sn(M,L,p),Pe&&ae.enter(W),we&&pr(p,null,L,"mounted")},I)},ge=(p,h,k,L,I)=>{if(k&&m(p,k),L)for(let R=0;R<L.length;R++)m(p,L[R]);if(I){let R=I.subTree;if(g.NODE_ENV!=="production"&&R.patchFlag>0&&R.patchFlag&2048&&(R=Ta(R.children)||R),h===R||Vc(R.type)&&(R.ssContent===h||R.ssFallback===h)){const J=I.vnode;ge(p,J,J.scopeId,J.slotScopeIds,I.parent)}}},q=(p,h,k,L,I,R,J,z,W=0)=>{for(let M=W;M<p.length;M++){const me=p[M]=z?Zn(p[M]):qt(p[M]);O(null,me,h,k,L,I,R,J,z)}},A=(p,h,k,L,I,R,J)=>{const z=h.el=p.el;g.NODE_ENV!=="production"&&(z.__vnode=h);let{patchFlag:W,dynamicChildren:M,dirs:me}=h;W|=p.patchFlag&16;const X=p.props||je,ae=h.props||je;let we;if(k&&gr(k,!1),(we=ae.onVnodeBeforeUpdate)&&sn(we,k,h,p),me&&pr(h,p,k,"beforeUpdate"),k&&gr(k,!0),g.NODE_ENV!=="production"&&Fn&&(W=0,J=!1,M=null),(X.innerHTML&&ae.innerHTML==null||X.textContent&&ae.textContent==null)&&c(z,""),M?(V(p.dynamicChildren,M,z,k,L,Na(h,I),R),g.NODE_ENV!=="production"&&Vo(p,h)):J||he(p,h,z,null,k,L,Na(h,I),R,!1),W>0){if(W&16)D(z,X,ae,k,I);else if(W&2&&X.class!==ae.class&&s(z,"class",null,ae.class,I),W&4&&s(z,"style",X.style,ae.style,I),W&8){const Pe=h.dynamicProps;for(let He=0;He<Pe.length;He++){const Me=Pe[He],$t=X[Me],mt=ae[Me];(mt!==$t||Me==="value")&&s(z,Me,$t,mt,I,k)}}W&1&&p.children!==h.children&&c(z,h.children)}else!J&&M==null&&D(z,X,ae,k,I);((we=ae.onVnodeUpdated)||me)&&Nt(()=>{we&&sn(we,k,h,p),me&&pr(h,p,k,"updated")},L)},V=(p,h,k,L,I,R,J)=>{for(let z=0;z<h.length;z++){const W=p[z],M=h[z],me=W.el&&(W.type===xe||!yr(W,M)||W.shapeFlag&70)?d(W.el):k;O(W,M,me,null,L,I,R,J,!0)}},D=(p,h,k,L,I)=>{if(h!==k){if(h!==je)for(const R in h)!go(R)&&!(R in k)&&s(p,R,h[R],null,I,L);for(const R in k){if(go(R))continue;const J=k[R],z=h[R];J!==z&&R!=="value"&&s(p,R,z,J,I,L)}"value"in k&&s(p,"value",h.value,k.value,I)}},ie=(p,h,k,L,I,R,J,z,W)=>{const M=h.el=p?p.el:a(""),me=h.anchor=p?p.anchor:a("");let{patchFlag:X,dynamicChildren:ae,slotScopeIds:we}=h;g.NODE_ENV!=="production"&&(Fn||X&2048)&&(X=0,W=!1,ae=null),we&&(z=z?z.concat(we):we),p==null?(r(M,k,L),r(me,k,L),q(h.children||[],k,me,I,R,J,z,W)):X>0&&X&64&&ae&&p.dynamicChildren?(V(p.dynamicChildren,ae,k,I,R,J,z),g.NODE_ENV!=="production"?Vo(p,h):(h.key!=null||I&&h===I.subTree)&&Vo(p,h,!0)):he(p,h,k,me,I,R,J,z,W)},$e=(p,h,k,L,I,R,J,z,W)=>{h.slotScopeIds=z,p==null?h.shapeFlag&512?I.ctx.activate(h,k,L,J,W):E(h,k,L,I,R,J,W):P(p,h,W)},E=(p,h,k,L,I,R,J)=>{const z=p.component=Tv(p,L,I);if(g.NODE_ENV!=="production"&&z.type.__hmrId&&om(z),g.NODE_ENV!=="production"&&(Ds(p),wn(z,"mount")),$o(p)&&(z.ctx.renderer=es),g.NODE_ENV!=="production"&&wn(z,"init"),Pv(z,!1,J),g.NODE_ENV!=="production"&&En(z,"init"),z.asyncDep){if(I&&I.registerDep(z,Y,J),!p.el){const W=z.subTree=Z(Ge);$(null,W,h,k)}}else Y(z,p,h,k,I,R,J);g.NODE_ENV!=="production"&&($s(),En(z,"mount"))},P=(p,h,k)=>{const L=h.component=p.component;if(bv(p,h,k))if(L.asyncDep&&!L.asyncResolved){g.NODE_ENV!=="production"&&Ds(h),re(L,h,k),g.NODE_ENV!=="production"&&$s();return}else L.next=h,L.update();else h.el=p.el,L.vnode=h},Y=(p,h,k,L,I,R,J)=>{const z=()=>{if(p.isMounted){let{next:X,bu:ae,u:we,parent:Pe,vnode:He}=p;{const It=Tc(p);if(It){X&&(X.el=He.el,re(p,X,J)),It.asyncDep.then(()=>{p.isUnmounted||z()});return}}let Me=X,$t;g.NODE_ENV!=="production"&&Ds(X||p.vnode),gr(p,!1),X?(X.el=He.el,re(p,X,J)):X=He,ae&&yo(ae),($t=X.props&&X.props.onVnodeBeforeUpdate)&&sn($t,Pe,X,He),gr(p,!0),g.NODE_ENV!=="production"&&wn(p,"render");const mt=ka(p);g.NODE_ENV!=="production"&&En(p,"render");const zt=p.subTree;p.subTree=mt,g.NODE_ENV!=="production"&&wn(p,"patch"),O(zt,mt,d(zt.el),yi(zt),p,I,R),g.NODE_ENV!=="production"&&En(p,"patch"),X.el=mt.el,Me===null&&_v(p,mt.el),we&&Nt(we,I),($t=X.props&&X.props.onVnodeUpdated)&&Nt(()=>sn($t,Pe,X,He),I),g.NODE_ENV!=="production"&&Hu(p),g.NODE_ENV!=="production"&&$s()}else{let X;const{el:ae,props:we}=h,{bm:Pe,m:He,parent:Me,root:$t,type:mt}=p,zt=Br(h);if(gr(p,!1),Pe&&yo(Pe),!zt&&(X=we&&we.onVnodeBeforeMount)&&sn(X,Me,h),gr(p,!0),ae&&Tf){const It=()=>{g.NODE_ENV!=="production"&&wn(p,"render"),p.subTree=ka(p),g.NODE_ENV!=="production"&&En(p,"render"),g.NODE_ENV!=="production"&&wn(p,"hydrate"),Tf(ae,p.subTree,p,I,null),g.NODE_ENV!=="production"&&En(p,"hydrate")};zt&&mt.__asyncHydrate?mt.__asyncHydrate(ae,p,It):It()}else{$t.ce&&$t.ce._injectChildStyle(mt),g.NODE_ENV!=="production"&&wn(p,"render");const It=p.subTree=ka(p);g.NODE_ENV!=="production"&&En(p,"render"),g.NODE_ENV!=="production"&&wn(p,"patch"),O(null,It,k,L,p,I,R),g.NODE_ENV!=="production"&&En(p,"patch"),h.el=It.el}if(He&&Nt(He,I),!zt&&(X=we&&we.onVnodeMounted)){const It=h;Nt(()=>sn(X,Me,It),I)}(h.shapeFlag&256||Me&&Br(Me.vnode)&&Me.vnode.shapeFlag&256)&&p.a&&Nt(p.a,I),p.isMounted=!0,g.NODE_ENV!=="production"&&cm(p),h=k=L=null}};p.scope.on();const W=p.effect=new iu(z);p.scope.off();const M=p.update=W.run.bind(W),me=p.job=W.runIfDirty.bind(W);me.i=p,me.id=p.uid,W.scheduler=()=>Is(me),gr(p,!0),g.NODE_ENV!=="production"&&(W.onTrack=p.rtc?X=>yo(p.rtc,X):void 0,W.onTrigger=p.rtg?X=>yo(p.rtg,X):void 0),M()},re=(p,h,k)=>{h.component=p;const L=p.vnode.props;p.vnode=h,p.next=null,Jm(p,h.props,L,k),iv(p,h.children,k),vn(),ju(p),gn()},he=(p,h,k,L,I,R,J,z,W=!1)=>{const M=p&&p.children,me=p?p.shapeFlag:0,X=h.children,{patchFlag:ae,shapeFlag:we}=h;if(ae>0){if(ae&128){Fe(M,X,k,L,I,R,J,z,W);return}else if(ae&256){oe(M,X,k,L,I,R,J,z,W);return}}we&8?(me&16&&Qo(M,I,R),X!==M&&c(k,X)):me&16?we&16?Fe(M,X,k,L,I,R,J,z,W):Qo(M,I,R,!0):(me&8&&c(k,""),we&16&&q(X,k,L,I,R,J,z,W))},oe=(p,h,k,L,I,R,J,z,W)=>{p=p||jr,h=h||jr;const M=p.length,me=h.length,X=Math.min(M,me);let ae;for(ae=0;ae<X;ae++){const we=h[ae]=W?Zn(h[ae]):qt(h[ae]);O(p[ae],we,k,null,I,R,J,z,W)}M>me?Qo(p,I,R,!0,!1,X):q(h,k,L,I,R,J,z,W,X)},Fe=(p,h,k,L,I,R,J,z,W)=>{let M=0;const me=h.length;let X=p.length-1,ae=me-1;for(;M<=X&&M<=ae;){const we=p[M],Pe=h[M]=W?Zn(h[M]):qt(h[M]);if(yr(we,Pe))O(we,Pe,k,null,I,R,J,z,W);else break;M++}for(;M<=X&&M<=ae;){const we=p[X],Pe=h[ae]=W?Zn(h[ae]):qt(h[ae]);if(yr(we,Pe))O(we,Pe,k,null,I,R,J,z,W);else break;X--,ae--}if(M>X){if(M<=ae){const we=ae+1,Pe=we<me?h[we].el:L;for(;M<=ae;)O(null,h[M]=W?Zn(h[M]):qt(h[M]),k,Pe,I,R,J,z,W),M++}}else if(M>ae)for(;M<=X;)Be(p[M],I,R,!0),M++;else{const we=M,Pe=M,He=new Map;for(M=Pe;M<=ae;M++){const Et=h[M]=W?Zn(h[M]):qt(h[M]);Et.key!=null&&(g.NODE_ENV!=="production"&&He.has(Et.key)&&F("Duplicate keys found during update:",JSON.stringify(Et.key),"Make sure keys are unique."),He.set(Et.key,M))}let Me,$t=0;const mt=ae-Pe+1;let zt=!1,It=0;const ts=new Array(mt);for(M=0;M<mt;M++)ts[M]=0;for(M=we;M<=X;M++){const Et=p[M];if($t>=mt){Be(Et,I,R,!0);continue}let dn;if(Et.key!=null)dn=He.get(Et.key);else for(Me=Pe;Me<=ae;Me++)if(ts[Me-Pe]===0&&yr(Et,h[Me])){dn=Me;break}dn===void 0?Be(Et,I,R,!0):(ts[dn-Pe]=M+1,dn>=It?It=dn:zt=!0,O(Et,h[dn],k,null,I,R,J,z,W),$t++)}const Cf=zt?dv(ts):jr;for(Me=Cf.length-1,M=mt-1;M>=0;M--){const Et=Pe+M,dn=h[Et],Pf=Et+1<me?h[Et+1].el:L;ts[M]===0?O(null,dn,k,Pf,I,R,J,z,W):zt&&(Me<0||M!==Cf[Me]?ht(dn,k,Pf,2):Me--)}}},ht=(p,h,k,L,I=null)=>{const{el:R,type:J,transition:z,children:W,shapeFlag:M}=p;if(M&6){ht(p.component.subTree,h,k,L);return}if(M&128){p.suspense.move(h,k,L);return}if(M&64){J.move(p,h,k,es);return}if(J===xe){r(R,h,k);for(let X=0;X<W.length;X++)ht(W[X],h,k,L);r(p.anchor,h,k);return}if(J===jo){te(p,h,k);return}if(L!==2&&M&1&&z)if(L===0)z.beforeEnter(R),r(R,h,k),Nt(()=>z.enter(R),I);else{const{leave:X,delayLeave:ae,afterLeave:we}=z,Pe=()=>r(R,h,k),He=()=>{X(R,()=>{Pe(),we&&we()})};ae?ae(R,Pe,He):He()}else r(R,h,k)},Be=(p,h,k,L=!1,I=!1)=>{const{type:R,props:J,ref:z,children:W,dynamicChildren:M,shapeFlag:me,patchFlag:X,dirs:ae,cacheIndex:we}=p;if(X===-2&&(I=!1),z!=null&&da(z,null,k,p,!0),we!=null&&(h.renderCache[we]=void 0),me&256){h.ctx.deactivate(p);return}const Pe=me&1&&ae,He=!Br(p);let Me;if(He&&(Me=J&&J.onVnodeBeforeUnmount)&&sn(Me,h,p),me&6)ww(p.component,k,L);else{if(me&128){p.suspense.unmount(k,L);return}Pe&&pr(p,null,h,"beforeUnmount"),me&64?p.type.remove(p,h,k,es,L):M&&!M.hasOnce&&(R!==xe||X>0&&X&64)?Qo(M,h,k,!1,!0):(R===xe&&X&384||!I&&me&16)&&Qo(W,h,k),L&&xt(p)}(He&&(Me=J&&J.onVnodeUnmounted)||Pe)&&Nt(()=>{Me&&sn(Me,h,p),Pe&&pr(p,null,h,"unmounted")},k)},xt=p=>{const{type:h,el:k,anchor:L,transition:I}=p;if(h===xe){g.NODE_ENV!=="production"&&p.patchFlag>0&&p.patchFlag&2048&&I&&!I.persisted?p.children.forEach(J=>{J.type===Ge?o(J.el):xt(J)}):tr(k,L);return}if(h===jo){S(p);return}const R=()=>{o(k),I&&!I.persisted&&I.afterLeave&&I.afterLeave()};if(p.shapeFlag&1&&I&&!I.persisted){const{leave:J,delayLeave:z}=I,W=()=>J(k,R);z?z(p.el,R,W):W()}else R()},tr=(p,h)=>{let k;for(;p!==h;)k=f(p),o(p),p=k;o(h)},ww=(p,h,k)=>{g.NODE_ENV!=="production"&&p.type.__hmrId&&sm(p);const{bum:L,scope:I,job:R,subTree:J,um:z,m:W,a:M}=p;Cc(W),Cc(M),L&&yo(L),I.stop(),R&&(R.flags|=8,Be(J,p,h,k)),z&&Nt(z,h),Nt(()=>{p.isUnmounted=!0},h),h&&h.pendingBranch&&!h.isUnmounted&&p.asyncDep&&!p.asyncResolved&&p.suspenseId===h.pendingId&&(h.deps--,h.deps===0&&h.resolve()),g.NODE_ENV!=="production"&&fm(p)},Qo=(p,h,k,L=!1,I=!1,R=0)=>{for(let J=R;J<p.length;J++)Be(p[J],h,k,L,I)},yi=p=>{if(p.shapeFlag&6)return yi(p.component.subTree);if(p.shapeFlag&128)return p.suspense.next();const h=f(p.anchor||p.el),k=h&&h[zu];return k?f(k):h};let ml=!1;const xf=(p,h,k)=>{p==null?h._vnode&&Be(h._vnode,null,null,!0):O(h._vnode||null,p,h,null,null,null,k),h._vnode=p,ml||(ml=!0,ju(),Lu(),ml=!1)},es={p:O,um:Be,m:ht,r:xt,mt:E,mc:q,pc:he,pbc:V,n:yi,o:e};let kf,Tf;return{render:xf,hydrate:kf,createApp:Wm(xf,kf)}}function Na({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function gr({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function cv(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Vo(e,t,n=!1){const r=e.children,o=t.children;if(le(r)&&le(o))for(let s=0;s<r.length;s++){const i=r[s];let a=o[s];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=o[s]=Zn(o[s]),a.el=i.el),!n&&a.patchFlag!==-2&&Vo(i,a)),a.type===Ro&&(a.el=i.el),g.NODE_ENV!=="production"&&a.type===Ge&&!a.el&&(a.el=i.el)}}function dv(e){const t=e.slice(),n=[0];let r,o,s,i,a;const l=e.length;for(r=0;r<l;r++){const u=e[r];if(u!==0){if(o=n[n.length-1],e[o]<u){t[r]=o,n.push(r);continue}for(s=0,i=n.length-1;s<i;)a=s+i>>1,e[n[a]]<u?s=a+1:i=a;u<e[n[s]]&&(s>0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,i=n[s-1];s-- >0;)n[s]=i,i=t[i];return n}function Tc(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Tc(t)}function Cc(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const fv=Symbol.for("v-scx"),pv=()=>{{const e=Ce(fv);return e||g.NODE_ENV!=="production"&&F("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function ft(e,t){return Sa(e,null,t)}function Je(e,t,n){return g.NODE_ENV!=="production"&&!ce(t)&&F("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),Sa(e,t,n)}function Sa(e,t,n=je){const{immediate:r,deep:o,flush:s,once:i}=n;g.NODE_ENV!=="production"&&!t&&(r!==void 0&&F('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),o!==void 0&&F('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),i!==void 0&&F('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const a=Ke({},n);g.NODE_ENV!=="production"&&(a.onWarn=F);let l;if(Ks)if(s==="sync"){const f=pv();l=f.__watcherHandles||(f.__watcherHandles=[])}else if(!t||r)a.once=!0;else return{stop:Qe,resume:Qe,pause:Qe};const u=Ye;a.call=(f,m,b)=>Ht(f,u,m,b);let c=!1;s==="post"?a.scheduler=f=>{Nt(f,u&&u.suspense)}:s!=="sync"&&(c=!0,a.scheduler=(f,m)=>{m?f():Is(f)}),a.augmentJob=f=>{t&&(f.flags|=4),c&&(f.flags|=2,u&&(f.id=u.uid,f.i=u))};const d=Gh(e,t,a);return l&&l.push(d),d}function hv(e,t,n){const r=this.proxy,o=Ze(e)?e.includes(".")?Pc(r,e):()=>r[e]:e.bind(r,r);let s;ce(t)?s=t:(s=t.handler,n=t);const i=Uo(this),a=Sa(o,s.bind(r),n);return i(),a}function Pc(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o<n.length&&r;o++)r=r[n[o]];return r}}const mv=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ct(t)}Modifiers`]||e[`${mn(t)}Modifiers`];function vv(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||je;if(g.NODE_ENV!=="production"){const{emitsOptions:c,propsOptions:[d]}=e;if(c)if(!(t in c))(!d||!(lr(Ct(t))in d))&&F(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${lr(Ct(t))}" prop.`);else{const f=c[t];ce(f)&&(f(...n)||F(`Invalid event arguments: event validation failed for event "${t}".`))}}let o=n;const s=t.startsWith("update:"),i=s&&mv(r,t.slice(7));if(i&&(i.trim&&(o=n.map(c=>Ze(c)?c.trim():c)),i.number&&(o=n.map(sh))),g.NODE_ENV!=="production"&&mm(e,t,o),g.NODE_ENV!=="production"){const c=t.toLowerCase();c!==t&&r[lr(c)]&&F(`Event "${c}" is emitted in component ${Gs(e,e.type)} but the handler is registered for "${t}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${mn(t)}" instead of "${t}".`)}let a,l=r[a=lr(t)]||r[a=lr(Ct(t))];!l&&s&&(l=r[a=lr(mn(t))]),l&&Ht(l,e,6,o);const u=r[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Ht(u,e,6,o)}}function Dc(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const s=e.emits;let i={},a=!1;if(!ce(e)){const l=u=>{const c=Dc(u,t,!0);c&&(a=!0,Ke(i,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!s&&!a?(Ie(e)&&r.set(e,null),null):(le(s)?s.forEach(l=>i[l]=null):Ke(i,s),Ie(e)&&r.set(e,i),i)}function Hs(e,t){return!e||!vo(t)?!1:(t=t.slice(2).replace(/Once$/,""),De(e,t[0].toLowerCase()+t.slice(1))||De(e,mn(t))||De(e,t))}let xa=!1;function Zs(){xa=!0}function ka(e){const{type:t,vnode:n,proxy:r,withProxy:o,propsOptions:[s],slots:i,attrs:a,emit:l,render:u,renderCache:c,props:d,data:f,setupState:m,ctx:b,inheritAttrs:O}=e,w=Rs(e);let $,H;g.NODE_ENV!=="production"&&(xa=!1);try{if(n.shapeFlag&4){const S=o||r,U=g.NODE_ENV!=="production"&&m.__isScriptSetup?new Proxy(S,{get(j,ge,q){return F(`Property '${String(ge)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(j,ge,q)}}):S;$=qt(u.call(U,S,c,g.NODE_ENV!=="production"?en(d):d,m,f,b)),H=a}else{const S=t;g.NODE_ENV!=="production"&&a===d&&Zs(),$=qt(S.length>1?S(g.NODE_ENV!=="production"?en(d):d,g.NODE_ENV!=="production"?{get attrs(){return Zs(),en(a)},slots:i,emit:l}:{attrs:a,slots:i,emit:l}):S(g.NODE_ENV!=="production"?en(d):d,null)),H=t.props?a:gv(a)}}catch(S){Lo.length=0,So(S,e,1),$=Z(Ge)}let T=$,te;if(g.NODE_ENV!=="production"&&$.patchFlag>0&&$.patchFlag&2048&&([T,te]=$c($)),H&&O!==!1){const S=Object.keys(H),{shapeFlag:U}=T;if(S.length){if(U&7)s&&S.some(hs)&&(H=yv(H,s)),T=Zt(T,H,!1,!0);else if(g.NODE_ENV!=="production"&&!xa&&T.type!==Ge){const j=Object.keys(a),ge=[],q=[];for(let A=0,V=j.length;A<V;A++){const D=j[A];vo(D)?hs(D)||ge.push(D[2].toLowerCase()+D.slice(3)):q.push(D)}q.length&&F(`Extraneous non-props attributes (${q.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`),ge.length&&F(`Extraneous non-emits event listeners (${ge.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.`)}}}return n.dirs&&(g.NODE_ENV!=="production"&&!Ic(T)&&F("Runtime directive used on component with non-element root node. The directives will not function as intended."),T=Zt(T,null,!1,!0),T.dirs=T.dirs?T.dirs.concat(n.dirs):n.dirs),n.transition&&(g.NODE_ENV!=="production"&&!Ic(T)&&F("Component inside <Transition> renders non-element root node that cannot be animated."),Do(T,n.transition)),g.NODE_ENV!=="production"&&te?te(T):$=T,Rs(w),$}const $c=e=>{const t=e.children,n=e.dynamicChildren,r=Ta(t,!1);if(r){if(g.NODE_ENV!=="production"&&r.patchFlag>0&&r.patchFlag&2048)return $c(r)}else return[e,void 0];const o=t.indexOf(r),s=n?n.indexOf(r):-1,i=a=>{t[o]=a,n&&(s>-1?n[s]=a:a.patchFlag>0&&(e.dynamicChildren=[...n,a]))};return[qt(r),i]};function Ta(e,t=!0){let n;for(let r=0;r<e.length;r++){const o=e[r];if(Hr(o)){if(o.type!==Ge||o.children==="v-if"){if(n)return;if(n=o,g.NODE_ENV!=="production"&&t&&n.patchFlag>0&&n.patchFlag&2048)return Ta(n.children)}}else return}return n}const gv=e=>{let t;for(const n in e)(n==="class"||n==="style"||vo(n))&&((t||(t={}))[n]=e[n]);return t},yv=(e,t)=>{const n={};for(const r in e)(!hs(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n},Ic=e=>e.shapeFlag&7||e.type===Ge;function bv(e,t,n){const{props:r,children:o,component:s}=e,{props:i,children:a,patchFlag:l}=t,u=s.emitsOptions;if(g.NODE_ENV!=="production"&&(o||a)&&Fn||t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Ac(r,i,u):!!i;if(l&8){const c=t.dynamicProps;for(let d=0;d<c.length;d++){const f=c[d];if(i[f]!==r[f]&&!Hs(u,f))return!0}}}else return(o||a)&&(!a||!a.$stable)?!0:r===i?!1:r?i?Ac(r,i,u):!0:!!i;return!1}function Ac(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const s=r[o];if(t[s]!==e[s]&&!Hs(n,s))return!0}return!1}function _v({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const Vc=e=>e.__isSuspense;function wv(e,t){t&&t.pendingBranch?le(e)?t.effects.push(...e):t.effects.push(e):Ru(e)}const xe=Symbol.for("v-fgt"),Ro=Symbol.for("v-txt"),Ge=Symbol.for("v-cmt"),jo=Symbol.for("v-stc"),Lo=[];let Pt=null;function y(e=!1){Lo.push(Pt=e?null:[])}function Ev(){Lo.pop(),Pt=Lo[Lo.length-1]||null}let Mo=1;function Rc(e){Mo+=e,e<0&&Pt&&(Pt.hasOnce=!0)}function jc(e){return e.dynamicChildren=Mo>0?Pt||jr:null,Ev(),Mo>0&&Pt&&Pt.push(e),e}function x(e,t,n,r,o,s){return jc(N(e,t,n,r,o,s,!0))}function Ne(e,t,n,r,o){return jc(Z(e,t,n,r,o,!0))}function Hr(e){return e?e.__v_isVNode===!0:!1}function yr(e,t){if(g.NODE_ENV!=="production"&&t.shapeFlag&6&&e.component){const n=As.get(t.type);if(n&&n.has(e.component))return e.shapeFlag&=-257,t.shapeFlag&=-513,!1}return e.type===t.type&&e.key===t.key}const Ov=(...e)=>Mc(...e),Lc=({key:e})=>e??null,qs=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ze(e)||qe(e)||ce(e)?{i:tt,r:e,k:t,f:!!n}:e:null);function N(e,t=null,n=null,r=0,o=null,s=e===xe?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Lc(t),ref:t&&qs(t),scopeId:qu,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:tt};return a?(Ca(l,n),s&128&&e.normalize(l)):n&&(l.shapeFlag|=Ze(n)?8:16),g.NODE_ENV!=="production"&&l.key!==l.key&&F("VNode created with invalid key (NaN). VNode type:",l.type),Mo>0&&!i&&Pt&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&Pt.push(l),l}const Z=g.NODE_ENV!=="production"?Ov:Mc;function Mc(e,t=null,n=null,r=0,o=null,s=!1){if((!e||e===ic)&&(g.NODE_ENV!=="production"&&!e&&F(`Invalid vnode type when creating vnode: ${e}.`),e=Ge),Hr(e)){const a=Zt(e,t,!0);return n&&Ca(a,n),Mo>0&&!s&&Pt&&(a.shapeFlag&6?Pt[Pt.indexOf(e)]=a:Pt.push(a)),a.patchFlag=-2,a}if(Wc(e)&&(e=e.__vccOpts),t){t=Nv(t);let{class:a,style:l}=t;a&&!Ze(a)&&(t.class=ys(a)),Ie(l)&&(No(l)&&!le(l)&&(l=Ke({},l)),t.style=Ui(l))}const i=Ze(e)?1:Vc(e)?128:Ku(e)?64:Ie(e)?4:ce(e)?2:0;return g.NODE_ENV!=="production"&&i&4&&No(e)&&(e=ye(e),F("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
14
14
  Component that was made reactive: `,e)),N(e,t,n,r,o,i,s,!0)}function Nv(e){return e?No(e)||yc(e)?Ke({},e):e:null}function Zt(e,t,n=!1,r=!1){const{props:o,ref:s,patchFlag:i,children:a,transition:l}=e,u=t?Pa(o||{},t):o,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Lc(u),ref:t&&t.ref?n&&s?le(s)?s.concat(qs(t)):[s,qs(t)]:qs(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:g.NODE_ENV!=="production"&&i===-1&&le(a)?a.map(Uc):a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==xe?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Zt(e.ssContent),ssFallback:e.ssFallback&&Zt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&Do(c,l.clone(c)),c}function Uc(e){const t=Zt(e);return le(e.children)&&(t.children=e.children.map(Uc)),t}function ke(e=" ",t=0){return Z(Ro,null,e,t)}function Sv(e,t){const n=Z(jo,null,e);return n.staticCount=t,n}function fe(e="",t=!1){return t?(y(),Ne(Ge,null,e)):Z(Ge,null,e)}function qt(e){return e==null||typeof e=="boolean"?Z(Ge):le(e)?Z(xe,null,e.slice()):typeof e=="object"?Zn(e):Z(Ro,null,String(e))}function Zn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Zt(e)}function Ca(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(le(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),Ca(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!yc(t)?t._ctx=tt:o===3&&tt&&(tt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ce(t)?(t={default:t,_ctx:tt},n=32):(t=String(t),r&64?(n=16,t=[ke(t)]):n=8);e.children=t,e.shapeFlag|=n}function Pa(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const o in r)if(o==="class")t.class!==r.class&&(t.class=ys([t.class,r.class]));else if(o==="style")t.style=Ui([t.style,r.style]);else if(vo(o)){const s=t[o],i=r[o];i&&s!==i&&!(le(s)&&s.includes(i))&&(t[o]=s?[].concat(s,i):i)}else o!==""&&(t[o]=r[o])}return t}function sn(e,t,n,r=null){Ht(e,t,7,[n,r])}const xv=mc();let kv=0;function Tv(e,t,n){const r=e.type,o=(t?t.appContext:e.appContext)||xv,s={uid:kv++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ru(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:_c(r,o),emitsOptions:Dc(r,o),emit:null,emitted:null,propsDefaults:je,inheritAttrs:r.inheritAttrs,ctx:je,data:je,props:je,attrs:je,slots:je,refs:je,setupState:je,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return g.NODE_ENV!=="production"?s.ctx=Rm(s):s.ctx={_:s},s.root=t?t.root:s,s.emit=vv.bind(null,s),e.ce&&e.ce(s),s}let Ye=null;const Ws=()=>Ye||tt;let zs,Da;{const e=Mi(),t=(n,r)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(r),s=>{o.length>1?o.forEach(i=>i(s)):o[0](s)}};zs=t("__VUE_INSTANCE_SETTERS__",n=>Ye=n),Da=t("__VUE_SSR_SETTERS__",n=>Ks=n)}const Uo=e=>{const t=Ye;return zs(e),e.scope.on(),()=>{e.scope.off(),zs(t)}},Fc=()=>{Ye&&Ye.scope.off(),zs(null)},Cv=hn("slot,component");function $a(e,{isNativeTag:t}){(Cv(e)||t(e))&&F("Do not use built-in or reserved HTML elements as component id: "+e)}function Bc(e){return e.vnode.shapeFlag&4}let Ks=!1;function Pv(e,t=!1,n=!1){t&&Da(t);const{props:r,children:o}=e.vnode,s=Bc(e);Km(e,r,s,t),sv(e,o,n);const i=s?Dv(e,t):void 0;return t&&Da(!1),i}function Dv(e,t){var n;const r=e.type;if(g.NODE_ENV!=="production"){if(r.name&&$a(r.name,e.appContext.config),r.components){const s=Object.keys(r.components);for(let i=0;i<s.length;i++)$a(s[i],e.appContext.config)}if(r.directives){const s=Object.keys(r.directives);for(let i=0;i<s.length;i++)Wu(s[i])}r.compilerOptions&&$v()&&F('"compilerOptions" is only supported when using a build of Vue that includes the runtime compiler. Since you are using a runtime-only build, the options should be passed via your build tool config instead.')}e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,uc),g.NODE_ENV!=="production"&&jm(e);const{setup:o}=r;if(o){const s=e.setupContext=o.length>1?Av(e):null,i=Uo(e);vn();const a=Mr(o,e,0,[g.NODE_ENV!=="production"?en(e.props):e.props,s]);if(gn(),i(),Ri(a)){if(Br(e)||oc(e),a.then(Fc,Fc),t)return a.then(l=>{Hc(e,l,t)}).catch(l=>{So(l,e,0)});if(e.asyncDep=a,g.NODE_ENV!=="production"&&!e.suspense){const l=(n=r.name)!=null?n:"Anonymous";F(`Component <${l}>: setup function returned a promise, but no <Suspense> boundary was found in the parent component tree. A component with async setup() must be nested in a <Suspense> in order to be rendered.`)}}else Hc(e,a,t)}else Zc(e,t)}function Hc(e,t,n){ce(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ie(t)?(g.NODE_ENV!=="production"&&Hr(t)&&F("setup() should not return VNodes directly - return a render function instead."),g.NODE_ENV!=="production"&&(e.devtoolsRawSetupState=t),e.setupState=Pu(t),g.NODE_ENV!=="production"&&Lm(e)):g.NODE_ENV!=="production"&&t!==void 0&&F(`setup() should return an object. Received: ${t===null?"null":typeof t}`),Zc(e,n)}let Ia;const $v=()=>!Ia;function Zc(e,t,n){const r=e.type;if(!e.render){if(!t&&Ia&&!r.render){const o=r.template||ba(e).template;if(o){g.NODE_ENV!=="production"&&wn(e,"compile");const{isCustomElement:s,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:l}=r,u=Ke(Ke({isCustomElement:s,delimiters:a},i),l);r.render=Ia(o,u),g.NODE_ENV!=="production"&&En(e,"compile")}}e.render=r.render||Qe}{const o=Uo(e);vn();try{Um(e)}finally{gn(),o()}}g.NODE_ENV!=="production"&&!r.render&&e.render===Qe&&!t&&(r.template?F('Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".'):F("Component is missing template or render function: ",r))}const qc=g.NODE_ENV!=="production"?{get(e,t){return Zs(),et(e,"get",""),e[t]},set(){return F("setupContext.attrs is readonly."),!1},deleteProperty(){return F("setupContext.attrs is readonly."),!1}}:{get(e,t){return et(e,"get",""),e[t]}};function Iv(e){return new Proxy(e.slots,{get(t,n){return et(e,"get","$slots"),t[n]}})}function Av(e){const t=n=>{if(g.NODE_ENV!=="production"&&(e.exposed&&F("expose() should be called only once per setup()."),n!=null)){let r=typeof n;r==="object"&&(le(n)?r="array":qe(n)&&(r="ref")),r!=="object"&&F(`expose() should be passed a plain object, received ${r}.`)}e.exposed=n||{}};if(g.NODE_ENV!=="production"){let n,r;return Object.freeze({get attrs(){return n||(n=new Proxy(e.attrs,qc))},get slots(){return r||(r=Iv(e))},get emit(){return(o,...s)=>e.emit(o,...s)},expose:t})}else return{attrs:new Proxy(e.attrs,qc),slots:e.slots,emit:e.emit,expose:t}}function Aa(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Pu(jn(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in mr)return mr[n](e)},has(t,n){return n in t||n in mr}})):e.proxy}const Vv=/(?:^|[-_])(\w)/g,Rv=e=>e.replace(Vv,t=>t.toUpperCase()).replace(/[-_]/g,"");function Va(e,t=!0){return ce(e)?e.displayName||e.name:e.name||t&&e.__name}function Gs(e,t,n=!1){let r=Va(t);if(!r&&t.__file){const o=t.__file.match(/([^/\\]+)\.\w+$/);o&&(r=o[1])}if(!r&&e&&e.parent){const o=s=>{for(const i in s)if(s[i]===t)return i};r=o(e.components||e.parent.type.components)||o(e.appContext.components)}return r?Rv(r):n?"App":"Anonymous"}function Wc(e){return ce(e)&&"__vccOpts"in e}const Q=(e,t)=>{const n=zh(e,t,Ks);if(g.NODE_ENV!=="production"){const r=Ws();r&&r.appContext.config.warnRecursiveComputed&&(n._warnRecursive=!0)}return n};function Ue(e,t,n){const r=arguments.length;return r===2?Ie(t)&&!le(t)?Hr(t)?Z(e,null,[t]):Z(e,t):Z(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Hr(n)&&(n=[n]),Z(e,t,n))}function jv(){if(g.NODE_ENV==="production"||typeof window>"u")return;const e={style:"color:#3ba776"},t={style:"color:#1677ff"},n={style:"color:#f5222d"},r={style:"color:#eb2f96"},o={__vue_custom_formatter:!0,header(d){return Ie(d)?d.__isVue?["div",e,"VueInstance"]:qe(d)?["div",{},["span",e,c(d)],"<",a("_value"in d?d._value:d),">"]:tn(d)?["div",{},["span",e,Ot(d)?"ShallowReactive":"Reactive"],"<",a(d),`>${bn(d)?" (readonly)":""}`]:bn(d)?["div",{},["span",e,Ot(d)?"ShallowReadonly":"Readonly"],"<",a(d),">"]:null:null},hasBody(d){return d&&d.__isVue},body(d){if(d&&d.__isVue)return["div",{},...s(d.$)]}};function s(d){const f=[];d.type.props&&d.props&&f.push(i("props",ye(d.props))),d.setupState!==je&&f.push(i("setup",d.setupState)),d.data!==je&&f.push(i("data",ye(d.data)));const m=l(d,"computed");m&&f.push(i("computed",m));const b=l(d,"inject");return b&&f.push(i("injected",b)),f.push(["div",{},["span",{style:r.style+";opacity:0.66"},"$ (internal): "],["object",{object:d}]]),f}function i(d,f){return f=Ke({},f),Object.keys(f).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},d],["div",{style:"padding-left:1.25em"},...Object.keys(f).map(m=>["div",{},["span",r,m+": "],a(f[m],!1)])]]:["span",{}]}function a(d,f=!0){return typeof d=="number"?["span",t,d]:typeof d=="string"?["span",n,JSON.stringify(d)]:typeof d=="boolean"?["span",r,d]:Ie(d)?["object",{object:f?ye(d):d}]:["span",n,String(d)]}function l(d,f){const m=d.type;if(ce(m))return;const b={};for(const O in d.ctx)u(m,O,f)&&(b[O]=d.ctx[O]);return b}function u(d,f,m){const b=d[m];if(le(b)&&b.includes(f)||Ie(b)&&f in b||d.extends&&u(d.extends,f,m)||d.mixins&&d.mixins.some(O=>u(O,f,m)))return!0}function c(d){return Ot(d)?"ShallowRef":d.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(o):window.devtoolsFormatters=[o]}const zc="3.5.3",On=g.NODE_ENV!=="production"?F:Qe;var an={};let Ra;const Kc=typeof window<"u"&&window.trustedTypes;if(Kc)try{Ra=Kc.createPolicy("vue",{createHTML:e=>e})}catch(e){an.NODE_ENV!=="production"&&On(`Error creating trusted types policy: ${e}`)}const Gc=Ra?e=>Ra.createHTML(e):e=>e,Lv="http://www.w3.org/2000/svg",Mv="http://www.w3.org/1998/Math/MathML",Nn=typeof document<"u"?document:null,Jc=Nn&&Nn.createElement("template"),Uv={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t==="svg"?Nn.createElementNS(Lv,e):t==="mathml"?Nn.createElementNS(Mv,e):n?Nn.createElement(e,{is:n}):Nn.createElement(e);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>Nn.createTextNode(e),createComment:e=>Nn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Nn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,s){const i=n?n.previousSibling:t.lastChild;if(o&&(o===s||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===s||!(o=o.nextSibling)););else{Jc.innerHTML=Gc(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const a=Jc.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},qn="transition",Fo="animation",Bo=Symbol("_vtc"),Yc={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Fv=Ke({},Xu,Yc),ja=(e=>(e.displayName="Transition",e.props=Fv,e))((e,{slots:t})=>Ue(Em,Bv(e),t)),br=(e,t=[])=>{le(e)?e.forEach(n=>n(...t)):e&&e(...t)},Xc=e=>e?le(e)?e.some(t=>t.length>1):e.length>1:!1;function Bv(e){const t={};for(const D in e)D in Yc||(t[D]=e[D]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:s=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=s,appearActiveClass:u=i,appearToClass:c=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,b=Hv(o),O=b&&b[0],w=b&&b[1],{onBeforeEnter:$,onEnter:H,onEnterCancelled:T,onLeave:te,onLeaveCancelled:S,onBeforeAppear:U=$,onAppear:j=H,onAppearCancelled:ge=T}=t,q=(D,ie,$e)=>{_r(D,ie?c:a),_r(D,ie?u:i),$e&&$e()},A=(D,ie)=>{D._isLeaving=!1,_r(D,d),_r(D,m),_r(D,f),ie&&ie()},V=D=>(ie,$e)=>{const E=D?j:H,P=()=>q(ie,D,$e);br(E,[ie,P]),Qc(()=>{_r(ie,D?l:s),Wn(ie,D?c:a),Xc(E)||ed(ie,r,O,P)})};return Ke(t,{onBeforeEnter(D){br($,[D]),Wn(D,s),Wn(D,i)},onBeforeAppear(D){br(U,[D]),Wn(D,l),Wn(D,u)},onEnter:V(!1),onAppear:V(!0),onLeave(D,ie){D._isLeaving=!0;const $e=()=>A(D,ie);Wn(D,d),Wn(D,f),Wv(),Qc(()=>{D._isLeaving&&(_r(D,d),Wn(D,m),Xc(te)||ed(D,r,w,$e))}),br(te,[D,$e])},onEnterCancelled(D){q(D,!1),br(T,[D])},onAppearCancelled(D){q(D,!0),br(ge,[D])},onLeaveCancelled(D){A(D),br(S,[D])}})}function Hv(e){if(e==null)return null;if(Ie(e))return[La(e.enter),La(e.leave)];{const t=La(e);return[t,t]}}function La(e){const t=ih(e);return an.NODE_ENV!=="production"&&em(t,"<transition> explicit duration"),t}function Wn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Bo]||(e[Bo]=new Set)).add(t)}function _r(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Bo];n&&(n.delete(t),n.size||(e[Bo]=void 0))}function Qc(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Zv=0;function ed(e,t,n,r){const o=e._endId=++Zv,s=()=>{o===e._endId&&r()};if(n)return setTimeout(s,n);const{type:i,timeout:a,propCount:l}=qv(e,t);if(!i)return r();const u=i+"end";let c=0;const d=()=>{e.removeEventListener(u,f),s()},f=m=>{m.target===e&&++c>=l&&d()};setTimeout(()=>{c<l&&d()},a+1),e.addEventListener(u,f)}function qv(e,t){const n=window.getComputedStyle(e),r=b=>(n[b]||"").split(", "),o=r(`${qn}Delay`),s=r(`${qn}Duration`),i=td(o,s),a=r(`${Fo}Delay`),l=r(`${Fo}Duration`),u=td(a,l);let c=null,d=0,f=0;t===qn?i>0&&(c=qn,d=i,f=s.length):t===Fo?u>0&&(c=Fo,d=u,f=l.length):(d=Math.max(i,u),c=d>0?i>u?qn:Fo:null,f=c?c===qn?s.length:l.length:0);const m=c===qn&&/\b(transform|all)(,|$)/.test(r(`${qn}Property`).toString());return{type:c,timeout:d,propCount:f,hasTransform:m}}function td(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>nd(n)+nd(e[r])))}function nd(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Wv(){return document.body.offsetHeight}function zv(e,t,n){const r=e[Bo];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const rd=Symbol("_vod"),Kv=Symbol("_vsh"),Gv=Symbol(an.NODE_ENV!=="production"?"CSS_VAR_TEXT":""),Jv=/(^|;)\s*display\s*:/;function Yv(e,t,n){const r=e.style,o=Ze(n);let s=!1;if(n&&!o){if(t)if(Ze(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&Js(r,a,"")}else for(const i in t)n[i]==null&&Js(r,i,"");for(const i in n)i==="display"&&(s=!0),Js(r,i,n[i])}else if(o){if(t!==n){const i=r[Gv];i&&(n+=";"+i),r.cssText=n,s=Jv.test(n)}}else t&&e.removeAttribute("style");rd in e&&(e[rd]=s?r.display:"",e[Kv]&&(r.display="none"))}const Xv=/[^\\];\s*$/,od=/\s*!important$/;function Js(e,t,n){if(le(n))n.forEach(r=>Js(e,t,r));else if(n==null&&(n=""),an.NODE_ENV!=="production"&&Xv.test(n)&&On(`Unexpected semicolon at the end of '${t}' style value: '${n}'`),t.startsWith("--"))e.setProperty(t,n);else{const r=Qv(e,t);od.test(n)?e.setProperty(mn(r),n.replace(od,""),"important"):e[r]=n}}const sd=["Webkit","Moz","ms"],Ma={};function Qv(e,t){const n=Ma[t];if(n)return n;let r=Ct(t);if(r!=="filter"&&r in e)return Ma[t]=r;r=ar(r);for(let o=0;o<sd.length;o++){const s=sd[o]+r;if(s in e)return Ma[t]=s}return t}const id="http://www.w3.org/1999/xlink";function ad(e,t,n,r,o,s=gh(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(id,t.slice(6,t.length)):e.setAttributeNS(id,t,n):n==null||s&&!eu(n)?e.removeAttribute(t):e.setAttribute(t,s?"":An(n)?String(n):n)}function eg(e,t,n,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Gc(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const i=o==="OPTION"?e.getAttribute("value")||"":e.value,a=n==null?e.type==="checkbox"?"on":"":String(n);(i!==a||!("_value"in e))&&(e.value=a),n==null&&e.removeAttribute(t),e._value=n;return}let s=!1;if(n===""||n==null){const i=typeof e[t];i==="boolean"?n=eu(n):n==null&&i==="string"?(n="",s=!0):i==="number"&&(n=0,s=!0)}try{e[t]=n}catch(i){an.NODE_ENV!=="production"&&!s&&On(`Failed setting prop "${t}" on <${o.toLowerCase()}>: value ${n} is invalid.`,i)}s&&e.removeAttribute(t)}function tg(e,t,n,r){e.addEventListener(t,n,r)}function ng(e,t,n,r){e.removeEventListener(t,n,r)}const ld=Symbol("_vei");function rg(e,t,n,r,o=null){const s=e[ld]||(e[ld]={}),i=s[t];if(r&&i)i.value=an.NODE_ENV!=="production"?cd(r,t):r;else{const[a,l]=og(t);if(r){const u=s[t]=ag(an.NODE_ENV!=="production"?cd(r,t):r,o);tg(e,a,u,l)}else i&&(ng(e,a,i,l),s[t]=void 0)}}const ud=/(?:Once|Passive|Capture)$/;function og(e){let t;if(ud.test(e)){t={};let r;for(;r=e.match(ud);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):mn(e.slice(2)),t]}let Ua=0;const sg=Promise.resolve(),ig=()=>Ua||(sg.then(()=>Ua=0),Ua=Date.now());function ag(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Ht(lg(r,n.value),t,5,[r])};return n.value=e,n.attached=ig(),n}function cd(e,t){return ce(e)||le(e)?e:(On(`Wrong type passed as event handler to ${t} - did you forget @ or : in front of your prop?
15
- Expected function or array of functions, received type ${typeof e}.`),Qe)}function lg(e,t){if(le(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const dd=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ug=(e,t,n,r,o,s)=>{const i=o==="svg";t==="class"?zv(e,r,i):t==="style"?Yv(e,n,r):vo(t)?hs(t)||rg(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):cg(e,t,r,i))?(eg(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&ad(e,t,r,i,s,t!=="value")):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),ad(e,t,r,i))};function cg(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&dd(t)&&ce(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return dd(t)&&Ze(n)?!1:!!(t in e||e._isVueCE&&(/[A-Z]/.test(t)||!Ze(n)))}const dg=["ctrl","shift","alt","meta"],fg={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>dg.some(n=>e[`${n}Key`]&&!t.includes(n))},pg=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(o,...s)=>{for(let i=0;i<t.length;i++){const a=fg[t[i]];if(a&&a(o,t))return}return e(o,...s)})},hg=Ke({patchProp:ug},Uv);let fd;function mg(){return fd||(fd=lv(hg))}const vg=(...e)=>{const t=mg().createApp(...e);an.NODE_ENV!=="production"&&(yg(t),bg(t));const{mount:n}=t;return t.mount=r=>{const o=_g(r);if(!o)return;const s=t._component;!ce(s)&&!s.render&&!s.template&&(s.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const i=n(o,!1,gg(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t};function gg(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function yg(e){Object.defineProperty(e.config,"isNativeTag",{value:t=>hh(t)||mh(t)||vh(t),writable:!1})}function bg(e){{const t=e.config.isCustomElement;Object.defineProperty(e.config,"isCustomElement",{get(){return t},set(){On("The `isCustomElement` config option is deprecated. Use `compilerOptions.isCustomElement` instead.")}});const n=e.config.compilerOptions,r='The `compilerOptions` config option is only respected when using a build of Vue.js that includes the runtime compiler (aka "full build"). Since you are using the runtime-only build, `compilerOptions` must be passed to `@vue/compiler-dom` in the build setup instead.\n- For vue-loader: pass it via vue-loader\'s `compilerOptions` loader option.\n- For vue-cli: see https://cli.vuejs.org/guide/webpack.html#modifying-options-of-a-loader\n- For vite: pass it via @vitejs/plugin-vue options. See https://github.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue#example-for-passing-options-to-vuecompiler-sfc';Object.defineProperty(e.config,"compilerOptions",{get(){return On(r),n},set(){On(r)}})}}function _g(e){if(Ze(e)){const t=document.querySelector(e);return an.NODE_ENV!=="production"&&!t&&On(`Failed to mount app: mount target selector "${e}" returned null.`),t}return an.NODE_ENV!=="production"&&window.ShadowRoot&&e instanceof window.ShadowRoot&&e.mode==="closed"&&On('mounting on a ShadowRoot with `{mode: "closed"}` may lead to unpredictable bugs'),e}var wg={};function Eg(){jv()}wg.NODE_ENV!=="production"&&Eg();let Ys;const Og=new Uint8Array(16);function Ng(){if(!Ys&&(Ys=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ys))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ys(Og)}const st=[];for(let e=0;e<256;++e)st.push((e+256).toString(16).slice(1));function Sg(e,t=0){return st[e[t+0]]+st[e[t+1]]+st[e[t+2]]+st[e[t+3]]+"-"+st[e[t+4]]+st[e[t+5]]+"-"+st[e[t+6]]+st[e[t+7]]+"-"+st[e[t+8]]+st[e[t+9]]+"-"+st[e[t+10]]+st[e[t+11]]+st[e[t+12]]+st[e[t+13]]+st[e[t+14]]+st[e[t+15]]}const pd={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Fa(e,t,n){if(pd.randomUUID&&!t&&!e)return pd.randomUUID();e=e||{};const r=e.random||(e.rng||Ng)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Sg(r)}var zn=Symbol("storefront");function xg(e,t=100){let n=0;return async(...o)=>{clearTimeout(n),n=setTimeout(()=>{e(...o)},t)}}var kg=v.object({source:v.literal("moonbase-checkout"),event:v.literal("close"),intent:v.string().optional()}),Tg=v.object({source:v.literal("moonbase-checkout"),event:v.literal("completed"),order:Kl.orders.completedOrderSchema}),Cg=v.discriminatedUnion("event",[kg,Tg]);function Pg(){var e;const t=document.getElementById("moonbase-checkout");!t||!(t instanceof HTMLIFrameElement)||(e=t.contentWindow)==null||e.postMessage("close","*")}function hd(e){if(typeof window>"u"){console.warn("Can not mount checkout server side");return}const t=document.createElement("iframe");t.id="moonbase-checkout",t.src=e,t.style.position="fixed",t.style.top="0px",t.style.left="0px",t.style.right="0px",t.style.border="none",t.style.colorScheme="normal",t.style.backgroundColor="transparent",t.style.zIndex=Number.MAX_SAFE_INTEGER.toString(),t.setAttribute("background","transparent"),t.setAttribute("frameborder","0"),t.setAttribute("allowtransparency","true"),t.setAttribute("allow","payment"),t.height="100%",t.width="100%",document.body.append(t),document.documentElement.style.overflow="hidden",window.onmessage=function(n){var r;try{const o=Cg.parse(n.data);o.event==="close"&&(document.body.contains(t)&&(document.documentElement.style.removeProperty("overflow"),document.body.removeChild(t)),window.dispatchEvent(new CustomEvent("moonbase-checkout-closed",{detail:o}))),o.event==="completed"&&window.dispatchEvent(new CustomEvent("moonbase-checkout-completed",{detail:o}))}catch(o){((r=n.data)==null?void 0:r.source)==="moonbase-checkout"&&console.error("Could not parse event:",n.data,o)}}}var Xs=class lt{constructor(t,n,r){this.configuration=t,this.client=n,this.stateFactory=r,this.hasUtm=Q(()=>!!this.utm.value&&Object.values(this.utm.value).some(l=>!!l)),this.currentUser=C(null),this.loadedUser=C(!1),this.debouncedPushOrderContent=xg(l=>this.client.orders.pushContent(l,void 0,this.hasUtm.value?this.utm.value:void 0),500);var o;if(typeof window>"u"){this.currentOrder=C({id:Fa(),status:ho.Open,currency:"",items:[],couponsApplied:[]}),this.storefront=r(lt.storefrontKey,{suggestedCurrency:"",bundles:[],products:[]}),this.loadedStorefront=r(`${lt.storefrontKey}_loaded`,!1),this.utm=r(`${lt.storefrontKey}_utm`,void 0);return}const s=new URLSearchParams(window.location.search);this.utm=r(`${lt.storefrontKey}_utm`,{referrer:((o=window.document.referrer)==null?void 0:o.replace(/https?:\/\//g,"").split("/")[0])||void 0,source:s.get("utm_source")||void 0,medium:s.get("utm_medium")||void 0,campaign:s.get("utm_campaign")||void 0,term:s.get("utm_term")||void 0,content:s.get("utm_content")||void 0}),window.addEventListener("storage",l=>this.handleStorageUpdate(l));const i=localStorage.getItem(lt.sessionKey);i?(this.currentOrder=C(JSON.parse(i)),this.refreshOrder()):this.currentOrder=C({id:Fa(),status:ho.Open,currency:"",items:[],couponsApplied:[]});const a=localStorage.getItem(lt.storefrontKey);if(a?(this.storefront=r(lt.storefrontKey,JSON.parse(a)),this.loadedStorefront=r(`${lt.storefrontKey}_loaded`,!0)):(this.storefront=r(lt.storefrontKey,{suggestedCurrency:"",bundles:[],products:[]}),this.loadedStorefront=r(`${lt.storefrontKey}_loaded`,!1)),this.client.tokenStore.hasAccessToken&&(this.currentUser.value=this.client.tokenStore.user),this.updateStorefront(),this.updateUser(),window.location){const l=new URLSearchParams(window.location.search),u=l.get("mb_intent"),c=l.get("mb_endpoint");if(u==="checkout"&&l.get("mb_complete")&&c){const d=Object.fromEntries([...l.entries()].filter(([m])=>!m.startsWith("mb_"))),f=new URL(decodeURIComponent(c));for(const m of Object.keys(d))f.searchParams.append(m,d[m]);hd(f.toString()),window.history.replaceState(null,"",window.location.href.split("?")[0])}}window.addEventListener("moonbase-checkout-completed",()=>this.resetOrder())}get loadedStorefrontPromise(){return new Promise(t=>{Je(this.loadedStorefront,n=>{n&&t()},{immediate:!0})})}get loadedUserPromise(){return new Promise(t=>{Je(this.loadedUser,n=>{n&&t()},{immediate:!0})})}closeCheckout(){Pg()}onCheckoutCompleted(t){window.addEventListener("moonbase-checkout-completed",n=>t(n.detail.order))}onCheckoutClosed(t){window.addEventListener("moonbase-checkout-closed",n=>t(n.detail.intent))}install(t){t.provide(zn,this),console.log("Moonbase.sh storefront installed, learn more at https://moonbase.sh/docs")}async updateUser(){try{this.currentUser.value=await this.client.identity.get()}catch(t){t instanceof ki||console.error("Could not load user",t)}finally{this.loadedUser.value=!0}}async updateStorefront(){const t=await this.client.storefront.get(this.hasUtm.value?this.utm.value:void 0);t&&(typeof window<"u"&&localStorage.setItem(lt.storefrontKey,JSON.stringify(t)),this.storefront.value=t,this.loadedStorefront.value=!0,this.currentOrder.value.currency||(this.currentOrder.value.currency=t.suggestedCurrency))}async pushOrderContent(){typeof window<"u"&&localStorage.setItem(lt.sessionKey,JSON.stringify(this.currentOrder.value)),this.debouncedPushOrderContent(this.currentOrder.value)}handleStorageUpdate(t){switch(t.key){case lt.sessionKey:this.currentOrder.value=JSON.parse(t.newValue);break;case lt.storefrontKey:this.storefront.value=JSON.parse(t.newValue);break}}async refreshOrder(){try{const t=await this.client.orders.get(this.currentOrder.value.id);t&&(t.status!==ho.Open?this.resetOrder():(typeof window<"u"&&localStorage.setItem(lt.sessionKey,JSON.stringify(t)),this.currentOrder.value=t))}catch(t){t!=null&&this.resetOrder()}}resetOrder(){var t;this.currentOrder.value={id:Fa(),currency:((t=this.storefront.value)==null?void 0:t.suggestedCurrency)||"",status:ho.Open,items:[],couponsApplied:[]},typeof window<"u"&&localStorage.removeItem(lt.sessionKey)}};Xs.userKey="moonbase_user",Xs.sessionKey="moonbase_session",Xs.storefrontKey="moonbase_storefront";var Dg=Xs;function md(e,t){const n=t??Ce(zn);if(!n)throw new Error("No storefront configured");return Q(()=>n.storefront.value.bundles.find(r=>r.id===e)||null)}function vd(e,t){const n=t??Ce(zn);if(!n)throw new Error("No storefront configured");return Q(()=>n.storefront.value.products.find(r=>r.id===e)||null)}function Qs(e){const t=Ce(zn);if(!t)throw new Error("No storefront configured");return{getLicenses:async n=>t.client.inventory.licenses.get(n),getLicenseActivations:async(n,r)=>t.client.inventory.licenses.getActivations(n,r),getProduct:async(n,r)=>t.client.inventory.products.get(n,r),getProducts:async n=>t.client.inventory.products.getOwned(n),getProductLicenses:async(n,r)=>t.client.inventory.products.getLicenses(n,r),getProductActivations:async(n,r)=>t.client.inventory.products.getActivations(n,r),revokeActivation:async n=>t.client.inventory.licenses.revokeActivation(n.licenseId,n.id),activateProduct:async(n,r)=>t.client.inventory.activation.activate(n,r),downloadProduct:async n=>{if(!n.path)throw new Error("Product is not downloadable");window.location.href=await t.client.inventory.products.getDownloadUrl(n.path)}}}function $g(e,t){const n=Ce(zn);if(!n)throw new Error("No storefront configured");const r=n.stateFactory(`activation-request-${Ln(e)}`,null),o=n.stateFactory(`activation-request-${Ln(e)}-error`,null),s=n.stateFactory(`activation-request-${Ln(e)}-loading`,!0),i=n.stateFactory(`activation-request-${Ln(e)}-fulfilling`,!1),a=n.stateFactory(`activation-request-${Ln(e)}-completing`,!1),l=n.stateFactory(`activation-request-${Ln(e)}-completion-timeout`,null),u=async()=>{if(!r.value)return;await n.client.activationRequests.isCompleted(r.value.id)&&r.value?(r.value.status=Xt.Completed,a.value=!1):l.value=setTimeout(u,1500)};return Je(()=>Ln(e),async c=>{try{c&&c.length>0?(r.value=await n.client.activationRequests.get(c),r.value.status===Xt.Fulfilled&&(a.value=!0,u()),s.value=!1):(o.value=new Ti("Invalid input","Missing request id",-1),s.value=!1)}catch(d){o.value=d,s.value=!1}},{immediate:!0}),fa(()=>{l.value&&clearTimeout(l.value)}),Je(n.currentUser,async()=>{var c,d;const f=Ln(e);if(!(!f||(d=(c=r.value)==null?void 0:c.licenseEligibility)!=null&&d.eligible)){s.value=!0;try{r.value=await n.client.activationRequests.get(f),r.value.status===Xt.Fulfilled&&(a.value=!0,u())}catch(m){o.value=m}s.value=!1}}),{activationRequest:r,loading:s,fulfilling:i,completing:a,error:o,isInstalled:Q(()=>{var c;return r&&((c=r.value)==null?void 0:c.status)===Xt.Completed}),fulfillLicense:async()=>{i.value=!0,r.value=await n.client.activationRequests.fulfillLicense(r.value.id),i.value=!1,a.value=!0,u()},fulfillTrial:async()=>{i.value=!0,r.value=await n.client.activationRequests.fulfillTrial(r.value.id),i.value=!1,a.value=!0,u()},cancel:async()=>{!r.value||r.value.status===Xt.Cancelled||(r.value=await n.client.activationRequests.cancel(r.value.id))}}}function Ig(e){const t=Ce(zn);if(!t)throw new Error("No storefront configured");return{peek:async n=>{try{return await t.client.vouchers.peek(n)}catch(r){throw r instanceof sr?new Error("Voucher code invalid"):r}},redeem:async n=>{try{return await t.client.vouchers.redeem(n)}catch(r){throw r instanceof sr?new Error("Voucher code invalid"):r}}}}function Ba(e){const t=e??Ce(zn);if(!t)throw new Error("No storefront configured");return{items:Q(()=>t.currentOrder.value.items.map(n=>{var r,o;if(n.type==="Product"){const s=t.storefront.value.products.find(l=>l.id===n.productId),a=((s==null?void 0:s.variations)||[]).find(l=>l.id===n.variationId);return{...n,product:s,variation:a,price:a==null?void 0:a.price,appliedDiscount:(r=a==null?void 0:a.discount)!=null?r:n.appliedDiscount}}else{const s=t.storefront.value.bundles.find(l=>l.id===n.bundleId),a=((s==null?void 0:s.variations)||[]).find(l=>l.id===n.variationId);return{...n,bundle:s,variation:a,price:a==null?void 0:a.price,appliedDiscount:(o=a==null?void 0:a.discount)!=null?o:n.appliedDiscount}}})),currency:Q(()=>t.currentOrder.value.currency||t.storefront.value.suggestedCurrency),total:Q(()=>{const n=t.currentOrder.value.currency||t.storefront.value.suggestedCurrency;return{amount:t.currentOrder.value.items.reduce((o,s)=>{var i,a,l,u,c,d;let f;if(s.type==="Product"){const m=t.storefront.value.products.find(w=>w.id===s.productId),O=((m==null?void 0:m.variations)||[]).find(w=>w.id===s.variationId);f=(l=(a=O==null?void 0:O.price[n])!=null?a:(i=m==null?void 0:m.defaultVariation)==null?void 0:i.price[n])!=null?l:0}else{const m=t.storefront.value.bundles.find(w=>w.id===s.bundleId),O=((m==null?void 0:m.variations)||[]).find(w=>w.id===s.variationId);f=(d=(c=O==null?void 0:O.price[n])!=null?c:(u=m==null?void 0:m.defaultVariation)==null?void 0:u.price[n])!=null?d:0}return o+f*s.quantity},0),currency:n}}),addToCart:(n,r)=>{if(n=_(n),r??(r=n.defaultVariation),!r)throw new Error("Added item does not have a default variation, and none have been specified");const o=`${n.type==="bundle"?"b":"p"}/${n.id}/${r.id}`;let s=t.currentOrder.value.items.find(i=>i.id===o);s?s.quantity+=1:n.type==="bundle"?(s={id:o,type:"Bundle",bundleId:n.id,bundle:n,quantity:1,variation:r,variationId:r.id,price:r.price,appliedDiscount:r.discount},t.currentOrder.value.items.push(s)):n.type==="product"&&(s={id:o,type:"Product",productId:n.id,product:n,quantity:1,variation:r,variationId:r.id,price:r.price,appliedDiscount:r.discount},t.currentOrder.value.items.push(s)),t.pushOrderContent()},setQuantity:(n,r)=>{const o=t.currentOrder.value.items.find(s=>s.id===n.id);if(!o)throw new Error("Cart item not found");if(o.quantity=r,o.quantity<=0){const s=t.currentOrder.value.items.findIndex(i=>i.id===o.id);t.currentOrder.value.items.splice(s,1)}t.pushOrderContent()},removeFromCart:n=>{const r=t.currentOrder.value.items.findIndex(o=>o.id===n.id);t.currentOrder.value.items.splice(r,1),t.pushOrderContent()},checkout:async n=>{const r=new URL(n.returnUrl,document.baseURI).href,o=await t.client.orders.pushContent(t.currentOrder.value,{returnUrl:r});if(!n.redirect&&o.embeddedCheckoutUrl&&typeof window<"u"){const s=o.embeddedCheckoutUrl;return new Promise(i=>{hd(s.replace("acme-co.beta.moonbase.sh","localhost:3002")),window.addEventListener("moonbase-checkout-closed",a=>{i({next:a.detail.next})})})}else{if(n.redirect&&o.checkoutUrl&&typeof window<"u")return window.location.href=o.checkoutUrl,{next:void 0};throw new Error("No checkout URL found")}}}}function St(e){const t=e??Ce(zn);if(!t)throw new Error("No storefront configured");return{user:t.currentUser,loaded:t.loadedUser,loadedPromise:t.loadedUserPromise,signIn:async(n,r)=>{const o=await t.client.identity.signIn(n,r);return t.currentUser.value=o,t.updateStorefront(),o},signUp:async(n,r,o,s,i,a,l)=>{const u=await t.client.identity.signUp(n,r,o,s,i,a,l);return t.currentUser.value=u,t.updateStorefront(),u},signOut:async()=>{t.client.tokenStore.setUser(null),await t.updateStorefront(),t.currentUser.value=null},update:async(n,r,o,s)=>{const i=await t.client.identity.update(n,r,o,s);return t.currentUser.value&&(t.currentUser.value.name=n,s&&(t.currentUser.value.communicationPreferences=s)),i},setPassword:async(n,r)=>{await t.client.identity.setPassword(n,r)},forgotPassword:async n=>{await t.client.identity.forgotPassword(n)},resetPassword:async(n,r,o)=>{await t.client.identity.resetPassword(n,r,o)},confirmAccount:async(n,r)=>await t.client.identity.confirmAccount(n,r),confirmEmail:async(n,r)=>await t.client.identity.confirmEmail(n,r),confirmEmailChange:async(n,r)=>{await t.client.identity.confirmEmailChange(n,r),t.updateUser()}}}function Ag(e,t){const n={endpoint:e};return new Dg(n,new Qp(n),(r,o)=>C(o))}var gd=!1;function ei(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)}function Ha(e,t){if(Array.isArray(e)){e.splice(t,1);return}delete e[t]}function Vg(){return yd().__VUE_DEVTOOLS_GLOBAL_HOOK__}function yd(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const Rg=typeof Proxy=="function",jg="devtools-plugin:setup",Lg="plugin:settings:set";let Zr,Za;function Mg(){var e;return Zr!==void 0||(typeof window<"u"&&window.performance?(Zr=!0,Za=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(Zr=!0,Za=globalThis.perf_hooks.performance):Zr=!1),Zr}function Ug(){return Mg()?Za.now():Date.now()}class Fg{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const r={};if(t.settings)for(const i in t.settings){const a=t.settings[i];r[i]=a.defaultValue}const o=`__vue-devtools-plugin-settings__${t.id}`;let s=Object.assign({},r);try{const i=localStorage.getItem(o),a=JSON.parse(i);Object.assign(s,a)}catch{}this.fallbacks={getSettings(){return s},setSettings(i){try{localStorage.setItem(o,JSON.stringify(i))}catch{}s=i},now(){return Ug()}},n&&n.on(Lg,(i,a)=>{i===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(i,a)=>this.target?this.target.on[a]:(...l)=>{this.onQueue.push({method:a,args:l})}}),this.proxiedTarget=new Proxy({},{get:(i,a)=>this.target?this.target[a]:a==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(a)?(...l)=>(this.targetQueue.push({method:a,args:l,resolve:()=>{}}),this.fallbacks[a](...l)):(...l)=>new Promise(u=>{this.targetQueue.push({method:a,args:l,resolve:u})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function bd(e,t){const n=e,r=yd(),o=Vg(),s=Rg&&n.enableEarlyProxy;if(o&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!s))o.emit(jg,e,t);else{const i=s?new Fg(n,o):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:i}),i&&t(i.proxiedTarget)}}var Te={};let Ho;const Zo=e=>Ho=e,_d=Te.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function wr(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var ln;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(ln||(ln={}));const Er=typeof window<"u",wd=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:typeof globalThis=="object"?globalThis:{HTMLElement:null};function Bg(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e}function qa(e,t,n){const r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){Nd(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function Ed(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function ti(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{const n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}}const ni=typeof navigator=="object"?navigator:{userAgent:""},Od=/Macintosh/.test(ni.userAgent)&&/AppleWebKit/.test(ni.userAgent)&&!/Safari/.test(ni.userAgent),Nd=Er?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!Od?Hg:"msSaveOrOpenBlob"in ni?Zg:qg:()=>{};function Hg(e,t="download",n){const r=document.createElement("a");r.download=t,r.rel="noopener",typeof e=="string"?(r.href=e,r.origin!==location.origin?Ed(r.href)?qa(e,t,n):(r.target="_blank",ti(r)):ti(r)):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){ti(r)},0))}function Zg(e,t="download",n){if(typeof e=="string")if(Ed(e))qa(e,t,n);else{const r=document.createElement("a");r.href=e,r.target="_blank",setTimeout(function(){ti(r)})}else navigator.msSaveOrOpenBlob(Bg(e,n),t)}function qg(e,t,n,r){if(r=r||open("","_blank"),r&&(r.document.title=r.document.body.innerText="downloading..."),typeof e=="string")return qa(e,t,n);const o=e.type==="application/octet-stream",s=/constructor/i.test(String(wd.HTMLElement))||"safari"in wd,i=/CriOS\/[\d]+/.test(navigator.userAgent);if((i||o&&s||Od)&&typeof FileReader<"u"){const a=new FileReader;a.onloadend=function(){let l=a.result;if(typeof l!="string")throw r=null,new Error("Wrong reader.result type");l=i?l:l.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=l:location.assign(l),r=null},a.readAsDataURL(e)}else{const a=URL.createObjectURL(e);r?r.location.assign(a):location.href=a,r=null,setTimeout(function(){URL.revokeObjectURL(a)},4e4)}}function ot(e,t){const n="🍍 "+e;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(n,t):t==="error"?console.error(n):t==="warn"?console.warn(n):console.log(n)}function Wa(e){return"_a"in e&&"install"in e}function Sd(){if(!("clipboard"in navigator))return ot("Your browser doesn't support the Clipboard API","error"),!0}function xd(e){return e instanceof Error&&e.message.toLowerCase().includes("document is not focused")?(ot('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function Wg(e){if(!Sd())try{await navigator.clipboard.writeText(JSON.stringify(e.state.value)),ot("Global state copied to clipboard.")}catch(t){if(xd(t))return;ot("Failed to serialize the state. Check the console for more details.","error"),console.error(t)}}async function zg(e){if(!Sd())try{kd(e,JSON.parse(await navigator.clipboard.readText())),ot("Global state pasted from clipboard.")}catch(t){if(xd(t))return;ot("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(t)}}async function Kg(e){try{Nd(new Blob([JSON.stringify(e.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(t){ot("Failed to export the state as JSON. Check the console for more details.","error"),console.error(t)}}let Sn;function Gg(){Sn||(Sn=document.createElement("input"),Sn.type="file",Sn.accept=".json");function e(){return new Promise((t,n)=>{Sn.onchange=async()=>{const r=Sn.files;if(!r)return t(null);const o=r.item(0);return t(o?{text:await o.text(),file:o}:null)},Sn.oncancel=()=>t(null),Sn.onerror=n,Sn.click()})}return e}async function Jg(e){try{const n=await Gg()();if(!n)return;const{text:r,file:o}=n;kd(e,JSON.parse(r)),ot(`Global state imported from "${o.name}".`)}catch(t){ot("Failed to import the state from JSON. Check the console for more details.","error"),console.error(t)}}function kd(e,t){for(const n in t){const r=e.state.value[n];r?Object.assign(r,t[n]):e.state.value[n]=t[n]}}function Wt(e){return{_custom:{display:e}}}const Td="🍍 Pinia (root)",ri="_root";function Yg(e){return Wa(e)?{id:ri,label:Td}:{id:e.$id,label:e.$id}}function Xg(e){if(Wa(e)){const n=Array.from(e._s.keys()),r=e._s;return{state:n.map(s=>({editable:!0,key:s,value:e.state.value[s]})),getters:n.filter(s=>r.get(s)._getters).map(s=>{const i=r.get(s);return{editable:!1,key:s,value:i._getters.reduce((a,l)=>(a[l]=i[l],a),{})}})}}const t={state:Object.keys(e.$state).map(n=>({editable:!0,key:n,value:e.$state[n]}))};return e._getters&&e._getters.length&&(t.getters=e._getters.map(n=>({editable:!1,key:n,value:e[n]}))),e._customProperties.size&&(t.customProperties=Array.from(e._customProperties).map(n=>({editable:!0,key:n,value:e[n]}))),t}function Qg(e){return e?Array.isArray(e)?e.reduce((t,n)=>(t.keys.push(n.key),t.operations.push(n.type),t.oldValue[n.key]=n.oldValue,t.newValue[n.key]=n.newValue,t),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:Wt(e.type),key:Wt(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function ey(e){switch(e){case ln.direct:return"mutation";case ln.patchFunction:return"$patch";case ln.patchObject:return"$patch";default:return"unknown"}}let qr=!0;const oi=[],Or="pinia:mutations",pt="pinia",{assign:ty}=Object,si=e=>"🍍 "+e;function ny(e,t){bd({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:oi,app:e},n=>{typeof n.now!="function"&&ot("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),n.addTimelineLayer({id:Or,label:"Pinia 🍍",color:15064968}),n.addInspector({id:pt,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{Wg(t)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await zg(t),n.sendInspectorTree(pt),n.sendInspectorState(pt)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{Kg(t)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await Jg(t),n.sendInspectorTree(pt),n.sendInspectorState(pt)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:r=>{const o=t._s.get(r);o?typeof o.$reset!="function"?ot(`Cannot reset "${r}" store because it doesn't have a "$reset" method implemented.`,"warn"):(o.$reset(),ot(`Store "${r}" reset.`)):ot(`Cannot reset "${r}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent((r,o)=>{const s=r.componentInstance&&r.componentInstance.proxy;if(s&&s._pStores){const i=r.componentInstance.proxy._pStores;Object.values(i).forEach(a=>{r.instanceData.state.push({type:si(a.$id),key:"state",editable:!0,value:a._isOptionsAPI?{_custom:{value:ye(a.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>a.$reset()}]}}:Object.keys(a.$state).reduce((l,u)=>(l[u]=a.$state[u],l),{})}),a._getters&&a._getters.length&&r.instanceData.state.push({type:si(a.$id),key:"getters",editable:!1,value:a._getters.reduce((l,u)=>{try{l[u]=a[u]}catch(c){l[u]=c}return l},{})})})}}),n.on.getInspectorTree(r=>{if(r.app===e&&r.inspectorId===pt){let o=[t];o=o.concat(Array.from(t._s.values())),r.rootNodes=(r.filter?o.filter(s=>"$id"in s?s.$id.toLowerCase().includes(r.filter.toLowerCase()):Td.toLowerCase().includes(r.filter.toLowerCase())):o).map(Yg)}}),globalThis.$pinia=t,n.on.getInspectorState(r=>{if(r.app===e&&r.inspectorId===pt){const o=r.nodeId===ri?t:t._s.get(r.nodeId);if(!o)return;o&&(r.nodeId!==ri&&(globalThis.$store=ye(o)),r.state=Xg(o))}}),n.on.editInspectorState((r,o)=>{if(r.app===e&&r.inspectorId===pt){const s=r.nodeId===ri?t:t._s.get(r.nodeId);if(!s)return ot(`store "${r.nodeId}" not found`,"error");const{path:i}=r;Wa(s)?i.unshift("state"):(i.length!==1||!s._customProperties.has(i[0])||i[0]in s.$state)&&i.unshift("$state"),qr=!1,r.set(s,i,r.state.value),qr=!0}}),n.on.editComponentState(r=>{if(r.type.startsWith("🍍")){const o=r.type.replace(/^🍍\s*/,""),s=t._s.get(o);if(!s)return ot(`store "${o}" not found`,"error");const{path:i}=r;if(i[0]!=="state")return ot(`Invalid path for store "${o}":
15
+ Expected function or array of functions, received type ${typeof e}.`),Qe)}function lg(e,t){if(le(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const dd=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ug=(e,t,n,r,o,s)=>{const i=o==="svg";t==="class"?zv(e,r,i):t==="style"?Yv(e,n,r):vo(t)?hs(t)||rg(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):cg(e,t,r,i))?(eg(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&ad(e,t,r,i,s,t!=="value")):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),ad(e,t,r,i))};function cg(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&dd(t)&&ce(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return dd(t)&&Ze(n)?!1:!!(t in e||e._isVueCE&&(/[A-Z]/.test(t)||!Ze(n)))}const dg=["ctrl","shift","alt","meta"],fg={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>dg.some(n=>e[`${n}Key`]&&!t.includes(n))},pg=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(o,...s)=>{for(let i=0;i<t.length;i++){const a=fg[t[i]];if(a&&a(o,t))return}return e(o,...s)})},hg=Ke({patchProp:ug},Uv);let fd;function mg(){return fd||(fd=lv(hg))}const vg=(...e)=>{const t=mg().createApp(...e);an.NODE_ENV!=="production"&&(yg(t),bg(t));const{mount:n}=t;return t.mount=r=>{const o=_g(r);if(!o)return;const s=t._component;!ce(s)&&!s.render&&!s.template&&(s.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const i=n(o,!1,gg(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t};function gg(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function yg(e){Object.defineProperty(e.config,"isNativeTag",{value:t=>hh(t)||mh(t)||vh(t),writable:!1})}function bg(e){{const t=e.config.isCustomElement;Object.defineProperty(e.config,"isCustomElement",{get(){return t},set(){On("The `isCustomElement` config option is deprecated. Use `compilerOptions.isCustomElement` instead.")}});const n=e.config.compilerOptions,r='The `compilerOptions` config option is only respected when using a build of Vue.js that includes the runtime compiler (aka "full build"). Since you are using the runtime-only build, `compilerOptions` must be passed to `@vue/compiler-dom` in the build setup instead.\n- For vue-loader: pass it via vue-loader\'s `compilerOptions` loader option.\n- For vue-cli: see https://cli.vuejs.org/guide/webpack.html#modifying-options-of-a-loader\n- For vite: pass it via @vitejs/plugin-vue options. See https://github.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue#example-for-passing-options-to-vuecompiler-sfc';Object.defineProperty(e.config,"compilerOptions",{get(){return On(r),n},set(){On(r)}})}}function _g(e){if(Ze(e)){const t=document.querySelector(e);return an.NODE_ENV!=="production"&&!t&&On(`Failed to mount app: mount target selector "${e}" returned null.`),t}return an.NODE_ENV!=="production"&&window.ShadowRoot&&e instanceof window.ShadowRoot&&e.mode==="closed"&&On('mounting on a ShadowRoot with `{mode: "closed"}` may lead to unpredictable bugs'),e}var wg={};function Eg(){jv()}wg.NODE_ENV!=="production"&&Eg();let Ys;const Og=new Uint8Array(16);function Ng(){if(!Ys&&(Ys=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ys))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ys(Og)}const st=[];for(let e=0;e<256;++e)st.push((e+256).toString(16).slice(1));function Sg(e,t=0){return st[e[t+0]]+st[e[t+1]]+st[e[t+2]]+st[e[t+3]]+"-"+st[e[t+4]]+st[e[t+5]]+"-"+st[e[t+6]]+st[e[t+7]]+"-"+st[e[t+8]]+st[e[t+9]]+"-"+st[e[t+10]]+st[e[t+11]]+st[e[t+12]]+st[e[t+13]]+st[e[t+14]]+st[e[t+15]]}const pd={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Fa(e,t,n){if(pd.randomUUID&&!t&&!e)return pd.randomUUID();e=e||{};const r=e.random||(e.rng||Ng)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Sg(r)}var zn=Symbol("storefront");function xg(e,t=100){let n=0;return async(...o)=>{clearTimeout(n),n=setTimeout(()=>{e(...o)},t)}}var kg=v.object({source:v.literal("moonbase-checkout"),event:v.literal("close"),intent:v.string().optional()}),Tg=v.object({source:v.literal("moonbase-checkout"),event:v.literal("completed"),order:Kl.orders.completedOrderSchema}),Cg=v.discriminatedUnion("event",[kg,Tg]);function Pg(){var e;const t=document.getElementById("moonbase-checkout");!t||!(t instanceof HTMLIFrameElement)||(e=t.contentWindow)==null||e.postMessage("close","*")}function hd(e){if(typeof window>"u"){console.warn("Can not mount checkout server side");return}const t=document.createElement("iframe");t.id="moonbase-checkout",t.src=e,t.style.position="fixed",t.style.top="0px",t.style.left="0px",t.style.right="0px",t.style.border="none",t.style.colorScheme="normal",t.style.backgroundColor="transparent",t.style.zIndex=Number.MAX_SAFE_INTEGER.toString(),t.setAttribute("background","transparent"),t.setAttribute("frameborder","0"),t.setAttribute("allowtransparency","true"),t.setAttribute("allow","payment"),t.height="100%",t.width="100%",document.body.append(t),document.documentElement.style.overflow="hidden",window.onmessage=function(n){var r;try{const o=Cg.parse(n.data);o.event==="close"&&(document.body.contains(t)&&(document.documentElement.style.removeProperty("overflow"),document.body.removeChild(t)),window.dispatchEvent(new CustomEvent("moonbase-checkout-closed",{detail:o}))),o.event==="completed"&&window.dispatchEvent(new CustomEvent("moonbase-checkout-completed",{detail:o}))}catch(o){((r=n.data)==null?void 0:r.source)==="moonbase-checkout"&&console.error("Could not parse event:",n.data,o)}}}var Xs=class lt{constructor(t,n,r){this.configuration=t,this.client=n,this.stateFactory=r,this.hasUtm=Q(()=>!!this.utm.value&&Object.values(this.utm.value).some(l=>!!l)),this.currentUser=C(null),this.loadedUser=C(!1),this.debouncedPushOrderContent=xg(l=>this.client.orders.pushContent(l,void 0,this.hasUtm.value?this.utm.value:void 0),500);var o;if(typeof window>"u"){this.currentOrder=C({id:Fa(),status:ho.Open,currency:"",items:[],couponsApplied:[]}),this.storefront=r(lt.storefrontKey,{suggestedCurrency:"",bundles:[],products:[]}),this.loadedStorefront=r(`${lt.storefrontKey}_loaded`,!1),this.utm=r(`${lt.storefrontKey}_utm`,void 0);return}const s=new URLSearchParams(window.location.search);this.utm=r(`${lt.storefrontKey}_utm`,{referrer:((o=window.document.referrer)==null?void 0:o.replace(/https?:\/\//g,"").split("/")[0])||void 0,source:s.get("utm_source")||void 0,medium:s.get("utm_medium")||void 0,campaign:s.get("utm_campaign")||void 0,term:s.get("utm_term")||void 0,content:s.get("utm_content")||void 0}),window.addEventListener("storage",l=>this.handleStorageUpdate(l));const i=localStorage.getItem(lt.sessionKey);i?(this.currentOrder=C(JSON.parse(i)),this.refreshOrder()):this.currentOrder=C({id:Fa(),status:ho.Open,currency:"",items:[],couponsApplied:[]});const a=localStorage.getItem(lt.storefrontKey);if(a?(this.storefront=r(lt.storefrontKey,JSON.parse(a)),this.loadedStorefront=r(`${lt.storefrontKey}_loaded`,!0)):(this.storefront=r(lt.storefrontKey,{suggestedCurrency:"",bundles:[],products:[]}),this.loadedStorefront=r(`${lt.storefrontKey}_loaded`,!1)),this.client.tokenStore.hasAccessToken&&(this.currentUser.value=this.client.tokenStore.user),this.updateStorefront(),this.updateUser(),window.location){const l=new URLSearchParams(window.location.search),u=l.get("mb_intent"),c=l.get("mb_endpoint");if(u==="checkout"&&l.get("mb_complete")&&c){const d=Object.fromEntries([...l.entries()].filter(([m])=>!m.startsWith("mb_"))),f=new URL(decodeURIComponent(c));for(const m of Object.keys(d))f.searchParams.append(m,d[m]);hd(f.toString()),window.history.replaceState(null,"",window.location.href.split("?")[0])}}window.addEventListener("moonbase-checkout-completed",()=>this.resetOrder())}get loadedStorefrontPromise(){return new Promise(t=>{Je(this.loadedStorefront,n=>{n&&t()},{immediate:!0})})}get loadedUserPromise(){return new Promise(t=>{Je(this.loadedUser,n=>{n&&t()},{immediate:!0})})}closeCheckout(){Pg()}onCheckoutCompleted(t){window.addEventListener("moonbase-checkout-completed",n=>t(n.detail.order))}onCheckoutClosed(t){window.addEventListener("moonbase-checkout-closed",n=>t(n.detail.intent))}install(t){t.provide(zn,this),console.log("Moonbase.sh storefront installed, learn more at https://moonbase.sh/docs")}async updateUser(){try{this.currentUser.value=await this.client.identity.get()}catch(t){t instanceof ki||console.error("Could not load user",t)}finally{this.loadedUser.value=!0}return this.currentUser.value}async updateStorefront(){const t=await this.client.storefront.get(this.hasUtm.value?this.utm.value:void 0);return t&&(typeof window<"u"&&localStorage.setItem(lt.storefrontKey,JSON.stringify(t)),this.storefront.value=t,this.loadedStorefront.value=!0,this.currentOrder.value.currency||(this.currentOrder.value.currency=t.suggestedCurrency)),t}async pushOrderContent(){typeof window<"u"&&localStorage.setItem(lt.sessionKey,JSON.stringify(this.currentOrder.value)),this.debouncedPushOrderContent(this.currentOrder.value)}handleStorageUpdate(t){switch(t.key){case lt.sessionKey:this.currentOrder.value=JSON.parse(t.newValue);break;case lt.storefrontKey:this.storefront.value=JSON.parse(t.newValue);break}}async refreshOrder(){try{const t=await this.client.orders.get(this.currentOrder.value.id);t&&(t.status!==ho.Open?this.resetOrder():(typeof window<"u"&&localStorage.setItem(lt.sessionKey,JSON.stringify(t)),this.currentOrder.value=t))}catch(t){t!=null&&this.resetOrder()}}resetOrder(){var t;this.currentOrder.value={id:Fa(),currency:((t=this.storefront.value)==null?void 0:t.suggestedCurrency)||"",status:ho.Open,items:[],couponsApplied:[]},typeof window<"u"&&localStorage.removeItem(lt.sessionKey)}};Xs.userKey="moonbase_user",Xs.sessionKey="moonbase_session",Xs.storefrontKey="moonbase_storefront";var Dg=Xs;function md(e,t){const n=t??Ce(zn);if(!n)throw new Error("No storefront configured");return Q(()=>n.storefront.value.bundles.find(r=>r.id===e)||null)}function vd(e,t){const n=t??Ce(zn);if(!n)throw new Error("No storefront configured");return Q(()=>n.storefront.value.products.find(r=>r.id===e)||null)}function Qs(e){const t=Ce(zn);if(!t)throw new Error("No storefront configured");return{getLicenses:async n=>t.client.inventory.licenses.get(n),getLicenseActivations:async(n,r)=>t.client.inventory.licenses.getActivations(n,r),getProduct:async(n,r)=>t.client.inventory.products.get(n,r),getProducts:async n=>t.client.inventory.products.getOwned(n),getProductLicenses:async(n,r)=>t.client.inventory.products.getLicenses(n,r),getProductActivations:async(n,r)=>t.client.inventory.products.getActivations(n,r),revokeActivation:async n=>t.client.inventory.licenses.revokeActivation(n.licenseId,n.id),activateProduct:async(n,r)=>t.client.inventory.activation.activate(n,r),downloadProduct:async n=>{if(!n.path)throw new Error("Product is not downloadable");window.location.href=await t.client.inventory.products.getDownloadUrl(n.path)}}}function $g(e,t){const n=Ce(zn);if(!n)throw new Error("No storefront configured");const r=n.stateFactory(`activation-request-${Ln(e)}`,null),o=n.stateFactory(`activation-request-${Ln(e)}-error`,null),s=n.stateFactory(`activation-request-${Ln(e)}-loading`,!0),i=n.stateFactory(`activation-request-${Ln(e)}-fulfilling`,!1),a=n.stateFactory(`activation-request-${Ln(e)}-completing`,!1),l=n.stateFactory(`activation-request-${Ln(e)}-completion-timeout`,null),u=async()=>{if(!r.value)return;await n.client.activationRequests.isCompleted(r.value.id)&&r.value?(r.value.status=Xt.Completed,a.value=!1):l.value=setTimeout(u,1500)};return Je(()=>Ln(e),async c=>{try{c&&c.length>0?(r.value=await n.client.activationRequests.get(c),r.value.status===Xt.Fulfilled&&(a.value=!0,u()),s.value=!1):(o.value=new Ti("Invalid input","Missing request id",-1),s.value=!1)}catch(d){o.value=d,s.value=!1}},{immediate:!0}),fa(()=>{l.value&&clearTimeout(l.value)}),Je(n.currentUser,async()=>{var c,d;const f=Ln(e);if(!(!f||(d=(c=r.value)==null?void 0:c.licenseEligibility)!=null&&d.eligible)){s.value=!0;try{r.value=await n.client.activationRequests.get(f),r.value.status===Xt.Fulfilled&&(a.value=!0,u())}catch(m){o.value=m}s.value=!1}}),{activationRequest:r,loading:s,fulfilling:i,completing:a,error:o,isInstalled:Q(()=>{var c;return r&&((c=r.value)==null?void 0:c.status)===Xt.Completed}),fulfillLicense:async()=>{i.value=!0,r.value=await n.client.activationRequests.fulfillLicense(r.value.id),i.value=!1,a.value=!0,u()},fulfillTrial:async()=>{i.value=!0,r.value=await n.client.activationRequests.fulfillTrial(r.value.id),i.value=!1,a.value=!0,u()},cancel:async()=>{!r.value||r.value.status===Xt.Cancelled||(r.value=await n.client.activationRequests.cancel(r.value.id))}}}function Ig(e){const t=Ce(zn);if(!t)throw new Error("No storefront configured");return{peek:async n=>{try{return await t.client.vouchers.peek(n)}catch(r){throw r instanceof sr?new Error("Voucher code invalid"):r}},redeem:async n=>{try{return await t.client.vouchers.redeem(n)}catch(r){throw r instanceof sr?new Error("Voucher code invalid"):r}}}}function Ba(e){const t=e??Ce(zn);if(!t)throw new Error("No storefront configured");return{items:Q(()=>t.currentOrder.value.items.map(n=>{var r,o;if(n.type==="Product"){const s=t.storefront.value.products.find(l=>l.id===n.productId),a=((s==null?void 0:s.variations)||[]).find(l=>l.id===n.variationId);return{...n,product:s,variation:a,price:a==null?void 0:a.price,appliedDiscount:(r=a==null?void 0:a.discount)!=null?r:n.appliedDiscount}}else{const s=t.storefront.value.bundles.find(l=>l.id===n.bundleId),a=((s==null?void 0:s.variations)||[]).find(l=>l.id===n.variationId);return{...n,bundle:s,variation:a,price:a==null?void 0:a.price,appliedDiscount:(o=a==null?void 0:a.discount)!=null?o:n.appliedDiscount}}})),currency:Q(()=>t.currentOrder.value.currency||t.storefront.value.suggestedCurrency),total:Q(()=>{const n=t.currentOrder.value.currency||t.storefront.value.suggestedCurrency;return{amount:t.currentOrder.value.items.reduce((o,s)=>{var i,a,l,u,c,d;let f;if(s.type==="Product"){const m=t.storefront.value.products.find(w=>w.id===s.productId),O=((m==null?void 0:m.variations)||[]).find(w=>w.id===s.variationId);f=(l=(a=O==null?void 0:O.price[n])!=null?a:(i=m==null?void 0:m.defaultVariation)==null?void 0:i.price[n])!=null?l:0}else{const m=t.storefront.value.bundles.find(w=>w.id===s.bundleId),O=((m==null?void 0:m.variations)||[]).find(w=>w.id===s.variationId);f=(d=(c=O==null?void 0:O.price[n])!=null?c:(u=m==null?void 0:m.defaultVariation)==null?void 0:u.price[n])!=null?d:0}return o+f*s.quantity},0),currency:n}}),addToCart:(n,r)=>{if(n=_(n),r??(r=n.defaultVariation),!r)throw new Error("Added item does not have a default variation, and none have been specified");const o=`${n.type==="bundle"?"b":"p"}/${n.id}/${r.id}`;let s=t.currentOrder.value.items.find(i=>i.id===o);s?s.quantity+=1:n.type==="bundle"?(s={id:o,type:"Bundle",bundleId:n.id,bundle:n,quantity:1,variation:r,variationId:r.id,price:r.price,appliedDiscount:r.discount},t.currentOrder.value.items.push(s)):n.type==="product"&&(s={id:o,type:"Product",productId:n.id,product:n,quantity:1,variation:r,variationId:r.id,price:r.price,appliedDiscount:r.discount},t.currentOrder.value.items.push(s)),t.pushOrderContent()},setQuantity:(n,r)=>{const o=t.currentOrder.value.items.find(s=>s.id===n.id);if(!o)throw new Error("Cart item not found");if(o.quantity=r,o.quantity<=0){const s=t.currentOrder.value.items.findIndex(i=>i.id===o.id);t.currentOrder.value.items.splice(s,1)}t.pushOrderContent()},removeFromCart:n=>{const r=t.currentOrder.value.items.findIndex(o=>o.id===n.id);t.currentOrder.value.items.splice(r,1),t.pushOrderContent()},checkout:async n=>{const r=new URL(n.returnUrl,document.baseURI).href,o=await t.client.orders.pushContent(t.currentOrder.value,{returnUrl:r});if(!n.redirect&&o.embeddedCheckoutUrl&&typeof window<"u"){const s=o.embeddedCheckoutUrl;return new Promise(i=>{hd(s.replace("acme-co.beta.moonbase.sh","localhost:3002")),window.addEventListener("moonbase-checkout-closed",a=>{i({next:a.detail.next})})})}else{if(n.redirect&&o.checkoutUrl&&typeof window<"u")return window.location.href=o.checkoutUrl,{next:void 0};throw new Error("No checkout URL found")}}}}function St(e){const t=e??Ce(zn);if(!t)throw new Error("No storefront configured");return{user:t.currentUser,loaded:t.loadedUser,loadedPromise:t.loadedUserPromise,signIn:async(n,r)=>{const o=await t.client.identity.signIn(n,r);return t.currentUser.value=o,t.updateStorefront(),o},signUp:async(n,r,o,s,i,a,l)=>{const u=await t.client.identity.signUp(n,r,o,s,i,a,l);return t.currentUser.value=u,t.updateStorefront(),u},signOut:async()=>{t.client.tokenStore.setUser(null),await t.updateStorefront(),t.currentUser.value=null},update:async(n,r,o,s)=>{const i=await t.client.identity.update(n,r,o,s);return t.currentUser.value&&(t.currentUser.value.name=n,s&&(t.currentUser.value.communicationPreferences=s)),i},setPassword:async(n,r)=>{await t.client.identity.setPassword(n,r)},forgotPassword:async n=>{await t.client.identity.forgotPassword(n)},resetPassword:async(n,r,o)=>{await t.client.identity.resetPassword(n,r,o)},confirmAccount:async(n,r)=>await t.client.identity.confirmAccount(n,r),confirmEmail:async(n,r)=>await t.client.identity.confirmEmail(n,r),confirmEmailChange:async(n,r)=>(await t.client.identity.confirmEmailChange(n,r),await t.updateUser())}}function Ag(e,t){const n={endpoint:e};return new Dg(n,new Qp(n),(r,o)=>C(o))}var gd=!1;function ei(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)}function Ha(e,t){if(Array.isArray(e)){e.splice(t,1);return}delete e[t]}function Vg(){return yd().__VUE_DEVTOOLS_GLOBAL_HOOK__}function yd(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const Rg=typeof Proxy=="function",jg="devtools-plugin:setup",Lg="plugin:settings:set";let Zr,Za;function Mg(){var e;return Zr!==void 0||(typeof window<"u"&&window.performance?(Zr=!0,Za=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(Zr=!0,Za=globalThis.perf_hooks.performance):Zr=!1),Zr}function Ug(){return Mg()?Za.now():Date.now()}class Fg{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const r={};if(t.settings)for(const i in t.settings){const a=t.settings[i];r[i]=a.defaultValue}const o=`__vue-devtools-plugin-settings__${t.id}`;let s=Object.assign({},r);try{const i=localStorage.getItem(o),a=JSON.parse(i);Object.assign(s,a)}catch{}this.fallbacks={getSettings(){return s},setSettings(i){try{localStorage.setItem(o,JSON.stringify(i))}catch{}s=i},now(){return Ug()}},n&&n.on(Lg,(i,a)=>{i===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(i,a)=>this.target?this.target.on[a]:(...l)=>{this.onQueue.push({method:a,args:l})}}),this.proxiedTarget=new Proxy({},{get:(i,a)=>this.target?this.target[a]:a==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(a)?(...l)=>(this.targetQueue.push({method:a,args:l,resolve:()=>{}}),this.fallbacks[a](...l)):(...l)=>new Promise(u=>{this.targetQueue.push({method:a,args:l,resolve:u})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function bd(e,t){const n=e,r=yd(),o=Vg(),s=Rg&&n.enableEarlyProxy;if(o&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!s))o.emit(jg,e,t);else{const i=s?new Fg(n,o):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:i}),i&&t(i.proxiedTarget)}}var Te={};let Ho;const Zo=e=>Ho=e,_d=Te.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function wr(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var ln;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(ln||(ln={}));const Er=typeof window<"u",wd=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:typeof globalThis=="object"?globalThis:{HTMLElement:null};function Bg(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e}function qa(e,t,n){const r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){Nd(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function Ed(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function ti(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{const n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}}const ni=typeof navigator=="object"?navigator:{userAgent:""},Od=/Macintosh/.test(ni.userAgent)&&/AppleWebKit/.test(ni.userAgent)&&!/Safari/.test(ni.userAgent),Nd=Er?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!Od?Hg:"msSaveOrOpenBlob"in ni?Zg:qg:()=>{};function Hg(e,t="download",n){const r=document.createElement("a");r.download=t,r.rel="noopener",typeof e=="string"?(r.href=e,r.origin!==location.origin?Ed(r.href)?qa(e,t,n):(r.target="_blank",ti(r)):ti(r)):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){ti(r)},0))}function Zg(e,t="download",n){if(typeof e=="string")if(Ed(e))qa(e,t,n);else{const r=document.createElement("a");r.href=e,r.target="_blank",setTimeout(function(){ti(r)})}else navigator.msSaveOrOpenBlob(Bg(e,n),t)}function qg(e,t,n,r){if(r=r||open("","_blank"),r&&(r.document.title=r.document.body.innerText="downloading..."),typeof e=="string")return qa(e,t,n);const o=e.type==="application/octet-stream",s=/constructor/i.test(String(wd.HTMLElement))||"safari"in wd,i=/CriOS\/[\d]+/.test(navigator.userAgent);if((i||o&&s||Od)&&typeof FileReader<"u"){const a=new FileReader;a.onloadend=function(){let l=a.result;if(typeof l!="string")throw r=null,new Error("Wrong reader.result type");l=i?l:l.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=l:location.assign(l),r=null},a.readAsDataURL(e)}else{const a=URL.createObjectURL(e);r?r.location.assign(a):location.href=a,r=null,setTimeout(function(){URL.revokeObjectURL(a)},4e4)}}function ot(e,t){const n="🍍 "+e;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(n,t):t==="error"?console.error(n):t==="warn"?console.warn(n):console.log(n)}function Wa(e){return"_a"in e&&"install"in e}function Sd(){if(!("clipboard"in navigator))return ot("Your browser doesn't support the Clipboard API","error"),!0}function xd(e){return e instanceof Error&&e.message.toLowerCase().includes("document is not focused")?(ot('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function Wg(e){if(!Sd())try{await navigator.clipboard.writeText(JSON.stringify(e.state.value)),ot("Global state copied to clipboard.")}catch(t){if(xd(t))return;ot("Failed to serialize the state. Check the console for more details.","error"),console.error(t)}}async function zg(e){if(!Sd())try{kd(e,JSON.parse(await navigator.clipboard.readText())),ot("Global state pasted from clipboard.")}catch(t){if(xd(t))return;ot("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(t)}}async function Kg(e){try{Nd(new Blob([JSON.stringify(e.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(t){ot("Failed to export the state as JSON. Check the console for more details.","error"),console.error(t)}}let Sn;function Gg(){Sn||(Sn=document.createElement("input"),Sn.type="file",Sn.accept=".json");function e(){return new Promise((t,n)=>{Sn.onchange=async()=>{const r=Sn.files;if(!r)return t(null);const o=r.item(0);return t(o?{text:await o.text(),file:o}:null)},Sn.oncancel=()=>t(null),Sn.onerror=n,Sn.click()})}return e}async function Jg(e){try{const n=await Gg()();if(!n)return;const{text:r,file:o}=n;kd(e,JSON.parse(r)),ot(`Global state imported from "${o.name}".`)}catch(t){ot("Failed to import the state from JSON. Check the console for more details.","error"),console.error(t)}}function kd(e,t){for(const n in t){const r=e.state.value[n];r?Object.assign(r,t[n]):e.state.value[n]=t[n]}}function Wt(e){return{_custom:{display:e}}}const Td="🍍 Pinia (root)",ri="_root";function Yg(e){return Wa(e)?{id:ri,label:Td}:{id:e.$id,label:e.$id}}function Xg(e){if(Wa(e)){const n=Array.from(e._s.keys()),r=e._s;return{state:n.map(s=>({editable:!0,key:s,value:e.state.value[s]})),getters:n.filter(s=>r.get(s)._getters).map(s=>{const i=r.get(s);return{editable:!1,key:s,value:i._getters.reduce((a,l)=>(a[l]=i[l],a),{})}})}}const t={state:Object.keys(e.$state).map(n=>({editable:!0,key:n,value:e.$state[n]}))};return e._getters&&e._getters.length&&(t.getters=e._getters.map(n=>({editable:!1,key:n,value:e[n]}))),e._customProperties.size&&(t.customProperties=Array.from(e._customProperties).map(n=>({editable:!0,key:n,value:e[n]}))),t}function Qg(e){return e?Array.isArray(e)?e.reduce((t,n)=>(t.keys.push(n.key),t.operations.push(n.type),t.oldValue[n.key]=n.oldValue,t.newValue[n.key]=n.newValue,t),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:Wt(e.type),key:Wt(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function ey(e){switch(e){case ln.direct:return"mutation";case ln.patchFunction:return"$patch";case ln.patchObject:return"$patch";default:return"unknown"}}let qr=!0;const oi=[],Or="pinia:mutations",pt="pinia",{assign:ty}=Object,si=e=>"🍍 "+e;function ny(e,t){bd({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:oi,app:e},n=>{typeof n.now!="function"&&ot("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),n.addTimelineLayer({id:Or,label:"Pinia 🍍",color:15064968}),n.addInspector({id:pt,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{Wg(t)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await zg(t),n.sendInspectorTree(pt),n.sendInspectorState(pt)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{Kg(t)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await Jg(t),n.sendInspectorTree(pt),n.sendInspectorState(pt)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:r=>{const o=t._s.get(r);o?typeof o.$reset!="function"?ot(`Cannot reset "${r}" store because it doesn't have a "$reset" method implemented.`,"warn"):(o.$reset(),ot(`Store "${r}" reset.`)):ot(`Cannot reset "${r}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent((r,o)=>{const s=r.componentInstance&&r.componentInstance.proxy;if(s&&s._pStores){const i=r.componentInstance.proxy._pStores;Object.values(i).forEach(a=>{r.instanceData.state.push({type:si(a.$id),key:"state",editable:!0,value:a._isOptionsAPI?{_custom:{value:ye(a.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>a.$reset()}]}}:Object.keys(a.$state).reduce((l,u)=>(l[u]=a.$state[u],l),{})}),a._getters&&a._getters.length&&r.instanceData.state.push({type:si(a.$id),key:"getters",editable:!1,value:a._getters.reduce((l,u)=>{try{l[u]=a[u]}catch(c){l[u]=c}return l},{})})})}}),n.on.getInspectorTree(r=>{if(r.app===e&&r.inspectorId===pt){let o=[t];o=o.concat(Array.from(t._s.values())),r.rootNodes=(r.filter?o.filter(s=>"$id"in s?s.$id.toLowerCase().includes(r.filter.toLowerCase()):Td.toLowerCase().includes(r.filter.toLowerCase())):o).map(Yg)}}),globalThis.$pinia=t,n.on.getInspectorState(r=>{if(r.app===e&&r.inspectorId===pt){const o=r.nodeId===ri?t:t._s.get(r.nodeId);if(!o)return;o&&(r.nodeId!==ri&&(globalThis.$store=ye(o)),r.state=Xg(o))}}),n.on.editInspectorState((r,o)=>{if(r.app===e&&r.inspectorId===pt){const s=r.nodeId===ri?t:t._s.get(r.nodeId);if(!s)return ot(`store "${r.nodeId}" not found`,"error");const{path:i}=r;Wa(s)?i.unshift("state"):(i.length!==1||!s._customProperties.has(i[0])||i[0]in s.$state)&&i.unshift("$state"),qr=!1,r.set(s,i,r.state.value),qr=!0}}),n.on.editComponentState(r=>{if(r.type.startsWith("🍍")){const o=r.type.replace(/^🍍\s*/,""),s=t._s.get(o);if(!s)return ot(`store "${o}" not found`,"error");const{path:i}=r;if(i[0]!=="state")return ot(`Invalid path for store "${o}":
16
16
  ${i}
17
17
  Only state can be modified.`);i[0]="$state",qr=!1,r.set(s,i,r.state.value),qr=!0}})})}function ry(e,t){oi.includes(si(t.$id))||oi.push(si(t.$id)),bd({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:oi,app:e,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},n=>{const r=typeof n.now=="function"?n.now.bind(n):Date.now;t.$onAction(({after:i,onError:a,name:l,args:u})=>{const c=Cd++;n.addTimelineEvent({layerId:Or,event:{time:r(),title:"πŸ›« "+l,subtitle:"start",data:{store:Wt(t.$id),action:Wt(l),args:u},groupId:c}}),i(d=>{Kn=void 0,n.addTimelineEvent({layerId:Or,event:{time:r(),title:"πŸ›¬ "+l,subtitle:"end",data:{store:Wt(t.$id),action:Wt(l),args:u,result:d},groupId:c}})}),a(d=>{Kn=void 0,n.addTimelineEvent({layerId:Or,event:{time:r(),logType:"error",title:"πŸ’₯ "+l,subtitle:"end",data:{store:Wt(t.$id),action:Wt(l),args:u,error:d},groupId:c}})})},!0),t._customProperties.forEach(i=>{Je(()=>_(t[i]),(a,l)=>{n.notifyComponentUpdate(),n.sendInspectorState(pt),qr&&n.addTimelineEvent({layerId:Or,event:{time:r(),title:"Change",subtitle:i,data:{newValue:a,oldValue:l},groupId:Kn}})},{deep:!0})}),t.$subscribe(({events:i,type:a},l)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(pt),!qr)return;const u={time:r(),title:ey(a),data:ty({store:Wt(t.$id)},Qg(i)),groupId:Kn};a===ln.patchFunction?u.subtitle="‡️":a===ln.patchObject?u.subtitle="🧩":i&&!Array.isArray(i)&&(u.subtitle=i.type),i&&(u.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:i}}),n.addTimelineEvent({layerId:Or,event:u})},{detached:!0,flush:"sync"});const o=t._hotUpdate;t._hotUpdate=jn(i=>{o(i),n.addTimelineEvent({layerId:Or,event:{time:r(),title:"πŸ”₯ "+t.$id,subtitle:"HMR update",data:{store:Wt(t.$id),info:Wt("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(pt),n.sendInspectorState(pt)});const{$dispose:s}=t;t.$dispose=()=>{s(),n.notifyComponentUpdate(),n.sendInspectorTree(pt),n.sendInspectorState(pt),n.getSettings().logStoreChanges&&ot(`Disposed "${t.$id}" store πŸ—‘`)},n.notifyComponentUpdate(),n.sendInspectorTree(pt),n.sendInspectorState(pt),n.getSettings().logStoreChanges&&ot(`"${t.$id}" store installed πŸ†•`)})}let Cd=0,Kn;function Pd(e,t,n){const r=t.reduce((o,s)=>(o[s]=ye(e)[s],o),{});for(const o in r)e[o]=function(){const s=Cd,i=n?new Proxy(e,{get(...l){return Kn=s,Reflect.get(...l)},set(...l){return Kn=s,Reflect.set(...l)}}):e;Kn=s;const a=r[o].apply(i,arguments);return Kn=void 0,a}}function oy({app:e,store:t,options:n}){if(!t.$id.startsWith("__hot:")){if(t._isOptionsAPI=!!n.state,!t._p._testing){Pd(t,Object.keys(n.actions),t._isOptionsAPI);const r=t._hotUpdate;ye(t)._hotUpdate=function(o){r.apply(this,arguments),Pd(t,Object.keys(o._hmrPayload.actions),!!t._isOptionsAPI)}}ry(e,t)}}function sy(){const e=ou(!0),t=e.run(()=>C({}));let n=[],r=[];const o=jn({install(s){Zo(o),o._a=s,s.provide(_d,o),s.config.globalProperties.$pinia=o,Te.NODE_ENV!=="production"&&Te.NODE_ENV!=="test"&&Er&&ny(s,o),r.forEach(i=>n.push(i)),r=[]},use(s){return!this._a&&!gd?r.push(s):n.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return Te.NODE_ENV!=="production"&&Te.NODE_ENV!=="test"&&typeof Proxy<"u"&&o.use(oy),o}function Dd(e,t){for(const n in t){const r=t[n];if(!(n in e))continue;const o=e[n];wr(o)&&wr(r)&&!qe(r)&&!tn(r)?e[n]=Dd(o,r):e[n]=r}return e}const $d=()=>{};function Id(e,t,n,r=$d){e.push(t);const o=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),r())};return!n&&su()&&yh(o),o}function Wr(e,...t){e.slice().forEach(n=>{n(...t)})}const iy=e=>e(),Ad=Symbol(),za=Symbol();function Ka(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],o=e[n];wr(o)&&wr(r)&&e.hasOwnProperty(n)&&!qe(r)&&!tn(r)?e[n]=Ka(o,r):e[n]=r}return e}const ay=Te.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function ly(e){return!wr(e)||!e.hasOwnProperty(ay)}const{assign:Rt}=Object;function Vd(e){return!!(qe(e)&&e.effect)}function Rd(e,t,n,r){const{state:o,actions:s,getters:i}=t,a=n.state.value[e];let l;function u(){!a&&(Te.NODE_ENV==="production"||!r)&&(n.state.value[e]=o?o():{});const c=Te.NODE_ENV!=="production"&&r?Du(C(o?o():{}).value):Du(n.state.value[e]);return Rt(c,s,Object.keys(i||{}).reduce((d,f)=>(Te.NODE_ENV!=="production"&&f in c&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${e}".`),d[f]=jn(Q(()=>{Zo(n);const m=n._s.get(e);return i[f].call(m,m)})),d),{}))}return l=Ga(e,u,t,n,r,!0),l}function Ga(e,t,n={},r,o,s){let i;const a=Rt({actions:{}},n);if(Te.NODE_ENV!=="production"&&!r._e.active)throw new Error("Pinia destroyed");const l={deep:!0};Te.NODE_ENV!=="production"&&!gd&&(l.onTrigger=A=>{u?m=A:u==!1&&!j._hotUpdating&&(Array.isArray(m)?m.push(A):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let u,c,d=[],f=[],m;const b=r.state.value[e];!s&&!b&&(Te.NODE_ENV==="production"||!o)&&(r.state.value[e]={});const O=C({});let w;function $(A){let V;u=c=!1,Te.NODE_ENV!=="production"&&(m=[]),typeof A=="function"?(A(r.state.value[e]),V={type:ln.patchFunction,storeId:e,events:m}):(Ka(r.state.value[e],A),V={type:ln.patchObject,payload:A,storeId:e,events:m});const D=w=Symbol();ko().then(()=>{w===D&&(u=!0)}),c=!0,Wr(d,V,r.state.value[e])}const H=s?function(){const{state:V}=n,D=V?V():{};this.$patch(ie=>{Rt(ie,D)})}:Te.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:$d;function T(){i.stop(),d=[],f=[],r._s.delete(e)}const te=(A,V="")=>{if(Ad in A)return A[za]=V,A;const D=function(){Zo(r);const ie=Array.from(arguments),$e=[],E=[];function P(he){$e.push(he)}function Y(he){E.push(he)}Wr(f,{args:ie,name:D[za],store:j,after:P,onError:Y});let re;try{re=A.apply(this&&this.$id===e?this:j,ie)}catch(he){throw Wr(E,he),he}return re instanceof Promise?re.then(he=>(Wr($e,he),he)).catch(he=>(Wr(E,he),Promise.reject(he))):(Wr($e,re),re)};return D[Ad]=!0,D[za]=V,D},S=jn({actions:{},getters:{},state:[],hotState:O}),U={_p:r,$id:e,$onAction:Id.bind(null,f),$patch:$,$reset:H,$subscribe(A,V={}){const D=Id(d,A,V.detached,()=>ie()),ie=i.run(()=>Je(()=>r.state.value[e],$e=>{(V.flush==="sync"?c:u)&&A({storeId:e,type:ln.direct,events:m},$e)},Rt({},l,V)));return D},$dispose:T},j=Oo(Te.NODE_ENV!=="production"||Te.NODE_ENV!=="production"&&Te.NODE_ENV!=="test"&&Er?Rt({_hmrPayload:S,_customProperties:jn(new Set)},U):U);r._s.set(e,j);const q=(r._a&&r._a.runWithContext||iy)(()=>r._e.run(()=>(i=ou()).run(()=>t({action:te}))));for(const A in q){const V=q[A];if(qe(V)&&!Vd(V)||tn(V))Te.NODE_ENV!=="production"&&o?ei(O.value,A,Qi(q,A)):s||(b&&ly(V)&&(qe(V)?V.value=b[A]:Ka(V,b[A])),r.state.value[e][A]=V),Te.NODE_ENV!=="production"&&S.state.push(A);else if(typeof V=="function"){const D=Te.NODE_ENV!=="production"&&o?V:te(V,A);q[A]=D,Te.NODE_ENV!=="production"&&(S.actions[A]=V),a.actions[A]=V}else Te.NODE_ENV!=="production"&&Vd(V)&&(S.getters[A]=s?n.getters[A]:V,Er&&(q._getters||(q._getters=jn([]))).push(A))}if(Rt(j,q),Rt(ye(j),q),Object.defineProperty(j,"$state",{get:()=>Te.NODE_ENV!=="production"&&o?O.value:r.state.value[e],set:A=>{if(Te.NODE_ENV!=="production"&&o)throw new Error("cannot set hotState");$(V=>{Rt(V,A)})}}),Te.NODE_ENV!=="production"&&(j._hotUpdate=jn(A=>{j._hotUpdating=!0,A._hmrPayload.state.forEach(V=>{if(V in j.$state){const D=A.$state[V],ie=j.$state[V];typeof D=="object"&&wr(D)&&wr(ie)?Dd(D,ie):A.$state[V]=ie}ei(j,V,Qi(A.$state,V))}),Object.keys(j.$state).forEach(V=>{V in A.$state||Ha(j,V)}),u=!1,c=!1,r.state.value[e]=Qi(A._hmrPayload,"hotState"),c=!0,ko().then(()=>{u=!0});for(const V in A._hmrPayload.actions){const D=A[V];ei(j,V,te(D,V))}for(const V in A._hmrPayload.getters){const D=A._hmrPayload.getters[V],ie=s?Q(()=>(Zo(r),D.call(j,j))):D;ei(j,V,ie)}Object.keys(j._hmrPayload.getters).forEach(V=>{V in A._hmrPayload.getters||Ha(j,V)}),Object.keys(j._hmrPayload.actions).forEach(V=>{V in A._hmrPayload.actions||Ha(j,V)}),j._hmrPayload=A._hmrPayload,j._getters=A._getters,j._hotUpdating=!1})),Te.NODE_ENV!=="production"&&Te.NODE_ENV!=="test"&&Er){const A={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(V=>{Object.defineProperty(j,V,Rt({value:j[V]},A))})}return r._p.forEach(A=>{if(Te.NODE_ENV!=="production"&&Te.NODE_ENV!=="test"&&Er){const V=i.run(()=>A({store:j,app:r._a,pinia:r,options:a}));Object.keys(V||{}).forEach(D=>j._customProperties.add(D)),Rt(j,V)}else Rt(j,i.run(()=>A({store:j,app:r._a,pinia:r,options:a})))}),Te.NODE_ENV!=="production"&&j.$state&&typeof j.$state=="object"&&typeof j.$state.constructor=="function"&&!j.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
18
18
  state: () => new MyClass()
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@moonbase.sh/storefront",
3
3
  "type": "module",
4
- "version": "0.2.33",
4
+ "version": "0.2.34",
5
5
  "description": "Package to let you embed Moonbase.sh into your storefront as a payment and delivery provider",
6
6
  "author": "Tobias LΓΈnnerΓΈd Madsen <m@dsen.tv>",
7
7
  "license": "MIT",
@@ -22,7 +22,7 @@
22
22
  "pinia": "^2.1.7",
23
23
  "vite-plugin-css-injected-by-js": "^3.5.1",
24
24
  "vue": "^3.5.3",
25
- "@moonbase.sh/vue": "0.2.33"
25
+ "@moonbase.sh/vue": "0.2.34"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "^18.19.50",