@das-fed/utils 6.4.0-dev.54 → 6.4.0-dev.54.2

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.
Files changed (51) hide show
  1. package/api-services/index.js +22 -9
  2. package/api-services/index.js.gz +0 -0
  3. package/api-services/modules/app-manage/index.js +113 -100
  4. package/api-services/modules/app-manage/index.js.gz +0 -0
  5. package/api-services/modules/authentication/index.js +159 -146
  6. package/api-services/modules/authentication/index.js.gz +0 -0
  7. package/api-services/modules/bems/index.js +113 -100
  8. package/api-services/modules/bems/index.js.gz +0 -0
  9. package/api-services/modules/contract/index.js +159 -146
  10. package/api-services/modules/contract/index.js.gz +0 -0
  11. package/api-services/modules/duty-manage/index.js +113 -100
  12. package/api-services/modules/duty-manage/index.js.gz +0 -0
  13. package/api-services/modules/enterpriseright/index.js +159 -146
  14. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  15. package/api-services/modules/file/index.js +22 -9
  16. package/api-services/modules/file/index.js.gz +0 -0
  17. package/api-services/modules/gateway-edge/index.js +159 -146
  18. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  19. package/api-services/modules/index.js +22 -9
  20. package/api-services/modules/index.js.gz +0 -0
  21. package/api-services/modules/iot/index.js +113 -100
  22. package/api-services/modules/iot/index.js.gz +0 -0
  23. package/api-services/modules/justauth/index.js +158 -145
  24. package/api-services/modules/justauth/index.js.gz +0 -0
  25. package/api-services/modules/knowledge/index.js +113 -100
  26. package/api-services/modules/knowledge/index.js.gz +0 -0
  27. package/api-services/modules/link/index.js +113 -100
  28. package/api-services/modules/link/index.js.gz +0 -0
  29. package/api-services/modules/permission/index.js +159 -146
  30. package/api-services/modules/permission/index.js.gz +0 -0
  31. package/api-services/modules/platformManage/index.js +113 -100
  32. package/api-services/modules/platformManage/index.js.gz +0 -0
  33. package/api-services/modules/portal/index.js +159 -146
  34. package/api-services/modules/portal/index.js.gz +0 -0
  35. package/api-services/modules/space-manage/index.js +113 -100
  36. package/api-services/modules/space-manage/index.js.gz +0 -0
  37. package/api-services/modules/super-admin/index.js +158 -145
  38. package/api-services/modules/super-admin/index.js.gz +0 -0
  39. package/api-services/modules/supplier/index.js +113 -100
  40. package/api-services/modules/supplier/index.js.gz +0 -0
  41. package/api-services/modules/supplychain-manage/index.js +113 -100
  42. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  43. package/api-services/modules/systemConfiguration/index.js +159 -146
  44. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  45. package/api-services/modules/tool/index.js +159 -146
  46. package/api-services/modules/tool/index.js.gz +0 -0
  47. package/api-services/src/create-service/index.js +159 -146
  48. package/api-services/src/create-service/index.js.gz +0 -0
  49. package/create-api-service/index.js +159 -146
  50. package/create-api-service/index.js.gz +0 -0
  51. package/package.json +4 -4
