@das-fed/utils 6.4.0-hot.26 → 6.4.0-hot.27

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 (47) hide show
  1. package/api-services/index.js +861 -864
  2. package/api-services/index.js.gz +0 -0
  3. package/api-services/modules/app-manage/index.js +3099 -3
  4. package/api-services/modules/app-manage/index.js.gz +0 -0
  5. package/api-services/modules/authentication/index.js +3099 -3
  6. package/api-services/modules/authentication/index.js.gz +0 -0
  7. package/api-services/modules/bems/index.js +3102 -6
  8. package/api-services/modules/bems/index.js.gz +0 -0
  9. package/api-services/modules/contract/index.js +3099 -3
  10. package/api-services/modules/contract/index.js.gz +0 -0
  11. package/api-services/modules/duty-manage/index.js +3103 -7
  12. package/api-services/modules/duty-manage/index.js.gz +0 -0
  13. package/api-services/modules/enterpriseright/index.js +3099 -3
  14. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  15. package/api-services/modules/file/index.js +3254 -156
  16. package/api-services/modules/file/index.js.gz +0 -0
  17. package/api-services/modules/gateway-edge/index.js +3099 -3
  18. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  19. package/api-services/modules/index.js +3309 -217
  20. package/api-services/modules/index.js.gz +0 -0
  21. package/api-services/modules/iot/index.js +3112 -16
  22. package/api-services/modules/iot/index.js.gz +0 -0
  23. package/api-services/modules/justauth/index.js +3100 -4
  24. package/api-services/modules/justauth/index.js.gz +0 -0
  25. package/api-services/modules/knowledge/index.js +3099 -3
  26. package/api-services/modules/knowledge/index.js.gz +0 -0
  27. package/api-services/modules/link/index.js +3099 -3
  28. package/api-services/modules/link/index.js.gz +0 -0
  29. package/api-services/modules/permission/index.js +3099 -3
  30. package/api-services/modules/permission/index.js.gz +0 -0
  31. package/api-services/modules/platformManage/index.js +3106 -10
  32. package/api-services/modules/platformManage/index.js.gz +0 -0
  33. package/api-services/modules/portal/index.js +3099 -3
  34. package/api-services/modules/portal/index.js.gz +0 -0
  35. package/api-services/modules/space-manage/index.js +3099 -3
  36. package/api-services/modules/space-manage/index.js.gz +0 -0
  37. package/api-services/modules/super-admin/index.js +3102 -6
  38. package/api-services/modules/super-admin/index.js.gz +0 -0
  39. package/api-services/modules/supplier/index.js +3101 -5
  40. package/api-services/modules/supplier/index.js.gz +0 -0
  41. package/api-services/modules/supplychain-manage/index.js +3099 -3
  42. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  43. package/api-services/modules/systemConfiguration/index.js +3099 -3
  44. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  45. package/api-services/modules/tool/index.js +3099 -3
  46. package/api-services/modules/tool/index.js.gz +0 -0
  47. package/package.json +4 -4
