Files
accounting/client/dist/assets/index-jY687wPe.js
2026-03-26 01:23:19 +08:00

8 lines
48 KiB
JavaScript
Executable File

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Login-DdLftJUa.js","assets/vue-Gs2e-20-.js","assets/element-plus-JbJMPIks.js","assets/Login-h0FXweFc.css","assets/Dashboard-BMzKp874.js","assets/CategoryPieChart-DcwJBwPs.js","assets/echarts-Bn9PLWWT.js","assets/CategoryPieChart-B6rGHfce.css","assets/records-rp0LN8a-.js","assets/date-CWsjnySd.js","assets/Dashboard-33HOkI16.css","assets/DailyInput-CC7D6jO9.js","assets/DailyInput-Brf7hque.css","assets/Statistics-BMDw4pEJ.js","assets/Statistics-BLocXSk3.css","assets/CalendarView-W0Yungyo.js","assets/CalendarView-sSflqWYb.css"])))=>i.map(i=>d[i]);
import{ax as Ut,e as $e,c as ue,ay as Bt,ag as K,H as X,L as Oe,P as L,M as I,O as oe,Z as He,u as vt,F as kt,ab as It,I as ct,W as qt,X as jt,R as Me,az as $t,aA as Ht,aB as Mt,au as zt,aC as Vt}from"./vue-Gs2e-20-.js";import{e as Wt,E as Jt}from"./element-plus-JbJMPIks.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();/*! Element Plus v2.13.5 */var Kt={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空",defaultLabel:"颜色选择器",description:"当前颜色 {color},按 Enter 键选择新颜色",alphaLabel:"选择透明度的值",alphaDescription:"透明度 {alpha}, 当前颜色 {color}",hueLabel:"选择色相值",hueDescription:"色相 {hue}, 当前颜色 {color}",svLabel:"选择饱和度与明度的值",svDescription:"饱和度 {saturation}, 明度 {brightness}, 当前颜色 {color}",predefineDescription:"选择 {value} 作为颜色"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",dateTablePrompt:"使用方向键与 Enter 键可选择日期",monthTablePrompt:"使用方向键与 Enter 键可选择月份",yearTablePrompt:"使用方向键与 Enter 键可选择年份",selectedDate:"已选日期",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},weeksFull:{sun:"星期日",mon:"星期一",tue:"星期二",wed:"星期三",thu:"星期四",fri:"星期五",sat:"星期六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},inputNumber:{decrease:"减少数值",increase:"增加数值"},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},mention:{loading:"加载中"},dropdown:{toggleDropdown:"切换下拉选项"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},dialog:{close:"关闭此对话框"},drawer:{close:"关闭此对话框"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!",close:"关闭此对话框"},upload:{deleteTip:"按 Delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},slider:{defaultLabel:"滑块介于 {min} 至 {max}",defaultRangeStartLabel:"选择起始值",defaultRangeEndLabel:"选择结束值"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计",selectAllLabel:"选择所有行",selectRowLabel:"选择当前行",expandRowLabel:"展开当前行",collapseRowLabel:"收起当前行",sortLabel:"按 {column} 排序",filterLabel:"按 {column} 过滤"},tag:{close:"关闭此标签"},tour:{next:"下一步",previous:"上一步",finish:"结束导览",close:"关闭此对话框"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},carousel:{leftArrow:"上一张幻灯片",rightArrow:"下一张幻灯片",indicator:"幻灯片切换至索引 {index}"}}};function lt(e,t){return function(){return e.apply(t,arguments)}}const{toString:Xt}=Object.prototype,{getPrototypeOf:Pe}=Object,{iterator:de,toStringTag:ut}=Symbol,pe=(e=>t=>{const n=Xt.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),F=e=>(e=e.toLowerCase(),t=>pe(t)===e),he=e=>t=>typeof t===e,{isArray:z}=Array,M=he("undefined");function G(e){return e!==null&&!M(e)&&e.constructor!==null&&!M(e.constructor)&&T(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ft=F("ArrayBuffer");function Gt(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ft(e.buffer),t}const Qt=he("string"),T=he("function"),dt=he("number"),Q=e=>e!==null&&typeof e=="object",Yt=e=>e===!0||e===!1,ae=e=>{if(pe(e)!=="object")return!1;const t=Pe(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(ut in e)&&!(de in e)},Zt=e=>{if(!Q(e)||G(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},en=F("Date"),tn=F("File"),nn=e=>!!(e&&typeof e.uri<"u"),rn=e=>e&&typeof e.getParts<"u",sn=F("Blob"),on=F("FileList"),an=e=>Q(e)&&T(e.pipe);function cn(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const ze=cn(),Ve=typeof ze.FormData<"u"?ze.FormData:void 0,ln=e=>{let t;return e&&(Ve&&e instanceof Ve||T(e.append)&&((t=pe(e))==="formdata"||t==="object"&&T(e.toString)&&e.toString()==="[object FormData]"))},un=F("URLSearchParams"),[fn,dn,pn,hn]=["ReadableStream","Request","Response","Headers"].map(F),mn=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Y(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),z(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{if(G(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let c;for(r=0;r<o;r++)c=i[r],t.call(null,e[c],c,e)}}function pt(e,t){if(G(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const q=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ht=e=>!M(e)&&e!==q;function Ae(){const{caseless:e,skipUndefined:t}=ht(this)&&this||{},n={},r=(s,i)=>{if(i==="__proto__"||i==="constructor"||i==="prototype")return;const o=e&&pt(n,i)||i;ae(n[o])&&ae(s)?n[o]=Ae(n[o],s):ae(s)?n[o]=Ae({},s):z(s)?n[o]=s.slice():(!t||!M(s))&&(n[o]=s)};for(let s=0,i=arguments.length;s<i;s++)arguments[s]&&Y(arguments[s],r);return n}const yn=(e,t,n,{allOwnKeys:r}={})=>(Y(t,(s,i)=>{n&&T(s)?Object.defineProperty(e,i,{value:lt(s,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{value:s,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),bn=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),gn=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},wn=(e,t,n,r)=>{let s,i,o;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)o=s[i],(!r||r(o,e,t))&&!c[o]&&(t[o]=e[o],c[o]=!0);e=n!==!1&&Pe(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},En=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Rn=e=>{if(!e)return null;if(z(e))return e;let t=e.length;if(!dt(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Sn=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Pe(Uint8Array)),_n=(e,t)=>{const r=(e&&e[de]).call(e);let s;for(;(s=r.next())&&!s.done;){const i=s.value;t.call(e,i[0],i[1])}},On=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},An=F("HTMLFormElement"),Tn=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),We=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Cn=F("RegExp"),mt=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Y(n,(s,i)=>{let o;(o=t(s,i,e))!==!1&&(r[i]=o||s)}),Object.defineProperties(e,r)},xn=e=>{mt(e,(t,n)=>{if(T(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(T(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Pn=(e,t)=>{const n={},r=s=>{s.forEach(i=>{n[i]=!0})};return z(e)?r(e):r(String(e).split(t)),n},Nn=()=>{},Ln=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Dn(e){return!!(e&&T(e.append)&&e[ut]==="FormData"&&e[de])}const Fn=e=>{const t=new Array(10),n=(r,s)=>{if(Q(r)){if(t.indexOf(r)>=0)return;if(G(r))return r;if(!("toJSON"in r)){t[s]=r;const i=z(r)?[]:{};return Y(r,(o,c)=>{const f=n(o,s+1);!M(f)&&(i[c]=f)}),t[s]=void 0,i}}return r};return n(e,0)},Un=F("AsyncFunction"),Bn=e=>e&&(Q(e)||T(e))&&T(e.then)&&T(e.catch),yt=((e,t)=>e?setImmediate:t?((n,r)=>(q.addEventListener("message",({source:s,data:i})=>{s===q&&i===n&&r.length&&r.shift()()},!1),s=>{r.push(s),q.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",T(q.postMessage)),vn=typeof queueMicrotask<"u"?queueMicrotask.bind(q):typeof process<"u"&&process.nextTick||yt,kn=e=>e!=null&&T(e[de]),a={isArray:z,isArrayBuffer:ft,isBuffer:G,isFormData:ln,isArrayBufferView:Gt,isString:Qt,isNumber:dt,isBoolean:Yt,isObject:Q,isPlainObject:ae,isEmptyObject:Zt,isReadableStream:fn,isRequest:dn,isResponse:pn,isHeaders:hn,isUndefined:M,isDate:en,isFile:tn,isReactNativeBlob:nn,isReactNative:rn,isBlob:sn,isRegExp:Cn,isFunction:T,isStream:an,isURLSearchParams:un,isTypedArray:Sn,isFileList:on,forEach:Y,merge:Ae,extend:yn,trim:mn,stripBOM:bn,inherits:gn,toFlatObject:wn,kindOf:pe,kindOfTest:F,endsWith:En,toArray:Rn,forEachEntry:_n,matchAll:On,isHTMLForm:An,hasOwnProperty:We,hasOwnProp:We,reduceDescriptors:mt,freezeMethods:xn,toObjectSet:Pn,toCamelCase:Tn,noop:Nn,toFiniteNumber:Ln,findKey:pt,global:q,isContextDefined:ht,isSpecCompliantForm:Dn,toJSONObject:Fn,isAsyncFn:Un,isThenable:Bn,setImmediate:yt,asap:vn,isIterable:kn};let y=class bt extends Error{static from(t,n,r,s,i,o){const c=new bt(t.message,n||t.code,r,s,i);return c.cause=t,c.name=t.name,t.status!=null&&c.status==null&&(c.status=t.status),o&&Object.assign(c,o),c}constructor(t,n,r,s,i){super(t),Object.defineProperty(this,"message",{value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),s&&(this.request=s),i&&(this.response=i,this.status=i.status)}toJSON(){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:a.toJSONObject(this.config),code:this.code,status:this.status}}};y.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";y.ERR_BAD_OPTION="ERR_BAD_OPTION";y.ECONNABORTED="ECONNABORTED";y.ETIMEDOUT="ETIMEDOUT";y.ERR_NETWORK="ERR_NETWORK";y.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";y.ERR_DEPRECATED="ERR_DEPRECATED";y.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";y.ERR_BAD_REQUEST="ERR_BAD_REQUEST";y.ERR_CANCELED="ERR_CANCELED";y.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";y.ERR_INVALID_URL="ERR_INVALID_URL";const In=null;function Te(e){return a.isPlainObject(e)||a.isArray(e)}function gt(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function we(e,t,n){return e?e.concat(t).map(function(s,i){return s=gt(s),!n&&i?"["+s+"]":s}).join(n?".":""):t}function qn(e){return a.isArray(e)&&!e.some(Te)}const jn=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function me(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,h){return!a.isUndefined(h[m])});const r=n.metaTokens,s=n.visitor||l,i=n.dots,o=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function u(d){if(d===null)return"";if(a.isDate(d))return d.toISOString();if(a.isBoolean(d))return d.toString();if(!f&&a.isBlob(d))throw new y("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(d)||a.isTypedArray(d)?f&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function l(d,m,h){let E=d;if(a.isReactNative(t)&&a.isReactNativeBlob(d))return t.append(we(h,m,i),u(d)),!1;if(d&&!h&&typeof d=="object"){if(a.endsWith(m,"{}"))m=r?m:m.slice(0,-2),d=JSON.stringify(d);else if(a.isArray(d)&&qn(d)||(a.isFileList(d)||a.endsWith(m,"[]"))&&(E=a.toArray(d)))return m=gt(m),E.forEach(function(S,O){!(a.isUndefined(S)||S===null)&&t.append(o===!0?we([m],O,i):o===null?m:m+"[]",u(S))}),!1}return Te(d)?!0:(t.append(we(h,m,i),u(d)),!1)}const p=[],b=Object.assign(jn,{defaultVisitor:l,convertValue:u,isVisitable:Te});function R(d,m){if(!a.isUndefined(d)){if(p.indexOf(d)!==-1)throw Error("Circular reference detected in "+m.join("."));p.push(d),a.forEach(d,function(E,x){(!(a.isUndefined(E)||E===null)&&s.call(t,E,a.isString(x)?x.trim():x,m,b))===!0&&R(E,m?m.concat(x):[x])}),p.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return R(e),t}function Je(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Ne(e,t){this._pairs=[],e&&me(e,this,t)}const wt=Ne.prototype;wt.append=function(t,n){this._pairs.push([t,n])};wt.toString=function(t){const n=t?function(r){return t.call(this,r,Je)}:Je;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function $n(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Et(e,t,n){if(!t)return e;const r=n&&n.encode||$n,s=a.isFunction(n)?{serialize:n}:n,i=s&&s.serialize;let o;if(i?o=i(t,s):o=a.isURLSearchParams(t)?t.toString():new Ne(t,s).toString(r),o){const c=e.indexOf("#");c!==-1&&(e=e.slice(0,c)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Ke{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Le={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Hn=typeof URLSearchParams<"u"?URLSearchParams:Ne,Mn=typeof FormData<"u"?FormData:null,zn=typeof Blob<"u"?Blob:null,Vn={isBrowser:!0,classes:{URLSearchParams:Hn,FormData:Mn,Blob:zn},protocols:["http","https","file","blob","url","data"]},De=typeof window<"u"&&typeof document<"u",Ce=typeof navigator=="object"&&navigator||void 0,Wn=De&&(!Ce||["ReactNative","NativeScript","NS"].indexOf(Ce.product)<0),Jn=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Kn=De&&window.location.href||"http://localhost",Xn=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:De,hasStandardBrowserEnv:Wn,hasStandardBrowserWebWorkerEnv:Jn,navigator:Ce,origin:Kn},Symbol.toStringTag,{value:"Module"})),_={...Xn,...Vn};function Gn(e,t){return me(e,new _.classes.URLSearchParams,{visitor:function(n,r,s,i){return _.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function Qn(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Yn(e){const t={},n=Object.keys(e);let r;const s=n.length;let i;for(r=0;r<s;r++)i=n[r],t[i]=e[i];return t}function Rt(e){function t(n,r,s,i){let o=n[i++];if(o==="__proto__")return!0;const c=Number.isFinite(+o),f=i>=n.length;return o=!o&&a.isArray(s)?s.length:o,f?(a.hasOwnProp(s,o)?s[o]=[s[o],r]:s[o]=r,!c):((!s[o]||!a.isObject(s[o]))&&(s[o]=[]),t(n,r,s[o],i)&&a.isArray(s[o])&&(s[o]=Yn(s[o])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,s)=>{t(Qn(r),s,n,0)}),n}return null}function Zn(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Z={transitional:Le,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,i=a.isObject(t);if(i&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s?JSON.stringify(Rt(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Gn(t,this.formSerializer).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return me(c?{"files[]":t}:t,f&&new f,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),Zn(t)):t}],transformResponse:[function(t){const n=this.transitional||Z.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(r&&!this.responseType||s)){const o=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t,this.parseReviver)}catch(c){if(o)throw c.name==="SyntaxError"?y.from(c,y.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:_.classes.FormData,Blob:_.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{Z.headers[e]={}});const er=a.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"]),tr=e=>{const t={};let n,r,s;return e&&e.split(`
`).forEach(function(o){s=o.indexOf(":"),n=o.substring(0,s).trim().toLowerCase(),r=o.substring(s+1).trim(),!(!n||t[n]&&er[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Xe=Symbol("internals");function W(e){return e&&String(e).trim().toLowerCase()}function ce(e){return e===!1||e==null?e:a.isArray(e)?e.map(ce):String(e)}function nr(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const rr=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ee(e,t,n,r,s){if(a.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function sr(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function or(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,i,o){return this[r].call(this,t,s,i,o)},configurable:!0})})}let C=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function i(c,f,u){const l=W(f);if(!l)throw new Error("header name must be a non-empty string");const p=a.findKey(s,l);(!p||s[p]===void 0||u===!0||u===void 0&&s[p]!==!1)&&(s[p||f]=ce(c))}const o=(c,f)=>a.forEach(c,(u,l)=>i(u,l,f));if(a.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(a.isString(t)&&(t=t.trim())&&!rr(t))o(tr(t),n);else if(a.isObject(t)&&a.isIterable(t)){let c={},f,u;for(const l of t){if(!a.isArray(l))throw TypeError("Object iterator must return a key-value pair");c[u=l[0]]=(f=c[u])?a.isArray(f)?[...f,l[1]]:[f,l[1]]:l[1]}o(c,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=W(t),t){const r=a.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return nr(s);if(a.isFunction(n))return n.call(this,s,r);if(a.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=W(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Ee(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function i(o){if(o=W(o),o){const c=a.findKey(r,o);c&&(!n||Ee(r,r[c],c,n))&&(delete r[c],s=!0)}}return a.isArray(t)?t.forEach(i):i(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const i=n[r];(!t||Ee(this,this[i],i,t,!0))&&(delete this[i],s=!0)}return s}normalize(t){const n=this,r={};return a.forEach(this,(s,i)=>{const o=a.findKey(r,i);if(o){n[o]=ce(s),delete n[i];return}const c=t?sr(i):String(i).trim();c!==i&&delete n[i],n[c]=ce(s),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&a.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[Xe]=this[Xe]={accessors:{}}).accessors,s=this.prototype;function i(o){const c=W(o);r[c]||(or(s,o),r[c]=!0)}return a.isArray(t)?t.forEach(i):i(t),this}};C.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(C.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});a.freezeMethods(C);function Re(e,t){const n=this||Z,r=t||n,s=C.from(r.headers);let i=r.data;return a.forEach(e,function(c){i=c.call(n,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function St(e){return!!(e&&e.__CANCEL__)}let ee=class extends y{constructor(t,n,r){super(t??"canceled",y.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function _t(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new y("Request failed with status code "+n.status,[y.ERR_BAD_REQUEST,y.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function ir(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ar(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,i=0,o;return t=t!==void 0?t:1e3,function(f){const u=Date.now(),l=r[i];o||(o=u),n[s]=f,r[s]=u;let p=i,b=0;for(;p!==s;)b+=n[p++],p=p%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),u-o<t)return;const R=l&&u-l;return R?Math.round(b*1e3/R):void 0}}function cr(e,t){let n=0,r=1e3/t,s,i;const o=(u,l=Date.now())=>{n=l,s=null,i&&(clearTimeout(i),i=null),e(...u)};return[(...u)=>{const l=Date.now(),p=l-n;p>=r?o(u,l):(s=u,i||(i=setTimeout(()=>{i=null,o(s)},r-p)))},()=>s&&o(s)]}const fe=(e,t,n=3)=>{let r=0;const s=ar(50,250);return cr(i=>{const o=i.loaded,c=i.lengthComputable?i.total:void 0,f=o-r,u=s(f),l=o<=c;r=o;const p={loaded:o,total:c,progress:c?o/c:void 0,bytes:f,rate:u||void 0,estimated:u&&c&&l?(c-o)/u:void 0,event:i,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(p)},n)},Ge=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Qe=e=>(...t)=>a.asap(()=>e(...t)),lr=_.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,_.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(_.origin),_.navigator&&/(msie|trident)/i.test(_.navigator.userAgent)):()=>!0,ur=_.hasStandardBrowserEnv?{write(e,t,n,r,s,i,o){if(typeof document>"u")return;const c=[`${e}=${encodeURIComponent(t)}`];a.isNumber(n)&&c.push(`expires=${new Date(n).toUTCString()}`),a.isString(r)&&c.push(`path=${r}`),a.isString(s)&&c.push(`domain=${s}`),i===!0&&c.push("secure"),a.isString(o)&&c.push(`SameSite=${o}`),document.cookie=c.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function fr(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function dr(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ot(e,t,n){let r=!fr(t);return e&&(r||n==!1)?dr(e,t):t}const Ye=e=>e instanceof C?{...e}:e;function $(e,t){t=t||{};const n={};function r(u,l,p,b){return a.isPlainObject(u)&&a.isPlainObject(l)?a.merge.call({caseless:b},u,l):a.isPlainObject(l)?a.merge({},l):a.isArray(l)?l.slice():l}function s(u,l,p,b){if(a.isUndefined(l)){if(!a.isUndefined(u))return r(void 0,u,p,b)}else return r(u,l,p,b)}function i(u,l){if(!a.isUndefined(l))return r(void 0,l)}function o(u,l){if(a.isUndefined(l)){if(!a.isUndefined(u))return r(void 0,u)}else return r(void 0,l)}function c(u,l,p){if(p in t)return r(u,l);if(p in e)return r(void 0,u)}const f={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:c,headers:(u,l,p)=>s(Ye(u),Ye(l),p,!0)};return a.forEach(Object.keys({...e,...t}),function(l){if(l==="__proto__"||l==="constructor"||l==="prototype")return;const p=a.hasOwnProp(f,l)?f[l]:s,b=p(e[l],t[l],l);a.isUndefined(b)&&p!==c||(n[l]=b)}),n}const At=e=>{const t=$({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:i,headers:o,auth:c}=t;if(t.headers=o=C.from(o),t.url=Et(Ot(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&o.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),a.isFormData(n)){if(_.hasStandardBrowserEnv||_.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(a.isFunction(n.getHeaders)){const f=n.getHeaders(),u=["content-type","content-length"];Object.entries(f).forEach(([l,p])=>{u.includes(l.toLowerCase())&&o.set(l,p)})}}if(_.hasStandardBrowserEnv&&(r&&a.isFunction(r)&&(r=r(t)),r||r!==!1&&lr(t.url))){const f=s&&i&&ur.read(i);f&&o.set(s,f)}return t},pr=typeof XMLHttpRequest<"u",hr=pr&&function(e){return new Promise(function(n,r){const s=At(e);let i=s.data;const o=C.from(s.headers).normalize();let{responseType:c,onUploadProgress:f,onDownloadProgress:u}=s,l,p,b,R,d;function m(){R&&R(),d&&d(),s.cancelToken&&s.cancelToken.unsubscribe(l),s.signal&&s.signal.removeEventListener("abort",l)}let h=new XMLHttpRequest;h.open(s.method.toUpperCase(),s.url,!0),h.timeout=s.timeout;function E(){if(!h)return;const S=C.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),D={data:!c||c==="text"||c==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:S,config:e,request:h};_t(function(P){n(P),m()},function(P){r(P),m()},D),h=null}"onloadend"in h?h.onloadend=E:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(E)},h.onabort=function(){h&&(r(new y("Request aborted",y.ECONNABORTED,e,h)),h=null)},h.onerror=function(O){const D=O&&O.message?O.message:"Network Error",v=new y(D,y.ERR_NETWORK,e,h);v.event=O||null,r(v),h=null},h.ontimeout=function(){let O=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const D=s.transitional||Le;s.timeoutErrorMessage&&(O=s.timeoutErrorMessage),r(new y(O,D.clarifyTimeoutError?y.ETIMEDOUT:y.ECONNABORTED,e,h)),h=null},i===void 0&&o.setContentType(null),"setRequestHeader"in h&&a.forEach(o.toJSON(),function(O,D){h.setRequestHeader(D,O)}),a.isUndefined(s.withCredentials)||(h.withCredentials=!!s.withCredentials),c&&c!=="json"&&(h.responseType=s.responseType),u&&([b,d]=fe(u,!0),h.addEventListener("progress",b)),f&&h.upload&&([p,R]=fe(f),h.upload.addEventListener("progress",p),h.upload.addEventListener("loadend",R)),(s.cancelToken||s.signal)&&(l=S=>{h&&(r(!S||S.type?new ee(null,e,h):S),h.abort(),h=null)},s.cancelToken&&s.cancelToken.subscribe(l),s.signal&&(s.signal.aborted?l():s.signal.addEventListener("abort",l)));const x=ir(s.url);if(x&&_.protocols.indexOf(x)===-1){r(new y("Unsupported protocol "+x+":",y.ERR_BAD_REQUEST,e));return}h.send(i||null)})},mr=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const i=function(u){if(!s){s=!0,c();const l=u instanceof Error?u:this.reason;r.abort(l instanceof y?l:new ee(l instanceof Error?l.message:l))}};let o=t&&setTimeout(()=>{o=null,i(new y(`timeout of ${t}ms exceeded`,y.ETIMEDOUT))},t);const c=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(i):u.removeEventListener("abort",i)}),e=null)};e.forEach(u=>u.addEventListener("abort",i));const{signal:f}=r;return f.unsubscribe=()=>a.asap(c),f}},yr=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},br=async function*(e,t){for await(const n of gr(e))yield*yr(n,t)},gr=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Ze=(e,t,n,r)=>{const s=br(e,t);let i=0,o,c=f=>{o||(o=!0,r&&r(f))};return new ReadableStream({async pull(f){try{const{done:u,value:l}=await s.next();if(u){c(),f.close();return}let p=l.byteLength;if(n){let b=i+=p;n(b)}f.enqueue(new Uint8Array(l))}catch(u){throw c(u),u}},cancel(f){return c(f),s.return()}},{highWaterMark:2})},et=64*1024,{isFunction:ie}=a,wr=(({Request:e,Response:t})=>({Request:e,Response:t}))(a.global),{ReadableStream:tt,TextEncoder:nt}=a.global,rt=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Er=e=>{e=a.merge.call({skipUndefined:!0},wr,e);const{fetch:t,Request:n,Response:r}=e,s=t?ie(t):typeof fetch=="function",i=ie(n),o=ie(r);if(!s)return!1;const c=s&&ie(tt),f=s&&(typeof nt=="function"?(d=>m=>d.encode(m))(new nt):async d=>new Uint8Array(await new n(d).arrayBuffer())),u=i&&c&&rt(()=>{let d=!1;const m=new n(_.origin,{body:new tt,method:"POST",get duplex(){return d=!0,"half"}}).headers.has("Content-Type");return d&&!m}),l=o&&c&&rt(()=>a.isReadableStream(new r("").body)),p={stream:l&&(d=>d.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(d=>{!p[d]&&(p[d]=(m,h)=>{let E=m&&m[d];if(E)return E.call(m);throw new y(`Response type '${d}' is not supported`,y.ERR_NOT_SUPPORT,h)})});const b=async d=>{if(d==null)return 0;if(a.isBlob(d))return d.size;if(a.isSpecCompliantForm(d))return(await new n(_.origin,{method:"POST",body:d}).arrayBuffer()).byteLength;if(a.isArrayBufferView(d)||a.isArrayBuffer(d))return d.byteLength;if(a.isURLSearchParams(d)&&(d=d+""),a.isString(d))return(await f(d)).byteLength},R=async(d,m)=>{const h=a.toFiniteNumber(d.getContentLength());return h??b(m)};return async d=>{let{url:m,method:h,data:E,signal:x,cancelToken:S,timeout:O,onDownloadProgress:D,onUploadProgress:v,responseType:P,headers:be,withCredentials:ne="same-origin",fetchOptions:Be}=At(d),ve=t||fetch;P=P?(P+"").toLowerCase():"text";let re=mr([x,S&&S.toAbortSignal()],O),V=null;const k=re&&re.unsubscribe&&(()=>{re.unsubscribe()});let ke;try{if(v&&u&&h!=="get"&&h!=="head"&&(ke=await R(be,E))!==0){let B=new n(m,{method:"POST",body:E,duplex:"half"}),H;if(a.isFormData(E)&&(H=B.headers.get("content-type"))&&be.setContentType(H),B.body){const[ge,se]=Ge(ke,fe(Qe(v)));E=Ze(B.body,et,ge,se)}}a.isString(ne)||(ne=ne?"include":"omit");const A=i&&"credentials"in n.prototype,Ie={...Be,signal:re,method:h.toUpperCase(),headers:be.normalize().toJSON(),body:E,duplex:"half",credentials:A?ne:void 0};V=i&&new n(m,Ie);let U=await(i?ve(V,Be):ve(m,Ie));const qe=l&&(P==="stream"||P==="response");if(l&&(D||qe&&k)){const B={};["status","statusText","headers"].forEach(je=>{B[je]=U[je]});const H=a.toFiniteNumber(U.headers.get("content-length")),[ge,se]=D&&Ge(H,fe(Qe(D),!0))||[];U=new r(Ze(U.body,et,ge,()=>{se&&se(),k&&k()}),B)}P=P||"text";let Ft=await p[a.findKey(p,P)||"text"](U,d);return!qe&&k&&k(),await new Promise((B,H)=>{_t(B,H,{data:Ft,headers:C.from(U.headers),status:U.status,statusText:U.statusText,config:d,request:V})})}catch(A){throw k&&k(),A&&A.name==="TypeError"&&/Load failed|fetch/i.test(A.message)?Object.assign(new y("Network Error",y.ERR_NETWORK,d,V,A&&A.response),{cause:A.cause||A}):y.from(A,A&&A.code,d,V,A&&A.response)}}},Rr=new Map,Tt=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:s}=t,i=[r,s,n];let o=i.length,c=o,f,u,l=Rr;for(;c--;)f=i[c],u=l.get(f),u===void 0&&l.set(f,u=c?new Map:Er(t)),l=u;return u};Tt();const Fe={http:In,xhr:hr,fetch:{get:Tt}};a.forEach(Fe,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const st=e=>`- ${e}`,Sr=e=>a.isFunction(e)||e===null||e===!1;function _r(e,t){e=a.isArray(e)?e:[e];const{length:n}=e;let r,s;const i={};for(let o=0;o<n;o++){r=e[o];let c;if(s=r,!Sr(r)&&(s=Fe[(c=String(r)).toLowerCase()],s===void 0))throw new y(`Unknown adapter '${c}'`);if(s&&(a.isFunction(s)||(s=s.get(t))))break;i[c||"#"+o]=s}if(!s){const o=Object.entries(i).map(([f,u])=>`adapter ${f} `+(u===!1?"is not supported by the environment":"is not available in the build"));let c=n?o.length>1?`since :
`+o.map(st).join(`
`):" "+st(o[0]):"as no adapter specified";throw new y("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return s}const Ct={getAdapter:_r,adapters:Fe};function Se(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ee(null,e)}function ot(e){return Se(e),e.headers=C.from(e.headers),e.data=Re.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ct.getAdapter(e.adapter||Z.adapter,e)(e).then(function(r){return Se(e),r.data=Re.call(e,e.transformResponse,r),r.headers=C.from(r.headers),r},function(r){return St(r)||(Se(e),r&&r.response&&(r.response.data=Re.call(e,e.transformResponse,r.response),r.response.headers=C.from(r.response.headers))),Promise.reject(r)})}const xt="1.13.6",ye={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ye[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const it={};ye.transitional=function(t,n,r){function s(i,o){return"[Axios v"+xt+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,c)=>{if(t===!1)throw new y(s(o," has been removed"+(n?" in "+n:"")),y.ERR_DEPRECATED);return n&&!it[o]&&(it[o]=!0,console.warn(s(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,c):!0}};ye.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Or(e,t,n){if(typeof e!="object")throw new y("options must be an object",y.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const i=r[s],o=t[i];if(o){const c=e[i],f=c===void 0||o(c,i,e);if(f!==!0)throw new y("option "+i+" must be "+f,y.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new y("Unknown option "+i,y.ERR_BAD_OPTION)}}const le={assertOptions:Or,validators:ye},N=le.validators;let j=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Ke,response:new Ke}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const i=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=$(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:i}=n;r!==void 0&&le.assertOptions(r,{silentJSONParsing:N.transitional(N.boolean),forcedJSONParsing:N.transitional(N.boolean),clarifyTimeoutError:N.transitional(N.boolean),legacyInterceptorReqResOrdering:N.transitional(N.boolean)},!1),s!=null&&(a.isFunction(s)?n.paramsSerializer={serialize:s}:le.assertOptions(s,{encode:N.function,serialize:N.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),le.assertOptions(n,{baseUrl:N.spelling("baseURL"),withXsrfToken:N.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&a.merge(i.common,i[n.method]);i&&a.forEach(["delete","get","head","post","put","patch","common"],d=>{delete i[d]}),n.headers=C.concat(o,i);const c=[];let f=!0;this.interceptors.request.forEach(function(m){if(typeof m.runWhen=="function"&&m.runWhen(n)===!1)return;f=f&&m.synchronous;const h=n.transitional||Le;h&&h.legacyInterceptorReqResOrdering?c.unshift(m.fulfilled,m.rejected):c.push(m.fulfilled,m.rejected)});const u=[];this.interceptors.response.forEach(function(m){u.push(m.fulfilled,m.rejected)});let l,p=0,b;if(!f){const d=[ot.bind(this),void 0];for(d.unshift(...c),d.push(...u),b=d.length,l=Promise.resolve(n);p<b;)l=l.then(d[p++],d[p++]);return l}b=c.length;let R=n;for(;p<b;){const d=c[p++],m=c[p++];try{R=d(R)}catch(h){m.call(this,h);break}}try{l=ot.call(this,R)}catch(d){return Promise.reject(d)}for(p=0,b=u.length;p<b;)l=l.then(u[p++],u[p++]);return l}getUri(t){t=$(this.defaults,t);const n=Ot(t.baseURL,t.url,t.allowAbsoluteUrls);return Et(n,t.params,t.paramsSerializer)}};a.forEach(["delete","get","head","options"],function(t){j.prototype[t]=function(n,r){return this.request($(r||{},{method:t,url:n,data:(r||{}).data}))}});a.forEach(["post","put","patch"],function(t){function n(r){return function(i,o,c){return this.request($(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}j.prototype[t]=n(),j.prototype[t+"Form"]=n(!0)});let Ar=class Pt{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(s=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](s);r._listeners=null}),this.promise.then=s=>{let i;const o=new Promise(c=>{r.subscribe(c),i=c}).then(s);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,c){r.reason||(r.reason=new ee(i,o,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Pt(function(s){t=s}),cancel:t}}};function Tr(e){return function(n){return e.apply(null,n)}}function Cr(e){return a.isObject(e)&&e.isAxiosError===!0}const xe={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(xe).forEach(([e,t])=>{xe[t]=e});function Nt(e){const t=new j(e),n=lt(j.prototype.request,t);return a.extend(n,j.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Nt($(e,s))},n}const w=Nt(Z);w.Axios=j;w.CanceledError=ee;w.CancelToken=Ar;w.isCancel=St;w.VERSION=xt;w.toFormData=me;w.AxiosError=y;w.Cancel=w.CanceledError;w.all=function(t){return Promise.all(t)};w.spread=Tr;w.isAxiosError=Cr;w.mergeConfig=$;w.AxiosHeaders=C;w.formToJSON=e=>Rt(a.isHTMLForm(e)?new FormData(e):e);w.getAdapter=Ct.getAdapter;w.HttpStatusCode=xe;w.default=w;const{Axios:Gr,AxiosError:Qr,CanceledError:Yr,isCancel:Zr,CancelToken:es,VERSION:ts,all:ns,Cancel:rs,isAxiosError:ss,spread:os,toFormData:is,AxiosHeaders:as,HttpStatusCode:cs,formToJSON:ls,getAdapter:us,mergeConfig:fs}=w,g=w.create({baseURL:"/api",timeout:1e4,withCredentials:!0});g.interceptors.response.use(e=>e.data,e=>{var i,o,c,f;const t=(i=e.response)==null?void 0:i.status,n=((o=e.config)==null?void 0:o.url)||"",r=n.includes("/auth/login")||n.includes("/auth/logout")||n.includes("/auth/me");if(t===401&&!r&&window.location.pathname!=="/login"){const u=`${window.location.pathname}${window.location.search}`;window.location.href=`/login?redirect=${encodeURIComponent(u)}`}const s=((f=(c=e.response)==null?void 0:c.data)==null?void 0:f.error)||"请求失败";return Promise.reject(new Error(s))});const _e={login:(e,t)=>g.post("/auth/login",{username:e,password:t}),me:()=>g.get("/auth/me"),logout:()=>g.post("/auth/logout")},ds={getByDate:e=>g.get("/records",{params:{date:e}}),getByMonth:e=>g.get("/records",{params:{month:e}}),getByRange:(e,t)=>g.get("/records",{params:{start:e,end:t}}),create:e=>g.post("/records",e),update:(e,t)=>g.put(`/records/${e}`,t),delete:e=>g.delete(`/records/${e}`)},ps={getAll:e=>g.get("/categories",{params:e?{type:e}:{}}),create:e=>g.post("/categories",e),update:(e,t)=>g.put(`/categories/${e}`,t),delete:e=>g.delete(`/categories/${e}`)},hs={daily:e=>g.get("/statistics/daily",{params:{date:e}}),weekly:e=>g.get("/statistics/weekly",{params:{date:e}}),monthly:e=>g.get("/statistics/monthly",{params:{month:e}}),yearly:e=>g.get("/statistics/yearly",{params:{year:e}}),balance:()=>g.get("/statistics/balance"),trend:(e,t)=>g.get("/statistics/trend",{params:{start:e,end:t}})},ms={get:()=>g.get("/balance"),update:e=>g.put("/balance",{initial_balance:e}),updateUser:(e,t)=>g.put(`/balance/user/${encodeURIComponent(e)}`,{initial_balance:t})},ys={getAll:()=>g.get("/users"),create:e=>g.post("/users",{name:e}),rename:(e,t)=>g.put(`/users/${e}`,{name:t}),delete:e=>g.delete(`/users/${e}`)},Ue=Ut("auth",()=>{const e=$e(null),t=$e(!1);let n=null;const r=ue(()=>!!e.value),s=ue(()=>{var f;return((f=e.value)==null?void 0:f.username)||""});async function i(){return t.value?e.value:n||(n=(async()=>{try{const f=await _e.me();e.value=f.user}catch{e.value=null}finally{t.value=!0,n=null}return e.value})(),n)}async function o(f,u){const l=await _e.login(f,u);return e.value=l.user,t.value=!0,l.user}async function c(){try{await _e.logout()}finally{e.value=null,t.value=!0}}return{user:e,initialized:t,isAuthenticated:r,username:s,initialize:i,login:o,logout:c}}),Lt=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},xr={class:"navbar"},Pr={class:"navbar-inner"},Nr={class:"navbar-brand"},Lr={class:"logo-box"},Dr={class:"user-chip"},Fr={class:"nav-links"},Ur={class:"nav-icon-wrapper"},Br={class:"nav-label"},vr={class:"nav-icon-wrapper"},kr={__name:"Navbar",setup(e){const t=Bt(),n=Ue(),r=[{path:"/",label:"首页",icon:"House"},{path:"/input",label:"记账",icon:"Plus"},{path:"/calendar",label:"日历",icon:"Calendar"},{path:"/statistics",label:"分析",icon:"PieChart"}];async function s(){await n.logout(),t.push("/login")}return(i,o)=>{const c=K("Wallet"),f=K("el-icon"),u=K("router-link"),l=K("SwitchButton");return X(),Oe("nav",xr,[L("div",Pr,[L("div",Nr,[L("div",Lr,[I(f,{size:20},{default:oe(()=>[I(c)]),_:1})]),o[0]||(o[0]=L("span",{class:"brand-text"},"记账助手",-1)),L("span",Dr,He(vt(n).username),1)]),L("div",Fr,[(X(),Oe(kt,null,It(r,p=>I(u,{key:p.path,to:p.path,class:"nav-link","active-class":"nav-link-active"},{default:oe(()=>[L("div",Ur,[I(f,null,{default:oe(()=>[(X(),ct(qt(p.icon)))]),_:2},1024)]),L("span",Br,He(p.label),1)]),_:2},1032,["to"])),64)),L("button",{type:"button",class:"nav-link nav-action",onClick:s},[L("div",vr,[I(f,null,{default:oe(()=>[I(l)]),_:1})]),o[1]||(o[1]=L("span",{class:"nav-label"},"退出",-1))])])])])}}},Ir=Lt(kr,[["__scopeId","data-v-5cd24322"]]),qr={__name:"App",setup(e){const t=$t(),n=Ue(),r=ue(()=>t.meta.layout==="auth"),s=ue(()=>n.isAuthenticated&&!r.value);return(i,o)=>{const c=K("router-view");return X(),Oe("div",{class:Me(["app-container",{"auth-layout":r.value}])},[s.value?(X(),ct(Ir,{key:0})):jt("",!0),L("main",{class:Me(["main-content",{"auth-main":r.value}])},[I(c)],2)],2)}}},jr=Lt(qr,[["__scopeId","data-v-267a26ac"]]),$r="modulepreload",Hr=function(e){return"/"+e},at={},J=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),c=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));s=Promise.allSettled(n.map(f=>{if(f=Hr(f),f in at)return;at[f]=!0;const u=f.endsWith(".css"),l=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${l}`))return;const p=document.createElement("link");if(p.rel=u?"stylesheet":$r,u||(p.as="script"),p.crossOrigin="",p.href=f,c&&p.setAttribute("nonce",c),document.head.appendChild(p),u)return new Promise((b,R)=>{p.addEventListener("load",b),p.addEventListener("error",()=>R(new Error(`Unable to preload CSS for ${f}`)))})}))}function i(o){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=o,window.dispatchEvent(c),!c.defaultPrevented)throw o}return s.then(o=>{for(const c of o||[])c.status==="rejected"&&i(c.reason);return t().catch(i)})};function Mr(e){return typeof e=="string"&&e.startsWith("/")&&!e.startsWith("//")?e:"/"}const zr=[{path:"/login",name:"Login",component:()=>J(()=>import("./Login-DdLftJUa.js"),__vite__mapDeps([0,1,2,3])),meta:{title:"登录",publicOnly:!0,layout:"auth",requiresAuth:!1}},{path:"/",name:"Dashboard",component:()=>J(()=>import("./Dashboard-BMzKp874.js"),__vite__mapDeps([4,1,5,6,7,8,9,2,10])),meta:{title:"总览",requiresAuth:!0}},{path:"/input",name:"DailyInput",component:()=>J(()=>import("./DailyInput-CC7D6jO9.js"),__vite__mapDeps([11,1,2,8,9,12])),meta:{title:"记账",requiresAuth:!0}},{path:"/statistics",name:"Statistics",component:()=>J(()=>import("./Statistics-BMDw4pEJ.js"),__vite__mapDeps([13,6,2,1,5,7,9,14])),meta:{title:"统计",requiresAuth:!0}},{path:"/calendar",name:"Calendar",component:()=>J(()=>import("./CalendarView-W0Yungyo.js"),__vite__mapDeps([15,6,1,2,16])),meta:{title:"日历",requiresAuth:!0}}],Dt=Ht({history:Mt(),routes:zr});Dt.beforeEach(async e=>{document.title=`${e.meta.title||"记账"} - 记账助手`;const t=Ue();if(t.initialized||await t.initialize(),e.meta.publicOnly&&t.isAuthenticated)return Mr(e.query.redirect);if(e.meta.requiresAuth&&!t.isAuthenticated)return{path:"/login",query:{redirect:e.fullPath}}});const te=zt(jr);te.use(Vt());te.use(Dt);te.use(Wt,{locale:Kt});for(const[e,t]of Object.entries(Jt))te.component(e,t);te.mount("#app");export{Lt as _,ys as a,ms as b,ps as c,ds as r,hs as s,Ue as u};