@das-fed/utils 6.4.0-dev.108 → 6.4.0-dev.109

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 (53) hide show
  1. package/api-services/index.js +881 -899
  2. package/api-services/index.js.gz +0 -0
  3. package/api-services/modules/app-manage/index.js +719 -701
  4. package/api-services/modules/app-manage/index.js.gz +0 -0
  5. package/api-services/modules/authentication/index.js +717 -735
  6. package/api-services/modules/authentication/index.js.gz +0 -0
  7. package/api-services/modules/bems/index.js +369 -369
  8. package/api-services/modules/bems/index.js.gz +0 -0
  9. package/api-services/modules/contract/index.js +717 -735
  10. package/api-services/modules/contract/index.js.gz +0 -0
  11. package/api-services/modules/duty-manage/index.js +369 -369
  12. package/api-services/modules/duty-manage/index.js.gz +0 -0
  13. package/api-services/modules/enterpriseright/index.js +370 -370
  14. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  15. package/api-services/modules/file/index.js +379 -379
  16. package/api-services/modules/file/index.js.gz +0 -0
  17. package/api-services/modules/gateway-edge/index.js +719 -733
  18. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  19. package/api-services/modules/index.js +419 -419
  20. package/api-services/modules/index.js.gz +0 -0
  21. package/api-services/modules/iot/index.js +408 -408
  22. package/api-services/modules/iot/index.js.gz +0 -0
  23. package/api-services/modules/justauth/index.js +745 -763
  24. package/api-services/modules/justauth/index.js.gz +0 -0
  25. package/api-services/modules/knowledge/index.js +370 -370
  26. package/api-services/modules/knowledge/index.js.gz +0 -0
  27. package/api-services/modules/link/index.js +370 -370
  28. package/api-services/modules/link/index.js.gz +0 -0
  29. package/api-services/modules/permission/index.js +370 -370
  30. package/api-services/modules/permission/index.js.gz +0 -0
  31. package/api-services/modules/platformManage/index.js +373 -373
  32. package/api-services/modules/platformManage/index.js.gz +0 -0
  33. package/api-services/modules/portal/index.js +370 -370
  34. package/api-services/modules/portal/index.js.gz +0 -0
  35. package/api-services/modules/space-manage/index.js +717 -735
  36. package/api-services/modules/space-manage/index.js.gz +0 -0
  37. package/api-services/modules/super-admin/index.js +400 -400
  38. package/api-services/modules/super-admin/index.js.gz +0 -0
  39. package/api-services/modules/supplier/index.js +371 -371
  40. package/api-services/modules/supplier/index.js.gz +0 -0
  41. package/api-services/modules/supplychain-manage/index.js +719 -701
  42. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  43. package/api-services/modules/systemConfiguration/index.js +370 -370
  44. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  45. package/api-services/modules/tool/index.js +717 -735
  46. package/api-services/modules/tool/index.js.gz +0 -0
  47. package/api-services/src/create-service/index.js +369 -369
  48. package/api-services/src/create-service/index.js.gz +0 -0
  49. package/common-info/set-personal-info/index.js +170 -167
  50. package/common-info/set-personal-info/index.js.gz +0 -0
  51. package/create-api-service/index.js +369 -369
  52. package/create-api-service/index.js.gz +0 -0
  53. package/package.json +4 -4
@@ -1,32 +1,33 @@
1
- import { getProjectInfo as Ze } from "@das-fed/utils/common-info";
2
- import { getConfig as Ye } from "@das-fed/utils/config";
1
+ import { currentLang as Ze } from "@das-fed/web/packages/i18n/index";
2
+ import { getProjectInfo as Ye } from "@das-fed/utils/common-info";
3
+ import { getConfig as et } from "@das-fed/utils/config";
3
4
  function Ce(e, t) {
4
5
  return function() {
5
6
  return e.apply(t, arguments);
6
7
  };
7
8
  }
