import{E as oe,Q as re,T as ce,at as L,ct as ae,ht as ie,it as I,k as le,mt as fe,nt as X,ot as D,pt as q,rt as ue,st as de,u as V,ut as Y}from"./_plugin-vue_export-helper-DcXDZuMD.css";var he=typeof window<"u",J,p=e=>J=e,Q=Symbol();function x(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var R;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(R||(R={}));var F=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 ve(e,{autoBom:s=!1}={}){return s&&/^\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 H(e,s,n){const t=new XMLHttpRequest;t.open("GET",e),t.responseType="blob",t.onload=function(){ye(t.response,s,n)},t.onerror=function(){},t.send()}function z(e){const s=new XMLHttpRequest;s.open("HEAD",e,!1);try{s.send()}catch{}return s.status>=200&&s.status<=299}function k(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{const n=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window,detail:0,screenX:80,screenY:20,clientX:80,clientY:20,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null});e.dispatchEvent(n)}}var A=typeof navigator=="object"?navigator:{userAgent:""},G=/Macintosh/.test(A.userAgent)&&/AppleWebKit/.test(A.userAgent)&&!/Safari/.test(A.userAgent),ye=he?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!G?Se:"msSaveOrOpenBlob"in A?we:ge:()=>{};function Se(e,s="download",n){const t=document.createElement("a");t.download=s,t.rel="noopener",typeof e=="string"?(t.href=e,t.origin!==location.origin?z(t.href)?H(e,s,n):(t.target="_blank",k(t)):k(t)):(t.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(t.href)},4e4),setTimeout(function(){k(t)},0))}function we(e,s="download",n){if(typeof e=="string")if(z(e))H(e,s,n);else{const t=document.createElement("a");t.href=e,t.target="_blank",setTimeout(function(){k(t)})}else navigator.msSaveOrOpenBlob(ve(e,n),s)}function ge(e,s,n,t){if(t=t||open("","_blank"),t&&(t.document.title=t.document.body.innerText="downloading..."),typeof e=="string")return H(e,s,n);const c=e.type==="application/octet-stream",i=/constructor/i.test(String(F.HTMLElement))||"safari"in F,a=/CriOS\/[\d]+/.test(navigator.userAgent);if((a||c&&i||G)&&typeof FileReader<"u"){const l=new FileReader;l.onloadend=function(){let f=l.result;if(typeof f!="string")throw t=null,new Error("Wrong reader.result type");f=a?f:f.replace(/^data:[^;]*;/,"data:attachment/file;"),t?t.location.href=f:location.assign(f),t=null},l.readAsDataURL(e)}else{const l=URL.createObjectURL(e);t?t.location.assign(l):location.href=l,t=null,setTimeout(function(){URL.revokeObjectURL(l)},4e4)}}var{assign:Re}=Object;function Le(){const e=X(!0),s=e.run(()=>Y({}));let n=[],t=[];const c=D({install(i){p(c),c._a=i,i.provide(Q,c),i.config.globalProperties.$pinia=c,t.forEach(a=>n.push(a)),t=[]},use(i){return this._a?n.push(i):t.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:s});return c}var Z=()=>{};function N(e,s,n,t=Z){e.add(s);const c=()=>{e.delete(s)&&t()};return!n&&ue()&&de(c),c}function E(e,...s){e.forEach(n=>{n(...s)})}var be=e=>e(),B=Symbol(),T=Symbol();function M(e,s){e instanceof Map&&s instanceof Map?s.forEach((n,t)=>e.set(t,n)):e instanceof Set&&s instanceof Set&&s.forEach(e.add,e);for(const n in s){if(!s.hasOwnProperty(n))continue;const t=s[n],c=e[n];x(c)&&x(t)&&e.hasOwnProperty(n)&&!L(t)&&!I(t)?e[n]=M(c,t):e[n]=t}return e}var me=Symbol();function Ee(e){return!x(e)||!Object.prototype.hasOwnProperty.call(e,me)}var{assign:v}=Object;function je(e){return!!(L(e)&&e.effect)}function _e(e,s,n,t){const{state:c,actions:i,getters:a}=s,l=n.state.value[e];let f;function S(){return l||(n.state.value[e]=c?c():{}),v(ie(n.state.value[e]),i,Object.keys(a||{}).reduce((y,w)=>(y[w]=D(V(()=>{p(n);const g=n._s.get(e);return a[w].call(g,g)})),y),{}))}return f=$(e,S,s,n,t,!0),f}function $(e,s,n={},t,c,i){let a;const l=v({actions:{}},n),f={deep:!0};let S,y,w=new Set,g=new Set,C;const b=t.state.value[e];!i&&!b&&(t.state.value[e]={}),Y({});let U;function K(r){let o;S=y=!1,typeof r=="function"?(r(t.state.value[e]),o={type:R.patchFunction,storeId:e,events:C}):(M(t.state.value[e],r),o={type:R.patchObject,payload:r,storeId:e,events:C});const h=U=Symbol();le().then(()=>{U===h&&(S=!0)}),y=!0,E(w,o,t.state.value[e])}const ee=i?function(){const{state:o}=n,h=o?o():{};this.$patch(m=>{v(m,h)})}:Z;function te(){a.stop(),w.clear(),g.clear(),t._s.delete(e)}const W=(r,o="")=>{if(B in r)return r[T]=o,r;const h=function(){p(t);const m=Array.from(arguments),_=new Set,P=new Set;function ne(u){_.add(u)}function se(u){P.add(u)}E(g,{args:m,name:h[T],store:d,after:ne,onError:se});let O;try{O=r.apply(this&&this.$id===e?this:d,m)}catch(u){throw E(P,u),u}return O instanceof Promise?O.then(u=>(E(_,u),u)).catch(u=>(E(P,u),Promise.reject(u))):(E(_,O),O)};return h[B]=!0,h[T]=o,h},d=ae({_p:t,$id:e,$onAction:N.bind(null,g),$patch:K,$reset:ee,$subscribe(r,o={}){const h=N(w,r,o.detached,()=>m()),m=a.run(()=>re(()=>t.state.value[e],_=>{(o.flush==="sync"?y:S)&&r({storeId:e,type:R.direct,events:C},_)},v({},f,o)));return h},$dispose:te});t._s.set(e,d);const j=(t._a&&t._a.runWithContext||be)(()=>t._e.run(()=>(a=X()).run(()=>s({action:W}))));for(const r in j){const o=j[r];L(o)&&!je(o)||I(o)?i||(b&&Ee(o)&&(L(o)?o.value=b[r]:M(o,b[r])),t.state.value[e][r]=o):typeof o=="function"&&(j[r]=W(o,r),l.actions[r]=o)}return v(d,j),v(q(d),j),Object.defineProperty(d,"$state",{get:()=>t.state.value[e],set:r=>{K(o=>{v(o,r)})}}),t._p.forEach(r=>{v(d,a.run(()=>r({store:d,app:t._a,pinia:t,options:l})))}),b&&i&&n.hydrate&&n.hydrate(d.$state,b),S=!0,y=!0,d}function ke(e,s,n){let t;const c=typeof s=="function";t=c?n:s;function i(a,l){const f=ce();return a=a||(f?oe(Q,null):null),a&&p(a),a=J,a._s.has(e)||(c?$(e,s,t,a):_e(e,t,a)),a._s.get(e)}return i.$id=e,i}function Ae(e){const s=q(e),n={};for(const t in s){const c=s[t];c.effect?n[t]=V({get:()=>e[t],set(i){e[t]=i}}):(L(c)||I(c))&&(n[t]=fe(e,t))}return n}export{ke as n,Ae as r,Le as t};
