@indfnd/common-mobile 1.0.81 → 1.0.82
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/CHANGELOG.md +13 -0
- package/dist/ind-common-mobile.es.js +2471 -1053
- package/dist/ind-common-mobile.umd.cjs +12 -8
- package/package.json +1 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import _ from "lodash";
|
|
2
|
-
import { getQuarterNum, getHalfYearNum, formatDate, useConfig, getLocalStorage, checkIdCard, checkVehicleNo, checkPhone, getDictMapApi, axios as axios$
|
|
2
|
+
import { getQuarterNum, getHalfYearNum, formatDate, useConfig, getLocalStorage, checkIdCard, checkVehicleNo, checkPhone, getDictMapApi, axios as axios$1, getCaptchaURL, guid, setLocalStorage, clearSessionStorage, cryptor, listComTreeApi, listItemTreeApi, getUserInfoApi, getToken, MIME_TYPE, config as config$1, getSessionStorage, setToken, loginApi, clearUserInfoCache, clearPermissionCache, logoutApi, getUserInfoCache, setUserInfoCache, setSessionStorage, getAppListApi, getPermissionCache, getPermissionApi, setPermissionCache, menuHistoryApi, addMenuCollectApi, removeMenuCollectApi, setConfig } from "@indfnd/utils";
|
|
3
3
|
import Vue$1 from "vue";
|
|
4
4
|
import { DropdownMenu as DropdownMenu$1, DropdownItem as DropdownItem$1, Message, LoadingBar, Spin } from "view-design";
|
|
5
|
-
const name
|
|
6
|
-
const version$
|
|
7
|
-
const author
|
|
5
|
+
const name = "@indfnd/common-mobile";
|
|
6
|
+
const version$1 = "1.0.81";
|
|
7
|
+
const author = "huxuetong";
|
|
8
8
|
const publishConfig = {
|
|
9
9
|
registry: "https://registry.npmjs.org/"
|
|
10
10
|
};
|
|
11
|
-
const main$
|
|
11
|
+
const main$1 = "./dist/ind-common-mobile.umd.cjs";
|
|
12
12
|
const module = "./dist/ind-common-mobile.es.js";
|
|
13
13
|
const style = "./dist/styles/index.css";
|
|
14
14
|
const types = "./types/index.d.ts";
|
|
@@ -32,7 +32,7 @@ const files = [
|
|
|
32
32
|
"global.d.ts",
|
|
33
33
|
"src/styles/variables"
|
|
34
34
|
];
|
|
35
|
-
const scripts
|
|
35
|
+
const scripts = {
|
|
36
36
|
"build:prod": "vite build",
|
|
37
37
|
"build:style": "gulp --gulpfile build/build-style.js",
|
|
38
38
|
build: "yarn build:prod && yarn build:style",
|
|
@@ -44,11 +44,11 @@ const scripts$1 = {
|
|
|
44
44
|
"release-patch": "standard-version --release-as patch",
|
|
45
45
|
"re-publish": "yarn publish --access public"
|
|
46
46
|
};
|
|
47
|
-
const dependencies
|
|
47
|
+
const dependencies = {
|
|
48
48
|
classnames: "^2.5.1",
|
|
49
49
|
vuedraggable: "^2.24.3"
|
|
50
50
|
};
|
|
51
|
-
const devDependencies
|
|
51
|
+
const devDependencies = {
|
|
52
52
|
lodash: "4.17.21",
|
|
53
53
|
"@indfnd/utils": "^0.1.40",
|
|
54
54
|
eslint: "^3.19.0",
|
|
@@ -82,20 +82,20 @@ const devDependencies$1 = {
|
|
|
82
82
|
const engines = {
|
|
83
83
|
node: ">= 16"
|
|
84
84
|
};
|
|
85
|
-
var pkg
|
|
86
|
-
name
|
|
87
|
-
version: version$
|
|
88
|
-
author
|
|
85
|
+
var pkg = {
|
|
86
|
+
name,
|
|
87
|
+
version: version$1,
|
|
88
|
+
author,
|
|
89
89
|
publishConfig,
|
|
90
|
-
main: main$
|
|
90
|
+
main: main$1,
|
|
91
91
|
module,
|
|
92
92
|
style,
|
|
93
93
|
types,
|
|
94
94
|
exports,
|
|
95
95
|
files,
|
|
96
|
-
scripts
|
|
97
|
-
dependencies
|
|
98
|
-
devDependencies
|
|
96
|
+
scripts,
|
|
97
|
+
dependencies,
|
|
98
|
+
devDependencies,
|
|
99
99
|
engines
|
|
100
100
|
};
|
|
101
101
|
var render$L = function() {
|
|
@@ -4172,9 +4172,9 @@ const __vue2_script$z = {
|
|
|
4172
4172
|
params = this.renderParams(params);
|
|
4173
4173
|
}
|
|
4174
4174
|
if (this.methodsType == "post") {
|
|
4175
|
-
resp = await axios$
|
|
4175
|
+
resp = await axios$1.post(this.dataUrl, params);
|
|
4176
4176
|
} else {
|
|
4177
|
-
resp = await axios$
|
|
4177
|
+
resp = await axios$1.get(this.dataUrl, { params });
|
|
4178
4178
|
}
|
|
4179
4179
|
const newData = ((_a = resp.data) == null ? void 0 : _a.rows) || ((_b = resp.data) == null ? void 0 : _b.records) || [];
|
|
4180
4180
|
console.log("\u6536\u5230\u5206\u9875\u54CD\u5E94", {
|
|
@@ -4288,9 +4288,9 @@ const __vue2_script$z = {
|
|
|
4288
4288
|
params = this.renderParams(params);
|
|
4289
4289
|
}
|
|
4290
4290
|
if (this.methodsType == "post") {
|
|
4291
|
-
resp = await axios$
|
|
4291
|
+
resp = await axios$1.post(this.dataUrl, params);
|
|
4292
4292
|
} else {
|
|
4293
|
-
resp = await axios$
|
|
4293
|
+
resp = await axios$1.get(this.dataUrl, { params });
|
|
4294
4294
|
}
|
|
4295
4295
|
const newData = ((_b = resp.data) == null ? void 0 : _b.rows) || ((_c = resp.data) == null ? void 0 : _c.records) || [];
|
|
4296
4296
|
this.rows = [...newData];
|
|
@@ -4724,10 +4724,10 @@ var LoginForm = /* @__PURE__ */ function() {
|
|
|
4724
4724
|
function _extends$2() {
|
|
4725
4725
|
_extends$2 = Object.assign ? Object.assign.bind() : function(target2) {
|
|
4726
4726
|
for (var i = 1; i < arguments.length; i++) {
|
|
4727
|
-
var
|
|
4728
|
-
for (var key in
|
|
4729
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
4730
|
-
target2[key] =
|
|
4727
|
+
var source = arguments[i];
|
|
4728
|
+
for (var key in source) {
|
|
4729
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
4730
|
+
target2[key] = source[key];
|
|
4731
4731
|
}
|
|
4732
4732
|
}
|
|
4733
4733
|
}
|
|
@@ -4800,13 +4800,13 @@ function createBEM(name2) {
|
|
|
4800
4800
|
return "" + el + gen(el, mods);
|
|
4801
4801
|
};
|
|
4802
4802
|
}
|
|
4803
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
4803
|
+
var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
|
|
4804
4804
|
function assignKey(to, from, key) {
|
|
4805
4805
|
var val = from[key];
|
|
4806
4806
|
if (!isDef(val)) {
|
|
4807
4807
|
return;
|
|
4808
4808
|
}
|
|
4809
|
-
if (!hasOwnProperty.call(to, key) || !isObject$1(val)) {
|
|
4809
|
+
if (!hasOwnProperty$1.call(to, key) || !isObject$1(val)) {
|
|
4810
4810
|
to[key] = val;
|
|
4811
4811
|
} else {
|
|
4812
4812
|
to[key] = deepAssign(Object(to[key]), from[key]);
|
|
@@ -4991,7 +4991,7 @@ function transformFunctionComponent(pure) {
|
|
|
4991
4991
|
}
|
|
4992
4992
|
function createComponent$1H(name2) {
|
|
4993
4993
|
return function(sfc) {
|
|
4994
|
-
if (isFunction$
|
|
4994
|
+
if (isFunction$2(sfc)) {
|
|
4995
4995
|
sfc = transformFunctionComponent(sfc);
|
|
4996
4996
|
}
|
|
4997
4997
|
if (!sfc.functional) {
|
|
@@ -5011,7 +5011,7 @@ function createI18N(name2) {
|
|
|
5011
5011
|
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
5012
5012
|
args[_key - 1] = arguments[_key];
|
|
5013
5013
|
}
|
|
5014
|
-
return isFunction$
|
|
5014
|
+
return isFunction$2(message) ? message.apply(void 0, args) : message;
|
|
5015
5015
|
};
|
|
5016
5016
|
}
|
|
5017
5017
|
function createNamespace(name2) {
|
|
@@ -5074,19 +5074,19 @@ function unitToPx(value17) {
|
|
|
5074
5074
|
}
|
|
5075
5075
|
var inBrowser = typeof window !== "undefined";
|
|
5076
5076
|
var isServer = Vue$1.prototype.$isServer;
|
|
5077
|
-
function noop() {
|
|
5077
|
+
function noop$1() {
|
|
5078
5078
|
}
|
|
5079
5079
|
function isDef(val) {
|
|
5080
5080
|
return val !== void 0 && val !== null;
|
|
5081
5081
|
}
|
|
5082
|
-
function isFunction$
|
|
5082
|
+
function isFunction$2(val) {
|
|
5083
5083
|
return typeof val === "function";
|
|
5084
5084
|
}
|
|
5085
5085
|
function isObject$1(val) {
|
|
5086
5086
|
return val !== null && typeof val === "object";
|
|
5087
5087
|
}
|
|
5088
5088
|
function isPromise(val) {
|
|
5089
|
-
return isObject$1(val) && isFunction$
|
|
5089
|
+
return isObject$1(val) && isFunction$2(val.then) && isFunction$2(val.catch);
|
|
5090
5090
|
}
|
|
5091
5091
|
function get2(object, path2) {
|
|
5092
5092
|
var keys2 = path2.split(".");
|
|
@@ -5233,7 +5233,7 @@ function Overlay(h, props, slots2, ctx) {
|
|
|
5233
5233
|
"style": style12,
|
|
5234
5234
|
"class": [bem$1x(), props.className],
|
|
5235
5235
|
"on": {
|
|
5236
|
-
"touchmove": props.lockScroll ? preventTouchMove : noop
|
|
5236
|
+
"touchmove": props.lockScroll ? preventTouchMove : noop$1
|
|
5237
5237
|
}
|
|
5238
5238
|
}, inherit(ctx, true)]), [slots2.default == null ? void 0 : slots2.default()])]);
|
|
5239
5239
|
}
|
|
@@ -5463,7 +5463,7 @@ function PortalMixin(_temp) {
|
|
|
5463
5463
|
var uid$1 = 0;
|
|
5464
5464
|
function BindEventMixin(handler4) {
|
|
5465
5465
|
var key = "binded_" + uid$1++;
|
|
5466
|
-
function
|
|
5466
|
+
function bind2() {
|
|
5467
5467
|
if (!this[key]) {
|
|
5468
5468
|
handler4.call(this, on$1, true);
|
|
5469
5469
|
this[key] = true;
|
|
@@ -5476,14 +5476,14 @@ function BindEventMixin(handler4) {
|
|
|
5476
5476
|
}
|
|
5477
5477
|
}
|
|
5478
5478
|
return {
|
|
5479
|
-
mounted:
|
|
5480
|
-
activated:
|
|
5479
|
+
mounted: bind2,
|
|
5480
|
+
activated: bind2,
|
|
5481
5481
|
deactivated: unbind,
|
|
5482
5482
|
beforeDestroy: unbind
|
|
5483
5483
|
};
|
|
5484
5484
|
}
|
|
5485
5485
|
var CloseOnPopstateMixin = {
|
|
5486
|
-
mixins: [BindEventMixin(function(
|
|
5486
|
+
mixins: [BindEventMixin(function(bind2, isBind) {
|
|
5487
5487
|
this.handlePopstate(isBind && this.closeOnPopstate);
|
|
5488
5488
|
})],
|
|
5489
5489
|
props: {
|
|
@@ -5504,13 +5504,13 @@ var CloseOnPopstateMixin = {
|
|
|
5504
5504
|
this.close();
|
|
5505
5505
|
this.shouldReopen = false;
|
|
5506
5506
|
},
|
|
5507
|
-
handlePopstate: function handlePopstate(
|
|
5507
|
+
handlePopstate: function handlePopstate(bind2) {
|
|
5508
5508
|
if (this.$isServer) {
|
|
5509
5509
|
return;
|
|
5510
5510
|
}
|
|
5511
|
-
if (this.bindStatus !==
|
|
5512
|
-
this.bindStatus =
|
|
5513
|
-
var action =
|
|
5511
|
+
if (this.bindStatus !== bind2) {
|
|
5512
|
+
this.bindStatus = bind2;
|
|
5513
|
+
var action = bind2 ? on$1 : off$1;
|
|
5514
5514
|
action(window, "popstate", this.onPopstate);
|
|
5515
5515
|
}
|
|
5516
5516
|
}
|
|
@@ -6003,11 +6003,11 @@ function ActionSheet(h, props, slots2, ctx) {
|
|
|
6003
6003
|
}
|
|
6004
6004
|
}
|
|
6005
6005
|
function Description() {
|
|
6006
|
-
var
|
|
6007
|
-
if (
|
|
6006
|
+
var description = (slots2.description == null ? void 0 : slots2.description()) || props.description;
|
|
6007
|
+
if (description) {
|
|
6008
6008
|
return h("div", {
|
|
6009
6009
|
"class": bem$1s("description")
|
|
6010
|
-
}, [
|
|
6010
|
+
}, [description]);
|
|
6011
6011
|
}
|
|
6012
6012
|
}
|
|
6013
6013
|
return h(Popup, _mergeJSXProps([{
|
|
@@ -7345,7 +7345,7 @@ var Field = createComponent$1w({
|
|
|
7345
7345
|
},
|
|
7346
7346
|
getRuleMessage: function getRuleMessage(value17, rule) {
|
|
7347
7347
|
var message = rule.message;
|
|
7348
|
-
if (isFunction$
|
|
7348
|
+
if (isFunction$2(message)) {
|
|
7349
7349
|
return message(value17, rule);
|
|
7350
7350
|
}
|
|
7351
7351
|
return message;
|
|
@@ -8398,10 +8398,10 @@ var VanDialog = createComponent$1r({
|
|
|
8398
8398
|
var onEventType = {
|
|
8399
8399
|
Enter: this.showConfirmButton ? function() {
|
|
8400
8400
|
return _this3.handleAction("confirm");
|
|
8401
|
-
} : noop,
|
|
8401
|
+
} : noop$1,
|
|
8402
8402
|
Escape: this.showCancelButton ? function() {
|
|
8403
8403
|
return _this3.handleAction("cancel");
|
|
8404
|
-
} : noop
|
|
8404
|
+
} : noop$1
|
|
8405
8405
|
};
|
|
8406
8406
|
onEventType[event.key]();
|
|
8407
8407
|
this.$emit("keydown", event);
|
|
@@ -11006,7 +11006,7 @@ function callInterceptor(options) {
|
|
|
11006
11006
|
if (value17) {
|
|
11007
11007
|
done();
|
|
11008
11008
|
}
|
|
11009
|
-
}).catch(noop);
|
|
11009
|
+
}).catch(noop$1);
|
|
11010
11010
|
} else if (returnVal) {
|
|
11011
11011
|
done();
|
|
11012
11012
|
}
|
|
@@ -11094,7 +11094,7 @@ var Title = createComponent$1b({
|
|
|
11094
11094
|
});
|
|
11095
11095
|
var _createNamespace$16 = createNamespace("sticky"), createComponent$1a = _createNamespace$16[0], bem$13 = _createNamespace$16[1];
|
|
11096
11096
|
var Sticky = createComponent$1a({
|
|
11097
|
-
mixins: [BindEventMixin(function(
|
|
11097
|
+
mixins: [BindEventMixin(function(bind2, isBind) {
|
|
11098
11098
|
if (!this.scroller) {
|
|
11099
11099
|
this.scroller = getScroller(this.$el);
|
|
11100
11100
|
}
|
|
@@ -11102,7 +11102,7 @@ var Sticky = createComponent$1a({
|
|
|
11102
11102
|
var method = isBind ? "observe" : "unobserve";
|
|
11103
11103
|
this.observer[method](this.$el);
|
|
11104
11104
|
}
|
|
11105
|
-
|
|
11105
|
+
bind2(this.scroller, "scroll", this.onScroll, true);
|
|
11106
11106
|
this.onScroll();
|
|
11107
11107
|
})],
|
|
11108
11108
|
props: {
|
|
@@ -11278,13 +11278,13 @@ var Content = createComponent$19({
|
|
|
11278
11278
|
});
|
|
11279
11279
|
var _createNamespace$14 = createNamespace("tabs"), createComponent$18 = _createNamespace$14[0], bem$11 = _createNamespace$14[1];
|
|
11280
11280
|
var Tabs = createComponent$18({
|
|
11281
|
-
mixins: [ParentMixin("vanTabs"), BindEventMixin(function(
|
|
11281
|
+
mixins: [ParentMixin("vanTabs"), BindEventMixin(function(bind2) {
|
|
11282
11282
|
if (!this.scroller) {
|
|
11283
11283
|
this.scroller = getScroller(this.$el);
|
|
11284
11284
|
}
|
|
11285
|
-
|
|
11285
|
+
bind2(window, "resize", this.resize, true);
|
|
11286
11286
|
if (this.scrollspy) {
|
|
11287
|
-
|
|
11287
|
+
bind2(this.scroller, "scroll", this.onScroll, true);
|
|
11288
11288
|
}
|
|
11289
11289
|
})],
|
|
11290
11290
|
inject: {
|
|
@@ -12953,7 +12953,7 @@ var Coupon = createComponent$X({
|
|
|
12953
12953
|
render: function render32() {
|
|
12954
12954
|
var h = arguments[0];
|
|
12955
12955
|
var coupon = this.coupon, disabled = this.disabled;
|
|
12956
|
-
var
|
|
12956
|
+
var description = disabled && coupon.reason || coupon.description;
|
|
12957
12957
|
return h("div", {
|
|
12958
12958
|
"class": bem$Q({
|
|
12959
12959
|
disabled
|
|
@@ -12982,9 +12982,9 @@ var Coupon = createComponent$X({
|
|
|
12982
12982
|
"checkedColor": RED
|
|
12983
12983
|
},
|
|
12984
12984
|
"class": bem$Q("corner")
|
|
12985
|
-
})])]),
|
|
12985
|
+
})])]), description && h("p", {
|
|
12986
12986
|
"class": bem$Q("description")
|
|
12987
|
-
}, [
|
|
12987
|
+
}, [description])]);
|
|
12988
12988
|
}
|
|
12989
12989
|
});
|
|
12990
12990
|
var _createNamespace$S = createNamespace("coupon-cell"), createComponent$W = _createNamespace$S[0], bem$P = _createNamespace$S[1], t$e = _createNamespace$S[2];
|
|
@@ -13909,9 +13909,9 @@ var DropdownItem = createComponent$Q({
|
|
|
13909
13909
|
this.showWrapper = true;
|
|
13910
13910
|
}
|
|
13911
13911
|
},
|
|
13912
|
-
bindScroll: function bindScroll(
|
|
13912
|
+
bindScroll: function bindScroll(bind2) {
|
|
13913
13913
|
var scroller2 = this.parent.scroller;
|
|
13914
|
-
var action =
|
|
13914
|
+
var action = bind2 ? on$1 : off$1;
|
|
13915
13915
|
action(scroller2, "scroll", this.onScroll, true);
|
|
13916
13916
|
},
|
|
13917
13917
|
onScroll: function onScroll4() {
|
|
@@ -14370,11 +14370,11 @@ var Empty = createComponent$O({
|
|
|
14370
14370
|
},
|
|
14371
14371
|
genDescription: function genDescription() {
|
|
14372
14372
|
var h = this.$createElement;
|
|
14373
|
-
var
|
|
14374
|
-
if (
|
|
14373
|
+
var description = this.slots("description") || this.description;
|
|
14374
|
+
if (description) {
|
|
14375
14375
|
return h("p", {
|
|
14376
14376
|
"class": bem$J("description")
|
|
14377
|
-
}, [
|
|
14377
|
+
}, [description]);
|
|
14378
14378
|
}
|
|
14379
14379
|
},
|
|
14380
14380
|
genBottom: function genBottom() {
|
|
@@ -14793,10 +14793,10 @@ var GridItem = createComponent$K({
|
|
|
14793
14793
|
var _createNamespace$F = createNamespace("image-preview"), createComponent$J = _createNamespace$F[0], bem$E = _createNamespace$F[1];
|
|
14794
14794
|
var _createNamespace$E = createNamespace("swipe"), createComponent$I = _createNamespace$E[0], bem$D = _createNamespace$E[1];
|
|
14795
14795
|
var Swipe = createComponent$I({
|
|
14796
|
-
mixins: [TouchMixin, ParentMixin("vanSwipe"), BindEventMixin(function(
|
|
14797
|
-
|
|
14798
|
-
|
|
14799
|
-
|
|
14796
|
+
mixins: [TouchMixin, ParentMixin("vanSwipe"), BindEventMixin(function(bind2, isBind) {
|
|
14797
|
+
bind2(window, "resize", this.resize, true);
|
|
14798
|
+
bind2(window, "orientationchange", this.resize, true);
|
|
14799
|
+
bind2(window, "visibilitychange", this.onVisibilityChange);
|
|
14800
14800
|
if (isBind) {
|
|
14801
14801
|
this.initialize();
|
|
14802
14802
|
} else {
|
|
@@ -15419,9 +15419,9 @@ var ImagePreviewItem = {
|
|
|
15419
15419
|
var VueImagePreview = createComponent$J({
|
|
15420
15420
|
mixins: [TouchMixin, PopupMixin({
|
|
15421
15421
|
skipToggleEvent: true
|
|
15422
|
-
}), BindEventMixin(function(
|
|
15423
|
-
|
|
15424
|
-
|
|
15422
|
+
}), BindEventMixin(function(bind2) {
|
|
15423
|
+
bind2(window, "resize", this.resize, true);
|
|
15424
|
+
bind2(window, "orientationchange", this.resize, true);
|
|
15425
15425
|
})],
|
|
15426
15426
|
props: {
|
|
15427
15427
|
className: null,
|
|
@@ -15786,11 +15786,11 @@ function genAlphabet() {
|
|
|
15786
15786
|
}
|
|
15787
15787
|
var _createNamespace$B = createNamespace("index-bar"), createComponent$F = _createNamespace$B[0], bem$A = _createNamespace$B[1];
|
|
15788
15788
|
var IndexBar = createComponent$F({
|
|
15789
|
-
mixins: [TouchMixin, ParentMixin("vanIndexBar"), BindEventMixin(function(
|
|
15789
|
+
mixins: [TouchMixin, ParentMixin("vanIndexBar"), BindEventMixin(function(bind2) {
|
|
15790
15790
|
if (!this.scroller) {
|
|
15791
15791
|
this.scroller = getScroller(this.$el);
|
|
15792
15792
|
}
|
|
15793
|
-
|
|
15793
|
+
bind2(this.scroller, "scroll", this.onScroll);
|
|
15794
15794
|
})],
|
|
15795
15795
|
props: {
|
|
15796
15796
|
zIndex: [Number, String],
|
|
@@ -15965,11 +15965,11 @@ var IndexBar = createComponent$F({
|
|
|
15965
15965
|
});
|
|
15966
15966
|
var _createNamespace$A = createNamespace("list"), createComponent$E = _createNamespace$A[0], bem$z = _createNamespace$A[1], t$c = _createNamespace$A[2];
|
|
15967
15967
|
var List = createComponent$E({
|
|
15968
|
-
mixins: [BindEventMixin(function(
|
|
15968
|
+
mixins: [BindEventMixin(function(bind2) {
|
|
15969
15969
|
if (!this.scroller) {
|
|
15970
15970
|
this.scroller = getScroller(this.$el);
|
|
15971
15971
|
}
|
|
15972
|
-
|
|
15972
|
+
bind2(this.scroller, "scroll", this.check);
|
|
15973
15973
|
})],
|
|
15974
15974
|
model: {
|
|
15975
15975
|
prop: "loading"
|
|
@@ -16220,8 +16220,8 @@ var NavBar = createComponent$D({
|
|
|
16220
16220
|
});
|
|
16221
16221
|
var _createNamespace$y = createNamespace("notice-bar"), createComponent$C = _createNamespace$y[0], bem$x = _createNamespace$y[1];
|
|
16222
16222
|
var NoticeBar = createComponent$C({
|
|
16223
|
-
mixins: [BindEventMixin(function(
|
|
16224
|
-
|
|
16223
|
+
mixins: [BindEventMixin(function(bind2) {
|
|
16224
|
+
bind2(window, "pageshow", this.reset);
|
|
16225
16225
|
})],
|
|
16226
16226
|
inject: {
|
|
16227
16227
|
vanPopup: {
|
|
@@ -16622,9 +16622,9 @@ var Key = createComponent$A({
|
|
|
16622
16622
|
});
|
|
16623
16623
|
var _createNamespace$v = createNamespace("number-keyboard"), createComponent$z = _createNamespace$v[0], bem$u = _createNamespace$v[1];
|
|
16624
16624
|
var NumberKeyboard = createComponent$z({
|
|
16625
|
-
mixins: [PortalMixin(), BindEventMixin(function(
|
|
16625
|
+
mixins: [PortalMixin(), BindEventMixin(function(bind2) {
|
|
16626
16626
|
if (this.hideOnClickOutside) {
|
|
16627
|
-
|
|
16627
|
+
bind2(document.body, "touchstart", this.onBlur);
|
|
16628
16628
|
}
|
|
16629
16629
|
})],
|
|
16630
16630
|
model: {
|
|
@@ -17353,12 +17353,12 @@ var beforeRead = "beforeRead";
|
|
|
17353
17353
|
var read = "read";
|
|
17354
17354
|
var afterRead = "afterRead";
|
|
17355
17355
|
var beforeMain = "beforeMain";
|
|
17356
|
-
var main
|
|
17356
|
+
var main = "main";
|
|
17357
17357
|
var afterMain = "afterMain";
|
|
17358
17358
|
var beforeWrite = "beforeWrite";
|
|
17359
17359
|
var write = "write";
|
|
17360
17360
|
var afterWrite = "afterWrite";
|
|
17361
|
-
var modifierPhases = [beforeRead, read, afterRead, beforeMain, main
|
|
17361
|
+
var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];
|
|
17362
17362
|
function order(modifiers) {
|
|
17363
17363
|
var map = /* @__PURE__ */ new Map();
|
|
17364
17364
|
var visited = /* @__PURE__ */ new Set();
|
|
@@ -18209,9 +18209,9 @@ var Popover = createComponent$v({
|
|
|
18209
18209
|
});
|
|
18210
18210
|
var _createNamespace$q = createNamespace("progress"), createComponent$u = _createNamespace$q[0], bem$p = _createNamespace$q[1];
|
|
18211
18211
|
var Progress = createComponent$u({
|
|
18212
|
-
mixins: [BindEventMixin(function(
|
|
18213
|
-
|
|
18214
|
-
|
|
18212
|
+
mixins: [BindEventMixin(function(bind2) {
|
|
18213
|
+
bind2(window, "resize", this.resize, true);
|
|
18214
|
+
bind2(window, "orientationchange", this.resize, true);
|
|
18215
18215
|
})],
|
|
18216
18216
|
props: {
|
|
18217
18217
|
color: String,
|
|
@@ -18881,17 +18881,17 @@ var ShareSheet = createComponent$p({
|
|
|
18881
18881
|
genHeader: function genHeader() {
|
|
18882
18882
|
var h = this.$createElement;
|
|
18883
18883
|
var title4 = this.slots("title") || this.title;
|
|
18884
|
-
var
|
|
18885
|
-
if (!title4 && !
|
|
18884
|
+
var description = this.slots("description") || this.description;
|
|
18885
|
+
if (!title4 && !description) {
|
|
18886
18886
|
return;
|
|
18887
18887
|
}
|
|
18888
18888
|
return h("div", {
|
|
18889
18889
|
"class": bem$k("header")
|
|
18890
18890
|
}, [title4 && h("h2", {
|
|
18891
18891
|
"class": bem$k("title")
|
|
18892
|
-
}, [title4]),
|
|
18892
|
+
}, [title4]), description && h("span", {
|
|
18893
18893
|
"class": bem$k("description")
|
|
18894
|
-
}, [
|
|
18894
|
+
}, [description])]);
|
|
18895
18895
|
},
|
|
18896
18896
|
genOptions: function genOptions2(options, showBorder) {
|
|
18897
18897
|
var _this = this;
|
|
@@ -19404,9 +19404,9 @@ function SkuHeader(h, props, slots2, ctx) {
|
|
|
19404
19404
|
var SkuHeaderItem = createComponent$k(SkuHeader);
|
|
19405
19405
|
var _createNamespace$f = createNamespace("sku-row"), createComponent$j = _createNamespace$f[0], bem$e = _createNamespace$f[1], t$7 = _createNamespace$f[2];
|
|
19406
19406
|
var SkuRow = createComponent$j({
|
|
19407
|
-
mixins: [ParentMixin("vanSkuRows"), BindEventMixin(function(
|
|
19407
|
+
mixins: [ParentMixin("vanSkuRows"), BindEventMixin(function(bind2) {
|
|
19408
19408
|
if (this.scrollable && this.$refs.scroller) {
|
|
19409
|
-
|
|
19409
|
+
bind2(this.$refs.scroller, "scroll", this.onScroll);
|
|
19410
19410
|
}
|
|
19411
19411
|
})],
|
|
19412
19412
|
props: {
|
|
@@ -20093,7 +20093,7 @@ function isEmail(value17) {
|
|
|
20093
20093
|
var reg = /^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$/;
|
|
20094
20094
|
return reg.test(value17.trim());
|
|
20095
20095
|
}
|
|
20096
|
-
function toArray(item2) {
|
|
20096
|
+
function toArray$1(item2) {
|
|
20097
20097
|
if (Array.isArray(item2)) {
|
|
20098
20098
|
return item2;
|
|
20099
20099
|
}
|
|
@@ -20117,9 +20117,9 @@ function readFile(file, resultType) {
|
|
|
20117
20117
|
});
|
|
20118
20118
|
}
|
|
20119
20119
|
function isOversize(files2, maxSize) {
|
|
20120
|
-
return toArray(files2).some(function(file) {
|
|
20120
|
+
return toArray$1(files2).some(function(file) {
|
|
20121
20121
|
if (file) {
|
|
20122
|
-
if (isFunction$
|
|
20122
|
+
if (isFunction$2(maxSize)) {
|
|
20123
20123
|
return maxSize(file);
|
|
20124
20124
|
}
|
|
20125
20125
|
return file.size > maxSize;
|
|
@@ -20329,7 +20329,7 @@ var Uploader = createComponent$e({
|
|
|
20329
20329
|
}
|
|
20330
20330
|
var isValidFiles = Array.isArray(validFiles) ? Boolean(validFiles.length) : Boolean(validFiles);
|
|
20331
20331
|
if (isValidFiles) {
|
|
20332
|
-
this.$emit("input", [].concat(this.fileList, toArray(validFiles)));
|
|
20332
|
+
this.$emit("input", [].concat(this.fileList, toArray$1(validFiles)));
|
|
20333
20333
|
if (this.afterRead) {
|
|
20334
20334
|
this.afterRead(validFiles, this.getDetail());
|
|
20335
20335
|
}
|
|
@@ -20346,7 +20346,7 @@ var Uploader = createComponent$e({
|
|
|
20346
20346
|
if (isPromise(response)) {
|
|
20347
20347
|
response.then(function() {
|
|
20348
20348
|
_this4.deleteFile(file, index2);
|
|
20349
|
-
}).catch(noop);
|
|
20349
|
+
}).catch(noop$1);
|
|
20350
20350
|
return;
|
|
20351
20351
|
}
|
|
20352
20352
|
}
|
|
@@ -22679,20 +22679,20 @@ if (typeof window !== "undefined" && window.Vue) {
|
|
|
22679
22679
|
}
|
|
22680
22680
|
const isHb$2 = location.pathname.includes("scyxweb");
|
|
22681
22681
|
function getIndexPreset(params) {
|
|
22682
|
-
return axios$
|
|
22682
|
+
return axios$1.get(
|
|
22683
22683
|
`${location.protocol}//${location.host}${isHb$2 ? "/scyxgateway" : ""}/ind-uc-ext-server/manage/ind-index-manage-preset/get`,
|
|
22684
22684
|
{ params }
|
|
22685
22685
|
);
|
|
22686
22686
|
}
|
|
22687
22687
|
function saveIndexPreset(params) {
|
|
22688
|
-
return axios$
|
|
22688
|
+
return axios$1.post(
|
|
22689
22689
|
`${location.protocol}//${location.host}${isHb$2 ? "/scyxgateway" : ""}/ind-uc-ext-server/manage/ind-index-manage-preset/save`,
|
|
22690
22690
|
params
|
|
22691
22691
|
);
|
|
22692
22692
|
}
|
|
22693
22693
|
function getUserDefaultUrl() {
|
|
22694
22694
|
console.log("getUserDefaultUrl begin");
|
|
22695
|
-
return axios$
|
|
22695
|
+
return axios$1.get(
|
|
22696
22696
|
`${location.protocol}//${location.host}${isHb$2 ? "/scyxgateway" : ""}/ind-uc-ext-server/manage/hb/getQywxRedirectUrl`
|
|
22697
22697
|
);
|
|
22698
22698
|
}
|
|
@@ -24170,10 +24170,10 @@ function _defineProperty(obj, key, value17) {
|
|
|
24170
24170
|
function _extends() {
|
|
24171
24171
|
_extends = Object.assign || function(target2) {
|
|
24172
24172
|
for (var i = 1; i < arguments.length; i++) {
|
|
24173
|
-
var
|
|
24174
|
-
for (var key in
|
|
24175
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
24176
|
-
target2[key] =
|
|
24173
|
+
var source = arguments[i];
|
|
24174
|
+
for (var key in source) {
|
|
24175
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
24176
|
+
target2[key] = source[key];
|
|
24177
24177
|
}
|
|
24178
24178
|
}
|
|
24179
24179
|
}
|
|
@@ -24183,47 +24183,47 @@ function _extends() {
|
|
|
24183
24183
|
}
|
|
24184
24184
|
function _objectSpread(target2) {
|
|
24185
24185
|
for (var i = 1; i < arguments.length; i++) {
|
|
24186
|
-
var
|
|
24187
|
-
var ownKeys = Object.keys(
|
|
24186
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
24187
|
+
var ownKeys = Object.keys(source);
|
|
24188
24188
|
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
24189
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(
|
|
24190
|
-
return Object.getOwnPropertyDescriptor(
|
|
24189
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
24190
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
24191
24191
|
}));
|
|
24192
24192
|
}
|
|
24193
24193
|
ownKeys.forEach(function(key) {
|
|
24194
|
-
_defineProperty(target2, key,
|
|
24194
|
+
_defineProperty(target2, key, source[key]);
|
|
24195
24195
|
});
|
|
24196
24196
|
}
|
|
24197
24197
|
return target2;
|
|
24198
24198
|
}
|
|
24199
|
-
function _objectWithoutPropertiesLoose(
|
|
24200
|
-
if (
|
|
24199
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
24200
|
+
if (source == null)
|
|
24201
24201
|
return {};
|
|
24202
24202
|
var target2 = {};
|
|
24203
|
-
var sourceKeys = Object.keys(
|
|
24203
|
+
var sourceKeys = Object.keys(source);
|
|
24204
24204
|
var key, i;
|
|
24205
24205
|
for (i = 0; i < sourceKeys.length; i++) {
|
|
24206
24206
|
key = sourceKeys[i];
|
|
24207
24207
|
if (excluded.indexOf(key) >= 0)
|
|
24208
24208
|
continue;
|
|
24209
|
-
target2[key] =
|
|
24209
|
+
target2[key] = source[key];
|
|
24210
24210
|
}
|
|
24211
24211
|
return target2;
|
|
24212
24212
|
}
|
|
24213
|
-
function _objectWithoutProperties(
|
|
24214
|
-
if (
|
|
24213
|
+
function _objectWithoutProperties(source, excluded) {
|
|
24214
|
+
if (source == null)
|
|
24215
24215
|
return {};
|
|
24216
|
-
var target2 = _objectWithoutPropertiesLoose(
|
|
24216
|
+
var target2 = _objectWithoutPropertiesLoose(source, excluded);
|
|
24217
24217
|
var key, i;
|
|
24218
24218
|
if (Object.getOwnPropertySymbols) {
|
|
24219
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(
|
|
24219
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
24220
24220
|
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
24221
24221
|
key = sourceSymbolKeys[i];
|
|
24222
24222
|
if (excluded.indexOf(key) >= 0)
|
|
24223
24223
|
continue;
|
|
24224
|
-
if (!Object.prototype.propertyIsEnumerable.call(
|
|
24224
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
|
24225
24225
|
continue;
|
|
24226
|
-
target2[key] =
|
|
24226
|
+
target2[key] = source[key];
|
|
24227
24227
|
}
|
|
24228
24228
|
}
|
|
24229
24229
|
return target2;
|
|
@@ -24245,7 +24245,7 @@ function _iterableToArray(iter) {
|
|
|
24245
24245
|
function _nonIterableSpread() {
|
|
24246
24246
|
throw new TypeError("Invalid attempt to spread non-iterable instance");
|
|
24247
24247
|
}
|
|
24248
|
-
var version
|
|
24248
|
+
var version = "1.10.2";
|
|
24249
24249
|
function userAgent$1(pattern) {
|
|
24250
24250
|
if (typeof window !== "undefined" && window.navigator) {
|
|
24251
24251
|
return !!/* @__PURE__ */ navigator.userAgent.match(pattern);
|
|
@@ -24346,12 +24346,12 @@ function matrix(el, selfOnly) {
|
|
|
24346
24346
|
var matrixFn = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
24347
24347
|
return matrixFn && new matrixFn(appliedTransforms);
|
|
24348
24348
|
}
|
|
24349
|
-
function find2(ctx, tagName,
|
|
24349
|
+
function find2(ctx, tagName, iterator2) {
|
|
24350
24350
|
if (ctx) {
|
|
24351
24351
|
var list2 = ctx.getElementsByTagName(tagName), i = 0, n = list2.length;
|
|
24352
|
-
if (
|
|
24352
|
+
if (iterator2) {
|
|
24353
24353
|
for (; i < n; i++) {
|
|
24354
|
-
|
|
24354
|
+
iterator2(list2[i], i);
|
|
24355
24355
|
}
|
|
24356
24356
|
}
|
|
24357
24357
|
return list2;
|
|
@@ -24525,7 +24525,7 @@ function isRectEqual(rect1, rect2) {
|
|
|
24525
24525
|
return Math.round(rect1.top) === Math.round(rect2.top) && Math.round(rect1.left) === Math.round(rect2.left) && Math.round(rect1.height) === Math.round(rect2.height) && Math.round(rect1.width) === Math.round(rect2.width);
|
|
24526
24526
|
}
|
|
24527
24527
|
var _throttleTimeout;
|
|
24528
|
-
function throttle(callback2, ms) {
|
|
24528
|
+
function throttle$1(callback2, ms) {
|
|
24529
24529
|
return function() {
|
|
24530
24530
|
if (!_throttleTimeout) {
|
|
24531
24531
|
var args = arguments, _this = this;
|
|
@@ -24693,14 +24693,14 @@ function calculateRealTime(animatingRect, fromRect, toRect, options) {
|
|
|
24693
24693
|
return Math.sqrt(Math.pow(fromRect.top - animatingRect.top, 2) + Math.pow(fromRect.left - animatingRect.left, 2)) / Math.sqrt(Math.pow(fromRect.top - toRect.top, 2) + Math.pow(fromRect.left - toRect.left, 2)) * options.animation;
|
|
24694
24694
|
}
|
|
24695
24695
|
var plugins$1 = [];
|
|
24696
|
-
var defaults$
|
|
24696
|
+
var defaults$2 = {
|
|
24697
24697
|
initializeByDefault: true
|
|
24698
24698
|
};
|
|
24699
24699
|
var PluginManager = {
|
|
24700
24700
|
mount: function mount2(plugin) {
|
|
24701
|
-
for (var option2 in defaults$
|
|
24702
|
-
if (defaults$
|
|
24703
|
-
plugin[option2] = defaults$
|
|
24701
|
+
for (var option2 in defaults$2) {
|
|
24702
|
+
if (defaults$2.hasOwnProperty(option2) && !(option2 in plugin)) {
|
|
24703
|
+
plugin[option2] = defaults$2[option2];
|
|
24704
24704
|
}
|
|
24705
24705
|
}
|
|
24706
24706
|
plugins$1.push(plugin);
|
|
@@ -25052,7 +25052,7 @@ Sortable.prototype = {
|
|
|
25052
25052
|
_onTapStart: function _onTapStart(evt) {
|
|
25053
25053
|
if (!evt.cancelable)
|
|
25054
25054
|
return;
|
|
25055
|
-
var _this = this, el = this.el, options = this.options, preventOnFilter = options.preventOnFilter, type2 = evt.type, touch = evt.touches && evt.touches[0] || evt.pointerType && evt.pointerType === "touch" && evt, target2 = (touch || evt).target, originalTarget = evt.target.shadowRoot && (evt.path && evt.path[0] || evt.composedPath && evt.composedPath()[0]) || target2,
|
|
25055
|
+
var _this = this, el = this.el, options = this.options, preventOnFilter = options.preventOnFilter, type2 = evt.type, touch = evt.touches && evt.touches[0] || evt.pointerType && evt.pointerType === "touch" && evt, target2 = (touch || evt).target, originalTarget = evt.target.shadowRoot && (evt.path && evt.path[0] || evt.composedPath && evt.composedPath()[0]) || target2, filter2 = options.filter;
|
|
25056
25056
|
_saveInputCheckedState(el);
|
|
25057
25057
|
if (dragEl) {
|
|
25058
25058
|
return;
|
|
@@ -25072,8 +25072,8 @@ Sortable.prototype = {
|
|
|
25072
25072
|
}
|
|
25073
25073
|
oldIndex = index$2(target2);
|
|
25074
25074
|
oldDraggableIndex = index$2(target2, options.draggable);
|
|
25075
|
-
if (typeof
|
|
25076
|
-
if (
|
|
25075
|
+
if (typeof filter2 === "function") {
|
|
25076
|
+
if (filter2.call(this, evt, target2, this)) {
|
|
25077
25077
|
_dispatchEvent({
|
|
25078
25078
|
sortable: _this,
|
|
25079
25079
|
rootEl: originalTarget,
|
|
@@ -25088,8 +25088,8 @@ Sortable.prototype = {
|
|
|
25088
25088
|
preventOnFilter && evt.cancelable && evt.preventDefault();
|
|
25089
25089
|
return;
|
|
25090
25090
|
}
|
|
25091
|
-
} else if (
|
|
25092
|
-
|
|
25091
|
+
} else if (filter2) {
|
|
25092
|
+
filter2 = filter2.split(",").some(function(criteria) {
|
|
25093
25093
|
criteria = closest(originalTarget, criteria.trim(), el, false);
|
|
25094
25094
|
if (criteria) {
|
|
25095
25095
|
_dispatchEvent({
|
|
@@ -25106,7 +25106,7 @@ Sortable.prototype = {
|
|
|
25106
25106
|
return true;
|
|
25107
25107
|
}
|
|
25108
25108
|
});
|
|
25109
|
-
if (
|
|
25109
|
+
if (filter2) {
|
|
25110
25110
|
preventOnFilter && evt.cancelable && evt.preventDefault();
|
|
25111
25111
|
return;
|
|
25112
25112
|
}
|
|
@@ -25773,7 +25773,7 @@ Sortable.prototype = {
|
|
|
25773
25773
|
break;
|
|
25774
25774
|
}
|
|
25775
25775
|
},
|
|
25776
|
-
toArray: function
|
|
25776
|
+
toArray: function toArray() {
|
|
25777
25777
|
var order2 = [], el, children3 = this.el.children, i = 0, n = children3.length, options = this.options;
|
|
25778
25778
|
for (; i < n; i++) {
|
|
25779
25779
|
el = children3[i];
|
|
@@ -25991,7 +25991,7 @@ Sortable.utils = {
|
|
|
25991
25991
|
return !!closest(el, selector, el, false);
|
|
25992
25992
|
},
|
|
25993
25993
|
extend: extend$1,
|
|
25994
|
-
throttle,
|
|
25994
|
+
throttle: throttle$1,
|
|
25995
25995
|
closest,
|
|
25996
25996
|
toggleClass,
|
|
25997
25997
|
clone,
|
|
@@ -26022,7 +26022,7 @@ Sortable.mount = function() {
|
|
|
26022
26022
|
Sortable.create = function(el, options) {
|
|
26023
26023
|
return new Sortable(el, options);
|
|
26024
26024
|
};
|
|
26025
|
-
Sortable.version = version
|
|
26025
|
+
Sortable.version = version;
|
|
26026
26026
|
var autoScrolls = [], scrollEl, scrollRootEl, scrolling = false, lastAutoScrollX, lastAutoScrollY, touchEvt$1, pointerElemChangedInterval;
|
|
26027
26027
|
function AutoScrollPlugin() {
|
|
26028
26028
|
function AutoScroll() {
|
|
@@ -26121,7 +26121,7 @@ function clearAutoScrolls() {
|
|
|
26121
26121
|
function clearPointerElemChangedInterval() {
|
|
26122
26122
|
clearInterval(pointerElemChangedInterval);
|
|
26123
26123
|
}
|
|
26124
|
-
var autoScroll = throttle(function(evt, options, rootEl2, isFallback) {
|
|
26124
|
+
var autoScroll = throttle$1(function(evt, options, rootEl2, isFallback) {
|
|
26125
26125
|
if (!options.scroll)
|
|
26126
26126
|
return;
|
|
26127
26127
|
var x = (evt.touches ? evt.touches[0] : evt).clientX, y = (evt.touches ? evt.touches[0] : evt).clientY, sens = options.scrollSensitivity, speed = options.scrollSpeed, winScroller = getWindowScrollingElement();
|
|
@@ -26809,10 +26809,10 @@ var sortable_esm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
26809
26809
|
Sortable,
|
|
26810
26810
|
Swap: SwapPlugin
|
|
26811
26811
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
26812
|
-
var require$$0
|
|
26812
|
+
var require$$0 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
26813
26813
|
(function(module2, exports2) {
|
|
26814
|
-
(function webpackUniversalModuleDefinition(root2,
|
|
26815
|
-
module2.exports =
|
|
26814
|
+
(function webpackUniversalModuleDefinition(root2, factory2) {
|
|
26815
|
+
module2.exports = factory2(require$$0);
|
|
26816
26816
|
})(typeof self !== "undefined" ? self : commonjsGlobal, function(__WEBPACK_EXTERNAL_MODULE_a352__) {
|
|
26817
26817
|
return function(modules) {
|
|
26818
26818
|
var installedModules = {};
|
|
@@ -26882,7 +26882,7 @@ var require$$0$1 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
|
26882
26882
|
var Iterators = __webpack_require__("84f2");
|
|
26883
26883
|
var $iterCreate = __webpack_require__("41a0");
|
|
26884
26884
|
var setToStringTag = __webpack_require__("7f20");
|
|
26885
|
-
var
|
|
26885
|
+
var getPrototypeOf2 = __webpack_require__("38fd");
|
|
26886
26886
|
var ITERATOR = __webpack_require__("2b4c")("iterator");
|
|
26887
26887
|
var BUGGY = !([].keys && "next" in [].keys());
|
|
26888
26888
|
var FF_ITERATOR = "@@iterator";
|
|
@@ -26920,7 +26920,7 @@ var require$$0$1 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
|
26920
26920
|
var $anyNative = NAME == "Array" ? proto2.entries || $native : $native;
|
|
26921
26921
|
var methods, key, IteratorPrototype;
|
|
26922
26922
|
if ($anyNative) {
|
|
26923
|
-
IteratorPrototype =
|
|
26923
|
+
IteratorPrototype = getPrototypeOf2($anyNative.call(new Base()));
|
|
26924
26924
|
if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {
|
|
26925
26925
|
setToStringTag(IteratorPrototype, TAG, true);
|
|
26926
26926
|
if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != "function")
|
|
@@ -27187,7 +27187,7 @@ var require$$0$1 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
|
27187
27187
|
delete createDict[PROTOTYPE][enumBugKeys[i]];
|
|
27188
27188
|
return createDict();
|
|
27189
27189
|
};
|
|
27190
|
-
module3.exports = Object.create || function
|
|
27190
|
+
module3.exports = Object.create || function create(O, Properties) {
|
|
27191
27191
|
var result;
|
|
27192
27192
|
if (O !== null) {
|
|
27193
27193
|
Empty2[PROTOTYPE] = anObject(O);
|
|
@@ -27254,7 +27254,7 @@ var require$$0$1 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
|
27254
27254
|
};
|
|
27255
27255
|
},
|
|
27256
27256
|
"41a0": function(module3, exports3, __webpack_require__) {
|
|
27257
|
-
var
|
|
27257
|
+
var create = __webpack_require__("2aeb");
|
|
27258
27258
|
var descriptor = __webpack_require__("4630");
|
|
27259
27259
|
var setToStringTag = __webpack_require__("7f20");
|
|
27260
27260
|
var IteratorPrototype = {};
|
|
@@ -27262,7 +27262,7 @@ var require$$0$1 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
|
27262
27262
|
return this;
|
|
27263
27263
|
});
|
|
27264
27264
|
module3.exports = function(Constructor, NAME, next2) {
|
|
27265
|
-
Constructor.prototype =
|
|
27265
|
+
Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next2) });
|
|
27266
27266
|
setToStringTag(Constructor, NAME + " Iterator");
|
|
27267
27267
|
};
|
|
27268
27268
|
},
|
|
@@ -27377,7 +27377,7 @@ var require$$0$1 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
|
27377
27377
|
var redefine = __webpack_require__("2aba");
|
|
27378
27378
|
var ctx = __webpack_require__("9b43");
|
|
27379
27379
|
var PROTOTYPE = "prototype";
|
|
27380
|
-
var $export = function(type2, name2,
|
|
27380
|
+
var $export = function(type2, name2, source) {
|
|
27381
27381
|
var IS_FORCED = type2 & $export.F;
|
|
27382
27382
|
var IS_GLOBAL = type2 & $export.G;
|
|
27383
27383
|
var IS_STATIC = type2 & $export.S;
|
|
@@ -27388,10 +27388,10 @@ var require$$0$1 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
|
27388
27388
|
var expProto = exports4[PROTOTYPE] || (exports4[PROTOTYPE] = {});
|
|
27389
27389
|
var key, own, out, exp;
|
|
27390
27390
|
if (IS_GLOBAL)
|
|
27391
|
-
|
|
27392
|
-
for (key in
|
|
27391
|
+
source = name2;
|
|
27392
|
+
for (key in source) {
|
|
27393
27393
|
own = !IS_FORCED && target2 && target2[key] !== void 0;
|
|
27394
|
-
out = (own ? target2 :
|
|
27394
|
+
out = (own ? target2 : source)[key];
|
|
27395
27395
|
exp = IS_BIND && own ? ctx(out, global2) : IS_PROTO && typeof out == "function" ? ctx(Function.call, out) : out;
|
|
27396
27396
|
if (target2)
|
|
27397
27397
|
redefine(target2, key, out, type2 & $export.U);
|
|
@@ -27511,7 +27511,7 @@ var require$$0$1 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
|
27511
27511
|
B[k] = k;
|
|
27512
27512
|
});
|
|
27513
27513
|
return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join("") != K;
|
|
27514
|
-
}) ? function assign(target2,
|
|
27514
|
+
}) ? function assign(target2, source) {
|
|
27515
27515
|
var T = toObject(target2);
|
|
27516
27516
|
var aLen = arguments.length;
|
|
27517
27517
|
var index2 = 1;
|
|
@@ -27762,8 +27762,8 @@ var require$$0$1 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
|
27762
27762
|
var cof = __webpack_require__("2d95");
|
|
27763
27763
|
var MATCH = __webpack_require__("2b4c")("match");
|
|
27764
27764
|
module3.exports = function(it) {
|
|
27765
|
-
var
|
|
27766
|
-
return isObject2(it) && ((
|
|
27765
|
+
var isRegExp2;
|
|
27766
|
+
return isObject2(it) && ((isRegExp2 = it[MATCH]) !== void 0 ? !!isRegExp2 : cof(it) == "RegExp");
|
|
27767
27767
|
};
|
|
27768
27768
|
},
|
|
27769
27769
|
"ac6a": function(module3, exports3, __webpack_require__) {
|
|
@@ -28003,10 +28003,10 @@ var require$$0$1 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
|
28003
28003
|
};
|
|
28004
28004
|
},
|
|
28005
28005
|
"d2c8": function(module3, exports3, __webpack_require__) {
|
|
28006
|
-
var
|
|
28006
|
+
var isRegExp2 = __webpack_require__("aae3");
|
|
28007
28007
|
var defined = __webpack_require__("be13");
|
|
28008
28008
|
module3.exports = function(that, searchString, NAME) {
|
|
28009
|
-
if (
|
|
28009
|
+
if (isRegExp2(searchString))
|
|
28010
28010
|
throw TypeError("String#" + NAME + " doesn't accept regex!");
|
|
28011
28011
|
return String(defined(that));
|
|
28012
28012
|
};
|
|
@@ -28654,7 +28654,8 @@ const __vue2_script$g = {
|
|
|
28654
28654
|
rmFromMyAppsClick: this.routeTo,
|
|
28655
28655
|
addToMyAppsClick: this.routeTo,
|
|
28656
28656
|
offsetTop: "246px",
|
|
28657
|
-
maxApps: 8
|
|
28657
|
+
maxApps: 8,
|
|
28658
|
+
id: ""
|
|
28658
28659
|
};
|
|
28659
28660
|
},
|
|
28660
28661
|
watch: {
|
|
@@ -28686,9 +28687,15 @@ const __vue2_script$g = {
|
|
|
28686
28687
|
updated() {
|
|
28687
28688
|
this.$store.commit("setMyAppsList", this.my_apps);
|
|
28688
28689
|
},
|
|
28689
|
-
mounted() {
|
|
28690
|
+
async mounted() {
|
|
28690
28691
|
var _a, _b, _c;
|
|
28691
|
-
|
|
28692
|
+
const { data: data49 } = await getUserInfoApi();
|
|
28693
|
+
this.id = data49.userId;
|
|
28694
|
+
try {
|
|
28695
|
+
this.my_apps = JSON.parse(this.$store.getters.getMyAppsList || "[]");
|
|
28696
|
+
} catch (e) {
|
|
28697
|
+
this.my_apps = [];
|
|
28698
|
+
}
|
|
28692
28699
|
let menus = this.$store.getters.getMenuTreeList;
|
|
28693
28700
|
if (((_a = this.$config) == null ? void 0 : _a.mainType) == "singleApp" && ((_c = (_b = this.$config) == null ? void 0 : _b.systemDefaultConfig) == null ? void 0 : _c.isMobileSeparate) != "1") {
|
|
28694
28701
|
let mobileMainApp = menus.find(
|
|
@@ -28733,8 +28740,19 @@ const __vue2_script$g = {
|
|
|
28733
28740
|
Dialog.confirm({
|
|
28734
28741
|
title: "\u63D0\u793A",
|
|
28735
28742
|
message: "\u662F\u5426\u4FDD\u5B58"
|
|
28736
|
-
}).then(() => {
|
|
28737
|
-
|
|
28743
|
+
}).then(async () => {
|
|
28744
|
+
let saveConfig = {
|
|
28745
|
+
userId: this.id,
|
|
28746
|
+
funId: "store-my-app",
|
|
28747
|
+
cfgData: JSON.stringify(this.my_apps)
|
|
28748
|
+
};
|
|
28749
|
+
await this.$store.dispatch("saveMyAppsList", saveConfig);
|
|
28750
|
+
sessionStorage.setItem("myAppsList", JSON.stringify(this.my_apps));
|
|
28751
|
+
let getConfig = {
|
|
28752
|
+
userId: this.id,
|
|
28753
|
+
funId: "store-my-app"
|
|
28754
|
+
};
|
|
28755
|
+
await this.$store.dispatch("getMyAppsList", getConfig);
|
|
28738
28756
|
}).catch(() => {
|
|
28739
28757
|
});
|
|
28740
28758
|
},
|
|
@@ -31047,7 +31065,7 @@ const __vue2_script$3 = {
|
|
|
31047
31065
|
for (let file of allFile) {
|
|
31048
31066
|
formData.append("file", file);
|
|
31049
31067
|
}
|
|
31050
|
-
axios$
|
|
31068
|
+
axios$1.post(self2.ossServerContext + self2.ossFilePutUrl, formData, { payload: true }).then((response) => {
|
|
31051
31069
|
if (response.code === 1) {
|
|
31052
31070
|
self2.loading = false;
|
|
31053
31071
|
const result = response.data;
|
|
@@ -31158,7 +31176,7 @@ const __vue2_script$3 = {
|
|
|
31158
31176
|
}
|
|
31159
31177
|
if (location.pathname.includes("scyxweb")) {
|
|
31160
31178
|
let watermarkTxt = "";
|
|
31161
|
-
await axios$
|
|
31179
|
+
await axios$1.get(`/user-manage-server/manage/user/getCurrentInfo`).then((res) => {
|
|
31162
31180
|
if (res.code === 1) {
|
|
31163
31181
|
const isPicture = file.fileName.endsWith(".jpg") || file.fileName.endsWith(".jpeg") || file.fileName.endsWith(".png") || file.fileName.endsWith(".gif");
|
|
31164
31182
|
let url = "";
|
|
@@ -31191,7 +31209,7 @@ const __vue2_script$3 = {
|
|
|
31191
31209
|
var _a;
|
|
31192
31210
|
const isWeb = location.protocol === "https:" ? "1" : "";
|
|
31193
31211
|
const token = getToken() || sessionStorage.getItem("sso_token");
|
|
31194
|
-
return axios$
|
|
31212
|
+
return axios$1.get(
|
|
31195
31213
|
`${location.protocol}//${location.host}${"/ind-uc-ext-server"}/api/wps/getPreviewUrl/${fileId}?isWeb=${isWeb}&previewMode=high_definition`,
|
|
31196
31214
|
{
|
|
31197
31215
|
headers: {
|
|
@@ -31976,139 +31994,384 @@ function generator(menuData = []) {
|
|
|
31976
31994
|
}
|
|
31977
31995
|
return menuData;
|
|
31978
31996
|
}
|
|
31979
|
-
|
|
31980
|
-
var bind$2 = function bind(fn2, thisArg) {
|
|
31997
|
+
function bind(fn2, thisArg) {
|
|
31981
31998
|
return function wrap() {
|
|
31982
|
-
|
|
31983
|
-
for (var i = 0; i < args.length; i++) {
|
|
31984
|
-
args[i] = arguments[i];
|
|
31985
|
-
}
|
|
31986
|
-
return fn2.apply(thisArg, args);
|
|
31999
|
+
return fn2.apply(thisArg, arguments);
|
|
31987
32000
|
};
|
|
31988
|
-
};
|
|
31989
|
-
var bind$1 = bind$2;
|
|
31990
|
-
var toString = Object.prototype.toString;
|
|
31991
|
-
function isArray(val) {
|
|
31992
|
-
return toString.call(val) === "[object Array]";
|
|
31993
|
-
}
|
|
31994
|
-
function isUndefined(val) {
|
|
31995
|
-
return typeof val === "undefined";
|
|
31996
32001
|
}
|
|
32002
|
+
const { toString } = Object.prototype;
|
|
32003
|
+
const { getPrototypeOf } = Object;
|
|
32004
|
+
const { iterator, toStringTag } = Symbol;
|
|
32005
|
+
const kindOf = ((cache) => (thing) => {
|
|
32006
|
+
const str = toString.call(thing);
|
|
32007
|
+
return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
|
|
32008
|
+
})(/* @__PURE__ */ Object.create(null));
|
|
32009
|
+
const kindOfTest = (type2) => {
|
|
32010
|
+
type2 = type2.toLowerCase();
|
|
32011
|
+
return (thing) => kindOf(thing) === type2;
|
|
32012
|
+
};
|
|
32013
|
+
const typeOfTest = (type2) => (thing) => typeof thing === type2;
|
|
32014
|
+
const { isArray } = Array;
|
|
32015
|
+
const isUndefined = typeOfTest("undefined");
|
|
31997
32016
|
function isBuffer(val) {
|
|
31998
|
-
return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) &&
|
|
31999
|
-
}
|
|
32000
|
-
function isArrayBuffer(val) {
|
|
32001
|
-
return toString.call(val) === "[object ArrayBuffer]";
|
|
32002
|
-
}
|
|
32003
|
-
function isFormData(val) {
|
|
32004
|
-
return typeof FormData !== "undefined" && val instanceof FormData;
|
|
32017
|
+
return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && isFunction$1(val.constructor.isBuffer) && val.constructor.isBuffer(val);
|
|
32005
32018
|
}
|
|
32019
|
+
const isArrayBuffer = kindOfTest("ArrayBuffer");
|
|
32006
32020
|
function isArrayBufferView(val) {
|
|
32007
|
-
|
|
32021
|
+
let result;
|
|
32008
32022
|
if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) {
|
|
32009
32023
|
result = ArrayBuffer.isView(val);
|
|
32010
32024
|
} else {
|
|
32011
|
-
result = val && val.buffer && val.buffer
|
|
32025
|
+
result = val && val.buffer && isArrayBuffer(val.buffer);
|
|
32012
32026
|
}
|
|
32013
32027
|
return result;
|
|
32014
32028
|
}
|
|
32015
|
-
|
|
32016
|
-
|
|
32017
|
-
|
|
32018
|
-
|
|
32019
|
-
|
|
32020
|
-
|
|
32021
|
-
|
|
32022
|
-
return val !== null && typeof val === "object";
|
|
32023
|
-
}
|
|
32024
|
-
function isPlainObject(val) {
|
|
32025
|
-
if (toString.call(val) !== "[object Object]") {
|
|
32029
|
+
const isString = typeOfTest("string");
|
|
32030
|
+
const isFunction$1 = typeOfTest("function");
|
|
32031
|
+
const isNumber = typeOfTest("number");
|
|
32032
|
+
const isObject = (thing) => thing !== null && typeof thing === "object";
|
|
32033
|
+
const isBoolean = (thing) => thing === true || thing === false;
|
|
32034
|
+
const isPlainObject = (val) => {
|
|
32035
|
+
if (kindOf(val) !== "object") {
|
|
32026
32036
|
return false;
|
|
32027
32037
|
}
|
|
32028
|
-
|
|
32029
|
-
return
|
|
32030
|
-
}
|
|
32031
|
-
|
|
32032
|
-
|
|
32033
|
-
}
|
|
32034
|
-
function isFile(val) {
|
|
32035
|
-
return toString.call(val) === "[object File]";
|
|
32036
|
-
}
|
|
32037
|
-
function isBlob(val) {
|
|
32038
|
-
return toString.call(val) === "[object Blob]";
|
|
32039
|
-
}
|
|
32040
|
-
function isFunction(val) {
|
|
32041
|
-
return toString.call(val) === "[object Function]";
|
|
32042
|
-
}
|
|
32043
|
-
function isStream(val) {
|
|
32044
|
-
return isObject(val) && isFunction(val.pipe);
|
|
32045
|
-
}
|
|
32046
|
-
function isURLSearchParams(val) {
|
|
32047
|
-
return typeof URLSearchParams !== "undefined" && val instanceof URLSearchParams;
|
|
32048
|
-
}
|
|
32049
|
-
function trim(str) {
|
|
32050
|
-
return str.trim ? str.trim() : str.replace(/^\s+|\s+$/g, "");
|
|
32051
|
-
}
|
|
32052
|
-
function isStandardBrowserEnv() {
|
|
32053
|
-
if (typeof navigator !== "undefined" && (navigator.product === "ReactNative" || navigator.product === "NativeScript" || navigator.product === "NS")) {
|
|
32038
|
+
const prototype2 = getPrototypeOf(val);
|
|
32039
|
+
return (prototype2 === null || prototype2 === Object.prototype || Object.getPrototypeOf(prototype2) === null) && !(toStringTag in val) && !(iterator in val);
|
|
32040
|
+
};
|
|
32041
|
+
const isEmptyObject = (val) => {
|
|
32042
|
+
if (!isObject(val) || isBuffer(val)) {
|
|
32054
32043
|
return false;
|
|
32055
32044
|
}
|
|
32056
|
-
|
|
32057
|
-
|
|
32058
|
-
|
|
32045
|
+
try {
|
|
32046
|
+
return Object.keys(val).length === 0 && Object.getPrototypeOf(val) === Object.prototype;
|
|
32047
|
+
} catch (e) {
|
|
32048
|
+
return false;
|
|
32049
|
+
}
|
|
32050
|
+
};
|
|
32051
|
+
const isDate = kindOfTest("Date");
|
|
32052
|
+
const isFile = kindOfTest("File");
|
|
32053
|
+
const isReactNativeBlob = (value17) => {
|
|
32054
|
+
return !!(value17 && typeof value17.uri !== "undefined");
|
|
32055
|
+
};
|
|
32056
|
+
const isReactNative = (formData) => formData && typeof formData.getParts !== "undefined";
|
|
32057
|
+
const isBlob = kindOfTest("Blob");
|
|
32058
|
+
const isFileList = kindOfTest("FileList");
|
|
32059
|
+
const isStream = (val) => isObject(val) && isFunction$1(val.pipe);
|
|
32060
|
+
function getGlobal() {
|
|
32061
|
+
if (typeof globalThis !== "undefined")
|
|
32062
|
+
return globalThis;
|
|
32063
|
+
if (typeof self !== "undefined")
|
|
32064
|
+
return self;
|
|
32065
|
+
if (typeof window !== "undefined")
|
|
32066
|
+
return window;
|
|
32067
|
+
if (typeof global !== "undefined")
|
|
32068
|
+
return global;
|
|
32069
|
+
return {};
|
|
32070
|
+
}
|
|
32071
|
+
const G = getGlobal();
|
|
32072
|
+
const FormDataCtor = typeof G.FormData !== "undefined" ? G.FormData : void 0;
|
|
32073
|
+
const isFormData = (thing) => {
|
|
32074
|
+
let kind;
|
|
32075
|
+
return thing && (FormDataCtor && thing instanceof FormDataCtor || isFunction$1(thing.append) && ((kind = kindOf(thing)) === "formdata" || kind === "object" && isFunction$1(thing.toString) && thing.toString() === "[object FormData]"));
|
|
32076
|
+
};
|
|
32077
|
+
const isURLSearchParams = kindOfTest("URLSearchParams");
|
|
32078
|
+
const [isReadableStream, isRequest, isResponse, isHeaders] = [
|
|
32079
|
+
"ReadableStream",
|
|
32080
|
+
"Request",
|
|
32081
|
+
"Response",
|
|
32082
|
+
"Headers"
|
|
32083
|
+
].map(kindOfTest);
|
|
32084
|
+
const trim = (str) => {
|
|
32085
|
+
return str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
32086
|
+
};
|
|
32087
|
+
function forEach(obj, fn2, { allOwnKeys = false } = {}) {
|
|
32059
32088
|
if (obj === null || typeof obj === "undefined") {
|
|
32060
32089
|
return;
|
|
32061
32090
|
}
|
|
32091
|
+
let i;
|
|
32092
|
+
let l;
|
|
32062
32093
|
if (typeof obj !== "object") {
|
|
32063
32094
|
obj = [obj];
|
|
32064
32095
|
}
|
|
32065
32096
|
if (isArray(obj)) {
|
|
32066
|
-
for (
|
|
32097
|
+
for (i = 0, l = obj.length; i < l; i++) {
|
|
32067
32098
|
fn2.call(null, obj[i], i, obj);
|
|
32068
32099
|
}
|
|
32069
32100
|
} else {
|
|
32070
|
-
|
|
32071
|
-
|
|
32072
|
-
|
|
32073
|
-
|
|
32101
|
+
if (isBuffer(obj)) {
|
|
32102
|
+
return;
|
|
32103
|
+
}
|
|
32104
|
+
const keys2 = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);
|
|
32105
|
+
const len = keys2.length;
|
|
32106
|
+
let key;
|
|
32107
|
+
for (i = 0; i < len; i++) {
|
|
32108
|
+
key = keys2[i];
|
|
32109
|
+
fn2.call(null, obj[key], key, obj);
|
|
32074
32110
|
}
|
|
32075
32111
|
}
|
|
32076
32112
|
}
|
|
32113
|
+
function findKey(obj, key) {
|
|
32114
|
+
if (isBuffer(obj)) {
|
|
32115
|
+
return null;
|
|
32116
|
+
}
|
|
32117
|
+
key = key.toLowerCase();
|
|
32118
|
+
const keys2 = Object.keys(obj);
|
|
32119
|
+
let i = keys2.length;
|
|
32120
|
+
let _key;
|
|
32121
|
+
while (i-- > 0) {
|
|
32122
|
+
_key = keys2[i];
|
|
32123
|
+
if (key === _key.toLowerCase()) {
|
|
32124
|
+
return _key;
|
|
32125
|
+
}
|
|
32126
|
+
}
|
|
32127
|
+
return null;
|
|
32128
|
+
}
|
|
32129
|
+
const _global = (() => {
|
|
32130
|
+
if (typeof globalThis !== "undefined")
|
|
32131
|
+
return globalThis;
|
|
32132
|
+
return typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : global;
|
|
32133
|
+
})();
|
|
32134
|
+
const isContextDefined = (context2) => !isUndefined(context2) && context2 !== _global;
|
|
32077
32135
|
function merge() {
|
|
32078
|
-
|
|
32079
|
-
|
|
32080
|
-
|
|
32081
|
-
|
|
32136
|
+
const { caseless, skipUndefined } = isContextDefined(this) && this || {};
|
|
32137
|
+
const result = {};
|
|
32138
|
+
const assignValue = (val, key) => {
|
|
32139
|
+
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
32140
|
+
return;
|
|
32141
|
+
}
|
|
32142
|
+
const targetKey = caseless && findKey(result, key) || key;
|
|
32143
|
+
if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
|
|
32144
|
+
result[targetKey] = merge(result[targetKey], val);
|
|
32082
32145
|
} else if (isPlainObject(val)) {
|
|
32083
|
-
result[
|
|
32146
|
+
result[targetKey] = merge({}, val);
|
|
32084
32147
|
} else if (isArray(val)) {
|
|
32085
|
-
result[
|
|
32086
|
-
} else {
|
|
32087
|
-
result[
|
|
32148
|
+
result[targetKey] = val.slice();
|
|
32149
|
+
} else if (!skipUndefined || !isUndefined(val)) {
|
|
32150
|
+
result[targetKey] = val;
|
|
32088
32151
|
}
|
|
32089
|
-
}
|
|
32090
|
-
for (
|
|
32091
|
-
forEach(arguments[i], assignValue);
|
|
32152
|
+
};
|
|
32153
|
+
for (let i = 0, l = arguments.length; i < l; i++) {
|
|
32154
|
+
arguments[i] && forEach(arguments[i], assignValue);
|
|
32092
32155
|
}
|
|
32093
32156
|
return result;
|
|
32094
32157
|
}
|
|
32095
|
-
|
|
32096
|
-
forEach(
|
|
32097
|
-
|
|
32098
|
-
|
|
32099
|
-
|
|
32100
|
-
|
|
32101
|
-
|
|
32102
|
-
|
|
32158
|
+
const extend = (a, b, thisArg, { allOwnKeys } = {}) => {
|
|
32159
|
+
forEach(
|
|
32160
|
+
b,
|
|
32161
|
+
(val, key) => {
|
|
32162
|
+
if (thisArg && isFunction$1(val)) {
|
|
32163
|
+
Object.defineProperty(a, key, {
|
|
32164
|
+
value: bind(val, thisArg),
|
|
32165
|
+
writable: true,
|
|
32166
|
+
enumerable: true,
|
|
32167
|
+
configurable: true
|
|
32168
|
+
});
|
|
32169
|
+
} else {
|
|
32170
|
+
Object.defineProperty(a, key, {
|
|
32171
|
+
value: val,
|
|
32172
|
+
writable: true,
|
|
32173
|
+
enumerable: true,
|
|
32174
|
+
configurable: true
|
|
32175
|
+
});
|
|
32176
|
+
}
|
|
32177
|
+
},
|
|
32178
|
+
{ allOwnKeys }
|
|
32179
|
+
);
|
|
32103
32180
|
return a;
|
|
32104
|
-
}
|
|
32105
|
-
|
|
32181
|
+
};
|
|
32182
|
+
const stripBOM = (content) => {
|
|
32106
32183
|
if (content.charCodeAt(0) === 65279) {
|
|
32107
32184
|
content = content.slice(1);
|
|
32108
32185
|
}
|
|
32109
32186
|
return content;
|
|
32187
|
+
};
|
|
32188
|
+
const inherits = (constructor, superConstructor, props, descriptors) => {
|
|
32189
|
+
constructor.prototype = Object.create(superConstructor.prototype, descriptors);
|
|
32190
|
+
Object.defineProperty(constructor.prototype, "constructor", {
|
|
32191
|
+
value: constructor,
|
|
32192
|
+
writable: true,
|
|
32193
|
+
enumerable: false,
|
|
32194
|
+
configurable: true
|
|
32195
|
+
});
|
|
32196
|
+
Object.defineProperty(constructor, "super", {
|
|
32197
|
+
value: superConstructor.prototype
|
|
32198
|
+
});
|
|
32199
|
+
props && Object.assign(constructor.prototype, props);
|
|
32200
|
+
};
|
|
32201
|
+
const toFlatObject = (sourceObj, destObj, filter2, propFilter) => {
|
|
32202
|
+
let props;
|
|
32203
|
+
let i;
|
|
32204
|
+
let prop;
|
|
32205
|
+
const merged = {};
|
|
32206
|
+
destObj = destObj || {};
|
|
32207
|
+
if (sourceObj == null)
|
|
32208
|
+
return destObj;
|
|
32209
|
+
do {
|
|
32210
|
+
props = Object.getOwnPropertyNames(sourceObj);
|
|
32211
|
+
i = props.length;
|
|
32212
|
+
while (i-- > 0) {
|
|
32213
|
+
prop = props[i];
|
|
32214
|
+
if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {
|
|
32215
|
+
destObj[prop] = sourceObj[prop];
|
|
32216
|
+
merged[prop] = true;
|
|
32217
|
+
}
|
|
32218
|
+
}
|
|
32219
|
+
sourceObj = filter2 !== false && getPrototypeOf(sourceObj);
|
|
32220
|
+
} while (sourceObj && (!filter2 || filter2(sourceObj, destObj)) && sourceObj !== Object.prototype);
|
|
32221
|
+
return destObj;
|
|
32222
|
+
};
|
|
32223
|
+
const endsWith = (str, searchString, position) => {
|
|
32224
|
+
str = String(str);
|
|
32225
|
+
if (position === void 0 || position > str.length) {
|
|
32226
|
+
position = str.length;
|
|
32227
|
+
}
|
|
32228
|
+
position -= searchString.length;
|
|
32229
|
+
const lastIndex = str.indexOf(searchString, position);
|
|
32230
|
+
return lastIndex !== -1 && lastIndex === position;
|
|
32231
|
+
};
|
|
32232
|
+
const toArray2 = (thing) => {
|
|
32233
|
+
if (!thing)
|
|
32234
|
+
return null;
|
|
32235
|
+
if (isArray(thing))
|
|
32236
|
+
return thing;
|
|
32237
|
+
let i = thing.length;
|
|
32238
|
+
if (!isNumber(i))
|
|
32239
|
+
return null;
|
|
32240
|
+
const arr = new Array(i);
|
|
32241
|
+
while (i-- > 0) {
|
|
32242
|
+
arr[i] = thing[i];
|
|
32243
|
+
}
|
|
32244
|
+
return arr;
|
|
32245
|
+
};
|
|
32246
|
+
const isTypedArray = ((TypedArray) => {
|
|
32247
|
+
return (thing) => {
|
|
32248
|
+
return TypedArray && thing instanceof TypedArray;
|
|
32249
|
+
};
|
|
32250
|
+
})(typeof Uint8Array !== "undefined" && getPrototypeOf(Uint8Array));
|
|
32251
|
+
const forEachEntry = (obj, fn2) => {
|
|
32252
|
+
const generator2 = obj && obj[iterator];
|
|
32253
|
+
const _iterator = generator2.call(obj);
|
|
32254
|
+
let result;
|
|
32255
|
+
while ((result = _iterator.next()) && !result.done) {
|
|
32256
|
+
const pair = result.value;
|
|
32257
|
+
fn2.call(obj, pair[0], pair[1]);
|
|
32258
|
+
}
|
|
32259
|
+
};
|
|
32260
|
+
const matchAll = (regExp, str) => {
|
|
32261
|
+
let matches2;
|
|
32262
|
+
const arr = [];
|
|
32263
|
+
while ((matches2 = regExp.exec(str)) !== null) {
|
|
32264
|
+
arr.push(matches2);
|
|
32265
|
+
}
|
|
32266
|
+
return arr;
|
|
32267
|
+
};
|
|
32268
|
+
const isHTMLForm = kindOfTest("HTMLFormElement");
|
|
32269
|
+
const toCamelCase = (str) => {
|
|
32270
|
+
return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function replacer(m, p1, p2) {
|
|
32271
|
+
return p1.toUpperCase() + p2;
|
|
32272
|
+
});
|
|
32273
|
+
};
|
|
32274
|
+
const hasOwnProperty = (({ hasOwnProperty: hasOwnProperty2 }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
|
|
32275
|
+
const isRegExp = kindOfTest("RegExp");
|
|
32276
|
+
const reduceDescriptors = (obj, reducer) => {
|
|
32277
|
+
const descriptors = Object.getOwnPropertyDescriptors(obj);
|
|
32278
|
+
const reducedDescriptors = {};
|
|
32279
|
+
forEach(descriptors, (descriptor, name2) => {
|
|
32280
|
+
let ret;
|
|
32281
|
+
if ((ret = reducer(descriptor, name2, obj)) !== false) {
|
|
32282
|
+
reducedDescriptors[name2] = ret || descriptor;
|
|
32283
|
+
}
|
|
32284
|
+
});
|
|
32285
|
+
Object.defineProperties(obj, reducedDescriptors);
|
|
32286
|
+
};
|
|
32287
|
+
const freezeMethods = (obj) => {
|
|
32288
|
+
reduceDescriptors(obj, (descriptor, name2) => {
|
|
32289
|
+
if (isFunction$1(obj) && ["arguments", "caller", "callee"].indexOf(name2) !== -1) {
|
|
32290
|
+
return false;
|
|
32291
|
+
}
|
|
32292
|
+
const value17 = obj[name2];
|
|
32293
|
+
if (!isFunction$1(value17))
|
|
32294
|
+
return;
|
|
32295
|
+
descriptor.enumerable = false;
|
|
32296
|
+
if ("writable" in descriptor) {
|
|
32297
|
+
descriptor.writable = false;
|
|
32298
|
+
return;
|
|
32299
|
+
}
|
|
32300
|
+
if (!descriptor.set) {
|
|
32301
|
+
descriptor.set = () => {
|
|
32302
|
+
throw Error("Can not rewrite read-only method '" + name2 + "'");
|
|
32303
|
+
};
|
|
32304
|
+
}
|
|
32305
|
+
});
|
|
32306
|
+
};
|
|
32307
|
+
const toObjectSet = (arrayOrString, delimiter) => {
|
|
32308
|
+
const obj = {};
|
|
32309
|
+
const define = (arr) => {
|
|
32310
|
+
arr.forEach((value17) => {
|
|
32311
|
+
obj[value17] = true;
|
|
32312
|
+
});
|
|
32313
|
+
};
|
|
32314
|
+
isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));
|
|
32315
|
+
return obj;
|
|
32316
|
+
};
|
|
32317
|
+
const noop = () => {
|
|
32318
|
+
};
|
|
32319
|
+
const toFiniteNumber = (value17, defaultValue) => {
|
|
32320
|
+
return value17 != null && Number.isFinite(value17 = +value17) ? value17 : defaultValue;
|
|
32321
|
+
};
|
|
32322
|
+
function isSpecCompliantForm(thing) {
|
|
32323
|
+
return !!(thing && isFunction$1(thing.append) && thing[toStringTag] === "FormData" && thing[iterator]);
|
|
32110
32324
|
}
|
|
32111
|
-
|
|
32325
|
+
const toJSONObject = (obj) => {
|
|
32326
|
+
const stack = new Array(10);
|
|
32327
|
+
const visit = (source, i) => {
|
|
32328
|
+
if (isObject(source)) {
|
|
32329
|
+
if (stack.indexOf(source) >= 0) {
|
|
32330
|
+
return;
|
|
32331
|
+
}
|
|
32332
|
+
if (isBuffer(source)) {
|
|
32333
|
+
return source;
|
|
32334
|
+
}
|
|
32335
|
+
if (!("toJSON" in source)) {
|
|
32336
|
+
stack[i] = source;
|
|
32337
|
+
const target2 = isArray(source) ? [] : {};
|
|
32338
|
+
forEach(source, (value17, key) => {
|
|
32339
|
+
const reducedValue = visit(value17, i + 1);
|
|
32340
|
+
!isUndefined(reducedValue) && (target2[key] = reducedValue);
|
|
32341
|
+
});
|
|
32342
|
+
stack[i] = void 0;
|
|
32343
|
+
return target2;
|
|
32344
|
+
}
|
|
32345
|
+
}
|
|
32346
|
+
return source;
|
|
32347
|
+
};
|
|
32348
|
+
return visit(obj, 0);
|
|
32349
|
+
};
|
|
32350
|
+
const isAsyncFn = kindOfTest("AsyncFunction");
|
|
32351
|
+
const isThenable = (thing) => thing && (isObject(thing) || isFunction$1(thing)) && isFunction$1(thing.then) && isFunction$1(thing.catch);
|
|
32352
|
+
const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
|
|
32353
|
+
if (setImmediateSupported) {
|
|
32354
|
+
return setImmediate;
|
|
32355
|
+
}
|
|
32356
|
+
return postMessageSupported ? ((token, callbacks) => {
|
|
32357
|
+
_global.addEventListener(
|
|
32358
|
+
"message",
|
|
32359
|
+
({ source, data: data49 }) => {
|
|
32360
|
+
if (source === _global && data49 === token) {
|
|
32361
|
+
callbacks.length && callbacks.shift()();
|
|
32362
|
+
}
|
|
32363
|
+
},
|
|
32364
|
+
false
|
|
32365
|
+
);
|
|
32366
|
+
return (cb) => {
|
|
32367
|
+
callbacks.push(cb);
|
|
32368
|
+
_global.postMessage(token, "*");
|
|
32369
|
+
};
|
|
32370
|
+
})(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
|
|
32371
|
+
})(typeof setImmediate === "function", isFunction$1(_global.postMessage));
|
|
32372
|
+
const asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
|
|
32373
|
+
const isIterable = (thing) => thing != null && isFunction$1(thing[iterator]);
|
|
32374
|
+
var utils$1 = {
|
|
32112
32375
|
isArray,
|
|
32113
32376
|
isArrayBuffer,
|
|
32114
32377
|
isBuffer,
|
|
@@ -32116,200 +32379,532 @@ var utils$d = {
|
|
|
32116
32379
|
isArrayBufferView,
|
|
32117
32380
|
isString,
|
|
32118
32381
|
isNumber,
|
|
32382
|
+
isBoolean,
|
|
32119
32383
|
isObject,
|
|
32120
32384
|
isPlainObject,
|
|
32385
|
+
isEmptyObject,
|
|
32386
|
+
isReadableStream,
|
|
32387
|
+
isRequest,
|
|
32388
|
+
isResponse,
|
|
32389
|
+
isHeaders,
|
|
32121
32390
|
isUndefined,
|
|
32122
32391
|
isDate,
|
|
32123
32392
|
isFile,
|
|
32393
|
+
isReactNativeBlob,
|
|
32394
|
+
isReactNative,
|
|
32124
32395
|
isBlob,
|
|
32125
|
-
|
|
32396
|
+
isRegExp,
|
|
32397
|
+
isFunction: isFunction$1,
|
|
32126
32398
|
isStream,
|
|
32127
32399
|
isURLSearchParams,
|
|
32128
|
-
|
|
32400
|
+
isTypedArray,
|
|
32401
|
+
isFileList,
|
|
32129
32402
|
forEach,
|
|
32130
32403
|
merge,
|
|
32131
32404
|
extend,
|
|
32132
32405
|
trim,
|
|
32133
|
-
stripBOM
|
|
32406
|
+
stripBOM,
|
|
32407
|
+
inherits,
|
|
32408
|
+
toFlatObject,
|
|
32409
|
+
kindOf,
|
|
32410
|
+
kindOfTest,
|
|
32411
|
+
endsWith,
|
|
32412
|
+
toArray: toArray2,
|
|
32413
|
+
forEachEntry,
|
|
32414
|
+
matchAll,
|
|
32415
|
+
isHTMLForm,
|
|
32416
|
+
hasOwnProperty,
|
|
32417
|
+
hasOwnProp: hasOwnProperty,
|
|
32418
|
+
reduceDescriptors,
|
|
32419
|
+
freezeMethods,
|
|
32420
|
+
toObjectSet,
|
|
32421
|
+
toCamelCase,
|
|
32422
|
+
noop,
|
|
32423
|
+
toFiniteNumber,
|
|
32424
|
+
findKey,
|
|
32425
|
+
global: _global,
|
|
32426
|
+
isContextDefined,
|
|
32427
|
+
isSpecCompliantForm,
|
|
32428
|
+
toJSONObject,
|
|
32429
|
+
isAsyncFn,
|
|
32430
|
+
isThenable,
|
|
32431
|
+
setImmediate: _setImmediate,
|
|
32432
|
+
asap,
|
|
32433
|
+
isIterable
|
|
32434
|
+
};
|
|
32435
|
+
class AxiosError extends Error {
|
|
32436
|
+
static from(error, code2, config2, request, response, customProps) {
|
|
32437
|
+
const axiosError = new AxiosError(error.message, code2 || error.code, config2, request, response);
|
|
32438
|
+
axiosError.cause = error;
|
|
32439
|
+
axiosError.name = error.name;
|
|
32440
|
+
if (error.status != null && axiosError.status == null) {
|
|
32441
|
+
axiosError.status = error.status;
|
|
32442
|
+
}
|
|
32443
|
+
customProps && Object.assign(axiosError, customProps);
|
|
32444
|
+
return axiosError;
|
|
32445
|
+
}
|
|
32446
|
+
constructor(message, code2, config2, request, response) {
|
|
32447
|
+
super(message);
|
|
32448
|
+
Object.defineProperty(this, "message", {
|
|
32449
|
+
value: message,
|
|
32450
|
+
enumerable: true,
|
|
32451
|
+
writable: true,
|
|
32452
|
+
configurable: true
|
|
32453
|
+
});
|
|
32454
|
+
this.name = "AxiosError";
|
|
32455
|
+
this.isAxiosError = true;
|
|
32456
|
+
code2 && (this.code = code2);
|
|
32457
|
+
config2 && (this.config = config2);
|
|
32458
|
+
request && (this.request = request);
|
|
32459
|
+
if (response) {
|
|
32460
|
+
this.response = response;
|
|
32461
|
+
this.status = response.status;
|
|
32462
|
+
}
|
|
32463
|
+
}
|
|
32464
|
+
toJSON() {
|
|
32465
|
+
return {
|
|
32466
|
+
message: this.message,
|
|
32467
|
+
name: this.name,
|
|
32468
|
+
description: this.description,
|
|
32469
|
+
number: this.number,
|
|
32470
|
+
fileName: this.fileName,
|
|
32471
|
+
lineNumber: this.lineNumber,
|
|
32472
|
+
columnNumber: this.columnNumber,
|
|
32473
|
+
stack: this.stack,
|
|
32474
|
+
config: utils$1.toJSONObject(this.config),
|
|
32475
|
+
code: this.code,
|
|
32476
|
+
status: this.status
|
|
32477
|
+
};
|
|
32478
|
+
}
|
|
32479
|
+
}
|
|
32480
|
+
AxiosError.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
|
|
32481
|
+
AxiosError.ERR_BAD_OPTION = "ERR_BAD_OPTION";
|
|
32482
|
+
AxiosError.ECONNABORTED = "ECONNABORTED";
|
|
32483
|
+
AxiosError.ETIMEDOUT = "ETIMEDOUT";
|
|
32484
|
+
AxiosError.ERR_NETWORK = "ERR_NETWORK";
|
|
32485
|
+
AxiosError.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
|
|
32486
|
+
AxiosError.ERR_DEPRECATED = "ERR_DEPRECATED";
|
|
32487
|
+
AxiosError.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
|
|
32488
|
+
AxiosError.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
|
|
32489
|
+
AxiosError.ERR_CANCELED = "ERR_CANCELED";
|
|
32490
|
+
AxiosError.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
|
|
32491
|
+
AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
32492
|
+
var AxiosError$1 = AxiosError;
|
|
32493
|
+
var httpAdapter = null;
|
|
32494
|
+
function isVisitable(thing) {
|
|
32495
|
+
return utils$1.isPlainObject(thing) || utils$1.isArray(thing);
|
|
32496
|
+
}
|
|
32497
|
+
function removeBrackets(key) {
|
|
32498
|
+
return utils$1.endsWith(key, "[]") ? key.slice(0, -2) : key;
|
|
32499
|
+
}
|
|
32500
|
+
function renderKey(path2, key, dots) {
|
|
32501
|
+
if (!path2)
|
|
32502
|
+
return key;
|
|
32503
|
+
return path2.concat(key).map(function each(token, i) {
|
|
32504
|
+
token = removeBrackets(token);
|
|
32505
|
+
return !dots && i ? "[" + token + "]" : token;
|
|
32506
|
+
}).join(dots ? "." : "");
|
|
32507
|
+
}
|
|
32508
|
+
function isFlatArray(arr) {
|
|
32509
|
+
return utils$1.isArray(arr) && !arr.some(isVisitable);
|
|
32510
|
+
}
|
|
32511
|
+
const predicates = utils$1.toFlatObject(utils$1, {}, null, function filter(prop) {
|
|
32512
|
+
return /^is[A-Z]/.test(prop);
|
|
32513
|
+
});
|
|
32514
|
+
function toFormData(obj, formData, options) {
|
|
32515
|
+
if (!utils$1.isObject(obj)) {
|
|
32516
|
+
throw new TypeError("target must be an object");
|
|
32517
|
+
}
|
|
32518
|
+
formData = formData || new FormData();
|
|
32519
|
+
options = utils$1.toFlatObject(
|
|
32520
|
+
options,
|
|
32521
|
+
{
|
|
32522
|
+
metaTokens: true,
|
|
32523
|
+
dots: false,
|
|
32524
|
+
indexes: false
|
|
32525
|
+
},
|
|
32526
|
+
false,
|
|
32527
|
+
function defined(option2, source) {
|
|
32528
|
+
return !utils$1.isUndefined(source[option2]);
|
|
32529
|
+
}
|
|
32530
|
+
);
|
|
32531
|
+
const metaTokens = options.metaTokens;
|
|
32532
|
+
const visitor = options.visitor || defaultVisitor;
|
|
32533
|
+
const dots = options.dots;
|
|
32534
|
+
const indexes = options.indexes;
|
|
32535
|
+
const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
|
|
32536
|
+
const useBlob = _Blob && utils$1.isSpecCompliantForm(formData);
|
|
32537
|
+
if (!utils$1.isFunction(visitor)) {
|
|
32538
|
+
throw new TypeError("visitor must be a function");
|
|
32539
|
+
}
|
|
32540
|
+
function convertValue(value17) {
|
|
32541
|
+
if (value17 === null)
|
|
32542
|
+
return "";
|
|
32543
|
+
if (utils$1.isDate(value17)) {
|
|
32544
|
+
return value17.toISOString();
|
|
32545
|
+
}
|
|
32546
|
+
if (utils$1.isBoolean(value17)) {
|
|
32547
|
+
return value17.toString();
|
|
32548
|
+
}
|
|
32549
|
+
if (!useBlob && utils$1.isBlob(value17)) {
|
|
32550
|
+
throw new AxiosError$1("Blob is not supported. Use a Buffer instead.");
|
|
32551
|
+
}
|
|
32552
|
+
if (utils$1.isArrayBuffer(value17) || utils$1.isTypedArray(value17)) {
|
|
32553
|
+
return useBlob && typeof Blob === "function" ? new Blob([value17]) : Buffer.from(value17);
|
|
32554
|
+
}
|
|
32555
|
+
return value17;
|
|
32556
|
+
}
|
|
32557
|
+
function defaultVisitor(value17, key, path2) {
|
|
32558
|
+
let arr = value17;
|
|
32559
|
+
if (utils$1.isReactNative(formData) && utils$1.isReactNativeBlob(value17)) {
|
|
32560
|
+
formData.append(renderKey(path2, key, dots), convertValue(value17));
|
|
32561
|
+
return false;
|
|
32562
|
+
}
|
|
32563
|
+
if (value17 && !path2 && typeof value17 === "object") {
|
|
32564
|
+
if (utils$1.endsWith(key, "{}")) {
|
|
32565
|
+
key = metaTokens ? key : key.slice(0, -2);
|
|
32566
|
+
value17 = JSON.stringify(value17);
|
|
32567
|
+
} else if (utils$1.isArray(value17) && isFlatArray(value17) || (utils$1.isFileList(value17) || utils$1.endsWith(key, "[]")) && (arr = utils$1.toArray(value17))) {
|
|
32568
|
+
key = removeBrackets(key);
|
|
32569
|
+
arr.forEach(function each(el, index2) {
|
|
32570
|
+
!(utils$1.isUndefined(el) || el === null) && formData.append(
|
|
32571
|
+
indexes === true ? renderKey([key], index2, dots) : indexes === null ? key : key + "[]",
|
|
32572
|
+
convertValue(el)
|
|
32573
|
+
);
|
|
32574
|
+
});
|
|
32575
|
+
return false;
|
|
32576
|
+
}
|
|
32577
|
+
}
|
|
32578
|
+
if (isVisitable(value17)) {
|
|
32579
|
+
return true;
|
|
32580
|
+
}
|
|
32581
|
+
formData.append(renderKey(path2, key, dots), convertValue(value17));
|
|
32582
|
+
return false;
|
|
32583
|
+
}
|
|
32584
|
+
const stack = [];
|
|
32585
|
+
const exposedHelpers = Object.assign(predicates, {
|
|
32586
|
+
defaultVisitor,
|
|
32587
|
+
convertValue,
|
|
32588
|
+
isVisitable
|
|
32589
|
+
});
|
|
32590
|
+
function build(value17, path2) {
|
|
32591
|
+
if (utils$1.isUndefined(value17))
|
|
32592
|
+
return;
|
|
32593
|
+
if (stack.indexOf(value17) !== -1) {
|
|
32594
|
+
throw Error("Circular reference detected in " + path2.join("."));
|
|
32595
|
+
}
|
|
32596
|
+
stack.push(value17);
|
|
32597
|
+
utils$1.forEach(value17, function each(el, key) {
|
|
32598
|
+
const result = !(utils$1.isUndefined(el) || el === null) && visitor.call(formData, el, utils$1.isString(key) ? key.trim() : key, path2, exposedHelpers);
|
|
32599
|
+
if (result === true) {
|
|
32600
|
+
build(el, path2 ? path2.concat(key) : [key]);
|
|
32601
|
+
}
|
|
32602
|
+
});
|
|
32603
|
+
stack.pop();
|
|
32604
|
+
}
|
|
32605
|
+
if (!utils$1.isObject(obj)) {
|
|
32606
|
+
throw new TypeError("data must be an object");
|
|
32607
|
+
}
|
|
32608
|
+
build(obj);
|
|
32609
|
+
return formData;
|
|
32610
|
+
}
|
|
32611
|
+
function encode$1(str) {
|
|
32612
|
+
const charMap = {
|
|
32613
|
+
"!": "%21",
|
|
32614
|
+
"'": "%27",
|
|
32615
|
+
"(": "%28",
|
|
32616
|
+
")": "%29",
|
|
32617
|
+
"~": "%7E",
|
|
32618
|
+
"%20": "+",
|
|
32619
|
+
"%00": "\0"
|
|
32620
|
+
};
|
|
32621
|
+
return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {
|
|
32622
|
+
return charMap[match];
|
|
32623
|
+
});
|
|
32624
|
+
}
|
|
32625
|
+
function AxiosURLSearchParams(params, options) {
|
|
32626
|
+
this._pairs = [];
|
|
32627
|
+
params && toFormData(params, this, options);
|
|
32628
|
+
}
|
|
32629
|
+
const prototype = AxiosURLSearchParams.prototype;
|
|
32630
|
+
prototype.append = function append(name2, value17) {
|
|
32631
|
+
this._pairs.push([name2, value17]);
|
|
32632
|
+
};
|
|
32633
|
+
prototype.toString = function toString2(encoder) {
|
|
32634
|
+
const _encode = encoder ? function(value17) {
|
|
32635
|
+
return encoder.call(this, value17, encode$1);
|
|
32636
|
+
} : encode$1;
|
|
32637
|
+
return this._pairs.map(function each(pair) {
|
|
32638
|
+
return _encode(pair[0]) + "=" + _encode(pair[1]);
|
|
32639
|
+
}, "").join("&");
|
|
32134
32640
|
};
|
|
32135
|
-
var utils$c = utils$d;
|
|
32136
32641
|
function encode(val) {
|
|
32137
|
-
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+")
|
|
32642
|
+
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
32138
32643
|
}
|
|
32139
|
-
|
|
32644
|
+
function buildURL(url, params, options) {
|
|
32140
32645
|
if (!params) {
|
|
32141
32646
|
return url;
|
|
32142
32647
|
}
|
|
32143
|
-
|
|
32144
|
-
|
|
32145
|
-
|
|
32146
|
-
}
|
|
32147
|
-
|
|
32648
|
+
const _encode = options && options.encode || encode;
|
|
32649
|
+
const _options = utils$1.isFunction(options) ? {
|
|
32650
|
+
serialize: options
|
|
32651
|
+
} : options;
|
|
32652
|
+
const serializeFn = _options && _options.serialize;
|
|
32653
|
+
let serializedParams;
|
|
32654
|
+
if (serializeFn) {
|
|
32655
|
+
serializedParams = serializeFn(params, _options);
|
|
32148
32656
|
} else {
|
|
32149
|
-
|
|
32150
|
-
utils$c.forEach(params, function serialize(val, key) {
|
|
32151
|
-
if (val === null || typeof val === "undefined") {
|
|
32152
|
-
return;
|
|
32153
|
-
}
|
|
32154
|
-
if (utils$c.isArray(val)) {
|
|
32155
|
-
key = key + "[]";
|
|
32156
|
-
} else {
|
|
32157
|
-
val = [val];
|
|
32158
|
-
}
|
|
32159
|
-
utils$c.forEach(val, function parseValue(v) {
|
|
32160
|
-
if (utils$c.isDate(v)) {
|
|
32161
|
-
v = v.toISOString();
|
|
32162
|
-
} else if (utils$c.isObject(v)) {
|
|
32163
|
-
v = JSON.stringify(v);
|
|
32164
|
-
}
|
|
32165
|
-
parts.push(encode(key) + "=" + encode(v));
|
|
32166
|
-
});
|
|
32167
|
-
});
|
|
32168
|
-
serializedParams = parts.join("&");
|
|
32657
|
+
serializedParams = utils$1.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams(params, _options).toString(_encode);
|
|
32169
32658
|
}
|
|
32170
32659
|
if (serializedParams) {
|
|
32171
|
-
|
|
32660
|
+
const hashmarkIndex = url.indexOf("#");
|
|
32172
32661
|
if (hashmarkIndex !== -1) {
|
|
32173
32662
|
url = url.slice(0, hashmarkIndex);
|
|
32174
32663
|
}
|
|
32175
32664
|
url += (url.indexOf("?") === -1 ? "?" : "&") + serializedParams;
|
|
32176
32665
|
}
|
|
32177
32666
|
return url;
|
|
32178
|
-
};
|
|
32179
|
-
var utils$b = utils$d;
|
|
32180
|
-
function InterceptorManager$1() {
|
|
32181
|
-
this.handlers = [];
|
|
32182
32667
|
}
|
|
32183
|
-
InterceptorManager
|
|
32184
|
-
|
|
32185
|
-
|
|
32186
|
-
rejected,
|
|
32187
|
-
synchronous: options ? options.synchronous : false,
|
|
32188
|
-
runWhen: options ? options.runWhen : null
|
|
32189
|
-
});
|
|
32190
|
-
return this.handlers.length - 1;
|
|
32191
|
-
};
|
|
32192
|
-
InterceptorManager$1.prototype.eject = function eject(id) {
|
|
32193
|
-
if (this.handlers[id]) {
|
|
32194
|
-
this.handlers[id] = null;
|
|
32668
|
+
class InterceptorManager {
|
|
32669
|
+
constructor() {
|
|
32670
|
+
this.handlers = [];
|
|
32195
32671
|
}
|
|
32196
|
-
|
|
32197
|
-
|
|
32198
|
-
|
|
32199
|
-
|
|
32200
|
-
|
|
32672
|
+
use(fulfilled, rejected, options) {
|
|
32673
|
+
this.handlers.push({
|
|
32674
|
+
fulfilled,
|
|
32675
|
+
rejected,
|
|
32676
|
+
synchronous: options ? options.synchronous : false,
|
|
32677
|
+
runWhen: options ? options.runWhen : null
|
|
32678
|
+
});
|
|
32679
|
+
return this.handlers.length - 1;
|
|
32680
|
+
}
|
|
32681
|
+
eject(id) {
|
|
32682
|
+
if (this.handlers[id]) {
|
|
32683
|
+
this.handlers[id] = null;
|
|
32201
32684
|
}
|
|
32202
|
-
}
|
|
32203
|
-
|
|
32204
|
-
|
|
32205
|
-
|
|
32206
|
-
var normalizeHeaderName$1 = function normalizeHeaderName(headers, normalizedName) {
|
|
32207
|
-
utils$a.forEach(headers, function processHeader(value17, name2) {
|
|
32208
|
-
if (name2 !== normalizedName && name2.toUpperCase() === normalizedName.toUpperCase()) {
|
|
32209
|
-
headers[normalizedName] = value17;
|
|
32210
|
-
delete headers[name2];
|
|
32685
|
+
}
|
|
32686
|
+
clear() {
|
|
32687
|
+
if (this.handlers) {
|
|
32688
|
+
this.handlers = [];
|
|
32211
32689
|
}
|
|
32690
|
+
}
|
|
32691
|
+
forEach(fn2) {
|
|
32692
|
+
utils$1.forEach(this.handlers, function forEachHandler(h) {
|
|
32693
|
+
if (h !== null) {
|
|
32694
|
+
fn2(h);
|
|
32695
|
+
}
|
|
32696
|
+
});
|
|
32697
|
+
}
|
|
32698
|
+
}
|
|
32699
|
+
var InterceptorManager$1 = InterceptorManager;
|
|
32700
|
+
var transitionalDefaults = {
|
|
32701
|
+
silentJSONParsing: true,
|
|
32702
|
+
forcedJSONParsing: true,
|
|
32703
|
+
clarifyTimeoutError: false,
|
|
32704
|
+
legacyInterceptorReqResOrdering: true
|
|
32705
|
+
};
|
|
32706
|
+
var URLSearchParams$1 = typeof URLSearchParams !== "undefined" ? URLSearchParams : AxiosURLSearchParams;
|
|
32707
|
+
var FormData$1 = typeof FormData !== "undefined" ? FormData : null;
|
|
32708
|
+
var Blob$1 = typeof Blob !== "undefined" ? Blob : null;
|
|
32709
|
+
var platform$1 = {
|
|
32710
|
+
isBrowser: true,
|
|
32711
|
+
classes: {
|
|
32712
|
+
URLSearchParams: URLSearchParams$1,
|
|
32713
|
+
FormData: FormData$1,
|
|
32714
|
+
Blob: Blob$1
|
|
32715
|
+
},
|
|
32716
|
+
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
32717
|
+
};
|
|
32718
|
+
const hasBrowserEnv = typeof window !== "undefined" && typeof document !== "undefined";
|
|
32719
|
+
const _navigator = typeof navigator === "object" && navigator || void 0;
|
|
32720
|
+
const hasStandardBrowserEnv = hasBrowserEnv && (!_navigator || ["ReactNative", "NativeScript", "NS"].indexOf(_navigator.product) < 0);
|
|
32721
|
+
const hasStandardBrowserWebWorkerEnv = (() => {
|
|
32722
|
+
return typeof WorkerGlobalScope !== "undefined" && self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
|
|
32723
|
+
})();
|
|
32724
|
+
const origin = hasBrowserEnv && window.location.href || "http://localhost";
|
|
32725
|
+
var utils = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
32726
|
+
__proto__: null,
|
|
32727
|
+
hasBrowserEnv,
|
|
32728
|
+
hasStandardBrowserWebWorkerEnv,
|
|
32729
|
+
hasStandardBrowserEnv,
|
|
32730
|
+
navigator: _navigator,
|
|
32731
|
+
origin
|
|
32732
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
32733
|
+
var platform = {
|
|
32734
|
+
...utils,
|
|
32735
|
+
...platform$1
|
|
32736
|
+
};
|
|
32737
|
+
function toURLEncodedForm(data49, options) {
|
|
32738
|
+
return toFormData(data49, new platform.classes.URLSearchParams(), {
|
|
32739
|
+
visitor: function(value17, key, path2, helpers) {
|
|
32740
|
+
if (platform.isNode && utils$1.isBuffer(value17)) {
|
|
32741
|
+
this.append(key, value17.toString("base64"));
|
|
32742
|
+
return false;
|
|
32743
|
+
}
|
|
32744
|
+
return helpers.defaultVisitor.apply(this, arguments);
|
|
32745
|
+
},
|
|
32746
|
+
...options
|
|
32212
32747
|
});
|
|
32213
|
-
}
|
|
32214
|
-
|
|
32215
|
-
|
|
32216
|
-
|
|
32217
|
-
|
|
32748
|
+
}
|
|
32749
|
+
function parsePropPath(name2) {
|
|
32750
|
+
return utils$1.matchAll(/\w+|\[(\w*)]/g, name2).map((match) => {
|
|
32751
|
+
return match[0] === "[]" ? "" : match[1] || match[0];
|
|
32752
|
+
});
|
|
32753
|
+
}
|
|
32754
|
+
function arrayToObject(arr) {
|
|
32755
|
+
const obj = {};
|
|
32756
|
+
const keys2 = Object.keys(arr);
|
|
32757
|
+
let i;
|
|
32758
|
+
const len = keys2.length;
|
|
32759
|
+
let key;
|
|
32760
|
+
for (i = 0; i < len; i++) {
|
|
32761
|
+
key = keys2[i];
|
|
32762
|
+
obj[key] = arr[key];
|
|
32218
32763
|
}
|
|
32219
|
-
|
|
32220
|
-
|
|
32221
|
-
|
|
32222
|
-
|
|
32223
|
-
|
|
32224
|
-
|
|
32225
|
-
|
|
32226
|
-
|
|
32227
|
-
|
|
32228
|
-
|
|
32229
|
-
|
|
32230
|
-
|
|
32231
|
-
|
|
32232
|
-
|
|
32233
|
-
|
|
32234
|
-
|
|
32235
|
-
|
|
32236
|
-
|
|
32237
|
-
|
|
32238
|
-
|
|
32239
|
-
|
|
32240
|
-
|
|
32241
|
-
|
|
32242
|
-
|
|
32243
|
-
|
|
32244
|
-
|
|
32245
|
-
var validateStatus2 = response.config.validateStatus;
|
|
32246
|
-
if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
|
|
32247
|
-
resolve(response);
|
|
32248
|
-
} else {
|
|
32249
|
-
reject(createError$1(
|
|
32250
|
-
"Request failed with status code " + response.status,
|
|
32251
|
-
response.config,
|
|
32252
|
-
null,
|
|
32253
|
-
response.request,
|
|
32254
|
-
response
|
|
32255
|
-
));
|
|
32764
|
+
return obj;
|
|
32765
|
+
}
|
|
32766
|
+
function formDataToJSON(formData) {
|
|
32767
|
+
function buildPath(path2, value17, target2, index2) {
|
|
32768
|
+
let name2 = path2[index2++];
|
|
32769
|
+
if (name2 === "__proto__")
|
|
32770
|
+
return true;
|
|
32771
|
+
const isNumericKey = Number.isFinite(+name2);
|
|
32772
|
+
const isLast2 = index2 >= path2.length;
|
|
32773
|
+
name2 = !name2 && utils$1.isArray(target2) ? target2.length : name2;
|
|
32774
|
+
if (isLast2) {
|
|
32775
|
+
if (utils$1.hasOwnProp(target2, name2)) {
|
|
32776
|
+
target2[name2] = [target2[name2], value17];
|
|
32777
|
+
} else {
|
|
32778
|
+
target2[name2] = value17;
|
|
32779
|
+
}
|
|
32780
|
+
return !isNumericKey;
|
|
32781
|
+
}
|
|
32782
|
+
if (!target2[name2] || !utils$1.isObject(target2[name2])) {
|
|
32783
|
+
target2[name2] = [];
|
|
32784
|
+
}
|
|
32785
|
+
const result = buildPath(path2, value17, target2[name2], index2);
|
|
32786
|
+
if (result && utils$1.isArray(target2[name2])) {
|
|
32787
|
+
target2[name2] = arrayToObject(target2[name2]);
|
|
32788
|
+
}
|
|
32789
|
+
return !isNumericKey;
|
|
32256
32790
|
}
|
|
32257
|
-
|
|
32258
|
-
|
|
32259
|
-
|
|
32260
|
-
|
|
32261
|
-
|
|
32262
|
-
|
|
32263
|
-
|
|
32264
|
-
|
|
32265
|
-
|
|
32791
|
+
if (utils$1.isFormData(formData) && utils$1.isFunction(formData.entries)) {
|
|
32792
|
+
const obj = {};
|
|
32793
|
+
utils$1.forEachEntry(formData, (name2, value17) => {
|
|
32794
|
+
buildPath(parsePropPath(name2), value17, obj, 0);
|
|
32795
|
+
});
|
|
32796
|
+
return obj;
|
|
32797
|
+
}
|
|
32798
|
+
return null;
|
|
32799
|
+
}
|
|
32800
|
+
function stringifySafely(rawValue, parser, encoder) {
|
|
32801
|
+
if (utils$1.isString(rawValue)) {
|
|
32802
|
+
try {
|
|
32803
|
+
(parser || JSON.parse)(rawValue);
|
|
32804
|
+
return utils$1.trim(rawValue);
|
|
32805
|
+
} catch (e) {
|
|
32806
|
+
if (e.name !== "SyntaxError") {
|
|
32807
|
+
throw e;
|
|
32266
32808
|
}
|
|
32267
|
-
|
|
32268
|
-
|
|
32809
|
+
}
|
|
32810
|
+
}
|
|
32811
|
+
return (encoder || JSON.stringify)(rawValue);
|
|
32812
|
+
}
|
|
32813
|
+
const defaults = {
|
|
32814
|
+
transitional: transitionalDefaults,
|
|
32815
|
+
adapter: ["xhr", "http", "fetch"],
|
|
32816
|
+
transformRequest: [
|
|
32817
|
+
function transformRequest(data49, headers) {
|
|
32818
|
+
const contentType = headers.getContentType() || "";
|
|
32819
|
+
const hasJSONContentType = contentType.indexOf("application/json") > -1;
|
|
32820
|
+
const isObjectPayload = utils$1.isObject(data49);
|
|
32821
|
+
if (isObjectPayload && utils$1.isHTMLForm(data49)) {
|
|
32822
|
+
data49 = new FormData(data49);
|
|
32823
|
+
}
|
|
32824
|
+
const isFormData2 = utils$1.isFormData(data49);
|
|
32825
|
+
if (isFormData2) {
|
|
32826
|
+
return hasJSONContentType ? JSON.stringify(formDataToJSON(data49)) : data49;
|
|
32827
|
+
}
|
|
32828
|
+
if (utils$1.isArrayBuffer(data49) || utils$1.isBuffer(data49) || utils$1.isStream(data49) || utils$1.isFile(data49) || utils$1.isBlob(data49) || utils$1.isReadableStream(data49)) {
|
|
32829
|
+
return data49;
|
|
32830
|
+
}
|
|
32831
|
+
if (utils$1.isArrayBufferView(data49)) {
|
|
32832
|
+
return data49.buffer;
|
|
32833
|
+
}
|
|
32834
|
+
if (utils$1.isURLSearchParams(data49)) {
|
|
32835
|
+
headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
|
|
32836
|
+
return data49.toString();
|
|
32837
|
+
}
|
|
32838
|
+
let isFileList2;
|
|
32839
|
+
if (isObjectPayload) {
|
|
32840
|
+
if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
|
|
32841
|
+
return toURLEncodedForm(data49, this.formSerializer).toString();
|
|
32842
|
+
}
|
|
32843
|
+
if ((isFileList2 = utils$1.isFileList(data49)) || contentType.indexOf("multipart/form-data") > -1) {
|
|
32844
|
+
const _FormData = this.env && this.env.FormData;
|
|
32845
|
+
return toFormData(
|
|
32846
|
+
isFileList2 ? { "files[]": data49 } : data49,
|
|
32847
|
+
_FormData && new _FormData(),
|
|
32848
|
+
this.formSerializer
|
|
32849
|
+
);
|
|
32850
|
+
}
|
|
32269
32851
|
}
|
|
32270
|
-
if (
|
|
32271
|
-
|
|
32852
|
+
if (isObjectPayload || hasJSONContentType) {
|
|
32853
|
+
headers.setContentType("application/json", false);
|
|
32854
|
+
return stringifySafely(data49);
|
|
32272
32855
|
}
|
|
32273
|
-
|
|
32274
|
-
|
|
32856
|
+
return data49;
|
|
32857
|
+
}
|
|
32858
|
+
],
|
|
32859
|
+
transformResponse: [
|
|
32860
|
+
function transformResponse(data49) {
|
|
32861
|
+
const transitional2 = this.transitional || defaults.transitional;
|
|
32862
|
+
const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
|
|
32863
|
+
const JSONRequested = this.responseType === "json";
|
|
32864
|
+
if (utils$1.isResponse(data49) || utils$1.isReadableStream(data49)) {
|
|
32865
|
+
return data49;
|
|
32866
|
+
}
|
|
32867
|
+
if (data49 && utils$1.isString(data49) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
|
|
32868
|
+
const silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
|
|
32869
|
+
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
32870
|
+
try {
|
|
32871
|
+
return JSON.parse(data49, this.parseReviver);
|
|
32872
|
+
} catch (e) {
|
|
32873
|
+
if (strictJSONParsing) {
|
|
32874
|
+
if (e.name === "SyntaxError") {
|
|
32875
|
+
throw AxiosError$1.from(e, AxiosError$1.ERR_BAD_RESPONSE, this, null, this.response);
|
|
32876
|
+
}
|
|
32877
|
+
throw e;
|
|
32878
|
+
}
|
|
32879
|
+
}
|
|
32275
32880
|
}
|
|
32276
|
-
|
|
32277
|
-
},
|
|
32278
|
-
read: function read2(name2) {
|
|
32279
|
-
var match = document.cookie.match(new RegExp("(^|;\\s*)(" + name2 + ")=([^;]*)"));
|
|
32280
|
-
return match ? decodeURIComponent(match[3]) : null;
|
|
32281
|
-
},
|
|
32282
|
-
remove: function remove2(name2) {
|
|
32283
|
-
this.write(name2, "", Date.now() - 864e5);
|
|
32881
|
+
return data49;
|
|
32284
32882
|
}
|
|
32285
|
-
|
|
32286
|
-
|
|
32287
|
-
|
|
32288
|
-
|
|
32289
|
-
|
|
32290
|
-
|
|
32291
|
-
|
|
32292
|
-
|
|
32293
|
-
|
|
32883
|
+
],
|
|
32884
|
+
timeout: 0,
|
|
32885
|
+
xsrfCookieName: "XSRF-TOKEN",
|
|
32886
|
+
xsrfHeaderName: "X-XSRF-TOKEN",
|
|
32887
|
+
maxContentLength: -1,
|
|
32888
|
+
maxBodyLength: -1,
|
|
32889
|
+
env: {
|
|
32890
|
+
FormData: platform.classes.FormData,
|
|
32891
|
+
Blob: platform.classes.Blob
|
|
32892
|
+
},
|
|
32893
|
+
validateStatus: function validateStatus(status2) {
|
|
32894
|
+
return status2 >= 200 && status2 < 300;
|
|
32895
|
+
},
|
|
32896
|
+
headers: {
|
|
32897
|
+
common: {
|
|
32898
|
+
Accept: "application/json, text/plain, */*",
|
|
32899
|
+
"Content-Type": void 0
|
|
32294
32900
|
}
|
|
32295
|
-
};
|
|
32296
|
-
}();
|
|
32297
|
-
var isAbsoluteURL$1 = function isAbsoluteURL(url) {
|
|
32298
|
-
return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url);
|
|
32299
|
-
};
|
|
32300
|
-
var combineURLs$1 = function combineURLs(baseURL, relativeURL) {
|
|
32301
|
-
return relativeURL ? baseURL.replace(/\/+$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
|
|
32302
|
-
};
|
|
32303
|
-
var isAbsoluteURL2 = isAbsoluteURL$1;
|
|
32304
|
-
var combineURLs2 = combineURLs$1;
|
|
32305
|
-
var buildFullPath$1 = function buildFullPath(baseURL, requestedURL) {
|
|
32306
|
-
if (baseURL && !isAbsoluteURL2(requestedURL)) {
|
|
32307
|
-
return combineURLs2(baseURL, requestedURL);
|
|
32308
32901
|
}
|
|
32309
|
-
return requestedURL;
|
|
32310
32902
|
};
|
|
32311
|
-
|
|
32312
|
-
|
|
32903
|
+
utils$1.forEach(["delete", "get", "head", "post", "put", "patch"], (method) => {
|
|
32904
|
+
defaults.headers[method] = {};
|
|
32905
|
+
});
|
|
32906
|
+
var defaults$1 = defaults;
|
|
32907
|
+
const ignoreDuplicateOf = utils$1.toObjectSet([
|
|
32313
32908
|
"age",
|
|
32314
32909
|
"authorization",
|
|
32315
32910
|
"content-length",
|
|
@@ -32327,561 +32922,1181 @@ var ignoreDuplicateOf = [
|
|
|
32327
32922
|
"referer",
|
|
32328
32923
|
"retry-after",
|
|
32329
32924
|
"user-agent"
|
|
32330
|
-
];
|
|
32331
|
-
var parseHeaders
|
|
32332
|
-
|
|
32333
|
-
|
|
32334
|
-
|
|
32335
|
-
|
|
32336
|
-
|
|
32337
|
-
return parsed;
|
|
32338
|
-
}
|
|
32339
|
-
utils$8.forEach(headers.split("\n"), function parser(line) {
|
|
32925
|
+
]);
|
|
32926
|
+
var parseHeaders = (rawHeaders) => {
|
|
32927
|
+
const parsed = {};
|
|
32928
|
+
let key;
|
|
32929
|
+
let val;
|
|
32930
|
+
let i;
|
|
32931
|
+
rawHeaders && rawHeaders.split("\n").forEach(function parser(line) {
|
|
32340
32932
|
i = line.indexOf(":");
|
|
32341
|
-
key =
|
|
32342
|
-
val =
|
|
32343
|
-
if (key) {
|
|
32344
|
-
|
|
32345
|
-
|
|
32346
|
-
|
|
32347
|
-
if (key
|
|
32348
|
-
parsed[key]
|
|
32933
|
+
key = line.substring(0, i).trim().toLowerCase();
|
|
32934
|
+
val = line.substring(i + 1).trim();
|
|
32935
|
+
if (!key || parsed[key] && ignoreDuplicateOf[key]) {
|
|
32936
|
+
return;
|
|
32937
|
+
}
|
|
32938
|
+
if (key === "set-cookie") {
|
|
32939
|
+
if (parsed[key]) {
|
|
32940
|
+
parsed[key].push(val);
|
|
32349
32941
|
} else {
|
|
32350
|
-
parsed[key] =
|
|
32942
|
+
parsed[key] = [val];
|
|
32351
32943
|
}
|
|
32944
|
+
} else {
|
|
32945
|
+
parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
|
|
32352
32946
|
}
|
|
32353
32947
|
});
|
|
32354
32948
|
return parsed;
|
|
32355
32949
|
};
|
|
32356
|
-
|
|
32357
|
-
|
|
32358
|
-
|
|
32359
|
-
|
|
32360
|
-
|
|
32361
|
-
|
|
32362
|
-
|
|
32363
|
-
|
|
32364
|
-
|
|
32365
|
-
|
|
32366
|
-
|
|
32367
|
-
|
|
32368
|
-
|
|
32369
|
-
|
|
32370
|
-
|
|
32371
|
-
|
|
32372
|
-
|
|
32373
|
-
|
|
32374
|
-
|
|
32375
|
-
|
|
32376
|
-
|
|
32950
|
+
const $internals = Symbol("internals");
|
|
32951
|
+
function normalizeHeader(header) {
|
|
32952
|
+
return header && String(header).trim().toLowerCase();
|
|
32953
|
+
}
|
|
32954
|
+
function normalizeValue(value17) {
|
|
32955
|
+
if (value17 === false || value17 == null) {
|
|
32956
|
+
return value17;
|
|
32957
|
+
}
|
|
32958
|
+
return utils$1.isArray(value17) ? value17.map(normalizeValue) : String(value17);
|
|
32959
|
+
}
|
|
32960
|
+
function parseTokens(str) {
|
|
32961
|
+
const tokens = /* @__PURE__ */ Object.create(null);
|
|
32962
|
+
const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
32963
|
+
let match;
|
|
32964
|
+
while (match = tokensRE.exec(str)) {
|
|
32965
|
+
tokens[match[1]] = match[2];
|
|
32966
|
+
}
|
|
32967
|
+
return tokens;
|
|
32968
|
+
}
|
|
32969
|
+
const isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
|
|
32970
|
+
function matchHeaderValue(context2, value17, header, filter2, isHeaderNameFilter) {
|
|
32971
|
+
if (utils$1.isFunction(filter2)) {
|
|
32972
|
+
return filter2.call(this, value17, header);
|
|
32973
|
+
}
|
|
32974
|
+
if (isHeaderNameFilter) {
|
|
32975
|
+
value17 = header;
|
|
32976
|
+
}
|
|
32977
|
+
if (!utils$1.isString(value17))
|
|
32978
|
+
return;
|
|
32979
|
+
if (utils$1.isString(filter2)) {
|
|
32980
|
+
return value17.indexOf(filter2) !== -1;
|
|
32981
|
+
}
|
|
32982
|
+
if (utils$1.isRegExp(filter2)) {
|
|
32983
|
+
return filter2.test(value17);
|
|
32984
|
+
}
|
|
32985
|
+
}
|
|
32986
|
+
function formatHeader(header) {
|
|
32987
|
+
return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
|
|
32988
|
+
return char.toUpperCase() + str;
|
|
32989
|
+
});
|
|
32990
|
+
}
|
|
32991
|
+
function buildAccessors(obj, header) {
|
|
32992
|
+
const accessorName = utils$1.toCamelCase(" " + header);
|
|
32993
|
+
["get", "set", "has"].forEach((methodName) => {
|
|
32994
|
+
Object.defineProperty(obj, methodName + accessorName, {
|
|
32995
|
+
value: function(arg1, arg2, arg3) {
|
|
32996
|
+
return this[methodName].call(this, header, arg1, arg2, arg3);
|
|
32997
|
+
},
|
|
32998
|
+
configurable: true
|
|
32999
|
+
});
|
|
33000
|
+
});
|
|
33001
|
+
}
|
|
33002
|
+
class AxiosHeaders {
|
|
33003
|
+
constructor(headers) {
|
|
33004
|
+
headers && this.set(headers);
|
|
33005
|
+
}
|
|
33006
|
+
set(header, valueOrRewrite, rewrite) {
|
|
33007
|
+
const self2 = this;
|
|
33008
|
+
function setHeader(_value, _header, _rewrite) {
|
|
33009
|
+
const lHeader = normalizeHeader(_header);
|
|
33010
|
+
if (!lHeader) {
|
|
33011
|
+
throw new Error("header name must be a non-empty string");
|
|
33012
|
+
}
|
|
33013
|
+
const key = utils$1.findKey(self2, lHeader);
|
|
33014
|
+
if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
|
|
33015
|
+
self2[key || _header] = normalizeValue(_value);
|
|
33016
|
+
}
|
|
33017
|
+
}
|
|
33018
|
+
const setHeaders = (headers, _rewrite) => utils$1.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
|
|
33019
|
+
if (utils$1.isPlainObject(header) || header instanceof this.constructor) {
|
|
33020
|
+
setHeaders(header, valueOrRewrite);
|
|
33021
|
+
} else if (utils$1.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
|
|
33022
|
+
setHeaders(parseHeaders(header), valueOrRewrite);
|
|
33023
|
+
} else if (utils$1.isObject(header) && utils$1.isIterable(header)) {
|
|
33024
|
+
let obj = {}, dest, key;
|
|
33025
|
+
for (const entry of header) {
|
|
33026
|
+
if (!utils$1.isArray(entry)) {
|
|
33027
|
+
throw TypeError("Object iterator must return a key-value pair");
|
|
33028
|
+
}
|
|
33029
|
+
obj[key = entry[0]] = (dest = obj[key]) ? utils$1.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
|
|
33030
|
+
}
|
|
33031
|
+
setHeaders(obj, valueOrRewrite);
|
|
33032
|
+
} else {
|
|
33033
|
+
header != null && setHeader(valueOrRewrite, header, rewrite);
|
|
33034
|
+
}
|
|
33035
|
+
return this;
|
|
33036
|
+
}
|
|
33037
|
+
get(header, parser) {
|
|
33038
|
+
header = normalizeHeader(header);
|
|
33039
|
+
if (header) {
|
|
33040
|
+
const key = utils$1.findKey(this, header);
|
|
33041
|
+
if (key) {
|
|
33042
|
+
const value17 = this[key];
|
|
33043
|
+
if (!parser) {
|
|
33044
|
+
return value17;
|
|
33045
|
+
}
|
|
33046
|
+
if (parser === true) {
|
|
33047
|
+
return parseTokens(value17);
|
|
33048
|
+
}
|
|
33049
|
+
if (utils$1.isFunction(parser)) {
|
|
33050
|
+
return parser.call(this, value17, key);
|
|
33051
|
+
}
|
|
33052
|
+
if (utils$1.isRegExp(parser)) {
|
|
33053
|
+
return parser.exec(value17);
|
|
33054
|
+
}
|
|
33055
|
+
throw new TypeError("parser must be boolean|regexp|function");
|
|
33056
|
+
}
|
|
33057
|
+
}
|
|
33058
|
+
}
|
|
33059
|
+
has(header, matcher) {
|
|
33060
|
+
header = normalizeHeader(header);
|
|
33061
|
+
if (header) {
|
|
33062
|
+
const key = utils$1.findKey(this, header);
|
|
33063
|
+
return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
|
|
33064
|
+
}
|
|
33065
|
+
return false;
|
|
33066
|
+
}
|
|
33067
|
+
delete(header, matcher) {
|
|
33068
|
+
const self2 = this;
|
|
33069
|
+
let deleted = false;
|
|
33070
|
+
function deleteHeader(_header) {
|
|
33071
|
+
_header = normalizeHeader(_header);
|
|
33072
|
+
if (_header) {
|
|
33073
|
+
const key = utils$1.findKey(self2, _header);
|
|
33074
|
+
if (key && (!matcher || matchHeaderValue(self2, self2[key], key, matcher))) {
|
|
33075
|
+
delete self2[key];
|
|
33076
|
+
deleted = true;
|
|
33077
|
+
}
|
|
33078
|
+
}
|
|
33079
|
+
}
|
|
33080
|
+
if (utils$1.isArray(header)) {
|
|
33081
|
+
header.forEach(deleteHeader);
|
|
33082
|
+
} else {
|
|
33083
|
+
deleteHeader(header);
|
|
33084
|
+
}
|
|
33085
|
+
return deleted;
|
|
33086
|
+
}
|
|
33087
|
+
clear(matcher) {
|
|
33088
|
+
const keys2 = Object.keys(this);
|
|
33089
|
+
let i = keys2.length;
|
|
33090
|
+
let deleted = false;
|
|
33091
|
+
while (i--) {
|
|
33092
|
+
const key = keys2[i];
|
|
33093
|
+
if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
|
|
33094
|
+
delete this[key];
|
|
33095
|
+
deleted = true;
|
|
33096
|
+
}
|
|
33097
|
+
}
|
|
33098
|
+
return deleted;
|
|
33099
|
+
}
|
|
33100
|
+
normalize(format5) {
|
|
33101
|
+
const self2 = this;
|
|
33102
|
+
const headers = {};
|
|
33103
|
+
utils$1.forEach(this, (value17, header) => {
|
|
33104
|
+
const key = utils$1.findKey(headers, header);
|
|
33105
|
+
if (key) {
|
|
33106
|
+
self2[key] = normalizeValue(value17);
|
|
33107
|
+
delete self2[header];
|
|
33108
|
+
return;
|
|
33109
|
+
}
|
|
33110
|
+
const normalized = format5 ? formatHeader(header) : String(header).trim();
|
|
33111
|
+
if (normalized !== header) {
|
|
33112
|
+
delete self2[header];
|
|
33113
|
+
}
|
|
33114
|
+
self2[normalized] = normalizeValue(value17);
|
|
33115
|
+
headers[normalized] = true;
|
|
33116
|
+
});
|
|
33117
|
+
return this;
|
|
33118
|
+
}
|
|
33119
|
+
concat(...targets) {
|
|
33120
|
+
return this.constructor.concat(this, ...targets);
|
|
33121
|
+
}
|
|
33122
|
+
toJSON(asStrings) {
|
|
33123
|
+
const obj = /* @__PURE__ */ Object.create(null);
|
|
33124
|
+
utils$1.forEach(this, (value17, header) => {
|
|
33125
|
+
value17 != null && value17 !== false && (obj[header] = asStrings && utils$1.isArray(value17) ? value17.join(", ") : value17);
|
|
33126
|
+
});
|
|
33127
|
+
return obj;
|
|
33128
|
+
}
|
|
33129
|
+
[Symbol.iterator]() {
|
|
33130
|
+
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
33131
|
+
}
|
|
33132
|
+
toString() {
|
|
33133
|
+
return Object.entries(this.toJSON()).map(([header, value17]) => header + ": " + value17).join("\n");
|
|
33134
|
+
}
|
|
33135
|
+
getSetCookie() {
|
|
33136
|
+
return this.get("set-cookie") || [];
|
|
33137
|
+
}
|
|
33138
|
+
get [Symbol.toStringTag]() {
|
|
33139
|
+
return "AxiosHeaders";
|
|
33140
|
+
}
|
|
33141
|
+
static from(thing) {
|
|
33142
|
+
return thing instanceof this ? thing : new this(thing);
|
|
33143
|
+
}
|
|
33144
|
+
static concat(first, ...targets) {
|
|
33145
|
+
const computed = new this(first);
|
|
33146
|
+
targets.forEach((target2) => computed.set(target2));
|
|
33147
|
+
return computed;
|
|
33148
|
+
}
|
|
33149
|
+
static accessor(header) {
|
|
33150
|
+
const internals = this[$internals] = this[$internals] = {
|
|
33151
|
+
accessors: {}
|
|
32377
33152
|
};
|
|
33153
|
+
const accessors = internals.accessors;
|
|
33154
|
+
const prototype2 = this.prototype;
|
|
33155
|
+
function defineAccessor(_header) {
|
|
33156
|
+
const lHeader = normalizeHeader(_header);
|
|
33157
|
+
if (!accessors[lHeader]) {
|
|
33158
|
+
buildAccessors(prototype2, _header);
|
|
33159
|
+
accessors[lHeader] = true;
|
|
33160
|
+
}
|
|
33161
|
+
}
|
|
33162
|
+
utils$1.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
|
|
33163
|
+
return this;
|
|
33164
|
+
}
|
|
33165
|
+
}
|
|
33166
|
+
AxiosHeaders.accessor([
|
|
33167
|
+
"Content-Type",
|
|
33168
|
+
"Content-Length",
|
|
33169
|
+
"Accept",
|
|
33170
|
+
"Accept-Encoding",
|
|
33171
|
+
"User-Agent",
|
|
33172
|
+
"Authorization"
|
|
33173
|
+
]);
|
|
33174
|
+
utils$1.reduceDescriptors(AxiosHeaders.prototype, ({ value: value17 }, key) => {
|
|
33175
|
+
let mapped = key[0].toUpperCase() + key.slice(1);
|
|
33176
|
+
return {
|
|
33177
|
+
get: () => value17,
|
|
33178
|
+
set(headerValue) {
|
|
33179
|
+
this[mapped] = headerValue;
|
|
33180
|
+
}
|
|
33181
|
+
};
|
|
33182
|
+
});
|
|
33183
|
+
utils$1.freezeMethods(AxiosHeaders);
|
|
33184
|
+
var AxiosHeaders$1 = AxiosHeaders;
|
|
33185
|
+
function transformData(fns, response) {
|
|
33186
|
+
const config2 = this || defaults$1;
|
|
33187
|
+
const context2 = response || config2;
|
|
33188
|
+
const headers = AxiosHeaders$1.from(context2.headers);
|
|
33189
|
+
let data49 = context2.data;
|
|
33190
|
+
utils$1.forEach(fns, function transform(fn2) {
|
|
33191
|
+
data49 = fn2.call(config2, data49, headers.normalize(), response ? response.status : void 0);
|
|
33192
|
+
});
|
|
33193
|
+
headers.normalize();
|
|
33194
|
+
return data49;
|
|
33195
|
+
}
|
|
33196
|
+
function isCancel(value17) {
|
|
33197
|
+
return !!(value17 && value17.__CANCEL__);
|
|
33198
|
+
}
|
|
33199
|
+
class CanceledError extends AxiosError$1 {
|
|
33200
|
+
constructor(message, config2, request) {
|
|
33201
|
+
super(message == null ? "canceled" : message, AxiosError$1.ERR_CANCELED, config2, request);
|
|
33202
|
+
this.name = "CanceledError";
|
|
33203
|
+
this.__CANCEL__ = true;
|
|
32378
33204
|
}
|
|
32379
|
-
|
|
32380
|
-
|
|
32381
|
-
|
|
32382
|
-
|
|
33205
|
+
}
|
|
33206
|
+
var CanceledError$1 = CanceledError;
|
|
33207
|
+
function settle(resolve, reject, response) {
|
|
33208
|
+
const validateStatus2 = response.config.validateStatus;
|
|
33209
|
+
if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
|
|
33210
|
+
resolve(response);
|
|
33211
|
+
} else {
|
|
33212
|
+
reject(
|
|
33213
|
+
new AxiosError$1(
|
|
33214
|
+
"Request failed with status code " + response.status,
|
|
33215
|
+
[AxiosError$1.ERR_BAD_REQUEST, AxiosError$1.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
|
|
33216
|
+
response.config,
|
|
33217
|
+
response.request,
|
|
33218
|
+
response
|
|
33219
|
+
)
|
|
33220
|
+
);
|
|
33221
|
+
}
|
|
33222
|
+
}
|
|
33223
|
+
function parseProtocol(url) {
|
|
33224
|
+
const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
|
|
33225
|
+
return match && match[1] || "";
|
|
33226
|
+
}
|
|
33227
|
+
function speedometer(samplesCount, min) {
|
|
33228
|
+
samplesCount = samplesCount || 10;
|
|
33229
|
+
const bytes = new Array(samplesCount);
|
|
33230
|
+
const timestamps = new Array(samplesCount);
|
|
33231
|
+
let head = 0;
|
|
33232
|
+
let tail = 0;
|
|
33233
|
+
let firstSampleTS;
|
|
33234
|
+
min = min !== void 0 ? min : 1e3;
|
|
33235
|
+
return function push(chunkLength) {
|
|
33236
|
+
const now = Date.now();
|
|
33237
|
+
const startedAt = timestamps[tail];
|
|
33238
|
+
if (!firstSampleTS) {
|
|
33239
|
+
firstSampleTS = now;
|
|
33240
|
+
}
|
|
33241
|
+
bytes[head] = chunkLength;
|
|
33242
|
+
timestamps[head] = now;
|
|
33243
|
+
let i = tail;
|
|
33244
|
+
let bytesCount = 0;
|
|
33245
|
+
while (i !== head) {
|
|
33246
|
+
bytesCount += bytes[i++];
|
|
33247
|
+
i = i % samplesCount;
|
|
33248
|
+
}
|
|
33249
|
+
head = (head + 1) % samplesCount;
|
|
33250
|
+
if (head === tail) {
|
|
33251
|
+
tail = (tail + 1) % samplesCount;
|
|
33252
|
+
}
|
|
33253
|
+
if (now - firstSampleTS < min) {
|
|
33254
|
+
return;
|
|
33255
|
+
}
|
|
33256
|
+
const passed = startedAt && now - startedAt;
|
|
33257
|
+
return passed ? Math.round(bytesCount * 1e3 / passed) : void 0;
|
|
32383
33258
|
};
|
|
32384
|
-
}
|
|
32385
|
-
|
|
32386
|
-
|
|
33259
|
+
}
|
|
33260
|
+
function throttle(fn2, freq) {
|
|
33261
|
+
let timestamp = 0;
|
|
33262
|
+
let threshold = 1e3 / freq;
|
|
33263
|
+
let lastArgs;
|
|
33264
|
+
let timer2;
|
|
33265
|
+
const invoke = (args, now = Date.now()) => {
|
|
33266
|
+
timestamp = now;
|
|
33267
|
+
lastArgs = null;
|
|
33268
|
+
if (timer2) {
|
|
33269
|
+
clearTimeout(timer2);
|
|
33270
|
+
timer2 = null;
|
|
33271
|
+
}
|
|
33272
|
+
fn2(...args);
|
|
32387
33273
|
};
|
|
32388
|
-
|
|
32389
|
-
|
|
32390
|
-
|
|
32391
|
-
|
|
32392
|
-
|
|
32393
|
-
|
|
32394
|
-
|
|
32395
|
-
|
|
32396
|
-
|
|
32397
|
-
|
|
33274
|
+
const throttled = (...args) => {
|
|
33275
|
+
const now = Date.now();
|
|
33276
|
+
const passed = now - timestamp;
|
|
33277
|
+
if (passed >= threshold) {
|
|
33278
|
+
invoke(args, now);
|
|
33279
|
+
} else {
|
|
33280
|
+
lastArgs = args;
|
|
33281
|
+
if (!timer2) {
|
|
33282
|
+
timer2 = setTimeout(() => {
|
|
33283
|
+
timer2 = null;
|
|
33284
|
+
invoke(lastArgs);
|
|
33285
|
+
}, threshold - passed);
|
|
33286
|
+
}
|
|
33287
|
+
}
|
|
33288
|
+
};
|
|
33289
|
+
const flush = () => lastArgs && invoke(lastArgs);
|
|
33290
|
+
return [throttled, flush];
|
|
33291
|
+
}
|
|
33292
|
+
const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
33293
|
+
let bytesNotified = 0;
|
|
33294
|
+
const _speedometer = speedometer(50, 250);
|
|
33295
|
+
return throttle((e) => {
|
|
33296
|
+
const loaded = e.loaded;
|
|
33297
|
+
const total = e.lengthComputable ? e.total : void 0;
|
|
33298
|
+
const progressBytes = loaded - bytesNotified;
|
|
33299
|
+
const rate = _speedometer(progressBytes);
|
|
33300
|
+
const inRange = loaded <= total;
|
|
33301
|
+
bytesNotified = loaded;
|
|
33302
|
+
const data49 = {
|
|
33303
|
+
loaded,
|
|
33304
|
+
total,
|
|
33305
|
+
progress: total ? loaded / total : void 0,
|
|
33306
|
+
bytes: progressBytes,
|
|
33307
|
+
rate: rate ? rate : void 0,
|
|
33308
|
+
estimated: rate && total && inRange ? (total - loaded) / rate : void 0,
|
|
33309
|
+
event: e,
|
|
33310
|
+
lengthComputable: total != null,
|
|
33311
|
+
[isDownloadStream ? "download" : "upload"]: true
|
|
33312
|
+
};
|
|
33313
|
+
listener(data49);
|
|
33314
|
+
}, freq);
|
|
33315
|
+
};
|
|
33316
|
+
const progressEventDecorator = (total, throttled) => {
|
|
33317
|
+
const lengthComputable = total != null;
|
|
33318
|
+
return [
|
|
33319
|
+
(loaded) => throttled[0]({
|
|
33320
|
+
lengthComputable,
|
|
33321
|
+
total,
|
|
33322
|
+
loaded
|
|
33323
|
+
}),
|
|
33324
|
+
throttled[1]
|
|
33325
|
+
];
|
|
33326
|
+
};
|
|
33327
|
+
const asyncDecorator = (fn2) => (...args) => utils$1.asap(() => fn2(...args));
|
|
33328
|
+
var isURLSameOrigin = platform.hasStandardBrowserEnv ? ((origin2, isMSIE) => (url) => {
|
|
33329
|
+
url = new URL(url, platform.origin);
|
|
33330
|
+
return origin2.protocol === url.protocol && origin2.host === url.host && (isMSIE || origin2.port === url.port);
|
|
33331
|
+
})(
|
|
33332
|
+
new URL(platform.origin),
|
|
33333
|
+
platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent)
|
|
33334
|
+
) : () => true;
|
|
33335
|
+
var cookies = platform.hasStandardBrowserEnv ? {
|
|
33336
|
+
write(name2, value17, expires, path2, domain, secure, sameSite) {
|
|
33337
|
+
if (typeof document === "undefined")
|
|
33338
|
+
return;
|
|
33339
|
+
const cookie = [`${name2}=${encodeURIComponent(value17)}`];
|
|
33340
|
+
if (utils$1.isNumber(expires)) {
|
|
33341
|
+
cookie.push(`expires=${new Date(expires).toUTCString()}`);
|
|
33342
|
+
}
|
|
33343
|
+
if (utils$1.isString(path2)) {
|
|
33344
|
+
cookie.push(`path=${path2}`);
|
|
33345
|
+
}
|
|
33346
|
+
if (utils$1.isString(domain)) {
|
|
33347
|
+
cookie.push(`domain=${domain}`);
|
|
33348
|
+
}
|
|
33349
|
+
if (secure === true) {
|
|
33350
|
+
cookie.push("secure");
|
|
33351
|
+
}
|
|
33352
|
+
if (utils$1.isString(sameSite)) {
|
|
33353
|
+
cookie.push(`SameSite=${sameSite}`);
|
|
33354
|
+
}
|
|
33355
|
+
document.cookie = cookie.join("; ");
|
|
33356
|
+
},
|
|
33357
|
+
read(name2) {
|
|
33358
|
+
if (typeof document === "undefined")
|
|
33359
|
+
return null;
|
|
33360
|
+
const match = document.cookie.match(new RegExp("(?:^|; )" + name2 + "=([^;]*)"));
|
|
33361
|
+
return match ? decodeURIComponent(match[1]) : null;
|
|
33362
|
+
},
|
|
33363
|
+
remove(name2) {
|
|
33364
|
+
this.write(name2, "", Date.now() - 864e5, "/");
|
|
33365
|
+
}
|
|
33366
|
+
} : {
|
|
33367
|
+
write() {
|
|
33368
|
+
},
|
|
33369
|
+
read() {
|
|
33370
|
+
return null;
|
|
33371
|
+
},
|
|
33372
|
+
remove() {
|
|
33373
|
+
}
|
|
33374
|
+
};
|
|
33375
|
+
function isAbsoluteURL(url) {
|
|
33376
|
+
if (typeof url !== "string") {
|
|
33377
|
+
return false;
|
|
33378
|
+
}
|
|
33379
|
+
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
|
|
33380
|
+
}
|
|
33381
|
+
function combineURLs(baseURL, relativeURL) {
|
|
33382
|
+
return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
|
|
33383
|
+
}
|
|
33384
|
+
function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
33385
|
+
let isRelativeUrl = !isAbsoluteURL(requestedURL);
|
|
33386
|
+
if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {
|
|
33387
|
+
return combineURLs(baseURL, requestedURL);
|
|
33388
|
+
}
|
|
33389
|
+
return requestedURL;
|
|
33390
|
+
}
|
|
33391
|
+
const headersToObject = (thing) => thing instanceof AxiosHeaders$1 ? { ...thing } : thing;
|
|
33392
|
+
function mergeConfig(config1, config2) {
|
|
33393
|
+
config2 = config2 || {};
|
|
33394
|
+
const config3 = {};
|
|
33395
|
+
function getMergedValue(target2, source, prop, caseless) {
|
|
33396
|
+
if (utils$1.isPlainObject(target2) && utils$1.isPlainObject(source)) {
|
|
33397
|
+
return utils$1.merge.call({ caseless }, target2, source);
|
|
33398
|
+
} else if (utils$1.isPlainObject(source)) {
|
|
33399
|
+
return utils$1.merge({}, source);
|
|
33400
|
+
} else if (utils$1.isArray(source)) {
|
|
33401
|
+
return source.slice();
|
|
33402
|
+
}
|
|
33403
|
+
return source;
|
|
33404
|
+
}
|
|
33405
|
+
function mergeDeepProperties(a, b, prop, caseless) {
|
|
33406
|
+
if (!utils$1.isUndefined(b)) {
|
|
33407
|
+
return getMergedValue(a, b, prop, caseless);
|
|
33408
|
+
} else if (!utils$1.isUndefined(a)) {
|
|
33409
|
+
return getMergedValue(void 0, a, prop, caseless);
|
|
33410
|
+
}
|
|
33411
|
+
}
|
|
33412
|
+
function valueFromConfig2(a, b) {
|
|
33413
|
+
if (!utils$1.isUndefined(b)) {
|
|
33414
|
+
return getMergedValue(void 0, b);
|
|
33415
|
+
}
|
|
33416
|
+
}
|
|
33417
|
+
function defaultToConfig2(a, b) {
|
|
33418
|
+
if (!utils$1.isUndefined(b)) {
|
|
33419
|
+
return getMergedValue(void 0, b);
|
|
33420
|
+
} else if (!utils$1.isUndefined(a)) {
|
|
33421
|
+
return getMergedValue(void 0, a);
|
|
33422
|
+
}
|
|
33423
|
+
}
|
|
33424
|
+
function mergeDirectKeys(a, b, prop) {
|
|
33425
|
+
if (prop in config2) {
|
|
33426
|
+
return getMergedValue(a, b);
|
|
33427
|
+
} else if (prop in config1) {
|
|
33428
|
+
return getMergedValue(void 0, a);
|
|
33429
|
+
}
|
|
33430
|
+
}
|
|
33431
|
+
const mergeMap = {
|
|
33432
|
+
url: valueFromConfig2,
|
|
33433
|
+
method: valueFromConfig2,
|
|
33434
|
+
data: valueFromConfig2,
|
|
33435
|
+
baseURL: defaultToConfig2,
|
|
33436
|
+
transformRequest: defaultToConfig2,
|
|
33437
|
+
transformResponse: defaultToConfig2,
|
|
33438
|
+
paramsSerializer: defaultToConfig2,
|
|
33439
|
+
timeout: defaultToConfig2,
|
|
33440
|
+
timeoutMessage: defaultToConfig2,
|
|
33441
|
+
withCredentials: defaultToConfig2,
|
|
33442
|
+
withXSRFToken: defaultToConfig2,
|
|
33443
|
+
adapter: defaultToConfig2,
|
|
33444
|
+
responseType: defaultToConfig2,
|
|
33445
|
+
xsrfCookieName: defaultToConfig2,
|
|
33446
|
+
xsrfHeaderName: defaultToConfig2,
|
|
33447
|
+
onUploadProgress: defaultToConfig2,
|
|
33448
|
+
onDownloadProgress: defaultToConfig2,
|
|
33449
|
+
decompress: defaultToConfig2,
|
|
33450
|
+
maxContentLength: defaultToConfig2,
|
|
33451
|
+
maxBodyLength: defaultToConfig2,
|
|
33452
|
+
beforeRedirect: defaultToConfig2,
|
|
33453
|
+
transport: defaultToConfig2,
|
|
33454
|
+
httpAgent: defaultToConfig2,
|
|
33455
|
+
httpsAgent: defaultToConfig2,
|
|
33456
|
+
cancelToken: defaultToConfig2,
|
|
33457
|
+
socketPath: defaultToConfig2,
|
|
33458
|
+
responseEncoding: defaultToConfig2,
|
|
33459
|
+
validateStatus: mergeDirectKeys,
|
|
33460
|
+
headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
|
|
33461
|
+
};
|
|
33462
|
+
utils$1.forEach(Object.keys({ ...config1, ...config2 }), function computeConfigValue(prop) {
|
|
33463
|
+
if (prop === "__proto__" || prop === "constructor" || prop === "prototype")
|
|
33464
|
+
return;
|
|
33465
|
+
const merge2 = utils$1.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
|
|
33466
|
+
const configValue = merge2(config1[prop], config2[prop], prop);
|
|
33467
|
+
utils$1.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config3[prop] = configValue);
|
|
33468
|
+
});
|
|
33469
|
+
return config3;
|
|
33470
|
+
}
|
|
33471
|
+
var resolveConfig = (config2) => {
|
|
33472
|
+
const newConfig = mergeConfig({}, config2);
|
|
33473
|
+
let { data: data49, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
|
|
33474
|
+
newConfig.headers = headers = AxiosHeaders$1.from(headers);
|
|
33475
|
+
newConfig.url = buildURL(
|
|
33476
|
+
buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls),
|
|
33477
|
+
config2.params,
|
|
33478
|
+
config2.paramsSerializer
|
|
33479
|
+
);
|
|
33480
|
+
if (auth) {
|
|
33481
|
+
headers.set(
|
|
33482
|
+
"Authorization",
|
|
33483
|
+
"Basic " + btoa(
|
|
33484
|
+
(auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : "")
|
|
33485
|
+
)
|
|
33486
|
+
);
|
|
33487
|
+
}
|
|
33488
|
+
if (utils$1.isFormData(data49)) {
|
|
33489
|
+
if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {
|
|
33490
|
+
headers.setContentType(void 0);
|
|
33491
|
+
} else if (utils$1.isFunction(data49.getHeaders)) {
|
|
33492
|
+
const formHeaders = data49.getHeaders();
|
|
33493
|
+
const allowedHeaders = ["content-type", "content-length"];
|
|
33494
|
+
Object.entries(formHeaders).forEach(([key, val]) => {
|
|
33495
|
+
if (allowedHeaders.includes(key.toLowerCase())) {
|
|
33496
|
+
headers.set(key, val);
|
|
33497
|
+
}
|
|
33498
|
+
});
|
|
33499
|
+
}
|
|
33500
|
+
}
|
|
33501
|
+
if (platform.hasStandardBrowserEnv) {
|
|
33502
|
+
withXSRFToken && utils$1.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));
|
|
33503
|
+
if (withXSRFToken || withXSRFToken !== false && isURLSameOrigin(newConfig.url)) {
|
|
33504
|
+
const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies.read(xsrfCookieName);
|
|
33505
|
+
if (xsrfValue) {
|
|
33506
|
+
headers.set(xsrfHeaderName, xsrfValue);
|
|
33507
|
+
}
|
|
33508
|
+
}
|
|
33509
|
+
}
|
|
33510
|
+
return newConfig;
|
|
33511
|
+
};
|
|
33512
|
+
const isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
|
|
33513
|
+
var xhrAdapter = isXHRAdapterSupported && function(config2) {
|
|
32398
33514
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
32399
|
-
|
|
32400
|
-
|
|
32401
|
-
|
|
32402
|
-
|
|
32403
|
-
|
|
32404
|
-
|
|
32405
|
-
|
|
32406
|
-
|
|
32407
|
-
|
|
32408
|
-
|
|
32409
|
-
|
|
32410
|
-
|
|
32411
|
-
|
|
32412
|
-
|
|
32413
|
-
|
|
33515
|
+
const _config = resolveConfig(config2);
|
|
33516
|
+
let requestData = _config.data;
|
|
33517
|
+
const requestHeaders = AxiosHeaders$1.from(_config.headers).normalize();
|
|
33518
|
+
let { responseType, onUploadProgress, onDownloadProgress } = _config;
|
|
33519
|
+
let onCanceled;
|
|
33520
|
+
let uploadThrottled, downloadThrottled;
|
|
33521
|
+
let flushUpload, flushDownload;
|
|
33522
|
+
function done() {
|
|
33523
|
+
flushUpload && flushUpload();
|
|
33524
|
+
flushDownload && flushDownload();
|
|
33525
|
+
_config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);
|
|
33526
|
+
_config.signal && _config.signal.removeEventListener("abort", onCanceled);
|
|
33527
|
+
}
|
|
33528
|
+
let request = new XMLHttpRequest();
|
|
33529
|
+
request.open(_config.method.toUpperCase(), _config.url, true);
|
|
33530
|
+
request.timeout = _config.timeout;
|
|
32414
33531
|
function onloadend() {
|
|
32415
|
-
if (!
|
|
33532
|
+
if (!request) {
|
|
32416
33533
|
return;
|
|
32417
33534
|
}
|
|
32418
|
-
|
|
32419
|
-
|
|
32420
|
-
|
|
33535
|
+
const responseHeaders = AxiosHeaders$1.from(
|
|
33536
|
+
"getAllResponseHeaders" in request && request.getAllResponseHeaders()
|
|
33537
|
+
);
|
|
33538
|
+
const responseData = !responseType || responseType === "text" || responseType === "json" ? request.responseText : request.response;
|
|
33539
|
+
const response = {
|
|
32421
33540
|
data: responseData,
|
|
32422
|
-
status:
|
|
32423
|
-
statusText:
|
|
33541
|
+
status: request.status,
|
|
33542
|
+
statusText: request.statusText,
|
|
32424
33543
|
headers: responseHeaders,
|
|
32425
33544
|
config: config2,
|
|
32426
|
-
request
|
|
33545
|
+
request
|
|
32427
33546
|
};
|
|
32428
|
-
|
|
32429
|
-
|
|
33547
|
+
settle(
|
|
33548
|
+
function _resolve(value17) {
|
|
33549
|
+
resolve(value17);
|
|
33550
|
+
done();
|
|
33551
|
+
},
|
|
33552
|
+
function _reject(err) {
|
|
33553
|
+
reject(err);
|
|
33554
|
+
done();
|
|
33555
|
+
},
|
|
33556
|
+
response
|
|
33557
|
+
);
|
|
33558
|
+
request = null;
|
|
32430
33559
|
}
|
|
32431
|
-
if ("onloadend" in
|
|
32432
|
-
|
|
33560
|
+
if ("onloadend" in request) {
|
|
33561
|
+
request.onloadend = onloadend;
|
|
32433
33562
|
} else {
|
|
32434
|
-
|
|
32435
|
-
if (!
|
|
33563
|
+
request.onreadystatechange = function handleLoad() {
|
|
33564
|
+
if (!request || request.readyState !== 4) {
|
|
32436
33565
|
return;
|
|
32437
33566
|
}
|
|
32438
|
-
if (
|
|
33567
|
+
if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf("file:") === 0)) {
|
|
32439
33568
|
return;
|
|
32440
33569
|
}
|
|
32441
33570
|
setTimeout(onloadend);
|
|
32442
33571
|
};
|
|
32443
33572
|
}
|
|
32444
|
-
|
|
32445
|
-
if (!
|
|
33573
|
+
request.onabort = function handleAbort() {
|
|
33574
|
+
if (!request) {
|
|
32446
33575
|
return;
|
|
32447
33576
|
}
|
|
32448
|
-
reject(
|
|
32449
|
-
|
|
33577
|
+
reject(new AxiosError$1("Request aborted", AxiosError$1.ECONNABORTED, config2, request));
|
|
33578
|
+
request = null;
|
|
32450
33579
|
};
|
|
32451
|
-
|
|
32452
|
-
|
|
32453
|
-
|
|
33580
|
+
request.onerror = function handleError(event) {
|
|
33581
|
+
const msg = event && event.message ? event.message : "Network Error";
|
|
33582
|
+
const err = new AxiosError$1(msg, AxiosError$1.ERR_NETWORK, config2, request);
|
|
33583
|
+
err.event = event || null;
|
|
33584
|
+
reject(err);
|
|
33585
|
+
request = null;
|
|
32454
33586
|
};
|
|
32455
|
-
|
|
32456
|
-
|
|
32457
|
-
|
|
32458
|
-
|
|
32459
|
-
|
|
32460
|
-
|
|
32461
|
-
|
|
32462
|
-
|
|
32463
|
-
|
|
32464
|
-
|
|
32465
|
-
|
|
32466
|
-
|
|
33587
|
+
request.ontimeout = function handleTimeout() {
|
|
33588
|
+
let timeoutErrorMessage = _config.timeout ? "timeout of " + _config.timeout + "ms exceeded" : "timeout exceeded";
|
|
33589
|
+
const transitional2 = _config.transitional || transitionalDefaults;
|
|
33590
|
+
if (_config.timeoutErrorMessage) {
|
|
33591
|
+
timeoutErrorMessage = _config.timeoutErrorMessage;
|
|
33592
|
+
}
|
|
33593
|
+
reject(
|
|
33594
|
+
new AxiosError$1(
|
|
33595
|
+
timeoutErrorMessage,
|
|
33596
|
+
transitional2.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED,
|
|
33597
|
+
config2,
|
|
33598
|
+
request
|
|
33599
|
+
)
|
|
33600
|
+
);
|
|
33601
|
+
request = null;
|
|
32467
33602
|
};
|
|
32468
|
-
|
|
32469
|
-
|
|
32470
|
-
|
|
32471
|
-
|
|
32472
|
-
}
|
|
32473
|
-
}
|
|
32474
|
-
if ("setRequestHeader" in request2) {
|
|
32475
|
-
utils$6.forEach(requestHeaders, function setRequestHeader(val, key) {
|
|
32476
|
-
if (typeof requestData === "undefined" && key.toLowerCase() === "content-type") {
|
|
32477
|
-
delete requestHeaders[key];
|
|
32478
|
-
} else {
|
|
32479
|
-
request2.setRequestHeader(key, val);
|
|
32480
|
-
}
|
|
33603
|
+
requestData === void 0 && requestHeaders.setContentType(null);
|
|
33604
|
+
if ("setRequestHeader" in request) {
|
|
33605
|
+
utils$1.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
|
|
33606
|
+
request.setRequestHeader(key, val);
|
|
32481
33607
|
});
|
|
32482
33608
|
}
|
|
32483
|
-
if (!utils$
|
|
32484
|
-
|
|
33609
|
+
if (!utils$1.isUndefined(_config.withCredentials)) {
|
|
33610
|
+
request.withCredentials = !!_config.withCredentials;
|
|
32485
33611
|
}
|
|
32486
33612
|
if (responseType && responseType !== "json") {
|
|
32487
|
-
|
|
33613
|
+
request.responseType = _config.responseType;
|
|
32488
33614
|
}
|
|
32489
|
-
if (
|
|
32490
|
-
|
|
33615
|
+
if (onDownloadProgress) {
|
|
33616
|
+
[downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true);
|
|
33617
|
+
request.addEventListener("progress", downloadThrottled);
|
|
32491
33618
|
}
|
|
32492
|
-
if (
|
|
32493
|
-
|
|
33619
|
+
if (onUploadProgress && request.upload) {
|
|
33620
|
+
[uploadThrottled, flushUpload] = progressEventReducer(onUploadProgress);
|
|
33621
|
+
request.upload.addEventListener("progress", uploadThrottled);
|
|
33622
|
+
request.upload.addEventListener("loadend", flushUpload);
|
|
32494
33623
|
}
|
|
32495
|
-
if (
|
|
32496
|
-
|
|
32497
|
-
if (!
|
|
33624
|
+
if (_config.cancelToken || _config.signal) {
|
|
33625
|
+
onCanceled = (cancel2) => {
|
|
33626
|
+
if (!request) {
|
|
32498
33627
|
return;
|
|
32499
33628
|
}
|
|
32500
|
-
|
|
32501
|
-
|
|
32502
|
-
|
|
32503
|
-
}
|
|
32504
|
-
|
|
32505
|
-
|
|
32506
|
-
|
|
33629
|
+
reject(!cancel2 || cancel2.type ? new CanceledError$1(null, config2, request) : cancel2);
|
|
33630
|
+
request.abort();
|
|
33631
|
+
request = null;
|
|
33632
|
+
};
|
|
33633
|
+
_config.cancelToken && _config.cancelToken.subscribe(onCanceled);
|
|
33634
|
+
if (_config.signal) {
|
|
33635
|
+
_config.signal.aborted ? onCanceled() : _config.signal.addEventListener("abort", onCanceled);
|
|
33636
|
+
}
|
|
33637
|
+
}
|
|
33638
|
+
const protocol = parseProtocol(_config.url);
|
|
33639
|
+
if (protocol && platform.protocols.indexOf(protocol) === -1) {
|
|
33640
|
+
reject(
|
|
33641
|
+
new AxiosError$1(
|
|
33642
|
+
"Unsupported protocol " + protocol + ":",
|
|
33643
|
+
AxiosError$1.ERR_BAD_REQUEST,
|
|
33644
|
+
config2
|
|
33645
|
+
)
|
|
33646
|
+
);
|
|
33647
|
+
return;
|
|
32507
33648
|
}
|
|
32508
|
-
|
|
33649
|
+
request.send(requestData || null);
|
|
32509
33650
|
});
|
|
32510
33651
|
};
|
|
32511
|
-
|
|
32512
|
-
|
|
32513
|
-
|
|
32514
|
-
|
|
32515
|
-
|
|
33652
|
+
const composeSignals = (signals, timeout) => {
|
|
33653
|
+
const { length } = signals = signals ? signals.filter(Boolean) : [];
|
|
33654
|
+
if (timeout || length) {
|
|
33655
|
+
let controller = new AbortController();
|
|
33656
|
+
let aborted;
|
|
33657
|
+
const onabort = function(reason) {
|
|
33658
|
+
if (!aborted) {
|
|
33659
|
+
aborted = true;
|
|
33660
|
+
unsubscribe();
|
|
33661
|
+
const err = reason instanceof Error ? reason : this.reason;
|
|
33662
|
+
controller.abort(
|
|
33663
|
+
err instanceof AxiosError$1 ? err : new CanceledError$1(err instanceof Error ? err.message : err)
|
|
33664
|
+
);
|
|
33665
|
+
}
|
|
33666
|
+
};
|
|
33667
|
+
let timer2 = timeout && setTimeout(() => {
|
|
33668
|
+
timer2 = null;
|
|
33669
|
+
onabort(new AxiosError$1(`timeout of ${timeout}ms exceeded`, AxiosError$1.ETIMEDOUT));
|
|
33670
|
+
}, timeout);
|
|
33671
|
+
const unsubscribe = () => {
|
|
33672
|
+
if (signals) {
|
|
33673
|
+
timer2 && clearTimeout(timer2);
|
|
33674
|
+
timer2 = null;
|
|
33675
|
+
signals.forEach((signal2) => {
|
|
33676
|
+
signal2.unsubscribe ? signal2.unsubscribe(onabort) : signal2.removeEventListener("abort", onabort);
|
|
33677
|
+
});
|
|
33678
|
+
signals = null;
|
|
33679
|
+
}
|
|
33680
|
+
};
|
|
33681
|
+
signals.forEach((signal2) => signal2.addEventListener("abort", onabort));
|
|
33682
|
+
const { signal } = controller;
|
|
33683
|
+
signal.unsubscribe = () => utils$1.asap(unsubscribe);
|
|
33684
|
+
return signal;
|
|
33685
|
+
}
|
|
32516
33686
|
};
|
|
32517
|
-
|
|
32518
|
-
|
|
32519
|
-
|
|
33687
|
+
var composeSignals$1 = composeSignals;
|
|
33688
|
+
const streamChunk = function* (chunk, chunkSize) {
|
|
33689
|
+
let len = chunk.byteLength;
|
|
33690
|
+
if (!chunkSize || len < chunkSize) {
|
|
33691
|
+
yield chunk;
|
|
33692
|
+
return;
|
|
32520
33693
|
}
|
|
32521
|
-
|
|
32522
|
-
|
|
32523
|
-
|
|
32524
|
-
|
|
32525
|
-
|
|
32526
|
-
|
|
32527
|
-
adapter = xhr;
|
|
33694
|
+
let pos = 0;
|
|
33695
|
+
let end2;
|
|
33696
|
+
while (pos < len) {
|
|
33697
|
+
end2 = pos + chunkSize;
|
|
33698
|
+
yield chunk.slice(pos, end2);
|
|
33699
|
+
pos = end2;
|
|
32528
33700
|
}
|
|
32529
|
-
|
|
32530
|
-
|
|
32531
|
-
|
|
32532
|
-
|
|
32533
|
-
|
|
32534
|
-
|
|
32535
|
-
|
|
32536
|
-
|
|
32537
|
-
|
|
32538
|
-
|
|
33701
|
+
};
|
|
33702
|
+
const readBytes = async function* (iterable, chunkSize) {
|
|
33703
|
+
for await (const chunk of readStream(iterable)) {
|
|
33704
|
+
yield* streamChunk(chunk, chunkSize);
|
|
33705
|
+
}
|
|
33706
|
+
};
|
|
33707
|
+
const readStream = async function* (stream) {
|
|
33708
|
+
if (stream[Symbol.asyncIterator]) {
|
|
33709
|
+
yield* stream;
|
|
33710
|
+
return;
|
|
33711
|
+
}
|
|
33712
|
+
const reader = stream.getReader();
|
|
33713
|
+
try {
|
|
33714
|
+
for (; ; ) {
|
|
33715
|
+
const { done, value: value17 } = await reader.read();
|
|
33716
|
+
if (done) {
|
|
33717
|
+
break;
|
|
32539
33718
|
}
|
|
33719
|
+
yield value17;
|
|
32540
33720
|
}
|
|
33721
|
+
} finally {
|
|
33722
|
+
await reader.cancel();
|
|
32541
33723
|
}
|
|
32542
|
-
|
|
32543
|
-
|
|
32544
|
-
|
|
32545
|
-
|
|
32546
|
-
|
|
32547
|
-
|
|
32548
|
-
|
|
32549
|
-
|
|
32550
|
-
|
|
32551
|
-
transformRequest: [function transformRequest(data49, headers) {
|
|
32552
|
-
normalizeHeaderName2(headers, "Accept");
|
|
32553
|
-
normalizeHeaderName2(headers, "Content-Type");
|
|
32554
|
-
if (utils$5.isFormData(data49) || utils$5.isArrayBuffer(data49) || utils$5.isBuffer(data49) || utils$5.isStream(data49) || utils$5.isFile(data49) || utils$5.isBlob(data49)) {
|
|
32555
|
-
return data49;
|
|
33724
|
+
};
|
|
33725
|
+
const trackStream = (stream, chunkSize, onProgress, onFinish2) => {
|
|
33726
|
+
const iterator2 = readBytes(stream, chunkSize);
|
|
33727
|
+
let bytes = 0;
|
|
33728
|
+
let done;
|
|
33729
|
+
let _onFinish = (e) => {
|
|
33730
|
+
if (!done) {
|
|
33731
|
+
done = true;
|
|
33732
|
+
onFinish2 && onFinish2(e);
|
|
32556
33733
|
}
|
|
32557
|
-
|
|
32558
|
-
|
|
32559
|
-
|
|
32560
|
-
|
|
32561
|
-
|
|
32562
|
-
|
|
32563
|
-
|
|
32564
|
-
|
|
32565
|
-
|
|
32566
|
-
|
|
32567
|
-
|
|
32568
|
-
|
|
32569
|
-
|
|
32570
|
-
|
|
32571
|
-
|
|
32572
|
-
var silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
|
|
32573
|
-
var forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
|
|
32574
|
-
var strictJSONParsing = !silentJSONParsing && this.responseType === "json";
|
|
32575
|
-
if (strictJSONParsing || forcedJSONParsing && utils$5.isString(data49) && data49.length) {
|
|
32576
|
-
try {
|
|
32577
|
-
return JSON.parse(data49);
|
|
32578
|
-
} catch (e) {
|
|
32579
|
-
if (strictJSONParsing) {
|
|
32580
|
-
if (e.name === "SyntaxError") {
|
|
32581
|
-
throw enhanceError2(e, this, "E_JSON_PARSE");
|
|
33734
|
+
};
|
|
33735
|
+
return new ReadableStream(
|
|
33736
|
+
{
|
|
33737
|
+
async pull(controller) {
|
|
33738
|
+
try {
|
|
33739
|
+
const { done: done2, value: value17 } = await iterator2.next();
|
|
33740
|
+
if (done2) {
|
|
33741
|
+
_onFinish();
|
|
33742
|
+
controller.close();
|
|
33743
|
+
return;
|
|
33744
|
+
}
|
|
33745
|
+
let len = value17.byteLength;
|
|
33746
|
+
if (onProgress) {
|
|
33747
|
+
let loadedBytes = bytes += len;
|
|
33748
|
+
onProgress(loadedBytes);
|
|
32582
33749
|
}
|
|
32583
|
-
|
|
33750
|
+
controller.enqueue(new Uint8Array(value17));
|
|
33751
|
+
} catch (err) {
|
|
33752
|
+
_onFinish(err);
|
|
33753
|
+
throw err;
|
|
32584
33754
|
}
|
|
33755
|
+
},
|
|
33756
|
+
cancel(reason) {
|
|
33757
|
+
_onFinish(reason);
|
|
33758
|
+
return iterator2.return();
|
|
32585
33759
|
}
|
|
33760
|
+
},
|
|
33761
|
+
{
|
|
33762
|
+
highWaterMark: 2
|
|
32586
33763
|
}
|
|
32587
|
-
|
|
32588
|
-
}],
|
|
32589
|
-
timeout: 0,
|
|
32590
|
-
xsrfCookieName: "XSRF-TOKEN",
|
|
32591
|
-
xsrfHeaderName: "X-XSRF-TOKEN",
|
|
32592
|
-
maxContentLength: -1,
|
|
32593
|
-
maxBodyLength: -1,
|
|
32594
|
-
validateStatus: function validateStatus(status2) {
|
|
32595
|
-
return status2 >= 200 && status2 < 300;
|
|
32596
|
-
}
|
|
33764
|
+
);
|
|
32597
33765
|
};
|
|
32598
|
-
|
|
32599
|
-
|
|
32600
|
-
|
|
33766
|
+
const DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
33767
|
+
const { isFunction } = utils$1;
|
|
33768
|
+
const globalFetchAPI = (({ Request, Response }) => ({
|
|
33769
|
+
Request,
|
|
33770
|
+
Response
|
|
33771
|
+
}))(utils$1.global);
|
|
33772
|
+
const { ReadableStream: ReadableStream$1, TextEncoder } = utils$1.global;
|
|
33773
|
+
const test = (fn2, ...args) => {
|
|
33774
|
+
try {
|
|
33775
|
+
return !!fn2(...args);
|
|
33776
|
+
} catch (e) {
|
|
33777
|
+
return false;
|
|
32601
33778
|
}
|
|
32602
33779
|
};
|
|
32603
|
-
|
|
32604
|
-
|
|
32605
|
-
|
|
32606
|
-
|
|
32607
|
-
|
|
32608
|
-
|
|
32609
|
-
|
|
32610
|
-
var utils$4 = utils$d;
|
|
32611
|
-
var defaults$2 = defaults_1;
|
|
32612
|
-
var transformData$1 = function transformData(data49, headers, fns) {
|
|
32613
|
-
var context2 = this || defaults$2;
|
|
32614
|
-
utils$4.forEach(fns, function transform(fn2) {
|
|
32615
|
-
data49 = fn2.call(context2, data49, headers);
|
|
32616
|
-
});
|
|
32617
|
-
return data49;
|
|
32618
|
-
};
|
|
32619
|
-
var isCancel$1 = function isCancel(value17) {
|
|
32620
|
-
return !!(value17 && value17.__CANCEL__);
|
|
32621
|
-
};
|
|
32622
|
-
var utils$3 = utils$d;
|
|
32623
|
-
var transformData2 = transformData$1;
|
|
32624
|
-
var isCancel2 = isCancel$1;
|
|
32625
|
-
var defaults$1 = defaults_1;
|
|
32626
|
-
function throwIfCancellationRequested(config2) {
|
|
32627
|
-
if (config2.cancelToken) {
|
|
32628
|
-
config2.cancelToken.throwIfRequested();
|
|
32629
|
-
}
|
|
32630
|
-
}
|
|
32631
|
-
var dispatchRequest$1 = function dispatchRequest(config2) {
|
|
32632
|
-
throwIfCancellationRequested(config2);
|
|
32633
|
-
config2.headers = config2.headers || {};
|
|
32634
|
-
config2.data = transformData2.call(
|
|
32635
|
-
config2,
|
|
32636
|
-
config2.data,
|
|
32637
|
-
config2.headers,
|
|
32638
|
-
config2.transformRequest
|
|
32639
|
-
);
|
|
32640
|
-
config2.headers = utils$3.merge(
|
|
32641
|
-
config2.headers.common || {},
|
|
32642
|
-
config2.headers[config2.method] || {},
|
|
32643
|
-
config2.headers
|
|
32644
|
-
);
|
|
32645
|
-
utils$3.forEach(
|
|
32646
|
-
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
32647
|
-
function cleanHeaderConfig(method) {
|
|
32648
|
-
delete config2.headers[method];
|
|
32649
|
-
}
|
|
33780
|
+
const factory = (env) => {
|
|
33781
|
+
env = utils$1.merge.call(
|
|
33782
|
+
{
|
|
33783
|
+
skipUndefined: true
|
|
33784
|
+
},
|
|
33785
|
+
globalFetchAPI,
|
|
33786
|
+
env
|
|
32650
33787
|
);
|
|
32651
|
-
|
|
32652
|
-
|
|
32653
|
-
|
|
32654
|
-
|
|
32655
|
-
|
|
32656
|
-
|
|
32657
|
-
|
|
32658
|
-
|
|
32659
|
-
|
|
32660
|
-
|
|
32661
|
-
|
|
32662
|
-
|
|
32663
|
-
|
|
32664
|
-
|
|
32665
|
-
|
|
32666
|
-
|
|
32667
|
-
|
|
32668
|
-
|
|
32669
|
-
|
|
33788
|
+
const { fetch: envFetch, Request, Response } = env;
|
|
33789
|
+
const isFetchSupported = envFetch ? isFunction(envFetch) : typeof fetch === "function";
|
|
33790
|
+
const isRequestSupported = isFunction(Request);
|
|
33791
|
+
const isResponseSupported = isFunction(Response);
|
|
33792
|
+
if (!isFetchSupported) {
|
|
33793
|
+
return false;
|
|
33794
|
+
}
|
|
33795
|
+
const isReadableStreamSupported = isFetchSupported && isFunction(ReadableStream$1);
|
|
33796
|
+
const encodeText = isFetchSupported && (typeof TextEncoder === "function" ? ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) : async (str) => new Uint8Array(await new Request(str).arrayBuffer()));
|
|
33797
|
+
const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
|
|
33798
|
+
let duplexAccessed = false;
|
|
33799
|
+
const hasContentType = new Request(platform.origin, {
|
|
33800
|
+
body: new ReadableStream$1(),
|
|
33801
|
+
method: "POST",
|
|
33802
|
+
get duplex() {
|
|
33803
|
+
duplexAccessed = true;
|
|
33804
|
+
return "half";
|
|
33805
|
+
}
|
|
33806
|
+
}).headers.has("Content-Type");
|
|
33807
|
+
return duplexAccessed && !hasContentType;
|
|
33808
|
+
});
|
|
33809
|
+
const supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(() => utils$1.isReadableStream(new Response("").body));
|
|
33810
|
+
const resolvers = {
|
|
33811
|
+
stream: supportsResponseStream && ((res) => res.body)
|
|
33812
|
+
};
|
|
33813
|
+
isFetchSupported && (() => {
|
|
33814
|
+
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((type2) => {
|
|
33815
|
+
!resolvers[type2] && (resolvers[type2] = (res, config2) => {
|
|
33816
|
+
let method = res && res[type2];
|
|
33817
|
+
if (method) {
|
|
33818
|
+
return method.call(res);
|
|
33819
|
+
}
|
|
33820
|
+
throw new AxiosError$1(
|
|
33821
|
+
`Response type '${type2}' is not supported`,
|
|
33822
|
+
AxiosError$1.ERR_NOT_SUPPORT,
|
|
33823
|
+
config2
|
|
32670
33824
|
);
|
|
32671
|
-
}
|
|
33825
|
+
});
|
|
33826
|
+
});
|
|
33827
|
+
})();
|
|
33828
|
+
const getBodyLength = async (body) => {
|
|
33829
|
+
if (body == null) {
|
|
33830
|
+
return 0;
|
|
32672
33831
|
}
|
|
32673
|
-
|
|
32674
|
-
|
|
32675
|
-
};
|
|
32676
|
-
var utils$2 = utils$d;
|
|
32677
|
-
var mergeConfig$2 = function mergeConfig(config1, config2) {
|
|
32678
|
-
config2 = config2 || {};
|
|
32679
|
-
var config3 = {};
|
|
32680
|
-
var valueFromConfig2Keys = ["url", "method", "data"];
|
|
32681
|
-
var mergeDeepPropertiesKeys = ["headers", "auth", "proxy", "params"];
|
|
32682
|
-
var defaultToConfig2Keys = [
|
|
32683
|
-
"baseURL",
|
|
32684
|
-
"transformRequest",
|
|
32685
|
-
"transformResponse",
|
|
32686
|
-
"paramsSerializer",
|
|
32687
|
-
"timeout",
|
|
32688
|
-
"timeoutMessage",
|
|
32689
|
-
"withCredentials",
|
|
32690
|
-
"adapter",
|
|
32691
|
-
"responseType",
|
|
32692
|
-
"xsrfCookieName",
|
|
32693
|
-
"xsrfHeaderName",
|
|
32694
|
-
"onUploadProgress",
|
|
32695
|
-
"onDownloadProgress",
|
|
32696
|
-
"decompress",
|
|
32697
|
-
"maxContentLength",
|
|
32698
|
-
"maxBodyLength",
|
|
32699
|
-
"maxRedirects",
|
|
32700
|
-
"transport",
|
|
32701
|
-
"httpAgent",
|
|
32702
|
-
"httpsAgent",
|
|
32703
|
-
"cancelToken",
|
|
32704
|
-
"socketPath",
|
|
32705
|
-
"responseEncoding"
|
|
32706
|
-
];
|
|
32707
|
-
var directMergeKeys = ["validateStatus"];
|
|
32708
|
-
function getMergedValue(target2, source2) {
|
|
32709
|
-
if (utils$2.isPlainObject(target2) && utils$2.isPlainObject(source2)) {
|
|
32710
|
-
return utils$2.merge(target2, source2);
|
|
32711
|
-
} else if (utils$2.isPlainObject(source2)) {
|
|
32712
|
-
return utils$2.merge({}, source2);
|
|
32713
|
-
} else if (utils$2.isArray(source2)) {
|
|
32714
|
-
return source2.slice();
|
|
33832
|
+
if (utils$1.isBlob(body)) {
|
|
33833
|
+
return body.size;
|
|
32715
33834
|
}
|
|
32716
|
-
|
|
32717
|
-
|
|
32718
|
-
|
|
32719
|
-
|
|
32720
|
-
|
|
32721
|
-
|
|
32722
|
-
config3[prop] = getMergedValue(void 0, config1[prop]);
|
|
33835
|
+
if (utils$1.isSpecCompliantForm(body)) {
|
|
33836
|
+
const _request = new Request(platform.origin, {
|
|
33837
|
+
method: "POST",
|
|
33838
|
+
body
|
|
33839
|
+
});
|
|
33840
|
+
return (await _request.arrayBuffer()).byteLength;
|
|
32723
33841
|
}
|
|
32724
|
-
|
|
32725
|
-
|
|
32726
|
-
if (!utils$2.isUndefined(config2[prop])) {
|
|
32727
|
-
config3[prop] = getMergedValue(void 0, config2[prop]);
|
|
33842
|
+
if (utils$1.isArrayBufferView(body) || utils$1.isArrayBuffer(body)) {
|
|
33843
|
+
return body.byteLength;
|
|
32728
33844
|
}
|
|
32729
|
-
|
|
32730
|
-
|
|
32731
|
-
utils$2.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {
|
|
32732
|
-
if (!utils$2.isUndefined(config2[prop])) {
|
|
32733
|
-
config3[prop] = getMergedValue(void 0, config2[prop]);
|
|
32734
|
-
} else if (!utils$2.isUndefined(config1[prop])) {
|
|
32735
|
-
config3[prop] = getMergedValue(void 0, config1[prop]);
|
|
33845
|
+
if (utils$1.isURLSearchParams(body)) {
|
|
33846
|
+
body = body + "";
|
|
32736
33847
|
}
|
|
32737
|
-
|
|
32738
|
-
|
|
32739
|
-
if (prop in config2) {
|
|
32740
|
-
config3[prop] = getMergedValue(config1[prop], config2[prop]);
|
|
32741
|
-
} else if (prop in config1) {
|
|
32742
|
-
config3[prop] = getMergedValue(void 0, config1[prop]);
|
|
33848
|
+
if (utils$1.isString(body)) {
|
|
33849
|
+
return (await encodeText(body)).byteLength;
|
|
32743
33850
|
}
|
|
32744
|
-
}
|
|
32745
|
-
|
|
32746
|
-
|
|
32747
|
-
return
|
|
32748
|
-
}
|
|
32749
|
-
|
|
32750
|
-
|
|
33851
|
+
};
|
|
33852
|
+
const resolveBodyLength = async (headers, body) => {
|
|
33853
|
+
const length = utils$1.toFiniteNumber(headers.getContentLength());
|
|
33854
|
+
return length == null ? getBodyLength(body) : length;
|
|
33855
|
+
};
|
|
33856
|
+
return async (config2) => {
|
|
33857
|
+
let {
|
|
33858
|
+
url,
|
|
33859
|
+
method,
|
|
33860
|
+
data: data49,
|
|
33861
|
+
signal,
|
|
33862
|
+
cancelToken,
|
|
33863
|
+
timeout,
|
|
33864
|
+
onDownloadProgress,
|
|
33865
|
+
onUploadProgress,
|
|
33866
|
+
responseType,
|
|
33867
|
+
headers,
|
|
33868
|
+
withCredentials = "same-origin",
|
|
33869
|
+
fetchOptions
|
|
33870
|
+
} = resolveConfig(config2);
|
|
33871
|
+
let _fetch = envFetch || fetch;
|
|
33872
|
+
responseType = responseType ? (responseType + "").toLowerCase() : "text";
|
|
33873
|
+
let composedSignal = composeSignals$1(
|
|
33874
|
+
[signal, cancelToken && cancelToken.toAbortSignal()],
|
|
33875
|
+
timeout
|
|
33876
|
+
);
|
|
33877
|
+
let request = null;
|
|
33878
|
+
const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
|
|
33879
|
+
composedSignal.unsubscribe();
|
|
33880
|
+
});
|
|
33881
|
+
let requestContentLength;
|
|
33882
|
+
try {
|
|
33883
|
+
if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = await resolveBodyLength(headers, data49)) !== 0) {
|
|
33884
|
+
let _request = new Request(url, {
|
|
33885
|
+
method: "POST",
|
|
33886
|
+
body: data49,
|
|
33887
|
+
duplex: "half"
|
|
33888
|
+
});
|
|
33889
|
+
let contentTypeHeader;
|
|
33890
|
+
if (utils$1.isFormData(data49) && (contentTypeHeader = _request.headers.get("content-type"))) {
|
|
33891
|
+
headers.setContentType(contentTypeHeader);
|
|
33892
|
+
}
|
|
33893
|
+
if (_request.body) {
|
|
33894
|
+
const [onProgress, flush] = progressEventDecorator(
|
|
33895
|
+
requestContentLength,
|
|
33896
|
+
progressEventReducer(asyncDecorator(onUploadProgress))
|
|
33897
|
+
);
|
|
33898
|
+
data49 = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
|
|
33899
|
+
}
|
|
33900
|
+
}
|
|
33901
|
+
if (!utils$1.isString(withCredentials)) {
|
|
33902
|
+
withCredentials = withCredentials ? "include" : "omit";
|
|
33903
|
+
}
|
|
33904
|
+
const isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
|
|
33905
|
+
const resolvedOptions = {
|
|
33906
|
+
...fetchOptions,
|
|
33907
|
+
signal: composedSignal,
|
|
33908
|
+
method: method.toUpperCase(),
|
|
33909
|
+
headers: headers.normalize().toJSON(),
|
|
33910
|
+
body: data49,
|
|
33911
|
+
duplex: "half",
|
|
33912
|
+
credentials: isCredentialsSupported ? withCredentials : void 0
|
|
33913
|
+
};
|
|
33914
|
+
request = isRequestSupported && new Request(url, resolvedOptions);
|
|
33915
|
+
let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url, resolvedOptions));
|
|
33916
|
+
const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
|
|
33917
|
+
if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
|
|
33918
|
+
const options = {};
|
|
33919
|
+
["status", "statusText", "headers"].forEach((prop) => {
|
|
33920
|
+
options[prop] = response[prop];
|
|
33921
|
+
});
|
|
33922
|
+
const responseContentLength = utils$1.toFiniteNumber(response.headers.get("content-length"));
|
|
33923
|
+
const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
|
|
33924
|
+
responseContentLength,
|
|
33925
|
+
progressEventReducer(asyncDecorator(onDownloadProgress), true)
|
|
33926
|
+
) || [];
|
|
33927
|
+
response = new Response(
|
|
33928
|
+
trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
|
|
33929
|
+
flush && flush();
|
|
33930
|
+
unsubscribe && unsubscribe();
|
|
33931
|
+
}),
|
|
33932
|
+
options
|
|
33933
|
+
);
|
|
33934
|
+
}
|
|
33935
|
+
responseType = responseType || "text";
|
|
33936
|
+
let responseData = await resolvers[utils$1.findKey(resolvers, responseType) || "text"](
|
|
33937
|
+
response,
|
|
33938
|
+
config2
|
|
33939
|
+
);
|
|
33940
|
+
!isStreamResponse && unsubscribe && unsubscribe();
|
|
33941
|
+
return await new Promise((resolve, reject) => {
|
|
33942
|
+
settle(resolve, reject, {
|
|
33943
|
+
data: responseData,
|
|
33944
|
+
headers: AxiosHeaders$1.from(response.headers),
|
|
33945
|
+
status: response.status,
|
|
33946
|
+
statusText: response.statusText,
|
|
33947
|
+
config: config2,
|
|
33948
|
+
request
|
|
33949
|
+
});
|
|
33950
|
+
});
|
|
33951
|
+
} catch (err) {
|
|
33952
|
+
unsubscribe && unsubscribe();
|
|
33953
|
+
if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
|
|
33954
|
+
throw Object.assign(
|
|
33955
|
+
new AxiosError$1(
|
|
33956
|
+
"Network Error",
|
|
33957
|
+
AxiosError$1.ERR_NETWORK,
|
|
33958
|
+
config2,
|
|
33959
|
+
request,
|
|
33960
|
+
err && err.response
|
|
33961
|
+
),
|
|
33962
|
+
{
|
|
33963
|
+
cause: err.cause || err
|
|
33964
|
+
}
|
|
33965
|
+
);
|
|
33966
|
+
}
|
|
33967
|
+
throw AxiosError$1.from(err, err && err.code, config2, request, err && err.response);
|
|
33968
|
+
}
|
|
33969
|
+
};
|
|
32751
33970
|
};
|
|
32752
|
-
const
|
|
32753
|
-
const
|
|
32754
|
-
|
|
32755
|
-
const
|
|
32756
|
-
const
|
|
32757
|
-
|
|
32758
|
-
|
|
32759
|
-
|
|
32760
|
-
|
|
32761
|
-
|
|
32762
|
-
|
|
32763
|
-
|
|
32764
|
-
|
|
32765
|
-
fix: "eslint --fix lib/**/*.js"
|
|
32766
|
-
};
|
|
32767
|
-
const repository = {
|
|
32768
|
-
type: "git",
|
|
32769
|
-
url: "https://github.com/axios/axios.git"
|
|
32770
|
-
};
|
|
32771
|
-
const keywords = [
|
|
32772
|
-
"xhr",
|
|
32773
|
-
"http",
|
|
32774
|
-
"ajax",
|
|
32775
|
-
"promise",
|
|
32776
|
-
"node"
|
|
32777
|
-
];
|
|
32778
|
-
const author = "Matt Zabriskie";
|
|
32779
|
-
const license = "MIT";
|
|
32780
|
-
const bugs = {
|
|
32781
|
-
url: "https://github.com/axios/axios/issues"
|
|
33971
|
+
const seedCache = /* @__PURE__ */ new Map();
|
|
33972
|
+
const getFetch = (config2) => {
|
|
33973
|
+
let env = config2 && config2.env || {};
|
|
33974
|
+
const { fetch: fetch2, Request, Response } = env;
|
|
33975
|
+
const seeds = [Request, Response, fetch2];
|
|
33976
|
+
let len = seeds.length, i = len, seed, target2, map = seedCache;
|
|
33977
|
+
while (i--) {
|
|
33978
|
+
seed = seeds[i];
|
|
33979
|
+
target2 = map.get(seed);
|
|
33980
|
+
target2 === void 0 && map.set(seed, target2 = i ? /* @__PURE__ */ new Map() : factory(env));
|
|
33981
|
+
map = target2;
|
|
33982
|
+
}
|
|
33983
|
+
return target2;
|
|
32782
33984
|
};
|
|
32783
|
-
|
|
32784
|
-
const
|
|
32785
|
-
|
|
32786
|
-
|
|
32787
|
-
|
|
32788
|
-
|
|
32789
|
-
|
|
32790
|
-
"grunt-contrib-clean": "^1.1.0",
|
|
32791
|
-
"grunt-contrib-watch": "^1.0.0",
|
|
32792
|
-
"grunt-eslint": "^23.0.0",
|
|
32793
|
-
"grunt-karma": "^4.0.0",
|
|
32794
|
-
"grunt-mocha-test": "^0.13.3",
|
|
32795
|
-
"grunt-ts": "^6.0.0-beta.19",
|
|
32796
|
-
"grunt-webpack": "^4.0.2",
|
|
32797
|
-
"istanbul-instrumenter-loader": "^1.0.0",
|
|
32798
|
-
"jasmine-core": "^2.4.1",
|
|
32799
|
-
karma: "^6.3.2",
|
|
32800
|
-
"karma-chrome-launcher": "^3.1.0",
|
|
32801
|
-
"karma-firefox-launcher": "^2.1.0",
|
|
32802
|
-
"karma-jasmine": "^1.1.1",
|
|
32803
|
-
"karma-jasmine-ajax": "^0.1.13",
|
|
32804
|
-
"karma-safari-launcher": "^1.0.0",
|
|
32805
|
-
"karma-sauce-launcher": "^4.3.6",
|
|
32806
|
-
"karma-sinon": "^1.0.5",
|
|
32807
|
-
"karma-sourcemap-loader": "^0.3.8",
|
|
32808
|
-
"karma-webpack": "^4.0.2",
|
|
32809
|
-
"load-grunt-tasks": "^3.5.2",
|
|
32810
|
-
minimist: "^1.2.0",
|
|
32811
|
-
mocha: "^8.2.1",
|
|
32812
|
-
sinon: "^4.5.0",
|
|
32813
|
-
"terser-webpack-plugin": "^4.2.3",
|
|
32814
|
-
typescript: "^4.0.5",
|
|
32815
|
-
"url-search-params": "^0.10.0",
|
|
32816
|
-
webpack: "^4.44.2",
|
|
32817
|
-
"webpack-dev-server": "^3.11.0"
|
|
32818
|
-
};
|
|
32819
|
-
const browser = {
|
|
32820
|
-
"./lib/adapters/http.js": "./lib/adapters/xhr.js"
|
|
32821
|
-
};
|
|
32822
|
-
const jsdelivr = "dist/axios.min.js";
|
|
32823
|
-
const unpkg = "dist/axios.min.js";
|
|
32824
|
-
const typings = "./index.d.ts";
|
|
32825
|
-
const dependencies = {
|
|
32826
|
-
"follow-redirects": "^1.14.0"
|
|
33985
|
+
getFetch();
|
|
33986
|
+
const knownAdapters = {
|
|
33987
|
+
http: httpAdapter,
|
|
33988
|
+
xhr: xhrAdapter,
|
|
33989
|
+
fetch: {
|
|
33990
|
+
get: getFetch
|
|
33991
|
+
}
|
|
32827
33992
|
};
|
|
32828
|
-
|
|
32829
|
-
{
|
|
32830
|
-
|
|
32831
|
-
|
|
33993
|
+
utils$1.forEach(knownAdapters, (fn2, value17) => {
|
|
33994
|
+
if (fn2) {
|
|
33995
|
+
try {
|
|
33996
|
+
Object.defineProperty(fn2, "name", { value: value17 });
|
|
33997
|
+
} catch (e) {
|
|
33998
|
+
}
|
|
33999
|
+
Object.defineProperty(fn2, "adapterName", { value: value17 });
|
|
32832
34000
|
}
|
|
32833
|
-
|
|
32834
|
-
|
|
32835
|
-
|
|
32836
|
-
|
|
32837
|
-
|
|
32838
|
-
|
|
32839
|
-
|
|
32840
|
-
|
|
32841
|
-
|
|
32842
|
-
|
|
32843
|
-
|
|
32844
|
-
|
|
32845
|
-
|
|
32846
|
-
|
|
32847
|
-
|
|
32848
|
-
|
|
32849
|
-
|
|
32850
|
-
|
|
32851
|
-
|
|
32852
|
-
|
|
34001
|
+
});
|
|
34002
|
+
const renderReason = (reason) => `- ${reason}`;
|
|
34003
|
+
const isResolvedHandle = (adapter) => utils$1.isFunction(adapter) || adapter === null || adapter === false;
|
|
34004
|
+
function getAdapter(adapters2, config2) {
|
|
34005
|
+
adapters2 = utils$1.isArray(adapters2) ? adapters2 : [adapters2];
|
|
34006
|
+
const { length } = adapters2;
|
|
34007
|
+
let nameOrAdapter;
|
|
34008
|
+
let adapter;
|
|
34009
|
+
const rejectedReasons = {};
|
|
34010
|
+
for (let i = 0; i < length; i++) {
|
|
34011
|
+
nameOrAdapter = adapters2[i];
|
|
34012
|
+
let id;
|
|
34013
|
+
adapter = nameOrAdapter;
|
|
34014
|
+
if (!isResolvedHandle(nameOrAdapter)) {
|
|
34015
|
+
adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
|
|
34016
|
+
if (adapter === void 0) {
|
|
34017
|
+
throw new AxiosError$1(`Unknown adapter '${id}'`);
|
|
34018
|
+
}
|
|
34019
|
+
}
|
|
34020
|
+
if (adapter && (utils$1.isFunction(adapter) || (adapter = adapter.get(config2)))) {
|
|
34021
|
+
break;
|
|
34022
|
+
}
|
|
34023
|
+
rejectedReasons[id || "#" + i] = adapter;
|
|
34024
|
+
}
|
|
34025
|
+
if (!adapter) {
|
|
34026
|
+
const reasons = Object.entries(rejectedReasons).map(
|
|
34027
|
+
([id, state]) => `adapter ${id} ` + (state === false ? "is not supported by the environment" : "is not available in the build")
|
|
34028
|
+
);
|
|
34029
|
+
let s = length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified";
|
|
34030
|
+
throw new AxiosError$1(
|
|
34031
|
+
`There is no suitable adapter to dispatch the request ` + s,
|
|
34032
|
+
"ERR_NOT_SUPPORT"
|
|
34033
|
+
);
|
|
34034
|
+
}
|
|
34035
|
+
return adapter;
|
|
34036
|
+
}
|
|
34037
|
+
var adapters = {
|
|
34038
|
+
getAdapter,
|
|
34039
|
+
adapters: knownAdapters
|
|
32853
34040
|
};
|
|
32854
|
-
|
|
32855
|
-
|
|
32856
|
-
|
|
34041
|
+
function throwIfCancellationRequested(config2) {
|
|
34042
|
+
if (config2.cancelToken) {
|
|
34043
|
+
config2.cancelToken.throwIfRequested();
|
|
34044
|
+
}
|
|
34045
|
+
if (config2.signal && config2.signal.aborted) {
|
|
34046
|
+
throw new CanceledError$1(null, config2);
|
|
34047
|
+
}
|
|
34048
|
+
}
|
|
34049
|
+
function dispatchRequest(config2) {
|
|
34050
|
+
throwIfCancellationRequested(config2);
|
|
34051
|
+
config2.headers = AxiosHeaders$1.from(config2.headers);
|
|
34052
|
+
config2.data = transformData.call(config2, config2.transformRequest);
|
|
34053
|
+
if (["post", "put", "patch"].indexOf(config2.method) !== -1) {
|
|
34054
|
+
config2.headers.setContentType("application/x-www-form-urlencoded", false);
|
|
34055
|
+
}
|
|
34056
|
+
const adapter = adapters.getAdapter(config2.adapter || defaults$1.adapter, config2);
|
|
34057
|
+
return adapter(config2).then(
|
|
34058
|
+
function onAdapterResolution(response) {
|
|
34059
|
+
throwIfCancellationRequested(config2);
|
|
34060
|
+
response.data = transformData.call(config2, config2.transformResponse, response);
|
|
34061
|
+
response.headers = AxiosHeaders$1.from(response.headers);
|
|
34062
|
+
return response;
|
|
34063
|
+
},
|
|
34064
|
+
function onAdapterRejection(reason) {
|
|
34065
|
+
if (!isCancel(reason)) {
|
|
34066
|
+
throwIfCancellationRequested(config2);
|
|
34067
|
+
if (reason && reason.response) {
|
|
34068
|
+
reason.response.data = transformData.call(
|
|
34069
|
+
config2,
|
|
34070
|
+
config2.transformResponse,
|
|
34071
|
+
reason.response
|
|
34072
|
+
);
|
|
34073
|
+
reason.response.headers = AxiosHeaders$1.from(reason.response.headers);
|
|
34074
|
+
}
|
|
34075
|
+
}
|
|
34076
|
+
return Promise.reject(reason);
|
|
34077
|
+
}
|
|
34078
|
+
);
|
|
34079
|
+
}
|
|
34080
|
+
const VERSION = "1.13.6";
|
|
34081
|
+
const validators$1 = {};
|
|
34082
|
+
["object", "boolean", "number", "function", "string", "symbol"].forEach((type2, i) => {
|
|
32857
34083
|
validators$1[type2] = function validator4(thing) {
|
|
32858
34084
|
return typeof thing === type2 || "a" + (i < 1 ? "n " : " ") + type2;
|
|
32859
34085
|
};
|
|
32860
34086
|
});
|
|
32861
|
-
|
|
32862
|
-
var currentVerArr = pkg.version.split(".");
|
|
32863
|
-
function isOlderVersion(version2, thanVersion) {
|
|
32864
|
-
var pkgVersionArr = thanVersion ? thanVersion.split(".") : currentVerArr;
|
|
32865
|
-
var destVer = version2.split(".");
|
|
32866
|
-
for (var i = 0; i < 3; i++) {
|
|
32867
|
-
if (pkgVersionArr[i] > destVer[i]) {
|
|
32868
|
-
return true;
|
|
32869
|
-
} else if (pkgVersionArr[i] < destVer[i]) {
|
|
32870
|
-
return false;
|
|
32871
|
-
}
|
|
32872
|
-
}
|
|
32873
|
-
return false;
|
|
32874
|
-
}
|
|
34087
|
+
const deprecatedWarnings = {};
|
|
32875
34088
|
validators$1.transitional = function transitional(validator4, version2, message) {
|
|
32876
|
-
var isDeprecated = version2 && isOlderVersion(version2);
|
|
32877
34089
|
function formatMessage(opt, desc) {
|
|
32878
|
-
return "[Axios v" +
|
|
34090
|
+
return "[Axios v" + VERSION + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : "");
|
|
32879
34091
|
}
|
|
32880
|
-
return
|
|
34092
|
+
return (value17, opt, opts) => {
|
|
32881
34093
|
if (validator4 === false) {
|
|
32882
|
-
throw new
|
|
34094
|
+
throw new AxiosError$1(
|
|
34095
|
+
formatMessage(opt, " has been removed" + (version2 ? " in " + version2 : "")),
|
|
34096
|
+
AxiosError$1.ERR_DEPRECATED
|
|
34097
|
+
);
|
|
32883
34098
|
}
|
|
32884
|
-
if (
|
|
34099
|
+
if (version2 && !deprecatedWarnings[opt]) {
|
|
32885
34100
|
deprecatedWarnings[opt] = true;
|
|
32886
34101
|
console.warn(
|
|
32887
34102
|
formatMessage(
|
|
@@ -32893,216 +34108,419 @@ validators$1.transitional = function transitional(validator4, version2, message)
|
|
|
32893
34108
|
return validator4 ? validator4(value17, opt, opts) : true;
|
|
32894
34109
|
};
|
|
32895
34110
|
};
|
|
34111
|
+
validators$1.spelling = function spelling(correctSpelling) {
|
|
34112
|
+
return (value17, opt) => {
|
|
34113
|
+
console.warn(`${opt} is likely a misspelling of ${correctSpelling}`);
|
|
34114
|
+
return true;
|
|
34115
|
+
};
|
|
34116
|
+
};
|
|
32896
34117
|
function assertOptions(options, schema, allowUnknown) {
|
|
32897
34118
|
if (typeof options !== "object") {
|
|
32898
|
-
throw new
|
|
34119
|
+
throw new AxiosError$1("options must be an object", AxiosError$1.ERR_BAD_OPTION_VALUE);
|
|
32899
34120
|
}
|
|
32900
|
-
|
|
32901
|
-
|
|
34121
|
+
const keys2 = Object.keys(options);
|
|
34122
|
+
let i = keys2.length;
|
|
32902
34123
|
while (i-- > 0) {
|
|
32903
|
-
|
|
32904
|
-
|
|
34124
|
+
const opt = keys2[i];
|
|
34125
|
+
const validator4 = schema[opt];
|
|
32905
34126
|
if (validator4) {
|
|
32906
|
-
|
|
32907
|
-
|
|
34127
|
+
const value17 = options[opt];
|
|
34128
|
+
const result = value17 === void 0 || validator4(value17, opt, options);
|
|
32908
34129
|
if (result !== true) {
|
|
32909
|
-
throw new
|
|
34130
|
+
throw new AxiosError$1(
|
|
34131
|
+
"option " + opt + " must be " + result,
|
|
34132
|
+
AxiosError$1.ERR_BAD_OPTION_VALUE
|
|
34133
|
+
);
|
|
32910
34134
|
}
|
|
32911
34135
|
continue;
|
|
32912
34136
|
}
|
|
32913
34137
|
if (allowUnknown !== true) {
|
|
32914
|
-
throw
|
|
34138
|
+
throw new AxiosError$1("Unknown option " + opt, AxiosError$1.ERR_BAD_OPTION);
|
|
32915
34139
|
}
|
|
32916
34140
|
}
|
|
32917
34141
|
}
|
|
32918
|
-
var
|
|
32919
|
-
isOlderVersion,
|
|
34142
|
+
var validator3 = {
|
|
32920
34143
|
assertOptions,
|
|
32921
34144
|
validators: validators$1
|
|
32922
34145
|
};
|
|
32923
|
-
|
|
32924
|
-
|
|
32925
|
-
|
|
32926
|
-
|
|
32927
|
-
|
|
32928
|
-
|
|
32929
|
-
|
|
32930
|
-
|
|
32931
|
-
this.defaults = instanceConfig;
|
|
32932
|
-
this.interceptors = {
|
|
32933
|
-
request: new InterceptorManager(),
|
|
32934
|
-
response: new InterceptorManager()
|
|
32935
|
-
};
|
|
32936
|
-
}
|
|
32937
|
-
Axios$1.prototype.request = function request(config2) {
|
|
32938
|
-
if (typeof config2 === "string") {
|
|
32939
|
-
config2 = arguments[1] || {};
|
|
32940
|
-
config2.url = arguments[0];
|
|
32941
|
-
} else {
|
|
32942
|
-
config2 = config2 || {};
|
|
34146
|
+
const validators = validator3.validators;
|
|
34147
|
+
class Axios {
|
|
34148
|
+
constructor(instanceConfig) {
|
|
34149
|
+
this.defaults = instanceConfig || {};
|
|
34150
|
+
this.interceptors = {
|
|
34151
|
+
request: new InterceptorManager$1(),
|
|
34152
|
+
response: new InterceptorManager$1()
|
|
34153
|
+
};
|
|
32943
34154
|
}
|
|
32944
|
-
|
|
32945
|
-
|
|
32946
|
-
|
|
32947
|
-
|
|
32948
|
-
|
|
32949
|
-
|
|
32950
|
-
|
|
32951
|
-
|
|
32952
|
-
|
|
32953
|
-
|
|
32954
|
-
|
|
32955
|
-
|
|
32956
|
-
|
|
32957
|
-
|
|
32958
|
-
|
|
32959
|
-
|
|
32960
|
-
|
|
32961
|
-
|
|
32962
|
-
this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
|
|
32963
|
-
if (typeof interceptor.runWhen === "function" && interceptor.runWhen(config2) === false) {
|
|
32964
|
-
return;
|
|
32965
|
-
}
|
|
32966
|
-
synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
|
|
32967
|
-
requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
|
|
32968
|
-
});
|
|
32969
|
-
var responseInterceptorChain = [];
|
|
32970
|
-
this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
|
|
32971
|
-
responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
|
|
32972
|
-
});
|
|
32973
|
-
var promise;
|
|
32974
|
-
if (!synchronousRequestInterceptors) {
|
|
32975
|
-
var chain = [dispatchRequest2, void 0];
|
|
32976
|
-
Array.prototype.unshift.apply(chain, requestInterceptorChain);
|
|
32977
|
-
chain = chain.concat(responseInterceptorChain);
|
|
32978
|
-
promise = Promise.resolve(config2);
|
|
32979
|
-
while (chain.length) {
|
|
32980
|
-
promise = promise.then(chain.shift(), chain.shift());
|
|
34155
|
+
async request(configOrUrl, config2) {
|
|
34156
|
+
try {
|
|
34157
|
+
return await this._request(configOrUrl, config2);
|
|
34158
|
+
} catch (err) {
|
|
34159
|
+
if (err instanceof Error) {
|
|
34160
|
+
let dummy = {};
|
|
34161
|
+
Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error();
|
|
34162
|
+
const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, "") : "";
|
|
34163
|
+
try {
|
|
34164
|
+
if (!err.stack) {
|
|
34165
|
+
err.stack = stack;
|
|
34166
|
+
} else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ""))) {
|
|
34167
|
+
err.stack += "\n" + stack;
|
|
34168
|
+
}
|
|
34169
|
+
} catch (e) {
|
|
34170
|
+
}
|
|
34171
|
+
}
|
|
34172
|
+
throw err;
|
|
32981
34173
|
}
|
|
32982
|
-
return promise;
|
|
32983
34174
|
}
|
|
32984
|
-
|
|
32985
|
-
|
|
32986
|
-
|
|
32987
|
-
|
|
34175
|
+
_request(configOrUrl, config2) {
|
|
34176
|
+
if (typeof configOrUrl === "string") {
|
|
34177
|
+
config2 = config2 || {};
|
|
34178
|
+
config2.url = configOrUrl;
|
|
34179
|
+
} else {
|
|
34180
|
+
config2 = configOrUrl || {};
|
|
34181
|
+
}
|
|
34182
|
+
config2 = mergeConfig(this.defaults, config2);
|
|
34183
|
+
const { transitional: transitional2, paramsSerializer, headers } = config2;
|
|
34184
|
+
if (transitional2 !== void 0) {
|
|
34185
|
+
validator3.assertOptions(
|
|
34186
|
+
transitional2,
|
|
34187
|
+
{
|
|
34188
|
+
silentJSONParsing: validators.transitional(validators.boolean),
|
|
34189
|
+
forcedJSONParsing: validators.transitional(validators.boolean),
|
|
34190
|
+
clarifyTimeoutError: validators.transitional(validators.boolean),
|
|
34191
|
+
legacyInterceptorReqResOrdering: validators.transitional(validators.boolean)
|
|
34192
|
+
},
|
|
34193
|
+
false
|
|
34194
|
+
);
|
|
34195
|
+
}
|
|
34196
|
+
if (paramsSerializer != null) {
|
|
34197
|
+
if (utils$1.isFunction(paramsSerializer)) {
|
|
34198
|
+
config2.paramsSerializer = {
|
|
34199
|
+
serialize: paramsSerializer
|
|
34200
|
+
};
|
|
34201
|
+
} else {
|
|
34202
|
+
validator3.assertOptions(
|
|
34203
|
+
paramsSerializer,
|
|
34204
|
+
{
|
|
34205
|
+
encode: validators.function,
|
|
34206
|
+
serialize: validators.function
|
|
34207
|
+
},
|
|
34208
|
+
true
|
|
34209
|
+
);
|
|
34210
|
+
}
|
|
34211
|
+
}
|
|
34212
|
+
if (config2.allowAbsoluteUrls !== void 0)
|
|
34213
|
+
;
|
|
34214
|
+
else if (this.defaults.allowAbsoluteUrls !== void 0) {
|
|
34215
|
+
config2.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
|
|
34216
|
+
} else {
|
|
34217
|
+
config2.allowAbsoluteUrls = true;
|
|
34218
|
+
}
|
|
34219
|
+
validator3.assertOptions(
|
|
34220
|
+
config2,
|
|
34221
|
+
{
|
|
34222
|
+
baseUrl: validators.spelling("baseURL"),
|
|
34223
|
+
withXsrfToken: validators.spelling("withXSRFToken")
|
|
34224
|
+
},
|
|
34225
|
+
true
|
|
34226
|
+
);
|
|
34227
|
+
config2.method = (config2.method || this.defaults.method || "get").toLowerCase();
|
|
34228
|
+
let contextHeaders = headers && utils$1.merge(headers.common, headers[config2.method]);
|
|
34229
|
+
headers && utils$1.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (method) => {
|
|
34230
|
+
delete headers[method];
|
|
34231
|
+
});
|
|
34232
|
+
config2.headers = AxiosHeaders$1.concat(contextHeaders, headers);
|
|
34233
|
+
const requestInterceptorChain = [];
|
|
34234
|
+
let synchronousRequestInterceptors = true;
|
|
34235
|
+
this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
|
|
34236
|
+
if (typeof interceptor.runWhen === "function" && interceptor.runWhen(config2) === false) {
|
|
34237
|
+
return;
|
|
34238
|
+
}
|
|
34239
|
+
synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
|
|
34240
|
+
const transitional3 = config2.transitional || transitionalDefaults;
|
|
34241
|
+
const legacyInterceptorReqResOrdering = transitional3 && transitional3.legacyInterceptorReqResOrdering;
|
|
34242
|
+
if (legacyInterceptorReqResOrdering) {
|
|
34243
|
+
requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
|
|
34244
|
+
} else {
|
|
34245
|
+
requestInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
|
|
34246
|
+
}
|
|
34247
|
+
});
|
|
34248
|
+
const responseInterceptorChain = [];
|
|
34249
|
+
this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
|
|
34250
|
+
responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
|
|
34251
|
+
});
|
|
34252
|
+
let promise;
|
|
34253
|
+
let i = 0;
|
|
34254
|
+
let len;
|
|
34255
|
+
if (!synchronousRequestInterceptors) {
|
|
34256
|
+
const chain = [dispatchRequest.bind(this), void 0];
|
|
34257
|
+
chain.unshift(...requestInterceptorChain);
|
|
34258
|
+
chain.push(...responseInterceptorChain);
|
|
34259
|
+
len = chain.length;
|
|
34260
|
+
promise = Promise.resolve(config2);
|
|
34261
|
+
while (i < len) {
|
|
34262
|
+
promise = promise.then(chain[i++], chain[i++]);
|
|
34263
|
+
}
|
|
34264
|
+
return promise;
|
|
34265
|
+
}
|
|
34266
|
+
len = requestInterceptorChain.length;
|
|
34267
|
+
let newConfig = config2;
|
|
34268
|
+
while (i < len) {
|
|
34269
|
+
const onFulfilled = requestInterceptorChain[i++];
|
|
34270
|
+
const onRejected = requestInterceptorChain[i++];
|
|
34271
|
+
try {
|
|
34272
|
+
newConfig = onFulfilled(newConfig);
|
|
34273
|
+
} catch (error) {
|
|
34274
|
+
onRejected.call(this, error);
|
|
34275
|
+
break;
|
|
34276
|
+
}
|
|
34277
|
+
}
|
|
32988
34278
|
try {
|
|
32989
|
-
|
|
34279
|
+
promise = dispatchRequest.call(this, newConfig);
|
|
32990
34280
|
} catch (error) {
|
|
32991
|
-
|
|
32992
|
-
break;
|
|
34281
|
+
return Promise.reject(error);
|
|
32993
34282
|
}
|
|
34283
|
+
i = 0;
|
|
34284
|
+
len = responseInterceptorChain.length;
|
|
34285
|
+
while (i < len) {
|
|
34286
|
+
promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);
|
|
34287
|
+
}
|
|
34288
|
+
return promise;
|
|
32994
34289
|
}
|
|
32995
|
-
|
|
32996
|
-
|
|
32997
|
-
|
|
32998
|
-
return
|
|
32999
|
-
}
|
|
33000
|
-
while (responseInterceptorChain.length) {
|
|
33001
|
-
promise = promise.then(responseInterceptorChain.shift(), responseInterceptorChain.shift());
|
|
34290
|
+
getUri(config2) {
|
|
34291
|
+
config2 = mergeConfig(this.defaults, config2);
|
|
34292
|
+
const fullPath = buildFullPath(config2.baseURL, config2.url, config2.allowAbsoluteUrls);
|
|
34293
|
+
return buildURL(fullPath, config2.params, config2.paramsSerializer);
|
|
33002
34294
|
}
|
|
33003
|
-
|
|
33004
|
-
|
|
33005
|
-
Axios
|
|
33006
|
-
|
|
33007
|
-
|
|
33008
|
-
|
|
33009
|
-
|
|
33010
|
-
|
|
33011
|
-
|
|
33012
|
-
|
|
33013
|
-
url,
|
|
33014
|
-
data: (config2 || {}).data
|
|
33015
|
-
}));
|
|
34295
|
+
}
|
|
34296
|
+
utils$1.forEach(["delete", "get", "head", "options"], function forEachMethodNoData(method) {
|
|
34297
|
+
Axios.prototype[method] = function(url, config2) {
|
|
34298
|
+
return this.request(
|
|
34299
|
+
mergeConfig(config2 || {}, {
|
|
34300
|
+
method,
|
|
34301
|
+
url,
|
|
34302
|
+
data: (config2 || {}).data
|
|
34303
|
+
})
|
|
34304
|
+
);
|
|
33016
34305
|
};
|
|
33017
34306
|
});
|
|
33018
|
-
utils$1.forEach(["post", "put", "patch"], function
|
|
33019
|
-
|
|
33020
|
-
return
|
|
33021
|
-
|
|
33022
|
-
|
|
33023
|
-
|
|
33024
|
-
|
|
33025
|
-
|
|
34307
|
+
utils$1.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
|
|
34308
|
+
function generateHTTPMethod(isForm) {
|
|
34309
|
+
return function httpMethod(url, data49, config2) {
|
|
34310
|
+
return this.request(
|
|
34311
|
+
mergeConfig(config2 || {}, {
|
|
34312
|
+
method,
|
|
34313
|
+
headers: isForm ? {
|
|
34314
|
+
"Content-Type": "multipart/form-data"
|
|
34315
|
+
} : {},
|
|
34316
|
+
url,
|
|
34317
|
+
data: data49
|
|
34318
|
+
})
|
|
34319
|
+
);
|
|
34320
|
+
};
|
|
34321
|
+
}
|
|
34322
|
+
Axios.prototype[method] = generateHTTPMethod();
|
|
34323
|
+
Axios.prototype[method + "Form"] = generateHTTPMethod(true);
|
|
33026
34324
|
});
|
|
33027
|
-
var
|
|
33028
|
-
|
|
33029
|
-
|
|
33030
|
-
|
|
33031
|
-
|
|
33032
|
-
|
|
33033
|
-
|
|
33034
|
-
|
|
33035
|
-
|
|
33036
|
-
|
|
33037
|
-
|
|
33038
|
-
|
|
33039
|
-
|
|
33040
|
-
|
|
33041
|
-
|
|
33042
|
-
|
|
33043
|
-
|
|
33044
|
-
|
|
33045
|
-
|
|
33046
|
-
|
|
33047
|
-
|
|
34325
|
+
var Axios$1 = Axios;
|
|
34326
|
+
class CancelToken {
|
|
34327
|
+
constructor(executor) {
|
|
34328
|
+
if (typeof executor !== "function") {
|
|
34329
|
+
throw new TypeError("executor must be a function.");
|
|
34330
|
+
}
|
|
34331
|
+
let resolvePromise;
|
|
34332
|
+
this.promise = new Promise(function promiseExecutor(resolve) {
|
|
34333
|
+
resolvePromise = resolve;
|
|
34334
|
+
});
|
|
34335
|
+
const token = this;
|
|
34336
|
+
this.promise.then((cancel2) => {
|
|
34337
|
+
if (!token._listeners)
|
|
34338
|
+
return;
|
|
34339
|
+
let i = token._listeners.length;
|
|
34340
|
+
while (i-- > 0) {
|
|
34341
|
+
token._listeners[i](cancel2);
|
|
34342
|
+
}
|
|
34343
|
+
token._listeners = null;
|
|
34344
|
+
});
|
|
34345
|
+
this.promise.then = (onfulfilled) => {
|
|
34346
|
+
let _resolve;
|
|
34347
|
+
const promise = new Promise((resolve) => {
|
|
34348
|
+
token.subscribe(resolve);
|
|
34349
|
+
_resolve = resolve;
|
|
34350
|
+
}).then(onfulfilled);
|
|
34351
|
+
promise.cancel = function reject() {
|
|
34352
|
+
token.unsubscribe(_resolve);
|
|
34353
|
+
};
|
|
34354
|
+
return promise;
|
|
34355
|
+
};
|
|
34356
|
+
executor(function cancel2(message, config2, request) {
|
|
34357
|
+
if (token.reason) {
|
|
34358
|
+
return;
|
|
34359
|
+
}
|
|
34360
|
+
token.reason = new CanceledError$1(message, config2, request);
|
|
34361
|
+
resolvePromise(token.reason);
|
|
34362
|
+
});
|
|
34363
|
+
}
|
|
34364
|
+
throwIfRequested() {
|
|
34365
|
+
if (this.reason) {
|
|
34366
|
+
throw this.reason;
|
|
34367
|
+
}
|
|
34368
|
+
}
|
|
34369
|
+
subscribe(listener) {
|
|
34370
|
+
if (this.reason) {
|
|
34371
|
+
listener(this.reason);
|
|
33048
34372
|
return;
|
|
33049
34373
|
}
|
|
33050
|
-
|
|
33051
|
-
|
|
33052
|
-
|
|
33053
|
-
|
|
33054
|
-
|
|
33055
|
-
if (this.reason) {
|
|
33056
|
-
throw this.reason;
|
|
34374
|
+
if (this._listeners) {
|
|
34375
|
+
this._listeners.push(listener);
|
|
34376
|
+
} else {
|
|
34377
|
+
this._listeners = [listener];
|
|
34378
|
+
}
|
|
33057
34379
|
}
|
|
33058
|
-
|
|
33059
|
-
|
|
33060
|
-
|
|
33061
|
-
|
|
33062
|
-
|
|
33063
|
-
|
|
33064
|
-
|
|
33065
|
-
|
|
33066
|
-
|
|
33067
|
-
|
|
33068
|
-
|
|
33069
|
-
|
|
33070
|
-
|
|
34380
|
+
unsubscribe(listener) {
|
|
34381
|
+
if (!this._listeners) {
|
|
34382
|
+
return;
|
|
34383
|
+
}
|
|
34384
|
+
const index2 = this._listeners.indexOf(listener);
|
|
34385
|
+
if (index2 !== -1) {
|
|
34386
|
+
this._listeners.splice(index2, 1);
|
|
34387
|
+
}
|
|
34388
|
+
}
|
|
34389
|
+
toAbortSignal() {
|
|
34390
|
+
const controller = new AbortController();
|
|
34391
|
+
const abort = (err) => {
|
|
34392
|
+
controller.abort(err);
|
|
34393
|
+
};
|
|
34394
|
+
this.subscribe(abort);
|
|
34395
|
+
controller.signal.unsubscribe = () => this.unsubscribe(abort);
|
|
34396
|
+
return controller.signal;
|
|
34397
|
+
}
|
|
34398
|
+
static source() {
|
|
34399
|
+
let cancel2;
|
|
34400
|
+
const token = new CancelToken(function executor(c) {
|
|
34401
|
+
cancel2 = c;
|
|
34402
|
+
});
|
|
34403
|
+
return {
|
|
34404
|
+
token,
|
|
34405
|
+
cancel: cancel2
|
|
34406
|
+
};
|
|
34407
|
+
}
|
|
34408
|
+
}
|
|
34409
|
+
var CancelToken$1 = CancelToken;
|
|
34410
|
+
function spread(callback2) {
|
|
33071
34411
|
return function wrap(arr) {
|
|
33072
34412
|
return callback2.apply(null, arr);
|
|
33073
34413
|
};
|
|
33074
|
-
}
|
|
33075
|
-
|
|
33076
|
-
return
|
|
33077
|
-
}
|
|
33078
|
-
|
|
33079
|
-
|
|
33080
|
-
|
|
33081
|
-
|
|
33082
|
-
|
|
34414
|
+
}
|
|
34415
|
+
function isAxiosError(payload) {
|
|
34416
|
+
return utils$1.isObject(payload) && payload.isAxiosError === true;
|
|
34417
|
+
}
|
|
34418
|
+
const HttpStatusCode = {
|
|
34419
|
+
Continue: 100,
|
|
34420
|
+
SwitchingProtocols: 101,
|
|
34421
|
+
Processing: 102,
|
|
34422
|
+
EarlyHints: 103,
|
|
34423
|
+
Ok: 200,
|
|
34424
|
+
Created: 201,
|
|
34425
|
+
Accepted: 202,
|
|
34426
|
+
NonAuthoritativeInformation: 203,
|
|
34427
|
+
NoContent: 204,
|
|
34428
|
+
ResetContent: 205,
|
|
34429
|
+
PartialContent: 206,
|
|
34430
|
+
MultiStatus: 207,
|
|
34431
|
+
AlreadyReported: 208,
|
|
34432
|
+
ImUsed: 226,
|
|
34433
|
+
MultipleChoices: 300,
|
|
34434
|
+
MovedPermanently: 301,
|
|
34435
|
+
Found: 302,
|
|
34436
|
+
SeeOther: 303,
|
|
34437
|
+
NotModified: 304,
|
|
34438
|
+
UseProxy: 305,
|
|
34439
|
+
Unused: 306,
|
|
34440
|
+
TemporaryRedirect: 307,
|
|
34441
|
+
PermanentRedirect: 308,
|
|
34442
|
+
BadRequest: 400,
|
|
34443
|
+
Unauthorized: 401,
|
|
34444
|
+
PaymentRequired: 402,
|
|
34445
|
+
Forbidden: 403,
|
|
34446
|
+
NotFound: 404,
|
|
34447
|
+
MethodNotAllowed: 405,
|
|
34448
|
+
NotAcceptable: 406,
|
|
34449
|
+
ProxyAuthenticationRequired: 407,
|
|
34450
|
+
RequestTimeout: 408,
|
|
34451
|
+
Conflict: 409,
|
|
34452
|
+
Gone: 410,
|
|
34453
|
+
LengthRequired: 411,
|
|
34454
|
+
PreconditionFailed: 412,
|
|
34455
|
+
PayloadTooLarge: 413,
|
|
34456
|
+
UriTooLong: 414,
|
|
34457
|
+
UnsupportedMediaType: 415,
|
|
34458
|
+
RangeNotSatisfiable: 416,
|
|
34459
|
+
ExpectationFailed: 417,
|
|
34460
|
+
ImATeapot: 418,
|
|
34461
|
+
MisdirectedRequest: 421,
|
|
34462
|
+
UnprocessableEntity: 422,
|
|
34463
|
+
Locked: 423,
|
|
34464
|
+
FailedDependency: 424,
|
|
34465
|
+
TooEarly: 425,
|
|
34466
|
+
UpgradeRequired: 426,
|
|
34467
|
+
PreconditionRequired: 428,
|
|
34468
|
+
TooManyRequests: 429,
|
|
34469
|
+
RequestHeaderFieldsTooLarge: 431,
|
|
34470
|
+
UnavailableForLegalReasons: 451,
|
|
34471
|
+
InternalServerError: 500,
|
|
34472
|
+
NotImplemented: 501,
|
|
34473
|
+
BadGateway: 502,
|
|
34474
|
+
ServiceUnavailable: 503,
|
|
34475
|
+
GatewayTimeout: 504,
|
|
34476
|
+
HttpVersionNotSupported: 505,
|
|
34477
|
+
VariantAlsoNegotiates: 506,
|
|
34478
|
+
InsufficientStorage: 507,
|
|
34479
|
+
LoopDetected: 508,
|
|
34480
|
+
NotExtended: 510,
|
|
34481
|
+
NetworkAuthenticationRequired: 511,
|
|
34482
|
+
WebServerIsDown: 521,
|
|
34483
|
+
ConnectionTimedOut: 522,
|
|
34484
|
+
OriginIsUnreachable: 523,
|
|
34485
|
+
TimeoutOccurred: 524,
|
|
34486
|
+
SslHandshakeFailed: 525,
|
|
34487
|
+
InvalidSslCertificate: 526
|
|
34488
|
+
};
|
|
34489
|
+
Object.entries(HttpStatusCode).forEach(([key, value17]) => {
|
|
34490
|
+
HttpStatusCode[value17] = key;
|
|
34491
|
+
});
|
|
34492
|
+
var HttpStatusCode$1 = HttpStatusCode;
|
|
33083
34493
|
function createInstance(defaultConfig2) {
|
|
33084
|
-
|
|
33085
|
-
|
|
33086
|
-
utils.extend(instance2, Axios.prototype, context2);
|
|
33087
|
-
utils.extend(instance2, context2);
|
|
34494
|
+
const context2 = new Axios$1(defaultConfig2);
|
|
34495
|
+
const instance2 = bind(Axios$1.prototype.request, context2);
|
|
34496
|
+
utils$1.extend(instance2, Axios$1.prototype, context2, { allOwnKeys: true });
|
|
34497
|
+
utils$1.extend(instance2, context2, null, { allOwnKeys: true });
|
|
34498
|
+
instance2.create = function create(instanceConfig) {
|
|
34499
|
+
return createInstance(mergeConfig(defaultConfig2, instanceConfig));
|
|
34500
|
+
};
|
|
33088
34501
|
return instance2;
|
|
33089
34502
|
}
|
|
33090
|
-
|
|
33091
|
-
axios
|
|
33092
|
-
axios
|
|
33093
|
-
|
|
33094
|
-
|
|
33095
|
-
axios
|
|
33096
|
-
axios
|
|
33097
|
-
axios
|
|
33098
|
-
axios
|
|
34503
|
+
const axios = createInstance(defaults$1);
|
|
34504
|
+
axios.Axios = Axios$1;
|
|
34505
|
+
axios.CanceledError = CanceledError$1;
|
|
34506
|
+
axios.CancelToken = CancelToken$1;
|
|
34507
|
+
axios.isCancel = isCancel;
|
|
34508
|
+
axios.VERSION = VERSION;
|
|
34509
|
+
axios.toFormData = toFormData;
|
|
34510
|
+
axios.AxiosError = AxiosError$1;
|
|
34511
|
+
axios.Cancel = axios.CanceledError;
|
|
34512
|
+
axios.all = function all(promises) {
|
|
33099
34513
|
return Promise.all(promises);
|
|
33100
34514
|
};
|
|
33101
|
-
axios
|
|
33102
|
-
axios
|
|
33103
|
-
axios
|
|
33104
|
-
axios
|
|
33105
|
-
|
|
34515
|
+
axios.spread = spread;
|
|
34516
|
+
axios.isAxiosError = isAxiosError;
|
|
34517
|
+
axios.mergeConfig = mergeConfig;
|
|
34518
|
+
axios.AxiosHeaders = AxiosHeaders$1;
|
|
34519
|
+
axios.formToJSON = (thing) => formDataToJSON(utils$1.isHTMLForm(thing) ? new FormData(thing) : thing);
|
|
34520
|
+
axios.getAdapter = adapters.getAdapter;
|
|
34521
|
+
axios.HttpStatusCode = HttpStatusCode$1;
|
|
34522
|
+
axios.default = axios;
|
|
34523
|
+
var axiosSrc = axios;
|
|
33106
34524
|
const isHb = location.pathname.includes("scyxweb");
|
|
33107
34525
|
const userAgent = navigator.userAgent.toLowerCase();
|
|
33108
34526
|
const isQywx = /wxwork/.test(userAgent) ? true : false;
|
|
@@ -33371,7 +34789,7 @@ const pluginLogin = (store2, router, targetRoute) => {
|
|
|
33371
34789
|
store2.commit("setToken", "");
|
|
33372
34790
|
if (isHb) {
|
|
33373
34791
|
let url = location.protocol + "//" + location.host + "/scyxgateway/ind-uc-ext-server/sso/hb/ssoHbWxLogin";
|
|
33374
|
-
axios$
|
|
34792
|
+
axios$1.get(url).then(async (resp) => {
|
|
33375
34793
|
setToken(resp.token);
|
|
33376
34794
|
localStorage.setItem("v8-token", resp.token);
|
|
33377
34795
|
sessionStorage.setItem("lambo-token", resp.token);
|
|
@@ -33401,7 +34819,7 @@ const pluginLogin = (store2, router, targetRoute) => {
|
|
|
33401
34819
|
} else {
|
|
33402
34820
|
console.log("1111`111");
|
|
33403
34821
|
if (code2) {
|
|
33404
|
-
axios$
|
|
34822
|
+
axios$1.get("/ind-uc-ext-server/sso/xtbg/auth/appLogin?code=" + code2).then(async (resp) => {
|
|
33405
34823
|
setToken(resp.token);
|
|
33406
34824
|
resolve({ token: resp.token });
|
|
33407
34825
|
}).catch((e) => {
|
|
@@ -33417,7 +34835,7 @@ const pluginLogin = (store2, router, targetRoute) => {
|
|
|
33417
34835
|
Code.postMessage("");
|
|
33418
34836
|
window.getCode = function(res) {
|
|
33419
34837
|
console.log("getCode res", res);
|
|
33420
|
-
axios$
|
|
34838
|
+
axios$1.get("/ind-uc-ext-server/sso/ssoAppLogin?code=" + res).then(async (resp) => {
|
|
33421
34839
|
setToken(resp.token);
|
|
33422
34840
|
resolve({ token: resp.token });
|
|
33423
34841
|
}).catch((e) => {
|
|
@@ -33469,7 +34887,7 @@ const checkLogin = async () => {
|
|
|
33469
34887
|
try {
|
|
33470
34888
|
let token = getToken();
|
|
33471
34889
|
console.log("checkLogin token", token);
|
|
33472
|
-
const resp = await
|
|
34890
|
+
const resp = await axiosSrc.get(`${config.authServerContext}/manage/user/getCurrentInfo`, {
|
|
33473
34891
|
params: {},
|
|
33474
34892
|
headers: {
|
|
33475
34893
|
token
|
|
@@ -33864,11 +35282,11 @@ const install = function(Vue2, opts = { theme: "" }) {
|
|
|
33864
35282
|
doChangeTheme(theme);
|
|
33865
35283
|
if (location.pathname.includes("scyxweb")) {
|
|
33866
35284
|
let url = location.protocol + "//" + location.host + "/hbwebchat/scyxweb/ind-mobile/manage/global?t=" + new Date().getTime();
|
|
33867
|
-
axios$
|
|
35285
|
+
axios$1.get(url).then((data49) => {
|
|
33868
35286
|
Vue2.prototype.$config = _.merge({}, Vue2.prototype.$config || {}, data49);
|
|
33869
35287
|
});
|
|
33870
35288
|
}
|
|
33871
|
-
Vue2.ready = axios$
|
|
35289
|
+
Vue2.ready = axios$1.get(`/user-manage-server/anon/system/qrySystemConfig`, { params: { deviceType: "11" } }).then((response) => {
|
|
33872
35290
|
var _a;
|
|
33873
35291
|
try {
|
|
33874
35292
|
const ret = JSON.parse(((_a = response == null ? void 0 : response.data) == null ? void 0 : _a.settingInfo) || "{}");
|
|
@@ -33935,7 +35353,7 @@ if (typeof window !== "undefined" && window.Vue) {
|
|
|
33935
35353
|
install(window.Vue);
|
|
33936
35354
|
}
|
|
33937
35355
|
const API = {
|
|
33938
|
-
version: pkg
|
|
35356
|
+
version: pkg.version,
|
|
33939
35357
|
install,
|
|
33940
35358
|
components,
|
|
33941
35359
|
plugins,
|