@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,13 +1,3109 @@
1
- import { createService as e } from "@das-fed/utils/create-api-service";
2
- const o = "v1", p = e(`/api/customer/customer/${o}`), c = e(`/api/customer/company/${o}`), r = e(`/api/customer/customer-grade/${o}`), s = e(`/api/customer/customer-type/${o}`), a = {
3
- list: e(`/api/project/${o}/list`),
4
- app: e(`/api/project/${o}/app`),
5
- people: e(`/api/project/${o}/people`)
1
+ import { t as oe } from "@das-fed/web/packages/i18n/index";
2
+ import { curringHttp as Sn } from "@das-fed/utils/curring-http";
3
+ import { getToken as En, getQuery as An, login as On, getTokenParams as Rn, real_uri as Pn } from "@das-fed/utils/create-api-service/sso";
4
+ import Pt from "dayjs";
5
+ import Tn from "dayjs/plugin/utc";
6
+ import xn from "dayjs/plugin/timezone";
7
+ import { getProjectInfo as Fn, getInstanceInfo as Cn } from "@das-fed/utils/common-info";
8
+ import { getAccessToken as Dn } from "@das-fed/utils/token-tools";
9
+ import { getConfig as Or } from "@das-fed/utils/config";
10
+ function Rr(t, e) {
11
+ return function() {
12
+ return t.apply(e, arguments);
13
+ };
14
+ }
15
+ const { toString: Nn } = Object.prototype, { getPrototypeOf: Tt } = Object, qe = /* @__PURE__ */ ((t) => (e) => {
16
+ const n = Nn.call(e);
17
+ return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
18
+ })(/* @__PURE__ */ Object.create(null)), B = (t) => (t = t.toLowerCase(), (e) => qe(e) === t), He = (t) => (e) => typeof e === t, { isArray: pe } = Array, Ee = He("undefined");
19
+ function In(t) {
20
+ return t !== null && !Ee(t) && t.constructor !== null && !Ee(t.constructor) && _(t.constructor.isBuffer) && t.constructor.isBuffer(t);
21
+ }
22
+ const Pr = B("ArrayBuffer");
23
+ function _n(t) {
24
+ let e;
25
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Pr(t.buffer), e;
26
+ }
27
+ const $n = He("string"), _ = He("function"), Tr = He("number"), We = (t) => t !== null && typeof t == "object", Bn = (t) => t === !0 || t === !1, Ne = (t) => {
28
+ if (qe(t) !== "object")
29
+ return !1;
30
+ const e = Tt(t);
31
+ return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
32
+ }, Un = B("Date"), Ln = B("File"), Mn = B("Blob"), kn = B("FileList"), jn = (t) => We(t) && _(t.pipe), qn = (t) => {
33
+ let e;
34
+ return t && (typeof FormData == "function" && t instanceof FormData || _(t.append) && ((e = qe(t)) === "formdata" || // detect form-data instance
35
+ e === "object" && _(t.toString) && t.toString() === "[object FormData]"));
36
+ }, Hn = B("URLSearchParams"), [Wn, zn, Gn, Jn] = ["ReadableStream", "Request", "Response", "Headers"].map(B), Kn = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
37
+ function Ae(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]), pe(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 xr(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, Fr = (t) => !Ee(t) && t !== Q;
61
+ function ft() {
62
+ const { caseless: t } = Fr(this) && this || {}, e = {}, n = (r, o) => {
63
+ const a = t && xr(e, o) || o;
64
+ Ne(e[a]) && Ne(r) ? e[a] = ft(e[a], r) : Ne(r) ? e[a] = ft({}, r) : pe(r) ? e[a] = r.slice() : e[a] = r;
65
+ };
66
+ for (let r = 0, o = arguments.length; r < o; r++)
67
+ arguments[r] && Ae(arguments[r], n);
68
+ return e;
69
+ }
70
+ const Vn = (t, e, n, { allOwnKeys: r } = {}) => (Ae(e, (o, a) => {
71
+ n && _(o) ? t[a] = Rr(o, n) : t[a] = o;
72
+ }, { allOwnKeys: r }), t), Qn = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), Xn = (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
+ }, Zn = (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 && Tt(t);
84
+ } while (t && (!n || n(t, e)) && t !== Object.prototype);
85
+ return e;
86
+ }, Yn = (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
+ }, eo = (t) => {
91
+ if (!t) return null;
92
+ if (pe(t)) return t;
93
+ let e = t.length;
94
+ if (!Tr(e)) return null;
95
+ const n = new Array(e);
96
+ for (; e-- > 0; )
97
+ n[e] = t[e];
98
+ return n;
99
+ }, to = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && Tt(Uint8Array)), ro = (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
+ }, no = (t, e) => {
107
+ let n;
108
+ const r = [];
109
+ for (; (n = t.exec(e)) !== null; )
110
+ r.push(n);
111
+ return r;
112
+ }, oo = B("HTMLFormElement"), ao = (t) => t.toLowerCase().replace(
113
+ /[-_\s]([a-z\d])(\w*)/g,
114
+ function(n, r, o) {
115
+ return r.toUpperCase() + o;
116
+ }
117
+ ), kt = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), io = B("RegExp"), Cr = (t, e) => {
118
+ const n = Object.getOwnPropertyDescriptors(t), r = {};
119
+ Ae(n, (o, a) => {
120
+ let i;
121
+ (i = e(o, a, t)) !== !1 && (r[a] = i || o);
122
+ }), Object.defineProperties(t, r);
123
+ }, so = (t) => {
124
+ Cr(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
+ }, lo = (t, e) => {
139
+ const n = {}, r = (o) => {
140
+ o.forEach((a) => {
141
+ n[a] = !0;
142
+ });
143
+ };
144
+ return pe(t) ? r(t) : r(String(t).split(e)), n;
145
+ }, co = () => {
146
+ }, uo = (t, e) => t != null && Number.isFinite(t = +t) ? t : e, Ve = "abcdefghijklmnopqrstuvwxyz", jt = "0123456789", Dr = {
147
+ DIGIT: jt,
148
+ ALPHA: Ve,
149
+ ALPHA_DIGIT: Ve + Ve.toUpperCase() + jt
150
+ }, fo = (t = 16, e = Dr.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 po(t) {
158
+ return !!(t && _(t.append) && t[Symbol.toStringTag] === "FormData" && t[Symbol.iterator]);
159
+ }
160
+ const yo = (t) => {
161
+ const e = new Array(10), n = (r, o) => {
162
+ if (We(r)) {
163
+ if (e.indexOf(r) >= 0)
164
+ return;
165
+ if (!("toJSON" in r)) {
166
+ e[o] = r;
167
+ const a = pe(r) ? [] : {};
168
+ return Ae(r, (i, s) => {
169
+ const u = n(i, o + 1);
170
+ !Ee(u) && (a[s] = u);
171
+ }), e[o] = void 0, a;
172
+ }
173
+ }
174
+ return r;
175
+ };
176
+ return n(t, 0);
177
+ }, ho = B("AsyncFunction"), mo = (t) => t && (We(t) || _(t)) && _(t.then) && _(t.catch), Nr = ((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
+ ), go = typeof queueMicrotask < "u" ? queueMicrotask.bind(Q) : typeof process < "u" && process.nextTick || Nr, f = {
185
+ isArray: pe,
186
+ isArrayBuffer: Pr,
187
+ isBuffer: In,
188
+ isFormData: qn,
189
+ isArrayBufferView: _n,
190
+ isString: $n,
191
+ isNumber: Tr,
192
+ isBoolean: Bn,
193
+ isObject: We,
194
+ isPlainObject: Ne,
195
+ isReadableStream: Wn,
196
+ isRequest: zn,
197
+ isResponse: Gn,
198
+ isHeaders: Jn,
199
+ isUndefined: Ee,
200
+ isDate: Un,
201
+ isFile: Ln,
202
+ isBlob: Mn,
203
+ isRegExp: io,
204
+ isFunction: _,
205
+ isStream: jn,
206
+ isURLSearchParams: Hn,
207
+ isTypedArray: to,
208
+ isFileList: kn,
209
+ forEach: Ae,
210
+ merge: ft,
211
+ extend: Vn,
212
+ trim: Kn,
213
+ stripBOM: Qn,
214
+ inherits: Xn,
215
+ toFlatObject: Zn,
216
+ kindOf: qe,
217
+ kindOfTest: B,
218
+ endsWith: Yn,
219
+ toArray: eo,
220
+ forEachEntry: ro,
221
+ matchAll: no,
222
+ isHTMLForm: oo,
223
+ hasOwnProperty: kt,
224
+ hasOwnProp: kt,
225
+ // an alias to avoid ESLint no-prototype-builtins detection
226
+ reduceDescriptors: Cr,
227
+ freezeMethods: so,
228
+ toObjectSet: lo,
229
+ toCamelCase: ao,
230
+ noop: co,
231
+ toFiniteNumber: uo,
232
+ findKey: xr,
233
+ global: Q,
234
+ isContextDefined: Fr,
235
+ ALPHABET: Dr,
236
+ generateString: fo,
237
+ isSpecCompliantForm: po,
238
+ toJSONObject: yo,
239
+ isAsyncFn: ho,
240
+ isThenable: mo,
241
+ setImmediate: Nr,
242
+ asap: go
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 Ir = b.prototype, _r = {};
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
+ _r[t] = { value: t };
285
+ });
286
+ Object.defineProperties(b, _r);
287
+ Object.defineProperty(Ir, "isAxiosError", { value: !0 });
288
+ b.from = (t, e, n, r, o, a) => {
289
+ const i = Object.create(Ir);
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 vo = null;
295
+ function pt(t) {
296
+ return f.isPlainObject(t) || f.isArray(t);
297
+ }
298
+ function $r(t) {
299
+ return f.endsWith(t, "[]") ? t.slice(0, -2) : t;
300
+ }
301
+ function qt(t, e, n) {
302
+ return t ? t.concat(e).map(function(o, a) {
303
+ return o = $r(o), !n && a ? "[" + o + "]" : o;
304
+ }).join(n ? "." : "") : e;
305
+ }
306
+ function bo(t) {
307
+ return f.isArray(t) && !t.some(pt);
308
+ }
309
+ const wo = f.toFlatObject(f, {}, null, function(e) {
310
+ return /^is[A-Z]/.test(e);
311
+ });
312
+ function ze(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) && bo(y) || (f.isFileList(y) || f.endsWith(m, "[]")) && (S = f.toArray(y)))
339
+ return m = $r(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 ? qt([m], T, a) : i === null ? m : m + "[]",
343
+ l(g)
344
+ );
345
+ }), !1;
346
+ }
347
+ return pt(y) ? !0 : (e.append(qt(h, m, a), l(y)), !1);
348
+ }
349
+ const p = [], d = Object.assign(wo, {
350
+ defaultVisitor: c,
351
+ convertValue: l,
352
+ isVisitable: pt
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 Ht(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 xt(t, e) {
388
+ this._pairs = [], t && ze(t, this, e);
389
+ }
390
+ const Br = xt.prototype;
391
+ Br.append = function(e, n) {
392
+ this._pairs.push([e, n]);
393
+ };
394
+ Br.toString = function(e) {
395
+ const n = e ? function(r) {
396
+ return e.call(this, r, Ht);
397
+ } : Ht;
398
+ return this._pairs.map(function(o) {
399
+ return n(o[0]) + "=" + n(o[1]);
400
+ }, "").join("&");
401
+ };
402
+ function So(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 Ur(t, e, n) {
406
+ if (!e)
407
+ return t;
408
+ const r = n && n.encode || So, o = n && n.serialize;
409
+ let a;
410
+ if (o ? a = o(e, n) : a = f.isURLSearchParams(e) ? e.toString() : new xt(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 Wt {
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 Lr = {
471
+ silentJSONParsing: !0,
472
+ forcedJSONParsing: !0,
473
+ clarifyTimeoutError: !1
474
+ }, Eo = typeof URLSearchParams < "u" ? URLSearchParams : xt, Ao = typeof FormData < "u" ? FormData : null, Oo = typeof Blob < "u" ? Blob : null, Ro = {
475
+ isBrowser: !0,
476
+ classes: {
477
+ URLSearchParams: Eo,
478
+ FormData: Ao,
479
+ Blob: Oo
480
+ },
481
+ protocols: ["http", "https", "file", "blob", "url", "data"]
482
+ }, Ft = typeof window < "u" && typeof document < "u", dt = typeof navigator == "object" && navigator || void 0, Po = Ft && (!dt || ["ReactNative", "NativeScript", "NS"].indexOf(dt.product) < 0), To = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
483
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", xo = Ft && window.location.href || "http://localhost", Fo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
484
+ __proto__: null,
485
+ hasBrowserEnv: Ft,
486
+ hasStandardBrowserEnv: Po,
487
+ hasStandardBrowserWebWorkerEnv: To,
488
+ navigator: dt,
489
+ origin: xo
490
+ }, Symbol.toStringTag, { value: "Module" })), N = {
491
+ ...Fo,
492
+ ...Ro
493
+ };
494
+ function Co(t, e) {
495
+ return ze(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 Do(t) {
502
+ return f.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
503
+ }
504
+ function No(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 Mr(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] = No(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(Do(r), o, n, 0);
524
+ }), n;
525
+ }
526
+ return null;
527
+ }
528
+ function Io(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 Oe = {
539
+ transitional: Lr,
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(Mr(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 Co(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 ze(
558
+ s ? { "files[]": e } : e,
559
+ u && new u(),
560
+ this.formSerializer
561
+ );
562
+ }
563
+ }
564
+ return a || o ? (n.setContentType("application/json", !1), Io(e)) : e;
565
+ }],
566
+ transformResponse: [function(e) {
567
+ const n = this.transitional || Oe.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
+ Oe.headers[t] = {};
606
+ });
607
+ const _o = 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
+ ]), $o = (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] && _o[n]) && (n === "set-cookie" ? e[n] ? e[n].push(r) : e[n] = [r] : e[n] = e[n] ? e[n] + ", " + r : r);
631
+ }), e;
632
+ }, zt = Symbol("internals");
633
+ function ge(t) {
634
+ return t && String(t).trim().toLowerCase();
635
+ }
636
+ function Ie(t) {
637
+ return t === !1 || t == null ? t : f.isArray(t) ? t.map(Ie) : String(t);
638
+ }
639
+ function Bo(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 Uo = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
647
+ function Qe(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 Lo(t) {
658
+ return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, n, r) => n.toUpperCase() + r);
659
+ }
660
+ function Mo(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 = ge(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] = Ie(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()) && !Uo(e))
688
+ i($o(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 = ge(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 Bo(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 = ge(e), e) {
715
+ const r = f.findKey(this, e);
716
+ return !!(r && this[r] !== void 0 && (!n || Qe(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 = ge(i), i) {
725
+ const s = f.findKey(r, i);
726
+ s && (!n || Qe(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 || Qe(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] = Ie(o), delete n[a];
746
+ return;
747
+ }
748
+ const s = e ? Lo(a) : String(a).trim();
749
+ s !== a && delete n[a], n[s] = Ie(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[zt] = this[zt] = {
780
+ accessors: {}
781
+ }).accessors, o = this.prototype;
782
+ function a(i) {
783
+ const s = ge(i);
784
+ r[s] || (Mo(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 Xe(t, e) {
801
+ const n = this || Oe, 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 kr(t) {
808
+ return !!(t && t.__CANCEL__);
809
+ }
810
+ function de(t, e, n) {
811
+ b.call(this, t ?? "canceled", b.ERR_CANCELED, e, n), this.name = "CanceledError";
812
+ }
813
+ f.inherits(de, b, {
814
+ __CANCEL__: !0
815
+ });
816
+ function jr(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 ko(t) {
827
+ const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
828
+ return e && e[1] || "";
829
+ }
830
+ function jo(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 qo(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 Be = (t, e, n = 3) => {
859
+ let r = 0;
860
+ const o = jo(50, 250);
861
+ return qo((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
+ }, Gt = (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
+ }, Jt = (t) => (...e) => f.asap(() => t(...e)), Ho = 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
+ ), Wo = 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 zo(t) {
943
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
944
+ }
945
+ function Go(t, e) {
946
+ return e ? t.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : t;
947
+ }
948
+ function qr(t, e) {
949
+ return t && !zo(e) ? Go(t, e) : e;
950
+ }
951
+ const Kt = (t) => t instanceof I ? { ...t } : t;
952
+ function re(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(Kt(l), Kt(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 Hr = (t) => {
1017
+ const e = re({}, 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 = Ur(qr(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 && Ho(e.url))) {
1033
+ const l = o && a && Wo.read(a);
1034
+ l && i.set(o, l);
1035
+ }
1036
+ return e;
1037
+ }, Jo = typeof XMLHttpRequest < "u", Ko = Jo && function(t) {
1038
+ return new Promise(function(n, r) {
1039
+ const o = Hr(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
+ jr(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 || Lr;
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] = Be(l, !0), h.addEventListener("progress", d)), u && h.upload && ([p, v] = Be(u), h.upload.addEventListener("progress", p), h.upload.addEventListener("loadend", v)), (o.cancelToken || o.signal) && (c = (g) => {
1085
+ h && (r(!g || g.type ? new de(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 = ko(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
+ }, Vo = (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 de(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
+ }, Qo = 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
+ }, Xo = async function* (t, e) {
1127
+ for await (const n of Zo(t))
1128
+ yield* Qo(n, e);
1129
+ }, Zo = 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
+ }, Vt = (t, e, n, r) => {
1146
+ const o = Xo(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
+ }, Ge = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Wr = Ge && typeof ReadableStream == "function", Yo = Ge && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((t) => (e) => t.encode(e))(new TextEncoder()) : async (t) => new Uint8Array(await new Response(t).arrayBuffer())), zr = (t, ...e) => {
1175
+ try {
1176
+ return !!t(...e);
1177
+ } catch {
1178
+ return !1;
1179
+ }
1180
+ }, ea = Wr && zr(() => {
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
+ }), Qt = 64 * 1024, yt = Wr && zr(() => f.isReadableStream(new Response("").body)), Ue = {
1191
+ stream: yt && ((t) => t.body)
1192
+ };
1193
+ Ge && ((t) => {
1194
+ ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((e) => {
1195
+ !Ue[e] && (Ue[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 ta = 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 Yo(t)).byteLength;
1214
+ }, ra = async (t, e) => {
1215
+ const n = f.toFiniteNumber(t.getContentLength());
1216
+ return n ?? ta(e);
1217
+ }, na = Ge && (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
+ } = Hr(t);
1232
+ l = l ? (l + "").toLowerCase() : "text";
1233
+ let v = Vo([o, a && a.toAbortSignal()], i), y;
1234
+ const m = v && v.unsubscribe && (() => {
1235
+ v.unsubscribe();
1236
+ });
1237
+ let h;
1238
+ try {
1239
+ if (u && ea && n !== "get" && n !== "head" && (h = await ra(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] = Gt(
1247
+ h,
1248
+ Be(Jt(u))
1249
+ );
1250
+ r = Vt(A.body, Qt, 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 = yt && (l === "stream" || l === "response");
1266
+ if (yt && (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 && Gt(
1272
+ C,
1273
+ Be(Jt(s), !0)
1274
+ ) || [];
1275
+ E = new Response(
1276
+ Vt(E.body, Qt, D, () => {
1277
+ j && j(), m && m();
1278
+ }),
1279
+ A
1280
+ );
1281
+ }
1282
+ l = l || "text";
1283
+ let T = await Ue[f.findKey(Ue, l) || "text"](E, t);
1284
+ return !g && m && m(), await new Promise((A, C) => {
1285
+ jr(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
+ }), ht = {
1303
+ http: vo,
1304
+ xhr: Ko,
1305
+ fetch: na
1306
+ };
1307
+ f.forEach(ht, (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 Xt = (t) => `- ${t}`, oa = (t) => f.isFunction(t) || t === null || t === !1, Gr = {
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, !oa(n) && (r = ht[(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(Xt).join(`
1337
+ `) : " " + Xt(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: ht
1346
+ };
1347
+ function Ze(t) {
1348
+ if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
1349
+ throw new de(null, t);
1350
+ }
1351
+ function Zt(t) {
1352
+ return Ze(t), t.headers = I.from(t.headers), t.data = Xe.call(
1353
+ t,
1354
+ t.transformRequest
1355
+ ), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), Gr.getAdapter(t.adapter || Oe.adapter)(t).then(function(r) {
1356
+ return Ze(t), r.data = Xe.call(
1357
+ t,
1358
+ t.transformResponse,
1359
+ r
1360
+ ), r.headers = I.from(r.headers), r;
1361
+ }, function(r) {
1362
+ return kr(r) || (Ze(t), r && r.response && (r.response.data = Xe.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 Jr = "1.7.7", Ct = {};
1370
+ ["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
1371
+ Ct[t] = function(r) {
1372
+ return typeof r === t || "a" + (e < 1 ? "n " : " ") + t;
1373
+ };
1374
+ });
1375
+ const Yt = {};
1376
+ Ct.transitional = function(e, n, r) {
1377
+ function o(a, i) {
1378
+ return "[Axios v" + Jr + "] 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 && !Yt[i] && (Yt[i] = !0), e ? e(a, i, s) : !0;
1387
+ };
1388
+ };
1389
+ function aa(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 mt = {
1407
+ assertOptions: aa,
1408
+ validators: Ct
1409
+ }, z = mt.validators;
1410
+ class X {
1411
+ constructor(e) {
1412
+ this.defaults = e, this.interceptors = {
1413
+ request: new Wt(),
1414
+ response: new Wt()
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 = re(this.defaults, n);
1444
+ const { transitional: r, paramsSerializer: o, headers: a } = n;
1445
+ r !== void 0 && mt.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
+ } : mt.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 = [Zt.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 = Zt.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 = re(this.defaults, e);
1503
+ const n = qr(e.baseURL, e.url);
1504
+ return Ur(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(re(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(re(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 Dt {
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 de(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 Dt(function(o) {
1598
+ e = o;
1599
+ }),
1600
+ cancel: e
1601
+ };
1602
+ }
1603
+ }
1604
+ function ia(t) {
1605
+ return function(n) {
1606
+ return t.apply(null, n);
1607
+ };
1608
+ }
1609
+ function sa(t) {
1610
+ return f.isObject(t) && t.isAxiosError === !0;
1611
+ }
1612
+ const gt = {
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(gt).forEach(([t, e]) => {
1678
+ gt[e] = t;
1679
+ });
1680
+ function Kr(t) {
1681
+ const e = new X(t), n = Rr(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 Kr(re(t, o));
1684
+ }, n;
1685
+ }
1686
+ const R = Kr(Oe);
1687
+ R.Axios = X;
1688
+ R.CanceledError = de;
1689
+ R.CancelToken = Dt;
1690
+ R.isCancel = kr;
1691
+ R.VERSION = Jr;
1692
+ R.toFormData = ze;
1693
+ R.AxiosError = b;
1694
+ R.Cancel = R.CanceledError;
1695
+ R.all = function(e) {
1696
+ return Promise.all(e);
1697
+ };
1698
+ R.spread = ia;
1699
+ R.isAxiosError = sa;
1700
+ R.mergeConfig = re;
1701
+ R.AxiosHeaders = I;
1702
+ R.formToJSON = (t) => Mr(f.isHTMLForm(t) ? new FormData(t) : t);
1703
+ R.getAdapter = Gr.getAdapter;
1704
+ R.HttpStatusCode = gt;
1705
+ R.default = R;
1706
+ var er = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1707
+ function la(t) {
1708
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
1709
+ }
1710
+ function ca(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 ua = Error, fa = EvalError, pa = RangeError, da = ReferenceError, Vr = SyntaxError, Re = TypeError, ya = URIError, ha = 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
+ }, tr = typeof Symbol < "u" && Symbol, ma = ha, ga = function() {
1753
+ return typeof tr != "function" || typeof Symbol != "function" || typeof tr("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : ma();
1754
+ }, Ye = {
1755
+ __proto__: null,
1756
+ foo: {}
1757
+ }, va = Object, ba = function() {
1758
+ return { __proto__: Ye }.foo === Ye.foo && !(Ye instanceof va);
1759
+ }, wa = "Function.prototype.bind called on incompatible ", Sa = Object.prototype.toString, Ea = Math.max, Aa = "[object Function]", rr = 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
+ }, Oa = 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
+ }, Ra = 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
+ }, Pa = function(e) {
1774
+ var n = this;
1775
+ if (typeof n != "function" || Sa.apply(n) !== Aa)
1776
+ throw new TypeError(wa + n);
1777
+ for (var r = Oa(arguments, 1), o, a = function() {
1778
+ if (this instanceof o) {
1779
+ var c = n.apply(
1780
+ this,
1781
+ rr(r, arguments)
1782
+ );
1783
+ return Object(c) === c ? c : this;
1784
+ }
1785
+ return n.apply(
1786
+ e,
1787
+ rr(r, arguments)
1788
+ );
1789
+ }, i = Ea(0, n.length - r.length), s = [], u = 0; u < i; u++)
1790
+ s[u] = "$" + u;
1791
+ if (o = Function("binder", "return function (" + Ra(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
+ }, Ta = Pa, Nt = Function.prototype.bind || Ta, xa = Function.prototype.call, Fa = Object.prototype.hasOwnProperty, Ca = Nt, Da = Ca.call(xa, Fa), w, Na = ua, Ia = fa, _a = pa, $a = da, ce = Vr, le = Re, Ba = ya, Qr = Function, et = function(t) {
1798
+ try {
1799
+ return Qr('"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 tt = function() {
1810
+ throw new le();
1811
+ }, Ua = Z ? function() {
1812
+ try {
1813
+ return arguments.callee, tt;
1814
+ } catch {
1815
+ try {
1816
+ return Z(arguments, "callee").get;
1817
+ } catch {
1818
+ return tt;
1819
+ }
1820
+ }
1821
+ }() : tt, ae = ga(), La = ba(), x = Object.getPrototypeOf || (La ? function(t) {
1822
+ return t.__proto__;
1823
+ } : null), se = {}, Ma = 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%": ae && x ? x([][Symbol.iterator]()) : w,
1829
+ "%AsyncFromSyncIteratorPrototype%": w,
1830
+ "%AsyncFunction%": se,
1831
+ "%AsyncGenerator%": se,
1832
+ "%AsyncGeneratorFunction%": se,
1833
+ "%AsyncIteratorPrototype%": se,
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%": Na,
1846
+ "%eval%": eval,
1847
+ // eslint-disable-line no-eval
1848
+ "%EvalError%": Ia,
1849
+ "%Float32Array%": typeof Float32Array > "u" ? w : Float32Array,
1850
+ "%Float64Array%": typeof Float64Array > "u" ? w : Float64Array,
1851
+ "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? w : FinalizationRegistry,
1852
+ "%Function%": Qr,
1853
+ "%GeneratorFunction%": se,
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%": ae && 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" || !ae || !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%": _a,
1871
+ "%ReferenceError%": $a,
1872
+ "%Reflect%": typeof Reflect > "u" ? w : Reflect,
1873
+ "%RegExp%": RegExp,
1874
+ "%Set%": typeof Set > "u" ? w : Set,
1875
+ "%SetIteratorPrototype%": typeof Set > "u" || !ae || !x ? w : x((/* @__PURE__ */ new Set())[Symbol.iterator]()),
1876
+ "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? w : SharedArrayBuffer,
1877
+ "%String%": String,
1878
+ "%StringIteratorPrototype%": ae && x ? x(""[Symbol.iterator]()) : w,
1879
+ "%Symbol%": ae ? Symbol : w,
1880
+ "%SyntaxError%": ce,
1881
+ "%ThrowTypeError%": Ua,
1882
+ "%TypedArray%": Ma,
1883
+ "%TypeError%": le,
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%": Ba,
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 ka = x(x(t));
1898
+ Y["%Error.prototype%"] = ka;
1899
+ }
1900
+ var ja = function t(e) {
1901
+ var n;
1902
+ if (e === "%AsyncFunction%")
1903
+ n = et("async function () {}");
1904
+ else if (e === "%GeneratorFunction%")
1905
+ n = et("function* () {}");
1906
+ else if (e === "%AsyncGeneratorFunction%")
1907
+ n = et("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
+ }, nr = {
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
+ }, Pe = Nt, Le = Da, qa = Pe.call(Function.call, Array.prototype.concat), Ha = Pe.call(Function.apply, Array.prototype.splice), or = Pe.call(Function.call, String.prototype.replace), Me = Pe.call(Function.call, String.prototype.slice), Wa = Pe.call(Function.call, RegExp.prototype.exec), za = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Ga = /\\(\\)?/g, Ja = function(e) {
1970
+ var n = Me(e, 0, 1), r = Me(e, -1);
1971
+ if (n === "%" && r !== "%")
1972
+ throw new ce("invalid intrinsic syntax, expected closing `%`");
1973
+ if (r === "%" && n !== "%")
1974
+ throw new ce("invalid intrinsic syntax, expected opening `%`");
1975
+ var o = [];
1976
+ return or(e, za, function(a, i, s, u) {
1977
+ o[o.length] = s ? or(u, Ga, "$1") : i || a;
1978
+ }), o;
1979
+ }, Ka = function(e, n) {
1980
+ var r = e, o;
1981
+ if (Le(nr, r) && (o = nr[r], r = "%" + o[0] + "%"), Le(Y, r)) {
1982
+ var a = Y[r];
1983
+ if (a === se && (a = ja(r)), typeof a > "u" && !n)
1984
+ throw new le("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 ce("intrinsic " + e + " does not exist!");
1992
+ }, ye = function(e, n) {
1993
+ if (typeof e != "string" || e.length === 0)
1994
+ throw new le("intrinsic name must be a non-empty string");
1995
+ if (arguments.length > 1 && typeof n != "boolean")
1996
+ throw new le('"allowMissing" argument must be a boolean');
1997
+ if (Wa(/^%?[^%]*%?$/, e) === null)
1998
+ throw new ce("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
1999
+ var r = Ja(e), o = r.length > 0 ? r[0] : "", a = Ka("%" + o + "%", n), i = a.name, s = a.value, u = !1, l = a.alias;
2000
+ l && (o = l[0], Ha(r, qa([0, 1], l)));
2001
+ for (var c = 1, p = !0; c < r.length; c += 1) {
2002
+ var d = r[c], v = Me(d, 0, 1), y = Me(d, -1);
2003
+ if ((v === '"' || v === "'" || v === "`" || y === '"' || y === "'" || y === "`") && v !== y)
2004
+ throw new ce("property names with quotes must have matching quotes");
2005
+ if ((d === "constructor" || !p) && (u = !0), o += "." + d, i = "%" + o + "%", Le(Y, i))
2006
+ s = Y[i];
2007
+ else if (s != null) {
2008
+ if (!(d in s)) {
2009
+ if (!n)
2010
+ throw new le("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 = Le(s, d), s = s[d];
2018
+ p && !u && (Y[i] = s);
2019
+ }
2020
+ }
2021
+ return s;
2022
+ }, Xr = { exports: {} }, rt, ar;
2023
+ function It() {
2024
+ if (ar) return rt;
2025
+ ar = 1;
2026
+ var t = ye, e = t("%Object.defineProperty%", !0) || !1;
2027
+ if (e)
2028
+ try {
2029
+ e({}, "a", { value: 1 });
2030
+ } catch {
2031
+ e = !1;
2032
+ }
2033
+ return rt = e, rt;
2034
+ }
2035
+ var Va = ye, _e = Va("%Object.getOwnPropertyDescriptor%", !0);
2036
+ if (_e)
2037
+ try {
2038
+ _e([], "length");
2039
+ } catch {
2040
+ _e = null;
2041
+ }
2042
+ var Zr = _e, ir = It(), Qa = Vr, ie = Re, sr = Zr, Xa = function(e, n, r) {
2043
+ if (!e || typeof e != "object" && typeof e != "function")
2044
+ throw new ie("`obj` must be an object or a function`");
2045
+ if (typeof n != "string" && typeof n != "symbol")
2046
+ throw new ie("`property` must be a string or a symbol`");
2047
+ if (arguments.length > 3 && typeof arguments[3] != "boolean" && arguments[3] !== null)
2048
+ throw new ie("`nonEnumerable`, if provided, must be a boolean or null");
2049
+ if (arguments.length > 4 && typeof arguments[4] != "boolean" && arguments[4] !== null)
2050
+ throw new ie("`nonWritable`, if provided, must be a boolean or null");
2051
+ if (arguments.length > 5 && typeof arguments[5] != "boolean" && arguments[5] !== null)
2052
+ throw new ie("`nonConfigurable`, if provided, must be a boolean or null");
2053
+ if (arguments.length > 6 && typeof arguments[6] != "boolean")
2054
+ throw new ie("`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 = !!sr && sr(e, n);
2056
+ if (ir)
2057
+ ir(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 Qa("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
2067
+ }, vt = It(), Yr = function() {
2068
+ return !!vt;
2069
+ };
2070
+ Yr.hasArrayLengthDefineBug = function() {
2071
+ if (!vt)
2072
+ return null;
2073
+ try {
2074
+ return vt([], "length", { value: 1 }).length !== 1;
2075
+ } catch {
2076
+ return !0;
2077
+ }
2078
+ };
2079
+ var Za = Yr, Ya = ye, lr = Xa, ei = Za(), cr = Zr, ur = Re, ti = Ya("%Math.floor%"), ri = function(e, n) {
2080
+ if (typeof e != "function")
2081
+ throw new ur("`fn` is not a function");
2082
+ if (typeof n != "number" || n < 0 || n > 4294967295 || ti(n) !== n)
2083
+ throw new ur("`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 && cr) {
2086
+ var i = cr(e, "length");
2087
+ i && !i.configurable && (o = !1), i && !i.writable && (a = !1);
2088
+ }
2089
+ return (o || a || !r) && (ei ? lr(
2090
+ /** @type {Parameters<define>[0]} */
2091
+ e,
2092
+ "length",
2093
+ n,
2094
+ !0,
2095
+ !0
2096
+ ) : lr(
2097
+ /** @type {Parameters<define>[0]} */
2098
+ e,
2099
+ "length",
2100
+ n
2101
+ )), e;
2102
+ };
2103
+ (function(t) {
2104
+ var e = Nt, n = ye, r = ri, o = Re, a = n("%Function.prototype.apply%"), i = n("%Function.prototype.call%"), s = n("%Reflect.apply%", !0) || e.call(i, a), u = It(), 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
+ })(Xr);
2120
+ var ni = Xr.exports, en = ye, tn = ni, oi = tn(en("String.prototype.indexOf")), ai = function(e, n) {
2121
+ var r = en(e, !!n);
2122
+ return typeof r == "function" && oi(e, ".prototype.") > -1 ? tn(r) : r;
2123
+ };
2124
+ const ii = {}, si = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2125
+ __proto__: null,
2126
+ default: ii
2127
+ }, Symbol.toStringTag, { value: "Module" })), li = /* @__PURE__ */ ca(si);
2128
+ var _t = typeof Map == "function" && Map.prototype, nt = Object.getOwnPropertyDescriptor && _t ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, ke = _t && nt && typeof nt.get == "function" ? nt.get : null, fr = _t && Map.prototype.forEach, $t = typeof Set == "function" && Set.prototype, ot = Object.getOwnPropertyDescriptor && $t ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, je = $t && ot && typeof ot.get == "function" ? ot.get : null, pr = $t && Set.prototype.forEach, ci = typeof WeakMap == "function" && WeakMap.prototype, be = ci ? WeakMap.prototype.has : null, ui = typeof WeakSet == "function" && WeakSet.prototype, we = ui ? WeakSet.prototype.has : null, fi = typeof WeakRef == "function" && WeakRef.prototype, dr = fi ? WeakRef.prototype.deref : null, pi = Boolean.prototype.valueOf, di = Object.prototype.toString, yi = Function.prototype.toString, hi = String.prototype.match, Bt = String.prototype.slice, J = String.prototype.replace, mi = String.prototype.toUpperCase, yr = String.prototype.toLowerCase, rn = RegExp.prototype.test, hr = Array.prototype.concat, k = Array.prototype.join, gi = Array.prototype.slice, mr = Math.floor, bt = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, at = Object.getOwnPropertySymbols, wt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, ue = typeof Symbol == "function" && typeof Symbol.iterator == "object", F = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === ue || !0) ? Symbol.toStringTag : null, nn = Object.prototype.propertyIsEnumerable, gr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
2129
+ return t.__proto__;
2130
+ } : null);
2131
+ function vr(t, e) {
2132
+ if (t === 1 / 0 || t === -1 / 0 || t !== t || t && t > -1e3 && t < 1e3 || rn.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 ? -mr(-t) : mr(t);
2137
+ if (r !== t) {
2138
+ var o = String(r), a = Bt.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 St = li, br = St.custom, wr = an(br) ? br : null, vi = 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 ln(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 ? vr(e, u) : u;
2171
+ }
2172
+ if (typeof e == "bigint") {
2173
+ var l = String(e) + "n";
2174
+ return s ? vr(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 Et(e) ? "[Array]" : "[Object]";
2179
+ var p = Bi(a, r);
2180
+ if (typeof o > "u")
2181
+ o = [];
2182
+ else if (sn(o, e) >= 0)
2183
+ return "[Circular]";
2184
+ function d($, H, W) {
2185
+ if (H && (o = gi.call(o), o.push(H)), W) {
2186
+ var me = {
2187
+ depth: a.depth
2188
+ };
2189
+ return G(a, "quoteStyle") && (me.quoteStyle = a.quoteStyle), t($, me, r + 1, o);
2190
+ }
2191
+ return t($, a, r + 1, o);
2192
+ }
2193
+ if (typeof e == "function" && !Sr(e)) {
2194
+ var v = Ti(e), y = xe(e, d);
2195
+ return "[Function" + (v ? ": " + v : " (anonymous)") + "]" + (y.length > 0 ? " { " + k.call(y, ", ") + " }" : "");
2196
+ }
2197
+ if (an(e)) {
2198
+ var m = ue ? J.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : wt.call(e);
2199
+ return typeof e == "object" && !ue ? ve(m) : m;
2200
+ }
2201
+ if (Ii(e)) {
2202
+ for (var h = "<" + yr.call(String(e.nodeName)), S = e.attributes || [], E = 0; E < S.length; E++)
2203
+ h += " " + S[E].name + "=" + on(bi(S[E].value), "double", a);
2204
+ return h += ">", e.childNodes && e.childNodes.length && (h += "..."), h += "</" + yr.call(String(e.nodeName)) + ">", h;
2205
+ }
2206
+ if (Et(e)) {
2207
+ if (e.length === 0)
2208
+ return "[]";
2209
+ var g = xe(e, d);
2210
+ return p && !$i(g) ? "[" + At(g, p) + "]" : "[ " + k.call(g, ", ") + " ]";
2211
+ }
2212
+ if (Si(e)) {
2213
+ var T = xe(e, d);
2214
+ return !("cause" in Error.prototype) && "cause" in e && !nn.call(e, "cause") ? "{ [" + String(e) + "] " + k.call(hr.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 (wr && typeof e[wr] == "function" && St)
2218
+ return St(e, { depth: c - r });
2219
+ if (i !== "symbol" && typeof e.inspect == "function")
2220
+ return e.inspect();
2221
+ }
2222
+ if (xi(e)) {
2223
+ var A = [];
2224
+ return fr && fr.call(e, function($, H) {
2225
+ A.push(d(H, e, !0) + " => " + d($, e));
2226
+ }), Er("Map", ke.call(e), A, p);
2227
+ }
2228
+ if (Di(e)) {
2229
+ var C = [];
2230
+ return pr && pr.call(e, function($) {
2231
+ C.push(d($, e));
2232
+ }), Er("Set", je.call(e), C, p);
2233
+ }
2234
+ if (Fi(e))
2235
+ return it("WeakMap");
2236
+ if (Ni(e))
2237
+ return it("WeakSet");
2238
+ if (Ci(e))
2239
+ return it("WeakRef");
2240
+ if (Ai(e))
2241
+ return ve(d(Number(e)));
2242
+ if (Ri(e))
2243
+ return ve(d(bt.call(e)));
2244
+ if (Oi(e))
2245
+ return ve(pi.call(e));
2246
+ if (Ei(e))
2247
+ return ve(d(String(e)));
2248
+ if (typeof window < "u" && e === window)
2249
+ return "{ [object Window] }";
2250
+ if (typeof globalThis < "u" && e === globalThis || typeof er < "u" && e === er)
2251
+ return "{ [object globalThis] }";
2252
+ if (!wi(e) && !Sr(e)) {
2253
+ var D = xe(e, d), j = gr ? gr(e) === Object.prototype : e instanceof Object || e.constructor === Object, U = e instanceof Object ? "" : "null prototype", q = !j && F && Object(e) === e && F in e ? Bt.call(K(e), 8, -1) : U ? "Object" : "", Te = j || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", ne = Te + (q || U ? "[" + k.call(hr.call([], q || [], U || []), ": ") + "] " : "");
2254
+ return D.length === 0 ? ne + "{}" : p ? ne + "{" + At(D, p) + "}" : ne + "{ " + k.call(D, ", ") + " }";
2255
+ }
2256
+ return String(e);
2257
+ };
2258
+ function on(t, e, n) {
2259
+ var r = (n.quoteStyle || e) === "double" ? '"' : "'";
2260
+ return r + t + r;
2261
+ }
2262
+ function bi(t) {
2263
+ return J.call(String(t), /"/g, "&quot;");
2264
+ }
2265
+ function Et(t) {
2266
+ return K(t) === "[object Array]" && (!F || !(typeof t == "object" && F in t));
2267
+ }
2268
+ function wi(t) {
2269
+ return K(t) === "[object Date]" && (!F || !(typeof t == "object" && F in t));
2270
+ }
2271
+ function Sr(t) {
2272
+ return K(t) === "[object RegExp]" && (!F || !(typeof t == "object" && F in t));
2273
+ }
2274
+ function Si(t) {
2275
+ return K(t) === "[object Error]" && (!F || !(typeof t == "object" && F in t));
2276
+ }
2277
+ function Ei(t) {
2278
+ return K(t) === "[object String]" && (!F || !(typeof t == "object" && F in t));
2279
+ }
2280
+ function Ai(t) {
2281
+ return K(t) === "[object Number]" && (!F || !(typeof t == "object" && F in t));
2282
+ }
2283
+ function Oi(t) {
2284
+ return K(t) === "[object Boolean]" && (!F || !(typeof t == "object" && F in t));
2285
+ }
2286
+ function an(t) {
2287
+ if (ue)
2288
+ return t && typeof t == "object" && t instanceof Symbol;
2289
+ if (typeof t == "symbol")
2290
+ return !0;
2291
+ if (!t || typeof t != "object" || !wt)
2292
+ return !1;
2293
+ try {
2294
+ return wt.call(t), !0;
2295
+ } catch {
2296
+ }
2297
+ return !1;
2298
+ }
2299
+ function Ri(t) {
2300
+ if (!t || typeof t != "object" || !bt)
2301
+ return !1;
2302
+ try {
2303
+ return bt.call(t), !0;
2304
+ } catch {
2305
+ }
2306
+ return !1;
2307
+ }
2308
+ var Pi = Object.prototype.hasOwnProperty || function(t) {
2309
+ return t in this;
2310
+ };
2311
+ function G(t, e) {
2312
+ return Pi.call(t, e);
2313
+ }
2314
+ function K(t) {
2315
+ return di.call(t);
2316
+ }
2317
+ function Ti(t) {
2318
+ if (t.name)
2319
+ return t.name;
2320
+ var e = hi.call(yi.call(t), /^function\s*([\w$]+)/);
2321
+ return e ? e[1] : null;
2322
+ }
2323
+ function sn(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 xi(t) {
2332
+ if (!ke || !t || typeof t != "object")
2333
+ return !1;
2334
+ try {
2335
+ ke.call(t);
2336
+ try {
2337
+ je.call(t);
2338
+ } catch {
2339
+ return !0;
2340
+ }
2341
+ return t instanceof Map;
2342
+ } catch {
2343
+ }
2344
+ return !1;
2345
+ }
2346
+ function Fi(t) {
2347
+ if (!be || !t || typeof t != "object")
2348
+ return !1;
2349
+ try {
2350
+ be.call(t, be);
2351
+ try {
2352
+ we.call(t, we);
2353
+ } catch {
2354
+ return !0;
2355
+ }
2356
+ return t instanceof WeakMap;
2357
+ } catch {
2358
+ }
2359
+ return !1;
2360
+ }
2361
+ function Ci(t) {
2362
+ if (!dr || !t || typeof t != "object")
2363
+ return !1;
2364
+ try {
2365
+ return dr.call(t), !0;
2366
+ } catch {
2367
+ }
2368
+ return !1;
2369
+ }
2370
+ function Di(t) {
2371
+ if (!je || !t || typeof t != "object")
2372
+ return !1;
2373
+ try {
2374
+ je.call(t);
2375
+ try {
2376
+ ke.call(t);
2377
+ } catch {
2378
+ return !0;
2379
+ }
2380
+ return t instanceof Set;
2381
+ } catch {
2382
+ }
2383
+ return !1;
2384
+ }
2385
+ function Ni(t) {
2386
+ if (!we || !t || typeof t != "object")
2387
+ return !1;
2388
+ try {
2389
+ we.call(t, we);
2390
+ try {
2391
+ be.call(t, be);
2392
+ } catch {
2393
+ return !0;
2394
+ }
2395
+ return t instanceof WeakSet;
2396
+ } catch {
2397
+ }
2398
+ return !1;
2399
+ }
2400
+ function Ii(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 ln(t, e) {
2404
+ if (t.length > e.maxStringLength) {
2405
+ var n = t.length - e.maxStringLength, r = "... " + n + " more character" + (n > 1 ? "s" : "");
2406
+ return ln(Bt.call(t, 0, e.maxStringLength), e) + r;
2407
+ }
2408
+ var o = J.call(J.call(t, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, _i);
2409
+ return on(o, "single", e);
2410
+ }
2411
+ function _i(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" : "") + mi.call(e.toString(16));
2420
+ }
2421
+ function ve(t) {
2422
+ return "Object(" + t + ")";
2423
+ }
2424
+ function it(t) {
2425
+ return t + " { ? }";
2426
+ }
2427
+ function Er(t, e, n, r) {
2428
+ var o = r ? At(n, r) : k.call(n, ", ");
2429
+ return t + " (" + e + ") {" + o + "}";
2430
+ }
2431
+ function $i(t) {
2432
+ for (var e = 0; e < t.length; e++)
2433
+ if (sn(t[e], `
2434
+ `) >= 0)
2435
+ return !1;
2436
+ return !0;
2437
+ }
2438
+ function Bi(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 At(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 xe(t, e) {
2460
+ var n = Et(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 at == "function" ? at(t) : [], i;
2467
+ if (ue) {
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 || ue && i["$" + u] instanceof Symbol || (rn.call(/[^\w$]/, u) ? r.push(e(u, t) + ": " + e(t[u], t)) : r.push(u + ": " + e(t[u], t))));
2474
+ if (typeof at == "function")
2475
+ for (var l = 0; l < a.length; l++)
2476
+ nn.call(t, a[l]) && r.push("[" + e(a[l]) + "]: " + e(t[a[l]], t));
2477
+ return r;
2478
+ }
2479
+ var cn = ye, he = ai, Ui = vi, Li = Re, Fe = cn("%WeakMap%", !0), Ce = cn("%Map%", !0), Mi = he("WeakMap.prototype.get", !0), ki = he("WeakMap.prototype.set", !0), ji = he("WeakMap.prototype.has", !0), qi = he("Map.prototype.get", !0), Hi = he("Map.prototype.set", !0), Wi = he("Map.prototype.has", !0), Ut = 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
+ }, zi = function(t, e) {
2485
+ var n = Ut(t, e);
2486
+ return n && n.value;
2487
+ }, Gi = function(t, e, n) {
2488
+ var r = Ut(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
+ }, Ji = function(t, e) {
2497
+ return !!Ut(t, e);
2498
+ }, Ki = function() {
2499
+ var e, n, r, o = {
2500
+ assert: function(a) {
2501
+ if (!o.has(a))
2502
+ throw new Li("Side channel does not contain " + Ui(a));
2503
+ },
2504
+ get: function(a) {
2505
+ if (Fe && a && (typeof a == "object" || typeof a == "function")) {
2506
+ if (e)
2507
+ return Mi(e, a);
2508
+ } else if (Ce) {
2509
+ if (n)
2510
+ return qi(n, a);
2511
+ } else if (r)
2512
+ return zi(r, a);
2513
+ },
2514
+ has: function(a) {
2515
+ if (Fe && a && (typeof a == "object" || typeof a == "function")) {
2516
+ if (e)
2517
+ return ji(e, a);
2518
+ } else if (Ce) {
2519
+ if (n)
2520
+ return Wi(n, a);
2521
+ } else if (r)
2522
+ return Ji(r, a);
2523
+ return !1;
2524
+ },
2525
+ set: function(a, i) {
2526
+ Fe && a && (typeof a == "object" || typeof a == "function") ? (e || (e = new Fe()), ki(e, a, i)) : Ce ? (n || (n = new Ce()), Hi(n, a, i)) : (r || (r = { key: {}, next: null }), Gi(r, a, i));
2527
+ }
2528
+ };
2529
+ return o;
2530
+ }, Vi = String.prototype.replace, Qi = /%20/g, st = {
2531
+ RFC1738: "RFC1738",
2532
+ RFC3986: "RFC3986"
2533
+ }, Lt = {
2534
+ default: st.RFC3986,
2535
+ formatters: {
2536
+ RFC1738: function(t) {
2537
+ return Vi.call(t, Qi, "+");
2538
+ },
2539
+ RFC3986: function(t) {
2540
+ return String(t);
2541
+ }
2542
+ },
2543
+ RFC1738: st.RFC1738,
2544
+ RFC3986: st.RFC3986
2545
+ }, Xi = Lt, lt = 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
+ }(), Zi = 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
+ }, un = 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
+ }, Yi = 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) || !lt.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 = un(e, r)), V(e) && V(n) ? (n.forEach(function(a, i) {
2578
+ if (lt.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 lt.call(a, i) ? a[i] = t(a[i], s, r) : a[i] = s, a;
2586
+ }, o);
2587
+ }, es = function(e, n) {
2588
+ return Object.keys(n).reduce(function(r, o) {
2589
+ return r[o] = n[o], r;
2590
+ }, e);
2591
+ }, ts = 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
+ }, ct = 1024, rs = 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 += ct) {
2609
+ for (var l = i.length >= ct ? i.slice(u, u + ct) : 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 === Xi.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
+ }, ns = 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 Zi(n), e;
2639
+ }, os = function(e) {
2640
+ return Object.prototype.toString.call(e) === "[object RegExp]";
2641
+ }, as = function(e) {
2642
+ return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
2643
+ }, is = function(e, n) {
2644
+ return [].concat(e, n);
2645
+ }, ss = 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
+ }, fn = {
2653
+ arrayToObject: un,
2654
+ assign: es,
2655
+ combine: is,
2656
+ compact: ns,
2657
+ decode: ts,
2658
+ encode: rs,
2659
+ isBuffer: as,
2660
+ isRegExp: os,
2661
+ maybeMap: ss,
2662
+ merge: Yi
2663
+ }, pn = Ki, $e = fn, Se = Lt, ls = Object.prototype.hasOwnProperty, dn = {
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, cs = Array.prototype.push, yn = function(t, e) {
2675
+ cs.apply(t, M(e) ? e : [e]);
2676
+ }, us = Date.prototype.toISOString, Ar = Se.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: $e.encode,
2687
+ encodeValuesOnly: !1,
2688
+ format: Ar,
2689
+ formatter: Se.formatters[Ar],
2690
+ // deprecated
2691
+ indices: !1,
2692
+ serializeDate: function(e) {
2693
+ return us.call(e);
2694
+ },
2695
+ skipNulls: !1,
2696
+ strictNullHandling: !1
2697
+ }, fs = function(e) {
2698
+ return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
2699
+ }, ut = {}, ps = 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(ut)) !== 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(ut) > "u" && (A = 0);
2708
+ }
2709
+ if (typeof c == "function" ? g = c(n, g) : g instanceof Date ? g = v(g) : r === "comma" && M(g) && (g = $e.maybeMap(g, function(Ke) {
2710
+ return Ke instanceof Date ? v(Ke) : Ke;
2711
+ })), g === null) {
2712
+ if (i)
2713
+ return l && !h ? l(n, P.encoder, S, "key", y) : n;
2714
+ g = "";
2715
+ }
2716
+ if (fs(g) || $e.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 = $e.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 Te = Object.keys(g);
2733
+ q = p ? Te.sort(p) : Te;
2734
+ }
2735
+ var ne = u ? n.replace(/\./g, "%2E") : n, $ = o && M(g) && g.length === 1 ? ne + "[]" : ne;
2736
+ if (a && M(g) && g.length === 0)
2737
+ return $ + "[]";
2738
+ for (var H = 0; H < q.length; ++H) {
2739
+ var W = q[H], me = typeof W == "object" && typeof W.value < "u" ? W.value : g[W];
2740
+ if (!(s && me === null)) {
2741
+ var Je = d && u ? W.replace(/\./g, "%2E") : W, wn = M(g) ? typeof r == "function" ? r($, Je) : $ : $ + (d ? "." + Je : "[" + Je + "]");
2742
+ E.set(e, A);
2743
+ var Mt = pn();
2744
+ Mt.set(ut, E), yn(U, t(
2745
+ me,
2746
+ wn,
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
+ Mt
2763
+ ));
2764
+ }
2765
+ }
2766
+ return U;
2767
+ }, ds = 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 = Se.default;
2780
+ if (typeof e.format < "u") {
2781
+ if (!ls.call(Se.formatters, e.format))
2782
+ throw new TypeError("Unknown format option provided.");
2783
+ r = e.format;
2784
+ }
2785
+ var o = Se.formatters[r], a = P.filter;
2786
+ (typeof e.filter == "function" || M(e.filter)) && (a = e.filter);
2787
+ var i;
2788
+ if (e.arrayFormat in dn ? 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
+ }, ys = function(t, e) {
2813
+ var n = t, r = ds(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 = dn[r.arrayFormat], u = s === "comma" && r.commaRoundTrip;
2819
+ o || (o = Object.keys(n)), r.sort && o.sort(r.sort);
2820
+ for (var l = pn(), c = 0; c < o.length; ++c) {
2821
+ var p = o[c];
2822
+ r.skipNulls && n[p] === null || yn(i, ps(
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
+ }, fe = fn, Ot = Object.prototype.hasOwnProperty, hs = 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: fe.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
+ }, ms = function(t) {
2867
+ return t.replace(/&#(\d+);/g, function(e, n) {
2868
+ return String.fromCharCode(parseInt(n, 10));
2869
+ });
2870
+ }, hn = function(t, e) {
2871
+ return t && typeof t == "string" && e.comma && t.indexOf(",") > -1 ? t.split(",") : t;
2872
+ }, gs = "utf8=%26%2310003%3B", vs = "utf8=%E2%9C%93", bs = 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] === vs ? l = "utf-8" : i[u] === gs && (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 = fe.maybeMap(
2883
+ hn(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 = ms(y)), c.indexOf("[]=") > -1 && (y = hs(y) ? [y] : y);
2888
+ var m = Ot.call(r, v);
2889
+ m && n.duplicates === "combine" ? r[v] = fe.combine(r[v], y) : (!m || n.duplicates === "last") && (r[v] = y);
2890
+ }
2891
+ return r;
2892
+ }, ws = function(t, e, n, r) {
2893
+ for (var o = r ? e : hn(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
+ }, Ss = 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 && Ot.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 && Ot.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 ws(c, n, r, o);
2924
+ }
2925
+ }, Es = 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" || fe.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
+ }, As = function(t, e) {
2964
+ var n = Es(e);
2965
+ if (t === "" || t === null || typeof t > "u")
2966
+ return n.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
2967
+ for (var r = typeof t == "string" ? bs(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 = Ss(s, r[s], n, typeof t == "string");
2969
+ o = fe.merge(o, u, n);
2970
+ }
2971
+ return n.allowSparse === !0 ? o : fe.compact(o);
2972
+ }, Os = ys, Rs = As, Ps = Lt, Ts = {
2973
+ formats: Ps,
2974
+ parse: Rs,
2975
+ stringify: Os
2976
+ };
2977
+ const xs = /* @__PURE__ */ la(Ts);
2978
+ /*! js-cookie v3.0.5 | MIT */
2979
+ function De(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 Fs = {
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 Rt(t, e) {
2999
+ function n(o, a, i) {
3000
+ if (!(typeof document > "u")) {
3001
+ i = De({}, 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
+ De({}, a, {
3031
+ expires: -1
3032
+ })
3033
+ );
3034
+ },
3035
+ withAttributes: function(o) {
3036
+ return Rt(this.converter, De({}, this.attributes, o));
3037
+ },
3038
+ withConverter: function(o) {
3039
+ return Rt(De({}, 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 Cs = Rt(Fs, { path: "/" });
3049
+ Pt.extend(Tn);
3050
+ Pt.extend(xn);
3051
+ const mn = Or(), gn = mn.sso ?? !0, vn = mn.noRedireLogin ?? !1, bn = () => {
3052
+ if (vn) return;
3053
+ const t = "/login";
3054
+ location.pathname !== t && (sessionStorage.clear(), window.__isAutoCloseApp = !1, location.replace(t));
3055
+ }, Ds = async (t) => {
3056
+ var n;
3057
+ return ((n = t.config) == null ? void 0 : n.responseType) === "blob" ? t : t.data ?? t;
3058
+ }, Ns = 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: oe("参数校验错误"), 404: oe("接口地址未找到"), 500: oe("服务器内部错误") };
3062
+ let i = ((c = t == null ? void 0 : t.response) == null ? void 0 : c.data) || {};
3063
+ return !(An("code") || "") && !vn && (n === 401 || (i == null ? void 0 : i.code) === 401) ? (gn ? On({ ...Rn, redirect_uri: Pn }) : bn(), 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: oe("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 = oe("网络异常,请检查您的网络情况") : t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = oe("请求配置异常"), 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
+ }, ee = (t, e) => {
3074
+ const n = R.create();
3075
+ return Sn(n, async (r) => {
3076
+ const o = Or();
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
+ gn ? l || (l = await En(r)) : (l || (l = Dn()), l || bn()), 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) => xs.stringify(l, { indices: !1 }) }), r.onSuccess || (r.onSuccess = Ds), r.onError || (r.onError = Ns), (r.csrf ?? !1) && (r.headers["csrf-token"] = Cs.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 = Fn().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 } = Cn();
3094
+ l != null && l.instanceId && (s.instance = l.instanceId);
3095
+ }
3096
+ return r.params = s, r.headers.Timezone = Pt.tz.guess(), r;
3097
+ });
3098
+ }, te = "v1", qs = ee(`/api/customer/customer/${te}`), Hs = ee(`/api/customer/company/${te}`), Ws = ee(`/api/customer/customer-grade/${te}`), zs = ee(`/api/customer/customer-type/${te}`), Gs = {
3099
+ list: ee(`/api/project/${te}/list`),
3100
+ app: ee(`/api/project/${te}/app`),
3101
+ people: ee(`/api/project/${te}/people`)
6
3102
  };
7
3103
  export {
8
- c as company,
9
- p as customer,
10
- r as customerGrade,
11
- s as customerType,
12
- a as projectManage
3104
+ Hs as company,
3105
+ qs as customer,
3106
+ Ws as customerGrade,
3107
+ zs as customerType,
3108
+ Gs as projectManage
13
3109
  };