oauth0-js-lib 2.2.8 → 2.2.11

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.
package/dist/index.es.js CHANGED
@@ -1,24 +1,29 @@
1
- var Un = Object.defineProperty;
2
- var xn = (e, t, r) => t in e ? Un(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
- var x = (e, t, r) => xn(e, typeof t != "symbol" ? t + "" : t, r);
4
- const Fn = {
5
- baseUrl: "",
1
+ var xn = Object.defineProperty;
2
+ var Fn = (e, t, r) => t in e ? xn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
+ var k = (e, t, r) => Fn(e, typeof t != "symbol" ? t + "" : t, r);
4
+ const Mn = {
5
+ baseUrl: jn(),
6
6
  createEndpoint: "/api/oauth0/create",
7
7
  authEventEndpoint: "/api/oauth0/auth-events",
8
- authConfirmEndpoint: "/api/oauth0/auth-confirm"
9
- }, Mn = typeof __OAUTH_LIB_CONFIG__ < "u" ? __OAUTH_LIB_CONFIG__ : void 0, kn = typeof globalThis < "u" && globalThis.OAUTH_LIB_CONFIG ? globalThis.OAUTH_LIB_CONFIG : void 0;
8
+ authConfirmEndpoint: "/api/oauth0/auth-confirm",
9
+ linkType: "WEB_APP"
10
+ }, Dn = typeof __OAUTH_LIB_CONFIG__ < "u" ? __OAUTH_LIB_CONFIG__ : void 0, qn = typeof globalThis < "u" && globalThis.OAUTH_LIB_CONFIG ? globalThis.OAUTH_LIB_CONFIG : void 0;
10
11
  let nt = {
11
- ...Fn,
12
12
  ...Mn,
13
- ...kn
13
+ ...Dn,
14
+ ...qn
14
15
  };
15
- function Vo(e) {
16
+ function Jo(e) {
16
17
  nt = { ...nt, ...e };
17
18
  }
18
- function Dn() {
19
+ function on() {
19
20
  return nt;
20
21
  }
21
- const qn = `.oauth-modal-overlay {\r
22
+ function jn() {
23
+ var e, t;
24
+ return typeof window < "u" && ((e = window.location) != null && e.origin) ? window.location.origin : typeof globalThis < "u" && ((t = globalThis.location) != null && t.origin) ? globalThis.location.origin : "";
25
+ }
26
+ const Hn = `.oauth-modal-overlay {\r
22
27
  position: fixed;\r
23
28
  top: 0;\r
24
29
  left: 0;\r
@@ -188,7 +193,7 @@ const qn = `.oauth-modal-overlay {\r
188
193
  margin-bottom: 10px;\r
189
194
  }`;
190
195
  var oe = {}, Le, ht;
191
- function jn() {
196
+ function zn() {
192
197
  return ht || (ht = 1, Le = function() {
193
198
  return typeof Promise == "function" && Promise.prototype && Promise.prototype.then;
194
199
  }), Le;
@@ -301,7 +306,7 @@ function at() {
301
306
  })(_e)), _e;
302
307
  }
303
308
  var ve, mt;
304
- function Hn() {
309
+ function $n() {
305
310
  if (mt) return ve;
306
311
  mt = 1;
307
312
  function e() {
@@ -326,7 +331,7 @@ function Hn() {
326
331
  }, ve = e, ve;
327
332
  }
328
333
  var Ue, yt;
329
- function zn() {
334
+ function Vn() {
330
335
  if (yt) return Ue;
331
336
  yt = 1;
332
337
  function e(t) {
@@ -345,8 +350,8 @@ function zn() {
345
350
  return this.reservedBit[t * this.size + r];
346
351
  }, Ue = e, Ue;
347
352
  }
348
- var xe = {}, wt;
349
- function Vn() {
353
+ var ke = {}, wt;
354
+ function Jn() {
350
355
  return wt || (wt = 1, (function(e) {
351
356
  const t = Z().getSymbolSize;
352
357
  e.getRowColCoords = function(n) {
@@ -364,14 +369,14 @@ function Vn() {
364
369
  a === s - 1 && u === 0 || o.push([i[a], i[u]]);
365
370
  return o;
366
371
  };
367
- })(xe)), xe;
372
+ })(ke)), ke;
368
373
  }
369
- var Fe = {}, bt;
370
- function $n() {
371
- if (bt) return Fe;
374
+ var xe = {}, bt;
375
+ function Kn() {
376
+ if (bt) return xe;
372
377
  bt = 1;
373
378
  const e = Z().getSymbolSize, t = 7;
374
- return Fe.getPositions = function(n) {
379
+ return xe.getPositions = function(n) {
375
380
  const o = e(n);
376
381
  return [
377
382
  // top-left
@@ -381,10 +386,10 @@ function $n() {
381
386
  // bottom-left
382
387
  [0, o - t]
383
388
  ];
384
- }, Fe;
389
+ }, xe;
385
390
  }
386
- var Me = {}, Et;
387
- function Jn() {
391
+ var Fe = {}, Et;
392
+ function Wn() {
388
393
  return Et || (Et = 1, (function(e) {
389
394
  e.Patterns = {
390
395
  PATTERN000: 0,
@@ -408,12 +413,12 @@ function Jn() {
408
413
  return e.isValid(o) ? parseInt(o, 10) : void 0;
409
414
  }, e.getPenaltyN1 = function(o) {
410
415
  const i = o.size;
411
- let s = 0, a = 0, u = 0, c = null, l = null;
416
+ let s = 0, a = 0, u = 0, l = null, c = null;
412
417
  for (let h = 0; h < i; h++) {
413
- a = u = 0, c = l = null;
418
+ a = u = 0, l = c = null;
414
419
  for (let m = 0; m < i; m++) {
415
420
  let y = o.get(h, m);
416
- y === c ? a++ : (a >= 5 && (s += t.N1 + (a - 5)), c = y, a = 1), y = o.get(m, h), y === l ? u++ : (u >= 5 && (s += t.N1 + (u - 5)), l = y, u = 1);
421
+ y === l ? a++ : (a >= 5 && (s += t.N1 + (a - 5)), l = y, a = 1), y = o.get(m, h), y === c ? u++ : (u >= 5 && (s += t.N1 + (u - 5)), c = y, u = 1);
417
422
  }
418
423
  a >= 5 && (s += t.N1 + (a - 5)), u >= 5 && (s += t.N1 + (u - 5));
419
424
  }
@@ -423,17 +428,17 @@ function Jn() {
423
428
  let s = 0;
424
429
  for (let a = 0; a < i - 1; a++)
425
430
  for (let u = 0; u < i - 1; u++) {
426
- const c = o.get(a, u) + o.get(a, u + 1) + o.get(a + 1, u) + o.get(a + 1, u + 1);
427
- (c === 4 || c === 0) && s++;
431
+ const l = o.get(a, u) + o.get(a, u + 1) + o.get(a + 1, u) + o.get(a + 1, u + 1);
432
+ (l === 4 || l === 0) && s++;
428
433
  }
429
434
  return s * t.N2;
430
435
  }, e.getPenaltyN3 = function(o) {
431
436
  const i = o.size;
432
437
  let s = 0, a = 0, u = 0;
433
- for (let c = 0; c < i; c++) {
438
+ for (let l = 0; l < i; l++) {
434
439
  a = u = 0;
435
- for (let l = 0; l < i; l++)
436
- a = a << 1 & 2047 | o.get(c, l), l >= 10 && (a === 1488 || a === 93) && s++, u = u << 1 & 2047 | o.get(l, c), l >= 10 && (u === 1488 || u === 93) && s++;
440
+ for (let c = 0; c < i; c++)
441
+ a = a << 1 & 2047 | o.get(l, c), c >= 10 && (a === 1488 || a === 93) && s++, u = u << 1 & 2047 | o.get(c, l), c >= 10 && (u === 1488 || u === 93) && s++;
437
442
  }
438
443
  return s * t.N3;
439
444
  }, e.getPenaltyN4 = function(o) {
@@ -472,17 +477,17 @@ function Jn() {
472
477
  }, e.getBestMask = function(o, i) {
473
478
  const s = Object.keys(e.Patterns).length;
474
479
  let a = 0, u = 1 / 0;
475
- for (let c = 0; c < s; c++) {
476
- i(c), e.applyMask(c, o);
477
- const l = e.getPenaltyN1(o) + e.getPenaltyN2(o) + e.getPenaltyN3(o) + e.getPenaltyN4(o);
478
- e.applyMask(c, o), l < u && (u = l, a = c);
480
+ for (let l = 0; l < s; l++) {
481
+ i(l), e.applyMask(l, o);
482
+ const c = e.getPenaltyN1(o) + e.getPenaltyN2(o) + e.getPenaltyN3(o) + e.getPenaltyN4(o);
483
+ e.applyMask(l, o), c < u && (u = c, a = l);
479
484
  }
480
485
  return a;
481
486
  };
482
- })(Me)), Me;
487
+ })(Fe)), Fe;
483
488
  }
484
489
  var we = {}, Ct;
485
- function rn() {
490
+ function sn() {
486
491
  if (Ct) return we;
487
492
  Ct = 1;
488
493
  const e = at(), t = [
@@ -838,9 +843,9 @@ function rn() {
838
843
  }
839
844
  }, we;
840
845
  }
841
- var ke = {}, ce = {}, St;
842
- function Kn() {
843
- if (St) return ce;
846
+ var Me = {}, le = {}, St;
847
+ function Gn() {
848
+ if (St) return le;
844
849
  St = 1;
845
850
  const e = new Uint8Array(512), t = new Uint8Array(256);
846
851
  return (function() {
@@ -849,19 +854,19 @@ function Kn() {
849
854
  e[o] = n, t[n] = o, n <<= 1, n & 256 && (n ^= 285);
850
855
  for (let o = 255; o < 512; o++)
851
856
  e[o] = e[o - 255];
852
- })(), ce.log = function(n) {
857
+ })(), le.log = function(n) {
853
858
  if (n < 1) throw new Error("log(" + n + ")");
854
859
  return t[n];
855
- }, ce.exp = function(n) {
860
+ }, le.exp = function(n) {
856
861
  return e[n];
857
- }, ce.mul = function(n, o) {
862
+ }, le.mul = function(n, o) {
858
863
  return n === 0 || o === 0 ? 0 : e[t[n] + t[o]];
859
- }, ce;
864
+ }, le;
860
865
  }
861
866
  var Rt;
862
- function Wn() {
867
+ function Qn() {
863
868
  return Rt || (Rt = 1, (function(e) {
864
- const t = Kn();
869
+ const t = Gn();
865
870
  e.mul = function(n, o) {
866
871
  const i = new Uint8Array(n.length + o.length - 1);
867
872
  for (let s = 0; s < n.length; s++)
@@ -885,13 +890,13 @@ function Wn() {
885
890
  o = e.mul(o, new Uint8Array([1, t.exp(i)]));
886
891
  return o;
887
892
  };
888
- })(ke)), ke;
893
+ })(Me)), Me;
889
894
  }
890
895
  var De, Tt;
891
- function Gn() {
896
+ function Yn() {
892
897
  if (Tt) return De;
893
898
  Tt = 1;
894
- const e = Wn();
899
+ const e = Qn();
895
900
  function t(r) {
896
901
  this.genPoly = void 0, this.degree = r, this.degree && this.initialize(this.degree);
897
902
  }
@@ -911,13 +916,13 @@ function Gn() {
911
916
  }, De = t, De;
912
917
  }
913
918
  var qe = {}, je = {}, He = {}, At;
914
- function on() {
919
+ function an() {
915
920
  return At || (At = 1, He.isValid = function(t) {
916
921
  return !isNaN(t) && t >= 1 && t <= 40;
917
922
  }), He;
918
923
  }
919
924
  var z = {}, Bt;
920
- function sn() {
925
+ function un() {
921
926
  if (Bt) return z;
922
927
  Bt = 1;
923
928
  const e = "[0-9]+", t = "[A-Z $%*+\\-./:]+";
@@ -935,10 +940,10 @@ function sn() {
935
940
  return s.test(u);
936
941
  }, z;
937
942
  }
938
- var Nt;
943
+ var Pt;
939
944
  function ee() {
940
- return Nt || (Nt = 1, (function(e) {
941
- const t = on(), r = sn();
945
+ return Pt || (Pt = 1, (function(e) {
946
+ const t = an(), r = un();
942
947
  e.NUMERIC = {
943
948
  id: "Numeric",
944
949
  bit: 1,
@@ -997,28 +1002,28 @@ function ee() {
997
1002
  };
998
1003
  })(je)), je;
999
1004
  }
1000
- var Pt;
1001
- function Qn() {
1002
- return Pt || (Pt = 1, (function(e) {
1003
- const t = Z(), r = rn(), n = at(), o = ee(), i = on(), s = 7973, a = t.getBCHDigit(s);
1005
+ var Nt;
1006
+ function Xn() {
1007
+ return Nt || (Nt = 1, (function(e) {
1008
+ const t = Z(), r = sn(), n = at(), o = ee(), i = an(), s = 7973, a = t.getBCHDigit(s);
1004
1009
  function u(m, y, d) {
1005
1010
  for (let p = 1; p <= 40; p++)
1006
1011
  if (y <= e.getCapacity(p, d, m))
1007
1012
  return p;
1008
1013
  }
1009
- function c(m, y) {
1014
+ function l(m, y) {
1010
1015
  return o.getCharCountIndicator(m, y) + 4;
1011
1016
  }
1012
- function l(m, y) {
1017
+ function c(m, y) {
1013
1018
  let d = 0;
1014
1019
  return m.forEach(function(p) {
1015
- const g = c(p.mode, y);
1020
+ const g = l(p.mode, y);
1016
1021
  d += g + p.getBitsLength();
1017
1022
  }), d;
1018
1023
  }
1019
1024
  function h(m, y) {
1020
1025
  for (let d = 1; d <= 40; d++)
1021
- if (l(m, d) <= e.getCapacity(d, y, o.MIXED))
1026
+ if (c(m, d) <= e.getCapacity(d, y, o.MIXED))
1022
1027
  return d;
1023
1028
  }
1024
1029
  e.from = function(y, d) {
@@ -1027,9 +1032,9 @@ function Qn() {
1027
1032
  if (!i.isValid(y))
1028
1033
  throw new Error("Invalid QR Code version");
1029
1034
  typeof p > "u" && (p = o.BYTE);
1030
- const g = t.getSymbolTotalCodewords(y), w = r.getTotalCodewordsCount(y, d), P = (g - w) * 8;
1031
- if (p === o.MIXED) return P;
1032
- const E = P - c(p, y);
1035
+ const g = t.getSymbolTotalCodewords(y), w = r.getTotalCodewordsCount(y, d), N = (g - w) * 8;
1036
+ if (p === o.MIXED) return N;
1037
+ const E = N - l(p, y);
1033
1038
  switch (p) {
1034
1039
  case o.NUMERIC:
1035
1040
  return Math.floor(E / 10 * 3);
@@ -1064,7 +1069,7 @@ function Qn() {
1064
1069
  })(qe)), qe;
1065
1070
  }
1066
1071
  var ze = {}, Ot;
1067
- function Yn() {
1072
+ function Zn() {
1068
1073
  if (Ot) return ze;
1069
1074
  Ot = 1;
1070
1075
  const e = Z(), t = 1335, r = 21522, n = e.getBCHDigit(t);
@@ -1076,9 +1081,9 @@ function Yn() {
1076
1081
  return (a << 10 | u) ^ r;
1077
1082
  }, ze;
1078
1083
  }
1079
- var Ve = {}, $e, Lt;
1080
- function Xn() {
1081
- if (Lt) return $e;
1084
+ var $e = {}, Ve, Lt;
1085
+ function er() {
1086
+ if (Lt) return Ve;
1082
1087
  Lt = 1;
1083
1088
  const e = ee();
1084
1089
  function t(r) {
@@ -1096,10 +1101,10 @@ function Xn() {
1096
1101
  i = this.data.substr(o, 3), s = parseInt(i, 10), n.put(s, 10);
1097
1102
  const a = this.data.length - o;
1098
1103
  a > 0 && (i = this.data.substr(o), s = parseInt(i, 10), n.put(s, a * 3 + 1));
1099
- }, $e = t, $e;
1104
+ }, Ve = t, Ve;
1100
1105
  }
1101
1106
  var Je, It;
1102
- function Zn() {
1107
+ function tr() {
1103
1108
  if (It) return Je;
1104
1109
  It = 1;
1105
1110
  const e = ee(), t = [
@@ -1168,7 +1173,7 @@ function Zn() {
1168
1173
  }, Je = r, Je;
1169
1174
  }
1170
1175
  var Ke, _t;
1171
- function er() {
1176
+ function nr() {
1172
1177
  if (_t) return Ke;
1173
1178
  _t = 1;
1174
1179
  const e = ee();
@@ -1187,7 +1192,7 @@ function er() {
1187
1192
  }, Ke = t, Ke;
1188
1193
  }
1189
1194
  var We, vt;
1190
- function tr() {
1195
+ function rr() {
1191
1196
  if (vt) return We;
1192
1197
  vt = 1;
1193
1198
  const e = ee(), t = Z();
@@ -1218,7 +1223,7 @@ Make sure your charset is UTF-8`
1218
1223
  }, We = r, We;
1219
1224
  }
1220
1225
  var Ge = { exports: {} }, Ut;
1221
- function nr() {
1226
+ function or() {
1222
1227
  return Ut || (Ut = 1, (function(e) {
1223
1228
  var t = {
1224
1229
  single_source_shortest_paths: function(r, n, o) {
@@ -1226,10 +1231,10 @@ function nr() {
1226
1231
  s[n] = 0;
1227
1232
  var a = t.PriorityQueue.make();
1228
1233
  a.push(n, 0);
1229
- for (var u, c, l, h, m, y, d, p, g; !a.empty(); ) {
1230
- u = a.pop(), c = u.value, h = u.cost, m = r[c] || {};
1231
- for (l in m)
1232
- m.hasOwnProperty(l) && (y = m[l], d = h + y, p = s[l], g = typeof s[l] > "u", (g || p > d) && (s[l] = d, a.push(l, d), i[l] = c));
1234
+ for (var u, l, c, h, m, y, d, p, g; !a.empty(); ) {
1235
+ u = a.pop(), l = u.value, h = u.cost, m = r[l] || {};
1236
+ for (c in m)
1237
+ m.hasOwnProperty(c) && (y = m[c], d = h + y, p = s[c], g = typeof s[c] > "u", (g || p > d) && (s[c] = d, a.push(c, d), i[c] = l));
1233
1238
  }
1234
1239
  if (typeof o < "u" && typeof s[o] > "u") {
1235
1240
  var w = ["Could not find a path from ", n, " to ", o, "."].join("");
@@ -1285,29 +1290,29 @@ function nr() {
1285
1290
  e.exports = t;
1286
1291
  })(Ge)), Ge.exports;
1287
1292
  }
1288
- var xt;
1289
- function rr() {
1290
- return xt || (xt = 1, (function(e) {
1291
- const t = ee(), r = Xn(), n = Zn(), o = er(), i = tr(), s = sn(), a = Z(), u = nr();
1292
- function c(w) {
1293
+ var kt;
1294
+ function ir() {
1295
+ return kt || (kt = 1, (function(e) {
1296
+ const t = ee(), r = er(), n = tr(), o = nr(), i = rr(), s = un(), a = Z(), u = or();
1297
+ function l(w) {
1293
1298
  return unescape(encodeURIComponent(w)).length;
1294
1299
  }
1295
- function l(w, P, E) {
1300
+ function c(w, N, E) {
1296
1301
  const R = [];
1297
1302
  let _;
1298
1303
  for (; (_ = w.exec(E)) !== null; )
1299
1304
  R.push({
1300
1305
  data: _[0],
1301
1306
  index: _.index,
1302
- mode: P,
1307
+ mode: N,
1303
1308
  length: _[0].length
1304
1309
  });
1305
1310
  return R;
1306
1311
  }
1307
1312
  function h(w) {
1308
- const P = l(s.NUMERIC, t.NUMERIC, w), E = l(s.ALPHANUMERIC, t.ALPHANUMERIC, w);
1313
+ const N = c(s.NUMERIC, t.NUMERIC, w), E = c(s.ALPHANUMERIC, t.ALPHANUMERIC, w);
1309
1314
  let R, _;
1310
- return a.isKanjiModeEnabled() ? (R = l(s.BYTE, t.BYTE, w), _ = l(s.KANJI, t.KANJI, w)) : (R = l(s.BYTE_KANJI, t.BYTE, w), _ = []), P.concat(E, R, _).sort(function(S, A) {
1315
+ return a.isKanjiModeEnabled() ? (R = c(s.BYTE, t.BYTE, w), _ = c(s.KANJI, t.KANJI, w)) : (R = c(s.BYTE_KANJI, t.BYTE, w), _ = []), N.concat(E, R, _).sort(function(S, A) {
1311
1316
  return S.index - A.index;
1312
1317
  }).map(function(S) {
1313
1318
  return {
@@ -1317,8 +1322,8 @@ function rr() {
1317
1322
  };
1318
1323
  });
1319
1324
  }
1320
- function m(w, P) {
1321
- switch (P) {
1325
+ function m(w, N) {
1326
+ switch (N) {
1322
1327
  case t.NUMERIC:
1323
1328
  return r.getBitsLength(w);
1324
1329
  case t.ALPHANUMERIC:
@@ -1330,44 +1335,44 @@ function rr() {
1330
1335
  }
1331
1336
  }
1332
1337
  function y(w) {
1333
- return w.reduce(function(P, E) {
1334
- const R = P.length - 1 >= 0 ? P[P.length - 1] : null;
1335
- return R && R.mode === E.mode ? (P[P.length - 1].data += E.data, P) : (P.push(E), P);
1338
+ return w.reduce(function(N, E) {
1339
+ const R = N.length - 1 >= 0 ? N[N.length - 1] : null;
1340
+ return R && R.mode === E.mode ? (N[N.length - 1].data += E.data, N) : (N.push(E), N);
1336
1341
  }, []);
1337
1342
  }
1338
1343
  function d(w) {
1339
- const P = [];
1344
+ const N = [];
1340
1345
  for (let E = 0; E < w.length; E++) {
1341
1346
  const R = w[E];
1342
1347
  switch (R.mode) {
1343
1348
  case t.NUMERIC:
1344
- P.push([
1349
+ N.push([
1345
1350
  R,
1346
1351
  { data: R.data, mode: t.ALPHANUMERIC, length: R.length },
1347
1352
  { data: R.data, mode: t.BYTE, length: R.length }
1348
1353
  ]);
1349
1354
  break;
1350
1355
  case t.ALPHANUMERIC:
1351
- P.push([
1356
+ N.push([
1352
1357
  R,
1353
1358
  { data: R.data, mode: t.BYTE, length: R.length }
1354
1359
  ]);
1355
1360
  break;
1356
1361
  case t.KANJI:
1357
- P.push([
1362
+ N.push([
1358
1363
  R,
1359
- { data: R.data, mode: t.BYTE, length: c(R.data) }
1364
+ { data: R.data, mode: t.BYTE, length: l(R.data) }
1360
1365
  ]);
1361
1366
  break;
1362
1367
  case t.BYTE:
1363
- P.push([
1364
- { data: R.data, mode: t.BYTE, length: c(R.data) }
1368
+ N.push([
1369
+ { data: R.data, mode: t.BYTE, length: l(R.data) }
1365
1370
  ]);
1366
1371
  }
1367
1372
  }
1368
- return P;
1373
+ return N;
1369
1374
  }
1370
- function p(w, P) {
1375
+ function p(w, N) {
1371
1376
  const E = {}, R = { start: {} };
1372
1377
  let _ = ["start"];
1373
1378
  for (let b = 0; b < w.length; b++) {
@@ -1375,9 +1380,9 @@ function rr() {
1375
1380
  for (let C = 0; C < S.length; C++) {
1376
1381
  const L = S[C], B = "" + b + C;
1377
1382
  A.push(B), E[B] = { node: L, lastCount: 0 }, R[B] = {};
1378
- for (let N = 0; N < _.length; N++) {
1379
- const T = _[N];
1380
- E[T] && E[T].node.mode === L.mode ? (R[T][B] = m(E[T].lastCount + L.length, L.mode) - m(E[T].lastCount, L.mode), E[T].lastCount += L.length) : (E[T] && (E[T].lastCount = L.length), R[T][B] = m(L.length, L.mode) + 4 + t.getCharCountIndicator(L.mode, P));
1383
+ for (let P = 0; P < _.length; P++) {
1384
+ const T = _[P];
1385
+ E[T] && E[T].node.mode === L.mode ? (R[T][B] = m(E[T].lastCount + L.length, L.mode) - m(E[T].lastCount, L.mode), E[T].lastCount += L.length) : (E[T] && (E[T].lastCount = L.length), R[T][B] = m(L.length, L.mode) + 4 + t.getCharCountIndicator(L.mode, N));
1381
1386
  }
1382
1387
  }
1383
1388
  _ = A;
@@ -1386,10 +1391,10 @@ function rr() {
1386
1391
  R[_[b]].end = 0;
1387
1392
  return { map: R, table: E };
1388
1393
  }
1389
- function g(w, P) {
1394
+ function g(w, N) {
1390
1395
  let E;
1391
1396
  const R = t.getBestModeForData(w);
1392
- if (E = t.from(P, R), E !== t.BYTE && E.bit < R.bit)
1397
+ if (E = t.from(N, R), E !== t.BYTE && E.bit < R.bit)
1393
1398
  throw new Error('"' + w + '" cannot be encoded with mode ' + t.toString(E) + `.
1394
1399
  Suggested mode is: ` + t.toString(R));
1395
1400
  switch (E === t.KANJI && !a.isKanjiModeEnabled() && (E = t.BYTE), E) {
@@ -1403,35 +1408,35 @@ function rr() {
1403
1408
  return new o(w);
1404
1409
  }
1405
1410
  }
1406
- e.fromArray = function(P) {
1407
- return P.reduce(function(E, R) {
1411
+ e.fromArray = function(N) {
1412
+ return N.reduce(function(E, R) {
1408
1413
  return typeof R == "string" ? E.push(g(R, null)) : R.data && E.push(g(R.data, R.mode)), E;
1409
1414
  }, []);
1410
- }, e.fromString = function(P, E) {
1411
- const R = h(P, a.isKanjiModeEnabled()), _ = d(R), b = p(_, E), S = u.find_path(b.map, "start", "end"), A = [];
1415
+ }, e.fromString = function(N, E) {
1416
+ const R = h(N, a.isKanjiModeEnabled()), _ = d(R), b = p(_, E), S = u.find_path(b.map, "start", "end"), A = [];
1412
1417
  for (let C = 1; C < S.length - 1; C++)
1413
1418
  A.push(b.table[S[C]].node);
1414
1419
  return e.fromArray(y(A));
1415
- }, e.rawSplit = function(P) {
1420
+ }, e.rawSplit = function(N) {
1416
1421
  return e.fromArray(
1417
- h(P, a.isKanjiModeEnabled())
1422
+ h(N, a.isKanjiModeEnabled())
1418
1423
  );
1419
1424
  };
1420
- })(Ve)), Ve;
1425
+ })($e)), $e;
1421
1426
  }
1422
- var Ft;
1423
- function or() {
1424
- if (Ft) return Ie;
1425
- Ft = 1;
1426
- const e = Z(), t = at(), r = Hn(), n = zn(), o = Vn(), i = $n(), s = Jn(), a = rn(), u = Gn(), c = Qn(), l = Yn(), h = ee(), m = rr();
1427
+ var xt;
1428
+ function sr() {
1429
+ if (xt) return Ie;
1430
+ xt = 1;
1431
+ const e = Z(), t = at(), r = $n(), n = Vn(), o = Jn(), i = Kn(), s = Wn(), a = sn(), u = Yn(), l = Xn(), c = Zn(), h = ee(), m = ir();
1427
1432
  function y(b, S) {
1428
1433
  const A = b.size, C = i.getPositions(S);
1429
1434
  for (let L = 0; L < C.length; L++) {
1430
- const B = C[L][0], N = C[L][1];
1435
+ const B = C[L][0], P = C[L][1];
1431
1436
  for (let T = -1; T <= 7; T++)
1432
1437
  if (!(B + T <= -1 || A <= B + T))
1433
1438
  for (let O = -1; O <= 7; O++)
1434
- N + O <= -1 || A <= N + O || (T >= 0 && T <= 6 && (O === 0 || O === 6) || O >= 0 && O <= 6 && (T === 0 || T === 6) || T >= 2 && T <= 4 && O >= 2 && O <= 4 ? b.set(B + T, N + O, !0, !0) : b.set(B + T, N + O, !1, !0));
1439
+ P + O <= -1 || A <= P + O || (T >= 0 && T <= 6 && (O === 0 || O === 6) || O >= 0 && O <= 6 && (T === 0 || T === 6) || T >= 2 && T <= 4 && O >= 2 && O <= 4 ? b.set(B + T, P + O, !0, !0) : b.set(B + T, P + O, !1, !0));
1435
1440
  }
1436
1441
  }
1437
1442
  function d(b) {
@@ -1445,33 +1450,33 @@ function or() {
1445
1450
  const A = o.getPositions(S);
1446
1451
  for (let C = 0; C < A.length; C++) {
1447
1452
  const L = A[C][0], B = A[C][1];
1448
- for (let N = -2; N <= 2; N++)
1453
+ for (let P = -2; P <= 2; P++)
1449
1454
  for (let T = -2; T <= 2; T++)
1450
- N === -2 || N === 2 || T === -2 || T === 2 || N === 0 && T === 0 ? b.set(L + N, B + T, !0, !0) : b.set(L + N, B + T, !1, !0);
1455
+ P === -2 || P === 2 || T === -2 || T === 2 || P === 0 && T === 0 ? b.set(L + P, B + T, !0, !0) : b.set(L + P, B + T, !1, !0);
1451
1456
  }
1452
1457
  }
1453
1458
  function g(b, S) {
1454
- const A = b.size, C = c.getEncodedBits(S);
1455
- let L, B, N;
1459
+ const A = b.size, C = l.getEncodedBits(S);
1460
+ let L, B, P;
1456
1461
  for (let T = 0; T < 18; T++)
1457
- L = Math.floor(T / 3), B = T % 3 + A - 8 - 3, N = (C >> T & 1) === 1, b.set(L, B, N, !0), b.set(B, L, N, !0);
1462
+ L = Math.floor(T / 3), B = T % 3 + A - 8 - 3, P = (C >> T & 1) === 1, b.set(L, B, P, !0), b.set(B, L, P, !0);
1458
1463
  }
1459
1464
  function w(b, S, A) {
1460
- const C = b.size, L = l.getEncodedBits(S, A);
1461
- let B, N;
1465
+ const C = b.size, L = c.getEncodedBits(S, A);
1466
+ let B, P;
1462
1467
  for (B = 0; B < 15; B++)
1463
- N = (L >> B & 1) === 1, B < 6 ? b.set(B, 8, N, !0) : B < 8 ? b.set(B + 1, 8, N, !0) : b.set(C - 15 + B, 8, N, !0), B < 8 ? b.set(8, C - B - 1, N, !0) : B < 9 ? b.set(8, 15 - B - 1 + 1, N, !0) : b.set(8, 15 - B - 1, N, !0);
1468
+ P = (L >> B & 1) === 1, B < 6 ? b.set(B, 8, P, !0) : B < 8 ? b.set(B + 1, 8, P, !0) : b.set(C - 15 + B, 8, P, !0), B < 8 ? b.set(8, C - B - 1, P, !0) : B < 9 ? b.set(8, 15 - B - 1 + 1, P, !0) : b.set(8, 15 - B - 1, P, !0);
1464
1469
  b.set(C - 8, 8, 1, !0);
1465
1470
  }
1466
- function P(b, S) {
1471
+ function N(b, S) {
1467
1472
  const A = b.size;
1468
- let C = -1, L = A - 1, B = 7, N = 0;
1473
+ let C = -1, L = A - 1, B = 7, P = 0;
1469
1474
  for (let T = A - 1; T > 0; T -= 2)
1470
1475
  for (T === 6 && T--; ; ) {
1471
1476
  for (let O = 0; O < 2; O++)
1472
1477
  if (!b.isReserved(L, T - O)) {
1473
1478
  let q = !1;
1474
- N < S.length && (q = (S[N] >>> B & 1) === 1), b.set(L, T - O, q), B--, B === -1 && (N++, B = 7);
1479
+ P < S.length && (q = (S[P] >>> B & 1) === 1), b.set(L, T - O, q), B--, B === -1 && (P++, B = 7);
1475
1480
  }
1476
1481
  if (L += C, L < 0 || A <= L) {
1477
1482
  L -= C, C = -C;
@@ -1484,32 +1489,32 @@ function or() {
1484
1489
  A.forEach(function(O) {
1485
1490
  C.put(O.mode.bit, 4), C.put(O.getLength(), h.getCharCountIndicator(O.mode, b)), O.write(C);
1486
1491
  });
1487
- const L = e.getSymbolTotalCodewords(b), B = a.getTotalCodewordsCount(b, S), N = (L - B) * 8;
1488
- for (C.getLengthInBits() + 4 <= N && C.put(0, 4); C.getLengthInBits() % 8 !== 0; )
1492
+ const L = e.getSymbolTotalCodewords(b), B = a.getTotalCodewordsCount(b, S), P = (L - B) * 8;
1493
+ for (C.getLengthInBits() + 4 <= P && C.put(0, 4); C.getLengthInBits() % 8 !== 0; )
1489
1494
  C.putBit(0);
1490
- const T = (N - C.getLengthInBits()) / 8;
1495
+ const T = (P - C.getLengthInBits()) / 8;
1491
1496
  for (let O = 0; O < T; O++)
1492
1497
  C.put(O % 2 ? 17 : 236, 8);
1493
1498
  return R(C, b, S);
1494
1499
  }
1495
1500
  function R(b, S, A) {
1496
- const C = e.getSymbolTotalCodewords(S), L = a.getTotalCodewordsCount(S, A), B = C - L, N = a.getBlocksCount(S, A), T = C % N, O = N - T, q = Math.floor(C / N), U = Math.floor(B / N), me = U + 1, j = q - U, ye = new u(j);
1501
+ const C = e.getSymbolTotalCodewords(S), L = a.getTotalCodewordsCount(S, A), B = C - L, P = a.getBlocksCount(S, A), T = C % P, O = P - T, q = Math.floor(C / P), U = Math.floor(B / P), me = U + 1, j = q - U, ye = new u(j);
1497
1502
  let ue = 0;
1498
- const D = new Array(N), $ = new Array(N);
1503
+ const D = new Array(P), V = new Array(P);
1499
1504
  let G = 0;
1500
1505
  const te = new Uint8Array(b.buffer);
1501
- for (let re = 0; re < N; re++) {
1506
+ for (let re = 0; re < P; re++) {
1502
1507
  const Oe = re < O ? U : me;
1503
- D[re] = te.slice(ue, ue + Oe), $[re] = ye.encode(D[re]), ue += Oe, G = Math.max(G, Oe);
1508
+ D[re] = te.slice(ue, ue + Oe), V[re] = ye.encode(D[re]), ue += Oe, G = Math.max(G, Oe);
1504
1509
  }
1505
1510
  const ne = new Uint8Array(C);
1506
1511
  let dt = 0, J, K;
1507
1512
  for (J = 0; J < G; J++)
1508
- for (K = 0; K < N; K++)
1513
+ for (K = 0; K < P; K++)
1509
1514
  J < D[K].length && (ne[dt++] = D[K][J]);
1510
1515
  for (J = 0; J < j; J++)
1511
- for (K = 0; K < N; K++)
1512
- ne[dt++] = $[K][J];
1516
+ for (K = 0; K < P; K++)
1517
+ ne[dt++] = V[K][J];
1513
1518
  return ne;
1514
1519
  }
1515
1520
  function _(b, S, A, C) {
@@ -1520,12 +1525,12 @@ function or() {
1520
1525
  let q = S;
1521
1526
  if (!q) {
1522
1527
  const U = m.rawSplit(b);
1523
- q = c.getBestVersionForData(U, A);
1528
+ q = l.getBestVersionForData(U, A);
1524
1529
  }
1525
1530
  L = m.fromString(b, q || 40);
1526
1531
  } else
1527
1532
  throw new Error("Invalid data");
1528
- const B = c.getBestVersionForData(L, A);
1533
+ const B = l.getBestVersionForData(L, A);
1529
1534
  if (!B)
1530
1535
  throw new Error("The amount of data is too big to be stored in a QR Code");
1531
1536
  if (!S)
@@ -1537,8 +1542,8 @@ The chosen QR Code version cannot contain this amount of data.
1537
1542
  Minimum version required to store current data is: ` + B + `.
1538
1543
  `
1539
1544
  );
1540
- const N = E(S, A, L), T = e.getSymbolSize(S), O = new n(T);
1541
- return y(O, S), d(O), p(O, S), w(O, A, 0), S >= 7 && g(O, S), P(O, N), isNaN(C) && (C = s.getBestMask(
1545
+ const P = E(S, A, L), T = e.getSymbolSize(S), O = new n(T);
1546
+ return y(O, S), d(O), p(O, S), w(O, A, 0), S >= 7 && g(O, S), N(O, P), isNaN(C) && (C = s.getBestMask(
1542
1547
  O,
1543
1548
  w.bind(null, O, A)
1544
1549
  )), s.applyMask(C, O), w(O, A, C), {
@@ -1553,12 +1558,12 @@ Minimum version required to store current data is: ` + B + `.
1553
1558
  if (typeof S > "u" || S === "")
1554
1559
  throw new Error("No input text");
1555
1560
  let C = t.M, L, B;
1556
- return typeof A < "u" && (C = t.from(A.errorCorrectionLevel, t.M), L = c.from(A.version), B = s.from(A.maskPattern), A.toSJISFunc && e.setToSJISFunction(A.toSJISFunc)), _(S, L, C, B);
1561
+ return typeof A < "u" && (C = t.from(A.errorCorrectionLevel, t.M), L = l.from(A.version), B = s.from(A.maskPattern), A.toSJISFunc && e.setToSJISFunction(A.toSJISFunc)), _(S, L, C, B);
1557
1562
  }, Ie;
1558
1563
  }
1559
- var Qe = {}, Ye = {}, Mt;
1560
- function an() {
1561
- return Mt || (Mt = 1, (function(e) {
1564
+ var Qe = {}, Ye = {}, Ft;
1565
+ function ln() {
1566
+ return Ft || (Ft = 1, (function(e) {
1562
1567
  function t(r) {
1563
1568
  if (typeof r == "number" && (r = r.toString()), typeof r != "string")
1564
1569
  throw new Error("Color should be defined as hex string");
@@ -1597,12 +1602,12 @@ function an() {
1597
1602
  const i = e.getScale(n, o);
1598
1603
  return Math.floor((n + o.margin * 2) * i);
1599
1604
  }, e.qrToImageData = function(n, o, i) {
1600
- const s = o.modules.size, a = o.modules.data, u = e.getScale(s, i), c = Math.floor((s + i.margin * 2) * u), l = i.margin * u, h = [i.color.light, i.color.dark];
1601
- for (let m = 0; m < c; m++)
1602
- for (let y = 0; y < c; y++) {
1603
- let d = (m * c + y) * 4, p = i.color.light;
1604
- if (m >= l && y >= l && m < c - l && y < c - l) {
1605
- const g = Math.floor((m - l) / u), w = Math.floor((y - l) / u);
1605
+ const s = o.modules.size, a = o.modules.data, u = e.getScale(s, i), l = Math.floor((s + i.margin * 2) * u), c = i.margin * u, h = [i.color.light, i.color.dark];
1606
+ for (let m = 0; m < l; m++)
1607
+ for (let y = 0; y < l; y++) {
1608
+ let d = (m * l + y) * 4, p = i.color.light;
1609
+ if (m >= c && y >= c && m < l - c && y < l - c) {
1610
+ const g = Math.floor((m - c) / u), w = Math.floor((y - c) / u);
1606
1611
  p = h[a[g * s + w] ? 1 : 0];
1607
1612
  }
1608
1613
  n[d++] = p.r, n[d++] = p.g, n[d++] = p.b, n[d] = p.a;
@@ -1610,10 +1615,10 @@ function an() {
1610
1615
  };
1611
1616
  })(Ye)), Ye;
1612
1617
  }
1613
- var kt;
1614
- function ir() {
1615
- return kt || (kt = 1, (function(e) {
1616
- const t = an();
1618
+ var Mt;
1619
+ function ar() {
1620
+ return Mt || (Mt = 1, (function(e) {
1621
+ const t = ln();
1617
1622
  function r(o, i, s) {
1618
1623
  o.clearRect(0, 0, i.width, i.height), i.style || (i.style = {}), i.height = s, i.width = s, i.style.height = s + "px", i.style.width = s + "px";
1619
1624
  }
@@ -1625,23 +1630,23 @@ function ir() {
1625
1630
  }
1626
1631
  }
1627
1632
  e.render = function(i, s, a) {
1628
- let u = a, c = s;
1629
- typeof u > "u" && (!s || !s.getContext) && (u = s, s = void 0), s || (c = n()), u = t.getOptions(u);
1630
- const l = t.getImageWidth(i.modules.size, u), h = c.getContext("2d"), m = h.createImageData(l, l);
1631
- return t.qrToImageData(m.data, i, u), r(h, c, l), h.putImageData(m, 0, 0), c;
1633
+ let u = a, l = s;
1634
+ typeof u > "u" && (!s || !s.getContext) && (u = s, s = void 0), s || (l = n()), u = t.getOptions(u);
1635
+ const c = t.getImageWidth(i.modules.size, u), h = l.getContext("2d"), m = h.createImageData(c, c);
1636
+ return t.qrToImageData(m.data, i, u), r(h, l, c), h.putImageData(m, 0, 0), l;
1632
1637
  }, e.renderToDataURL = function(i, s, a) {
1633
1638
  let u = a;
1634
1639
  typeof u > "u" && (!s || !s.getContext) && (u = s, s = void 0), u || (u = {});
1635
- const c = e.render(i, s, u), l = u.type || "image/png", h = u.rendererOpts || {};
1636
- return c.toDataURL(l, h.quality);
1640
+ const l = e.render(i, s, u), c = u.type || "image/png", h = u.rendererOpts || {};
1641
+ return l.toDataURL(c, h.quality);
1637
1642
  };
1638
1643
  })(Qe)), Qe;
1639
1644
  }
1640
1645
  var Xe = {}, Dt;
1641
- function sr() {
1646
+ function ur() {
1642
1647
  if (Dt) return Xe;
1643
1648
  Dt = 1;
1644
- const e = an();
1649
+ const e = ln();
1645
1650
  function t(o, i) {
1646
1651
  const s = o.a / 255, a = i + '="' + o.hex + '"';
1647
1652
  return s < 1 ? a + " " + i + '-opacity="' + s.toFixed(2).slice(1) + '"' : a;
@@ -1651,32 +1656,32 @@ function sr() {
1651
1656
  return typeof s < "u" && (a += " " + s), a;
1652
1657
  }
1653
1658
  function n(o, i, s) {
1654
- let a = "", u = 0, c = !1, l = 0;
1659
+ let a = "", u = 0, l = !1, c = 0;
1655
1660
  for (let h = 0; h < o.length; h++) {
1656
1661
  const m = Math.floor(h % i), y = Math.floor(h / i);
1657
- !m && !c && (c = !0), o[h] ? (l++, h > 0 && m > 0 && o[h - 1] || (a += c ? r("M", m + s, 0.5 + y + s) : r("m", u, 0), u = 0, c = !1), m + 1 < i && o[h + 1] || (a += r("h", l), l = 0)) : u++;
1662
+ !m && !l && (l = !0), o[h] ? (c++, h > 0 && m > 0 && o[h - 1] || (a += l ? r("M", m + s, 0.5 + y + s) : r("m", u, 0), u = 0, l = !1), m + 1 < i && o[h + 1] || (a += r("h", c), c = 0)) : u++;
1658
1663
  }
1659
1664
  return a;
1660
1665
  }
1661
1666
  return Xe.render = function(i, s, a) {
1662
- const u = e.getOptions(s), c = i.modules.size, l = i.modules.data, h = c + u.margin * 2, m = u.color.light.a ? "<path " + t(u.color.light, "fill") + ' d="M0 0h' + h + "v" + h + 'H0z"/>' : "", y = "<path " + t(u.color.dark, "stroke") + ' d="' + n(l, c, u.margin) + '"/>', d = 'viewBox="0 0 ' + h + " " + h + '"', g = '<svg xmlns="http://www.w3.org/2000/svg" ' + (u.width ? 'width="' + u.width + '" height="' + u.width + '" ' : "") + d + ' shape-rendering="crispEdges">' + m + y + `</svg>
1667
+ const u = e.getOptions(s), l = i.modules.size, c = i.modules.data, h = l + u.margin * 2, m = u.color.light.a ? "<path " + t(u.color.light, "fill") + ' d="M0 0h' + h + "v" + h + 'H0z"/>' : "", y = "<path " + t(u.color.dark, "stroke") + ' d="' + n(c, l, u.margin) + '"/>', d = 'viewBox="0 0 ' + h + " " + h + '"', g = '<svg xmlns="http://www.w3.org/2000/svg" ' + (u.width ? 'width="' + u.width + '" height="' + u.width + '" ' : "") + d + ' shape-rendering="crispEdges">' + m + y + `</svg>
1663
1668
  `;
1664
1669
  return typeof a == "function" && a(null, g), g;
1665
1670
  }, Xe;
1666
1671
  }
1667
1672
  var qt;
1668
- function ar() {
1673
+ function lr() {
1669
1674
  if (qt) return oe;
1670
1675
  qt = 1;
1671
- const e = jn(), t = or(), r = ir(), n = sr();
1672
- function o(i, s, a, u, c) {
1673
- const l = [].slice.call(arguments, 1), h = l.length, m = typeof l[h - 1] == "function";
1676
+ const e = zn(), t = sr(), r = ar(), n = ur();
1677
+ function o(i, s, a, u, l) {
1678
+ const c = [].slice.call(arguments, 1), h = c.length, m = typeof c[h - 1] == "function";
1674
1679
  if (!m && !e())
1675
1680
  throw new Error("Callback required as last argument");
1676
1681
  if (m) {
1677
1682
  if (h < 2)
1678
1683
  throw new Error("Too few arguments provided");
1679
- h === 2 ? (c = a, a = s, s = u = void 0) : h === 3 && (s.getContext && typeof c > "u" ? (c = u, u = void 0) : (c = u, u = a, a = s, s = void 0));
1684
+ h === 2 ? (l = a, a = s, s = u = void 0) : h === 3 && (s.getContext && typeof l > "u" ? (l = u, u = void 0) : (l = u, u = a, a = s, s = void 0));
1680
1685
  } else {
1681
1686
  if (h < 1)
1682
1687
  throw new Error("Too few arguments provided");
@@ -1691,39 +1696,39 @@ function ar() {
1691
1696
  }
1692
1697
  try {
1693
1698
  const y = t.create(a, u);
1694
- c(null, i(y, s, u));
1699
+ l(null, i(y, s, u));
1695
1700
  } catch (y) {
1696
- c(y);
1701
+ l(y);
1697
1702
  }
1698
1703
  }
1699
1704
  return oe.create = t.create, oe.toCanvas = o.bind(null, r.render), oe.toDataURL = o.bind(null, r.renderToDataURL), oe.toString = o.bind(null, function(i, s, a) {
1700
1705
  return n.render(i, a);
1701
1706
  }), oe;
1702
1707
  }
1703
- var ur = ar();
1704
- function un(e, t) {
1708
+ var cr = lr();
1709
+ function cn(e, t) {
1705
1710
  return function() {
1706
1711
  return e.apply(t, arguments);
1707
1712
  };
1708
1713
  }
1709
- const { toString: cr } = Object.prototype, { getPrototypeOf: ut } = Object, { iterator: Te, toStringTag: cn } = Symbol, Ae = /* @__PURE__ */ ((e) => (t) => {
1710
- const r = cr.call(t);
1714
+ const { toString: fr } = Object.prototype, { getPrototypeOf: ut } = Object, { iterator: Te, toStringTag: fn } = Symbol, Ae = /* @__PURE__ */ ((e) => (t) => {
1715
+ const r = fr.call(t);
1711
1716
  return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
1712
1717
  })(/* @__PURE__ */ Object.create(null)), H = (e) => (e = e.toLowerCase(), (t) => Ae(t) === e), Be = (e) => (t) => typeof t === e, { isArray: se } = Array, ie = Be("undefined");
1713
1718
  function de(e) {
1714
- return e !== null && !ie(e) && e.constructor !== null && !ie(e.constructor) && M(e.constructor.isBuffer) && e.constructor.isBuffer(e);
1719
+ return e !== null && !ie(e) && e.constructor !== null && !ie(e.constructor) && F(e.constructor.isBuffer) && e.constructor.isBuffer(e);
1715
1720
  }
1716
- const ln = H("ArrayBuffer");
1717
- function lr(e) {
1721
+ const dn = H("ArrayBuffer");
1722
+ function dr(e) {
1718
1723
  let t;
1719
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && ln(e.buffer), t;
1724
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && dn(e.buffer), t;
1720
1725
  }
1721
- const fr = Be("string"), M = Be("function"), fn = Be("number"), he = (e) => e !== null && typeof e == "object", dr = (e) => e === !0 || e === !1, Ee = (e) => {
1726
+ const hr = Be("string"), F = Be("function"), hn = Be("number"), he = (e) => e !== null && typeof e == "object", pr = (e) => e === !0 || e === !1, Ee = (e) => {
1722
1727
  if (Ae(e) !== "object")
1723
1728
  return !1;
1724
1729
  const t = ut(e);
1725
- return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(cn in e) && !(Te in e);
1726
- }, hr = (e) => {
1730
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(fn in e) && !(Te in e);
1731
+ }, gr = (e) => {
1727
1732
  if (!he(e) || de(e))
1728
1733
  return !1;
1729
1734
  try {
@@ -1731,11 +1736,11 @@ const fr = Be("string"), M = Be("function"), fn = Be("number"), he = (e) => e !=
1731
1736
  } catch {
1732
1737
  return !1;
1733
1738
  }
1734
- }, pr = H("Date"), gr = H("File"), mr = H("Blob"), yr = H("FileList"), wr = (e) => he(e) && M(e.pipe), br = (e) => {
1739
+ }, mr = H("Date"), yr = H("File"), wr = H("Blob"), br = H("FileList"), Er = (e) => he(e) && F(e.pipe), Cr = (e) => {
1735
1740
  let t;
1736
- return e && (typeof FormData == "function" && e instanceof FormData || M(e.append) && ((t = Ae(e)) === "formdata" || // detect form-data instance
1737
- t === "object" && M(e.toString) && e.toString() === "[object FormData]"));
1738
- }, Er = H("URLSearchParams"), [Cr, Sr, Rr, Tr] = ["ReadableStream", "Request", "Response", "Headers"].map(H), Ar = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
1741
+ return e && (typeof FormData == "function" && e instanceof FormData || F(e.append) && ((t = Ae(e)) === "formdata" || // detect form-data instance
1742
+ t === "object" && F(e.toString) && e.toString() === "[object FormData]"));
1743
+ }, Sr = H("URLSearchParams"), [Rr, Tr, Ar, Br] = ["ReadableStream", "Request", "Response", "Headers"].map(H), Pr = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
1739
1744
  function pe(e, t, { allOwnKeys: r = !1 } = {}) {
1740
1745
  if (e === null || typeof e > "u")
1741
1746
  return;
@@ -1752,7 +1757,7 @@ function pe(e, t, { allOwnKeys: r = !1 } = {}) {
1752
1757
  a = i[n], t.call(null, e[a], a, e);
1753
1758
  }
1754
1759
  }
1755
- function dn(e, t) {
1760
+ function pn(e, t) {
1756
1761
  if (de(e))
1757
1762
  return null;
1758
1763
  t = t.toLowerCase();
@@ -1763,23 +1768,23 @@ function dn(e, t) {
1763
1768
  return o;
1764
1769
  return null;
1765
1770
  }
1766
- const Q = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, hn = (e) => !ie(e) && e !== Q;
1771
+ const Q = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, gn = (e) => !ie(e) && e !== Q;
1767
1772
  function rt() {
1768
- const { caseless: e, skipUndefined: t } = hn(this) && this || {}, r = {}, n = (o, i) => {
1769
- const s = e && dn(r, i) || i;
1773
+ const { caseless: e, skipUndefined: t } = gn(this) && this || {}, r = {}, n = (o, i) => {
1774
+ const s = e && pn(r, i) || i;
1770
1775
  Ee(r[s]) && Ee(o) ? r[s] = rt(r[s], o) : Ee(o) ? r[s] = rt({}, o) : se(o) ? r[s] = o.slice() : (!t || !ie(o)) && (r[s] = o);
1771
1776
  };
1772
1777
  for (let o = 0, i = arguments.length; o < i; o++)
1773
1778
  arguments[o] && pe(arguments[o], n);
1774
1779
  return r;
1775
1780
  }
1776
- const Br = (e, t, r, { allOwnKeys: n } = {}) => (pe(t, (o, i) => {
1777
- r && M(o) ? e[i] = un(o, r) : e[i] = o;
1778
- }, { allOwnKeys: n }), e), Nr = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Pr = (e, t, r, n) => {
1781
+ const Nr = (e, t, r, { allOwnKeys: n } = {}) => (pe(t, (o, i) => {
1782
+ r && F(o) ? e[i] = cn(o, r) : e[i] = o;
1783
+ }, { allOwnKeys: n }), e), Or = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Lr = (e, t, r, n) => {
1779
1784
  e.prototype = Object.create(t.prototype, n), e.prototype.constructor = e, Object.defineProperty(e, "super", {
1780
1785
  value: t.prototype
1781
1786
  }), r && Object.assign(e.prototype, r);
1782
- }, Or = (e, t, r, n) => {
1787
+ }, Ir = (e, t, r, n) => {
1783
1788
  let o, i, s;
1784
1789
  const a = {};
1785
1790
  if (t = t || {}, e == null) return t;
@@ -1789,49 +1794,49 @@ const Br = (e, t, r, { allOwnKeys: n } = {}) => (pe(t, (o, i) => {
1789
1794
  e = r !== !1 && ut(e);
1790
1795
  } while (e && (!r || r(e, t)) && e !== Object.prototype);
1791
1796
  return t;
1792
- }, Lr = (e, t, r) => {
1797
+ }, _r = (e, t, r) => {
1793
1798
  e = String(e), (r === void 0 || r > e.length) && (r = e.length), r -= t.length;
1794
1799
  const n = e.indexOf(t, r);
1795
1800
  return n !== -1 && n === r;
1796
- }, Ir = (e) => {
1801
+ }, vr = (e) => {
1797
1802
  if (!e) return null;
1798
1803
  if (se(e)) return e;
1799
1804
  let t = e.length;
1800
- if (!fn(t)) return null;
1805
+ if (!hn(t)) return null;
1801
1806
  const r = new Array(t);
1802
1807
  for (; t-- > 0; )
1803
1808
  r[t] = e[t];
1804
1809
  return r;
1805
- }, _r = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && ut(Uint8Array)), vr = (e, t) => {
1810
+ }, Ur = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && ut(Uint8Array)), kr = (e, t) => {
1806
1811
  const n = (e && e[Te]).call(e);
1807
1812
  let o;
1808
1813
  for (; (o = n.next()) && !o.done; ) {
1809
1814
  const i = o.value;
1810
1815
  t.call(e, i[0], i[1]);
1811
1816
  }
1812
- }, Ur = (e, t) => {
1817
+ }, xr = (e, t) => {
1813
1818
  let r;
1814
1819
  const n = [];
1815
1820
  for (; (r = e.exec(t)) !== null; )
1816
1821
  n.push(r);
1817
1822
  return n;
1818
- }, xr = H("HTMLFormElement"), Fr = (e) => e.toLowerCase().replace(
1823
+ }, Fr = H("HTMLFormElement"), Mr = (e) => e.toLowerCase().replace(
1819
1824
  /[-_\s]([a-z\d])(\w*)/g,
1820
1825
  function(r, n, o) {
1821
1826
  return n.toUpperCase() + o;
1822
1827
  }
1823
- ), jt = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), Mr = H("RegExp"), pn = (e, t) => {
1828
+ ), jt = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), Dr = H("RegExp"), mn = (e, t) => {
1824
1829
  const r = Object.getOwnPropertyDescriptors(e), n = {};
1825
1830
  pe(r, (o, i) => {
1826
1831
  let s;
1827
1832
  (s = t(o, i, e)) !== !1 && (n[i] = s || o);
1828
1833
  }), Object.defineProperties(e, n);
1829
- }, kr = (e) => {
1830
- pn(e, (t, r) => {
1831
- if (M(e) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
1834
+ }, qr = (e) => {
1835
+ mn(e, (t, r) => {
1836
+ if (F(e) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
1832
1837
  return !1;
1833
1838
  const n = e[r];
1834
- if (M(n)) {
1839
+ if (F(n)) {
1835
1840
  if (t.enumerable = !1, "writable" in t) {
1836
1841
  t.writable = !1;
1837
1842
  return;
@@ -1841,19 +1846,19 @@ const Br = (e, t, r, { allOwnKeys: n } = {}) => (pe(t, (o, i) => {
1841
1846
  });
1842
1847
  }
1843
1848
  });
1844
- }, Dr = (e, t) => {
1849
+ }, jr = (e, t) => {
1845
1850
  const r = {}, n = (o) => {
1846
1851
  o.forEach((i) => {
1847
1852
  r[i] = !0;
1848
1853
  });
1849
1854
  };
1850
1855
  return se(e) ? n(e) : n(String(e).split(t)), r;
1851
- }, qr = () => {
1852
- }, jr = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
1853
- function Hr(e) {
1854
- return !!(e && M(e.append) && e[cn] === "FormData" && e[Te]);
1856
+ }, Hr = () => {
1857
+ }, zr = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
1858
+ function $r(e) {
1859
+ return !!(e && F(e.append) && e[fn] === "FormData" && e[Te]);
1855
1860
  }
1856
- const zr = (e) => {
1861
+ const Vr = (e) => {
1857
1862
  const t = new Array(10), r = (n, o) => {
1858
1863
  if (he(n)) {
1859
1864
  if (t.indexOf(n) >= 0)
@@ -1872,72 +1877,72 @@ const zr = (e) => {
1872
1877
  return n;
1873
1878
  };
1874
1879
  return r(e, 0);
1875
- }, Vr = H("AsyncFunction"), $r = (e) => e && (he(e) || M(e)) && M(e.then) && M(e.catch), gn = ((e, t) => e ? setImmediate : t ? ((r, n) => (Q.addEventListener("message", ({ source: o, data: i }) => {
1880
+ }, Jr = H("AsyncFunction"), Kr = (e) => e && (he(e) || F(e)) && F(e.then) && F(e.catch), yn = ((e, t) => e ? setImmediate : t ? ((r, n) => (Q.addEventListener("message", ({ source: o, data: i }) => {
1876
1881
  o === Q && i === r && n.length && n.shift()();
1877
1882
  }, !1), (o) => {
1878
1883
  n.push(o), Q.postMessage(r, "*");
1879
1884
  }))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(
1880
1885
  typeof setImmediate == "function",
1881
- M(Q.postMessage)
1882
- ), Jr = typeof queueMicrotask < "u" ? queueMicrotask.bind(Q) : typeof process < "u" && process.nextTick || gn, Kr = (e) => e != null && M(e[Te]), f = {
1886
+ F(Q.postMessage)
1887
+ ), Wr = typeof queueMicrotask < "u" ? queueMicrotask.bind(Q) : typeof process < "u" && process.nextTick || yn, Gr = (e) => e != null && F(e[Te]), f = {
1883
1888
  isArray: se,
1884
- isArrayBuffer: ln,
1889
+ isArrayBuffer: dn,
1885
1890
  isBuffer: de,
1886
- isFormData: br,
1887
- isArrayBufferView: lr,
1888
- isString: fr,
1889
- isNumber: fn,
1890
- isBoolean: dr,
1891
+ isFormData: Cr,
1892
+ isArrayBufferView: dr,
1893
+ isString: hr,
1894
+ isNumber: hn,
1895
+ isBoolean: pr,
1891
1896
  isObject: he,
1892
1897
  isPlainObject: Ee,
1893
- isEmptyObject: hr,
1894
- isReadableStream: Cr,
1895
- isRequest: Sr,
1896
- isResponse: Rr,
1897
- isHeaders: Tr,
1898
+ isEmptyObject: gr,
1899
+ isReadableStream: Rr,
1900
+ isRequest: Tr,
1901
+ isResponse: Ar,
1902
+ isHeaders: Br,
1898
1903
  isUndefined: ie,
1899
- isDate: pr,
1900
- isFile: gr,
1901
- isBlob: mr,
1902
- isRegExp: Mr,
1903
- isFunction: M,
1904
- isStream: wr,
1905
- isURLSearchParams: Er,
1906
- isTypedArray: _r,
1907
- isFileList: yr,
1904
+ isDate: mr,
1905
+ isFile: yr,
1906
+ isBlob: wr,
1907
+ isRegExp: Dr,
1908
+ isFunction: F,
1909
+ isStream: Er,
1910
+ isURLSearchParams: Sr,
1911
+ isTypedArray: Ur,
1912
+ isFileList: br,
1908
1913
  forEach: pe,
1909
1914
  merge: rt,
1910
- extend: Br,
1911
- trim: Ar,
1912
- stripBOM: Nr,
1913
- inherits: Pr,
1914
- toFlatObject: Or,
1915
+ extend: Nr,
1916
+ trim: Pr,
1917
+ stripBOM: Or,
1918
+ inherits: Lr,
1919
+ toFlatObject: Ir,
1915
1920
  kindOf: Ae,
1916
1921
  kindOfTest: H,
1917
- endsWith: Lr,
1918
- toArray: Ir,
1919
- forEachEntry: vr,
1920
- matchAll: Ur,
1921
- isHTMLForm: xr,
1922
+ endsWith: _r,
1923
+ toArray: vr,
1924
+ forEachEntry: kr,
1925
+ matchAll: xr,
1926
+ isHTMLForm: Fr,
1922
1927
  hasOwnProperty: jt,
1923
1928
  hasOwnProp: jt,
1924
1929
  // an alias to avoid ESLint no-prototype-builtins detection
1925
- reduceDescriptors: pn,
1926
- freezeMethods: kr,
1927
- toObjectSet: Dr,
1928
- toCamelCase: Fr,
1929
- noop: qr,
1930
- toFiniteNumber: jr,
1931
- findKey: dn,
1930
+ reduceDescriptors: mn,
1931
+ freezeMethods: qr,
1932
+ toObjectSet: jr,
1933
+ toCamelCase: Mr,
1934
+ noop: Hr,
1935
+ toFiniteNumber: zr,
1936
+ findKey: pn,
1932
1937
  global: Q,
1933
- isContextDefined: hn,
1934
- isSpecCompliantForm: Hr,
1935
- toJSONObject: zr,
1936
- isAsyncFn: Vr,
1937
- isThenable: $r,
1938
- setImmediate: gn,
1939
- asap: Jr,
1940
- isIterable: Kr
1938
+ isContextDefined: gn,
1939
+ isSpecCompliantForm: $r,
1940
+ toJSONObject: Vr,
1941
+ isAsyncFn: Jr,
1942
+ isThenable: Kr,
1943
+ setImmediate: yn,
1944
+ asap: Wr,
1945
+ isIterable: Gr
1941
1946
  };
1942
1947
  function I(e, t, r, n, o) {
1943
1948
  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);
@@ -1963,7 +1968,7 @@ f.inherits(I, Error, {
1963
1968
  };
1964
1969
  }
1965
1970
  });
1966
- const mn = I.prototype, yn = {};
1971
+ const wn = I.prototype, bn = {};
1967
1972
  [
1968
1973
  "ERR_BAD_OPTION_VALUE",
1969
1974
  "ERR_BAD_OPTION",
@@ -1979,37 +1984,37 @@ const mn = I.prototype, yn = {};
1979
1984
  "ERR_INVALID_URL"
1980
1985
  // eslint-disable-next-line func-names
1981
1986
  ].forEach((e) => {
1982
- yn[e] = { value: e };
1987
+ bn[e] = { value: e };
1983
1988
  });
1984
- Object.defineProperties(I, yn);
1985
- Object.defineProperty(mn, "isAxiosError", { value: !0 });
1989
+ Object.defineProperties(I, bn);
1990
+ Object.defineProperty(wn, "isAxiosError", { value: !0 });
1986
1991
  I.from = (e, t, r, n, o, i) => {
1987
- const s = Object.create(mn);
1988
- f.toFlatObject(e, s, function(l) {
1989
- return l !== Error.prototype;
1990
- }, (c) => c !== "isAxiosError");
1992
+ const s = Object.create(wn);
1993
+ f.toFlatObject(e, s, function(c) {
1994
+ return c !== Error.prototype;
1995
+ }, (l) => l !== "isAxiosError");
1991
1996
  const a = e && e.message ? e.message : "Error", u = t == null && e ? e.code : t;
1992
1997
  return I.call(s, a, u, r, n, o), e && s.cause == null && Object.defineProperty(s, "cause", { value: e, configurable: !0 }), s.name = e && e.name || "Error", i && Object.assign(s, i), s;
1993
1998
  };
1994
- const Wr = null;
1999
+ const Qr = null;
1995
2000
  function ot(e) {
1996
2001
  return f.isPlainObject(e) || f.isArray(e);
1997
2002
  }
1998
- function wn(e) {
2003
+ function En(e) {
1999
2004
  return f.endsWith(e, "[]") ? e.slice(0, -2) : e;
2000
2005
  }
2001
2006
  function Ht(e, t, r) {
2002
2007
  return e ? e.concat(t).map(function(o, i) {
2003
- return o = wn(o), !r && i ? "[" + o + "]" : o;
2008
+ return o = En(o), !r && i ? "[" + o + "]" : o;
2004
2009
  }).join(r ? "." : "") : t;
2005
2010
  }
2006
- function Gr(e) {
2011
+ function Yr(e) {
2007
2012
  return f.isArray(e) && !e.some(ot);
2008
2013
  }
2009
- const Qr = f.toFlatObject(f, {}, null, function(t) {
2014
+ const Xr = f.toFlatObject(f, {}, null, function(t) {
2010
2015
  return /^is[A-Z]/.test(t);
2011
2016
  });
2012
- function Ne(e, t, r) {
2017
+ function Pe(e, t, r) {
2013
2018
  if (!f.isObject(e))
2014
2019
  throw new TypeError("target must be an object");
2015
2020
  t = t || new FormData(), r = f.toFlatObject(r, {
@@ -2019,10 +2024,10 @@ function Ne(e, t, r) {
2019
2024
  }, !1, function(p, g) {
2020
2025
  return !f.isUndefined(g[p]);
2021
2026
  });
2022
- const n = r.metaTokens, o = r.visitor || l, i = r.dots, s = r.indexes, u = (r.Blob || typeof Blob < "u" && Blob) && f.isSpecCompliantForm(t);
2027
+ const n = r.metaTokens, o = r.visitor || c, i = r.dots, s = r.indexes, u = (r.Blob || typeof Blob < "u" && Blob) && f.isSpecCompliantForm(t);
2023
2028
  if (!f.isFunction(o))
2024
2029
  throw new TypeError("visitor must be a function");
2025
- function c(d) {
2030
+ function l(d) {
2026
2031
  if (d === null) return "";
2027
2032
  if (f.isDate(d))
2028
2033
  return d.toISOString();
@@ -2032,39 +2037,39 @@ function Ne(e, t, r) {
2032
2037
  throw new I("Blob is not supported. Use a Buffer instead.");
2033
2038
  return f.isArrayBuffer(d) || f.isTypedArray(d) ? u && typeof Blob == "function" ? new Blob([d]) : Buffer.from(d) : d;
2034
2039
  }
2035
- function l(d, p, g) {
2040
+ function c(d, p, g) {
2036
2041
  let w = d;
2037
2042
  if (d && !g && typeof d == "object") {
2038
2043
  if (f.endsWith(p, "{}"))
2039
2044
  p = n ? p : p.slice(0, -2), d = JSON.stringify(d);
2040
- else if (f.isArray(d) && Gr(d) || (f.isFileList(d) || f.endsWith(p, "[]")) && (w = f.toArray(d)))
2041
- return p = wn(p), w.forEach(function(E, R) {
2045
+ else if (f.isArray(d) && Yr(d) || (f.isFileList(d) || f.endsWith(p, "[]")) && (w = f.toArray(d)))
2046
+ return p = En(p), w.forEach(function(E, R) {
2042
2047
  !(f.isUndefined(E) || E === null) && t.append(
2043
2048
  // eslint-disable-next-line no-nested-ternary
2044
2049
  s === !0 ? Ht([p], R, i) : s === null ? p : p + "[]",
2045
- c(E)
2050
+ l(E)
2046
2051
  );
2047
2052
  }), !1;
2048
2053
  }
2049
- return ot(d) ? !0 : (t.append(Ht(g, p, i), c(d)), !1);
2054
+ return ot(d) ? !0 : (t.append(Ht(g, p, i), l(d)), !1);
2050
2055
  }
2051
- const h = [], m = Object.assign(Qr, {
2052
- defaultVisitor: l,
2053
- convertValue: c,
2056
+ const h = [], m = Object.assign(Xr, {
2057
+ defaultVisitor: c,
2058
+ convertValue: l,
2054
2059
  isVisitable: ot
2055
2060
  });
2056
2061
  function y(d, p) {
2057
2062
  if (!f.isUndefined(d)) {
2058
2063
  if (h.indexOf(d) !== -1)
2059
2064
  throw Error("Circular reference detected in " + p.join("."));
2060
- h.push(d), f.forEach(d, function(w, P) {
2065
+ h.push(d), f.forEach(d, function(w, N) {
2061
2066
  (!(f.isUndefined(w) || w === null) && o.call(
2062
2067
  t,
2063
2068
  w,
2064
- f.isString(P) ? P.trim() : P,
2069
+ f.isString(N) ? N.trim() : N,
2065
2070
  p,
2066
2071
  m
2067
- )) === !0 && y(w, p ? p.concat(P) : [P]);
2072
+ )) === !0 && y(w, p ? p.concat(N) : [N]);
2068
2073
  }), h.pop();
2069
2074
  }
2070
2075
  }
@@ -2086,14 +2091,14 @@ function zt(e) {
2086
2091
  return t[n];
2087
2092
  });
2088
2093
  }
2089
- function ct(e, t) {
2090
- this._pairs = [], e && Ne(e, this, t);
2094
+ function lt(e, t) {
2095
+ this._pairs = [], e && Pe(e, this, t);
2091
2096
  }
2092
- const bn = ct.prototype;
2093
- bn.append = function(t, r) {
2097
+ const Cn = lt.prototype;
2098
+ Cn.append = function(t, r) {
2094
2099
  this._pairs.push([t, r]);
2095
2100
  };
2096
- bn.toString = function(t) {
2101
+ Cn.toString = function(t) {
2097
2102
  const r = t ? function(n) {
2098
2103
  return t.call(this, n, zt);
2099
2104
  } : zt;
@@ -2101,25 +2106,25 @@ bn.toString = function(t) {
2101
2106
  return r(o[0]) + "=" + r(o[1]);
2102
2107
  }, "").join("&");
2103
2108
  };
2104
- function Yr(e) {
2109
+ function Zr(e) {
2105
2110
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
2106
2111
  }
2107
- function En(e, t, r) {
2112
+ function Sn(e, t, r) {
2108
2113
  if (!t)
2109
2114
  return e;
2110
- const n = r && r.encode || Yr;
2115
+ const n = r && r.encode || Zr;
2111
2116
  f.isFunction(r) && (r = {
2112
2117
  serialize: r
2113
2118
  });
2114
2119
  const o = r && r.serialize;
2115
2120
  let i;
2116
- if (o ? i = o(t, r) : i = f.isURLSearchParams(t) ? t.toString() : new ct(t, r).toString(n), i) {
2121
+ if (o ? i = o(t, r) : i = f.isURLSearchParams(t) ? t.toString() : new lt(t, r).toString(n), i) {
2117
2122
  const s = e.indexOf("#");
2118
2123
  s !== -1 && (e = e.slice(0, s)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
2119
2124
  }
2120
2125
  return e;
2121
2126
  }
2122
- class Vt {
2127
+ class $t {
2123
2128
  constructor() {
2124
2129
  this.handlers = [];
2125
2130
  }
@@ -2173,42 +2178,42 @@ class Vt {
2173
2178
  });
2174
2179
  }
2175
2180
  }
2176
- const Cn = {
2181
+ const Rn = {
2177
2182
  silentJSONParsing: !0,
2178
2183
  forcedJSONParsing: !0,
2179
2184
  clarifyTimeoutError: !1
2180
- }, Xr = typeof URLSearchParams < "u" ? URLSearchParams : ct, Zr = typeof FormData < "u" ? FormData : null, eo = typeof Blob < "u" ? Blob : null, to = {
2185
+ }, eo = typeof URLSearchParams < "u" ? URLSearchParams : lt, to = typeof FormData < "u" ? FormData : null, no = typeof Blob < "u" ? Blob : null, ro = {
2181
2186
  isBrowser: !0,
2182
2187
  classes: {
2183
- URLSearchParams: Xr,
2184
- FormData: Zr,
2185
- Blob: eo
2188
+ URLSearchParams: eo,
2189
+ FormData: to,
2190
+ Blob: no
2186
2191
  },
2187
2192
  protocols: ["http", "https", "file", "blob", "url", "data"]
2188
- }, lt = typeof window < "u" && typeof document < "u", it = typeof navigator == "object" && navigator || void 0, no = lt && (!it || ["ReactNative", "NativeScript", "NS"].indexOf(it.product) < 0), ro = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
2189
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", oo = lt && window.location.href || "http://localhost", io = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2193
+ }, ct = typeof window < "u" && typeof document < "u", it = typeof navigator == "object" && navigator || void 0, oo = ct && (!it || ["ReactNative", "NativeScript", "NS"].indexOf(it.product) < 0), io = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
2194
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", so = ct && window.location.href || "http://localhost", ao = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2190
2195
  __proto__: null,
2191
- hasBrowserEnv: lt,
2192
- hasStandardBrowserEnv: no,
2193
- hasStandardBrowserWebWorkerEnv: ro,
2196
+ hasBrowserEnv: ct,
2197
+ hasStandardBrowserEnv: oo,
2198
+ hasStandardBrowserWebWorkerEnv: io,
2194
2199
  navigator: it,
2195
- origin: oo
2196
- }, Symbol.toStringTag, { value: "Module" })), F = {
2197
- ...io,
2198
- ...to
2200
+ origin: so
2201
+ }, Symbol.toStringTag, { value: "Module" })), x = {
2202
+ ...ao,
2203
+ ...ro
2199
2204
  };
2200
- function so(e, t) {
2201
- return Ne(e, new F.classes.URLSearchParams(), {
2205
+ function uo(e, t) {
2206
+ return Pe(e, new x.classes.URLSearchParams(), {
2202
2207
  visitor: function(r, n, o, i) {
2203
- return F.isNode && f.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
2208
+ return x.isNode && f.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
2204
2209
  },
2205
2210
  ...t
2206
2211
  });
2207
2212
  }
2208
- function ao(e) {
2213
+ function lo(e) {
2209
2214
  return f.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
2210
2215
  }
2211
- function uo(e) {
2216
+ function co(e) {
2212
2217
  const t = {}, r = Object.keys(e);
2213
2218
  let n;
2214
2219
  const o = r.length;
@@ -2217,22 +2222,22 @@ function uo(e) {
2217
2222
  i = r[n], t[i] = e[i];
2218
2223
  return t;
2219
2224
  }
2220
- function Sn(e) {
2225
+ function Tn(e) {
2221
2226
  function t(r, n, o, i) {
2222
2227
  let s = r[i++];
2223
2228
  if (s === "__proto__") return !0;
2224
2229
  const a = Number.isFinite(+s), u = i >= r.length;
2225
- return s = !s && f.isArray(o) ? o.length : s, u ? (f.hasOwnProp(o, s) ? o[s] = [o[s], n] : o[s] = n, !a) : ((!o[s] || !f.isObject(o[s])) && (o[s] = []), t(r, n, o[s], i) && f.isArray(o[s]) && (o[s] = uo(o[s])), !a);
2230
+ return s = !s && f.isArray(o) ? o.length : s, u ? (f.hasOwnProp(o, s) ? o[s] = [o[s], n] : o[s] = n, !a) : ((!o[s] || !f.isObject(o[s])) && (o[s] = []), t(r, n, o[s], i) && f.isArray(o[s]) && (o[s] = co(o[s])), !a);
2226
2231
  }
2227
2232
  if (f.isFormData(e) && f.isFunction(e.entries)) {
2228
2233
  const r = {};
2229
2234
  return f.forEachEntry(e, (n, o) => {
2230
- t(ao(n), o, r, 0);
2235
+ t(lo(n), o, r, 0);
2231
2236
  }), r;
2232
2237
  }
2233
2238
  return null;
2234
2239
  }
2235
- function co(e, t, r) {
2240
+ function fo(e, t, r) {
2236
2241
  if (f.isString(e))
2237
2242
  try {
2238
2243
  return (t || JSON.parse)(e), f.trim(e);
@@ -2243,12 +2248,12 @@ function co(e, t, r) {
2243
2248
  return (r || JSON.stringify)(e);
2244
2249
  }
2245
2250
  const ge = {
2246
- transitional: Cn,
2251
+ transitional: Rn,
2247
2252
  adapter: ["xhr", "http", "fetch"],
2248
2253
  transformRequest: [function(t, r) {
2249
2254
  const n = r.getContentType() || "", o = n.indexOf("application/json") > -1, i = f.isObject(t);
2250
2255
  if (i && f.isHTMLForm(t) && (t = new FormData(t)), f.isFormData(t))
2251
- return o ? JSON.stringify(Sn(t)) : t;
2256
+ return o ? JSON.stringify(Tn(t)) : t;
2252
2257
  if (f.isArrayBuffer(t) || f.isBuffer(t) || f.isStream(t) || f.isFile(t) || f.isBlob(t) || f.isReadableStream(t))
2253
2258
  return t;
2254
2259
  if (f.isArrayBufferView(t))
@@ -2258,17 +2263,17 @@ const ge = {
2258
2263
  let a;
2259
2264
  if (i) {
2260
2265
  if (n.indexOf("application/x-www-form-urlencoded") > -1)
2261
- return so(t, this.formSerializer).toString();
2266
+ return uo(t, this.formSerializer).toString();
2262
2267
  if ((a = f.isFileList(t)) || n.indexOf("multipart/form-data") > -1) {
2263
2268
  const u = this.env && this.env.FormData;
2264
- return Ne(
2269
+ return Pe(
2265
2270
  a ? { "files[]": t } : t,
2266
2271
  u && new u(),
2267
2272
  this.formSerializer
2268
2273
  );
2269
2274
  }
2270
2275
  }
2271
- return i || o ? (r.setContentType("application/json", !1), co(t)) : t;
2276
+ return i || o ? (r.setContentType("application/json", !1), fo(t)) : t;
2272
2277
  }],
2273
2278
  transformResponse: [function(t) {
2274
2279
  const r = this.transitional || ge.transitional, n = r && r.forcedJSONParsing, o = this.responseType === "json";
@@ -2295,8 +2300,8 @@ const ge = {
2295
2300
  maxContentLength: -1,
2296
2301
  maxBodyLength: -1,
2297
2302
  env: {
2298
- FormData: F.classes.FormData,
2299
- Blob: F.classes.Blob
2303
+ FormData: x.classes.FormData,
2304
+ Blob: x.classes.Blob
2300
2305
  },
2301
2306
  validateStatus: function(t) {
2302
2307
  return t >= 200 && t < 300;
@@ -2311,7 +2316,7 @@ const ge = {
2311
2316
  f.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
2312
2317
  ge.headers[e] = {};
2313
2318
  });
2314
- const lo = f.toObjectSet([
2319
+ const ho = f.toObjectSet([
2315
2320
  "age",
2316
2321
  "authorization",
2317
2322
  "content-length",
@@ -2329,28 +2334,28 @@ const lo = f.toObjectSet([
2329
2334
  "referer",
2330
2335
  "retry-after",
2331
2336
  "user-agent"
2332
- ]), fo = (e) => {
2337
+ ]), po = (e) => {
2333
2338
  const t = {};
2334
2339
  let r, n, o;
2335
2340
  return e && e.split(`
2336
2341
  `).forEach(function(s) {
2337
- o = s.indexOf(":"), r = s.substring(0, o).trim().toLowerCase(), n = s.substring(o + 1).trim(), !(!r || t[r] && lo[r]) && (r === "set-cookie" ? t[r] ? t[r].push(n) : t[r] = [n] : t[r] = t[r] ? t[r] + ", " + n : n);
2342
+ o = s.indexOf(":"), r = s.substring(0, o).trim().toLowerCase(), n = s.substring(o + 1).trim(), !(!r || t[r] && ho[r]) && (r === "set-cookie" ? t[r] ? t[r].push(n) : t[r] = [n] : t[r] = t[r] ? t[r] + ", " + n : n);
2338
2343
  }), t;
2339
- }, $t = Symbol("internals");
2340
- function le(e) {
2344
+ }, Vt = Symbol("internals");
2345
+ function ce(e) {
2341
2346
  return e && String(e).trim().toLowerCase();
2342
2347
  }
2343
2348
  function Ce(e) {
2344
2349
  return e === !1 || e == null ? e : f.isArray(e) ? e.map(Ce) : String(e);
2345
2350
  }
2346
- function ho(e) {
2351
+ function go(e) {
2347
2352
  const t = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
2348
2353
  let n;
2349
2354
  for (; n = r.exec(e); )
2350
2355
  t[n[1]] = n[2];
2351
2356
  return t;
2352
2357
  }
2353
- const po = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
2358
+ const mo = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
2354
2359
  function Ze(e, t, r, n, o) {
2355
2360
  if (f.isFunction(n))
2356
2361
  return n.call(this, t, r);
@@ -2361,10 +2366,10 @@ function Ze(e, t, r, n, o) {
2361
2366
  return n.test(t);
2362
2367
  }
2363
2368
  }
2364
- function go(e) {
2369
+ function yo(e) {
2365
2370
  return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, r, n) => r.toUpperCase() + n);
2366
2371
  }
2367
- function mo(e, t) {
2372
+ function wo(e, t) {
2368
2373
  const r = f.toCamelCase(" " + t);
2369
2374
  ["get", "set", "has"].forEach((n) => {
2370
2375
  Object.defineProperty(e, n + r, {
@@ -2375,30 +2380,30 @@ function mo(e, t) {
2375
2380
  });
2376
2381
  });
2377
2382
  }
2378
- let k = class {
2383
+ let M = class {
2379
2384
  constructor(t) {
2380
2385
  t && this.set(t);
2381
2386
  }
2382
2387
  set(t, r, n) {
2383
2388
  const o = this;
2384
- function i(a, u, c) {
2385
- const l = le(u);
2386
- if (!l)
2389
+ function i(a, u, l) {
2390
+ const c = ce(u);
2391
+ if (!c)
2387
2392
  throw new Error("header name must be a non-empty string");
2388
- const h = f.findKey(o, l);
2389
- (!h || o[h] === void 0 || c === !0 || c === void 0 && o[h] !== !1) && (o[h || u] = Ce(a));
2393
+ const h = f.findKey(o, c);
2394
+ (!h || o[h] === void 0 || l === !0 || l === void 0 && o[h] !== !1) && (o[h || u] = Ce(a));
2390
2395
  }
2391
- const s = (a, u) => f.forEach(a, (c, l) => i(c, l, u));
2396
+ const s = (a, u) => f.forEach(a, (l, c) => i(l, c, u));
2392
2397
  if (f.isPlainObject(t) || t instanceof this.constructor)
2393
2398
  s(t, r);
2394
- else if (f.isString(t) && (t = t.trim()) && !po(t))
2395
- s(fo(t), r);
2399
+ else if (f.isString(t) && (t = t.trim()) && !mo(t))
2400
+ s(po(t), r);
2396
2401
  else if (f.isObject(t) && f.isIterable(t)) {
2397
- let a = {}, u, c;
2398
- for (const l of t) {
2399
- if (!f.isArray(l))
2402
+ let a = {}, u, l;
2403
+ for (const c of t) {
2404
+ if (!f.isArray(c))
2400
2405
  throw TypeError("Object iterator must return a key-value pair");
2401
- a[c = l[0]] = (u = a[c]) ? f.isArray(u) ? [...u, l[1]] : [u, l[1]] : l[1];
2406
+ a[l = c[0]] = (u = a[l]) ? f.isArray(u) ? [...u, c[1]] : [u, c[1]] : c[1];
2402
2407
  }
2403
2408
  s(a, r);
2404
2409
  } else
@@ -2406,14 +2411,14 @@ let k = class {
2406
2411
  return this;
2407
2412
  }
2408
2413
  get(t, r) {
2409
- if (t = le(t), t) {
2414
+ if (t = ce(t), t) {
2410
2415
  const n = f.findKey(this, t);
2411
2416
  if (n) {
2412
2417
  const o = this[n];
2413
2418
  if (!r)
2414
2419
  return o;
2415
2420
  if (r === !0)
2416
- return ho(o);
2421
+ return go(o);
2417
2422
  if (f.isFunction(r))
2418
2423
  return r.call(this, o, n);
2419
2424
  if (f.isRegExp(r))
@@ -2423,7 +2428,7 @@ let k = class {
2423
2428
  }
2424
2429
  }
2425
2430
  has(t, r) {
2426
- if (t = le(t), t) {
2431
+ if (t = ce(t), t) {
2427
2432
  const n = f.findKey(this, t);
2428
2433
  return !!(n && this[n] !== void 0 && (!r || Ze(this, this[n], n, r)));
2429
2434
  }
@@ -2433,7 +2438,7 @@ let k = class {
2433
2438
  const n = this;
2434
2439
  let o = !1;
2435
2440
  function i(s) {
2436
- if (s = le(s), s) {
2441
+ if (s = ce(s), s) {
2437
2442
  const a = f.findKey(n, s);
2438
2443
  a && (!r || Ze(n, n[a], a, r)) && (delete n[a], o = !0);
2439
2444
  }
@@ -2457,7 +2462,7 @@ let k = class {
2457
2462
  r[s] = Ce(o), delete r[i];
2458
2463
  return;
2459
2464
  }
2460
- const a = t ? go(i) : String(i).trim();
2465
+ const a = t ? yo(i) : String(i).trim();
2461
2466
  a !== i && delete r[i], r[a] = Ce(o), n[a] = !0;
2462
2467
  }), this;
2463
2468
  }
@@ -2491,18 +2496,18 @@ let k = class {
2491
2496
  return r.forEach((o) => n.set(o)), n;
2492
2497
  }
2493
2498
  static accessor(t) {
2494
- const n = (this[$t] = this[$t] = {
2499
+ const n = (this[Vt] = this[Vt] = {
2495
2500
  accessors: {}
2496
2501
  }).accessors, o = this.prototype;
2497
2502
  function i(s) {
2498
- const a = le(s);
2499
- n[a] || (mo(o, s), n[a] = !0);
2503
+ const a = ce(s);
2504
+ n[a] || (wo(o, s), n[a] = !0);
2500
2505
  }
2501
2506
  return f.isArray(t) ? t.forEach(i) : i(t), this;
2502
2507
  }
2503
2508
  };
2504
- k.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
2505
- f.reduceDescriptors(k.prototype, ({ value: e }, t) => {
2509
+ M.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
2510
+ f.reduceDescriptors(M.prototype, ({ value: e }, t) => {
2506
2511
  let r = t[0].toUpperCase() + t.slice(1);
2507
2512
  return {
2508
2513
  get: () => e,
@@ -2511,15 +2516,15 @@ f.reduceDescriptors(k.prototype, ({ value: e }, t) => {
2511
2516
  }
2512
2517
  };
2513
2518
  });
2514
- f.freezeMethods(k);
2519
+ f.freezeMethods(M);
2515
2520
  function et(e, t) {
2516
- const r = this || ge, n = t || r, o = k.from(n.headers);
2521
+ const r = this || ge, n = t || r, o = M.from(n.headers);
2517
2522
  let i = n.data;
2518
2523
  return f.forEach(e, function(a) {
2519
2524
  i = a.call(r, i, o.normalize(), t ? t.status : void 0);
2520
2525
  }), o.normalize(), i;
2521
2526
  }
2522
- function Rn(e) {
2527
+ function An(e) {
2523
2528
  return !!(e && e.__CANCEL__);
2524
2529
  }
2525
2530
  function ae(e, t, r) {
@@ -2528,7 +2533,7 @@ function ae(e, t, r) {
2528
2533
  f.inherits(ae, I, {
2529
2534
  __CANCEL__: !0
2530
2535
  });
2531
- function Tn(e, t, r) {
2536
+ function Bn(e, t, r) {
2532
2537
  const n = r.config.validateStatus;
2533
2538
  !r.status || !n || n(r.status) ? e(r) : t(new I(
2534
2539
  "Request failed with status code " + r.status,
@@ -2538,51 +2543,51 @@ function Tn(e, t, r) {
2538
2543
  r
2539
2544
  ));
2540
2545
  }
2541
- function yo(e) {
2546
+ function bo(e) {
2542
2547
  const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
2543
2548
  return t && t[1] || "";
2544
2549
  }
2545
- function wo(e, t) {
2550
+ function Eo(e, t) {
2546
2551
  e = e || 10;
2547
2552
  const r = new Array(e), n = new Array(e);
2548
2553
  let o = 0, i = 0, s;
2549
2554
  return t = t !== void 0 ? t : 1e3, function(u) {
2550
- const c = Date.now(), l = n[i];
2551
- s || (s = c), r[o] = u, n[o] = c;
2555
+ const l = Date.now(), c = n[i];
2556
+ s || (s = l), r[o] = u, n[o] = l;
2552
2557
  let h = i, m = 0;
2553
2558
  for (; h !== o; )
2554
2559
  m += r[h++], h = h % e;
2555
- if (o = (o + 1) % e, o === i && (i = (i + 1) % e), c - s < t)
2560
+ if (o = (o + 1) % e, o === i && (i = (i + 1) % e), l - s < t)
2556
2561
  return;
2557
- const y = l && c - l;
2562
+ const y = c && l - c;
2558
2563
  return y ? Math.round(m * 1e3 / y) : void 0;
2559
2564
  };
2560
2565
  }
2561
- function bo(e, t) {
2566
+ function Co(e, t) {
2562
2567
  let r = 0, n = 1e3 / t, o, i;
2563
- const s = (c, l = Date.now()) => {
2564
- r = l, o = null, i && (clearTimeout(i), i = null), e(...c);
2568
+ const s = (l, c = Date.now()) => {
2569
+ r = c, o = null, i && (clearTimeout(i), i = null), e(...l);
2565
2570
  };
2566
- return [(...c) => {
2567
- const l = Date.now(), h = l - r;
2568
- h >= n ? s(c, l) : (o = c, i || (i = setTimeout(() => {
2571
+ return [(...l) => {
2572
+ const c = Date.now(), h = c - r;
2573
+ h >= n ? s(l, c) : (o = l, i || (i = setTimeout(() => {
2569
2574
  i = null, s(o);
2570
2575
  }, n - h)));
2571
2576
  }, () => o && s(o)];
2572
2577
  }
2573
2578
  const Re = (e, t, r = 3) => {
2574
2579
  let n = 0;
2575
- const o = wo(50, 250);
2576
- return bo((i) => {
2577
- const s = i.loaded, a = i.lengthComputable ? i.total : void 0, u = s - n, c = o(u), l = s <= a;
2580
+ const o = Eo(50, 250);
2581
+ return Co((i) => {
2582
+ const s = i.loaded, a = i.lengthComputable ? i.total : void 0, u = s - n, l = o(u), c = s <= a;
2578
2583
  n = s;
2579
2584
  const h = {
2580
2585
  loaded: s,
2581
2586
  total: a,
2582
2587
  progress: a ? s / a : void 0,
2583
2588
  bytes: u,
2584
- rate: c || void 0,
2585
- estimated: c && a && l ? (a - s) / c : void 0,
2589
+ rate: l || void 0,
2590
+ estimated: l && a && c ? (a - s) / l : void 0,
2586
2591
  event: i,
2587
2592
  lengthComputable: a != null,
2588
2593
  [t ? "download" : "upload"]: !0
@@ -2596,10 +2601,10 @@ const Re = (e, t, r = 3) => {
2596
2601
  total: e,
2597
2602
  loaded: n
2598
2603
  }), t[1]];
2599
- }, Kt = (e) => (...t) => f.asap(() => e(...t)), Eo = F.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (r) => (r = new URL(r, F.origin), e.protocol === r.protocol && e.host === r.host && (t || e.port === r.port)))(
2600
- new URL(F.origin),
2601
- F.navigator && /(msie|trident)/i.test(F.navigator.userAgent)
2602
- ) : () => !0, Co = F.hasStandardBrowserEnv ? (
2604
+ }, Kt = (e) => (...t) => f.asap(() => e(...t)), So = x.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (r) => (r = new URL(r, x.origin), e.protocol === r.protocol && e.host === r.host && (t || e.port === r.port)))(
2605
+ new URL(x.origin),
2606
+ x.navigator && /(msie|trident)/i.test(x.navigator.userAgent)
2607
+ ) : () => !0, Ro = x.hasStandardBrowserEnv ? (
2603
2608
  // Standard browser envs support document.cookie
2604
2609
  {
2605
2610
  write(e, t, r, n, o, i, s) {
@@ -2628,44 +2633,44 @@ const Re = (e, t, r = 3) => {
2628
2633
  }
2629
2634
  }
2630
2635
  );
2631
- function So(e) {
2636
+ function To(e) {
2632
2637
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
2633
2638
  }
2634
- function Ro(e, t) {
2639
+ function Ao(e, t) {
2635
2640
  return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
2636
2641
  }
2637
- function An(e, t, r) {
2638
- let n = !So(t);
2639
- return e && (n || r == !1) ? Ro(e, t) : t;
2642
+ function Pn(e, t, r) {
2643
+ let n = !To(t);
2644
+ return e && (n || r == !1) ? Ao(e, t) : t;
2640
2645
  }
2641
- const Wt = (e) => e instanceof k ? { ...e } : e;
2646
+ const Wt = (e) => e instanceof M ? { ...e } : e;
2642
2647
  function X(e, t) {
2643
2648
  t = t || {};
2644
2649
  const r = {};
2645
- function n(c, l, h, m) {
2646
- return f.isPlainObject(c) && f.isPlainObject(l) ? f.merge.call({ caseless: m }, c, l) : f.isPlainObject(l) ? f.merge({}, l) : f.isArray(l) ? l.slice() : l;
2650
+ function n(l, c, h, m) {
2651
+ return f.isPlainObject(l) && f.isPlainObject(c) ? f.merge.call({ caseless: m }, l, c) : f.isPlainObject(c) ? f.merge({}, c) : f.isArray(c) ? c.slice() : c;
2647
2652
  }
2648
- function o(c, l, h, m) {
2649
- if (f.isUndefined(l)) {
2650
- if (!f.isUndefined(c))
2651
- return n(void 0, c, h, m);
2652
- } else return n(c, l, h, m);
2653
+ function o(l, c, h, m) {
2654
+ if (f.isUndefined(c)) {
2655
+ if (!f.isUndefined(l))
2656
+ return n(void 0, l, h, m);
2657
+ } else return n(l, c, h, m);
2653
2658
  }
2654
- function i(c, l) {
2655
- if (!f.isUndefined(l))
2656
- return n(void 0, l);
2659
+ function i(l, c) {
2660
+ if (!f.isUndefined(c))
2661
+ return n(void 0, c);
2657
2662
  }
2658
- function s(c, l) {
2659
- if (f.isUndefined(l)) {
2660
- if (!f.isUndefined(c))
2661
- return n(void 0, c);
2662
- } else return n(void 0, l);
2663
+ function s(l, c) {
2664
+ if (f.isUndefined(c)) {
2665
+ if (!f.isUndefined(l))
2666
+ return n(void 0, l);
2667
+ } else return n(void 0, c);
2663
2668
  }
2664
- function a(c, l, h) {
2669
+ function a(l, c, h) {
2665
2670
  if (h in t)
2666
- return n(c, l);
2671
+ return n(l, c);
2667
2672
  if (h in e)
2668
- return n(void 0, c);
2673
+ return n(void 0, l);
2669
2674
  }
2670
2675
  const u = {
2671
2676
  url: i,
@@ -2696,49 +2701,49 @@ function X(e, t) {
2696
2701
  socketPath: s,
2697
2702
  responseEncoding: s,
2698
2703
  validateStatus: a,
2699
- headers: (c, l, h) => o(Wt(c), Wt(l), h, !0)
2704
+ headers: (l, c, h) => o(Wt(l), Wt(c), h, !0)
2700
2705
  };
2701
- return f.forEach(Object.keys({ ...e, ...t }), function(l) {
2702
- const h = u[l] || o, m = h(e[l], t[l], l);
2703
- f.isUndefined(m) && h !== a || (r[l] = m);
2706
+ return f.forEach(Object.keys({ ...e, ...t }), function(c) {
2707
+ const h = u[c] || o, m = h(e[c], t[c], c);
2708
+ f.isUndefined(m) && h !== a || (r[c] = m);
2704
2709
  }), r;
2705
2710
  }
2706
- const Bn = (e) => {
2711
+ const Nn = (e) => {
2707
2712
  const t = X({}, e);
2708
2713
  let { data: r, withXSRFToken: n, xsrfHeaderName: o, xsrfCookieName: i, headers: s, auth: a } = t;
2709
- if (t.headers = s = k.from(s), t.url = En(An(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), a && s.set(
2714
+ if (t.headers = s = M.from(s), t.url = Sn(Pn(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), a && s.set(
2710
2715
  "Authorization",
2711
2716
  "Basic " + btoa((a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : ""))
2712
2717
  ), f.isFormData(r)) {
2713
- if (F.hasStandardBrowserEnv || F.hasStandardBrowserWebWorkerEnv)
2718
+ if (x.hasStandardBrowserEnv || x.hasStandardBrowserWebWorkerEnv)
2714
2719
  s.setContentType(void 0);
2715
2720
  else if (f.isFunction(r.getHeaders)) {
2716
- const u = r.getHeaders(), c = ["content-type", "content-length"];
2717
- Object.entries(u).forEach(([l, h]) => {
2718
- c.includes(l.toLowerCase()) && s.set(l, h);
2721
+ const u = r.getHeaders(), l = ["content-type", "content-length"];
2722
+ Object.entries(u).forEach(([c, h]) => {
2723
+ l.includes(c.toLowerCase()) && s.set(c, h);
2719
2724
  });
2720
2725
  }
2721
2726
  }
2722
- if (F.hasStandardBrowserEnv && (n && f.isFunction(n) && (n = n(t)), n || n !== !1 && Eo(t.url))) {
2723
- const u = o && i && Co.read(i);
2727
+ if (x.hasStandardBrowserEnv && (n && f.isFunction(n) && (n = n(t)), n || n !== !1 && So(t.url))) {
2728
+ const u = o && i && Ro.read(i);
2724
2729
  u && s.set(o, u);
2725
2730
  }
2726
2731
  return t;
2727
- }, To = typeof XMLHttpRequest < "u", Ao = To && function(e) {
2732
+ }, Bo = typeof XMLHttpRequest < "u", Po = Bo && function(e) {
2728
2733
  return new Promise(function(r, n) {
2729
- const o = Bn(e);
2734
+ const o = Nn(e);
2730
2735
  let i = o.data;
2731
- const s = k.from(o.headers).normalize();
2732
- let { responseType: a, onUploadProgress: u, onDownloadProgress: c } = o, l, h, m, y, d;
2736
+ const s = M.from(o.headers).normalize();
2737
+ let { responseType: a, onUploadProgress: u, onDownloadProgress: l } = o, c, h, m, y, d;
2733
2738
  function p() {
2734
- y && y(), d && d(), o.cancelToken && o.cancelToken.unsubscribe(l), o.signal && o.signal.removeEventListener("abort", l);
2739
+ y && y(), d && d(), o.cancelToken && o.cancelToken.unsubscribe(c), o.signal && o.signal.removeEventListener("abort", c);
2735
2740
  }
2736
2741
  let g = new XMLHttpRequest();
2737
2742
  g.open(o.method.toUpperCase(), o.url, !0), g.timeout = o.timeout;
2738
2743
  function w() {
2739
2744
  if (!g)
2740
2745
  return;
2741
- const E = k.from(
2746
+ const E = M.from(
2742
2747
  "getAllResponseHeaders" in g && g.getAllResponseHeaders()
2743
2748
  ), _ = {
2744
2749
  data: !a || a === "text" || a === "json" ? g.responseText : g.response,
@@ -2748,7 +2753,7 @@ const Bn = (e) => {
2748
2753
  config: e,
2749
2754
  request: g
2750
2755
  };
2751
- Tn(function(S) {
2756
+ Bn(function(S) {
2752
2757
  r(S), p();
2753
2758
  }, function(S) {
2754
2759
  n(S), p();
@@ -2763,7 +2768,7 @@ const Bn = (e) => {
2763
2768
  b.event = R || null, n(b), g = null;
2764
2769
  }, g.ontimeout = function() {
2765
2770
  let R = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
2766
- const _ = o.transitional || Cn;
2771
+ const _ = o.transitional || Rn;
2767
2772
  o.timeoutErrorMessage && (R = o.timeoutErrorMessage), n(new I(
2768
2773
  R,
2769
2774
  _.clarifyTimeoutError ? I.ETIMEDOUT : I.ECONNABORTED,
@@ -2772,40 +2777,40 @@ const Bn = (e) => {
2772
2777
  )), g = null;
2773
2778
  }, i === void 0 && s.setContentType(null), "setRequestHeader" in g && f.forEach(s.toJSON(), function(R, _) {
2774
2779
  g.setRequestHeader(_, R);
2775
- }), f.isUndefined(o.withCredentials) || (g.withCredentials = !!o.withCredentials), a && a !== "json" && (g.responseType = o.responseType), c && ([m, d] = Re(c, !0), g.addEventListener("progress", m)), u && g.upload && ([h, y] = Re(u), g.upload.addEventListener("progress", h), g.upload.addEventListener("loadend", y)), (o.cancelToken || o.signal) && (l = (E) => {
2780
+ }), f.isUndefined(o.withCredentials) || (g.withCredentials = !!o.withCredentials), a && a !== "json" && (g.responseType = o.responseType), l && ([m, d] = Re(l, !0), g.addEventListener("progress", m)), u && g.upload && ([h, y] = Re(u), g.upload.addEventListener("progress", h), g.upload.addEventListener("loadend", y)), (o.cancelToken || o.signal) && (c = (E) => {
2776
2781
  g && (n(!E || E.type ? new ae(null, e, g) : E), g.abort(), g = null);
2777
- }, o.cancelToken && o.cancelToken.subscribe(l), o.signal && (o.signal.aborted ? l() : o.signal.addEventListener("abort", l)));
2778
- const P = yo(o.url);
2779
- if (P && F.protocols.indexOf(P) === -1) {
2780
- n(new I("Unsupported protocol " + P + ":", I.ERR_BAD_REQUEST, e));
2782
+ }, o.cancelToken && o.cancelToken.subscribe(c), o.signal && (o.signal.aborted ? c() : o.signal.addEventListener("abort", c)));
2783
+ const N = bo(o.url);
2784
+ if (N && x.protocols.indexOf(N) === -1) {
2785
+ n(new I("Unsupported protocol " + N + ":", I.ERR_BAD_REQUEST, e));
2781
2786
  return;
2782
2787
  }
2783
2788
  g.send(i || null);
2784
2789
  });
2785
- }, Bo = (e, t) => {
2790
+ }, No = (e, t) => {
2786
2791
  const { length: r } = e = e ? e.filter(Boolean) : [];
2787
2792
  if (t || r) {
2788
2793
  let n = new AbortController(), o;
2789
- const i = function(c) {
2794
+ const i = function(l) {
2790
2795
  if (!o) {
2791
2796
  o = !0, a();
2792
- const l = c instanceof Error ? c : this.reason;
2793
- n.abort(l instanceof I ? l : new ae(l instanceof Error ? l.message : l));
2797
+ const c = l instanceof Error ? l : this.reason;
2798
+ n.abort(c instanceof I ? c : new ae(c instanceof Error ? c.message : c));
2794
2799
  }
2795
2800
  };
2796
2801
  let s = t && setTimeout(() => {
2797
2802
  s = null, i(new I(`timeout ${t} of ms exceeded`, I.ETIMEDOUT));
2798
2803
  }, t);
2799
2804
  const a = () => {
2800
- e && (s && clearTimeout(s), s = null, e.forEach((c) => {
2801
- c.unsubscribe ? c.unsubscribe(i) : c.removeEventListener("abort", i);
2805
+ e && (s && clearTimeout(s), s = null, e.forEach((l) => {
2806
+ l.unsubscribe ? l.unsubscribe(i) : l.removeEventListener("abort", i);
2802
2807
  }), e = null);
2803
2808
  };
2804
- e.forEach((c) => c.addEventListener("abort", i));
2809
+ e.forEach((l) => l.addEventListener("abort", i));
2805
2810
  const { signal: u } = n;
2806
2811
  return u.unsubscribe = () => f.asap(a), u;
2807
2812
  }
2808
- }, No = function* (e, t) {
2813
+ }, Oo = function* (e, t) {
2809
2814
  let r = e.byteLength;
2810
2815
  if (r < t) {
2811
2816
  yield e;
@@ -2814,10 +2819,10 @@ const Bn = (e) => {
2814
2819
  let n = 0, o;
2815
2820
  for (; n < r; )
2816
2821
  o = n + t, yield e.slice(n, o), n = o;
2817
- }, Po = async function* (e, t) {
2818
- for await (const r of Oo(e))
2819
- yield* No(r, t);
2820
- }, Oo = async function* (e) {
2822
+ }, Lo = async function* (e, t) {
2823
+ for await (const r of Io(e))
2824
+ yield* Oo(r, t);
2825
+ }, Io = async function* (e) {
2821
2826
  if (e[Symbol.asyncIterator]) {
2822
2827
  yield* e;
2823
2828
  return;
@@ -2834,26 +2839,26 @@ const Bn = (e) => {
2834
2839
  await t.cancel();
2835
2840
  }
2836
2841
  }, Gt = (e, t, r, n) => {
2837
- const o = Po(e, t);
2842
+ const o = Lo(e, t);
2838
2843
  let i = 0, s, a = (u) => {
2839
2844
  s || (s = !0, n && n(u));
2840
2845
  };
2841
2846
  return new ReadableStream({
2842
2847
  async pull(u) {
2843
2848
  try {
2844
- const { done: c, value: l } = await o.next();
2845
- if (c) {
2849
+ const { done: l, value: c } = await o.next();
2850
+ if (l) {
2846
2851
  a(), u.close();
2847
2852
  return;
2848
2853
  }
2849
- let h = l.byteLength;
2854
+ let h = c.byteLength;
2850
2855
  if (r) {
2851
2856
  let m = i += h;
2852
2857
  r(m);
2853
2858
  }
2854
- u.enqueue(new Uint8Array(l));
2855
- } catch (c) {
2856
- throw a(c), c;
2859
+ u.enqueue(new Uint8Array(c));
2860
+ } catch (l) {
2861
+ throw a(l), l;
2857
2862
  }
2858
2863
  },
2859
2864
  cancel(u) {
@@ -2862,7 +2867,7 @@ const Bn = (e) => {
2862
2867
  }, {
2863
2868
  highWaterMark: 2
2864
2869
  });
2865
- }, Qt = 64 * 1024, { isFunction: be } = f, Lo = (({ Request: e, Response: t }) => ({
2870
+ }, Qt = 64 * 1024, { isFunction: be } = f, _o = (({ Request: e, Response: t }) => ({
2866
2871
  Request: e,
2867
2872
  Response: t
2868
2873
  }))(f.global), {
@@ -2874,16 +2879,16 @@ const Bn = (e) => {
2874
2879
  } catch {
2875
2880
  return !1;
2876
2881
  }
2877
- }, Io = (e) => {
2882
+ }, vo = (e) => {
2878
2883
  e = f.merge.call({
2879
2884
  skipUndefined: !0
2880
- }, Lo, e);
2885
+ }, _o, e);
2881
2886
  const { fetch: t, Request: r, Response: n } = e, o = t ? be(t) : typeof fetch == "function", i = be(r), s = be(n);
2882
2887
  if (!o)
2883
2888
  return !1;
2884
- const a = o && be(Yt), u = o && (typeof Xt == "function" ? /* @__PURE__ */ ((d) => (p) => d.encode(p))(new Xt()) : async (d) => new Uint8Array(await new r(d).arrayBuffer())), c = i && a && Zt(() => {
2889
+ const a = o && be(Yt), u = o && (typeof Xt == "function" ? /* @__PURE__ */ ((d) => (p) => d.encode(p))(new Xt()) : async (d) => new Uint8Array(await new r(d).arrayBuffer())), l = i && a && Zt(() => {
2885
2890
  let d = !1;
2886
- const p = new r(F.origin, {
2891
+ const p = new r(x.origin, {
2887
2892
  body: new Yt(),
2888
2893
  method: "POST",
2889
2894
  get duplex() {
@@ -2891,8 +2896,8 @@ const Bn = (e) => {
2891
2896
  }
2892
2897
  }).headers.has("Content-Type");
2893
2898
  return d && !p;
2894
- }), l = s && a && Zt(() => f.isReadableStream(new n("").body)), h = {
2895
- stream: l && ((d) => d.body)
2899
+ }), c = s && a && Zt(() => f.isReadableStream(new n("").body)), h = {
2900
+ stream: c && ((d) => d.body)
2896
2901
  };
2897
2902
  o && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((d) => {
2898
2903
  !h[d] && (h[d] = (p, g) => {
@@ -2908,7 +2913,7 @@ const Bn = (e) => {
2908
2913
  if (f.isBlob(d))
2909
2914
  return d.size;
2910
2915
  if (f.isSpecCompliantForm(d))
2911
- return (await new r(F.origin, {
2916
+ return (await new r(x.origin, {
2912
2917
  method: "POST",
2913
2918
  body: d
2914
2919
  }).arrayBuffer()).byteLength;
@@ -2925,7 +2930,7 @@ const Bn = (e) => {
2925
2930
  url: p,
2926
2931
  method: g,
2927
2932
  data: w,
2928
- signal: P,
2933
+ signal: N,
2929
2934
  cancelToken: E,
2930
2935
  timeout: R,
2931
2936
  onDownloadProgress: _,
@@ -2934,21 +2939,21 @@ const Bn = (e) => {
2934
2939
  headers: A,
2935
2940
  withCredentials: C = "same-origin",
2936
2941
  fetchOptions: L
2937
- } = Bn(d), B = t || fetch;
2942
+ } = Nn(d), B = t || fetch;
2938
2943
  S = S ? (S + "").toLowerCase() : "text";
2939
- let N = Bo([P, E && E.toAbortSignal()], R), T = null;
2940
- const O = N && N.unsubscribe && (() => {
2941
- N.unsubscribe();
2944
+ let P = No([N, E && E.toAbortSignal()], R), T = null;
2945
+ const O = P && P.unsubscribe && (() => {
2946
+ P.unsubscribe();
2942
2947
  });
2943
2948
  let q;
2944
2949
  try {
2945
- if (b && c && g !== "get" && g !== "head" && (q = await y(A, w)) !== 0) {
2950
+ if (b && l && g !== "get" && g !== "head" && (q = await y(A, w)) !== 0) {
2946
2951
  let D = new r(p, {
2947
2952
  method: "POST",
2948
2953
  body: w,
2949
2954
  duplex: "half"
2950
- }), $;
2951
- if (f.isFormData(w) && ($ = D.headers.get("content-type")) && A.setContentType($), D.body) {
2955
+ }), V;
2956
+ if (f.isFormData(w) && (V = D.headers.get("content-type")) && A.setContentType(V), D.body) {
2952
2957
  const [G, te] = Jt(
2953
2958
  q,
2954
2959
  Re(Kt(b))
@@ -2959,7 +2964,7 @@ const Bn = (e) => {
2959
2964
  f.isString(C) || (C = C ? "include" : "omit");
2960
2965
  const U = i && "credentials" in r.prototype, me = {
2961
2966
  ...L,
2962
- signal: N,
2967
+ signal: P,
2963
2968
  method: g.toUpperCase(),
2964
2969
  headers: A.normalize().toJSON(),
2965
2970
  body: w,
@@ -2968,14 +2973,14 @@ const Bn = (e) => {
2968
2973
  };
2969
2974
  T = i && new r(p, me);
2970
2975
  let j = await (i ? B(T, L) : B(p, me));
2971
- const ye = l && (S === "stream" || S === "response");
2972
- if (l && (_ || ye && O)) {
2976
+ const ye = c && (S === "stream" || S === "response");
2977
+ if (c && (_ || ye && O)) {
2973
2978
  const D = {};
2974
2979
  ["status", "statusText", "headers"].forEach((ne) => {
2975
2980
  D[ne] = j[ne];
2976
2981
  });
2977
- const $ = f.toFiniteNumber(j.headers.get("content-length")), [G, te] = _ && Jt(
2978
- $,
2982
+ const V = f.toFiniteNumber(j.headers.get("content-length")), [G, te] = _ && Jt(
2983
+ V,
2979
2984
  Re(Kt(_), !0)
2980
2985
  ) || [];
2981
2986
  j = new n(
@@ -2987,10 +2992,10 @@ const Bn = (e) => {
2987
2992
  }
2988
2993
  S = S || "text";
2989
2994
  let ue = await h[f.findKey(h, S) || "text"](j, d);
2990
- return !ye && O && O(), await new Promise((D, $) => {
2991
- Tn(D, $, {
2995
+ return !ye && O && O(), await new Promise((D, V) => {
2996
+ Bn(D, V, {
2992
2997
  data: ue,
2993
- headers: k.from(j.headers),
2998
+ headers: M.from(j.headers),
2994
2999
  status: j.status,
2995
3000
  statusText: j.statusText,
2996
3001
  config: d,
@@ -3006,24 +3011,24 @@ const Bn = (e) => {
3006
3011
  ) : I.from(U, U && U.code, d, T);
3007
3012
  }
3008
3013
  };
3009
- }, _o = /* @__PURE__ */ new Map(), Nn = (e) => {
3014
+ }, Uo = /* @__PURE__ */ new Map(), On = (e) => {
3010
3015
  let t = e && e.env || {};
3011
3016
  const { fetch: r, Request: n, Response: o } = t, i = [
3012
3017
  n,
3013
3018
  o,
3014
3019
  r
3015
3020
  ];
3016
- let s = i.length, a = s, u, c, l = _o;
3021
+ let s = i.length, a = s, u, l, c = Uo;
3017
3022
  for (; a--; )
3018
- u = i[a], c = l.get(u), c === void 0 && l.set(u, c = a ? /* @__PURE__ */ new Map() : Io(t)), l = c;
3019
- return c;
3023
+ u = i[a], l = c.get(u), l === void 0 && c.set(u, l = a ? /* @__PURE__ */ new Map() : vo(t)), c = l;
3024
+ return l;
3020
3025
  };
3021
- Nn();
3026
+ On();
3022
3027
  const ft = {
3023
- http: Wr,
3024
- xhr: Ao,
3028
+ http: Qr,
3029
+ xhr: Po,
3025
3030
  fetch: {
3026
- get: Nn
3031
+ get: On
3027
3032
  }
3028
3033
  };
3029
3034
  f.forEach(ft, (e, t) => {
@@ -3035,8 +3040,8 @@ f.forEach(ft, (e, t) => {
3035
3040
  Object.defineProperty(e, "adapterName", { value: t });
3036
3041
  }
3037
3042
  });
3038
- const en = (e) => `- ${e}`, vo = (e) => f.isFunction(e) || e === null || e === !1;
3039
- function Uo(e, t) {
3043
+ const en = (e) => `- ${e}`, ko = (e) => f.isFunction(e) || e === null || e === !1;
3044
+ function xo(e, t) {
3040
3045
  e = f.isArray(e) ? e : [e];
3041
3046
  const { length: r } = e;
3042
3047
  let n, o;
@@ -3044,7 +3049,7 @@ function Uo(e, t) {
3044
3049
  for (let s = 0; s < r; s++) {
3045
3050
  n = e[s];
3046
3051
  let a;
3047
- if (o = n, !vo(n) && (o = ft[(a = String(n)).toLowerCase()], o === void 0))
3052
+ if (o = n, !ko(n) && (o = ft[(a = String(n)).toLowerCase()], o === void 0))
3048
3053
  throw new I(`Unknown adapter '${a}'`);
3049
3054
  if (o && (f.isFunction(o) || (o = o.get(t))))
3050
3055
  break;
@@ -3052,7 +3057,7 @@ function Uo(e, t) {
3052
3057
  }
3053
3058
  if (!o) {
3054
3059
  const s = Object.entries(i).map(
3055
- ([u, c]) => `adapter ${u} ` + (c === !1 ? "is not supported by the environment" : "is not available in the build")
3060
+ ([u, l]) => `adapter ${u} ` + (l === !1 ? "is not supported by the environment" : "is not available in the build")
3056
3061
  );
3057
3062
  let a = r ? s.length > 1 ? `since :
3058
3063
  ` + s.map(en).join(`
@@ -3064,12 +3069,12 @@ function Uo(e, t) {
3064
3069
  }
3065
3070
  return o;
3066
3071
  }
3067
- const Pn = {
3072
+ const Ln = {
3068
3073
  /**
3069
3074
  * Resolve an adapter from a list of adapter names or functions.
3070
3075
  * @type {Function}
3071
3076
  */
3072
- getAdapter: Uo,
3077
+ getAdapter: xo,
3073
3078
  /**
3074
3079
  * Exposes all known adapters
3075
3080
  * @type {Object<string, Function|Object>}
@@ -3081,33 +3086,33 @@ function tt(e) {
3081
3086
  throw new ae(null, e);
3082
3087
  }
3083
3088
  function tn(e) {
3084
- return tt(e), e.headers = k.from(e.headers), e.data = et.call(
3089
+ return tt(e), e.headers = M.from(e.headers), e.data = et.call(
3085
3090
  e,
3086
3091
  e.transformRequest
3087
- ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Pn.getAdapter(e.adapter || ge.adapter, e)(e).then(function(n) {
3092
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Ln.getAdapter(e.adapter || ge.adapter, e)(e).then(function(n) {
3088
3093
  return tt(e), n.data = et.call(
3089
3094
  e,
3090
3095
  e.transformResponse,
3091
3096
  n
3092
- ), n.headers = k.from(n.headers), n;
3097
+ ), n.headers = M.from(n.headers), n;
3093
3098
  }, function(n) {
3094
- return Rn(n) || (tt(e), n && n.response && (n.response.data = et.call(
3099
+ return An(n) || (tt(e), n && n.response && (n.response.data = et.call(
3095
3100
  e,
3096
3101
  e.transformResponse,
3097
3102
  n.response
3098
- ), n.response.headers = k.from(n.response.headers))), Promise.reject(n);
3103
+ ), n.response.headers = M.from(n.response.headers))), Promise.reject(n);
3099
3104
  });
3100
3105
  }
3101
- const On = "1.13.1", Pe = {};
3106
+ const In = "1.13.1", Ne = {};
3102
3107
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
3103
- Pe[e] = function(n) {
3108
+ Ne[e] = function(n) {
3104
3109
  return typeof n === e || "a" + (t < 1 ? "n " : " ") + e;
3105
3110
  };
3106
3111
  });
3107
3112
  const nn = {};
3108
- Pe.transitional = function(t, r, n) {
3113
+ Ne.transitional = function(t, r, n) {
3109
3114
  function o(i, s) {
3110
- return "[Axios v" + On + "] Transitional option '" + i + "'" + s + (n ? ". " + n : "");
3115
+ return "[Axios v" + In + "] Transitional option '" + i + "'" + s + (n ? ". " + n : "");
3111
3116
  }
3112
3117
  return (i, s, a) => {
3113
3118
  if (t === !1)
@@ -3123,10 +3128,10 @@ Pe.transitional = function(t, r, n) {
3123
3128
  )), t ? t(i, s, a) : !0;
3124
3129
  };
3125
3130
  };
3126
- Pe.spelling = function(t) {
3131
+ Ne.spelling = function(t) {
3127
3132
  return (r, n) => (console.warn(`${n} is likely a misspelling of ${t}`), !0);
3128
3133
  };
3129
- function xo(e, t, r) {
3134
+ function Fo(e, t, r) {
3130
3135
  if (typeof e != "object")
3131
3136
  throw new I("options must be an object", I.ERR_BAD_OPTION_VALUE);
3132
3137
  const n = Object.keys(e);
@@ -3144,14 +3149,14 @@ function xo(e, t, r) {
3144
3149
  }
3145
3150
  }
3146
3151
  const Se = {
3147
- assertOptions: xo,
3148
- validators: Pe
3149
- }, V = Se.validators;
3152
+ assertOptions: Fo,
3153
+ validators: Ne
3154
+ }, $ = Se.validators;
3150
3155
  let Y = class {
3151
3156
  constructor(t) {
3152
3157
  this.defaults = t || {}, this.interceptors = {
3153
- request: new Vt(),
3154
- response: new Vt()
3158
+ request: new $t(),
3159
+ response: new $t()
3155
3160
  };
3156
3161
  }
3157
3162
  /**
@@ -3183,17 +3188,17 @@ let Y = class {
3183
3188
  typeof t == "string" ? (r = r || {}, r.url = t) : r = t || {}, r = X(this.defaults, r);
3184
3189
  const { transitional: n, paramsSerializer: o, headers: i } = r;
3185
3190
  n !== void 0 && Se.assertOptions(n, {
3186
- silentJSONParsing: V.transitional(V.boolean),
3187
- forcedJSONParsing: V.transitional(V.boolean),
3188
- clarifyTimeoutError: V.transitional(V.boolean)
3191
+ silentJSONParsing: $.transitional($.boolean),
3192
+ forcedJSONParsing: $.transitional($.boolean),
3193
+ clarifyTimeoutError: $.transitional($.boolean)
3189
3194
  }, !1), o != null && (f.isFunction(o) ? r.paramsSerializer = {
3190
3195
  serialize: o
3191
3196
  } : Se.assertOptions(o, {
3192
- encode: V.function,
3193
- serialize: V.function
3197
+ encode: $.function,
3198
+ serialize: $.function
3194
3199
  }, !0)), r.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? r.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : r.allowAbsoluteUrls = !0), Se.assertOptions(r, {
3195
- baseUrl: V.spelling("baseURL"),
3196
- withXsrfToken: V.spelling("withXSRFToken")
3200
+ baseUrl: $.spelling("baseURL"),
3201
+ withXsrfToken: $.spelling("withXSRFToken")
3197
3202
  }, !0), r.method = (r.method || this.defaults.method || "get").toLowerCase();
3198
3203
  let s = i && f.merge(
3199
3204
  i.common,
@@ -3204,22 +3209,22 @@ let Y = class {
3204
3209
  (d) => {
3205
3210
  delete i[d];
3206
3211
  }
3207
- ), r.headers = k.concat(s, i);
3212
+ ), r.headers = M.concat(s, i);
3208
3213
  const a = [];
3209
3214
  let u = !0;
3210
3215
  this.interceptors.request.forEach(function(p) {
3211
3216
  typeof p.runWhen == "function" && p.runWhen(r) === !1 || (u = u && p.synchronous, a.unshift(p.fulfilled, p.rejected));
3212
3217
  });
3213
- const c = [];
3218
+ const l = [];
3214
3219
  this.interceptors.response.forEach(function(p) {
3215
- c.push(p.fulfilled, p.rejected);
3220
+ l.push(p.fulfilled, p.rejected);
3216
3221
  });
3217
- let l, h = 0, m;
3222
+ let c, h = 0, m;
3218
3223
  if (!u) {
3219
3224
  const d = [tn.bind(this), void 0];
3220
- for (d.unshift(...a), d.push(...c), m = d.length, l = Promise.resolve(r); h < m; )
3221
- l = l.then(d[h++], d[h++]);
3222
- return l;
3225
+ for (d.unshift(...a), d.push(...l), m = d.length, c = Promise.resolve(r); h < m; )
3226
+ c = c.then(d[h++], d[h++]);
3227
+ return c;
3223
3228
  }
3224
3229
  m = a.length;
3225
3230
  let y = r;
@@ -3233,18 +3238,18 @@ let Y = class {
3233
3238
  }
3234
3239
  }
3235
3240
  try {
3236
- l = tn.call(this, y);
3241
+ c = tn.call(this, y);
3237
3242
  } catch (d) {
3238
3243
  return Promise.reject(d);
3239
3244
  }
3240
- for (h = 0, m = c.length; h < m; )
3241
- l = l.then(c[h++], c[h++]);
3242
- return l;
3245
+ for (h = 0, m = l.length; h < m; )
3246
+ c = c.then(l[h++], l[h++]);
3247
+ return c;
3243
3248
  }
3244
3249
  getUri(t) {
3245
3250
  t = X(this.defaults, t);
3246
- const r = An(t.baseURL, t.url, t.allowAbsoluteUrls);
3247
- return En(r, t.params, t.paramsSerializer);
3251
+ const r = Pn(t.baseURL, t.url, t.allowAbsoluteUrls);
3252
+ return Sn(r, t.params, t.paramsSerializer);
3248
3253
  }
3249
3254
  };
3250
3255
  f.forEach(["delete", "get", "head", "options"], function(t) {
@@ -3271,7 +3276,7 @@ f.forEach(["post", "put", "patch"], function(t) {
3271
3276
  }
3272
3277
  Y.prototype[t] = r(), Y.prototype[t + "Form"] = r(!0);
3273
3278
  });
3274
- let Fo = class Ln {
3279
+ let Mo = class _n {
3275
3280
  constructor(t) {
3276
3281
  if (typeof t != "function")
3277
3282
  throw new TypeError("executor must be a function.");
@@ -3337,19 +3342,19 @@ let Fo = class Ln {
3337
3342
  static source() {
3338
3343
  let t;
3339
3344
  return {
3340
- token: new Ln(function(o) {
3345
+ token: new _n(function(o) {
3341
3346
  t = o;
3342
3347
  }),
3343
3348
  cancel: t
3344
3349
  };
3345
3350
  }
3346
3351
  };
3347
- function Mo(e) {
3352
+ function Do(e) {
3348
3353
  return function(r) {
3349
3354
  return e.apply(null, r);
3350
3355
  };
3351
3356
  }
3352
- function ko(e) {
3357
+ function qo(e) {
3353
3358
  return f.isObject(e) && e.isAxiosError === !0;
3354
3359
  }
3355
3360
  const st = {
@@ -3426,58 +3431,58 @@ const st = {
3426
3431
  Object.entries(st).forEach(([e, t]) => {
3427
3432
  st[t] = e;
3428
3433
  });
3429
- function In(e) {
3430
- const t = new Y(e), r = un(Y.prototype.request, t);
3434
+ function vn(e) {
3435
+ const t = new Y(e), r = cn(Y.prototype.request, t);
3431
3436
  return f.extend(r, Y.prototype, t, { allOwnKeys: !0 }), f.extend(r, t, null, { allOwnKeys: !0 }), r.create = function(o) {
3432
- return In(X(e, o));
3437
+ return vn(X(e, o));
3433
3438
  }, r;
3434
3439
  }
3435
- const v = In(ge);
3440
+ const v = vn(ge);
3436
3441
  v.Axios = Y;
3437
3442
  v.CanceledError = ae;
3438
- v.CancelToken = Fo;
3439
- v.isCancel = Rn;
3440
- v.VERSION = On;
3441
- v.toFormData = Ne;
3443
+ v.CancelToken = Mo;
3444
+ v.isCancel = An;
3445
+ v.VERSION = In;
3446
+ v.toFormData = Pe;
3442
3447
  v.AxiosError = I;
3443
3448
  v.Cancel = v.CanceledError;
3444
3449
  v.all = function(t) {
3445
3450
  return Promise.all(t);
3446
3451
  };
3447
- v.spread = Mo;
3448
- v.isAxiosError = ko;
3452
+ v.spread = Do;
3453
+ v.isAxiosError = qo;
3449
3454
  v.mergeConfig = X;
3450
- v.AxiosHeaders = k;
3451
- v.formToJSON = (e) => Sn(f.isHTMLForm(e) ? new FormData(e) : e);
3452
- v.getAdapter = Pn.getAdapter;
3455
+ v.AxiosHeaders = M;
3456
+ v.formToJSON = (e) => Tn(f.isHTMLForm(e) ? new FormData(e) : e);
3457
+ v.getAdapter = Ln.getAdapter;
3453
3458
  v.HttpStatusCode = st;
3454
3459
  v.default = v;
3455
3460
  const {
3456
- Axios: Ko,
3457
- AxiosError: Wo,
3458
- CanceledError: Go,
3459
- isCancel: Qo,
3460
- CancelToken: Yo,
3461
- VERSION: Xo,
3462
- all: Zo,
3463
- Cancel: ei,
3464
- isAxiosError: ti,
3465
- spread: ni,
3466
- toFormData: ri,
3467
- AxiosHeaders: oi,
3468
- HttpStatusCode: ii,
3469
- formToJSON: si,
3470
- getAdapter: ai,
3471
- mergeConfig: ui
3472
- } = v, fe = Dn(), _n = v.create({
3461
+ Axios: Go,
3462
+ AxiosError: Qo,
3463
+ CanceledError: Yo,
3464
+ isCancel: Xo,
3465
+ CancelToken: Zo,
3466
+ VERSION: ei,
3467
+ all: ti,
3468
+ Cancel: ni,
3469
+ isAxiosError: ri,
3470
+ spread: oi,
3471
+ toFormData: ii,
3472
+ AxiosHeaders: si,
3473
+ HttpStatusCode: ai,
3474
+ formToJSON: ui,
3475
+ getAdapter: li,
3476
+ mergeConfig: ci
3477
+ } = v, fe = on(), Un = v.create({
3473
3478
  baseURL: fe.baseUrl
3474
3479
  });
3475
- async function Do(e = {}) {
3476
- return (await _n.post(fe.createEndpoint, e, {
3480
+ async function jo(e = {}) {
3481
+ return (await Un.post(fe.createEndpoint, e, {
3477
3482
  withCredentials: !0
3478
3483
  })).data;
3479
3484
  }
3480
- function qo(e = () => {
3485
+ function Ho(e = () => {
3481
3486
  }, t = () => {
3482
3487
  }) {
3483
3488
  const r = new URL(fe.authEventEndpoint, fe.baseUrl), n = new EventSource(r, {
@@ -3485,7 +3490,7 @@ function qo(e = () => {
3485
3490
  });
3486
3491
  return n.addEventListener("auth-success", async (o) => {
3487
3492
  try {
3488
- await _n.post(fe.authConfirmEndpoint, null, {
3493
+ await Un.post(fe.authConfirmEndpoint, null, {
3489
3494
  withCredentials: !0
3490
3495
  }), e();
3491
3496
  } catch (i) {
@@ -3497,27 +3502,28 @@ function qo(e = () => {
3497
3502
  console.error("EventSource failed:", o), n.close();
3498
3503
  }, n;
3499
3504
  }
3500
- class jo {
3505
+ const rn = on();
3506
+ class zo {
3501
3507
  constructor() {
3502
- x(this, "overlay", null);
3503
- x(this, "isOpen", !1);
3504
- x(this, "authEvent", null);
3508
+ k(this, "overlay", null);
3509
+ k(this, "isOpen", !1);
3510
+ k(this, "authEvent", null);
3505
3511
  // Элементы для управления состояниями
3506
- x(this, "contentContainer", null);
3507
- x(this, "loader", null);
3508
- x(this, "qrContainer", null);
3509
- x(this, "separator", null);
3510
- x(this, "loginButton", null);
3511
- x(this, "errorContainer", null);
3512
- x(this, "timerContainer", null);
3512
+ k(this, "contentContainer", null);
3513
+ k(this, "loader", null);
3514
+ k(this, "qrContainer", null);
3515
+ k(this, "separator", null);
3516
+ k(this, "loginButton", null);
3517
+ k(this, "errorContainer", null);
3518
+ k(this, "timerContainer", null);
3513
3519
  // Таймер
3514
- x(this, "timerInterval", null);
3520
+ k(this, "timerInterval", null);
3515
3521
  // Промис
3516
- x(this, "resolvePromise", null);
3517
- x(this, "rejectPromise", null);
3518
- x(this, "currentPromise", null);
3522
+ k(this, "resolvePromise", null);
3523
+ k(this, "rejectPromise", null);
3524
+ k(this, "currentPromise", null);
3519
3525
  // Добавим свойство для хранения данных запроса
3520
- x(this, "requestData", null);
3526
+ k(this, "requestData", null);
3521
3527
  }
3522
3528
  createElement(t, r, n) {
3523
3529
  const o = document.createElement(t);
@@ -3535,7 +3541,7 @@ class jo {
3535
3541
  try {
3536
3542
  t.innerHTML = "";
3537
3543
  const n = document.createElement("canvas");
3538
- await ur.toCanvas(n, r, { width: 200, margin: 1 }), t.appendChild(n);
3544
+ await cr.toCanvas(n, r, { width: 200, margin: 1 }), t.appendChild(n);
3539
3545
  } catch (n) {
3540
3546
  console.error("Ошибка при генерации QR-кода:", n), t.innerHTML = "<p>Не удалось загрузить QR-код</p>";
3541
3547
  }
@@ -3558,16 +3564,16 @@ class jo {
3558
3564
  renderSuccessState(t) {
3559
3565
  this.loader.style.display = "none", this.errorContainer.style.display = "none", this.qrContainer.style.display = "flex", this.separator.style.display = "block", this.loginButton.style.display = "block";
3560
3566
  const r = this.chooseLink(t);
3561
- this.generateQR(this.qrContainer, r), this.loginButton.onclick = () => window.open(r), this.authEvent = qo(() => {
3567
+ this.generateQR(this.qrContainer, r), this.loginButton.onclick = () => window.open(r), this.authEvent = Ho(() => {
3562
3568
  this.close(), this.resolvePromise();
3563
3569
  }, (n) => this.renderErrorState(n)), t.validUntil ? (this.timerContainer.style.display = "block", this.startTimer(t.validUntil)) : this.timerContainer.style.display = "none";
3564
3570
  }
3565
3571
  chooseLink(t) {
3566
3572
  const r = t.links, n = r.find((i) => i.type == "WEB_APP");
3567
- if (n)
3573
+ if (n && rn.linkType == "WEB_APP")
3568
3574
  return n.link;
3569
3575
  const o = r.find((i) => i.type == "BOT");
3570
- if (o)
3576
+ if (o && rn.linkType == "BOT")
3571
3577
  return o.link;
3572
3578
  if (r.length > 0)
3573
3579
  return r[0].link;
@@ -3601,7 +3607,7 @@ class jo {
3601
3607
  if (this.requestData) {
3602
3608
  this.setLoadingState();
3603
3609
  try {
3604
- const t = await Do(this.requestData);
3610
+ const t = await jo(this.requestData);
3605
3611
  this.renderSuccessState(t);
3606
3612
  } catch (t) {
3607
3613
  this.renderErrorState(t);
@@ -3614,24 +3620,24 @@ class jo {
3614
3620
  }, 400));
3615
3621
  }
3616
3622
  }
3617
- Ho();
3618
- const vn = new jo();
3619
- async function ci(e = {}) {
3620
- return vn.show(e);
3623
+ $o();
3624
+ const kn = new zo();
3625
+ async function fi(e = {}) {
3626
+ return kn.show(e);
3621
3627
  }
3622
- function li() {
3623
- vn.close();
3628
+ function di() {
3629
+ kn.close();
3624
3630
  }
3625
- function Ho() {
3631
+ function $o() {
3626
3632
  if (document.getElementById("oauth0-js-lib-styles")) return;
3627
3633
  const e = document.createElement("style");
3628
- e.id = "oauth0-js-lib-styles", e.innerHTML = qn, document.head.appendChild(e);
3634
+ e.id = "oauth0-js-lib-styles", e.innerHTML = Hn, document.head.appendChild(e);
3629
3635
  }
3630
3636
  export {
3631
- li as closeQrLogin,
3632
- qo as createAuthEvent,
3633
- Do as createAuthSession,
3634
- Dn as getConfig,
3635
- Vo as setConfig,
3636
- ci as showQrLogin
3637
+ di as closeQrLogin,
3638
+ Ho as createAuthEvent,
3639
+ jo as createAuthSession,
3640
+ on as getConfig,
3641
+ Jo as setConfig,
3642
+ fi as showQrLogin
3637
3643
  };