@wiajs/req 1.7.28 → 1.7.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/node/req.cjs +124 -119
- package/dist/req.js +66 -63
- package/dist/req.min.js +3 -3
- package/dist/web/req.cjs +1911 -2397
- package/dist/web/req.mjs +1917 -2421
- package/lib/adapters/http.js +48 -40
- package/lib/adapters/xhr.js +3 -3
- package/lib/cancel/CancelToken.js +40 -40
- package/lib/core/Axios.js +11 -11
- package/lib/core/AxiosHeaders.js +3 -3
- package/lib/core/InterceptorManager.js +3 -3
- package/lib/helpers/AxiosTransformStream.js +34 -34
- package/lib/helpers/formDataToStream.js +18 -18
- package/lib/platform/node/classes/URLSearchParams.js +1 -1
- package/package.json +226 -214
package/dist/req.min.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @wia/req v1.7.
|
|
3
|
-
* (c) 2024 Sibyl Yu, Matt Zabriskie and contributors
|
|
2
|
+
* @wia/req v1.7.30
|
|
3
|
+
* (c) 2024-2025 Sibyl Yu, Matt Zabriskie and contributors
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).req=t()}(this,(function(){"use strict";function e(e,t){return function(){return e.apply(t,arguments)}}const{toString:t}=Object.prototype,{getPrototypeOf:r}=Object,n=(o=Object.create(null),e=>{const r=t.call(e);return o[r]||(o[r]=r.slice(8,-1).toLowerCase())});var o;const s=e=>(e=e.toLowerCase(),t=>n(t)===e),i=e=>t=>typeof t===e,{isArray:a}=Array,c=i("undefined");const u=s("ArrayBuffer");const l=i("string"),f=i("function"),p=i("number"),h=e=>null!==e&&"object"==typeof e,d=e=>{if("object"!==n(e))return!1;const t=r(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},m=s("Date"),y=s("File"),b=s("Blob"),g=s("FileList"),O=s("URLSearchParams"),[E,w,S,A]=["ReadableStream","Request","Response","Headers"].map(s);function R(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,o;if("object"!=typeof e&&(e=[e]),a(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const o=r?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let i;for(n=0;n<s;n++)i=o[n],t.call(null,e[i],i,e)}}function j(e,t){t=t.toLowerCase();const r=Object.keys(e);let n,o=r.length;for(;o-- >0;)if(n=r[o],t===n.toLowerCase())return n;return null}const T="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,_=e=>!c(e)&&e!==T;const P=(F="undefined"!=typeof Uint8Array&&r(Uint8Array),e=>F&&e instanceof F);var F;const x=s("HTMLFormElement"),N=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),v=s("RegExp"),C=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};R(r,((r,o)=>{let s;!1!==(s=t(r,o,e))&&(n[o]=s||r)})),Object.defineProperties(e,n)},B="abcdefghijklmnopqrstuvwxyz",D="0123456789",L={DIGIT:D,ALPHA:B,ALPHA_DIGIT:B+B.toUpperCase()+D};const k=s("AsyncFunction"),U=(I="function"==typeof setImmediate,q=f(T.postMessage),I?setImmediate:q?(M=`axios@${Math.random()}`,z=[],T.addEventListener("message",(({source:e,data:t})=>{e===T&&t===M&&z.length&&z.shift()()}),!1),e=>{z.push(e),T.postMessage(M,"*")}):e=>setTimeout(e));var I,q,M,z;const H="undefined"!=typeof queueMicrotask?queueMicrotask.bind(T):"undefined"!=typeof process&&process.nextTick||U;var J={isArray:a,isArrayBuffer:u,isBuffer:function(e){return null!==e&&!c(e)&&null!==e.constructor&&!c(e.constructor)&&f(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||f(e.append)&&("formdata"===(t=n(e))||"object"===t&&f(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&u(e.buffer),t},isString:l,isNumber:p,isBoolean:e=>!0===e||!1===e,isObject:h,isPlainObject:d,isReadableStream:E,isRequest:w,isResponse:S,isHeaders:A,isUndefined:c,isDate:m,isFile:y,isBlob:b,isRegExp:v,isFunction:f,isStream:e=>h(e)&&f(e.pipe),isURLSearchParams:O,isTypedArray:P,isFileList:g,forEach:R,merge:function e(){const{caseless:t}=_(this)&&this||{},r={},n=(n,o)=>{const s=t&&j(r,o)||o;d(r[s])&&d(n)?r[s]=e(r[s],n):d(n)?r[s]=e({},n):a(n)?r[s]=n.slice():r[s]=n};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&R(arguments[e],n);return r},extend:(t,r,n,{allOwnKeys:o}={})=>(R(r,((r,o)=>{n&&f(r)?t[o]=e(r,n):t[o]=r}),{allOwnKeys:o}),t),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(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)},toFlatObject:(e,t,n,o)=>{let s,i,a;const c={};if(t=t||{},null==e)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)a=s[i],o&&!o(a,e,t)||c[a]||(t[a]=e[a],c[a]=!0);e=!1!==n&&r(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:n,kindOfTest:s,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(a(e))return e;let t=e.length;if(!p(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:x,hasOwnProperty:N,hasOwnProp:N,reduceDescriptors:C,freezeMethods:e=>{C(e,((t,r)=>{if(f(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];f(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach((e=>{r[e]=!0}))};return a(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:j,global:T,isContextDefined:_,ALPHABET:L,generateString:(e=16,t=L.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&f(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(h(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const o=a(e)?[]:{};return R(e,((e,t)=>{const s=r(e,n+1);!c(s)&&(o[t]=s)})),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:k,isThenable:e=>e&&(h(e)||f(e))&&f(e.then)&&f(e.catch),setImmediate:U,asap:H,createErrorType:function(e,t,r){function n(r){Error.captureStackTrace(this,this.constructor),Object.assign(this,r||{}),this.code=e,this.message=this.cause?`${t}: ${this.cause.message}`:t}return n.prototype=new(r||Error),n.prototype.constructor=n,n.prototype.name=`Error [${e}]`,n}};function V(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)}J.inherits(V,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:J.toJSONObject(this.config),code:this.code,status:this.status}}});const $=V.prototype,K={};["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=>{K[e]={value:e}})),Object.defineProperties(V,K),Object.defineProperty($,"isAxiosError",{value:!0}),V.from=(e,t,r,n,o,s)=>{const i=Object.create($);return J.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),V.call(i,e.message,t,r,n,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};function W(e){return J.isPlainObject(e)||J.isArray(e)}function G(e){return J.endsWith(e,"[]")?e.slice(0,-2):e}function X(e,t,r){return e?e.concat(t).map((function(e,t){return e=G(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}const Z=J.toFlatObject(J,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Q(e,t,r){if(!J.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=J.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!J.isUndefined(t[e])}))).metaTokens,o=r.visitor||u,s=r.dots,i=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&J.isSpecCompliantForm(t);if(!J.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(J.isDate(e))return e.toISOString();if(!a&&J.isBlob(e))throw new V("Blob is not supported. Use a Buffer instead.");return J.isArrayBuffer(e)||J.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,r,o){let a=e;if(e&&!o&&"object"==typeof e)if(J.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(J.isArray(e)&&function(e){return J.isArray(e)&&!e.some(W)}(e)||(J.isFileList(e)||J.endsWith(r,"[]"))&&(a=J.toArray(e)))return r=G(r),a.forEach((function(e,n){!J.isUndefined(e)&&null!==e&&t.append(!0===i?X([r],n,s):null===i?r:r+"[]",c(e))})),!1;return!!W(e)||(t.append(X(o,r,s),c(e)),!1)}const l=[],f=Object.assign(Z,{defaultVisitor:u,convertValue:c,isVisitable:W});if(!J.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!J.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+n.join("."));l.push(r),J.forEach(r,(function(r,s){!0===(!(J.isUndefined(r)||null===r)&&o.call(t,r,J.isString(s)?s.trim():s,n,f))&&e(r,n?n.concat(s):[s])})),l.pop()}}(e),t}function Y(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function ee(e,t){this._pairs=[],e&&Q(e,this,t)}const te=ee.prototype;function re(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}te.append=function(e,t){this._pairs.push([e,t])},te.toString=function(e){const t=e?function(t){return e.call(this,t,Y)}:Y;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var ne=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){J.forEach(this.handlers,(function(t){null!==t&&e(t)}))}};const{toString:oe}=Object.prototype,{getPrototypeOf:se}=Object,ie=(e=>t=>{const r=oe.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),ae=e=>(e=e.toLowerCase(),t=>ie(t)===e),ce=e=>t=>typeof t===e,{isArray:ue}=Array,le=ce("undefined");const fe=ae("ArrayBuffer");const pe=ce("string"),he=ce("function"),de=ce("number"),me=e=>null!==e&&"object"==typeof e,ye=e=>{if("object"!==ie(e))return!1;const t=se(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},be=ae("Date"),ge=ae("File"),Oe=ae("Blob"),Ee=ae("FileList"),we=ae("URLSearchParams"),[Se,Ae,Re,je]=["ReadableStream","Request","Response","Headers"].map(ae);function Te(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,o;if("object"!=typeof e&&(e=[e]),ue(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const o=r?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let i;for(n=0;n<s;n++)i=o[n],t.call(null,e[i],i,e)}}function _e(e,t){t=t.toLowerCase();const r=Object.keys(e);let n,o=r.length;for(;o-- >0;)if(n=r[o],t===n.toLowerCase())return n;return null}const Pe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Fe=e=>!le(e)&&e!==Pe;const xe=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&se(Uint8Array)),Ne=ae("HTMLFormElement"),ve=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Ce=ae("RegExp"),Be=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Te(r,((r,o)=>{let s;!1!==(s=t(r,o,e))&&(n[o]=s||r)})),Object.defineProperties(e,n)},De="abcdefghijklmnopqrstuvwxyz",Le="0123456789",ke={DIGIT:Le,ALPHA:De,ALPHA_DIGIT:De+De.toUpperCase()+Le};const Ue=ae("AsyncFunction"),Ie=((e,t)=>e?setImmediate:t?((e,t)=>(Pe.addEventListener("message",(({source:r,data:n})=>{r===Pe&&n===e&&t.length&&t.shift()()}),!1),r=>{t.push(r),Pe.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))("function"==typeof setImmediate,he(Pe.postMessage)),qe="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Pe):"undefined"!=typeof process&&process.nextTick||Ie;var Me={isArray:ue,isArrayBuffer:fe,isBuffer:function(e){return null!==e&&!le(e)&&null!==e.constructor&&!le(e.constructor)&&he(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||he(e.append)&&("formdata"===(t=ie(e))||"object"===t&&he(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&fe(e.buffer),t},isString:pe,isNumber:de,isBoolean:e=>!0===e||!1===e,isObject:me,isPlainObject:ye,isReadableStream:Se,isRequest:Ae,isResponse:Re,isHeaders:je,isUndefined:le,isDate:be,isFile:ge,isBlob:Oe,isRegExp:Ce,isFunction:he,isStream:e=>me(e)&&he(e.pipe),isURLSearchParams:we,isTypedArray:xe,isFileList:Ee,forEach:Te,merge:function e(){const{caseless:t}=Fe(this)&&this||{},r={},n=(n,o)=>{const s=t&&_e(r,o)||o;ye(r[s])&&ye(n)?r[s]=e(r[s],n):ye(n)?r[s]=e({},n):ue(n)?r[s]=n.slice():r[s]=n};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&Te(arguments[e],n);return r},extend:(e,t,r,{allOwnKeys:n}={})=>(Te(t,((t,n)=>{r&&he(t)?e[n]=function(e,t){return function(){return e.apply(t,arguments)}}(t,r):e[n]=t}),{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(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)},toFlatObject:(e,t,r,n)=>{let o,s,i;const a={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],n&&!n(i,e,t)||a[i]||(t[i]=e[i],a[i]=!0);e=!1!==r&&se(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:ie,kindOfTest:ae,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(ue(e))return e;let t=e.length;if(!de(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:Ne,hasOwnProperty:ve,hasOwnProp:ve,reduceDescriptors:Be,freezeMethods:e=>{Be(e,((t,r)=>{if(he(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];he(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach((e=>{r[e]=!0}))};return ue(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:_e,global:Pe,isContextDefined:Fe,ALPHABET:ke,generateString:(e=16,t=ke.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&he(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(me(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const o=ue(e)?[]:{};return Te(e,((e,t)=>{const s=r(e,n+1);!le(s)&&(o[t]=s)})),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:Ue,isThenable:e=>e&&(me(e)||he(e))&&he(e.then)&&he(e.catch),setImmediate:Ie,asap:qe,createErrorType:function(e,t,r){function n(r){Error.captureStackTrace(this,this.constructor),Object.assign(this,r||{}),this.code=e,this.message=this.cause?`${t}: ${this.cause.message}`:t}return n.prototype=new(r||Error),n.prototype.constructor=n,n.prototype.name=`Error [${e}]`,n}};function ze(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)}Me.inherits(ze,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:Me.toJSONObject(this.config),code:this.code,status:this.status}}});const He=ze.prototype,Je={};function Ve(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}["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=>{Je[e]={value:e}})),Object.defineProperties(ze,Je),Object.defineProperty(He,"isAxiosError",{value:!0}),ze.from=(e,t,r,n,o,s)=>{const i=Object.create(He);return Me.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),ze.call(i,e.message,t,r,n,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};var $e=Ve("object"==typeof self?self.FormData:window.FormData);function Ke(e){return Me.isPlainObject(e)||Me.isArray(e)}function We(e){return Me.endsWith(e,"[]")?e.slice(0,-2):e}function Ge(e,t,r){return e?e.concat(t).map((function(e,t){return e=We(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}const Xe=Me.toFlatObject(Me,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Ze(e,t,r){if(!Me.isObject(e))throw new TypeError("target must be an object");t=t||new($e||FormData);const n=(r=Me.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Me.isUndefined(t[e])}))).metaTokens,o=r.visitor||u,s=r.dots,i=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&Me.isSpecCompliantForm(t);if(!Me.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(Me.isDate(e))return e.toISOString();if(!a&&Me.isBlob(e))throw new ze("Blob is not supported. Use a Buffer instead.");return Me.isArrayBuffer(e)||Me.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,r,o){let a=e;if(e&&!o&&"object"==typeof e)if(Me.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(Me.isArray(e)&&function(e){return Me.isArray(e)&&!e.some(Ke)}(e)||(Me.isFileList(e)||Me.endsWith(r,"[]"))&&(a=Me.toArray(e)))return r=We(r),a.forEach((function(e,n){!Me.isUndefined(e)&&null!==e&&t.append(!0===i?Ge([r],n,s):null===i?r:r+"[]",c(e))})),!1;return!!Ke(e)||(t.append(Ge(o,r,s),c(e)),!1)}const l=[],f=Object.assign(Xe,{defaultVisitor:u,convertValue:c,isVisitable:Ke});if(!Me.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!Me.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+n.join("."));l.push(r),Me.forEach(r,(function(r,s){!0===(!(Me.isUndefined(r)||null===r)&&o.call(t,r,Me.isString(s)?s.trim():s,n,f))&&e(r,n?n.concat(s):[s])})),l.pop()}}(e),t}function Qe(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Ye(e,t){this._pairs=[],e&&Ze(e,this,t)}const et=Ye.prototype;et.append=function(e,t){this._pairs.push([e,t])},et.toString=function(e){const t=e?function(t){return e.call(this,t,Qe)}:Qe;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var tt={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Ye,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const rt="undefined"!=typeof window&&"undefined"!=typeof document,nt="object"==typeof navigator&&navigator||void 0,ot=rt&&(!nt||["ReactNative","NativeScript","NS"].indexOf(nt.product)<0),st="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,it=rt&&window.location.href||"http://localhost";var at={...Object.freeze({__proto__:null,hasBrowserEnv:rt,hasStandardBrowserEnv:ot,hasStandardBrowserWebWorkerEnv:st,navigator:nt,origin:it}),...tt};function ct(e){function t(e,r,n,o){let s=e[o++];if("__proto__"===s)return!0;const i=Number.isFinite(+s),a=o>=e.length;if(s=!s&&J.isArray(n)?n.length:s,a)return J.hasOwnProp(n,s)?n[s]=[n[s],r]:n[s]=r,!i;n[s]&&J.isObject(n[s])||(n[s]=[]);return t(e,r,n[s],o)&&J.isArray(n[s])&&(n[s]=function(e){const t={},r=Object.keys(e);let n;const o=r.length;let s;for(n=0;n<o;n++)s=r[n],t[s]=e[s];return t}(n[s])),!i}if(J.isFormData(e)&&J.isFunction(e.entries)){const r={};return J.forEachEntry(e,((e,n)=>{t(function(e){return J.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,r,0)})),r}return null}const ut={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=J.isObject(e);o&&J.isHTMLForm(e)&&(e=new FormData(e));if(J.isFormData(e))return n?JSON.stringify(ct(e)):e;if(J.isArrayBuffer(e)||J.isBuffer(e)||J.isStream(e)||J.isFile(e)||J.isBlob(e)||J.isReadableStream(e))return e;if(J.isArrayBufferView(e))return e.buffer;if(J.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Q(e,new at.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return at.isNode&&J.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((s=J.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Q(s?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),function(e,t,r){if(J.isString(e))try{return(t||JSON.parse)(e),J.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ut.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(J.isResponse(e)||J.isReadableStream(e))return e;if(e&&J.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw V.from(e,V.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:at.classes.FormData,Blob:at.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};J.forEach(["delete","get","head","post","put","patch"],(e=>{ut.headers[e]={}}));var lt=ut;const ft=J.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"]);const pt=Symbol("internals");function ht(e){return e&&String(e).trim().toLowerCase()}function dt(e){return!1===e||null==e?e:J.isArray(e)?e.map(dt):String(e)}function mt(e,t,r,n,o){return J.isFunction(n)?n.call(this,t,r):(o&&(t=r),J.isString(t)?J.isString(n)?-1!==t.indexOf(n):J.isRegExp(n)?n.test(t):void 0:void 0)}let yt=class{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=ht(t);if(!o)throw new Error("header name must be a non-empty string");const s=J.findKey(n,o);(!s||void 0===n[s]||!0===r||void 0===r&&!1!==n[s])&&(n[s||t]=dt(e))}const s=(e,t)=>J.forEach(e,((e,r)=>o(e,r,t)));if(J.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if(J.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))s((e=>{const t={};let r,n,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!r||t[r]&&ft[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)})),t})(e),t);else if(J.isHeaders(e))for(const[t,n]of e.entries())o(n,t,r);else null!=e&&o(t,e,r);return this}get(e,t){if(e=ht(e)){const r=J.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(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}(e);if(J.isFunction(t))return t.call(this,e,r);if(J.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ht(e)){const r=J.findKey(this,e);return!(!r||void 0===this[r]||t&&!mt(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=ht(e)){const o=J.findKey(r,e);!o||t&&!mt(0,r[o],o,t)||(delete r[o],n=!0)}}return J.isArray(e)?e.forEach(o):o(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const o=t[r];e&&!mt(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return J.forEach(this,((n,o)=>{const s=J.findKey(r,o);if(s)return t[s]=dt(n),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(o):String(o).trim();i!==o&&delete t[o],t[i]=dt(n),r[i]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return J.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&J.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach((e=>r.set(e))),r}static accessor(e){const t=(this[pt]=this[pt]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=ht(e);t[n]||(!function(e,t){const r=J.toCamelCase(" "+t);["get","set","has"].forEach((n=>{Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})}))}(r,e),t[n]=!0)}return J.isArray(e)?e.forEach(n):n(e),this}};yt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),J.reduceDescriptors(yt.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),J.freezeMethods(yt);var bt=yt;function gt(e,t){const r=this||lt,n=t||r,o=bt.from(n.headers);let s=n.data;return J.forEach(e,(function(e){s=e.call(r,s,o.normalize(),t?t.status:void 0)})),o.normalize(),s}function Ot(e){return!(!e||!e.__CANCEL__)}function Et(e,t,r){V.call(this,null==e?"canceled":e,V.ERR_CANCELED,t,r),this.name="CanceledError"}J.inherits(Et,V,{__CANCEL__:!0});const wt="undefined"!=typeof XMLHttpRequest;const St={http:null,xhr:wt&&class{constructor(e){this.init(e)}init(e){}request(){}stream(){}}};J.forEach(St,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));var At=e=>{e=J.isArray(e)?e:[e];const{length:t}=e;let r,n;for(let o=0;o<t&&(r=e[o],!(n=J.isString(r)?St[r.toLowerCase()]:r));o++);if(!n){if(!1===n)throw new V(`Adapter ${r} is not supported by the environment`,"ERR_NOT_SUPPORT");throw new Error(J.hasOwnProp(St,r)?`Adapter '${r}' is not available in the build`:`Unknown adapter '${r}'`)}if(!J.isFunction(n))throw new TypeError("adapter is not a function");return n};function Rt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Et(null,e)}function jt(e){let t;Rt(e),e.headers=bt.from(e.headers),e.data=gt.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);const r=new(At(e.adapter||lt.adapter))(e);return t=e.stream?r.request(this):r.request(this).then((t=>(Rt(e),t.data=gt.call(e,e.transformResponse,t),Object.defineProperty(t,"body",{get:()=>t.data}),t.headers=bt.from(t.headers),t)),(t=>(Ot(t)||(Rt(e),t&&t.response&&(t.response.data=gt.call(e,e.transformResponse,t.response),t.response.data&&!t.response.body&&(t.response.body=t.response.data),t.response.headers=bt.from(t.response.headers))),Promise.reject(t)))),t}const Tt=e=>e instanceof bt?{...e}:e;function _t(e,t){t=t||{};const r={};function n(e,t,r){return J.isPlainObject(e)&&J.isPlainObject(t)?J.merge.call({caseless:r},e,t):J.isPlainObject(t)?J.merge({},t):J.isArray(t)?t.slice():t}function o(e,t,r){return J.isUndefined(t)?J.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function s(e,t){if(!J.isUndefined(t))return n(void 0,t)}function i(e,t){return J.isUndefined(t)?J.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function a(r,o,s){return s in t?n(r,o):s in e?n(void 0,r):void 0}const c={url:s,method:s,data:s,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:a,headers:(e,t)=>o(Tt(e),Tt(t),!0)};return J.forEach(Object.keys(Object.assign({},e,t)),(function(n){const s=c[n]||o,i=s(e[n],t[n],n);J.isUndefined(i)&&s!==a||(r[n]=i)})),r}const Pt="1.7.7",Ft={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Ft[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const xt={};Ft.transitional=function(e,t,r){function n(e,t){return"[Axios v1.7.7] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,s)=>{if(!1===e)throw new V(n(o," has been removed"+(t?" in "+t:"")),V.ERR_DEPRECATED);return t&&!xt[o]&&(xt[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,s)}},Ft.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};var Nt={assertOptions:function(e,t,r){if("object"!=typeof e)throw new V("options must be an object",V.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const s=n[o],i=t[s];if(i){const t=e[s],r=void 0===t||i(t,s,e);if(!0!==r)throw new V("option "+s+" must be "+r,V.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new V("Unknown option "+s,V.ERR_BAD_OPTION)}},validators:Ft};const{validators:vt}=Nt;let Ct=class{constructor(e){this.defaults=e,this.config=this.defaults,this.interceptors={request:new ne,response:new ne},this.init()}init(){const e=this;["url","method","baseURL","transformRequest","transformResponse","headers","params","paramsSerializer","body","data","timeout","withCredentials","adapter","auth","responseType","responseEncoding","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","maxBodyLength","validateStatus","maxRedirects","beforeRedirect","socketPath","httpAgent","httpsAgent","agent","cancelToken","signal","decompress","insecureHTTPParser","transitional","env","formSerializer","maxRate"].forEach((t=>Object.defineProperty(e,t,{enumerable:!0,get:()=>e.config[t],set(r){e.config[t]=r}})))}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t,r=!1){let n=null;"string"==typeof e?(t=t||{}).url=e:t=e||{},!t.data&&t.body&&(t.data=t.body),t=_t(this.defaults,t);const{transitional:o,paramsSerializer:s,headers:i}=t;void 0!==o&&Nt.assertOptions(o,{silentJSONParsing:vt.transitional(vt.boolean),forcedJSONParsing:vt.transitional(vt.boolean),clarifyTimeoutError:vt.transitional(vt.boolean)},!1),s&&(J.isFunction(s)?t.paramsSerializer={serialize:s}:Nt.assertOptions(s,{encode:vt.function,serialize:vt.function},!0)),Nt.assertOptions(t,{baseUrl:vt.spelling("baseURL"),withXsrfToken:vt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();const a=i&&J.merge(i.common,i[t.method]);i&&J.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),t.headers=bt.concat(a,i);const c=[];let u=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(u=u&&e.synchronous,c.unshift(e.fulfilled,e.rejected))}));const l=[];let f;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let p,h=0;if(r)t.stream=!0,n=jt.call(this,t);else if(u){p=c.length;let e=t;for(h=0;h<p;){const t=c[h++],r=c[h++];try{e=t(e)}catch(e){r.call(this,e);break}}try{for(f=jt.call(this,e),h=0,p=l.length;h<p;)f=f.then(l[h++],l[h++]);n=f}catch(e){n=Promise.reject(e)}}else{const e=[jt.bind(this),void 0];for(e.unshift(...c),e.push(...l),p=e.length,f=Promise.resolve(t);h<p;)f=f.then(e[h++],e[h++]);n=f}return n}stream(e,t){return this._request(e,t,!0)}getUri(e){e=_t(this.defaults,e);var t,r;return function(e,t,r){if(!t)return e;const n=r&&r.encode||re,o=r&&r.serialize;let s;if(s=o?o(t,r):J.isURLSearchParams(t)?t.toString():new ee(t,r).toString(n),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}((t=e.baseURL,r=e.url,t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(t,r):r),e.params,e.paramsSerializer)}};J.forEach(["head","options"],(function(e){Ct.prototype[e]=function(t,r){return this.request(_t(r||{},{method:e,url:t,data:(r||{}).data}))}})),J.forEach(["delete","get"],(function(e){Ct.prototype[e]=function(t,r,n){return this.request(_t(n||{},{method:e,url:t,params:r}))}})),J.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,o){return this.request(_t(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}Ct.prototype[e]=t(),Ct.prototype[`${e}Form`]=t(!0)})),J.forEach(["gets"],(function(e){Ct.prototype[e]=function(t,r,n){return this.stream(_t(n||{},{method:e,url:t,params:r,data:(n||{}).data}))}})),J.forEach(["posts","puts","patchs"],(function(e){function t(t){return function(r,n,o){return this.stream(_t(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}Ct.prototype[e]=t(),Ct.prototype[`${e}Forms`]=t(!0)}));var Bt=Ct;var Dt=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const r=this;this.promise.then((e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null})),this.promise.then=e=>{let t;const n=new Promise((e=>{r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e,n,o){r.reason||(r.reason=new Et(e,n,o),t(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e((function(e){t=e})),cancel:t}}};const Lt=function t(r){const n=new Bt(r),o=e(Bt.prototype.request,n);return J.extend(o,Bt.prototype,n,{allOwnKeys:!0}),J.extend(o,n,null,{allOwnKeys:!0}),o.create=function(e){return t(_t(r,e))},o}(lt);return Lt.Axios=Bt,Lt.CanceledError=Et,Lt.CancelToken=Dt,Lt.isCancel=Ot,Lt.VERSION=Pt,Lt.toFormData=Q,Lt.AxiosError=V,Lt.Cancel=Lt.CanceledError,Lt.all=e=>Promise.all(e),Lt.spread=function(e){return function(t){return e.apply(null,t)}},Lt.isAxiosError=function(e){return J.isObject(e)&&!0===e.isAxiosError},Lt.mergeConfig=_t,Lt.AxiosHeaders=bt,Lt.formToJSON=e=>ct(J.isHTMLForm(e)?new FormData(e):e),Lt.getAdapter=At,Lt.default=Lt,Lt}));
|
|
6
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).req=t()}(this,(function(){"use strict";function e(e,t){return function(){return e.apply(t,arguments)}}const{toString:t}=Object.prototype,{getPrototypeOf:r}=Object,n=(o=Object.create(null),e=>{const r=t.call(e);return o[r]||(o[r]=r.slice(8,-1).toLowerCase())});var o;const s=e=>(e=e.toLowerCase(),t=>n(t)===e),i=e=>t=>typeof t===e,{isArray:a}=Array,c=i("undefined");const u=s("ArrayBuffer");const l=i("string"),f=i("function"),p=i("number"),h=e=>null!==e&&"object"==typeof e,d=e=>{if("object"!==n(e))return!1;const t=r(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},m=s("Date"),y=s("File"),b=s("Blob"),g=s("FileList"),O=s("URLSearchParams"),[E,w,S,A]=["ReadableStream","Request","Response","Headers"].map(s);function R(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,o;if("object"!=typeof e&&(e=[e]),a(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const o=r?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let i;for(n=0;n<s;n++)i=o[n],t.call(null,e[i],i,e)}}function j(e,t){t=t.toLowerCase();const r=Object.keys(e);let n,o=r.length;for(;o-- >0;)if(n=r[o],t===n.toLowerCase())return n;return null}const T="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,_=e=>!c(e)&&e!==T;const P=(F="undefined"!=typeof Uint8Array&&r(Uint8Array),e=>F&&e instanceof F);var F;const x=s("HTMLFormElement"),N=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),v=s("RegExp"),C=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};R(r,((r,o)=>{let s;!1!==(s=t(r,o,e))&&(n[o]=s||r)})),Object.defineProperties(e,n)},B="abcdefghijklmnopqrstuvwxyz",D="0123456789",L={DIGIT:D,ALPHA:B,ALPHA_DIGIT:B+B.toUpperCase()+D};const k=s("AsyncFunction"),U=(I="function"==typeof setImmediate,q=f(T.postMessage),I?setImmediate:q?(M=`axios@${Math.random()}`,z=[],T.addEventListener("message",(({source:e,data:t})=>{e===T&&t===M&&z.length&&z.shift()()}),!1),e=>{z.push(e),T.postMessage(M,"*")}):e=>setTimeout(e));var I,q,M,z;const H="undefined"!=typeof queueMicrotask?queueMicrotask.bind(T):"undefined"!=typeof process&&process.nextTick||U;var J={isArray:a,isArrayBuffer:u,isBuffer:function(e){return null!==e&&!c(e)&&null!==e.constructor&&!c(e.constructor)&&f(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||f(e.append)&&("formdata"===(t=n(e))||"object"===t&&f(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&u(e.buffer),t},isString:l,isNumber:p,isBoolean:e=>!0===e||!1===e,isObject:h,isPlainObject:d,isReadableStream:E,isRequest:w,isResponse:S,isHeaders:A,isUndefined:c,isDate:m,isFile:y,isBlob:b,isRegExp:v,isFunction:f,isStream:e=>h(e)&&f(e.pipe),isURLSearchParams:O,isTypedArray:P,isFileList:g,forEach:R,merge:function e(){const{caseless:t}=_(this)&&this||{},r={},n=(n,o)=>{const s=t&&j(r,o)||o;d(r[s])&&d(n)?r[s]=e(r[s],n):d(n)?r[s]=e({},n):a(n)?r[s]=n.slice():r[s]=n};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&R(arguments[e],n);return r},extend:(t,r,n,{allOwnKeys:o}={})=>(R(r,((r,o)=>{n&&f(r)?t[o]=e(r,n):t[o]=r}),{allOwnKeys:o}),t),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(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)},toFlatObject:(e,t,n,o)=>{let s,i,a;const c={};if(t=t||{},null==e)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)a=s[i],o&&!o(a,e,t)||c[a]||(t[a]=e[a],c[a]=!0);e=!1!==n&&r(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:n,kindOfTest:s,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(a(e))return e;let t=e.length;if(!p(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:x,hasOwnProperty:N,hasOwnProp:N,reduceDescriptors:C,freezeMethods:e=>{C(e,((t,r)=>{if(f(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];f(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach((e=>{r[e]=!0}))};return a(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:j,global:T,isContextDefined:_,ALPHABET:L,generateString:(e=16,t=L.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&f(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(h(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const o=a(e)?[]:{};return R(e,((e,t)=>{const s=r(e,n+1);!c(s)&&(o[t]=s)})),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:k,isThenable:e=>e&&(h(e)||f(e))&&f(e.then)&&f(e.catch),setImmediate:U,asap:H,createErrorType:function(e,t,r){function n(r){Error.captureStackTrace(this,this.constructor),Object.assign(this,r||{}),this.code=e,this.message=this.cause?`${t}: ${this.cause.message}`:t}return n.prototype=new(r||Error),n.prototype.constructor=n,n.prototype.name=`Error [${e}]`,n}};function V(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)}J.inherits(V,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:J.toJSONObject(this.config),code:this.code,status:this.status}}});const $=V.prototype,K={};["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=>{K[e]={value:e}})),Object.defineProperties(V,K),Object.defineProperty($,"isAxiosError",{value:!0}),V.from=(e,t,r,n,o,s)=>{const i=Object.create($);return J.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),V.call(i,e.message,t,r,n,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};function W(e){return J.isPlainObject(e)||J.isArray(e)}function G(e){return J.endsWith(e,"[]")?e.slice(0,-2):e}function X(e,t,r){return e?e.concat(t).map((function(e,t){return e=G(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}const Z=J.toFlatObject(J,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Q(e,t,r){if(!J.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=J.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!J.isUndefined(t[e])}))).metaTokens,o=r.visitor||u,s=r.dots,i=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&J.isSpecCompliantForm(t);if(!J.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(J.isDate(e))return e.toISOString();if(!a&&J.isBlob(e))throw new V("Blob is not supported. Use a Buffer instead.");return J.isArrayBuffer(e)||J.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,r,o){let a=e;if(e&&!o&&"object"==typeof e)if(J.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(J.isArray(e)&&function(e){return J.isArray(e)&&!e.some(W)}(e)||(J.isFileList(e)||J.endsWith(r,"[]"))&&(a=J.toArray(e)))return r=G(r),a.forEach((function(e,n){!J.isUndefined(e)&&null!==e&&t.append(!0===i?X([r],n,s):null===i?r:r+"[]",c(e))})),!1;return!!W(e)||(t.append(X(o,r,s),c(e)),!1)}const l=[],f=Object.assign(Z,{defaultVisitor:u,convertValue:c,isVisitable:W});if(!J.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!J.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+n.join("."));l.push(r),J.forEach(r,(function(r,s){!0===(!(J.isUndefined(r)||null===r)&&o.call(t,r,J.isString(s)?s.trim():s,n,f))&&e(r,n?n.concat(s):[s])})),l.pop()}}(e),t}function Y(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function ee(e,t){this._pairs=[],e&&Q(e,this,t)}const te=ee.prototype;function re(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}te.append=function(e,t){this._pairs.push([e,t])},te.toString=function(e){const t=e?function(t){return e.call(this,t,Y)}:Y;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var ne=class{use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){J.forEach(this.handlers,(function(t){null!==t&&e(t)}))}constructor(){this.handlers=[]}};const{toString:oe}=Object.prototype,{getPrototypeOf:se}=Object,ie=(e=>t=>{const r=oe.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),ae=e=>(e=e.toLowerCase(),t=>ie(t)===e),ce=e=>t=>typeof t===e,{isArray:ue}=Array,le=ce("undefined");const fe=ae("ArrayBuffer");const pe=ce("string"),he=ce("function"),de=ce("number"),me=e=>null!==e&&"object"==typeof e,ye=e=>{if("object"!==ie(e))return!1;const t=se(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},be=ae("Date"),ge=ae("File"),Oe=ae("Blob"),Ee=ae("FileList"),we=ae("URLSearchParams"),[Se,Ae,Re,je]=["ReadableStream","Request","Response","Headers"].map(ae);function Te(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,o;if("object"!=typeof e&&(e=[e]),ue(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const o=r?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let i;for(n=0;n<s;n++)i=o[n],t.call(null,e[i],i,e)}}function _e(e,t){t=t.toLowerCase();const r=Object.keys(e);let n,o=r.length;for(;o-- >0;)if(n=r[o],t===n.toLowerCase())return n;return null}const Pe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Fe=e=>!le(e)&&e!==Pe;const xe=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&se(Uint8Array)),Ne=ae("HTMLFormElement"),ve=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Ce=ae("RegExp"),Be=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Te(r,((r,o)=>{let s;!1!==(s=t(r,o,e))&&(n[o]=s||r)})),Object.defineProperties(e,n)},De="abcdefghijklmnopqrstuvwxyz",Le="0123456789",ke={DIGIT:Le,ALPHA:De,ALPHA_DIGIT:De+De.toUpperCase()+Le};const Ue=ae("AsyncFunction"),Ie=((e,t)=>e?setImmediate:t?((e,t)=>(Pe.addEventListener("message",(({source:r,data:n})=>{r===Pe&&n===e&&t.length&&t.shift()()}),!1),r=>{t.push(r),Pe.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))("function"==typeof setImmediate,he(Pe.postMessage)),qe="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Pe):"undefined"!=typeof process&&process.nextTick||Ie;var Me={isArray:ue,isArrayBuffer:fe,isBuffer:function(e){return null!==e&&!le(e)&&null!==e.constructor&&!le(e.constructor)&&he(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||he(e.append)&&("formdata"===(t=ie(e))||"object"===t&&he(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&fe(e.buffer),t},isString:pe,isNumber:de,isBoolean:e=>!0===e||!1===e,isObject:me,isPlainObject:ye,isReadableStream:Se,isRequest:Ae,isResponse:Re,isHeaders:je,isUndefined:le,isDate:be,isFile:ge,isBlob:Oe,isRegExp:Ce,isFunction:he,isStream:e=>me(e)&&he(e.pipe),isURLSearchParams:we,isTypedArray:xe,isFileList:Ee,forEach:Te,merge:function e(){const{caseless:t}=Fe(this)&&this||{},r={},n=(n,o)=>{const s=t&&_e(r,o)||o;ye(r[s])&&ye(n)?r[s]=e(r[s],n):ye(n)?r[s]=e({},n):ue(n)?r[s]=n.slice():r[s]=n};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&Te(arguments[e],n);return r},extend:(e,t,r,{allOwnKeys:n}={})=>(Te(t,((t,n)=>{r&&he(t)?e[n]=function(e,t){return function(){return e.apply(t,arguments)}}(t,r):e[n]=t}),{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(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)},toFlatObject:(e,t,r,n)=>{let o,s,i;const a={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],n&&!n(i,e,t)||a[i]||(t[i]=e[i],a[i]=!0);e=!1!==r&&se(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:ie,kindOfTest:ae,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(ue(e))return e;let t=e.length;if(!de(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:Ne,hasOwnProperty:ve,hasOwnProp:ve,reduceDescriptors:Be,freezeMethods:e=>{Be(e,((t,r)=>{if(he(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];he(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach((e=>{r[e]=!0}))};return ue(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:_e,global:Pe,isContextDefined:Fe,ALPHABET:ke,generateString:(e=16,t=ke.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&he(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(me(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const o=ue(e)?[]:{};return Te(e,((e,t)=>{const s=r(e,n+1);!le(s)&&(o[t]=s)})),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:Ue,isThenable:e=>e&&(me(e)||he(e))&&he(e.then)&&he(e.catch),setImmediate:Ie,asap:qe,createErrorType:function(e,t,r){function n(r){Error.captureStackTrace(this,this.constructor),Object.assign(this,r||{}),this.code=e,this.message=this.cause?`${t}: ${this.cause.message}`:t}return n.prototype=new(r||Error),n.prototype.constructor=n,n.prototype.name=`Error [${e}]`,n}};function ze(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)}Me.inherits(ze,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:Me.toJSONObject(this.config),code:this.code,status:this.status}}});const He=ze.prototype,Je={};function Ve(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}["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=>{Je[e]={value:e}})),Object.defineProperties(ze,Je),Object.defineProperty(He,"isAxiosError",{value:!0}),ze.from=(e,t,r,n,o,s)=>{const i=Object.create(He);return Me.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),ze.call(i,e.message,t,r,n,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};var $e=Ve("object"==typeof self?self.FormData:window.FormData);function Ke(e){return Me.isPlainObject(e)||Me.isArray(e)}function We(e){return Me.endsWith(e,"[]")?e.slice(0,-2):e}function Ge(e,t,r){return e?e.concat(t).map((function(e,t){return e=We(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}const Xe=Me.toFlatObject(Me,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Ze(e,t,r){if(!Me.isObject(e))throw new TypeError("target must be an object");t=t||new($e||FormData);const n=(r=Me.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Me.isUndefined(t[e])}))).metaTokens,o=r.visitor||u,s=r.dots,i=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&Me.isSpecCompliantForm(t);if(!Me.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(Me.isDate(e))return e.toISOString();if(!a&&Me.isBlob(e))throw new ze("Blob is not supported. Use a Buffer instead.");return Me.isArrayBuffer(e)||Me.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,r,o){let a=e;if(e&&!o&&"object"==typeof e)if(Me.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(Me.isArray(e)&&function(e){return Me.isArray(e)&&!e.some(Ke)}(e)||(Me.isFileList(e)||Me.endsWith(r,"[]"))&&(a=Me.toArray(e)))return r=We(r),a.forEach((function(e,n){!Me.isUndefined(e)&&null!==e&&t.append(!0===i?Ge([r],n,s):null===i?r:r+"[]",c(e))})),!1;return!!Ke(e)||(t.append(Ge(o,r,s),c(e)),!1)}const l=[],f=Object.assign(Xe,{defaultVisitor:u,convertValue:c,isVisitable:Ke});if(!Me.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!Me.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+n.join("."));l.push(r),Me.forEach(r,(function(r,s){!0===(!(Me.isUndefined(r)||null===r)&&o.call(t,r,Me.isString(s)?s.trim():s,n,f))&&e(r,n?n.concat(s):[s])})),l.pop()}}(e),t}function Qe(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Ye(e,t){this._pairs=[],e&&Ze(e,this,t)}const et=Ye.prototype;et.append=function(e,t){this._pairs.push([e,t])},et.toString=function(e){const t=e?function(t){return e.call(this,t,Qe)}:Qe;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var tt={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Ye,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const rt="undefined"!=typeof window&&"undefined"!=typeof document,nt="object"==typeof navigator&&navigator||void 0,ot=rt&&(!nt||["ReactNative","NativeScript","NS"].indexOf(nt.product)<0),st="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,it=rt&&window.location.href||"http://localhost";var at={...Object.freeze({__proto__:null,hasBrowserEnv:rt,hasStandardBrowserEnv:ot,hasStandardBrowserWebWorkerEnv:st,navigator:nt,origin:it}),...tt};function ct(e){function t(e,r,n,o){let s=e[o++];if("__proto__"===s)return!0;const i=Number.isFinite(+s),a=o>=e.length;if(s=!s&&J.isArray(n)?n.length:s,a)return J.hasOwnProp(n,s)?n[s]=[n[s],r]:n[s]=r,!i;n[s]&&J.isObject(n[s])||(n[s]=[]);return t(e,r,n[s],o)&&J.isArray(n[s])&&(n[s]=function(e){const t={},r=Object.keys(e);let n;const o=r.length;let s;for(n=0;n<o;n++)s=r[n],t[s]=e[s];return t}(n[s])),!i}if(J.isFormData(e)&&J.isFunction(e.entries)){const r={};return J.forEachEntry(e,((e,n)=>{t(function(e){return J.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,r,0)})),r}return null}const ut={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=J.isObject(e);o&&J.isHTMLForm(e)&&(e=new FormData(e));if(J.isFormData(e))return n?JSON.stringify(ct(e)):e;if(J.isArrayBuffer(e)||J.isBuffer(e)||J.isStream(e)||J.isFile(e)||J.isBlob(e)||J.isReadableStream(e))return e;if(J.isArrayBufferView(e))return e.buffer;if(J.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Q(e,new at.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return at.isNode&&J.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((s=J.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Q(s?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),function(e,t,r){if(J.isString(e))try{return(t||JSON.parse)(e),J.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ut.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(J.isResponse(e)||J.isReadableStream(e))return e;if(e&&J.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw V.from(e,V.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:at.classes.FormData,Blob:at.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};J.forEach(["delete","get","head","post","put","patch"],(e=>{ut.headers[e]={}}));var lt=ut;const ft=J.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"]);const pt=Symbol("internals");function ht(e){return e&&String(e).trim().toLowerCase()}function dt(e){return!1===e||null==e?e:J.isArray(e)?e.map(dt):String(e)}function mt(e,t,r,n,o){return J.isFunction(n)?n.call(this,t,r):(o&&(t=r),J.isString(t)?J.isString(n)?-1!==t.indexOf(n):J.isRegExp(n)?n.test(t):void 0:void 0)}let yt=class{set(e,t,r){const n=this;function o(e,t,r){const o=ht(t);if(!o)throw new Error("header name must be a non-empty string");const s=J.findKey(n,o);(!s||void 0===n[s]||!0===r||void 0===r&&!1!==n[s])&&(n[s||t]=dt(e))}const s=(e,t)=>J.forEach(e,((e,r)=>o(e,r,t)));if(J.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if(J.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))s((e=>{const t={};let r,n,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!r||t[r]&&ft[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)})),t})(e),t);else if(J.isHeaders(e))for(const[t,n]of e.entries())o(n,t,r);else null!=e&&o(t,e,r);return this}get(e,t){if(e=ht(e)){const r=J.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(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}(e);if(J.isFunction(t))return t.call(this,e,r);if(J.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ht(e)){const r=J.findKey(this,e);return!(!r||void 0===this[r]||t&&!mt(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=ht(e)){const o=J.findKey(r,e);!o||t&&!mt(0,r[o],o,t)||(delete r[o],n=!0)}}return J.isArray(e)?e.forEach(o):o(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const o=t[r];e&&!mt(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return J.forEach(this,((n,o)=>{const s=J.findKey(r,o);if(s)return t[s]=dt(n),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(o):String(o).trim();i!==o&&delete t[o],t[i]=dt(n),r[i]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return J.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&J.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach((e=>r.set(e))),r}static accessor(e){const t=(this[pt]=this[pt]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=ht(e);t[n]||(!function(e,t){const r=J.toCamelCase(" "+t);["get","set","has"].forEach((n=>{Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})}))}(r,e),t[n]=!0)}return J.isArray(e)?e.forEach(n):n(e),this}constructor(e){e&&this.set(e)}};yt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),J.reduceDescriptors(yt.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),J.freezeMethods(yt);var bt=yt;function gt(e,t){const r=this||lt,n=t||r,o=bt.from(n.headers);let s=n.data;return J.forEach(e,(function(e){s=e.call(r,s,o.normalize(),t?t.status:void 0)})),o.normalize(),s}function Ot(e){return!(!e||!e.__CANCEL__)}function Et(e,t,r){V.call(this,null==e?"canceled":e,V.ERR_CANCELED,t,r),this.name="CanceledError"}J.inherits(Et,V,{__CANCEL__:!0});const wt="undefined"!=typeof XMLHttpRequest;const St={http:null,xhr:wt&&class{init(e){}request(){}stream(){}constructor(e){this.init(e)}}};J.forEach(St,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));var At=e=>{e=J.isArray(e)?e:[e];const{length:t}=e;let r,n;for(let o=0;o<t&&(r=e[o],!(n=J.isString(r)?St[r.toLowerCase()]:r));o++);if(!n){if(!1===n)throw new V(`Adapter ${r} is not supported by the environment`,"ERR_NOT_SUPPORT");throw new Error(J.hasOwnProp(St,r)?`Adapter '${r}' is not available in the build`:`Unknown adapter '${r}'`)}if(!J.isFunction(n))throw new TypeError("adapter is not a function");return n};function Rt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Et(null,e)}function jt(e){let t;Rt(e),e.headers=bt.from(e.headers),e.data=gt.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);const r=new(At(e.adapter||lt.adapter))(e);return t=e.stream?r.request(this):r.request(this).then((t=>(Rt(e),t.data=gt.call(e,e.transformResponse,t),Object.defineProperty(t,"body",{get:()=>t.data}),t.headers=bt.from(t.headers),t)),(t=>(Ot(t)||(Rt(e),t&&t.response&&(t.response.data=gt.call(e,e.transformResponse,t.response),t.response.data&&!t.response.body&&(t.response.body=t.response.data),t.response.headers=bt.from(t.response.headers))),Promise.reject(t)))),t}const Tt=e=>e instanceof bt?{...e}:e;function _t(e,t){t=t||{};const r={};function n(e,t,r){return J.isPlainObject(e)&&J.isPlainObject(t)?J.merge.call({caseless:r},e,t):J.isPlainObject(t)?J.merge({},t):J.isArray(t)?t.slice():t}function o(e,t,r){return J.isUndefined(t)?J.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function s(e,t){if(!J.isUndefined(t))return n(void 0,t)}function i(e,t){return J.isUndefined(t)?J.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function a(r,o,s){return s in t?n(r,o):s in e?n(void 0,r):void 0}const c={url:s,method:s,data:s,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:a,headers:(e,t)=>o(Tt(e),Tt(t),!0)};return J.forEach(Object.keys(Object.assign({},e,t)),(function(n){const s=c[n]||o,i=s(e[n],t[n],n);J.isUndefined(i)&&s!==a||(r[n]=i)})),r}const Pt="1.7.7",Ft={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Ft[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const xt={};Ft.transitional=function(e,t,r){function n(e,t){return"[Axios v1.7.7] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,s)=>{if(!1===e)throw new V(n(o," has been removed"+(t?" in "+t:"")),V.ERR_DEPRECATED);return t&&!xt[o]&&(xt[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,s)}},Ft.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};var Nt={assertOptions:function(e,t,r){if("object"!=typeof e)throw new V("options must be an object",V.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const s=n[o],i=t[s];if(i){const t=e[s],r=void 0===t||i(t,s,e);if(!0!==r)throw new V("option "+s+" must be "+r,V.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new V("Unknown option "+s,V.ERR_BAD_OPTION)}},validators:Ft};const{validators:vt}=Nt;let Ct=class{init(){const e=this;["url","method","baseURL","transformRequest","transformResponse","headers","params","paramsSerializer","body","data","timeout","withCredentials","adapter","auth","responseType","responseEncoding","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","maxBodyLength","validateStatus","maxRedirects","beforeRedirect","socketPath","httpAgent","httpsAgent","agent","cancelToken","signal","decompress","insecureHTTPParser","transitional","env","formSerializer","maxRate"].forEach((t=>Object.defineProperty(e,t,{enumerable:!0,get:()=>e.config[t],set(r){e.config[t]=r}})))}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t,r=!1){let n=null;"string"==typeof e?(t=t||{}).url=e:t=e||{},!t.data&&t.body&&(t.data=t.body),t=_t(this.defaults,t);const{transitional:o,paramsSerializer:s,headers:i}=t;void 0!==o&&Nt.assertOptions(o,{silentJSONParsing:vt.transitional(vt.boolean),forcedJSONParsing:vt.transitional(vt.boolean),clarifyTimeoutError:vt.transitional(vt.boolean)},!1),s&&(J.isFunction(s)?t.paramsSerializer={serialize:s}:Nt.assertOptions(s,{encode:vt.function,serialize:vt.function},!0)),Nt.assertOptions(t,{baseUrl:vt.spelling("baseURL"),withXsrfToken:vt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();const a=i&&J.merge(i.common,i[t.method]);i&&J.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),t.headers=bt.concat(a,i);const c=[];let u=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(u=u&&e.synchronous,c.unshift(e.fulfilled,e.rejected))}));const l=[];let f;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let p,h=0;if(r)t.stream=!0,n=jt.call(this,t);else if(u){p=c.length;let e=t;for(h=0;h<p;){const t=c[h++],r=c[h++];try{e=t(e)}catch(e){r.call(this,e);break}}try{for(f=jt.call(this,e),h=0,p=l.length;h<p;)f=f.then(l[h++],l[h++]);n=f}catch(e){n=Promise.reject(e)}}else{const e=[jt.bind(this),void 0];for(e.unshift(...c),e.push(...l),p=e.length,f=Promise.resolve(t);h<p;)f=f.then(e[h++],e[h++]);n=f}return n}stream(e,t){return this._request(e,t,!0)}getUri(e){e=_t(this.defaults,e);var t,r;return function(e,t,r){if(!t)return e;const n=r&&r.encode||re,o=r&&r.serialize;let s;if(s=o?o(t,r):J.isURLSearchParams(t)?t.toString():new ee(t,r).toString(n),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}((t=e.baseURL,r=e.url,t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(t,r):r),e.params,e.paramsSerializer)}constructor(e){this.defaults=e,this.config=this.defaults,this.interceptors={request:new ne,response:new ne},this.init()}};J.forEach(["head","options"],(function(e){Ct.prototype[e]=function(t,r){return this.request(_t(r||{},{method:e,url:t,data:(r||{}).data}))}})),J.forEach(["delete","get"],(function(e){Ct.prototype[e]=function(t,r,n){return this.request(_t(n||{},{method:e,url:t,params:r}))}})),J.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,o){return this.request(_t(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}Ct.prototype[e]=t(),Ct.prototype[`${e}Form`]=t(!0)})),J.forEach(["gets"],(function(e){Ct.prototype[e]=function(t,r,n){return this.stream(_t(n||{},{method:e,url:t,params:r,data:(n||{}).data}))}})),J.forEach(["posts","puts","patchs"],(function(e){function t(t){return function(r,n,o){return this.stream(_t(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}Ct.prototype[e]=t(),Ct.prototype[`${e}Forms`]=t(!0)}));var Bt=Ct;var Dt=class e{throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e((function(e){t=e})),cancel:t}}constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const r=this;this.promise.then((e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null})),this.promise.then=e=>{let t;const n=new Promise((e=>{r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e,n,o){r.reason||(r.reason=new Et(e,n,o),t(r.reason))}))}};const Lt=function t(r){const n=new Bt(r),o=e(Bt.prototype.request,n);return J.extend(o,Bt.prototype,n,{allOwnKeys:!0}),J.extend(o,n,null,{allOwnKeys:!0}),o.create=function(e){return t(_t(r,e))},o}(lt);return Lt.Axios=Bt,Lt.CanceledError=Et,Lt.CancelToken=Dt,Lt.isCancel=Ot,Lt.VERSION=Pt,Lt.toFormData=Q,Lt.AxiosError=V,Lt.Cancel=Lt.CanceledError,Lt.all=e=>Promise.all(e),Lt.spread=function(e){return function(t){return e.apply(null,t)}},Lt.isAxiosError=function(e){return J.isObject(e)&&!0===e.isAxiosError},Lt.mergeConfig=_t,Lt.AxiosHeaders=bt,Lt.formToJSON=e=>ct(J.isHTMLForm(e)?new FormData(e):e),Lt.getAdapter=At,Lt.default=Lt,Lt}));
|