quick-admin-vue3-core
Version:
以快(计算机执行效率、开发效率)为核心的后台管理系统开发模板
1,589 lines • 132 kB
JavaScript
import { ref as hn, reactive as So, defineComponent as Eo, h as ye, Transition as Ao, withCtx as Oo, withDirectives as xo, createVNode as Ro, vShow as Po, createApp as To, toRefs as Co, nextTick as vn, isRef as _o, inject as cr, defineAsyncComponent as $o } from "vue";
import { H as No, I as Ge, J as ko, K as gn, L as me, M as ur, N as bn, O as Fo, n as Do, t as K, _ as wn, P as Lo, Q as Mo, R as Io, S as Bo, c as Xt, T as Uo, U as fr, V as jo, W as ge, w as pr, X as qo, f as Ho, Y as Wo, Z as zo } from "./platform-DsTwHxm6.js";
import { w as Go, I as Jo } from "./index-D-KS7NhM.js";
function Ko(t = "") {
throw new Error("请传入参数:" + t);
}
function Vo(t) {
let e;
const r = hn(!1), n = So({
...t,
originalPosition: "",
originalOverflow: "",
visible: !1
});
function o(f) {
n.text = f;
}
function a() {
const f = n.parent, v = p.ns;
if (!f.vLoadingAddClassList) {
let y = f.getAttribute("loading-number");
y = Number.parseInt(y) - 1, y ? f.setAttribute("loading-number", y.toString()) : (Ge(f, v.bm("parent", "relative")), f.removeAttribute("loading-number")), Ge(f, v.bm("parent", "hidden"));
}
i(), c.unmount();
}
function i() {
var f, v;
(v = (f = p.$el) == null ? void 0 : f.parentNode) == null || v.removeChild(p.$el);
}
function s() {
var f;
t.beforeClose && !t.beforeClose() || (r.value = !0, clearTimeout(e), e = setTimeout(u, 400), n.visible = !1, (f = t.closed) == null || f.call(t));
}
function u() {
if (!r.value)
return;
const f = n.parent;
r.value = !1, f.vLoadingAddClassList = void 0, a();
}
const l = Eo({
name: "ElLoading",
setup(f, { expose: v }) {
const { ns: y, zIndex: h } = No("loading");
return v({
ns: y,
zIndex: h
}), () => {
const m = n.spinner || n.svg, w = ye("svg", {
class: "circular",
viewBox: n.svgViewBox ? n.svgViewBox : "0 0 50 50",
...m ? { innerHTML: m } : {}
}, [
ye("circle", {
class: "path",
cx: "25",
cy: "25",
r: "20",
fill: "none"
})
]), E = n.text ? ye("p", { class: y.b("text") }, [n.text]) : void 0;
return ye(Ao, {
name: y.b("fade"),
onAfterLeave: u
}, {
default: Oo(() => [
xo(Ro("div", {
style: {
backgroundColor: n.background || ""
},
class: [
y.b("mask"),
n.customClass,
n.fullscreen ? "is-fullscreen" : ""
]
}, [
ye("div", {
class: y.b("spinner")
}, [w, E])
]), [[Po, n.visible]])
])
});
};
}
}), c = To(l), p = c.mount(document.createElement("div"));
return {
...Co(n),
setText: o,
removeElLoadingChild: i,
close: s,
handleAfterLeave: u,
vm: p,
get $el() {
return p.$el;
}
};
}
let Fe;
const Mt = function(t = {}) {
if (!ko)
return;
const e = Qo(t);
if (e.fullscreen && Fe)
return Fe;
const r = Vo({
...e,
closed: () => {
var o;
(o = e.closed) == null || o.call(e), e.fullscreen && (Fe = void 0);
}
});
Xo(e, e.parent, r), dr(e, e.parent, r), e.parent.vLoadingAddClassList = () => dr(e, e.parent, r);
let n = e.parent.getAttribute("loading-number");
return n ? n = `${Number.parseInt(n) + 1}` : n = "1", e.parent.setAttribute("loading-number", n), e.parent.appendChild(r.$el), vn(() => r.visible.value = e.visible), e.fullscreen && (Fe = r), r;
}, Qo = (t) => {
var e, r, n, o;
let a;
return gn(t.target) ? a = (e = document.querySelector(t.target)) != null ? e : document.body : a = t.target || document.body, {
parent: a === document.body || t.body ? document.body : a,
background: t.background || "",
svg: t.svg || "",
svgViewBox: t.svgViewBox || "",
spinner: t.spinner || !1,
text: t.text || "",
fullscreen: a === document.body && ((r = t.fullscreen) != null ? r : !0),
lock: (n = t.lock) != null ? n : !1,
customClass: t.customClass || "",
visible: (o = t.visible) != null ? o : !0,
beforeClose: t.beforeClose,
closed: t.closed,
target: a
};
}, Xo = async (t, e, r) => {
const { nextZIndex: n } = r.vm.zIndex || r.vm._.exposed.zIndex, o = {};
if (t.fullscreen)
r.originalPosition.value = me(document.body, "position"), r.originalOverflow.value = me(document.body, "overflow"), o.zIndex = n();
else if (t.parent === document.body) {
r.originalPosition.value = me(document.body, "position"), await vn();
for (const a of ["top", "left"]) {
const i = a === "top" ? "scrollTop" : "scrollLeft";
o[a] = `${t.target.getBoundingClientRect()[a] + document.body[i] + document.documentElement[i] - Number.parseInt(me(document.body, `margin-${a}`), 10)}px`;
}
for (const a of ["height", "width"])
o[a] = `${t.target.getBoundingClientRect()[a]}px`;
} else
r.originalPosition.value = me(e, "position");
for (const [a, i] of Object.entries(o))
r.$el.style[a] = i;
}, dr = (t, e, r) => {
const n = r.vm.ns || r.vm._.exposed.ns;
["absolute", "fixed", "sticky"].includes(r.originalPosition.value) ? Ge(e, n.bm("parent", "relative")) : ur(e, n.bm("parent", "relative")), t.fullscreen && t.lock ? ur(e, n.bm("parent", "hidden")) : Ge(e, n.bm("parent", "hidden"));
}, Be = Symbol("ElLoading"), yr = (t, e) => {
var r, n, o, a;
const i = e.instance, s = (f) => bn(e.value) ? e.value[f] : void 0, u = (f) => {
const v = gn(f) && (i == null ? void 0 : i[f]) || f;
return v && hn(v);
}, l = (f) => u(s(f) || t.getAttribute(`element-loading-${Fo(f)}`)), c = (r = s("fullscreen")) != null ? r : e.modifiers.fullscreen, p = {
text: l("text"),
svg: l("svg"),
svgViewBox: l("svgViewBox"),
spinner: l("spinner"),
background: l("background"),
customClass: l("customClass"),
fullscreen: c,
target: (n = s("target")) != null ? n : c ? void 0 : t,
body: (o = s("body")) != null ? o : e.modifiers.body,
lock: (a = s("lock")) != null ? a : e.modifiers.lock
};
t[Be] = {
options: p,
instance: Mt(p)
};
}, Zo = (t, e) => {
for (const r of Object.keys(e))
_o(e[r]) && (e[r].value = t[r]);
}, mr = {
mounted(t, e) {
e.value && yr(t, e);
},
updated(t, e) {
const r = t[Be];
e.oldValue !== e.value && (e.value && !e.oldValue ? yr(t, e) : e.value && e.oldValue ? bn(e.value) && Zo(e.value, r.options) : r == null || r.instance.close());
},
unmounted(t) {
var e;
(e = t[Be]) == null || e.instance.close(), t[Be] = null;
}
}, Yo = {
install(t) {
t.directive("loading", mr), t.config.globalProperties.$loading = Mt;
},
directive: mr,
service: Mt
}, { colorDanger: hr, colorSuccess: De, colorWarning: ea } = Do, ta = {
add: {
name: "add",
text: "新增",
// auth: [0,1,2],
// to: undefined,
// handleClickType: undefined,
order: 0,
attrs: {
type: "success",
icon: "CirclePlus"
}
},
edit: {
name: "edit",
text: "编辑",
// auth: [0, 1, 2],
// to: undefined,
order: 1,
attrs: {
type: "success",
icon: "Edit"
}
},
delete: {
name: "delete",
text: "删除",
// auth: [0, 1, 2],
// to: undefined,
order: 2,
batchAble: !0,
attrs: {
type: "danger",
icon: "Delete"
},
popconfirm: {
icon: Go,
iconColor: hr,
confirmButtonType: "danger"
}
},
pass: {
name: "pass",
text: "通过",
// auth: [0,1,2],
// to: undefined,
order: 3,
batchAble: !0,
validateForm: !0,
attrs: {
type: "success",
icon: "Checked"
},
popconfirm: {
icon: "CircleCheck",
iconColor: De,
confirmButtonType: "success"
}
},
reject: {
name: "reject",
text: "驳回",
// auth: [0,1,2],
// to: undefined,
order: 4,
batchAble: !0,
validateForm: !0,
attrs: {
type: "danger",
icon: "Failed"
},
popconfirm: {
icon: "CircleClose",
iconColor: hr,
confirmButtonType: "danger"
}
},
repeal: {
name: "repeal",
text: "撤销",
// auth: [0, 1, 2],
// to: undefined,
order: 5,
batchAble: !0,
attrs: {
type: "warning",
icon: "TopLeft"
}
},
import: {
name: "import",
text: "导入",
// auth: [0, 1, 2],
// to: undefined,
handleClickType: "common",
order: 6,
attrs: {
type: "primary",
icon: "Top"
}
},
export: {
name: "export",
text: "导出",
// auth: [],
// to: undefined,
order: 7,
batchAble: !0,
handleClickType: "common",
attrs: {
type: "primary",
icon: "Bottom"
},
popconfirm: !0
},
upload: {
name: "upload",
text: "上传",
// auth: [0, 1, 2],
// to: undefined,
order: 8,
attrs: {
type: "primary",
icon: "Upload"
}
},
download: {
name: "download",
text: "下载",
// auth: [],
// to: undefined,
order: 9,
batchAble: !0,
attrs: {
type: "primary",
icon: "Download"
}
},
onShelf: {
name: "onShelf",
text: "上架",
// auth: [0, 1, 2],
// to: undefined,
order: 10,
batchAble: !0,
attrs: {
type: "primary",
icon: "Plus"
},
popconfirm: {
iconColor: De,
confirmButtonType: "primary"
}
},
offShelf: {
name: "offShelf",
text: "下架",
// auth: [0, 1, 2],
// to: undefined,
order: 10,
batchAble: !0,
attrs: {
type: "danger",
icon: "Minus"
},
popconfirm: {
iconColor: De,
confirmButtonType: "danger"
}
},
enable: {
name: "enable",
text: "启用",
// auth: [0, 1, 2],
// to: undefined,
order: 10,
batchAble: !0,
attrs: {
type: "success",
icon: "CircleCheck"
},
popconfirm: {
iconColor: De,
confirmButtonType: "success"
}
},
forbid: {
name: "forbid",
text: "禁用",
// auth: [0, 1, 2],
// to: undefined,
order: 11,
batchAble: !0,
attrs: {
type: "warning",
icon: "Remove"
},
popconfirm: {
iconColor: ea,
confirmButtonType: "warning"
}
},
audit: {
name: "audit",
text: "审核",
// auth: [0, 1, 2],
// to: undefined,
order: 20,
attrs: {
type: "success",
icon: "Edit"
}
},
view: {
name: "view",
text: "详情",
//查看
// auth: [],
// to: undefined,
order: 21,
attrs: {
type: "info",
icon: "View"
}
},
submit: {
name: "submit",
text: "提交",
// auth: [],
// to: undefined,
order: 40,
attrs: {
type: "primary",
icon: "Promotion"
}
},
reset: {
name: "reset",
text: "重置",
// auth: [0],
// to: undefined,
order: 41,
attrs: {
icon: "RefreshLeft"
}
},
log: {
name: "log",
text: "日志",
// auth: [],
// to: undefined,
order: 42,
attrs: {
type: "primary",
icon: "Tickets"
}
},
link: {
name: "link",
text: "前往",
// auth: [],
// to: undefined,
order: 50,
attrs: {
type: "info",
icon: "Link"
}
}
}, { merge: vr } = wn;
function ra(t, e) {
const { text: r, attrs: n = {} } = e, { type: o } = n, a = { iconColor: Mo(o), confirmButtonType: o }, i = `确认${r}吗?`, s = K(t);
if (s === "String") return { title: t, ...a };
if (s === "Object") return { title: i, ...a, ...t };
if (t === !0) return { title: i, ...a };
throw new Error(`暂未处理此种情况:${s}`);
}
function It(t, e, r, n = !1) {
const o = K(t);
let a = { name: "" };
if (o === "String") {
const l = gr[t];
if (!l) return { name: t };
const { icon: c } = l.attrs || {};
a = JSON.parse(JSON.stringify(l)), c && (a.attrs.icon = c);
} else if (o === "Object") {
if (n) return t;
const { name: l = Ko() } = t;
a = vr({}, gr[l], t);
} else o === "Function" && (a = It(t(e), e));
const { auth: i, attrs: s, popconfirm: u } = a;
if (i != null && i.length && (a.auth = i.map((l) => {
var f;
if (typeof l != "object") return l;
const { disabled: c, code: p } = l;
return c && ((f = Lo()) == null ? void 0 : f.type) === p && (s ? s.disabled = !0 : a.attrs = { disabled: !0 }), p;
})), u && (a.popconfirm = ra(u, a)), s) {
const { icon: l } = s;
l && K(l) === "String" && (s.icon = Jo[l]);
}
if (r) {
const { attrs: l, ...c } = r;
if (vr(a.attrs, l), c)
for (const p in c)
c[p] !== void 0 && (a[p] = c[p]);
}
return a.handleClickType === void 0 && (a.handleClickType = "common"), a;
}
var fn, pn;
const na = (pn = (fn = Xt) == null ? void 0 : fn.tpls) == null ? void 0 : pn.baseBtns, gr = Io(Bo(ta, na, "merge")), oa = () => {
const t = cr("openPopup"), e = cr("closePopup");
return { openPopup: t, closePopup: e };
};
var ue = TypeError;
const aa = {}, ia = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
default: aa
}, Symbol.toStringTag, { value: "Module" })), sa = /* @__PURE__ */ Uo(ia);
var Zt = typeof Map == "function" && Map.prototype, ft = Object.getOwnPropertyDescriptor && Zt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Je = Zt && ft && typeof ft.get == "function" ? ft.get : null, br = Zt && Map.prototype.forEach, Yt = typeof Set == "function" && Set.prototype, pt = Object.getOwnPropertyDescriptor && Yt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Ke = Yt && pt && typeof pt.get == "function" ? pt.get : null, wr = Yt && Set.prototype.forEach, la = typeof WeakMap == "function" && WeakMap.prototype, we = la ? WeakMap.prototype.has : null, ca = typeof WeakSet == "function" && WeakSet.prototype, Se = ca ? WeakSet.prototype.has : null, ua = typeof WeakRef == "function" && WeakRef.prototype, Sr = ua ? WeakRef.prototype.deref : null, fa = Boolean.prototype.valueOf, pa = Object.prototype.toString, da = Function.prototype.toString, ya = String.prototype.match, er = String.prototype.slice, J = String.prototype.replace, ma = String.prototype.toUpperCase, Er = String.prototype.toLowerCase, Sn = RegExp.prototype.test, Ar = Array.prototype.concat, j = Array.prototype.join, ha = Array.prototype.slice, Or = Math.floor, Bt = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, dt = Object.getOwnPropertySymbols, Ut = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, le = typeof Symbol == "function" && typeof Symbol.iterator == "object", Ee = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === le || !0) ? Symbol.toStringTag : null, En = Object.prototype.propertyIsEnumerable, xr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
return t.__proto__;
} : null);
function Rr(t, e) {
if (t === 1 / 0 || t === -1 / 0 || t !== t || t && t > -1e3 && t < 1e3 || Sn.call(/e/, e))
return e;
var r = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
if (typeof t == "number") {
var n = t < 0 ? -Or(-t) : Or(t);
if (n !== t) {
var o = String(n), a = er.call(e, o.length + 1);
return J.call(o, r, "$&_") + "." + J.call(J.call(a, /([0-9]{3})/g, "$&_"), /_$/, "");
}
}
return J.call(e, r, "$&_");
}
var jt = sa, Pr = jt.custom, Tr = xn(Pr) ? Pr : null, An = {
__proto__: null,
double: '"',
single: "'"
}, va = {
__proto__: null,
double: /(["\\])/g,
single: /(['\\])/g
}, Ye = function t(e, r, n, o) {
var a = r || {};
if (W(a, "quoteStyle") && !W(An, a.quoteStyle))
throw new TypeError('option "quoteStyle" must be "single" or "double"');
if (W(a, "maxStringLength") && (typeof a.maxStringLength == "number" ? a.maxStringLength < 0 && a.maxStringLength !== 1 / 0 : a.maxStringLength !== null))
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
var i = W(a, "customInspect") ? a.customInspect : !0;
if (typeof i != "boolean" && i !== "symbol")
throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
if (W(a, "indent") && a.indent !== null && a.indent !== " " && !(parseInt(a.indent, 10) === a.indent && a.indent > 0))
throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
if (W(a, "numericSeparator") && typeof a.numericSeparator != "boolean")
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
var s = a.numericSeparator;
if (typeof e > "u")
return "undefined";
if (e === null)
return "null";
if (typeof e == "boolean")
return e ? "true" : "false";
if (typeof e == "string")
return Pn(e, a);
if (typeof e == "number") {
if (e === 0)
return 1 / 0 / e > 0 ? "0" : "-0";
var u = String(e);
return s ? Rr(e, u) : u;
}
if (typeof e == "bigint") {
var l = String(e) + "n";
return s ? Rr(e, l) : l;
}
var c = typeof a.depth > "u" ? 5 : a.depth;
if (typeof n > "u" && (n = 0), n >= c && c > 0 && typeof e == "object")
return qt(e) ? "[Array]" : "[Object]";
var p = Da(a, n);
if (typeof o > "u")
o = [];
else if (Rn(o, e) >= 0)
return "[Circular]";
function f(D, G, H) {
if (G && (o = ha.call(o), o.push(G)), H) {
var de = {
depth: a.depth
};
return W(a, "quoteStyle") && (de.quoteStyle = a.quoteStyle), t(D, de, n + 1, o);
}
return t(D, a, n + 1, o);
}
if (typeof e == "function" && !Cr(e)) {
var v = Ra(e), y = Le(e, f);
return "[Function" + (v ? ": " + v : " (anonymous)") + "]" + (y.length > 0 ? " { " + j.call(y, ", ") + " }" : "");
}
if (xn(e)) {
var h = le ? J.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : Ut.call(e);
return typeof e == "object" && !le ? he(h) : h;
}
if (Na(e)) {
for (var m = "<" + Er.call(String(e.nodeName)), w = e.attributes || [], E = 0; E < w.length; E++)
m += " " + w[E].name + "=" + On(ga(w[E].value), "double", a);
return m += ">", e.childNodes && e.childNodes.length && (m += "..."), m += "</" + Er.call(String(e.nodeName)) + ">", m;
}
if (qt(e)) {
if (e.length === 0)
return "[]";
var g = Le(e, f);
return p && !Fa(g) ? "[" + Ht(g, p) + "]" : "[ " + j.call(g, ", ") + " ]";
}
if (wa(e)) {
var T = Le(e, f);
return !("cause" in Error.prototype) && "cause" in e && !En.call(e, "cause") ? "{ [" + String(e) + "] " + j.call(Ar.call("[cause]: " + f(e.cause), T), ", ") + " }" : T.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + j.call(T, ", ") + " }";
}
if (typeof e == "object" && i) {
if (Tr && typeof e[Tr] == "function" && jt)
return jt(e, { depth: c - n });
if (i !== "symbol" && typeof e.inspect == "function")
return e.inspect();
}
if (Pa(e)) {
var x = [];
return br && br.call(e, function(D, G) {
x.push(f(G, e, !0) + " => " + f(D, e));
}), _r("Map", Je.call(e), x, p);
}
if (_a(e)) {
var $ = [];
return wr && wr.call(e, function(D) {
$.push(f(D, e));
}), _r("Set", Ke.call(e), $, p);
}
if (Ta(e))
return yt("WeakMap");
if ($a(e))
return yt("WeakSet");
if (Ca(e))
return yt("WeakRef");
if (Ea(e))
return he(f(Number(e)));
if (Oa(e))
return he(f(Bt.call(e)));
if (Aa(e))
return he(fa.call(e));
if (Sa(e))
return he(f(String(e)));
if (typeof window < "u" && e === window)
return "{ [object Window] }";
if (typeof globalThis < "u" && e === globalThis || typeof fr < "u" && e === fr)
return "{ [object globalThis] }";
if (!ba(e) && !Cr(e)) {
var N = Le(e, f), q = xr ? xr(e) === Object.prototype : e instanceof Object || e.constructor === Object, M = e instanceof Object ? "" : "null prototype", z = !q && Ee && Object(e) === e && Ee in e ? er.call(V(e), 8, -1) : M ? "Object" : "", ke = q || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", ne = ke + (z || M ? "[" + j.call(Ar.call([], z || [], M || []), ": ") + "] " : "");
return N.length === 0 ? ne + "{}" : p ? ne + "{" + Ht(N, p) + "}" : ne + "{ " + j.call(N, ", ") + " }";
}
return String(e);
};
function On(t, e, r) {
var n = r.quoteStyle || e, o = An[n];
return o + t + o;
}
function ga(t) {
return J.call(String(t), /"/g, """);
}
function re(t) {
return !Ee || !(typeof t == "object" && (Ee in t || typeof t[Ee] < "u"));
}
function qt(t) {
return V(t) === "[object Array]" && re(t);
}
function ba(t) {
return V(t) === "[object Date]" && re(t);
}
function Cr(t) {
return V(t) === "[object RegExp]" && re(t);
}
function wa(t) {
return V(t) === "[object Error]" && re(t);
}
function Sa(t) {
return V(t) === "[object String]" && re(t);
}
function Ea(t) {
return V(t) === "[object Number]" && re(t);
}
function Aa(t) {
return V(t) === "[object Boolean]" && re(t);
}
function xn(t) {
if (le)
return t && typeof t == "object" && t instanceof Symbol;
if (typeof t == "symbol")
return !0;
if (!t || typeof t != "object" || !Ut)
return !1;
try {
return Ut.call(t), !0;
} catch {
}
return !1;
}
function Oa(t) {
if (!t || typeof t != "object" || !Bt)
return !1;
try {
return Bt.call(t), !0;
} catch {
}
return !1;
}
var xa = Object.prototype.hasOwnProperty || function(t) {
return t in this;
};
function W(t, e) {
return xa.call(t, e);
}
function V(t) {
return pa.call(t);
}
function Ra(t) {
if (t.name)
return t.name;
var e = ya.call(da.call(t), /^function\s*([\w$]+)/);
return e ? e[1] : null;
}
function Rn(t, e) {
if (t.indexOf)
return t.indexOf(e);
for (var r = 0, n = t.length; r < n; r++)
if (t[r] === e)
return r;
return -1;
}
function Pa(t) {
if (!Je || !t || typeof t != "object")
return !1;
try {
Je.call(t);
try {
Ke.call(t);
} catch {
return !0;
}
return t instanceof Map;
} catch {
}
return !1;
}
function Ta(t) {
if (!we || !t || typeof t != "object")
return !1;
try {
we.call(t, we);
try {
Se.call(t, Se);
} catch {
return !0;
}
return t instanceof WeakMap;
} catch {
}
return !1;
}
function Ca(t) {
if (!Sr || !t || typeof t != "object")
return !1;
try {
return Sr.call(t), !0;
} catch {
}
return !1;
}
function _a(t) {
if (!Ke || !t || typeof t != "object")
return !1;
try {
Ke.call(t);
try {
Je.call(t);
} catch {
return !0;
}
return t instanceof Set;
} catch {
}
return !1;
}
function $a(t) {
if (!Se || !t || typeof t != "object")
return !1;
try {
Se.call(t, Se);
try {
we.call(t, we);
} catch {
return !0;
}
return t instanceof WeakSet;
} catch {
}
return !1;
}
function Na(t) {
return !t || typeof t != "object" ? !1 : typeof HTMLElement < "u" && t instanceof HTMLElement ? !0 : typeof t.nodeName == "string" && typeof t.getAttribute == "function";
}
function Pn(t, e) {
if (t.length > e.maxStringLength) {
var r = t.length - e.maxStringLength, n = "... " + r + " more character" + (r > 1 ? "s" : "");
return Pn(er.call(t, 0, e.maxStringLength), e) + n;
}
var o = va[e.quoteStyle || "single"];
o.lastIndex = 0;
var a = J.call(J.call(t, o, "\\$1"), /[\x00-\x1f]/g, ka);
return On(a, "single", e);
}
function ka(t) {
var e = t.charCodeAt(0), r = {
8: "b",
9: "t",
10: "n",
12: "f",
13: "r"
}[e];
return r ? "\\" + r : "\\x" + (e < 16 ? "0" : "") + ma.call(e.toString(16));
}
function he(t) {
return "Object(" + t + ")";
}
function yt(t) {
return t + " { ? }";
}
function _r(t, e, r, n) {
var o = n ? Ht(r, n) : j.call(r, ", ");
return t + " (" + e + ") {" + o + "}";
}
function Fa(t) {
for (var e = 0; e < t.length; e++)
if (Rn(t[e], `
`) >= 0)
return !1;
return !0;
}
function Da(t, e) {
var r;
if (t.indent === " ")
r = " ";
else if (typeof t.indent == "number" && t.indent > 0)
r = j.call(Array(t.indent + 1), " ");
else
return null;
return {
base: r,
prev: j.call(Array(e + 1), r)
};
}
function Ht(t, e) {
if (t.length === 0)
return "";
var r = `
` + e.prev + e.base;
return r + j.call(t, "," + r) + `
` + e.prev;
}
function Le(t, e) {
var r = qt(t), n = [];
if (r) {
n.length = t.length;
for (var o = 0; o < t.length; o++)
n[o] = W(t, o) ? e(t[o], t) : "";
}
var a = typeof dt == "function" ? dt(t) : [], i;
if (le) {
i = {};
for (var s = 0; s < a.length; s++)
i["$" + a[s]] = a[s];
}
for (var u in t)
W(t, u) && (r && String(Number(u)) === u && u < t.length || le && i["$" + u] instanceof Symbol || (Sn.call(/[^\w$]/, u) ? n.push(e(u, t) + ": " + e(t[u], t)) : n.push(u + ": " + e(t[u], t))));
if (typeof dt == "function")
for (var l = 0; l < a.length; l++)
En.call(t, a[l]) && n.push("[" + e(a[l]) + "]: " + e(t[a[l]], t));
return n;
}
var La = Ye, Ma = ue, et = function(t, e, r) {
for (var n = t, o; (o = n.next) != null; n = o)
if (o.key === e)
return n.next = o.next, r || (o.next = /** @type {NonNullable<typeof list.next>} */
t.next, t.next = o), o;
}, Ia = function(t, e) {
if (t) {
var r = et(t, e);
return r && r.value;
}
}, Ba = function(t, e, r) {
var n = et(t, e);
n ? n.value = r : t.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */
{
// eslint-disable-line no-param-reassign, no-extra-parens
key: e,
next: t.next,
value: r
};
}, Ua = function(t, e) {
return t ? !!et(t, e) : !1;
}, ja = function(t, e) {
if (t)
return et(t, e, !0);
}, qa = function() {
var e, r = {
assert: function(n) {
if (!r.has(n))
throw new Ma("Side channel does not contain " + La(n));
},
delete: function(n) {
var o = e && e.next, a = ja(e, n);
return a && o && o === a && (e = void 0), !!a;
},
get: function(n) {
return Ia(e, n);
},
has: function(n) {
return Ua(e, n);
},
set: function(n, o) {
e || (e = {
next: void 0
}), Ba(
/** @type {NonNullable<typeof $o>} */
e,
n,
o
);
}
};
return r;
}, Tn = Object, Ha = Error, Wa = EvalError, za = RangeError, Ga = ReferenceError, Ja = SyntaxError, Ka = URIError, Va = Math.abs, Qa = Math.floor, Xa = Math.max, Za = Math.min, Ya = Math.pow, ei = Math.round, ti = Number.isNaN || function(e) {
return e !== e;
}, ri = ti, ni = function(e) {
return ri(e) || e === 0 ? e : e < 0 ? -1 : 1;
}, oi = Object.getOwnPropertyDescriptor, Ue = oi;
if (Ue)
try {
Ue([], "length");
} catch {
Ue = null;
}
var Cn = Ue, je = Object.defineProperty || !1;
if (je)
try {
je({}, "a", { value: 1 });
} catch {
je = !1;
}
var ai = je, mt, $r;
function ii() {
return $r || ($r = 1, mt = function() {
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
return !1;
if (typeof Symbol.iterator == "symbol")
return !0;
var e = {}, r = Symbol("test"), n = Object(r);
if (typeof r == "string" || Object.prototype.toString.call(r) !== "[object Symbol]" || Object.prototype.toString.call(n) !== "[object Symbol]")
return !1;
var o = 42;
e[r] = o;
for (var a in e)
return !1;
if (typeof Object.keys == "function" && Object.keys(e).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(e).length !== 0)
return !1;
var i = Object.getOwnPropertySymbols(e);
if (i.length !== 1 || i[0] !== r || !Object.prototype.propertyIsEnumerable.call(e, r))
return !1;
if (typeof Object.getOwnPropertyDescriptor == "function") {
var s = (
/** @type {PropertyDescriptor} */
Object.getOwnPropertyDescriptor(e, r)
);
if (s.value !== o || s.enumerable !== !0)
return !1;
}
return !0;
}), mt;
}
var ht, Nr;
function si() {
if (Nr) return ht;
Nr = 1;
var t = typeof Symbol < "u" && Symbol, e = ii();
return ht = function() {
return typeof t != "function" || typeof Symbol != "function" || typeof t("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : e();
}, ht;
}
var vt, kr;
function _n() {
return kr || (kr = 1, vt = typeof Reflect < "u" && Reflect.getPrototypeOf || null), vt;
}
var gt, Fr;
function $n() {
if (Fr) return gt;
Fr = 1;
var t = Tn;
return gt = t.getPrototypeOf || null, gt;
}
var bt, Dr;
function li() {
if (Dr) return bt;
Dr = 1;
var t = "Function.prototype.bind called on incompatible ", e = Object.prototype.toString, r = Math.max, n = "[object Function]", o = function(u, l) {
for (var c = [], p = 0; p < u.length; p += 1)
c[p] = u[p];
for (var f = 0; f < l.length; f += 1)
c[f + u.length] = l[f];
return c;
}, a = function(u, l) {
for (var c = [], p = l, f = 0; p < u.length; p += 1, f += 1)
c[f] = u[p];
return c;
}, i = function(s, u) {
for (var l = "", c = 0; c < s.length; c += 1)
l += s[c], c + 1 < s.length && (l += u);
return l;
};
return bt = function(u) {
var l = this;
if (typeof l != "function" || e.apply(l) !== n)
throw new TypeError(t + l);
for (var c = a(arguments, 1), p, f = function() {
if (this instanceof p) {
var w = l.apply(
this,
o(c, arguments)
);
return Object(w) === w ? w : this;
}
return l.apply(
u,
o(c, arguments)
);
}, v = r(0, l.length - c.length), y = [], h = 0; h < v; h++)
y[h] = "$" + h;
if (p = Function("binder", "return function (" + i(y, ",") + "){ return binder.apply(this,arguments); }")(f), l.prototype) {
var m = function() {
};
m.prototype = l.prototype, p.prototype = new m(), m.prototype = null;
}
return p;
}, bt;
}
var wt, Lr;
function tt() {
if (Lr) return wt;
Lr = 1;
var t = li();
return wt = Function.prototype.bind || t, wt;
}
var St, Mr;
function tr() {
return Mr || (Mr = 1, St = Function.prototype.call), St;
}
var Et, Ir;
function Nn() {
return Ir || (Ir = 1, Et = Function.prototype.apply), Et;
}
var ci = typeof Reflect < "u" && Reflect && Reflect.apply, ui = tt(), fi = Nn(), pi = tr(), di = ci, yi = di || ui.call(pi, fi), mi = tt(), hi = ue, vi = tr(), gi = yi, kn = function(e) {
if (e.length < 1 || typeof e[0] != "function")
throw new hi("a function is required");
return gi(mi, vi, e);
}, At, Br;
function bi() {
if (Br) return At;
Br = 1;
var t = kn, e = Cn, r;
try {
r = /** @type {{ __proto__?: typeof Array.prototype }} */
[].__proto__ === Array.prototype;
} catch (i) {
if (!i || typeof i != "object" || !("code" in i) || i.code !== "ERR_PROTO_ACCESS")
throw i;
}
var n = !!r && e && e(
Object.prototype,
/** @type {keyof typeof Object.prototype} */
"__proto__"
), o = Object, a = o.getPrototypeOf;
return At = n && typeof n.get == "function" ? t([n.get]) : typeof a == "function" ? (
/** @type {import('./get')} */
function(s) {
return a(s == null ? s : o(s));
}
) : !1, At;
}
var Ot, Ur;
function wi() {
if (Ur) return Ot;
Ur = 1;
var t = _n(), e = $n(), r = bi();
return Ot = t ? function(o) {
return t(o);
} : e ? function(o) {
if (!o || typeof o != "object" && typeof o != "function")
throw new TypeError("getProto: not an object");
return e(o);
} : r ? function(o) {
return r(o);
} : null, Ot;
}
var xt, jr;
function Si() {
if (jr) return xt;
jr = 1;
var t = Function.prototype.call, e = Object.prototype.hasOwnProperty, r = tt();
return xt = r.call(t, e), xt;
}
var S, Ei = Tn, Ai = Ha, Oi = Wa, xi = za, Ri = Ga, ce = Ja, se = ue, Pi = Ka, Ti = Va, Ci = Qa, _i = Xa, $i = Za, Ni = Ya, ki = ei, Fi = ni, Fn = Function, Rt = function(t) {
try {
return Fn('"use strict"; return (' + t + ").constructor;")();
} catch {
}
}, Re = Cn, Di = ai, Pt = function() {
throw new se();
}, Li = Re ? function() {
try {
return arguments.callee, Pt;
} catch {
try {
return Re(arguments, "callee").get;
} catch {
return Pt;
}
}
}() : Pt, oe = si()(), C = wi(), Mi = $n(), Ii = _n(), Dn = Nn(), Te = tr(), ie = {}, Bi = typeof Uint8Array > "u" || !C ? S : C(Uint8Array), Z = {
__proto__: null,
"%AggregateError%": typeof AggregateError > "u" ? S : AggregateError,
"%Array%": Array,
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? S : ArrayBuffer,
"%ArrayIteratorPrototype%": oe && C ? C([][Symbol.iterator]()) : S,
"%AsyncFromSyncIteratorPrototype%": S,
"%AsyncFunction%": ie,
"%AsyncGenerator%": ie,
"%AsyncGeneratorFunction%": ie,
"%AsyncIteratorPrototype%": ie,
"%Atomics%": typeof Atomics > "u" ? S : Atomics,
"%BigInt%": typeof BigInt > "u" ? S : BigInt,
"%BigInt64Array%": typeof BigInt64Array > "u" ? S : BigInt64Array,
"%BigUint64Array%": typeof BigUint64Array > "u" ? S : BigUint64Array,
"%Boolean%": Boolean,
"%DataView%": typeof DataView > "u" ? S : DataView,
"%Date%": Date,
"%decodeURI%": decodeURI,
"%decodeURIComponent%": decodeURIComponent,
"%encodeURI%": encodeURI,
"%encodeURIComponent%": encodeURIComponent,
"%Error%": Ai,
"%eval%": eval,
// eslint-disable-line no-eval
"%EvalError%": Oi,
"%Float16Array%": typeof Float16Array > "u" ? S : Float16Array,
"%Float32Array%": typeof Float32Array > "u" ? S : Float32Array,
"%Float64Array%": typeof Float64Array > "u" ? S : Float64Array,
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? S : FinalizationRegistry,
"%Function%": Fn,
"%GeneratorFunction%": ie,
"%Int8Array%": typeof Int8Array > "u" ? S : Int8Array,
"%Int16Array%": typeof Int16Array > "u" ? S : Int16Array,
"%Int32Array%": typeof Int32Array > "u" ? S : Int32Array,
"%isFinite%": isFinite,
"%isNaN%": isNaN,
"%IteratorPrototype%": oe && C ? C(C([][Symbol.iterator]())) : S,
"%JSON%": typeof JSON == "object" ? JSON : S,
"%Map%": typeof Map > "u" ? S : Map,
"%MapIteratorPrototype%": typeof Map > "u" || !oe || !C ? S : C((/* @__PURE__ */ new Map())[Symbol.iterator]()),
"%Math%": Math,
"%Number%": Number,
"%Object%": Ei,
"%Object.getOwnPropertyDescriptor%": Re,
"%parseFloat%": parseFloat,
"%parseInt%": parseInt,
"%Promise%": typeof Promise > "u" ? S : Promise,
"%Proxy%": typeof Proxy > "u" ? S : Proxy,
"%RangeError%": xi,
"%ReferenceError%": Ri,
"%Reflect%": typeof Reflect > "u" ? S : Reflect,
"%RegExp%": RegExp,
"%Set%": typeof Set > "u" ? S : Set,
"%SetIteratorPrototype%": typeof Set > "u" || !oe || !C ? S : C((/* @__PURE__ */ new Set())[Symbol.iterator]()),
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? S : SharedArrayBuffer,
"%String%": String,
"%StringIteratorPrototype%": oe && C ? C(""[Symbol.iterator]()) : S,
"%Symbol%": oe ? Symbol : S,
"%SyntaxError%": ce,
"%ThrowTypeError%": Li,
"%TypedArray%": Bi,
"%TypeError%": se,
"%Uint8Array%": typeof Uint8Array > "u" ? S : Uint8Array,
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? S : Uint8ClampedArray,
"%Uint16Array%": typeof Uint16Array > "u" ? S : Uint16Array,
"%Uint32Array%": typeof Uint32Array > "u" ? S : Uint32Array,
"%URIError%": Pi,
"%WeakMap%": typeof WeakMap > "u" ? S : WeakMap,
"%WeakRef%": typeof WeakRef > "u" ? S : WeakRef,
"%WeakSet%": typeof WeakSet > "u" ? S : WeakSet,
"%Function.prototype.call%": Te,
"%Function.prototype.apply%": Dn,
"%Object.defineProperty%": Di,
"%Object.getPrototypeOf%": Mi,
"%Math.abs%": Ti,
"%Math.floor%": Ci,
"%Math.max%": _i,
"%Math.min%": $i,
"%Math.pow%": Ni,
"%Math.round%": ki,
"%Math.sign%": Fi,
"%Reflect.getPrototypeOf%": Ii
};
if (C)
try {
null.error;
} catch (t) {
var Ui = C(C(t));
Z["%Error.prototype%"] = Ui;
}
var ji = function t(e) {
var r;
if (e === "%AsyncFunction%")
r = Rt("async function () {}");
else if (e === "%GeneratorFunction%")
r = Rt("function* () {}");
else if (e === "%AsyncGeneratorFunction%")
r = Rt("async function* () {}");
else if (e === "%AsyncGenerator%") {
var n = t("%AsyncGeneratorFunction%");
n && (r = n.prototype);
} else if (e === "%AsyncIteratorPrototype%") {
var o = t("%AsyncGenerator%");
o && C && (r = C(o.prototype));
}
return Z[e] = r, r;
}, qr = {
__proto__: null,
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
"%ArrayPrototype%": ["Array", "prototype"],
"%ArrayProto_entries%": ["Array", "prototype", "entries"],
"%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
"%ArrayProto_keys%": ["Array", "prototype", "keys"],
"%ArrayProto_values%": ["Array", "prototype", "values"],
"%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
"%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
"%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
"%BooleanPrototype%": ["Boolean", "prototype"],
"%DataViewPrototype%": ["DataView", "prototype"],
"%DatePrototype%": ["Date", "prototype"],
"%ErrorPrototype%": ["Error", "prototype"],
"%EvalErrorPrototype%": ["EvalError", "prototype"],
"%Float32ArrayPrototype%": ["Float32Array", "prototype"],
"%Float64ArrayPrototype%": ["Float64Array", "prototype"],
"%FunctionPrototype%": ["Function", "prototype"],
"%Generator%": ["GeneratorFunction", "prototype"],
"%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
"%Int8ArrayPrototype%": ["Int8Array", "prototype"],
"%Int16ArrayPrototype%": ["Int16Array", "prototype"],
"%Int32ArrayPrototype%": ["Int32Array", "prototype"],
"%JSONParse%": ["JSON", "parse"],
"%JSONStringify%": ["JSON", "stringify"],
"%MapPrototype%": ["Map", "prototype"],
"%NumberPrototype%": ["Number", "prototype"],
"%ObjectPrototype%": ["Object", "prototype"],
"%ObjProto_toString%": ["Object", "prototype", "toString"],
"%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
"%PromisePrototype%": ["Promise", "prototype"],
"%PromiseProto_then%": ["Promise", "prototype", "then"],
"%Promise_all%": ["Promise", "all"],
"%Promise_reject%": ["Promise", "reject"],
"%Promise_resolve%": ["Promise", "resolve"],
"%RangeErrorPrototype%": ["RangeError", "prototype"],
"%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
"%RegExpPrototype%": ["RegExp", "prototype"],
"%SetPrototype%": ["Set", "prototype"],
"%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
"%StringPrototype%": ["String", "prototype"],
"%SymbolPrototype%": ["Symbol", "prototype"],
"%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
"%TypedArrayPrototype%": ["TypedArray", "prototype"],
"%TypeErrorPrototype%": ["TypeError", "prototype"],
"%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
"%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
"%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
"%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
"%URIErrorPrototype%": ["URIError", "prototype"],
"%WeakMapPrototype%": ["WeakMap", "prototype"],
"%WeakSetPrototype%": ["WeakSet", "prototype"]
}, Ce = tt(), Ve = Si(), qi = Ce.call(Te, Array.prototype.concat), Hi = Ce.call(Dn, Array.prototype.splice), Hr = Ce.call(Te, String.prototype.replace), Qe = Ce.call(Te, String.prototype.slice), Wi = Ce.call(Te, RegExp.prototype.exec), zi = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Gi = /\\(\\)?/g, Ji = function(e) {
var r = Qe(e, 0, 1), n = Qe(e, -1);
if (r === "%" && n !== "%")
throw new ce("invalid intrinsic syntax, expected closing `%`");
if (n === "%" && r !== "%")
throw new ce("invalid intrinsic syntax, expected opening `%`");
var o = [];
return Hr(e, zi, function(a, i, s, u) {
o[o.length] = s ? Hr(u, Gi, "$1") : i || a;
}), o;
}, Ki = function(e, r) {
var n = e, o;
if (Ve(qr, n) && (o = qr[n], n = "%" + o[0] + "%"), Ve(Z, n)) {
var a = Z[n];
if (a === ie && (a = ji(n)), typeof a > "u" && !r)
throw new se("intrinsic " + e + " exists, but is not available. Please file an issue!");
return {
alias: o,
name: n,
value: a
};
}
throw new ce("intrinsic " + e + " does not exist!");
}, rr = function(e, r) {
if (typeof e != "string" || e.length === 0)
throw new se("intrinsic name must be a non-empty string");
if (arguments.length > 1 && typeof r != "boolean")
throw new se('"allowMissing" argument must be a boolean');
if (Wi(/^%?[^%]*%?$/, e) === null)
throw new ce("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
var n = Ji(e), o = n.length > 0 ? n[0] : "", a = Ki("%" + o + "%", r), i = a.name, s = a.value, u = !1, l = a.alias;
l && (o = l[0], Hi(n, qi([0, 1], l)));
for (var c = 1, p = !0; c < n.length; c += 1) {
var f = n[c], v = Qe(f, 0, 1), y = Qe(f, -1);
if ((v === '"' || v === "'" || v === "`" || y === '"' || y === "'" || y === "`") && v !== y)
throw new ce("property names with quotes must have matching quotes");
if ((f === "constructor" || !p) && (u = !0), o += "." + f, i = "%" + o + "%", Ve(Z, i))
s = Z[i];
else if (s != null) {
if (!(f in s)) {
if (!r)
throw new se("base intrinsic for " + e + " exists, but the property is not available.");
return;
}
if (Re && c + 1 >= n.length) {
var h = Re(s, f);
p = !!h, p && "get" in h && !("originalValue" in h.get) ? s = h.get : s = s[f];
} else
p = Ve(s, f), s = s[f];
p && !u && (Z[i] = s);
}
}
return s;
}, Ln = rr, Mn = kn, Vi = Mn([Ln("%String.prototype.indexOf%")]), In = function(e, r) {
var n = (
/** @type {(this: unknown, ...args: unknown[]) => unknown} */
Ln(e, !!r)
);
return typeof n == "function" && Vi(e, ".prototype.") > -1 ? Mn(
/** @type {const} */
[n]
) : n;
}, Qi = rr, _e = In, Xi = Ye, Zi = ue, Wr = Qi("%Map%", !0), Yi = _e("Map.prototype.get", !0), es = _e("Map.prototype.set", !0), ts = _e("Map.prototype.has", !0), rs = _e("Map.prototype.delete", !0), ns = _e("Map.prototype.size", !0), Bn = !!Wr && /** @type {Exclude<import('.'), false>} */
function() {
var e, r = {
assert: function(n) {
if (!r.has(n))
throw new Zi("Side channel does not contain " + Xi(n));
},
delete: function(n) {
if (e) {
var o = rs(e, n);
return ns(e) === 0 && (e = void 0), o;
}
return !1;
},
get: function(n) {
if (e)
return Yi(e, n);
},
has: function(n) {
return e ? ts(e, n) : !1;
},
set: function(n, o) {
e || (e = new Wr()), es(e, n, o);
}
};
return r;
}, os = rr, rt = In, as = Ye, Me = Bn, is = ue, ae = os("%WeakMap%", !0), ss = rt("WeakMap.prototype.get", !0), ls = rt("WeakMap.prototype.set", !0), cs = rt("WeakMap.prototype.has", !0), us = rt("WeakMap.prototype.delete", !0), fs = ae ? (
/** @type {Exclude<import('.'), false>} */
function() {
var e, r, n = {
assert: function(o) {
if (!n.has(o))
throw new is("Side channel does not contain " + as(o));
},
delete: function(o) {
if (ae && o && (typeof o == "object" || typeof o == "function")) {
if (e)
return us(e, o);
} else if (Me && r)
return r.delete(o);
return !1;
},
get: function(o) {
return ae && o && (typeof o == "object" || typeof o == "function") && e ? ss(e, o) : r && r.get(o);
},
has: function(o) {
return ae && o && (typeof o == "object" || typeof o == "function") && e ? cs(e, o) : !!r && r.has(o);
},
set: function(o, a) {
ae && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new ae()), ls(e, o, a)) : Me && (r || (r = Me()), r.set(o, a));
}
};
return n;
}
) : Me, ps = ue, ds = Ye, ys = qa, ms = Bn, hs = fs, vs = hs || ms || ys, gs = function() {
var e, r = {
assert: function(n) {
if (!r.has(n))
throw new ps("Side channel does not contain " + ds(n));
},
delete: function(n) {
return !!e && e.delete(n);
},
get: function(n) {
return e && e.get(n);
},
has: function(n) {
return !!e && e.has(n);
},
set: function(n, o) {
e || (e = vs()), e.set(n, o);
}
};
return r;
}, bs = String.prototype.replace, ws = /%20/g, Tt = {
RFC1738: "RFC1738",
RFC3986: "RFC3986"
}, nr = {
default: Tt.RFC3986,
formatters: {
RFC1738: function(t) {
return bs.call(t, ws, "+");
},
RFC3986: function(t) {
return String(t);
}
},
RFC1738: Tt.RFC1738,
RFC3986: Tt.RFC3986
}, Ss = nr, Ct = Object.prototype.hasOwnProperty, Q = Array.isArray, I = function() {
for (var t = [], e = 0; e < 256; ++e)
t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
return t;
}(), Es = function(e) {
for (; e.length > 1; ) {
var r = e.pop(), n = r.obj[r.prop];
if (Q(n)) {
for (var o = [], a = 0; a < n.length; ++a)
typeof n[a] < "u" && o.push(n[a]);
r.obj[r.prop] = o;
}
}
}, Un = function(e, r) {
for (var n = r && r.plainObjects ? { __proto__: null } : {}, o = 0; o < e.length; ++o)
typeof e[o] < "u" && (n[o] = e[o]);
return n;
}, As = function t(e, r, n) {
if (!r)
return e;
if (typeof r != "object" && typeof r != "function") {
if (Q(e))
e.push(r);
else if (e && typeof e == "object")
(n && (n.plainObjects || n.allowPrototypes) || !Ct.call(Object.prototype, r)) && (e[r] = !0);
else
return [e, r];
return e;
}
if (!e || typeof e != "object")
return [e].concat(r);
var o = e;
return Q(e) && !Q(r) && (o = Un(e, n)), Q(e) && Q(r) ? (r.forEach(function(a, i) {
if (Ct.call(e, i)) {
var s = e[i];
s && typeof s == "object" && a && typeof a == "object" ? e[i] = t(s, a, n) : e.push(a);
} else
e[i] = a;
}), e) : Object.keys(r).reduce(function(a, i) {
var s = r[i];
return Ct.call(a, i) ? a[i] = t(a[i], s, n) : a[i] = s, a;
}, o);
}, Os = function(e, r) {
return Object.keys(r).reduce(function(n, o) {
return n[o] = r[o], n;
}, e);
}, xs = function(t, e, r) {
var n = t.replace(/\+/g, " ");
if (r === "iso-8859-1")
return n.replace(/%[0-9a-f]{2}/gi, unescape);
try {
return decodeURIComponent(n);
} catch {
return n;
}
}, _t = 1024, Rs = function(e, r, n, o, a) {
if (e.length === 0)
return e;
var i = e;
if (typeof e == "symbol" ? i = Symbol.prototype.toString.call(e) : typeof e != "string" && (i = String(e)), n === "iso-8859-1")
return escape(i).replace(/%u[0-9a-f]{4}/gi, function(v) {
return "%26%23" + parseInt(v.slice(2), 16) + "%3B";
});
for (var s = "", u = 0; u < i.length; u += _t) {
for (var l = i.length >= _t ? i.slice(u, u + _t) : i, c = [], p = 0; p < l.length; ++p) {
var f = l.charCodeAt(p);
if (f === 45 || f === 46 || f === 95 || f === 126 || f >= 48 && f <= 57 || f >= 65 && f <= 90 || f >= 97 && f <= 122 || a === Ss.RFC1738 && (f === 40 || f === 41)) {
c[c.length] = l.charAt(p);
continue;
}
if (f < 128) {
c[c.length] = I[f];
continue;
}
if (f < 2048) {
c[c.length] = I[192 | f >> 6] + I[128 | f & 63];
continue;
}
if (f < 55296 || f >= 57344) {
c[c.length] = I[224 | f >> 12] + I[128 | f >> 6 & 63] + I[128 | f & 63];
continue;
}
p += 1, f = 65536 + ((f & 1023) << 10 | l.charCodeAt(p) & 1023), c[c.length] = I[240 | f >> 18] + I[128 | f >> 12 & 63] + I[128 | f >> 6 & 63] + I[128 | f & 63];
}
s += c.join("");
}
return s;
}, Ps = function(e) {
for (var r = [{ obj: { o: e }, prop: "o" }], n = [], o = 0; o < r.length; ++o)
for (var a = r[o], i = a.obj[a.prop], s = Object.keys(i), u = 0; u < s.length; ++u) {
var l = s[u], c = i[l];
typeof c == "object" && c !== null && n.indexOf(c) === -1 && (r.push({ obj: i, prop: l }), n.push(c));
}
return Es(r), e;
}, Ts = function(e) {
return Object.prototype.toString.call(e) === "[object RegExp]";
}, Cs = function(e) {
return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
}, _s = function(e, r) {
return [].concat(e, r);
}, $s = function(e, r) {
if (Q(e)) {
for (var n = [], o = 0; o < e.length; o += 1)
n.push(r(e[o]));
return n;
}
return r(e);
}, jn = {
arrayToObject: Un,
assign: Os,
combine: _s,
compact: Ps,
decode: xs,
encode: Rs,
isBuffer: Cs,
isRegExp: Ts,
maybeMap: $s,
merge: As
}, qn = gs, qe = jn, Ae = nr, Ns = Object.prototype.hasOwnProperty, Hn = {
brackets: function(e) {
return e + "[]";
},
comma: "comma",
indices: function(e, r) {
return e + "[" + r + "]";
},
repeat: function(e) {
return e;
}
}, U = Array.isArray, ks = Array.prototype.push, Wn = function(t, e) {
ks.apply(t, U(e) ? e : [e]);
}, Fs = Date.prototype.toISOString, zr = Ae.default, P = {
addQueryPrefix: !1,
allowDots: !1,
allowEmptyArrays: !1,
arrayFormat: "indices",
charset: "utf-8",
charsetSentinel: !1,
commaRoundTrip: !1,
delimiter: "&",
encode: !0,
encodeDotInKeys: !1,
encoder: qe.encode,
encodeValuesOnly: !1,
filter: void 0,
format: zr,
formatter: Ae.formatters[zr],
// deprecated
indices: !1,
serializeDate: function(e) {
return Fs.call(e);
},
skipNulls: !1,
strictNullHandling: !1
}, Ds = function(e) {
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
}, $t = {}, Ls = function t(e, r, n, o, a, i, s, u, l, c, p, f, v, y, h, m, w, E) {
for (var g = e