@das-fed/utils 7.0.7-hot.70 → 7.0.7-hot.71
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/index.js +261 -261
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/index.js +726 -708
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/index.js +1098 -1116
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/index.js +1101 -1119
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/index.js +154 -154
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/index.js +154 -154
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/index.js +626 -626
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/file/index.js +372 -372
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/index.js +832 -850
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +317 -317
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/index.js +159 -159
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/index.js +156 -156
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/index.js +197 -197
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/index.js +743 -725
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/index.js +1098 -1116
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/index.js +830 -844
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/index.js +154 -154
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/index.js +154 -154
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/index.js +627 -627
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/index.js +624 -624
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/index.js +626 -626
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/index.js +626 -626
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/index.js +626 -626
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/index.js +153 -153
- package/api-services/src/create-service/index.js.gz +0 -0
- package/create-api-service/index.js +182 -182
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/sso/index.js +138 -139
- package/create-api-service/sso/index.js.gz +0 -0
- package/create-api-service/thirdLogout/index.js +189 -190
- package/create-api-service/thirdLogout/index.js.gz +0 -0
- package/package.json +4 -4
|
@@ -16,11 +16,11 @@ function jr(t, e) {
|
|
|
16
16
|
const { toString: no } = Object.prototype, { getPrototypeOf: jt } = Object, { iterator: Ge, toStringTag: zr } = Symbol, Je = /* @__PURE__ */ ((t) => (e) => {
|
|
17
17
|
const n = no.call(e);
|
|
18
18
|
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
|
|
19
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
19
|
+
})(/* @__PURE__ */ Object.create(null)), U = (t) => (t = t.toLowerCase(), (e) => Je(e) === t), Ve = (t) => (e) => typeof e === t, { isArray: fe } = Array, Se = Ve("undefined");
|
|
20
20
|
function Ae(t) {
|
|
21
21
|
return t !== null && !Se(t) && t.constructor !== null && !Se(t.constructor) && N(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
22
22
|
}
|
|
23
|
-
const Hr =
|
|
23
|
+
const Hr = U("ArrayBuffer");
|
|
24
24
|
function oo(t) {
|
|
25
25
|
let e;
|
|
26
26
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Hr(t.buffer), e;
|
|
@@ -38,11 +38,11 @@ const io = Ve("string"), N = Ve("function"), Wr = Ve("number"), Oe = (t) => t !=
|
|
|
38
38
|
} catch {
|
|
39
39
|
return !1;
|
|
40
40
|
}
|
|
41
|
-
}, lo =
|
|
41
|
+
}, lo = U("Date"), co = U("File"), uo = U("Blob"), fo = U("FileList"), po = (t) => Oe(t) && N(t.pipe), yo = (t) => {
|
|
42
42
|
let e;
|
|
43
43
|
return t && (typeof FormData == "function" && t instanceof FormData || N(t.append) && ((e = Je(t)) === "formdata" || // detect form-data instance
|
|
44
44
|
e === "object" && N(t.toString) && t.toString() === "[object FormData]"));
|
|
45
|
-
}, ho =
|
|
45
|
+
}, ho = U("URLSearchParams"), [mo, go, vo, wo] = ["ReadableStream", "Request", "Response", "Headers"].map(U), bo = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
46
46
|
function Re(t, e, { allOwnKeys: n = !1 } = {}) {
|
|
47
47
|
if (t === null || typeof t > "u")
|
|
48
48
|
return;
|
|
@@ -122,12 +122,12 @@ const So = (t, e, n, { allOwnKeys: r } = {}) => (Re(e, (o, i) => {
|
|
|
122
122
|
for (; (n = t.exec(e)) !== null; )
|
|
123
123
|
r.push(n);
|
|
124
124
|
return r;
|
|
125
|
-
}, _o =
|
|
125
|
+
}, _o = U("HTMLFormElement"), $o = (t) => t.toLowerCase().replace(
|
|
126
126
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
127
127
|
function(n, r, o) {
|
|
128
128
|
return r.toUpperCase() + o;
|
|
129
129
|
}
|
|
130
|
-
), Yt = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), No =
|
|
130
|
+
), Yt = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), No = U("RegExp"), Vr = (t, e) => {
|
|
131
131
|
const n = Object.getOwnPropertyDescriptors(t), r = {};
|
|
132
132
|
Re(n, (o, i) => {
|
|
133
133
|
let a;
|
|
@@ -156,11 +156,11 @@ const So = (t, e, n, { allOwnKeys: r } = {}) => (Re(e, (o, i) => {
|
|
|
156
156
|
};
|
|
157
157
|
return fe(t) ? r(t) : r(String(t).split(e)), n;
|
|
158
158
|
}, Io = () => {
|
|
159
|
-
},
|
|
160
|
-
function
|
|
159
|
+
}, Bo = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
|
|
160
|
+
function Uo(t) {
|
|
161
161
|
return !!(t && N(t.append) && t[zr] === "FormData" && t[Ge]);
|
|
162
162
|
}
|
|
163
|
-
const
|
|
163
|
+
const Lo = (t) => {
|
|
164
164
|
const e = new Array(10), n = (r, o) => {
|
|
165
165
|
if (Oe(r)) {
|
|
166
166
|
if (e.indexOf(r) >= 0)
|
|
@@ -179,7 +179,7 @@ const Uo = (t) => {
|
|
|
179
179
|
return r;
|
|
180
180
|
};
|
|
181
181
|
return n(t, 0);
|
|
182
|
-
}, Mo =
|
|
182
|
+
}, Mo = U("AsyncFunction"), ko = (t) => t && (Oe(t) || N(t)) && N(t.then) && N(t.catch), Kr = ((t, e) => t ? setImmediate : e ? ((n, r) => (Z.addEventListener("message", ({ source: o, data: i }) => {
|
|
183
183
|
o === Z && i === n && r.length && r.shift()();
|
|
184
184
|
}, !1), (o) => {
|
|
185
185
|
r.push(o), Z.postMessage(n, "*");
|
|
@@ -220,7 +220,7 @@ const Uo = (t) => {
|
|
|
220
220
|
inherits: Ao,
|
|
221
221
|
toFlatObject: Oo,
|
|
222
222
|
kindOf: Je,
|
|
223
|
-
kindOfTest:
|
|
223
|
+
kindOfTest: U,
|
|
224
224
|
endsWith: Ro,
|
|
225
225
|
toArray: Po,
|
|
226
226
|
forEachEntry: xo,
|
|
@@ -234,12 +234,12 @@ const Uo = (t) => {
|
|
|
234
234
|
toObjectSet: Do,
|
|
235
235
|
toCamelCase: $o,
|
|
236
236
|
noop: Io,
|
|
237
|
-
toFiniteNumber:
|
|
237
|
+
toFiniteNumber: Bo,
|
|
238
238
|
findKey: Gr,
|
|
239
239
|
global: Z,
|
|
240
240
|
isContextDefined: Jr,
|
|
241
|
-
isSpecCompliantForm:
|
|
242
|
-
toJSONObject:
|
|
241
|
+
isSpecCompliantForm: Uo,
|
|
242
|
+
toJSONObject: Lo,
|
|
243
243
|
isAsyncFn: Mo,
|
|
244
244
|
isThenable: ko,
|
|
245
245
|
setImmediate: Kr,
|
|
@@ -338,12 +338,12 @@ function Ke(t, e, n) {
|
|
|
338
338
|
return f.isArrayBuffer(y) || f.isTypedArray(y) ? u && typeof Blob == "function" ? new Blob([y]) : Buffer.from(y) : y;
|
|
339
339
|
}
|
|
340
340
|
function c(y, m, h) {
|
|
341
|
-
let
|
|
341
|
+
let S = y;
|
|
342
342
|
if (y && !h && typeof y == "object") {
|
|
343
343
|
if (f.endsWith(m, "{}"))
|
|
344
344
|
m = r ? m : m.slice(0, -2), y = JSON.stringify(y);
|
|
345
|
-
else if (f.isArray(y) && Ho(y) || (f.isFileList(y) || f.endsWith(m, "[]")) && (
|
|
346
|
-
return m = Zr(m),
|
|
345
|
+
else if (f.isArray(y) && Ho(y) || (f.isFileList(y) || f.endsWith(m, "[]")) && (S = f.toArray(y)))
|
|
346
|
+
return m = Zr(m), S.forEach(function(g, T) {
|
|
347
347
|
!(f.isUndefined(g) || g === null) && e.append(
|
|
348
348
|
// eslint-disable-next-line no-nested-ternary
|
|
349
349
|
a === !0 ? er([m], T, i) : a === null ? m : m + "[]",
|
|
@@ -362,14 +362,14 @@ function Ke(t, e, n) {
|
|
|
362
362
|
if (!f.isUndefined(y)) {
|
|
363
363
|
if (p.indexOf(y) !== -1)
|
|
364
364
|
throw Error("Circular reference detected in " + m.join("."));
|
|
365
|
-
p.push(y), f.forEach(y, function(
|
|
366
|
-
(!(f.isUndefined(
|
|
365
|
+
p.push(y), f.forEach(y, function(S, E) {
|
|
366
|
+
(!(f.isUndefined(S) || S === null) && o.call(
|
|
367
367
|
e,
|
|
368
|
-
|
|
368
|
+
S,
|
|
369
369
|
f.isString(E) ? E.trim() : E,
|
|
370
370
|
m,
|
|
371
371
|
d
|
|
372
|
-
)) === !0 && v(
|
|
372
|
+
)) === !0 && v(S, m ? m.concat(E) : [E]);
|
|
373
373
|
}), p.pop();
|
|
374
374
|
}
|
|
375
375
|
}
|
|
@@ -1038,7 +1038,7 @@ const sn = (t) => {
|
|
|
1038
1038
|
}
|
|
1039
1039
|
let h = new XMLHttpRequest();
|
|
1040
1040
|
h.open(o.method.toUpperCase(), o.url, !0), h.timeout = o.timeout;
|
|
1041
|
-
function
|
|
1041
|
+
function S() {
|
|
1042
1042
|
if (!h)
|
|
1043
1043
|
return;
|
|
1044
1044
|
const g = F.from(
|
|
@@ -1057,8 +1057,8 @@ const sn = (t) => {
|
|
|
1057
1057
|
r($), m();
|
|
1058
1058
|
}, A), h = null;
|
|
1059
1059
|
}
|
|
1060
|
-
"onloadend" in h ? h.onloadend =
|
|
1061
|
-
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(
|
|
1060
|
+
"onloadend" in h ? h.onloadend = S : h.onreadystatechange = function() {
|
|
1061
|
+
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(S);
|
|
1062
1062
|
}, h.onabort = function() {
|
|
1063
1063
|
h && (r(new w("Request aborted", w.ECONNABORTED, t, h)), h = null);
|
|
1064
1064
|
}, h.onerror = function() {
|
|
@@ -1244,7 +1244,7 @@ const Pi = async (t) => {
|
|
|
1244
1244
|
}
|
|
1245
1245
|
}
|
|
1246
1246
|
f.isString(p) || (p = p ? "include" : "omit");
|
|
1247
|
-
const
|
|
1247
|
+
const S = "credentials" in Request.prototype;
|
|
1248
1248
|
y = new Request(e, {
|
|
1249
1249
|
...d,
|
|
1250
1250
|
signal: v,
|
|
@@ -1252,14 +1252,14 @@ const Pi = async (t) => {
|
|
|
1252
1252
|
headers: c.normalize().toJSON(),
|
|
1253
1253
|
body: r,
|
|
1254
1254
|
duplex: "half",
|
|
1255
|
-
credentials:
|
|
1255
|
+
credentials: S ? p : void 0
|
|
1256
1256
|
});
|
|
1257
1257
|
let E = await fetch(y, d);
|
|
1258
1258
|
const g = $t && (l === "stream" || l === "response");
|
|
1259
1259
|
if ($t && (s || g && m)) {
|
|
1260
1260
|
const A = {};
|
|
1261
|
-
["status", "statusText", "headers"].forEach((
|
|
1262
|
-
A[
|
|
1261
|
+
["status", "statusText", "headers"].forEach((L) => {
|
|
1262
|
+
A[L] = E[L];
|
|
1263
1263
|
});
|
|
1264
1264
|
const _ = f.toFiniteNumber(E.headers.get("content-length")), [$, z] = s && or(
|
|
1265
1265
|
_,
|
|
@@ -1284,13 +1284,13 @@ const Pi = async (t) => {
|
|
|
1284
1284
|
request: y
|
|
1285
1285
|
});
|
|
1286
1286
|
});
|
|
1287
|
-
} catch (
|
|
1288
|
-
throw m && m(),
|
|
1287
|
+
} catch (S) {
|
|
1288
|
+
throw m && m(), S && S.name === "TypeError" && /Load failed|fetch/i.test(S.message) ? Object.assign(
|
|
1289
1289
|
new w("Network Error", w.ERR_NETWORK, t, y),
|
|
1290
1290
|
{
|
|
1291
|
-
cause:
|
|
1291
|
+
cause: S.cause || S
|
|
1292
1292
|
}
|
|
1293
|
-
) : w.from(
|
|
1293
|
+
) : w.from(S, S && S.code, t, y);
|
|
1294
1294
|
}
|
|
1295
1295
|
}), Nt = {
|
|
1296
1296
|
http: zo,
|
|
@@ -1399,10 +1399,10 @@ function _i(t, e, n) {
|
|
|
1399
1399
|
throw new w("Unknown option " + i, w.ERR_BAD_OPTION);
|
|
1400
1400
|
}
|
|
1401
1401
|
}
|
|
1402
|
-
const
|
|
1402
|
+
const Be = {
|
|
1403
1403
|
assertOptions: _i,
|
|
1404
1404
|
validators: Xe
|
|
1405
|
-
}, M =
|
|
1405
|
+
}, M = Be.validators;
|
|
1406
1406
|
let Y = class {
|
|
1407
1407
|
constructor(e) {
|
|
1408
1408
|
this.defaults = e || {}, this.interceptors = {
|
|
@@ -1438,16 +1438,16 @@ let Y = class {
|
|
|
1438
1438
|
_request(e, n) {
|
|
1439
1439
|
typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = te(this.defaults, n);
|
|
1440
1440
|
const { transitional: r, paramsSerializer: o, headers: i } = n;
|
|
1441
|
-
r !== void 0 &&
|
|
1441
|
+
r !== void 0 && Be.assertOptions(r, {
|
|
1442
1442
|
silentJSONParsing: M.transitional(M.boolean),
|
|
1443
1443
|
forcedJSONParsing: M.transitional(M.boolean),
|
|
1444
1444
|
clarifyTimeoutError: M.transitional(M.boolean)
|
|
1445
1445
|
}, !1), o != null && (f.isFunction(o) ? n.paramsSerializer = {
|
|
1446
1446
|
serialize: o
|
|
1447
|
-
} :
|
|
1447
|
+
} : Be.assertOptions(o, {
|
|
1448
1448
|
encode: M.function,
|
|
1449
1449
|
serialize: M.function
|
|
1450
|
-
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0),
|
|
1450
|
+
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), Be.assertOptions(n, {
|
|
1451
1451
|
baseUrl: M.spelling("baseURL"),
|
|
1452
1452
|
withXsrfToken: M.spelling("withXSRFToken")
|
|
1453
1453
|
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
@@ -1744,10 +1744,10 @@ function Ii(t) {
|
|
|
1744
1744
|
}), n;
|
|
1745
1745
|
}
|
|
1746
1746
|
var de = TypeError;
|
|
1747
|
-
const
|
|
1747
|
+
const Bi = {}, Ui = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1748
1748
|
__proto__: null,
|
|
1749
|
-
default:
|
|
1750
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1749
|
+
default: Bi
|
|
1750
|
+
}, Symbol.toStringTag, { value: "Module" })), Li = /* @__PURE__ */ Ii(Ui);
|
|
1751
1751
|
var Wt = typeof Map == "function" && Map.prototype, st = Object.getOwnPropertyDescriptor && Wt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, je = Wt && st && typeof st.get == "function" ? st.get : null, dr = Wt && Map.prototype.forEach, Gt = typeof Set == "function" && Set.prototype, lt = Object.getOwnPropertyDescriptor && Gt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, ze = Gt && lt && typeof lt.get == "function" ? lt.get : null, yr = Gt && Set.prototype.forEach, Mi = typeof WeakMap == "function" && WeakMap.prototype, ge = Mi ? WeakMap.prototype.has : null, ki = typeof WeakSet == "function" && WeakSet.prototype, ve = ki ? WeakSet.prototype.has : null, qi = typeof WeakRef == "function" && WeakRef.prototype, hr = qi ? WeakRef.prototype.deref : null, ji = Boolean.prototype.valueOf, zi = Object.prototype.toString, Hi = Function.prototype.toString, Wi = String.prototype.match, Jt = String.prototype.slice, K = String.prototype.replace, Gi = String.prototype.toUpperCase, mr = String.prototype.toLowerCase, yn = RegExp.prototype.test, gr = Array.prototype.concat, j = Array.prototype.join, Ji = Array.prototype.slice, vr = Math.floor, Dt = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, ct = Object.getOwnPropertySymbols, It = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, ce = typeof Symbol == "function" && typeof Symbol.iterator == "object", we = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === ce || !0) ? Symbol.toStringTag : null, hn = Object.prototype.propertyIsEnumerable, wr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
|
|
1752
1752
|
return t.__proto__;
|
|
1753
1753
|
} : null);
|
|
@@ -1764,7 +1764,7 @@ function br(t, e) {
|
|
|
1764
1764
|
}
|
|
1765
1765
|
return K.call(e, n, "$&_");
|
|
1766
1766
|
}
|
|
1767
|
-
var
|
|
1767
|
+
var Bt = Li, Sr = Bt.custom, Er = vn(Sr) ? Sr : null, mn = {
|
|
1768
1768
|
__proto__: null,
|
|
1769
1769
|
double: '"',
|
|
1770
1770
|
single: "'"
|
|
@@ -1806,7 +1806,7 @@ var Lt = Ui, Sr = Lt.custom, Er = vn(Sr) ? Sr : null, mn = {
|
|
|
1806
1806
|
}
|
|
1807
1807
|
var c = typeof i.depth > "u" ? 5 : i.depth;
|
|
1808
1808
|
if (typeof r > "u" && (r = 0), r >= c && c > 0 && typeof e == "object")
|
|
1809
|
-
return
|
|
1809
|
+
return Ut(e) ? "[Array]" : "[Object]";
|
|
1810
1810
|
var p = pa(i, r);
|
|
1811
1811
|
if (typeof o > "u")
|
|
1812
1812
|
o = [];
|
|
@@ -1830,23 +1830,23 @@ var Lt = Ui, Sr = Lt.custom, Er = vn(Sr) ? Sr : null, mn = {
|
|
|
1830
1830
|
return typeof e == "object" && !ce ? me(m) : m;
|
|
1831
1831
|
}
|
|
1832
1832
|
if (ca(e)) {
|
|
1833
|
-
for (var h = "<" + mr.call(String(e.nodeName)),
|
|
1834
|
-
h += " " +
|
|
1833
|
+
for (var h = "<" + mr.call(String(e.nodeName)), S = e.attributes || [], E = 0; E < S.length; E++)
|
|
1834
|
+
h += " " + S[E].name + "=" + gn(Ki(S[E].value), "double", i);
|
|
1835
1835
|
return h += ">", e.childNodes && e.childNodes.length && (h += "..."), h += "</" + mr.call(String(e.nodeName)) + ">", h;
|
|
1836
1836
|
}
|
|
1837
|
-
if (
|
|
1837
|
+
if (Ut(e)) {
|
|
1838
1838
|
if (e.length === 0)
|
|
1839
1839
|
return "[]";
|
|
1840
1840
|
var g = $e(e, d);
|
|
1841
|
-
return p && !fa(g) ? "[" +
|
|
1841
|
+
return p && !fa(g) ? "[" + Lt(g, p) + "]" : "[ " + j.call(g, ", ") + " ]";
|
|
1842
1842
|
}
|
|
1843
1843
|
if (Xi(e)) {
|
|
1844
1844
|
var T = $e(e, d);
|
|
1845
1845
|
return !("cause" in Error.prototype) && "cause" in e && !hn.call(e, "cause") ? "{ [" + String(e) + "] " + j.call(gr.call("[cause]: " + d(e.cause), T), ", ") + " }" : T.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + j.call(T, ", ") + " }";
|
|
1846
1846
|
}
|
|
1847
1847
|
if (typeof e == "object" && a) {
|
|
1848
|
-
if (Er && typeof e[Er] == "function" &&
|
|
1849
|
-
return
|
|
1848
|
+
if (Er && typeof e[Er] == "function" && Bt)
|
|
1849
|
+
return Bt(e, { depth: c - r });
|
|
1850
1850
|
if (a !== "symbol" && typeof e.inspect == "function")
|
|
1851
1851
|
return e.inspect();
|
|
1852
1852
|
}
|
|
@@ -1881,8 +1881,8 @@ var Lt = Ui, Sr = Lt.custom, Er = vn(Sr) ? Sr : null, mn = {
|
|
|
1881
1881
|
if (typeof globalThis < "u" && e === globalThis || typeof pr < "u" && e === pr)
|
|
1882
1882
|
return "{ [object globalThis] }";
|
|
1883
1883
|
if (!Qi(e) && !Ar(e)) {
|
|
1884
|
-
var $ = $e(e, d), z = wr ? wr(e) === Object.prototype : e instanceof Object || e.constructor === Object,
|
|
1885
|
-
return $.length === 0 ? oe + "{}" : p ? oe + "{" +
|
|
1884
|
+
var $ = $e(e, d), z = wr ? wr(e) === Object.prototype : e instanceof Object || e.constructor === Object, L = e instanceof Object ? "" : "null prototype", G = !z && we && Object(e) === e && we in e ? Jt.call(Q(e), 8, -1) : L ? "Object" : "", _e = z || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", oe = _e + (G || L ? "[" + j.call(gr.call([], G || [], L || []), ": ") + "] " : "");
|
|
1885
|
+
return $.length === 0 ? oe + "{}" : p ? oe + "{" + Lt($, p) + "}" : oe + "{ " + j.call($, ", ") + " }";
|
|
1886
1886
|
}
|
|
1887
1887
|
return String(e);
|
|
1888
1888
|
};
|
|
@@ -1896,7 +1896,7 @@ function Ki(t) {
|
|
|
1896
1896
|
function ne(t) {
|
|
1897
1897
|
return !we || !(typeof t == "object" && (we in t || typeof t[we] < "u"));
|
|
1898
1898
|
}
|
|
1899
|
-
function
|
|
1899
|
+
function Ut(t) {
|
|
1900
1900
|
return Q(t) === "[object Array]" && ne(t);
|
|
1901
1901
|
}
|
|
1902
1902
|
function Qi(t) {
|
|
@@ -2061,7 +2061,7 @@ function ut(t) {
|
|
|
2061
2061
|
return t + " { ? }";
|
|
2062
2062
|
}
|
|
2063
2063
|
function Or(t, e, n, r) {
|
|
2064
|
-
var o = r ?
|
|
2064
|
+
var o = r ? Lt(n, r) : j.call(n, ", ");
|
|
2065
2065
|
return t + " (" + e + ") {" + o + "}";
|
|
2066
2066
|
}
|
|
2067
2067
|
function fa(t) {
|
|
@@ -2084,7 +2084,7 @@ function pa(t, e) {
|
|
|
2084
2084
|
prev: j.call(Array(e + 1), n)
|
|
2085
2085
|
};
|
|
2086
2086
|
}
|
|
2087
|
-
function
|
|
2087
|
+
function Lt(t, e) {
|
|
2088
2088
|
if (t.length === 0)
|
|
2089
2089
|
return "";
|
|
2090
2090
|
var n = `
|
|
@@ -2093,7 +2093,7 @@ function Ut(t, e) {
|
|
|
2093
2093
|
` + e.prev;
|
|
2094
2094
|
}
|
|
2095
2095
|
function $e(t, e) {
|
|
2096
|
-
var n =
|
|
2096
|
+
var n = Ut(t), r = [];
|
|
2097
2097
|
if (n) {
|
|
2098
2098
|
r.length = t.length;
|
|
2099
2099
|
for (var o = 0; o < t.length; o++)
|
|
@@ -2168,22 +2168,22 @@ var da = Ze, ya = de, Ye = function(t, e, n) {
|
|
|
2168
2168
|
return e !== e;
|
|
2169
2169
|
}, Fa = Na, Da = function(e) {
|
|
2170
2170
|
return Fa(e) || e === 0 ? e : e < 0 ? -1 : 1;
|
|
2171
|
-
}, Ia = Object.getOwnPropertyDescriptor,
|
|
2172
|
-
if (
|
|
2171
|
+
}, Ia = Object.getOwnPropertyDescriptor, Ue = Ia;
|
|
2172
|
+
if (Ue)
|
|
2173
2173
|
try {
|
|
2174
|
-
|
|
2174
|
+
Ue([], "length");
|
|
2175
2175
|
} catch {
|
|
2176
|
-
|
|
2176
|
+
Ue = null;
|
|
2177
2177
|
}
|
|
2178
|
-
var En =
|
|
2179
|
-
if (
|
|
2178
|
+
var En = Ue, Le = Object.defineProperty || !1;
|
|
2179
|
+
if (Le)
|
|
2180
2180
|
try {
|
|
2181
|
-
|
|
2181
|
+
Le({}, "a", { value: 1 });
|
|
2182
2182
|
} catch {
|
|
2183
|
-
|
|
2183
|
+
Le = !1;
|
|
2184
2184
|
}
|
|
2185
|
-
var
|
|
2186
|
-
function
|
|
2185
|
+
var Ba = Le, ft, Rr;
|
|
2186
|
+
function Ua() {
|
|
2187
2187
|
return Rr || (Rr = 1, ft = function() {
|
|
2188
2188
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
2189
2189
|
return !1;
|
|
@@ -2213,10 +2213,10 @@ function Ba() {
|
|
|
2213
2213
|
}), ft;
|
|
2214
2214
|
}
|
|
2215
2215
|
var pt, Pr;
|
|
2216
|
-
function
|
|
2216
|
+
function La() {
|
|
2217
2217
|
if (Pr) return pt;
|
|
2218
2218
|
Pr = 1;
|
|
2219
|
-
var t = typeof Symbol < "u" && Symbol, e =
|
|
2219
|
+
var t = typeof Symbol < "u" && Symbol, e = Ua();
|
|
2220
2220
|
return pt = function() {
|
|
2221
2221
|
return typeof t != "function" || typeof Symbol != "function" || typeof t("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : e();
|
|
2222
2222
|
}, pt;
|
|
@@ -2257,11 +2257,11 @@ function Ma() {
|
|
|
2257
2257
|
throw new TypeError(t + l);
|
|
2258
2258
|
for (var c = i(arguments, 1), p, d = function() {
|
|
2259
2259
|
if (this instanceof p) {
|
|
2260
|
-
var
|
|
2260
|
+
var S = l.apply(
|
|
2261
2261
|
this,
|
|
2262
2262
|
o(c, arguments)
|
|
2263
2263
|
);
|
|
2264
|
-
return Object(
|
|
2264
|
+
return Object(S) === S ? S : this;
|
|
2265
2265
|
}
|
|
2266
2266
|
return l.apply(
|
|
2267
2267
|
u,
|
|
@@ -2342,12 +2342,12 @@ function Za() {
|
|
|
2342
2342
|
var t = Function.prototype.call, e = Object.prototype.hasOwnProperty, n = et();
|
|
2343
2343
|
return St = n.call(t, e), St;
|
|
2344
2344
|
}
|
|
2345
|
-
var
|
|
2345
|
+
var b, Ya = Sn, es = ba, ts = Sa, rs = Ea, ns = Aa, ue = Oa, le = de, os = Ra, is = Pa, as = Ta, ss = xa, ls = Ca, cs = _a, us = $a, fs = Da, Tn = Function, Et = function(t) {
|
|
2346
2346
|
try {
|
|
2347
2347
|
return Tn('"use strict"; return (' + t + ").constructor;")();
|
|
2348
2348
|
} catch {
|
|
2349
2349
|
}
|
|
2350
|
-
}, Ee = En, ps =
|
|
2350
|
+
}, Ee = En, ps = Ba, At = function() {
|
|
2351
2351
|
throw new le();
|
|
2352
2352
|
}, ds = Ee ? function() {
|
|
2353
2353
|
try {
|
|
@@ -2359,23 +2359,23 @@ var S, Ya = Sn, es = ba, ts = Sa, rs = Ea, ns = Aa, ue = Oa, le = de, os = Ra, i
|
|
|
2359
2359
|
return At;
|
|
2360
2360
|
}
|
|
2361
2361
|
}
|
|
2362
|
-
}() : At, ie =
|
|
2362
|
+
}() : At, ie = La()(), x = Xa(), ys = On(), hs = An(), xn = Rn(), Te = Vt(), se = {}, ms = typeof Uint8Array > "u" || !x ? b : x(Uint8Array), ee = {
|
|
2363
2363
|
__proto__: null,
|
|
2364
|
-
"%AggregateError%": typeof AggregateError > "u" ?
|
|
2364
|
+
"%AggregateError%": typeof AggregateError > "u" ? b : AggregateError,
|
|
2365
2365
|
"%Array%": Array,
|
|
2366
|
-
"%ArrayBuffer%": typeof ArrayBuffer > "u" ?
|
|
2367
|
-
"%ArrayIteratorPrototype%": ie && x ? x([][Symbol.iterator]()) :
|
|
2368
|
-
"%AsyncFromSyncIteratorPrototype%":
|
|
2366
|
+
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? b : ArrayBuffer,
|
|
2367
|
+
"%ArrayIteratorPrototype%": ie && x ? x([][Symbol.iterator]()) : b,
|
|
2368
|
+
"%AsyncFromSyncIteratorPrototype%": b,
|
|
2369
2369
|
"%AsyncFunction%": se,
|
|
2370
2370
|
"%AsyncGenerator%": se,
|
|
2371
2371
|
"%AsyncGeneratorFunction%": se,
|
|
2372
2372
|
"%AsyncIteratorPrototype%": se,
|
|
2373
|
-
"%Atomics%": typeof Atomics > "u" ?
|
|
2374
|
-
"%BigInt%": typeof BigInt > "u" ?
|
|
2375
|
-
"%BigInt64Array%": typeof BigInt64Array > "u" ?
|
|
2376
|
-
"%BigUint64Array%": typeof BigUint64Array > "u" ?
|
|
2373
|
+
"%Atomics%": typeof Atomics > "u" ? b : Atomics,
|
|
2374
|
+
"%BigInt%": typeof BigInt > "u" ? b : BigInt,
|
|
2375
|
+
"%BigInt64Array%": typeof BigInt64Array > "u" ? b : BigInt64Array,
|
|
2376
|
+
"%BigUint64Array%": typeof BigUint64Array > "u" ? b : BigUint64Array,
|
|
2377
2377
|
"%Boolean%": Boolean,
|
|
2378
|
-
"%DataView%": typeof DataView > "u" ?
|
|
2378
|
+
"%DataView%": typeof DataView > "u" ? b : DataView,
|
|
2379
2379
|
"%Date%": Date,
|
|
2380
2380
|
"%decodeURI%": decodeURI,
|
|
2381
2381
|
"%decodeURIComponent%": decodeURIComponent,
|
|
@@ -2385,51 +2385,51 @@ var S, Ya = Sn, es = ba, ts = Sa, rs = Ea, ns = Aa, ue = Oa, le = de, os = Ra, i
|
|
|
2385
2385
|
"%eval%": eval,
|
|
2386
2386
|
// eslint-disable-line no-eval
|
|
2387
2387
|
"%EvalError%": ts,
|
|
2388
|
-
"%Float16Array%": typeof Float16Array > "u" ?
|
|
2389
|
-
"%Float32Array%": typeof Float32Array > "u" ?
|
|
2390
|
-
"%Float64Array%": typeof Float64Array > "u" ?
|
|
2391
|
-
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ?
|
|
2388
|
+
"%Float16Array%": typeof Float16Array > "u" ? b : Float16Array,
|
|
2389
|
+
"%Float32Array%": typeof Float32Array > "u" ? b : Float32Array,
|
|
2390
|
+
"%Float64Array%": typeof Float64Array > "u" ? b : Float64Array,
|
|
2391
|
+
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? b : FinalizationRegistry,
|
|
2392
2392
|
"%Function%": Tn,
|
|
2393
2393
|
"%GeneratorFunction%": se,
|
|
2394
|
-
"%Int8Array%": typeof Int8Array > "u" ?
|
|
2395
|
-
"%Int16Array%": typeof Int16Array > "u" ?
|
|
2396
|
-
"%Int32Array%": typeof Int32Array > "u" ?
|
|
2394
|
+
"%Int8Array%": typeof Int8Array > "u" ? b : Int8Array,
|
|
2395
|
+
"%Int16Array%": typeof Int16Array > "u" ? b : Int16Array,
|
|
2396
|
+
"%Int32Array%": typeof Int32Array > "u" ? b : Int32Array,
|
|
2397
2397
|
"%isFinite%": isFinite,
|
|
2398
2398
|
"%isNaN%": isNaN,
|
|
2399
|
-
"%IteratorPrototype%": ie && x ? x(x([][Symbol.iterator]())) :
|
|
2400
|
-
"%JSON%": typeof JSON == "object" ? JSON :
|
|
2401
|
-
"%Map%": typeof Map > "u" ?
|
|
2402
|
-
"%MapIteratorPrototype%": typeof Map > "u" || !ie || !x ?
|
|
2399
|
+
"%IteratorPrototype%": ie && x ? x(x([][Symbol.iterator]())) : b,
|
|
2400
|
+
"%JSON%": typeof JSON == "object" ? JSON : b,
|
|
2401
|
+
"%Map%": typeof Map > "u" ? b : Map,
|
|
2402
|
+
"%MapIteratorPrototype%": typeof Map > "u" || !ie || !x ? b : x((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
2403
2403
|
"%Math%": Math,
|
|
2404
2404
|
"%Number%": Number,
|
|
2405
2405
|
"%Object%": Ya,
|
|
2406
2406
|
"%Object.getOwnPropertyDescriptor%": Ee,
|
|
2407
2407
|
"%parseFloat%": parseFloat,
|
|
2408
2408
|
"%parseInt%": parseInt,
|
|
2409
|
-
"%Promise%": typeof Promise > "u" ?
|
|
2410
|
-
"%Proxy%": typeof Proxy > "u" ?
|
|
2409
|
+
"%Promise%": typeof Promise > "u" ? b : Promise,
|
|
2410
|
+
"%Proxy%": typeof Proxy > "u" ? b : Proxy,
|
|
2411
2411
|
"%RangeError%": rs,
|
|
2412
2412
|
"%ReferenceError%": ns,
|
|
2413
|
-
"%Reflect%": typeof Reflect > "u" ?
|
|
2413
|
+
"%Reflect%": typeof Reflect > "u" ? b : Reflect,
|
|
2414
2414
|
"%RegExp%": RegExp,
|
|
2415
|
-
"%Set%": typeof Set > "u" ?
|
|
2416
|
-
"%SetIteratorPrototype%": typeof Set > "u" || !ie || !x ?
|
|
2417
|
-
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ?
|
|
2415
|
+
"%Set%": typeof Set > "u" ? b : Set,
|
|
2416
|
+
"%SetIteratorPrototype%": typeof Set > "u" || !ie || !x ? b : x((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
2417
|
+
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? b : SharedArrayBuffer,
|
|
2418
2418
|
"%String%": String,
|
|
2419
|
-
"%StringIteratorPrototype%": ie && x ? x(""[Symbol.iterator]()) :
|
|
2420
|
-
"%Symbol%": ie ? Symbol :
|
|
2419
|
+
"%StringIteratorPrototype%": ie && x ? x(""[Symbol.iterator]()) : b,
|
|
2420
|
+
"%Symbol%": ie ? Symbol : b,
|
|
2421
2421
|
"%SyntaxError%": ue,
|
|
2422
2422
|
"%ThrowTypeError%": ds,
|
|
2423
2423
|
"%TypedArray%": ms,
|
|
2424
2424
|
"%TypeError%": le,
|
|
2425
|
-
"%Uint8Array%": typeof Uint8Array > "u" ?
|
|
2426
|
-
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ?
|
|
2427
|
-
"%Uint16Array%": typeof Uint16Array > "u" ?
|
|
2428
|
-
"%Uint32Array%": typeof Uint32Array > "u" ?
|
|
2425
|
+
"%Uint8Array%": typeof Uint8Array > "u" ? b : Uint8Array,
|
|
2426
|
+
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? b : Uint8ClampedArray,
|
|
2427
|
+
"%Uint16Array%": typeof Uint16Array > "u" ? b : Uint16Array,
|
|
2428
|
+
"%Uint32Array%": typeof Uint32Array > "u" ? b : Uint32Array,
|
|
2429
2429
|
"%URIError%": os,
|
|
2430
|
-
"%WeakMap%": typeof WeakMap > "u" ?
|
|
2431
|
-
"%WeakRef%": typeof WeakRef > "u" ?
|
|
2432
|
-
"%WeakSet%": typeof WeakSet > "u" ?
|
|
2430
|
+
"%WeakMap%": typeof WeakMap > "u" ? b : WeakMap,
|
|
2431
|
+
"%WeakRef%": typeof WeakRef > "u" ? b : WeakRef,
|
|
2432
|
+
"%WeakSet%": typeof WeakSet > "u" ? b : WeakSet,
|
|
2433
2433
|
"%Function.prototype.call%": Te,
|
|
2434
2434
|
"%Function.prototype.apply%": xn,
|
|
2435
2435
|
"%Object.defineProperty%": ps,
|
|
@@ -2466,7 +2466,7 @@ var vs = function t(e) {
|
|
|
2466
2466
|
o && x && (n = x(o.prototype));
|
|
2467
2467
|
}
|
|
2468
2468
|
return ee[e] = n, n;
|
|
2469
|
-
},
|
|
2469
|
+
}, Br = {
|
|
2470
2470
|
__proto__: null,
|
|
2471
2471
|
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
2472
2472
|
"%ArrayPrototype%": ["Array", "prototype"],
|
|
@@ -2519,19 +2519,19 @@ var vs = function t(e) {
|
|
|
2519
2519
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
2520
2520
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
2521
2521
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
2522
|
-
}, xe = et(), He = Za(), ws = xe.call(Te, Array.prototype.concat), bs = xe.call(xn, Array.prototype.splice),
|
|
2522
|
+
}, xe = et(), He = Za(), ws = xe.call(Te, Array.prototype.concat), bs = xe.call(xn, Array.prototype.splice), Ur = xe.call(Te, String.prototype.replace), We = xe.call(Te, String.prototype.slice), Ss = xe.call(Te, RegExp.prototype.exec), Es = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, As = /\\(\\)?/g, Os = function(e) {
|
|
2523
2523
|
var n = We(e, 0, 1), r = We(e, -1);
|
|
2524
2524
|
if (n === "%" && r !== "%")
|
|
2525
2525
|
throw new ue("invalid intrinsic syntax, expected closing `%`");
|
|
2526
2526
|
if (r === "%" && n !== "%")
|
|
2527
2527
|
throw new ue("invalid intrinsic syntax, expected opening `%`");
|
|
2528
2528
|
var o = [];
|
|
2529
|
-
return
|
|
2530
|
-
o[o.length] = s ?
|
|
2529
|
+
return Ur(e, Es, function(i, a, s, u) {
|
|
2530
|
+
o[o.length] = s ? Ur(u, As, "$1") : a || i;
|
|
2531
2531
|
}), o;
|
|
2532
2532
|
}, Rs = function(e, n) {
|
|
2533
2533
|
var r = e, o;
|
|
2534
|
-
if (He(
|
|
2534
|
+
if (He(Br, r) && (o = Br[r], r = "%" + o[0] + "%"), He(ee, r)) {
|
|
2535
2535
|
var i = ee[r];
|
|
2536
2536
|
if (i === se && (i = vs(r)), typeof i > "u" && !n)
|
|
2537
2537
|
throw new le("intrinsic " + e + " exists, but is not available. Please file an issue!");
|
|
@@ -2581,7 +2581,7 @@ var vs = function t(e) {
|
|
|
2581
2581
|
/** @type {const} */
|
|
2582
2582
|
[r]
|
|
2583
2583
|
) : r;
|
|
2584
|
-
}, Ts = Kt, Ce = $n, xs = Ze, Cs = de,
|
|
2584
|
+
}, Ts = Kt, Ce = $n, xs = Ze, Cs = de, Lr = Ts("%Map%", !0), _s = Ce("Map.prototype.get", !0), $s = Ce("Map.prototype.set", !0), Ns = Ce("Map.prototype.has", !0), Fs = Ce("Map.prototype.delete", !0), Ds = Ce("Map.prototype.size", !0), Nn = !!Lr && /** @type {Exclude<import('.'), false>} */
|
|
2585
2585
|
function() {
|
|
2586
2586
|
var e, n = {
|
|
2587
2587
|
assert: function(r) {
|
|
@@ -2603,17 +2603,17 @@ function() {
|
|
|
2603
2603
|
return e ? Ns(e, r) : !1;
|
|
2604
2604
|
},
|
|
2605
2605
|
set: function(r, o) {
|
|
2606
|
-
e || (e = new
|
|
2606
|
+
e || (e = new Lr()), $s(e, r, o);
|
|
2607
2607
|
}
|
|
2608
2608
|
};
|
|
2609
2609
|
return n;
|
|
2610
|
-
}, Is = Kt, tt = $n,
|
|
2610
|
+
}, Is = Kt, tt = $n, Bs = Ze, Ne = Nn, Us = de, ae = Is("%WeakMap%", !0), Ls = tt("WeakMap.prototype.get", !0), Ms = tt("WeakMap.prototype.set", !0), ks = tt("WeakMap.prototype.has", !0), qs = tt("WeakMap.prototype.delete", !0), js = ae ? (
|
|
2611
2611
|
/** @type {Exclude<import('.'), false>} */
|
|
2612
2612
|
function() {
|
|
2613
2613
|
var e, n, r = {
|
|
2614
2614
|
assert: function(o) {
|
|
2615
2615
|
if (!r.has(o))
|
|
2616
|
-
throw new
|
|
2616
|
+
throw new Us("Side channel does not contain " + Bs(o));
|
|
2617
2617
|
},
|
|
2618
2618
|
delete: function(o) {
|
|
2619
2619
|
if (ae && o && (typeof o == "object" || typeof o == "function")) {
|
|
@@ -2624,7 +2624,7 @@ function() {
|
|
|
2624
2624
|
return !1;
|
|
2625
2625
|
},
|
|
2626
2626
|
get: function(o) {
|
|
2627
|
-
return ae && o && (typeof o == "object" || typeof o == "function") && e ?
|
|
2627
|
+
return ae && o && (typeof o == "object" || typeof o == "function") && e ? Ls(e, o) : n && n.get(o);
|
|
2628
2628
|
},
|
|
2629
2629
|
has: function(o) {
|
|
2630
2630
|
return ae && o && (typeof o == "object" || typeof o == "function") && e ? ks(e, o) : !!n && n.has(o);
|
|
@@ -2788,7 +2788,7 @@ function() {
|
|
|
2788
2788
|
isRegExp: il,
|
|
2789
2789
|
maybeMap: ll,
|
|
2790
2790
|
merge: el
|
|
2791
|
-
}, In = Ks, Me = Dn, be = Qt, cl = Object.prototype.hasOwnProperty,
|
|
2791
|
+
}, In = Ks, Me = Dn, be = Qt, cl = Object.prototype.hasOwnProperty, Bn = {
|
|
2792
2792
|
brackets: function(e) {
|
|
2793
2793
|
return e + "[]";
|
|
2794
2794
|
},
|
|
@@ -2799,7 +2799,7 @@ function() {
|
|
|
2799
2799
|
repeat: function(e) {
|
|
2800
2800
|
return e;
|
|
2801
2801
|
}
|
|
2802
|
-
}, q = Array.isArray, ul = Array.prototype.push,
|
|
2802
|
+
}, q = Array.isArray, ul = Array.prototype.push, Un = function(t, e) {
|
|
2803
2803
|
ul.apply(t, q(e) ? e : [e]);
|
|
2804
2804
|
}, fl = Date.prototype.toISOString, Mr = be.default, P = {
|
|
2805
2805
|
addQueryPrefix: !1,
|
|
@@ -2826,7 +2826,7 @@ function() {
|
|
|
2826
2826
|
strictNullHandling: !1
|
|
2827
2827
|
}, pl = function(e) {
|
|
2828
2828
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
|
|
2829
|
-
}, Tt = {}, dl = function t(e, n, r, o, i, a, s, u, l, c, p, d, v, y, m, h,
|
|
2829
|
+
}, Tt = {}, dl = function t(e, n, r, o, i, a, s, u, l, c, p, d, v, y, m, h, S, E) {
|
|
2830
2830
|
for (var g = e, T = E, A = 0, _ = !1; (T = T.get(Tt)) !== void 0 && !_; ) {
|
|
2831
2831
|
var $ = T.get(e);
|
|
2832
2832
|
if (A += 1, typeof $ < "u") {
|
|
@@ -2840,19 +2840,19 @@ function() {
|
|
|
2840
2840
|
return nt instanceof Date ? v(nt) : nt;
|
|
2841
2841
|
})), g === null) {
|
|
2842
2842
|
if (a)
|
|
2843
|
-
return l && !h ? l(n, P.encoder,
|
|
2843
|
+
return l && !h ? l(n, P.encoder, S, "key", y) : n;
|
|
2844
2844
|
g = "";
|
|
2845
2845
|
}
|
|
2846
2846
|
if (pl(g) || Me.isBuffer(g)) {
|
|
2847
2847
|
if (l) {
|
|
2848
|
-
var z = h ? n : l(n, P.encoder,
|
|
2849
|
-
return [m(z) + "=" + m(l(g, P.encoder,
|
|
2848
|
+
var z = h ? n : l(n, P.encoder, S, "key", y);
|
|
2849
|
+
return [m(z) + "=" + m(l(g, P.encoder, S, "value", y))];
|
|
2850
2850
|
}
|
|
2851
2851
|
return [m(n) + "=" + m(String(g))];
|
|
2852
2852
|
}
|
|
2853
|
-
var
|
|
2853
|
+
var L = [];
|
|
2854
2854
|
if (typeof g > "u")
|
|
2855
|
-
return
|
|
2855
|
+
return L;
|
|
2856
2856
|
var G;
|
|
2857
2857
|
if (r === "comma" && q(g))
|
|
2858
2858
|
h && l && (g = Me.maybeMap(g, l)), G = [{ value: g.length > 0 ? g.join(",") || null : void 0 }];
|
|
@@ -2871,7 +2871,7 @@ function() {
|
|
|
2871
2871
|
var rt = d && u ? String(H).replace(/\./g, "%2E") : String(H), jn = q(g) ? typeof r == "function" ? r(D, rt) : D : D + (d ? "." + rt : "[" + rt + "]");
|
|
2872
2872
|
E.set(e, A);
|
|
2873
2873
|
var Zt = In();
|
|
2874
|
-
Zt.set(Tt, E),
|
|
2874
|
+
Zt.set(Tt, E), Un(L, t(
|
|
2875
2875
|
ye,
|
|
2876
2876
|
jn,
|
|
2877
2877
|
r,
|
|
@@ -2888,12 +2888,12 @@ function() {
|
|
|
2888
2888
|
y,
|
|
2889
2889
|
m,
|
|
2890
2890
|
h,
|
|
2891
|
-
|
|
2891
|
+
S,
|
|
2892
2892
|
Zt
|
|
2893
2893
|
));
|
|
2894
2894
|
}
|
|
2895
2895
|
}
|
|
2896
|
-
return
|
|
2896
|
+
return L;
|
|
2897
2897
|
}, yl = function(e) {
|
|
2898
2898
|
if (!e)
|
|
2899
2899
|
return P;
|
|
@@ -2915,7 +2915,7 @@ function() {
|
|
|
2915
2915
|
var o = be.formatters[r], i = P.filter;
|
|
2916
2916
|
(typeof e.filter == "function" || q(e.filter)) && (i = e.filter);
|
|
2917
2917
|
var a;
|
|
2918
|
-
if (e.arrayFormat in
|
|
2918
|
+
if (e.arrayFormat in Bn ? a = e.arrayFormat : "indices" in e ? a = e.indices ? "indices" : "repeat" : a = P.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
|
|
2919
2919
|
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
2920
2920
|
var s = typeof e.allowDots > "u" ? e.encodeDotInKeys === !0 ? !0 : P.allowDots : !!e.allowDots;
|
|
2921
2921
|
return {
|
|
@@ -2945,11 +2945,11 @@ function() {
|
|
|
2945
2945
|
var a = [];
|
|
2946
2946
|
if (typeof n != "object" || n === null)
|
|
2947
2947
|
return "";
|
|
2948
|
-
var s =
|
|
2948
|
+
var s = Bn[r.arrayFormat], u = s === "comma" && r.commaRoundTrip;
|
|
2949
2949
|
o || (o = Object.keys(n)), r.sort && o.sort(r.sort);
|
|
2950
2950
|
for (var l = In(), c = 0; c < o.length; ++c) {
|
|
2951
2951
|
var p = o[c], d = n[p];
|
|
2952
|
-
r.skipNulls && d === null ||
|
|
2952
|
+
r.skipNulls && d === null || Un(a, dl(
|
|
2953
2953
|
d,
|
|
2954
2954
|
p,
|
|
2955
2955
|
s,
|
|
@@ -2998,7 +2998,7 @@ function() {
|
|
|
2998
2998
|
return t.replace(/&#(\d+);/g, function(e, n) {
|
|
2999
2999
|
return String.fromCharCode(parseInt(n, 10));
|
|
3000
3000
|
});
|
|
3001
|
-
},
|
|
3001
|
+
}, Ln = function(t, e, n) {
|
|
3002
3002
|
if (t && typeof t == "string" && e.comma && t.indexOf(",") > -1)
|
|
3003
3003
|
return t.split(",");
|
|
3004
3004
|
if (e.throwOnLimitExceeded && n >= e.arrayLimit)
|
|
@@ -3021,7 +3021,7 @@ function() {
|
|
|
3021
3021
|
if (u !== s) {
|
|
3022
3022
|
var c = a[u], p = c.indexOf("]="), d = p === -1 ? c.indexOf("=") : p + 1, v, y;
|
|
3023
3023
|
d === -1 ? (v = n.decoder(c, O.decoder, l, "key"), y = n.strictNullHandling ? null : "") : (v = n.decoder(c.slice(0, d), O.decoder, l, "key"), y = re.maybeMap(
|
|
3024
|
-
|
|
3024
|
+
Ln(
|
|
3025
3025
|
c.slice(d + 1),
|
|
3026
3026
|
n,
|
|
3027
3027
|
kr(r[v]) ? r[v].length : 0
|
|
@@ -3040,7 +3040,7 @@ function() {
|
|
|
3040
3040
|
var i = t.slice(0, -1).join("");
|
|
3041
3041
|
o = Array.isArray(e) && e[i] ? e[i].length : 0;
|
|
3042
3042
|
}
|
|
3043
|
-
for (var a = r ? e :
|
|
3043
|
+
for (var a = r ? e : Ln(e, n, o), s = t.length - 1; s >= 0; --s) {
|
|
3044
3044
|
var u, l = t[s];
|
|
3045
3045
|
if (l === "[]" && n.parseArrays)
|
|
3046
3046
|
u = n.allowEmptyArrays && (a === "" || n.strictNullHandling && a === null) ? [] : re.combine([], a);
|
|
@@ -3236,38 +3236,38 @@ const Xt = qr(), Mn = Xt.sso ?? !0, Nl = Xt.i18n ?? !0, kn = Xt.noRedireLogin ??
|
|
|
3236
3236
|
}, Il = async (t) => {
|
|
3237
3237
|
var n;
|
|
3238
3238
|
return ((n = t.config) == null ? void 0 : n.responseType) === "blob" ? t : t.data ?? t;
|
|
3239
|
-
},
|
|
3240
|
-
var
|
|
3241
|
-
let n = ((
|
|
3239
|
+
}, Bl = async (t, e) => {
|
|
3240
|
+
var l, c, p, d, v;
|
|
3241
|
+
let n = ((l = t.response) == null ? void 0 : l.status) || 500, r = (c = t.response) == null ? void 0 : c.message, o = {};
|
|
3242
3242
|
const i = { 400: V("参数校验错误"), 404: V("接口地址未找到"), 500: V("服务器内部错误") };
|
|
3243
|
-
let a = ((
|
|
3244
|
-
const s = Jn("code") || "", u = (e == null ? void 0 : e.noRedireLogin) ??
|
|
3245
|
-
if (!s &&
|
|
3243
|
+
let a = ((p = t == null ? void 0 : t.response) == null ? void 0 : p.data) || {};
|
|
3244
|
+
const s = Jn("code") || "", u = !((e == null ? void 0 : e.noRedireLogin) ?? kn);
|
|
3245
|
+
if (!s && u && (n === 401 || (a == null ? void 0 : a.code) === 401))
|
|
3246
3246
|
Mn ? Vn({ ...Qn, redirect_uri: Kn }) : qn(), o = a;
|
|
3247
3247
|
else {
|
|
3248
3248
|
if (t.response) {
|
|
3249
|
-
if (a instanceof Blob && (a = await new Promise((
|
|
3250
|
-
const
|
|
3251
|
-
|
|
3249
|
+
if (a instanceof Blob && (a = await new Promise((y) => {
|
|
3250
|
+
const m = new FileReader();
|
|
3251
|
+
m.readAsText(a, "utf-8"), m.onload = () => {
|
|
3252
3252
|
try {
|
|
3253
|
-
|
|
3253
|
+
y(JSON.parse(m.result || "{}"));
|
|
3254
3254
|
} catch {
|
|
3255
|
-
|
|
3255
|
+
y({ code: 400, msg: V("blob解析错误") });
|
|
3256
3256
|
}
|
|
3257
3257
|
};
|
|
3258
3258
|
})), a.code) {
|
|
3259
3259
|
n = a.code;
|
|
3260
|
-
const
|
|
3261
|
-
if (Nl &&
|
|
3262
|
-
const
|
|
3263
|
-
r = !(a != null && a.data) || !a.data.length ? V(
|
|
3260
|
+
const y = (e == null ? void 0 : e.i18n) ?? !0;
|
|
3261
|
+
if (Nl && y) {
|
|
3262
|
+
const m = (a == null ? void 0 : a.status) ?? (a == null ? void 0 : a.msg) ?? "";
|
|
3263
|
+
r = !(a != null && a.data) || !a.data.length ? V(m) : V(m, ...a.data);
|
|
3264
3264
|
} else
|
|
3265
3265
|
r = (a == null ? void 0 : a.msg) ?? "";
|
|
3266
3266
|
o = a;
|
|
3267
3267
|
}
|
|
3268
3268
|
r || (r = i[t.response.status] || t.message);
|
|
3269
3269
|
} else t.request ? t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = V("网络异常,请检查您的网络情况") : t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = V("请求配置异常");
|
|
3270
|
-
e != null && e.customErrorMessage && (r = e == null ? void 0 : e.customErrorMessage(r, t)), !(e != null && e.ignoreErrorMessage) && r && ((
|
|
3270
|
+
e != null && e.customErrorMessage && (r = e == null ? void 0 : e.customErrorMessage(r, t)), !(e != null && e.ignoreErrorMessage) && r && ((v = (d = window.DasMessage) == null ? void 0 : d.error) == null || v.call(d, { message: r, showClose: !0 }));
|
|
3271
3271
|
}
|
|
3272
3272
|
return { ...o, code: n, msg: r, error: t };
|
|
3273
3273
|
}, I = (t, e) => {
|
|
@@ -3282,7 +3282,7 @@ const Xt = qr(), Mn = Xt.sso ?? !0, Nl = Xt.i18n ?? !0, kn = Xt.noRedireLogin ??
|
|
|
3282
3282
|
}
|
|
3283
3283
|
Mn ? l || (l = await Gn(r)) : (l || (l = to()), l || qn()), l && !r.headers.Authorization && (r.headers.Authorization = `Bearer ${l}`);
|
|
3284
3284
|
}
|
|
3285
|
-
r.baseURL || (r.baseURL = o.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (l) => xl.stringify(l, { indices: !1 }) }), r.onSuccess || (r.onSuccess = Il), r.onError || (r.onError =
|
|
3285
|
+
r.baseURL || (r.baseURL = o.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (l) => xl.stringify(l, { indices: !1 }) }), r.onSuccess || (r.onSuccess = Il), r.onError || (r.onError = Bl), (r.csrf ?? !1) && (r.headers["csrf-token"] = _l.get("csrf-token"));
|
|
3286
3286
|
const s = r.params || {};
|
|
3287
3287
|
if (s.project === void 0) {
|
|
3288
3288
|
let l = 0;
|
|
@@ -3295,16 +3295,16 @@ const Xt = qr(), Mn = Xt.sso ?? !0, Nl = Xt.i18n ?? !0, kn = Xt.noRedireLogin ??
|
|
|
3295
3295
|
}
|
|
3296
3296
|
return r.params = s, r.headers.Timezone = qt.tz.guess(), r.headers["X-Origin"] = location.origin, r.headers["Accept-Language"] = Hn.value, r;
|
|
3297
3297
|
});
|
|
3298
|
-
},
|
|
3299
|
-
thingmodel: I(`/api/iot-device/thingmodel/${
|
|
3300
|
-
deviceManage: I(`/api/iot-device/devicemanage/${
|
|
3301
|
-
product: I(`/api/iot-device/product/${
|
|
3302
|
-
productStorage: I(`/api/iot-device/product-storage/${
|
|
3298
|
+
}, B = "v1", fc = I(`/api/iot/${B}`), pc = {
|
|
3299
|
+
thingmodel: I(`/api/iot-device/thingmodel/${B}`),
|
|
3300
|
+
deviceManage: I(`/api/iot-device/devicemanage/${B}`),
|
|
3301
|
+
product: I(`/api/iot-device/product/${B}`),
|
|
3302
|
+
productStorage: I(`/api/iot-device/product-storage/${B}`)
|
|
3303
3303
|
}, dc = {
|
|
3304
|
-
projectDevice: I(`/api/device-relation/deviceproject/${
|
|
3305
|
-
deviceRules: I(`/api/device-relation/devicerule/${
|
|
3306
|
-
project: I(`/api/device-relation/project/${
|
|
3307
|
-
}, yc = I(`/api/oss/minio/${
|
|
3304
|
+
projectDevice: I(`/api/device-relation/deviceproject/${B}`),
|
|
3305
|
+
deviceRules: I(`/api/device-relation/devicerule/${B}`),
|
|
3306
|
+
project: I(`/api/device-relation/project/${B}`)
|
|
3307
|
+
}, yc = I(`/api/oss/minio/${B}`), hc = I(`/api/progress/accessor/${B}`), mc = I(`/api/dms/analysis/${B}`);
|
|
3308
3308
|
export {
|
|
3309
3309
|
mc as analyApi,
|
|
3310
3310
|
fc as iot,
|