ebay-api
Version:
eBay API for Node and Browser
1 lines • 290 kB
JavaScript
!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).eBayApi=t()}(this,function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function getAugmentedNamespace(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function a(){var e=!1;try{e=this instanceof a}catch{}return e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:function(){return e[t]}})}),n}var t,n,o={},i={},d={},f={},h={},_={};function requireAxios(){if(n)return t;function bind(e,t){return function wrap(){return e.apply(t,arguments)}}n=1;const{toString:o}=Object.prototype,{getPrototypeOf:i}=Object,{iterator:d,toStringTag:f}=Symbol,h=(_=Object.create(null),e=>{const t=o.call(e);return _[t]||(_[t]=t.slice(8,-1).toLowerCase())});var _;const kindOfTest=e=>(e=e.toLowerCase(),t=>h(t)===e),typeOfTest=e=>t=>typeof t===e,{isArray:m}=Array,P=typeOfTest("undefined");function isBuffer(e){return null!==e&&!P(e)&&null!==e.constructor&&!P(e.constructor)&&k(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const U=kindOfTest("ArrayBuffer");const L=typeOfTest("string"),k=typeOfTest("function"),j=typeOfTest("number"),isObject=e=>null!==e&&"object"==typeof e,isPlainObject=e=>{if("object"!==h(e))return!1;const t=i(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||f in e||d in e)},Y=kindOfTest("Date"),H=kindOfTest("File"),V=kindOfTest("Blob"),K=kindOfTest("FileList");const W=function getGlobal(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:{}}(),X=void 0!==W.FormData?W.FormData:void 0,J=kindOfTest("URLSearchParams"),[Q,Z,ee,te]=["ReadableStream","Request","Response","Headers"].map(kindOfTest);function forEach(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let o,i;if("object"!=typeof e&&(e=[e]),m(e))for(o=0,i=e.length;o<i;o++)t.call(null,e[o],o,e);else{if(isBuffer(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),d=i.length;let f;for(o=0;o<d;o++)f=i[o],t.call(null,e[f],f,e)}}function findKey(e,t){if(isBuffer(e))return null;t=t.toLowerCase();const n=Object.keys(e);let o,i=n.length;for(;i-- >0;)if(o=n[i],t===o.toLowerCase())return o;return null}const re="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:e,isContextDefined=e=>!P(e)&&e!==re;const ne=(oe="undefined"!=typeof Uint8Array&&i(Uint8Array),e=>oe&&e instanceof oe);var oe;const ie=kindOfTest("HTMLFormElement"),se=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ae=kindOfTest("RegExp"),reduceDescriptors=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};forEach(n,(n,i)=>{let d;!1!==(d=t(n,i,e))&&(o[i]=d||n)}),Object.defineProperties(e,o)};const ue=kindOfTest("AsyncFunction"),ce=(le="function"==typeof setImmediate,de=k(re.postMessage),le?setImmediate:de?(pe=`axios@${Math.random()}`,fe=[],re.addEventListener("message",({source:e,data:t})=>{e===re&&t===pe&&fe.length&&fe.shift()()},!1),e=>{fe.push(e),re.postMessage(pe,"*")}):e=>setTimeout(e));var le,de,pe,fe;const he="undefined"!=typeof queueMicrotask?queueMicrotask.bind(re):"undefined"!=typeof process&&process.nextTick||ce;var _e={isArray:m,isArrayBuffer:U,isBuffer:isBuffer,isFormData:e=>{if(!e)return!1;if(X&&e instanceof X)return!0;const t=i(e);if(!t||t===Object.prototype)return!1;if(!k(e.append))return!1;const n=h(e);return"formdata"===n||"object"===n&&k(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function isArrayBufferView(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&U(e.buffer),t},isString:L,isNumber:j,isBoolean:e=>!0===e||!1===e,isObject:isObject,isPlainObject:isPlainObject,isEmptyObject:e=>{if(!isObject(e)||isBuffer(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:Q,isRequest:Z,isResponse:ee,isHeaders:te,isUndefined:P,isDate:Y,isFile:H,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:V,isRegExp:ae,isFunction:k,isStream:e=>isObject(e)&&k(e.pipe),isURLSearchParams:J,isTypedArray:ne,isFileList:K,forEach:forEach,merge:function merge(...e){const{caseless:t,skipUndefined:n}=isContextDefined(this)&&this||{},o={},assignValue=(e,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;const d=t&&findKey(o,i)||i,f=se(o,d)?o[d]:void 0;isPlainObject(f)&&isPlainObject(e)?o[d]=merge(f,e):isPlainObject(e)?o[d]=merge({},e):m(e)?o[d]=e.slice():n&&P(e)||(o[d]=e)};for(let t=0,n=e.length;t<n;t++)e[t]&&forEach(e[t],assignValue);return o},extend:(e,t,n,{allOwnKeys:o}={})=>(forEach(t,(t,o)=>{n&&k(t)?Object.defineProperty(e,o,{__proto__:null,value:bind(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:o}),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,n,o)=>{e.prototype=Object.create(t.prototype,o),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,o)=>{let d,f,h;const _={};if(t=t||{},null==e)return t;do{for(d=Object.getOwnPropertyNames(e),f=d.length;f-- >0;)h=d[f],o&&!o(h,e,t)||_[h]||(t[h]=e[h],_[h]=!0);e=!1!==n&&i(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:h,kindOfTest:kindOfTest,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return-1!==o&&o===n},toArray:e=>{if(!e)return null;if(m(e))return e;let t=e.length;if(!j(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[d]).call(e);let o;for(;(o=n.next())&&!o.done;){const n=o.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const o=[];for(;null!==(n=e.exec(t));)o.push(n);return o},isHTMLForm:ie,hasOwnProperty:se,hasOwnProp:se,reduceDescriptors:reduceDescriptors,freezeMethods:e=>{reduceDescriptors(e,(t,n)=>{if(k(e)&&["arguments","caller","callee"].includes(n))return!1;const o=e[n];k(o)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},define=e=>{e.forEach(e=>{n[e]=!0})};return m(e)?define(e):define(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function replacer(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:findKey,global:re,isContextDefined:isContextDefined,isSpecCompliantForm:function isSpecCompliantForm(e){return!!(e&&k(e.append)&&"FormData"===e[f]&&e[d])},toJSONObject:e=>{const t=new Array(10),visit=(e,n)=>{if(isObject(e)){if(t.indexOf(e)>=0)return;if(isBuffer(e))return e;if(!("toJSON"in e)){t[n]=e;const o=m(e)?[]:{};return forEach(e,(e,t)=>{const i=visit(e,n+1);!P(i)&&(o[t]=i)}),t[n]=void 0,o}}return e};return visit(e,0)},isAsyncFn:ue,isThenable:e=>e&&(isObject(e)||k(e))&&k(e.then)&&k(e.catch),setImmediate:ce,asap:he,isIterable:e=>null!=e&&k(e[d])};const Ee=_e.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 ge=Symbol("internals"),me=/[^\x09\x20-\x7E\x80-\xFF]/g;function normalizeHeader(e){return e&&String(e).trim().toLowerCase()}function normalizeValue(e){return!1===e||null==e?e:_e.isArray(e)?e.map(normalizeValue):function sanitizeHeaderValue(e){return function trimSPorHTAB(e){let t=0,n=e.length;for(;t<n;){const n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){const t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}(e.replace(me,""))}(String(e))}function matchHeaderValue(e,t,n,o,i){return _e.isFunction(o)?o.call(this,t,n):(i&&(t=n),_e.isString(t)?_e.isString(o)?-1!==t.indexOf(o):_e.isRegExp(o)?o.test(t):void 0:void 0)}class AxiosHeaders{constructor(e){e&&this.set(e)}set(e,t,n){const o=this;function setHeader(e,t,n){const i=normalizeHeader(t);if(!i)throw new Error("header name must be a non-empty string");const d=_e.findKey(o,i);(!d||void 0===o[d]||!0===n||void 0===n&&!1!==o[d])&&(o[d||t]=normalizeValue(e))}const setHeaders=(e,t)=>_e.forEach(e,(e,n)=>setHeader(e,n,t));if(_e.isPlainObject(e)||e instanceof this.constructor)setHeaders(e,t);else if(_e.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))setHeaders((e=>{const t={};let n,o,i;return e&&e.split("\n").forEach(function parser(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),o=e.substring(i+1).trim(),!n||t[n]&&Ee[n]||("set-cookie"===n?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)}),t})(e),t);else if(_e.isObject(e)&&_e.isIterable(e)){let n,o,i={};for(const t of e){if(!_e.isArray(t))throw TypeError("Object iterator must return a key-value pair");i[o=t[0]]=(n=i[o])?_e.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}setHeaders(i,t)}else null!=e&&setHeader(t,e,n);return this}get(e,t){if(e=normalizeHeader(e)){const n=_e.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function parseTokens(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}(e);if(_e.isFunction(t))return t.call(this,e,n);if(_e.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=normalizeHeader(e)){const n=_e.findKey(this,e);return!(!n||void 0===this[n]||t&&!matchHeaderValue(0,this[n],n,t))}return!1}delete(e,t){const n=this;let o=!1;function deleteHeader(e){if(e=normalizeHeader(e)){const i=_e.findKey(n,e);!i||t&&!matchHeaderValue(0,n[i],i,t)||(delete n[i],o=!0)}}return _e.isArray(e)?e.forEach(deleteHeader):deleteHeader(e),o}clear(e){const t=Object.keys(this);let n=t.length,o=!1;for(;n--;){const i=t[n];e&&!matchHeaderValue(0,this[i],i,e,!0)||(delete this[i],o=!0)}return o}normalize(e){const t=this,n={};return _e.forEach(this,(o,i)=>{const d=_e.findKey(n,i);if(d)return t[d]=normalizeValue(o),void delete t[i];const f=e?function formatHeader(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(i):String(i).trim();f!==i&&delete t[i],t[f]=normalizeValue(o),n[f]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return _e.forEach(this,(n,o)=>{null!=n&&!1!==n&&(t[o]=e&&_e.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[ge]=this[ge]={accessors:{}}).accessors,n=this.prototype;function defineAccessor(e){const o=normalizeHeader(e);t[o]||(!function buildAccessors(e,t){const n=_e.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{__proto__:null,value:function(e,n,i){return this[o].call(this,t,e,n,i)},configurable:!0})})}(n,e),t[o]=!0)}return _e.isArray(e)?e.forEach(defineAccessor):defineAccessor(e),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),_e.reduceDescriptors(AxiosHeaders.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),_e.freezeMethods(AxiosHeaders);function redactConfig(e,t){const n=new Set(t.map(e=>String(e).toLowerCase())),o=[],visit=e=>{if(null===e||"object"!=typeof e)return e;if(_e.isBuffer(e))return e;if(-1!==o.indexOf(e))return;let t;if(e instanceof AxiosHeaders&&(e=e.toJSON()),o.push(e),_e.isArray(e))t=[],e.forEach((e,n)=>{const o=visit(e);_e.isUndefined(o)||(t[n]=o)});else{if(!_e.isPlainObject(e)&&function hasOwnOrPrototypeToJSON(e){if(_e.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(_e.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(e))return o.pop(),e;t=Object.create(null);for(const[o,i]of Object.entries(e)){const e=n.has(o.toLowerCase())?"[REDACTED ****]":visit(i);_e.isUndefined(e)||(t[o]=e)}}return o.pop(),t};return visit(e)}class AxiosError extends Error{static from(e,t,n,o,i,d){const f=new AxiosError(e.message,t||e.code,n,o,i);return f.cause=e,f.name=e.name,null!=e.status&&null==f.status&&(f.status=e.status),d&&Object.assign(f,d),f}constructor(e,t,n,o,i){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),i&&(this.response=i,this.status=i.status)}toJSON(){const e=this.config,t=e&&_e.hasOwnProp(e,"redact")?e.redact:void 0,n=_e.isArray(t)&&t.length>0?redactConfig(e,t):_e.toJSONObject(e);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:n,code:this.code,status:this.status}}}AxiosError.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",AxiosError.ERR_BAD_OPTION="ERR_BAD_OPTION",AxiosError.ECONNABORTED="ECONNABORTED",AxiosError.ETIMEDOUT="ETIMEDOUT",AxiosError.ECONNREFUSED="ECONNREFUSED",AxiosError.ERR_NETWORK="ERR_NETWORK",AxiosError.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",AxiosError.ERR_DEPRECATED="ERR_DEPRECATED",AxiosError.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",AxiosError.ERR_BAD_REQUEST="ERR_BAD_REQUEST",AxiosError.ERR_CANCELED="ERR_CANCELED",AxiosError.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",AxiosError.ERR_INVALID_URL="ERR_INVALID_URL",AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";function isVisitable(e){return _e.isPlainObject(e)||_e.isArray(e)}function removeBrackets(e){return _e.endsWith(e,"[]")?e.slice(0,-2):e}function renderKey(e,t,n){return e?e.concat(t).map(function each(e,t){return e=removeBrackets(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const ye=_e.toFlatObject(_e,{},null,function filter(e){return/^is[A-Z]/.test(e)});function toFormData(e,t,n){if(!_e.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const o=(n=_e.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function defined(e,t){return!_e.isUndefined(t[e])})).metaTokens,i=n.visitor||defaultVisitor,d=n.dots,f=n.indexes,h=n.Blob||"undefined"!=typeof Blob&&Blob,_=void 0===n.maxDepth?100:n.maxDepth,m=h&&_e.isSpecCompliantForm(t);if(!_e.isFunction(i))throw new TypeError("visitor must be a function");function convertValue(e){if(null===e)return"";if(_e.isDate(e))return e.toISOString();if(_e.isBoolean(e))return e.toString();if(!m&&_e.isBlob(e))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return _e.isArrayBuffer(e)||_e.isTypedArray(e)?m&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function defaultVisitor(e,n,i){let h=e;if(_e.isReactNative(t)&&_e.isReactNativeBlob(e))return t.append(renderKey(i,n,d),convertValue(e)),!1;if(e&&!i&&"object"==typeof e)if(_e.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=JSON.stringify(e);else if(_e.isArray(e)&&function isFlatArray(e){return _e.isArray(e)&&!e.some(isVisitable)}(e)||(_e.isFileList(e)||_e.endsWith(n,"[]"))&&(h=_e.toArray(e)))return n=removeBrackets(n),h.forEach(function each(e,o){!_e.isUndefined(e)&&null!==e&&t.append(!0===f?renderKey([n],o,d):null===f?n:n+"[]",convertValue(e))}),!1;return!!isVisitable(e)||(t.append(renderKey(i,n,d),convertValue(e)),!1)}const P=[],U=Object.assign(ye,{defaultVisitor:defaultVisitor,convertValue:convertValue,isVisitable:isVisitable});if(!_e.isObject(e))throw new TypeError("data must be an object");return function build(e,n,o=0){if(!_e.isUndefined(e)){if(o>_)throw new AxiosError("Object is too deeply nested ("+o+" levels). Max depth: "+_,AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED);if(-1!==P.indexOf(e))throw Error("Circular reference detected in "+n.join("."));P.push(e),_e.forEach(e,function each(e,d){!0===(!(_e.isUndefined(e)||null===e)&&i.call(t,e,_e.isString(d)?d.trim():d,n,U))&&build(e,n?n.concat(d):[d],o+1)}),P.pop()}}(e),t}function encode$1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function replacer(e){return t[e]})}function AxiosURLSearchParams(e,t){this._pairs=[],e&&toFormData(e,this,t)}const Re=AxiosURLSearchParams.prototype;function encode(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function buildURL(e,t,n){if(!t)return e;const o=n&&n.encode||encode,i=_e.isFunction(n)?{serialize:n}:n,d=i&&i.serialize;let f;if(f=d?d(t,i):_e.isURLSearchParams(t)?t.toString():new AxiosURLSearchParams(t,i).toString(o),f){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+f}return e}Re.append=function append(e,t){this._pairs.push([e,t])},Re.toString=function toString(e){const t=e?function(t){return e.call(this,t,encode$1)}:encode$1;return this._pairs.map(function each(e){return t(e[0])+"="+t(e[1])},"").join("&")};class InterceptorManager{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){_e.forEach(this.handlers,function forEachHandler(t){null!==t&&e(t)})}}var Ae={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Ie={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:AxiosURLSearchParams,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const Te="undefined"!=typeof window&&"undefined"!=typeof document,Se="object"==typeof navigator&&navigator||void 0,Oe=Te&&(!Se||["ReactNative","NativeScript","NS"].indexOf(Se.product)<0),be="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Ce=Te&&window.location.href||"http://localhost";var Ne={...Object.freeze({__proto__:null,hasBrowserEnv:Te,hasStandardBrowserEnv:Oe,hasStandardBrowserWebWorkerEnv:be,navigator:Se,origin:Ce}),...Ie};function formDataToJSON(e){function buildPath(e,t,n,o){let i=e[o++];if("__proto__"===i)return!0;const d=Number.isFinite(+i),f=o>=e.length;if(i=!i&&_e.isArray(n)?n.length:i,f)return _e.hasOwnProp(n,i)?n[i]=_e.isArray(n[i])?n[i].concat(t):[n[i],t]:n[i]=t,!d;n[i]&&_e.isObject(n[i])||(n[i]=[]);return buildPath(e,t,n[i],o)&&_e.isArray(n[i])&&(n[i]=function arrayToObject(e){const t={},n=Object.keys(e);let o;const i=n.length;let d;for(o=0;o<i;o++)d=n[o],t[d]=e[d];return t}(n[i])),!d}if(_e.isFormData(e)&&_e.isFunction(e.entries)){const t={};return _e.forEachEntry(e,(e,n)=>{buildPath(function parsePropPath(e){return _e.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),n,t,0)}),t}return null}const own=(e,t)=>null!=e&&_e.hasOwnProp(e,t)?e[t]:void 0;const Pe={transitional:Ae,adapter:["xhr","http","fetch"],transformRequest:[function transformRequest(e,t){const n=t.getContentType()||"",o=n.indexOf("application/json")>-1,i=_e.isObject(e);i&&_e.isHTMLForm(e)&&(e=new FormData(e));if(_e.isFormData(e))return o?JSON.stringify(formDataToJSON(e)):e;if(_e.isArrayBuffer(e)||_e.isBuffer(e)||_e.isStream(e)||_e.isFile(e)||_e.isBlob(e)||_e.isReadableStream(e))return e;if(_e.isArrayBufferView(e))return e.buffer;if(_e.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let d;if(i){const t=own(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return function toURLEncodedForm(e,t){return toFormData(e,new Ne.classes.URLSearchParams,{visitor:function(e,t,n,o){return Ne.isNode&&_e.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}(e,t).toString();if((d=_e.isFileList(e))||n.indexOf("multipart/form-data")>-1){const n=own(this,"env"),o=n&&n.FormData;return toFormData(d?{"files[]":e}:e,o&&new o,t)}}return i||o?(t.setContentType("application/json",!1),function stringifySafely(e,t,n){if(_e.isString(e))try{return(t||JSON.parse)(e),_e.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function transformResponse(e){const t=own(this,"transitional")||Pe.transitional,n=t&&t.forcedJSONParsing,o=own(this,"responseType"),i="json"===o;if(_e.isResponse(e)||_e.isReadableStream(e))return e;if(e&&_e.isString(e)&&(n&&!o||i)){const n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,own(this,"parseReviver"))}catch(e){if(n){if("SyntaxError"===e.name)throw AxiosError.from(e,AxiosError.ERR_BAD_RESPONSE,this,null,own(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ne.classes.FormData,Blob:Ne.classes.Blob},validateStatus:function validateStatus(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function transformData(e,t){const n=this||Pe,o=t||n,i=AxiosHeaders.from(o.headers);let d=o.data;return _e.forEach(e,function transform(e){d=e.call(n,d,i.normalize(),t?t.status:void 0)}),i.normalize(),d}function isCancel(e){return!(!e||!e.__CANCEL__)}_e.forEach(["delete","get","head","post","put","patch","query"],e=>{Pe.headers[e]={}});class CanceledError extends AxiosError{constructor(e,t,n){super(null==e?"canceled":e,AxiosError.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}}function settle(e,t,n){const o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(new AxiosError("Request failed with status code "+n.status,n.status>=400&&n.status<500?AxiosError.ERR_BAD_REQUEST:AxiosError.ERR_BAD_RESPONSE,n.config,n.request,n)):e(n)}const progressEventReducer=(e,t,n=3)=>{let o=0;const i=function speedometer(e,t){e=e||10;const n=new Array(e),o=new Array(e);let i,d=0,f=0;return t=void 0!==t?t:1e3,function push(h){const _=Date.now(),m=o[f];i||(i=_),n[d]=h,o[d]=_;let P=f,U=0;for(;P!==d;)U+=n[P++],P%=e;if(d=(d+1)%e,d===f&&(f=(f+1)%e),_-i<t)return;const L=m&&_-m;return L?Math.round(1e3*U/L):void 0}}(50,250);return function throttle(e,t){let n,o,i=0,d=1e3/t;const invoke=(t,d=Date.now())=>{i=d,n=null,o&&(clearTimeout(o),o=null),e(...t)};return[(...e)=>{const t=Date.now(),f=t-i;f>=d?invoke(e,t):(n=e,o||(o=setTimeout(()=>{o=null,invoke(n)},d-f)))},()=>n&&invoke(n)]}(n=>{const d=n.loaded,f=n.lengthComputable?n.total:void 0,h=null!=f?Math.min(d,f):d,_=Math.max(0,h-o),m=i(_);o=Math.max(o,h);e({loaded:h,total:f,progress:f?h/f:void 0,bytes:_,rate:m||void 0,estimated:m&&f?(f-h)/m:void 0,event:n,lengthComputable:null!=f,[t?"download":"upload"]:!0})},n)},progressEventDecorator=(e,t)=>{const n=null!=e;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},asyncDecorator=e=>(...t)=>_e.asap(()=>e(...t));var ve=Ne.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ne.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ne.origin),Ne.navigator&&/(msie|trident)/i.test(Ne.navigator.userAgent)):()=>!0,De=Ne.hasStandardBrowserEnv?{write(e,t,n,o,i,d,f){if("undefined"==typeof document)return;const h=[`${e}=${encodeURIComponent(t)}`];_e.isNumber(n)&&h.push(`expires=${new Date(n).toUTCString()}`),_e.isString(o)&&h.push(`path=${o}`),_e.isString(i)&&h.push(`domain=${i}`),!0===d&&h.push("secure"),_e.isString(f)&&h.push(`SameSite=${f}`),document.cookie=h.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const o=t[n].replace(/^\s+/,""),i=o.indexOf("=");if(-1!==i&&o.slice(0,i)===e)return decodeURIComponent(o.slice(i+1))}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function buildFullPath(e,t,n){let o=!function isAbsoluteURL(e){return"string"==typeof e&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t);return e&&(o||!1===n)?function combineURLs(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const headersToObject=e=>e instanceof AxiosHeaders?{...e}:e;function mergeConfig(e,t){t=t||{};const n=Object.create(null);function getMergedValue(e,t,n,o){return _e.isPlainObject(e)&&_e.isPlainObject(t)?_e.merge.call({caseless:o},e,t):_e.isPlainObject(t)?_e.merge({},t):_e.isArray(t)?t.slice():t}function mergeDeepProperties(e,t,n,o){return _e.isUndefined(t)?_e.isUndefined(e)?void 0:getMergedValue(void 0,e,0,o):getMergedValue(e,t,0,o)}function valueFromConfig2(e,t){if(!_e.isUndefined(t))return getMergedValue(void 0,t)}function defaultToConfig2(e,t){return _e.isUndefined(t)?_e.isUndefined(e)?void 0:getMergedValue(void 0,e):getMergedValue(void 0,t)}function mergeDirectKeys(n,o,i){return _e.hasOwnProp(t,i)?getMergedValue(n,o):_e.hasOwnProp(e,i)?getMergedValue(void 0,n):void 0}Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});const o={url:valueFromConfig2,method:valueFromConfig2,data:valueFromConfig2,baseURL:defaultToConfig2,transformRequest:defaultToConfig2,transformResponse:defaultToConfig2,paramsSerializer:defaultToConfig2,timeout:defaultToConfig2,timeoutMessage:defaultToConfig2,withCredentials:defaultToConfig2,withXSRFToken:defaultToConfig2,adapter:defaultToConfig2,responseType:defaultToConfig2,xsrfCookieName:defaultToConfig2,xsrfHeaderName:defaultToConfig2,onUploadProgress:defaultToConfig2,onDownloadProgress:defaultToConfig2,decompress:defaultToConfig2,maxContentLength:defaultToConfig2,maxBodyLength:defaultToConfig2,beforeRedirect:defaultToConfig2,transport:defaultToConfig2,httpAgent:defaultToConfig2,httpsAgent:defaultToConfig2,cancelToken:defaultToConfig2,socketPath:defaultToConfig2,allowedSocketPaths:defaultToConfig2,responseEncoding:defaultToConfig2,validateStatus:mergeDirectKeys,headers:(e,t,n)=>mergeDeepProperties(headersToObject(e),headersToObject(t),0,!0)};return _e.forEach(Object.keys({...e,...t}),function computeConfigValue(i){if("__proto__"===i||"constructor"===i||"prototype"===i)return;const d=_e.hasOwnProp(o,i)?o[i]:mergeDeepProperties,f=d(_e.hasOwnProp(e,i)?e[i]:void 0,_e.hasOwnProp(t,i)?t[i]:void 0,i);_e.isUndefined(f)&&d!==mergeDirectKeys||(n[i]=f)}),n}const Me=["content-type","content-length"];var resolveConfig=e=>{const t=mergeConfig({},e),own=e=>_e.hasOwnProp(t,e)?t[e]:void 0,n=own("data");let o=own("withXSRFToken");const i=own("xsrfHeaderName"),d=own("xsrfCookieName");let f=own("headers");const h=own("auth"),_=own("baseURL"),m=own("allowAbsoluteUrls"),P=own("url");var U;if(t.headers=f=AxiosHeaders.from(f),t.url=buildURL(buildFullPath(_,P,m),e.params,e.paramsSerializer),h&&f.set("Authorization","Basic "+btoa((h.username||"")+":"+(h.password?(U=h.password,encodeURIComponent(U).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16)))):""))),_e.isFormData(n)&&(Ne.hasStandardBrowserEnv||Ne.hasStandardBrowserWebWorkerEnv?f.setContentType(void 0):_e.isFunction(n.getHeaders)&&function setFormDataHeaders(e,t,n){"content-only"===n?Object.entries(t).forEach(([t,n])=>{Me.includes(t.toLowerCase())&&e.set(t,n)}):e.set(t)}(f,n.getHeaders(),own("formDataHeaderPolicy"))),Ne.hasStandardBrowserEnv){_e.isFunction(o)&&(o=o(t));if(!0===o||null==o&&ve(t.url)){const e=i&&d&&De.read(d);e&&f.set(i,e)}}return t};var Ue="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function dispatchXhrRequest(t,n){const o=resolveConfig(e);let i=o.data;const d=AxiosHeaders.from(o.headers).normalize();let f,h,_,m,P,{responseType:U,onUploadProgress:L,onDownloadProgress:k}=o;function done(){m&&m(),P&&P(),o.cancelToken&&o.cancelToken.unsubscribe(f),o.signal&&o.signal.removeEventListener("abort",f)}let j=new XMLHttpRequest;function onloadend(){if(!j)return;const o=AxiosHeaders.from("getAllResponseHeaders"in j&&j.getAllResponseHeaders());settle(function _resolve(e){t(e),done()},function _reject(e){n(e),done()},{data:U&&"text"!==U&&"json"!==U?j.response:j.responseText,status:j.status,statusText:j.statusText,headers:o,config:e,request:j}),j=null}j.open(o.method.toUpperCase(),o.url,!0),j.timeout=o.timeout,"onloadend"in j?j.onloadend=onloadend:j.onreadystatechange=function handleLoad(){j&&4===j.readyState&&(0!==j.status||j.responseURL&&j.responseURL.startsWith("file:"))&&setTimeout(onloadend)},j.onabort=function handleAbort(){j&&(n(new AxiosError("Request aborted",AxiosError.ECONNABORTED,e,j)),done(),j=null)},j.onerror=function handleError(t){const o=t&&t.message?t.message:"Network Error",i=new AxiosError(o,AxiosError.ERR_NETWORK,e,j);i.event=t||null,n(i),done(),j=null},j.ontimeout=function handleTimeout(){let t=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const i=o.transitional||Ae;o.timeoutErrorMessage&&(t=o.timeoutErrorMessage),n(new AxiosError(t,i.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,e,j)),done(),j=null},void 0===i&&d.setContentType(null),"setRequestHeader"in j&&_e.forEach(d.toJSON(),function setRequestHeader(e,t){j.setRequestHeader(t,e)}),_e.isUndefined(o.withCredentials)||(j.withCredentials=!!o.withCredentials),U&&"json"!==U&&(j.responseType=o.responseType),k&&([_,P]=progressEventReducer(k,!0),j.addEventListener("progress",_)),L&&j.upload&&([h,m]=progressEventReducer(L),j.upload.addEventListener("progress",h),j.upload.addEventListener("loadend",m)),(o.cancelToken||o.signal)&&(f=t=>{j&&(n(!t||t.type?new CanceledError(null,e,j):t),j.abort(),done(),j=null)},o.cancelToken&&o.cancelToken.subscribe(f),o.signal&&(o.signal.aborted?f():o.signal.addEventListener("abort",f)));const Y=function parseProtocol(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}(o.url);!Y||Ne.protocols.includes(Y)?j.send(i||null):n(new AxiosError("Unsupported protocol "+Y+":",AxiosError.ERR_BAD_REQUEST,e))})};const composeSignals=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,o=new AbortController;const onabort=function(e){if(!n){n=!0,unsubscribe();const t=e instanceof Error?e:this.reason;o.abort(t instanceof AxiosError?t:new CanceledError(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,onabort(new AxiosError(`timeout of ${t}ms exceeded`,AxiosError.ETIMEDOUT))},t);const unsubscribe=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(onabort):e.removeEventListener("abort",onabort)}),e=null)};e.forEach(e=>e.addEventListener("abort",onabort));const{signal:d}=o;return d.unsubscribe=()=>_e.asap(unsubscribe),d}},streamChunk=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let o,i=0;for(;i<n;)o=i+t,yield e.slice(i,o),i=o},readStream=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},trackStream=(e,t,n,o)=>{const i=async function*(e,t){for await(const n of readStream(e))yield*streamChunk(n,t)}(e,t);let d,f=0,_onFinish=e=>{d||(d=!0,o&&o(e))};return new ReadableStream({async pull(e){try{const{done:t,value:o}=await i.next();if(t)return _onFinish(),void e.close();let d=o.byteLength;if(n){let e=f+=d;n(e)}e.enqueue(new Uint8Array(o))}catch(e){throw _onFinish(e),e}},cancel:e=>(_onFinish(e),i.return())},{highWaterMark:2})};const Le="1.16.0",{isFunction:we}=_e,test=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},factory=e=>{const t=_e.global??globalThis,{ReadableStream:n,TextEncoder:o}=t;e=_e.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:i,Request:d,Response:f}=e,h=i?we(i):"function"==typeof fetch,_=we(d),m=we(f);if(!h)return!1;const P=h&&we(n),U=h&&("function"==typeof o?(L=new o,e=>L.encode(e)):async e=>new Uint8Array(await new d(e).arrayBuffer()));var L;const k=_&&P&&test(()=>{let e=!1;const t=new d(Ne.origin,{body:new n,method:"POST",get duplex(){return e=!0,"half"}}),o=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!o}),j=m&&P&&test(()=>_e.isReadableStream(new f("").body)),Y={stream:j&&(e=>e.body)};h&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Y[e]&&(Y[e]=(t,n)=>{let o=t&&t[e];if(o)return o.call(t);throw new AxiosError(`Response type '${e}' is not supported`,AxiosError.ERR_NOT_SUPPORT,n)})});const resolveBodyLength=async(e,t)=>{const n=_e.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(_e.isBlob(e))return e.size;if(_e.isSpecCompliantForm(e)){const t=new d(Ne.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return _e.isArrayBufferView(e)||_e.isArrayBuffer(e)?e.byteLength:(_e.isURLSearchParams(e)&&(e+=""),_e.isString(e)?(await U(e)).byteLength:void 0)})(t):n};return async e=>{let{url:t,method:n,data:h,signal:m,cancelToken:P,timeout:U,onDownloadProgress:L,onUploadProgress:H,responseType:V,headers:K,withCredentials:W="same-origin",fetchOptions:X,maxContentLength:J,maxBodyLength:Q}=resolveConfig(e);const Z=_e.isNumber(J)&&J>-1,ee=_e.isNumber(Q)&&Q>-1;let te=i||fetch;V=V?(V+"").toLowerCase():"text";let re=composeSignals([m,P&&P.toAbortSignal()],U),ne=null;const oe=re&&re.unsubscribe&&(()=>{re.unsubscribe()});let ie;try{if(Z&&"string"==typeof t&&t.startsWith("data:")){const n=function estimateDataURLDecodedBytes(e){if(!e||"string"!=typeof e)return 0;if(!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),o=e.slice(t+1);if(/;base64/i.test(n)){let e=o.length;const t=o.length;for(let n=0;n<t;n++)if(37===o.charCodeAt(n)&&n+2<t){const t=o.charCodeAt(n+1),i=o.charCodeAt(n+2);(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102)&&(i>=48&&i<=57||i>=65&&i<=70||i>=97&&i<=102)&&(e-=2,n+=2)}let n=0,i=t-1;const tailIsPct3D=e=>e>=2&&37===o.charCodeAt(e-2)&&51===o.charCodeAt(e-1)&&(68===o.charCodeAt(e)||100===o.charCodeAt(e));i>=0&&(61===o.charCodeAt(i)?(n++,i--):tailIsPct3D(i)&&(n++,i-=3)),1===n&&i>=0&&(61===o.charCodeAt(i)||tailIsPct3D(i))&&n++;const d=3*Math.floor(e/4)-(n||0);return d>0?d:0}if("undefined"!=typeof Buffer&&"function"==typeof Buffer.byteLength)return Buffer.byteLength(o,"utf8");let i=0;for(let e=0,t=o.length;e<t;e++){const n=o.charCodeAt(e);if(n<128)i+=1;else if(n<2048)i+=2;else if(n>=55296&&n<=56319&&e+1<t){const t=o.charCodeAt(e+1);t>=56320&&t<=57343?(i+=4,e++):i+=3}else i+=3}return i}(t);if(n>J)throw new AxiosError("maxContentLength size of "+J+" exceeded",AxiosError.ERR_BAD_RESPONSE,e,ne)}if(ee&&"get"!==n&&"head"!==n){const t=await resolveBodyLength(K,h);if("number"==typeof t&&isFinite(t)&&t>Q)throw new AxiosError("Request body larger than maxBodyLength limit",AxiosError.ERR_BAD_REQUEST,e,ne)}if(H&&k&&"get"!==n&&"head"!==n&&0!==(ie=await resolveBodyLength(K,h))){let e,n=new d(t,{method:"POST",body:h,duplex:"half"});if(_e.isFormData(h)&&(e=n.headers.get("content-type"))&&K.setContentType(e),n.body){const[e,t]=progressEventDecorator(ie,progressEventReducer(asyncDecorator(H)));h=trackStream(n.body,65536,e,t)}}_e.isString(W)||(W=W?"include":"omit");const i=_&&"credentials"in d.prototype;if(_e.isFormData(h)){const e=K.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&K.delete("content-type")}K.set("User-Agent","axios/"+Le,!1);const m={...X,signal:re,method:n.toUpperCase(),headers:K.normalize().toJSON(),body:h,duplex:"half",credentials:i?W:void 0};ne=_&&new d(t,m);let P=await(_?te(ne,X):te(t,m));if(Z){const t=_e.toFiniteNumber(P.headers.get("content-length"));if(null!=t&&t>J)throw new AxiosError("maxContentLength size of "+J+" exceeded",AxiosError.ERR_BAD_RESPONSE,e,ne)}const U=j&&("stream"===V||"response"===V);if(j&&P.body&&(L||Z||U&&oe)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=P[e]});const n=_e.toFiniteNumber(P.headers.get("content-length")),[o,i]=L&&progressEventDecorator(n,progressEventReducer(asyncDecorator(L),!0))||[];let d=0;const onChunkProgress=t=>{if(Z&&(d=t,d>J))throw new AxiosError("maxContentLength size of "+J+" exceeded",AxiosError.ERR_BAD_RESPONSE,e,ne);o&&o(t)};P=new f(trackStream(P.body,65536,onChunkProgress,()=>{i&&i(),oe&&oe()}),t)}V=V||"text";let se=await Y[_e.findKey(Y,V)||"text"](P,e);if(Z&&!j&&!U){let t;if(null!=se&&("number"==typeof se.byteLength?t=se.byteLength:"number"==typeof se.size?t=se.size:"string"==typeof se&&(t="function"==typeof o?(new o).encode(se).byteLength:se.length)),"number"==typeof t&&t>J)throw new AxiosError("maxContentLength size of "+J+" exceeded",AxiosError.ERR_BAD_RESPONSE,e,ne)}return!U&&oe&&oe(),await new Promise((t,n)=>{settle(t,n,{data:se,headers:AxiosHeaders.from(P.headers),status:P.status,statusText:P.statusText,config:e,request:ne})})}catch(t){if(oe&&oe(),re&&re.aborted&&re.reason instanceof AxiosError){const n=re.reason;throw n.config=e,ne&&(n.request=ne),t!==n&&(n.cause=t),n}if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new AxiosError("Network Error",AxiosError.ERR_NETWORK,e,ne,t&&t.response),{cause:t.cause||t});throw AxiosError.from(t,t&&t.code,e,ne,t&&t.response)}}},Be=new Map,getFetch=e=>{let t=e&&e.env||{};const{fetch:n,Request:o,Response:i}=t,d=[o,i,n];let f,h,_=d.length,m=Be;for(;_--;)f=d[_],h=m.get(f),void 0===h&&m.set(f,h=_?new Map:factory(t)),m=h;return h};getFetch();const xe={http:null,xhr:Ue,fetch:{get:getFetch}};_e.forEach(xe,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const renderReason=e=>`- ${e}`,isResolvedHandle=e=>_e.isFunction(e)||null===e||!1===e;var Fe={getAdapter:function getAdapter(e,t){e=_e.isArray(e)?e:[e];const{length:n}=e;let o,i;const d={};for(let f=0;f<n;f++){let n;if(o=e[f],i=o,!isResolvedHandle(o)&&(i=xe[(n=String(o)).toLowerCase()],void 0===i))throw new AxiosError(`Unknown adapter '${n}'`);if(i&&(_e.isFunction(i)||(i=i.get(t))))break;d[n||"#"+f]=i}if(!i){const e=Object.entries(d).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=n?e.length>1?"since :\n"+e.map(renderReason).join("\n"):" "+renderReason(e[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return i},adapters:xe};function throwIfCancellationRequested(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new CanceledError(null,e)}function dispatchRequest(e){throwIfCancellationRequested(e),e.headers=AxiosHeaders.from(e.headers),e.data=transformData.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Fe.getAdapter(e.adapter||Pe.adapter,e)(e).then(function onAdapterResolution(t){throwIfCancellationRequested(e),e.response=t;try{t.data=transformData.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=AxiosHeaders.from(t.headers),t},function onAdapterRejection(t){if(!isCancel(t)&&(throwIfCancellationRequested(e),t&&t.response)){e.response=t.response;try{t.response.data=transformData.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=AxiosHeaders.from(t.response.headers)}return Promise.reject(t)})}const ke={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ke[e]=function validator(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Ge={};ke.transitional=function transitional(e,t,n){function formatMessage(e,t){return"[Axios v"+Le+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new AxiosError(formatMessage(o," has been removed"+(t?" in "+t:"")),AxiosError.ERR_DEPRECATED);return t&&!Ge[o]&&(Ge[o]=!0,console.warn(formatMessage(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},ke.spelling=function spelling(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var qe={assertOptions:function assertOptions(e,t,n){if("object"!=typeof e)throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let i=o.length;for(;i-- >0;){const d=o[i],f=Object.prototype.hasOwnProperty.call(t,d)?t[d]:void 0;if(f){const t=e[d],n=void 0===t||f(t,d,e);if(!0!==n)throw new AxiosError("option "+d+" must be "+n,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new AxiosError("Unknown option "+d,AxiosError.ERR_BAD_OPTION)}},validators:ke};const je=qe.validators;class Axios{constructor(e){this.defaults=e||{},this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}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 n=(()=>{if(!t.stack)return"";const e=t.stack.indexOf("\n");return-1===e?"":t.stack.slice(e+1)})();try{if(e.stack){if(n){const t=n.indexOf("\n"),o=-1===t?-1:n.indexOf("\n",t+1),i=-1===o?"":n.slice(o+1);String(e.stack).endsWith(i)||(e.stack+="\n"+n)}}else e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=mergeConfig(this.defaults,t);const{transitional:n,paramsSerializer:o,headers:i}=t;void 0!==n&&qe.assertOptions(n,{silentJSONParsing:je.transitional(je.boolean),forcedJSONParsing:je.transitional(je.boolean),clarifyTimeoutError:je.transitional(je.boolean),legacyInterceptorReqResOrdering:je.transitional(je.boolean)},!1),null!=o&&(_e.isFunction(o)?t.paramsSerializer={serialize:o}:qe.assertOptions(o,{encode:je.function,serialize:je.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),qe.assertOptions(t,{baseUrl:je.spelling("baseURL"),withXsrfToken:je.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let d=i&&_e.merge(i.common,i[t.method]);i&&_e.forEach(["delete","get","head","post","put","patch","query","common"],e=>{delete i[e]}),t.headers=AxiosHeaders.concat(d,i);const f=[];let h=!0;this.interceptors.request.forEach(function unshiftRequestInterceptors(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;h=h&&e.synchronous;const n=t.transitional||Ae;n&&n.legacyInterceptorReqResOrdering?f.unshift(e.fulfilled,e.rejected):f.push(e.fulfilled,e.rejected)});const _=[];let m;this.interceptors.response.forEach(function pushResponseInterceptors(e){_.push(e.fulfilled,e.rejected)});let P,U=0;if(!h){const e=[dispatchRequest.bind(this),void 0];for(e.unshift(...f),e.push(..._),P=e.length,m=Promise.resolve(t);U<P;)m=m.then(e[U++],e[U++]);return m}P=f.length;let L=t;for(;U<P;){const e=f[U++],t=f[U++];try{L=e(L)}catch(e){t.call(this,e);break}}try{m=dispatchRequest.call(this,L)}catch(e){return Promise.reject(e)}for(U=0,P=_.length;U<P;)m=m.then(_[U++],_[U++]);return m}getUri(e){return buildURL(buildFullPath((e=mergeConfig(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}_e.forEach(["delete","get","head","options"],function forEachMethodNoData(e){Axios.prototype[e]=function(t,n){return this.request(mergeConfig(n||{},{method:e,url:t,data:(n||{}).data}))}}),_e.forEach(["post","put","patch","query"],function forEachMethodWithData(e){function generateHTTPMethod(t){return function httpMethod(n,o,i){return this.request(mergeConfig(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:o}))}}Axios.prototype[e]=generateHTTPMethod(),"query"!==e&&(Axios.prototype[e+"Form"]=generateHTTPMethod(!0))});class CancelToken{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function promiseExecutor(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const o=new Promise(e=>{n.subscribe(e),t=e}).then(e);return o.cancel=function reject(){n.unsubscribe(t)},o},e(function cancel(e,o,i){n.reason||(n.reason=new CanceledError(e,o,i),t(n.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,abort=t=>{e.abort(t)};return this.subscribe(abort),e.signal.unsubscribe=()=>this.unsubscribe(abort),e.signal}static source(){let e;return{token:new CancelToken(function executor(t){e=t}),cancel:e}}}const Ye={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Ye).forEach(([e,t])=>{Ye[t]=e});const $e=function createInstance(e){const t=new Axios(e),n=bind(Axios.prototype.request,t);return _e.extend(n,Axios.prototype,t,{allOwnKeys:!0}),_e.extend(n,t,null,{allOwnKeys:!0}),n.create=function create(t){return createInstance(mergeConfig(e,t))},n}(Pe);return $e.Axios=Axios,$e.CanceledError=CanceledError,$e.CancelToken=CancelToken,$e.isCancel=isCancel,$e.VERSION=Le,$e.toFormData=toFormData,$e.AxiosError=AxiosError,$e.Cancel=$e.CanceledError,$e.all=function all(e){return Promise.all(e)},$e.spread=function spread(e){return function wrap(t){return e.apply(null,t)}},$e.isAxiosError=function isAxiosError(e){return _e.isObject(e)&&!0===e.isAxiosError},$e.mergeConfig=mergeConfig,$e.AxiosHeaders=AxiosHeaders,$e.formToJSON=e=>formDataToJSON(_e.isHTMLForm(e)?new FormData(e):e),$e.getAdapter=Fe.getAdapter,$e.HttpStatusCode=Ye,$e.default=$e,t=$e}var m,P,U,L,k,j,Y,H={exports:{}};function requireMs(){if(P)return m;P=1;var e=1e3,t=60*e,n=60*t,o=24*n,i=7*o,d=365.25*o;function plural(e,t,n,o){var i=t>=1.5*n;return Math.round(e/n)+" "+o+(i?"s":"")}return m=function(f,h){h=h||{};var _=typeof f;if("string"===_&&f.length>0)return function parse(f){if((f=String(f)).length>100)return;var h=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(f);if(!h)return;var _=parseFloat(h[1]);switch((h[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return _*d;case"weeks":case"week":case"w":return _*i;case"days":case"day":case"d":return _*o;case"hours":case"hour":case"hrs":case"hr":case"h":return _*n;case"minutes":case"minute":case"mins":case"min":case"m":return _*t;case"seconds":case"second":case"secs":case"sec":case"s":return _*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return _;default:return}}(f);if("number"===_&&isFinite(f))return h.long?function fmtLong(i){var d=Math.abs(i);if(d>=o)return plural(i,d,o,"day");if(d>=n)return plural(i,d,n,"hour");if(d>=t)return plural(i,d,t,"minute");if(d>=e)return plural(i,d,e,"second");return i+" ms"}(f):function fmtShort(i){var d=Math.abs(i);if(d>=o)return Math.round(i/o)+"d";if(d>=n)return Math.round(i/n)+"h";if(d>=t)return Math.round(i/t)+"m";if(d>=e)return Math.round(i/e)+"s";return i+"ms"}(f);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(f))},m}function requireBrowser(){return k||(k=1,function(e,t){t.formatArgs=function formatArgs(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let o=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(o++,"%c"===e&&(i=o))}),t.splice(i,0,n)},t.save=function save(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function load(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function useColors(){if("undefined"!=typeof window&&window.process&&("render