vxe-table-pro
Version:
Vue table plugins based on vxe-table
1,326 lines • 841 kB
JavaScript
import { defineComponent as _e, resolveComponent as Et, createBlock as Lt, openBlock as wt, withCtx as kt, createVNode as Rt, createElementVNode as zt, unref as Gt, ref as ve, watch as ze, computed as F, defineAsyncComponent as hn, createElementBlock as en, createCommentVNode as me, withModifiers as er, createTextVNode as Zn, Fragment as Wn, inject as We, onMounted as Wt, normalizeClass as lo, renderList as wr, createSlots as Gs, resolveDynamicComponent as bn, mergeProps as Dr, normalizeStyle as $o, toDisplayString as Da, mergeModels as Jc, useModel as bv, nextTick as we, renderSlot as Co, onBeforeMount as yv, onUnmounted as Xt, provide as It, isRef as eu, reactive as ct, h as o, createApp as xv, onBeforeUnmount as Pa, Teleport as co, TransitionGroup as If, onActivated as wv } from "vue";
import * as tu from "@element-plus/icons-vue";
import { Refresh as Dv, FullScreen as Cv } from "@element-plus/icons-vue";
import Sv, { ElMessageBox as Ev } from "element-plus";
import { VxeTable as $v, VxeColumn as Pv, VxeToolbar as Vv } from "vxe-table";
const Tv = { class: "rounded-div" }, Ov = { class: "rounded-div" }, kv = /* @__PURE__ */ _e({
__name: "ToolsComponents",
emits: ["onRefresh", "onFullScreen"],
setup(e, { emit: t }) {
const n = t, a = () => {
n("onRefresh");
}, r = () => {
n("onFullScreen");
};
return (s, i) => {
const c = Et("el-icon"), d = Et("el-link"), f = Et("el-space");
return wt(), Lt(f, { size: 4 }, {
default: kt(() => [
Rt(d, {
underline: !1,
onClick: a
}, {
default: kt(() => [
zt("div", Tv, [
Rt(c, { style: { "font-size": "16px" } }, {
default: kt(() => [
Rt(Gt(Dv))
]),
_: 1
})
])
]),
_: 1
}),
Rt(d, {
underline: !1,
onClick: r
}, {
default: kt(() => [
zt("div", Ov, [
Rt(c, { style: { "font-size": "16px" } }, {
default: kt(() => [
Rt(Gt(Cv))
]),
_: 1
})
])
]),
_: 1
})
]),
_: 1
});
};
}
}), uo = (e, t) => {
const n = e.__vccOpts || e;
for (const [a, r] of t)
n[a] = r;
return n;
}, Nv = /* @__PURE__ */ uo(kv, [["__scopeId", "data-v-94ac75ca"]]), Mf = "_index_num_", Ff = "_data_index_", cn = [];
for (let e = 0; e < 256; ++e)
cn.push((e + 256).toString(16).slice(1));
function Iv(e, t = 0) {
return (cn[e[t + 0]] + cn[e[t + 1]] + cn[e[t + 2]] + cn[e[t + 3]] + "-" + cn[e[t + 4]] + cn[e[t + 5]] + "-" + cn[e[t + 6]] + cn[e[t + 7]] + "-" + cn[e[t + 8]] + cn[e[t + 9]] + "-" + cn[e[t + 10]] + cn[e[t + 11]] + cn[e[t + 12]] + cn[e[t + 13]] + cn[e[t + 14]] + cn[e[t + 15]]).toLowerCase();
}
let $l;
const Mv = new Uint8Array(16);
function Fv() {
if (!$l) {
if (typeof crypto > "u" || !crypto.getRandomValues)
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
$l = crypto.getRandomValues.bind(crypto);
}
return $l(Mv);
}
const _v = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), nu = { randomUUID: _v };
function ou(e, t, n) {
var r;
if (nu.randomUUID && !e)
return nu.randomUUID();
e = e || {};
const a = e.random ?? ((r = e.rng) == null ? void 0 : r.call(e)) ?? Fv();
if (a.length < 16)
throw new Error("Random bytes length must be >= 16");
return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, Iv(a);
}
const Lv = (e) => !!e.serialNumber, Av = (e) => {
const t = ve([]), n = () => {
a();
}, a = () => {
const c = [...e.columns].filter((d) => !d.hideTable).map((d) => {
let f;
return Lv(d) ? f = {
...d,
key: Mf,
uuid: ou()
} : f = {
...d,
uuid: ou()
}, f.type && (f.itemType = f == null ? void 0 : f.type, ["seq", "checkbox", "radio", "expand", "html"].includes(f.type) || delete f.type), f;
});
t.value = c;
};
let r = null;
ze(
() => e.columns,
() => {
clearTimeout(r), r = setTimeout(() => {
console.log("触发表格列表顺序改变"), a();
}, 100);
},
{
immediate: !0,
deep: !0
}
);
const s = F(() => e.columns.filter((d) => d.query && !d.query.showInTableHeader)), i = F(() => e.columns.filter((d) => d.query && d.query.showInTableHeader));
return {
reloadTableColumns: n,
tableColumns: t,
queryTableColumns: s,
tableHeaderQueryColumns: i
};
}, Rv = (e) => {
const t = ve(1), n = ve(20), a = F(() => "total, sizes, prev, pager, next, jumper");
return {
currentPage: t,
pageSize: n,
pageLayout: a,
onSizeChange: (i) => {
n.value = i, e({
current: t.value,
size: n.value
});
},
onCurrentChange: (i) => {
t.value = i, e({
current: t.value,
size: n.value
});
}
};
}, Wv = (e, t, n) => {
const a = ve(!1), r = ve({
data: [],
total: 0
});
ze(
() => e.data,
() => {
e.data && (r.value = {
data: i(e.data.data),
total: e.data.total
});
}
);
const s = async (c) => {
if (a.value = !0, e.queryData) {
const d = await e.queryData(c);
d && (r.value = {
data: i(d.data),
total: d.total
});
}
a.value = !1;
}, i = (c) => (c || []).map((f, p) => ({
...f,
[Mf]: (t - 1) * n + p + 1,
[Ff]: p
}));
return {
tableData: r,
onQueryTableData: s,
loading: a
};
}, Bv = (e, t, n, a) => {
const r = ve([]), s = () => {
var D, S, O;
const u = e.checkboxConfig.checkRowKeys || [];
if (i(u))
return;
const g = e.checkboxConfig.labelField, E = n.value.data.filter((z) => u.indexOf(z[g]) !== -1);
((D = e.options) == null ? void 0 : D.crossTableCheck) || (S = t.value) == null || S.clearCheckboxRow(), E.length && ((O = t.value) == null || O.setCheckboxRow(E, !0), r.value = E);
}, i = (u) => {
const g = e.checkboxConfig.labelField;
return u.every((E) => r.value.find((w) => w[g] === E));
};
return ze(
() => [e.checkboxConfig.checkRowKeys],
() => {
s();
},
{
deep: !0,
immediate: !0
}
), ze(
() => [n],
() => {
s();
},
{
deep: !0,
immediate: !0
}
), {
onSelectChange: ({ row: u, checked: g }) => {
if (g)
r.value.push(u);
else {
const E = e.checkboxConfig.labelField;
r.value = r.value.filter((w) => w[E] !== u[E]);
}
a("selectChange", r.value);
},
onCheckBoxAll: ({ $table: u, checked: g }) => {
const E = u.getCheckboxRecords(), w = e.checkboxConfig.labelField;
if (g) {
const D = r.value.map((S) => S[w]);
E.forEach((S) => {
D.indexOf(S[w]) === -1 && r.value.push(S);
});
} else {
const D = n.value.data.map((S) => S[w]);
r.value = r.value.filter((S) => D.indexOf(S[w]) === -1);
}
a("selectChange", r.value);
},
onRadioChange: ({ row: u }) => {
a("radioChange", u);
},
clearSelectRows: () => {
r.value = [];
}
};
}, Cr = {
customInput: hn(() => import("./index-B9zQy87d.mjs")),
customSelect: hn(() => import("./index-DEsvjZWW.mjs")),
customerDatePicker: hn(() => import("./index-qz0YQLDc.mjs")),
operateList: hn(() => import("./index-BPFoEH0b.mjs")),
customerText: hn(() => import("./index-DyV2MvpW.mjs")),
uploadImage: hn(() => import("./index-Dgi434kO.mjs")),
richText: hn(() => import("./index-gYB1b4v7.mjs")),
selectInput: hn(() => import("./index-tgPrZ9if.mjs")),
tabSelect: hn(() => import("./index-CkwGKqrT.mjs")),
cascaderSelect: hn(() => import("./index-DeYuAo-Y.mjs")),
customerGroupBox: hn(() => import("./index-Br_XVXlI.mjs")),
customerGroupRadio: hn(() => import("./index-Deq6nco4.mjs")),
checkBoxTree: hn(() => import("./index-DkSXvNQK.mjs")),
copyText: hn(() => import("./index-d4udgK2a.mjs"))
}, zv = /* @__PURE__ */ _e({
__name: "OperateButton",
props: {
isExpand: {
type: Boolean,
default: !1
},
folderButtonShow: {
type: Boolean,
default: !1
}
},
emits: ["operateClick"],
setup(e, { emit: t }) {
ve(!0);
const n = t, a = e, r = ve(a.isExpand);
ze(
() => a.isExpand,
() => {
r.value = a.isExpand;
}
);
const s = () => {
n("operateClick", "query");
}, i = () => {
n("operateClick", "reset");
}, c = () => {
n("operateClick", "expand");
}, d = () => {
n("operateClick", "fold");
};
return (f, p) => {
const u = Et("el-button"), g = Et("DArrowRight"), E = Et("el-icon"), w = Et("el-space");
return wt(), Lt(w, { style: { "margin-left": "8px" } }, {
default: kt(() => [
Rt(u, {
type: "primary",
onClick: er(s, ["stop"])
}, {
default: kt(() => p[0] || (p[0] = [
Zn("查询")
])),
_: 1
}),
Rt(u, {
onClick: er(i, ["stop"])
}, {
default: kt(() => p[1] || (p[1] = [
Zn("重置")
])),
_: 1
}),
e.folderButtonShow ? (wt(), en(Wn, { key: 0 }, [
r.value ? (wt(), Lt(u, {
key: 1,
link: "",
onClick: er(d, ["stop"])
}, {
default: kt(() => [
p[3] || (p[3] = Zn(" 收起 ")),
Rt(E, { class: "close" }, {
default: kt(() => [
Rt(g)
]),
_: 1
})
]),
_: 1
})) : (wt(), Lt(u, {
key: 0,
link: "",
onClick: er(c, ["stop"])
}, {
default: kt(() => [
p[2] || (p[2] = Zn(" 展开 ")),
Rt(E, { class: "open" }, {
default: kt(() => [
Rt(g)
]),
_: 1
})
]),
_: 1
}))
], 64)) : me("", !0)
]),
_: 1
});
};
}
}), au = /* @__PURE__ */ uo(zv, [["__scopeId", "data-v-b07278f4"]]), jv = { class: "form-style" }, Hv = {
key: 0,
class: "operate-style"
}, qv = /* @__PURE__ */ _e({
__name: "QueryForm",
props: {
columns: {
type: Array,
default: () => []
},
defaultQueryData: {
type: Object,
default: () => null
},
defaultExpand: {
type: Boolean,
default: !1
}
},
emits: ["submit", "formChange", "heightChange"],
setup(e, { emit: t }) {
const n = ve(!1), a = ve({}), r = ve(), s = ve(), i = ve(), c = We("options"), d = t, f = e;
Wt(() => {
p(), new ResizeObserver((y) => {
for (let P of y)
p();
}).observe(i.value), u();
});
const p = () => {
var y;
((y = i.value) == null ? void 0 : y.clientHeight) > 50 ? r.value = !0 : r.value = !1;
}, u = () => {
n.value = f.defaultExpand, f.defaultQueryData && (a.value = f.defaultQueryData), f.columns.forEach((h) => {
a.value[h.key] === void 0 && (a.value[h.key] = h.query.defaultValue);
}), E();
}, g = (h) => {
h === "query" && D("query"), h === "reset" && w("reset"), h === "expand" && (n.value = !0, d("heightChange")), h === "fold" && (n.value = !1, d("heightChange"));
}, E = () => {
console.log("formData.value", a.value), d("formChange", { ...a.value });
}, w = (h) => {
a.value = {}, D(h);
}, D = (h) => {
d("submit", { ...a.value }, h);
}, S = (h) => {
var y, P, $;
return (y = h.query) != null && y.render ? (P = h.query) == null ? void 0 : P.render : Cr[(($ = h.query) == null ? void 0 : $.type) || "customInput"];
}, O = (h) => {
var y, P, $, Q, de, Z, ae, j;
if (((P = (y = h.query) == null ? void 0 : y.props) == null ? void 0 : P.disabled) !== void 0)
return ($ = h.props) == null ? void 0 : $.disabled;
if (((Q = h == null ? void 0 : h.query) == null ? void 0 : Q.disabled) !== void 0)
return typeof ((de = h == null ? void 0 : h.query) == null ? void 0 : de.disabled) == "boolean" ? (Z = h == null ? void 0 : h.query) == null ? void 0 : Z.disabled : (j = (ae = h == null ? void 0 : h.query) == null ? void 0 : ae.disabled) == null ? void 0 : j.call(ae, a.value);
}, z = (h) => {
var Z, ae, j, X;
const y = {}, P = (Z = h == null ? void 0 : h.query) == null ? void 0 : Z.labelWidth, $ = (ae = c == null ? void 0 : c.query) == null ? void 0 : ae.labelWidth;
P ? y.width = typeof P == "number" ? `${P}px` : P : $ && (y.width = typeof $ == "number" ? `${$}px` : $);
const Q = (j = h == null ? void 0 : h.query) == null ? void 0 : j.labelAlign, de = (X = c == null ? void 0 : c.query) == null ? void 0 : X.labelAlign;
return Q ? y.justifyContent = Q : de && (y.justifyContent = de), y;
};
return (h, y) => {
const P = Et("QuestionFilled"), $ = Et("el-icon"), Q = Et("el-tooltip"), de = Et("el-form-item"), Z = Et("el-form");
return wt(), en("div", jv, [
zt("div", {
class: lo(n.value ? "form-expand-box" : "form-fold-box"),
ref_key: "queryOuterRef",
ref: s
}, [
Rt(Z, {
model: a.value,
class: "queryFormStyle",
onChange: E
}, {
default: kt(() => [
zt("div", {
class: "form-item-style",
ref_key: "queryInnerRef",
ref: i
}, [
(wt(!0), en(Wn, null, wr(e.columns, (ae) => {
var j, X, B, W;
return wt(), en(Wn, null, [
!((j = ae == null ? void 0 : ae.query) != null && j.show) || (X = ae.query) != null && X.show(a.value) ? (wt(), Lt(de, {
key: ae.key,
style: { "margin-left": "8px" },
"label-position": ((W = (B = Gt(c)) == null ? void 0 : B.query) == null ? void 0 : W.labelPosition) === "vertical" ? "top" : ""
}, Gs({
default: kt(() => {
var G;
return [
ae.query ? (wt(), Lt(bn(S(ae)), Dr({
key: 0,
modelValue: a.value[ae.key],
"onUpdate:modelValue": (_) => a.value[ae.key] = _,
style: { width: ae.query.itemWidth ? ae.query.itemWidth : "180px" },
form: a.value,
value: a.value[ae.key],
onChange: (_) => {
a.value[ae.key] = _, E();
},
ref_for: !0
}, ((G = ae.query) == null ? void 0 : G.props) || {}, {
disabled: O(ae),
onSearch: () => {
g("query");
}
}), null, 16, ["modelValue", "onUpdate:modelValue", "style", "form", "value", "onChange", "disabled", "onSearch"])) : me("", !0)
];
}),
_: 2
}, [
ae.query.hideLabel ? void 0 : {
name: "label",
fn: kt(() => {
var G, _, x, m, T, L, re, ge, U;
return [
zt("div", {
class: "label-style",
style: $o(z(ae))
}, [
(G = ae.query) != null && G.labelTips ? (wt(), Lt(Q, {
key: 0,
content: (_ = ae.query) == null ? void 0 : _.labelTips,
placement: "top"
}, {
default: kt(() => [
Rt($, { class: "relative top-[2px] mr-[2px] color-gray-500" }, {
default: kt(() => [
Rt(P)
]),
_: 1
})
]),
_: 2
}, 1032, ["content"])) : me("", !0),
(x = ae.query) != null && x.prefix ? (wt(), Lt(bn((m = ae.query) == null ? void 0 : m.prefix), {
key: 1,
"form-data": a.value
}, null, 8, ["form-data"])) : me("", !0),
zt("span", null, [
(T = ae.query) != null && T.labelRender ? (wt(), Lt(bn((L = ae.query) == null ? void 0 : L.labelRender), {
key: 0,
"form-data": a.value
}, null, 8, ["form-data"])) : (wt(), en(Wn, { key: 1 }, [
Zn(Da(((re = ae.query) == null ? void 0 : re.title) || ae.title), 1)
], 64))
]),
(ge = ae.query) != null && ge.suffix ? (wt(), Lt(bn((U = ae.query) == null ? void 0 : U.suffix), {
key: 2,
"form-data": a.value
}, null, 8, ["form-data"])) : me("", !0)
], 4)
];
}),
key: "0"
}
]), 1032, ["label-position"])) : me("", !0)
], 64);
}), 256)),
n.value ? (wt(), Lt(au, {
key: 0,
style: { "padding-bottom": "8px" },
"is-expand": n.value,
onOperateClick: g,
folderButtonShow: r.value
}, null, 8, ["is-expand", "folderButtonShow"])) : me("", !0)
], 512)
]),
_: 1
}, 8, ["model"])
], 2),
n.value ? me("", !0) : (wt(), en("div", Hv, [
Rt(au, {
"is-expand": n.value,
onOperateClick: g,
folderButtonShow: r.value
}, null, 8, ["is-expand", "folderButtonShow"])
]))
]);
};
}
}), Gv = /* @__PURE__ */ uo(qv, [["__scopeId", "data-v-b903bf61"]]), Uv = { class: "form-style" }, Yv = {
key: 1,
class: "foot-button-line"
}, Kv = /* @__PURE__ */ _e({
__name: "FormDialog",
props: /* @__PURE__ */ Jc({
formColumns: {
type: Array,
default: () => []
},
defaultData: {
type: Object,
default: () => []
},
formType: {
type: String,
default: "add"
},
dialogOptions: {
type: Object,
default: () => ({
width: 800
})
}
}, {
modelValue: { default: !1 },
modelModifiers: {}
}),
emits: /* @__PURE__ */ Jc(["formChange", "onOk"], ["update:modelValue"]),
setup(e, { emit: t }) {
const n = We("options"), a = t, r = ve(), s = bv(e, "modelValue"), i = ve({}), c = e, d = ve({});
ze(s, () => {
s.value && (p(), u());
});
const f = ve();
ze(
i,
() => {
clearTimeout(f.value), f.value = setTimeout(() => {
u();
}, 100);
},
{
deep: !0
}
);
const p = () => {
c.formColumns.forEach((j) => {
i.value[j.key] === void 0 && (i.value[j.key] = j[c.formType].defaultValue);
});
}, u = async () => {
var W, G, _, x, m, T;
const j = c.formType, X = [...c.formColumns], B = {};
for (let L = 0; L < X.length; L++) {
const re = X[L];
let ge = !0;
(W = re == null ? void 0 : re[j]) != null && W.show && (Object.prototype.toString.call((G = re == null ? void 0 : re[j]) == null ? void 0 : G.show) === "[object AsyncFunction]" ? ge = await ((x = (_ = re == null ? void 0 : re[j]) == null ? void 0 : _.show) == null ? void 0 : x.call(_, i)) : ge = (T = (m = re == null ? void 0 : re[j]) == null ? void 0 : m.show) == null ? void 0 : T.call(m, i)), B[re.key] = ge;
}
d.value = B;
}, g = F(() => [...c.formColumns].map((B) => {
let W = w(B);
return W = D(W), W;
})), E = F(() => (g.value || []).filter((j) => d.value[j.key])), w = (j) => {
var W;
const X = c.formType, B = (W = j[X]) == null ? void 0 : W.like;
if (B) {
const G = j[X] || {}, _ = j[B] || {};
j[X] = {
..._,
...G
};
}
return j;
}, D = (j) => {
var W, G, _, x, m, T, L, re, ge, U;
const X = c.formType, B = (((G = (W = j == null ? void 0 : j[X]) == null ? void 0 : W.props) == null ? void 0 : G.rules) || []).find((Y) => Y.required);
return ((x = (_ = j == null ? void 0 : j[X]) == null ? void 0 : _.props) != null && x.required || (m = j == null ? void 0 : j[X]) != null && m.required) && !B && ((re = (L = (T = j == null ? void 0 : j[X]) == null ? void 0 : T.props) == null ? void 0 : L.rules) != null && re.length ? (U = (ge = j == null ? void 0 : j[X]) == null ? void 0 : ge.props) == null || U.rules.push({
required: !0,
message: `${j.title}不能为空`
}) : (j[X].props || (j[X].props = {
rules: []
}), j[X].props.rules = [], j[X].props.rules.push({
required: !0,
message: `${j.title}不能为空`
}))), j;
};
ze(
() => c.defaultData,
() => {
i.value = { ...c.defaultData };
}
);
const S = (j) => {
var B, W, G;
const X = c.formType;
return (B = j == null ? void 0 : j[X]) != null && B.render ? (W = j == null ? void 0 : j[X]) == null ? void 0 : W.render : Cr[((G = j == null ? void 0 : j[X]) == null ? void 0 : G.type) || "customerText"];
}, O = (j) => {
var B, W, G, _, x, m, T, L;
const X = c.formType;
if (X === "view")
return !0;
if (((W = (B = j == null ? void 0 : j[X]) == null ? void 0 : B.props) == null ? void 0 : W.disabled) !== void 0)
return (G = j == null ? void 0 : j[X].props) == null ? void 0 : G.disabled;
if (((_ = j == null ? void 0 : j[X]) == null ? void 0 : _.disabled) !== void 0)
return typeof ((x = j == null ? void 0 : j[X]) == null ? void 0 : x.disabled) == "boolean" ? (m = j == null ? void 0 : j[X]) == null ? void 0 : m.disabled : (L = (T = j == null ? void 0 : j[X]) == null ? void 0 : T.disabled) == null ? void 0 : L.call(T, i.value);
}, z = (j) => {
var G, _, x;
const X = c.formType, B = {}, W = n != null && n.labelWidth ? n == null ? void 0 : n.labelWidth : (G = n == null ? void 0 : n[X]) != null && G.labelWidth ? (_ = n == null ? void 0 : n[X]) == null ? void 0 : _.labelWidth : (x = j == null ? void 0 : j[X]) == null ? void 0 : x.labelWidth;
return W && (B.width = typeof W == "number" ? `${W}px` : W), B;
}, h = () => {
a("formChange", { ...i.value });
}, y = (j, X) => {
var W;
const B = c.formType;
return (W = j == null ? void 0 : j[B]) == null ? void 0 : W[X];
}, P = (j) => {
var B;
const X = c.formType;
return ((B = j == null ? void 0 : j[X]) == null ? void 0 : B.title) || j.title;
}, $ = F(() => {
var X;
const j = c.formType;
return ((X = n == null ? void 0 : n[j]) == null ? void 0 : X.labelPosition) === "vertical" ? "top" : "";
}), Q = () => {
r.value.validate((j) => {
j && a("onOk", i.value);
});
}, de = (j) => {
var x, m, T;
const X = c.formType, B = (x = j == null ? void 0 : j[X]) == null ? void 0 : x.colNum, W = (m = j == null ? void 0 : j[X]) == null ? void 0 : m.width, G = n != null && n.colNum ? n == null ? void 0 : n.colNum : (T = n == null ? void 0 : n[X]) == null ? void 0 : T.colNum, _ = {};
return W ? _.width = typeof W == "number" ? W + "px" : W : B ? _.width = typeof B == "number" ? `calc((100% - (16px * ${B - 1})) / ${B})` : B : G && (_.width = typeof G == "number" ? `calc((100% - (16px * ${G - 1})) / ${G})` : G), _;
}, Z = F(() => {
var X;
return (X = c.dialogOptions) != null && X.title ? c.dialogOptions.title : c.formType === "view" && "查看" || c.formType === "edit" && "编辑" || c.formType === "add" && "新增";
}), ae = (j) => {
var B, W, G, _, x, m, T, L;
const X = c.formType;
if ((B = j == null ? void 0 : j[X]) != null && B.required || (G = (W = j == null ? void 0 : j[X]) == null ? void 0 : W.props) != null && G.required)
return !0;
if ((m = (x = (_ = j == null ? void 0 : j[X]) == null ? void 0 : _.props) == null ? void 0 : x.rules) != null && m.length)
return (((L = (T = j == null ? void 0 : j[X]) == null ? void 0 : T.props) == null ? void 0 : L.rules) || []).some((re) => re.required);
};
return (j, X) => {
const B = Et("el-form-item"), W = Et("el-form"), G = Et("el-button"), _ = Et("el-space"), x = Et("el-dialog");
return wt(), Lt(x, {
modelValue: s.value,
"onUpdate:modelValue": X[1] || (X[1] = (m) => s.value = m),
title: Z.value,
width: e.dialogOptions.width,
"close-on-click-modal": !1
}, {
default: kt(() => [
s.value ? (wt(), Lt(W, {
key: 0,
ref_key: "formRef",
ref: r,
model: i.value,
onChange: h
}, {
default: kt(() => [
zt("div", Uv, [
(wt(!0), en(Wn, null, wr(E.value, (m) => {
var T, L;
return wt(), Lt(B, {
key: m.key,
class: "form-item-style",
style: $o(de(m)),
"label-position": $.value,
rules: (L = (T = m == null ? void 0 : m[e.formType]) == null ? void 0 : T.props) == null ? void 0 : L.rules,
prop: m.key
}, {
label: kt(() => [
zt("div", {
class: "label-style",
style: $o(z(m))
}, [
y(m, "prefix") ? (wt(), Lt(bn(y(m, "prefix")), {
key: 0,
"form-data": i.value
}, null, 8, ["form-data"])) : me("", !0),
zt("span", {
class: lo({ "require-style": ae(m) })
}, Da(P(m)), 3),
y(m, "suffix") ? (wt(), Lt(bn(y(m, "prefix")), {
key: 1,
"form-data": i.value
}, null, 8, ["form-data"])) : me("", !0)
], 4)
]),
default: kt(() => {
var re;
return [
m[e.formType] ? (wt(), Lt(bn(S(m)), Dr({
key: 0,
modelValue: i.value[m.key],
"onUpdate:modelValue": (ge) => i.value[m.key] = ge,
form: i.value,
value: i.value[m.key],
ref_for: !0
}, ((re = m == null ? void 0 : m[e.formType]) == null ? void 0 : re.props) || {}, {
disabled: O(m)
}), null, 16, ["modelValue", "onUpdate:modelValue", "form", "value", "disabled"])) : me("", !0)
];
}),
_: 2
}, 1032, ["style", "label-position", "rules", "prop"]);
}), 128))
])
]),
_: 1
}, 8, ["model"])) : me("", !0),
e.formType !== "view" ? (wt(), en("div", Yv, [
Rt(_, null, {
default: kt(() => [
Rt(G, {
onClick: X[0] || (X[0] = (m) => s.value = !1)
}, {
default: kt(() => X[2] || (X[2] = [
Zn("取消")
])),
_: 1
}),
Rt(G, {
type: "primary",
onClick: Q
}, {
default: kt(() => X[3] || (X[3] = [
Zn("确认")
])),
_: 1
})
]),
_: 1
})
])) : me("", !0)
]),
_: 1
}, 8, ["modelValue", "title", "width"]);
};
}
}), Zv = /* @__PURE__ */ uo(Kv, [["__scopeId", "data-v-84151934"]]), Xv = /* @__PURE__ */ _e({
__name: "SortArrow",
props: {
sort: {
type: String,
default: ""
}
},
emits: ["onSort"],
setup(e, { emit: t }) {
const n = ve(), a = t, r = e;
ze(
() => r.sort,
() => {
n.value = r.sort;
}
);
const s = () => {
n.value === "" || !n.value ? n.value = "asc" : n.value === "asc" ? n.value = "desc" : n.value === "desc" && (n.value = ""), console.log(n.value), a("onSort", n.value);
};
return (i, c) => (wt(), en("div", {
class: "sort-box",
onClick: er(s, ["stop"])
}, [
zt("div", {
class: lo({ "triangle-up": !0, active: n.value === "asc" })
}, null, 2),
zt("div", {
class: lo({ "triangle-down": !0, active: n.value === "desc" })
}, null, 2)
]));
}
}), Qv = /* @__PURE__ */ uo(Xv, [["__scopeId", "data-v-43dc4c71"]]), Jv = () => {
const e = {
isDark: !1
}, t = (s) => {
const i = s.split(";"), c = {};
return i.forEach((d) => {
const [f, p] = (d || "").split(":");
f && (c[f.trim()] = p.trim());
}), {
"--el-header-logo-text-color": "#303133",
"--el-header-bg-color": "#ffffff",
"--el-header-text-color": "#303133",
"--el-header-text-color-regular": "#606266",
"--el-header-border-color": "#e4e7ed",
"--el-aside-border-color": "#e4e7ed",
"--el-aside-bg-color": "#f0f2f5",
"--el-aside-text-color": "#303133",
"--el-aside-text-color-regular": "#606266",
"--el-aside-hover-bg-color": "#f0f2f5",
"--el-aside-active-bg-color": "#f0f2f5",
"--el-aside-active-text-color": "#303133",
"--el-aside-active-text-color-regular": "#606266"
};
}, n = (s) => {
s["--vxe-ui-table-header-background-color"] = s["--el-header-bg-color"], s["--vxe-ui-font-primary-color"] = s["--el-color-primary"];
const i = "white";
return s["--vxe-ui-layout-background-color"] = i, s["--vxe-ui-modal-header-background-color"] = i, s["--vxe-ui-font-color"] = s["--el-header-text-color"], s["--vxe-ui-table-border-color"] = s["--el-aside-border-color"], s;
}, a = () => {
const s = document.querySelector("html");
if (s) {
const i = s.getAttribute("style"), c = t(i || ""), d = n(c), f = r(d);
s.setAttribute("style", f);
}
}, r = (s) => {
const i = [];
for (const c in s)
i.push(`${c}:${s[c]}`);
return i.join(";");
};
ze(
() => e.isDark,
() => {
a();
},
{
immediate: !0,
deep: !0
}
);
};
var eh = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function _f(e) {
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
}
var Lf = { exports: {} };
(function(e, t) {
(function(n, a) {
e.exports = a();
})(eh, function() {
var n = 1e3, a = 6e4, r = 36e5, s = "millisecond", i = "second", c = "minute", d = "hour", f = "day", p = "week", u = "month", g = "quarter", E = "year", w = "date", D = "Invalid Date", S = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, O = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, z = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(W) {
var G = ["th", "st", "nd", "rd"], _ = W % 100;
return "[" + W + (G[(_ - 20) % 10] || G[_] || G[0]) + "]";
} }, h = function(W, G, _) {
var x = String(W);
return !x || x.length >= G ? W : "" + Array(G + 1 - x.length).join(_) + W;
}, y = { s: h, z: function(W) {
var G = -W.utcOffset(), _ = Math.abs(G), x = Math.floor(_ / 60), m = _ % 60;
return (G <= 0 ? "+" : "-") + h(x, 2, "0") + ":" + h(m, 2, "0");
}, m: function W(G, _) {
if (G.date() < _.date()) return -W(_, G);
var x = 12 * (_.year() - G.year()) + (_.month() - G.month()), m = G.clone().add(x, u), T = _ - m < 0, L = G.clone().add(x + (T ? -1 : 1), u);
return +(-(x + (_ - m) / (T ? m - L : L - m)) || 0);
}, a: function(W) {
return W < 0 ? Math.ceil(W) || 0 : Math.floor(W);
}, p: function(W) {
return { M: u, y: E, w: p, d: f, D: w, h: d, m: c, s: i, ms: s, Q: g }[W] || String(W || "").toLowerCase().replace(/s$/, "");
}, u: function(W) {
return W === void 0;
} }, P = "en", $ = {};
$[P] = z;
var Q = "$isDayjsObject", de = function(W) {
return W instanceof X || !(!W || !W[Q]);
}, Z = function W(G, _, x) {
var m;
if (!G) return P;
if (typeof G == "string") {
var T = G.toLowerCase();
$[T] && (m = T), _ && ($[T] = _, m = T);
var L = G.split("-");
if (!m && L.length > 1) return W(L[0]);
} else {
var re = G.name;
$[re] = G, m = re;
}
return !x && m && (P = m), m || !x && P;
}, ae = function(W, G) {
if (de(W)) return W.clone();
var _ = typeof G == "object" ? G : {};
return _.date = W, _.args = arguments, new X(_);
}, j = y;
j.l = Z, j.i = de, j.w = function(W, G) {
return ae(W, { locale: G.$L, utc: G.$u, x: G.$x, $offset: G.$offset });
};
var X = function() {
function W(_) {
this.$L = Z(_.locale, null, !0), this.parse(_), this.$x = this.$x || _.x || {}, this[Q] = !0;
}
var G = W.prototype;
return G.parse = function(_) {
this.$d = function(x) {
var m = x.date, T = x.utc;
if (m === null) return /* @__PURE__ */ new Date(NaN);
if (j.u(m)) return /* @__PURE__ */ new Date();
if (m instanceof Date) return new Date(m);
if (typeof m == "string" && !/Z$/i.test(m)) {
var L = m.match(S);
if (L) {
var re = L[2] - 1 || 0, ge = (L[7] || "0").substring(0, 3);
return T ? new Date(Date.UTC(L[1], re, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0, ge)) : new Date(L[1], re, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0, ge);
}
}
return new Date(m);
}(_), this.init();
}, G.init = function() {
var _ = this.$d;
this.$y = _.getFullYear(), this.$M = _.getMonth(), this.$D = _.getDate(), this.$W = _.getDay(), this.$H = _.getHours(), this.$m = _.getMinutes(), this.$s = _.getSeconds(), this.$ms = _.getMilliseconds();
}, G.$utils = function() {
return j;
}, G.isValid = function() {
return this.$d.toString() !== D;
}, G.isSame = function(_, x) {
var m = ae(_);
return this.startOf(x) <= m && m <= this.endOf(x);
}, G.isAfter = function(_, x) {
return ae(_) < this.startOf(x);
}, G.isBefore = function(_, x) {
return this.endOf(x) < ae(_);
}, G.$g = function(_, x, m) {
return j.u(_) ? this[x] : this.set(m, _);
}, G.unix = function() {
return Math.floor(this.valueOf() / 1e3);
}, G.valueOf = function() {
return this.$d.getTime();
}, G.startOf = function(_, x) {
var m = this, T = !!j.u(x) || x, L = j.p(_), re = function(ne, q) {
var pe = j.w(m.$u ? Date.UTC(m.$y, q, ne) : new Date(m.$y, q, ne), m);
return T ? pe : pe.endOf(f);
}, ge = function(ne, q) {
return j.w(m.toDate()[ne].apply(m.toDate("s"), (T ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(q)), m);
}, U = this.$W, Y = this.$M, fe = this.$D, J = "set" + (this.$u ? "UTC" : "");
switch (L) {
case E:
return T ? re(1, 0) : re(31, 11);
case u:
return T ? re(1, Y) : re(0, Y + 1);
case p:
var A = this.$locale().weekStart || 0, R = (U < A ? U + 7 : U) - A;
return re(T ? fe - R : fe + (6 - R), Y);
case f:
case w:
return ge(J + "Hours", 0);
case d:
return ge(J + "Minutes", 1);
case c:
return ge(J + "Seconds", 2);
case i:
return ge(J + "Milliseconds", 3);
default:
return this.clone();
}
}, G.endOf = function(_) {
return this.startOf(_, !1);
}, G.$set = function(_, x) {
var m, T = j.p(_), L = "set" + (this.$u ? "UTC" : ""), re = (m = {}, m[f] = L + "Date", m[w] = L + "Date", m[u] = L + "Month", m[E] = L + "FullYear", m[d] = L + "Hours", m[c] = L + "Minutes", m[i] = L + "Seconds", m[s] = L + "Milliseconds", m)[T], ge = T === f ? this.$D + (x - this.$W) : x;
if (T === u || T === E) {
var U = this.clone().set(w, 1);
U.$d[re](ge), U.init(), this.$d = U.set(w, Math.min(this.$D, U.daysInMonth())).$d;
} else re && this.$d[re](ge);
return this.init(), this;
}, G.set = function(_, x) {
return this.clone().$set(_, x);
}, G.get = function(_) {
return this[j.p(_)]();
}, G.add = function(_, x) {
var m, T = this;
_ = Number(_);
var L = j.p(x), re = function(Y) {
var fe = ae(T);
return j.w(fe.date(fe.date() + Math.round(Y * _)), T);
};
if (L === u) return this.set(u, this.$M + _);
if (L === E) return this.set(E, this.$y + _);
if (L === f) return re(1);
if (L === p) return re(7);
var ge = (m = {}, m[c] = a, m[d] = r, m[i] = n, m)[L] || 1, U = this.$d.getTime() + _ * ge;
return j.w(U, this);
}, G.subtract = function(_, x) {
return this.add(-1 * _, x);
}, G.format = function(_) {
var x = this, m = this.$locale();
if (!this.isValid()) return m.invalidDate || D;
var T = _ || "YYYY-MM-DDTHH:mm:ssZ", L = j.z(this), re = this.$H, ge = this.$m, U = this.$M, Y = m.weekdays, fe = m.months, J = m.meridiem, A = function(q, pe, xe, Oe) {
return q && (q[pe] || q(x, T)) || xe[pe].slice(0, Oe);
}, R = function(q) {
return j.s(re % 12 || 12, q, "0");
}, ne = J || function(q, pe, xe) {
var Oe = q < 12 ? "AM" : "PM";
return xe ? Oe.toLowerCase() : Oe;
};
return T.replace(O, function(q, pe) {
return pe || function(xe) {
switch (xe) {
case "YY":
return String(x.$y).slice(-2);
case "YYYY":
return j.s(x.$y, 4, "0");
case "M":
return U + 1;
case "MM":
return j.s(U + 1, 2, "0");
case "MMM":
return A(m.monthsShort, U, fe, 3);
case "MMMM":
return A(fe, U);
case "D":
return x.$D;
case "DD":
return j.s(x.$D, 2, "0");
case "d":
return String(x.$W);
case "dd":
return A(m.weekdaysMin, x.$W, Y, 2);
case "ddd":
return A(m.weekdaysShort, x.$W, Y, 3);
case "dddd":
return Y[x.$W];
case "H":
return String(re);
case "HH":
return j.s(re, 2, "0");
case "h":
return R(1);
case "hh":
return R(2);
case "a":
return ne(re, ge, !0);
case "A":
return ne(re, ge, !1);
case "m":
return String(ge);
case "mm":
return j.s(ge, 2, "0");
case "s":
return String(x.$s);
case "ss":
return j.s(x.$s, 2, "0");
case "SSS":
return j.s(x.$ms, 3, "0");
case "Z":
return L;
}
return null;
}(q) || L.replace(":", "");
});
}, G.utcOffset = function() {
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
}, G.diff = function(_, x, m) {
var T, L = this, re = j.p(x), ge = ae(_), U = (ge.utcOffset() - this.utcOffset()) * a, Y = this - ge, fe = function() {
return j.m(L, ge);
};
switch (re) {
case E:
T = fe() / 12;
break;
case u:
T = fe();
break;
case g:
T = fe() / 3;
break;
case p:
T = (Y - U) / 6048e5;
break;
case f:
T = (Y - U) / 864e5;
break;
case d:
T = Y / r;
break;
case c:
T = Y / a;
break;
case i:
T = Y / n;
break;
default:
T = Y;
}
return m ? T : j.a(T);
}, G.daysInMonth = function() {
return this.endOf(u).$D;
}, G.$locale = function() {
return $[this.$L];
}, G.locale = function(_, x) {
if (!_) return this.$L;
var m = this.clone(), T = Z(_, x, !0);
return T && (m.$L = T), m;
}, G.clone = function() {
return j.w(this.$d, this);
}, G.toDate = function() {
return new Date(this.valueOf());
}, G.toJSON = function() {
return this.isValid() ? this.toISOString() : null;
}, G.toISOString = function() {
return this.$d.toISOString();
}, G.toString = function() {
return this.$d.toUTCString();
}, W;
}(), B = X.prototype;
return ae.prototype = B, [["$ms", s], ["$s", i], ["$m", c], ["$H", d], ["$W", f], ["$M", u], ["$y", E], ["$D", w]].forEach(function(W) {
B[W[1]] = function(G) {
return this.$g(G, W[0], W[1]);
};
}), ae.extend = function(W, G) {
return W.$i || (W(G, X, ae), W.$i = !0), ae;
}, ae.locale = Z, ae.isDayjs = de, ae.unix = function(W) {
return ae(1e3 * W);
}, ae.en = $[P], ae.Ls = $, ae.p = {}, ae;
});
})(Lf);
var th = Lf.exports;
const nh = /* @__PURE__ */ _f(th), oh = {
date: (e) => Pl(e, "YYYY-MM-DD"),
time: (e) => Pl(e, "HH:mm:ss"),
datetime: (e) => Pl(e, "YYYY-MM-DD HH:mm:ss"),
percentile: (e) => rh(e)
}, ah = (e, t) => {
if (t.format) {
const n = oh[t.format];
if (n)
return n(e);
} else
return e;
}, Pl = (e, t) => {
let n = e;
return e === 0 || e === null || e === "" ? "-" : ((e + "").length <= 10 && (n = n * 1e3), nh(n).format(t));
};
function rh(e, t = 2) {
try {
const n = /\B(?=(\d{3})+(?!\d))/g;
return "¥" + (e.toFixed(t) + "").replace(n, "$&,");
} catch {
return e;
}
}
var Af = typeof global == "object" && global && global.Object === Object && global, sh = typeof self == "object" && self && self.Object === Object && self, Jn = Af || sh || Function("return this")(), Po = Jn.Symbol, Rf = Object.prototype, ih = Rf.hasOwnProperty, lh = Rf.toString, Ha = Po ? Po.toStringTag : void 0;
function ch(e) {
var t = ih.call(e, Ha), n = e[Ha];
try {
e[Ha] = void 0;
var a = !0;
} catch {
}
var r = lh.call(e);
return a && (t ? e[Ha] = n : delete e[Ha]), r;
}
var uh = Object.prototype, dh = uh.toString;
function fh(e) {
return dh.call(e);
}
var ph = "[object Null]", mh = "[object Undefined]", ru = Po ? Po.toStringTag : void 0;
function Va(e) {
return e == null ? e === void 0 ? mh : ph : ru && ru in Object(e) ? ch(e) : fh(e);
}
function Ta(e) {
return e != null && typeof e == "object";
}
var gh = "[object Symbol]";
function cc(e) {
return typeof e == "symbol" || Ta(e) && Va(e) == gh;
}
function vh(e, t) {
for (var n = -1, a = e == null ? 0 : e.length, r = Array(a); ++n < a; )
r[n] = t(e[n], n, e);
return r;
}
var Oa = Array.isArray, su = Po ? Po.prototype : void 0, iu = su ? su.toString : void 0;
function Wf(e) {
if (typeof e == "string")
return e;
if (Oa(e))
return vh(e, Wf) + "";
if (cc(e))
return iu ? iu.call(e) : "";
var t = e + "";
return t == "0" && 1 / e == -1 / 0 ? "-0" : t;
}
function Us(e) {
var t = typeof e;
return e != null && (t == "object" || t == "function");
}
var hh = "[object AsyncFunction]", bh = "[object Function]", yh = "[object GeneratorFunction]", xh = "[object Proxy]";
function Bf(e) {
if (!Us(e))
return !1;
var t = Va(e);
return t == bh || t == yh || t == hh || t == xh;
}
var Vl = Jn["__core-js_shared__"], lu = function() {
var e = /[^.]+$/.exec(Vl && Vl.keys && Vl.keys.IE_PROTO || "");
return e ? "Symbol(src)_1." + e : "";
}();
function wh(e) {
return !!lu && lu in e;
}
var Dh = Function.prototype, Ch = Dh.toString;
function Zo(e) {
if (e != null) {
try {
return Ch.call(e);
} catch {
}
try {
return e + "";
} catch {
}
}
return "";
}
var Sh = /[\\^$.*+?()[\]{}|]/g, Eh = /^\[object .+?Constructor\]$/, $h = Function.prototype, Ph = Object.prototype, Vh = $h.toString, Th = Ph.hasOwnProperty, Oh = RegExp(
"^" + Vh.call(Th).replace(Sh, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
);
function kh(e) {
if (!Us(e) || wh(e))
return !1;
var t = Bf(e) ? Oh : Eh;
return t.test(Zo(e));
}
function Nh(e, t) {
return e == null ? void 0 : e[t];
}
function Xo(e, t) {
var n = Nh(e, t);
return kh(n) ? n : void 0;
}
var Xl = Xo(Jn, "WeakMap"), cu = Object.create, Ih = /* @__PURE__ */ function() {
function e() {
}
return function(t) {
if (!Us(t))
return {};
if (cu)
return cu(t);
e.prototype = t;
var n = new e();
return e.prototype = void 0, n;
};
}(), uu = function() {
try {
var e = Xo(Object, "defineProperty");
return e({}, "", {}), e;
} catch {
}
}();
function Mh(e, t) {
for (var n = -1, a = e == null ? 0 : e.length; ++n < a && t(e[n], n, e) !== !1; )
;
return e;
}
var Fh = 9007199254740991, _h = /^(?:0|[1-9]\d*)$/;
function Lh(e, t) {
var n = typeof e;
return t = t ?? Fh, !!t && (n == "number" || n != "symbol" && _h.test(e)) && e > -1 && e % 1 == 0 && e < t;
}
function Ah(e, t, n) {
t == "__proto__" && uu ? uu(e, t, {
configurable: !0,
enumerable: !0,
value: n,
writable: !0
}) : e[t] = n;
}
function zf(e, t) {
return e === t || e !== e && t !== t;
}
var Rh = Object.prototype, Wh = Rh.hasOwnProperty;
function Bh(e, t, n) {
var a = e[t];
(!(Wh.call(e, t) && zf(a, n)) || n === void 0 && !(t in e)) && Ah(e, t, n);
}
var zh = 9007199254740991;
function jf(e) {
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= zh;
}
function jh(e) {
return e != null && jf(e.length) && !Bf(e);
}
var Hh = Object.prototype;
function Hf(e) {
var t = e && e.constructor, n = typeof t == "function" && t.prototype || Hh;
return e === n;
}
function qh(e, t) {
for (var n = -1, a = Array(e); ++n < e; )
a[n] = t(n);
return a;
}
var Gh = "[object Arguments]";
function du(e) {
return Ta(e) && Va(e) == Gh;
}
var qf = Object.prototype, Uh = qf.hasOwnProperty, Yh = qf.propertyIsEnumerable, Kh = du(/* @__PURE__ */ function() {
return arguments;
}()) ? du : function(e) {
return Ta(e) && Uh.call(e, "callee") && !Yh.call(e, "callee");
};
function Zh() {
return !1;
}
var Gf = typeof exports == "object" && exports && !exports.nodeType && exports, fu = Gf && typeof module == "object" && module && !module.nodeType && module, Xh = fu && fu.exports === Gf, pu = Xh ? Jn.Buffer : void 0, Qh = pu ? pu.isBuffer : void 0, Uf = Qh || Zh, Jh = "[object Arguments]", eb = "[object Array]", tb = "[object Boolean]", nb = "[object Date]", ob = "[object Error]", ab = "[object Function]", rb = "[object Map]", sb = "[object Number]", ib = "[object Object]", lb = "[object RegExp]", cb = "[object Set]", ub = "[object String]", db = "[object WeakMap]", fb = "[object ArrayBuffer]", pb = "[object DataView]", mb = "[object Float32Array]", gb = "[object Float64Array]", vb = "[object Int8Array]", hb = "[object Int16Array]", bb = "[object Int32Array]", yb = "[object Uint8Array]", xb = "[object Uint8ClampedArray]", wb = "[object Uint16Array]", Db = "[object Uint32Array]", Kt = {};
Kt[mb] = Kt[gb] = Kt[vb] = Kt[hb] = Kt[bb] = Kt[yb] = Kt[xb] = Kt[wb] = Kt[Db] = !0;
Kt[Jh] = Kt[eb] = Kt[fb] = Kt[tb] = Kt[pb] = Kt[nb] = Kt[ob] = Kt[ab] = Kt[rb] = Kt[sb] = Kt[ib] = Kt[lb] = Kt[cb] = Kt[ub] = Kt[db] = !1;
function Cb(e) {
return Ta(e) && jf(e.length) && !!Kt[Va(e)];
}
function uc(e) {
return function(t) {
return e(t);
};
}
var Yf = typeof exports == "object" && exports && !exports.nodeType && exports, tr = Yf && typeof module == "object" && module && !module.nodeType && module, Sb = tr && tr.exports === Yf, Tl = Sb && Af.process, Ca = function() {
try {
var e = tr && tr.require && tr.require("u