@das-fed/utils 6.4.0-test.7.1 → 6.4.0-test.8.1

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.
Binary file
@@ -17,11 +17,11 @@ function Mr(t, e) {
17
17
  const { toString: Jn } = Object.prototype, { getPrototypeOf: Ut } = Object, Ze = /* @__PURE__ */ ((t) => (e) => {
18
18
  const n = Jn.call(e);
19
19
  return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
20
- })(/* @__PURE__ */ Object.create(null)), V = (t) => (t = t.toLowerCase(), (e) => Ze(e) === t), et = (t) => (e) => typeof e === t, { isArray: Ee } = Array, Fe = et("undefined");
20
+ })(/* @__PURE__ */ Object.create(null)), X = (t) => (t = t.toLowerCase(), (e) => Ze(e) === t), et = (t) => (e) => typeof e === t, { isArray: Ee } = Array, Fe = et("undefined");
21
21
  function Vn(t) {
22
22
  return t !== null && !Fe(t) && t.constructor !== null && !Fe(t.constructor) && W(t.constructor.isBuffer) && t.constructor.isBuffer(t);
23
23
  }
24
- const jr = V("ArrayBuffer");
24
+ const jr = X("ArrayBuffer");
25
25
  function Qn(t) {
26
26
  let e;
27
27
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && jr(t.buffer), e;
@@ -31,11 +31,11 @@ const Xn = et("string"), W = et("function"), qr = et("number"), tt = (t) => t !=
31
31
  return !1;
32
32
  const e = Ut(t);
33
33
  return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
34
- }, Zn = V("Date"), eo = V("File"), to = V("Blob"), ro = V("FileList"), no = (t) => tt(t) && W(t.pipe), oo = (t) => {
34
+ }, Zn = X("Date"), eo = X("File"), to = X("Blob"), ro = X("FileList"), no = (t) => tt(t) && W(t.pipe), oo = (t) => {
35
35
  let e;
36
36
  return t && (typeof FormData == "function" && t instanceof FormData || W(t.append) && ((e = Ze(t)) === "formdata" || // detect form-data instance
37
37
  e === "object" && W(t.toString) && t.toString() === "[object FormData]"));
38
- }, ao = V("URLSearchParams"), [io, so, lo, co] = ["ReadableStream", "Request", "Response", "Headers"].map(V), uo = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
38
+ }, ao = X("URLSearchParams"), [io, so, lo, co] = ["ReadableStream", "Request", "Response", "Headers"].map(X), uo = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
39
39
  function De(t, e, { allOwnKeys: n = !1 } = {}) {
40
40
  if (t === null || typeof t > "u")
41
41
  return;
@@ -111,12 +111,12 @@ const fo = (t, e, n, { allOwnKeys: r } = {}) => (De(e, (o, a) => {
111
111
  for (; (n = t.exec(e)) !== null; )
112
112
  r.push(n);
113
113
  return r;
114
- }, So = V("HTMLFormElement"), Eo = (t) => t.toLowerCase().replace(
114
+ }, So = X("HTMLFormElement"), Eo = (t) => t.toLowerCase().replace(
115
115
  /[-_\s]([a-z\d])(\w*)/g,
116
116
  function(n, r, o) {
117
117
  return r.toUpperCase() + o;
118
118
  }
119
- ), tr = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), Ao = V("RegExp"), Wr = (t, e) => {
119
+ ), tr = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), Ao = X("RegExp"), Wr = (t, e) => {
120
120
  const n = Object.getOwnPropertyDescriptors(t), r = {};
121
121
  De(n, (o, a) => {
122
122
  let i;
@@ -176,7 +176,7 @@ const No = (t) => {
176
176
  return r;
177
177
  };
178
178
  return n(t, 0);
179
- }, Fo = V("AsyncFunction"), Do = (t) => t && (tt(t) || W(t)) && W(t.then) && W(t.catch), Gr = ((t, e) => t ? setImmediate : e ? ((n, r) => (ce.addEventListener("message", ({ source: o, data: a }) => {
179
+ }, Fo = X("AsyncFunction"), Do = (t) => t && (tt(t) || W(t)) && W(t.then) && W(t.catch), Gr = ((t, e) => t ? setImmediate : e ? ((n, r) => (ce.addEventListener("message", ({ source: o, data: a }) => {
180
180
  o === ce && a === n && r.length && r.shift()();
181
181
  }, !1), (o) => {
182
182
  r.push(o), ce.postMessage(n, "*");
@@ -216,7 +216,7 @@ const No = (t) => {
216
216
  inherits: yo,
217
217
  toFlatObject: ho,
218
218
  kindOf: Ze,
219
- kindOfTest: V,
219
+ kindOfTest: X,
220
220
  endsWith: mo,
221
221
  toArray: go,
222
222
  forEachEntry: bo,
@@ -2127,7 +2127,7 @@ const Ei = {}, Ai = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
2127
2127
  __proto__: null,
2128
2128
  default: Ei
2129
2129
  }, Symbol.toStringTag, { value: "Module" })), Oi = /* @__PURE__ */ Ra(Ai);
2130
- var Wt = typeof Map == "function" && Map.prototype, ht = Object.getOwnPropertyDescriptor && Wt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Qe = Wt && ht && typeof ht.get == "function" ? ht.get : null, Pr = Wt && Map.prototype.forEach, Kt = typeof Set == "function" && Set.prototype, mt = Object.getOwnPropertyDescriptor && Kt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Xe = Kt && mt && typeof mt.get == "function" ? mt.get : null, Tr = Kt && Set.prototype.forEach, Ri = typeof WeakMap == "function" && WeakMap.prototype, xe = Ri ? WeakMap.prototype.has : null, Pi = typeof WeakSet == "function" && WeakSet.prototype, Ce = Pi ? WeakSet.prototype.has : null, Ti = typeof WeakRef == "function" && WeakRef.prototype, xr = Ti ? WeakRef.prototype.deref : null, xi = Boolean.prototype.valueOf, Ci = Object.prototype.toString, Ni = Function.prototype.toString, Fi = String.prototype.match, Gt = String.prototype.slice, ae = String.prototype.replace, Di = String.prototype.toUpperCase, Cr = String.prototype.toLowerCase, vn = RegExp.prototype.test, Nr = Array.prototype.concat, Z = Array.prototype.join, Ii = Array.prototype.slice, Fr = Math.floor, Ft = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, gt = Object.getOwnPropertySymbols, Dt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, we = typeof Symbol == "function" && typeof Symbol.iterator == "object", U = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === we || !0) ? Symbol.toStringTag : null, bn = Object.prototype.propertyIsEnumerable, Dr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
2130
+ var Wt = typeof Map == "function" && Map.prototype, ht = Object.getOwnPropertyDescriptor && Wt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Qe = Wt && ht && typeof ht.get == "function" ? ht.get : null, Pr = Wt && Map.prototype.forEach, Kt = typeof Set == "function" && Set.prototype, mt = Object.getOwnPropertyDescriptor && Kt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Xe = Kt && mt && typeof mt.get == "function" ? mt.get : null, Tr = Kt && Set.prototype.forEach, Ri = typeof WeakMap == "function" && WeakMap.prototype, xe = Ri ? WeakMap.prototype.has : null, Pi = typeof WeakSet == "function" && WeakSet.prototype, Ce = Pi ? WeakSet.prototype.has : null, Ti = typeof WeakRef == "function" && WeakRef.prototype, xr = Ti ? WeakRef.prototype.deref : null, xi = Boolean.prototype.valueOf, Ci = Object.prototype.toString, Ni = Function.prototype.toString, Fi = String.prototype.match, Gt = String.prototype.slice, ae = String.prototype.replace, Di = String.prototype.toUpperCase, Cr = String.prototype.toLowerCase, vn = RegExp.prototype.test, Nr = Array.prototype.concat, te = Array.prototype.join, Ii = Array.prototype.slice, Fr = Math.floor, Ft = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, gt = Object.getOwnPropertySymbols, Dt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, we = typeof Symbol == "function" && typeof Symbol.iterator == "object", U = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === we || !0) ? Symbol.toStringTag : null, bn = Object.prototype.propertyIsEnumerable, Dr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
2131
2131
  return t.__proto__;
2132
2132
  } : null);
2133
2133
  function Ir(t, e) {
@@ -2194,7 +2194,7 @@ var It = Oi, _r = It.custom, $r = Sn(_r) ? _r : null, _i = function t(e, n, r, o
2194
2194
  }
2195
2195
  if (typeof e == "function" && !Br(e)) {
2196
2196
  var g = zi(e), y = Le(e, d);
2197
- return "[Function" + (g ? ": " + g : " (anonymous)") + "]" + (y.length > 0 ? " { " + Z.call(y, ", ") + " }" : "");
2197
+ return "[Function" + (g ? ": " + g : " (anonymous)") + "]" + (y.length > 0 ? " { " + te.call(y, ", ") + " }" : "");
2198
2198
  }
2199
2199
  if (Sn(e)) {
2200
2200
  var m = we ? ae.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : Dt.call(e);
@@ -2209,11 +2209,11 @@ var It = Oi, _r = It.custom, $r = Sn(_r) ? _r : null, _i = function t(e, n, r, o
2209
2209
  if (e.length === 0)
2210
2210
  return "[]";
2211
2211
  var v = Le(e, d);
2212
- return p && !Xi(v) ? "[" + $t(v, p) + "]" : "[ " + Z.call(v, ", ") + " ]";
2212
+ return p && !Xi(v) ? "[" + $t(v, p) + "]" : "[ " + te.call(v, ", ") + " ]";
2213
2213
  }
2214
2214
  if (Li(e)) {
2215
2215
  var D = Le(e, d);
2216
- return !("cause" in Error.prototype) && "cause" in e && !bn.call(e, "cause") ? "{ [" + String(e) + "] " + Z.call(Nr.call("[cause]: " + d(e.cause), D), ", ") + " }" : D.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + Z.call(D, ", ") + " }";
2216
+ return !("cause" in Error.prototype) && "cause" in e && !bn.call(e, "cause") ? "{ [" + String(e) + "] " + te.call(Nr.call("[cause]: " + d(e.cause), D), ", ") + " }" : D.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + te.call(D, ", ") + " }";
2217
2217
  }
2218
2218
  if (typeof e == "object" && i) {
2219
2219
  if ($r && typeof e[$r] == "function" && It)
@@ -2252,8 +2252,8 @@ var It = Oi, _r = It.custom, $r = Sn(_r) ? _r : null, _i = function t(e, n, r, o
2252
2252
  if (typeof globalThis < "u" && e === globalThis || typeof hr < "u" && e === hr)
2253
2253
  return "{ [object globalThis] }";
2254
2254
  if (!Bi(e) && !Br(e)) {
2255
- var L = Le(e, d), K = Dr ? Dr(e) === Object.prototype : e instanceof Object || e.constructor === Object, J = e instanceof Object ? "" : "null prototype", S = !K && U && Object(e) === e && U in e ? Gt.call(ie(e), 8, -1) : J ? "Object" : "", A = K || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", x = A + (S || J ? "[" + Z.call(Nr.call([], S || [], J || []), ": ") + "] " : "");
2256
- return L.length === 0 ? x + "{}" : p ? x + "{" + $t(L, p) + "}" : x + "{ " + Z.call(L, ", ") + " }";
2255
+ var L = Le(e, d), K = Dr ? Dr(e) === Object.prototype : e instanceof Object || e.constructor === Object, J = e instanceof Object ? "" : "null prototype", S = !K && U && Object(e) === e && U in e ? Gt.call(ie(e), 8, -1) : J ? "Object" : "", A = K || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", x = A + (S || J ? "[" + te.call(Nr.call([], S || [], J || []), ": ") + "] " : "");
2256
+ return L.length === 0 ? x + "{}" : p ? x + "{" + $t(L, p) + "}" : x + "{ " + te.call(L, ", ") + " }";
2257
2257
  }
2258
2258
  return String(e);
2259
2259
  };
@@ -2427,7 +2427,7 @@ function vt(t) {
2427
2427
  return t + " { ? }";
2428
2428
  }
2429
2429
  function Lr(t, e, n, r) {
2430
- var o = r ? $t(n, r) : Z.call(n, ", ");
2430
+ var o = r ? $t(n, r) : te.call(n, ", ");
2431
2431
  return t + " (" + e + ") {" + o + "}";
2432
2432
  }
2433
2433
  function Xi(t) {
@@ -2442,12 +2442,12 @@ function Yi(t, e) {
2442
2442
  if (t.indent === " ")
2443
2443
  n = " ";
2444
2444
  else if (typeof t.indent == "number" && t.indent > 0)
2445
- n = Z.call(Array(t.indent + 1), " ");
2445
+ n = te.call(Array(t.indent + 1), " ");
2446
2446
  else
2447
2447
  return null;
2448
2448
  return {
2449
2449
  base: n,
2450
- prev: Z.call(Array(e + 1), n)
2450
+ prev: te.call(Array(e + 1), n)
2451
2451
  };
2452
2452
  }
2453
2453
  function $t(t, e) {
@@ -2455,7 +2455,7 @@ function $t(t, e) {
2455
2455
  return "";
2456
2456
  var n = `
2457
2457
  ` + e.prev + e.base;
2458
- return n + Z.call(t, "," + n) + `
2458
+ return n + te.call(t, "," + n) + `
2459
2459
  ` + e.prev;
2460
2460
  }
2461
2461
  function Le(t, e) {
@@ -2544,7 +2544,7 @@ var On = Oe, Re = Si, Zi = _i, es = _e, Ue = On("%WeakMap%", !0), ke = On("%Map%
2544
2544
  },
2545
2545
  RFC1738: bt.RFC1738,
2546
2546
  RFC3986: bt.RFC3986
2547
- }, ds = Vt, wt = Object.prototype.hasOwnProperty, le = Array.isArray, X = function() {
2547
+ }, ds = Vt, wt = Object.prototype.hasOwnProperty, le = Array.isArray, Z = function() {
2548
2548
  for (var t = [], e = 0; e < 256; ++e)
2549
2549
  t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
2550
2550
  return t;
@@ -2615,18 +2615,18 @@ var On = Oe, Re = Si, Zi = _i, es = _e, Ue = On("%WeakMap%", !0), ke = On("%Map%
2615
2615
  continue;
2616
2616
  }
2617
2617
  if (d < 128) {
2618
- c[c.length] = X[d];
2618
+ c[c.length] = Z[d];
2619
2619
  continue;
2620
2620
  }
2621
2621
  if (d < 2048) {
2622
- c[c.length] = X[192 | d >> 6] + X[128 | d & 63];
2622
+ c[c.length] = Z[192 | d >> 6] + Z[128 | d & 63];
2623
2623
  continue;
2624
2624
  }
2625
2625
  if (d < 55296 || d >= 57344) {
2626
- c[c.length] = X[224 | d >> 12] + X[128 | d >> 6 & 63] + X[128 | d & 63];
2626
+ c[c.length] = Z[224 | d >> 12] + Z[128 | d >> 6 & 63] + Z[128 | d & 63];
2627
2627
  continue;
2628
2628
  }
2629
- p += 1, d = 65536 + ((d & 1023) << 10 | l.charCodeAt(p) & 1023), c[c.length] = X[240 | d >> 18] + X[128 | d >> 12 & 63] + X[128 | d >> 6 & 63] + X[128 | d & 63];
2629
+ p += 1, d = 65536 + ((d & 1023) << 10 | l.charCodeAt(p) & 1023), c[c.length] = Z[240 | d >> 18] + Z[128 | d >> 12 & 63] + Z[128 | d >> 6 & 63] + Z[128 | d & 63];
2630
2630
  }
2631
2631
  s += c.join("");
2632
2632
  }
@@ -2673,8 +2673,8 @@ var On = Oe, Re = Si, Zi = _i, es = _e, Ue = On("%WeakMap%", !0), ke = On("%Map%
2673
2673
  repeat: function(e) {
2674
2674
  return e;
2675
2675
  }
2676
- }, Y = Array.isArray, Rs = Array.prototype.push, Cn = function(t, e) {
2677
- Rs.apply(t, Y(e) ? e : [e]);
2676
+ }, ee = Array.isArray, Rs = Array.prototype.push, Cn = function(t, e) {
2677
+ Rs.apply(t, ee(e) ? e : [e]);
2678
2678
  }, Ps = Date.prototype.toISOString, Ur = Ne.default, _ = {
2679
2679
  addQueryPrefix: !1,
2680
2680
  allowDots: !1,
@@ -2708,7 +2708,7 @@ var On = Oe, Re = Si, Zi = _i, es = _e, Ue = On("%WeakMap%", !0), ke = On("%Map%
2708
2708
  }
2709
2709
  typeof D.get(Et) > "u" && (T = 0);
2710
2710
  }
2711
- if (typeof c == "function" ? v = c(n, v) : v instanceof Date ? v = g(v) : r === "comma" && Y(v) && (v = He.maybeMap(v, function(q) {
2711
+ if (typeof c == "function" ? v = c(n, v) : v instanceof Date ? v = g(v) : r === "comma" && ee(v) && (v = He.maybeMap(v, function(q) {
2712
2712
  return q instanceof Date ? g(q) : q;
2713
2713
  })), v === null) {
2714
2714
  if (i)
@@ -2726,21 +2726,21 @@ var On = Oe, Re = Si, Zi = _i, es = _e, Ue = On("%WeakMap%", !0), ke = On("%Map%
2726
2726
  if (typeof v > "u")
2727
2727
  return J;
2728
2728
  var S;
2729
- if (r === "comma" && Y(v))
2729
+ if (r === "comma" && ee(v))
2730
2730
  h && l && (v = He.maybeMap(v, l)), S = [{ value: v.length > 0 ? v.join(",") || null : void 0 }];
2731
- else if (Y(c))
2731
+ else if (ee(c))
2732
2732
  S = c;
2733
2733
  else {
2734
2734
  var A = Object.keys(v);
2735
2735
  S = p ? A.sort(p) : A;
2736
2736
  }
2737
- var x = u ? n.replace(/\./g, "%2E") : n, P = o && Y(v) && v.length === 1 ? x + "[]" : x;
2738
- if (a && Y(v) && v.length === 0)
2737
+ var x = u ? n.replace(/\./g, "%2E") : n, P = o && ee(v) && v.length === 1 ? x + "[]" : x;
2738
+ if (a && ee(v) && v.length === 0)
2739
2739
  return P + "[]";
2740
2740
  for (var F = 0; F < S.length; ++F) {
2741
2741
  var b = S[F], k = typeof b == "object" && typeof b.value < "u" ? b.value : v[b];
2742
2742
  if (!(s && k === null)) {
2743
- var M = d && u ? b.replace(/\./g, "%2E") : b, j = Y(v) ? typeof r == "function" ? r(P, M) : P : P + (d ? "." + M : "[" + M + "]");
2743
+ var M = d && u ? b.replace(/\./g, "%2E") : b, j = ee(v) ? typeof r == "function" ? r(P, M) : P : P + (d ? "." + M : "[" + M + "]");
2744
2744
  R.set(e, T);
2745
2745
  var se = Tn();
2746
2746
  se.set(Et, R), Cn(J, t(
@@ -2752,7 +2752,7 @@ var On = Oe, Re = Si, Zi = _i, es = _e, Ue = On("%WeakMap%", !0), ke = On("%Map%
2752
2752
  i,
2753
2753
  s,
2754
2754
  u,
2755
- r === "comma" && h && Y(v) ? null : l,
2755
+ r === "comma" && h && ee(v) ? null : l,
2756
2756
  c,
2757
2757
  p,
2758
2758
  d,
@@ -2785,7 +2785,7 @@ var On = Oe, Re = Si, Zi = _i, es = _e, Ue = On("%WeakMap%", !0), ke = On("%Map%
2785
2785
  r = e.format;
2786
2786
  }
2787
2787
  var o = Ne.formatters[r], a = _.filter;
2788
- (typeof e.filter == "function" || Y(e.filter)) && (a = e.filter);
2788
+ (typeof e.filter == "function" || ee(e.filter)) && (a = e.filter);
2789
2789
  var i;
2790
2790
  if (e.arrayFormat in xn ? i = e.arrayFormat : "indices" in e ? i = e.indices ? "indices" : "repeat" : i = _.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
2791
2791
  throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
@@ -2813,7 +2813,7 @@ var On = Oe, Re = Si, Zi = _i, es = _e, Ue = On("%WeakMap%", !0), ke = On("%Map%
2813
2813
  };
2814
2814
  }, Ns = function(t, e) {
2815
2815
  var n = t, r = Cs(e), o, a;
2816
- typeof r.filter == "function" ? (a = r.filter, n = a("", n)) : Y(r.filter) && (a = r.filter, o = a);
2816
+ typeof r.filter == "function" ? (a = r.filter, n = a("", n)) : ee(r.filter) && (a = r.filter, o = a);
2817
2817
  var i = [];
2818
2818
  if (typeof n != "object" || n === null)
2819
2819
  return "";
@@ -3101,7 +3101,7 @@ const Qt = We(), Fn = Qt.sso ?? !0, Js = Qt.i18n ?? !0, Dn = Qt.noRedireLogin ??
3101
3101
  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 }));
3102
3102
  }
3103
3103
  return { ...o, code: n, msg: r, error: t };
3104
- }, ee = (t, e) => {
3104
+ }, V = (t, e) => {
3105
3105
  const n = I.create();
3106
3106
  return Ln(n, async (r) => {
3107
3107
  const o = We();
@@ -3126,11 +3126,12 @@ const Qt = We(), Fn = Qt.sso ?? !0, Js = Qt.i18n ?? !0, Dn = Qt.noRedireLogin ??
3126
3126
  }
3127
3127
  return r.params = s, r.headers.Timezone = Ye.tz.guess(), r.headers["X-Origin"] = location.origin, r;
3128
3128
  });
3129
- }, te = "v1";
3130
- ee(`/api/iot/${te}`);
3131
- ee(`/api/iot-device/thingmodel/${te}`), ee(`/api/iot-device/devicemanage/${te}`), ee(`/api/iot-device/product/${te}`), ee(`/api/iot-device/product-storage/${te}`);
3132
- ee(`/api/device-relation/deviceproject/${te}`), ee(`/api/device-relation/devicerule/${te}`), ee(`/api/device-relation/project/${te}`);
3133
- const Xt = ee(`/api/oss/minio/${te}`), Xs = ee(`/api/progress/accessor/${te}`);
3129
+ }, Q = "v1";
3130
+ V(`/api/iot/${Q}`);
3131
+ V(`/api/iot-device/thingmodel/${Q}`), V(`/api/iot-device/devicemanage/${Q}`), V(`/api/iot-device/product/${Q}`), V(`/api/iot-device/product-storage/${Q}`);
3132
+ V(`/api/device-relation/deviceproject/${Q}`), V(`/api/device-relation/devicerule/${Q}`), V(`/api/device-relation/project/${Q}`);
3133
+ const Xt = V(`/api/oss/minio/${Q}`), Xs = V(`/api/progress/accessor/${Q}`);
3134
+ V(`/api/dms/analysis/${Q}`);
3134
3135
  let Ys = (t = 21) => {
3135
3136
  let e = "", n = crypto.getRandomValues(new Uint8Array(t));
3136
3137
  for (; t--; ) {
@@ -3186,16 +3187,16 @@ const Zs = Xt.get("token"), el = Xt.post("put-object", (t) => (t.headers || (t.h
3186
3187
  }
3187
3188
  const [_n, $n] = await ot(j).run();
3188
3189
  if (_n) return t.value = !1;
3189
- const Q = await ol($n.data);
3190
- if (!b && (Q == null ? void 0 : Q.statusCode) != 200 || b && (Q != null && Q.some((re) => (re == null ? void 0 : re.statusCode) != 200))) {
3190
+ const Y = await ol($n.data);
3191
+ if (!b && (Y == null ? void 0 : Y.statusCode) != 200 || b && (Y != null && Y.some((re) => (re == null ? void 0 : re.statusCode) != 200))) {
3191
3192
  t.value = !1, (Yt = window.DasMessage) == null || Yt.error({
3192
- message: (Q == null ? void 0 : Q.errorMsg) || C("上传失败"),
3193
+ message: (Y == null ? void 0 : Y.errorMsg) || C("上传失败"),
3193
3194
  grouping: !0,
3194
3195
  repeatNum: 1
3195
3196
  });
3196
3197
  return;
3197
3198
  }
3198
- const at = await (S == null ? void 0 : S(Q));
3199
+ const at = await (S == null ? void 0 : S(Y));
3199
3200
  if (P) {
3200
3201
  if (!at.status) {
3201
3202
  t.value = !1, r.value = "error";