| 123456789101112131415161718192021 |
- import{aU as t,ao as e,$ as n,ak as s,ai as o,be as a,aS as c,as as r,bg as i,q as u,bE as f,a1 as l,aG as p,af as h,a7 as d,bf as y}from"./@vue.DbmRtknU.js";
- /*!
- * pinia v3.0.4
- * (c) 2025 Eduardo San Martin Morote
- * @license MIT
- */let b;const v=t=>b=t,_=
- /* istanbul ignore next */Symbol();function S(t){return t&&"object"==typeof t&&"[object Object]"===Object.prototype.toString.call(t)&&"function"!=typeof t.toJSON}var j,$;function O(){const s=n(!0),o=s.run(()=>t({}));let a=[],c=[];const r=e({install(t){v(r),r._a=t,t.provide(_,r),t.config.globalProperties.$pinia=r,c.forEach(t=>a.push(t)),c=[]},use(t){return this._a?a.push(t):c.push(t),this},_p:a,
- // it's actually undefined here
- // @ts-expect-error
- _a:null,_e:s,_s:new Map,state:o});return r}($=j||(j={})).direct="direct",$.patchObject="patch object",$.patchFunction="patch function";const g=()=>{};function m(t,e,n,s=g){t.add(e);const o=()=>{t.delete(e)&&s()};return!n&&l()&&p(o),o}function w(t,...e){t.forEach(t=>{t(...e)})}const E=t=>t(),P=Symbol(),I=Symbol();function M(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 a=e[n],c=t[n];S(c)&&S(a)&&t.hasOwnProperty(n)&&!s(a)&&!o(a)?t[n]=M(c,a):t[n]=a}return t}const k=
- /* istanbul ignore next */Symbol();function x(t){return!S(t)||!Object.prototype.hasOwnProperty.call(t,k)}const{assign:A}=Object;function F(t){return!(!s(t)||!t.effect)}function q(t,e,i={},u,l,p){let h;const d=A({actions:{}},i),y={deep:!0};let b,_,S,$=new Set,O=new Set;const k=u.state.value[t];let q;function C(e){let n;b=_=!1,"function"==typeof e?(e(u.state.value[t]),n={type:j.patchFunction,storeId:t,events:S}):(M(u.state.value[t],e),n={type:j.patchObject,payload:e,storeId:t,events:S});const s=q=Symbol();r().then(()=>{q===s&&(b=!0)}),_=!0,w($,n,u.state.value[t])}p||k||(u.state.value[t]={});const G=p?function(){const{state:t}=i,e=t?t():{};this.$patch(t=>{A(t,e)})}:
- /* istanbul ignore next */g;const J=(e,n="")=>{if(P in e)return e[I]=n,e;const s=function(){v(u);const n=Array.from(arguments),o=new Set,a=new Set;let c;w(O,{args:n,name:s[I],store:U,after:function(t){o.add(t)},onError:function(t){a.add(t)}});try{c=e.apply(this&&this.$id===t?this:U,n)}catch(r){throw w(a,r),r}return c instanceof Promise?c.then(t=>(w(o,t),t)).catch(t=>(w(a,t),Promise.reject(t))):(w(o,c),c)};return s[P]=!0,s[I]=n,s},N={_p:u,
- // _s: scope,
- $id:t,$onAction:m.bind(null,O),$patch:C,$reset:G,$subscribe(e,n={}){const s=m($,e,n.detached,()=>o()),o=h.run(()=>f(()=>u.state.value[t],s=>{("sync"===n.flush?_:b)&&e({storeId:t,type:j.direct,events:S},s)},A({},y,n)));return s},$dispose:function(){h.stop(),$.clear(),O.clear(),u._s.delete(t)}},U=c(N);u._s.set(t,U);const W=(u._a&&u._a.runWithContext||E)(()=>u._e.run(()=>(h=n()).run(()=>e({action:J}))));for(const n in W){const e=W[n];if(s(e)&&!F(e)||o(e))p||(k&&x(e)&&(s(e)?e.value=k[n]:M(e,k[n])),u.state.value[t][n]=e);else if("function"==typeof e){const t=J(e,n);W[n]=t,d.actions[n]=e}}return A(U,W),A(a(U),W),Object.defineProperty(U,"$state",{get:()=>u.state.value[t],set:t=>{C(e=>{A(e,t)})}}),u._p.forEach(t=>{A(U,h.run(()=>t({store:U,app:u._a,pinia:u,options:d})))}),k&&p&&i.hydrate&&i.hydrate(U.$state,k),b=!0,_=!0,U}
- /*! #__NO_SIDE_EFFECTS__ */
- // @__NO_SIDE_EFFECTS__
- function C(t,n,s){let o;const a="function"==typeof n;function c(s,c){const r=d();(s=// in test mode, ignore the argument provided as we can always retrieve a
- // pinia instance with getActivePinia()
- s||(r?h(_,null):null))&&v(s),(s=b)._s.has(t)||(a?q(t,n,o,s):function(t,n,s){const{state:o,actions:a,getters:c}=n,r=s.state.value[t];let f;f=q(t,function(){r||(s.state.value[t]=o?o():{});const n=i(s.state.value[t]);return A(n,a,Object.keys(c||{}).reduce((n,o)=>(n[o]=e(u(()=>{v(s);const e=s._s.get(t);return c[o].call(e,e)})),n),{}))},n,s,0,!0)}(t,o,s));return s._s.get(t)}return o=a?s:n,c.$id=t,c}function G(t){const e=a(t),n={};for(const a in e){const c=e[a];c.effect?n[a]=// ...
- u({get:()=>t[a],set(e){t[a]=e}}):(s(c)||o(c))&&(n[a]=// ---
- y(t,a))}return n}export{O as c,C as d,G as s};
|