little-wheels 1.2.13 → 1.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,7 +1,7 @@
1
- var nn = Object.defineProperty;
2
- var on = (r, e, t) => e in r ? nn(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
- var me = (r, e, t) => on(r, typeof e != "symbol" ? e + "" : e, t);
4
- class an {
1
+ var an = Object.defineProperty;
2
+ var un = (r, e, t) => e in r ? an(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
+ var me = (r, e, t) => un(r, typeof e != "symbol" ? e + "" : e, t);
4
+ class fn {
5
5
  constructor(e) {
6
6
  me(this, "appId");
7
7
  this.appId = e;
@@ -33,11 +33,11 @@ class an {
33
33
  localStorage.clear();
34
34
  }
35
35
  }
36
- var Qr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
37
- function un(r) {
36
+ var Jr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
37
+ function ln(r) {
38
38
  return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
39
39
  }
40
- function fn(r) {
40
+ function cn(r) {
41
41
  if (Object.prototype.hasOwnProperty.call(r, "__esModule")) return r;
42
42
  var e = r.default;
43
43
  if (typeof e == "function") {
@@ -47,8 +47,8 @@ function fn(r) {
47
47
  t.prototype = e.prototype;
48
48
  } else t = {};
49
49
  return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(r).forEach(function(a) {
50
- var s = Object.getOwnPropertyDescriptor(r, a);
51
- Object.defineProperty(t, a, s.get ? s : {
50
+ var c = Object.getOwnPropertyDescriptor(r, a);
51
+ Object.defineProperty(t, a, c.get ? c : {
52
52
  enumerable: !0,
53
53
  get: function() {
54
54
  return r[a];
@@ -56,19 +56,19 @@ function fn(r) {
56
56
  });
57
57
  }), t;
58
58
  }
59
- var Le, Vr;
60
- function Pe() {
61
- return Vr || (Vr = 1, Le = TypeError), Le;
59
+ var ze, Yr;
60
+ function Ee() {
61
+ return Yr || (Yr = 1, ze = TypeError), ze;
62
62
  }
63
- const ln = {}, cn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
63
+ const sn = {}, pn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
64
64
  __proto__: null,
65
- default: ln
66
- }, Symbol.toStringTag, { value: "Module" })), sn = /* @__PURE__ */ fn(cn);
67
- var He, Jr;
68
- function xe() {
69
- if (Jr) return He;
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, 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) {
65
+ default: sn
66
+ }, Symbol.toStringTag, { value: "Module" })), yn = /* @__PURE__ */ cn(pn);
67
+ var je, Xr;
68
+ function qe() {
69
+ if (Xr) return je;
70
+ Xr = 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, c = typeof Set == "function" && Set.prototype, p = Object.getOwnPropertyDescriptor && c ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, E = c && p && typeof p.get == "function" ? p.get : null, h = c && Set.prototype.forEach, O = typeof WeakMap == "function" && WeakMap.prototype, g = O ? WeakMap.prototype.has : null, d = typeof WeakSet == "function" && WeakSet.prototype, m = d ? WeakSet.prototype.has : null, S = typeof WeakRef == "function" && WeakRef.prototype, l = S ? WeakRef.prototype.deref : null, s = Boolean.prototype.valueOf, b = Object.prototype.toString, i = Function.prototype.toString, u = String.prototype.match, f = String.prototype.slice, v = String.prototype.replace, y = String.prototype.toUpperCase, w = String.prototype.toLowerCase, A = RegExp.prototype.test, P = 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, z = 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
74
  function k(n, o) {
@@ -79,12 +79,12 @@ function xe() {
79
79
  var C = n < 0 ? -T(-n) : T(n);
80
80
  if (C !== n) {
81
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, "$&_"), /_$/, "");
82
+ return v.call(M, x, "$&_") + "." + v.call(v.call(_, /([0-9]{3})/g, "$&_"), /_$/, "");
83
83
  }
84
84
  }
85
- return g.call(o, x, "$&_");
85
+ return v.call(o, x, "$&_");
86
86
  }
87
- var V = sn, oe = V.custom, ve = j(oe) ? oe : null, ue = {
87
+ var V = yn, oe = V.custom, ve = j(oe) ? oe : null, ue = {
88
88
  __proto__: null,
89
89
  double: '"',
90
90
  single: "'"
@@ -93,7 +93,7 @@ function xe() {
93
93
  double: /(["\\])/g,
94
94
  single: /(['\\])/g
95
95
  };
96
- He = function n(o, x, C, M) {
96
+ je = function n(o, x, C, M) {
97
97
  var _ = x || {};
98
98
  if (K(_, "quoteStyle") && !K(ue, _.quoteStyle))
99
99
  throw new TypeError('option "quoteStyle" must be "single" or "double"');
@@ -114,7 +114,7 @@ function xe() {
114
114
  if (typeof o == "boolean")
115
115
  return o ? "true" : "false";
116
116
  if (typeof o == "string")
117
- return Nr(o, _);
117
+ return Br(o, _);
118
118
  if (typeof o == "number") {
119
119
  if (o === 0)
120
120
  return 1 / 0 / o > 0 ? "0" : "-0";
@@ -125,85 +125,85 @@ function xe() {
125
125
  var de = String(o) + "n";
126
126
  return ge ? k(o, de) : de;
127
127
  }
128
- var Ce = typeof _.depth > "u" ? 5 : _.depth;
129
- if (typeof C > "u" && (C = 0), C >= Ce && Ce > 0 && typeof o == "object")
128
+ var Me = typeof _.depth > "u" ? 5 : _.depth;
129
+ if (typeof C > "u" && (C = 0), C >= Me && Me > 0 && typeof o == "object")
130
130
  return ce(o) ? "[Array]" : "[Object]";
131
- var Oe = en(_, C);
131
+ var Oe = tn(_, 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, $e, tn) {
137
- if ($e && (M = q.call(M), M.push($e)), tn) {
138
- var Kr = {
136
+ function re(Pe, $e, on) {
137
+ if ($e && (M = q.call(M), M.push($e)), on) {
138
+ var Vr = {
139
139
  depth: _.depth
140
140
  };
141
- return K(_, "quoteStyle") && (Kr.quoteStyle = _.quoteStyle), n(Ee, Kr, C + 1, M);
141
+ return K(_, "quoteStyle") && (Vr.quoteStyle = _.quoteStyle), n(Pe, Vr, C + 1, M);
142
142
  }
143
- return n(Ee, _, C + 1, M);
143
+ return n(Pe, _, C + 1, M);
144
144
  }
145
145
  if (typeof o == "function" && !L(o)) {
146
- var Br = Se(o), Gr = _e(o, re);
147
- return "[Function" + (Br ? ": " + Br : " (anonymous)") + "]" + (Gr.length > 0 ? " { " + R.call(Gr, ", ") + " }" : "");
146
+ var Wr = Se(o), Lr = _e(o, re);
147
+ return "[Function" + (Wr ? ": " + Wr : " (anonymous)") + "]" + (Lr.length > 0 ? " { " + R.call(Lr, ", ") + " }" : "");
148
148
  }
149
149
  if (j(o)) {
150
- var Wr = B ? g.call(String(o), /^(Symbol\(.*\))_[^)]*$/, "$1") : H.call(o);
151
- return typeof o == "object" && !B ? Ie(Wr) : Wr;
150
+ var zr = B ? v.call(String(o), /^(Symbol\(.*\))_[^)]*$/, "$1") : z.call(o);
151
+ return typeof o == "object" && !B ? Ie(zr) : zr;
152
152
  }
153
- if (Yt(o)) {
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", _);
153
+ if (Zt(o)) {
154
+ for (var Re = "<" + w.call(String(o.nodeName)), Ne = o.attributes || [], ke = 0; ke < Ne.length; ke++)
155
+ Re += " " + Ne[ke].name + "=" + le(ae(Ne[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 = _e(o, re);
162
- return Oe && !Zt(Ne) ? "[" + Fe(Ne, Oe) + "]" : "[ " + R.call(Ne, ", ") + " ]";
161
+ var Ue = _e(o, re);
162
+ return Oe && !rn(Ue) ? "[" + Ce(Ue, Oe) + "]" : "[ " + R.call(Ue, ", ") + " ]";
163
163
  }
164
164
  if ($(o)) {
165
- var Ue = _e(o, re);
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, ", ") + " }";
165
+ var Be = _e(o, re);
166
+ return !("cause" in Error.prototype) && "cause" in o && !te.call(o, "cause") ? "{ [" + String(o) + "] " + R.call(P.call("[cause]: " + re(o.cause), Be), ", ") + " }" : Be.length === 0 ? "[" + String(o) + "]" : "{ [" + String(o) + "] " + R.call(Be, ", ") + " }";
167
167
  }
168
168
  if (typeof o == "object" && ye) {
169
169
  if (ve && typeof o[ve] == "function" && V)
170
- return V(o, { depth: Ce - C });
170
+ return V(o, { depth: Me - C });
171
171
  if (ye !== "symbol" && typeof o.inspect == "function")
172
172
  return o.inspect();
173
173
  }
174
174
  if (ee(o)) {
175
- var Lr = [];
176
- return a && a.call(o, function(Ee, $e) {
177
- Lr.push(re($e, o, !0) + " => " + re(Ee, o));
178
- }), Ur("Map", t.call(o), Lr, Oe);
175
+ var jr = [];
176
+ return a && a.call(o, function(Pe, $e) {
177
+ jr.push(re($e, o, !0) + " => " + re(Pe, o));
178
+ }), Gr("Map", t.call(o), jr, Oe);
179
179
  }
180
180
  if (Ae(o)) {
181
181
  var Hr = [];
182
- return h && h.call(o, function(Ee) {
183
- Hr.push(re(Ee, o));
184
- }), Ur("Set", P.call(o), Hr, Oe);
182
+ return h && h.call(o, function(Pe) {
183
+ Hr.push(re(Pe, o));
184
+ }), Gr("Set", E.call(o), Hr, Oe);
185
185
  }
186
186
  if (we(o))
187
- return De("WeakMap");
188
- if (Jt(o))
189
- return De("WeakSet");
187
+ return Fe("WeakMap");
188
+ if (Xt(o))
189
+ return Fe("WeakSet");
190
190
  if (be(o))
191
- return De("WeakRef");
191
+ return Fe("WeakRef");
192
192
  if (F(o))
193
193
  return Ie(re(Number(o)));
194
194
  if (X(o))
195
195
  return Ie(re(D.call(o)));
196
196
  if (W(o))
197
- return Ie(c.call(o));
197
+ return Ie(s.call(o));
198
198
  if (N(o))
199
199
  return Ie(re(String(o)));
200
200
  if (typeof window < "u" && o === window)
201
201
  return "{ [object Window] }";
202
- if (typeof globalThis < "u" && o === globalThis || typeof Qr < "u" && o === Qr)
202
+ if (typeof globalThis < "u" && o === globalThis || typeof Jr < "u" && o === Jr)
203
203
  return "{ [object globalThis] }";
204
204
  if (!se(o) && !L(o)) {
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
- return Be.length === 0 ? We + "{}" : Oe ? We + "{" + Fe(Be, Oe) + "}" : We + "{ " + R.call(Be, ", ") + " }";
205
+ var Ge = _e(o, re), Kr = ne ? ne(o) === Object.prototype : o instanceof Object || o.constructor === Object, We = o instanceof Object ? "" : "null prototype", Qr = !Kr && Q && Object(o) === o && Q in o ? f.call(Z(o), 8, -1) : We ? "Object" : "", nn = Kr || typeof o.constructor != "function" ? "" : o.constructor.name ? o.constructor.name + " " : "", Le = nn + (Qr || We ? "[" + R.call(P.call([], Qr || [], We || []), ": ") + "] " : "");
206
+ return Ge.length === 0 ? Le + "{}" : Oe ? Le + "{" + Ce(Ge, Oe) + "}" : Le + "{ " + R.call(Ge, ", ") + " }";
207
207
  }
208
208
  return String(o);
209
209
  };
@@ -212,7 +212,7 @@ function xe() {
212
212
  return M + n + M;
213
213
  }
214
214
  function ae(n) {
215
- return g.call(String(n), /"/g, "&quot;");
215
+ return v.call(String(n), /"/g, "&quot;");
216
216
  }
217
217
  function Y(n) {
218
218
  return !Q || !(typeof n == "object" && (Q in n || typeof n[Q] < "u"));
@@ -243,10 +243,10 @@ function xe() {
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" || !H)
246
+ if (!n || typeof n != "object" || !z)
247
247
  return !1;
248
248
  try {
249
- return H.call(n), !0;
249
+ return z.call(n), !0;
250
250
  } catch {
251
251
  }
252
252
  return !1;
@@ -260,11 +260,11 @@ function xe() {
260
260
  }
261
261
  return !1;
262
262
  }
263
- var z = Object.prototype.hasOwnProperty || function(n) {
263
+ var H = Object.prototype.hasOwnProperty || function(n) {
264
264
  return n in this;
265
265
  };
266
266
  function K(n, o) {
267
- return z.call(n, o);
267
+ return H.call(n, o);
268
268
  }
269
269
  function Z(n) {
270
270
  return b.call(n);
@@ -289,7 +289,7 @@ function xe() {
289
289
  try {
290
290
  t.call(n);
291
291
  try {
292
- P.call(n);
292
+ E.call(n);
293
293
  } catch {
294
294
  return !0;
295
295
  }
@@ -299,12 +299,12 @@ function xe() {
299
299
  return !1;
300
300
  }
301
301
  function we(n) {
302
- if (!m || !n || typeof n != "object")
302
+ if (!g || !n || typeof n != "object")
303
303
  return !1;
304
304
  try {
305
- m.call(n, m);
305
+ g.call(n, g);
306
306
  try {
307
- v.call(n, v);
307
+ m.call(n, m);
308
308
  } catch {
309
309
  return !0;
310
310
  }
@@ -323,10 +323,10 @@ function xe() {
323
323
  return !1;
324
324
  }
325
325
  function Ae(n) {
326
- if (!P || !n || typeof n != "object")
326
+ if (!E || !n || typeof n != "object")
327
327
  return !1;
328
328
  try {
329
- P.call(n);
329
+ E.call(n);
330
330
  try {
331
331
  t.call(n);
332
332
  } catch {
@@ -337,13 +337,13 @@ function xe() {
337
337
  }
338
338
  return !1;
339
339
  }
340
- function Jt(n) {
341
- if (!v || !n || typeof n != "object")
340
+ function Xt(n) {
341
+ if (!m || !n || typeof n != "object")
342
342
  return !1;
343
343
  try {
344
- v.call(n, v);
344
+ m.call(n, m);
345
345
  try {
346
- m.call(n, m);
346
+ g.call(n, g);
347
347
  } catch {
348
348
  return !0;
349
349
  }
@@ -352,20 +352,20 @@ function xe() {
352
352
  }
353
353
  return !1;
354
354
  }
355
- function Yt(n) {
355
+ function Zt(n) {
356
356
  return !n || typeof n != "object" ? !1 : typeof HTMLElement < "u" && n instanceof HTMLElement ? !0 : typeof n.nodeName == "string" && typeof n.getAttribute == "function";
357
357
  }
358
- function Nr(n, o) {
358
+ function Br(n, o) {
359
359
  if (n.length > o.maxStringLength) {
360
360
  var x = n.length - o.maxStringLength, C = "... " + x + " more character" + (x > 1 ? "s" : "");
361
- return Nr(f.call(n, 0, o.maxStringLength), o) + C;
361
+ return Br(f.call(n, 0, o.maxStringLength), o) + C;
362
362
  }
363
363
  var M = fe[o.quoteStyle || "single"];
364
364
  M.lastIndex = 0;
365
- var _ = g.call(g.call(n, M, "\\$1"), /[\x00-\x1f]/g, Xt);
365
+ var _ = v.call(v.call(n, M, "\\$1"), /[\x00-\x1f]/g, en);
366
366
  return le(_, "single", o);
367
367
  }
368
- function Xt(n) {
368
+ function en(n) {
369
369
  var o = n.charCodeAt(0), x = {
370
370
  8: "b",
371
371
  9: "t",
@@ -373,26 +373,26 @@ function xe() {
373
373
  12: "f",
374
374
  13: "r"
375
375
  }[o];
376
- return x ? "\\" + x : "\\x" + (o < 16 ? "0" : "") + p.call(o.toString(16));
376
+ return x ? "\\" + x : "\\x" + (o < 16 ? "0" : "") + y.call(o.toString(16));
377
377
  }
378
378
  function Ie(n) {
379
379
  return "Object(" + n + ")";
380
380
  }
381
- function De(n) {
381
+ function Fe(n) {
382
382
  return n + " { ? }";
383
383
  }
384
- function Ur(n, o, x, C) {
385
- var M = C ? Fe(x, C) : R.call(x, ", ");
384
+ function Gr(n, o, x, C) {
385
+ var M = C ? Ce(x, C) : R.call(x, ", ");
386
386
  return n + " (" + o + ") {" + M + "}";
387
387
  }
388
- function Zt(n) {
388
+ function rn(n) {
389
389
  for (var o = 0; o < n.length; o++)
390
390
  if (pe(n[o], `
391
391
  `) >= 0)
392
392
  return !1;
393
393
  return !0;
394
394
  }
395
- function en(n, o) {
395
+ function tn(n, o) {
396
396
  var x;
397
397
  if (n.indent === " ")
398
398
  x = " ";
@@ -405,7 +405,7 @@ function xe() {
405
405
  prev: R.call(Array(o + 1), x)
406
406
  };
407
407
  }
408
- function Fe(n, o) {
408
+ function Ce(n, o) {
409
409
  if (n.length === 0)
410
410
  return "";
411
411
  var x = `
@@ -433,155 +433,155 @@ function xe() {
433
433
  te.call(n, _[de]) && C.push("[" + o(_[de]) + "]: " + o(n[_[de]], n));
434
434
  return C;
435
435
  }
436
- return He;
436
+ return je;
437
437
  }
438
- var je, Yr;
439
- function pn() {
440
- if (Yr) return je;
441
- Yr = 1;
442
- var r = /* @__PURE__ */ xe(), e = /* @__PURE__ */ Pe(), t = function(h, E, m) {
443
- for (var d = h, v; (v = d.next) != null; d = v)
444
- if (v.key === E)
445
- return d.next = v.next, m || (v.next = /** @type {NonNullable<typeof list.next>} */
446
- h.next, h.next = v), v;
447
- }, a = function(h, E) {
438
+ var He, Zr;
439
+ function dn() {
440
+ if (Zr) return He;
441
+ Zr = 1;
442
+ var r = /* @__PURE__ */ qe(), e = /* @__PURE__ */ Ee(), t = function(h, O, g) {
443
+ for (var d = h, m; (m = d.next) != null; d = m)
444
+ if (m.key === O)
445
+ return d.next = m.next, g || (m.next = /** @type {NonNullable<typeof list.next>} */
446
+ h.next, h.next = m), m;
447
+ }, a = function(h, O) {
448
448
  if (h) {
449
- var m = t(h, E);
450
- return m && m.value;
449
+ var g = t(h, O);
450
+ return g && g.value;
451
451
  }
452
- }, s = function(h, E, m) {
453
- var d = t(h, E);
454
- d ? d.value = m : h.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */
452
+ }, c = function(h, O, g) {
453
+ var d = t(h, O);
454
+ d ? d.value = g : h.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */
455
455
  {
456
456
  // eslint-disable-line no-param-reassign, no-extra-parens
457
- key: E,
457
+ key: O,
458
458
  next: h.next,
459
- value: m
459
+ value: g
460
460
  };
461
- }, y = function(h, E) {
462
- return h ? !!t(h, E) : !1;
463
- }, P = function(h, E) {
461
+ }, p = function(h, O) {
462
+ return h ? !!t(h, O) : !1;
463
+ }, E = function(h, O) {
464
464
  if (h)
465
- return t(h, E, !0);
465
+ return t(h, O, !0);
466
466
  };
467
- return je = function() {
468
- var E, m = {
467
+ return He = function() {
468
+ var O, g = {
469
469
  assert: function(d) {
470
- if (!m.has(d))
470
+ if (!g.has(d))
471
471
  throw new e("Side channel does not contain " + r(d));
472
472
  },
473
473
  delete: function(d) {
474
- var v = E && E.next, S = P(E, d);
475
- return S && v && v === S && (E = void 0), !!S;
474
+ var m = O && O.next, S = E(O, d);
475
+ return S && m && m === S && (O = void 0), !!S;
476
476
  },
477
477
  get: function(d) {
478
- return a(E, d);
478
+ return a(O, d);
479
479
  },
480
480
  has: function(d) {
481
- return y(E, d);
481
+ return p(O, d);
482
482
  },
483
- set: function(d, v) {
484
- E || (E = {
483
+ set: function(d, m) {
484
+ O || (O = {
485
485
  next: void 0
486
- }), s(
486
+ }), c(
487
487
  /** @type {NonNullable<typeof $o>} */
488
- E,
488
+ O,
489
489
  d,
490
- v
490
+ m
491
491
  );
492
492
  }
493
493
  };
494
- return m;
495
- }, je;
496
- }
497
- var ze, Xr;
498
- function Gt() {
499
- return Xr || (Xr = 1, ze = Object), ze;
500
- }
501
- var Ke, Zr;
502
- function yn() {
503
- return Zr || (Zr = 1, Ke = Error), Ke;
494
+ return g;
495
+ }, He;
504
496
  }
505
- var Qe, et;
506
- function dn() {
507
- return et || (et = 1, Qe = EvalError), Qe;
497
+ var Ke, et;
498
+ function Lt() {
499
+ return et || (et = 1, Ke = Object), Ke;
508
500
  }
509
- var Ve, rt;
501
+ var Qe, rt;
510
502
  function hn() {
511
- return rt || (rt = 1, Ve = RangeError), Ve;
503
+ return rt || (rt = 1, Qe = Error), Qe;
512
504
  }
513
- var Je, tt;
505
+ var Ve, tt;
514
506
  function vn() {
515
- return tt || (tt = 1, Je = ReferenceError), Je;
507
+ return tt || (tt = 1, Ve = EvalError), Ve;
516
508
  }
517
- var Ye, nt;
509
+ var Je, nt;
518
510
  function gn() {
519
- return nt || (nt = 1, Ye = SyntaxError), Ye;
511
+ return nt || (nt = 1, Je = RangeError), Je;
520
512
  }
521
- var Xe, ot;
513
+ var Ye, ot;
522
514
  function mn() {
523
- return ot || (ot = 1, Xe = URIError), Xe;
515
+ return ot || (ot = 1, Ye = ReferenceError), Ye;
524
516
  }
525
- var Ze, at;
517
+ var Xe, at;
526
518
  function Sn() {
527
- return at || (at = 1, Ze = Math.abs), Ze;
519
+ return at || (at = 1, Xe = SyntaxError), Xe;
528
520
  }
529
- var er, it;
521
+ var Ze, it;
530
522
  function wn() {
531
- return it || (it = 1, er = Math.floor), er;
523
+ return it || (it = 1, Ze = URIError), Ze;
532
524
  }
533
- var rr, ut;
525
+ var er, ut;
534
526
  function bn() {
535
- return ut || (ut = 1, rr = Math.max), rr;
527
+ return ut || (ut = 1, er = Math.abs), er;
536
528
  }
537
- var tr, ft;
529
+ var rr, ft;
538
530
  function An() {
539
- return ft || (ft = 1, tr = Math.min), tr;
531
+ return ft || (ft = 1, rr = Math.floor), rr;
540
532
  }
541
- var nr, lt;
533
+ var tr, lt;
542
534
  function On() {
543
- return lt || (lt = 1, nr = Math.pow), nr;
535
+ return lt || (lt = 1, tr = Math.max), tr;
544
536
  }
545
- var or, ct;
546
- function En() {
547
- return ct || (ct = 1, or = Math.round), or;
548
- }
549
- var ar, st;
537
+ var nr, ct;
550
538
  function Pn() {
551
- return st || (st = 1, ar = Number.isNaN || function(e) {
552
- return e !== e;
553
- }), ar;
539
+ return ct || (ct = 1, nr = Math.min), nr;
554
540
  }
555
- var ir, pt;
541
+ var or, st;
542
+ function En() {
543
+ return st || (st = 1, or = Math.pow), or;
544
+ }
545
+ var ar, pt;
556
546
  function In() {
557
- if (pt) return ir;
558
- pt = 1;
559
- var r = /* @__PURE__ */ Pn();
560
- return ir = function(t) {
561
- return r(t) || t === 0 ? t : t < 0 ? -1 : 1;
562
- }, ir;
547
+ return pt || (pt = 1, ar = Math.round), ar;
563
548
  }
564
- var ur, yt;
549
+ var ir, yt;
565
550
  function Rn() {
566
- return yt || (yt = 1, ur = Object.getOwnPropertyDescriptor), ur;
551
+ return yt || (yt = 1, ir = Number.isNaN || function(e) {
552
+ return e !== e;
553
+ }), ir;
567
554
  }
568
- var fr, dt;
569
- function Wt() {
570
- if (dt) return fr;
555
+ var ur, dt;
556
+ function Tn() {
557
+ if (dt) return ur;
571
558
  dt = 1;
572
559
  var r = /* @__PURE__ */ Rn();
560
+ return ur = function(t) {
561
+ return r(t) || t === 0 ? t : t < 0 ? -1 : 1;
562
+ }, ur;
563
+ }
564
+ var fr, ht;
565
+ function _n() {
566
+ return ht || (ht = 1, fr = Object.getOwnPropertyDescriptor), fr;
567
+ }
568
+ var lr, vt;
569
+ function zt() {
570
+ if (vt) return lr;
571
+ vt = 1;
572
+ var r = /* @__PURE__ */ _n();
573
573
  if (r)
574
574
  try {
575
575
  r([], "length");
576
576
  } catch {
577
577
  r = null;
578
578
  }
579
- return fr = r, fr;
579
+ return lr = r, lr;
580
580
  }
581
- var lr, ht;
582
- function Tn() {
583
- if (ht) return lr;
584
- ht = 1;
581
+ var cr, gt;
582
+ function kn() {
583
+ if (gt) return cr;
584
+ gt = 1;
585
585
  var r = Object.defineProperty || !1;
586
586
  if (r)
587
587
  try {
@@ -589,11 +589,11 @@ function Tn() {
589
589
  } catch {
590
590
  r = !1;
591
591
  }
592
- return lr = r, lr;
592
+ return cr = r, cr;
593
593
  }
594
- var cr, vt;
595
- function _n() {
596
- return vt || (vt = 1, cr = function() {
594
+ var sr, mt;
595
+ function $n() {
596
+ return mt || (mt = 1, sr = function() {
597
597
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
598
598
  return !1;
599
599
  if (typeof Symbol.iterator == "symbol")
@@ -601,201 +601,201 @@ function _n() {
601
601
  var e = {}, t = Symbol("test"), a = Object(t);
602
602
  if (typeof t == "string" || Object.prototype.toString.call(t) !== "[object Symbol]" || Object.prototype.toString.call(a) !== "[object Symbol]")
603
603
  return !1;
604
- var s = 42;
605
- e[t] = s;
606
- for (var y in e)
604
+ var c = 42;
605
+ e[t] = c;
606
+ for (var p in e)
607
607
  return !1;
608
608
  if (typeof Object.keys == "function" && Object.keys(e).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(e).length !== 0)
609
609
  return !1;
610
- var P = Object.getOwnPropertySymbols(e);
611
- if (P.length !== 1 || P[0] !== t || !Object.prototype.propertyIsEnumerable.call(e, t))
610
+ var E = Object.getOwnPropertySymbols(e);
611
+ if (E.length !== 1 || E[0] !== t || !Object.prototype.propertyIsEnumerable.call(e, t))
612
612
  return !1;
613
613
  if (typeof Object.getOwnPropertyDescriptor == "function") {
614
614
  var h = (
615
615
  /** @type {PropertyDescriptor} */
616
616
  Object.getOwnPropertyDescriptor(e, t)
617
617
  );
618
- if (h.value !== s || h.enumerable !== !0)
618
+ if (h.value !== c || h.enumerable !== !0)
619
619
  return !1;
620
620
  }
621
621
  return !0;
622
- }), cr;
622
+ }), sr;
623
623
  }
624
- var sr, gt;
625
- function kn() {
626
- if (gt) return sr;
627
- gt = 1;
628
- var r = typeof Symbol < "u" && Symbol, e = _n();
629
- return sr = function() {
624
+ var pr, St;
625
+ function xn() {
626
+ if (St) return pr;
627
+ St = 1;
628
+ var r = typeof Symbol < "u" && Symbol, e = $n();
629
+ return pr = function() {
630
630
  return typeof r != "function" || typeof Symbol != "function" || typeof r("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : e();
631
- }, sr;
631
+ }, pr;
632
632
  }
633
- var pr, mt;
634
- function Lt() {
635
- return mt || (mt = 1, pr = typeof Reflect < "u" && Reflect.getPrototypeOf || null), pr;
633
+ var yr, wt;
634
+ function jt() {
635
+ return wt || (wt = 1, yr = typeof Reflect < "u" && Reflect.getPrototypeOf || null), yr;
636
636
  }
637
- var yr, St;
637
+ var dr, bt;
638
638
  function Ht() {
639
- if (St) return yr;
640
- St = 1;
641
- var r = /* @__PURE__ */ Gt();
642
- return yr = r.getPrototypeOf || null, yr;
639
+ if (bt) return dr;
640
+ bt = 1;
641
+ var r = /* @__PURE__ */ Lt();
642
+ return dr = r.getPrototypeOf || null, dr;
643
643
  }
644
- var dr, wt;
645
- function $n() {
646
- if (wt) return dr;
647
- wt = 1;
648
- var r = "Function.prototype.bind called on incompatible ", e = Object.prototype.toString, t = Math.max, a = "[object Function]", s = function(E, m) {
649
- for (var d = [], v = 0; v < E.length; v += 1)
650
- d[v] = E[v];
651
- for (var S = 0; S < m.length; S += 1)
652
- d[S + E.length] = m[S];
644
+ var hr, At;
645
+ function qn() {
646
+ if (At) return hr;
647
+ At = 1;
648
+ var r = "Function.prototype.bind called on incompatible ", e = Object.prototype.toString, t = Math.max, a = "[object Function]", c = function(O, g) {
649
+ for (var d = [], m = 0; m < O.length; m += 1)
650
+ d[m] = O[m];
651
+ for (var S = 0; S < g.length; S += 1)
652
+ d[S + O.length] = g[S];
653
653
  return d;
654
- }, y = function(E, m) {
655
- for (var d = [], v = m, S = 0; v < E.length; v += 1, S += 1)
656
- d[S] = E[v];
654
+ }, p = function(O, g) {
655
+ for (var d = [], m = g, S = 0; m < O.length; m += 1, S += 1)
656
+ d[S] = O[m];
657
657
  return d;
658
- }, P = function(h, E) {
659
- for (var m = "", d = 0; d < h.length; d += 1)
660
- m += h[d], d + 1 < h.length && (m += E);
661
- return m;
658
+ }, E = function(h, O) {
659
+ for (var g = "", d = 0; d < h.length; d += 1)
660
+ g += h[d], d + 1 < h.length && (g += O);
661
+ return g;
662
662
  };
663
- return dr = function(E) {
664
- var m = this;
665
- if (typeof m != "function" || e.apply(m) !== a)
666
- throw new TypeError(r + m);
667
- for (var d = y(arguments, 1), v, S = function() {
668
- if (this instanceof v) {
669
- var u = m.apply(
663
+ return hr = function(O) {
664
+ var g = this;
665
+ if (typeof g != "function" || e.apply(g) !== a)
666
+ throw new TypeError(r + g);
667
+ for (var d = p(arguments, 1), m, S = function() {
668
+ if (this instanceof m) {
669
+ var u = g.apply(
670
670
  this,
671
- s(d, arguments)
671
+ c(d, arguments)
672
672
  );
673
673
  return Object(u) === u ? u : this;
674
674
  }
675
- return m.apply(
676
- E,
677
- s(d, arguments)
675
+ return g.apply(
676
+ O,
677
+ c(d, arguments)
678
678
  );
679
- }, l = t(0, m.length - d.length), c = [], b = 0; b < l; b++)
680
- c[b] = "$" + b;
681
- if (v = Function("binder", "return function (" + P(c, ",") + "){ return binder.apply(this,arguments); }")(S), m.prototype) {
679
+ }, l = t(0, g.length - d.length), s = [], b = 0; b < l; b++)
680
+ s[b] = "$" + b;
681
+ if (m = Function("binder", "return function (" + E(s, ",") + "){ return binder.apply(this,arguments); }")(S), g.prototype) {
682
682
  var i = function() {
683
683
  };
684
- i.prototype = m.prototype, v.prototype = new i(), i.prototype = null;
684
+ i.prototype = g.prototype, m.prototype = new i(), i.prototype = null;
685
685
  }
686
- return v;
687
- }, dr;
688
- }
689
- var hr, bt;
690
- function qe() {
691
- if (bt) return hr;
692
- bt = 1;
693
- var r = $n();
694
- return hr = Function.prototype.bind || r, hr;
686
+ return m;
687
+ }, hr;
695
688
  }
696
- var vr, At;
697
- function Fr() {
698
- return At || (At = 1, vr = Function.prototype.call), vr;
689
+ var vr, Ot;
690
+ function De() {
691
+ if (Ot) return vr;
692
+ Ot = 1;
693
+ var r = qn();
694
+ return vr = Function.prototype.bind || r, vr;
699
695
  }
700
- var gr, Ot;
701
- function jt() {
702
- return Ot || (Ot = 1, gr = Function.prototype.apply), gr;
696
+ var gr, Pt;
697
+ function Mr() {
698
+ return Pt || (Pt = 1, gr = Function.prototype.call), gr;
703
699
  }
704
700
  var mr, Et;
705
- function xn() {
706
- return Et || (Et = 1, mr = typeof Reflect < "u" && Reflect && Reflect.apply), mr;
701
+ function Kt() {
702
+ return Et || (Et = 1, mr = Function.prototype.apply), mr;
707
703
  }
708
- var Sr, Pt;
709
- function qn() {
710
- if (Pt) return Sr;
711
- Pt = 1;
712
- var r = qe(), e = jt(), t = Fr(), a = xn();
713
- return Sr = a || r.call(t, e), Sr;
704
+ var Sr, It;
705
+ function Dn() {
706
+ return It || (It = 1, Sr = typeof Reflect < "u" && Reflect && Reflect.apply), Sr;
714
707
  }
715
- var wr, It;
716
- function zt() {
717
- if (It) return wr;
718
- It = 1;
719
- var r = qe(), e = /* @__PURE__ */ Pe(), t = Fr(), a = qn();
720
- return wr = function(y) {
721
- if (y.length < 1 || typeof y[0] != "function")
708
+ var wr, Rt;
709
+ function Fn() {
710
+ if (Rt) return wr;
711
+ Rt = 1;
712
+ var r = De(), e = Kt(), t = Mr(), a = Dn();
713
+ return wr = a || r.call(t, e), wr;
714
+ }
715
+ var br, Tt;
716
+ function Qt() {
717
+ if (Tt) return br;
718
+ Tt = 1;
719
+ var r = De(), e = /* @__PURE__ */ Ee(), t = Mr(), a = Fn();
720
+ return br = function(p) {
721
+ if (p.length < 1 || typeof p[0] != "function")
722
722
  throw new e("a function is required");
723
- return a(r, t, y);
724
- }, wr;
723
+ return a(r, t, p);
724
+ }, br;
725
725
  }
726
- var br, Rt;
727
- function Dn() {
728
- if (Rt) return br;
729
- Rt = 1;
730
- var r = zt(), e = /* @__PURE__ */ Wt(), t;
726
+ var Ar, _t;
727
+ function Cn() {
728
+ if (_t) return Ar;
729
+ _t = 1;
730
+ var r = Qt(), e = /* @__PURE__ */ zt(), t;
731
731
  try {
732
732
  t = /** @type {{ __proto__?: typeof Array.prototype }} */
733
733
  [].__proto__ === Array.prototype;
734
- } catch (P) {
735
- if (!P || typeof P != "object" || !("code" in P) || P.code !== "ERR_PROTO_ACCESS")
736
- throw P;
734
+ } catch (E) {
735
+ if (!E || typeof E != "object" || !("code" in E) || E.code !== "ERR_PROTO_ACCESS")
736
+ throw E;
737
737
  }
738
738
  var a = !!t && e && e(
739
739
  Object.prototype,
740
740
  /** @type {keyof typeof Object.prototype} */
741
741
  "__proto__"
742
- ), s = Object, y = s.getPrototypeOf;
743
- return br = a && typeof a.get == "function" ? r([a.get]) : typeof y == "function" ? (
742
+ ), c = Object, p = c.getPrototypeOf;
743
+ return Ar = a && typeof a.get == "function" ? r([a.get]) : typeof p == "function" ? (
744
744
  /** @type {import('./get')} */
745
745
  function(h) {
746
- return y(h == null ? h : s(h));
746
+ return p(h == null ? h : c(h));
747
747
  }
748
- ) : !1, br;
748
+ ) : !1, Ar;
749
749
  }
750
- var Ar, Tt;
751
- function Fn() {
752
- if (Tt) return Ar;
753
- Tt = 1;
754
- var r = Lt(), e = Ht(), t = /* @__PURE__ */ Dn();
755
- return Ar = r ? function(s) {
756
- return r(s);
757
- } : e ? function(s) {
758
- if (!s || typeof s != "object" && typeof s != "function")
750
+ var Or, kt;
751
+ function Mn() {
752
+ if (kt) return Or;
753
+ kt = 1;
754
+ var r = jt(), e = Ht(), t = /* @__PURE__ */ Cn();
755
+ return Or = r ? function(c) {
756
+ return r(c);
757
+ } : e ? function(c) {
758
+ if (!c || typeof c != "object" && typeof c != "function")
759
759
  throw new TypeError("getProto: not an object");
760
- return e(s);
761
- } : t ? function(s) {
762
- return t(s);
763
- } : null, Ar;
760
+ return e(c);
761
+ } : t ? function(c) {
762
+ return t(c);
763
+ } : null, Or;
764
764
  }
765
- var Or, _t;
766
- function Cn() {
767
- if (_t) return Or;
768
- _t = 1;
769
- var r = Function.prototype.call, e = Object.prototype.hasOwnProperty, t = qe();
770
- return Or = t.call(r, e), Or;
765
+ var Pr, $t;
766
+ function Nn() {
767
+ if ($t) return Pr;
768
+ $t = 1;
769
+ var r = Function.prototype.call, e = Object.prototype.hasOwnProperty, t = De();
770
+ return Pr = t.call(r, e), Pr;
771
771
  }
772
- var Er, kt;
773
- function Cr() {
774
- if (kt) return Er;
775
- kt = 1;
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) {
772
+ var Er, xt;
773
+ function Nr() {
774
+ if (xt) return Er;
775
+ xt = 1;
776
+ var r, e = /* @__PURE__ */ Lt(), t = /* @__PURE__ */ hn(), a = /* @__PURE__ */ vn(), c = /* @__PURE__ */ gn(), p = /* @__PURE__ */ mn(), E = /* @__PURE__ */ Sn(), h = /* @__PURE__ */ Ee(), O = /* @__PURE__ */ wn(), g = /* @__PURE__ */ bn(), d = /* @__PURE__ */ An(), m = /* @__PURE__ */ On(), S = /* @__PURE__ */ Pn(), l = /* @__PURE__ */ En(), s = /* @__PURE__ */ In(), b = /* @__PURE__ */ Tn(), 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__ */ Tn(), p = function() {
781
+ }, f = /* @__PURE__ */ zt(), v = /* @__PURE__ */ kn(), y = function() {
782
782
  throw new h();
783
783
  }, w = f ? function() {
784
784
  try {
785
- return arguments.callee, p;
785
+ return arguments.callee, y;
786
786
  } catch {
787
787
  try {
788
788
  return f(arguments, "callee").get;
789
789
  } catch {
790
- return p;
790
+ return y;
791
791
  }
792
792
  }
793
- }() : p, A = kn()(), O = Fn(), R = Ht(), q = Lt(), T = jt(), D = Fr(), I = {}, H = typeof Uint8Array > "u" || !O ? r : O(Uint8Array), B = {
793
+ }() : y, A = xn()(), P = Mn(), R = Ht(), q = jt(), T = Kt(), D = Mr(), I = {}, z = typeof Uint8Array > "u" || !P ? r : P(Uint8Array), B = {
794
794
  __proto__: null,
795
795
  "%AggregateError%": typeof AggregateError > "u" ? r : AggregateError,
796
796
  "%Array%": Array,
797
797
  "%ArrayBuffer%": typeof ArrayBuffer > "u" ? r : ArrayBuffer,
798
- "%ArrayIteratorPrototype%": A && O ? O([][Symbol.iterator]()) : r,
798
+ "%ArrayIteratorPrototype%": A && P ? P([][Symbol.iterator]()) : r,
799
799
  "%AsyncFromSyncIteratorPrototype%": r,
800
800
  "%AsyncFunction%": I,
801
801
  "%AsyncGenerator%": I,
@@ -827,10 +827,10 @@ function Cr() {
827
827
  "%Int32Array%": typeof Int32Array > "u" ? r : Int32Array,
828
828
  "%isFinite%": isFinite,
829
829
  "%isNaN%": isNaN,
830
- "%IteratorPrototype%": A && O ? O(O([][Symbol.iterator]())) : r,
830
+ "%IteratorPrototype%": A && P ? P(P([][Symbol.iterator]())) : r,
831
831
  "%JSON%": typeof JSON == "object" ? JSON : r,
832
832
  "%Map%": typeof Map > "u" ? r : Map,
833
- "%MapIteratorPrototype%": typeof Map > "u" || !A || !O ? r : O((/* @__PURE__ */ new Map())[Symbol.iterator]()),
833
+ "%MapIteratorPrototype%": typeof Map > "u" || !A || !P ? r : P((/* @__PURE__ */ new Map())[Symbol.iterator]()),
834
834
  "%Math%": Math,
835
835
  "%Number%": Number,
836
836
  "%Object%": e,
@@ -839,46 +839,46 @@ function Cr() {
839
839
  "%parseInt%": parseInt,
840
840
  "%Promise%": typeof Promise > "u" ? r : Promise,
841
841
  "%Proxy%": typeof Proxy > "u" ? r : Proxy,
842
- "%RangeError%": s,
843
- "%ReferenceError%": y,
842
+ "%RangeError%": c,
843
+ "%ReferenceError%": p,
844
844
  "%Reflect%": typeof Reflect > "u" ? r : Reflect,
845
845
  "%RegExp%": RegExp,
846
846
  "%Set%": typeof Set > "u" ? r : Set,
847
- "%SetIteratorPrototype%": typeof Set > "u" || !A || !O ? r : O((/* @__PURE__ */ new Set())[Symbol.iterator]()),
847
+ "%SetIteratorPrototype%": typeof Set > "u" || !A || !P ? r : P((/* @__PURE__ */ new Set())[Symbol.iterator]()),
848
848
  "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? r : SharedArrayBuffer,
849
849
  "%String%": String,
850
- "%StringIteratorPrototype%": A && O ? O(""[Symbol.iterator]()) : r,
850
+ "%StringIteratorPrototype%": A && P ? P(""[Symbol.iterator]()) : r,
851
851
  "%Symbol%": A ? Symbol : r,
852
- "%SyntaxError%": P,
852
+ "%SyntaxError%": E,
853
853
  "%ThrowTypeError%": w,
854
- "%TypedArray%": H,
854
+ "%TypedArray%": z,
855
855
  "%TypeError%": h,
856
856
  "%Uint8Array%": typeof Uint8Array > "u" ? r : Uint8Array,
857
857
  "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? r : Uint8ClampedArray,
858
858
  "%Uint16Array%": typeof Uint16Array > "u" ? r : Uint16Array,
859
859
  "%Uint32Array%": typeof Uint32Array > "u" ? r : Uint32Array,
860
- "%URIError%": E,
860
+ "%URIError%": O,
861
861
  "%WeakMap%": typeof WeakMap > "u" ? r : WeakMap,
862
862
  "%WeakRef%": typeof WeakRef > "u" ? r : WeakRef,
863
863
  "%WeakSet%": typeof WeakSet > "u" ? r : WeakSet,
864
864
  "%Function.prototype.call%": D,
865
865
  "%Function.prototype.apply%": T,
866
- "%Object.defineProperty%": g,
866
+ "%Object.defineProperty%": v,
867
867
  "%Object.getPrototypeOf%": R,
868
- "%Math.abs%": m,
868
+ "%Math.abs%": g,
869
869
  "%Math.floor%": d,
870
- "%Math.max%": v,
870
+ "%Math.max%": m,
871
871
  "%Math.min%": S,
872
872
  "%Math.pow%": l,
873
- "%Math.round%": c,
873
+ "%Math.round%": s,
874
874
  "%Math.sign%": b,
875
875
  "%Reflect.getPrototypeOf%": q
876
876
  };
877
- if (O)
877
+ if (P)
878
878
  try {
879
879
  null.error;
880
880
  } catch (L) {
881
- var Q = O(O(L));
881
+ var Q = P(P(L));
882
882
  B["%Error.prototype%"] = Q;
883
883
  }
884
884
  var te = function L($) {
@@ -894,7 +894,7 @@ function Cr() {
894
894
  F && (N = F.prototype);
895
895
  } else if ($ === "%AsyncIteratorPrototype%") {
896
896
  var W = L("%AsyncGenerator%");
897
- W && O && (N = O(W.prototype));
897
+ W && P && (N = P(W.prototype));
898
898
  }
899
899
  return B[$] = N, N;
900
900
  }, ne = {
@@ -950,15 +950,15 @@ function Cr() {
950
950
  "%URIErrorPrototype%": ["URIError", "prototype"],
951
951
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
952
952
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
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($) {
953
+ }, k = De(), V = /* @__PURE__ */ Nn(), 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
954
  var N = fe($, 0, 1), F = fe($, -1);
955
955
  if (N === "%" && F !== "%")
956
- throw new P("invalid intrinsic syntax, expected closing `%`");
956
+ throw new E("invalid intrinsic syntax, expected closing `%`");
957
957
  if (F === "%" && N !== "%")
958
- throw new P("invalid intrinsic syntax, expected opening `%`");
958
+ throw new E("invalid intrinsic syntax, expected opening `%`");
959
959
  var W = [];
960
- return ue($, ae, function(j, X, z, K) {
961
- W[W.length] = z ? ue(K, Y, "$1") : X || j;
960
+ return ue($, ae, function(j, X, H, K) {
961
+ W[W.length] = H ? ue(K, Y, "$1") : X || j;
962
962
  }), W;
963
963
  }, se = function($, N) {
964
964
  var F = $, W;
@@ -972,7 +972,7 @@ function Cr() {
972
972
  value: j
973
973
  };
974
974
  }
975
- throw new P("intrinsic " + $ + " does not exist!");
975
+ throw new E("intrinsic " + $ + " does not exist!");
976
976
  };
977
977
  return Er = function($, N) {
978
978
  if (typeof $ != "string" || $.length === 0)
@@ -980,152 +980,152 @@ function Cr() {
980
980
  if (arguments.length > 1 && typeof N != "boolean")
981
981
  throw new h('"allowMissing" argument must be a boolean');
982
982
  if (le(/^%?[^%]*%?$/, $) === null)
983
- throw new P("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
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;
983
+ throw new E("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
984
+ var F = ce($), W = F.length > 0 ? F[0] : "", j = se("%" + W + "%", N), X = j.name, H = 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);
988
988
  if ((we === '"' || we === "'" || we === "`" || be === '"' || be === "'" || be === "`") && we !== be)
989
- throw new P("property names with quotes must have matching quotes");
989
+ throw new E("property names with quotes must have matching quotes");
990
990
  if ((ee === "constructor" || !pe) && (K = !0), W += "." + ee, X = "%" + W + "%", V(B, X))
991
- z = B[X];
992
- else if (z != null) {
993
- if (!(ee in z)) {
991
+ H = B[X];
992
+ else if (H != null) {
993
+ if (!(ee in H)) {
994
994
  if (!N)
995
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) {
999
- var Ae = f(z, ee);
1000
- pe = !!Ae, pe && "get" in Ae && !("originalValue" in Ae.get) ? z = Ae.get : z = z[ee];
999
+ var Ae = f(H, ee);
1000
+ pe = !!Ae, pe && "get" in Ae && !("originalValue" in Ae.get) ? H = Ae.get : H = H[ee];
1001
1001
  } else
1002
- pe = V(z, ee), z = z[ee];
1003
- pe && !K && (B[X] = z);
1002
+ pe = V(H, ee), H = H[ee];
1003
+ pe && !K && (B[X] = H);
1004
1004
  }
1005
1005
  }
1006
- return z;
1006
+ return H;
1007
1007
  }, Er;
1008
1008
  }
1009
- var Pr, $t;
1010
- function Kt() {
1011
- if ($t) return Pr;
1012
- $t = 1;
1013
- var r = /* @__PURE__ */ Cr(), e = zt(), t = e([r("%String.prototype.indexOf%")]);
1014
- return Pr = function(s, y) {
1015
- var P = (
1009
+ var Ir, qt;
1010
+ function Vt() {
1011
+ if (qt) return Ir;
1012
+ qt = 1;
1013
+ var r = /* @__PURE__ */ Nr(), e = Qt(), t = e([r("%String.prototype.indexOf%")]);
1014
+ return Ir = function(c, p) {
1015
+ var E = (
1016
1016
  /** @type {(this: unknown, ...args: unknown[]) => unknown} */
1017
- r(s, !!y)
1017
+ r(c, !!p)
1018
1018
  );
1019
- return typeof P == "function" && t(s, ".prototype.") > -1 ? e(
1019
+ return typeof E == "function" && t(c, ".prototype.") > -1 ? e(
1020
1020
  /** @type {const} */
1021
- [P]
1022
- ) : P;
1023
- }, Pr;
1021
+ [E]
1022
+ ) : E;
1023
+ }, Ir;
1024
1024
  }
1025
- var Ir, xt;
1026
- function Qt() {
1027
- if (xt) return Ir;
1028
- xt = 1;
1029
- var r = /* @__PURE__ */ Cr(), e = /* @__PURE__ */ Kt(), t = /* @__PURE__ */ xe(), a = /* @__PURE__ */ Pe(), s = r("%Map%", !0), y = e("Map.prototype.get", !0), P = e("Map.prototype.set", !0), h = e("Map.prototype.has", !0), E = e("Map.prototype.delete", !0), m = e("Map.prototype.size", !0);
1030
- return Ir = !!s && /** @type {Exclude<import('.'), false>} */
1025
+ var Rr, Dt;
1026
+ function Jt() {
1027
+ if (Dt) return Rr;
1028
+ Dt = 1;
1029
+ var r = /* @__PURE__ */ Nr(), e = /* @__PURE__ */ Vt(), t = /* @__PURE__ */ qe(), a = /* @__PURE__ */ Ee(), c = r("%Map%", !0), p = e("Map.prototype.get", !0), E = e("Map.prototype.set", !0), h = e("Map.prototype.has", !0), O = e("Map.prototype.delete", !0), g = e("Map.prototype.size", !0);
1030
+ return Rr = !!c && /** @type {Exclude<import('.'), false>} */
1031
1031
  function() {
1032
- var v, S = {
1032
+ var m, S = {
1033
1033
  assert: function(l) {
1034
1034
  if (!S.has(l))
1035
1035
  throw new a("Side channel does not contain " + t(l));
1036
1036
  },
1037
1037
  delete: function(l) {
1038
- if (v) {
1039
- var c = E(v, l);
1040
- return m(v) === 0 && (v = void 0), c;
1038
+ if (m) {
1039
+ var s = O(m, l);
1040
+ return g(m) === 0 && (m = void 0), s;
1041
1041
  }
1042
1042
  return !1;
1043
1043
  },
1044
1044
  get: function(l) {
1045
- if (v)
1046
- return y(v, l);
1045
+ if (m)
1046
+ return p(m, l);
1047
1047
  },
1048
1048
  has: function(l) {
1049
- return v ? h(v, l) : !1;
1049
+ return m ? h(m, l) : !1;
1050
1050
  },
1051
- set: function(l, c) {
1052
- v || (v = new s()), P(v, l, c);
1051
+ set: function(l, s) {
1052
+ m || (m = new c()), E(m, l, s);
1053
1053
  }
1054
1054
  };
1055
1055
  return S;
1056
- }, Ir;
1056
+ }, Rr;
1057
1057
  }
1058
- var Rr, qt;
1059
- function Mn() {
1060
- if (qt) return Rr;
1061
- qt = 1;
1062
- var r = /* @__PURE__ */ Cr(), e = /* @__PURE__ */ Kt(), t = /* @__PURE__ */ xe(), a = Qt(), s = /* @__PURE__ */ Pe(), y = r("%WeakMap%", !0), P = e("WeakMap.prototype.get", !0), h = e("WeakMap.prototype.set", !0), E = e("WeakMap.prototype.has", !0), m = e("WeakMap.prototype.delete", !0);
1063
- return Rr = y ? (
1058
+ var Tr, Ft;
1059
+ function Un() {
1060
+ if (Ft) return Tr;
1061
+ Ft = 1;
1062
+ var r = /* @__PURE__ */ Nr(), e = /* @__PURE__ */ Vt(), t = /* @__PURE__ */ qe(), a = Jt(), c = /* @__PURE__ */ Ee(), p = r("%WeakMap%", !0), E = e("WeakMap.prototype.get", !0), h = e("WeakMap.prototype.set", !0), O = e("WeakMap.prototype.has", !0), g = e("WeakMap.prototype.delete", !0);
1063
+ return Tr = p ? (
1064
1064
  /** @type {Exclude<import('.'), false>} */
1065
1065
  function() {
1066
- var v, S, l = {
1067
- assert: function(c) {
1068
- if (!l.has(c))
1069
- throw new s("Side channel does not contain " + t(c));
1066
+ var m, S, l = {
1067
+ assert: function(s) {
1068
+ if (!l.has(s))
1069
+ throw new c("Side channel does not contain " + t(s));
1070
1070
  },
1071
- delete: function(c) {
1072
- if (y && c && (typeof c == "object" || typeof c == "function")) {
1073
- if (v)
1074
- return m(v, c);
1071
+ delete: function(s) {
1072
+ if (p && s && (typeof s == "object" || typeof s == "function")) {
1073
+ if (m)
1074
+ return g(m, s);
1075
1075
  } else if (a && S)
1076
- return S.delete(c);
1076
+ return S.delete(s);
1077
1077
  return !1;
1078
1078
  },
1079
- get: function(c) {
1080
- return y && c && (typeof c == "object" || typeof c == "function") && v ? P(v, c) : S && S.get(c);
1079
+ get: function(s) {
1080
+ return p && s && (typeof s == "object" || typeof s == "function") && m ? E(m, s) : S && S.get(s);
1081
1081
  },
1082
- has: function(c) {
1083
- return y && c && (typeof c == "object" || typeof c == "function") && v ? E(v, c) : !!S && S.has(c);
1082
+ has: function(s) {
1083
+ return p && s && (typeof s == "object" || typeof s == "function") && m ? O(m, s) : !!S && S.has(s);
1084
1084
  },
1085
- set: function(c, b) {
1086
- y && c && (typeof c == "object" || typeof c == "function") ? (v || (v = new y()), h(v, c, b)) : a && (S || (S = a()), S.set(c, b));
1085
+ set: function(s, b) {
1086
+ p && s && (typeof s == "object" || typeof s == "function") ? (m || (m = new p()), h(m, s, b)) : a && (S || (S = a()), S.set(s, b));
1087
1087
  }
1088
1088
  };
1089
1089
  return l;
1090
1090
  }
1091
- ) : a, Rr;
1091
+ ) : a, Tr;
1092
1092
  }
1093
- var Tr, Dt;
1094
- function Nn() {
1095
- if (Dt) return Tr;
1096
- Dt = 1;
1097
- var r = /* @__PURE__ */ Pe(), e = /* @__PURE__ */ xe(), t = pn(), a = Qt(), s = Mn(), y = s || a || t;
1098
- return Tr = function() {
1099
- var h, E = {
1100
- assert: function(m) {
1101
- if (!E.has(m))
1102
- throw new r("Side channel does not contain " + e(m));
1093
+ var _r, Ct;
1094
+ function Bn() {
1095
+ if (Ct) return _r;
1096
+ Ct = 1;
1097
+ var r = /* @__PURE__ */ Ee(), e = /* @__PURE__ */ qe(), t = dn(), a = Jt(), c = Un(), p = c || a || t;
1098
+ return _r = function() {
1099
+ var h, O = {
1100
+ assert: function(g) {
1101
+ if (!O.has(g))
1102
+ throw new r("Side channel does not contain " + e(g));
1103
1103
  },
1104
- delete: function(m) {
1105
- return !!h && h.delete(m);
1104
+ delete: function(g) {
1105
+ return !!h && h.delete(g);
1106
1106
  },
1107
- get: function(m) {
1108
- return h && h.get(m);
1107
+ get: function(g) {
1108
+ return h && h.get(g);
1109
1109
  },
1110
- has: function(m) {
1111
- return !!h && h.has(m);
1110
+ has: function(g) {
1111
+ return !!h && h.has(g);
1112
1112
  },
1113
- set: function(m, d) {
1114
- h || (h = y()), h.set(m, d);
1113
+ set: function(g, d) {
1114
+ h || (h = p()), h.set(g, d);
1115
1115
  }
1116
1116
  };
1117
- return E;
1118
- }, Tr;
1117
+ return O;
1118
+ }, _r;
1119
1119
  }
1120
- var _r, Ft;
1121
- function Mr() {
1122
- if (Ft) return _r;
1123
- Ft = 1;
1120
+ var kr, Mt;
1121
+ function Ur() {
1122
+ if (Mt) return kr;
1123
+ Mt = 1;
1124
1124
  var r = String.prototype.replace, e = /%20/g, t = {
1125
1125
  RFC1738: "RFC1738",
1126
1126
  RFC3986: "RFC3986"
1127
1127
  };
1128
- return _r = {
1128
+ return kr = {
1129
1129
  default: t.RFC3986,
1130
1130
  formatters: {
1131
1131
  RFC1738: function(a) {
@@ -1137,77 +1137,77 @@ function Mr() {
1137
1137
  },
1138
1138
  RFC1738: t.RFC1738,
1139
1139
  RFC3986: t.RFC3986
1140
- }, _r;
1140
+ }, kr;
1141
1141
  }
1142
- var kr, Ct;
1143
- function Vt() {
1144
- if (Ct) return kr;
1145
- Ct = 1;
1146
- var r = /* @__PURE__ */ Mr(), e = Object.prototype.hasOwnProperty, t = Array.isArray, a = function() {
1142
+ var $r, Nt;
1143
+ function Yt() {
1144
+ if (Nt) return $r;
1145
+ Nt = 1;
1146
+ var r = /* @__PURE__ */ Ur(), e = Object.prototype.hasOwnProperty, t = Array.isArray, a = function() {
1147
1147
  for (var i = [], u = 0; u < 256; ++u)
1148
1148
  i.push("%" + ((u < 16 ? "0" : "") + u.toString(16)).toUpperCase());
1149
1149
  return i;
1150
- }(), s = function(u) {
1150
+ }(), c = function(u) {
1151
1151
  for (; u.length > 1; ) {
1152
- var f = u.pop(), g = f.obj[f.prop];
1153
- if (t(g)) {
1154
- for (var p = [], w = 0; w < g.length; ++w)
1155
- typeof g[w] < "u" && p.push(g[w]);
1156
- f.obj[f.prop] = p;
1152
+ var f = u.pop(), v = f.obj[f.prop];
1153
+ if (t(v)) {
1154
+ for (var y = [], w = 0; w < v.length; ++w)
1155
+ typeof v[w] < "u" && y.push(v[w]);
1156
+ f.obj[f.prop] = y;
1157
1157
  }
1158
1158
  }
1159
- }, y = function(u, f) {
1160
- for (var g = f && f.plainObjects ? { __proto__: null } : {}, p = 0; p < u.length; ++p)
1161
- typeof u[p] < "u" && (g[p] = u[p]);
1162
- return g;
1163
- }, P = function i(u, f, g) {
1159
+ }, p = function(u, f) {
1160
+ for (var v = f && f.plainObjects ? { __proto__: null } : {}, y = 0; y < u.length; ++y)
1161
+ typeof u[y] < "u" && (v[y] = u[y]);
1162
+ return v;
1163
+ }, E = function i(u, f, v) {
1164
1164
  if (!f)
1165
1165
  return u;
1166
1166
  if (typeof f != "object" && typeof f != "function") {
1167
1167
  if (t(u))
1168
1168
  u.push(f);
1169
1169
  else if (u && typeof u == "object")
1170
- (g && (g.plainObjects || g.allowPrototypes) || !e.call(Object.prototype, f)) && (u[f] = !0);
1170
+ (v && (v.plainObjects || v.allowPrototypes) || !e.call(Object.prototype, f)) && (u[f] = !0);
1171
1171
  else
1172
1172
  return [u, f];
1173
1173
  return u;
1174
1174
  }
1175
1175
  if (!u || typeof u != "object")
1176
1176
  return [u].concat(f);
1177
- var p = u;
1178
- return t(u) && !t(f) && (p = y(u, g)), t(u) && t(f) ? (f.forEach(function(w, A) {
1177
+ var y = u;
1178
+ return t(u) && !t(f) && (y = p(u, v)), t(u) && t(f) ? (f.forEach(function(w, A) {
1179
1179
  if (e.call(u, A)) {
1180
- var O = u[A];
1181
- O && typeof O == "object" && w && typeof w == "object" ? u[A] = i(O, w, g) : u.push(w);
1180
+ var P = u[A];
1181
+ P && typeof P == "object" && w && typeof w == "object" ? u[A] = i(P, w, v) : u.push(w);
1182
1182
  } else
1183
1183
  u[A] = w;
1184
1184
  }), u) : Object.keys(f).reduce(function(w, A) {
1185
- var O = f[A];
1186
- return e.call(w, A) ? w[A] = i(w[A], O, g) : w[A] = O, w;
1187
- }, p);
1185
+ var P = f[A];
1186
+ return e.call(w, A) ? w[A] = i(w[A], P, v) : w[A] = P, w;
1187
+ }, y);
1188
1188
  }, h = function(u, f) {
1189
- return Object.keys(f).reduce(function(g, p) {
1190
- return g[p] = f[p], g;
1189
+ return Object.keys(f).reduce(function(v, y) {
1190
+ return v[y] = f[y], v;
1191
1191
  }, u);
1192
- }, E = function(i, u, f) {
1193
- var g = i.replace(/\+/g, " ");
1192
+ }, O = function(i, u, f) {
1193
+ var v = i.replace(/\+/g, " ");
1194
1194
  if (f === "iso-8859-1")
1195
- return g.replace(/%[0-9a-f]{2}/gi, unescape);
1195
+ return v.replace(/%[0-9a-f]{2}/gi, unescape);
1196
1196
  try {
1197
- return decodeURIComponent(g);
1197
+ return decodeURIComponent(v);
1198
1198
  } catch {
1199
- return g;
1199
+ return v;
1200
1200
  }
1201
- }, m = 1024, d = function(u, f, g, p, w) {
1201
+ }, g = 1024, d = function(u, f, v, y, w) {
1202
1202
  if (u.length === 0)
1203
1203
  return u;
1204
1204
  var A = u;
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(H) {
1207
- return "%26%23" + parseInt(H.slice(2), 16) + "%3B";
1205
+ if (typeof u == "symbol" ? A = Symbol.prototype.toString.call(u) : typeof u != "string" && (A = String(u)), v === "iso-8859-1")
1206
+ return escape(A).replace(/%u[0-9a-f]{4}/gi, function(z) {
1207
+ return "%26%23" + parseInt(z.slice(2), 16) + "%3B";
1208
1208
  });
1209
- for (var O = "", R = 0; R < A.length; R += m) {
1210
- for (var q = A.length >= m ? A.slice(R, R + m) : A, T = [], D = 0; D < q.length; ++D) {
1209
+ for (var P = "", R = 0; R < A.length; R += g) {
1210
+ for (var q = A.length >= g ? A.slice(R, R + g) : 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
1213
  T[T.length] = q.charAt(D);
@@ -1227,48 +1227,48 @@ function Vt() {
1227
1227
  }
1228
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 += T.join("");
1230
+ P += T.join("");
1231
1231
  }
1232
- return O;
1233
- }, v = function(u) {
1234
- for (var f = [{ obj: { o: u }, prop: "o" }], g = [], p = 0; p < f.length; ++p)
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], T = A[q];
1237
- typeof T == "object" && T !== null && g.indexOf(T) === -1 && (f.push({ obj: A, prop: q }), g.push(T));
1232
+ return P;
1233
+ }, m = function(u) {
1234
+ for (var f = [{ obj: { o: u }, prop: "o" }], v = [], y = 0; y < f.length; ++y)
1235
+ for (var w = f[y], A = w.obj[w.prop], P = Object.keys(A), R = 0; R < P.length; ++R) {
1236
+ var q = P[R], T = A[q];
1237
+ typeof T == "object" && T !== null && v.indexOf(T) === -1 && (f.push({ obj: A, prop: q }), v.push(T));
1238
1238
  }
1239
- return s(f), u;
1239
+ return c(f), u;
1240
1240
  }, S = function(u) {
1241
1241
  return Object.prototype.toString.call(u) === "[object RegExp]";
1242
1242
  }, l = function(u) {
1243
1243
  return !u || typeof u != "object" ? !1 : !!(u.constructor && u.constructor.isBuffer && u.constructor.isBuffer(u));
1244
- }, c = function(u, f) {
1244
+ }, s = function(u, f) {
1245
1245
  return [].concat(u, f);
1246
1246
  }, b = function(u, f) {
1247
1247
  if (t(u)) {
1248
- for (var g = [], p = 0; p < u.length; p += 1)
1249
- g.push(f(u[p]));
1250
- return g;
1248
+ for (var v = [], y = 0; y < u.length; y += 1)
1249
+ v.push(f(u[y]));
1250
+ return v;
1251
1251
  }
1252
1252
  return f(u);
1253
1253
  };
1254
- return kr = {
1255
- arrayToObject: y,
1254
+ return $r = {
1255
+ arrayToObject: p,
1256
1256
  assign: h,
1257
- combine: c,
1258
- compact: v,
1259
- decode: E,
1257
+ combine: s,
1258
+ compact: m,
1259
+ decode: O,
1260
1260
  encode: d,
1261
1261
  isBuffer: l,
1262
1262
  isRegExp: S,
1263
1263
  maybeMap: b,
1264
- merge: P
1265
- }, kr;
1264
+ merge: E
1265
+ }, $r;
1266
1266
  }
1267
- var $r, Mt;
1268
- function Un() {
1269
- if (Mt) return $r;
1270
- Mt = 1;
1271
- var r = Nn(), e = /* @__PURE__ */ Vt(), t = /* @__PURE__ */ Mr(), a = Object.prototype.hasOwnProperty, s = {
1267
+ var xr, Ut;
1268
+ function Gn() {
1269
+ if (Ut) return xr;
1270
+ Ut = 1;
1271
+ var r = Bn(), e = /* @__PURE__ */ Yt(), t = /* @__PURE__ */ Ur(), a = Object.prototype.hasOwnProperty, c = {
1272
1272
  brackets: function(i) {
1273
1273
  return i + "[]";
1274
1274
  },
@@ -1279,9 +1279,9 @@ function Un() {
1279
1279
  repeat: function(i) {
1280
1280
  return i;
1281
1281
  }
1282
- }, y = Array.isArray, P = Array.prototype.push, h = function(b, i) {
1283
- P.apply(b, y(i) ? i : [i]);
1284
- }, E = Date.prototype.toISOString, m = t.default, d = {
1282
+ }, p = Array.isArray, E = Array.prototype.push, h = function(b, i) {
1283
+ E.apply(b, p(i) ? i : [i]);
1284
+ }, O = Date.prototype.toISOString, g = t.default, d = {
1285
1285
  addQueryPrefix: !1,
1286
1286
  allowDots: !1,
1287
1287
  allowEmptyArrays: !1,
@@ -1295,18 +1295,18 @@ function Un() {
1295
1295
  encoder: e.encode,
1296
1296
  encodeValuesOnly: !1,
1297
1297
  filter: void 0,
1298
- format: m,
1299
- formatter: t.formatters[m],
1298
+ format: g,
1299
+ formatter: t.formatters[g],
1300
1300
  // deprecated
1301
1301
  indices: !1,
1302
1302
  serializeDate: function(i) {
1303
- return E.call(i);
1303
+ return O.call(i);
1304
1304
  },
1305
1305
  skipNulls: !1,
1306
1306
  strictNullHandling: !1
1307
- }, v = function(i) {
1307
+ }, m = 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, T, D, I, H, B, Q, te, ne) {
1309
+ }, S = {}, l = function b(i, u, f, v, y, w, A, P, R, q, T, D, I, z, B, Q, te, ne) {
1310
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") {
@@ -1316,17 +1316,17 @@ function Un() {
1316
1316
  }
1317
1317
  typeof V.get(S) > "u" && (oe = 0);
1318
1318
  }
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) {
1319
+ if (typeof q == "function" ? k = q(u, k) : k instanceof Date ? k = I(k) : f === "comma" && p(k) && (k = e.maybeMap(k, function(X) {
1320
1320
  return X instanceof Date ? I(X) : X;
1321
1321
  })), k === null) {
1322
1322
  if (w)
1323
- return R && !Q ? R(u, d.encoder, te, "key", H) : u;
1323
+ return R && !Q ? R(u, d.encoder, te, "key", z) : u;
1324
1324
  k = "";
1325
1325
  }
1326
- if (v(k) || e.isBuffer(k)) {
1326
+ if (m(k) || e.isBuffer(k)) {
1327
1327
  if (R) {
1328
- var fe = Q ? u : R(u, d.encoder, te, "key", H);
1329
- return [B(fe) + "=" + B(R(k, d.encoder, te, "value", H))];
1328
+ var fe = Q ? u : R(u, d.encoder, te, "key", z);
1329
+ return [B(fe) + "=" + B(R(k, d.encoder, te, "value", z))];
1330
1330
  }
1331
1331
  return [B(u) + "=" + B(String(k))];
1332
1332
  }
@@ -1334,38 +1334,38 @@ function Un() {
1334
1334
  if (typeof k > "u")
1335
1335
  return le;
1336
1336
  var ae;
1337
- if (f === "comma" && y(k))
1337
+ if (f === "comma" && p(k))
1338
1338
  Q && R && (k = e.maybeMap(k, R)), ae = [{ value: k.length > 0 ? k.join(",") || null : void 0 }];
1339
- else if (y(q))
1339
+ else if (p(q))
1340
1340
  ae = q;
1341
1341
  else {
1342
1342
  var Y = Object.keys(k);
1343
1343
  ae = T ? Y.sort(T) : Y;
1344
1344
  }
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)
1345
+ var ce = P ? String(u).replace(/\./g, "%2E") : String(u), se = v && p(k) && k.length === 1 ? ce + "[]" : ce;
1346
+ if (y && p(k) && k.length === 0)
1347
1347
  return se + "[]";
1348
1348
  for (var L = 0; L < ae.length; ++L) {
1349
1349
  var $ = ae[L], N = typeof $ == "object" && $ && typeof $.value < "u" ? $.value : k[$];
1350
1350
  if (!(A && N === null)) {
1351
- var F = D && O ? String($).replace(/\./g, "%2E") : String($), W = y(k) ? typeof f == "function" ? f(se, F) : se : se + (D ? "." + F : "[" + F + "]");
1351
+ var F = D && P ? String($).replace(/\./g, "%2E") : String($), W = p(k) ? typeof f == "function" ? f(se, F) : se : se + (D ? "." + F : "[" + F + "]");
1352
1352
  ne.set(i, oe);
1353
1353
  var j = r();
1354
1354
  j.set(S, ne), h(le, b(
1355
1355
  N,
1356
1356
  W,
1357
1357
  f,
1358
- g,
1359
- p,
1358
+ v,
1359
+ y,
1360
1360
  w,
1361
1361
  A,
1362
- O,
1363
- f === "comma" && Q && y(k) ? null : R,
1362
+ P,
1363
+ f === "comma" && Q && p(k) ? null : R,
1364
1364
  q,
1365
1365
  T,
1366
1366
  D,
1367
1367
  I,
1368
- H,
1368
+ z,
1369
1369
  B,
1370
1370
  Q,
1371
1371
  te,
@@ -1374,7 +1374,7 @@ function Un() {
1374
1374
  }
1375
1375
  }
1376
1376
  return le;
1377
- }, c = function(i) {
1377
+ }, s = function(i) {
1378
1378
  if (!i)
1379
1379
  return d;
1380
1380
  if (typeof i.allowEmptyArrays < "u" && typeof i.allowEmptyArrays != "boolean")
@@ -1392,10 +1392,10 @@ function Un() {
1392
1392
  throw new TypeError("Unknown format option provided.");
1393
1393
  f = i.format;
1394
1394
  }
1395
- var g = t.formatters[f], p = d.filter;
1396
- (typeof i.filter == "function" || y(i.filter)) && (p = i.filter);
1395
+ var v = t.formatters[f], y = d.filter;
1396
+ (typeof i.filter == "function" || p(i.filter)) && (y = i.filter);
1397
1397
  var w;
1398
- if (i.arrayFormat in s ? w = i.arrayFormat : "indices" in i ? w = i.indices ? "indices" : "repeat" : w = d.arrayFormat, "commaRoundTrip" in i && typeof i.commaRoundTrip != "boolean")
1398
+ if (i.arrayFormat in c ? w = i.arrayFormat : "indices" in i ? w = i.indices ? "indices" : "repeat" : w = d.arrayFormat, "commaRoundTrip" in i && typeof i.commaRoundTrip != "boolean")
1399
1399
  throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
1400
1400
  var A = typeof i.allowDots > "u" ? i.encodeDotInKeys === !0 ? !0 : d.allowDots : !!i.allowDots;
1401
1401
  return {
@@ -1411,30 +1411,30 @@ function Un() {
1411
1411
  encodeDotInKeys: typeof i.encodeDotInKeys == "boolean" ? i.encodeDotInKeys : d.encodeDotInKeys,
1412
1412
  encoder: typeof i.encoder == "function" ? i.encoder : d.encoder,
1413
1413
  encodeValuesOnly: typeof i.encodeValuesOnly == "boolean" ? i.encodeValuesOnly : d.encodeValuesOnly,
1414
- filter: p,
1414
+ filter: y,
1415
1415
  format: f,
1416
- formatter: g,
1416
+ formatter: v,
1417
1417
  serializeDate: typeof i.serializeDate == "function" ? i.serializeDate : d.serializeDate,
1418
1418
  skipNulls: typeof i.skipNulls == "boolean" ? i.skipNulls : d.skipNulls,
1419
1419
  sort: typeof i.sort == "function" ? i.sort : null,
1420
1420
  strictNullHandling: typeof i.strictNullHandling == "boolean" ? i.strictNullHandling : d.strictNullHandling
1421
1421
  };
1422
1422
  };
1423
- return $r = function(b, i) {
1424
- var u = b, f = c(i), g, p;
1425
- typeof f.filter == "function" ? (p = f.filter, u = p("", u)) : y(f.filter) && (p = f.filter, g = p);
1423
+ return xr = function(b, i) {
1424
+ var u = b, f = s(i), v, y;
1425
+ typeof f.filter == "function" ? (y = f.filter, u = y("", u)) : p(f.filter) && (y = f.filter, v = y);
1426
1426
  var w = [];
1427
1427
  if (typeof u != "object" || u === null)
1428
1428
  return "";
1429
- var A = s[f.arrayFormat], O = A === "comma" && f.commaRoundTrip;
1430
- g || (g = Object.keys(u)), f.sort && g.sort(f.sort);
1431
- for (var R = r(), q = 0; q < g.length; ++q) {
1432
- var T = g[q], D = u[T];
1429
+ var A = c[f.arrayFormat], P = A === "comma" && f.commaRoundTrip;
1430
+ v || (v = Object.keys(u)), f.sort && v.sort(f.sort);
1431
+ for (var R = r(), q = 0; q < v.length; ++q) {
1432
+ var T = v[q], D = u[T];
1433
1433
  f.skipNulls && D === null || h(w, l(
1434
1434
  D,
1435
1435
  T,
1436
1436
  A,
1437
- O,
1437
+ P,
1438
1438
  f.allowEmptyArrays,
1439
1439
  f.strictNullHandling,
1440
1440
  f.skipNulls,
@@ -1451,15 +1451,15 @@ function Un() {
1451
1451
  R
1452
1452
  ));
1453
1453
  }
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;
1454
+ var I = w.join(f.delimiter), z = f.addQueryPrefix === !0 ? "?" : "";
1455
+ return f.charsetSentinel && (f.charset === "iso-8859-1" ? z += "utf8=%26%2310003%3B&" : z += "utf8=%E2%9C%93&"), I.length > 0 ? z + I : "";
1456
+ }, xr;
1457
1457
  }
1458
- var xr, Nt;
1459
- function Bn() {
1460
- if (Nt) return xr;
1461
- Nt = 1;
1462
- var r = /* @__PURE__ */ Vt(), e = Object.prototype.hasOwnProperty, t = Array.isArray, a = {
1458
+ var qr, Bt;
1459
+ function Wn() {
1460
+ if (Bt) return qr;
1461
+ Bt = 1;
1462
+ var r = /* @__PURE__ */ Yt(), e = Object.prototype.hasOwnProperty, t = Array.isArray, a = {
1463
1463
  allowDots: !1,
1464
1464
  allowEmptyArrays: !1,
1465
1465
  allowPrototypes: !1,
@@ -1481,85 +1481,85 @@ function Bn() {
1481
1481
  strictDepth: !1,
1482
1482
  strictNullHandling: !1,
1483
1483
  throwOnLimitExceeded: !1
1484
- }, s = function(S) {
1485
- return S.replace(/&#(\d+);/g, function(l, c) {
1486
- return String.fromCharCode(parseInt(c, 10));
1484
+ }, c = function(S) {
1485
+ return S.replace(/&#(\d+);/g, function(l, s) {
1486
+ return String.fromCharCode(parseInt(s, 10));
1487
1487
  });
1488
- }, y = function(S, l, c) {
1488
+ }, p = function(S, l, s) {
1489
1489
  if (S && typeof S == "string" && l.comma && S.indexOf(",") > -1)
1490
1490
  return S.split(",");
1491
- if (l.throwOnLimitExceeded && c >= l.arrayLimit)
1491
+ if (l.throwOnLimitExceeded && s >= l.arrayLimit)
1492
1492
  throw new RangeError("Array limit exceeded. Only " + l.arrayLimit + " element" + (l.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
1493
1493
  return S;
1494
- }, P = "utf8=%26%2310003%3B", h = "utf8=%E2%9C%93", E = function(l, c) {
1495
- var b = { __proto__: null }, i = c.ignoreQueryPrefix ? l.replace(/^\?/, "") : l;
1494
+ }, E = "utf8=%26%2310003%3B", h = "utf8=%E2%9C%93", O = function(l, s) {
1495
+ var b = { __proto__: null }, i = s.ignoreQueryPrefix ? l.replace(/^\?/, "") : l;
1496
1496
  i = i.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
1497
- var u = c.parameterLimit === 1 / 0 ? void 0 : c.parameterLimit, f = i.split(
1498
- c.delimiter,
1499
- c.throwOnLimitExceeded ? u + 1 : u
1497
+ var u = s.parameterLimit === 1 / 0 ? void 0 : s.parameterLimit, f = i.split(
1498
+ s.delimiter,
1499
+ s.throwOnLimitExceeded ? u + 1 : u
1500
1500
  );
1501
- if (c.throwOnLimitExceeded && f.length > u)
1501
+ if (s.throwOnLimitExceeded && f.length > u)
1502
1502
  throw new RangeError("Parameter limit exceeded. Only " + u + " parameter" + (u === 1 ? "" : "s") + " allowed.");
1503
- var g = -1, p, w = c.charset;
1504
- if (c.charsetSentinel)
1505
- for (p = 0; p < f.length; ++p)
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
- for (p = 0; p < f.length; ++p)
1508
- if (p !== g) {
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
- y(
1503
+ var v = -1, y, w = s.charset;
1504
+ if (s.charsetSentinel)
1505
+ for (y = 0; y < f.length; ++y)
1506
+ f[y].indexOf("utf8=") === 0 && (f[y] === h ? w = "utf-8" : f[y] === E && (w = "iso-8859-1"), v = y, y = f.length);
1507
+ for (y = 0; y < f.length; ++y)
1508
+ if (y !== v) {
1509
+ var A = f[y], P = A.indexOf("]="), R = P === -1 ? A.indexOf("=") : P + 1, q, T;
1510
+ R === -1 ? (q = s.decoder(A, a.decoder, w, "key"), T = s.strictNullHandling ? null : "") : (q = s.decoder(A.slice(0, R), a.decoder, w, "key"), T = r.maybeMap(
1511
+ p(
1512
1512
  A.slice(R + 1),
1513
- c,
1513
+ s,
1514
1514
  t(b[q]) ? b[q].length : 0
1515
1515
  ),
1516
1516
  function(I) {
1517
- return c.decoder(I, a.decoder, w, "value");
1517
+ return s.decoder(I, a.decoder, w, "value");
1518
1518
  }
1519
- )), T && c.interpretNumericEntities && w === "iso-8859-1" && (T = s(String(T))), A.indexOf("[]=") > -1 && (T = t(T) ? [T] : T);
1519
+ )), T && s.interpretNumericEntities && w === "iso-8859-1" && (T = c(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], T) : (!D || c.duplicates === "last") && (b[q] = T);
1521
+ D && s.duplicates === "combine" ? b[q] = r.combine(b[q], T) : (!D || s.duplicates === "last") && (b[q] = T);
1522
1522
  }
1523
1523
  return b;
1524
- }, m = function(S, l, c, b) {
1524
+ }, g = function(S, l, s, b) {
1525
1525
  var i = 0;
1526
1526
  if (S.length > 0 && S[S.length - 1] === "[]") {
1527
1527
  var u = S.slice(0, -1).join("");
1528
1528
  i = Array.isArray(l) && l[u] ? l[u].length : 0;
1529
1529
  }
1530
- for (var f = b ? l : y(l, c, i), g = S.length - 1; g >= 0; --g) {
1531
- var p, w = S[g];
1532
- if (w === "[]" && c.parseArrays)
1533
- p = c.allowEmptyArrays && (f === "" || c.strictNullHandling && f === null) ? [] : r.combine([], f);
1530
+ for (var f = b ? l : p(l, s, i), v = S.length - 1; v >= 0; --v) {
1531
+ var y, w = S[v];
1532
+ if (w === "[]" && s.parseArrays)
1533
+ y = s.allowEmptyArrays && (f === "" || s.strictNullHandling && f === null) ? [] : r.combine([], f);
1534
1534
  else {
1535
- p = c.plainObjects ? { __proto__: null } : {};
1536
- var A = w.charAt(0) === "[" && w.charAt(w.length - 1) === "]" ? w.slice(1, -1) : w, O = c.decodeDotInKeys ? A.replace(/%2E/g, ".") : A, R = parseInt(O, 10);
1537
- !c.parseArrays && O === "" ? p = { 0: f } : !isNaN(R) && w !== O && String(R) === O && R >= 0 && c.parseArrays && R <= c.arrayLimit ? (p = [], p[R] = f) : O !== "__proto__" && (p[O] = f);
1535
+ y = s.plainObjects ? { __proto__: null } : {};
1536
+ var A = w.charAt(0) === "[" && w.charAt(w.length - 1) === "]" ? w.slice(1, -1) : w, P = s.decodeDotInKeys ? A.replace(/%2E/g, ".") : A, R = parseInt(P, 10);
1537
+ !s.parseArrays && P === "" ? y = { 0: f } : !isNaN(R) && w !== P && String(R) === P && R >= 0 && s.parseArrays && R <= s.arrayLimit ? (y = [], y[R] = f) : P !== "__proto__" && (y[P] = f);
1538
1538
  }
1539
- f = p;
1539
+ f = y;
1540
1540
  }
1541
1541
  return f;
1542
- }, d = function(l, c, b, i) {
1542
+ }, d = function(l, s, b, i) {
1543
1543
  if (l) {
1544
- var u = b.allowDots ? l.replace(/\.([^.[]+)/g, "[$1]") : l, f = /(\[[^[\]]*])/, g = /(\[[^[\]]*])/g, p = b.depth > 0 && f.exec(u), w = p ? u.slice(0, p.index) : u, A = [];
1544
+ var u = b.allowDots ? l.replace(/\.([^.[]+)/g, "[$1]") : l, f = /(\[[^[\]]*])/, v = /(\[[^[\]]*])/g, y = b.depth > 0 && f.exec(u), w = y ? u.slice(0, y.index) : u, A = [];
1545
1545
  if (w) {
1546
1546
  if (!b.plainObjects && e.call(Object.prototype, w) && !b.allowPrototypes)
1547
1547
  return;
1548
1548
  A.push(w);
1549
1549
  }
1550
- for (var O = 0; b.depth > 0 && (p = g.exec(u)) !== null && O < b.depth; ) {
1551
- if (O += 1, !b.plainObjects && e.call(Object.prototype, p[1].slice(1, -1)) && !b.allowPrototypes)
1550
+ for (var P = 0; b.depth > 0 && (y = v.exec(u)) !== null && P < b.depth; ) {
1551
+ if (P += 1, !b.plainObjects && e.call(Object.prototype, y[1].slice(1, -1)) && !b.allowPrototypes)
1552
1552
  return;
1553
- A.push(p[1]);
1553
+ A.push(y[1]);
1554
1554
  }
1555
- if (p) {
1555
+ if (y) {
1556
1556
  if (b.strictDepth === !0)
1557
1557
  throw new RangeError("Input depth exceeded depth option of " + b.depth + " and strictDepth is true");
1558
- A.push("[" + u.slice(p.index) + "]");
1558
+ A.push("[" + u.slice(y.index) + "]");
1559
1559
  }
1560
- return m(A, c, b, i);
1560
+ return g(A, s, b, i);
1561
1561
  }
1562
- }, v = function(l) {
1562
+ }, m = function(l) {
1563
1563
  if (!l)
1564
1564
  return a;
1565
1565
  if (typeof l.allowEmptyArrays < "u" && typeof l.allowEmptyArrays != "boolean")
@@ -1572,7 +1572,7 @@ function Bn() {
1572
1572
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
1573
1573
  if (typeof l.throwOnLimitExceeded < "u" && typeof l.throwOnLimitExceeded != "boolean")
1574
1574
  throw new TypeError("`throwOnLimitExceeded` option must be a boolean");
1575
- var c = typeof l.charset > "u" ? a.charset : l.charset, b = typeof l.duplicates > "u" ? a.duplicates : l.duplicates;
1575
+ var s = typeof l.charset > "u" ? a.charset : l.charset, b = typeof l.duplicates > "u" ? a.duplicates : l.duplicates;
1576
1576
  if (b !== "combine" && b !== "first" && b !== "last")
1577
1577
  throw new TypeError("The duplicates option must be either combine, first, or last");
1578
1578
  var i = typeof l.allowDots > "u" ? l.decodeDotInKeys === !0 ? !0 : a.allowDots : !!l.allowDots;
@@ -1582,7 +1582,7 @@ function Bn() {
1582
1582
  allowPrototypes: typeof l.allowPrototypes == "boolean" ? l.allowPrototypes : a.allowPrototypes,
1583
1583
  allowSparse: typeof l.allowSparse == "boolean" ? l.allowSparse : a.allowSparse,
1584
1584
  arrayLimit: typeof l.arrayLimit == "number" ? l.arrayLimit : a.arrayLimit,
1585
- charset: c,
1585
+ charset: s,
1586
1586
  charsetSentinel: typeof l.charsetSentinel == "boolean" ? l.charsetSentinel : a.charsetSentinel,
1587
1587
  comma: typeof l.comma == "boolean" ? l.comma : a.comma,
1588
1588
  decodeDotInKeys: typeof l.decodeDotInKeys == "boolean" ? l.decodeDotInKeys : a.decodeDotInKeys,
@@ -1601,30 +1601,30 @@ function Bn() {
1601
1601
  throwOnLimitExceeded: typeof l.throwOnLimitExceeded == "boolean" ? l.throwOnLimitExceeded : !1
1602
1602
  };
1603
1603
  };
1604
- return xr = function(S, l) {
1605
- var c = v(l);
1604
+ return qr = function(S, l) {
1605
+ var s = m(l);
1606
1606
  if (S === "" || S === null || typeof S > "u")
1607
- return c.plainObjects ? { __proto__: null } : {};
1608
- for (var b = typeof S == "string" ? E(S, c) : S, i = c.plainObjects ? { __proto__: null } : {}, u = Object.keys(b), f = 0; f < u.length; ++f) {
1609
- var g = u[f], p = d(g, b[g], c, typeof S == "string");
1610
- i = r.merge(i, p, c);
1607
+ return s.plainObjects ? { __proto__: null } : {};
1608
+ for (var b = typeof S == "string" ? O(S, s) : S, i = s.plainObjects ? { __proto__: null } : {}, u = Object.keys(b), f = 0; f < u.length; ++f) {
1609
+ var v = u[f], y = d(v, b[v], s, typeof S == "string");
1610
+ i = r.merge(i, y, s);
1611
1611
  }
1612
- return c.allowSparse === !0 ? i : r.compact(i);
1613
- }, xr;
1612
+ return s.allowSparse === !0 ? i : r.compact(i);
1613
+ }, qr;
1614
1614
  }
1615
- var qr, Ut;
1616
- function Gn() {
1617
- if (Ut) return qr;
1618
- Ut = 1;
1619
- var r = /* @__PURE__ */ Un(), e = /* @__PURE__ */ Bn(), t = /* @__PURE__ */ Mr();
1620
- return qr = {
1615
+ var Dr, Gt;
1616
+ function Ln() {
1617
+ if (Gt) return Dr;
1618
+ Gt = 1;
1619
+ var r = /* @__PURE__ */ Gn(), e = /* @__PURE__ */ Wn(), t = /* @__PURE__ */ Ur();
1620
+ return Dr = {
1621
1621
  formats: t,
1622
1622
  parse: e,
1623
1623
  stringify: r
1624
- }, qr;
1624
+ }, Dr;
1625
1625
  }
1626
- var Wn = /* @__PURE__ */ Gn();
1627
- const he = /* @__PURE__ */ un(Wn), G = {
1626
+ var zn = /* @__PURE__ */ Ln();
1627
+ const he = /* @__PURE__ */ ln(zn), G = {
1628
1628
  token: "/lxwork/api/auth/token",
1629
1629
  permissionTicket: "/lxwork/api/auth/create-permission-ticket",
1630
1630
  authToken: "/sso/realms/myrealm/protocol/openid-connect/token",
@@ -1634,43 +1634,66 @@ const he = /* @__PURE__ */ un(Wn), G = {
1634
1634
  allCompany: "/lxwork/api/auth/groups/branch",
1635
1635
  userinfo: "/lxwork/api/auth/userinfo",
1636
1636
  user: "/lxwork/api/auth/users"
1637
- };
1638
- let Dr = 0;
1639
- async function U(r, e, t) {
1640
- const a = await fetch((r.baseURL || "") + e, {
1637
+ }, xe = /* @__PURE__ */ new WeakMap();
1638
+ function jn(r) {
1639
+ const e = xe.get(r);
1640
+ if (e)
1641
+ return e;
1642
+ r.removeToken();
1643
+ let t;
1644
+ return t = r.SSOLogin().then(() => {
1645
+ }).finally(() => {
1646
+ xe.get(r) === t && xe.delete(r);
1647
+ }), xe.set(r, t), t;
1648
+ }
1649
+ async function U(r, e, t, a = {}) {
1650
+ const c = await fetch((r.baseURL || "") + e, {
1641
1651
  headers: {
1642
1652
  "Content-Type": "application/json",
1643
1653
  Authorization: "Bearer " + (r.token || r.getToken())
1644
1654
  },
1645
1655
  ...t || {}
1646
1656
  });
1647
- if (!a.ok) {
1648
- if (console.dir(a, await a.json()), a.status === 401) {
1657
+ if (!c.ok) {
1658
+ if (console.dir(c, await c.json()), c.status === 401) {
1649
1659
  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);
1660
+ throw new Error(`HTTP error! status: ${c.status}`);
1661
+ if (a.retryUnauthorized !== !1 && !a.hasRetriedUnauthorized)
1662
+ return await jn(r), await U(r, e, t, {
1663
+ ...a,
1664
+ hasRetriedUnauthorized: !0
1665
+ });
1653
1666
  }
1654
- throw new Error(`HTTP error! status: ${a.status}`);
1667
+ throw new Error(`HTTP error! status: ${c.status}`);
1655
1668
  }
1656
- return Dr = 0, await a.json();
1669
+ return await c.json();
1657
1670
  }
1658
1671
  const ie = (r) => ({
1659
- getTokenInfo: (e) => U(r, `${G.token}?${he.stringify(e)}`),
1660
- createPermissionTicket: (e) => U(r, `${G.permissionTicket}`, {
1661
- method: "POST",
1662
- body: JSON.stringify(e)
1663
- }),
1672
+ getTokenInfo: (e) => U(r, `${G.token}?${he.stringify(e)}`, void 0, { retryUnauthorized: !1 }),
1673
+ createPermissionTicket: (e) => U(
1674
+ r,
1675
+ `${G.permissionTicket}`,
1676
+ {
1677
+ method: "POST",
1678
+ body: JSON.stringify(e)
1679
+ },
1680
+ { retryUnauthorized: !1 }
1681
+ ),
1664
1682
  getAuthTokenInfo: (e) => {
1665
1683
  const t = new URLSearchParams();
1666
- return t.append("grant_type", e.grant_type), t.append("ticket", e.ticket), U(r, `${G.authToken}`, {
1667
- method: "POST",
1668
- body: t,
1669
- headers: {
1670
- "Content-Type": "application/x-www-form-urlencoded",
1671
- Authorization: "Bearer " + r.getToken()
1672
- }
1673
- });
1684
+ return t.append("grant_type", e.grant_type), t.append("ticket", e.ticket), U(
1685
+ r,
1686
+ `${G.authToken}`,
1687
+ {
1688
+ method: "POST",
1689
+ body: t,
1690
+ headers: {
1691
+ "Content-Type": "application/x-www-form-urlencoded",
1692
+ Authorization: "Bearer " + r.getToken()
1693
+ }
1694
+ },
1695
+ { retryUnauthorized: !1 }
1696
+ );
1674
1697
  },
1675
1698
  refreshAuthToken: (e) => U(r, `${G.refreshToken}`, {
1676
1699
  headers: {
@@ -1785,40 +1808,44 @@ const ie = (r) => ({
1785
1808
  method: "GET"
1786
1809
  })
1787
1810
  });
1788
- function Bt(r) {
1811
+ function Wt(r) {
1789
1812
  try {
1790
- const t = new URL(r).hostname, a = /^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/, s = /^\[?([a-fA-F0-9]{1,4}:){7}[a-fA-F0-9]{1,4}\]?$/;
1791
- return !!(a.test(t) || s.test(t));
1813
+ const t = new URL(r).hostname, a = /^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/, c = /^\[?([a-fA-F0-9]{1,4}:){7}[a-fA-F0-9]{1,4}\]?$/;
1814
+ return !!(a.test(t) || c.test(t));
1792
1815
  } catch {
1793
1816
  return !1;
1794
1817
  }
1795
1818
  }
1796
- function Ln(r) {
1819
+ function Hn(r) {
1797
1820
  const e = {};
1798
- return new URL(r).searchParams.forEach((a, s) => {
1799
- e[s] = a;
1821
+ return new URL(r).searchParams.forEach((a, c) => {
1822
+ e[c] = a;
1800
1823
  }), e;
1801
1824
  }
1802
- function Vn(r, e) {
1825
+ function Xn(r, e) {
1803
1826
  const t = r.indexOf(e);
1804
1827
  return t !== -1 ? r.substring(0, t) : r;
1805
1828
  }
1806
- function Hn(r) {
1807
- const e = window.location.href, t = new URL(e), a = new URLSearchParams(t.search);
1808
- r.forEach((s) => {
1809
- a.delete(s);
1810
- }), t.search = a.toString(), window.history.pushState({}, "", t.href);
1829
+ function Kn(r) {
1830
+ const e = window.location.href, t = Cr(e, r);
1831
+ window.history.replaceState({}, "", t);
1832
+ }
1833
+ function Cr(r, e) {
1834
+ const t = new URL(r);
1835
+ return e.forEach((a) => {
1836
+ t.searchParams.delete(a);
1837
+ }), t.href;
1811
1838
  }
1812
1839
  class Te extends Error {
1813
1840
  }
1814
1841
  Te.prototype.name = "InvalidTokenError";
1815
- function jn(r) {
1842
+ function Qn(r) {
1816
1843
  return decodeURIComponent(atob(r).replace(/(.)/g, (e, t) => {
1817
1844
  let a = t.charCodeAt(0).toString(16).toUpperCase();
1818
1845
  return a.length < 2 && (a = "0" + a), "%" + a;
1819
1846
  }));
1820
1847
  }
1821
- function zn(r) {
1848
+ function Vn(r) {
1822
1849
  let e = r.replace(/-/g, "+").replace(/_/g, "/");
1823
1850
  switch (e.length % 4) {
1824
1851
  case 0:
@@ -1833,43 +1860,44 @@ function zn(r) {
1833
1860
  throw new Error("base64 string is not of the correct length");
1834
1861
  }
1835
1862
  try {
1836
- return jn(e);
1863
+ return Qn(e);
1837
1864
  } catch {
1838
1865
  return atob(e);
1839
1866
  }
1840
1867
  }
1841
- function Kn(r, e) {
1868
+ function Jn(r, e) {
1842
1869
  if (typeof r != "string")
1843
1870
  throw new Te("Invalid token specified: must be a string");
1844
1871
  e || (e = {});
1845
1872
  const t = e.header === !0 ? 0 : 1, a = r.split(".")[t];
1846
1873
  if (typeof a != "string")
1847
1874
  throw new Te(`Invalid token specified: missing part #${t + 1}`);
1848
- let s;
1875
+ let c;
1849
1876
  try {
1850
- s = zn(a);
1851
- } catch (y) {
1852
- throw new Te(`Invalid token specified: invalid base64 for part #${t + 1} (${y.message})`);
1877
+ c = Vn(a);
1878
+ } catch (p) {
1879
+ throw new Te(`Invalid token specified: invalid base64 for part #${t + 1} (${p.message})`);
1853
1880
  }
1854
1881
  try {
1855
- return JSON.parse(s);
1856
- } catch (y) {
1857
- throw new Te(`Invalid token specified: invalid json for part #${t + 1} (${y.message})`);
1882
+ return JSON.parse(c);
1883
+ } catch (p) {
1884
+ throw new Te(`Invalid token specified: invalid json for part #${t + 1} (${p.message})`);
1858
1885
  }
1859
1886
  }
1860
- class Jn {
1887
+ const Fr = ["state", "code", "iss", "session_state"];
1888
+ class Zn {
1861
1889
  /**
1862
1890
  * 构造函数,初始化SSO认证实例
1863
1891
  * @param {AuthLoginType} config - 认证配置
1864
1892
  * @param {string} config.APPID - 应用唯一标识
1865
1893
  */
1866
- constructor({ APPID: e, dev: t, baseURL: a, token: s }) {
1894
+ constructor({ APPID: e, dev: t, baseURL: a, token: c }) {
1867
1895
  me(this, "APPID");
1868
1896
  me(this, "dev");
1869
1897
  me(this, "baseURL");
1870
1898
  me(this, "token");
1871
1899
  me(this, "storage");
1872
- this.APPID = e, this.storage = new an(e), this.dev = t || !1, this.baseURL = a || "", this.token = s || "";
1900
+ this.APPID = e, this.storage = new fn(e), this.dev = t || !1, this.baseURL = a || "", this.token = c || "";
1873
1901
  }
1874
1902
  /**
1875
1903
  * 执行单点登录流程
@@ -1882,33 +1910,26 @@ class Jn {
1882
1910
  * @throws {Error} 当SSO流程失败时抛出异常
1883
1911
  */
1884
1912
  async SSOLogin() {
1885
- const e = Ln(location.href), t = ["state", "code", "iss", "session_state"], a = t.length;
1886
- if (Object.keys(e).length !== a)
1913
+ const e = Hn(location.href), t = Fr;
1914
+ if (!t.every((O) => Object.prototype.hasOwnProperty.call(e, O)))
1887
1915
  return this.login(), new Promise(() => {
1888
1916
  });
1889
- let s = [], y = 0;
1890
- for (; y < a; )
1891
- Object.keys(e).includes(t[y]) && s.length <= a ? s.push(t[y]) : s = [], y++;
1892
- if (s.length === a) {
1893
- this.removeToken();
1894
- let P;
1895
- const h = this.storage.getItem("login_redirect_uri"), { code: E, state: m } = e;
1896
- try {
1897
- P = await ie(this).getTokenInfo({
1898
- code: E,
1899
- client_id: this.APPID,
1900
- state: m,
1901
- redirect_uri: h
1902
- }), this.setToken(P);
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 });
1904
- this.setToken(v, "auth"), Hn(t);
1905
- } catch {
1906
- return this.removeToken(), window.location.href = h, new Promise(() => {
1907
- });
1908
- }
1909
- } else
1910
- return this.login(), new Promise(() => {
1917
+ this.removeToken();
1918
+ let c;
1919
+ const p = this.storage.getItem("login_redirect_uri"), { code: E, state: h } = e;
1920
+ try {
1921
+ c = await ie(this).getTokenInfo({
1922
+ code: E,
1923
+ client_id: this.APPID,
1924
+ state: h,
1925
+ redirect_uri: p
1926
+ }), this.setToken(c);
1927
+ const { ticket: O } = await ie(this).createPermissionTicket({ client_id: this.APPID }), g = await ie(this).getAuthTokenInfo({ grant_type: "urn:ietf:params:oauth:grant-type:uma-ticket", ticket: O });
1928
+ this.setToken(g, "auth"), Kn(t);
1929
+ } catch {
1930
+ return this.removeToken(), window.location.href = p, new Promise(() => {
1911
1931
  });
1932
+ }
1912
1933
  }
1913
1934
  /**
1914
1935
  * 跳转到登录页面
@@ -1917,14 +1938,14 @@ class Jn {
1917
1938
  * - 构建Keycloak登录URL并跳转
1918
1939
  */
1919
1940
  login() {
1920
- const { href: e, origin: t } = window.location, a = {
1921
- redirect_uri: e,
1941
+ const { href: e, origin: t } = window.location, c = {
1942
+ redirect_uri: Cr(e, Fr),
1922
1943
  client_id: this.APPID,
1923
1944
  scope: "openid"
1924
1945
  };
1925
- this.storage.setItem("login_redirect_uri", a.redirect_uri), Bt(t) && !this.dev && (a.keycloak_host = t + "/sso/");
1926
- let s = `/lxwork/api/auth/login?${he.stringify(a)}`;
1927
- window.location.replace(s);
1946
+ this.storage.setItem("login_redirect_uri", c.redirect_uri), Wt(t) && !this.dev && (c.keycloak_host = t + "/sso/");
1947
+ let p = `/lxwork/api/auth/login?${he.stringify(c)}`;
1948
+ window.location.replace(p);
1928
1949
  }
1929
1950
  /**
1930
1951
  * 执行登出操作
@@ -1933,18 +1954,18 @@ class Jn {
1933
1954
  * - 跳转到Keycloak登出页面
1934
1955
  */
1935
1956
  logout() {
1936
- const { href: e, origin: t } = window.location, { id_token: a } = this.getTokenInfo() || {};
1957
+ const { href: e, origin: t } = window.location, { id_token: a } = this.getTokenInfo() || {}, c = Cr(e, Fr);
1937
1958
  if (this.storage.removeItem("login_redirect_uri"), !a) {
1938
1959
  this.login();
1939
1960
  return;
1940
1961
  }
1941
- const s = {
1962
+ const p = {
1942
1963
  id_token_hint: a,
1943
- post_logout_redirect_uri: e
1964
+ post_logout_redirect_uri: c
1944
1965
  };
1945
- Bt(t) && !this.dev && (s.keycloak_host = t + "/sso/");
1946
- let y = `/lxwork/api/auth/endsession?${he.stringify(s)}`;
1947
- this.removeToken(), window.location.href = y;
1966
+ Wt(t) && !this.dev && (p.keycloak_host = t + "/sso/");
1967
+ let E = `/lxwork/api/auth/endsession?${he.stringify(p)}`;
1968
+ this.removeToken(), window.location.href = E;
1948
1969
  }
1949
1970
  /**
1950
1971
  * 设置Token信息
@@ -1984,23 +2005,23 @@ class Jn {
1984
2005
  * @returns {Promise<string>} 分公司名称,未找到则返回空字符串
1985
2006
  */
1986
2007
  async getUserBranchGroup() {
1987
- const e = await ie(this).getUserGroupList(), t = e.find((y) => y.attributes.type.includes("3"));
2008
+ const e = await ie(this).getUserGroupList(), t = e.find((p) => p.attributes.type.includes("3"));
1988
2009
  if (t)
1989
2010
  return t.name;
1990
- const a = async (y) => {
1991
- if (y.attributes.type.includes("3"))
1992
- return y.name;
1993
- if (y.parentId) {
1994
- const P = await ie(this).getGroupDetail({ id: y.parentId });
1995
- if (P)
1996
- return a(P);
2011
+ const a = async (p) => {
2012
+ if (p.attributes.type.includes("3"))
2013
+ return p.name;
2014
+ if (p.parentId) {
2015
+ const E = await ie(this).getGroupDetail({ id: p.parentId });
2016
+ if (E)
2017
+ return a(E);
1997
2018
  }
1998
2019
  return "";
1999
2020
  };
2000
- let s = "";
2001
- for (let y = 0; y < e.length && (s = await a(e[y]), !s); y += 1)
2021
+ let c = "";
2022
+ for (let p = 0; p < e.length && (c = await a(e[p]), !c); p += 1)
2002
2023
  ;
2003
- return s;
2024
+ return c;
2004
2025
  }
2005
2026
  /**
2006
2027
  * 根据groupId获取所属分公司信息
@@ -2012,16 +2033,16 @@ class Jn {
2012
2033
  const t = await ie(this).getGroupDetail({ id: e.groupId });
2013
2034
  if (t.attributes.type.includes("3"))
2014
2035
  return t;
2015
- const a = async (s) => {
2016
- const y = s.attributes.type[0] || 0;
2017
- if (Number(y) === 3)
2018
- return s;
2019
- if (Number(y) === 1)
2036
+ const a = async (c) => {
2037
+ const p = c.attributes.type[0] || 0;
2038
+ if (Number(p) === 3)
2039
+ return c;
2040
+ if (Number(p) === 1)
2020
2041
  return t;
2021
- if (s.parentId) {
2022
- const P = await ie(this).getGroupDetail({ id: s.parentId });
2023
- if (P)
2024
- return a(P);
2042
+ if (c.parentId) {
2043
+ const E = await ie(this).getGroupDetail({ id: c.parentId });
2044
+ if (E)
2045
+ return a(E);
2025
2046
  }
2026
2047
  return t;
2027
2048
  };
@@ -2036,8 +2057,8 @@ class Jn {
2036
2057
  async refreshToken(e) {
2037
2058
  const { exp: t } = this.getDecodeToken(), a = Date.now() / 1e3;
2038
2059
  if (e || a > t - 200 && a < t) {
2039
- const s = await ie(this).refreshAuthToken();
2040
- this.setToken(s), this.setToken(s, "auth");
2060
+ const c = await ie(this).refreshAuthToken();
2061
+ this.setToken(c), this.setToken(c, "auth");
2041
2062
  }
2042
2063
  }
2043
2064
  /**
@@ -2071,22 +2092,25 @@ class Jn {
2071
2092
  */
2072
2093
  getDecodeToken() {
2073
2094
  const e = this.getToken();
2074
- return Kn(e);
2095
+ return Jn(e);
2075
2096
  }
2076
2097
  /**
2077
2098
  * 清除所有Token
2078
2099
  * @throws {Error} APPID未初始化时抛出
2079
2100
  */
2080
2101
  removeToken() {
2081
- this.storage.removeItem("tokenInfo"), this.storage.removeItem("SSO-tokenInfo");
2102
+ Object.keys(localStorage).forEach((e) => {
2103
+ (e.endsWith("-SSO-tokenInfo") || e.endsWith("-tokenInfo")) && localStorage.removeItem(e);
2104
+ });
2082
2105
  }
2083
2106
  }
2084
2107
  export {
2085
- Jn as AuthLogin,
2086
- an as LocalStorageUtil,
2087
- Ln as getUrlParams,
2088
- Bt as isIpAddress,
2089
- Hn as removeUrlParam,
2090
- Vn as subBefore,
2108
+ Zn as AuthLogin,
2109
+ fn as LocalStorageUtil,
2110
+ Hn as getUrlParams,
2111
+ Wt as isIpAddress,
2112
+ Kn as removeUrlParam,
2113
+ Cr as removeUrlParams,
2114
+ Xn as subBefore,
2091
2115
  ie as useSSOApi
2092
2116
  };