@das-fed/upf-utils 6.4.0-dev.227 → 6.4.0-dev.229
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 +1082 -1077
- package/api-services/index.js +846 -842
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/es5.js +1418 -1403
- package/api-services/modules/app-manage/index.js +1198 -1180
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/es5.js +161 -158
- package/api-services/modules/authentication/index.js +138 -138
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/es5.js +1180 -1165
- package/api-services/modules/bems/index.js +976 -958
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/es5.js +702 -699
- package/api-services/modules/contract/index.js +619 -619
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/es5.js +1389 -1374
- package/api-services/modules/duty-manage/index.js +1180 -1162
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/es5.js +1174 -1159
- package/api-services/modules/enterpriseright/index.js +971 -953
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/es5.js +1337 -1346
- package/api-services/modules/file/es5.js +1222 -1231
- package/api-services/modules/file/index.js +987 -1005
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/es5.js +1384 -1391
- package/api-services/modules/gateway-edge/index.js +1165 -1179
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +1046 -1064
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/es5.js +1206 -1191
- package/api-services/modules/iot/index.js +1006 -988
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/es5.js +1148 -1133
- package/api-services/modules/justauth/index.js +954 -936
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/es5.js +1157 -1163
- package/api-services/modules/knowledge/index.js +955 -969
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/es5.js +1384 -1393
- package/api-services/modules/link/index.js +1165 -1183
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/es5.js +1157 -1163
- package/api-services/modules/permission/index.js +955 -969
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/es5.js +171 -168
- package/api-services/modules/platformManage/index.js +150 -150
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/es5.js +235 -232
- package/api-services/modules/portal/index.js +209 -209
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/es5.js +919 -913
- package/api-services/modules/space-manage/index.js +728 -724
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/es5.js +1117 -1126
- package/api-services/modules/super-admin/index.js +916 -934
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/es5.js +165 -162
- package/api-services/modules/supplier/index.js +141 -141
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/es5.js +1134 -1143
- package/api-services/modules/supplychain-manage/index.js +932 -950
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/es5.js +1145 -1133
- package/api-services/modules/systemConfiguration/index.js +948 -934
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/es5.js +1174 -1159
- package/api-services/modules/tool/index.js +971 -953
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/es5.js +1390 -1397
- package/api-services/src/create-service/index.js +1164 -1178
- package/api-services/src/create-service/index.js.gz +0 -0
- package/common-info/es5.js +1635 -1596
- package/common-info/getPermissionMethod/es5.js +1160 -1148
- package/common-info/getPermissionMethod/index.js +956 -942
- package/common-info/getPermissionMethod/index.js.gz +0 -0
- package/common-info/index.d.ts +9 -2
- package/common-info/index.js +1417 -1397
- package/common-info/index.js.gz +0 -0
- package/create-api-service/es5.js +165 -161
- package/create-api-service/index.d.ts +6 -6
- package/create-api-service/index.js +151 -150
- package/create-api-service/index.js.gz +0 -0
- package/directive/auth/es5.js +49 -56
- package/directive/auth/index.js +33 -41
- package/directive/auth/index.js.gz +0 -0
- package/esm-map.json +4 -1
- package/hooks/use-get-auth/es5.js +57 -191
- package/hooks/use-get-auth/index.d.ts +2 -7
- package/hooks/use-get-auth/index.js +16 -50
- package/package.json +3 -3
- package/hooks/use-get-auth/apis.d.ts +0 -4
- package/hooks/use-get-auth/index.js.gz +0 -0
|
@@ -311,8 +311,8 @@ var qo = function qo(t) {
|
|
|
311
311
|
return setTimeout(r);
|
|
312
312
|
};
|
|
313
313
|
}(typeof setImmediate == "function", I(ee.postMessage)),
|
|
314
|
-
|
|
315
|
-
|
|
314
|
+
zo = (typeof queueMicrotask === "undefined" ? "undefined" : _typeof(queueMicrotask)) < "u" ? queueMicrotask.bind(ee) : (typeof process === "undefined" ? "undefined" : _typeof(process)) < "u" && process.nextTick || rn,
|
|
315
|
+
Wo = function Wo(t) {
|
|
316
316
|
return t != null && I(t[Qe]);
|
|
317
317
|
},
|
|
318
318
|
f = {
|
|
@@ -372,8 +372,8 @@ var qo = function qo(t) {
|
|
|
372
372
|
isAsyncFn: jo,
|
|
373
373
|
isThenable: Ho,
|
|
374
374
|
setImmediate: rn,
|
|
375
|
-
asap:
|
|
376
|
-
isIterable:
|
|
375
|
+
asap: zo,
|
|
376
|
+
isIterable: Wo
|
|
377
377
|
};
|
|
378
378
|
function w(t, e, r, n, o) {
|
|
379
379
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), r && (this.config = r), n && (this.request = n), o && (this.response = o, this.status = o.status ? o.status : null);
|
|
@@ -486,8 +486,8 @@ function Ye(t, e, r) {
|
|
|
486
486
|
function v(d, m) {
|
|
487
487
|
if (!f.isUndefined(d)) {
|
|
488
488
|
if (p.indexOf(d) !== -1) throw Error("Circular reference detected in " + m.join("."));
|
|
489
|
-
p.push(d), f.forEach(d, function (S,
|
|
490
|
-
(!(f.isUndefined(S) || S === null) && o.call(e, S, f.isString(
|
|
489
|
+
p.push(d), f.forEach(d, function (S, O) {
|
|
490
|
+
(!(f.isUndefined(S) || S === null) && o.call(e, S, f.isString(O) ? O.trim() : O, m, y)) === true && v(S, m ? m.concat(O) : [O]);
|
|
491
491
|
}), p.pop();
|
|
492
492
|
}
|
|
493
493
|
}
|
|
@@ -1055,7 +1055,7 @@ function mi(t, e) {
|
|
|
1055
1055
|
return o && a(o);
|
|
1056
1056
|
}];
|
|
1057
1057
|
}
|
|
1058
|
-
var
|
|
1058
|
+
var We = function We(t, e) {
|
|
1059
1059
|
var r = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 3;
|
|
1060
1060
|
var n = 0;
|
|
1061
1061
|
var o = hi(50, 250);
|
|
@@ -1237,7 +1237,7 @@ var yn = function yn(t) {
|
|
|
1237
1237
|
Si = (typeof XMLHttpRequest === "undefined" ? "undefined" : _typeof(XMLHttpRequest)) < "u",
|
|
1238
1238
|
Ei = Si && function (t) {
|
|
1239
1239
|
return new Promise(function (r, n) {
|
|
1240
|
-
var
|
|
1240
|
+
var _We, _We2, _We3, _We4;
|
|
1241
1241
|
var o = yn(t);
|
|
1242
1242
|
var i = o.data;
|
|
1243
1243
|
var a = D.from(o.headers).normalize();
|
|
@@ -1257,7 +1257,7 @@ var yn = function yn(t) {
|
|
|
1257
1257
|
function S() {
|
|
1258
1258
|
if (!h) return;
|
|
1259
1259
|
var g = D.from("getAllResponseHeaders" in h && h.getAllResponseHeaders()),
|
|
1260
|
-
|
|
1260
|
+
P = {
|
|
1261
1261
|
data: !s || s === "text" || s === "json" ? h.responseText : h.response,
|
|
1262
1262
|
status: h.status,
|
|
1263
1263
|
statusText: h.statusText,
|
|
@@ -1269,28 +1269,28 @@ var yn = function yn(t) {
|
|
|
1269
1269
|
r(T), m();
|
|
1270
1270
|
}, function (T) {
|
|
1271
1271
|
n(T), m();
|
|
1272
|
-
},
|
|
1272
|
+
}, P), h = null;
|
|
1273
1273
|
}
|
|
1274
1274
|
"onloadend" in h ? h.onloadend = S : h.onreadystatechange = function () {
|
|
1275
1275
|
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(S);
|
|
1276
1276
|
}, h.onabort = function () {
|
|
1277
1277
|
h && (n(new w("Request aborted", w.ECONNABORTED, t, h)), h = null);
|
|
1278
1278
|
}, h.onerror = function (E) {
|
|
1279
|
-
var
|
|
1280
|
-
U = new w(
|
|
1279
|
+
var P = E && E.message ? E.message : "Network Error",
|
|
1280
|
+
U = new w(P, w.ERR_NETWORK, t, h);
|
|
1281
1281
|
U.event = E || null, n(U), h = null;
|
|
1282
1282
|
}, h.ontimeout = function () {
|
|
1283
1283
|
var E = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
|
|
1284
|
-
var
|
|
1285
|
-
o.timeoutErrorMessage && (E = o.timeoutErrorMessage), n(new w(E,
|
|
1286
|
-
}, i === undefined && a.setContentType(null), "setRequestHeader" in h && f.forEach(a.toJSON(), function (E,
|
|
1287
|
-
h.setRequestHeader(
|
|
1288
|
-
}), f.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), s && s !== "json" && (h.responseType = o.responseType), u && (
|
|
1284
|
+
var P = o.transitional || cn;
|
|
1285
|
+
o.timeoutErrorMessage && (E = o.timeoutErrorMessage), n(new w(E, P.clarifyTimeoutError ? w.ETIMEDOUT : w.ECONNABORTED, t, h)), h = null;
|
|
1286
|
+
}, i === undefined && a.setContentType(null), "setRequestHeader" in h && f.forEach(a.toJSON(), function (E, P) {
|
|
1287
|
+
h.setRequestHeader(P, E);
|
|
1288
|
+
}), f.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), s && s !== "json" && (h.responseType = o.responseType), u && (_We = We(u, true), _We2 = _slicedToArray(_We, 2), y = _We2[0], d = _We2[1], h.addEventListener("progress", y)), c && h.upload && (_We3 = We(c), _We4 = _slicedToArray(_We3, 2), p = _We4[0], v = _We4[1], h.upload.addEventListener("progress", p), h.upload.addEventListener("loadend", v)), (o.cancelToken || o.signal) && (l = function l(g) {
|
|
1289
1289
|
h && (n(!g || g.type ? new me(null, t, h) : g), h.abort(), h = null);
|
|
1290
1290
|
}, o.cancelToken && o.cancelToken.subscribe(l), o.signal && (o.signal.aborted ? l() : o.signal.addEventListener("abort", l)));
|
|
1291
|
-
var
|
|
1292
|
-
if (
|
|
1293
|
-
n(new w("Unsupported protocol " +
|
|
1291
|
+
var O = yi(o.url);
|
|
1292
|
+
if (O && $.protocols.indexOf(O) === -1) {
|
|
1293
|
+
n(new w("Unsupported protocol " + O + ":", w.ERR_BAD_REQUEST, t));
|
|
1294
1294
|
return;
|
|
1295
1295
|
}
|
|
1296
1296
|
h.send(i || null);
|
|
@@ -1677,13 +1677,13 @@ var yn = function yn(t) {
|
|
|
1677
1677
|
}();
|
|
1678
1678
|
return /*#__PURE__*/function () {
|
|
1679
1679
|
var _ref15 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee7(d) {
|
|
1680
|
-
var _yn, m, h, S,
|
|
1680
|
+
var _yn, m, h, S, O, g, E, P, U, T, V, _yn$withCredentials, L, M, Z, k, C, F, B, K, se, _or, _or2, it, Ie, N, ae, j, ve, _K, _se, _ref16, _ref17, _it, _Ie, we, _t8, _t9, _t0;
|
|
1681
1681
|
return _regenerator().w(function (_context8) {
|
|
1682
1682
|
while (1) switch (_context8.p = _context8.n) {
|
|
1683
1683
|
case 0:
|
|
1684
|
-
_yn = yn(d), m = _yn.url, h = _yn.method, S = _yn.data,
|
|
1684
|
+
_yn = yn(d), m = _yn.url, h = _yn.method, S = _yn.data, O = _yn.signal, g = _yn.cancelToken, E = _yn.timeout, P = _yn.onDownloadProgress, U = _yn.onUploadProgress, T = _yn.responseType, V = _yn.headers, _yn$withCredentials = _yn.withCredentials, L = _yn$withCredentials === void 0 ? "same-origin" : _yn$withCredentials, M = _yn.fetchOptions, Z = e || fetch;
|
|
1685
1685
|
T = T ? (T + "").toLowerCase() : "text";
|
|
1686
|
-
k = Oi([
|
|
1686
|
+
k = Oi([O, g && g.toAbortSignal()], E), C = null;
|
|
1687
1687
|
F = k && k.unsubscribe && function () {
|
|
1688
1688
|
k.unsubscribe();
|
|
1689
1689
|
};
|
|
@@ -1709,7 +1709,7 @@ var yn = function yn(t) {
|
|
|
1709
1709
|
duplex: "half"
|
|
1710
1710
|
});
|
|
1711
1711
|
if (f.isFormData(S) && (se = K.headers.get("content-type")) && V.setContentType(se), K.body) {
|
|
1712
|
-
_or = or(B,
|
|
1712
|
+
_or = or(B, We(ir(U))), _or2 = _slicedToArray(_or, 2), it = _or2[0], Ie = _or2[1];
|
|
1713
1713
|
S = sr(K.body, lr, it, Ie);
|
|
1714
1714
|
}
|
|
1715
1715
|
case 4:
|
|
@@ -1728,12 +1728,12 @@ var yn = function yn(t) {
|
|
|
1728
1728
|
case 5:
|
|
1729
1729
|
j = _context8.v;
|
|
1730
1730
|
ve = l && (T === "stream" || T === "response");
|
|
1731
|
-
if (l && (
|
|
1731
|
+
if (l && (P || ve && F)) {
|
|
1732
1732
|
_K = {};
|
|
1733
1733
|
["status", "statusText", "headers"].forEach(function (Zt) {
|
|
1734
1734
|
_K[Zt] = j[Zt];
|
|
1735
1735
|
});
|
|
1736
|
-
_se = f.toFiniteNumber(j.headers.get("content-length")), _ref16 =
|
|
1736
|
+
_se = f.toFiniteNumber(j.headers.get("content-length")), _ref16 = P && or(_se, We(ir(P), !0)) || [], _ref17 = _slicedToArray(_ref16, 2), _it = _ref17[0], _Ie = _ref17[1];
|
|
1737
1737
|
j = new n(sr(j.body, lr, _it, function () {
|
|
1738
1738
|
_Ie && _Ie(), F && F();
|
|
1739
1739
|
}), _K);
|
|
@@ -2050,9 +2050,9 @@ f.forEach(["post", "put", "patch"], function (e) {
|
|
|
2050
2050
|
}
|
|
2051
2051
|
te.prototype[e] = r(), te.prototype[e + "Form"] = r(true);
|
|
2052
2052
|
});
|
|
2053
|
-
var
|
|
2054
|
-
function
|
|
2055
|
-
_classCallCheck(this,
|
|
2053
|
+
var zt = /*#__PURE__*/function () {
|
|
2054
|
+
function zt(e) {
|
|
2055
|
+
_classCallCheck(this, zt);
|
|
2056
2056
|
if (typeof e != "function") throw new TypeError("executor must be a function.");
|
|
2057
2057
|
var r;
|
|
2058
2058
|
this.promise = new Promise(function (i) {
|
|
@@ -2079,7 +2079,7 @@ var Wt = /*#__PURE__*/function () {
|
|
|
2079
2079
|
/**
|
|
2080
2080
|
* Throws a `CanceledError` if cancellation has been requested.
|
|
2081
2081
|
*/
|
|
2082
|
-
return _createClass(
|
|
2082
|
+
return _createClass(zt, [{
|
|
2083
2083
|
key: "throwIfRequested",
|
|
2084
2084
|
value: function throwIfRequested() {
|
|
2085
2085
|
if (this.reason) throw this.reason;
|
|
@@ -2127,7 +2127,7 @@ var Wt = /*#__PURE__*/function () {
|
|
|
2127
2127
|
value: function source() {
|
|
2128
2128
|
var e;
|
|
2129
2129
|
return {
|
|
2130
|
-
token: new
|
|
2130
|
+
token: new zt(function (o) {
|
|
2131
2131
|
e = o;
|
|
2132
2132
|
}),
|
|
2133
2133
|
cancel: e
|
|
@@ -2231,28 +2231,28 @@ function vn(t) {
|
|
|
2231
2231
|
return vn(ne(t, o));
|
|
2232
2232
|
}, r;
|
|
2233
2233
|
}
|
|
2234
|
-
var
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2234
|
+
var R = vn(Ce);
|
|
2235
|
+
R.Axios = te;
|
|
2236
|
+
R.CanceledError = me;
|
|
2237
|
+
R.CancelToken = zt;
|
|
2238
|
+
R.isCancel = fn;
|
|
2239
|
+
R.VERSION = gn;
|
|
2240
|
+
R.toFormData = Ye;
|
|
2241
|
+
R.AxiosError = w;
|
|
2242
|
+
R.Cancel = R.CanceledError;
|
|
2243
|
+
R.all = function (e) {
|
|
2244
2244
|
return Promise.all(e);
|
|
2245
2245
|
};
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2246
|
+
R.spread = $i;
|
|
2247
|
+
R.isAxiosError = Ii;
|
|
2248
|
+
R.mergeConfig = ne;
|
|
2249
|
+
R.AxiosHeaders = D;
|
|
2250
|
+
R.formToJSON = function (t) {
|
|
2251
2251
|
return un(f.isHTMLForm(t) ? new FormData(t) : t);
|
|
2252
2252
|
};
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2253
|
+
R.getAdapter = mn.getAdapter;
|
|
2254
|
+
R.HttpStatusCode = Ft;
|
|
2255
|
+
R["default"] = R;
|
|
2256
2256
|
var hr = (typeof globalThis === "undefined" ? "undefined" : _typeof(globalThis)) < "u" ? globalThis : (typeof window === "undefined" ? "undefined" : _typeof(window)) < "u" ? window : (typeof global === "undefined" ? "undefined" : _typeof(global)) < "u" ? global : (typeof self === "undefined" ? "undefined" : _typeof(self)) < "u" ? self : {};
|
|
2257
2257
|
function Di(t) {
|
|
2258
2258
|
return t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t["default"] : t;
|
|
@@ -2287,10 +2287,10 @@ var Li = {},
|
|
|
2287
2287
|
value: "Module"
|
|
2288
2288
|
})),
|
|
2289
2289
|
Mi = /* @__PURE__ */Ui(Bi);
|
|
2290
|
-
var
|
|
2291
|
-
ct = Object.getOwnPropertyDescriptor &&
|
|
2292
|
-
Ge =
|
|
2293
|
-
mr =
|
|
2290
|
+
var Wt = typeof Map == "function" && Map.prototype,
|
|
2291
|
+
ct = Object.getOwnPropertyDescriptor && Wt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null,
|
|
2292
|
+
Ge = Wt && ct && typeof ct.get == "function" ? ct.get : null,
|
|
2293
|
+
mr = Wt && Map.prototype.forEach,
|
|
2294
2294
|
Gt = typeof Set == "function" && Set.prototype,
|
|
2295
2295
|
ut = Object.getOwnPropertyDescriptor && Gt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null,
|
|
2296
2296
|
Je = Gt && ut && typeof ut.get == "function" ? ut.get : null,
|
|
@@ -2302,8 +2302,8 @@ var zt = typeof Map == "function" && Map.prototype,
|
|
|
2302
2302
|
ji = typeof WeakRef == "function" && WeakRef.prototype,
|
|
2303
2303
|
vr = ji ? WeakRef.prototype.deref : null,
|
|
2304
2304
|
Hi = Boolean.prototype.valueOf,
|
|
2305
|
-
|
|
2306
|
-
|
|
2305
|
+
zi = Object.prototype.toString,
|
|
2306
|
+
Wi = Function.prototype.toString,
|
|
2307
2307
|
Gi = String.prototype.match,
|
|
2308
2308
|
Jt = String.prototype.slice,
|
|
2309
2309
|
Q = String.prototype.replace,
|
|
@@ -2394,7 +2394,7 @@ var It = Mi,
|
|
|
2394
2394
|
return _typeof(e) == "object" && !de ? Se(m) : m;
|
|
2395
2395
|
}
|
|
2396
2396
|
if (ua(e)) {
|
|
2397
|
-
for (var h = "<" + wr.call(String(e.nodeName)), S = e.attributes || [],
|
|
2397
|
+
for (var h = "<" + wr.call(String(e.nodeName)), S = e.attributes || [], O = 0; O < S.length; O++) h += " " + S[O].name + "=" + En(Qi(S[O].value), "double", i);
|
|
2398
2398
|
return h += ">", e.childNodes && e.childNodes.length && (h += "..."), h += "</" + wr.call(String(e.nodeName)) + ">", h;
|
|
2399
2399
|
}
|
|
2400
2400
|
if (Dt(e)) {
|
|
@@ -2413,10 +2413,10 @@ var It = Mi,
|
|
|
2413
2413
|
if (a !== "symbol" && typeof e.inspect == "function") return e.inspect();
|
|
2414
2414
|
}
|
|
2415
2415
|
if (ia(e)) {
|
|
2416
|
-
var
|
|
2416
|
+
var P = [];
|
|
2417
2417
|
return mr && mr.call(e, function (C, F) {
|
|
2418
|
-
|
|
2419
|
-
}), Tr("Map", Ge.call(e),
|
|
2418
|
+
P.push(y(F, e, true) + " => " + y(C, e));
|
|
2419
|
+
}), Tr("Map", Ge.call(e), P, p);
|
|
2420
2420
|
}
|
|
2421
2421
|
if (la(e)) {
|
|
2422
2422
|
var U = [];
|
|
@@ -2499,11 +2499,11 @@ function J(t, e) {
|
|
|
2499
2499
|
return na.call(t, e);
|
|
2500
2500
|
}
|
|
2501
2501
|
function X(t) {
|
|
2502
|
-
return
|
|
2502
|
+
return zi.call(t);
|
|
2503
2503
|
}
|
|
2504
2504
|
function oa(t) {
|
|
2505
2505
|
if (t.name) return t.name;
|
|
2506
|
-
var e = Gi.call(
|
|
2506
|
+
var e = Gi.call(Wi.call(t), /^function\s*([\w$]+)/);
|
|
2507
2507
|
return e ? e[1] : null;
|
|
2508
2508
|
}
|
|
2509
2509
|
function An(t, e) {
|
|
@@ -2784,25 +2784,25 @@ var ka = "Function.prototype.bind called on incompatible ",
|
|
|
2784
2784
|
for (var i = 0; i < r.length; i += 1) n[i + e.length] = r[i];
|
|
2785
2785
|
return n;
|
|
2786
2786
|
},
|
|
2787
|
-
|
|
2787
|
+
za = function za(e, r) {
|
|
2788
2788
|
for (var n = [], o = r, i = 0; o < e.length; o += 1, i += 1) n[i] = e[o];
|
|
2789
2789
|
return n;
|
|
2790
2790
|
},
|
|
2791
|
-
|
|
2791
|
+
Wa = function Wa(t, e) {
|
|
2792
2792
|
for (var r = "", n = 0; n < t.length; n += 1) r += t[n], n + 1 < t.length && (r += e);
|
|
2793
2793
|
return r;
|
|
2794
2794
|
},
|
|
2795
2795
|
Ga = function Ga(e) {
|
|
2796
2796
|
var r = this;
|
|
2797
2797
|
if (typeof r != "function" || qa.apply(r) !== Ha) throw new TypeError(ka + r);
|
|
2798
|
-
for (var n =
|
|
2798
|
+
for (var n = za(arguments, 1), o, i = function i() {
|
|
2799
2799
|
if (this instanceof o) {
|
|
2800
2800
|
var l = r.apply(this, Nr(n, arguments));
|
|
2801
2801
|
return Object(l) === l ? l : this;
|
|
2802
2802
|
}
|
|
2803
2803
|
return r.apply(e, Nr(n, arguments));
|
|
2804
2804
|
}, a = ja(0, r.length - n.length), s = [], c = 0; c < a; c++) s[c] = "$" + c;
|
|
2805
|
-
if (o = Function("binder", "return function (" +
|
|
2805
|
+
if (o = Function("binder", "return function (" + Wa(s, ",") + "){ return binder.apply(this,arguments); }")(i), r.prototype) {
|
|
2806
2806
|
var u = function u() {};
|
|
2807
2807
|
u.prototype = r.prototype, o.prototype = new u(), u.prototype = null;
|
|
2808
2808
|
}
|
|
@@ -3190,9 +3190,9 @@ var Ps = function t(e) {
|
|
|
3190
3190
|
},
|
|
3191
3191
|
Hs = Kt,
|
|
3192
3192
|
ot = Un,
|
|
3193
|
-
|
|
3193
|
+
zs = tt,
|
|
3194
3194
|
Le = Ln,
|
|
3195
|
-
|
|
3195
|
+
Ws = ge,
|
|
3196
3196
|
ce = Hs("%WeakMap%", true),
|
|
3197
3197
|
Gs = ot("WeakMap.prototype.get", true),
|
|
3198
3198
|
Js = ot("WeakMap.prototype.set", true),
|
|
@@ -3204,7 +3204,7 @@ var Ps = function t(e) {
|
|
|
3204
3204
|
r,
|
|
3205
3205
|
n = {
|
|
3206
3206
|
assert: function assert(o) {
|
|
3207
|
-
if (!n.has(o)) throw new
|
|
3207
|
+
if (!n.has(o)) throw new Ws("Side channel does not contain " + zs(o));
|
|
3208
3208
|
},
|
|
3209
3209
|
"delete": function _delete(o) {
|
|
3210
3210
|
if (ce && o && (_typeof(o) == "object" || typeof o == "function")) {
|
|
@@ -3273,7 +3273,7 @@ var Ps = function t(e) {
|
|
|
3273
3273
|
al = Qt,
|
|
3274
3274
|
At = Object.prototype.hasOwnProperty,
|
|
3275
3275
|
Y = Array.isArray,
|
|
3276
|
-
|
|
3276
|
+
z = function () {
|
|
3277
3277
|
for (var t = [], e = 0; e < 256; ++e) t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
|
|
3278
3278
|
return t;
|
|
3279
3279
|
}(),
|
|
@@ -3340,18 +3340,18 @@ var Ps = function t(e) {
|
|
|
3340
3340
|
continue;
|
|
3341
3341
|
}
|
|
3342
3342
|
if (y < 128) {
|
|
3343
|
-
l[l.length] =
|
|
3343
|
+
l[l.length] = z[y];
|
|
3344
3344
|
continue;
|
|
3345
3345
|
}
|
|
3346
3346
|
if (y < 2048) {
|
|
3347
|
-
l[l.length] =
|
|
3347
|
+
l[l.length] = z[192 | y >> 6] + z[128 | y & 63];
|
|
3348
3348
|
continue;
|
|
3349
3349
|
}
|
|
3350
3350
|
if (y < 55296 || y >= 57344) {
|
|
3351
|
-
l[l.length] =
|
|
3351
|
+
l[l.length] = z[224 | y >> 12] + z[128 | y >> 6 & 63] + z[128 | y & 63];
|
|
3352
3352
|
continue;
|
|
3353
3353
|
}
|
|
3354
|
-
p += 1, y = 65536 + ((y & 1023) << 10 | u.charCodeAt(p) & 1023), l[l.length] =
|
|
3354
|
+
p += 1, y = 65536 + ((y & 1023) << 10 | u.charCodeAt(p) & 1023), l[l.length] = z[240 | y >> 18] + z[128 | y >> 12 & 63] + z[128 | y >> 6 & 63] + z[128 | y & 63];
|
|
3355
3355
|
}
|
|
3356
3356
|
s += l.join("");
|
|
3357
3357
|
}
|
|
@@ -3402,7 +3402,7 @@ var Ps = function t(e) {
|
|
|
3402
3402
|
merge: ll
|
|
3403
3403
|
},
|
|
3404
3404
|
kn = nl,
|
|
3405
|
-
|
|
3405
|
+
ze = Mn,
|
|
3406
3406
|
Re = Qt,
|
|
3407
3407
|
gl = Object.prototype.hasOwnProperty,
|
|
3408
3408
|
qn = {
|
|
@@ -3417,10 +3417,10 @@ var Ps = function t(e) {
|
|
|
3417
3417
|
return e;
|
|
3418
3418
|
}
|
|
3419
3419
|
},
|
|
3420
|
-
|
|
3420
|
+
W = Array.isArray,
|
|
3421
3421
|
vl = Array.prototype.push,
|
|
3422
3422
|
jn = function jn(t, e) {
|
|
3423
|
-
vl.apply(t,
|
|
3423
|
+
vl.apply(t, W(e) ? e : [e]);
|
|
3424
3424
|
},
|
|
3425
3425
|
wl = Date.prototype.toISOString,
|
|
3426
3426
|
kr = Re["default"],
|
|
@@ -3435,7 +3435,7 @@ var Ps = function t(e) {
|
|
|
3435
3435
|
delimiter: "&",
|
|
3436
3436
|
encode: true,
|
|
3437
3437
|
encodeDotInKeys: false,
|
|
3438
|
-
encoder:
|
|
3438
|
+
encoder: ze.encode,
|
|
3439
3439
|
encodeValuesOnly: false,
|
|
3440
3440
|
filter: undefined,
|
|
3441
3441
|
format: kr,
|
|
@@ -3452,22 +3452,22 @@ var Ps = function t(e) {
|
|
|
3452
3452
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || _typeof(e) == "symbol" || typeof e == "bigint";
|
|
3453
3453
|
},
|
|
3454
3454
|
Pt = {},
|
|
3455
|
-
Sl = function t(e, r, n, o, i, a, s, c, u, l, p, y, v, d, m, h, S,
|
|
3456
|
-
for (var g = e, E =
|
|
3455
|
+
Sl = function t(e, r, n, o, i, a, s, c, u, l, p, y, v, d, m, h, S, O) {
|
|
3456
|
+
for (var g = e, E = O, P = 0, U = false; (E = E.get(Pt)) !== undefined && !U;) {
|
|
3457
3457
|
var T = E.get(e);
|
|
3458
|
-
if (
|
|
3459
|
-
if (T ===
|
|
3458
|
+
if (P += 1, _typeof(T) < "u") {
|
|
3459
|
+
if (T === P) throw new RangeError("Cyclic object value");
|
|
3460
3460
|
U = true;
|
|
3461
3461
|
}
|
|
3462
|
-
_typeof(E.get(Pt)) > "u" && (
|
|
3462
|
+
_typeof(E.get(Pt)) > "u" && (P = 0);
|
|
3463
3463
|
}
|
|
3464
|
-
if (typeof l == "function" ? g = l(r, g) : g instanceof Date ? g = v(g) : n === "comma" &&
|
|
3464
|
+
if (typeof l == "function" ? g = l(r, g) : g instanceof Date ? g = v(g) : n === "comma" && W(g) && (g = ze.maybeMap(g, function (we) {
|
|
3465
3465
|
return we instanceof Date ? v(we) : we;
|
|
3466
3466
|
})), g === null) {
|
|
3467
3467
|
if (a) return u && !h ? u(r, x.encoder, S, "key", d) : r;
|
|
3468
3468
|
g = "";
|
|
3469
3469
|
}
|
|
3470
|
-
if (bl(g) ||
|
|
3470
|
+
if (bl(g) || ze.isBuffer(g)) {
|
|
3471
3471
|
if (u) {
|
|
3472
3472
|
var V = h ? r : u(r, x.encoder, S, "key", d);
|
|
3473
3473
|
return [m(V) + "=" + m(u(g, x.encoder, S, "value", d))];
|
|
@@ -3477,24 +3477,24 @@ var Ps = function t(e) {
|
|
|
3477
3477
|
var L = [];
|
|
3478
3478
|
if (_typeof(g) > "u") return L;
|
|
3479
3479
|
var M;
|
|
3480
|
-
if (n === "comma" &&
|
|
3480
|
+
if (n === "comma" && W(g)) h && u && (g = ze.maybeMap(g, u)), M = [{
|
|
3481
3481
|
value: g.length > 0 ? g.join(",") || null : undefined
|
|
3482
|
-
}];else if (
|
|
3482
|
+
}];else if (W(l)) M = l;else {
|
|
3483
3483
|
var Z = Object.keys(g);
|
|
3484
3484
|
M = p ? Z.sort(p) : Z;
|
|
3485
3485
|
}
|
|
3486
3486
|
var k = c ? String(r).replace(/\./g, "%2E") : String(r),
|
|
3487
|
-
C = o &&
|
|
3488
|
-
if (i &&
|
|
3487
|
+
C = o && W(g) && g.length === 1 ? k + "[]" : k;
|
|
3488
|
+
if (i && W(g) && g.length === 0) return C + "[]";
|
|
3489
3489
|
for (var F = 0; F < M.length; ++F) {
|
|
3490
3490
|
var B = M[F],
|
|
3491
3491
|
N = _typeof(B) == "object" && B && _typeof(B.value) < "u" ? B.value : g[B];
|
|
3492
3492
|
if (!(s && N === null)) {
|
|
3493
3493
|
var ae = y && c ? String(B).replace(/\./g, "%2E") : String(B),
|
|
3494
|
-
j =
|
|
3495
|
-
|
|
3494
|
+
j = W(g) ? typeof n == "function" ? n(C, ae) : C : C + (y ? "." + ae : "[" + ae + "]");
|
|
3495
|
+
O.set(e, P);
|
|
3496
3496
|
var ve = kn();
|
|
3497
|
-
ve.set(Pt,
|
|
3497
|
+
ve.set(Pt, O), jn(L, t(N, j, n, o, i, a, s, c, n === "comma" && h && W(g) ? null : u, l, p, y, v, d, m, h, S, ve));
|
|
3498
3498
|
}
|
|
3499
3499
|
}
|
|
3500
3500
|
return L;
|
|
@@ -3513,7 +3513,7 @@ var Ps = function t(e) {
|
|
|
3513
3513
|
}
|
|
3514
3514
|
var o = Re.formatters[n],
|
|
3515
3515
|
i = x.filter;
|
|
3516
|
-
(typeof e.filter == "function" ||
|
|
3516
|
+
(typeof e.filter == "function" || W(e.filter)) && (i = e.filter);
|
|
3517
3517
|
var a;
|
|
3518
3518
|
if (e.arrayFormat in qn ? a = e.arrayFormat : "indices" in e ? a = e.indices ? "indices" : "repeat" : a = x.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean") throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
3519
3519
|
var s = _typeof(e.allowDots) > "u" ? e.encodeDotInKeys === true ? true : x.allowDots : !!e.allowDots;
|
|
@@ -3544,7 +3544,7 @@ var Ps = function t(e) {
|
|
|
3544
3544
|
n = El(e),
|
|
3545
3545
|
o,
|
|
3546
3546
|
i;
|
|
3547
|
-
typeof n.filter == "function" ? (i = n.filter, r = i("", r)) :
|
|
3547
|
+
typeof n.filter == "function" ? (i = n.filter, r = i("", r)) : W(n.filter) && (i = n.filter, o = i);
|
|
3548
3548
|
var a = [];
|
|
3549
3549
|
if (_typeof(r) != "object" || r === null) return "";
|
|
3550
3550
|
var s = qn[n.arrayFormat],
|
|
@@ -3562,7 +3562,7 @@ var Ps = function t(e) {
|
|
|
3562
3562
|
oe = Mn,
|
|
3563
3563
|
Lt = Object.prototype.hasOwnProperty,
|
|
3564
3564
|
qr = Array.isArray,
|
|
3565
|
-
|
|
3565
|
+
A = {
|
|
3566
3566
|
allowDots: false,
|
|
3567
3567
|
allowEmptyArrays: false,
|
|
3568
3568
|
allowPrototypes: false,
|
|
@@ -3616,8 +3616,8 @@ var Ps = function t(e) {
|
|
|
3616
3616
|
y = p === -1 ? l.indexOf("=") : p + 1,
|
|
3617
3617
|
v,
|
|
3618
3618
|
d;
|
|
3619
|
-
y === -1 ? (v = r.decoder(l,
|
|
3620
|
-
return r.decoder(h,
|
|
3619
|
+
y === -1 ? (v = r.decoder(l, A.decoder, u, "key"), d = r.strictNullHandling ? null : "") : (v = r.decoder(l.slice(0, y), A.decoder, u, "key"), d = oe.maybeMap(Hn(l.slice(y + 1), r, qr(n[v]) ? n[v].length : 0), function (h) {
|
|
3620
|
+
return r.decoder(h, A.decoder, u, "value");
|
|
3621
3621
|
})), d && r.interpretNumericEntities && u === "iso-8859-1" && (d = Al(String(d))), l.indexOf("[]=") > -1 && (d = qr(d) ? [d] : d);
|
|
3622
3622
|
var m = Lt.call(n, v);
|
|
3623
3623
|
m && r.duplicates === "combine" ? n[v] = oe.combine(n[v], d) : (!m || r.duplicates === "last") && (n[v] = d);
|
|
@@ -3672,38 +3672,38 @@ var Ps = function t(e) {
|
|
|
3672
3672
|
}
|
|
3673
3673
|
},
|
|
3674
3674
|
Cl = function Cl(e) {
|
|
3675
|
-
if (!e) return
|
|
3675
|
+
if (!e) return A;
|
|
3676
3676
|
if (_typeof(e.allowEmptyArrays) < "u" && typeof e.allowEmptyArrays != "boolean") throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
|
|
3677
3677
|
if (_typeof(e.decodeDotInKeys) < "u" && typeof e.decodeDotInKeys != "boolean") throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");
|
|
3678
3678
|
if (e.decoder !== null && _typeof(e.decoder) < "u" && typeof e.decoder != "function") throw new TypeError("Decoder has to be a function.");
|
|
3679
3679
|
if (_typeof(e.charset) < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1") throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
3680
3680
|
if (_typeof(e.throwOnLimitExceeded) < "u" && typeof e.throwOnLimitExceeded != "boolean") throw new TypeError("`throwOnLimitExceeded` option must be a boolean");
|
|
3681
|
-
var r = _typeof(e.charset) > "u" ?
|
|
3682
|
-
n = _typeof(e.duplicates) > "u" ?
|
|
3681
|
+
var r = _typeof(e.charset) > "u" ? A.charset : e.charset,
|
|
3682
|
+
n = _typeof(e.duplicates) > "u" ? A.duplicates : e.duplicates;
|
|
3683
3683
|
if (n !== "combine" && n !== "first" && n !== "last") throw new TypeError("The duplicates option must be either combine, first, or last");
|
|
3684
|
-
var o = _typeof(e.allowDots) > "u" ? e.decodeDotInKeys === true ? true :
|
|
3684
|
+
var o = _typeof(e.allowDots) > "u" ? e.decodeDotInKeys === true ? true : A.allowDots : !!e.allowDots;
|
|
3685
3685
|
return {
|
|
3686
3686
|
allowDots: o,
|
|
3687
|
-
allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays :
|
|
3688
|
-
allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes :
|
|
3689
|
-
allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse :
|
|
3690
|
-
arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit :
|
|
3687
|
+
allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : A.allowEmptyArrays,
|
|
3688
|
+
allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes : A.allowPrototypes,
|
|
3689
|
+
allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse : A.allowSparse,
|
|
3690
|
+
arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit : A.arrayLimit,
|
|
3691
3691
|
charset: r,
|
|
3692
|
-
charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel :
|
|
3693
|
-
comma: typeof e.comma == "boolean" ? e.comma :
|
|
3694
|
-
decodeDotInKeys: typeof e.decodeDotInKeys == "boolean" ? e.decodeDotInKeys :
|
|
3695
|
-
decoder: typeof e.decoder == "function" ? e.decoder :
|
|
3696
|
-
delimiter: typeof e.delimiter == "string" || oe.isRegExp(e.delimiter) ? e.delimiter :
|
|
3692
|
+
charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : A.charsetSentinel,
|
|
3693
|
+
comma: typeof e.comma == "boolean" ? e.comma : A.comma,
|
|
3694
|
+
decodeDotInKeys: typeof e.decodeDotInKeys == "boolean" ? e.decodeDotInKeys : A.decodeDotInKeys,
|
|
3695
|
+
decoder: typeof e.decoder == "function" ? e.decoder : A.decoder,
|
|
3696
|
+
delimiter: typeof e.delimiter == "string" || oe.isRegExp(e.delimiter) ? e.delimiter : A.delimiter,
|
|
3697
3697
|
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
|
3698
|
-
depth: typeof e.depth == "number" || e.depth === false ? +e.depth :
|
|
3698
|
+
depth: typeof e.depth == "number" || e.depth === false ? +e.depth : A.depth,
|
|
3699
3699
|
duplicates: n,
|
|
3700
3700
|
ignoreQueryPrefix: e.ignoreQueryPrefix === true,
|
|
3701
|
-
interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities :
|
|
3702
|
-
parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit :
|
|
3701
|
+
interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities : A.interpretNumericEntities,
|
|
3702
|
+
parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit : A.parameterLimit,
|
|
3703
3703
|
parseArrays: e.parseArrays !== false,
|
|
3704
|
-
plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects :
|
|
3705
|
-
strictDepth: typeof e.strictDepth == "boolean" ? !!e.strictDepth :
|
|
3706
|
-
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling :
|
|
3704
|
+
plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects : A.plainObjects,
|
|
3705
|
+
strictDepth: typeof e.strictDepth == "boolean" ? !!e.strictDepth : A.strictDepth,
|
|
3706
|
+
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : A.strictNullHandling,
|
|
3707
3707
|
throwOnLimitExceeded: typeof e.throwOnLimitExceeded == "boolean" ? e.throwOnLimitExceeded : false
|
|
3708
3708
|
};
|
|
3709
3709
|
},
|
|
@@ -3797,11 +3797,11 @@ var jr = Bt(Ll, {
|
|
|
3797
3797
|
Mt.extend(eo);
|
|
3798
3798
|
Mt.extend(to);
|
|
3799
3799
|
var Xt = config.getConfig(),
|
|
3800
|
-
|
|
3800
|
+
zn = (_Xt$sso = Xt.sso) !== null && _Xt$sso !== void 0 ? _Xt$sso : true,
|
|
3801
3801
|
Hr = (_Xt$i18n = Xt.i18n) !== null && _Xt$i18n !== void 0 ? _Xt$i18n : true,
|
|
3802
|
-
|
|
3803
|
-
var
|
|
3804
|
-
|
|
3802
|
+
Wn = (_Xt$noRedireLogin = Xt.noRedireLogin) !== null && _Xt$noRedireLogin !== void 0 ? _Xt$noRedireLogin : false;
|
|
3803
|
+
var zr = "",
|
|
3804
|
+
Wr = 0;
|
|
3805
3805
|
var Bl = 1e3,
|
|
3806
3806
|
Gr = /*#__PURE__*/function () {
|
|
3807
3807
|
var _ref22 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee9(t, e) {
|
|
@@ -3853,11 +3853,16 @@ var Ml = 5e3,
|
|
|
3853
3853
|
},
|
|
3854
3854
|
Jn = function Jn() {
|
|
3855
3855
|
var e, r;
|
|
3856
|
-
if (
|
|
3856
|
+
if (Wn) return;
|
|
3857
3857
|
var t = "/login";
|
|
3858
3858
|
location.pathname !== t && (window.sessionStorage.clear(), window.localStorage.clear(), window.__isAutoCloseApp = false, (e = window.top) != null && e.vueRouter ? (r = window.top) == null || r.vueRouter.replace(t) : window.location.replace("/#".concat(t)));
|
|
3859
3859
|
},
|
|
3860
|
-
kl =
|
|
3860
|
+
kl = function kl() {
|
|
3861
|
+
return sso.getQuery("code") || "" || Wn ? false : Gn() ? (zn ? sso.login(_objectSpread(_objectSpread({}, sso.getTokenParams), {}, {
|
|
3862
|
+
redirect_uri: sso.real_uri
|
|
3863
|
+
})) : Jn(), true) : false;
|
|
3864
|
+
},
|
|
3865
|
+
ql = /*#__PURE__*/function () {
|
|
3861
3866
|
var _ref23 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee0(t) {
|
|
3862
3867
|
var _t$data;
|
|
3863
3868
|
var r;
|
|
@@ -3868,13 +3873,13 @@ var Ml = 5e3,
|
|
|
3868
3873
|
}
|
|
3869
3874
|
}, _callee0);
|
|
3870
3875
|
}));
|
|
3871
|
-
return function
|
|
3876
|
+
return function ql(_x11) {
|
|
3872
3877
|
return _ref23.apply(this, arguments);
|
|
3873
3878
|
};
|
|
3874
3879
|
}(),
|
|
3875
|
-
|
|
3880
|
+
jl = /*#__PURE__*/function () {
|
|
3876
3881
|
var _ref24 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee1(t, e) {
|
|
3877
|
-
var m, h, S,
|
|
3882
|
+
var d, m, h, S, _i18nBridge$getI18nBr, r, n, o, i, a, s, c, u, _ref25, O, g, E, _ref26, _ref27, _O, _g, _E, p, y, v, _t11, _t12, _t13;
|
|
3878
3883
|
return _regenerator().w(function (_context10) {
|
|
3879
3884
|
while (1) switch (_context10.n) {
|
|
3880
3885
|
case 0:
|
|
@@ -3885,33 +3890,31 @@ var Ml = 5e3,
|
|
|
3885
3890
|
404: r("接口地址未找到"),
|
|
3886
3891
|
500: r("服务器内部错误")
|
|
3887
3892
|
};
|
|
3888
|
-
s = ((
|
|
3889
|
-
c =
|
|
3890
|
-
if (!(
|
|
3893
|
+
s = ((d = t == null ? undefined : t.response) == null ? undefined : d.data) || {};
|
|
3894
|
+
c = s == null ? undefined : s.code, u = (m = t.response) == null ? undefined : m.status;
|
|
3895
|
+
if (!(c === 401 || u === 401)) {
|
|
3891
3896
|
_context10.n = 6;
|
|
3892
3897
|
break;
|
|
3893
3898
|
}
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
g = (_ref25 = e == null ? undefined : e.i18n) !== null && _ref25 !== void 0 ? _ref25 : true;
|
|
3898
|
-
if (!(Hr && g && s != null && s.status)) {
|
|
3899
|
+
kl(), n = c || u, i = s;
|
|
3900
|
+
O = (_ref25 = e == null ? undefined : e.i18n) !== null && _ref25 !== void 0 ? _ref25 : true;
|
|
3901
|
+
if (!(Hr && O && s != null && s.status)) {
|
|
3899
3902
|
_context10.n = 4;
|
|
3900
3903
|
break;
|
|
3901
3904
|
}
|
|
3902
|
-
|
|
3903
|
-
if (!(
|
|
3905
|
+
g = !(s != null && s.data) || !s.data.length ? [] : s.data, E = r.apply(void 0, [s.status].concat(_toConsumableArray(g)));
|
|
3906
|
+
if (!(E === s.status)) {
|
|
3904
3907
|
_context10.n = 2;
|
|
3905
3908
|
break;
|
|
3906
3909
|
}
|
|
3907
3910
|
_context10.n = 1;
|
|
3908
|
-
return Gr(r, s.status,
|
|
3911
|
+
return Gr(r, s.status, g);
|
|
3909
3912
|
case 1:
|
|
3910
3913
|
_t11 = _context10.v;
|
|
3911
3914
|
_context10.n = 3;
|
|
3912
3915
|
break;
|
|
3913
3916
|
case 2:
|
|
3914
|
-
_t11 =
|
|
3917
|
+
_t11 = E;
|
|
3915
3918
|
case 3:
|
|
3916
3919
|
o = _t11;
|
|
3917
3920
|
_context10.n = 5;
|
|
@@ -3932,13 +3935,13 @@ var Ml = 5e3,
|
|
|
3932
3935
|
break;
|
|
3933
3936
|
}
|
|
3934
3937
|
_context10.n = 7;
|
|
3935
|
-
return new Promise(function (
|
|
3936
|
-
var
|
|
3937
|
-
|
|
3938
|
+
return new Promise(function (O) {
|
|
3939
|
+
var g = new FileReader();
|
|
3940
|
+
g.readAsText(s, "utf-8"), g.onload = function () {
|
|
3938
3941
|
try {
|
|
3939
|
-
|
|
3942
|
+
O(JSON.parse(g.result || "{}"));
|
|
3940
3943
|
} catch (_unused21) {
|
|
3941
|
-
|
|
3944
|
+
O({
|
|
3942
3945
|
code: 400,
|
|
3943
3946
|
msg: r("解析错误")
|
|
3944
3947
|
});
|
|
@@ -3953,24 +3956,24 @@ var Ml = 5e3,
|
|
|
3953
3956
|
break;
|
|
3954
3957
|
}
|
|
3955
3958
|
n = s.code, i = s;
|
|
3956
|
-
|
|
3957
|
-
if (!(Hr &&
|
|
3959
|
+
_O = (_ref26 = e == null ? undefined : e.i18n) !== null && _ref26 !== void 0 ? _ref26 : true;
|
|
3960
|
+
if (!(Hr && _O && s != null && s.status)) {
|
|
3958
3961
|
_context10.n = 12;
|
|
3959
3962
|
break;
|
|
3960
3963
|
}
|
|
3961
|
-
|
|
3962
|
-
if (!(
|
|
3964
|
+
_g = !(s != null && s.data) || !s.data.length ? [] : s.data, _E = r.apply(void 0, [s.status].concat(_toConsumableArray(_g)));
|
|
3965
|
+
if (!(_E === s.status)) {
|
|
3963
3966
|
_context10.n = 10;
|
|
3964
3967
|
break;
|
|
3965
3968
|
}
|
|
3966
3969
|
_context10.n = 9;
|
|
3967
|
-
return Gr(r, s.status,
|
|
3970
|
+
return Gr(r, s.status, _g);
|
|
3968
3971
|
case 9:
|
|
3969
3972
|
_t13 = _context10.v;
|
|
3970
3973
|
_context10.n = 11;
|
|
3971
3974
|
break;
|
|
3972
3975
|
case 10:
|
|
3973
|
-
_t13 =
|
|
3976
|
+
_t13 = _E;
|
|
3974
3977
|
case 11:
|
|
3975
3978
|
o = _t13;
|
|
3976
3979
|
_context10.n = 13;
|
|
@@ -3990,11 +3993,11 @@ var Ml = 5e3,
|
|
|
3990
3993
|
t.request ? (n = 500, t.code === "ERR_CANCELED" ? o = t.abortReason || "" : o = r("网络异常,请检查您的网络情况")) : (n = 500, t.code === "ERR_CANCELED" ? o = t.abortReason || "" : o = r("请求配置异常"));
|
|
3991
3994
|
case 17:
|
|
3992
3995
|
e != null && e.customErrorMessage && (o = e == null ? undefined : e.customErrorMessage(o, t));
|
|
3993
|
-
|
|
3994
|
-
return _context10.a(2, (!(e != null && e.ignoreErrorMessage) && o && (!
|
|
3996
|
+
p = Date.now(), y = o === zr, v = p - Wr < Bl;
|
|
3997
|
+
return _context10.a(2, (!(e != null && e.ignoreErrorMessage) && o && (!y || !v) && ((S = (h = window.DasMessage) == null ? undefined : h.error) == null || S.call(h, {
|
|
3995
3998
|
message: o,
|
|
3996
3999
|
showClose: true
|
|
3997
|
-
}),
|
|
4000
|
+
}), zr = o, Wr = p), _objectSpread(_objectSpread({}, i), {}, {
|
|
3998
4001
|
code: n,
|
|
3999
4002
|
msg: o,
|
|
4000
4003
|
error: t
|
|
@@ -4002,12 +4005,12 @@ var Ml = 5e3,
|
|
|
4002
4005
|
}
|
|
4003
4006
|
}, _callee1);
|
|
4004
4007
|
}));
|
|
4005
|
-
return function
|
|
4008
|
+
return function jl(_x12, _x13) {
|
|
4006
4009
|
return _ref24.apply(this, arguments);
|
|
4007
4010
|
};
|
|
4008
4011
|
}();
|
|
4009
|
-
function
|
|
4010
|
-
var r =
|
|
4012
|
+
function Hl(t, e) {
|
|
4013
|
+
var r = R.create();
|
|
4011
4014
|
return curringHttp.curringHttp(r, /*#__PURE__*/function () {
|
|
4012
4015
|
var _ref28 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee10(n) {
|
|
4013
4016
|
var _n$csrf, _ref29;
|
|
@@ -4025,7 +4028,7 @@ function jl(t, e) {
|
|
|
4025
4028
|
y = new URL(location.href).searchParams;
|
|
4026
4029
|
p = y.get("token") || y.get("accessToken") || y.get("accesstoken") || "";
|
|
4027
4030
|
}
|
|
4028
|
-
if (!
|
|
4031
|
+
if (!zn) {
|
|
4029
4032
|
_context11.n = 3;
|
|
4030
4033
|
break;
|
|
4031
4034
|
}
|
|
@@ -4067,7 +4070,7 @@ function jl(t, e) {
|
|
|
4067
4070
|
indices: false
|
|
4068
4071
|
});
|
|
4069
4072
|
}
|
|
4070
|
-
}), n.onSuccess || (n.onSuccess =
|
|
4073
|
+
}), n.onSuccess || (n.onSuccess = ql), n.onError || (n.onError = jl), ((_n$csrf = n.csrf) !== null && _n$csrf !== void 0 ? _n$csrf : false) && (n.headers["csrf-token"] = jr.get("csrf-token"));
|
|
4071
4074
|
c = n.params || {};
|
|
4072
4075
|
if (c.project === undefined) {
|
|
4073
4076
|
_p = 0;
|
|
@@ -4089,6 +4092,6 @@ function jl(t, e) {
|
|
|
4089
4092
|
};
|
|
4090
4093
|
}());
|
|
4091
4094
|
}
|
|
4092
|
-
var
|
|
4093
|
-
|
|
4094
|
-
exports.authentication =
|
|
4095
|
+
var zl = "v1",
|
|
4096
|
+
tc = Hl("/api/license/admin/".concat(zl));
|
|
4097
|
+
exports.authentication = tc;
|