@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
|
@@ -179,7 +179,7 @@ const Ho = (t) => {
|
|
|
179
179
|
return n;
|
|
180
180
|
};
|
|
181
181
|
return r(t, 0);
|
|
182
|
-
},
|
|
182
|
+
}, zo = q("AsyncFunction"), Wo = (t) => t && (xe(t) || I(t)) && I(t.then) && I(t.catch), on = ((t, e) => t ? setImmediate : e ? ((r, n) => (ee.addEventListener("message", ({ source: o, data: i }) => {
|
|
183
183
|
o === ee && i === r && n.length && n.shift()();
|
|
184
184
|
}, !1), (o) => {
|
|
185
185
|
n.push(o), ee.postMessage(r, "*");
|
|
@@ -240,8 +240,8 @@ const Ho = (t) => {
|
|
|
240
240
|
isContextDefined: rn,
|
|
241
241
|
isSpecCompliantForm: jo,
|
|
242
242
|
toJSONObject: Ho,
|
|
243
|
-
isAsyncFn:
|
|
244
|
-
isThenable:
|
|
243
|
+
isAsyncFn: zo,
|
|
244
|
+
isThenable: Wo,
|
|
245
245
|
setImmediate: on,
|
|
246
246
|
asap: Go,
|
|
247
247
|
isIterable: Jo
|
|
@@ -364,14 +364,14 @@ function Ye(t, e, r) {
|
|
|
364
364
|
if (!f.isUndefined(d)) {
|
|
365
365
|
if (p.indexOf(d) !== -1)
|
|
366
366
|
throw Error("Circular reference detected in " + m.join("."));
|
|
367
|
-
p.push(d), f.forEach(d, function(S,
|
|
367
|
+
p.push(d), f.forEach(d, function(S, O) {
|
|
368
368
|
(!(f.isUndefined(S) || S === null) && o.call(
|
|
369
369
|
e,
|
|
370
370
|
S,
|
|
371
|
-
f.isString(
|
|
371
|
+
f.isString(O) ? O.trim() : O,
|
|
372
372
|
m,
|
|
373
373
|
y
|
|
374
|
-
)) === !0 && v(S, m ? m.concat(
|
|
374
|
+
)) === !0 && v(S, m ? m.concat(O) : [O]);
|
|
375
375
|
}), p.pop();
|
|
376
376
|
}
|
|
377
377
|
}
|
|
@@ -877,7 +877,7 @@ function vi(t, e) {
|
|
|
877
877
|
}, n - p)));
|
|
878
878
|
}, () => o && a(o)];
|
|
879
879
|
}
|
|
880
|
-
const
|
|
880
|
+
const We = (t, e, r = 3) => {
|
|
881
881
|
let n = 0;
|
|
882
882
|
const o = gi(50, 250);
|
|
883
883
|
return vi((i) => {
|
|
@@ -1047,7 +1047,7 @@ const mn = (t) => {
|
|
|
1047
1047
|
return;
|
|
1048
1048
|
const g = D.from(
|
|
1049
1049
|
"getAllResponseHeaders" in h && h.getAllResponseHeaders()
|
|
1050
|
-
),
|
|
1050
|
+
), P = {
|
|
1051
1051
|
data: !s || s === "text" || s === "json" ? h.responseText : h.response,
|
|
1052
1052
|
status: h.status,
|
|
1053
1053
|
statusText: h.statusText,
|
|
@@ -1059,32 +1059,32 @@ const mn = (t) => {
|
|
|
1059
1059
|
r(T), m();
|
|
1060
1060
|
}, function(T) {
|
|
1061
1061
|
n(T), m();
|
|
1062
|
-
},
|
|
1062
|
+
}, P), h = null;
|
|
1063
1063
|
}
|
|
1064
1064
|
"onloadend" in h ? h.onloadend = S : h.onreadystatechange = function() {
|
|
1065
1065
|
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(S);
|
|
1066
1066
|
}, h.onabort = function() {
|
|
1067
1067
|
h && (n(new w("Request aborted", w.ECONNABORTED, t, h)), h = null);
|
|
1068
1068
|
}, h.onerror = function(E) {
|
|
1069
|
-
const
|
|
1069
|
+
const P = E && E.message ? E.message : "Network Error", U = new w(P, w.ERR_NETWORK, t, h);
|
|
1070
1070
|
U.event = E || null, n(U), h = null;
|
|
1071
1071
|
}, h.ontimeout = function() {
|
|
1072
1072
|
let E = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
|
|
1073
|
-
const
|
|
1073
|
+
const P = o.transitional || fn;
|
|
1074
1074
|
o.timeoutErrorMessage && (E = o.timeoutErrorMessage), n(new w(
|
|
1075
1075
|
E,
|
|
1076
|
-
|
|
1076
|
+
P.clarifyTimeoutError ? w.ETIMEDOUT : w.ECONNABORTED,
|
|
1077
1077
|
t,
|
|
1078
1078
|
h
|
|
1079
1079
|
)), h = null;
|
|
1080
|
-
}, i === void 0 && a.setContentType(null), "setRequestHeader" in h && f.forEach(a.toJSON(), function(E,
|
|
1081
|
-
h.setRequestHeader(
|
|
1082
|
-
}), f.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), s && s !== "json" && (h.responseType = o.responseType), u && ([y, d] =
|
|
1080
|
+
}, i === void 0 && a.setContentType(null), "setRequestHeader" in h && f.forEach(a.toJSON(), function(E, P) {
|
|
1081
|
+
h.setRequestHeader(P, E);
|
|
1082
|
+
}), f.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), s && s !== "json" && (h.responseType = o.responseType), u && ([y, d] = We(u, !0), h.addEventListener("progress", y)), c && h.upload && ([p, v] = We(c), h.upload.addEventListener("progress", p), h.upload.addEventListener("loadend", v)), (o.cancelToken || o.signal) && (l = (g) => {
|
|
1083
1083
|
h && (n(!g || g.type ? new me(null, t, h) : g), h.abort(), h = null);
|
|
1084
1084
|
}, o.cancelToken && o.cancelToken.subscribe(l), o.signal && (o.signal.aborted ? l() : o.signal.addEventListener("abort", l)));
|
|
1085
|
-
const
|
|
1086
|
-
if (
|
|
1087
|
-
n(new w("Unsupported protocol " +
|
|
1085
|
+
const O = mi(o.url);
|
|
1086
|
+
if (O && $.protocols.indexOf(O) === -1) {
|
|
1087
|
+
n(new w("Unsupported protocol " + O + ":", w.ERR_BAD_REQUEST, t));
|
|
1088
1088
|
return;
|
|
1089
1089
|
}
|
|
1090
1090
|
h.send(i || null);
|
|
@@ -1232,10 +1232,10 @@ const mn = (t) => {
|
|
|
1232
1232
|
url: m,
|
|
1233
1233
|
method: h,
|
|
1234
1234
|
data: S,
|
|
1235
|
-
signal:
|
|
1235
|
+
signal: O,
|
|
1236
1236
|
cancelToken: g,
|
|
1237
1237
|
timeout: E,
|
|
1238
|
-
onDownloadProgress:
|
|
1238
|
+
onDownloadProgress: P,
|
|
1239
1239
|
onUploadProgress: U,
|
|
1240
1240
|
responseType: T,
|
|
1241
1241
|
headers: V,
|
|
@@ -1243,7 +1243,7 @@ const mn = (t) => {
|
|
|
1243
1243
|
fetchOptions: M
|
|
1244
1244
|
} = mn(d), Z = e || fetch;
|
|
1245
1245
|
T = T ? (T + "").toLowerCase() : "text";
|
|
1246
|
-
let k = Ri([
|
|
1246
|
+
let k = Ri([O, g && g.toAbortSignal()], E), C = null;
|
|
1247
1247
|
const F = k && k.unsubscribe && (() => {
|
|
1248
1248
|
k.unsubscribe();
|
|
1249
1249
|
});
|
|
@@ -1258,7 +1258,7 @@ const mn = (t) => {
|
|
|
1258
1258
|
if (f.isFormData(S) && (se = K.headers.get("content-type")) && V.setContentType(se), K.body) {
|
|
1259
1259
|
const [it, Ie] = ar(
|
|
1260
1260
|
B,
|
|
1261
|
-
|
|
1261
|
+
We(sr(U))
|
|
1262
1262
|
);
|
|
1263
1263
|
S = cr(K.body, ur, it, Ie);
|
|
1264
1264
|
}
|
|
@@ -1276,14 +1276,14 @@ const mn = (t) => {
|
|
|
1276
1276
|
C = i && new r(m, ae);
|
|
1277
1277
|
let j = await (i ? Z(C, M) : Z(m, ae));
|
|
1278
1278
|
const ve = l && (T === "stream" || T === "response");
|
|
1279
|
-
if (l && (
|
|
1279
|
+
if (l && (P || ve && F)) {
|
|
1280
1280
|
const K = {};
|
|
1281
1281
|
["status", "statusText", "headers"].forEach((er) => {
|
|
1282
1282
|
K[er] = j[er];
|
|
1283
1283
|
});
|
|
1284
|
-
const se = f.toFiniteNumber(j.headers.get("content-length")), [it, Ie] =
|
|
1284
|
+
const se = f.toFiniteNumber(j.headers.get("content-length")), [it, Ie] = P && ar(
|
|
1285
1285
|
se,
|
|
1286
|
-
|
|
1286
|
+
We(sr(P), !0)
|
|
1287
1287
|
) || [];
|
|
1288
1288
|
j = new n(
|
|
1289
1289
|
cr(j.body, ur, it, () => {
|
|
@@ -1573,7 +1573,7 @@ f.forEach(["post", "put", "patch"], function(e) {
|
|
|
1573
1573
|
}
|
|
1574
1574
|
te.prototype[e] = r(), te.prototype[e + "Form"] = r(!0);
|
|
1575
1575
|
});
|
|
1576
|
-
class
|
|
1576
|
+
class zt {
|
|
1577
1577
|
constructor(e) {
|
|
1578
1578
|
if (typeof e != "function")
|
|
1579
1579
|
throw new TypeError("executor must be a function.");
|
|
@@ -1639,7 +1639,7 @@ class Wt {
|
|
|
1639
1639
|
static source() {
|
|
1640
1640
|
let e;
|
|
1641
1641
|
return {
|
|
1642
|
-
token: new
|
|
1642
|
+
token: new zt(function(o) {
|
|
1643
1643
|
e = o;
|
|
1644
1644
|
}),
|
|
1645
1645
|
cancel: e
|
|
@@ -1734,26 +1734,26 @@ function bn(t) {
|
|
|
1734
1734
|
return bn(ne(t, o));
|
|
1735
1735
|
}, r;
|
|
1736
1736
|
}
|
|
1737
|
-
const
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1737
|
+
const R = bn(Ce);
|
|
1738
|
+
R.Axios = te;
|
|
1739
|
+
R.CanceledError = me;
|
|
1740
|
+
R.CancelToken = zt;
|
|
1741
|
+
R.isCancel = dn;
|
|
1742
|
+
R.VERSION = wn;
|
|
1743
|
+
R.toFormData = Ye;
|
|
1744
|
+
R.AxiosError = w;
|
|
1745
|
+
R.Cancel = R.CanceledError;
|
|
1746
|
+
R.all = function(e) {
|
|
1747
1747
|
return Promise.all(e);
|
|
1748
1748
|
};
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1749
|
+
R.spread = Di;
|
|
1750
|
+
R.isAxiosError = Ui;
|
|
1751
|
+
R.mergeConfig = ne;
|
|
1752
|
+
R.AxiosHeaders = D;
|
|
1753
|
+
R.formToJSON = (t) => pn(f.isHTMLForm(t) ? new FormData(t) : t);
|
|
1754
|
+
R.getAdapter = vn.getAdapter;
|
|
1755
|
+
R.HttpStatusCode = Ft;
|
|
1756
|
+
R.default = R;
|
|
1757
1757
|
var gr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1758
1758
|
function Li(t) {
|
|
1759
1759
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
@@ -1782,7 +1782,7 @@ const Mi = {}, ki = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1782
1782
|
__proto__: null,
|
|
1783
1783
|
default: Mi
|
|
1784
1784
|
}, Symbol.toStringTag, { value: "Module" })), qi = /* @__PURE__ */ Bi(ki);
|
|
1785
|
-
var
|
|
1785
|
+
var Wt = typeof Map == "function" && Map.prototype, ct = Object.getOwnPropertyDescriptor && Wt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Ge = Wt && ct && typeof ct.get == "function" ? ct.get : null, vr = Wt && Map.prototype.forEach, Gt = typeof Set == "function" && Set.prototype, ut = Object.getOwnPropertyDescriptor && Gt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Je = Gt && ut && typeof ut.get == "function" ? ut.get : null, wr = Gt && Set.prototype.forEach, ji = typeof WeakMap == "function" && WeakMap.prototype, Ee = ji ? WeakMap.prototype.has : null, Hi = typeof WeakSet == "function" && WeakSet.prototype, Oe = Hi ? WeakSet.prototype.has : null, zi = typeof WeakRef == "function" && WeakRef.prototype, br = zi ? WeakRef.prototype.deref : null, Wi = Boolean.prototype.valueOf, Gi = Object.prototype.toString, Ji = Function.prototype.toString, Vi = String.prototype.match, Jt = String.prototype.slice, Q = String.prototype.replace, Ki = String.prototype.toUpperCase, Sr = String.prototype.toLowerCase, Sn = RegExp.prototype.test, Er = Array.prototype.concat, G = Array.prototype.join, Qi = Array.prototype.slice, Or = Math.floor, Nt = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, ft = Object.getOwnPropertySymbols, $t = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, de = typeof Symbol == "function" && typeof Symbol.iterator == "object", Ae = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === de || !0) ? Symbol.toStringTag : null, En = Object.prototype.propertyIsEnumerable, Ar = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
|
|
1786
1786
|
return t.__proto__;
|
|
1787
1787
|
} : null);
|
|
1788
1788
|
function Rr(t, e) {
|
|
@@ -1864,8 +1864,8 @@ var It = qi, Pr = It.custom, Tr = Rn(Pr) ? Pr : null, On = {
|
|
|
1864
1864
|
return typeof e == "object" && !de ? Se(m) : m;
|
|
1865
1865
|
}
|
|
1866
1866
|
if (pa(e)) {
|
|
1867
|
-
for (var h = "<" + Sr.call(String(e.nodeName)), S = e.attributes || [],
|
|
1868
|
-
h += " " + S[
|
|
1867
|
+
for (var h = "<" + Sr.call(String(e.nodeName)), S = e.attributes || [], O = 0; O < S.length; O++)
|
|
1868
|
+
h += " " + S[O].name + "=" + An(Zi(S[O].value), "double", i);
|
|
1869
1869
|
return h += ">", e.childNodes && e.childNodes.length && (h += "..."), h += "</" + Sr.call(String(e.nodeName)) + ">", h;
|
|
1870
1870
|
}
|
|
1871
1871
|
if (Dt(e)) {
|
|
@@ -1885,10 +1885,10 @@ var It = qi, Pr = It.custom, Tr = Rn(Pr) ? Pr : null, On = {
|
|
|
1885
1885
|
return e.inspect();
|
|
1886
1886
|
}
|
|
1887
1887
|
if (sa(e)) {
|
|
1888
|
-
var
|
|
1888
|
+
var P = [];
|
|
1889
1889
|
return vr && vr.call(e, function(C, F) {
|
|
1890
|
-
|
|
1891
|
-
}), _r("Map", Ge.call(e),
|
|
1890
|
+
P.push(y(F, e, !0) + " => " + y(C, e));
|
|
1891
|
+
}), _r("Map", Ge.call(e), P, p);
|
|
1892
1892
|
}
|
|
1893
1893
|
if (ua(e)) {
|
|
1894
1894
|
var U = [];
|
|
@@ -1907,7 +1907,7 @@ var It = qi, Pr = It.custom, Tr = Rn(Pr) ? Pr : null, On = {
|
|
|
1907
1907
|
if (oa(e))
|
|
1908
1908
|
return Se(y(Nt.call(e)));
|
|
1909
1909
|
if (na(e))
|
|
1910
|
-
return Se(
|
|
1910
|
+
return Se(Wi.call(e));
|
|
1911
1911
|
if (ta(e))
|
|
1912
1912
|
return Se(y(String(e)));
|
|
1913
1913
|
if (typeof window < "u" && e === window)
|
|
@@ -2266,7 +2266,7 @@ function Fn() {
|
|
|
2266
2266
|
var t = xn;
|
|
2267
2267
|
return mt = t.getPrototypeOf || null, mt;
|
|
2268
2268
|
}
|
|
2269
|
-
var ja = "Function.prototype.bind called on incompatible ", Ha = Object.prototype.toString,
|
|
2269
|
+
var ja = "Function.prototype.bind called on incompatible ", Ha = Object.prototype.toString, za = Math.max, Wa = "[object Function]", Ir = function(e, r) {
|
|
2270
2270
|
for (var n = [], o = 0; o < e.length; o += 1)
|
|
2271
2271
|
n[o] = e[o];
|
|
2272
2272
|
for (var i = 0; i < r.length; i += 1)
|
|
@@ -2282,7 +2282,7 @@ var ja = "Function.prototype.bind called on incompatible ", Ha = Object.prototyp
|
|
|
2282
2282
|
return r;
|
|
2283
2283
|
}, Va = function(e) {
|
|
2284
2284
|
var r = this;
|
|
2285
|
-
if (typeof r != "function" || Ha.apply(r) !==
|
|
2285
|
+
if (typeof r != "function" || Ha.apply(r) !== Wa)
|
|
2286
2286
|
throw new TypeError(ja + r);
|
|
2287
2287
|
for (var n = Ga(arguments, 1), o, i = function() {
|
|
2288
2288
|
if (this instanceof o) {
|
|
@@ -2296,7 +2296,7 @@ var ja = "Function.prototype.bind called on incompatible ", Ha = Object.prototyp
|
|
|
2296
2296
|
e,
|
|
2297
2297
|
Ir(n, arguments)
|
|
2298
2298
|
);
|
|
2299
|
-
}, a =
|
|
2299
|
+
}, a = za(0, r.length - n.length), s = [], c = 0; c < a; c++)
|
|
2300
2300
|
s[c] = "$" + c;
|
|
2301
2301
|
if (o = Function("binder", "return function (" + Ja(s, ",") + "){ return binder.apply(this,arguments); }")(i), r.prototype) {
|
|
2302
2302
|
var u = function() {
|
|
@@ -2597,7 +2597,7 @@ var xs = function t(e) {
|
|
|
2597
2597
|
/** @type {const} */
|
|
2598
2598
|
[n]
|
|
2599
2599
|
) : n;
|
|
2600
|
-
}, Ls = Kt, $e = Bn, Bs = tt, Ms = ge, qr = Ls("%Map%", !0), ks = $e("Map.prototype.get", !0), qs = $e("Map.prototype.set", !0), js = $e("Map.prototype.has", !0), Hs = $e("Map.prototype.delete", !0),
|
|
2600
|
+
}, Ls = Kt, $e = Bn, Bs = tt, Ms = ge, qr = Ls("%Map%", !0), ks = $e("Map.prototype.get", !0), qs = $e("Map.prototype.set", !0), js = $e("Map.prototype.has", !0), Hs = $e("Map.prototype.delete", !0), zs = $e("Map.prototype.size", !0), Mn = !!qr && /** @type {Exclude<import('.'), false>} */
|
|
2601
2601
|
function() {
|
|
2602
2602
|
var e, r = {
|
|
2603
2603
|
assert: function(n) {
|
|
@@ -2607,7 +2607,7 @@ function() {
|
|
|
2607
2607
|
delete: function(n) {
|
|
2608
2608
|
if (e) {
|
|
2609
2609
|
var o = Hs(e, n);
|
|
2610
|
-
return
|
|
2610
|
+
return zs(e) === 0 && (e = void 0), o;
|
|
2611
2611
|
}
|
|
2612
2612
|
return !1;
|
|
2613
2613
|
},
|
|
@@ -2623,7 +2623,7 @@ function() {
|
|
|
2623
2623
|
}
|
|
2624
2624
|
};
|
|
2625
2625
|
return r;
|
|
2626
|
-
},
|
|
2626
|
+
}, Ws = Kt, ot = Bn, Gs = tt, Le = Mn, Js = ge, ce = Ws("%WeakMap%", !0), Vs = ot("WeakMap.prototype.get", !0), Ks = ot("WeakMap.prototype.set", !0), Qs = ot("WeakMap.prototype.has", !0), Xs = ot("WeakMap.prototype.delete", !0), Zs = ce ? (
|
|
2627
2627
|
/** @type {Exclude<import('.'), false>} */
|
|
2628
2628
|
function() {
|
|
2629
2629
|
var e, r, n = {
|
|
@@ -2686,7 +2686,7 @@ function() {
|
|
|
2686
2686
|
},
|
|
2687
2687
|
RFC1738: Ot.RFC1738,
|
|
2688
2688
|
RFC3986: Ot.RFC3986
|
|
2689
|
-
}, ll = Qt, At = Object.prototype.hasOwnProperty, Y = Array.isArray,
|
|
2689
|
+
}, ll = Qt, At = Object.prototype.hasOwnProperty, Y = Array.isArray, z = function() {
|
|
2690
2690
|
for (var t = [], e = 0; e < 256; ++e)
|
|
2691
2691
|
t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
|
|
2692
2692
|
return t;
|
|
@@ -2757,18 +2757,18 @@ function() {
|
|
|
2757
2757
|
continue;
|
|
2758
2758
|
}
|
|
2759
2759
|
if (y < 128) {
|
|
2760
|
-
l[l.length] =
|
|
2760
|
+
l[l.length] = z[y];
|
|
2761
2761
|
continue;
|
|
2762
2762
|
}
|
|
2763
2763
|
if (y < 2048) {
|
|
2764
|
-
l[l.length] =
|
|
2764
|
+
l[l.length] = z[192 | y >> 6] + z[128 | y & 63];
|
|
2765
2765
|
continue;
|
|
2766
2766
|
}
|
|
2767
2767
|
if (y < 55296 || y >= 57344) {
|
|
2768
|
-
l[l.length] =
|
|
2768
|
+
l[l.length] = z[224 | y >> 12] + z[128 | y >> 6 & 63] + z[128 | y & 63];
|
|
2769
2769
|
continue;
|
|
2770
2770
|
}
|
|
2771
|
-
p += 1, y = 65536 + ((y & 1023) << 10 | u.charCodeAt(p) & 1023), l[l.length] =
|
|
2771
|
+
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];
|
|
2772
2772
|
}
|
|
2773
2773
|
s += l.join("");
|
|
2774
2774
|
}
|
|
@@ -2804,7 +2804,7 @@ function() {
|
|
|
2804
2804
|
isRegExp: hl,
|
|
2805
2805
|
maybeMap: vl,
|
|
2806
2806
|
merge: ul
|
|
2807
|
-
}, jn = il,
|
|
2807
|
+
}, jn = il, ze = qn, Re = Qt, wl = Object.prototype.hasOwnProperty, Hn = {
|
|
2808
2808
|
brackets: function(e) {
|
|
2809
2809
|
return e + "[]";
|
|
2810
2810
|
},
|
|
@@ -2815,8 +2815,8 @@ function() {
|
|
|
2815
2815
|
repeat: function(e) {
|
|
2816
2816
|
return e;
|
|
2817
2817
|
}
|
|
2818
|
-
},
|
|
2819
|
-
bl.apply(t,
|
|
2818
|
+
}, W = Array.isArray, bl = Array.prototype.push, zn = function(t, e) {
|
|
2819
|
+
bl.apply(t, W(e) ? e : [e]);
|
|
2820
2820
|
}, Sl = Date.prototype.toISOString, jr = Re.default, x = {
|
|
2821
2821
|
addQueryPrefix: !1,
|
|
2822
2822
|
allowDots: !1,
|
|
@@ -2828,7 +2828,7 @@ function() {
|
|
|
2828
2828
|
delimiter: "&",
|
|
2829
2829
|
encode: !0,
|
|
2830
2830
|
encodeDotInKeys: !1,
|
|
2831
|
-
encoder:
|
|
2831
|
+
encoder: ze.encode,
|
|
2832
2832
|
encodeValuesOnly: !1,
|
|
2833
2833
|
filter: void 0,
|
|
2834
2834
|
format: jr,
|
|
@@ -2842,24 +2842,24 @@ function() {
|
|
|
2842
2842
|
strictNullHandling: !1
|
|
2843
2843
|
}, El = function(e) {
|
|
2844
2844
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
|
|
2845
|
-
}, Pt = {}, Ol = function t(e, r, n, o, i, a, s, c, u, l, p, y, v, d, m, h, S,
|
|
2846
|
-
for (var g = e, E =
|
|
2845
|
+
}, Pt = {}, Ol = function t(e, r, n, o, i, a, s, c, u, l, p, y, v, d, m, h, S, O) {
|
|
2846
|
+
for (var g = e, E = O, P = 0, U = !1; (E = E.get(Pt)) !== void 0 && !U; ) {
|
|
2847
2847
|
var T = E.get(e);
|
|
2848
|
-
if (
|
|
2849
|
-
if (T ===
|
|
2848
|
+
if (P += 1, typeof T < "u") {
|
|
2849
|
+
if (T === P)
|
|
2850
2850
|
throw new RangeError("Cyclic object value");
|
|
2851
2851
|
U = !0;
|
|
2852
2852
|
}
|
|
2853
|
-
typeof E.get(Pt) > "u" && (
|
|
2853
|
+
typeof E.get(Pt) > "u" && (P = 0);
|
|
2854
2854
|
}
|
|
2855
|
-
if (typeof l == "function" ? g = l(r, g) : g instanceof Date ? g = v(g) : n === "comma" &&
|
|
2855
|
+
if (typeof l == "function" ? g = l(r, g) : g instanceof Date ? g = v(g) : n === "comma" && W(g) && (g = ze.maybeMap(g, function(we) {
|
|
2856
2856
|
return we instanceof Date ? v(we) : we;
|
|
2857
2857
|
})), g === null) {
|
|
2858
2858
|
if (a)
|
|
2859
2859
|
return u && !h ? u(r, x.encoder, S, "key", d) : r;
|
|
2860
2860
|
g = "";
|
|
2861
2861
|
}
|
|
2862
|
-
if (El(g) ||
|
|
2862
|
+
if (El(g) || ze.isBuffer(g)) {
|
|
2863
2863
|
if (u) {
|
|
2864
2864
|
var V = h ? r : u(r, x.encoder, S, "key", d);
|
|
2865
2865
|
return [m(V) + "=" + m(u(g, x.encoder, S, "value", d))];
|
|
@@ -2870,24 +2870,24 @@ function() {
|
|
|
2870
2870
|
if (typeof g > "u")
|
|
2871
2871
|
return L;
|
|
2872
2872
|
var M;
|
|
2873
|
-
if (n === "comma" &&
|
|
2874
|
-
h && u && (g =
|
|
2875
|
-
else if (
|
|
2873
|
+
if (n === "comma" && W(g))
|
|
2874
|
+
h && u && (g = ze.maybeMap(g, u)), M = [{ value: g.length > 0 ? g.join(",") || null : void 0 }];
|
|
2875
|
+
else if (W(l))
|
|
2876
2876
|
M = l;
|
|
2877
2877
|
else {
|
|
2878
2878
|
var Z = Object.keys(g);
|
|
2879
2879
|
M = p ? Z.sort(p) : Z;
|
|
2880
2880
|
}
|
|
2881
|
-
var k = c ? String(r).replace(/\./g, "%2E") : String(r), C = o &&
|
|
2882
|
-
if (i &&
|
|
2881
|
+
var k = c ? String(r).replace(/\./g, "%2E") : String(r), C = o && W(g) && g.length === 1 ? k + "[]" : k;
|
|
2882
|
+
if (i && W(g) && g.length === 0)
|
|
2883
2883
|
return C + "[]";
|
|
2884
2884
|
for (var F = 0; F < M.length; ++F) {
|
|
2885
2885
|
var B = M[F], N = typeof B == "object" && B && typeof B.value < "u" ? B.value : g[B];
|
|
2886
2886
|
if (!(s && N === null)) {
|
|
2887
|
-
var ae = y && c ? String(B).replace(/\./g, "%2E") : String(B), j =
|
|
2888
|
-
|
|
2887
|
+
var ae = y && c ? String(B).replace(/\./g, "%2E") : String(B), j = W(g) ? typeof n == "function" ? n(C, ae) : C : C + (y ? "." + ae : "[" + ae + "]");
|
|
2888
|
+
O.set(e, P);
|
|
2889
2889
|
var ve = jn();
|
|
2890
|
-
ve.set(Pt,
|
|
2890
|
+
ve.set(Pt, O), zn(L, t(
|
|
2891
2891
|
N,
|
|
2892
2892
|
j,
|
|
2893
2893
|
n,
|
|
@@ -2896,7 +2896,7 @@ function() {
|
|
|
2896
2896
|
a,
|
|
2897
2897
|
s,
|
|
2898
2898
|
c,
|
|
2899
|
-
n === "comma" && h &&
|
|
2899
|
+
n === "comma" && h && W(g) ? null : u,
|
|
2900
2900
|
l,
|
|
2901
2901
|
p,
|
|
2902
2902
|
y,
|
|
@@ -2929,7 +2929,7 @@ function() {
|
|
|
2929
2929
|
n = e.format;
|
|
2930
2930
|
}
|
|
2931
2931
|
var o = Re.formatters[n], i = x.filter;
|
|
2932
|
-
(typeof e.filter == "function" ||
|
|
2932
|
+
(typeof e.filter == "function" || W(e.filter)) && (i = e.filter);
|
|
2933
2933
|
var a;
|
|
2934
2934
|
if (e.arrayFormat in Hn ? a = e.arrayFormat : "indices" in e ? a = e.indices ? "indices" : "repeat" : a = x.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
|
|
2935
2935
|
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
@@ -2957,7 +2957,7 @@ function() {
|
|
|
2957
2957
|
};
|
|
2958
2958
|
}, Rl = function(t, e) {
|
|
2959
2959
|
var r = t, n = Al(e), o, i;
|
|
2960
|
-
typeof n.filter == "function" ? (i = n.filter, r = i("", r)) :
|
|
2960
|
+
typeof n.filter == "function" ? (i = n.filter, r = i("", r)) : W(n.filter) && (i = n.filter, o = i);
|
|
2961
2961
|
var a = [];
|
|
2962
2962
|
if (typeof r != "object" || r === null)
|
|
2963
2963
|
return "";
|
|
@@ -2965,7 +2965,7 @@ function() {
|
|
|
2965
2965
|
o || (o = Object.keys(r)), n.sort && o.sort(n.sort);
|
|
2966
2966
|
for (var u = jn(), l = 0; l < o.length; ++l) {
|
|
2967
2967
|
var p = o[l], y = r[p];
|
|
2968
|
-
n.skipNulls && y === null ||
|
|
2968
|
+
n.skipNulls && y === null || zn(a, Ol(
|
|
2969
2969
|
y,
|
|
2970
2970
|
p,
|
|
2971
2971
|
s,
|
|
@@ -2988,7 +2988,7 @@ function() {
|
|
|
2988
2988
|
}
|
|
2989
2989
|
var v = a.join(n.delimiter), d = n.addQueryPrefix === !0 ? "?" : "";
|
|
2990
2990
|
return n.charsetSentinel && (n.charset === "iso-8859-1" ? d += "utf8=%26%2310003%3B&" : d += "utf8=%E2%9C%93&"), v.length > 0 ? d + v : "";
|
|
2991
|
-
}, oe = qn, Lt = Object.prototype.hasOwnProperty, Hr = Array.isArray,
|
|
2991
|
+
}, oe = qn, Lt = Object.prototype.hasOwnProperty, Hr = Array.isArray, A = {
|
|
2992
2992
|
allowDots: !1,
|
|
2993
2993
|
allowEmptyArrays: !1,
|
|
2994
2994
|
allowPrototypes: !1,
|
|
@@ -3014,7 +3014,7 @@ function() {
|
|
|
3014
3014
|
return t.replace(/&#(\d+);/g, function(e, r) {
|
|
3015
3015
|
return String.fromCharCode(parseInt(r, 10));
|
|
3016
3016
|
});
|
|
3017
|
-
},
|
|
3017
|
+
}, Wn = function(t, e, r) {
|
|
3018
3018
|
if (t && typeof t == "string" && e.comma && t.indexOf(",") > -1)
|
|
3019
3019
|
return t.split(",");
|
|
3020
3020
|
if (e.throwOnLimitExceeded && r >= e.arrayLimit)
|
|
@@ -3036,14 +3036,14 @@ function() {
|
|
|
3036
3036
|
for (c = 0; c < a.length; ++c)
|
|
3037
3037
|
if (c !== s) {
|
|
3038
3038
|
var l = a[c], p = l.indexOf("]="), y = p === -1 ? l.indexOf("=") : p + 1, v, d;
|
|
3039
|
-
y === -1 ? (v = r.decoder(l,
|
|
3040
|
-
|
|
3039
|
+
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(
|
|
3040
|
+
Wn(
|
|
3041
3041
|
l.slice(y + 1),
|
|
3042
3042
|
r,
|
|
3043
3043
|
Hr(n[v]) ? n[v].length : 0
|
|
3044
3044
|
),
|
|
3045
3045
|
function(h) {
|
|
3046
|
-
return r.decoder(h,
|
|
3046
|
+
return r.decoder(h, A.decoder, u, "value");
|
|
3047
3047
|
}
|
|
3048
3048
|
)), d && r.interpretNumericEntities && u === "iso-8859-1" && (d = Pl(String(d))), l.indexOf("[]=") > -1 && (d = Hr(d) ? [d] : d);
|
|
3049
3049
|
var m = Lt.call(n, v);
|
|
@@ -3056,7 +3056,7 @@ function() {
|
|
|
3056
3056
|
var i = t.slice(0, -1).join("");
|
|
3057
3057
|
o = Array.isArray(e) && e[i] ? e[i].length : 0;
|
|
3058
3058
|
}
|
|
3059
|
-
for (var a = n ? e :
|
|
3059
|
+
for (var a = n ? e : Wn(e, r, o), s = t.length - 1; s >= 0; --s) {
|
|
3060
3060
|
var c, u = t[s];
|
|
3061
3061
|
if (u === "[]" && r.parseArrays)
|
|
3062
3062
|
c = r.allowEmptyArrays && (a === "" || r.strictNullHandling && a === null) ? [] : oe.combine([], a);
|
|
@@ -3090,7 +3090,7 @@ function() {
|
|
|
3090
3090
|
}
|
|
3091
3091
|
}, Nl = function(e) {
|
|
3092
3092
|
if (!e)
|
|
3093
|
-
return
|
|
3093
|
+
return A;
|
|
3094
3094
|
if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
|
|
3095
3095
|
throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
|
|
3096
3096
|
if (typeof e.decodeDotInKeys < "u" && typeof e.decodeDotInKeys != "boolean")
|
|
@@ -3101,32 +3101,32 @@ function() {
|
|
|
3101
3101
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
3102
3102
|
if (typeof e.throwOnLimitExceeded < "u" && typeof e.throwOnLimitExceeded != "boolean")
|
|
3103
3103
|
throw new TypeError("`throwOnLimitExceeded` option must be a boolean");
|
|
3104
|
-
var r = typeof e.charset > "u" ?
|
|
3104
|
+
var r = typeof e.charset > "u" ? A.charset : e.charset, n = typeof e.duplicates > "u" ? A.duplicates : e.duplicates;
|
|
3105
3105
|
if (n !== "combine" && n !== "first" && n !== "last")
|
|
3106
3106
|
throw new TypeError("The duplicates option must be either combine, first, or last");
|
|
3107
|
-
var o = typeof e.allowDots > "u" ? e.decodeDotInKeys === !0 ? !0 :
|
|
3107
|
+
var o = typeof e.allowDots > "u" ? e.decodeDotInKeys === !0 ? !0 : A.allowDots : !!e.allowDots;
|
|
3108
3108
|
return {
|
|
3109
3109
|
allowDots: o,
|
|
3110
|
-
allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays :
|
|
3111
|
-
allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes :
|
|
3112
|
-
allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse :
|
|
3113
|
-
arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit :
|
|
3110
|
+
allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : A.allowEmptyArrays,
|
|
3111
|
+
allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes : A.allowPrototypes,
|
|
3112
|
+
allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse : A.allowSparse,
|
|
3113
|
+
arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit : A.arrayLimit,
|
|
3114
3114
|
charset: r,
|
|
3115
|
-
charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel :
|
|
3116
|
-
comma: typeof e.comma == "boolean" ? e.comma :
|
|
3117
|
-
decodeDotInKeys: typeof e.decodeDotInKeys == "boolean" ? e.decodeDotInKeys :
|
|
3118
|
-
decoder: typeof e.decoder == "function" ? e.decoder :
|
|
3119
|
-
delimiter: typeof e.delimiter == "string" || oe.isRegExp(e.delimiter) ? e.delimiter :
|
|
3115
|
+
charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : A.charsetSentinel,
|
|
3116
|
+
comma: typeof e.comma == "boolean" ? e.comma : A.comma,
|
|
3117
|
+
decodeDotInKeys: typeof e.decodeDotInKeys == "boolean" ? e.decodeDotInKeys : A.decodeDotInKeys,
|
|
3118
|
+
decoder: typeof e.decoder == "function" ? e.decoder : A.decoder,
|
|
3119
|
+
delimiter: typeof e.delimiter == "string" || oe.isRegExp(e.delimiter) ? e.delimiter : A.delimiter,
|
|
3120
3120
|
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
|
3121
|
-
depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth :
|
|
3121
|
+
depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth : A.depth,
|
|
3122
3122
|
duplicates: n,
|
|
3123
3123
|
ignoreQueryPrefix: e.ignoreQueryPrefix === !0,
|
|
3124
|
-
interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities :
|
|
3125
|
-
parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit :
|
|
3124
|
+
interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities : A.interpretNumericEntities,
|
|
3125
|
+
parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit : A.parameterLimit,
|
|
3126
3126
|
parseArrays: e.parseArrays !== !1,
|
|
3127
|
-
plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects :
|
|
3128
|
-
strictDepth: typeof e.strictDepth == "boolean" ? !!e.strictDepth :
|
|
3129
|
-
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling :
|
|
3127
|
+
plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects : A.plainObjects,
|
|
3128
|
+
strictDepth: typeof e.strictDepth == "boolean" ? !!e.strictDepth : A.strictDepth,
|
|
3129
|
+
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : A.strictNullHandling,
|
|
3130
3130
|
throwOnLimitExceeded: typeof e.throwOnLimitExceeded == "boolean" ? e.throwOnLimitExceeded : !1
|
|
3131
3131
|
};
|
|
3132
3132
|
}, $l = function(t, e) {
|
|
@@ -3214,10 +3214,10 @@ function Bt(t, e) {
|
|
|
3214
3214
|
}
|
|
3215
3215
|
);
|
|
3216
3216
|
}
|
|
3217
|
-
var
|
|
3217
|
+
var zr = Bt(Ml, { path: "/" });
|
|
3218
3218
|
Mt.extend(ro);
|
|
3219
3219
|
Mt.extend(no);
|
|
3220
|
-
const Xt = Qr(), Gn = Xt.sso ?? !0,
|
|
3220
|
+
const Xt = Qr(), Gn = Xt.sso ?? !0, Wr = Xt.i18n ?? !0, Jn = Xt.noRedireLogin ?? !1;
|
|
3221
3221
|
let Gr = "", Jr = 0;
|
|
3222
3222
|
const kl = 1e3, Vr = async (t, e, r = []) => {
|
|
3223
3223
|
const n = Date.now(), o = 1200, i = 60;
|
|
@@ -3236,40 +3236,40 @@ const ql = 5e3, Vn = () => Tt ? !1 : (Tt = !0, setTimeout(() => {
|
|
|
3236
3236
|
if (Jn) return;
|
|
3237
3237
|
const t = "/login";
|
|
3238
3238
|
location.pathname !== t && (window.sessionStorage.clear(), window.localStorage.clear(), window.__isAutoCloseApp = !1, (e = window.top) != null && e.vueRouter ? (r = window.top) == null || r.vueRouter.replace(t) : window.location.replace(`/#${t}`));
|
|
3239
|
-
}, jl = async (t) => {
|
|
3239
|
+
}, jl = () => Zn("code") || "" || Jn ? !1 : Vn() ? (Gn ? Yn({ ...eo, redirect_uri: to }) : Kn(), !0) : !1, Hl = async (t) => {
|
|
3240
3240
|
var r;
|
|
3241
3241
|
return ((r = t.config) == null ? void 0 : r.responseType) === "blob" ? t : t.data ?? t;
|
|
3242
|
-
},
|
|
3243
|
-
var m, h, S
|
|
3242
|
+
}, zl = async (t, e) => {
|
|
3243
|
+
var d, m, h, S;
|
|
3244
3244
|
const { t: r } = Kr();
|
|
3245
3245
|
let n, o, i = {};
|
|
3246
3246
|
const a = { 400: r("参数校验错误"), 404: r("接口地址未找到"), 500: r("服务器内部错误") };
|
|
3247
|
-
let s = ((
|
|
3248
|
-
const c =
|
|
3249
|
-
if (
|
|
3250
|
-
|
|
3251
|
-
const
|
|
3252
|
-
if (
|
|
3253
|
-
const
|
|
3254
|
-
o =
|
|
3247
|
+
let s = ((d = t == null ? void 0 : t.response) == null ? void 0 : d.data) || {};
|
|
3248
|
+
const c = s == null ? void 0 : s.code, u = (m = t.response) == null ? void 0 : m.status;
|
|
3249
|
+
if (c === 401 || u === 401) {
|
|
3250
|
+
jl(), n = c || u, i = s;
|
|
3251
|
+
const O = (e == null ? void 0 : e.i18n) ?? !0;
|
|
3252
|
+
if (Wr && O && (s != null && s.status)) {
|
|
3253
|
+
const g = !(s != null && s.data) || !s.data.length ? [] : s.data, E = r(s.status, ...g);
|
|
3254
|
+
o = E === s.status ? await Vr(r, s.status, g) : E;
|
|
3255
3255
|
} else
|
|
3256
3256
|
o = (s == null ? void 0 : s.msg) || a[n] || (t == null ? void 0 : t.message);
|
|
3257
3257
|
} else if (t.response) {
|
|
3258
|
-
if (s instanceof Blob && (s = await new Promise((
|
|
3259
|
-
const
|
|
3260
|
-
|
|
3258
|
+
if (s instanceof Blob && (s = await new Promise((O) => {
|
|
3259
|
+
const g = new FileReader();
|
|
3260
|
+
g.readAsText(s, "utf-8"), g.onload = () => {
|
|
3261
3261
|
try {
|
|
3262
|
-
|
|
3262
|
+
O(JSON.parse(g.result || "{}"));
|
|
3263
3263
|
} catch {
|
|
3264
|
-
|
|
3264
|
+
O({ code: 400, msg: r("解析错误") });
|
|
3265
3265
|
}
|
|
3266
3266
|
};
|
|
3267
3267
|
})), s.code !== void 0 && s.code !== null) {
|
|
3268
3268
|
n = s.code, i = s;
|
|
3269
|
-
const
|
|
3270
|
-
if (
|
|
3271
|
-
const
|
|
3272
|
-
o =
|
|
3269
|
+
const O = (e == null ? void 0 : e.i18n) ?? !0;
|
|
3270
|
+
if (Wr && O && (s != null && s.status)) {
|
|
3271
|
+
const g = !(s != null && s.data) || !s.data.length ? [] : s.data, E = r(s.status, ...g);
|
|
3272
|
+
o = E === s.status ? await Vr(r, s.status, g) : E;
|
|
3273
3273
|
} else
|
|
3274
3274
|
o = (s == null ? void 0 : s.msg) ?? "";
|
|
3275
3275
|
} else
|
|
@@ -3277,11 +3277,11 @@ const ql = 5e3, Vn = () => Tt ? !1 : (Tt = !0, setTimeout(() => {
|
|
|
3277
3277
|
o || (o = a[t.response.status] || t.message);
|
|
3278
3278
|
} else t.request ? (n = 500, t.code === "ERR_CANCELED" ? o = t.abortReason || "" : o = r("网络异常,请检查您的网络情况")) : (n = 500, t.code === "ERR_CANCELED" ? o = t.abortReason || "" : o = r("请求配置异常"));
|
|
3279
3279
|
e != null && e.customErrorMessage && (o = e == null ? void 0 : e.customErrorMessage(o, t));
|
|
3280
|
-
const
|
|
3281
|
-
return !(e != null && e.ignoreErrorMessage) && o && (!
|
|
3280
|
+
const p = Date.now(), y = o === Gr, v = p - Jr < kl;
|
|
3281
|
+
return !(e != null && e.ignoreErrorMessage) && o && (!y || !v) && ((S = (h = window.DasMessage) == null ? void 0 : h.error) == null || S.call(h, { message: o, showClose: !0 }), Gr = o, Jr = p), { ...i, code: n, msg: o, error: t };
|
|
3282
3282
|
};
|
|
3283
3283
|
function Zt(t, e) {
|
|
3284
|
-
const r =
|
|
3284
|
+
const r = R.create();
|
|
3285
3285
|
return Qn(r, async (n) => {
|
|
3286
3286
|
const { currentLang: o } = Kr(), i = Qr();
|
|
3287
3287
|
if (n.headers || (n.headers = {}), !(n != null && n.public)) {
|
|
@@ -3301,7 +3301,7 @@ function Zt(t, e) {
|
|
|
3301
3301
|
}
|
|
3302
3302
|
p && !n.headers.Authorization && (n.headers.Authorization = `Bearer ${p}`);
|
|
3303
3303
|
}
|
|
3304
|
-
n.baseURL || (n.baseURL = i.baseURL || ""), n.urlPrefix || (n.urlPrefix = t), n.paramsSerializer || (n.paramsSerializer = { serialize: (p) => Bl.stringify(p, { indices: !1 }) }), n.onSuccess || (n.onSuccess =
|
|
3304
|
+
n.baseURL || (n.baseURL = i.baseURL || ""), n.urlPrefix || (n.urlPrefix = t), n.paramsSerializer || (n.paramsSerializer = { serialize: (p) => Bl.stringify(p, { indices: !1 }) }), n.onSuccess || (n.onSuccess = Hl), n.onError || (n.onError = zl), (n.csrf ?? !1) && (n.headers["csrf-token"] = zr.get("csrf-token"));
|
|
3305
3305
|
const c = n.params || {};
|
|
3306
3306
|
if (c.project === void 0) {
|
|
3307
3307
|
let p = 0;
|
|
@@ -3314,12 +3314,12 @@ function Zt(t, e) {
|
|
|
3314
3314
|
}
|
|
3315
3315
|
n.params = c, n.headers.Timezone = Mt.tz.guess(), n.headers["X-Origin"] = location.origin;
|
|
3316
3316
|
const l = (o == null ? void 0 : o.value) ?? "";
|
|
3317
|
-
return l && (n.headers["Accept-Language"] = l), l &&
|
|
3317
|
+
return l && (n.headers["Accept-Language"] = l), l && zr.set("locale", l), n;
|
|
3318
3318
|
});
|
|
3319
3319
|
}
|
|
3320
|
-
const Yt = "v1",
|
|
3320
|
+
const Yt = "v1", tc = Zt(`/api/supply/supplier/${Yt}`), rc = Zt(`/api/supplier/${Yt}`), nc = Zt(`/api/supplier/${Yt}/classification`);
|
|
3321
3321
|
export {
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3322
|
+
tc as supplier,
|
|
3323
|
+
nc as supplierClassification,
|
|
3324
|
+
rc as supplierManage
|
|
3325
3325
|
};
|