ui-process-h5 0.1.10 → 0.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.umd.js CHANGED
@@ -131,18 +131,3497 @@ if (typeof window !== 'undefined') {
131
131
 
132
132
  // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
133
133
  var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(203);
134
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-86.use[2]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[4]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/process/src/process.vue?vue&type=template&id=3eeea49c&ts=true
134
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-86.use[2]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[4]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/process/src/process.vue?vue&type=template&id=24ab431a&ts=true
135
135
 
136
136
  const _hoisted_1 = {
137
137
  class: "process-warp"
138
138
  };
139
+ const _hoisted_2 = {
140
+ key: 0,
141
+ class: "process-main"
142
+ };
143
+ const _hoisted_3 = {
144
+ class: "process-ml-item border"
145
+ };
146
+ const _hoisted_4 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
147
+ class: "process-mli-name"
148
+ }, "流程状态", -1);
149
+ const _hoisted_5 = {
150
+ class: "process-mli-value"
151
+ };
152
+ const _hoisted_6 = {
153
+ class: "process-ml-item border"
154
+ };
155
+ const _hoisted_7 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
156
+ class: "process-mli-name"
157
+ }, "流程发起时间", -1);
158
+ const _hoisted_8 = {
159
+ class: "process-mli-value"
160
+ };
161
+ const _hoisted_9 = {
162
+ key: 0,
163
+ class: "process-ml-item"
164
+ };
165
+ const _hoisted_10 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
166
+ class: "process-mli-name"
167
+ }, "审批节点", -1);
168
+ const _hoisted_11 = {
169
+ class: "process-mli-value"
170
+ };
171
+ const _hoisted_12 = {
172
+ class: "process-mliv-jd"
173
+ };
139
174
  function render(_ctx, _cache, $props, $setup, $data, $options) {
140
- return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", _hoisted_1, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(_ctx.host) + " ", 1);
175
+ return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", _hoisted_1, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($setup.HOST) + " " + (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($setup.BASE) + " ", 1), $setup.processStatus.status ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", _hoisted_2, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", _hoisted_3, [_hoisted_4, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", _hoisted_5, [$setup.processStatus.status || $setup.processStatus.bizStatusName ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
176
+ key: 0,
177
+ class: "process-mliv-dd",
178
+ style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)({
179
+ background: $options.getColor($setup.processStatus.status)
180
+ })
181
+ }, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($setup.processStatus.bizStatusName ? $setup.processStatus.bizStatusName : $setup.processStatus.status), 5)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)])]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", _hoisted_6, [_hoisted_7, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", _hoisted_8, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($setup.processStatus.createTime), 1)])]), $setup.processStatus.allUserNames && $setup.processStatus.allUserNames.length ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", _hoisted_9, [_hoisted_10, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", _hoisted_11, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", _hoisted_12, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(`${$setup.processStatus.taskState == 4 ? $setup.processStatus.currUserName : $setup.processStatus.allUserNames.toString()}审批中`), 1)])])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)]);
182
+ }
183
+ ;// CONCATENATED MODULE: ./packages/process/src/process.vue?vue&type=template&id=24ab431a&ts=true
184
+
185
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/bind.js
186
+
187
+
188
+ function bind(fn, thisArg) {
189
+ return function wrap() {
190
+ return fn.apply(thisArg, arguments);
191
+ };
192
+ }
193
+
194
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/utils.js
195
+
196
+
197
+
198
+
199
+ // utils is a library of generic helper functions non-specific to axios
200
+
201
+ const {toString: utils_toString} = Object.prototype;
202
+ const {getPrototypeOf} = Object;
203
+
204
+ const kindOf = (cache => thing => {
205
+ const str = utils_toString.call(thing);
206
+ return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
207
+ })(Object.create(null));
208
+
209
+ const kindOfTest = (type) => {
210
+ type = type.toLowerCase();
211
+ return (thing) => kindOf(thing) === type
212
+ }
213
+
214
+ const typeOfTest = type => thing => typeof thing === type;
215
+
216
+ /**
217
+ * Determine if a value is an Array
218
+ *
219
+ * @param {Object} val The value to test
220
+ *
221
+ * @returns {boolean} True if value is an Array, otherwise false
222
+ */
223
+ const {isArray} = Array;
224
+
225
+ /**
226
+ * Determine if a value is undefined
227
+ *
228
+ * @param {*} val The value to test
229
+ *
230
+ * @returns {boolean} True if the value is undefined, otherwise false
231
+ */
232
+ const isUndefined = typeOfTest('undefined');
233
+
234
+ /**
235
+ * Determine if a value is a Buffer
236
+ *
237
+ * @param {*} val The value to test
238
+ *
239
+ * @returns {boolean} True if value is a Buffer, otherwise false
240
+ */
241
+ function isBuffer(val) {
242
+ return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)
243
+ && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);
244
+ }
245
+
246
+ /**
247
+ * Determine if a value is an ArrayBuffer
248
+ *
249
+ * @param {*} val The value to test
250
+ *
251
+ * @returns {boolean} True if value is an ArrayBuffer, otherwise false
252
+ */
253
+ const isArrayBuffer = kindOfTest('ArrayBuffer');
254
+
255
+
256
+ /**
257
+ * Determine if a value is a view on an ArrayBuffer
258
+ *
259
+ * @param {*} val The value to test
260
+ *
261
+ * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false
262
+ */
263
+ function isArrayBufferView(val) {
264
+ let result;
265
+ if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {
266
+ result = ArrayBuffer.isView(val);
267
+ } else {
268
+ result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));
269
+ }
270
+ return result;
271
+ }
272
+
273
+ /**
274
+ * Determine if a value is a String
275
+ *
276
+ * @param {*} val The value to test
277
+ *
278
+ * @returns {boolean} True if value is a String, otherwise false
279
+ */
280
+ const isString = typeOfTest('string');
281
+
282
+ /**
283
+ * Determine if a value is a Function
284
+ *
285
+ * @param {*} val The value to test
286
+ * @returns {boolean} True if value is a Function, otherwise false
287
+ */
288
+ const isFunction = typeOfTest('function');
289
+
290
+ /**
291
+ * Determine if a value is a Number
292
+ *
293
+ * @param {*} val The value to test
294
+ *
295
+ * @returns {boolean} True if value is a Number, otherwise false
296
+ */
297
+ const isNumber = typeOfTest('number');
298
+
299
+ /**
300
+ * Determine if a value is an Object
301
+ *
302
+ * @param {*} thing The value to test
303
+ *
304
+ * @returns {boolean} True if value is an Object, otherwise false
305
+ */
306
+ const isObject = (thing) => thing !== null && typeof thing === 'object';
307
+
308
+ /**
309
+ * Determine if a value is a Boolean
310
+ *
311
+ * @param {*} thing The value to test
312
+ * @returns {boolean} True if value is a Boolean, otherwise false
313
+ */
314
+ const isBoolean = thing => thing === true || thing === false;
315
+
316
+ /**
317
+ * Determine if a value is a plain Object
318
+ *
319
+ * @param {*} val The value to test
320
+ *
321
+ * @returns {boolean} True if value is a plain Object, otherwise false
322
+ */
323
+ const isPlainObject = (val) => {
324
+ if (kindOf(val) !== 'object') {
325
+ return false;
326
+ }
327
+
328
+ const prototype = getPrototypeOf(val);
329
+ return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);
330
+ }
331
+
332
+ /**
333
+ * Determine if a value is a Date
334
+ *
335
+ * @param {*} val The value to test
336
+ *
337
+ * @returns {boolean} True if value is a Date, otherwise false
338
+ */
339
+ const isDate = kindOfTest('Date');
340
+
341
+ /**
342
+ * Determine if a value is a File
343
+ *
344
+ * @param {*} val The value to test
345
+ *
346
+ * @returns {boolean} True if value is a File, otherwise false
347
+ */
348
+ const isFile = kindOfTest('File');
349
+
350
+ /**
351
+ * Determine if a value is a Blob
352
+ *
353
+ * @param {*} val The value to test
354
+ *
355
+ * @returns {boolean} True if value is a Blob, otherwise false
356
+ */
357
+ const isBlob = kindOfTest('Blob');
358
+
359
+ /**
360
+ * Determine if a value is a FileList
361
+ *
362
+ * @param {*} val The value to test
363
+ *
364
+ * @returns {boolean} True if value is a File, otherwise false
365
+ */
366
+ const isFileList = kindOfTest('FileList');
367
+
368
+ /**
369
+ * Determine if a value is a Stream
370
+ *
371
+ * @param {*} val The value to test
372
+ *
373
+ * @returns {boolean} True if value is a Stream, otherwise false
374
+ */
375
+ const isStream = (val) => isObject(val) && isFunction(val.pipe);
376
+
377
+ /**
378
+ * Determine if a value is a FormData
379
+ *
380
+ * @param {*} thing The value to test
381
+ *
382
+ * @returns {boolean} True if value is an FormData, otherwise false
383
+ */
384
+ const isFormData = (thing) => {
385
+ const pattern = '[object FormData]';
386
+ return thing && (
387
+ (typeof FormData === 'function' && thing instanceof FormData) ||
388
+ utils_toString.call(thing) === pattern ||
389
+ (isFunction(thing.toString) && thing.toString() === pattern)
390
+ );
391
+ }
392
+
393
+ /**
394
+ * Determine if a value is a URLSearchParams object
395
+ *
396
+ * @param {*} val The value to test
397
+ *
398
+ * @returns {boolean} True if value is a URLSearchParams object, otherwise false
399
+ */
400
+ const isURLSearchParams = kindOfTest('URLSearchParams');
401
+
402
+ /**
403
+ * Trim excess whitespace off the beginning and end of a string
404
+ *
405
+ * @param {String} str The String to trim
406
+ *
407
+ * @returns {String} The String freed of excess whitespace
408
+ */
409
+ const trim = (str) => str.trim ?
410
+ str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '');
411
+
412
+ /**
413
+ * Iterate over an Array or an Object invoking a function for each item.
414
+ *
415
+ * If `obj` is an Array callback will be called passing
416
+ * the value, index, and complete array for each item.
417
+ *
418
+ * If 'obj' is an Object callback will be called passing
419
+ * the value, key, and complete object for each property.
420
+ *
421
+ * @param {Object|Array} obj The object to iterate
422
+ * @param {Function} fn The callback to invoke for each item
423
+ *
424
+ * @param {Boolean} [allOwnKeys = false]
425
+ * @returns {any}
426
+ */
427
+ function forEach(obj, fn, {allOwnKeys = false} = {}) {
428
+ // Don't bother if no value provided
429
+ if (obj === null || typeof obj === 'undefined') {
430
+ return;
431
+ }
432
+
433
+ let i;
434
+ let l;
435
+
436
+ // Force an array if not already something iterable
437
+ if (typeof obj !== 'object') {
438
+ /*eslint no-param-reassign:0*/
439
+ obj = [obj];
440
+ }
441
+
442
+ if (isArray(obj)) {
443
+ // Iterate over array values
444
+ for (i = 0, l = obj.length; i < l; i++) {
445
+ fn.call(null, obj[i], i, obj);
446
+ }
447
+ } else {
448
+ // Iterate over object keys
449
+ const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);
450
+ const len = keys.length;
451
+ let key;
452
+
453
+ for (i = 0; i < len; i++) {
454
+ key = keys[i];
455
+ fn.call(null, obj[key], key, obj);
456
+ }
457
+ }
458
+ }
459
+
460
+ function findKey(obj, key) {
461
+ key = key.toLowerCase();
462
+ const keys = Object.keys(obj);
463
+ let i = keys.length;
464
+ let _key;
465
+ while (i-- > 0) {
466
+ _key = keys[i];
467
+ if (key === _key.toLowerCase()) {
468
+ return _key;
469
+ }
470
+ }
471
+ return null;
472
+ }
473
+
474
+ const _global = (() => {
475
+ /*eslint no-undef:0*/
476
+ if (typeof globalThis !== "undefined") return globalThis;
477
+ return typeof self !== "undefined" ? self : (typeof window !== 'undefined' ? window : global)
478
+ })();
479
+
480
+ const isContextDefined = (context) => !isUndefined(context) && context !== _global;
481
+
482
+ /**
483
+ * Accepts varargs expecting each argument to be an object, then
484
+ * immutably merges the properties of each object and returns result.
485
+ *
486
+ * When multiple objects contain the same key the later object in
487
+ * the arguments list will take precedence.
488
+ *
489
+ * Example:
490
+ *
491
+ * ```js
492
+ * var result = merge({foo: 123}, {foo: 456});
493
+ * console.log(result.foo); // outputs 456
494
+ * ```
495
+ *
496
+ * @param {Object} obj1 Object to merge
497
+ *
498
+ * @returns {Object} Result of all merge properties
499
+ */
500
+ function merge(/* obj1, obj2, obj3, ... */) {
501
+ const {caseless} = isContextDefined(this) && this || {};
502
+ const result = {};
503
+ const assignValue = (val, key) => {
504
+ const targetKey = caseless && findKey(result, key) || key;
505
+ if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
506
+ result[targetKey] = merge(result[targetKey], val);
507
+ } else if (isPlainObject(val)) {
508
+ result[targetKey] = merge({}, val);
509
+ } else if (isArray(val)) {
510
+ result[targetKey] = val.slice();
511
+ } else {
512
+ result[targetKey] = val;
513
+ }
514
+ }
515
+
516
+ for (let i = 0, l = arguments.length; i < l; i++) {
517
+ arguments[i] && forEach(arguments[i], assignValue);
518
+ }
519
+ return result;
520
+ }
521
+
522
+ /**
523
+ * Extends object a by mutably adding to it the properties of object b.
524
+ *
525
+ * @param {Object} a The object to be extended
526
+ * @param {Object} b The object to copy properties from
527
+ * @param {Object} thisArg The object to bind function to
528
+ *
529
+ * @param {Boolean} [allOwnKeys]
530
+ * @returns {Object} The resulting value of object a
531
+ */
532
+ const extend = (a, b, thisArg, {allOwnKeys}= {}) => {
533
+ forEach(b, (val, key) => {
534
+ if (thisArg && isFunction(val)) {
535
+ a[key] = bind(val, thisArg);
536
+ } else {
537
+ a[key] = val;
538
+ }
539
+ }, {allOwnKeys});
540
+ return a;
541
+ }
542
+
543
+ /**
544
+ * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)
545
+ *
546
+ * @param {string} content with BOM
547
+ *
548
+ * @returns {string} content value without BOM
549
+ */
550
+ const stripBOM = (content) => {
551
+ if (content.charCodeAt(0) === 0xFEFF) {
552
+ content = content.slice(1);
553
+ }
554
+ return content;
555
+ }
556
+
557
+ /**
558
+ * Inherit the prototype methods from one constructor into another
559
+ * @param {function} constructor
560
+ * @param {function} superConstructor
561
+ * @param {object} [props]
562
+ * @param {object} [descriptors]
563
+ *
564
+ * @returns {void}
565
+ */
566
+ const inherits = (constructor, superConstructor, props, descriptors) => {
567
+ constructor.prototype = Object.create(superConstructor.prototype, descriptors);
568
+ constructor.prototype.constructor = constructor;
569
+ Object.defineProperty(constructor, 'super', {
570
+ value: superConstructor.prototype
571
+ });
572
+ props && Object.assign(constructor.prototype, props);
573
+ }
574
+
575
+ /**
576
+ * Resolve object with deep prototype chain to a flat object
577
+ * @param {Object} sourceObj source object
578
+ * @param {Object} [destObj]
579
+ * @param {Function|Boolean} [filter]
580
+ * @param {Function} [propFilter]
581
+ *
582
+ * @returns {Object}
583
+ */
584
+ const toFlatObject = (sourceObj, destObj, filter, propFilter) => {
585
+ let props;
586
+ let i;
587
+ let prop;
588
+ const merged = {};
589
+
590
+ destObj = destObj || {};
591
+ // eslint-disable-next-line no-eq-null,eqeqeq
592
+ if (sourceObj == null) return destObj;
593
+
594
+ do {
595
+ props = Object.getOwnPropertyNames(sourceObj);
596
+ i = props.length;
597
+ while (i-- > 0) {
598
+ prop = props[i];
599
+ if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {
600
+ destObj[prop] = sourceObj[prop];
601
+ merged[prop] = true;
602
+ }
603
+ }
604
+ sourceObj = filter !== false && getPrototypeOf(sourceObj);
605
+ } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);
606
+
607
+ return destObj;
608
+ }
609
+
610
+ /**
611
+ * Determines whether a string ends with the characters of a specified string
612
+ *
613
+ * @param {String} str
614
+ * @param {String} searchString
615
+ * @param {Number} [position= 0]
616
+ *
617
+ * @returns {boolean}
618
+ */
619
+ const endsWith = (str, searchString, position) => {
620
+ str = String(str);
621
+ if (position === undefined || position > str.length) {
622
+ position = str.length;
623
+ }
624
+ position -= searchString.length;
625
+ const lastIndex = str.indexOf(searchString, position);
626
+ return lastIndex !== -1 && lastIndex === position;
627
+ }
628
+
629
+
630
+ /**
631
+ * Returns new array from array like object or null if failed
632
+ *
633
+ * @param {*} [thing]
634
+ *
635
+ * @returns {?Array}
636
+ */
637
+ const toArray = (thing) => {
638
+ if (!thing) return null;
639
+ if (isArray(thing)) return thing;
640
+ let i = thing.length;
641
+ if (!isNumber(i)) return null;
642
+ const arr = new Array(i);
643
+ while (i-- > 0) {
644
+ arr[i] = thing[i];
645
+ }
646
+ return arr;
647
+ }
648
+
649
+ /**
650
+ * Checking if the Uint8Array exists and if it does, it returns a function that checks if the
651
+ * thing passed in is an instance of Uint8Array
652
+ *
653
+ * @param {TypedArray}
654
+ *
655
+ * @returns {Array}
656
+ */
657
+ // eslint-disable-next-line func-names
658
+ const isTypedArray = (TypedArray => {
659
+ // eslint-disable-next-line func-names
660
+ return thing => {
661
+ return TypedArray && thing instanceof TypedArray;
662
+ };
663
+ })(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array));
664
+
665
+ /**
666
+ * For each entry in the object, call the function with the key and value.
667
+ *
668
+ * @param {Object<any, any>} obj - The object to iterate over.
669
+ * @param {Function} fn - The function to call for each entry.
670
+ *
671
+ * @returns {void}
672
+ */
673
+ const forEachEntry = (obj, fn) => {
674
+ const generator = obj && obj[Symbol.iterator];
675
+
676
+ const iterator = generator.call(obj);
677
+
678
+ let result;
679
+
680
+ while ((result = iterator.next()) && !result.done) {
681
+ const pair = result.value;
682
+ fn.call(obj, pair[0], pair[1]);
683
+ }
684
+ }
685
+
686
+ /**
687
+ * It takes a regular expression and a string, and returns an array of all the matches
688
+ *
689
+ * @param {string} regExp - The regular expression to match against.
690
+ * @param {string} str - The string to search.
691
+ *
692
+ * @returns {Array<boolean>}
693
+ */
694
+ const matchAll = (regExp, str) => {
695
+ let matches;
696
+ const arr = [];
697
+
698
+ while ((matches = regExp.exec(str)) !== null) {
699
+ arr.push(matches);
700
+ }
701
+
702
+ return arr;
703
+ }
704
+
705
+ /* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */
706
+ const isHTMLForm = kindOfTest('HTMLFormElement');
707
+
708
+ const toCamelCase = str => {
709
+ return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,
710
+ function replacer(m, p1, p2) {
711
+ return p1.toUpperCase() + p2;
712
+ }
713
+ );
714
+ };
715
+
716
+ /* Creating a function that will check if an object has a property. */
717
+ const utils_hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);
718
+
719
+ /**
720
+ * Determine if a value is a RegExp object
721
+ *
722
+ * @param {*} val The value to test
723
+ *
724
+ * @returns {boolean} True if value is a RegExp object, otherwise false
725
+ */
726
+ const isRegExp = kindOfTest('RegExp');
727
+
728
+ const reduceDescriptors = (obj, reducer) => {
729
+ const descriptors = Object.getOwnPropertyDescriptors(obj);
730
+ const reducedDescriptors = {};
731
+
732
+ forEach(descriptors, (descriptor, name) => {
733
+ if (reducer(descriptor, name, obj) !== false) {
734
+ reducedDescriptors[name] = descriptor;
735
+ }
736
+ });
737
+
738
+ Object.defineProperties(obj, reducedDescriptors);
739
+ }
740
+
741
+ /**
742
+ * Makes all methods read-only
743
+ * @param {Object} obj
744
+ */
745
+
746
+ const freezeMethods = (obj) => {
747
+ reduceDescriptors(obj, (descriptor, name) => {
748
+ // skip restricted props in strict mode
749
+ if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {
750
+ return false;
751
+ }
752
+
753
+ const value = obj[name];
754
+
755
+ if (!isFunction(value)) return;
756
+
757
+ descriptor.enumerable = false;
758
+
759
+ if ('writable' in descriptor) {
760
+ descriptor.writable = false;
761
+ return;
762
+ }
763
+
764
+ if (!descriptor.set) {
765
+ descriptor.set = () => {
766
+ throw Error('Can not rewrite read-only method \'' + name + '\'');
767
+ };
768
+ }
769
+ });
770
+ }
771
+
772
+ const toObjectSet = (arrayOrString, delimiter) => {
773
+ const obj = {};
774
+
775
+ const define = (arr) => {
776
+ arr.forEach(value => {
777
+ obj[value] = true;
778
+ });
779
+ }
780
+
781
+ isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));
782
+
783
+ return obj;
784
+ }
785
+
786
+ const noop = () => {}
787
+
788
+ const toFiniteNumber = (value, defaultValue) => {
789
+ value = +value;
790
+ return Number.isFinite(value) ? value : defaultValue;
791
+ }
792
+
793
+ const ALPHA = 'abcdefghijklmnopqrstuvwxyz'
794
+
795
+ const DIGIT = '0123456789';
796
+
797
+ const ALPHABET = {
798
+ DIGIT,
799
+ ALPHA,
800
+ ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
801
+ }
802
+
803
+ const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
804
+ let str = '';
805
+ const {length} = alphabet;
806
+ while (size--) {
807
+ str += alphabet[Math.random() * length|0]
808
+ }
809
+
810
+ return str;
811
+ }
812
+
813
+ /**
814
+ * If the thing is a FormData object, return true, otherwise return false.
815
+ *
816
+ * @param {unknown} thing - The thing to check.
817
+ *
818
+ * @returns {boolean}
819
+ */
820
+ function isSpecCompliantForm(thing) {
821
+ return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator]);
822
+ }
823
+
824
+ const toJSONObject = (obj) => {
825
+ const stack = new Array(10);
826
+
827
+ const visit = (source, i) => {
828
+
829
+ if (isObject(source)) {
830
+ if (stack.indexOf(source) >= 0) {
831
+ return;
832
+ }
833
+
834
+ if(!('toJSON' in source)) {
835
+ stack[i] = source;
836
+ const target = isArray(source) ? [] : {};
837
+
838
+ forEach(source, (value, key) => {
839
+ const reducedValue = visit(value, i + 1);
840
+ !isUndefined(reducedValue) && (target[key] = reducedValue);
841
+ });
842
+
843
+ stack[i] = undefined;
844
+
845
+ return target;
846
+ }
847
+ }
848
+
849
+ return source;
850
+ }
851
+
852
+ return visit(obj, 0);
853
+ }
854
+
855
+ /* harmony default export */ var utils = ({
856
+ isArray,
857
+ isArrayBuffer,
858
+ isBuffer,
859
+ isFormData,
860
+ isArrayBufferView,
861
+ isString,
862
+ isNumber,
863
+ isBoolean,
864
+ isObject,
865
+ isPlainObject,
866
+ isUndefined,
867
+ isDate,
868
+ isFile,
869
+ isBlob,
870
+ isRegExp,
871
+ isFunction,
872
+ isStream,
873
+ isURLSearchParams,
874
+ isTypedArray,
875
+ isFileList,
876
+ forEach,
877
+ merge,
878
+ extend,
879
+ trim,
880
+ stripBOM,
881
+ inherits,
882
+ toFlatObject,
883
+ kindOf,
884
+ kindOfTest,
885
+ endsWith,
886
+ toArray,
887
+ forEachEntry,
888
+ matchAll,
889
+ isHTMLForm,
890
+ hasOwnProperty: utils_hasOwnProperty,
891
+ hasOwnProp: utils_hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection
892
+ reduceDescriptors,
893
+ freezeMethods,
894
+ toObjectSet,
895
+ toCamelCase,
896
+ noop,
897
+ toFiniteNumber,
898
+ findKey,
899
+ global: _global,
900
+ isContextDefined,
901
+ ALPHABET,
902
+ generateString,
903
+ isSpecCompliantForm,
904
+ toJSONObject
905
+ });
906
+
907
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/core/AxiosError.js
908
+
909
+
910
+
911
+
912
+ /**
913
+ * Create an Error with the specified message, config, error code, request and response.
914
+ *
915
+ * @param {string} message The error message.
916
+ * @param {string} [code] The error code (for example, 'ECONNABORTED').
917
+ * @param {Object} [config] The config.
918
+ * @param {Object} [request] The request.
919
+ * @param {Object} [response] The response.
920
+ *
921
+ * @returns {Error} The created error.
922
+ */
923
+ function AxiosError(message, code, config, request, response) {
924
+ Error.call(this);
925
+
926
+ if (Error.captureStackTrace) {
927
+ Error.captureStackTrace(this, this.constructor);
928
+ } else {
929
+ this.stack = (new Error()).stack;
930
+ }
931
+
932
+ this.message = message;
933
+ this.name = 'AxiosError';
934
+ code && (this.code = code);
935
+ config && (this.config = config);
936
+ request && (this.request = request);
937
+ response && (this.response = response);
938
+ }
939
+
940
+ utils.inherits(AxiosError, Error, {
941
+ toJSON: function toJSON() {
942
+ return {
943
+ // Standard
944
+ message: this.message,
945
+ name: this.name,
946
+ // Microsoft
947
+ description: this.description,
948
+ number: this.number,
949
+ // Mozilla
950
+ fileName: this.fileName,
951
+ lineNumber: this.lineNumber,
952
+ columnNumber: this.columnNumber,
953
+ stack: this.stack,
954
+ // Axios
955
+ config: utils.toJSONObject(this.config),
956
+ code: this.code,
957
+ status: this.response && this.response.status ? this.response.status : null
958
+ };
959
+ }
960
+ });
961
+
962
+ const AxiosError_prototype = AxiosError.prototype;
963
+ const descriptors = {};
964
+
965
+ [
966
+ 'ERR_BAD_OPTION_VALUE',
967
+ 'ERR_BAD_OPTION',
968
+ 'ECONNABORTED',
969
+ 'ETIMEDOUT',
970
+ 'ERR_NETWORK',
971
+ 'ERR_FR_TOO_MANY_REDIRECTS',
972
+ 'ERR_DEPRECATED',
973
+ 'ERR_BAD_RESPONSE',
974
+ 'ERR_BAD_REQUEST',
975
+ 'ERR_CANCELED',
976
+ 'ERR_NOT_SUPPORT',
977
+ 'ERR_INVALID_URL'
978
+ // eslint-disable-next-line func-names
979
+ ].forEach(code => {
980
+ descriptors[code] = {value: code};
981
+ });
982
+
983
+ Object.defineProperties(AxiosError, descriptors);
984
+ Object.defineProperty(AxiosError_prototype, 'isAxiosError', {value: true});
985
+
986
+ // eslint-disable-next-line func-names
987
+ AxiosError.from = (error, code, config, request, response, customProps) => {
988
+ const axiosError = Object.create(AxiosError_prototype);
989
+
990
+ utils.toFlatObject(error, axiosError, function filter(obj) {
991
+ return obj !== Error.prototype;
992
+ }, prop => {
993
+ return prop !== 'isAxiosError';
994
+ });
995
+
996
+ AxiosError.call(axiosError, error.message, code, config, request, response);
997
+
998
+ axiosError.cause = error;
999
+
1000
+ axiosError.name = error.name;
1001
+
1002
+ customProps && Object.assign(axiosError, customProps);
1003
+
1004
+ return axiosError;
1005
+ };
1006
+
1007
+ /* harmony default export */ var core_AxiosError = (AxiosError);
1008
+
1009
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/null.js
1010
+ // eslint-disable-next-line strict
1011
+ /* harmony default export */ var helpers_null = (null);
1012
+
1013
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/toFormData.js
1014
+
1015
+
1016
+
1017
+
1018
+ // temporary hotfix to avoid circular references until AxiosURLSearchParams is refactored
1019
+
1020
+
1021
+ /**
1022
+ * Determines if the given thing is a array or js object.
1023
+ *
1024
+ * @param {string} thing - The object or array to be visited.
1025
+ *
1026
+ * @returns {boolean}
1027
+ */
1028
+ function isVisitable(thing) {
1029
+ return utils.isPlainObject(thing) || utils.isArray(thing);
1030
+ }
1031
+
1032
+ /**
1033
+ * It removes the brackets from the end of a string
1034
+ *
1035
+ * @param {string} key - The key of the parameter.
1036
+ *
1037
+ * @returns {string} the key without the brackets.
1038
+ */
1039
+ function removeBrackets(key) {
1040
+ return utils.endsWith(key, '[]') ? key.slice(0, -2) : key;
1041
+ }
1042
+
1043
+ /**
1044
+ * It takes a path, a key, and a boolean, and returns a string
1045
+ *
1046
+ * @param {string} path - The path to the current key.
1047
+ * @param {string} key - The key of the current object being iterated over.
1048
+ * @param {string} dots - If true, the key will be rendered with dots instead of brackets.
1049
+ *
1050
+ * @returns {string} The path to the current key.
1051
+ */
1052
+ function renderKey(path, key, dots) {
1053
+ if (!path) return key;
1054
+ return path.concat(key).map(function each(token, i) {
1055
+ // eslint-disable-next-line no-param-reassign
1056
+ token = removeBrackets(token);
1057
+ return !dots && i ? '[' + token + ']' : token;
1058
+ }).join(dots ? '.' : '');
1059
+ }
1060
+
1061
+ /**
1062
+ * If the array is an array and none of its elements are visitable, then it's a flat array.
1063
+ *
1064
+ * @param {Array<any>} arr - The array to check
1065
+ *
1066
+ * @returns {boolean}
1067
+ */
1068
+ function isFlatArray(arr) {
1069
+ return utils.isArray(arr) && !arr.some(isVisitable);
1070
+ }
1071
+
1072
+ const predicates = utils.toFlatObject(utils, {}, null, function filter(prop) {
1073
+ return /^is[A-Z]/.test(prop);
1074
+ });
1075
+
1076
+ /**
1077
+ * Convert a data object to FormData
1078
+ *
1079
+ * @param {Object} obj
1080
+ * @param {?Object} [formData]
1081
+ * @param {?Object} [options]
1082
+ * @param {Function} [options.visitor]
1083
+ * @param {Boolean} [options.metaTokens = true]
1084
+ * @param {Boolean} [options.dots = false]
1085
+ * @param {?Boolean} [options.indexes = false]
1086
+ *
1087
+ * @returns {Object}
1088
+ **/
1089
+
1090
+ /**
1091
+ * It converts an object into a FormData object
1092
+ *
1093
+ * @param {Object<any, any>} obj - The object to convert to form data.
1094
+ * @param {string} formData - The FormData object to append to.
1095
+ * @param {Object<string, any>} options
1096
+ *
1097
+ * @returns
1098
+ */
1099
+ function toFormData(obj, formData, options) {
1100
+ if (!utils.isObject(obj)) {
1101
+ throw new TypeError('target must be an object');
1102
+ }
1103
+
1104
+ // eslint-disable-next-line no-param-reassign
1105
+ formData = formData || new (helpers_null || FormData)();
1106
+
1107
+ // eslint-disable-next-line no-param-reassign
1108
+ options = utils.toFlatObject(options, {
1109
+ metaTokens: true,
1110
+ dots: false,
1111
+ indexes: false
1112
+ }, false, function defined(option, source) {
1113
+ // eslint-disable-next-line no-eq-null,eqeqeq
1114
+ return !utils.isUndefined(source[option]);
1115
+ });
1116
+
1117
+ const metaTokens = options.metaTokens;
1118
+ // eslint-disable-next-line no-use-before-define
1119
+ const visitor = options.visitor || defaultVisitor;
1120
+ const dots = options.dots;
1121
+ const indexes = options.indexes;
1122
+ const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;
1123
+ const useBlob = _Blob && utils.isSpecCompliantForm(formData);
1124
+
1125
+ if (!utils.isFunction(visitor)) {
1126
+ throw new TypeError('visitor must be a function');
1127
+ }
1128
+
1129
+ function convertValue(value) {
1130
+ if (value === null) return '';
1131
+
1132
+ if (utils.isDate(value)) {
1133
+ return value.toISOString();
1134
+ }
1135
+
1136
+ if (!useBlob && utils.isBlob(value)) {
1137
+ throw new core_AxiosError('Blob is not supported. Use a Buffer instead.');
1138
+ }
1139
+
1140
+ if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) {
1141
+ return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);
1142
+ }
1143
+
1144
+ return value;
1145
+ }
1146
+
1147
+ /**
1148
+ * Default visitor.
1149
+ *
1150
+ * @param {*} value
1151
+ * @param {String|Number} key
1152
+ * @param {Array<String|Number>} path
1153
+ * @this {FormData}
1154
+ *
1155
+ * @returns {boolean} return true to visit the each prop of the value recursively
1156
+ */
1157
+ function defaultVisitor(value, key, path) {
1158
+ let arr = value;
1159
+
1160
+ if (value && !path && typeof value === 'object') {
1161
+ if (utils.endsWith(key, '{}')) {
1162
+ // eslint-disable-next-line no-param-reassign
1163
+ key = metaTokens ? key : key.slice(0, -2);
1164
+ // eslint-disable-next-line no-param-reassign
1165
+ value = JSON.stringify(value);
1166
+ } else if (
1167
+ (utils.isArray(value) && isFlatArray(value)) ||
1168
+ ((utils.isFileList(value) || utils.endsWith(key, '[]')) && (arr = utils.toArray(value))
1169
+ )) {
1170
+ // eslint-disable-next-line no-param-reassign
1171
+ key = removeBrackets(key);
1172
+
1173
+ arr.forEach(function each(el, index) {
1174
+ !(utils.isUndefined(el) || el === null) && formData.append(
1175
+ // eslint-disable-next-line no-nested-ternary
1176
+ indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'),
1177
+ convertValue(el)
1178
+ );
1179
+ });
1180
+ return false;
1181
+ }
1182
+ }
1183
+
1184
+ if (isVisitable(value)) {
1185
+ return true;
1186
+ }
1187
+
1188
+ formData.append(renderKey(path, key, dots), convertValue(value));
1189
+
1190
+ return false;
1191
+ }
1192
+
1193
+ const stack = [];
1194
+
1195
+ const exposedHelpers = Object.assign(predicates, {
1196
+ defaultVisitor,
1197
+ convertValue,
1198
+ isVisitable
1199
+ });
1200
+
1201
+ function build(value, path) {
1202
+ if (utils.isUndefined(value)) return;
1203
+
1204
+ if (stack.indexOf(value) !== -1) {
1205
+ throw Error('Circular reference detected in ' + path.join('.'));
1206
+ }
1207
+
1208
+ stack.push(value);
1209
+
1210
+ utils.forEach(value, function each(el, key) {
1211
+ const result = !(utils.isUndefined(el) || el === null) && visitor.call(
1212
+ formData, el, utils.isString(key) ? key.trim() : key, path, exposedHelpers
1213
+ );
1214
+
1215
+ if (result === true) {
1216
+ build(el, path ? path.concat(key) : [key]);
1217
+ }
1218
+ });
1219
+
1220
+ stack.pop();
1221
+ }
1222
+
1223
+ if (!utils.isObject(obj)) {
1224
+ throw new TypeError('data must be an object');
1225
+ }
1226
+
1227
+ build(obj);
1228
+
1229
+ return formData;
1230
+ }
1231
+
1232
+ /* harmony default export */ var helpers_toFormData = (toFormData);
1233
+
1234
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/AxiosURLSearchParams.js
1235
+
1236
+
1237
+
1238
+
1239
+ /**
1240
+ * It encodes a string by replacing all characters that are not in the unreserved set with
1241
+ * their percent-encoded equivalents
1242
+ *
1243
+ * @param {string} str - The string to encode.
1244
+ *
1245
+ * @returns {string} The encoded string.
1246
+ */
1247
+ function encode(str) {
1248
+ const charMap = {
1249
+ '!': '%21',
1250
+ "'": '%27',
1251
+ '(': '%28',
1252
+ ')': '%29',
1253
+ '~': '%7E',
1254
+ '%20': '+',
1255
+ '%00': '\x00'
1256
+ };
1257
+ return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {
1258
+ return charMap[match];
1259
+ });
1260
+ }
1261
+
1262
+ /**
1263
+ * It takes a params object and converts it to a FormData object
1264
+ *
1265
+ * @param {Object<string, any>} params - The parameters to be converted to a FormData object.
1266
+ * @param {Object<string, any>} options - The options object passed to the Axios constructor.
1267
+ *
1268
+ * @returns {void}
1269
+ */
1270
+ function AxiosURLSearchParams(params, options) {
1271
+ this._pairs = [];
1272
+
1273
+ params && helpers_toFormData(params, this, options);
1274
+ }
1275
+
1276
+ const AxiosURLSearchParams_prototype = AxiosURLSearchParams.prototype;
1277
+
1278
+ AxiosURLSearchParams_prototype.append = function append(name, value) {
1279
+ this._pairs.push([name, value]);
1280
+ };
1281
+
1282
+ AxiosURLSearchParams_prototype.toString = function toString(encoder) {
1283
+ const _encode = encoder ? function(value) {
1284
+ return encoder.call(this, value, encode);
1285
+ } : encode;
1286
+
1287
+ return this._pairs.map(function each(pair) {
1288
+ return _encode(pair[0]) + '=' + _encode(pair[1]);
1289
+ }, '').join('&');
1290
+ };
1291
+
1292
+ /* harmony default export */ var helpers_AxiosURLSearchParams = (AxiosURLSearchParams);
1293
+
1294
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/buildURL.js
1295
+
1296
+
1297
+
1298
+
1299
+
1300
+ /**
1301
+ * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their
1302
+ * URI encoded counterparts
1303
+ *
1304
+ * @param {string} val The value to be encoded.
1305
+ *
1306
+ * @returns {string} The encoded value.
1307
+ */
1308
+ function buildURL_encode(val) {
1309
+ return encodeURIComponent(val).
1310
+ replace(/%3A/gi, ':').
1311
+ replace(/%24/g, '$').
1312
+ replace(/%2C/gi, ',').
1313
+ replace(/%20/g, '+').
1314
+ replace(/%5B/gi, '[').
1315
+ replace(/%5D/gi, ']');
1316
+ }
1317
+
1318
+ /**
1319
+ * Build a URL by appending params to the end
1320
+ *
1321
+ * @param {string} url The base of the url (e.g., http://www.google.com)
1322
+ * @param {object} [params] The params to be appended
1323
+ * @param {?object} options
1324
+ *
1325
+ * @returns {string} The formatted url
1326
+ */
1327
+ function buildURL(url, params, options) {
1328
+ /*eslint no-param-reassign:0*/
1329
+ if (!params) {
1330
+ return url;
1331
+ }
1332
+
1333
+ const _encode = options && options.encode || buildURL_encode;
1334
+
1335
+ const serializeFn = options && options.serialize;
1336
+
1337
+ let serializedParams;
1338
+
1339
+ if (serializeFn) {
1340
+ serializedParams = serializeFn(params, options);
1341
+ } else {
1342
+ serializedParams = utils.isURLSearchParams(params) ?
1343
+ params.toString() :
1344
+ new helpers_AxiosURLSearchParams(params, options).toString(_encode);
1345
+ }
1346
+
1347
+ if (serializedParams) {
1348
+ const hashmarkIndex = url.indexOf("#");
1349
+
1350
+ if (hashmarkIndex !== -1) {
1351
+ url = url.slice(0, hashmarkIndex);
1352
+ }
1353
+ url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
1354
+ }
1355
+
1356
+ return url;
1357
+ }
1358
+
1359
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/core/InterceptorManager.js
1360
+
1361
+
1362
+
1363
+
1364
+ class InterceptorManager {
1365
+ constructor() {
1366
+ this.handlers = [];
1367
+ }
1368
+
1369
+ /**
1370
+ * Add a new interceptor to the stack
1371
+ *
1372
+ * @param {Function} fulfilled The function to handle `then` for a `Promise`
1373
+ * @param {Function} rejected The function to handle `reject` for a `Promise`
1374
+ *
1375
+ * @return {Number} An ID used to remove interceptor later
1376
+ */
1377
+ use(fulfilled, rejected, options) {
1378
+ this.handlers.push({
1379
+ fulfilled,
1380
+ rejected,
1381
+ synchronous: options ? options.synchronous : false,
1382
+ runWhen: options ? options.runWhen : null
1383
+ });
1384
+ return this.handlers.length - 1;
1385
+ }
1386
+
1387
+ /**
1388
+ * Remove an interceptor from the stack
1389
+ *
1390
+ * @param {Number} id The ID that was returned by `use`
1391
+ *
1392
+ * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
1393
+ */
1394
+ eject(id) {
1395
+ if (this.handlers[id]) {
1396
+ this.handlers[id] = null;
1397
+ }
1398
+ }
1399
+
1400
+ /**
1401
+ * Clear all interceptors from the stack
1402
+ *
1403
+ * @returns {void}
1404
+ */
1405
+ clear() {
1406
+ if (this.handlers) {
1407
+ this.handlers = [];
1408
+ }
1409
+ }
1410
+
1411
+ /**
1412
+ * Iterate over all the registered interceptors
1413
+ *
1414
+ * This method is particularly useful for skipping over any
1415
+ * interceptors that may have become `null` calling `eject`.
1416
+ *
1417
+ * @param {Function} fn The function to call for each interceptor
1418
+ *
1419
+ * @returns {void}
1420
+ */
1421
+ forEach(fn) {
1422
+ utils.forEach(this.handlers, function forEachHandler(h) {
1423
+ if (h !== null) {
1424
+ fn(h);
1425
+ }
1426
+ });
1427
+ }
1428
+ }
1429
+
1430
+ /* harmony default export */ var core_InterceptorManager = (InterceptorManager);
1431
+
1432
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/defaults/transitional.js
1433
+
1434
+
1435
+ /* harmony default export */ var defaults_transitional = ({
1436
+ silentJSONParsing: true,
1437
+ forcedJSONParsing: true,
1438
+ clarifyTimeoutError: false
1439
+ });
1440
+
1441
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/platform/browser/classes/URLSearchParams.js
1442
+
1443
+
1444
+
1445
+ /* harmony default export */ var classes_URLSearchParams = (typeof URLSearchParams !== 'undefined' ? URLSearchParams : helpers_AxiosURLSearchParams);
1446
+
1447
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/platform/browser/classes/FormData.js
1448
+
1449
+
1450
+ /* harmony default export */ var classes_FormData = (typeof FormData !== 'undefined' ? FormData : null);
1451
+
1452
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/platform/browser/classes/Blob.js
1453
+
1454
+
1455
+ /* harmony default export */ var classes_Blob = (typeof Blob !== 'undefined' ? Blob : null);
1456
+
1457
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/platform/browser/index.js
1458
+
1459
+
1460
+
1461
+
1462
+ /**
1463
+ * Determine if we're running in a standard browser environment
1464
+ *
1465
+ * This allows axios to run in a web worker, and react-native.
1466
+ * Both environments support XMLHttpRequest, but not fully standard globals.
1467
+ *
1468
+ * web workers:
1469
+ * typeof window -> undefined
1470
+ * typeof document -> undefined
1471
+ *
1472
+ * react-native:
1473
+ * navigator.product -> 'ReactNative'
1474
+ * nativescript
1475
+ * navigator.product -> 'NativeScript' or 'NS'
1476
+ *
1477
+ * @returns {boolean}
1478
+ */
1479
+ const isStandardBrowserEnv = (() => {
1480
+ let product;
1481
+ if (typeof navigator !== 'undefined' && (
1482
+ (product = navigator.product) === 'ReactNative' ||
1483
+ product === 'NativeScript' ||
1484
+ product === 'NS')
1485
+ ) {
1486
+ return false;
1487
+ }
1488
+
1489
+ return typeof window !== 'undefined' && typeof document !== 'undefined';
1490
+ })();
1491
+
1492
+ /**
1493
+ * Determine if we're running in a standard browser webWorker environment
1494
+ *
1495
+ * Although the `isStandardBrowserEnv` method indicates that
1496
+ * `allows axios to run in a web worker`, the WebWorker will still be
1497
+ * filtered out due to its judgment standard
1498
+ * `typeof window !== 'undefined' && typeof document !== 'undefined'`.
1499
+ * This leads to a problem when axios post `FormData` in webWorker
1500
+ */
1501
+ const isStandardBrowserWebWorkerEnv = (() => {
1502
+ return (
1503
+ typeof WorkerGlobalScope !== 'undefined' &&
1504
+ // eslint-disable-next-line no-undef
1505
+ self instanceof WorkerGlobalScope &&
1506
+ typeof self.importScripts === 'function'
1507
+ );
1508
+ })();
1509
+
1510
+
1511
+ /* harmony default export */ var browser = ({
1512
+ isBrowser: true,
1513
+ classes: {
1514
+ URLSearchParams: classes_URLSearchParams,
1515
+ FormData: classes_FormData,
1516
+ Blob: classes_Blob
1517
+ },
1518
+ isStandardBrowserEnv,
1519
+ isStandardBrowserWebWorkerEnv,
1520
+ protocols: ['http', 'https', 'file', 'blob', 'url', 'data']
1521
+ });
1522
+
1523
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/toURLEncodedForm.js
1524
+
1525
+
1526
+
1527
+
1528
+
1529
+
1530
+ function toURLEncodedForm(data, options) {
1531
+ return helpers_toFormData(data, new browser.classes.URLSearchParams(), Object.assign({
1532
+ visitor: function(value, key, path, helpers) {
1533
+ if (browser.isNode && utils.isBuffer(value)) {
1534
+ this.append(key, value.toString('base64'));
1535
+ return false;
1536
+ }
1537
+
1538
+ return helpers.defaultVisitor.apply(this, arguments);
1539
+ }
1540
+ }, options));
1541
+ }
1542
+
1543
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/formDataToJSON.js
1544
+
1545
+
1546
+
1547
+
1548
+ /**
1549
+ * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']
1550
+ *
1551
+ * @param {string} name - The name of the property to get.
1552
+ *
1553
+ * @returns An array of strings.
1554
+ */
1555
+ function parsePropPath(name) {
1556
+ // foo[x][y][z]
1557
+ // foo.x.y.z
1558
+ // foo-x-y-z
1559
+ // foo x y z
1560
+ return utils.matchAll(/\w+|\[(\w*)]/g, name).map(match => {
1561
+ return match[0] === '[]' ? '' : match[1] || match[0];
1562
+ });
1563
+ }
1564
+
1565
+ /**
1566
+ * Convert an array to an object.
1567
+ *
1568
+ * @param {Array<any>} arr - The array to convert to an object.
1569
+ *
1570
+ * @returns An object with the same keys and values as the array.
1571
+ */
1572
+ function arrayToObject(arr) {
1573
+ const obj = {};
1574
+ const keys = Object.keys(arr);
1575
+ let i;
1576
+ const len = keys.length;
1577
+ let key;
1578
+ for (i = 0; i < len; i++) {
1579
+ key = keys[i];
1580
+ obj[key] = arr[key];
1581
+ }
1582
+ return obj;
1583
+ }
1584
+
1585
+ /**
1586
+ * It takes a FormData object and returns a JavaScript object
1587
+ *
1588
+ * @param {string} formData The FormData object to convert to JSON.
1589
+ *
1590
+ * @returns {Object<string, any> | null} The converted object.
1591
+ */
1592
+ function formDataToJSON(formData) {
1593
+ function buildPath(path, value, target, index) {
1594
+ let name = path[index++];
1595
+ const isNumericKey = Number.isFinite(+name);
1596
+ const isLast = index >= path.length;
1597
+ name = !name && utils.isArray(target) ? target.length : name;
1598
+
1599
+ if (isLast) {
1600
+ if (utils.hasOwnProp(target, name)) {
1601
+ target[name] = [target[name], value];
1602
+ } else {
1603
+ target[name] = value;
1604
+ }
1605
+
1606
+ return !isNumericKey;
1607
+ }
1608
+
1609
+ if (!target[name] || !utils.isObject(target[name])) {
1610
+ target[name] = [];
1611
+ }
1612
+
1613
+ const result = buildPath(path, value, target[name], index);
1614
+
1615
+ if (result && utils.isArray(target[name])) {
1616
+ target[name] = arrayToObject(target[name]);
1617
+ }
1618
+
1619
+ return !isNumericKey;
1620
+ }
1621
+
1622
+ if (utils.isFormData(formData) && utils.isFunction(formData.entries)) {
1623
+ const obj = {};
1624
+
1625
+ utils.forEachEntry(formData, (name, value) => {
1626
+ buildPath(parsePropPath(name), value, obj, 0);
1627
+ });
1628
+
1629
+ return obj;
1630
+ }
1631
+
1632
+ return null;
1633
+ }
1634
+
1635
+ /* harmony default export */ var helpers_formDataToJSON = (formDataToJSON);
1636
+
1637
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/defaults/index.js
1638
+
1639
+
1640
+
1641
+
1642
+
1643
+
1644
+
1645
+
1646
+
1647
+
1648
+ const DEFAULT_CONTENT_TYPE = {
1649
+ 'Content-Type': undefined
1650
+ };
1651
+
1652
+ /**
1653
+ * It takes a string, tries to parse it, and if it fails, it returns the stringified version
1654
+ * of the input
1655
+ *
1656
+ * @param {any} rawValue - The value to be stringified.
1657
+ * @param {Function} parser - A function that parses a string into a JavaScript object.
1658
+ * @param {Function} encoder - A function that takes a value and returns a string.
1659
+ *
1660
+ * @returns {string} A stringified version of the rawValue.
1661
+ */
1662
+ function stringifySafely(rawValue, parser, encoder) {
1663
+ if (utils.isString(rawValue)) {
1664
+ try {
1665
+ (parser || JSON.parse)(rawValue);
1666
+ return utils.trim(rawValue);
1667
+ } catch (e) {
1668
+ if (e.name !== 'SyntaxError') {
1669
+ throw e;
1670
+ }
1671
+ }
1672
+ }
1673
+
1674
+ return (encoder || JSON.stringify)(rawValue);
1675
+ }
1676
+
1677
+ const defaults = {
1678
+
1679
+ transitional: defaults_transitional,
1680
+
1681
+ adapter: ['xhr', 'http'],
1682
+
1683
+ transformRequest: [function transformRequest(data, headers) {
1684
+ const contentType = headers.getContentType() || '';
1685
+ const hasJSONContentType = contentType.indexOf('application/json') > -1;
1686
+ const isObjectPayload = utils.isObject(data);
1687
+
1688
+ if (isObjectPayload && utils.isHTMLForm(data)) {
1689
+ data = new FormData(data);
1690
+ }
1691
+
1692
+ const isFormData = utils.isFormData(data);
1693
+
1694
+ if (isFormData) {
1695
+ if (!hasJSONContentType) {
1696
+ return data;
1697
+ }
1698
+ return hasJSONContentType ? JSON.stringify(helpers_formDataToJSON(data)) : data;
1699
+ }
1700
+
1701
+ if (utils.isArrayBuffer(data) ||
1702
+ utils.isBuffer(data) ||
1703
+ utils.isStream(data) ||
1704
+ utils.isFile(data) ||
1705
+ utils.isBlob(data)
1706
+ ) {
1707
+ return data;
1708
+ }
1709
+ if (utils.isArrayBufferView(data)) {
1710
+ return data.buffer;
1711
+ }
1712
+ if (utils.isURLSearchParams(data)) {
1713
+ headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);
1714
+ return data.toString();
1715
+ }
1716
+
1717
+ let isFileList;
1718
+
1719
+ if (isObjectPayload) {
1720
+ if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {
1721
+ return toURLEncodedForm(data, this.formSerializer).toString();
1722
+ }
1723
+
1724
+ if ((isFileList = utils.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {
1725
+ const _FormData = this.env && this.env.FormData;
1726
+
1727
+ return helpers_toFormData(
1728
+ isFileList ? {'files[]': data} : data,
1729
+ _FormData && new _FormData(),
1730
+ this.formSerializer
1731
+ );
1732
+ }
1733
+ }
1734
+
1735
+ if (isObjectPayload || hasJSONContentType ) {
1736
+ headers.setContentType('application/json', false);
1737
+ return stringifySafely(data);
1738
+ }
1739
+
1740
+ return data;
1741
+ }],
1742
+
1743
+ transformResponse: [function transformResponse(data) {
1744
+ const transitional = this.transitional || defaults.transitional;
1745
+ const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
1746
+ const JSONRequested = this.responseType === 'json';
1747
+
1748
+ if (data && utils.isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) {
1749
+ const silentJSONParsing = transitional && transitional.silentJSONParsing;
1750
+ const strictJSONParsing = !silentJSONParsing && JSONRequested;
1751
+
1752
+ try {
1753
+ return JSON.parse(data);
1754
+ } catch (e) {
1755
+ if (strictJSONParsing) {
1756
+ if (e.name === 'SyntaxError') {
1757
+ throw core_AxiosError.from(e, core_AxiosError.ERR_BAD_RESPONSE, this, null, this.response);
1758
+ }
1759
+ throw e;
1760
+ }
1761
+ }
1762
+ }
1763
+
1764
+ return data;
1765
+ }],
1766
+
1767
+ /**
1768
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
1769
+ * timeout is not created.
1770
+ */
1771
+ timeout: 0,
1772
+
1773
+ xsrfCookieName: 'XSRF-TOKEN',
1774
+ xsrfHeaderName: 'X-XSRF-TOKEN',
1775
+
1776
+ maxContentLength: -1,
1777
+ maxBodyLength: -1,
1778
+
1779
+ env: {
1780
+ FormData: browser.classes.FormData,
1781
+ Blob: browser.classes.Blob
1782
+ },
1783
+
1784
+ validateStatus: function validateStatus(status) {
1785
+ return status >= 200 && status < 300;
1786
+ },
1787
+
1788
+ headers: {
1789
+ common: {
1790
+ 'Accept': 'application/json, text/plain, */*'
1791
+ }
1792
+ }
1793
+ };
1794
+
1795
+ utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {
1796
+ defaults.headers[method] = {};
1797
+ });
1798
+
1799
+ utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
1800
+ defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);
1801
+ });
1802
+
1803
+ /* harmony default export */ var lib_defaults = (defaults);
1804
+
1805
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/parseHeaders.js
1806
+
1807
+
1808
+
1809
+
1810
+ // RawAxiosHeaders whose duplicates are ignored by node
1811
+ // c.f. https://nodejs.org/api/http.html#http_message_headers
1812
+ const ignoreDuplicateOf = utils.toObjectSet([
1813
+ 'age', 'authorization', 'content-length', 'content-type', 'etag',
1814
+ 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',
1815
+ 'last-modified', 'location', 'max-forwards', 'proxy-authorization',
1816
+ 'referer', 'retry-after', 'user-agent'
1817
+ ]);
1818
+
1819
+ /**
1820
+ * Parse headers into an object
1821
+ *
1822
+ * ```
1823
+ * Date: Wed, 27 Aug 2014 08:58:49 GMT
1824
+ * Content-Type: application/json
1825
+ * Connection: keep-alive
1826
+ * Transfer-Encoding: chunked
1827
+ * ```
1828
+ *
1829
+ * @param {String} rawHeaders Headers needing to be parsed
1830
+ *
1831
+ * @returns {Object} Headers parsed into an object
1832
+ */
1833
+ /* harmony default export */ var parseHeaders = (rawHeaders => {
1834
+ const parsed = {};
1835
+ let key;
1836
+ let val;
1837
+ let i;
1838
+
1839
+ rawHeaders && rawHeaders.split('\n').forEach(function parser(line) {
1840
+ i = line.indexOf(':');
1841
+ key = line.substring(0, i).trim().toLowerCase();
1842
+ val = line.substring(i + 1).trim();
1843
+
1844
+ if (!key || (parsed[key] && ignoreDuplicateOf[key])) {
1845
+ return;
1846
+ }
1847
+
1848
+ if (key === 'set-cookie') {
1849
+ if (parsed[key]) {
1850
+ parsed[key].push(val);
1851
+ } else {
1852
+ parsed[key] = [val];
1853
+ }
1854
+ } else {
1855
+ parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
1856
+ }
1857
+ });
1858
+
1859
+ return parsed;
1860
+ });
1861
+
1862
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/core/AxiosHeaders.js
1863
+
1864
+
1865
+
1866
+
1867
+
1868
+ const $internals = Symbol('internals');
1869
+
1870
+ function normalizeHeader(header) {
1871
+ return header && String(header).trim().toLowerCase();
1872
+ }
1873
+
1874
+ function normalizeValue(value) {
1875
+ if (value === false || value == null) {
1876
+ return value;
1877
+ }
1878
+
1879
+ return utils.isArray(value) ? value.map(normalizeValue) : String(value);
1880
+ }
1881
+
1882
+ function parseTokens(str) {
1883
+ const tokens = Object.create(null);
1884
+ const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
1885
+ let match;
1886
+
1887
+ while ((match = tokensRE.exec(str))) {
1888
+ tokens[match[1]] = match[2];
1889
+ }
1890
+
1891
+ return tokens;
1892
+ }
1893
+
1894
+ const isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
1895
+
1896
+ function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
1897
+ if (utils.isFunction(filter)) {
1898
+ return filter.call(this, value, header);
1899
+ }
1900
+
1901
+ if (isHeaderNameFilter) {
1902
+ value = header;
1903
+ }
1904
+
1905
+ if (!utils.isString(value)) return;
1906
+
1907
+ if (utils.isString(filter)) {
1908
+ return value.indexOf(filter) !== -1;
1909
+ }
1910
+
1911
+ if (utils.isRegExp(filter)) {
1912
+ return filter.test(value);
1913
+ }
1914
+ }
1915
+
1916
+ function formatHeader(header) {
1917
+ return header.trim()
1918
+ .toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
1919
+ return char.toUpperCase() + str;
1920
+ });
1921
+ }
1922
+
1923
+ function buildAccessors(obj, header) {
1924
+ const accessorName = utils.toCamelCase(' ' + header);
1925
+
1926
+ ['get', 'set', 'has'].forEach(methodName => {
1927
+ Object.defineProperty(obj, methodName + accessorName, {
1928
+ value: function(arg1, arg2, arg3) {
1929
+ return this[methodName].call(this, header, arg1, arg2, arg3);
1930
+ },
1931
+ configurable: true
1932
+ });
1933
+ });
1934
+ }
1935
+
1936
+ class AxiosHeaders {
1937
+ constructor(headers) {
1938
+ headers && this.set(headers);
1939
+ }
1940
+
1941
+ set(header, valueOrRewrite, rewrite) {
1942
+ const self = this;
1943
+
1944
+ function setHeader(_value, _header, _rewrite) {
1945
+ const lHeader = normalizeHeader(_header);
1946
+
1947
+ if (!lHeader) {
1948
+ throw new Error('header name must be a non-empty string');
1949
+ }
1950
+
1951
+ const key = utils.findKey(self, lHeader);
1952
+
1953
+ if(!key || self[key] === undefined || _rewrite === true || (_rewrite === undefined && self[key] !== false)) {
1954
+ self[key || _header] = normalizeValue(_value);
1955
+ }
1956
+ }
1957
+
1958
+ const setHeaders = (headers, _rewrite) =>
1959
+ utils.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
1960
+
1961
+ if (utils.isPlainObject(header) || header instanceof this.constructor) {
1962
+ setHeaders(header, valueOrRewrite)
1963
+ } else if(utils.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
1964
+ setHeaders(parseHeaders(header), valueOrRewrite);
1965
+ } else {
1966
+ header != null && setHeader(valueOrRewrite, header, rewrite);
1967
+ }
1968
+
1969
+ return this;
1970
+ }
1971
+
1972
+ get(header, parser) {
1973
+ header = normalizeHeader(header);
1974
+
1975
+ if (header) {
1976
+ const key = utils.findKey(this, header);
1977
+
1978
+ if (key) {
1979
+ const value = this[key];
1980
+
1981
+ if (!parser) {
1982
+ return value;
1983
+ }
1984
+
1985
+ if (parser === true) {
1986
+ return parseTokens(value);
1987
+ }
1988
+
1989
+ if (utils.isFunction(parser)) {
1990
+ return parser.call(this, value, key);
1991
+ }
1992
+
1993
+ if (utils.isRegExp(parser)) {
1994
+ return parser.exec(value);
1995
+ }
1996
+
1997
+ throw new TypeError('parser must be boolean|regexp|function');
1998
+ }
1999
+ }
2000
+ }
2001
+
2002
+ has(header, matcher) {
2003
+ header = normalizeHeader(header);
2004
+
2005
+ if (header) {
2006
+ const key = utils.findKey(this, header);
2007
+
2008
+ return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
2009
+ }
2010
+
2011
+ return false;
2012
+ }
2013
+
2014
+ delete(header, matcher) {
2015
+ const self = this;
2016
+ let deleted = false;
2017
+
2018
+ function deleteHeader(_header) {
2019
+ _header = normalizeHeader(_header);
2020
+
2021
+ if (_header) {
2022
+ const key = utils.findKey(self, _header);
2023
+
2024
+ if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {
2025
+ delete self[key];
2026
+
2027
+ deleted = true;
2028
+ }
2029
+ }
2030
+ }
2031
+
2032
+ if (utils.isArray(header)) {
2033
+ header.forEach(deleteHeader);
2034
+ } else {
2035
+ deleteHeader(header);
2036
+ }
2037
+
2038
+ return deleted;
2039
+ }
2040
+
2041
+ clear(matcher) {
2042
+ const keys = Object.keys(this);
2043
+ let i = keys.length;
2044
+ let deleted = false;
2045
+
2046
+ while (i--) {
2047
+ const key = keys[i];
2048
+ if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
2049
+ delete this[key];
2050
+ deleted = true;
2051
+ }
2052
+ }
2053
+
2054
+ return deleted;
2055
+ }
2056
+
2057
+ normalize(format) {
2058
+ const self = this;
2059
+ const headers = {};
2060
+
2061
+ utils.forEach(this, (value, header) => {
2062
+ const key = utils.findKey(headers, header);
2063
+
2064
+ if (key) {
2065
+ self[key] = normalizeValue(value);
2066
+ delete self[header];
2067
+ return;
2068
+ }
2069
+
2070
+ const normalized = format ? formatHeader(header) : String(header).trim();
2071
+
2072
+ if (normalized !== header) {
2073
+ delete self[header];
2074
+ }
2075
+
2076
+ self[normalized] = normalizeValue(value);
2077
+
2078
+ headers[normalized] = true;
2079
+ });
2080
+
2081
+ return this;
2082
+ }
2083
+
2084
+ concat(...targets) {
2085
+ return this.constructor.concat(this, ...targets);
2086
+ }
2087
+
2088
+ toJSON(asStrings) {
2089
+ const obj = Object.create(null);
2090
+
2091
+ utils.forEach(this, (value, header) => {
2092
+ value != null && value !== false && (obj[header] = asStrings && utils.isArray(value) ? value.join(', ') : value);
2093
+ });
2094
+
2095
+ return obj;
2096
+ }
2097
+
2098
+ [Symbol.iterator]() {
2099
+ return Object.entries(this.toJSON())[Symbol.iterator]();
2100
+ }
2101
+
2102
+ toString() {
2103
+ return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\n');
2104
+ }
2105
+
2106
+ get [Symbol.toStringTag]() {
2107
+ return 'AxiosHeaders';
2108
+ }
2109
+
2110
+ static from(thing) {
2111
+ return thing instanceof this ? thing : new this(thing);
2112
+ }
2113
+
2114
+ static concat(first, ...targets) {
2115
+ const computed = new this(first);
2116
+
2117
+ targets.forEach((target) => computed.set(target));
2118
+
2119
+ return computed;
2120
+ }
2121
+
2122
+ static accessor(header) {
2123
+ const internals = this[$internals] = (this[$internals] = {
2124
+ accessors: {}
2125
+ });
2126
+
2127
+ const accessors = internals.accessors;
2128
+ const prototype = this.prototype;
2129
+
2130
+ function defineAccessor(_header) {
2131
+ const lHeader = normalizeHeader(_header);
2132
+
2133
+ if (!accessors[lHeader]) {
2134
+ buildAccessors(prototype, _header);
2135
+ accessors[lHeader] = true;
2136
+ }
2137
+ }
2138
+
2139
+ utils.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
2140
+
2141
+ return this;
2142
+ }
2143
+ }
2144
+
2145
+ AxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']);
2146
+
2147
+ utils.freezeMethods(AxiosHeaders.prototype);
2148
+ utils.freezeMethods(AxiosHeaders);
2149
+
2150
+ /* harmony default export */ var core_AxiosHeaders = (AxiosHeaders);
2151
+
2152
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/core/transformData.js
2153
+
2154
+
2155
+
2156
+
2157
+
2158
+
2159
+ /**
2160
+ * Transform the data for a request or a response
2161
+ *
2162
+ * @param {Array|Function} fns A single function or Array of functions
2163
+ * @param {?Object} response The response object
2164
+ *
2165
+ * @returns {*} The resulting transformed data
2166
+ */
2167
+ function transformData(fns, response) {
2168
+ const config = this || lib_defaults;
2169
+ const context = response || config;
2170
+ const headers = core_AxiosHeaders.from(context.headers);
2171
+ let data = context.data;
2172
+
2173
+ utils.forEach(fns, function transform(fn) {
2174
+ data = fn.call(config, data, headers.normalize(), response ? response.status : undefined);
2175
+ });
2176
+
2177
+ headers.normalize();
2178
+
2179
+ return data;
2180
+ }
2181
+
2182
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/cancel/isCancel.js
2183
+
2184
+
2185
+ function isCancel(value) {
2186
+ return !!(value && value.__CANCEL__);
2187
+ }
2188
+
2189
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/cancel/CanceledError.js
2190
+
2191
+
2192
+
2193
+
2194
+
2195
+ /**
2196
+ * A `CanceledError` is an object that is thrown when an operation is canceled.
2197
+ *
2198
+ * @param {string=} message The message.
2199
+ * @param {Object=} config The config.
2200
+ * @param {Object=} request The request.
2201
+ *
2202
+ * @returns {CanceledError} The created error.
2203
+ */
2204
+ function CanceledError(message, config, request) {
2205
+ // eslint-disable-next-line no-eq-null,eqeqeq
2206
+ core_AxiosError.call(this, message == null ? 'canceled' : message, core_AxiosError.ERR_CANCELED, config, request);
2207
+ this.name = 'CanceledError';
2208
+ }
2209
+
2210
+ utils.inherits(CanceledError, core_AxiosError, {
2211
+ __CANCEL__: true
2212
+ });
2213
+
2214
+ /* harmony default export */ var cancel_CanceledError = (CanceledError);
2215
+
2216
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/core/settle.js
2217
+
2218
+
2219
+
2220
+
2221
+ /**
2222
+ * Resolve or reject a Promise based on response status.
2223
+ *
2224
+ * @param {Function} resolve A function that resolves the promise.
2225
+ * @param {Function} reject A function that rejects the promise.
2226
+ * @param {object} response The response.
2227
+ *
2228
+ * @returns {object} The response.
2229
+ */
2230
+ function settle(resolve, reject, response) {
2231
+ const validateStatus = response.config.validateStatus;
2232
+ if (!response.status || !validateStatus || validateStatus(response.status)) {
2233
+ resolve(response);
2234
+ } else {
2235
+ reject(new core_AxiosError(
2236
+ 'Request failed with status code ' + response.status,
2237
+ [core_AxiosError.ERR_BAD_REQUEST, core_AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
2238
+ response.config,
2239
+ response.request,
2240
+ response
2241
+ ));
2242
+ }
2243
+ }
2244
+
2245
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/cookies.js
2246
+
2247
+
2248
+
2249
+
2250
+
2251
+ /* harmony default export */ var cookies = (browser.isStandardBrowserEnv ?
2252
+
2253
+ // Standard browser envs support document.cookie
2254
+ (function standardBrowserEnv() {
2255
+ return {
2256
+ write: function write(name, value, expires, path, domain, secure) {
2257
+ const cookie = [];
2258
+ cookie.push(name + '=' + encodeURIComponent(value));
2259
+
2260
+ if (utils.isNumber(expires)) {
2261
+ cookie.push('expires=' + new Date(expires).toGMTString());
2262
+ }
2263
+
2264
+ if (utils.isString(path)) {
2265
+ cookie.push('path=' + path);
2266
+ }
2267
+
2268
+ if (utils.isString(domain)) {
2269
+ cookie.push('domain=' + domain);
2270
+ }
2271
+
2272
+ if (secure === true) {
2273
+ cookie.push('secure');
2274
+ }
2275
+
2276
+ document.cookie = cookie.join('; ');
2277
+ },
2278
+
2279
+ read: function read(name) {
2280
+ const match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
2281
+ return (match ? decodeURIComponent(match[3]) : null);
2282
+ },
2283
+
2284
+ remove: function remove(name) {
2285
+ this.write(name, '', Date.now() - 86400000);
2286
+ }
2287
+ };
2288
+ })() :
2289
+
2290
+ // Non standard browser env (web workers, react-native) lack needed support.
2291
+ (function nonStandardBrowserEnv() {
2292
+ return {
2293
+ write: function write() {},
2294
+ read: function read() { return null; },
2295
+ remove: function remove() {}
2296
+ };
2297
+ })());
2298
+
2299
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/isAbsoluteURL.js
2300
+
2301
+
2302
+ /**
2303
+ * Determines whether the specified URL is absolute
2304
+ *
2305
+ * @param {string} url The URL to test
2306
+ *
2307
+ * @returns {boolean} True if the specified URL is absolute, otherwise false
2308
+ */
2309
+ function isAbsoluteURL(url) {
2310
+ // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
2311
+ // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
2312
+ // by any combination of letters, digits, plus, period, or hyphen.
2313
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
2314
+ }
2315
+
2316
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/combineURLs.js
2317
+
2318
+
2319
+ /**
2320
+ * Creates a new URL by combining the specified URLs
2321
+ *
2322
+ * @param {string} baseURL The base URL
2323
+ * @param {string} relativeURL The relative URL
2324
+ *
2325
+ * @returns {string} The combined URL
2326
+ */
2327
+ function combineURLs(baseURL, relativeURL) {
2328
+ return relativeURL
2329
+ ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '')
2330
+ : baseURL;
2331
+ }
2332
+
2333
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/core/buildFullPath.js
2334
+
2335
+
2336
+
2337
+
2338
+
2339
+ /**
2340
+ * Creates a new URL by combining the baseURL with the requestedURL,
2341
+ * only when the requestedURL is not already an absolute URL.
2342
+ * If the requestURL is absolute, this function returns the requestedURL untouched.
2343
+ *
2344
+ * @param {string} baseURL The base URL
2345
+ * @param {string} requestedURL Absolute or relative URL to combine
2346
+ *
2347
+ * @returns {string} The combined full path
2348
+ */
2349
+ function buildFullPath(baseURL, requestedURL) {
2350
+ if (baseURL && !isAbsoluteURL(requestedURL)) {
2351
+ return combineURLs(baseURL, requestedURL);
2352
+ }
2353
+ return requestedURL;
2354
+ }
2355
+
2356
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/isURLSameOrigin.js
2357
+
2358
+
2359
+
2360
+
2361
+
2362
+ /* harmony default export */ var isURLSameOrigin = (browser.isStandardBrowserEnv ?
2363
+
2364
+ // Standard browser envs have full support of the APIs needed to test
2365
+ // whether the request URL is of the same origin as current location.
2366
+ (function standardBrowserEnv() {
2367
+ const msie = /(msie|trident)/i.test(navigator.userAgent);
2368
+ const urlParsingNode = document.createElement('a');
2369
+ let originURL;
2370
+
2371
+ /**
2372
+ * Parse a URL to discover it's components
2373
+ *
2374
+ * @param {String} url The URL to be parsed
2375
+ * @returns {Object}
2376
+ */
2377
+ function resolveURL(url) {
2378
+ let href = url;
2379
+
2380
+ if (msie) {
2381
+ // IE needs attribute set twice to normalize properties
2382
+ urlParsingNode.setAttribute('href', href);
2383
+ href = urlParsingNode.href;
2384
+ }
2385
+
2386
+ urlParsingNode.setAttribute('href', href);
2387
+
2388
+ // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
2389
+ return {
2390
+ href: urlParsingNode.href,
2391
+ protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',
2392
+ host: urlParsingNode.host,
2393
+ search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '',
2394
+ hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',
2395
+ hostname: urlParsingNode.hostname,
2396
+ port: urlParsingNode.port,
2397
+ pathname: (urlParsingNode.pathname.charAt(0) === '/') ?
2398
+ urlParsingNode.pathname :
2399
+ '/' + urlParsingNode.pathname
2400
+ };
2401
+ }
2402
+
2403
+ originURL = resolveURL(window.location.href);
2404
+
2405
+ /**
2406
+ * Determine if a URL shares the same origin as the current location
2407
+ *
2408
+ * @param {String} requestURL The URL to test
2409
+ * @returns {boolean} True if URL shares the same origin, otherwise false
2410
+ */
2411
+ return function isURLSameOrigin(requestURL) {
2412
+ const parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;
2413
+ return (parsed.protocol === originURL.protocol &&
2414
+ parsed.host === originURL.host);
2415
+ };
2416
+ })() :
2417
+
2418
+ // Non standard browser envs (web workers, react-native) lack needed support.
2419
+ (function nonStandardBrowserEnv() {
2420
+ return function isURLSameOrigin() {
2421
+ return true;
2422
+ };
2423
+ })());
2424
+
2425
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/parseProtocol.js
2426
+
2427
+
2428
+ function parseProtocol(url) {
2429
+ const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
2430
+ return match && match[1] || '';
2431
+ }
2432
+
2433
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/speedometer.js
2434
+
2435
+
2436
+ /**
2437
+ * Calculate data maxRate
2438
+ * @param {Number} [samplesCount= 10]
2439
+ * @param {Number} [min= 1000]
2440
+ * @returns {Function}
2441
+ */
2442
+ function speedometer(samplesCount, min) {
2443
+ samplesCount = samplesCount || 10;
2444
+ const bytes = new Array(samplesCount);
2445
+ const timestamps = new Array(samplesCount);
2446
+ let head = 0;
2447
+ let tail = 0;
2448
+ let firstSampleTS;
2449
+
2450
+ min = min !== undefined ? min : 1000;
2451
+
2452
+ return function push(chunkLength) {
2453
+ const now = Date.now();
2454
+
2455
+ const startedAt = timestamps[tail];
2456
+
2457
+ if (!firstSampleTS) {
2458
+ firstSampleTS = now;
2459
+ }
2460
+
2461
+ bytes[head] = chunkLength;
2462
+ timestamps[head] = now;
2463
+
2464
+ let i = tail;
2465
+ let bytesCount = 0;
2466
+
2467
+ while (i !== head) {
2468
+ bytesCount += bytes[i++];
2469
+ i = i % samplesCount;
2470
+ }
2471
+
2472
+ head = (head + 1) % samplesCount;
2473
+
2474
+ if (head === tail) {
2475
+ tail = (tail + 1) % samplesCount;
2476
+ }
2477
+
2478
+ if (now - firstSampleTS < min) {
2479
+ return;
2480
+ }
2481
+
2482
+ const passed = startedAt && now - startedAt;
2483
+
2484
+ return passed ? Math.round(bytesCount * 1000 / passed) : undefined;
2485
+ };
2486
+ }
2487
+
2488
+ /* harmony default export */ var helpers_speedometer = (speedometer);
2489
+
2490
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/adapters/xhr.js
2491
+
2492
+
2493
+
2494
+
2495
+
2496
+
2497
+
2498
+
2499
+
2500
+
2501
+
2502
+
2503
+
2504
+
2505
+
2506
+
2507
+ function progressEventReducer(listener, isDownloadStream) {
2508
+ let bytesNotified = 0;
2509
+ const _speedometer = helpers_speedometer(50, 250);
2510
+
2511
+ return e => {
2512
+ const loaded = e.loaded;
2513
+ const total = e.lengthComputable ? e.total : undefined;
2514
+ const progressBytes = loaded - bytesNotified;
2515
+ const rate = _speedometer(progressBytes);
2516
+ const inRange = loaded <= total;
2517
+
2518
+ bytesNotified = loaded;
2519
+
2520
+ const data = {
2521
+ loaded,
2522
+ total,
2523
+ progress: total ? (loaded / total) : undefined,
2524
+ bytes: progressBytes,
2525
+ rate: rate ? rate : undefined,
2526
+ estimated: rate && total && inRange ? (total - loaded) / rate : undefined,
2527
+ event: e
2528
+ };
2529
+
2530
+ data[isDownloadStream ? 'download' : 'upload'] = true;
2531
+
2532
+ listener(data);
2533
+ };
2534
+ }
2535
+
2536
+ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
2537
+
2538
+ /* harmony default export */ var xhr = (isXHRAdapterSupported && function (config) {
2539
+ return new Promise(function dispatchXhrRequest(resolve, reject) {
2540
+ let requestData = config.data;
2541
+ const requestHeaders = core_AxiosHeaders.from(config.headers).normalize();
2542
+ const responseType = config.responseType;
2543
+ let onCanceled;
2544
+ function done() {
2545
+ if (config.cancelToken) {
2546
+ config.cancelToken.unsubscribe(onCanceled);
2547
+ }
2548
+
2549
+ if (config.signal) {
2550
+ config.signal.removeEventListener('abort', onCanceled);
2551
+ }
2552
+ }
2553
+
2554
+ if (utils.isFormData(requestData) && (browser.isStandardBrowserEnv || browser.isStandardBrowserWebWorkerEnv)) {
2555
+ requestHeaders.setContentType(false); // Let the browser set it
2556
+ }
2557
+
2558
+ let request = new XMLHttpRequest();
2559
+
2560
+ // HTTP basic authentication
2561
+ if (config.auth) {
2562
+ const username = config.auth.username || '';
2563
+ const password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';
2564
+ requestHeaders.set('Authorization', 'Basic ' + btoa(username + ':' + password));
2565
+ }
2566
+
2567
+ const fullPath = buildFullPath(config.baseURL, config.url);
2568
+
2569
+ request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);
2570
+
2571
+ // Set the request timeout in MS
2572
+ request.timeout = config.timeout;
2573
+
2574
+ function onloadend() {
2575
+ if (!request) {
2576
+ return;
2577
+ }
2578
+ // Prepare the response
2579
+ const responseHeaders = core_AxiosHeaders.from(
2580
+ 'getAllResponseHeaders' in request && request.getAllResponseHeaders()
2581
+ );
2582
+ const responseData = !responseType || responseType === 'text' || responseType === 'json' ?
2583
+ request.responseText : request.response;
2584
+ const response = {
2585
+ data: responseData,
2586
+ status: request.status,
2587
+ statusText: request.statusText,
2588
+ headers: responseHeaders,
2589
+ config,
2590
+ request
2591
+ };
2592
+
2593
+ settle(function _resolve(value) {
2594
+ resolve(value);
2595
+ done();
2596
+ }, function _reject(err) {
2597
+ reject(err);
2598
+ done();
2599
+ }, response);
2600
+
2601
+ // Clean up request
2602
+ request = null;
2603
+ }
2604
+
2605
+ if ('onloadend' in request) {
2606
+ // Use onloadend if available
2607
+ request.onloadend = onloadend;
2608
+ } else {
2609
+ // Listen for ready state to emulate onloadend
2610
+ request.onreadystatechange = function handleLoad() {
2611
+ if (!request || request.readyState !== 4) {
2612
+ return;
2613
+ }
2614
+
2615
+ // The request errored out and we didn't get a response, this will be
2616
+ // handled by onerror instead
2617
+ // With one exception: request that using file: protocol, most browsers
2618
+ // will return status as 0 even though it's a successful request
2619
+ if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
2620
+ return;
2621
+ }
2622
+ // readystate handler is calling before onerror or ontimeout handlers,
2623
+ // so we should call onloadend on the next 'tick'
2624
+ setTimeout(onloadend);
2625
+ };
2626
+ }
2627
+
2628
+ // Handle browser request cancellation (as opposed to a manual cancellation)
2629
+ request.onabort = function handleAbort() {
2630
+ if (!request) {
2631
+ return;
2632
+ }
2633
+
2634
+ reject(new core_AxiosError('Request aborted', core_AxiosError.ECONNABORTED, config, request));
2635
+
2636
+ // Clean up request
2637
+ request = null;
2638
+ };
2639
+
2640
+ // Handle low level network errors
2641
+ request.onerror = function handleError() {
2642
+ // Real errors are hidden from us by the browser
2643
+ // onerror should only fire if it's a network error
2644
+ reject(new core_AxiosError('Network Error', core_AxiosError.ERR_NETWORK, config, request));
2645
+
2646
+ // Clean up request
2647
+ request = null;
2648
+ };
2649
+
2650
+ // Handle timeout
2651
+ request.ontimeout = function handleTimeout() {
2652
+ let timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';
2653
+ const transitional = config.transitional || defaults_transitional;
2654
+ if (config.timeoutErrorMessage) {
2655
+ timeoutErrorMessage = config.timeoutErrorMessage;
2656
+ }
2657
+ reject(new core_AxiosError(
2658
+ timeoutErrorMessage,
2659
+ transitional.clarifyTimeoutError ? core_AxiosError.ETIMEDOUT : core_AxiosError.ECONNABORTED,
2660
+ config,
2661
+ request));
2662
+
2663
+ // Clean up request
2664
+ request = null;
2665
+ };
2666
+
2667
+ // Add xsrf header
2668
+ // This is only done if running in a standard browser environment.
2669
+ // Specifically not if we're in a web worker, or react-native.
2670
+ if (browser.isStandardBrowserEnv) {
2671
+ // Add xsrf header
2672
+ const xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath))
2673
+ && config.xsrfCookieName && cookies.read(config.xsrfCookieName);
2674
+
2675
+ if (xsrfValue) {
2676
+ requestHeaders.set(config.xsrfHeaderName, xsrfValue);
2677
+ }
2678
+ }
2679
+
2680
+ // Remove Content-Type if data is undefined
2681
+ requestData === undefined && requestHeaders.setContentType(null);
2682
+
2683
+ // Add headers to the request
2684
+ if ('setRequestHeader' in request) {
2685
+ utils.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
2686
+ request.setRequestHeader(key, val);
2687
+ });
2688
+ }
2689
+
2690
+ // Add withCredentials to request if needed
2691
+ if (!utils.isUndefined(config.withCredentials)) {
2692
+ request.withCredentials = !!config.withCredentials;
2693
+ }
2694
+
2695
+ // Add responseType to request if needed
2696
+ if (responseType && responseType !== 'json') {
2697
+ request.responseType = config.responseType;
2698
+ }
2699
+
2700
+ // Handle progress if needed
2701
+ if (typeof config.onDownloadProgress === 'function') {
2702
+ request.addEventListener('progress', progressEventReducer(config.onDownloadProgress, true));
2703
+ }
2704
+
2705
+ // Not all browsers support upload events
2706
+ if (typeof config.onUploadProgress === 'function' && request.upload) {
2707
+ request.upload.addEventListener('progress', progressEventReducer(config.onUploadProgress));
2708
+ }
2709
+
2710
+ if (config.cancelToken || config.signal) {
2711
+ // Handle cancellation
2712
+ // eslint-disable-next-line func-names
2713
+ onCanceled = cancel => {
2714
+ if (!request) {
2715
+ return;
2716
+ }
2717
+ reject(!cancel || cancel.type ? new cancel_CanceledError(null, config, request) : cancel);
2718
+ request.abort();
2719
+ request = null;
2720
+ };
2721
+
2722
+ config.cancelToken && config.cancelToken.subscribe(onCanceled);
2723
+ if (config.signal) {
2724
+ config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled);
2725
+ }
2726
+ }
2727
+
2728
+ const protocol = parseProtocol(fullPath);
2729
+
2730
+ if (protocol && browser.protocols.indexOf(protocol) === -1) {
2731
+ reject(new core_AxiosError('Unsupported protocol ' + protocol + ':', core_AxiosError.ERR_BAD_REQUEST, config));
2732
+ return;
2733
+ }
2734
+
2735
+
2736
+ // Send the request
2737
+ request.send(requestData || null);
2738
+ });
2739
+ });
2740
+
2741
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/adapters/adapters.js
2742
+
2743
+
2744
+
2745
+
2746
+
2747
+ const knownAdapters = {
2748
+ http: helpers_null,
2749
+ xhr: xhr
2750
+ }
2751
+
2752
+ utils.forEach(knownAdapters, (fn, value) => {
2753
+ if(fn) {
2754
+ try {
2755
+ Object.defineProperty(fn, 'name', {value});
2756
+ } catch (e) {
2757
+ // eslint-disable-next-line no-empty
2758
+ }
2759
+ Object.defineProperty(fn, 'adapterName', {value});
2760
+ }
2761
+ });
2762
+
2763
+ /* harmony default export */ var adapters = ({
2764
+ getAdapter: (adapters) => {
2765
+ adapters = utils.isArray(adapters) ? adapters : [adapters];
2766
+
2767
+ const {length} = adapters;
2768
+ let nameOrAdapter;
2769
+ let adapter;
2770
+
2771
+ for (let i = 0; i < length; i++) {
2772
+ nameOrAdapter = adapters[i];
2773
+ if((adapter = utils.isString(nameOrAdapter) ? knownAdapters[nameOrAdapter.toLowerCase()] : nameOrAdapter)) {
2774
+ break;
2775
+ }
2776
+ }
2777
+
2778
+ if (!adapter) {
2779
+ if (adapter === false) {
2780
+ throw new core_AxiosError(
2781
+ `Adapter ${nameOrAdapter} is not supported by the environment`,
2782
+ 'ERR_NOT_SUPPORT'
2783
+ );
2784
+ }
2785
+
2786
+ throw new Error(
2787
+ utils.hasOwnProp(knownAdapters, nameOrAdapter) ?
2788
+ `Adapter '${nameOrAdapter}' is not available in the build` :
2789
+ `Unknown adapter '${nameOrAdapter}'`
2790
+ );
2791
+ }
2792
+
2793
+ if (!utils.isFunction(adapter)) {
2794
+ throw new TypeError('adapter is not a function');
2795
+ }
2796
+
2797
+ return adapter;
2798
+ },
2799
+ adapters: knownAdapters
2800
+ });
2801
+
2802
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/core/dispatchRequest.js
2803
+
2804
+
2805
+
2806
+
2807
+
2808
+
2809
+
2810
+
2811
+
2812
+ /**
2813
+ * Throws a `CanceledError` if cancellation has been requested.
2814
+ *
2815
+ * @param {Object} config The config that is to be used for the request
2816
+ *
2817
+ * @returns {void}
2818
+ */
2819
+ function throwIfCancellationRequested(config) {
2820
+ if (config.cancelToken) {
2821
+ config.cancelToken.throwIfRequested();
2822
+ }
2823
+
2824
+ if (config.signal && config.signal.aborted) {
2825
+ throw new cancel_CanceledError(null, config);
2826
+ }
2827
+ }
2828
+
2829
+ /**
2830
+ * Dispatch a request to the server using the configured adapter.
2831
+ *
2832
+ * @param {object} config The config that is to be used for the request
2833
+ *
2834
+ * @returns {Promise} The Promise to be fulfilled
2835
+ */
2836
+ function dispatchRequest(config) {
2837
+ throwIfCancellationRequested(config);
2838
+
2839
+ config.headers = core_AxiosHeaders.from(config.headers);
2840
+
2841
+ // Transform request data
2842
+ config.data = transformData.call(
2843
+ config,
2844
+ config.transformRequest
2845
+ );
2846
+
2847
+ if (['post', 'put', 'patch'].indexOf(config.method) !== -1) {
2848
+ config.headers.setContentType('application/x-www-form-urlencoded', false);
2849
+ }
2850
+
2851
+ const adapter = adapters.getAdapter(config.adapter || lib_defaults.adapter);
2852
+
2853
+ return adapter(config).then(function onAdapterResolution(response) {
2854
+ throwIfCancellationRequested(config);
2855
+
2856
+ // Transform response data
2857
+ response.data = transformData.call(
2858
+ config,
2859
+ config.transformResponse,
2860
+ response
2861
+ );
2862
+
2863
+ response.headers = core_AxiosHeaders.from(response.headers);
2864
+
2865
+ return response;
2866
+ }, function onAdapterRejection(reason) {
2867
+ if (!isCancel(reason)) {
2868
+ throwIfCancellationRequested(config);
2869
+
2870
+ // Transform response data
2871
+ if (reason && reason.response) {
2872
+ reason.response.data = transformData.call(
2873
+ config,
2874
+ config.transformResponse,
2875
+ reason.response
2876
+ );
2877
+ reason.response.headers = core_AxiosHeaders.from(reason.response.headers);
2878
+ }
2879
+ }
2880
+
2881
+ return Promise.reject(reason);
2882
+ });
2883
+ }
2884
+
2885
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/core/mergeConfig.js
2886
+
2887
+
2888
+
2889
+
2890
+
2891
+ const headersToObject = (thing) => thing instanceof core_AxiosHeaders ? thing.toJSON() : thing;
2892
+
2893
+ /**
2894
+ * Config-specific merge-function which creates a new config-object
2895
+ * by merging two configuration objects together.
2896
+ *
2897
+ * @param {Object} config1
2898
+ * @param {Object} config2
2899
+ *
2900
+ * @returns {Object} New object resulting from merging config2 to config1
2901
+ */
2902
+ function mergeConfig(config1, config2) {
2903
+ // eslint-disable-next-line no-param-reassign
2904
+ config2 = config2 || {};
2905
+ const config = {};
2906
+
2907
+ function getMergedValue(target, source, caseless) {
2908
+ if (utils.isPlainObject(target) && utils.isPlainObject(source)) {
2909
+ return utils.merge.call({caseless}, target, source);
2910
+ } else if (utils.isPlainObject(source)) {
2911
+ return utils.merge({}, source);
2912
+ } else if (utils.isArray(source)) {
2913
+ return source.slice();
2914
+ }
2915
+ return source;
2916
+ }
2917
+
2918
+ // eslint-disable-next-line consistent-return
2919
+ function mergeDeepProperties(a, b, caseless) {
2920
+ if (!utils.isUndefined(b)) {
2921
+ return getMergedValue(a, b, caseless);
2922
+ } else if (!utils.isUndefined(a)) {
2923
+ return getMergedValue(undefined, a, caseless);
2924
+ }
2925
+ }
2926
+
2927
+ // eslint-disable-next-line consistent-return
2928
+ function valueFromConfig2(a, b) {
2929
+ if (!utils.isUndefined(b)) {
2930
+ return getMergedValue(undefined, b);
2931
+ }
2932
+ }
2933
+
2934
+ // eslint-disable-next-line consistent-return
2935
+ function defaultToConfig2(a, b) {
2936
+ if (!utils.isUndefined(b)) {
2937
+ return getMergedValue(undefined, b);
2938
+ } else if (!utils.isUndefined(a)) {
2939
+ return getMergedValue(undefined, a);
2940
+ }
2941
+ }
2942
+
2943
+ // eslint-disable-next-line consistent-return
2944
+ function mergeDirectKeys(a, b, prop) {
2945
+ if (prop in config2) {
2946
+ return getMergedValue(a, b);
2947
+ } else if (prop in config1) {
2948
+ return getMergedValue(undefined, a);
2949
+ }
2950
+ }
2951
+
2952
+ const mergeMap = {
2953
+ url: valueFromConfig2,
2954
+ method: valueFromConfig2,
2955
+ data: valueFromConfig2,
2956
+ baseURL: defaultToConfig2,
2957
+ transformRequest: defaultToConfig2,
2958
+ transformResponse: defaultToConfig2,
2959
+ paramsSerializer: defaultToConfig2,
2960
+ timeout: defaultToConfig2,
2961
+ timeoutMessage: defaultToConfig2,
2962
+ withCredentials: defaultToConfig2,
2963
+ adapter: defaultToConfig2,
2964
+ responseType: defaultToConfig2,
2965
+ xsrfCookieName: defaultToConfig2,
2966
+ xsrfHeaderName: defaultToConfig2,
2967
+ onUploadProgress: defaultToConfig2,
2968
+ onDownloadProgress: defaultToConfig2,
2969
+ decompress: defaultToConfig2,
2970
+ maxContentLength: defaultToConfig2,
2971
+ maxBodyLength: defaultToConfig2,
2972
+ beforeRedirect: defaultToConfig2,
2973
+ transport: defaultToConfig2,
2974
+ httpAgent: defaultToConfig2,
2975
+ httpsAgent: defaultToConfig2,
2976
+ cancelToken: defaultToConfig2,
2977
+ socketPath: defaultToConfig2,
2978
+ responseEncoding: defaultToConfig2,
2979
+ validateStatus: mergeDirectKeys,
2980
+ headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)
2981
+ };
2982
+
2983
+ utils.forEach(Object.keys(config1).concat(Object.keys(config2)), function computeConfigValue(prop) {
2984
+ const merge = mergeMap[prop] || mergeDeepProperties;
2985
+ const configValue = merge(config1[prop], config2[prop], prop);
2986
+ (utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);
2987
+ });
2988
+
2989
+ return config;
2990
+ }
2991
+
2992
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/env/data.js
2993
+ const VERSION = "1.3.5";
2994
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/validator.js
2995
+
2996
+
2997
+
2998
+
2999
+
3000
+ const validators = {};
3001
+
3002
+ // eslint-disable-next-line func-names
3003
+ ['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach((type, i) => {
3004
+ validators[type] = function validator(thing) {
3005
+ return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;
3006
+ };
3007
+ });
3008
+
3009
+ const deprecatedWarnings = {};
3010
+
3011
+ /**
3012
+ * Transitional option validator
3013
+ *
3014
+ * @param {function|boolean?} validator - set to false if the transitional option has been removed
3015
+ * @param {string?} version - deprecated version / removed since version
3016
+ * @param {string?} message - some message with additional info
3017
+ *
3018
+ * @returns {function}
3019
+ */
3020
+ validators.transitional = function transitional(validator, version, message) {
3021
+ function formatMessage(opt, desc) {
3022
+ return '[Axios v' + VERSION + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : '');
3023
+ }
3024
+
3025
+ // eslint-disable-next-line func-names
3026
+ return (value, opt, opts) => {
3027
+ if (validator === false) {
3028
+ throw new core_AxiosError(
3029
+ formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')),
3030
+ core_AxiosError.ERR_DEPRECATED
3031
+ );
3032
+ }
3033
+
3034
+ if (version && !deprecatedWarnings[opt]) {
3035
+ deprecatedWarnings[opt] = true;
3036
+ // eslint-disable-next-line no-console
3037
+ console.warn(
3038
+ formatMessage(
3039
+ opt,
3040
+ ' has been deprecated since v' + version + ' and will be removed in the near future'
3041
+ )
3042
+ );
3043
+ }
3044
+
3045
+ return validator ? validator(value, opt, opts) : true;
3046
+ };
3047
+ };
3048
+
3049
+ /**
3050
+ * Assert object's properties type
3051
+ *
3052
+ * @param {object} options
3053
+ * @param {object} schema
3054
+ * @param {boolean?} allowUnknown
3055
+ *
3056
+ * @returns {object}
3057
+ */
3058
+
3059
+ function assertOptions(options, schema, allowUnknown) {
3060
+ if (typeof options !== 'object') {
3061
+ throw new core_AxiosError('options must be an object', core_AxiosError.ERR_BAD_OPTION_VALUE);
3062
+ }
3063
+ const keys = Object.keys(options);
3064
+ let i = keys.length;
3065
+ while (i-- > 0) {
3066
+ const opt = keys[i];
3067
+ const validator = schema[opt];
3068
+ if (validator) {
3069
+ const value = options[opt];
3070
+ const result = value === undefined || validator(value, opt, options);
3071
+ if (result !== true) {
3072
+ throw new core_AxiosError('option ' + opt + ' must be ' + result, core_AxiosError.ERR_BAD_OPTION_VALUE);
3073
+ }
3074
+ continue;
3075
+ }
3076
+ if (allowUnknown !== true) {
3077
+ throw new core_AxiosError('Unknown option ' + opt, core_AxiosError.ERR_BAD_OPTION);
3078
+ }
3079
+ }
3080
+ }
3081
+
3082
+ /* harmony default export */ var validator = ({
3083
+ assertOptions,
3084
+ validators
3085
+ });
3086
+
3087
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/core/Axios.js
3088
+
3089
+
3090
+
3091
+
3092
+
3093
+
3094
+
3095
+
3096
+
3097
+
3098
+
3099
+ const Axios_validators = validator.validators;
3100
+
3101
+ /**
3102
+ * Create a new instance of Axios
3103
+ *
3104
+ * @param {Object} instanceConfig The default config for the instance
3105
+ *
3106
+ * @return {Axios} A new instance of Axios
3107
+ */
3108
+ class Axios {
3109
+ constructor(instanceConfig) {
3110
+ this.defaults = instanceConfig;
3111
+ this.interceptors = {
3112
+ request: new core_InterceptorManager(),
3113
+ response: new core_InterceptorManager()
3114
+ };
3115
+ }
3116
+
3117
+ /**
3118
+ * Dispatch a request
3119
+ *
3120
+ * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
3121
+ * @param {?Object} config
3122
+ *
3123
+ * @returns {Promise} The Promise to be fulfilled
3124
+ */
3125
+ request(configOrUrl, config) {
3126
+ /*eslint no-param-reassign:0*/
3127
+ // Allow for axios('example/url'[, config]) a la fetch API
3128
+ if (typeof configOrUrl === 'string') {
3129
+ config = config || {};
3130
+ config.url = configOrUrl;
3131
+ } else {
3132
+ config = configOrUrl || {};
3133
+ }
3134
+
3135
+ config = mergeConfig(this.defaults, config);
3136
+
3137
+ const {transitional, paramsSerializer, headers} = config;
3138
+
3139
+ if (transitional !== undefined) {
3140
+ validator.assertOptions(transitional, {
3141
+ silentJSONParsing: Axios_validators.transitional(Axios_validators.boolean),
3142
+ forcedJSONParsing: Axios_validators.transitional(Axios_validators.boolean),
3143
+ clarifyTimeoutError: Axios_validators.transitional(Axios_validators.boolean)
3144
+ }, false);
3145
+ }
3146
+
3147
+ if (paramsSerializer != null) {
3148
+ if (utils.isFunction(paramsSerializer)) {
3149
+ config.paramsSerializer = {
3150
+ serialize: paramsSerializer
3151
+ }
3152
+ } else {
3153
+ validator.assertOptions(paramsSerializer, {
3154
+ encode: Axios_validators.function,
3155
+ serialize: Axios_validators.function
3156
+ }, true);
3157
+ }
3158
+ }
3159
+
3160
+ // Set config.method
3161
+ config.method = (config.method || this.defaults.method || 'get').toLowerCase();
3162
+
3163
+ let contextHeaders;
3164
+
3165
+ // Flatten headers
3166
+ contextHeaders = headers && utils.merge(
3167
+ headers.common,
3168
+ headers[config.method]
3169
+ );
3170
+
3171
+ contextHeaders && utils.forEach(
3172
+ ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],
3173
+ (method) => {
3174
+ delete headers[method];
3175
+ }
3176
+ );
3177
+
3178
+ config.headers = core_AxiosHeaders.concat(contextHeaders, headers);
3179
+
3180
+ // filter out skipped interceptors
3181
+ const requestInterceptorChain = [];
3182
+ let synchronousRequestInterceptors = true;
3183
+ this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
3184
+ if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {
3185
+ return;
3186
+ }
3187
+
3188
+ synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
3189
+
3190
+ requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
3191
+ });
3192
+
3193
+ const responseInterceptorChain = [];
3194
+ this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
3195
+ responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
3196
+ });
3197
+
3198
+ let promise;
3199
+ let i = 0;
3200
+ let len;
3201
+
3202
+ if (!synchronousRequestInterceptors) {
3203
+ const chain = [dispatchRequest.bind(this), undefined];
3204
+ chain.unshift.apply(chain, requestInterceptorChain);
3205
+ chain.push.apply(chain, responseInterceptorChain);
3206
+ len = chain.length;
3207
+
3208
+ promise = Promise.resolve(config);
3209
+
3210
+ while (i < len) {
3211
+ promise = promise.then(chain[i++], chain[i++]);
3212
+ }
3213
+
3214
+ return promise;
3215
+ }
3216
+
3217
+ len = requestInterceptorChain.length;
3218
+
3219
+ let newConfig = config;
3220
+
3221
+ i = 0;
3222
+
3223
+ while (i < len) {
3224
+ const onFulfilled = requestInterceptorChain[i++];
3225
+ const onRejected = requestInterceptorChain[i++];
3226
+ try {
3227
+ newConfig = onFulfilled(newConfig);
3228
+ } catch (error) {
3229
+ onRejected.call(this, error);
3230
+ break;
3231
+ }
3232
+ }
3233
+
3234
+ try {
3235
+ promise = dispatchRequest.call(this, newConfig);
3236
+ } catch (error) {
3237
+ return Promise.reject(error);
3238
+ }
3239
+
3240
+ i = 0;
3241
+ len = responseInterceptorChain.length;
3242
+
3243
+ while (i < len) {
3244
+ promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);
3245
+ }
3246
+
3247
+ return promise;
3248
+ }
3249
+
3250
+ getUri(config) {
3251
+ config = mergeConfig(this.defaults, config);
3252
+ const fullPath = buildFullPath(config.baseURL, config.url);
3253
+ return buildURL(fullPath, config.params, config.paramsSerializer);
3254
+ }
3255
+ }
3256
+
3257
+ // Provide aliases for supported request methods
3258
+ utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
3259
+ /*eslint func-names:0*/
3260
+ Axios.prototype[method] = function(url, config) {
3261
+ return this.request(mergeConfig(config || {}, {
3262
+ method,
3263
+ url,
3264
+ data: (config || {}).data
3265
+ }));
3266
+ };
3267
+ });
3268
+
3269
+ utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
3270
+ /*eslint func-names:0*/
3271
+
3272
+ function generateHTTPMethod(isForm) {
3273
+ return function httpMethod(url, data, config) {
3274
+ return this.request(mergeConfig(config || {}, {
3275
+ method,
3276
+ headers: isForm ? {
3277
+ 'Content-Type': 'multipart/form-data'
3278
+ } : {},
3279
+ url,
3280
+ data
3281
+ }));
3282
+ };
3283
+ }
3284
+
3285
+ Axios.prototype[method] = generateHTTPMethod();
3286
+
3287
+ Axios.prototype[method + 'Form'] = generateHTTPMethod(true);
3288
+ });
3289
+
3290
+ /* harmony default export */ var core_Axios = (Axios);
3291
+
3292
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/cancel/CancelToken.js
3293
+
3294
+
3295
+
3296
+
3297
+ /**
3298
+ * A `CancelToken` is an object that can be used to request cancellation of an operation.
3299
+ *
3300
+ * @param {Function} executor The executor function.
3301
+ *
3302
+ * @returns {CancelToken}
3303
+ */
3304
+ class CancelToken {
3305
+ constructor(executor) {
3306
+ if (typeof executor !== 'function') {
3307
+ throw new TypeError('executor must be a function.');
3308
+ }
3309
+
3310
+ let resolvePromise;
3311
+
3312
+ this.promise = new Promise(function promiseExecutor(resolve) {
3313
+ resolvePromise = resolve;
3314
+ });
3315
+
3316
+ const token = this;
3317
+
3318
+ // eslint-disable-next-line func-names
3319
+ this.promise.then(cancel => {
3320
+ if (!token._listeners) return;
3321
+
3322
+ let i = token._listeners.length;
3323
+
3324
+ while (i-- > 0) {
3325
+ token._listeners[i](cancel);
3326
+ }
3327
+ token._listeners = null;
3328
+ });
3329
+
3330
+ // eslint-disable-next-line func-names
3331
+ this.promise.then = onfulfilled => {
3332
+ let _resolve;
3333
+ // eslint-disable-next-line func-names
3334
+ const promise = new Promise(resolve => {
3335
+ token.subscribe(resolve);
3336
+ _resolve = resolve;
3337
+ }).then(onfulfilled);
3338
+
3339
+ promise.cancel = function reject() {
3340
+ token.unsubscribe(_resolve);
3341
+ };
3342
+
3343
+ return promise;
3344
+ };
3345
+
3346
+ executor(function cancel(message, config, request) {
3347
+ if (token.reason) {
3348
+ // Cancellation has already been requested
3349
+ return;
3350
+ }
3351
+
3352
+ token.reason = new cancel_CanceledError(message, config, request);
3353
+ resolvePromise(token.reason);
3354
+ });
3355
+ }
3356
+
3357
+ /**
3358
+ * Throws a `CanceledError` if cancellation has been requested.
3359
+ */
3360
+ throwIfRequested() {
3361
+ if (this.reason) {
3362
+ throw this.reason;
3363
+ }
3364
+ }
3365
+
3366
+ /**
3367
+ * Subscribe to the cancel signal
3368
+ */
3369
+
3370
+ subscribe(listener) {
3371
+ if (this.reason) {
3372
+ listener(this.reason);
3373
+ return;
3374
+ }
3375
+
3376
+ if (this._listeners) {
3377
+ this._listeners.push(listener);
3378
+ } else {
3379
+ this._listeners = [listener];
3380
+ }
3381
+ }
3382
+
3383
+ /**
3384
+ * Unsubscribe from the cancel signal
3385
+ */
3386
+
3387
+ unsubscribe(listener) {
3388
+ if (!this._listeners) {
3389
+ return;
3390
+ }
3391
+ const index = this._listeners.indexOf(listener);
3392
+ if (index !== -1) {
3393
+ this._listeners.splice(index, 1);
3394
+ }
3395
+ }
3396
+
3397
+ /**
3398
+ * Returns an object that contains a new `CancelToken` and a function that, when called,
3399
+ * cancels the `CancelToken`.
3400
+ */
3401
+ static source() {
3402
+ let cancel;
3403
+ const token = new CancelToken(function executor(c) {
3404
+ cancel = c;
3405
+ });
3406
+ return {
3407
+ token,
3408
+ cancel
3409
+ };
3410
+ }
3411
+ }
3412
+
3413
+ /* harmony default export */ var cancel_CancelToken = (CancelToken);
3414
+
3415
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/spread.js
3416
+
3417
+
3418
+ /**
3419
+ * Syntactic sugar for invoking a function and expanding an array for arguments.
3420
+ *
3421
+ * Common use case would be to use `Function.prototype.apply`.
3422
+ *
3423
+ * ```js
3424
+ * function f(x, y, z) {}
3425
+ * var args = [1, 2, 3];
3426
+ * f.apply(null, args);
3427
+ * ```
3428
+ *
3429
+ * With `spread` this example can be re-written.
3430
+ *
3431
+ * ```js
3432
+ * spread(function(x, y, z) {})([1, 2, 3]);
3433
+ * ```
3434
+ *
3435
+ * @param {Function} callback
3436
+ *
3437
+ * @returns {Function}
3438
+ */
3439
+ function spread(callback) {
3440
+ return function wrap(arr) {
3441
+ return callback.apply(null, arr);
3442
+ };
3443
+ }
3444
+
3445
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/isAxiosError.js
3446
+
3447
+
3448
+
3449
+
3450
+ /**
3451
+ * Determines whether the payload is an error thrown by Axios
3452
+ *
3453
+ * @param {*} payload The value to test
3454
+ *
3455
+ * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
3456
+ */
3457
+ function isAxiosError(payload) {
3458
+ return utils.isObject(payload) && (payload.isAxiosError === true);
3459
+ }
3460
+
3461
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/HttpStatusCode.js
3462
+ const HttpStatusCode = {
3463
+ Continue: 100,
3464
+ SwitchingProtocols: 101,
3465
+ Processing: 102,
3466
+ EarlyHints: 103,
3467
+ Ok: 200,
3468
+ Created: 201,
3469
+ Accepted: 202,
3470
+ NonAuthoritativeInformation: 203,
3471
+ NoContent: 204,
3472
+ ResetContent: 205,
3473
+ PartialContent: 206,
3474
+ MultiStatus: 207,
3475
+ AlreadyReported: 208,
3476
+ ImUsed: 226,
3477
+ MultipleChoices: 300,
3478
+ MovedPermanently: 301,
3479
+ Found: 302,
3480
+ SeeOther: 303,
3481
+ NotModified: 304,
3482
+ UseProxy: 305,
3483
+ Unused: 306,
3484
+ TemporaryRedirect: 307,
3485
+ PermanentRedirect: 308,
3486
+ BadRequest: 400,
3487
+ Unauthorized: 401,
3488
+ PaymentRequired: 402,
3489
+ Forbidden: 403,
3490
+ NotFound: 404,
3491
+ MethodNotAllowed: 405,
3492
+ NotAcceptable: 406,
3493
+ ProxyAuthenticationRequired: 407,
3494
+ RequestTimeout: 408,
3495
+ Conflict: 409,
3496
+ Gone: 410,
3497
+ LengthRequired: 411,
3498
+ PreconditionFailed: 412,
3499
+ PayloadTooLarge: 413,
3500
+ UriTooLong: 414,
3501
+ UnsupportedMediaType: 415,
3502
+ RangeNotSatisfiable: 416,
3503
+ ExpectationFailed: 417,
3504
+ ImATeapot: 418,
3505
+ MisdirectedRequest: 421,
3506
+ UnprocessableEntity: 422,
3507
+ Locked: 423,
3508
+ FailedDependency: 424,
3509
+ TooEarly: 425,
3510
+ UpgradeRequired: 426,
3511
+ PreconditionRequired: 428,
3512
+ TooManyRequests: 429,
3513
+ RequestHeaderFieldsTooLarge: 431,
3514
+ UnavailableForLegalReasons: 451,
3515
+ InternalServerError: 500,
3516
+ NotImplemented: 501,
3517
+ BadGateway: 502,
3518
+ ServiceUnavailable: 503,
3519
+ GatewayTimeout: 504,
3520
+ HttpVersionNotSupported: 505,
3521
+ VariantAlsoNegotiates: 506,
3522
+ InsufficientStorage: 507,
3523
+ LoopDetected: 508,
3524
+ NotExtended: 510,
3525
+ NetworkAuthenticationRequired: 511,
3526
+ };
3527
+
3528
+ Object.entries(HttpStatusCode).forEach(([key, value]) => {
3529
+ HttpStatusCode[value] = key;
3530
+ });
3531
+
3532
+ /* harmony default export */ var helpers_HttpStatusCode = (HttpStatusCode);
3533
+
3534
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/axios.js
3535
+
3536
+
3537
+
3538
+
3539
+
3540
+
3541
+
3542
+
3543
+
3544
+
3545
+
3546
+
3547
+
3548
+
3549
+
3550
+
3551
+
3552
+
3553
+
3554
+ /**
3555
+ * Create an instance of Axios
3556
+ *
3557
+ * @param {Object} defaultConfig The default config for the instance
3558
+ *
3559
+ * @returns {Axios} A new instance of Axios
3560
+ */
3561
+ function createInstance(defaultConfig) {
3562
+ const context = new core_Axios(defaultConfig);
3563
+ const instance = bind(core_Axios.prototype.request, context);
3564
+
3565
+ // Copy axios.prototype to instance
3566
+ utils.extend(instance, core_Axios.prototype, context, {allOwnKeys: true});
3567
+
3568
+ // Copy context to instance
3569
+ utils.extend(instance, context, null, {allOwnKeys: true});
3570
+
3571
+ // Factory for creating new instances
3572
+ instance.create = function create(instanceConfig) {
3573
+ return createInstance(mergeConfig(defaultConfig, instanceConfig));
3574
+ };
3575
+
3576
+ return instance;
141
3577
  }
