axios
Version:
Promise based HTTP client for the browser and node.js
4 lines • 65.1 kB
JavaScript
/*! Axios v1.19.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=h(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,y()?Reflect.construct(t,n||[],h(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,_(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){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=P(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}}}}function p(e,t,n){return(t=_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function v(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&&E(e,t)}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(y=function(){return!!e})()}function b(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 m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function g(){
/*! 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 w(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]())):(w(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,w(e,o,"GeneratorFunction")),e.prototype=Object.create(l),e}return s.prototype=c,w(l,"constructor",c),w(c,"constructor",s),s.displayName="GeneratorFunction",w(c,o,"GeneratorFunction"),w(l),w(l,o,"Generator"),w(l,r,function(){return this}),w(l,"toString",function(){return"[object Generator]"}),(g=function(){return{w:i,m:d}})()}function w(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}w=function(e,t,n,r){function i(t,n){w(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))},w(e,t,n,r)}function O(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 E(e,t){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},E(e,t)}function R(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)||P(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 S(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)||P(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 _(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 A(e){return A="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},A(e)}function P(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 j(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 k(e){var t="function"==typeof Map?new Map:void 0;return k=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(y())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&E(o,n.prototype),o}(e,arguments,h(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),E(n,e)},k(e)}function C(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 x,N=Object.prototype.toString,U=Object.getPrototypeOf,D=Symbol.iterator,L=Symbol.toStringTag,F=function(){var e=Object.prototype.hasOwnProperty;return function(t,n){return e.call(t,n)}}(),B=function(e,t){for(var n=e,r=[];null!=n&&n!==Object.prototype;){if(-1!==r.indexOf(n))return!1;if(r.push(n),F(n,t))return!0;n=U(n)}return!1},I=(x=Object.create(null),function(e){var t=N.call(e);return x[t]||(x[t]=t.slice(8,-1).toLowerCase())}),q=function(e){return e=e.toLowerCase(),function(t){return I(t)===e}},M=function(e){return function(t){return A(t)===e}},z=Array.isArray,H=M("undefined");function W(e){return null!==e&&!H(e)&&null!==e.constructor&&!H(e.constructor)&&K(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var J=q("ArrayBuffer");var V=M("string"),K=M("function"),X=M("number"),G=function(e){return null!==e&&"object"===A(e)},$=function(e){if(!G(e))return!1;var t=U(e);return!(null!==t&&t!==Object.prototype&&null!==U(t)||B(e,L)||B(e,D))},Q=q("Date"),Z=q("File"),Y=q("Blob"),ee=q("FileList"),te=q("Set");var ne="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},re=void 0!==ne.FormData?ne.FormData:void 0,oe=q("URLSearchParams"),ie=R(["ReadableStream","Request","Response","Headers"].map(q),4),ae=ie[0],ue=ie[1],se=ie[2],ce=ie[3];function fe(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"!==A(e)&&(e=[e]),z(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{if(W(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 le(e,t){if(W(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 de="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,pe=function(e){return!H(e)&&e!==de};var he,ve=(he="undefined"!=typeof Uint8Array&&U(Uint8Array),function(e){return he&&e instanceof he}),ye=q("HTMLFormElement"),be=Object.prototype.propertyIsEnumerable,me=q("RegExp"),ge=function(e,t){var n=Object.getOwnPropertyDescriptors(e),r={};fe(n,function(n,o){var i;!1!==(i=t(n,o,e))&&(r[o]=i||n)}),Object.defineProperties(e,r)};var we,Oe,Ee,Re,Se=q("AsyncFunction"),_e=(we="function"==typeof setImmediate,Oe=K(de.postMessage),we?setImmediate:Oe?(Ee="axios@".concat(Math.random()),Re=[],de.addEventListener("message",function(e){var t=e.source,n=e.data;t===de&&n===Ee&&Re.length&&Re.shift()()},!1),function(e){Re.push(e),de.postMessage(Ee,"*")}):function(e){return setTimeout(e)}),Ae="undefined"!=typeof queueMicrotask?queueMicrotask.bind(de):"undefined"!=typeof process&&process.nextTick||_e,Pe=function(e){return null!=e&&K(e[D])},je={isArray:z,isArrayBuffer:J,isBuffer:W,isFormData:function(e){if(!e)return!1;if(re&&e instanceof re)return!0;var t=U(e);if(!t||t===Object.prototype)return!1;if(!K(e.append))return!1;var n=I(e);return"formdata"===n||"object"===n&&K(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&J(e.buffer)},isString:V,isNumber:X,isBoolean:function(e){return!0===e||!1===e},isObject:G,isPlainObject:$,isEmptyObject:function(e){if(!G(e)||W(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:ae,isRequest:ue,isResponse:se,isHeaders:ce,isUndefined:H,isDate:Q,isFile:Z,isReactNativeBlob:function(e){return!(!e||void 0===e.uri)},isReactNative:function(e){return e&&void 0!==e.getParts},isBlob:Y,isRegExp:me,isFunction:K,isStream:function(e){return G(e)&&K(e.pipe)},isURLSearchParams:oe,isTypedArray:ve,isFileList:ee,forEach:fe,merge:function e(){for(var t=pe(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&&le(o,i)||i,u=F(o,a)?o[a]:void 0;$(u)&&$(t)?o[a]=e(u,t):$(t)?o[a]=e({},t):z(t)?o[a]=t.slice():r&&H(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&&!W(s)&&(fe(s,i),"object"===A(s)&&!z(s)))for(var c=Object.getOwnPropertySymbols(s),f=0;f<c.length;f++){var l=c[f];be.call(s,l)&&i(s[l],l)}}return o},extend:function(e,t,n){return fe(t,function(t,r){n&&K(t)?Object.defineProperty(e,r,{__proto__:null,value:C(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&&U(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:I,kindOfTest:q,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(z(e))return e;var t=e.length;if(!X(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:ye,hasOwnProperty:F,hasOwnProp:F,hasOwnInPrototypeChain:B,getSafeProp:function(e,t){return null!=e&&B(e,t)?e[t]:void 0},reduceDescriptors:ge,freezeMethods:function(e){ge(e,function(t,n){if(K(e)&&["arguments","caller","callee"].includes(n))return!1;var r=e[n];K(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 z(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:le,global:de,isContextDefined:pe,isSpecCompliantForm:function(e){return!!(e&&K(e.append)&&"FormData"===e[L]&&e[D])},toJSONObject:function(e){var t=new WeakSet,n=function(e){if(G(e)){if(t.has(e))return;if(W(e))return e;if(!("toJSON"in e)){var r;if(t.add(e),te(e)){r=[];var o,i=d(e);try{for(i.s();!(o=i.n()).done;){var a=o.value,u=n(a);!H(u)&&r.push(u)}}catch(e){i.e(e)}finally{i.f()}}else r=z(e)?[]:{},fe(e,function(e,t){var o=n(e);!H(o)&&(r[t]=o)});return t.delete(e),r}}return e};return n(e)},isAsyncFn:Se,isThenable:function(e){return e&&(G(e)||K(e))&&K(e.then)&&K(e.catch)},setImmediate:_e,asap:Ae,isIterable:Pe,isSafeIterable:function(e){return null!=e&&B(e,D)&&Pe(e)}},Te=je.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 ke=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Ce=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function xe(e,t){return je.isArray(e)?e.map(function(e){return xe(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 Ne(e){var t=Object.create(null);return je.forEach(e.toJSON(),function(e,n){t[n]=function(e){return xe(e,Ce)}(e)}),t}var Ue=Symbol("internals");function De(e){return e&&String(e).trim().toLowerCase()}function Le(e){return!1===e||null==e?e:je.isArray(e)?e.map(Le):function(e){return xe(e,ke)}(String(e))}var Fe=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function Be(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)}function Ie(e,t,n,r,o){return je.isFunction(r)?r.call(this,t,n):(o&&(t=n),je.isString(t)?je.isString(r)?-1!==t.indexOf(r):je.isRegExp(r)?r.test(t):void 0:void 0)}var qe=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=De(t);if(o){var i=je.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=Le(e))}}var i=function(e,t){return je.forEach(e,function(e,n){return o(e,n,t)})};if(je.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(je.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();var i=je.hasOwnProp(o,t);!t||i&&je.hasOwnProp(Te,t)||("set-cookie"===t?i?o[t].push(n):o[t]=[n]:o[t]=i?o[t]+", "+n:n)}),o}(e),t);else if(je.isObject(e)&&je.isSafeIterable(e)){var a,u,s,c=Object.create(null),f=d(e);try{for(f.s();!(s=f.n()).done;){var l=s.value;if(!je.isArray(l))throw new TypeError("Object iterator must return a key-value pair");u=l[0],je.hasOwnProp(c,u)?(a=c[u],c[u]=je.isArray(a)?[].concat(S(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=De(e)){var n=je.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(je.isFunction(t))return t.call(this,r,n);if(je.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}},{key:"has",value:function(e,t){if(e=De(e)){var n=je.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ie(0,this[n],n,t))}return!1}},{key:"delete",value:function(e,t){var n=this,r=!1;function o(e){if(e=De(e)){var o=je.findKey(n,e);!o||t&&!Ie(0,n[o],o,t)||(delete n[o],r=!0)}}return je.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&&!Ie(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}},{key:"normalize",value:function(e){var t=this,n={};return je.forEach(this,function(r,o){var i=je.findKey(n,o);if(i)return t[i]=Le(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]=Le(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 je.forEach(this,function(n,r){null!=n&&!1!==n&&(t[r]=e&&je.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=R(e,2);return t[0]+": "+t[1]}).join("\n")}},{key:"getSetCookie",value:function(){var e=this.get("set-cookie");return je.isArray(e)?e:null==e||!1===e?[]:[e]}},{key:Symbol.toStringTag,get:function(){return"AxiosHeaders"}}],[{key:"from",value:function(e){return e instanceof this?e:new this(e)}},{key:"parseParameters",value:function(e){return function(e){var t=Object.create(null),n=String(e),r=0,o=!1,i=!1;function a(e){var o=Be(n.slice(r,e)),i=o.indexOf("=");if(!(i<1)){var a=Be(o.slice(0,i));if(Fe.test(a)){var u=a.toLowerCase();if("__proto__"!==u&&"constructor"!==u&&"prototype"!==u){var s=Be(o.slice(i+1));t[u]=function(e){var t=e.length-1;if(t<1||34!==e.charCodeAt(0)||34!==e.charCodeAt(t))return e;for(var n="",r=1;r<t;r++){var o=e.charCodeAt(r);if(34===o)return e;if(92===o&&(r+=1)>=t)return e;n+=e[r]}return n}(s)}}}}for(var u=0;u<n.length;u++){var s=n.charCodeAt(u);o?i?i=!1:92===s?i=!0:34===s&&(o=!1):34===s?o=!0:44!==s&&59!==s||(a(u),r=u+1)}return a(n.length),t}(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[Ue]=this[Ue]={accessors:{}}).accessors,n=this.prototype;function r(e){var r=De(e);t[r]||(!function(e,t){var n=je.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 je.isArray(e)?e.forEach(r):r(e),this}}])}();qe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),je.reduceDescriptors(qe.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}}}),je.freezeMethods(qe);var Me="[REDACTED ****]";function ze(e,t){var n=new Set(t.map(function(e){return String(e).toLowerCase()})),r=[],o=function(e){if(null===e||"object"!==A(e))return e;if(je.isBuffer(e))return e;if(-1===r.indexOf(e)){var t;if(e instanceof qe&&(e=e.toJSON()),r.push(e),je.isArray(e))t=[],e.forEach(function(e,n){var r=o(e);je.isUndefined(r)||(t[n]=r)});else{if(!je.isPlainObject(e)&&function(e){if(je.hasOwnProp(e,"toJSON"))return!0;for(var t=Object.getPrototypeOf(e);t&&t!==Object.prototype;){if(je.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=R(a[i],2),s=u[0],c=u[1],f=n.has(s.toLowerCase())?Me:o(c);je.isUndefined(f)||(t[s]=f)}}return r.pop(),t}};return o(e)}function He(e){try{return String(e)}catch(e){return""}}var We=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 v(t,e),l(t,[{key:"toJSON",value:function(){var e=this.config,t=e&&je.hasOwnProp(e,"redact")?e.redact:void 0,n=je.isArray(t)&&t.length>0?ze(e,t):je.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=e.message;!u&&je.isArray(e.errors)&&e.errors.length&&(u=function(e){return e.errors.map(function(e){try{return e&&e.message?He(e.message):He(e)}catch(e){return""}}).filter(Boolean).join("; ")||e.name||"AggregateError"}(e));var s=new t(u,n||e.code,r,o,i);return Object.defineProperty(s,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),s.name=e.name,null!=e.status&&null==s.status&&(s.status=e.status),a&&Object.assign(s,a),s}}])}(k(Error));We.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",We.ERR_BAD_OPTION="ERR_BAD_OPTION",We.ECONNABORTED="ECONNABORTED",We.ETIMEDOUT="ETIMEDOUT",We.ECONNREFUSED="ECONNREFUSED",We.ERR_NETWORK="ERR_NETWORK",We.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",We.ERR_DEPRECATED="ERR_DEPRECATED",We.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",We.ERR_BAD_REQUEST="ERR_BAD_REQUEST",We.ERR_CANCELED="ERR_CANCELED",We.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",We.ERR_INVALID_URL="ERR_INVALID_URL",We.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";function Je(e){return je.isPlainObject(e)||je.isArray(e)}function Ve(e){return je.endsWith(e,"[]")?e.slice(0,-2):e}function Ke(e,t,n){return e?e.concat(t).map(function(e,t){return e=Ve(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}var Xe=je.toFlatObject(je,{},null,function(e){return/^is[A-Z]/.test(e)});function Ge(e,t,n){if(!je.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;var r=(n=je.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!je.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&&je.isSpecCompliantForm(t),f=[];if(!je.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(je.isDate(e))return e.toISOString();if(je.isBoolean(e))return e.toString();if(!c&&je.isBlob(e))throw new We("Blob is not supported. Use a Buffer instead.");if(je.isArrayBuffer(e)||je.isTypedArray(e)){if(c&&"function"==typeof u)return new u([e]);throw new We("Blob is not supported. Use a Buffer instead.",We.ERR_NOT_SUPPORT)}return e}function d(e){if(e>s)throw new We("Object is too deeply nested ("+e+" levels). Max depth: "+s,We.ERR_FORM_DATA_DEPTH_EXCEEDED)}function p(e,n,o){var u=e;if(je.isReactNative(t)&&je.isReactNativeBlob(e))return t.append(Ke(o,n,i),l(e)),!1;if(e&&!o&&"object"===A(e))if(je.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(!je.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(je.isArray(e)&&function(e){return je.isArray(e)&&!e.some(Je)}(e)||(je.isFileList(e)||je.endsWith(n,"[]"))&&(u=je.toArray(e)))return n=Ve(n),u.forEach(function(e,r){!je.isUndefined(e)&&null!==e&&t.append(!0===a?Ke([n],r,i):null===a?n:n+"[]",l(e))}),!1;return!!Je(e)||(t.append(Ke(o,n,i),l(e)),!1)}var h=Object.assign(Xe,{defaultVisitor:p,convertValue:l,isVisitable:Je});if(!je.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(!je.isUndefined(n)){if(d(i),-1!==f.indexOf(n))throw new Error("Circular reference detected in "+r.join("."));f.push(n),je.forEach(n,function(n,a){!0===(!(je.isUndefined(n)||null===n)&&o.call(t,n,je.isString(a)?a.trim():a,r,h))&&e(n,r?r.concat(a):[a],i+1)}),f.pop()}}(e),t}function $e(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function Qe(e,t){this._pairs=[],e&&Ge(e,this,t)}var Ze=Qe.prototype;function Ye(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function et(e,t,n){if(!t)return e;e=e||"";var r,o=je.isFunction(n)?{serialize:n}:n,i=je.getSafeProp(o,"encode")||Ye,a=je.getSafeProp(o,"serialize");if(r=a?a(t,o):je.isURLSearchParams(t)?t.toString():new Qe(t,o).toString(i)){var u=e.indexOf("#");-1!==u&&(e=e.slice(0,u)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}Ze.append=function(e,t){this._pairs.push([e,t])},Ze.toString=function(e){var t=this,n=e?function(n){return e.call(t,n,$e)}:$e;return this._pairs.map(function(e){return n(e[0])+"="+n(e[1])},"").join("&")};var tt=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){je.forEach(this.handlers,function(t){null!==t&&e(t)})}}])}(),nt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},rt={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Qe,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},ot="undefined"!=typeof window&&"undefined"!=typeof document,it="object"===("undefined"==typeof navigator?"undefined":A(navigator))&&navigator||void 0,at=ot&&(!it||["ReactNative","NativeScript","NS"].indexOf(it.product)<0),ut="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,st=ot&&window.location.href||"http://localhost",ct=m(m({},Object.freeze({__proto__:null,hasBrowserEnv:ot,hasStandardBrowserEnv:at,hasStandardBrowserWebWorkerEnv:ut,navigator:it,origin:st})),rt);function ft(e){if(e>100)throw new We("FormData field is too deeply nested ("+e+" levels). Max depth: 100",We.ERR_FORM_DATA_DEPTH_EXCEEDED)}function lt(e){function t(e,n,r,o){ft(o);var i=e[o++];if("__proto__"===i)return!0;var a=Number.isFinite(+i),u=o>=e.length;return i=!i&&je.isArray(r)?r.length:i,u?(je.hasOwnProp(r,i)?r[i]=je.isArray(r[i])?r[i].concat(n):[r[i],n]:r[i]=n,!a):(je.hasOwnProp(r,i)&&je.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&je.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(je.isFormData(e)&&je.isFunction(e.entries)){var n={};return je.forEachEntry(e,function(e,r){t(function(e){for(var t,n=[],r=/[^.[\]]+|\[([^.[\]]*)]/g;null!==(t=r.exec(e));)ft(n.length),n.push("[]"===t[0]?"":t[1]||t[0]);return n}(e),r,n,0)}),n}return null}var dt=function(e,t){return null!=e&&je.hasOwnProp(e,t)?e[t]:void 0};var pt={transitional:nt,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){var n,r=t.getContentType()||"",o=r.indexOf("application/json")>-1,i=je.isObject(e);if(i&&je.isHTMLForm(e)&&(e=new FormData(e)),je.isFormData(e))return o?JSON.stringify(lt(e)):e;if(je.isArrayBuffer(e)||je.isBuffer(e)||je.isStream(e)||je.isFile(e)||je.isBlob(e)||je.isReadableStream(e))return e;if(je.isArrayBufferView(e))return e.buffer;if(je.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){var a=dt(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Ge(e,new ct.classes.URLSearchParams,m({visitor:function(e,t,n,r){return ct.isNode&&je.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,a).toString();if((n=je.isFileList(e))||r.indexOf("multipart/form-data")>-1){var u=dt(this,"env"),s=u&&u.FormData;return Ge(n?{"files[]":e}:e,s&&new s,a)}}return i||o?(t.setContentType("application/json",!1),function(e,t,n){if(je.isString(e))try{return(t||JSON.parse)(e),je.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=dt(this,"transitional")||pt.transitional,n=t&&t.forcedJSONParsing,r=dt(this,"responseType"),o="json"===r;if(je.isResponse(e)||je.isReadableStream(e))return e;if(e&&je.isString(e)&&(n&&!r||o)){var i=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e,dt(this,"parseReviver"))}catch(e){if(i){if("SyntaxError"===e.name)throw We.from(e,We.ERR_BAD_RESPONSE,this,null,dt(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ct.classes.FormData,Blob:ct.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function ht(e,t){var n=this||pt,r=t||n,o=qe.from(r.headers),i=r.data;return je.forEach(e,function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function vt(e){return!(!e||!e.__CANCEL__)}je.forEach(["delete","get","head","post","put","patch","query"],function(e){pt.headers[e]={}});var yt=function(e){function t(e,n,r){var o;return c(this,t),(o=s(this,t,[null==e?"canceled":e,We.ERR_CANCELED,n,r])).name="CanceledError",o.__CANCEL__=!0,o}return v(t,e),l(t)}(We);function bt(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new We("Request failed with status code "+n.status,n.status>=400&&n.status<500?We.ERR_BAD_REQUEST:We.ERR_BAD_RESPONSE,n.config,n.request,n)):e(n)}var mt=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,S(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=Math.max(0,null!=a?Math.min(i,a):i),s=Math.max(0,u-r),c=o(s);r=Math.max(r,u);var f=p({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)},gt=function(e,t){var n=null!=e;return[function(r){return t[0]({lengthComputable:n,total:e,loaded:r})},t[1]]},wt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:je.asap;return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t(function(){return e.apply(void 0,r)})}},Ot=ct.hasStandardBrowserEnv?function(e,t){return function(n){return n=new URL(n,ct.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)}}(new URL(ct.origin),ct.navigator&&/(msie|trident)/i.test(ct.navigator.userAgent)):function(){return!0},Et=ct.hasStandardBrowserEnv?{write:function(e,t,n,r,o,i,a){if("undefined"!=typeof document){var u=["".concat(e,"=").concat(encodeURIComponent(t))];je.isNumber(n)&&u.push("expires=".concat(new Date(n).toUTCString())),je.isString(r)&&u.push("path=".concat(r)),je.isString(o)&&u.push("domain=".concat(o)),!0===i&&u.push("secure"),je.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)try{return decodeURIComponent(r.slice(o+1))}catch(e){return r.slice(o+1)}}return null},remove:function(e){this.write(e,"",Date.now()-864e5,"/")}}:{write:function(){},read:function(){return null},remove:function(){}};var Rt=/^https?:(?!\/\/)/i,St=/[\t\n\r]/g;function _t(e){var t,n=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,"$1".concat(Me,"@")),r=n.indexOf("#"),o=(-1===r?n:n.slice(0,r)).replace(/([?&][^=&#]*=)[^&#]*/g,"$1".concat(Me));return-1===r?o:"".concat(o,"#").concat((t=n.slice(r+1))?t.replace(/(^|&)([^=&]*=)?[^&]+/g,function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return"".concat(t).concat(n).concat(Me)}):t)}function At(e,t){if("string"==typeof e){var n=function(e){return function(e){for(var t=0;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}(e).replace(St,"")}(e);if(Rt.test(n))throw new We("Invalid URL ".concat(JSON.stringify(_t(n)),': missing "//" after protocol'),We.ERR_INVALID_URL,t)}}function Pt(e,t,n,r){At(t,r);var o,i=!("string"==typeof(o=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o));return e&&(i||!1===n)?(At(e,r),function(e,t){if(!t)return e;for(var n=e.length;n>0&&47===e.charCodeAt(n-1);)n--;return e.slice(0,n)+"/"+t.replace(/^\/+/,"")}(e,t)):t}var jt=function(e){return e instanceof qe?m({},e):e};function Tt(e,t){e=e||{},t=t||{};var n=Object.create(null);function r(e,t,n,r){return je.isPlainObject(e)&&je.isPlainObject(t)?je.merge.call({caseless:r},e,t):je.isPlainObject(t)?je.merge({},t):je.isArray(t)?t.slice():t}function o(e,t,n,o){return je.isUndefined(t)?je.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!je.isUndefined(t))return r(void 0,t)}function a(e,t){return je.isUndefined(t)?je.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function u(n,o,i){return je.hasOwnProp(t,i)?r(n,o):je.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,c={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(jt(e),jt(t),0,!0)}};return je.forEach((s=m(m({},e),t),Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(s).concat(Object.getOwnPropertySymbols(s).filter(function(e){return Object.getOwnPropertyDescriptor(s,e).enumerable})):Object.keys(s)),function(r){if("__proto__"!==r&&"constructor"!==r&&"prototype"!==r){var i=je.hasOwnProp(c,r)?c[r]:o,a=i(je.hasOwnProp(e,r)?e[r]:void 0,je.hasOwnProp(t,r)?t[r]:void 0,r);je.isUndefined(a)&&i!==u||(n[r]=a)}}),je.hasOwnProp(t,"validateStatus")&&je.isUndefined(t.validateStatus)&&!1===function(n){var r=je.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!je.isUndefined(r)){if(!je.isPlainObject(r))return;if(je.hasOwnProp(r,n))return r[n]}var o=je.hasOwnProp(e,"transitional")?e.transitional:void 0;if(je.isPlainObject(o)&&je.hasOwnProp(o,n))return o[n]}("validateStatusUndefinedResolves")&&(je.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}var kt=["content-type","content-length"];function Ct(e){var t=Tt({},e),n=function(e){return je.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=qe.from(u),t.url=et(Pt(c,l,f,t),n("params"),n("paramsSerializer")),s){var d=je.getSafeProp(s,"username")||"",p=je.getSafeProp(s,"password")||"";try{u.set("Authorization","Basic "+btoa(d+":"+(p?encodeURIComponent(p).replace(/%([0-9A-F]{2})/gi,function(e,t){return String.fromCharCode(parseInt(t,16))}):"")))}catch(t){throw We.from(t,We.ERR_BAD_OPTION_VALUE,e)}}if((je.isFormData(r)&&(ct.hasStandardBrowserEnv||ct.hasStandardBrowserWebWorkerEnv||je.isReactNative(r)?u.setContentType(void 0):je.isFunction(r.getHeaders)&&function(e,t,n){"content-only"===n?Object.entries(t||{}).forEach(function(t){var n=R(t,2),r=n[0],o=n[1];kt.includes(r.toLowerCase())&&e.set(r,o)}):e.set(t)}(u,r.getHeaders(),n("formDataHeaderPolicy"))),ct.hasStandardBrowserEnv)&&(je.isFunction(o)&&(o=o(t)),!0===o||null==o&&Ot(t.url))){var h=i&&a&&Et.read(a);h&&u.set(i,h)}return t}var xt="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){var r,o,i,a,u,s=Ct(e),c=s.data,f=qe.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=qe.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders());bt(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 We("Request aborted",We.ECONNABORTED,e,v)),h(),v=null)},v.onerror=function(t){var r=t&&t.message?t.message:"Network Error",o=new We(r,We.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||nt;s.timeoutErrorMessage&&(t=s.timeoutErrorMessage),n(new We(t,r.clarifyTimeoutError?We.ETIMEDOUT:We.ECONNABORTED,e,v)),h(),v=null},void 0===c&&f.setContentType(null),"setRequestHeader"in v&&je.forEach(Ne(f),function(e,t){v.setRequestHeader(t,e)}),je.isUndefined(s.withCredentials)||(v.withCredentials=!!s.withCredentials),l&&"json"!==l&&(v.responseType=s.responseType),p){var b=R(mt(p,!0),2);i=b[0],u=b[1],v.addEventListener("progress",i)}if(d&&v.upload){var m=R(mt(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 yt(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]||"");if(O&&!ct.protocols.includes(O))return n(new We("Unsupported protocol "+O+":",We.ERR_BAD_REQUEST,e)),void h();v.send(c||null)})},Nt=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 We?t:new yt(t instanceof Error?t.message:t))}},i=t&&setTimeout(function(){i=null,o(new We("timeout of ".concat(t,"ms exceeded"),We.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){r||(e.aborted?o.call(e):e.addEventListener("abort",o,{once:!0}))});var u=n.signal;return u.unsubscribe=function(){return je.asap(a)},u}},Ut=g().m(function e(t,n){var r,o,i;return g().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)}),Dt=function(){var e=j(g().m(function e(t,o){var i,a,s,c,f,l,d;return g().w(function(e){for(;;)switch(e.p=e.n){case 0:i=!1,a=!1,e.p=1,c=r(Lt(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(O(n(r(Ut(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)}}(),Lt=function(){var e=j(g().m(function e(t){var o,i,a,s;return g().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!t[Symbol.asyncIterator]){e.n=2;break}return e.d(O(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)}}(),Ft=function(e,t,n,r){var o,i=Dt(e,t),u=0,s=function(e){o||(o=!0,r&&r(e))};return new ReadableStream({pull:function(e){return a(g().m(function t(){var r,o,a,c,f,l;return g().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})},Bt=function(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102},It=function(e,t,n){return t+2<n&&Bt(e.charCodeAt(t+1))&&Bt(e.charCodeAt(t+2))},qt=function(e){return e<=57?e-48:(223&e)-55},Mt=function(e){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||43===e||47===e||45===e||95===e},zt=function(e){return 9===e||10===e||12===e||13===e||32===e},Ht=function(e){for(var t=e.length,n=0,r=0,o=!1,i=0;i<t;i++){var a=e.charCodeAt(i);37===a&&It(e,i,t)&&(a=16*qt(e.charCodeAt(i+1))+qt(e.charCodeAt(i+2)),i+=2),zt(a)||(61!==a?!Mt(a)||r>0?o=!0:n++:r++)}return o||r>2||r>0&&(n+r)%4!=0||n%4==1?function(e){var t=e.length,n=0;return t>0&&61===e.charCodeAt(t-1)&&(n++,t>1&&61===e.charCodeAt(t-2)&&n++),Math.floor(3*(t-n)/4)}(e):function(e){var t=e%4;return 3*Math.floor(e/4)+(2===t?1:3===t?2:0)}(n)};function Wt(e){var t="string"==typeof e?e.indexOf("#"):-1;return function(e,t){if(!e||"string"!=typeof e)return 0;if(!e.startsWith("data:"))return 0;var n=e.indexOf(",");if(n<0)return 0;var r=e.slice(5,n),o=e.slice(n+1);if(/;base64/i.test(r))return t(o);for(var i=0,a=0,u=o.length;a<u;a++){var s=o.charCodeAt(a);if(37===s&&It(o,a,u))i+=1,a+=2;else if(s<128)i+=1;else if(s<2048)i+=2;else if(s>=55296&&s<=56319&&a+1<u){var c=o.charCodeAt(a+1);c>=56320&&c<=57343?(i+=4,a++):i+=3}else i+=3}return i}(-1===t?e:e.slice(0,t),Ht)}var Jt="1.19.0",Vt=je.isFunction,Kt=function(e){return encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,function(e,t){return String.fromCharCode(parseInt(t,16))})},Xt=function(e){if(!je.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},Gt=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}},$t=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!==je.global&&null!==je.global?je.global:globalThis,n=t.ReadableStream,r=t.TextEncoder,o=e=je.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e),i=o.fetch,u=o.Request,s=o.Response,c=i?Vt(i):"function"==typeof fetch,f=Vt(u),l=Vt(s);if(!c)return!1;var d,p=c&&Vt(n),h=c&&("function"==typeof r?(d=new r,function(e){return d.encode(e)}):function(){var e=a(g().m(function e(t){var n,r;return g().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&&Gt(function(){var e=!1,t=new u(ct.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&&Gt(function(){return je.isReadableStream(new s("").body)}),b={stream:y&&function(e){return e.body}};c&&["text","arrayBuffer","blob","formData","stream"].forEach(function(e){!b[e]&&(b[e]=function(t,n){var r=t&&t[e];if(r)return r.call(t);throw new We("Response type '".concat(e,"' is not supported"),We.ERR_NOT_SUPPORT,n)})});var w=function(){var e=a(g().m(function e(t){var n;return g().w(function(e){for(;;)switch(e.n){case 0:if(null!=t){e.n=1;break}return e.a(2,0);case 1:if(!je.isBlob(t)){e.n=2;break}return e.a(2,t.size);case 2:if(!je.isSpecCompliantForm(t)){e.n=4;break}return n=new u(ct.origin,{method:"POST",body:t}),e.n=3,n.arrayBu