@das-fed/upf-utils 6.4.0-dev.170 → 6.4.0-dev.171
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/api-services/es5.js +4622 -0
- package/api-services/i18n/es5.js +53 -0
- package/api-services/index.js +593 -611
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/index.js +487 -505
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/index.js +880 -880
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/index.js +479 -497
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/index.js +490 -508
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/index.js +473 -491
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/index.js +490 -508
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/es5.js +4569 -0
- package/api-services/modules/file/index.js +942 -978
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/index.js +880 -880
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +1022 -1058
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/index.js +831 -849
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/index.js +881 -881
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/index.js +698 -712
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/index.js +880 -880
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/index.js +880 -880
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/index.js +619 -641
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/index.js +880 -880
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/index.js +847 -883
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/index.js +479 -497
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/index.js +882 -882
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/index.js +490 -508
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/index.js +490 -508
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/index.js +880 -880
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/index.js +865 -901
- package/api-services/src/create-service/index.js.gz +0 -0
- package/atob/es5.js +9 -0
- package/common-info/es5.js +201 -0
- package/common-info/getIframeUrl/es5.js +16 -0
- package/common-info/getInfoFromUrl/es5.js +91 -0
- package/common-info/index.js +18 -18
- package/common-info/index.js.gz +0 -0
- package/common-info/set-personal-info/es5.js +2210 -0
- package/common-info/set-personal-info/index.js +172 -189
- package/common-info/set-personal-info/index.js.gz +0 -0
- package/common-tools/arr-tools/es5.js +11 -0
- package/common-tools/calc-text-width/es5.js +8 -0
- package/common-tools/date-format/es5.js +18 -0
- package/common-tools/es5.js +14 -0
- package/common-tools/extract-file-name/es5.js +2211 -0
- package/common-tools/extract-file-name/index.js +138 -155
- package/common-tools/extract-file-name/index.js.gz +0 -0
- package/common-tools/get-file-extension/es5.js +5 -0
- package/common-tools/get-url-params/es5.js +101 -0
- package/common-tools/handle-data/es5.js +146 -0
- package/common-tools/handle-data/index.js +28 -28
- package/common-tools/handle-data/index.js.gz +0 -0
- package/common-tools/nest-tree-format/es5.js +53 -0
- package/common-tools/obj-tools/es5.js +13 -0
- package/common-tools/platform-tools/es5.js +19 -0
- package/common-tools/queue-promise/es5.js +13 -0
- package/common-tools/setHtmlMinWH/es5.js +6 -0
- package/common-tools/update-browser-title/es5.js +54 -0
- package/common-tools/update-fav-icon/es5.js +73 -0
- package/config/es5.js +15 -0
- package/create-api-service/check-token/es5.js +2305 -0
- package/create-api-service/check-token/index.js +158 -175
- package/create-api-service/check-token/index.js.gz +0 -0
- package/create-api-service/es5.js +3947 -0
- package/create-api-service/i18n/es5.js +33 -0
- package/create-api-service/index.js +503 -521
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/proxy-sso/es5.js +33 -0
- package/create-api-service/sso/es5.js +2815 -0
- package/create-api-service/sso/index.js +309 -327
- package/create-api-service/sso/index.js.gz +0 -0
- package/curring-http/es5.js +2913 -0
- package/curring-http/index.js +285 -303
- package/curring-http/index.js.gz +0 -0
- package/dimple-canvas/es5.js +1 -0
- package/directive/auth/es5.js +94 -0
- package/directive/clickOutside/es5.js +85 -0
- package/directive/es5.js +3 -0
- package/directive/hoverInside/es5.js +59 -0
- package/directive/utils/es5.js +36 -0
- package/dom-check-in/es5.js +11 -0
- package/dom-watcher/es5.js +13 -0
- package/hooks/use-get-auth/es5.js +199 -0
- package/hooks/use-get-auth/index.js +22 -22
- package/hooks/use-get-auth/index.js.gz +0 -0
- package/load-js/es5.js +13 -0
- package/nextTiken/es5.js +64 -0
- package/oss/es5.js +10 -0
- package/package.json +7 -4
- package/pinyin-first-character/es5.js +9311 -0
- package/pinyin-first-character/index.js +24 -24
- package/pinyin-first-character/index.js.gz +0 -0
- package/process-engine-info/es5.js +15 -0
- package/pure-image-src/es5.js +28 -0
- package/size-watcher/es5.js +32 -0
- package/style/es5.js +134 -0
- package/token-tools/es5.js +21 -0
- package/use-low-code/es5.js +115 -0
- package/use-low-code/index.js +2 -2
- package/use-low-code/index.js.gz +0 -0
- package/vue/es5.js +1 -0
- package/webSocket-service/es5.js +120 -0
- package/with-install/es5.js +6 -0
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { currentLang as Qe } from "@das-fed/upf-web/packages/i18n/index";
|
|
2
2
|
import { getProjectInfo as Ze } from "@das-fed/upf-utils/common-info";
|
|
3
3
|
import { getConfig as Ye } from "@das-fed/upf-utils/config";
|
|
4
|
-
function
|
|
4
|
+
function Ce(e, t) {
|
|
5
5
|
return function() {
|
|
6
6
|
return e.apply(t, arguments);
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
|
-
const { toString: et } = Object.prototype, { getPrototypeOf: le } = Object, { iterator: v, toStringTag:
|
|
9
|
+
const { toString: et } = Object.prototype, { getPrototypeOf: le } = Object, { iterator: v, toStringTag: Ne } = Symbol, K = /* @__PURE__ */ ((e) => (t) => {
|
|
10
10
|
const n = et.call(t);
|
|
11
11
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
12
12
|
})(/* @__PURE__ */ Object.create(null)), C = (e) => (e = e.toLowerCase(), (t) => K(t) === e), X = (e) => (t) => typeof t === e, { isArray: D } = Array, q = X("undefined");
|
|
13
13
|
function tt(e) {
|
|
14
14
|
return e !== null && !q(e) && e.constructor !== null && !q(e.constructor) && A(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
15
15
|
}
|
|
16
|
-
const
|
|
16
|
+
const Pe = C("ArrayBuffer");
|
|
17
17
|
function nt(e) {
|
|
18
18
|
let t;
|
|
19
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer &&
|
|
19
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Pe(e.buffer), t;
|
|
20
20
|
}
|
|
21
|
-
const rt = X("string"), A = X("function"),
|
|
21
|
+
const rt = X("string"), A = X("function"), _e = X("number"), G = (e) => e !== null && typeof e == "object", st = (e) => e === !0 || e === !1, z = (e) => {
|
|
22
22
|
if (K(e) !== "object")
|
|
23
23
|
return !1;
|
|
24
24
|
const t = le(e);
|
|
25
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(
|
|
25
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Ne in e) && !(v in e);
|
|
26
26
|
}, ot = C("Date"), it = C("File"), at = C("Blob"), ct = C("FileList"), lt = (e) => G(e) && A(e.pipe), ut = (e) => {
|
|
27
27
|
let t;
|
|
28
28
|
return e && (typeof FormData == "function" && e instanceof FormData || A(e.append) && ((t = K(e)) === "formdata" || // detect form-data instance
|
|
@@ -51,9 +51,9 @@ function Fe(e, t) {
|
|
|
51
51
|
return s;
|
|
52
52
|
return null;
|
|
53
53
|
}
|
|
54
|
-
const U = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global,
|
|
54
|
+
const U = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Ue = (e) => !q(e) && e !== U;
|
|
55
55
|
function re() {
|
|
56
|
-
const { caseless: e } =
|
|
56
|
+
const { caseless: e } = Ue(this) && this || {}, t = {}, n = (r, s) => {
|
|
57
57
|
const o = e && Fe(t, s) || s;
|
|
58
58
|
z(t[o]) && z(r) ? t[o] = re(t[o], r) : z(r) ? t[o] = re({}, r) : D(r) ? t[o] = r.slice() : t[o] = r;
|
|
59
59
|
};
|
|
@@ -62,12 +62,12 @@ function re() {
|
|
|
62
62
|
return t;
|
|
63
63
|
}
|
|
64
64
|
const bt = (e, t, n, { allOwnKeys: r } = {}) => (I(t, (s, o) => {
|
|
65
|
-
n && A(s) ? e[o] =
|
|
65
|
+
n && A(s) ? e[o] = Ce(s, n) : e[o] = s;
|
|
66
66
|
}, { allOwnKeys: r }), e), wt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Et = (e, t, n, r) => {
|
|
67
67
|
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
68
68
|
value: t.prototype
|
|
69
69
|
}), n && Object.assign(e.prototype, n);
|
|
70
|
-
},
|
|
70
|
+
}, Rt = (e, t, n, r) => {
|
|
71
71
|
let s, o, i;
|
|
72
72
|
const c = {};
|
|
73
73
|
if (t = t || {}, e == null) return t;
|
|
@@ -77,7 +77,7 @@ const bt = (e, t, n, { allOwnKeys: r } = {}) => (I(t, (s, o) => {
|
|
|
77
77
|
e = n !== !1 && le(e);
|
|
78
78
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
79
79
|
return t;
|
|
80
|
-
},
|
|
80
|
+
}, gt = (e, t, n) => {
|
|
81
81
|
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
82
82
|
const r = e.indexOf(t, n);
|
|
83
83
|
return r !== -1 && r === n;
|
|
@@ -85,7 +85,7 @@ const bt = (e, t, n, { allOwnKeys: r } = {}) => (I(t, (s, o) => {
|
|
|
85
85
|
if (!e) return null;
|
|
86
86
|
if (D(e)) return e;
|
|
87
87
|
let t = e.length;
|
|
88
|
-
if (!
|
|
88
|
+
if (!_e(t)) return null;
|
|
89
89
|
const n = new Array(t);
|
|
90
90
|
for (; t-- > 0; )
|
|
91
91
|
n[t] = e[t];
|
|
@@ -108,14 +108,14 @@ const bt = (e, t, n, { allOwnKeys: r } = {}) => (I(t, (s, o) => {
|
|
|
108
108
|
function(n, r, s) {
|
|
109
109
|
return r.toUpperCase() + s;
|
|
110
110
|
}
|
|
111
|
-
),
|
|
111
|
+
), he = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Nt = C("RegExp"), Le = (e, t) => {
|
|
112
112
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
113
113
|
I(n, (s, o) => {
|
|
114
114
|
let i;
|
|
115
115
|
(i = t(s, o, e)) !== !1 && (r[o] = i || s);
|
|
116
116
|
}), Object.defineProperties(e, r);
|
|
117
117
|
}, Pt = (e) => {
|
|
118
|
-
|
|
118
|
+
Le(e, (t, n) => {
|
|
119
119
|
if (A(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
120
120
|
return !1;
|
|
121
121
|
const r = e[n];
|
|
@@ -129,17 +129,17 @@ const bt = (e, t, n, { allOwnKeys: r } = {}) => (I(t, (s, o) => {
|
|
|
129
129
|
});
|
|
130
130
|
}
|
|
131
131
|
});
|
|
132
|
-
},
|
|
132
|
+
}, _t = (e, t) => {
|
|
133
133
|
const n = {}, r = (s) => {
|
|
134
134
|
s.forEach((o) => {
|
|
135
135
|
n[o] = !0;
|
|
136
136
|
});
|
|
137
137
|
};
|
|
138
138
|
return D(e) ? r(e) : r(String(e).split(t)), n;
|
|
139
|
-
},
|
|
139
|
+
}, Ft = () => {
|
|
140
140
|
}, Ut = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
141
141
|
function Lt(e) {
|
|
142
|
-
return !!(e && A(e.append) && e[
|
|
142
|
+
return !!(e && A(e.append) && e[Ne] === "FormData" && e[v]);
|
|
143
143
|
}
|
|
144
144
|
const Bt = (e) => {
|
|
145
145
|
const t = new Array(10), n = (r, s) => {
|
|
@@ -158,21 +158,21 @@ const Bt = (e) => {
|
|
|
158
158
|
return r;
|
|
159
159
|
};
|
|
160
160
|
return n(e, 0);
|
|
161
|
-
}, Dt = C("AsyncFunction"), kt = (e) => e && (G(e) || A(e)) && A(e.then) && A(e.catch),
|
|
161
|
+
}, Dt = C("AsyncFunction"), kt = (e) => e && (G(e) || A(e)) && A(e.then) && A(e.catch), Be = ((e, t) => e ? setImmediate : t ? ((n, r) => (U.addEventListener("message", ({ source: s, data: o }) => {
|
|
162
162
|
s === U && o === n && r.length && r.shift()();
|
|
163
163
|
}, !1), (s) => {
|
|
164
164
|
r.push(s), U.postMessage(n, "*");
|
|
165
165
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
166
166
|
typeof setImmediate == "function",
|
|
167
167
|
A(U.postMessage)
|
|
168
|
-
), jt = typeof queueMicrotask < "u" ? queueMicrotask.bind(U) : typeof process < "u" && process.nextTick ||
|
|
168
|
+
), jt = typeof queueMicrotask < "u" ? queueMicrotask.bind(U) : typeof process < "u" && process.nextTick || Be, qt = (e) => e != null && A(e[v]), a = {
|
|
169
169
|
isArray: D,
|
|
170
|
-
isArrayBuffer:
|
|
170
|
+
isArrayBuffer: Pe,
|
|
171
171
|
isBuffer: tt,
|
|
172
172
|
isFormData: ut,
|
|
173
173
|
isArrayBufferView: nt,
|
|
174
174
|
isString: rt,
|
|
175
|
-
isNumber:
|
|
175
|
+
isNumber: _e,
|
|
176
176
|
isBoolean: st,
|
|
177
177
|
isObject: G,
|
|
178
178
|
isPlainObject: z,
|
|
@@ -196,31 +196,31 @@ const Bt = (e) => {
|
|
|
196
196
|
trim: yt,
|
|
197
197
|
stripBOM: wt,
|
|
198
198
|
inherits: Et,
|
|
199
|
-
toFlatObject:
|
|
199
|
+
toFlatObject: Rt,
|
|
200
200
|
kindOf: K,
|
|
201
201
|
kindOfTest: C,
|
|
202
|
-
endsWith:
|
|
202
|
+
endsWith: gt,
|
|
203
203
|
toArray: St,
|
|
204
204
|
forEachEntry: Tt,
|
|
205
205
|
matchAll: At,
|
|
206
206
|
isHTMLForm: xt,
|
|
207
|
-
hasOwnProperty:
|
|
208
|
-
hasOwnProp:
|
|
207
|
+
hasOwnProperty: he,
|
|
208
|
+
hasOwnProp: he,
|
|
209
209
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
210
|
-
reduceDescriptors:
|
|
210
|
+
reduceDescriptors: Le,
|
|
211
211
|
freezeMethods: Pt,
|
|
212
|
-
toObjectSet:
|
|
212
|
+
toObjectSet: _t,
|
|
213
213
|
toCamelCase: Ct,
|
|
214
|
-
noop:
|
|
214
|
+
noop: Ft,
|
|
215
215
|
toFiniteNumber: Ut,
|
|
216
216
|
findKey: Fe,
|
|
217
217
|
global: U,
|
|
218
|
-
isContextDefined:
|
|
218
|
+
isContextDefined: Ue,
|
|
219
219
|
isSpecCompliantForm: Lt,
|
|
220
220
|
toJSONObject: Bt,
|
|
221
221
|
isAsyncFn: Dt,
|
|
222
222
|
isThenable: kt,
|
|
223
|
-
setImmediate:
|
|
223
|
+
setImmediate: Be,
|
|
224
224
|
asap: jt,
|
|
225
225
|
isIterable: qt
|
|
226
226
|
};
|
|
@@ -248,7 +248,7 @@ a.inherits(m, Error, {
|
|
|
248
248
|
};
|
|
249
249
|
}
|
|
250
250
|
});
|
|
251
|
-
const
|
|
251
|
+
const De = m.prototype, ke = {};
|
|
252
252
|
[
|
|
253
253
|
"ERR_BAD_OPTION_VALUE",
|
|
254
254
|
"ERR_BAD_OPTION",
|
|
@@ -264,12 +264,12 @@ const Be = m.prototype, De = {};
|
|
|
264
264
|
"ERR_INVALID_URL"
|
|
265
265
|
// eslint-disable-next-line func-names
|
|
266
266
|
].forEach((e) => {
|
|
267
|
-
|
|
267
|
+
ke[e] = { value: e };
|
|
268
268
|
});
|
|
269
|
-
Object.defineProperties(m,
|
|
270
|
-
Object.defineProperty(
|
|
269
|
+
Object.defineProperties(m, ke);
|
|
270
|
+
Object.defineProperty(De, "isAxiosError", { value: !0 });
|
|
271
271
|
m.from = (e, t, n, r, s, o) => {
|
|
272
|
-
const i = Object.create(
|
|
272
|
+
const i = Object.create(De);
|
|
273
273
|
return a.toFlatObject(e, i, function(f) {
|
|
274
274
|
return f !== Error.prototype;
|
|
275
275
|
}, (c) => c !== "isAxiosError"), m.call(i, e.message, t, n, r, s), i.cause = e, i.name = e.name, o && Object.assign(i, o), i;
|
|
@@ -278,18 +278,18 @@ const It = null;
|
|
|
278
278
|
function se(e) {
|
|
279
279
|
return a.isPlainObject(e) || a.isArray(e);
|
|
280
280
|
}
|
|
281
|
-
function
|
|
281
|
+
function je(e) {
|
|
282
282
|
return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
283
283
|
}
|
|
284
|
-
function
|
|
284
|
+
function me(e, t, n) {
|
|
285
285
|
return e ? e.concat(t).map(function(s, o) {
|
|
286
|
-
return s =
|
|
286
|
+
return s = je(s), !n && o ? "[" + s + "]" : s;
|
|
287
287
|
}).join(n ? "." : "") : t;
|
|
288
288
|
}
|
|
289
|
-
function
|
|
289
|
+
function Mt(e) {
|
|
290
290
|
return a.isArray(e) && !e.some(se);
|
|
291
291
|
}
|
|
292
|
-
const
|
|
292
|
+
const Ht = a.toFlatObject(a, {}, null, function(t) {
|
|
293
293
|
return /^is[A-Z]/.test(t);
|
|
294
294
|
});
|
|
295
295
|
function Q(e, t, n) {
|
|
@@ -320,42 +320,42 @@ function Q(e, t, n) {
|
|
|
320
320
|
if (d && !h && typeof d == "object") {
|
|
321
321
|
if (a.endsWith(y, "{}"))
|
|
322
322
|
y = r ? y : y.slice(0, -2), d = JSON.stringify(d);
|
|
323
|
-
else if (a.isArray(d) &&
|
|
324
|
-
return y =
|
|
323
|
+
else if (a.isArray(d) && Mt(d) || (a.isFileList(d) || a.endsWith(y, "[]")) && (w = a.toArray(d)))
|
|
324
|
+
return y = je(y), w.forEach(function(S, P) {
|
|
325
325
|
!(a.isUndefined(S) || S === null) && t.append(
|
|
326
326
|
// eslint-disable-next-line no-nested-ternary
|
|
327
|
-
i === !0 ?
|
|
327
|
+
i === !0 ? me([y], P, o) : i === null ? y : y + "[]",
|
|
328
328
|
l(S)
|
|
329
329
|
);
|
|
330
330
|
}), !1;
|
|
331
331
|
}
|
|
332
|
-
return se(d) ? !0 : (t.append(
|
|
332
|
+
return se(d) ? !0 : (t.append(me(h, y, o), l(d)), !1);
|
|
333
333
|
}
|
|
334
|
-
const p = [], b = Object.assign(
|
|
334
|
+
const p = [], b = Object.assign(Ht, {
|
|
335
335
|
defaultVisitor: u,
|
|
336
336
|
convertValue: l,
|
|
337
337
|
isVisitable: se
|
|
338
338
|
});
|
|
339
|
-
function
|
|
339
|
+
function R(d, y) {
|
|
340
340
|
if (!a.isUndefined(d)) {
|
|
341
341
|
if (p.indexOf(d) !== -1)
|
|
342
342
|
throw Error("Circular reference detected in " + y.join("."));
|
|
343
|
-
p.push(d), a.forEach(d, function(w,
|
|
343
|
+
p.push(d), a.forEach(d, function(w, g) {
|
|
344
344
|
(!(a.isUndefined(w) || w === null) && s.call(
|
|
345
345
|
t,
|
|
346
346
|
w,
|
|
347
|
-
a.isString(
|
|
347
|
+
a.isString(g) ? g.trim() : g,
|
|
348
348
|
y,
|
|
349
349
|
b
|
|
350
|
-
)) === !0 &&
|
|
350
|
+
)) === !0 && R(w, y ? y.concat(g) : [g]);
|
|
351
351
|
}), p.pop();
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
354
|
if (!a.isObject(e))
|
|
355
355
|
throw new TypeError("data must be an object");
|
|
356
|
-
return
|
|
356
|
+
return R(e), t;
|
|
357
357
|
}
|
|
358
|
-
function
|
|
358
|
+
function ye(e) {
|
|
359
359
|
const t = {
|
|
360
360
|
"!": "%21",
|
|
361
361
|
"'": "%27",
|
|
@@ -372,14 +372,14 @@ function me(e) {
|
|
|
372
372
|
function ue(e, t) {
|
|
373
373
|
this._pairs = [], e && Q(e, this, t);
|
|
374
374
|
}
|
|
375
|
-
const
|
|
376
|
-
|
|
375
|
+
const qe = ue.prototype;
|
|
376
|
+
qe.append = function(t, n) {
|
|
377
377
|
this._pairs.push([t, n]);
|
|
378
378
|
};
|
|
379
|
-
|
|
379
|
+
qe.toString = function(t) {
|
|
380
380
|
const n = t ? function(r) {
|
|
381
|
-
return t.call(this, r,
|
|
382
|
-
} :
|
|
381
|
+
return t.call(this, r, ye);
|
|
382
|
+
} : ye;
|
|
383
383
|
return this._pairs.map(function(s) {
|
|
384
384
|
return n(s[0]) + "=" + n(s[1]);
|
|
385
385
|
}, "").join("&");
|
|
@@ -387,7 +387,7 @@ je.toString = function(t) {
|
|
|
387
387
|
function zt(e) {
|
|
388
388
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
389
389
|
}
|
|
390
|
-
function
|
|
390
|
+
function Ie(e, t, n) {
|
|
391
391
|
if (!t)
|
|
392
392
|
return e;
|
|
393
393
|
const r = n && n.encode || zt;
|
|
@@ -402,7 +402,7 @@ function qe(e, t, n) {
|
|
|
402
402
|
}
|
|
403
403
|
return e;
|
|
404
404
|
}
|
|
405
|
-
class
|
|
405
|
+
class be {
|
|
406
406
|
constructor() {
|
|
407
407
|
this.handlers = [];
|
|
408
408
|
}
|
|
@@ -456,16 +456,16 @@ class ye {
|
|
|
456
456
|
});
|
|
457
457
|
}
|
|
458
458
|
}
|
|
459
|
-
const
|
|
459
|
+
const Me = {
|
|
460
460
|
silentJSONParsing: !0,
|
|
461
461
|
forcedJSONParsing: !0,
|
|
462
462
|
clarifyTimeoutError: !1
|
|
463
|
-
},
|
|
463
|
+
}, Jt = typeof URLSearchParams < "u" ? URLSearchParams : ue, Vt = typeof FormData < "u" ? FormData : null, $t = typeof Blob < "u" ? Blob : null, Wt = {
|
|
464
464
|
isBrowser: !0,
|
|
465
465
|
classes: {
|
|
466
|
-
URLSearchParams:
|
|
467
|
-
FormData:
|
|
468
|
-
Blob:
|
|
466
|
+
URLSearchParams: Jt,
|
|
467
|
+
FormData: Vt,
|
|
468
|
+
Blob: $t
|
|
469
469
|
},
|
|
470
470
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
471
471
|
}, fe = typeof window < "u" && typeof document < "u", oe = typeof navigator == "object" && navigator || void 0, vt = fe && (!oe || ["ReactNative", "NativeScript", "NS"].indexOf(oe.product) < 0), Kt = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
@@ -522,10 +522,10 @@ function en(e, t, n) {
|
|
|
522
522
|
if (r.name !== "SyntaxError")
|
|
523
523
|
throw r;
|
|
524
524
|
}
|
|
525
|
-
return (
|
|
525
|
+
return (0, JSON.stringify)(e);
|
|
526
526
|
}
|
|
527
|
-
const
|
|
528
|
-
transitional:
|
|
527
|
+
const M = {
|
|
528
|
+
transitional: Me,
|
|
529
529
|
adapter: ["xhr", "http", "fetch"],
|
|
530
530
|
transformRequest: [function(t, n) {
|
|
531
531
|
const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = a.isObject(t);
|
|
@@ -553,7 +553,7 @@ const H = {
|
|
|
553
553
|
return o || s ? (n.setContentType("application/json", !1), en(t)) : t;
|
|
554
554
|
}],
|
|
555
555
|
transformResponse: [function(t) {
|
|
556
|
-
const n = this.transitional ||
|
|
556
|
+
const n = this.transitional || M.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
|
|
557
557
|
if (a.isResponse(t) || a.isReadableStream(t))
|
|
558
558
|
return t;
|
|
559
559
|
if (t && a.isString(t) && (r && !this.responseType || s)) {
|
|
@@ -591,7 +591,7 @@ const H = {
|
|
|
591
591
|
}
|
|
592
592
|
};
|
|
593
593
|
a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
594
|
-
|
|
594
|
+
M.headers[e] = {};
|
|
595
595
|
});
|
|
596
596
|
const tn = a.toObjectSet([
|
|
597
597
|
"age",
|
|
@@ -618,12 +618,12 @@ const tn = a.toObjectSet([
|
|
|
618
618
|
`).forEach(function(i) {
|
|
619
619
|
s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && tn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
620
620
|
}), t;
|
|
621
|
-
},
|
|
621
|
+
}, we = Symbol("internals");
|
|
622
622
|
function j(e) {
|
|
623
623
|
return e && String(e).trim().toLowerCase();
|
|
624
624
|
}
|
|
625
|
-
function
|
|
626
|
-
return e === !1 || e == null ? e : a.isArray(e) ? e.map(
|
|
625
|
+
function J(e) {
|
|
626
|
+
return e === !1 || e == null ? e : a.isArray(e) ? e.map(J) : String(e);
|
|
627
627
|
}
|
|
628
628
|
function rn(e) {
|
|
629
629
|
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
@@ -657,7 +657,7 @@ function an(e, t) {
|
|
|
657
657
|
});
|
|
658
658
|
});
|
|
659
659
|
}
|
|
660
|
-
|
|
660
|
+
class x {
|
|
661
661
|
constructor(t) {
|
|
662
662
|
t && this.set(t);
|
|
663
663
|
}
|
|
@@ -668,7 +668,7 @@ let x = class {
|
|
|
668
668
|
if (!u)
|
|
669
669
|
throw new Error("header name must be a non-empty string");
|
|
670
670
|
const p = a.findKey(s, u);
|
|
671
|
-
(!p || s[p] === void 0 || l === !0 || l === void 0 && s[p] !== !1) && (s[p || f] =
|
|
671
|
+
(!p || s[p] === void 0 || l === !0 || l === void 0 && s[p] !== !1) && (s[p || f] = J(c));
|
|
672
672
|
}
|
|
673
673
|
const i = (c, f) => a.forEach(c, (l, u) => o(l, u, f));
|
|
674
674
|
if (a.isPlainObject(t) || t instanceof this.constructor)
|
|
@@ -736,11 +736,11 @@ let x = class {
|
|
|
736
736
|
return a.forEach(this, (s, o) => {
|
|
737
737
|
const i = a.findKey(r, o);
|
|
738
738
|
if (i) {
|
|
739
|
-
n[i] =
|
|
739
|
+
n[i] = J(s), delete n[o];
|
|
740
740
|
return;
|
|
741
741
|
}
|
|
742
742
|
const c = t ? on(o) : String(o).trim();
|
|
743
|
-
c !== o && delete n[o], n[c] =
|
|
743
|
+
c !== o && delete n[o], n[c] = J(s), r[c] = !0;
|
|
744
744
|
}), this;
|
|
745
745
|
}
|
|
746
746
|
concat(...t) {
|
|
@@ -773,7 +773,7 @@ let x = class {
|
|
|
773
773
|
return n.forEach((s) => r.set(s)), r;
|
|
774
774
|
}
|
|
775
775
|
static accessor(t) {
|
|
776
|
-
const r = (this[
|
|
776
|
+
const r = (this[we] = this[we] = {
|
|
777
777
|
accessors: {}
|
|
778
778
|
}).accessors, s = this.prototype;
|
|
779
779
|
function o(i) {
|
|
@@ -782,7 +782,7 @@ let x = class {
|
|
|
782
782
|
}
|
|
783
783
|
return a.isArray(t) ? t.forEach(o) : o(t), this;
|
|
784
784
|
}
|
|
785
|
-
}
|
|
785
|
+
}
|
|
786
786
|
x.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
787
787
|
a.reduceDescriptors(x.prototype, ({ value: e }, t) => {
|
|
788
788
|
let n = t[0].toUpperCase() + t.slice(1);
|
|
@@ -795,13 +795,13 @@ a.reduceDescriptors(x.prototype, ({ value: e }, t) => {
|
|
|
795
795
|
});
|
|
796
796
|
a.freezeMethods(x);
|
|
797
797
|
function te(e, t) {
|
|
798
|
-
const n = this ||
|
|
798
|
+
const n = this || M, r = t || n, s = x.from(r.headers);
|
|
799
799
|
let o = r.data;
|
|
800
800
|
return a.forEach(e, function(c) {
|
|
801
801
|
o = c.call(n, o, s.normalize(), t ? t.status : void 0);
|
|
802
802
|
}), s.normalize(), o;
|
|
803
803
|
}
|
|
804
|
-
function
|
|
804
|
+
function ze(e) {
|
|
805
805
|
return !!(e && e.__CANCEL__);
|
|
806
806
|
}
|
|
807
807
|
function k(e, t, n) {
|
|
@@ -810,7 +810,7 @@ function k(e, t, n) {
|
|
|
810
810
|
a.inherits(k, m, {
|
|
811
811
|
__CANCEL__: !0
|
|
812
812
|
});
|
|
813
|
-
function
|
|
813
|
+
function Je(e, t, n) {
|
|
814
814
|
const r = n.config.validateStatus;
|
|
815
815
|
!n.status || !r || r(n.status) ? e(n) : t(new m(
|
|
816
816
|
"Request failed with status code " + n.status,
|
|
@@ -836,8 +836,8 @@ function ln(e, t) {
|
|
|
836
836
|
b += n[p++], p = p % e;
|
|
837
837
|
if (s = (s + 1) % e, s === o && (o = (o + 1) % e), l - i < t)
|
|
838
838
|
return;
|
|
839
|
-
const
|
|
840
|
-
return
|
|
839
|
+
const R = u && l - u;
|
|
840
|
+
return R ? Math.round(b * 1e3 / R) : void 0;
|
|
841
841
|
};
|
|
842
842
|
}
|
|
843
843
|
function un(e, t) {
|
|
@@ -852,7 +852,7 @@ function un(e, t) {
|
|
|
852
852
|
}, r - p)));
|
|
853
853
|
}, () => s && i(s)];
|
|
854
854
|
}
|
|
855
|
-
const
|
|
855
|
+
const $ = (e, t, n = 3) => {
|
|
856
856
|
let r = 0;
|
|
857
857
|
const s = ln(50, 250);
|
|
858
858
|
return un((o) => {
|
|
@@ -871,14 +871,14 @@ const V = (e, t, n = 3) => {
|
|
|
871
871
|
};
|
|
872
872
|
e(p);
|
|
873
873
|
}, n);
|
|
874
|
-
},
|
|
874
|
+
}, Ee = (e, t) => {
|
|
875
875
|
const n = e != null;
|
|
876
876
|
return [(r) => t[0]({
|
|
877
877
|
lengthComputable: n,
|
|
878
878
|
total: e,
|
|
879
879
|
loaded: r
|
|
880
880
|
}), t[1]];
|
|
881
|
-
},
|
|
881
|
+
}, Re = (e) => (...t) => a.asap(() => e(...t)), fn = O.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, O.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
|
|
882
882
|
new URL(O.origin),
|
|
883
883
|
O.navigator && /(msie|trident)/i.test(O.navigator.userAgent)
|
|
884
884
|
) : () => !0, dn = O.hasStandardBrowserEnv ? (
|
|
@@ -914,7 +914,7 @@ function pn(e) {
|
|
|
914
914
|
function hn(e, t) {
|
|
915
915
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
916
916
|
}
|
|
917
|
-
function
|
|
917
|
+
function Ve(e, t, n) {
|
|
918
918
|
let r = !pn(t);
|
|
919
919
|
return e && (r || n == !1) ? hn(e, t) : t;
|
|
920
920
|
}
|
|
@@ -983,10 +983,10 @@ function B(e, t) {
|
|
|
983
983
|
a.isUndefined(b) && p !== c || (n[u] = b);
|
|
984
984
|
}), n;
|
|
985
985
|
}
|
|
986
|
-
const
|
|
986
|
+
const $e = (e) => {
|
|
987
987
|
const t = B({}, e);
|
|
988
988
|
let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: c } = t;
|
|
989
|
-
t.headers = i = x.from(i), t.url =
|
|
989
|
+
t.headers = i = x.from(i), t.url = Ie(Ve(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), c && i.set(
|
|
990
990
|
"Authorization",
|
|
991
991
|
"Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
|
|
992
992
|
);
|
|
@@ -1006,12 +1006,12 @@ const Je = (e) => {
|
|
|
1006
1006
|
return t;
|
|
1007
1007
|
}, mn = typeof XMLHttpRequest < "u", yn = mn && function(e) {
|
|
1008
1008
|
return new Promise(function(n, r) {
|
|
1009
|
-
const s =
|
|
1009
|
+
const s = $e(e);
|
|
1010
1010
|
let o = s.data;
|
|
1011
1011
|
const i = x.from(s.headers).normalize();
|
|
1012
|
-
let { responseType: c, onUploadProgress: f, onDownloadProgress: l } = s, u, p, b,
|
|
1012
|
+
let { responseType: c, onUploadProgress: f, onDownloadProgress: l } = s, u, p, b, R, d;
|
|
1013
1013
|
function y() {
|
|
1014
|
-
|
|
1014
|
+
R && R(), d && d(), s.cancelToken && s.cancelToken.unsubscribe(u), s.signal && s.signal.removeEventListener("abort", u);
|
|
1015
1015
|
}
|
|
1016
1016
|
let h = new XMLHttpRequest();
|
|
1017
1017
|
h.open(s.method.toUpperCase(), s.url, !0), h.timeout = s.timeout;
|
|
@@ -1028,10 +1028,10 @@ const Je = (e) => {
|
|
|
1028
1028
|
config: e,
|
|
1029
1029
|
request: h
|
|
1030
1030
|
};
|
|
1031
|
-
|
|
1032
|
-
n(
|
|
1033
|
-
}, function(
|
|
1034
|
-
r(
|
|
1031
|
+
Je(function(F) {
|
|
1032
|
+
n(F), y();
|
|
1033
|
+
}, function(F) {
|
|
1034
|
+
r(F), y();
|
|
1035
1035
|
}, T), h = null;
|
|
1036
1036
|
}
|
|
1037
1037
|
"onloadend" in h ? h.onloadend = w : h.onreadystatechange = function() {
|
|
@@ -1042,7 +1042,7 @@ const Je = (e) => {
|
|
|
1042
1042
|
r(new m("Network Error", m.ERR_NETWORK, e, h)), h = null;
|
|
1043
1043
|
}, h.ontimeout = function() {
|
|
1044
1044
|
let P = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
1045
|
-
const T = s.transitional ||
|
|
1045
|
+
const T = s.transitional || Me;
|
|
1046
1046
|
s.timeoutErrorMessage && (P = s.timeoutErrorMessage), r(new m(
|
|
1047
1047
|
P,
|
|
1048
1048
|
T.clarifyTimeoutError ? m.ETIMEDOUT : m.ECONNABORTED,
|
|
@@ -1051,12 +1051,12 @@ const Je = (e) => {
|
|
|
1051
1051
|
)), h = null;
|
|
1052
1052
|
}, o === void 0 && i.setContentType(null), "setRequestHeader" in h && a.forEach(i.toJSON(), function(P, T) {
|
|
1053
1053
|
h.setRequestHeader(T, P);
|
|
1054
|
-
}), a.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), c && c !== "json" && (h.responseType = s.responseType), l && ([b, d] =
|
|
1054
|
+
}), a.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), c && c !== "json" && (h.responseType = s.responseType), l && ([b, d] = $(l, !0), h.addEventListener("progress", b)), f && h.upload && ([p, R] = $(f), h.upload.addEventListener("progress", p), h.upload.addEventListener("loadend", R)), (s.cancelToken || s.signal) && (u = (S) => {
|
|
1055
1055
|
h && (r(!S || S.type ? new k(null, e, h) : S), h.abort(), h = null);
|
|
1056
1056
|
}, s.cancelToken && s.cancelToken.subscribe(u), s.signal && (s.signal.aborted ? u() : s.signal.addEventListener("abort", u)));
|
|
1057
|
-
const
|
|
1058
|
-
if (
|
|
1059
|
-
r(new m("Unsupported protocol " +
|
|
1057
|
+
const g = cn(s.url);
|
|
1058
|
+
if (g && O.protocols.indexOf(g) === -1) {
|
|
1059
|
+
r(new m("Unsupported protocol " + g + ":", m.ERR_BAD_REQUEST, e));
|
|
1060
1060
|
return;
|
|
1061
1061
|
}
|
|
1062
1062
|
h.send(o || null);
|
|
@@ -1094,9 +1094,9 @@ const Je = (e) => {
|
|
|
1094
1094
|
for (; r < n; )
|
|
1095
1095
|
s = r + t, yield e.slice(r, s), r = s;
|
|
1096
1096
|
}, En = async function* (e, t) {
|
|
1097
|
-
for await (const n of
|
|
1097
|
+
for await (const n of Rn(e))
|
|
1098
1098
|
yield* wn(n, t);
|
|
1099
|
-
},
|
|
1099
|
+
}, Rn = async function* (e) {
|
|
1100
1100
|
if (e[Symbol.asyncIterator]) {
|
|
1101
1101
|
yield* e;
|
|
1102
1102
|
return;
|
|
@@ -1112,7 +1112,7 @@ const Je = (e) => {
|
|
|
1112
1112
|
} finally {
|
|
1113
1113
|
await t.cancel();
|
|
1114
1114
|
}
|
|
1115
|
-
},
|
|
1115
|
+
}, Se = (e, t, n, r) => {
|
|
1116
1116
|
const s = En(e, t);
|
|
1117
1117
|
let o = 0, i, c = (f) => {
|
|
1118
1118
|
i || (i = !0, r && r(f));
|
|
@@ -1141,13 +1141,13 @@ const Je = (e) => {
|
|
|
1141
1141
|
}, {
|
|
1142
1142
|
highWaterMark: 2
|
|
1143
1143
|
});
|
|
1144
|
-
}, Z = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function",
|
|
1144
|
+
}, Z = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", We = Z && typeof ReadableStream == "function", gn = Z && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), ve = (e, ...t) => {
|
|
1145
1145
|
try {
|
|
1146
1146
|
return !!e(...t);
|
|
1147
1147
|
} catch {
|
|
1148
1148
|
return !1;
|
|
1149
1149
|
}
|
|
1150
|
-
}, Sn =
|
|
1150
|
+
}, Sn = We && ve(() => {
|
|
1151
1151
|
let e = !1;
|
|
1152
1152
|
const t = new Request(O.origin, {
|
|
1153
1153
|
body: new ReadableStream(),
|
|
@@ -1157,7 +1157,7 @@ const Je = (e) => {
|
|
|
1157
1157
|
}
|
|
1158
1158
|
}).headers.has("Content-Type");
|
|
1159
1159
|
return e && !t;
|
|
1160
|
-
}),
|
|
1160
|
+
}), Oe = 64 * 1024, ie = We && ve(() => a.isReadableStream(new Response("").body)), W = {
|
|
1161
1161
|
stream: ie && ((e) => e.body)
|
|
1162
1162
|
};
|
|
1163
1163
|
Z && ((e) => {
|
|
@@ -1180,7 +1180,7 @@ const On = async (e) => {
|
|
|
1180
1180
|
if (a.isArrayBufferView(e) || a.isArrayBuffer(e))
|
|
1181
1181
|
return e.byteLength;
|
|
1182
1182
|
if (a.isURLSearchParams(e) && (e = e + ""), a.isString(e))
|
|
1183
|
-
return (await
|
|
1183
|
+
return (await gn(e)).byteLength;
|
|
1184
1184
|
}, Tn = async (e, t) => {
|
|
1185
1185
|
const n = a.toFiniteNumber(e.getContentLength());
|
|
1186
1186
|
return n ?? On(t);
|
|
@@ -1198,11 +1198,11 @@ const On = async (e) => {
|
|
|
1198
1198
|
headers: u,
|
|
1199
1199
|
withCredentials: p = "same-origin",
|
|
1200
1200
|
fetchOptions: b
|
|
1201
|
-
} =
|
|
1201
|
+
} = $e(e);
|
|
1202
1202
|
l = l ? (l + "").toLowerCase() : "text";
|
|
1203
|
-
let
|
|
1204
|
-
const y =
|
|
1205
|
-
|
|
1203
|
+
let R = bn([s, o && o.toAbortSignal()], i), d;
|
|
1204
|
+
const y = R && R.unsubscribe && (() => {
|
|
1205
|
+
R.unsubscribe();
|
|
1206
1206
|
});
|
|
1207
1207
|
let h;
|
|
1208
1208
|
try {
|
|
@@ -1211,52 +1211,52 @@ const On = async (e) => {
|
|
|
1211
1211
|
method: "POST",
|
|
1212
1212
|
body: r,
|
|
1213
1213
|
duplex: "half"
|
|
1214
|
-
}),
|
|
1215
|
-
if (a.isFormData(r) && (
|
|
1216
|
-
const [
|
|
1214
|
+
}), _;
|
|
1215
|
+
if (a.isFormData(r) && (_ = T.headers.get("content-type")) && u.setContentType(_), T.body) {
|
|
1216
|
+
const [F, H] = Ee(
|
|
1217
1217
|
h,
|
|
1218
|
-
|
|
1218
|
+
$(Re(f))
|
|
1219
1219
|
);
|
|
1220
|
-
r =
|
|
1220
|
+
r = Se(T.body, Oe, F, H);
|
|
1221
1221
|
}
|
|
1222
1222
|
}
|
|
1223
1223
|
a.isString(p) || (p = p ? "include" : "omit");
|
|
1224
1224
|
const w = "credentials" in Request.prototype;
|
|
1225
1225
|
d = new Request(t, {
|
|
1226
1226
|
...b,
|
|
1227
|
-
signal:
|
|
1227
|
+
signal: R,
|
|
1228
1228
|
method: n.toUpperCase(),
|
|
1229
1229
|
headers: u.normalize().toJSON(),
|
|
1230
1230
|
body: r,
|
|
1231
1231
|
duplex: "half",
|
|
1232
1232
|
credentials: w ? p : void 0
|
|
1233
1233
|
});
|
|
1234
|
-
let
|
|
1234
|
+
let g = await fetch(d, b);
|
|
1235
1235
|
const S = ie && (l === "stream" || l === "response");
|
|
1236
1236
|
if (ie && (c || S && y)) {
|
|
1237
1237
|
const T = {};
|
|
1238
|
-
["status", "statusText", "headers"].forEach((
|
|
1239
|
-
T[
|
|
1238
|
+
["status", "statusText", "headers"].forEach((pe) => {
|
|
1239
|
+
T[pe] = g[pe];
|
|
1240
1240
|
});
|
|
1241
|
-
const
|
|
1242
|
-
|
|
1243
|
-
|
|
1241
|
+
const _ = a.toFiniteNumber(g.headers.get("content-length")), [F, H] = c && Ee(
|
|
1242
|
+
_,
|
|
1243
|
+
$(Re(c), !0)
|
|
1244
1244
|
) || [];
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1245
|
+
g = new Response(
|
|
1246
|
+
Se(g.body, Oe, F, () => {
|
|
1247
|
+
H && H(), y && y();
|
|
1248
1248
|
}),
|
|
1249
1249
|
T
|
|
1250
1250
|
);
|
|
1251
1251
|
}
|
|
1252
1252
|
l = l || "text";
|
|
1253
|
-
let P = await W[a.findKey(W, l) || "text"](
|
|
1254
|
-
return !S && y && y(), await new Promise((T,
|
|
1255
|
-
|
|
1253
|
+
let P = await W[a.findKey(W, l) || "text"](g, e);
|
|
1254
|
+
return !S && y && y(), await new Promise((T, _) => {
|
|
1255
|
+
Je(T, _, {
|
|
1256
1256
|
data: P,
|
|
1257
|
-
headers: x.from(
|
|
1258
|
-
status:
|
|
1259
|
-
statusText:
|
|
1257
|
+
headers: x.from(g.headers),
|
|
1258
|
+
status: g.status,
|
|
1259
|
+
statusText: g.statusText,
|
|
1260
1260
|
config: e,
|
|
1261
1261
|
request: d
|
|
1262
1262
|
});
|
|
@@ -1283,7 +1283,7 @@ a.forEach(ae, (e, t) => {
|
|
|
1283
1283
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
1284
1284
|
}
|
|
1285
1285
|
});
|
|
1286
|
-
const
|
|
1286
|
+
const Te = (e) => `- ${e}`, xn = (e) => a.isFunction(e) || e === null || e === !1, Ke = {
|
|
1287
1287
|
getAdapter: (e) => {
|
|
1288
1288
|
e = a.isArray(e) ? e : [e];
|
|
1289
1289
|
const { length: t } = e;
|
|
@@ -1303,8 +1303,8 @@ const Oe = (e) => `- ${e}`, xn = (e) => a.isFunction(e) || e === null || e === !
|
|
|
1303
1303
|
([c, f]) => `adapter ${c} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1304
1304
|
);
|
|
1305
1305
|
let i = t ? o.length > 1 ? `since :
|
|
1306
|
-
` + o.map(
|
|
1307
|
-
`) : " " +
|
|
1306
|
+
` + o.map(Te).join(`
|
|
1307
|
+
`) : " " + Te(o[0]) : "as no adapter specified";
|
|
1308
1308
|
throw new m(
|
|
1309
1309
|
"There is no suitable adapter to dispatch the request " + i,
|
|
1310
1310
|
"ERR_NOT_SUPPORT"
|
|
@@ -1318,34 +1318,34 @@ function ne(e) {
|
|
|
1318
1318
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1319
1319
|
throw new k(null, e);
|
|
1320
1320
|
}
|
|
1321
|
-
function
|
|
1321
|
+
function Ae(e) {
|
|
1322
1322
|
return ne(e), e.headers = x.from(e.headers), e.data = te.call(
|
|
1323
1323
|
e,
|
|
1324
1324
|
e.transformRequest
|
|
1325
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
1325
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Ke.getAdapter(e.adapter || M.adapter)(e).then(function(r) {
|
|
1326
1326
|
return ne(e), r.data = te.call(
|
|
1327
1327
|
e,
|
|
1328
1328
|
e.transformResponse,
|
|
1329
1329
|
r
|
|
1330
1330
|
), r.headers = x.from(r.headers), r;
|
|
1331
1331
|
}, function(r) {
|
|
1332
|
-
return
|
|
1332
|
+
return ze(r) || (ne(e), r && r.response && (r.response.data = te.call(
|
|
1333
1333
|
e,
|
|
1334
1334
|
e.transformResponse,
|
|
1335
1335
|
r.response
|
|
1336
1336
|
), r.response.headers = x.from(r.response.headers))), Promise.reject(r);
|
|
1337
1337
|
});
|
|
1338
1338
|
}
|
|
1339
|
-
const
|
|
1339
|
+
const Xe = "1.10.0", Y = {};
|
|
1340
1340
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1341
1341
|
Y[e] = function(r) {
|
|
1342
1342
|
return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1343
1343
|
};
|
|
1344
1344
|
});
|
|
1345
|
-
const
|
|
1345
|
+
const xe = {};
|
|
1346
1346
|
Y.transitional = function(t, n, r) {
|
|
1347
1347
|
function s(o, i) {
|
|
1348
|
-
return "[Axios v" +
|
|
1348
|
+
return "[Axios v" + Xe + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
|
|
1349
1349
|
}
|
|
1350
1350
|
return (o, i, c) => {
|
|
1351
1351
|
if (t === !1)
|
|
@@ -1353,7 +1353,7 @@ Y.transitional = function(t, n, r) {
|
|
|
1353
1353
|
s(i, " has been removed" + (n ? " in " + n : "")),
|
|
1354
1354
|
m.ERR_DEPRECATED
|
|
1355
1355
|
);
|
|
1356
|
-
return n && !
|
|
1356
|
+
return n && !xe[i] && (xe[i] = !0), t ? t(o, i, c) : !0;
|
|
1357
1357
|
};
|
|
1358
1358
|
};
|
|
1359
1359
|
Y.spelling = function(t) {
|
|
@@ -1376,15 +1376,15 @@ function Cn(e, t, n) {
|
|
|
1376
1376
|
throw new m("Unknown option " + o, m.ERR_BAD_OPTION);
|
|
1377
1377
|
}
|
|
1378
1378
|
}
|
|
1379
|
-
const
|
|
1379
|
+
const V = {
|
|
1380
1380
|
assertOptions: Cn,
|
|
1381
1381
|
validators: Y
|
|
1382
|
-
}, N =
|
|
1383
|
-
|
|
1382
|
+
}, N = V.validators;
|
|
1383
|
+
class L {
|
|
1384
1384
|
constructor(t) {
|
|
1385
1385
|
this.defaults = t || {}, this.interceptors = {
|
|
1386
|
-
request: new
|
|
1387
|
-
response: new
|
|
1386
|
+
request: new be(),
|
|
1387
|
+
response: new be()
|
|
1388
1388
|
};
|
|
1389
1389
|
}
|
|
1390
1390
|
/**
|
|
@@ -1415,16 +1415,16 @@ let L = class {
|
|
|
1415
1415
|
_request(t, n) {
|
|
1416
1416
|
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = B(this.defaults, n);
|
|
1417
1417
|
const { transitional: r, paramsSerializer: s, headers: o } = n;
|
|
1418
|
-
r !== void 0 &&
|
|
1418
|
+
r !== void 0 && V.assertOptions(r, {
|
|
1419
1419
|
silentJSONParsing: N.transitional(N.boolean),
|
|
1420
1420
|
forcedJSONParsing: N.transitional(N.boolean),
|
|
1421
1421
|
clarifyTimeoutError: N.transitional(N.boolean)
|
|
1422
1422
|
}, !1), s != null && (a.isFunction(s) ? n.paramsSerializer = {
|
|
1423
1423
|
serialize: s
|
|
1424
|
-
} :
|
|
1424
|
+
} : V.assertOptions(s, {
|
|
1425
1425
|
encode: N.function,
|
|
1426
1426
|
serialize: N.function
|
|
1427
|
-
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0),
|
|
1427
|
+
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), V.assertOptions(n, {
|
|
1428
1428
|
baseUrl: N.spelling("baseURL"),
|
|
1429
1429
|
withXsrfToken: N.spelling("withXSRFToken")
|
|
1430
1430
|
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
@@ -1449,24 +1449,24 @@ let L = class {
|
|
|
1449
1449
|
});
|
|
1450
1450
|
let u, p = 0, b;
|
|
1451
1451
|
if (!f) {
|
|
1452
|
-
const d = [
|
|
1452
|
+
const d = [Ae.bind(this), void 0];
|
|
1453
1453
|
for (d.unshift.apply(d, c), d.push.apply(d, l), b = d.length, u = Promise.resolve(n); p < b; )
|
|
1454
1454
|
u = u.then(d[p++], d[p++]);
|
|
1455
1455
|
return u;
|
|
1456
1456
|
}
|
|
1457
1457
|
b = c.length;
|
|
1458
|
-
let
|
|
1458
|
+
let R = n;
|
|
1459
1459
|
for (p = 0; p < b; ) {
|
|
1460
1460
|
const d = c[p++], y = c[p++];
|
|
1461
1461
|
try {
|
|
1462
|
-
|
|
1462
|
+
R = d(R);
|
|
1463
1463
|
} catch (h) {
|
|
1464
1464
|
y.call(this, h);
|
|
1465
1465
|
break;
|
|
1466
1466
|
}
|
|
1467
1467
|
}
|
|
1468
1468
|
try {
|
|
1469
|
-
u =
|
|
1469
|
+
u = Ae.call(this, R);
|
|
1470
1470
|
} catch (d) {
|
|
1471
1471
|
return Promise.reject(d);
|
|
1472
1472
|
}
|
|
@@ -1476,10 +1476,10 @@ let L = class {
|
|
|
1476
1476
|
}
|
|
1477
1477
|
getUri(t) {
|
|
1478
1478
|
t = B(this.defaults, t);
|
|
1479
|
-
const n =
|
|
1480
|
-
return
|
|
1479
|
+
const n = Ve(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
1480
|
+
return Ie(n, t.params, t.paramsSerializer);
|
|
1481
1481
|
}
|
|
1482
|
-
}
|
|
1482
|
+
}
|
|
1483
1483
|
a.forEach(["delete", "get", "head", "options"], function(t) {
|
|
1484
1484
|
L.prototype[t] = function(n, r) {
|
|
1485
1485
|
return this.request(B(r || {}, {
|
|
@@ -1504,7 +1504,7 @@ a.forEach(["post", "put", "patch"], function(t) {
|
|
|
1504
1504
|
}
|
|
1505
1505
|
L.prototype[t] = n(), L.prototype[t + "Form"] = n(!0);
|
|
1506
1506
|
});
|
|
1507
|
-
|
|
1507
|
+
class de {
|
|
1508
1508
|
constructor(t) {
|
|
1509
1509
|
if (typeof t != "function")
|
|
1510
1510
|
throw new TypeError("executor must be a function.");
|
|
@@ -1570,19 +1570,19 @@ let Nn = class Xe {
|
|
|
1570
1570
|
static source() {
|
|
1571
1571
|
let t;
|
|
1572
1572
|
return {
|
|
1573
|
-
token: new
|
|
1573
|
+
token: new de(function(s) {
|
|
1574
1574
|
t = s;
|
|
1575
1575
|
}),
|
|
1576
1576
|
cancel: t
|
|
1577
1577
|
};
|
|
1578
1578
|
}
|
|
1579
|
-
}
|
|
1580
|
-
function
|
|
1579
|
+
}
|
|
1580
|
+
function Nn(e) {
|
|
1581
1581
|
return function(n) {
|
|
1582
1582
|
return e.apply(null, n);
|
|
1583
1583
|
};
|
|
1584
1584
|
}
|
|
1585
|
-
function
|
|
1585
|
+
function Pn(e) {
|
|
1586
1586
|
return a.isObject(e) && e.isAxiosError === !0;
|
|
1587
1587
|
}
|
|
1588
1588
|
const ce = {
|
|
@@ -1654,49 +1654,32 @@ Object.entries(ce).forEach(([e, t]) => {
|
|
|
1654
1654
|
ce[t] = e;
|
|
1655
1655
|
});
|
|
1656
1656
|
function Ge(e) {
|
|
1657
|
-
const t = new L(e), n =
|
|
1657
|
+
const t = new L(e), n = Ce(L.prototype.request, t);
|
|
1658
1658
|
return a.extend(n, L.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
|
|
1659
1659
|
return Ge(B(e, s));
|
|
1660
1660
|
}, n;
|
|
1661
1661
|
}
|
|
1662
|
-
const E = Ge(
|
|
1662
|
+
const E = Ge(M);
|
|
1663
1663
|
E.Axios = L;
|
|
1664
1664
|
E.CanceledError = k;
|
|
1665
|
-
E.CancelToken =
|
|
1666
|
-
E.isCancel =
|
|
1667
|
-
E.VERSION =
|
|
1665
|
+
E.CancelToken = de;
|
|
1666
|
+
E.isCancel = ze;
|
|
1667
|
+
E.VERSION = Xe;
|
|
1668
1668
|
E.toFormData = Q;
|
|
1669
1669
|
E.AxiosError = m;
|
|
1670
1670
|
E.Cancel = E.CanceledError;
|
|
1671
1671
|
E.all = function(t) {
|
|
1672
1672
|
return Promise.all(t);
|
|
1673
1673
|
};
|
|
1674
|
-
E.spread =
|
|
1675
|
-
E.isAxiosError =
|
|
1674
|
+
E.spread = Nn;
|
|
1675
|
+
E.isAxiosError = Pn;
|
|
1676
1676
|
E.mergeConfig = B;
|
|
1677
1677
|
E.AxiosHeaders = x;
|
|
1678
1678
|
E.formToJSON = (e) => He(a.isHTMLForm(e) ? new FormData(e) : e);
|
|
1679
|
-
E.getAdapter =
|
|
1679
|
+
E.getAdapter = Ke.getAdapter;
|
|
1680
1680
|
E.HttpStatusCode = ce;
|
|
1681
1681
|
E.default = E;
|
|
1682
|
-
const {
|
|
1683
|
-
Axios: kn,
|
|
1684
|
-
AxiosError: jn,
|
|
1685
|
-
CanceledError: qn,
|
|
1686
|
-
isCancel: In,
|
|
1687
|
-
CancelToken: Hn,
|
|
1688
|
-
VERSION: Mn,
|
|
1689
|
-
all: zn,
|
|
1690
|
-
Cancel: $n,
|
|
1691
|
-
isAxiosError: Jn,
|
|
1692
|
-
spread: Vn,
|
|
1693
|
-
toFormData: Wn,
|
|
1694
|
-
AxiosHeaders: vn,
|
|
1695
|
-
HttpStatusCode: Kn,
|
|
1696
|
-
formToJSON: Xn,
|
|
1697
|
-
getAdapter: Gn,
|
|
1698
|
-
mergeConfig: Qn
|
|
1699
|
-
} = E, Zn = async (e) => {
|
|
1682
|
+
const Ln = async (e) => {
|
|
1700
1683
|
var n;
|
|
1701
1684
|
const t = {
|
|
1702
1685
|
personalInfo: "/api/personal-center/personal-server/v1/info"
|
|
@@ -1719,5 +1702,5 @@ const {
|
|
|
1719
1702
|
}
|
|
1720
1703
|
};
|
|
1721
1704
|
export {
|
|
1722
|
-
|
|
1705
|
+
Ln as setPersonalInfo
|
|
1723
1706
|
};
|