@opencloud-eu/web-client 4.1.0 → 4.2.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.
@@ -4,7 +4,7 @@ function Je(e, t) {
4
4
  return e.apply(t, arguments);
5
5
  };
6
6
  }
7
- const { toString: bt } = Object.prototype, { getPrototypeOf: we } = Object, { iterator: re, toStringTag: Ve } = Symbol, se = /* @__PURE__ */ ((e) => (t) => {
7
+ const { toString: bt } = Object.prototype, { getPrototypeOf: be } = Object, { iterator: re, toStringTag: Ve } = Symbol, se = /* @__PURE__ */ ((e) => (t) => {
8
8
  const n = bt.call(t);
9
9
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
10
10
  })(/* @__PURE__ */ Object.create(null)), P = (e) => (e = e.toLowerCase(), (t) => se(t) === e), oe = (e) => (t) => typeof t === e, { isArray: M } = Array, I = oe("undefined");
@@ -19,9 +19,9 @@ function wt(e) {
19
19
  const Et = oe("string"), T = oe("function"), Ke = oe("number"), W = (e) => e !== null && typeof e == "object", gt = (e) => e === !0 || e === !1, Y = (e) => {
20
20
  if (se(e) !== "object")
21
21
  return !1;
22
- const t = we(e);
22
+ const t = be(e);
23
23
  return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Ve in e) && !(re in e);
24
- }, Rt = (e) => {
24
+ }, St = (e) => {
25
25
  if (!W(e) || V(e))
26
26
  return !1;
27
27
  try {
@@ -29,7 +29,7 @@ const Et = oe("string"), T = oe("function"), Ke = oe("number"), W = (e) => e !==
29
29
  } catch {
30
30
  return !1;
31
31
  }
32
- }, St = P("Date"), Ot = P("File"), Tt = P("Blob"), At = P("FileList"), xt = (e) => W(e) && T(e.pipe), Ct = (e) => {
32
+ }, Rt = P("Date"), Ot = P("File"), Tt = P("Blob"), At = P("FileList"), xt = (e) => W(e) && T(e.pipe), Ct = (e) => {
33
33
  let t;
34
34
  return e && (typeof FormData == "function" && e instanceof FormData || T(e.append) && ((t = se(e)) === "formdata" || // detect form-data instance
35
35
  t === "object" && T(e.toString) && e.toString() === "[object FormData]"));
@@ -84,7 +84,7 @@ const Bt = (e, t, n, { allOwnKeys: r } = {}) => (K(t, (s, i) => {
84
84
  do {
85
85
  for (s = Object.getOwnPropertyNames(e), i = s.length; i-- > 0; )
86
86
  o = s[i], (!r || r(o, e, t)) && !c[o] && (t[o] = e[o], c[o] = !0);
87
- e = n !== !1 && we(e);
87
+ e = n !== !1 && be(e);
88
88
  } while (e && (!n || n(e, t)) && e !== Object.prototype);
89
89
  return t;
90
90
  }, qt = (e, t, n) => {
@@ -100,7 +100,7 @@ const Bt = (e, t, n, { allOwnKeys: r } = {}) => (K(t, (s, i) => {
100
100
  for (; t-- > 0; )
101
101
  n[t] = e[t];
102
102
  return n;
103
- }, It = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && we(Uint8Array)), Mt = (e, t) => {
103
+ }, It = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && be(Uint8Array)), Mt = (e, t) => {
104
104
  const r = (e && e[re]).call(e);
105
105
  let s;
106
106
  for (; (s = r.next()) && !s.done; ) {
@@ -188,13 +188,13 @@ const Qt = (e) => {
188
188
  isBoolean: gt,
189
189
  isObject: W,
190
190
  isPlainObject: Y,
191
- isEmptyObject: Rt,
191
+ isEmptyObject: St,
192
192
  isReadableStream: Pt,
193
193
  isRequest: Ft,
194
194
  isResponse: _t,
195
195
  isHeaders: Ut,
196
196
  isUndefined: I,
197
- isDate: St,
197
+ isDate: Rt,
198
198
  isFile: Ot,
199
199
  isBlob: Tt,
200
200
  isRegExp: Vt,
@@ -351,7 +351,7 @@ function ie(e, t, n) {
351
351
  convertValue: f,
352
352
  isVisitable: he
353
353
  });
354
- function R(u, m) {
354
+ function S(u, m) {
355
355
  if (!a.isUndefined(u)) {
356
356
  if (h.indexOf(u) !== -1)
357
357
  throw Error("Circular reference detected in " + m.join("."));
@@ -362,13 +362,13 @@ function ie(e, t, n) {
362
362
  a.isString(x) ? x.trim() : x,
363
363
  m,
364
364
  b
365
- )) === !0 && R(E, m ? m.concat(x) : [x]);
365
+ )) === !0 && S(E, m ? m.concat(x) : [x]);
366
366
  }), h.pop();
367
367
  }
368
368
  }
369
369
  if (!a.isObject(e))
370
370
  throw new TypeError("data must be an object");
371
- return R(e), t;
371
+ return S(e), t;
372
372
  }
373
373
  function Fe(e) {
374
374
  const t = {
@@ -384,10 +384,10 @@ function Fe(e) {
384
384
  return t[r];
385
385
  });
386
386
  }
387
- function Ee(e, t) {
387
+ function we(e, t) {
388
388
  this._pairs = [], e && ie(e, this, t);
389
389
  }
390
- const tt = Ee.prototype;
390
+ const tt = we.prototype;
391
391
  tt.append = function(t, n) {
392
392
  this._pairs.push([t, n]);
393
393
  };
@@ -411,7 +411,7 @@ function nt(e, t, n) {
411
411
  });
412
412
  const s = n && n.serialize;
413
413
  let i;
414
- if (s ? i = s(t, n) : i = a.isURLSearchParams(t) ? t.toString() : new Ee(t, n).toString(r), i) {
414
+ if (s ? i = s(t, n) : i = a.isURLSearchParams(t) ? t.toString() : new we(t, n).toString(r), i) {
415
415
  const o = e.indexOf("#");
416
416
  o !== -1 && (e = e.slice(0, o)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
417
417
  }
@@ -442,7 +442,7 @@ class _e {
442
442
  *
443
443
  * @param {Number} id The ID that was returned by `use`
444
444
  *
445
- * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
445
+ * @returns {void}
446
446
  */
447
447
  eject(t) {
448
448
  this.handlers[t] && (this.handlers[t] = null);
@@ -475,7 +475,7 @@ const rt = {
475
475
  silentJSONParsing: !0,
476
476
  forcedJSONParsing: !0,
477
477
  clarifyTimeoutError: !1
478
- }, an = typeof URLSearchParams < "u" ? URLSearchParams : Ee, cn = typeof FormData < "u" ? FormData : null, ln = typeof Blob < "u" ? Blob : null, un = {
478
+ }, an = typeof URLSearchParams < "u" ? URLSearchParams : we, cn = typeof FormData < "u" ? FormData : null, ln = typeof Blob < "u" ? Blob : null, un = {
479
479
  isBrowser: !0,
480
480
  classes: {
481
481
  URLSearchParams: an,
@@ -483,22 +483,22 @@ const rt = {
483
483
  Blob: ln
484
484
  },
485
485
  protocols: ["http", "https", "file", "blob", "url", "data"]
486
- }, ge = typeof window < "u" && typeof document < "u", me = typeof navigator == "object" && navigator || void 0, fn = ge && (!me || ["ReactNative", "NativeScript", "NS"].indexOf(me.product) < 0), dn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
487
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", pn = ge && window.location.href || "http://localhost", hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
486
+ }, Ee = typeof window < "u" && typeof document < "u", me = typeof navigator == "object" && navigator || void 0, fn = Ee && (!me || ["ReactNative", "NativeScript", "NS"].indexOf(me.product) < 0), dn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
487
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", pn = Ee && window.location.href || "http://localhost", hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
488
488
  __proto__: null,
489
- hasBrowserEnv: ge,
489
+ hasBrowserEnv: Ee,
490
490
  hasStandardBrowserEnv: fn,
491
491
  hasStandardBrowserWebWorkerEnv: dn,
492
492
  navigator: me,
493
493
  origin: pn
494
- }, Symbol.toStringTag, { value: "Module" })), S = {
494
+ }, Symbol.toStringTag, { value: "Module" })), R = {
495
495
  ...hn,
496
496
  ...un
497
497
  };
498
498
  function mn(e, t) {
499
- return ie(e, new S.classes.URLSearchParams(), {
499
+ return ie(e, new R.classes.URLSearchParams(), {
500
500
  visitor: function(n, r, s, i) {
501
- return S.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
501
+ return R.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
502
502
  },
503
503
  ...t
504
504
  });
@@ -593,8 +593,8 @@ const v = {
593
593
  maxContentLength: -1,
594
594
  maxBodyLength: -1,
595
595
  env: {
596
- FormData: S.classes.FormData,
597
- Blob: S.classes.Blob
596
+ FormData: R.classes.FormData,
597
+ Blob: R.classes.Blob
598
598
  },
599
599
  validateStatus: function(t) {
600
600
  return t >= 200 && t < 300;
@@ -641,14 +641,14 @@ function J(e) {
641
641
  function ee(e) {
642
642
  return e === !1 || e == null ? e : a.isArray(e) ? e.map(ee) : String(e);
643
643
  }
644
- function Rn(e) {
644
+ function Sn(e) {
645
645
  const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
646
646
  let r;
647
647
  for (; r = n.exec(e); )
648
648
  t[r[1]] = r[2];
649
649
  return t;
650
650
  }
651
- const Sn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
651
+ const Rn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
652
652
  function ue(e, t, n, r, s) {
653
653
  if (a.isFunction(r))
654
654
  return r.call(this, t, n);
@@ -689,7 +689,7 @@ let A = class {
689
689
  const o = (c, d) => a.forEach(c, (f, l) => i(f, l, d));
690
690
  if (a.isPlainObject(t) || t instanceof this.constructor)
691
691
  o(t, n);
692
- else if (a.isString(t) && (t = t.trim()) && !Sn(t))
692
+ else if (a.isString(t) && (t = t.trim()) && !Rn(t))
693
693
  o(gn(t), n);
694
694
  else if (a.isObject(t) && a.isIterable(t)) {
695
695
  let c = {}, d, f;
@@ -711,7 +711,7 @@ let A = class {
711
711
  if (!n)
712
712
  return s;
713
713
  if (n === !0)
714
- return Rn(s);
714
+ return Sn(s);
715
715
  if (a.isFunction(n))
716
716
  return n.call(this, s, r);
717
717
  if (a.isRegExp(n))
@@ -852,8 +852,8 @@ function xn(e, t) {
852
852
  b += n[h++], h = h % e;
853
853
  if (s = (s + 1) % e, s === i && (i = (i + 1) % e), f - o < t)
854
854
  return;
855
- const R = l && f - l;
856
- return R ? Math.round(b * 1e3 / R) : void 0;
855
+ const S = l && f - l;
856
+ return S ? Math.round(b * 1e3 / S) : void 0;
857
857
  };
858
858
  }
859
859
  function Cn(e, t) {
@@ -894,22 +894,24 @@ const ne = (e, t, n = 3) => {
894
894
  total: e,
895
895
  loaded: r
896
896
  }), t[1]];
897
- }, Be = (e) => (...t) => a.asap(() => e(...t)), Nn = S.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, S.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
898
- new URL(S.origin),
899
- S.navigator && /(msie|trident)/i.test(S.navigator.userAgent)
900
- ) : () => !0, Pn = S.hasStandardBrowserEnv ? (
897
+ }, Be = (e) => (...t) => a.asap(() => e(...t)), Nn = R.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, R.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
898
+ new URL(R.origin),
899
+ R.navigator && /(msie|trident)/i.test(R.navigator.userAgent)
900
+ ) : () => !0, Pn = R.hasStandardBrowserEnv ? (
901
901
  // Standard browser envs support document.cookie
902
902
  {
903
- write(e, t, n, r, s, i) {
904
- const o = [e + "=" + encodeURIComponent(t)];
905
- a.isNumber(n) && o.push("expires=" + new Date(n).toGMTString()), a.isString(r) && o.push("path=" + r), a.isString(s) && o.push("domain=" + s), i === !0 && o.push("secure"), document.cookie = o.join("; ");
903
+ write(e, t, n, r, s, i, o) {
904
+ if (typeof document > "u") return;
905
+ const c = [`${e}=${encodeURIComponent(t)}`];
906
+ a.isNumber(n) && c.push(`expires=${new Date(n).toUTCString()}`), a.isString(r) && c.push(`path=${r}`), a.isString(s) && c.push(`domain=${s}`), i === !0 && c.push("secure"), a.isString(o) && c.push(`SameSite=${o}`), document.cookie = c.join("; ");
906
907
  },
907
908
  read(e) {
908
- const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
909
- return t ? decodeURIComponent(t[3]) : null;
909
+ if (typeof document > "u") return null;
910
+ const t = document.cookie.match(new RegExp("(?:^|; )" + e + "=([^;]*)"));
911
+ return t ? decodeURIComponent(t[1]) : null;
910
912
  },
911
913
  remove(e) {
912
- this.write(e, "", Date.now() - 864e5);
914
+ this.write(e, "", Date.now() - 864e5, "/");
913
915
  }
914
916
  }
915
917
  ) : (
@@ -1006,7 +1008,7 @@ const ct = (e) => {
1006
1008
  "Authorization",
1007
1009
  "Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
1008
1010
  ), a.isFormData(n)) {
1009
- if (S.hasStandardBrowserEnv || S.hasStandardBrowserWebWorkerEnv)
1011
+ if (R.hasStandardBrowserEnv || R.hasStandardBrowserWebWorkerEnv)
1010
1012
  o.setContentType(void 0);
1011
1013
  else if (a.isFunction(n.getHeaders)) {
1012
1014
  const d = n.getHeaders(), f = ["content-type", "content-length"];
@@ -1015,7 +1017,7 @@ const ct = (e) => {
1015
1017
  });
1016
1018
  }
1017
1019
  }
1018
- if (S.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && Nn(t.url))) {
1020
+ if (R.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && Nn(t.url))) {
1019
1021
  const d = s && i && Pn.read(i);
1020
1022
  d && o.set(s, d);
1021
1023
  }
@@ -1025,9 +1027,9 @@ const ct = (e) => {
1025
1027
  const s = ct(e);
1026
1028
  let i = s.data;
1027
1029
  const o = A.from(s.headers).normalize();
1028
- let { responseType: c, onUploadProgress: d, onDownloadProgress: f } = s, l, h, b, R, u;
1030
+ let { responseType: c, onUploadProgress: d, onDownloadProgress: f } = s, l, h, b, S, u;
1029
1031
  function m() {
1030
- R && R(), u && u(), s.cancelToken && s.cancelToken.unsubscribe(l), s.signal && s.signal.removeEventListener("abort", l);
1032
+ S && S(), u && u(), s.cancelToken && s.cancelToken.unsubscribe(l), s.signal && s.signal.removeEventListener("abort", l);
1031
1033
  }
1032
1034
  let p = new XMLHttpRequest();
1033
1035
  p.open(s.method.toUpperCase(), s.url, !0), p.timeout = s.timeout;
@@ -1068,11 +1070,11 @@ const ct = (e) => {
1068
1070
  )), p = null;
1069
1071
  }, i === void 0 && o.setContentType(null), "setRequestHeader" in p && a.forEach(o.toJSON(), function(O, N) {
1070
1072
  p.setRequestHeader(N, O);
1071
- }), a.isUndefined(s.withCredentials) || (p.withCredentials = !!s.withCredentials), c && c !== "json" && (p.responseType = s.responseType), f && ([b, u] = ne(f, !0), p.addEventListener("progress", b)), d && p.upload && ([h, R] = ne(d), p.upload.addEventListener("progress", h), p.upload.addEventListener("loadend", R)), (s.cancelToken || s.signal) && (l = (g) => {
1073
+ }), a.isUndefined(s.withCredentials) || (p.withCredentials = !!s.withCredentials), c && c !== "json" && (p.responseType = s.responseType), f && ([b, u] = ne(f, !0), p.addEventListener("progress", b)), d && p.upload && ([h, S] = ne(d), p.upload.addEventListener("progress", h), p.upload.addEventListener("loadend", S)), (s.cancelToken || s.signal) && (l = (g) => {
1072
1074
  p && (r(!g || g.type ? new $(null, e, p) : g), p.abort(), p = null);
1073
1075
  }, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
1074
1076
  const x = An(s.url);
1075
- if (x && S.protocols.indexOf(x) === -1) {
1077
+ if (x && R.protocols.indexOf(x) === -1) {
1076
1078
  r(new y("Unsupported protocol " + x + ":", y.ERR_BAD_REQUEST, e));
1077
1079
  return;
1078
1080
  }
@@ -1179,7 +1181,7 @@ const ct = (e) => {
1179
1181
  return !1;
1180
1182
  const c = s && Z(qe), d = s && (typeof He == "function" ? /* @__PURE__ */ ((u) => (m) => u.encode(m))(new He()) : async (u) => new Uint8Array(await new n(u).arrayBuffer())), f = i && c && Ie(() => {
1181
1183
  let u = !1;
1182
- const m = new n(S.origin, {
1184
+ const m = new n(R.origin, {
1183
1185
  body: new qe(),
1184
1186
  method: "POST",
1185
1187
  get duplex() {
@@ -1204,7 +1206,7 @@ const ct = (e) => {
1204
1206
  if (a.isBlob(u))
1205
1207
  return u.size;
1206
1208
  if (a.isSpecCompliantForm(u))
1207
- return (await new n(S.origin, {
1209
+ return (await new n(R.origin, {
1208
1210
  method: "POST",
1209
1211
  body: u
1210
1212
  }).arrayBuffer()).byteLength;
@@ -1212,7 +1214,7 @@ const ct = (e) => {
1212
1214
  return u.byteLength;
1213
1215
  if (a.isURLSearchParams(u) && (u = u + ""), a.isString(u))
1214
1216
  return (await d(u)).byteLength;
1215
- }, R = async (u, m) => {
1217
+ }, S = async (u, m) => {
1216
1218
  const p = a.toFiniteNumber(u.getContentLength());
1217
1219
  return p ?? b(m);
1218
1220
  };
@@ -1229,8 +1231,8 @@ const ct = (e) => {
1229
1231
  responseType: C,
1230
1232
  headers: ce,
1231
1233
  withCredentials: X = "same-origin",
1232
- fetchOptions: Re
1233
- } = ct(u), Se = t || fetch;
1234
+ fetchOptions: Se
1235
+ } = ct(u), Re = t || fetch;
1234
1236
  C = C ? (C + "").toLowerCase() : "text";
1235
1237
  let G = Bn([x, g && g.toAbortSignal()], O), z = null;
1236
1238
  const k = G && G.unsubscribe && (() => {
@@ -1238,7 +1240,7 @@ const ct = (e) => {
1238
1240
  });
1239
1241
  let Oe;
1240
1242
  try {
1241
- if (B && f && p !== "get" && p !== "head" && (Oe = await R(ce, E)) !== 0) {
1243
+ if (B && f && p !== "get" && p !== "head" && (Oe = await S(ce, E)) !== 0) {
1242
1244
  let L = new n(m, {
1243
1245
  method: "POST",
1244
1246
  body: E,
@@ -1254,7 +1256,7 @@ const ct = (e) => {
1254
1256
  }
1255
1257
  a.isString(X) || (X = X ? "include" : "omit");
1256
1258
  const F = i && "credentials" in n.prototype, Te = {
1257
- ...Re,
1259
+ ...Se,
1258
1260
  signal: G,
1259
1261
  method: p.toUpperCase(),
1260
1262
  headers: ce.normalize().toJSON(),
@@ -1263,7 +1265,7 @@ const ct = (e) => {
1263
1265
  credentials: F ? X : void 0
1264
1266
  };
1265
1267
  z = i && new n(m, Te);
1266
- let U = await (i ? Se(z, Re) : Se(m, Te));
1268
+ let U = await (i ? Re(z, Se) : Re(m, Te));
1267
1269
  const Ae = l && (C === "stream" || C === "response");
1268
1270
  if (l && (N || Ae && k)) {
1269
1271
  const L = {};
@@ -1303,7 +1305,7 @@ const ct = (e) => {
1303
1305
  }
1304
1306
  };
1305
1307
  }, In = /* @__PURE__ */ new Map(), lt = (e) => {
1306
- let t = e ? e.env : {};
1308
+ let t = e && e.env || {};
1307
1309
  const { fetch: n, Request: r, Response: s } = t, i = [
1308
1310
  r,
1309
1311
  s,
@@ -1315,14 +1317,14 @@ const ct = (e) => {
1315
1317
  return f;
1316
1318
  };
1317
1319
  lt();
1318
- const ye = {
1320
+ const ge = {
1319
1321
  http: nn,
1320
1322
  xhr: Ln,
1321
1323
  fetch: {
1322
1324
  get: lt
1323
1325
  }
1324
1326
  };
1325
- a.forEach(ye, (e, t) => {
1327
+ a.forEach(ge, (e, t) => {
1326
1328
  if (e) {
1327
1329
  try {
1328
1330
  Object.defineProperty(e, "name", { value: t });
@@ -1331,36 +1333,46 @@ a.forEach(ye, (e, t) => {
1331
1333
  Object.defineProperty(e, "adapterName", { value: t });
1332
1334
  }
1333
1335
  });
1334
- const Me = (e) => `- ${e}`, Mn = (e) => a.isFunction(e) || e === null || e === !1, ut = {
1335
- getAdapter: (e, t) => {
1336
- e = a.isArray(e) ? e : [e];
1337
- const { length: n } = e;
1338
- let r, s;
1339
- const i = {};
1340
- for (let o = 0; o < n; o++) {
1341
- r = e[o];
1342
- let c;
1343
- if (s = r, !Mn(r) && (s = ye[(c = String(r)).toLowerCase()], s === void 0))
1344
- throw new y(`Unknown adapter '${c}'`);
1345
- if (s && (a.isFunction(s) || (s = s.get(t))))
1346
- break;
1347
- i[c || "#" + o] = s;
1348
- }
1349
- if (!s) {
1350
- const o = Object.entries(i).map(
1351
- ([d, f]) => `adapter ${d} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
1352
- );
1353
- let c = n ? o.length > 1 ? `since :
1336
+ const Me = (e) => `- ${e}`, Mn = (e) => a.isFunction(e) || e === null || e === !1;
1337
+ function $n(e, t) {
1338
+ e = a.isArray(e) ? e : [e];
1339
+ const { length: n } = e;
1340
+ let r, s;
1341
+ const i = {};
1342
+ for (let o = 0; o < n; o++) {
1343
+ r = e[o];
1344
+ let c;
1345
+ if (s = r, !Mn(r) && (s = ge[(c = String(r)).toLowerCase()], s === void 0))
1346
+ throw new y(`Unknown adapter '${c}'`);
1347
+ if (s && (a.isFunction(s) || (s = s.get(t))))
1348
+ break;
1349
+ i[c || "#" + o] = s;
1350
+ }
1351
+ if (!s) {
1352
+ const o = Object.entries(i).map(
1353
+ ([d, f]) => `adapter ${d} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
1354
+ );
1355
+ let c = n ? o.length > 1 ? `since :
1354
1356
  ` + o.map(Me).join(`
1355
1357
  `) : " " + Me(o[0]) : "as no adapter specified";
1356
- throw new y(
1357
- "There is no suitable adapter to dispatch the request " + c,
1358
- "ERR_NOT_SUPPORT"
1359
- );
1360
- }
1361
- return s;
1362
- },
1363
- adapters: ye
1358
+ throw new y(
1359
+ "There is no suitable adapter to dispatch the request " + c,
1360
+ "ERR_NOT_SUPPORT"
1361
+ );
1362
+ }
1363
+ return s;
1364
+ }
1365
+ const ut = {
1366
+ /**
1367
+ * Resolve an adapter from a list of adapter names or functions.
1368
+ * @type {Function}
1369
+ */
1370
+ getAdapter: $n,
1371
+ /**
1372
+ * Exposes all known adapters
1373
+ * @type {Object<string, Function|Object>}
1374
+ */
1375
+ adapters: ge
1364
1376
  };
1365
1377
  function de(e) {
1366
1378
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
@@ -1384,7 +1396,7 @@ function $e(e) {
1384
1396
  ), r.response.headers = A.from(r.response.headers))), Promise.reject(r);
1385
1397
  });
1386
1398
  }
1387
- const ft = "1.12.2", ae = {};
1399
+ const ft = "1.13.1", ae = {};
1388
1400
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
1389
1401
  ae[e] = function(r) {
1390
1402
  return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
@@ -1412,7 +1424,7 @@ ae.transitional = function(t, n, r) {
1412
1424
  ae.spelling = function(t) {
1413
1425
  return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
1414
1426
  };
1415
- function $n(e, t, n) {
1427
+ function zn(e, t, n) {
1416
1428
  if (typeof e != "object")
1417
1429
  throw new y("options must be an object", y.ERR_BAD_OPTION_VALUE);
1418
1430
  const r = Object.keys(e);
@@ -1430,7 +1442,7 @@ function $n(e, t, n) {
1430
1442
  }
1431
1443
  }
1432
1444
  const te = {
1433
- assertOptions: $n,
1445
+ assertOptions: zn,
1434
1446
  validators: ae
1435
1447
  }, _ = te.validators;
1436
1448
  let j = class {
@@ -1508,18 +1520,18 @@ let j = class {
1508
1520
  return l;
1509
1521
  }
1510
1522
  b = c.length;
1511
- let R = n;
1523
+ let S = n;
1512
1524
  for (; h < b; ) {
1513
1525
  const u = c[h++], m = c[h++];
1514
1526
  try {
1515
- R = u(R);
1527
+ S = u(S);
1516
1528
  } catch (p) {
1517
1529
  m.call(this, p);
1518
1530
  break;
1519
1531
  }
1520
1532
  }
1521
1533
  try {
1522
- l = $e.call(this, R);
1534
+ l = $e.call(this, S);
1523
1535
  } catch (u) {
1524
1536
  return Promise.reject(u);
1525
1537
  }
@@ -1557,7 +1569,7 @@ a.forEach(["post", "put", "patch"], function(t) {
1557
1569
  }
1558
1570
  j.prototype[t] = n(), j.prototype[t + "Form"] = n(!0);
1559
1571
  });
1560
- let zn = class dt {
1572
+ let Jn = class dt {
1561
1573
  constructor(t) {
1562
1574
  if (typeof t != "function")
1563
1575
  throw new TypeError("executor must be a function.");
@@ -1630,15 +1642,15 @@ let zn = class dt {
1630
1642
  };
1631
1643
  }
1632
1644
  };
1633
- function Jn(e) {
1645
+ function Vn(e) {
1634
1646
  return function(n) {
1635
1647
  return e.apply(null, n);
1636
1648
  };
1637
1649
  }
1638
- function Vn(e) {
1650
+ function Wn(e) {
1639
1651
  return a.isObject(e) && e.isAxiosError === !0;
1640
1652
  }
1641
- const be = {
1653
+ const ye = {
1642
1654
  Continue: 100,
1643
1655
  SwitchingProtocols: 101,
1644
1656
  Processing: 102,
@@ -1701,10 +1713,16 @@ const be = {
1701
1713
  InsufficientStorage: 507,
1702
1714
  LoopDetected: 508,
1703
1715
  NotExtended: 510,
1704
- NetworkAuthenticationRequired: 511
1716
+ NetworkAuthenticationRequired: 511,
1717
+ WebServerIsDown: 521,
1718
+ ConnectionTimedOut: 522,
1719
+ OriginIsUnreachable: 523,
1720
+ TimeoutOccurred: 524,
1721
+ SslHandshakeFailed: 525,
1722
+ InvalidSslCertificate: 526
1705
1723
  };
1706
- Object.entries(be).forEach(([e, t]) => {
1707
- be[t] = e;
1724
+ Object.entries(ye).forEach(([e, t]) => {
1725
+ ye[t] = e;
1708
1726
  });
1709
1727
  function pt(e) {
1710
1728
  const t = new j(e), n = Je(j.prototype.request, t);
@@ -1715,7 +1733,7 @@ function pt(e) {
1715
1733
  const w = pt(v);
1716
1734
  w.Axios = j;
1717
1735
  w.CanceledError = $;
1718
- w.CancelToken = zn;
1736
+ w.CancelToken = Jn;
1719
1737
  w.isCancel = ot;
1720
1738
  w.VERSION = ft;
1721
1739
  w.toFormData = ie;
@@ -1724,31 +1742,31 @@ w.Cancel = w.CanceledError;
1724
1742
  w.all = function(t) {
1725
1743
  return Promise.all(t);
1726
1744
  };
1727
- w.spread = Jn;
1728
- w.isAxiosError = Vn;
1745
+ w.spread = Vn;
1746
+ w.isAxiosError = Wn;
1729
1747
  w.mergeConfig = q;
1730
1748
  w.AxiosHeaders = A;
1731
1749
  w.formToJSON = (e) => st(a.isHTMLForm(e) ? new FormData(e) : e);
1732
1750
  w.getAdapter = ut.getAdapter;
1733
- w.HttpStatusCode = be;
1751
+ w.HttpStatusCode = ye;
1734
1752
  w.default = w;
1735
1753
  const {
1736
- Axios: Xn,
1737
- AxiosError: Gn,
1738
- CanceledError: Qn,
1739
- isCancel: Zn,
1740
- CancelToken: Yn,
1741
- VERSION: er,
1742
- all: tr,
1743
- Cancel: nr,
1744
- isAxiosError: rr,
1745
- spread: sr,
1746
- toFormData: or,
1747
- AxiosHeaders: ir,
1748
- HttpStatusCode: ar,
1749
- formToJSON: cr,
1750
- getAdapter: lr,
1751
- mergeConfig: ur
1754
+ Axios: Gn,
1755
+ AxiosError: Qn,
1756
+ CanceledError: Zn,
1757
+ isCancel: Yn,
1758
+ CancelToken: er,
1759
+ VERSION: tr,
1760
+ all: nr,
1761
+ Cancel: rr,
1762
+ isAxiosError: sr,
1763
+ spread: or,
1764
+ toFormData: ir,
1765
+ AxiosHeaders: ar,
1766
+ HttpStatusCode: cr,
1767
+ formToJSON: lr,
1768
+ getAdapter: ur,
1769
+ mergeConfig: fr
1752
1770
  } = w;
1753
1771
  export {
1754
1772
  w as a