@opencloud-eu/web-client 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/LICENSE +661 -0
  2. package/README.md +95 -0
  3. package/dist/functions-CsnDdpYv.js +1232 -0
  4. package/dist/functions-ikwhAVhP.cjs +1 -0
  5. package/dist/index-C1H-OgNf.cjs +6 -0
  6. package/dist/index-C6VnMvgz.cjs +6 -0
  7. package/dist/index-DbVGtwLH.cjs +1 -0
  8. package/dist/index-DqVarwg_.js +1705 -0
  9. package/dist/index-Pl8khka8.js +1141 -0
  10. package/dist/index-VvbQMSOr.js +4651 -0
  11. package/dist/index-eFi29SPG.cjs +16 -0
  12. package/dist/index-oQ7995oB.js +672 -0
  13. package/dist/src/errors.d.ts +10 -0
  14. package/dist/src/graph/activities/activities.d.ts +3 -0
  15. package/dist/src/graph/activities/index.d.ts +2 -0
  16. package/dist/src/graph/activities/types.d.ts +5 -0
  17. package/dist/src/graph/applications/applications.d.ts +3 -0
  18. package/dist/src/graph/applications/index.d.ts +2 -0
  19. package/dist/src/graph/applications/types.d.ts +6 -0
  20. package/dist/src/graph/driveItems/driveItems.d.ts +3 -0
  21. package/dist/src/graph/driveItems/index.d.ts +2 -0
  22. package/dist/src/graph/driveItems/types.d.ts +10 -0
  23. package/dist/src/graph/drives/drives.d.ts +3 -0
  24. package/dist/src/graph/drives/index.d.ts +2 -0
  25. package/dist/src/graph/drives/types.d.ts +18 -0
  26. package/dist/src/graph/generated/api.d.ts +6506 -0
  27. package/dist/src/graph/generated/base.d.ts +55 -0
  28. package/dist/src/graph/generated/common.d.ts +54 -0
  29. package/dist/src/graph/generated/configuration.d.ts +91 -0
  30. package/dist/src/graph/generated/index.d.ts +13 -0
  31. package/dist/src/graph/groups/groups.d.ts +3 -0
  32. package/dist/src/graph/groups/index.d.ts +2 -0
  33. package/dist/src/graph/groups/types.d.ts +19 -0
  34. package/dist/src/graph/index.d.ts +20 -0
  35. package/dist/src/graph/permissions/index.d.ts +2 -0
  36. package/dist/src/graph/permissions/permissions.d.ts +3 -0
  37. package/dist/src/graph/permissions/types.d.ts +23 -0
  38. package/dist/src/graph/tags/index.d.ts +2 -0
  39. package/dist/src/graph/tags/tags.d.ts +3 -0
  40. package/dist/src/graph/tags/types.d.ts +7 -0
  41. package/dist/src/graph/types.d.ts +11 -0
  42. package/dist/src/graph/users/index.d.ts +2 -0
  43. package/dist/src/graph/users/types.d.ts +25 -0
  44. package/dist/src/graph/users/users.d.ts +3 -0
  45. package/dist/src/helpers/call.d.ts +1 -0
  46. package/dist/src/helpers/httpError.d.ts +9 -0
  47. package/dist/src/helpers/index.d.ts +7 -0
  48. package/dist/src/helpers/item.d.ts +3 -0
  49. package/dist/src/helpers/publicLink/functions.d.ts +2 -0
  50. package/dist/src/helpers/publicLink/index.d.ts +1 -0
  51. package/dist/src/helpers/resource/functions.d.ts +12 -0
  52. package/dist/src/helpers/resource/index.d.ts +2 -0
  53. package/dist/src/helpers/resource/types.d.ts +103 -0
  54. package/dist/src/helpers/share/constants.d.ts +9 -0
  55. package/dist/src/helpers/share/functions.d.ts +37 -0
  56. package/dist/src/helpers/share/index.d.ts +4 -0
  57. package/dist/src/helpers/share/type.d.ts +32 -0
  58. package/dist/src/helpers/share/types.d.ts +72 -0
  59. package/dist/src/helpers/space/functions.d.ts +27 -0
  60. package/dist/src/helpers/space/index.d.ts +2 -0
  61. package/dist/src/helpers/space/types.d.ts +84 -0
  62. package/dist/src/index.d.ts +19 -0
  63. package/dist/src/ocs/capabilities.d.ts +181 -0
  64. package/dist/src/ocs/index.d.ts +8 -0
  65. package/dist/src/ocs/urlSign.d.ts +18 -0
  66. package/dist/src/sse/index.d.ts +50 -0
  67. package/dist/src/utils/encodePath.d.ts +1 -0
  68. package/dist/src/utils/index.d.ts +2 -0
  69. package/dist/src/utils/urlJoin.d.ts +19 -0
  70. package/dist/src/webdav/clearTrashBin.d.ts +10 -0
  71. package/dist/src/webdav/client/builders.d.ts +8 -0
  72. package/dist/src/webdav/client/dav.d.ts +53 -0
  73. package/dist/src/webdav/client/index.d.ts +3 -0
  74. package/dist/src/webdav/client/parsers.d.ts +8 -0
  75. package/dist/src/webdav/constants/dav.d.ts +106 -0
  76. package/dist/src/webdav/constants/index.d.ts +1 -0
  77. package/dist/src/webdav/copyFiles.d.ts +15 -0
  78. package/dist/src/webdav/createFolder.d.ts +14 -0
  79. package/dist/src/webdav/deleteFile.d.ts +8 -0
  80. package/dist/src/webdav/getFileContents.d.ts +17 -0
  81. package/dist/src/webdav/getFileInfo.d.ts +9 -0
  82. package/dist/src/webdav/getFileUrl.d.ts +15 -0
  83. package/dist/src/webdav/getPathForFileId.d.ts +5 -0
  84. package/dist/src/webdav/getPublicFileUrl.d.ts +6 -0
  85. package/dist/src/webdav/index.d.ts +7 -0
  86. package/dist/src/webdav/listFavoriteFiles.d.ts +12 -0
  87. package/dist/src/webdav/listFileVersions.d.ts +5 -0
  88. package/dist/src/webdav/listFiles.d.ts +21 -0
  89. package/dist/src/webdav/moveFiles.d.ts +15 -0
  90. package/dist/src/webdav/putFileContents.d.ts +18 -0
  91. package/dist/src/webdav/restoreFile.d.ts +12 -0
  92. package/dist/src/webdav/restoreFileVersion.d.ts +10 -0
  93. package/dist/src/webdav/search.d.ts +15 -0
  94. package/dist/src/webdav/setFavorite.d.ts +8 -0
  95. package/dist/src/webdav/types.d.ts +47 -0
  96. package/dist/src/webdav/utils.d.ts +13 -0
  97. package/dist/toString-Cn0xCZ28.js +261 -0
  98. package/dist/toString-hHr716Th.cjs +1 -0
  99. package/dist/vite.config.d.ts +2 -0
  100. package/dist/web-client/graph/generated.cjs +1 -0
  101. package/dist/web-client/graph/generated.js +5499 -0
  102. package/dist/web-client/graph.cjs +1 -0
  103. package/dist/web-client/graph.js +5 -0
  104. package/dist/web-client/ocs.cjs +25 -0
  105. package/dist/web-client/ocs.js +6014 -0
  106. package/dist/web-client/sse.cjs +2 -0
  107. package/dist/web-client/sse.js +218 -0
  108. package/dist/web-client/webdav.cjs +1 -0
  109. package/dist/web-client/webdav.js +10 -0
  110. package/dist/web-client.cjs +1 -0
  111. package/dist/web-client.js +99 -0
  112. package/package.json +67 -0
