@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.
Files changed (61) hide show
  1. package/api-services/index.js +1034 -1035
  2. package/api-services/index.js.gz +0 -0
  3. package/api-services/modules/app-manage/index.js +786 -766
  4. package/api-services/modules/app-manage/index.js.gz +0 -0
  5. package/api-services/modules/authentication/index.js +851 -853
  6. package/api-services/modules/authentication/index.js.gz +0 -0
  7. package/api-services/modules/bems/index.js +204 -188
  8. package/api-services/modules/bems/index.js.gz +0 -0
  9. package/api-services/modules/contract/index.js +851 -853
  10. package/api-services/modules/contract/index.js.gz +0 -0
  11. package/api-services/modules/duty-manage/index.js +856 -858
  12. package/api-services/modules/duty-manage/index.js.gz +0 -0
  13. package/api-services/modules/enterpriseright/index.js +780 -768
  14. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  15. package/api-services/modules/file/index.js +178 -162
  16. package/api-services/modules/file/index.js.gz +0 -0
  17. package/api-services/modules/gateway-edge/index.js +192 -176
  18. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  19. package/api-services/modules/index.js +643 -626
  20. package/api-services/modules/index.js.gz +0 -0
  21. package/api-services/modules/iot/index.js +1100 -1102
  22. package/api-services/modules/iot/index.js.gz +0 -0
  23. package/api-services/modules/justauth/index.d.ts +1 -1
  24. package/api-services/modules/justauth/index.js +758 -723
  25. package/api-services/modules/justauth/index.js.gz +0 -0
  26. package/api-services/modules/knowledge/index.js +755 -721
  27. package/api-services/modules/knowledge/index.js.gz +0 -0
  28. package/api-services/modules/link/index.js +851 -853
  29. package/api-services/modules/link/index.js.gz +0 -0
  30. package/api-services/modules/permission/index.js +851 -853
  31. package/api-services/modules/permission/index.js.gz +0 -0
  32. package/api-services/modules/platformManage/index.js +276 -260
  33. package/api-services/modules/platformManage/index.js.gz +0 -0
  34. package/api-services/modules/portal/index.js +851 -853
  35. package/api-services/modules/portal/index.js.gz +0 -0
  36. package/api-services/modules/space-manage/index.js +755 -721
  37. package/api-services/modules/space-manage/index.js.gz +0 -0
  38. package/api-services/modules/super-admin/index.js +207 -191
  39. package/api-services/modules/super-admin/index.js.gz +0 -0
  40. package/api-services/modules/supplier/index.js +199 -183
  41. package/api-services/modules/supplier/index.js.gz +0 -0
  42. package/api-services/modules/supplychain-manage/index.js +192 -176
  43. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  44. package/api-services/modules/systemConfiguration/index.js +192 -176
  45. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  46. package/api-services/modules/tool/index.js +720 -708
  47. package/api-services/modules/tool/index.js.gz +0 -0
  48. package/api-services/src/create-service/index.js +848 -846
  49. package/api-services/src/create-service/index.js.gz +0 -0
  50. package/create-api-service/index.js +308 -292
  51. package/create-api-service/index.js.gz +0 -0
  52. package/create-api-service/sso/index.js +533 -498
  53. package/create-api-service/sso/index.js.gz +0 -0
  54. package/create-api-service/thirdLogout/index.d.ts +19 -0
  55. package/create-api-service/thirdLogout/index.js +1834 -0
  56. package/create-api-service/thirdLogout/index.js.gz +0 -0
  57. package/create-api-service/unauthorized-recovery/index.d.ts +30 -0
  58. package/create-api-service/unauthorized-recovery/index.js +10 -0
  59. package/curring-http/type.d.ts +93 -87
  60. package/esm-map.json +8 -1
  61. package/package.json +4 -4
@@ -26,7 +26,7 @@ function wo(t) {
26
26
  let e;
27
27
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && nn(t.buffer), e;
28
28
  }
