@indfnd/common-mobile 1.0.82 → 1.0.83
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 +2 -0
- package/dist/ind-common-mobile.es.js +1052 -2450
- package/dist/ind-common-mobile.umd.cjs +8 -12
- package/dist/styles/index.css +1 -1
- 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$3, 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 = "@indfnd/common-mobile";
|
|
6
|
-
const version$
|
|
7
|
-
const author = "huxuetong";
|
|
5
|
+
const name$1 = "@indfnd/common-mobile";
|
|
6
|
+
const version$2 = "1.0.82";
|
|
7
|
+
const author$1 = "huxuetong";
|
|
8
8
|
const publishConfig = {
|
|
9
9
|
registry: "https://registry.npmjs.org/"
|
|
10
10
|
};
|
|
11
|
-
const main$
|
|
11
|
+
const main$2 = "./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$1 = {
|
|
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 = {
|
|
|
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$1 = {
|
|
48
48
|
classnames: "^2.5.1",
|
|
49
49
|
vuedraggable: "^2.24.3"
|
|
50
50
|
};
|
|
51
|
-
const devDependencies = {
|
|
51
|
+
const devDependencies$1 = {
|
|
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 = {
|
|
|
82
82
|
const engines = {
|
|
83
83
|
node: ">= 16"
|
|
84
84
|
};
|
|
85
|
-
var pkg = {
|
|
86
|
-
name,
|
|
87
|
-
version: version$
|
|
88
|
-
author,
|
|
85
|
+
var pkg$1 = {
|
|
86
|
+
name: name$1,
|
|
87
|
+
version: version$2,
|
|
88
|
+
author: author$1,
|
|
89
89
|
publishConfig,
|
|
90
|
-
main: main$
|
|
90
|
+
main: main$2,
|
|
91
91
|
module,
|
|
92
92
|
style,
|
|
93
93
|
types,
|
|
94
94
|
exports,
|
|
95
95
|
files,
|
|
96
|
-
scripts,
|
|
97
|
-
dependencies,
|
|
98
|
-
devDependencies,
|
|
96
|
+
scripts: scripts$1,
|
|
97
|
+
dependencies: dependencies$1,
|
|
98
|
+
devDependencies: devDependencies$1,
|
|
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$3.post(this.dataUrl, params);
|
|
4176
4176
|
} else {
|
|
4177
|
-
resp = await axios$
|
|
4177
|
+
resp = await axios$3.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$3.post(this.dataUrl, params);
|
|
4292
4292
|
} else {
|
|
4293
|
-
resp = await axios$
|
|
4293
|
+
resp = await axios$3.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 source2 = arguments[i];
|
|
4728
|
+
for (var key in source2) {
|
|
4729
|
+
if (Object.prototype.hasOwnProperty.call(source2, key)) {
|
|
4730
|
+
target2[key] = source2[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
|
|
4803
|
+
var hasOwnProperty = 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
|
|
4809
|
+
if (!hasOwnProperty.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$1(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$1(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() {
|
|
5078
5078
|
}
|
|
5079
5079
|
function isDef(val) {
|
|
5080
5080
|
return val !== void 0 && val !== null;
|
|
5081
5081
|
}
|
|
5082
|
-
function isFunction$
|
|
5082
|
+
function isFunction$1(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$1(val.then) && isFunction$1(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
|
|
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 bind3() {
|
|
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: bind3,
|
|
5480
|
+
activated: bind3,
|
|
5481
5481
|
deactivated: unbind,
|
|
5482
5482
|
beforeDestroy: unbind
|
|
5483
5483
|
};
|
|
5484
5484
|
}
|
|
5485
5485
|
var CloseOnPopstateMixin = {
|
|
5486
|
-
mixins: [BindEventMixin(function(
|
|
5486
|
+
mixins: [BindEventMixin(function(bind3, 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(bind3) {
|
|
5508
5508
|
if (this.$isServer) {
|
|
5509
5509
|
return;
|
|
5510
5510
|
}
|
|
5511
|
-
if (this.bindStatus !==
|
|
5512
|
-
this.bindStatus =
|
|
5513
|
-
var action =
|
|
5511
|
+
if (this.bindStatus !== bind3) {
|
|
5512
|
+
this.bindStatus = bind3;
|
|
5513
|
+
var action = bind3 ? 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 description2 = (slots2.description == null ? void 0 : slots2.description()) || props.description;
|
|
6007
|
+
if (description2) {
|
|
6008
6008
|
return h("div", {
|
|
6009
6009
|
"class": bem$1s("description")
|
|
6010
|
-
}, [
|
|
6010
|
+
}, [description2]);
|
|
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$1(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,
|
|
8402
8402
|
Escape: this.showCancelButton ? function() {
|
|
8403
8403
|
return _this3.handleAction("cancel");
|
|
8404
|
-
} : noop
|
|
8404
|
+
} : noop
|
|
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);
|
|
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(bind3, 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
|
+
bind3(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(bind3) {
|
|
11282
11282
|
if (!this.scroller) {
|
|
11283
11283
|
this.scroller = getScroller(this.$el);
|
|
11284
11284
|
}
|
|
11285
|
-
|
|
11285
|
+
bind3(window, "resize", this.resize, true);
|
|
11286
11286
|
if (this.scrollspy) {
|
|
11287
|
-
|
|
11287
|
+
bind3(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 description2 = 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
|
+
})])]), description2 && h("p", {
|
|
12986
12986
|
"class": bem$Q("description")
|
|
12987
|
-
}, [
|
|
12987
|
+
}, [description2])]);
|
|
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(bind3) {
|
|
13913
13913
|
var scroller2 = this.parent.scroller;
|
|
13914
|
-
var action =
|
|
13914
|
+
var action = bind3 ? 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 description2 = this.slots("description") || this.description;
|
|
14374
|
+
if (description2) {
|
|
14375
14375
|
return h("p", {
|
|
14376
14376
|
"class": bem$J("description")
|
|
14377
|
-
}, [
|
|
14377
|
+
}, [description2]);
|
|
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(bind3, isBind) {
|
|
14797
|
+
bind3(window, "resize", this.resize, true);
|
|
14798
|
+
bind3(window, "orientationchange", this.resize, true);
|
|
14799
|
+
bind3(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(bind3) {
|
|
15423
|
+
bind3(window, "resize", this.resize, true);
|
|
15424
|
+
bind3(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(bind3) {
|
|
15790
15790
|
if (!this.scroller) {
|
|
15791
15791
|
this.scroller = getScroller(this.$el);
|
|
15792
15792
|
}
|
|
15793
|
-
|
|
15793
|
+
bind3(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(bind3) {
|
|
15969
15969
|
if (!this.scroller) {
|
|
15970
15970
|
this.scroller = getScroller(this.$el);
|
|
15971
15971
|
}
|
|
15972
|
-
|
|
15972
|
+
bind3(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(bind3) {
|
|
16224
|
+
bind3(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(bind3) {
|
|
16626
16626
|
if (this.hideOnClickOutside) {
|
|
16627
|
-
|
|
16627
|
+
bind3(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 = "main";
|
|
17356
|
+
var main$1 = "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, afterMain, beforeWrite, write, afterWrite];
|
|
17361
|
+
var modifierPhases = [beforeRead, read, afterRead, beforeMain, main$1, 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(bind3) {
|
|
18213
|
+
bind3(window, "resize", this.resize, true);
|
|
18214
|
+
bind3(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 description2 = this.slots("description") || this.description;
|
|
18885
|
+
if (!title4 && !description2) {
|
|
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]), description2 && h("span", {
|
|
18893
18893
|
"class": bem$k("description")
|
|
18894
|
-
}, [
|
|
18894
|
+
}, [description2])]);
|
|
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(bind3) {
|
|
19408
19408
|
if (this.scrollable && this.$refs.scroller) {
|
|
19409
|
-
|
|
19409
|
+
bind3(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
|
|
20096
|
+
function toArray(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
|
|
20120
|
+
return toArray(files2).some(function(file) {
|
|
20121
20121
|
if (file) {
|
|
20122
|
-
if (isFunction$
|
|
20122
|
+
if (isFunction$1(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
|
|
20332
|
+
this.$emit("input", [].concat(this.fileList, toArray(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);
|
|
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$3.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$3.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$3.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 source2 = arguments[i];
|
|
24174
|
+
for (var key in source2) {
|
|
24175
|
+
if (Object.prototype.hasOwnProperty.call(source2, key)) {
|
|
24176
|
+
target2[key] = source2[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 source2 = arguments[i] != null ? arguments[i] : {};
|
|
24187
|
+
var ownKeys = Object.keys(source2);
|
|
24188
24188
|
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
24189
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(
|
|
24190
|
-
return Object.getOwnPropertyDescriptor(
|
|
24189
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source2).filter(function(sym) {
|
|
24190
|
+
return Object.getOwnPropertyDescriptor(source2, sym).enumerable;
|
|
24191
24191
|
}));
|
|
24192
24192
|
}
|
|
24193
24193
|
ownKeys.forEach(function(key) {
|
|
24194
|
-
_defineProperty(target2, key,
|
|
24194
|
+
_defineProperty(target2, key, source2[key]);
|
|
24195
24195
|
});
|
|
24196
24196
|
}
|
|
24197
24197
|
return target2;
|
|
24198
24198
|
}
|
|
24199
|
-
function _objectWithoutPropertiesLoose(
|
|
24200
|
-
if (
|
|
24199
|
+
function _objectWithoutPropertiesLoose(source2, excluded) {
|
|
24200
|
+
if (source2 == null)
|
|
24201
24201
|
return {};
|
|
24202
24202
|
var target2 = {};
|
|
24203
|
-
var sourceKeys = Object.keys(
|
|
24203
|
+
var sourceKeys = Object.keys(source2);
|
|
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] = source2[key];
|
|
24210
24210
|
}
|
|
24211
24211
|
return target2;
|
|
24212
24212
|
}
|
|
24213
|
-
function _objectWithoutProperties(
|
|
24214
|
-
if (
|
|
24213
|
+
function _objectWithoutProperties(source2, excluded) {
|
|
24214
|
+
if (source2 == null)
|
|
24215
24215
|
return {};
|
|
24216
|
-
var target2 = _objectWithoutPropertiesLoose(
|
|
24216
|
+
var target2 = _objectWithoutPropertiesLoose(source2, excluded);
|
|
24217
24217
|
var key, i;
|
|
24218
24218
|
if (Object.getOwnPropertySymbols) {
|
|
24219
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(
|
|
24219
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source2);
|
|
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(source2, key))
|
|
24225
24225
|
continue;
|
|
24226
|
-
target2[key] =
|
|
24226
|
+
target2[key] = source2[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 = "1.10.2";
|
|
24248
|
+
var version$1 = "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, iterator) {
|
|
24350
24350
|
if (ctx) {
|
|
24351
24351
|
var list2 = ctx.getElementsByTagName(tagName), i = 0, n = list2.length;
|
|
24352
|
-
if (
|
|
24352
|
+
if (iterator) {
|
|
24353
24353
|
for (; i < n; i++) {
|
|
24354
|
-
|
|
24354
|
+
iterator(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
|
|
24528
|
+
function throttle(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$4 = {
|
|
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$4) {
|
|
24702
|
+
if (defaults$4.hasOwnProperty(option2) && !(option2 in plugin)) {
|
|
24703
|
+
plugin[option2] = defaults$4[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, filter = 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 filter === "function") {
|
|
25076
|
+
if (filter.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 (filter) {
|
|
25092
|
+
filter = filter.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 (filter) {
|
|
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 toArray2() {
|
|
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,
|
|
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$1;
|
|
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
|
|
26124
|
+
var autoScroll = throttle(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 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
26812
|
+
var require$$0$1 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
26813
26813
|
(function(module2, exports2) {
|
|
26814
|
-
(function webpackUniversalModuleDefinition(root2,
|
|
26815
|
-
module2.exports =
|
|
26814
|
+
(function webpackUniversalModuleDefinition(root2, factory) {
|
|
26815
|
+
module2.exports = factory(require$$0$1);
|
|
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 = /* @__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 getPrototypeOf = __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 = /* @__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 = getPrototypeOf($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 = /* @__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 create2(O, Properties) {
|
|
27191
27191
|
var result;
|
|
27192
27192
|
if (O !== null) {
|
|
27193
27193
|
Empty2[PROTOTYPE] = anObject(O);
|
|
@@ -27254,7 +27254,7 @@ var require$$0 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
|
27254
27254
|
};
|
|
27255
27255
|
},
|
|
27256
27256
|
"41a0": function(module3, exports3, __webpack_require__) {
|
|
27257
|
-
var
|
|
27257
|
+
var create2 = __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 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
|
27262
27262
|
return this;
|
|
27263
27263
|
});
|
|
27264
27264
|
module3.exports = function(Constructor, NAME, next2) {
|
|
27265
|
-
Constructor.prototype =
|
|
27265
|
+
Constructor.prototype = create2(IteratorPrototype, { next: descriptor(1, next2) });
|
|
27266
27266
|
setToStringTag(Constructor, NAME + " Iterator");
|
|
27267
27267
|
};
|
|
27268
27268
|
},
|
|
@@ -27377,7 +27377,7 @@ var require$$0 = /* @__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, source2) {
|
|
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 = /* @__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
|
+
source2 = name2;
|
|
27392
|
+
for (key in source2) {
|
|
27393
27393
|
own = !IS_FORCED && target2 && target2[key] !== void 0;
|
|
27394
|
-
out = (own ? target2 :
|
|
27394
|
+
out = (own ? target2 : source2)[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 = /* @__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, source2) {
|
|
27515
27515
|
var T = toObject(target2);
|
|
27516
27516
|
var aLen = arguments.length;
|
|
27517
27517
|
var index2 = 1;
|
|
@@ -27762,8 +27762,8 @@ var require$$0 = /* @__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 isRegExp;
|
|
27766
|
+
return isObject2(it) && ((isRegExp = it[MATCH]) !== void 0 ? !!isRegExp : cof(it) == "RegExp");
|
|
27767
27767
|
};
|
|
27768
27768
|
},
|
|
27769
27769
|
"ac6a": function(module3, exports3, __webpack_require__) {
|
|
@@ -28003,10 +28003,10 @@ var require$$0 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
|
28003
28003
|
};
|
|
28004
28004
|
},
|
|
28005
28005
|
"d2c8": function(module3, exports3, __webpack_require__) {
|
|
28006
|
-
var
|
|
28006
|
+
var isRegExp = __webpack_require__("aae3");
|
|
28007
28007
|
var defined = __webpack_require__("be13");
|
|
28008
28008
|
module3.exports = function(that, searchString, NAME) {
|
|
28009
|
-
if (
|
|
28009
|
+
if (isRegExp(searchString))
|
|
28010
28010
|
throw TypeError("String#" + NAME + " doesn't accept regex!");
|
|
28011
28011
|
return String(defined(that));
|
|
28012
28012
|
};
|
|
@@ -31065,7 +31065,7 @@ const __vue2_script$3 = {
|
|
|
31065
31065
|
for (let file of allFile) {
|
|
31066
31066
|
formData.append("file", file);
|
|
31067
31067
|
}
|
|
31068
|
-
axios$
|
|
31068
|
+
axios$3.post(self2.ossServerContext + self2.ossFilePutUrl, formData, { payload: true }).then((response) => {
|
|
31069
31069
|
if (response.code === 1) {
|
|
31070
31070
|
self2.loading = false;
|
|
31071
31071
|
const result = response.data;
|
|
@@ -31176,7 +31176,7 @@ const __vue2_script$3 = {
|
|
|
31176
31176
|
}
|
|
31177
31177
|
if (location.pathname.includes("scyxweb")) {
|
|
31178
31178
|
let watermarkTxt = "";
|
|
31179
|
-
await axios$
|
|
31179
|
+
await axios$3.get(`/user-manage-server/manage/user/getCurrentInfo`).then((res) => {
|
|
31180
31180
|
if (res.code === 1) {
|
|
31181
31181
|
const isPicture = file.fileName.endsWith(".jpg") || file.fileName.endsWith(".jpeg") || file.fileName.endsWith(".png") || file.fileName.endsWith(".gif");
|
|
31182
31182
|
let url = "";
|
|
@@ -31209,7 +31209,7 @@ const __vue2_script$3 = {
|
|
|
31209
31209
|
var _a;
|
|
31210
31210
|
const isWeb = location.protocol === "https:" ? "1" : "";
|
|
31211
31211
|
const token = getToken() || sessionStorage.getItem("sso_token");
|
|
31212
|
-
return axios$
|
|
31212
|
+
return axios$3.get(
|
|
31213
31213
|
`${location.protocol}//${location.host}${"/ind-uc-ext-server"}/api/wps/getPreviewUrl/${fileId}?isWeb=${isWeb}&previewMode=high_definition`,
|
|
31214
31214
|
{
|
|
31215
31215
|
headers: {
|
|
@@ -31994,384 +31994,139 @@ function generator(menuData = []) {
|
|
|
31994
31994
|
}
|
|
31995
31995
|
return menuData;
|
|
31996
31996
|
}
|
|
31997
|
-
|
|
31997
|
+
var axios$2 = { exports: {} };
|
|
31998
|
+
var bind$2 = function bind(fn2, thisArg) {
|
|
31998
31999
|
return function wrap() {
|
|
31999
|
-
|
|
32000
|
+
var args = new Array(arguments.length);
|
|
32001
|
+
for (var i = 0; i < args.length; i++) {
|
|
32002
|
+
args[i] = arguments[i];
|
|
32003
|
+
}
|
|
32004
|
+
return fn2.apply(thisArg, args);
|
|
32000
32005
|
};
|
|
32006
|
+
};
|
|
32007
|
+
var bind$1 = bind$2;
|
|
32008
|
+
var toString = Object.prototype.toString;
|
|
32009
|
+
function isArray(val) {
|
|
32010
|
+
return toString.call(val) === "[object Array]";
|
|
32011
|
+
}
|
|
32012
|
+
function isUndefined(val) {
|
|
32013
|
+
return typeof val === "undefined";
|
|
32001
32014
|
}
|
|
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");
|
|
32016
32015
|
function isBuffer(val) {
|
|
32017
|
-
return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) &&
|
|
32016
|
+
return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && typeof val.constructor.isBuffer === "function" && val.constructor.isBuffer(val);
|
|
32017
|
+
}
|
|
32018
|
+
function isArrayBuffer(val) {
|
|
32019
|
+
return toString.call(val) === "[object ArrayBuffer]";
|
|
32020
|
+
}
|
|
32021
|
+
function isFormData(val) {
|
|
32022
|
+
return typeof FormData !== "undefined" && val instanceof FormData;
|
|
32018
32023
|
}
|
|
32019
|
-
const isArrayBuffer = kindOfTest("ArrayBuffer");
|
|
32020
32024
|
function isArrayBufferView(val) {
|
|
32021
|
-
|
|
32025
|
+
var result;
|
|
32022
32026
|
if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) {
|
|
32023
32027
|
result = ArrayBuffer.isView(val);
|
|
32024
32028
|
} else {
|
|
32025
|
-
result = val && val.buffer &&
|
|
32029
|
+
result = val && val.buffer && val.buffer instanceof ArrayBuffer;
|
|
32026
32030
|
}
|
|
32027
32031
|
return result;
|
|
32028
32032
|
}
|
|
32029
|
-
|
|
32030
|
-
|
|
32031
|
-
|
|
32032
|
-
|
|
32033
|
-
|
|
32034
|
-
|
|
32035
|
-
|
|
32036
|
-
|
|
32037
|
-
|
|
32038
|
-
|
|
32039
|
-
|
|
32040
|
-
};
|
|
32041
|
-
const isEmptyObject = (val) => {
|
|
32042
|
-
if (!isObject(val) || isBuffer(val)) {
|
|
32033
|
+
function isString(val) {
|
|
32034
|
+
return typeof val === "string";
|
|
32035
|
+
}
|
|
32036
|
+
function isNumber(val) {
|
|
32037
|
+
return typeof val === "number";
|
|
32038
|
+
}
|
|
32039
|
+
function isObject(val) {
|
|
32040
|
+
return val !== null && typeof val === "object";
|
|
32041
|
+
}
|
|
32042
|
+
function isPlainObject(val) {
|
|
32043
|
+
if (toString.call(val) !== "[object Object]") {
|
|
32043
32044
|
return false;
|
|
32044
32045
|
}
|
|
32045
|
-
|
|
32046
|
-
|
|
32047
|
-
|
|
32046
|
+
var prototype = Object.getPrototypeOf(val);
|
|
32047
|
+
return prototype === null || prototype === Object.prototype;
|
|
32048
|
+
}
|
|
32049
|
+
function isDate(val) {
|
|
32050
|
+
return toString.call(val) === "[object Date]";
|
|
32051
|
+
}
|
|
32052
|
+
function isFile(val) {
|
|
32053
|
+
return toString.call(val) === "[object File]";
|
|
32054
|
+
}
|
|
32055
|
+
function isBlob(val) {
|
|
32056
|
+
return toString.call(val) === "[object Blob]";
|
|
32057
|
+
}
|
|
32058
|
+
function isFunction(val) {
|
|
32059
|
+
return toString.call(val) === "[object Function]";
|
|
32060
|
+
}
|
|
32061
|
+
function isStream(val) {
|
|
32062
|
+
return isObject(val) && isFunction(val.pipe);
|
|
32063
|
+
}
|
|
32064
|
+
function isURLSearchParams(val) {
|
|
32065
|
+
return typeof URLSearchParams !== "undefined" && val instanceof URLSearchParams;
|
|
32066
|
+
}
|
|
32067
|
+
function trim(str) {
|
|
32068
|
+
return str.trim ? str.trim() : str.replace(/^\s+|\s+$/g, "");
|
|
32069
|
+
}
|
|
32070
|
+
function isStandardBrowserEnv() {
|
|
32071
|
+
if (typeof navigator !== "undefined" && (navigator.product === "ReactNative" || navigator.product === "NativeScript" || navigator.product === "NS")) {
|
|
32048
32072
|
return false;
|
|
32049
32073
|
}
|
|
32050
|
-
|
|
32051
|
-
|
|
32052
|
-
|
|
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 } = {}) {
|
|
32074
|
+
return typeof window !== "undefined" && typeof document !== "undefined";
|
|
32075
|
+
}
|
|
32076
|
+
function forEach(obj, fn2) {
|
|
32088
32077
|
if (obj === null || typeof obj === "undefined") {
|
|
32089
32078
|
return;
|
|
32090
32079
|
}
|
|
32091
|
-
let i;
|
|
32092
|
-
let l;
|
|
32093
32080
|
if (typeof obj !== "object") {
|
|
32094
32081
|
obj = [obj];
|
|
32095
32082
|
}
|
|
32096
32083
|
if (isArray(obj)) {
|
|
32097
|
-
for (i = 0, l = obj.length; i < l; i++) {
|
|
32084
|
+
for (var i = 0, l = obj.length; i < l; i++) {
|
|
32098
32085
|
fn2.call(null, obj[i], i, obj);
|
|
32099
32086
|
}
|
|
32100
32087
|
} else {
|
|
32101
|
-
|
|
32102
|
-
|
|
32103
|
-
|
|
32104
|
-
|
|
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);
|
|
32110
|
-
}
|
|
32111
|
-
}
|
|
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;
|
|
32088
|
+
for (var key in obj) {
|
|
32089
|
+
if (Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
32090
|
+
fn2.call(null, obj[key], key, obj);
|
|
32091
|
+
}
|
|
32125
32092
|
}
|
|
32126
32093
|
}
|
|
32127
|
-
return null;
|
|
32128
32094
|
}
|
|
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;
|
|
32135
32095
|
function merge() {
|
|
32136
|
-
|
|
32137
|
-
|
|
32138
|
-
|
|
32139
|
-
|
|
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);
|
|
32096
|
+
var result = {};
|
|
32097
|
+
function assignValue(val, key) {
|
|
32098
|
+
if (isPlainObject(result[key]) && isPlainObject(val)) {
|
|
32099
|
+
result[key] = merge(result[key], val);
|
|
32145
32100
|
} else if (isPlainObject(val)) {
|
|
32146
|
-
result[
|
|
32101
|
+
result[key] = merge({}, val);
|
|
32147
32102
|
} else if (isArray(val)) {
|
|
32148
|
-
result[
|
|
32149
|
-
} else
|
|
32150
|
-
result[
|
|
32103
|
+
result[key] = val.slice();
|
|
32104
|
+
} else {
|
|
32105
|
+
result[key] = val;
|
|
32151
32106
|
}
|
|
32152
|
-
}
|
|
32153
|
-
for (
|
|
32154
|
-
|
|
32107
|
+
}
|
|
32108
|
+
for (var i = 0, l = arguments.length; i < l; i++) {
|
|
32109
|
+
forEach(arguments[i], assignValue);
|
|
32155
32110
|
}
|
|
32156
32111
|
return result;
|
|
32157
32112
|
}
|
|
32158
|
-
|
|
32159
|
-
forEach(
|
|
32160
|
-
|
|
32161
|
-
|
|
32162
|
-
|
|
32163
|
-
|
|
32164
|
-
|
|
32165
|
-
|
|
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
|
-
);
|
|
32113
|
+
function extend(a, b, thisArg) {
|
|
32114
|
+
forEach(b, function assignValue(val, key) {
|
|
32115
|
+
if (thisArg && typeof val === "function") {
|
|
32116
|
+
a[key] = bind$1(val, thisArg);
|
|
32117
|
+
} else {
|
|
32118
|
+
a[key] = val;
|
|
32119
|
+
}
|
|
32120
|
+
});
|
|
32180
32121
|
return a;
|
|
32181
|
-
}
|
|
32182
|
-
|
|
32122
|
+
}
|
|
32123
|
+
function stripBOM(content) {
|
|
32183
32124
|
if (content.charCodeAt(0) === 65279) {
|
|
32184
32125
|
content = content.slice(1);
|
|
32185
32126
|
}
|
|
32186
32127
|
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]);
|
|
32324
32128
|
}
|
|
32325
|
-
|
|
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 = {
|
|
32129
|
+
var utils$d = {
|
|
32375
32130
|
isArray,
|
|
32376
32131
|
isArrayBuffer,
|
|
32377
32132
|
isBuffer,
|
|
@@ -32379,532 +32134,200 @@ var utils$1 = {
|
|
|
32379
32134
|
isArrayBufferView,
|
|
32380
32135
|
isString,
|
|
32381
32136
|
isNumber,
|
|
32382
|
-
isBoolean,
|
|
32383
32137
|
isObject,
|
|
32384
32138
|
isPlainObject,
|
|
32385
|
-
isEmptyObject,
|
|
32386
|
-
isReadableStream,
|
|
32387
|
-
isRequest,
|
|
32388
|
-
isResponse,
|
|
32389
|
-
isHeaders,
|
|
32390
32139
|
isUndefined,
|
|
32391
32140
|
isDate,
|
|
32392
32141
|
isFile,
|
|
32393
|
-
isReactNativeBlob,
|
|
32394
|
-
isReactNative,
|
|
32395
32142
|
isBlob,
|
|
32396
|
-
|
|
32397
|
-
isFunction: isFunction$1,
|
|
32143
|
+
isFunction,
|
|
32398
32144
|
isStream,
|
|
32399
32145
|
isURLSearchParams,
|
|
32400
|
-
|
|
32401
|
-
isFileList,
|
|
32146
|
+
isStandardBrowserEnv,
|
|
32402
32147
|
forEach,
|
|
32403
32148
|
merge,
|
|
32404
32149
|
extend,
|
|
32405
32150
|
trim,
|
|
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("&");
|
|
32151
|
+
stripBOM
|
|
32640
32152
|
};
|
|
32153
|
+
var utils$c = utils$d;
|
|
32641
32154
|
function encode(val) {
|
|
32642
|
-
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
32155
|
+
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
32643
32156
|
}
|
|
32644
|
-
function buildURL(url, params,
|
|
32157
|
+
var buildURL$2 = function buildURL(url, params, paramsSerializer) {
|
|
32645
32158
|
if (!params) {
|
|
32646
32159
|
return url;
|
|
32647
32160
|
}
|
|
32648
|
-
|
|
32649
|
-
|
|
32650
|
-
|
|
32651
|
-
}
|
|
32652
|
-
|
|
32653
|
-
let serializedParams;
|
|
32654
|
-
if (serializeFn) {
|
|
32655
|
-
serializedParams = serializeFn(params, _options);
|
|
32161
|
+
var serializedParams;
|
|
32162
|
+
if (paramsSerializer) {
|
|
32163
|
+
serializedParams = paramsSerializer(params);
|
|
32164
|
+
} else if (utils$c.isURLSearchParams(params)) {
|
|
32165
|
+
serializedParams = params.toString();
|
|
32656
32166
|
} else {
|
|
32657
|
-
|
|
32167
|
+
var parts = [];
|
|
32168
|
+
utils$c.forEach(params, function serialize(val, key) {
|
|
32169
|
+
if (val === null || typeof val === "undefined") {
|
|
32170
|
+
return;
|
|
32171
|
+
}
|
|
32172
|
+
if (utils$c.isArray(val)) {
|
|
32173
|
+
key = key + "[]";
|
|
32174
|
+
} else {
|
|
32175
|
+
val = [val];
|
|
32176
|
+
}
|
|
32177
|
+
utils$c.forEach(val, function parseValue(v) {
|
|
32178
|
+
if (utils$c.isDate(v)) {
|
|
32179
|
+
v = v.toISOString();
|
|
32180
|
+
} else if (utils$c.isObject(v)) {
|
|
32181
|
+
v = JSON.stringify(v);
|
|
32182
|
+
}
|
|
32183
|
+
parts.push(encode(key) + "=" + encode(v));
|
|
32184
|
+
});
|
|
32185
|
+
});
|
|
32186
|
+
serializedParams = parts.join("&");
|
|
32658
32187
|
}
|
|
32659
32188
|
if (serializedParams) {
|
|
32660
|
-
|
|
32189
|
+
var hashmarkIndex = url.indexOf("#");
|
|
32661
32190
|
if (hashmarkIndex !== -1) {
|
|
32662
32191
|
url = url.slice(0, hashmarkIndex);
|
|
32663
32192
|
}
|
|
32664
32193
|
url += (url.indexOf("?") === -1 ? "?" : "&") + serializedParams;
|
|
32665
32194
|
}
|
|
32666
32195
|
return url;
|
|
32196
|
+
};
|
|
32197
|
+
var utils$b = utils$d;
|
|
32198
|
+
function InterceptorManager$1() {
|
|
32199
|
+
this.handlers = [];
|
|
32667
32200
|
}
|
|
32668
|
-
|
|
32669
|
-
|
|
32670
|
-
|
|
32671
|
-
|
|
32672
|
-
|
|
32673
|
-
|
|
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;
|
|
32684
|
-
}
|
|
32685
|
-
}
|
|
32686
|
-
clear() {
|
|
32687
|
-
if (this.handlers) {
|
|
32688
|
-
this.handlers = [];
|
|
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
|
|
32747
|
-
});
|
|
32748
|
-
}
|
|
32749
|
-
function parsePropPath(name2) {
|
|
32750
|
-
return utils$1.matchAll(/\w+|\[(\w*)]/g, name2).map((match) => {
|
|
32751
|
-
return match[0] === "[]" ? "" : match[1] || match[0];
|
|
32201
|
+
InterceptorManager$1.prototype.use = function use2(fulfilled, rejected, options) {
|
|
32202
|
+
this.handlers.push({
|
|
32203
|
+
fulfilled,
|
|
32204
|
+
rejected,
|
|
32205
|
+
synchronous: options ? options.synchronous : false,
|
|
32206
|
+
runWhen: options ? options.runWhen : null
|
|
32752
32207
|
});
|
|
32753
|
-
|
|
32754
|
-
|
|
32755
|
-
|
|
32756
|
-
|
|
32757
|
-
|
|
32758
|
-
const len = keys2.length;
|
|
32759
|
-
let key;
|
|
32760
|
-
for (i = 0; i < len; i++) {
|
|
32761
|
-
key = keys2[i];
|
|
32762
|
-
obj[key] = arr[key];
|
|
32208
|
+
return this.handlers.length - 1;
|
|
32209
|
+
};
|
|
32210
|
+
InterceptorManager$1.prototype.eject = function eject(id) {
|
|
32211
|
+
if (this.handlers[id]) {
|
|
32212
|
+
this.handlers[id] = null;
|
|
32763
32213
|
}
|
|
32764
|
-
|
|
32765
|
-
|
|
32766
|
-
function
|
|
32767
|
-
|
|
32768
|
-
|
|
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] = [];
|
|
32214
|
+
};
|
|
32215
|
+
InterceptorManager$1.prototype.forEach = function forEach2(fn2) {
|
|
32216
|
+
utils$b.forEach(this.handlers, function forEachHandler(h) {
|
|
32217
|
+
if (h !== null) {
|
|
32218
|
+
fn2(h);
|
|
32784
32219
|
}
|
|
32785
|
-
|
|
32786
|
-
|
|
32787
|
-
|
|
32220
|
+
});
|
|
32221
|
+
};
|
|
32222
|
+
var InterceptorManager_1 = InterceptorManager$1;
|
|
32223
|
+
var utils$a = utils$d;
|
|
32224
|
+
var normalizeHeaderName$1 = function normalizeHeaderName(headers, normalizedName) {
|
|
32225
|
+
utils$a.forEach(headers, function processHeader(value17, name2) {
|
|
32226
|
+
if (name2 !== normalizedName && name2.toUpperCase() === normalizedName.toUpperCase()) {
|
|
32227
|
+
headers[normalizedName] = value17;
|
|
32228
|
+
delete headers[name2];
|
|
32788
32229
|
}
|
|
32789
|
-
|
|
32230
|
+
});
|
|
32231
|
+
};
|
|
32232
|
+
var enhanceError$2 = function enhanceError(error, config2, code2, request2, response) {
|
|
32233
|
+
error.config = config2;
|
|
32234
|
+
if (code2) {
|
|
32235
|
+
error.code = code2;
|
|
32790
32236
|
}
|
|
32791
|
-
|
|
32792
|
-
|
|
32793
|
-
|
|
32794
|
-
|
|
32795
|
-
|
|
32796
|
-
|
|
32237
|
+
error.request = request2;
|
|
32238
|
+
error.response = response;
|
|
32239
|
+
error.isAxiosError = true;
|
|
32240
|
+
error.toJSON = function toJSON() {
|
|
32241
|
+
return {
|
|
32242
|
+
message: this.message,
|
|
32243
|
+
name: this.name,
|
|
32244
|
+
description: this.description,
|
|
32245
|
+
number: this.number,
|
|
32246
|
+
fileName: this.fileName,
|
|
32247
|
+
lineNumber: this.lineNumber,
|
|
32248
|
+
columnNumber: this.columnNumber,
|
|
32249
|
+
stack: this.stack,
|
|
32250
|
+
config: this.config,
|
|
32251
|
+
code: this.code
|
|
32252
|
+
};
|
|
32253
|
+
};
|
|
32254
|
+
return error;
|
|
32255
|
+
};
|
|
32256
|
+
var enhanceError$1 = enhanceError$2;
|
|
32257
|
+
var createError$2 = function createError(message, config2, code2, request2, response) {
|
|
32258
|
+
var error = new Error(message);
|
|
32259
|
+
return enhanceError$1(error, config2, code2, request2, response);
|
|
32260
|
+
};
|
|
32261
|
+
var createError$1 = createError$2;
|
|
32262
|
+
var settle$1 = function settle(resolve, reject, response) {
|
|
32263
|
+
var validateStatus2 = response.config.validateStatus;
|
|
32264
|
+
if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
|
|
32265
|
+
resolve(response);
|
|
32266
|
+
} else {
|
|
32267
|
+
reject(createError$1(
|
|
32268
|
+
"Request failed with status code " + response.status,
|
|
32269
|
+
response.config,
|
|
32270
|
+
null,
|
|
32271
|
+
response.request,
|
|
32272
|
+
response
|
|
32273
|
+
));
|
|
32797
32274
|
}
|
|
32798
|
-
|
|
32799
|
-
|
|
32800
|
-
|
|
32801
|
-
|
|
32802
|
-
|
|
32803
|
-
|
|
32804
|
-
|
|
32805
|
-
|
|
32806
|
-
|
|
32807
|
-
throw e;
|
|
32275
|
+
};
|
|
32276
|
+
var utils$9 = utils$d;
|
|
32277
|
+
var cookies$1 = utils$9.isStandardBrowserEnv() ? function standardBrowserEnv() {
|
|
32278
|
+
return {
|
|
32279
|
+
write: function write2(name2, value17, expires, path2, domain, secure) {
|
|
32280
|
+
var cookie = [];
|
|
32281
|
+
cookie.push(name2 + "=" + encodeURIComponent(value17));
|
|
32282
|
+
if (utils$9.isNumber(expires)) {
|
|
32283
|
+
cookie.push("expires=" + new Date(expires).toGMTString());
|
|
32808
32284
|
}
|
|
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
|
-
}
|
|
32285
|
+
if (utils$9.isString(path2)) {
|
|
32286
|
+
cookie.push("path=" + path2);
|
|
32851
32287
|
}
|
|
32852
|
-
if (
|
|
32853
|
-
|
|
32854
|
-
return stringifySafely(data49);
|
|
32288
|
+
if (utils$9.isString(domain)) {
|
|
32289
|
+
cookie.push("domain=" + domain);
|
|
32855
32290
|
}
|
|
32856
|
-
|
|
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
|
-
}
|
|
32291
|
+
if (secure === true) {
|
|
32292
|
+
cookie.push("secure");
|
|
32880
32293
|
}
|
|
32881
|
-
|
|
32294
|
+
document.cookie = cookie.join("; ");
|
|
32295
|
+
},
|
|
32296
|
+
read: function read2(name2) {
|
|
32297
|
+
var match = document.cookie.match(new RegExp("(^|;\\s*)(" + name2 + ")=([^;]*)"));
|
|
32298
|
+
return match ? decodeURIComponent(match[3]) : null;
|
|
32299
|
+
},
|
|
32300
|
+
remove: function remove2(name2) {
|
|
32301
|
+
this.write(name2, "", Date.now() - 864e5);
|
|
32882
32302
|
}
|
|
32883
|
-
|
|
32884
|
-
|
|
32885
|
-
|
|
32886
|
-
|
|
32887
|
-
|
|
32888
|
-
|
|
32889
|
-
|
|
32890
|
-
|
|
32891
|
-
|
|
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
|
|
32303
|
+
};
|
|
32304
|
+
}() : function nonStandardBrowserEnv() {
|
|
32305
|
+
return {
|
|
32306
|
+
write: function write2() {
|
|
32307
|
+
},
|
|
32308
|
+
read: function read2() {
|
|
32309
|
+
return null;
|
|
32310
|
+
},
|
|
32311
|
+
remove: function remove2() {
|
|
32900
32312
|
}
|
|
32313
|
+
};
|
|
32314
|
+
}();
|
|
32315
|
+
var isAbsoluteURL$1 = function isAbsoluteURL(url) {
|
|
32316
|
+
return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url);
|
|
32317
|
+
};
|
|
32318
|
+
var combineURLs$1 = function combineURLs(baseURL, relativeURL) {
|
|
32319
|
+
return relativeURL ? baseURL.replace(/\/+$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
|
|
32320
|
+
};
|
|
32321
|
+
var isAbsoluteURL2 = isAbsoluteURL$1;
|
|
32322
|
+
var combineURLs2 = combineURLs$1;
|
|
32323
|
+
var buildFullPath$1 = function buildFullPath(baseURL, requestedURL) {
|
|
32324
|
+
if (baseURL && !isAbsoluteURL2(requestedURL)) {
|
|
32325
|
+
return combineURLs2(baseURL, requestedURL);
|
|
32901
32326
|
}
|
|
32327
|
+
return requestedURL;
|
|
32902
32328
|
};
|
|
32903
|
-
utils$
|
|
32904
|
-
|
|
32905
|
-
});
|
|
32906
|
-
var defaults$1 = defaults;
|
|
32907
|
-
const ignoreDuplicateOf = utils$1.toObjectSet([
|
|
32329
|
+
var utils$8 = utils$d;
|
|
32330
|
+
var ignoreDuplicateOf = [
|
|
32908
32331
|
"age",
|
|
32909
32332
|
"authorization",
|
|
32910
32333
|
"content-length",
|
|
@@ -32922,1181 +32345,561 @@ const ignoreDuplicateOf = utils$1.toObjectSet([
|
|
|
32922
32345
|
"referer",
|
|
32923
32346
|
"retry-after",
|
|
32924
32347
|
"user-agent"
|
|
32925
|
-
]
|
|
32926
|
-
var parseHeaders = (
|
|
32927
|
-
|
|
32928
|
-
|
|
32929
|
-
|
|
32930
|
-
|
|
32931
|
-
|
|
32348
|
+
];
|
|
32349
|
+
var parseHeaders$1 = function parseHeaders(headers) {
|
|
32350
|
+
var parsed = {};
|
|
32351
|
+
var key;
|
|
32352
|
+
var val;
|
|
32353
|
+
var i;
|
|
32354
|
+
if (!headers) {
|
|
32355
|
+
return parsed;
|
|
32356
|
+
}
|
|
32357
|
+
utils$8.forEach(headers.split("\n"), function parser(line) {
|
|
32932
32358
|
i = line.indexOf(":");
|
|
32933
|
-
key = line.
|
|
32934
|
-
val = line.
|
|
32935
|
-
if (
|
|
32936
|
-
|
|
32937
|
-
|
|
32938
|
-
|
|
32939
|
-
if (
|
|
32940
|
-
parsed[key].
|
|
32359
|
+
key = utils$8.trim(line.substr(0, i)).toLowerCase();
|
|
32360
|
+
val = utils$8.trim(line.substr(i + 1));
|
|
32361
|
+
if (key) {
|
|
32362
|
+
if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {
|
|
32363
|
+
return;
|
|
32364
|
+
}
|
|
32365
|
+
if (key === "set-cookie") {
|
|
32366
|
+
parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);
|
|
32941
32367
|
} else {
|
|
32942
|
-
parsed[key] = [val
|
|
32368
|
+
parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
|
|
32943
32369
|
}
|
|
32944
|
-
} else {
|
|
32945
|
-
parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
|
|
32946
32370
|
}
|
|
32947
32371
|
});
|
|
32948
32372
|
return parsed;
|
|
32949
32373
|
};
|
|
32950
|
-
|
|
32951
|
-
function
|
|
32952
|
-
|
|
32953
|
-
|
|
32954
|
-
|
|
32955
|
-
|
|
32956
|
-
|
|
32957
|
-
|
|
32958
|
-
|
|
32959
|
-
|
|
32960
|
-
|
|
32961
|
-
|
|
32962
|
-
|
|
32963
|
-
|
|
32964
|
-
|
|
32965
|
-
|
|
32966
|
-
|
|
32967
|
-
|
|
32968
|
-
|
|
32969
|
-
|
|
32970
|
-
|
|
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: {}
|
|
32374
|
+
var utils$7 = utils$d;
|
|
32375
|
+
var isURLSameOrigin$1 = utils$7.isStandardBrowserEnv() ? function standardBrowserEnv2() {
|
|
32376
|
+
var msie = /(msie|trident)/i.test(navigator.userAgent);
|
|
32377
|
+
var urlParsingNode = document.createElement("a");
|
|
32378
|
+
var originURL;
|
|
32379
|
+
function resolveURL(url) {
|
|
32380
|
+
var href = url;
|
|
32381
|
+
if (msie) {
|
|
32382
|
+
urlParsingNode.setAttribute("href", href);
|
|
32383
|
+
href = urlParsingNode.href;
|
|
32384
|
+
}
|
|
32385
|
+
urlParsingNode.setAttribute("href", href);
|
|
32386
|
+
return {
|
|
32387
|
+
href: urlParsingNode.href,
|
|
32388
|
+
protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, "") : "",
|
|
32389
|
+
host: urlParsingNode.host,
|
|
32390
|
+
search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, "") : "",
|
|
32391
|
+
hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, "") : "",
|
|
32392
|
+
hostname: urlParsingNode.hostname,
|
|
32393
|
+
port: urlParsingNode.port,
|
|
32394
|
+
pathname: urlParsingNode.pathname.charAt(0) === "/" ? urlParsingNode.pathname : "/" + urlParsingNode.pathname
|
|
33152
32395
|
};
|
|
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;
|
|
33204
|
-
}
|
|
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
32396
|
}
|
|
33222
|
-
|
|
33223
|
-
function
|
|
33224
|
-
|
|
33225
|
-
|
|
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;
|
|
33258
|
-
};
|
|
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);
|
|
33273
|
-
};
|
|
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
|
-
}
|
|
32397
|
+
originURL = resolveURL(window.location.href);
|
|
32398
|
+
return function isURLSameOrigin2(requestURL) {
|
|
32399
|
+
var parsed = utils$7.isString(requestURL) ? resolveURL(requestURL) : requestURL;
|
|
32400
|
+
return parsed.protocol === originURL.protocol && parsed.host === originURL.host;
|
|
33288
32401
|
};
|
|
33289
|
-
|
|
33290
|
-
return
|
|
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)
|
|
32402
|
+
}() : function nonStandardBrowserEnv2() {
|
|
32403
|
+
return function isURLSameOrigin2() {
|
|
32404
|
+
return true;
|
|
33461
32405
|
};
|
|
33462
|
-
|
|
33463
|
-
|
|
33464
|
-
|
|
33465
|
-
|
|
33466
|
-
|
|
33467
|
-
|
|
33468
|
-
|
|
33469
|
-
|
|
33470
|
-
|
|
33471
|
-
var
|
|
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) {
|
|
32406
|
+
}();
|
|
32407
|
+
var utils$6 = utils$d;
|
|
32408
|
+
var settle2 = settle$1;
|
|
32409
|
+
var cookies = cookies$1;
|
|
32410
|
+
var buildURL$1 = buildURL$2;
|
|
32411
|
+
var buildFullPath2 = buildFullPath$1;
|
|
32412
|
+
var parseHeaders2 = parseHeaders$1;
|
|
32413
|
+
var isURLSameOrigin = isURLSameOrigin$1;
|
|
32414
|
+
var createError2 = createError$2;
|
|
32415
|
+
var xhr = function xhrAdapter(config2) {
|
|
33514
32416
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
33515
|
-
|
|
33516
|
-
|
|
33517
|
-
|
|
33518
|
-
|
|
33519
|
-
|
|
33520
|
-
|
|
33521
|
-
|
|
33522
|
-
|
|
33523
|
-
|
|
33524
|
-
|
|
33525
|
-
|
|
33526
|
-
|
|
33527
|
-
|
|
33528
|
-
|
|
33529
|
-
|
|
33530
|
-
request.timeout = _config.timeout;
|
|
32417
|
+
var requestData = config2.data;
|
|
32418
|
+
var requestHeaders = config2.headers;
|
|
32419
|
+
var responseType = config2.responseType;
|
|
32420
|
+
if (utils$6.isFormData(requestData)) {
|
|
32421
|
+
delete requestHeaders["Content-Type"];
|
|
32422
|
+
}
|
|
32423
|
+
var request2 = new XMLHttpRequest();
|
|
32424
|
+
if (config2.auth) {
|
|
32425
|
+
var username = config2.auth.username || "";
|
|
32426
|
+
var password = config2.auth.password ? unescape(encodeURIComponent(config2.auth.password)) : "";
|
|
32427
|
+
requestHeaders.Authorization = "Basic " + btoa(username + ":" + password);
|
|
32428
|
+
}
|
|
32429
|
+
var fullPath = buildFullPath2(config2.baseURL, config2.url);
|
|
32430
|
+
request2.open(config2.method.toUpperCase(), buildURL$1(fullPath, config2.params, config2.paramsSerializer), true);
|
|
32431
|
+
request2.timeout = config2.timeout;
|
|
33531
32432
|
function onloadend() {
|
|
33532
|
-
if (!
|
|
32433
|
+
if (!request2) {
|
|
33533
32434
|
return;
|
|
33534
32435
|
}
|
|
33535
|
-
|
|
33536
|
-
|
|
33537
|
-
|
|
33538
|
-
const responseData = !responseType || responseType === "text" || responseType === "json" ? request.responseText : request.response;
|
|
33539
|
-
const response = {
|
|
32436
|
+
var responseHeaders = "getAllResponseHeaders" in request2 ? parseHeaders2(request2.getAllResponseHeaders()) : null;
|
|
32437
|
+
var responseData = !responseType || responseType === "text" || responseType === "json" ? request2.responseText : request2.response;
|
|
32438
|
+
var response = {
|
|
33540
32439
|
data: responseData,
|
|
33541
|
-
status:
|
|
33542
|
-
statusText:
|
|
32440
|
+
status: request2.status,
|
|
32441
|
+
statusText: request2.statusText,
|
|
33543
32442
|
headers: responseHeaders,
|
|
33544
32443
|
config: config2,
|
|
33545
|
-
request
|
|
32444
|
+
request: request2
|
|
33546
32445
|
};
|
|
33547
|
-
|
|
33548
|
-
|
|
33549
|
-
resolve(value17);
|
|
33550
|
-
done();
|
|
33551
|
-
},
|
|
33552
|
-
function _reject(err) {
|
|
33553
|
-
reject(err);
|
|
33554
|
-
done();
|
|
33555
|
-
},
|
|
33556
|
-
response
|
|
33557
|
-
);
|
|
33558
|
-
request = null;
|
|
32446
|
+
settle2(resolve, reject, response);
|
|
32447
|
+
request2 = null;
|
|
33559
32448
|
}
|
|
33560
|
-
if ("onloadend" in
|
|
33561
|
-
|
|
32449
|
+
if ("onloadend" in request2) {
|
|
32450
|
+
request2.onloadend = onloadend;
|
|
33562
32451
|
} else {
|
|
33563
|
-
|
|
33564
|
-
if (!
|
|
32452
|
+
request2.onreadystatechange = function handleLoad() {
|
|
32453
|
+
if (!request2 || request2.readyState !== 4) {
|
|
33565
32454
|
return;
|
|
33566
32455
|
}
|
|
33567
|
-
if (
|
|
32456
|
+
if (request2.status === 0 && !(request2.responseURL && request2.responseURL.indexOf("file:") === 0)) {
|
|
33568
32457
|
return;
|
|
33569
32458
|
}
|
|
33570
32459
|
setTimeout(onloadend);
|
|
33571
32460
|
};
|
|
33572
32461
|
}
|
|
33573
|
-
|
|
33574
|
-
if (!
|
|
32462
|
+
request2.onabort = function handleAbort() {
|
|
32463
|
+
if (!request2) {
|
|
33575
32464
|
return;
|
|
33576
32465
|
}
|
|
33577
|
-
reject(
|
|
33578
|
-
|
|
32466
|
+
reject(createError2("Request aborted", config2, "ECONNABORTED", request2));
|
|
32467
|
+
request2 = null;
|
|
33579
32468
|
};
|
|
33580
|
-
|
|
33581
|
-
|
|
33582
|
-
|
|
33583
|
-
err.event = event || null;
|
|
33584
|
-
reject(err);
|
|
33585
|
-
request = null;
|
|
32469
|
+
request2.onerror = function handleError() {
|
|
32470
|
+
reject(createError2("Network Error", config2, null, request2));
|
|
32471
|
+
request2 = null;
|
|
33586
32472
|
};
|
|
33587
|
-
|
|
33588
|
-
|
|
33589
|
-
|
|
33590
|
-
|
|
33591
|
-
|
|
33592
|
-
|
|
33593
|
-
|
|
33594
|
-
|
|
33595
|
-
|
|
33596
|
-
|
|
33597
|
-
|
|
33598
|
-
|
|
33599
|
-
)
|
|
33600
|
-
);
|
|
33601
|
-
request = null;
|
|
32473
|
+
request2.ontimeout = function handleTimeout() {
|
|
32474
|
+
var timeoutErrorMessage = "timeout of " + config2.timeout + "ms exceeded";
|
|
32475
|
+
if (config2.timeoutErrorMessage) {
|
|
32476
|
+
timeoutErrorMessage = config2.timeoutErrorMessage;
|
|
32477
|
+
}
|
|
32478
|
+
reject(createError2(
|
|
32479
|
+
timeoutErrorMessage,
|
|
32480
|
+
config2,
|
|
32481
|
+
config2.transitional && config2.transitional.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED",
|
|
32482
|
+
request2
|
|
32483
|
+
));
|
|
32484
|
+
request2 = null;
|
|
33602
32485
|
};
|
|
33603
|
-
|
|
33604
|
-
|
|
33605
|
-
|
|
33606
|
-
|
|
32486
|
+
if (utils$6.isStandardBrowserEnv()) {
|
|
32487
|
+
var xsrfValue = (config2.withCredentials || isURLSameOrigin(fullPath)) && config2.xsrfCookieName ? cookies.read(config2.xsrfCookieName) : void 0;
|
|
32488
|
+
if (xsrfValue) {
|
|
32489
|
+
requestHeaders[config2.xsrfHeaderName] = xsrfValue;
|
|
32490
|
+
}
|
|
32491
|
+
}
|
|
32492
|
+
if ("setRequestHeader" in request2) {
|
|
32493
|
+
utils$6.forEach(requestHeaders, function setRequestHeader(val, key) {
|
|
32494
|
+
if (typeof requestData === "undefined" && key.toLowerCase() === "content-type") {
|
|
32495
|
+
delete requestHeaders[key];
|
|
32496
|
+
} else {
|
|
32497
|
+
request2.setRequestHeader(key, val);
|
|
32498
|
+
}
|
|
33607
32499
|
});
|
|
33608
32500
|
}
|
|
33609
|
-
if (!utils$
|
|
33610
|
-
|
|
32501
|
+
if (!utils$6.isUndefined(config2.withCredentials)) {
|
|
32502
|
+
request2.withCredentials = !!config2.withCredentials;
|
|
33611
32503
|
}
|
|
33612
32504
|
if (responseType && responseType !== "json") {
|
|
33613
|
-
|
|
32505
|
+
request2.responseType = config2.responseType;
|
|
33614
32506
|
}
|
|
33615
|
-
if (onDownloadProgress) {
|
|
33616
|
-
|
|
33617
|
-
request.addEventListener("progress", downloadThrottled);
|
|
32507
|
+
if (typeof config2.onDownloadProgress === "function") {
|
|
32508
|
+
request2.addEventListener("progress", config2.onDownloadProgress);
|
|
33618
32509
|
}
|
|
33619
|
-
if (onUploadProgress &&
|
|
33620
|
-
|
|
33621
|
-
request.upload.addEventListener("progress", uploadThrottled);
|
|
33622
|
-
request.upload.addEventListener("loadend", flushUpload);
|
|
32510
|
+
if (typeof config2.onUploadProgress === "function" && request2.upload) {
|
|
32511
|
+
request2.upload.addEventListener("progress", config2.onUploadProgress);
|
|
33623
32512
|
}
|
|
33624
|
-
if (
|
|
33625
|
-
onCanceled
|
|
33626
|
-
if (!
|
|
32513
|
+
if (config2.cancelToken) {
|
|
32514
|
+
config2.cancelToken.promise.then(function onCanceled(cancel2) {
|
|
32515
|
+
if (!request2) {
|
|
33627
32516
|
return;
|
|
33628
32517
|
}
|
|
33629
|
-
|
|
33630
|
-
|
|
33631
|
-
|
|
33632
|
-
};
|
|
33633
|
-
|
|
33634
|
-
|
|
33635
|
-
|
|
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;
|
|
32518
|
+
request2.abort();
|
|
32519
|
+
reject(cancel2);
|
|
32520
|
+
request2 = null;
|
|
32521
|
+
});
|
|
32522
|
+
}
|
|
32523
|
+
if (!requestData) {
|
|
32524
|
+
requestData = null;
|
|
33648
32525
|
}
|
|
33649
|
-
|
|
32526
|
+
request2.send(requestData);
|
|
33650
32527
|
});
|
|
33651
32528
|
};
|
|
33652
|
-
|
|
33653
|
-
|
|
33654
|
-
|
|
33655
|
-
|
|
33656
|
-
|
|
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
|
-
}
|
|
33686
|
-
};
|
|
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;
|
|
33693
|
-
}
|
|
33694
|
-
let pos = 0;
|
|
33695
|
-
let end2;
|
|
33696
|
-
while (pos < len) {
|
|
33697
|
-
end2 = pos + chunkSize;
|
|
33698
|
-
yield chunk.slice(pos, end2);
|
|
33699
|
-
pos = end2;
|
|
33700
|
-
}
|
|
32529
|
+
var utils$5 = utils$d;
|
|
32530
|
+
var normalizeHeaderName2 = normalizeHeaderName$1;
|
|
32531
|
+
var enhanceError2 = enhanceError$2;
|
|
32532
|
+
var DEFAULT_CONTENT_TYPE = {
|
|
32533
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
33701
32534
|
};
|
|
33702
|
-
|
|
33703
|
-
|
|
33704
|
-
|
|
32535
|
+
function setContentTypeIfUnset(headers, value17) {
|
|
32536
|
+
if (!utils$5.isUndefined(headers) && utils$5.isUndefined(headers["Content-Type"])) {
|
|
32537
|
+
headers["Content-Type"] = value17;
|
|
33705
32538
|
}
|
|
33706
|
-
}
|
|
33707
|
-
|
|
33708
|
-
|
|
33709
|
-
|
|
33710
|
-
|
|
32539
|
+
}
|
|
32540
|
+
function getDefaultAdapter() {
|
|
32541
|
+
var adapter;
|
|
32542
|
+
if (typeof XMLHttpRequest !== "undefined") {
|
|
32543
|
+
adapter = xhr;
|
|
32544
|
+
} else if (typeof process !== "undefined" && Object.prototype.toString.call(process) === "[object process]") {
|
|
32545
|
+
adapter = xhr;
|
|
33711
32546
|
}
|
|
33712
|
-
|
|
33713
|
-
|
|
33714
|
-
|
|
33715
|
-
|
|
33716
|
-
|
|
33717
|
-
|
|
32547
|
+
return adapter;
|
|
32548
|
+
}
|
|
32549
|
+
function stringifySafely(rawValue, parser, encoder) {
|
|
32550
|
+
if (utils$5.isString(rawValue)) {
|
|
32551
|
+
try {
|
|
32552
|
+
(parser || JSON.parse)(rawValue);
|
|
32553
|
+
return utils$5.trim(rawValue);
|
|
32554
|
+
} catch (e) {
|
|
32555
|
+
if (e.name !== "SyntaxError") {
|
|
32556
|
+
throw e;
|
|
33718
32557
|
}
|
|
33719
|
-
yield value17;
|
|
33720
32558
|
}
|
|
33721
|
-
} finally {
|
|
33722
|
-
await reader.cancel();
|
|
33723
32559
|
}
|
|
33724
|
-
|
|
33725
|
-
|
|
33726
|
-
|
|
33727
|
-
|
|
33728
|
-
|
|
33729
|
-
|
|
33730
|
-
|
|
33731
|
-
|
|
33732
|
-
|
|
32560
|
+
return (encoder || JSON.stringify)(rawValue);
|
|
32561
|
+
}
|
|
32562
|
+
var defaults$3 = {
|
|
32563
|
+
transitional: {
|
|
32564
|
+
silentJSONParsing: true,
|
|
32565
|
+
forcedJSONParsing: true,
|
|
32566
|
+
clarifyTimeoutError: false
|
|
32567
|
+
},
|
|
32568
|
+
adapter: getDefaultAdapter(),
|
|
32569
|
+
transformRequest: [function transformRequest(data49, headers) {
|
|
32570
|
+
normalizeHeaderName2(headers, "Accept");
|
|
32571
|
+
normalizeHeaderName2(headers, "Content-Type");
|
|
32572
|
+
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)) {
|
|
32573
|
+
return data49;
|
|
33733
32574
|
}
|
|
33734
|
-
|
|
33735
|
-
|
|
33736
|
-
|
|
33737
|
-
|
|
33738
|
-
|
|
33739
|
-
|
|
33740
|
-
|
|
33741
|
-
|
|
33742
|
-
|
|
33743
|
-
|
|
33744
|
-
|
|
33745
|
-
|
|
33746
|
-
|
|
33747
|
-
|
|
33748
|
-
|
|
32575
|
+
if (utils$5.isArrayBufferView(data49)) {
|
|
32576
|
+
return data49.buffer;
|
|
32577
|
+
}
|
|
32578
|
+
if (utils$5.isURLSearchParams(data49)) {
|
|
32579
|
+
setContentTypeIfUnset(headers, "application/x-www-form-urlencoded;charset=utf-8");
|
|
32580
|
+
return data49.toString();
|
|
32581
|
+
}
|
|
32582
|
+
if (utils$5.isObject(data49) || headers && headers["Content-Type"] === "application/json") {
|
|
32583
|
+
setContentTypeIfUnset(headers, "application/json");
|
|
32584
|
+
return stringifySafely(data49);
|
|
32585
|
+
}
|
|
32586
|
+
return data49;
|
|
32587
|
+
}],
|
|
32588
|
+
transformResponse: [function transformResponse(data49) {
|
|
32589
|
+
var transitional2 = this.transitional;
|
|
32590
|
+
var silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
|
|
32591
|
+
var forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
|
|
32592
|
+
var strictJSONParsing = !silentJSONParsing && this.responseType === "json";
|
|
32593
|
+
if (strictJSONParsing || forcedJSONParsing && utils$5.isString(data49) && data49.length) {
|
|
32594
|
+
try {
|
|
32595
|
+
return JSON.parse(data49);
|
|
32596
|
+
} catch (e) {
|
|
32597
|
+
if (strictJSONParsing) {
|
|
32598
|
+
if (e.name === "SyntaxError") {
|
|
32599
|
+
throw enhanceError2(e, this, "E_JSON_PARSE");
|
|
33749
32600
|
}
|
|
33750
|
-
|
|
33751
|
-
} catch (err) {
|
|
33752
|
-
_onFinish(err);
|
|
33753
|
-
throw err;
|
|
32601
|
+
throw e;
|
|
33754
32602
|
}
|
|
33755
|
-
},
|
|
33756
|
-
cancel(reason) {
|
|
33757
|
-
_onFinish(reason);
|
|
33758
|
-
return iterator2.return();
|
|
33759
32603
|
}
|
|
33760
|
-
},
|
|
33761
|
-
{
|
|
33762
|
-
highWaterMark: 2
|
|
33763
32604
|
}
|
|
33764
|
-
|
|
33765
|
-
}
|
|
33766
|
-
|
|
33767
|
-
|
|
33768
|
-
|
|
33769
|
-
|
|
33770
|
-
|
|
33771
|
-
|
|
33772
|
-
|
|
33773
|
-
const test = (fn2, ...args) => {
|
|
33774
|
-
try {
|
|
33775
|
-
return !!fn2(...args);
|
|
33776
|
-
} catch (e) {
|
|
33777
|
-
return false;
|
|
32605
|
+
return data49;
|
|
32606
|
+
}],
|
|
32607
|
+
timeout: 0,
|
|
32608
|
+
xsrfCookieName: "XSRF-TOKEN",
|
|
32609
|
+
xsrfHeaderName: "X-XSRF-TOKEN",
|
|
32610
|
+
maxContentLength: -1,
|
|
32611
|
+
maxBodyLength: -1,
|
|
32612
|
+
validateStatus: function validateStatus(status2) {
|
|
32613
|
+
return status2 >= 200 && status2 < 300;
|
|
33778
32614
|
}
|
|
33779
32615
|
};
|
|
33780
|
-
|
|
33781
|
-
|
|
33782
|
-
|
|
33783
|
-
skipUndefined: true
|
|
33784
|
-
},
|
|
33785
|
-
globalFetchAPI,
|
|
33786
|
-
env
|
|
33787
|
-
);
|
|
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;
|
|
32616
|
+
defaults$3.headers = {
|
|
32617
|
+
common: {
|
|
32618
|
+
"Accept": "application/json, text/plain, */*"
|
|
33794
32619
|
}
|
|
33795
|
-
|
|
33796
|
-
|
|
33797
|
-
|
|
33798
|
-
|
|
33799
|
-
|
|
33800
|
-
|
|
33801
|
-
|
|
33802
|
-
|
|
33803
|
-
|
|
33804
|
-
|
|
33805
|
-
|
|
33806
|
-
|
|
33807
|
-
|
|
32620
|
+
};
|
|
32621
|
+
utils$5.forEach(["delete", "get", "head"], function forEachMethodNoData(method) {
|
|
32622
|
+
defaults$3.headers[method] = {};
|
|
32623
|
+
});
|
|
32624
|
+
utils$5.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
|
|
32625
|
+
defaults$3.headers[method] = utils$5.merge(DEFAULT_CONTENT_TYPE);
|
|
32626
|
+
});
|
|
32627
|
+
var defaults_1 = defaults$3;
|
|
32628
|
+
var utils$4 = utils$d;
|
|
32629
|
+
var defaults$2 = defaults_1;
|
|
32630
|
+
var transformData$1 = function transformData(data49, headers, fns) {
|
|
32631
|
+
var context2 = this || defaults$2;
|
|
32632
|
+
utils$4.forEach(fns, function transform(fn2) {
|
|
32633
|
+
data49 = fn2.call(context2, data49, headers);
|
|
33808
32634
|
});
|
|
33809
|
-
|
|
33810
|
-
|
|
33811
|
-
|
|
33812
|
-
|
|
33813
|
-
|
|
33814
|
-
|
|
33815
|
-
|
|
33816
|
-
|
|
33817
|
-
|
|
33818
|
-
|
|
33819
|
-
|
|
33820
|
-
|
|
33821
|
-
|
|
33822
|
-
|
|
33823
|
-
|
|
33824
|
-
|
|
33825
|
-
|
|
33826
|
-
|
|
33827
|
-
|
|
33828
|
-
|
|
33829
|
-
|
|
33830
|
-
|
|
33831
|
-
|
|
33832
|
-
|
|
33833
|
-
|
|
33834
|
-
}
|
|
33835
|
-
|
|
33836
|
-
|
|
33837
|
-
|
|
33838
|
-
|
|
33839
|
-
|
|
33840
|
-
|
|
33841
|
-
}
|
|
33842
|
-
if (utils$1.isArrayBufferView(body) || utils$1.isArrayBuffer(body)) {
|
|
33843
|
-
return body.byteLength;
|
|
33844
|
-
}
|
|
33845
|
-
if (utils$1.isURLSearchParams(body)) {
|
|
33846
|
-
body = body + "";
|
|
33847
|
-
}
|
|
33848
|
-
if (utils$1.isString(body)) {
|
|
33849
|
-
return (await encodeText(body)).byteLength;
|
|
32635
|
+
return data49;
|
|
32636
|
+
};
|
|
32637
|
+
var isCancel$1 = function isCancel(value17) {
|
|
32638
|
+
return !!(value17 && value17.__CANCEL__);
|
|
32639
|
+
};
|
|
32640
|
+
var utils$3 = utils$d;
|
|
32641
|
+
var transformData2 = transformData$1;
|
|
32642
|
+
var isCancel2 = isCancel$1;
|
|
32643
|
+
var defaults$1 = defaults_1;
|
|
32644
|
+
function throwIfCancellationRequested(config2) {
|
|
32645
|
+
if (config2.cancelToken) {
|
|
32646
|
+
config2.cancelToken.throwIfRequested();
|
|
32647
|
+
}
|
|
32648
|
+
}
|
|
32649
|
+
var dispatchRequest$1 = function dispatchRequest(config2) {
|
|
32650
|
+
throwIfCancellationRequested(config2);
|
|
32651
|
+
config2.headers = config2.headers || {};
|
|
32652
|
+
config2.data = transformData2.call(
|
|
32653
|
+
config2,
|
|
32654
|
+
config2.data,
|
|
32655
|
+
config2.headers,
|
|
32656
|
+
config2.transformRequest
|
|
32657
|
+
);
|
|
32658
|
+
config2.headers = utils$3.merge(
|
|
32659
|
+
config2.headers.common || {},
|
|
32660
|
+
config2.headers[config2.method] || {},
|
|
32661
|
+
config2.headers
|
|
32662
|
+
);
|
|
32663
|
+
utils$3.forEach(
|
|
32664
|
+
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
32665
|
+
function cleanHeaderConfig(method) {
|
|
32666
|
+
delete config2.headers[method];
|
|
33850
32667
|
}
|
|
33851
|
-
|
|
33852
|
-
|
|
33853
|
-
|
|
33854
|
-
|
|
33855
|
-
|
|
33856
|
-
|
|
33857
|
-
|
|
33858
|
-
|
|
33859
|
-
|
|
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
|
|
32668
|
+
);
|
|
32669
|
+
var adapter = config2.adapter || defaults$1.adapter;
|
|
32670
|
+
return adapter(config2).then(function onAdapterResolution(response) {
|
|
32671
|
+
throwIfCancellationRequested(config2);
|
|
32672
|
+
response.data = transformData2.call(
|
|
32673
|
+
config2,
|
|
32674
|
+
response.data,
|
|
32675
|
+
response.headers,
|
|
32676
|
+
config2.transformResponse
|
|
33876
32677
|
);
|
|
33877
|
-
|
|
33878
|
-
|
|
33879
|
-
|
|
33880
|
-
|
|
33881
|
-
|
|
33882
|
-
|
|
33883
|
-
|
|
33884
|
-
|
|
33885
|
-
|
|
33886
|
-
|
|
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
|
-
}
|
|
32678
|
+
return response;
|
|
32679
|
+
}, function onAdapterRejection(reason) {
|
|
32680
|
+
if (!isCancel2(reason)) {
|
|
32681
|
+
throwIfCancellationRequested(config2);
|
|
32682
|
+
if (reason && reason.response) {
|
|
32683
|
+
reason.response.data = transformData2.call(
|
|
32684
|
+
config2,
|
|
32685
|
+
reason.response.data,
|
|
32686
|
+
reason.response.headers,
|
|
32687
|
+
config2.transformResponse
|
|
33965
32688
|
);
|
|
33966
32689
|
}
|
|
33967
|
-
throw AxiosError$1.from(err, err && err.code, config2, request, err && err.response);
|
|
33968
32690
|
}
|
|
33969
|
-
|
|
33970
|
-
};
|
|
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;
|
|
33984
|
-
};
|
|
33985
|
-
getFetch();
|
|
33986
|
-
const knownAdapters = {
|
|
33987
|
-
http: httpAdapter,
|
|
33988
|
-
xhr: xhrAdapter,
|
|
33989
|
-
fetch: {
|
|
33990
|
-
get: getFetch
|
|
33991
|
-
}
|
|
32691
|
+
return Promise.reject(reason);
|
|
32692
|
+
});
|
|
33992
32693
|
};
|
|
33993
|
-
utils$
|
|
33994
|
-
|
|
33995
|
-
|
|
33996
|
-
|
|
33997
|
-
|
|
32694
|
+
var utils$2 = utils$d;
|
|
32695
|
+
var mergeConfig$2 = function mergeConfig(config1, config2) {
|
|
32696
|
+
config2 = config2 || {};
|
|
32697
|
+
var config3 = {};
|
|
32698
|
+
var valueFromConfig2Keys = ["url", "method", "data"];
|
|
32699
|
+
var mergeDeepPropertiesKeys = ["headers", "auth", "proxy", "params"];
|
|
32700
|
+
var defaultToConfig2Keys = [
|
|
32701
|
+
"baseURL",
|
|
32702
|
+
"transformRequest",
|
|
32703
|
+
"transformResponse",
|
|
32704
|
+
"paramsSerializer",
|
|
32705
|
+
"timeout",
|
|
32706
|
+
"timeoutMessage",
|
|
32707
|
+
"withCredentials",
|
|
32708
|
+
"adapter",
|
|
32709
|
+
"responseType",
|
|
32710
|
+
"xsrfCookieName",
|
|
32711
|
+
"xsrfHeaderName",
|
|
32712
|
+
"onUploadProgress",
|
|
32713
|
+
"onDownloadProgress",
|
|
32714
|
+
"decompress",
|
|
32715
|
+
"maxContentLength",
|
|
32716
|
+
"maxBodyLength",
|
|
32717
|
+
"maxRedirects",
|
|
32718
|
+
"transport",
|
|
32719
|
+
"httpAgent",
|
|
32720
|
+
"httpsAgent",
|
|
32721
|
+
"cancelToken",
|
|
32722
|
+
"socketPath",
|
|
32723
|
+
"responseEncoding"
|
|
32724
|
+
];
|
|
32725
|
+
var directMergeKeys = ["validateStatus"];
|
|
32726
|
+
function getMergedValue(target2, source2) {
|
|
32727
|
+
if (utils$2.isPlainObject(target2) && utils$2.isPlainObject(source2)) {
|
|
32728
|
+
return utils$2.merge(target2, source2);
|
|
32729
|
+
} else if (utils$2.isPlainObject(source2)) {
|
|
32730
|
+
return utils$2.merge({}, source2);
|
|
32731
|
+
} else if (utils$2.isArray(source2)) {
|
|
32732
|
+
return source2.slice();
|
|
33998
32733
|
}
|
|
33999
|
-
|
|
32734
|
+
return source2;
|
|
34000
32735
|
}
|
|
34001
|
-
|
|
34002
|
-
|
|
34003
|
-
|
|
34004
|
-
|
|
34005
|
-
|
|
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;
|
|
32736
|
+
function mergeDeepProperties(prop) {
|
|
32737
|
+
if (!utils$2.isUndefined(config2[prop])) {
|
|
32738
|
+
config3[prop] = getMergedValue(config1[prop], config2[prop]);
|
|
32739
|
+
} else if (!utils$2.isUndefined(config1[prop])) {
|
|
32740
|
+
config3[prop] = getMergedValue(void 0, config1[prop]);
|
|
34022
32741
|
}
|
|
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
32742
|
}
|
|
34035
|
-
|
|
34036
|
-
|
|
34037
|
-
|
|
34038
|
-
|
|
34039
|
-
|
|
32743
|
+
utils$2.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {
|
|
32744
|
+
if (!utils$2.isUndefined(config2[prop])) {
|
|
32745
|
+
config3[prop] = getMergedValue(void 0, config2[prop]);
|
|
32746
|
+
}
|
|
32747
|
+
});
|
|
32748
|
+
utils$2.forEach(mergeDeepPropertiesKeys, mergeDeepProperties);
|
|
32749
|
+
utils$2.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {
|
|
32750
|
+
if (!utils$2.isUndefined(config2[prop])) {
|
|
32751
|
+
config3[prop] = getMergedValue(void 0, config2[prop]);
|
|
32752
|
+
} else if (!utils$2.isUndefined(config1[prop])) {
|
|
32753
|
+
config3[prop] = getMergedValue(void 0, config1[prop]);
|
|
32754
|
+
}
|
|
32755
|
+
});
|
|
32756
|
+
utils$2.forEach(directMergeKeys, function merge2(prop) {
|
|
32757
|
+
if (prop in config2) {
|
|
32758
|
+
config3[prop] = getMergedValue(config1[prop], config2[prop]);
|
|
32759
|
+
} else if (prop in config1) {
|
|
32760
|
+
config3[prop] = getMergedValue(void 0, config1[prop]);
|
|
32761
|
+
}
|
|
32762
|
+
});
|
|
32763
|
+
var axiosKeys = valueFromConfig2Keys.concat(mergeDeepPropertiesKeys).concat(defaultToConfig2Keys).concat(directMergeKeys);
|
|
32764
|
+
var otherKeys = Object.keys(config1).concat(Object.keys(config2)).filter(function filterAxiosKeys(key) {
|
|
32765
|
+
return axiosKeys.indexOf(key) === -1;
|
|
32766
|
+
});
|
|
32767
|
+
utils$2.forEach(otherKeys, mergeDeepProperties);
|
|
32768
|
+
return config3;
|
|
34040
32769
|
};
|
|
34041
|
-
|
|
34042
|
-
|
|
34043
|
-
|
|
34044
|
-
|
|
34045
|
-
|
|
34046
|
-
|
|
32770
|
+
const name = "axios";
|
|
32771
|
+
const version = "0.21.4";
|
|
32772
|
+
const description = "Promise based HTTP client for the browser and node.js";
|
|
32773
|
+
const main = "index.js";
|
|
32774
|
+
const scripts = {
|
|
32775
|
+
test: "grunt test",
|
|
32776
|
+
start: "node ./sandbox/server.js",
|
|
32777
|
+
build: "NODE_ENV=production grunt build",
|
|
32778
|
+
preversion: "npm test",
|
|
32779
|
+
version: "npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",
|
|
32780
|
+
postversion: "git push && git push --tags",
|
|
32781
|
+
examples: "node ./examples/server.js",
|
|
32782
|
+
coveralls: "cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
|
|
32783
|
+
fix: "eslint --fix lib/**/*.js"
|
|
32784
|
+
};
|
|
32785
|
+
const repository = {
|
|
32786
|
+
type: "git",
|
|
32787
|
+
url: "https://github.com/axios/axios.git"
|
|
32788
|
+
};
|
|
32789
|
+
const keywords = [
|
|
32790
|
+
"xhr",
|
|
32791
|
+
"http",
|
|
32792
|
+
"ajax",
|
|
32793
|
+
"promise",
|
|
32794
|
+
"node"
|
|
32795
|
+
];
|
|
32796
|
+
const author = "Matt Zabriskie";
|
|
32797
|
+
const license = "MIT";
|
|
32798
|
+
const bugs = {
|
|
32799
|
+
url: "https://github.com/axios/axios/issues"
|
|
32800
|
+
};
|
|
32801
|
+
const homepage = "https://axios-http.com";
|
|
32802
|
+
const devDependencies = {
|
|
32803
|
+
coveralls: "^3.0.0",
|
|
32804
|
+
"es6-promise": "^4.2.4",
|
|
32805
|
+
grunt: "^1.3.0",
|
|
32806
|
+
"grunt-banner": "^0.6.0",
|
|
32807
|
+
"grunt-cli": "^1.2.0",
|
|
32808
|
+
"grunt-contrib-clean": "^1.1.0",
|
|
32809
|
+
"grunt-contrib-watch": "^1.0.0",
|
|
32810
|
+
"grunt-eslint": "^23.0.0",
|
|
32811
|
+
"grunt-karma": "^4.0.0",
|
|
32812
|
+
"grunt-mocha-test": "^0.13.3",
|
|
32813
|
+
"grunt-ts": "^6.0.0-beta.19",
|
|
32814
|
+
"grunt-webpack": "^4.0.2",
|
|
32815
|
+
"istanbul-instrumenter-loader": "^1.0.0",
|
|
32816
|
+
"jasmine-core": "^2.4.1",
|
|
32817
|
+
karma: "^6.3.2",
|
|
32818
|
+
"karma-chrome-launcher": "^3.1.0",
|
|
32819
|
+
"karma-firefox-launcher": "^2.1.0",
|
|
32820
|
+
"karma-jasmine": "^1.1.1",
|
|
32821
|
+
"karma-jasmine-ajax": "^0.1.13",
|
|
32822
|
+
"karma-safari-launcher": "^1.0.0",
|
|
32823
|
+
"karma-sauce-launcher": "^4.3.6",
|
|
32824
|
+
"karma-sinon": "^1.0.5",
|
|
32825
|
+
"karma-sourcemap-loader": "^0.3.8",
|
|
32826
|
+
"karma-webpack": "^4.0.2",
|
|
32827
|
+
"load-grunt-tasks": "^3.5.2",
|
|
32828
|
+
minimist: "^1.2.0",
|
|
32829
|
+
mocha: "^8.2.1",
|
|
32830
|
+
sinon: "^4.5.0",
|
|
32831
|
+
"terser-webpack-plugin": "^4.2.3",
|
|
32832
|
+
typescript: "^4.0.5",
|
|
32833
|
+
"url-search-params": "^0.10.0",
|
|
32834
|
+
webpack: "^4.44.2",
|
|
32835
|
+
"webpack-dev-server": "^3.11.0"
|
|
32836
|
+
};
|
|
32837
|
+
const browser = {
|
|
32838
|
+
"./lib/adapters/http.js": "./lib/adapters/xhr.js"
|
|
32839
|
+
};
|
|
32840
|
+
const jsdelivr = "dist/axios.min.js";
|
|
32841
|
+
const unpkg = "dist/axios.min.js";
|
|
32842
|
+
const typings = "./index.d.ts";
|
|
32843
|
+
const dependencies = {
|
|
32844
|
+
"follow-redirects": "^1.14.0"
|
|
32845
|
+
};
|
|
32846
|
+
const bundlesize = [
|
|
32847
|
+
{
|
|
32848
|
+
path: "./dist/axios.min.js",
|
|
32849
|
+
threshold: "5kB"
|
|
34047
32850
|
}
|
|
34048
|
-
|
|
34049
|
-
|
|
34050
|
-
|
|
34051
|
-
|
|
34052
|
-
|
|
34053
|
-
|
|
34054
|
-
|
|
34055
|
-
|
|
34056
|
-
|
|
34057
|
-
|
|
34058
|
-
|
|
34059
|
-
|
|
34060
|
-
|
|
34061
|
-
|
|
34062
|
-
|
|
34063
|
-
|
|
34064
|
-
|
|
34065
|
-
|
|
34066
|
-
|
|
34067
|
-
|
|
34068
|
-
|
|
34069
|
-
|
|
34070
|
-
|
|
34071
|
-
|
|
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) => {
|
|
32851
|
+
];
|
|
32852
|
+
var require$$0 = {
|
|
32853
|
+
name,
|
|
32854
|
+
version,
|
|
32855
|
+
description,
|
|
32856
|
+
main,
|
|
32857
|
+
scripts,
|
|
32858
|
+
repository,
|
|
32859
|
+
keywords,
|
|
32860
|
+
author,
|
|
32861
|
+
license,
|
|
32862
|
+
bugs,
|
|
32863
|
+
homepage,
|
|
32864
|
+
devDependencies,
|
|
32865
|
+
browser,
|
|
32866
|
+
jsdelivr,
|
|
32867
|
+
unpkg,
|
|
32868
|
+
typings,
|
|
32869
|
+
dependencies,
|
|
32870
|
+
bundlesize
|
|
32871
|
+
};
|
|
32872
|
+
var pkg = require$$0;
|
|
32873
|
+
var validators$1 = {};
|
|
32874
|
+
["object", "boolean", "number", "function", "string", "symbol"].forEach(function(type2, i) {
|
|
34083
32875
|
validators$1[type2] = function validator4(thing) {
|
|
34084
32876
|
return typeof thing === type2 || "a" + (i < 1 ? "n " : " ") + type2;
|
|
34085
32877
|
};
|
|
34086
32878
|
});
|
|
34087
|
-
|
|
32879
|
+
var deprecatedWarnings = {};
|
|
32880
|
+
var currentVerArr = pkg.version.split(".");
|
|
32881
|
+
function isOlderVersion(version2, thanVersion) {
|
|
32882
|
+
var pkgVersionArr = thanVersion ? thanVersion.split(".") : currentVerArr;
|
|
32883
|
+
var destVer = version2.split(".");
|
|
32884
|
+
for (var i = 0; i < 3; i++) {
|
|
32885
|
+
if (pkgVersionArr[i] > destVer[i]) {
|
|
32886
|
+
return true;
|
|
32887
|
+
} else if (pkgVersionArr[i] < destVer[i]) {
|
|
32888
|
+
return false;
|
|
32889
|
+
}
|
|
32890
|
+
}
|
|
32891
|
+
return false;
|
|
32892
|
+
}
|
|
34088
32893
|
validators$1.transitional = function transitional(validator4, version2, message) {
|
|
32894
|
+
var isDeprecated = version2 && isOlderVersion(version2);
|
|
34089
32895
|
function formatMessage(opt, desc) {
|
|
34090
|
-
return "[Axios v" +
|
|
32896
|
+
return "[Axios v" + pkg.version + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : "");
|
|
34091
32897
|
}
|
|
34092
|
-
return (value17, opt, opts)
|
|
32898
|
+
return function(value17, opt, opts) {
|
|
34093
32899
|
if (validator4 === false) {
|
|
34094
|
-
throw new
|
|
34095
|
-
formatMessage(opt, " has been removed" + (version2 ? " in " + version2 : "")),
|
|
34096
|
-
AxiosError$1.ERR_DEPRECATED
|
|
34097
|
-
);
|
|
32900
|
+
throw new Error(formatMessage(opt, " has been removed in " + version2));
|
|
34098
32901
|
}
|
|
34099
|
-
if (
|
|
32902
|
+
if (isDeprecated && !deprecatedWarnings[opt]) {
|
|
34100
32903
|
deprecatedWarnings[opt] = true;
|
|
34101
32904
|
console.warn(
|
|
34102
32905
|
formatMessage(
|
|
@@ -34108,419 +32911,216 @@ validators$1.transitional = function transitional(validator4, version2, message)
|
|
|
34108
32911
|
return validator4 ? validator4(value17, opt, opts) : true;
|
|
34109
32912
|
};
|
|
34110
32913
|
};
|
|
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
|
-
};
|
|
34117
32914
|
function assertOptions(options, schema, allowUnknown) {
|
|
34118
32915
|
if (typeof options !== "object") {
|
|
34119
|
-
throw new
|
|
32916
|
+
throw new TypeError("options must be an object");
|
|
34120
32917
|
}
|
|
34121
|
-
|
|
34122
|
-
|
|
32918
|
+
var keys2 = Object.keys(options);
|
|
32919
|
+
var i = keys2.length;
|
|
34123
32920
|
while (i-- > 0) {
|
|
34124
|
-
|
|
34125
|
-
|
|
32921
|
+
var opt = keys2[i];
|
|
32922
|
+
var validator4 = schema[opt];
|
|
34126
32923
|
if (validator4) {
|
|
34127
|
-
|
|
34128
|
-
|
|
32924
|
+
var value17 = options[opt];
|
|
32925
|
+
var result = value17 === void 0 || validator4(value17, opt, options);
|
|
34129
32926
|
if (result !== true) {
|
|
34130
|
-
throw new
|
|
34131
|
-
"option " + opt + " must be " + result,
|
|
34132
|
-
AxiosError$1.ERR_BAD_OPTION_VALUE
|
|
34133
|
-
);
|
|
32927
|
+
throw new TypeError("option " + opt + " must be " + result);
|
|
34134
32928
|
}
|
|
34135
32929
|
continue;
|
|
34136
32930
|
}
|
|
34137
32931
|
if (allowUnknown !== true) {
|
|
34138
|
-
throw
|
|
32932
|
+
throw Error("Unknown option " + opt);
|
|
34139
32933
|
}
|
|
34140
32934
|
}
|
|
34141
32935
|
}
|
|
34142
|
-
var
|
|
32936
|
+
var validator$1 = {
|
|
32937
|
+
isOlderVersion,
|
|
34143
32938
|
assertOptions,
|
|
34144
32939
|
validators: validators$1
|
|
34145
32940
|
};
|
|
34146
|
-
|
|
34147
|
-
|
|
34148
|
-
|
|
34149
|
-
|
|
34150
|
-
|
|
34151
|
-
|
|
34152
|
-
|
|
34153
|
-
|
|
34154
|
-
|
|
34155
|
-
|
|
34156
|
-
|
|
34157
|
-
|
|
34158
|
-
|
|
34159
|
-
|
|
34160
|
-
|
|
34161
|
-
|
|
34162
|
-
|
|
34163
|
-
|
|
34164
|
-
|
|
34165
|
-
|
|
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;
|
|
34173
|
-
}
|
|
32941
|
+
var utils$1 = utils$d;
|
|
32942
|
+
var buildURL2 = buildURL$2;
|
|
32943
|
+
var InterceptorManager = InterceptorManager_1;
|
|
32944
|
+
var dispatchRequest2 = dispatchRequest$1;
|
|
32945
|
+
var mergeConfig$1 = mergeConfig$2;
|
|
32946
|
+
var validator3 = validator$1;
|
|
32947
|
+
var validators = validator3.validators;
|
|
32948
|
+
function Axios$1(instanceConfig) {
|
|
32949
|
+
this.defaults = instanceConfig;
|
|
32950
|
+
this.interceptors = {
|
|
32951
|
+
request: new InterceptorManager(),
|
|
32952
|
+
response: new InterceptorManager()
|
|
32953
|
+
};
|
|
32954
|
+
}
|
|
32955
|
+
Axios$1.prototype.request = function request(config2) {
|
|
32956
|
+
if (typeof config2 === "string") {
|
|
32957
|
+
config2 = arguments[1] || {};
|
|
32958
|
+
config2.url = arguments[0];
|
|
32959
|
+
} else {
|
|
32960
|
+
config2 = config2 || {};
|
|
34174
32961
|
}
|
|
34175
|
-
|
|
34176
|
-
|
|
34177
|
-
|
|
34178
|
-
|
|
34179
|
-
|
|
34180
|
-
|
|
34181
|
-
|
|
34182
|
-
|
|
34183
|
-
|
|
34184
|
-
|
|
34185
|
-
|
|
34186
|
-
|
|
34187
|
-
|
|
34188
|
-
|
|
34189
|
-
|
|
34190
|
-
|
|
34191
|
-
|
|
34192
|
-
|
|
34193
|
-
|
|
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;
|
|
32962
|
+
config2 = mergeConfig$1(this.defaults, config2);
|
|
32963
|
+
if (config2.method) {
|
|
32964
|
+
config2.method = config2.method.toLowerCase();
|
|
32965
|
+
} else if (this.defaults.method) {
|
|
32966
|
+
config2.method = this.defaults.method.toLowerCase();
|
|
32967
|
+
} else {
|
|
32968
|
+
config2.method = "get";
|
|
32969
|
+
}
|
|
32970
|
+
var transitional2 = config2.transitional;
|
|
32971
|
+
if (transitional2 !== void 0) {
|
|
32972
|
+
validator3.assertOptions(transitional2, {
|
|
32973
|
+
silentJSONParsing: validators.transitional(validators.boolean, "1.0.0"),
|
|
32974
|
+
forcedJSONParsing: validators.transitional(validators.boolean, "1.0.0"),
|
|
32975
|
+
clarifyTimeoutError: validators.transitional(validators.boolean, "1.0.0")
|
|
32976
|
+
}, false);
|
|
32977
|
+
}
|
|
32978
|
+
var requestInterceptorChain = [];
|
|
32979
|
+
var synchronousRequestInterceptors = true;
|
|
32980
|
+
this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
|
|
32981
|
+
if (typeof interceptor.runWhen === "function" && interceptor.runWhen(config2) === false) {
|
|
32982
|
+
return;
|
|
34218
32983
|
}
|
|
34219
|
-
|
|
34220
|
-
|
|
34221
|
-
|
|
34222
|
-
|
|
34223
|
-
|
|
34224
|
-
|
|
34225
|
-
|
|
34226
|
-
|
|
34227
|
-
|
|
34228
|
-
|
|
34229
|
-
|
|
34230
|
-
|
|
34231
|
-
|
|
34232
|
-
|
|
34233
|
-
|
|
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
|
-
}
|
|
32984
|
+
synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
|
|
32985
|
+
requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
|
|
32986
|
+
});
|
|
32987
|
+
var responseInterceptorChain = [];
|
|
32988
|
+
this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
|
|
32989
|
+
responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
|
|
32990
|
+
});
|
|
32991
|
+
var promise;
|
|
32992
|
+
if (!synchronousRequestInterceptors) {
|
|
32993
|
+
var chain = [dispatchRequest2, void 0];
|
|
32994
|
+
Array.prototype.unshift.apply(chain, requestInterceptorChain);
|
|
32995
|
+
chain = chain.concat(responseInterceptorChain);
|
|
32996
|
+
promise = Promise.resolve(config2);
|
|
32997
|
+
while (chain.length) {
|
|
32998
|
+
promise = promise.then(chain.shift(), chain.shift());
|
|
34277
32999
|
}
|
|
33000
|
+
return promise;
|
|
33001
|
+
}
|
|
33002
|
+
var newConfig = config2;
|
|
33003
|
+
while (requestInterceptorChain.length) {
|
|
33004
|
+
var onFulfilled = requestInterceptorChain.shift();
|
|
33005
|
+
var onRejected = requestInterceptorChain.shift();
|
|
34278
33006
|
try {
|
|
34279
|
-
|
|
33007
|
+
newConfig = onFulfilled(newConfig);
|
|
34280
33008
|
} catch (error) {
|
|
34281
|
-
|
|
34282
|
-
|
|
34283
|
-
i = 0;
|
|
34284
|
-
len = responseInterceptorChain.length;
|
|
34285
|
-
while (i < len) {
|
|
34286
|
-
promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);
|
|
33009
|
+
onRejected(error);
|
|
33010
|
+
break;
|
|
34287
33011
|
}
|
|
34288
|
-
return promise;
|
|
34289
33012
|
}
|
|
34290
|
-
|
|
34291
|
-
|
|
34292
|
-
|
|
34293
|
-
return
|
|
33013
|
+
try {
|
|
33014
|
+
promise = dispatchRequest2(newConfig);
|
|
33015
|
+
} catch (error) {
|
|
33016
|
+
return Promise.reject(error);
|
|
34294
33017
|
}
|
|
34295
|
-
|
|
34296
|
-
|
|
34297
|
-
|
|
34298
|
-
|
|
34299
|
-
|
|
34300
|
-
|
|
34301
|
-
|
|
34302
|
-
|
|
34303
|
-
|
|
34304
|
-
|
|
33018
|
+
while (responseInterceptorChain.length) {
|
|
33019
|
+
promise = promise.then(responseInterceptorChain.shift(), responseInterceptorChain.shift());
|
|
33020
|
+
}
|
|
33021
|
+
return promise;
|
|
33022
|
+
};
|
|
33023
|
+
Axios$1.prototype.getUri = function getUri(config2) {
|
|
33024
|
+
config2 = mergeConfig$1(this.defaults, config2);
|
|
33025
|
+
return buildURL2(config2.url, config2.params, config2.paramsSerializer).replace(/^\?/, "");
|
|
33026
|
+
};
|
|
33027
|
+
utils$1.forEach(["delete", "get", "head", "options"], function forEachMethodNoData2(method) {
|
|
33028
|
+
Axios$1.prototype[method] = function(url, config2) {
|
|
33029
|
+
return this.request(mergeConfig$1(config2 || {}, {
|
|
33030
|
+
method,
|
|
33031
|
+
url,
|
|
33032
|
+
data: (config2 || {}).data
|
|
33033
|
+
}));
|
|
34305
33034
|
};
|
|
34306
33035
|
});
|
|
34307
|
-
utils$1.forEach(["post", "put", "patch"], function
|
|
34308
|
-
function
|
|
34309
|
-
return
|
|
34310
|
-
|
|
34311
|
-
|
|
34312
|
-
|
|
34313
|
-
|
|
34314
|
-
|
|
34315
|
-
} : {},
|
|
34316
|
-
url,
|
|
34317
|
-
data: data49
|
|
34318
|
-
})
|
|
34319
|
-
);
|
|
34320
|
-
};
|
|
34321
|
-
}
|
|
34322
|
-
Axios.prototype[method] = generateHTTPMethod();
|
|
34323
|
-
Axios.prototype[method + "Form"] = generateHTTPMethod(true);
|
|
33036
|
+
utils$1.forEach(["post", "put", "patch"], function forEachMethodWithData2(method) {
|
|
33037
|
+
Axios$1.prototype[method] = function(url, data49, config2) {
|
|
33038
|
+
return this.request(mergeConfig$1(config2 || {}, {
|
|
33039
|
+
method,
|
|
33040
|
+
url,
|
|
33041
|
+
data: data49
|
|
33042
|
+
}));
|
|
33043
|
+
};
|
|
34324
33044
|
});
|
|
34325
|
-
var
|
|
34326
|
-
|
|
34327
|
-
|
|
34328
|
-
|
|
34329
|
-
|
|
34330
|
-
|
|
34331
|
-
|
|
34332
|
-
|
|
34333
|
-
|
|
34334
|
-
|
|
34335
|
-
|
|
34336
|
-
|
|
34337
|
-
|
|
34338
|
-
|
|
34339
|
-
|
|
34340
|
-
|
|
34341
|
-
|
|
34342
|
-
|
|
34343
|
-
|
|
34344
|
-
|
|
34345
|
-
|
|
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);
|
|
34372
|
-
return;
|
|
34373
|
-
}
|
|
34374
|
-
if (this._listeners) {
|
|
34375
|
-
this._listeners.push(listener);
|
|
34376
|
-
} else {
|
|
34377
|
-
this._listeners = [listener];
|
|
34378
|
-
}
|
|
34379
|
-
}
|
|
34380
|
-
unsubscribe(listener) {
|
|
34381
|
-
if (!this._listeners) {
|
|
33045
|
+
var Axios_1 = Axios$1;
|
|
33046
|
+
function Cancel$1(message) {
|
|
33047
|
+
this.message = message;
|
|
33048
|
+
}
|
|
33049
|
+
Cancel$1.prototype.toString = function toString2() {
|
|
33050
|
+
return "Cancel" + (this.message ? ": " + this.message : "");
|
|
33051
|
+
};
|
|
33052
|
+
Cancel$1.prototype.__CANCEL__ = true;
|
|
33053
|
+
var Cancel_1 = Cancel$1;
|
|
33054
|
+
var Cancel = Cancel_1;
|
|
33055
|
+
function CancelToken(executor) {
|
|
33056
|
+
if (typeof executor !== "function") {
|
|
33057
|
+
throw new TypeError("executor must be a function.");
|
|
33058
|
+
}
|
|
33059
|
+
var resolvePromise;
|
|
33060
|
+
this.promise = new Promise(function promiseExecutor(resolve) {
|
|
33061
|
+
resolvePromise = resolve;
|
|
33062
|
+
});
|
|
33063
|
+
var token = this;
|
|
33064
|
+
executor(function cancel2(message) {
|
|
33065
|
+
if (token.reason) {
|
|
34382
33066
|
return;
|
|
34383
33067
|
}
|
|
34384
|
-
|
|
34385
|
-
|
|
34386
|
-
|
|
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
|
-
}
|
|
33068
|
+
token.reason = new Cancel(message);
|
|
33069
|
+
resolvePromise(token.reason);
|
|
33070
|
+
});
|
|
34408
33071
|
}
|
|
34409
|
-
|
|
34410
|
-
|
|
33072
|
+
CancelToken.prototype.throwIfRequested = function throwIfRequested() {
|
|
33073
|
+
if (this.reason) {
|
|
33074
|
+
throw this.reason;
|
|
33075
|
+
}
|
|
33076
|
+
};
|
|
33077
|
+
CancelToken.source = function source() {
|
|
33078
|
+
var cancel2;
|
|
33079
|
+
var token = new CancelToken(function executor(c) {
|
|
33080
|
+
cancel2 = c;
|
|
33081
|
+
});
|
|
33082
|
+
return {
|
|
33083
|
+
token,
|
|
33084
|
+
cancel: cancel2
|
|
33085
|
+
};
|
|
33086
|
+
};
|
|
33087
|
+
var CancelToken_1 = CancelToken;
|
|
33088
|
+
var spread = function spread2(callback2) {
|
|
34411
33089
|
return function wrap(arr) {
|
|
34412
33090
|
return callback2.apply(null, arr);
|
|
34413
33091
|
};
|
|
34414
|
-
}
|
|
34415
|
-
function
|
|
34416
|
-
return
|
|
34417
|
-
}
|
|
34418
|
-
|
|
34419
|
-
|
|
34420
|
-
|
|
34421
|
-
|
|
34422
|
-
|
|
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;
|
|
33092
|
+
};
|
|
33093
|
+
var isAxiosError = function isAxiosError2(payload) {
|
|
33094
|
+
return typeof payload === "object" && payload.isAxiosError === true;
|
|
33095
|
+
};
|
|
33096
|
+
var utils = utils$d;
|
|
33097
|
+
var bind2 = bind$2;
|
|
33098
|
+
var Axios = Axios_1;
|
|
33099
|
+
var mergeConfig2 = mergeConfig$2;
|
|
33100
|
+
var defaults = defaults_1;
|
|
34493
33101
|
function createInstance(defaultConfig2) {
|
|
34494
|
-
|
|
34495
|
-
|
|
34496
|
-
utils
|
|
34497
|
-
utils
|
|
34498
|
-
instance2.create = function create(instanceConfig) {
|
|
34499
|
-
return createInstance(mergeConfig(defaultConfig2, instanceConfig));
|
|
34500
|
-
};
|
|
33102
|
+
var context2 = new Axios(defaultConfig2);
|
|
33103
|
+
var instance2 = bind2(Axios.prototype.request, context2);
|
|
33104
|
+
utils.extend(instance2, Axios.prototype, context2);
|
|
33105
|
+
utils.extend(instance2, context2);
|
|
34501
33106
|
return instance2;
|
|
34502
33107
|
}
|
|
34503
|
-
|
|
34504
|
-
axios.Axios = Axios
|
|
34505
|
-
axios.
|
|
34506
|
-
axios.
|
|
34507
|
-
|
|
34508
|
-
axios.
|
|
34509
|
-
axios.
|
|
34510
|
-
axios.
|
|
34511
|
-
axios.
|
|
34512
|
-
axios.all = function all(promises) {
|
|
33108
|
+
var axios$1 = createInstance(defaults);
|
|
33109
|
+
axios$1.Axios = Axios;
|
|
33110
|
+
axios$1.create = function create(instanceConfig) {
|
|
33111
|
+
return createInstance(mergeConfig2(axios$1.defaults, instanceConfig));
|
|
33112
|
+
};
|
|
33113
|
+
axios$1.Cancel = Cancel_1;
|
|
33114
|
+
axios$1.CancelToken = CancelToken_1;
|
|
33115
|
+
axios$1.isCancel = isCancel$1;
|
|
33116
|
+
axios$1.all = function all(promises) {
|
|
34513
33117
|
return Promise.all(promises);
|
|
34514
33118
|
};
|
|
34515
|
-
axios.spread = spread;
|
|
34516
|
-
axios.isAxiosError = isAxiosError;
|
|
34517
|
-
axios.
|
|
34518
|
-
axios.
|
|
34519
|
-
axios
|
|
34520
|
-
axios.getAdapter = adapters.getAdapter;
|
|
34521
|
-
axios.HttpStatusCode = HttpStatusCode$1;
|
|
34522
|
-
axios.default = axios;
|
|
34523
|
-
var axiosSrc = axios;
|
|
33119
|
+
axios$1.spread = spread;
|
|
33120
|
+
axios$1.isAxiosError = isAxiosError;
|
|
33121
|
+
axios$2.exports = axios$1;
|
|
33122
|
+
axios$2.exports.default = axios$1;
|
|
33123
|
+
var axios = axios$2.exports;
|
|
34524
33124
|
const isHb = location.pathname.includes("scyxweb");
|
|
34525
33125
|
const userAgent = navigator.userAgent.toLowerCase();
|
|
34526
33126
|
const isQywx = /wxwork/.test(userAgent) ? true : false;
|
|
@@ -34789,7 +33389,7 @@ const pluginLogin = (store2, router, targetRoute) => {
|
|
|
34789
33389
|
store2.commit("setToken", "");
|
|
34790
33390
|
if (isHb) {
|
|
34791
33391
|
let url = location.protocol + "//" + location.host + "/scyxgateway/ind-uc-ext-server/sso/hb/ssoHbWxLogin";
|
|
34792
|
-
axios$
|
|
33392
|
+
axios$3.get(url).then(async (resp) => {
|
|
34793
33393
|
setToken(resp.token);
|
|
34794
33394
|
localStorage.setItem("v8-token", resp.token);
|
|
34795
33395
|
sessionStorage.setItem("lambo-token", resp.token);
|
|
@@ -34819,7 +33419,7 @@ const pluginLogin = (store2, router, targetRoute) => {
|
|
|
34819
33419
|
} else {
|
|
34820
33420
|
console.log("1111`111");
|
|
34821
33421
|
if (code2) {
|
|
34822
|
-
axios$
|
|
33422
|
+
axios$3.get("/ind-uc-ext-server/sso/xtbg/auth/appLogin?code=" + code2).then(async (resp) => {
|
|
34823
33423
|
setToken(resp.token);
|
|
34824
33424
|
resolve({ token: resp.token });
|
|
34825
33425
|
}).catch((e) => {
|
|
@@ -34835,7 +33435,7 @@ const pluginLogin = (store2, router, targetRoute) => {
|
|
|
34835
33435
|
Code.postMessage("");
|
|
34836
33436
|
window.getCode = function(res) {
|
|
34837
33437
|
console.log("getCode res", res);
|
|
34838
|
-
axios$
|
|
33438
|
+
axios$3.get("/ind-uc-ext-server/sso/ssoAppLogin?code=" + res).then(async (resp) => {
|
|
34839
33439
|
setToken(resp.token);
|
|
34840
33440
|
resolve({ token: resp.token });
|
|
34841
33441
|
}).catch((e) => {
|
|
@@ -34887,7 +33487,7 @@ const checkLogin = async () => {
|
|
|
34887
33487
|
try {
|
|
34888
33488
|
let token = getToken();
|
|
34889
33489
|
console.log("checkLogin token", token);
|
|
34890
|
-
const resp = await
|
|
33490
|
+
const resp = await axios.get(`${config.authServerContext}/manage/user/getCurrentInfo`, {
|
|
34891
33491
|
params: {},
|
|
34892
33492
|
headers: {
|
|
34893
33493
|
token
|
|
@@ -35282,11 +33882,11 @@ const install = function(Vue2, opts = { theme: "" }) {
|
|
|
35282
33882
|
doChangeTheme(theme);
|
|
35283
33883
|
if (location.pathname.includes("scyxweb")) {
|
|
35284
33884
|
let url = location.protocol + "//" + location.host + "/hbwebchat/scyxweb/ind-mobile/manage/global?t=" + new Date().getTime();
|
|
35285
|
-
axios$
|
|
33885
|
+
axios$3.get(url).then((data49) => {
|
|
35286
33886
|
Vue2.prototype.$config = _.merge({}, Vue2.prototype.$config || {}, data49);
|
|
35287
33887
|
});
|
|
35288
33888
|
}
|
|
35289
|
-
Vue2.ready = axios$
|
|
33889
|
+
Vue2.ready = axios$3.get(`/user-manage-server/anon/system/qrySystemConfig`, { params: { deviceType: "11" } }).then((response) => {
|
|
35290
33890
|
var _a;
|
|
35291
33891
|
try {
|
|
35292
33892
|
const ret = JSON.parse(((_a = response == null ? void 0 : response.data) == null ? void 0 : _a.settingInfo) || "{}");
|
|
@@ -35320,8 +33920,10 @@ const install = function(Vue2, opts = { theme: "" }) {
|
|
|
35320
33920
|
localStorage.setItem("systemDefaultConfig", JSON.stringify(ret));
|
|
35321
33921
|
console.log("\u9996\u6B21\u5B58\u50A8\u914D\u7F6E");
|
|
35322
33922
|
}
|
|
35323
|
-
if (ret.systemDefaultConfig.changeUI == "1") {
|
|
35324
|
-
doChangeTheme(
|
|
33923
|
+
if (ret.systemDefaultConfig.changeUI == "1" || ret.systemDefaultConfig.inputBorderTheme == "1") {
|
|
33924
|
+
doChangeTheme(
|
|
33925
|
+
theme + (ret.systemDefaultConfig.changeUI == "1" ? " " + ret.systemDefaultConfig.theme : "") + (ret.systemDefaultConfig.inputBorderTheme == "1" ? " ind-input-border-theme" : "")
|
|
33926
|
+
);
|
|
35325
33927
|
}
|
|
35326
33928
|
return ret;
|
|
35327
33929
|
} catch (error) {
|
|
@@ -35353,7 +33955,7 @@ if (typeof window !== "undefined" && window.Vue) {
|
|
|
35353
33955
|
install(window.Vue);
|
|
35354
33956
|
}
|
|
35355
33957
|
const API = {
|
|
35356
|
-
version: pkg.version,
|
|
33958
|
+
version: pkg$1.version,
|
|
35357
33959
|
install,
|
|
35358
33960
|
components,
|
|
35359
33961
|
plugins,
|