@@ -1,5 +1,3101 @@
1
- import { createService as e } from "@das-fed/utils/create-api-service";
2
- const a = "v1", r = e(`/api/space-manage/space-tree/${a}`);
1
+ import { t as re } from "@das-fed/web/packages/i18n/index";
2
+ import { curringHttp as bn } from "@das-fed/utils/curring-http";
3
+ import { getToken as wn, getQuery as Sn, login as En, getTokenParams as An, real_uri as On } from "@das-fed/utils/create-api-service/sso";
4
+ import Ot from "dayjs";
5
+ import Rn from "dayjs/plugin/utc";
6
+ import Pn from "dayjs/plugin/timezone";
7
+ import { getProjectInfo as Tn, getInstanceInfo as xn } from "@das-fed/utils/common-info";
8
+ import { getAccessToken as Fn } from "@das-fed/utils/token-tools";
9
+ import { getConfig as Er } from "@das-fed/utils/config";
10
+ function Ar(t, e) {
11
+ return function() {
12
+ return t.apply(e, arguments);
13
+ };
14
+ }
15
+ const { toString: Cn } = Object.prototype, { getPrototypeOf: Rt } = Object, ke = /* @__PURE__ */ ((t) => (e) => {
16
+ const n = Cn.call(e);
17
+ return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
18
+ })(/* @__PURE__ */ Object.create(null)), B = (t) => (t = t.toLowerCase(), (e) => ke(e) === t), je = (t) => (e) => typeof e === t, { isArray: ue } = Array, we = je("undefined");
19
+ function Dn(t) {
20
+ return t !== null && !we(t) && t.constructor !== null && !we(t.constructor) && _(t.constructor.isBuffer) && t.constructor.isBuffer(t);
21
+ }
22
+ const Or = B("ArrayBuffer");
23
+ function Nn(t) {
24
+ let e;
25
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Or(t.buffer), e;
26
+ }
27
+ const In = je("string"), _ = je("function"), Rr = je("number"), qe = (t) => t !== null && typeof t == "object", _n = (t) => t === !0 || t === !1, Ce = (t) => {
28
+ if (ke(t) !== "object")
29
+ return !1;
30
+ const e = Rt(t);
31
+ return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
32
+ }, $n = B("Date"), Bn = B("File"), Un = B("Blob"), Ln = B("FileList"), Mn = (t) => qe(t) && _(t.pipe), kn = (t) => {
33
+ let e;
34
+ return t && (typeof FormData == "function" && t instanceof FormData || _(t.append) && ((e = ke(t)) === "formdata" || // detect form-data instance
35
+ e === "object" && _(t.toString) && t.toString() === "[object FormData]"));
36
+ }, jn = B("URLSearchParams"), [qn, Hn, Wn, zn] = ["ReadableStream", "Request", "Response", "Headers"].map(B), Gn = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
37
+ function Se(t, e, { allOwnKeys: n = !1 } = {}) {
38
+ if (t === null || typeof t > "u")
39
+ return;
40
+ let r, o;
41
+ if (typeof t != "object" && (t = [t]), ue(t))
42
+ for (r = 0, o = t.length; r < o; r++)
43
+ e.call(null, t[r], r, t);
44
+ else {
45
+ const a = n ? Object.getOwnPropertyNames(t) : Object.keys(t), i = a.length;
46
+ let s;
47
+ for (r = 0; r < i; r++)
48
+ s = a[r], e.call(null, t[s], s, t);
49
+ }
50
+ }
51
+ function Pr(t, e) {
52
+ e = e.toLowerCase();
53
+ const n = Object.keys(t);
54
+ let r = n.length, o;
55
+ for (; r-- > 0; )
56
+ if (o = n[r], e === o.toLowerCase())
57
+ return o;
58
+ return null;
59
+ }
60
+ const Q = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Tr = (t) => !we(t) && t !== Q;
61
+ function ct() {
62
+ const { caseless: t } = Tr(this) && this || {}, e = {}, n = (r, o) => {
63
+ const a = t && Pr(e, o) || o;
64
+ Ce(e[a]) && Ce(r) ? e[a] = ct(e[a], r) : Ce(r) ? e[a] = ct({}, r) : ue(r) ? e[a] = r.slice() : e[a] = r;
65
+ };
66
+ for (let r = 0, o = arguments.length; r < o; r++)
67
+ arguments[r] && Se(arguments[r], n);
68
+ return e;
69
+ }
70
+ const Jn = (t, e, n, { allOwnKeys: r } = {}) => (Se(e, (o, a) => {
71
+ n && _(o) ? t[a] = Ar(o, n) : t[a] = o;
72
+ }, { allOwnKeys: r }), t), Kn = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), Vn = (t, e, n, r) => {
73
+ t.prototype = Object.create(e.prototype, r), t.prototype.constructor = t, Object.defineProperty(t, "super", {
74
+ value: e.prototype
75
+ }), n && Object.assign(t.prototype, n);
76
+ }, Qn = (t, e, n, r) => {
77
+ let o, a, i;
78
+ const s = {};
79
+ if (e = e || {}, t == null) return e;
80
+ do {
81
+ for (o = Object.getOwnPropertyNames(t), a = o.length; a-- > 0; )
82
+ i = o[a], (!r || r(i, t, e)) && !s[i] && (e[i] = t[i], s[i] = !0);
83
+ t = n !== !1 && Rt(t);
84
+ } while (t && (!n || n(t, e)) && t !== Object.prototype);
85
+ return e;
86
+ }, Xn = (t, e, n) => {
87
+ t = String(t), (n === void 0 || n > t.length) && (n = t.length), n -= e.length;
88
+ const r = t.indexOf(e, n);
89
+ return r !== -1 && r === n;
90
+ }, Zn = (t) => {
91
+ if (!t) return null;
92
+ if (ue(t)) return t;
93
+ let e = t.length;
94
+ if (!Rr(e)) return null;
95
+ const n = new Array(e);
96
+ for (; e-- > 0; )
97
+ n[e] = t[e];
98
+ return n;
99
+ }, Yn = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && Rt(Uint8Array)), eo = (t, e) => {
100
+ const r = (t && t[Symbol.iterator]).call(t);
101
+ let o;
102
+ for (; (o = r.next()) && !o.done; ) {
103
+ const a = o.value;
104
+ e.call(t, a[0], a[1]);
105
+ }
106
+ }, to = (t, e) => {
107
+ let n;
108
+ const r = [];
109
+ for (; (n = t.exec(e)) !== null; )
110
+ r.push(n);
111
+ return r;
112
+ }, ro = B("HTMLFormElement"), no = (t) => t.toLowerCase().replace(
113
+ /[-_\s]([a-z\d])(\w*)/g,
114
+ function(n, r, o) {
115
+ return r.toUpperCase() + o;
116
+ }
117
+ ), Lt = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), oo = B("RegExp"), xr = (t, e) => {
118
+ const n = Object.getOwnPropertyDescriptors(t), r = {};
119
+ Se(n, (o, a) => {
120
+ let i;
121
+ (i = e(o, a, t)) !== !1 && (r[a] = i || o);
122
+ }), Object.defineProperties(t, r);
123
+ }, ao = (t) => {
124
+ xr(t, (e, n) => {
125
+ if (_(t) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
126
+ return !1;
127
+ const r = t[n];
128
+ if (_(r)) {
129
+ if (e.enumerable = !1, "writable" in e) {
130
+ e.writable = !1;
131
+ return;
132
+ }
133
+ e.set || (e.set = () => {
134
+ throw Error("Can not rewrite read-only method '" + n + "'");
135
+ });
136
+ }
137
+ });
138
+ }, io = (t, e) => {
139
+ const n = {}, r = (o) => {
140
+ o.forEach((a) => {
141
+ n[a] = !0;
142
+ });
143
+ };
144
+ return ue(t) ? r(t) : r(String(t).split(e)), n;
145
+ }, so = () => {
146
+ }, lo = (t, e) => t != null && Number.isFinite(t = +t) ? t : e, Je = "abcdefghijklmnopqrstuvwxyz", Mt = "0123456789", Fr = {
147
+ DIGIT: Mt,
148
+ ALPHA: Je,
149
+ ALPHA_DIGIT: Je + Je.toUpperCase() + Mt
150
+ }, co = (t = 16, e = Fr.ALPHA_DIGIT) => {
151
+ let n = "";
152
+ const { length: r } = e;
153
+ for (; t--; )
154
+ n += e[Math.random() * r | 0];
155
+ return n;
156
+ };
157
+ function uo(t) {
158
+ return !!(t && _(t.append) && t[Symbol.toStringTag] === "FormData" && t[Symbol.iterator]);
159
+ }
160
+ const fo = (t) => {
161
+ const e = new Array(10), n = (r, o) => {
162
+ if (qe(r)) {
163
+ if (e.indexOf(r) >= 0)
164
+ return;
165
+ if (!("toJSON" in r)) {
166
+ e[o] = r;
167
+ const a = ue(r) ? [] : {};
168
+ return Se(r, (i, s) => {
169
+ const u = n(i, o + 1);
170
+ !we(u) && (a[s] = u);
171
+ }), e[o] = void 0, a;
172
+ }
173
+ }
174
+ return r;
175
+ };
176
+ return n(t, 0);
177
+ }, po = B("AsyncFunction"), yo = (t) => t && (qe(t) || _(t)) && _(t.then) && _(t.catch), Cr = ((t, e) => t ? setImmediate : e ? ((n, r) => (Q.addEventListener("message", ({ source: o, data: a }) => {
178
+ o === Q && a === n && r.length && r.shift()();
179
+ }, !1), (o) => {
180
+ r.push(o), Q.postMessage(n, "*");
181
+ }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
182
+ typeof setImmediate == "function",
183
+ _(Q.postMessage)
184
+ ), ho = typeof queueMicrotask < "u" ? queueMicrotask.bind(Q) : typeof process < "u" && process.nextTick || Cr, f = {
185
+ isArray: ue,
186
+ isArrayBuffer: Or,
187
+ isBuffer: Dn,
188
+ isFormData: kn,
189
+ isArrayBufferView: Nn,
190
+ isString: In,
191
+ isNumber: Rr,
192
+ isBoolean: _n,
193
+ isObject: qe,
194
+ isPlainObject: Ce,
195
+ isReadableStream: qn,
196
+ isRequest: Hn,
197
+ isResponse: Wn,
198
+ isHeaders: zn,
199
+ isUndefined: we,
200
+ isDate: $n,
201
+ isFile: Bn,
202
+ isBlob: Un,
203
+ isRegExp: oo,
204
+ isFunction: _,
205
+ isStream: Mn,
206
+ isURLSearchParams: jn,
207
+ isTypedArray: Yn,
208
+ isFileList: Ln,
209
+ forEach: Se,
210
+ merge: ct,
211
+ extend: Jn,
212
+ trim: Gn,
213
+ stripBOM: Kn,
214
+ inherits: Vn,
215
+ toFlatObject: Qn,
216
+ kindOf: ke,
217
+ kindOfTest: B,
218
+ endsWith: Xn,
219
+ toArray: Zn,
220
+ forEachEntry: eo,
221
+ matchAll: to,
222
+ isHTMLForm: ro,
223
+ hasOwnProperty: Lt,
224
+ hasOwnProp: Lt,
225
+ // an alias to avoid ESLint no-prototype-builtins detection
226
+ reduceDescriptors: xr,
227
+ freezeMethods: ao,
228
+ toObjectSet: io,
229
+ toCamelCase: no,
230
+ noop: so,
231
+ toFiniteNumber: lo,
232
+ findKey: Pr,
233
+ global: Q,
234
+ isContextDefined: Tr,
235
+ ALPHABET: Fr,
236
+ generateString: co,
237
+ isSpecCompliantForm: uo,
238
+ toJSONObject: fo,
239
+ isAsyncFn: po,
240
+ isThenable: yo,
241
+ setImmediate: Cr,
242
+ asap: ho
243
+ };
244
+ function b(t, e, n, r, o) {
245
+ Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), n && (this.config = n), r && (this.request = r), o && (this.response = o, this.status = o.status ? o.status : null);
246
+ }
247
+ f.inherits(b, Error, {
248
+ toJSON: function() {
249
+ return {
250
+ // Standard
251
+ message: this.message,
252
+ name: this.name,
253
+ // Microsoft
254
+ description: this.description,
255
+ number: this.number,
256
+ // Mozilla
257
+ fileName: this.fileName,
258
+ lineNumber: this.lineNumber,
259
+ columnNumber: this.columnNumber,
260
+ stack: this.stack,
261
+ // Axios
262
+ config: f.toJSONObject(this.config),
263
+ code: this.code,
264
+ status: this.status
265
+ };
266
+ }
267
+ });
268
+ const Dr = b.prototype, Nr = {};
269
+ [
270
+ "ERR_BAD_OPTION_VALUE",
271
+ "ERR_BAD_OPTION",
272
+ "ECONNABORTED",
273
+ "ETIMEDOUT",
274
+ "ERR_NETWORK",
275
+ "ERR_FR_TOO_MANY_REDIRECTS",
276
+ "ERR_DEPRECATED",
277
+ "ERR_BAD_RESPONSE",
278
+ "ERR_BAD_REQUEST",
279
+ "ERR_CANCELED",
280
+ "ERR_NOT_SUPPORT",
281
+ "ERR_INVALID_URL"
282
+ // eslint-disable-next-line func-names
283
+ ].forEach((t) => {
284
+ Nr[t] = { value: t };
285
+ });
286
+ Object.defineProperties(b, Nr);
287
+ Object.defineProperty(Dr, "isAxiosError", { value: !0 });
288
+ b.from = (t, e, n, r, o, a) => {
289
+ const i = Object.create(Dr);
290
+ return f.toFlatObject(t, i, function(u) {
291
+ return u !== Error.prototype;
292
+ }, (s) => s !== "isAxiosError"), b.call(i, t.message, e, n, r, o), i.cause = t, i.name = t.name, a && Object.assign(i, a), i;
293
+ };
294
+ const mo = null;
295
+ function ut(t) {
296
+ return f.isPlainObject(t) || f.isArray(t);
297
+ }
298
+ function Ir(t) {
299
+ return f.endsWith(t, "[]") ? t.slice(0, -2) : t;
300
+ }
301
+ function kt(t, e, n) {
302
+ return t ? t.concat(e).map(function(o, a) {
303
+ return o = Ir(o), !n && a ? "[" + o + "]" : o;
304
+ }).join(n ? "." : "") : e;
305
+ }
306
+ function go(t) {
307
+ return f.isArray(t) && !t.some(ut);
308
+ }
309
+ const vo = f.toFlatObject(f, {}, null, function(e) {
310
+ return /^is[A-Z]/.test(e);
311
+ });
312
+ function He(t, e, n) {
313
+ if (!f.isObject(t))
314
+ throw new TypeError("target must be an object");
315
+ e = e || new FormData(), n = f.toFlatObject(n, {
316
+ metaTokens: !0,
317
+ dots: !1,
318
+ indexes: !1
319
+ }, !1, function(m, h) {
320
+ return !f.isUndefined(h[m]);
321
+ });
322
+ const r = n.metaTokens, o = n.visitor || c, a = n.dots, i = n.indexes, u = (n.Blob || typeof Blob < "u" && Blob) && f.isSpecCompliantForm(e);
323
+ if (!f.isFunction(o))
324
+ throw new TypeError("visitor must be a function");
325
+ function l(y) {
326
+ if (y === null) return "";
327
+ if (f.isDate(y))
328
+ return y.toISOString();
329
+ if (!u && f.isBlob(y))
330
+ throw new b("Blob is not supported. Use a Buffer instead.");
331
+ return f.isArrayBuffer(y) || f.isTypedArray(y) ? u && typeof Blob == "function" ? new Blob([y]) : Buffer.from(y) : y;
332
+ }
333
+ function c(y, m, h) {
334
+ let S = y;
335
+ if (y && !h && typeof y == "object") {
336
+ if (f.endsWith(m, "{}"))
337
+ m = r ? m : m.slice(0, -2), y = JSON.stringify(y);
338
+ else if (f.isArray(y) && go(y) || (f.isFileList(y) || f.endsWith(m, "[]")) && (S = f.toArray(y)))
339
+ return m = Ir(m), S.forEach(function(g, T) {
340
+ !(f.isUndefined(g) || g === null) && e.append(
341
+ // eslint-disable-next-line no-nested-ternary
342
+ i === !0 ? kt([m], T, a) : i === null ? m : m + "[]",
343
+ l(g)
344
+ );
345
+ }), !1;
346
+ }
347
+ return ut(y) ? !0 : (e.append(kt(h, m, a), l(y)), !1);
348
+ }
349
+ const p = [], d = Object.assign(vo, {
350
+ defaultVisitor: c,
351
+ convertValue: l,
352
+ isVisitable: ut
353
+ });
354
+ function v(y, m) {
355
+ if (!f.isUndefined(y)) {
356
+ if (p.indexOf(y) !== -1)
357
+ throw Error("Circular reference detected in " + m.join("."));
358
+ p.push(y), f.forEach(y, function(S, E) {
359
+ (!(f.isUndefined(S) || S === null) && o.call(
360
+ e,
361
+ S,
362
+ f.isString(E) ? E.trim() : E,
363
+ m,
364
+ d
365
+ )) === !0 && v(S, m ? m.concat(E) : [E]);
366
+ }), p.pop();
367
+ }
368
+ }
369
+ if (!f.isObject(t))
370
+ throw new TypeError("data must be an object");
371
+ return v(t), e;
372
+ }
373
+ function jt(t) {
374
+ const e = {
375
+ "!": "%21",
376
+ "'": "%27",
377
+ "(": "%28",
378
+ ")": "%29",
379
+ "~": "%7E",
380
+ "%20": "+",
381
+ "%00": "\0"
382
+ };
383
+ return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g, function(r) {
384
+ return e[r];
385
+ });
386
+ }
387
+ function Pt(t, e) {
388
+ this._pairs = [], t && He(t, this, e);
389
+ }
390
+ const _r = Pt.prototype;
391
+ _r.append = function(e, n) {
392
+ this._pairs.push([e, n]);
393
+ };
394
+ _r.toString = function(e) {
395
+ const n = e ? function(r) {
396
+ return e.call(this, r, jt);
397
+ } : jt;
398
+ return this._pairs.map(function(o) {
399
+ return n(o[0]) + "=" + n(o[1]);
400
+ }, "").join("&");
401
+ };
402
+ function bo(t) {
403
+ return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
404
+ }
405
+ function $r(t, e, n) {
406
+ if (!e)
407
+ return t;
408
+ const r = n && n.encode || bo, o = n && n.serialize;
409
+ let a;
410
+ if (o ? a = o(e, n) : a = f.isURLSearchParams(e) ? e.toString() : new Pt(e, n).toString(r), a) {
411
+ const i = t.indexOf("#");
412
+ i !== -1 && (t = t.slice(0, i)), t += (t.indexOf("?") === -1 ? "?" : "&") + a;
413
+ }
414
+ return t;
415
+ }
416
+ class qt {
417
+ constructor() {
418
+ this.handlers = [];
419
+ }
420
+ /**
421
+ * Add a new interceptor to the stack
422
+ *
423
+ * @param {Function} fulfilled The function to handle `then` for a `Promise`
424
+ * @param {Function} rejected The function to handle `reject` for a `Promise`
425
+ *
426
+ * @return {Number} An ID used to remove interceptor later
427
+ */
428
+ use(e, n, r) {
429
+ return this.handlers.push({
430
+ fulfilled: e,
431
+ rejected: n,
432
+ synchronous: r ? r.synchronous : !1,
433
+ runWhen: r ? r.runWhen : null
434
+ }), this.handlers.length - 1;
435
+ }
436
+ /**
437
+ * Remove an interceptor from the stack
438
+ *
439
+ * @param {Number} id The ID that was returned by `use`
440
+ *
441
+ * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
442
+ */
443
+ eject(e) {
444
+ this.handlers[e] && (this.handlers[e] = null);
445
+ }
446
+ /**
447
+ * Clear all interceptors from the stack
448
+ *
449
+ * @returns {void}
450
+ */
451
+ clear() {
452
+ this.handlers && (this.handlers = []);
453
+ }
454
+ /**
455
+ * Iterate over all the registered interceptors
456
+ *
457
+ * This method is particularly useful for skipping over any
458
+ * interceptors that may have become `null` calling `eject`.
459
+ *
460
+ * @param {Function} fn The function to call for each interceptor
461
+ *
462
+ * @returns {void}
463
+ */
464
+ forEach(e) {
465
+ f.forEach(this.handlers, function(r) {
466
+ r !== null && e(r);
467
+ });
468
+ }
469
+ }
470
+ const Br = {
471
+ silentJSONParsing: !0,
472
+ forcedJSONParsing: !0,
473
+ clarifyTimeoutError: !1
474
+ }, wo = typeof URLSearchParams < "u" ? URLSearchParams : Pt, So = typeof FormData < "u" ? FormData : null, Eo = typeof Blob < "u" ? Blob : null, Ao = {
475
+ isBrowser: !0,
476
+ classes: {
477
+ URLSearchParams: wo,
478
+ FormData: So,
479
+ Blob: Eo
480
+ },
481
+ protocols: ["http", "https", "file", "blob", "url", "data"]
482
+ }, Tt = typeof window < "u" && typeof document < "u", ft = typeof navigator == "object" && navigator || void 0, Oo = Tt && (!ft || ["ReactNative", "NativeScript", "NS"].indexOf(ft.product) < 0), Ro = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
483
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Po = Tt && window.location.href || "http://localhost", To = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
484
+ __proto__: null,
485
+ hasBrowserEnv: Tt,
486
+ hasStandardBrowserEnv: Oo,
487
+ hasStandardBrowserWebWorkerEnv: Ro,
488
+ navigator: ft,
489
+ origin: Po
490
+ }, Symbol.toStringTag, { value: "Module" })), N = {
491
+ ...To,
492
+ ...Ao
493
+ };
494
+ function xo(t, e) {
495
+ return He(t, new N.classes.URLSearchParams(), Object.assign({
496
+ visitor: function(n, r, o, a) {
497
+ return N.isNode && f.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
498
+ }
499
+ }, e));
500
+ }
501
+ function Fo(t) {
502
+ return f.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
503
+ }
504
+ function Co(t) {
505
+ const e = {}, n = Object.keys(t);
506
+ let r;
507
+ const o = n.length;
508
+ let a;
509
+ for (r = 0; r < o; r++)
510
+ a = n[r], e[a] = t[a];
511
+ return e;
512
+ }
513
+ function Ur(t) {
514
+ function e(n, r, o, a) {
515
+ let i = n[a++];
516
+ if (i === "__proto__") return !0;
517
+ const s = Number.isFinite(+i), u = a >= n.length;
518
+ return i = !i && f.isArray(o) ? o.length : i, u ? (f.hasOwnProp(o, i) ? o[i] = [o[i], r] : o[i] = r, !s) : ((!o[i] || !f.isObject(o[i])) && (o[i] = []), e(n, r, o[i], a) && f.isArray(o[i]) && (o[i] = Co(o[i])), !s);
519
+ }
520
+ if (f.isFormData(t) && f.isFunction(t.entries)) {
521
+ const n = {};
522
+ return f.forEachEntry(t, (r, o) => {
523
+ e(Fo(r), o, n, 0);
524
+ }), n;
525
+ }
526
+ return null;
527
+ }
528
+ function Do(t, e, n) {
529
+ if (f.isString(t))
530
+ try {
531
+ return (e || JSON.parse)(t), f.trim(t);
532
+ } catch (r) {
533
+ if (r.name !== "SyntaxError")
534
+ throw r;
535
+ }
536
+ return (n || JSON.stringify)(t);
537
+ }
538
+ const Ee = {
539
+ transitional: Br,
540
+ adapter: ["xhr", "http", "fetch"],
541
+ transformRequest: [function(e, n) {
542
+ const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, a = f.isObject(e);
543
+ if (a && f.isHTMLForm(e) && (e = new FormData(e)), f.isFormData(e))
544
+ return o ? JSON.stringify(Ur(e)) : e;
545
+ if (f.isArrayBuffer(e) || f.isBuffer(e) || f.isStream(e) || f.isFile(e) || f.isBlob(e) || f.isReadableStream(e))
546
+ return e;
547
+ if (f.isArrayBufferView(e))
548
+ return e.buffer;
549
+ if (f.isURLSearchParams(e))
550
+ return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
551
+ let s;
552
+ if (a) {
553
+ if (r.indexOf("application/x-www-form-urlencoded") > -1)
554
+ return xo(e, this.formSerializer).toString();
555
+ if ((s = f.isFileList(e)) || r.indexOf("multipart/form-data") > -1) {
556
+ const u = this.env && this.env.FormData;
557
+ return He(
558
+ s ? { "files[]": e } : e,
559
+ u && new u(),
560
+ this.formSerializer
561
+ );
562
+ }
563
+ }
564
+ return a || o ? (n.setContentType("application/json", !1), Do(e)) : e;
565
+ }],
566
+ transformResponse: [function(e) {
567
+ const n = this.transitional || Ee.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
568
+ if (f.isResponse(e) || f.isReadableStream(e))
569
+ return e;
570
+ if (e && f.isString(e) && (r && !this.responseType || o)) {
571
+ const i = !(n && n.silentJSONParsing) && o;
572
+ try {
573
+ return JSON.parse(e);
574
+ } catch (s) {
575
+ if (i)
576
+ throw s.name === "SyntaxError" ? b.from(s, b.ERR_BAD_RESPONSE, this, null, this.response) : s;
577
+ }
578
+ }
579
+ return e;
580
+ }],
581
+ /**
582
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
583
+ * timeout is not created.
584
+ */
585
+ timeout: 0,
586
+ xsrfCookieName: "XSRF-TOKEN",
587
+ xsrfHeaderName: "X-XSRF-TOKEN",
588
+ maxContentLength: -1,
589
+ maxBodyLength: -1,
590
+ env: {
591
+ FormData: N.classes.FormData,
592
+ Blob: N.classes.Blob
593
+ },
594
+ validateStatus: function(e) {
595
+ return e >= 200 && e < 300;
596
+ },
597
+ headers: {
598
+ common: {
599
+ Accept: "application/json, text/plain, */*",
600
+ "Content-Type": void 0
601
+ }
602
+ }
603
+ };
604
+ f.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
605
+ Ee.headers[t] = {};
606
+ });
607
+ const No = f.toObjectSet([
608
+ "age",
609
+ "authorization",
610
+ "content-length",
611
+ "content-type",
612
+ "etag",
613
+ "expires",
614
+ "from",
615
+ "host",
616
+ "if-modified-since",
617
+ "if-unmodified-since",
618
+ "last-modified",
619
+ "location",
620
+ "max-forwards",
621
+ "proxy-authorization",
622
+ "referer",
623
+ "retry-after",
624
+ "user-agent"
625
+ ]), Io = (t) => {
626
+ const e = {};
627
+ let n, r, o;
628
+ return t && t.split(`
629
+ `).forEach(function(i) {
630
+ o = i.indexOf(":"), n = i.substring(0, o).trim().toLowerCase(), r = i.substring(o + 1).trim(), !(!n || e[n] && No[n]) && (n === "set-cookie" ? e[n] ? e[n].push(r) : e[n] = [r] : e[n] = e[n] ? e[n] + ", " + r : r);
631
+ }), e;
632
+ }, Ht = Symbol("internals");
633
+ function he(t) {
634
+ return t && String(t).trim().toLowerCase();
635
+ }
636
+ function De(t) {
637
+ return t === !1 || t == null ? t : f.isArray(t) ? t.map(De) : String(t);
638
+ }
639
+ function _o(t) {
640
+ const e = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
641
+ let r;
642
+ for (; r = n.exec(t); )
643
+ e[r[1]] = r[2];
644
+ return e;
645
+ }
646
+ const $o = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
647
+ function Ke(t, e, n, r, o) {
648
+ if (f.isFunction(r))
649
+ return r.call(this, e, n);
650
+ if (o && (e = n), !!f.isString(e)) {
651
+ if (f.isString(r))
652
+ return e.indexOf(r) !== -1;
653
+ if (f.isRegExp(r))
654
+ return r.test(e);
655
+ }
656
+ }
657
+ function Bo(t) {
658
+ return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, n, r) => n.toUpperCase() + r);
659
+ }
660
+ function Uo(t, e) {
661
+ const n = f.toCamelCase(" " + e);
662
+ ["get", "set", "has"].forEach((r) => {
663
+ Object.defineProperty(t, r + n, {
664
+ value: function(o, a, i) {
665
+ return this[r].call(this, e, o, a, i);
666
+ },
667
+ configurable: !0
668
+ });
669
+ });
670
+ }
671
+ class I {
672
+ constructor(e) {
673
+ e && this.set(e);
674
+ }
675
+ set(e, n, r) {
676
+ const o = this;
677
+ function a(s, u, l) {
678
+ const c = he(u);
679
+ if (!c)
680
+ throw new Error("header name must be a non-empty string");
681
+ const p = f.findKey(o, c);
682
+ (!p || o[p] === void 0 || l === !0 || l === void 0 && o[p] !== !1) && (o[p || u] = De(s));
683
+ }
684
+ const i = (s, u) => f.forEach(s, (l, c) => a(l, c, u));
685
+ if (f.isPlainObject(e) || e instanceof this.constructor)
686
+ i(e, n);
687
+ else if (f.isString(e) && (e = e.trim()) && !$o(e))
688
+ i(Io(e), n);
689
+ else if (f.isHeaders(e))
690
+ for (const [s, u] of e.entries())
691
+ a(u, s, r);
692
+ else
693
+ e != null && a(n, e, r);
694
+ return this;
695
+ }
696
+ get(e, n) {
697
+ if (e = he(e), e) {
698
+ const r = f.findKey(this, e);
699
+ if (r) {
700
+ const o = this[r];
701
+ if (!n)
702
+ return o;
703
+ if (n === !0)
704
+ return _o(o);
705
+ if (f.isFunction(n))
706
+ return n.call(this, o, r);
707
+ if (f.isRegExp(n))
708
+ return n.exec(o);
709
+ throw new TypeError("parser must be boolean|regexp|function");
710
+ }
711
+ }
712
+ }
713
+ has(e, n) {
714
+ if (e = he(e), e) {
715
+ const r = f.findKey(this, e);
716
+ return !!(r && this[r] !== void 0 && (!n || Ke(this, this[r], r, n)));
717
+ }
718
+ return !1;
719
+ }
720
+ delete(e, n) {
721
+ const r = this;
722
+ let o = !1;
723
+ function a(i) {
724
+ if (i = he(i), i) {
725
+ const s = f.findKey(r, i);
726
+ s && (!n || Ke(r, r[s], s, n)) && (delete r[s], o = !0);
727
+ }
728
+ }
729
+ return f.isArray(e) ? e.forEach(a) : a(e), o;
730
+ }
731
+ clear(e) {
732
+ const n = Object.keys(this);
733
+ let r = n.length, o = !1;
734
+ for (; r--; ) {
735
+ const a = n[r];
736
+ (!e || Ke(this, this[a], a, e, !0)) && (delete this[a], o = !0);
737
+ }
738
+ return o;
739
+ }
740
+ normalize(e) {
741
+ const n = this, r = {};
742
+ return f.forEach(this, (o, a) => {
743
+ const i = f.findKey(r, a);
744
+ if (i) {
745
+ n[i] = De(o), delete n[a];
746
+ return;
747
+ }
748
+ const s = e ? Bo(a) : String(a).trim();
749
+ s !== a && delete n[a], n[s] = De(o), r[s] = !0;
750
+ }), this;
751
+ }
752
+ concat(...e) {
753
+ return this.constructor.concat(this, ...e);
754
+ }
755
+ toJSON(e) {
756
+ const n = /* @__PURE__ */ Object.create(null);
757
+ return f.forEach(this, (r, o) => {
758
+ r != null && r !== !1 && (n[o] = e && f.isArray(r) ? r.join(", ") : r);
759
+ }), n;
760
+ }
761
+ [Symbol.iterator]() {
762
+ return Object.entries(this.toJSON())[Symbol.iterator]();
763
+ }
764
+ toString() {
765
+ return Object.entries(this.toJSON()).map(([e, n]) => e + ": " + n).join(`
766
+ `);
767
+ }
768
+ get [Symbol.toStringTag]() {
769
+ return "AxiosHeaders";
770
+ }
771
+ static from(e) {
772
+ return e instanceof this ? e : new this(e);
773
+ }
774
+ static concat(e, ...n) {
775
+ const r = new this(e);
776
+ return n.forEach((o) => r.set(o)), r;
777
+ }
778
+ static accessor(e) {
779
+ const r = (this[Ht] = this[Ht] = {
780
+ accessors: {}
781
+ }).accessors, o = this.prototype;
782
+ function a(i) {
783
+ const s = he(i);
784
+ r[s] || (Uo(o, i), r[s] = !0);
785
+ }
786
+ return f.isArray(e) ? e.forEach(a) : a(e), this;
787
+ }
788
+ }
789
+ I.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
790
+ f.reduceDescriptors(I.prototype, ({ value: t }, e) => {
791
+ let n = e[0].toUpperCase() + e.slice(1);
792
+ return {
793
+ get: () => t,
794
+ set(r) {
795
+ this[n] = r;
796
+ }
797
+ };
798
+ });
799
+ f.freezeMethods(I);
800
+ function Ve(t, e) {
801
+ const n = this || Ee, r = e || n, o = I.from(r.headers);
802
+ let a = r.data;
803
+ return f.forEach(t, function(s) {
804
+ a = s.call(n, a, o.normalize(), e ? e.status : void 0);
805
+ }), o.normalize(), a;
806
+ }
807
+ function Lr(t) {
808
+ return !!(t && t.__CANCEL__);
809
+ }
810
+ function fe(t, e, n) {
811
+ b.call(this, t ?? "canceled", b.ERR_CANCELED, e, n), this.name = "CanceledError";
812
+ }
813
+ f.inherits(fe, b, {
814
+ __CANCEL__: !0
815
+ });
816
+ function Mr(t, e, n) {
817
+ const r = n.config.validateStatus;
818
+ !n.status || !r || r(n.status) ? t(n) : e(new b(
819
+ "Request failed with status code " + n.status,
820
+ [b.ERR_BAD_REQUEST, b.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
821
+ n.config,
822
+ n.request,
823
+ n
824
+ ));
825
+ }
826
+ function Lo(t) {
827
+ const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
828
+ return e && e[1] || "";
829
+ }
830
+ function Mo(t, e) {
831
+ t = t || 10;
832
+ const n = new Array(t), r = new Array(t);
833
+ let o = 0, a = 0, i;
834
+ return e = e !== void 0 ? e : 1e3, function(u) {
835
+ const l = Date.now(), c = r[a];
836
+ i || (i = l), n[o] = u, r[o] = l;
837
+ let p = a, d = 0;
838
+ for (; p !== o; )
839
+ d += n[p++], p = p % t;
840
+ if (o = (o + 1) % t, o === a && (a = (a + 1) % t), l - i < e)
841
+ return;
842
+ const v = c && l - c;
843
+ return v ? Math.round(d * 1e3 / v) : void 0;
844
+ };
845
+ }
846
+ function ko(t, e) {
847
+ let n = 0, r = 1e3 / e, o, a;
848
+ const i = (l, c = Date.now()) => {
849
+ n = c, o = null, a && (clearTimeout(a), a = null), t.apply(null, l);
850
+ };
851
+ return [(...l) => {
852
+ const c = Date.now(), p = c - n;
853
+ p >= r ? i(l, c) : (o = l, a || (a = setTimeout(() => {
854
+ a = null, i(o);
855
+ }, r - p)));
856
+ }, () => o && i(o)];
857
+ }
858
+ const _e = (t, e, n = 3) => {
859
+ let r = 0;
860
+ const o = Mo(50, 250);
861
+ return ko((a) => {
862
+ const i = a.loaded, s = a.lengthComputable ? a.total : void 0, u = i - r, l = o(u), c = i <= s;
863
+ r = i;
864
+ const p = {
865
+ loaded: i,
866
+ total: s,
867
+ progress: s ? i / s : void 0,
868
+ bytes: u,
869
+ rate: l || void 0,
870
+ estimated: l && s && c ? (s - i) / l : void 0,
871
+ event: a,
872
+ lengthComputable: s != null,
873
+ [e ? "download" : "upload"]: !0
874
+ };
875
+ t(p);
876
+ }, n);
877
+ }, Wt = (t, e) => {
878
+ const n = t != null;
879
+ return [(r) => e[0]({
880
+ lengthComputable: n,
881
+ total: t,
882
+ loaded: r
883
+ }), e[1]];
884
+ }, zt = (t) => (...e) => f.asap(() => t(...e)), jo = N.hasStandardBrowserEnv ? (
885
+ // Standard browser envs have full support of the APIs needed to test
886
+ // whether the request URL is of the same origin as current location.
887
+ function() {
888
+ const e = N.navigator && /(msie|trident)/i.test(N.navigator.userAgent), n = document.createElement("a");
889
+ let r;
890
+ function o(a) {
891
+ let i = a;
892
+ return e && (n.setAttribute("href", i), i = n.href), n.setAttribute("href", i), {
893
+ href: n.href,
894
+ protocol: n.protocol ? n.protocol.replace(/:$/, "") : "",
895
+ host: n.host,
896
+ search: n.search ? n.search.replace(/^\?/, "") : "",
897
+ hash: n.hash ? n.hash.replace(/^#/, "") : "",
898
+ hostname: n.hostname,
899
+ port: n.port,
900
+ pathname: n.pathname.charAt(0) === "/" ? n.pathname : "/" + n.pathname
901
+ };
902
+ }
903
+ return r = o(window.location.href), function(i) {
904
+ const s = f.isString(i) ? o(i) : i;
905
+ return s.protocol === r.protocol && s.host === r.host;
906
+ };
907
+ }()
908
+ ) : (
909
+ // Non standard browser envs (web workers, react-native) lack needed support.
910
+ /* @__PURE__ */ function() {
911
+ return function() {
912
+ return !0;
913
+ };
914
+ }()
915
+ ), qo = N.hasStandardBrowserEnv ? (
916
+ // Standard browser envs support document.cookie
917
+ {
918
+ write(t, e, n, r, o, a) {
919
+ const i = [t + "=" + encodeURIComponent(e)];
920
+ f.isNumber(n) && i.push("expires=" + new Date(n).toGMTString()), f.isString(r) && i.push("path=" + r), f.isString(o) && i.push("domain=" + o), a === !0 && i.push("secure"), document.cookie = i.join("; ");
921
+ },
922
+ read(t) {
923
+ const e = document.cookie.match(new RegExp("(^|;\\s*)(" + t + ")=([^;]*)"));
924
+ return e ? decodeURIComponent(e[3]) : null;
925
+ },
926
+ remove(t) {
927
+ this.write(t, "", Date.now() - 864e5);
928
+ }
929
+ }
930
+ ) : (
931
+ // Non-standard browser env (web workers, react-native) lack needed support.
932
+ {
933
+ write() {
934
+ },
935
+ read() {
936
+ return null;
937
+ },
938
+ remove() {
939
+ }
940
+ }
941
+ );
942
+ function Ho(t) {
943
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
944
+ }
945
+ function Wo(t, e) {
946
+ return e ? t.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : t;
947
+ }
948
+ function kr(t, e) {
949
+ return t && !Ho(e) ? Wo(t, e) : e;
950
+ }
951
+ const Gt = (t) => t instanceof I ? { ...t } : t;
952
+ function ee(t, e) {
953
+ e = e || {};
954
+ const n = {};
955
+ function r(l, c, p) {
956
+ return f.isPlainObject(l) && f.isPlainObject(c) ? f.merge.call({ caseless: p }, l, c) : f.isPlainObject(c) ? f.merge({}, c) : f.isArray(c) ? c.slice() : c;
957
+ }
958
+ function o(l, c, p) {
959
+ if (f.isUndefined(c)) {
960
+ if (!f.isUndefined(l))
961
+ return r(void 0, l, p);
962
+ } else return r(l, c, p);
963
+ }
964
+ function a(l, c) {
965
+ if (!f.isUndefined(c))
966
+ return r(void 0, c);
967
+ }
968
+ function i(l, c) {
969
+ if (f.isUndefined(c)) {
970
+ if (!f.isUndefined(l))
971
+ return r(void 0, l);
972
+ } else return r(void 0, c);
973
+ }
974
+ function s(l, c, p) {
975
+ if (p in e)
976
+ return r(l, c);
977
+ if (p in t)
978
+ return r(void 0, l);
979
+ }
980
+ const u = {
981
+ url: a,
982
+ method: a,
983
+ data: a,
984
+ baseURL: i,
985
+ transformRequest: i,
986
+ transformResponse: i,
987
+ paramsSerializer: i,
988
+ timeout: i,
989
+ timeoutMessage: i,
990
+ withCredentials: i,
991
+ withXSRFToken: i,
992
+ adapter: i,
993
+ responseType: i,
994
+ xsrfCookieName: i,
995
+ xsrfHeaderName: i,
996
+ onUploadProgress: i,
997
+ onDownloadProgress: i,
998
+ decompress: i,
999
+ maxContentLength: i,
1000
+ maxBodyLength: i,
1001
+ beforeRedirect: i,
1002
+ transport: i,
1003
+ httpAgent: i,
1004
+ httpsAgent: i,
1005
+ cancelToken: i,
1006
+ socketPath: i,
1007
+ responseEncoding: i,
1008
+ validateStatus: s,
1009
+ headers: (l, c) => o(Gt(l), Gt(c), !0)
1010
+ };
1011
+ return f.forEach(Object.keys(Object.assign({}, t, e)), function(c) {
1012
+ const p = u[c] || o, d = p(t[c], e[c], c);
1013
+ f.isUndefined(d) && p !== s || (n[c] = d);
1014
+ }), n;
1015
+ }
1016
+ const jr = (t) => {
1017
+ const e = ee({}, t);
1018
+ let { data: n, withXSRFToken: r, xsrfHeaderName: o, xsrfCookieName: a, headers: i, auth: s } = e;
1019
+ e.headers = i = I.from(i), e.url = $r(kr(e.baseURL, e.url), t.params, t.paramsSerializer), s && i.set(
1020
+ "Authorization",
1021
+ "Basic " + btoa((s.username || "") + ":" + (s.password ? unescape(encodeURIComponent(s.password)) : ""))
1022
+ );
1023
+ let u;
1024
+ if (f.isFormData(n)) {
1025
+ if (N.hasStandardBrowserEnv || N.hasStandardBrowserWebWorkerEnv)
1026
+ i.setContentType(void 0);
1027
+ else if ((u = i.getContentType()) !== !1) {
1028
+ const [l, ...c] = u ? u.split(";").map((p) => p.trim()).filter(Boolean) : [];
1029
+ i.setContentType([l || "multipart/form-data", ...c].join("; "));
1030
+ }
1031
+ }
1032
+ if (N.hasStandardBrowserEnv && (r && f.isFunction(r) && (r = r(e)), r || r !== !1 && jo(e.url))) {
1033
+ const l = o && a && qo.read(a);
1034
+ l && i.set(o, l);
1035
+ }
1036
+ return e;
1037
+ }, zo = typeof XMLHttpRequest < "u", Go = zo && function(t) {
1038
+ return new Promise(function(n, r) {
1039
+ const o = jr(t);
1040
+ let a = o.data;
1041
+ const i = I.from(o.headers).normalize();
1042
+ let { responseType: s, onUploadProgress: u, onDownloadProgress: l } = o, c, p, d, v, y;
1043
+ function m() {
1044
+ v && v(), y && y(), o.cancelToken && o.cancelToken.unsubscribe(c), o.signal && o.signal.removeEventListener("abort", c);
1045
+ }
1046
+ let h = new XMLHttpRequest();
1047
+ h.open(o.method.toUpperCase(), o.url, !0), h.timeout = o.timeout;
1048
+ function S() {
1049
+ if (!h)
1050
+ return;
1051
+ const g = I.from(
1052
+ "getAllResponseHeaders" in h && h.getAllResponseHeaders()
1053
+ ), A = {
1054
+ data: !s || s === "text" || s === "json" ? h.responseText : h.response,
1055
+ status: h.status,
1056
+ statusText: h.statusText,
1057
+ headers: g,
1058
+ config: t,
1059
+ request: h
1060
+ };
1061
+ Mr(function(D) {
1062
+ n(D), m();
1063
+ }, function(D) {
1064
+ r(D), m();
1065
+ }, A), h = null;
1066
+ }
1067
+ "onloadend" in h ? h.onloadend = S : h.onreadystatechange = function() {
1068
+ !h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(S);
1069
+ }, h.onabort = function() {
1070
+ h && (r(new b("Request aborted", b.ECONNABORTED, t, h)), h = null);
1071
+ }, h.onerror = function() {
1072
+ r(new b("Network Error", b.ERR_NETWORK, t, h)), h = null;
1073
+ }, h.ontimeout = function() {
1074
+ let T = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
1075
+ const A = o.transitional || Br;
1076
+ o.timeoutErrorMessage && (T = o.timeoutErrorMessage), r(new b(
1077
+ T,
1078
+ A.clarifyTimeoutError ? b.ETIMEDOUT : b.ECONNABORTED,
1079
+ t,
1080
+ h
1081
+ )), h = null;
1082
+ }, a === void 0 && i.setContentType(null), "setRequestHeader" in h && f.forEach(i.toJSON(), function(T, A) {
1083
+ h.setRequestHeader(A, T);
1084
+ }), f.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), s && s !== "json" && (h.responseType = o.responseType), l && ([d, y] = _e(l, !0), h.addEventListener("progress", d)), u && h.upload && ([p, v] = _e(u), h.upload.addEventListener("progress", p), h.upload.addEventListener("loadend", v)), (o.cancelToken || o.signal) && (c = (g) => {
1085
+ h && (r(!g || g.type ? new fe(null, t, h) : g), h.abort(), h = null);
1086
+ }, o.cancelToken && o.cancelToken.subscribe(c), o.signal && (o.signal.aborted ? c() : o.signal.addEventListener("abort", c)));
1087
+ const E = Lo(o.url);
1088
+ if (E && N.protocols.indexOf(E) === -1) {
1089
+ r(new b("Unsupported protocol " + E + ":", b.ERR_BAD_REQUEST, t));
1090
+ return;
1091
+ }
1092
+ h.send(a || null);
1093
+ });
1094
+ }, Jo = (t, e) => {
1095
+ const { length: n } = t = t ? t.filter(Boolean) : [];
1096
+ if (e || n) {
1097
+ let r = new AbortController(), o;
1098
+ const a = function(l) {
1099
+ if (!o) {
1100
+ o = !0, s();
1101
+ const c = l instanceof Error ? l : this.reason;
1102
+ r.abort(c instanceof b ? c : new fe(c instanceof Error ? c.message : c));
1103
+ }
1104
+ };
1105
+ let i = e && setTimeout(() => {
1106
+ i = null, a(new b(`timeout ${e} of ms exceeded`, b.ETIMEDOUT));
1107
+ }, e);
1108
+ const s = () => {
1109
+ t && (i && clearTimeout(i), i = null, t.forEach((l) => {
1110
+ l.unsubscribe ? l.unsubscribe(a) : l.removeEventListener("abort", a);
1111
+ }), t = null);
1112
+ };
1113
+ t.forEach((l) => l.addEventListener("abort", a));
1114
+ const { signal: u } = r;
1115
+ return u.unsubscribe = () => f.asap(s), u;
1116
+ }
1117
+ }, Ko = function* (t, e) {
1118
+ let n = t.byteLength;
1119
+ if (n < e) {
1120
+ yield t;
1121
+ return;
1122
+ }
1123
+ let r = 0, o;
1124
+ for (; r < n; )
1125
+ o = r + e, yield t.slice(r, o), r = o;
1126
+ }, Vo = async function* (t, e) {
1127
+ for await (const n of Qo(t))
1128
+ yield* Ko(n, e);
1129
+ }, Qo = async function* (t) {
1130
+ if (t[Symbol.asyncIterator]) {
1131
+ yield* t;
1132
+ return;
1133
+ }
1134
+ const e = t.getReader();
1135
+ try {
1136
+ for (; ; ) {
1137
+ const { done: n, value: r } = await e.read();
1138
+ if (n)
1139
+ break;
1140
+ yield r;
1141
+ }
1142
+ } finally {
1143
+ await e.cancel();
1144
+ }
1145
+ }, Jt = (t, e, n, r) => {
1146
+ const o = Vo(t, e);
1147
+ let a = 0, i, s = (u) => {
1148
+ i || (i = !0, r && r(u));
1149
+ };
1150
+ return new ReadableStream({
1151
+ async pull(u) {
1152
+ try {
1153
+ const { done: l, value: c } = await o.next();
1154
+ if (l) {
1155
+ s(), u.close();
1156
+ return;
1157
+ }
1158
+ let p = c.byteLength;
1159
+ if (n) {
1160
+ let d = a += p;
1161
+ n(d);
1162
+ }
1163
+ u.enqueue(new Uint8Array(c));
1164
+ } catch (l) {
1165
+ throw s(l), l;
1166
+ }
1167
+ },
1168
+ cancel(u) {
1169
+ return s(u), o.return();
1170
+ }
1171
+ }, {
1172
+ highWaterMark: 2
1173
+ });
1174
+ }, We = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", qr = We && typeof ReadableStream == "function", Xo = We && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((t) => (e) => t.encode(e))(new TextEncoder()) : async (t) => new Uint8Array(await new Response(t).arrayBuffer())), Hr = (t, ...e) => {
1175
+ try {
1176
+ return !!t(...e);
1177
+ } catch {
1178
+ return !1;
1179
+ }
1180
+ }, Zo = qr && Hr(() => {
1181
+ let t = !1;
1182
+ const e = new Request(N.origin, {
1183
+ body: new ReadableStream(),
1184
+ method: "POST",
1185
+ get duplex() {
1186
+ return t = !0, "half";
1187
+ }
1188
+ }).headers.has("Content-Type");
1189
+ return t && !e;
1190
+ }), Kt = 64 * 1024, pt = qr && Hr(() => f.isReadableStream(new Response("").body)), $e = {
1191
+ stream: pt && ((t) => t.body)
1192
+ };
1193
+ We && ((t) => {
1194
+ ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((e) => {
1195
+ !$e[e] && ($e[e] = f.isFunction(t[e]) ? (n) => n[e]() : (n, r) => {
1196
+ throw new b(`Response type '${e}' is not supported`, b.ERR_NOT_SUPPORT, r);
1197
+ });
1198
+ });
1199
+ })(new Response());
1200
+ const Yo = async (t) => {
1201
+ if (t == null)
1202
+ return 0;
1203
+ if (f.isBlob(t))
1204
+ return t.size;
1205
+ if (f.isSpecCompliantForm(t))
1206
+ return (await new Request(N.origin, {
1207
+ method: "POST",
1208
+ body: t
1209
+ }).arrayBuffer()).byteLength;
1210
+ if (f.isArrayBufferView(t) || f.isArrayBuffer(t))
1211
+ return t.byteLength;
1212
+ if (f.isURLSearchParams(t) && (t = t + ""), f.isString(t))
1213
+ return (await Xo(t)).byteLength;
1214
+ }, ea = async (t, e) => {
1215
+ const n = f.toFiniteNumber(t.getContentLength());
1216
+ return n ?? Yo(e);
1217
+ }, ta = We && (async (t) => {
1218
+ let {
1219
+ url: e,
1220
+ method: n,
1221
+ data: r,
1222
+ signal: o,
1223
+ cancelToken: a,
1224
+ timeout: i,
1225
+ onDownloadProgress: s,
1226
+ onUploadProgress: u,
1227
+ responseType: l,
1228
+ headers: c,
1229
+ withCredentials: p = "same-origin",
1230
+ fetchOptions: d
1231
+ } = jr(t);
1232
+ l = l ? (l + "").toLowerCase() : "text";
1233
+ let v = Jo([o, a && a.toAbortSignal()], i), y;
1234
+ const m = v && v.unsubscribe && (() => {
1235
+ v.unsubscribe();
1236
+ });
1237
+ let h;
1238
+ try {
1239
+ if (u && Zo && n !== "get" && n !== "head" && (h = await ea(c, r)) !== 0) {
1240
+ let A = new Request(e, {
1241
+ method: "POST",
1242
+ body: r,
1243
+ duplex: "half"
1244
+ }), C;
1245
+ if (f.isFormData(r) && (C = A.headers.get("content-type")) && c.setContentType(C), A.body) {
1246
+ const [D, j] = Wt(
1247
+ h,
1248
+ _e(zt(u))
1249
+ );
1250
+ r = Jt(A.body, Kt, D, j);
1251
+ }
1252
+ }
1253
+ f.isString(p) || (p = p ? "include" : "omit");
1254
+ const S = "credentials" in Request.prototype;
1255
+ y = new Request(e, {
1256
+ ...d,
1257
+ signal: v,
1258
+ method: n.toUpperCase(),
1259
+ headers: c.normalize().toJSON(),
1260
+ body: r,
1261
+ duplex: "half",
1262
+ credentials: S ? p : void 0
1263
+ });
1264
+ let E = await fetch(y);
1265
+ const g = pt && (l === "stream" || l === "response");
1266
+ if (pt && (s || g && m)) {
1267
+ const A = {};
1268
+ ["status", "statusText", "headers"].forEach((U) => {
1269
+ A[U] = E[U];
1270
+ });
1271
+ const C = f.toFiniteNumber(E.headers.get("content-length")), [D, j] = s && Wt(
1272
+ C,
1273
+ _e(zt(s), !0)
1274
+ ) || [];
1275
+ E = new Response(
1276
+ Jt(E.body, Kt, D, () => {
1277
+ j && j(), m && m();
1278
+ }),
1279
+ A
1280
+ );
1281
+ }
1282
+ l = l || "text";
1283
+ let T = await $e[f.findKey($e, l) || "text"](E, t);
1284
+ return !g && m && m(), await new Promise((A, C) => {
1285
+ Mr(A, C, {
1286
+ data: T,
1287
+ headers: I.from(E.headers),
1288
+ status: E.status,
1289
+ statusText: E.statusText,
1290
+ config: t,
1291
+ request: y
1292
+ });
1293
+ });
1294
+ } catch (S) {
1295
+ throw m && m(), S && S.name === "TypeError" && /fetch/i.test(S.message) ? Object.assign(
1296
+ new b("Network Error", b.ERR_NETWORK, t, y),
1297
+ {
1298
+ cause: S.cause || S
1299
+ }
1300
+ ) : b.from(S, S && S.code, t, y);
1301
+ }
1302
+ }), dt = {
1303
+ http: mo,
1304
+ xhr: Go,
1305
+ fetch: ta
1306
+ };
1307
+ f.forEach(dt, (t, e) => {
1308
+ if (t) {
1309
+ try {
1310
+ Object.defineProperty(t, "name", { value: e });
1311
+ } catch {
1312
+ }
1313
+ Object.defineProperty(t, "adapterName", { value: e });
1314
+ }
1315
+ });
1316
+ const Vt = (t) => `- ${t}`, ra = (t) => f.isFunction(t) || t === null || t === !1, Wr = {
1317
+ getAdapter: (t) => {
1318
+ t = f.isArray(t) ? t : [t];
1319
+ const { length: e } = t;
1320
+ let n, r;
1321
+ const o = {};
1322
+ for (let a = 0; a < e; a++) {
1323
+ n = t[a];
1324
+ let i;
1325
+ if (r = n, !ra(n) && (r = dt[(i = String(n)).toLowerCase()], r === void 0))
1326
+ throw new b(`Unknown adapter '${i}'`);
1327
+ if (r)
1328
+ break;
1329
+ o[i || "#" + a] = r;
1330
+ }
1331
+ if (!r) {
1332
+ const a = Object.entries(o).map(
1333
+ ([s, u]) => `adapter ${s} ` + (u === !1 ? "is not supported by the environment" : "is not available in the build")
1334
+ );
1335
+ let i = e ? a.length > 1 ? `since :
1336
+ ` + a.map(Vt).join(`
1337
+ `) : " " + Vt(a[0]) : "as no adapter specified";
1338
+ throw new b(
1339
+ "There is no suitable adapter to dispatch the request " + i,
1340
+ "ERR_NOT_SUPPORT"
1341
+ );
1342
+ }
1343
+ return r;
1344
+ },
1345
+ adapters: dt
1346
+ };
1347
+ function Qe(t) {
1348
+ if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
1349
+ throw new fe(null, t);
1350
+ }
1351
+ function Qt(t) {
1352
+ return Qe(t), t.headers = I.from(t.headers), t.data = Ve.call(
1353
+ t,
1354
+ t.transformRequest
1355
+ ), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), Wr.getAdapter(t.adapter || Ee.adapter)(t).then(function(r) {
1356
+ return Qe(t), r.data = Ve.call(
1357
+ t,
1358
+ t.transformResponse,
1359
+ r
1360
+ ), r.headers = I.from(r.headers), r;
1361
+ }, function(r) {
1362
+ return Lr(r) || (Qe(t), r && r.response && (r.response.data = Ve.call(
1363
+ t,
1364
+ t.transformResponse,
1365
+ r.response
1366
+ ), r.response.headers = I.from(r.response.headers))), Promise.reject(r);
1367
+ });
1368
+ }
1369
+ const zr = "1.7.7", xt = {};
1370
+ ["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
1371
+ xt[t] = function(r) {
1372
+ return typeof r === t || "a" + (e < 1 ? "n " : " ") + t;
1373
+ };
1374
+ });
1375
+ const Xt = {};
1376
+ xt.transitional = function(e, n, r) {
1377
+ function o(a, i) {
1378
+ return "[Axios v" + zr + "] Transitional option '" + a + "'" + i + (r ? ". " + r : "");
1379
+ }
1380
+ return (a, i, s) => {
1381
+ if (e === !1)
1382
+ throw new b(
1383
+ o(i, " has been removed" + (n ? " in " + n : "")),
1384
+ b.ERR_DEPRECATED
1385
+ );
1386
+ return n && !Xt[i] && (Xt[i] = !0), e ? e(a, i, s) : !0;
1387
+ };
1388
+ };
1389
+ function na(t, e, n) {
1390
+ if (typeof t != "object")
1391
+ throw new b("options must be an object", b.ERR_BAD_OPTION_VALUE);
1392
+ const r = Object.keys(t);
1393
+ let o = r.length;
1394
+ for (; o-- > 0; ) {
1395
+ const a = r[o], i = e[a];
1396
+ if (i) {
1397
+ const s = t[a], u = s === void 0 || i(s, a, t);
1398
+ if (u !== !0)
1399
+ throw new b("option " + a + " must be " + u, b.ERR_BAD_OPTION_VALUE);
1400
+ continue;
1401
+ }
1402
+ if (n !== !0)
1403
+ throw new b("Unknown option " + a, b.ERR_BAD_OPTION);
1404
+ }
1405
+ }
1406
+ const yt = {
1407
+ assertOptions: na,
1408
+ validators: xt
1409
+ }, z = yt.validators;
1410
+ class X {
1411
+ constructor(e) {
1412
+ this.defaults = e, this.interceptors = {
1413
+ request: new qt(),
1414
+ response: new qt()
1415
+ };
1416
+ }
1417
+ /**
1418
+ * Dispatch a request
1419
+ *
1420
+ * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
1421
+ * @param {?Object} config
1422
+ *
1423
+ * @returns {Promise} The Promise to be fulfilled
1424
+ */
1425
+ async request(e, n) {
1426
+ try {
1427
+ return await this._request(e, n);
1428
+ } catch (r) {
1429
+ if (r instanceof Error) {
1430
+ let o;
1431
+ Error.captureStackTrace ? Error.captureStackTrace(o = {}) : o = new Error();
1432
+ const a = o.stack ? o.stack.replace(/^.+\n/, "") : "";
1433
+ try {
1434
+ r.stack ? a && !String(r.stack).endsWith(a.replace(/^.+\n.+\n/, "")) && (r.stack += `
1435
+ ` + a) : r.stack = a;
1436
+ } catch {
1437
+ }
1438
+ }
1439
+ throw r;
1440
+ }
1441
+ }
1442
+ _request(e, n) {
1443
+ typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = ee(this.defaults, n);
1444
+ const { transitional: r, paramsSerializer: o, headers: a } = n;
1445
+ r !== void 0 && yt.assertOptions(r, {
1446
+ silentJSONParsing: z.transitional(z.boolean),
1447
+ forcedJSONParsing: z.transitional(z.boolean),
1448
+ clarifyTimeoutError: z.transitional(z.boolean)
1449
+ }, !1), o != null && (f.isFunction(o) ? n.paramsSerializer = {
1450
+ serialize: o
1451
+ } : yt.assertOptions(o, {
1452
+ encode: z.function,
1453
+ serialize: z.function
1454
+ }, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1455
+ let i = a && f.merge(
1456
+ a.common,
1457
+ a[n.method]
1458
+ );
1459
+ a && f.forEach(
1460
+ ["delete", "get", "head", "post", "put", "patch", "common"],
1461
+ (y) => {
1462
+ delete a[y];
1463
+ }
1464
+ ), n.headers = I.concat(i, a);
1465
+ const s = [];
1466
+ let u = !0;
1467
+ this.interceptors.request.forEach(function(m) {
1468
+ typeof m.runWhen == "function" && m.runWhen(n) === !1 || (u = u && m.synchronous, s.unshift(m.fulfilled, m.rejected));
1469
+ });
1470
+ const l = [];
1471
+ this.interceptors.response.forEach(function(m) {
1472
+ l.push(m.fulfilled, m.rejected);
1473
+ });
1474
+ let c, p = 0, d;
1475
+ if (!u) {
1476
+ const y = [Qt.bind(this), void 0];
1477
+ for (y.unshift.apply(y, s), y.push.apply(y, l), d = y.length, c = Promise.resolve(n); p < d; )
1478
+ c = c.then(y[p++], y[p++]);
1479
+ return c;
1480
+ }
1481
+ d = s.length;
1482
+ let v = n;
1483
+ for (p = 0; p < d; ) {
1484
+ const y = s[p++], m = s[p++];
1485
+ try {
1486
+ v = y(v);
1487
+ } catch (h) {
1488
+ m.call(this, h);
1489
+ break;
1490
+ }
1491
+ }
1492
+ try {
1493
+ c = Qt.call(this, v);
1494
+ } catch (y) {
1495
+ return Promise.reject(y);
1496
+ }
1497
+ for (p = 0, d = l.length; p < d; )
1498
+ c = c.then(l[p++], l[p++]);
1499
+ return c;
1500
+ }
1501
+ getUri(e) {
1502
+ e = ee(this.defaults, e);
1503
+ const n = kr(e.baseURL, e.url);
1504
+ return $r(n, e.params, e.paramsSerializer);
1505
+ }
1506
+ }
1507
+ f.forEach(["delete", "get", "head", "options"], function(e) {
1508
+ X.prototype[e] = function(n, r) {
1509
+ return this.request(ee(r || {}, {
1510
+ method: e,
1511
+ url: n,
1512
+ data: (r || {}).data
1513
+ }));
1514
+ };
1515
+ });
1516
+ f.forEach(["post", "put", "patch"], function(e) {
1517
+ function n(r) {
1518
+ return function(a, i, s) {
1519
+ return this.request(ee(s || {}, {
1520
+ method: e,
1521
+ headers: r ? {
1522
+ "Content-Type": "multipart/form-data"
1523
+ } : {},
1524
+ url: a,
1525
+ data: i
1526
+ }));
1527
+ };
1528
+ }
1529
+ X.prototype[e] = n(), X.prototype[e + "Form"] = n(!0);
1530
+ });
1531
+ class Ft {
1532
+ constructor(e) {
1533
+ if (typeof e != "function")
1534
+ throw new TypeError("executor must be a function.");
1535
+ let n;
1536
+ this.promise = new Promise(function(a) {
1537
+ n = a;
1538
+ });
1539
+ const r = this;
1540
+ this.promise.then((o) => {
1541
+ if (!r._listeners) return;
1542
+ let a = r._listeners.length;
1543
+ for (; a-- > 0; )
1544
+ r._listeners[a](o);
1545
+ r._listeners = null;
1546
+ }), this.promise.then = (o) => {
1547
+ let a;
1548
+ const i = new Promise((s) => {
1549
+ r.subscribe(s), a = s;
1550
+ }).then(o);
1551
+ return i.cancel = function() {
1552
+ r.unsubscribe(a);
1553
+ }, i;
1554
+ }, e(function(a, i, s) {
1555
+ r.reason || (r.reason = new fe(a, i, s), n(r.reason));
1556
+ });
1557
+ }
1558
+ /**
1559
+ * Throws a `CanceledError` if cancellation has been requested.
1560
+ */
1561
+ throwIfRequested() {
1562
+ if (this.reason)
1563
+ throw this.reason;
1564
+ }
1565
+ /**
1566
+ * Subscribe to the cancel signal
1567
+ */
1568
+ subscribe(e) {
1569
+ if (this.reason) {
1570
+ e(this.reason);
1571
+ return;
1572
+ }
1573
+ this._listeners ? this._listeners.push(e) : this._listeners = [e];
1574
+ }
1575
+ /**
1576
+ * Unsubscribe from the cancel signal
1577
+ */
1578
+ unsubscribe(e) {
1579
+ if (!this._listeners)
1580
+ return;
1581
+ const n = this._listeners.indexOf(e);
1582
+ n !== -1 && this._listeners.splice(n, 1);
1583
+ }
1584
+ toAbortSignal() {
1585
+ const e = new AbortController(), n = (r) => {
1586
+ e.abort(r);
1587
+ };
1588
+ return this.subscribe(n), e.signal.unsubscribe = () => this.unsubscribe(n), e.signal;
1589
+ }
1590
+ /**
1591
+ * Returns an object that contains a new `CancelToken` and a function that, when called,
1592
+ * cancels the `CancelToken`.
1593
+ */
1594
+ static source() {
1595
+ let e;
1596
+ return {
1597
+ token: new Ft(function(o) {
1598
+ e = o;
1599
+ }),
1600
+ cancel: e
1601
+ };
1602
+ }
1603
+ }
1604
+ function oa(t) {
1605
+ return function(n) {
1606
+ return t.apply(null, n);
1607
+ };
1608
+ }
1609
+ function aa(t) {
1610
+ return f.isObject(t) && t.isAxiosError === !0;
1611
+ }
1612
+ const ht = {
1613
+ Continue: 100,
1614
+ SwitchingProtocols: 101,
1615
+ Processing: 102,
1616
+ EarlyHints: 103,
1617
+ Ok: 200,
1618
+ Created: 201,
1619
+ Accepted: 202,
1620
+ NonAuthoritativeInformation: 203,
1621
+ NoContent: 204,
1622
+ ResetContent: 205,
1623
+ PartialContent: 206,
1624
+ MultiStatus: 207,
1625
+ AlreadyReported: 208,
1626
+ ImUsed: 226,
1627
+ MultipleChoices: 300,
1628
+ MovedPermanently: 301,
1629
+ Found: 302,
1630
+ SeeOther: 303,
1631
+ NotModified: 304,
1632
+ UseProxy: 305,
1633
+ Unused: 306,
1634
+ TemporaryRedirect: 307,
1635
+ PermanentRedirect: 308,
1636
+ BadRequest: 400,
1637
+ Unauthorized: 401,
1638
+ PaymentRequired: 402,
1639
+ Forbidden: 403,
1640
+ NotFound: 404,
1641
+ MethodNotAllowed: 405,
1642
+ NotAcceptable: 406,
1643
+ ProxyAuthenticationRequired: 407,
1644
+ RequestTimeout: 408,
1645
+ Conflict: 409,
1646
+ Gone: 410,
1647
+ LengthRequired: 411,
1648
+ PreconditionFailed: 412,
1649
+ PayloadTooLarge: 413,
1650
+ UriTooLong: 414,
1651
+ UnsupportedMediaType: 415,
1652
+ RangeNotSatisfiable: 416,
1653
+ ExpectationFailed: 417,
1654
+ ImATeapot: 418,
1655
+ MisdirectedRequest: 421,
1656
+ UnprocessableEntity: 422,
1657
+ Locked: 423,
1658
+ FailedDependency: 424,
1659
+ TooEarly: 425,
1660
+ UpgradeRequired: 426,
1661
+ PreconditionRequired: 428,
1662
+ TooManyRequests: 429,
1663
+ RequestHeaderFieldsTooLarge: 431,
1664
+ UnavailableForLegalReasons: 451,
1665
+ InternalServerError: 500,
1666
+ NotImplemented: 501,
1667
+ BadGateway: 502,
1668
+ ServiceUnavailable: 503,
1669
+ GatewayTimeout: 504,
1670
+ HttpVersionNotSupported: 505,
1671
+ VariantAlsoNegotiates: 506,
1672
+ InsufficientStorage: 507,
1673
+ LoopDetected: 508,
1674
+ NotExtended: 510,
1675
+ NetworkAuthenticationRequired: 511
1676
+ };
1677
+ Object.entries(ht).forEach(([t, e]) => {
1678
+ ht[e] = t;
1679
+ });
1680
+ function Gr(t) {
1681
+ const e = new X(t), n = Ar(X.prototype.request, e);
1682
+ return f.extend(n, X.prototype, e, { allOwnKeys: !0 }), f.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(o) {
1683
+ return Gr(ee(t, o));
1684
+ }, n;
1685
+ }
1686
+ const R = Gr(Ee);
1687
+ R.Axios = X;
1688
+ R.CanceledError = fe;
1689
+ R.CancelToken = Ft;
1690
+ R.isCancel = Lr;
1691
+ R.VERSION = zr;
1692
+ R.toFormData = He;
1693
+ R.AxiosError = b;
1694
+ R.Cancel = R.CanceledError;
1695
+ R.all = function(e) {
1696
+ return Promise.all(e);
1697
+ };
1698
+ R.spread = oa;
1699
+ R.isAxiosError = aa;
1700
+ R.mergeConfig = ee;
1701
+ R.AxiosHeaders = I;
1702
+ R.formToJSON = (t) => Ur(f.isHTMLForm(t) ? new FormData(t) : t);
1703
+ R.getAdapter = Wr.getAdapter;
1704
+ R.HttpStatusCode = ht;
1705
+ R.default = R;
1706
+ var Zt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1707
+ function ia(t) {
1708
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
1709
+ }
1710
+ function sa(t) {
1711
+ if (t.__esModule) return t;
1712
+ var e = t.default;
1713
+ if (typeof e == "function") {
1714
+ var n = function r() {
1715
+ return this instanceof r ? Reflect.construct(e, arguments, this.constructor) : e.apply(this, arguments);
1716
+ };
1717
+ n.prototype = e.prototype;
1718
+ } else n = {};
1719
+ return Object.defineProperty(n, "__esModule", { value: !0 }), Object.keys(t).forEach(function(r) {
1720
+ var o = Object.getOwnPropertyDescriptor(t, r);
1721
+ Object.defineProperty(n, r, o.get ? o : {
1722
+ enumerable: !0,
1723
+ get: function() {
1724
+ return t[r];
1725
+ }
1726
+ });
1727
+ }), n;
1728
+ }
1729
+ var la = Error, ca = EvalError, ua = RangeError, fa = ReferenceError, Jr = SyntaxError, Ae = TypeError, pa = URIError, da = function() {
1730
+ if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
1731
+ return !1;
1732
+ if (typeof Symbol.iterator == "symbol")
1733
+ return !0;
1734
+ var e = {}, n = Symbol("test"), r = Object(n);
1735
+ if (typeof n == "string" || Object.prototype.toString.call(n) !== "[object Symbol]" || Object.prototype.toString.call(r) !== "[object Symbol]")
1736
+ return !1;
1737
+ var o = 42;
1738
+ e[n] = o;
1739
+ for (n in e)
1740
+ return !1;
1741
+ if (typeof Object.keys == "function" && Object.keys(e).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(e).length !== 0)
1742
+ return !1;
1743
+ var a = Object.getOwnPropertySymbols(e);
1744
+ if (a.length !== 1 || a[0] !== n || !Object.prototype.propertyIsEnumerable.call(e, n))
1745
+ return !1;
1746
+ if (typeof Object.getOwnPropertyDescriptor == "function") {
1747
+ var i = Object.getOwnPropertyDescriptor(e, n);
1748
+ if (i.value !== o || i.enumerable !== !0)
1749
+ return !1;
1750
+ }
1751
+ return !0;
1752
+ }, Yt = typeof Symbol < "u" && Symbol, ya = da, ha = function() {
1753
+ return typeof Yt != "function" || typeof Symbol != "function" || typeof Yt("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : ya();
1754
+ }, Xe = {
1755
+ __proto__: null,
1756
+ foo: {}
1757
+ }, ma = Object, ga = function() {
1758
+ return { __proto__: Xe }.foo === Xe.foo && !(Xe instanceof ma);
1759
+ }, va = "Function.prototype.bind called on incompatible ", ba = Object.prototype.toString, wa = Math.max, Sa = "[object Function]", er = function(e, n) {
1760
+ for (var r = [], o = 0; o < e.length; o += 1)
1761
+ r[o] = e[o];
1762
+ for (var a = 0; a < n.length; a += 1)
1763
+ r[a + e.length] = n[a];
1764
+ return r;
1765
+ }, Ea = function(e, n) {
1766
+ for (var r = [], o = n, a = 0; o < e.length; o += 1, a += 1)
1767
+ r[a] = e[o];
1768
+ return r;
1769
+ }, Aa = function(t, e) {
1770
+ for (var n = "", r = 0; r < t.length; r += 1)
1771
+ n += t[r], r + 1 < t.length && (n += e);
1772
+ return n;
1773
+ }, Oa = function(e) {
1774
+ var n = this;
1775
+ if (typeof n != "function" || ba.apply(n) !== Sa)
1776
+ throw new TypeError(va + n);
1777
+ for (var r = Ea(arguments, 1), o, a = function() {
1778
+ if (this instanceof o) {
1779
+ var c = n.apply(
1780
+ this,
1781
+ er(r, arguments)
1782
+ );
1783
+ return Object(c) === c ? c : this;
1784
+ }
1785
+ return n.apply(
1786
+ e,
1787
+ er(r, arguments)
1788
+ );
1789
+ }, i = wa(0, n.length - r.length), s = [], u = 0; u < i; u++)
1790
+ s[u] = "$" + u;
1791
+ if (o = Function("binder", "return function (" + Aa(s, ",") + "){ return binder.apply(this,arguments); }")(a), n.prototype) {
1792
+ var l = function() {
1793
+ };
1794
+ l.prototype = n.prototype, o.prototype = new l(), l.prototype = null;
1795
+ }
1796
+ return o;
1797
+ }, Ra = Oa, Ct = Function.prototype.bind || Ra, Pa = Function.prototype.call, Ta = Object.prototype.hasOwnProperty, xa = Ct, Fa = xa.call(Pa, Ta), w, Ca = la, Da = ca, Na = ua, Ia = fa, se = Jr, ie = Ae, _a = pa, Kr = Function, Ze = function(t) {
1798
+ try {
1799
+ return Kr('"use strict"; return (' + t + ").constructor;")();
1800
+ } catch {
1801
+ }
1802
+ }, Z = Object.getOwnPropertyDescriptor;
1803
+ if (Z)
1804
+ try {
1805
+ Z({}, "");
1806
+ } catch {
1807
+ Z = null;
1808
+ }
1809
+ var Ye = function() {
1810
+ throw new ie();
1811
+ }, $a = Z ? function() {
1812
+ try {
1813
+ return arguments.callee, Ye;
1814
+ } catch {
1815
+ try {
1816
+ return Z(arguments, "callee").get;
1817
+ } catch {
1818
+ return Ye;
1819
+ }
1820
+ }
1821
+ }() : Ye, ne = ha(), Ba = ga(), x = Object.getPrototypeOf || (Ba ? function(t) {
1822
+ return t.__proto__;
1823
+ } : null), ae = {}, Ua = typeof Uint8Array > "u" || !x ? w : x(Uint8Array), Y = {
1824
+ __proto__: null,
1825
+ "%AggregateError%": typeof AggregateError > "u" ? w : AggregateError,
1826
+ "%Array%": Array,
1827
+ "%ArrayBuffer%": typeof ArrayBuffer > "u" ? w : ArrayBuffer,
1828
+ "%ArrayIteratorPrototype%": ne && x ? x([][Symbol.iterator]()) : w,
1829
+ "%AsyncFromSyncIteratorPrototype%": w,
1830
+ "%AsyncFunction%": ae,
1831
+ "%AsyncGenerator%": ae,
1832
+ "%AsyncGeneratorFunction%": ae,
1833
+ "%AsyncIteratorPrototype%": ae,
1834
+ "%Atomics%": typeof Atomics > "u" ? w : Atomics,
1835
+ "%BigInt%": typeof BigInt > "u" ? w : BigInt,
1836
+ "%BigInt64Array%": typeof BigInt64Array > "u" ? w : BigInt64Array,
1837
+ "%BigUint64Array%": typeof BigUint64Array > "u" ? w : BigUint64Array,
1838
+ "%Boolean%": Boolean,
1839
+ "%DataView%": typeof DataView > "u" ? w : DataView,
1840
+ "%Date%": Date,
1841
+ "%decodeURI%": decodeURI,
1842
+ "%decodeURIComponent%": decodeURIComponent,
1843
+ "%encodeURI%": encodeURI,
1844
+ "%encodeURIComponent%": encodeURIComponent,
1845
+ "%Error%": Ca,
1846
+ "%eval%": eval,
1847
+ // eslint-disable-line no-eval
1848
+ "%EvalError%": Da,
1849
+ "%Float32Array%": typeof Float32Array > "u" ? w : Float32Array,
1850
+ "%Float64Array%": typeof Float64Array > "u" ? w : Float64Array,
1851
+ "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? w : FinalizationRegistry,
1852
+ "%Function%": Kr,
1853
+ "%GeneratorFunction%": ae,
1854
+ "%Int8Array%": typeof Int8Array > "u" ? w : Int8Array,
1855
+ "%Int16Array%": typeof Int16Array > "u" ? w : Int16Array,
1856
+ "%Int32Array%": typeof Int32Array > "u" ? w : Int32Array,
1857
+ "%isFinite%": isFinite,
1858
+ "%isNaN%": isNaN,
1859
+ "%IteratorPrototype%": ne && x ? x(x([][Symbol.iterator]())) : w,
1860
+ "%JSON%": typeof JSON == "object" ? JSON : w,
1861
+ "%Map%": typeof Map > "u" ? w : Map,
1862
+ "%MapIteratorPrototype%": typeof Map > "u" || !ne || !x ? w : x((/* @__PURE__ */ new Map())[Symbol.iterator]()),
1863
+ "%Math%": Math,
1864
+ "%Number%": Number,
1865
+ "%Object%": Object,
1866
+ "%parseFloat%": parseFloat,
1867
+ "%parseInt%": parseInt,
1868
+ "%Promise%": typeof Promise > "u" ? w : Promise,
1869
+ "%Proxy%": typeof Proxy > "u" ? w : Proxy,
1870
+ "%RangeError%": Na,
1871
+ "%ReferenceError%": Ia,
1872
+ "%Reflect%": typeof Reflect > "u" ? w : Reflect,
1873
+ "%RegExp%": RegExp,
1874
+ "%Set%": typeof Set > "u" ? w : Set,
1875
+ "%SetIteratorPrototype%": typeof Set > "u" || !ne || !x ? w : x((/* @__PURE__ */ new Set())[Symbol.iterator]()),
1876
+ "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? w : SharedArrayBuffer,
1877
+ "%String%": String,
1878
+ "%StringIteratorPrototype%": ne && x ? x(""[Symbol.iterator]()) : w,
1879
+ "%Symbol%": ne ? Symbol : w,
1880
+ "%SyntaxError%": se,
1881
+ "%ThrowTypeError%": $a,
1882
+ "%TypedArray%": Ua,
1883
+ "%TypeError%": ie,
1884
+ "%Uint8Array%": typeof Uint8Array > "u" ? w : Uint8Array,
1885
+ "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? w : Uint8ClampedArray,
1886
+ "%Uint16Array%": typeof Uint16Array > "u" ? w : Uint16Array,
1887
+ "%Uint32Array%": typeof Uint32Array > "u" ? w : Uint32Array,
1888
+ "%URIError%": _a,
1889
+ "%WeakMap%": typeof WeakMap > "u" ? w : WeakMap,
1890
+ "%WeakRef%": typeof WeakRef > "u" ? w : WeakRef,
1891
+ "%WeakSet%": typeof WeakSet > "u" ? w : WeakSet
1892
+ };
1893
+ if (x)
1894
+ try {
1895
+ null.error;
1896
+ } catch (t) {
1897
+ var La = x(x(t));
1898
+ Y["%Error.prototype%"] = La;
1899
+ }
1900
+ var Ma = function t(e) {
1901
+ var n;
1902
+ if (e === "%AsyncFunction%")
1903
+ n = Ze("async function () {}");
1904
+ else if (e === "%GeneratorFunction%")
1905
+ n = Ze("function* () {}");
1906
+ else if (e === "%AsyncGeneratorFunction%")
1907
+ n = Ze("async function* () {}");
1908
+ else if (e === "%AsyncGenerator%") {
1909
+ var r = t("%AsyncGeneratorFunction%");
1910
+ r && (n = r.prototype);
1911
+ } else if (e === "%AsyncIteratorPrototype%") {
1912
+ var o = t("%AsyncGenerator%");
1913
+ o && x && (n = x(o.prototype));
1914
+ }
1915
+ return Y[e] = n, n;
1916
+ }, tr = {
1917
+ __proto__: null,
1918
+ "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
1919
+ "%ArrayPrototype%": ["Array", "prototype"],
1920
+ "%ArrayProto_entries%": ["Array", "prototype", "entries"],
1921
+ "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
1922
+ "%ArrayProto_keys%": ["Array", "prototype", "keys"],
1923
+ "%ArrayProto_values%": ["Array", "prototype", "values"],
1924
+ "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
1925
+ "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
1926
+ "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
1927
+ "%BooleanPrototype%": ["Boolean", "prototype"],
1928
+ "%DataViewPrototype%": ["DataView", "prototype"],
1929
+ "%DatePrototype%": ["Date", "prototype"],
1930
+ "%ErrorPrototype%": ["Error", "prototype"],
1931
+ "%EvalErrorPrototype%": ["EvalError", "prototype"],
1932
+ "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
1933
+ "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
1934
+ "%FunctionPrototype%": ["Function", "prototype"],
1935
+ "%Generator%": ["GeneratorFunction", "prototype"],
1936
+ "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
1937
+ "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
1938
+ "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
1939
+ "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
1940
+ "%JSONParse%": ["JSON", "parse"],
1941
+ "%JSONStringify%": ["JSON", "stringify"],
1942
+ "%MapPrototype%": ["Map", "prototype"],
1943
+ "%NumberPrototype%": ["Number", "prototype"],
1944
+ "%ObjectPrototype%": ["Object", "prototype"],
1945
+ "%ObjProto_toString%": ["Object", "prototype", "toString"],
1946
+ "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
1947
+ "%PromisePrototype%": ["Promise", "prototype"],
1948
+ "%PromiseProto_then%": ["Promise", "prototype", "then"],
1949
+ "%Promise_all%": ["Promise", "all"],
1950
+ "%Promise_reject%": ["Promise", "reject"],
1951
+ "%Promise_resolve%": ["Promise", "resolve"],
1952
+ "%RangeErrorPrototype%": ["RangeError", "prototype"],
1953
+ "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
1954
+ "%RegExpPrototype%": ["RegExp", "prototype"],
1955
+ "%SetPrototype%": ["Set", "prototype"],
1956
+ "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
1957
+ "%StringPrototype%": ["String", "prototype"],
1958
+ "%SymbolPrototype%": ["Symbol", "prototype"],
1959
+ "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
1960
+ "%TypedArrayPrototype%": ["TypedArray", "prototype"],
1961
+ "%TypeErrorPrototype%": ["TypeError", "prototype"],
1962
+ "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
1963
+ "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
1964
+ "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
1965
+ "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
1966
+ "%URIErrorPrototype%": ["URIError", "prototype"],
1967
+ "%WeakMapPrototype%": ["WeakMap", "prototype"],
1968
+ "%WeakSetPrototype%": ["WeakSet", "prototype"]
1969
+ }, Oe = Ct, Be = Fa, ka = Oe.call(Function.call, Array.prototype.concat), ja = Oe.call(Function.apply, Array.prototype.splice), rr = Oe.call(Function.call, String.prototype.replace), Ue = Oe.call(Function.call, String.prototype.slice), qa = Oe.call(Function.call, RegExp.prototype.exec), Ha = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Wa = /\\(\\)?/g, za = function(e) {
1970
+ var n = Ue(e, 0, 1), r = Ue(e, -1);
1971
+ if (n === "%" && r !== "%")
1972
+ throw new se("invalid intrinsic syntax, expected closing `%`");
1973
+ if (r === "%" && n !== "%")
1974
+ throw new se("invalid intrinsic syntax, expected opening `%`");
1975
+ var o = [];
1976
+ return rr(e, Ha, function(a, i, s, u) {
1977
+ o[o.length] = s ? rr(u, Wa, "$1") : i || a;
1978
+ }), o;
1979
+ }, Ga = function(e, n) {
1980
+ var r = e, o;
1981
+ if (Be(tr, r) && (o = tr[r], r = "%" + o[0] + "%"), Be(Y, r)) {
1982
+ var a = Y[r];
1983
+ if (a === ae && (a = Ma(r)), typeof a > "u" && !n)
1984
+ throw new ie("intrinsic " + e + " exists, but is not available. Please file an issue!");
1985
+ return {
1986
+ alias: o,
1987
+ name: r,
1988
+ value: a
1989
+ };
1990
+ }
1991
+ throw new se("intrinsic " + e + " does not exist!");
1992
+ }, pe = function(e, n) {
1993
+ if (typeof e != "string" || e.length === 0)
1994
+ throw new ie("intrinsic name must be a non-empty string");
1995
+ if (arguments.length > 1 && typeof n != "boolean")
1996
+ throw new ie('"allowMissing" argument must be a boolean');
1997
+ if (qa(/^%?[^%]*%?$/, e) === null)
1998
+ throw new se("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
1999
+ var r = za(e), o = r.length > 0 ? r[0] : "", a = Ga("%" + o + "%", n), i = a.name, s = a.value, u = !1, l = a.alias;
2000
+ l && (o = l[0], ja(r, ka([0, 1], l)));
2001
+ for (var c = 1, p = !0; c < r.length; c += 1) {
2002
+ var d = r[c], v = Ue(d, 0, 1), y = Ue(d, -1);
2003
+ if ((v === '"' || v === "'" || v === "`" || y === '"' || y === "'" || y === "`") && v !== y)
2004
+ throw new se("property names with quotes must have matching quotes");
2005
+ if ((d === "constructor" || !p) && (u = !0), o += "." + d, i = "%" + o + "%", Be(Y, i))
2006
+ s = Y[i];
2007
+ else if (s != null) {
2008
+ if (!(d in s)) {
2009
+ if (!n)
2010
+ throw new ie("base intrinsic for " + e + " exists, but the property is not available.");
2011
+ return;
2012
+ }
2013
+ if (Z && c + 1 >= r.length) {
2014
+ var m = Z(s, d);
2015
+ p = !!m, p && "get" in m && !("originalValue" in m.get) ? s = m.get : s = s[d];
2016
+ } else
2017
+ p = Be(s, d), s = s[d];
2018
+ p && !u && (Y[i] = s);
2019
+ }
2020
+ }
2021
+ return s;
2022
+ }, Vr = { exports: {} }, et, nr;
2023
+ function Dt() {
2024
+ if (nr) return et;
2025
+ nr = 1;
2026
+ var t = pe, e = t("%Object.defineProperty%", !0) || !1;
2027
+ if (e)
2028
+ try {
2029
+ e({}, "a", { value: 1 });
2030
+ } catch {
2031
+ e = !1;
2032
+ }
2033
+ return et = e, et;
2034
+ }
2035
+ var Ja = pe, Ne = Ja("%Object.getOwnPropertyDescriptor%", !0);
2036
+ if (Ne)
2037
+ try {
2038
+ Ne([], "length");
2039
+ } catch {
2040
+ Ne = null;
2041
+ }
2042
+ var Qr = Ne, or = Dt(), Ka = Jr, oe = Ae, ar = Qr, Va = function(e, n, r) {
2043
+ if (!e || typeof e != "object" && typeof e != "function")
2044
+ throw new oe("`obj` must be an object or a function`");
2045
+ if (typeof n != "string" && typeof n != "symbol")
2046
+ throw new oe("`property` must be a string or a symbol`");
2047
+ if (arguments.length > 3 && typeof arguments[3] != "boolean" && arguments[3] !== null)
2048
+ throw new oe("`nonEnumerable`, if provided, must be a boolean or null");
2049
+ if (arguments.length > 4 && typeof arguments[4] != "boolean" && arguments[4] !== null)
2050
+ throw new oe("`nonWritable`, if provided, must be a boolean or null");
2051
+ if (arguments.length > 5 && typeof arguments[5] != "boolean" && arguments[5] !== null)
2052
+ throw new oe("`nonConfigurable`, if provided, must be a boolean or null");
2053
+ if (arguments.length > 6 && typeof arguments[6] != "boolean")
2054
+ throw new oe("`loose`, if provided, must be a boolean");
2055
+ var o = arguments.length > 3 ? arguments[3] : null, a = arguments.length > 4 ? arguments[4] : null, i = arguments.length > 5 ? arguments[5] : null, s = arguments.length > 6 ? arguments[6] : !1, u = !!ar && ar(e, n);
2056
+ if (or)
2057
+ or(e, n, {
2058
+ configurable: i === null && u ? u.configurable : !i,
2059
+ enumerable: o === null && u ? u.enumerable : !o,
2060
+ value: r,
2061
+ writable: a === null && u ? u.writable : !a
2062
+ });
2063
+ else if (s || !o && !a && !i)
2064
+ e[n] = r;
2065
+ else
2066
+ throw new Ka("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
2067
+ }, mt = Dt(), Xr = function() {
2068
+ return !!mt;
2069
+ };
2070
+ Xr.hasArrayLengthDefineBug = function() {
2071
+ if (!mt)
2072
+ return null;
2073
+ try {
2074
+ return mt([], "length", { value: 1 }).length !== 1;
2075
+ } catch {
2076
+ return !0;
2077
+ }
2078
+ };
2079
+ var Qa = Xr, Xa = pe, ir = Va, Za = Qa(), sr = Qr, lr = Ae, Ya = Xa("%Math.floor%"), ei = function(e, n) {
2080
+ if (typeof e != "function")
2081
+ throw new lr("`fn` is not a function");
2082
+ if (typeof n != "number" || n < 0 || n > 4294967295 || Ya(n) !== n)
2083
+ throw new lr("`length` must be a positive 32-bit integer");
2084
+ var r = arguments.length > 2 && !!arguments[2], o = !0, a = !0;
2085
+ if ("length" in e && sr) {
2086
+ var i = sr(e, "length");
2087
+ i && !i.configurable && (o = !1), i && !i.writable && (a = !1);
2088
+ }
2089
+ return (o || a || !r) && (Za ? ir(
2090
+ /** @type {Parameters<define>[0]} */
2091
+ e,
2092
+ "length",
2093
+ n,
2094
+ !0,
2095
+ !0
2096
+ ) : ir(
2097
+ /** @type {Parameters<define>[0]} */
2098
+ e,
2099
+ "length",
2100
+ n
2101
+ )), e;
2102
+ };
2103
+ (function(t) {
2104
+ var e = Ct, n = pe, r = ei, o = Ae, a = n("%Function.prototype.apply%"), i = n("%Function.prototype.call%"), s = n("%Reflect.apply%", !0) || e.call(i, a), u = Dt(), l = n("%Math.max%");
2105
+ t.exports = function(d) {
2106
+ if (typeof d != "function")
2107
+ throw new o("a function is required");
2108
+ var v = s(e, i, arguments);
2109
+ return r(
2110
+ v,
2111
+ 1 + l(0, d.length - (arguments.length - 1)),
2112
+ !0
2113
+ );
2114
+ };
2115
+ var c = function() {
2116
+ return s(e, a, arguments);
2117
+ };
2118
+ u ? u(t.exports, "apply", { value: c }) : t.exports.apply = c;
2119
+ })(Vr);
2120
+ var ti = Vr.exports, Zr = pe, Yr = ti, ri = Yr(Zr("String.prototype.indexOf")), ni = function(e, n) {
2121
+ var r = Zr(e, !!n);
2122
+ return typeof r == "function" && ri(e, ".prototype.") > -1 ? Yr(r) : r;
2123
+ };
2124
+ const oi = {}, ai = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2125
+ __proto__: null,
2126
+ default: oi
2127
+ }, Symbol.toStringTag, { value: "Module" })), ii = /* @__PURE__ */ sa(ai);
2128
+ var Nt = typeof Map == "function" && Map.prototype, tt = Object.getOwnPropertyDescriptor && Nt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Le = Nt && tt && typeof tt.get == "function" ? tt.get : null, cr = Nt && Map.prototype.forEach, It = typeof Set == "function" && Set.prototype, rt = Object.getOwnPropertyDescriptor && It ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Me = It && rt && typeof rt.get == "function" ? rt.get : null, ur = It && Set.prototype.forEach, si = typeof WeakMap == "function" && WeakMap.prototype, ge = si ? WeakMap.prototype.has : null, li = typeof WeakSet == "function" && WeakSet.prototype, ve = li ? WeakSet.prototype.has : null, ci = typeof WeakRef == "function" && WeakRef.prototype, fr = ci ? WeakRef.prototype.deref : null, ui = Boolean.prototype.valueOf, fi = Object.prototype.toString, pi = Function.prototype.toString, di = String.prototype.match, _t = String.prototype.slice, J = String.prototype.replace, yi = String.prototype.toUpperCase, pr = String.prototype.toLowerCase, en = RegExp.prototype.test, dr = Array.prototype.concat, k = Array.prototype.join, hi = Array.prototype.slice, yr = Math.floor, gt = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, nt = Object.getOwnPropertySymbols, vt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, le = typeof Symbol == "function" && typeof Symbol.iterator == "object", F = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === le || !0) ? Symbol.toStringTag : null, tn = Object.prototype.propertyIsEnumerable, hr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
2129
+ return t.__proto__;
2130
+ } : null);
2131
+ function mr(t, e) {
2132
+ if (t === 1 / 0 || t === -1 / 0 || t !== t || t && t > -1e3 && t < 1e3 || en.call(/e/, e))
2133
+ return e;
2134
+ var n = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
2135
+ if (typeof t == "number") {
2136
+ var r = t < 0 ? -yr(-t) : yr(t);
2137
+ if (r !== t) {
2138
+ var o = String(r), a = _t.call(e, o.length + 1);
2139
+ return J.call(o, n, "$&_") + "." + J.call(J.call(a, /([0-9]{3})/g, "$&_"), /_$/, "");
2140
+ }
2141
+ }
2142
+ return J.call(e, n, "$&_");
2143
+ }
2144
+ var bt = ii, gr = bt.custom, vr = nn(gr) ? gr : null, mi = function t(e, n, r, o) {
2145
+ var a = n || {};
2146
+ if (G(a, "quoteStyle") && a.quoteStyle !== "single" && a.quoteStyle !== "double")
2147
+ throw new TypeError('option "quoteStyle" must be "single" or "double"');
2148
+ if (G(a, "maxStringLength") && (typeof a.maxStringLength == "number" ? a.maxStringLength < 0 && a.maxStringLength !== 1 / 0 : a.maxStringLength !== null))
2149
+ throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
2150
+ var i = G(a, "customInspect") ? a.customInspect : !0;
2151
+ if (typeof i != "boolean" && i !== "symbol")
2152
+ throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
2153
+ if (G(a, "indent") && a.indent !== null && a.indent !== " " && !(parseInt(a.indent, 10) === a.indent && a.indent > 0))
2154
+ throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
2155
+ if (G(a, "numericSeparator") && typeof a.numericSeparator != "boolean")
2156
+ throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
2157
+ var s = a.numericSeparator;
2158
+ if (typeof e > "u")
2159
+ return "undefined";
2160
+ if (e === null)
2161
+ return "null";
2162
+ if (typeof e == "boolean")
2163
+ return e ? "true" : "false";
2164
+ if (typeof e == "string")
2165
+ return an(e, a);
2166
+ if (typeof e == "number") {
2167
+ if (e === 0)
2168
+ return 1 / 0 / e > 0 ? "0" : "-0";
2169
+ var u = String(e);
2170
+ return s ? mr(e, u) : u;
2171
+ }
2172
+ if (typeof e == "bigint") {
2173
+ var l = String(e) + "n";
2174
+ return s ? mr(e, l) : l;
2175
+ }
2176
+ var c = typeof a.depth > "u" ? 5 : a.depth;
2177
+ if (typeof r > "u" && (r = 0), r >= c && c > 0 && typeof e == "object")
2178
+ return wt(e) ? "[Array]" : "[Object]";
2179
+ var p = _i(a, r);
2180
+ if (typeof o > "u")
2181
+ o = [];
2182
+ else if (on(o, e) >= 0)
2183
+ return "[Circular]";
2184
+ function d($, H, W) {
2185
+ if (H && (o = hi.call(o), o.push(H)), W) {
2186
+ var ye = {
2187
+ depth: a.depth
2188
+ };
2189
+ return G(a, "quoteStyle") && (ye.quoteStyle = a.quoteStyle), t($, ye, r + 1, o);
2190
+ }
2191
+ return t($, a, r + 1, o);
2192
+ }
2193
+ if (typeof e == "function" && !br(e)) {
2194
+ var v = Ri(e), y = Pe(e, d);
2195
+ return "[Function" + (v ? ": " + v : " (anonymous)") + "]" + (y.length > 0 ? " { " + k.call(y, ", ") + " }" : "");
2196
+ }
2197
+ if (nn(e)) {
2198
+ var m = le ? J.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : vt.call(e);
2199
+ return typeof e == "object" && !le ? me(m) : m;
2200
+ }
2201
+ if (Di(e)) {
2202
+ for (var h = "<" + pr.call(String(e.nodeName)), S = e.attributes || [], E = 0; E < S.length; E++)
2203
+ h += " " + S[E].name + "=" + rn(gi(S[E].value), "double", a);
2204
+ return h += ">", e.childNodes && e.childNodes.length && (h += "..."), h += "</" + pr.call(String(e.nodeName)) + ">", h;
2205
+ }
2206
+ if (wt(e)) {
2207
+ if (e.length === 0)
2208
+ return "[]";
2209
+ var g = Pe(e, d);
2210
+ return p && !Ii(g) ? "[" + St(g, p) + "]" : "[ " + k.call(g, ", ") + " ]";
2211
+ }
2212
+ if (bi(e)) {
2213
+ var T = Pe(e, d);
2214
+ return !("cause" in Error.prototype) && "cause" in e && !tn.call(e, "cause") ? "{ [" + String(e) + "] " + k.call(dr.call("[cause]: " + d(e.cause), T), ", ") + " }" : T.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + k.call(T, ", ") + " }";
2215
+ }
2216
+ if (typeof e == "object" && i) {
2217
+ if (vr && typeof e[vr] == "function" && bt)
2218
+ return bt(e, { depth: c - r });
2219
+ if (i !== "symbol" && typeof e.inspect == "function")
2220
+ return e.inspect();
2221
+ }
2222
+ if (Pi(e)) {
2223
+ var A = [];
2224
+ return cr && cr.call(e, function($, H) {
2225
+ A.push(d(H, e, !0) + " => " + d($, e));
2226
+ }), wr("Map", Le.call(e), A, p);
2227
+ }
2228
+ if (Fi(e)) {
2229
+ var C = [];
2230
+ return ur && ur.call(e, function($) {
2231
+ C.push(d($, e));
2232
+ }), wr("Set", Me.call(e), C, p);
2233
+ }
2234
+ if (Ti(e))
2235
+ return ot("WeakMap");
2236
+ if (Ci(e))
2237
+ return ot("WeakSet");
2238
+ if (xi(e))
2239
+ return ot("WeakRef");
2240
+ if (Si(e))
2241
+ return me(d(Number(e)));
2242
+ if (Ai(e))
2243
+ return me(d(gt.call(e)));
2244
+ if (Ei(e))
2245
+ return me(ui.call(e));
2246
+ if (wi(e))
2247
+ return me(d(String(e)));
2248
+ if (typeof window < "u" && e === window)
2249
+ return "{ [object Window] }";
2250
+ if (typeof globalThis < "u" && e === globalThis || typeof Zt < "u" && e === Zt)
2251
+ return "{ [object globalThis] }";
2252
+ if (!vi(e) && !br(e)) {
2253
+ var D = Pe(e, d), j = hr ? hr(e) === Object.prototype : e instanceof Object || e.constructor === Object, U = e instanceof Object ? "" : "null prototype", q = !j && F && Object(e) === e && F in e ? _t.call(K(e), 8, -1) : U ? "Object" : "", Re = j || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", te = Re + (q || U ? "[" + k.call(dr.call([], q || [], U || []), ": ") + "] " : "");
2254
+ return D.length === 0 ? te + "{}" : p ? te + "{" + St(D, p) + "}" : te + "{ " + k.call(D, ", ") + " }";
2255
+ }
2256
+ return String(e);
2257
+ };
2258
+ function rn(t, e, n) {
2259
+ var r = (n.quoteStyle || e) === "double" ? '"' : "'";
2260
+ return r + t + r;
2261
+ }
2262
+ function gi(t) {
2263
+ return J.call(String(t), /"/g, "&quot;");
2264
+ }
2265
+ function wt(t) {
2266
+ return K(t) === "[object Array]" && (!F || !(typeof t == "object" && F in t));
2267
+ }
2268
+ function vi(t) {
2269
+ return K(t) === "[object Date]" && (!F || !(typeof t == "object" && F in t));
2270
+ }
2271
+ function br(t) {
2272
+ return K(t) === "[object RegExp]" && (!F || !(typeof t == "object" && F in t));
2273
+ }
2274
+ function bi(t) {
2275
+ return K(t) === "[object Error]" && (!F || !(typeof t == "object" && F in t));
2276
+ }
2277
+ function wi(t) {
2278
+ return K(t) === "[object String]" && (!F || !(typeof t == "object" && F in t));
2279
+ }
2280
+ function Si(t) {
2281
+ return K(t) === "[object Number]" && (!F || !(typeof t == "object" && F in t));
2282
+ }
2283
+ function Ei(t) {
2284
+ return K(t) === "[object Boolean]" && (!F || !(typeof t == "object" && F in t));
2285
+ }
2286
+ function nn(t) {
2287
+ if (le)
2288
+ return t && typeof t == "object" && t instanceof Symbol;
2289
+ if (typeof t == "symbol")
2290
+ return !0;
2291
+ if (!t || typeof t != "object" || !vt)
2292
+ return !1;
2293
+ try {
2294
+ return vt.call(t), !0;
2295
+ } catch {
2296
+ }
2297
+ return !1;
2298
+ }
2299
+ function Ai(t) {
2300
+ if (!t || typeof t != "object" || !gt)
2301
+ return !1;
2302
+ try {
2303
+ return gt.call(t), !0;
2304
+ } catch {
2305
+ }
2306
+ return !1;
2307
+ }
2308
+ var Oi = Object.prototype.hasOwnProperty || function(t) {
2309
+ return t in this;
2310
+ };
2311
+ function G(t, e) {
2312
+ return Oi.call(t, e);
2313
+ }
2314
+ function K(t) {
2315
+ return fi.call(t);
2316
+ }
2317
+ function Ri(t) {
2318
+ if (t.name)
2319
+ return t.name;
2320
+ var e = di.call(pi.call(t), /^function\s*([\w$]+)/);
2321
+ return e ? e[1] : null;
2322
+ }
2323
+ function on(t, e) {
2324
+ if (t.indexOf)
2325
+ return t.indexOf(e);
2326
+ for (var n = 0, r = t.length; n < r; n++)
2327
+ if (t[n] === e)
2328
+ return n;
2329
+ return -1;
2330
+ }
2331
+ function Pi(t) {
2332
+ if (!Le || !t || typeof t != "object")
2333
+ return !1;
2334
+ try {
2335
+ Le.call(t);
2336
+ try {
2337
+ Me.call(t);
2338
+ } catch {
2339
+ return !0;
2340
+ }
2341
+ return t instanceof Map;
2342
+ } catch {
2343
+ }
2344
+ return !1;
2345
+ }
2346
+ function Ti(t) {
2347
+ if (!ge || !t || typeof t != "object")
2348
+ return !1;
2349
+ try {
2350
+ ge.call(t, ge);
2351
+ try {
2352
+ ve.call(t, ve);
2353
+ } catch {
2354
+ return !0;
2355
+ }
2356
+ return t instanceof WeakMap;
2357
+ } catch {
2358
+ }
2359
+ return !1;
2360
+ }
2361
+ function xi(t) {
2362
+ if (!fr || !t || typeof t != "object")
2363
+ return !1;
2364
+ try {
2365
+ return fr.call(t), !0;
2366
+ } catch {
2367
+ }
2368
+ return !1;
2369
+ }
2370
+ function Fi(t) {
2371
+ if (!Me || !t || typeof t != "object")
2372
+ return !1;
2373
+ try {
2374
+ Me.call(t);
2375
+ try {
2376
+ Le.call(t);
2377
+ } catch {
2378
+ return !0;
2379
+ }
2380
+ return t instanceof Set;
2381
+ } catch {
2382
+ }
2383
+ return !1;
2384
+ }
2385
+ function Ci(t) {
2386
+ if (!ve || !t || typeof t != "object")
2387
+ return !1;
2388
+ try {
2389
+ ve.call(t, ve);
2390
+ try {
2391
+ ge.call(t, ge);
2392
+ } catch {
2393
+ return !0;
2394
+ }
2395
+ return t instanceof WeakSet;
2396
+ } catch {
2397
+ }
2398
+ return !1;
2399
+ }
2400
+ function Di(t) {
2401
+ return !t || typeof t != "object" ? !1 : typeof HTMLElement < "u" && t instanceof HTMLElement ? !0 : typeof t.nodeName == "string" && typeof t.getAttribute == "function";
2402
+ }
2403
+ function an(t, e) {
2404
+ if (t.length > e.maxStringLength) {
2405
+ var n = t.length - e.maxStringLength, r = "... " + n + " more character" + (n > 1 ? "s" : "");
2406
+ return an(_t.call(t, 0, e.maxStringLength), e) + r;
2407
+ }
2408
+ var o = J.call(J.call(t, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Ni);
2409
+ return rn(o, "single", e);
2410
+ }
2411
+ function Ni(t) {
2412
+ var e = t.charCodeAt(0), n = {
2413
+ 8: "b",
2414
+ 9: "t",
2415
+ 10: "n",
2416
+ 12: "f",
2417
+ 13: "r"
2418
+ }[e];
2419
+ return n ? "\\" + n : "\\x" + (e < 16 ? "0" : "") + yi.call(e.toString(16));
2420
+ }
2421
+ function me(t) {
2422
+ return "Object(" + t + ")";
2423
+ }
2424
+ function ot(t) {
2425
+ return t + " { ? }";
2426
+ }
2427
+ function wr(t, e, n, r) {
2428
+ var o = r ? St(n, r) : k.call(n, ", ");
2429
+ return t + " (" + e + ") {" + o + "}";
2430
+ }
2431
+ function Ii(t) {
2432
+ for (var e = 0; e < t.length; e++)
2433
+ if (on(t[e], `
2434
+ `) >= 0)
2435
+ return !1;
2436
+ return !0;
2437
+ }
2438
+ function _i(t, e) {
2439
+ var n;
2440
+ if (t.indent === " ")
2441
+ n = " ";
2442
+ else if (typeof t.indent == "number" && t.indent > 0)
2443
+ n = k.call(Array(t.indent + 1), " ");
2444
+ else
2445
+ return null;
2446
+ return {
2447
+ base: n,
2448
+ prev: k.call(Array(e + 1), n)
2449
+ };
2450
+ }
2451
+ function St(t, e) {
2452
+ if (t.length === 0)
2453
+ return "";
2454
+ var n = `
2455
+ ` + e.prev + e.base;
2456
+ return n + k.call(t, "," + n) + `
2457
+ ` + e.prev;
2458
+ }
2459
+ function Pe(t, e) {
2460
+ var n = wt(t), r = [];
2461
+ if (n) {
2462
+ r.length = t.length;
2463
+ for (var o = 0; o < t.length; o++)
2464
+ r[o] = G(t, o) ? e(t[o], t) : "";
2465
+ }
2466
+ var a = typeof nt == "function" ? nt(t) : [], i;
2467
+ if (le) {
2468
+ i = {};
2469
+ for (var s = 0; s < a.length; s++)
2470
+ i["$" + a[s]] = a[s];
2471
+ }
2472
+ for (var u in t)
2473
+ G(t, u) && (n && String(Number(u)) === u && u < t.length || le && i["$" + u] instanceof Symbol || (en.call(/[^\w$]/, u) ? r.push(e(u, t) + ": " + e(t[u], t)) : r.push(u + ": " + e(t[u], t))));
2474
+ if (typeof nt == "function")
2475
+ for (var l = 0; l < a.length; l++)
2476
+ tn.call(t, a[l]) && r.push("[" + e(a[l]) + "]: " + e(t[a[l]], t));
2477
+ return r;
2478
+ }
2479
+ var sn = pe, de = ni, $i = mi, Bi = Ae, Te = sn("%WeakMap%", !0), xe = sn("%Map%", !0), Ui = de("WeakMap.prototype.get", !0), Li = de("WeakMap.prototype.set", !0), Mi = de("WeakMap.prototype.has", !0), ki = de("Map.prototype.get", !0), ji = de("Map.prototype.set", !0), qi = de("Map.prototype.has", !0), $t = function(t, e) {
2480
+ for (var n = t, r; (r = n.next) !== null; n = r)
2481
+ if (r.key === e)
2482
+ return n.next = r.next, r.next = /** @type {NonNullable<typeof list.next>} */
2483
+ t.next, t.next = r, r;
2484
+ }, Hi = function(t, e) {
2485
+ var n = $t(t, e);
2486
+ return n && n.value;
2487
+ }, Wi = function(t, e, n) {
2488
+ var r = $t(t, e);
2489
+ r ? r.value = n : t.next = /** @type {import('.').ListNode<typeof value>} */
2490
+ {
2491
+ // eslint-disable-line no-param-reassign, no-extra-parens
2492
+ key: e,
2493
+ next: t.next,
2494
+ value: n
2495
+ };
2496
+ }, zi = function(t, e) {
2497
+ return !!$t(t, e);
2498
+ }, Gi = function() {
2499
+ var e, n, r, o = {
2500
+ assert: function(a) {
2501
+ if (!o.has(a))
2502
+ throw new Bi("Side channel does not contain " + $i(a));
2503
+ },
2504
+ get: function(a) {
2505
+ if (Te && a && (typeof a == "object" || typeof a == "function")) {
2506
+ if (e)
2507
+ return Ui(e, a);
2508
+ } else if (xe) {
2509
+ if (n)
2510
+ return ki(n, a);
2511
+ } else if (r)
2512
+ return Hi(r, a);
2513
+ },
2514
+ has: function(a) {
2515
+ if (Te && a && (typeof a == "object" || typeof a == "function")) {
2516
+ if (e)
2517
+ return Mi(e, a);
2518
+ } else if (xe) {
2519
+ if (n)
2520
+ return qi(n, a);
2521
+ } else if (r)
2522
+ return zi(r, a);
2523
+ return !1;
2524
+ },
2525
+ set: function(a, i) {
2526
+ Te && a && (typeof a == "object" || typeof a == "function") ? (e || (e = new Te()), Li(e, a, i)) : xe ? (n || (n = new xe()), ji(n, a, i)) : (r || (r = { key: {}, next: null }), Wi(r, a, i));
2527
+ }
2528
+ };
2529
+ return o;
2530
+ }, Ji = String.prototype.replace, Ki = /%20/g, at = {
2531
+ RFC1738: "RFC1738",
2532
+ RFC3986: "RFC3986"
2533
+ }, Bt = {
2534
+ default: at.RFC3986,
2535
+ formatters: {
2536
+ RFC1738: function(t) {
2537
+ return Ji.call(t, Ki, "+");
2538
+ },
2539
+ RFC3986: function(t) {
2540
+ return String(t);
2541
+ }
2542
+ },
2543
+ RFC1738: at.RFC1738,
2544
+ RFC3986: at.RFC3986
2545
+ }, Vi = Bt, it = Object.prototype.hasOwnProperty, V = Array.isArray, L = function() {
2546
+ for (var t = [], e = 0; e < 256; ++e)
2547
+ t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
2548
+ return t;
2549
+ }(), Qi = function(e) {
2550
+ for (; e.length > 1; ) {
2551
+ var n = e.pop(), r = n.obj[n.prop];
2552
+ if (V(r)) {
2553
+ for (var o = [], a = 0; a < r.length; ++a)
2554
+ typeof r[a] < "u" && o.push(r[a]);
2555
+ n.obj[n.prop] = o;
2556
+ }
2557
+ }
2558
+ }, ln = function(e, n) {
2559
+ for (var r = n && n.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, o = 0; o < e.length; ++o)
2560
+ typeof e[o] < "u" && (r[o] = e[o]);
2561
+ return r;
2562
+ }, Xi = function t(e, n, r) {
2563
+ if (!n)
2564
+ return e;
2565
+ if (typeof n != "object") {
2566
+ if (V(e))
2567
+ e.push(n);
2568
+ else if (e && typeof e == "object")
2569
+ (r && (r.plainObjects || r.allowPrototypes) || !it.call(Object.prototype, n)) && (e[n] = !0);
2570
+ else
2571
+ return [e, n];
2572
+ return e;
2573
+ }
2574
+ if (!e || typeof e != "object")
2575
+ return [e].concat(n);
2576
+ var o = e;
2577
+ return V(e) && !V(n) && (o = ln(e, r)), V(e) && V(n) ? (n.forEach(function(a, i) {
2578
+ if (it.call(e, i)) {
2579
+ var s = e[i];
2580
+ s && typeof s == "object" && a && typeof a == "object" ? e[i] = t(s, a, r) : e.push(a);
2581
+ } else
2582
+ e[i] = a;
2583
+ }), e) : Object.keys(n).reduce(function(a, i) {
2584
+ var s = n[i];
2585
+ return it.call(a, i) ? a[i] = t(a[i], s, r) : a[i] = s, a;
2586
+ }, o);
2587
+ }, Zi = function(e, n) {
2588
+ return Object.keys(n).reduce(function(r, o) {
2589
+ return r[o] = n[o], r;
2590
+ }, e);
2591
+ }, Yi = function(t, e, n) {
2592
+ var r = t.replace(/\+/g, " ");
2593
+ if (n === "iso-8859-1")
2594
+ return r.replace(/%[0-9a-f]{2}/gi, unescape);
2595
+ try {
2596
+ return decodeURIComponent(r);
2597
+ } catch {
2598
+ return r;
2599
+ }
2600
+ }, st = 1024, es = function(e, n, r, o, a) {
2601
+ if (e.length === 0)
2602
+ return e;
2603
+ var i = e;
2604
+ if (typeof e == "symbol" ? i = Symbol.prototype.toString.call(e) : typeof e != "string" && (i = String(e)), r === "iso-8859-1")
2605
+ return escape(i).replace(/%u[0-9a-f]{4}/gi, function(v) {
2606
+ return "%26%23" + parseInt(v.slice(2), 16) + "%3B";
2607
+ });
2608
+ for (var s = "", u = 0; u < i.length; u += st) {
2609
+ for (var l = i.length >= st ? i.slice(u, u + st) : i, c = [], p = 0; p < l.length; ++p) {
2610
+ var d = l.charCodeAt(p);
2611
+ if (d === 45 || d === 46 || d === 95 || d === 126 || d >= 48 && d <= 57 || d >= 65 && d <= 90 || d >= 97 && d <= 122 || a === Vi.RFC1738 && (d === 40 || d === 41)) {
2612
+ c[c.length] = l.charAt(p);
2613
+ continue;
2614
+ }
2615
+ if (d < 128) {
2616
+ c[c.length] = L[d];
2617
+ continue;
2618
+ }
2619
+ if (d < 2048) {
2620
+ c[c.length] = L[192 | d >> 6] + L[128 | d & 63];
2621
+ continue;
2622
+ }
2623
+ if (d < 55296 || d >= 57344) {
2624
+ c[c.length] = L[224 | d >> 12] + L[128 | d >> 6 & 63] + L[128 | d & 63];
2625
+ continue;
2626
+ }
2627
+ p += 1, d = 65536 + ((d & 1023) << 10 | l.charCodeAt(p) & 1023), c[c.length] = L[240 | d >> 18] + L[128 | d >> 12 & 63] + L[128 | d >> 6 & 63] + L[128 | d & 63];
2628
+ }
2629
+ s += c.join("");
2630
+ }
2631
+ return s;
2632
+ }, ts = function(e) {
2633
+ for (var n = [{ obj: { o: e }, prop: "o" }], r = [], o = 0; o < n.length; ++o)
2634
+ for (var a = n[o], i = a.obj[a.prop], s = Object.keys(i), u = 0; u < s.length; ++u) {
2635
+ var l = s[u], c = i[l];
2636
+ typeof c == "object" && c !== null && r.indexOf(c) === -1 && (n.push({ obj: i, prop: l }), r.push(c));
2637
+ }
2638
+ return Qi(n), e;
2639
+ }, rs = function(e) {
2640
+ return Object.prototype.toString.call(e) === "[object RegExp]";
2641
+ }, ns = function(e) {
2642
+ return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
2643
+ }, os = function(e, n) {
2644
+ return [].concat(e, n);
2645
+ }, as = function(e, n) {
2646
+ if (V(e)) {
2647
+ for (var r = [], o = 0; o < e.length; o += 1)
2648
+ r.push(n(e[o]));
2649
+ return r;
2650
+ }
2651
+ return n(e);
2652
+ }, cn = {
2653
+ arrayToObject: ln,
2654
+ assign: Zi,
2655
+ combine: os,
2656
+ compact: ts,
2657
+ decode: Yi,
2658
+ encode: es,
2659
+ isBuffer: ns,
2660
+ isRegExp: rs,
2661
+ maybeMap: as,
2662
+ merge: Xi
2663
+ }, un = Gi, Ie = cn, be = Bt, is = Object.prototype.hasOwnProperty, fn = {
2664
+ brackets: function(e) {
2665
+ return e + "[]";
2666
+ },
2667
+ comma: "comma",
2668
+ indices: function(e, n) {
2669
+ return e + "[" + n + "]";
2670
+ },
2671
+ repeat: function(e) {
2672
+ return e;
2673
+ }
2674
+ }, M = Array.isArray, ss = Array.prototype.push, pn = function(t, e) {
2675
+ ss.apply(t, M(e) ? e : [e]);
2676
+ }, ls = Date.prototype.toISOString, Sr = be.default, P = {
2677
+ addQueryPrefix: !1,
2678
+ allowDots: !1,
2679
+ allowEmptyArrays: !1,
2680
+ arrayFormat: "indices",
2681
+ charset: "utf-8",
2682
+ charsetSentinel: !1,
2683
+ delimiter: "&",
2684
+ encode: !0,
2685
+ encodeDotInKeys: !1,
2686
+ encoder: Ie.encode,
2687
+ encodeValuesOnly: !1,
2688
+ format: Sr,
2689
+ formatter: be.formatters[Sr],
2690
+ // deprecated
2691
+ indices: !1,
2692
+ serializeDate: function(e) {
2693
+ return ls.call(e);
2694
+ },
2695
+ skipNulls: !1,
2696
+ strictNullHandling: !1
2697
+ }, cs = function(e) {
2698
+ return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
2699
+ }, lt = {}, us = function t(e, n, r, o, a, i, s, u, l, c, p, d, v, y, m, h, S, E) {
2700
+ for (var g = e, T = E, A = 0, C = !1; (T = T.get(lt)) !== void 0 && !C; ) {
2701
+ var D = T.get(e);
2702
+ if (A += 1, typeof D < "u") {
2703
+ if (D === A)
2704
+ throw new RangeError("Cyclic object value");
2705
+ C = !0;
2706
+ }
2707
+ typeof T.get(lt) > "u" && (A = 0);
2708
+ }
2709
+ if (typeof c == "function" ? g = c(n, g) : g instanceof Date ? g = v(g) : r === "comma" && M(g) && (g = Ie.maybeMap(g, function(Ge) {
2710
+ return Ge instanceof Date ? v(Ge) : Ge;
2711
+ })), g === null) {
2712
+ if (i)
2713
+ return l && !h ? l(n, P.encoder, S, "key", y) : n;
2714
+ g = "";
2715
+ }
2716
+ if (cs(g) || Ie.isBuffer(g)) {
2717
+ if (l) {
2718
+ var j = h ? n : l(n, P.encoder, S, "key", y);
2719
+ return [m(j) + "=" + m(l(g, P.encoder, S, "value", y))];
2720
+ }
2721
+ return [m(n) + "=" + m(String(g))];
2722
+ }
2723
+ var U = [];
2724
+ if (typeof g > "u")
2725
+ return U;
2726
+ var q;
2727
+ if (r === "comma" && M(g))
2728
+ h && l && (g = Ie.maybeMap(g, l)), q = [{ value: g.length > 0 ? g.join(",") || null : void 0 }];
2729
+ else if (M(c))
2730
+ q = c;
2731
+ else {
2732
+ var Re = Object.keys(g);
2733
+ q = p ? Re.sort(p) : Re;
2734
+ }
2735
+ var te = u ? n.replace(/\./g, "%2E") : n, $ = o && M(g) && g.length === 1 ? te + "[]" : te;
2736
+ if (a && M(g) && g.length === 0)
2737
+ return $ + "[]";
2738
+ for (var H = 0; H < q.length; ++H) {
2739
+ var W = q[H], ye = typeof W == "object" && typeof W.value < "u" ? W.value : g[W];
2740
+ if (!(s && ye === null)) {
2741
+ var ze = d && u ? W.replace(/\./g, "%2E") : W, vn = M(g) ? typeof r == "function" ? r($, ze) : $ : $ + (d ? "." + ze : "[" + ze + "]");
2742
+ E.set(e, A);
2743
+ var Ut = un();
2744
+ Ut.set(lt, E), pn(U, t(
2745
+ ye,
2746
+ vn,
2747
+ r,
2748
+ o,
2749
+ a,
2750
+ i,
2751
+ s,
2752
+ u,
2753
+ r === "comma" && h && M(g) ? null : l,
2754
+ c,
2755
+ p,
2756
+ d,
2757
+ v,
2758
+ y,
2759
+ m,
2760
+ h,
2761
+ S,
2762
+ Ut
2763
+ ));
2764
+ }
2765
+ }
2766
+ return U;
2767
+ }, fs = function(e) {
2768
+ if (!e)
2769
+ return P;
2770
+ if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
2771
+ throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
2772
+ if (typeof e.encodeDotInKeys < "u" && typeof e.encodeDotInKeys != "boolean")
2773
+ throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
2774
+ if (e.encoder !== null && typeof e.encoder < "u" && typeof e.encoder != "function")
2775
+ throw new TypeError("Encoder has to be a function.");
2776
+ var n = e.charset || P.charset;
2777
+ if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
2778
+ throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
2779
+ var r = be.default;
2780
+ if (typeof e.format < "u") {
2781
+ if (!is.call(be.formatters, e.format))
2782
+ throw new TypeError("Unknown format option provided.");
2783
+ r = e.format;
2784
+ }
2785
+ var o = be.formatters[r], a = P.filter;
2786
+ (typeof e.filter == "function" || M(e.filter)) && (a = e.filter);
2787
+ var i;
2788
+ if (e.arrayFormat in fn ? i = e.arrayFormat : "indices" in e ? i = e.indices ? "indices" : "repeat" : i = P.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
2789
+ throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
2790
+ var s = typeof e.allowDots > "u" ? e.encodeDotInKeys === !0 ? !0 : P.allowDots : !!e.allowDots;
2791
+ return {
2792
+ addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : P.addQueryPrefix,
2793
+ allowDots: s,
2794
+ allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : P.allowEmptyArrays,
2795
+ arrayFormat: i,
2796
+ charset: n,
2797
+ charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : P.charsetSentinel,
2798
+ commaRoundTrip: e.commaRoundTrip,
2799
+ delimiter: typeof e.delimiter > "u" ? P.delimiter : e.delimiter,
2800
+ encode: typeof e.encode == "boolean" ? e.encode : P.encode,
2801
+ encodeDotInKeys: typeof e.encodeDotInKeys == "boolean" ? e.encodeDotInKeys : P.encodeDotInKeys,
2802
+ encoder: typeof e.encoder == "function" ? e.encoder : P.encoder,
2803
+ encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : P.encodeValuesOnly,
2804
+ filter: a,
2805
+ format: r,
2806
+ formatter: o,
2807
+ serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : P.serializeDate,
2808
+ skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : P.skipNulls,
2809
+ sort: typeof e.sort == "function" ? e.sort : null,
2810
+ strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : P.strictNullHandling
2811
+ };
2812
+ }, ps = function(t, e) {
2813
+ var n = t, r = fs(e), o, a;
2814
+ typeof r.filter == "function" ? (a = r.filter, n = a("", n)) : M(r.filter) && (a = r.filter, o = a);
2815
+ var i = [];
2816
+ if (typeof n != "object" || n === null)
2817
+ return "";
2818
+ var s = fn[r.arrayFormat], u = s === "comma" && r.commaRoundTrip;
2819
+ o || (o = Object.keys(n)), r.sort && o.sort(r.sort);
2820
+ for (var l = un(), c = 0; c < o.length; ++c) {
2821
+ var p = o[c];
2822
+ r.skipNulls && n[p] === null || pn(i, us(
2823
+ n[p],
2824
+ p,
2825
+ s,
2826
+ u,
2827
+ r.allowEmptyArrays,
2828
+ r.strictNullHandling,
2829
+ r.skipNulls,
2830
+ r.encodeDotInKeys,
2831
+ r.encode ? r.encoder : null,
2832
+ r.filter,
2833
+ r.sort,
2834
+ r.allowDots,
2835
+ r.serializeDate,
2836
+ r.format,
2837
+ r.formatter,
2838
+ r.encodeValuesOnly,
2839
+ r.charset,
2840
+ l
2841
+ ));
2842
+ }
2843
+ var d = i.join(r.delimiter), v = r.addQueryPrefix === !0 ? "?" : "";
2844
+ return r.charsetSentinel && (r.charset === "iso-8859-1" ? v += "utf8=%26%2310003%3B&" : v += "utf8=%E2%9C%93&"), d.length > 0 ? v + d : "";
2845
+ }, ce = cn, Et = Object.prototype.hasOwnProperty, ds = Array.isArray, O = {
2846
+ allowDots: !1,
2847
+ allowEmptyArrays: !1,
2848
+ allowPrototypes: !1,
2849
+ allowSparse: !1,
2850
+ arrayLimit: 20,
2851
+ charset: "utf-8",
2852
+ charsetSentinel: !1,
2853
+ comma: !1,
2854
+ decodeDotInKeys: !1,
2855
+ decoder: ce.decode,
2856
+ delimiter: "&",
2857
+ depth: 5,
2858
+ duplicates: "combine",
2859
+ ignoreQueryPrefix: !1,
2860
+ interpretNumericEntities: !1,
2861
+ parameterLimit: 1e3,
2862
+ parseArrays: !0,
2863
+ plainObjects: !1,
2864
+ strictDepth: !1,
2865
+ strictNullHandling: !1
2866
+ }, ys = function(t) {
2867
+ return t.replace(/&#(\d+);/g, function(e, n) {
2868
+ return String.fromCharCode(parseInt(n, 10));
2869
+ });
2870
+ }, dn = function(t, e) {
2871
+ return t && typeof t == "string" && e.comma && t.indexOf(",") > -1 ? t.split(",") : t;
2872
+ }, hs = "utf8=%26%2310003%3B", ms = "utf8=%E2%9C%93", gs = function(e, n) {
2873
+ var r = { __proto__: null }, o = n.ignoreQueryPrefix ? e.replace(/^\?/, "") : e;
2874
+ o = o.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
2875
+ var a = n.parameterLimit === 1 / 0 ? void 0 : n.parameterLimit, i = o.split(n.delimiter, a), s = -1, u, l = n.charset;
2876
+ if (n.charsetSentinel)
2877
+ for (u = 0; u < i.length; ++u)
2878
+ i[u].indexOf("utf8=") === 0 && (i[u] === ms ? l = "utf-8" : i[u] === hs && (l = "iso-8859-1"), s = u, u = i.length);
2879
+ for (u = 0; u < i.length; ++u)
2880
+ if (u !== s) {
2881
+ var c = i[u], p = c.indexOf("]="), d = p === -1 ? c.indexOf("=") : p + 1, v, y;
2882
+ d === -1 ? (v = n.decoder(c, O.decoder, l, "key"), y = n.strictNullHandling ? null : "") : (v = n.decoder(c.slice(0, d), O.decoder, l, "key"), y = ce.maybeMap(
2883
+ dn(c.slice(d + 1), n),
2884
+ function(h) {
2885
+ return n.decoder(h, O.decoder, l, "value");
2886
+ }
2887
+ )), y && n.interpretNumericEntities && l === "iso-8859-1" && (y = ys(y)), c.indexOf("[]=") > -1 && (y = ds(y) ? [y] : y);
2888
+ var m = Et.call(r, v);
2889
+ m && n.duplicates === "combine" ? r[v] = ce.combine(r[v], y) : (!m || n.duplicates === "last") && (r[v] = y);
2890
+ }
2891
+ return r;
2892
+ }, vs = function(t, e, n, r) {
2893
+ for (var o = r ? e : dn(e, n), a = t.length - 1; a >= 0; --a) {
2894
+ var i, s = t[a];
2895
+ if (s === "[]" && n.parseArrays)
2896
+ i = n.allowEmptyArrays && (o === "" || n.strictNullHandling && o === null) ? [] : [].concat(o);
2897
+ else {
2898
+ i = n.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
2899
+ var u = s.charAt(0) === "[" && s.charAt(s.length - 1) === "]" ? s.slice(1, -1) : s, l = n.decodeDotInKeys ? u.replace(/%2E/g, ".") : u, c = parseInt(l, 10);
2900
+ !n.parseArrays && l === "" ? i = { 0: o } : !isNaN(c) && s !== l && String(c) === l && c >= 0 && n.parseArrays && c <= n.arrayLimit ? (i = [], i[c] = o) : l !== "__proto__" && (i[l] = o);
2901
+ }
2902
+ o = i;
2903
+ }
2904
+ return o;
2905
+ }, bs = function(e, n, r, o) {
2906
+ if (e) {
2907
+ var a = r.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, i = /(\[[^[\]]*])/, s = /(\[[^[\]]*])/g, u = r.depth > 0 && i.exec(a), l = u ? a.slice(0, u.index) : a, c = [];
2908
+ if (l) {
2909
+ if (!r.plainObjects && Et.call(Object.prototype, l) && !r.allowPrototypes)
2910
+ return;
2911
+ c.push(l);
2912
+ }
2913
+ for (var p = 0; r.depth > 0 && (u = s.exec(a)) !== null && p < r.depth; ) {
2914
+ if (p += 1, !r.plainObjects && Et.call(Object.prototype, u[1].slice(1, -1)) && !r.allowPrototypes)
2915
+ return;
2916
+ c.push(u[1]);
2917
+ }
2918
+ if (u) {
2919
+ if (r.strictDepth === !0)
2920
+ throw new RangeError("Input depth exceeded depth option of " + r.depth + " and strictDepth is true");
2921
+ c.push("[" + a.slice(u.index) + "]");
2922
+ }
2923
+ return vs(c, n, r, o);
2924
+ }
2925
+ }, ws = function(e) {
2926
+ if (!e)
2927
+ return O;
2928
+ if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
2929
+ throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
2930
+ if (typeof e.decodeDotInKeys < "u" && typeof e.decodeDotInKeys != "boolean")
2931
+ throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");
2932
+ if (e.decoder !== null && typeof e.decoder < "u" && typeof e.decoder != "function")
2933
+ throw new TypeError("Decoder has to be a function.");
2934
+ if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
2935
+ throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
2936
+ var n = typeof e.charset > "u" ? O.charset : e.charset, r = typeof e.duplicates > "u" ? O.duplicates : e.duplicates;
2937
+ if (r !== "combine" && r !== "first" && r !== "last")
2938
+ throw new TypeError("The duplicates option must be either combine, first, or last");
2939
+ var o = typeof e.allowDots > "u" ? e.decodeDotInKeys === !0 ? !0 : O.allowDots : !!e.allowDots;
2940
+ return {
2941
+ allowDots: o,
2942
+ allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : O.allowEmptyArrays,
2943
+ allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes : O.allowPrototypes,
2944
+ allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse : O.allowSparse,
2945
+ arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit : O.arrayLimit,
2946
+ charset: n,
2947
+ charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : O.charsetSentinel,
2948
+ comma: typeof e.comma == "boolean" ? e.comma : O.comma,
2949
+ decodeDotInKeys: typeof e.decodeDotInKeys == "boolean" ? e.decodeDotInKeys : O.decodeDotInKeys,
2950
+ decoder: typeof e.decoder == "function" ? e.decoder : O.decoder,
2951
+ delimiter: typeof e.delimiter == "string" || ce.isRegExp(e.delimiter) ? e.delimiter : O.delimiter,
2952
+ // eslint-disable-next-line no-implicit-coercion, no-extra-parens
2953
+ depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth : O.depth,
2954
+ duplicates: r,
2955
+ ignoreQueryPrefix: e.ignoreQueryPrefix === !0,
2956
+ interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities : O.interpretNumericEntities,
2957
+ parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit : O.parameterLimit,
2958
+ parseArrays: e.parseArrays !== !1,
2959
+ plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects : O.plainObjects,
2960
+ strictDepth: typeof e.strictDepth == "boolean" ? !!e.strictDepth : O.strictDepth,
2961
+ strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : O.strictNullHandling
2962
+ };
2963
+ }, Ss = function(t, e) {
2964
+ var n = ws(e);
2965
+ if (t === "" || t === null || typeof t > "u")
2966
+ return n.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
2967
+ for (var r = typeof t == "string" ? gs(t, n) : t, o = n.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, a = Object.keys(r), i = 0; i < a.length; ++i) {
2968
+ var s = a[i], u = bs(s, r[s], n, typeof t == "string");
2969
+ o = ce.merge(o, u, n);
2970
+ }
2971
+ return n.allowSparse === !0 ? o : ce.compact(o);
2972
+ }, Es = ps, As = Ss, Os = Bt, Rs = {
2973
+ formats: Os,
2974
+ parse: As,
2975
+ stringify: Es
2976
+ };
2977
+ const Ps = /* @__PURE__ */ ia(Rs);
2978
+ /*! js-cookie v3.0.5 | MIT */
2979
+ function Fe(t) {
2980
+ for (var e = 1; e < arguments.length; e++) {
2981
+ var n = arguments[e];
2982
+ for (var r in n)
2983
+ t[r] = n[r];
2984
+ }
2985
+ return t;
2986
+ }
2987
+ var Ts = {
2988
+ read: function(t) {
2989
+ return t[0] === '"' && (t = t.slice(1, -1)), t.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
2990
+ },
2991
+ write: function(t) {
2992
+ return encodeURIComponent(t).replace(
2993
+ /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
2994
+ decodeURIComponent
2995
+ );
2996
+ }
2997
+ };
2998
+ function At(t, e) {
2999
+ function n(o, a, i) {
3000
+ if (!(typeof document > "u")) {
3001
+ i = Fe({}, e, i), typeof i.expires == "number" && (i.expires = new Date(Date.now() + i.expires * 864e5)), i.expires && (i.expires = i.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
3002
+ var s = "";
3003
+ for (var u in i)
3004
+ i[u] && (s += "; " + u, i[u] !== !0 && (s += "=" + i[u].split(";")[0]));
3005
+ return document.cookie = o + "=" + t.write(a, o) + s;
3006
+ }
3007
+ }
3008
+ function r(o) {
3009
+ if (!(typeof document > "u" || arguments.length && !o)) {
3010
+ for (var a = document.cookie ? document.cookie.split("; ") : [], i = {}, s = 0; s < a.length; s++) {
3011
+ var u = a[s].split("="), l = u.slice(1).join("=");
3012
+ try {
3013
+ var c = decodeURIComponent(u[0]);
3014
+ if (i[c] = t.read(l, c), o === c)
3015
+ break;
3016
+ } catch {
3017
+ }
3018
+ }
3019
+ return o ? i[o] : i;
3020
+ }
3021
+ }
3022
+ return Object.create(
3023
+ {
3024
+ set: n,
3025
+ get: r,
3026
+ remove: function(o, a) {
3027
+ n(
3028
+ o,
3029
+ "",
3030
+ Fe({}, a, {
3031
+ expires: -1
3032
+ })
3033
+ );
3034
+ },
3035
+ withAttributes: function(o) {
3036
+ return At(this.converter, Fe({}, this.attributes, o));
3037
+ },
3038
+ withConverter: function(o) {
3039
+ return At(Fe({}, this.converter, o), this.attributes);
3040
+ }
3041
+ },
3042
+ {
3043
+ attributes: { value: Object.freeze(e) },
3044
+ converter: { value: Object.freeze(t) }
3045
+ }
3046
+ );
3047
+ }
3048
+ var xs = At(Ts, { path: "/" });
3049
+ Ot.extend(Rn);
3050
+ Ot.extend(Pn);
3051
+ const yn = Er(), hn = yn.sso ?? !0, mn = yn.noRedireLogin ?? !1, gn = () => {
3052
+ if (mn) return;
3053
+ const t = "/login";
3054
+ location.pathname !== t && (sessionStorage.clear(), window.__isAutoCloseApp = !1, location.replace(t));
3055
+ }, Fs = async (t) => {
3056
+ var n;
3057
+ return ((n = t.config) == null ? void 0 : n.responseType) === "blob" ? t : t.data ?? t;
3058
+ }, Cs = async (t, e) => {
3059
+ var u, l, c, p, d;
3060
+ let n = ((u = t.response) == null ? void 0 : u.status) || 500, r = (l = t.response) == null ? void 0 : l.message, o = {};
3061
+ const a = { 400: re("参数校验错误"), 404: re("接口地址未找到"), 500: re("服务器内部错误") };
3062
+ let i = ((c = t == null ? void 0 : t.response) == null ? void 0 : c.data) || {};
3063
+ return !(Sn("code") || "") && !mn && (n === 401 || (i == null ? void 0 : i.code) === 401) ? (hn ? En({ ...An, redirect_uri: On }) : gn(), o = i) : (t.response ? (i instanceof Blob && (i = await new Promise((v) => {
3064
+ const y = new FileReader();
3065
+ y.readAsText(i, "utf-8"), y.onload = () => {
3066
+ try {
3067
+ v(JSON.parse(y.result || "{}"));
3068
+ } catch {
3069
+ v({ code: 400, msg: re("blob解析错误") });
3070
+ }
3071
+ };
3072
+ })), i.code && (n = i.code, r = i.msg || i.message, o = i), r || (r = a[t.response.status] || t.message)) : t.request ? t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = re("网络异常,请检查您的网络情况") : t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = re("请求配置异常"), e != null && e.customErrorMessage && (r = e == null ? void 0 : e.customErrorMessage(r, t)), !(e != null && e.ignoreErrorMessage) && r && ((d = (p = window.DasMessage) == null ? void 0 : p.error) == null || d.call(p, { message: r, showClose: !0 }))), { ...o, code: n, msg: r, error: t };
3073
+ }, Ds = (t, e) => {
3074
+ const n = R.create();
3075
+ return bn(n, async (r) => {
3076
+ const o = Er();
3077
+ if (r.headers || (r.headers = {}), !(r != null && r.public)) {
3078
+ let l = "";
3079
+ if (o.token && (l = o.token), !l) {
3080
+ const c = new URL(location.href).searchParams;
3081
+ l = c.get("token") || c.get("accessToken") || c.get("accesstoken") || "";
3082
+ }
3083
+ hn ? l || (l = await wn(r)) : (l || (l = Fn()), l || gn()), l && !r.headers.Authorization && (r.headers.Authorization = `Bearer ${l}`);
3084
+ }
3085
+ r.baseURL || (r.baseURL = o.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (l) => Ps.stringify(l, { indices: !1 }) }), r.onSuccess || (r.onSuccess = Fs), r.onError || (r.onError = Cs), (r.csrf ?? !1) && (r.headers["csrf-token"] = xs.get("csrf-token"));
3086
+ const s = r.params || {};
3087
+ if (s.project === void 0) {
3088
+ let l = 0;
3089
+ const c = new URL(location.href).searchParams;
3090
+ l = c.get("project") || c.get("projectId") || 0, l || (l = Tn().id ?? 0), (l || l === 0) && (s.project = l);
3091
+ }
3092
+ if (new URL(location.href).pathname.startsWith("/iot/iot") || new URL(location.href).searchParams.get("app") === "iot") {
3093
+ const { instanceInfo: l } = xn();
3094
+ l != null && l.instanceId && (s.instance = l.instanceId);
3095
+ }
3096
+ return r.params = s, r.headers.Timezone = Ot.tz.guess(), r;
3097
+ });
3098
+ }, Ns = "v1", qs = Ds(`/api/space-manage/space-tree/${Ns}`);
3
3099
  export {
4
- r as spaceManage
3100
+ qs as spaceManage
5
3101
  };