@das-fed/upf-utils 6.4.0-dev.226 → 6.4.0-dev.228
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 +1520 -1526
- package/api-services/index.js +1223 -1237
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/es5.js +313 -310
- package/api-services/modules/app-manage/index.js +292 -292
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/es5.js +313 -310
- package/api-services/modules/authentication/index.js +292 -292
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/es5.js +308 -305
- package/api-services/modules/bems/index.js +287 -287
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/es5.js +313 -310
- package/api-services/modules/contract/index.js +292 -292
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/es5.js +1153 -1159
- package/api-services/modules/duty-manage/index.js +958 -972
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/es5.js +1153 -1162
- package/api-services/modules/enterpriseright/index.js +957 -975
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/es5.js +1518 -1527
- package/api-services/modules/file/es5.js +250 -247
- package/api-services/modules/file/index.js +209 -209
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/es5.js +188 -185
- package/api-services/modules/gateway-edge/index.js +184 -184
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +1221 -1239
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/es5.js +1168 -1177
- package/api-services/modules/iot/index.js +968 -986
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/es5.js +314 -311
- package/api-services/modules/justauth/index.js +293 -293
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/es5.js +313 -310
- package/api-services/modules/knowledge/index.js +292 -292
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/es5.js +313 -310
- package/api-services/modules/link/index.js +292 -292
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/es5.js +1153 -1162
- package/api-services/modules/permission/index.js +957 -975
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/es5.js +312 -309
- package/api-services/modules/platformManage/index.js +287 -287
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/es5.js +1135 -1141
- package/api-services/modules/portal/index.js +941 -955
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/es5.js +1247 -1232
- package/api-services/modules/space-manage/index.js +1042 -1024
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/es5.js +262 -259
- package/api-services/modules/super-admin/index.js +244 -244
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/es5.js +315 -312
- package/api-services/modules/supplier/index.js +292 -292
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/es5.js +1164 -1173
- package/api-services/modules/supplychain-manage/index.js +967 -985
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/es5.js +313 -310
- package/api-services/modules/systemConfiguration/index.js +292 -292
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/es5.js +313 -310
- package/api-services/modules/tool/index.js +292 -292
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/es5.js +311 -308
- package/api-services/src/create-service/index.js +291 -291
- package/api-services/src/create-service/index.js.gz +0 -0
- package/common-info/es5.js +4357 -124
- package/common-info/getPermissionMethod/es5.js +4209 -0
- package/common-info/getPermissionMethod/index.d.ts +26 -0
- package/common-info/getPermissionMethod/index.js +3328 -0
- package/common-info/getPermissionMethod/index.js.gz +0 -0
- package/common-info/index.d.ts +2 -0
- package/common-info/index.js +3414 -63
- package/common-info/index.js.gz +0 -0
- package/common-info/type.d.ts +0 -2
- package/create-api-service/es5.js +1142 -1150
- package/create-api-service/index.d.ts +6 -6
- package/create-api-service/index.js +948 -965
- package/create-api-service/index.js.gz +0 -0
- package/directive/auth/es5.js +63 -44
- package/directive/auth/index.js +42 -33
- package/directive/auth/index.js.gz +0 -0
- package/esm-map.json +7 -1
- package/hooks/use-get-auth/es5.js +13 -17
- package/hooks/use-get-auth/index.js +10 -13
- package/package.json +3 -3
- package/hooks/use-get-auth/apis.d.ts +0 -1
|
@@ -51,7 +51,7 @@ function qr(t, e) {
|
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
53
|
var eo = Object.prototype.toString,
|
|
54
|
-
|
|
54
|
+
Ut = Object.getPrototypeOf,
|
|
55
55
|
qe = Symbol.iterator,
|
|
56
56
|
jr = Symbol.toStringTag,
|
|
57
57
|
je = /* @__PURE__ */function (t) {
|
|
@@ -91,7 +91,7 @@ var no = He("string"),
|
|
|
91
91
|
},
|
|
92
92
|
_e = function _e(t) {
|
|
93
93
|
if (je(t) !== "object") return false;
|
|
94
|
-
var e =
|
|
94
|
+
var e = Ut(t);
|
|
95
95
|
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(jr in t) && !(qe in t);
|
|
96
96
|
},
|
|
97
97
|
ao = I("Date"),
|
|
@@ -176,7 +176,7 @@ var vo = function vo(t, e, n) {
|
|
|
176
176
|
if (e = e || {}, t == null) return e;
|
|
177
177
|
do {
|
|
178
178
|
for (o = Object.getOwnPropertyNames(t), a = o.length; a-- > 0;) i = o[a], (!r || r(i, t, e)) && !s[i] && (e[i] = t[i], s[i] = true);
|
|
179
|
-
t = n !== false &&
|
|
179
|
+
t = n !== false && Ut(t);
|
|
180
180
|
} while (t && (!n || n(t, e)) && t !== Object.prototype);
|
|
181
181
|
return e;
|
|
182
182
|
},
|
|
@@ -198,7 +198,7 @@ var vo = function vo(t, e, n) {
|
|
|
198
198
|
return function (e) {
|
|
199
199
|
return t && e instanceof t;
|
|
200
200
|
};
|
|
201
|
-
}((typeof Uint8Array === "undefined" ? "undefined" : _typeof(Uint8Array)) < "u" &&
|
|
201
|
+
}((typeof Uint8Array === "undefined" ? "undefined" : _typeof(Uint8Array)) < "u" && Ut(Uint8Array)),
|
|
202
202
|
Ro = function Ro(t, e) {
|
|
203
203
|
var r = (t && t[qe]).call(t);
|
|
204
204
|
var o;
|
|
@@ -283,8 +283,8 @@ var Io = function Io(t) {
|
|
|
283
283
|
};
|
|
284
284
|
return _n2(t, 0);
|
|
285
285
|
},
|
|
286
|
-
|
|
287
|
-
|
|
286
|
+
Uo = I("AsyncFunction"),
|
|
287
|
+
Lo = function Lo(t) {
|
|
288
288
|
return t && (ze(t) || F(t)) && F(t.then) && F(t["catch"]);
|
|
289
289
|
},
|
|
290
290
|
Vr = function (t, e) {
|
|
@@ -357,8 +357,8 @@ var Io = function Io(t) {
|
|
|
357
357
|
isContextDefined: Gr,
|
|
358
358
|
isSpecCompliantForm: $o,
|
|
359
359
|
toJSONObject: Io,
|
|
360
|
-
isAsyncFn:
|
|
361
|
-
isThenable:
|
|
360
|
+
isAsyncFn: Uo,
|
|
361
|
+
isThenable: Lo,
|
|
362
362
|
setImmediate: Vr,
|
|
363
363
|
asap: Bo,
|
|
364
364
|
isIterable: Mo
|
|
@@ -432,8 +432,8 @@ function We(t, e, n) {
|
|
|
432
432
|
metaTokens: true,
|
|
433
433
|
dots: false,
|
|
434
434
|
indexes: false
|
|
435
|
-
}, false, function (
|
|
436
|
-
return !f.isUndefined(h[
|
|
435
|
+
}, false, function (g, h) {
|
|
436
|
+
return !f.isUndefined(h[g]);
|
|
437
437
|
});
|
|
438
438
|
var r = n.metaTokens,
|
|
439
439
|
o = n.visitor || l,
|
|
@@ -448,16 +448,16 @@ function We(t, e, n) {
|
|
|
448
448
|
if (!c && f.isBlob(y)) throw new w("Blob is not supported. Use a Buffer instead.");
|
|
449
449
|
return f.isArrayBuffer(y) || f.isTypedArray(y) ? c && typeof Blob == "function" ? new Blob([y]) : Buffer.from(y) : y;
|
|
450
450
|
}
|
|
451
|
-
function l(y,
|
|
452
|
-
var
|
|
451
|
+
function l(y, g, h) {
|
|
452
|
+
var E = y;
|
|
453
453
|
if (y && !h && _typeof(y) == "object") {
|
|
454
|
-
if (f.endsWith(
|
|
455
|
-
!(f.isUndefined(
|
|
454
|
+
if (f.endsWith(g, "{}")) g = r ? g : g.slice(0, -2), y = JSON.stringify(y);else if (f.isArray(y) && qo(y) || (f.isFileList(y) || f.endsWith(g, "[]")) && (E = f.toArray(y))) return g = Xr(g), E.forEach(function (m, O) {
|
|
455
|
+
!(f.isUndefined(m) || m === null) && e.append(
|
|
456
456
|
// eslint-disable-next-line no-nested-ternary
|
|
457
|
-
i === true ? Kt([
|
|
457
|
+
i === true ? Kt([g], O, a) : i === null ? g : g + "[]", u(m));
|
|
458
458
|
}), false;
|
|
459
459
|
}
|
|
460
|
-
return Ot(y) ? true : (e.append(Kt(h,
|
|
460
|
+
return Ot(y) ? true : (e.append(Kt(h, g, a), u(y)), false);
|
|
461
461
|
}
|
|
462
462
|
var p = [],
|
|
463
463
|
d = Object.assign(jo, {
|
|
@@ -465,11 +465,11 @@ function We(t, e, n) {
|
|
|
465
465
|
convertValue: u,
|
|
466
466
|
isVisitable: Ot
|
|
467
467
|
});
|
|
468
|
-
function v(y,
|
|
468
|
+
function v(y, g) {
|
|
469
469
|
if (!f.isUndefined(y)) {
|
|
470
|
-
if (p.indexOf(y) !== -1) throw Error("Circular reference detected in " +
|
|
471
|
-
p.push(y), f.forEach(y, function (
|
|
472
|
-
(!(f.isUndefined(
|
|
470
|
+
if (p.indexOf(y) !== -1) throw Error("Circular reference detected in " + g.join("."));
|
|
471
|
+
p.push(y), f.forEach(y, function (E, S) {
|
|
472
|
+
(!(f.isUndefined(E) || E === null) && o.call(e, E, f.isString(S) ? S.trim() : S, g, d)) === true && v(E, g ? g.concat(S) : [S]);
|
|
473
473
|
}), p.pop();
|
|
474
474
|
}
|
|
475
475
|
}
|
|
@@ -490,10 +490,10 @@ function Qt(t) {
|
|
|
490
490
|
return e[r];
|
|
491
491
|
});
|
|
492
492
|
}
|
|
493
|
-
function
|
|
493
|
+
function Lt(t, e) {
|
|
494
494
|
this._pairs = [], t && We(t, this, e);
|
|
495
495
|
}
|
|
496
|
-
var Zr =
|
|
496
|
+
var Zr = Lt.prototype;
|
|
497
497
|
Zr.append = function (e, n) {
|
|
498
498
|
this._pairs.push([e, n]);
|
|
499
499
|
};
|
|
@@ -516,7 +516,7 @@ function Yr(t, e, n) {
|
|
|
516
516
|
});
|
|
517
517
|
var o = n && n.serialize;
|
|
518
518
|
var a;
|
|
519
|
-
if (o ? a = o(e, n) : a = f.isURLSearchParams(e) ? e.toString() : new
|
|
519
|
+
if (o ? a = o(e, n) : a = f.isURLSearchParams(e) ? e.toString() : new Lt(e, n).toString(r), a) {
|
|
520
520
|
var i = t.indexOf("#");
|
|
521
521
|
i !== -1 && (t = t.slice(0, i)), t += (t.indexOf("?") === -1 ? "?" : "&") + a;
|
|
522
522
|
}
|
|
@@ -591,7 +591,7 @@ var en = {
|
|
|
591
591
|
forcedJSONParsing: true,
|
|
592
592
|
clarifyTimeoutError: false
|
|
593
593
|
},
|
|
594
|
-
zo = (typeof URLSearchParams === "undefined" ? "undefined" : _typeof(URLSearchParams)) < "u" ? URLSearchParams :
|
|
594
|
+
zo = (typeof URLSearchParams === "undefined" ? "undefined" : _typeof(URLSearchParams)) < "u" ? URLSearchParams : Lt,
|
|
595
595
|
Wo = (typeof FormData === "undefined" ? "undefined" : _typeof(FormData)) < "u" ? FormData : null,
|
|
596
596
|
Go = (typeof Blob === "undefined" ? "undefined" : _typeof(Blob)) < "u" ? Blob : null,
|
|
597
597
|
Jo = {
|
|
@@ -1230,46 +1230,46 @@ var an = function an(t) {
|
|
|
1230
1230
|
d,
|
|
1231
1231
|
v,
|
|
1232
1232
|
y;
|
|
1233
|
-
function
|
|
1233
|
+
function g() {
|
|
1234
1234
|
v && v(), y && y(), o.cancelToken && o.cancelToken.unsubscribe(l), o.signal && o.signal.removeEventListener("abort", l);
|
|
1235
1235
|
}
|
|
1236
1236
|
var h = new XMLHttpRequest();
|
|
1237
1237
|
h.open(o.method.toUpperCase(), o.url, true), h.timeout = o.timeout;
|
|
1238
|
-
function
|
|
1238
|
+
function E() {
|
|
1239
1239
|
if (!h) return;
|
|
1240
|
-
var
|
|
1241
|
-
|
|
1240
|
+
var m = D.from("getAllResponseHeaders" in h && h.getAllResponseHeaders()),
|
|
1241
|
+
A = {
|
|
1242
1242
|
data: !s || s === "text" || s === "json" ? h.responseText : h.response,
|
|
1243
1243
|
status: h.status,
|
|
1244
1244
|
statusText: h.statusText,
|
|
1245
|
-
headers:
|
|
1245
|
+
headers: m,
|
|
1246
1246
|
config: t,
|
|
1247
1247
|
request: h
|
|
1248
1248
|
};
|
|
1249
1249
|
nn(function (N) {
|
|
1250
|
-
n(N),
|
|
1250
|
+
n(N), g();
|
|
1251
1251
|
}, function (N) {
|
|
1252
|
-
r(N),
|
|
1253
|
-
},
|
|
1252
|
+
r(N), g();
|
|
1253
|
+
}, A), h = null;
|
|
1254
1254
|
}
|
|
1255
|
-
"onloadend" in h ? h.onloadend =
|
|
1256
|
-
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(
|
|
1255
|
+
"onloadend" in h ? h.onloadend = E : h.onreadystatechange = function () {
|
|
1256
|
+
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(E);
|
|
1257
1257
|
}, h.onabort = function () {
|
|
1258
1258
|
h && (r(new w("Request aborted", w.ECONNABORTED, t, h)), h = null);
|
|
1259
1259
|
}, h.onerror = function () {
|
|
1260
1260
|
r(new w("Network Error", w.ERR_NETWORK, t, h)), h = null;
|
|
1261
1261
|
}, h.ontimeout = function () {
|
|
1262
|
-
var
|
|
1263
|
-
var
|
|
1264
|
-
o.timeoutErrorMessage && (
|
|
1265
|
-
}, a === undefined && i.setContentType(null), "setRequestHeader" in h && f.forEach(i.toJSON(), function (
|
|
1266
|
-
h.setRequestHeader(
|
|
1267
|
-
}), f.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), s && s !== "json" && (h.responseType = o.responseType), u && (_Ie = Ie(u, true), _Ie2 = _slicedToArray(_Ie, 2), d = _Ie2[0], y = _Ie2[1], h.addEventListener("progress", d)), c && h.upload && (_Ie3 = Ie(c), _Ie4 = _slicedToArray(_Ie3, 2), p = _Ie4[0], v = _Ie4[1], h.upload.addEventListener("progress", p), h.upload.addEventListener("loadend", v)), (o.cancelToken || o.signal) && (l = function l(
|
|
1268
|
-
h && (r(!
|
|
1262
|
+
var O = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
|
|
1263
|
+
var A = o.transitional || en;
|
|
1264
|
+
o.timeoutErrorMessage && (O = o.timeoutErrorMessage), r(new w(O, A.clarifyTimeoutError ? w.ETIMEDOUT : w.ECONNABORTED, t, h)), h = null;
|
|
1265
|
+
}, a === undefined && i.setContentType(null), "setRequestHeader" in h && f.forEach(i.toJSON(), function (O, A) {
|
|
1266
|
+
h.setRequestHeader(A, O);
|
|
1267
|
+
}), f.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), s && s !== "json" && (h.responseType = o.responseType), u && (_Ie = Ie(u, true), _Ie2 = _slicedToArray(_Ie, 2), d = _Ie2[0], y = _Ie2[1], h.addEventListener("progress", d)), c && h.upload && (_Ie3 = Ie(c), _Ie4 = _slicedToArray(_Ie3, 2), p = _Ie4[0], v = _Ie4[1], h.upload.addEventListener("progress", p), h.upload.addEventListener("loadend", v)), (o.cancelToken || o.signal) && (l = function l(m) {
|
|
1268
|
+
h && (r(!m || m.type ? new ce(null, t, h) : m), h.abort(), h = null);
|
|
1269
1269
|
}, o.cancelToken && o.cancelToken.subscribe(l), o.signal && (o.signal.aborted ? l() : o.signal.addEventListener("abort", l)));
|
|
1270
|
-
var
|
|
1271
|
-
if (
|
|
1272
|
-
r(new w("Unsupported protocol " +
|
|
1270
|
+
var S = la(o.url);
|
|
1271
|
+
if (S && _.protocols.indexOf(S) === -1) {
|
|
1272
|
+
r(new w("Unsupported protocol " + S + ":", w.ERR_BAD_REQUEST, t));
|
|
1273
1273
|
return;
|
|
1274
1274
|
}
|
|
1275
1275
|
h.send(a || null);
|
|
@@ -1552,14 +1552,14 @@ var an = function an(t) {
|
|
|
1552
1552
|
Rt = sn && ln(function () {
|
|
1553
1553
|
return f.isReadableStream(new Response("").body);
|
|
1554
1554
|
}),
|
|
1555
|
-
|
|
1555
|
+
Ue = {
|
|
1556
1556
|
stream: Rt && function (t) {
|
|
1557
1557
|
return t.body;
|
|
1558
1558
|
}
|
|
1559
1559
|
};
|
|
1560
1560
|
Ge && function (t) {
|
|
1561
1561
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach(function (e) {
|
|
1562
|
-
!
|
|
1562
|
+
!Ue[e] && (Ue[e] = f.isFunction(t[e]) ? function (n) {
|
|
1563
1563
|
return n[e]();
|
|
1564
1564
|
} : function (n, r) {
|
|
1565
1565
|
throw new w("Response type '".concat(e, "' is not supported"), w.ERR_NOT_SUPPORT, r);
|
|
@@ -1635,14 +1635,14 @@ var Oa = /*#__PURE__*/function () {
|
|
|
1635
1635
|
}(),
|
|
1636
1636
|
Ra = Ge && (/*#__PURE__*/function () {
|
|
1637
1637
|
var _ref14 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee7(t) {
|
|
1638
|
-
var _an, e, n, r, o, a, i, s, c, u, l, _an$withCredentials, p, d, v, y,
|
|
1638
|
+
var _an, e, n, r, o, a, i, s, c, u, l, _an$withCredentials, p, d, v, y, g, h, A, C, _Yt, _Yt2, N, q, E, S, m, _A, _C, _ref15, _ref16, _N, _q, O, _t7, _t8, _t9;
|
|
1639
1639
|
return _regenerator().w(function (_context8) {
|
|
1640
1640
|
while (1) switch (_context8.p = _context8.n) {
|
|
1641
1641
|
case 0:
|
|
1642
1642
|
_an = an(t), e = _an.url, n = _an.method, r = _an.data, o = _an.signal, a = _an.cancelToken, i = _an.timeout, s = _an.onDownloadProgress, c = _an.onUploadProgress, u = _an.responseType, l = _an.headers, _an$withCredentials = _an.withCredentials, p = _an$withCredentials === void 0 ? "same-origin" : _an$withCredentials, d = _an.fetchOptions;
|
|
1643
1643
|
u = u ? (u + "").toLowerCase() : "text";
|
|
1644
1644
|
v = ga([o, a && a.toAbortSignal()], i);
|
|
1645
|
-
|
|
1645
|
+
g = v && v.unsubscribe && function () {
|
|
1646
1646
|
v.unsubscribe();
|
|
1647
1647
|
};
|
|
1648
1648
|
_context8.p = 1;
|
|
@@ -1661,54 +1661,54 @@ var Oa = /*#__PURE__*/function () {
|
|
|
1661
1661
|
_context8.n = 4;
|
|
1662
1662
|
break;
|
|
1663
1663
|
}
|
|
1664
|
-
|
|
1664
|
+
A = new Request(e, {
|
|
1665
1665
|
method: "POST",
|
|
1666
1666
|
body: r,
|
|
1667
1667
|
duplex: "half"
|
|
1668
1668
|
});
|
|
1669
|
-
if (f.isFormData(r) && (C =
|
|
1669
|
+
if (f.isFormData(r) && (C = A.headers.get("content-type")) && l.setContentType(C), A.body) {
|
|
1670
1670
|
_Yt = Yt(h, Ie(er(c))), _Yt2 = _slicedToArray(_Yt, 2), N = _Yt2[0], q = _Yt2[1];
|
|
1671
|
-
r = rr(
|
|
1671
|
+
r = rr(A.body, nr, N, q);
|
|
1672
1672
|
}
|
|
1673
1673
|
case 4:
|
|
1674
1674
|
f.isString(p) || (p = p ? "include" : "omit");
|
|
1675
|
-
|
|
1675
|
+
E = "credentials" in Request.prototype;
|
|
1676
1676
|
y = new Request(e, _objectSpread(_objectSpread({}, d), {}, {
|
|
1677
1677
|
signal: v,
|
|
1678
1678
|
method: n.toUpperCase(),
|
|
1679
1679
|
headers: l.normalize().toJSON(),
|
|
1680
1680
|
body: r,
|
|
1681
1681
|
duplex: "half",
|
|
1682
|
-
credentials:
|
|
1682
|
+
credentials: E ? p : void 0
|
|
1683
1683
|
}));
|
|
1684
1684
|
_context8.n = 5;
|
|
1685
1685
|
return fetch(y, d);
|
|
1686
1686
|
case 5:
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
if (Rt && (s ||
|
|
1690
|
-
|
|
1691
|
-
["status", "statusText", "headers"].forEach(function (
|
|
1692
|
-
|
|
1687
|
+
S = _context8.v;
|
|
1688
|
+
m = Rt && (u === "stream" || u === "response");
|
|
1689
|
+
if (Rt && (s || m && g)) {
|
|
1690
|
+
_A = {};
|
|
1691
|
+
["status", "statusText", "headers"].forEach(function (U) {
|
|
1692
|
+
_A[U] = S[U];
|
|
1693
1693
|
});
|
|
1694
|
-
_C = f.toFiniteNumber(
|
|
1695
|
-
|
|
1696
|
-
_q && _q(),
|
|
1697
|
-
}),
|
|
1694
|
+
_C = f.toFiniteNumber(S.headers.get("content-length")), _ref15 = s && Yt(_C, Ie(er(s), !0)) || [], _ref16 = _slicedToArray(_ref15, 2), _N = _ref16[0], _q = _ref16[1];
|
|
1695
|
+
S = new Response(rr(S.body, nr, _N, function () {
|
|
1696
|
+
_q && _q(), g && g();
|
|
1697
|
+
}), _A);
|
|
1698
1698
|
}
|
|
1699
1699
|
u = u || "text";
|
|
1700
1700
|
_context8.n = 6;
|
|
1701
|
-
return
|
|
1701
|
+
return Ue[f.findKey(Ue, u) || "text"](S, t);
|
|
1702
1702
|
case 6:
|
|
1703
|
-
|
|
1704
|
-
!
|
|
1703
|
+
O = _context8.v;
|
|
1704
|
+
!m && g && g();
|
|
1705
1705
|
_context8.n = 7;
|
|
1706
|
-
return new Promise(function (
|
|
1707
|
-
nn(
|
|
1708
|
-
data:
|
|
1709
|
-
headers: D.from(
|
|
1710
|
-
status:
|
|
1711
|
-
statusText:
|
|
1706
|
+
return new Promise(function (A, C) {
|
|
1707
|
+
nn(A, C, {
|
|
1708
|
+
data: O,
|
|
1709
|
+
headers: D.from(S.headers),
|
|
1710
|
+
status: S.status,
|
|
1711
|
+
statusText: S.statusText,
|
|
1712
1712
|
config: t,
|
|
1713
1713
|
request: y
|
|
1714
1714
|
});
|
|
@@ -1718,7 +1718,7 @@ var Oa = /*#__PURE__*/function () {
|
|
|
1718
1718
|
case 8:
|
|
1719
1719
|
_context8.p = 8;
|
|
1720
1720
|
_t9 = _context8.v;
|
|
1721
|
-
throw
|
|
1721
|
+
throw g && g(), _t9 && _t9.name === "TypeError" && /Load failed|fetch/i.test(_t9.message) ? Object.assign(new w("Network Error", w.ERR_NETWORK, t, y), {
|
|
1722
1722
|
cause: _t9.cause || _t9
|
|
1723
1723
|
}) : w.from(_t9, _t9 && _t9.code, t, y);
|
|
1724
1724
|
case 9:
|
|
@@ -1833,7 +1833,7 @@ var Ne = {
|
|
|
1833
1833
|
assertOptions: Ta,
|
|
1834
1834
|
validators: Je
|
|
1835
1835
|
},
|
|
1836
|
-
|
|
1836
|
+
L = Ne.validators;
|
|
1837
1837
|
var Q = /*#__PURE__*/function () {
|
|
1838
1838
|
function Q(e) {
|
|
1839
1839
|
_classCallCheck(this, Q);
|
|
@@ -1894,17 +1894,17 @@ var Q = /*#__PURE__*/function () {
|
|
|
1894
1894
|
o = _n3.paramsSerializer,
|
|
1895
1895
|
a = _n3.headers;
|
|
1896
1896
|
r !== undefined && Ne.assertOptions(r, {
|
|
1897
|
-
silentJSONParsing:
|
|
1898
|
-
forcedJSONParsing:
|
|
1899
|
-
clarifyTimeoutError:
|
|
1897
|
+
silentJSONParsing: L.transitional(L["boolean"]),
|
|
1898
|
+
forcedJSONParsing: L.transitional(L["boolean"]),
|
|
1899
|
+
clarifyTimeoutError: L.transitional(L["boolean"])
|
|
1900
1900
|
}, false), o != null && (f.isFunction(o) ? n.paramsSerializer = {
|
|
1901
1901
|
serialize: o
|
|
1902
1902
|
} : Ne.assertOptions(o, {
|
|
1903
|
-
encode:
|
|
1904
|
-
serialize:
|
|
1903
|
+
encode: L["function"],
|
|
1904
|
+
serialize: L["function"]
|
|
1905
1905
|
}, true)), n.allowAbsoluteUrls !== undefined || (this.defaults.allowAbsoluteUrls !== undefined ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = true), Ne.assertOptions(n, {
|
|
1906
|
-
baseUrl:
|
|
1907
|
-
withXsrfToken:
|
|
1906
|
+
baseUrl: L.spelling("baseURL"),
|
|
1907
|
+
withXsrfToken: L.spelling("withXSRFToken")
|
|
1908
1908
|
}, true), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
1909
1909
|
var i = a && f.merge(a.common, a[n.method]);
|
|
1910
1910
|
a && f.forEach(["delete", "get", "head", "post", "put", "patch", "common"], function (y) {
|
|
@@ -1912,12 +1912,12 @@ var Q = /*#__PURE__*/function () {
|
|
|
1912
1912
|
}), n.headers = D.concat(i, a);
|
|
1913
1913
|
var s = [];
|
|
1914
1914
|
var c = true;
|
|
1915
|
-
this.interceptors.request.forEach(function (
|
|
1916
|
-
typeof
|
|
1915
|
+
this.interceptors.request.forEach(function (g) {
|
|
1916
|
+
typeof g.runWhen == "function" && g.runWhen(n) === false || (c = c && g.synchronous, s.unshift(g.fulfilled, g.rejected));
|
|
1917
1917
|
});
|
|
1918
1918
|
var u = [];
|
|
1919
|
-
this.interceptors.response.forEach(function (
|
|
1920
|
-
u.push(
|
|
1919
|
+
this.interceptors.response.forEach(function (g) {
|
|
1920
|
+
u.push(g.fulfilled, g.rejected);
|
|
1921
1921
|
});
|
|
1922
1922
|
var l,
|
|
1923
1923
|
p = 0,
|
|
@@ -1931,11 +1931,11 @@ var Q = /*#__PURE__*/function () {
|
|
|
1931
1931
|
var v = n;
|
|
1932
1932
|
for (p = 0; p < d;) {
|
|
1933
1933
|
var _y = s[p++],
|
|
1934
|
-
|
|
1934
|
+
g = s[p++];
|
|
1935
1935
|
try {
|
|
1936
1936
|
v = _y(v);
|
|
1937
1937
|
} catch (h) {
|
|
1938
|
-
|
|
1938
|
+
g.call(this, h);
|
|
1939
1939
|
break;
|
|
1940
1940
|
}
|
|
1941
1941
|
}
|
|
@@ -2213,7 +2213,7 @@ var Fa = {},
|
|
|
2213
2213
|
$a = /* @__PURE__ */Na(Da);
|
|
2214
2214
|
var kt = typeof Map == "function" && Map.prototype,
|
|
2215
2215
|
nt = Object.getOwnPropertyDescriptor && kt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null,
|
|
2216
|
-
|
|
2216
|
+
Le = kt && nt && typeof nt.get == "function" ? nt.get : null,
|
|
2217
2217
|
lr = kt && Map.prototype.forEach,
|
|
2218
2218
|
qt = typeof Set == "function" && Set.prototype,
|
|
2219
2219
|
ot = Object.getOwnPropertyDescriptor && qt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null,
|
|
@@ -2221,10 +2221,10 @@ var kt = typeof Map == "function" && Map.prototype,
|
|
|
2221
2221
|
cr = qt && Set.prototype.forEach,
|
|
2222
2222
|
Ia = typeof WeakMap == "function" && WeakMap.prototype,
|
|
2223
2223
|
ye = Ia ? WeakMap.prototype.has : null,
|
|
2224
|
-
|
|
2225
|
-
he =
|
|
2226
|
-
|
|
2227
|
-
ur =
|
|
2224
|
+
Ua = typeof WeakSet == "function" && WeakSet.prototype,
|
|
2225
|
+
he = Ua ? WeakSet.prototype.has : null,
|
|
2226
|
+
La = typeof WeakRef == "function" && WeakRef.prototype,
|
|
2227
|
+
ur = La ? WeakRef.prototype.deref : null,
|
|
2228
2228
|
Ba = Boolean.prototype.valueOf,
|
|
2229
2229
|
Ma = Object.prototype.toString,
|
|
2230
2230
|
ka = Function.prototype.toString,
|
|
@@ -2314,21 +2314,21 @@ var Ct = $a,
|
|
|
2314
2314
|
return "[Function" + (v ? ": " + v : " (anonymous)") + "]" + (y.length > 0 ? " { " + k.call(y, ", ") + " }" : "");
|
|
2315
2315
|
}
|
|
2316
2316
|
if (mn(e)) {
|
|
2317
|
-
var
|
|
2318
|
-
return _typeof(e) == "object" && !ie ? de(
|
|
2317
|
+
var g = ie ? G.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : _t.call(e);
|
|
2318
|
+
return _typeof(e) == "object" && !ie ? de(g) : g;
|
|
2319
2319
|
}
|
|
2320
2320
|
if (ai(e)) {
|
|
2321
|
-
for (var h = "<" + fr.call(String(e.nodeName)),
|
|
2321
|
+
for (var h = "<" + fr.call(String(e.nodeName)), E = e.attributes || [], S = 0; S < E.length; S++) h += " " + E[S].name + "=" + hn(Wa(E[S].value), "double", a);
|
|
2322
2322
|
return h += ">", e.childNodes && e.childNodes.length && (h += "..."), h += "</" + fr.call(String(e.nodeName)) + ">", h;
|
|
2323
2323
|
}
|
|
2324
2324
|
if (Nt(e)) {
|
|
2325
2325
|
if (e.length === 0) return "[]";
|
|
2326
|
-
var
|
|
2327
|
-
return p && !si(
|
|
2326
|
+
var m = Pe(e, d);
|
|
2327
|
+
return p && !si(m) ? "[" + Ft(m, p) + "]" : "[ " + k.call(m, ", ") + " ]";
|
|
2328
2328
|
}
|
|
2329
2329
|
if (Ja(e)) {
|
|
2330
|
-
var
|
|
2331
|
-
return !("cause" in Error.prototype) && "cause" in e && !dn.call(e, "cause") ? "{ [" + String(e) + "] " + k.call(pr.call("[cause]: " + d(e.cause),
|
|
2330
|
+
var O = Pe(e, d);
|
|
2331
|
+
return !("cause" in Error.prototype) && "cause" in e && !dn.call(e, "cause") ? "{ [" + String(e) + "] " + k.call(pr.call("[cause]: " + d(e.cause), O), ", ") + " }" : O.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + k.call(O, ", ") + " }";
|
|
2332
2332
|
}
|
|
2333
2333
|
if (_typeof(e) == "object" && i) {
|
|
2334
2334
|
if (gr && typeof e[gr] == "function" && Ct) return Ct(e, {
|
|
@@ -2337,10 +2337,10 @@ var Ct = $a,
|
|
|
2337
2337
|
if (i !== "symbol" && typeof e.inspect == "function") return e.inspect();
|
|
2338
2338
|
}
|
|
2339
2339
|
if (ei(e)) {
|
|
2340
|
-
var
|
|
2340
|
+
var A = [];
|
|
2341
2341
|
return lr && lr.call(e, function ($, W) {
|
|
2342
|
-
|
|
2343
|
-
}), wr("Map",
|
|
2342
|
+
A.push(d(W, e, true) + " => " + d($, e));
|
|
2343
|
+
}), wr("Map", Le.call(e), A, p);
|
|
2344
2344
|
}
|
|
2345
2345
|
if (ni(e)) {
|
|
2346
2346
|
var C = [];
|
|
@@ -2360,10 +2360,10 @@ var Ct = $a,
|
|
|
2360
2360
|
if (!Ga(e) && !vr(e)) {
|
|
2361
2361
|
var N = Pe(e, d),
|
|
2362
2362
|
q = yr ? yr(e) === Object.prototype : e instanceof Object || e.constructor === Object,
|
|
2363
|
-
|
|
2364
|
-
z = !q && me && Object(e) === e && me in e ? jt.call(J(e), 8, -1) :
|
|
2363
|
+
U = e instanceof Object ? "" : "null prototype",
|
|
2364
|
+
z = !q && me && Object(e) === e && me in e ? jt.call(J(e), 8, -1) : U ? "Object" : "",
|
|
2365
2365
|
Re = q || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "",
|
|
2366
|
-
te = Re + (z ||
|
|
2366
|
+
te = Re + (z || U ? "[" + k.call(pr.call([], z || [], U || []), ": ") + "] " : "");
|
|
2367
2367
|
return N.length === 0 ? te + "{}" : p ? te + "{" + Ft(N, p) + "}" : te + "{ " + k.call(N, ", ") + " }";
|
|
2368
2368
|
}
|
|
2369
2369
|
return String(e);
|
|
@@ -2436,9 +2436,9 @@ function gn(t, e) {
|
|
|
2436
2436
|
return -1;
|
|
2437
2437
|
}
|
|
2438
2438
|
function ei(t) {
|
|
2439
|
-
if (!
|
|
2439
|
+
if (!Le || !t || _typeof(t) != "object") return false;
|
|
2440
2440
|
try {
|
|
2441
|
-
|
|
2441
|
+
Le.call(t);
|
|
2442
2442
|
try {
|
|
2443
2443
|
Be.call(t);
|
|
2444
2444
|
} catch (_unused6) {
|
|
@@ -2473,7 +2473,7 @@ function ni(t) {
|
|
|
2473
2473
|
try {
|
|
2474
2474
|
Be.call(t);
|
|
2475
2475
|
try {
|
|
2476
|
-
|
|
2476
|
+
Le.call(t);
|
|
2477
2477
|
} catch (_unused1) {
|
|
2478
2478
|
return !0;
|
|
2479
2479
|
}
|
|
@@ -2700,8 +2700,8 @@ function En() {
|
|
|
2700
2700
|
return ut = t.getPrototypeOf || null, ut;
|
|
2701
2701
|
}
|
|
2702
2702
|
var Ii = "Function.prototype.bind called on incompatible ",
|
|
2703
|
-
|
|
2704
|
-
|
|
2703
|
+
Ui = Object.prototype.toString,
|
|
2704
|
+
Li = Math.max,
|
|
2705
2705
|
Bi = "[object Function]",
|
|
2706
2706
|
Ar = function Ar(e, n) {
|
|
2707
2707
|
for (var r = [], o = 0; o < e.length; o += 1) r[o] = e[o];
|
|
@@ -2718,14 +2718,14 @@ var Ii = "Function.prototype.bind called on incompatible ",
|
|
|
2718
2718
|
},
|
|
2719
2719
|
qi = function qi(e) {
|
|
2720
2720
|
var n = this;
|
|
2721
|
-
if (typeof n != "function" ||
|
|
2721
|
+
if (typeof n != "function" || Ui.apply(n) !== Bi) throw new TypeError(Ii + n);
|
|
2722
2722
|
for (var r = Mi(arguments, 1), o, a = function a() {
|
|
2723
2723
|
if (this instanceof o) {
|
|
2724
2724
|
var l = n.apply(this, Ar(r, arguments));
|
|
2725
2725
|
return Object(l) === l ? l : this;
|
|
2726
2726
|
}
|
|
2727
2727
|
return n.apply(e, Ar(r, arguments));
|
|
2728
|
-
}, i =
|
|
2728
|
+
}, i = Li(0, n.length - r.length), s = [], c = 0; c < i; c++) s[c] = "$" + c;
|
|
2729
2729
|
if (o = Function("binder", "return function (" + ki(s, ",") + "){ return binder.apply(this,arguments); }")(a), n.prototype) {
|
|
2730
2730
|
var u = function u() {};
|
|
2731
2731
|
u.prototype = n.prototype, o.prototype = new u(), u.prototype = null;
|
|
@@ -3059,8 +3059,8 @@ var Ss = function t(e) {
|
|
|
3059
3059
|
return;
|
|
3060
3060
|
}
|
|
3061
3061
|
if (we && l + 1 >= r.length) {
|
|
3062
|
-
var
|
|
3063
|
-
p = !!
|
|
3062
|
+
var g = we(s, d);
|
|
3063
|
+
p = !!g, p && "get" in g && !("originalValue" in g.get) ? s = g.get : s = s[d];
|
|
3064
3064
|
} else p = Me(s, d), s = s[d];
|
|
3065
3065
|
p && !c && (X[i] = s);
|
|
3066
3066
|
}
|
|
@@ -3084,8 +3084,8 @@ var Ss = function t(e) {
|
|
|
3084
3084
|
Ds = Ae("Map.prototype.get", true),
|
|
3085
3085
|
$s = Ae("Map.prototype.set", true),
|
|
3086
3086
|
Is = Ae("Map.prototype.has", true),
|
|
3087
|
-
|
|
3088
|
-
|
|
3087
|
+
Us = Ae("Map.prototype.delete", true),
|
|
3088
|
+
Ls = Ae("Map.prototype.size", true),
|
|
3089
3089
|
Cn = !!Nr && /** @type {Exclude<import('.'), false>} */
|
|
3090
3090
|
function () {
|
|
3091
3091
|
var e,
|
|
@@ -3095,8 +3095,8 @@ var Ss = function t(e) {
|
|
|
3095
3095
|
},
|
|
3096
3096
|
"delete": function _delete(r) {
|
|
3097
3097
|
if (e) {
|
|
3098
|
-
var o =
|
|
3099
|
-
return
|
|
3098
|
+
var o = Us(e, r);
|
|
3099
|
+
return Ls(e) === 0 && (e = undefined), o;
|
|
3100
3100
|
}
|
|
3101
3101
|
return false;
|
|
3102
3102
|
},
|
|
@@ -3376,52 +3376,52 @@ var Ss = function t(e) {
|
|
|
3376
3376
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || _typeof(e) == "symbol" || typeof e == "bigint";
|
|
3377
3377
|
},
|
|
3378
3378
|
bt = {},
|
|
3379
|
-
ml = function t(e, n, r, o, a, i, s, c, u, l, p, d, v, y,
|
|
3380
|
-
for (var
|
|
3381
|
-
var N =
|
|
3382
|
-
if (
|
|
3383
|
-
if (N ===
|
|
3379
|
+
ml = function t(e, n, r, o, a, i, s, c, u, l, p, d, v, y, g, h, E, S) {
|
|
3380
|
+
for (var m = e, O = S, A = 0, C = false; (O = O.get(bt)) !== undefined && !C;) {
|
|
3381
|
+
var N = O.get(e);
|
|
3382
|
+
if (A += 1, _typeof(N) < "u") {
|
|
3383
|
+
if (N === A) throw new RangeError("Cyclic object value");
|
|
3384
3384
|
C = true;
|
|
3385
3385
|
}
|
|
3386
|
-
_typeof(
|
|
3386
|
+
_typeof(O.get(bt)) > "u" && (A = 0);
|
|
3387
3387
|
}
|
|
3388
|
-
if (typeof l == "function" ?
|
|
3388
|
+
if (typeof l == "function" ? m = l(n, m) : m instanceof Date ? m = v(m) : r === "comma" && M(m) && (m = $e.maybeMap(m, function (Ye) {
|
|
3389
3389
|
return Ye instanceof Date ? v(Ye) : Ye;
|
|
3390
|
-
})),
|
|
3391
|
-
if (i) return u && !h ? u(n, T.encoder,
|
|
3392
|
-
|
|
3390
|
+
})), m === null) {
|
|
3391
|
+
if (i) return u && !h ? u(n, T.encoder, E, "key", y) : n;
|
|
3392
|
+
m = "";
|
|
3393
3393
|
}
|
|
3394
|
-
if (hl(
|
|
3394
|
+
if (hl(m) || $e.isBuffer(m)) {
|
|
3395
3395
|
if (u) {
|
|
3396
|
-
var q = h ? n : u(n, T.encoder,
|
|
3397
|
-
return [
|
|
3396
|
+
var q = h ? n : u(n, T.encoder, E, "key", y);
|
|
3397
|
+
return [g(q) + "=" + g(u(m, T.encoder, E, "value", y))];
|
|
3398
3398
|
}
|
|
3399
|
-
return [
|
|
3399
|
+
return [g(n) + "=" + g(String(m))];
|
|
3400
3400
|
}
|
|
3401
|
-
var
|
|
3402
|
-
if (_typeof(
|
|
3401
|
+
var U = [];
|
|
3402
|
+
if (_typeof(m) > "u") return U;
|
|
3403
3403
|
var z;
|
|
3404
|
-
if (r === "comma" && M(
|
|
3405
|
-
value:
|
|
3404
|
+
if (r === "comma" && M(m)) h && u && (m = $e.maybeMap(m, u)), z = [{
|
|
3405
|
+
value: m.length > 0 ? m.join(",") || null : undefined
|
|
3406
3406
|
}];else if (M(l)) z = l;else {
|
|
3407
|
-
var Re = Object.keys(
|
|
3407
|
+
var Re = Object.keys(m);
|
|
3408
3408
|
z = p ? Re.sort(p) : Re;
|
|
3409
3409
|
}
|
|
3410
3410
|
var te = c ? String(n).replace(/\./g, "%2E") : String(n),
|
|
3411
|
-
$ = o && M(
|
|
3412
|
-
if (a && M(
|
|
3411
|
+
$ = o && M(m) && m.length === 1 ? te + "[]" : te;
|
|
3412
|
+
if (a && M(m) && m.length === 0) return $ + "[]";
|
|
3413
3413
|
for (var W = 0; W < z.length; ++W) {
|
|
3414
3414
|
var j = z[W],
|
|
3415
|
-
fe = _typeof(j) == "object" && j && _typeof(j.value) < "u" ? j.value :
|
|
3415
|
+
fe = _typeof(j) == "object" && j && _typeof(j.value) < "u" ? j.value : m[j];
|
|
3416
3416
|
if (!(s && fe === null)) {
|
|
3417
3417
|
var Ze = d && c ? String(j).replace(/\./g, "%2E") : String(j),
|
|
3418
|
-
qn = M(
|
|
3419
|
-
|
|
3418
|
+
qn = M(m) ? typeof r == "function" ? r($, Ze) : $ : $ + (d ? "." + Ze : "[" + Ze + "]");
|
|
3419
|
+
S.set(e, A);
|
|
3420
3420
|
var Jt = Dn();
|
|
3421
|
-
Jt.set(bt,
|
|
3421
|
+
Jt.set(bt, S), In(U, t(fe, qn, r, o, a, i, s, c, r === "comma" && h && M(m) ? null : u, l, p, d, v, y, g, h, E, Jt));
|
|
3422
3422
|
}
|
|
3423
3423
|
}
|
|
3424
|
-
return
|
|
3424
|
+
return U;
|
|
3425
3425
|
},
|
|
3426
3426
|
gl = function gl(e) {
|
|
3427
3427
|
if (!e) return T;
|
|
@@ -3514,7 +3514,7 @@ var Ss = function t(e) {
|
|
|
3514
3514
|
return String.fromCharCode(parseInt(n, 10));
|
|
3515
3515
|
});
|
|
3516
3516
|
},
|
|
3517
|
-
|
|
3517
|
+
Un = function Un(t, e, n) {
|
|
3518
3518
|
if (t && typeof t == "string" && e.comma && t.indexOf(",") > -1) return t.split(",");
|
|
3519
3519
|
if (e.throwOnLimitExceeded && n >= e.arrayLimit) throw new RangeError("Array limit exceeded. Only " + e.arrayLimit + " element" + (e.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
3520
3520
|
return t;
|
|
@@ -3540,11 +3540,11 @@ var Ss = function t(e) {
|
|
|
3540
3540
|
d = p === -1 ? l.indexOf("=") : p + 1,
|
|
3541
3541
|
v,
|
|
3542
3542
|
y;
|
|
3543
|
-
d === -1 ? (v = n.decoder(l, R.decoder, u, "key"), y = n.strictNullHandling ? null : "") : (v = n.decoder(l.slice(0, d), R.decoder, u, "key"), y = Y.maybeMap(
|
|
3543
|
+
d === -1 ? (v = n.decoder(l, R.decoder, u, "key"), y = n.strictNullHandling ? null : "") : (v = n.decoder(l.slice(0, d), R.decoder, u, "key"), y = Y.maybeMap(Un(l.slice(d + 1), n, Dr(r[v]) ? r[v].length : 0), function (h) {
|
|
3544
3544
|
return n.decoder(h, R.decoder, u, "value");
|
|
3545
3545
|
})), y && n.interpretNumericEntities && u === "iso-8859-1" && (y = wl(String(y))), l.indexOf("[]=") > -1 && (y = Dr(y) ? [y] : y);
|
|
3546
|
-
var
|
|
3547
|
-
|
|
3546
|
+
var g = Dt.call(r, v);
|
|
3547
|
+
g && n.duplicates === "combine" ? r[v] = Y.combine(r[v], y) : (!g || n.duplicates === "last") && (r[v] = y);
|
|
3548
3548
|
}
|
|
3549
3549
|
return r;
|
|
3550
3550
|
},
|
|
@@ -3554,7 +3554,7 @@ var Ss = function t(e) {
|
|
|
3554
3554
|
var a = t.slice(0, -1).join("");
|
|
3555
3555
|
o = Array.isArray(e) && e[a] ? e[a].length : 0;
|
|
3556
3556
|
}
|
|
3557
|
-
for (var i = r ? e :
|
|
3557
|
+
for (var i = r ? e : Un(e, n, o), s = t.length - 1; s >= 0; --s) {
|
|
3558
3558
|
var c,
|
|
3559
3559
|
u = t[s];
|
|
3560
3560
|
if (u === "[]" && n.parseArrays) c = n.allowEmptyArrays && (i === "" || n.strictNullHandling && i === null) ? [] : Y.combine([], i);else {
|
|
@@ -3721,11 +3721,11 @@ var $r = $t(Fl, {
|
|
|
3721
3721
|
It.extend(Vn);
|
|
3722
3722
|
It.extend(Kn);
|
|
3723
3723
|
var Gt = config.getConfig(),
|
|
3724
|
-
|
|
3724
|
+
Ln = (_Gt$sso = Gt.sso) !== null && _Gt$sso !== void 0 ? _Gt$sso : true,
|
|
3725
3725
|
Ir = (_Gt$i18n = Gt.i18n) !== null && _Gt$i18n !== void 0 ? _Gt$i18n : true,
|
|
3726
3726
|
Bn = (_Gt$noRedireLogin = Gt.noRedireLogin) !== null && _Gt$noRedireLogin !== void 0 ? _Gt$noRedireLogin : false;
|
|
3727
|
-
var
|
|
3728
|
-
|
|
3727
|
+
var Ur = "",
|
|
3728
|
+
Lr = 0;
|
|
3729
3729
|
var Dl = 1e3,
|
|
3730
3730
|
Br = /*#__PURE__*/function () {
|
|
3731
3731
|
var _ref21 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee9(t, e) {
|
|
@@ -3781,7 +3781,12 @@ var $l = 5e3,
|
|
|
3781
3781
|
var t = "/login";
|
|
3782
3782
|
location.pathname !== t && (window.sessionStorage.clear(), window.localStorage.clear(), window.__isAutoCloseApp = false, (e = window.top) != null && e.vueRouter ? (n = window.top) == null || n.vueRouter.replace(t) : window.location.replace("/#".concat(t)));
|
|
3783
3783
|
},
|
|
3784
|
-
Il =
|
|
3784
|
+
Il = function Il() {
|
|
3785
|
+
return sso.getQuery("code") || "" || Bn ? false : Mn() ? (Ln ? sso.login(_objectSpread(_objectSpread({}, sso.getTokenParams), {}, {
|
|
3786
|
+
redirect_uri: sso.real_uri
|
|
3787
|
+
})) : kn(), true) : false;
|
|
3788
|
+
},
|
|
3789
|
+
Ul = /*#__PURE__*/function () {
|
|
3785
3790
|
var _ref22 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee0(t) {
|
|
3786
3791
|
var _t$data;
|
|
3787
3792
|
var n;
|
|
@@ -3792,13 +3797,13 @@ var $l = 5e3,
|
|
|
3792
3797
|
}
|
|
3793
3798
|
}, _callee0);
|
|
3794
3799
|
}));
|
|
3795
|
-
return function
|
|
3800
|
+
return function Ul(_x11) {
|
|
3796
3801
|
return _ref22.apply(this, arguments);
|
|
3797
3802
|
};
|
|
3798
3803
|
}(),
|
|
3799
3804
|
Ll = /*#__PURE__*/function () {
|
|
3800
3805
|
var _ref23 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee1(t, e) {
|
|
3801
|
-
var
|
|
3806
|
+
var y, g, h, E, _i18nBridge$getI18nBr, n, r, o, a, i, s, c, u, _ref24, S, m, O, _ref25, _ref26, _S, _m, _O, p, d, v, _t10, _t11, _t12;
|
|
3802
3807
|
return _regenerator().w(function (_context10) {
|
|
3803
3808
|
while (1) switch (_context10.n) {
|
|
3804
3809
|
case 0:
|
|
@@ -3809,27 +3814,25 @@ var $l = 5e3,
|
|
|
3809
3814
|
404: n("接口地址未找到"),
|
|
3810
3815
|
500: n("服务器内部错误")
|
|
3811
3816
|
};
|
|
3812
|
-
s = ((
|
|
3813
|
-
c =
|
|
3814
|
-
if (!(
|
|
3817
|
+
s = ((y = t == null ? undefined : t.response) == null ? undefined : y.data) || {};
|
|
3818
|
+
c = s == null ? undefined : s.code, u = (g = t.response) == null ? undefined : g.status;
|
|
3819
|
+
if (!(c === 401 || u === 401)) {
|
|
3815
3820
|
_context10.n = 6;
|
|
3816
3821
|
break;
|
|
3817
3822
|
}
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
g = (_ref24 = e == null ? undefined : e.i18n) !== null && _ref24 !== void 0 ? _ref24 : true;
|
|
3822
|
-
if (!(Ir && g && s != null && s.status)) {
|
|
3823
|
+
Il(), r = c || u, a = s;
|
|
3824
|
+
S = (_ref24 = e == null ? undefined : e.i18n) !== null && _ref24 !== void 0 ? _ref24 : true;
|
|
3825
|
+
if (!(Ir && S && s != null && s.status)) {
|
|
3823
3826
|
_context10.n = 4;
|
|
3824
3827
|
break;
|
|
3825
3828
|
}
|
|
3826
|
-
|
|
3829
|
+
m = !(s != null && s.data) || !s.data.length ? [] : s.data, O = n.apply(void 0, [s.status].concat(_toConsumableArray(m)));
|
|
3827
3830
|
if (!(O === s.status)) {
|
|
3828
3831
|
_context10.n = 2;
|
|
3829
3832
|
break;
|
|
3830
3833
|
}
|
|
3831
3834
|
_context10.n = 1;
|
|
3832
|
-
return Br(n, s.status,
|
|
3835
|
+
return Br(n, s.status, m);
|
|
3833
3836
|
case 1:
|
|
3834
3837
|
_t10 = _context10.v;
|
|
3835
3838
|
_context10.n = 3;
|
|
@@ -3856,13 +3859,13 @@ var $l = 5e3,
|
|
|
3856
3859
|
break;
|
|
3857
3860
|
}
|
|
3858
3861
|
_context10.n = 7;
|
|
3859
|
-
return new Promise(function (
|
|
3860
|
-
var
|
|
3861
|
-
|
|
3862
|
+
return new Promise(function (S) {
|
|
3863
|
+
var m = new FileReader();
|
|
3864
|
+
m.readAsText(s, "utf-8"), m.onload = function () {
|
|
3862
3865
|
try {
|
|
3863
|
-
|
|
3866
|
+
S(JSON.parse(m.result || "{}"));
|
|
3864
3867
|
} catch (_unused20) {
|
|
3865
|
-
|
|
3868
|
+
S({
|
|
3866
3869
|
code: 400,
|
|
3867
3870
|
msg: n("解析错误")
|
|
3868
3871
|
});
|
|
@@ -3877,24 +3880,24 @@ var $l = 5e3,
|
|
|
3877
3880
|
break;
|
|
3878
3881
|
}
|
|
3879
3882
|
r = s.code, a = s;
|
|
3880
|
-
|
|
3881
|
-
if (!(Ir &&
|
|
3883
|
+
_S = (_ref25 = e == null ? undefined : e.i18n) !== null && _ref25 !== void 0 ? _ref25 : true;
|
|
3884
|
+
if (!(Ir && _S && s != null && s.status)) {
|
|
3882
3885
|
_context10.n = 12;
|
|
3883
3886
|
break;
|
|
3884
3887
|
}
|
|
3885
|
-
|
|
3886
|
-
if (!(
|
|
3888
|
+
_m = !(s != null && s.data) || !s.data.length ? [] : s.data, _O = n.apply(void 0, [s.status].concat(_toConsumableArray(_m)));
|
|
3889
|
+
if (!(_O === s.status)) {
|
|
3887
3890
|
_context10.n = 10;
|
|
3888
3891
|
break;
|
|
3889
3892
|
}
|
|
3890
3893
|
_context10.n = 9;
|
|
3891
|
-
return Br(n, s.status,
|
|
3894
|
+
return Br(n, s.status, _m);
|
|
3892
3895
|
case 9:
|
|
3893
3896
|
_t12 = _context10.v;
|
|
3894
3897
|
_context10.n = 11;
|
|
3895
3898
|
break;
|
|
3896
3899
|
case 10:
|
|
3897
|
-
_t12 =
|
|
3900
|
+
_t12 = _O;
|
|
3898
3901
|
case 11:
|
|
3899
3902
|
o = _t12;
|
|
3900
3903
|
_context10.n = 13;
|
|
@@ -3914,11 +3917,11 @@ var $l = 5e3,
|
|
|
3914
3917
|
t.request ? (r = 500, t.code === "ERR_CANCELED" ? o = t.abortReason || "" : o = n("网络异常,请检查您的网络情况")) : (r = 500, t.code === "ERR_CANCELED" ? o = t.abortReason || "" : o = n("请求配置异常"));
|
|
3915
3918
|
case 17:
|
|
3916
3919
|
e != null && e.customErrorMessage && (o = e == null ? undefined : e.customErrorMessage(o, t));
|
|
3917
|
-
|
|
3918
|
-
return _context10.a(2, (!(e != null && e.ignoreErrorMessage) && o && (!
|
|
3920
|
+
p = Date.now(), d = o === Ur, v = p - Lr < Dl;
|
|
3921
|
+
return _context10.a(2, (!(e != null && e.ignoreErrorMessage) && o && (!d || !v) && ((E = (h = window.DasMessage) == null ? undefined : h.error) == null || E.call(h, {
|
|
3919
3922
|
message: o,
|
|
3920
3923
|
showClose: true
|
|
3921
|
-
}),
|
|
3924
|
+
}), Ur = o, Lr = p), _objectSpread(_objectSpread({}, a), {}, {
|
|
3922
3925
|
code: r,
|
|
3923
3926
|
msg: o,
|
|
3924
3927
|
error: t
|
|
@@ -3930,7 +3933,7 @@ var $l = 5e3,
|
|
|
3930
3933
|
return _ref23.apply(this, arguments);
|
|
3931
3934
|
};
|
|
3932
3935
|
}();
|
|
3933
|
-
function
|
|
3936
|
+
function Bl(t, e) {
|
|
3934
3937
|
var n = P.create();
|
|
3935
3938
|
return curringHttp.curringHttp(n, /*#__PURE__*/function () {
|
|
3936
3939
|
var _ref27 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee10(r) {
|
|
@@ -3949,7 +3952,7 @@ function Ul(t, e) {
|
|
|
3949
3952
|
d = new URL(location.href).searchParams;
|
|
3950
3953
|
p = d.get("token") || d.get("accessToken") || d.get("accesstoken") || "";
|
|
3951
3954
|
}
|
|
3952
|
-
if (!
|
|
3955
|
+
if (!Ln) {
|
|
3953
3956
|
_context11.n = 3;
|
|
3954
3957
|
break;
|
|
3955
3958
|
}
|
|
@@ -3991,7 +3994,7 @@ function Ul(t, e) {
|
|
|
3991
3994
|
indices: false
|
|
3992
3995
|
});
|
|
3993
3996
|
}
|
|
3994
|
-
}), r.onSuccess || (r.onSuccess =
|
|
3997
|
+
}), r.onSuccess || (r.onSuccess = Ul), r.onError || (r.onError = Ll), ((_r$csrf = r.csrf) !== null && _r$csrf !== void 0 ? _r$csrf : false) && (r.headers["csrf-token"] = $r.get("csrf-token"));
|
|
3995
3998
|
c = r.params || {};
|
|
3996
3999
|
if (c.project === undefined) {
|
|
3997
4000
|
_p2 = 0;
|
|
@@ -4013,6 +4016,6 @@ function Ul(t, e) {
|
|
|
4013
4016
|
};
|
|
4014
4017
|
}());
|
|
4015
4018
|
}
|
|
4016
|
-
var
|
|
4017
|
-
|
|
4018
|
-
exports.gatewayEdge =
|
|
4019
|
+
var Ml = "v2",
|
|
4020
|
+
Ql = Bl("/api/edge/".concat(Ml));
|
|
4021
|
+
exports.gatewayEdge = Ql;
|