8
- const { toString: et } = Object.prototype, { getPrototypeOf: le } = Object, W = /* @__PURE__ */ ((e) => (t) => {
9
- const n = et.call(t);
9
+ const { toString: tt } = Object.prototype, { getPrototypeOf: le } = Object, W = /* @__PURE__ */ ((e) => (t) => {
10
+ const n = tt.call(t);
10
11
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
11
12
  })(/* @__PURE__ */ Object.create(null)), C = (e) => (e = e.toLowerCase(), (t) => W(t) === e), K = (e) => (t) => typeof t === e, { isArray: U } = Array, q = K("undefined");
12
- function tt(e) {
13
+ function nt(e) {
13
14
  return e !== null && !q(e) && e.constructor !== null && !q(e.constructor) && x(e.constructor.isBuffer) && e.constructor.isBuffer(e);
14
15
  }
15
16
  const Ne = C("ArrayBuffer");
16
- function nt(e) {
17
+ function rt(e) {
17
18
  let t;
18
19
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Ne(e.buffer), t;
19
20
  }
20
- const rt = K("string"), x = K("function"), Pe = K("number"), X = (e) => e !== null && typeof e == "object", st = (e) => e === !0 || e === !1, z = (e) => {
21
+ const st = K("string"), x = K("function"), Pe = K("number"), X = (e) => e !== null && typeof e == "object", ot = (e) => e === !0 || e === !1, z = (e) => {
21
22
  if (W(e) !== "object")
22
23
  return !1;
23
24
  const t = le(e);
24
25
  return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
25
- }, ot = C("Date"), it = C("File"), at = C("Blob"), ct = C("FileList"), lt = (e) => X(e) && x(e.pipe), ut = (e) => {
26
+ }, it = C("Date"), at = C("File"), ct = C("Blob"), lt = C("FileList"), ut = (e) => X(e) && x(e.pipe), ft = (e) => {
26
27
  let t;
27
28
  return e && (typeof FormData == "function" && e instanceof FormData || x(e.append) && ((t = W(e)) === "formdata" || // detect form-data instance
28
29
  t === "object" && x(e.toString) && e.toString() === "[object FormData]"));
29
- }, ft = C("URLSearchParams"), [dt, pt, ht, mt] = ["ReadableStream", "Request", "Response", "Headers"].map(C), yt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
30
+ }, dt = C("URLSearchParams"), [pt, ht, mt, yt] = ["ReadableStream", "Request", "Response", "Headers"].map(C), bt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
30
31
  function I(e, t, { allOwnKeys: n = !1 } = {}) {
31
32
  if (e === null || typeof e > "u")
32
33
  return;
@@ -60,13 +61,13 @@ function re() {
60
61
  arguments[r] && I(arguments[r], n);
61
62
  return t;
62
63
  }
63
- const bt = (e, t, n, { allOwnKeys: r } = {}) => (I(t, (s, o) => {
64
+ const wt = (e, t, n, { allOwnKeys: r } = {}) => (I(t, (s, o) => {
64
65
  n && x(s) ? e[o] = Ce(s, n) : e[o] = s;
65
- }, { allOwnKeys: r }), e), wt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Et = (e, t, n, r) => {
66
+ }, { allOwnKeys: r }), e), Et = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), gt = (e, t, n, r) => {
66
67
  e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
67
68
  value: t.prototype
68
69
  }), n && Object.assign(e.prototype, n);
69
- }, gt = (e, t, n, r) => {
70
+ }, Rt = (e, t, n, r) => {
70
71
  let s, o, i;
71
72
  const c = {};
72
73
  if (t = t || {}, e == null) return t;
@@ -76,11 +77,11 @@ const bt = (e, t, n, { allOwnKeys: r } = {}) => (I(t, (s, o) => {
76
77
  e = n !== !1 && le(e);
77
78
  } while (e && (!n || n(e, t)) && e !== Object.prototype);
78
79
  return t;
79
- }, Rt = (e, t, n) => {
80
+ }, St = (e, t, n) => {
80
81
  e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
81
82
  const r = e.indexOf(t, n);
82
83
  return r !== -1 && r === n;
83
- }, St = (e) => {
84
+ }, Ot = (e) => {
84
85
  if (!e) return null;
85
86
  if (U(e)) return e;
86
87
  let t = e.length;
@@ -89,31 +90,31 @@ const bt = (e, t, n, { allOwnKeys: r } = {}) => (I(t, (s, o) => {
89
90
  for (; t-- > 0; )
90
91
  n[t] = e[t];
91
92
  return n;
92
- }, Ot = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && le(Uint8Array)), Tt = (e, t) => {
93
+ }, Tt = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && le(Uint8Array)), At = (e, t) => {
93
94
  const r = (e && e[Symbol.iterator]).call(e);
94
95
  let s;
95
96
  for (; (s = r.next()) && !s.done; ) {
96
97
  const o = s.value;
97
98
  t.call(e, o[0], o[1]);
98
99
  }
99
- }, At = (e, t) => {
100
+ }, xt = (e, t) => {
100
101
  let n;
101
102
  const r = [];
102
103
  for (; (n = e.exec(t)) !== null; )
103
104
  r.push(n);
104
105
  return r;
105
- }, xt = C("HTMLFormElement"), Ct = (e) => e.toLowerCase().replace(
106
+ }, Ct = C("HTMLFormElement"), Nt = (e) => e.toLowerCase().replace(
106
107
  /[-_\s]([a-z\d])(\w*)/g,
107
108
  function(n, r, s) {
108
109
  return r.toUpperCase() + s;
109
110
  }
110
- ), pe = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Nt = C("RegExp"), Le = (e, t) => {
111
+ ), pe = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Pt = C("RegExp"), Le = (e, t) => {
111
112
  const n = Object.getOwnPropertyDescriptors(e), r = {};
112
113
  I(n, (s, o) => {
113
114
  let i;
114
115
  (i = t(s, o, e)) !== !1 && (r[o] = i || s);
115
116
  }), Object.defineProperties(e, r);
116
- }, Pt = (e) => {
117
+ }, _t = (e) => {
117
118
  Le(e, (t, n) => {
118
119
  if (x(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
119
120
  return !1;
@@ -128,29 +129,29 @@ const bt = (e, t, n, { allOwnKeys: r } = {}) => (I(t, (s, o) => {
128
129
  });
129
130
  }
130
131
  });
131
- }, _t = (e, t) => {
132
+ }, Ft = (e, t) => {
132
133
  const n = {}, r = (s) => {
133
134
  s.forEach((o) => {
134
135
  n[o] = !0;
135
136
  });
136
137
  };
137
138
  return U(e) ? r(e) : r(String(e).split(t)), n;
138
- }, Ft = () => {
139
- }, Lt = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, Y = "abcdefghijklmnopqrstuvwxyz", he = "0123456789", Be = {
139
+ }, Lt = () => {
140
+ }, Bt = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, Y = "abcdefghijklmnopqrstuvwxyz", he = "0123456789", Be = {
140
141
  DIGIT: he,
141
142
  ALPHA: Y,
142
143
  ALPHA_DIGIT: Y + Y.toUpperCase() + he
143
- }, Bt = (e = 16, t = Be.ALPHA_DIGIT) => {
144
+ }, Dt = (e = 16, t = Be.ALPHA_DIGIT) => {
144
145
  let n = "";
145
146
  const { length: r } = t;
146
147
  for (; e--; )
147
148
  n += t[Math.random() * r | 0];
148
149
  return n;
149
150
  };
150
- function Dt(e) {
151
+ function Ut(e) {
151
152
  return !!(e && x(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
152
153
  }
153
- const Ut = (e) => {
154
+ const kt = (e) => {
154
155
  const t = new Array(10), n = (r, s) => {
155
156
  if (X(r)) {
156
157
  if (t.indexOf(r) >= 0)
@@ -167,72 +168,72 @@ const Ut = (e) => {
167
168
  return r;
168
169
  };
169
170
  return n(e, 0);
170
- }, kt = C("AsyncFunction"), jt = (e) => e && (X(e) || x(e)) && x(e.then) && x(e.catch), De = ((e, t) => e ? setImmediate : t ? ((n, r) => (L.addEventListener("message", ({ source: s, data: o }) => {
171
+ }, jt = C("AsyncFunction"), qt = (e) => e && (X(e) || x(e)) && x(e.then) && x(e.catch), De = ((e, t) => e ? setImmediate : t ? ((n, r) => (L.addEventListener("message", ({ source: s, data: o }) => {
171
172
  s === L && o === n && r.length && r.shift()();
172
173
  }, !1), (s) => {
173
174
  r.push(s), L.postMessage(n, "*");
174
175
  }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
175
176
  typeof setImmediate == "function",
176
177
  x(L.postMessage)
177
- ), qt = typeof queueMicrotask < "u" ? queueMicrotask.bind(L) : typeof process < "u" && process.nextTick || De, a = {
178
+ ), It = typeof queueMicrotask < "u" ? queueMicrotask.bind(L) : typeof process < "u" && process.nextTick || De, a = {
178
179
  isArray: U,
179
180
  isArrayBuffer: Ne,
180
- isBuffer: tt,
181
- isFormData: ut,
182
- isArrayBufferView: nt,
183
- isString: rt,
181
+ isBuffer: nt,
182
+ isFormData: ft,
183
+ isArrayBufferView: rt,
184
+ isString: st,
184
185
  isNumber: Pe,
185
- isBoolean: st,
186
+ isBoolean: ot,
186
187
  isObject: X,
187
188
  isPlainObject: z,
188
- isReadableStream: dt,
189
- isRequest: pt,
190
- isResponse: ht,
191
- isHeaders: mt,
189
+ isReadableStream: pt,
190
+ isRequest: ht,
191
+ isResponse: mt,
192
+ isHeaders: yt,
192
193
  isUndefined: q,
193
- isDate: ot,
194
- isFile: it,
195
- isBlob: at,
196
- isRegExp: Nt,
194
+ isDate: it,
195
+ isFile: at,
196
+ isBlob: ct,
197
+ isRegExp: Pt,
197
198
  isFunction: x,
198
- isStream: lt,
199
- isURLSearchParams: ft,
200
- isTypedArray: Ot,
201
- isFileList: ct,
199
+ isStream: ut,
200
+ isURLSearchParams: dt,
201
+ isTypedArray: Tt,
202
+ isFileList: lt,
202
203
  forEach: I,
203
204
  merge: re,
204
- extend: bt,
205
- trim: yt,
206
- stripBOM: wt,
207
- inherits: Et,
208
- toFlatObject: gt,
205
+ extend: wt,
206
+ trim: bt,
207
+ stripBOM: Et,
208
+ inherits: gt,
209
+ toFlatObject: Rt,
209
210
  kindOf: W,
210
211
  kindOfTest: C,
211
- endsWith: Rt,
212
- toArray: St,
213
- forEachEntry: Tt,
214
- matchAll: At,
215
- isHTMLForm: xt,
212
+ endsWith: St,
213
+ toArray: Ot,
214
+ forEachEntry: At,
215
+ matchAll: xt,
216
+ isHTMLForm: Ct,
216
217
  hasOwnProperty: pe,
217
218
  hasOwnProp: pe,
218
219
  // an alias to avoid ESLint no-prototype-builtins detection
219
220
  reduceDescriptors: Le,
220
- freezeMethods: Pt,
221
- toObjectSet: _t,
222
- toCamelCase: Ct,
223
- noop: Ft,
224
- toFiniteNumber: Lt,
221
+ freezeMethods: _t,
222
+ toObjectSet: Ft,
223
+ toCamelCase: Nt,
224
+ noop: Lt,
225
+ toFiniteNumber: Bt,
225
226
  findKey: _e,
226
227
  global: L,
227
228
  isContextDefined: Fe,
228
229
  ALPHABET: Be,
229
- generateString: Bt,
230
- isSpecCompliantForm: Dt,
231
- toJSONObject: Ut,
232
- isAsyncFn: kt,
233
- isThenable: jt,
230
+ generateString: Dt,
231
+ isSpecCompliantForm: Ut,
232
+ toJSONObject: kt,
233
+ isAsyncFn: jt,
234
+ isThenable: qt,
234
235
  setImmediate: De,
235
- asap: qt
236
+ asap: It
236
237
  };
237
238
  function m(e, t, n, r, s) {
238
239
  Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), s && (this.response = s, this.status = s.status ? s.status : null);
@@ -284,7 +285,7 @@ m.from = (e, t, n, r, s, o) => {
284
285
  return f !== Error.prototype;
285
286
  }, (c) => c !== "isAxiosError"), m.call(i, e.message, t, n, r, s), i.cause = e, i.name = e.name, o && Object.assign(i, o), i;
286
287
  };
287
- const It = null;
288
+ const Ht = null;
288
289
  function se(e) {
289
290
  return a.isPlainObject(e) || a.isArray(e);
290
291
  }
@@ -296,10 +297,10 @@ function me(e, t, n) {
296
297
  return s = je(s), !n && o ? "[" + s + "]" : s;
297
298
  }).join(n ? "." : "") : t;
298
299
  }
299
- function Ht(e) {
300
+ function Mt(e) {
300
301
  return a.isArray(e) && !e.some(se);
301
302
  }
302
- const Mt = a.toFlatObject(a, {}, null, function(t) {
303
+ const zt = a.toFlatObject(a, {}, null, function(t) {
303
304
  return /^is[A-Z]/.test(t);
304
305
  });
305
306
  function G(e, t, n) {
@@ -328,7 +329,7 @@ function G(e, t, n) {
328
329
  if (p && !h && typeof p == "object") {
329
330
  if (a.endsWith(y, "{}"))
330
331
  y = r ? y : y.slice(0, -2), p = JSON.stringify(p);
331
- else if (a.isArray(p) && Ht(p) || (a.isFileList(p) || a.endsWith(y, "[]")) && (w = a.toArray(p)))
332
+ else if (a.isArray(p) && Mt(p) || (a.isFileList(p) || a.endsWith(y, "[]")) && (w = a.toArray(p)))
332
333
  return y = je(y), w.forEach(function(S, P) {
333
334
  !(a.isUndefined(S) || S === null) && t.append(
334
335
  // eslint-disable-next-line no-nested-ternary
@@ -339,7 +340,7 @@ function G(e, t, n) {
339
340
  }
340
341
  return se(p) ? !0 : (t.append(me(h, y, o), l(p)), !1);
341
342
  }
342
- const d = [], b = Object.assign(Mt, {
343
+ const d = [], b = Object.assign(zt, {
343
344
  defaultVisitor: u,
344
345
  convertValue: l,
345
346
  isVisitable: se
@@ -392,13 +393,13 @@ qe.toString = function(t) {
392
393
  return n(s[0]) + "=" + n(s[1]);
393
394
  }, "").join("&");
394
395
  };
395
- function zt(e) {
396
+ function $t(e) {
396
397
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
397
398
  }
398
399
  function Ie(e, t, n) {
399
400
  if (!t)
400
401
  return e;
401
- const r = n && n.encode || zt;
402
+ const r = n && n.encode || $t;
402
403
  a.isFunction(n) && (n = {
403
404
  serialize: n
404
405
  });
@@ -468,37 +469,37 @@ const He = {
468
469
  silentJSONParsing: !0,
469
470
  forcedJSONParsing: !0,
470
471
  clarifyTimeoutError: !1
471
- }, $t = typeof URLSearchParams < "u" ? URLSearchParams : ue, Jt = typeof FormData < "u" ? FormData : null, Vt = typeof Blob < "u" ? Blob : null, vt = {
472
+ }, Jt = typeof URLSearchParams < "u" ? URLSearchParams : ue, Vt = typeof FormData < "u" ? FormData : null, vt = typeof Blob < "u" ? Blob : null, Wt = {
472
473
  isBrowser: !0,
473
474
  classes: {
474
- URLSearchParams: $t,
475
- FormData: Jt,
476
- Blob: Vt
475
+ URLSearchParams: Jt,
476
+ FormData: Vt,
477
+ Blob: vt
477
478
  },
478
479
  protocols: ["http", "https", "file", "blob", "url", "data"]
479
- }, fe = typeof window < "u" && typeof document < "u", oe = typeof navigator == "object" && navigator || void 0, Wt = fe && (!oe || ["ReactNative", "NativeScript", "NS"].indexOf(oe.product) < 0), Kt = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
480
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Xt = fe && window.location.href || "http://localhost", Gt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
480
+ }, fe = typeof window < "u" && typeof document < "u", oe = typeof navigator == "object" && navigator || void 0, Kt = fe && (!oe || ["ReactNative", "NativeScript", "NS"].indexOf(oe.product) < 0), Xt = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
481
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Gt = fe && window.location.href || "http://localhost", Qt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
481
482
  __proto__: null,
482
483
  hasBrowserEnv: fe,
483
- hasStandardBrowserEnv: Wt,
484
- hasStandardBrowserWebWorkerEnv: Kt,
484
+ hasStandardBrowserEnv: Kt,
485
+ hasStandardBrowserWebWorkerEnv: Xt,
485
486
  navigator: oe,
486
- origin: Xt
487
+ origin: Gt
487
488
  }, Symbol.toStringTag, { value: "Module" })), O = {
488
- ...Gt,
489
- ...vt
489
+ ...Qt,
490
+ ...Wt
490
491
  };
491
- function Qt(e, t) {
492
+ function Zt(e, t) {
492
493
  return G(e, new O.classes.URLSearchParams(), Object.assign({
493
494
  visitor: function(n, r, s, o) {
494
495
  return O.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
495
496
  }
496
497
  }, t));
497
498
  }
498
- function Zt(e) {
499
+ function Yt(e) {
499
500
  return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
500
501
  }
501
- function Yt(e) {
502
+ function en(e) {
502
503
  const t = {}, n = Object.keys(e);
503
504
  let r;
504
505
  const s = n.length;
@@ -512,17 +513,17 @@ function Me(e) {
512
513
  let i = n[o++];
513
514
  if (i === "__proto__") return !0;
514
515
  const c = Number.isFinite(+i), f = o >= n.length;
515
- return i = !i && a.isArray(s) ? s.length : i, f ? (a.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !c) : ((!s[i] || !a.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && a.isArray(s[i]) && (s[i] = Yt(s[i])), !c);
516
+ return i = !i && a.isArray(s) ? s.length : i, f ? (a.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !c) : ((!s[i] || !a.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && a.isArray(s[i]) && (s[i] = en(s[i])), !c);
516
517
  }
517
518
  if (a.isFormData(e) && a.isFunction(e.entries)) {
518
519
  const n = {};
519
520
  return a.forEachEntry(e, (r, s) => {
520
- t(Zt(r), s, n, 0);
521
+ t(Yt(r), s, n, 0);
521
522
  }), n;
522
523
  }
523
524
  return null;
524
525
  }
525
- function en(e, t, n) {
526
+ function tn(e, t, n) {
526
527
  if (a.isString(e))
527
528
  try {
528
529
  return (t || JSON.parse)(e), a.trim(e);
@@ -548,7 +549,7 @@ const H = {
548
549
  let c;
549
550
  if (o) {
550
551
  if (r.indexOf("application/x-www-form-urlencoded") > -1)
551
- return Qt(t, this.formSerializer).toString();
552
+ return Zt(t, this.formSerializer).toString();
552
553
  if ((c = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
553
554
  const f = this.env && this.env.FormData;
554
555
  return G(
@@ -558,7 +559,7 @@ const H = {
558
559
  );
559
560
  }
560
561
  }
561
- return o || s ? (n.setContentType("application/json", !1), en(t)) : t;
562
+ return o || s ? (n.setContentType("application/json", !1), tn(t)) : t;
562
563
  }],
563
564
  transformResponse: [function(t) {
564
565
  const n = this.transitional || H.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
@@ -601,7 +602,7 @@ const H = {
601
602
  a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
602
603
  H.headers[e] = {};
603
604
  });
604
- const tn = a.toObjectSet([
605
+ const nn = a.toObjectSet([
605
606
  "age",
606
607
  "authorization",
607
608
  "content-length",
@@ -619,12 +620,12 @@ const tn = a.toObjectSet([
619
620
  "referer",
620
621
  "retry-after",
621
622
  "user-agent"
622
- ]), nn = (e) => {
623
+ ]), rn = (e) => {
623
624
  const t = {};
624
625
  let n, r, s;
625
626
  return e && e.split(`
626
627
  `).forEach(function(i) {
627
- s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && tn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
628
+ s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && nn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
628
629
  }), t;
629
630
  }, we = Symbol("internals");
630
631
  function j(e) {
@@ -633,14 +634,14 @@ function j(e) {
633
634
  function $(e) {
634
635
  return e === !1 || e == null ? e : a.isArray(e) ? e.map($) : String(e);
635
636
  }
636
- function rn(e) {
637
+ function sn(e) {
637
638
  const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
638
639
  let r;
639
640
  for (; r = n.exec(e); )
640
641
  t[r[1]] = r[2];
641
642
  return t;
642
643
  }
643
- const sn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
644
+ const on = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
644
645
  function ee(e, t, n, r, s) {
645
646
  if (a.isFunction(r))
646
647
  return r.call(this, t, n);
@@ -651,10 +652,10 @@ function ee(e, t, n, r, s) {
651
652
  return r.test(t);
652
653
  }
653
654
  }
654
- function on(e) {
655
+ function an(e) {
655
656
  return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
656
657
  }
657
- function an(e, t) {
658
+ function cn(e, t) {
658
659
  const n = a.toCamelCase(" " + t);
659
660
  ["get", "set", "has"].forEach((r) => {
660
661
  Object.defineProperty(e, r + n, {
@@ -681,8 +682,8 @@ let A = class {
681
682
  const i = (c, f) => a.forEach(c, (l, u) => o(l, u, f));
682
683
  if (a.isPlainObject(t) || t instanceof this.constructor)
683
684
  i(t, n);
684
- else if (a.isString(t) && (t = t.trim()) && !sn(t))
685
- i(nn(t), n);
685
+ else if (a.isString(t) && (t = t.trim()) && !on(t))
686
+ i(rn(t), n);
686
687
  else if (a.isHeaders(t))
687
688
  for (const [c, f] of t.entries())
688
689
  o(f, c, r);
@@ -698,7 +699,7 @@ let A = class {
698
699
  if (!n)
699
700
  return s;
700
701
  if (n === !0)
701
- return rn(s);
702
+ return sn(s);
702
703
  if (a.isFunction(n))
703
704
  return n.call(this, s, r);
704
705
  if (a.isRegExp(n))
@@ -742,7 +743,7 @@ let A = class {
742
743
  n[i] = $(s), delete n[o];
743
744
  return;
744
745
  }
745
- const c = t ? on(o) : String(o).trim();
746
+ const c = t ? an(o) : String(o).trim();
746
747
  c !== o && delete n[o], n[c] = $(s), r[c] = !0;
747
748
  }), this;
748
749
  }
@@ -778,7 +779,7 @@ let A = class {
778
779
  }).accessors, s = this.prototype;
779
780
  function o(i) {
780
781
  const c = j(i);
781
- r[c] || (an(s, i), r[c] = !0);
782
+ r[c] || (cn(s, i), r[c] = !0);
782
783
  }
783
784
  return a.isArray(t) ? t.forEach(o) : o(t), this;
784
785
  }
@@ -820,11 +821,11 @@ function $e(e, t, n) {
820
821
  n
821
822
  ));
822
823
  }
823
- function cn(e) {
824
+ function ln(e) {
824
825
  const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
825
826
  return t && t[1] || "";
826
827
  }
827
- function ln(e, t) {
828
+ function un(e, t) {
828
829
  e = e || 10;
829
830
  const n = new Array(e), r = new Array(e);
830
831
  let s = 0, o = 0, i;
@@ -840,7 +841,7 @@ function ln(e, t) {
840
841
  return g ? Math.round(b * 1e3 / g) : void 0;
841
842
  };
842
843
  }
843
- function un(e, t) {
844
+ function fn(e, t) {
844
845
  let n = 0, r = 1e3 / t, s, o;
845
846
  const i = (l, u = Date.now()) => {
846
847
  n = u, s = null, o && (clearTimeout(o), o = null), e.apply(null, l);
@@ -854,8 +855,8 @@ function un(e, t) {
854
855
  }
855
856
  const V = (e, t, n = 3) => {
856
857
  let r = 0;
857
- const s = ln(50, 250);
858
- return un((o) => {
858
+ const s = un(50, 250);
859
+ return fn((o) => {
859
860
  const i = o.loaded, c = o.lengthComputable ? o.total : void 0, f = i - r, l = s(f), u = i <= c;
860
861
  r = i;
861
862
  const d = {
@@ -878,10 +879,10 @@ const V = (e, t, n = 3) => {
878
879
  total: e,
879
880
  loaded: r
880
881
  }), t[1]];
881
- }, ge = (e) => (...t) => a.asap(() => e(...t)), fn = O.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, O.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
882
+ }, ge = (e) => (...t) => a.asap(() => e(...t)), dn = O.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, O.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
882
883
  new URL(O.origin),
883
884
  O.navigator && /(msie|trident)/i.test(O.navigator.userAgent)
884
- ) : () => !0, dn = O.hasStandardBrowserEnv ? (
885
+ ) : () => !0, pn = O.hasStandardBrowserEnv ? (
885
886
  // Standard browser envs support document.cookie
886
887
  {
887
888
  write(e, t, n, r, s, o) {
@@ -908,14 +909,14 @@ const V = (e, t, n = 3) => {
908
909
  }
909
910
  }
910
911
  );
911
- function pn(e) {
912
+ function hn(e) {
912
913
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
913
914
  }
914
- function hn(e, t) {
915
+ function mn(e, t) {
915
916
  return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
916
917
  }
917
918
  function Je(e, t) {
918
- return e && !pn(t) ? hn(e, t) : t;
919
+ return e && !hn(t) ? mn(e, t) : t;
919
920
  }
920
921
  const Re = (e) => e instanceof A ? { ...e } : e;
921
922
  function D(e, t) {
@@ -998,12 +999,12 @@ const Ve = (e) => {
998
999
  i.setContentType([l || "multipart/form-data", ...u].join("; "));
999
1000
  }
1000
1001
  }
1001
- if (O.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && fn(t.url))) {
1002
- const l = s && o && dn.read(o);
1002
+ if (O.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && dn(t.url))) {
1003
+ const l = s && o && pn.read(o);
1003
1004
  l && i.set(s, l);
1004
1005
  }
1005
1006
  return t;
1006
- }, mn = typeof XMLHttpRequest < "u", yn = mn && function(e) {
1007
+ }, yn = typeof XMLHttpRequest < "u", bn = yn && function(e) {
1007
1008
  return new Promise(function(n, r) {
1008
1009
  const s = Ve(e);
1009
1010
  let o = s.data;
@@ -1053,14 +1054,14 @@ const Ve = (e) => {
1053
1054
  }), a.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), c && c !== "json" && (h.responseType = s.responseType), l && ([b, p] = V(l, !0), h.addEventListener("progress", b)), f && h.upload && ([d, g] = V(f), h.upload.addEventListener("progress", d), h.upload.addEventListener("loadend", g)), (s.cancelToken || s.signal) && (u = (S) => {
1054
1055
  h && (r(!S || S.type ? new k(null, e, h) : S), h.abort(), h = null);
1055
1056
  }, s.cancelToken && s.cancelToken.subscribe(u), s.signal && (s.signal.aborted ? u() : s.signal.addEventListener("abort", u)));
1056
- const R = cn(s.url);
1057
+ const R = ln(s.url);
1057
1058
  if (R && O.protocols.indexOf(R) === -1) {
1058
1059
  r(new m("Unsupported protocol " + R + ":", m.ERR_BAD_REQUEST, e));
1059
1060
  return;
1060
1061
  }
1061
1062
  h.send(o || null);
1062
1063
  });
1063
- }, bn = (e, t) => {
1064
+ }, wn = (e, t) => {
1064
1065
  const { length: n } = e = e ? e.filter(Boolean) : [];
1065
1066
  if (t || n) {
1066
1067
  let r = new AbortController(), s;
@@ -1083,7 +1084,7 @@ const Ve = (e) => {
1083
1084
  const { signal: f } = r;
1084
1085
  return f.unsubscribe = () => a.asap(c), f;
1085
1086
  }
1086
- }, wn = function* (e, t) {
1087
+ }, En = function* (e, t) {
1087
1088
  let n = e.byteLength;
1088
1089
  if (n < t) {
1089
1090
  yield e;
@@ -1092,10 +1093,10 @@ const Ve = (e) => {
1092
1093
  let r = 0, s;
1093
1094
  for (; r < n; )
1094
1095
  s = r + t, yield e.slice(r, s), r = s;
1095
- }, En = async function* (e, t) {
1096
- for await (const n of gn(e))
1097
- yield* wn(n, t);
1098
- }, gn = async function* (e) {
1096
+ }, gn = async function* (e, t) {
1097
+ for await (const n of Rn(e))
1098
+ yield* En(n, t);
1099
+ }, Rn = async function* (e) {
1099
1100
  if (e[Symbol.asyncIterator]) {
1100
1101
  yield* e;
1101
1102
  return;
@@ -1112,7 +1113,7 @@ const Ve = (e) => {
1112
1113
  await t.cancel();
1113
1114
  }
1114
1115
  }, Se = (e, t, n, r) => {
1115
- const s = En(e, t);
1116
+ const s = gn(e, t);
1116
1117
  let o = 0, i, c = (f) => {
1117
1118
  i || (i = !0, r && r(f));
1118
1119
  };
@@ -1140,13 +1141,13 @@ const Ve = (e) => {
1140
1141
  }, {
1141
1142
  highWaterMark: 2
1142
1143
  });
1143
- }, Q = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", ve = Q && typeof ReadableStream == "function", Rn = Q && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), We = (e, ...t) => {
1144
+ }, Q = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", ve = Q && typeof ReadableStream == "function", Sn = Q && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), We = (e, ...t) => {
1144
1145
  try {
1145
1146
  return !!e(...t);
1146
1147
  } catch {
1147
1148
  return !1;
1148
1149
  }
1149
- }, Sn = ve && We(() => {
1150
+ }, On = ve && We(() => {
1150
1151
  let e = !1;
1151
1152
  const t = new Request(O.origin, {
1152
1153
  body: new ReadableStream(),
@@ -1166,7 +1167,7 @@ Q && ((e) => {
1166
1167
  });
1167
1168
  });
1168
1169
  })(new Response());
1169
- const On = async (e) => {
1170
+ const Tn = async (e) => {
1170
1171
  if (e == null)
1171
1172
  return 0;
1172
1173
  if (a.isBlob(e))
@@ -1179,11 +1180,11 @@ const On = async (e) => {
1179
1180
  if (a.isArrayBufferView(e) || a.isArrayBuffer(e))
1180
1181
  return e.byteLength;
1181
1182
  if (a.isURLSearchParams(e) && (e = e + ""), a.isString(e))
1182
- return (await Rn(e)).byteLength;
1183
- }, Tn = async (e, t) => {
1183
+ return (await Sn(e)).byteLength;
1184
+ }, An = async (e, t) => {
1184
1185
  const n = a.toFiniteNumber(e.getContentLength());
1185
- return n ?? On(t);
1186
- }, An = Q && (async (e) => {
1186
+ return n ?? Tn(t);
1187
+ }, xn = Q && (async (e) => {
1187
1188
  let {
1188
1189
  url: t,
1189
1190
  method: n,
@@ -1199,13 +1200,13 @@ const On = async (e) => {
1199
1200
  fetchOptions: b
1200
1201
  } = Ve(e);
1201
1202
  l = l ? (l + "").toLowerCase() : "text";
1202
- let g = bn([s, o && o.toAbortSignal()], i), p;
1203
+ let g = wn([s, o && o.toAbortSignal()], i), p;
1203
1204
  const y = g && g.unsubscribe && (() => {
1204
1205
  g.unsubscribe();
1205
1206
  });
1206
1207
  let h;
1207
1208
  try {
1208
- if (f && Sn && n !== "get" && n !== "head" && (h = await Tn(u, r)) !== 0) {
1209
+ if (f && On && n !== "get" && n !== "head" && (h = await An(u, r)) !== 0) {
1209
1210
  let T = new Request(t, {
1210
1211
  method: "POST",
1211
1212
  body: r,
@@ -1269,9 +1270,9 @@ const On = async (e) => {
1269
1270
  ) : m.from(w, w && w.code, e, p);
1270
1271
  }
1271
1272
  }), ae = {
1272
- http: It,
1273
- xhr: yn,
1274
- fetch: An
1273
+ http: Ht,
1274
+ xhr: bn,
1275
+ fetch: xn
1275
1276
  };
1276
1277
  a.forEach(ae, (e, t) => {
1277
1278
  if (e) {
@@ -1282,7 +1283,7 @@ a.forEach(ae, (e, t) => {
1282
1283
  Object.defineProperty(e, "adapterName", { value: t });
1283
1284
  }
1284
1285
  });
1285
- const Te = (e) => `- ${e}`, xn = (e) => a.isFunction(e) || e === null || e === !1, Ke = {
1286
+ const Te = (e) => `- ${e}`, Cn = (e) => a.isFunction(e) || e === null || e === !1, Ke = {
1286
1287
  getAdapter: (e) => {
1287
1288
  e = a.isArray(e) ? e : [e];
1288
1289
  const { length: t } = e;
@@ -1291,7 +1292,7 @@ const Te = (e) => `- ${e}`, xn = (e) => a.isFunction(e) || e === null || e === !
1291
1292
  for (let o = 0; o < t; o++) {
1292
1293
  n = e[o];
1293
1294
  let i;
1294
- if (r = n, !xn(n) && (r = ae[(i = String(n)).toLowerCase()], r === void 0))
1295
+ if (r = n, !Cn(n) && (r = ae[(i = String(n)).toLowerCase()], r === void 0))
1295
1296
  throw new m(`Unknown adapter '${i}'`);
1296
1297
  if (r)
1297
1298
  break;
@@ -1358,7 +1359,7 @@ Z.transitional = function(t, n, r) {
1358
1359
  Z.spelling = function(t) {
1359
1360
  return (n, r) => !0;
1360
1361
  };
1361
- function Cn(e, t, n) {
1362
+ function Nn(e, t, n) {
1362
1363
  if (typeof e != "object")
1363
1364
  throw new m("options must be an object", m.ERR_BAD_OPTION_VALUE);
1364
1365
  const r = Object.keys(e);
@@ -1376,7 +1377,7 @@ function Cn(e, t, n) {
1376
1377
  }
1377
1378
  }
1378
1379
  const J = {
1379
- assertOptions: Cn,
1380
+ assertOptions: Nn,
1380
1381
  validators: Z
1381
1382
  }, N = J.validators;
1382
1383
  let B = class {
@@ -1503,7 +1504,7 @@ a.forEach(["post", "put", "patch"], function(t) {
1503
1504
  }
1504
1505
  B.prototype[t] = n(), B.prototype[t + "Form"] = n(!0);
1505
1506
  });
1506
- let Nn = class Ge {
1507
+ let Pn = class Ge {
1507
1508
  constructor(t) {
1508
1509
  if (typeof t != "function")
1509
1510
  throw new TypeError("executor must be a function.");
@@ -1576,12 +1577,12 @@ let Nn = class Ge {
1576
1577
  };
1577
1578
  }
1578
1579
  };
1579
- function Pn(e) {
1580
+ function _n(e) {
1580
1581
  return function(n) {
1581
1582
  return e.apply(null, n);
1582
1583
  };
1583
1584
  }
1584
- function _n(e) {
1585
+ function Fn(e) {
1585
1586
  return a.isObject(e) && e.isAxiosError === !0;
1586
1587
  }
1587
1588
  const ce = {
@@ -1661,7 +1662,7 @@ function Qe(e) {
1661
1662
  const E = Qe(H);
1662
1663
  E.Axios = B;
1663
1664
  E.CanceledError = k;
1664
- E.CancelToken = Nn;
1665
+ E.CancelToken = Pn;
1665
1666
  E.isCancel = ze;
1666
1667
  E.VERSION = Xe;
1667
1668
  E.toFormData = G;
@@ -1670,8 +1671,8 @@ E.Cancel = E.CanceledError;
1670
1671
  E.all = function(t) {
1671
1672
  return Promise.all(t);
1672
1673
  };
1673
- E.spread = Pn;
1674
- E.isAxiosError = _n;
1674
+ E.spread = _n;
1675
+ E.isAxiosError = Fn;
1675
1676
  E.mergeConfig = D;
1676
1677
  E.AxiosHeaders = A;
1677
1678
  E.formToJSON = (e) => Me(a.isHTMLForm(e) ? new FormData(e) : e);
@@ -1679,36 +1680,38 @@ E.getAdapter = Ke.getAdapter;
1679
1680
  E.HttpStatusCode = ce;
1680
1681
  E.default = E;
1681
1682
  const {
1682
- Axios: Un,
1683
- AxiosError: kn,
1684
- CanceledError: jn,
1685
- isCancel: qn,
1686
- CancelToken: In,
1687
- VERSION: Hn,
1688
- all: Mn,
1689
- Cancel: zn,
1690
- isAxiosError: $n,
1691
- spread: Jn,
1692
- toFormData: Vn,
1693
- AxiosHeaders: vn,
1694
- HttpStatusCode: Wn,
1695
- formToJSON: Kn,
1696
- getAdapter: Xn,
1697
- mergeConfig: Gn
1698
- } = E, Qn = async (e) => {
1683
+ Axios: jn,
1684
+ AxiosError: qn,
1685
+ CanceledError: In,
1686
+ isCancel: Hn,
1687
+ CancelToken: Mn,
1688
+ VERSION: zn,
1689
+ all: $n,
1690
+ Cancel: Jn,
1691
+ isAxiosError: Vn,
1692
+ spread: vn,
1693
+ toFormData: Wn,
1694
+ AxiosHeaders: Kn,
1695
+ HttpStatusCode: Xn,
1696
+ formToJSON: Gn,
1697
+ getAdapter: Qn,
1698
+ mergeConfig: Zn
1699
+ } = E, Yn = async (e) => {
1699
1700
  var n;
1700
1701
  const t = {
1701
1702
  personalInfo: "/api/personal-center/personal-server/v1/info"
1702
1703
  };
1703
1704
  try {
1704
1705
  const r = await E.create().get(t.personalInfo, {
1705
- baseURL: Ye().baseURL,
1706
+ baseURL: et().baseURL,
1706
1707
  params: {
1707
- project: (n = Ze()) == null ? void 0 : n.id,
1708
+ project: (n = Ye()) == null ? void 0 : n.id,
1708
1709
  timestamp: (/* @__PURE__ */ new Date()).getTime()
1709
1710
  },
1710
1711
  headers: {
1711
- Authorization: `Bearer ${e}`
1712
+ Authorization: `Bearer ${e}`,
1713
+ "X-Origin": location.origin,
1714
+ "Accept-Language": Ze.value
1712
1715
  }
1713
1716
  });
1714
1717
  r != null && r.data && sessionStorage.setItem("userInfo", JSON.stringify(r.data));
@@ -1716,5 +1719,5 @@ const {
1716
1719
  }
1717
1720
  };
1718
1721
  export {
1719
- Qn as setPersonalInfo
1722
+ Yn as setPersonalInfo
1720
1723
  };