142
- ;// CONCATENATED MODULE: ./packages/process/src/process.vue?vue&type=template&id=3eeea49c&ts=true
3578
+
3579
+ // Create the default instance to be exported
3580
+ const axios = createInstance(lib_defaults);
3581
+
3582
+ // Expose Axios class to allow class inheritance
3583
+ axios.Axios = core_Axios;
3584
+
3585
+ // Expose Cancel & CancelToken
3586
+ axios.CanceledError = cancel_CanceledError;
3587
+ axios.CancelToken = cancel_CancelToken;
3588
+ axios.isCancel = isCancel;
3589
+ axios.VERSION = VERSION;
3590
+ axios.toFormData = helpers_toFormData;
3591
+
3592
+ // Expose AxiosError class
3593
+ axios.AxiosError = core_AxiosError;
3594
+
3595
+ // alias for CanceledError for backward compatibility
3596
+ axios.Cancel = axios.CanceledError;
3597
+
3598
+ // Expose all/spread
3599
+ axios.all = function all(promises) {
3600
+ return Promise.all(promises);
3601
+ };
3602
+
3603
+ axios.spread = spread;
3604
+
3605
+ // Expose isAxiosError
3606
+ axios.isAxiosError = isAxiosError;
3607
+
3608
+ // Expose mergeConfig
3609
+ axios.mergeConfig = mergeConfig;
3610
+
3611
+ axios.AxiosHeaders = core_AxiosHeaders;
3612
+
3613
+ axios.formToJSON = thing => helpers_formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);
3614
+
3615
+ axios.HttpStatusCode = helpers_HttpStatusCode;
3616
+
3617
+ axios.default = axios;
3618
+
3619
+ // this module should only have a default export
3620
+ /* harmony default export */ var lib_axios = (axios);
143
3621
 