29
- const bo = at("string"), j = at("function"), on = at("number"), Ne = (t) => t !== null && typeof t == "object", So = (t) => t === !0 || t === !1, He = (t) => {
29
+ const bo = at("string"), j = at("function"), on = at("number"), Ne = (t) => t !== null && typeof t == "object", So = (t) => t === !0 || t === !1, ze = (t) => {
30
30
  if (ot(t) !== "object")
31
31
  return !1;
32
32
  const e = Yt(t);
@@ -75,7 +75,7 @@ const le = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typ
75
75
  function Bt() {
76
76
  const { caseless: t } = sn(this) && this || {}, e = {}, n = (r, o) => {
77
77
  const a = t && an(e, o) || o;
78
- He(e[a]) && He(r) ? e[a] = Bt(e[a], r) : He(r) ? e[a] = Bt({}, r) : be(r) ? e[a] = r.slice() : e[a] = r;
78
+ ze(e[a]) && ze(r) ? e[a] = Bt(e[a], r) : ze(r) ? e[a] = Bt({}, r) : be(r) ? e[a] = r.slice() : e[a] = r;
79
79
  };
80
80
  for (let r = 0, o = arguments.length; r < o; r++)
81
81
  arguments[r] && Fe(arguments[r], n);
@@ -83,7 +83,7 @@ function Bt() {
83
83
  }
84
84
  const Io = (t, e, n, { allOwnKeys: r } = {}) => (Fe(e, (o, a) => {
85
85
  n && j(o) ? t[a] = tn(o, n) : t[a] = o;
86
- }, { allOwnKeys: r }), t), Lo = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), Uo = (t, e, n, r) => {
86
+ }, { allOwnKeys: r }), t), Uo = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), Lo = (t, e, n, r) => {
87
87
  t.prototype = Object.create(e.prototype, r), t.prototype.constructor = t, Object.defineProperty(t, "super", {
88
88
  value: e.prototype
89
89
  }), n && Object.assign(t.prototype, n);
@@ -117,13 +117,13 @@ const Io = (t, e, n, { allOwnKeys: r } = {}) => (Fe(e, (o, a) => {
117
117
  const a = o.value;
118
118
  e.call(t, a[0], a[1]);
119
119
  }
120
- }, Ho = (t, e) => {
120
+ }, zo = (t, e) => {
121
121
  let n;
122
122
  const r = [];
123
123
  for (; (n = t.exec(e)) !== null; )
124
124
  r.push(n);
125
125
  return r;
126
- }, zo = Q("HTMLFormElement"), Wo = (t) => t.toLowerCase().replace(
126
+ }, Ho = Q("HTMLFormElement"), Wo = (t) => t.toLowerCase().replace(
127
127
  /[-_\s]([a-z\d])(\w*)/g,
128
128
  function(n, r, o) {
129
129
  return r.toUpperCase() + o;
@@ -197,7 +197,7 @@ const Yo = (t) => {
197
197
  isNumber: on,
198
198
  isBoolean: So,
199
199
  isObject: Ne,
200
- isPlainObject: He,
200
+ isPlainObject: ze,
201
201
  isEmptyObject: Eo,
202
202
  isReadableStream: $o,
203
203
  isRequest: _o,
@@ -217,16 +217,16 @@ const Yo = (t) => {
217
217
  merge: Bt,
218
218
  extend: Io,
219
219
  trim: Do,
220
- stripBOM: Lo,
221
- inherits: Uo,
220
+ stripBOM: Uo,
221
+ inherits: Lo,
222
222
  toFlatObject: Mo,
223
223
  kindOf: ot,
224
224
  kindOfTest: Q,
225
225
  endsWith: Bo,
226
226
  toArray: ko,
227
227
  forEachEntry: qo,
228
- matchAll: Ho,
229
- isHTMLForm: zo,
228
+ matchAll: zo,
229
+ isHTMLForm: Ho,
230
230
  hasOwnProperty: pr,
231
231
  hasOwnProp: pr,
232
232
  // an alias to avoid ESLint no-prototype-builtins detection
@@ -646,8 +646,8 @@ const wa = f.toObjectSet([
646
646
  function Ae(t) {
647
647
  return t && String(t).trim().toLowerCase();
648
648
  }
649
- function ze(t) {
650
- return t === !1 || t == null ? t : f.isArray(t) ? t.map(ze) : String(t);
649
+ function He(t) {
650
+ return t === !1 || t == null ? t : f.isArray(t) ? t.map(He) : String(t);
651
651
  }
652
652
  function Sa(t) {
653
653
  const e = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
@@ -692,7 +692,7 @@ let q = class {
692
692
  if (!c)
693
693
  throw new Error("header name must be a non-empty string");
694
694
  const p = f.findKey(o, c);
695
- (!p || o[p] === void 0 || l === !0 || l === void 0 && o[p] !== !1) && (o[p || u] = ze(s));
695
+ (!p || o[p] === void 0 || l === !0 || l === void 0 && o[p] !== !1) && (o[p || u] = He(s));
696
696
  }
697
697
  const i = (s, u) => f.forEach(s, (l, c) => a(l, c, u));
698
698
  if (f.isPlainObject(e) || e instanceof this.constructor)
@@ -760,11 +760,11 @@ let q = class {
760
760
  return f.forEach(this, (o, a) => {
761
761
  const i = f.findKey(r, a);
762
762
  if (i) {
763
- n[i] = ze(o), delete n[a];
763
+ n[i] = He(o), delete n[a];
764
764
  return;
765
765
  }
766
766
  const s = e ? Aa(a) : String(a).trim();
767
- s !== a && delete n[a], n[s] = ze(o), r[s] = !0;
767
+ s !== a && delete n[a], n[s] = He(o), r[s] = !0;
768
768
  }), this;
769
769
  }
770
770
  concat(...e) {
@@ -1052,10 +1052,10 @@ const bn = (t) => {
1052
1052
  config: t,
1053
1053
  request: h
1054
1054
  };
1055
- vn(function(U) {
1056
- n(U), m();
1057
- }, function(U) {
1058
- r(U), m();
1055
+ vn(function(L) {
1056
+ n(L), m();
1057
+ }, function(L) {
1058
+ r(L), m();
1059
1059
  }, x), h = null;
1060
1060
  }
1061
1061
  "onloadend" in h ? h.onloadend = E : h.onreadystatechange = function() {
@@ -1117,10 +1117,10 @@ const bn = (t) => {
1117
1117
  let r = 0, o;
1118
1118
  for (; r < n; )
1119
1119
  o = r + e, yield t.slice(r, o), r = o;
1120
- }, La = async function* (t, e) {
1121
- for await (const n of Ua(t))
1120
+ }, Ua = async function* (t, e) {
1121
+ for await (const n of La(t))
1122
1122
  yield* Ia(n, e);
1123
- }, Ua = async function* (t) {
1123
+ }, La = async function* (t) {
1124
1124
  if (t[Symbol.asyncIterator]) {
1125
1125
  yield* t;
1126
1126
  return;
@@ -1137,7 +1137,7 @@ const bn = (t) => {
1137
1137
  await e.cancel();
1138
1138
  }
1139
1139
  }, br = (t, e, n, r) => {
1140
- const o = La(t, e);
1140
+ const o = Ua(t, e);
1141
1141
  let a = 0, i, s = (u) => {
1142
1142
  i || (i = !0, r && r(u));
1143
1143
  };
@@ -1235,13 +1235,13 @@ const ka = async (t) => {
1235
1235
  method: "POST",
1236
1236
  body: r,
1237
1237
  duplex: "half"
1238
- }), L;
1239
- if (f.isFormData(r) && (L = x.headers.get("content-type")) && c.setContentType(L), x.body) {
1240
- const [U, z] = gr(
1238
+ }), U;
1239
+ if (f.isFormData(r) && (U = x.headers.get("content-type")) && c.setContentType(U), x.body) {
1240
+ const [L, H] = gr(
1241
1241
  h,
1242
1242
  Qe(vr(u))
1243
1243
  );
1244
- r = br(x.body, Sr, U, z);
1244
+ r = br(x.body, Sr, L, H);
1245
1245
  }
1246
1246
  }
1247
1247
  f.isString(p) || (p = p ? "include" : "omit");
@@ -1262,21 +1262,21 @@ const ka = async (t) => {
1262
1262
  ["status", "statusText", "headers"].forEach((G) => {
1263
1263
  x[G] = R[G];
1264
1264
  });
1265
- const L = f.toFiniteNumber(R.headers.get("content-length")), [U, z] = s && gr(
1266
- L,
1265
+ const U = f.toFiniteNumber(R.headers.get("content-length")), [L, H] = s && gr(
1266
+ U,
1267
1267
  Qe(vr(s), !0)
1268
1268
  ) || [];
1269
1269
  R = new Response(
1270
- br(R.body, Sr, U, () => {
1271
- z && z(), m && m();
1270
+ br(R.body, Sr, L, () => {
1271
+ H && H(), m && m();
1272
1272
  }),
1273
1273
  x
1274
1274
  );
1275
1275
  }
1276
1276
  l = l || "text";
1277
1277
  let F = await Xe[f.findKey(Xe, l) || "text"](R, t);
1278
- return !v && m && m(), await new Promise((x, L) => {
1279
- vn(x, L, {
1278
+ return !v && m && m(), await new Promise((x, U) => {
1279
+ vn(x, U, {
1280
1280
  data: F,
1281
1281
  headers: q.from(R.headers),
1282
1282
  status: R.status,
@@ -1293,12 +1293,12 @@ const ka = async (t) => {
1293
1293
  }
1294
1294
  ) : b.from(E, E && E.code, t, y);
1295
1295
  }
1296
- }), Ht = {
1296
+ }), zt = {
1297
1297
  http: na,
1298
1298
  xhr: Fa,
1299
1299
  fetch: qa
1300
1300
  };
1301
- f.forEach(Ht, (t, e) => {
1301
+ f.forEach(zt, (t, e) => {
1302
1302
  if (t) {
1303
1303
  try {
1304
1304
  Object.defineProperty(t, "name", { value: e });
@@ -1307,7 +1307,7 @@ f.forEach(Ht, (t, e) => {
1307
1307
  Object.defineProperty(t, "adapterName", { value: e });
1308
1308
  }
1309
1309
  });
1310
- const Er = (t) => `- ${t}`, Ha = (t) => f.isFunction(t) || t === null || t === !1, An = {
1310
+ const Er = (t) => `- ${t}`, za = (t) => f.isFunction(t) || t === null || t === !1, An = {
1311
1311
  getAdapter: (t) => {
1312
1312
  t = f.isArray(t) ? t : [t];
1313
1313
  const { length: e } = t;
@@ -1316,7 +1316,7 @@ const Er = (t) => `- ${t}`, Ha = (t) => f.isFunction(t) || t === null || t === !
1316
1316
  for (let a = 0; a < e; a++) {
1317
1317
  n = t[a];
1318
1318
  let i;
1319
- if (r = n, !Ha(n) && (r = Ht[(i = String(n)).toLowerCase()], r === void 0))
1319
+ if (r = n, !za(n) && (r = zt[(i = String(n)).toLowerCase()], r === void 0))
1320
1320
  throw new b(`Unknown adapter '${i}'`);
1321
1321
  if (r)
1322
1322
  break;
@@ -1336,7 +1336,7 @@ const Er = (t) => `- ${t}`, Ha = (t) => f.isFunction(t) || t === null || t === !
1336
1336
  }
1337
1337
  return r;
1338
1338
  },
1339
- adapters: Ht
1339
+ adapters: zt
1340
1340
  };
1341
1341
  function gt(t) {
1342
1342
  if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
@@ -1383,7 +1383,7 @@ lt.transitional = function(e, n, r) {
1383
1383
  lt.spelling = function(e) {
1384
1384
  return (n, r) => !0;
1385
1385
  };
1386
- function za(t, e, n) {
1386
+ function Ha(t, e, n) {
1387
1387
  if (typeof t != "object")
1388
1388
  throw new b("options must be an object", b.ERR_BAD_OPTION_VALUE);
1389
1389
  const r = Object.keys(t);
@@ -1401,7 +1401,7 @@ function za(t, e, n) {
1401
1401
  }
1402
1402
  }
1403
1403
  const We = {
1404
- assertOptions: za,
1404
+ assertOptions: Ha,
1405
1405
  validators: lt
1406
1406
  }, Z = We.validators;
1407
1407
  let ce = class {
@@ -1609,7 +1609,7 @@ function Ka(t) {
1609
1609
  function Ga(t) {
1610
1610
  return f.isObject(t) && t.isAxiosError === !0;
1611
1611
  }
1612
- const zt = {
1612
+ const Ht = {
1613
1613
  Continue: 100,
1614
1614
  SwitchingProtocols: 101,
1615
1615
  Processing: 102,
@@ -1674,8 +1674,8 @@ const zt = {
1674
1674
  NotExtended: 510,
1675
1675
  NetworkAuthenticationRequired: 511
1676
1676
  };
1677
- Object.entries(zt).forEach(([t, e]) => {
1678
- zt[e] = t;
1677
+ Object.entries(Ht).forEach(([t, e]) => {
1678
+ Ht[e] = t;
1679
1679
  });
1680
1680
  function Pn(t) {
1681
1681
  const e = new ce(t), n = tn(ce.prototype.request, e);
@@ -1701,25 +1701,25 @@ N.mergeConfig = fe;
1701
1701
  N.AxiosHeaders = q;
1702
1702
  N.formToJSON = (t) => mn(f.isHTMLForm(t) ? new FormData(t) : t);
1703
1703
  N.getAdapter = An.getAdapter;
1704
- N.HttpStatusCode = zt;
1704
+ N.HttpStatusCode = Ht;
1705
1705
  N.default = N;
1706
1706
  const {
1707
- Axios: mc,
1708
- AxiosError: gc,
1709
- CanceledError: vc,
1710
- isCancel: wc,
1711
- CancelToken: bc,
1712
- VERSION: Sc,
1713
- all: Ec,
1714
- Cancel: Ac,
1715
- isAxiosError: Oc,
1716
- spread: Rc,
1717
- toFormData: Pc,
1718
- AxiosHeaders: xc,
1719
- HttpStatusCode: Tc,
1720
- formToJSON: Cc,
1721
- getAdapter: $c,
1722
- mergeConfig: _c
1707
+ Axios: wc,
1708
+ AxiosError: bc,
1709
+ CanceledError: Sc,
1710
+ isCancel: Ec,
1711
+ CancelToken: Ac,
1712
+ VERSION: Oc,
1713
+ all: Rc,
1714
+ Cancel: Pc,
1715
+ isAxiosError: xc,
1716
+ spread: Tc,
1717
+ toFormData: Cc,
1718
+ AxiosHeaders: $c,
1719
+ HttpStatusCode: _c,
1720
+ formToJSON: Nc,
1721
+ getAdapter: Fc,
1722
+ mergeConfig: Dc
1723
1723
  } = N;
1724
1724
  var Rr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1725
1725
  function Ja(t) {
@@ -1815,14 +1815,14 @@ var Gt = Ya, Dr = Gt.custom, Ir = _n(Dr) ? Dr : null, Cn = {
1815
1815
  return "[Circular]";
1816
1816
  function d(P, _, w) {
1817
1817
  if (_ && (o = si.call(o), o.push(_)), w) {
1818
- var H = {
1818
+ var z = {
1819
1819
  depth: a.depth
1820
1820
  };
1821
- return ne(a, "quoteStyle") && (H.quoteStyle = a.quoteStyle), t(P, H, r + 1, o);
1821
+ return ne(a, "quoteStyle") && (z.quoteStyle = a.quoteStyle), t(P, z, r + 1, o);
1822
1822
  }
1823
1823
  return t(P, a, r + 1, o);
1824
1824
  }
1825
- if (typeof e == "function" && !Lr(e)) {
1825
+ if (typeof e == "function" && !Ur(e)) {
1826
1826
  var g = gi(e), y = ke(e, d);
1827
1827
  return "[Function" + (g ? ": " + g : " (anonymous)") + "]" + (y.length > 0 ? " { " + re.call(y, ", ") + " }" : "");
1828
1828
  }
@@ -1855,13 +1855,13 @@ var Gt = Ya, Dr = Gt.custom, Ir = _n(Dr) ? Dr : null, Cn = {
1855
1855
  var x = [];
1856
1856
  return Pr && Pr.call(e, function(P, _) {
1857
1857
  x.push(d(_, e, !0) + " => " + d(P, e));
1858
- }), Ur("Map", Ye.call(e), x, p);
1858
+ }), Lr("Map", Ye.call(e), x, p);
1859
1859
  }
1860
1860
  if (Si(e)) {
1861
- var L = [];
1861
+ var U = [];
1862
1862
  return xr && xr.call(e, function(P) {
1863
- L.push(d(P, e));
1864
- }), Ur("Set", Ze.call(e), L, p);
1863
+ U.push(d(P, e));
1864
+ }), Lr("Set", Ze.call(e), U, p);
1865
1865
  }
1866
1866
  if (wi(e))
1867
1867
  return St("WeakMap");
@@ -1881,9 +1881,9 @@ var Gt = Ya, Dr = Gt.custom, Ir = _n(Dr) ? Dr : null, Cn = {
1881
1881
  return "{ [object Window] }";
1882
1882
  if (typeof globalThis < "u" && e === globalThis || typeof Rr < "u" && e === Rr)
1883
1883
  return "{ [object globalThis] }";
1884
- if (!ui(e) && !Lr(e)) {
1885
- var U = ke(e, d), z = Nr ? Nr(e) === Object.prototype : e instanceof Object || e.constructor === Object, G = e instanceof Object ? "" : "null prototype", S = !z && xe && Object(e) === e && xe in e ? nr.call(ie(e), 8, -1) : G ? "Object" : "", O = z || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", T = O + (S || G ? "[" + re.call($r.call([], S || [], G || []), ": ") + "] " : "");
1886
- return U.length === 0 ? T + "{}" : p ? T + "{" + Vt(U, p) + "}" : T + "{ " + re.call(U, ", ") + " }";
1884
+ if (!ui(e) && !Ur(e)) {
1885
+ var L = ke(e, d), H = Nr ? Nr(e) === Object.prototype : e instanceof Object || e.constructor === Object, G = e instanceof Object ? "" : "null prototype", S = !H && xe && Object(e) === e && xe in e ? nr.call(ie(e), 8, -1) : G ? "Object" : "", O = H || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", T = O + (S || G ? "[" + re.call($r.call([], S || [], G || []), ": ") + "] " : "");
1886
+ return L.length === 0 ? T + "{}" : p ? T + "{" + Vt(L, p) + "}" : T + "{ " + re.call(L, ", ") + " }";
1887
1887
  }
1888
1888
  return String(e);
1889
1889
  };
@@ -1903,7 +1903,7 @@ function Jt(t) {
1903
1903
  function ui(t) {
1904
1904
  return ie(t) === "[object Date]" && de(t);
1905
1905
  }
1906
- function Lr(t) {
1906
+ function Ur(t) {
1907
1907
  return ie(t) === "[object RegExp]" && de(t);
1908
1908
  }
1909
1909
  function fi(t) {
@@ -2061,7 +2061,7 @@ function Oe(t) {
2061
2061
  function St(t) {
2062
2062
  return t + " { ? }";
2063
2063
  }
2064
- function Ur(t, e, n, r) {
2064
+ function Lr(t, e, n, r) {
2065
2065
  var o = r ? Vt(n, r) : re.call(n, ", ");
2066
2066
  return t + " (" + e + ") {" + o + "}";
2067
2067
  }
@@ -2165,7 +2165,7 @@ var xi = ct, Ti = Ee, ut = function(t, e, n) {
2165
2165
  }
2166
2166
  };
2167
2167
  return n;
2168
- }, Dn = Object, Di = Error, Ii = EvalError, Li = RangeError, Ui = ReferenceError, Mi = SyntaxError, Bi = URIError, ki = Math.abs, ji = Math.floor, qi = Math.max, Hi = Math.min, zi = Math.pow, Wi = Math.round, Ki = Number.isNaN || function(e) {
2168
+ }, Dn = Object, Di = Error, Ii = EvalError, Ui = RangeError, Li = ReferenceError, Mi = SyntaxError, Bi = URIError, ki = Math.abs, ji = Math.floor, qi = Math.max, zi = Math.min, Hi = Math.pow, Wi = Math.round, Ki = Number.isNaN || function(e) {
2169
2169
  return e !== e;
2170
2170
  }, Gi = Ki, Ji = function(e) {
2171
2171
  return Gi(e) || e === 0 ? e : e < 0 ? -1 : 1;
@@ -2223,11 +2223,11 @@ function Yi() {
2223
2223
  }, At;
2224
2224
  }
2225
2225
  var Ot, kr;
2226
- function Ln() {
2226
+ function Un() {
2227
2227
  return kr || (kr = 1, Ot = typeof Reflect < "u" && Reflect.getPrototypeOf || null), Ot;
2228
2228
  }
2229
2229
  var Rt, jr;
2230
- function Un() {
2230
+ function Ln() {
2231
2231
  if (jr) return Rt;
2232
2232
  jr = 1;
2233
2233
  var t = Dn;
@@ -2278,16 +2278,16 @@ function Zi() {
2278
2278
  return p;
2279
2279
  }, Pt;
2280
2280
  }
2281
- var xt, Hr;
2281
+ var xt, zr;
2282
2282
  function ft() {
2283
- if (Hr) return xt;
2284
- Hr = 1;
2283
+ if (zr) return xt;
2284
+ zr = 1;
2285
2285
  var t = Zi();
2286
2286
  return xt = Function.prototype.bind || t, xt;
2287
2287
  }
2288
- var Tt, zr;
2288
+ var Tt, Hr;
2289
2289
  function or() {
2290
- return zr || (zr = 1, Tt = Function.prototype.call), Tt;
2290
+ return Hr || (Hr = 1, Tt = Function.prototype.call), Tt;
2291
2291
  }
2292
2292
  var Ct, Wr;
2293
2293
  function Mn() {
@@ -2325,7 +2325,7 @@ var _t, Gr;
2325
2325
  function fs() {
2326
2326
  if (Gr) return _t;
2327
2327
  Gr = 1;
2328
- var t = Ln(), e = Un(), n = us();
2328
+ var t = Un(), e = Ln(), n = us();
2329
2329
  return _t = t ? function(o) {
2330
2330
  return t(o);
2331
2331
  } : e ? function(o) {
@@ -2343,7 +2343,7 @@ function ps() {
2343
2343
  var t = Function.prototype.call, e = Object.prototype.hasOwnProperty, n = ft();
2344
2344
  return Nt = n.call(t, e), Nt;
2345
2345
  }
2346
- var A, ds = Dn, ys = Di, hs = Ii, ms = Li, gs = Ui, we = Mi, ge = Ee, vs = Bi, ws = ki, bs = ji, Ss = qi, Es = Hi, As = zi, Os = Wi, Rs = Ji, kn = Function, Ft = function(t) {
2346
+ var A, ds = Dn, ys = Di, hs = Ii, ms = Ui, gs = Li, we = Mi, ge = Ee, vs = Bi, ws = ki, bs = ji, Ss = qi, Es = zi, As = Hi, Os = Wi, Rs = Ji, kn = Function, Ft = function(t) {
2347
2347
  try {
2348
2348
  return kn('"use strict"; return (' + t + ").constructor;")();
2349
2349
  } catch {
@@ -2360,7 +2360,7 @@ var A, ds = Dn, ys = Di, hs = Ii, ms = Li, gs = Ui, we = Mi, ge = Ee, vs = Bi, w
2360
2360
  return Dt;
2361
2361
  }
2362
2362
  }
2363
- }() : Dt, ye = Yi()(), I = fs(), Ts = Un(), Cs = Ln(), jn = Mn(), Ie = or(), me = {}, $s = typeof Uint8Array > "u" || !I ? A : I(Uint8Array), ue = {
2363
+ }() : Dt, ye = Yi()(), I = fs(), Ts = Ln(), Cs = Un(), jn = Mn(), Ie = or(), me = {}, $s = typeof Uint8Array > "u" || !I ? A : I(Uint8Array), ue = {
2364
2364
  __proto__: null,
2365
2365
  "%AggregateError%": typeof AggregateError > "u" ? A : AggregateError,
2366
2366
  "%Array%": Array,
@@ -2520,15 +2520,15 @@ var Ns = function t(e) {
2520
2520
  "%URIErrorPrototype%": ["URIError", "prototype"],
2521
2521
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
2522
2522
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
2523
- }, Le = ft(), et = ps(), Fs = Le.call(Ie, Array.prototype.concat), Ds = Le.call(jn, Array.prototype.splice), Qr = Le.call(Ie, String.prototype.replace), tt = Le.call(Ie, String.prototype.slice), Is = Le.call(Ie, RegExp.prototype.exec), Ls = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Us = /\\(\\)?/g, Ms = function(e) {
2523
+ }, Ue = ft(), et = ps(), Fs = Ue.call(Ie, Array.prototype.concat), Ds = Ue.call(jn, Array.prototype.splice), Qr = Ue.call(Ie, String.prototype.replace), tt = Ue.call(Ie, String.prototype.slice), Is = Ue.call(Ie, RegExp.prototype.exec), Us = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Ls = /\\(\\)?/g, Ms = function(e) {
2524
2524
  var n = tt(e, 0, 1), r = tt(e, -1);
2525
2525
  if (n === "%" && r !== "%")
2526
2526
  throw new we("invalid intrinsic syntax, expected closing `%`");
2527
2527
  if (r === "%" && n !== "%")
2528
2528
  throw new we("invalid intrinsic syntax, expected opening `%`");
2529
2529
  var o = [];
2530
- return Qr(e, Ls, function(a, i, s, u) {
2531
- o[o.length] = s ? Qr(u, Us, "$1") : i || a;
2530
+ return Qr(e, Us, function(a, i, s, u) {
2531
+ o[o.length] = s ? Qr(u, Ls, "$1") : i || a;
2532
2532
  }), o;
2533
2533
  }, Bs = function(e, n) {
2534
2534
  var r = e, o;
@@ -2573,21 +2573,21 @@ var Ns = function t(e) {
2573
2573
  }
2574
2574
  }
2575
2575
  return s;
2576
- }, qn = ar, Hn = Bn, ks = Hn([qn("%String.prototype.indexOf%")]), zn = function(e, n) {
2576
+ }, qn = ar, zn = Bn, ks = zn([qn("%String.prototype.indexOf%")]), Hn = function(e, n) {
2577
2577
  var r = (
2578
2578
  /** @type {(this: unknown, ...args: unknown[]) => unknown} */
2579
2579
  qn(e, !!n)
2580
2580
  );
2581
- return typeof r == "function" && ks(e, ".prototype.") > -1 ? Hn(
2581
+ return typeof r == "function" && ks(e, ".prototype.") > -1 ? zn(
2582
2582
  /** @type {const} */
2583
2583
  [r]
2584
2584
  ) : r;
2585
- }, js = ar, Ue = zn, qs = ct, Hs = Ee, Xr = js("%Map%", !0), zs = Ue("Map.prototype.get", !0), Ws = Ue("Map.prototype.set", !0), Ks = Ue("Map.prototype.has", !0), Gs = Ue("Map.prototype.delete", !0), Js = Ue("Map.prototype.size", !0), Wn = !!Xr && /** @type {Exclude<import('.'), false>} */
2585
+ }, js = ar, Le = Hn, qs = ct, zs = Ee, Xr = js("%Map%", !0), Hs = Le("Map.prototype.get", !0), Ws = Le("Map.prototype.set", !0), Ks = Le("Map.prototype.has", !0), Gs = Le("Map.prototype.delete", !0), Js = Le("Map.prototype.size", !0), Wn = !!Xr && /** @type {Exclude<import('.'), false>} */
2586
2586
  function() {
2587
2587
  var e, n = {
2588
2588
  assert: function(r) {
2589
2589
  if (!n.has(r))
2590
- throw new Hs("Side channel does not contain " + qs(r));
2590
+ throw new zs("Side channel does not contain " + qs(r));
2591
2591
  },
2592
2592
  delete: function(r) {
2593
2593
  if (e) {
@@ -2598,7 +2598,7 @@ function() {
2598
2598
  },
2599
2599
  get: function(r) {
2600
2600
  if (e)
2601
- return zs(e, r);
2601
+ return Hs(e, r);
2602
2602
  },
2603
2603
  has: function(r) {
2604
2604
  return e ? Ks(e, r) : !1;
@@ -2608,7 +2608,7 @@ function() {
2608
2608
  }
2609
2609
  };
2610
2610
  return n;
2611
- }, Vs = ar, pt = zn, Qs = ct, je = Wn, Xs = Ee, he = Vs("%WeakMap%", !0), Ys = pt("WeakMap.prototype.get", !0), Zs = pt("WeakMap.prototype.set", !0), el = pt("WeakMap.prototype.has", !0), tl = pt("WeakMap.prototype.delete", !0), rl = he ? (
2611
+ }, Vs = ar, pt = Hn, Qs = ct, je = Wn, Xs = Ee, he = Vs("%WeakMap%", !0), Ys = pt("WeakMap.prototype.get", !0), Zs = pt("WeakMap.prototype.set", !0), el = pt("WeakMap.prototype.has", !0), tl = pt("WeakMap.prototype.delete", !0), rl = he ? (
2612
2612
  /** @type {Exclude<import('.'), false>} */
2613
2613
  function() {
2614
2614
  var e, n, r = {
@@ -2671,7 +2671,7 @@ function() {
2671
2671
  },
2672
2672
  RFC1738: It.RFC1738,
2673
2673
  RFC3986: It.RFC3986
2674
- }, pl = ir, Lt = Object.prototype.hasOwnProperty, se = Array.isArray, ee = function() {
2674
+ }, pl = ir, Ut = Object.prototype.hasOwnProperty, se = Array.isArray, ee = function() {
2675
2675
  for (var t = [], e = 0; e < 256; ++e)
2676
2676
  t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
2677
2677
  return t;
@@ -2695,7 +2695,7 @@ function() {
2695
2695
  if (se(e))
2696
2696
  e.push(n);
2697
2697
  else if (e && typeof e == "object")
2698
- (r && (r.plainObjects || r.allowPrototypes) || !Lt.call(Object.prototype, n)) && (e[n] = !0);
2698
+ (r && (r.plainObjects || r.allowPrototypes) || !Ut.call(Object.prototype, n)) && (e[n] = !0);
2699
2699
  else
2700
2700
  return [e, n];
2701
2701
  return e;
@@ -2704,14 +2704,14 @@ function() {
2704
2704
  return [e].concat(n);
2705
2705
  var o = e;
2706
2706
  return se(e) && !se(n) && (o = Kn(e, r)), se(e) && se(n) ? (n.forEach(function(a, i) {
2707
- if (Lt.call(e, i)) {
2707
+ if (Ut.call(e, i)) {
2708
2708
  var s = e[i];
2709
2709
  s && typeof s == "object" && a && typeof a == "object" ? e[i] = t(s, a, r) : e.push(a);
2710
2710
  } else
2711
2711
  e[i] = a;
2712
2712
  }), e) : Object.keys(n).reduce(function(a, i) {
2713
2713
  var s = n[i];
2714
- return Lt.call(a, i) ? a[i] = t(a[i], s, r) : a[i] = s, a;
2714
+ return Ut.call(a, i) ? a[i] = t(a[i], s, r) : a[i] = s, a;
2715
2715
  }, o);
2716
2716
  }, hl = function(e, n) {
2717
2717
  return Object.keys(n).reduce(function(r, o) {
@@ -2726,7 +2726,7 @@ function() {
2726
2726
  } catch {
2727
2727
  return r;
2728
2728
  }
2729
- }, Ut = 1024, gl = function(e, n, r, o, a) {
2729
+ }, Lt = 1024, gl = function(e, n, r, o, a) {
2730
2730
  if (e.length === 0)
2731
2731
  return e;
2732
2732
  var i = e;
@@ -2734,8 +2734,8 @@ function() {
2734
2734
  return escape(i).replace(/%u[0-9a-f]{4}/gi, function(g) {
2735
2735
  return "%26%23" + parseInt(g.slice(2), 16) + "%3B";
2736
2736
  });
2737
- for (var s = "", u = 0; u < i.length; u += Ut) {
2738
- for (var l = i.length >= Ut ? i.slice(u, u + Ut) : i, c = [], p = 0; p < l.length; ++p) {
2737
+ for (var s = "", u = 0; u < i.length; u += Lt) {
2738
+ for (var l = i.length >= Lt ? i.slice(u, u + Lt) : i, c = [], p = 0; p < l.length; ++p) {
2739
2739
  var d = l.charCodeAt(p);
2740
2740
  if (d === 45 || d === 46 || d === 95 || d === 126 || d >= 48 && d <= 57 || d >= 65 && d <= 90 || d >= 97 && d <= 122 || a === pl.RFC1738 && (d === 40 || d === 41)) {
2741
2741
  c[c.length] = l.charAt(p);
@@ -2828,12 +2828,12 @@ function() {
2828
2828
  }, Pl = function(e) {
2829
2829
  return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
2830
2830
  }, Mt = {}, xl = function t(e, n, r, o, a, i, s, u, l, c, p, d, g, y, m, h, E, R) {
2831
- for (var v = e, F = R, x = 0, L = !1; (F = F.get(Mt)) !== void 0 && !L; ) {
2832
- var U = F.get(e);
2833
- if (x += 1, typeof U < "u") {
2834
- if (U === x)
2831
+ for (var v = e, F = R, x = 0, U = !1; (F = F.get(Mt)) !== void 0 && !U; ) {
2832
+ var L = F.get(e);
2833
+ if (x += 1, typeof L < "u") {
2834
+ if (L === x)
2835
2835
  throw new RangeError("Cyclic object value");
2836
- L = !0;
2836
+ U = !0;
2837
2837
  }
2838
2838
  typeof F.get(Mt) > "u" && (x = 0);
2839
2839
  }
@@ -2846,8 +2846,8 @@ function() {
2846
2846
  }
2847
2847
  if (Pl(v) || Je.isBuffer(v)) {
2848
2848
  if (l) {
2849
- var z = h ? n : l(n, D.encoder, E, "key", y);
2850
- return [m(z) + "=" + m(l(v, D.encoder, E, "value", y))];
2849
+ var H = h ? n : l(n, D.encoder, E, "key", y);
2850
+ return [m(H) + "=" + m(l(v, D.encoder, E, "value", y))];
2851
2851
  }
2852
2852
  return [m(n) + "=" + m(String(v))];
2853
2853
  }
@@ -2867,13 +2867,13 @@ function() {
2867
2867
  if (a && te(v) && v.length === 0)
2868
2868
  return P + "[]";
2869
2869
  for (var _ = 0; _ < S.length; ++_) {
2870
- var w = S[_], H = typeof w == "object" && w && typeof w.value < "u" ? w.value : v[w];
2871
- if (!(s && H === null)) {
2870
+ var w = S[_], z = typeof w == "object" && w && typeof w.value < "u" ? w.value : v[w];
2871
+ if (!(s && z === null)) {
2872
2872
  var B = d && u ? String(w).replace(/\./g, "%2E") : String(w), k = te(v) ? typeof r == "function" ? r(P, B) : P : P + (d ? "." + B : "[" + B + "]");
2873
2873
  R.set(e, x);
2874
2874
  var W = Jn();
2875
2875
  W.set(Mt, R), Qn(G, t(
2876
- H,
2876
+ z,
2877
2877
  k,
2878
2878
  r,
2879
2879
  o,
@@ -3073,7 +3073,7 @@ function() {
3073
3073
  }
3074
3074
  return Dl(c, n, r, o);
3075
3075
  }
3076
- }, Ll = function(e) {
3076
+ }, Ul = function(e) {
3077
3077
  if (!e)
3078
3078
  return $;
3079
3079
  if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
@@ -3114,8 +3114,8 @@ function() {
3114
3114
  strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : $.strictNullHandling,
3115
3115
  throwOnLimitExceeded: typeof e.throwOnLimitExceeded == "boolean" ? e.throwOnLimitExceeded : !1
3116
3116
  };
3117
- }, Ul = function(t, e) {
3118
- var n = Ll(e);
3117
+ }, Ll = function(t, e) {
3118
+ var n = Ul(e);
3119
3119
  if (t === "" || t === null || typeof t > "u")
3120
3120
  return n.plainObjects ? { __proto__: null } : {};
3121
3121
  for (var r = typeof t == "string" ? Fl(t, n) : t, o = n.plainObjects ? { __proto__: null } : {}, a = Object.keys(r), i = 0; i < a.length; ++i) {
@@ -3123,7 +3123,7 @@ function() {
3123
3123
  o = pe.merge(o, u, n);
3124
3124
  }
3125
3125
  return n.allowSparse === !0 ? o : pe.compact(o);
3126
- }, Ml = Cl, Bl = Ul, kl = ir, jl = {
3126
+ }, Ml = Cl, Bl = Ll, kl = ir, jl = {
3127
3127
  formats: kl,
3128
3128
  parse: Bl,
3129
3129
  stringify: Ml
@@ -3138,7 +3138,7 @@ function qe(t) {
3138
3138
  }
3139
3139
  return t;
3140
3140
  }
3141
- var Hl = {
3141
+ var zl = {
3142
3142
  read: function(t) {
3143
3143
  return t[0] === '"' && (t = t.slice(1, -1)), t.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
3144
3144
  },
@@ -3199,7 +3199,7 @@ function Xt(t, e) {
3199
3199
  }
3200
3200
  );
3201
3201
  }
3202
- var zl = Xt(Hl, { path: "/" });
3202
+ var Hl = Xt(zl, { path: "/" });
3203
3203
  const Wl = {
3204
3204
  参数校验错误: { "zh-CN": "参数校验错误", en: "Parameter Validation Error", _appCode: "framework" },
3205
3205
  接口地址未找到: { "zh-CN": "接口地址未找到", en: "Api endpoint not found", _appCode: "framework" },
@@ -3211,53 +3211,69 @@ const Wl = {
3211
3211
  en: "Network error, please check your network status",
3212
3212
  _appCode: "framework"
3213
3213
  }
3214
- };
3214
+ }, Kl = async (t) => null;
3215
3215
  oo(Wl);
3216
3216
  rt.extend(po);
3217
3217
  rt.extend(yo);
3218
- const sr = Ve(), Yn = sr.sso ?? !0, Kl = sr.i18n ?? !0, Zn = sr.noRedireLogin ?? !1, eo = () => {
3218
+ const sr = Ve(), Yn = sr.sso ?? !0, Gl = sr.i18n ?? !0, Zn = sr.noRedireLogin ?? !1, Jl = (t) => {
3219
+ var e, n, r;
3220
+ 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;
3221
+ }, Vl = (t) => {
3222
+ t.interceptors.response.use(void 0, async (e) => {
3223
+ const n = e == null ? void 0 : e.config;
3224
+ if (!n || n.public || !Jl(e) || n.skipUnauthorizedRecovery || n._unauthorizedRecoveryRetried)
3225
+ return Promise.reject(e);
3226
+ try {
3227
+ const r = await Kl({ error: e, config: n });
3228
+ return r != null && r.accessToken ? (n._unauthorizedRecoveryRetried = !0, n.headers = n.headers || {}, n.headers.Authorization = `Bearer ${r.accessToken}`, t(n)) : Promise.reject(e);
3229
+ } catch {
3230
+ return Promise.reject(e);
3231
+ }
3232
+ });
3233
+ }, eo = () => {
3219
3234
  if (Zn) return;
3220
3235
  const t = "/login";
3221
3236
  location.pathname !== t && (sessionStorage.clear(), window.__isAutoCloseApp = !1, location.replace(t));
3222
- }, Gl = async (t) => {
3237
+ }, Ql = async (t) => {
3223
3238
  var n;
3224
3239
  return ((n = t.config) == null ? void 0 : n.responseType) === "blob" ? t : t.data ?? t;
3225
- }, Jl = async (t, e) => {
3226
- var u, l, c, p, d;
3227
- let n = ((u = t.response) == null ? void 0 : u.status) || 500, r = (l = t.response) == null ? void 0 : l.message, o = {};
3240
+ }, Xl = async (t, e) => {
3241
+ var l, c, p, d, g;
3242
+ let n = ((l = t.response) == null ? void 0 : l.status) || 500, r = (c = t.response) == null ? void 0 : c.message, o = {};
3228
3243
  const a = { 400: C("参数校验错误"), 404: C("接口地址未找到"), 500: C("服务器内部错误") };
3229
- let i = ((c = t == null ? void 0 : t.response) == null ? void 0 : c.data) || {};
3230
- if (!(lo("code") || "") && !Zn && (n === 401 || (i == null ? void 0 : i.code) === 401))
3244
+ let i = ((p = t == null ? void 0 : t.response) == null ? void 0 : p.data) || {};
3245
+ const s = lo("code") || "", u = !((e == null ? void 0 : e.noRedireLogin) ?? Zn);
3246
+ if (!s && u && (n === 401 || (i == null ? void 0 : i.code) === 401))
3231
3247
  Yn ? co({ ...fo, redirect_uri: uo }) : eo(), o = i;
3232
3248
  else {
3233
3249
  if (t.response) {
3234
- if (i instanceof Blob && (i = await new Promise((g) => {
3235
- const y = new FileReader();
3236
- y.readAsText(i, "utf-8"), y.onload = () => {
3250
+ if (i instanceof Blob && (i = await new Promise((y) => {
3251
+ const m = new FileReader();
3252
+ m.readAsText(i, "utf-8"), m.onload = () => {
3237
3253
  try {
3238
- g(JSON.parse(y.result || "{}"));
3254
+ y(JSON.parse(m.result || "{}"));
3239
3255
  } catch {
3240
- g({ code: 400, msg: C("blob解析错误") });
3256
+ y({ code: 400, msg: C("blob解析错误") });
3241
3257
  }
3242
3258
  };
3243
3259
  })), i.code) {
3244
3260
  n = i.code;
3245
- const g = (e == null ? void 0 : e.i18n) ?? !0;
3246
- if (Kl && g) {
3247
- const y = (i == null ? void 0 : i.status) ?? "";
3248
- r = !(i != null && i.data) || !i.data.length ? C(y) : C(y, ...i.data);
3261
+ const y = (e == null ? void 0 : e.i18n) ?? !0;
3262
+ if (Gl && y) {
3263
+ const m = (i == null ? void 0 : i.status) ?? "";
3264
+ r = !(i != null && i.data) || !i.data.length ? C(m) : C(m, ...i.data);
3249
3265
  } else
3250
3266
  r = (i == null ? void 0 : i.msg) ?? "";
3251
3267
  o = i;
3252
3268
  }
3253
3269
  r || (r = a[t.response.status] || t.message);
3254
3270
  } 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("请求配置异常");
3255
- 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 }));
3271
+ e != null && e.customErrorMessage && (r = e == null ? void 0 : e.customErrorMessage(r, t)), !(e != null && e.ignoreErrorMessage) && r && ((g = (d = window.DasMessage) == null ? void 0 : d.error) == null || g.call(d, { message: r, showClose: !0 }));
3256
3272
  }
3257
3273
  return { ...o, code: n, msg: r, error: t };
3258
3274
  }, J = (t, e) => {
3259
3275
  const n = N.create();
3260
- return io(n, async (r) => {
3276
+ return Vl(n), io(n, async (r) => {
3261
3277
  const o = Ve();
3262
3278
  if (r.headers || (r.headers = {}), !(r != null && r.public)) {
3263
3279
  let l = "";
@@ -3267,7 +3283,7 @@ const sr = Ve(), Yn = sr.sso ?? !0, Kl = sr.i18n ?? !0, Zn = sr.noRedireLogin ??
3267
3283
  }
3268
3284
  Yn ? l || (l = await so(r)) : (l || (l = go()), l || eo()), l && !r.headers.Authorization && (r.headers.Authorization = `Bearer ${l}`);
3269
3285
  }
3270
- r.baseURL || (r.baseURL = o.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (l) => ql.stringify(l, { indices: !1 }) }), r.onSuccess || (r.onSuccess = Gl), r.onError || (r.onError = Jl), (r.csrf ?? !1) && (r.headers["csrf-token"] = zl.get("csrf-token"));
3286
+ r.baseURL || (r.baseURL = o.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (l) => ql.stringify(l, { indices: !1 }) }), r.onSuccess || (r.onSuccess = Ql), r.onError || (r.onError = Xl), (r.csrf ?? !1) && (r.headers["csrf-token"] = Hl.get("csrf-token"));
3271
3287
  const s = r.params || {};
3272
3288
  if (s.project === void 0) {
3273
3289
  let l = 0;
@@ -3284,9 +3300,9 @@ const sr = Ve(), Yn = sr.sso ?? !0, Kl = sr.i18n ?? !0, Zn = sr.noRedireLogin ??
3284
3300
  J(`/api/iot/${V}`);
3285
3301
  J(`/api/iot-device/thingmodel/${V}`), J(`/api/iot-device/devicemanage/${V}`), J(`/api/iot-device/product/${V}`), J(`/api/iot-device/product-storage/${V}`);
3286
3302
  J(`/api/device-relation/deviceproject/${V}`), J(`/api/device-relation/devicerule/${V}`), J(`/api/device-relation/project/${V}`);
3287
- const lr = J(`/api/oss/minio/${V}`), Vl = J(`/api/progress/accessor/${V}`);
3303
+ const lr = J(`/api/oss/minio/${V}`), Yl = J(`/api/progress/accessor/${V}`);
3288
3304
  J(`/api/dms/analysis/${V}`);
3289
- let Ql = (t = 21) => {
3305
+ let Zl = (t = 21) => {
3290
3306
  let e = "", n = crypto.getRandomValues(new Uint8Array(t));
3291
3307
  for (; t--; ) {
3292
3308
  let r = n[t] & 63;
@@ -3294,12 +3310,12 @@ let Ql = (t = 21) => {
3294
3310
  }
3295
3311
  return e;
3296
3312
  };
3297
- const Xl = lr.get("token"), Yl = lr.post("put-object", (t) => (t.headers || (t.headers = {}), t.headers["Content-Type"] = "multipart/form-data", t.responseType = "blob", t)), Zl = lr.post("upload-objects", (t) => (t.headers || (t.headers = {}), t.headers["Content-Type"] = "multipart/form-data", t.responseType = "blob", t)), ec = Vl.get("progress"), Nc = () => {
3313
+ const ec = lr.get("token"), tc = lr.post("put-object", (t) => (t.headers || (t.headers = {}), t.headers["Content-Type"] = "multipart/form-data", t.responseType = "blob", t)), rc = lr.post("upload-objects", (t) => (t.headers || (t.headers = {}), t.headers["Content-Type"] = "multipart/form-data", t.responseType = "blob", t)), nc = Yl.get("progress"), Ic = () => {
3298
3314
  let t = K(!1), e = K(""), n = K(0), r = K("normal"), o = K(!1), a, i = K(""), s = K(""), u = K(""), l = K(""), c = K(!1), p = K(""), d = "", g = K(""), y;
3299
3315
  const m = () => {
3300
3316
  s.value = "", u.value = "", l.value = "", c.value = !1, p.value = "";
3301
3317
  }, h = async () => {
3302
- const [S, O] = await Xl().run();
3318
+ const [S, O] = await ec().run();
3303
3319
  return S ? { stauts: !1 } : { status: !0, data: O };
3304
3320
  }, E = (S) => new Promise((O, T) => {
3305
3321
  const _ = [];
@@ -3308,15 +3324,15 @@ const Xl = lr.get("token"), Yl = lr.post("put-object", (t) => (t.headers || (t.h
3308
3324
  const B = S.slice(w, w + 1048576);
3309
3325
  _.push(B), w += 1048576;
3310
3326
  }
3311
- const H = new Blob(_, { type: S.type });
3312
- O(H);
3327
+ const z = new Blob(_, { type: S.type });
3328
+ O(z);
3313
3329
  }), R = async (S, O, T, P = !0, _ = "", w = !1) => {
3314
3330
  var cr, ur;
3315
3331
  d = _, g.value = "import", P && (r.value = "normal", n.value = 0, e.value = C("导入进度"), t.value = !0, i.value = ""), y = O;
3316
- const H = await h();
3317
- if (!H.status) return;
3318
- let B = H.data, k = null, { autoContentType: W, bucketName: X, importFileName: Me } = T;
3319
- const to = w ? Zl : Yl;
3332
+ const z = await h();
3333
+ if (!z.status) return;
3334
+ let B = z.data, k = null, { autoContentType: W, bucketName: X, importFileName: Me } = T;
3335
+ const to = w ? rc : tc;
3320
3336
  if (w) {
3321
3337
  let oe = [];
3322
3338
  await O.forEach(async (Be) => {
@@ -3341,7 +3357,7 @@ const Xl = lr.get("token"), Yl = lr.post("put-object", (t) => (t.headers || (t.h
3341
3357
  }
3342
3358
  const [ro, no] = await to(k).run();
3343
3359
  if (ro) return t.value = !1;
3344
- const Y = await rc(no.data);
3360
+ const Y = await ac(no.data);
3345
3361
  if (!w && (Y == null ? void 0 : Y.statusCode) != 200 || w && (Y != null && Y.some((oe) => (oe == null ? void 0 : oe.statusCode) != 200))) {
3346
3362
  t.value = !1, (cr = window.DasMessage) == null || cr.error({
3347
3363
  message: (Y == null ? void 0 : Y.errorMsg) || C("上传失败"),
@@ -3382,13 +3398,13 @@ const Xl = lr.get("token"), Yl = lr.post("put-object", (t) => (t.headers || (t.h
3382
3398
  }
3383
3399
  rt().format("YYYYMMDDHHmmss") + "", x(_.taskId, "export", O || "", T);
3384
3400
  }, x = async (S, O, T, P = "") => {
3385
- o.value = !0, U(S, O, T, P), a = setTimeout(() => {
3401
+ o.value = !0, L(S, O, T, P), a = setTimeout(() => {
3386
3402
  }, 50);
3387
- }, L = () => {
3403
+ }, U = () => {
3388
3404
  clearTimeout(a), a = null, t.value = !1;
3389
- }, U = async (S, O = "export", T, P = "") => {
3390
- var H, B, k;
3391
- const [_, w] = await ec("", {
3405
+ }, L = async (S, O = "export", T, P = "") => {
3406
+ var z, B, k;
3407
+ const [_, w] = await nc("", {
3392
3408
  url: `progress/${S}`
3393
3409
  }).run();
3394
3410
  if (_) {
@@ -3396,11 +3412,11 @@ const Xl = lr.get("token"), Yl = lr.post("put-object", (t) => (t.headers || (t.h
3396
3412
  return;
3397
3413
  }
3398
3414
  if (n.value = w.percentage, n.value == 100)
3399
- if (i.value = w, o.value = !1, L(), O == "export")
3415
+ if (i.value = w, o.value = !1, U(), O == "export")
3400
3416
  if (w.status == 1) {
3401
3417
  r.value = "success";
3402
3418
  let W = await fr(`/oss/${w == null ? void 0 : w.filePath}`);
3403
- const X = ((H = W == null ? void 0 : W.split("/")) == null ? void 0 : H.pop()) || "";
3419
+ const X = ((z = W == null ? void 0 : W.split("/")) == null ? void 0 : z.pop()) || "";
3404
3420
  let Me = T || X;
3405
3421
  en(`${Ve().baseURL}/oss${w.filePath}`, Me, P), o.value = !1;
3406
3422
  } else w.status == 2 && (l.value = w.message || (O == "export" ? C("导出失败") : C("导入失败")), (B = window.DasMessage) == null || B.error({
@@ -3415,13 +3431,13 @@ const Xl = lr.get("token"), Yl = lr.post("put-object", (t) => (t.headers || (t.h
3415
3431
  const X = ((k = W == null ? void 0 : W.split("/")) == null ? void 0 : k.pop()) || "";
3416
3432
  s.value = d || X, u.value = y.sizeText, l.value = C("部分数据校验不通过,请下载附件并修改,重新导入!"), p.value = `${Ve().baseURL}/oss/${w == null ? void 0 : w.filePath}`;
3417
3433
  }
3418
- z(w.status, O, w.message);
3434
+ H(w.status, O, w.message);
3419
3435
  } else O == "action" && (r.value = "success");
3420
3436
  else
3421
3437
  a && w.status != 2 ? a = setTimeout(() => {
3422
- U(S, O, T, P);
3423
- }, 50) : (i.value = w, o.value = !1, z(w.status, O, w.message), L(), c.value = !0, l.value = (w == null ? void 0 : w.message) || "");
3424
- }, z = (S, O = "export", T) => {
3438
+ L(S, O, T, P);
3439
+ }, 50) : (i.value = w, o.value = !1, H(w.status, O, w.message), U(), c.value = !0, l.value = (w == null ? void 0 : w.message) || "");
3440
+ }, H = (S, O = "export", T) => {
3425
3441
  var P, _, w;
3426
3442
  S == 1 ? (r.value = "success", (P = window.DasMessage) == null || P.success({
3427
3443
  message: O == "export" ? C("导出成功") : C("导入成功"),
@@ -3454,14 +3470,14 @@ const Xl = lr.get("token"), Yl = lr.post("put-object", (t) => (t.headers || (t.h
3454
3470
  fileAction: v,
3455
3471
  generateUniqueName: (S) => {
3456
3472
  const O = S == null ? void 0 : S.match(/(.*?)(\.[^.]*$|$)/), T = O.length ? O[2] : "";
3457
- return `${O.length ? O[1] : S}${Ql()}${T}`;
3473
+ return `${O.length ? O[1] : S}${Zl()}${T}`;
3458
3474
  },
3459
3475
  downloadFile: en,
3460
3476
  resetStataus: m,
3461
3477
  checkProgress: x,
3462
3478
  fileHandleType: g
3463
3479
  };
3464
- }, tc = (t) => {
3480
+ }, oc = (t) => {
3465
3481
  let e = t == null ? void 0 : t.toLocaleLowerCase();
3466
3482
  return {
3467
3483
  excel: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
@@ -3494,7 +3510,7 @@ const Xl = lr.get("token"), Yl = lr.post("put-object", (t) => (t.headers || (t.h
3494
3510
  const r = new XMLHttpRequest();
3495
3511
  r.open("get", t), r.setRequestHeader("Content-Type", "application/json; charset=UTF-8"), r.responseType = "blob", r.onload = function(o) {
3496
3512
  const a = new Blob([this.response], {
3497
- type: tc(n)
3513
+ type: oc(n)
3498
3514
  }), i = URL.createObjectURL(a);
3499
3515
  if (window.navigator.msSaveOrOpenBlob)
3500
3516
  navigator.msSaveBlob(a, e);
@@ -3503,7 +3519,7 @@ const Xl = lr.get("token"), Yl = lr.post("put-object", (t) => (t.headers || (t.h
3503
3519
  s.href = i, s.download = e, s.click(), window.URL.revokeObjectURL(i);
3504
3520
  }
3505
3521
  }, r.send();
3506
- }, rc = (t) => new Promise((e, n) => {
3522
+ }, ac = (t) => new Promise((e, n) => {
3507
3523
  var r = new FileReader();
3508
3524
  r.onload = function(o) {
3509
3525
  let a = "";
@@ -3512,5 +3528,5 @@ const Xl = lr.get("token"), Yl = lr.post("put-object", (t) => (t.headers || (t.h
3512
3528
  });
3513
3529
  export {
3514
3530
  en as downloadFile,
3515
- Nc as useFile
3531
+ Ic as useFile
3516
3532
  };