oauth0-js-lib 2.2.9 → 2.3.0

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