· 6 years ago · Feb 13, 2020, 06:18 PM
1/******/ (function(modules) { // webpackBootstrap
2/******/ // The module cache
3/******/ var installedModules = {};
4/******/
5/******/ // The require function
6/******/ function __webpack_require__(moduleId) {
7/******/
8/******/ // Check if module is in cache
9/******/ if(installedModules[moduleId]) {
10/******/ return installedModules[moduleId].exports;
11/******/ }
12/******/ // Create a new module (and put it into the cache)
13/******/ var module = installedModules[moduleId] = {
14/******/ i: moduleId,
15/******/ l: false,
16/******/ exports: {}
17/******/ };
18/******/
19/******/ // Execute the module function
20/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
21/******/
22/******/ // Flag the module as loaded
23/******/ module.l = true;
24/******/
25/******/ // Return the exports of the module
26/******/ return module.exports;
27/******/ }
28/******/
29/******/
30/******/ // expose the modules object (__webpack_modules__)
31/******/ __webpack_require__.m = modules;
32/******/
33/******/ // expose the module cache
34/******/ __webpack_require__.c = installedModules;
35/******/
36/******/ // define getter function for harmony exports
37/******/ __webpack_require__.d = function(exports, name, getter) {
38/******/ if(!__webpack_require__.o(exports, name)) {
39/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
40/******/ }
41/******/ };
42/******/
43/******/ // define __esModule on exports
44/******/ __webpack_require__.r = function(exports) {
45/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
46/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
47/******/ }
48/******/ Object.defineProperty(exports, '__esModule', { value: true });
49/******/ };
50/******/
51/******/ // create a fake namespace object
52/******/ // mode & 1: value is a module id, require it
53/******/ // mode & 2: merge all properties of value into the ns
54/******/ // mode & 4: return value when already ns object
55/******/ // mode & 8|1: behave like require
56/******/ __webpack_require__.t = function(value, mode) {
57/******/ if(mode & 1) value = __webpack_require__(value);
58/******/ if(mode & 8) return value;
59/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
60/******/ var ns = Object.create(null);
61/******/ __webpack_require__.r(ns);
62/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
63/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
64/******/ return ns;
65/******/ };
66/******/
67/******/ // getDefaultExport function for compatibility with non-harmony modules
68/******/ __webpack_require__.n = function(module) {
69/******/ var getter = module && module.__esModule ?
70/******/ function getDefault() { return module['default']; } :
71/******/ function getModuleExports() { return module; };
72/******/ __webpack_require__.d(getter, 'a', getter);
73/******/ return getter;
74/******/ };
75/******/
76/******/ // Object.prototype.hasOwnProperty.call
77/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
78/******/
79/******/ // __webpack_public_path__
80/******/ __webpack_require__.p = "/";
81/******/
82/******/
83/******/ // Load entry module and return exports
84/******/ return __webpack_require__(__webpack_require__.s = 0);
85/******/ })
86/************************************************************************/
87/******/ ({
88
89/***/ "./node_modules/axios/index.js":
90/*!*************************************!*\
91 !*** ./node_modules/axios/index.js ***!
92 \*************************************/
93/*! no static exports found */
94/***/ (function(module, exports, __webpack_require__) {
95
96module.exports = __webpack_require__(/*! ./lib/axios */ "./node_modules/axios/lib/axios.js");
97
98/***/ }),
99
100/***/ "./node_modules/axios/lib/adapters/xhr.js":
101/*!************************************************!*\
102 !*** ./node_modules/axios/lib/adapters/xhr.js ***!
103 \************************************************/
104/*! no static exports found */
105/***/ (function(module, exports, __webpack_require__) {
106
107"use strict";
108
109
110var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
111var settle = __webpack_require__(/*! ./../core/settle */ "./node_modules/axios/lib/core/settle.js");
112var buildURL = __webpack_require__(/*! ./../helpers/buildURL */ "./node_modules/axios/lib/helpers/buildURL.js");
113var buildFullPath = __webpack_require__(/*! ../core/buildFullPath */ "./node_modules/axios/lib/core/buildFullPath.js");
114var parseHeaders = __webpack_require__(/*! ./../helpers/parseHeaders */ "./node_modules/axios/lib/helpers/parseHeaders.js");
115var isURLSameOrigin = __webpack_require__(/*! ./../helpers/isURLSameOrigin */ "./node_modules/axios/lib/helpers/isURLSameOrigin.js");
116var createError = __webpack_require__(/*! ../core/createError */ "./node_modules/axios/lib/core/createError.js");
117
118module.exports = function xhrAdapter(config) {
119 return new Promise(function dispatchXhrRequest(resolve, reject) {
120 var requestData = config.data;
121 var requestHeaders = config.headers;
122
123 if (utils.isFormData(requestData)) {
124 delete requestHeaders['Content-Type']; // Let the browser set it
125 }
126
127 var request = new XMLHttpRequest();
128
129 // HTTP basic authentication
130 if (config.auth) {
131 var username = config.auth.username || '';
132 var password = config.auth.password || '';
133 requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);
134 }
135
136 var fullPath = buildFullPath(config.baseURL, config.url);
137 request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);
138
139 // Set the request timeout in MS
140 request.timeout = config.timeout;
141
142 // Listen for ready state
143 request.onreadystatechange = function handleLoad() {
144 if (!request || request.readyState !== 4) {
145 return;
146 }
147
148 // The request errored out and we didn't get a response, this will be
149 // handled by onerror instead
150 // With one exception: request that using file: protocol, most browsers
151 // will return status as 0 even though it's a successful request
152 if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
153 return;
154 }
155
156 // Prepare the response
157 var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;
158 var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response;
159 var response = {
160 data: responseData,
161 status: request.status,
162 statusText: request.statusText,
163 headers: responseHeaders,
164 config: config,
165 request: request
166 };
167
168 settle(resolve, reject, response);
169
170 // Clean up request
171 request = null;
172 };
173
174 // Handle browser request cancellation (as opposed to a manual cancellation)
175 request.onabort = function handleAbort() {
176 if (!request) {
177 return;
178 }
179
180 reject(createError('Request aborted', config, 'ECONNABORTED', request));
181
182 // Clean up request
183 request = null;
184 };
185
186 // Handle low level network errors
187 request.onerror = function handleError() {
188 // Real errors are hidden from us by the browser
189 // onerror should only fire if it's a network error
190 reject(createError('Network Error', config, null, request));
191
192 // Clean up request
193 request = null;
194 };
195
196 // Handle timeout
197 request.ontimeout = function handleTimeout() {
198 var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded';
199 if (config.timeoutErrorMessage) {
200 timeoutErrorMessage = config.timeoutErrorMessage;
201 }
202 reject(createError(timeoutErrorMessage, config, 'ECONNABORTED',
203 request));
204
205 // Clean up request
206 request = null;
207 };
208
209 // Add xsrf header
210 // This is only done if running in a standard browser environment.
211 // Specifically not if we're in a web worker, or react-native.
212 if (utils.isStandardBrowserEnv()) {
213 var cookies = __webpack_require__(/*! ./../helpers/cookies */ "./node_modules/axios/lib/helpers/cookies.js");
214
215 // Add xsrf header
216 var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ?
217 cookies.read(config.xsrfCookieName) :
218 undefined;
219
220 if (xsrfValue) {
221 requestHeaders[config.xsrfHeaderName] = xsrfValue;
222 }
223 }
224
225 // Add headers to the request
226 if ('setRequestHeader' in request) {
227 utils.forEach(requestHeaders, function setRequestHeader(val, key) {
228 if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {
229 // Remove Content-Type if data is undefined
230 delete requestHeaders[key];
231 } else {
232 // Otherwise add header to the request
233 request.setRequestHeader(key, val);
234 }
235 });
236 }
237
238 // Add withCredentials to request if needed
239 if (!utils.isUndefined(config.withCredentials)) {
240 request.withCredentials = !!config.withCredentials;
241 }
242
243 // Add responseType to request if needed
244 if (config.responseType) {
245 try {
246 request.responseType = config.responseType;
247 } catch (e) {
248 // Expected DOMException thrown by browsers not compatible XMLHttpRequest Level 2.
249 // But, this can be suppressed for 'json' type as it can be parsed by default 'transformResponse' function.
250 if (config.responseType !== 'json') {
251 throw e;
252 }
253 }
254 }
255
256 // Handle progress if needed
257 if (typeof config.onDownloadProgress === 'function') {
258 request.addEventListener('progress', config.onDownloadProgress);
259 }
260
261 // Not all browsers support upload events
262 if (typeof config.onUploadProgress === 'function' && request.upload) {
263 request.upload.addEventListener('progress', config.onUploadProgress);
264 }
265
266 if (config.cancelToken) {
267 // Handle cancellation
268 config.cancelToken.promise.then(function onCanceled(cancel) {
269 if (!request) {
270 return;
271 }
272
273 request.abort();
274 reject(cancel);
275 // Clean up request
276 request = null;
277 });
278 }
279
280 if (requestData === undefined) {
281 requestData = null;
282 }
283
284 // Send the request
285 request.send(requestData);
286 });
287};
288
289
290/***/ }),
291
292/***/ "./node_modules/axios/lib/axios.js":
293/*!*****************************************!*\
294 !*** ./node_modules/axios/lib/axios.js ***!
295 \*****************************************/
296/*! no static exports found */
297/***/ (function(module, exports, __webpack_require__) {
298
299"use strict";
300
301
302var utils = __webpack_require__(/*! ./utils */ "./node_modules/axios/lib/utils.js");
303var bind = __webpack_require__(/*! ./helpers/bind */ "./node_modules/axios/lib/helpers/bind.js");
304var Axios = __webpack_require__(/*! ./core/Axios */ "./node_modules/axios/lib/core/Axios.js");
305var mergeConfig = __webpack_require__(/*! ./core/mergeConfig */ "./node_modules/axios/lib/core/mergeConfig.js");
306var defaults = __webpack_require__(/*! ./defaults */ "./node_modules/axios/lib/defaults.js");
307
308/**
309 * Create an instance of Axios
310 *
311 * @param {Object} defaultConfig The default config for the instance
312 * @return {Axios} A new instance of Axios
313 */
314function createInstance(defaultConfig) {
315 var context = new Axios(defaultConfig);
316 var instance = bind(Axios.prototype.request, context);
317
318 // Copy axios.prototype to instance
319 utils.extend(instance, Axios.prototype, context);
320
321 // Copy context to instance
322 utils.extend(instance, context);
323
324 return instance;
325}
326
327// Create the default instance to be exported
328var axios = createInstance(defaults);
329
330// Expose Axios class to allow class inheritance
331axios.Axios = Axios;
332
333// Factory for creating new instances
334axios.create = function create(instanceConfig) {
335 return createInstance(mergeConfig(axios.defaults, instanceConfig));
336};
337
338// Expose Cancel & CancelToken
339axios.Cancel = __webpack_require__(/*! ./cancel/Cancel */ "./node_modules/axios/lib/cancel/Cancel.js");
340axios.CancelToken = __webpack_require__(/*! ./cancel/CancelToken */ "./node_modules/axios/lib/cancel/CancelToken.js");
341axios.isCancel = __webpack_require__(/*! ./cancel/isCancel */ "./node_modules/axios/lib/cancel/isCancel.js");
342
343// Expose all/spread
344axios.all = function all(promises) {
345 return Promise.all(promises);
346};
347axios.spread = __webpack_require__(/*! ./helpers/spread */ "./node_modules/axios/lib/helpers/spread.js");
348
349module.exports = axios;
350
351// Allow use of default import syntax in TypeScript
352module.exports.default = axios;
353
354
355/***/ }),
356
357/***/ "./node_modules/axios/lib/cancel/Cancel.js":
358/*!*************************************************!*\
359 !*** ./node_modules/axios/lib/cancel/Cancel.js ***!
360 \*************************************************/
361/*! no static exports found */
362/***/ (function(module, exports, __webpack_require__) {
363
364"use strict";
365
366
367/**
368 * A `Cancel` is an object that is thrown when an operation is canceled.
369 *
370 * @class
371 * @param {string=} message The message.
372 */
373function Cancel(message) {
374 this.message = message;
375}
376
377Cancel.prototype.toString = function toString() {
378 return 'Cancel' + (this.message ? ': ' + this.message : '');
379};
380
381Cancel.prototype.__CANCEL__ = true;
382
383module.exports = Cancel;
384
385
386/***/ }),
387
388/***/ "./node_modules/axios/lib/cancel/CancelToken.js":
389/*!******************************************************!*\
390 !*** ./node_modules/axios/lib/cancel/CancelToken.js ***!
391 \******************************************************/
392/*! no static exports found */
393/***/ (function(module, exports, __webpack_require__) {
394
395"use strict";
396
397
398var Cancel = __webpack_require__(/*! ./Cancel */ "./node_modules/axios/lib/cancel/Cancel.js");
399
400/**
401 * A `CancelToken` is an object that can be used to request cancellation of an operation.
402 *
403 * @class
404 * @param {Function} executor The executor function.
405 */
406function CancelToken(executor) {
407 if (typeof executor !== 'function') {
408 throw new TypeError('executor must be a function.');
409 }
410
411 var resolvePromise;
412 this.promise = new Promise(function promiseExecutor(resolve) {
413 resolvePromise = resolve;
414 });
415
416 var token = this;
417 executor(function cancel(message) {
418 if (token.reason) {
419 // Cancellation has already been requested
420 return;
421 }
422
423 token.reason = new Cancel(message);
424 resolvePromise(token.reason);
425 });
426}
427
428/**
429 * Throws a `Cancel` if cancellation has been requested.
430 */
431CancelToken.prototype.throwIfRequested = function throwIfRequested() {
432 if (this.reason) {
433 throw this.reason;
434 }
435};
436
437/**
438 * Returns an object that contains a new `CancelToken` and a function that, when called,
439 * cancels the `CancelToken`.
440 */
441CancelToken.source = function source() {
442 var cancel;
443 var token = new CancelToken(function executor(c) {
444 cancel = c;
445 });
446 return {
447 token: token,
448 cancel: cancel
449 };
450};
451
452module.exports = CancelToken;
453
454
455/***/ }),
456
457/***/ "./node_modules/axios/lib/cancel/isCancel.js":
458/*!***************************************************!*\
459 !*** ./node_modules/axios/lib/cancel/isCancel.js ***!
460 \***************************************************/
461/*! no static exports found */
462/***/ (function(module, exports, __webpack_require__) {
463
464"use strict";
465
466
467module.exports = function isCancel(value) {
468 return !!(value && value.__CANCEL__);
469};
470
471
472/***/ }),
473
474/***/ "./node_modules/axios/lib/core/Axios.js":
475/*!**********************************************!*\
476 !*** ./node_modules/axios/lib/core/Axios.js ***!
477 \**********************************************/
478/*! no static exports found */
479/***/ (function(module, exports, __webpack_require__) {
480
481"use strict";
482
483
484var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
485var buildURL = __webpack_require__(/*! ../helpers/buildURL */ "./node_modules/axios/lib/helpers/buildURL.js");
486var InterceptorManager = __webpack_require__(/*! ./InterceptorManager */ "./node_modules/axios/lib/core/InterceptorManager.js");
487var dispatchRequest = __webpack_require__(/*! ./dispatchRequest */ "./node_modules/axios/lib/core/dispatchRequest.js");
488var mergeConfig = __webpack_require__(/*! ./mergeConfig */ "./node_modules/axios/lib/core/mergeConfig.js");
489
490/**
491 * Create a new instance of Axios
492 *
493 * @param {Object} instanceConfig The default config for the instance
494 */
495function Axios(instanceConfig) {
496 this.defaults = instanceConfig;
497 this.interceptors = {
498 request: new InterceptorManager(),
499 response: new InterceptorManager()
500 };
501}
502
503/**
504 * Dispatch a request
505 *
506 * @param {Object} config The config specific for this request (merged with this.defaults)
507 */
508Axios.prototype.request = function request(config) {
509 /*eslint no-param-reassign:0*/
510 // Allow for axios('example/url'[, config]) a la fetch API
511 if (typeof config === 'string') {
512 config = arguments[1] || {};
513 config.url = arguments[0];
514 } else {
515 config = config || {};
516 }
517
518 config = mergeConfig(this.defaults, config);
519
520 // Set config.method
521 if (config.method) {
522 config.method = config.method.toLowerCase();
523 } else if (this.defaults.method) {
524 config.method = this.defaults.method.toLowerCase();
525 } else {
526 config.method = 'get';
527 }
528
529 // Hook up interceptors middleware
530 var chain = [dispatchRequest, undefined];
531 var promise = Promise.resolve(config);
532
533 this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
534 chain.unshift(interceptor.fulfilled, interceptor.rejected);
535 });
536
537 this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
538 chain.push(interceptor.fulfilled, interceptor.rejected);
539 });
540
541 while (chain.length) {
542 promise = promise.then(chain.shift(), chain.shift());
543 }
544
545 return promise;
546};
547
548Axios.prototype.getUri = function getUri(config) {
549 config = mergeConfig(this.defaults, config);
550 return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\?/, '');
551};
552
553// Provide aliases for supported request methods
554utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
555 /*eslint func-names:0*/
556 Axios.prototype[method] = function(url, config) {
557 return this.request(utils.merge(config || {}, {
558 method: method,
559 url: url
560 }));
561 };
562});
563
564utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
565 /*eslint func-names:0*/
566 Axios.prototype[method] = function(url, data, config) {
567 return this.request(utils.merge(config || {}, {
568 method: method,
569 url: url,
570 data: data
571 }));
572 };
573});
574
575module.exports = Axios;
576
577
578/***/ }),
579
580/***/ "./node_modules/axios/lib/core/InterceptorManager.js":
581/*!***********************************************************!*\
582 !*** ./node_modules/axios/lib/core/InterceptorManager.js ***!
583 \***********************************************************/
584/*! no static exports found */
585/***/ (function(module, exports, __webpack_require__) {
586
587"use strict";
588
589
590var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
591
592function InterceptorManager() {
593 this.handlers = [];
594}
595
596/**
597 * Add a new interceptor to the stack
598 *
599 * @param {Function} fulfilled The function to handle `then` for a `Promise`
600 * @param {Function} rejected The function to handle `reject` for a `Promise`
601 *
602 * @return {Number} An ID used to remove interceptor later
603 */
604InterceptorManager.prototype.use = function use(fulfilled, rejected) {
605 this.handlers.push({
606 fulfilled: fulfilled,
607 rejected: rejected
608 });
609 return this.handlers.length - 1;
610};
611
612/**
613 * Remove an interceptor from the stack
614 *
615 * @param {Number} id The ID that was returned by `use`
616 */
617InterceptorManager.prototype.eject = function eject(id) {
618 if (this.handlers[id]) {
619 this.handlers[id] = null;
620 }
621};
622
623/**
624 * Iterate over all the registered interceptors
625 *
626 * This method is particularly useful for skipping over any
627 * interceptors that may have become `null` calling `eject`.
628 *
629 * @param {Function} fn The function to call for each interceptor
630 */
631InterceptorManager.prototype.forEach = function forEach(fn) {
632 utils.forEach(this.handlers, function forEachHandler(h) {
633 if (h !== null) {
634 fn(h);
635 }
636 });
637};
638
639module.exports = InterceptorManager;
640
641
642/***/ }),
643
644/***/ "./node_modules/axios/lib/core/buildFullPath.js":
645/*!******************************************************!*\
646 !*** ./node_modules/axios/lib/core/buildFullPath.js ***!
647 \******************************************************/
648/*! no static exports found */
649/***/ (function(module, exports, __webpack_require__) {
650
651"use strict";
652
653
654var isAbsoluteURL = __webpack_require__(/*! ../helpers/isAbsoluteURL */ "./node_modules/axios/lib/helpers/isAbsoluteURL.js");
655var combineURLs = __webpack_require__(/*! ../helpers/combineURLs */ "./node_modules/axios/lib/helpers/combineURLs.js");
656
657/**
658 * Creates a new URL by combining the baseURL with the requestedURL,
659 * only when the requestedURL is not already an absolute URL.
660 * If the requestURL is absolute, this function returns the requestedURL untouched.
661 *
662 * @param {string} baseURL The base URL
663 * @param {string} requestedURL Absolute or relative URL to combine
664 * @returns {string} The combined full path
665 */
666module.exports = function buildFullPath(baseURL, requestedURL) {
667 if (baseURL && !isAbsoluteURL(requestedURL)) {
668 return combineURLs(baseURL, requestedURL);
669 }
670 return requestedURL;
671};
672
673
674/***/ }),
675
676/***/ "./node_modules/axios/lib/core/createError.js":
677/*!****************************************************!*\
678 !*** ./node_modules/axios/lib/core/createError.js ***!
679 \****************************************************/
680/*! no static exports found */
681/***/ (function(module, exports, __webpack_require__) {
682
683"use strict";
684
685
686var enhanceError = __webpack_require__(/*! ./enhanceError */ "./node_modules/axios/lib/core/enhanceError.js");
687
688/**
689 * Create an Error with the specified message, config, error code, request and response.
690 *
691 * @param {string} message The error message.
692 * @param {Object} config The config.
693 * @param {string} [code] The error code (for example, 'ECONNABORTED').
694 * @param {Object} [request] The request.
695 * @param {Object} [response] The response.
696 * @returns {Error} The created error.
697 */
698module.exports = function createError(message, config, code, request, response) {
699 var error = new Error(message);
700 return enhanceError(error, config, code, request, response);
701};
702
703
704/***/ }),
705
706/***/ "./node_modules/axios/lib/core/dispatchRequest.js":
707/*!********************************************************!*\
708 !*** ./node_modules/axios/lib/core/dispatchRequest.js ***!
709 \********************************************************/
710/*! no static exports found */
711/***/ (function(module, exports, __webpack_require__) {
712
713"use strict";
714
715
716var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
717var transformData = __webpack_require__(/*! ./transformData */ "./node_modules/axios/lib/core/transformData.js");
718var isCancel = __webpack_require__(/*! ../cancel/isCancel */ "./node_modules/axios/lib/cancel/isCancel.js");
719var defaults = __webpack_require__(/*! ../defaults */ "./node_modules/axios/lib/defaults.js");
720
721/**
722 * Throws a `Cancel` if cancellation has been requested.
723 */
724function throwIfCancellationRequested(config) {
725 if (config.cancelToken) {
726 config.cancelToken.throwIfRequested();
727 }
728}
729
730/**
731 * Dispatch a request to the server using the configured adapter.
732 *
733 * @param {object} config The config that is to be used for the request
734 * @returns {Promise} The Promise to be fulfilled
735 */
736module.exports = function dispatchRequest(config) {
737 throwIfCancellationRequested(config);
738
739 // Ensure headers exist
740 config.headers = config.headers || {};
741
742 // Transform request data
743 config.data = transformData(
744 config.data,
745 config.headers,
746 config.transformRequest
747 );
748
749 // Flatten headers
750 config.headers = utils.merge(
751 config.headers.common || {},
752 config.headers[config.method] || {},
753 config.headers
754 );
755
756 utils.forEach(
757 ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],
758 function cleanHeaderConfig(method) {
759 delete config.headers[method];
760 }
761 );
762
763 var adapter = config.adapter || defaults.adapter;
764
765 return adapter(config).then(function onAdapterResolution(response) {
766 throwIfCancellationRequested(config);
767
768 // Transform response data
769 response.data = transformData(
770 response.data,
771 response.headers,
772 config.transformResponse
773 );
774
775 return response;
776 }, function onAdapterRejection(reason) {
777 if (!isCancel(reason)) {
778 throwIfCancellationRequested(config);
779
780 // Transform response data
781 if (reason && reason.response) {
782 reason.response.data = transformData(
783 reason.response.data,
784 reason.response.headers,
785 config.transformResponse
786 );
787 }
788 }
789
790 return Promise.reject(reason);
791 });
792};
793
794
795/***/ }),
796
797/***/ "./node_modules/axios/lib/core/enhanceError.js":
798/*!*****************************************************!*\
799 !*** ./node_modules/axios/lib/core/enhanceError.js ***!
800 \*****************************************************/
801/*! no static exports found */
802/***/ (function(module, exports, __webpack_require__) {
803
804"use strict";
805
806
807/**
808 * Update an Error with the specified config, error code, and response.
809 *
810 * @param {Error} error The error to update.
811 * @param {Object} config The config.
812 * @param {string} [code] The error code (for example, 'ECONNABORTED').
813 * @param {Object} [request] The request.
814 * @param {Object} [response] The response.
815 * @returns {Error} The error.
816 */
817module.exports = function enhanceError(error, config, code, request, response) {
818 error.config = config;
819 if (code) {
820 error.code = code;
821 }
822
823 error.request = request;
824 error.response = response;
825 error.isAxiosError = true;
826
827 error.toJSON = function() {
828 return {
829 // Standard
830 message: this.message,
831 name: this.name,
832 // Microsoft
833 description: this.description,
834 number: this.number,
835 // Mozilla
836 fileName: this.fileName,
837 lineNumber: this.lineNumber,
838 columnNumber: this.columnNumber,
839 stack: this.stack,
840 // Axios
841 config: this.config,
842 code: this.code
843 };
844 };
845 return error;
846};
847
848
849/***/ }),
850
851/***/ "./node_modules/axios/lib/core/mergeConfig.js":
852/*!****************************************************!*\
853 !*** ./node_modules/axios/lib/core/mergeConfig.js ***!
854 \****************************************************/
855/*! no static exports found */
856/***/ (function(module, exports, __webpack_require__) {
857
858"use strict";
859
860
861var utils = __webpack_require__(/*! ../utils */ "./node_modules/axios/lib/utils.js");
862
863/**
864 * Config-specific merge-function which creates a new config-object
865 * by merging two configuration objects together.
866 *
867 * @param {Object} config1
868 * @param {Object} config2
869 * @returns {Object} New object resulting from merging config2 to config1
870 */
871module.exports = function mergeConfig(config1, config2) {
872 // eslint-disable-next-line no-param-reassign
873 config2 = config2 || {};
874 var config = {};
875
876 var valueFromConfig2Keys = ['url', 'method', 'params', 'data'];
877 var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy'];
878 var defaultToConfig2Keys = [
879 'baseURL', 'url', 'transformRequest', 'transformResponse', 'paramsSerializer',
880 'timeout', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName',
881 'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress',
882 'maxContentLength', 'validateStatus', 'maxRedirects', 'httpAgent',
883 'httpsAgent', 'cancelToken', 'socketPath'
884 ];
885
886 utils.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {
887 if (typeof config2[prop] !== 'undefined') {
888 config[prop] = config2[prop];
889 }
890 });
891
892 utils.forEach(mergeDeepPropertiesKeys, function mergeDeepProperties(prop) {
893 if (utils.isObject(config2[prop])) {
894 config[prop] = utils.deepMerge(config1[prop], config2[prop]);
895 } else if (typeof config2[prop] !== 'undefined') {
896 config[prop] = config2[prop];
897 } else if (utils.isObject(config1[prop])) {
898 config[prop] = utils.deepMerge(config1[prop]);
899 } else if (typeof config1[prop] !== 'undefined') {
900 config[prop] = config1[prop];
901 }
902 });
903
904 utils.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {
905 if (typeof config2[prop] !== 'undefined') {
906 config[prop] = config2[prop];
907 } else if (typeof config1[prop] !== 'undefined') {
908 config[prop] = config1[prop];
909 }
910 });
911
912 var axiosKeys = valueFromConfig2Keys
913 .concat(mergeDeepPropertiesKeys)
914 .concat(defaultToConfig2Keys);
915
916 var otherKeys = Object
917 .keys(config2)
918 .filter(function filterAxiosKeys(key) {
919 return axiosKeys.indexOf(key) === -1;
920 });
921
922 utils.forEach(otherKeys, function otherKeysDefaultToConfig2(prop) {
923 if (typeof config2[prop] !== 'undefined') {
924 config[prop] = config2[prop];
925 } else if (typeof config1[prop] !== 'undefined') {
926 config[prop] = config1[prop];
927 }
928 });
929
930 return config;
931};
932
933
934/***/ }),
935
936/***/ "./node_modules/axios/lib/core/settle.js":
937/*!***********************************************!*\
938 !*** ./node_modules/axios/lib/core/settle.js ***!
939 \***********************************************/
940/*! no static exports found */
941/***/ (function(module, exports, __webpack_require__) {
942
943"use strict";
944
945
946var createError = __webpack_require__(/*! ./createError */ "./node_modules/axios/lib/core/createError.js");
947
948/**
949 * Resolve or reject a Promise based on response status.
950 *
951 * @param {Function} resolve A function that resolves the promise.
952 * @param {Function} reject A function that rejects the promise.
953 * @param {object} response The response.
954 */
955module.exports = function settle(resolve, reject, response) {
956 var validateStatus = response.config.validateStatus;
957 if (!validateStatus || validateStatus(response.status)) {
958 resolve(response);
959 } else {
960 reject(createError(
961 'Request failed with status code ' + response.status,
962 response.config,
963 null,
964 response.request,
965 response
966 ));
967 }
968};
969
970
971/***/ }),
972
973/***/ "./node_modules/axios/lib/core/transformData.js":
974/*!******************************************************!*\
975 !*** ./node_modules/axios/lib/core/transformData.js ***!
976 \******************************************************/
977/*! no static exports found */
978/***/ (function(module, exports, __webpack_require__) {
979
980"use strict";
981
982
983var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
984
985/**
986 * Transform the data for a request or a response
987 *
988 * @param {Object|String} data The data to be transformed
989 * @param {Array} headers The headers for the request or response
990 * @param {Array|Function} fns A single function or Array of functions
991 * @returns {*} The resulting transformed data
992 */
993module.exports = function transformData(data, headers, fns) {
994 /*eslint no-param-reassign:0*/
995 utils.forEach(fns, function transform(fn) {
996 data = fn(data, headers);
997 });
998
999 return data;
1000};
1001
1002
1003/***/ }),
1004
1005/***/ "./node_modules/axios/lib/defaults.js":
1006/*!********************************************!*\
1007 !*** ./node_modules/axios/lib/defaults.js ***!
1008 \********************************************/
1009/*! no static exports found */
1010/***/ (function(module, exports, __webpack_require__) {
1011
1012"use strict";
1013/* WEBPACK VAR INJECTION */(function(process) {
1014
1015var utils = __webpack_require__(/*! ./utils */ "./node_modules/axios/lib/utils.js");
1016var normalizeHeaderName = __webpack_require__(/*! ./helpers/normalizeHeaderName */ "./node_modules/axios/lib/helpers/normalizeHeaderName.js");
1017
1018var DEFAULT_CONTENT_TYPE = {
1019 'Content-Type': 'application/x-www-form-urlencoded'
1020};
1021
1022function setContentTypeIfUnset(headers, value) {
1023 if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {
1024 headers['Content-Type'] = value;
1025 }
1026}