@sycsq/common 0.0.1

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