@shlinkio/shlink-frontend-kit 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +311 -305
- package/dist/index.umd.cjs +5 -5
- package/package.json +19 -15
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx as y, jsxs as P, Fragment as
|
|
2
|
-
import { faCircleNotch as Br, faSearch as
|
|
3
|
-
import { FontAwesomeIcon as
|
|
4
|
-
import { Row as
|
|
5
|
-
import { useState as
|
|
1
|
+
import { jsx as y, jsxs as P, Fragment as Te } from "react/jsx-runtime";
|
|
2
|
+
import { faCircleNotch as Br, faSearch as Lr, faEllipsisV as Wr, faSortAmountUp as Gr, faSortAmountDown as Hr } 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 Vr, CardBody as zr, Dropdown as Qr, DropdownToggle as hr, DropdownMenu as gr, 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, Children as Yr, isValidElement as Kr } from "react";
|
|
6
6
|
import { NavLink as Xr } from "react-router-dom";
|
|
7
|
-
function
|
|
7
|
+
function Sr(r) {
|
|
8
8
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
9
9
|
}
|
|
10
10
|
function Zr(r) {
|
|
@@ -28,7 +28,7 @@ function Zr(r) {
|
|
|
28
28
|
});
|
|
29
29
|
}), t;
|
|
30
30
|
}
|
|
31
|
-
var
|
|
31
|
+
var br = { exports: {} };
|
|
32
32
|
/*!
|
|
33
33
|
Copyright (c) 2018 Jed Watson.
|
|
34
34
|
Licensed under the MIT License (MIT), see
|
|
@@ -63,9 +63,9 @@ var Sr = { exports: {} };
|
|
|
63
63
|
}
|
|
64
64
|
r.exports ? (t.default = t, r.exports = t) : window.classNames = t;
|
|
65
65
|
})();
|
|
66
|
-
})(
|
|
67
|
-
var et =
|
|
68
|
-
const E = /* @__PURE__ */
|
|
66
|
+
})(br);
|
|
67
|
+
var et = br.exports;
|
|
68
|
+
const E = /* @__PURE__ */ Sr(et), rt = (r) => ({
|
|
69
69
|
error: "border-danger",
|
|
70
70
|
default: ""
|
|
71
71
|
})[r], tt = (r) => ({
|
|
@@ -76,15 +76,15 @@ const E = /* @__PURE__ */ gr(et), rt = (r) => ({
|
|
|
76
76
|
"col-md-12": o,
|
|
77
77
|
"col-md-10 offset-md-1": !o
|
|
78
78
|
});
|
|
79
|
-
return /* @__PURE__ */ y(
|
|
80
|
-
t && /* @__PURE__ */ y(
|
|
79
|
+
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: [
|
|
80
|
+
t && /* @__PURE__ */ y(we, { icon: Br, spin: !0 }),
|
|
81
81
|
t && /* @__PURE__ */ y("span", { className: "ms-2", children: e ?? "Loading..." }),
|
|
82
82
|
!t && e
|
|
83
83
|
] }) }) }) });
|
|
84
|
-
}, nt = ({ title: r, children: e, bodyClassName: t, ...n }) => /* @__PURE__ */ P(
|
|
85
|
-
r && /* @__PURE__ */ y(
|
|
86
|
-
/* @__PURE__ */ y(
|
|
87
|
-
] }), ga = ({ children: r, type: e, className: t, small: n = !1 }) => /* @__PURE__ */ y(
|
|
84
|
+
}, nt = ({ title: r, children: e, bodyClassName: t, ...n }) => /* @__PURE__ */ P(We, { ...n, children: [
|
|
85
|
+
r && /* @__PURE__ */ y(Vr, { role: "heading", children: r }),
|
|
86
|
+
/* @__PURE__ */ y(zr, { className: t, children: e })
|
|
87
|
+
] }), ga = ({ 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(
|
|
88
88
|
nt,
|
|
89
89
|
{
|
|
90
90
|
role: "document",
|
|
@@ -98,12 +98,12 @@ const E = /* @__PURE__ */ gr(et), rt = (r) => ({
|
|
|
98
98
|
children: r
|
|
99
99
|
}
|
|
100
100
|
) }) });
|
|
101
|
-
let
|
|
101
|
+
let ue;
|
|
102
102
|
const at = new Uint8Array(16);
|
|
103
103
|
function ot() {
|
|
104
|
-
if (!
|
|
104
|
+
if (!ue && (ue = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !ue))
|
|
105
105
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
106
|
-
return
|
|
106
|
+
return ue(at);
|
|
107
107
|
}
|
|
108
108
|
const b = [];
|
|
109
109
|
for (let r = 0; r < 256; ++r)
|
|
@@ -111,12 +111,12 @@ for (let r = 0; r < 256; ++r)
|
|
|
111
111
|
function it(r, e = 0) {
|
|
112
112
|
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]]).toLowerCase();
|
|
113
113
|
}
|
|
114
|
-
const lt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto),
|
|
114
|
+
const lt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Ye = {
|
|
115
115
|
randomUUID: lt
|
|
116
116
|
};
|
|
117
117
|
function ct(r, e, t) {
|
|
118
|
-
if (
|
|
119
|
-
return
|
|
118
|
+
if (Ye.randomUUID && !e && !r)
|
|
119
|
+
return Ye.randomUUID();
|
|
120
120
|
r = r || {};
|
|
121
121
|
const n = r.random || (r.rng || ot)();
|
|
122
122
|
if (n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, e) {
|
|
@@ -128,13 +128,18 @@ function ct(r, e, t) {
|
|
|
128
128
|
return it(n);
|
|
129
129
|
}
|
|
130
130
|
const ft = (r = !1) => {
|
|
131
|
-
const [e, t] =
|
|
132
|
-
return [e,
|
|
133
|
-
},
|
|
134
|
-
const
|
|
131
|
+
const [e, t] = Oe(r), n = ne(() => t((l) => !l), []), o = ne(() => t(!0), []), a = ne(() => t(!1), []);
|
|
132
|
+
return [e, n, o, a];
|
|
133
|
+
}, Sa = (r = !1, e = 2e3, t = window.setTimeout, n = window.clearTimeout) => {
|
|
134
|
+
const [o, a] = Oe(r), l = ve(r), i = ve(), c = ne(() => {
|
|
135
|
+
a(!l.current), i.current && n(i.current), i.current = t(() => a(l.current), e);
|
|
136
|
+
}, [n, e, t]);
|
|
137
|
+
return [o, c];
|
|
138
|
+
}, wr = () => {
|
|
139
|
+
const { current: r } = ve(`dom-${ct()}`);
|
|
135
140
|
return r;
|
|
136
|
-
},
|
|
137
|
-
const l =
|
|
141
|
+
}, ba = () => ve(null), Or = ({ checked: r = !1, onChange: e, className: t, children: n, type: o, inline: a = !1 }) => {
|
|
142
|
+
const l = wr(), i = (u) => e == null ? void 0 : e(u.target.checked, u), c = {
|
|
138
143
|
"form-switch": o === "switch",
|
|
139
144
|
"form-checkbox": o === "checkbox"
|
|
140
145
|
}, f = a ? { display: "inline-block" } : {};
|
|
@@ -142,12 +147,12 @@ const ft = (r = !1) => {
|
|
|
142
147
|
/* @__PURE__ */ y("input", { type: "checkbox", className: "form-check-input", id: l, checked: r, onChange: i }),
|
|
143
148
|
/* @__PURE__ */ y("label", { className: "form-check-label", htmlFor: l, children: n })
|
|
144
149
|
] });
|
|
145
|
-
},
|
|
150
|
+
}, wa = (r) => /* @__PURE__ */ y(Or, { type: "checkbox", ...r }), Oa = (r) => /* @__PURE__ */ y(Or, { type: "switch", ...r }), ut = ({ children: r, label: e, className: t = "", labelClassName: n = "", noMargin: o = !1, id: a }) => /* @__PURE__ */ P("div", { className: `${t} ${o ? "" : "mb-3"}`, children: [
|
|
146
151
|
/* @__PURE__ */ y("label", { className: `form-label ${n}`, htmlFor: a, children: e }),
|
|
147
152
|
r
|
|
148
|
-
] }),
|
|
149
|
-
const c =
|
|
150
|
-
return /* @__PURE__ */ y(ut, { label: /* @__PURE__ */ P(
|
|
153
|
+
] }), Aa = ({ children: r, value: e, onChange: t, type: n, required: o, placeholder: a, className: l, labelClassName: i }) => {
|
|
154
|
+
const c = wr();
|
|
155
|
+
return /* @__PURE__ */ y(ut, { label: /* @__PURE__ */ P(Te, { children: [
|
|
151
156
|
r,
|
|
152
157
|
":"
|
|
153
158
|
] }), className: l ?? "", labelClassName: i, id: c, children: /* @__PURE__ */ y(
|
|
@@ -164,13 +169,13 @@ const ft = (r = !1) => {
|
|
|
164
169
|
) });
|
|
165
170
|
};
|
|
166
171
|
const pt = 500;
|
|
167
|
-
let
|
|
168
|
-
const
|
|
169
|
-
|
|
170
|
-
},
|
|
171
|
-
const [l, i] =
|
|
172
|
-
i(f),
|
|
173
|
-
r(f),
|
|
172
|
+
let de;
|
|
173
|
+
const Ke = () => {
|
|
174
|
+
de && clearTimeout(de), de = null;
|
|
175
|
+
}, Pa = ({ onChange: r, className: e, large: t = !0, noBorder: n = !1, initialValue: o = "", setTimeout_: a = setTimeout }) => {
|
|
176
|
+
const [l, i] = Oe(o), c = (f, u = pt) => {
|
|
177
|
+
i(f), Ke(), de = a(() => {
|
|
178
|
+
r(f), Ke();
|
|
174
179
|
}, u);
|
|
175
180
|
};
|
|
176
181
|
return /* @__PURE__ */ P("div", { className: E("search-field", e), children: [
|
|
@@ -187,7 +192,7 @@ const Je = () => {
|
|
|
187
192
|
onChange: (f) => c(f.target.value)
|
|
188
193
|
}
|
|
189
194
|
),
|
|
190
|
-
/* @__PURE__ */ y(
|
|
195
|
+
/* @__PURE__ */ y(we, { icon: Lr, className: "search-field__icon" }),
|
|
191
196
|
/* @__PURE__ */ y(
|
|
192
197
|
"button",
|
|
193
198
|
{
|
|
@@ -217,14 +222,14 @@ const st = ({
|
|
|
217
222
|
"btn-block": !c,
|
|
218
223
|
"dropdown-btn__toggle--with-caret": !a
|
|
219
224
|
}), h = { minWidth: i && `${i}px` };
|
|
220
|
-
return /* @__PURE__ */ P(
|
|
221
|
-
/* @__PURE__ */ y(
|
|
222
|
-
/* @__PURE__ */ y(
|
|
225
|
+
return /* @__PURE__ */ P(Qr, { isOpen: u, toggle: d, disabled: e, className: o, children: [
|
|
226
|
+
/* @__PURE__ */ y(hr, { size: f, caret: !a, className: p, color: "primary", children: r }),
|
|
227
|
+
/* @__PURE__ */ y(gr, { className: "w-100", end: l, style: h, children: n })
|
|
223
228
|
] });
|
|
224
|
-
},
|
|
229
|
+
}, Ea = ({ children: r, minWidth: e }) => /* @__PURE__ */ y(
|
|
225
230
|
st,
|
|
226
231
|
{
|
|
227
|
-
text: /* @__PURE__ */ y(
|
|
232
|
+
text: /* @__PURE__ */ y(we, { className: "px-1", icon: Wr }),
|
|
228
233
|
size: "sm",
|
|
229
234
|
minWidth: e,
|
|
230
235
|
end: !0,
|
|
@@ -233,31 +238,31 @@ const st = ({
|
|
|
233
238
|
children: r
|
|
234
239
|
}
|
|
235
240
|
);
|
|
236
|
-
const yt = ({ children: r, ...e }) => /* @__PURE__ */ y(
|
|
237
|
-
if (!
|
|
241
|
+
const yt = ({ children: r, ...e }) => /* @__PURE__ */ y(qr, { className: "nav-pills__nav-link", tag: Xr, ...e, children: r }), xa = ({ 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: Yr.map(r, (n) => {
|
|
242
|
+
if (!Kr(n) || n.type !== yt)
|
|
238
243
|
throw new Error("Only NavPillItem children are allowed inside NavPills.");
|
|
239
244
|
return n;
|
|
240
245
|
}) }) }), dt = (r, e, t) => r !== e ? "ASC" : t ? {
|
|
241
246
|
ASC: "DESC",
|
|
242
247
|
DESC: void 0
|
|
243
|
-
}[t] : "ASC",
|
|
248
|
+
}[t] : "ASC", Na = (r, { field: e, dir: t }) => !e || !t ? r : r.sort((n, o) => {
|
|
244
249
|
const a = t === "ASC" ? 1 : -1, l = t === "ASC" ? -1 : 1;
|
|
245
250
|
return n[e] > o[e] ? a : l;
|
|
246
|
-
}),
|
|
251
|
+
}), Ia = (r) => r.dir ? `${r.field}-${r.dir}` : void 0, Fa = (r) => {
|
|
247
252
|
const [e, t] = r.split("-");
|
|
248
253
|
return { field: e, dir: t };
|
|
249
254
|
}, $a = (r) => {
|
|
250
|
-
const [e, t] =
|
|
255
|
+
const [e, t] = Oe(r), n = ne((o, a) => t({ field: o, dir: a }), []);
|
|
251
256
|
return [e, n];
|
|
252
257
|
};
|
|
253
|
-
function
|
|
258
|
+
function _a({ items: r, order: e, onChange: t, isButton: n = !0, right: o = !1, prefixed: a = !0 }) {
|
|
254
259
|
const l = (i) => () => {
|
|
255
260
|
const c = dt(i, e.field, e.dir);
|
|
256
261
|
t(c ? i : void 0, c);
|
|
257
262
|
};
|
|
258
|
-
return /* @__PURE__ */ P(
|
|
263
|
+
return /* @__PURE__ */ P(Jr, { children: [
|
|
259
264
|
/* @__PURE__ */ P(
|
|
260
|
-
|
|
265
|
+
hr,
|
|
261
266
|
{
|
|
262
267
|
caret: !0,
|
|
263
268
|
color: n ? "primary" : "link",
|
|
@@ -266,9 +271,9 @@ function Fa({ items: r, order: e, onChange: t, isButton: n = !0, right: o = !1,
|
|
|
266
271
|
"btn-sm p-0": !n
|
|
267
272
|
}),
|
|
268
273
|
children: [
|
|
269
|
-
!n && /* @__PURE__ */ y(
|
|
274
|
+
!n && /* @__PURE__ */ y(Te, { children: "Order by" }),
|
|
270
275
|
n && !e.field && /* @__PURE__ */ y("i", { children: "Order by..." }),
|
|
271
|
-
n && e.field && /* @__PURE__ */ P(
|
|
276
|
+
n && e.field && /* @__PURE__ */ P(Te, { children: [
|
|
272
277
|
a && "Order by: ",
|
|
273
278
|
r[e.field],
|
|
274
279
|
" - ",
|
|
@@ -278,29 +283,29 @@ function Fa({ items: r, order: e, onChange: t, isButton: n = !0, right: o = !1,
|
|
|
278
283
|
}
|
|
279
284
|
),
|
|
280
285
|
/* @__PURE__ */ P(
|
|
281
|
-
|
|
286
|
+
gr,
|
|
282
287
|
{
|
|
283
288
|
end: o,
|
|
284
289
|
className: E("w-100", { "ordering-dropdown__menu--link": !n }),
|
|
285
290
|
children: [
|
|
286
|
-
Object.entries(r).map(([i, c]) => /* @__PURE__ */ P(
|
|
291
|
+
Object.entries(r).map(([i, c]) => /* @__PURE__ */ P(Ae, { active: e.field === i, onClick: l(i), children: [
|
|
287
292
|
c,
|
|
288
293
|
e.field === i && /* @__PURE__ */ y(
|
|
289
|
-
|
|
294
|
+
we,
|
|
290
295
|
{
|
|
291
|
-
icon: e.dir === "ASC" ?
|
|
296
|
+
icon: e.dir === "ASC" ? Gr : Hr,
|
|
292
297
|
className: "ordering-dropdown__sort-icon"
|
|
293
298
|
}
|
|
294
299
|
)
|
|
295
300
|
] }, i)),
|
|
296
|
-
/* @__PURE__ */ y(
|
|
297
|
-
/* @__PURE__ */ y(
|
|
301
|
+
/* @__PURE__ */ y(Ae, { divider: !0 }),
|
|
302
|
+
/* @__PURE__ */ y(Ae, { disabled: !e.field, onClick: () => t(), children: /* @__PURE__ */ y("i", { children: "Clear selection" }) })
|
|
298
303
|
]
|
|
299
304
|
}
|
|
300
305
|
)
|
|
301
306
|
] });
|
|
302
307
|
}
|
|
303
|
-
const
|
|
308
|
+
const Ra = "#4696e5", Ca = "rgba(70, 150, 229, 0.4)", Ta = "#f77f28", Da = "rgba(247, 127, 40, 0.4)", Ma = "white", Ua = "#161b22", ka = (r) => {
|
|
304
309
|
var e;
|
|
305
310
|
return (e = document.querySelector("html")) == null ? void 0 : e.setAttribute("data-theme", r);
|
|
306
311
|
}, Ba = () => {
|
|
@@ -330,27 +335,27 @@ var mt = function() {
|
|
|
330
335
|
return !1;
|
|
331
336
|
}
|
|
332
337
|
return !0;
|
|
333
|
-
},
|
|
334
|
-
return typeof
|
|
335
|
-
},
|
|
338
|
+
}, Xe = typeof Symbol < "u" && Symbol, vt = mt, ht = function() {
|
|
339
|
+
return typeof Xe != "function" || typeof Symbol != "function" || typeof Xe("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : vt();
|
|
340
|
+
}, Ze = {
|
|
336
341
|
foo: {}
|
|
337
342
|
}, gt = Object, St = function() {
|
|
338
|
-
return { __proto__:
|
|
339
|
-
}, bt = "Function.prototype.bind called on incompatible ",
|
|
343
|
+
return { __proto__: Ze }.foo === Ze.foo && !({ __proto__: null } instanceof gt);
|
|
344
|
+
}, bt = "Function.prototype.bind called on incompatible ", Pe = Array.prototype.slice, wt = Object.prototype.toString, Ot = "[object Function]", At = function(e) {
|
|
340
345
|
var t = this;
|
|
341
|
-
if (typeof t != "function" ||
|
|
346
|
+
if (typeof t != "function" || wt.call(t) !== Ot)
|
|
342
347
|
throw new TypeError(bt + t);
|
|
343
|
-
for (var n =
|
|
348
|
+
for (var n = Pe.call(arguments, 1), o, a = function() {
|
|
344
349
|
if (this instanceof o) {
|
|
345
350
|
var u = t.apply(
|
|
346
351
|
this,
|
|
347
|
-
n.concat(
|
|
352
|
+
n.concat(Pe.call(arguments))
|
|
348
353
|
);
|
|
349
354
|
return Object(u) === u ? u : this;
|
|
350
355
|
} else
|
|
351
356
|
return t.apply(
|
|
352
357
|
e,
|
|
353
|
-
n.concat(
|
|
358
|
+
n.concat(Pe.call(arguments))
|
|
354
359
|
);
|
|
355
360
|
}, l = Math.max(0, t.length - n.length), i = [], c = 0; c < l; c++)
|
|
356
361
|
i.push("$" + c);
|
|
@@ -360,9 +365,9 @@ var mt = function() {
|
|
|
360
365
|
f.prototype = t.prototype, o.prototype = new f(), f.prototype = null;
|
|
361
366
|
}
|
|
362
367
|
return o;
|
|
363
|
-
}, Pt = At,
|
|
368
|
+
}, Pt = At, Ge = Function.prototype.bind || Pt, Et = Ge, xt = Et.call(Function.call, Object.prototype.hasOwnProperty), s, Y = SyntaxError, Ar = Function, J = TypeError, Ee = function(r) {
|
|
364
369
|
try {
|
|
365
|
-
return
|
|
370
|
+
return Ar('"use strict"; return (' + r + ").constructor;")();
|
|
366
371
|
} catch {
|
|
367
372
|
}
|
|
368
373
|
}, L = Object.getOwnPropertyDescriptor;
|
|
@@ -372,21 +377,21 @@ if (L)
|
|
|
372
377
|
} catch {
|
|
373
378
|
L = null;
|
|
374
379
|
}
|
|
375
|
-
var
|
|
380
|
+
var xe = function() {
|
|
376
381
|
throw new J();
|
|
377
382
|
}, Nt = L ? function() {
|
|
378
383
|
try {
|
|
379
|
-
return arguments.callee,
|
|
384
|
+
return arguments.callee, xe;
|
|
380
385
|
} catch {
|
|
381
386
|
try {
|
|
382
387
|
return L(arguments, "callee").get;
|
|
383
388
|
} catch {
|
|
384
|
-
return
|
|
389
|
+
return xe;
|
|
385
390
|
}
|
|
386
391
|
}
|
|
387
|
-
}() :
|
|
392
|
+
}() : xe, q = ht(), It = St(), S = Object.getPrototypeOf || (It ? function(r) {
|
|
388
393
|
return r.__proto__;
|
|
389
|
-
} : null), j = {},
|
|
394
|
+
} : null), j = {}, Ft = typeof Uint8Array > "u" || !S ? s : S(Uint8Array), W = {
|
|
390
395
|
"%AggregateError%": typeof AggregateError > "u" ? s : AggregateError,
|
|
391
396
|
"%Array%": Array,
|
|
392
397
|
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? s : ArrayBuffer,
|
|
@@ -414,7 +419,7 @@ var Ae = function() {
|
|
|
414
419
|
"%Float32Array%": typeof Float32Array > "u" ? s : Float32Array,
|
|
415
420
|
"%Float64Array%": typeof Float64Array > "u" ? s : Float64Array,
|
|
416
421
|
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? s : FinalizationRegistry,
|
|
417
|
-
"%Function%":
|
|
422
|
+
"%Function%": Ar,
|
|
418
423
|
"%GeneratorFunction%": j,
|
|
419
424
|
"%Int8Array%": typeof Int8Array > "u" ? s : Int8Array,
|
|
420
425
|
"%Int16Array%": typeof Int16Array > "u" ? s : Int16Array,
|
|
@@ -444,7 +449,7 @@ var Ae = function() {
|
|
|
444
449
|
"%Symbol%": q ? Symbol : s,
|
|
445
450
|
"%SyntaxError%": Y,
|
|
446
451
|
"%ThrowTypeError%": Nt,
|
|
447
|
-
"%TypedArray%":
|
|
452
|
+
"%TypedArray%": Ft,
|
|
448
453
|
"%TypeError%": J,
|
|
449
454
|
"%Uint8Array%": typeof Uint8Array > "u" ? s : Uint8Array,
|
|
450
455
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? s : Uint8ClampedArray,
|
|
@@ -459,17 +464,17 @@ if (S)
|
|
|
459
464
|
try {
|
|
460
465
|
null.error;
|
|
461
466
|
} catch (r) {
|
|
462
|
-
var
|
|
463
|
-
W["%Error.prototype%"] =
|
|
467
|
+
var $t = S(S(r));
|
|
468
|
+
W["%Error.prototype%"] = $t;
|
|
464
469
|
}
|
|
465
470
|
var _t = function r(e) {
|
|
466
471
|
var t;
|
|
467
472
|
if (e === "%AsyncFunction%")
|
|
468
|
-
t =
|
|
473
|
+
t = Ee("async function () {}");
|
|
469
474
|
else if (e === "%GeneratorFunction%")
|
|
470
|
-
t =
|
|
475
|
+
t = Ee("function* () {}");
|
|
471
476
|
else if (e === "%AsyncGeneratorFunction%")
|
|
472
|
-
t =
|
|
477
|
+
t = Ee("async function* () {}");
|
|
473
478
|
else if (e === "%AsyncGenerator%") {
|
|
474
479
|
var n = r("%AsyncGeneratorFunction%");
|
|
475
480
|
n && (t = n.prototype);
|
|
@@ -478,7 +483,7 @@ var _t = function r(e) {
|
|
|
478
483
|
o && S && (t = S(o.prototype));
|
|
479
484
|
}
|
|
480
485
|
return W[e] = t, t;
|
|
481
|
-
},
|
|
486
|
+
}, er = {
|
|
482
487
|
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
483
488
|
"%ArrayPrototype%": ["Array", "prototype"],
|
|
484
489
|
"%ArrayProto_entries%": ["Array", "prototype", "entries"],
|
|
@@ -530,19 +535,19 @@ var _t = function r(e) {
|
|
|
530
535
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
531
536
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
532
537
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
533
|
-
},
|
|
534
|
-
var t =
|
|
538
|
+
}, le = Ge, he = xt, Rt = le.call(Function.call, Array.prototype.concat), Ct = le.call(Function.apply, Array.prototype.splice), rr = le.call(Function.call, String.prototype.replace), ge = le.call(Function.call, String.prototype.slice), Tt = le.call(Function.call, RegExp.prototype.exec), Dt = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Mt = /\\(\\)?/g, Ut = function(e) {
|
|
539
|
+
var t = ge(e, 0, 1), n = ge(e, -1);
|
|
535
540
|
if (t === "%" && n !== "%")
|
|
536
541
|
throw new Y("invalid intrinsic syntax, expected closing `%`");
|
|
537
542
|
if (n === "%" && t !== "%")
|
|
538
543
|
throw new Y("invalid intrinsic syntax, expected opening `%`");
|
|
539
544
|
var o = [];
|
|
540
|
-
return
|
|
541
|
-
o[o.length] = i ?
|
|
545
|
+
return rr(e, Dt, function(a, l, i, c) {
|
|
546
|
+
o[o.length] = i ? rr(c, Mt, "$1") : l || a;
|
|
542
547
|
}), o;
|
|
543
|
-
},
|
|
548
|
+
}, kt = function(e, t) {
|
|
544
549
|
var n = e, o;
|
|
545
|
-
if (
|
|
550
|
+
if (he(er, n) && (o = er[n], n = "%" + o[0] + "%"), he(W, n)) {
|
|
546
551
|
var a = W[n];
|
|
547
552
|
if (a === j && (a = _t(n)), typeof a > "u" && !t)
|
|
548
553
|
throw new J("intrinsic " + e + " exists, but is not available. Please file an issue!");
|
|
@@ -553,20 +558,20 @@ var _t = function r(e) {
|
|
|
553
558
|
};
|
|
554
559
|
}
|
|
555
560
|
throw new Y("intrinsic " + e + " does not exist!");
|
|
556
|
-
},
|
|
561
|
+
}, He = function(e, t) {
|
|
557
562
|
if (typeof e != "string" || e.length === 0)
|
|
558
563
|
throw new J("intrinsic name must be a non-empty string");
|
|
559
564
|
if (arguments.length > 1 && typeof t != "boolean")
|
|
560
565
|
throw new J('"allowMissing" argument must be a boolean');
|
|
561
|
-
if (
|
|
566
|
+
if (Tt(/^%?[^%]*%?$/, e) === null)
|
|
562
567
|
throw new Y("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
563
|
-
var n = Ut(e), o = n.length > 0 ? n[0] : "", a =
|
|
568
|
+
var n = Ut(e), o = n.length > 0 ? n[0] : "", a = kt("%" + o + "%", t), l = a.name, i = a.value, c = !1, f = a.alias;
|
|
564
569
|
f && (o = f[0], Ct(n, Rt([0, 1], f)));
|
|
565
570
|
for (var u = 1, d = !0; u < n.length; u += 1) {
|
|
566
|
-
var p = n[u], h =
|
|
571
|
+
var p = n[u], h = ge(p, 0, 1), v = ge(p, -1);
|
|
567
572
|
if ((h === '"' || h === "'" || h === "`" || v === '"' || v === "'" || v === "`") && h !== v)
|
|
568
573
|
throw new Y("property names with quotes must have matching quotes");
|
|
569
|
-
if ((p === "constructor" || !d) && (c = !0), o += "." + p, l = "%" + o + "%",
|
|
574
|
+
if ((p === "constructor" || !d) && (c = !0), o += "." + p, l = "%" + o + "%", he(W, l))
|
|
570
575
|
i = W[l];
|
|
571
576
|
else if (i != null) {
|
|
572
577
|
if (!(p in i)) {
|
|
@@ -578,14 +583,14 @@ var _t = function r(e) {
|
|
|
578
583
|
var A = L(i, p);
|
|
579
584
|
d = !!A, d && "get" in A && !("originalValue" in A.get) ? i = A.get : i = i[p];
|
|
580
585
|
} else
|
|
581
|
-
d =
|
|
586
|
+
d = he(i, p), i = i[p];
|
|
582
587
|
d && !c && (W[l] = i);
|
|
583
588
|
}
|
|
584
589
|
}
|
|
585
590
|
return i;
|
|
586
|
-
},
|
|
591
|
+
}, Pr = { exports: {} };
|
|
587
592
|
(function(r) {
|
|
588
|
-
var e =
|
|
593
|
+
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%");
|
|
589
594
|
if (i)
|
|
590
595
|
try {
|
|
591
596
|
i({}, "a", { value: 1 });
|
|
@@ -608,43 +613,43 @@ var _t = function r(e) {
|
|
|
608
613
|
return a(e, n, arguments);
|
|
609
614
|
};
|
|
610
615
|
i ? i(r.exports, "apply", { value: f }) : r.exports.apply = f;
|
|
611
|
-
})(
|
|
612
|
-
var
|
|
613
|
-
var n =
|
|
614
|
-
return typeof n == "function" && Lt(e, ".prototype.") > -1 ?
|
|
616
|
+
})(Pr);
|
|
617
|
+
var Bt = Pr.exports, Er = He, xr = Bt, Lt = xr(Er("String.prototype.indexOf")), Wt = function(e, t) {
|
|
618
|
+
var n = Er(e, !!t);
|
|
619
|
+
return typeof n == "function" && Lt(e, ".prototype.") > -1 ? xr(n) : n;
|
|
615
620
|
};
|
|
616
621
|
const Gt = {}, Ht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
617
622
|
__proto__: null,
|
|
618
623
|
default: Gt
|
|
619
624
|
}, Symbol.toStringTag, { value: "Module" })), Vt = /* @__PURE__ */ Zr(Ht);
|
|
620
|
-
var
|
|
625
|
+
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, tr = 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, nr = ze && Set.prototype.forEach, zt = typeof WeakMap == "function" && WeakMap.prototype, ae = zt ? WeakMap.prototype.has : null, Qt = typeof WeakSet == "function" && WeakSet.prototype, oe = Qt ? WeakSet.prototype.has : null, qt = typeof WeakRef == "function" && WeakRef.prototype, ar = qt ? WeakRef.prototype.deref : null, jt = Boolean.prototype.valueOf, Jt = Object.prototype.toString, Yt = Function.prototype.toString, Kt = String.prototype.match, Qe = String.prototype.slice, M = String.prototype.replace, Xt = String.prototype.toUpperCase, or = String.prototype.toLowerCase, Nr = RegExp.prototype.test, ir = Array.prototype.concat, I = Array.prototype.join, Zt = Array.prototype.slice, lr = 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, Ir = Object.prototype.propertyIsEnumerable, cr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(r) {
|
|
621
626
|
return r.__proto__;
|
|
622
627
|
} : null);
|
|
623
|
-
function
|
|
624
|
-
if (r === 1 / 0 || r === -1 / 0 || r !== r || r && r > -1e3 && r < 1e3 ||
|
|
628
|
+
function fr(r, e) {
|
|
629
|
+
if (r === 1 / 0 || r === -1 / 0 || r !== r || r && r > -1e3 && r < 1e3 || Nr.call(/e/, e))
|
|
625
630
|
return e;
|
|
626
631
|
var t = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
627
632
|
if (typeof r == "number") {
|
|
628
|
-
var n = r < 0 ? -
|
|
633
|
+
var n = r < 0 ? -lr(-r) : lr(r);
|
|
629
634
|
if (n !== r) {
|
|
630
|
-
var o = String(n), a =
|
|
635
|
+
var o = String(n), a = Qe.call(e, o.length + 1);
|
|
631
636
|
return M.call(o, t, "$&_") + "." + M.call(M.call(a, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
632
637
|
}
|
|
633
638
|
}
|
|
634
639
|
return M.call(e, t, "$&_");
|
|
635
640
|
}
|
|
636
|
-
var
|
|
641
|
+
var Ue = Vt, ur = Ue.custom, pr = $r(ur) ? ur : null, en = function r(e, t, n, o) {
|
|
637
642
|
var a = t || {};
|
|
638
|
-
if (
|
|
643
|
+
if (D(a, "quoteStyle") && a.quoteStyle !== "single" && a.quoteStyle !== "double")
|
|
639
644
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
640
|
-
if (
|
|
645
|
+
if (D(a, "maxStringLength") && (typeof a.maxStringLength == "number" ? a.maxStringLength < 0 && a.maxStringLength !== 1 / 0 : a.maxStringLength !== null))
|
|
641
646
|
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
|
642
|
-
var l =
|
|
647
|
+
var l = D(a, "customInspect") ? a.customInspect : !0;
|
|
643
648
|
if (typeof l != "boolean" && l !== "symbol")
|
|
644
649
|
throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
|
|
645
|
-
if (
|
|
650
|
+
if (D(a, "indent") && a.indent !== null && a.indent !== " " && !(parseInt(a.indent, 10) === a.indent && a.indent > 0))
|
|
646
651
|
throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
|
|
647
|
-
if (
|
|
652
|
+
if (D(a, "numericSeparator") && typeof a.numericSeparator != "boolean")
|
|
648
653
|
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
|
|
649
654
|
var i = a.numericSeparator;
|
|
650
655
|
if (typeof e > "u")
|
|
@@ -654,141 +659,141 @@ var De = Vt, cr = De.custom, fr = $r(cr) ? cr : null, en = function r(e, t, n, o
|
|
|
654
659
|
if (typeof e == "boolean")
|
|
655
660
|
return e ? "true" : "false";
|
|
656
661
|
if (typeof e == "string")
|
|
657
|
-
return
|
|
662
|
+
return Rr(e, a);
|
|
658
663
|
if (typeof e == "number") {
|
|
659
664
|
if (e === 0)
|
|
660
665
|
return 1 / 0 / e > 0 ? "0" : "-0";
|
|
661
666
|
var c = String(e);
|
|
662
|
-
return i ?
|
|
667
|
+
return i ? fr(e, c) : c;
|
|
663
668
|
}
|
|
664
669
|
if (typeof e == "bigint") {
|
|
665
670
|
var f = String(e) + "n";
|
|
666
|
-
return i ?
|
|
671
|
+
return i ? fr(e, f) : f;
|
|
667
672
|
}
|
|
668
673
|
var u = typeof a.depth > "u" ? 5 : a.depth;
|
|
669
674
|
if (typeof n > "u" && (n = 0), n >= u && u > 0 && typeof e == "object")
|
|
670
|
-
return
|
|
675
|
+
return ke(e) ? "[Array]" : "[Object]";
|
|
671
676
|
var d = Sn(a, n);
|
|
672
677
|
if (typeof o > "u")
|
|
673
678
|
o = [];
|
|
674
|
-
else if (
|
|
679
|
+
else if (_r(o, e) >= 0)
|
|
675
680
|
return "[Circular]";
|
|
676
|
-
function p(_, z,
|
|
677
|
-
if (z && (o = Zt.call(o), o.push(z)),
|
|
681
|
+
function p(_, z, fe) {
|
|
682
|
+
if (z && (o = Zt.call(o), o.push(z)), fe) {
|
|
678
683
|
var Q = {
|
|
679
684
|
depth: a.depth
|
|
680
685
|
};
|
|
681
|
-
return
|
|
686
|
+
return D(a, "quoteStyle") && (Q.quoteStyle = a.quoteStyle), r(_, Q, n + 1, o);
|
|
682
687
|
}
|
|
683
688
|
return r(_, a, n + 1, o);
|
|
684
689
|
}
|
|
685
|
-
if (typeof e == "function" && !
|
|
686
|
-
var h = un(e), v =
|
|
690
|
+
if (typeof e == "function" && !sr(e)) {
|
|
691
|
+
var h = un(e), v = pe(e, p);
|
|
687
692
|
return "[Function" + (h ? ": " + h : " (anonymous)") + "]" + (v.length > 0 ? " { " + I.call(v, ", ") + " }" : "");
|
|
688
693
|
}
|
|
689
694
|
if ($r(e)) {
|
|
690
|
-
var A = K ? M.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") :
|
|
695
|
+
var A = K ? M.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : Me.call(e);
|
|
691
696
|
return typeof e == "object" && !K ? te(A) : A;
|
|
692
697
|
}
|
|
693
698
|
if (vn(e)) {
|
|
694
|
-
for (var
|
|
695
|
-
|
|
696
|
-
return
|
|
699
|
+
for (var F = "<" + or.call(String(e.nodeName)), m = e.attributes || [], $ = 0; $ < m.length; $++)
|
|
700
|
+
F += " " + m[$].name + "=" + Fr(rn(m[$].value), "double", a);
|
|
701
|
+
return F += ">", e.childNodes && e.childNodes.length && (F += "..."), F += "</" + or.call(String(e.nodeName)) + ">", F;
|
|
697
702
|
}
|
|
698
|
-
if (
|
|
703
|
+
if (ke(e)) {
|
|
699
704
|
if (e.length === 0)
|
|
700
705
|
return "[]";
|
|
701
|
-
var C =
|
|
702
|
-
return d && !gn(C) ? "[" +
|
|
706
|
+
var C = pe(e, p);
|
|
707
|
+
return d && !gn(C) ? "[" + Be(C, d) + "]" : "[ " + I.call(C, ", ") + " ]";
|
|
703
708
|
}
|
|
704
709
|
if (nn(e)) {
|
|
705
|
-
var G =
|
|
706
|
-
return !("cause" in Error.prototype) && "cause" in e && !
|
|
710
|
+
var G = pe(e, p);
|
|
711
|
+
return !("cause" in Error.prototype) && "cause" in e && !Ir.call(e, "cause") ? "{ [" + String(e) + "] " + I.call(ir.call("[cause]: " + p(e.cause), G), ", ") + " }" : G.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + I.call(G, ", ") + " }";
|
|
707
712
|
}
|
|
708
713
|
if (typeof e == "object" && l) {
|
|
709
|
-
if (
|
|
710
|
-
return
|
|
714
|
+
if (pr && typeof e[pr] == "function" && Ue)
|
|
715
|
+
return Ue(e, { depth: u - n });
|
|
711
716
|
if (l !== "symbol" && typeof e.inspect == "function")
|
|
712
717
|
return e.inspect();
|
|
713
718
|
}
|
|
714
719
|
if (pn(e)) {
|
|
715
720
|
var ee = [];
|
|
716
|
-
return
|
|
721
|
+
return tr && tr.call(e, function(_, z) {
|
|
717
722
|
ee.push(p(z, e, !0) + " => " + p(_, e));
|
|
718
|
-
}),
|
|
723
|
+
}), yr("Map", Se.call(e), ee, d);
|
|
719
724
|
}
|
|
720
725
|
if (dn(e)) {
|
|
721
|
-
var
|
|
722
|
-
return
|
|
723
|
-
|
|
724
|
-
}),
|
|
726
|
+
var ce = [];
|
|
727
|
+
return nr && nr.call(e, function(_) {
|
|
728
|
+
ce.push(p(_, e));
|
|
729
|
+
}), yr("Set", be.call(e), ce, d);
|
|
725
730
|
}
|
|
726
731
|
if (sn(e))
|
|
727
|
-
return
|
|
732
|
+
return $e("WeakMap");
|
|
728
733
|
if (mn(e))
|
|
729
|
-
return
|
|
734
|
+
return $e("WeakSet");
|
|
730
735
|
if (yn(e))
|
|
731
|
-
return
|
|
736
|
+
return $e("WeakRef");
|
|
732
737
|
if (on(e))
|
|
733
738
|
return te(p(Number(e)));
|
|
734
739
|
if (cn(e))
|
|
735
|
-
return te(p(
|
|
740
|
+
return te(p(De.call(e)));
|
|
736
741
|
if (ln(e))
|
|
737
742
|
return te(jt.call(e));
|
|
738
743
|
if (an(e))
|
|
739
744
|
return te(p(String(e)));
|
|
740
|
-
if (!tn(e) && !
|
|
741
|
-
var
|
|
742
|
-
return
|
|
745
|
+
if (!tn(e) && !sr(e)) {
|
|
746
|
+
var k = pe(e, p), T = cr ? cr(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(U(e), 8, -1) : H ? "Object" : "", re = T || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", x = re + (V || H ? "[" + I.call(ir.call([], V || [], H || []), ": ") + "] " : "");
|
|
747
|
+
return k.length === 0 ? x + "{}" : d ? x + "{" + Be(k, d) + "}" : x + "{ " + I.call(k, ", ") + " }";
|
|
743
748
|
}
|
|
744
749
|
return String(e);
|
|
745
750
|
};
|
|
746
|
-
function
|
|
751
|
+
function Fr(r, e, t) {
|
|
747
752
|
var n = (t.quoteStyle || e) === "double" ? '"' : "'";
|
|
748
753
|
return n + r + n;
|
|
749
754
|
}
|
|
750
755
|
function rn(r) {
|
|
751
756
|
return M.call(String(r), /"/g, """);
|
|
752
757
|
}
|
|
753
|
-
function
|
|
754
|
-
return U(r) === "[object Array]" && (!
|
|
758
|
+
function ke(r) {
|
|
759
|
+
return U(r) === "[object Array]" && (!O || !(typeof r == "object" && O in r));
|
|
755
760
|
}
|
|
756
761
|
function tn(r) {
|
|
757
|
-
return U(r) === "[object Date]" && (!
|
|
762
|
+
return U(r) === "[object Date]" && (!O || !(typeof r == "object" && O in r));
|
|
758
763
|
}
|
|
759
|
-
function
|
|
760
|
-
return U(r) === "[object RegExp]" && (!
|
|
764
|
+
function sr(r) {
|
|
765
|
+
return U(r) === "[object RegExp]" && (!O || !(typeof r == "object" && O in r));
|
|
761
766
|
}
|
|
762
767
|
function nn(r) {
|
|
763
|
-
return U(r) === "[object Error]" && (!
|
|
768
|
+
return U(r) === "[object Error]" && (!O || !(typeof r == "object" && O in r));
|
|
764
769
|
}
|
|
765
770
|
function an(r) {
|
|
766
|
-
return U(r) === "[object String]" && (!
|
|
771
|
+
return U(r) === "[object String]" && (!O || !(typeof r == "object" && O in r));
|
|
767
772
|
}
|
|
768
773
|
function on(r) {
|
|
769
|
-
return U(r) === "[object Number]" && (!
|
|
774
|
+
return U(r) === "[object Number]" && (!O || !(typeof r == "object" && O in r));
|
|
770
775
|
}
|
|
771
776
|
function ln(r) {
|
|
772
|
-
return U(r) === "[object Boolean]" && (!
|
|
777
|
+
return U(r) === "[object Boolean]" && (!O || !(typeof r == "object" && O in r));
|
|
773
778
|
}
|
|
774
779
|
function $r(r) {
|
|
775
780
|
if (K)
|
|
776
781
|
return r && typeof r == "object" && r instanceof Symbol;
|
|
777
782
|
if (typeof r == "symbol")
|
|
778
783
|
return !0;
|
|
779
|
-
if (!r || typeof r != "object" || !
|
|
784
|
+
if (!r || typeof r != "object" || !Me)
|
|
780
785
|
return !1;
|
|
781
786
|
try {
|
|
782
|
-
return
|
|
787
|
+
return Me.call(r), !0;
|
|
783
788
|
} catch {
|
|
784
789
|
}
|
|
785
790
|
return !1;
|
|
786
791
|
}
|
|
787
792
|
function cn(r) {
|
|
788
|
-
if (!r || typeof r != "object" || !
|
|
793
|
+
if (!r || typeof r != "object" || !De)
|
|
789
794
|
return !1;
|
|
790
795
|
try {
|
|
791
|
-
return
|
|
796
|
+
return De.call(r), !0;
|
|
792
797
|
} catch {
|
|
793
798
|
}
|
|
794
799
|
return !1;
|
|
@@ -796,7 +801,7 @@ function cn(r) {
|
|
|
796
801
|
var fn = Object.prototype.hasOwnProperty || function(r) {
|
|
797
802
|
return r in this;
|
|
798
803
|
};
|
|
799
|
-
function
|
|
804
|
+
function D(r, e) {
|
|
800
805
|
return fn.call(r, e);
|
|
801
806
|
}
|
|
802
807
|
function U(r) {
|
|
@@ -808,7 +813,7 @@ function un(r) {
|
|
|
808
813
|
var e = Kt.call(Yt.call(r), /^function\s*([\w$]+)/);
|
|
809
814
|
return e ? e[1] : null;
|
|
810
815
|
}
|
|
811
|
-
function
|
|
816
|
+
function _r(r, e) {
|
|
812
817
|
if (r.indexOf)
|
|
813
818
|
return r.indexOf(e);
|
|
814
819
|
for (var t = 0, n = r.length; t < n; t++)
|
|
@@ -817,12 +822,12 @@ function Fr(r, e) {
|
|
|
817
822
|
return -1;
|
|
818
823
|
}
|
|
819
824
|
function pn(r) {
|
|
820
|
-
if (!
|
|
825
|
+
if (!Se || !r || typeof r != "object")
|
|
821
826
|
return !1;
|
|
822
827
|
try {
|
|
823
|
-
|
|
828
|
+
Se.call(r);
|
|
824
829
|
try {
|
|
825
|
-
|
|
830
|
+
be.call(r);
|
|
826
831
|
} catch {
|
|
827
832
|
return !0;
|
|
828
833
|
}
|
|
@@ -832,12 +837,12 @@ function pn(r) {
|
|
|
832
837
|
return !1;
|
|
833
838
|
}
|
|
834
839
|
function sn(r) {
|
|
835
|
-
if (!
|
|
840
|
+
if (!ae || !r || typeof r != "object")
|
|
836
841
|
return !1;
|
|
837
842
|
try {
|
|
838
|
-
|
|
843
|
+
ae.call(r, ae);
|
|
839
844
|
try {
|
|
840
|
-
|
|
845
|
+
oe.call(r, oe);
|
|
841
846
|
} catch {
|
|
842
847
|
return !0;
|
|
843
848
|
}
|
|
@@ -847,21 +852,21 @@ function sn(r) {
|
|
|
847
852
|
return !1;
|
|
848
853
|
}
|
|
849
854
|
function yn(r) {
|
|
850
|
-
if (!
|
|
855
|
+
if (!ar || !r || typeof r != "object")
|
|
851
856
|
return !1;
|
|
852
857
|
try {
|
|
853
|
-
return
|
|
858
|
+
return ar.call(r), !0;
|
|
854
859
|
} catch {
|
|
855
860
|
}
|
|
856
861
|
return !1;
|
|
857
862
|
}
|
|
858
863
|
function dn(r) {
|
|
859
|
-
if (!
|
|
864
|
+
if (!be || !r || typeof r != "object")
|
|
860
865
|
return !1;
|
|
861
866
|
try {
|
|
862
|
-
|
|
867
|
+
be.call(r);
|
|
863
868
|
try {
|
|
864
|
-
|
|
869
|
+
Se.call(r);
|
|
865
870
|
} catch {
|
|
866
871
|
return !0;
|
|
867
872
|
}
|
|
@@ -871,12 +876,12 @@ function dn(r) {
|
|
|
871
876
|
return !1;
|
|
872
877
|
}
|
|
873
878
|
function mn(r) {
|
|
874
|
-
if (!
|
|
879
|
+
if (!oe || !r || typeof r != "object")
|
|
875
880
|
return !1;
|
|
876
881
|
try {
|
|
877
|
-
|
|
882
|
+
oe.call(r, oe);
|
|
878
883
|
try {
|
|
879
|
-
|
|
884
|
+
ae.call(r, ae);
|
|
880
885
|
} catch {
|
|
881
886
|
return !0;
|
|
882
887
|
}
|
|
@@ -888,13 +893,13 @@ function mn(r) {
|
|
|
888
893
|
function vn(r) {
|
|
889
894
|
return !r || typeof r != "object" ? !1 : typeof HTMLElement < "u" && r instanceof HTMLElement ? !0 : typeof r.nodeName == "string" && typeof r.getAttribute == "function";
|
|
890
895
|
}
|
|
891
|
-
function
|
|
896
|
+
function Rr(r, e) {
|
|
892
897
|
if (r.length > e.maxStringLength) {
|
|
893
898
|
var t = r.length - e.maxStringLength, n = "... " + t + " more character" + (t > 1 ? "s" : "");
|
|
894
|
-
return
|
|
899
|
+
return Rr(Qe.call(r, 0, e.maxStringLength), e) + n;
|
|
895
900
|
}
|
|
896
901
|
var o = M.call(M.call(r, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, hn);
|
|
897
|
-
return
|
|
902
|
+
return Fr(o, "single", e);
|
|
898
903
|
}
|
|
899
904
|
function hn(r) {
|
|
900
905
|
var e = r.charCodeAt(0), t = {
|
|
@@ -909,16 +914,16 @@ function hn(r) {
|
|
|
909
914
|
function te(r) {
|
|
910
915
|
return "Object(" + r + ")";
|
|
911
916
|
}
|
|
912
|
-
function
|
|
917
|
+
function $e(r) {
|
|
913
918
|
return r + " { ? }";
|
|
914
919
|
}
|
|
915
|
-
function
|
|
916
|
-
var o = n ?
|
|
920
|
+
function yr(r, e, t, n) {
|
|
921
|
+
var o = n ? Be(t, n) : I.call(t, ", ");
|
|
917
922
|
return r + " (" + e + ") {" + o + "}";
|
|
918
923
|
}
|
|
919
924
|
function gn(r) {
|
|
920
925
|
for (var e = 0; e < r.length; e++)
|
|
921
|
-
if (
|
|
926
|
+
if (_r(r[e], `
|
|
922
927
|
`) >= 0)
|
|
923
928
|
return !1;
|
|
924
929
|
return !0;
|
|
@@ -936,7 +941,7 @@ function Sn(r, e) {
|
|
|
936
941
|
prev: I.call(Array(e + 1), t)
|
|
937
942
|
};
|
|
938
943
|
}
|
|
939
|
-
function
|
|
944
|
+
function Be(r, e) {
|
|
940
945
|
if (r.length === 0)
|
|
941
946
|
return "";
|
|
942
947
|
var t = `
|
|
@@ -944,80 +949,80 @@ function Me(r, e) {
|
|
|
944
949
|
return t + I.call(r, "," + t) + `
|
|
945
950
|
` + e.prev;
|
|
946
951
|
}
|
|
947
|
-
function
|
|
948
|
-
var t =
|
|
952
|
+
function pe(r, e) {
|
|
953
|
+
var t = ke(r), n = [];
|
|
949
954
|
if (t) {
|
|
950
955
|
n.length = r.length;
|
|
951
956
|
for (var o = 0; o < r.length; o++)
|
|
952
|
-
n[o] =
|
|
957
|
+
n[o] = D(r, o) ? e(r[o], r) : "";
|
|
953
958
|
}
|
|
954
|
-
var a = typeof
|
|
959
|
+
var a = typeof Fe == "function" ? Fe(r) : [], l;
|
|
955
960
|
if (K) {
|
|
956
961
|
l = {};
|
|
957
962
|
for (var i = 0; i < a.length; i++)
|
|
958
963
|
l["$" + a[i]] = a[i];
|
|
959
964
|
}
|
|
960
965
|
for (var c in r)
|
|
961
|
-
|
|
962
|
-
if (typeof
|
|
966
|
+
D(r, c) && (t && String(Number(c)) === c && c < r.length || K && l["$" + c] instanceof Symbol || (Nr.call(/[^\w$]/, c) ? n.push(e(c, r) + ": " + e(r[c], r)) : n.push(c + ": " + e(r[c], r))));
|
|
967
|
+
if (typeof Fe == "function")
|
|
963
968
|
for (var f = 0; f < a.length; f++)
|
|
964
|
-
|
|
969
|
+
Ir.call(r, a[f]) && n.push("[" + e(a[f]) + "]: " + e(r[a[f]], r));
|
|
965
970
|
return n;
|
|
966
971
|
}
|
|
967
|
-
var
|
|
972
|
+
var qe = He, Z = Wt, bn = en, wn = qe("%TypeError%"), se = qe("%WeakMap%", !0), ye = qe("%Map%", !0), On = Z("WeakMap.prototype.get", !0), An = Z("WeakMap.prototype.set", !0), Pn = Z("WeakMap.prototype.has", !0), En = Z("Map.prototype.get", !0), xn = Z("Map.prototype.set", !0), Nn = Z("Map.prototype.has", !0), je = function(r, e) {
|
|
968
973
|
for (var t = r, n; (n = t.next) !== null; t = n)
|
|
969
974
|
if (n.key === e)
|
|
970
975
|
return t.next = n.next, n.next = r.next, r.next = n, n;
|
|
971
976
|
}, In = function(r, e) {
|
|
972
|
-
var t =
|
|
977
|
+
var t = je(r, e);
|
|
973
978
|
return t && t.value;
|
|
974
|
-
},
|
|
975
|
-
var n =
|
|
979
|
+
}, Fn = function(r, e, t) {
|
|
980
|
+
var n = je(r, e);
|
|
976
981
|
n ? n.value = t : r.next = {
|
|
977
982
|
// eslint-disable-line no-param-reassign
|
|
978
983
|
key: e,
|
|
979
984
|
next: r.next,
|
|
980
985
|
value: t
|
|
981
986
|
};
|
|
982
|
-
},
|
|
983
|
-
return !!
|
|
987
|
+
}, $n = function(r, e) {
|
|
988
|
+
return !!je(r, e);
|
|
984
989
|
}, _n = function() {
|
|
985
990
|
var e, t, n, o = {
|
|
986
991
|
assert: function(a) {
|
|
987
992
|
if (!o.has(a))
|
|
988
|
-
throw new
|
|
993
|
+
throw new wn("Side channel does not contain " + bn(a));
|
|
989
994
|
},
|
|
990
995
|
get: function(a) {
|
|
991
|
-
if (
|
|
996
|
+
if (se && a && (typeof a == "object" || typeof a == "function")) {
|
|
992
997
|
if (e)
|
|
993
|
-
return
|
|
994
|
-
} else if (
|
|
998
|
+
return On(e, a);
|
|
999
|
+
} else if (ye) {
|
|
995
1000
|
if (t)
|
|
996
1001
|
return En(t, a);
|
|
997
1002
|
} else if (n)
|
|
998
1003
|
return In(n, a);
|
|
999
1004
|
},
|
|
1000
1005
|
has: function(a) {
|
|
1001
|
-
if (
|
|
1006
|
+
if (se && a && (typeof a == "object" || typeof a == "function")) {
|
|
1002
1007
|
if (e)
|
|
1003
1008
|
return Pn(e, a);
|
|
1004
|
-
} else if (
|
|
1009
|
+
} else if (ye) {
|
|
1005
1010
|
if (t)
|
|
1006
1011
|
return Nn(t, a);
|
|
1007
1012
|
} else if (n)
|
|
1008
|
-
return
|
|
1013
|
+
return $n(n, a);
|
|
1009
1014
|
return !1;
|
|
1010
1015
|
},
|
|
1011
1016
|
set: function(a, l) {
|
|
1012
|
-
|
|
1017
|
+
se && a && (typeof a == "object" || typeof a == "function") ? (e || (e = new se()), An(e, a, l)) : ye ? (t || (t = new ye()), xn(t, a, l)) : (n || (n = { key: {}, next: null }), Fn(n, a, l));
|
|
1013
1018
|
}
|
|
1014
1019
|
};
|
|
1015
1020
|
return o;
|
|
1016
|
-
}, Rn = String.prototype.replace, Cn = /%20/g,
|
|
1021
|
+
}, Rn = String.prototype.replace, Cn = /%20/g, _e = {
|
|
1017
1022
|
RFC1738: "RFC1738",
|
|
1018
1023
|
RFC3986: "RFC3986"
|
|
1019
|
-
},
|
|
1020
|
-
default:
|
|
1024
|
+
}, Je = {
|
|
1025
|
+
default: _e.RFC3986,
|
|
1021
1026
|
formatters: {
|
|
1022
1027
|
RFC1738: function(r) {
|
|
1023
1028
|
return Rn.call(r, Cn, "+");
|
|
@@ -1026,22 +1031,22 @@ var ze = We, Z = Wt, bn = en, On = ze("%TypeError%"), pe = ze("%WeakMap%", !0),
|
|
|
1026
1031
|
return String(r);
|
|
1027
1032
|
}
|
|
1028
1033
|
},
|
|
1029
|
-
RFC1738:
|
|
1030
|
-
RFC3986:
|
|
1031
|
-
},
|
|
1034
|
+
RFC1738: _e.RFC1738,
|
|
1035
|
+
RFC3986: _e.RFC3986
|
|
1036
|
+
}, Tn = Je, Re = Object.prototype.hasOwnProperty, B = Array.isArray, N = function() {
|
|
1032
1037
|
for (var r = [], e = 0; e < 256; ++e)
|
|
1033
1038
|
r.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
|
|
1034
1039
|
return r;
|
|
1035
|
-
}(),
|
|
1040
|
+
}(), Dn = function(e) {
|
|
1036
1041
|
for (; e.length > 1; ) {
|
|
1037
1042
|
var t = e.pop(), n = t.obj[t.prop];
|
|
1038
|
-
if (
|
|
1043
|
+
if (B(n)) {
|
|
1039
1044
|
for (var o = [], a = 0; a < n.length; ++a)
|
|
1040
1045
|
typeof n[a] < "u" && o.push(n[a]);
|
|
1041
1046
|
t.obj[t.prop] = o;
|
|
1042
1047
|
}
|
|
1043
1048
|
}
|
|
1044
|
-
},
|
|
1049
|
+
}, Cr = function(e, t) {
|
|
1045
1050
|
for (var n = t && t.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, o = 0; o < e.length; ++o)
|
|
1046
1051
|
typeof e[o] < "u" && (n[o] = e[o]);
|
|
1047
1052
|
return n;
|
|
@@ -1049,10 +1054,10 @@ var ze = We, Z = Wt, bn = en, On = ze("%TypeError%"), pe = ze("%WeakMap%", !0),
|
|
|
1049
1054
|
if (!t)
|
|
1050
1055
|
return e;
|
|
1051
1056
|
if (typeof t != "object") {
|
|
1052
|
-
if (
|
|
1057
|
+
if (B(e))
|
|
1053
1058
|
e.push(t);
|
|
1054
1059
|
else if (e && typeof e == "object")
|
|
1055
|
-
(n && (n.plainObjects || n.allowPrototypes) ||
|
|
1060
|
+
(n && (n.plainObjects || n.allowPrototypes) || !Re.call(Object.prototype, t)) && (e[t] = !0);
|
|
1056
1061
|
else
|
|
1057
1062
|
return [e, t];
|
|
1058
1063
|
return e;
|
|
@@ -1060,21 +1065,21 @@ var ze = We, Z = Wt, bn = en, On = ze("%TypeError%"), pe = ze("%WeakMap%", !0),
|
|
|
1060
1065
|
if (!e || typeof e != "object")
|
|
1061
1066
|
return [e].concat(t);
|
|
1062
1067
|
var o = e;
|
|
1063
|
-
return
|
|
1064
|
-
if (
|
|
1068
|
+
return B(e) && !B(t) && (o = Cr(e, n)), B(e) && B(t) ? (t.forEach(function(a, l) {
|
|
1069
|
+
if (Re.call(e, l)) {
|
|
1065
1070
|
var i = e[l];
|
|
1066
1071
|
i && typeof i == "object" && a && typeof a == "object" ? e[l] = r(i, a, n) : e.push(a);
|
|
1067
1072
|
} else
|
|
1068
1073
|
e[l] = a;
|
|
1069
1074
|
}), e) : Object.keys(t).reduce(function(a, l) {
|
|
1070
1075
|
var i = t[l];
|
|
1071
|
-
return
|
|
1076
|
+
return Re.call(a, l) ? a[l] = r(a[l], i, n) : a[l] = i, a;
|
|
1072
1077
|
}, o);
|
|
1073
1078
|
}, Un = function(e, t) {
|
|
1074
1079
|
return Object.keys(t).reduce(function(n, o) {
|
|
1075
1080
|
return n[o] = t[o], n;
|
|
1076
1081
|
}, e);
|
|
1077
|
-
},
|
|
1082
|
+
}, kn = function(r, e, t) {
|
|
1078
1083
|
var n = r.replace(/\+/g, " ");
|
|
1079
1084
|
if (t === "iso-8859-1")
|
|
1080
1085
|
return n.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
@@ -1083,7 +1088,7 @@ var ze = We, Z = Wt, bn = en, On = ze("%TypeError%"), pe = ze("%WeakMap%", !0),
|
|
|
1083
1088
|
} catch {
|
|
1084
1089
|
return n;
|
|
1085
1090
|
}
|
|
1086
|
-
},
|
|
1091
|
+
}, Bn = function(e, t, n, o, a) {
|
|
1087
1092
|
if (e.length === 0)
|
|
1088
1093
|
return e;
|
|
1089
1094
|
var l = e;
|
|
@@ -1093,7 +1098,7 @@ var ze = We, Z = Wt, bn = en, On = ze("%TypeError%"), pe = ze("%WeakMap%", !0),
|
|
|
1093
1098
|
});
|
|
1094
1099
|
for (var i = "", c = 0; c < l.length; ++c) {
|
|
1095
1100
|
var f = l.charCodeAt(c);
|
|
1096
|
-
if (f === 45 || f === 46 || f === 95 || f === 126 || f >= 48 && f <= 57 || f >= 65 && f <= 90 || f >= 97 && f <= 122 || a ===
|
|
1101
|
+
if (f === 45 || f === 46 || f === 95 || f === 126 || f >= 48 && f <= 57 || f >= 65 && f <= 90 || f >= 97 && f <= 122 || a === Tn.RFC1738 && (f === 40 || f === 41)) {
|
|
1097
1102
|
i += l.charAt(c);
|
|
1098
1103
|
continue;
|
|
1099
1104
|
}
|
|
@@ -1118,7 +1123,7 @@ var ze = We, Z = Wt, bn = en, On = ze("%TypeError%"), pe = ze("%WeakMap%", !0),
|
|
|
1118
1123
|
var f = i[c], u = l[f];
|
|
1119
1124
|
typeof u == "object" && u !== null && n.indexOf(u) === -1 && (t.push({ obj: l, prop: f }), n.push(u));
|
|
1120
1125
|
}
|
|
1121
|
-
return
|
|
1126
|
+
return Dn(t), e;
|
|
1122
1127
|
}, Wn = function(e) {
|
|
1123
1128
|
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
1124
1129
|
}, Gn = function(e) {
|
|
@@ -1126,24 +1131,24 @@ var ze = We, Z = Wt, bn = en, On = ze("%TypeError%"), pe = ze("%WeakMap%", !0),
|
|
|
1126
1131
|
}, Hn = function(e, t) {
|
|
1127
1132
|
return [].concat(e, t);
|
|
1128
1133
|
}, Vn = function(e, t) {
|
|
1129
|
-
if (
|
|
1134
|
+
if (B(e)) {
|
|
1130
1135
|
for (var n = [], o = 0; o < e.length; o += 1)
|
|
1131
1136
|
n.push(t(e[o]));
|
|
1132
1137
|
return n;
|
|
1133
1138
|
}
|
|
1134
1139
|
return t(e);
|
|
1135
|
-
},
|
|
1136
|
-
arrayToObject:
|
|
1140
|
+
}, Tr = {
|
|
1141
|
+
arrayToObject: Cr,
|
|
1137
1142
|
assign: Un,
|
|
1138
1143
|
combine: Hn,
|
|
1139
1144
|
compact: Ln,
|
|
1140
|
-
decode:
|
|
1141
|
-
encode:
|
|
1145
|
+
decode: kn,
|
|
1146
|
+
encode: Bn,
|
|
1142
1147
|
isBuffer: Gn,
|
|
1143
1148
|
isRegExp: Wn,
|
|
1144
1149
|
maybeMap: Vn,
|
|
1145
1150
|
merge: Mn
|
|
1146
|
-
}, Dr = _n,
|
|
1151
|
+
}, Dr = _n, me = Tr, ie = Je, zn = Object.prototype.hasOwnProperty, dr = {
|
|
1147
1152
|
brackets: function(e) {
|
|
1148
1153
|
return e + "[]";
|
|
1149
1154
|
},
|
|
@@ -1154,19 +1159,19 @@ var ze = We, Z = Wt, bn = en, On = ze("%TypeError%"), pe = ze("%WeakMap%", !0),
|
|
|
1154
1159
|
repeat: function(e) {
|
|
1155
1160
|
return e;
|
|
1156
1161
|
}
|
|
1157
|
-
}, R = Array.isArray, Qn = Array.prototype.push,
|
|
1162
|
+
}, R = Array.isArray, Qn = Array.prototype.push, Mr = function(r, e) {
|
|
1158
1163
|
Qn.apply(r, R(e) ? e : [e]);
|
|
1159
|
-
}, qn = Date.prototype.toISOString,
|
|
1164
|
+
}, qn = Date.prototype.toISOString, mr = ie.default, w = {
|
|
1160
1165
|
addQueryPrefix: !1,
|
|
1161
1166
|
allowDots: !1,
|
|
1162
1167
|
charset: "utf-8",
|
|
1163
1168
|
charsetSentinel: !1,
|
|
1164
1169
|
delimiter: "&",
|
|
1165
1170
|
encode: !0,
|
|
1166
|
-
encoder:
|
|
1171
|
+
encoder: me.encode,
|
|
1167
1172
|
encodeValuesOnly: !1,
|
|
1168
|
-
format:
|
|
1169
|
-
formatter:
|
|
1173
|
+
format: mr,
|
|
1174
|
+
formatter: ie.formatters[mr],
|
|
1170
1175
|
// deprecated
|
|
1171
1176
|
indices: !1,
|
|
1172
1177
|
serializeDate: function(e) {
|
|
@@ -1176,49 +1181,49 @@ var ze = We, Z = Wt, bn = en, On = ze("%TypeError%"), pe = ze("%WeakMap%", !0),
|
|
|
1176
1181
|
strictNullHandling: !1
|
|
1177
1182
|
}, jn = function(e) {
|
|
1178
1183
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
|
|
1179
|
-
},
|
|
1180
|
-
for (var m = e,
|
|
1181
|
-
var ee =
|
|
1184
|
+
}, Ce = {}, Jn = function r(e, t, n, o, a, l, i, c, f, u, d, p, h, v, A, F) {
|
|
1185
|
+
for (var m = e, $ = F, C = 0, G = !1; ($ = $.get(Ce)) !== void 0 && !G; ) {
|
|
1186
|
+
var ee = $.get(e);
|
|
1182
1187
|
if (C += 1, typeof ee < "u") {
|
|
1183
1188
|
if (ee === C)
|
|
1184
1189
|
throw new RangeError("Cyclic object value");
|
|
1185
1190
|
G = !0;
|
|
1186
1191
|
}
|
|
1187
|
-
typeof
|
|
1192
|
+
typeof $.get(Ce) > "u" && (C = 0);
|
|
1188
1193
|
}
|
|
1189
|
-
if (typeof c == "function" ? m = c(t, m) : m instanceof Date ? m = d(m) : n === "comma" && R(m) && (m =
|
|
1194
|
+
if (typeof c == "function" ? m = c(t, m) : m instanceof Date ? m = d(m) : n === "comma" && R(m) && (m = me.maybeMap(m, function(Q) {
|
|
1190
1195
|
return Q instanceof Date ? d(Q) : Q;
|
|
1191
1196
|
})), m === null) {
|
|
1192
1197
|
if (a)
|
|
1193
|
-
return i && !v ? i(t,
|
|
1198
|
+
return i && !v ? i(t, w.encoder, A, "key", p) : t;
|
|
1194
1199
|
m = "";
|
|
1195
1200
|
}
|
|
1196
|
-
if (jn(m) ||
|
|
1201
|
+
if (jn(m) || me.isBuffer(m)) {
|
|
1197
1202
|
if (i) {
|
|
1198
|
-
var
|
|
1199
|
-
return [h(
|
|
1203
|
+
var ce = v ? t : i(t, w.encoder, A, "key", p);
|
|
1204
|
+
return [h(ce) + "=" + h(i(m, w.encoder, A, "value", p))];
|
|
1200
1205
|
}
|
|
1201
1206
|
return [h(t) + "=" + h(String(m))];
|
|
1202
1207
|
}
|
|
1203
|
-
var
|
|
1208
|
+
var k = [];
|
|
1204
1209
|
if (typeof m > "u")
|
|
1205
|
-
return
|
|
1206
|
-
var
|
|
1210
|
+
return k;
|
|
1211
|
+
var T;
|
|
1207
1212
|
if (n === "comma" && R(m))
|
|
1208
|
-
v && i && (m =
|
|
1213
|
+
v && i && (m = me.maybeMap(m, i)), T = [{ value: m.length > 0 ? m.join(",") || null : void 0 }];
|
|
1209
1214
|
else if (R(c))
|
|
1210
|
-
|
|
1215
|
+
T = c;
|
|
1211
1216
|
else {
|
|
1212
1217
|
var H = Object.keys(m);
|
|
1213
|
-
|
|
1218
|
+
T = f ? H.sort(f) : H;
|
|
1214
1219
|
}
|
|
1215
|
-
for (var V = o && R(m) && m.length === 1 ? t + "[]" : t, re = 0; re <
|
|
1216
|
-
var x =
|
|
1220
|
+
for (var V = o && R(m) && m.length === 1 ? t + "[]" : t, re = 0; re < T.length; ++re) {
|
|
1221
|
+
var x = T[re], _ = typeof x == "object" && typeof x.value < "u" ? x.value : m[x];
|
|
1217
1222
|
if (!(l && _ === null)) {
|
|
1218
1223
|
var z = R(m) ? typeof n == "function" ? n(V, x) : V : V + (u ? "." + x : "[" + x + "]");
|
|
1219
|
-
|
|
1220
|
-
var
|
|
1221
|
-
|
|
1224
|
+
F.set(e, C);
|
|
1225
|
+
var fe = Dr();
|
|
1226
|
+
fe.set(Ce, F), Mr(k, r(
|
|
1222
1227
|
_,
|
|
1223
1228
|
z,
|
|
1224
1229
|
n,
|
|
@@ -1234,42 +1239,42 @@ var ze = We, Z = Wt, bn = en, On = ze("%TypeError%"), pe = ze("%WeakMap%", !0),
|
|
|
1234
1239
|
h,
|
|
1235
1240
|
v,
|
|
1236
1241
|
A,
|
|
1237
|
-
|
|
1242
|
+
fe
|
|
1238
1243
|
));
|
|
1239
1244
|
}
|
|
1240
1245
|
}
|
|
1241
|
-
return
|
|
1246
|
+
return k;
|
|
1242
1247
|
}, Yn = function(e) {
|
|
1243
1248
|
if (!e)
|
|
1244
|
-
return
|
|
1249
|
+
return w;
|
|
1245
1250
|
if (e.encoder !== null && typeof e.encoder < "u" && typeof e.encoder != "function")
|
|
1246
1251
|
throw new TypeError("Encoder has to be a function.");
|
|
1247
|
-
var t = e.charset ||
|
|
1252
|
+
var t = e.charset || w.charset;
|
|
1248
1253
|
if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
|
|
1249
1254
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
1250
|
-
var n =
|
|
1255
|
+
var n = ie.default;
|
|
1251
1256
|
if (typeof e.format < "u") {
|
|
1252
|
-
if (!zn.call(
|
|
1257
|
+
if (!zn.call(ie.formatters, e.format))
|
|
1253
1258
|
throw new TypeError("Unknown format option provided.");
|
|
1254
1259
|
n = e.format;
|
|
1255
1260
|
}
|
|
1256
|
-
var o =
|
|
1261
|
+
var o = ie.formatters[n], a = w.filter;
|
|
1257
1262
|
return (typeof e.filter == "function" || R(e.filter)) && (a = e.filter), {
|
|
1258
|
-
addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix :
|
|
1259
|
-
allowDots: typeof e.allowDots > "u" ?
|
|
1263
|
+
addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : w.addQueryPrefix,
|
|
1264
|
+
allowDots: typeof e.allowDots > "u" ? w.allowDots : !!e.allowDots,
|
|
1260
1265
|
charset: t,
|
|
1261
|
-
charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel :
|
|
1262
|
-
delimiter: typeof e.delimiter > "u" ?
|
|
1263
|
-
encode: typeof e.encode == "boolean" ? e.encode :
|
|
1264
|
-
encoder: typeof e.encoder == "function" ? e.encoder :
|
|
1265
|
-
encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly :
|
|
1266
|
+
charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : w.charsetSentinel,
|
|
1267
|
+
delimiter: typeof e.delimiter > "u" ? w.delimiter : e.delimiter,
|
|
1268
|
+
encode: typeof e.encode == "boolean" ? e.encode : w.encode,
|
|
1269
|
+
encoder: typeof e.encoder == "function" ? e.encoder : w.encoder,
|
|
1270
|
+
encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : w.encodeValuesOnly,
|
|
1266
1271
|
filter: a,
|
|
1267
1272
|
format: n,
|
|
1268
1273
|
formatter: o,
|
|
1269
|
-
serializeDate: typeof e.serializeDate == "function" ? e.serializeDate :
|
|
1270
|
-
skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls :
|
|
1274
|
+
serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : w.serializeDate,
|
|
1275
|
+
skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : w.skipNulls,
|
|
1271
1276
|
sort: typeof e.sort == "function" ? e.sort : null,
|
|
1272
|
-
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling :
|
|
1277
|
+
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : w.strictNullHandling
|
|
1273
1278
|
};
|
|
1274
1279
|
}, Kn = function(r, e) {
|
|
1275
1280
|
var t = r, n = Yn(e), o, a;
|
|
@@ -1278,15 +1283,15 @@ var ze = We, Z = Wt, bn = en, On = ze("%TypeError%"), pe = ze("%WeakMap%", !0),
|
|
|
1278
1283
|
if (typeof t != "object" || t === null)
|
|
1279
1284
|
return "";
|
|
1280
1285
|
var i;
|
|
1281
|
-
e && e.arrayFormat in
|
|
1282
|
-
var c =
|
|
1286
|
+
e && e.arrayFormat in dr ? i = e.arrayFormat : e && "indices" in e ? i = e.indices ? "indices" : "repeat" : i = "indices";
|
|
1287
|
+
var c = dr[i];
|
|
1283
1288
|
if (e && "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
|
|
1284
1289
|
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
1285
1290
|
var f = c === "comma" && e && e.commaRoundTrip;
|
|
1286
1291
|
o || (o = Object.keys(t)), n.sort && o.sort(n.sort);
|
|
1287
1292
|
for (var u = Dr(), d = 0; d < o.length; ++d) {
|
|
1288
1293
|
var p = o[d];
|
|
1289
|
-
n.skipNulls && t[p] === null ||
|
|
1294
|
+
n.skipNulls && t[p] === null || Mr(l, Jn(
|
|
1290
1295
|
t[p],
|
|
1291
1296
|
p,
|
|
1292
1297
|
c,
|
|
@@ -1307,7 +1312,7 @@ var ze = We, Z = Wt, bn = en, On = ze("%TypeError%"), pe = ze("%WeakMap%", !0),
|
|
|
1307
1312
|
}
|
|
1308
1313
|
var h = l.join(n.delimiter), v = n.addQueryPrefix === !0 ? "?" : "";
|
|
1309
1314
|
return n.charsetSentinel && (n.charset === "iso-8859-1" ? v += "utf8=%26%2310003%3B&" : v += "utf8=%E2%9C%93&"), h.length > 0 ? v + h : "";
|
|
1310
|
-
}, X =
|
|
1315
|
+
}, X = Tr, Le = Object.prototype.hasOwnProperty, Xn = Array.isArray, g = {
|
|
1311
1316
|
allowDots: !1,
|
|
1312
1317
|
allowPrototypes: !1,
|
|
1313
1318
|
allowSparse: !1,
|
|
@@ -1328,7 +1333,7 @@ var ze = We, Z = Wt, bn = en, On = ze("%TypeError%"), pe = ze("%WeakMap%", !0),
|
|
|
1328
1333
|
return r.replace(/&#(\d+);/g, function(e, t) {
|
|
1329
1334
|
return String.fromCharCode(parseInt(t, 10));
|
|
1330
1335
|
});
|
|
1331
|
-
},
|
|
1336
|
+
}, Ur = function(r, e) {
|
|
1332
1337
|
return r && typeof r == "string" && e.comma && r.indexOf(",") > -1 ? r.split(",") : r;
|
|
1333
1338
|
}, ea = "utf8=%26%2310003%3B", ra = "utf8=%E2%9C%93", ta = function(e, t) {
|
|
1334
1339
|
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;
|
|
@@ -1339,15 +1344,15 @@ var ze = We, Z = Wt, bn = en, On = ze("%TypeError%"), pe = ze("%WeakMap%", !0),
|
|
|
1339
1344
|
if (c !== i) {
|
|
1340
1345
|
var u = l[c], d = u.indexOf("]="), p = d === -1 ? u.indexOf("=") : d + 1, h, v;
|
|
1341
1346
|
p === -1 ? (h = t.decoder(u, g.decoder, f, "key"), v = t.strictNullHandling ? null : "") : (h = t.decoder(u.slice(0, p), g.decoder, f, "key"), v = X.maybeMap(
|
|
1342
|
-
|
|
1347
|
+
Ur(u.slice(p + 1), t),
|
|
1343
1348
|
function(A) {
|
|
1344
1349
|
return t.decoder(A, g.decoder, f, "value");
|
|
1345
1350
|
}
|
|
1346
|
-
)), v && t.interpretNumericEntities && f === "iso-8859-1" && (v = Zn(v)), u.indexOf("[]=") > -1 && (v = Xn(v) ? [v] : v),
|
|
1351
|
+
)), v && t.interpretNumericEntities && f === "iso-8859-1" && (v = Zn(v)), u.indexOf("[]=") > -1 && (v = Xn(v) ? [v] : v), Le.call(n, h) ? n[h] = X.combine(n[h], v) : n[h] = v;
|
|
1347
1352
|
}
|
|
1348
1353
|
return n;
|
|
1349
1354
|
}, na = function(r, e, t, n) {
|
|
1350
|
-
for (var o = n ? e :
|
|
1355
|
+
for (var o = n ? e : Ur(e, t), a = r.length - 1; a >= 0; --a) {
|
|
1351
1356
|
var l, i = r[a];
|
|
1352
1357
|
if (i === "[]" && t.parseArrays)
|
|
1353
1358
|
l = [].concat(o);
|
|
@@ -1363,12 +1368,12 @@ var ze = We, Z = Wt, bn = en, On = ze("%TypeError%"), pe = ze("%WeakMap%", !0),
|
|
|
1363
1368
|
if (e) {
|
|
1364
1369
|
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 = [];
|
|
1365
1370
|
if (f) {
|
|
1366
|
-
if (!n.plainObjects &&
|
|
1371
|
+
if (!n.plainObjects && Le.call(Object.prototype, f) && !n.allowPrototypes)
|
|
1367
1372
|
return;
|
|
1368
1373
|
u.push(f);
|
|
1369
1374
|
}
|
|
1370
1375
|
for (var d = 0; n.depth > 0 && (c = i.exec(a)) !== null && d < n.depth; ) {
|
|
1371
|
-
if (d += 1, !n.plainObjects &&
|
|
1376
|
+
if (d += 1, !n.plainObjects && Le.call(Object.prototype, c[1].slice(1, -1)) && !n.allowPrototypes)
|
|
1372
1377
|
return;
|
|
1373
1378
|
u.push(c[1]);
|
|
1374
1379
|
}
|
|
@@ -1410,42 +1415,43 @@ var ze = We, Z = Wt, bn = en, On = ze("%TypeError%"), pe = ze("%WeakMap%", !0),
|
|
|
1410
1415
|
o = X.merge(o, c, t);
|
|
1411
1416
|
}
|
|
1412
1417
|
return t.allowSparse === !0 ? o : X.compact(o);
|
|
1413
|
-
}, la = Kn, ca = ia, fa =
|
|
1418
|
+
}, la = Kn, ca = ia, fa = Je, ua = {
|
|
1414
1419
|
formats: fa,
|
|
1415
1420
|
parse: ca,
|
|
1416
1421
|
stringify: la
|
|
1417
1422
|
};
|
|
1418
|
-
const
|
|
1423
|
+
const kr = /* @__PURE__ */ Sr(ua), La = (r) => kr.parse(r, { ignoreQueryPrefix: !0 }), Wa = (r) => kr.stringify(r, { arrayFormat: "brackets" });
|
|
1419
1424
|
export {
|
|
1420
|
-
|
|
1425
|
+
wa as Checkbox,
|
|
1421
1426
|
st as DropdownBtn,
|
|
1422
|
-
|
|
1427
|
+
Ta as HIGHLIGHTED_COLOR,
|
|
1423
1428
|
Da as HIGHLIGHTED_COLOR_ALPHA,
|
|
1424
|
-
|
|
1429
|
+
Aa as InputFormGroup,
|
|
1425
1430
|
ut as LabeledFormGroup,
|
|
1426
|
-
|
|
1427
|
-
|
|
1431
|
+
Ra as MAIN_COLOR,
|
|
1432
|
+
Ca as MAIN_COLOR_ALPHA,
|
|
1428
1433
|
ha as Message,
|
|
1429
1434
|
yt as NavPillItem,
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1435
|
+
xa as NavPills,
|
|
1436
|
+
_a as OrderingDropdown,
|
|
1437
|
+
Ua as PRIMARY_DARK_COLOR,
|
|
1438
|
+
Ma as PRIMARY_LIGHT_COLOR,
|
|
1434
1439
|
ga as Result,
|
|
1435
|
-
|
|
1436
|
-
|
|
1440
|
+
Ea as RowDropdownBtn,
|
|
1441
|
+
Pa as SearchField,
|
|
1437
1442
|
nt as SimpleCard,
|
|
1438
1443
|
Oa as ToggleSwitch,
|
|
1439
|
-
|
|
1444
|
+
ka as changeThemeInMarkup,
|
|
1440
1445
|
dt as determineOrderDir,
|
|
1441
1446
|
Ba as isDarkThemeEnabled,
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1447
|
+
Ia as orderToString,
|
|
1448
|
+
La as parseQuery,
|
|
1449
|
+
Na as sortList,
|
|
1450
|
+
Fa as stringToOrder,
|
|
1451
|
+
Wa as stringifyQuery,
|
|
1452
|
+
wr as useDomId,
|
|
1453
|
+
ba as useElementRef,
|
|
1449
1454
|
$a as useOrder,
|
|
1455
|
+
Sa as useTimeoutToggle,
|
|
1450
1456
|
ft as useToggle
|
|
1451
1457
|
};
|