UNPKG

axios

Version:

Promise based HTTP client for the browser and node.js

4 lines 61.9 kB
/*! Axios v1.18.0 Copyright (c) 2026 Matt Zabriskie and contributors */ !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).axios=t()}(this,function(){"use strict";function e(e,t){this.v=e,this.k=t}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function n(t){var n={},r=!1;function o(n,o){return r=!0,o=new Promise(function(e){e(t[n](o))}),{done:!1,value:new e(o,1)}}return n["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},n.next=function(e){return r?(r=!1,e):o("next",e)},"function"==typeof t.throw&&(n.throw=function(e){if(r)throw r=!1,e;return o("throw",e)}),"function"==typeof t.return&&(n.return=function(e){return r?(r=!1,e):o("return",e)}),n}function r(e){var t,n,r,i=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,r=Symbol.iterator);i--;){if(n&&null!=(t=e[n]))return t.call(e);if(r&&null!=(t=e[r]))return new o(t.call(e));n="@@asyncIterator",r="@@iterator"}throw new TypeError("Object is not async iterable")}function o(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then(function(e){return{value:e,done:t}})}return o=function(e){this.s=e,this.n=e.next},o.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new o(e)}function i(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function a(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function u(e){i(a,r,o,u,s,"next",e)}function s(e){i(a,r,o,u,s,"throw",e)}u(void 0)})}}function u(t){return new e(t,0)}function s(e,t,n){return t=p(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,v()?Reflect.construct(t,n||[],p(e).constructor):t.apply(e,n))}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,S(r.key),r)}}function l(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function d(e,t,n){return(t=S(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&O(e,t)}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(v=function(){return!!e})()}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function m(){ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof u?r:u,c=Object.create(s.prototype);return g(c,"_invoke",function(n,r,o){var i,u,s,c=0,f=o||[],l=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,u=0,s=e,d.n=n,a}};function p(n,r){for(u=n,s=r,t=0;!l&&c&&!o&&t<f.length;t++){var o,i=f[t],p=d.p,h=i[2];n>3?(o=h===r)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(u=0,d.v=r,d.n=i[1]):p<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,d.n=h,u=0))}if(o||n>1)return a;throw l=!0,r}return function(o,f,h){if(c>1)throw TypeError("Generator is already running");for(l&&1===f&&p(f,h),u=f,s=h;(t=u<2?e:s)||!l;){i||(u?u<3?(u>1&&(d.n=-1),p(u,s)):d.n=s:d.v=s);try{if(c=2,i){if(u||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,u<2&&(u=0)}else 1===u&&(t=i.return)&&t.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((t=(l=d.n<0)?s:n.call(r,d))!==a)break}catch(t){i=e,u=1,s=t}finally{c=1}}return{value:t,done:l}}}(n,o,i),!0),c}var a={};function u(){}function s(){}function c(){}t=Object.getPrototypeOf;var f=[][r]?t(t([][r]())):(g(t={},r,function(){return this}),t),l=c.prototype=u.prototype=Object.create(f);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,g(e,o,"GeneratorFunction")),e.prototype=Object.create(l),e}return s.prototype=c,g(l,"constructor",c),g(c,"constructor",s),s.displayName="GeneratorFunction",g(c,o,"GeneratorFunction"),g(l),g(l,o,"Generator"),g(l,r,function(){return this}),g(l,"toString",function(){return"[object Generator]"}),(m=function(){return{w:i,m:d}})()}function g(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}g=function(e,t,n,r){function i(t,n){g(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},g(e,t,n,r)}function w(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(typeof e+" is not iterable")}function O(e,t){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},O(e,t)}function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||A(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||A(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function _(e){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}function A(e,n){if(e){if("string"==typeof e)return t(e,n);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}function P(e){return function(){return new T(e.apply(this,arguments))}}function T(t){var n,r;function o(n,r){try{var a=t[n](r),u=a.value,s=u instanceof e;Promise.resolve(s?u.v:u).then(function(e){if(s){var r="return"===n&&u.k?n:"next";if(!u.k||e.done)return o(r,e);e=t[r](e).value}i(!!a.done,e)},function(e){o("throw",e)})}catch(e){i(2,e)}}function i(e,t){2===e?n.reject(t):n.resolve({value:t,done:e}),(n=n.next)?o(n.key,n.arg):r=null}this._invoke=function(e,t){return new Promise(function(i,a){var u={key:e,arg:t,resolve:i,reject:a,next:null};r?r=r.next=u:(n=r=u,o(e,t))})},"function"!=typeof t.return&&(this.return=void 0)}function j(e){var t="function"==typeof Map?new Map:void 0;return j=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(v())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&O(o,n.prototype),o}(e,arguments,p(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),O(n,e)},j(e)}function k(e,t){return function(){return e.apply(t,arguments)}}T.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},T.prototype.next=function(e){return this._invoke("next",e)},T.prototype.throw=function(e){return this._invoke("throw",e)},T.prototype.return=function(e){return this._invoke("return",e)};var C,x=Object.prototype.toString,N=Object.getPrototypeOf,D=Symbol.iterator,U=Symbol.toStringTag,L=function(){var e=Object.prototype.hasOwnProperty;return function(t,n){return e.call(t,n)}}(),F=function(e,t){for(var n=e,r=[];null!=n&&n!==Object.prototype;){if(-1!==r.indexOf(n))return!1;if(r.push(n),L(n,t))return!0;n=N(n)}return!1},B=(C=Object.create(null),function(e){var t=x.call(e);return C[t]||(C[t]=t.slice(8,-1).toLowerCase())}),I=function(e){return e=e.toLowerCase(),function(t){return B(t)===e}},q=function(e){return function(t){return _(t)===e}},M=Array.isArray,z=q("undefined");function H(e){return null!==e&&!z(e)&&null!==e.constructor&&!z(e.constructor)&&V(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var W=I("ArrayBuffer");var J=q("string"),V=q("function"),K=q("number"),X=function(e){return null!==e&&"object"===_(e)},G=function(e){if(!X(e))return!1;var t=N(e);return!(null!==t&&t!==Object.prototype&&null!==N(t)||F(e,U)||F(e,D))},$=I("Date"),Q=I("File"),Z=I("Blob"),Y=I("FileList");var ee="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},te=void 0!==ee.FormData?ee.FormData:void 0,ne=I("URLSearchParams"),re=E(["ReadableStream","Request","Response","Headers"].map(I),4),oe=re[0],ie=re[1],ae=re[2],ue=re[3];function se(e,t){var n,r,o=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).allOwnKeys,i=void 0!==o&&o;if(null!=e)if("object"!==_(e)&&(e=[e]),M(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{if(H(e))return;var a,u=i?Object.getOwnPropertyNames(e):Object.keys(e),s=u.length;for(n=0;n<s;n++)a=u[n],t.call(null,e[a],a,e)}}function ce(e,t){if(H(e))return null;t=t.toLowerCase();for(var n,r=Object.keys(e),o=r.length;o-- >0;)if(t===(n=r[o]).toLowerCase())return n;return null}var fe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,le=function(e){return!z(e)&&e!==fe};var de,pe=(de="undefined"!=typeof Uint8Array&&N(Uint8Array),function(e){return de&&e instanceof de}),he=I("HTMLFormElement"),ve=Object.prototype.propertyIsEnumerable,ye=I("RegExp"),be=function(e,t){var n=Object.getOwnPropertyDescriptors(e),r={};se(n,function(n,o){var i;!1!==(i=t(n,o,e))&&(r[o]=i||n)}),Object.defineProperties(e,r)};var me,ge,we,Oe,Ee=I("AsyncFunction"),Re=(me="function"==typeof setImmediate,ge=V(fe.postMessage),me?setImmediate:ge?(we="axios@".concat(Math.random()),Oe=[],fe.addEventListener("message",function(e){var t=e.source,n=e.data;t===fe&&n===we&&Oe.length&&Oe.shift()()},!1),function(e){Oe.push(e),fe.postMessage(we,"*")}):function(e){return setTimeout(e)}),Se="undefined"!=typeof queueMicrotask?queueMicrotask.bind(fe):"undefined"!=typeof process&&process.nextTick||Re,_e=function(e){return null!=e&&V(e[D])},Ae={isArray:M,isArrayBuffer:W,isBuffer:H,isFormData:function(e){if(!e)return!1;if(te&&e instanceof te)return!0;var t=N(e);if(!t||t===Object.prototype)return!1;if(!V(e.append))return!1;var n=B(e);return"formdata"===n||"object"===n&&V(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&W(e.buffer)},isString:J,isNumber:K,isBoolean:function(e){return!0===e||!1===e},isObject:X,isPlainObject:G,isEmptyObject:function(e){if(!X(e)||H(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:oe,isRequest:ie,isResponse:ae,isHeaders:ue,isUndefined:z,isDate:$,isFile:Q,isReactNativeBlob:function(e){return!(!e||void 0===e.uri)},isReactNative:function(e){return e&&void 0!==e.getParts},isBlob:Z,isRegExp:ye,isFunction:V,isStream:function(e){return X(e)&&V(e.pipe)},isURLSearchParams:ne,isTypedArray:pe,isFileList:Y,forEach:se,merge:function e(){for(var t=le(this)&&this||{},n=t.caseless,r=t.skipUndefined,o={},i=function(t,i){if("__proto__"!==i&&"constructor"!==i&&"prototype"!==i){var a=n&&"string"==typeof i&&ce(o,i)||i,u=L(o,a)?o[a]:void 0;G(u)&&G(t)?o[a]=e(u,t):G(t)?o[a]=e({},t):M(t)?o[a]=t.slice():r&&z(t)||(o[a]=t)}},a=0,u=arguments.length;a<u;a++){var s=a<0||arguments.length<=a?void 0:arguments[a];if(s&&!H(s)&&(se(s,i),"object"===_(s)&&!M(s)))for(var c=Object.getOwnPropertySymbols(s),f=0;f<c.length;f++){var l=c[f];ve.call(s,l)&&i(s[l],l)}}return o},extend:function(e,t,n){return se(t,function(t,r){n&&V(t)?Object.defineProperty(e,r,{__proto__:null,value:k(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).allOwnKeys}),e},trim:function(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n,r){var o,i,a,u={};if(t=t||{},null==e)return t;do{for(i=(o=Object.getOwnPropertyNames(e)).length;i-- >0;)a=o[i],r&&!r(a,e,t)||u[a]||(t[a]=e[a],u[a]=!0);e=!1!==n&&N(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:B,kindOfTest:I,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;if(M(e))return e;var t=e.length;if(!K(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},forEachEntry:function(e,t){for(var n,r=(e&&e[D]).call(e);(n=r.next())&&!n.done;){var o=n.value;t.call(e,o[0],o[1])}},matchAll:function(e,t){for(var n,r=[];null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:he,hasOwnProperty:L,hasOwnProp:L,hasOwnInPrototypeChain:F,getSafeProp:function(e,t){return null!=e&&F(e,t)?e[t]:void 0},reduceDescriptors:be,freezeMethods:function(e){be(e,function(t,n){if(V(e)&&["arguments","caller","callee"].includes(n))return!1;var r=e[n];V(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=function(){throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:function(e,t){var n={},r=function(e){e.forEach(function(e){n[e]=!0})};return M(e)?r(e):r(String(e).split(t)),n},toCamelCase:function(e){return e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n})},noop:function(){},toFiniteNumber:function(e,t){return null!=e&&Number.isFinite(e=+e)?e:t},findKey:ce,global:fe,isContextDefined:le,isSpecCompliantForm:function(e){return!!(e&&V(e.append)&&"FormData"===e[U]&&e[D])},toJSONObject:function(e){var t=new WeakSet,n=function(e){if(X(e)){if(t.has(e))return;if(H(e))return e;if(!("toJSON"in e)){t.add(e);var r=M(e)?[]:{};return se(e,function(e,t){var o=n(e);!z(o)&&(r[t]=o)}),t.delete(e),r}}return e};return n(e)},isAsyncFn:Ee,isThenable:function(e){return e&&(X(e)||V(e))&&V(e.then)&&V(e.catch)},setImmediate:Re,asap:Se,isIterable:_e,isSafeIterable:function(e){return null!=e&&F(e,D)&&_e(e)}},Pe=Ae.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"]);var Te=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),je=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function ke(e,t){return Ae.isArray(e)?e.map(function(e){return ke(e,t)}):function(e){for(var t=0,n=e.length;t<n;){var r=e.charCodeAt(t);if(9!==r&&32!==r)break;t+=1}for(;n>t;){var o=e.charCodeAt(n-1);if(9!==o&&32!==o)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}(String(e).replace(t,""))}function Ce(e){var t=Object.create(null);return Ae.forEach(e.toJSON(),function(e,n){t[n]=function(e){return ke(e,je)}(e)}),t}var xe=Symbol("internals");function Ne(e){return e&&String(e).trim().toLowerCase()}function De(e){return!1===e||null==e?e:Ae.isArray(e)?e.map(De):function(e){return ke(e,Te)}(String(e))}function Ue(e,t,n,r,o){return Ae.isFunction(r)?r.call(this,t,n):(o&&(t=n),Ae.isString(t)?Ae.isString(r)?-1!==t.indexOf(r):Ae.isRegExp(r)?r.test(t):void 0:void 0)}var Le=function(){return l(function e(t){c(this,e),t&&this.set(t)},[{key:"set",value:function(e,t,n){var r=this;function o(e,t,n){var o=Ne(t);if(o){var i=Ae.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=De(e))}}var i=function(e,t){return Ae.forEach(e,function(e,n){return o(e,n,t)})};if(Ae.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Ae.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i(function(e){var t,n,r,o={};return e&&e.split("\n").forEach(function(e){r=e.indexOf(":"),t=e.substring(0,r).trim().toLowerCase(),n=e.substring(r+1).trim(),!t||o[t]&&Pe[t]||("set-cookie"===t?o[t]?o[t].push(n):o[t]=[n]:o[t]=o[t]?o[t]+", "+n:n)}),o}(e),t);else if(Ae.isObject(e)&&Ae.isSafeIterable(e)){var a,u,s,c=Object.create(null),f=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=A(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}(e);try{for(f.s();!(s=f.n()).done;){var l=s.value;if(!Ae.isArray(l))throw new TypeError("Object iterator must return a key-value pair");u=l[0],Ae.hasOwnProp(c,u)?(a=c[u],c[u]=Ae.isArray(a)?[].concat(R(a),[l[1]]):[a,l[1]]):c[u]=l[1]}}catch(e){f.e(e)}finally{f.f()}i(c,t)}else null!=e&&o(t,e,n);return this}},{key:"get",value:function(e,t){if(e=Ne(e)){var n=Ae.findKey(this,e);if(n){var r=this[n];if(!t)return r;if(!0===t)return function(e){for(var t,n=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;t=r.exec(e);)n[t[1]]=t[2];return n}(r);if(Ae.isFunction(t))return t.call(this,r,n);if(Ae.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}},{key:"has",value:function(e,t){if(e=Ne(e)){var n=Ae.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ue(0,this[n],n,t))}return!1}},{key:"delete",value:function(e,t){var n=this,r=!1;function o(e){if(e=Ne(e)){var o=Ae.findKey(n,e);!o||t&&!Ue(0,n[o],o,t)||(delete n[o],r=!0)}}return Ae.isArray(e)?e.forEach(o):o(e),r}},{key:"clear",value:function(e){for(var t=Object.keys(this),n=t.length,r=!1;n--;){var o=t[n];e&&!Ue(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}},{key:"normalize",value:function(e){var t=this,n={};return Ae.forEach(this,function(r,o){var i=Ae.findKey(n,o);if(i)return t[i]=De(r),void delete t[o];var a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n})}(o):String(o).trim();a!==o&&delete t[o],t[a]=De(r),n[a]=!0}),this}},{key:"concat",value:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=this.constructor).concat.apply(e,[this].concat(n))}},{key:"toJSON",value:function(e){var t=Object.create(null);return Ae.forEach(this,function(n,r){null!=n&&!1!==n&&(t[r]=e&&Ae.isArray(n)?n.join(", "):n)}),t}},{key:Symbol.iterator,value:function(){return Object.entries(this.toJSON())[Symbol.iterator]()}},{key:"toString",value:function(){return Object.entries(this.toJSON()).map(function(e){var t=E(e,2);return t[0]+": "+t[1]}).join("\n")}},{key:"getSetCookie",value:function(){return this.get("set-cookie")||[]}},{key:Symbol.toStringTag,get:function(){return"AxiosHeaders"}}],[{key:"from",value:function(e){return e instanceof this?e:new this(e)}},{key:"concat",value:function(e){for(var t=new this(e),n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.forEach(function(e){return t.set(e)}),t}},{key:"accessor",value:function(e){var t=(this[xe]=this[xe]={accessors:{}}).accessors,n=this.prototype;function r(e){var r=Ne(e);t[r]||(!function(e,t){var n=Ae.toCamelCase(" "+t);["get","set","has"].forEach(function(r){Object.defineProperty(e,r+n,{__proto__:null,value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return Ae.isArray(e)?e.forEach(r):r(e),this}}])}();Le.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ae.reduceDescriptors(Le.prototype,function(e,t){var n=e.value,r=t[0].toUpperCase()+t.slice(1);return{get:function(){return n},set:function(e){this[r]=e}}}),Ae.freezeMethods(Le);function Fe(e,t){var n=new Set(t.map(function(e){return String(e).toLowerCase()})),r=[],o=function(e){if(null===e||"object"!==_(e))return e;if(Ae.isBuffer(e))return e;if(-1===r.indexOf(e)){var t;if(e instanceof Le&&(e=e.toJSON()),r.push(e),Ae.isArray(e))t=[],e.forEach(function(e,n){var r=o(e);Ae.isUndefined(r)||(t[n]=r)});else{if(!Ae.isPlainObject(e)&&function(e){if(Ae.hasOwnProp(e,"toJSON"))return!0;for(var t=Object.getPrototypeOf(e);t&&t!==Object.prototype;){if(Ae.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(e))return r.pop(),e;t=Object.create(null);for(var i=0,a=Object.entries(e);i<a.length;i++){var u=E(a[i],2),s=u[0],c=u[1],f=n.has(s.toLowerCase())?"[REDACTED ****]":o(c);Ae.isUndefined(f)||(t[s]=f)}}return r.pop(),t}};return o(e)}var Be=function(e){function t(e,n,r,o,i){var a;return c(this,t),a=s(this,t,[e]),Object.defineProperty(a,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),a.name="AxiosError",a.isAxiosError=!0,n&&(a.code=n),r&&(a.config=r),o&&(a.request=o),i&&(a.response=i,a.status=i.status),a}return h(t,e),l(t,[{key:"toJSON",value:function(){var e=this.config,t=e&&Ae.hasOwnProp(e,"redact")?e.redact:void 0,n=Ae.isArray(t)&&t.length>0?Fe(e,t):Ae.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}}}],[{key:"from",value:function(e,n,r,o,i,a){var u=new t(e.message,n||e.code,r,o,i);return u.cause=e,u.name=e.name,null!=e.status&&null==u.status&&(u.status=e.status),a&&Object.assign(u,a),u}}])}(j(Error));Be.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",Be.ERR_BAD_OPTION="ERR_BAD_OPTION",Be.ECONNABORTED="ECONNABORTED",Be.ETIMEDOUT="ETIMEDOUT",Be.ECONNREFUSED="ECONNREFUSED",Be.ERR_NETWORK="ERR_NETWORK",Be.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",Be.ERR_DEPRECATED="ERR_DEPRECATED",Be.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",Be.ERR_BAD_REQUEST="ERR_BAD_REQUEST",Be.ERR_CANCELED="ERR_CANCELED",Be.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",Be.ERR_INVALID_URL="ERR_INVALID_URL",Be.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";function Ie(e){return Ae.isPlainObject(e)||Ae.isArray(e)}function qe(e){return Ae.endsWith(e,"[]")?e.slice(0,-2):e}function Me(e,t,n){return e?e.concat(t).map(function(e,t){return e=qe(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}var ze=Ae.toFlatObject(Ae,{},null,function(e){return/^is[A-Z]/.test(e)});function He(e,t,n){if(!Ae.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;var r=(n=Ae.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!Ae.isUndefined(t[e])})).metaTokens,o=n.visitor||p,i=n.dots,a=n.indexes,u=n.Blob||"undefined"!=typeof Blob&&Blob,s=void 0===n.maxDepth?100:n.maxDepth,c=u&&Ae.isSpecCompliantForm(t),f=[];if(!Ae.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(Ae.isDate(e))return e.toISOString();if(Ae.isBoolean(e))return e.toString();if(!c&&Ae.isBlob(e))throw new Be("Blob is not supported. Use a Buffer instead.");return Ae.isArrayBuffer(e)||Ae.isTypedArray(e)?c&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function d(e){if(e>s)throw new Be("Object is too deeply nested ("+e+" levels). Max depth: "+s,Be.ERR_FORM_DATA_DEPTH_EXCEEDED)}function p(e,n,o){var u=e;if(Ae.isReactNative(t)&&Ae.isReactNativeBlob(e))return t.append(Me(o,n,i),l(e)),!1;if(e&&!o&&"object"===_(e))if(Ae.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=function(e,t){if(s===1/0)return JSON.stringify(e);var n=[];return JSON.stringify(e,function(e,r){if(!Ae.isObject(r))return r;for(;n.length&&n[n.length-1]!==this;)n.pop();return n.push(r),d(t+n.length-1),r})}(e,1);else if(Ae.isArray(e)&&function(e){return Ae.isArray(e)&&!e.some(Ie)}(e)||(Ae.isFileList(e)||Ae.endsWith(n,"[]"))&&(u=Ae.toArray(e)))return n=qe(n),u.forEach(function(e,r){!Ae.isUndefined(e)&&null!==e&&t.append(!0===a?Me([n],r,i):null===a?n:n+"[]",l(e))}),!1;return!!Ie(e)||(t.append(Me(o,n,i),l(e)),!1)}var h=Object.assign(ze,{defaultVisitor:p,convertValue:l,isVisitable:Ie});if(!Ae.isObject(e))throw new TypeError("data must be an object");return function e(n,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!Ae.isUndefined(n)){if(d(i),-1!==f.indexOf(n))throw new Error("Circular reference detected in "+r.join("."));f.push(n),Ae.forEach(n,function(n,a){!0===(!(Ae.isUndefined(n)||null===n)&&o.call(t,n,Ae.isString(a)?a.trim():a,r,h))&&e(n,r?r.concat(a):[a],i+1)}),f.pop()}}(e),t}function We(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function Je(e,t){this._pairs=[],e&&He(e,this,t)}var Ve=Je.prototype;function Ke(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Xe(e,t,n){if(!t)return e;var r,o=Ae.isFunction(n)?{serialize:n}:n,i=Ae.getSafeProp(o,"encode")||Ke,a=Ae.getSafeProp(o,"serialize");if(r=a?a(t,o):Ae.isURLSearchParams(t)?t.toString():new Je(t,o).toString(i)){var u=e.indexOf("#");-1!==u&&(e=e.slice(0,u)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}Ve.append=function(e,t){this._pairs.push([e,t])},Ve.toString=function(e){var t=e?function(t){return e.call(this,t,We)}:We;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var Ge=function(){return l(function e(){c(this,e),this.handlers=[]},[{key:"use",value:function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}},{key:"eject",value:function(e){this.handlers[e]&&(this.handlers[e]=null)}},{key:"clear",value:function(){this.handlers&&(this.handlers=[])}},{key:"forEach",value:function(e){Ae.forEach(this.handlers,function(t){null!==t&&e(t)})}}])}(),$e={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},Qe={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Je,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Ze="undefined"!=typeof window&&"undefined"!=typeof document,Ye="object"===("undefined"==typeof navigator?"undefined":_(navigator))&&navigator||void 0,et=Ze&&(!Ye||["ReactNative","NativeScript","NS"].indexOf(Ye.product)<0),tt="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,nt=Ze&&window.location.href||"http://localhost",rt=b(b({},Object.freeze({__proto__:null,hasBrowserEnv:Ze,hasStandardBrowserEnv:et,hasStandardBrowserWebWorkerEnv:tt,navigator:Ye,origin:nt})),Qe);function ot(e){if(e>100)throw new Be("FormData field is too deeply nested ("+e+" levels). Max depth: 100",Be.ERR_FORM_DATA_DEPTH_EXCEEDED)}function it(e){function t(e,n,r,o){ot(o);var i=e[o++];if("__proto__"===i)return!0;var a=Number.isFinite(+i),u=o>=e.length;return i=!i&&Ae.isArray(r)?r.length:i,u?(Ae.hasOwnProp(r,i)?r[i]=Ae.isArray(r[i])?r[i].concat(n):[r[i],n]:r[i]=n,!a):(Ae.hasOwnProp(r,i)&&Ae.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&Ae.isArray(r[i])&&(r[i]=function(e){var t,n,r={},o=Object.keys(e),i=o.length;for(t=0;t<i;t++)r[n=o[t]]=e[n];return r}(r[i])),!a)}if(Ae.isFormData(e)&&Ae.isFunction(e.entries)){var n={};return Ae.forEachEntry(e,function(e,r){t(function(e){for(var t,n=[],r=/\w+|\[(\w*)]/g;null!==(t=r.exec(e));)ot(n.length),n.push("[]"===t[0]?"":t[1]||t[0]);return n}(e),r,n,0)}),n}return null}var at=function(e,t){return null!=e&&Ae.hasOwnProp(e,t)?e[t]:void 0};var ut={transitional:$e,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){var n,r=t.getContentType()||"",o=r.indexOf("application/json")>-1,i=Ae.isObject(e);if(i&&Ae.isHTMLForm(e)&&(e=new FormData(e)),Ae.isFormData(e))return o?JSON.stringify(it(e)):e;if(Ae.isArrayBuffer(e)||Ae.isBuffer(e)||Ae.isStream(e)||Ae.isFile(e)||Ae.isBlob(e)||Ae.isReadableStream(e))return e;if(Ae.isArrayBufferView(e))return e.buffer;if(Ae.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){var a=at(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return He(e,new rt.classes.URLSearchParams,b({visitor:function(e,t,n,r){return rt.isNode&&Ae.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,a).toString();if((n=Ae.isFileList(e))||r.indexOf("multipart/form-data")>-1){var u=at(this,"env"),s=u&&u.FormData;return He(n?{"files[]":e}:e,s&&new s,a)}}return i||o?(t.setContentType("application/json",!1),function(e,t,n){if(Ae.isString(e))try{return(t||JSON.parse)(e),Ae.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=at(this,"transitional")||ut.transitional,n=t&&t.forcedJSONParsing,r=at(this,"responseType"),o="json"===r;if(Ae.isResponse(e)||Ae.isReadableStream(e))return e;if(e&&Ae.isString(e)&&(n&&!r||o)){var i=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e,at(this,"parseReviver"))}catch(e){if(i){if("SyntaxError"===e.name)throw Be.from(e,Be.ERR_BAD_RESPONSE,this,null,at(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:rt.classes.FormData,Blob:rt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function st(e,t){var n=this||ut,r=t||n,o=Le.from(r.headers),i=r.data;return Ae.forEach(e,function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function ct(e){return!(!e||!e.__CANCEL__)}Ae.forEach(["delete","get","head","post","put","patch","query"],function(e){ut.headers[e]={}});var ft=function(e){function t(e,n,r){var o;return c(this,t),(o=s(this,t,[null==e?"canceled":e,Be.ERR_CANCELED,n,r])).name="CanceledError",o.__CANCEL__=!0,o}return h(t,e),l(t)}(Be);function lt(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Be("Request failed with status code "+n.status,n.status>=400&&n.status<500?Be.ERR_BAD_REQUEST:Be.ERR_BAD_RESPONSE,n.config,n.request,n)):e(n)}var dt=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,r=0,o=function(e,t){e=e||10;var n,r=new Array(e),o=new Array(e),i=0,a=0;return t=void 0!==t?t:1e3,function(u){var s=Date.now(),c=o[a];n||(n=s),r[i]=u,o[i]=s;for(var f=a,l=0;f!==i;)l+=r[f++],f%=e;if((i=(i+1)%e)===a&&(a=(a+1)%e),!(s-n<t)){var d=c&&s-c;return d?Math.round(1e3*l/d):void 0}}}(50,250);return function(e,t){var n,r,o=0,i=1e3/t,a=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(void 0,R(t))};return[function(){for(var e=Date.now(),t=e-o,u=arguments.length,s=new Array(u),c=0;c<u;c++)s[c]=arguments[c];t>=i?a(s,e):(n=s,r||(r=setTimeout(function(){r=null,a(n)},i-t)))},function(){return n&&a(n)}]}(function(n){if(n&&"number"==typeof n.loaded){var i=n.loaded,a=n.lengthComputable?n.total:void 0,u=null!=a?Math.min(i,a):i,s=Math.max(0,u-r),c=o(s);r=Math.max(r,u);var f=d({loaded:u,total:a,progress:a?u/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a?(a-u)/c:void 0,event:n,lengthComputable:null!=a},t?"download":"upload",!0);e(f)}},n)},pt=function(e,t){var n=null!=e;return[function(r){return t[0]({lengthComputable:n,total:e,loaded:r})},t[1]]},ht=function(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Ae.asap(function(){return e.apply(void 0,n)})}},vt=rt.hasStandardBrowserEnv?function(e,t){return function(n){return n=new URL(n,rt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)}}(new URL(rt.origin),rt.navigator&&/(msie|trident)/i.test(rt.navigator.userAgent)):function(){return!0},yt=rt.hasStandardBrowserEnv?{write:function(e,t,n,r,o,i,a){if("undefined"!=typeof document){var u=["".concat(e,"=").concat(encodeURIComponent(t))];Ae.isNumber(n)&&u.push("expires=".concat(new Date(n).toUTCString())),Ae.isString(r)&&u.push("path=".concat(r)),Ae.isString(o)&&u.push("domain=".concat(o)),!0===i&&u.push("secure"),Ae.isString(a)&&u.push("SameSite=".concat(a)),document.cookie=u.join("; ")}},read:function(e){if("undefined"==typeof document)return null;for(var t=document.cookie.split(";"),n=0;n<t.length;n++){var r=t[n].replace(/^\s+/,""),o=r.indexOf("=");if(-1!==o&&r.slice(0,o)===e)return decodeURIComponent(r.slice(o+1))}return null},remove:function(e){this.write(e,"",Date.now()-864e5,"/")}}:{write:function(){},read:function(){return null},remove:function(){}};var bt=/^https?:(?!\/\/)/i,mt=/[\t\n\r]/g;function gt(e,t){if("string"==typeof e&&bt.test(function(e){return function(e){for(var t=0;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}(e).replace(mt,"")}(e)))throw new Be('Invalid URL: missing "//" after protocol',Be.ERR_INVALID_URL,t)}function wt(e,t,n,r){gt(t,r);var o,i=!("string"==typeof(o=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o));return e&&(i||!1===n)?(gt(e,r),function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t)):t}var Ot=function(e){return e instanceof Le?b({},e):e};function Et(e,t){t=t||{};var n=Object.create(null);function r(e,t,n,r){return Ae.isPlainObject(e)&&Ae.isPlainObject(t)?Ae.merge.call({caseless:r},e,t):Ae.isPlainObject(t)?Ae.merge({},t):Ae.isArray(t)?t.slice():t}function o(e,t,n,o){return Ae.isUndefined(t)?Ae.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!Ae.isUndefined(t))return r(void 0,t)}function a(e,t){return Ae.isUndefined(t)?Ae.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function u(n,o,i){return Ae.hasOwnProp(t,i)?r(n,o):Ae.hasOwnProp(e,i)?r(void 0,n):void 0}Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});var s={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,allowedSocketPaths:a,responseEncoding:a,validateStatus:u,headers:function(e,t,n){return o(Ot(e),Ot(t),0,!0)}};return Ae.forEach(Object.keys(b(b({},e),t)),function(r){if("__proto__"!==r&&"constructor"!==r&&"prototype"!==r){var i=Ae.hasOwnProp(s,r)?s[r]:o,a=i(Ae.hasOwnProp(e,r)?e[r]:void 0,Ae.hasOwnProp(t,r)?t[r]:void 0,r);Ae.isUndefined(a)&&i!==u||(n[r]=a)}}),Ae.hasOwnProp(t,"validateStatus")&&Ae.isUndefined(t.validateStatus)&&!1===function(n){var r=Ae.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!Ae.isUndefined(r)){if(!Ae.isPlainObject(r))return;if(Ae.hasOwnProp(r,n))return r[n]}var o=Ae.hasOwnProp(e,"transitional")?e.transitional:void 0;if(Ae.isPlainObject(o)&&Ae.hasOwnProp(o,n))return o[n]}("validateStatusUndefinedResolves")&&(Ae.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}var Rt=["content-type","content-length"];function St(e){var t=Et({},e),n=function(e){return Ae.hasOwnProp(t,e)?t[e]:void 0},r=n("data"),o=n("withXSRFToken"),i=n("xsrfHeaderName"),a=n("xsrfCookieName"),u=n("headers"),s=n("auth"),c=n("baseURL"),f=n("allowAbsoluteUrls"),l=n("url");if(t.headers=u=Le.from(u),t.url=Xe(wt(c,l,f,t),n("params"),n("paramsSerializer")),s){var d=Ae.getSafeProp(s,"username")||"",p=Ae.getSafeProp(s,"password")||"";u.set("Authorization","Basic "+btoa(d+":"+(p?encodeURIComponent(p).replace(/%([0-9A-F]{2})/gi,function(e,t){return String.fromCharCode(parseInt(t,16))}):"")))}if((Ae.isFormData(r)&&(rt.hasStandardBrowserEnv||rt.hasStandardBrowserWebWorkerEnv||Ae.isReactNative(r)?u.setContentType(void 0):Ae.isFunction(r.getHeaders)&&function(e,t,n){"content-only"===n?Object.entries(t).forEach(function(t){var n=E(t,2),r=n[0],o=n[1];Rt.includes(r.toLowerCase())&&e.set(r,o)}):e.set(t)}(u,r.getHeaders(),n("formDataHeaderPolicy"))),rt.hasStandardBrowserEnv)&&(Ae.isFunction(o)&&(o=o(t)),!0===o||null==o&&vt(t.url))){var h=i&&a&&yt.read(a);h&&u.set(i,h)}return t}var _t="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){var r,o,i,a,u,s=St(e),c=s.data,f=Le.from(s.headers).normalize(),l=s.responseType,d=s.onUploadProgress,p=s.onDownloadProgress;function h(){a&&a(),u&&u(),s.cancelToken&&s.cancelToken.unsubscribe(r),s.signal&&s.signal.removeEventListener("abort",r)}var v=new XMLHttpRequest;function y(){if(v){var r=Le.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders());lt(function(e){t(e),h()},function(e){n(e),h()},{data:l&&"text"!==l&&"json"!==l?v.response:v.responseText,status:v.status,statusText:v.statusText,headers:r,config:e,request:v}),v=null}}if(v.open(s.method.toUpperCase(),s.url,!0),v.timeout=s.timeout,"onloadend"in v?v.onloadend=y:v.onreadystatechange=function(){v&&4===v.readyState&&(0!==v.status||v.responseURL&&v.responseURL.startsWith("file:"))&&setTimeout(y)},v.onabort=function(){v&&(n(new Be("Request aborted",Be.ECONNABORTED,e,v)),h(),v=null)},v.onerror=function(t){var r=t&&t.message?t.message:"Network Error",o=new Be(r,Be.ERR_NETWORK,e,v);o.event=t||null,n(o),h(),v=null},v.ontimeout=function(){var t=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded",r=s.transitional||$e;s.timeoutErrorMessage&&(t=s.timeoutErrorMessage),n(new Be(t,r.clarifyTimeoutError?Be.ETIMEDOUT:Be.ECONNABORTED,e,v)),h(),v=null},void 0===c&&f.setContentType(null),"setRequestHeader"in v&&Ae.forEach(Ce(f),function(e,t){v.setRequestHeader(t,e)}),Ae.isUndefined(s.withCredentials)||(v.withCredentials=!!s.withCredentials),l&&"json"!==l&&(v.responseType=s.responseType),p){var b=E(dt(p,!0),2);i=b[0],u=b[1],v.addEventListener("progress",i)}if(d&&v.upload){var m=E(dt(d),2);o=m[0],a=m[1],v.upload.addEventListener("progress",o),v.upload.addEventListener("loadend",a)}(s.cancelToken||s.signal)&&(r=function(t){v&&(n(!t||t.type?new ft(null,e,v):t),v.abort(),h(),v=null)},s.cancelToken&&s.cancelToken.subscribe(r),s.signal&&(s.signal.aborted?r():s.signal.addEventListener("abort",r)));var g,w,O=(g=s.url,(w=/^([-+\w]{1,25}):(?:\/\/)?/.exec(g))&&w[1]||"");!O||rt.protocols.includes(O)?v.send(c||null):n(new Be("Unsupported protocol "+O+":",Be.ERR_BAD_REQUEST,e))})},At=function(e,t){if(e=e?e.filter(Boolean):[],t||e.length){var n=new AbortController,r=!1,o=function(e){if(!r){r=!0,a();var t=e instanceof Error?e:this.reason;n.abort(t instanceof Be?t:new ft(t instanceof Error?t.message:t))}},i=t&&setTimeout(function(){i=null,o(new Be("timeout of ".concat(t,"ms exceeded"),Be.ETIMEDOUT))},t),a=function(){e&&(i&&clearTimeout(i),i=null,e.forEach(function(e){e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(function(e){return e.addEventListener("abort",o)});var u=n.signal;return u.unsubscribe=function(){return Ae.asap(a)},u}},Pt=m().m(function e(t,n){var r,o,i;return m().w(function(e){for(;;)switch(e.n){case 0:if(r=t.byteLength,n&&!(r<n)){e.n=2;break}return e.n=1,t;case 1:return e.a(2);case 2:o=0;case 3:if(!(o<r)){e.n=5;break}return i=o+n,e.n=4,t.slice(o,i);case 4:o=i,e.n=3;break;case 5:return e.a(2)}},e)}),Tt=function(){var e=P(m().m(function e(t,o){var i,a,s,c,f,l,d;return m().w(function(e){for(;;)switch(e.p=e.n){case 0:i=!1,a=!1,e.p=1,c=r(jt(t));case 2:return e.n=3,u(c.next());case 3:if(!(i=!(f=e.v).done)){e.n=5;break}return l=f.value,e.d(w(n(r(Pt(l,o)))),4);case 4:i=!1,e.n=2;break;case 5:e.n=7;break;case 6:e.p=6,d=e.v,a=!0,s=d;case 7:if(e.p=7,e.p=8,!i||null==c.return){e.n=9;break}return e.n=9,u(c.return());case 9:if(e.p=9,!a){e.n=10;break}throw s;case 10:return e.f(9);case 11:return e.f(7);case 12:return e.a(2)}},e,null,[[8,,9,11],[1,6,7,12]])}));return function(t,n){return e.apply(this,arguments)}}(),jt=function(){var e=P(m().m(function e(t){var o,i,a,s;return m().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!t[Symbol.asyncIterator]){e.n=2;break}return e.d(w(n(r(t))),1);case 1:return e.a(2);case 2:o=t.getReader(),e.p=3;case 4:return e.n=5,u(o.read());case 5:if(i=e.v,a=i.done,s=i.value,!a){e.n=6;break}return e.a(3,8);case 6:return e.n=7,s;case 7:e.n=4;break;case 8:return e.p=8,e.n=9,u(o.cancel());case 9:return e.f(8);case 10:return e.a(2)}},e,null,[[3,,8,10]])}));return function(t){return e.apply(this,arguments)}}(),kt=function(e,t,n,r){var o,i=Tt(e,t),u=0,s=function(e){o||(o=!0,r&&r(e))};return new ReadableStream({pull:function(e){return a(m().m(function t(){var r,o,a,c,f,l;return m().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,i.next();case 1:if(r=t.v,o=r.done,a=r.value,!o){t.n=2;break}return s(),e.close(),t.a(2);case 2:c=a.byteLength,n&&(f=u+=c,n(f)),e.enqueue(new Uint8Array(a)),t.n=4;break;case 3:throw t.p=3,l=t.v,s(l),l;case 4:return t.a(2)}},t,null,[[0,3]])}))()},cancel:function(e){return s(e),i.return()}},{highWaterMark:2})},Ct=function(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102},xt=function(e,t,n){return t+2<n&&Ct(e.charCodeAt(t+1))&&Ct(e.charCodeAt(t+2))};function Nt(e){if(!e||"string"!=typeof e)return 0;if(!e.startsWith("data:"))return 0;var t=e.indexOf(",");if(t<0)return 0;var n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){for(var o=r.length,i=r.length,a=0;a<i;a++)if(37===r.charCodeAt(a)&&a+2<i){var u=r.charCodeAt(a+1),s=r.charCodeAt(a+2);Ct(u)&&Ct(s)&&(o-=2,a+=2)}var c=0,f=i-1,l=function(e){return e>=2&&37===r.charCodeAt(e-2)&&51===r.charCodeAt(e-1)&&(68===r.charCodeAt(e)||100===r.charCodeAt(e))};f>=0&&(61===r.charCodeAt(f)?(c++,f--):l(f)&&(c++,f-=3)),1===c&&f>=0&&(61===r.charCodeAt(f)||l(f))&&c++;var d=3*Math.floor(o/4)-(c||0);return d>0?d:0}for(var p=0,h=0,v=r.length;h<v;h++){var y=r.charCodeAt(h);if(37===y&&xt(r,h,v))p+=1,h+=2;else if(y<128)p+=1;else if(y<2048)p+=2;else if(y>=55296&&y<=56319&&h+1<v){var b=r.charCodeAt(h+1);b>=56320&&b<=57343?(p+=4,h++):p+=3}else p+=3}return p}var Dt="1.18.0",Ut=Ae.isFunction,Lt=function(e){return encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,function(e,t){return String.fromCharCode(parseInt(t,16))})},Ft=function(e){if(!Ae.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},Bt=function(e){try{for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return!!e.apply(void 0,n)}catch(e){return!1}},It=function(e){var t=e.indexOf("://"),n=e;return-1!==t&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},qt=function(e){var t=void 0!==Ae.global&&null!==Ae.global?Ae.global:globalThis,n=t.ReadableStream,r=t.TextEncoder,o=e=Ae.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e),i=o.fetch,u=o.Request,s=o.Response,c=i?Ut(i):"function"==typeof fetch,f=Ut(u),l=Ut(s);if(!c)return!1;var d,p=c&&Ut(n),h=c&&("function"==typeof r?(d=new r,function(e){return d.encode(e)}):function(){var e=a(m().m(function e(t){var n,r;return m().w(function(e){for(;;)switch(e.n){case 0:return n=Uint8Array,e.n=1,new u(t).arrayBuffer();case 1:return r=e.v,e.a(2,new n(r))}},e)}));return function(t){return e.apply(this,arguments)}}()),v=f&&p&&Bt(function(){var e=!1,t=new u(rt.origin,{body:new n,method:"POST",get duplex(){return e=!0,"half"}}),r=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!r}),y=l&&p&&Bt(function(){return Ae.isReadableStream(new s("").body)}),g={stream:y&&function(e){return e.body}};c&&["text","arrayBuffer","blob","formData","stream"].forEach(function(e){!g[e]&&(g[e]=function(t,n){var r=t&&t[e];if(r)return r.call(t);throw new Be("Response type '".concat(e,"' is not supported"),Be.ERR_NOT_SUPPORT,n)})});var w=function(){var e=a(m().m(function e(t){var n;return m().w(function(e){for(;;)switch(e.n){case 0:if(null!=t){e.n=1;break}return e.a(2,0);case 1:if(!Ae.isBlob(t)){e.n=2;break}return e.a(2,t.size);case 2:if(!Ae.isSpecCompliantForm(t)){e.n=4;break}return n=new u(rt.origin,{method:"POST",body:t}),e.n=3,n.arrayBuffer();case 3:case 6:return e.a(2,e.v.byteLength);case 4:if(!Ae.isArrayBufferView(t)&&!Ae.isArrayBuffer(t)){e.n=5;break}return e.a(2,t.byteLength);case 5:if(Ae.isURLSearchParams(t)&&(t+=""),!Ae.isString(t)){e.n=7;break}return e.n=6,h(t);case 7:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),O=function(){var e=a(m().m(function e(t,n){var r;return m().w(function(e){for(;;)if(0===e.n)return r=Ae.toFiniteNumber(t.getContentLength()),e.a(2,null==r?w(n):r)},e)}));return function(t,n){return e.apply(this,arguments)}}();return function(){var e=a(m().m(function e(t){var n,o,a,c,l,d,h,R,S,_,A,P,T,j,k,C,x,N,D,U,L,F,B,I,q,M,z,H,W,J,V,K,X,G,$,Q,Z,Y,ee,te,ne,re,oe,ie,ae,ue,se,ce,fe,le,de,pe,he,ve,ye,be,me,ge,we,Oe,Ee;return m().w(function(e){for(;;)switch(e.p=e.n){case 0:if(n=St(t),o=n.url,a=n.method,c=n.data,l=n.signal,d=n.cancelToken,h=n.timeout,R=n.onDownloadProgress,S=n.onUploadProgress,_=n.responseType,A=n.headers,P=n.withCredentials,T=void 0===P?"same-origin":P,j=n.fetchOptions,k=n.maxContentLength,C=n.maxBodyLength,x=Ae.isNumber(k)&&k>-1,N=Ae.isNumber(C)&&C>-1,D=function(e){return Ae.hasOwnProp(t,e)?t[e]:void 0},U=i||fetch,_=_?(_+"").toLowerCase():"text",L=At([l,d&&d.toAbortSignal()],h),F=null,B=L&&L.unsubscribe&&function(){L.unsubscribe()},q=null,M=function(){return new Be("Request body larger than maxBodyLength limit",Be.ERR_BAD_REQUEST,t,F)},e.p=1,z=void 0,(H=D("auth"))&&(W=Ae.getSafeProp(H,"username")||"",J=Ae.getSafeProp(H,"password")||"",z={username:W,password:J}),It(o)&&(V=new URL(o,rt.origin),z||!V.username&&!V.password||(K=Ft(V.username),X=Ft(V.password),z={username:K,password:X}),(V.username||V.password)&&(V.username="",V.password="",o=V.href)),z&&(A.delete("authorization"),A.set("Authorization","Basic "+btoa(Lt((z.username||"")+":"+(z.password||""))))),!x||"string"!=typeof o||!o.startsWith("data:")){e.n=2;break}if(!(Nt(o)>k)){e.n=2;break}throw new Be("maxContentLength size of "+k+" exceeded",Be.ERR_BAD_RESPONSE,t,F);case 2:if(!N||"get"===a||"head"===a){e.n=4;break}return e.n=3,w(c);case 3:if("number"!=typeof(G=e.v)||!isFinite(G)){e.n=4;break}if(I=G,!(G>C)){e.n=4;break}throw M();case 4:if($=N&&(Ae.isReadableStream(c)||Ae.isStream(c)),Q=function(e,t,n){return kt(e,65536,function(e){if(N&&e>C)throw q=M();t&&t(e)},n)},!v||"get"===a||"head"===a||!S&&!$){e.n=8;break}if(null!=I){e.n=6;break}return e.n=5,O(A,c);case 5:Oe=e.v,e.n=7;break;case 6:Oe=I;case 7:(0!==(I=Oe)||$)&&(Z=new u(o,{method:"POST",body:c,duplex:"half"}),Ae.isFormData(c)&&(Y=Z.headers.get("content-type"))&&A.setContentType(Y),Z.body&&(ee=S&&pt(I,dt(ht(S)))||[],te=E(ee,2),ne=te[0],re=te[1],c=Q(Z.body,ne,re))),e.n=10;break;case 8:if(!$||f||!p||"get"===a||"head"===a){e.n=9;break}c=Q(c),e.n=10;break;case 9:if(!$||!f||v||"get"===a||"head"===a){e.n=10;break}throw new Be("Stream request bodies are not supported by th