@@ -3086,16 +3086,29 @@ const In = Ke(), _n = In.sso ?? !0, Bn = In.noRedireLogin ?? !1, Ln = () => {
3086
3086
  let n = ((u = t.response) == null ? void 0 : u.status) || 500, r = (l = t.response) == null ? void 0 : l.message, o = {};
3087
3087
  const a = { 400: C("参数校验错误"), 404: C("接口地址未找到"), 500: C("服务器内部错误") };
3088
3088
  let i = ((c = t == null ? void 0 : t.response) == null ? void 0 : c.data) || {};
3089
- return !(Hn("code") || "") && !Bn && (n === 401 || (i == null ? void 0 : i.code) === 401) ? (_n ? Wn({ ...Kn, redirect_uri: Gn }) : Ln(), o = i) : (t.response ? (i instanceof Blob && (i = await new Promise((g) => {
3090
- const y = new FileReader();
3091
- y.readAsText(i, "utf-8"), y.onload = () => {
3092
- try {
3093
- g(JSON.parse(y.result || "{}"));
3094
- } catch {
3095
- g({ code: 400, msg: C("blob解析错误") });
3089
+ if (!(Hn("code") || "") && !Bn && (n === 401 || (i == null ? void 0 : i.code) === 401))
3090
+ _n ? Wn({ ...Kn, redirect_uri: Gn }) : Ln(), o = i;
3091
+ else {
3092
+ if (t.response) {
3093
+ if (i instanceof Blob && (i = await new Promise((g) => {
3094
+ const y = new FileReader();
3095
+ y.readAsText(i, "utf-8"), y.onload = () => {
3096
+ try {
3097
+ g(JSON.parse(y.result || "{}"));
3098
+ } catch {
3099
+ g({ code: 400, msg: C("blob解析错误") });
3100
+ }
3101
+ };
3102
+ })), i.code) {
3103
+ n = i.code;
3104
+ const g = (i == null ? void 0 : i.status) ?? "错误提示";
3105
+ r = !(i != null && i.data) || !i.data.length ? C(g) : C(g, ...i.data), o = i;
3096
3106
  }
3097
- };
3098
- })), i.code && (n = i.code, r = C(i.status, ...i.data), o = i), r || (r = a[t.response.status] || t.message)) : t.request ? t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = C("网络异常,请检查您的网络情况") : t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = C("请求配置异常"), e != null && e.customErrorMessage && (r = e == null ? void 0 : e.customErrorMessage(r, t)), !(e != null && e.ignoreErrorMessage) && r && ((d = (p = window.DasMessage) == null ? void 0 : p.error) == null || d.call(p, { message: r, showClose: !0 }))), { ...o, code: n, msg: r, error: t };
3107
+ r || (r = a[t.response.status] || t.message);
3108
+ } else t.request ? t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = C("网络异常,请检查您的网络情况") : t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = C("请求配置异常");
3109
+ e != null && e.customErrorMessage && (r = e == null ? void 0 : e.customErrorMessage(r, t)), !(e != null && e.ignoreErrorMessage) && r && ((d = (p = window.DasMessage) == null ? void 0 : p.error) == null || d.call(p, { message: r, showClose: !0 }));
3110
+ }
3111
+ return { ...o, code: n, msg: r, error: t };
3099
3112
  }, b = (t, e) => {
3100
3113
  const n = I.create();
3101
3114
  return zn(n, async (r) => {
Binary file
@@ -1,4 +1,4 @@
1
- import { setI18nRule as bn, t as V } from "@das-fed/web/packages/i18n/index";
1
+ import { setI18nRule as bn, t as W } from "@das-fed/web/packages/i18n/index";
2
2
  import { curringHttp as wn } from "@das-fed/utils/curring-http";
3
3
  import { getToken as Sn, getQuery as En, login as An, getTokenParams as On, real_uri as Rn } from "@das-fed/utils/create-api-service/sso";
4
4
  import Ot from "dayjs";
@@ -336,11 +336,11 @@ function ze(t, e, n) {
336
336
  if (f.endsWith(m, "{}"))
337
337
  m = r ? m : m.slice(0, -2), y = JSON.stringify(y);
338
338
  else if (f.isArray(y) && vo(y) || (f.isFileList(y) || f.endsWith(m, "[]")) && (S = f.toArray(y)))
339
- return m = Ir(m), S.forEach(function(g, T) {
340
- !(f.isUndefined(g) || g === null) && e.append(
339
+ return m = Ir(m), S.forEach(function(v, T) {
340
+ !(f.isUndefined(v) || v === null) && e.append(
341
341
  // eslint-disable-next-line no-nested-ternary
342
342
  i === !0 ? kt([m], T, a) : i === null ? m : m + "[]",
343
- l(g)
343
+ l(v)
344
344
  );
345
345
  }), !1;
346
346
  }
@@ -351,7 +351,7 @@ function ze(t, e, n) {
351
351
  convertValue: l,
352
352
  isVisitable: ut
353
353
  });
354
- function v(y, m) {
354
+ function g(y, m) {
355
355
  if (!f.isUndefined(y)) {
356
356
  if (p.indexOf(y) !== -1)
357
357
  throw Error("Circular reference detected in " + m.join("."));
@@ -362,13 +362,13 @@ function ze(t, e, n) {
362
362
  f.isString(E) ? E.trim() : E,
363
363
  m,
364
364
  d
365
- )) === !0 && v(S, m ? m.concat(E) : [E]);
365
+ )) === !0 && g(S, m ? m.concat(E) : [E]);
366
366
  }), p.pop();
367
367
  }
368
368
  }
369
369
  if (!f.isObject(t))
370
370
  throw new TypeError("data must be an object");
371
- return v(t), e;
371
+ return g(t), e;
372
372
  }
373
373
  function qt(t) {
374
374
  const e = {
@@ -839,8 +839,8 @@ function ko(t, e) {
839
839
  d += n[p++], p = p % t;
840
840
  if (o = (o + 1) % t, o === a && (a = (a + 1) % t), l - i < e)
841
841
  return;
842
- const v = c && l - c;
843
- return v ? Math.round(d * 1e3 / v) : void 0;
842
+ const g = c && l - c;
843
+ return g ? Math.round(d * 1e3 / g) : void 0;
844
844
  };
845
845
  }
846
846
  function qo(t, e) {
@@ -1039,22 +1039,22 @@ const qr = (t) => {
1039
1039
  const o = qr(t);
1040
1040
  let a = o.data;
1041
1041
  const i = I.from(o.headers).normalize();
1042
- let { responseType: s, onUploadProgress: u, onDownloadProgress: l } = o, c, p, d, v, y;
1042
+ let { responseType: s, onUploadProgress: u, onDownloadProgress: l } = o, c, p, d, g, y;
1043
1043
  function m() {
1044
- v && v(), y && y(), o.cancelToken && o.cancelToken.unsubscribe(c), o.signal && o.signal.removeEventListener("abort", c);
1044
+ g && g(), y && y(), o.cancelToken && o.cancelToken.unsubscribe(c), o.signal && o.signal.removeEventListener("abort", c);
1045
1045
  }
1046
1046
  let h = new XMLHttpRequest();
1047
1047
  h.open(o.method.toUpperCase(), o.url, !0), h.timeout = o.timeout;
1048
1048
  function S() {
1049
1049
  if (!h)
1050
1050
  return;
1051
- const g = I.from(
1051
+ const v = I.from(
1052
1052
  "getAllResponseHeaders" in h && h.getAllResponseHeaders()
1053
1053
  ), A = {
1054
1054
  data: !s || s === "text" || s === "json" ? h.responseText : h.response,
1055
1055
  status: h.status,
1056
1056
  statusText: h.statusText,
1057
- headers: g,
1057
+ headers: v,
1058
1058
  config: t,
1059
1059
  request: h
1060
1060
  };
@@ -1081,8 +1081,8 @@ const qr = (t) => {
1081
1081
  )), h = null;
1082
1082
  }, a === void 0 && i.setContentType(null), "setRequestHeader" in h && f.forEach(i.toJSON(), function(T, A) {
1083
1083
  h.setRequestHeader(A, T);
1084
- }), f.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), s && s !== "json" && (h.responseType = o.responseType), l && ([d, y] = _e(l, !0), h.addEventListener("progress", d)), u && h.upload && ([p, v] = _e(u), h.upload.addEventListener("progress", p), h.upload.addEventListener("loadend", v)), (o.cancelToken || o.signal) && (c = (g) => {
1085
- h && (r(!g || g.type ? new fe(null, t, h) : g), h.abort(), h = null);
1084
+ }), f.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), s && s !== "json" && (h.responseType = o.responseType), l && ([d, y] = _e(l, !0), h.addEventListener("progress", d)), u && h.upload && ([p, g] = _e(u), h.upload.addEventListener("progress", p), h.upload.addEventListener("loadend", g)), (o.cancelToken || o.signal) && (c = (v) => {
1085
+ h && (r(!v || v.type ? new fe(null, t, h) : v), h.abort(), h = null);
1086
1086
  }, o.cancelToken && o.cancelToken.subscribe(c), o.signal && (o.signal.aborted ? c() : o.signal.addEventListener("abort", c)));
1087
1087
  const E = Mo(o.url);
1088
1088
  if (E && D.protocols.indexOf(E) === -1) {
@@ -1230,9 +1230,9 @@ const ea = async (t) => {
1230
1230
  fetchOptions: d
1231
1231
  } = qr(t);
1232
1232
  l = l ? (l + "").toLowerCase() : "text";
1233
- let v = Ko([o, a && a.toAbortSignal()], i), y;
1234
- const m = v && v.unsubscribe && (() => {
1235
- v.unsubscribe();
1233
+ let g = Ko([o, a && a.toAbortSignal()], i), y;
1234
+ const m = g && g.unsubscribe && (() => {
1235
+ g.unsubscribe();
1236
1236
  });
1237
1237
  let h;
1238
1238
  try {
@@ -1254,7 +1254,7 @@ const ea = async (t) => {
1254
1254
  const S = "credentials" in Request.prototype;
1255
1255
  y = new Request(e, {
1256
1256
  ...d,
1257
- signal: v,
1257
+ signal: g,
1258
1258
  method: n.toUpperCase(),
1259
1259
  headers: c.normalize().toJSON(),
1260
1260
  body: r,
@@ -1262,8 +1262,8 @@ const ea = async (t) => {
1262
1262
  credentials: S ? p : void 0
1263
1263
  });
1264
1264
  let E = await fetch(y);
1265
- const g = pt && (l === "stream" || l === "response");
1266
- if (pt && (s || g && m)) {
1265
+ const v = pt && (l === "stream" || l === "response");
1266
+ if (pt && (s || v && m)) {
1267
1267
  const A = {};
1268
1268
  ["status", "statusText", "headers"].forEach((U) => {
1269
1269
  A[U] = E[U];
@@ -1281,7 +1281,7 @@ const ea = async (t) => {
1281
1281
  }
1282
1282
  l = l || "text";
1283
1283
  let T = await $e[f.findKey($e, l) || "text"](E, t);
1284
- return !g && m && m(), await new Promise((A, C) => {
1284
+ return !v && m && m(), await new Promise((A, C) => {
1285
1285
  Mr(A, C, {
1286
1286
  data: T,
1287
1287
  headers: I.from(E.headers),
@@ -1406,7 +1406,7 @@ function oa(t, e, n) {
1406
1406
  const yt = {
1407
1407
  assertOptions: oa,
1408
1408
  validators: xt
1409
- }, W = yt.validators;
1409
+ }, G = yt.validators;
1410
1410
  class Z {
1411
1411
  constructor(e) {
1412
1412
  this.defaults = e, this.interceptors = {
@@ -1443,14 +1443,14 @@ class Z {
1443
1443
  typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = te(this.defaults, n);
1444
1444
  const { transitional: r, paramsSerializer: o, headers: a } = n;
1445
1445
  r !== void 0 && yt.assertOptions(r, {
1446
- silentJSONParsing: W.transitional(W.boolean),
1447
- forcedJSONParsing: W.transitional(W.boolean),
1448
- clarifyTimeoutError: W.transitional(W.boolean)
1446
+ silentJSONParsing: G.transitional(G.boolean),
1447
+ forcedJSONParsing: G.transitional(G.boolean),
1448
+ clarifyTimeoutError: G.transitional(G.boolean)
1449
1449
  }, !1), o != null && (f.isFunction(o) ? n.paramsSerializer = {
1450
1450
  serialize: o
1451
1451
  } : yt.assertOptions(o, {
1452
- encode: W.function,
1453
- serialize: W.function
1452
+ encode: G.function,
1453
+ serialize: G.function
1454
1454
  }, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1455
1455
  let i = a && f.merge(
1456
1456
  a.common,
@@ -1479,18 +1479,18 @@ class Z {
1479
1479
  return c;
1480
1480
  }
1481
1481
  d = s.length;
1482
- let v = n;
1482
+ let g = n;
1483
1483
  for (p = 0; p < d; ) {
1484
1484
  const y = s[p++], m = s[p++];
1485
1485
  try {
1486
- v = y(v);
1486
+ g = y(g);
1487
1487
  } catch (h) {
1488
1488
  m.call(this, h);
1489
1489
  break;
1490
1490
  }
1491
1491
  }
1492
1492
  try {
1493
- c = Qt.call(this, v);
1493
+ c = Qt.call(this, g);
1494
1494
  } catch (y) {
1495
1495
  return Promise.reject(y);
1496
1496
  }
@@ -1999,8 +1999,8 @@ var ka = function t(e) {
1999
1999
  var r = Ga(e), o = r.length > 0 ? r[0] : "", a = Ja("%" + o + "%", n), i = a.name, s = a.value, u = !1, l = a.alias;
2000
2000
  l && (o = l[0], ja(r, qa([0, 1], l)));
2001
2001
  for (var c = 1, p = !0; c < r.length; c += 1) {
2002
- var d = r[c], v = Ue(d, 0, 1), y = Ue(d, -1);
2003
- if ((v === '"' || v === "'" || v === "`" || y === '"' || y === "'" || y === "`") && v !== y)
2002
+ var d = r[c], g = Ue(d, 0, 1), y = Ue(d, -1);
2003
+ if ((g === '"' || g === "'" || g === "`" || y === '"' || y === "'" || y === "`") && g !== y)
2004
2004
  throw new se("property names with quotes must have matching quotes");
2005
2005
  if ((d === "constructor" || !p) && (u = !0), o += "." + d, i = "%" + o + "%", Be(ee, i))
2006
2006
  s = ee[i];
@@ -2105,9 +2105,9 @@ var Xa = Xr, Za = pe, ir = Qa, Ya = Xa(), sr = Qr, lr = Ae, ei = Za("%Math.floor
2105
2105
  t.exports = function(d) {
2106
2106
  if (typeof d != "function")
2107
2107
  throw new o("a function is required");
2108
- var v = s(e, i, arguments);
2108
+ var g = s(e, i, arguments);
2109
2109
  return r(
2110
- v,
2110
+ g,
2111
2111
  1 + l(0, d.length - (arguments.length - 1)),
2112
2112
  !0
2113
2113
  );
@@ -2125,7 +2125,7 @@ const ai = {}, ii = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
2125
2125
  __proto__: null,
2126
2126
  default: ai
2127
2127
  }, Symbol.toStringTag, { value: "Module" })), si = /* @__PURE__ */ la(ii);
2128
- var Dt = typeof Map == "function" && Map.prototype, tt = Object.getOwnPropertyDescriptor && Dt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Le = Dt && tt && typeof tt.get == "function" ? tt.get : null, cr = Dt && Map.prototype.forEach, It = typeof Set == "function" && Set.prototype, rt = Object.getOwnPropertyDescriptor && It ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Me = It && rt && typeof rt.get == "function" ? rt.get : null, ur = It && Set.prototype.forEach, li = typeof WeakMap == "function" && WeakMap.prototype, ge = li ? WeakMap.prototype.has : null, ci = typeof WeakSet == "function" && WeakSet.prototype, ve = ci ? WeakSet.prototype.has : null, ui = typeof WeakRef == "function" && WeakRef.prototype, fr = ui ? WeakRef.prototype.deref : null, fi = Boolean.prototype.valueOf, pi = Object.prototype.toString, di = Function.prototype.toString, yi = String.prototype.match, _t = String.prototype.slice, J = String.prototype.replace, hi = String.prototype.toUpperCase, pr = String.prototype.toLowerCase, en = RegExp.prototype.test, dr = Array.prototype.concat, k = Array.prototype.join, mi = Array.prototype.slice, yr = Math.floor, gt = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, nt = Object.getOwnPropertySymbols, vt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, le = typeof Symbol == "function" && typeof Symbol.iterator == "object", F = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === le || !0) ? Symbol.toStringTag : null, tn = Object.prototype.propertyIsEnumerable, hr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
2128
+ var Dt = typeof Map == "function" && Map.prototype, tt = Object.getOwnPropertyDescriptor && Dt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Le = Dt && tt && typeof tt.get == "function" ? tt.get : null, cr = Dt && Map.prototype.forEach, It = typeof Set == "function" && Set.prototype, rt = Object.getOwnPropertyDescriptor && It ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Me = It && rt && typeof rt.get == "function" ? rt.get : null, ur = It && Set.prototype.forEach, li = typeof WeakMap == "function" && WeakMap.prototype, ge = li ? WeakMap.prototype.has : null, ci = typeof WeakSet == "function" && WeakSet.prototype, ve = ci ? WeakSet.prototype.has : null, ui = typeof WeakRef == "function" && WeakRef.prototype, fr = ui ? WeakRef.prototype.deref : null, fi = Boolean.prototype.valueOf, pi = Object.prototype.toString, di = Function.prototype.toString, yi = String.prototype.match, _t = String.prototype.slice, K = String.prototype.replace, hi = String.prototype.toUpperCase, pr = String.prototype.toLowerCase, en = RegExp.prototype.test, dr = Array.prototype.concat, k = Array.prototype.join, mi = Array.prototype.slice, yr = Math.floor, gt = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, nt = Object.getOwnPropertySymbols, vt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, le = typeof Symbol == "function" && typeof Symbol.iterator == "object", F = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === le || !0) ? Symbol.toStringTag : null, tn = Object.prototype.propertyIsEnumerable, hr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
2129
2129
  return t.__proto__;
2130
2130
  } : null);
2131
2131
  function mr(t, e) {
@@ -2136,23 +2136,23 @@ function mr(t, e) {
2136
2136
  var r = t < 0 ? -yr(-t) : yr(t);
2137
2137
  if (r !== t) {
2138
2138
  var o = String(r), a = _t.call(e, o.length + 1);
2139
- return J.call(o, n, "$&_") + "." + J.call(J.call(a, /([0-9]{3})/g, "$&_"), /_$/, "");
2139
+ return K.call(o, n, "$&_") + "." + K.call(K.call(a, /([0-9]{3})/g, "$&_"), /_$/, "");
2140
2140
  }
2141
2141
  }
2142
- return J.call(e, n, "$&_");
2142
+ return K.call(e, n, "$&_");
2143
2143
  }
2144
2144
  var bt = si, gr = bt.custom, vr = nn(gr) ? gr : null, gi = function t(e, n, r, o) {
2145
2145
  var a = n || {};
2146
- if (G(a, "quoteStyle") && a.quoteStyle !== "single" && a.quoteStyle !== "double")
2146
+ if (J(a, "quoteStyle") && a.quoteStyle !== "single" && a.quoteStyle !== "double")
2147
2147
  throw new TypeError('option "quoteStyle" must be "single" or "double"');
2148
- if (G(a, "maxStringLength") && (typeof a.maxStringLength == "number" ? a.maxStringLength < 0 && a.maxStringLength !== 1 / 0 : a.maxStringLength !== null))
2148
+ if (J(a, "maxStringLength") && (typeof a.maxStringLength == "number" ? a.maxStringLength < 0 && a.maxStringLength !== 1 / 0 : a.maxStringLength !== null))
2149
2149
  throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
2150
- var i = G(a, "customInspect") ? a.customInspect : !0;
2150
+ var i = J(a, "customInspect") ? a.customInspect : !0;
2151
2151
  if (typeof i != "boolean" && i !== "symbol")
2152
2152
  throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
2153
- if (G(a, "indent") && a.indent !== null && a.indent !== " " && !(parseInt(a.indent, 10) === a.indent && a.indent > 0))
2153
+ if (J(a, "indent") && a.indent !== null && a.indent !== " " && !(parseInt(a.indent, 10) === a.indent && a.indent > 0))
2154
2154
  throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
2155
- if (G(a, "numericSeparator") && typeof a.numericSeparator != "boolean")
2155
+ if (J(a, "numericSeparator") && typeof a.numericSeparator != "boolean")
2156
2156
  throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
2157
2157
  var s = a.numericSeparator;
2158
2158
  if (typeof e > "u")
@@ -2186,16 +2186,16 @@ var bt = si, gr = bt.custom, vr = nn(gr) ? gr : null, gi = function t(e, n, r, o
2186
2186
  var ye = {
2187
2187
  depth: a.depth
2188
2188
  };
2189
- return G(a, "quoteStyle") && (ye.quoteStyle = a.quoteStyle), t($, ye, r + 1, o);
2189
+ return J(a, "quoteStyle") && (ye.quoteStyle = a.quoteStyle), t($, ye, r + 1, o);
2190
2190
  }
2191
2191
  return t($, a, r + 1, o);
2192
2192
  }
2193
2193
  if (typeof e == "function" && !br(e)) {
2194
- var v = Pi(e), y = Pe(e, d);
2195
- return "[Function" + (v ? ": " + v : " (anonymous)") + "]" + (y.length > 0 ? " { " + k.call(y, ", ") + " }" : "");
2194
+ var g = Pi(e), y = Pe(e, d);
2195
+ return "[Function" + (g ? ": " + g : " (anonymous)") + "]" + (y.length > 0 ? " { " + k.call(y, ", ") + " }" : "");
2196
2196
  }
2197
2197
  if (nn(e)) {
2198
- var m = le ? J.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : vt.call(e);
2198
+ var m = le ? K.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : vt.call(e);
2199
2199
  return typeof e == "object" && !le ? me(m) : m;
2200
2200
  }
2201
2201
  if (Di(e)) {
@@ -2206,8 +2206,8 @@ var bt = si, gr = bt.custom, vr = nn(gr) ? gr : null, gi = function t(e, n, r, o
2206
2206
  if (wt(e)) {
2207
2207
  if (e.length === 0)
2208
2208
  return "[]";
2209
- var g = Pe(e, d);
2210
- return p && !_i(g) ? "[" + St(g, p) + "]" : "[ " + k.call(g, ", ") + " ]";
2209
+ var v = Pe(e, d);
2210
+ return p && !_i(v) ? "[" + St(v, p) + "]" : "[ " + k.call(v, ", ") + " ]";
2211
2211
  }
2212
2212
  if (wi(e)) {
2213
2213
  var T = Pe(e, d);
@@ -2250,7 +2250,7 @@ var bt = si, gr = bt.custom, vr = nn(gr) ? gr : null, gi = function t(e, n, r, o
2250
2250
  if (typeof globalThis < "u" && e === globalThis || typeof Zt < "u" && e === Zt)
2251
2251
  return "{ [object globalThis] }";
2252
2252
  if (!bi(e) && !br(e)) {
2253
- var N = Pe(e, d), q = hr ? hr(e) === Object.prototype : e instanceof Object || e.constructor === Object, U = e instanceof Object ? "" : "null prototype", j = !q && F && Object(e) === e && F in e ? _t.call(K(e), 8, -1) : U ? "Object" : "", Re = q || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", re = Re + (j || U ? "[" + k.call(dr.call([], j || [], U || []), ": ") + "] " : "");
2253
+ var N = Pe(e, d), q = hr ? hr(e) === Object.prototype : e instanceof Object || e.constructor === Object, U = e instanceof Object ? "" : "null prototype", j = !q && F && Object(e) === e && F in e ? _t.call(V(e), 8, -1) : U ? "Object" : "", Re = q || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", re = Re + (j || U ? "[" + k.call(dr.call([], j || [], U || []), ": ") + "] " : "");
2254
2254
  return N.length === 0 ? re + "{}" : p ? re + "{" + St(N, p) + "}" : re + "{ " + k.call(N, ", ") + " }";
2255
2255
  }
2256
2256
  return String(e);
@@ -2260,28 +2260,28 @@ function rn(t, e, n) {
2260
2260
  return r + t + r;
2261
2261
  }
2262
2262
  function vi(t) {
2263
- return J.call(String(t), /"/g, "&quot;");
2263
+ return K.call(String(t), /"/g, "&quot;");
2264
2264
  }
2265
2265
  function wt(t) {
2266
- return K(t) === "[object Array]" && (!F || !(typeof t == "object" && F in t));
2266
+ return V(t) === "[object Array]" && (!F || !(typeof t == "object" && F in t));
2267
2267
  }
2268
2268
  function bi(t) {
2269
- return K(t) === "[object Date]" && (!F || !(typeof t == "object" && F in t));
2269
+ return V(t) === "[object Date]" && (!F || !(typeof t == "object" && F in t));
2270
2270
  }
2271
2271
  function br(t) {
2272
- return K(t) === "[object RegExp]" && (!F || !(typeof t == "object" && F in t));
2272
+ return V(t) === "[object RegExp]" && (!F || !(typeof t == "object" && F in t));
2273
2273
  }
2274
2274
  function wi(t) {
2275
- return K(t) === "[object Error]" && (!F || !(typeof t == "object" && F in t));
2275
+ return V(t) === "[object Error]" && (!F || !(typeof t == "object" && F in t));
2276
2276
  }
2277
2277
  function Si(t) {
2278
- return K(t) === "[object String]" && (!F || !(typeof t == "object" && F in t));
2278
+ return V(t) === "[object String]" && (!F || !(typeof t == "object" && F in t));
2279
2279
  }
2280
2280
  function Ei(t) {
2281
- return K(t) === "[object Number]" && (!F || !(typeof t == "object" && F in t));
2281
+ return V(t) === "[object Number]" && (!F || !(typeof t == "object" && F in t));
2282
2282
  }
2283
2283
  function Ai(t) {
2284
- return K(t) === "[object Boolean]" && (!F || !(typeof t == "object" && F in t));
2284
+ return V(t) === "[object Boolean]" && (!F || !(typeof t == "object" && F in t));
2285
2285
  }
2286
2286
  function nn(t) {
2287
2287
  if (le)
@@ -2308,10 +2308,10 @@ function Oi(t) {
2308
2308
  var Ri = Object.prototype.hasOwnProperty || function(t) {
2309
2309
  return t in this;
2310
2310
  };
2311
- function G(t, e) {
2311
+ function J(t, e) {
2312
2312
  return Ri.call(t, e);
2313
2313
  }
2314
- function K(t) {
2314
+ function V(t) {
2315
2315
  return pi.call(t);
2316
2316
  }
2317
2317
  function Pi(t) {
@@ -2405,7 +2405,7 @@ function an(t, e) {
2405
2405
  var n = t.length - e.maxStringLength, r = "... " + n + " more character" + (n > 1 ? "s" : "");
2406
2406
  return an(_t.call(t, 0, e.maxStringLength), e) + r;
2407
2407
  }
2408
- var o = J.call(J.call(t, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Ii);
2408
+ var o = K.call(K.call(t, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Ii);
2409
2409
  return rn(o, "single", e);
2410
2410
  }
2411
2411
  function Ii(t) {
@@ -2461,7 +2461,7 @@ function Pe(t, e) {
2461
2461
  if (n) {
2462
2462
  r.length = t.length;
2463
2463
  for (var o = 0; o < t.length; o++)
2464
- r[o] = G(t, o) ? e(t[o], t) : "";
2464
+ r[o] = J(t, o) ? e(t[o], t) : "";
2465
2465
  }
2466
2466
  var a = typeof nt == "function" ? nt(t) : [], i;
2467
2467
  if (le) {
@@ -2470,7 +2470,7 @@ function Pe(t, e) {
2470
2470
  i["$" + a[s]] = a[s];
2471
2471
  }
2472
2472
  for (var u in t)
2473
- G(t, u) && (n && String(Number(u)) === u && u < t.length || le && i["$" + u] instanceof Symbol || (en.call(/[^\w$]/, u) ? r.push(e(u, t) + ": " + e(t[u], t)) : r.push(u + ": " + e(t[u], t))));
2473
+ J(t, u) && (n && String(Number(u)) === u && u < t.length || le && i["$" + u] instanceof Symbol || (en.call(/[^\w$]/, u) ? r.push(e(u, t) + ": " + e(t[u], t)) : r.push(u + ": " + e(t[u], t))));
2474
2474
  if (typeof nt == "function")
2475
2475
  for (var l = 0; l < a.length; l++)
2476
2476
  tn.call(t, a[l]) && r.push("[" + e(a[l]) + "]: " + e(t[a[l]], t));
@@ -2602,8 +2602,8 @@ var sn = pe, de = oi, Bi = gi, Ui = Ae, Te = sn("%WeakMap%", !0), xe = sn("%Map%
2602
2602
  return e;
2603
2603
  var i = e;
2604
2604
  if (typeof e == "symbol" ? i = Symbol.prototype.toString.call(e) : typeof e != "string" && (i = String(e)), r === "iso-8859-1")
2605
- return escape(i).replace(/%u[0-9a-f]{4}/gi, function(v) {
2606
- return "%26%23" + parseInt(v.slice(2), 16) + "%3B";
2605
+ return escape(i).replace(/%u[0-9a-f]{4}/gi, function(g) {
2606
+ return "%26%23" + parseInt(g.slice(2), 16) + "%3B";
2607
2607
  });
2608
2608
  for (var s = "", u = 0; u < i.length; u += st) {
2609
2609
  for (var l = i.length >= st ? i.slice(u, u + st) : i, c = [], p = 0; p < l.length; ++p) {
@@ -2696,8 +2696,8 @@ var sn = pe, de = oi, Bi = gi, Ui = Ae, Te = sn("%WeakMap%", !0), xe = sn("%Map%
2696
2696
  strictNullHandling: !1
2697
2697
  }, us = function(e) {
2698
2698
  return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
2699
- }, lt = {}, fs = function t(e, n, r, o, a, i, s, u, l, c, p, d, v, y, m, h, S, E) {
2700
- for (var g = e, T = E, A = 0, C = !1; (T = T.get(lt)) !== void 0 && !C; ) {
2699
+ }, lt = {}, fs = function t(e, n, r, o, a, i, s, u, l, c, p, d, g, y, m, h, S, E) {
2700
+ for (var v = e, T = E, A = 0, C = !1; (T = T.get(lt)) !== void 0 && !C; ) {
2701
2701
  var N = T.get(e);
2702
2702
  if (A += 1, typeof N < "u") {
2703
2703
  if (N === A)
@@ -2706,39 +2706,39 @@ var sn = pe, de = oi, Bi = gi, Ui = Ae, Te = sn("%WeakMap%", !0), xe = sn("%Map%
2706
2706
  }
2707
2707
  typeof T.get(lt) > "u" && (A = 0);
2708
2708
  }
2709
- if (typeof c == "function" ? g = c(n, g) : g instanceof Date ? g = v(g) : r === "comma" && M(g) && (g = Ie.maybeMap(g, function(Ge) {
2710
- return Ge instanceof Date ? v(Ge) : Ge;
2711
- })), g === null) {
2709
+ if (typeof c == "function" ? v = c(n, v) : v instanceof Date ? v = g(v) : r === "comma" && M(v) && (v = Ie.maybeMap(v, function(Ge) {
2710
+ return Ge instanceof Date ? g(Ge) : Ge;
2711
+ })), v === null) {
2712
2712
  if (i)
2713
2713
  return l && !h ? l(n, P.encoder, S, "key", y) : n;
2714
- g = "";
2714
+ v = "";
2715
2715
  }
2716
- if (us(g) || Ie.isBuffer(g)) {
2716
+ if (us(v) || Ie.isBuffer(v)) {
2717
2717
  if (l) {
2718
2718
  var q = h ? n : l(n, P.encoder, S, "key", y);
2719
- return [m(q) + "=" + m(l(g, P.encoder, S, "value", y))];
2719
+ return [m(q) + "=" + m(l(v, P.encoder, S, "value", y))];
2720
2720
  }
2721
- return [m(n) + "=" + m(String(g))];
2721
+ return [m(n) + "=" + m(String(v))];
2722
2722
  }
2723
2723
  var U = [];
2724
- if (typeof g > "u")
2724
+ if (typeof v > "u")
2725
2725
  return U;
2726
2726
  var j;
2727
- if (r === "comma" && M(g))
2728
- h && l && (g = Ie.maybeMap(g, l)), j = [{ value: g.length > 0 ? g.join(",") || null : void 0 }];
2727
+ if (r === "comma" && M(v))
2728
+ h && l && (v = Ie.maybeMap(v, l)), j = [{ value: v.length > 0 ? v.join(",") || null : void 0 }];
2729
2729
  else if (M(c))
2730
2730
  j = c;
2731
2731
  else {
2732
- var Re = Object.keys(g);
2732
+ var Re = Object.keys(v);
2733
2733
  j = p ? Re.sort(p) : Re;
2734
2734
  }
2735
- var re = u ? n.replace(/\./g, "%2E") : n, $ = o && M(g) && g.length === 1 ? re + "[]" : re;
2736
- if (a && M(g) && g.length === 0)
2735
+ var re = u ? n.replace(/\./g, "%2E") : n, $ = o && M(v) && v.length === 1 ? re + "[]" : re;
2736
+ if (a && M(v) && v.length === 0)
2737
2737
  return $ + "[]";
2738
2738
  for (var z = 0; z < j.length; ++z) {
2739
- var H = j[z], ye = typeof H == "object" && typeof H.value < "u" ? H.value : g[H];
2739
+ var H = j[z], ye = typeof H == "object" && typeof H.value < "u" ? H.value : v[H];
2740
2740
  if (!(s && ye === null)) {
2741
- var We = d && u ? H.replace(/\./g, "%2E") : H, vn = M(g) ? typeof r == "function" ? r($, We) : $ : $ + (d ? "." + We : "[" + We + "]");
2741
+ var We = d && u ? H.replace(/\./g, "%2E") : H, vn = M(v) ? typeof r == "function" ? r($, We) : $ : $ + (d ? "." + We : "[" + We + "]");
2742
2742
  E.set(e, A);
2743
2743
  var Ut = un();
2744
2744
  Ut.set(lt, E), pn(U, t(
@@ -2750,11 +2750,11 @@ var sn = pe, de = oi, Bi = gi, Ui = Ae, Te = sn("%WeakMap%", !0), xe = sn("%Map%
2750
2750
  i,
2751
2751
  s,
2752
2752
  u,
2753
- r === "comma" && h && M(g) ? null : l,
2753
+ r === "comma" && h && M(v) ? null : l,
2754
2754
  c,
2755
2755
  p,
2756
2756
  d,
2757
- v,
2757
+ g,
2758
2758
  y,
2759
2759
  m,
2760
2760
  h,
@@ -2840,8 +2840,8 @@ var sn = pe, de = oi, Bi = gi, Ui = Ae, Te = sn("%WeakMap%", !0), xe = sn("%Map%
2840
2840
  l
2841
2841
  ));
2842
2842
  }
2843
- var d = i.join(r.delimiter), v = r.addQueryPrefix === !0 ? "?" : "";
2844
- return r.charsetSentinel && (r.charset === "iso-8859-1" ? v += "utf8=%26%2310003%3B&" : v += "utf8=%E2%9C%93&"), d.length > 0 ? v + d : "";
2843
+ var d = i.join(r.delimiter), g = r.addQueryPrefix === !0 ? "?" : "";
2844
+ return r.charsetSentinel && (r.charset === "iso-8859-1" ? g += "utf8=%26%2310003%3B&" : g += "utf8=%E2%9C%93&"), d.length > 0 ? g + d : "";
2845
2845
  }, ce = cn, Et = Object.prototype.hasOwnProperty, ys = Array.isArray, O = {
2846
2846
  allowDots: !1,
2847
2847
  allowEmptyArrays: !1,
@@ -2878,15 +2878,15 @@ var sn = pe, de = oi, Bi = gi, Ui = Ae, Te = sn("%WeakMap%", !0), xe = sn("%Map%
2878
2878
  i[u].indexOf("utf8=") === 0 && (i[u] === gs ? l = "utf-8" : i[u] === ms && (l = "iso-8859-1"), s = u, u = i.length);
2879
2879
  for (u = 0; u < i.length; ++u)
2880
2880
  if (u !== s) {
2881
- var c = i[u], p = c.indexOf("]="), d = p === -1 ? c.indexOf("=") : p + 1, v, y;
2882
- 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 = ce.maybeMap(
2881
+ var c = i[u], p = c.indexOf("]="), d = p === -1 ? c.indexOf("=") : p + 1, g, y;
2882
+ d === -1 ? (g = n.decoder(c, O.decoder, l, "key"), y = n.strictNullHandling ? null : "") : (g = n.decoder(c.slice(0, d), O.decoder, l, "key"), y = ce.maybeMap(
2883
2883
  dn(c.slice(d + 1), n),
2884
2884
  function(h) {
2885
2885
  return n.decoder(h, O.decoder, l, "value");
2886
2886
  }
2887
2887
  )), y && n.interpretNumericEntities && l === "iso-8859-1" && (y = hs(y)), c.indexOf("[]=") > -1 && (y = ys(y) ? [y] : y);
2888
- var m = Et.call(r, v);
2889
- m && n.duplicates === "combine" ? r[v] = ce.combine(r[v], y) : (!m || n.duplicates === "last") && (r[v] = y);
2888
+ var m = Et.call(r, g);
2889
+ m && n.duplicates === "combine" ? r[g] = ce.combine(r[g], y) : (!m || n.duplicates === "last") && (r[g] = y);
2890
2890
  }
2891
2891
  return r;
2892
2892
  }, bs = function(t, e, n, r) {
@@ -3068,18 +3068,31 @@ const yn = Er(), hn = yn.sso ?? !0, mn = yn.noRedireLogin ?? !1, gn = () => {
3068
3068
  }, Ds = async (t, e) => {
3069
3069
  var u, l, c, p, d;
3070
3070
  let n = ((u = t.response) == null ? void 0 : u.status) || 500, r = (l = t.response) == null ? void 0 : l.message, o = {};
3071
- const a = { 400: V("参数校验错误"), 404: V("接口地址未找到"), 500: V("服务器内部错误") };
3071
+ const a = { 400: W("参数校验错误"), 404: W("接口地址未找到"), 500: W("服务器内部错误") };
3072
3072
  let i = ((c = t == null ? void 0 : t.response) == null ? void 0 : c.data) || {};
3073
- return !(En("code") || "") && !mn && (n === 401 || (i == null ? void 0 : i.code) === 401) ? (hn ? An({ ...On, redirect_uri: Rn }) : gn(), o = i) : (t.response ? (i instanceof Blob && (i = await new Promise((v) => {
3074
- const y = new FileReader();
3075
- y.readAsText(i, "utf-8"), y.onload = () => {
3076
- try {
3077
- v(JSON.parse(y.result || "{}"));
3078
- } catch {
3079
- v({ code: 400, msg: V("blob解析错误") });
3073
+ if (!(En("code") || "") && !mn && (n === 401 || (i == null ? void 0 : i.code) === 401))
3074
+ hn ? An({ ...On, redirect_uri: Rn }) : gn(), o = i;
3075
+ else {
3076
+ if (t.response) {
3077
+ if (i instanceof Blob && (i = await new Promise((g) => {
3078
+ const y = new FileReader();
3079
+ y.readAsText(i, "utf-8"), y.onload = () => {
3080
+ try {
3081
+ g(JSON.parse(y.result || "{}"));
3082
+ } catch {
3083
+ g({ code: 400, msg: W("blob解析错误") });
3084
+ }
3085
+ };
3086
+ })), i.code) {
3087
+ n = i.code;
3088
+ const g = (i == null ? void 0 : i.status) ?? "错误提示";
3089
+ r = !(i != null && i.data) || !i.data.length ? W(g) : W(g, ...i.data), o = i;
3080
3090
  }
3081
- };
3082
- })), i.code && (n = i.code, r = V(i.status, ...i.data), o = i), r || (r = a[t.response.status] || t.message)) : t.request ? t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = V("网络异常,请检查您的网络情况") : t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = V("请求配置异常"), e != null && e.customErrorMessage && (r = e == null ? void 0 : e.customErrorMessage(r, t)), !(e != null && e.ignoreErrorMessage) && r && ((d = (p = window.DasMessage) == null ? void 0 : p.error) == null || d.call(p, { message: r, showClose: !0 }))), { ...o, code: n, msg: r, error: t };
3091
+ r || (r = a[t.response.status] || t.message);
3092
+ } else t.request ? t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = W("网络异常,请检查您的网络情况") : t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = W("请求配置异常");
3093
+ e != null && e.customErrorMessage && (r = e == null ? void 0 : e.customErrorMessage(r, t)), !(e != null && e.ignoreErrorMessage) && r && ((d = (p = window.DasMessage) == null ? void 0 : p.error) == null || d.call(p, { message: r, showClose: !0 }));
3094
+ }
3095
+ return { ...o, code: n, msg: r, error: t };
3083
3096
  }, Is = (t, e) => {
3084
3097
  const n = R.create();
3085
3098
  return wn(n, async (r) => {