@@ -0,0 +1,1705 @@
1
+ import { p as pe, g as Ye, B as et } from "./index-Pl8khka8.js";
2
+ function Ne(e, t) {
3
+ return function() {
4
+ return e.apply(t, arguments);
5
+ };
6
+ }
7
+ const { toString: tt } = Object.prototype, { getPrototypeOf: ue } = Object, K = /* @__PURE__ */ ((e) => (t) => {
8
+ const n = tt.call(t);
9
+ return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
10
+ })(/* @__PURE__ */ Object.create(null)), C = (e) => (e = e.toLowerCase(), (t) => K(t) === e), v = (e) => (t) => typeof t === e, { isArray: U } = Array, q = v("undefined");
11
+ function nt(e) {
12
+ return e !== null && !q(e) && e.constructor !== null && !q(e.constructor) && x(e.constructor.isBuffer) && e.constructor.isBuffer(e);
13
+ }
14
+ const Pe = C("ArrayBuffer");
15
+ function rt(e) {
16
+ let t;
17
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Pe(e.buffer), t;
18
+ }
19
+ const st = v("string"), x = v("function"), _e = v("number"), X = (e) => e !== null && typeof e == "object", ot = (e) => e === !0 || e === !1, z = (e) => {
20
+ if (K(e) !== "object")
21
+ return !1;
22
+ const t = ue(e);
23
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
24
+ }, it = C("Date"), at = C("File"), ct = C("Blob"), ut = C("FileList"), lt = (e) => X(e) && x(e.pipe), ft = (e) => {
25
+ let t;
26
+ return e && (typeof FormData == "function" && e instanceof FormData || x(e.append) && ((t = K(e)) === "formdata" || // detect form-data instance
27
+ t === "object" && x(e.toString) && e.toString() === "[object FormData]"));
28
+ }, dt = C("URLSearchParams"), [pt, ht, mt, yt] = ["ReadableStream", "Request", "Response", "Headers"].map(C), bt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
29
+ function H(e, t, { allOwnKeys: n = !1 } = {}) {
30
+ if (e === null || typeof e > "u")
31
+ return;
32
+ let r, s;
33
+ if (typeof e != "object" && (e = [e]), U(e))
34
+ for (r = 0, s = e.length; r < s; r++)
35
+ t.call(null, e[r], r, e);
36
+ else {
37
+ const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = o.length;
38
+ let c;
39
+ for (r = 0; r < i; r++)
40
+ c = o[r], t.call(null, e[c], c, e);
41
+ }
42
+ }
43
+ function Fe(e, t) {
44
+ t = t.toLowerCase();
45
+ const n = Object.keys(e);
46
+ let r = n.length, s;
47
+ for (; r-- > 0; )
48
+ if (s = n[r], t === s.toLowerCase())
49
+ return s;
50
+ return null;
51
+ }
52
+ const L = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : Ye, Le = (e) => !q(e) && e !== L;
53
+ function re() {
54
+ const { caseless: e } = Le(this) && this || {}, t = {}, n = (r, s) => {
55
+ const o = e && Fe(t, s) || s;
56
+ z(t[o]) && z(r) ? t[o] = re(t[o], r) : z(r) ? t[o] = re({}, r) : U(r) ? t[o] = r.slice() : t[o] = r;
57
+ };
58
+ for (let r = 0, s = arguments.length; r < s; r++)
59
+ arguments[r] && H(arguments[r], n);
60
+ return t;
61
+ }
62
+ const wt = (e, t, n, { allOwnKeys: r } = {}) => (H(t, (s, o) => {
63
+ n && x(s) ? e[o] = Ne(s, n) : e[o] = s;
64
+ }, { allOwnKeys: r }), e), Et = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Rt = (e, t, n, r) => {
65
+ e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
66
+ value: t.prototype
67
+ }), n && Object.assign(e.prototype, n);
68
+ }, gt = (e, t, n, r) => {
69
+ let s, o, i;
70
+ const c = {};
71
+ if (t = t || {}, e == null) return t;
72
+ do {
73
+ for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
74
+ i = s[o], (!r || r(i, e, t)) && !c[i] && (t[i] = e[i], c[i] = !0);
75
+ e = n !== !1 && ue(e);
76
+ } while (e && (!n || n(e, t)) && e !== Object.prototype);
77
+ return t;
78
+ }, St = (e, t, n) => {
79
+ e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
80
+ const r = e.indexOf(t, n);
81
+ return r !== -1 && r === n;
82
+ }, Ot = (e) => {
83
+ if (!e) return null;
84
+ if (U(e)) return e;
85
+ let t = e.length;
86
+ if (!_e(t)) return null;
87
+ const n = new Array(t);
88
+ for (; t-- > 0; )
89
+ n[t] = e[t];
90
+ return n;
91
+ }, Tt = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && ue(Uint8Array)), At = (e, t) => {
92
+ const r = (e && e[Symbol.iterator]).call(e);
93
+ let s;
94
+ for (; (s = r.next()) && !s.done; ) {
95
+ const o = s.value;
96
+ t.call(e, o[0], o[1]);
97
+ }
98
+ }, xt = (e, t) => {
99
+ let n;
100
+ const r = [];
101
+ for (; (n = e.exec(t)) !== null; )
102
+ r.push(n);
103
+ return r;
104
+ }, Ct = C("HTMLFormElement"), Nt = (e) => e.toLowerCase().replace(
105
+ /[-_\s]([a-z\d])(\w*)/g,
106
+ function(n, r, s) {
107
+ return r.toUpperCase() + s;
108
+ }
109
+ ), he = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Pt = C("RegExp"), Be = (e, t) => {
110
+ const n = Object.getOwnPropertyDescriptors(e), r = {};
111
+ H(n, (s, o) => {
112
+ let i;
113
+ (i = t(s, o, e)) !== !1 && (r[o] = i || s);
114
+ }), Object.defineProperties(e, r);
115
+ }, _t = (e) => {
116
+ Be(e, (t, n) => {
117
+ if (x(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
118
+ return !1;
119
+ const r = e[n];
120
+ if (x(r)) {
121
+ if (t.enumerable = !1, "writable" in t) {
122
+ t.writable = !1;
123
+ return;
124
+ }
125
+ t.set || (t.set = () => {
126
+ throw Error("Can not rewrite read-only method '" + n + "'");
127
+ });
128
+ }
129
+ });
130
+ }, Ft = (e, t) => {
131
+ const n = {}, r = (s) => {
132
+ s.forEach((o) => {
133
+ n[o] = !0;
134
+ });
135
+ };
136
+ return U(e) ? r(e) : r(String(e).split(t)), n;
137
+ }, Lt = () => {
138
+ }, Bt = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, Y = "abcdefghijklmnopqrstuvwxyz", me = "0123456789", De = {
139
+ DIGIT: me,
140
+ ALPHA: Y,
141
+ ALPHA_DIGIT: Y + Y.toUpperCase() + me
142
+ }, Dt = (e = 16, t = De.ALPHA_DIGIT) => {
143
+ let n = "";
144
+ const { length: r } = t;
145
+ for (; e--; )
146
+ n += t[Math.random() * r | 0];
147
+ return n;
148
+ };
149
+ function Ut(e) {
150
+ return !!(e && x(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
151
+ }
152
+ const kt = (e) => {
153
+ const t = new Array(10), n = (r, s) => {
154
+ if (X(r)) {
155
+ if (t.indexOf(r) >= 0)
156
+ return;
157
+ if (!("toJSON" in r)) {
158
+ t[s] = r;
159
+ const o = U(r) ? [] : {};
160
+ return H(r, (i, c) => {
161
+ const f = n(i, s + 1);
162
+ !q(f) && (o[c] = f);
163
+ }), t[s] = void 0, o;
164
+ }
165
+ }
166
+ return r;
167
+ };
168
+ return n(e, 0);
169
+ }, jt = C("AsyncFunction"), qt = (e) => e && (X(e) || x(e)) && x(e.then) && x(e.catch), Ue = ((e, t) => e ? setImmediate : t ? ((n, r) => (L.addEventListener("message", ({ source: s, data: o }) => {
170
+ s === L && o === n && r.length && r.shift()();
171
+ }, !1), (s) => {
172
+ r.push(s), L.postMessage(n, "*");
173
+ }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
174
+ typeof setImmediate == "function",
175
+ x(L.postMessage)
176
+ ), Ht = typeof queueMicrotask < "u" ? queueMicrotask.bind(L) : typeof pe < "u" && pe.nextTick || Ue, a = {
177
+ isArray: U,
178
+ isArrayBuffer: Pe,
179
+ isBuffer: nt,
180
+ isFormData: ft,
181
+ isArrayBufferView: rt,
182
+ isString: st,
183
+ isNumber: _e,
184
+ isBoolean: ot,
185
+ isObject: X,
186
+ isPlainObject: z,
187
+ isReadableStream: pt,
188
+ isRequest: ht,
189
+ isResponse: mt,
190
+ isHeaders: yt,
191
+ isUndefined: q,
192
+ isDate: it,
193
+ isFile: at,
194
+ isBlob: ct,
195
+ isRegExp: Pt,
196
+ isFunction: x,
197
+ isStream: lt,
198
+ isURLSearchParams: dt,
199
+ isTypedArray: Tt,
200
+ isFileList: ut,
201
+ forEach: H,
202
+ merge: re,
203
+ extend: wt,
204
+ trim: bt,
205
+ stripBOM: Et,
206
+ inherits: Rt,
207
+ toFlatObject: gt,
208
+ kindOf: K,
209
+ kindOfTest: C,
210
+ endsWith: St,
211
+ toArray: Ot,
212
+ forEachEntry: At,
213
+ matchAll: xt,
214
+ isHTMLForm: Ct,
215
+ hasOwnProperty: he,
216
+ hasOwnProp: he,
217
+ // an alias to avoid ESLint no-prototype-builtins detection
218
+ reduceDescriptors: Be,
219
+ freezeMethods: _t,
220
+ toObjectSet: Ft,
221
+ toCamelCase: Nt,
222
+ noop: Lt,
223
+ toFiniteNumber: Bt,
224
+ findKey: Fe,
225
+ global: L,
226
+ isContextDefined: Le,
227
+ ALPHABET: De,
228
+ generateString: Dt,
229
+ isSpecCompliantForm: Ut,
230
+ toJSONObject: kt,
231
+ isAsyncFn: jt,
232
+ isThenable: qt,
233
+ setImmediate: Ue,
234
+ asap: Ht
235
+ };
236
+ function m(e, t, n, r, s) {
237
+ Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), s && (this.response = s, this.status = s.status ? s.status : null);
238
+ }
239
+ a.inherits(m, Error, {
240
+ toJSON: function() {
241
+ return {
242
+ // Standard
243
+ message: this.message,
244
+ name: this.name,
245
+ // Microsoft
246
+ description: this.description,
247
+ number: this.number,
248
+ // Mozilla
249
+ fileName: this.fileName,
250
+ lineNumber: this.lineNumber,
251
+ columnNumber: this.columnNumber,
252
+ stack: this.stack,
253
+ // Axios
254
+ config: a.toJSONObject(this.config),
255
+ code: this.code,
256
+ status: this.status
257
+ };
258
+ }
259
+ });
260
+ const ke = m.prototype, je = {};
261
+ [
262
+ "ERR_BAD_OPTION_VALUE",
263
+ "ERR_BAD_OPTION",
264
+ "ECONNABORTED",
265
+ "ETIMEDOUT",
266
+ "ERR_NETWORK",
267
+ "ERR_FR_TOO_MANY_REDIRECTS",
268
+ "ERR_DEPRECATED",
269
+ "ERR_BAD_RESPONSE",
270
+ "ERR_BAD_REQUEST",
271
+ "ERR_CANCELED",
272
+ "ERR_NOT_SUPPORT",
273
+ "ERR_INVALID_URL"
274
+ // eslint-disable-next-line func-names
275
+ ].forEach((e) => {
276
+ je[e] = { value: e };
277
+ });
278
+ Object.defineProperties(m, je);
279
+ Object.defineProperty(ke, "isAxiosError", { value: !0 });
280
+ m.from = (e, t, n, r, s, o) => {
281
+ const i = Object.create(ke);
282
+ return a.toFlatObject(e, i, function(f) {
283
+ return f !== Error.prototype;
284
+ }, (c) => c !== "isAxiosError"), m.call(i, e.message, t, n, r, s), i.cause = e, i.name = e.name, o && Object.assign(i, o), i;
285
+ };
286
+ const It = null;
287
+ function se(e) {
288
+ return a.isPlainObject(e) || a.isArray(e);
289
+ }
290
+ function qe(e) {
291
+ return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
292
+ }
293
+ function ye(e, t, n) {
294
+ return e ? e.concat(t).map(function(s, o) {
295
+ return s = qe(s), !n && o ? "[" + s + "]" : s;
296
+ }).join(n ? "." : "") : t;
297
+ }
298
+ function Mt(e) {
299
+ return a.isArray(e) && !e.some(se);
300
+ }
301
+ const zt = a.toFlatObject(a, {}, null, function(t) {
302
+ return /^is[A-Z]/.test(t);
303
+ });
304
+ function G(e, t, n) {
305
+ if (!a.isObject(e))
306
+ throw new TypeError("target must be an object");
307
+ t = t || new FormData(), n = a.toFlatObject(n, {
308
+ metaTokens: !0,
309
+ dots: !1,
310
+ indexes: !1
311
+ }, !1, function(y, h) {
312
+ return !a.isUndefined(h[y]);
313
+ });
314
+ const r = n.metaTokens, s = n.visitor || l, o = n.dots, i = n.indexes, f = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
315
+ if (!a.isFunction(s))
316
+ throw new TypeError("visitor must be a function");
317
+ function u(p) {
318
+ if (p === null) return "";
319
+ if (a.isDate(p))
320
+ return p.toISOString();
321
+ if (!f && a.isBlob(p))
322
+ throw new m("Blob is not supported. Use a Buffer instead.");
323
+ return a.isArrayBuffer(p) || a.isTypedArray(p) ? f && typeof Blob == "function" ? new Blob([p]) : et.from(p) : p;
324
+ }
325
+ function l(p, y, h) {
326
+ let w = p;
327
+ if (p && !h && typeof p == "object") {
328
+ if (a.endsWith(y, "{}"))
329
+ y = r ? y : y.slice(0, -2), p = JSON.stringify(p);
330
+ else if (a.isArray(p) && Mt(p) || (a.isFileList(p) || a.endsWith(y, "[]")) && (w = a.toArray(p)))
331
+ return y = qe(y), w.forEach(function(S, P) {
332
+ !(a.isUndefined(S) || S === null) && t.append(
333
+ // eslint-disable-next-line no-nested-ternary
334
+ i === !0 ? ye([y], P, o) : i === null ? y : y + "[]",
335
+ u(S)
336
+ );
337
+ }), !1;
338
+ }
339
+ return se(p) ? !0 : (t.append(ye(h, y, o), u(p)), !1);
340
+ }
341
+ const d = [], b = Object.assign(zt, {
342
+ defaultVisitor: l,
343
+ convertValue: u,
344
+ isVisitable: se
345
+ });
346
+ function R(p, y) {
347
+ if (!a.isUndefined(p)) {
348
+ if (d.indexOf(p) !== -1)
349
+ throw Error("Circular reference detected in " + y.join("."));
350
+ d.push(p), a.forEach(p, function(w, g) {
351
+ (!(a.isUndefined(w) || w === null) && s.call(
352
+ t,
353
+ w,
354
+ a.isString(g) ? g.trim() : g,
355
+ y,
356
+ b
357
+ )) === !0 && R(w, y ? y.concat(g) : [g]);
358
+ }), d.pop();
359
+ }
360
+ }
361
+ if (!a.isObject(e))
362
+ throw new TypeError("data must be an object");
363
+ return R(e), t;
364
+ }
365
+ function be(e) {
366
+ const t = {
367
+ "!": "%21",
368
+ "'": "%27",
369
+ "(": "%28",
370
+ ")": "%29",
371
+ "~": "%7E",
372
+ "%20": "+",
373
+ "%00": "\0"
374
+ };
375
+ return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(r) {
376
+ return t[r];
377
+ });
378
+ }
379
+ function le(e, t) {
380
+ this._pairs = [], e && G(e, this, t);
381
+ }
382
+ const He = le.prototype;
383
+ He.append = function(t, n) {
384
+ this._pairs.push([t, n]);
385
+ };
386
+ He.toString = function(t) {
387
+ const n = t ? function(r) {
388
+ return t.call(this, r, be);
389
+ } : be;
390
+ return this._pairs.map(function(s) {
391
+ return n(s[0]) + "=" + n(s[1]);
392
+ }, "").join("&");
393
+ };
394
+ function $t(e) {
395
+ return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
396
+ }
397
+ function Ie(e, t, n) {
398
+ if (!t)
399
+ return e;
400
+ const r = n && n.encode || $t;
401
+ a.isFunction(n) && (n = {
402
+ serialize: n
403
+ });
404
+ const s = n && n.serialize;
405
+ let o;
406
+ if (s ? o = s(t, n) : o = a.isURLSearchParams(t) ? t.toString() : new le(t, n).toString(r), o) {
407
+ const i = e.indexOf("#");
408
+ i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
409
+ }
410
+ return e;
411
+ }
412
+ class we {
413
+ constructor() {
414
+ this.handlers = [];
415
+ }
416
+ /**
417
+ * Add a new interceptor to the stack
418
+ *
419
+ * @param {Function} fulfilled The function to handle `then` for a `Promise`
420
+ * @param {Function} rejected The function to handle `reject` for a `Promise`
421
+ *
422
+ * @return {Number} An ID used to remove interceptor later
423
+ */
424
+ use(t, n, r) {
425
+ return this.handlers.push({
426
+ fulfilled: t,
427
+ rejected: n,
428
+ synchronous: r ? r.synchronous : !1,
429
+ runWhen: r ? r.runWhen : null
430
+ }), this.handlers.length - 1;
431
+ }
432
+ /**
433
+ * Remove an interceptor from the stack
434
+ *
435
+ * @param {Number} id The ID that was returned by `use`
436
+ *
437
+ * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
438
+ */
439
+ eject(t) {
440
+ this.handlers[t] && (this.handlers[t] = null);
441
+ }
442
+ /**
443
+ * Clear all interceptors from the stack
444
+ *
445
+ * @returns {void}
446
+ */
447
+ clear() {
448
+ this.handlers && (this.handlers = []);
449
+ }
450
+ /**
451
+ * Iterate over all the registered interceptors
452
+ *
453
+ * This method is particularly useful for skipping over any
454
+ * interceptors that may have become `null` calling `eject`.
455
+ *
456
+ * @param {Function} fn The function to call for each interceptor
457
+ *
458
+ * @returns {void}
459
+ */
460
+ forEach(t) {
461
+ a.forEach(this.handlers, function(r) {
462
+ r !== null && t(r);
463
+ });
464
+ }
465
+ }
466
+ const Me = {
467
+ silentJSONParsing: !0,
468
+ forcedJSONParsing: !0,
469
+ clarifyTimeoutError: !1
470
+ }, Jt = typeof URLSearchParams < "u" ? URLSearchParams : le, Vt = typeof FormData < "u" ? FormData : null, Wt = typeof Blob < "u" ? Blob : null, Kt = {
471
+ isBrowser: !0,
472
+ classes: {
473
+ URLSearchParams: Jt,
474
+ FormData: Vt,
475
+ Blob: Wt
476
+ },
477
+ protocols: ["http", "https", "file", "blob", "url", "data"]
478
+ }, fe = typeof window < "u" && typeof document < "u", oe = typeof navigator == "object" && navigator || void 0, vt = fe && (!oe || ["ReactNative", "NativeScript", "NS"].indexOf(oe.product) < 0), Xt = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
479
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Gt = fe && window.location.href || "http://localhost", Qt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
480
+ __proto__: null,
481
+ hasBrowserEnv: fe,
482
+ hasStandardBrowserEnv: vt,
483
+ hasStandardBrowserWebWorkerEnv: Xt,
484
+ navigator: oe,
485
+ origin: Gt
486
+ }, Symbol.toStringTag, { value: "Module" })), O = {
487
+ ...Qt,
488
+ ...Kt
489
+ };
490
+ function Zt(e, t) {
491
+ return G(e, new O.classes.URLSearchParams(), Object.assign({
492
+ visitor: function(n, r, s, o) {
493
+ return O.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
494
+ }
495
+ }, t));
496
+ }
497
+ function Yt(e) {
498
+ return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
499
+ }
500
+ function en(e) {
501
+ const t = {}, n = Object.keys(e);
502
+ let r;
503
+ const s = n.length;
504
+ let o;
505
+ for (r = 0; r < s; r++)
506
+ o = n[r], t[o] = e[o];
507
+ return t;
508
+ }
509
+ function ze(e) {
510
+ function t(n, r, s, o) {
511
+ let i = n[o++];
512
+ if (i === "__proto__") return !0;
513
+ const c = Number.isFinite(+i), f = o >= n.length;
514
+ return i = !i && a.isArray(s) ? s.length : i, f ? (a.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !c) : ((!s[i] || !a.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && a.isArray(s[i]) && (s[i] = en(s[i])), !c);
515
+ }
516
+ if (a.isFormData(e) && a.isFunction(e.entries)) {
517
+ const n = {};
518
+ return a.forEachEntry(e, (r, s) => {
519
+ t(Yt(r), s, n, 0);
520
+ }), n;
521
+ }
522
+ return null;
523
+ }
524
+ function tn(e, t, n) {
525
+ if (a.isString(e))
526
+ try {
527
+ return (t || JSON.parse)(e), a.trim(e);
528
+ } catch (r) {
529
+ if (r.name !== "SyntaxError")
530
+ throw r;
531
+ }
532
+ return (n || JSON.stringify)(e);
533
+ }
534
+ const I = {
535
+ transitional: Me,
536
+ adapter: ["xhr", "http", "fetch"],
537
+ transformRequest: [function(t, n) {
538
+ const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = a.isObject(t);
539
+ if (o && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
540
+ return s ? JSON.stringify(ze(t)) : t;
541
+ if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t) || a.isReadableStream(t))
542
+ return t;
543
+ if (a.isArrayBufferView(t))
544
+ return t.buffer;
545
+ if (a.isURLSearchParams(t))
546
+ return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
547
+ let c;
548
+ if (o) {
549
+ if (r.indexOf("application/x-www-form-urlencoded") > -1)
550
+ return Zt(t, this.formSerializer).toString();
551
+ if ((c = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
552
+ const f = this.env && this.env.FormData;
553
+ return G(
554
+ c ? { "files[]": t } : t,
555
+ f && new f(),
556
+ this.formSerializer
557
+ );
558
+ }
559
+ }
560
+ return o || s ? (n.setContentType("application/json", !1), tn(t)) : t;
561
+ }],
562
+ transformResponse: [function(t) {
563
+ const n = this.transitional || I.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
564
+ if (a.isResponse(t) || a.isReadableStream(t))
565
+ return t;
566
+ if (t && a.isString(t) && (r && !this.responseType || s)) {
567
+ const i = !(n && n.silentJSONParsing) && s;
568
+ try {
569
+ return JSON.parse(t);
570
+ } catch (c) {
571
+ if (i)
572
+ throw c.name === "SyntaxError" ? m.from(c, m.ERR_BAD_RESPONSE, this, null, this.response) : c;
573
+ }
574
+ }
575
+ return t;
576
+ }],
577
+ /**
578
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
579
+ * timeout is not created.
580
+ */
581
+ timeout: 0,
582
+ xsrfCookieName: "XSRF-TOKEN",
583
+ xsrfHeaderName: "X-XSRF-TOKEN",
584
+ maxContentLength: -1,
585
+ maxBodyLength: -1,
586
+ env: {
587
+ FormData: O.classes.FormData,
588
+ Blob: O.classes.Blob
589
+ },
590
+ validateStatus: function(t) {
591
+ return t >= 200 && t < 300;
592
+ },
593
+ headers: {
594
+ common: {
595
+ Accept: "application/json, text/plain, */*",
596
+ "Content-Type": void 0
597
+ }
598
+ }
599
+ };
600
+ a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
601
+ I.headers[e] = {};
602
+ });
603
+ const nn = a.toObjectSet([
604
+ "age",
605
+ "authorization",
606
+ "content-length",
607
+ "content-type",
608
+ "etag",
609
+ "expires",
610
+ "from",
611
+ "host",
612
+ "if-modified-since",
613
+ "if-unmodified-since",
614
+ "last-modified",
615
+ "location",
616
+ "max-forwards",
617
+ "proxy-authorization",
618
+ "referer",
619
+ "retry-after",
620
+ "user-agent"
621
+ ]), rn = (e) => {
622
+ const t = {};
623
+ let n, r, s;
624
+ return e && e.split(`
625
+ `).forEach(function(i) {
626
+ s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && nn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
627
+ }), t;
628
+ }, Ee = Symbol("internals");
629
+ function j(e) {
630
+ return e && String(e).trim().toLowerCase();
631
+ }
632
+ function $(e) {
633
+ return e === !1 || e == null ? e : a.isArray(e) ? e.map($) : String(e);
634
+ }
635
+ function sn(e) {
636
+ const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
637
+ let r;
638
+ for (; r = n.exec(e); )
639
+ t[r[1]] = r[2];
640
+ return t;
641
+ }
642
+ const on = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
643
+ function ee(e, t, n, r, s) {
644
+ if (a.isFunction(r))
645
+ return r.call(this, t, n);
646
+ if (s && (t = n), !!a.isString(t)) {
647
+ if (a.isString(r))
648
+ return t.indexOf(r) !== -1;
649
+ if (a.isRegExp(r))
650
+ return r.test(t);
651
+ }
652
+ }
653
+ function an(e) {
654
+ return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
655
+ }
656
+ function cn(e, t) {
657
+ const n = a.toCamelCase(" " + t);
658
+ ["get", "set", "has"].forEach((r) => {
659
+ Object.defineProperty(e, r + n, {
660
+ value: function(s, o, i) {
661
+ return this[r].call(this, t, s, o, i);
662
+ },
663
+ configurable: !0
664
+ });
665
+ });
666
+ }
667
+ let A = class {
668
+ constructor(t) {
669
+ t && this.set(t);
670
+ }
671
+ set(t, n, r) {
672
+ const s = this;
673
+ function o(c, f, u) {
674
+ const l = j(f);
675
+ if (!l)
676
+ throw new Error("header name must be a non-empty string");
677
+ const d = a.findKey(s, l);
678
+ (!d || s[d] === void 0 || u === !0 || u === void 0 && s[d] !== !1) && (s[d || f] = $(c));
679
+ }
680
+ const i = (c, f) => a.forEach(c, (u, l) => o(u, l, f));
681
+ if (a.isPlainObject(t) || t instanceof this.constructor)
682
+ i(t, n);
683
+ else if (a.isString(t) && (t = t.trim()) && !on(t))
684
+ i(rn(t), n);
685
+ else if (a.isHeaders(t))
686
+ for (const [c, f] of t.entries())
687
+ o(f, c, r);
688
+ else
689
+ t != null && o(n, t, r);
690
+ return this;
691
+ }
692
+ get(t, n) {
693
+ if (t = j(t), t) {
694
+ const r = a.findKey(this, t);
695
+ if (r) {
696
+ const s = this[r];
697
+ if (!n)
698
+ return s;
699
+ if (n === !0)
700
+ return sn(s);
701
+ if (a.isFunction(n))
702
+ return n.call(this, s, r);
703
+ if (a.isRegExp(n))
704
+ return n.exec(s);
705
+ throw new TypeError("parser must be boolean|regexp|function");
706
+ }
707
+ }
708
+ }
709
+ has(t, n) {
710
+ if (t = j(t), t) {
711
+ const r = a.findKey(this, t);
712
+ return !!(r && this[r] !== void 0 && (!n || ee(this, this[r], r, n)));
713
+ }
714
+ return !1;
715
+ }
716
+ delete(t, n) {
717
+ const r = this;
718
+ let s = !1;
719
+ function o(i) {
720
+ if (i = j(i), i) {
721
+ const c = a.findKey(r, i);
722
+ c && (!n || ee(r, r[c], c, n)) && (delete r[c], s = !0);
723
+ }
724
+ }
725
+ return a.isArray(t) ? t.forEach(o) : o(t), s;
726
+ }
727
+ clear(t) {
728
+ const n = Object.keys(this);
729
+ let r = n.length, s = !1;
730
+ for (; r--; ) {
731
+ const o = n[r];
732
+ (!t || ee(this, this[o], o, t, !0)) && (delete this[o], s = !0);
733
+ }
734
+ return s;
735
+ }
736
+ normalize(t) {
737
+ const n = this, r = {};
738
+ return a.forEach(this, (s, o) => {
739
+ const i = a.findKey(r, o);
740
+ if (i) {
741
+ n[i] = $(s), delete n[o];
742
+ return;
743
+ }
744
+ const c = t ? an(o) : String(o).trim();
745
+ c !== o && delete n[o], n[c] = $(s), r[c] = !0;
746
+ }), this;
747
+ }
748
+ concat(...t) {
749
+ return this.constructor.concat(this, ...t);
750
+ }
751
+ toJSON(t) {
752
+ const n = /* @__PURE__ */ Object.create(null);
753
+ return a.forEach(this, (r, s) => {
754
+ r != null && r !== !1 && (n[s] = t && a.isArray(r) ? r.join(", ") : r);
755
+ }), n;
756
+ }
757
+ [Symbol.iterator]() {
758
+ return Object.entries(this.toJSON())[Symbol.iterator]();
759
+ }
760
+ toString() {
761
+ return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
762
+ `);
763
+ }
764
+ get [Symbol.toStringTag]() {
765
+ return "AxiosHeaders";
766
+ }
767
+ static from(t) {
768
+ return t instanceof this ? t : new this(t);
769
+ }
770
+ static concat(t, ...n) {
771
+ const r = new this(t);
772
+ return n.forEach((s) => r.set(s)), r;
773
+ }
774
+ static accessor(t) {
775
+ const r = (this[Ee] = this[Ee] = {
776
+ accessors: {}
777
+ }).accessors, s = this.prototype;
778
+ function o(i) {
779
+ const c = j(i);
780
+ r[c] || (cn(s, i), r[c] = !0);
781
+ }
782
+ return a.isArray(t) ? t.forEach(o) : o(t), this;
783
+ }
784
+ };
785
+ A.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
786
+ a.reduceDescriptors(A.prototype, ({ value: e }, t) => {
787
+ let n = t[0].toUpperCase() + t.slice(1);
788
+ return {
789
+ get: () => e,
790
+ set(r) {
791
+ this[n] = r;
792
+ }
793
+ };
794
+ });
795
+ a.freezeMethods(A);
796
+ function te(e, t) {
797
+ const n = this || I, r = t || n, s = A.from(r.headers);
798
+ let o = r.data;
799
+ return a.forEach(e, function(c) {
800
+ o = c.call(n, o, s.normalize(), t ? t.status : void 0);
801
+ }), s.normalize(), o;
802
+ }
803
+ function $e(e) {
804
+ return !!(e && e.__CANCEL__);
805
+ }
806
+ function k(e, t, n) {
807
+ m.call(this, e ?? "canceled", m.ERR_CANCELED, t, n), this.name = "CanceledError";
808
+ }
809
+ a.inherits(k, m, {
810
+ __CANCEL__: !0
811
+ });
812
+ function Je(e, t, n) {
813
+ const r = n.config.validateStatus;
814
+ !n.status || !r || r(n.status) ? e(n) : t(new m(
815
+ "Request failed with status code " + n.status,
816
+ [m.ERR_BAD_REQUEST, m.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
817
+ n.config,
818
+ n.request,
819
+ n
820
+ ));
821
+ }
822
+ function un(e) {
823
+ const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
824
+ return t && t[1] || "";
825
+ }
826
+ function ln(e, t) {
827
+ e = e || 10;
828
+ const n = new Array(e), r = new Array(e);
829
+ let s = 0, o = 0, i;
830
+ return t = t !== void 0 ? t : 1e3, function(f) {
831
+ const u = Date.now(), l = r[o];
832
+ i || (i = u), n[s] = f, r[s] = u;
833
+ let d = o, b = 0;
834
+ for (; d !== s; )
835
+ b += n[d++], d = d % e;
836
+ if (s = (s + 1) % e, s === o && (o = (o + 1) % e), u - i < t)
837
+ return;
838
+ const R = l && u - l;
839
+ return R ? Math.round(b * 1e3 / R) : void 0;
840
+ };
841
+ }
842
+ function fn(e, t) {
843
+ let n = 0, r = 1e3 / t, s, o;
844
+ const i = (u, l = Date.now()) => {
845
+ n = l, s = null, o && (clearTimeout(o), o = null), e.apply(null, u);
846
+ };
847
+ return [(...u) => {
848
+ const l = Date.now(), d = l - n;
849
+ d >= r ? i(u, l) : (s = u, o || (o = setTimeout(() => {
850
+ o = null, i(s);
851
+ }, r - d)));
852
+ }, () => s && i(s)];
853
+ }
854
+ const V = (e, t, n = 3) => {
855
+ let r = 0;
856
+ const s = ln(50, 250);
857
+ return fn((o) => {
858
+ const i = o.loaded, c = o.lengthComputable ? o.total : void 0, f = i - r, u = s(f), l = i <= c;
859
+ r = i;
860
+ const d = {
861
+ loaded: i,
862
+ total: c,
863
+ progress: c ? i / c : void 0,
864
+ bytes: f,
865
+ rate: u || void 0,
866
+ estimated: u && c && l ? (c - i) / u : void 0,
867
+ event: o,
868
+ lengthComputable: c != null,
869
+ [t ? "download" : "upload"]: !0
870
+ };
871
+ e(d);
872
+ }, n);
873
+ }, Re = (e, t) => {
874
+ const n = e != null;
875
+ return [(r) => t[0]({
876
+ lengthComputable: n,
877
+ total: e,
878
+ loaded: r
879
+ }), t[1]];
880
+ }, ge = (e) => (...t) => a.asap(() => e(...t)), dn = O.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, O.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
881
+ new URL(O.origin),
882
+ O.navigator && /(msie|trident)/i.test(O.navigator.userAgent)
883
+ ) : () => !0, pn = O.hasStandardBrowserEnv ? (
884
+ // Standard browser envs support document.cookie
885
+ {
886
+ write(e, t, n, r, s, o) {
887
+ const i = [e + "=" + encodeURIComponent(t)];
888
+ a.isNumber(n) && i.push("expires=" + new Date(n).toGMTString()), a.isString(r) && i.push("path=" + r), a.isString(s) && i.push("domain=" + s), o === !0 && i.push("secure"), document.cookie = i.join("; ");
889
+ },
890
+ read(e) {
891
+ const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
892
+ return t ? decodeURIComponent(t[3]) : null;
893
+ },
894
+ remove(e) {
895
+ this.write(e, "", Date.now() - 864e5);
896
+ }
897
+ }
898
+ ) : (
899
+ // Non-standard browser env (web workers, react-native) lack needed support.
900
+ {
901
+ write() {
902
+ },
903
+ read() {
904
+ return null;
905
+ },
906
+ remove() {
907
+ }
908
+ }
909
+ );
910
+ function hn(e) {
911
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
912
+ }
913
+ function mn(e, t) {
914
+ return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
915
+ }
916
+ function Ve(e, t) {
917
+ return e && !hn(t) ? mn(e, t) : t;
918
+ }
919
+ const Se = (e) => e instanceof A ? { ...e } : e;
920
+ function D(e, t) {
921
+ t = t || {};
922
+ const n = {};
923
+ function r(u, l, d, b) {
924
+ return a.isPlainObject(u) && a.isPlainObject(l) ? a.merge.call({ caseless: b }, u, l) : a.isPlainObject(l) ? a.merge({}, l) : a.isArray(l) ? l.slice() : l;
925
+ }
926
+ function s(u, l, d, b) {
927
+ if (a.isUndefined(l)) {
928
+ if (!a.isUndefined(u))
929
+ return r(void 0, u, d, b);
930
+ } else return r(u, l, d, b);
931
+ }
932
+ function o(u, l) {
933
+ if (!a.isUndefined(l))
934
+ return r(void 0, l);
935
+ }
936
+ function i(u, l) {
937
+ if (a.isUndefined(l)) {
938
+ if (!a.isUndefined(u))
939
+ return r(void 0, u);
940
+ } else return r(void 0, l);
941
+ }
942
+ function c(u, l, d) {
943
+ if (d in t)
944
+ return r(u, l);
945
+ if (d in e)
946
+ return r(void 0, u);
947
+ }
948
+ const f = {
949
+ url: o,
950
+ method: o,
951
+ data: o,
952
+ baseURL: i,
953
+ transformRequest: i,
954
+ transformResponse: i,
955
+ paramsSerializer: i,
956
+ timeout: i,
957
+ timeoutMessage: i,
958
+ withCredentials: i,
959
+ withXSRFToken: i,
960
+ adapter: i,
961
+ responseType: i,
962
+ xsrfCookieName: i,
963
+ xsrfHeaderName: i,
964
+ onUploadProgress: i,
965
+ onDownloadProgress: i,
966
+ decompress: i,
967
+ maxContentLength: i,
968
+ maxBodyLength: i,
969
+ beforeRedirect: i,
970
+ transport: i,
971
+ httpAgent: i,
972
+ httpsAgent: i,
973
+ cancelToken: i,
974
+ socketPath: i,
975
+ responseEncoding: i,
976
+ validateStatus: c,
977
+ headers: (u, l, d) => s(Se(u), Se(l), d, !0)
978
+ };
979
+ return a.forEach(Object.keys(Object.assign({}, e, t)), function(l) {
980
+ const d = f[l] || s, b = d(e[l], t[l], l);
981
+ a.isUndefined(b) && d !== c || (n[l] = b);
982
+ }), n;
983
+ }
984
+ const We = (e) => {
985
+ const t = D({}, e);
986
+ let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: c } = t;
987
+ t.headers = i = A.from(i), t.url = Ie(Ve(t.baseURL, t.url), e.params, e.paramsSerializer), c && i.set(
988
+ "Authorization",
989
+ "Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
990
+ );
991
+ let f;
992
+ if (a.isFormData(n)) {
993
+ if (O.hasStandardBrowserEnv || O.hasStandardBrowserWebWorkerEnv)
994
+ i.setContentType(void 0);
995
+ else if ((f = i.getContentType()) !== !1) {
996
+ const [u, ...l] = f ? f.split(";").map((d) => d.trim()).filter(Boolean) : [];
997
+ i.setContentType([u || "multipart/form-data", ...l].join("; "));
998
+ }
999
+ }
1000
+ if (O.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && dn(t.url))) {
1001
+ const u = s && o && pn.read(o);
1002
+ u && i.set(s, u);
1003
+ }
1004
+ return t;
1005
+ }, yn = typeof XMLHttpRequest < "u", bn = yn && function(e) {
1006
+ return new Promise(function(n, r) {
1007
+ const s = We(e);
1008
+ let o = s.data;
1009
+ const i = A.from(s.headers).normalize();
1010
+ let { responseType: c, onUploadProgress: f, onDownloadProgress: u } = s, l, d, b, R, p;
1011
+ function y() {
1012
+ R && R(), p && p(), s.cancelToken && s.cancelToken.unsubscribe(l), s.signal && s.signal.removeEventListener("abort", l);
1013
+ }
1014
+ let h = new XMLHttpRequest();
1015
+ h.open(s.method.toUpperCase(), s.url, !0), h.timeout = s.timeout;
1016
+ function w() {
1017
+ if (!h)
1018
+ return;
1019
+ const S = A.from(
1020
+ "getAllResponseHeaders" in h && h.getAllResponseHeaders()
1021
+ ), T = {
1022
+ data: !c || c === "text" || c === "json" ? h.responseText : h.response,
1023
+ status: h.status,
1024
+ statusText: h.statusText,
1025
+ headers: S,
1026
+ config: e,
1027
+ request: h
1028
+ };
1029
+ Je(function(F) {
1030
+ n(F), y();
1031
+ }, function(F) {
1032
+ r(F), y();
1033
+ }, T), h = null;
1034
+ }
1035
+ "onloadend" in h ? h.onloadend = w : h.onreadystatechange = function() {
1036
+ !h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(w);
1037
+ }, h.onabort = function() {
1038
+ h && (r(new m("Request aborted", m.ECONNABORTED, e, h)), h = null);
1039
+ }, h.onerror = function() {
1040
+ r(new m("Network Error", m.ERR_NETWORK, e, h)), h = null;
1041
+ }, h.ontimeout = function() {
1042
+ let P = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1043
+ const T = s.transitional || Me;
1044
+ s.timeoutErrorMessage && (P = s.timeoutErrorMessage), r(new m(
1045
+ P,
1046
+ T.clarifyTimeoutError ? m.ETIMEDOUT : m.ECONNABORTED,
1047
+ e,
1048
+ h
1049
+ )), h = null;
1050
+ }, o === void 0 && i.setContentType(null), "setRequestHeader" in h && a.forEach(i.toJSON(), function(P, T) {
1051
+ h.setRequestHeader(T, P);
1052
+ }), a.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), c && c !== "json" && (h.responseType = s.responseType), u && ([b, p] = V(u, !0), h.addEventListener("progress", b)), f && h.upload && ([d, R] = V(f), h.upload.addEventListener("progress", d), h.upload.addEventListener("loadend", R)), (s.cancelToken || s.signal) && (l = (S) => {
1053
+ h && (r(!S || S.type ? new k(null, e, h) : S), h.abort(), h = null);
1054
+ }, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
1055
+ const g = un(s.url);
1056
+ if (g && O.protocols.indexOf(g) === -1) {
1057
+ r(new m("Unsupported protocol " + g + ":", m.ERR_BAD_REQUEST, e));
1058
+ return;
1059
+ }
1060
+ h.send(o || null);
1061
+ });
1062
+ }, wn = (e, t) => {
1063
+ const { length: n } = e = e ? e.filter(Boolean) : [];
1064
+ if (t || n) {
1065
+ let r = new AbortController(), s;
1066
+ const o = function(u) {
1067
+ if (!s) {
1068
+ s = !0, c();
1069
+ const l = u instanceof Error ? u : this.reason;
1070
+ r.abort(l instanceof m ? l : new k(l instanceof Error ? l.message : l));
1071
+ }
1072
+ };
1073
+ let i = t && setTimeout(() => {
1074
+ i = null, o(new m(`timeout ${t} of ms exceeded`, m.ETIMEDOUT));
1075
+ }, t);
1076
+ const c = () => {
1077
+ e && (i && clearTimeout(i), i = null, e.forEach((u) => {
1078
+ u.unsubscribe ? u.unsubscribe(o) : u.removeEventListener("abort", o);
1079
+ }), e = null);
1080
+ };
1081
+ e.forEach((u) => u.addEventListener("abort", o));
1082
+ const { signal: f } = r;
1083
+ return f.unsubscribe = () => a.asap(c), f;
1084
+ }
1085
+ }, En = function* (e, t) {
1086
+ let n = e.byteLength;
1087
+ if (n < t) {
1088
+ yield e;
1089
+ return;
1090
+ }
1091
+ let r = 0, s;
1092
+ for (; r < n; )
1093
+ s = r + t, yield e.slice(r, s), r = s;
1094
+ }, Rn = async function* (e, t) {
1095
+ for await (const n of gn(e))
1096
+ yield* En(n, t);
1097
+ }, gn = async function* (e) {
1098
+ if (e[Symbol.asyncIterator]) {
1099
+ yield* e;
1100
+ return;
1101
+ }
1102
+ const t = e.getReader();
1103
+ try {
1104
+ for (; ; ) {
1105
+ const { done: n, value: r } = await t.read();
1106
+ if (n)
1107
+ break;
1108
+ yield r;
1109
+ }
1110
+ } finally {
1111
+ await t.cancel();
1112
+ }
1113
+ }, Oe = (e, t, n, r) => {
1114
+ const s = Rn(e, t);
1115
+ let o = 0, i, c = (f) => {
1116
+ i || (i = !0, r && r(f));
1117
+ };
1118
+ return new ReadableStream({
1119
+ async pull(f) {
1120
+ try {
1121
+ const { done: u, value: l } = await s.next();
1122
+ if (u) {
1123
+ c(), f.close();
1124
+ return;
1125
+ }
1126
+ let d = l.byteLength;
1127
+ if (n) {
1128
+ let b = o += d;
1129
+ n(b);
1130
+ }
1131
+ f.enqueue(new Uint8Array(l));
1132
+ } catch (u) {
1133
+ throw c(u), u;
1134
+ }
1135
+ },
1136
+ cancel(f) {
1137
+ return c(f), s.return();
1138
+ }
1139
+ }, {
1140
+ highWaterMark: 2
1141
+ });
1142
+ }, Q = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Ke = Q && typeof ReadableStream == "function", Sn = Q && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), ve = (e, ...t) => {
1143
+ try {
1144
+ return !!e(...t);
1145
+ } catch {
1146
+ return !1;
1147
+ }
1148
+ }, On = Ke && ve(() => {
1149
+ let e = !1;
1150
+ const t = new Request(O.origin, {
1151
+ body: new ReadableStream(),
1152
+ method: "POST",
1153
+ get duplex() {
1154
+ return e = !0, "half";
1155
+ }
1156
+ }).headers.has("Content-Type");
1157
+ return e && !t;
1158
+ }), Te = 64 * 1024, ie = Ke && ve(() => a.isReadableStream(new Response("").body)), W = {
1159
+ stream: ie && ((e) => e.body)
1160
+ };
1161
+ Q && ((e) => {
1162
+ ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
1163
+ !W[t] && (W[t] = a.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
1164
+ throw new m(`Response type '${t}' is not supported`, m.ERR_NOT_SUPPORT, r);
1165
+ });
1166
+ });
1167
+ })(new Response());
1168
+ const Tn = async (e) => {
1169
+ if (e == null)
1170
+ return 0;
1171
+ if (a.isBlob(e))
1172
+ return e.size;
1173
+ if (a.isSpecCompliantForm(e))
1174
+ return (await new Request(O.origin, {
1175
+ method: "POST",
1176
+ body: e
1177
+ }).arrayBuffer()).byteLength;
1178
+ if (a.isArrayBufferView(e) || a.isArrayBuffer(e))
1179
+ return e.byteLength;
1180
+ if (a.isURLSearchParams(e) && (e = e + ""), a.isString(e))
1181
+ return (await Sn(e)).byteLength;
1182
+ }, An = async (e, t) => {
1183
+ const n = a.toFiniteNumber(e.getContentLength());
1184
+ return n ?? Tn(t);
1185
+ }, xn = Q && (async (e) => {
1186
+ let {
1187
+ url: t,
1188
+ method: n,
1189
+ data: r,
1190
+ signal: s,
1191
+ cancelToken: o,
1192
+ timeout: i,
1193
+ onDownloadProgress: c,
1194
+ onUploadProgress: f,
1195
+ responseType: u,
1196
+ headers: l,
1197
+ withCredentials: d = "same-origin",
1198
+ fetchOptions: b
1199
+ } = We(e);
1200
+ u = u ? (u + "").toLowerCase() : "text";
1201
+ let R = wn([s, o && o.toAbortSignal()], i), p;
1202
+ const y = R && R.unsubscribe && (() => {
1203
+ R.unsubscribe();
1204
+ });
1205
+ let h;
1206
+ try {
1207
+ if (f && On && n !== "get" && n !== "head" && (h = await An(l, r)) !== 0) {
1208
+ let T = new Request(t, {
1209
+ method: "POST",
1210
+ body: r,
1211
+ duplex: "half"
1212
+ }), _;
1213
+ if (a.isFormData(r) && (_ = T.headers.get("content-type")) && l.setContentType(_), T.body) {
1214
+ const [F, M] = Re(
1215
+ h,
1216
+ V(ge(f))
1217
+ );
1218
+ r = Oe(T.body, Te, F, M);
1219
+ }
1220
+ }
1221
+ a.isString(d) || (d = d ? "include" : "omit");
1222
+ const w = "credentials" in Request.prototype;
1223
+ p = new Request(t, {
1224
+ ...b,
1225
+ signal: R,
1226
+ method: n.toUpperCase(),
1227
+ headers: l.normalize().toJSON(),
1228
+ body: r,
1229
+ duplex: "half",
1230
+ credentials: w ? d : void 0
1231
+ });
1232
+ let g = await fetch(p);
1233
+ const S = ie && (u === "stream" || u === "response");
1234
+ if (ie && (c || S && y)) {
1235
+ const T = {};
1236
+ ["status", "statusText", "headers"].forEach((de) => {
1237
+ T[de] = g[de];
1238
+ });
1239
+ const _ = a.toFiniteNumber(g.headers.get("content-length")), [F, M] = c && Re(
1240
+ _,
1241
+ V(ge(c), !0)
1242
+ ) || [];
1243
+ g = new Response(
1244
+ Oe(g.body, Te, F, () => {
1245
+ M && M(), y && y();
1246
+ }),
1247
+ T
1248
+ );
1249
+ }
1250
+ u = u || "text";
1251
+ let P = await W[a.findKey(W, u) || "text"](g, e);
1252
+ return !S && y && y(), await new Promise((T, _) => {
1253
+ Je(T, _, {
1254
+ data: P,
1255
+ headers: A.from(g.headers),
1256
+ status: g.status,
1257
+ statusText: g.statusText,
1258
+ config: e,
1259
+ request: p
1260
+ });
1261
+ });
1262
+ } catch (w) {
1263
+ throw y && y(), w && w.name === "TypeError" && /fetch/i.test(w.message) ? Object.assign(
1264
+ new m("Network Error", m.ERR_NETWORK, e, p),
1265
+ {
1266
+ cause: w.cause || w
1267
+ }
1268
+ ) : m.from(w, w && w.code, e, p);
1269
+ }
1270
+ }), ae = {
1271
+ http: It,
1272
+ xhr: bn,
1273
+ fetch: xn
1274
+ };
1275
+ a.forEach(ae, (e, t) => {
1276
+ if (e) {
1277
+ try {
1278
+ Object.defineProperty(e, "name", { value: t });
1279
+ } catch {
1280
+ }
1281
+ Object.defineProperty(e, "adapterName", { value: t });
1282
+ }
1283
+ });
1284
+ const Ae = (e) => `- ${e}`, Cn = (e) => a.isFunction(e) || e === null || e === !1, Xe = {
1285
+ getAdapter: (e) => {
1286
+ e = a.isArray(e) ? e : [e];
1287
+ const { length: t } = e;
1288
+ let n, r;
1289
+ const s = {};
1290
+ for (let o = 0; o < t; o++) {
1291
+ n = e[o];
1292
+ let i;
1293
+ if (r = n, !Cn(n) && (r = ae[(i = String(n)).toLowerCase()], r === void 0))
1294
+ throw new m(`Unknown adapter '${i}'`);
1295
+ if (r)
1296
+ break;
1297
+ s[i || "#" + o] = r;
1298
+ }
1299
+ if (!r) {
1300
+ const o = Object.entries(s).map(
1301
+ ([c, f]) => `adapter ${c} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
1302
+ );
1303
+ let i = t ? o.length > 1 ? `since :
1304
+ ` + o.map(Ae).join(`
1305
+ `) : " " + Ae(o[0]) : "as no adapter specified";
1306
+ throw new m(
1307
+ "There is no suitable adapter to dispatch the request " + i,
1308
+ "ERR_NOT_SUPPORT"
1309
+ );
1310
+ }
1311
+ return r;
1312
+ },
1313
+ adapters: ae
1314
+ };
1315
+ function ne(e) {
1316
+ if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1317
+ throw new k(null, e);
1318
+ }
1319
+ function xe(e) {
1320
+ return ne(e), e.headers = A.from(e.headers), e.data = te.call(
1321
+ e,
1322
+ e.transformRequest
1323
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Xe.getAdapter(e.adapter || I.adapter)(e).then(function(r) {
1324
+ return ne(e), r.data = te.call(
1325
+ e,
1326
+ e.transformResponse,
1327
+ r
1328
+ ), r.headers = A.from(r.headers), r;
1329
+ }, function(r) {
1330
+ return $e(r) || (ne(e), r && r.response && (r.response.data = te.call(
1331
+ e,
1332
+ e.transformResponse,
1333
+ r.response
1334
+ ), r.response.headers = A.from(r.response.headers))), Promise.reject(r);
1335
+ });
1336
+ }
1337
+ const Ge = "1.7.9", Z = {};
1338
+ ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
1339
+ Z[e] = function(r) {
1340
+ return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
1341
+ };
1342
+ });
1343
+ const Ce = {};
1344
+ Z.transitional = function(t, n, r) {
1345
+ function s(o, i) {
1346
+ return "[Axios v" + Ge + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
1347
+ }
1348
+ return (o, i, c) => {
1349
+ if (t === !1)
1350
+ throw new m(
1351
+ s(i, " has been removed" + (n ? " in " + n : "")),
1352
+ m.ERR_DEPRECATED
1353
+ );
1354
+ return n && !Ce[i] && (Ce[i] = !0, console.warn(
1355
+ s(
1356
+ i,
1357
+ " has been deprecated since v" + n + " and will be removed in the near future"
1358
+ )
1359
+ )), t ? t(o, i, c) : !0;
1360
+ };
1361
+ };
1362
+ Z.spelling = function(t) {
1363
+ return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
1364
+ };
1365
+ function Nn(e, t, n) {
1366
+ if (typeof e != "object")
1367
+ throw new m("options must be an object", m.ERR_BAD_OPTION_VALUE);
1368
+ const r = Object.keys(e);
1369
+ let s = r.length;
1370
+ for (; s-- > 0; ) {
1371
+ const o = r[s], i = t[o];
1372
+ if (i) {
1373
+ const c = e[o], f = c === void 0 || i(c, o, e);
1374
+ if (f !== !0)
1375
+ throw new m("option " + o + " must be " + f, m.ERR_BAD_OPTION_VALUE);
1376
+ continue;
1377
+ }
1378
+ if (n !== !0)
1379
+ throw new m("Unknown option " + o, m.ERR_BAD_OPTION);
1380
+ }
1381
+ }
1382
+ const J = {
1383
+ assertOptions: Nn,
1384
+ validators: Z
1385
+ }, N = J.validators;
1386
+ let B = class {
1387
+ constructor(t) {
1388
+ this.defaults = t, this.interceptors = {
1389
+ request: new we(),
1390
+ response: new we()
1391
+ };
1392
+ }
1393
+ /**
1394
+ * Dispatch a request
1395
+ *
1396
+ * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
1397
+ * @param {?Object} config
1398
+ *
1399
+ * @returns {Promise} The Promise to be fulfilled
1400
+ */
1401
+ async request(t, n) {
1402
+ try {
1403
+ return await this._request(t, n);
1404
+ } catch (r) {
1405
+ if (r instanceof Error) {
1406
+ let s = {};
1407
+ Error.captureStackTrace ? Error.captureStackTrace(s) : s = new Error();
1408
+ const o = s.stack ? s.stack.replace(/^.+\n/, "") : "";
1409
+ try {
1410
+ r.stack ? o && !String(r.stack).endsWith(o.replace(/^.+\n.+\n/, "")) && (r.stack += `
1411
+ ` + o) : r.stack = o;
1412
+ } catch {
1413
+ }
1414
+ }
1415
+ throw r;
1416
+ }
1417
+ }
1418
+ _request(t, n) {
1419
+ typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = D(this.defaults, n);
1420
+ const { transitional: r, paramsSerializer: s, headers: o } = n;
1421
+ r !== void 0 && J.assertOptions(r, {
1422
+ silentJSONParsing: N.transitional(N.boolean),
1423
+ forcedJSONParsing: N.transitional(N.boolean),
1424
+ clarifyTimeoutError: N.transitional(N.boolean)
1425
+ }, !1), s != null && (a.isFunction(s) ? n.paramsSerializer = {
1426
+ serialize: s
1427
+ } : J.assertOptions(s, {
1428
+ encode: N.function,
1429
+ serialize: N.function
1430
+ }, !0)), J.assertOptions(n, {
1431
+ baseUrl: N.spelling("baseURL"),
1432
+ withXsrfToken: N.spelling("withXSRFToken")
1433
+ }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1434
+ let i = o && a.merge(
1435
+ o.common,
1436
+ o[n.method]
1437
+ );
1438
+ o && a.forEach(
1439
+ ["delete", "get", "head", "post", "put", "patch", "common"],
1440
+ (p) => {
1441
+ delete o[p];
1442
+ }
1443
+ ), n.headers = A.concat(i, o);
1444
+ const c = [];
1445
+ let f = !0;
1446
+ this.interceptors.request.forEach(function(y) {
1447
+ typeof y.runWhen == "function" && y.runWhen(n) === !1 || (f = f && y.synchronous, c.unshift(y.fulfilled, y.rejected));
1448
+ });
1449
+ const u = [];
1450
+ this.interceptors.response.forEach(function(y) {
1451
+ u.push(y.fulfilled, y.rejected);
1452
+ });
1453
+ let l, d = 0, b;
1454
+ if (!f) {
1455
+ const p = [xe.bind(this), void 0];
1456
+ for (p.unshift.apply(p, c), p.push.apply(p, u), b = p.length, l = Promise.resolve(n); d < b; )
1457
+ l = l.then(p[d++], p[d++]);
1458
+ return l;
1459
+ }
1460
+ b = c.length;
1461
+ let R = n;
1462
+ for (d = 0; d < b; ) {
1463
+ const p = c[d++], y = c[d++];
1464
+ try {
1465
+ R = p(R);
1466
+ } catch (h) {
1467
+ y.call(this, h);
1468
+ break;
1469
+ }
1470
+ }
1471
+ try {
1472
+ l = xe.call(this, R);
1473
+ } catch (p) {
1474
+ return Promise.reject(p);
1475
+ }
1476
+ for (d = 0, b = u.length; d < b; )
1477
+ l = l.then(u[d++], u[d++]);
1478
+ return l;
1479
+ }
1480
+ getUri(t) {
1481
+ t = D(this.defaults, t);
1482
+ const n = Ve(t.baseURL, t.url);
1483
+ return Ie(n, t.params, t.paramsSerializer);
1484
+ }
1485
+ };
1486
+ a.forEach(["delete", "get", "head", "options"], function(t) {
1487
+ B.prototype[t] = function(n, r) {
1488
+ return this.request(D(r || {}, {
1489
+ method: t,
1490
+ url: n,
1491
+ data: (r || {}).data
1492
+ }));
1493
+ };
1494
+ });
1495
+ a.forEach(["post", "put", "patch"], function(t) {
1496
+ function n(r) {
1497
+ return function(o, i, c) {
1498
+ return this.request(D(c || {}, {
1499
+ method: t,
1500
+ headers: r ? {
1501
+ "Content-Type": "multipart/form-data"
1502
+ } : {},
1503
+ url: o,
1504
+ data: i
1505
+ }));
1506
+ };
1507
+ }
1508
+ B.prototype[t] = n(), B.prototype[t + "Form"] = n(!0);
1509
+ });
1510
+ let Pn = class Qe {
1511
+ constructor(t) {
1512
+ if (typeof t != "function")
1513
+ throw new TypeError("executor must be a function.");
1514
+ let n;
1515
+ this.promise = new Promise(function(o) {
1516
+ n = o;
1517
+ });
1518
+ const r = this;
1519
+ this.promise.then((s) => {
1520
+ if (!r._listeners) return;
1521
+ let o = r._listeners.length;
1522
+ for (; o-- > 0; )
1523
+ r._listeners[o](s);
1524
+ r._listeners = null;
1525
+ }), this.promise.then = (s) => {
1526
+ let o;
1527
+ const i = new Promise((c) => {
1528
+ r.subscribe(c), o = c;
1529
+ }).then(s);
1530
+ return i.cancel = function() {
1531
+ r.unsubscribe(o);
1532
+ }, i;
1533
+ }, t(function(o, i, c) {
1534
+ r.reason || (r.reason = new k(o, i, c), n(r.reason));
1535
+ });
1536
+ }
1537
+ /**
1538
+ * Throws a `CanceledError` if cancellation has been requested.
1539
+ */
1540
+ throwIfRequested() {
1541
+ if (this.reason)
1542
+ throw this.reason;
1543
+ }
1544
+ /**
1545
+ * Subscribe to the cancel signal
1546
+ */
1547
+ subscribe(t) {
1548
+ if (this.reason) {
1549
+ t(this.reason);
1550
+ return;
1551
+ }
1552
+ this._listeners ? this._listeners.push(t) : this._listeners = [t];
1553
+ }
1554
+ /**
1555
+ * Unsubscribe from the cancel signal
1556
+ */
1557
+ unsubscribe(t) {
1558
+ if (!this._listeners)
1559
+ return;
1560
+ const n = this._listeners.indexOf(t);
1561
+ n !== -1 && this._listeners.splice(n, 1);
1562
+ }
1563
+ toAbortSignal() {
1564
+ const t = new AbortController(), n = (r) => {
1565
+ t.abort(r);
1566
+ };
1567
+ return this.subscribe(n), t.signal.unsubscribe = () => this.unsubscribe(n), t.signal;
1568
+ }
1569
+ /**
1570
+ * Returns an object that contains a new `CancelToken` and a function that, when called,
1571
+ * cancels the `CancelToken`.
1572
+ */
1573
+ static source() {
1574
+ let t;
1575
+ return {
1576
+ token: new Qe(function(s) {
1577
+ t = s;
1578
+ }),
1579
+ cancel: t
1580
+ };
1581
+ }
1582
+ };
1583
+ function _n(e) {
1584
+ return function(n) {
1585
+ return e.apply(null, n);
1586
+ };
1587
+ }
1588
+ function Fn(e) {
1589
+ return a.isObject(e) && e.isAxiosError === !0;
1590
+ }
1591
+ const ce = {
1592
+ Continue: 100,
1593
+ SwitchingProtocols: 101,
1594
+ Processing: 102,
1595
+ EarlyHints: 103,
1596
+ Ok: 200,
1597
+ Created: 201,
1598
+ Accepted: 202,
1599
+ NonAuthoritativeInformation: 203,
1600
+ NoContent: 204,
1601
+ ResetContent: 205,
1602
+ PartialContent: 206,
1603
+ MultiStatus: 207,
1604
+ AlreadyReported: 208,
1605
+ ImUsed: 226,
1606
+ MultipleChoices: 300,
1607
+ MovedPermanently: 301,
1608
+ Found: 302,
1609
+ SeeOther: 303,
1610
+ NotModified: 304,
1611
+ UseProxy: 305,
1612
+ Unused: 306,
1613
+ TemporaryRedirect: 307,
1614
+ PermanentRedirect: 308,
1615
+ BadRequest: 400,
1616
+ Unauthorized: 401,
1617
+ PaymentRequired: 402,
1618
+ Forbidden: 403,
1619
+ NotFound: 404,
1620
+ MethodNotAllowed: 405,
1621
+ NotAcceptable: 406,
1622
+ ProxyAuthenticationRequired: 407,
1623
+ RequestTimeout: 408,
1624
+ Conflict: 409,
1625
+ Gone: 410,
1626
+ LengthRequired: 411,
1627
+ PreconditionFailed: 412,
1628
+ PayloadTooLarge: 413,
1629
+ UriTooLong: 414,
1630
+ UnsupportedMediaType: 415,
1631
+ RangeNotSatisfiable: 416,
1632
+ ExpectationFailed: 417,
1633
+ ImATeapot: 418,
1634
+ MisdirectedRequest: 421,
1635
+ UnprocessableEntity: 422,
1636
+ Locked: 423,
1637
+ FailedDependency: 424,
1638
+ TooEarly: 425,
1639
+ UpgradeRequired: 426,
1640
+ PreconditionRequired: 428,
1641
+ TooManyRequests: 429,
1642
+ RequestHeaderFieldsTooLarge: 431,
1643
+ UnavailableForLegalReasons: 451,
1644
+ InternalServerError: 500,
1645
+ NotImplemented: 501,
1646
+ BadGateway: 502,
1647
+ ServiceUnavailable: 503,
1648
+ GatewayTimeout: 504,
1649
+ HttpVersionNotSupported: 505,
1650
+ VariantAlsoNegotiates: 506,
1651
+ InsufficientStorage: 507,
1652
+ LoopDetected: 508,
1653
+ NotExtended: 510,
1654
+ NetworkAuthenticationRequired: 511
1655
+ };
1656
+ Object.entries(ce).forEach(([e, t]) => {
1657
+ ce[t] = e;
1658
+ });
1659
+ function Ze(e) {
1660
+ const t = new B(e), n = Ne(B.prototype.request, t);
1661
+ return a.extend(n, B.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
1662
+ return Ze(D(e, s));
1663
+ }, n;
1664
+ }
1665
+ const E = Ze(I);
1666
+ E.Axios = B;
1667
+ E.CanceledError = k;
1668
+ E.CancelToken = Pn;
1669
+ E.isCancel = $e;
1670
+ E.VERSION = Ge;
1671
+ E.toFormData = G;
1672
+ E.AxiosError = m;
1673
+ E.Cancel = E.CanceledError;
1674
+ E.all = function(t) {
1675
+ return Promise.all(t);
1676
+ };
1677
+ E.spread = _n;
1678
+ E.isAxiosError = Fn;
1679
+ E.mergeConfig = D;
1680
+ E.AxiosHeaders = A;
1681
+ E.formToJSON = (e) => ze(a.isHTMLForm(e) ? new FormData(e) : e);
1682
+ E.getAdapter = Xe.getAdapter;
1683
+ E.HttpStatusCode = ce;
1684
+ E.default = E;
1685
+ const {
1686
+ Axios: Un,
1687
+ AxiosError: kn,
1688
+ CanceledError: jn,
1689
+ isCancel: qn,
1690
+ CancelToken: Hn,
1691
+ VERSION: In,
1692
+ all: Mn,
1693
+ Cancel: zn,
1694
+ isAxiosError: $n,
1695
+ spread: Jn,
1696
+ toFormData: Vn,
1697
+ AxiosHeaders: Wn,
1698
+ HttpStatusCode: Kn,
1699
+ formToJSON: vn,
1700
+ getAdapter: Xn,
1701
+ mergeConfig: Gn
1702
+ } = E;
1703
+ export {
1704
+ E as a
1705
+ };