little-wheels 1.2.10 → 1.2.12

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.d.ts CHANGED
@@ -27,7 +27,7 @@ export declare class AuthLogin {
27
27
  * 4. 获取授权Token
28
28
  * @throws {Error} 当SSO流程失败时抛出异常
29
29
  */
30
- SSOLogin(): Promise<void>;
30
+ SSOLogin(): Promise<unknown>;
31
31
  /**
32
32
  * 跳转到登录页面
33
33
  * @description
package/dist/index.es.js CHANGED
@@ -64,27 +64,27 @@ const ln = {}, cn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
64
64
  __proto__: null,
65
65
  default: ln
66
66
  }, Symbol.toStringTag, { value: "Module" })), sn = /* @__PURE__ */ fn(cn);
67
- var je, Jr;
67
+ var He, Jr;
68
68
  function xe() {
69
- if (Jr) return je;
69
+ if (Jr) return He;
70
70
  Jr = 1;
71
- var r = typeof Map == "function" && Map.prototype, e = Object.getOwnPropertyDescriptor && r ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, t = r && e && typeof e.get == "function" ? e.get : null, a = r && Map.prototype.forEach, s = typeof Set == "function" && Set.prototype, y = Object.getOwnPropertyDescriptor && s ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, P = s && y && typeof y.get == "function" ? y.get : null, h = s && Set.prototype.forEach, E = typeof WeakMap == "function" && WeakMap.prototype, m = E ? WeakMap.prototype.has : null, d = typeof WeakSet == "function" && WeakSet.prototype, v = d ? WeakSet.prototype.has : null, S = typeof WeakRef == "function" && WeakRef.prototype, l = S ? WeakRef.prototype.deref : null, c = Boolean.prototype.valueOf, b = Object.prototype.toString, i = Function.prototype.toString, u = String.prototype.match, f = String.prototype.slice, g = String.prototype.replace, p = String.prototype.toUpperCase, w = String.prototype.toLowerCase, A = RegExp.prototype.test, O = Array.prototype.concat, R = Array.prototype.join, q = Array.prototype.slice, _ = Math.floor, D = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, I = Object.getOwnPropertySymbols, j = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, B = typeof Symbol == "function" && typeof Symbol.iterator == "object", Q = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === B || !0) ? Symbol.toStringTag : null, te = Object.prototype.propertyIsEnumerable, ne = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(n) {
71
+ var r = typeof Map == "function" && Map.prototype, e = Object.getOwnPropertyDescriptor && r ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, t = r && e && typeof e.get == "function" ? e.get : null, a = r && Map.prototype.forEach, s = typeof Set == "function" && Set.prototype, y = Object.getOwnPropertyDescriptor && s ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, P = s && y && typeof y.get == "function" ? y.get : null, h = s && Set.prototype.forEach, E = typeof WeakMap == "function" && WeakMap.prototype, m = E ? WeakMap.prototype.has : null, d = typeof WeakSet == "function" && WeakSet.prototype, v = d ? WeakSet.prototype.has : null, S = typeof WeakRef == "function" && WeakRef.prototype, l = S ? WeakRef.prototype.deref : null, c = Boolean.prototype.valueOf, b = Object.prototype.toString, i = Function.prototype.toString, u = String.prototype.match, f = String.prototype.slice, g = String.prototype.replace, p = String.prototype.toUpperCase, w = String.prototype.toLowerCase, A = RegExp.prototype.test, O = Array.prototype.concat, R = Array.prototype.join, q = Array.prototype.slice, T = Math.floor, D = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, I = Object.getOwnPropertySymbols, H = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, B = typeof Symbol == "function" && typeof Symbol.iterator == "object", Q = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === B || !0) ? Symbol.toStringTag : null, te = Object.prototype.propertyIsEnumerable, ne = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(n) {
72
72
  return n.__proto__;
73
73
  } : null);
