import{n as e}from"./index-CdSAAqTC.js";var t={exports:{}},r=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n=0)return;a[n]="set-cookie"===n?(a[n]?a[n]:[]).concat([o]):a[n]?a[n]+", "+o:o}})),a):a}}(),a=function(){if(P)return T;P=1;var e=l;return T=e.isStandardBrowserEnv()?function(){var t,r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var t=e;return r&&(n.setAttribute("href",t),t=n.href),n.setAttribute("href",t),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=o(window.location.href),function(r){var n=e.isString(r)?o(r):r;return n.protocol===t.protocol&&n.host===t.host}}():function(){return function(){return!0}}()}(),s=F();return U=function(u){return new Promise((function(c,f){var l=u.data,p=u.headers,d=u.responseType;e.isFormData(l)&&delete p["Content-Type"];var h=new XMLHttpRequest;if(u.auth){var m=u.auth.username||"",g=u.auth.password?unescape(encodeURIComponent(u.auth.password)):"";p.Authorization="Basic "+btoa(m+":"+g)}var v=o(u.baseURL,u.url);function y(){if(h){var e="getAllResponseHeaders"in h?i(h.getAllResponseHeaders()):null,r={data:d&&"text"!==d&&"json"!==d?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:e,config:u,request:h};t(c,f,r),h=null}}if(h.open(u.method.toUpperCase(),n(v,u.params,u.paramsSerializer),!0),h.timeout=u.timeout,"onloadend"in h?h.onloadend=y:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(y)},h.onabort=function(){h&&(f(s("Request aborted",u,"ECONNABORTED",h)),h=null)},h.onerror=function(){f(s("Network Error",u,null,h)),h=null},h.ontimeout=function(){var e="timeout of "+u.timeout+"ms exceeded";u.timeoutErrorMessage&&(e=u.timeoutErrorMessage),f(s(e,u,u.transitional&&u.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",h)),h=null},e.isStandardBrowserEnv()){var b=(u.withCredentials||a(v))&&u.xsrfCookieName?r.read(u.xsrfCookieName):void 0;b&&(p[u.xsrfHeaderName]=b)}"setRequestHeader"in h&&e.forEach(p,(function(e,t){void 0===l&&"content-type"===t.toLowerCase()?delete p[t]:h.setRequestHeader(t,e)})),e.isUndefined(u.withCredentials)||(h.withCredentials=!!u.withCredentials),d&&"json"!==d&&(h.responseType=u.responseType),"function"==typeof u.onDownloadProgress&&h.addEventListener("progress",u.onDownloadProgress),"function"==typeof u.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",u.onUploadProgress),u.cancelToken&&u.cancelToken.promise.then((function(e){h&&(h.abort(),f(e),h=null)})),l||(l=null),h.send(l)}))}}var H=l,M=function(e,t){q.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))},z=D,I={"Content-Type":"application/x-www-form-urlencoded"};function V(e,t){!H.isUndefined(e)&&H.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var X,W={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(X=_()),X),transformRequest:[function(e,t){return M(t,"Accept"),M(t,"Content-Type"),H.isFormData(e)||H.isArrayBuffer(e)||H.isBuffer(e)||H.isStream(e)||H.isFile(e)||H.isBlob(e)?e:H.isArrayBufferView(e)?e.buffer:H.isURLSearchParams(e)?(V(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):H.isObject(e)||t&&"application/json"===t["Content-Type"]?(V(t,"application/json"),function(e,t){if(H.isString(e))try{return(t||JSON.parse)(e),H.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,r=t&&t.silentJSONParsing,n=t&&t.forcedJSONParsing,o=!r&&"json"===this.responseType;if(o||n&&H.isString(e)&&e.length)try{return JSON.parse(e)}catch(i){if(o){if("SyntaxError"===i.name)throw z(i,this,"E_JSON_PARSE");throw i}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};W.headers={common:{Accept:"application/json, text/plain, */*"}},H.forEach(["delete","get","head"],(function(e){W.headers[e]={}})),H.forEach(["post","put","patch"],(function(e){W.headers[e]=H.merge(I)}));var $,G,K=W,Z=l,Q=K;function Y(){return G?$:(G=1,$=function(e){return!(!e||!e.__CANCEL__)})}var ee=l,te=function(e,t,r){var n=this||Q;return Z.forEach(r,(function(r){e=r.call(n,e,t)})),e},re=Y(),ne=K;function oe(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var ie=l,ae=function(e,t){t=t||{};var r={},n=["url","method","data"],o=["headers","auth","proxy","params"],i=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function s(e,t){return ie.isPlainObject(e)&&ie.isPlainObject(t)?ie.merge(e,t):ie.isPlainObject(t)?ie.merge({},t):ie.isArray(t)?t.slice():t}function u(n){ie.isUndefined(t[n])?ie.isUndefined(e[n])||(r[n]=s(void 0,e[n])):r[n]=s(e[n],t[n])}ie.forEach(n,(function(e){ie.isUndefined(t[e])||(r[e]=s(void 0,t[e]))})),ie.forEach(o,u),ie.forEach(i,(function(n){ie.isUndefined(t[n])?ie.isUndefined(e[n])||(r[n]=s(void 0,e[n])):r[n]=s(void 0,t[n])})),ie.forEach(a,(function(n){n in t?r[n]=s(e[n],t[n]):n in e&&(r[n]=s(void 0,e[n]))}));var c=n.concat(o).concat(i).concat(a),f=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===c.indexOf(e)}));return ie.forEach(f,u),r};var se={name:"axios",version:"0.21.4",description:"Promise based HTTP client for the browser and node.js",main:"index.js",scripts:{test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},repository:{type:"git",url:"https://github.com/axios/axios.git"},keywords:["xhr","http","ajax","promise","node"],author:"Matt Zabriskie",license:"MIT",bugs:{url:"https://github.com/axios/axios/issues"},homepage:"https://axios-http.com",devDependencies:{coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},browser:{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},jsdelivr:"dist/axios.min.js",unpkg:"dist/axios.min.js",typings:"./index.d.ts",dependencies:{"follow-redirects":"^1.14.0"},bundlesize:[{path:"./dist/axios.min.js",threshold:"5kB"}]},ue={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){ue[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var ce={},fe=se.version.split(".");function le(e,t){for(var r=t?t.split("."):fe,n=e.split("."),o=0;o<3;o++){if(r[o]>n[o])return!0;if(r[o]0;){var i=n[o],a=t[i];if(a){var s=e[i],u=void 0===s||a(s,i,e);if(!0!==u)throw new TypeError("option "+i+" must be "+u)}else if(!0!==r)throw Error("Unknown option "+i)}},validators:ue},ke=Oe.validators;function Ne(e){this.defaults=e,this.interceptors={request:new je,response:new je}}function Ce(){if(de)return pe;function e(e){this.message=e}return de=1,e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,pe=e}Ne.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=Se(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&Oe.assertOptions(t,{silentJSONParsing:ke.transitional(ke.boolean,"1.0.0"),forcedJSONParsing:ke.transitional(ke.boolean,"1.0.0"),clarifyTimeoutError:ke.transitional(ke.boolean,"1.0.0")},!1);var r=[],n=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(n=n&&t.synchronous,r.unshift(t.fulfilled,t.rejected))}));var o,i=[];if(this.interceptors.response.forEach((function(e){i.push(e.fulfilled,e.rejected)})),!n){var a=[Ee,void 0];for(Array.prototype.unshift.apply(a,r),a=a.concat(i),o=Promise.resolve(e);a.length;)o=o.then(a.shift(),a.shift());return o}for(var s=e;r.length;){var u=r.shift(),c=r.shift();try{s=u(s)}catch(f){c(f);break}}try{o=Ee(s)}catch(f){return Promise.reject(f)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},Ne.prototype.getUri=function(e){return e=Se(this.defaults,e),xe(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},we.forEach(["delete","get","head","options"],(function(e){Ne.prototype[e]=function(t,r){return this.request(Se(r||{},{method:e,url:t,data:(r||{}).data}))}})),we.forEach(["post","put","patch"],(function(e){Ne.prototype[e]=function(t,r,n){return this.request(Se(n||{},{method:e,url:t,data:r}))}}));var Ae=l,Re=r,Te=Ne,Pe=ae;function Ue(e){var t=new Te(e),r=Re(Te.prototype.request,t);return Ae.extend(r,Te.prototype,t),Ae.extend(r,t),r}var Be=Ue(K);Be.Axios=Te,Be.create=function(e){return Ue(Pe(Be.defaults,e))},Be.Cancel=Ce(),Be.CancelToken=function(){if(me)return he;me=1;var e=Ce();function t(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var r;this.promise=new Promise((function(e){r=e}));var n=this;t((function(t){n.reason||(n.reason=new e(t),r(n.reason))}))}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.source=function(){var e;return{token:new t((function(t){e=t})),cancel:e}},he=t}(),Be.isCancel=Y(),Be.all=function(e){return Promise.all(e)},Be.spread=ve?ge:(ve=1,ge=function(e){return function(t){return e.apply(null,t)}}),Be.isAxiosError=be?ye:(be=1,ye=function(e){return"object"==typeof e&&!0===e.isAxiosError}),t.exports=Be,t.exports.default=Be;const Le=e(t.exports);export{Le as a};