| 'use strict'; | ||
| // Node-only: relies on the built-in `http2` module. Browser/react-native | ||
| // builds replace `lib/adapters/http.js` (the sole importer) with `lib/helpers/null.js` | ||
| // via the `browser` package.json field, so this module is never reached in | ||
| // those environments. Do not import it from any browser-reachable code path. | ||
| import http2 from 'http2'; | ||
| import util from 'util'; | ||
| class Http2Sessions { | ||
| constructor() { | ||
| this.sessions = Object.create(null); | ||
| } | ||
| getSession(authority, options) { | ||
| options = Object.assign( | ||
| { | ||
| sessionTimeout: 1000, | ||
| }, | ||
| options | ||
| ); | ||
| let authoritySessions = this.sessions[authority]; | ||
| if (authoritySessions) { | ||
| let len = authoritySessions.length; | ||
| for (let i = 0; i < len; i++) { | ||
| const [sessionHandle, sessionOptions] = authoritySessions[i]; | ||
| if ( | ||
| !sessionHandle.destroyed && | ||
| !sessionHandle.closed && | ||
| util.isDeepStrictEqual(sessionOptions, options) | ||
| ) { | ||
| return sessionHandle; | ||
| } | ||
| } | ||
| } | ||
| const session = http2.connect(authority, options); | ||
| let removed; | ||
| let timer; | ||
| const removeSession = () => { | ||
| if (removed) { | ||
| return; | ||
| } | ||
| removed = true; | ||
| if (timer) { | ||
| clearTimeout(timer); | ||
| timer = null; | ||
| } | ||
| let entries = authoritySessions, | ||
| len = entries.length, | ||
| i = len; | ||
| while (i--) { | ||
| if (entries[i][0] === session) { | ||
| if (len === 1) { | ||
| delete this.sessions[authority]; | ||
| } else { | ||
| entries.splice(i, 1); | ||
| } | ||
| if (!session.closed) { | ||
| session.close(); | ||
| } | ||
| return; | ||
| } | ||
| } | ||
| }; | ||
| const originalRequestFn = session.request; | ||
| const { sessionTimeout } = options; | ||
| if (sessionTimeout != null) { | ||
| let streamsCount = 0; | ||
| session.request = function () { | ||
| const stream = originalRequestFn.apply(this, arguments); | ||
| streamsCount++; | ||
| if (timer) { | ||
| clearTimeout(timer); | ||
| timer = null; | ||
| } | ||
| stream.once('close', () => { | ||
| if (!--streamsCount) { | ||
| timer = setTimeout(() => { | ||
| timer = null; | ||
| removeSession(); | ||
| }, sessionTimeout); | ||
| } | ||
| }); | ||
| return stream; | ||
| }; | ||
| } | ||
| session.once('close', removeSession); | ||
| let entry = [session, options]; | ||
| authoritySessions | ||
| ? authoritySessions.push(entry) | ||
| : (authoritySessions = this.sessions[authority] = [entry]); | ||
| return session; | ||
| } | ||
| } | ||
| export default Http2Sessions; |
@@ -1,5 +0,5 @@ | ||
| /*! Axios v1.16.1 Copyright (c) 2026 Matt Zabriskie and contributors */ | ||
| /*! Axios v1.17.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,y()?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 y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(y=function(){return!!e})()}function v(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?v(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(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 T(e){return function(){return new j(e.apply(this,arguments))}}function j(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?"return":"next";if(!u.k||e.done)return o(r,e);e=t[r](e).value}i(a.done?"return":"normal",e)},function(e){o("throw",e)})}catch(e){i("throw",e)}}function i(e,t){switch(e){case"return":n.resolve({value:t,done:!0});break;case"throw":n.reject(t);break;default:n.resolve({value:t,done:!1})}(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 P(e){var t="function"==typeof Map?new Map:void 0;return P=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&&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)},P(e)}function k(e,t){return function(){return e.apply(t,arguments)}}j.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},j.prototype.next=function(e){return this._invoke("next",e)},j.prototype.throw=function(e){return this._invoke("throw",e)},j.prototype.return=function(e){return this._invoke("return",e)};var x,C=Object.prototype.toString,N=Object.getPrototypeOf,D=Symbol.iterator,U=Symbol.toStringTag,L=(x=Object.create(null),function(e){var t=C.call(e);return x[t]||(x[t]=t.slice(8,-1).toLowerCase())}),F=function(e){return e=e.toLowerCase(),function(t){return L(t)===e}},B=function(e){return function(t){return _(t)===e}},I=Array.isArray,q=B("undefined");function M(e){return null!==e&&!q(e)&&null!==e.constructor&&!q(e.constructor)&&W(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var z=F("ArrayBuffer");var H=B("string"),W=B("function"),J=B("number"),K=function(e){return null!==e&&"object"===_(e)},V=function(e){if("object"!==L(e))return!1;var t=N(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||U in e||D in e)},X=F("Date"),G=F("File"),$=F("Blob"),Q=F("FileList");var Y="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},Z=void 0!==Y.FormData?Y.FormData:void 0,ee=F("URLSearchParams"),te=E(["ReadableStream","Request","Response","Headers"].map(F),4),ne=te[0],re=te[1],oe=te[2],ie=te[3];function ae(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]),I(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{if(M(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 ue(e,t){if(M(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 se="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,ce=function(e){return!q(e)&&e!==se};var fe,le=(fe="undefined"!=typeof Uint8Array&&N(Uint8Array),function(e){return fe&&e instanceof fe}),de=F("HTMLFormElement"),pe=function(){var e=Object.prototype.hasOwnProperty;return function(t,n){return e.call(t,n)}}(),he=F("RegExp"),ye=function(e,t){var n=Object.getOwnPropertyDescriptors(e),r={};ae(n,function(n,o){var i;!1!==(i=t(n,o,e))&&(r[o]=i||n)}),Object.defineProperties(e,r)};var ve,be,me,ge,we=F("AsyncFunction"),Oe=(ve="function"==typeof setImmediate,be=W(se.postMessage),ve?setImmediate:be?(me="axios@".concat(Math.random()),ge=[],se.addEventListener("message",function(e){var t=e.source,n=e.data;t===se&&n===me&&ge.length&&ge.shift()()},!1),function(e){ge.push(e),se.postMessage(me,"*")}):function(e){return setTimeout(e)}),Ee="undefined"!=typeof queueMicrotask?queueMicrotask.bind(se):"undefined"!=typeof process&&process.nextTick||Oe,Re={isArray:I,isArrayBuffer:z,isBuffer:M,isFormData:function(e){if(!e)return!1;if(Z&&e instanceof Z)return!0;var t=N(e);if(!t||t===Object.prototype)return!1;if(!W(e.append))return!1;var n=L(e);return"formdata"===n||"object"===n&&W(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&z(e.buffer)},isString:H,isNumber:J,isBoolean:function(e){return!0===e||!1===e},isObject:K,isPlainObject:V,isEmptyObject:function(e){if(!K(e)||M(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:ne,isRequest:re,isResponse:oe,isHeaders:ie,isUndefined:q,isDate:X,isFile:G,isReactNativeBlob:function(e){return!(!e||void 0===e.uri)},isReactNative:function(e){return e&&void 0!==e.getParts},isBlob:$,isRegExp:he,isFunction:W,isStream:function(e){return K(e)&&W(e.pipe)},isURLSearchParams:ee,isTypedArray:le,isFileList:Q,forEach:ae,merge:function e(){for(var t=ce(this)&&this||{},n=t.caseless,r=t.skipUndefined,o={},i=function(t,i){if("__proto__"!==i&&"constructor"!==i&&"prototype"!==i){var a=n&&ue(o,i)||i,u=pe(o,a)?o[a]:void 0;V(u)&&V(t)?o[a]=e(u,t):V(t)?o[a]=e({},t):I(t)?o[a]=t.slice():r&&q(t)||(o[a]=t)}},a=arguments.length,u=new Array(a),s=0;s<a;s++)u[s]=arguments[s];for(var c=0,f=u.length;c<f;c++)u[c]&&ae(u[c],i);return o},extend:function(e,t,n){return ae(t,function(t,r){n&&W(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:L,kindOfTest:F,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(I(e))return e;var t=e.length;if(!J(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:de,hasOwnProperty:pe,hasOwnProp:pe,reduceDescriptors:ye,freezeMethods:function(e){ye(e,function(t,n){if(W(e)&&["arguments","caller","callee"].includes(n))return!1;var r=e[n];W(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 I(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:ue,global:se,isContextDefined:ce,isSpecCompliantForm:function(e){return!!(e&&W(e.append)&&"FormData"===e[U]&&e[D])},toJSONObject:function(e){var t=new WeakSet,n=function(e){if(K(e)){if(t.has(e))return;if(M(e))return e;if(!("toJSON"in e)){t.add(e);var r=I(e)?[]:{};return ae(e,function(e,t){var o=n(e);!q(o)&&(r[t]=o)}),t.delete(e),r}}return e};return n(e)},isAsyncFn:we,isThenable:function(e){return e&&(K(e)||W(e))&&W(e.then)&&W(e.catch)},setImmediate:Oe,asap:Ee,isIterable:function(e){return null!=e&&W(e[D])}},Se=Re.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 _e=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Ae=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Te(e,t){return Re.isArray(e)?e.map(function(e){return Te(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 je(e){var t=Object.create(null);return Re.forEach(e.toJSON(),function(e,n){t[n]=function(e){return Te(e,Ae)}(e)}),t}var Pe=Symbol("internals");function ke(e){return e&&String(e).trim().toLowerCase()}function xe(e){return!1===e||null==e?e:Re.isArray(e)?e.map(xe):function(e){return Te(e,_e)}(String(e))}function Ce(e,t,n,r,o){return Re.isFunction(r)?r.call(this,t,n):(o&&(t=n),Re.isString(t)?Re.isString(r)?-1!==t.indexOf(r):Re.isRegExp(r)?r.test(t):void 0:void 0)}var Ne=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=ke(t);if(!o)throw new Error("header name must be a non-empty string");var i=Re.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=xe(e))}var i=function(e,t){return Re.forEach(e,function(e,n){return o(e,n,t)})};if(Re.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Re.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]&&Se[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(Re.isObject(e)&&Re.isIterable(e)){var a,u,s,c={},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(!Re.isArray(l))throw TypeError("Object iterator must return a key-value pair");c[u=l[0]]=(a=c[u])?Re.isArray(a)?[].concat(R(a),[l[1]]):[a,l[1]]: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=ke(e)){var n=Re.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(Re.isFunction(t))return t.call(this,r,n);if(Re.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}},{key:"has",value:function(e,t){if(e=ke(e)){var n=Re.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ce(0,this[n],n,t))}return!1}},{key:"delete",value:function(e,t){var n=this,r=!1;function o(e){if(e=ke(e)){var o=Re.findKey(n,e);!o||t&&!Ce(0,n[o],o,t)||(delete n[o],r=!0)}}return Re.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&&!Ce(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}},{key:"normalize",value:function(e){var t=this,n={};return Re.forEach(this,function(r,o){var i=Re.findKey(n,o);if(i)return t[i]=xe(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]=xe(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 Re.forEach(this,function(n,r){null!=n&&!1!==n&&(t[r]=e&&Re.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[Pe]=this[Pe]={accessors:{}}).accessors,n=this.prototype;function r(e){var r=ke(e);t[r]||(!function(e,t){var n=Re.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 Re.isArray(e)?e.forEach(r):r(e),this}}])}();Ne.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Re.reduceDescriptors(Ne.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}}}),Re.freezeMethods(Ne);function De(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(Re.isBuffer(e))return e;if(-1===r.indexOf(e)){var t;if(e instanceof Ne&&(e=e.toJSON()),r.push(e),Re.isArray(e))t=[],e.forEach(function(e,n){var r=o(e);Re.isUndefined(r)||(t[n]=r)});else{if(!Re.isPlainObject(e)&&function(e){if(Re.hasOwnProp(e,"toJSON"))return!0;for(var t=Object.getPrototypeOf(e);t&&t!==Object.prototype;){if(Re.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);Re.isUndefined(f)||(t[s]=f)}}return r.pop(),t}};return o(e)}var Ue=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&&Re.hasOwnProp(e,"redact")?e.redact:void 0,n=Re.isArray(t)&&t.length>0?De(e,t):Re.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}}])}(P(Error));Ue.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",Ue.ERR_BAD_OPTION="ERR_BAD_OPTION",Ue.ECONNABORTED="ECONNABORTED",Ue.ETIMEDOUT="ETIMEDOUT",Ue.ECONNREFUSED="ECONNREFUSED",Ue.ERR_NETWORK="ERR_NETWORK",Ue.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",Ue.ERR_DEPRECATED="ERR_DEPRECATED",Ue.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",Ue.ERR_BAD_REQUEST="ERR_BAD_REQUEST",Ue.ERR_CANCELED="ERR_CANCELED",Ue.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",Ue.ERR_INVALID_URL="ERR_INVALID_URL",Ue.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";function Le(e){return Re.isPlainObject(e)||Re.isArray(e)}function Fe(e){return Re.endsWith(e,"[]")?e.slice(0,-2):e}function Be(e,t,n){return e?e.concat(t).map(function(e,t){return e=Fe(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}var Ie=Re.toFlatObject(Re,{},null,function(e){return/^is[A-Z]/.test(e)});function qe(e,t,n){if(!Re.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;var r=(n=Re.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!Re.isUndefined(t[e])})).metaTokens,o=n.visitor||l,i=n.dots,a=n.indexes,u=n.Blob||"undefined"!=typeof Blob&&Blob,s=void 0===n.maxDepth?100:n.maxDepth,c=u&&Re.isSpecCompliantForm(t);if(!Re.isFunction(o))throw new TypeError("visitor must be a function");function f(e){if(null===e)return"";if(Re.isDate(e))return e.toISOString();if(Re.isBoolean(e))return e.toString();if(!c&&Re.isBlob(e))throw new Ue("Blob is not supported. Use a Buffer instead.");return Re.isArrayBuffer(e)||Re.isTypedArray(e)?c&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function l(e,n,o){var u=e;if(Re.isReactNative(t)&&Re.isReactNativeBlob(e))return t.append(Be(o,n,i),f(e)),!1;if(e&&!o&&"object"===_(e))if(Re.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Re.isArray(e)&&function(e){return Re.isArray(e)&&!e.some(Le)}(e)||(Re.isFileList(e)||Re.endsWith(n,"[]"))&&(u=Re.toArray(e)))return n=Fe(n),u.forEach(function(e,r){!Re.isUndefined(e)&&null!==e&&t.append(!0===a?Be([n],r,i):null===a?n:n+"[]",f(e))}),!1;return!!Le(e)||(t.append(Be(o,n,i),f(e)),!1)}var d=[],p=Object.assign(Ie,{defaultVisitor:l,convertValue:f,isVisitable:Le});if(!Re.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(!Re.isUndefined(n)){if(i>s)throw new Ue("Object is too deeply nested ("+i+" levels). Max depth: "+s,Ue.ERR_FORM_DATA_DEPTH_EXCEEDED);if(-1!==d.indexOf(n))throw Error("Circular reference detected in "+r.join("."));d.push(n),Re.forEach(n,function(n,a){!0===(!(Re.isUndefined(n)||null===n)&&o.call(t,n,Re.isString(a)?a.trim():a,r,p))&&e(n,r?r.concat(a):[a],i+1)}),d.pop()}}(e),t}function Me(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function ze(e,t){this._pairs=[],e&&qe(e,this,t)}var He=ze.prototype;function We(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Je(e,t,n){if(!t)return e;var r,o=n&&n.encode||We,i=Re.isFunction(n)?{serialize:n}:n,a=i&&i.serialize;if(r=a?a(t,i):Re.isURLSearchParams(t)?t.toString():new ze(t,i).toString(o)){var u=e.indexOf("#");-1!==u&&(e=e.slice(0,u)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}He.append=function(e,t){this._pairs.push([e,t])},He.toString=function(e){var t=e?function(t){return e.call(this,t,Me)}:Me;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var Ke=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){Re.forEach(this.handlers,function(t){null!==t&&e(t)})}}])}(),Ve={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Xe={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ze,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Ge="undefined"!=typeof window&&"undefined"!=typeof document,$e="object"===("undefined"==typeof navigator?"undefined":_(navigator))&&navigator||void 0,Qe=Ge&&(!$e||["ReactNative","NativeScript","NS"].indexOf($e.product)<0),Ye="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Ze=Ge&&window.location.href||"http://localhost",et=b(b({},Object.freeze({__proto__:null,hasBrowserEnv:Ge,hasStandardBrowserEnv:Qe,hasStandardBrowserWebWorkerEnv:Ye,navigator:$e,origin:Ze})),Xe);function tt(e){function t(e,n,r,o){var i=e[o++];if("__proto__"===i)return!0;var a=Number.isFinite(+i),u=o>=e.length;return i=!i&&Re.isArray(r)?r.length:i,u?(Re.hasOwnProp(r,i)?r[i]=Re.isArray(r[i])?r[i].concat(n):[r[i],n]:r[i]=n,!a):(Re.hasOwnProp(r,i)&&Re.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&Re.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(Re.isFormData(e)&&Re.isFunction(e.entries)){var n={};return Re.forEachEntry(e,function(e,r){t(function(e){return Re.matchAll(/\w+|\[(\w*)]/g,e).map(function(e){return"[]"===e[0]?"":e[1]||e[0]})}(e),r,n,0)}),n}return null}var nt=function(e,t){return null!=e&&Re.hasOwnProp(e,t)?e[t]:void 0};var rt={transitional:Ve,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){var n,r=t.getContentType()||"",o=r.indexOf("application/json")>-1,i=Re.isObject(e);if(i&&Re.isHTMLForm(e)&&(e=new FormData(e)),Re.isFormData(e))return o?JSON.stringify(tt(e)):e;if(Re.isArrayBuffer(e)||Re.isBuffer(e)||Re.isStream(e)||Re.isFile(e)||Re.isBlob(e)||Re.isReadableStream(e))return e;if(Re.isArrayBufferView(e))return e.buffer;if(Re.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){var a=nt(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return qe(e,new et.classes.URLSearchParams,b({visitor:function(e,t,n,r){return et.isNode&&Re.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,a).toString();if((n=Re.isFileList(e))||r.indexOf("multipart/form-data")>-1){var u=nt(this,"env"),s=u&&u.FormData;return qe(n?{"files[]":e}:e,s&&new s,a)}}return i||o?(t.setContentType("application/json",!1),function(e,t,n){if(Re.isString(e))try{return(t||JSON.parse)(e),Re.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=nt(this,"transitional")||rt.transitional,n=t&&t.forcedJSONParsing,r=nt(this,"responseType"),o="json"===r;if(Re.isResponse(e)||Re.isReadableStream(e))return e;if(e&&Re.isString(e)&&(n&&!r||o)){var i=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e,nt(this,"parseReviver"))}catch(e){if(i){if("SyntaxError"===e.name)throw Ue.from(e,Ue.ERR_BAD_RESPONSE,this,null,nt(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:et.classes.FormData,Blob:et.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function ot(e,t){var n=this||rt,r=t||n,o=Ne.from(r.headers),i=r.data;return Re.forEach(e,function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function it(e){return!(!e||!e.__CANCEL__)}Re.forEach(["delete","get","head","post","put","patch","query"],function(e){rt.headers[e]={}});var at=function(e){function t(e,n,r){var o;return c(this,t),(o=s(this,t,[null==e?"canceled":e,Ue.ERR_CANCELED,n,r])).name="CanceledError",o.__CANCEL__=!0,o}return h(t,e),l(t)}(Ue);function ut(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Ue("Request failed with status code "+n.status,n.status>=400&&n.status<500?Ue.ERR_BAD_REQUEST:Ue.ERR_BAD_RESPONSE,n.config,n.request,n)):e(n)}var st=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)},ct=function(e,t){var n=null!=e;return[function(r){return t[0]({lengthComputable:n,total:e,loaded:r})},t[1]]},ft=function(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Re.asap(function(){return e.apply(void 0,n)})}},lt=et.hasStandardBrowserEnv?function(e,t){return function(n){return n=new URL(n,et.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)}}(new URL(et.origin),et.navigator&&/(msie|trident)/i.test(et.navigator.userAgent)):function(){return!0},dt=et.hasStandardBrowserEnv?{write:function(e,t,n,r,o,i,a){if("undefined"!=typeof document){var u=["".concat(e,"=").concat(encodeURIComponent(t))];Re.isNumber(n)&&u.push("expires=".concat(new Date(n).toUTCString())),Re.isString(r)&&u.push("path=".concat(r)),Re.isString(o)&&u.push("domain=".concat(o)),!0===i&&u.push("secure"),Re.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(){}};function pt(e,t,n){var r,o=!("string"==typeof(r=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r));return e&&(o||!1===n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}var ht=function(e){return e instanceof Ne?b({},e):e};function yt(e,t){t=t||{};var n=Object.create(null);function r(e,t,n,r){return Re.isPlainObject(e)&&Re.isPlainObject(t)?Re.merge.call({caseless:r},e,t):Re.isPlainObject(t)?Re.merge({},t):Re.isArray(t)?t.slice():t}function o(e,t,n,o){return Re.isUndefined(t)?Re.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!Re.isUndefined(t))return r(void 0,t)}function a(e,t){return Re.isUndefined(t)?Re.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function u(n,o,i){return Re.hasOwnProp(t,i)?r(n,o):Re.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(ht(e),ht(t),0,!0)}};return Re.forEach(Object.keys(b(b({},e),t)),function(r){if("__proto__"!==r&&"constructor"!==r&&"prototype"!==r){var i=Re.hasOwnProp(s,r)?s[r]:o,a=i(Re.hasOwnProp(e,r)?e[r]:void 0,Re.hasOwnProp(t,r)?t[r]:void 0,r);Re.isUndefined(a)&&i!==u||(n[r]=a)}}),n}var vt=["content-type","content-length"];var bt=function(e){var t,n=yt({},e),r=function(e){return Re.hasOwnProp(n,e)?n[e]:void 0},o=r("data"),i=r("withXSRFToken"),a=r("xsrfHeaderName"),u=r("xsrfCookieName"),s=r("headers"),c=r("auth"),f=r("baseURL"),l=r("allowAbsoluteUrls"),d=r("url");if((n.headers=s=Ne.from(s),n.url=Je(pt(f,d,l),e.params,e.paramsSerializer),c&&s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?(t=c.password,encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,function(e,t){return String.fromCharCode(parseInt(t,16))})):""))),Re.isFormData(o)&&(et.hasStandardBrowserEnv||et.hasStandardBrowserWebWorkerEnv?s.setContentType(void 0):Re.isFunction(o.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];vt.includes(r.toLowerCase())&&e.set(r,o)}):e.set(t)}(s,o.getHeaders(),r("formDataHeaderPolicy"))),et.hasStandardBrowserEnv)&&(Re.isFunction(i)&&(i=i(n)),!0===i||null==i&<(n.url))){var p=a&&u&&dt.read(u);p&&s.set(a,p)}return n},mt="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){var r,o,i,a,u,s=bt(e),c=s.data,f=Ne.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 y=new XMLHttpRequest;function v(){if(y){var r=Ne.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders());ut(function(e){t(e),h()},function(e){n(e),h()},{data:l&&"text"!==l&&"json"!==l?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:r,config:e,request:y}),y=null}}if(y.open(s.method.toUpperCase(),s.url,!0),y.timeout=s.timeout,"onloadend"in y?y.onloadend=v:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&y.responseURL.startsWith("file:"))&&setTimeout(v)},y.onabort=function(){y&&(n(new Ue("Request aborted",Ue.ECONNABORTED,e,y)),h(),y=null)},y.onerror=function(t){var r=t&&t.message?t.message:"Network Error",o=new Ue(r,Ue.ERR_NETWORK,e,y);o.event=t||null,n(o),h(),y=null},y.ontimeout=function(){var t=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded",r=s.transitional||Ve;s.timeoutErrorMessage&&(t=s.timeoutErrorMessage),n(new Ue(t,r.clarifyTimeoutError?Ue.ETIMEDOUT:Ue.ECONNABORTED,e,y)),h(),y=null},void 0===c&&f.setContentType(null),"setRequestHeader"in y&&Re.forEach(je(f),function(e,t){y.setRequestHeader(t,e)}),Re.isUndefined(s.withCredentials)||(y.withCredentials=!!s.withCredentials),l&&"json"!==l&&(y.responseType=s.responseType),p){var b=E(st(p,!0),2);i=b[0],u=b[1],y.addEventListener("progress",i)}if(d&&y.upload){var m=E(st(d),2);o=m[0],a=m[1],y.upload.addEventListener("progress",o),y.upload.addEventListener("loadend",a)}(s.cancelToken||s.signal)&&(r=function(t){y&&(n(!t||t.type?new at(null,e,y):t),y.abort(),h(),y=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||et.protocols.includes(O)?y.send(c||null):n(new Ue("Unsupported protocol "+O+":",Ue.ERR_BAD_REQUEST,e))})},gt=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 Ue?t:new at(t instanceof Error?t.message:t))}},i=t&&setTimeout(function(){i=null,o(new Ue("timeout of ".concat(t,"ms exceeded"),Ue.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 Re.asap(a)},u}},wt=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)}),Ot=function(){var e=T(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(Et(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(wt(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)}}(),Et=function(){var e=T(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)}}(),Rt=function(e,t,n,r){var o,i=Ot(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})};function St(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);(u>=48&&u<=57||u>=65&&u<=70||u>=97&&u<=102)&&(s>=48&&s<=57||s>=65&&s<=70||s>=97&&s<=102)&&(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}if("undefined"!=typeof Buffer&&"function"==typeof Buffer.byteLength)return Buffer.byteLength(r,"utf8");for(var p=0,h=0,y=r.length;h<y;h++){var v=r.charCodeAt(h);if(v<128)p+=1;else if(v<2048)p+=2;else if(v>=55296&&v<=56319&&h+1<y){var b=r.charCodeAt(h+1);b>=56320&&b<=57343?(p+=4,h++):p+=3}else p+=3}return p}var _t="1.16.1",At=Re.isFunction,Tt=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}},jt=function(e){var t=void 0!==Re.global&&null!==Re.global?Re.global:globalThis,n=t.ReadableStream,r=t.TextEncoder,o=e=Re.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e),i=o.fetch,u=o.Request,s=o.Response,c=i?At(i):"function"==typeof fetch,f=At(u),l=At(s);if(!c)return!1;var d,p=c&&At(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)}}()),y=f&&p&&Tt(function(){var e=!1,t=new u(et.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}),v=l&&p&&Tt(function(){return Re.isReadableStream(new s("").body)}),g={stream:v&&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 Ue("Response type '".concat(e,"' is not supported"),Ue.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(!Re.isBlob(t)){e.n=2;break}return e.a(2,t.size);case 2:if(!Re.isSpecCompliantForm(t)){e.n=4;break}return n=new u(et.origin,{method:"POST",body:t}),e.n=3,n.arrayBuffer();case 3:case 6:return e.a(2,e.v.byteLength);case 4:if(!Re.isArrayBufferView(t)&&!Re.isArrayBuffer(t)){e.n=5;break}return e.a(2,t.byteLength);case 5:if(Re.isURLSearchParams(t)&&(t+=""),!Re.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=Re.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,p,h,w,R,S,_,A,T,j,P,k,x,C,N,D,U,L,F,B,I,q,M,z,H,W,J,K,V,X,G,$,Q,Y,Z,ee,te,ne,re,oe,ie,ae,ue,se;return m().w(function(e){for(;;)switch(e.p=e.n){case 0:if(n=bt(t),o=n.url,a=n.method,c=n.data,l=n.signal,d=n.cancelToken,p=n.timeout,h=n.onDownloadProgress,w=n.onUploadProgress,R=n.responseType,S=n.headers,_=n.withCredentials,A=void 0===_?"same-origin":_,T=n.fetchOptions,j=n.maxContentLength,P=n.maxBodyLength,k=Re.isNumber(j)&&j>-1,x=Re.isNumber(P)&&P>-1,C=i||fetch,R=R?(R+"").toLowerCase():"text",N=gt([l,d&&d.toAbortSignal()],p),D=null,U=N&&N.unsubscribe&&function(){N.unsubscribe()},e.p=1,!k||"string"!=typeof o||!o.startsWith("data:")){e.n=2;break}if(!(St(o)>j)){e.n=2;break}throw new Ue("maxContentLength size of "+j+" exceeded",Ue.ERR_BAD_RESPONSE,t,D);case 2:if(!x||"get"===a||"head"===a){e.n=4;break}return e.n=3,O(S,c);case 3:if(!("number"==typeof(F=e.v)&&isFinite(F)&&F>P)){e.n=4;break}throw new Ue("Request body larger than maxBodyLength limit",Ue.ERR_BAD_REQUEST,t,D);case 4:if(!(ae=w&&y&&"get"!==a&&"head"!==a)){e.n=6;break}return e.n=5,O(S,c);case 5:ue=L=e.v,ae=0!==ue;case 6:if(!ae){e.n=7;break}B=new u(o,{method:"POST",body:c,duplex:"half"}),Re.isFormData(c)&&(I=B.headers.get("content-type"))&&S.setContentType(I),B.body&&(q=ct(L,st(ft(w))),M=E(q,2),z=M[0],H=M[1],c=Rt(B.body,65536,z,H));case 7:return Re.isString(A)||(A=A?"include":"omit"),W=f&&"credentials"in u.prototype,Re.isFormData(c)&&(J=S.getContentType())&&/^multipart\/form-data/i.test(J)&&!/boundary=/i.test(J)&&S.delete("content-type"),S.set("User-Agent","axios/"+_t,!1),K=b(b({},T),{},{signal:N,method:a.toUpperCase(),headers:je(S.normalize()),body:c,duplex:"half",credentials:W?A:void 0}),D=f&&new u(o,K),e.n=8,f?C(D,T):C(o,K);case 8:if(V=e.v,!k){e.n=9;break}if(!(null!=(X=Re.toFiniteNumber(V.headers.get("content-length")))&&X>j)){e.n=9;break}throw new Ue("maxContentLength size of "+j+" exceeded",Ue.ERR_BAD_RESPONSE,t,D);case 9:return G=v&&("stream"===R||"response"===R),v&&V.body&&(h||k||G&&U)&&($={},["status","statusText","headers"].forEach(function(e){$[e]=V[e]}),Q=Re.toFiniteNumber(V.headers.get("content-length")),Y=h&&ct(Q,st(ft(h),!0))||[],Z=E(Y,2),ee=Z[0],te=Z[1],ne=function(e){if(k&&e>j)throw new Ue("maxContentLength size of "+j+" exceeded",Ue.ERR_BAD_RESPONSE,t,D);ee&&ee(e)},V=new s(Rt(V.body,65536,ne,function(){te&&te(),U&&U()}),$)),R=R||"text",e.n=10,g[Re.findKey(g,R)||"text"](V,t);case 10:if(re=e.v,!k||v||G){e.n=11;break}if(null!=re&&("number"==typeof re.byteLength?oe=re.byteLength:"number"==typeof re.size?oe=re.size:"string"==typeof re&&(oe="function"==typeof r?(new r).encode(re).byteLength:re.length)),!("number"==typeof oe&&oe>j)){e.n=11;break}throw new Ue("maxContentLength size of "+j+" exceeded",Ue.ERR_BAD_RESPONSE,t,D);case 11:return!G&&U&&U(),e.n=12,new Promise(function(e,n){ut(e,n,{data:re,headers:Ne.from(V.headers),status:V.status,statusText:V.statusText,config:t,request:D})});case 12:return e.a(2,e.v);case 13:if(e.p=13,se=e.v,U&&U(),!(N&&N.aborted&&N.reason instanceof Ue)){e.n=14;break}throw(ie=N.reason).config=t,D&&(ie.request=D),se!==ie&&(ie.cause=se),ie;case 14:if(!se||"TypeError"!==se.name||!/Load failed|fetch/i.test(se.message)){e.n=15;break}throw Object.assign(new Ue("Network Error",Ue.ERR_NETWORK,t,D,se&&se.response),{cause:se.cause||se});case 15:throw Ue.from(se,se&&se.code,t,D,se&&se.response);case 16:return e.a(2)}},e,null,[[1,13]])}));return function(t){return e.apply(this,arguments)}}()},Pt=new Map,kt=function(e){for(var t,n,r=e&&e.env||{},o=r.fetch,i=[r.Request,r.Response,o],a=i.length,u=Pt;a--;)t=i[a],void 0===(n=u.get(t))&&u.set(t,n=a?new Map:jt(r)),u=n;return n};kt();var xt={http:null,xhr:mt,fetch:{get:kt}};Re.forEach(xt,function(e,t){if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});var Ct=function(e){return"- ".concat(e)},Nt=function(e){return Re.isFunction(e)||null===e||!1===e};var Dt={getAdapter:function(e,t){for(var n,r,o=(e=Re.isArray(e)?e:[e]).length,i={},a=0;a<o;a++){var u=void 0;if(r=n=e[a],!Nt(n)&&void 0===(r=xt[(u=String(n)).toLowerCase()]))throw new Ue("Unknown adapter '".concat(u,"'"));if(r&&(Re.isFunction(r)||(r=r.get(t))))break;i[u||"#"+a]=r}if(!r){var s=Object.entries(i).map(function(e){var t=E(e,2),n=t[0],r=t[1];return"adapter ".concat(n," ")+(!1===r?"is not supported by the environment":"is not available in the build")}),c=o?s.length>1?"since :\n"+s.map(Ct).join("\n"):" "+Ct(s[0]):"as no adapter specified";throw new Ue("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return r},adapters:xt};function Ut(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new at(null,e)}function Lt(e){return Ut(e),e.headers=Ne.from(e.headers),e.data=ot.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Dt.getAdapter(e.adapter||rt.adapter,e)(e).then(function(t){Ut(e),e.response=t;try{t.data=ot.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=Ne.from(t.headers),t},function(t){if(!it(t)&&(Ut(e),t&&t.response)){e.response=t.response;try{t.response.data=ot.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=Ne.from(t.response.headers)}return Promise.reject(t)})}var Ft={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){Ft[e]=function(n){return _(n)===e||"a"+(t<1?"n ":" ")+e}});var Bt={};Ft.transitional=function(e,t,n){function r(e,t){return"[Axios v"+_t+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,o,i){if(!1===e)throw new Ue(r(o," has been removed"+(t?" in "+t:"")),Ue.ERR_DEPRECATED);return t&&!Bt[o]&&(Bt[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},Ft.spelling=function(e){return function(t,n){return console.warn("".concat(n," is likely a misspelling of ").concat(e)),!0}};var It={assertOptions:function(e,t,n){if("object"!==_(e))throw new Ue("options must be an object",Ue.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(a){var u=e[i],s=void 0===u||a(u,i,e);if(!0!==s)throw new Ue("option "+i+" must be "+s,Ue.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Ue("Unknown option "+i,Ue.ERR_BAD_OPTION)}},validators:Ft},qt=It.validators,Mt=function(){return l(function e(t){c(this,e),this.defaults=t||{},this.interceptors={request:new Ke,response:new Ke}},[{key:"request",value:(e=a(m().m(function e(t,n){var r,o,i,a,u,s;return m().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,this._request(t,n);case 1:return e.a(2,e.v);case 2:if(e.p=2,(s=e.v)instanceof Error){r={},Error.captureStackTrace?Error.captureStackTrace(r):r=new Error,o=function(){if(!r.stack)return"";var e=r.stack.indexOf("\n");return-1===e?"":r.stack.slice(e+1)}();try{s.stack?o&&(i=o.indexOf("\n"),a=-1===i?-1:o.indexOf("\n",i+1),u=-1===a?"":o.slice(a+1),String(s.stack).endsWith(u)||(s.stack+="\n"+o)):s.stack=o}catch(e){}}throw s;case 3:return e.a(2)}},e,this,[[0,2]])})),function(t,n){return e.apply(this,arguments)})},{key:"_request",value:function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{};var n=t=yt(this.defaults,t),r=n.transitional,o=n.paramsSerializer,i=n.headers;void 0!==r&&It.assertOptions(r,{silentJSONParsing:qt.transitional(qt.boolean),forcedJSONParsing:qt.transitional(qt.boolean),clarifyTimeoutError:qt.transitional(qt.boolean),legacyInterceptorReqResOrdering:qt.transitional(qt.boolean)},!1),null!=o&&(Re.isFunction(o)?t.paramsSerializer={serialize:o}:It.assertOptions(o,{encode:qt.function,serialize:qt.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),It.assertOptions(t,{baseUrl:qt.spelling("baseURL"),withXsrfToken:qt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();var a=i&&Re.merge(i.common,i[t.method]);i&&Re.forEach(["delete","get","head","post","put","patch","query","common"],function(e){delete i[e]}),t.headers=Ne.concat(a,i);var u=[],s=!0;this.interceptors.request.forEach(function(e){if("function"!=typeof e.runWhen||!1!==e.runWhen(t)){s=s&&e.synchronous;var n=t.transitional||Ve;n&&n.legacyInterceptorReqResOrdering?u.unshift(e.fulfilled,e.rejected):u.push(e.fulfilled,e.rejected)}});var c,f=[];this.interceptors.response.forEach(function(e){f.push(e.fulfilled,e.rejected)});var l,d=0;if(!s){var p=[Lt.bind(this),void 0];for(p.unshift.apply(p,u),p.push.apply(p,f),l=p.length,c=Promise.resolve(t);d<l;)c=c.then(p[d++],p[d++]);return c}l=u.length;for(var h=t;d<l;){var y=u[d++],v=u[d++];try{h=y(h)}catch(e){v.call(this,e);break}}try{c=Lt.call(this,h)}catch(e){return Promise.reject(e)}for(d=0,l=f.length;d<l;)c=c.then(f[d++],f[d++]);return c}},{key:"getUri",value:function(e){return Je(pt((e=yt(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}]);var e}();Re.forEach(["delete","get","head","options"],function(e){Mt.prototype[e]=function(t,n){return this.request(yt(n||{},{method:e,url:t,data:(n||{}).data}))}}),Re.forEach(["post","put","patch","query"],function(e){function t(t){return function(n,r,o){return this.request(yt(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Mt.prototype[e]=t(),"query"!==e&&(Mt.prototype[e+"Form"]=t(!0))});var zt=function(){function e(t){if(c(this,e),"function"!=typeof t)throw new TypeError("executor must be a function.");var n;this.promise=new Promise(function(e){n=e});var r=this;this.promise.then(function(e){if(r._listeners){for(var t=r._listeners.length;t-- >0;)r._listeners[t](e);r._listeners=null}}),this.promise.then=function(e){var t,n=new Promise(function(e){r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},t(function(e,t,o){r.reason||(r.reason=new at(e,t,o),n(r.reason))})}return l(e,[{key:"throwIfRequested",value:function(){if(this.reason)throw this.reason}},{key:"subscribe",value:function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}},{key:"unsubscribe",value:function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}}},{key:"toAbortSignal",value:function(){var e=this,t=new AbortController,n=function(e){t.abort(e)};return this.subscribe(n),t.signal.unsubscribe=function(){return e.unsubscribe(n)},t.signal}}],[{key:"source",value:function(){var t;return{token:new e(function(e){t=e}),cancel:t}}}])}();var Ht={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Ht).forEach(function(e){var t=E(e,2),n=t[0],r=t[1];Ht[r]=n});var Wt=function e(t){var n=new Mt(t),r=k(Mt.prototype.request,n);return Re.extend(r,Mt.prototype,n,{allOwnKeys:!0}),Re.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(yt(t,n))},r}(rt);return Wt.Axios=Mt,Wt.CanceledError=at,Wt.CancelToken=zt,Wt.isCancel=it,Wt.VERSION=_t,Wt.toFormData=qe,Wt.AxiosError=Ue,Wt.Cancel=Wt.CanceledError,Wt.all=function(e){return Promise.all(e)},Wt.spread=function(e){return function(t){return e.apply(null,t)}},Wt.isAxiosError=function(e){return Re.isObject(e)&&!0===e.isAxiosError},Wt.mergeConfig=yt,Wt.AxiosHeaders=Ne,Wt.formToJSON=function(e){return tt(Re.isHTMLForm(e)?new FormData(e):e)},Wt.getAdapter=Dt.getAdapter,Wt.HttpStatusCode=Ht,Wt.default=Wt,Wt}); | ||
| 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 T(e){return function(){return new j(e.apply(this,arguments))}}function j(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?"return":"next";if(!u.k||e.done)return o(r,e);e=t[r](e).value}i(a.done?"return":"normal",e)},function(e){o("throw",e)})}catch(e){i("throw",e)}}function i(e,t){switch(e){case"return":n.resolve({value:t,done:!0});break;case"throw":n.reject(t);break;default:n.resolve({value:t,done:!1})}(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 P(e){var t="function"==typeof Map?new Map:void 0;return P=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&&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)},P(e)}function k(e,t){return function(){return e.apply(t,arguments)}}j.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},j.prototype.next=function(e){return this._invoke("next",e)},j.prototype.throw=function(e){return this._invoke("throw",e)},j.prototype.return=function(e){return this._invoke("return",e)};var x,C=Object.prototype.toString,N=Object.getPrototypeOf,D=Symbol.iterator,U=Symbol.toStringTag,L=(x=Object.create(null),function(e){var t=C.call(e);return x[t]||(x[t]=t.slice(8,-1).toLowerCase())}),F=function(e){return e=e.toLowerCase(),function(t){return L(t)===e}},B=function(e){return function(t){return _(t)===e}},I=Array.isArray,q=B("undefined");function M(e){return null!==e&&!q(e)&&null!==e.constructor&&!q(e.constructor)&&W(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var z=F("ArrayBuffer");var H=B("string"),W=B("function"),J=B("number"),K=function(e){return null!==e&&"object"===_(e)},V=function(e){if("object"!==L(e))return!1;var t=N(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||U in e||D in e)},X=F("Date"),G=F("File"),$=F("Blob"),Q=F("FileList");var Z="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},Y=void 0!==Z.FormData?Z.FormData:void 0,ee=F("URLSearchParams"),te=E(["ReadableStream","Request","Response","Headers"].map(F),4),ne=te[0],re=te[1],oe=te[2],ie=te[3];function ae(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]),I(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{if(M(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 ue(e,t){if(M(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 se="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,ce=function(e){return!q(e)&&e!==se};var fe,le=(fe="undefined"!=typeof Uint8Array&&N(Uint8Array),function(e){return fe&&e instanceof fe}),de=F("HTMLFormElement"),pe=function(){var e=Object.prototype.hasOwnProperty;return function(t,n){return e.call(t,n)}}(),he=Object.prototype.propertyIsEnumerable,ye=F("RegExp"),ve=function(e,t){var n=Object.getOwnPropertyDescriptors(e),r={};ae(n,function(n,o){var i;!1!==(i=t(n,o,e))&&(r[o]=i||n)}),Object.defineProperties(e,r)};var be,me,ge,we,Oe=F("AsyncFunction"),Ee=(be="function"==typeof setImmediate,me=W(se.postMessage),be?setImmediate:me?(ge="axios@".concat(Math.random()),we=[],se.addEventListener("message",function(e){var t=e.source,n=e.data;t===se&&n===ge&&we.length&&we.shift()()},!1),function(e){we.push(e),se.postMessage(ge,"*")}):function(e){return setTimeout(e)}),Re="undefined"!=typeof queueMicrotask?queueMicrotask.bind(se):"undefined"!=typeof process&&process.nextTick||Ee,Se={isArray:I,isArrayBuffer:z,isBuffer:M,isFormData:function(e){if(!e)return!1;if(Y&&e instanceof Y)return!0;var t=N(e);if(!t||t===Object.prototype)return!1;if(!W(e.append))return!1;var n=L(e);return"formdata"===n||"object"===n&&W(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&z(e.buffer)},isString:H,isNumber:J,isBoolean:function(e){return!0===e||!1===e},isObject:K,isPlainObject:V,isEmptyObject:function(e){if(!K(e)||M(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:ne,isRequest:re,isResponse:oe,isHeaders:ie,isUndefined:q,isDate:X,isFile:G,isReactNativeBlob:function(e){return!(!e||void 0===e.uri)},isReactNative:function(e){return e&&void 0!==e.getParts},isBlob:$,isRegExp:ye,isFunction:W,isStream:function(e){return K(e)&&W(e.pipe)},isURLSearchParams:ee,isTypedArray:le,isFileList:Q,forEach:ae,merge:function e(){for(var t=ce(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&&ue(o,i)||i,u=pe(o,a)?o[a]:void 0;V(u)&&V(t)?o[a]=e(u,t):V(t)?o[a]=e({},t):I(t)?o[a]=t.slice():r&&q(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&&!M(s)&&(ae(s,i),"object"===_(s)&&!I(s)))for(var c=Object.getOwnPropertySymbols(s),f=0;f<c.length;f++){var l=c[f];he.call(s,l)&&i(s[l],l)}}return o},extend:function(e,t,n){return ae(t,function(t,r){n&&W(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:L,kindOfTest:F,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(I(e))return e;var t=e.length;if(!J(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:de,hasOwnProperty:pe,hasOwnProp:pe,reduceDescriptors:ve,freezeMethods:function(e){ve(e,function(t,n){if(W(e)&&["arguments","caller","callee"].includes(n))return!1;var r=e[n];W(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 I(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:ue,global:se,isContextDefined:ce,isSpecCompliantForm:function(e){return!!(e&&W(e.append)&&"FormData"===e[U]&&e[D])},toJSONObject:function(e){var t=new WeakSet,n=function(e){if(K(e)){if(t.has(e))return;if(M(e))return e;if(!("toJSON"in e)){t.add(e);var r=I(e)?[]:{};return ae(e,function(e,t){var o=n(e);!q(o)&&(r[t]=o)}),t.delete(e),r}}return e};return n(e)},isAsyncFn:Oe,isThenable:function(e){return e&&(K(e)||W(e))&&W(e.then)&&W(e.catch)},setImmediate:Ee,asap:Re,isIterable:function(e){return null!=e&&W(e[D])}},_e=Se.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 Ae=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Te=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function je(e,t){return Se.isArray(e)?e.map(function(e){return je(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 Pe(e){var t=Object.create(null);return Se.forEach(e.toJSON(),function(e,n){t[n]=function(e){return je(e,Te)}(e)}),t}var ke=Symbol("internals");function xe(e){return e&&String(e).trim().toLowerCase()}function Ce(e){return!1===e||null==e?e:Se.isArray(e)?e.map(Ce):function(e){return je(e,Ae)}(String(e))}function Ne(e,t,n,r,o){return Se.isFunction(r)?r.call(this,t,n):(o&&(t=n),Se.isString(t)?Se.isString(r)?-1!==t.indexOf(r):Se.isRegExp(r)?r.test(t):void 0:void 0)}var De=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=xe(t);if(o){var i=Se.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=Ce(e))}}var i=function(e,t){return Se.forEach(e,function(e,n){return o(e,n,t)})};if(Se.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Se.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]&&_e[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(Se.isObject(e)&&Se.isIterable(e)){var a,u,s,c={},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(!Se.isArray(l))throw new TypeError("Object iterator must return a key-value pair");c[u=l[0]]=(a=c[u])?Se.isArray(a)?[].concat(R(a),[l[1]]):[a,l[1]]: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=xe(e)){var n=Se.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(Se.isFunction(t))return t.call(this,r,n);if(Se.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}},{key:"has",value:function(e,t){if(e=xe(e)){var n=Se.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ne(0,this[n],n,t))}return!1}},{key:"delete",value:function(e,t){var n=this,r=!1;function o(e){if(e=xe(e)){var o=Se.findKey(n,e);!o||t&&!Ne(0,n[o],o,t)||(delete n[o],r=!0)}}return Se.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&&!Ne(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}},{key:"normalize",value:function(e){var t=this,n={};return Se.forEach(this,function(r,o){var i=Se.findKey(n,o);if(i)return t[i]=Ce(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]=Ce(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 Se.forEach(this,function(n,r){null!=n&&!1!==n&&(t[r]=e&&Se.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[ke]=this[ke]={accessors:{}}).accessors,n=this.prototype;function r(e){var r=xe(e);t[r]||(!function(e,t){var n=Se.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 Se.isArray(e)?e.forEach(r):r(e),this}}])}();De.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Se.reduceDescriptors(De.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}}}),Se.freezeMethods(De);function Ue(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(Se.isBuffer(e))return e;if(-1===r.indexOf(e)){var t;if(e instanceof De&&(e=e.toJSON()),r.push(e),Se.isArray(e))t=[],e.forEach(function(e,n){var r=o(e);Se.isUndefined(r)||(t[n]=r)});else{if(!Se.isPlainObject(e)&&function(e){if(Se.hasOwnProp(e,"toJSON"))return!0;for(var t=Object.getPrototypeOf(e);t&&t!==Object.prototype;){if(Se.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);Se.isUndefined(f)||(t[s]=f)}}return r.pop(),t}};return o(e)}var Le=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&&Se.hasOwnProp(e,"redact")?e.redact:void 0,n=Se.isArray(t)&&t.length>0?Ue(e,t):Se.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}}])}(P(Error));Le.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",Le.ERR_BAD_OPTION="ERR_BAD_OPTION",Le.ECONNABORTED="ECONNABORTED",Le.ETIMEDOUT="ETIMEDOUT",Le.ECONNREFUSED="ECONNREFUSED",Le.ERR_NETWORK="ERR_NETWORK",Le.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",Le.ERR_DEPRECATED="ERR_DEPRECATED",Le.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",Le.ERR_BAD_REQUEST="ERR_BAD_REQUEST",Le.ERR_CANCELED="ERR_CANCELED",Le.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",Le.ERR_INVALID_URL="ERR_INVALID_URL",Le.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";function Fe(e){return Se.isPlainObject(e)||Se.isArray(e)}function Be(e){return Se.endsWith(e,"[]")?e.slice(0,-2):e}function Ie(e,t,n){return e?e.concat(t).map(function(e,t){return e=Be(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}var qe=Se.toFlatObject(Se,{},null,function(e){return/^is[A-Z]/.test(e)});function Me(e,t,n){if(!Se.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;var r=(n=Se.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!Se.isUndefined(t[e])})).metaTokens,o=n.visitor||l,i=n.dots,a=n.indexes,u=n.Blob||"undefined"!=typeof Blob&&Blob,s=void 0===n.maxDepth?100:n.maxDepth,c=u&&Se.isSpecCompliantForm(t);if(!Se.isFunction(o))throw new TypeError("visitor must be a function");function f(e){if(null===e)return"";if(Se.isDate(e))return e.toISOString();if(Se.isBoolean(e))return e.toString();if(!c&&Se.isBlob(e))throw new Le("Blob is not supported. Use a Buffer instead.");return Se.isArrayBuffer(e)||Se.isTypedArray(e)?c&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function l(e,n,o){var u=e;if(Se.isReactNative(t)&&Se.isReactNativeBlob(e))return t.append(Ie(o,n,i),f(e)),!1;if(e&&!o&&"object"===_(e))if(Se.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Se.isArray(e)&&function(e){return Se.isArray(e)&&!e.some(Fe)}(e)||(Se.isFileList(e)||Se.endsWith(n,"[]"))&&(u=Se.toArray(e)))return n=Be(n),u.forEach(function(e,r){!Se.isUndefined(e)&&null!==e&&t.append(!0===a?Ie([n],r,i):null===a?n:n+"[]",f(e))}),!1;return!!Fe(e)||(t.append(Ie(o,n,i),f(e)),!1)}var d=[],p=Object.assign(qe,{defaultVisitor:l,convertValue:f,isVisitable:Fe});if(!Se.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(!Se.isUndefined(n)){if(i>s)throw new Le("Object is too deeply nested ("+i+" levels). Max depth: "+s,Le.ERR_FORM_DATA_DEPTH_EXCEEDED);if(-1!==d.indexOf(n))throw new Error("Circular reference detected in "+r.join("."));d.push(n),Se.forEach(n,function(n,a){!0===(!(Se.isUndefined(n)||null===n)&&o.call(t,n,Se.isString(a)?a.trim():a,r,p))&&e(n,r?r.concat(a):[a],i+1)}),d.pop()}}(e),t}function ze(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function He(e,t){this._pairs=[],e&&Me(e,this,t)}var We=He.prototype;function Je(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Ke(e,t,n){if(!t)return e;var r,o=n&&n.encode||Je,i=Se.isFunction(n)?{serialize:n}:n,a=i&&i.serialize;if(r=a?a(t,i):Se.isURLSearchParams(t)?t.toString():new He(t,i).toString(o)){var u=e.indexOf("#");-1!==u&&(e=e.slice(0,u)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}We.append=function(e,t){this._pairs.push([e,t])},We.toString=function(e){var t=e?function(t){return e.call(this,t,ze)}:ze;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var Ve=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){Se.forEach(this.handlers,function(t){null!==t&&e(t)})}}])}(),Xe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1},Ge={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:He,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},$e="undefined"!=typeof window&&"undefined"!=typeof document,Qe="object"===("undefined"==typeof navigator?"undefined":_(navigator))&&navigator||void 0,Ze=$e&&(!Qe||["ReactNative","NativeScript","NS"].indexOf(Qe.product)<0),Ye="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,et=$e&&window.location.href||"http://localhost",tt=b(b({},Object.freeze({__proto__:null,hasBrowserEnv:$e,hasStandardBrowserEnv:Ze,hasStandardBrowserWebWorkerEnv:Ye,navigator:Qe,origin:et})),Ge);function nt(e){function t(e,n,r,o){var i=e[o++];if("__proto__"===i)return!0;var a=Number.isFinite(+i),u=o>=e.length;return i=!i&&Se.isArray(r)?r.length:i,u?(Se.hasOwnProp(r,i)?r[i]=Se.isArray(r[i])?r[i].concat(n):[r[i],n]:r[i]=n,!a):(Se.hasOwnProp(r,i)&&Se.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&Se.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(Se.isFormData(e)&&Se.isFunction(e.entries)){var n={};return Se.forEachEntry(e,function(e,r){t(function(e){return Se.matchAll(/\w+|\[(\w*)]/g,e).map(function(e){return"[]"===e[0]?"":e[1]||e[0]})}(e),r,n,0)}),n}return null}var rt=function(e,t){return null!=e&&Se.hasOwnProp(e,t)?e[t]:void 0};var ot={transitional:Xe,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){var n,r=t.getContentType()||"",o=r.indexOf("application/json")>-1,i=Se.isObject(e);if(i&&Se.isHTMLForm(e)&&(e=new FormData(e)),Se.isFormData(e))return o?JSON.stringify(nt(e)):e;if(Se.isArrayBuffer(e)||Se.isBuffer(e)||Se.isStream(e)||Se.isFile(e)||Se.isBlob(e)||Se.isReadableStream(e))return e;if(Se.isArrayBufferView(e))return e.buffer;if(Se.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){var a=rt(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Me(e,new tt.classes.URLSearchParams,b({visitor:function(e,t,n,r){return tt.isNode&&Se.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,a).toString();if((n=Se.isFileList(e))||r.indexOf("multipart/form-data")>-1){var u=rt(this,"env"),s=u&&u.FormData;return Me(n?{"files[]":e}:e,s&&new s,a)}}return i||o?(t.setContentType("application/json",!1),function(e,t,n){if(Se.isString(e))try{return(t||JSON.parse)(e),Se.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=rt(this,"transitional")||ot.transitional,n=t&&t.forcedJSONParsing,r=rt(this,"responseType"),o="json"===r;if(Se.isResponse(e)||Se.isReadableStream(e))return e;if(e&&Se.isString(e)&&(n&&!r||o)){var i=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e,rt(this,"parseReviver"))}catch(e){if(i){if("SyntaxError"===e.name)throw Le.from(e,Le.ERR_BAD_RESPONSE,this,null,rt(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:tt.classes.FormData,Blob:tt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function it(e,t){var n=this||ot,r=t||n,o=De.from(r.headers),i=r.data;return Se.forEach(e,function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function at(e){return!(!e||!e.__CANCEL__)}Se.forEach(["delete","get","head","post","put","patch","query"],function(e){ot.headers[e]={}});var ut=function(e){function t(e,n,r){var o;return c(this,t),(o=s(this,t,[null==e?"canceled":e,Le.ERR_CANCELED,n,r])).name="CanceledError",o.__CANCEL__=!0,o}return h(t,e),l(t)}(Le);function st(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Le("Request failed with status code "+n.status,n.status>=400&&n.status<500?Le.ERR_BAD_REQUEST:Le.ERR_BAD_RESPONSE,n.config,n.request,n)):e(n)}var ct=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)},ft=function(e,t){var n=null!=e;return[function(r){return t[0]({lengthComputable:n,total:e,loaded:r})},t[1]]},lt=function(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Se.asap(function(){return e.apply(void 0,n)})}},dt=tt.hasStandardBrowserEnv?function(e,t){return function(n){return n=new URL(n,tt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)}}(new URL(tt.origin),tt.navigator&&/(msie|trident)/i.test(tt.navigator.userAgent)):function(){return!0},pt=tt.hasStandardBrowserEnv?{write:function(e,t,n,r,o,i,a){if("undefined"!=typeof document){var u=["".concat(e,"=").concat(encodeURIComponent(t))];Se.isNumber(n)&&u.push("expires=".concat(new Date(n).toUTCString())),Se.isString(r)&&u.push("path=".concat(r)),Se.isString(o)&&u.push("domain=".concat(o)),!0===i&&u.push("secure"),Se.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(){}};function ht(e,t,n){var r,o=!("string"==typeof(r=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r));return e&&(o||!1===n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}var yt=function(e){return e instanceof De?b({},e):e};function vt(e,t){t=t||{};var n=Object.create(null);function r(e,t,n,r){return Se.isPlainObject(e)&&Se.isPlainObject(t)?Se.merge.call({caseless:r},e,t):Se.isPlainObject(t)?Se.merge({},t):Se.isArray(t)?t.slice():t}function o(e,t,n,o){return Se.isUndefined(t)?Se.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!Se.isUndefined(t))return r(void 0,t)}function a(e,t){return Se.isUndefined(t)?Se.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function u(n,o,i){return Se.hasOwnProp(t,i)?r(n,o):Se.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(yt(e),yt(t),0,!0)}};return Se.forEach(Object.keys(b(b({},e),t)),function(r){if("__proto__"!==r&&"constructor"!==r&&"prototype"!==r){var i=Se.hasOwnProp(s,r)?s[r]:o,a=i(Se.hasOwnProp(e,r)?e[r]:void 0,Se.hasOwnProp(t,r)?t[r]:void 0,r);Se.isUndefined(a)&&i!==u||(n[r]=a)}}),n}var bt=["content-type","content-length"];function mt(e){var t,n=vt({},e),r=function(e){return Se.hasOwnProp(n,e)?n[e]:void 0},o=r("data"),i=r("withXSRFToken"),a=r("xsrfHeaderName"),u=r("xsrfCookieName"),s=r("headers"),c=r("auth"),f=r("baseURL"),l=r("allowAbsoluteUrls"),d=r("url");if((n.headers=s=De.from(s),n.url=Ke(ht(f,d,l),r("params"),r("paramsSerializer")),c&&s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?(t=c.password,encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,function(e,t){return String.fromCharCode(parseInt(t,16))})):""))),Se.isFormData(o)&&(tt.hasStandardBrowserEnv||tt.hasStandardBrowserWebWorkerEnv||Se.isReactNative(o)?s.setContentType(void 0):Se.isFunction(o.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];bt.includes(r.toLowerCase())&&e.set(r,o)}):e.set(t)}(s,o.getHeaders(),r("formDataHeaderPolicy"))),tt.hasStandardBrowserEnv)&&(Se.isFunction(i)&&(i=i(n)),!0===i||null==i&&dt(n.url))){var p=a&&u&&pt.read(u);p&&s.set(a,p)}return n}var gt="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){var r,o,i,a,u,s=mt(e),c=s.data,f=De.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 y=new XMLHttpRequest;function v(){if(y){var r=De.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders());st(function(e){t(e),h()},function(e){n(e),h()},{data:l&&"text"!==l&&"json"!==l?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:r,config:e,request:y}),y=null}}if(y.open(s.method.toUpperCase(),s.url,!0),y.timeout=s.timeout,"onloadend"in y?y.onloadend=v:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&y.responseURL.startsWith("file:"))&&setTimeout(v)},y.onabort=function(){y&&(n(new Le("Request aborted",Le.ECONNABORTED,e,y)),h(),y=null)},y.onerror=function(t){var r=t&&t.message?t.message:"Network Error",o=new Le(r,Le.ERR_NETWORK,e,y);o.event=t||null,n(o),h(),y=null},y.ontimeout=function(){var t=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded",r=s.transitional||Xe;s.timeoutErrorMessage&&(t=s.timeoutErrorMessage),n(new Le(t,r.clarifyTimeoutError?Le.ETIMEDOUT:Le.ECONNABORTED,e,y)),h(),y=null},void 0===c&&f.setContentType(null),"setRequestHeader"in y&&Se.forEach(Pe(f),function(e,t){y.setRequestHeader(t,e)}),Se.isUndefined(s.withCredentials)||(y.withCredentials=!!s.withCredentials),l&&"json"!==l&&(y.responseType=s.responseType),p){var b=E(ct(p,!0),2);i=b[0],u=b[1],y.addEventListener("progress",i)}if(d&&y.upload){var m=E(ct(d),2);o=m[0],a=m[1],y.upload.addEventListener("progress",o),y.upload.addEventListener("loadend",a)}(s.cancelToken||s.signal)&&(r=function(t){y&&(n(!t||t.type?new ut(null,e,y):t),y.abort(),h(),y=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||tt.protocols.includes(O)?y.send(c||null):n(new Le("Unsupported protocol "+O+":",Le.ERR_BAD_REQUEST,e))})},wt=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 Le?t:new ut(t instanceof Error?t.message:t))}},i=t&&setTimeout(function(){i=null,o(new Le("timeout of ".concat(t,"ms exceeded"),Le.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 Se.asap(a)},u}},Ot=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)}),Et=function(){var e=T(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(Rt(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(Ot(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)}}(),Rt=function(){var e=T(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)}}(),St=function(e,t,n,r){var o,i=Et(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})};function _t(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);(u>=48&&u<=57||u>=65&&u<=70||u>=97&&u<=102)&&(s>=48&&s<=57||s>=65&&s<=70||s>=97&&s<=102)&&(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}if("undefined"!=typeof Buffer&&"function"==typeof Buffer.byteLength)return Buffer.byteLength(r,"utf8");for(var p=0,h=0,y=r.length;h<y;h++){var v=r.charCodeAt(h);if(v<128)p+=1;else if(v<2048)p+=2;else if(v>=55296&&v<=56319&&h+1<y){var b=r.charCodeAt(h+1);b>=56320&&b<=57343?(p+=4,h++):p+=3}else p+=3}return p}var At="1.17.0",Tt=Se.isFunction,jt=function(e){return encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,function(e,t){return String.fromCharCode(parseInt(t,16))})},Pt=function(e){if(!Se.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},kt=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}},xt=function(e){var t=e.indexOf("://"),n=e;return-1!==t&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},Ct=function(e){var t=void 0!==Se.global&&null!==Se.global?Se.global:globalThis,n=t.ReadableStream,r=t.TextEncoder,o=e=Se.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e),i=o.fetch,u=o.Request,s=o.Response,c=i?Tt(i):"function"==typeof fetch,f=Tt(u),l=Tt(s);if(!c)return!1;var d,p=c&&Tt(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)}}()),y=f&&p&&kt(function(){var e=!1,t=new u(tt.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}),v=l&&p&&kt(function(){return Se.isReadableStream(new s("").body)}),g={stream:v&&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 Le("Response type '".concat(e,"' is not supported"),Le.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(!Se.isBlob(t)){e.n=2;break}return e.a(2,t.size);case 2:if(!Se.isSpecCompliantForm(t)){e.n=4;break}return n=new u(tt.origin,{method:"POST",body:t}),e.n=3,n.arrayBuffer();case 3:case 6:return e.a(2,e.v.byteLength);case 4:if(!Se.isArrayBufferView(t)&&!Se.isArrayBuffer(t)){e.n=5;break}return e.a(2,t.byteLength);case 5:if(Se.isURLSearchParams(t)&&(t+=""),!Se.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=Se.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,p,h,w,R,S,_,A,T,j,P,k,x,C,N,D,U,L,F,B,I,q,M,z,H,W,J,K,V,X,G,$,Q,Z,Y,ee,te,ne,re,oe,ie,ae,ue,se,ce,fe,le,de,pe,he,ye,ve;return m().w(function(e){for(;;)switch(e.p=e.n){case 0:if(n=mt(t),o=n.url,a=n.method,c=n.data,l=n.signal,d=n.cancelToken,p=n.timeout,h=n.onDownloadProgress,w=n.onUploadProgress,R=n.responseType,S=n.headers,_=n.withCredentials,A=void 0===_?"same-origin":_,T=n.fetchOptions,j=n.maxContentLength,P=n.maxBodyLength,k=Se.isNumber(j)&&j>-1,x=Se.isNumber(P)&&P>-1,C=function(e){return Se.hasOwnProp(t,e)?t[e]:void 0},N=i||fetch,R=R?(R+"").toLowerCase():"text",D=wt([l,d&&d.toAbortSignal()],p),U=null,L=D&&D.unsubscribe&&function(){D.unsubscribe()},e.p=1,B=void 0,(I=C("auth"))&&(q=I.username||"",M=I.password||"",B={username:q,password:M}),xt(o)&&(z=new URL(o,tt.origin),B||!z.username&&!z.password||(H=Pt(z.username),W=Pt(z.password),B={username:H,password:W}),(z.username||z.password)&&(z.username="",z.password="",o=z.href)),B&&(S.delete("authorization"),S.set("Authorization","Basic "+btoa(jt((B.username||"")+":"+(B.password||""))))),!k||"string"!=typeof o||!o.startsWith("data:")){e.n=2;break}if(!(_t(o)>j)){e.n=2;break}throw new Le("maxContentLength size of "+j+" exceeded",Le.ERR_BAD_RESPONSE,t,U);case 2:if(!x||"get"===a||"head"===a){e.n=4;break}return e.n=3,O(S,c);case 3:if(!("number"==typeof(J=e.v)&&isFinite(J)&&J>P)){e.n=4;break}throw new Le("Request body larger than maxBodyLength limit",Le.ERR_BAD_REQUEST,t,U);case 4:if(!(he=w&&y&&"get"!==a&&"head"!==a)){e.n=6;break}return e.n=5,O(S,c);case 5:ye=F=e.v,he=0!==ye;case 6:if(!he){e.n=7;break}K=new u(o,{method:"POST",body:c,duplex:"half"}),Se.isFormData(c)&&(V=K.headers.get("content-type"))&&S.setContentType(V),K.body&&(X=ft(F,ct(lt(w))),G=E(X,2),$=G[0],Q=G[1],c=St(K.body,65536,$,Q));case 7:return Se.isString(A)||(A=A?"include":"omit"),Z=f&&"credentials"in u.prototype,Se.isFormData(c)&&(Y=S.getContentType())&&/^multipart\/form-data/i.test(Y)&&!/boundary=/i.test(Y)&&S.delete("content-type"),S.set("User-Agent","axios/"+At,!1),ee=b(b({},T),{},{signal:D,method:a.toUpperCase(),headers:Pe(S.normalize()),body:c,duplex:"half",credentials:Z?A:void 0}),U=f&&new u(o,ee),e.n=8,f?N(U,T):N(o,ee);case 8:if(te=e.v,!k){e.n=9;break}if(!(null!=(ne=Se.toFiniteNumber(te.headers.get("content-length")))&&ne>j)){e.n=9;break}throw new Le("maxContentLength size of "+j+" exceeded",Le.ERR_BAD_RESPONSE,t,U);case 9:return re=v&&("stream"===R||"response"===R),v&&te.body&&(h||k||re&&L)&&(oe={},["status","statusText","headers"].forEach(function(e){oe[e]=te[e]}),ie=Se.toFiniteNumber(te.headers.get("content-length")),ae=h&&ft(ie,ct(lt(h),!0))||[],ue=E(ae,2),se=ue[0],ce=ue[1],fe=function(e){if(k&&e>j)throw new Le("maxContentLength size of "+j+" exceeded",Le.ERR_BAD_RESPONSE,t,U);se&&se(e)},te=new s(St(te.body,65536,fe,function(){ce&&ce(),L&&L()}),oe)),R=R||"text",e.n=10,g[Se.findKey(g,R)||"text"](te,t);case 10:if(le=e.v,!k||v||re){e.n=11;break}if(null!=le&&("number"==typeof le.byteLength?de=le.byteLength:"number"==typeof le.size?de=le.size:"string"==typeof le&&(de="function"==typeof r?(new r).encode(le).byteLength:le.length)),!("number"==typeof de&&de>j)){e.n=11;break}throw new Le("maxContentLength size of "+j+" exceeded",Le.ERR_BAD_RESPONSE,t,U);case 11:return!re&&L&&L(),e.n=12,new Promise(function(e,n){st(e,n,{data:le,headers:De.from(te.headers),status:te.status,statusText:te.statusText,config:t,request:U})});case 12:return e.a(2,e.v);case 13:if(e.p=13,ve=e.v,L&&L(),!(D&&D.aborted&&D.reason instanceof Le)){e.n=14;break}throw(pe=D.reason).config=t,U&&(pe.request=U),ve!==pe&&(pe.cause=ve),pe;case 14:if(!ve||"TypeError"!==ve.name||!/Load failed|fetch/i.test(ve.message)){e.n=15;break}throw Object.assign(new Le("Network Error",Le.ERR_NETWORK,t,U,ve&&ve.response),{cause:ve.cause||ve});case 15:throw Le.from(ve,ve&&ve.code,t,U,ve&&ve.response);case 16:return e.a(2)}},e,null,[[1,13]])}));return function(t){return e.apply(this,arguments)}}()},Nt=new Map,Dt=function(e){for(var t,n,r=e&&e.env||{},o=r.fetch,i=[r.Request,r.Response,o],a=i.length,u=Nt;a--;)t=i[a],void 0===(n=u.get(t))&&u.set(t,n=a?new Map:Ct(r)),u=n;return n};Dt();var Ut={http:null,xhr:gt,fetch:{get:Dt}};Se.forEach(Ut,function(e,t){if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});var Lt=function(e){return"- ".concat(e)},Ft=function(e){return Se.isFunction(e)||null===e||!1===e};var Bt={getAdapter:function(e,t){for(var n,r,o=(e=Se.isArray(e)?e:[e]).length,i={},a=0;a<o;a++){var u=void 0;if(r=n=e[a],!Ft(n)&&void 0===(r=Ut[(u=String(n)).toLowerCase()]))throw new Le("Unknown adapter '".concat(u,"'"));if(r&&(Se.isFunction(r)||(r=r.get(t))))break;i[u||"#"+a]=r}if(!r){var s=Object.entries(i).map(function(e){var t=E(e,2),n=t[0],r=t[1];return"adapter ".concat(n," ")+(!1===r?"is not supported by the environment":"is not available in the build")}),c=o?s.length>1?"since :\n"+s.map(Lt).join("\n"):" "+Lt(s[0]):"as no adapter specified";throw new Le("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return r},adapters:Ut};function It(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ut(null,e)}function qt(e){return It(e),e.headers=De.from(e.headers),e.data=it.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Bt.getAdapter(e.adapter||ot.adapter,e)(e).then(function(t){It(e),e.response=t;try{t.data=it.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=De.from(t.headers),t},function(t){if(!at(t)&&(It(e),t&&t.response)){e.response=t.response;try{t.response.data=it.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=De.from(t.response.headers)}return Promise.reject(t)})}var Mt={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){Mt[e]=function(n){return _(n)===e||"a"+(t<1?"n ":" ")+e}});var zt={};Mt.transitional=function(e,t,n){function r(e,t){return"[Axios v"+At+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,o,i){if(!1===e)throw new Le(r(o," has been removed"+(t?" in "+t:"")),Le.ERR_DEPRECATED);return t&&!zt[o]&&(zt[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},Mt.spelling=function(e){return function(t,n){return console.warn("".concat(n," is likely a misspelling of ").concat(e)),!0}};var Ht={assertOptions:function(e,t,n){if("object"!==_(e))throw new Le("options must be an object",Le.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(a){var u=e[i],s=void 0===u||a(u,i,e);if(!0!==s)throw new Le("option "+i+" must be "+s,Le.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Le("Unknown option "+i,Le.ERR_BAD_OPTION)}},validators:Mt},Wt=Ht.validators,Jt=function(){return l(function e(t){c(this,e),this.defaults=t||{},this.interceptors={request:new Ve,response:new Ve}},[{key:"request",value:(e=a(m().m(function e(t,n){var r,o,i,a,u,s;return m().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,this._request(t,n);case 1:return e.a(2,e.v);case 2:if(e.p=2,(s=e.v)instanceof Error){r={},Error.captureStackTrace?Error.captureStackTrace(r):r=new Error,o=function(){if(!r.stack)return"";var e=r.stack.indexOf("\n");return-1===e?"":r.stack.slice(e+1)}();try{s.stack?o&&(i=o.indexOf("\n"),a=-1===i?-1:o.indexOf("\n",i+1),u=-1===a?"":o.slice(a+1),String(s.stack).endsWith(u)||(s.stack+="\n"+o)):s.stack=o}catch(e){}}throw s;case 3:return e.a(2)}},e,this,[[0,2]])})),function(t,n){return e.apply(this,arguments)})},{key:"_request",value:function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{};var n=t=vt(this.defaults,t),r=n.transitional,o=n.paramsSerializer,i=n.headers;void 0!==r&&Ht.assertOptions(r,{silentJSONParsing:Wt.transitional(Wt.boolean),forcedJSONParsing:Wt.transitional(Wt.boolean),clarifyTimeoutError:Wt.transitional(Wt.boolean),legacyInterceptorReqResOrdering:Wt.transitional(Wt.boolean),advertiseZstdAcceptEncoding:Wt.transitional(Wt.boolean)},!1),null!=o&&(Se.isFunction(o)?t.paramsSerializer={serialize:o}:Ht.assertOptions(o,{encode:Wt.function,serialize:Wt.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Ht.assertOptions(t,{baseUrl:Wt.spelling("baseURL"),withXsrfToken:Wt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();var a=i&&Se.merge(i.common,i[t.method]);i&&Se.forEach(["delete","get","head","post","put","patch","query","common"],function(e){delete i[e]}),t.headers=De.concat(a,i);var u=[],s=!0;this.interceptors.request.forEach(function(e){if("function"!=typeof e.runWhen||!1!==e.runWhen(t)){s=s&&e.synchronous;var n=t.transitional||Xe;n&&n.legacyInterceptorReqResOrdering?u.unshift(e.fulfilled,e.rejected):u.push(e.fulfilled,e.rejected)}});var c,f=[];this.interceptors.response.forEach(function(e){f.push(e.fulfilled,e.rejected)});var l,d=0;if(!s){var p=[qt.bind(this),void 0];for(p.unshift.apply(p,u),p.push.apply(p,f),l=p.length,c=Promise.resolve(t);d<l;)c=c.then(p[d++],p[d++]);return c}l=u.length;for(var h=t;d<l;){var y=u[d++],v=u[d++];try{h=y(h)}catch(e){v.call(this,e);break}}try{c=qt.call(this,h)}catch(e){return Promise.reject(e)}for(d=0,l=f.length;d<l;)c=c.then(f[d++],f[d++]);return c}},{key:"getUri",value:function(e){return Ke(ht((e=vt(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}]);var e}();Se.forEach(["delete","get","head","options"],function(e){Jt.prototype[e]=function(t,n){return this.request(vt(n||{},{method:e,url:t,data:(n||{}).data}))}}),Se.forEach(["post","put","patch","query"],function(e){function t(t){return function(n,r,o){return this.request(vt(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Jt.prototype[e]=t(),"query"!==e&&(Jt.prototype[e+"Form"]=t(!0))});var Kt=function(){function e(t){if(c(this,e),"function"!=typeof t)throw new TypeError("executor must be a function.");var n;this.promise=new Promise(function(e){n=e});var r=this;this.promise.then(function(e){if(r._listeners){for(var t=r._listeners.length;t-- >0;)r._listeners[t](e);r._listeners=null}}),this.promise.then=function(e){var t,n=new Promise(function(e){r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},t(function(e,t,o){r.reason||(r.reason=new ut(e,t,o),n(r.reason))})}return l(e,[{key:"throwIfRequested",value:function(){if(this.reason)throw this.reason}},{key:"subscribe",value:function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}},{key:"unsubscribe",value:function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}}},{key:"toAbortSignal",value:function(){var e=this,t=new AbortController,n=function(e){t.abort(e)};return this.subscribe(n),t.signal.unsubscribe=function(){return e.unsubscribe(n)},t.signal}}],[{key:"source",value:function(){var t;return{token:new e(function(e){t=e}),cancel:t}}}])}();var Vt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Vt).forEach(function(e){var t=E(e,2),n=t[0],r=t[1];Vt[r]=n});var Xt=function e(t){var n=new Jt(t),r=k(Jt.prototype.request,n);return Se.extend(r,Jt.prototype,n,{allOwnKeys:!0}),Se.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(vt(t,n))},r}(ot);return Xt.Axios=Jt,Xt.CanceledError=ut,Xt.CancelToken=Kt,Xt.isCancel=at,Xt.VERSION=At,Xt.toFormData=Me,Xt.AxiosError=Le,Xt.Cancel=Xt.CanceledError,Xt.all=function(e){return Promise.all(e)},Xt.spread=function(e){return function(t){return e.apply(null,t)}},Xt.isAxiosError=function(e){return Se.isObject(e)&&!0===e.isAxiosError},Xt.mergeConfig=vt,Xt.AxiosHeaders=De,Xt.formToJSON=function(e){return nt(Se.isHTMLForm(e)?new FormData(e):e)},Xt.getAdapter=Bt.getAdapter,Xt.HttpStatusCode=Vt,Xt.default=Xt,Xt}); | ||
| //# sourceMappingURL=axios.min.js.map |
@@ -1,3 +0,3 @@ | ||
| /*! Axios v1.16.1 Copyright (c) 2026 Matt Zabriskie and contributors */ | ||
| function e(e,t){return function(){return e.apply(t,arguments)}}const{toString:t}=Object.prototype,{getPrototypeOf:n}=Object,{iterator:r,toStringTag:o}=Symbol,s=(i=Object.create(null),e=>{const n=t.call(e);return i[n]||(i[n]=n.slice(8,-1).toLowerCase())});var i;const a=e=>(e=e.toLowerCase(),t=>s(t)===e),c=e=>t=>typeof t===e,{isArray:l}=Array,u=c("undefined");function f(e){return null!==e&&!u(e)&&null!==e.constructor&&!u(e.constructor)&&h(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const d=a("ArrayBuffer");const p=c("string"),h=c("function"),m=c("number"),b=e=>null!==e&&"object"==typeof e,y=e=>{if("object"!==s(e))return!1;const t=n(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||o in e||r in e)},g=a("Date"),w=a("File"),E=a("Blob"),R=a("FileList");const O="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},S=void 0!==O.FormData?O.FormData:void 0,A=a("URLSearchParams"),[_,T,v,C]=["ReadableStream","Request","Response","Headers"].map(a);function x(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),l(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(f(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let i;for(r=0;r<s;r++)i=o[r],t.call(null,e[i],i,e)}}function N(e,t){if(f(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const P="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,j=e=>!u(e)&&e!==P;const D=(U="undefined"!=typeof Uint8Array&&n(Uint8Array),e=>U&&e instanceof U);var U;const L=a("HTMLFormElement"),F=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),B=a("RegExp"),k=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};x(n,(n,o)=>{let s;!1!==(s=t(n,o,e))&&(r[o]=s||n)}),Object.defineProperties(e,r)};const q=a("AsyncFunction"),I=(M="function"==typeof setImmediate,z=h(P.postMessage),M?setImmediate:z?(H=`axios@${Math.random()}`,W=[],P.addEventListener("message",({source:e,data:t})=>{e===P&&t===H&&W.length&&W.shift()()},!1),e=>{W.push(e),P.postMessage(H,"*")}):e=>setTimeout(e));var M,z,H,W;const J="undefined"!=typeof queueMicrotask?queueMicrotask.bind(P):"undefined"!=typeof process&&process.nextTick||I;var V={isArray:l,isArrayBuffer:d,isBuffer:f,isFormData:e=>{if(!e)return!1;if(S&&e instanceof S)return!0;const t=n(e);if(!t||t===Object.prototype)return!1;if(!h(e.append))return!1;const r=s(e);return"formdata"===r||"object"===r&&h(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&d(e.buffer),t},isString:p,isNumber:m,isBoolean:e=>!0===e||!1===e,isObject:b,isPlainObject:y,isEmptyObject:e=>{if(!b(e)||f(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:_,isRequest:T,isResponse:v,isHeaders:C,isUndefined:u,isDate:g,isFile:w,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:E,isRegExp:B,isFunction:h,isStream:e=>b(e)&&h(e.pipe),isURLSearchParams:A,isTypedArray:D,isFileList:R,forEach:x,merge:function e(...t){const{caseless:n,skipUndefined:r}=j(this)&&this||{},o={},s=(t,s)=>{if("__proto__"===s||"constructor"===s||"prototype"===s)return;const i=n&&N(o,s)||s,a=F(o,i)?o[i]:void 0;y(a)&&y(t)?o[i]=e(a,t):y(t)?o[i]=e({},t):l(t)?o[i]=t.slice():r&&u(t)||(o[i]=t)};for(let e=0,n=t.length;e<n;e++)t[e]&&x(t[e],s);return o},extend:(t,n,r,{allOwnKeys:o}={})=>(x(n,(n,o)=>{r&&h(n)?Object.defineProperty(t,o,{__proto__:null,value:e(n,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,o,{__proto__:null,value:n,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:o}),t),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,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:(e,t,r,o)=>{let s,i,a;const c={};if(t=t||{},null==e)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)a=s[i],o&&!o(a,e,t)||c[a]||(t[a]=e[a],c[a]=!0);e=!1!==r&&n(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:a,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(l(e))return e;let t=e.length;if(!m(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[r]).call(e);let o;for(;(o=n.next())&&!o.done;){const n=o.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:L,hasOwnProperty:F,hasOwnProp:F,reduceDescriptors:k,freezeMethods:e=>{k(e,(t,n)=>{if(h(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];h(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return l(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:N,global:P,isContextDefined:j,isSpecCompliantForm:function(e){return!!(e&&h(e.append)&&"FormData"===e[o]&&e[r])},toJSONObject:e=>{const t=new WeakSet,n=e=>{if(b(e)){if(t.has(e))return;if(f(e))return e;if(!("toJSON"in e)){t.add(e);const r=l(e)?[]:{};return x(e,(e,t)=>{const o=n(e);!u(o)&&(r[t]=o)}),t.delete(e),r}}return e};return n(e)},isAsyncFn:q,isThenable:e=>e&&(b(e)||h(e))&&h(e.then)&&h(e.catch),setImmediate:I,asap:J,isIterable:e=>null!=e&&h(e[r])};const $=V.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const K=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),X=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function G(e,t){return V.isArray(e)?e.map(e=>G(e,t)):function(e){let t=0,n=e.length;for(;t<n;){const n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){const t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}(String(e).replace(t,""))}function Q(e){const t=Object.create(null);return V.forEach(e.toJSON(),(e,n)=>{t[n]=(e=>G(e,X))(e)}),t}const Y=Symbol("internals");function Z(e){return e&&String(e).trim().toLowerCase()}function ee(e){return!1===e||null==e?e:V.isArray(e)?e.map(ee):(e=>G(e,K))(String(e))}function te(e,t,n,r,o){return V.isFunction(r)?r.call(this,t,n):(o&&(t=n),V.isString(t)?V.isString(r)?-1!==t.indexOf(r):V.isRegExp(r)?r.test(t):void 0:void 0)}let ne=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Z(t);if(!o)throw new Error("header name must be a non-empty string");const s=V.findKey(r,o);(!s||void 0===r[s]||!0===n||void 0===n&&!1!==r[s])&&(r[s||t]=ee(e))}const s=(e,t)=>V.forEach(e,(e,n)=>o(e,n,t));if(V.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if(V.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))s((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&$[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(V.isObject(e)&&V.isIterable(e)){let n,r,o={};for(const t of e){if(!V.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?V.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}s(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=Z(e)){const n=V.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(V.isFunction(t))return t.call(this,e,n);if(V.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Z(e)){const n=V.findKey(this,e);return!(!n||void 0===this[n]||t&&!te(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Z(e)){const o=V.findKey(n,e);!o||t&&!te(0,n[o],o,t)||(delete n[o],r=!0)}}return V.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!te(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return V.forEach(this,(r,o)=>{const s=V.findKey(n,o);if(s)return t[s]=ee(r),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();i!==o&&delete t[o],t[i]=ee(r),n[i]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return V.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&V.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[Y]=this[Y]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Z(e);t[r]||(!function(e,t){const n=V.toCamelCase(" "+t);["get","set","has"].forEach(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 V.isArray(e)?e.forEach(r):r(e),this}};ne.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),V.reduceDescriptors(ne.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),V.freezeMethods(ne);function re(e,t){const n=new Set(t.map(e=>String(e).toLowerCase())),r=[],o=e=>{if(null===e||"object"!=typeof e)return e;if(V.isBuffer(e))return e;if(-1!==r.indexOf(e))return;let t;if(e instanceof ne&&(e=e.toJSON()),r.push(e),V.isArray(e))t=[],e.forEach((e,n)=>{const r=o(e);V.isUndefined(r)||(t[n]=r)});else{if(!V.isPlainObject(e)&&function(e){if(V.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(V.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(e))return r.pop(),e;t=Object.create(null);for(const[r,s]of Object.entries(e)){const e=n.has(r.toLowerCase())?"[REDACTED ****]":o(s);V.isUndefined(e)||(t[r]=e)}}return r.pop(),t};return o(e)}let oe=class e extends Error{static from(t,n,r,o,s,i){const a=new e(t.message,n||t.code,r,o,s);return a.cause=t,a.name=t.name,null!=t.status&&null==a.status&&(a.status=t.status),i&&Object.assign(a,i),a}constructor(e,t,n,r,o){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status)}toJSON(){const e=this.config,t=e&&V.hasOwnProp(e,"redact")?e.redact:void 0,n=V.isArray(t)&&t.length>0?re(e,t):V.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}}};oe.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",oe.ERR_BAD_OPTION="ERR_BAD_OPTION",oe.ECONNABORTED="ECONNABORTED",oe.ETIMEDOUT="ETIMEDOUT",oe.ECONNREFUSED="ECONNREFUSED",oe.ERR_NETWORK="ERR_NETWORK",oe.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",oe.ERR_DEPRECATED="ERR_DEPRECATED",oe.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",oe.ERR_BAD_REQUEST="ERR_BAD_REQUEST",oe.ERR_CANCELED="ERR_CANCELED",oe.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",oe.ERR_INVALID_URL="ERR_INVALID_URL",oe.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";function se(e){return V.isPlainObject(e)||V.isArray(e)}function ie(e){return V.endsWith(e,"[]")?e.slice(0,-2):e}function ae(e,t,n){return e?e.concat(t).map(function(e,t){return e=ie(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const ce=V.toFlatObject(V,{},null,function(e){return/^is[A-Z]/.test(e)});function le(e,t,n){if(!V.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=V.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!V.isUndefined(t[e])})).metaTokens,o=n.visitor||f,s=n.dots,i=n.indexes,a=n.Blob||"undefined"!=typeof Blob&&Blob,c=void 0===n.maxDepth?100:n.maxDepth,l=a&&V.isSpecCompliantForm(t);if(!V.isFunction(o))throw new TypeError("visitor must be a function");function u(e){if(null===e)return"";if(V.isDate(e))return e.toISOString();if(V.isBoolean(e))return e.toString();if(!l&&V.isBlob(e))throw new oe("Blob is not supported. Use a Buffer instead.");return V.isArrayBuffer(e)||V.isTypedArray(e)?l&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function f(e,n,o){let a=e;if(V.isReactNative(t)&&V.isReactNativeBlob(e))return t.append(ae(o,n,s),u(e)),!1;if(e&&!o&&"object"==typeof e)if(V.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(V.isArray(e)&&function(e){return V.isArray(e)&&!e.some(se)}(e)||(V.isFileList(e)||V.endsWith(n,"[]"))&&(a=V.toArray(e)))return n=ie(n),a.forEach(function(e,r){!V.isUndefined(e)&&null!==e&&t.append(!0===i?ae([n],r,s):null===i?n:n+"[]",u(e))}),!1;return!!se(e)||(t.append(ae(o,n,s),u(e)),!1)}const d=[],p=Object.assign(ce,{defaultVisitor:f,convertValue:u,isVisitable:se});if(!V.isObject(e))throw new TypeError("data must be an object");return function e(n,r,s=0){if(!V.isUndefined(n)){if(s>c)throw new oe("Object is too deeply nested ("+s+" levels). Max depth: "+c,oe.ERR_FORM_DATA_DEPTH_EXCEEDED);if(-1!==d.indexOf(n))throw Error("Circular reference detected in "+r.join("."));d.push(n),V.forEach(n,function(n,i){!0===(!(V.isUndefined(n)||null===n)&&o.call(t,n,V.isString(i)?i.trim():i,r,p))&&e(n,r?r.concat(i):[i],s+1)}),d.pop()}}(e),t}function ue(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function fe(e,t){this._pairs=[],e&&le(e,this,t)}const de=fe.prototype;function pe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function he(e,t,n){if(!t)return e;const r=n&&n.encode||pe,o=V.isFunction(n)?{serialize:n}:n,s=o&&o.serialize;let i;if(i=s?s(t,o):V.isURLSearchParams(t)?t.toString():new fe(t,o).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}de.append=function(e,t){this._pairs.push([e,t])},de.toString=function(e){const t=e?function(t){return e.call(this,t,ue)}:ue;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class me{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){V.forEach(this.handlers,function(t){null!==t&&e(t)})}}var be={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},ye={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:fe,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const ge="undefined"!=typeof window&&"undefined"!=typeof document,we="object"==typeof navigator&&navigator||void 0,Ee=ge&&(!we||["ReactNative","NativeScript","NS"].indexOf(we.product)<0),Re="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Oe=ge&&window.location.href||"http://localhost";var Se={...Object.freeze({__proto__:null,hasBrowserEnv:ge,hasStandardBrowserEnv:Ee,hasStandardBrowserWebWorkerEnv:Re,navigator:we,origin:Oe}),...ye};function Ae(e){function t(e,n,r,o){let s=e[o++];if("__proto__"===s)return!0;const i=Number.isFinite(+s),a=o>=e.length;if(s=!s&&V.isArray(r)?r.length:s,a)return V.hasOwnProp(r,s)?r[s]=V.isArray(r[s])?r[s].concat(n):[r[s],n]:r[s]=n,!i;V.hasOwnProp(r,s)&&V.isObject(r[s])||(r[s]=[]);return t(e,n,r[s],o)&&V.isArray(r[s])&&(r[s]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],t[s]=e[s];return t}(r[s])),!i}if(V.isFormData(e)&&V.isFunction(e.entries)){const n={};return V.forEachEntry(e,(e,r)=>{t(function(e){return V.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null}const _e=(e,t)=>null!=e&&V.hasOwnProp(e,t)?e[t]:void 0;const Te={transitional:be,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=V.isObject(e);o&&V.isHTMLForm(e)&&(e=new FormData(e));if(V.isFormData(e))return r?JSON.stringify(Ae(e)):e;if(V.isArrayBuffer(e)||V.isBuffer(e)||V.isStream(e)||V.isFile(e)||V.isBlob(e)||V.isReadableStream(e))return e;if(V.isArrayBufferView(e))return e.buffer;if(V.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(o){const t=_e(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return le(e,new Se.classes.URLSearchParams,{visitor:function(e,t,n,r){return Se.isNode&&V.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,t).toString();if((s=V.isFileList(e))||n.indexOf("multipart/form-data")>-1){const n=_e(this,"env"),r=n&&n.FormData;return le(s?{"files[]":e}:e,r&&new r,t)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(V.isString(e))try{return(t||JSON.parse)(e),V.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=_e(this,"transitional")||Te.transitional,n=t&&t.forcedJSONParsing,r=_e(this,"responseType"),o="json"===r;if(V.isResponse(e)||V.isReadableStream(e))return e;if(e&&V.isString(e)&&(n&&!r||o)){const n=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e,_e(this,"parseReviver"))}catch(e){if(n){if("SyntaxError"===e.name)throw oe.from(e,oe.ERR_BAD_RESPONSE,this,null,_e(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Se.classes.FormData,Blob:Se.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function ve(e,t){const n=this||Te,r=t||n,o=ne.from(r.headers);let s=r.data;return V.forEach(e,function(e){s=e.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function Ce(e){return!(!e||!e.__CANCEL__)}V.forEach(["delete","get","head","post","put","patch","query"],e=>{Te.headers[e]={}});let xe=class extends oe{constructor(e,t,n){super(null==e?"canceled":e,oe.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function Ne(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new oe("Request failed with status code "+n.status,n.status>=400&&n.status<500?oe.ERR_BAD_REQUEST:oe.ERR_BAD_RESPONSE,n.config,n.request,n)):e(n)}const Pe=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,s=0,i=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),l=r[i];o||(o=c),n[s]=a,r[s]=c;let u=i,f=0;for(;u!==s;)f+=n[u++],u%=e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),c-o<t)return;const d=l&&c-l;return d?Math.round(1e3*f/d):void 0}}(50,250);return function(e,t){let n,r,o=0,s=1e3/t;const i=(t,s=Date.now())=>{o=s,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),a=t-o;a>=s?i(e,t):(n=e,r||(r=setTimeout(()=>{r=null,i(n)},s-a)))},()=>n&&i(n)]}(n=>{if(!n||"number"!=typeof n.loaded)return;const s=n.loaded,i=n.lengthComputable?n.total:void 0,a=null!=i?Math.min(s,i):s,c=Math.max(0,a-r),l=o(c);r=Math.max(r,a);e({loaded:a,total:i,progress:i?a/i:void 0,bytes:c,rate:l||void 0,estimated:l&&i?(i-a)/l:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0})},n)},je=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},De=e=>(...t)=>V.asap(()=>e(...t));var Ue=Se.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Se.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Se.origin),Se.navigator&&/(msie|trident)/i.test(Se.navigator.userAgent)):()=>!0,Le=Se.hasStandardBrowserEnv?{write(e,t,n,r,o,s,i){if("undefined"==typeof document)return;const a=[`${e}=${encodeURIComponent(t)}`];V.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),V.isString(r)&&a.push(`path=${r}`),V.isString(o)&&a.push(`domain=${o}`),!0===s&&a.push("secure"),V.isString(i)&&a.push(`SameSite=${i}`),document.cookie=a.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const 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(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function Fe(e,t,n){let r=!("string"==typeof(o=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o));var o;return e&&(r||!1===n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Be=e=>e instanceof ne?{...e}:e;function ke(e,t){t=t||{};const n=Object.create(null);function r(e,t,n,r){return V.isPlainObject(e)&&V.isPlainObject(t)?V.merge.call({caseless:r},e,t):V.isPlainObject(t)?V.merge({},t):V.isArray(t)?t.slice():t}function o(e,t,n,o){return V.isUndefined(t)?V.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function s(e,t){if(!V.isUndefined(t))return r(void 0,t)}function i(e,t){return V.isUndefined(t)?V.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,o,s){return V.hasOwnProp(t,s)?r(n,o):V.hasOwnProp(e,s)?r(void 0,n):void 0}Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});const c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,allowedSocketPaths:i,responseEncoding:i,validateStatus:a,headers:(e,t,n)=>o(Be(e),Be(t),0,!0)};return V.forEach(Object.keys({...e,...t}),function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;const s=V.hasOwnProp(c,r)?c[r]:o,i=s(V.hasOwnProp(e,r)?e[r]:void 0,V.hasOwnProp(t,r)?t[r]:void 0,r);V.isUndefined(i)&&s!==a||(n[r]=i)}),n}const qe=["content-type","content-length"];var Ie=e=>{const t=ke({},e),n=e=>V.hasOwnProp(t,e)?t[e]:void 0,r=n("data");let o=n("withXSRFToken");const s=n("xsrfHeaderName"),i=n("xsrfCookieName");let a=n("headers");const c=n("auth"),l=n("baseURL"),u=n("allowAbsoluteUrls"),f=n("url");var d;if(t.headers=a=ne.from(a),t.url=he(Fe(l,f,u),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?(d=c.password,encodeURIComponent(d).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16)))):""))),V.isFormData(r)&&(Se.hasStandardBrowserEnv||Se.hasStandardBrowserWebWorkerEnv?a.setContentType(void 0):V.isFunction(r.getHeaders)&&function(e,t,n){"content-only"===n?Object.entries(t).forEach(([t,n])=>{qe.includes(t.toLowerCase())&&e.set(t,n)}):e.set(t)}(a,r.getHeaders(),n("formDataHeaderPolicy"))),Se.hasStandardBrowserEnv){V.isFunction(o)&&(o=o(t));if(!0===o||null==o&&Ue(t.url)){const e=s&&i&&Le.read(i);e&&a.set(s,e)}}return t};var Me="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=Ie(e);let o=r.data;const s=ne.from(r.headers).normalize();let i,a,c,l,u,{responseType:f,onUploadProgress:d,onDownloadProgress:p}=r;function h(){l&&l(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(i),r.signal&&r.signal.removeEventListener("abort",i)}let m=new XMLHttpRequest;function b(){if(!m)return;const r=ne.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Ne(function(e){t(e),h()},function(e){n(e),h()},{data:f&&"text"!==f&&"json"!==f?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=b:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&m.responseURL.startsWith("file:"))&&setTimeout(b)},m.onabort=function(){m&&(n(new oe("Request aborted",oe.ECONNABORTED,e,m)),h(),m=null)},m.onerror=function(t){const r=t&&t.message?t.message:"Network Error",o=new oe(r,oe.ERR_NETWORK,e,m);o.event=t||null,n(o),h(),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||be;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new oe(t,o.clarifyTimeoutError?oe.ETIMEDOUT:oe.ECONNABORTED,e,m)),h(),m=null},void 0===o&&s.setContentType(null),"setRequestHeader"in m&&V.forEach(Q(s),function(e,t){m.setRequestHeader(t,e)}),V.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),f&&"json"!==f&&(m.responseType=r.responseType),p&&([c,u]=Pe(p,!0),m.addEventListener("progress",c)),d&&m.upload&&([a,l]=Pe(d),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",l)),(r.cancelToken||r.signal)&&(i=t=>{m&&(n(!t||t.type?new xe(null,e,m):t),m.abort(),h(),m=null)},r.cancelToken&&r.cancelToken.subscribe(i),r.signal&&(r.signal.aborted?i():r.signal.addEventListener("abort",i)));const y=function(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}(r.url);!y||Se.protocols.includes(y)?m.send(o||null):n(new oe("Unsupported protocol "+y+":",oe.ERR_BAD_REQUEST,e))})};const ze=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const o=function(e){if(!r){r=!0,i();const t=e instanceof Error?e:this.reason;n.abort(t instanceof oe?t:new xe(t instanceof Error?t.message:t))}};let s=t&&setTimeout(()=>{s=null,o(new oe(`timeout of ${t}ms exceeded`,oe.ETIMEDOUT))},t);const i=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:a}=n;return a.unsubscribe=()=>V.asap(i),a},He=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},We=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},Je=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of We(e))yield*He(n,t)}(e,t);let s,i=0,a=e=>{s||(s=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return a(),void e.close();let s=r.byteLength;if(n){let e=i+=s;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw a(e),e}},cancel:e=>(a(e),o.return())},{highWaterMark:2})};const Ve="1.16.1",{isFunction:$e}=V,Ke=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Xe=e=>{const t=void 0!==V.global&&null!==V.global?V.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=V.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:o,Request:s,Response:i}=e,a=o?$e(o):"function"==typeof fetch,c=$e(s),l=$e(i);if(!a)return!1;const u=a&&$e(n),f=a&&("function"==typeof r?(d=new r,e=>d.encode(e)):async e=>new Uint8Array(await new s(e).arrayBuffer()));var d;const p=c&&u&&Ke(()=>{let e=!1;const t=new s(Se.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}),h=l&&u&&Ke(()=>V.isReadableStream(new i("").body)),m={stream:h&&(e=>e.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!m[e]&&(m[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new oe(`Response type '${e}' is not supported`,oe.ERR_NOT_SUPPORT,n)})});const b=async(e,t)=>{const n=V.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(V.isBlob(e))return e.size;if(V.isSpecCompliantForm(e)){const t=new s(Se.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return V.isArrayBufferView(e)||V.isArrayBuffer(e)?e.byteLength:(V.isURLSearchParams(e)&&(e+=""),V.isString(e)?(await f(e)).byteLength:void 0)})(t):n};return async e=>{let{url:t,method:n,data:a,signal:l,cancelToken:u,timeout:f,onDownloadProgress:d,onUploadProgress:y,responseType:g,headers:w,withCredentials:E="same-origin",fetchOptions:R,maxContentLength:O,maxBodyLength:S}=Ie(e);const A=V.isNumber(O)&&O>-1,_=V.isNumber(S)&&S>-1;let T=o||fetch;g=g?(g+"").toLowerCase():"text";let v=ze([l,u&&u.toAbortSignal()],f),C=null;const x=v&&v.unsubscribe&&(()=>{v.unsubscribe()});let N;try{if(A&&"string"==typeof t&&t.startsWith("data:")){const n=function(e){if(!e||"string"!=typeof e)return 0;if(!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let e=r.length;const t=r.length;for(let n=0;n<t;n++)if(37===r.charCodeAt(n)&&n+2<t){const t=r.charCodeAt(n+1),o=r.charCodeAt(n+2);(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102)&&(o>=48&&o<=57||o>=65&&o<=70||o>=97&&o<=102)&&(e-=2,n+=2)}let n=0,o=t-1;const s=e=>e>=2&&37===r.charCodeAt(e-2)&&51===r.charCodeAt(e-1)&&(68===r.charCodeAt(e)||100===r.charCodeAt(e));o>=0&&(61===r.charCodeAt(o)?(n++,o--):s(o)&&(n++,o-=3)),1===n&&o>=0&&(61===r.charCodeAt(o)||s(o))&&n++;const i=3*Math.floor(e/4)-(n||0);return i>0?i:0}if("undefined"!=typeof Buffer&&"function"==typeof Buffer.byteLength)return Buffer.byteLength(r,"utf8");let o=0;for(let e=0,t=r.length;e<t;e++){const n=r.charCodeAt(e);if(n<128)o+=1;else if(n<2048)o+=2;else if(n>=55296&&n<=56319&&e+1<t){const t=r.charCodeAt(e+1);t>=56320&&t<=57343?(o+=4,e++):o+=3}else o+=3}return o}(t);if(n>O)throw new oe("maxContentLength size of "+O+" exceeded",oe.ERR_BAD_RESPONSE,e,C)}if(_&&"get"!==n&&"head"!==n){const t=await b(w,a);if("number"==typeof t&&isFinite(t)&&t>S)throw new oe("Request body larger than maxBodyLength limit",oe.ERR_BAD_REQUEST,e,C)}if(y&&p&&"get"!==n&&"head"!==n&&0!==(N=await b(w,a))){let e,n=new s(t,{method:"POST",body:a,duplex:"half"});if(V.isFormData(a)&&(e=n.headers.get("content-type"))&&w.setContentType(e),n.body){const[e,t]=je(N,Pe(De(y)));a=Je(n.body,65536,e,t)}}V.isString(E)||(E=E?"include":"omit");const o=c&&"credentials"in s.prototype;if(V.isFormData(a)){const e=w.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&w.delete("content-type")}w.set("User-Agent","axios/"+Ve,!1);const l={...R,signal:v,method:n.toUpperCase(),headers:Q(w.normalize()),body:a,duplex:"half",credentials:o?E:void 0};C=c&&new s(t,l);let u=await(c?T(C,R):T(t,l));if(A){const t=V.toFiniteNumber(u.headers.get("content-length"));if(null!=t&&t>O)throw new oe("maxContentLength size of "+O+" exceeded",oe.ERR_BAD_RESPONSE,e,C)}const f=h&&("stream"===g||"response"===g);if(h&&u.body&&(d||A||f&&x)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=u[e]});const n=V.toFiniteNumber(u.headers.get("content-length")),[r,o]=d&&je(n,Pe(De(d),!0))||[];let s=0;const a=t=>{if(A&&(s=t,s>O))throw new oe("maxContentLength size of "+O+" exceeded",oe.ERR_BAD_RESPONSE,e,C);r&&r(t)};u=new i(Je(u.body,65536,a,()=>{o&&o(),x&&x()}),t)}g=g||"text";let P=await m[V.findKey(m,g)||"text"](u,e);if(A&&!h&&!f){let t;if(null!=P&&("number"==typeof P.byteLength?t=P.byteLength:"number"==typeof P.size?t=P.size:"string"==typeof P&&(t="function"==typeof r?(new r).encode(P).byteLength:P.length)),"number"==typeof t&&t>O)throw new oe("maxContentLength size of "+O+" exceeded",oe.ERR_BAD_RESPONSE,e,C)}return!f&&x&&x(),await new Promise((t,n)=>{Ne(t,n,{data:P,headers:ne.from(u.headers),status:u.status,statusText:u.statusText,config:e,request:C})})}catch(t){if(x&&x(),v&&v.aborted&&v.reason instanceof oe){const n=v.reason;throw n.config=e,C&&(n.request=C),t!==n&&(n.cause=t),n}if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new oe("Network Error",oe.ERR_NETWORK,e,C,t&&t.response),{cause:t.cause||t});throw oe.from(t,t&&t.code,e,C,t&&t.response)}}},Ge=new Map,Qe=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,s=[r,o,n];let i,a,c=s.length,l=Ge;for(;c--;)i=s[c],a=l.get(i),void 0===a&&l.set(i,a=c?new Map:Xe(t)),l=a;return a};Qe();const Ye={http:null,xhr:Me,fetch:{get:Qe}};V.forEach(Ye,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const Ze=e=>`- ${e}`,et=e=>V.isFunction(e)||null===e||!1===e;var tt={getAdapter:function(e,t){e=V.isArray(e)?e:[e];const{length:n}=e;let r,o;const s={};for(let i=0;i<n;i++){let n;if(r=e[i],o=r,!et(r)&&(o=Ye[(n=String(r)).toLowerCase()],void 0===o))throw new oe(`Unknown adapter '${n}'`);if(o&&(V.isFunction(o)||(o=o.get(t))))break;s[n||"#"+i]=o}if(!o){const e=Object.entries(s).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=n?e.length>1?"since :\n"+e.map(Ze).join("\n"):" "+Ze(e[0]):"as no adapter specified";throw new oe("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return o},adapters:Ye};function nt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new xe(null,e)}function rt(e){nt(e),e.headers=ne.from(e.headers),e.data=ve.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return tt.getAdapter(e.adapter||Te.adapter,e)(e).then(function(t){nt(e),e.response=t;try{t.data=ve.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=ne.from(t.headers),t},function(t){if(!Ce(t)&&(nt(e),t&&t.response)){e.response=t.response;try{t.response.data=ve.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=ne.from(t.response.headers)}return Promise.reject(t)})}const ot={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ot[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const st={};ot.transitional=function(e,t,n){function r(e,t){return"[Axios v"+Ve+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,s)=>{if(!1===e)throw new oe(r(o," has been removed"+(t?" in "+t:"")),oe.ERR_DEPRECATED);return t&&!st[o]&&(st[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,s)}},ot.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var it={assertOptions:function(e,t,n){if("object"!=typeof e)throw new oe("options must be an object",oe.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],i=Object.prototype.hasOwnProperty.call(t,s)?t[s]:void 0;if(i){const t=e[s],n=void 0===t||i(t,s,e);if(!0!==n)throw new oe("option "+s+" must be "+n,oe.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new oe("Unknown option "+s,oe.ERR_BAD_OPTION)}},validators:ot};const at=it.validators;let ct=class{constructor(e){this.defaults=e||{},this.interceptors={request:new me,response:new me}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=(()=>{if(!t.stack)return"";const e=t.stack.indexOf("\n");return-1===e?"":t.stack.slice(e+1)})();try{if(e.stack){if(n){const t=n.indexOf("\n"),r=-1===t?-1:n.indexOf("\n",t+1),o=-1===r?"":n.slice(r+1);String(e.stack).endsWith(o)||(e.stack+="\n"+n)}}else e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=ke(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&it.assertOptions(n,{silentJSONParsing:at.transitional(at.boolean),forcedJSONParsing:at.transitional(at.boolean),clarifyTimeoutError:at.transitional(at.boolean),legacyInterceptorReqResOrdering:at.transitional(at.boolean)},!1),null!=r&&(V.isFunction(r)?t.paramsSerializer={serialize:r}:it.assertOptions(r,{encode:at.function,serialize:at.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),it.assertOptions(t,{baseUrl:at.spelling("baseURL"),withXsrfToken:at.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=o&&V.merge(o.common,o[t.method]);o&&V.forEach(["delete","get","head","post","put","patch","query","common"],e=>{delete o[e]}),t.headers=ne.concat(s,o);const i=[];let a=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;a=a&&e.synchronous;const n=t.transitional||be;n&&n.legacyInterceptorReqResOrdering?i.unshift(e.fulfilled,e.rejected):i.push(e.fulfilled,e.rejected)});const c=[];let l;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let u,f=0;if(!a){const e=[rt.bind(this),void 0];for(e.unshift(...i),e.push(...c),u=e.length,l=Promise.resolve(t);f<u;)l=l.then(e[f++],e[f++]);return l}u=i.length;let d=t;for(;f<u;){const e=i[f++],t=i[f++];try{d=e(d)}catch(e){t.call(this,e);break}}try{l=rt.call(this,d)}catch(e){return Promise.reject(e)}for(f=0,u=c.length;f<u;)l=l.then(c[f++],c[f++]);return l}getUri(e){return he(Fe((e=ke(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};V.forEach(["delete","get","head","options"],function(e){ct.prototype[e]=function(t,n){return this.request(ke(n||{},{method:e,url:t,data:(n||{}).data}))}}),V.forEach(["post","put","patch","query"],function(e){function t(t){return function(n,r,o){return this.request(ke(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}ct.prototype[e]=t(),"query"!==e&&(ct.prototype[e+"Form"]=t(!0))});const lt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(lt).forEach(([e,t])=>{lt[t]=e});const ut=function t(n){const r=new ct(n),o=e(ct.prototype.request,r);return V.extend(o,ct.prototype,r,{allOwnKeys:!0}),V.extend(o,r,null,{allOwnKeys:!0}),o.create=function(e){return t(ke(n,e))},o}(Te);ut.Axios=ct,ut.CanceledError=xe,ut.CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new xe(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}},ut.isCancel=Ce,ut.VERSION=Ve,ut.toFormData=le,ut.AxiosError=oe,ut.Cancel=ut.CanceledError,ut.all=function(e){return Promise.all(e)},ut.spread=function(e){return function(t){return e.apply(null,t)}},ut.isAxiosError=function(e){return V.isObject(e)&&!0===e.isAxiosError},ut.mergeConfig=ke,ut.AxiosHeaders=ne,ut.formToJSON=e=>Ae(V.isHTMLForm(e)?new FormData(e):e),ut.getAdapter=tt.getAdapter,ut.HttpStatusCode=lt,ut.default=ut;const{Axios:ft,AxiosError:dt,CanceledError:pt,isCancel:ht,CancelToken:mt,VERSION:bt,all:yt,Cancel:gt,isAxiosError:wt,spread:Et,toFormData:Rt,AxiosHeaders:Ot,HttpStatusCode:St,formToJSON:At,getAdapter:_t,mergeConfig:Tt,create:vt}=ut;export{ft as Axios,dt as AxiosError,Ot as AxiosHeaders,gt as Cancel,mt as CancelToken,pt as CanceledError,St as HttpStatusCode,bt as VERSION,yt as all,vt as create,ut as default,At as formToJSON,_t as getAdapter,wt as isAxiosError,ht as isCancel,Tt as mergeConfig,Et as spread,Rt as toFormData}; | ||
| /*! Axios v1.17.0 Copyright (c) 2026 Matt Zabriskie and contributors */ | ||
| function e(e,t){return function(){return e.apply(t,arguments)}}const{toString:t}=Object.prototype,{getPrototypeOf:n}=Object,{iterator:r,toStringTag:o}=Symbol,s=(i=Object.create(null),e=>{const n=t.call(e);return i[n]||(i[n]=n.slice(8,-1).toLowerCase())});var i;const a=e=>(e=e.toLowerCase(),t=>s(t)===e),c=e=>t=>typeof t===e,{isArray:l}=Array,u=c("undefined");function f(e){return null!==e&&!u(e)&&null!==e.constructor&&!u(e.constructor)&&h(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const d=a("ArrayBuffer");const p=c("string"),h=c("function"),m=c("number"),b=e=>null!==e&&"object"==typeof e,y=e=>{if("object"!==s(e))return!1;const t=n(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||o in e||r in e)},g=a("Date"),w=a("File"),E=a("Blob"),O=a("FileList");const R="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},S=void 0!==R.FormData?R.FormData:void 0,A=a("URLSearchParams"),[_,T,v,C]=["ReadableStream","Request","Response","Headers"].map(a);function P(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),l(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(f(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let i;for(r=0;r<s;r++)i=o[r],t.call(null,e[i],i,e)}}function x(e,t){if(f(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const N="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,j=e=>!u(e)&&e!==N;const U=(D="undefined"!=typeof Uint8Array&&n(Uint8Array),e=>D&&e instanceof D);var D;const L=a("HTMLFormElement"),F=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),{propertyIsEnumerable:B}=Object.prototype,k=a("RegExp"),q=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};P(n,(n,o)=>{let s;!1!==(s=t(n,o,e))&&(r[o]=s||n)}),Object.defineProperties(e,r)};const I=a("AsyncFunction"),M=(z="function"==typeof setImmediate,H=h(N.postMessage),z?setImmediate:H?(W=`axios@${Math.random()}`,J=[],N.addEventListener("message",({source:e,data:t})=>{e===N&&t===W&&J.length&&J.shift()()},!1),e=>{J.push(e),N.postMessage(W,"*")}):e=>setTimeout(e));var z,H,W,J;const V="undefined"!=typeof queueMicrotask?queueMicrotask.bind(N):"undefined"!=typeof process&&process.nextTick||M;var $={isArray:l,isArrayBuffer:d,isBuffer:f,isFormData:e=>{if(!e)return!1;if(S&&e instanceof S)return!0;const t=n(e);if(!t||t===Object.prototype)return!1;if(!h(e.append))return!1;const r=s(e);return"formdata"===r||"object"===r&&h(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&d(e.buffer),t},isString:p,isNumber:m,isBoolean:e=>!0===e||!1===e,isObject:b,isPlainObject:y,isEmptyObject:e=>{if(!b(e)||f(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:_,isRequest:T,isResponse:v,isHeaders:C,isUndefined:u,isDate:g,isFile:w,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:E,isRegExp:k,isFunction:h,isStream:e=>b(e)&&h(e.pipe),isURLSearchParams:A,isTypedArray:U,isFileList:O,forEach:P,merge:function e(...t){const{caseless:n,skipUndefined:r}=j(this)&&this||{},o={},s=(t,s)=>{if("__proto__"===s||"constructor"===s||"prototype"===s)return;const i=n&&"string"==typeof s&&x(o,s)||s,a=F(o,i)?o[i]:void 0;y(a)&&y(t)?o[i]=e(a,t):y(t)?o[i]=e({},t):l(t)?o[i]=t.slice():r&&u(t)||(o[i]=t)};for(let e=0,n=t.length;e<n;e++){const n=t[e];if(!n||f(n))continue;if(P(n,s),"object"!=typeof n||l(n))continue;const r=Object.getOwnPropertySymbols(n);for(let e=0;e<r.length;e++){const t=r[e];B.call(n,t)&&s(n[t],t)}}return o},extend:(t,n,r,{allOwnKeys:o}={})=>(P(n,(n,o)=>{r&&h(n)?Object.defineProperty(t,o,{__proto__:null,value:e(n,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,o,{__proto__:null,value:n,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:o}),t),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,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:(e,t,r,o)=>{let s,i,a;const c={};if(t=t||{},null==e)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)a=s[i],o&&!o(a,e,t)||c[a]||(t[a]=e[a],c[a]=!0);e=!1!==r&&n(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:a,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(l(e))return e;let t=e.length;if(!m(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[r]).call(e);let o;for(;(o=n.next())&&!o.done;){const n=o.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:L,hasOwnProperty:F,hasOwnProp:F,reduceDescriptors:q,freezeMethods:e=>{q(e,(t,n)=>{if(h(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];h(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return l(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:x,global:N,isContextDefined:j,isSpecCompliantForm:function(e){return!!(e&&h(e.append)&&"FormData"===e[o]&&e[r])},toJSONObject:e=>{const t=new WeakSet,n=e=>{if(b(e)){if(t.has(e))return;if(f(e))return e;if(!("toJSON"in e)){t.add(e);const r=l(e)?[]:{};return P(e,(e,t)=>{const o=n(e);!u(o)&&(r[t]=o)}),t.delete(e),r}}return e};return n(e)},isAsyncFn:I,isThenable:e=>e&&(b(e)||h(e))&&h(e.then)&&h(e.catch),setImmediate:M,asap:V,isIterable:e=>null!=e&&h(e[r])};const K=$.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const X=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),G=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Q(e,t){return $.isArray(e)?e.map(e=>Q(e,t)):function(e){let t=0,n=e.length;for(;t<n;){const n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){const t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}(String(e).replace(t,""))}function Z(e){const t=Object.create(null);return $.forEach(e.toJSON(),(e,n)=>{t[n]=(e=>Q(e,G))(e)}),t}const Y=Symbol("internals");function ee(e){return e&&String(e).trim().toLowerCase()}function te(e){return!1===e||null==e?e:$.isArray(e)?e.map(te):(e=>Q(e,X))(String(e))}function ne(e,t,n,r,o){return $.isFunction(r)?r.call(this,t,n):(o&&(t=n),$.isString(t)?$.isString(r)?-1!==t.indexOf(r):$.isRegExp(r)?r.test(t):void 0:void 0)}let re=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=ee(t);if(!o)return;const s=$.findKey(r,o);(!s||void 0===r[s]||!0===n||void 0===n&&!1!==r[s])&&(r[s||t]=te(e))}const s=(e,t)=>$.forEach(e,(e,n)=>o(e,n,t));if($.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if($.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))s((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&K[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if($.isObject(e)&&$.isIterable(e)){let n,r,o={};for(const t of e){if(!$.isArray(t))throw new TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?$.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}s(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=ee(e)){const n=$.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if($.isFunction(t))return t.call(this,e,n);if($.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ee(e)){const n=$.findKey(this,e);return!(!n||void 0===this[n]||t&&!ne(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=ee(e)){const o=$.findKey(n,e);!o||t&&!ne(0,n[o],o,t)||(delete n[o],r=!0)}}return $.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!ne(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return $.forEach(this,(r,o)=>{const s=$.findKey(n,o);if(s)return t[s]=te(r),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();i!==o&&delete t[o],t[i]=te(r),n[i]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return $.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&$.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[Y]=this[Y]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=ee(e);t[r]||(!function(e,t){const n=$.toCamelCase(" "+t);["get","set","has"].forEach(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 $.isArray(e)?e.forEach(r):r(e),this}};re.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),$.reduceDescriptors(re.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),$.freezeMethods(re);function oe(e,t){const n=new Set(t.map(e=>String(e).toLowerCase())),r=[],o=e=>{if(null===e||"object"!=typeof e)return e;if($.isBuffer(e))return e;if(-1!==r.indexOf(e))return;let t;if(e instanceof re&&(e=e.toJSON()),r.push(e),$.isArray(e))t=[],e.forEach((e,n)=>{const r=o(e);$.isUndefined(r)||(t[n]=r)});else{if(!$.isPlainObject(e)&&function(e){if($.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if($.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(e))return r.pop(),e;t=Object.create(null);for(const[r,s]of Object.entries(e)){const e=n.has(r.toLowerCase())?"[REDACTED ****]":o(s);$.isUndefined(e)||(t[r]=e)}}return r.pop(),t};return o(e)}let se=class e extends Error{static from(t,n,r,o,s,i){const a=new e(t.message,n||t.code,r,o,s);return a.cause=t,a.name=t.name,null!=t.status&&null==a.status&&(a.status=t.status),i&&Object.assign(a,i),a}constructor(e,t,n,r,o){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status)}toJSON(){const e=this.config,t=e&&$.hasOwnProp(e,"redact")?e.redact:void 0,n=$.isArray(t)&&t.length>0?oe(e,t):$.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}}};se.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",se.ERR_BAD_OPTION="ERR_BAD_OPTION",se.ECONNABORTED="ECONNABORTED",se.ETIMEDOUT="ETIMEDOUT",se.ECONNREFUSED="ECONNREFUSED",se.ERR_NETWORK="ERR_NETWORK",se.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",se.ERR_DEPRECATED="ERR_DEPRECATED",se.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",se.ERR_BAD_REQUEST="ERR_BAD_REQUEST",se.ERR_CANCELED="ERR_CANCELED",se.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",se.ERR_INVALID_URL="ERR_INVALID_URL",se.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";function ie(e){return $.isPlainObject(e)||$.isArray(e)}function ae(e){return $.endsWith(e,"[]")?e.slice(0,-2):e}function ce(e,t,n){return e?e.concat(t).map(function(e,t){return e=ae(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const le=$.toFlatObject($,{},null,function(e){return/^is[A-Z]/.test(e)});function ue(e,t,n){if(!$.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=$.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!$.isUndefined(t[e])})).metaTokens,o=n.visitor||f,s=n.dots,i=n.indexes,a=n.Blob||"undefined"!=typeof Blob&&Blob,c=void 0===n.maxDepth?100:n.maxDepth,l=a&&$.isSpecCompliantForm(t);if(!$.isFunction(o))throw new TypeError("visitor must be a function");function u(e){if(null===e)return"";if($.isDate(e))return e.toISOString();if($.isBoolean(e))return e.toString();if(!l&&$.isBlob(e))throw new se("Blob is not supported. Use a Buffer instead.");return $.isArrayBuffer(e)||$.isTypedArray(e)?l&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function f(e,n,o){let a=e;if($.isReactNative(t)&&$.isReactNativeBlob(e))return t.append(ce(o,n,s),u(e)),!1;if(e&&!o&&"object"==typeof e)if($.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if($.isArray(e)&&function(e){return $.isArray(e)&&!e.some(ie)}(e)||($.isFileList(e)||$.endsWith(n,"[]"))&&(a=$.toArray(e)))return n=ae(n),a.forEach(function(e,r){!$.isUndefined(e)&&null!==e&&t.append(!0===i?ce([n],r,s):null===i?n:n+"[]",u(e))}),!1;return!!ie(e)||(t.append(ce(o,n,s),u(e)),!1)}const d=[],p=Object.assign(le,{defaultVisitor:f,convertValue:u,isVisitable:ie});if(!$.isObject(e))throw new TypeError("data must be an object");return function e(n,r,s=0){if(!$.isUndefined(n)){if(s>c)throw new se("Object is too deeply nested ("+s+" levels). Max depth: "+c,se.ERR_FORM_DATA_DEPTH_EXCEEDED);if(-1!==d.indexOf(n))throw new Error("Circular reference detected in "+r.join("."));d.push(n),$.forEach(n,function(n,i){!0===(!($.isUndefined(n)||null===n)&&o.call(t,n,$.isString(i)?i.trim():i,r,p))&&e(n,r?r.concat(i):[i],s+1)}),d.pop()}}(e),t}function fe(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function de(e,t){this._pairs=[],e&&ue(e,this,t)}const pe=de.prototype;function he(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function me(e,t,n){if(!t)return e;const r=n&&n.encode||he,o=$.isFunction(n)?{serialize:n}:n,s=o&&o.serialize;let i;if(i=s?s(t,o):$.isURLSearchParams(t)?t.toString():new de(t,o).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}pe.append=function(e,t){this._pairs.push([e,t])},pe.toString=function(e){const t=e?function(t){return e.call(this,t,fe)}:fe;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class be{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){$.forEach(this.handlers,function(t){null!==t&&e(t)})}}var ye={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1},ge={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:de,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const we="undefined"!=typeof window&&"undefined"!=typeof document,Ee="object"==typeof navigator&&navigator||void 0,Oe=we&&(!Ee||["ReactNative","NativeScript","NS"].indexOf(Ee.product)<0),Re="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Se=we&&window.location.href||"http://localhost";var Ae={...Object.freeze({__proto__:null,hasBrowserEnv:we,hasStandardBrowserEnv:Oe,hasStandardBrowserWebWorkerEnv:Re,navigator:Ee,origin:Se}),...ge};function _e(e){function t(e,n,r,o){let s=e[o++];if("__proto__"===s)return!0;const i=Number.isFinite(+s),a=o>=e.length;if(s=!s&&$.isArray(r)?r.length:s,a)return $.hasOwnProp(r,s)?r[s]=$.isArray(r[s])?r[s].concat(n):[r[s],n]:r[s]=n,!i;$.hasOwnProp(r,s)&&$.isObject(r[s])||(r[s]=[]);return t(e,n,r[s],o)&&$.isArray(r[s])&&(r[s]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],t[s]=e[s];return t}(r[s])),!i}if($.isFormData(e)&&$.isFunction(e.entries)){const n={};return $.forEachEntry(e,(e,r)=>{t(function(e){return $.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null}const Te=(e,t)=>null!=e&&$.hasOwnProp(e,t)?e[t]:void 0;const ve={transitional:ye,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=$.isObject(e);o&&$.isHTMLForm(e)&&(e=new FormData(e));if($.isFormData(e))return r?JSON.stringify(_e(e)):e;if($.isArrayBuffer(e)||$.isBuffer(e)||$.isStream(e)||$.isFile(e)||$.isBlob(e)||$.isReadableStream(e))return e;if($.isArrayBufferView(e))return e.buffer;if($.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(o){const t=Te(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return ue(e,new Ae.classes.URLSearchParams,{visitor:function(e,t,n,r){return Ae.isNode&&$.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,t).toString();if((s=$.isFileList(e))||n.indexOf("multipart/form-data")>-1){const n=Te(this,"env"),r=n&&n.FormData;return ue(s?{"files[]":e}:e,r&&new r,t)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if($.isString(e))try{return(t||JSON.parse)(e),$.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=Te(this,"transitional")||ve.transitional,n=t&&t.forcedJSONParsing,r=Te(this,"responseType"),o="json"===r;if($.isResponse(e)||$.isReadableStream(e))return e;if(e&&$.isString(e)&&(n&&!r||o)){const n=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e,Te(this,"parseReviver"))}catch(e){if(n){if("SyntaxError"===e.name)throw se.from(e,se.ERR_BAD_RESPONSE,this,null,Te(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ae.classes.FormData,Blob:Ae.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function Ce(e,t){const n=this||ve,r=t||n,o=re.from(r.headers);let s=r.data;return $.forEach(e,function(e){s=e.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function Pe(e){return!(!e||!e.__CANCEL__)}$.forEach(["delete","get","head","post","put","patch","query"],e=>{ve.headers[e]={}});let xe=class extends se{constructor(e,t,n){super(null==e?"canceled":e,se.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function Ne(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new se("Request failed with status code "+n.status,n.status>=400&&n.status<500?se.ERR_BAD_REQUEST:se.ERR_BAD_RESPONSE,n.config,n.request,n)):e(n)}const je=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,s=0,i=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),l=r[i];o||(o=c),n[s]=a,r[s]=c;let u=i,f=0;for(;u!==s;)f+=n[u++],u%=e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),c-o<t)return;const d=l&&c-l;return d?Math.round(1e3*f/d):void 0}}(50,250);return function(e,t){let n,r,o=0,s=1e3/t;const i=(t,s=Date.now())=>{o=s,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),a=t-o;a>=s?i(e,t):(n=e,r||(r=setTimeout(()=>{r=null,i(n)},s-a)))},()=>n&&i(n)]}(n=>{if(!n||"number"!=typeof n.loaded)return;const s=n.loaded,i=n.lengthComputable?n.total:void 0,a=null!=i?Math.min(s,i):s,c=Math.max(0,a-r),l=o(c);r=Math.max(r,a);e({loaded:a,total:i,progress:i?a/i:void 0,bytes:c,rate:l||void 0,estimated:l&&i?(i-a)/l:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0})},n)},Ue=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},De=e=>(...t)=>$.asap(()=>e(...t));var Le=Ae.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ae.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ae.origin),Ae.navigator&&/(msie|trident)/i.test(Ae.navigator.userAgent)):()=>!0,Fe=Ae.hasStandardBrowserEnv?{write(e,t,n,r,o,s,i){if("undefined"==typeof document)return;const a=[`${e}=${encodeURIComponent(t)}`];$.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),$.isString(r)&&a.push(`path=${r}`),$.isString(o)&&a.push(`domain=${o}`),!0===s&&a.push("secure"),$.isString(i)&&a.push(`SameSite=${i}`),document.cookie=a.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const 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(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function Be(e,t,n){let r=!("string"==typeof(o=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o));var o;return e&&(r||!1===n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const ke=e=>e instanceof re?{...e}:e;function qe(e,t){t=t||{};const n=Object.create(null);function r(e,t,n,r){return $.isPlainObject(e)&&$.isPlainObject(t)?$.merge.call({caseless:r},e,t):$.isPlainObject(t)?$.merge({},t):$.isArray(t)?t.slice():t}function o(e,t,n,o){return $.isUndefined(t)?$.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function s(e,t){if(!$.isUndefined(t))return r(void 0,t)}function i(e,t){return $.isUndefined(t)?$.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,o,s){return $.hasOwnProp(t,s)?r(n,o):$.hasOwnProp(e,s)?r(void 0,n):void 0}Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});const c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,allowedSocketPaths:i,responseEncoding:i,validateStatus:a,headers:(e,t,n)=>o(ke(e),ke(t),0,!0)};return $.forEach(Object.keys({...e,...t}),function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;const s=$.hasOwnProp(c,r)?c[r]:o,i=s($.hasOwnProp(e,r)?e[r]:void 0,$.hasOwnProp(t,r)?t[r]:void 0,r);$.isUndefined(i)&&s!==a||(n[r]=i)}),n}const Ie=["content-type","content-length"];function Me(e){const t=qe({},e),n=e=>$.hasOwnProp(t,e)?t[e]:void 0,r=n("data");let o=n("withXSRFToken");const s=n("xsrfHeaderName"),i=n("xsrfCookieName");let a=n("headers");const c=n("auth"),l=n("baseURL"),u=n("allowAbsoluteUrls"),f=n("url");var d;if(t.headers=a=re.from(a),t.url=me(Be(l,f,u),n("params"),n("paramsSerializer")),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?(d=c.password,encodeURIComponent(d).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16)))):""))),$.isFormData(r)&&(Ae.hasStandardBrowserEnv||Ae.hasStandardBrowserWebWorkerEnv||$.isReactNative(r)?a.setContentType(void 0):$.isFunction(r.getHeaders)&&function(e,t,n){"content-only"===n?Object.entries(t).forEach(([t,n])=>{Ie.includes(t.toLowerCase())&&e.set(t,n)}):e.set(t)}(a,r.getHeaders(),n("formDataHeaderPolicy"))),Ae.hasStandardBrowserEnv){$.isFunction(o)&&(o=o(t));if(!0===o||null==o&&Le(t.url)){const e=s&&i&&Fe.read(i);e&&a.set(s,e)}}return t}var ze="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=Me(e);let o=r.data;const s=re.from(r.headers).normalize();let i,a,c,l,u,{responseType:f,onUploadProgress:d,onDownloadProgress:p}=r;function h(){l&&l(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(i),r.signal&&r.signal.removeEventListener("abort",i)}let m=new XMLHttpRequest;function b(){if(!m)return;const r=re.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Ne(function(e){t(e),h()},function(e){n(e),h()},{data:f&&"text"!==f&&"json"!==f?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=b:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&m.responseURL.startsWith("file:"))&&setTimeout(b)},m.onabort=function(){m&&(n(new se("Request aborted",se.ECONNABORTED,e,m)),h(),m=null)},m.onerror=function(t){const r=t&&t.message?t.message:"Network Error",o=new se(r,se.ERR_NETWORK,e,m);o.event=t||null,n(o),h(),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||ye;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new se(t,o.clarifyTimeoutError?se.ETIMEDOUT:se.ECONNABORTED,e,m)),h(),m=null},void 0===o&&s.setContentType(null),"setRequestHeader"in m&&$.forEach(Z(s),function(e,t){m.setRequestHeader(t,e)}),$.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),f&&"json"!==f&&(m.responseType=r.responseType),p&&([c,u]=je(p,!0),m.addEventListener("progress",c)),d&&m.upload&&([a,l]=je(d),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",l)),(r.cancelToken||r.signal)&&(i=t=>{m&&(n(!t||t.type?new xe(null,e,m):t),m.abort(),h(),m=null)},r.cancelToken&&r.cancelToken.subscribe(i),r.signal&&(r.signal.aborted?i():r.signal.addEventListener("abort",i)));const y=function(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}(r.url);!y||Ae.protocols.includes(y)?m.send(o||null):n(new se("Unsupported protocol "+y+":",se.ERR_BAD_REQUEST,e))})};const He=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const o=function(e){if(!r){r=!0,i();const t=e instanceof Error?e:this.reason;n.abort(t instanceof se?t:new xe(t instanceof Error?t.message:t))}};let s=t&&setTimeout(()=>{s=null,o(new se(`timeout of ${t}ms exceeded`,se.ETIMEDOUT))},t);const i=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:a}=n;return a.unsubscribe=()=>$.asap(i),a},We=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},Je=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},Ve=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of Je(e))yield*We(n,t)}(e,t);let s,i=0,a=e=>{s||(s=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return a(),void e.close();let s=r.byteLength;if(n){let e=i+=s;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw a(e),e}},cancel:e=>(a(e),o.return())},{highWaterMark:2})};const $e="1.17.0",{isFunction:Ke}=$,Xe=e=>{if(!$.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},Ge=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Qe=e=>{const t=void 0!==$.global&&null!==$.global?$.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=$.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:o,Request:s,Response:i}=e,a=o?Ke(o):"function"==typeof fetch,c=Ke(s),l=Ke(i);if(!a)return!1;const u=a&&Ke(n),f=a&&("function"==typeof r?(d=new r,e=>d.encode(e)):async e=>new Uint8Array(await new s(e).arrayBuffer()));var d;const p=c&&u&&Ge(()=>{let e=!1;const t=new s(Ae.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}),h=l&&u&&Ge(()=>$.isReadableStream(new i("").body)),m={stream:h&&(e=>e.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!m[e]&&(m[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new se(`Response type '${e}' is not supported`,se.ERR_NOT_SUPPORT,n)})});const b=async(e,t)=>{const n=$.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if($.isBlob(e))return e.size;if($.isSpecCompliantForm(e)){const t=new s(Ae.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return $.isArrayBufferView(e)||$.isArrayBuffer(e)?e.byteLength:($.isURLSearchParams(e)&&(e+=""),$.isString(e)?(await f(e)).byteLength:void 0)})(t):n};return async e=>{let{url:t,method:n,data:a,signal:l,cancelToken:u,timeout:f,onDownloadProgress:d,onUploadProgress:y,responseType:g,headers:w,withCredentials:E="same-origin",fetchOptions:O,maxContentLength:R,maxBodyLength:S}=Me(e);const A=$.isNumber(R)&&R>-1,_=$.isNumber(S)&&S>-1;let T=o||fetch;g=g?(g+"").toLowerCase():"text";let v=He([l,u&&u.toAbortSignal()],f),C=null;const P=v&&v.unsubscribe&&(()=>{v.unsubscribe()});let x;try{let o;const l=(j="auth",$.hasOwnProp(e,j)?e[j]:void 0);if(l){const e=l.username||"";o={username:e,password:l.password||""}}if((e=>{const t=e.indexOf("://");let n=e;return-1!==t&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")})(t)){const e=new URL(t,Ae.origin);if(!o&&(e.username||e.password)){const t=Xe(e.username);o={username:t,password:Xe(e.password)}}(e.username||e.password)&&(e.username="",e.password="",t=e.href)}if(o&&(w.delete("authorization"),w.set("Authorization","Basic "+btoa((N=(o.username||"")+":"+(o.password||""),encodeURIComponent(N).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))))),A&&"string"==typeof t&&t.startsWith("data:")){const n=function(e){if(!e||"string"!=typeof e)return 0;if(!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let e=r.length;const t=r.length;for(let n=0;n<t;n++)if(37===r.charCodeAt(n)&&n+2<t){const t=r.charCodeAt(n+1),o=r.charCodeAt(n+2);(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102)&&(o>=48&&o<=57||o>=65&&o<=70||o>=97&&o<=102)&&(e-=2,n+=2)}let n=0,o=t-1;const s=e=>e>=2&&37===r.charCodeAt(e-2)&&51===r.charCodeAt(e-1)&&(68===r.charCodeAt(e)||100===r.charCodeAt(e));o>=0&&(61===r.charCodeAt(o)?(n++,o--):s(o)&&(n++,o-=3)),1===n&&o>=0&&(61===r.charCodeAt(o)||s(o))&&n++;const i=3*Math.floor(e/4)-(n||0);return i>0?i:0}if("undefined"!=typeof Buffer&&"function"==typeof Buffer.byteLength)return Buffer.byteLength(r,"utf8");let o=0;for(let e=0,t=r.length;e<t;e++){const n=r.charCodeAt(e);if(n<128)o+=1;else if(n<2048)o+=2;else if(n>=55296&&n<=56319&&e+1<t){const t=r.charCodeAt(e+1);t>=56320&&t<=57343?(o+=4,e++):o+=3}else o+=3}return o}(t);if(n>R)throw new se("maxContentLength size of "+R+" exceeded",se.ERR_BAD_RESPONSE,e,C)}if(_&&"get"!==n&&"head"!==n){const t=await b(w,a);if("number"==typeof t&&isFinite(t)&&t>S)throw new se("Request body larger than maxBodyLength limit",se.ERR_BAD_REQUEST,e,C)}if(y&&p&&"get"!==n&&"head"!==n&&0!==(x=await b(w,a))){let e,n=new s(t,{method:"POST",body:a,duplex:"half"});if($.isFormData(a)&&(e=n.headers.get("content-type"))&&w.setContentType(e),n.body){const[e,t]=Ue(x,je(De(y)));a=Ve(n.body,65536,e,t)}}$.isString(E)||(E=E?"include":"omit");const u=c&&"credentials"in s.prototype;if($.isFormData(a)){const e=w.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&w.delete("content-type")}w.set("User-Agent","axios/"+$e,!1);const f={...O,signal:v,method:n.toUpperCase(),headers:Z(w.normalize()),body:a,duplex:"half",credentials:u?E:void 0};C=c&&new s(t,f);let U=await(c?T(C,O):T(t,f));if(A){const t=$.toFiniteNumber(U.headers.get("content-length"));if(null!=t&&t>R)throw new se("maxContentLength size of "+R+" exceeded",se.ERR_BAD_RESPONSE,e,C)}const D=h&&("stream"===g||"response"===g);if(h&&U.body&&(d||A||D&&P)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=U[e]});const n=$.toFiniteNumber(U.headers.get("content-length")),[r,o]=d&&Ue(n,je(De(d),!0))||[];let s=0;const a=t=>{if(A&&(s=t,s>R))throw new se("maxContentLength size of "+R+" exceeded",se.ERR_BAD_RESPONSE,e,C);r&&r(t)};U=new i(Ve(U.body,65536,a,()=>{o&&o(),P&&P()}),t)}g=g||"text";let L=await m[$.findKey(m,g)||"text"](U,e);if(A&&!h&&!D){let t;if(null!=L&&("number"==typeof L.byteLength?t=L.byteLength:"number"==typeof L.size?t=L.size:"string"==typeof L&&(t="function"==typeof r?(new r).encode(L).byteLength:L.length)),"number"==typeof t&&t>R)throw new se("maxContentLength size of "+R+" exceeded",se.ERR_BAD_RESPONSE,e,C)}return!D&&P&&P(),await new Promise((t,n)=>{Ne(t,n,{data:L,headers:re.from(U.headers),status:U.status,statusText:U.statusText,config:e,request:C})})}catch(t){if(P&&P(),v&&v.aborted&&v.reason instanceof se){const n=v.reason;throw n.config=e,C&&(n.request=C),t!==n&&(n.cause=t),n}if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new se("Network Error",se.ERR_NETWORK,e,C,t&&t.response),{cause:t.cause||t});throw se.from(t,t&&t.code,e,C,t&&t.response)}var N,j}},Ze=new Map,Ye=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,s=[r,o,n];let i,a,c=s.length,l=Ze;for(;c--;)i=s[c],a=l.get(i),void 0===a&&l.set(i,a=c?new Map:Qe(t)),l=a;return a};Ye();const et={http:null,xhr:ze,fetch:{get:Ye}};$.forEach(et,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const tt=e=>`- ${e}`,nt=e=>$.isFunction(e)||null===e||!1===e;var rt={getAdapter:function(e,t){e=$.isArray(e)?e:[e];const{length:n}=e;let r,o;const s={};for(let i=0;i<n;i++){let n;if(r=e[i],o=r,!nt(r)&&(o=et[(n=String(r)).toLowerCase()],void 0===o))throw new se(`Unknown adapter '${n}'`);if(o&&($.isFunction(o)||(o=o.get(t))))break;s[n||"#"+i]=o}if(!o){const e=Object.entries(s).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=n?e.length>1?"since :\n"+e.map(tt).join("\n"):" "+tt(e[0]):"as no adapter specified";throw new se("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return o},adapters:et};function ot(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new xe(null,e)}function st(e){ot(e),e.headers=re.from(e.headers),e.data=Ce.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return rt.getAdapter(e.adapter||ve.adapter,e)(e).then(function(t){ot(e),e.response=t;try{t.data=Ce.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=re.from(t.headers),t},function(t){if(!Pe(t)&&(ot(e),t&&t.response)){e.response=t.response;try{t.response.data=Ce.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=re.from(t.response.headers)}return Promise.reject(t)})}const it={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{it[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const at={};it.transitional=function(e,t,n){function r(e,t){return"[Axios v"+$e+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,s)=>{if(!1===e)throw new se(r(o," has been removed"+(t?" in "+t:"")),se.ERR_DEPRECATED);return t&&!at[o]&&(at[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,s)}},it.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var ct={assertOptions:function(e,t,n){if("object"!=typeof e)throw new se("options must be an object",se.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],i=Object.prototype.hasOwnProperty.call(t,s)?t[s]:void 0;if(i){const t=e[s],n=void 0===t||i(t,s,e);if(!0!==n)throw new se("option "+s+" must be "+n,se.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new se("Unknown option "+s,se.ERR_BAD_OPTION)}},validators:it};const lt=ct.validators;let ut=class{constructor(e){this.defaults=e||{},this.interceptors={request:new be,response:new be}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=(()=>{if(!t.stack)return"";const e=t.stack.indexOf("\n");return-1===e?"":t.stack.slice(e+1)})();try{if(e.stack){if(n){const t=n.indexOf("\n"),r=-1===t?-1:n.indexOf("\n",t+1),o=-1===r?"":n.slice(r+1);String(e.stack).endsWith(o)||(e.stack+="\n"+n)}}else e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=qe(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&ct.assertOptions(n,{silentJSONParsing:lt.transitional(lt.boolean),forcedJSONParsing:lt.transitional(lt.boolean),clarifyTimeoutError:lt.transitional(lt.boolean),legacyInterceptorReqResOrdering:lt.transitional(lt.boolean),advertiseZstdAcceptEncoding:lt.transitional(lt.boolean)},!1),null!=r&&($.isFunction(r)?t.paramsSerializer={serialize:r}:ct.assertOptions(r,{encode:lt.function,serialize:lt.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),ct.assertOptions(t,{baseUrl:lt.spelling("baseURL"),withXsrfToken:lt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=o&&$.merge(o.common,o[t.method]);o&&$.forEach(["delete","get","head","post","put","patch","query","common"],e=>{delete o[e]}),t.headers=re.concat(s,o);const i=[];let a=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;a=a&&e.synchronous;const n=t.transitional||ye;n&&n.legacyInterceptorReqResOrdering?i.unshift(e.fulfilled,e.rejected):i.push(e.fulfilled,e.rejected)});const c=[];let l;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let u,f=0;if(!a){const e=[st.bind(this),void 0];for(e.unshift(...i),e.push(...c),u=e.length,l=Promise.resolve(t);f<u;)l=l.then(e[f++],e[f++]);return l}u=i.length;let d=t;for(;f<u;){const e=i[f++],t=i[f++];try{d=e(d)}catch(e){t.call(this,e);break}}try{l=st.call(this,d)}catch(e){return Promise.reject(e)}for(f=0,u=c.length;f<u;)l=l.then(c[f++],c[f++]);return l}getUri(e){return me(Be((e=qe(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};$.forEach(["delete","get","head","options"],function(e){ut.prototype[e]=function(t,n){return this.request(qe(n||{},{method:e,url:t,data:(n||{}).data}))}}),$.forEach(["post","put","patch","query"],function(e){function t(t){return function(n,r,o){return this.request(qe(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}ut.prototype[e]=t(),"query"!==e&&(ut.prototype[e+"Form"]=t(!0))});const ft={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ft).forEach(([e,t])=>{ft[t]=e});const dt=function t(n){const r=new ut(n),o=e(ut.prototype.request,r);return $.extend(o,ut.prototype,r,{allOwnKeys:!0}),$.extend(o,r,null,{allOwnKeys:!0}),o.create=function(e){return t(qe(n,e))},o}(ve);dt.Axios=ut,dt.CanceledError=xe,dt.CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new xe(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}},dt.isCancel=Pe,dt.VERSION=$e,dt.toFormData=ue,dt.AxiosError=se,dt.Cancel=dt.CanceledError,dt.all=function(e){return Promise.all(e)},dt.spread=function(e){return function(t){return e.apply(null,t)}},dt.isAxiosError=function(e){return $.isObject(e)&&!0===e.isAxiosError},dt.mergeConfig=qe,dt.AxiosHeaders=re,dt.formToJSON=e=>_e($.isHTMLForm(e)?new FormData(e):e),dt.getAdapter=rt.getAdapter,dt.HttpStatusCode=ft,dt.default=dt;const{Axios:pt,AxiosError:ht,CanceledError:mt,isCancel:bt,CancelToken:yt,VERSION:gt,all:wt,Cancel:Et,isAxiosError:Ot,spread:Rt,toFormData:St,AxiosHeaders:At,HttpStatusCode:_t,formToJSON:Tt,getAdapter:vt,mergeConfig:Ct,create:Pt}=dt;export{pt as Axios,ht as AxiosError,At as AxiosHeaders,Et as Cancel,yt as CancelToken,mt as CanceledError,_t as HttpStatusCode,gt as VERSION,wt as all,Pt as create,dt as default,Tt as formToJSON,vt as getAdapter,Ot as isAxiosError,bt as isCancel,Ct as mergeConfig,Rt as spread,St as toFormData}; | ||
| //# sourceMappingURL=axios.min.js.map |
+8
-3
@@ -69,3 +69,5 @@ type MethodsHeaders = Partial< | ||
| toJSON(asStrings?: boolean): axios.RawAxiosHeaders; | ||
| toJSON(asStrings: true): Record<string, string>; | ||
| toJSON(asStrings?: false): Record<string, string | string[]>; | ||
| toJSON(asStrings?: boolean): Record<string, string | string[]>; | ||
@@ -166,3 +168,5 @@ static from(thing?: AxiosHeaders | axios.RawAxiosHeaders | string): AxiosHeaders; | ||
| declare class CanceledError<T> extends AxiosError<T> {} | ||
| declare class CanceledError<T> extends AxiosError<T> { | ||
| readonly name: 'CanceledError'; | ||
| } | ||
@@ -397,2 +401,3 @@ declare class Axios { | ||
| legacyInterceptorReqResOrdering?: boolean; | ||
| advertiseZstdAcceptEncoding?: boolean; | ||
| } | ||
@@ -697,3 +702,3 @@ | ||
| readonly VERSION: string; | ||
| isCancel(value: any): value is Cancel; | ||
| isCancel<T = any>(value: any): value is CanceledError<T>; | ||
| all<T>(values: Array<T | Promise<T>>): Promise<T[]>; | ||
@@ -700,0 +705,0 @@ spread<T, R>(callback: (...args: T[]) => R): (array: T[]) => R; |
+4
-1
@@ -50,3 +50,5 @@ // TypeScript Version: 4.7 | ||
| toJSON(asStrings?: boolean): RawAxiosHeaders; | ||
| toJSON(asStrings: true): Record<string, string>; | ||
| toJSON(asStrings?: false): Record<string, string | string[]>; | ||
| toJSON(asStrings?: boolean): Record<string, string | string[]>; | ||
@@ -285,2 +287,3 @@ static from(thing?: AxiosHeaders | RawAxiosHeaders | string): AxiosHeaders; | ||
| legacyInterceptorReqResOrdering?: boolean; | ||
| advertiseZstdAcceptEncoding?: boolean; | ||
| } | ||
@@ -287,0 +290,0 @@ |
@@ -22,2 +22,31 @@ import platform from '../platform/index.js'; | ||
| /** | ||
| * Encode a UTF-8 string to a Latin-1 byte string for use with btoa(). | ||
| * This is a modern replacement for the deprecated unescape(encodeURIComponent(str)) pattern. | ||
| * | ||
| * @param {string} str The string to encode | ||
| * | ||
| * @returns {string} UTF-8 bytes as a Latin-1 string | ||
| */ | ||
| const encodeUTF8 = (str) => | ||
| encodeURIComponent(str).replace(/%([0-9A-F]{2})/gi, (_, hex) => | ||
| String.fromCharCode(parseInt(hex, 16)) | ||
| ); | ||
| // Node's WHATWG URL parser returns `username` and `password` percent-encoded. | ||
| // Decode before composing the `auth` option so credentials such as | ||
| // `my%40email.com:pass` are sent as `my@email.com:pass`. Falls back to the | ||
| // original value for malformed input so a bad encoding never throws. | ||
| const decodeURIComponentSafe = (value) => { | ||
| if (!utils.isString(value)) { | ||
| return value; | ||
| } | ||
| try { | ||
| return decodeURIComponent(value); | ||
| } catch (error) { | ||
| return value; | ||
| } | ||
| }; | ||
| const test = (fn, ...args) => { | ||
@@ -31,2 +60,11 @@ try { | ||
| const maybeWithAuthCredentials = (url) => { | ||
| const protocolIndex = url.indexOf('://'); | ||
| let urlToCheck = url; | ||
| if (protocolIndex !== -1) { | ||
| urlToCheck = urlToCheck.slice(protocolIndex + 3); | ||
| } | ||
| return urlToCheck.includes('@') || urlToCheck.includes(':'); | ||
| }; | ||
| const factory = (env) => { | ||
@@ -179,2 +217,3 @@ const globalObject = | ||
| const hasMaxBodyLength = utils.isNumber(maxBodyLength) && maxBodyLength > -1; | ||
| const own = (key) => (utils.hasOwnProp(config, key) ? config[key] : undefined); | ||
@@ -202,2 +241,42 @@ let _fetch = envFetch || fetch; | ||
| try { | ||
| // HTTP basic authentication | ||
| let auth = undefined; | ||
| const configAuth = own('auth'); | ||
| if (configAuth) { | ||
| const username = configAuth.username || ''; | ||
| const password = configAuth.password || ''; | ||
| auth = { | ||
| username, | ||
| password | ||
| }; | ||
| } | ||
| if (maybeWithAuthCredentials(url)) { | ||
| const parsedURL = new URL(url, platform.origin); | ||
| if (!auth && (parsedURL.username || parsedURL.password)) { | ||
| const urlUsername = decodeURIComponentSafe(parsedURL.username); | ||
| const urlPassword = decodeURIComponentSafe(parsedURL.password); | ||
| auth = { | ||
| username: urlUsername, | ||
| password: urlPassword | ||
| }; | ||
| } | ||
| if (parsedURL.username || parsedURL.password) { | ||
| parsedURL.username = ''; | ||
| parsedURL.password = ''; | ||
| url = parsedURL.href; | ||
| } | ||
| } | ||
| if (auth) { | ||
| headers.delete('authorization'); | ||
| headers.set( | ||
| 'Authorization', | ||
| 'Basic ' + btoa(encodeUTF8((auth.username || '') + ':' + (auth.password || ''))) | ||
| ); | ||
| } | ||
| // Enforce maxContentLength for data: URLs up-front so we never materialize | ||
@@ -204,0 +283,0 @@ // an oversized payload. The HTTP adapter applies the same check (see http.js |
+62
-118
@@ -27,2 +27,3 @@ import utils from '../utils.js'; | ||
| import ZlibHeaderTransformStream from '../helpers/ZlibHeaderTransformStream.js'; | ||
| import Http2Sessions from '../helpers/Http2Sessions.js'; | ||
| import callbackify from '../helpers/callbackify.js'; | ||
@@ -48,3 +49,11 @@ import shouldBypassProxy from '../helpers/shouldBypassProxy.js'; | ||
| const zstdOptions = { | ||
| flush: zlib.constants.ZSTD_e_flush, | ||
| finishFlush: zlib.constants.ZSTD_e_flush, | ||
| }; | ||
| const isBrotliSupported = utils.isFunction(zlib.createBrotliDecompress); | ||
| const isZstdSupported = utils.isFunction(zlib.createZstdDecompress); | ||
| const ACCEPT_ENCODING = 'gzip, compress, deflate' + (isBrotliSupported ? ', br' : ''); | ||
| const ACCEPT_ENCODING_WITH_ZSTD = ACCEPT_ENCODING + (isZstdSupported ? ', zstd' : ''); | ||
@@ -108,2 +117,10 @@ const { http: httpFollow, https: httpsFollow } = followRedirects; | ||
| agent = new HttpsProxyAgent(merged); | ||
| if (userHttpsAgent && userHttpsAgent.options) { | ||
| const originTLSOptions = { ...userHttpsAgent.options }; | ||
| const callback = agent.callback; | ||
| agent.callback = function axiosTunnelingAgentCallback(req, opts) { | ||
| // HttpsProxyAgent v5 reads callback opts for the post-CONNECT origin TLS upgrade. | ||
| return callback.call(this, req, { ...originTLSOptions, ...opts }); | ||
| }; | ||
| } | ||
| agent[kAxiosInstalledTunnel] = true; | ||
@@ -140,110 +157,7 @@ cache.set(key, agent); | ||
| class Http2Sessions { | ||
| constructor() { | ||
| this.sessions = Object.create(null); | ||
| } | ||
| getSession(authority, options) { | ||
| options = Object.assign( | ||
| { | ||
| sessionTimeout: 1000, | ||
| }, | ||
| options | ||
| ); | ||
| let authoritySessions = this.sessions[authority]; | ||
| if (authoritySessions) { | ||
| let len = authoritySessions.length; | ||
| for (let i = 0; i < len; i++) { | ||
| const [sessionHandle, sessionOptions] = authoritySessions[i]; | ||
| if ( | ||
| !sessionHandle.destroyed && | ||
| !sessionHandle.closed && | ||
| util.isDeepStrictEqual(sessionOptions, options) | ||
| ) { | ||
| return sessionHandle; | ||
| } | ||
| } | ||
| } | ||
| const session = http2.connect(authority, options); | ||
| let removed; | ||
| const removeSession = () => { | ||
| if (removed) { | ||
| return; | ||
| } | ||
| removed = true; | ||
| let entries = authoritySessions, | ||
| len = entries.length, | ||
| i = len; | ||
| while (i--) { | ||
| if (entries[i][0] === session) { | ||
| if (len === 1) { | ||
| delete this.sessions[authority]; | ||
| } else { | ||
| entries.splice(i, 1); | ||
| } | ||
| if (!session.closed) { | ||
| session.close(); | ||
| } | ||
| return; | ||
| } | ||
| } | ||
| }; | ||
| const originalRequestFn = session.request; | ||
| const { sessionTimeout } = options; | ||
| if (sessionTimeout != null) { | ||
| let timer; | ||
| let streamsCount = 0; | ||
| session.request = function () { | ||
| const stream = originalRequestFn.apply(this, arguments); | ||
| streamsCount++; | ||
| if (timer) { | ||
| clearTimeout(timer); | ||
| timer = null; | ||
| } | ||
| stream.once('close', () => { | ||
| if (!--streamsCount) { | ||
| timer = setTimeout(() => { | ||
| timer = null; | ||
| removeSession(); | ||
| }, sessionTimeout); | ||
| } | ||
| }); | ||
| return stream; | ||
| }; | ||
| } | ||
| session.once('close', removeSession); | ||
| let entry = [session, options]; | ||
| authoritySessions | ||
| ? authoritySessions.push(entry) | ||
| : (authoritySessions = this.sessions[authority] = [entry]); | ||
| return session; | ||
| } | ||
| } | ||
| const http2Sessions = new Http2Sessions(); | ||
| /** | ||
| * If the proxy or config beforeRedirects functions are defined, call them with the options | ||
| * object. | ||
| * If the proxy, auth, or config beforeRedirects functions are defined, call them | ||
| * with the options object. | ||
| * | ||
@@ -258,2 +172,5 @@ * @param {Object<string, any>} options - The options object that was passed to the request. | ||
| } | ||
| if (options.beforeRedirects.auth) { | ||
| options.beforeRedirects.auth(options); | ||
| } | ||
| if (options.beforeRedirects.config) { | ||
@@ -526,2 +443,3 @@ options.beforeRedirects.config(options, responseDetails, requestDetails); | ||
| const own = (key) => (utils.hasOwnProp(config, key) ? config[key] : undefined); | ||
| const transitional = own('transitional') || transitionalDefaults; | ||
| let data = own('data'); | ||
@@ -580,3 +498,3 @@ let lookup = own('lookup'); | ||
| } catch (err) { | ||
| console.warn('emit error', err); | ||
| // ignore emit errors | ||
| } | ||
@@ -596,3 +514,2 @@ } | ||
| : 'timeout exceeded'; | ||
| const transitional = config.transitional || transitionalDefaults; | ||
| if (config.timeoutErrorMessage) { | ||
@@ -846,3 +763,3 @@ timeoutErrorMessage = config.timeoutErrorMessage; | ||
| if (!auth && parsed.username) { | ||
| if (!auth && (parsed.username || parsed.password)) { | ||
| const urlUsername = decodeURIComponentSafe(parsed.username); | ||
@@ -873,3 +790,4 @@ const urlPassword = decodeURIComponentSafe(parsed.password); | ||
| 'Accept-Encoding', | ||
| 'gzip, compress, deflate' + (isBrotliSupported ? ', br' : ''), | ||
| utils.hasOwnProp(transitional, 'advertiseZstdAcceptEncoding') && | ||
| transitional.advertiseZstdAcceptEncoding === true ? ACCEPT_ENCODING_WITH_ZSTD : ACCEPT_ENCODING, | ||
| false | ||
@@ -896,4 +814,5 @@ ); | ||
| if (config.socketPath) { | ||
| if (typeof config.socketPath !== 'string') { | ||
| const socketPath = own('socketPath'); | ||
| if (socketPath) { | ||
| if (typeof socketPath !== 'string') { | ||
| return reject( | ||
@@ -904,8 +823,9 @@ new AxiosError('socketPath must be a string', AxiosError.ERR_BAD_OPTION_VALUE, config) | ||
| if (config.allowedSocketPaths != null) { | ||
| const allowed = Array.isArray(config.allowedSocketPaths) | ||
| ? config.allowedSocketPaths | ||
| : [config.allowedSocketPaths]; | ||
| const allowedSocketPaths = own('allowedSocketPaths'); | ||
| if (allowedSocketPaths != null) { | ||
| const allowed = Array.isArray(allowedSocketPaths) | ||
| ? allowedSocketPaths | ||
| : [allowedSocketPaths]; | ||
| const resolvedSocket = resolvePath(config.socketPath); | ||
| const resolvedSocket = resolvePath(socketPath); | ||
| const isAllowed = allowed.some( | ||
@@ -918,3 +838,3 @@ (entry) => typeof entry === 'string' && resolvePath(entry) === resolvedSocket | ||
| new AxiosError( | ||
| `socketPath "${config.socketPath}" is not permitted by allowedSocketPaths`, | ||
| `socketPath "${socketPath}" is not permitted by allowedSocketPaths`, | ||
| AxiosError.ERR_BAD_OPTION_VALUE, | ||
@@ -927,3 +847,3 @@ config | ||
| options.socketPath = config.socketPath; | ||
| options.socketPath = socketPath; | ||
| } else { | ||
@@ -968,2 +888,19 @@ options.hostname = parsed.hostname.startsWith('[') | ||
| } | ||
| if (auth) { | ||
| // Restore HTTP Basic credentials on same-origin redirects only. | ||
| // follow-redirects >= 1.15.8 strips Authorization on every redirect (see #6929); | ||
| // cross-origin stripping is the documented mitigation for T-R2 in THREATMODEL.md | ||
| // and is preserved by deliberately not restoring on origin change. | ||
| const requestOrigin = parsed.origin; | ||
| const authToRestore = auth; | ||
| options.beforeRedirects.auth = function beforeRedirectAuth(redirectOptions) { | ||
| try { | ||
| if (new URL(redirectOptions.href).origin === requestOrigin) { | ||
| redirectOptions.auth = authToRestore; | ||
| } | ||
| } catch (e) { | ||
| // ignore malformed URL: leaving auth stripped is fail-safe | ||
| } | ||
| }; | ||
| } | ||
| transport = isHttpsRequest ? httpsFollow : httpFollow; | ||
@@ -1055,2 +992,9 @@ } | ||
| } | ||
| break; | ||
| case 'zstd': | ||
| if (isZstdSupported) { | ||
| streams.push(zlib.createZstdDecompress(zstdOptions)); | ||
| delete res.headers['content-encoding']; | ||
| } | ||
| break; | ||
| } | ||
@@ -1057,0 +1001,0 @@ } |
@@ -104,2 +104,3 @@ 'use strict'; | ||
| legacyInterceptorReqResOrdering: validators.transitional(validators.boolean), | ||
| advertiseZstdAcceptEncoding: validators.transitional(validators.boolean), | ||
| }, | ||
@@ -106,0 +107,0 @@ false |
@@ -92,3 +92,3 @@ 'use strict'; | ||
| if (!lHeader) { | ||
| throw new Error('header name must be a non-empty string'); | ||
| return; | ||
| } | ||
@@ -121,3 +121,3 @@ | ||
| if (!utils.isArray(entry)) { | ||
| throw TypeError('Object iterator must return a key-value pair'); | ||
| throw new TypeError('Object iterator must return a key-value pair'); | ||
| } | ||
@@ -124,0 +124,0 @@ |
@@ -8,2 +8,3 @@ 'use strict'; | ||
| legacyInterceptorReqResOrdering: true, | ||
| advertiseZstdAcceptEncoding: false, | ||
| }; |
+1
-1
@@ -1,1 +0,1 @@ | ||
| export const VERSION = "1.16.1"; | ||
| export const VERSION = "1.17.0"; |
| 'use strict'; | ||
| import utils from '../utils.js'; | ||
| import AxiosURLSearchParams from '../helpers/AxiosURLSearchParams.js'; | ||
| import AxiosURLSearchParams from './AxiosURLSearchParams.js'; | ||
@@ -6,0 +6,0 @@ /** |
@@ -76,7 +76,7 @@ import util from 'util'; | ||
| if (!utils.isFormData(form)) { | ||
| throw TypeError('FormData instance required'); | ||
| throw new TypeError('FormData instance required'); | ||
| } | ||
| if (boundary.length < 1 || boundary.length > 70) { | ||
| throw Error('boundary must be 1-70 characters long'); | ||
| throw new Error('boundary must be 1-70 characters long'); | ||
| } | ||
@@ -83,0 +83,0 @@ |
@@ -38,3 +38,3 @@ import platform from '../platform/index.js'; | ||
| export default (config) => { | ||
| function resolveConfig(config) { | ||
| const newConfig = mergeConfig({}, config); | ||
@@ -60,4 +60,4 @@ | ||
| buildFullPath(baseURL, url, allowAbsoluteUrls), | ||
| config.params, | ||
| config.paramsSerializer | ||
| own('params'), | ||
| own('paramsSerializer') | ||
| ); | ||
@@ -75,4 +75,8 @@ | ||
| if (utils.isFormData(data)) { | ||
| if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) { | ||
| headers.setContentType(undefined); // browser handles it | ||
| if ( | ||
| platform.hasStandardBrowserEnv || | ||
| platform.hasStandardBrowserWebWorkerEnv || | ||
| utils.isReactNative(data) | ||
| ) { | ||
| headers.setContentType(undefined); // browser/web worker/RN handles it | ||
| } else if (utils.isFunction(data.getHeaders)) { | ||
@@ -109,2 +113,4 @@ // Node.js FormData (like form-data package) | ||
| return newConfig; | ||
| }; | ||
| } | ||
| export default resolveConfig; |
@@ -222,3 +222,3 @@ 'use strict'; | ||
| if (stack.indexOf(value) !== -1) { | ||
| throw Error('Circular reference detected in ' + path.join('.')); | ||
| throw new Error('Circular reference detected in ' + path.join('.')); | ||
| } | ||
@@ -225,0 +225,0 @@ |
+23
-2
@@ -415,3 +415,5 @@ 'use strict'; | ||
| const targetKey = (caseless && findKey(result, key)) || key; | ||
| // findKey lowercases the key, so caseless lookup only applies to strings — | ||
| // symbol keys are identity-matched. | ||
| const targetKey = (caseless && typeof key === 'string' && findKey(result, key)) || key; | ||
| // Read via own-prop only — a bare `result[targetKey]` walks the prototype | ||
@@ -433,3 +435,20 @@ // chain, so a polluted Object.prototype value could surface here and get | ||
| for (let i = 0, l = objs.length; i < l; i++) { | ||
| objs[i] && forEach(objs[i], assignValue); | ||
| const source = objs[i]; | ||
| if (!source || isBuffer(source)) { | ||
| continue; | ||
| } | ||
| forEach(source, assignValue); | ||
| if (typeof source !== 'object' || isArray(source)) { | ||
| continue; | ||
| } | ||
| const symbols = Object.getOwnPropertySymbols(source); | ||
| for (let j = 0; j < symbols.length; j++) { | ||
| const symbol = symbols[j]; | ||
| if (propertyIsEnumerable.call(source, symbol)) { | ||
| assignValue(source[symbol], symbol); | ||
| } | ||
| } | ||
| } | ||
@@ -663,2 +682,4 @@ return result; | ||
| const { propertyIsEnumerable } = Object.prototype; | ||
| /** | ||
@@ -665,0 +686,0 @@ * Determine if a value is a RegExp object |
+29
-13
| { | ||
| "name": "axios", | ||
| "version": "1.16.1", | ||
| "version": "1.17.0", | ||
| "description": "Promise based HTTP client for the browser and node.js", | ||
@@ -89,4 +89,4 @@ "main": "./dist/node/axios.cjs", | ||
| "Xianming Zhong (https://github.com/chinesedfan)", | ||
| "Shaan Majid (https://github.com/shaanmajid)", | ||
| "Willian Agostini (https://github.com/WillianAgostini)", | ||
| "Shaan Majid (https://github.com/shaanmajid)", | ||
| "Remco Haszing (https://github.com/remcohaszing)", | ||
@@ -101,2 +101,18 @@ "Rikki Gibson (https://github.com/RikkiGibson)" | ||
| "homepage": "https://axios-http.com", | ||
| "files": [ | ||
| "index.js", | ||
| "index.d.ts", | ||
| "index.d.cts", | ||
| "CHANGELOG.md", | ||
| "MIGRATION_GUIDE.md", | ||
| "lib/", | ||
| "dist/axios.js", | ||
| "dist/axios.min.js", | ||
| "dist/axios.min.js.map", | ||
| "dist/esm/axios.js", | ||
| "dist/esm/axios.min.js", | ||
| "dist/esm/axios.min.js.map", | ||
| "dist/browser/axios.cjs", | ||
| "dist/node/axios.cjs" | ||
| ], | ||
| "scripts": { | ||
@@ -133,5 +149,5 @@ "build": "gulp clear && cross-env NODE_ENV=production rollup -c -m", | ||
| "@babel/core": "^7.29.0", | ||
| "@babel/preset-env": "^7.29.2", | ||
| "@commitlint/cli": "^20.5.0", | ||
| "@commitlint/config-conventional": "^20.5.0", | ||
| "@babel/preset-env": "^7.29.5", | ||
| "@commitlint/cli": "^21.0.1", | ||
| "@commitlint/config-conventional": "^21.0.1", | ||
| "@eslint/js": "^10.0.1", | ||
@@ -144,4 +160,4 @@ "@rollup/plugin-alias": "^6.0.0", | ||
| "@rollup/plugin-terser": "^1.0.0", | ||
| "@vitest/browser": "^4.1.5", | ||
| "@vitest/browser-playwright": "^4.1.5", | ||
| "@vitest/browser": "^4.1.7", | ||
| "@vitest/browser-playwright": "^4.1.7", | ||
| "abortcontroller-polyfill": "^1.7.8", | ||
@@ -153,3 +169,3 @@ "acorn": "^8.16.0", | ||
| "dev-null": "^0.1.1", | ||
| "eslint": "^10.2.1", | ||
| "eslint": "^10.4.0", | ||
| "express": "^5.2.1", | ||
@@ -160,11 +176,11 @@ "formdata-node": "^6.0.3", | ||
| "get-stream": "^9.0.1", | ||
| "globals": "^17.5.0", | ||
| "globals": "^17.6.0", | ||
| "gulp": "^5.0.1", | ||
| "husky": "^9.1.7", | ||
| "lint-staged": "^16.4.0", | ||
| "lint-staged": "^17.0.5", | ||
| "minimist": "^1.2.8", | ||
| "multer": "^2.1.1", | ||
| "playwright": "^1.59.1", | ||
| "playwright": "^1.60.0", | ||
| "prettier": "^3.8.3", | ||
| "rollup": "^4.60.2", | ||
| "rollup": "^4.60.4", | ||
| "rollup-plugin-bundle-size": "^1.0.3", | ||
@@ -174,3 +190,3 @@ "selfsigned": "^5.5.0", | ||
| "typescript": "^5.9.3", | ||
| "vitest": "^4.1.5" | ||
| "vitest": "^4.1.7" | ||
| }, | ||
@@ -177,0 +193,0 @@ "commitlint": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
25519
2.29%1652671
-41.25%85
-3.41%52
1.96%