@das-fed/utils 7.0.5-test.21 → 7.0.5-test.22
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 +1034 -1035
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/index.js +786 -766
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/index.js +851 -853
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/index.js +204 -188
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/index.js +851 -853
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/index.js +856 -858
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/index.js +780 -768
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/file/index.js +178 -162
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/index.js +192 -176
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +643 -626
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/index.js +1100 -1102
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/index.d.ts +1 -1
- package/api-services/modules/justauth/index.js +758 -723
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/index.js +755 -721
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/index.js +851 -853
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/index.js +851 -853
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/index.js +276 -260
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/index.js +851 -853
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/index.js +755 -721
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/index.js +207 -191
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/index.js +199 -183
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/index.js +192 -176
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/index.js +192 -176
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/index.js +720 -708
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/index.js +848 -846
- package/api-services/src/create-service/index.js.gz +0 -0
- package/create-api-service/index.js +308 -292
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/sso/index.js +533 -498
- package/create-api-service/sso/index.js.gz +0 -0
- package/create-api-service/thirdLogout/index.d.ts +19 -0
- package/create-api-service/thirdLogout/index.js +1834 -0
- package/create-api-service/thirdLogout/index.js.gz +0 -0
- package/create-api-service/unauthorized-recovery/index.d.ts +30 -0
- package/create-api-service/unauthorized-recovery/index.js +10 -0
- package/curring-http/type.d.ts +93 -87
- package/esm-map.json +8 -1
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { setI18nRule as
|
|
1
|
+
import { setI18nRule as zn, currentLang as Hn, t as G } from "@das-fed/web/packages/i18n/index";
|
|
2
2
|
import { curringHttp as Wn } from "@das-fed/utils/curring-http";
|
|
3
3
|
import { getToken as Gn, getQuery as Jn, login as Vn, real_uri as Kn, getTokenParams as Qn } from "@das-fed/utils/create-api-service/sso";
|
|
4
4
|
import Mt from "dayjs";
|
|
@@ -12,23 +12,23 @@ function jr(t, e) {
|
|
|
12
12
|
return t.apply(e, arguments);
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
|
-
const { toString: ro } = Object.prototype, { getPrototypeOf: kt } = Object, { iterator:
|
|
15
|
+
const { toString: ro } = Object.prototype, { getPrototypeOf: kt } = Object, { iterator: He, toStringTag: zr } = Symbol, We = /* @__PURE__ */ ((t) => (e) => {
|
|
16
16
|
const n = ro.call(e);
|
|
17
17
|
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
|
|
18
18
|
})(/* @__PURE__ */ Object.create(null)), I = (t) => (t = t.toLowerCase(), (e) => We(e) === t), Ge = (t) => (e) => typeof e === t, { isArray: ce } = Array, we = Ge("undefined");
|
|
19
19
|
function Se(t) {
|
|
20
20
|
return t !== null && !we(t) && t.constructor !== null && !we(t.constructor) && F(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
21
21
|
}
|
|
22
|
-
const
|
|
22
|
+
const Hr = I("ArrayBuffer");
|
|
23
23
|
function no(t) {
|
|
24
24
|
let e;
|
|
25
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer &&
|
|
25
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Hr(t.buffer), e;
|
|
26
26
|
}
|
|
27
27
|
const oo = Ge("string"), F = Ge("function"), Wr = Ge("number"), Ee = (t) => t !== null && typeof t == "object", ao = (t) => t === !0 || t === !1, Fe = (t) => {
|
|
28
28
|
if (We(t) !== "object")
|
|
29
29
|
return !1;
|
|
30
30
|
const e = kt(t);
|
|
31
|
-
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(
|
|
31
|
+
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(zr in t) && !(He in t);
|
|
32
32
|
}, io = (t) => {
|
|
33
33
|
if (!Ee(t) || Se(t))
|
|
34
34
|
return !1;
|
|
@@ -109,7 +109,7 @@ const bo = (t, e, n, { allOwnKeys: r } = {}) => (Ae(e, (o, a) => {
|
|
|
109
109
|
n[e] = t[e];
|
|
110
110
|
return n;
|
|
111
111
|
}, Po = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && kt(Uint8Array)), To = (t, e) => {
|
|
112
|
-
const r = (t && t[
|
|
112
|
+
const r = (t && t[He]).call(t);
|
|
113
113
|
let o;
|
|
114
114
|
for (; (o = r.next()) && !o.done; ) {
|
|
115
115
|
const a = o.value;
|
|
@@ -157,9 +157,9 @@ const bo = (t, e, n, { allOwnKeys: r } = {}) => (Ae(e, (o, a) => {
|
|
|
157
157
|
}, Do = () => {
|
|
158
158
|
}, Io = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
|
|
159
159
|
function Bo(t) {
|
|
160
|
-
return !!(t && F(t.append) && t[
|
|
160
|
+
return !!(t && F(t.append) && t[zr] === "FormData" && t[He]);
|
|
161
161
|
}
|
|
162
|
-
const
|
|
162
|
+
const Uo = (t) => {
|
|
163
163
|
const e = new Array(10), n = (r, o) => {
|
|
164
164
|
if (Ee(r)) {
|
|
165
165
|
if (e.indexOf(r) >= 0)
|
|
@@ -178,16 +178,16 @@ const Lo = (t) => {
|
|
|
178
178
|
return r;
|
|
179
179
|
};
|
|
180
180
|
return n(t, 0);
|
|
181
|
-
},
|
|
181
|
+
}, Lo = I("AsyncFunction"), Mo = (t) => t && (Ee(t) || F(t)) && F(t.then) && F(t.catch), Kr = ((t, e) => t ? setImmediate : e ? ((n, r) => (Q.addEventListener("message", ({ source: o, data: a }) => {
|
|
182
182
|
o === Q && a === n && r.length && r.shift()();
|
|
183
183
|
}, !1), (o) => {
|
|
184
184
|
r.push(o), Q.postMessage(n, "*");
|
|
185
185
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
186
186
|
typeof setImmediate == "function",
|
|
187
187
|
F(Q.postMessage)
|
|
188
|
-
), ko = typeof queueMicrotask < "u" ? queueMicrotask.bind(Q) : typeof process < "u" && process.nextTick || Kr, qo = (t) => t != null && F(t[
|
|
188
|
+
), ko = typeof queueMicrotask < "u" ? queueMicrotask.bind(Q) : typeof process < "u" && process.nextTick || Kr, qo = (t) => t != null && F(t[He]), f = {
|
|
189
189
|
isArray: ce,
|
|
190
|
-
isArrayBuffer:
|
|
190
|
+
isArrayBuffer: Hr,
|
|
191
191
|
isBuffer: Se,
|
|
192
192
|
isFormData: po,
|
|
193
193
|
isArrayBufferView: no,
|
|
@@ -238,8 +238,8 @@ const Lo = (t) => {
|
|
|
238
238
|
global: Q,
|
|
239
239
|
isContextDefined: Jr,
|
|
240
240
|
isSpecCompliantForm: Bo,
|
|
241
|
-
toJSONObject:
|
|
242
|
-
isAsyncFn:
|
|
241
|
+
toJSONObject: Uo,
|
|
242
|
+
isAsyncFn: Lo,
|
|
243
243
|
isThenable: Mo,
|
|
244
244
|
setImmediate: Kr,
|
|
245
245
|
asap: ko,
|
|
@@ -307,10 +307,10 @@ function er(t, e, n) {
|
|
|
307
307
|
return o = Zr(o), !n && a ? "[" + o + "]" : o;
|
|
308
308
|
}).join(n ? "." : "") : e;
|
|
309
309
|
}
|
|
310
|
-
function
|
|
310
|
+
function zo(t) {
|
|
311
311
|
return f.isArray(t) && !t.some(Tt);
|
|
312
312
|
}
|
|
313
|
-
const
|
|
313
|
+
const Ho = f.toFlatObject(f, {}, null, function(e) {
|
|
314
314
|
return /^is[A-Z]/.test(e);
|
|
315
315
|
});
|
|
316
316
|
function Je(t, e, n) {
|
|
@@ -341,23 +341,23 @@ function Je(t, e, n) {
|
|
|
341
341
|
if (y && !h && typeof y == "object") {
|
|
342
342
|
if (f.endsWith(m, "{}"))
|
|
343
343
|
m = r ? m : m.slice(0, -2), y = JSON.stringify(y);
|
|
344
|
-
else if (f.isArray(y) &&
|
|
345
|
-
return m = Zr(m), S.forEach(function(
|
|
346
|
-
!(f.isUndefined(
|
|
344
|
+
else if (f.isArray(y) && zo(y) || (f.isFileList(y) || f.endsWith(m, "[]")) && (S = f.toArray(y)))
|
|
345
|
+
return m = Zr(m), S.forEach(function(g, T) {
|
|
346
|
+
!(f.isUndefined(g) || g === null) && e.append(
|
|
347
347
|
// eslint-disable-next-line no-nested-ternary
|
|
348
348
|
i === !0 ? er([m], T, a) : i === null ? m : m + "[]",
|
|
349
|
-
l(
|
|
349
|
+
l(g)
|
|
350
350
|
);
|
|
351
351
|
}), !1;
|
|
352
352
|
}
|
|
353
353
|
return Tt(y) ? !0 : (e.append(er(h, m, a), l(y)), !1);
|
|
354
354
|
}
|
|
355
|
-
const p = [], d = Object.assign(
|
|
355
|
+
const p = [], d = Object.assign(Ho, {
|
|
356
356
|
defaultVisitor: c,
|
|
357
357
|
convertValue: l,
|
|
358
358
|
isVisitable: Tt
|
|
359
359
|
});
|
|
360
|
-
function
|
|
360
|
+
function v(y, m) {
|
|
361
361
|
if (!f.isUndefined(y)) {
|
|
362
362
|
if (p.indexOf(y) !== -1)
|
|
363
363
|
throw Error("Circular reference detected in " + m.join("."));
|
|
@@ -368,13 +368,13 @@ function Je(t, e, n) {
|
|
|
368
368
|
f.isString(E) ? E.trim() : E,
|
|
369
369
|
m,
|
|
370
370
|
d
|
|
371
|
-
)) === !0 &&
|
|
371
|
+
)) === !0 && v(S, m ? m.concat(E) : [E]);
|
|
372
372
|
}), p.pop();
|
|
373
373
|
}
|
|
374
374
|
}
|
|
375
375
|
if (!f.isObject(t))
|
|
376
376
|
throw new TypeError("data must be an object");
|
|
377
|
-
return
|
|
377
|
+
return v(t), e;
|
|
378
378
|
}
|
|
379
379
|
function tr(t) {
|
|
380
380
|
const e = {
|
|
@@ -858,8 +858,8 @@ function fa(t, e) {
|
|
|
858
858
|
d += n[p++], p = p % t;
|
|
859
859
|
if (o = (o + 1) % t, o === a && (a = (a + 1) % t), l - i < e)
|
|
860
860
|
return;
|
|
861
|
-
const
|
|
862
|
-
return
|
|
861
|
+
const v = c && l - c;
|
|
862
|
+
return v ? Math.round(d * 1e3 / v) : void 0;
|
|
863
863
|
};
|
|
864
864
|
}
|
|
865
865
|
function pa(t, e) {
|
|
@@ -874,7 +874,7 @@ function pa(t, e) {
|
|
|
874
874
|
}, r - p)));
|
|
875
875
|
}, () => o && i(o)];
|
|
876
876
|
}
|
|
877
|
-
const
|
|
877
|
+
const Le = (t, e, n = 3) => {
|
|
878
878
|
let r = 0;
|
|
879
879
|
const o = fa(50, 250);
|
|
880
880
|
return pa((a) => {
|
|
@@ -1031,22 +1031,22 @@ const sn = (t) => {
|
|
|
1031
1031
|
const o = sn(t);
|
|
1032
1032
|
let a = o.data;
|
|
1033
1033
|
const i = $.from(o.headers).normalize();
|
|
1034
|
-
let { responseType: s, onUploadProgress: u, onDownloadProgress: l } = o, c, p, d,
|
|
1034
|
+
let { responseType: s, onUploadProgress: u, onDownloadProgress: l } = o, c, p, d, v, y;
|
|
1035
1035
|
function m() {
|
|
1036
|
-
|
|
1036
|
+
v && v(), y && y(), o.cancelToken && o.cancelToken.unsubscribe(c), o.signal && o.signal.removeEventListener("abort", c);
|
|
1037
1037
|
}
|
|
1038
1038
|
let h = new XMLHttpRequest();
|
|
1039
1039
|
h.open(o.method.toUpperCase(), o.url, !0), h.timeout = o.timeout;
|
|
1040
1040
|
function S() {
|
|
1041
1041
|
if (!h)
|
|
1042
1042
|
return;
|
|
1043
|
-
const
|
|
1043
|
+
const g = $.from(
|
|
1044
1044
|
"getAllResponseHeaders" in h && h.getAllResponseHeaders()
|
|
1045
1045
|
), A = {
|
|
1046
1046
|
data: !s || s === "text" || s === "json" ? h.responseText : h.response,
|
|
1047
1047
|
status: h.status,
|
|
1048
1048
|
statusText: h.statusText,
|
|
1049
|
-
headers:
|
|
1049
|
+
headers: g,
|
|
1050
1050
|
config: t,
|
|
1051
1051
|
request: h
|
|
1052
1052
|
};
|
|
@@ -1073,8 +1073,8 @@ const sn = (t) => {
|
|
|
1073
1073
|
)), h = null;
|
|
1074
1074
|
}, a === void 0 && i.setContentType(null), "setRequestHeader" in h && f.forEach(i.toJSON(), function(T, A) {
|
|
1075
1075
|
h.setRequestHeader(A, T);
|
|
1076
|
-
}), f.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), s && s !== "json" && (h.responseType = o.responseType), l && ([d, y] =
|
|
1077
|
-
h && (r(!
|
|
1076
|
+
}), f.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), s && s !== "json" && (h.responseType = o.responseType), l && ([d, y] = Le(l, !0), h.addEventListener("progress", d)), u && h.upload && ([p, v] = Le(u), h.upload.addEventListener("progress", p), h.upload.addEventListener("loadend", v)), (o.cancelToken || o.signal) && (c = (g) => {
|
|
1077
|
+
h && (r(!g || g.type ? new ue(null, t, h) : g), h.abort(), h = null);
|
|
1078
1078
|
}, o.cancelToken && o.cancelToken.subscribe(c), o.signal && (o.signal.aborted ? c() : o.signal.addEventListener("abort", c)));
|
|
1079
1079
|
const E = ua(o.url);
|
|
1080
1080
|
if (E && C.protocols.indexOf(E) === -1) {
|
|
@@ -1222,9 +1222,9 @@ const Ra = async (t) => {
|
|
|
1222
1222
|
fetchOptions: d
|
|
1223
1223
|
} = sn(t);
|
|
1224
1224
|
l = l ? (l + "").toLowerCase() : "text";
|
|
1225
|
-
let
|
|
1226
|
-
const m =
|
|
1227
|
-
|
|
1225
|
+
let v = wa([o, a && a.toAbortSignal()], i), y;
|
|
1226
|
+
const m = v && v.unsubscribe && (() => {
|
|
1227
|
+
v.unsubscribe();
|
|
1228
1228
|
});
|
|
1229
1229
|
let h;
|
|
1230
1230
|
try {
|
|
@@ -1237,7 +1237,7 @@ const Ra = async (t) => {
|
|
|
1237
1237
|
if (f.isFormData(r) && (_ = A.headers.get("content-type")) && c.setContentType(_), A.body) {
|
|
1238
1238
|
const [N, q] = or(
|
|
1239
1239
|
h,
|
|
1240
|
-
|
|
1240
|
+
Le(ar(u))
|
|
1241
1241
|
);
|
|
1242
1242
|
r = sr(A.body, lr, N, q);
|
|
1243
1243
|
}
|
|
@@ -1246,7 +1246,7 @@ const Ra = async (t) => {
|
|
|
1246
1246
|
const S = "credentials" in Request.prototype;
|
|
1247
1247
|
y = new Request(e, {
|
|
1248
1248
|
...d,
|
|
1249
|
-
signal:
|
|
1249
|
+
signal: v,
|
|
1250
1250
|
method: n.toUpperCase(),
|
|
1251
1251
|
headers: c.normalize().toJSON(),
|
|
1252
1252
|
body: r,
|
|
@@ -1254,15 +1254,15 @@ const Ra = async (t) => {
|
|
|
1254
1254
|
credentials: S ? p : void 0
|
|
1255
1255
|
});
|
|
1256
1256
|
let E = await fetch(y, d);
|
|
1257
|
-
const
|
|
1258
|
-
if (Ct && (s ||
|
|
1257
|
+
const g = Ct && (l === "stream" || l === "response");
|
|
1258
|
+
if (Ct && (s || g && m)) {
|
|
1259
1259
|
const A = {};
|
|
1260
1260
|
["status", "statusText", "headers"].forEach((B) => {
|
|
1261
1261
|
A[B] = E[B];
|
|
1262
1262
|
});
|
|
1263
1263
|
const _ = f.toFiniteNumber(E.headers.get("content-length")), [N, q] = s && or(
|
|
1264
1264
|
_,
|
|
1265
|
-
|
|
1265
|
+
Le(ar(s), !0)
|
|
1266
1266
|
) || [];
|
|
1267
1267
|
E = new Response(
|
|
1268
1268
|
sr(E.body, lr, N, () => {
|
|
@@ -1273,7 +1273,7 @@ const Ra = async (t) => {
|
|
|
1273
1273
|
}
|
|
1274
1274
|
l = l || "text";
|
|
1275
1275
|
let T = await Me[f.findKey(Me, l) || "text"](E, t);
|
|
1276
|
-
return !
|
|
1276
|
+
return !g && m && m(), await new Promise((A, _) => {
|
|
1277
1277
|
on(A, _, {
|
|
1278
1278
|
data: T,
|
|
1279
1279
|
headers: $.from(E.headers),
|
|
@@ -1401,7 +1401,7 @@ function Ca(t, e, n) {
|
|
|
1401
1401
|
const De = {
|
|
1402
1402
|
assertOptions: Ca,
|
|
1403
1403
|
validators: Ke
|
|
1404
|
-
},
|
|
1404
|
+
}, U = De.validators;
|
|
1405
1405
|
let X = class {
|
|
1406
1406
|
constructor(e) {
|
|
1407
1407
|
this.defaults = e || {}, this.interceptors = {
|
|
@@ -1438,17 +1438,17 @@ let X = class {
|
|
|
1438
1438
|
typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = Y(this.defaults, n);
|
|
1439
1439
|
const { transitional: r, paramsSerializer: o, headers: a } = n;
|
|
1440
1440
|
r !== void 0 && De.assertOptions(r, {
|
|
1441
|
-
silentJSONParsing:
|
|
1442
|
-
forcedJSONParsing:
|
|
1443
|
-
clarifyTimeoutError:
|
|
1441
|
+
silentJSONParsing: U.transitional(U.boolean),
|
|
1442
|
+
forcedJSONParsing: U.transitional(U.boolean),
|
|
1443
|
+
clarifyTimeoutError: U.transitional(U.boolean)
|
|
1444
1444
|
}, !1), o != null && (f.isFunction(o) ? n.paramsSerializer = {
|
|
1445
1445
|
serialize: o
|
|
1446
1446
|
} : De.assertOptions(o, {
|
|
1447
|
-
encode:
|
|
1448
|
-
serialize:
|
|
1447
|
+
encode: U.function,
|
|
1448
|
+
serialize: U.function
|
|
1449
1449
|
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), De.assertOptions(n, {
|
|
1450
|
-
baseUrl:
|
|
1451
|
-
withXsrfToken:
|
|
1450
|
+
baseUrl: U.spelling("baseURL"),
|
|
1451
|
+
withXsrfToken: U.spelling("withXSRFToken")
|
|
1452
1452
|
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
1453
1453
|
let i = a && f.merge(
|
|
1454
1454
|
a.common,
|
|
@@ -1477,18 +1477,18 @@ let X = class {
|
|
|
1477
1477
|
return c;
|
|
1478
1478
|
}
|
|
1479
1479
|
d = s.length;
|
|
1480
|
-
let
|
|
1480
|
+
let v = n;
|
|
1481
1481
|
for (p = 0; p < d; ) {
|
|
1482
1482
|
const y = s[p++], m = s[p++];
|
|
1483
1483
|
try {
|
|
1484
|
-
|
|
1484
|
+
v = y(v);
|
|
1485
1485
|
} catch (h) {
|
|
1486
1486
|
m.call(this, h);
|
|
1487
1487
|
break;
|
|
1488
1488
|
}
|
|
1489
1489
|
}
|
|
1490
1490
|
try {
|
|
1491
|
-
c = ur.call(this,
|
|
1491
|
+
c = ur.call(this, v);
|
|
1492
1492
|
} catch (y) {
|
|
1493
1493
|
return Promise.reject(y);
|
|
1494
1494
|
}
|
|
@@ -1702,22 +1702,22 @@ R.getAdapter = un.getAdapter;
|
|
|
1702
1702
|
R.HttpStatusCode = Nt;
|
|
1703
1703
|
R.default = R;
|
|
1704
1704
|
const {
|
|
1705
|
-
Axios:
|
|
1706
|
-
AxiosError:
|
|
1707
|
-
CanceledError:
|
|
1708
|
-
isCancel:
|
|
1709
|
-
CancelToken:
|
|
1710
|
-
VERSION:
|
|
1711
|
-
all:
|
|
1712
|
-
Cancel:
|
|
1713
|
-
isAxiosError:
|
|
1714
|
-
spread:
|
|
1715
|
-
toFormData:
|
|
1716
|
-
AxiosHeaders:
|
|
1717
|
-
HttpStatusCode:
|
|
1718
|
-
formToJSON:
|
|
1719
|
-
getAdapter:
|
|
1720
|
-
mergeConfig:
|
|
1705
|
+
Axios: Vl,
|
|
1706
|
+
AxiosError: Kl,
|
|
1707
|
+
CanceledError: Ql,
|
|
1708
|
+
isCancel: Xl,
|
|
1709
|
+
CancelToken: Zl,
|
|
1710
|
+
VERSION: Yl,
|
|
1711
|
+
all: ec,
|
|
1712
|
+
Cancel: tc,
|
|
1713
|
+
isAxiosError: rc,
|
|
1714
|
+
spread: nc,
|
|
1715
|
+
toFormData: oc,
|
|
1716
|
+
AxiosHeaders: ac,
|
|
1717
|
+
HttpStatusCode: ic,
|
|
1718
|
+
formToJSON: sc,
|
|
1719
|
+
getAdapter: lc,
|
|
1720
|
+
mergeConfig: cc
|
|
1721
1721
|
} = R;
|
|
1722
1722
|
var pr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1723
1723
|
function $a(t) {
|
|
@@ -1746,8 +1746,8 @@ var fe = TypeError;
|
|
|
1746
1746
|
const Ia = {}, Ba = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1747
1747
|
__proto__: null,
|
|
1748
1748
|
default: Ia
|
|
1749
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1750
|
-
var
|
|
1749
|
+
}, Symbol.toStringTag, { value: "Module" })), Ua = /* @__PURE__ */ Da(Ba);
|
|
1750
|
+
var zt = typeof Map == "function" && Map.prototype, at = Object.getOwnPropertyDescriptor && zt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, ke = zt && at && typeof at.get == "function" ? at.get : null, dr = zt && Map.prototype.forEach, Ht = typeof Set == "function" && Set.prototype, it = Object.getOwnPropertyDescriptor && Ht ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, qe = Ht && it && typeof it.get == "function" ? it.get : null, yr = Ht && Set.prototype.forEach, La = typeof WeakMap == "function" && WeakMap.prototype, he = La ? WeakMap.prototype.has : null, Ma = typeof WeakSet == "function" && WeakSet.prototype, me = Ma ? WeakSet.prototype.has : null, ka = typeof WeakRef == "function" && WeakRef.prototype, hr = ka ? WeakRef.prototype.deref : null, qa = Boolean.prototype.valueOf, ja = Object.prototype.toString, za = Function.prototype.toString, Ha = String.prototype.match, Wt = String.prototype.slice, J = String.prototype.replace, Wa = String.prototype.toUpperCase, mr = String.prototype.toLowerCase, yn = RegExp.prototype.test, gr = Array.prototype.concat, k = Array.prototype.join, Ga = Array.prototype.slice, vr = Math.floor, Ft = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, st = Object.getOwnPropertySymbols, $t = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, se = typeof Symbol == "function" && typeof Symbol.iterator == "object", ge = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === se || !0) ? Symbol.toStringTag : null, hn = Object.prototype.propertyIsEnumerable, wr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
|
|
1751
1751
|
return t.__proto__;
|
|
1752
1752
|
} : null);
|
|
1753
1753
|
function br(t, e) {
|
|
@@ -1763,7 +1763,7 @@ function br(t, e) {
|
|
|
1763
1763
|
}
|
|
1764
1764
|
return J.call(e, n, "$&_");
|
|
1765
1765
|
}
|
|
1766
|
-
var Dt =
|
|
1766
|
+
var Dt = Ua, Sr = Dt.custom, Er = vn(Sr) ? Sr : null, mn = {
|
|
1767
1767
|
__proto__: null,
|
|
1768
1768
|
double: '"',
|
|
1769
1769
|
single: "'"
|
|
@@ -1773,16 +1773,16 @@ var Dt = La, Sr = Dt.custom, Er = vn(Sr) ? Sr : null, mn = {
|
|
|
1773
1773
|
single: /(['\\])/g
|
|
1774
1774
|
}, Qe = function t(e, n, r, o) {
|
|
1775
1775
|
var a = n || {};
|
|
1776
|
-
if (
|
|
1776
|
+
if (z(a, "quoteStyle") && !z(mn, a.quoteStyle))
|
|
1777
1777
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
1778
|
-
if (
|
|
1778
|
+
if (z(a, "maxStringLength") && (typeof a.maxStringLength == "number" ? a.maxStringLength < 0 && a.maxStringLength !== 1 / 0 : a.maxStringLength !== null))
|
|
1779
1779
|
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
|
1780
|
-
var i =
|
|
1780
|
+
var i = z(a, "customInspect") ? a.customInspect : !0;
|
|
1781
1781
|
if (typeof i != "boolean" && i !== "symbol")
|
|
1782
1782
|
throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
|
|
1783
|
-
if (
|
|
1783
|
+
if (z(a, "indent") && a.indent !== null && a.indent !== " " && !(parseInt(a.indent, 10) === a.indent && a.indent > 0))
|
|
1784
1784
|
throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
|
|
1785
|
-
if (
|
|
1785
|
+
if (z(a, "numericSeparator") && typeof a.numericSeparator != "boolean")
|
|
1786
1786
|
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
|
|
1787
1787
|
var s = a.numericSeparator;
|
|
1788
1788
|
if (typeof e > "u")
|
|
@@ -1816,13 +1816,13 @@ var Dt = La, Sr = Dt.custom, Er = vn(Sr) ? Sr : null, mn = {
|
|
|
1816
1816
|
var pe = {
|
|
1817
1817
|
depth: a.depth
|
|
1818
1818
|
};
|
|
1819
|
-
return
|
|
1819
|
+
return z(a, "quoteStyle") && (pe.quoteStyle = a.quoteStyle), t(D, pe, r + 1, o);
|
|
1820
1820
|
}
|
|
1821
1821
|
return t(D, a, r + 1, o);
|
|
1822
1822
|
}
|
|
1823
1823
|
if (typeof e == "function" && !Ar(e)) {
|
|
1824
|
-
var
|
|
1825
|
-
return "[Function" + (
|
|
1824
|
+
var v = ri(e), y = Ce(e, d);
|
|
1825
|
+
return "[Function" + (v ? ": " + v : " (anonymous)") + "]" + (y.length > 0 ? " { " + k.call(y, ", ") + " }" : "");
|
|
1826
1826
|
}
|
|
1827
1827
|
if (vn(e)) {
|
|
1828
1828
|
var m = se ? J.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : $t.call(e);
|
|
@@ -1836,8 +1836,8 @@ var Dt = La, Sr = Dt.custom, Er = vn(Sr) ? Sr : null, mn = {
|
|
|
1836
1836
|
if (It(e)) {
|
|
1837
1837
|
if (e.length === 0)
|
|
1838
1838
|
return "[]";
|
|
1839
|
-
var
|
|
1840
|
-
return p && !ui(
|
|
1839
|
+
var g = Ce(e, d);
|
|
1840
|
+
return p && !ui(g) ? "[" + Bt(g, p) + "]" : "[ " + k.call(g, ", ") + " ]";
|
|
1841
1841
|
}
|
|
1842
1842
|
if (Qa(e)) {
|
|
1843
1843
|
var T = Ce(e, d);
|
|
@@ -1880,7 +1880,7 @@ var Dt = La, Sr = Dt.custom, Er = vn(Sr) ? Sr : null, mn = {
|
|
|
1880
1880
|
if (typeof globalThis < "u" && e === globalThis || typeof pr < "u" && e === pr)
|
|
1881
1881
|
return "{ [object globalThis] }";
|
|
1882
1882
|
if (!Ka(e) && !Ar(e)) {
|
|
1883
|
-
var N = Ce(e, d), q = wr ? wr(e) === Object.prototype : e instanceof Object || e.constructor === Object, B = e instanceof Object ? "" : "null prototype",
|
|
1883
|
+
var N = Ce(e, d), q = wr ? wr(e) === Object.prototype : e instanceof Object || e.constructor === Object, B = e instanceof Object ? "" : "null prototype", H = !q && ge && Object(e) === e && ge in e ? Wt.call(V(e), 8, -1) : B ? "Object" : "", xe = q || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", re = xe + (H || B ? "[" + k.call(gr.call([], H || [], B || []), ": ") + "] " : "");
|
|
1884
1884
|
return N.length === 0 ? re + "{}" : p ? re + "{" + Bt(N, p) + "}" : re + "{ " + k.call(N, ", ") + " }";
|
|
1885
1885
|
}
|
|
1886
1886
|
return String(e);
|
|
@@ -1941,7 +1941,7 @@ function ei(t) {
|
|
|
1941
1941
|
var ti = Object.prototype.hasOwnProperty || function(t) {
|
|
1942
1942
|
return t in this;
|
|
1943
1943
|
};
|
|
1944
|
-
function
|
|
1944
|
+
function z(t, e) {
|
|
1945
1945
|
return ti.call(t, e);
|
|
1946
1946
|
}
|
|
1947
1947
|
function V(t) {
|
|
@@ -1950,7 +1950,7 @@ function V(t) {
|
|
|
1950
1950
|
function ri(t) {
|
|
1951
1951
|
if (t.name)
|
|
1952
1952
|
return t.name;
|
|
1953
|
-
var e =
|
|
1953
|
+
var e = Ha.call(za.call(t), /^function\s*([\w$]+)/);
|
|
1954
1954
|
return e ? e[1] : null;
|
|
1955
1955
|
}
|
|
1956
1956
|
function wn(t, e) {
|
|
@@ -2096,7 +2096,7 @@ function Ce(t, e) {
|
|
|
2096
2096
|
if (n) {
|
|
2097
2097
|
r.length = t.length;
|
|
2098
2098
|
for (var o = 0; o < t.length; o++)
|
|
2099
|
-
r[o] =
|
|
2099
|
+
r[o] = z(t, o) ? e(t[o], t) : "";
|
|
2100
2100
|
}
|
|
2101
2101
|
var a = typeof st == "function" ? st(t) : [], i;
|
|
2102
2102
|
if (se) {
|
|
@@ -2105,7 +2105,7 @@ function Ce(t, e) {
|
|
|
2105
2105
|
i["$" + a[s]] = a[s];
|
|
2106
2106
|
}
|
|
2107
2107
|
for (var u in t)
|
|
2108
|
-
|
|
2108
|
+
z(t, u) && (n && String(Number(u)) === u && u < t.length || se && i["$" + u] instanceof Symbol || (yn.call(/[^\w$]/, u) ? r.push(e(u, t) + ": " + e(t[u], t)) : r.push(u + ": " + e(t[u], t))));
|
|
2109
2109
|
if (typeof st == "function")
|
|
2110
2110
|
for (var l = 0; l < a.length; l++)
|
|
2111
2111
|
hn.call(t, a[l]) && r.push("[" + e(a[l]) + "]: " + e(t[a[l]], t));
|
|
@@ -2212,7 +2212,7 @@ function Bi() {
|
|
|
2212
2212
|
}), ct;
|
|
2213
2213
|
}
|
|
2214
2214
|
var ut, Pr;
|
|
2215
|
-
function
|
|
2215
|
+
function Ui() {
|
|
2216
2216
|
if (Pr) return ut;
|
|
2217
2217
|
Pr = 1;
|
|
2218
2218
|
var t = typeof Symbol < "u" && Symbol, e = Bi();
|
|
@@ -2232,7 +2232,7 @@ function On() {
|
|
|
2232
2232
|
return pt = t.getPrototypeOf || null, pt;
|
|
2233
2233
|
}
|
|
2234
2234
|
var dt, Cr;
|
|
2235
|
-
function
|
|
2235
|
+
function Li() {
|
|
2236
2236
|
if (Cr) return dt;
|
|
2237
2237
|
Cr = 1;
|
|
2238
2238
|
var t = "Function.prototype.bind called on incompatible ", e = Object.prototype.toString, n = Math.max, r = "[object Function]", o = function(u, l) {
|
|
@@ -2266,7 +2266,7 @@ function Ui() {
|
|
|
2266
2266
|
u,
|
|
2267
2267
|
o(c, arguments)
|
|
2268
2268
|
);
|
|
2269
|
-
},
|
|
2269
|
+
}, v = n(0, l.length - c.length), y = [], m = 0; m < v; m++)
|
|
2270
2270
|
y[m] = "$" + m;
|
|
2271
2271
|
if (p = Function("binder", "return function (" + i(y, ",") + "){ return binder.apply(this,arguments); }")(d), l.prototype) {
|
|
2272
2272
|
var h = function() {
|
|
@@ -2280,7 +2280,7 @@ var yt, _r;
|
|
|
2280
2280
|
function Ze() {
|
|
2281
2281
|
if (_r) return yt;
|
|
2282
2282
|
_r = 1;
|
|
2283
|
-
var t =
|
|
2283
|
+
var t = Li();
|
|
2284
2284
|
return yt = Function.prototype.bind || t, yt;
|
|
2285
2285
|
}
|
|
2286
2286
|
var ht, Nr;
|
|
@@ -2291,7 +2291,7 @@ var mt, Fr;
|
|
|
2291
2291
|
function Rn() {
|
|
2292
2292
|
return Fr || (Fr = 1, mt = Function.prototype.apply), mt;
|
|
2293
2293
|
}
|
|
2294
|
-
var Mi = typeof Reflect < "u" && Reflect && Reflect.apply, ki = Ze(), qi = Rn(), ji = Gt(),
|
|
2294
|
+
var Mi = typeof Reflect < "u" && Reflect && Reflect.apply, ki = Ze(), qi = Rn(), ji = Gt(), zi = Mi, Hi = zi || ki.call(ji, qi), Wi = Ze(), Gi = fe, Ji = Gt(), Vi = Hi, Pn = function(e) {
|
|
2295
2295
|
if (e.length < 1 || typeof e[0] != "function")
|
|
2296
2296
|
throw new Gi("a function is required");
|
|
2297
2297
|
return Vi(Wi, Ji, e);
|
|
@@ -2358,7 +2358,7 @@ var b, Zi = Sn, Yi = wi, es = bi, ts = Si, rs = Ei, le = Ai, ie = fe, ns = Oi, o
|
|
|
2358
2358
|
return St;
|
|
2359
2359
|
}
|
|
2360
2360
|
}
|
|
2361
|
-
}() : St, ne =
|
|
2361
|
+
}() : St, ne = Ui()(), x = Qi(), ds = On(), ys = An(), xn = Rn(), Re = Gt(), ae = {}, hs = typeof Uint8Array > "u" || !x ? b : x(Uint8Array), Z = {
|
|
2362
2362
|
__proto__: null,
|
|
2363
2363
|
"%AggregateError%": typeof AggregateError > "u" ? b : AggregateError,
|
|
2364
2364
|
"%Array%": Array,
|
|
@@ -2518,15 +2518,15 @@ var gs = function t(e) {
|
|
|
2518
2518
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
2519
2519
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
2520
2520
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
2521
|
-
}, Pe = Ze(), je = Xi(), vs = Pe.call(Re, Array.prototype.concat), ws = Pe.call(xn, Array.prototype.splice),
|
|
2522
|
-
var n =
|
|
2521
|
+
}, Pe = Ze(), je = Xi(), vs = Pe.call(Re, Array.prototype.concat), ws = Pe.call(xn, Array.prototype.splice), Ur = Pe.call(Re, String.prototype.replace), ze = Pe.call(Re, String.prototype.slice), bs = Pe.call(Re, RegExp.prototype.exec), Ss = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Es = /\\(\\)?/g, As = function(e) {
|
|
2522
|
+
var n = ze(e, 0, 1), r = ze(e, -1);
|
|
2523
2523
|
if (n === "%" && r !== "%")
|
|
2524
2524
|
throw new le("invalid intrinsic syntax, expected closing `%`");
|
|
2525
2525
|
if (r === "%" && n !== "%")
|
|
2526
2526
|
throw new le("invalid intrinsic syntax, expected opening `%`");
|
|
2527
2527
|
var o = [];
|
|
2528
|
-
return
|
|
2529
|
-
o[o.length] = s ?
|
|
2528
|
+
return Ur(e, Ss, function(a, i, s, u) {
|
|
2529
|
+
o[o.length] = s ? Ur(u, Es, "$1") : i || a;
|
|
2530
2530
|
}), o;
|
|
2531
2531
|
}, Os = function(e, n) {
|
|
2532
2532
|
var r = e, o;
|
|
@@ -2551,8 +2551,8 @@ var gs = function t(e) {
|
|
|
2551
2551
|
var r = As(e), o = r.length > 0 ? r[0] : "", a = Os("%" + o + "%", n), i = a.name, s = a.value, u = !1, l = a.alias;
|
|
2552
2552
|
l && (o = l[0], ws(r, vs([0, 1], l)));
|
|
2553
2553
|
for (var c = 1, p = !0; c < r.length; c += 1) {
|
|
2554
|
-
var d = r[c],
|
|
2555
|
-
if ((
|
|
2554
|
+
var d = r[c], v = ze(d, 0, 1), y = ze(d, -1);
|
|
2555
|
+
if ((v === '"' || v === "'" || v === "`" || y === '"' || y === "'" || y === "`") && v !== y)
|
|
2556
2556
|
throw new le("property names with quotes must have matching quotes");
|
|
2557
2557
|
if ((d === "constructor" || !p) && (u = !0), o += "." + d, i = "%" + o + "%", je(Z, i))
|
|
2558
2558
|
s = Z[i];
|
|
@@ -2580,7 +2580,7 @@ var gs = function t(e) {
|
|
|
2580
2580
|
/** @type {const} */
|
|
2581
2581
|
[r]
|
|
2582
2582
|
) : r;
|
|
2583
|
-
}, Ps = Jt, Te = Nn, Ts = Qe, xs = fe,
|
|
2583
|
+
}, Ps = Jt, Te = Nn, Ts = Qe, xs = fe, Lr = Ps("%Map%", !0), Cs = Te("Map.prototype.get", !0), _s = Te("Map.prototype.set", !0), Ns = Te("Map.prototype.has", !0), Fs = Te("Map.prototype.delete", !0), $s = Te("Map.prototype.size", !0), Fn = !!Lr && /** @type {Exclude<import('.'), false>} */
|
|
2584
2584
|
function() {
|
|
2585
2585
|
var e, n = {
|
|
2586
2586
|
assert: function(r) {
|
|
@@ -2602,11 +2602,11 @@ function() {
|
|
|
2602
2602
|
return e ? Ns(e, r) : !1;
|
|
2603
2603
|
},
|
|
2604
2604
|
set: function(r, o) {
|
|
2605
|
-
e || (e = new
|
|
2605
|
+
e || (e = new Lr()), _s(e, r, o);
|
|
2606
2606
|
}
|
|
2607
2607
|
};
|
|
2608
2608
|
return n;
|
|
2609
|
-
}, Ds = Jt, Ye = Nn, Is = Qe, _e = Fn, Bs = fe, oe = Ds("%WeakMap%", !0),
|
|
2609
|
+
}, Ds = Jt, Ye = Nn, Is = Qe, _e = Fn, Bs = fe, oe = Ds("%WeakMap%", !0), Us = Ye("WeakMap.prototype.get", !0), Ls = Ye("WeakMap.prototype.set", !0), Ms = Ye("WeakMap.prototype.has", !0), ks = Ye("WeakMap.prototype.delete", !0), qs = oe ? (
|
|
2610
2610
|
/** @type {Exclude<import('.'), false>} */
|
|
2611
2611
|
function() {
|
|
2612
2612
|
var e, n, r = {
|
|
@@ -2623,22 +2623,22 @@ function() {
|
|
|
2623
2623
|
return !1;
|
|
2624
2624
|
},
|
|
2625
2625
|
get: function(o) {
|
|
2626
|
-
return oe && o && (typeof o == "object" || typeof o == "function") && e ?
|
|
2626
|
+
return oe && o && (typeof o == "object" || typeof o == "function") && e ? Us(e, o) : n && n.get(o);
|
|
2627
2627
|
},
|
|
2628
2628
|
has: function(o) {
|
|
2629
2629
|
return oe && o && (typeof o == "object" || typeof o == "function") && e ? Ms(e, o) : !!n && n.has(o);
|
|
2630
2630
|
},
|
|
2631
2631
|
set: function(o, a) {
|
|
2632
|
-
oe && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new oe()),
|
|
2632
|
+
oe && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new oe()), Ls(e, o, a)) : _e && (n || (n = _e()), n.set(o, a));
|
|
2633
2633
|
}
|
|
2634
2634
|
};
|
|
2635
2635
|
return r;
|
|
2636
2636
|
}
|
|
2637
|
-
) : _e, js = fe,
|
|
2637
|
+
) : _e, js = fe, zs = Qe, Hs = vi, Ws = Fn, Gs = qs, Js = Gs || Ws || Hs, Vs = function() {
|
|
2638
2638
|
var e, n = {
|
|
2639
2639
|
assert: function(r) {
|
|
2640
2640
|
if (!n.has(r))
|
|
2641
|
-
throw new js("Side channel does not contain " +
|
|
2641
|
+
throw new js("Side channel does not contain " + zs(r));
|
|
2642
2642
|
},
|
|
2643
2643
|
delete: function(r) {
|
|
2644
2644
|
return !!e && e.delete(r);
|
|
@@ -2669,7 +2669,7 @@ function() {
|
|
|
2669
2669
|
},
|
|
2670
2670
|
RFC1738: Et.RFC1738,
|
|
2671
2671
|
RFC3986: Et.RFC3986
|
|
2672
|
-
}, Xs = Vt, At = Object.prototype.hasOwnProperty, K = Array.isArray,
|
|
2672
|
+
}, Xs = Vt, At = Object.prototype.hasOwnProperty, K = Array.isArray, L = function() {
|
|
2673
2673
|
for (var t = [], e = 0; e < 256; ++e)
|
|
2674
2674
|
t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
|
|
2675
2675
|
return t;
|
|
@@ -2729,8 +2729,8 @@ function() {
|
|
|
2729
2729
|
return e;
|
|
2730
2730
|
var i = e;
|
|
2731
2731
|
if (typeof e == "symbol" ? i = Symbol.prototype.toString.call(e) : typeof e != "string" && (i = String(e)), r === "iso-8859-1")
|
|
2732
|
-
return escape(i).replace(/%u[0-9a-f]{4}/gi, function(
|
|
2733
|
-
return "%26%23" + parseInt(
|
|
2732
|
+
return escape(i).replace(/%u[0-9a-f]{4}/gi, function(v) {
|
|
2733
|
+
return "%26%23" + parseInt(v.slice(2), 16) + "%3B";
|
|
2734
2734
|
});
|
|
2735
2735
|
for (var s = "", u = 0; u < i.length; u += Ot) {
|
|
2736
2736
|
for (var l = i.length >= Ot ? i.slice(u, u + Ot) : i, c = [], p = 0; p < l.length; ++p) {
|
|
@@ -2740,18 +2740,18 @@ function() {
|
|
|
2740
2740
|
continue;
|
|
2741
2741
|
}
|
|
2742
2742
|
if (d < 128) {
|
|
2743
|
-
c[c.length] =
|
|
2743
|
+
c[c.length] = L[d];
|
|
2744
2744
|
continue;
|
|
2745
2745
|
}
|
|
2746
2746
|
if (d < 2048) {
|
|
2747
|
-
c[c.length] =
|
|
2747
|
+
c[c.length] = L[192 | d >> 6] + L[128 | d & 63];
|
|
2748
2748
|
continue;
|
|
2749
2749
|
}
|
|
2750
2750
|
if (d < 55296 || d >= 57344) {
|
|
2751
|
-
c[c.length] =
|
|
2751
|
+
c[c.length] = L[224 | d >> 12] + L[128 | d >> 6 & 63] + L[128 | d & 63];
|
|
2752
2752
|
continue;
|
|
2753
2753
|
}
|
|
2754
|
-
p += 1, d = 65536 + ((d & 1023) << 10 | l.charCodeAt(p) & 1023), c[c.length] =
|
|
2754
|
+
p += 1, d = 65536 + ((d & 1023) << 10 | l.charCodeAt(p) & 1023), c[c.length] = L[240 | d >> 18] + L[128 | d >> 12 & 63] + L[128 | d >> 6 & 63] + L[128 | d & 63];
|
|
2755
2755
|
}
|
|
2756
2756
|
s += c.join("");
|
|
2757
2757
|
}
|
|
@@ -2787,7 +2787,7 @@ function() {
|
|
|
2787
2787
|
isRegExp: ol,
|
|
2788
2788
|
maybeMap: sl,
|
|
2789
2789
|
merge: Ys
|
|
2790
|
-
}, In = Vs,
|
|
2790
|
+
}, In = Vs, Ue = Dn, ve = Vt, ll = Object.prototype.hasOwnProperty, Bn = {
|
|
2791
2791
|
brackets: function(e) {
|
|
2792
2792
|
return e + "[]";
|
|
2793
2793
|
},
|
|
@@ -2798,7 +2798,7 @@ function() {
|
|
|
2798
2798
|
repeat: function(e) {
|
|
2799
2799
|
return e;
|
|
2800
2800
|
}
|
|
2801
|
-
}, M = Array.isArray, cl = Array.prototype.push,
|
|
2801
|
+
}, M = Array.isArray, cl = Array.prototype.push, Un = function(t, e) {
|
|
2802
2802
|
cl.apply(t, M(e) ? e : [e]);
|
|
2803
2803
|
}, ul = Date.prototype.toISOString, Mr = ve.default, P = {
|
|
2804
2804
|
addQueryPrefix: !1,
|
|
@@ -2811,7 +2811,7 @@ function() {
|
|
|
2811
2811
|
delimiter: "&",
|
|
2812
2812
|
encode: !0,
|
|
2813
2813
|
encodeDotInKeys: !1,
|
|
2814
|
-
encoder:
|
|
2814
|
+
encoder: Ue.encode,
|
|
2815
2815
|
encodeValuesOnly: !1,
|
|
2816
2816
|
filter: void 0,
|
|
2817
2817
|
format: Mr,
|
|
@@ -2825,8 +2825,8 @@ function() {
|
|
|
2825
2825
|
strictNullHandling: !1
|
|
2826
2826
|
}, fl = function(e) {
|
|
2827
2827
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
|
|
2828
|
-
}, Rt = {}, pl = function t(e, n, r, o, a, i, s, u, l, c, p, d,
|
|
2829
|
-
for (var
|
|
2828
|
+
}, Rt = {}, pl = function t(e, n, r, o, a, i, s, u, l, c, p, d, v, y, m, h, S, E) {
|
|
2829
|
+
for (var g = e, T = E, A = 0, _ = !1; (T = T.get(Rt)) !== void 0 && !_; ) {
|
|
2830
2830
|
var N = T.get(e);
|
|
2831
2831
|
if (A += 1, typeof N < "u") {
|
|
2832
2832
|
if (N === A)
|
|
@@ -2835,42 +2835,42 @@ function() {
|
|
|
2835
2835
|
}
|
|
2836
2836
|
typeof T.get(Rt) > "u" && (A = 0);
|
|
2837
2837
|
}
|
|
2838
|
-
if (typeof c == "function" ?
|
|
2839
|
-
return tt instanceof Date ?
|
|
2840
|
-
})),
|
|
2838
|
+
if (typeof c == "function" ? g = c(n, g) : g instanceof Date ? g = v(g) : r === "comma" && M(g) && (g = Ue.maybeMap(g, function(tt) {
|
|
2839
|
+
return tt instanceof Date ? v(tt) : tt;
|
|
2840
|
+
})), g === null) {
|
|
2841
2841
|
if (i)
|
|
2842
2842
|
return l && !h ? l(n, P.encoder, S, "key", y) : n;
|
|
2843
|
-
|
|
2843
|
+
g = "";
|
|
2844
2844
|
}
|
|
2845
|
-
if (fl(
|
|
2845
|
+
if (fl(g) || Ue.isBuffer(g)) {
|
|
2846
2846
|
if (l) {
|
|
2847
2847
|
var q = h ? n : l(n, P.encoder, S, "key", y);
|
|
2848
|
-
return [m(q) + "=" + m(l(
|
|
2848
|
+
return [m(q) + "=" + m(l(g, P.encoder, S, "value", y))];
|
|
2849
2849
|
}
|
|
2850
|
-
return [m(n) + "=" + m(String(
|
|
2850
|
+
return [m(n) + "=" + m(String(g))];
|
|
2851
2851
|
}
|
|
2852
2852
|
var B = [];
|
|
2853
|
-
if (typeof
|
|
2853
|
+
if (typeof g > "u")
|
|
2854
2854
|
return B;
|
|
2855
|
-
var
|
|
2856
|
-
if (r === "comma" && M(
|
|
2857
|
-
h && l && (
|
|
2855
|
+
var H;
|
|
2856
|
+
if (r === "comma" && M(g))
|
|
2857
|
+
h && l && (g = Ue.maybeMap(g, l)), H = [{ value: g.length > 0 ? g.join(",") || null : void 0 }];
|
|
2858
2858
|
else if (M(c))
|
|
2859
|
-
|
|
2859
|
+
H = c;
|
|
2860
2860
|
else {
|
|
2861
|
-
var xe = Object.keys(
|
|
2862
|
-
|
|
2861
|
+
var xe = Object.keys(g);
|
|
2862
|
+
H = p ? xe.sort(p) : xe;
|
|
2863
2863
|
}
|
|
2864
|
-
var re = u ? String(n).replace(/\./g, "%2E") : String(n), D = o && M(
|
|
2865
|
-
if (a && M(
|
|
2864
|
+
var re = u ? String(n).replace(/\./g, "%2E") : String(n), D = o && M(g) && g.length === 1 ? re + "[]" : re;
|
|
2865
|
+
if (a && M(g) && g.length === 0)
|
|
2866
2866
|
return D + "[]";
|
|
2867
|
-
for (var W = 0; W <
|
|
2868
|
-
var j =
|
|
2867
|
+
for (var W = 0; W < H.length; ++W) {
|
|
2868
|
+
var j = H[W], pe = typeof j == "object" && j && typeof j.value < "u" ? j.value : g[j];
|
|
2869
2869
|
if (!(s && pe === null)) {
|
|
2870
|
-
var et = d && u ? String(j).replace(/\./g, "%2E") : String(j), jn = M(
|
|
2870
|
+
var et = d && u ? String(j).replace(/\./g, "%2E") : String(j), jn = M(g) ? typeof r == "function" ? r(D, et) : D : D + (d ? "." + et : "[" + et + "]");
|
|
2871
2871
|
E.set(e, A);
|
|
2872
2872
|
var Zt = In();
|
|
2873
|
-
Zt.set(Rt, E),
|
|
2873
|
+
Zt.set(Rt, E), Un(B, t(
|
|
2874
2874
|
pe,
|
|
2875
2875
|
jn,
|
|
2876
2876
|
r,
|
|
@@ -2879,11 +2879,11 @@ function() {
|
|
|
2879
2879
|
i,
|
|
2880
2880
|
s,
|
|
2881
2881
|
u,
|
|
2882
|
-
r === "comma" && h && M(
|
|
2882
|
+
r === "comma" && h && M(g) ? null : l,
|
|
2883
2883
|
c,
|
|
2884
2884
|
p,
|
|
2885
2885
|
d,
|
|
2886
|
-
|
|
2886
|
+
v,
|
|
2887
2887
|
y,
|
|
2888
2888
|
m,
|
|
2889
2889
|
h,
|
|
@@ -2948,7 +2948,7 @@ function() {
|
|
|
2948
2948
|
o || (o = Object.keys(n)), r.sort && o.sort(r.sort);
|
|
2949
2949
|
for (var l = In(), c = 0; c < o.length; ++c) {
|
|
2950
2950
|
var p = o[c], d = n[p];
|
|
2951
|
-
r.skipNulls && d === null ||
|
|
2951
|
+
r.skipNulls && d === null || Un(i, pl(
|
|
2952
2952
|
d,
|
|
2953
2953
|
p,
|
|
2954
2954
|
s,
|
|
@@ -2969,9 +2969,9 @@ function() {
|
|
|
2969
2969
|
l
|
|
2970
2970
|
));
|
|
2971
2971
|
}
|
|
2972
|
-
var
|
|
2973
|
-
return r.charsetSentinel && (r.charset === "iso-8859-1" ? y += "utf8=%26%2310003%3B&" : y += "utf8=%E2%9C%93&"),
|
|
2974
|
-
}, ee = Dn,
|
|
2972
|
+
var v = i.join(r.delimiter), y = r.addQueryPrefix === !0 ? "?" : "";
|
|
2973
|
+
return r.charsetSentinel && (r.charset === "iso-8859-1" ? y += "utf8=%26%2310003%3B&" : y += "utf8=%E2%9C%93&"), v.length > 0 ? y + v : "";
|
|
2974
|
+
}, ee = Dn, Ut = Object.prototype.hasOwnProperty, kr = Array.isArray, O = {
|
|
2975
2975
|
allowDots: !1,
|
|
2976
2976
|
allowEmptyArrays: !1,
|
|
2977
2977
|
allowPrototypes: !1,
|
|
@@ -2997,7 +2997,7 @@ function() {
|
|
|
2997
2997
|
return t.replace(/&#(\d+);/g, function(e, n) {
|
|
2998
2998
|
return String.fromCharCode(parseInt(n, 10));
|
|
2999
2999
|
});
|
|
3000
|
-
},
|
|
3000
|
+
}, Ln = function(t, e, n) {
|
|
3001
3001
|
if (t && typeof t == "string" && e.comma && t.indexOf(",") > -1)
|
|
3002
3002
|
return t.split(",");
|
|
3003
3003
|
if (e.throwOnLimitExceeded && n >= e.arrayLimit)
|
|
@@ -3018,19 +3018,19 @@ function() {
|
|
|
3018
3018
|
i[u].indexOf("utf8=") === 0 && (i[u] === gl ? l = "utf-8" : i[u] === ml && (l = "iso-8859-1"), s = u, u = i.length);
|
|
3019
3019
|
for (u = 0; u < i.length; ++u)
|
|
3020
3020
|
if (u !== s) {
|
|
3021
|
-
var c = i[u], p = c.indexOf("]="), d = p === -1 ? c.indexOf("=") : p + 1,
|
|
3022
|
-
d === -1 ? (
|
|
3023
|
-
|
|
3021
|
+
var c = i[u], p = c.indexOf("]="), d = p === -1 ? c.indexOf("=") : p + 1, v, y;
|
|
3022
|
+
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 = ee.maybeMap(
|
|
3023
|
+
Ln(
|
|
3024
3024
|
c.slice(d + 1),
|
|
3025
3025
|
n,
|
|
3026
|
-
kr(r[
|
|
3026
|
+
kr(r[v]) ? r[v].length : 0
|
|
3027
3027
|
),
|
|
3028
3028
|
function(h) {
|
|
3029
3029
|
return n.decoder(h, O.decoder, l, "value");
|
|
3030
3030
|
}
|
|
3031
3031
|
)), y && n.interpretNumericEntities && l === "iso-8859-1" && (y = hl(String(y))), c.indexOf("[]=") > -1 && (y = kr(y) ? [y] : y);
|
|
3032
|
-
var m =
|
|
3033
|
-
m && n.duplicates === "combine" ? r[
|
|
3032
|
+
var m = Ut.call(r, v);
|
|
3033
|
+
m && n.duplicates === "combine" ? r[v] = ee.combine(r[v], y) : (!m || n.duplicates === "last") && (r[v] = y);
|
|
3034
3034
|
}
|
|
3035
3035
|
return r;
|
|
3036
3036
|
}, wl = function(t, e, n, r) {
|
|
@@ -3039,7 +3039,7 @@ function() {
|
|
|
3039
3039
|
var a = t.slice(0, -1).join("");
|
|
3040
3040
|
o = Array.isArray(e) && e[a] ? e[a].length : 0;
|
|
3041
3041
|
}
|
|
3042
|
-
for (var i = r ? e :
|
|
3042
|
+
for (var i = r ? e : Ln(e, n, o), s = t.length - 1; s >= 0; --s) {
|
|
3043
3043
|
var u, l = t[s];
|
|
3044
3044
|
if (l === "[]" && n.parseArrays)
|
|
3045
3045
|
u = n.allowEmptyArrays && (i === "" || n.strictNullHandling && i === null) ? [] : ee.combine([], i);
|
|
@@ -3055,12 +3055,12 @@ function() {
|
|
|
3055
3055
|
if (e) {
|
|
3056
3056
|
var a = r.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, i = /(\[[^[\]]*])/, s = /(\[[^[\]]*])/g, u = r.depth > 0 && i.exec(a), l = u ? a.slice(0, u.index) : a, c = [];
|
|
3057
3057
|
if (l) {
|
|
3058
|
-
if (!r.plainObjects &&
|
|
3058
|
+
if (!r.plainObjects && Ut.call(Object.prototype, l) && !r.allowPrototypes)
|
|
3059
3059
|
return;
|
|
3060
3060
|
c.push(l);
|
|
3061
3061
|
}
|
|
3062
3062
|
for (var p = 0; r.depth > 0 && (u = s.exec(a)) !== null && p < r.depth; ) {
|
|
3063
|
-
if (p += 1, !r.plainObjects &&
|
|
3063
|
+
if (p += 1, !r.plainObjects && Ut.call(Object.prototype, u[1].slice(1, -1)) && !r.allowPrototypes)
|
|
3064
3064
|
return;
|
|
3065
3065
|
c.push(u[1]);
|
|
3066
3066
|
}
|
|
@@ -3147,7 +3147,7 @@ var xl = {
|
|
|
3147
3147
|
);
|
|
3148
3148
|
}
|
|
3149
3149
|
};
|
|
3150
|
-
function
|
|
3150
|
+
function Lt(t, e) {
|
|
3151
3151
|
function n(o, a, i) {
|
|
3152
3152
|
if (!(typeof document > "u")) {
|
|
3153
3153
|
i = Ne({}, e, i), typeof i.expires == "number" && (i.expires = new Date(Date.now() + i.expires * 864e5)), i.expires && (i.expires = i.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
@@ -3185,10 +3185,10 @@ function Ut(t, e) {
|
|
|
3185
3185
|
);
|
|
3186
3186
|
},
|
|
3187
3187
|
withAttributes: function(o) {
|
|
3188
|
-
return
|
|
3188
|
+
return Lt(this.converter, Ne({}, this.attributes, o));
|
|
3189
3189
|
},
|
|
3190
3190
|
withConverter: function(o) {
|
|
3191
|
-
return
|
|
3191
|
+
return Lt(Ne({}, this.converter, o), this.attributes);
|
|
3192
3192
|
}
|
|
3193
3193
|
},
|
|
3194
3194
|
{
|
|
@@ -3197,7 +3197,7 @@ function Ut(t, e) {
|
|
|
3197
3197
|
}
|
|
3198
3198
|
);
|
|
3199
3199
|
}
|
|
3200
|
-
var Cl =
|
|
3200
|
+
var Cl = Lt(xl, { path: "/" });
|
|
3201
3201
|
const _l = {
|
|
3202
3202
|
参数校验错误: { "zh-CN": "参数校验错误", en: "Parameter Validation Error", _appCode: "framework" },
|
|
3203
3203
|
接口地址未找到: { "zh-CN": "接口地址未找到", en: "Api endpoint not found", _appCode: "framework" },
|
|
@@ -3209,53 +3209,69 @@ const _l = {
|
|
|
3209
3209
|
en: "Network error, please check your network status",
|
|
3210
3210
|
_appCode: "framework"
|
|
3211
3211
|
}
|
|
3212
|
-
};
|
|
3213
|
-
|
|
3212
|
+
}, Nl = async (t) => null;
|
|
3213
|
+
zn(_l);
|
|
3214
3214
|
Mt.extend(Xn);
|
|
3215
3215
|
Mt.extend(Zn);
|
|
3216
|
-
const Kt = qr(), Mn = Kt.sso ?? !0,
|
|
3216
|
+
const Kt = qr(), Mn = Kt.sso ?? !0, Fl = Kt.i18n ?? !0, kn = Kt.noRedireLogin ?? !1, $l = (t) => {
|
|
3217
|
+
var e, n, r;
|
|
3218
|
+
return ((e = t == null ? void 0 : t.response) == null ? void 0 : e.status) === 401 || ((r = (n = t == null ? void 0 : t.response) == null ? void 0 : n.data) == null ? void 0 : r.code) === 401;
|
|
3219
|
+
}, Dl = (t) => {
|
|
3220
|
+
t.interceptors.response.use(void 0, async (e) => {
|
|
3221
|
+
const n = e == null ? void 0 : e.config;
|
|
3222
|
+
if (!n || n.public || !$l(e) || n.skipUnauthorizedRecovery || n._unauthorizedRecoveryRetried)
|
|
3223
|
+
return Promise.reject(e);
|
|
3224
|
+
try {
|
|
3225
|
+
const r = await Nl({ error: e, config: n });
|
|
3226
|
+
return r != null && r.accessToken ? (n._unauthorizedRecoveryRetried = !0, n.headers = n.headers || {}, n.headers.Authorization = `Bearer ${r.accessToken}`, t(n)) : Promise.reject(e);
|
|
3227
|
+
} catch {
|
|
3228
|
+
return Promise.reject(e);
|
|
3229
|
+
}
|
|
3230
|
+
});
|
|
3231
|
+
}, qn = () => {
|
|
3217
3232
|
if (kn) return;
|
|
3218
3233
|
const t = "/login";
|
|
3219
3234
|
location.pathname !== t && (sessionStorage.clear(), window.__isAutoCloseApp = !1, location.replace(t));
|
|
3220
|
-
},
|
|
3235
|
+
}, Il = async (t) => {
|
|
3221
3236
|
var n;
|
|
3222
3237
|
return ((n = t.config) == null ? void 0 : n.responseType) === "blob" ? t : t.data ?? t;
|
|
3223
|
-
},
|
|
3224
|
-
var
|
|
3225
|
-
let n = ((
|
|
3238
|
+
}, Bl = async (t, e) => {
|
|
3239
|
+
var l, c, p, d, v;
|
|
3240
|
+
let n = ((l = t.response) == null ? void 0 : l.status) || 500, r = (c = t.response) == null ? void 0 : c.message, o = {};
|
|
3226
3241
|
const a = { 400: G("参数校验错误"), 404: G("接口地址未找到"), 500: G("服务器内部错误") };
|
|
3227
|
-
let i = ((
|
|
3228
|
-
|
|
3242
|
+
let i = ((p = t == null ? void 0 : t.response) == null ? void 0 : p.data) || {};
|
|
3243
|
+
const s = Jn("code") || "", u = !((e == null ? void 0 : e.noRedireLogin) ?? kn);
|
|
3244
|
+
if (!s && u && (n === 401 || (i == null ? void 0 : i.code) === 401))
|
|
3229
3245
|
Mn ? Vn({ ...Qn, redirect_uri: Kn }) : qn(), o = i;
|
|
3230
3246
|
else {
|
|
3231
3247
|
if (t.response) {
|
|
3232
|
-
if (i instanceof Blob && (i = await new Promise((
|
|
3233
|
-
const
|
|
3234
|
-
|
|
3248
|
+
if (i instanceof Blob && (i = await new Promise((y) => {
|
|
3249
|
+
const m = new FileReader();
|
|
3250
|
+
m.readAsText(i, "utf-8"), m.onload = () => {
|
|
3235
3251
|
try {
|
|
3236
|
-
|
|
3252
|
+
y(JSON.parse(m.result || "{}"));
|
|
3237
3253
|
} catch {
|
|
3238
|
-
|
|
3254
|
+
y({ code: 400, msg: G("blob解析错误") });
|
|
3239
3255
|
}
|
|
3240
3256
|
};
|
|
3241
3257
|
})), i.code) {
|
|
3242
3258
|
n = i.code;
|
|
3243
|
-
const
|
|
3244
|
-
if (
|
|
3245
|
-
const
|
|
3246
|
-
r = !(i != null && i.data) || !i.data.length ? G(
|
|
3259
|
+
const y = (e == null ? void 0 : e.i18n) ?? !0;
|
|
3260
|
+
if (Fl && y) {
|
|
3261
|
+
const m = (i == null ? void 0 : i.status) ?? "";
|
|
3262
|
+
r = !(i != null && i.data) || !i.data.length ? G(m) : G(m, ...i.data);
|
|
3247
3263
|
} else
|
|
3248
3264
|
r = (i == null ? void 0 : i.msg) ?? "";
|
|
3249
3265
|
o = i;
|
|
3250
3266
|
}
|
|
3251
3267
|
r || (r = a[t.response.status] || t.message);
|
|
3252
3268
|
} else t.request ? t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = G("网络异常,请检查您的网络情况") : t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = G("请求配置异常");
|
|
3253
|
-
e != null && e.customErrorMessage && (r = e == null ? void 0 : e.customErrorMessage(r, t)), !(e != null && e.ignoreErrorMessage) && r && ((
|
|
3269
|
+
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 }));
|
|
3254
3270
|
}
|
|
3255
3271
|
return { ...o, code: n, msg: r, error: t };
|
|
3256
3272
|
}, Qt = (t, e) => {
|
|
3257
3273
|
const n = R.create();
|
|
3258
|
-
return Wn(n, async (r) => {
|
|
3274
|
+
return Dl(n), Wn(n, async (r) => {
|
|
3259
3275
|
const o = qr();
|
|
3260
3276
|
if (r.headers || (r.headers = {}), !(r != null && r.public)) {
|
|
3261
3277
|
let l = "";
|
|
@@ -3265,7 +3281,7 @@ const Kt = qr(), Mn = Kt.sso ?? !0, Nl = Kt.i18n ?? !0, kn = Kt.noRedireLogin ??
|
|
|
3265
3281
|
}
|
|
3266
3282
|
Mn ? l || (l = await Gn(r)) : (l || (l = to()), l || qn()), l && !r.headers.Authorization && (r.headers.Authorization = `Bearer ${l}`);
|
|
3267
3283
|
}
|
|
3268
|
-
r.baseURL || (r.baseURL = o.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (l) => Tl.stringify(l, { indices: !1 }) }), r.onSuccess || (r.onSuccess =
|
|
3284
|
+
r.baseURL || (r.baseURL = o.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (l) => Tl.stringify(l, { indices: !1 }) }), r.onSuccess || (r.onSuccess = Il), r.onError || (r.onError = Bl), (r.csrf ?? !1) && (r.headers["csrf-token"] = Cl.get("csrf-token"));
|
|
3269
3285
|
const s = r.params || {};
|
|
3270
3286
|
if (s.project === void 0) {
|
|
3271
3287
|
let l = 0;
|
|
@@ -3276,11 +3292,11 @@ const Kt = qr(), Mn = Kt.sso ?? !0, Nl = Kt.i18n ?? !0, kn = Kt.noRedireLogin ??
|
|
|
3276
3292
|
const { instanceInfo: l } = eo();
|
|
3277
3293
|
l != null && l.instanceId && (s.instance = l.instanceId);
|
|
3278
3294
|
}
|
|
3279
|
-
return r.params = s, r.headers.Timezone = Mt.tz.guess(), r.headers["X-Origin"] = location.origin, r.headers["Accept-Language"] =
|
|
3295
|
+
return r.params = s, r.headers.Timezone = Mt.tz.guess(), r.headers["X-Origin"] = location.origin, r.headers["Accept-Language"] = Hn.value, r;
|
|
3280
3296
|
});
|
|
3281
|
-
}, Xt = "v1",
|
|
3297
|
+
}, Xt = "v1", uc = Qt(`/api/supply/supplier/${Xt}`), fc = Qt(`/api/supplier/${Xt}`), pc = Qt(`/api/supplier/${Xt}/classification`);
|
|
3282
3298
|
export {
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3299
|
+
uc as supplier,
|
|
3300
|
+
pc as supplierClassification,
|
|
3301
|
+
fc as supplierManage
|
|
3286
3302
|
};
|