UNPKG

ez-axios

Version:
25 lines 85.6 kB
(function(re,Ce){typeof exports=="object"&&typeof module<"u"?Ce(exports):typeof define=="function"&&define.amd?define(["exports"],Ce):(re=typeof globalThis<"u"?globalThis:re||self,Ce(re.ezAxios={}))})(this,function(re){"use strict";const Ce={baseURL:"",mark:"",timeout:3e4,briefly:!0,loading:!0,headers:{},error:Po,success:()=>{}};let Z=Ce;const Ro=e=>{Z=Object.assign(Ce,e)};function Po(e){switch(e){case 404:console.error("网络请求不存在");break;case 401:console.error("401 未授权");break;case 500:console.error("服务器遇到错误,无法完成请求");break;default:console.error("通用错误")}}class xo{static baseURL(t){Z.baseURL=t}static mark(t){Z.mark=t}static timeout(t){Z.timeout=t}static briefly(t){Z.briefly=!!t}static loading(t){Z.loading=!!t}static header(t){if(Object.prototype.toString.call(t)=="[object Object]")for(const r in t)typeof t[r]=="string"?Z.headers[r]=t[r]:(Z.headers[r]=t[r]+"",console.warn("ezAxios: header 参数类型错误,已为您强制类型转换,但这可能不是你想要的。")),Z.headers[r]||delete Z.headers[r];else console.error("ezAxios: header 参数类型错误")}static error(t){Z.error=t}static success(t){Z.success=t}}function Rr(e,t){return function(){return e.apply(t,arguments)}}const{toString:To}=Object.prototype,{getPrototypeOf:ct}=Object,{iterator:Ve,toStringTag:Pr}=Symbol,Ke=(e=>t=>{const r=To.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),se=e=>(e=e.toLowerCase(),t=>Ke(t)===e),Qe=e=>t=>typeof t===e,{isArray:Fe}=Array,Ue=Qe("undefined");function Me(e){return e!==null&&!Ue(e)&&e.constructor!==null&&!Ue(e.constructor)&&K(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const xr=se("ArrayBuffer");function Co(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&xr(e.buffer),t}const Fo=Qe("string"),K=Qe("function"),Tr=Qe("number"),ke=e=>e!==null&&typeof e=="object",No=e=>e===!0||e===!1,Xe=e=>{if(Ke(e)!=="object")return!1;const t=ct(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Pr in e)&&!(Ve in e)},_o=e=>{if(!ke(e)||Me(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},qo=se("Date"),Do=se("File"),Lo=se("Blob"),Io=se("FileList"),$o=e=>ke(e)&&K(e.pipe),Bo=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||K(e.append)&&((t=Ke(e))==="formdata"||t==="object"&&K(e.toString)&&e.toString()==="[object FormData]"))},Uo=se("URLSearchParams"),[Mo,ko,jo,zo]=["ReadableStream","Request","Response","Headers"].map(se),Ho=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function je(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),Fe(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{if(Me(e))return;const a=r?Object.getOwnPropertyNames(e):Object.keys(e),i=a.length;let s;for(n=0;n<i;n++)s=a[n],t.call(null,e[s],s,e)}}function Cr(e,t){if(Me(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const Ae=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Fr=e=>!Ue(e)&&e!==Ae;function ft(){const{caseless:e}=Fr(this)&&this||{},t={},r=(n,o)=>{const a=e&&Cr(t,o)||o;Xe(t[a])&&Xe(n)?t[a]=ft(t[a],n):Xe(n)?t[a]=ft({},n):Fe(n)?t[a]=n.slice():t[a]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&je(arguments[n],r);return t}const Wo=(e,t,r,{allOwnKeys:n}={})=>(je(t,(o,a)=>{r&&K(o)?e[a]=Rr(o,r):e[a]=o},{allOwnKeys:n}),e),Go=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Jo=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Vo=(e,t,r,n)=>{let o,a,i;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)i=o[a],(!n||n(i,e,t))&&!s[i]&&(t[i]=e[i],s[i]=!0);e=r!==!1&&ct(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Ko=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},Qo=e=>{if(!e)return null;if(Fe(e))return e;let t=e.length;if(!Tr(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Xo=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ct(Uint8Array)),Zo=(e,t)=>{const n=(e&&e[Ve]).call(e);let o;for(;(o=n.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},Yo=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},ei=se("HTMLFormElement"),ti=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),Nr=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),ri=se("RegExp"),_r=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};je(r,(o,a)=>{let i;(i=t(o,a,e))!==!1&&(n[a]=i||o)}),Object.defineProperties(e,n)},ni=e=>{_r(e,(t,r)=>{if(K(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(K(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},oi=(e,t)=>{const r={},n=o=>{o.forEach(a=>{r[a]=!0})};return Fe(e)?n(e):n(String(e).split(t)),r},ii=()=>{},ai=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function si(e){return!!(e&&K(e.append)&&e[Pr]==="FormData"&&e[Ve])}const li=e=>{const t=new Array(10),r=(n,o)=>{if(ke(n)){if(t.indexOf(n)>=0)return;if(Me(n))return n;if(!("toJSON"in n)){t[o]=n;const a=Fe(n)?[]:{};return je(n,(i,s)=>{const p=r(i,o+1);!Ue(p)&&(a[s]=p)}),t[o]=void 0,a}}return n};return r(e,0)},ui=se("AsyncFunction"),ci=e=>e&&(ke(e)||K(e))&&K(e.then)&&K(e.catch),qr=((e,t)=>e?setImmediate:t?((r,n)=>(Ae.addEventListener("message",({source:o,data:a})=>{o===Ae&&a===r&&n.length&&n.shift()()},!1),o=>{n.push(o),Ae.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",K(Ae.postMessage)),fi=typeof queueMicrotask<"u"?queueMicrotask.bind(Ae):typeof process<"u"&&process.nextTick||qr,y={isArray:Fe,isArrayBuffer:xr,isBuffer:Me,isFormData:Bo,isArrayBufferView:Co,isString:Fo,isNumber:Tr,isBoolean:No,isObject:ke,isPlainObject:Xe,isEmptyObject:_o,isReadableStream:Mo,isRequest:ko,isResponse:jo,isHeaders:zo,isUndefined:Ue,isDate:qo,isFile:Do,isBlob:Lo,isRegExp:ri,isFunction:K,isStream:$o,isURLSearchParams:Uo,isTypedArray:Xo,isFileList:Io,forEach:je,merge:ft,extend:Wo,trim:Ho,stripBOM:Go,inherits:Jo,toFlatObject:Vo,kindOf:Ke,kindOfTest:se,endsWith:Ko,toArray:Qo,forEachEntry:Zo,matchAll:Yo,isHTMLForm:ei,hasOwnProperty:Nr,hasOwnProp:Nr,reduceDescriptors:_r,freezeMethods:ni,toObjectSet:oi,toCamelCase:ti,noop:ii,toFiniteNumber:ai,findKey:Cr,global:Ae,isContextDefined:Fr,isSpecCompliantForm:si,toJSONObject:li,isAsyncFn:ui,isThenable:ci,setImmediate:qr,asap:fi,isIterable:e=>e!=null&&K(e[Ve])};function C(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}y.inherits(C,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:y.toJSONObject(this.config),code:this.code,status:this.status}}});const Dr=C.prototype,Lr={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Lr[e]={value:e}}),Object.defineProperties(C,Lr),Object.defineProperty(Dr,"isAxiosError",{value:!0}),C.from=(e,t,r,n,o,a)=>{const i=Object.create(Dr);return y.toFlatObject(e,i,function(p){return p!==Error.prototype},s=>s!=="isAxiosError"),C.call(i,e.message,t,r,n,o),i.cause=e,i.name=e.name,a&&Object.assign(i,a),i};const pi=null;function pt(e){return y.isPlainObject(e)||y.isArray(e)}function Ir(e){return y.endsWith(e,"[]")?e.slice(0,-2):e}function $r(e,t,r){return e?e.concat(t).map(function(o,a){return o=Ir(o),!r&&a?"["+o+"]":o}).join(r?".":""):t}function di(e){return y.isArray(e)&&!e.some(pt)}const yi=y.toFlatObject(y,{},null,function(t){return/^is[A-Z]/.test(t)});function Ze(e,t,r){if(!y.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=y.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,u){return!y.isUndefined(u[w])});const n=r.metaTokens,o=r.visitor||c,a=r.dots,i=r.indexes,p=(r.Blob||typeof Blob<"u"&&Blob)&&y.isSpecCompliantForm(t);if(!y.isFunction(o))throw new TypeError("visitor must be a function");function l(h){if(h===null)return"";if(y.isDate(h))return h.toISOString();if(y.isBoolean(h))return h.toString();if(!p&&y.isBlob(h))throw new C("Blob is not supported. Use a Buffer instead.");return y.isArrayBuffer(h)||y.isTypedArray(h)?p&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function c(h,w,u){let m=h;if(h&&!u&&typeof h=="object"){if(y.endsWith(w,"{}"))w=n?w:w.slice(0,-2),h=JSON.stringify(h);else if(y.isArray(h)&&di(h)||(y.isFileList(h)||y.endsWith(w,"[]"))&&(m=y.toArray(h)))return w=Ir(w),m.forEach(function(E,O){!(y.isUndefined(E)||E===null)&&t.append(i===!0?$r([w],O,a):i===null?w:w+"[]",l(E))}),!1}return pt(h)?!0:(t.append($r(u,w,a),l(h)),!1)}const v=[],S=Object.assign(yi,{defaultVisitor:c,convertValue:l,isVisitable:pt});function b(h,w){if(!y.isUndefined(h)){if(v.indexOf(h)!==-1)throw Error("Circular reference detected in "+w.join("."));v.push(h),y.forEach(h,function(m,g){(!(y.isUndefined(m)||m===null)&&o.call(t,m,y.isString(g)?g.trim():g,w,S))===!0&&b(m,w?w.concat(g):[g])}),v.pop()}}if(!y.isObject(e))throw new TypeError("data must be an object");return b(e),t}function Br(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function dt(e,t){this._pairs=[],e&&Ze(e,this,t)}const Ur=dt.prototype;Ur.append=function(t,r){this._pairs.push([t,r])},Ur.toString=function(t){const r=t?function(n){return t.call(this,n,Br)}:Br;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function hi(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Mr(e,t,r){if(!t)return e;const n=r&&r.encode||hi;y.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let a;if(o?a=o(t,r):a=y.isURLSearchParams(t)?t.toString():new dt(t,r).toString(n),a){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class kr{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){y.forEach(this.handlers,function(n){n!==null&&t(n)})}}const jr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},mi={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:dt,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},yt=typeof window<"u"&&typeof document<"u",ht=typeof navigator=="object"&&navigator||void 0,gi=yt&&(!ht||["ReactNative","NativeScript","NS"].indexOf(ht.product)<0),vi=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",bi=yt&&window.location.href||"http://localhost",W={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:yt,hasStandardBrowserEnv:gi,hasStandardBrowserWebWorkerEnv:vi,navigator:ht,origin:bi},Symbol.toStringTag,{value:"Module"})),...mi};function wi(e,t){return Ze(e,new W.classes.URLSearchParams,{visitor:function(r,n,o,a){return W.isNode&&y.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}function Si(e){return y.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Ei(e){const t={},r=Object.keys(e);let n;const o=r.length;let a;for(n=0;n<o;n++)a=r[n],t[a]=e[a];return t}function zr(e){function t(r,n,o,a){let i=r[a++];if(i==="__proto__")return!0;const s=Number.isFinite(+i),p=a>=r.length;return i=!i&&y.isArray(o)?o.length:i,p?(y.hasOwnProp(o,i)?o[i]=[o[i],n]:o[i]=n,!s):((!o[i]||!y.isObject(o[i]))&&(o[i]=[]),t(r,n,o[i],a)&&y.isArray(o[i])&&(o[i]=Ei(o[i])),!s)}if(y.isFormData(e)&&y.isFunction(e.entries)){const r={};return y.forEachEntry(e,(n,o)=>{t(Si(n),o,r,0)}),r}return null}function Oi(e,t,r){if(y.isString(e))try{return(t||JSON.parse)(e),y.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const ze={transitional:jr,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,a=y.isObject(t);if(a&&y.isHTMLForm(t)&&(t=new FormData(t)),y.isFormData(t))return o?JSON.stringify(zr(t)):t;if(y.isArrayBuffer(t)||y.isBuffer(t)||y.isStream(t)||y.isFile(t)||y.isBlob(t)||y.isReadableStream(t))return t;if(y.isArrayBufferView(t))return t.buffer;if(y.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return wi(t,this.formSerializer).toString();if((s=y.isFileList(t))||n.indexOf("multipart/form-data")>-1){const p=this.env&&this.env.FormData;return Ze(s?{"files[]":t}:t,p&&new p,this.formSerializer)}}return a||o?(r.setContentType("application/json",!1),Oi(t)):t}],transformResponse:[function(t){const r=this.transitional||ze.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(y.isResponse(t)||y.isReadableStream(t))return t;if(t&&y.isString(t)&&(n&&!this.responseType||o)){const i=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(i)throw s.name==="SyntaxError"?C.from(s,C.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:W.classes.FormData,Blob:W.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};y.forEach(["delete","get","head","post","put","patch"],e=>{ze.headers[e]={}});const Ai=y.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ri=e=>{const t={};let r,n,o;return e&&e.split(`
`).forEach(function(i){o=i.indexOf(":"),r=i.substring(0,o).trim().toLowerCase(),n=i.substring(o+1).trim(),!(!r||t[r]&&Ai[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Hr=Symbol("internals");function He(e){return e&&String(e).trim().toLowerCase()}function Ye(e){return e===!1||e==null?e:y.isArray(e)?e.map(Ye):String(e)}function Pi(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const xi=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function mt(e,t,r,n,o){if(y.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!y.isString(t)){if(y.isString(n))return t.indexOf(n)!==-1;if(y.isRegExp(n))return n.test(t)}}function Ti(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Ci(e,t){const r=y.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,a,i){return this[n].call(this,t,o,a,i)},configurable:!0})})}let Q=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function a(s,p,l){const c=He(p);if(!c)throw new Error("header name must be a non-empty string");const v=y.findKey(o,c);(!v||o[v]===void 0||l===!0||l===void 0&&o[v]!==!1)&&(o[v||p]=Ye(s))}const i=(s,p)=>y.forEach(s,(l,c)=>a(l,c,p));if(y.isPlainObject(t)||t instanceof this.constructor)i(t,r);else if(y.isString(t)&&(t=t.trim())&&!xi(t))i(Ri(t),r);else if(y.isObject(t)&&y.isIterable(t)){let s={},p,l;for(const c of t){if(!y.isArray(c))throw TypeError("Object iterator must return a key-value pair");s[l=c[0]]=(p=s[l])?y.isArray(p)?[...p,c[1]]:[p,c[1]]:c[1]}i(s,r)}else t!=null&&a(r,t,n);return this}get(t,r){if(t=He(t),t){const n=y.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return Pi(o);if(y.isFunction(r))return r.call(this,o,n);if(y.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=He(t),t){const n=y.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||mt(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function a(i){if(i=He(i),i){const s=y.findKey(n,i);s&&(!r||mt(n,n[s],s,r))&&(delete n[s],o=!0)}}return y.isArray(t)?t.forEach(a):a(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const a=r[n];(!t||mt(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const r=this,n={};return y.forEach(this,(o,a)=>{const i=y.findKey(n,a);if(i){r[i]=Ye(o),delete r[a];return}const s=t?Ti(a):String(a).trim();s!==a&&delete r[a],r[s]=Ye(o),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return y.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&y.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).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,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[Hr]=this[Hr]={accessors:{}}).accessors,o=this.prototype;function a(i){const s=He(i);n[s]||(Ci(o,i),n[s]=!0)}return y.isArray(t)?t.forEach(a):a(t),this}};Q.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),y.reduceDescriptors(Q.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),y.freezeMethods(Q);function gt(e,t){const r=this||ze,n=t||r,o=Q.from(n.headers);let a=n.data;return y.forEach(e,function(s){a=s.call(r,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function Wr(e){return!!(e&&e.__CANCEL__)}function Ne(e,t,r){C.call(this,e??"canceled",C.ERR_CANCELED,t,r),this.name="CanceledError"}y.inherits(Ne,C,{__CANCEL__:!0});function Gr(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new C("Request failed with status code "+r.status,[C.ERR_BAD_REQUEST,C.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Fi(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Ni(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,a=0,i;return t=t!==void 0?t:1e3,function(p){const l=Date.now(),c=n[a];i||(i=l),r[o]=p,n[o]=l;let v=a,S=0;for(;v!==o;)S+=r[v++],v=v%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),l-i<t)return;const b=c&&l-c;return b?Math.round(S*1e3/b):void 0}}function _i(e,t){let r=0,n=1e3/t,o,a;const i=(l,c=Date.now())=>{r=c,o=null,a&&(clearTimeout(a),a=null),e(...l)};return[(...l)=>{const c=Date.now(),v=c-r;v>=n?i(l,c):(o=l,a||(a=setTimeout(()=>{a=null,i(o)},n-v)))},()=>o&&i(o)]}const et=(e,t,r=3)=>{let n=0;const o=Ni(50,250);return _i(a=>{const i=a.loaded,s=a.lengthComputable?a.total:void 0,p=i-n,l=o(p),c=i<=s;n=i;const v={loaded:i,total:s,progress:s?i/s:void 0,bytes:p,rate:l||void 0,estimated:l&&s&&c?(s-i)/l:void 0,event:a,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(v)},r)},Jr=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Vr=e=>(...t)=>y.asap(()=>e(...t)),qi=W.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,W.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(W.origin),W.navigator&&/(msie|trident)/i.test(W.navigator.userAgent)):()=>!0,Di=W.hasStandardBrowserEnv?{write(e,t,r,n,o,a){const i=[e+"="+encodeURIComponent(t)];y.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),y.isString(n)&&i.push("path="+n),y.isString(o)&&i.push("domain="+o),a===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Li(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Ii(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Kr(e,t,r){let n=!Li(t);return e&&(n||r==!1)?Ii(e,t):t}const Qr=e=>e instanceof Q?{...e}:e;function Re(e,t){t=t||{};const r={};function n(l,c,v,S){return y.isPlainObject(l)&&y.isPlainObject(c)?y.merge.call({caseless:S},l,c):y.isPlainObject(c)?y.merge({},c):y.isArray(c)?c.slice():c}function o(l,c,v,S){if(y.isUndefined(c)){if(!y.isUndefined(l))return n(void 0,l,v,S)}else return n(l,c,v,S)}function a(l,c){if(!y.isUndefined(c))return n(void 0,c)}function i(l,c){if(y.isUndefined(c)){if(!y.isUndefined(l))return n(void 0,l)}else return n(void 0,c)}function s(l,c,v){if(v in t)return n(l,c);if(v in e)return n(void 0,l)}const p={url:a,method:a,data:a,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,responseEncoding:i,validateStatus:s,headers:(l,c,v)=>o(Qr(l),Qr(c),v,!0)};return y.forEach(Object.keys({...e,...t}),function(c){const v=p[c]||o,S=v(e[c],t[c],c);y.isUndefined(S)&&v!==s||(r[c]=S)}),r}const Xr=e=>{const t=Re({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:a,headers:i,auth:s}=t;t.headers=i=Q.from(i),t.url=Mr(Kr(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&i.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let p;if(y.isFormData(r)){if(W.hasStandardBrowserEnv||W.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((p=i.getContentType())!==!1){const[l,...c]=p?p.split(";").map(v=>v.trim()).filter(Boolean):[];i.setContentType([l||"multipart/form-data",...c].join("; "))}}if(W.hasStandardBrowserEnv&&(n&&y.isFunction(n)&&(n=n(t)),n||n!==!1&&qi(t.url))){const l=o&&a&&Di.read(a);l&&i.set(o,l)}return t},$i=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){const o=Xr(e);let a=o.data;const i=Q.from(o.headers).normalize();let{responseType:s,onUploadProgress:p,onDownloadProgress:l}=o,c,v,S,b,h;function w(){b&&b(),h&&h(),o.cancelToken&&o.cancelToken.unsubscribe(c),o.signal&&o.signal.removeEventListener("abort",c)}let u=new XMLHttpRequest;u.open(o.method.toUpperCase(),o.url,!0),u.timeout=o.timeout;function m(){if(!u)return;const E=Q.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),A={data:!s||s==="text"||s==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:E,config:e,request:u};Gr(function(P){r(P),w()},function(P){n(P),w()},A),u=null}"onloadend"in u?u.onloadend=m:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(m)},u.onabort=function(){u&&(n(new C("Request aborted",C.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new C("Network Error",C.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let O=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const A=o.transitional||jr;o.timeoutErrorMessage&&(O=o.timeoutErrorMessage),n(new C(O,A.clarifyTimeoutError?C.ETIMEDOUT:C.ECONNABORTED,e,u)),u=null},a===void 0&&i.setContentType(null),"setRequestHeader"in u&&y.forEach(i.toJSON(),function(O,A){u.setRequestHeader(A,O)}),y.isUndefined(o.withCredentials)||(u.withCredentials=!!o.withCredentials),s&&s!=="json"&&(u.responseType=o.responseType),l&&([S,h]=et(l,!0),u.addEventListener("progress",S)),p&&u.upload&&([v,b]=et(p),u.upload.addEventListener("progress",v),u.upload.addEventListener("loadend",b)),(o.cancelToken||o.signal)&&(c=E=>{u&&(n(!E||E.type?new Ne(null,e,u):E),u.abort(),u=null)},o.cancelToken&&o.cancelToken.subscribe(c),o.signal&&(o.signal.aborted?c():o.signal.addEventListener("abort",c)));const g=Fi(o.url);if(g&&W.protocols.indexOf(g)===-1){n(new C("Unsupported protocol "+g+":",C.ERR_BAD_REQUEST,e));return}u.send(a||null)})},Bi=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,o;const a=function(l){if(!o){o=!0,s();const c=l instanceof Error?l:this.reason;n.abort(c instanceof C?c:new Ne(c instanceof Error?c.message:c))}};let i=t&&setTimeout(()=>{i=null,a(new C(`timeout ${t} of ms exceeded`,C.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(a):l.removeEventListener("abort",a)}),e=null)};e.forEach(l=>l.addEventListener("abort",a));const{signal:p}=n;return p.unsubscribe=()=>y.asap(s),p}},Ui=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},Mi=async function*(e,t){for await(const r of ki(e))yield*Ui(r,t)},ki=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},Zr=(e,t,r,n)=>{const o=Mi(e,t);let a=0,i,s=p=>{i||(i=!0,n&&n(p))};return new ReadableStream({async pull(p){try{const{done:l,value:c}=await o.next();if(l){s(),p.close();return}let v=c.byteLength;if(r){let S=a+=v;r(S)}p.enqueue(new Uint8Array(c))}catch(l){throw s(l),l}},cancel(p){return s(p),o.return()}},{highWaterMark:2})},tt=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Yr=tt&&typeof ReadableStream=="function",ji=tt&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),en=(e,...t)=>{try{return!!e(...t)}catch{return!1}},zi=Yr&&en(()=>{let e=!1;const t=new Request(W.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),tn=64*1024,vt=Yr&&en(()=>y.isReadableStream(new Response("").body)),rt={stream:vt&&(e=>e.body)};tt&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!rt[t]&&(rt[t]=y.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new C(`Response type '${t}' is not supported`,C.ERR_NOT_SUPPORT,n)})})})(new Response);const Hi=async e=>{if(e==null)return 0;if(y.isBlob(e))return e.size;if(y.isSpecCompliantForm(e))return(await new Request(W.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(y.isArrayBufferView(e)||y.isArrayBuffer(e))return e.byteLength;if(y.isURLSearchParams(e)&&(e=e+""),y.isString(e))return(await ji(e)).byteLength},Wi=async(e,t)=>{const r=y.toFiniteNumber(e.getContentLength());return r??Hi(t)},bt={http:pi,xhr:$i,fetch:tt&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:a,timeout:i,onDownloadProgress:s,onUploadProgress:p,responseType:l,headers:c,withCredentials:v="same-origin",fetchOptions:S}=Xr(e);l=l?(l+"").toLowerCase():"text";let b=Bi([o,a&&a.toAbortSignal()],i),h;const w=b&&b.unsubscribe&&(()=>{b.unsubscribe()});let u;try{if(p&&zi&&r!=="get"&&r!=="head"&&(u=await Wi(c,n))!==0){let A=new Request(t,{method:"POST",body:n,duplex:"half"}),R;if(y.isFormData(n)&&(R=A.headers.get("content-type"))&&c.setContentType(R),A.body){const[P,T]=Jr(u,et(Vr(p)));n=Zr(A.body,tn,P,T)}}y.isString(v)||(v=v?"include":"omit");const m="credentials"in Request.prototype;h=new Request(t,{...S,signal:b,method:r.toUpperCase(),headers:c.normalize().toJSON(),body:n,duplex:"half",credentials:m?v:void 0});let g=await fetch(h,S);const E=vt&&(l==="stream"||l==="response");if(vt&&(s||E&&w)){const A={};["status","statusText","headers"].forEach(q=>{A[q]=g[q]});const R=y.toFiniteNumber(g.headers.get("content-length")),[P,T]=s&&Jr(R,et(Vr(s),!0))||[];g=new Response(Zr(g.body,tn,P,()=>{T&&T(),w&&w()}),A)}l=l||"text";let O=await rt[y.findKey(rt,l)||"text"](g,e);return!E&&w&&w(),await new Promise((A,R)=>{Gr(A,R,{data:O,headers:Q.from(g.headers),status:g.status,statusText:g.statusText,config:e,request:h})})}catch(m){throw w&&w(),m&&m.name==="TypeError"&&/Load failed|fetch/i.test(m.message)?Object.assign(new C("Network Error",C.ERR_NETWORK,e,h),{cause:m.cause||m}):C.from(m,m&&m.code,e,h)}})};y.forEach(bt,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const rn=e=>`- ${e}`,Gi=e=>y.isFunction(e)||e===null||e===!1,nn={getAdapter:e=>{e=y.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let a=0;a<t;a++){r=e[a];let i;if(n=r,!Gi(r)&&(n=bt[(i=String(r)).toLowerCase()],n===void 0))throw new C(`Unknown adapter '${i}'`);if(n)break;o[i||"#"+a]=n}if(!n){const a=Object.entries(o).map(([s,p])=>`adapter ${s} `+(p===!1?"is not supported by the environment":"is not available in the build"));let i=t?a.length>1?`since :
`+a.map(rn).join(`
`):" "+rn(a[0]):"as no adapter specified";throw new C("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return n},adapters:bt};function wt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ne(null,e)}function on(e){return wt(e),e.headers=Q.from(e.headers),e.data=gt.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),nn.getAdapter(e.adapter||ze.adapter)(e).then(function(n){return wt(e),n.data=gt.call(e,e.transformResponse,n),n.headers=Q.from(n.headers),n},function(n){return Wr(n)||(wt(e),n&&n.response&&(n.response.data=gt.call(e,e.transformResponse,n.response),n.response.headers=Q.from(n.response.headers))),Promise.reject(n)})}const an="1.11.0",nt={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{nt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const sn={};nt.transitional=function(t,r,n){function o(a,i){return"[Axios v"+an+"] Transitional option '"+a+"'"+i+(n?". "+n:"")}return(a,i,s)=>{if(t===!1)throw new C(o(i," has been removed"+(r?" in "+r:"")),C.ERR_DEPRECATED);return r&&!sn[i]&&(sn[i]=!0,console.warn(o(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(a,i,s):!0}},nt.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function Ji(e,t,r){if(typeof e!="object")throw new C("options must be an object",C.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const a=n[o],i=t[a];if(i){const s=e[a],p=s===void 0||i(s,a,e);if(p!==!0)throw new C("option "+a+" must be "+p,C.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new C("Unknown option "+a,C.ERR_BAD_OPTION)}}const ot={assertOptions:Ji,validators:nt},fe=ot.validators;let Pe=class{constructor(t){this.defaults=t||{},this.interceptors={request:new kr,response:new kr}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const a=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?a&&!String(n.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(n.stack+=`
`+a):n.stack=a}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Re(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:a}=r;n!==void 0&&ot.assertOptions(n,{silentJSONParsing:fe.transitional(fe.boolean),forcedJSONParsing:fe.transitional(fe.boolean),clarifyTimeoutError:fe.transitional(fe.boolean)},!1),o!=null&&(y.isFunction(o)?r.paramsSerializer={serialize:o}:ot.assertOptions(o,{encode:fe.function,serialize:fe.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),ot.assertOptions(r,{baseUrl:fe.spelling("baseURL"),withXsrfToken:fe.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=a&&y.merge(a.common,a[r.method]);a&&y.forEach(["delete","get","head","post","put","patch","common"],h=>{delete a[h]}),r.headers=Q.concat(i,a);const s=[];let p=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(r)===!1||(p=p&&w.synchronous,s.unshift(w.fulfilled,w.rejected))});const l=[];this.interceptors.response.forEach(function(w){l.push(w.fulfilled,w.rejected)});let c,v=0,S;if(!p){const h=[on.bind(this),void 0];for(h.unshift(...s),h.push(...l),S=h.length,c=Promise.resolve(r);v<S;)c=c.then(h[v++],h[v++]);return c}S=s.length;let b=r;for(v=0;v<S;){const h=s[v++],w=s[v++];try{b=h(b)}catch(u){w.call(this,u);break}}try{c=on.call(this,b)}catch(h){return Promise.reject(h)}for(v=0,S=l.length;v<S;)c=c.then(l[v++],l[v++]);return c}getUri(t){t=Re(this.defaults,t);const r=Kr(t.baseURL,t.url,t.allowAbsoluteUrls);return Mr(r,t.params,t.paramsSerializer)}};y.forEach(["delete","get","head","options"],function(t){Pe.prototype[t]=function(r,n){return this.request(Re(n||{},{method:t,url:r,data:(n||{}).data}))}}),y.forEach(["post","put","patch"],function(t){function r(n){return function(a,i,s){return this.request(Re(s||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:i}))}}Pe.prototype[t]=r(),Pe.prototype[t+"Form"]=r(!0)});let Vi=class Ao{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(a){r=a});const n=this;this.promise.then(o=>{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](o);n._listeners=null}),this.promise.then=o=>{let a;const i=new Promise(s=>{n.subscribe(s),a=s}).then(o);return i.cancel=function(){n.unsubscribe(a)},i},t(function(a,i,s){n.reason||(n.reason=new Ne(a,i,s),r(n.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 r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Ao(function(o){t=o}),cancel:t}}};function Ki(e){return function(r){return e.apply(null,r)}}function Qi(e){return y.isObject(e)&&e.isAxiosError===!0}const St={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};Object.entries(St).forEach(([e,t])=>{St[t]=e});function ln(e){const t=new Pe(e),r=Rr(Pe.prototype.request,t);return y.extend(r,Pe.prototype,t,{allOwnKeys:!0}),y.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return ln(Re(e,o))},r}const M=ln(ze);M.Axios=Pe,M.CanceledError=Ne,M.CancelToken=Vi,M.isCancel=Wr,M.VERSION=an,M.toFormData=Ze,M.AxiosError=C,M.Cancel=M.CanceledError,M.all=function(t){return Promise.all(t)},M.spread=Ki,M.isAxiosError=Qi,M.mergeConfig=Re,M.AxiosHeaders=Q,M.formToJSON=e=>zr(y.isHTMLForm(e)?new FormData(e):e),M.getAdapter=nn.getAdapter,M.HttpStatusCode=St,M.default=M;const{Axios:Qa,AxiosError:Xa,CanceledError:Za,isCancel:Ya,CancelToken:es,VERSION:ts,all:rs,Cancel:ns,isAxiosError:os,spread:is,toFormData:as,AxiosHeaders:ss,HttpStatusCode:ls,formToJSON:us,getAdapter:cs,mergeConfig:fs}=M;class ne{static loadingDom=null;constructor(){}static show(t=.8,r=999){if(ne.loadingDom)return;const n=document.createElement("div");n.innerHTML=`
           <div style="width:42px;height:42px">
                <svg width="100" height="100" viewBox="0 0 100 100">
                    <circle cx="50" cy="50" r="20" stroke="#3498db" stroke-width="5" fill="none" stroke-dasharray="31.4 31.4">
                        <animateTransform 
                        attributeName="transform" 
                        type="rotate" 
                        from="0 50 50" 
                        to="360 50 50" 
                        dur="1s" 
                        repeatCount="indefinite"/>
                    </circle>
                </svg>
           </div>
        `,n.style.position="fixed",n.style.top="0",n.style.left="0",n.style.background=`rgba(122, 122, 122, ${t})`,n.style.width="100%",n.style.height="100%",n.style.display="flex",n.style.alignItems="center",n.style.justifyContent="center",n.style.zIndex=r.toString(),ne.loadingDom=n,document.body.appendChild(n)}static close(){ne.loadingDom&&ne.loadingDom.parentNode&&(ne.loadingDom.parentNode.removeChild(ne.loadingDom),ne.loadingDom=null)}}const We=new Map;function le(e){const t=Object.assign(Z,e),r=M.create({timeout:t.timeout,baseURL:t.baseURL});return r.interceptors.request.use(n=>{if(t.loading&&ne.show(),un(n),Xi(n),t.mark&&n.url){const o=n.url;if(typeof t.mark=="string")o.startsWith(`/${t.mark}`)&&(n.url=o.replace(`/${t.mark}`,""));else if(Array.isArray(t.mark))for(let a=0;a<t.mark.length;a++)typeof t.mark[a]=="string"?o.startsWith(`/${t.mark[a]}`)&&(n.url=o.replace(`/${t.mark[a]}`,"")):console.warn("ezAxios: mark 存在无法解析类型,已忽略");else console.error("ezAxios: mark 参数类型错误,请传入字符串或数组")}for(const o in t.headers)n.headers[o]=t.headers[o];return n},n=>Promise.reject(n)),r.interceptors.response.use(n=>(ne.close(),un(n.config),t.success&&t.success(n),Promise.resolve(t.briefly?n.data:n)),n=>{if(ne.close(),!!n)return M.isCancel(n)?n.message=="canceled"?Promise.reject(`ezAxios: 请求:${n.config.url} 已取消`):Promise.reject(`ezAxios: 连续的重复请求,已取消 
 错误信息:${n.message}`):n.response?(t.error&&t.error(n.response.status),Promise.reject(n.response)):Promise.reject(n.message)}),r}function Xi(e){const t=cn(e);e.cancelToken=e.cancelToken||new M.CancelToken(r=>{We.has(t)||We.set(t,r)})}function un(e){const t=cn(e);We.has(t)&&(We.get(t)(t),We.delete(t))}function cn(e){const{url:t,method:r,params:n}=e;let{data:o}=e;try{JSON.parse(o),o=JSON.parse(o)}catch{}return[t,r,JSON.stringify(n),JSON.stringify(o)].join("&")}function Zi(e,...t){let r=null,n="json",o=null;return t.length&&t.forEach((a,i)=>{i===0?typeof a=="object"?r=a:typeof a=="string"?a.toLowerCase()==="blob"?n="blob":console.error("ezAxios: 请求参数仅支持 Object、Array类型"):r&&console.error("ezAxios: 请求参数仅支持 Object、Array类型"):i<3?a&&(Object.prototype.toString.call(a)=="[object Object]"?o=a:typeof a=="string"&&a.toLowerCase()==="blob"?n="blob":console.warn("ezAxios: 存在无法处理的参数类型,这可能会影响您的程序")):console.warn("ezAxios: 接收到多余参数,已忽略")}),new Promise((a,i)=>{le(o).get(e,{params:r,responseType:n,signal:o?.signal}).then(s=>{a(s)}).catch(s=>{i(s)})})}var fn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Yi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ea(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){var o=!1;try{o=this instanceof n}catch{}return o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var Et,pn;function _e(){return pn||(pn=1,Et=TypeError),Et}const ta=ea(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Ot,dn;function it(){if(dn)return Ot;dn=1;var e=typeof Map=="function"&&Map.prototype,t=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,r=e&&t&&typeof t.get=="function"?t.get:null,n=e&&Map.prototype.forEach,o=typeof Set=="function"&&Set.prototype,a=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,i=o&&a&&typeof a.get=="function"?a.get:null,s=o&&Set.prototype.forEach,p=typeof WeakMap=="function"&&WeakMap.prototype,l=p?WeakMap.prototype.has:null,c=typeof WeakSet=="function"&&WeakSet.prototype,v=c?WeakSet.prototype.has:null,S=typeof WeakRef=="function"&&WeakRef.prototype,b=S?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,w=Object.prototype.toString,u=Function.prototype.toString,m=String.prototype.match,g=String.prototype.slice,E=String.prototype.replace,O=String.prototype.toUpperCase,A=String.prototype.toLowerCase,R=RegExp.prototype.test,P=Array.prototype.concat,T=Array.prototype.join,q=Array.prototype.slice,F=Math.floor,I=typeof BigInt=="function"?BigInt.prototype.valueOf:null,x=Object.getOwnPropertySymbols,G=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,j=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Y=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===j||!0)?Symbol.toStringTag:null,pe=Object.prototype.propertyIsEnumerable,de=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(f){return f.__proto__}:null);function _(f,d){if(f===1/0||f===-1/0||f!==f||f&&f>-1e3&&f<1e3||R.call(/e/,d))return d;var L=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof f=="number"){var B=f<0?-F(-f):F(f);if(B!==f){var U=String(B),N=g.call(d,U.length+1);return E.call(U,L,"$&_")+"."+E.call(E.call(N,/([0-9]{3})/g,"$&_"),/_$/,"")}}return E.call(d,L,"$&_")}var ee=ta,ye=ee.custom,xe=J(ye)?ye:null,me={__proto__:null,double:'"',single:"'"},ge={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Ot=function f(d,L,B,U){var N=L||{};if(X(N,"quoteStyle")&&!X(me,N.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(X(N,"maxStringLength")&&(typeof N.maxStringLength=="number"?N.maxStringLength<0&&N.maxStringLength!==1/0:N.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Ee=X(N,"customInspect")?N.customInspect:!0;if(typeof Ee!="boolean"&&Ee!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(X(N,"indent")&&N.indent!==null&&N.indent!=="	"&&!(parseInt(N.indent,10)===N.indent&&N.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(X(N,"numericSeparator")&&typeof N.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Te=N.numericSeparator;if(typeof d>"u")return"undefined";if(d===null)return"null";if(typeof d=="boolean")return d?"true":"false";if(typeof d=="string")return yo(d,N);if(typeof d=="number"){if(d===0)return 1/0/d>0?"0":"-0";var te=String(d);return Te?_(d,te):te}if(typeof d=="bigint"){var Oe=String(d)+"n";return Te?_(d,Oe):Oe}var vr=typeof N.depth>"u"?5:N.depth;if(typeof B>"u"&&(B=0),B>=vr&&vr>0&&typeof d=="object")return be(d)?"[Array]":"[Object]";var $e=Ma(N,B);if(typeof U>"u")U=[];else if(Se(U,d)>=0)return"[Circular]";function ce(Be,ut,ja){if(ut&&(U=q.call(U),U.push(ut)),ja){var Oo={depth:N.depth};return X(N,"quoteStyle")&&(Oo.quoteStyle=N.quoteStyle),f(Be,Oo,B+1,U)}return f(Be,N,B+1,U)}if(typeof d=="function"&&!H(d)){var mo=qe(d),go=st(d,ce);return"[Function"+(mo?": "+mo:" (anonymous)")+"]"+(go.length>0?" { "+T.call(go,", ")+" }":"")}if(J(d)){var vo=j?E.call(String(d),/^(Symbol\(.*\))_[^)]*$/,"$1"):G.call(d);return typeof d=="object"&&!j?Ge(vo):vo}if($a(d)){for(var Je="<"+A.call(String(d.nodeName)),br=d.attributes||[],lt=0;lt<br.length;lt++)Je+=" "+br[lt].name+"="+ve(he(br[lt].value),"double",N);return Je+=">",d.childNodes&&d.childNodes.length&&(Je+="..."),Je+="</"+A.call(String(d.nodeName))+">",Je}if(be(d)){if(d.length===0)return"[]";var wr=st(d,ce);return $e&&!Ua(wr)?"["+gr(wr,$e)+"]":"[ "+T.call(wr,", ")+" ]"}if(D(d)){var Sr=st(d,ce);return!("cause"in Error.prototype)&&"cause"in d&&!pe.call(d,"cause")?"{ ["+String(d)+"] "+T.call(P.call("[cause]: "+ce(d.cause),Sr),", ")+" }":Sr.length===0?"["+String(d)+"]":"{ ["+String(d)+"] "+T.call(Sr,", ")+" }"}if(typeof d=="object"&&Ee){if(xe&&typeof d[xe]=="function"&&ee)return ee(d,{depth:vr-B});if(Ee!=="symbol"&&typeof d.inspect=="function")return d.inspect()}if(ue(d)){var bo=[];return n&&n.call(d,function(Be,ut){bo.push(ce(ut,d,!0)+" => "+ce(Be,d))}),ho("Map",r.call(d),bo,$e)}if(Ie(d)){var wo=[];return s&&s.call(d,function(Be){wo.push(ce(Be,d))}),ho("Set",i.call(d),wo,$e)}if(De(d))return mr("WeakMap");if(Ia(d))return mr("WeakSet");if(Le(d))return mr("WeakRef");if($(d))return Ge(ce(Number(d)));if(ie(d))return Ge(ce(I.call(d)));if(z(d))return Ge(h.call(d));if(k(d))return Ge(ce(String(d)));if(typeof window<"u"&&d===window)return"{ [object Window] }";if(typeof globalThis<"u"&&d===globalThis||typeof fn<"u"&&d===fn)return"{ [object globalThis] }";if(!we(d)&&!H(d)){var Er=st(d,ce),So=de?de(d)===Object.prototype:d instanceof Object||d.constructor===Object,Or=d instanceof Object?"":"null prototype",Eo=!So&&Y&&Object(d)===d&&Y in d?g.call(ae(d),8,-1):Or?"Object":"",ka=So||typeof d.constructor!="function"?"":d.constructor.name?d.constructor.name+" ":"",Ar=ka+(Eo||Or?"["+T.call(P.call([],Eo||[],Or||[]),": ")+"] ":"");return Er.length===0?Ar+"{}":$e?Ar+"{"+gr(Er,$e)+"}":Ar+"{ "+T.call(Er,", ")+" }"}return String(d)};function ve(f,d,L){var B=L.quoteStyle||d,U=me[B];return U+f+U}function he(f){return E.call(String(f),/"/g,"&quot;")}function oe(f){return!Y||!(typeof f=="object"&&(Y in f||typeof f[Y]<"u"))}function be(f){return ae(f)==="[object Array]"&&oe(f)}function we(f){return ae(f)==="[object Date]"&&oe(f)}function H(f){return ae(f)==="[object RegExp]"&&oe(f)}function D(f){return ae(f)==="[object Error]"&&oe(f)}function k(f){return ae(f)==="[object String]"&&oe(f)}function $(f){return ae(f)==="[object Number]"&&oe(f)}function z(f){return ae(f)==="[object Boolean]"&&oe(f)}function J(f){if(j)return f&&typeof f=="object"&&f instanceof Symbol;if(typeof f=="symbol")return!0;if(!f||typeof f!="object"||!G)return!1;try{return G.call(f),!0}catch{}return!1}function ie(f){if(!f||typeof f!="object"||!I)return!1;try{return I.call(f),!0}catch{}return!1}var V=Object.prototype.hasOwnProperty||function(f){return f in this};function X(f,d){return V.call(f,d)}function ae(f){return w.call(f)}function qe(f){if(f.name)return f.name;var d=m.call(u.call(f),/^function\s*([\w$]+)/);return d?d[1]:null}function Se(f,d){if(f.indexOf)return f.indexOf(d);for(var L=0,B=f.length;L<B;L++)if(f[L]===d)return L;return-1}function ue(f){if(!r||!f||typeof f!="object")return!1;try{r.call(f);try{i.call(f)}catch{return!0}return f instanceof Map}catch{}return!1}function De(f){if(!l||!f||typeof f!="object")return!1;try{l.call(f,l);try{v.call(f,v)}catch{return!0}return f instanceof WeakMap}catch{}return!1}function Le(f){if(!b||!f||typeof f!="object")return!1;try{return b.call(f),!0}catch{}return!1}function Ie(f){if(!i||!f||typeof f!="object")return!1;try{i.call(f);try{r.call(f)}catch{return!0}return f instanceof Set}catch{}return!1}function Ia(f){if(!v||!f||typeof f!="object")return!1;try{v.call(f,v);try{l.call(f,l)}catch{return!0}return f instanceof WeakSet}catch{}return!1}function $a(f){return!f||typeof f!="object"?!1:typeof HTMLElement<"u"&&f instanceof HTMLElement?!0:typeof f.nodeName=="string"&&typeof f.getAttribute=="function"}function yo(f,d){if(f.length>d.maxStringLength){var L=f.length-d.maxStringLength,B="... "+L+" more character"+(L>1?"s":"");return yo(g.call(f,0,d.maxStringLength),d)+B}var U=ge[d.quoteStyle||"single"];U.lastIndex=0;var N=E.call(E.call(f,U,"\\$1"),/[\x00-\x1f]/g,Ba);return ve(N,"single",d)}function Ba(f){var d=f.charCodeAt(0),L={8:"b",9:"t",10:"n",12:"f",13:"r"}[d];return L?"\\"+L:"\\x"+(d<16?"0":"")+O.call(d.toString(16))}function Ge(f){return"Object("+f+")"}function mr(f){return f+" { ? }"}function ho(f,d,L,B){var U=B?gr(L,B):T.call(L,", ");return f+" ("+d+") {"+U+"}"}function Ua(f){for(var d=0;d<f.length;d++)if(Se(f[d],`
`)>=0)return!1;return!0}function Ma(f,d){var L;if(f.indent==="	")L="	";else if(typeof f.indent=="number"&&f.indent>0)L=T.call(Array(f.indent+1)," ");else return null;return{base:L,prev:T.call(Array(d+1),L)}}function gr(f,d){if(f.length===0)return"";var L=`
`+d.prev+d.base;return L+T.call(f,","+L)+`
`+d.prev}function st(f,d){var L=be(f),B=[];if(L){B.length=f.length;for(var U=0;U<f.length;U++)B[U]=X(f,U)?d(f[U],f):""}var N=typeof x=="function"?x(f):[],Ee;if(j){Ee={};for(var Te=0;Te<N.length;Te++)Ee["$"+N[Te]]=N[Te]}for(var te in f)X(f,te)&&(L&&String(Number(te))===te&&te<f.length||j&&Ee["$"+te]instanceof Symbol||(R.call(/[^\w$]/,te)?B.push(d(te,f)+": "+d(f[te],f)):B.push(te+": "+d(f[te],f))));if(typeof x=="function")for(var Oe=0;Oe<N.length;Oe++)pe.call(f,N[Oe])&&B.push("["+d(N[Oe])+"]: "+d(f[N[Oe]],f));return B}return Ot}var At,yn;function ra(){if(yn)return At;yn=1;var e=it(),t=_e(),r=function(s,p,l){for(var c=s,v;(v=c.next)!=null;c=v)if(v.key===p)return c.next=v.next,l||(v.next=s.next,s.next=v),v},n=function(s,p){if(s){var l=r(s,p);return l&&l.value}},o=function(s,p,l){var c=r(s,p);c?c.value=l:s.next={key:p,next:s.next,value:l}},a=function(s,p){return s?!!r(s,p):!1},i=function(s,p){if(s)return r(s,p,!0)};return At=function(){var p,l={assert:function(c){if(!l.has(c))throw new t("Side channel does not contain "+e(c))},delete:function(c){var v=p&&p.next,S=i(p,c);return S&&v&&v===S&&(p=void 0),!!S},get:function(c){return n(p,c)},has:function(c){return a(p,c)},set:function(c,v){p||(p={next:void 0}),o(p,c,v)}};return l},At}var Rt,hn;function mn(){return hn||(hn=1,Rt=Object),Rt}var Pt,gn;function na(){return gn||(gn=1,Pt=Error),Pt}var xt,vn;function oa(){return vn||(vn=1,xt=EvalError),xt}var Tt,bn;function ia(){return bn||(bn=1,Tt=RangeError),Tt}var Ct,wn;function aa(){return wn||(wn=1,Ct=ReferenceError),Ct}var Ft,Sn;function sa(){return Sn||(Sn=1,Ft=SyntaxError),Ft}var Nt,En;function la(){return En||(En=1,Nt=URIError),Nt}var _t,On;function ua(){return On||(On=1,_t=Math.abs),_t}var qt,An;function ca(){return An||(An=1,qt=Math.floor),qt}var Dt,Rn;function fa(){return Rn||(Rn=1,Dt=Math.max),Dt}var Lt,Pn;function pa(){return Pn||(Pn=1,Lt=Math.min),Lt}var It,xn;function da(){return xn||(xn=1,It=Math.pow),It}var $t,Tn;function ya(){return Tn||(Tn=1,$t=Math.round),$t}var Bt,Cn;function ha(){return Cn||(Cn=1,Bt=Number.isNaN||function(t){return t!==t}),Bt}var Ut,Fn;function ma(){if(Fn)return Ut;Fn=1;var e=ha();return Ut=function(r){return e(r)||r===0?r:r<0?-1:1},Ut}var Mt,Nn;function ga(){return Nn||(Nn=1,Mt=Object.getOwnPropertyDescriptor),Mt}var kt,_n;function qn(){if(_n)return kt;_n=1;var e=ga();if(e)try{e([],"length")}catch{e=null}return kt=e,kt}var jt,Dn;function va(){if(Dn)return jt;Dn=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return jt=e,jt}var zt,Ln;function ba(){return Ln||(Ln=1,zt=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;t[r]=o;for(var a in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(t,r);if(s.value!==o||s.enumerable!==!0)return!1}return!0}),zt}var Ht,In;function wa(){if(In)return Ht;In=1;var e=typeof Symbol<"u"&&Symbol,t=ba();return Ht=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},Ht}var Wt,$n;function Bn(){return $n||($n=1,Wt=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Wt}var Gt,Un;function Mn(){if(Un)return Gt;Un=1;var e=mn();return Gt=e.getPrototypeOf||null,Gt}var Jt,kn;function Sa(){if(kn)return Jt;kn=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,n="[object Function]",o=function(p,l){for(var c=[],v=0;v<p.length;v+=1)c[v]=p[v];for(var S=0;S<l.length;S+=1)c[S+p.length]=l[S];return c},a=function(p,l){for(var c=[],v=l,S=0;v<p.length;v+=1,S+=1)c[S]=p[v];return c},i=function(s,p){for(var l="",c=0;c<s.length;c+=1)l+=s[c],c+1<s.length&&(l+=p);return l};return Jt=function(p){var l=this;if(typeof l!="function"||t.apply(l)!==n)throw new TypeError(e+l);for(var c=a(arguments,1),v,S=function(){if(this instanceof v){var m=l.apply(this,o(c,arguments));return Object(m)===m?m:this}return l.apply(p,o(c,arguments))},b=r(0,l.length-c.length),h=[],w=0;w<b;w++)h[w]="$"+w;if(v=Function("binder","return function ("+i(h,",")+"){ return binder.apply(this,arguments); }")(S),l.prototype){var u=function(){};u.prototype=l.prototype,v.prototype=new u,u.prototype=null}return v},Jt}var Vt,jn;function at(){if(jn)return Vt;jn=1;var e=Sa();return Vt=Function.prototype.bind||e,Vt}var Kt,zn;function Qt(){return zn||(zn=1,Kt=Function.prototype.call),Kt}var Xt,Hn;function Wn(){return Hn||(Hn=1,Xt=Function.prototype.apply),Xt}var Zt,Gn;function Ea(){return Gn||(Gn=1,Zt=typeof Reflect<"u"&&Reflect&&Reflect.apply),Zt}var Yt,Jn;function Oa(){if(Jn)return Yt;Jn=1;var e=at(),t=Wn(),r=Qt(),n=Ea();return Yt=n||e.call(r,t),Yt}var er,Vn;function Kn(){if(Vn)return er;Vn=1;var e=at(),t=_e(),r=Qt(),n=Oa();return er=function(a){if(a.length<1||typeof a[0]!="function")throw new t("a function is required");return n(e,r,a)},er}var tr,Qn;function Aa(){if(Qn)return tr;Qn=1;var e=Kn(),t=qn(),r;try{r=[].__proto__===Array.prototype}catch(i){if(!i||typeof i!="object"||!("code"in i)||i.code!=="ERR_PROTO_ACCESS")throw i}var n=!!r&&t&&t(Object.prototype,"__proto__"),o=Object,a=o.getPrototypeOf;return tr=n&&typeof n.get=="function"?e([n.get]):typeof a=="function"?function(s){return a(s==null?s:o(s))}:!1,tr}var rr,Xn;function Ra(){if(Xn)return rr;Xn=1;var e=Bn(),t=Mn(),r=Aa();return rr=e?function(o){return e(o)}:t?function(o){if(!o||typeof o!="object"&&typeof o!="function")throw new TypeError("getProto: not an object");return t(o)}:r?function(o){return r(o)}:null,rr}var nr,Zn;function Pa(){if(Zn)return nr;Zn=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=at();return nr=r.call(e,t),nr}var or,Yn;function ir(){if(Yn)return or;Yn=1;var e,t=mn(),r=na(),n=oa(),o=ia(),a=aa(),i=sa(),s=_e(),p=la(),l=ua(),c=ca(),v=fa(),S=pa(),b=da(),h=ya(),w=ma(),u=Function,m=function(H){try{return u('"use strict"; return ('+H+").constructor;")()}catch{}},g=qn(),E=va(),O=function(){throw new s},A=g?function(){try{return arguments.callee,O}catch{try{return g(arguments,"callee").get}catch{return O}}}():O,R=wa()(),P=Ra(),T=Mn(),q=Bn(),F=Wn(),I=Qt(),x={},G=typeof Uint8Array>"u"||!P?e:P(Uint8Array),j={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":R&&P?P([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":x,"%AsyncGenerator%":x,"%AsyncGeneratorFunction%":x,"%AsyncIteratorPrototype%":x,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":n,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":u,"%GeneratorFunction%":x,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":R&&P?P(P([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!R||!P?e:P(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":g,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":o,"%ReferenceError%":a,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!R||!P?e:P(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":R&&P?P(""[Symbol.iterator]()):e,"%Symbol%":R?Symbol:e,"%SyntaxError%":i,"%ThrowTypeError%":A,"%TypedArray%":G,"%TypeError%":s,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":p,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":I,"%Function.prototype.apply%":F,"%Object.defineProperty%":E,"%Object.getPrototypeOf%":T,"%Math.abs%":l,"%Math.floor%":c,"%Math.max%":v,"%Math.min%":S,"%Math.pow%":b,"%Math.round%":h,"%Math.sign%":w,"%Reflect.getPrototypeOf%":q};if(P)try{null.error}catch(H){var Y=P(P(H));j["%Error.prototype%"]=Y}var pe=function H(D){var k;if(D==="%AsyncFunction%")k=m("async function () {}");else if(D==="%GeneratorFunction%")k=m("function* () {}");else if(D==="%AsyncGeneratorFunction%")k=m("async function* () {}");else if(D==="%AsyncGenerator%"){var $=H("%AsyncGeneratorFunction%");$&&(k=$.prototype)}else if(D==="%AsyncIteratorPrototype%"){var z=H("%AsyncGenerator%");z&&P&&(k=P(z.prototype))}return j[D]=k,k},de={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},_=at(),ee=Pa(),ye=_.call(I,Array.prototype.concat),xe=_.call(F,Array.prototype.splice),me=_.call(I,String.prototype.replace),ge=_.call(I,String.prototype.slice),ve=_.call(I,RegExp.prototype.exec),he=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,oe=/\\(\\)?/g,be=function(D){var k=ge(D,0,1),$=ge(D,-1);if(k==="%"&&$!=="%")throw new i("invalid intrinsic syntax, expected closing `%`");if($==="%"&&k!=="%")throw new i("invalid intrinsic syntax, expected opening `%`");var z=[];return me(D,he,function(J,ie,V,X){z[z.length]=V?me(X,oe,"$1"):ie||J}),z},we=function(D,k){var $=D,z;if(ee(de,$)&&(z=de[$],$="%"+z[0]+"%"),ee(j,$)){var J=j[$];if(J===x&&(J=pe($)),typeof J>"u"&&!k)throw new s("intrinsic "+D+" exists, but is not available. Please file an issue!");return{alias:z,name:$,value:J}}throw new i("intrinsic "+D+" does not exist!")};return or=function(D,k){if(typeof D!="string"||D.length===0)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof k!="boolean")throw new s('"allowMissing" argument must be a boolean');if(ve(/^%?[^%]*%?$/,D)===null)throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var $=be(D),z=$.length>0?$[0]:"",J=we("%"+z+"%",k),ie=J.name,V=J.value,X=!1,ae=J.alias;ae&&(z=ae[0],xe($,ye([0,1],ae)));for(var qe=1,Se=!0;qe<$.length;qe+=1){var ue=$[qe],De=ge(ue,0,1),Le=ge(ue,-1);if((De==='"'||De==="'"||De==="`"||Le==='"'||Le==="'"||Le==="`")&&De!==Le)throw new i("property names with quotes must have matching quotes");if((ue==="constructor"||!Se)&&(X=!0),z+="."+ue,ie="%"+z+"%",ee(j,ie))V=j[ie];else if(V!=null){if(!(ue in V)){if(!k)throw new s("base intrinsic for "+D+" exists, but the property is not available.");return}if(g&&qe+1>=$.length){var Ie=g(V,ue);Se=!!Ie,Se&&"get"in Ie&&!("originalValue"in Ie.get)?V=Ie.get:V=V[ue]}else Se=ee(V,ue),V=V[ue];Se&&!X&&(j[ie]=V)}}return V},or}var ar,eo;function to(){if(eo)return ar;eo=1;var e=ir(),t=Kn(),r=t([e("%String.prototype.indexOf%")]);return ar=function(o,a){var i=e(o,!!a);return typeof i=="function"&&r(o,".prototype.")>-1?t([i]):i},ar}var sr,ro;function no(){if(ro)return sr;ro=1;var e=ir(),t=to(),r=it(),n=_e(),o=e("%Map%",!0),a=t("Map.prototype.get",!0),i=t("Map.prototype.set",!0),s=t("Map.prototype.has",!0),p=t("Map.prototype.delete",!0),l=t("Map.prototype.size",!0);return sr=!!o&&function(){var v,S={assert:function(b){if(!S.has(b))throw new n("Side channel does not contain "+r(b))},delete:function(b){if(v){var h=p(v,b);return l(v)===0&&(v=void 0),h}return!1},get:function(b){if(v)return a(v,b)},has:function(b){return v?s(v,b):!1},set:function(b,h){v||(v=new o),i(v,b,h)}};return S},sr}var lr,oo;function xa(){if(oo)return lr;oo=1;var e=ir(),t=to(),r=it(),n=no(),o=_e(),a=e("%WeakMap%",!0),i=t("WeakMap.prototype.get",!0),s=t("WeakMap.prototype.set",!0),p=t("WeakMap.prototype.has",!0),l=t("WeakMap.prototype.delete",!0);return lr=a?function(){var v,S,b={assert:function(h){if(!b.has(h))throw new o("Side channel does not contain "+r(h))},delete:function(h){if(a&&h&&(typeof h=="object"||typeof h=="function")){if(v)return l(v,h)}else if(n&&S)return S.delete(h);return!1},get:function(h){return a&&h&&(typeof h=="object"||typeof h=="function")&&v?i(v,h):S&&S.get(h)},has:function(h){return a&&h&&(typeof h=="object"||typeof h=="function")&&v?p(v,h):!!S&&S.has(h)},set:function(h,w){a&&h&&(typeof h=="object"||typeof h=="function")?(v||(v=new a),s(v,h,w)):n&&(S||(S=n()),S.set(h,w))}};return b}:n,lr}var ur,io;function Ta(){if(io)return ur;io=1;var e=_e(),t=it(),r=ra(),n=no(),o=xa(),a=o||n||r;return ur=function(){var s,p={assert:function(l){if(!p.has(l))throw new e("Side channel does not contain "+t(l))},delete:function(l){return!!s&&s.delete(l)},get:function(l){return s&&s.get(l)},has:function(l){return!!s&&s.has(l)},set:function(l,c){s||(s=a()),s.set(l,c)}};return p},ur}var cr,ao;function fr(){if(ao)return cr;ao=1;var e=String.prototype.replace,t=/%20/g,r={RFC1738:"RFC1738",RFC3986:"RFC3986"};return cr={default:r.RFC3986,formatters:{RFC1738:function(n){return e.call(n,t,"+")},RFC3986:function(n){return String(n)}},RFC1738:r.RFC1738,RFC3986:r.RFC3986},cr}var pr,so;function lo(){if(so)return pr;so=1;var e=fr(),t=Object.prototype.hasOwnProperty,r=Array.isArray,n=function(){for(var u=[],m=0;m<256;++m)u.push("%"+((m<16?"0":"")+m.toString(16)).toUpperCase());return u}(),o=function(m){for(;m.length>1;){var g=m.pop(),E=g.obj[g.prop];if(r(E)){for(var O=[],A=0;A<E.length;++A)typeof E[A]<"u"&&O.push(E[A]);g.obj[g.prop]=O}}},a=function(m,g){for(var E=g&&g.plainObjects?{__proto__:null}:{},O=0;O<m.length;++O)typeof m[O]<"u"&&(E[O]=m[O]);return E},i=function u(m,g,E){if(!g)return m;if(typeof g!="object"&&typeof g!="function"){if(r(m))m.push(g);else if(m&&typeof m=="object")(E&&(E.plainObjects||E.allowPrototypes)||!t.call(Object.prototype,g))&&(m[g]=!0);else return[m,g];return m}if(!m||typeof m!="object")return[m].concat(g);var O=m;return r(m)&&!r(g)&&(O=a(m,E)),r(m)&&r(g)?(g.forEach(function(A,R){if(t.call(m,R)){var P=m[R];P&&typeof P=="object"&&A&&typeof A=="object"?m[R]=u(P,A,E):m.push(A)}else m[R]=A}),m):Object.keys(g).reduce(function(A,R){var P=g[R];return t.call(A,R)?A[R]=u(A[R],P,E):A[R]=P,A},O)},s=function(m,g){return Object.keys(g).reduce(function(E,O){return E[O]=g[O],E},m)},p=function(u,m,g){var E=u.replace(/\+/g," ");if(g==="iso-8859-1")return E.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(E)}catch{return E}},l=1024,c=function(m,g,E,O,A){if(m.length===0)return m;var R=m;if(typeof m=="symbol"?R=Symbol.prototype.toString.call(m):typeof m!="string"&&(R=String(m)),E==="iso-8859-1")return escape(R).replace(/%u[0-9a-f]{4}/gi,function(G){return"%26%23"+parseInt(G.slice(2),16)+"%3B"});for(var P="",T=0;T<R.length;T+=l){for(var q=R.length>=l?R.slice(T,T+l):R,F=[],I=0;I<q.length;++I){var x=q.charCodeAt(I);if(x===45||x===46||x===95||x===126||x>=48&&x<=57||x>=65&&x<=90||x>=97&&x<=122||A===e.RFC1738&&(x===40||x===41)){F[F.length]=q.charAt(I);continue}if(x<128){F[F.length]=n[x];continue}if(x<2048){F[F.length]=n[192|x>>6]+n[128|x&63];continue}if(x<55296||x>=57344){F[F.length]=n[224|x>>12]+n[128|x>>6&63]+n[128|x&63];continue}I+=1,x=65536+((x&1023)<<10|q.charCodeAt(I)&1023),F[F.length]=n[240|x>>18]+n[128|x>>12&63]+n[128|x>>6&63]+n[128|x&63]}P+=F.join("")}return P},v=function(m){for(var g=[{obj:{o:m},prop:"o"}],E=[],O=0;O<g.length;++O)for(var A=g[O],R=A.obj[A.prop],P=Object.keys(R),T=0;T<P.length;++T){var q=P[T],F=R[q];typeof F=="object"&&F!==null&&E.indexOf(F)===-1&&(g.push({obj:R,prop:q}),E.push(F))}return o(g),m},S=function(m){return Object.prototype.toString.call(m)==="[object RegExp]"},b=function(m){return!m||typeof m!="object"?!1:!!(m.constructor&&m.constructor.isBuffer&&m.constructor.isBuffer(m))},h=function(m,g){return[].concat(m,g)},w=function(m,g){if(r(m)){for(var E=[],O=0;O<m.length;O+=1)E.push(g(m[O]));return E}return g(m)};return pr={arrayToObject:a,assign:s,combine:h,compact:v,decode:p,encode:c,isBuffer:b,isRegExp:S,maybeMap:w,merge:i},pr}var dr,uo;function Ca(){if(uo)return dr;uo=1;var e=Ta(),t=lo(),r=fr(),n=Object.prototype.hasOwnProperty,o={brackets:function(u){return u+"[]"},comma:"comma",indices:function(u,m){return u+"["+m+"]"},repeat:function(u){return u}},a=Array.isArray,i=Array.prototype.push,s=function(w,u){i.apply(w,a(u)?u:[u])},p=Date.prototype.toISOString,l=r.default,c={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:t.encode,encodeValuesOnly:!1,filter:void 0,format:l,formatter:r.formatters[l],indices:!1,serializeDate:function(u){return p.call(u)},skipNulls:!1,strictNullHandling:!1},v=function(u){return typeof u=="string"||typeof u=="number"||typeof u=="boolean"||typeof u=="symbol"||typeof u=="bigint"},S={},b=function w(u,m,g,E,O,A,R,P,T,q,F,I,x,G,j,Y,pe,de){for(var _=u,ee=de,ye=0,xe=!1;(ee=ee.get(S))!==void 0&&!xe;){var me=ee.get(u);if(ye+=1,typeof me<"u"){if(me===ye)throw new RangeError("Cyclic object value");xe=!0}typeof ee.get(S)>"u"&&(ye=0)}if(typeof q=="function"?_=q(m,_):_ instanceof Date?_=x(_):g==="comma"&&a(_)&&(_=t.maybeMap(_,function(ie){return ie instanceof Date?x(ie):ie})),_===null){if(A)return T&&!Y?T(m,c.encoder,pe,"key",G):m;_=""}if(v(_)||t.isBuffer(_)){if(T){var ge=Y?m:T(m,c.encoder,pe,"key",G);return[j(ge)+"="+j(T(_,c.encoder,pe,"value",G))]}return[j(m)+"="+j(String(_))]}var ve=[];if(typeof _>"u")return ve;var he;if(g==="comma"&&a(_))Y&&T&&(_=t.maybeMap(_,T)),he=[{value:_.length>0?_.join(",")||null:void 0}];else if(a(q))he=q;else{var oe=Object.keys(_);he=F?oe.sort(F):oe}var be=P?String(m).replace(/\./g,"%2E"):String(m),we=E&&a(_)&&_.length===1?be+"[]":be;if(O&&a(_)&&_.length===0)return we+"[]";for(var H=0;H<he.length;++H){var D=he[H],k=typeof D=="object"&&D&&typeof D.value<"u"?D.value:_[D];if(!(R&&k===null)){var $=I&&P?String(D).replace(/\./g,"%2E"):String(D),z=a(_)?typeof g=="function"?g(we,$):we:we+(I?"."+$:"["+$+"]");de.set(u,ye);var J=e();J.set(S,de),s(ve,w(k,z,g,E,O,A,R,P,g==="comma"&&Y&&a(_)?null:T,q,F,I,x,G,j,Y,pe,J))}}return ve},h=function(u){if(!u)return c;if(typeof u.allowEmptyArrays<"u"&&typeof u.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof u.encodeDotInKeys<"u"&&typeof u.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(u.encoder!==null&&typeof u.encoder<"u"&&typeof u.encoder!="function")throw new TypeError("Encoder has to be a function.");var m=u.charset||c.charset;if(typeof u.charset<"u"&&u.charset!=="utf-8"&&u.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var g=r.default;if(typeof u.format<"u"){if(!n.call(r.formatters,u.format))throw new TypeError("Unknown format option provided.");g=u.format}var E=r.formatters[g],O=c.filter;(typeof u.filter=="function"||a(u.filter))&&(O=u.filter);var A;if(u.arrayFormat in o?A=u.arrayFormat:"indices"in u?A=u.indices?"indices":"repeat":A=c.arrayFormat,"commaRoundTrip"in u&&typeof u.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var R=typeof u.allowDots>"u"?u.encodeDotInKeys===!0?!0:c.allowDots:!!u.allowDots;return{addQueryPrefix:typeof u.addQueryPrefix=="boolean"?u.addQueryPrefix:c.addQueryPrefix,allowDots:R,allowEmptyArrays:typeof u.allowEmptyArrays=="boolean"?!!u.allowEmptyArrays:c.allowEmptyArrays,arrayFormat:A,charset:m,charsetSentinel:typeof u.charsetSentinel=="boolean"?u.charsetSentinel:c.charsetSentinel,commaRoundTrip:!!u.commaRoundTrip,delimiter:typeof u.delimiter>"u"?c.delimiter:u.delimiter,encode:typeof u.encode=="boolean"?u.encode:c.encode,encodeDotInKeys:typeof u.encodeDotInKeys=="boolean"?u.encodeDotInKeys:c.encodeDotInKeys,encoder:typeof u.encoder=="function"?u.encoder:c.encoder,encodeValuesOnly:typeof u.encodeValuesOnly=="boolean"?u.encodeValuesOnly:c.encodeValuesOnly,filter:O,format:g,formatter:E,serializeDate:typeof u.serializeDate=="function"?u.serializeDate:c.serializeDate,skipNulls:typeof u.skipNulls=="boolean"?u.skipNulls:c.skipNulls,sort:typeof u.sort=="function"?u.sort:null,strictNullHandling:typeof u.strictNullHandling=="boolean"?u.strictNullHandling:c.strictNullHandling}};return dr=function(w,u){var m=w,g=h(u),E,O;typeof g.filter=="function"?(O=g.filter,m=O("",m)):a(g.filter)&&(O=g.filter,E=O);var A=[];if(typeof m!="object"||m===null)return"";var R=o[g.arrayFormat],P=R==="comma"&&g.commaRoundTrip;E||(E=Object.keys(m)),g.sort&&E.sort(g.sort);for(var T=e(),q=0;q<E.length;++q){var F=E[q],I=m[F];g.skipNulls&&I===null||s(A,b(I,F,R,P,g.allowEmptyArrays,g.strictNullHandling,g.skipNulls,g.encodeDotInKeys,g.encode?g.encoder:null,g.filter,g.sort,g.allowDots,g.serializeDate,g.format,g.formatter,g.encodeValuesOnly,g.charset,T))}var x=A.join(g.delimiter),G=g.addQueryPrefix===!0?"?":"";return g.charsetSentinel&&(g.charset==="iso-8859-1"?G+="utf8=%26%2310003%3B&":G+="utf8=%E2%9C%93&"),x.length>0?G+x:""},dr}var yr,co;function Fa(){if(co)return yr;co=1;var e=lo(),t=Object.prototype.hasOwnProperty,r=Array.isArray,n={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:e.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},o=function(S){return S.replace(/&#(\d+);/g,function(b,h){return String.fromCharCode(parseInt(h,10))})},a=function(S,b,h){if(S&&typeof S=="string"&&b.comma&&S.indexOf(",")>-1)return S.split(",");if(b.throwOnLimitExceeded&&h>=b.arrayLimit)throw new RangeError("Array limit exceeded. Only "+b.arrayLimit+" element"+(b.arrayLimit===1?"":"s")+" allowed in an array.");return S},i="utf8=%26%2310003%3B",s="utf8=%E2%9C%93",p=function(b,h){var w={__proto__:null},u=h.ignoreQueryPrefix?b.replace(/^\?/,""):b;u=u.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var m=h.parameterLimit===1/0?void 0:h.parameterLimit,g=u.split(h.delimiter,h.throwOnLimitExceeded?m+1:m);if(h.throwOnLimitExceeded&&g.length>m)throw new RangeError("Parameter limit exceeded. Only "+m+" parameter"+(m===1?"":"s")+" allowed.");var E=-1,O,A=h.charset;if(h.charsetSentinel)for(O=0;O<g.length;++O)g[O].indexOf("utf8=")===0&&(g[O]===s?A="utf-8":g[O]===i&&(A="iso-8859-1"),E=O,O=g.length);for(O=0;O<g.length;++O)if(O!==E){var R=g[O],P=R.indexOf("]="),T=P===-1?R.indexOf("="):P+1,q,F;T===-1?(q=h.decoder(R,n.decoder,A,"key"),F=h.strictNullHandling?null:""):(q=h.decoder(R.slice(0,T),n.decoder,A,"key"),F=e.maybeMap(a(R.slice(T+1),h,r(w[q])?w[q].length:0),function(x){return h.decoder(x,n.decoder,A,"value")})),F&&h.interpretNumericEntities&&A==="iso-8859-1"&&(F=o(String(F))),R.indexOf("[]=")>-1&&(F=r(F)?[F]:F);var I=t.call(w,q);I&&h.duplicates==="combine"?w[q]=e.combine(w[q],F):(!I||h.duplicates==="last")&&(w[q]=F)}return w},l=function(S,b,h,w){var u=0;if(S.length>0&&S[S.length-1]==="[]"){var m=S.slice(0,-1).join("");u=Array.isArray(b)&&b[m]?b[m].length:0}for(var g=w?b:a(b,h,u),E=S.length-1;E>=0;--E){var O,A=S[E];if(A==="[]"&&h.parseArrays)O=h.allowEmptyArrays&&(g===""||h.strictNullHandling&&g===null)?[]:e.combine([],g);else{O=h.plainObjects?{__proto__:null}:{};var R=A.charAt(0)==="["&&A.charAt(A.length-1)==="]"?A.slice(1,-1):A,P=h.decodeDotInKeys?R.replace(/%2E/g,"."):R,T=parseInt(P,10);!h.parseArrays&&P===""?O={0:g}:!isNaN(T)&&A!==P&&String(T)===P&&T>=0&&h.parseArrays&&T<=h.arrayLimit?(O=[],O[T]=g):P!=="__proto__"&&(O[P]=g)}g=O}return g},c=function(b,h,w,u){if(b){var m=w.allowDots?b.replace(/\.([^.[]+)/g,"[$1]"):b,g=/(\[[^[\]]*])/,E=/(\[[^[\]]*])/g,O=w.depth>0&&g.exec(m),A=O?m.slice(0,O.index):m,R=[];if(A){if(!w.plainObjects&&t.call(Object.prototype,A)&&!w.allowPrototypes)return;R.push(A)}for(var P=0;w.depth>0&&(O=E.exec(m))!==null&&P<w.depth;){if(P+=1,!w.plainObjects&&t.call(Object.prototype,O[1].slice(1,-1))&&!w.allowPrototypes)return;R.push(O[1])}if(O){if(w.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+w.depth+" and strictDepth is true");R.push("["+m.slice(O.index)+"]")}return l(R,h,w,u)}},v=function(b){if(!b)return n;if(typeof b.allowEmptyArrays<"u"&&typeof b.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof b.decodeDotInKeys<"u"&&typeof b.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(b.decoder!==null&&typeof b.decoder<"u"&&typeof b.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof b.charset<"u"&&b.charset!=="utf-8"&&b.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof b.throwOnLimitExceeded<"u"&&typeof b.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var h=typeof b.charset>"u"?n.charset:b.charset,w=typeof b.duplicates>"u"?n.duplicates:b.duplicates;if(w!=="combine"&&w!=="first"&&w!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var u=typeof b.allowDots>"u"?b.decodeDotInKeys===!0?!0:n.allowDots:!!b.allowDots;return{allowDots:u,allowEmptyArrays:typeof b.allowEmptyArrays=="boolean"?!!b.allowEmptyArrays:n.allowEmptyArrays,allowPrototypes:typeof b.allowPrototypes=="boolean"?b.allowPrototypes:n.allowPrototypes,allowSparse:typeof b.allowSparse=="boolean"?b.allowSparse:n.allowSparse,arrayLimit:typeof b.arrayLimit=="number"?b.arrayLimit:n.arrayLimit,charset:h,charsetSentinel:typeof b.charsetSentinel=="boolean"?b.charsetSentinel:n.charsetSentinel,comma:typeof b.comma=="boolean"?b.comma:n.comma,decodeDotInKeys:typeof b.decodeDotInKeys=="boolean"?b.decodeDotInKeys:n.decodeDotInKeys,decoder:typeof b.decoder=="function"?b.decoder:n.decoder,delimiter:typeof b.delimiter=="string"||e.isRegExp(b.delimiter)?b.delimiter:n.delimiter,depth:typeof b.depth=="number"||b.depth===!1?+b.depth:n.depth,duplicates:w,ignoreQueryPrefix:b.ignoreQueryPrefix===!0,interpretNumericEntities:typeof b.interpretNumericEntities=="boolean"?b.interpretNumericEntities:n.interpretNumericEntities,parameterLimit:typeof b.parameterLimit=="number"?b.parameterLimit:n.parameterLimit,parseArrays:b.parseArrays!==!1,plainObjects:typeof b.plainObjects=="boolean"?b.plainObjects:n.plainObjects,strictDepth:typeof b.strictDepth=="boolean"?!!b.strictDepth:n.strictDepth,strictNullHandling:typeof b.strictNullHandling=="boolean"?b.strictNullHandling:n.strictNullHandling,throwOnLimitExceeded:typeof b.throwOnLimitExceeded=="boolean"?b.throwOnLimitExceeded:!1}};return yr=function(S,b){var h=v(b);if(S===""||S===null||typeof S>"u")return h.plainObjects?{__proto__:null}:{};for(var w=typeof S=="string"?p(S,h):S,u=h.plainObjects?{__proto__:null}:{},m=Object.keys(w),g=0;g<m.length;++g){var E=m[g],O=c(E,w[E],h,typeof S=="string");u=e.merge(u,O,h)}return h.allowSparse===!0?u:e.compact(u)},yr}var hr,fo;function Na(){if(fo)return hr;fo=1;var e=Ca(),t=Fa(),r=fr();return hr={formats:r,parse:t,stringify:e},hr}var _a=Na();const po=Yi(_a);function qa(e,...t){let r=null,n=null,o="json",a=null;return t.length&&(t.forEach((i,s)=>{s===0?typeof i=="object"?r=i:typeof i=="string"?i.toLowerCase()==="blob"?o="blob":i.toLowerCase()==="json"||i.toLowerCase()==="query"||i.toLowerCase()==="file"||i.toLowerCase()==="data"||i.toLowerCase()==="form-data"||i.toLowerCase()==="formdata"?n=i.toLowerCase():console.error("ezAxios: 请求参数仅支持 Object、Array、File 类型"):r&&console.error("ezAxios: 请求参数仅支持 Object、Array、File 类型"):s<4?i&&(Object.prototype.toString.call(i)=="[object Object]"?a=i:typeof i=="string"?i.toLowerCase()==="blob"?o="blob":i.toLowerCase()==="json"||i.toLowerCase()==="query"||i.toLowerCase()==="file"||i.toLowerCase()==="data"||i.toLowerCase()==="form-data"||i.toLowerCase()==="formdata"?n=i.toLowerCase():console.warn("ezAxios: 存在无法处理的参数类型,这可能会影响您的程序"):console.warn(`ezAxios: 存在无法处理的参数类型 ${i},这可能会影响您的程序`)):console.warn("ezAxios: 接收到多余参数,已忽略")}),o!="json"&&n=="query"&&console.warn("ezAxios: 请参数类型为query时,设置返回值类型无效")),new Promise((i,s)=>{if(n==="query")le(a).post(e,null,{params:r,signal:a?.signal}).then(p=>{i(p)}).catch(p=>{s(p)});else if(n==="file"){const p=new FormData;if(r instanceof File)p.append("file",r);else for(const l in r)if(r[l]instanceof File)p.append(`${l}`,r[l]);else if(Object.prototype.toString.call(r[l])=="[object Array]"){const c=r[l].filter(v=>v instanceof File);c.length&&c.length<=r[l].length?(c.forEach((v,S)=>{p.append(`${l}[${S}]`,v)}),c.length<r[l].length&&console.warn(`ezAxios: 数组${l}存在非文件类型对象,已被忽略`)):p.append(`${l}`,JSON.stringify(r[l]))}else typeof r[l]=="string"?p.append(`${l}`,r[l]):p.append(`${l}`,JSON.stringify(r[l]));le(a).post(e,p,{responseType:o,signal:a?.signal}).then(l=>{i(l)}).catch(l=>{s(l)})}else n==="data"||n==="form-data"||n==="formdata"?le(a).post(e,po.stringify(r),{responseType:o,signal:a?.signal}).then(p=>{i(p)}).catch(p=>{s(p)}):le(a).post(e,r,{responseType:o,signal:a?.signal}).then(p=>{i(p)}).catch(p=>{s(p)})})}function Da(e,...t){let r=null,n=null,o="json",a=null;return t.length&&(t.forEach((i,s)=>{s===0?typeof i=="object"?r=i:typeof i=="string"?i.toLowerCase()==="blob"?o="blob":i.toLowerCase()==="json"||i.toLowerCase()==="query"||i.toLowerCase()==="file"||i.toLowerCase()==="data"||i.toLowerCase()==="form-data"||i.toLowerCase()==="formdata"?n=i.toLowerCase():console.error("ezAxios: 请求参数仅支持 Object、Array、File 类型"):r&&console.error("ezAxios: 请求参数仅支持 Object、Array、File 类型"):s<4?i&&(Object.prototype.toString.call(i)=="[object Object]"?a=i:typeof i=="string"?i.toLowerCase()==="blob"?o="blob":i.toLowerCase()==="json"||i.toLowerCase()==="query"||i.toLowerCase()==="file"||i.toLowerCase()==="data"||i.toLowerCase()==="form-data"||i.toLowerCase()==="formdata"?n=i.toLowerCase():console.warn("ezAxios: 存在无法处理的参数类型,这可能会影响您的程序"):console.warn("ezAxios: 存在无法处理的参数类型,这可能会影响您的程序")):console.warn("ezAxios: 接收到多余参数,已忽略")}),o!="json"&&n=="query"&&console.warn("ezAxios: 请参数类型为query时,设置返回值类型无效")),new Promise((i,s)=>{if(n==="query")le(a).put(e,null,{params:r,signal:a?.signal}).then(p=>{i(p)}).catch(p=>{s(p)});else if(n==="file"){const p=new FormData;if(r instanceof File)p.append("file",r);else for(const l in r)if(r[l]instanceof File)p.append(`${l}`,r[l]);else if(Object.prototype.toString.call(r[l])=="[object Array]"){const c=r[l].filter(v=>v instanceof File);c.length&&c.length<=r[l].length?(c.forEach((v,S)=>{p.append(`${l}[${S}]`,v)}),c.length<r[l].length&&console.warn(`ezAxios: 数组${l}存在非文件类型对象,已被忽略`)):p.append(`${l}`,JSON.stringify(r[l]))}else typeof r[l]=="string"?p.append(`${l}`,r[l]):p.append(`${l}`,JSON.stringify(r[l]));le(a).put(e,p,{responseType:o,signal:a?.signal}).then(l=>{i(l)}).catch(l=>{s(l)})}else n==="data"||n==="form-data"||n==="formdata"?le(a).put(e,po.stringify(r),{responseType:o,signal:a?.signal}).then(p=>{i(p)}).catch(p=>{s(p)}):le(a).put(e,r,{responseType:o,signal:a?.signal}).then(p=>{i(p)}).catch(p=>{s(p)})})}function La(e,...t){let r=null,n=null,o=null;return t.length&&t.forEach((a,i)=>{i===0?typeof a=="object"?r=a:typeof a=="string"?a.toLowerCase()==="query"||a.toLowerCase()==="json"?n=a.toLowerCase():console.error("ezAxios: 请求参数仅支持 Object、Array 类型"):r&&console.error("ezAxios: 请求参数仅支持 Object、Array 类型"):i<3?a&&(Object.prototype.toString.call(a)=="[object Object]"?o=a:typeof a=="string"&&(a.toLowerCase()==="query"||a.toLowerCase()==="json")?n=a.toLowerCase():console.warn("ezAxios: 存在无法处理的参数类型,这可能会影响您的程序")):console.warn("ezAxios: 接收到多余参数,已忽略")}),new Promise((a,i)=>{n==="query"?le(o).delete(e,{params:r,signal:o?.signal}).then(s=>{a(s)}).catch(s=>{i(s)}):le(o).delete(e,{data:r,signal:o?.signal}).then(s=>{a(s)}).catch(s=>{i(s)})})}re.AloneSet=xo,re.Loading=ne,re.default=Ro,re.del=La,re.get=Zi,re.post=qa,re.put=Da,Object.defineProperties(re,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});