74
- function $(n, o) {
74
+ function k(n, o) {
75
75
  if (n === 1 / 0 || n === -1 / 0 || n !== n || n && n > -1e3 && n < 1e3 || A.call(/e/, o))
76
76
  return o;
77
77
  var x = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
78
78
  if (typeof n == "number") {
79
- var C = n < 0 ? -_(-n) : _(n);
79
+ var C = n < 0 ? -T(-n) : T(n);
80
80
  if (C !== n) {
81
- var M = String(C), T = f.call(o, M.length + 1);
82
- return g.call(M, x, "$&_") + "." + g.call(g.call(T, /([0-9]{3})/g, "$&_"), /_$/, "");
81
+ var M = String(C), _ = f.call(o, M.length + 1);
82
+ return g.call(M, x, "$&_") + "." + g.call(g.call(_, /([0-9]{3})/g, "$&_"), /_$/, "");
83
83
  }
84
84
  }
85
85
  return g.call(o, x, "$&_");
86
86
  }
87
- var V = sn, oe = V.custom, ve = H(oe) ? oe : null, ue = {
87
+ var V = sn, oe = V.custom, ve = j(oe) ? oe : null, ue = {
88
88
  __proto__: null,
89
89
  double: '"',
90
90
  single: "'"
@@ -93,20 +93,20 @@ function xe() {
93
93
  double: /(["\\])/g,
94
94
  single: /(['\\])/g
95
95
  };
96
- je = function n(o, x, C, M) {
97
- var T = x || {};
98
- if (K(T, "quoteStyle") && !K(ue, T.quoteStyle))
96
+ He = function n(o, x, C, M) {
97
+ var _ = x || {};
98
+ if (K(_, "quoteStyle") && !K(ue, _.quoteStyle))
99
99
  throw new TypeError('option "quoteStyle" must be "single" or "double"');
100
- if (K(T, "maxStringLength") && (typeof T.maxStringLength == "number" ? T.maxStringLength < 0 && T.maxStringLength !== 1 / 0 : T.maxStringLength !== null))
100
+ if (K(_, "maxStringLength") && (typeof _.maxStringLength == "number" ? _.maxStringLength < 0 && _.maxStringLength !== 1 / 0 : _.maxStringLength !== null))
101
101
  throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
102
- var ye = K(T, "customInspect") ? T.customInspect : !0;
102
+ var ye = K(_, "customInspect") ? _.customInspect : !0;
103
103
  if (typeof ye != "boolean" && ye !== "symbol")
104
104
  throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
105
- if (K(T, "indent") && T.indent !== null && T.indent !== " " && !(parseInt(T.indent, 10) === T.indent && T.indent > 0))
105
+ if (K(_, "indent") && _.indent !== null && _.indent !== " " && !(parseInt(_.indent, 10) === _.indent && _.indent > 0))
106
106
  throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
107
- if (K(T, "numericSeparator") && typeof T.numericSeparator != "boolean")
107
+ if (K(_, "numericSeparator") && typeof _.numericSeparator != "boolean")
108
108
  throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
109
- var ge = T.numericSeparator;
109
+ var ge = _.numericSeparator;
110
110
  if (typeof o > "u")
111
111
  return "undefined";
112
112
  if (o === null)
@@ -114,55 +114,55 @@ function xe() {
114
114
  if (typeof o == "boolean")
115
115
  return o ? "true" : "false";
116
116
  if (typeof o == "string")
117
- return Nr(o, T);
117
+ return Nr(o, _);
118
118
  if (typeof o == "number") {
119
119
  if (o === 0)
120
120
  return 1 / 0 / o > 0 ? "0" : "-0";
121
121
  var J = String(o);
122
- return ge ? $(o, J) : J;
122
+ return ge ? k(o, J) : J;
123
123
  }
124
124
  if (typeof o == "bigint") {
125
125
  var de = String(o) + "n";
126
- return ge ? $(o, de) : de;
126
+ return ge ? k(o, de) : de;
127
127
  }
128
- var Ce = typeof T.depth > "u" ? 5 : T.depth;
128
+ var Ce = typeof _.depth > "u" ? 5 : _.depth;
129
129
  if (typeof C > "u" && (C = 0), C >= Ce && Ce > 0 && typeof o == "object")
130
130
  return ce(o) ? "[Array]" : "[Object]";
131
- var Oe = en(T, C);
131
+ var Oe = en(_, C);
132
132
  if (typeof M > "u")
133
133
  M = [];
134
134
  else if (pe(M, o) >= 0)
135
135
  return "[Circular]";
136
- function re(Ee, ke, tn) {
137
- if (ke && (M = q.call(M), M.push(ke)), tn) {
136
+ function re(Ee, $e, tn) {
137
+ if ($e && (M = q.call(M), M.push($e)), tn) {
138
138
  var Kr = {
139
- depth: T.depth
139
+ depth: _.depth
140
140
  };
141
- return K(T, "quoteStyle") && (Kr.quoteStyle = T.quoteStyle), n(Ee, Kr, C + 1, M);
141
+ return K(_, "quoteStyle") && (Kr.quoteStyle = _.quoteStyle), n(Ee, Kr, C + 1, M);
142
142
  }
143
- return n(Ee, T, C + 1, M);
143
+ return n(Ee, _, C + 1, M);
144
144
  }
145
145
  if (typeof o == "function" && !L(o)) {
146
- var Br = Se(o), Gr = Te(o, re);
146
+ var Br = Se(o), Gr = _e(o, re);
147
147
  return "[Function" + (Br ? ": " + Br : " (anonymous)") + "]" + (Gr.length > 0 ? " { " + R.call(Gr, ", ") + " }" : "");
148
148
  }
149
- if (H(o)) {
150
- var Wr = B ? g.call(String(o), /^(Symbol\(.*\))_[^)]*$/, "$1") : j.call(o);
149
+ if (j(o)) {
150
+ var Wr = B ? g.call(String(o), /^(Symbol\(.*\))_[^)]*$/, "$1") : H.call(o);
151
151
  return typeof o == "object" && !B ? Ie(Wr) : Wr;
152
152
  }
153
153
  if (Yt(o)) {
154
- for (var Re = "<" + w.call(String(o.nodeName)), Me = o.attributes || [], $e = 0; $e < Me.length; $e++)
155
- Re += " " + Me[$e].name + "=" + le(ae(Me[$e].value), "double", T);
154
+ for (var Re = "<" + w.call(String(o.nodeName)), Me = o.attributes || [], ke = 0; ke < Me.length; ke++)
155
+ Re += " " + Me[ke].name + "=" + le(ae(Me[ke].value), "double", _);
156
156
  return Re += ">", o.childNodes && o.childNodes.length && (Re += "..."), Re += "</" + w.call(String(o.nodeName)) + ">", Re;
157
157
  }
158
158
  if (ce(o)) {
159
159
  if (o.length === 0)
160
160
  return "[]";
161
- var Ne = Te(o, re);
161
+ var Ne = _e(o, re);
162
162
  return Oe && !Zt(Ne) ? "[" + Fe(Ne, Oe) + "]" : "[ " + R.call(Ne, ", ") + " ]";
163
163
  }
164
- if (k(o)) {
165
- var Ue = Te(o, re);
164
+ if ($(o)) {
165
+ var Ue = _e(o, re);
166
166
  return !("cause" in Error.prototype) && "cause" in o && !te.call(o, "cause") ? "{ [" + String(o) + "] " + R.call(O.call("[cause]: " + re(o.cause), Ue), ", ") + " }" : Ue.length === 0 ? "[" + String(o) + "]" : "{ [" + String(o) + "] " + R.call(Ue, ", ") + " }";
167
167
  }
168
168
  if (typeof o == "object" && ye) {
@@ -173,15 +173,15 @@ function xe() {
173
173
  }
174
174
  if (ee(o)) {
175
175
  var Lr = [];
176
- return a && a.call(o, function(Ee, ke) {
177
- Lr.push(re(ke, o, !0) + " => " + re(Ee, o));
176
+ return a && a.call(o, function(Ee, $e) {
177
+ Lr.push(re($e, o, !0) + " => " + re(Ee, o));
178
178
  }), Ur("Map", t.call(o), Lr, Oe);
179
179
  }
180
180
  if (Ae(o)) {
181
- var jr = [];
181
+ var Hr = [];
182
182
  return h && h.call(o, function(Ee) {
183
- jr.push(re(Ee, o));
184
- }), Ur("Set", P.call(o), jr, Oe);
183
+ Hr.push(re(Ee, o));
184
+ }), Ur("Set", P.call(o), Hr, Oe);
185
185
  }
186
186
  if (we(o))
187
187
  return De("WeakMap");
@@ -202,7 +202,7 @@ function xe() {
202
202
  if (typeof globalThis < "u" && o === globalThis || typeof Qr < "u" && o === Qr)
203
203
  return "{ [object globalThis] }";
204
204
  if (!se(o) && !L(o)) {
205
- var Be = Te(o, re), Hr = ne ? ne(o) === Object.prototype : o instanceof Object || o.constructor === Object, Ge = o instanceof Object ? "" : "null prototype", zr = !Hr && Q && Object(o) === o && Q in o ? f.call(Z(o), 8, -1) : Ge ? "Object" : "", rn = Hr || typeof o.constructor != "function" ? "" : o.constructor.name ? o.constructor.name + " " : "", We = rn + (zr || Ge ? "[" + R.call(O.call([], zr || [], Ge || []), ": ") + "] " : "");
205
+ var Be = _e(o, re), jr = ne ? ne(o) === Object.prototype : o instanceof Object || o.constructor === Object, Ge = o instanceof Object ? "" : "null prototype", zr = !jr && Q && Object(o) === o && Q in o ? f.call(Z(o), 8, -1) : Ge ? "Object" : "", rn = jr || typeof o.constructor != "function" ? "" : o.constructor.name ? o.constructor.name + " " : "", We = rn + (zr || Ge ? "[" + R.call(O.call([], zr || [], Ge || []), ": ") + "] " : "");
206
206
  return Be.length === 0 ? We + "{}" : Oe ? We + "{" + Fe(Be, Oe) + "}" : We + "{ " + R.call(Be, ", ") + " }";
207
207
  }
208
208
  return String(o);
@@ -226,7 +226,7 @@ function xe() {
226
226
  function L(n) {
227
227
  return Z(n) === "[object RegExp]" && Y(n);
228
228
  }
229
- function k(n) {
229
+ function $(n) {
230
230
  return Z(n) === "[object Error]" && Y(n);
231
231
  }
232
232
  function N(n) {
@@ -238,15 +238,15 @@ function xe() {
238
238
  function W(n) {
239
239
  return Z(n) === "[object Boolean]" && Y(n);
240
240
  }
241
- function H(n) {
241
+ function j(n) {
242
242
  if (B)
243
243
  return n && typeof n == "object" && n instanceof Symbol;
244
244
  if (typeof n == "symbol")
245
245
  return !0;
246
- if (!n || typeof n != "object" || !j)
246
+ if (!n || typeof n != "object" || !H)
247
247
  return !1;
248
248
  try {
249
- return j.call(n), !0;
249
+ return H.call(n), !0;
250
250
  } catch {
251
251
  }
252
252
  return !1;
@@ -362,8 +362,8 @@ function xe() {
362
362
  }
363
363
  var M = fe[o.quoteStyle || "single"];
364
364
  M.lastIndex = 0;
365
- var T = g.call(g.call(n, M, "\\$1"), /[\x00-\x1f]/g, Xt);
366
- return le(T, "single", o);
365
+ var _ = g.call(g.call(n, M, "\\$1"), /[\x00-\x1f]/g, Xt);
366
+ return le(_, "single", o);
367
367
  }
368
368
  function Xt(n) {
369
369
  var o = n.charCodeAt(0), x = {
@@ -413,31 +413,31 @@ function xe() {
413
413
  return x + R.call(n, "," + x) + `
414
414
  ` + o.prev;
415
415
  }
416
- function Te(n, o) {
416
+ function _e(n, o) {
417
417
  var x = ce(n), C = [];
418
418
  if (x) {
419
419
  C.length = n.length;
420
420
  for (var M = 0; M < n.length; M++)
421
421
  C[M] = K(n, M) ? o(n[M], n) : "";
422
422
  }
423
- var T = typeof I == "function" ? I(n) : [], ye;
423
+ var _ = typeof I == "function" ? I(n) : [], ye;
424
424
  if (B) {
425
425
  ye = {};
426
- for (var ge = 0; ge < T.length; ge++)
427
- ye["$" + T[ge]] = T[ge];
426
+ for (var ge = 0; ge < _.length; ge++)
427
+ ye["$" + _[ge]] = _[ge];
428
428
  }
429
429
  for (var J in n)
430
430
  K(n, J) && (x && String(Number(J)) === J && J < n.length || B && ye["$" + J] instanceof Symbol || (A.call(/[^\w$]/, J) ? C.push(o(J, n) + ": " + o(n[J], n)) : C.push(J + ": " + o(n[J], n))));
431
431
  if (typeof I == "function")
432
- for (var de = 0; de < T.length; de++)
433
- te.call(n, T[de]) && C.push("[" + o(T[de]) + "]: " + o(n[T[de]], n));
432
+ for (var de = 0; de < _.length; de++)
433
+ te.call(n, _[de]) && C.push("[" + o(_[de]) + "]: " + o(n[_[de]], n));
434
434
  return C;
435
435
  }
436
- return je;
436
+ return He;
437
437
  }
438
- var He, Yr;
438
+ var je, Yr;
439
439
  function pn() {
440
- if (Yr) return He;
440
+ if (Yr) return je;
441
441
  Yr = 1;
442
442
  var r = /* @__PURE__ */ xe(), e = /* @__PURE__ */ Pe(), t = function(h, E, m) {
443
443
  for (var d = h, v; (v = d.next) != null; d = v)
@@ -464,7 +464,7 @@ function pn() {
464
464
  if (h)
465
465
  return t(h, E, !0);
466
466
  };
467
- return He = function() {
467
+ return je = function() {
468
468
  var E, m = {
469
469
  assert: function(d) {
470
470
  if (!m.has(d))
@@ -492,7 +492,7 @@ function pn() {
492
492
  }
493
493
  };
494
494
  return m;
495
- }, He;
495
+ }, je;
496
496
  }
497
497
  var ze, Xr;
498
498
  function Gt() {
@@ -579,7 +579,7 @@ function Wt() {
579
579
  return fr = r, fr;
580
580
  }
581
581
  var lr, ht;
582
- function _n() {
582
+ function Tn() {
583
583
  if (ht) return lr;
584
584
  ht = 1;
585
585
  var r = Object.defineProperty || !1;
@@ -592,7 +592,7 @@ function _n() {
592
592
  return lr = r, lr;
593
593
  }
594
594
  var cr, vt;
595
- function Tn() {
595
+ function _n() {
596
596
  return vt || (vt = 1, cr = function() {
597
597
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
598
598
  return !1;
@@ -622,10 +622,10 @@ function Tn() {
622
622
  }), cr;
623
623
  }
624
624
  var sr, gt;
625
- function $n() {
625
+ function kn() {
626
626
  if (gt) return sr;
627
627
  gt = 1;
628
- var r = typeof Symbol < "u" && Symbol, e = Tn();
628
+ var r = typeof Symbol < "u" && Symbol, e = _n();
629
629
  return sr = function() {
630
630
  return typeof r != "function" || typeof Symbol != "function" || typeof r("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : e();
631
631
  }, sr;
@@ -635,14 +635,14 @@ function Lt() {
635
635
  return mt || (mt = 1, pr = typeof Reflect < "u" && Reflect.getPrototypeOf || null), pr;
636
636
  }
637
637
  var yr, St;
638
- function jt() {
638
+ function Ht() {
639
639
  if (St) return yr;
640
640
  St = 1;
641
641
  var r = /* @__PURE__ */ Gt();
642
642
  return yr = r.getPrototypeOf || null, yr;
643
643
  }
644
644
  var dr, wt;
645
- function kn() {
645
+ function $n() {
646
646
  if (wt) return dr;
647
647
  wt = 1;
648
648
  var r = "Function.prototype.bind called on incompatible ", e = Object.prototype.toString, t = Math.max, a = "[object Function]", s = function(E, m) {
@@ -690,7 +690,7 @@ var hr, bt;
690
690
  function qe() {
691
691
  if (bt) return hr;
692
692
  bt = 1;
693
- var r = kn();
693
+ var r = $n();
694
694
  return hr = Function.prototype.bind || r, hr;
695
695
  }
696
696
  var vr, At;
@@ -698,7 +698,7 @@ function Fr() {
698
698
  return At || (At = 1, vr = Function.prototype.call), vr;
699
699
  }
700
700
  var gr, Ot;
701
- function Ht() {
701
+ function jt() {
702
702
  return Ot || (Ot = 1, gr = Function.prototype.apply), gr;
703
703
  }
704
704
  var mr, Et;
@@ -709,7 +709,7 @@ var Sr, Pt;
709
709
  function qn() {
710
710
  if (Pt) return Sr;
711
711
  Pt = 1;
712
- var r = qe(), e = Ht(), t = Fr(), a = xn();
712
+ var r = qe(), e = jt(), t = Fr(), a = xn();
713
713
  return Sr = a || r.call(t, e), Sr;
714
714
  }
715
715
  var wr, It;
@@ -747,11 +747,11 @@ function Dn() {
747
747
  }
748
748
  ) : !1, br;
749
749
  }
750
- var Ar, _t;
750
+ var Ar, Tt;
751
751
  function Fn() {
752
- if (_t) return Ar;
753
- _t = 1;
754
- var r = Lt(), e = jt(), t = /* @__PURE__ */ Dn();
752
+ if (Tt) return Ar;
753
+ Tt = 1;
754
+ var r = Lt(), e = Ht(), t = /* @__PURE__ */ Dn();
755
755
  return Ar = r ? function(s) {
756
756
  return r(s);
757
757
  } : e ? function(s) {
@@ -762,23 +762,23 @@ function Fn() {
762
762
  return t(s);
763
763
  } : null, Ar;
764
764
  }
765
- var Or, Tt;
765
+ var Or, _t;
766
766
  function Cn() {
767
- if (Tt) return Or;
768
- Tt = 1;
767
+ if (_t) return Or;
768
+ _t = 1;
769
769
  var r = Function.prototype.call, e = Object.prototype.hasOwnProperty, t = qe();
770
770
  return Or = t.call(r, e), Or;
771
771
  }
772
- var Er, $t;
772
+ var Er, kt;
773
773
  function Cr() {
774
- if ($t) return Er;
775
- $t = 1;
774
+ if (kt) return Er;
775
+ kt = 1;
776
776
  var r, e = /* @__PURE__ */ Gt(), t = /* @__PURE__ */ yn(), a = /* @__PURE__ */ dn(), s = /* @__PURE__ */ hn(), y = /* @__PURE__ */ vn(), P = /* @__PURE__ */ gn(), h = /* @__PURE__ */ Pe(), E = /* @__PURE__ */ mn(), m = /* @__PURE__ */ Sn(), d = /* @__PURE__ */ wn(), v = /* @__PURE__ */ bn(), S = /* @__PURE__ */ An(), l = /* @__PURE__ */ On(), c = /* @__PURE__ */ En(), b = /* @__PURE__ */ In(), i = Function, u = function(L) {
777
777
  try {
778
778
  return i('"use strict"; return (' + L + ").constructor;")();
779
779
  } catch {
780
780
  }
781
- }, f = /* @__PURE__ */ Wt(), g = /* @__PURE__ */ _n(), p = function() {
781
+ }, f = /* @__PURE__ */ Wt(), g = /* @__PURE__ */ Tn(), p = function() {
782
782
  throw new h();
783
783
  }, w = f ? function() {
784
784
  try {
@@ -790,7 +790,7 @@ function Cr() {
790
790
  return p;
791
791
  }
792
792
  }
793
- }() : p, A = $n()(), O = Fn(), R = jt(), q = Lt(), _ = Ht(), D = Fr(), I = {}, j = typeof Uint8Array > "u" || !O ? r : O(Uint8Array), B = {
793
+ }() : p, A = kn()(), O = Fn(), R = Ht(), q = Lt(), T = jt(), D = Fr(), I = {}, H = typeof Uint8Array > "u" || !O ? r : O(Uint8Array), B = {
794
794
  __proto__: null,
795
795
  "%AggregateError%": typeof AggregateError > "u" ? r : AggregateError,
796
796
  "%Array%": Array,
@@ -851,7 +851,7 @@ function Cr() {
851
851
  "%Symbol%": A ? Symbol : r,
852
852
  "%SyntaxError%": P,
853
853
  "%ThrowTypeError%": w,
854
- "%TypedArray%": j,
854
+ "%TypedArray%": H,
855
855
  "%TypeError%": h,
856
856
  "%Uint8Array%": typeof Uint8Array > "u" ? r : Uint8Array,
857
857
  "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? r : Uint8ClampedArray,
@@ -862,7 +862,7 @@ function Cr() {
862
862
  "%WeakRef%": typeof WeakRef > "u" ? r : WeakRef,
863
863
  "%WeakSet%": typeof WeakSet > "u" ? r : WeakSet,
864
864
  "%Function.prototype.call%": D,
865
- "%Function.prototype.apply%": _,
865
+ "%Function.prototype.apply%": T,
866
866
  "%Object.defineProperty%": g,
867
867
  "%Object.getPrototypeOf%": R,
868
868
  "%Math.abs%": m,
@@ -881,22 +881,22 @@ function Cr() {
881
881
  var Q = O(O(L));
882
882
  B["%Error.prototype%"] = Q;
883
883
  }
884
- var te = function L(k) {
884
+ var te = function L($) {
885
885
  var N;
886
- if (k === "%AsyncFunction%")
886
+ if ($ === "%AsyncFunction%")
887
887
  N = u("async function () {}");
888
- else if (k === "%GeneratorFunction%")
888
+ else if ($ === "%GeneratorFunction%")
889
889
  N = u("function* () {}");
890
- else if (k === "%AsyncGeneratorFunction%")
890
+ else if ($ === "%AsyncGeneratorFunction%")
891
891
  N = u("async function* () {}");
892
- else if (k === "%AsyncGenerator%") {
892
+ else if ($ === "%AsyncGenerator%") {
893
893
  var F = L("%AsyncGeneratorFunction%");
894
894
  F && (N = F.prototype);
895
- } else if (k === "%AsyncIteratorPrototype%") {
895
+ } else if ($ === "%AsyncIteratorPrototype%") {
896
896
  var W = L("%AsyncGenerator%");
897
897
  W && O && (N = O(W.prototype));
898
898
  }
899
- return B[k] = N, N;
899
+ return B[$] = N, N;
900
900
  }, ne = {
901
901
  __proto__: null,
902
902
  "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
@@ -950,38 +950,38 @@ function Cr() {
950
950
  "%URIErrorPrototype%": ["URIError", "prototype"],
951
951
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
952
952
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
953
- }, $ = qe(), V = /* @__PURE__ */ Cn(), oe = $.call(D, Array.prototype.concat), ve = $.call(_, Array.prototype.splice), ue = $.call(D, String.prototype.replace), fe = $.call(D, String.prototype.slice), le = $.call(D, RegExp.prototype.exec), ae = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Y = /\\(\\)?/g, ce = function(k) {
954
- var N = fe(k, 0, 1), F = fe(k, -1);
953
+ }, k = qe(), V = /* @__PURE__ */ Cn(), oe = k.call(D, Array.prototype.concat), ve = k.call(T, Array.prototype.splice), ue = k.call(D, String.prototype.replace), fe = k.call(D, String.prototype.slice), le = k.call(D, RegExp.prototype.exec), ae = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Y = /\\(\\)?/g, ce = function($) {
954
+ var N = fe($, 0, 1), F = fe($, -1);
955
955
  if (N === "%" && F !== "%")
956
956
  throw new P("invalid intrinsic syntax, expected closing `%`");
957
957
  if (F === "%" && N !== "%")
958
958
  throw new P("invalid intrinsic syntax, expected opening `%`");
959
959
  var W = [];
960
- return ue(k, ae, function(H, X, z, K) {
961
- W[W.length] = z ? ue(K, Y, "$1") : X || H;
960
+ return ue($, ae, function(j, X, z, K) {
961
+ W[W.length] = z ? ue(K, Y, "$1") : X || j;
962
962
  }), W;
963
- }, se = function(k, N) {
964
- var F = k, W;
963
+ }, se = function($, N) {
964
+ var F = $, W;
965
965
  if (V(ne, F) && (W = ne[F], F = "%" + W[0] + "%"), V(B, F)) {
966
- var H = B[F];
967
- if (H === I && (H = te(F)), typeof H > "u" && !N)
968
- throw new h("intrinsic " + k + " exists, but is not available. Please file an issue!");
966
+ var j = B[F];
967
+ if (j === I && (j = te(F)), typeof j > "u" && !N)
968
+ throw new h("intrinsic " + $ + " exists, but is not available. Please file an issue!");
969
969
  return {
970
970
  alias: W,
971
971
  name: F,
972
- value: H
972
+ value: j
973
973
  };
974
974
  }
975
- throw new P("intrinsic " + k + " does not exist!");
975
+ throw new P("intrinsic " + $ + " does not exist!");
976
976
  };
977
- return Er = function(k, N) {
978
- if (typeof k != "string" || k.length === 0)
977
+ return Er = function($, N) {
978
+ if (typeof $ != "string" || $.length === 0)
979
979
  throw new h("intrinsic name must be a non-empty string");
980
980
  if (arguments.length > 1 && typeof N != "boolean")
981
981
  throw new h('"allowMissing" argument must be a boolean');
982
- if (le(/^%?[^%]*%?$/, k) === null)
982
+ if (le(/^%?[^%]*%?$/, $) === null)
983
983
  throw new P("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
984
- var F = ce(k), W = F.length > 0 ? F[0] : "", H = se("%" + W + "%", N), X = H.name, z = H.value, K = !1, Z = H.alias;
984
+ var F = ce($), W = F.length > 0 ? F[0] : "", j = se("%" + W + "%", N), X = j.name, z = j.value, K = !1, Z = j.alias;
985
985
  Z && (W = Z[0], ve(F, oe([0, 1], Z)));
986
986
  for (var Se = 1, pe = !0; Se < F.length; Se += 1) {
987
987
  var ee = F[Se], we = fe(ee, 0, 1), be = fe(ee, -1);
@@ -992,7 +992,7 @@ function Cr() {
992
992
  else if (z != null) {
993
993
  if (!(ee in z)) {
994
994
  if (!N)
995
- throw new h("base intrinsic for " + k + " exists, but the property is not available.");
995
+ throw new h("base intrinsic for " + $ + " exists, but the property is not available.");
996
996
  return;
997
997
  }
998
998
  if (f && Se + 1 >= F.length) {
@@ -1006,10 +1006,10 @@ function Cr() {
1006
1006
  return z;
1007
1007
  }, Er;
1008
1008
  }
1009
- var Pr, kt;
1009
+ var Pr, $t;
1010
1010
  function Kt() {
1011
- if (kt) return Pr;
1012
- kt = 1;
1011
+ if ($t) return Pr;
1012
+ $t = 1;
1013
1013
  var r = /* @__PURE__ */ Cr(), e = zt(), t = e([r("%String.prototype.indexOf%")]);
1014
1014
  return Pr = function(s, y) {
1015
1015
  var P = (
@@ -1090,12 +1090,12 @@ function Mn() {
1090
1090
  }
1091
1091
  ) : a, Rr;
1092
1092
  }
1093
- var _r, Dt;
1093
+ var Tr, Dt;
1094
1094
  function Nn() {
1095
- if (Dt) return _r;
1095
+ if (Dt) return Tr;
1096
1096
  Dt = 1;
1097
1097
  var r = /* @__PURE__ */ Pe(), e = /* @__PURE__ */ xe(), t = pn(), a = Qt(), s = Mn(), y = s || a || t;
1098
- return _r = function() {
1098
+ return Tr = function() {
1099
1099
  var h, E = {
1100
1100
  assert: function(m) {
1101
1101
  if (!E.has(m))
@@ -1115,17 +1115,17 @@ function Nn() {
1115
1115
  }
1116
1116
  };
1117
1117
  return E;
1118
- }, _r;
1118
+ }, Tr;
1119
1119
  }
1120
- var Tr, Ft;
1120
+ var _r, Ft;
1121
1121
  function Mr() {
1122
- if (Ft) return Tr;
1122
+ if (Ft) return _r;
1123
1123
  Ft = 1;
1124
1124
  var r = String.prototype.replace, e = /%20/g, t = {
1125
1125
  RFC1738: "RFC1738",
1126
1126
  RFC3986: "RFC3986"
1127
1127
  };
1128
- return Tr = {
1128
+ return _r = {
1129
1129
  default: t.RFC3986,
1130
1130
  formatters: {
1131
1131
  RFC1738: function(a) {
@@ -1137,11 +1137,11 @@ function Mr() {
1137
1137
  },
1138
1138
  RFC1738: t.RFC1738,
1139
1139
  RFC3986: t.RFC3986
1140
- }, Tr;
1140
+ }, _r;
1141
1141
  }
1142
- var $r, Ct;
1142
+ var kr, Ct;
1143
1143
  function Vt() {
1144
- if (Ct) return $r;
1144
+ if (Ct) return kr;
1145
1145
  Ct = 1;
1146
1146
  var r = /* @__PURE__ */ Mr(), e = Object.prototype.hasOwnProperty, t = Array.isArray, a = function() {
1147
1147
  for (var i = [], u = 0; u < 256; ++u)
@@ -1203,38 +1203,38 @@ function Vt() {
1203
1203
  return u;
1204
1204
  var A = u;
1205
1205
  if (typeof u == "symbol" ? A = Symbol.prototype.toString.call(u) : typeof u != "string" && (A = String(u)), g === "iso-8859-1")
1206
- return escape(A).replace(/%u[0-9a-f]{4}/gi, function(j) {
1207
- return "%26%23" + parseInt(j.slice(2), 16) + "%3B";
1206
+ return escape(A).replace(/%u[0-9a-f]{4}/gi, function(H) {
1207
+ return "%26%23" + parseInt(H.slice(2), 16) + "%3B";
1208
1208
  });
1209
1209
  for (var O = "", R = 0; R < A.length; R += m) {
1210
- for (var q = A.length >= m ? A.slice(R, R + m) : A, _ = [], D = 0; D < q.length; ++D) {
1210
+ for (var q = A.length >= m ? A.slice(R, R + m) : A, T = [], D = 0; D < q.length; ++D) {
1211
1211
  var I = q.charCodeAt(D);
1212
1212
  if (I === 45 || I === 46 || I === 95 || I === 126 || I >= 48 && I <= 57 || I >= 65 && I <= 90 || I >= 97 && I <= 122 || w === r.RFC1738 && (I === 40 || I === 41)) {
1213
- _[_.length] = q.charAt(D);
1213
+ T[T.length] = q.charAt(D);
1214
1214
  continue;
1215
1215
  }
1216
1216
  if (I < 128) {
1217
- _[_.length] = a[I];
1217
+ T[T.length] = a[I];
1218
1218
  continue;
1219
1219
  }
1220
1220
  if (I < 2048) {
1221
- _[_.length] = a[192 | I >> 6] + a[128 | I & 63];
1221
+ T[T.length] = a[192 | I >> 6] + a[128 | I & 63];
1222
1222
  continue;
1223
1223
  }
1224
1224
  if (I < 55296 || I >= 57344) {
1225
- _[_.length] = a[224 | I >> 12] + a[128 | I >> 6 & 63] + a[128 | I & 63];
1225
+ T[T.length] = a[224 | I >> 12] + a[128 | I >> 6 & 63] + a[128 | I & 63];
1226
1226
  continue;
1227
1227
  }
1228
- D += 1, I = 65536 + ((I & 1023) << 10 | q.charCodeAt(D) & 1023), _[_.length] = a[240 | I >> 18] + a[128 | I >> 12 & 63] + a[128 | I >> 6 & 63] + a[128 | I & 63];
1228
+ D += 1, I = 65536 + ((I & 1023) << 10 | q.charCodeAt(D) & 1023), T[T.length] = a[240 | I >> 18] + a[128 | I >> 12 & 63] + a[128 | I >> 6 & 63] + a[128 | I & 63];
1229
1229
  }
1230
- O += _.join("");
1230
+ O += T.join("");
1231
1231
  }
1232
1232
  return O;
1233
1233
  }, v = function(u) {
1234
1234
  for (var f = [{ obj: { o: u }, prop: "o" }], g = [], p = 0; p < f.length; ++p)
1235
1235
  for (var w = f[p], A = w.obj[w.prop], O = Object.keys(A), R = 0; R < O.length; ++R) {
1236
- var q = O[R], _ = A[q];
1237
- typeof _ == "object" && _ !== null && g.indexOf(_) === -1 && (f.push({ obj: A, prop: q }), g.push(_));
1236
+ var q = O[R], T = A[q];
1237
+ typeof T == "object" && T !== null && g.indexOf(T) === -1 && (f.push({ obj: A, prop: q }), g.push(T));
1238
1238
  }
1239
1239
  return s(f), u;
1240
1240
  }, S = function(u) {
@@ -1251,7 +1251,7 @@ function Vt() {
1251
1251
  }
1252
1252
  return f(u);
1253
1253
  };
1254
- return $r = {
1254
+ return kr = {
1255
1255
  arrayToObject: y,
1256
1256
  assign: h,
1257
1257
  combine: c,
@@ -1262,11 +1262,11 @@ function Vt() {
1262
1262
  isRegExp: S,
1263
1263
  maybeMap: b,
1264
1264
  merge: P
1265
- }, $r;
1265
+ }, kr;
1266
1266
  }
1267
- var kr, Mt;
1267
+ var $r, Mt;
1268
1268
  function Un() {
1269
- if (Mt) return kr;
1269
+ if (Mt) return $r;
1270
1270
  Mt = 1;
1271
1271
  var r = Nn(), e = /* @__PURE__ */ Vt(), t = /* @__PURE__ */ Mr(), a = Object.prototype.hasOwnProperty, s = {
1272
1272
  brackets: function(i) {
@@ -1306,8 +1306,8 @@ function Un() {
1306
1306
  strictNullHandling: !1
1307
1307
  }, v = function(i) {
1308
1308
  return typeof i == "string" || typeof i == "number" || typeof i == "boolean" || typeof i == "symbol" || typeof i == "bigint";
1309
- }, S = {}, l = function b(i, u, f, g, p, w, A, O, R, q, _, D, I, j, B, Q, te, ne) {
1310
- for (var $ = i, V = ne, oe = 0, ve = !1; (V = V.get(S)) !== void 0 && !ve; ) {
1309
+ }, S = {}, l = function b(i, u, f, g, p, w, A, O, R, q, T, D, I, H, B, Q, te, ne) {
1310
+ for (var k = i, V = ne, oe = 0, ve = !1; (V = V.get(S)) !== void 0 && !ve; ) {
1311
1311
  var ue = V.get(i);
1312
1312
  if (oe += 1, typeof ue < "u") {
1313
1313
  if (ue === oe)
@@ -1316,42 +1316,42 @@ function Un() {
1316
1316
  }
1317
1317
  typeof V.get(S) > "u" && (oe = 0);
1318
1318
  }
1319
- if (typeof q == "function" ? $ = q(u, $) : $ instanceof Date ? $ = I($) : f === "comma" && y($) && ($ = e.maybeMap($, function(X) {
1319
+ if (typeof q == "function" ? k = q(u, k) : k instanceof Date ? k = I(k) : f === "comma" && y(k) && (k = e.maybeMap(k, function(X) {
1320
1320
  return X instanceof Date ? I(X) : X;
1321
- })), $ === null) {
1321
+ })), k === null) {
1322
1322
  if (w)
1323
- return R && !Q ? R(u, d.encoder, te, "key", j) : u;
1324
- $ = "";
1323
+ return R && !Q ? R(u, d.encoder, te, "key", H) : u;
1324
+ k = "";
1325
1325
  }
1326
- if (v($) || e.isBuffer($)) {
1326
+ if (v(k) || e.isBuffer(k)) {
1327
1327
  if (R) {
1328
- var fe = Q ? u : R(u, d.encoder, te, "key", j);
1329
- return [B(fe) + "=" + B(R($, d.encoder, te, "value", j))];
1328
+ var fe = Q ? u : R(u, d.encoder, te, "key", H);
1329
+ return [B(fe) + "=" + B(R(k, d.encoder, te, "value", H))];
1330
1330
  }
1331
- return [B(u) + "=" + B(String($))];
1331
+ return [B(u) + "=" + B(String(k))];
1332
1332
  }
1333
1333
  var le = [];
1334
- if (typeof $ > "u")
1334
+ if (typeof k > "u")
1335
1335
  return le;
1336
1336
  var ae;
1337
- if (f === "comma" && y($))
1338
- Q && R && ($ = e.maybeMap($, R)), ae = [{ value: $.length > 0 ? $.join(",") || null : void 0 }];
1337
+ if (f === "comma" && y(k))
1338
+ Q && R && (k = e.maybeMap(k, R)), ae = [{ value: k.length > 0 ? k.join(",") || null : void 0 }];
1339
1339
  else if (y(q))
1340
1340
  ae = q;
1341
1341
  else {
1342
- var Y = Object.keys($);
1343
- ae = _ ? Y.sort(_) : Y;
1342
+ var Y = Object.keys(k);
1343
+ ae = T ? Y.sort(T) : Y;
1344
1344
  }
1345
- var ce = O ? String(u).replace(/\./g, "%2E") : String(u), se = g && y($) && $.length === 1 ? ce + "[]" : ce;
1346
- if (p && y($) && $.length === 0)
1345
+ var ce = O ? String(u).replace(/\./g, "%2E") : String(u), se = g && y(k) && k.length === 1 ? ce + "[]" : ce;
1346
+ if (p && y(k) && k.length === 0)
1347
1347
  return se + "[]";
1348
1348
  for (var L = 0; L < ae.length; ++L) {
1349
- var k = ae[L], N = typeof k == "object" && k && typeof k.value < "u" ? k.value : $[k];
1349
+ var $ = ae[L], N = typeof $ == "object" && $ && typeof $.value < "u" ? $.value : k[$];
1350
1350
  if (!(A && N === null)) {
1351
- var F = D && O ? String(k).replace(/\./g, "%2E") : String(k), W = y($) ? typeof f == "function" ? f(se, F) : se : se + (D ? "." + F : "[" + F + "]");
1351
+ var F = D && O ? String($).replace(/\./g, "%2E") : String($), W = y(k) ? typeof f == "function" ? f(se, F) : se : se + (D ? "." + F : "[" + F + "]");
1352
1352
  ne.set(i, oe);
1353
- var H = r();
1354
- H.set(S, ne), h(le, b(
1353
+ var j = r();
1354
+ j.set(S, ne), h(le, b(
1355
1355
  N,
1356
1356
  W,
1357
1357
  f,
@@ -1360,16 +1360,16 @@ function Un() {
1360
1360
  w,
1361
1361
  A,
1362
1362
  O,
1363
- f === "comma" && Q && y($) ? null : R,
1363
+ f === "comma" && Q && y(k) ? null : R,
1364
1364
  q,
1365
- _,
1365
+ T,
1366
1366
  D,
1367
1367
  I,
1368
- j,
1368
+ H,
1369
1369
  B,
1370
1370
  Q,
1371
1371
  te,
1372
- H
1372
+ j
1373
1373
  ));
1374
1374
  }
1375
1375
  }
@@ -1420,7 +1420,7 @@ function Un() {
1420
1420
  strictNullHandling: typeof i.strictNullHandling == "boolean" ? i.strictNullHandling : d.strictNullHandling
1421
1421
  };
1422
1422
  };
1423
- return kr = function(b, i) {
1423
+ return $r = function(b, i) {
1424
1424
  var u = b, f = c(i), g, p;
1425
1425
  typeof f.filter == "function" ? (p = f.filter, u = p("", u)) : y(f.filter) && (p = f.filter, g = p);
1426
1426
  var w = [];
@@ -1429,10 +1429,10 @@ function Un() {
1429
1429
  var A = s[f.arrayFormat], O = A === "comma" && f.commaRoundTrip;
1430
1430
  g || (g = Object.keys(u)), f.sort && g.sort(f.sort);
1431
1431
  for (var R = r(), q = 0; q < g.length; ++q) {
1432
- var _ = g[q], D = u[_];
1432
+ var T = g[q], D = u[T];
1433
1433
  f.skipNulls && D === null || h(w, l(
1434
1434
  D,
1435
- _,
1435
+ T,
1436
1436
  A,
1437
1437
  O,
1438
1438
  f.allowEmptyArrays,
@@ -1451,9 +1451,9 @@ function Un() {
1451
1451
  R
1452
1452
  ));
1453
1453
  }
1454
- var I = w.join(f.delimiter), j = f.addQueryPrefix === !0 ? "?" : "";
1455
- return f.charsetSentinel && (f.charset === "iso-8859-1" ? j += "utf8=%26%2310003%3B&" : j += "utf8=%E2%9C%93&"), I.length > 0 ? j + I : "";
1456
- }, kr;
1454
+ var I = w.join(f.delimiter), H = f.addQueryPrefix === !0 ? "?" : "";
1455
+ return f.charsetSentinel && (f.charset === "iso-8859-1" ? H += "utf8=%26%2310003%3B&" : H += "utf8=%E2%9C%93&"), I.length > 0 ? H + I : "";
1456
+ }, $r;
1457
1457
  }
1458
1458
  var xr, Nt;
1459
1459
  function Bn() {
@@ -1506,8 +1506,8 @@ function Bn() {
1506
1506
  f[p].indexOf("utf8=") === 0 && (f[p] === h ? w = "utf-8" : f[p] === P && (w = "iso-8859-1"), g = p, p = f.length);
1507
1507
  for (p = 0; p < f.length; ++p)
1508
1508
  if (p !== g) {
1509
- var A = f[p], O = A.indexOf("]="), R = O === -1 ? A.indexOf("=") : O + 1, q, _;
1510
- R === -1 ? (q = c.decoder(A, a.decoder, w, "key"), _ = c.strictNullHandling ? null : "") : (q = c.decoder(A.slice(0, R), a.decoder, w, "key"), _ = r.maybeMap(
1509
+ var A = f[p], O = A.indexOf("]="), R = O === -1 ? A.indexOf("=") : O + 1, q, T;
1510
+ R === -1 ? (q = c.decoder(A, a.decoder, w, "key"), T = c.strictNullHandling ? null : "") : (q = c.decoder(A.slice(0, R), a.decoder, w, "key"), T = r.maybeMap(
1511
1511
  y(
1512
1512
  A.slice(R + 1),
1513
1513
  c,
@@ -1516,9 +1516,9 @@ function Bn() {
1516
1516
  function(I) {
1517
1517
  return c.decoder(I, a.decoder, w, "value");
1518
1518
  }
1519
- )), _ && c.interpretNumericEntities && w === "iso-8859-1" && (_ = s(String(_))), A.indexOf("[]=") > -1 && (_ = t(_) ? [_] : _);
1519
+ )), T && c.interpretNumericEntities && w === "iso-8859-1" && (T = s(String(T))), A.indexOf("[]=") > -1 && (T = t(T) ? [T] : T);
1520
1520
  var D = e.call(b, q);
1521
- D && c.duplicates === "combine" ? b[q] = r.combine(b[q], _) : (!D || c.duplicates === "last") && (b[q] = _);
1521
+ D && c.duplicates === "combine" ? b[q] = r.combine(b[q], T) : (!D || c.duplicates === "last") && (b[q] = T);
1522
1522
  }
1523
1523
  return b;
1524
1524
  }, m = function(S, l, c, b) {
@@ -1645,8 +1645,12 @@ async function U(r, e, t) {
1645
1645
  ...t || {}
1646
1646
  });
1647
1647
  if (!a.ok) {
1648
- if (console.dir(a, await a.json()), a.status === 401 && Dr < 10)
1649
- return Dr += 1, r.removeToken(), await r.SSOLogin(), await U(r, e, t);
1648
+ if (console.dir(a, await a.json()), a.status === 401) {
1649
+ if (new URLSearchParams(window.location.search).get("token") || window.location.hash.includes("?") && new URLSearchParams(window.location.hash.split("?")[1]).get("token"))
1650
+ throw new Error(`HTTP error! status: ${a.status}`);
1651
+ if (Dr < 10)
1652
+ return Dr += 1, r.removeToken(), await r.SSOLogin(), await U(r, e, t);
1653
+ }
1650
1654
  throw new Error(`HTTP error! status: ${a.status}`);
1651
1655
  }
1652
1656
  return Dr = 0, await a.json();
@@ -1799,16 +1803,16 @@ function Vn(r, e) {
1799
1803
  const t = r.indexOf(e);
1800
1804
  return t !== -1 ? r.substring(0, t) : r;
1801
1805
  }
1802
- function jn(r) {
1806
+ function Hn(r) {
1803
1807
  const e = window.location.href, t = new URL(e), a = new URLSearchParams(t.search);
1804
1808
  r.forEach((s) => {
1805
1809
  a.delete(s);
1806
1810
  }), t.search = a.toString(), window.history.pushState({}, "", t.href);
1807
1811
  }
1808
- class _e extends Error {
1812
+ class Te extends Error {
1809
1813
  }
1810
- _e.prototype.name = "InvalidTokenError";
1811
- function Hn(r) {
1814
+ Te.prototype.name = "InvalidTokenError";
1815
+ function jn(r) {
1812
1816
  return decodeURIComponent(atob(r).replace(/(.)/g, (e, t) => {
1813
1817
  let a = t.charCodeAt(0).toString(16).toUpperCase();
1814
1818
  return a.length < 2 && (a = "0" + a), "%" + a;
@@ -1829,28 +1833,28 @@ function zn(r) {
1829
1833
  throw new Error("base64 string is not of the correct length");
1830
1834
  }
1831
1835
  try {
1832
- return Hn(e);
1836
+ return jn(e);
1833
1837
  } catch {
1834
1838
  return atob(e);
1835
1839
  }
1836
1840
  }
1837
1841
  function Kn(r, e) {
1838
1842
  if (typeof r != "string")
1839
- throw new _e("Invalid token specified: must be a string");
1843
+ throw new Te("Invalid token specified: must be a string");
1840
1844
  e || (e = {});
1841
1845
  const t = e.header === !0 ? 0 : 1, a = r.split(".")[t];
1842
1846
  if (typeof a != "string")
1843
- throw new _e(`Invalid token specified: missing part #${t + 1}`);
1847
+ throw new Te(`Invalid token specified: missing part #${t + 1}`);
1844
1848
  let s;
1845
1849
  try {
1846
1850
  s = zn(a);
1847
1851
  } catch (y) {
1848
- throw new _e(`Invalid token specified: invalid base64 for part #${t + 1} (${y.message})`);
1852
+ throw new Te(`Invalid token specified: invalid base64 for part #${t + 1} (${y.message})`);
1849
1853
  }
1850
1854
  try {
1851
1855
  return JSON.parse(s);
1852
1856
  } catch (y) {
1853
- throw new _e(`Invalid token specified: invalid json for part #${t + 1} (${y.message})`);
1857
+ throw new Te(`Invalid token specified: invalid json for part #${t + 1} (${y.message})`);
1854
1858
  }
1855
1859
  }
1856
1860
  class Jn {
@@ -1879,10 +1883,9 @@ class Jn {
1879
1883
  */
1880
1884
  async SSOLogin() {
1881
1885
  const e = Ln(location.href), t = ["state", "code", "iss", "session_state"], a = t.length;
1882
- if (Object.keys(e).length !== a) {
1883
- this.login();
1884
- return;
1885
- }
1886
+ if (Object.keys(e).length !== a)
1887
+ return this.login(), new Promise(() => {
1888
+ });
1886
1889
  let s = [], y = 0;
1887
1890
  for (; y < a; )
1888
1891
  Object.keys(e).includes(t[y]) && s.length <= a ? s.push(t[y]) : s = [], y++;
@@ -1898,14 +1901,14 @@ class Jn {
1898
1901
  redirect_uri: h
1899
1902
  }), this.setToken(P);
1900
1903
  const { ticket: d } = await ie(this).createPermissionTicket({ client_id: this.APPID }), v = await ie(this).getAuthTokenInfo({ grant_type: "urn:ietf:params:oauth:grant-type:uma-ticket", ticket: d });
1901
- this.setToken(v, "auth"), jn(t);
1904
+ this.setToken(v, "auth"), Hn(t);
1902
1905
  } catch {
1903
- this.removeToken(), window.location.href = h;
1906
+ return this.removeToken(), window.location.href = h, new Promise(() => {
1907
+ });
1904
1908
  }
1905
- } else {
1906
- this.login();
1907
- return;
1908
- }
1909
+ } else
1910
+ return this.login(), new Promise(() => {
1911
+ });
1909
1912
  }
1910
1913
  /**
1911
1914
  * 跳转到登录页面
@@ -1931,7 +1934,10 @@ class Jn {
1931
1934
  */
1932
1935
  logout() {
1933
1936
  const { href: e, origin: t } = window.location, { id_token: a } = this.getTokenInfo() || {};
1934
- this.storage.removeItem("login_redirect_uri");
1937
+ if (this.storage.removeItem("login_redirect_uri"), !a) {
1938
+ this.login();
1939
+ return;
1940
+ }
1935
1941
  const s = {
1936
1942
  id_token_hint: a,
1937
1943
  post_logout_redirect_uri: e
@@ -2080,7 +2086,7 @@ export {
2080
2086
  an as LocalStorageUtil,
2081
2087
  Ln as getUrlParams,
2082
2088
  Bt as isIpAddress,
2083
- jn as removeUrlParam,
2089
+ Hn as removeUrlParam,
2084
2090
  Vn as subBefore,
2085
2091
  ie as useSSOApi
2086
2092
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "little-wheels",
3
- "version": "1.2.10",
3
+ "version": "1.2.12",
4
4
  "description": "这是一个基于react自用轮子库",
5
5
  "repository": {
6
6
  "type": "git",