@jctrans-materials/shared 1.0.6 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1,48 +1,48 @@
1
1
  import Ut from "mitt";
2
- function et(e, t) {
2
+ function nt(e, t) {
3
3
  return function() {
4
4
  return e.apply(t, arguments);
5
5
  };
6
6
  }
7
- const { toString: Dt } = Object.prototype, { getPrototypeOf: Ne } = Object, { iterator: le, toStringTag: tt } = Symbol, de = /* @__PURE__ */ ((e) => (t) => {
7
+ const { toString: Dt } = Object.prototype, { getPrototypeOf: Ne } = Object, { iterator: le, toStringTag: rt } = Symbol, de = /* @__PURE__ */ ((e) => (t) => {
8
8
  const n = Dt.call(t);
9
9
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
10
- })(/* @__PURE__ */ Object.create(null)), P = (e) => (e = e.toLowerCase(), (t) => de(t) === e), fe = (e) => (t) => typeof t === e, { isArray: V } = Array, J = fe("undefined");
11
- function Q(e) {
12
- return e !== null && !J(e) && e.constructor !== null && !J(e.constructor) && O(e.constructor.isBuffer) && e.constructor.isBuffer(e);
10
+ })(/* @__PURE__ */ Object.create(null)), x = (e) => (e = e.toLowerCase(), (t) => de(t) === e), fe = (e) => (t) => typeof t === e, { isArray: W } = Array, V = fe("undefined");
11
+ function Y(e) {
12
+ return e !== null && !V(e) && e.constructor !== null && !V(e.constructor) && O(e.constructor.isBuffer) && e.constructor.isBuffer(e);
13
13
  }
14
- const nt = P("ArrayBuffer");
14
+ const st = x("ArrayBuffer");
15
15
  function vt(e) {
16
16
  let t;
17
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && nt(e.buffer), t;
17
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && st(e.buffer), t;
18
18
  }
19
- const zt = fe("string"), O = fe("function"), rt = fe("number"), Y = (e) => e !== null && typeof e == "object", qt = (e) => e === !0 || e === !1, oe = (e) => {
19
+ const zt = fe("string"), O = fe("function"), ot = fe("number"), Z = (e) => e !== null && typeof e == "object", qt = (e) => e === !0 || e === !1, ie = (e) => {
20
20
  if (de(e) !== "object")
21
21
  return !1;
22
22
  const t = Ne(e);
23
- return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(tt in e) && !(le in e);
23
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(rt in e) && !(le in e);
24
24
  }, jt = (e) => {
25
- if (!Y(e) || Q(e))
25
+ if (!Z(e) || Y(e))
26
26
  return !1;
27
27
  try {
28
28
  return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
29
29
  } catch {
30
30
  return !1;
31
31
  }
32
- }, $t = P("Date"), Mt = P("File"), Ht = P("Blob"), Jt = P("FileList"), Vt = (e) => Y(e) && O(e.pipe), Wt = (e) => {
32
+ }, $t = x("Date"), Mt = x("File"), Ht = x("Blob"), Jt = x("FileList"), Vt = (e) => Z(e) && O(e.pipe), Wt = (e) => {
33
33
  let t;
34
34
  return e && (typeof FormData == "function" && e instanceof FormData || O(e.append) && ((t = de(e)) === "formdata" || // detect form-data instance
35
35
  t === "object" && O(e.toString) && e.toString() === "[object FormData]"));
36
- }, Kt = P("URLSearchParams"), [Xt, Gt, Qt, Yt] = ["ReadableStream", "Request", "Response", "Headers"].map(P), Zt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
37
- function Z(e, t, { allOwnKeys: n = !1 } = {}) {
36
+ }, Kt = x("URLSearchParams"), [Xt, Gt, Qt, Yt] = ["ReadableStream", "Request", "Response", "Headers"].map(x), Zt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
37
+ function ee(e, t, { allOwnKeys: n = !1 } = {}) {
38
38
  if (e === null || typeof e > "u")
39
39
  return;
40
40
  let r, s;
41
- if (typeof e != "object" && (e = [e]), V(e))
41
+ if (typeof e != "object" && (e = [e]), W(e))
42
42
  for (r = 0, s = e.length; r < s; r++)
43
43
  t.call(null, e[r], r, e);
44
44
  else {
45
- if (Q(e))
45
+ if (Y(e))
46
46
  return;
47
47
  const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = o.length;
48
48
  let c;
@@ -50,8 +50,8 @@ function Z(e, t, { allOwnKeys: n = !1 } = {}) {
50
50
  c = o[r], t.call(null, e[c], c, e);
51
51
  }
52
52
  }
53
- function st(e, t) {
54
- if (Q(e))
53
+ function it(e, t) {
54
+ if (Y(e))
55
55
  return null;
56
56
  t = t.toLowerCase();
57
57
  const n = Object.keys(e);
@@ -61,18 +61,18 @@ function st(e, t) {
61
61
  return s;
62
62
  return null;
63
63
  }
64
- const q = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, ot = (e) => !J(e) && e !== q;
64
+ const j = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, at = (e) => !V(e) && e !== j;
65
65
  function Ce() {
66
- const { caseless: e, skipUndefined: t } = ot(this) && this || {}, n = {}, r = (s, o) => {
67
- const i = e && st(n, o) || o;
68
- oe(n[i]) && oe(s) ? n[i] = Ce(n[i], s) : oe(s) ? n[i] = Ce({}, s) : V(s) ? n[i] = s.slice() : (!t || !J(s)) && (n[i] = s);
66
+ const { caseless: e, skipUndefined: t } = at(this) && this || {}, n = {}, r = (s, o) => {
67
+ const i = e && it(n, o) || o;
68
+ ie(n[i]) && ie(s) ? n[i] = Ce(n[i], s) : ie(s) ? n[i] = Ce({}, s) : W(s) ? n[i] = s.slice() : (!t || !V(s)) && (n[i] = s);
69
69
  };
70
70
  for (let s = 0, o = arguments.length; s < o; s++)
71
- arguments[s] && Z(arguments[s], r);
71
+ arguments[s] && ee(arguments[s], r);
72
72
  return n;
73
73
  }
74
- const en = (e, t, n, { allOwnKeys: r } = {}) => (Z(t, (s, o) => {
75
- n && O(s) ? e[o] = et(s, n) : e[o] = s;
74
+ const en = (e, t, n, { allOwnKeys: r } = {}) => (ee(t, (s, o) => {
75
+ n && O(s) ? e[o] = nt(s, n) : e[o] = s;
76
76
  }, { allOwnKeys: r }), e), tn = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), nn = (e, t, n, r) => {
77
77
  e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
78
78
  value: t.prototype
@@ -93,9 +93,9 @@ const en = (e, t, n, { allOwnKeys: r } = {}) => (Z(t, (s, o) => {
93
93
  return r !== -1 && r === n;
94
94
  }, on = (e) => {
95
95
  if (!e) return null;
96
- if (V(e)) return e;
96
+ if (W(e)) return e;
97
97
  let t = e.length;
98
- if (!rt(t)) return null;
98
+ if (!ot(t)) return null;
99
99
  const n = new Array(t);
100
100
  for (; t-- > 0; )
101
101
  n[t] = e[t];
@@ -113,19 +113,19 @@ const en = (e, t, n, { allOwnKeys: r } = {}) => (Z(t, (s, o) => {
113
113
  for (; (n = e.exec(t)) !== null; )
114
114
  r.push(n);
115
115
  return r;
116
- }, ln = P("HTMLFormElement"), dn = (e) => e.toLowerCase().replace(
116
+ }, ln = x("HTMLFormElement"), dn = (e) => e.toLowerCase().replace(
117
117
  /[-_\s]([a-z\d])(\w*)/g,
118
118
  function(n, r, s) {
119
119
  return r.toUpperCase() + s;
120
120
  }
121
- ), ve = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), fn = P("RegExp"), it = (e, t) => {
121
+ ), qe = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), fn = x("RegExp"), ct = (e, t) => {
122
122
  const n = Object.getOwnPropertyDescriptors(e), r = {};
123
- Z(n, (s, o) => {
123
+ ee(n, (s, o) => {
124
124
  let i;
125
125
  (i = t(s, o, e)) !== !1 && (r[o] = i || s);
126
126
  }), Object.defineProperties(e, r);
127
127
  }, pn = (e) => {
128
- it(e, (t, n) => {
128
+ ct(e, (t, n) => {
129
129
  if (O(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
130
130
  return !1;
131
131
  const r = e[n];
@@ -145,55 +145,55 @@ const en = (e, t, n, { allOwnKeys: r } = {}) => (Z(t, (s, o) => {
145
145
  n[o] = !0;
146
146
  });
147
147
  };
148
- return V(e) ? r(e) : r(String(e).split(t)), n;
148
+ return W(e) ? r(e) : r(String(e).split(t)), n;
149
149
  }, yn = () => {
150
150
  }, mn = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
151
- function wn(e) {
152
- return !!(e && O(e.append) && e[tt] === "FormData" && e[le]);
151
+ function gn(e) {
152
+ return !!(e && O(e.append) && e[rt] === "FormData" && e[le]);
153
153
  }
154
- const gn = (e) => {
154
+ const wn = (e) => {
155
155
  const t = new Array(10), n = (r, s) => {
156
- if (Y(r)) {
156
+ if (Z(r)) {
157
157
  if (t.indexOf(r) >= 0)
158
158
  return;
159
- if (Q(r))
159
+ if (Y(r))
160
160
  return r;
161
161
  if (!("toJSON" in r)) {
162
162
  t[s] = r;
163
- const o = V(r) ? [] : {};
164
- return Z(r, (i, c) => {
163
+ const o = W(r) ? [] : {};
164
+ return ee(r, (i, c) => {
165
165
  const f = n(i, s + 1);
166
- !J(f) && (o[c] = f);
166
+ !V(f) && (o[c] = f);
167
167
  }), t[s] = void 0, o;
168
168
  }
169
169
  }
170
170
  return r;
171
171
  };
172
172
  return n(e, 0);
173
- }, bn = P("AsyncFunction"), En = (e) => e && (Y(e) || O(e)) && O(e.then) && O(e.catch), at = ((e, t) => e ? setImmediate : t ? ((n, r) => (q.addEventListener("message", ({ source: s, data: o }) => {
174
- s === q && o === n && r.length && r.shift()();
173
+ }, bn = x("AsyncFunction"), Sn = (e) => e && (Z(e) || O(e)) && O(e.then) && O(e.catch), ut = ((e, t) => e ? setImmediate : t ? ((n, r) => (j.addEventListener("message", ({ source: s, data: o }) => {
174
+ s === j && o === n && r.length && r.shift()();
175
175
  }, !1), (s) => {
176
- r.push(s), q.postMessage(n, "*");
176
+ r.push(s), j.postMessage(n, "*");
177
177
  }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
178
178
  typeof setImmediate == "function",
179
- O(q.postMessage)
180
- ), Sn = typeof queueMicrotask < "u" ? queueMicrotask.bind(q) : typeof process < "u" && process.nextTick || at, Cn = (e) => e != null && O(e[le]), a = {
181
- isArray: V,
182
- isArrayBuffer: nt,
183
- isBuffer: Q,
179
+ O(j.postMessage)
180
+ ), En = typeof queueMicrotask < "u" ? queueMicrotask.bind(j) : typeof process < "u" && process.nextTick || ut, Cn = (e) => e != null && O(e[le]), a = {
181
+ isArray: W,
182
+ isArrayBuffer: st,
183
+ isBuffer: Y,
184
184
  isFormData: Wt,
185
185
  isArrayBufferView: vt,
186
186
  isString: zt,
187
- isNumber: rt,
187
+ isNumber: ot,
188
188
  isBoolean: qt,
189
- isObject: Y,
190
- isPlainObject: oe,
189
+ isObject: Z,
190
+ isPlainObject: ie,
191
191
  isEmptyObject: jt,
192
192
  isReadableStream: Xt,
193
193
  isRequest: Gt,
194
194
  isResponse: Qt,
195
195
  isHeaders: Yt,
196
- isUndefined: J,
196
+ isUndefined: V,
197
197
  isDate: $t,
198
198
  isFile: Mt,
199
199
  isBlob: Ht,
@@ -203,7 +203,7 @@ const gn = (e) => {
203
203
  isURLSearchParams: Kt,
204
204
  isTypedArray: an,
205
205
  isFileList: Jt,
206
- forEach: Z,
206
+ forEach: ee,
207
207
  merge: Ce,
208
208
  extend: en,
209
209
  trim: Zt,
@@ -211,30 +211,30 @@ const gn = (e) => {
211
211
  inherits: nn,
212
212
  toFlatObject: rn,
213
213
  kindOf: de,
214
- kindOfTest: P,
214
+ kindOfTest: x,
215
215
  endsWith: sn,
216
216
  toArray: on,
217
217
  forEachEntry: cn,
218
218
  matchAll: un,
219
219
  isHTMLForm: ln,
220
- hasOwnProperty: ve,
221
- hasOwnProp: ve,
220
+ hasOwnProperty: qe,
221
+ hasOwnProp: qe,
222
222
  // an alias to avoid ESLint no-prototype-builtins detection
223
- reduceDescriptors: it,
223
+ reduceDescriptors: ct,
224
224
  freezeMethods: pn,
225
225
  toObjectSet: hn,
226
226
  toCamelCase: dn,
227
227
  noop: yn,
228
228
  toFiniteNumber: mn,
229
- findKey: st,
230
- global: q,
231
- isContextDefined: ot,
232
- isSpecCompliantForm: wn,
233
- toJSONObject: gn,
229
+ findKey: it,
230
+ global: j,
231
+ isContextDefined: at,
232
+ isSpecCompliantForm: gn,
233
+ toJSONObject: wn,
234
234
  isAsyncFn: bn,
235
- isThenable: En,
236
- setImmediate: at,
237
- asap: Sn,
235
+ isThenable: Sn,
236
+ setImmediate: ut,
237
+ asap: En,
238
238
  isIterable: Cn
239
239
  };
240
240
  function m(e, t, n, r, s) {
@@ -261,7 +261,7 @@ a.inherits(m, Error, {
261
261
  };
262
262
  }
263
263
  });
264
- const ct = m.prototype, ut = {};
264
+ const lt = m.prototype, dt = {};
265
265
  [
266
266
  "ERR_BAD_OPTION_VALUE",
267
267
  "ERR_BAD_OPTION",
@@ -277,12 +277,12 @@ const ct = m.prototype, ut = {};
277
277
  "ERR_INVALID_URL"
278
278
  // eslint-disable-next-line func-names
279
279
  ].forEach((e) => {
280
- ut[e] = { value: e };
280
+ dt[e] = { value: e };
281
281
  });
282
- Object.defineProperties(m, ut);
283
- Object.defineProperty(ct, "isAxiosError", { value: !0 });
282
+ Object.defineProperties(m, dt);
283
+ Object.defineProperty(lt, "isAxiosError", { value: !0 });
284
284
  m.from = (e, t, n, r, s, o) => {
285
- const i = Object.create(ct);
285
+ const i = Object.create(lt);
286
286
  a.toFlatObject(e, i, function(l) {
287
287
  return l !== Error.prototype;
288
288
  }, (u) => u !== "isAxiosError");
@@ -293,12 +293,12 @@ const An = null;
293
293
  function Ae(e) {
294
294
  return a.isPlainObject(e) || a.isArray(e);
295
295
  }
296
- function lt(e) {
296
+ function ft(e) {
297
297
  return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
298
298
  }
299
- function ze(e, t, n) {
299
+ function je(e, t, n) {
300
300
  return e ? e.concat(t).map(function(s, o) {
301
- return s = lt(s), !n && o ? "[" + s + "]" : s;
301
+ return s = ft(s), !n && o ? "[" + s + "]" : s;
302
302
  }).join(n ? "." : "") : t;
303
303
  }
304
304
  function Rn(e) {
@@ -336,22 +336,22 @@ function pe(e, t, n) {
336
336
  if (a.endsWith(y, "{}"))
337
337
  y = r ? y : y.slice(0, -2), d = JSON.stringify(d);
338
338
  else if (a.isArray(d) && Rn(d) || (a.isFileList(d) || a.endsWith(y, "[]")) && (b = a.toArray(d)))
339
- return y = lt(y), b.forEach(function(E, R) {
340
- !(a.isUndefined(E) || E === null) && t.append(
339
+ return y = ft(y), b.forEach(function(S, R) {
340
+ !(a.isUndefined(S) || S === null) && t.append(
341
341
  // eslint-disable-next-line no-nested-ternary
342
- i === !0 ? ze([y], R, o) : i === null ? y : y + "[]",
343
- u(E)
342
+ i === !0 ? je([y], R, o) : i === null ? y : y + "[]",
343
+ u(S)
344
344
  );
345
345
  }), !1;
346
346
  }
347
- return Ae(d) ? !0 : (t.append(ze(h, y, o), u(d)), !1);
347
+ return Ae(d) ? !0 : (t.append(je(h, y, o), u(d)), !1);
348
348
  }
349
- const p = [], w = Object.assign(On, {
349
+ const p = [], g = Object.assign(On, {
350
350
  defaultVisitor: l,
351
351
  convertValue: u,
352
352
  isVisitable: Ae
353
353
  });
354
- function S(d, y) {
354
+ function E(d, y) {
355
355
  if (!a.isUndefined(d)) {
356
356
  if (p.indexOf(d) !== -1)
357
357
  throw Error("Circular reference detected in " + y.join("."));
@@ -361,16 +361,16 @@ function pe(e, t, n) {
361
361
  b,
362
362
  a.isString(T) ? T.trim() : T,
363
363
  y,
364
- w
365
- )) === !0 && S(b, y ? y.concat(T) : [T]);
364
+ g
365
+ )) === !0 && E(b, y ? y.concat(T) : [T]);
366
366
  }), p.pop();
367
367
  }
368
368
  }
369
369
  if (!a.isObject(e))
370
370
  throw new TypeError("data must be an object");
371
- return S(e), t;
371
+ return E(e), t;
372
372
  }
373
- function qe(e) {
373
+ function $e(e) {
374
374
  const t = {
375
375
  "!": "%21",
376
376
  "'": "%27",
@@ -384,17 +384,17 @@ function qe(e) {
384
384
  return t[r];
385
385
  });
386
386
  }
387
- function xe(e, t) {
387
+ function Pe(e, t) {
388
388
  this._pairs = [], e && pe(e, this, t);
389
389
  }
390
- const dt = xe.prototype;
391
- dt.append = function(t, n) {
390
+ const pt = Pe.prototype;
391
+ pt.append = function(t, n) {
392
392
  this._pairs.push([t, n]);
393
393
  };
394
- dt.toString = function(t) {
394
+ pt.toString = function(t) {
395
395
  const n = t ? function(r) {
396
- return t.call(this, r, qe);
397
- } : qe;
396
+ return t.call(this, r, $e);
397
+ } : $e;
398
398
  return this._pairs.map(function(s) {
399
399
  return n(s[0]) + "=" + n(s[1]);
400
400
  }, "").join("&");
@@ -402,7 +402,7 @@ dt.toString = function(t) {
402
402
  function In(e) {
403
403
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
404
404
  }
405
- function ft(e, t, n) {
405
+ function ht(e, t, n) {
406
406
  if (!t)
407
407
  return e;
408
408
  const r = n && n.encode || In;
@@ -411,13 +411,13 @@ function ft(e, t, n) {
411
411
  });
412
412
  const s = n && n.serialize;
413
413
  let o;
414
- if (s ? o = s(t, n) : o = a.isURLSearchParams(t) ? t.toString() : new xe(t, n).toString(r), o) {
414
+ if (s ? o = s(t, n) : o = a.isURLSearchParams(t) ? t.toString() : new Pe(t, n).toString(r), o) {
415
415
  const i = e.indexOf("#");
416
416
  i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
417
417
  }
418
418
  return e;
419
419
  }
420
- class je {
420
+ class Me {
421
421
  constructor() {
422
422
  this.handlers = [];
423
423
  }
@@ -471,29 +471,29 @@ class je {
471
471
  });
472
472
  }
473
473
  }
474
- const pt = {
474
+ const yt = {
475
475
  silentJSONParsing: !0,
476
476
  forcedJSONParsing: !0,
477
477
  clarifyTimeoutError: !1
478
- }, Tn = typeof URLSearchParams < "u" ? URLSearchParams : xe, Nn = typeof FormData < "u" ? FormData : null, xn = typeof Blob < "u" ? Blob : null, Pn = {
478
+ }, Tn = typeof URLSearchParams < "u" ? URLSearchParams : Pe, Nn = typeof FormData < "u" ? FormData : null, Pn = typeof Blob < "u" ? Blob : null, xn = {
479
479
  isBrowser: !0,
480
480
  classes: {
481
481
  URLSearchParams: Tn,
482
482
  FormData: Nn,
483
- Blob: xn
483
+ Blob: Pn
484
484
  },
485
485
  protocols: ["http", "https", "file", "blob", "url", "data"]
486
- }, Pe = typeof window < "u" && typeof document < "u", Re = typeof navigator == "object" && navigator || void 0, Bn = Pe && (!Re || ["ReactNative", "NativeScript", "NS"].indexOf(Re.product) < 0), Ln = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
487
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Fn = Pe && window.location.href || "http://localhost", _n = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
486
+ }, xe = typeof window < "u" && typeof document < "u", Re = typeof navigator == "object" && navigator || void 0, Bn = xe && (!Re || ["ReactNative", "NativeScript", "NS"].indexOf(Re.product) < 0), Ln = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
487
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Fn = xe && window.location.href || "http://localhost", _n = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
488
488
  __proto__: null,
489
- hasBrowserEnv: Pe,
489
+ hasBrowserEnv: xe,
490
490
  hasStandardBrowserEnv: Bn,
491
491
  hasStandardBrowserWebWorkerEnv: Ln,
492
492
  navigator: Re,
493
493
  origin: Fn
494
494
  }, Symbol.toStringTag, { value: "Module" })), C = {
495
495
  ..._n,
496
- ...Pn
496
+ ...xn
497
497
  };
498
498
  function kn(e, t) {
499
499
  return pe(e, new C.classes.URLSearchParams(), {
@@ -515,7 +515,7 @@ function Dn(e) {
515
515
  o = n[r], t[o] = e[o];
516
516
  return t;
517
517
  }
518
- function ht(e) {
518
+ function mt(e) {
519
519
  function t(n, r, s, o) {
520
520
  let i = n[o++];
521
521
  if (i === "__proto__") return !0;
@@ -540,13 +540,13 @@ function vn(e, t, n) {
540
540
  }
541
541
  return (n || JSON.stringify)(e);
542
542
  }
543
- const ee = {
544
- transitional: pt,
543
+ const te = {
544
+ transitional: yt,
545
545
  adapter: ["xhr", "http", "fetch"],
546
546
  transformRequest: [function(t, n) {
547
547
  const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = a.isObject(t);
548
548
  if (o && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
549
- return s ? JSON.stringify(ht(t)) : t;
549
+ return s ? JSON.stringify(mt(t)) : t;
550
550
  if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t) || a.isReadableStream(t))
551
551
  return t;
552
552
  if (a.isArrayBufferView(t))
@@ -569,7 +569,7 @@ const ee = {
569
569
  return o || s ? (n.setContentType("application/json", !1), vn(t)) : t;
570
570
  }],
571
571
  transformResponse: [function(t) {
572
- const n = this.transitional || ee.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
572
+ const n = this.transitional || te.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
573
573
  if (a.isResponse(t) || a.isReadableStream(t))
574
574
  return t;
575
575
  if (t && a.isString(t) && (r && !this.responseType || s)) {
@@ -607,7 +607,7 @@ const ee = {
607
607
  }
608
608
  };
609
609
  a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
610
- ee.headers[e] = {};
610
+ te.headers[e] = {};
611
611
  });
612
612
  const zn = a.toObjectSet([
613
613
  "age",
@@ -634,12 +634,12 @@ const zn = a.toObjectSet([
634
634
  `).forEach(function(i) {
635
635
  s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && zn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
636
636
  }), t;
637
- }, $e = /* @__PURE__ */ Symbol("internals");
638
- function X(e) {
637
+ }, He = /* @__PURE__ */ Symbol("internals");
638
+ function G(e) {
639
639
  return e && String(e).trim().toLowerCase();
640
640
  }
641
- function ie(e) {
642
- return e === !1 || e == null ? e : a.isArray(e) ? e.map(ie) : String(e);
641
+ function ae(e) {
642
+ return e === !1 || e == null ? e : a.isArray(e) ? e.map(ae) : String(e);
643
643
  }
644
644
  function jn(e) {
645
645
  const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
@@ -649,7 +649,7 @@ function jn(e) {
649
649
  return t;
650
650
  }
651
651
  const $n = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
652
- function ge(e, t, n, r, s) {
652
+ function we(e, t, n, r, s) {
653
653
  if (a.isFunction(r))
654
654
  return r.call(this, t, n);
655
655
  if (s && (t = n), !!a.isString(t)) {
@@ -680,11 +680,11 @@ let I = class {
680
680
  set(t, n, r) {
681
681
  const s = this;
682
682
  function o(c, f, u) {
683
- const l = X(f);
683
+ const l = G(f);
684
684
  if (!l)
685
685
  throw new Error("header name must be a non-empty string");
686
686
  const p = a.findKey(s, l);
687
- (!p || s[p] === void 0 || u === !0 || u === void 0 && s[p] !== !1) && (s[p || f] = ie(c));
687
+ (!p || s[p] === void 0 || u === !0 || u === void 0 && s[p] !== !1) && (s[p || f] = ae(c));
688
688
  }
689
689
  const i = (c, f) => a.forEach(c, (u, l) => o(u, l, f));
690
690
  if (a.isPlainObject(t) || t instanceof this.constructor)
@@ -704,7 +704,7 @@ let I = class {
704
704
  return this;
705
705
  }
706
706
  get(t, n) {
707
- if (t = X(t), t) {
707
+ if (t = G(t), t) {
708
708
  const r = a.findKey(this, t);
709
709
  if (r) {
710
710
  const s = this[r];
@@ -721,9 +721,9 @@ let I = class {
721
721
  }
722
722
  }
723
723
  has(t, n) {
724
- if (t = X(t), t) {
724
+ if (t = G(t), t) {
725
725
  const r = a.findKey(this, t);
726
- return !!(r && this[r] !== void 0 && (!n || ge(this, this[r], r, n)));
726
+ return !!(r && this[r] !== void 0 && (!n || we(this, this[r], r, n)));
727
727
  }
728
728
  return !1;
729
729
  }
@@ -731,9 +731,9 @@ let I = class {
731
731
  const r = this;
732
732
  let s = !1;
733
733
  function o(i) {
734
- if (i = X(i), i) {
734
+ if (i = G(i), i) {
735
735
  const c = a.findKey(r, i);
736
- c && (!n || ge(r, r[c], c, n)) && (delete r[c], s = !0);
736
+ c && (!n || we(r, r[c], c, n)) && (delete r[c], s = !0);
737
737
  }
738
738
  }
739
739
  return a.isArray(t) ? t.forEach(o) : o(t), s;
@@ -743,7 +743,7 @@ let I = class {
743
743
  let r = n.length, s = !1;
744
744
  for (; r--; ) {
745
745
  const o = n[r];
746
- (!t || ge(this, this[o], o, t, !0)) && (delete this[o], s = !0);
746
+ (!t || we(this, this[o], o, t, !0)) && (delete this[o], s = !0);
747
747
  }
748
748
  return s;
749
749
  }
@@ -752,11 +752,11 @@ let I = class {
752
752
  return a.forEach(this, (s, o) => {
753
753
  const i = a.findKey(r, o);
754
754
  if (i) {
755
- n[i] = ie(s), delete n[o];
755
+ n[i] = ae(s), delete n[o];
756
756
  return;
757
757
  }
758
758
  const c = t ? Mn(o) : String(o).trim();
759
- c !== o && delete n[o], n[c] = ie(s), r[c] = !0;
759
+ c !== o && delete n[o], n[c] = ae(s), r[c] = !0;
760
760
  }), this;
761
761
  }
762
762
  concat(...t) {
@@ -789,11 +789,11 @@ let I = class {
789
789
  return n.forEach((s) => r.set(s)), r;
790
790
  }
791
791
  static accessor(t) {
792
- const r = (this[$e] = this[$e] = {
792
+ const r = (this[He] = this[He] = {
793
793
  accessors: {}
794
794
  }).accessors, s = this.prototype;
795
795
  function o(i) {
796
- const c = X(i);
796
+ const c = G(i);
797
797
  r[c] || (Hn(s, i), r[c] = !0);
798
798
  }
799
799
  return a.isArray(t) ? t.forEach(o) : o(t), this;
@@ -811,22 +811,22 @@ a.reduceDescriptors(I.prototype, ({ value: e }, t) => {
811
811
  });
812
812
  a.freezeMethods(I);
813
813
  function be(e, t) {
814
- const n = this || ee, r = t || n, s = I.from(r.headers);
814
+ const n = this || te, r = t || n, s = I.from(r.headers);
815
815
  let o = r.data;
816
816
  return a.forEach(e, function(c) {
817
817
  o = c.call(n, o, s.normalize(), t ? t.status : void 0);
818
818
  }), s.normalize(), o;
819
819
  }
820
- function yt(e) {
820
+ function gt(e) {
821
821
  return !!(e && e.__CANCEL__);
822
822
  }
823
- function W(e, t, n) {
823
+ function K(e, t, n) {
824
824
  m.call(this, e ?? "canceled", m.ERR_CANCELED, t, n), this.name = "CanceledError";
825
825
  }
826
- a.inherits(W, m, {
826
+ a.inherits(K, m, {
827
827
  __CANCEL__: !0
828
828
  });
829
- function mt(e, t, n) {
829
+ function wt(e, t, n) {
830
830
  const r = n.config.validateStatus;
831
831
  !n.status || !r || r(n.status) ? e(n) : t(new m(
832
832
  "Request failed with status code " + n.status,
@@ -847,13 +847,13 @@ function Vn(e, t) {
847
847
  return t = t !== void 0 ? t : 1e3, function(f) {
848
848
  const u = Date.now(), l = r[o];
849
849
  i || (i = u), n[s] = f, r[s] = u;
850
- let p = o, w = 0;
850
+ let p = o, g = 0;
851
851
  for (; p !== s; )
852
- w += n[p++], p = p % e;
852
+ g += n[p++], p = p % e;
853
853
  if (s = (s + 1) % e, s === o && (o = (o + 1) % e), u - i < t)
854
854
  return;
855
- const S = l && u - l;
856
- return S ? Math.round(w * 1e3 / S) : void 0;
855
+ const E = l && u - l;
856
+ return E ? Math.round(g * 1e3 / E) : void 0;
857
857
  };
858
858
  }
859
859
  function Wn(e, t) {
@@ -868,7 +868,7 @@ function Wn(e, t) {
868
868
  }, r - p)));
869
869
  }, () => s && i(s)];
870
870
  }
871
- const ce = (e, t, n = 3) => {
871
+ const ue = (e, t, n = 3) => {
872
872
  let r = 0;
873
873
  const s = Vn(50, 250);
874
874
  return Wn((o) => {
@@ -887,14 +887,14 @@ const ce = (e, t, n = 3) => {
887
887
  };
888
888
  e(p);
889
889
  }, n);
890
- }, Me = (e, t) => {
890
+ }, Je = (e, t) => {
891
891
  const n = e != null;
892
892
  return [(r) => t[0]({
893
893
  lengthComputable: n,
894
894
  total: e,
895
895
  loaded: r
896
896
  }), t[1]];
897
- }, He = (e) => (...t) => a.asap(() => e(...t)), Kn = C.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, C.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
897
+ }, Ve = (e) => (...t) => a.asap(() => e(...t)), Kn = C.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, C.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
898
898
  new URL(C.origin),
899
899
  C.navigator && /(msie|trident)/i.test(C.navigator.userAgent)
900
900
  ) : () => !0, Xn = C.hasStandardBrowserEnv ? (
@@ -932,22 +932,22 @@ function Gn(e) {
932
932
  function Qn(e, t) {
933
933
  return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
934
934
  }
935
- function wt(e, t, n) {
935
+ function bt(e, t, n) {
936
936
  let r = !Gn(t);
937
937
  return e && (r || n == !1) ? Qn(e, t) : t;
938
938
  }
939
- const Je = (e) => e instanceof I ? { ...e } : e;
940
- function $(e, t) {
939
+ const We = (e) => e instanceof I ? { ...e } : e;
940
+ function M(e, t) {
941
941
  t = t || {};
942
942
  const n = {};
943
- function r(u, l, p, w) {
944
- return a.isPlainObject(u) && a.isPlainObject(l) ? a.merge.call({ caseless: w }, u, l) : a.isPlainObject(l) ? a.merge({}, l) : a.isArray(l) ? l.slice() : l;
943
+ function r(u, l, p, g) {
944
+ return a.isPlainObject(u) && a.isPlainObject(l) ? a.merge.call({ caseless: g }, u, l) : a.isPlainObject(l) ? a.merge({}, l) : a.isArray(l) ? l.slice() : l;
945
945
  }
946
- function s(u, l, p, w) {
946
+ function s(u, l, p, g) {
947
947
  if (a.isUndefined(l)) {
948
948
  if (!a.isUndefined(u))
949
- return r(void 0, u, p, w);
950
- } else return r(u, l, p, w);
949
+ return r(void 0, u, p, g);
950
+ } else return r(u, l, p, g);
951
951
  }
952
952
  function o(u, l) {
953
953
  if (!a.isUndefined(l))
@@ -994,17 +994,17 @@ function $(e, t) {
994
994
  socketPath: i,
995
995
  responseEncoding: i,
996
996
  validateStatus: c,
997
- headers: (u, l, p) => s(Je(u), Je(l), p, !0)
997
+ headers: (u, l, p) => s(We(u), We(l), p, !0)
998
998
  };
999
999
  return a.forEach(Object.keys({ ...e, ...t }), function(l) {
1000
- const p = f[l] || s, w = p(e[l], t[l], l);
1001
- a.isUndefined(w) && p !== c || (n[l] = w);
1000
+ const p = f[l] || s, g = p(e[l], t[l], l);
1001
+ a.isUndefined(g) && p !== c || (n[l] = g);
1002
1002
  }), n;
1003
1003
  }
1004
- const gt = (e) => {
1005
- const t = $({}, e);
1004
+ const St = (e) => {
1005
+ const t = M({}, e);
1006
1006
  let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: c } = t;
1007
- if (t.headers = i = I.from(i), t.url = ft(wt(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), c && i.set(
1007
+ if (t.headers = i = I.from(i), t.url = ht(bt(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), c && i.set(
1008
1008
  "Authorization",
1009
1009
  "Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
1010
1010
  ), a.isFormData(n)) {
@@ -1024,54 +1024,54 @@ const gt = (e) => {
1024
1024
  return t;
1025
1025
  }, Yn = typeof XMLHttpRequest < "u", Zn = Yn && function(e) {
1026
1026
  return new Promise(function(n, r) {
1027
- const s = gt(e);
1027
+ const s = St(e);
1028
1028
  let o = s.data;
1029
1029
  const i = I.from(s.headers).normalize();
1030
- let { responseType: c, onUploadProgress: f, onDownloadProgress: u } = s, l, p, w, S, d;
1030
+ let { responseType: c, onUploadProgress: f, onDownloadProgress: u } = s, l, p, g, E, d;
1031
1031
  function y() {
1032
- S && S(), d && d(), s.cancelToken && s.cancelToken.unsubscribe(l), s.signal && s.signal.removeEventListener("abort", l);
1032
+ E && E(), d && d(), s.cancelToken && s.cancelToken.unsubscribe(l), s.signal && s.signal.removeEventListener("abort", l);
1033
1033
  }
1034
1034
  let h = new XMLHttpRequest();
1035
1035
  h.open(s.method.toUpperCase(), s.url, !0), h.timeout = s.timeout;
1036
1036
  function b() {
1037
1037
  if (!h)
1038
1038
  return;
1039
- const E = I.from(
1039
+ const S = I.from(
1040
1040
  "getAllResponseHeaders" in h && h.getAllResponseHeaders()
1041
- ), x = {
1041
+ ), P = {
1042
1042
  data: !c || c === "text" || c === "json" ? h.responseText : h.response,
1043
1043
  status: h.status,
1044
1044
  statusText: h.statusText,
1045
- headers: E,
1045
+ headers: S,
1046
1046
  config: e,
1047
1047
  request: h
1048
1048
  };
1049
- mt(function(N) {
1049
+ wt(function(N) {
1050
1050
  n(N), y();
1051
1051
  }, function(N) {
1052
1052
  r(N), y();
1053
- }, x), h = null;
1053
+ }, P), h = null;
1054
1054
  }
1055
1055
  "onloadend" in h ? h.onloadend = b : h.onreadystatechange = function() {
1056
1056
  !h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(b);
1057
1057
  }, h.onabort = function() {
1058
1058
  h && (r(new m("Request aborted", m.ECONNABORTED, e, h)), h = null);
1059
1059
  }, h.onerror = function(R) {
1060
- const x = R && R.message ? R.message : "Network Error", v = new m(x, m.ERR_NETWORK, e, h);
1060
+ const P = R && R.message ? R.message : "Network Error", v = new m(P, m.ERR_NETWORK, e, h);
1061
1061
  v.event = R || null, r(v), h = null;
1062
1062
  }, h.ontimeout = function() {
1063
1063
  let R = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1064
- const x = s.transitional || pt;
1064
+ const P = s.transitional || yt;
1065
1065
  s.timeoutErrorMessage && (R = s.timeoutErrorMessage), r(new m(
1066
1066
  R,
1067
- x.clarifyTimeoutError ? m.ETIMEDOUT : m.ECONNABORTED,
1067
+ P.clarifyTimeoutError ? m.ETIMEDOUT : m.ECONNABORTED,
1068
1068
  e,
1069
1069
  h
1070
1070
  )), h = null;
1071
- }, o === void 0 && i.setContentType(null), "setRequestHeader" in h && a.forEach(i.toJSON(), function(R, x) {
1072
- h.setRequestHeader(x, R);
1073
- }), a.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), c && c !== "json" && (h.responseType = s.responseType), u && ([w, d] = ce(u, !0), h.addEventListener("progress", w)), f && h.upload && ([p, S] = ce(f), h.upload.addEventListener("progress", p), h.upload.addEventListener("loadend", S)), (s.cancelToken || s.signal) && (l = (E) => {
1074
- h && (r(!E || E.type ? new W(null, e, h) : E), h.abort(), h = null);
1071
+ }, o === void 0 && i.setContentType(null), "setRequestHeader" in h && a.forEach(i.toJSON(), function(R, P) {
1072
+ h.setRequestHeader(P, R);
1073
+ }), a.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), c && c !== "json" && (h.responseType = s.responseType), u && ([g, d] = ue(u, !0), h.addEventListener("progress", g)), f && h.upload && ([p, E] = ue(f), h.upload.addEventListener("progress", p), h.upload.addEventListener("loadend", E)), (s.cancelToken || s.signal) && (l = (S) => {
1074
+ h && (r(!S || S.type ? new K(null, e, h) : S), h.abort(), h = null);
1075
1075
  }, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
1076
1076
  const T = Jn(s.url);
1077
1077
  if (T && C.protocols.indexOf(T) === -1) {
@@ -1088,7 +1088,7 @@ const gt = (e) => {
1088
1088
  if (!s) {
1089
1089
  s = !0, c();
1090
1090
  const l = u instanceof Error ? u : this.reason;
1091
- r.abort(l instanceof m ? l : new W(l instanceof Error ? l.message : l));
1091
+ r.abort(l instanceof m ? l : new K(l instanceof Error ? l.message : l));
1092
1092
  }
1093
1093
  };
1094
1094
  let i = t && setTimeout(() => {
@@ -1131,7 +1131,7 @@ const gt = (e) => {
1131
1131
  } finally {
1132
1132
  await t.cancel();
1133
1133
  }
1134
- }, Ve = (e, t, n, r) => {
1134
+ }, Ke = (e, t, n, r) => {
1135
1135
  const s = nr(e, t);
1136
1136
  let o = 0, i, c = (f) => {
1137
1137
  i || (i = !0, r && r(f));
@@ -1146,8 +1146,8 @@ const gt = (e) => {
1146
1146
  }
1147
1147
  let p = l.byteLength;
1148
1148
  if (n) {
1149
- let w = o += p;
1150
- n(w);
1149
+ let g = o += p;
1150
+ n(g);
1151
1151
  }
1152
1152
  f.enqueue(new Uint8Array(l));
1153
1153
  } catch (u) {
@@ -1160,13 +1160,13 @@ const gt = (e) => {
1160
1160
  }, {
1161
1161
  highWaterMark: 2
1162
1162
  });
1163
- }, We = 64 * 1024, { isFunction: se } = a, sr = (({ Request: e, Response: t }) => ({
1163
+ }, Xe = 64 * 1024, { isFunction: oe } = a, sr = (({ Request: e, Response: t }) => ({
1164
1164
  Request: e,
1165
1165
  Response: t
1166
1166
  }))(a.global), {
1167
- ReadableStream: Ke,
1168
- TextEncoder: Xe
1169
- } = a.global, Ge = (e, ...t) => {
1167
+ ReadableStream: Ge,
1168
+ TextEncoder: Qe
1169
+ } = a.global, Ye = (e, ...t) => {
1170
1170
  try {
1171
1171
  return !!e(...t);
1172
1172
  } catch {
@@ -1176,20 +1176,20 @@ const gt = (e) => {
1176
1176
  e = a.merge.call({
1177
1177
  skipUndefined: !0
1178
1178
  }, sr, e);
1179
- const { fetch: t, Request: n, Response: r } = e, s = t ? se(t) : typeof fetch == "function", o = se(n), i = se(r);
1179
+ const { fetch: t, Request: n, Response: r } = e, s = t ? oe(t) : typeof fetch == "function", o = oe(n), i = oe(r);
1180
1180
  if (!s)
1181
1181
  return !1;
1182
- const c = s && se(Ke), f = s && (typeof Xe == "function" ? /* @__PURE__ */ ((d) => (y) => d.encode(y))(new Xe()) : async (d) => new Uint8Array(await new n(d).arrayBuffer())), u = o && c && Ge(() => {
1182
+ const c = s && oe(Ge), f = s && (typeof Qe == "function" ? /* @__PURE__ */ ((d) => (y) => d.encode(y))(new Qe()) : async (d) => new Uint8Array(await new n(d).arrayBuffer())), u = o && c && Ye(() => {
1183
1183
  let d = !1;
1184
1184
  const y = new n(C.origin, {
1185
- body: new Ke(),
1185
+ body: new Ge(),
1186
1186
  method: "POST",
1187
1187
  get duplex() {
1188
1188
  return d = !0, "half";
1189
1189
  }
1190
1190
  }).headers.has("Content-Type");
1191
1191
  return d && !y;
1192
- }), l = i && c && Ge(() => a.isReadableStream(new r("").body)), p = {
1192
+ }), l = i && c && Ye(() => a.isReadableStream(new r("").body)), p = {
1193
1193
  stream: l && ((d) => d.body)
1194
1194
  };
1195
1195
  s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((d) => {
@@ -1200,7 +1200,7 @@ const gt = (e) => {
1200
1200
  throw new m(`Response type '${d}' is not supported`, m.ERR_NOT_SUPPORT, h);
1201
1201
  });
1202
1202
  });
1203
- const w = async (d) => {
1203
+ const g = async (d) => {
1204
1204
  if (d == null)
1205
1205
  return 0;
1206
1206
  if (a.isBlob(d))
@@ -1214,9 +1214,9 @@ const gt = (e) => {
1214
1214
  return d.byteLength;
1215
1215
  if (a.isURLSearchParams(d) && (d = d + ""), a.isString(d))
1216
1216
  return (await f(d)).byteLength;
1217
- }, S = async (d, y) => {
1217
+ }, E = async (d, y) => {
1218
1218
  const h = a.toFiniteNumber(d.getContentLength());
1219
- return h ?? w(y);
1219
+ return h ?? g(y);
1220
1220
  };
1221
1221
  return async (d) => {
1222
1222
  let {
@@ -1224,87 +1224,87 @@ const gt = (e) => {
1224
1224
  method: h,
1225
1225
  data: b,
1226
1226
  signal: T,
1227
- cancelToken: E,
1227
+ cancelToken: S,
1228
1228
  timeout: R,
1229
- onDownloadProgress: x,
1229
+ onDownloadProgress: P,
1230
1230
  onUploadProgress: v,
1231
1231
  responseType: N,
1232
1232
  headers: me,
1233
- withCredentials: te = "same-origin",
1234
- fetchOptions: Le
1235
- } = gt(d), Fe = t || fetch;
1233
+ withCredentials: ne = "same-origin",
1234
+ fetchOptions: _e
1235
+ } = St(d), ke = t || fetch;
1236
1236
  N = N ? (N + "").toLowerCase() : "text";
1237
- let ne = er([T, E && E.toAbortSignal()], R), K = null;
1238
- const z = ne && ne.unsubscribe && (() => {
1239
- ne.unsubscribe();
1237
+ let re = er([T, S && S.toAbortSignal()], R), X = null;
1238
+ const z = re && re.unsubscribe && (() => {
1239
+ re.unsubscribe();
1240
1240
  });
1241
- let _e;
1241
+ let Ue;
1242
1242
  try {
1243
- if (v && u && h !== "get" && h !== "head" && (_e = await S(me, b)) !== 0) {
1243
+ if (v && u && h !== "get" && h !== "head" && (Ue = await E(me, b)) !== 0) {
1244
1244
  let D = new n(y, {
1245
1245
  method: "POST",
1246
1246
  body: b,
1247
1247
  duplex: "half"
1248
- }), M;
1249
- if (a.isFormData(b) && (M = D.headers.get("content-type")) && me.setContentType(M), D.body) {
1250
- const [we, re] = Me(
1251
- _e,
1252
- ce(He(v))
1248
+ }), H;
1249
+ if (a.isFormData(b) && (H = D.headers.get("content-type")) && me.setContentType(H), D.body) {
1250
+ const [ge, se] = Je(
1251
+ Ue,
1252
+ ue(Ve(v))
1253
1253
  );
1254
- b = Ve(D.body, We, we, re);
1254
+ b = Ke(D.body, Xe, ge, se);
1255
1255
  }
1256
1256
  }
1257
- a.isString(te) || (te = te ? "include" : "omit");
1258
- const B = o && "credentials" in n.prototype, ke = {
1259
- ...Le,
1260
- signal: ne,
1257
+ a.isString(ne) || (ne = ne ? "include" : "omit");
1258
+ const B = o && "credentials" in n.prototype, De = {
1259
+ ..._e,
1260
+ signal: re,
1261
1261
  method: h.toUpperCase(),
1262
1262
  headers: me.normalize().toJSON(),
1263
1263
  body: b,
1264
1264
  duplex: "half",
1265
- credentials: B ? te : void 0
1265
+ credentials: B ? ne : void 0
1266
1266
  };
1267
- K = o && new n(y, ke);
1268
- let U = await (o ? Fe(K, Le) : Fe(y, ke));
1269
- const Ue = l && (N === "stream" || N === "response");
1270
- if (l && (x || Ue && z)) {
1267
+ X = o && new n(y, De);
1268
+ let U = await (o ? ke(X, _e) : ke(y, De));
1269
+ const ve = l && (N === "stream" || N === "response");
1270
+ if (l && (P || ve && z)) {
1271
1271
  const D = {};
1272
- ["status", "statusText", "headers"].forEach((De) => {
1273
- D[De] = U[De];
1272
+ ["status", "statusText", "headers"].forEach((ze) => {
1273
+ D[ze] = U[ze];
1274
1274
  });
1275
- const M = a.toFiniteNumber(U.headers.get("content-length")), [we, re] = x && Me(
1276
- M,
1277
- ce(He(x), !0)
1275
+ const H = a.toFiniteNumber(U.headers.get("content-length")), [ge, se] = P && Je(
1276
+ H,
1277
+ ue(Ve(P), !0)
1278
1278
  ) || [];
1279
1279
  U = new r(
1280
- Ve(U.body, We, we, () => {
1281
- re && re(), z && z();
1280
+ Ke(U.body, Xe, ge, () => {
1281
+ se && se(), z && z();
1282
1282
  }),
1283
1283
  D
1284
1284
  );
1285
1285
  }
1286
1286
  N = N || "text";
1287
1287
  let kt = await p[a.findKey(p, N) || "text"](U, d);
1288
- return !Ue && z && z(), await new Promise((D, M) => {
1289
- mt(D, M, {
1288
+ return !ve && z && z(), await new Promise((D, H) => {
1289
+ wt(D, H, {
1290
1290
  data: kt,
1291
1291
  headers: I.from(U.headers),
1292
1292
  status: U.status,
1293
1293
  statusText: U.statusText,
1294
1294
  config: d,
1295
- request: K
1295
+ request: X
1296
1296
  });
1297
1297
  });
1298
1298
  } catch (B) {
1299
1299
  throw z && z(), B && B.name === "TypeError" && /Load failed|fetch/i.test(B.message) ? Object.assign(
1300
- new m("Network Error", m.ERR_NETWORK, d, K),
1300
+ new m("Network Error", m.ERR_NETWORK, d, X),
1301
1301
  {
1302
1302
  cause: B.cause || B
1303
1303
  }
1304
- ) : m.from(B, B && B.code, d, K);
1304
+ ) : m.from(B, B && B.code, d, X);
1305
1305
  }
1306
1306
  };
1307
- }, ir = /* @__PURE__ */ new Map(), bt = (e) => {
1307
+ }, ir = /* @__PURE__ */ new Map(), Et = (e) => {
1308
1308
  let t = e && e.env || {};
1309
1309
  const { fetch: n, Request: r, Response: s } = t, o = [
1310
1310
  r,
@@ -1316,12 +1316,12 @@ const gt = (e) => {
1316
1316
  f = o[c], u = l.get(f), u === void 0 && l.set(f, u = c ? /* @__PURE__ */ new Map() : or(t)), l = u;
1317
1317
  return u;
1318
1318
  };
1319
- bt();
1319
+ Et();
1320
1320
  const Be = {
1321
1321
  http: An,
1322
1322
  xhr: Zn,
1323
1323
  fetch: {
1324
- get: bt
1324
+ get: Et
1325
1325
  }
1326
1326
  };
1327
1327
  a.forEach(Be, (e, t) => {
@@ -1333,7 +1333,7 @@ a.forEach(Be, (e, t) => {
1333
1333
  Object.defineProperty(e, "adapterName", { value: t });
1334
1334
  }
1335
1335
  });
1336
- const Qe = (e) => `- ${e}`, ar = (e) => a.isFunction(e) || e === null || e === !1;
1336
+ const Ze = (e) => `- ${e}`, ar = (e) => a.isFunction(e) || e === null || e === !1;
1337
1337
  function cr(e, t) {
1338
1338
  e = a.isArray(e) ? e : [e];
1339
1339
  const { length: n } = e;
@@ -1353,8 +1353,8 @@ function cr(e, t) {
1353
1353
  ([f, u]) => `adapter ${f} ` + (u === !1 ? "is not supported by the environment" : "is not available in the build")
1354
1354
  );
1355
1355
  let c = n ? i.length > 1 ? `since :
1356
- ` + i.map(Qe).join(`
1357
- `) : " " + Qe(i[0]) : "as no adapter specified";
1356
+ ` + i.map(Ze).join(`
1357
+ `) : " " + Ze(i[0]) : "as no adapter specified";
1358
1358
  throw new m(
1359
1359
  "There is no suitable adapter to dispatch the request " + c,
1360
1360
  "ERR_NOT_SUPPORT"
@@ -1362,7 +1362,7 @@ function cr(e, t) {
1362
1362
  }
1363
1363
  return s;
1364
1364
  }
1365
- const Et = {
1365
+ const Ct = {
1366
1366
  /**
1367
1367
  * Resolve an adapter from a list of adapter names or functions.
1368
1368
  * @type {Function}
@@ -1374,38 +1374,38 @@ const Et = {
1374
1374
  */
1375
1375
  adapters: Be
1376
1376
  };
1377
- function Ee(e) {
1377
+ function Se(e) {
1378
1378
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1379
- throw new W(null, e);
1379
+ throw new K(null, e);
1380
1380
  }
1381
- function Ye(e) {
1382
- return Ee(e), e.headers = I.from(e.headers), e.data = be.call(
1381
+ function et(e) {
1382
+ return Se(e), e.headers = I.from(e.headers), e.data = be.call(
1383
1383
  e,
1384
1384
  e.transformRequest
1385
- ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Et.getAdapter(e.adapter || ee.adapter, e)(e).then(function(r) {
1386
- return Ee(e), r.data = be.call(
1385
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Ct.getAdapter(e.adapter || te.adapter, e)(e).then(function(r) {
1386
+ return Se(e), r.data = be.call(
1387
1387
  e,
1388
1388
  e.transformResponse,
1389
1389
  r
1390
1390
  ), r.headers = I.from(r.headers), r;
1391
1391
  }, function(r) {
1392
- return yt(r) || (Ee(e), r && r.response && (r.response.data = be.call(
1392
+ return gt(r) || (Se(e), r && r.response && (r.response.data = be.call(
1393
1393
  e,
1394
1394
  e.transformResponse,
1395
1395
  r.response
1396
1396
  ), r.response.headers = I.from(r.response.headers))), Promise.reject(r);
1397
1397
  });
1398
1398
  }
1399
- const St = "1.13.2", he = {};
1399
+ const At = "1.13.2", he = {};
1400
1400
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
1401
1401
  he[e] = function(r) {
1402
1402
  return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
1403
1403
  };
1404
1404
  });
1405
- const Ze = {};
1405
+ const tt = {};
1406
1406
  he.transitional = function(t, n, r) {
1407
1407
  function s(o, i) {
1408
- return "[Axios v" + St + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
1408
+ return "[Axios v" + At + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
1409
1409
  }
1410
1410
  return (o, i, c) => {
1411
1411
  if (t === !1)
@@ -1413,7 +1413,7 @@ he.transitional = function(t, n, r) {
1413
1413
  s(i, " has been removed" + (n ? " in " + n : "")),
1414
1414
  m.ERR_DEPRECATED
1415
1415
  );
1416
- return n && !Ze[i] && (Ze[i] = !0, console.warn(
1416
+ return n && !tt[i] && (tt[i] = !0, console.warn(
1417
1417
  s(
1418
1418
  i,
1419
1419
  " has been deprecated since v" + n + " and will be removed in the near future"
@@ -1441,15 +1441,15 @@ function ur(e, t, n) {
1441
1441
  throw new m("Unknown option " + o, m.ERR_BAD_OPTION);
1442
1442
  }
1443
1443
  }
1444
- const ae = {
1444
+ const ce = {
1445
1445
  assertOptions: ur,
1446
1446
  validators: he
1447
- }, L = ae.validators;
1448
- let j = class {
1447
+ }, L = ce.validators;
1448
+ let $ = class {
1449
1449
  constructor(t) {
1450
1450
  this.defaults = t || {}, this.interceptors = {
1451
- request: new je(),
1452
- response: new je()
1451
+ request: new Me(),
1452
+ response: new Me()
1453
1453
  };
1454
1454
  }
1455
1455
  /**
@@ -1478,18 +1478,18 @@ let j = class {
1478
1478
  }
1479
1479
  }
1480
1480
  _request(t, n) {
1481
- typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = $(this.defaults, n);
1481
+ typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = M(this.defaults, n);
1482
1482
  const { transitional: r, paramsSerializer: s, headers: o } = n;
1483
- r !== void 0 && ae.assertOptions(r, {
1483
+ r !== void 0 && ce.assertOptions(r, {
1484
1484
  silentJSONParsing: L.transitional(L.boolean),
1485
1485
  forcedJSONParsing: L.transitional(L.boolean),
1486
1486
  clarifyTimeoutError: L.transitional(L.boolean)
1487
1487
  }, !1), s != null && (a.isFunction(s) ? n.paramsSerializer = {
1488
1488
  serialize: s
1489
- } : ae.assertOptions(s, {
1489
+ } : ce.assertOptions(s, {
1490
1490
  encode: L.function,
1491
1491
  serialize: L.function
1492
- }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), ae.assertOptions(n, {
1492
+ }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), ce.assertOptions(n, {
1493
1493
  baseUrl: L.spelling("baseURL"),
1494
1494
  withXsrfToken: L.spelling("withXSRFToken")
1495
1495
  }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
@@ -1512,42 +1512,42 @@ let j = class {
1512
1512
  this.interceptors.response.forEach(function(y) {
1513
1513
  u.push(y.fulfilled, y.rejected);
1514
1514
  });
1515
- let l, p = 0, w;
1515
+ let l, p = 0, g;
1516
1516
  if (!f) {
1517
- const d = [Ye.bind(this), void 0];
1518
- for (d.unshift(...c), d.push(...u), w = d.length, l = Promise.resolve(n); p < w; )
1517
+ const d = [et.bind(this), void 0];
1518
+ for (d.unshift(...c), d.push(...u), g = d.length, l = Promise.resolve(n); p < g; )
1519
1519
  l = l.then(d[p++], d[p++]);
1520
1520
  return l;
1521
1521
  }
1522
- w = c.length;
1523
- let S = n;
1524
- for (; p < w; ) {
1522
+ g = c.length;
1523
+ let E = n;
1524
+ for (; p < g; ) {
1525
1525
  const d = c[p++], y = c[p++];
1526
1526
  try {
1527
- S = d(S);
1527
+ E = d(E);
1528
1528
  } catch (h) {
1529
1529
  y.call(this, h);
1530
1530
  break;
1531
1531
  }
1532
1532
  }
1533
1533
  try {
1534
- l = Ye.call(this, S);
1534
+ l = et.call(this, E);
1535
1535
  } catch (d) {
1536
1536
  return Promise.reject(d);
1537
1537
  }
1538
- for (p = 0, w = u.length; p < w; )
1538
+ for (p = 0, g = u.length; p < g; )
1539
1539
  l = l.then(u[p++], u[p++]);
1540
1540
  return l;
1541
1541
  }
1542
1542
  getUri(t) {
1543
- t = $(this.defaults, t);
1544
- const n = wt(t.baseURL, t.url, t.allowAbsoluteUrls);
1545
- return ft(n, t.params, t.paramsSerializer);
1543
+ t = M(this.defaults, t);
1544
+ const n = bt(t.baseURL, t.url, t.allowAbsoluteUrls);
1545
+ return ht(n, t.params, t.paramsSerializer);
1546
1546
  }
1547
1547
  };
1548
1548
  a.forEach(["delete", "get", "head", "options"], function(t) {
1549
- j.prototype[t] = function(n, r) {
1550
- return this.request($(r || {}, {
1549
+ $.prototype[t] = function(n, r) {
1550
+ return this.request(M(r || {}, {
1551
1551
  method: t,
1552
1552
  url: n,
1553
1553
  data: (r || {}).data
@@ -1557,7 +1557,7 @@ a.forEach(["delete", "get", "head", "options"], function(t) {
1557
1557
  a.forEach(["post", "put", "patch"], function(t) {
1558
1558
  function n(r) {
1559
1559
  return function(o, i, c) {
1560
- return this.request($(c || {}, {
1560
+ return this.request(M(c || {}, {
1561
1561
  method: t,
1562
1562
  headers: r ? {
1563
1563
  "Content-Type": "multipart/form-data"
@@ -1567,9 +1567,9 @@ a.forEach(["post", "put", "patch"], function(t) {
1567
1567
  }));
1568
1568
  };
1569
1569
  }
1570
- j.prototype[t] = n(), j.prototype[t + "Form"] = n(!0);
1570
+ $.prototype[t] = n(), $.prototype[t + "Form"] = n(!0);
1571
1571
  });
1572
- let lr = class Ct {
1572
+ let lr = class Rt {
1573
1573
  constructor(t) {
1574
1574
  if (typeof t != "function")
1575
1575
  throw new TypeError("executor must be a function.");
@@ -1593,7 +1593,7 @@ let lr = class Ct {
1593
1593
  r.unsubscribe(o);
1594
1594
  }, i;
1595
1595
  }, t(function(o, i, c) {
1596
- r.reason || (r.reason = new W(o, i, c), n(r.reason));
1596
+ r.reason || (r.reason = new K(o, i, c), n(r.reason));
1597
1597
  });
1598
1598
  }
1599
1599
  /**
@@ -1635,7 +1635,7 @@ let lr = class Ct {
1635
1635
  static source() {
1636
1636
  let t;
1637
1637
  return {
1638
- token: new Ct(function(s) {
1638
+ token: new Rt(function(s) {
1639
1639
  t = s;
1640
1640
  }),
1641
1641
  cancel: t
@@ -1724,50 +1724,50 @@ const Oe = {
1724
1724
  Object.entries(Oe).forEach(([e, t]) => {
1725
1725
  Oe[t] = e;
1726
1726
  });
1727
- function At(e) {
1728
- const t = new j(e), n = et(j.prototype.request, t);
1729
- return a.extend(n, j.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
1730
- return At($(e, s));
1727
+ function Ot(e) {
1728
+ const t = new $(e), n = nt($.prototype.request, t);
1729
+ return a.extend(n, $.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
1730
+ return Ot(M(e, s));
1731
1731
  }, n;
1732
1732
  }
1733
- const g = At(ee);
1734
- g.Axios = j;
1735
- g.CanceledError = W;
1736
- g.CancelToken = lr;
1737
- g.isCancel = yt;
1738
- g.VERSION = St;
1739
- g.toFormData = pe;
1740
- g.AxiosError = m;
1741
- g.Cancel = g.CanceledError;
1742
- g.all = function(t) {
1733
+ const w = Ot(te);
1734
+ w.Axios = $;
1735
+ w.CanceledError = K;
1736
+ w.CancelToken = lr;
1737
+ w.isCancel = gt;
1738
+ w.VERSION = At;
1739
+ w.toFormData = pe;
1740
+ w.AxiosError = m;
1741
+ w.Cancel = w.CanceledError;
1742
+ w.all = function(t) {
1743
1743
  return Promise.all(t);
1744
1744
  };
1745
- g.spread = dr;
1746
- g.isAxiosError = fr;
1747
- g.mergeConfig = $;
1748
- g.AxiosHeaders = I;
1749
- g.formToJSON = (e) => ht(a.isHTMLForm(e) ? new FormData(e) : e);
1750
- g.getAdapter = Et.getAdapter;
1751
- g.HttpStatusCode = Oe;
1752
- g.default = g;
1745
+ w.spread = dr;
1746
+ w.isAxiosError = fr;
1747
+ w.mergeConfig = M;
1748
+ w.AxiosHeaders = I;
1749
+ w.formToJSON = (e) => mt(a.isHTMLForm(e) ? new FormData(e) : e);
1750
+ w.getAdapter = Ct.getAdapter;
1751
+ w.HttpStatusCode = Oe;
1752
+ w.default = w;
1753
1753
  const {
1754
1754
  Axios: xr,
1755
- AxiosError: Pr,
1756
- CanceledError: Br,
1757
- isCancel: Lr,
1758
- CancelToken: Fr,
1759
- VERSION: _r,
1760
- all: kr,
1761
- Cancel: Ur,
1762
- isAxiosError: Dr,
1763
- spread: vr,
1764
- toFormData: zr,
1765
- AxiosHeaders: qr,
1766
- HttpStatusCode: jr,
1767
- formToJSON: $r,
1768
- getAdapter: Mr,
1769
- mergeConfig: Hr
1770
- } = g, Ie = g.create({
1755
+ AxiosError: Br,
1756
+ CanceledError: Lr,
1757
+ isCancel: Fr,
1758
+ CancelToken: _r,
1759
+ VERSION: kr,
1760
+ all: Ur,
1761
+ Cancel: Dr,
1762
+ isAxiosError: vr,
1763
+ spread: zr,
1764
+ toFormData: qr,
1765
+ AxiosHeaders: jr,
1766
+ HttpStatusCode: $r,
1767
+ formToJSON: Mr,
1768
+ getAdapter: Hr,
1769
+ mergeConfig: Jr
1770
+ } = w, Ie = w.create({
1771
1771
  timeout: 15e3
1772
1772
  // withCredentials: true,
1773
1773
  });
@@ -1775,7 +1775,7 @@ Ie.interceptors.response.use(
1775
1775
  (e) => e,
1776
1776
  (e) => Promise.reject(e)
1777
1777
  );
1778
- const Rt = {
1778
+ const It = {
1779
1779
  async get(e, t) {
1780
1780
  const n = await Ie.get(e, {
1781
1781
  params: t?.params,
@@ -1827,23 +1827,30 @@ function pr(e) {
1827
1827
  }
1828
1828
  };
1829
1829
  }
1830
- let G = Rt;
1831
- function Jr(e, t) {
1832
- return e === "fetch" ? G = pr(t?.fetch ?? fetch) : G = Rt, G;
1830
+ let Q = It;
1831
+ function Vr(e, t) {
1832
+ return e === "fetch" ? Q = pr(t?.fetch ?? fetch) : Q = It, Q;
1833
1833
  }
1834
- const Ot = {
1835
- get: (...e) => G.get(...e),
1836
- post: (...e) => G.post(...e)
1837
- }, ue = {
1834
+ const Le = {
1835
+ get: (...e) => Q.get(...e),
1836
+ post: (...e) => Q.post(...e)
1837
+ }, q = {
1838
1838
  prefixPath: "https://cloudapi-sit2.jctrans.net.cn",
1839
- searchPath: "/system/dms/fr/aggr/getLocationOptions"
1839
+ searchPath: "/system/dms/fr/aggr/getLocationOptions",
1840
+ oldSearchPath: "/system/dms/fr/aggr/findPageList"
1840
1841
  }, hr = {
1841
1842
  get basePath() {
1842
- return ue.prefixPath + ue.searchPath;
1843
+ return q.prefixPath + q.searchPath;
1844
+ },
1845
+ get oldBasePath() {
1846
+ return q.prefixPath + q.oldSearchPath;
1847
+ },
1848
+ get prefixPath() {
1849
+ return q.prefixPath;
1843
1850
  }
1844
- }, Vr = (e) => {
1845
- e && (e.prefixPath !== void 0 && (ue.prefixPath = e.prefixPath), e.searchPath !== void 0 && (ue.searchPath = e.searchPath));
1846
- }, It = () => hr, Tt = () => {
1851
+ }, Wr = (e) => {
1852
+ e && (e.prefixPath !== void 0 && (q.prefixPath = e.prefixPath), e.searchPath !== void 0 && (q.searchPath = e.searchPath));
1853
+ }, Fe = () => hr, Tt = () => {
1847
1854
  let e;
1848
1855
  try {
1849
1856
  typeof useCookie == "function" && (e = useCookie("jc-language")?.value);
@@ -1863,42 +1870,42 @@ const Ot = {
1863
1870
  } catch {
1864
1871
  }
1865
1872
  return !1;
1866
- }, yr = () => It().basePath, mr = {
1873
+ }, yr = () => Fe().oldBasePath, mr = {
1867
1874
  Continent: "continentId",
1868
1875
  Country: "countryId",
1869
1876
  City: "cityId",
1870
1877
  Province: "provinceId",
1871
1878
  Seaport: "seaportId",
1872
1879
  Airport: "airportId"
1873
- }, wr = [
1880
+ }, gr = [
1874
1881
  "City",
1875
1882
  "Seaport",
1876
1883
  "Airport",
1877
1884
  "Country",
1878
1885
  "Region"
1879
1886
  ].filter(Boolean);
1880
- function H(e, t) {
1887
+ function J(e, t) {
1881
1888
  return e === "allCityByCountryId" ? Array.isArray(t) ? String(t[0]) : String(t) : Array.isArray(t) ? JSON.stringify(t) : JSON.stringify([Number(t)]);
1882
1889
  }
1883
- function gr(e) {
1890
+ function wr(e) {
1884
1891
  const t = [];
1885
1892
  if (e.ids)
1886
1893
  for (const n of e.ids) {
1887
1894
  const r = mr[n.type];
1888
1895
  t.push({
1889
1896
  name: r,
1890
- val: H(r, n.ids)
1897
+ val: J(r, n.ids)
1891
1898
  });
1892
1899
  }
1893
1900
  return e.scope && (e.scope.countryId !== void 0 && e.scope.countryId !== null && t.push({
1894
1901
  name: "countryId",
1895
- val: H("countryId", [e.scope.countryId])
1902
+ val: J("countryId", [e.scope.countryId])
1896
1903
  }), e.scope.cityId !== void 0 && e.scope.cityId !== null && t.push({
1897
1904
  name: "cityId",
1898
- val: H("cityId", [e.scope.cityId])
1905
+ val: J("cityId", [e.scope.cityId])
1899
1906
  }), e.scope.provinceId !== void 0 && e.scope.provinceId !== null && t.push({
1900
1907
  name: "provinceId",
1901
- val: H("provinceId", [e.scope.provinceId])
1908
+ val: J("provinceId", [e.scope.provinceId])
1902
1909
  })), t;
1903
1910
  }
1904
1911
  function k(e) {
@@ -1907,9 +1914,9 @@ function k(e) {
1907
1914
  size: e.size ?? 10,
1908
1915
  level: e.level,
1909
1916
  searchContent: e.keyword ?? void 0,
1910
- displayInfo: e.displayInfo ?? wr,
1917
+ displayInfo: e.displayInfo ?? gr,
1911
1918
  sort: e.sort
1912
- }, n = gr({
1919
+ }, n = wr({
1913
1920
  ids: e.ids,
1914
1921
  scope: e.scope
1915
1922
  });
@@ -1920,8 +1927,8 @@ function k(e) {
1920
1927
  function br(e, t, n) {
1921
1928
  const r = Tt(), s = (u, l) => {
1922
1929
  if (!u) return "";
1923
- const p = u.nameCn ?? u[`${l.toLowerCase()}NameCn`] ?? u.name, w = u.nameEn ?? u[`${l.toLowerCase()}NameEn`];
1924
- return r ? w || p || "" : p || w || "";
1930
+ const p = u.nameCn ?? u[`${l.toLowerCase()}NameCn`] ?? u.name, g = u.nameEn ?? u[`${l.toLowerCase()}NameEn`];
1931
+ return r ? g || p || "" : p || g || "";
1925
1932
  }, o = s(e, t), i = s(n.country, "country"), c = s(n.city, "city"), f = s(n.continent, "continent");
1926
1933
  switch (t) {
1927
1934
  case "Seaport":
@@ -1987,7 +1994,7 @@ function F(e = [], t = []) {
1987
1994
  });
1988
1995
  }
1989
1996
  async function _(e) {
1990
- return (await Ot.post(yr(), e)).data;
1997
+ return (await Le.post(yr(), e)).data;
1991
1998
  }
1992
1999
  async function ye(e) {
1993
2000
  const t = k({
@@ -2022,7 +2029,7 @@ async function Nt(e) {
2022
2029
  sort: e.sort
2023
2030
  });
2024
2031
  }
2025
- async function Er(e, t) {
2032
+ async function Sr(e, t) {
2026
2033
  const n = Array.isArray(t) ? t : [t], r = [e], s = k({
2027
2034
  displayInfo: r,
2028
2035
  ids: [{ type: e, ids: n }]
@@ -2032,10 +2039,10 @@ async function Er(e, t) {
2032
2039
  r
2033
2040
  ).filter((c) => c.type === e);
2034
2041
  }
2035
- async function Wr(e, t) {
2036
- return (await Er(e, [t]))[0] ?? null;
2037
- }
2038
2042
  async function Kr(e, t) {
2043
+ return (await Sr(e, [t]))[0] ?? null;
2044
+ }
2045
+ async function Xr(e, t) {
2039
2046
  const n = ["City"], r = k({
2040
2047
  displayInfo: n,
2041
2048
  page: t?.page ?? 1,
@@ -2043,7 +2050,7 @@ async function Kr(e, t) {
2043
2050
  extraAppoint: [
2044
2051
  {
2045
2052
  name: "allCityByCountryId",
2046
- val: H("allCityByCountryId", e)
2053
+ val: J("allCityByCountryId", e)
2047
2054
  }
2048
2055
  ]
2049
2056
  }), s = await _(r);
@@ -2052,7 +2059,7 @@ async function Kr(e, t) {
2052
2059
  records: F(s.records || [], n)
2053
2060
  };
2054
2061
  }
2055
- async function Xr(e, t, n) {
2062
+ async function Gr(e, t, n) {
2056
2063
  if (!t || t.length === 0)
2057
2064
  throw new Error("childTypes 必须至少包含一个:Seaport | Airport");
2058
2065
  const r = t, s = k({
@@ -2062,7 +2069,7 @@ async function Xr(e, t, n) {
2062
2069
  extraAppoint: [
2063
2070
  {
2064
2071
  name: "cityId",
2065
- val: H("cityId", [e])
2072
+ val: J("cityId", [e])
2066
2073
  }
2067
2074
  ]
2068
2075
  }), o = await _(s);
@@ -2071,7 +2078,7 @@ async function Xr(e, t, n) {
2071
2078
  records: F(o.records || [], r)
2072
2079
  };
2073
2080
  }
2074
- function Gr(e, t) {
2081
+ function Qr(e, t) {
2075
2082
  return Nt({
2076
2083
  keyword: e,
2077
2084
  types: ["Country"],
@@ -2079,7 +2086,7 @@ function Gr(e, t) {
2079
2086
  size: t?.size
2080
2087
  });
2081
2088
  }
2082
- function Qr(e, t) {
2089
+ function Yr(e, t) {
2083
2090
  return t?.countryId ? ye({
2084
2091
  keyword: e,
2085
2092
  displayInfo: ["City"],
@@ -2093,7 +2100,7 @@ function Qr(e, t) {
2093
2100
  size: t?.size
2094
2101
  });
2095
2102
  }
2096
- function Yr(e, t) {
2103
+ function Zr(e, t) {
2097
2104
  return ye({
2098
2105
  keyword: e,
2099
2106
  displayInfo: ["Seaport"],
@@ -2102,7 +2109,7 @@ function Yr(e, t) {
2102
2109
  size: t?.size
2103
2110
  });
2104
2111
  }
2105
- function Zr(e, t) {
2112
+ function es(e, t) {
2106
2113
  return ye({
2107
2114
  keyword: e,
2108
2115
  displayInfo: ["Airport"],
@@ -2111,7 +2118,7 @@ function Zr(e, t) {
2111
2118
  size: t?.size
2112
2119
  });
2113
2120
  }
2114
- async function es(e = {}) {
2121
+ async function ts(e = {}) {
2115
2122
  const t = ["Continent"], n = await _({
2116
2123
  current: e.page ?? 1,
2117
2124
  size: e.size ?? 10,
@@ -2123,7 +2130,7 @@ async function es(e = {}) {
2123
2130
  records: F(n.records || [], t)
2124
2131
  };
2125
2132
  }
2126
- async function ts(e = {}) {
2133
+ async function ns(e = {}) {
2127
2134
  const t = ["Country"], n = k({
2128
2135
  displayInfo: t,
2129
2136
  page: e.page ?? 1,
@@ -2135,7 +2142,7 @@ async function ts(e = {}) {
2135
2142
  records: F(r.records || [], t)
2136
2143
  };
2137
2144
  }
2138
- async function ns(e = {}) {
2145
+ async function rs(e = {}) {
2139
2146
  const t = ["City"], n = k({
2140
2147
  displayInfo: t,
2141
2148
  page: e.page ?? 1,
@@ -2148,7 +2155,7 @@ async function ns(e = {}) {
2148
2155
  records: F(r.records || [], t)
2149
2156
  };
2150
2157
  }
2151
- async function rs(e = {}) {
2158
+ async function ss(e = {}) {
2152
2159
  const t = ["Province"], n = k({
2153
2160
  displayInfo: t,
2154
2161
  page: e.page ?? 1,
@@ -2161,7 +2168,7 @@ async function rs(e = {}) {
2161
2168
  records: F(r.records || [], t)
2162
2169
  };
2163
2170
  }
2164
- async function ss(e = {}) {
2171
+ async function os(e = {}) {
2165
2172
  const t = ["Seaport"], n = k({
2166
2173
  displayInfo: t,
2167
2174
  page: e.page ?? 1,
@@ -2174,7 +2181,7 @@ async function ss(e = {}) {
2174
2181
  records: F(r.records || [], t)
2175
2182
  };
2176
2183
  }
2177
- async function os(e = {}) {
2184
+ async function is(e = {}) {
2178
2185
  const t = ["Airport"], n = k({
2179
2186
  displayInfo: t,
2180
2187
  page: e.page ?? 1,
@@ -2187,8 +2194,8 @@ async function os(e = {}) {
2187
2194
  records: F(r.records || [], t)
2188
2195
  };
2189
2196
  }
2190
- const Sr = "2.0", Cr = () => It().basePath;
2191
- function xt(e) {
2197
+ const Er = "2.0", Cr = () => Fe().basePath;
2198
+ function Pt(e) {
2192
2199
  let t = e.type;
2193
2200
  return t === "Country" && e.region && !e.country ? {
2194
2201
  target: e.region,
@@ -2198,8 +2205,8 @@ function xt(e) {
2198
2205
  finalType: t
2199
2206
  };
2200
2207
  }
2201
- function Se(e, t) {
2202
- const { target: n, finalType: r } = xt(e), s = (u) => {
2208
+ function Ee(e, t) {
2209
+ const { target: n, finalType: r } = Pt(e), s = (u) => {
2203
2210
  if (!u) return "";
2204
2211
  const l = u.nameCn || u.displayNameCn || u.name || "", p = u.nameEn || u.displayNameEn || u.nameEnShow || "";
2205
2212
  return t ? p || l : l || p;
@@ -2212,16 +2219,16 @@ function Se(e, t) {
2212
2219
  }
2213
2220
  function Ar(e = []) {
2214
2221
  return e.map((t) => {
2215
- const { target: n, finalType: r } = xt(t);
2222
+ const { target: n, finalType: r } = Pt(t);
2216
2223
  return {
2217
2224
  // 优先取嵌套对象里的 ID
2218
2225
  id: n.id ?? t.id,
2219
2226
  type: r,
2220
2227
  nameCn: n.nameCn || n.name,
2221
2228
  nameEn: n.nameEn || n.nameEnShow,
2222
- display: Se(t, Tt()),
2223
- displayEn: Se(t, !0),
2224
- displayCn: Se(t, !1),
2229
+ display: Ee(t, Tt()),
2230
+ displayEn: Ee(t, !0),
2231
+ displayCn: Ee(t, !1),
2225
2232
  // continent: rec.continent,
2226
2233
  // 统一输出时,将 region 映射到 country 字段或保留原样,取决于业务需求
2227
2234
  // country: rec.country || rec.region,
@@ -2238,13 +2245,13 @@ async function A(e) {
2238
2245
  size: 10,
2239
2246
  // 默认每页 10 条
2240
2247
  ...e
2241
- }, r = (await Ot.post(Cr(), t)).data.data || {};
2248
+ }, r = (await Le.post(Cr(), t)).data.data || {};
2242
2249
  return {
2243
2250
  ...r,
2244
2251
  records: Ar(r.records || [])
2245
2252
  };
2246
2253
  }
2247
- const Pt = {
2254
+ const xt = {
2248
2255
  searchByName: (e) => A({
2249
2256
  searchContent: e.keyword,
2250
2257
  searchMode: e.searchMode,
@@ -2298,7 +2305,7 @@ const Pt = {
2298
2305
  const n = Array.isArray(e) ? e : [e];
2299
2306
  switch (t) {
2300
2307
  case "Country":
2301
- return Pt.getByIds(n);
2308
+ return xt.getByIds(n);
2302
2309
  case "Region":
2303
2310
  return Bt.getByIds(n);
2304
2311
  case "City":
@@ -2315,11 +2322,11 @@ const Pt = {
2315
2322
  displayInfo: [t]
2316
2323
  });
2317
2324
  }
2318
- }, is = {
2319
- SEARCH_VERSION: Sr,
2325
+ }, as = {
2326
+ SEARCH_VERSION: Er,
2320
2327
  searchByName: Rr,
2321
2328
  searchByIdWithType: Or,
2322
- country: Pt,
2329
+ country: xt,
2323
2330
  region: Bt,
2324
2331
  city: Te,
2325
2332
  seaport: Lt,
@@ -2329,34 +2336,47 @@ const Pt = {
2329
2336
  getCitiesByCountry: Te.getCitiesByCountry,
2330
2337
  /** 获取某个城市下的子实体(港口、机场、码头等) */
2331
2338
  getChildrenByCity: (e, t, n) => A({ cityIds: [e], displayInfo: t, ...n })
2332
- }, as = {
2339
+ }, Ir = () => Fe().prefixPath;
2340
+ async function cs(e) {
2341
+ const t = {
2342
+ ...e
2343
+ };
2344
+ return {
2345
+ ...(await Le.post(
2346
+ Ir() + "/system/dms/fr/dmsReport/report",
2347
+ t
2348
+ )).data.data || {}
2349
+ };
2350
+ }
2351
+ const us = {
2333
2352
  Open: "GLOBAL_MODAL_OPEN",
2334
2353
  Close: "GLOBAL_MODAL_CLOSE",
2335
2354
  Submit: "GLOBAL_MODAL_SUBMIT"
2336
- }, cs = Ut();
2355
+ }, ls = Ut();
2337
2356
  export {
2338
- as as MODAL_ACTION,
2339
- Jr as createRequest,
2357
+ us as MODAL_ACTION,
2358
+ Vr as createRequest,
2340
2359
  hr as currentConfig,
2341
- cs as emitter,
2342
- os as getAirport,
2343
- Wr as getById,
2344
- Er as getByIds,
2345
- Xr as getChildrenByCity,
2346
- Kr as getCitiesByCountry,
2347
- ns as getCity,
2348
- es as getContinent,
2349
- ts as getCountry,
2360
+ ls as emitter,
2361
+ is as getAirport,
2362
+ Kr as getById,
2363
+ Sr as getByIds,
2364
+ Gr as getChildrenByCity,
2365
+ Xr as getCitiesByCountry,
2366
+ rs as getCity,
2367
+ ts as getContinent,
2368
+ ns as getCountry,
2350
2369
  Tt as getIsEn,
2351
- rs as getProvince,
2352
- ss as getSeaport,
2353
- It as getSharedConfig,
2354
- Vr as initSharedConfig,
2355
- is as locationSearchV2,
2370
+ ss as getProvince,
2371
+ os as getSeaport,
2372
+ Fe as getSharedConfig,
2373
+ Wr as initSharedConfig,
2374
+ as as locationSearchV2,
2375
+ cs as reportNewTypeDataApi,
2356
2376
  ye as search,
2357
- Zr as searchAirportByName,
2377
+ es as searchAirportByName,
2358
2378
  Nt as searchByName,
2359
- Qr as searchCityByName,
2360
- Gr as searchCountryByName,
2361
- Yr as searchSeaportByName
2379
+ Yr as searchCityByName,
2380
+ Qr as searchCountryByName,
2381
+ Zr as searchSeaportByName
2362
2382
  };