UNPKG

@vue-studio/h5-components

Version:

Vue Component base Vant4

1,890 lines 81.2 kB
import { defineComponent as L, openBlock as G, createElementBlock as ge, Fragment as De, toDisplayString as st, createCommentVNode as oe, ref as H, reactive as mn, getCurrentInstance as tt, computed as F, createVNode as l, watch as he, onActivated as yr, onDeactivated as _r, onBeforeUnmount as xr, provide as vn, watchEffect as $r, inject as Cr, mergeProps as ve, nextTick as Ke, onMounted as wr, createTextVNode as dt, useAttrs as bn, onBeforeUpdate as Er, unref as M, withCtx as re, createBlock as fe, createElementVNode as We, renderList as Tr, withModifiers as Sr, toRaw as qe } from "vue"; import { useCustomFieldValue as bt, useWindowSize as Ar, useParent as pn, CUSTOM_FIELD_INJECTION_KEY as Fr, useEventListener as Or, useChildren as Pr } from "@vant/use"; import { Field as yn, Popup as _n, Picker as jr, Cascader as Ir } from "vant"; import { Tree as Vr } from "@vue-studio/utils"; const Br = { key: 0 }, Dr = { key: 1, class: "vs-placeholder" }, xn = /* @__PURE__ */ L({ name: "VsCustomField", __name: "index", props: { modelValue: {}, text: {}, placeholder: { default: "请选择" } }, setup(e) { const t = e; return bt(() => t.modelValue), (n, r) => (G(), ge(De, null, [ t.text !== void 0 ? (G(), ge("span", Br, st(t.text), 1)) : oe("", !0), t.text ? oe("", !0) : (G(), ge("span", Dr, st(t.placeholder), 1)) ], 64)); } }), ue = Object.assign, $n = typeof window < "u", nt = (e) => e !== null && typeof e == "object", U = (e) => e != null, Qe = (e) => typeof e == "function", kr = (e) => nt(e) && Qe(e.then) && Qe(e.catch), Cn = (e) => typeof e == "number" || /^\d+(\.\d+)?$/.test(e), Mr = () => $n ? /ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()) : !1; function jt(e, t) { const n = t.split("."); let r = e; return n.forEach((a) => { var o; r = nt(r) && (o = r[a]) != null ? o : ""; }), r; } function zr(e, t, n) { return t.reduce( (r, a) => (r[a] = e[a], r), {} ); } const It = (e) => Array.isArray(e) ? e : [e], Te = null, D = [Number, String], ze = { type: Boolean, default: !0 }, Lr = (e) => ({ type: e, required: !0 }), Nr = () => ({ type: Array, default: () => [] }), Rr = (e) => ({ type: D, default: e }), j = (e) => ({ type: String, default: e }); function Vt(e, t) { "scrollTop" in e ? e.scrollTop = t : e.scrollTo(e.scrollX, t); } function wn() { return window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0; } function En(e) { Vt(window, e), Vt(document.body, e); } const Gr = Mr(); function Ur() { Gr && En(wn()); } function Xe(e, t) { (typeof e.cancelable != "boolean" || e.cancelable) && e.preventDefault(); } Ar(); function z(e) { if (U(e)) return Cn(e) ? `${e}px` : String(e); } function Tn(e) { if (U(e)) { if (Array.isArray(e)) return { width: z(e[0]), height: z(e[1]) }; const t = z(e); return { width: t, height: t }; } } const Hr = /-(\w)/g, Sn = (e) => e.replace(Hr, (t, n) => n.toUpperCase()), Kr = (e) => e.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, ""), Wr = (e, t, n) => Math.min(Math.max(e, t), n); function Bt(e, t, n) { const r = e.indexOf(t); return r === -1 ? e : t === "-" && r !== 0 ? e.slice(0, r) : e.slice(0, r + 1) + e.slice(r).replace(n, ""); } function qr(e, t = !0, n = !0) { t ? e = Bt(e, ".", /\./g) : e = e.split(".")[0], n ? e = Bt(e, "-", /-/g) : e = e.replace(/-/, ""); const r = t ? /[^-0-9.]/g : /[^-0-9]/g; return e.replace(r, ""); } const { hasOwnProperty: Yr } = Object.prototype; function Zr(e, t, n) { const r = t[n]; U(r) && (!Yr.call(e, n) || !nt(r) ? e[n] = r : e[n] = An(Object(e[n]), r)); } function An(e, t) { return Object.keys(t).forEach((n) => { Zr(e, t, n); }), e; } var Xr = { name: "姓名", tel: "电话", save: "保存", clear: "清空", cancel: "取消", confirm: "确认", delete: "删除", loading: "加载中...", noCoupon: "暂无优惠券", nameEmpty: "请填写姓名", addContact: "添加联系人", telInvalid: "请填写正确的电话", vanCalendar: { end: "结束", start: "开始", title: "日期选择", weekdays: ["日", "一", "二", "三", "四", "五", "六"], monthTitle: (e, t) => `${e}年${t}月`, rangePrompt: (e) => `最多选择 ${e} 天` }, vanCascader: { select: "请选择" }, vanPagination: { prev: "上一页", next: "下一页" }, vanPullRefresh: { pulling: "下拉即可刷新...", loosing: "释放即可刷新..." }, vanSubmitBar: { label: "合计:" }, vanCoupon: { unlimited: "无门槛", discount: (e) => `${e}折`, condition: (e) => `满${e}元可用` }, vanCouponCell: { title: "优惠券", count: (e) => `${e}张可用` }, vanCouponList: { exchange: "兑换", close: "不使用", enable: "可用", disabled: "不可用", placeholder: "输入优惠码" }, vanAddressEdit: { area: "地区", areaEmpty: "请选择地区", addressEmpty: "请填写详细地址", addressDetail: "详细地址", defaultAddress: "设为默认收货地址" }, vanAddressList: { add: "新增地址" } }; const Dt = H("zh-CN"), kt = mn({ "zh-CN": Xr }), Jr = { messages() { return kt[Dt.value]; }, use(e, t) { Dt.value = e, this.add({ [e]: t }); }, add(e = {}) { An(kt, e); } }; var Qr = Jr; function ea(e) { const t = Sn(e) + "."; return (n, ...r) => { const a = Qr.messages(), o = jt(a, t + n) || jt(a, n); return Qe(o) ? o(...r) : o; }; } function ft(e, t) { return t ? typeof t == "string" ? ` ${e}--${t}` : Array.isArray(t) ? t.reduce( (n, r) => n + ft(e, r), "" ) : Object.keys(t).reduce( (n, r) => n + (t[r] ? ft(e, r) : ""), "" ) : ""; } function ta(e) { return (t, n) => (t && typeof t != "string" && (n = t, t = ""), t = t ? `${e}__${t}` : e, `${t}${ft(t, n)}`); } function Y(e) { const t = `van-${e}`; return [ t, ta(t), ea(t) ]; } const Fn = "van-hairline", na = `${Fn}--surround`, ra = `${Fn}--top-bottom`, aa = Symbol("van-form"); function J(e) { return e.install = (t) => { const { name: n } = e; n && (t.component(n, e), t.component(Sn(`-${n}`), e)); }, e; } function pt(e) { const t = tt(); t && ue(t.proxy, e); } const On = { to: [String, Object], url: String, replace: Boolean }; function oa({ to: e, url: t, replace: n, $router: r }) { e && r ? r[n ? "replace" : "push"](e) : t && (n ? location.replace(t) : location.href = t); } function Pn() { const e = tt().proxy; return () => oa(e); } const [la, Mt] = Y("badge"), ia = { dot: Boolean, max: D, tag: j("div"), color: String, offset: Array, content: D, showZero: ze, position: j("top-right") }; var ua = L({ name: la, props: ia, setup(e, { slots: t }) { const n = () => { if (t.content) return !0; const { content: i, showZero: d } = e; return U(i) && i !== "" && (d || i !== 0 && i !== "0"); }, r = () => { const { dot: i, max: d, content: c } = e; if (!i && n()) return t.content ? t.content() : U(d) && Cn(c) && +c > +d ? `${d}+` : c; }, a = (i) => i.startsWith("-") ? i.replace("-", "") : `-${i}`, o = F(() => { const i = { background: e.color }; if (e.offset) { const [d, c] = e.offset, { position: m } = e, [g, f] = m.split("-"); t.default ? (typeof c == "number" ? i[g] = z(g === "top" ? c : -c) : i[g] = g === "top" ? z(c) : a(c), typeof d == "number" ? i[f] = z(f === "left" ? d : -d) : i[f] = f === "left" ? z(d) : a(d)) : (i.marginTop = z(c), i.marginLeft = z(d)); } return i; }), s = () => { if (n() || e.dot) return l("div", { class: Mt([e.position, { dot: e.dot, fixed: !!t.default }]), style: o.value }, [r()]); }; return () => { if (t.default) { const { tag: i } = e; return l(i, { class: Mt("wrapper") }, { default: () => [t.default(), s()] }); } return s(); }; } }); const ca = J(ua), sa = (e) => { }, [jn, da] = Y("config-provider"), In = Symbol(jn), fa = { tag: j("div"), theme: j("light"), zIndex: Number, themeVars: Object, themeVarsDark: Object, themeVarsLight: Object, themeVarsScope: j("local"), iconPrefix: String }; function ga(e) { return e.replace(/([a-zA-Z])(\d)/g, "$1-$2"); } function ha(e) { const t = {}; return Object.keys(e).forEach((n) => { const r = ga(Kr(n)); t[`--van-${r}`] = e[n]; }), t; } function Ye(e = {}, t = {}) { Object.keys(e).forEach((n) => { e[n] !== t[n] && document.documentElement.style.setProperty(n, e[n]); }), Object.keys(t).forEach((n) => { e[n] || document.documentElement.style.removeProperty(n); }); } L({ name: jn, props: fa, setup(e, { slots: t }) { const n = F(() => ha(ue({}, e.themeVars, e.theme === "dark" ? e.themeVarsDark : e.themeVarsLight))); if ($n) { const r = () => { document.documentElement.classList.add(`van-theme-${e.theme}`); }, a = (o = e.theme) => { document.documentElement.classList.remove(`van-theme-${o}`); }; he(() => e.theme, (o, s) => { s && a(s), r(); }, { immediate: !0 }), yr(r), _r(a), xr(a), he(n, (o, s) => { e.themeVarsScope === "global" && Ye(o, s); }), he(() => e.themeVarsScope, (o, s) => { s === "global" && Ye({}, n.value), o === "global" && Ye(n.value, {}); }), e.themeVarsScope === "global" && Ye(n.value, {}); } return vn(In, e), $r(() => { e.zIndex !== void 0 && sa(e.zIndex); }), () => l(e.tag, { class: da(), style: e.themeVarsScope === "local" ? n.value : void 0 }, { default: () => { var r; return [(r = t.default) == null ? void 0 : r.call(t)]; } }); } }); const [ma, zt] = Y("icon"), va = (e) => e == null ? void 0 : e.includes("/"), ba = { dot: Boolean, tag: j("i"), name: String, size: D, badge: D, color: String, badgeProps: Object, classPrefix: String }; var pa = L({ name: ma, props: ba, setup(e, { slots: t }) { const n = Cr(In, null), r = F(() => e.classPrefix || (n == null ? void 0 : n.iconPrefix) || zt()); return () => { const { tag: a, dot: o, name: s, size: i, badge: d, color: c } = e, m = va(s); return l(ca, ve({ dot: o, tag: a, class: [r.value, m ? "" : `${r.value}-${s}`], style: { color: c, fontSize: z(i) }, content: d }, e.badgeProps), { default: () => { var g; return [(g = t.default) == null ? void 0 : g.call(t), m && l("img", { class: zt("image"), src: s }, null)]; } }); }; } }); const me = J(pa), [ya, Ve] = Y("loading"), _a = Array(12).fill(null).map((e, t) => l("i", { class: Ve("line", String(t + 1)) }, null)), xa = l("svg", { class: Ve("circular"), viewBox: "25 25 50 50" }, [l("circle", { cx: "50", cy: "50", r: "20", fill: "none" }, null)]), $a = { size: D, type: j("circular"), color: String, vertical: Boolean, textSize: D, textColor: String }; var Ca = L({ name: ya, props: $a, setup(e, { slots: t }) { const n = F(() => ue({ color: e.color }, Tn(e.size))), r = () => { const o = e.type === "spinner" ? _a : xa; return l("span", { class: Ve("spinner", e.type), style: n.value }, [t.icon ? t.icon() : o]); }, a = () => { var o; if (t.default) return l("span", { class: Ve("text"), style: { fontSize: z(e.textSize), color: (o = e.textColor) != null ? o : e.color } }, [t.default()]); }; return () => { const { type: o, vertical: s } = e; return l("div", { class: Ve([o, { vertical: s }]), "aria-live": "polite", "aria-busy": !0 }, [r(), a()]); }; } }); const yt = J(Ca), [wa, we] = Y("button"), Ea = ue({}, On, { tag: j("button"), text: String, icon: String, type: j("default"), size: j("normal"), color: String, block: Boolean, plain: Boolean, round: Boolean, square: Boolean, loading: Boolean, hairline: Boolean, disabled: Boolean, iconPrefix: String, nativeType: j("button"), loadingSize: D, loadingText: String, loadingType: String, iconPosition: j("left") }); var Ta = L({ name: wa, props: Ea, emits: ["click"], setup(e, { emit: t, slots: n }) { const r = Pn(), a = () => n.loading ? n.loading() : l(yt, { size: e.loadingSize, type: e.loadingType, class: we("loading") }, null), o = () => { if (e.loading) return a(); if (n.icon) return l("div", { class: we("icon") }, [n.icon()]); if (e.icon) return l(me, { name: e.icon, class: we("icon"), classPrefix: e.iconPrefix }, null); }, s = () => { let c; if (e.loading ? c = e.loadingText : c = n.default ? n.default() : e.text, c) return l("span", { class: we("text") }, [c]); }, i = () => { const { color: c, plain: m } = e; if (c) { const g = { color: m ? c : "white" }; return m || (g.background = c), c.includes("gradient") ? g.border = 0 : g.borderColor = c, g; } }, d = (c) => { e.loading ? Xe(c) : e.disabled || (t("click", c), r()); }; return () => { const { tag: c, type: m, size: g, block: f, round: _, plain: C, square: w, loading: S, disabled: b, hairline: V, nativeType: q, iconPosition: v } = e, $ = [we([m, g, { plain: C, block: f, round: _, square: w, loading: S, disabled: b, hairline: V }]), { [na]: V }]; return l(c, { type: q, class: $, style: i(), disabled: b, onClick: d }, { default: () => [l("div", { class: we("content") }, [v === "left" && o(), s(), v === "right" && o()])] }); }; } }); const Sa = J(Ta), Aa = () => { var e; const { scopeId: t } = ((e = tt()) == null ? void 0 : e.vnode) || {}; return t ? { [t]: "" } : null; }; let Fa = 0; function Vn() { const e = tt(), { name: t = "unknown" } = (e == null ? void 0 : e.type) || {}; return process.env.NODE_ENV === "test" ? t : `${t}-${++Fa}`; } const [Oa, Ee] = Y("cell"), Bn = { tag: j("div"), icon: String, size: String, title: D, value: D, label: D, center: Boolean, isLink: Boolean, border: ze, iconPrefix: String, valueClass: Te, labelClass: Te, titleClass: Te, titleStyle: null, arrowDirection: String, required: { type: [Boolean, String], default: null }, clickable: { type: Boolean, default: null } }, Pa = ue({}, Bn, On); var ja = L({ name: Oa, props: Pa, setup(e, { slots: t }) { const n = Pn(), r = () => { if (t.label || U(e.label)) return l("div", { class: [Ee("label"), e.labelClass] }, [t.label ? t.label() : e.label]); }, a = () => { var d; if (t.title || U(e.title)) { const c = (d = t.title) == null ? void 0 : d.call(t); return Array.isArray(c) && c.length === 0 ? void 0 : l("div", { class: [Ee("title"), e.titleClass], style: e.titleStyle }, [c || l("span", null, [e.title]), r()]); } }, o = () => { const d = t.value || t.default; if (d || U(e.value)) return l("div", { class: [Ee("value"), e.valueClass] }, [d ? d() : l("span", null, [e.value])]); }, s = () => { if (t.icon) return t.icon(); if (e.icon) return l(me, { name: e.icon, class: Ee("left-icon"), classPrefix: e.iconPrefix }, null); }, i = () => { if (t["right-icon"]) return t["right-icon"](); if (e.isLink) { const d = e.arrowDirection && e.arrowDirection !== "right" ? `arrow-${e.arrowDirection}` : "arrow"; return l(me, { name: d, class: Ee("right-icon") }, null); } }; return () => { var d; const { tag: c, size: m, center: g, border: f, isLink: _, required: C } = e, w = (d = e.clickable) != null ? d : _, S = { center: g, required: !!C, clickable: w, borderless: !f }; return m && (S[m] = !!m), l(c, { class: Ee(S), role: w ? "button" : void 0, tabindex: w ? 0 : void 0, onClick: n }, { default: () => { var b; return [s(), a(), o(), i(), (b = t.extra) == null ? void 0 : b.call(t)]; } }); }; } }); const Dn = J(ja); function kn(e) { return Array.isArray(e) ? !e.length : e === 0 ? !1 : !e; } function Ia(e, t) { if (kn(e)) { if (t.required) return !1; if (t.validateEmpty === !1) return !0; } return !(t.pattern && !t.pattern.test(String(e))); } function Va(e, t) { return new Promise((n) => { const r = t.validator(e, t); if (kr(r)) { r.then(n); return; } n(r); }); } function Lt(e, t) { const { message: n } = t; return Qe(n) ? n(e, t) : n || ""; } function Ba({ target: e }) { e.composing = !0; } function Nt({ target: e }) { e.composing && (e.composing = !1, e.dispatchEvent(new Event("input"))); } function Da(e, t) { const n = wn(); e.style.height = "auto"; let r = e.scrollHeight; if (nt(t)) { const { maxHeight: a, minHeight: o } = t; a !== void 0 && (r = Math.min(r, a)), o !== void 0 && (r = Math.max(r, o)); } r && (e.style.height = `${r}px`, En(n)); } function ka(e, t) { return e === "number" && (e = "text", t ?? (t = "decimal")), e === "digit" && (e = "tel", t ?? (t = "numeric")), { type: e, inputmode: t }; } function ne(e) { return [...e].length; } function it(e, t) { return [...e].slice(0, t).join(""); } const [Ma, W] = Y("field"), za = { id: String, name: String, leftIcon: String, rightIcon: String, autofocus: Boolean, clearable: Boolean, maxlength: D, max: Number, min: Number, formatter: Function, clearIcon: j("clear"), modelValue: Rr(""), inputAlign: String, placeholder: String, autocomplete: String, autocapitalize: String, autocorrect: String, errorMessage: String, enterkeyhint: String, clearTrigger: j("focus"), formatTrigger: j("onChange"), spellcheck: { type: Boolean, default: null }, error: { type: Boolean, default: null }, disabled: { type: Boolean, default: null }, readonly: { type: Boolean, default: null }, inputmode: String }, La = ue({}, Bn, za, { rows: D, type: j("text"), rules: Array, autosize: [Boolean, Object], labelWidth: D, labelClass: Te, labelAlign: String, showWordLimit: Boolean, errorMessageAlign: String, colon: { type: Boolean, default: null } }); var Na = L({ name: Ma, props: La, emits: ["blur", "focus", "clear", "keypress", "clickInput", "endValidate", "startValidate", "clickLeftIcon", "clickRightIcon", "update:modelValue"], setup(e, { emit: t, slots: n }) { const r = Vn(), a = mn({ status: "unvalidated", focused: !1, validateMessage: "" }), o = H(), s = H(), i = H(), { parent: d } = pn(aa), c = () => { var u; return String((u = e.modelValue) != null ? u : ""); }, m = (u) => { if (U(e[u])) return e[u]; if (d && U(d.props[u])) return d.props[u]; }, g = F(() => { const u = m("readonly"); if (e.clearable && !u) { const y = c() !== "", x = e.clearTrigger === "always" || e.clearTrigger === "focus" && a.focused; return y && x; } return !1; }), f = F(() => i.value && n.input ? i.value() : e.modelValue), _ = F(() => { var u; const y = m("required"); return y === "auto" ? (u = e.rules) == null ? void 0 : u.some((x) => x.required) : y; }), C = (u) => u.reduce((y, x) => y.then(() => { if (a.status === "failed") return; let { value: O } = f; if (x.formatter && (O = x.formatter(O, x)), !Ia(O, x)) { a.status = "failed", a.validateMessage = Lt(O, x); return; } if (x.validator) return kn(O) && x.validateEmpty === !1 ? void 0 : Va(O, x).then((k) => { k && typeof k == "string" ? (a.status = "failed", a.validateMessage = k) : k === !1 && (a.status = "failed", a.validateMessage = Lt(O, x)); }); }), Promise.resolve()), w = () => { a.status = "unvalidated", a.validateMessage = ""; }, S = () => t("endValidate", { status: a.status, message: a.validateMessage }), b = (u = e.rules) => new Promise((y) => { w(), u ? (t("startValidate"), C(u).then(() => { a.status === "failed" ? (y({ name: e.name, message: a.validateMessage }), S()) : (a.status = "passed", y(), S()); })) : y(); }), V = (u) => { if (d && e.rules) { const { validateTrigger: y } = d.props, x = It(y).includes(u), O = e.rules.filter((k) => k.trigger ? It(k.trigger).includes(u) : x); O.length && b(O); } }, q = (u) => { var y; const { maxlength: x } = e; if (U(x) && ne(u) > +x) { const O = c(); if (O && ne(O) === +x) return O; const k = (y = o.value) == null ? void 0 : y.selectionEnd; if (a.focused && k) { const se = [...u], de = se.length - +x; return se.splice(k - de, de), se.join(""); } return it(u, +x); } return u; }, v = (u, y = "onChange") => { var x, O; const k = u; u = q(u); const se = ne(k) - ne(u); if (e.type === "number" || e.type === "digit") { const Z = e.type === "number"; u = qr(u, Z, Z), y === "onBlur" && u !== "" && (e.min !== void 0 || e.max !== void 0) && (u = Wr(+u, (x = e.min) != null ? x : -1 / 0, (O = e.max) != null ? O : 1 / 0).toString()); } let de = 0; if (e.formatter && y === e.formatTrigger) { const { formatter: Z, maxlength: te } = e; if (u = Z(u), U(te) && ne(u) > +te && (u = it(u, +te)), o.value && a.focused) { const { selectionEnd: He } = o.value, Pt = it(k, He); de = ne(Z(Pt)) - ne(Pt); } } if (o.value && o.value.value !== u) if (a.focused) { let { selectionStart: Z, selectionEnd: te } = o.value; if (o.value.value = u, U(Z) && U(te)) { const He = ne(u); se ? (Z -= se, te -= se) : de && (Z += de, te += de), o.value.setSelectionRange(Math.min(Z, He), Math.min(te, He)); } } else o.value.value = u; u !== e.modelValue && t("update:modelValue", u); }, $ = (u) => { u.target.composing || v(u.target.value); }, P = () => { var u; return (u = o.value) == null ? void 0 : u.blur(); }, Ce = () => { var u; return (u = o.value) == null ? void 0 : u.focus(); }, h = () => { const u = o.value; e.type === "textarea" && e.autosize && u && Da(u, e.autosize); }, p = (u) => { a.focused = !0, t("focus", u), Ke(h), m("readonly") && P(); }, N = (u) => { a.focused = !1, v(c(), "onBlur"), t("blur", u), !m("readonly") && (V("onBlur"), Ke(h), Ur()); }, R = (u) => t("clickInput", u), E = (u) => t("clickLeftIcon", u), I = (u) => t("clickRightIcon", u), B = (u) => { Xe(u), t("update:modelValue", ""), t("clear", u); }, K = F(() => { if (typeof e.error == "boolean") return e.error; if (d && d.props.showError && a.status === "failed") return !0; }), ot = F(() => { const u = m("labelWidth"), y = m("labelAlign"); if (u && y !== "top") return { width: z(u) }; }), lt = (u) => { u.keyCode === 13 && (!(d && d.props.submitOnEnter) && e.type !== "textarea" && Xe(u), e.type === "search" && P()), t("keypress", u); }, ee = () => e.id || `${r}-input`, Re = () => a.status, Ge = () => { const u = W("control", [m("inputAlign"), { error: K.value, custom: !!n.input, "min-height": e.type === "textarea" && !e.autosize }]); if (n.input) return l("div", { class: u, onClick: R }, [n.input()]); const y = { id: ee(), ref: o, name: e.name, rows: e.rows !== void 0 ? +e.rows : void 0, class: u, disabled: m("disabled"), readonly: m("readonly"), autofocus: e.autofocus, placeholder: e.placeholder, autocomplete: e.autocomplete, autocapitalize: e.autocapitalize, autocorrect: e.autocorrect, enterkeyhint: e.enterkeyhint, spellcheck: e.spellcheck, "aria-labelledby": e.label ? `${r}-label` : void 0, "data-allow-mismatch": "attribute", onBlur: N, onFocus: p, onInput: $, onClick: R, onChange: Nt, onKeypress: lt, onCompositionend: Nt, onCompositionstart: Ba }; return e.type === "textarea" ? l("textarea", ve(y, { inputmode: e.inputmode }), null) : l("input", ve(ka(e.type, e.inputmode), y), null); }, ie = () => { const u = n["left-icon"]; if (e.leftIcon || u) return l("div", { class: W("left-icon"), onClick: E }, [u ? u() : l(me, { name: e.leftIcon, classPrefix: e.iconPrefix }, null)]); }, Pe = () => { const u = n["right-icon"]; if (e.rightIcon || u) return l("div", { class: W("right-icon"), onClick: I }, [u ? u() : l(me, { name: e.rightIcon, classPrefix: e.iconPrefix }, null)]); }, Ue = () => { if (e.showWordLimit && e.maxlength) { const u = ne(c()); return l("div", { class: W("word-limit") }, [l("span", { class: W("word-num") }, [u]), dt("/"), e.maxlength]); } }, vr = () => { if (d && d.props.showErrorMessage === !1) return; const u = e.errorMessage || a.validateMessage; if (u) { const y = n["error-message"], x = m("errorMessageAlign"); return l("div", { class: W("error-message", x) }, [y ? y({ message: u }) : u]); } }, br = () => { const u = m("labelWidth"), y = m("labelAlign"), x = m("colon") ? ":" : ""; if (n.label) return [n.label(), x]; if (e.label) return l("label", { id: `${r}-label`, for: n.input ? void 0 : ee(), "data-allow-mismatch": "attribute", onClick: (O) => { Xe(O), Ce(); }, style: y === "top" && u ? { width: z(u) } : void 0 }, [e.label + x]); }, pr = () => [l("div", { class: W("body") }, [Ge(), g.value && l(me, { ref: s, name: e.clearIcon, class: W("clear") }, null), Pe(), n.button && l("div", { class: W("button") }, [n.button()])]), Ue(), vr()]; return pt({ blur: P, focus: Ce, validate: b, formValue: f, resetValidation: w, getValidationStatus: Re }), vn(Fr, { customValue: i, resetValidation: w, validateWithTrigger: V }), he(() => e.modelValue, () => { v(c()), w(), V("onChange"), Ke(h); }), wr(() => { v(c(), e.formatTrigger), Ke(h); }), Or("touchstart", B, { target: F(() => { var u; return (u = s.value) == null ? void 0 : u.$el; }) }), () => { const u = m("disabled"), y = m("labelAlign"), x = ie(), O = () => { const k = br(); return y === "top" ? [x, k].filter(Boolean) : k || []; }; return l(Dn, { size: e.size, class: W({ error: K.value, disabled: u, [`label-${y}`]: y }), center: e.center, border: e.border, isLink: e.isLink, clickable: e.clickable, titleStyle: ot.value, valueClass: W("value"), titleClass: [W("label", [y, { required: _.value }]), e.labelClass], arrowDirection: e.arrowDirection }, { icon: x && y !== "top" ? () => x : null, title: O, value: pr, extra: n.extra }); }; } }); const Ra = J(Na), [Mn, Ga] = Y("checkbox-group"), Ua = { max: D, shape: j("round"), disabled: Boolean, iconSize: D, direction: String, modelValue: Nr(), checkedColor: String }, zn = Symbol(Mn); var Ha = L({ name: Mn, props: Ua, emits: ["change", "update:modelValue"], setup(e, { emit: t, slots: n }) { const { children: r, linkChildren: a } = Pr(zn), o = (i) => t("update:modelValue", i), s = (i = {}) => { typeof i == "boolean" && (i = { checked: i }); const { checked: d, skipDisabled: c } = i, g = r.filter((f) => f.props.bindGroup ? f.props.disabled && c ? f.checked.value : d ?? !f.checked.value : !1).map((f) => f.name); o(g); }; return he(() => e.modelValue, (i) => t("change", i)), pt({ toggleAll: s }), bt(() => e.modelValue), a({ props: e, updateValue: o }), () => { var i; return l("div", { class: Ga([e.direction]) }, [(i = n.default) == null ? void 0 : i.call(n)]); }; } }); const Ka = J(Ha), Ln = { name: Te, disabled: Boolean, iconSize: D, modelValue: Te, checkedColor: String, labelPosition: String, labelDisabled: Boolean }; var Wa = L({ props: ue({}, Ln, { bem: Lr(Function), role: String, shape: String, parent: Object, checked: Boolean, bindGroup: ze, indeterminate: { type: Boolean, default: null } }), emits: ["click", "toggle"], setup(e, { emit: t, slots: n }) { const r = H(), a = (f) => { if (e.parent && e.bindGroup) return e.parent.props[f]; }, o = F(() => { if (e.parent && e.bindGroup) { const f = a("disabled") || e.disabled; if (e.role === "checkbox") { const _ = a("modelValue").length, C = a("max"), w = C && _ >= +C; return f || w && !e.checked; } return f; } return e.disabled; }), s = F(() => a("direction")), i = F(() => { const f = e.checkedColor || a("checkedColor"); if (f && e.checked && !o.value) return { borderColor: f, backgroundColor: f }; }), d = F(() => e.shape || a("shape") || "round"), c = (f) => { const { target: _ } = f, C = r.value, w = C === _ || (C == null ? void 0 : C.contains(_)); !o.value && (w || !e.labelDisabled) && t("toggle"), t("click", f); }, m = () => { var f, _; const { bem: C, checked: w, indeterminate: S } = e, b = e.iconSize || a("iconSize"); return l("div", { ref: r, class: C("icon", [d.value, { disabled: o.value, checked: w, indeterminate: S }]), style: d.value !== "dot" ? { fontSize: z(b) } : { width: z(b), height: z(b), borderColor: (f = i.value) == null ? void 0 : f.borderColor } }, [n.icon ? n.icon({ checked: w, disabled: o.value }) : d.value !== "dot" ? l(me, { name: S ? "minus" : "success", style: i.value }, null) : l("div", { class: C("icon--dot__icon"), style: { backgroundColor: (_ = i.value) == null ? void 0 : _.backgroundColor } }, null)]); }, g = () => { const { checked: f } = e; if (n.default) return l("span", { class: e.bem("label", [e.labelPosition, { disabled: o.value }]) }, [n.default({ checked: f, disabled: o.value })]); }; return () => { const f = e.labelPosition === "left" ? [g(), m()] : [m(), g()]; return l("div", { role: e.role, class: e.bem([{ disabled: o.value, "label-disabled": e.labelDisabled }, s.value]), tabindex: o.value ? void 0 : 0, "aria-checked": e.checked, onClick: c }, [f]); }; } }); const [qa, Ya] = Y("checkbox"), Za = ue({}, Ln, { shape: String, bindGroup: ze, indeterminate: { type: Boolean, default: null } }); var Xa = L({ name: qa, props: Za, emits: ["change", "update:modelValue"], setup(e, { emit: t, slots: n }) { const { parent: r } = pn(zn), a = (i) => { const { name: d } = e, { max: c, modelValue: m } = r.props, g = m.slice(); if (i) !(c && g.length >= +c) && !g.includes(d) && (g.push(d), e.bindGroup && r.updateValue(g)); else { const f = g.indexOf(d); f !== -1 && (g.splice(f, 1), e.bindGroup && r.updateValue(g)); } }, o = F(() => r && e.bindGroup ? r.props.modelValue.indexOf(e.name) !== -1 : !!e.modelValue), s = (i = !o.value) => { r && e.bindGroup ? a(i) : t("update:modelValue", i), e.indeterminate !== null && t("change", i); }; return he(() => e.modelValue, (i) => { e.indeterminate === null && t("change", i); }), pt({ toggle: s, props: e, checked: o }), bt(() => e.modelValue), () => l(Wa, ve({ bem: Ya, role: "checkbox", parent: r, checked: o.value, onToggle: s }, e), zr(n, ["default", "icon"])); } }); const Ja = J(Xa), [Qa, Rt] = Y("cell-group"), eo = { title: String, inset: Boolean, border: ze }; var to = L({ name: Qa, inheritAttrs: !1, props: eo, setup(e, { slots: t, attrs: n }) { const r = () => { var o; return l("div", ve({ class: [Rt({ inset: e.inset }), { [ra]: e.border && !e.inset }] }, n, Aa()), [(o = t.default) == null ? void 0 : o.call(t)]); }, a = () => l("div", { class: Rt("title", { inset: e.inset }) }, [t.title ? t.title() : e.title]); return () => e.title || t.title ? l(De, null, [a(), r()]) : r(); } }); const no = J(to), [ro, Ze] = Y("empty"), ao = { image: j("default"), imageSize: [Number, String, Array], description: String }; var oo = L({ name: ro, props: ao, setup(e, { slots: t }) { const n = () => { const b = t.description ? t.description() : e.description; if (b) return l("p", { class: Ze("description") }, [b]); }, r = () => { if (t.default) return l("div", { class: Ze("bottom") }, [t.default()]); }, a = Vn(), o = (b) => `${a}-${b}`, s = (b) => `url(#${o(b)})`, i = (b, V, q) => l("stop", { "stop-color": b, offset: `${V}%`, "stop-opacity": q }, null), d = (b, V) => [i(b, 0), i(V, 100)], c = (b) => [l("defs", null, [l("radialGradient", { id: o(b), cx: "50%", cy: "54%", fx: "50%", fy: "54%", r: "297%", gradientTransform: "matrix(-.16 0 0 -.33 .58 .72)", "data-allow-mismatch": "attribute" }, [i("#EBEDF0", 0), i("#F2F3F5", 100, 0.3)])]), l("ellipse", { fill: s(b), opacity: ".8", cx: "80", cy: "140", rx: "46", ry: "8", "data-allow-mismatch": "attribute" }, null)], m = () => [l("defs", null, [l("linearGradient", { id: o("a"), x1: "64%", y1: "100%", x2: "64%", "data-allow-mismatch": "attribute" }, [i("#FFF", 0, 0.5), i("#F2F3F5", 100)])]), l("g", { opacity: ".8", "data-allow-mismatch": "children" }, [l("path", { d: "M36 131V53H16v20H2v58h34z", fill: s("a") }, null), l("path", { d: "M123 15h22v14h9v77h-31V15z", fill: s("a") }, null)])], g = () => [l("defs", null, [l("linearGradient", { id: o("b"), x1: "64%", y1: "97%", x2: "64%", y2: "0%", "data-allow-mismatch": "attribute" }, [i("#F2F3F5", 0, 0.3), i("#F2F3F5", 100)])]), l("g", { opacity: ".8", "data-allow-mismatch": "children" }, [l("path", { d: "M87 6c3 0 7 3 8 6a8 8 0 1 1-1 16H80a7 7 0 0 1-8-6c0-4 3-7 6-7 0-5 4-9 9-9Z", fill: s("b") }, null), l("path", { d: "M19 23c2 0 3 1 4 3 2 0 4 2 4 4a4 4 0 0 1-4 3v1h-7v-1l-1 1c-2 0-3-2-3-4 0-1 1-3 3-3 0-2 2-4 4-4Z", fill: s("b") }, null)])], f = () => l("svg", { viewBox: "0 0 160 160" }, [l("defs", { "data-allow-mismatch": "children" }, [l("linearGradient", { id: o(1), x1: "64%", y1: "100%", x2: "64%" }, [i("#FFF", 0, 0.5), i("#F2F3F5", 100)]), l("linearGradient", { id: o(2), x1: "50%", x2: "50%", y2: "84%" }, [i("#EBEDF0", 0), i("#DCDEE0", 100, 0)]), l("linearGradient", { id: o(3), x1: "100%", x2: "100%", y2: "100%" }, [d("#EAEDF0", "#DCDEE0")]), l("radialGradient", { id: o(4), cx: "50%", cy: "0%", fx: "50%", fy: "0%", r: "100%", gradientTransform: "matrix(0 1 -.54 0 .5 -.5)" }, [i("#EBEDF0", 0), i("#FFF", 100, 0)])]), l("g", { fill: "none" }, [m(), l("path", { fill: s(4), d: "M0 139h160v21H0z", "data-allow-mismatch": "attribute" }, null), l("path", { d: "M80 54a7 7 0 0 1 3 13v27l-2 2h-2a2 2 0 0 1-2-2V67a7 7 0 0 1 3-13z", fill: s(2), "data-allow-mismatch": "attribute" }, null), l("g", { opacity: ".6", "stroke-linecap": "round", "stroke-width": "7", "data-allow-mismatch": "children" }, [l("path", { d: "M64 47a19 19 0 0 0-5 13c0 5 2 10 5 13", stroke: s(3) }, null), l("path", { d: "M53 36a34 34 0 0 0 0 48", stroke: s(3) }, null), l("path", { d: "M95 73a19 19 0 0 0 6-13c0-5-2-9-6-13", stroke: s(3) }, null), l("path", { d: "M106 84a34 34 0 0 0 0-48", stroke: s(3) }, null)]), l("g", { transform: "translate(31 105)" }, [l("rect", { fill: "#EBEDF0", width: "98", height: "34", rx: "2" }, null), l("rect", { fill: "#FFF", x: "9", y: "8", width: "80", height: "18", rx: "1.1" }, null), l("rect", { fill: "#EBEDF0", x: "15", y: "12", width: "18", height: "6", rx: "1.1" }, null)])])]), _ = () => l("svg", { viewBox: "0 0 160 160" }, [l("defs", { "data-allow-mismatch": "children" }, [l("linearGradient", { x1: "50%", x2: "50%", y2: "100%", id: o(5) }, [d("#F2F3F5", "#DCDEE0")]), l("linearGradient", { x1: "95%", y1: "48%", x2: "5.5%", y2: "51%", id: o(6) }, [d("#EAEDF1", "#DCDEE0")]), l("linearGradient", { y1: "45%", x2: "100%", y2: "54%", id: o(7) }, [d("#EAEDF1", "#DCDEE0")])]), m(), g(), l("g", { transform: "translate(36 50)", fill: "none" }, [l("g", { transform: "translate(8)" }, [l("rect", { fill: "#EBEDF0", opacity: ".6", x: "38", y: "13", width: "36", height: "53", rx: "2" }, null), l("rect", { fill: s(5), width: "64", height: "66", rx: "2", "data-allow-mismatch": "attribute" }, null), l("rect", { fill: "#FFF", x: "6", y: "6", width: "52", height: "55", rx: "1" }, null), l("g", { transform: "translate(15 17)", fill: s(6), "data-allow-mismatch": "attribute" }, [l("rect", { width: "34", height: "6", rx: "1" }, null), l("path", { d: "M0 14h34v6H0z" }, null), l("rect", { y: "28", width: "34", height: "6", rx: "1" }, null)])]), l("rect", { fill: s(7), y: "61", width: "88", height: "28", rx: "1", "data-allow-mismatch": "attribute" }, null), l("rect", { fill: "#F7F8FA", x: "29", y: "72", width: "30", height: "6", rx: "1" }, null)])]), C = () => l("svg", { viewBox: "0 0 160 160" }, [l("defs", null, [l("linearGradient", { x1: "50%", x2: "50%", y2: "100%", id: o(8), "data-allow-mismatch": "attribute" }, [d("#EAEDF1", "#DCDEE0")])]), m(), g(), c("c"), l("path", { d: "m59 60 21 21 21-21h3l9 9v3L92 93l21 21v3l-9 9h-3l-21-21-21 21h-3l-9-9v-3l21-21-21-21v-3l9-9h3Z", fill: s(8), "data-allow-mismatch": "attribute" }, null)]), w = () => l("svg", { viewBox: "0 0 160 160" }, [l("defs", { "data-allow-mismatch": "children" }, [l("linearGradient", { x1: "50%", y1: "100%", x2: "50%", id: o(9) }, [d("#EEE", "#D8D8D8")]), l("linearGradient", { x1: "100%", y1: "50%", y2: "50%", id: o(10) }, [d("#F2F3F5", "#DCDEE0")]), l("linearGradient", { x1: "50%", x2: "50%", y2: "100%", id: o(11) }, [d("#F2F3F5", "#DCDEE0")]), l("linearGradient", { x1: "50%", x2: "50%", y2: "100%", id: o(12) }, [d("#FFF", "#F7F8FA")])]), m(), g(), c("d"), l("g", { transform: "rotate(-45 113 -4)", fill: "none", "data-allow-mismatch": "children" }, [l("rect", { fill: s(9), x: "24", y: "52.8", width: "5.8", height: "19", rx: "1" }, null), l("rect", { fill: s(10), x: "22.1", y: "67.3", width: "9.9", height: "28", rx: "1" }, null), l("circle", { stroke: s(11), "stroke-width": "8", cx: "27", cy: "27", r: "27" }, null), l("circle", { fill: s(12), cx: "27", cy: "27", r: "16" }, null), l("path", { d: "M37 7c-8 0-15 5-16 12", stroke: s(11), "stroke-width": "3", opacity: ".5", "stroke-linecap": "round", transform: "rotate(45 29 13)" }, null)])]), S = () => { var b; if (t.image) return t.image(); const V = { error: C, search: w, network: f, default: _ }; return ((b = V[e.image]) == null ? void 0 : b.call(V)) || l("img", { src: e.image }, null); }; return () => l("div", { class: Ze() }, [l("div", { class: Ze("image"), style: Tn(e.imageSize) }, [S()]), n(), r()]); } }); const Nn = J(oo); var Rn = typeof global == "object" && global && global.Object === Object && global, lo = typeof self == "object" && self && self.Object === Object && self, Q = Rn || lo || Function("return this")(), X = Q.Symbol, Gn = Object.prototype, io = Gn.hasOwnProperty, uo = Gn.toString, je = X ? X.toStringTag : void 0; function co(e) { var t = io.call(e, je), n = e[je]; try { e[je] = void 0; var r = !0; } catch { } var a = uo.call(e); return r && (t ? e[je] = n : delete e[je]), a; } var so = Object.prototype, fo = so.toString; function go(e) { return fo.call(e); } var ho = "[object Null]", mo = "[object Undefined]", Gt = X ? X.toStringTag : void 0; function pe(e) { return e == null ? e === void 0 ? mo : ho : Gt && Gt in Object(e) ? co(e) : go(e); } function ye(e) { return e != null && typeof e == "object"; } var vo = "[object Symbol]"; function _t(e) { return typeof e == "symbol" || ye(e) && pe(e) == vo; } function Un(e, t) { for (var n = -1, r = e == null ? 0 : e.length, a = Array(r); ++n < r; ) a[n] = t(e[n], n, e); return a; } var _e = Array.isArray, bo = 1 / 0, Ut = X ? X.prototype : void 0, Ht = Ut ? Ut.toString : void 0; function Hn(e) { if (typeof e == "string") return e; if (_e(e)) return Un(e, Hn) + ""; if (_t(e)) return Ht ? Ht.call(e) : ""; var t = e + ""; return t == "0" && 1 / e == -bo ? "-0" : t; } function Le(e) { var t = typeof e; return e != null && (t == "object" || t == "function"); } function po(e) { return e; } var yo = "[object AsyncFunction]", _o = "[object Function]", xo = "[object GeneratorFunction]", $o = "[object Proxy]"; function Kn(e) { if (!Le(e)) return !1; var t = pe(e); return t == _o || t == xo || t == yo || t == $o; } var ut = Q["__core-js_shared__"], Kt = function() { var e = /[^.]+$/.exec(ut && ut.keys && ut.keys.IE_PROTO || ""); return e ? "Symbol(src)_1." + e : ""; }(); function Co(e) { return !!Kt && Kt in e; } var wo = Function.prototype, Eo = wo.toString; function xe(e) { if (e != null) { try { return Eo.call(e); } catch { } try { return e + ""; } catch { } } return ""; } var To = /[\\^$.*+?()[\]{}|]/g, So = /^\[object .+?Constructor\]$/, Ao = Function.prototype, Fo = Object.prototype, Oo = Ao.toString, Po = Fo.hasOwnProperty, jo = RegExp( "^" + Oo.call(Po).replace(To, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" ); function Io(e) { if (!Le(e) || Co(e)) return !1; var t = Kn(e) ? jo : So; return t.test(xe(e)); } function Vo(e, t) { return e == null ? void 0 : e[t]; } function $e(e, t) { var n = Vo(e, t); return Io(n) ? n : void 0; } var gt = $e(Q, "WeakMap"), Wt = Object.create, Bo = /* @__PURE__ */ function() { function e() { } return function(t) { if (!Le(t)) return {}; if (Wt) return Wt(t); e.prototype = t; var n = new e(); return e.prototype = void 0, n; }; }(); function Do(e, t, n) { switch (n.length) { case 0: return e.call(t); case 1: return e.call(t, n[0]); case 2: return e.call(t, n[0], n[1]); case 3: return e.call(t, n[0], n[1], n[2]); } return e.apply(t, n); } function ko(e, t) { var n = -1, r = e.length; for (t || (t = Array(r)); ++n < r; ) t[n] = e[n]; return t; } var Mo = 800, zo = 16, Lo = Date.now; function No(e) { var t = 0, n = 0; return function() { var r = Lo(), a = zo - (r - n); if (n = r, a > 0) { if (++t >= Mo) return arguments[0]; } else t = 0; return e.apply(void 0, arguments); }; } function Ro(e) { return function() { return e; }; } var et = function() { try { var e = $e(Object, "defineProperty"); return e({}, "", {}), e; } catch { } }(), Go = et ? function(e, t) { return et(e, "toString", { configurable: !0, enumerable: !1, value: Ro(t), writable: !0 }); } : po, Uo = No(Go); function Ho(e, t) { for (var n = -1, r = e == null ? 0 : e.length; ++n < r && t(e[n], n, e) !== !1; ) ; return e; } var Ko = 9007199254740991, Wo = /^(?:0|[1-9]\d*)$/; function qo(e, t) { var n = typeof e; return t = t ?? Ko, !!t && (n == "number" || n != "symbol" && Wo.test(e)) && e > -1 && e % 1 == 0 && e < t; } function Wn(e, t, n) { t == "__proto__" && et ? et(e, t, { configurable: !0, enumerable: !0, value: n, writable: !0 }) : e[t] = n; } function qn(e, t) { return e === t || e !== e && t !== t; } var Yo = Object.prototype, Zo = Yo.hasOwnProperty; function Yn(e, t, n) { var r = e[t]; (!(Zo.call(e, t) && qn(r, n)) || n === void 0 && !(t in e)) && Wn(e, t, n); } function Ne(e, t, n, r) { var a = !n; n || (n = {}); for (var o = -1, s = t.length; ++o < s; ) { var i = t[o], d = void 0; d === void 0 && (d = e[i]), a ? Wn(n, i, d) : Yn(n, i, d); } return n; } var qt = Math.max; function Xo(e, t, n) { return t = qt(t === void 0 ? e.length - 1 : t, 0), function() { for (var r = arguments, a = -1, o = qt(r.length - t, 0), s = Array(o); ++a < o; ) s[a] = r[t + a]; a = -1; for (var i = Array(t + 1); ++a < t; ) i[a] = r[a]; return i[t] = n(s), Do(e, this, i); }; } var Jo = 9007199254740991; function Zn(e) { return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Jo; } function Xn(e) { return e != null && Zn(e.length) && !Kn(e); } var Qo = Object.prototype; function xt(e) { var t = e && e.constructor, n = typeof t == "function" && t.prototype || Qo; return e === n; } function el(e, t) { for (var n = -1, r = Array(e); ++n < e; ) r[n] = t(n); return r; } var tl = "[object Arguments]"; function Yt(e) { return ye(e) && pe(e) == tl; } var Jn = Object.prototype, nl = Jn.hasOwnProperty, rl = Jn.propertyIsEnumerable, Qn = Yt(/* @__PURE__ */ function() { return arguments; }()) ? Yt : function(e) { return ye(e) && nl.call(e, "callee") && !rl.call(e, "callee"); }; function al() { return !1; } var er = typeof exports == "object" && exports && !exports.nodeType && exports, Zt = er && typeof module == "object" && module && !module.nodeType && module, ol = Zt && Zt.exports === er, Xt = ol ? Q.Buffer : void 0, ll = Xt ? Xt.isBuffer : void 0, tr = ll || al, il = "[object Arguments]", ul = "[object Array]", cl = "[object Boolean]", sl = "[object Date]", dl = "[object Error]", fl = "[object Function]", gl = "[object Map]", hl = "[object Number]", ml = "[object Object]", vl = "[object RegExp]", bl = "[object Set]", pl = "[object String]", yl = "[object WeakMap]", _l = "[object ArrayBuffer]", xl = "[object DataView]", $l = "[object Float32Array]", Cl = "[object Float64Array]", wl = "[object Int8Array]", El = "[object Int16Array]", Tl = "[object Int32Array]", Sl = "[objec