index-fQv2WpIJ.js 46 KB

123456789
  1. import{z as He}from"./index-BNtoQzpv.js";function nt(e,t){return function(){return e.apply(t,arguments)}}const{toString:Tt}=Object.prototype,{getPrototypeOf:pe}=Object,{iterator:he,toStringTag:rt}=Symbol,me=(e=>t=>{const n=Tt.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),L=e=>(e=e.toLowerCase(),t=>me(t)===e),ge=e=>t=>typeof t===e,{isArray:X}=Array,K=ge("undefined");function ee(e){return e!==null&&!K(e)&&e.constructor!==null&&!K(e.constructor)&&P(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const st=L("ArrayBuffer");function _t(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&st(e.buffer),t}const Ct=ge("string"),P=ge("function"),ot=ge("number"),te=e=>e!==null&&typeof e=="object",xt=e=>e===!0||e===!1,le=e=>{if(me(e)!=="object")return!1;const t=pe(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(rt in e)&&!(he in e)},Pt=e=>{if(!te(e)||ee(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Nt=L("Date"),Dt=L("File"),kt=e=>!!(e&&typeof e.uri<"u"),Lt=e=>e&&typeof e.getParts<"u",Ft=L("Blob"),Ut=L("FileList"),Bt=e=>te(e)&&P(e.pipe);function $t(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Me=$t(),ze=typeof Me.FormData<"u"?Me.FormData:void 0,jt=e=>{if(!e)return!1;if(ze&&e instanceof ze)return!0;const t=pe(e);if(!t||t===Object.prototype||!P(e.append))return!1;const n=me(e);return n==="formdata"||n==="object"&&P(e.toString)&&e.toString()==="[object FormData]"},qt=L("URLSearchParams"),[It,Ht,Mt,zt]=["ReadableStream","Request","Response","Headers"].map(L),vt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ne(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),X(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{if(ee(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let c;for(r=0;r<i;r++)c=o[r],t.call(null,e[c],c,e)}}function it(e,t){if(ee(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 z=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,at=e=>!K(e)&&e!==z;function _e(...e){const{caseless:t,skipUndefined:n}=at(this)&&this||{},r={},s=(o,i)=>{if(i==="__proto__"||i==="constructor"||i==="prototype")return;const c=t&&it(r,i)||i,f=Ce(r,c)?r[c]:void 0;le(f)&&le(o)?r[c]=_e(f,o):le(o)?r[c]=_e({},o):X(o)?r[c]=o.slice():(!n||!K(o))&&(r[c]=o)};for(let o=0,i=e.length;o<i;o++)e[o]&&ne(e[o],s);return r}const Jt=(e,t,n,{allOwnKeys:r}={})=>(ne(t,(s,o)=>{n&&P(s)?Object.defineProperty(e,o,{__proto__:null,value:nt(s,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{__proto__:null,value:s,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),Vt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Wt=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},Kt=(e,t,n,r)=>{let s,o,i;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&pe(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Xt=(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},Gt=e=>{if(!e)return null;if(X(e))return e;let t=e.length;if(!ot(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Qt=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&pe(Uint8Array)),Zt=(e,t)=>{const r=(e&&e[he]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},Yt=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},en=L("HTMLFormElement"),tn=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Ce=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),nn=L("RegExp"),ct=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ne(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},rn=e=>{ct(e,(t,n)=>{if(P(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(P(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+"'")})}})},sn=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return X(e)?r(e):r(String(e).split(t)),n},on=()=>{},an=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function cn(e){return!!(e&&P(e.append)&&e[rt]==="FormData"&&e[he])}const ln=e=>{const t=new Array(10),n=(r,s)=>{if(te(r)){if(t.indexOf(r)>=0)return;if(ee(r))return r;if(!("toJSON"in r)){t[s]=r;const o=X(r)?[]:{};return ne(r,(i,c)=>{const f=n(i,s+1);!K(f)&&(o[c]=f)}),t[s]=void 0,o}}return r};return n(e,0)},un=L("AsyncFunction"),fn=e=>e&&(te(e)||P(e))&&P(e.then)&&P(e.catch),lt=((e,t)=>e?setImmediate:t?((n,r)=>(z.addEventListener("message",({source:s,data:o})=>{s===z&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),z.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",P(z.postMessage)),dn=typeof queueMicrotask<"u"?queueMicrotask.bind(z):typeof process<"u"&&process.nextTick||lt,pn=e=>e!=null&&P(e[he]),a={isArray:X,isArrayBuffer:st,isBuffer:ee,isFormData:jt,isArrayBufferView:_t,isString:Ct,isNumber:ot,isBoolean:xt,isObject:te,isPlainObject:le,isEmptyObject:Pt,isReadableStream:It,isRequest:Ht,isResponse:Mt,isHeaders:zt,isUndefined:K,isDate:Nt,isFile:Dt,isReactNativeBlob:kt,isReactNative:Lt,isBlob:Ft,isRegExp:nn,isFunction:P,isStream:Bt,isURLSearchParams:qt,isTypedArray:Qt,isFileList:Ut,forEach:ne,merge:_e,extend:Jt,trim:vt,stripBOM:Vt,inherits:Wt,toFlatObject:Kt,kindOf:me,kindOfTest:L,endsWith:Xt,toArray:Gt,forEachEntry:Zt,matchAll:Yt,isHTMLForm:en,hasOwnProperty:Ce,hasOwnProp:Ce,reduceDescriptors:ct,freezeMethods:rn,toObjectSet:sn,toCamelCase:tn,noop:on,toFiniteNumber:an,findKey:it,global:z,isContextDefined:at,isSpecCompliantForm:cn,toJSONObject:ln,isAsyncFn:un,isThenable:fn,setImmediate:lt,asap:dn,isIterable:pn},hn=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"]),mn=e=>{const t={};let n,r,s;return e&&e.split(`
  2. `).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&hn[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},ve=Symbol("internals"),gn=/[^\x09\x20-\x7E\x80-\xFF]/g;function yn(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}function Y(e){return e&&String(e).trim().toLowerCase()}function bn(e){return yn(e.replace(gn,""))}function ue(e){return e===!1||e==null?e:a.isArray(e)?e.map(ue):bn(String(e))}function wn(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 En=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Oe(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 Rn(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function On(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}let x=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(c,f,u){const l=Y(f);if(!l)throw new Error("header name must be a non-empty string");const y=a.findKey(s,l);(!y||s[y]===void 0||u===!0||u===void 0&&s[y]!==!1)&&(s[y||f]=ue(c))}const i=(c,f)=>a.forEach(c,(u,l)=>o(u,l,f));if(a.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(a.isString(t)&&(t=t.trim())&&!En(t))i(mn(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]}i(c,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=Y(t),t){const r=a.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return wn(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=Y(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Oe(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=Y(i),i){const c=a.findKey(r,i);c&&(!n||Oe(r,r[c],c,n))&&(delete r[c],s=!0)}}return a.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||Oe(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return a.forEach(this,(s,o)=>{const i=a.findKey(r,o);if(i){n[i]=ue(s),delete n[o];return}const c=t?Rn(o):String(o).trim();c!==o&&delete n[o],n[c]=ue(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(`
  3. `)}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[ve]=this[ve]={accessors:{}}).accessors,s=this.prototype;function o(i){const c=Y(i);r[c]||(On(s,i),r[c]=!0)}return a.isArray(t)?t.forEach(o):o(t),this}};x.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(x.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});a.freezeMethods(x);const Sn="[REDACTED ****]";function An(e){if(a.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(a.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function Tn(e,t){const n=new Set(t.map(o=>String(o).toLowerCase())),r=[],s=o=>{if(o===null||typeof o!="object"||a.isBuffer(o))return o;if(r.indexOf(o)!==-1)return;o instanceof x&&(o=o.toJSON()),r.push(o);let i;if(a.isArray(o))i=[],o.forEach((c,f)=>{const u=s(c);a.isUndefined(u)||(i[f]=u)});else{if(!a.isPlainObject(o)&&An(o))return r.pop(),o;i=Object.create(null);for(const[c,f]of Object.entries(o)){const u=n.has(c.toLowerCase())?Sn:s(f);a.isUndefined(u)||(i[c]=u)}}return r.pop(),i};return s(e)}let h=class ut extends Error{static from(t,n,r,s,o,i){const c=new ut(t.message,n||t.code,r,s,o);return c.cause=t,c.name=t.name,t.status!=null&&c.status==null&&(c.status=t.status),i&&Object.assign(c,i),c}constructor(t,n,r,s,o){super(t),Object.defineProperty(this,"message",{__proto__:null,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),o&&(this.response=o,this.status=o.status)}toJSON(){const t=this.config,n=t&&a.hasOwnProp(t,"redact")?t.redact:void 0,r=a.isArray(n)&&n.length>0?Tn(t,n):a.toJSONObject(t);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:r,code:this.code,status:this.status}}};h.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";h.ERR_BAD_OPTION="ERR_BAD_OPTION";h.ECONNABORTED="ECONNABORTED";h.ETIMEDOUT="ETIMEDOUT";h.ECONNREFUSED="ECONNREFUSED";h.ERR_NETWORK="ERR_NETWORK";h.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";h.ERR_DEPRECATED="ERR_DEPRECATED";h.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";h.ERR_BAD_REQUEST="ERR_BAD_REQUEST";h.ERR_CANCELED="ERR_CANCELED";h.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";h.ERR_INVALID_URL="ERR_INVALID_URL";h.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const _n=null;function xe(e){return a.isPlainObject(e)||a.isArray(e)}function ft(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function Se(e,t,n){return e?e.concat(t).map(function(s,o){return s=ft(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function Cn(e){return a.isArray(e)&&!e.some(xe)}const xn=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function ye(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(d,g){return!a.isUndefined(g[d])});const r=n.metaTokens,s=n.visitor||y,o=n.dots,i=n.indexes,c=n.Blob||typeof Blob<"u"&&Blob,f=n.maxDepth===void 0?100:n.maxDepth,u=c&&a.isSpecCompliantForm(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function l(m){if(m===null)return"";if(a.isDate(m))return m.toISOString();if(a.isBoolean(m))return m.toString();if(!u&&a.isBlob(m))throw new h("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(m)||a.isTypedArray(m)?u&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function y(m,d,g){let S=m;if(a.isReactNative(t)&&a.isReactNativeBlob(m))return t.append(Se(g,d,o),l(m)),!1;if(m&&!g&&typeof m=="object"){if(a.endsWith(d,"{}"))d=r?d:d.slice(0,-2),m=JSON.stringify(m);else if(a.isArray(m)&&Cn(m)||(a.isFileList(m)||a.endsWith(d,"[]"))&&(S=a.toArray(m)))return d=ft(d),S.forEach(function(R,N){!(a.isUndefined(R)||R===null)&&t.append(i===!0?Se([d],N,o):i===null?d:d+"[]",l(R))}),!1}return xe(m)?!0:(t.append(Se(g,d,o),l(m)),!1)}const E=[],b=Object.assign(xn,{defaultVisitor:y,convertValue:l,isVisitable:xe});function w(m,d,g=0){if(!a.isUndefined(m)){if(g>f)throw new h("Object is too deeply nested ("+g+" levels). Max depth: "+f,h.ERR_FORM_DATA_DEPTH_EXCEEDED);if(E.indexOf(m)!==-1)throw Error("Circular reference detected in "+d.join("."));E.push(m),a.forEach(m,function(O,R){(!(a.isUndefined(O)||O===null)&&s.call(t,O,a.isString(R)?R.trim():R,d,b))===!0&&w(O,d?d.concat(R):[R],g+1)}),E.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return w(e),t}function Je(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function De(e,t){this._pairs=[],e&&ye(e,this,t)}const dt=De.prototype;dt.append=function(t,n){this._pairs.push([t,n])};dt.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 Pn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function pt(e,t,n){if(!t)return e;const r=n&&n.encode||Pn,s=a.isFunction(n)?{serialize:n}:n,o=s&&s.serialize;let i;if(o?i=o(t,s):i=a.isURLSearchParams(t)?t.toString():new De(t,s).toString(r),i){const c=e.indexOf("#");c!==-1&&(e=e.slice(0,c)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Ve{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 ke={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Nn=typeof URLSearchParams<"u"?URLSearchParams:De,Dn=typeof FormData<"u"?FormData:null,kn=typeof Blob<"u"?Blob:null,Ln={isBrowser:!0,classes:{URLSearchParams:Nn,FormData:Dn,Blob:kn},protocols:["http","https","file","blob","url","data"]},Le=typeof window<"u"&&typeof document<"u",Pe=typeof navigator=="object"&&navigator||void 0,Fn=Le&&(!Pe||["ReactNative","NativeScript","NS"].indexOf(Pe.product)<0),Un=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Bn=Le&&window.location.href||"http://localhost",$n=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Le,hasStandardBrowserEnv:Fn,hasStandardBrowserWebWorkerEnv:Un,navigator:Pe,origin:Bn},Symbol.toStringTag,{value:"Module"})),C={...$n,...Ln};function jn(e,t){return ye(e,new C.classes.URLSearchParams,{visitor:function(n,r,s,o){return C.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function qn(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function In(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],t[o]=e[o];return t}function ht(e){function t(n,r,s,o){let i=n[o++];if(i==="__proto__")return!0;const c=Number.isFinite(+i),f=o>=n.length;return i=!i&&a.isArray(s)?s.length:i,f?(a.hasOwnProp(s,i)?s[i]=a.isArray(s[i])?s[i].concat(r):[s[i],r]:s[i]=r,!c):((!s[i]||!a.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&a.isArray(s[i])&&(s[i]=In(s[i])),!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}const W=(e,t)=>e!=null&&a.hasOwnProp(e,t)?e[t]:void 0;function Hn(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 re={transitional:ke,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=a.isObject(t);if(o&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s?JSON.stringify(ht(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(o){const f=W(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return jn(t,f).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=W(this,"env"),l=u&&u.FormData;return ye(c?{"files[]":t}:t,l&&new l,f)}}return o||s?(n.setContentType("application/json",!1),Hn(t)):t}],transformResponse:[function(t){const n=W(this,"transitional")||re.transitional,r=n&&n.forcedJSONParsing,s=W(this,"responseType"),o=s==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(r&&!s||o)){const c=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,W(this,"parseReviver"))}catch(f){if(c)throw f.name==="SyntaxError"?h.from(f,h.ERR_BAD_RESPONSE,this,null,W(this,"response")):f}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:C.classes.FormData,Blob:C.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","query"],e=>{re.headers[e]={}});function Ae(e,t){const n=this||re,r=t||n,s=x.from(r.headers);let o=r.data;return a.forEach(e,function(c){o=c.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function mt(e){return!!(e&&e.__CANCEL__)}let se=class extends h{constructor(t,n,r){super(t??"canceled",h.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function gt(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new h("Request failed with status code "+n.status,n.status>=400&&n.status<500?h.ERR_BAD_REQUEST:h.ERR_BAD_RESPONSE,n.config,n.request,n))}function Mn(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function zn(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(f){const u=Date.now(),l=r[o];i||(i=u),n[s]=f,r[s]=u;let y=o,E=0;for(;y!==s;)E+=n[y++],y=y%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),u-i<t)return;const b=l&&u-l;return b?Math.round(E*1e3/b):void 0}}function vn(e,t){let n=0,r=1e3/t,s,o;const i=(u,l=Date.now())=>{n=l,s=null,o&&(clearTimeout(o),o=null),e(...u)};return[(...u)=>{const l=Date.now(),y=l-n;y>=r?i(u,l):(s=u,o||(o=setTimeout(()=>{o=null,i(s)},r-y)))},()=>s&&i(s)]}const de=(e,t,n=3)=>{let r=0;const s=zn(50,250);return vn(o=>{const i=o.loaded,c=o.lengthComputable?o.total:void 0,f=c!=null?Math.min(i,c):i,u=Math.max(0,f-r),l=s(u);r=Math.max(r,f);const y={loaded:f,total:c,progress:c?f/c:void 0,bytes:u,rate:l||void 0,estimated:l&&c?(c-f)/l:void 0,event:o,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(y)},n)},We=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ke=e=>(...t)=>a.asap(()=>e(...t)),Jn=C.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,C.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(C.origin),C.navigator&&/(msie|trident)/i.test(C.navigator.userAgent)):()=>!0,Vn=C.hasStandardBrowserEnv?{write(e,t,n,r,s,o,i){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}`),o===!0&&c.push("secure"),a.isString(i)&&c.push(`SameSite=${i}`),document.cookie=c.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),s=r.indexOf("=");if(s!==-1&&r.slice(0,s)===e)return decodeURIComponent(r.slice(s+1))}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Wn(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Kn(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function yt(e,t,n){let r=!Wn(t);return e&&(r||n===!1)?Kn(e,t):t}const Xe=e=>e instanceof x?{...e}:e;function J(e,t){t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(u,l,y,E){return a.isPlainObject(u)&&a.isPlainObject(l)?a.merge.call({caseless:E},u,l):a.isPlainObject(l)?a.merge({},l):a.isArray(l)?l.slice():l}function s(u,l,y,E){if(a.isUndefined(l)){if(!a.isUndefined(u))return r(void 0,u,y,E)}else return r(u,l,y,E)}function o(u,l){if(!a.isUndefined(l))return r(void 0,l)}function i(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,y){if(a.hasOwnProp(t,y))return r(u,l);if(a.hasOwnProp(e,y))return r(void 0,u)}const f={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,allowedSocketPaths:i,responseEncoding:i,validateStatus:c,headers:(u,l,y)=>s(Xe(u),Xe(l),y,!0)};return a.forEach(Object.keys({...e,...t}),function(l){if(l==="__proto__"||l==="constructor"||l==="prototype")return;const y=a.hasOwnProp(f,l)?f[l]:s,E=a.hasOwnProp(e,l)?e[l]:void 0,b=a.hasOwnProp(t,l)?t[l]:void 0,w=y(E,b,l);a.isUndefined(w)&&y!==c||(n[l]=w)}),n}const Xn=["content-type","content-length"];function Gn(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t).forEach(([r,s])=>{Xn.includes(r.toLowerCase())&&e.set(r,s)})}const Qn=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),bt=e=>{const t=J({},e),n=E=>a.hasOwnProp(t,E)?t[E]:void 0,r=n("data");let s=n("withXSRFToken");const o=n("xsrfHeaderName"),i=n("xsrfCookieName");let c=n("headers");const f=n("auth"),u=n("baseURL"),l=n("allowAbsoluteUrls"),y=n("url");if(t.headers=c=x.from(c),t.url=pt(yt(u,y,l),e.params,e.paramsSerializer),f&&c.set("Authorization","Basic "+btoa((f.username||"")+":"+(f.password?Qn(f.password):""))),a.isFormData(r)&&(C.hasStandardBrowserEnv||C.hasStandardBrowserWebWorkerEnv?c.setContentType(void 0):a.isFunction(r.getHeaders)&&Gn(c,r.getHeaders(),n("formDataHeaderPolicy"))),C.hasStandardBrowserEnv&&(a.isFunction(s)&&(s=s(t)),s===!0||s==null&&Jn(t.url))){const b=o&&i&&Vn.read(i);b&&c.set(o,b)}return t},Zn=typeof XMLHttpRequest<"u",Yn=Zn&&function(e){return new Promise(function(n,r){const s=bt(e);let o=s.data;const i=x.from(s.headers).normalize();let{responseType:c,onUploadProgress:f,onDownloadProgress:u}=s,l,y,E,b,w;function m(){b&&b(),w&&w(),s.cancelToken&&s.cancelToken.unsubscribe(l),s.signal&&s.signal.removeEventListener("abort",l)}let d=new XMLHttpRequest;d.open(s.method.toUpperCase(),s.url,!0),d.timeout=s.timeout;function g(){if(!d)return;const O=x.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),N={data:!c||c==="text"||c==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:O,config:e,request:d};gt(function(G){n(G),m()},function(G){r(G),m()},N),d=null}"onloadend"in d?d.onloadend=g:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.startsWith("file:"))||setTimeout(g)},d.onabort=function(){d&&(r(new h("Request aborted",h.ECONNABORTED,e,d)),m(),d=null)},d.onerror=function(R){const N=R&&R.message?R.message:"Network Error",I=new h(N,h.ERR_NETWORK,e,d);I.event=R||null,r(I),m(),d=null},d.ontimeout=function(){let R=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const N=s.transitional||ke;s.timeoutErrorMessage&&(R=s.timeoutErrorMessage),r(new h(R,N.clarifyTimeoutError?h.ETIMEDOUT:h.ECONNABORTED,e,d)),m(),d=null},o===void 0&&i.setContentType(null),"setRequestHeader"in d&&a.forEach(i.toJSON(),function(R,N){d.setRequestHeader(N,R)}),a.isUndefined(s.withCredentials)||(d.withCredentials=!!s.withCredentials),c&&c!=="json"&&(d.responseType=s.responseType),u&&([E,w]=de(u,!0),d.addEventListener("progress",E)),f&&d.upload&&([y,b]=de(f),d.upload.addEventListener("progress",y),d.upload.addEventListener("loadend",b)),(s.cancelToken||s.signal)&&(l=O=>{d&&(r(!O||O.type?new se(null,e,d):O),d.abort(),m(),d=null)},s.cancelToken&&s.cancelToken.subscribe(l),s.signal&&(s.signal.aborted?l():s.signal.addEventListener("abort",l)));const S=Mn(s.url);if(S&&!C.protocols.includes(S)){r(new h("Unsupported protocol "+S+":",h.ERR_BAD_REQUEST,e));return}d.send(o||null)})},er=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const o=function(u){if(!s){s=!0,c();const l=u instanceof Error?u:this.reason;r.abort(l instanceof h?l:new se(l instanceof Error?l.message:l))}};let i=t&&setTimeout(()=>{i=null,o(new h(`timeout of ${t}ms exceeded`,h.ETIMEDOUT))},t);const c=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),e=null)};e.forEach(u=>u.addEventListener("abort",o));const{signal:f}=r;return f.unsubscribe=()=>a.asap(c),f}},tr=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},nr=async function*(e,t){for await(const n of rr(e))yield*tr(n,t)},rr=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()}},Ge=(e,t,n,r)=>{const s=nr(e,t);let o=0,i,c=f=>{i||(i=!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 y=l.byteLength;if(n){let E=o+=y;n(E)}f.enqueue(new Uint8Array(l))}catch(u){throw c(u),u}},cancel(f){return c(f),s.return()}},{highWaterMark:2})};function sr(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let i=r.length;const c=r.length;for(let b=0;b<c;b++)if(r.charCodeAt(b)===37&&b+2<c){const w=r.charCodeAt(b+1),m=r.charCodeAt(b+2);(w>=48&&w<=57||w>=65&&w<=70||w>=97&&w<=102)&&(m>=48&&m<=57||m>=65&&m<=70||m>=97&&m<=102)&&(i-=2,b+=2)}let f=0,u=c-1;const l=b=>b>=2&&r.charCodeAt(b-2)===37&&r.charCodeAt(b-1)===51&&(r.charCodeAt(b)===68||r.charCodeAt(b)===100);u>=0&&(r.charCodeAt(u)===61?(f++,u--):l(u)&&(f++,u-=3)),f===1&&u>=0&&(r.charCodeAt(u)===61||l(u))&&f++;const E=Math.floor(i/4)*3-(f||0);return E>0?E:0}if(typeof Buffer<"u"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(r,"utf8");let o=0;for(let i=0,c=r.length;i<c;i++){const f=r.charCodeAt(i);if(f<128)o+=1;else if(f<2048)o+=2;else if(f>=55296&&f<=56319&&i+1<c){const u=r.charCodeAt(i+1);u>=56320&&u<=57343?(o+=4,i++):o+=3}else o+=3}return o}const Fe="1.16.0",Qe=64*1024,{isFunction:ce}=a,Ze=(e,...t)=>{try{return!!e(...t)}catch{return!1}},or=e=>{const t=a.global??globalThis,{ReadableStream:n,TextEncoder:r}=t;e=a.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:s,Request:o,Response:i}=e,c=s?ce(s):typeof fetch=="function",f=ce(o),u=ce(i);if(!c)return!1;const l=c&&ce(n),y=c&&(typeof r=="function"?(g=>S=>g.encode(S))(new r):async g=>new Uint8Array(await new o(g).arrayBuffer())),E=f&&l&&Ze(()=>{let g=!1;const S=new o(C.origin,{body:new n,method:"POST",get duplex(){return g=!0,"half"}}),O=S.headers.has("Content-Type");return S.body!=null&&S.body.cancel(),g&&!O}),b=u&&l&&Ze(()=>a.isReadableStream(new i("").body)),w={stream:b&&(g=>g.body)};c&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!w[g]&&(w[g]=(S,O)=>{let R=S&&S[g];if(R)return R.call(S);throw new h(`Response type '${g}' is not supported`,h.ERR_NOT_SUPPORT,O)})});const m=async g=>{if(g==null)return 0;if(a.isBlob(g))return g.size;if(a.isSpecCompliantForm(g))return(await new o(C.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(a.isArrayBufferView(g)||a.isArrayBuffer(g))return g.byteLength;if(a.isURLSearchParams(g)&&(g=g+""),a.isString(g))return(await y(g)).byteLength},d=async(g,S)=>{const O=a.toFiniteNumber(g.getContentLength());return O??m(S)};return async g=>{let{url:S,method:O,data:R,signal:N,cancelToken:I,timeout:G,onDownloadProgress:we,onUploadProgress:Be,responseType:$,headers:H,withCredentials:oe="same-origin",fetchOptions:$e,maxContentLength:F,maxBodyLength:Ee}=bt(g);const Q=a.isNumber(F)&&F>-1,St=a.isNumber(Ee)&&Ee>-1;let je=s||fetch;$=$?($+"").toLowerCase():"text";let j=er([N,I&&I.toAbortSignal()],G),D=null;const M=j&&j.unsubscribe&&(()=>{j.unsubscribe()});let qe;try{if(Q&&typeof S=="string"&&S.startsWith("data:")&&sr(S)>F)throw new h("maxContentLength size of "+F+" exceeded",h.ERR_BAD_RESPONSE,g,D);if(St&&O!=="get"&&O!=="head"){const A=await d(H,R);if(typeof A=="number"&&isFinite(A)&&A>Ee)throw new h("Request body larger than maxBodyLength limit",h.ERR_BAD_REQUEST,g,D)}if(Be&&E&&O!=="get"&&O!=="head"&&(qe=await d(H,R))!==0){let A=new o(S,{method:"POST",body:R,duplex:"half"}),V;if(a.isFormData(R)&&(V=A.headers.get("content-type"))&&H.setContentType(V),A.body){const[ie,ae]=We(qe,de(Ke(Be)));R=Ge(A.body,Qe,ie,ae)}}a.isString(oe)||(oe=oe?"include":"omit");const _=f&&"credentials"in o.prototype;if(a.isFormData(R)){const A=H.getContentType();A&&/^multipart\/form-data/i.test(A)&&!/boundary=/i.test(A)&&H.delete("content-type")}H.set("User-Agent","axios/"+Fe,!1);const q={...$e,signal:j,method:O.toUpperCase(),headers:H.normalize().toJSON(),body:R,duplex:"half",credentials:_?oe:void 0};D=f&&new o(S,q);let U=await(f?je(D,$e):je(S,q));if(Q){const A=a.toFiniteNumber(U.headers.get("content-length"));if(A!=null&&A>F)throw new h("maxContentLength size of "+F+" exceeded",h.ERR_BAD_RESPONSE,g,D)}const Re=b&&($==="stream"||$==="response");if(b&&U.body&&(we||Q||Re&&M)){const A={};["status","statusText","headers"].forEach(Z=>{A[Z]=U[Z]});const V=a.toFiniteNumber(U.headers.get("content-length")),[ie,ae]=we&&We(V,de(Ke(we),!0))||[];let Ie=0;const At=Z=>{if(Q&&(Ie=Z,Ie>F))throw new h("maxContentLength size of "+F+" exceeded",h.ERR_BAD_RESPONSE,g,D);ie&&ie(Z)};U=new i(Ge(U.body,Qe,At,()=>{ae&&ae(),M&&M()}),A)}$=$||"text";let B=await w[a.findKey(w,$)||"text"](U,g);if(Q&&!b&&!Re){let A;if(B!=null&&(typeof B.byteLength=="number"?A=B.byteLength:typeof B.size=="number"?A=B.size:typeof B=="string"&&(A=typeof r=="function"?new r().encode(B).byteLength:B.length)),typeof A=="number"&&A>F)throw new h("maxContentLength size of "+F+" exceeded",h.ERR_BAD_RESPONSE,g,D)}return!Re&&M&&M(),await new Promise((A,V)=>{gt(A,V,{data:B,headers:x.from(U.headers),status:U.status,statusText:U.statusText,config:g,request:D})})}catch(_){if(M&&M(),j&&j.aborted&&j.reason instanceof h){const q=j.reason;throw q.config=g,D&&(q.request=D),_!==q&&(q.cause=_),q}throw _&&_.name==="TypeError"&&/Load failed|fetch/i.test(_.message)?Object.assign(new h("Network Error",h.ERR_NETWORK,g,D,_&&_.response),{cause:_.cause||_}):h.from(_,_&&_.code,g,D,_&&_.response)}}},ir=new Map,wt=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:s}=t,o=[r,s,n];let i=o.length,c=i,f,u,l=ir;for(;c--;)f=o[c],u=l.get(f),u===void 0&&l.set(f,u=c?new Map:or(t)),l=u;return u};wt();const Ue={http:_n,xhr:Yn,fetch:{get:wt}};a.forEach(Ue,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const Ye=e=>`- ${e}`,ar=e=>a.isFunction(e)||e===null||e===!1;function cr(e,t){e=a.isArray(e)?e:[e];const{length:n}=e;let r,s;const o={};for(let i=0;i<n;i++){r=e[i];let c;if(s=r,!ar(r)&&(s=Ue[(c=String(r)).toLowerCase()],s===void 0))throw new h(`Unknown adapter '${c}'`);if(s&&(a.isFunction(s)||(s=s.get(t))))break;o[c||"#"+i]=s}if(!s){const i=Object.entries(o).map(([f,u])=>`adapter ${f} `+(u===!1?"is not supported by the environment":"is not available in the build"));let c=n?i.length>1?`since :
  4. `+i.map(Ye).join(`
  5. `):" "+Ye(i[0]):"as no adapter specified";throw new h("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return s}const Et={getAdapter:cr,adapters:Ue};function Te(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new se(null,e)}function et(e){return Te(e),e.headers=x.from(e.headers),e.data=Ae.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Et.getAdapter(e.adapter||re.adapter,e)(e).then(function(r){Te(e),e.response=r;try{r.data=Ae.call(e,e.transformResponse,r)}finally{delete e.response}return r.headers=x.from(r.headers),r},function(r){if(!mt(r)&&(Te(e),r&&r.response)){e.response=r.response;try{r.response.data=Ae.call(e,e.transformResponse,r.response)}finally{delete e.response}r.response.headers=x.from(r.response.headers)}return Promise.reject(r)})}const be={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{be[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const tt={};be.transitional=function(t,n,r){function s(o,i){return"[Axios v"+Fe+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,c)=>{if(t===!1)throw new h(s(i," has been removed"+(n?" in "+n:"")),h.ERR_DEPRECATED);return n&&!tt[i]&&(tt[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,c):!0}};be.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function lr(e,t,n){if(typeof e!="object")throw new h("options must be an object",h.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=Object.prototype.hasOwnProperty.call(t,o)?t[o]:void 0;if(i){const c=e[o],f=c===void 0||i(c,o,e);if(f!==!0)throw new h("option "+o+" must be "+f,h.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new h("Unknown option "+o,h.ERR_BAD_OPTION)}}const fe={assertOptions:lr,validators:be},k=fe.validators;let v=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Ve,response:new Ve}}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 o=(()=>{if(!s.stack)return"";const i=s.stack.indexOf(`
  6. `);return i===-1?"":s.stack.slice(i+1)})();try{if(!r.stack)r.stack=o;else if(o){const i=o.indexOf(`
  7. `),c=i===-1?-1:o.indexOf(`
  8. `,i+1),f=c===-1?"":o.slice(c+1);String(r.stack).endsWith(f)||(r.stack+=`
  9. `+o)}}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=J(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&fe.assertOptions(r,{silentJSONParsing:k.transitional(k.boolean),forcedJSONParsing:k.transitional(k.boolean),clarifyTimeoutError:k.transitional(k.boolean),legacyInterceptorReqResOrdering:k.transitional(k.boolean)},!1),s!=null&&(a.isFunction(s)?n.paramsSerializer={serialize:s}:fe.assertOptions(s,{encode:k.function,serialize:k.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),fe.assertOptions(n,{baseUrl:k.spelling("baseURL"),withXsrfToken:k.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&a.merge(o.common,o[n.method]);o&&a.forEach(["delete","get","head","post","put","patch","query","common"],w=>{delete o[w]}),n.headers=x.concat(i,o);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 d=n.transitional||ke;d&&d.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,y=0,E;if(!f){const w=[et.bind(this),void 0];for(w.unshift(...c),w.push(...u),E=w.length,l=Promise.resolve(n);y<E;)l=l.then(w[y++],w[y++]);return l}E=c.length;let b=n;for(;y<E;){const w=c[y++],m=c[y++];try{b=w(b)}catch(d){m.call(this,d);break}}try{l=et.call(this,b)}catch(w){return Promise.reject(w)}for(y=0,E=u.length;y<E;)l=l.then(u[y++],u[y++]);return l}getUri(t){t=J(this.defaults,t);const n=yt(t.baseURL,t.url,t.allowAbsoluteUrls);return pt(n,t.params,t.paramsSerializer)}};a.forEach(["delete","get","head","options"],function(t){v.prototype[t]=function(n,r){return this.request(J(r||{},{method:t,url:n,data:(r||{}).data}))}});a.forEach(["post","put","patch","query"],function(t){function n(r){return function(o,i,c){return this.request(J(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}v.prototype[t]=n(),t!=="query"&&(v.prototype[t+"Form"]=n(!0))});let ur=class Rt{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(c=>{r.subscribe(c),o=c}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,c){r.reason||(r.reason=new se(o,i,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 Rt(function(s){t=s}),cancel:t}}};function fr(e){return function(n){return e.apply(null,n)}}function dr(e){return a.isObject(e)&&e.isAxiosError===!0}const Ne={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(Ne).forEach(([e,t])=>{Ne[t]=e});function Ot(e){const t=new v(e),n=nt(v.prototype.request,t);return a.extend(n,v.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Ot(J(e,s))},n}const T=Ot(re);T.Axios=v;T.CanceledError=se;T.CancelToken=ur;T.isCancel=mt;T.VERSION=Fe;T.toFormData=ye;T.AxiosError=h;T.Cancel=T.CanceledError;T.all=function(t){return Promise.all(t)};T.spread=fr;T.isAxiosError=dr;T.mergeConfig=J;T.AxiosHeaders=x;T.formToJSON=e=>ht(a.isHTMLForm(e)?new FormData(e):e);T.getAdapter=Et.getAdapter;T.HttpStatusCode=Ne;T.default=T;const{Axios:yr,AxiosError:br,CanceledError:wr,isCancel:Er,CancelToken:Rr,VERSION:Or,all:Sr,Cancel:Ar,isAxiosError:Tr,spread:_r,toFormData:Cr,AxiosHeaders:xr,HttpStatusCode:Pr,formToJSON:Nr,getAdapter:Dr,mergeConfig:kr,create:Lr}=T,p=T.create({baseURL:"/api",timeout:1e4});p.interceptors.request.use(e=>{const t=localStorage.getItem("accessToken");return t&&(e.headers.Authorization=`Bearer ${t}`),e});p.interceptors.response.use(e=>{const t=e.data;return t.code!==200?(He.error(t.message||"请求失败"),Promise.reject(new Error(t.message))):t},e=>{var t,n,r;return((t=e.response)==null?void 0:t.status)===401&&(localStorage.removeItem("accessToken"),localStorage.removeItem("refreshToken"),window.location.href="/login"),He.error(((r=(n=e.response)==null?void 0:n.data)==null?void 0:r.message)||"网络错误"),Promise.reject(e)});const Fr={login:e=>p.post("/auth/login",e).then(t=>t.data),register:e=>p.post("/auth/register",e).then(t=>t.data),me:()=>p.get("/auth/me").then(e=>e.data),changePassword:e=>p.put("/auth/password",e)},Ur={getTree:()=>p.get("/org/departments/tree").then(e=>e.data),createDept:e=>p.post("/org/departments",e).then(t=>t.data),updateDept:(e,t)=>p.put(`/org/departments/${e}`,t),deleteDept:e=>p.delete(`/org/departments/${e}`),getUsers:()=>p.get("/org/users").then(e=>e.data),createUser:e=>p.post("/org/users",e).then(t=>t.data),updateUser:(e,t)=>p.put(`/org/users/${e}`,t),deleteUser:e=>p.delete(`/org/users/${e}`),updateSuperior:(e,t)=>p.put(`/org/users/${e}/superior`,{superiorId:t}),updateDepartment:(e,t)=>p.put(`/org/users/${e}/department`,{departmentId:t}),getMySubordinates:()=>p.get("/org/users/my-subordinates").then(e=>e.data),getSuperiors:()=>p.get("/org/users/superiors").then(e=>e.data),initSeed:()=>p.post("/org/init-seed")},Br={list:()=>p.get("/periods").then(e=>e.data),get:e=>p.get(`/periods/${e}`).then(t=>t.data),getActive:()=>p.get("/periods/active").then(e=>e.data),create:e=>p.post("/periods",e).then(t=>t.data),batchCreate:e=>p.post("/periods/batch",e).then(t=>t.data),update:(e,t)=>p.put(`/periods/${e}`,t),delete:e=>p.delete(`/periods/${e}`),transition:(e,t)=>p.put(`/periods/${e}/status`,{status:t})},$r={submit:e=>p.post("/okr/submit",e).then(t=>t.data),update:(e,t)=>p.put(`/okr/${e}/update`,t).then(n=>n.data),review:(e,t)=>p.put(`/okr/${e}/review`,t),updateProgress:(e,t)=>p.put(`/okr/kr/${e}/progress`,t),getKrHistory:e=>p.get(`/okr/kr/${e}/history`).then(t=>t.data),getSuperiorOkrs:e=>p.get(`/okr/period/${e}/superior`).then(t=>t.data),getTopLevelOkrs:e=>p.get(`/okr/period/${e}/top-level`).then(t=>t.data),getMyOkr:e=>p.get(`/okr/period/${e}/my`).then(t=>t.data),canSubmit:e=>p.get(`/okr/period/${e}/can-submit`).then(t=>t.data),getSubordinates:e=>p.get(`/okr/period/${e}/subordinates`).then(t=>t.data),getPendingReviews:e=>p.get(`/okr/period/${e}/pending-reviews`).then(t=>t.data),getAllOkrs:e=>p.get(`/okr/period/${e}/all`).then(t=>t.data),getDetail:e=>p.get(`/okr/${e}`).then(t=>t.data),getTree:e=>p.get(`/okr/period/${e}/tree`).then(t=>t.data),getOrphans:e=>p.get(`/okr/period/${e}/orphans`).then(t=>t.data),setAlignment:(e,t)=>p.post(`/okr/${e}/align`,{parentObjectiveId:t}),getChildren:e=>p.get(`/okr/${e}/children`).then(t=>t.data)},jr={listTemplates:()=>p.get("/kpi/templates").then(e=>e.data),getTemplateNames:()=>p.get("/kpi/templates/names").then(e=>e.data),getTemplateByPosition:e=>p.get("/kpi/templates/by-position",{params:{position:e}}).then(t=>t.data),createTemplate:e=>p.post("/kpi/templates",e).then(t=>t.data),updateTemplate:(e,t)=>p.put(`/kpi/templates/${e}`,t),deleteTemplate:e=>p.delete(`/kpi/templates/${e}`),getConfig:(e,t)=>p.get(`/kpi/configs/${e}/${t}`).then(n=>n.data),saveConfig:e=>p.post("/kpi/configs",e).then(t=>t.data),lockConfig:e=>p.put(`/kpi/configs/${e}/lock`)},qr={submitSelf:e=>p.post("/scores/self",e).then(t=>t.data),submitSuperior:e=>p.post("/scores/superior",e).then(t=>t.data),confirm:e=>p.post("/scores/confirm",e),getPage:(e,t)=>p.get("/scores/page",{params:{periodId:e,userId:t}}).then(n=>n.data),getMyResult:e=>p.get("/scores/my",{params:{periodId:e}}).then(t=>t.data),getSubordinates:e=>p.get("/scores/subordinates",{params:{periodId:e}}).then(t=>t.data)},Ir={saveInterview:e=>p.post("/feedback/interview",e).then(t=>t.data),submitReply:e=>p.post("/feedback/reply",e),getPage:(e,t)=>p.get("/feedback/page",{params:{periodId:e,userId:t}}).then(n=>n.data)},Hr={list:()=>p.get("/dimensions").then(e=>e.data),create:e=>p.post("/dimensions",e).then(t=>t.data),update:(e,t)=>p.put(`/dimensions/${e}`,t),delete:e=>p.delete(`/dimensions/${e}`)},Mr={getLogs:e=>p.get("/system/logs",{params:e}).then(t=>t.data)},zr={getUnreadCount:()=>p.get("/notifications/unread-count").then(e=>e.data),getPage:e=>p.get("/notifications",{params:e}).then(t=>t.data),markRead:e=>p.put(`/notifications/${e}/read`),markAllRead:()=>p.put("/notifications/read-all")};export{Fr as authApi,p as default,Hr as dimensionApi,Ir as feedbackApi,jr as kpiApi,zr as notificationApi,$r as okrApi,Ur as orgApi,Br as periodApi,qr as scoreApi,Mr as systemApi};