UNPKG

@axewo/cnsframework

Version:

一个免费开源的中后台管理系统基础解决方案,基于 Vue3、TypeScript、Element Plus、Pinia 和 Vite 等主流技术

15 lines 158 kB
(function(M,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue"),require("element-plus"),require("@element-plus/icons-vue"),require("dayjs")):typeof define=="function"&&define.amd?define(["exports","vue","element-plus","@element-plus/icons-vue","dayjs"],r):(M=typeof globalThis<"u"?globalThis:M||self,r(M.CNSFramwotrk={},M.Vue,M.ElementPlus,M.iconsVue))})(this,function(M,r,Ie,ie){"use strict";var to=!1;function mt(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 Gt(e,t){if(Array.isArray(e)){e.splice(t,1);return}delete e[t]}function Ds(){return no().__VUE_DEVTOOLS_GLOBAL_HOOK__}function no(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const Ms=typeof Proxy=="function",Ls="devtools-plugin:setup",js="plugin:settings:set";let Be,Jt;function Fs(){var e;return Be!==void 0||(typeof window<"u"&&window.performance?(Be=!0,Jt=window.performance):typeof global<"u"&&(!((e=global.perf_hooks)===null||e===void 0)&&e.performance)?(Be=!0,Jt=global.perf_hooks.performance):Be=!1),Be}function Us(){return Fs()?Jt.now():Date.now()}class Hs{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const o={};if(t.settings)for(const a in t.settings){const c=t.settings[a];o[a]=c.defaultValue}const s=`__vue-devtools-plugin-settings__${t.id}`;let i=Object.assign({},o);try{const a=localStorage.getItem(s),c=JSON.parse(a);Object.assign(i,c)}catch{}this.fallbacks={getSettings(){return i},setSettings(a){try{localStorage.setItem(s,JSON.stringify(a))}catch{}i=a},now(){return Us()}},n&&n.on(js,(a,c)=>{a===this.plugin.id&&this.fallbacks.setSettings(c)}),this.proxiedOn=new Proxy({},{get:(a,c)=>this.target?this.target.on[c]:(...u)=>{this.onQueue.push({method:c,args:u})}}),this.proxiedTarget=new Proxy({},{get:(a,c)=>this.target?this.target[c]:c==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(c)?(...u)=>(this.targetQueue.push({method:c,args:u,resolve:()=>{}}),this.fallbacks[c](...u)):(...u)=>new Promise(d=>{this.targetQueue.push({method:c,args:u,resolve:d})})})}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 Kt(e,t){const n=e,o=no(),s=Ds(),i=Ms&&n.enableEarlyProxy;if(s&&(o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!i))s.emit(Ls,e,t);else{const a=i?new Hs(n,s):null;(o.__VUE_DEVTOOLS_PLUGINS__=o.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:a}),a&&t(a.proxiedTarget)}}/*! * pinia v2.1.7 * (c) 2023 Eduardo San Martin Morote * @license MIT */let Xe;const Qe=e=>Xe=e,oo=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function Te(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var ae;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(ae||(ae={}));const gt=typeof window<"u",Ze=(process.env.NODE_ENV!=="production"||!1)&&process.env.NODE_ENV!=="test"&&gt,ro=(()=>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 zs(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([String.fromCharCode(65279),e],{type:e.type}):e}function Yt(e,t,n){const o=new XMLHttpRequest;o.open("GET",e),o.responseType="blob",o.onload=function(){ao(o.response,t,n)},o.onerror=function(){console.error("could not download file")},o.send()}function so(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function _t(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 yt=typeof navigator=="object"?navigator:{userAgent:""},io=(()=>/Macintosh/.test(yt.userAgent)&&/AppleWebKit/.test(yt.userAgent)&&!/Safari/.test(yt.userAgent))(),ao=gt?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!io?Ws:"msSaveOrOpenBlob"in yt?qs:Gs:()=>{};function Ws(e,t="download",n){const o=document.createElement("a");o.download=t,o.rel="noopener",typeof e=="string"?(o.href=e,o.origin!==location.origin?so(o.href)?Yt(e,t,n):(o.target="_blank",_t(o)):_t(o)):(o.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(o.href)},4e4),setTimeout(function(){_t(o)},0))}function qs(e,t="download",n){if(typeof e=="string")if(so(e))Yt(e,t,n);else{const o=document.createElement("a");o.href=e,o.target="_blank",setTimeout(function(){_t(o)})}else navigator.msSaveOrOpenBlob(zs(e,n),t)}function Gs(e,t,n,o){if(o=o||open("","_blank"),o&&(o.document.title=o.document.body.innerText="downloading..."),typeof e=="string")return Yt(e,t,n);const s=e.type==="application/octet-stream",i=/constructor/i.test(String(ro.HTMLElement))||"safari"in ro,a=/CriOS\/[\d]+/.test(navigator.userAgent);if((a||s&&i||io)&&typeof FileReader<"u"){const c=new FileReader;c.onloadend=function(){let u=c.result;if(typeof u!="string")throw o=null,new Error("Wrong reader.result type");u=a?u:u.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=u:location.assign(u),o=null},c.readAsDataURL(e)}else{const c=URL.createObjectURL(e);o?o.location.assign(c):location.href=c,o=null,setTimeout(function(){URL.revokeObjectURL(c)},4e4)}}function G(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 Xt(e){return"_a"in e&&"install"in e}function co(){if(!("clipboard"in navigator))return G("Your browser doesn't support the Clipboard API","error"),!0}function lo(e){return e instanceof Error&&e.message.toLowerCase().includes("document is not focused")?(G('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function Js(e){if(!co())try{await navigator.clipboard.writeText(JSON.stringify(e.state.value)),G("Global state copied to clipboard.")}catch(t){if(lo(t))return;G("Failed to serialize the state. Check the console for more details.","error"),console.error(t)}}async function Ks(e){if(!co())try{uo(e,JSON.parse(await navigator.clipboard.readText())),G("Global state pasted from clipboard.")}catch(t){if(lo(t))return;G("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(t)}}async function Ys(e){try{ao(new Blob([JSON.stringify(e.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(t){G("Failed to export the state as JSON. Check the console for more details.","error"),console.error(t)}}let me;function Xs(){me||(me=document.createElement("input"),me.type="file",me.accept=".json");function e(){return new Promise((t,n)=>{me.onchange=async()=>{const o=me.files;if(!o)return t(null);const s=o.item(0);return t(s?{text:await s.text(),file:s}:null)},me.oncancel=()=>t(null),me.onerror=n,me.click()})}return e}async function Qs(e){try{const n=await Xs()();if(!n)return;const{text:o,file:s}=n;uo(e,JSON.parse(o)),G(`Global state imported from "${s.name}".`)}catch(t){G("Failed to import the state from JSON. Check the console for more details.","error"),console.error(t)}}function uo(e,t){for(const n in t){const o=e.state.value[n];o?Object.assign(o,t[n]):e.state.value[n]=t[n]}}function se(e){return{_custom:{display:e}}}const fo="🍍 Pinia (root)",Qt="_root";function Zs(e){return Xt(e)?{id:Qt,label:fo}:{id:e.$id,label:e.$id}}function ei(e){if(Xt(e)){const n=Array.from(e._s.keys()),o=e._s;return{state:n.map(i=>({editable:!0,key:i,value:e.state.value[i]})),getters:n.filter(i=>o.get(i)._getters).map(i=>{const a=o.get(i);return{editable:!1,key:i,value:a._getters.reduce((c,u)=>(c[u]=a[u],c),{})}})}}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 ti(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:se(e.type),key:se(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function ni(e){switch(e){case ae.direct:return"mutation";case ae.patchFunction:return"$patch";case ae.patchObject:return"$patch";default:return"unknown"}}let De=!0;const bt=[],Re="pinia:mutations",K="pinia",{assign:oi}=Object,wt=e=>"🍍 "+e;function ri(e,t){Kt({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:bt,app:e},n=>{typeof n.now!="function"&&G("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:Re,label:"Pinia 🍍",color:15064968}),n.addInspector({id:K,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{Js(t)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await Ks(t),n.sendInspectorTree(K),n.sendInspectorState(K)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{Ys(t)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await Qs(t),n.sendInspectorTree(K),n.sendInspectorState(K)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:o=>{const s=t._s.get(o);s?typeof s.$reset!="function"?G(`Cannot reset "${o}" store because it doesn't have a "$reset" method implemented.`,"warn"):(s.$reset(),G(`Store "${o}" reset.`)):G(`Cannot reset "${o}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent((o,s)=>{const i=o.componentInstance&&o.componentInstance.proxy;if(i&&i._pStores){const a=o.componentInstance.proxy._pStores;Object.values(a).forEach(c=>{o.instanceData.state.push({type:wt(c.$id),key:"state",editable:!0,value:c._isOptionsAPI?{_custom:{value:r.toRaw(c.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>c.$reset()}]}}:Object.keys(c.$state).reduce((u,d)=>(u[d]=c.$state[d],u),{})}),c._getters&&c._getters.length&&o.instanceData.state.push({type:wt(c.$id),key:"getters",editable:!1,value:c._getters.reduce((u,d)=>{try{u[d]=c[d]}catch(l){u[d]=l}return u},{})})})}}),n.on.getInspectorTree(o=>{if(o.app===e&&o.inspectorId===K){let s=[t];s=s.concat(Array.from(t._s.values())),o.rootNodes=(o.filter?s.filter(i=>"$id"in i?i.$id.toLowerCase().includes(o.filter.toLowerCase()):fo.toLowerCase().includes(o.filter.toLowerCase())):s).map(Zs)}}),n.on.getInspectorState(o=>{if(o.app===e&&o.inspectorId===K){const s=o.nodeId===Qt?t:t._s.get(o.nodeId);if(!s)return;s&&(o.state=ei(s))}}),n.on.editInspectorState((o,s)=>{if(o.app===e&&o.inspectorId===K){const i=o.nodeId===Qt?t:t._s.get(o.nodeId);if(!i)return G(`store "${o.nodeId}" not found`,"error");const{path:a}=o;Xt(i)?a.unshift("state"):(a.length!==1||!i._customProperties.has(a[0])||a[0]in i.$state)&&a.unshift("$state"),De=!1,o.set(i,a,o.state.value),De=!0}}),n.on.editComponentState(o=>{if(o.type.startsWith("🍍")){const s=o.type.replace(/^🍍\s*/,""),i=t._s.get(s);if(!i)return G(`store "${s}" not found`,"error");const{path:a}=o;if(a[0]!=="state")return G(`Invalid path for store "${s}": ${a} Only state can be modified.`);a[0]="$state",De=!1,o.set(i,a,o.state.value),De=!0}})})}function si(e,t){bt.includes(wt(t.$id))||bt.push(wt(t.$id)),Kt({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:bt,app:e,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},n=>{const o=typeof n.now=="function"?n.now.bind(n):Date.now;t.$onAction(({after:a,onError:c,name:u,args:d})=>{const l=po++;n.addTimelineEvent({layerId:Re,event:{time:o(),title:"🛫 "+u,subtitle:"start",data:{store:se(t.$id),action:se(u),args:d},groupId:l}}),a(f=>{Ce=void 0,n.addTimelineEvent({layerId:Re,event:{time:o(),title:"🛬 "+u,subtitle:"end",data:{store:se(t.$id),action:se(u),args:d,result:f},groupId:l}})}),c(f=>{Ce=void 0,n.addTimelineEvent({layerId:Re,event:{time:o(),logType:"error",title:"💥 "+u,subtitle:"end",data:{store:se(t.$id),action:se(u),args:d,error:f},groupId:l}})})},!0),t._customProperties.forEach(a=>{r.watch(()=>r.unref(t[a]),(c,u)=>{n.notifyComponentUpdate(),n.sendInspectorState(K),De&&n.addTimelineEvent({layerId:Re,event:{time:o(),title:"Change",subtitle:a,data:{newValue:c,oldValue:u},groupId:Ce}})},{deep:!0})}),t.$subscribe(({events:a,type:c},u)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(K),!De)return;const d={time:o(),title:ni(c),data:oi({store:se(t.$id)},ti(a)),groupId:Ce};c===ae.patchFunction?d.subtitle="⤵️":c===ae.patchObject?d.subtitle="🧩":a&&!Array.isArray(a)&&(d.subtitle=a.type),a&&(d.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:a}}),n.addTimelineEvent({layerId:Re,event:d})},{detached:!0,flush:"sync"});const s=t._hotUpdate;t._hotUpdate=r.markRaw(a=>{s(a),n.addTimelineEvent({layerId:Re,event:{time:o(),title:"🔥 "+t.$id,subtitle:"HMR update",data:{store:se(t.$id),info:se("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(K),n.sendInspectorState(K)});const{$dispose:i}=t;t.$dispose=()=>{i(),n.notifyComponentUpdate(),n.sendInspectorTree(K),n.sendInspectorState(K),n.getSettings().logStoreChanges&&G(`Disposed "${t.$id}" store 🗑`)},n.notifyComponentUpdate(),n.sendInspectorTree(K),n.sendInspectorState(K),n.getSettings().logStoreChanges&&G(`"${t.$id}" store installed 🆕`)})}let po=0,Ce;function ho(e,t,n){const o=t.reduce((s,i)=>(s[i]=r.toRaw(e)[i],s),{});for(const s in o)e[s]=function(){const i=po,a=n?new Proxy(e,{get(...u){return Ce=i,Reflect.get(...u)},set(...u){return Ce=i,Reflect.set(...u)}}):e;Ce=i;const c=o[s].apply(a,arguments);return Ce=void 0,c}}function ii({app:e,store:t,options:n}){if(t.$id.startsWith("__hot:"))return;t._isOptionsAPI=!!n.state,ho(t,Object.keys(n.actions),t._isOptionsAPI);const o=t._hotUpdate;r.toRaw(t)._hotUpdate=function(s){o.apply(this,arguments),ho(t,Object.keys(s._hmrPayload.actions),!!t._isOptionsAPI)},si(e,t)}function ai(){const e=r.effectScope(!0),t=e.run(()=>r.ref({}));let n=[],o=[];const s=r.markRaw({install(i){Qe(s),s._a=i,i.provide(oo,s),i.config.globalProperties.$pinia=s,Ze&&ri(i,s),o.forEach(a=>n.push(a)),o=[]},use(i){return!this._a&&!to?o.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return Ze&&typeof Proxy<"u"&&s.use(ii),s}function mo(e,t){for(const n in t){const o=t[n];if(!(n in e))continue;const s=e[n];Te(s)&&Te(o)&&!r.isRef(o)&&!r.isReactive(o)?e[n]=mo(s,o):e[n]=o}return e}const go=()=>{};function _o(e,t,n,o=go){e.push(t);const s=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),o())};return!n&&r.getCurrentScope()&&r.onScopeDispose(s),s}function Me(e,...t){e.slice().forEach(n=>{n(...t)})}const ci=e=>e();function Zt(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,o)=>e.set(o,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const o=t[n],s=e[n];Te(s)&&Te(o)&&e.hasOwnProperty(n)&&!r.isRef(o)&&!r.isReactive(o)?e[n]=Zt(s,o):e[n]=o}return e}const li=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function ui(e){return!Te(e)||!e.hasOwnProperty(li)}const{assign:oe}=Object;function yo(e){return!!(r.isRef(e)&&e.effect)}function bo(e,t,n,o){const{state:s,actions:i,getters:a}=t,c=n.state.value[e];let u;function d(){!c&&(process.env.NODE_ENV==="production"||!o)&&(n.state.value[e]=s?s():{});const l=process.env.NODE_ENV!=="production"&&o?r.toRefs(r.ref(s?s():{}).value):r.toRefs(n.state.value[e]);return oe(l,i,Object.keys(a||{}).reduce((f,p)=>(process.env.NODE_ENV!=="production"&&p in l&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${p}" in store "${e}".`),f[p]=r.markRaw(r.computed(()=>{Qe(n);const h=n._s.get(e);return a[p].call(h,h)})),f),{}))}return u=en(e,d,t,n,o,!0),u}function en(e,t,n={},o,s,i){let a;const c=oe({actions:{}},n);if(process.env.NODE_ENV!=="production"&&!o._e.active)throw new Error("Pinia destroyed");const u={deep:!0};process.env.NODE_ENV!=="production"&&!to&&(u.onTrigger=C=>{d?h=C:d==!1&&!S._hotUpdating&&(Array.isArray(h)?h.push(C):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let d,l,f=[],p=[],h;const m=o.state.value[e];!i&&!m&&(process.env.NODE_ENV==="production"||!s)&&(o.state.value[e]={});const g=r.ref({});let b;function w(C){let v;d=l=!1,process.env.NODE_ENV!=="production"&&(h=[]),typeof C=="function"?(C(o.state.value[e]),v={type:ae.patchFunction,storeId:e,events:h}):(Zt(o.state.value[e],C),v={type:ae.patchObject,payload:C,storeId:e,events:h});const R=b=Symbol();r.nextTick().then(()=>{b===R&&(d=!0)}),l=!0,Me(f,v,o.state.value[e])}const E=i?function(){const{state:v}=n,R=v?v():{};this.$patch(D=>{oe(D,R)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:go;function x(){a.stop(),f=[],p=[],o._s.delete(e)}function P(C,v){return function(){Qe(o);const R=Array.from(arguments),D=[],pe=[];function Oe(Y){D.push(Y)}function Wt(Y){pe.push(Y)}Me(p,{args:R,name:C,store:S,after:Oe,onError:Wt});let he;try{he=v.apply(this&&this.$id===e?this:S,R)}catch(Y){throw Me(pe,Y),Y}return he instanceof Promise?he.then(Y=>(Me(D,Y),Y)).catch(Y=>(Me(pe,Y),Promise.reject(Y))):(Me(D,he),he)}}const F=r.markRaw({actions:{},getters:{},state:[],hotState:g}),A={_p:o,$id:e,$onAction:_o.bind(null,p),$patch:w,$reset:E,$subscribe(C,v={}){const R=_o(f,C,v.detached,()=>D()),D=a.run(()=>r.watch(()=>o.state.value[e],pe=>{(v.flush==="sync"?l:d)&&C({storeId:e,type:ae.direct,events:h},pe)},oe({},u,v)));return R},$dispose:x},S=r.reactive(process.env.NODE_ENV!=="production"||Ze?oe({_hmrPayload:F,_customProperties:r.markRaw(new Set)},A):A);o._s.set(e,S);const O=(o._a&&o._a.runWithContext||ci)(()=>o._e.run(()=>(a=r.effectScope()).run(t)));for(const C in O){const v=O[C];if(r.isRef(v)&&!yo(v)||r.isReactive(v))process.env.NODE_ENV!=="production"&&s?mt(g.value,C,r.toRef(O,C)):i||(m&&ui(v)&&(r.isRef(v)?v.value=m[C]:Zt(v,m[C])),o.state.value[e][C]=v),process.env.NODE_ENV!=="production"&&F.state.push(C);else if(typeof v=="function"){const R=process.env.NODE_ENV!=="production"&&s?v:P(C,v);O[C]=R,process.env.NODE_ENV!=="production"&&(F.actions[C]=v),c.actions[C]=v}else process.env.NODE_ENV!=="production"&&yo(v)&&(F.getters[C]=i?n.getters[C]:v,gt&&(O._getters||(O._getters=r.markRaw([]))).push(C))}if(oe(S,O),oe(r.toRaw(S),O),Object.defineProperty(S,"$state",{get:()=>process.env.NODE_ENV!=="production"&&s?g.value:o.state.value[e],set:C=>{if(process.env.NODE_ENV!=="production"&&s)throw new Error("cannot set hotState");w(v=>{oe(v,C)})}}),process.env.NODE_ENV!=="production"&&(S._hotUpdate=r.markRaw(C=>{S._hotUpdating=!0,C._hmrPayload.state.forEach(v=>{if(v in S.$state){const R=C.$state[v],D=S.$state[v];typeof R=="object"&&Te(R)&&Te(D)?mo(R,D):C.$state[v]=D}mt(S,v,r.toRef(C.$state,v))}),Object.keys(S.$state).forEach(v=>{v in C.$state||Gt(S,v)}),d=!1,l=!1,o.state.value[e]=r.toRef(C._hmrPayload,"hotState"),l=!0,r.nextTick().then(()=>{d=!0});for(const v in C._hmrPayload.actions){const R=C[v];mt(S,v,P(v,R))}for(const v in C._hmrPayload.getters){const R=C._hmrPayload.getters[v],D=i?r.computed(()=>(Qe(o),R.call(S,S))):R;mt(S,v,D)}Object.keys(S._hmrPayload.getters).forEach(v=>{v in C._hmrPayload.getters||Gt(S,v)}),Object.keys(S._hmrPayload.actions).forEach(v=>{v in C._hmrPayload.actions||Gt(S,v)}),S._hmrPayload=C._hmrPayload,S._getters=C._getters,S._hotUpdating=!1})),Ze){const C={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(v=>{Object.defineProperty(S,v,oe({value:S[v]},C))})}return o._p.forEach(C=>{if(Ze){const v=a.run(()=>C({store:S,app:o._a,pinia:o,options:c}));Object.keys(v||{}).forEach(R=>S._customProperties.add(R)),oe(S,v)}else oe(S,a.run(()=>C({store:S,app:o._a,pinia:o,options:c})))}),process.env.NODE_ENV!=="production"&&S.$state&&typeof S.$state=="object"&&typeof S.$state.constructor=="function"&&!S.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be state: () => new MyClass() Found in store "${S.$id}".`),m&&i&&n.hydrate&&n.hydrate(S.$state,m),d=!0,l=!0,S}function ge(e,t,n){let o,s;const i=typeof t=="function";if(typeof e=="string")o=e,s=i?n:t;else if(s=e,o=e.id,process.env.NODE_ENV!=="production"&&typeof o!="string")throw new Error('[🍍]: "defineStore()" must be passed a store id as its first argument.');function a(c,u){const d=r.hasInjectionContext();if(c=(process.env.NODE_ENV==="test"&&Xe&&Xe._testing?null:c)||(d?r.inject(oo,null):null),c&&Qe(c),process.env.NODE_ENV!=="production"&&!Xe)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"? See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help. This will fail in production.`);c=Xe,c._s.has(o)||(i?en(o,t,s,c):bo(o,s,c),process.env.NODE_ENV!=="production"&&(a._pinia=c));const l=c._s.get(o);if(process.env.NODE_ENV!=="production"&&u){const f="__hot:"+o,p=i?en(f,t,s,c,!0):bo(f,oe({},s),c,!0);u._hotUpdate(p),delete c.state.value[f],c._s.delete(f)}if(process.env.NODE_ENV!=="production"&&gt){const f=r.getCurrentInstance();if(f&&f.proxy&&!u){const p=f.proxy,h="_pStores"in p?p._pStores:p._pStores={};h[o]=l}}return l}return a.$id=o,a}function Z(e){{e=r.toRaw(e);const t={};for(const n in e){const o=e[n];(r.isRef(o)||r.isReactive(o))&&(t[n]=r.toRef(e,n))}return t}}const Ae=ai(),Le="admin";class ee{static TOKEN=`${Le}-token-key`;static CONFIG_LAYOUT=`${Le}-config-layout-key`;static SIDEBAR_STATUS=`${Le}-sidebar-status-key`;static ACTIVE_THEME_NAME=`${Le}-active-theme-name-key`;static VISITED_VIEWS=`${Le}-visited-views-key`;static CACHED_VIEWS=`${Le}-cached-views-key`}/*! js-cookie v3.0.5 | MIT */function Et(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)e[o]=n[o]}return e}var fi={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function tn(e,t){function n(s,i,a){if(!(typeof document>"u")){a=Et({},t,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),s=encodeURIComponent(s).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var u in a)a[u]&&(c+="; "+u,a[u]!==!0&&(c+="="+a[u].split(";")[0]));return document.cookie=s+"="+e.write(i,s)+c}}function o(s){if(!(typeof document>"u"||arguments.length&&!s)){for(var i=document.cookie?document.cookie.split("; "):[],a={},c=0;c<i.length;c++){var u=i[c].split("="),d=u.slice(1).join("=");try{var l=decodeURIComponent(u[0]);if(a[l]=e.read(d,l),s===l)break}catch{}}return s?a[s]:a}}return Object.create({set:n,get:o,remove:function(s,i){n(s,"",Et({},i,{expires:-1}))},withAttributes:function(s){return tn(this.converter,Et({},this.attributes,s))},withConverter:function(s){return tn(Et({},this.converter,s),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var wo=tn(fi,{path:"/"});const nn=()=>wo.get(ee.TOKEN),Eo=()=>{wo.remove(ee.TOKEN)},Co=ge("requestConfig",()=>{const e=r.ref({});return{setRequestConfig:n=>{e.value=n},requestConfig:e}}),So=ge("systemConfig",()=>{const e=r.ref({});return{setSystemConfig:n=>{e.value=n},systemConfig:e}}),di=ge("CNSRoute",()=>{const e=r.ref();return{setRouter:n=>{e.value=n},router:e}});function vo(){return di(Ae)}function pi(){return Co(Ae)}function No(e,t){return function(){return e.apply(t,arguments)}}const{toString:hi}=Object.prototype,{getPrototypeOf:on}=Object,Ct=(e=>t=>{const n=hi.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ce=e=>(e=e.toLowerCase(),t=>Ct(t)===e),St=e=>t=>typeof t===e,{isArray:je}=Array,et=St("undefined");function mi(e){return e!==null&&!et(e)&&e.constructor!==null&&!et(e.constructor)&&re(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ko=ce("ArrayBuffer");function gi(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ko(e.buffer),t}const _i=St("string"),re=St("function"),xo=St("number"),vt=e=>e!==null&&typeof e=="object",yi=e=>e===!0||e===!1,Nt=e=>{if(Ct(e)!=="object")return!1;const t=on(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},bi=ce("Date"),wi=ce("File"),Ei=ce("Blob"),Ci=ce("FileList"),Si=e=>vt(e)&&re(e.pipe),vi=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||re(e.append)&&((t=Ct(e))==="formdata"||t==="object"&&re(e.toString)&&e.toString()==="[object FormData]"))},Ni=ce("URLSearchParams"),ki=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function tt(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let o,s;if(typeof e!="object"&&(e=[e]),je(e))for(o=0,s=e.length;o<s;o++)t.call(null,e[o],o,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let c;for(o=0;o<a;o++)c=i[o],t.call(null,e[c],c,e)}}function Oo(e,t){t=t.toLowerCase();const n=Object.keys(e);let o=n.length,s;for(;o-- >0;)if(s=n[o],t===s.toLowerCase())return s;return null}const To=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Ro=e=>!et(e)&&e!==To;function rn(){const{caseless:e}=Ro(this)&&this||{},t={},n=(o,s)=>{const i=e&&Oo(t,s)||s;Nt(t[i])&&Nt(o)?t[i]=rn(t[i],o):Nt(o)?t[i]=rn({},o):je(o)?t[i]=o.slice():t[i]=o};for(let o=0,s=arguments.length;o<s;o++)arguments[o]&&tt(arguments[o],n);return t}const xi=(e,t,n,{allOwnKeys:o}={})=>(tt(t,(s,i)=>{n&&re(s)?e[i]=No(s,n):e[i]=s},{allOwnKeys:o}),e),Oi=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ti=(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Ri=(e,t,n,o)=>{let s,i,a;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)a=s[i],(!o||o(a,e,t))&&!c[a]&&(t[a]=e[a],c[a]=!0);e=n!==!1&&on(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Ai=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return o!==-1&&o===n},Pi=e=>{if(!e)return null;if(je(e))return e;let t=e.length;if(!xo(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Vi=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&on(Uint8Array)),$i=(e,t)=>{const o=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=o.next())&&!s.done;){const i=s.value;t.call(e,i[0],i[1])}},Ii=(e,t)=>{let n;const o=[];for(;(n=e.exec(t))!==null;)o.push(n);return o},Bi=ce("HTMLFormElement"),Di=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,o,s){return o.toUpperCase()+s}),Ao=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Mi=ce("RegExp"),Po=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};tt(n,(s,i)=>{let a;(a=t(s,i,e))!==!1&&(o[i]=a||s)}),Object.defineProperties(e,o)},Li=e=>{Po(e,(t,n)=>{if(re(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const o=e[n];if(re(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},ji=(e,t)=>{const n={},o=s=>{s.forEach(i=>{n[i]=!0})};return je(e)?o(e):o(String(e).split(t)),n},Fi=()=>{},Ui=(e,t)=>(e=+e,Number.isFinite(e)?e:t),sn="abcdefghijklmnopqrstuvwxyz",Vo="0123456789",$o={DIGIT:Vo,ALPHA:sn,ALPHA_DIGIT:sn+sn.toUpperCase()+Vo},Hi=(e=16,t=$o.ALPHA_DIGIT)=>{let n="";const{length:o}=t;for(;e--;)n+=t[Math.random()*o|0];return n};function zi(e){return!!(e&&re(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Wi=e=>{const t=new Array(10),n=(o,s)=>{if(vt(o)){if(t.indexOf(o)>=0)return;if(!("toJSON"in o)){t[s]=o;const i=je(o)?[]:{};return tt(o,(a,c)=>{const u=n(a,s+1);!et(u)&&(i[c]=u)}),t[s]=void 0,i}}return o};return n(e,0)},qi=ce("AsyncFunction"),y={isArray:je,isArrayBuffer:ko,isBuffer:mi,isFormData:vi,isArrayBufferView:gi,isString:_i,isNumber:xo,isBoolean:yi,isObject:vt,isPlainObject:Nt,isUndefined:et,isDate:bi,isFile:wi,isBlob:Ei,isRegExp:Mi,isFunction:re,isStream:Si,isURLSearchParams:Ni,isTypedArray:Vi,isFileList:Ci,forEach:tt,merge:rn,extend:xi,trim:ki,stripBOM:Oi,inherits:Ti,toFlatObject:Ri,kindOf:Ct,kindOfTest:ce,endsWith:Ai,toArray:Pi,forEachEntry:$i,matchAll:Ii,isHTMLForm:Bi,hasOwnProperty:Ao,hasOwnProp:Ao,reduceDescriptors:Po,freezeMethods:Li,toObjectSet:ji,toCamelCase:Di,noop:Fi,toFiniteNumber:Ui,findKey:Oo,global:To,isContextDefined:Ro,ALPHABET:$o,generateString:Hi,isSpecCompliantForm:zi,toJSONObject:Wi,isAsyncFn:qi,isThenable:e=>e&&(vt(e)||re(e))&&re(e.then)&&re(e.catch)};function B(e,t,n,o,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),s&&(this.response=s)}y.inherits(B,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:y.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Io=B.prototype,Bo={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Bo[e]={value:e}}),Object.defineProperties(B,Bo),Object.defineProperty(Io,"isAxiosError",{value:!0}),B.from=(e,t,n,o,s,i)=>{const a=Object.create(Io);return y.toFlatObject(e,a,function(u){return u!==Error.prototype},c=>c!=="isAxiosError"),B.call(a,e.message,t,n,o,s),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const Gi=null;function an(e){return y.isPlainObject(e)||y.isArray(e)}function Do(e){return y.endsWith(e,"[]")?e.slice(0,-2):e}function Mo(e,t,n){return e?e.concat(t).map(function(s,i){return s=Do(s),!n&&i?"["+s+"]":s}).join(n?".":""):t}function Ji(e){return y.isArray(e)&&!e.some(an)}const Ki=y.toFlatObject(y,{},null,function(t){return/^is[A-Z]/.test(t)});function kt(e,t,n){if(!y.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=y.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,b){return!y.isUndefined(b[g])});const o=n.metaTokens,s=n.visitor||l,i=n.dots,a=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&y.isSpecCompliantForm(t);if(!y.isFunction(s))throw new TypeError("visitor must be a function");function d(m){if(m===null)return"";if(y.isDate(m))return m.toISOString();if(!u&&y.isBlob(m))throw new B("Blob is not supported. Use a Buffer instead.");return y.isArrayBuffer(m)||y.isTypedArray(m)?u&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function l(m,g,b){let w=m;if(m&&!b&&typeof m=="object"){if(y.endsWith(g,"{}"))g=o?g:g.slice(0,-2),m=JSON.stringify(m);else if(y.isArray(m)&&Ji(m)||(y.isFileList(m)||y.endsWith(g,"[]"))&&(w=y.toArray(m)))return g=Do(g),w.forEach(function(x,P){!(y.isUndefined(x)||x===null)&&t.append(a===!0?Mo([g],P,i):a===null?g:g+"[]",d(x))}),!1}return an(m)?!0:(t.append(Mo(b,g,i),d(m)),!1)}const f=[],p=Object.assign(Ki,{defaultVisitor:l,convertValue:d,isVisitable:an});function h(m,g){if(!y.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(m),y.forEach(m,function(w,E){(!(y.isUndefined(w)||w===null)&&s.call(t,w,y.isString(E)?E.trim():E,g,p))===!0&&h(w,g?g.concat(E):[E])}),f.pop()}}if(!y.isObject(e))throw new TypeError("data must be an object");return h(e),t}function Lo(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function cn(e,t){this._pairs=[],e&&kt(e,this,t)}const jo=cn.prototype;jo.append=function(t,n){this._pairs.push([t,n])},jo.toString=function(t){const n=t?function(o){return t.call(this,o,Lo)}:Lo;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Yi(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Fo(e,t,n){if(!t)return e;const o=n&&n.encode||Yi,s=n&&n.serialize;let i;if(s?i=s(t,n):i=y.isURLSearchParams(t)?t.toString():new cn(t,n).toString(o),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Xi{constructor(){this.handlers=[]}use(t,n,o){return this.handlers.push({fulfilled:t,rejected:n,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){y.forEach(this.handlers,function(o){o!==null&&t(o)})}}const Uo=Xi,Ho={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Qi=typeof URLSearchParams<"u"?URLSearchParams:cn,Zi=typeof FormData<"u"?FormData:null,ea=typeof Blob<"u"?Blob:null,ta=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),na=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),le={isBrowser:!0,classes:{URLSearchParams:Qi,FormData:Zi,Blob:ea},isStandardBrowserEnv:ta,isStandardBrowserWebWorkerEnv:na,protocols:["http","https","file","blob","url","data"]};function oa(e,t){return kt(e,new le.classes.URLSearchParams,Object.assign({visitor:function(n,o,s,i){return le.isNode&&y.isBuffer(n)?(this.append(o,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function ra(e){return y.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function sa(e){const t={},n=Object.keys(e);let o;const s=n.length;let i;for(o=0;o<s;o++)i=n[o],t[i]=e[i];return t}function zo(e){function t(n,o,s,i){let a=n[i++];const c=Number.isFinite(+a),u=i>=n.length;return a=!a&&y.isArray(s)?s.length:a,u?(y.hasOwnProp(s,a)?s[a]=[s[a],o]:s[a]=o,!c):((!s[a]||!y.isObject(s[a]))&&(s[a]=[]),t(n,o,s[a],i)&&y.isArray(s[a])&&(s[a]=sa(s[a])),!c)}if(y.isFormData(e)&&y.isFunction(e.entries)){const n={};return y.forEachEntry(e,(o,s)=>{t(ra(o),s,n,0)}),n}return null}function ia(e,t,n){if(y.isString(e))try{return(t||JSON.parse)(e),y.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(n||JSON.stringify)(e)}const ln={transitional:Ho,adapter:["xhr","http"],transformRequest:[function(t,n){const o=n.getContentType()||"",s=o.indexOf("application/json")>-1,i=y.isObject(t);if(i&&y.isHTMLForm(t)&&(t=new FormData(t)),y.isFormData(t))return s&&s?JSON.stringify(zo(t)):t;if(y.isArrayBuffer(t)||y.isBuffer(t)||y.isStream(t)||y.isFile(t)||y.isBlob(t))return t;if(y.isArrayBufferView(t))return t.buffer;if(y.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(i){if(o.indexOf("application/x-www-form-urlencoded")>-1)return oa(t,this.formSerializer).toString();if((c=y.isFileList(t))||o.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return kt(c?{"files[]":t}:t,u&&new u,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),ia(t)):t}],transformResponse:[function(t){const n=this.transitional||ln.transitional,o=n&&n.forcedJSONParsing,s=this.responseType==="json";if(t&&y.isString(t)&&(o&&!this.responseType||s)){const a=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(c){if(a)throw c.name==="SyntaxError"?B.from(c,B.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:le.classes.FormData,Blob:le.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};y.forEach(["delete","get","head","post","put","patch"],e=>{ln.headers[e]={}});const un=ln,aa=y.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ca=e=>{const t={};let n,o,s;return e&&e.split(` `).forEach(function(a){s=a.indexOf(":"),n=a.substring(0,s).trim().toLowerCase(),o=a.substring(s+1).trim(),!(!n||t[n]&&aa[n])&&(n==="set-cookie"?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)}),t},Wo=Symbol("internals");function nt(e){return e&&String(e).trim().toLowerCase()}function xt(e){return e===!1||e==null?e:y.isArray(e)?e.map(xt):String(e)}function la(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}const ua=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function fn(e,t,n,o,s){if(y.isFunction(o))return o.call(this,t,n);if(s&&(t=n),!!y.isString(t)){if(y.isString(o))return t.indexOf(o)!==-1;if(y.isRegExp(o))return o.test(t)}}function fa(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,o)=>n.toUpperCase()+o)}function da(e,t){const n=y.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{value:function(s,i,a){return this[o].call(this,t,s,i,a)},configurable:!0})})}class Ot{constructor(t){t&&this.set(t)}set(t,n,o){const s=this;function i(c,u,d){const l=nt(u);if(!l)throw new Error("header name must be a non-empty string");const f=y.findKey(s,l);(!f||s[f]===void 0||d===!0||d===void 0&&s[f]!==!1)&&(s[f||u]=xt(c))}const a=(c,u)=>y.forEach(c,(d,l)=>i(d,l,u));return y.isPlainObject(t)||t instanceof this.constructor?a(t,n):y.isString(t)&&(t=t.trim())&&!ua(t)?a(ca(t),n):t!=null&&i(n,t,o),this}get(t,n){if(t=nt(t),t){const o=y.findKey(this,t);if(o){const s=this[o];if(!n)return s;if(n===!0)return la(s);if(y.isFunction(n))return n.call(this,s,o);if(y.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=nt(t),t){const o=y.findKey(this,t);return!!(o&&this[o]!==void 0&&(!n||fn(this,this[o],o,n)))}return!1}delete(t,n){const o=this;let s=!1;function i(a){if(a=nt(a),a){const c=y.findKey(o,a);c&&(!n||fn(o,o[c],c,n))&&(delete o[c],s=!0)}}return y.isArray(t)?t.forEach(i):i(t),s}clear(t){const n=Object.keys(this);let o=n.length,s=!1;for(;o--;){const i=n[o];(!t||fn(this,this[i],i,t,!0))&&(delete this[i],s=!0)}return s}normalize(t){const n=this,o={};return y.forEach(this,(s,i)=>{const a=y.findKey(o,i);if(a){n[a]=xt(s),delete n[i];return}const c=t?fa(i):String(i).trim();c!==i&&delete n[i],n[c]=xt(s),o[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return y.forEach(this,(o,s)=>{o!=null&&o!==!1&&(n[s]=t&&y.isArray(o)?o.join(", "):o)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const o=new this(t);return n.forEach(s=>o.set(s)),o}static accessor(t){const o=(this[Wo]=this[Wo]={accessors:{}}).accessors,s=this.prototype;function i(a){const c=nt(a);o[c]||(da(s,a),o[c]=!0)}return y.isArray(t)?t.forEach(i):i(t),this}}Ot.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),y.reduceDescriptors(Ot.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(o){this[n]=o}}}),y.freezeMethods(Ot);const _e=Ot;function dn(e,t){const n=this||un,o=t||n,s=_e.from(o.headers);let i=o.data;return y.forEach(e,function(c){i=c.call(n,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function qo(e){return!!(e&&e.__CANCEL__)}function ot(e,t,n){B.call(this,e??"canceled",B.ERR_CANCELED,t,n),this.name="CanceledError"}y.inherits(ot,B,{__CANCEL__:!0});function pa(e,t,n){const o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new B("Request failed with status code "+n.status,[B.ERR_BAD_REQUEST,B.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const ha=le.isStandardBrowserEnv?function(){return{write:function(n,o,s,i,a,c){const u=[];u.push(n+"="+encodeURIComponent(o)),y.isNumber(s)&&u.push("expires="+new Date(s).toGMTString()),y.isString(i)&&u.push("path="+i),y.isString(a)&&u.push("domain="+a),c===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(n){const o=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function ma(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function ga(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Go(e,t){return e&&!ma(t)?ga(e,t):t}const _a=le.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let o;function s(i){let a=i;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return o=s(window.location.href),function(a){const c=y.isString(a)?s(a):a;return c.protocol===o.protocol&&c.host===o.host}}():function(){return function(){return!0}}();function ya(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ba(e,t){e=e||10;const n=new Array(e),o=new Array(e);let s=0,i=0,a;return t=t!==void 0?t:1e3,function(u){const d=Date.now(),l=o[i];a||(a=d),n[s]=u,o[s]=d;let f=i,p=0;for(;f!==s;)p+=n[f++],f=f%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),d-a<t)return;const h=l&&d-l;return h?Math.round(p*1e3/h):void 0}}function Jo(e,t){let n=0;const o=ba(50,250);return s=>{const i=s.loaded,a=s.lengthComputable?s.total:void 0,c=i-n,u=o(c),d=i<=a;n=i;const l={loaded:i,total:a,progress:a?i/a:void 0,bytes:c,rate:u||void 0,estimated:u&&a&&d?(a-i)/u:void 0,event:s};l[t?"download":"upload"]=!0,e(l)}}const pn={http:Gi,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,o){let s=e.data;const i=_e.from(e.headers).normalize(),a=e.responseType;let c;function u(){e.cancelToken&&e.cancelToken.unsubscribe(c),e.signal&&e.signal.removeEventListener("abort",c)}let d;y.isFormData(s)&&(le.isStandardBrowserEnv||le.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.getContentType(/^\s*multipart\/form-data/)?y.isString(d=i.getContentType())&&i.setContentType(d.replace(/^\s*(multipart\/form-data);+/,"$1")):i.setContentType("multipart/form-data"));let l=new XMLHttpRequest;if(e.auth){const m=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(m+":"+g))}const f=Go(e.baseURL,e.url);l.open(e.method.toUpperCase(),Fo(f,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function p(){if(!l)return;const m=_e.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),b={data:!a||a==="text"||a==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:m,config:e,request:l};pa(function(E){n(E),u()},function(E){o(E),u()},b),l=null}if("onloadend"in l?l.onloadend=p:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(p)},l.onabort=function(){l&&(o(new B("Request aborted",B.ECONNABORTED,e,l)),l=null)},l.onerror=function(){o(new B("Network Error",B.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let g=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const b=e.transitional||Ho;e.timeoutErrorMessage&&(g=e.timeoutErrorMessage),o(new B(g,b.clarifyTimeoutError?B.ETIMEDOUT:B.ECONNABORTED,e,l)),l=null},le.isStandardBrowserEnv){const m=_a(f)&&e.xsrfCookieName&&ha.read(e.xsrfCookieName);m&&i.set(e.xsrfHeaderName,m)}s===void 0&&i.setContentType(null),"setRequestHeader"in l&&y.forEach(i.toJSON(),function(g,b){l.setRequestHeader(b,g)}),y.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),a&&a!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",Jo(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",Jo(e.onUploadProgress)),(e.cancelToken||e.signal)&&(c=m=>{l&&(o(!m||m.type?new ot(null,e,l):m),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(c),e.signal&&(e.signal.aborted?c():e.signal.addEventListener("abort",c)));const h=ya(f);if(h&&le.protocols.indexOf(h)===-1){o(new B("Unsupported protocol "+h+":",B.ERR_BAD_REQUEST,e));return}l.send(s||null)})}};y.forEach(pn,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ko=e=>`- ${e}`,wa=e=>y.isFunction(e)||e===null||e===!1,Yo={getAdapter:e=>{e=y.isArray(e)?e:[e];const{length:t}=e;let n,o;const s={};for(let i=0;i<t;i++){n=e[i];let a;if(o=n,!wa(n)&&(o=pn[(a=String(n)).toLowerCase()],o===void 0))throw new B(`Unknown adapter '${a}'`);if(o)break;s[a||"#"+i]=o}if(!o){const i=Object.entries(s).map(([c,u])=>`adapter ${c} `+(u===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since : `+i.map(Ko).join(` `):" "+Ko(i[0]):"as no adapter specified";throw new B("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return o},adapters:pn};function hn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ot(null,e)}function Xo(e){return hn(e),e.headers=_e.from(e.headers),e.data=dn.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Yo.getAdapter(e.adapter||un.adapter)(e).then(function(o){return hn(e),o.data=dn.call(e,e.transformResponse,o),o.headers=_e.from(o.headers),o},function(o){return qo(o)||(hn(e),o&&o.response&&(o.response.data=dn.call(e,e.transformResponse,o.response),o.response.headers=_e.from(o.response.headers))),Promise.reject(o)})}const Qo=e=>e instanceof _e?e.toJSON():e;function Fe(e,t){t=t||{};const n={};function o(d,l,f){return y.isPlainObject(d)&&y.isPlainObject(l)?y.merge.call({caseless:f},d,l):y.isPlainObject(l)?y.merge({},l):y.isArray(l)?l.slice():l}function s(d,l,f){if(y.isUndefined(l)){if(!y.isUndefined(d))return o(void 0,d,f)}else return o(d,l,f)}function i(d,l){if(!y.isUndefined(l))return o(void 0,l)}function a(d,l){if(y.isUndefined(l)){if(!y.isUndefined(d))return o(void 0,d)}else return o(void 0,l)}function c(d,l,f){if(f in t)return o(d,l);if(f in e)return o(void 0,d)}const u={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:c,headers:(d,l)=>s(Qo(d),Qo(l),!0)};return y.forEach(Object.keys(Object.assign({},e,t)),function(l){const f=u[l]||s,p=f(e[l],t[l],l);y.isUndefined(p)&&f!==c||(n[l]=p)}),n}const Zo="1.6.0",mn={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{mn[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});const er={};mn.transitional=function(t,n,o){function s(i,a){return"[Axios v"+Zo+"] Transitional option '"+i+"'"+a+(o?". "+o:"")}return(i,a,c)=>{if(t===!1)throw new B(s(a," has been removed"+(n?" in "+n:"")),B.ERR_DEPRECATED);return n&&!er[a]&&(er[a]=!0,console.warn(s(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,c):!0}};function Ea(e,t,n){if(typeof e!="object")throw new B("options must be an object",B.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let s=o.length;for(;s-- >0;){const i=o[s],a=t[i];if(a){const c=e[i],u=c===void 0||a(c,i,e);if(u!==!0)throw new B("option "+i+" must be "+u,B.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new B("Unknown option "+i,B.ERR_BAD_OPTION)}}const gn={assertOptions:Ea,validators:mn},Se=gn.validators;class Tt{constructor(t){this.defaults=t,this.interceptors={request:new Uo,response:new Uo}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Fe(this.defaults,n);const{transitional:o,paramsSerializer:s,headers:i}=n;o!==void 0&&gn.assertOptions(o,{silentJSONParsing:Se.transitional(Se.boolean),forcedJSONParsing:Se.transitional(Se.boolean),clarifyTimeoutError:Se.transitional(Se.boolean)},!1),s!=null&&(y.isFunction(s)?n.paramsSerializer={serialize:s}:gn.assertOptions(s,{encode:Se.function,serialize:Se.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&y.merge(i.common,i[n.method]);i&&y.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=_e.concat(a,i);const c=[];let u=!0;this.