144
3622
  ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-86.use[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/process/src/process.vue?vue&type=script&lang=ts
145
3623
 
3624
+
146
3625
  /* harmony default export */ var processvue_type_script_lang_ts = ({
147
3626
  name: "tops-process",
148
3627
  props: {
@@ -163,12 +3642,22 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
163
3642
  }
164
3643
  },
165
3644
  setup(props) {
166
- const processStatus = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)("");
167
- const host = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(({"NODE_ENV":"production","BASE_URL":"/"}).VUE_APP_BASE_URL);
3645
+ const processStatus = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)({});
3646
+ const BASE = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(({"NODE_ENV":"production","BASE_URL":"/"}).VUE_APP_BASE_URL || "process.env.VUE_APP_BASE_URL ");
3647
+ const HOST = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(({"NODE_ENV":"production","BASE_URL":"/"}).VUE_APP_H5_HOST || "process.env.VUE_APP_H5_HOST");
168
3648
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.processId, (val, preVal) => {
169
- if (val) {}
3649
+ if (val) {
3650
+ lib_axios.get(`${HOST}/${BASE}/aws/pis/getProcessStatus?processInstId=44cdbdaa-b349-44ec-94d9-04827e0a11f2&taskId=80781ede-b00b-4d07-9d46-8893846a0c7a`).then(response => {
3651
+ console.log("res:::", response);
3652
+ processStatus.value = response.data;
3653
+ });
3654
+ }
170
3655
  });
171
- return processStatus.value, host.value;
3656
+ return {
3657
+ processStatus,
3658
+ BASE,
3659
+ HOST
3660
+ };
172
3661
  },
173
3662
  methods: {
174
3663
  getColor(status) {