1 line
72 KiB
JavaScript
Raw Normal View History

!function(){var e={419:function(e,t,n){e.exports=n(695)},31:function(e,t,n){"use strict";var r=n(264),i=n(998),d=n(689),h=n(840),y=n(189),g=n(300),b=n(465),v=n(910);e.exports=function xhrAdapter(e){return new Promise((function dispatchXhrRequest(t,n){var _=e.data,w=e.headers;r.isFormData(_)&&delete w["Content-Type"];var C=new XMLHttpRequest;if(e.auth){var S=e.auth.username||"",E=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";w.Authorization="Basic "+btoa(S+":"+E)}var x=y(e.baseURL,e.url);if(C.open(e.method.toUpperCase(),h(x,e.params,e.paramsSerializer),!0),C.timeout=e.timeout,C.onreadystatechange=function handleLoad(){if(C&&4===C.readyState&&(0!==C.status||C.responseURL&&0===C.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in C?g(C.getAllResponseHeaders()):null,d={data:e.responseType&&"text"!==e.responseType?C.response:C.responseText,status:C.status,statusText:C.statusText,headers:r,config:e,request:C};i(t,n,d),C=null}},C.onabort=function handleAbort(){C&&(n(v("Request aborted",e,"ECONNABORTED",C)),C=null)},C.onerror=function handleError(){n(v("Network Error",e,null,C)),C=null},C.ontimeout=function handleTimeout(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(v(t,e,"ECONNABORTED",C)),C=null},r.isStandardBrowserEnv()){var k=(e.withCredentials||b(x))&&e.xsrfCookieName?d.read(e.xsrfCookieName):void 0;k&&(w[e.xsrfHeaderName]=k)}if("setRequestHeader"in C&&r.forEach(w,(function setRequestHeader(e,t){"undefined"===typeof _&&"content-type"===t.toLowerCase()?delete w[t]:C.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(C.withCredentials=!!e.withCredentials),e.responseType)try{C.responseType=e.responseType}catch(K){if("json"!==e.responseType)throw K}"function"===typeof e.onDownloadProgress&&C.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&C.upload&&C.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function onCanceled(e){C&&(C.abort(),n(e),C=null)})),_||(_=null),C.send(_)}))}},695:function(e,t,n){"use strict";var r=n(264),i=n(372),d=n(958),h=n(169);function createInstance(e){var t=new d(e),n=i(d.prototype.request,t);return r.extend(n,d.prototype,t),r.extend(n,t),n}var y=createInstance(n(115));y.Axios=d,y.create=function create(e){return createInstance(h(y.defaults,e))},y.Cancel=n(573),y.CancelToken=n(921),y.isCancel=n(737),y.all=function all(e){return Promise.all(e)},y.spread=n(205),y.isAxiosError=n(392),e.exports=y,e.exports.default=y},573:function(e){"use strict";function Cancel(e){this.message=e}Cancel.prototype.toString=function toString(){return"Cancel"+(this.message?": "+this.message:"")},Cancel.prototype.__CANCEL__=!0,e.exports=Cancel},921:function(e,t,n){"use strict";var r=n(573);function CancelToken(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function promiseExecutor(e){t=e}));var n=this;e((function cancel(e){n.reason||(n.reason=new r(e),t(n.reason))}))}CancelToken.prototype.throwIfRequested=function throwIfRequested(){if(this.reason)throw this.reason},CancelToken.source=function source(){var e;return{token:new CancelToken((function executor(t){e=t})),cancel:e}},e.exports=CancelToken},737:function(e){"use strict";e.exports=function isCancel(e){return!(!e||!e.__CANCEL__)}},958:function(e,t,n){"use strict";var r=n(264),i=n(840),d=n(644),h=n(890),y=n(169);function Axios(e){this.defaults=e,this.interceptors={request:new d,response:new d}}Axios.prototype.request=function request(e){"string"===typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=y(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[h,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function unshiftRequestInterceptors(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function pushResponseInterceptors(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift()