@shlinkio/shlink-frontend-kit 0.4.2 → 0.5.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.js CHANGED
@@ -1,10 +1,10 @@
1
- import { jsx as y, jsxs as P, Fragment as Te } from "react/jsx-runtime";
2
- import { faCircleNotch as Ur, faSearch as Br, faEllipsisV as Lr, faSortAmountUp as Wr, faSortAmountDown as Gr } from "@fortawesome/free-solid-svg-icons";
3
- import { FontAwesomeIcon as we } from "@fortawesome/react-fontawesome";
4
- import { Row as vr, Card as We, CardHeader as Hr, CardBody as Vr, Dropdown as zr, DropdownToggle as hr, DropdownMenu as gr, NavItem as Qr, NavLink as qr, Nav as jr, UncontrolledDropdown as Jr, DropdownItem as Ae } from "reactstrap";
5
- import { useState as Oe, useCallback as ne, useRef as ve, useMemo as Yr, Children as Kr, isValidElement as Xr } from "react";
6
- import { useLocation as Zr, NavLink as et } from "react-router-dom";
7
- function Sr(r) {
1
+ import { jsx as y, jsxs as P, Fragment as Be } from "react/jsx-runtime";
2
+ import { faCircleNotch as nt, faSearch as at, faEllipsisV as ot, faSortAmountUp as it, faSortAmountDown as lt } from "@fortawesome/free-solid-svg-icons";
3
+ import { FontAwesomeIcon as Pe } from "@fortawesome/react-fontawesome";
4
+ import { Row as Fr, Card as Ke, CardHeader as ct, CardBody as ft, Dropdown as ut, DropdownToggle as Nr, DropdownMenu as _r, NavItem as st, NavLink as pt, Nav as yt, UncontrolledDropdown as dt, DropdownItem as Fe } from "reactstrap";
5
+ import { useState as Ie, useCallback as oe, useRef as Se, useMemo as mt, Children as vt, isValidElement as gt } from "react";
6
+ import { useLocation as ht, NavLink as bt } from "react-router-dom";
7
+ function Dr(r) {
8
8
  var e, t, n = "";
9
9
  if (typeof r == "string" || typeof r == "number")
10
10
  n += r;
@@ -12,83 +12,84 @@ function Sr(r) {
12
12
  if (Array.isArray(r)) {
13
13
  var o = r.length;
14
14
  for (e = 0; e < o; e++)
15
- r[e] && (t = Sr(r[e])) && (n && (n += " "), n += t);
15
+ r[e] && (t = Dr(r[e])) && (n && (n += " "), n += t);
16
16
  } else
17
17
  for (t in r)
18
18
  r[t] && (n && (n += " "), n += t);
19
19
  return n;
20
20
  }
21
- function E() {
21
+ function I() {
22
22
  for (var r, e, t = 0, n = "", o = arguments.length; t < o; t++)
23
- (r = arguments[t]) && (e = Sr(r)) && (n && (n += " "), n += e);
23
+ (r = arguments[t]) && (e = Dr(r)) && (n && (n += " "), n += e);
24
24
  return n;
25
25
  }
26
- const rt = (r) => ({
26
+ const St = (r) => ({
27
27
  error: "border-danger",
28
28
  default: ""
29
- })[r], tt = (r) => ({
29
+ })[r], wt = (r) => ({
30
30
  error: "text-danger",
31
31
  default: "text-muted"
32
- })[r], ba = ({ className: r, children: e, loading: t = !1, type: n = "default", fullWidth: o = !1 }) => {
33
- const a = E({
32
+ })[r], fo = ({ className: r, children: e, loading: t = !1, type: n = "default", fullWidth: o = !1 }) => {
33
+ const a = I({
34
34
  "col-md-12": o,
35
35
  "col-md-10 offset-md-1": !o
36
36
  });
37
- return /* @__PURE__ */ y(vr, { className: E("g-0", r), children: /* @__PURE__ */ y("div", { className: a, children: /* @__PURE__ */ y(We, { className: rt(n), body: !0, children: /* @__PURE__ */ P("h3", { className: E("text-center mb-0", tt(n)), children: [
38
- t && /* @__PURE__ */ y(we, { icon: Ur, spin: !0 }),
37
+ return /* @__PURE__ */ y(Fr, { className: I("g-0", r), children: /* @__PURE__ */ y("div", { className: a, children: /* @__PURE__ */ y(Ke, { className: St(n), body: !0, children: /* @__PURE__ */ P("h3", { className: I("text-center mb-0", wt(n)), children: [
38
+ t && /* @__PURE__ */ y(Pe, { icon: nt, spin: !0 }),
39
39
  t && /* @__PURE__ */ y("span", { className: "ms-2", children: e ?? "Loading..." }),
40
40
  !t && e
41
41
  ] }) }) }) });
42
- }, nt = ({ title: r, children: e, bodyClassName: t, ...n }) => /* @__PURE__ */ P(We, { ...n, children: [
43
- r && /* @__PURE__ */ y(Hr, { role: "heading", "aria-level": 4, children: r }),
44
- /* @__PURE__ */ y(Vr, { className: t, children: e })
45
- ] }), wa = ({ children: r, type: e, className: t, small: n = !1 }) => /* @__PURE__ */ y(vr, { className: t, children: /* @__PURE__ */ y("div", { className: E({ "col-md-10 offset-md-1": !n, "col-12": n }), children: /* @__PURE__ */ y(
46
- nt,
42
+ }, At = ({ title: r, children: e, bodyClassName: t, ...n }) => /* @__PURE__ */ P(Ke, { ...n, children: [
43
+ r && /* @__PURE__ */ y(ct, { role: "heading", "aria-level": 4, children: r }),
44
+ /* @__PURE__ */ y(ft, { className: t, children: e })
45
+ ] }), uo = ({ children: r, type: e, className: t, small: n = !1 }) => /* @__PURE__ */ y(Fr, { className: t, children: /* @__PURE__ */ y("div", { className: I({ "col-md-10 offset-md-1": !n, "col-12": n }), children: /* @__PURE__ */ y(
46
+ At,
47
47
  {
48
48
  role: "document",
49
- className: E("text-center", {
49
+ className: I("text-center", {
50
50
  "bg-main": e === "success",
51
51
  "bg-danger": e === "error",
52
52
  "bg-warning": e === "warning",
53
53
  "text-white": e !== "warning"
54
54
  }),
55
- bodyClassName: E({ "p-2": n }),
55
+ bodyClassName: I({ "p-2": n }),
56
56
  children: r
57
57
  }
58
58
  ) }) });
59
- let ue;
60
- const at = new Uint8Array(16);
61
- function ot() {
62
- if (!ue && (ue = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !ue))
59
+ let ye;
60
+ const Ot = new Uint8Array(16);
61
+ function Et() {
62
+ if (!ye && (ye = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !ye))
63
63
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
64
- return ue(at);
64
+ return ye(Ot);
65
65
  }
66
- const b = [];
66
+ const w = [];
67
67
  for (let r = 0; r < 256; ++r)
68
- b.push((r + 256).toString(16).slice(1));
69
- function it(r, e = 0) {
70
- return b[r[e + 0]] + b[r[e + 1]] + b[r[e + 2]] + b[r[e + 3]] + "-" + b[r[e + 4]] + b[r[e + 5]] + "-" + b[r[e + 6]] + b[r[e + 7]] + "-" + b[r[e + 8]] + b[r[e + 9]] + "-" + b[r[e + 10]] + b[r[e + 11]] + b[r[e + 12]] + b[r[e + 13]] + b[r[e + 14]] + b[r[e + 15]];
68
+ w.push((r + 256).toString(16).slice(1));
69
+ function Pt(r, e = 0) {
70
+ return w[r[e + 0]] + w[r[e + 1]] + w[r[e + 2]] + w[r[e + 3]] + "-" + w[r[e + 4]] + w[r[e + 5]] + "-" + w[r[e + 6]] + w[r[e + 7]] + "-" + w[r[e + 8]] + w[r[e + 9]] + "-" + w[r[e + 10]] + w[r[e + 11]] + w[r[e + 12]] + w[r[e + 13]] + w[r[e + 14]] + w[r[e + 15]];
71
71
  }
72
- const lt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Ye = {
73
- randomUUID: lt
72
+ const It = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), nr = {
73
+ randomUUID: It
74
74
  };
75
- function ct(r, e, t) {
76
- if (Ye.randomUUID && !e && !r)
77
- return Ye.randomUUID();
75
+ function $t(r, e, t) {
76
+ if (nr.randomUUID && !e && !r)
77
+ return nr.randomUUID();
78
78
  r = r || {};
79
- const n = r.random || (r.rng || ot)();
79
+ const n = r.random || (r.rng || Et)();
80
80
  if (n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, e) {
81
81
  t = t || 0;
82
82
  for (let o = 0; o < 16; ++o)
83
83
  e[t + o] = n[o];
84
84
  return e;
85
85
  }
86
- return it(n);
86
+ return Pt(n);
87
87
  }
88
- function ft(r) {
88
+ var xt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
89
+ function Ft(r) {
89
90
  return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
90
91
  }
91
- function ut(r) {
92
+ function Nt(r) {
92
93
  if (r.__esModule)
93
94
  return r;
94
95
  var e = r.default;
@@ -109,7 +110,7 @@ function ut(r) {
109
110
  });
110
111
  }), t;
111
112
  }
112
- var pt = function() {
113
+ var _t = Error, Dt = EvalError, Rt = RangeError, Tt = ReferenceError, Rr = SyntaxError, fe = TypeError, Ct = URIError, Mt = function() {
113
114
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
114
115
  return !1;
115
116
  if (typeof Symbol.iterator == "symbol")
@@ -127,151 +128,166 @@ var pt = function() {
127
128
  if (a.length !== 1 || a[0] !== t || !Object.prototype.propertyIsEnumerable.call(e, t))
128
129
  return !1;
129
130
  if (typeof Object.getOwnPropertyDescriptor == "function") {
130
- var l = Object.getOwnPropertyDescriptor(e, t);
131
- if (l.value !== o || l.enumerable !== !0)
131
+ var i = Object.getOwnPropertyDescriptor(e, t);
132
+ if (i.value !== o || i.enumerable !== !0)
132
133
  return !1;
133
134
  }
134
135
  return !0;
135
- }, Ke = typeof Symbol < "u" && Symbol, st = pt, yt = function() {
136
- return typeof Ke != "function" || typeof Symbol != "function" || typeof Ke("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : st();
137
- }, Xe = {
136
+ }, ar = typeof Symbol < "u" && Symbol, kt = Mt, Ut = function() {
137
+ return typeof ar != "function" || typeof Symbol != "function" || typeof ar("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : kt();
138
+ }, or = {
138
139
  foo: {}
139
- }, dt = Object, mt = function() {
140
- return { __proto__: Xe }.foo === Xe.foo && !({ __proto__: null } instanceof dt);
141
- }, vt = "Function.prototype.bind called on incompatible ", Pe = Array.prototype.slice, ht = Object.prototype.toString, gt = "[object Function]", St = function(e) {
140
+ }, Lt = Object, Bt = function() {
141
+ return { __proto__: or }.foo === or.foo && !({ __proto__: null } instanceof Lt);
142
+ }, Wt = "Function.prototype.bind called on incompatible ", Gt = Object.prototype.toString, Ht = Math.max, Vt = "[object Function]", ir = function(e, t) {
143
+ for (var n = [], o = 0; o < e.length; o += 1)
144
+ n[o] = e[o];
145
+ for (var a = 0; a < t.length; a += 1)
146
+ n[a + e.length] = t[a];
147
+ return n;
148
+ }, qt = function(e, t) {
149
+ for (var n = [], o = t || 0, a = 0; o < e.length; o += 1, a += 1)
150
+ n[a] = e[o];
151
+ return n;
152
+ }, zt = function(r, e) {
153
+ for (var t = "", n = 0; n < r.length; n += 1)
154
+ t += r[n], n + 1 < r.length && (t += e);
155
+ return t;
156
+ }, Qt = function(e) {
142
157
  var t = this;
143
- if (typeof t != "function" || ht.call(t) !== gt)
144
- throw new TypeError(vt + t);
145
- for (var n = Pe.call(arguments, 1), o, a = function() {
158
+ if (typeof t != "function" || Gt.apply(t) !== Vt)
159
+ throw new TypeError(Wt + t);
160
+ for (var n = qt(arguments, 1), o, a = function() {
146
161
  if (this instanceof o) {
147
162
  var u = t.apply(
148
163
  this,
149
- n.concat(Pe.call(arguments))
164
+ ir(n, arguments)
150
165
  );
151
166
  return Object(u) === u ? u : this;
152
- } else
153
- return t.apply(
154
- e,
155
- n.concat(Pe.call(arguments))
156
- );
157
- }, l = Math.max(0, t.length - n.length), i = [], c = 0; c < l; c++)
158
- i.push("$" + c);
159
- if (o = Function("binder", "return function (" + i.join(",") + "){ return binder.apply(this,arguments); }")(a), t.prototype) {
167
+ }
168
+ return t.apply(
169
+ e,
170
+ ir(n, arguments)
171
+ );
172
+ }, i = Ht(0, t.length - n.length), l = [], c = 0; c < i; c++)
173
+ l[c] = "$" + c;
174
+ if (o = Function("binder", "return function (" + zt(l, ",") + "){ return binder.apply(this,arguments); }")(a), t.prototype) {
160
175
  var f = function() {
161
176
  };
162
177
  f.prototype = t.prototype, o.prototype = new f(), f.prototype = null;
163
178
  }
164
179
  return o;
165
- }, bt = St, Ge = Function.prototype.bind || bt, wt = Ge, Ot = wt.call(Function.call, Object.prototype.hasOwnProperty), s, Y = SyntaxError, br = Function, J = TypeError, Ee = function(r) {
180
+ }, Kt = Qt, je = Function.prototype.bind || Kt, jt = Function.prototype.call, Jt = Object.prototype.hasOwnProperty, Yt = je, Xt = Yt.call(jt, Jt), p, Zt = _t, en = Dt, rn = Rt, tn = Tt, Y = Rr, J = fe, nn = Ct, Tr = Function, Ne = function(r) {
166
181
  try {
167
- return br('"use strict"; return (' + r + ").constructor;")();
182
+ return Tr('"use strict"; return (' + r + ").constructor;")();
168
183
  } catch {
169
184
  }
170
- }, L = Object.getOwnPropertyDescriptor;
171
- if (L)
185
+ }, H = Object.getOwnPropertyDescriptor;
186
+ if (H)
172
187
  try {
173
- L({}, "");
188
+ H({}, "");
174
189
  } catch {
175
- L = null;
190
+ H = null;
176
191
  }
177
- var xe = function() {
192
+ var _e = function() {
178
193
  throw new J();
179
- }, At = L ? function() {
194
+ }, an = H ? function() {
180
195
  try {
181
- return arguments.callee, xe;
196
+ return arguments.callee, _e;
182
197
  } catch {
183
198
  try {
184
- return L(arguments, "callee").get;
199
+ return H(arguments, "callee").get;
185
200
  } catch {
186
- return xe;
201
+ return _e;
187
202
  }
188
203
  }
189
- }() : xe, q = yt(), Pt = mt(), S = Object.getPrototypeOf || (Pt ? function(r) {
204
+ }() : _e, Q = Ut(), on = Bt(), S = Object.getPrototypeOf || (on ? function(r) {
190
205
  return r.__proto__;
191
- } : null), j = {}, Et = typeof Uint8Array > "u" || !S ? s : S(Uint8Array), W = {
192
- "%AggregateError%": typeof AggregateError > "u" ? s : AggregateError,
206
+ } : null), j = {}, ln = typeof Uint8Array > "u" || !S ? p : S(Uint8Array), V = {
207
+ __proto__: null,
208
+ "%AggregateError%": typeof AggregateError > "u" ? p : AggregateError,
193
209
  "%Array%": Array,
194
- "%ArrayBuffer%": typeof ArrayBuffer > "u" ? s : ArrayBuffer,
195
- "%ArrayIteratorPrototype%": q && S ? S([][Symbol.iterator]()) : s,
196
- "%AsyncFromSyncIteratorPrototype%": s,
210
+ "%ArrayBuffer%": typeof ArrayBuffer > "u" ? p : ArrayBuffer,
211
+ "%ArrayIteratorPrototype%": Q && S ? S([][Symbol.iterator]()) : p,
212
+ "%AsyncFromSyncIteratorPrototype%": p,
197
213
  "%AsyncFunction%": j,
198
214
  "%AsyncGenerator%": j,
199
215
  "%AsyncGeneratorFunction%": j,
200
216
  "%AsyncIteratorPrototype%": j,
201
- "%Atomics%": typeof Atomics > "u" ? s : Atomics,
202
- "%BigInt%": typeof BigInt > "u" ? s : BigInt,
203
- "%BigInt64Array%": typeof BigInt64Array > "u" ? s : BigInt64Array,
204
- "%BigUint64Array%": typeof BigUint64Array > "u" ? s : BigUint64Array,
217
+ "%Atomics%": typeof Atomics > "u" ? p : Atomics,
218
+ "%BigInt%": typeof BigInt > "u" ? p : BigInt,
219
+ "%BigInt64Array%": typeof BigInt64Array > "u" ? p : BigInt64Array,
220
+ "%BigUint64Array%": typeof BigUint64Array > "u" ? p : BigUint64Array,
205
221
  "%Boolean%": Boolean,
206
- "%DataView%": typeof DataView > "u" ? s : DataView,
222
+ "%DataView%": typeof DataView > "u" ? p : DataView,
207
223
  "%Date%": Date,
208
224
  "%decodeURI%": decodeURI,
209
225
  "%decodeURIComponent%": decodeURIComponent,
210
226
  "%encodeURI%": encodeURI,
211
227
  "%encodeURIComponent%": encodeURIComponent,
212
- "%Error%": Error,
228
+ "%Error%": Zt,
213
229
  "%eval%": eval,
214
230
  // eslint-disable-line no-eval
215
- "%EvalError%": EvalError,
216
- "%Float32Array%": typeof Float32Array > "u" ? s : Float32Array,
217
- "%Float64Array%": typeof Float64Array > "u" ? s : Float64Array,
218
- "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? s : FinalizationRegistry,
219
- "%Function%": br,
231
+ "%EvalError%": en,
232
+ "%Float32Array%": typeof Float32Array > "u" ? p : Float32Array,
233
+ "%Float64Array%": typeof Float64Array > "u" ? p : Float64Array,
234
+ "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? p : FinalizationRegistry,
235
+ "%Function%": Tr,
220
236
  "%GeneratorFunction%": j,
221
- "%Int8Array%": typeof Int8Array > "u" ? s : Int8Array,
222
- "%Int16Array%": typeof Int16Array > "u" ? s : Int16Array,
223
- "%Int32Array%": typeof Int32Array > "u" ? s : Int32Array,
237
+ "%Int8Array%": typeof Int8Array > "u" ? p : Int8Array,
238
+ "%Int16Array%": typeof Int16Array > "u" ? p : Int16Array,
239
+ "%Int32Array%": typeof Int32Array > "u" ? p : Int32Array,
224
240
  "%isFinite%": isFinite,
225
241
  "%isNaN%": isNaN,
226
- "%IteratorPrototype%": q && S ? S(S([][Symbol.iterator]())) : s,
227
- "%JSON%": typeof JSON == "object" ? JSON : s,
228
- "%Map%": typeof Map > "u" ? s : Map,
229
- "%MapIteratorPrototype%": typeof Map > "u" || !q || !S ? s : S((/* @__PURE__ */ new Map())[Symbol.iterator]()),
242
+ "%IteratorPrototype%": Q && S ? S(S([][Symbol.iterator]())) : p,
243
+ "%JSON%": typeof JSON == "object" ? JSON : p,
244
+ "%Map%": typeof Map > "u" ? p : Map,
245
+ "%MapIteratorPrototype%": typeof Map > "u" || !Q || !S ? p : S((/* @__PURE__ */ new Map())[Symbol.iterator]()),
230
246
  "%Math%": Math,
231
247
  "%Number%": Number,
232
248
  "%Object%": Object,
233
249
  "%parseFloat%": parseFloat,
234
250
  "%parseInt%": parseInt,
235
- "%Promise%": typeof Promise > "u" ? s : Promise,
236
- "%Proxy%": typeof Proxy > "u" ? s : Proxy,
237
- "%RangeError%": RangeError,
238
- "%ReferenceError%": ReferenceError,
239
- "%Reflect%": typeof Reflect > "u" ? s : Reflect,
251
+ "%Promise%": typeof Promise > "u" ? p : Promise,
252
+ "%Proxy%": typeof Proxy > "u" ? p : Proxy,
253
+ "%RangeError%": rn,
254
+ "%ReferenceError%": tn,
255
+ "%Reflect%": typeof Reflect > "u" ? p : Reflect,
240
256
  "%RegExp%": RegExp,
241
- "%Set%": typeof Set > "u" ? s : Set,
242
- "%SetIteratorPrototype%": typeof Set > "u" || !q || !S ? s : S((/* @__PURE__ */ new Set())[Symbol.iterator]()),
243
- "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? s : SharedArrayBuffer,
257
+ "%Set%": typeof Set > "u" ? p : Set,
258
+ "%SetIteratorPrototype%": typeof Set > "u" || !Q || !S ? p : S((/* @__PURE__ */ new Set())[Symbol.iterator]()),
259
+ "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? p : SharedArrayBuffer,
244
260
  "%String%": String,
245
- "%StringIteratorPrototype%": q && S ? S(""[Symbol.iterator]()) : s,
246
- "%Symbol%": q ? Symbol : s,
261
+ "%StringIteratorPrototype%": Q && S ? S(""[Symbol.iterator]()) : p,
262
+ "%Symbol%": Q ? Symbol : p,
247
263
  "%SyntaxError%": Y,
248
- "%ThrowTypeError%": At,
249
- "%TypedArray%": Et,
264
+ "%ThrowTypeError%": an,
265
+ "%TypedArray%": ln,
250
266
  "%TypeError%": J,
251
- "%Uint8Array%": typeof Uint8Array > "u" ? s : Uint8Array,
252
- "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? s : Uint8ClampedArray,
253
- "%Uint16Array%": typeof Uint16Array > "u" ? s : Uint16Array,
254
- "%Uint32Array%": typeof Uint32Array > "u" ? s : Uint32Array,
255
- "%URIError%": URIError,
256
- "%WeakMap%": typeof WeakMap > "u" ? s : WeakMap,
257
- "%WeakRef%": typeof WeakRef > "u" ? s : WeakRef,
258
- "%WeakSet%": typeof WeakSet > "u" ? s : WeakSet
267
+ "%Uint8Array%": typeof Uint8Array > "u" ? p : Uint8Array,
268
+ "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? p : Uint8ClampedArray,
269
+ "%Uint16Array%": typeof Uint16Array > "u" ? p : Uint16Array,
270
+ "%Uint32Array%": typeof Uint32Array > "u" ? p : Uint32Array,
271
+ "%URIError%": nn,
272
+ "%WeakMap%": typeof WeakMap > "u" ? p : WeakMap,
273
+ "%WeakRef%": typeof WeakRef > "u" ? p : WeakRef,
274
+ "%WeakSet%": typeof WeakSet > "u" ? p : WeakSet
259
275
  };
260
276
  if (S)
261
277
  try {
262
278
  null.error;
263
279
  } catch (r) {
264
- var xt = S(S(r));
265
- W["%Error.prototype%"] = xt;
280
+ var cn = S(S(r));
281
+ V["%Error.prototype%"] = cn;
266
282
  }
267
- var Nt = function r(e) {
283
+ var fn = function r(e) {
268
284
  var t;
269
285
  if (e === "%AsyncFunction%")
270
- t = Ee("async function () {}");
286
+ t = Ne("async function () {}");
271
287
  else if (e === "%GeneratorFunction%")
272
- t = Ee("function* () {}");
288
+ t = Ne("function* () {}");
273
289
  else if (e === "%AsyncGeneratorFunction%")
274
- t = Ee("async function* () {}");
290
+ t = Ne("async function* () {}");
275
291
  else if (e === "%AsyncGenerator%") {
276
292
  var n = r("%AsyncGeneratorFunction%");
277
293
  n && (t = n.prototype);
@@ -279,8 +295,9 @@ var Nt = function r(e) {
279
295
  var o = r("%AsyncGenerator%");
280
296
  o && S && (t = S(o.prototype));
281
297
  }
282
- return W[e] = t, t;
283
- }, Ze = {
298
+ return V[e] = t, t;
299
+ }, lr = {
300
+ __proto__: null,
284
301
  "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
285
302
  "%ArrayPrototype%": ["Array", "prototype"],
286
303
  "%ArrayProto_entries%": ["Array", "prototype", "entries"],
@@ -332,21 +349,21 @@ var Nt = function r(e) {
332
349
  "%URIErrorPrototype%": ["URIError", "prototype"],
333
350
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
334
351
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
335
- }, le = Ge, he = Ot, It = le.call(Function.call, Array.prototype.concat), Ft = le.call(Function.apply, Array.prototype.splice), er = le.call(Function.call, String.prototype.replace), ge = le.call(Function.call, String.prototype.slice), _t = le.call(Function.call, RegExp.prototype.exec), $t = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Rt = /\\(\\)?/g, Ct = function(e) {
336
- var t = ge(e, 0, 1), n = ge(e, -1);
352
+ }, ue = je, we = Xt, un = ue.call(Function.call, Array.prototype.concat), sn = ue.call(Function.apply, Array.prototype.splice), cr = ue.call(Function.call, String.prototype.replace), Ae = ue.call(Function.call, String.prototype.slice), pn = ue.call(Function.call, RegExp.prototype.exec), yn = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, dn = /\\(\\)?/g, mn = function(e) {
353
+ var t = Ae(e, 0, 1), n = Ae(e, -1);
337
354
  if (t === "%" && n !== "%")
338
355
  throw new Y("invalid intrinsic syntax, expected closing `%`");
339
356
  if (n === "%" && t !== "%")
340
357
  throw new Y("invalid intrinsic syntax, expected opening `%`");
341
358
  var o = [];
342
- return er(e, $t, function(a, l, i, c) {
343
- o[o.length] = i ? er(c, Rt, "$1") : l || a;
359
+ return cr(e, yn, function(a, i, l, c) {
360
+ o[o.length] = l ? cr(c, dn, "$1") : i || a;
344
361
  }), o;
345
- }, Tt = function(e, t) {
362
+ }, vn = function(e, t) {
346
363
  var n = e, o;
347
- if (he(Ze, n) && (o = Ze[n], n = "%" + o[0] + "%"), he(W, n)) {
348
- var a = W[n];
349
- if (a === j && (a = Nt(n)), typeof a > "u" && !t)
364
+ if (we(lr, n) && (o = lr[n], n = "%" + o[0] + "%"), we(V, n)) {
365
+ var a = V[n];
366
+ if (a === j && (a = fn(n)), typeof a > "u" && !t)
350
367
  throw new J("intrinsic " + e + " exists, but is not available. Please file an issue!");
351
368
  return {
352
369
  alias: o,
@@ -355,100 +372,173 @@ var Nt = function r(e) {
355
372
  };
356
373
  }
357
374
  throw new Y("intrinsic " + e + " does not exist!");
358
- }, He = function(e, t) {
375
+ }, ee = function(e, t) {
359
376
  if (typeof e != "string" || e.length === 0)
360
377
  throw new J("intrinsic name must be a non-empty string");
361
378
  if (arguments.length > 1 && typeof t != "boolean")
362
379
  throw new J('"allowMissing" argument must be a boolean');
363
- if (_t(/^%?[^%]*%?$/, e) === null)
380
+ if (pn(/^%?[^%]*%?$/, e) === null)
364
381
  throw new Y("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
365
- var n = Ct(e), o = n.length > 0 ? n[0] : "", a = Tt("%" + o + "%", t), l = a.name, i = a.value, c = !1, f = a.alias;
366
- f && (o = f[0], Ft(n, It([0, 1], f)));
382
+ var n = mn(e), o = n.length > 0 ? n[0] : "", a = vn("%" + o + "%", t), i = a.name, l = a.value, c = !1, f = a.alias;
383
+ f && (o = f[0], sn(n, un([0, 1], f)));
367
384
  for (var u = 1, m = !0; u < n.length; u += 1) {
368
- var p = n[u], h = ge(p, 0, 1), d = ge(p, -1);
369
- if ((h === '"' || h === "'" || h === "`" || d === '"' || d === "'" || d === "`") && h !== d)
385
+ var s = n[u], v = Ae(s, 0, 1), g = Ae(s, -1);
386
+ if ((v === '"' || v === "'" || v === "`" || g === '"' || g === "'" || g === "`") && v !== g)
370
387
  throw new Y("property names with quotes must have matching quotes");
371
- if ((p === "constructor" || !m) && (c = !0), o += "." + p, l = "%" + o + "%", he(W, l))
372
- i = W[l];
373
- else if (i != null) {
374
- if (!(p in i)) {
388
+ if ((s === "constructor" || !m) && (c = !0), o += "." + s, i = "%" + o + "%", we(V, i))
389
+ l = V[i];
390
+ else if (l != null) {
391
+ if (!(s in l)) {
375
392
  if (!t)
376
393
  throw new J("base intrinsic for " + e + " exists, but the property is not available.");
377
394
  return;
378
395
  }
379
- if (L && u + 1 >= n.length) {
380
- var A = L(i, p);
381
- m = !!A, m && "get" in A && !("originalValue" in A.get) ? i = A.get : i = i[p];
396
+ if (H && u + 1 >= n.length) {
397
+ var A = H(l, s);
398
+ m = !!A, m && "get" in A && !("originalValue" in A.get) ? l = A.get : l = l[s];
382
399
  } else
383
- m = he(i, p), i = i[p];
384
- m && !c && (W[l] = i);
400
+ m = we(l, s), l = l[s];
401
+ m && !c && (V[i] = l);
385
402
  }
386
403
  }
387
- return i;
388
- }, wr = { exports: {} };
389
- (function(r) {
390
- var e = Ge, t = He, n = t("%Function.prototype.apply%"), o = t("%Function.prototype.call%"), a = t("%Reflect.apply%", !0) || e.call(o, n), l = t("%Object.getOwnPropertyDescriptor%", !0), i = t("%Object.defineProperty%", !0), c = t("%Math.max%");
391
- if (i)
404
+ return l;
405
+ }, Cr = { exports: {} }, De, fr;
406
+ function Je() {
407
+ if (fr)
408
+ return De;
409
+ fr = 1;
410
+ var r = ee, e = r("%Object.defineProperty%", !0) || !1;
411
+ if (e)
392
412
  try {
393
- i({}, "a", { value: 1 });
413
+ e({}, "a", { value: 1 });
394
414
  } catch {
395
- i = null;
415
+ e = !1;
396
416
  }
397
- r.exports = function(m) {
398
- var p = a(e, o, arguments);
399
- if (l && i) {
400
- var h = l(p, "length");
401
- h.configurable && i(
402
- p,
403
- "length",
404
- { value: 1 + c(0, m.length - (arguments.length - 1)) }
405
- );
406
- }
407
- return p;
417
+ return De = e, De;
418
+ }
419
+ var gn = ee, ge = gn("%Object.getOwnPropertyDescriptor%", !0);
420
+ if (ge)
421
+ try {
422
+ ge([], "length");
423
+ } catch {
424
+ ge = null;
425
+ }
426
+ var Mr = ge, ur = Je(), hn = Rr, K = fe, sr = Mr, bn = function(e, t, n) {
427
+ if (!e || typeof e != "object" && typeof e != "function")
428
+ throw new K("`obj` must be an object or a function`");
429
+ if (typeof t != "string" && typeof t != "symbol")
430
+ throw new K("`property` must be a string or a symbol`");
431
+ if (arguments.length > 3 && typeof arguments[3] != "boolean" && arguments[3] !== null)
432
+ throw new K("`nonEnumerable`, if provided, must be a boolean or null");
433
+ if (arguments.length > 4 && typeof arguments[4] != "boolean" && arguments[4] !== null)
434
+ throw new K("`nonWritable`, if provided, must be a boolean or null");
435
+ if (arguments.length > 5 && typeof arguments[5] != "boolean" && arguments[5] !== null)
436
+ throw new K("`nonConfigurable`, if provided, must be a boolean or null");
437
+ if (arguments.length > 6 && typeof arguments[6] != "boolean")
438
+ throw new K("`loose`, if provided, must be a boolean");
439
+ var o = arguments.length > 3 ? arguments[3] : null, a = arguments.length > 4 ? arguments[4] : null, i = arguments.length > 5 ? arguments[5] : null, l = arguments.length > 6 ? arguments[6] : !1, c = !!sr && sr(e, t);
440
+ if (ur)
441
+ ur(e, t, {
442
+ configurable: i === null && c ? c.configurable : !i,
443
+ enumerable: o === null && c ? c.enumerable : !o,
444
+ value: n,
445
+ writable: a === null && c ? c.writable : !a
446
+ });
447
+ else if (l || !o && !a && !i)
448
+ e[t] = n;
449
+ else
450
+ throw new hn("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
451
+ }, We = Je(), kr = function() {
452
+ return !!We;
453
+ };
454
+ kr.hasArrayLengthDefineBug = function() {
455
+ if (!We)
456
+ return null;
457
+ try {
458
+ return We([], "length", { value: 1 }).length !== 1;
459
+ } catch {
460
+ return !0;
461
+ }
462
+ };
463
+ var Sn = kr, wn = ee, pr = bn, An = Sn(), yr = Mr, dr = fe, On = wn("%Math.floor%"), En = function(e, t) {
464
+ if (typeof e != "function")
465
+ throw new dr("`fn` is not a function");
466
+ if (typeof t != "number" || t < 0 || t > 4294967295 || On(t) !== t)
467
+ throw new dr("`length` must be a positive 32-bit integer");
468
+ var n = arguments.length > 2 && !!arguments[2], o = !0, a = !0;
469
+ if ("length" in e && yr) {
470
+ var i = yr(e, "length");
471
+ i && !i.configurable && (o = !1), i && !i.writable && (a = !1);
472
+ }
473
+ return (o || a || !n) && (An ? pr(
474
+ /** @type {Parameters<define>[0]} */
475
+ e,
476
+ "length",
477
+ t,
478
+ !0,
479
+ !0
480
+ ) : pr(
481
+ /** @type {Parameters<define>[0]} */
482
+ e,
483
+ "length",
484
+ t
485
+ )), e;
486
+ };
487
+ (function(r) {
488
+ var e = je, t = ee, n = En, o = fe, a = t("%Function.prototype.apply%"), i = t("%Function.prototype.call%"), l = t("%Reflect.apply%", !0) || e.call(i, a), c = Je(), f = t("%Math.max%");
489
+ r.exports = function(s) {
490
+ if (typeof s != "function")
491
+ throw new o("a function is required");
492
+ var v = l(e, i, arguments);
493
+ return n(
494
+ v,
495
+ 1 + f(0, s.length - (arguments.length - 1)),
496
+ !0
497
+ );
408
498
  };
409
- var f = function() {
410
- return a(e, n, arguments);
499
+ var u = function() {
500
+ return l(e, a, arguments);
411
501
  };
412
- i ? i(r.exports, "apply", { value: f }) : r.exports.apply = f;
413
- })(wr);
414
- var Dt = wr.exports, Or = He, Ar = Dt, Mt = Ar(Or("String.prototype.indexOf")), kt = function(e, t) {
415
- var n = Or(e, !!t);
416
- return typeof n == "function" && Mt(e, ".prototype.") > -1 ? Ar(n) : n;
502
+ c ? c(r.exports, "apply", { value: u }) : r.exports.apply = u;
503
+ })(Cr);
504
+ var Pn = Cr.exports, Ur = ee, Lr = Pn, In = Lr(Ur("String.prototype.indexOf")), $n = function(e, t) {
505
+ var n = Ur(e, !!t);
506
+ return typeof n == "function" && In(e, ".prototype.") > -1 ? Lr(n) : n;
417
507
  };
418
- const Ut = {}, Bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
508
+ const xn = {}, Fn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
419
509
  __proto__: null,
420
- default: Ut
421
- }, Symbol.toStringTag, { value: "Module" })), Lt = /* @__PURE__ */ ut(Bt);
422
- var Ve = typeof Map == "function" && Map.prototype, Ne = Object.getOwnPropertyDescriptor && Ve ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Se = Ve && Ne && typeof Ne.get == "function" ? Ne.get : null, rr = Ve && Map.prototype.forEach, ze = typeof Set == "function" && Set.prototype, Ie = Object.getOwnPropertyDescriptor && ze ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, be = ze && Ie && typeof Ie.get == "function" ? Ie.get : null, tr = ze && Set.prototype.forEach, Wt = typeof WeakMap == "function" && WeakMap.prototype, ae = Wt ? WeakMap.prototype.has : null, Gt = typeof WeakSet == "function" && WeakSet.prototype, oe = Gt ? WeakSet.prototype.has : null, Ht = typeof WeakRef == "function" && WeakRef.prototype, nr = Ht ? WeakRef.prototype.deref : null, Vt = Boolean.prototype.valueOf, zt = Object.prototype.toString, Qt = Function.prototype.toString, qt = String.prototype.match, Qe = String.prototype.slice, M = String.prototype.replace, jt = String.prototype.toUpperCase, ar = String.prototype.toLowerCase, Pr = RegExp.prototype.test, or = Array.prototype.concat, I = Array.prototype.join, Jt = Array.prototype.slice, ir = Math.floor, De = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Fe = Object.getOwnPropertySymbols, Me = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, K = typeof Symbol == "function" && typeof Symbol.iterator == "object", O = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === K || "symbol") ? Symbol.toStringTag : null, Er = Object.prototype.propertyIsEnumerable, lr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(r) {
510
+ default: xn
511
+ }, Symbol.toStringTag, { value: "Module" })), Nn = /* @__PURE__ */ Nt(Fn);
512
+ var Ye = typeof Map == "function" && Map.prototype, Re = Object.getOwnPropertyDescriptor && Ye ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Oe = Ye && Re && typeof Re.get == "function" ? Re.get : null, mr = Ye && Map.prototype.forEach, Xe = typeof Set == "function" && Set.prototype, Te = Object.getOwnPropertyDescriptor && Xe ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Ee = Xe && Te && typeof Te.get == "function" ? Te.get : null, vr = Xe && Set.prototype.forEach, _n = typeof WeakMap == "function" && WeakMap.prototype, ie = _n ? WeakMap.prototype.has : null, Dn = typeof WeakSet == "function" && WeakSet.prototype, le = Dn ? WeakSet.prototype.has : null, Rn = typeof WeakRef == "function" && WeakRef.prototype, gr = Rn ? WeakRef.prototype.deref : null, Tn = Boolean.prototype.valueOf, Cn = Object.prototype.toString, Mn = Function.prototype.toString, kn = String.prototype.match, Ze = String.prototype.slice, U = String.prototype.replace, Un = String.prototype.toUpperCase, hr = String.prototype.toLowerCase, Br = RegExp.prototype.test, br = Array.prototype.concat, N = Array.prototype.join, Ln = Array.prototype.slice, Sr = Math.floor, Ge = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Ce = Object.getOwnPropertySymbols, He = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, X = typeof Symbol == "function" && typeof Symbol.iterator == "object", O = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === X || "symbol") ? Symbol.toStringTag : null, Wr = Object.prototype.propertyIsEnumerable, wr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(r) {
423
513
  return r.__proto__;
424
514
  } : null);
425
- function cr(r, e) {
426
- if (r === 1 / 0 || r === -1 / 0 || r !== r || r && r > -1e3 && r < 1e3 || Pr.call(/e/, e))
515
+ function Ar(r, e) {
516
+ if (r === 1 / 0 || r === -1 / 0 || r !== r || r && r > -1e3 && r < 1e3 || Br.call(/e/, e))
427
517
  return e;
428
518
  var t = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
429
519
  if (typeof r == "number") {
430
- var n = r < 0 ? -ir(-r) : ir(r);
520
+ var n = r < 0 ? -Sr(-r) : Sr(r);
431
521
  if (n !== r) {
432
- var o = String(n), a = Qe.call(e, o.length + 1);
433
- return M.call(o, t, "$&_") + "." + M.call(M.call(a, /([0-9]{3})/g, "$&_"), /_$/, "");
522
+ var o = String(n), a = Ze.call(e, o.length + 1);
523
+ return U.call(o, t, "$&_") + "." + U.call(U.call(a, /([0-9]{3})/g, "$&_"), /_$/, "");
434
524
  }
435
525
  }
436
- return M.call(e, t, "$&_");
526
+ return U.call(e, t, "$&_");
437
527
  }
438
- var ke = Lt, fr = ke.custom, ur = Nr(fr) ? fr : null, Yt = function r(e, t, n, o) {
528
+ var Ve = Nn, Or = Ve.custom, Er = Hr(Or) ? Or : null, Bn = function r(e, t, n, o) {
439
529
  var a = t || {};
440
- if (D(a, "quoteStyle") && a.quoteStyle !== "single" && a.quoteStyle !== "double")
530
+ if (k(a, "quoteStyle") && a.quoteStyle !== "single" && a.quoteStyle !== "double")
441
531
  throw new TypeError('option "quoteStyle" must be "single" or "double"');
442
- if (D(a, "maxStringLength") && (typeof a.maxStringLength == "number" ? a.maxStringLength < 0 && a.maxStringLength !== 1 / 0 : a.maxStringLength !== null))
532
+ if (k(a, "maxStringLength") && (typeof a.maxStringLength == "number" ? a.maxStringLength < 0 && a.maxStringLength !== 1 / 0 : a.maxStringLength !== null))
443
533
  throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
444
- var l = D(a, "customInspect") ? a.customInspect : !0;
445
- if (typeof l != "boolean" && l !== "symbol")
534
+ var i = k(a, "customInspect") ? a.customInspect : !0;
535
+ if (typeof i != "boolean" && i !== "symbol")
446
536
  throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
447
- if (D(a, "indent") && a.indent !== null && a.indent !== " " && !(parseInt(a.indent, 10) === a.indent && a.indent > 0))
537
+ if (k(a, "indent") && a.indent !== null && a.indent !== " " && !(parseInt(a.indent, 10) === a.indent && a.indent > 0))
448
538
  throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
449
- if (D(a, "numericSeparator") && typeof a.numericSeparator != "boolean")
539
+ if (k(a, "numericSeparator") && typeof a.numericSeparator != "boolean")
450
540
  throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
451
- var i = a.numericSeparator;
541
+ var l = a.numericSeparator;
452
542
  if (typeof e > "u")
453
543
  return "undefined";
454
544
  if (e === null)
@@ -456,161 +546,165 @@ var ke = Lt, fr = ke.custom, ur = Nr(fr) ? fr : null, Yt = function r(e, t, n, o
456
546
  if (typeof e == "boolean")
457
547
  return e ? "true" : "false";
458
548
  if (typeof e == "string")
459
- return Fr(e, a);
549
+ return qr(e, a);
460
550
  if (typeof e == "number") {
461
551
  if (e === 0)
462
552
  return 1 / 0 / e > 0 ? "0" : "-0";
463
553
  var c = String(e);
464
- return i ? cr(e, c) : c;
554
+ return l ? Ar(e, c) : c;
465
555
  }
466
556
  if (typeof e == "bigint") {
467
557
  var f = String(e) + "n";
468
- return i ? cr(e, f) : f;
558
+ return l ? Ar(e, f) : f;
469
559
  }
470
560
  var u = typeof a.depth > "u" ? 5 : a.depth;
471
561
  if (typeof n > "u" && (n = 0), n >= u && u > 0 && typeof e == "object")
472
- return Ue(e) ? "[Array]" : "[Object]";
473
- var m = mn(a, n);
562
+ return qe(e) ? "[Array]" : "[Object]";
563
+ var m = aa(a, n);
474
564
  if (typeof o > "u")
475
565
  o = [];
476
- else if (Ir(o, e) >= 0)
566
+ else if (Vr(o, e) >= 0)
477
567
  return "[Circular]";
478
- function p($, z, fe) {
479
- if (z && (o = Jt.call(o), o.push(z)), fe) {
480
- var Q = {
568
+ function s($, C, M) {
569
+ if (C && (o = Ln.call(o), o.push(C)), M) {
570
+ var ne = {
481
571
  depth: a.depth
482
572
  };
483
- return D(a, "quoteStyle") && (Q.quoteStyle = a.quoteStyle), r($, Q, n + 1, o);
573
+ return k(a, "quoteStyle") && (ne.quoteStyle = a.quoteStyle), r($, ne, n + 1, o);
484
574
  }
485
575
  return r($, a, n + 1, o);
486
576
  }
487
- if (typeof e == "function" && !pr(e)) {
488
- var h = on(e), d = pe(e, p);
489
- return "[Function" + (h ? ": " + h : " (anonymous)") + "]" + (d.length > 0 ? " { " + I.call(d, ", ") + " }" : "");
577
+ if (typeof e == "function" && !Pr(e)) {
578
+ var v = jn(e), g = de(e, s);
579
+ return "[Function" + (v ? ": " + v : " (anonymous)") + "]" + (g.length > 0 ? " { " + N.call(g, ", ") + " }" : "");
490
580
  }
491
- if (Nr(e)) {
492
- var A = K ? M.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : Me.call(e);
493
- return typeof e == "object" && !K ? te(A) : A;
581
+ if (Hr(e)) {
582
+ var A = X ? U.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : He.call(e);
583
+ return typeof e == "object" && !X ? ae(A) : A;
494
584
  }
495
- if (sn(e)) {
496
- for (var F = "<" + ar.call(String(e.nodeName)), v = e.attributes || [], _ = 0; _ < v.length; _++)
497
- F += " " + v[_].name + "=" + xr(Kt(v[_].value), "double", a);
498
- return F += ">", e.childNodes && e.childNodes.length && (F += "..."), F += "</" + ar.call(String(e.nodeName)) + ">", F;
585
+ if (ra(e)) {
586
+ for (var E = "<" + hr.call(String(e.nodeName)), _ = e.attributes || [], D = 0; D < _.length; D++)
587
+ E += " " + _[D].name + "=" + Gr(Wn(_[D].value), "double", a);
588
+ return E += ">", e.childNodes && e.childNodes.length && (E += "..."), E += "</" + hr.call(String(e.nodeName)) + ">", E;
499
589
  }
500
- if (Ue(e)) {
590
+ if (qe(e)) {
501
591
  if (e.length === 0)
502
592
  return "[]";
503
- var C = pe(e, p);
504
- return m && !dn(C) ? "[" + Be(C, m) + "]" : "[ " + I.call(C, ", ") + " ]";
593
+ var d = de(e, s);
594
+ return m && !na(d) ? "[" + ze(d, m) + "]" : "[ " + N.call(d, ", ") + " ]";
505
595
  }
506
- if (Zt(e)) {
507
- var G = pe(e, p);
508
- return !("cause" in Error.prototype) && "cause" in e && !Er.call(e, "cause") ? "{ [" + String(e) + "] " + I.call(or.call("[cause]: " + p(e.cause), G), ", ") + " }" : G.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + I.call(G, ", ") + " }";
596
+ if (Hn(e)) {
597
+ var R = de(e, s);
598
+ return !("cause" in Error.prototype) && "cause" in e && !Wr.call(e, "cause") ? "{ [" + String(e) + "] " + N.call(br.call("[cause]: " + s(e.cause), R), ", ") + " }" : R.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + N.call(R, ", ") + " }";
509
599
  }
510
- if (typeof e == "object" && l) {
511
- if (ur && typeof e[ur] == "function" && ke)
512
- return ke(e, { depth: u - n });
513
- if (l !== "symbol" && typeof e.inspect == "function")
600
+ if (typeof e == "object" && i) {
601
+ if (Er && typeof e[Er] == "function" && Ve)
602
+ return Ve(e, { depth: u - n });
603
+ if (i !== "symbol" && typeof e.inspect == "function")
514
604
  return e.inspect();
515
605
  }
516
- if (ln(e)) {
517
- var ee = [];
518
- return rr && rr.call(e, function($, z) {
519
- ee.push(p(z, e, !0) + " => " + p($, e));
520
- }), sr("Map", Se.call(e), ee, m);
606
+ if (Jn(e)) {
607
+ var B = [];
608
+ return mr && mr.call(e, function($, C) {
609
+ B.push(s(C, e, !0) + " => " + s($, e));
610
+ }), Ir("Map", Oe.call(e), B, m);
521
611
  }
522
- if (un(e)) {
523
- var ce = [];
524
- return tr && tr.call(e, function($) {
525
- ce.push(p($, e));
526
- }), sr("Set", be.call(e), ce, m);
612
+ if (Zn(e)) {
613
+ var te = [];
614
+ return vr && vr.call(e, function($) {
615
+ te.push(s($, e));
616
+ }), Ir("Set", Ee.call(e), te, m);
527
617
  }
528
- if (cn(e))
529
- return _e("WeakMap");
530
- if (pn(e))
531
- return _e("WeakSet");
532
- if (fn(e))
533
- return _e("WeakRef");
534
- if (rn(e))
535
- return te(p(Number(e)));
536
- if (nn(e))
537
- return te(p(De.call(e)));
538
- if (tn(e))
539
- return te(Vt.call(e));
540
- if (en(e))
541
- return te(p(String(e)));
542
- if (!Xt(e) && !pr(e)) {
543
- var U = pe(e, p), T = lr ? lr(e) === Object.prototype : e instanceof Object || e.constructor === Object, H = e instanceof Object ? "" : "null prototype", V = !T && O && Object(e) === e && O in e ? Qe.call(k(e), 8, -1) : H ? "Object" : "", re = T || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", x = re + (V || H ? "[" + I.call(or.call([], V || [], H || []), ": ") + "] " : "");
544
- return U.length === 0 ? x + "{}" : m ? x + "{" + Be(U, m) + "}" : x + "{ " + I.call(U, ", ") + " }";
618
+ if (Yn(e))
619
+ return Me("WeakMap");
620
+ if (ea(e))
621
+ return Me("WeakSet");
622
+ if (Xn(e))
623
+ return Me("WeakRef");
624
+ if (qn(e))
625
+ return ae(s(Number(e)));
626
+ if (Qn(e))
627
+ return ae(s(Ge.call(e)));
628
+ if (zn(e))
629
+ return ae(Tn.call(e));
630
+ if (Vn(e))
631
+ return ae(s(String(e)));
632
+ if (typeof window < "u" && e === window)
633
+ return "{ [object Window] }";
634
+ if (e === xt)
635
+ return "{ [object globalThis] }";
636
+ if (!Gn(e) && !Pr(e)) {
637
+ var q = de(e, s), se = wr ? wr(e) === Object.prototype : e instanceof Object || e.constructor === Object, W = e instanceof Object ? "" : "null prototype", T = !se && O && Object(e) === e && O in e ? Ze.call(L(e), 8, -1) : W ? "Object" : "", pe = se || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", z = pe + (T || W ? "[" + N.call(br.call([], T || [], W || []), ": ") + "] " : "");
638
+ return q.length === 0 ? z + "{}" : m ? z + "{" + ze(q, m) + "}" : z + "{ " + N.call(q, ", ") + " }";
545
639
  }
546
640
  return String(e);
547
641
  };
548
- function xr(r, e, t) {
642
+ function Gr(r, e, t) {
549
643
  var n = (t.quoteStyle || e) === "double" ? '"' : "'";
550
644
  return n + r + n;
551
645
  }
552
- function Kt(r) {
553
- return M.call(String(r), /"/g, "&quot;");
646
+ function Wn(r) {
647
+ return U.call(String(r), /"/g, "&quot;");
554
648
  }
555
- function Ue(r) {
556
- return k(r) === "[object Array]" && (!O || !(typeof r == "object" && O in r));
649
+ function qe(r) {
650
+ return L(r) === "[object Array]" && (!O || !(typeof r == "object" && O in r));
557
651
  }
558
- function Xt(r) {
559
- return k(r) === "[object Date]" && (!O || !(typeof r == "object" && O in r));
652
+ function Gn(r) {
653
+ return L(r) === "[object Date]" && (!O || !(typeof r == "object" && O in r));
560
654
  }
561
- function pr(r) {
562
- return k(r) === "[object RegExp]" && (!O || !(typeof r == "object" && O in r));
655
+ function Pr(r) {
656
+ return L(r) === "[object RegExp]" && (!O || !(typeof r == "object" && O in r));
563
657
  }
564
- function Zt(r) {
565
- return k(r) === "[object Error]" && (!O || !(typeof r == "object" && O in r));
658
+ function Hn(r) {
659
+ return L(r) === "[object Error]" && (!O || !(typeof r == "object" && O in r));
566
660
  }
567
- function en(r) {
568
- return k(r) === "[object String]" && (!O || !(typeof r == "object" && O in r));
661
+ function Vn(r) {
662
+ return L(r) === "[object String]" && (!O || !(typeof r == "object" && O in r));
569
663
  }
570
- function rn(r) {
571
- return k(r) === "[object Number]" && (!O || !(typeof r == "object" && O in r));
664
+ function qn(r) {
665
+ return L(r) === "[object Number]" && (!O || !(typeof r == "object" && O in r));
572
666
  }
573
- function tn(r) {
574
- return k(r) === "[object Boolean]" && (!O || !(typeof r == "object" && O in r));
667
+ function zn(r) {
668
+ return L(r) === "[object Boolean]" && (!O || !(typeof r == "object" && O in r));
575
669
  }
576
- function Nr(r) {
577
- if (K)
670
+ function Hr(r) {
671
+ if (X)
578
672
  return r && typeof r == "object" && r instanceof Symbol;
579
673
  if (typeof r == "symbol")
580
674
  return !0;
581
- if (!r || typeof r != "object" || !Me)
675
+ if (!r || typeof r != "object" || !He)
582
676
  return !1;
583
677
  try {
584
- return Me.call(r), !0;
678
+ return He.call(r), !0;
585
679
  } catch {
586
680
  }
587
681
  return !1;
588
682
  }
589
- function nn(r) {
590
- if (!r || typeof r != "object" || !De)
683
+ function Qn(r) {
684
+ if (!r || typeof r != "object" || !Ge)
591
685
  return !1;
592
686
  try {
593
- return De.call(r), !0;
687
+ return Ge.call(r), !0;
594
688
  } catch {
595
689
  }
596
690
  return !1;
597
691
  }
598
- var an = Object.prototype.hasOwnProperty || function(r) {
692
+ var Kn = Object.prototype.hasOwnProperty || function(r) {
599
693
  return r in this;
600
694
  };
601
- function D(r, e) {
602
- return an.call(r, e);
695
+ function k(r, e) {
696
+ return Kn.call(r, e);
603
697
  }
604
- function k(r) {
605
- return zt.call(r);
698
+ function L(r) {
699
+ return Cn.call(r);
606
700
  }
607
- function on(r) {
701
+ function jn(r) {
608
702
  if (r.name)
609
703
  return r.name;
610
- var e = qt.call(Qt.call(r), /^function\s*([\w$]+)/);
704
+ var e = kn.call(Mn.call(r), /^function\s*([\w$]+)/);
611
705
  return e ? e[1] : null;
612
706
  }
613
- function Ir(r, e) {
707
+ function Vr(r, e) {
614
708
  if (r.indexOf)
615
709
  return r.indexOf(e);
616
710
  for (var t = 0, n = r.length; t < n; t++)
@@ -618,13 +712,13 @@ function Ir(r, e) {
618
712
  return t;
619
713
  return -1;
620
714
  }
621
- function ln(r) {
622
- if (!Se || !r || typeof r != "object")
715
+ function Jn(r) {
716
+ if (!Oe || !r || typeof r != "object")
623
717
  return !1;
624
718
  try {
625
- Se.call(r);
719
+ Oe.call(r);
626
720
  try {
627
- be.call(r);
721
+ Ee.call(r);
628
722
  } catch {
629
723
  return !0;
630
724
  }
@@ -633,13 +727,13 @@ function ln(r) {
633
727
  }
634
728
  return !1;
635
729
  }
636
- function cn(r) {
637
- if (!ae || !r || typeof r != "object")
730
+ function Yn(r) {
731
+ if (!ie || !r || typeof r != "object")
638
732
  return !1;
639
733
  try {
640
- ae.call(r, ae);
734
+ ie.call(r, ie);
641
735
  try {
642
- oe.call(r, oe);
736
+ le.call(r, le);
643
737
  } catch {
644
738
  return !0;
645
739
  }
@@ -648,22 +742,22 @@ function cn(r) {
648
742
  }
649
743
  return !1;
650
744
  }
651
- function fn(r) {
652
- if (!nr || !r || typeof r != "object")
745
+ function Xn(r) {
746
+ if (!gr || !r || typeof r != "object")
653
747
  return !1;
654
748
  try {
655
- return nr.call(r), !0;
749
+ return gr.call(r), !0;
656
750
  } catch {
657
751
  }
658
752
  return !1;
659
753
  }
660
- function un(r) {
661
- if (!be || !r || typeof r != "object")
754
+ function Zn(r) {
755
+ if (!Ee || !r || typeof r != "object")
662
756
  return !1;
663
757
  try {
664
- be.call(r);
758
+ Ee.call(r);
665
759
  try {
666
- Se.call(r);
760
+ Oe.call(r);
667
761
  } catch {
668
762
  return !0;
669
763
  }
@@ -672,13 +766,13 @@ function un(r) {
672
766
  }
673
767
  return !1;
674
768
  }
675
- function pn(r) {
676
- if (!oe || !r || typeof r != "object")
769
+ function ea(r) {
770
+ if (!le || !r || typeof r != "object")
677
771
  return !1;
678
772
  try {
679
- oe.call(r, oe);
773
+ le.call(r, le);
680
774
  try {
681
- ae.call(r, ae);
775
+ ie.call(r, ie);
682
776
  } catch {
683
777
  return !0;
684
778
  }
@@ -687,18 +781,18 @@ function pn(r) {
687
781
  }
688
782
  return !1;
689
783
  }
690
- function sn(r) {
784
+ function ra(r) {
691
785
  return !r || typeof r != "object" ? !1 : typeof HTMLElement < "u" && r instanceof HTMLElement ? !0 : typeof r.nodeName == "string" && typeof r.getAttribute == "function";
692
786
  }
693
- function Fr(r, e) {
787
+ function qr(r, e) {
694
788
  if (r.length > e.maxStringLength) {
695
789
  var t = r.length - e.maxStringLength, n = "... " + t + " more character" + (t > 1 ? "s" : "");
696
- return Fr(Qe.call(r, 0, e.maxStringLength), e) + n;
790
+ return qr(Ze.call(r, 0, e.maxStringLength), e) + n;
697
791
  }
698
- var o = M.call(M.call(r, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, yn);
699
- return xr(o, "single", e);
792
+ var o = U.call(U.call(r, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, ta);
793
+ return Gr(o, "single", e);
700
794
  }
701
- function yn(r) {
795
+ function ta(r) {
702
796
  var e = r.charCodeAt(0), t = {
703
797
  8: "b",
704
798
  9: "t",
@@ -706,155 +800,157 @@ function yn(r) {
706
800
  12: "f",
707
801
  13: "r"
708
802
  }[e];
709
- return t ? "\\" + t : "\\x" + (e < 16 ? "0" : "") + jt.call(e.toString(16));
803
+ return t ? "\\" + t : "\\x" + (e < 16 ? "0" : "") + Un.call(e.toString(16));
710
804
  }
711
- function te(r) {
805
+ function ae(r) {
712
806
  return "Object(" + r + ")";
713
807
  }
714
- function _e(r) {
808
+ function Me(r) {
715
809
  return r + " { ? }";
716
810
  }
717
- function sr(r, e, t, n) {
718
- var o = n ? Be(t, n) : I.call(t, ", ");
811
+ function Ir(r, e, t, n) {
812
+ var o = n ? ze(t, n) : N.call(t, ", ");
719
813
  return r + " (" + e + ") {" + o + "}";
720
814
  }
721
- function dn(r) {
815
+ function na(r) {
722
816
  for (var e = 0; e < r.length; e++)
723
- if (Ir(r[e], `
817
+ if (Vr(r[e], `
724
818
  `) >= 0)
725
819
  return !1;
726
820
  return !0;
727
821
  }
728
- function mn(r, e) {
822
+ function aa(r, e) {
729
823
  var t;
730
824
  if (r.indent === " ")
731
825
  t = " ";
732
826
  else if (typeof r.indent == "number" && r.indent > 0)
733
- t = I.call(Array(r.indent + 1), " ");
827
+ t = N.call(Array(r.indent + 1), " ");
734
828
  else
735
829
  return null;
736
830
  return {
737
831
  base: t,
738
- prev: I.call(Array(e + 1), t)
832
+ prev: N.call(Array(e + 1), t)
739
833
  };
740
834
  }
741
- function Be(r, e) {
835
+ function ze(r, e) {
742
836
  if (r.length === 0)
743
837
  return "";
744
838
  var t = `
745
839
  ` + e.prev + e.base;
746
- return t + I.call(r, "," + t) + `
840
+ return t + N.call(r, "," + t) + `
747
841
  ` + e.prev;
748
842
  }
749
- function pe(r, e) {
750
- var t = Ue(r), n = [];
843
+ function de(r, e) {
844
+ var t = qe(r), n = [];
751
845
  if (t) {
752
846
  n.length = r.length;
753
847
  for (var o = 0; o < r.length; o++)
754
- n[o] = D(r, o) ? e(r[o], r) : "";
848
+ n[o] = k(r, o) ? e(r[o], r) : "";
755
849
  }
756
- var a = typeof Fe == "function" ? Fe(r) : [], l;
757
- if (K) {
758
- l = {};
759
- for (var i = 0; i < a.length; i++)
760
- l["$" + a[i]] = a[i];
850
+ var a = typeof Ce == "function" ? Ce(r) : [], i;
851
+ if (X) {
852
+ i = {};
853
+ for (var l = 0; l < a.length; l++)
854
+ i["$" + a[l]] = a[l];
761
855
  }
762
856
  for (var c in r)
763
- D(r, c) && (t && String(Number(c)) === c && c < r.length || K && l["$" + c] instanceof Symbol || (Pr.call(/[^\w$]/, c) ? n.push(e(c, r) + ": " + e(r[c], r)) : n.push(c + ": " + e(r[c], r))));
764
- if (typeof Fe == "function")
857
+ k(r, c) && (t && String(Number(c)) === c && c < r.length || X && i["$" + c] instanceof Symbol || (Br.call(/[^\w$]/, c) ? n.push(e(c, r) + ": " + e(r[c], r)) : n.push(c + ": " + e(r[c], r))));
858
+ if (typeof Ce == "function")
765
859
  for (var f = 0; f < a.length; f++)
766
- Er.call(r, a[f]) && n.push("[" + e(a[f]) + "]: " + e(r[a[f]], r));
860
+ Wr.call(r, a[f]) && n.push("[" + e(a[f]) + "]: " + e(r[a[f]], r));
767
861
  return n;
768
862
  }
769
- var qe = He, Z = kt, vn = Yt, hn = qe("%TypeError%"), se = qe("%WeakMap%", !0), ye = qe("%Map%", !0), gn = Z("WeakMap.prototype.get", !0), Sn = Z("WeakMap.prototype.set", !0), bn = Z("WeakMap.prototype.has", !0), wn = Z("Map.prototype.get", !0), On = Z("Map.prototype.set", !0), An = Z("Map.prototype.has", !0), je = function(r, e) {
863
+ var zr = ee, re = $n, oa = Bn, ia = fe, me = zr("%WeakMap%", !0), ve = zr("%Map%", !0), la = re("WeakMap.prototype.get", !0), ca = re("WeakMap.prototype.set", !0), fa = re("WeakMap.prototype.has", !0), ua = re("Map.prototype.get", !0), sa = re("Map.prototype.set", !0), pa = re("Map.prototype.has", !0), er = function(r, e) {
770
864
  for (var t = r, n; (n = t.next) !== null; t = n)
771
865
  if (n.key === e)
772
- return t.next = n.next, n.next = r.next, r.next = n, n;
773
- }, Pn = function(r, e) {
774
- var t = je(r, e);
866
+ return t.next = n.next, n.next = /** @type {NonNullable<typeof list.next>} */
867
+ r.next, r.next = n, n;
868
+ }, ya = function(r, e) {
869
+ var t = er(r, e);
775
870
  return t && t.value;
776
- }, En = function(r, e, t) {
777
- var n = je(r, e);
778
- n ? n.value = t : r.next = {
779
- // eslint-disable-line no-param-reassign
871
+ }, da = function(r, e, t) {
872
+ var n = er(r, e);
873
+ n ? n.value = t : r.next = /** @type {import('.').ListNode<typeof value>} */
874
+ {
875
+ // eslint-disable-line no-param-reassign, no-extra-parens
780
876
  key: e,
781
877
  next: r.next,
782
878
  value: t
783
879
  };
784
- }, xn = function(r, e) {
785
- return !!je(r, e);
786
- }, Nn = function() {
880
+ }, ma = function(r, e) {
881
+ return !!er(r, e);
882
+ }, va = function() {
787
883
  var e, t, n, o = {
788
884
  assert: function(a) {
789
885
  if (!o.has(a))
790
- throw new hn("Side channel does not contain " + vn(a));
886
+ throw new ia("Side channel does not contain " + oa(a));
791
887
  },
792
888
  get: function(a) {
793
- if (se && a && (typeof a == "object" || typeof a == "function")) {
889
+ if (me && a && (typeof a == "object" || typeof a == "function")) {
794
890
  if (e)
795
- return gn(e, a);
796
- } else if (ye) {
891
+ return la(e, a);
892
+ } else if (ve) {
797
893
  if (t)
798
- return wn(t, a);
894
+ return ua(t, a);
799
895
  } else if (n)
800
- return Pn(n, a);
896
+ return ya(n, a);
801
897
  },
802
898
  has: function(a) {
803
- if (se && a && (typeof a == "object" || typeof a == "function")) {
899
+ if (me && a && (typeof a == "object" || typeof a == "function")) {
804
900
  if (e)
805
- return bn(e, a);
806
- } else if (ye) {
901
+ return fa(e, a);
902
+ } else if (ve) {
807
903
  if (t)
808
- return An(t, a);
904
+ return pa(t, a);
809
905
  } else if (n)
810
- return xn(n, a);
906
+ return ma(n, a);
811
907
  return !1;
812
908
  },
813
- set: function(a, l) {
814
- se && a && (typeof a == "object" || typeof a == "function") ? (e || (e = new se()), Sn(e, a, l)) : ye ? (t || (t = new ye()), On(t, a, l)) : (n || (n = { key: {}, next: null }), En(n, a, l));
909
+ set: function(a, i) {
910
+ me && a && (typeof a == "object" || typeof a == "function") ? (e || (e = new me()), ca(e, a, i)) : ve ? (t || (t = new ve()), sa(t, a, i)) : (n || (n = { key: {}, next: null }), da(n, a, i));
815
911
  }
816
912
  };
817
913
  return o;
818
- }, In = String.prototype.replace, Fn = /%20/g, $e = {
914
+ }, ga = String.prototype.replace, ha = /%20/g, ke = {
819
915
  RFC1738: "RFC1738",
820
916
  RFC3986: "RFC3986"
821
- }, Je = {
822
- default: $e.RFC3986,
917
+ }, rr = {
918
+ default: ke.RFC3986,
823
919
  formatters: {
824
920
  RFC1738: function(r) {
825
- return In.call(r, Fn, "+");
921
+ return ga.call(r, ha, "+");
826
922
  },
827
923
  RFC3986: function(r) {
828
924
  return String(r);
829
925
  }
830
926
  },
831
- RFC1738: $e.RFC1738,
832
- RFC3986: $e.RFC3986
833
- }, _n = Je, Re = Object.prototype.hasOwnProperty, B = Array.isArray, N = function() {
927
+ RFC1738: ke.RFC1738,
928
+ RFC3986: ke.RFC3986
929
+ }, ba = rr, Ue = Object.prototype.hasOwnProperty, G = Array.isArray, x = function() {
834
930
  for (var r = [], e = 0; e < 256; ++e)
835
931
  r.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
836
932
  return r;
837
- }(), $n = function(e) {
933
+ }(), Sa = function(e) {
838
934
  for (; e.length > 1; ) {
839
935
  var t = e.pop(), n = t.obj[t.prop];
840
- if (B(n)) {
936
+ if (G(n)) {
841
937
  for (var o = [], a = 0; a < n.length; ++a)
842
938
  typeof n[a] < "u" && o.push(n[a]);
843
939
  t.obj[t.prop] = o;
844
940
  }
845
941
  }
846
- }, _r = function(e, t) {
942
+ }, Qr = function(e, t) {
847
943
  for (var n = t && t.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, o = 0; o < e.length; ++o)
848
944
  typeof e[o] < "u" && (n[o] = e[o]);
849
945
  return n;
850
- }, Rn = function r(e, t, n) {
946
+ }, wa = function r(e, t, n) {
851
947
  if (!t)
852
948
  return e;
853
949
  if (typeof t != "object") {
854
- if (B(e))
950
+ if (G(e))
855
951
  e.push(t);
856
952
  else if (e && typeof e == "object")
857
- (n && (n.plainObjects || n.allowPrototypes) || !Re.call(Object.prototype, t)) && (e[t] = !0);
953
+ (n && (n.plainObjects || n.allowPrototypes) || !Ue.call(Object.prototype, t)) && (e[t] = !0);
858
954
  else
859
955
  return [e, t];
860
956
  return e;
@@ -862,21 +958,21 @@ var qe = He, Z = kt, vn = Yt, hn = qe("%TypeError%"), se = qe("%WeakMap%", !0),
862
958
  if (!e || typeof e != "object")
863
959
  return [e].concat(t);
864
960
  var o = e;
865
- return B(e) && !B(t) && (o = _r(e, n)), B(e) && B(t) ? (t.forEach(function(a, l) {
866
- if (Re.call(e, l)) {
867
- var i = e[l];
868
- i && typeof i == "object" && a && typeof a == "object" ? e[l] = r(i, a, n) : e.push(a);
961
+ return G(e) && !G(t) && (o = Qr(e, n)), G(e) && G(t) ? (t.forEach(function(a, i) {
962
+ if (Ue.call(e, i)) {
963
+ var l = e[i];
964
+ l && typeof l == "object" && a && typeof a == "object" ? e[i] = r(l, a, n) : e.push(a);
869
965
  } else
870
- e[l] = a;
871
- }), e) : Object.keys(t).reduce(function(a, l) {
872
- var i = t[l];
873
- return Re.call(a, l) ? a[l] = r(a[l], i, n) : a[l] = i, a;
966
+ e[i] = a;
967
+ }), e) : Object.keys(t).reduce(function(a, i) {
968
+ var l = t[i];
969
+ return Ue.call(a, i) ? a[i] = r(a[i], l, n) : a[i] = l, a;
874
970
  }, o);
875
- }, Cn = function(e, t) {
971
+ }, Aa = function(e, t) {
876
972
  return Object.keys(t).reduce(function(n, o) {
877
973
  return n[o] = t[o], n;
878
974
  }, e);
879
- }, Tn = function(r, e, t) {
975
+ }, Oa = function(r, e, t) {
880
976
  var n = r.replace(/\+/g, " ");
881
977
  if (t === "iso-8859-1")
882
978
  return n.replace(/%[0-9a-f]{2}/gi, unescape);
@@ -885,67 +981,67 @@ var qe = He, Z = kt, vn = Yt, hn = qe("%TypeError%"), se = qe("%WeakMap%", !0),
885
981
  } catch {
886
982
  return n;
887
983
  }
888
- }, Dn = function(e, t, n, o, a) {
984
+ }, Ea = function(e, t, n, o, a) {
889
985
  if (e.length === 0)
890
986
  return e;
891
- var l = e;
892
- if (typeof e == "symbol" ? l = Symbol.prototype.toString.call(e) : typeof e != "string" && (l = String(e)), n === "iso-8859-1")
893
- return escape(l).replace(/%u[0-9a-f]{4}/gi, function(u) {
987
+ var i = e;
988
+ if (typeof e == "symbol" ? i = Symbol.prototype.toString.call(e) : typeof e != "string" && (i = String(e)), n === "iso-8859-1")
989
+ return escape(i).replace(/%u[0-9a-f]{4}/gi, function(u) {
894
990
  return "%26%23" + parseInt(u.slice(2), 16) + "%3B";
895
991
  });
896
- for (var i = "", c = 0; c < l.length; ++c) {
897
- var f = l.charCodeAt(c);
898
- if (f === 45 || f === 46 || f === 95 || f === 126 || f >= 48 && f <= 57 || f >= 65 && f <= 90 || f >= 97 && f <= 122 || a === _n.RFC1738 && (f === 40 || f === 41)) {
899
- i += l.charAt(c);
992
+ for (var l = "", c = 0; c < i.length; ++c) {
993
+ var f = i.charCodeAt(c);
994
+ if (f === 45 || f === 46 || f === 95 || f === 126 || f >= 48 && f <= 57 || f >= 65 && f <= 90 || f >= 97 && f <= 122 || a === ba.RFC1738 && (f === 40 || f === 41)) {
995
+ l += i.charAt(c);
900
996
  continue;
901
997
  }
902
998
  if (f < 128) {
903
- i = i + N[f];
999
+ l = l + x[f];
904
1000
  continue;
905
1001
  }
906
1002
  if (f < 2048) {
907
- i = i + (N[192 | f >> 6] + N[128 | f & 63]);
1003
+ l = l + (x[192 | f >> 6] + x[128 | f & 63]);
908
1004
  continue;
909
1005
  }
910
1006
  if (f < 55296 || f >= 57344) {
911
- i = i + (N[224 | f >> 12] + N[128 | f >> 6 & 63] + N[128 | f & 63]);
1007
+ l = l + (x[224 | f >> 12] + x[128 | f >> 6 & 63] + x[128 | f & 63]);
912
1008
  continue;
913
1009
  }
914
- c += 1, f = 65536 + ((f & 1023) << 10 | l.charCodeAt(c) & 1023), i += N[240 | f >> 18] + N[128 | f >> 12 & 63] + N[128 | f >> 6 & 63] + N[128 | f & 63];
1010
+ c += 1, f = 65536 + ((f & 1023) << 10 | i.charCodeAt(c) & 1023), l += x[240 | f >> 18] + x[128 | f >> 12 & 63] + x[128 | f >> 6 & 63] + x[128 | f & 63];
915
1011
  }
916
- return i;
917
- }, Mn = function(e) {
1012
+ return l;
1013
+ }, Pa = function(e) {
918
1014
  for (var t = [{ obj: { o: e }, prop: "o" }], n = [], o = 0; o < t.length; ++o)
919
- for (var a = t[o], l = a.obj[a.prop], i = Object.keys(l), c = 0; c < i.length; ++c) {
920
- var f = i[c], u = l[f];
921
- typeof u == "object" && u !== null && n.indexOf(u) === -1 && (t.push({ obj: l, prop: f }), n.push(u));
1015
+ for (var a = t[o], i = a.obj[a.prop], l = Object.keys(i), c = 0; c < l.length; ++c) {
1016
+ var f = l[c], u = i[f];
1017
+ typeof u == "object" && u !== null && n.indexOf(u) === -1 && (t.push({ obj: i, prop: f }), n.push(u));
922
1018
  }
923
- return $n(t), e;
924
- }, kn = function(e) {
1019
+ return Sa(t), e;
1020
+ }, Ia = function(e) {
925
1021
  return Object.prototype.toString.call(e) === "[object RegExp]";
926
- }, Un = function(e) {
1022
+ }, $a = function(e) {
927
1023
  return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
928
- }, Bn = function(e, t) {
1024
+ }, xa = function(e, t) {
929
1025
  return [].concat(e, t);
930
- }, Ln = function(e, t) {
931
- if (B(e)) {
1026
+ }, Fa = function(e, t) {
1027
+ if (G(e)) {
932
1028
  for (var n = [], o = 0; o < e.length; o += 1)
933
1029
  n.push(t(e[o]));
934
1030
  return n;
935
1031
  }
936
1032
  return t(e);
937
- }, $r = {
938
- arrayToObject: _r,
939
- assign: Cn,
940
- combine: Bn,
941
- compact: Mn,
942
- decode: Tn,
943
- encode: Dn,
944
- isBuffer: Un,
945
- isRegExp: kn,
946
- maybeMap: Ln,
947
- merge: Rn
948
- }, Rr = Nn, de = $r, ie = Je, Wn = Object.prototype.hasOwnProperty, yr = {
1033
+ }, Kr = {
1034
+ arrayToObject: Qr,
1035
+ assign: Aa,
1036
+ combine: xa,
1037
+ compact: Pa,
1038
+ decode: Oa,
1039
+ encode: Ea,
1040
+ isBuffer: $a,
1041
+ isRegExp: Ia,
1042
+ maybeMap: Fa,
1043
+ merge: wa
1044
+ }, jr = va, he = Kr, ce = rr, Na = Object.prototype.hasOwnProperty, Jr = {
949
1045
  brackets: function(e) {
950
1046
  return e + "[]";
951
1047
  },
@@ -956,145 +1052,163 @@ var qe = He, Z = kt, vn = Yt, hn = qe("%TypeError%"), se = qe("%WeakMap%", !0),
956
1052
  repeat: function(e) {
957
1053
  return e;
958
1054
  }
959
- }, R = Array.isArray, Gn = Array.prototype.push, Cr = function(r, e) {
960
- Gn.apply(r, R(e) ? e : [e]);
961
- }, Hn = Date.prototype.toISOString, dr = ie.default, w = {
1055
+ }, F = Array.isArray, _a = Array.prototype.push, Yr = function(r, e) {
1056
+ _a.apply(r, F(e) ? e : [e]);
1057
+ }, Da = Date.prototype.toISOString, $r = ce.default, b = {
962
1058
  addQueryPrefix: !1,
963
1059
  allowDots: !1,
1060
+ allowEmptyArrays: !1,
1061
+ arrayFormat: "indices",
964
1062
  charset: "utf-8",
965
1063
  charsetSentinel: !1,
966
1064
  delimiter: "&",
967
1065
  encode: !0,
968
- encoder: de.encode,
1066
+ encodeDotInKeys: !1,
1067
+ encoder: he.encode,
969
1068
  encodeValuesOnly: !1,
970
- format: dr,
971
- formatter: ie.formatters[dr],
1069
+ format: $r,
1070
+ formatter: ce.formatters[$r],
972
1071
  // deprecated
973
1072
  indices: !1,
974
1073
  serializeDate: function(e) {
975
- return Hn.call(e);
1074
+ return Da.call(e);
976
1075
  },
977
1076
  skipNulls: !1,
978
1077
  strictNullHandling: !1
979
- }, Vn = function(e) {
1078
+ }, Ra = function(e) {
980
1079
  return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
981
- }, Ce = {}, zn = function r(e, t, n, o, a, l, i, c, f, u, m, p, h, d, A, F) {
982
- for (var v = e, _ = F, C = 0, G = !1; (_ = _.get(Ce)) !== void 0 && !G; ) {
983
- var ee = _.get(e);
984
- if (C += 1, typeof ee < "u") {
985
- if (ee === C)
1080
+ }, Le = {}, Ta = function r(e, t, n, o, a, i, l, c, f, u, m, s, v, g, A, E, _, D) {
1081
+ for (var d = e, R = D, B = 0, te = !1; (R = R.get(Le)) !== void 0 && !te; ) {
1082
+ var q = R.get(e);
1083
+ if (B += 1, typeof q < "u") {
1084
+ if (q === B)
986
1085
  throw new RangeError("Cyclic object value");
987
- G = !0;
1086
+ te = !0;
988
1087
  }
989
- typeof _.get(Ce) > "u" && (C = 0);
1088
+ typeof R.get(Le) > "u" && (B = 0);
990
1089
  }
991
- if (typeof c == "function" ? v = c(t, v) : v instanceof Date ? v = m(v) : n === "comma" && R(v) && (v = de.maybeMap(v, function(Q) {
992
- return Q instanceof Date ? m(Q) : Q;
993
- })), v === null) {
994
- if (a)
995
- return i && !d ? i(t, w.encoder, A, "key", p) : t;
996
- v = "";
1090
+ if (typeof u == "function" ? d = u(t, d) : d instanceof Date ? d = v(d) : n === "comma" && F(d) && (d = he.maybeMap(d, function(xe) {
1091
+ return xe instanceof Date ? v(xe) : xe;
1092
+ })), d === null) {
1093
+ if (i)
1094
+ return f && !E ? f(t, b.encoder, _, "key", g) : t;
1095
+ d = "";
997
1096
  }
998
- if (Vn(v) || de.isBuffer(v)) {
999
- if (i) {
1000
- var ce = d ? t : i(t, w.encoder, A, "key", p);
1001
- return [h(ce) + "=" + h(i(v, w.encoder, A, "value", p))];
1097
+ if (Ra(d) || he.isBuffer(d)) {
1098
+ if (f) {
1099
+ var se = E ? t : f(t, b.encoder, _, "key", g);
1100
+ return [A(se) + "=" + A(f(d, b.encoder, _, "value", g))];
1002
1101
  }
1003
- return [h(t) + "=" + h(String(v))];
1102
+ return [A(t) + "=" + A(String(d))];
1004
1103
  }
1005
- var U = [];
1006
- if (typeof v > "u")
1007
- return U;
1104
+ var W = [];
1105
+ if (typeof d > "u")
1106
+ return W;
1008
1107
  var T;
1009
- if (n === "comma" && R(v))
1010
- d && i && (v = de.maybeMap(v, i)), T = [{ value: v.length > 0 ? v.join(",") || null : void 0 }];
1011
- else if (R(c))
1012
- T = c;
1108
+ if (n === "comma" && F(d))
1109
+ E && f && (d = he.maybeMap(d, f)), T = [{ value: d.length > 0 ? d.join(",") || null : void 0 }];
1110
+ else if (F(u))
1111
+ T = u;
1013
1112
  else {
1014
- var H = Object.keys(v);
1015
- T = f ? H.sort(f) : H;
1113
+ var pe = Object.keys(d);
1114
+ T = m ? pe.sort(m) : pe;
1016
1115
  }
1017
- for (var V = o && R(v) && v.length === 1 ? t + "[]" : t, re = 0; re < T.length; ++re) {
1018
- var x = T[re], $ = typeof x == "object" && typeof x.value < "u" ? x.value : v[x];
1019
- if (!(l && $ === null)) {
1020
- var z = R(v) ? typeof n == "function" ? n(V, x) : V : V + (u ? "." + x : "[" + x + "]");
1021
- F.set(e, C);
1022
- var fe = Rr();
1023
- fe.set(Ce, F), Cr(U, r(
1024
- $,
1025
- z,
1116
+ var z = c ? t.replace(/\./g, "%2E") : t, $ = o && F(d) && d.length === 1 ? z + "[]" : z;
1117
+ if (a && F(d) && d.length === 0)
1118
+ return $ + "[]";
1119
+ for (var C = 0; C < T.length; ++C) {
1120
+ var M = T[C], ne = typeof M == "object" && typeof M.value < "u" ? M.value : d[M];
1121
+ if (!(l && ne === null)) {
1122
+ var $e = s && c ? M.replace(/\./g, "%2E") : M, tt = F(d) ? typeof n == "function" ? n($, $e) : $ : $ + (s ? "." + $e : "[" + $e + "]");
1123
+ D.set(e, B);
1124
+ var tr = jr();
1125
+ tr.set(Le, D), Yr(W, r(
1126
+ ne,
1127
+ tt,
1026
1128
  n,
1027
1129
  o,
1028
1130
  a,
1131
+ i,
1029
1132
  l,
1030
- n === "comma" && d && R(v) ? null : i,
1031
1133
  c,
1032
- f,
1134
+ n === "comma" && E && F(d) ? null : f,
1033
1135
  u,
1034
1136
  m,
1035
- p,
1036
- h,
1037
- d,
1137
+ s,
1138
+ v,
1139
+ g,
1038
1140
  A,
1039
- fe
1141
+ E,
1142
+ _,
1143
+ tr
1040
1144
  ));
1041
1145
  }
1042
1146
  }
1043
- return U;
1044
- }, Qn = function(e) {
1147
+ return W;
1148
+ }, Ca = function(e) {
1045
1149
  if (!e)
1046
- return w;
1150
+ return b;
1151
+ if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
1152
+ throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
1153
+ if (typeof e.encodeDotInKeys < "u" && typeof e.encodeDotInKeys != "boolean")
1154
+ throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
1047
1155
  if (e.encoder !== null && typeof e.encoder < "u" && typeof e.encoder != "function")
1048
1156
  throw new TypeError("Encoder has to be a function.");
1049
- var t = e.charset || w.charset;
1157
+ var t = e.charset || b.charset;
1050
1158
  if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
1051
1159
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
1052
- var n = ie.default;
1160
+ var n = ce.default;
1053
1161
  if (typeof e.format < "u") {
1054
- if (!Wn.call(ie.formatters, e.format))
1162
+ if (!Na.call(ce.formatters, e.format))
1055
1163
  throw new TypeError("Unknown format option provided.");
1056
1164
  n = e.format;
1057
1165
  }
1058
- var o = ie.formatters[n], a = w.filter;
1059
- return (typeof e.filter == "function" || R(e.filter)) && (a = e.filter), {
1060
- addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : w.addQueryPrefix,
1061
- allowDots: typeof e.allowDots > "u" ? w.allowDots : !!e.allowDots,
1166
+ var o = ce.formatters[n], a = b.filter;
1167
+ (typeof e.filter == "function" || F(e.filter)) && (a = e.filter);
1168
+ var i;
1169
+ if (e.arrayFormat in Jr ? i = e.arrayFormat : "indices" in e ? i = e.indices ? "indices" : "repeat" : i = b.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
1170
+ throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
1171
+ var l = typeof e.allowDots > "u" ? e.encodeDotInKeys === !0 ? !0 : b.allowDots : !!e.allowDots;
1172
+ return {
1173
+ addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : b.addQueryPrefix,
1174
+ allowDots: l,
1175
+ allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : b.allowEmptyArrays,
1176
+ arrayFormat: i,
1062
1177
  charset: t,
1063
- charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : w.charsetSentinel,
1064
- delimiter: typeof e.delimiter > "u" ? w.delimiter : e.delimiter,
1065
- encode: typeof e.encode == "boolean" ? e.encode : w.encode,
1066
- encoder: typeof e.encoder == "function" ? e.encoder : w.encoder,
1067
- encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : w.encodeValuesOnly,
1178
+ charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : b.charsetSentinel,
1179
+ commaRoundTrip: e.commaRoundTrip,
1180
+ delimiter: typeof e.delimiter > "u" ? b.delimiter : e.delimiter,
1181
+ encode: typeof e.encode == "boolean" ? e.encode : b.encode,
1182
+ encodeDotInKeys: typeof e.encodeDotInKeys == "boolean" ? e.encodeDotInKeys : b.encodeDotInKeys,
1183
+ encoder: typeof e.encoder == "function" ? e.encoder : b.encoder,
1184
+ encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : b.encodeValuesOnly,
1068
1185
  filter: a,
1069
1186
  format: n,
1070
1187
  formatter: o,
1071
- serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : w.serializeDate,
1072
- skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : w.skipNulls,
1188
+ serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : b.serializeDate,
1189
+ skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : b.skipNulls,
1073
1190
  sort: typeof e.sort == "function" ? e.sort : null,
1074
- strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : w.strictNullHandling
1191
+ strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : b.strictNullHandling
1075
1192
  };
1076
- }, qn = function(r, e) {
1077
- var t = r, n = Qn(e), o, a;
1078
- typeof n.filter == "function" ? (a = n.filter, t = a("", t)) : R(n.filter) && (a = n.filter, o = a);
1079
- var l = [];
1193
+ }, Ma = function(r, e) {
1194
+ var t = r, n = Ca(e), o, a;
1195
+ typeof n.filter == "function" ? (a = n.filter, t = a("", t)) : F(n.filter) && (a = n.filter, o = a);
1196
+ var i = [];
1080
1197
  if (typeof t != "object" || t === null)
1081
1198
  return "";
1082
- var i;
1083
- e && e.arrayFormat in yr ? i = e.arrayFormat : e && "indices" in e ? i = e.indices ? "indices" : "repeat" : i = "indices";
1084
- var c = yr[i];
1085
- if (e && "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
1086
- throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
1087
- var f = c === "comma" && e && e.commaRoundTrip;
1199
+ var l = Jr[n.arrayFormat], c = l === "comma" && n.commaRoundTrip;
1088
1200
  o || (o = Object.keys(t)), n.sort && o.sort(n.sort);
1089
- for (var u = Rr(), m = 0; m < o.length; ++m) {
1090
- var p = o[m];
1091
- n.skipNulls && t[p] === null || Cr(l, zn(
1092
- t[p],
1093
- p,
1201
+ for (var f = jr(), u = 0; u < o.length; ++u) {
1202
+ var m = o[u];
1203
+ n.skipNulls && t[m] === null || Yr(i, Ta(
1204
+ t[m],
1205
+ m,
1206
+ l,
1094
1207
  c,
1095
- f,
1208
+ n.allowEmptyArrays,
1096
1209
  n.strictNullHandling,
1097
1210
  n.skipNulls,
1211
+ n.encodeDotInKeys,
1098
1212
  n.encode ? n.encoder : null,
1099
1213
  n.filter,
1100
1214
  n.sort,
@@ -1104,151 +1218,166 @@ var qe = He, Z = kt, vn = Yt, hn = qe("%TypeError%"), se = qe("%WeakMap%", !0),
1104
1218
  n.formatter,
1105
1219
  n.encodeValuesOnly,
1106
1220
  n.charset,
1107
- u
1221
+ f
1108
1222
  ));
1109
1223
  }
1110
- var h = l.join(n.delimiter), d = n.addQueryPrefix === !0 ? "?" : "";
1111
- return n.charsetSentinel && (n.charset === "iso-8859-1" ? d += "utf8=%26%2310003%3B&" : d += "utf8=%E2%9C%93&"), h.length > 0 ? d + h : "";
1112
- }, X = $r, Le = Object.prototype.hasOwnProperty, jn = Array.isArray, g = {
1224
+ var s = i.join(n.delimiter), v = n.addQueryPrefix === !0 ? "?" : "";
1225
+ return n.charsetSentinel && (n.charset === "iso-8859-1" ? v += "utf8=%26%2310003%3B&" : v += "utf8=%E2%9C%93&"), s.length > 0 ? v + s : "";
1226
+ }, Z = Kr, Qe = Object.prototype.hasOwnProperty, ka = Array.isArray, h = {
1113
1227
  allowDots: !1,
1228
+ allowEmptyArrays: !1,
1114
1229
  allowPrototypes: !1,
1115
1230
  allowSparse: !1,
1116
1231
  arrayLimit: 20,
1117
1232
  charset: "utf-8",
1118
1233
  charsetSentinel: !1,
1119
1234
  comma: !1,
1120
- decoder: X.decode,
1235
+ decodeDotInKeys: !0,
1236
+ decoder: Z.decode,
1121
1237
  delimiter: "&",
1122
1238
  depth: 5,
1239
+ duplicates: "combine",
1123
1240
  ignoreQueryPrefix: !1,
1124
1241
  interpretNumericEntities: !1,
1125
1242
  parameterLimit: 1e3,
1126
1243
  parseArrays: !0,
1127
1244
  plainObjects: !1,
1128
1245
  strictNullHandling: !1
1129
- }, Jn = function(r) {
1246
+ }, Ua = function(r) {
1130
1247
  return r.replace(/&#(\d+);/g, function(e, t) {
1131
1248
  return String.fromCharCode(parseInt(t, 10));
1132
1249
  });
1133
- }, Tr = function(r, e) {
1250
+ }, Xr = function(r, e) {
1134
1251
  return r && typeof r == "string" && e.comma && r.indexOf(",") > -1 ? r.split(",") : r;
1135
- }, Yn = "utf8=%26%2310003%3B", Kn = "utf8=%E2%9C%93", Xn = function(e, t) {
1136
- var n = { __proto__: null }, o = t.ignoreQueryPrefix ? e.replace(/^\?/, "") : e, a = t.parameterLimit === 1 / 0 ? void 0 : t.parameterLimit, l = o.split(t.delimiter, a), i = -1, c, f = t.charset;
1252
+ }, La = "utf8=%26%2310003%3B", Ba = "utf8=%E2%9C%93", Wa = function(e, t) {
1253
+ var n = { __proto__: null }, o = t.ignoreQueryPrefix ? e.replace(/^\?/, "") : e, a = t.parameterLimit === 1 / 0 ? void 0 : t.parameterLimit, i = o.split(t.delimiter, a), l = -1, c, f = t.charset;
1137
1254
  if (t.charsetSentinel)
1138
- for (c = 0; c < l.length; ++c)
1139
- l[c].indexOf("utf8=") === 0 && (l[c] === Kn ? f = "utf-8" : l[c] === Yn && (f = "iso-8859-1"), i = c, c = l.length);
1140
- for (c = 0; c < l.length; ++c)
1141
- if (c !== i) {
1142
- var u = l[c], m = u.indexOf("]="), p = m === -1 ? u.indexOf("=") : m + 1, h, d;
1143
- p === -1 ? (h = t.decoder(u, g.decoder, f, "key"), d = t.strictNullHandling ? null : "") : (h = t.decoder(u.slice(0, p), g.decoder, f, "key"), d = X.maybeMap(
1144
- Tr(u.slice(p + 1), t),
1145
- function(A) {
1146
- return t.decoder(A, g.decoder, f, "value");
1255
+ for (c = 0; c < i.length; ++c)
1256
+ i[c].indexOf("utf8=") === 0 && (i[c] === Ba ? f = "utf-8" : i[c] === La && (f = "iso-8859-1"), l = c, c = i.length);
1257
+ for (c = 0; c < i.length; ++c)
1258
+ if (c !== l) {
1259
+ var u = i[c], m = u.indexOf("]="), s = m === -1 ? u.indexOf("=") : m + 1, v, g;
1260
+ s === -1 ? (v = t.decoder(u, h.decoder, f, "key"), g = t.strictNullHandling ? null : "") : (v = t.decoder(u.slice(0, s), h.decoder, f, "key"), g = Z.maybeMap(
1261
+ Xr(u.slice(s + 1), t),
1262
+ function(E) {
1263
+ return t.decoder(E, h.decoder, f, "value");
1147
1264
  }
1148
- )), d && t.interpretNumericEntities && f === "iso-8859-1" && (d = Jn(d)), u.indexOf("[]=") > -1 && (d = jn(d) ? [d] : d), Le.call(n, h) ? n[h] = X.combine(n[h], d) : n[h] = d;
1265
+ )), g && t.interpretNumericEntities && f === "iso-8859-1" && (g = Ua(g)), u.indexOf("[]=") > -1 && (g = ka(g) ? [g] : g);
1266
+ var A = Qe.call(n, v);
1267
+ A && t.duplicates === "combine" ? n[v] = Z.combine(n[v], g) : (!A || t.duplicates === "last") && (n[v] = g);
1149
1268
  }
1150
1269
  return n;
1151
- }, Zn = function(r, e, t, n) {
1152
- for (var o = n ? e : Tr(e, t), a = r.length - 1; a >= 0; --a) {
1153
- var l, i = r[a];
1154
- if (i === "[]" && t.parseArrays)
1155
- l = [].concat(o);
1270
+ }, Ga = function(r, e, t, n) {
1271
+ for (var o = n ? e : Xr(e, t), a = r.length - 1; a >= 0; --a) {
1272
+ var i, l = r[a];
1273
+ if (l === "[]" && t.parseArrays)
1274
+ i = t.allowEmptyArrays && o === "" ? [] : [].concat(o);
1156
1275
  else {
1157
- l = t.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
1158
- var c = i.charAt(0) === "[" && i.charAt(i.length - 1) === "]" ? i.slice(1, -1) : i, f = parseInt(c, 10);
1159
- !t.parseArrays && c === "" ? l = { 0: o } : !isNaN(f) && i !== c && String(f) === c && f >= 0 && t.parseArrays && f <= t.arrayLimit ? (l = [], l[f] = o) : c !== "__proto__" && (l[c] = o);
1276
+ i = t.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
1277
+ var c = l.charAt(0) === "[" && l.charAt(l.length - 1) === "]" ? l.slice(1, -1) : l, f = t.decodeDotInKeys ? c.replace(/%2E/g, ".") : c, u = parseInt(f, 10);
1278
+ !t.parseArrays && f === "" ? i = { 0: o } : !isNaN(u) && l !== f && String(u) === f && u >= 0 && t.parseArrays && u <= t.arrayLimit ? (i = [], i[u] = o) : f !== "__proto__" && (i[f] = o);
1160
1279
  }
1161
- o = l;
1280
+ o = i;
1162
1281
  }
1163
1282
  return o;
1164
- }, ea = function(e, t, n, o) {
1283
+ }, Ha = function(e, t, n, o) {
1165
1284
  if (e) {
1166
- var a = n.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, l = /(\[[^[\]]*])/, i = /(\[[^[\]]*])/g, c = n.depth > 0 && l.exec(a), f = c ? a.slice(0, c.index) : a, u = [];
1285
+ var a = n.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, i = /(\[[^[\]]*])/, l = /(\[[^[\]]*])/g, c = n.depth > 0 && i.exec(a), f = c ? a.slice(0, c.index) : a, u = [];
1167
1286
  if (f) {
1168
- if (!n.plainObjects && Le.call(Object.prototype, f) && !n.allowPrototypes)
1287
+ if (!n.plainObjects && Qe.call(Object.prototype, f) && !n.allowPrototypes)
1169
1288
  return;
1170
1289
  u.push(f);
1171
1290
  }
1172
- for (var m = 0; n.depth > 0 && (c = i.exec(a)) !== null && m < n.depth; ) {
1173
- if (m += 1, !n.plainObjects && Le.call(Object.prototype, c[1].slice(1, -1)) && !n.allowPrototypes)
1291
+ for (var m = 0; n.depth > 0 && (c = l.exec(a)) !== null && m < n.depth; ) {
1292
+ if (m += 1, !n.plainObjects && Qe.call(Object.prototype, c[1].slice(1, -1)) && !n.allowPrototypes)
1174
1293
  return;
1175
1294
  u.push(c[1]);
1176
1295
  }
1177
- return c && u.push("[" + a.slice(c.index) + "]"), Zn(u, t, n, o);
1296
+ return c && u.push("[" + a.slice(c.index) + "]"), Ga(u, t, n, o);
1178
1297
  }
1179
- }, ra = function(e) {
1298
+ }, Va = function(e) {
1180
1299
  if (!e)
1181
- return g;
1182
- if (e.decoder !== null && e.decoder !== void 0 && typeof e.decoder != "function")
1300
+ return h;
1301
+ if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
1302
+ throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
1303
+ if (typeof e.decodeDotInKeys < "u" && typeof e.decodeDotInKeys != "boolean")
1304
+ throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");
1305
+ if (e.decoder !== null && typeof e.decoder < "u" && typeof e.decoder != "function")
1183
1306
  throw new TypeError("Decoder has to be a function.");
1184
1307
  if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
1185
1308
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
1186
- var t = typeof e.charset > "u" ? g.charset : e.charset;
1309
+ var t = typeof e.charset > "u" ? h.charset : e.charset, n = typeof e.duplicates > "u" ? h.duplicates : e.duplicates;
1310
+ if (n !== "combine" && n !== "first" && n !== "last")
1311
+ throw new TypeError("The duplicates option must be either combine, first, or last");
1312
+ var o = typeof e.allowDots > "u" ? e.decodeDotInKeys === !0 ? !0 : h.allowDots : !!e.allowDots;
1187
1313
  return {
1188
- allowDots: typeof e.allowDots > "u" ? g.allowDots : !!e.allowDots,
1189
- allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes : g.allowPrototypes,
1190
- allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse : g.allowSparse,
1191
- arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit : g.arrayLimit,
1314
+ allowDots: o,
1315
+ allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : h.allowEmptyArrays,
1316
+ allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes : h.allowPrototypes,
1317
+ allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse : h.allowSparse,
1318
+ arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit : h.arrayLimit,
1192
1319
  charset: t,
1193
- charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : g.charsetSentinel,
1194
- comma: typeof e.comma == "boolean" ? e.comma : g.comma,
1195
- decoder: typeof e.decoder == "function" ? e.decoder : g.decoder,
1196
- delimiter: typeof e.delimiter == "string" || X.isRegExp(e.delimiter) ? e.delimiter : g.delimiter,
1320
+ charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : h.charsetSentinel,
1321
+ comma: typeof e.comma == "boolean" ? e.comma : h.comma,
1322
+ decodeDotInKeys: typeof e.decodeDotInKeys == "boolean" ? e.decodeDotInKeys : h.decodeDotInKeys,
1323
+ decoder: typeof e.decoder == "function" ? e.decoder : h.decoder,
1324
+ delimiter: typeof e.delimiter == "string" || Z.isRegExp(e.delimiter) ? e.delimiter : h.delimiter,
1197
1325
  // eslint-disable-next-line no-implicit-coercion, no-extra-parens
1198
- depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth : g.depth,
1326
+ depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth : h.depth,
1327
+ duplicates: n,
1199
1328
  ignoreQueryPrefix: e.ignoreQueryPrefix === !0,
1200
- interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities : g.interpretNumericEntities,
1201
- parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit : g.parameterLimit,
1329
+ interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities : h.interpretNumericEntities,
1330
+ parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit : h.parameterLimit,
1202
1331
  parseArrays: e.parseArrays !== !1,
1203
- plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects : g.plainObjects,
1204
- strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : g.strictNullHandling
1332
+ plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects : h.plainObjects,
1333
+ strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : h.strictNullHandling
1205
1334
  };
1206
- }, ta = function(r, e) {
1207
- var t = ra(e);
1335
+ }, qa = function(r, e) {
1336
+ var t = Va(e);
1208
1337
  if (r === "" || r === null || typeof r > "u")
1209
1338
  return t.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
1210
- for (var n = typeof r == "string" ? Xn(r, t) : r, o = t.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, a = Object.keys(n), l = 0; l < a.length; ++l) {
1211
- var i = a[l], c = ea(i, n[i], t, typeof r == "string");
1212
- o = X.merge(o, c, t);
1339
+ for (var n = typeof r == "string" ? Wa(r, t) : r, o = t.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, a = Object.keys(n), i = 0; i < a.length; ++i) {
1340
+ var l = a[i], c = Ha(l, n[l], t, typeof r == "string");
1341
+ o = Z.merge(o, c, t);
1213
1342
  }
1214
- return t.allowSparse === !0 ? o : X.compact(o);
1215
- }, na = qn, aa = ta, oa = Je, ia = {
1216
- formats: oa,
1217
- parse: aa,
1218
- stringify: na
1343
+ return t.allowSparse === !0 ? o : Z.compact(o);
1344
+ }, za = Ma, Qa = qa, Ka = rr, ja = {
1345
+ formats: Ka,
1346
+ parse: Qa,
1347
+ stringify: za
1219
1348
  };
1220
- const Dr = /* @__PURE__ */ ft(ia), la = (r) => Dr.parse(r, { ignoreQueryPrefix: !0 }), Oa = (r) => Dr.stringify(r, { arrayFormat: "brackets" }), ca = (r = !1) => {
1221
- const [e, t] = Oe(r), n = ne(() => t((l) => !l), []), o = ne(() => t(!0), []), a = ne(() => t(!1), []);
1349
+ const Zr = /* @__PURE__ */ Ft(ja), Ja = (r) => Zr.parse(r, { ignoreQueryPrefix: !0 }), so = (r) => Zr.stringify(r, { arrayFormat: "brackets" }), Ya = (r = !1) => {
1350
+ const [e, t] = Ie(r), n = oe(() => t((i) => !i), []), o = oe(() => t(!0), []), a = oe(() => t(!1), []);
1222
1351
  return [e, n, o, a];
1223
- }, Aa = (r = !1, e = 2e3, t = window.setTimeout, n = window.clearTimeout) => {
1224
- const [o, a] = Oe(r), l = ve(r), i = ve(), c = ne(() => {
1225
- a(!l.current), i.current && n(i.current), i.current = t(() => a(l.current), e);
1352
+ }, po = (r = !1, e = 2e3, t = window.setTimeout, n = window.clearTimeout) => {
1353
+ const [o, a] = Ie(r), i = Se(r), l = Se(), c = oe(() => {
1354
+ a(!i.current), l.current && n(l.current), l.current = t(() => a(i.current), e);
1226
1355
  }, [n, e, t]);
1227
1356
  return [o, c];
1228
- }, Mr = () => {
1229
- const { current: r } = ve(`dom-${ct()}`);
1357
+ }, et = () => {
1358
+ const { current: r } = Se(`dom-${$t()}`);
1230
1359
  return r;
1231
- }, Pa = () => ve(null), Ea = () => {
1232
- const { search: r } = Zr();
1233
- return Yr(() => la(r), [r]);
1234
- }, kr = ({ checked: r = !1, onChange: e, className: t, children: n, type: o, inline: a = !1 }) => {
1235
- const l = Mr(), i = (u) => e == null ? void 0 : e(u.target.checked, u), c = {
1360
+ }, yo = () => Se(null), mo = () => {
1361
+ const { search: r } = ht();
1362
+ return mt(() => Ja(r), [r]);
1363
+ }, rt = ({ checked: r = !1, onChange: e, className: t, children: n, type: o, inline: a = !1 }) => {
1364
+ const i = et(), l = (u) => e == null ? void 0 : e(u.target.checked, u), c = {
1236
1365
  "form-switch": o === "switch",
1237
1366
  "form-checkbox": o === "checkbox"
1238
1367
  }, f = a ? { display: "inline-block" } : {};
1239
- return /* @__PURE__ */ P("span", { className: E("form-check", c, t), style: f, children: [
1240
- /* @__PURE__ */ y("input", { type: "checkbox", className: "form-check-input", id: l, checked: r, onChange: i }),
1241
- /* @__PURE__ */ y("label", { className: "form-check-label", htmlFor: l, children: n })
1368
+ return /* @__PURE__ */ P("span", { className: I("form-check", c, t), style: f, children: [
1369
+ /* @__PURE__ */ y("input", { type: "checkbox", className: "form-check-input", id: i, checked: r, onChange: l }),
1370
+ /* @__PURE__ */ y("label", { className: "form-check-label", htmlFor: i, children: n })
1242
1371
  ] });
1243
- }, xa = (r) => /* @__PURE__ */ y(kr, { type: "checkbox", ...r }), Na = (r) => /* @__PURE__ */ y(kr, { type: "switch", ...r }), fa = ({ children: r, label: e, className: t = "", labelClassName: n = "", noMargin: o = !1, id: a }) => /* @__PURE__ */ P("div", { className: `${t} ${o ? "" : "mb-3"}`, children: [
1372
+ }, vo = (r) => /* @__PURE__ */ y(rt, { type: "checkbox", ...r }), go = (r) => /* @__PURE__ */ y(rt, { type: "switch", ...r }), Xa = ({ children: r, label: e, className: t = "", labelClassName: n = "", noMargin: o = !1, id: a }) => /* @__PURE__ */ P("div", { className: `${t} ${o ? "" : "mb-3"}`, children: [
1244
1373
  /* @__PURE__ */ y("label", { className: `form-label ${n}`, htmlFor: a, children: e }),
1245
1374
  r
1246
- ] }), Ia = ({ children: r, value: e, onChange: t, type: n, required: o, placeholder: a, className: l, labelClassName: i }) => {
1247
- const c = Mr();
1248
- return /* @__PURE__ */ y(fa, { label: /* @__PURE__ */ P(Te, { children: [
1375
+ ] }), ho = ({ children: r, value: e, onChange: t, type: n, required: o, placeholder: a, className: i, labelClassName: l }) => {
1376
+ const c = et();
1377
+ return /* @__PURE__ */ y(Xa, { label: /* @__PURE__ */ P(Be, { children: [
1249
1378
  r,
1250
1379
  ":"
1251
- ] }), className: l, labelClassName: i, id: c, children: /* @__PURE__ */ y(
1380
+ ] }), className: i, labelClassName: l, id: c, children: /* @__PURE__ */ y(
1252
1381
  "input",
1253
1382
  {
1254
1383
  id: c,
@@ -1260,68 +1389,68 @@ const Dr = /* @__PURE__ */ ft(ia), la = (r) => Dr.parse(r, { ignoreQueryPrefix:
1260
1389
  onChange: (f) => t(f.target.value)
1261
1390
  }
1262
1391
  ) });
1263
- }, ua = 500;
1264
- let me;
1265
- const mr = () => {
1266
- me && clearTimeout(me), me = null;
1267
- }, Fa = ({ onChange: r, className: e, large: t = !0, noBorder: n = !1, initialValue: o = "", setTimeout_: a = setTimeout }) => {
1268
- const [l, i] = Oe(o), c = (f, u = ua) => {
1269
- i(f), mr(), me = a(() => {
1270
- r(f), mr();
1392
+ }, Za = 500;
1393
+ let be;
1394
+ const xr = () => {
1395
+ be && clearTimeout(be), be = null;
1396
+ }, bo = ({ onChange: r, className: e, large: t = !0, noBorder: n = !1, initialValue: o = "", setTimeout_: a = setTimeout }) => {
1397
+ const [i, l] = Ie(o), c = (f, u = Za) => {
1398
+ l(f), xr(), be = a(() => {
1399
+ r(f), xr();
1271
1400
  }, u);
1272
1401
  };
1273
- return /* @__PURE__ */ P("div", { className: E("search-field", e), children: [
1402
+ return /* @__PURE__ */ P("div", { className: I("search-field", e), children: [
1274
1403
  /* @__PURE__ */ y(
1275
1404
  "input",
1276
1405
  {
1277
1406
  type: "text",
1278
- className: E("form-control search-field__input", {
1407
+ className: I("form-control search-field__input", {
1279
1408
  "form-control-lg": t,
1280
1409
  "search-field__input--no-border": n
1281
1410
  }),
1282
1411
  placeholder: "Search...",
1283
- value: l,
1412
+ value: i,
1284
1413
  onChange: (f) => c(f.target.value)
1285
1414
  }
1286
1415
  ),
1287
- /* @__PURE__ */ y(we, { icon: Br, className: "search-field__icon" }),
1416
+ /* @__PURE__ */ y(Pe, { icon: at, className: "search-field__icon" }),
1288
1417
  /* @__PURE__ */ y(
1289
1418
  "button",
1290
1419
  {
1291
1420
  "aria-label": "Clear search",
1292
1421
  type: "button",
1293
1422
  className: "close search-field__close btn-close",
1294
- hidden: l === "",
1423
+ hidden: i === "",
1295
1424
  id: "search-field__close",
1296
1425
  onClick: () => c("", 0)
1297
1426
  }
1298
1427
  )
1299
1428
  ] });
1300
- }, pa = ({
1429
+ }, eo = ({
1301
1430
  text: r,
1302
1431
  disabled: e = !1,
1303
1432
  className: t,
1304
1433
  children: n,
1305
1434
  dropdownClassName: o,
1306
1435
  noCaret: a,
1307
- end: l = !1,
1308
- minWidth: i,
1436
+ end: i = !1,
1437
+ minWidth: l,
1309
1438
  inline: c,
1310
1439
  size: f,
1311
1440
  ...u
1312
1441
  }) => {
1313
- const [m, p] = ca(), h = E("dropdown-btn__toggle", t, {
1442
+ const [m, s] = Ya(), v = I("dropdown-btn__toggle", t, {
1314
1443
  "btn-block": !c,
1315
1444
  "dropdown-btn__toggle--with-caret": !a
1316
- }), d = { minWidth: i && `${i}px` };
1317
- return /* @__PURE__ */ P(zr, { isOpen: m, toggle: p, disabled: e, className: o, children: [
1318
- /* @__PURE__ */ y(hr, { size: f, caret: !a, className: h, color: "primary", ...u, children: r }),
1319
- /* @__PURE__ */ y(gr, { className: "w-100", end: l, style: d, children: n })
1445
+ }), g = { minWidth: l && `${l}px` };
1446
+ return /* @__PURE__ */ P(ut, { isOpen: m, toggle: s, disabled: e, className: o, children: [
1447
+ /* @__PURE__ */ y(Nr, { size: f, caret: !a, className: v, color: "primary", ...u, children: r }),
1448
+ /* @__PURE__ */ y(_r, { className: "w-100", end: i, style: g, children: n })
1320
1449
  ] });
1321
- }, _a = ({ children: r, minWidth: e, label: t = "Options" }) => /* @__PURE__ */ y(
1322
- pa,
1450
+ }, So = ({ children: r, minWidth: e, label: t = "Options" }) => /* @__PURE__ */ y(
1451
+ eo,
1323
1452
  {
1324
- text: /* @__PURE__ */ y(we, { className: "px-1", icon: Lr }),
1453
+ text: /* @__PURE__ */ y(Pe, { className: "px-1", icon: ot }),
1325
1454
  "aria-label": t,
1326
1455
  size: "sm",
1327
1456
  minWidth: e,
@@ -1330,42 +1459,42 @@ const mr = () => {
1330
1459
  inline: !0,
1331
1460
  children: r
1332
1461
  }
1333
- ), sa = ({ children: r, ...e }) => /* @__PURE__ */ y(Qr, { children: /* @__PURE__ */ y(qr, { className: "nav-pills__nav-link", tag: et, ...e, children: r }) }), $a = ({ children: r, fill: e = !1, className: t = "" }) => /* @__PURE__ */ y(We, { className: `nav-pills__nav p-0 overflow-hidden ${t}`, body: !0, children: /* @__PURE__ */ y(jr, { pills: !0, fill: e, children: Kr.map(r, (n) => {
1334
- if (!Xr(n) || n.type !== sa)
1462
+ ), ro = ({ children: r, ...e }) => /* @__PURE__ */ y(st, { children: /* @__PURE__ */ y(pt, { className: "nav-pills__nav-link", tag: bt, ...e, children: r }) }), wo = ({ children: r, fill: e = !1, className: t = "" }) => /* @__PURE__ */ y(Ke, { className: `nav-pills__nav p-0 overflow-hidden ${t}`, body: !0, children: /* @__PURE__ */ y(yt, { pills: !0, fill: e, children: vt.map(r, (n) => {
1463
+ if (!gt(n) || n.type !== ro)
1335
1464
  throw new Error("Only NavPillItem children are allowed inside NavPills.");
1336
1465
  return n;
1337
- }) }) }), ya = (r, e, t) => r !== e ? "ASC" : t ? {
1466
+ }) }) }), to = (r, e, t) => r !== e ? "ASC" : t ? {
1338
1467
  ASC: "DESC",
1339
1468
  DESC: void 0
1340
- }[t] : "ASC", Ra = (r, { field: e, dir: t }) => !e || !t ? r : r.sort((n, o) => {
1341
- const a = t === "ASC" ? 1 : -1, l = t === "ASC" ? -1 : 1;
1342
- return n[e] > o[e] ? a : l;
1343
- }), Ca = (r) => r.dir ? `${r.field}-${r.dir}` : void 0, Ta = (r) => {
1469
+ }[t] : "ASC", Ao = (r, { field: e, dir: t }) => !e || !t ? r : r.sort((n, o) => {
1470
+ const a = t === "ASC" ? 1 : -1, i = t === "ASC" ? -1 : 1;
1471
+ return n[e] > o[e] ? a : i;
1472
+ }), Oo = (r) => r.dir ? `${r.field}-${r.dir}` : void 0, Eo = (r) => {
1344
1473
  const [e, t] = r.split("-");
1345
1474
  return { field: e, dir: t };
1346
- }, Da = (r) => {
1347
- const [e, t] = Oe(r), n = ne((o, a) => t({ field: o, dir: a }), []);
1475
+ }, Po = (r) => {
1476
+ const [e, t] = Ie(r), n = oe((o, a) => t({ field: o, dir: a }), []);
1348
1477
  return [e, n];
1349
1478
  };
1350
- function Ma({ items: r, order: e, onChange: t, isButton: n = !0, right: o = !1, prefixed: a = !0 }) {
1351
- const l = (i) => () => {
1352
- const c = ya(i, e.field, e.dir);
1353
- t(c ? i : void 0, c);
1479
+ function Io({ items: r, order: e, onChange: t, isButton: n = !0, right: o = !1, prefixed: a = !0 }) {
1480
+ const i = (l) => () => {
1481
+ const c = to(l, e.field, e.dir);
1482
+ t(c ? l : void 0, c);
1354
1483
  };
1355
- return /* @__PURE__ */ P(Jr, { children: [
1484
+ return /* @__PURE__ */ P(dt, { children: [
1356
1485
  /* @__PURE__ */ P(
1357
- hr,
1486
+ Nr,
1358
1487
  {
1359
1488
  caret: !0,
1360
1489
  color: n ? "primary" : "link",
1361
- className: E({
1490
+ className: I({
1362
1491
  "dropdown-btn__toggle btn-block pe-4 overflow-hidden": n,
1363
1492
  "btn-sm p-0": !n
1364
1493
  }),
1365
1494
  children: [
1366
- !n && /* @__PURE__ */ y(Te, { children: "Order by" }),
1495
+ !n && /* @__PURE__ */ y(Be, { children: "Order by" }),
1367
1496
  n && !e.field && /* @__PURE__ */ y("i", { children: "Order by..." }),
1368
- n && e.field && /* @__PURE__ */ P(Te, { children: [
1497
+ n && e.field && /* @__PURE__ */ P(Be, { children: [
1369
1498
  a && "Order by: ",
1370
1499
  r[e.field],
1371
1500
  " - ",
@@ -1375,68 +1504,68 @@ function Ma({ items: r, order: e, onChange: t, isButton: n = !0, right: o = !1,
1375
1504
  }
1376
1505
  ),
1377
1506
  /* @__PURE__ */ P(
1378
- gr,
1507
+ _r,
1379
1508
  {
1380
1509
  end: o,
1381
- className: E("w-100", { "ordering-dropdown__menu--link": !n }),
1510
+ className: I("w-100", { "ordering-dropdown__menu--link": !n }),
1382
1511
  children: [
1383
- Object.entries(r).map(([i, c]) => /* @__PURE__ */ P(Ae, { active: e.field === i, onClick: l(i), children: [
1512
+ Object.entries(r).map(([l, c]) => /* @__PURE__ */ P(Fe, { active: e.field === l, onClick: i(l), children: [
1384
1513
  c,
1385
- e.field === i && /* @__PURE__ */ y(
1386
- we,
1514
+ e.field === l && /* @__PURE__ */ y(
1515
+ Pe,
1387
1516
  {
1388
- icon: e.dir === "ASC" ? Wr : Gr,
1517
+ icon: e.dir === "ASC" ? it : lt,
1389
1518
  className: "ordering-dropdown__sort-icon"
1390
1519
  }
1391
1520
  )
1392
- ] }, i)),
1393
- /* @__PURE__ */ y(Ae, { divider: !0 }),
1394
- /* @__PURE__ */ y(Ae, { disabled: !e.field, onClick: () => t(), children: /* @__PURE__ */ y("i", { children: "Clear selection" }) })
1521
+ ] }, l)),
1522
+ /* @__PURE__ */ y(Fe, { divider: !0 }),
1523
+ /* @__PURE__ */ y(Fe, { disabled: !e.field, onClick: () => t(), children: /* @__PURE__ */ y("i", { children: "Clear selection" }) })
1395
1524
  ]
1396
1525
  }
1397
1526
  )
1398
1527
  ] });
1399
1528
  }
1400
- const ka = "#4696e5", Ua = "rgba(70, 150, 229, 0.4)", Ba = "#f77f28", La = "rgba(247, 127, 40, 0.4)", Wa = "white", Ga = "#161b22", Ha = (r) => {
1529
+ const $o = "#4696e5", xo = "rgba(70, 150, 229, 0.4)", Fo = "#f77f28", No = "rgba(247, 127, 40, 0.4)", _o = "white", Do = "#161b22", Ro = (r) => {
1401
1530
  var e;
1402
1531
  return (e = document.querySelector("html")) == null ? void 0 : e.setAttribute("data-theme", r);
1403
- }, Va = () => {
1532
+ }, To = () => {
1404
1533
  var r;
1405
1534
  return ((r = document.querySelector("html")) == null ? void 0 : r.getAttribute("data-theme")) === "dark";
1406
- }, za = (r = window.matchMedia.bind(window)) => r("(prefers-color-scheme: dark)").matches ? "dark" : "light";
1535
+ }, Co = (r = window.matchMedia.bind(window)) => r("(prefers-color-scheme: dark)").matches ? "dark" : "light";
1407
1536
  export {
1408
- xa as Checkbox,
1409
- pa as DropdownBtn,
1410
- Ba as HIGHLIGHTED_COLOR,
1411
- La as HIGHLIGHTED_COLOR_ALPHA,
1412
- Ia as InputFormGroup,
1413
- fa as LabeledFormGroup,
1414
- ka as MAIN_COLOR,
1415
- Ua as MAIN_COLOR_ALPHA,
1416
- ba as Message,
1417
- sa as NavPillItem,
1418
- $a as NavPills,
1419
- Ma as OrderingDropdown,
1420
- Ga as PRIMARY_DARK_COLOR,
1421
- Wa as PRIMARY_LIGHT_COLOR,
1422
- wa as Result,
1423
- _a as RowDropdownBtn,
1424
- Fa as SearchField,
1425
- nt as SimpleCard,
1426
- Na as ToggleSwitch,
1427
- Ha as changeThemeInMarkup,
1428
- ya as determineOrderDir,
1429
- za as getSystemPreferredTheme,
1430
- Va as isDarkThemeEnabled,
1431
- Ca as orderToString,
1432
- la as parseQuery,
1433
- Ra as sortList,
1434
- Ta as stringToOrder,
1435
- Oa as stringifyQuery,
1436
- Mr as useDomId,
1437
- Pa as useElementRef,
1438
- Da as useOrder,
1439
- Ea as useParsedQuery,
1440
- Aa as useTimeoutToggle,
1441
- ca as useToggle
1537
+ vo as Checkbox,
1538
+ eo as DropdownBtn,
1539
+ Fo as HIGHLIGHTED_COLOR,
1540
+ No as HIGHLIGHTED_COLOR_ALPHA,
1541
+ ho as InputFormGroup,
1542
+ Xa as LabeledFormGroup,
1543
+ $o as MAIN_COLOR,
1544
+ xo as MAIN_COLOR_ALPHA,
1545
+ fo as Message,
1546
+ ro as NavPillItem,
1547
+ wo as NavPills,
1548
+ Io as OrderingDropdown,
1549
+ Do as PRIMARY_DARK_COLOR,
1550
+ _o as PRIMARY_LIGHT_COLOR,
1551
+ uo as Result,
1552
+ So as RowDropdownBtn,
1553
+ bo as SearchField,
1554
+ At as SimpleCard,
1555
+ go as ToggleSwitch,
1556
+ Ro as changeThemeInMarkup,
1557
+ to as determineOrderDir,
1558
+ Co as getSystemPreferredTheme,
1559
+ To as isDarkThemeEnabled,
1560
+ Oo as orderToString,
1561
+ Ja as parseQuery,
1562
+ Ao as sortList,
1563
+ Eo as stringToOrder,
1564
+ so as stringifyQuery,
1565
+ et as useDomId,
1566
+ yo as useElementRef,
1567
+ Po as useOrder,
1568
+ mo as useParsedQuery,
1569
+ po as useTimeoutToggle,
1570
+ Ya as useToggle
1442
1571
  };