import{i as t}from"./vue-demi-71ba0ef2.js";import{k as e,b as n,m as s,g as o,c,t as a,i as r,l as i,q as u,w as f,r as p,s as l,v as h,n as d,x as y,d as v}from"./@vue-15a5328c.js"; /*! * pinia v2.0.36 * (c) 2023 Eduardo San Martin Morote * @license MIT */let b;const _=t=>b=t,j=Symbol();function m(t){return t&&"object"==typeof t&&"[object Object]"===Object.prototype.toString.call(t)&&"function"!=typeof t.toJSON}var O,$;function g(){const o=e(!0),c=o.run((()=>n({})));let a=[],r=[];const i=s({install(t){_(i),i._a=t,t.provide(j,i),t.config.globalProperties.$pinia=i,r.forEach((t=>a.push(t))),r=[]},use(e){return this._a||t?a.push(e):r.push(e),this},_p:a,_a:null,_e:o,_s:new Map,state:c});return i}($=O||(O={})).direct="direct",$.patchObject="patch object",$.patchFunction="patch function";const P=()=>{};function S(t,e,n,s=P){t.push(e);const o=()=>{const n=t.indexOf(e);n>-1&&(t.splice(n,1),s())};return!n&&l()&&h(o),o}function w(t,...e){t.slice().forEach((t=>{t(...e)}))}function E(t,e){t instanceof Map&&e instanceof Map&&e.forEach(((e,n)=>t.set(n,e))),t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const s=e[n],o=t[n];m(o)&&m(s)&&t.hasOwnProperty(n)&&!r(s)&&!i(s)?t[n]=E(o,s):t[n]=s}return t}const x=Symbol();const{assign:I}=Object;function M(t,o,c={},u,l,h){let y;const v=I({actions:{}},c),b={deep:!0};let j,$,g,M=s([]),k=s([]);const A=u.state.value[t];let F;function q(e){let n;j=$=!1,"function"==typeof e?(e(u.state.value[t]),n={type:O.patchFunction,storeId:t,events:g}):(E(u.state.value[t],e),n={type:O.patchObject,payload:e,storeId:t,events:g});const s=F=Symbol();d().then((()=>{F===s&&(j=!0)})),$=!0,w(M,n,u.state.value[t])}h||A||(u.state.value[t]={}),n({});const J=h?function(){const{state:t}=c,e=t?t():{};this.$patch((t=>{I(t,e)}))}:P;function N(e,n){return function(){_(u);const s=Array.from(arguments),o=[],c=[];let a;w(k,{args:s,name:e,store:B,after:function(t){o.push(t)},onError:function(t){c.push(t)}});try{a=n.apply(this&&this.$id===t?this:B,s)}catch(r){throw w(c,r),r}return a instanceof Promise?a.then((t=>(w(o,t),t))).catch((t=>(w(c,t),Promise.reject(t)))):(w(o,a),a)}}const z={_p:u,$id:t,$onAction:S.bind(null,k),$patch:q,$reset:J,$subscribe(e,n={}){const s=S(M,e,n.detached,(()=>o())),o=y.run((()=>f((()=>u.state.value[t]),(s=>{("sync"===n.flush?$:j)&&e({storeId:t,type:O.direct,events:g},s)}),I({},b,n))));return s},$dispose:function(){y.stop(),M=[],k=[],u._s.delete(t)}},B=p(z);u._s.set(t,B);const C=u._e.run((()=>(y=e(),y.run((()=>o())))));for(const e in C){const n=C[e];if(r(n)&&(!r(G=n)||!G.effect)||i(n))h||(!A||m(D=n)&&D.hasOwnProperty(x)||(r(n)?n.value=A[e]:E(n,A[e])),u.state.value[t][e]=n);else if("function"==typeof n){const t=N(e,n);C[e]=t,v.actions[e]=n}}var D,G;return I(B,C),I(a(B),C),Object.defineProperty(B,"$state",{get:()=>u.state.value[t],set:t=>{q((e=>{I(e,t)}))}}),u._p.forEach((t=>{I(B,y.run((()=>t({store:B,app:u._a,pinia:u,options:v}))))})),A&&h&&c.hydrate&&c.hydrate(B.$state,A),j=!0,$=!0,B}function k(t,e,n){let a,r;const i="function"==typeof e;function u(t,n){const u=o();(t=t||u&&c(j,null))&&_(t),(t=b)._s.has(a)||(i?M(a,e,r,t):function(t,e,n,o){const{state:c,actions:a,getters:r}=e,i=n.state.value[t];let u;u=M(t,(function(){i||(n.state.value[t]=c?c():{});const e=y(n.state.value[t]);return I(e,a,Object.keys(r||{}).reduce(((e,o)=>(e[o]=s(v((()=>{_(n);const e=n._s.get(t);return r[o].call(e,e)}))),e)),{}))}),e,n,0,!0)}(a,r,t));return t._s.get(a)}return"string"==typeof t?(a=t,r=i?n:e):(r=t,a=t.id),u.$id=a,u}function A(t){{t=a(t);const e={};for(const n in t){const s=t[n];(r(s)||i(s))&&(e[n]=u(t,n))}return e}}export{g as c,k as d,A as s};