import { defineComponent as te, computed as L, openBlock as pe, createElementBlock as Qe, normalizeStyle as Sr, toDisplayString as Bi, Fragment as wt, isVNode as nu, Comment as Q9, Text as TS, reactive as tn, getCurrentInstance as vn, onMounted as it, onUpdated as ep, onUnmounted as nl, watch as se, inject as Ge, provide as pt, ref as U, unref as B, shallowRef as ae, watchEffect as ht, onBeforeUnmount as yt, triggerRef as zle, createVNode as M, h as jg, Transition as co, withDirectives as bi, resolveDirective as Vle, cloneVNode as Ns, render as sf, nextTick as Tt, toRef as Nn, withModifiers as lf, vShow as Bs, onBeforeMount as H9, Teleport as PS, createTextVNode as Kt, isRef as tp, toRefs as $S, toRaw as qo, onBeforeUpdate as G9, TransitionGroup as JM, onActivated as Fle, getCurrentScope as j9, onScopeDispose as f0, createElementVNode as He, warn as Wle, mergeProps as _n, renderSlot as zn, useAttrs as Qle, useSlots as Z9, createCommentVNode as _t, normalizeClass as Ye, createBlock as je, withCtx as we, resolveDynamicComponent as Ec, readonly as Hle, onDeactivated as Gle, vModelRadio as U9, renderList as ag, withKeys as Y4, pushScopeId as AS, popScopeId as ES, resolveComponent as cl } from "vue"; var Ri = /* @__PURE__ */ ((t) => (t[t.STATIC = 0] = "STATIC", t[t.API = 1] = "API", t))(Ri || {}); const eI = { text: { type: String, required: !0 }, width: { type: Number }, height: { type: Number }, fontSize: { type: Number }, fontWeight: { type: [Number, String] }, color: { type: String }, backgroundColor: { type: String }, textAlign: { type: String }, direction: { type: String } }, jle = { container: { style: { background: { type: "none" } }, props: { width: 300, height: 80 } }, props: { text: "标题内容", fontSize: 24, color: "#fff", fontWeight: "bold", textAlign: "left", direction: "horizontal" } }; function Zle(t) { const e = {}; for (const n in t) if (typeof t[n] == "object") switch (n) { case "background": t[n].type === "none" && (e[n] = "none"), t[n].type === "color" && (e[n] = t[n].color), t[n].type === "image" && (e[n + "-image"] = `url(${t[n].image}) no-repeat center center`, e[n + "-size"] = t[n].fillType); break; case "border": t[n].type === "none" ? e[n] = "none" : e[n] = `${t[n].width}px ${t[n].type} ${t[n].color}`; break; case "borderRadius": t[n].type === "all" ? e[n] = `${t[n].value}${t[n].unit}` : e[n] = `${t[n].topLeft}${t[n].unit} ${t[n].topRight}${t[n].unit} ${t[n].bottomLeft}${t[n].unit} ${t[n].bottomRight}${t[n].unit}`; break; case "boxShadow": t[n].enabled && (e[n] = `${t[n].offsetX}px ${t[n].offsetY}px ${t[n].blurRadius}px ${t[n].spreadRadius}px ${t[n].color} ${t[n].inset ? "inset" : ""}`); break; case "backdropFilter": t[n].enabled && (e[n] = `blur(${t[n].blur}px)`); break; } else typeof t[n] == "number" ? e[n] = t[n] + "px" : typeof t[n] == "string" && (e[n] = t[n]); return e; } const Zg = /* @__PURE__ */ te({ __name: "index", props: eI, setup(t) { const e = t, n = L(() => { const r = Zle(e), i = {}; return r.color.length > 9 && (i.backgroundImage = r.color, i.webkitBackgroundClip = "text", i.webkitTextFillColor = "transparent"), { ...i, ...r, width: "100%", height: "100%", lineHeight: e.height + "px" }; }); return (r, i) => (pe(), Qe("div", { class: "cus-title", style: Sr(n.value) }, Bi(r.text), 5)); } }); function Ug(t) { "@babel/helpers - typeof"; return Ug = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) { return typeof e; } : function(e) { return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; }, Ug(t); } function Ule(t, e) { if (Ug(t) != "object" || !t) return t; var n = t[Symbol.toPrimitive]; if (n !== void 0) { var r = n.call(t, e || "default"); if (Ug(r) != "object") return r; throw new TypeError("@@toPrimitive must return a primitive value."); } return (e === "string" ? String : Number)(t); } function Xle(t) { var e = Ule(t, "string"); return Ug(e) == "symbol" ? e : e + ""; } function Yle(t, e, n) { return (e = Xle(e)) in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t; } function q4(t, e) { var n = Object.keys(t); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(t); e && (r = r.filter(function(i) { return Object.getOwnPropertyDescriptor(t, i).enumerable; })), n.push.apply(n, r); } return n; } function j(t) { for (var e = 1; e < arguments.length; e++) { var n = arguments[e] != null ? arguments[e] : {}; e % 2 ? q4(Object(n), !0).forEach(function(r) { Yle(t, r, n[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : q4(Object(n)).forEach(function(r) { Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(n, r)); }); } return t; } function I() { return I = Object.assign ? Object.assign.bind() : function(t) { for (var e = 1; e < arguments.length; e++) { var n = arguments[e]; for (var r in n) ({}).hasOwnProperty.call(n, r) && (t[r] = n[r]); } return t; }, I.apply(null, arguments); } const qle = (t) => typeof t == "function", Kle = Array.isArray, Jle = (t) => typeof t == "string", eue = (t) => t !== null && typeof t == "object", tue = /^on[^a-z]/, nue = (t) => tue.test(t), X9 = (t) => { const e = /* @__PURE__ */ Object.create(null); return (n) => e[n] || (e[n] = t(n)); }, rue = /-(\w)/g, tI = X9((t) => t.replace(rue, (e, n) => n ? n.toUpperCase() : "")), iue = /\B([A-Z])/g, aue = X9((t) => t.replace(iue, "-$1").toLowerCase()), oue = Object.prototype.hasOwnProperty, K4 = (t, e) => oue.call(t, e); function sue(t, e, n, r) { const i = t[n]; if (i != null) { const a = K4(i, "default"); if (a && r === void 0) { const o = i.default; r = i.type !== Function && qle(o) ? o() : o; } i.type === Boolean && (!K4(e, n) && !a ? r = !1 : r === "" && (r = !0)); } return r; } function lue(t) { return Object.keys(t).reduce((e, n) => ((n.startsWith("data-") || n.startsWith("aria-")) && (e[n] = t[n]), e), {}); } function Wp(t) { return typeof t == "number" ? `${t}px` : t; } function Ld(t) { let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 ? arguments[2] : void 0; return typeof t == "function" ? t(e) : t ?? n; } function uue(t) { let e; const n = new Promise((i) => { e = t(() => { i(!0); }); }), r = () => { e == null || e(); }; return r.then = (i, a) => n.then(i, a), r.promise = n, r; } function ye() { const t = []; for (let e = 0; e < arguments.length; e++) { const n = e < 0 || arguments.length <= e ? void 0 : arguments[e]; if (n) { if (Jle(n)) t.push(n); else if (Kle(n)) for (let r = 0; r < n.length; r++) { const i = ye(n[r]); i && t.push(i); } else if (eue(n)) for (const r in n) n[r] && t.push(r); } } return t.join(" "); } var Y9 = function() { if (typeof Map < "u") return Map; function t(e, n) { var r = -1; return e.some(function(i, a) { return i[0] === n ? (r = a, !0) : !1; }), r; } return ( /** @class */ function() { function e() { this.__entries__ = []; } return Object.defineProperty(e.prototype, "size", { /** * @returns {boolean} */ get: function() { return this.__entries__.length; }, enumerable: !0, configurable: !0 }), e.prototype.get = function(n) { var r = t(this.__entries__, n), i = this.__entries__[r]; return i && i[1]; }, e.prototype.set = function(n, r) { var i = t(this.__entries__, n); ~i ? this.__entries__[i][1] = r : this.__entries__.push([n, r]); }, e.prototype.delete = function(n) { var r = this.__entries__, i = t(r, n); ~i && r.splice(i, 1); }, e.prototype.has = function(n) { return !!~t(this.__entries__, n); }, e.prototype.clear = function() { this.__entries__.splice(0); }, e.prototype.forEach = function(n, r) { r === void 0 && (r = null); for (var i = 0, a = this.__entries__; i < a.length; i++) { var o = a[i]; n.call(r, o[1], o[0]); } }, e; }() ); }(), n2 = typeof window < "u" && typeof document < "u" && window.document === document, h1 = function() { return typeof global < "u" && global.Math === Math ? global : typeof self < "u" && self.Math === Math ? self : typeof window < "u" && window.Math === Math ? window : Function("return this")(); }(), cue = function() { return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(h1) : function(t) { return setTimeout(function() { return t(Date.now()); }, 1e3 / 60); }; }(), fue = 2; function due(t, e) { var n = !1, r = !1, i = 0; function a() { n && (n = !1, t()), r && s(); } function o() { cue(a); } function s() { var l = Date.now(); if (n) { if (l - i < fue) return; r = !0; } else n = !0, r = !1, setTimeout(o, e); i = l; } return s; } var hue = 20, pue = ["top", "right", "bottom", "left", "width", "height", "size", "weight"], vue = typeof MutationObserver < "u", gue = ( /** @class */ function() { function t() { this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = due(this.refresh.bind(this), hue); } return t.prototype.addObserver = function(e) { ~this.observers_.indexOf(e) || this.observers_.push(e), this.connected_ || this.connect_(); }, t.prototype.removeObserver = function(e) { var n = this.observers_, r = n.indexOf(e); ~r && n.splice(r, 1), !n.length && this.connected_ && this.disconnect_(); }, t.prototype.refresh = function() { var e = this.updateObservers_(); e && this.refresh(); }, t.prototype.updateObservers_ = function() { var e = this.observers_.filter(function(n) { return n.gatherActive(), n.hasActive(); }); return e.forEach(function(n) { return n.broadcastActive(); }), e.length > 0; }, t.prototype.connect_ = function() { !n2 || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), vue ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, { attributes: !0, childList: !0, characterData: !0, subtree: !0 })) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0); }, t.prototype.disconnect_ = function() { !n2 || !this.connected_ || (document.removeEventListener("transitionend", this.onTransitionEnd_), window.removeEventListener("resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener("DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1); }, t.prototype.onTransitionEnd_ = function(e) { var n = e.propertyName, r = n === void 0 ? "" : n, i = pue.some(function(a) { return !!~r.indexOf(a); }); i && this.refresh(); }, t.getInstance = function() { return this.instance_ || (this.instance_ = new t()), this.instance_; }, t.instance_ = null, t; }() ), q9 = function(t, e) { for (var n = 0, r = Object.keys(e); n < r.length; n++) { var i = r[n]; Object.defineProperty(t, i, { value: e[i], enumerable: !1, writable: !1, configurable: !0 }); } return t; }, hh = function(t) { var e = t && t.ownerDocument && t.ownerDocument.defaultView; return e || h1; }, K9 = MS(0, 0, 0, 0); function p1(t) { return parseFloat(t) || 0; } function J4(t) { for (var e = [], n = 1; n < arguments.length; n++) e[n - 1] = arguments[n]; return e.reduce(function(r, i) { var a = t["border-" + i + "-width"]; return r + p1(a); }, 0); } function mue(t) { for (var e = ["top", "right", "bottom", "left"], n = {}, r = 0, i = e; r < i.length; r++) { var a = i[r], o = t["padding-" + a]; n[a] = p1(o); } return n; } function yue(t) { var e = t.getBBox(); return MS(0, 0, e.width, e.height); } function bue(t) { var e = t.clientWidth, n = t.clientHeight; if (!e && !n) return K9; var r = hh(t).getComputedStyle(t), i = mue(r), a = i.left + i.right, o = i.top + i.bottom, s = p1(r.width), l = p1(r.height); if (r.boxSizing === "border-box" && (Math.round(s + a) !== e && (s -= J4(r, "left", "right") + a), Math.round(l + o) !== n && (l -= J4(r, "top", "bottom") + o)), !Oue(t)) { var u = Math.round(s + a) - e, c = Math.round(l + o) - n; Math.abs(u) !== 1 && (s -= u), Math.abs(c) !== 1 && (l -= c); } return MS(i.left, i.top, s, l); } var _ue = /* @__PURE__ */ function() { return typeof SVGGraphicsElement < "u" ? function(t) { return t instanceof hh(t).SVGGraphicsElement; } : function(t) { return t instanceof hh(t).SVGElement && typeof t.getBBox == "function"; }; }(); function Oue(t) { return t === hh(t).document.documentElement; } function Sue(t) { return n2 ? _ue(t) ? yue(t) : bue(t) : K9; } function xue(t) { var e = t.x, n = t.y, r = t.width, i = t.height, a = typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object, o = Object.create(a.prototype); return q9(o, { x: e, y: n, width: r, height: i, top: n, right: e + r, bottom: i + n, left: e }), o; } function MS(t, e, n, r) { return { x: t, y: e, width: n, height: r }; } var wue = ( /** @class */ function() { function t(e) { this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = MS(0, 0, 0, 0), this.target = e; } return t.prototype.isActive = function() { var e = Sue(this.target); return this.contentRect_ = e, e.width !== this.broadcastWidth || e.height !== this.broadcastHeight; }, t.prototype.broadcastRect = function() { var e = this.contentRect_; return this.broadcastWidth = e.width, this.broadcastHeight = e.height, e; }, t; }() ), Cue = ( /** @class */ /* @__PURE__ */ function() { function t(e, n) { var r = xue(n); q9(this, { target: e, contentRect: r }); } return t; }() ), Tue = ( /** @class */ function() { function t(e, n, r) { if (this.activeObservations_ = [], this.observations_ = new Y9(), typeof e != "function") throw new TypeError("The callback provided as parameter 1 is not a function."); this.callback_ = e, this.controller_ = n, this.callbackCtx_ = r; } return t.prototype.observe = function(e) { if (!arguments.length) throw new TypeError("1 argument required, but only 0 present."); if (!(typeof Element > "u" || !(Element instanceof Object))) { if (!(e instanceof hh(e).Element)) throw new TypeError('parameter 1 is not of type "Element".'); var n = this.observations_; n.has(e) || (n.set(e, new wue(e)), this.controller_.addObserver(this), this.controller_.refresh()); } }, t.prototype.unobserve = function(e) { if (!arguments.length) throw new TypeError("1 argument required, but only 0 present."); if (!(typeof Element > "u" || !(Element instanceof Object))) { if (!(e instanceof hh(e).Element)) throw new TypeError('parameter 1 is not of type "Element".'); var n = this.observations_; n.has(e) && (n.delete(e), n.size || this.controller_.removeObserver(this)); } }, t.prototype.disconnect = function() { this.clearActive(), this.observations_.clear(), this.controller_.removeObserver(this); }, t.prototype.gatherActive = function() { var e = this; this.clearActive(), this.observations_.forEach(function(n) { n.isActive() && e.activeObservations_.push(n); }); }, t.prototype.broadcastActive = function() { if (this.hasActive()) { var e = this.callbackCtx_, n = this.activeObservations_.map(function(r) { return new Cue(r.target, r.broadcastRect()); }); this.callback_.call(e, n, e), this.clearActive(); } }, t.prototype.clearActive = function() { this.activeObservations_.splice(0); }, t.prototype.hasActive = function() { return this.activeObservations_.length > 0; }, t; }() ), J9 = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new Y9(), ej = ( /** @class */ /* @__PURE__ */ function() { function t(e) { if (!(this instanceof t)) throw new TypeError("Cannot call a class as a function."); if (!arguments.length) throw new TypeError("1 argument required, but only 0 present."); var n = gue.getInstance(), r = new Tue(e, n, this); J9.set(this, r); } return t; }() ); [ "observe", "unobserve", "disconnect" ].forEach(function(t) { ej.prototype[t] = function() { var e; return (e = J9.get(this))[t].apply(e, arguments); }; }); var tj = function() { return typeof h1.ResizeObserver < "u" ? h1.ResizeObserver : ej; }(); const r2 = (t) => t != null && t !== "", sr = (t, e) => { const n = I({}, t); return Object.keys(e).forEach((r) => { const i = n[r]; if (i) i.type || i.default ? i.default = e[r] : i.def ? i.def(e[r]) : n[r] = { type: i, default: e[r] }; else throw new Error(`not have ${r} prop`); }), n; }, Pue = (t) => { const e = Object.keys(t), n = {}, r = {}, i = {}; for (let a = 0, o = e.length; a < o; a++) { const s = e[a]; nue(s) ? (n[s[2].toLowerCase() + s.slice(3)] = t[s], r[s] = t[s]) : i[s] = t[s]; } return { onEvents: r, events: n, extraAttrs: i }; }, $ue = function() { let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1; const n = {}, r = /;(?![^(]*\))/g, i = /:(.+)/; return typeof t == "object" ? t : (t.split(r).forEach(function(a) { if (a) { const o = a.split(i); if (o.length > 1) { const s = e ? tI(o[0].trim()) : o[0].trim(); n[s] = o[1].trim(); } } }), n); }, v1 = (t, e) => t[e] !== void 0, nj = Symbol("skipFlatten"), Yn = function() { let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0; const n = Array.isArray(t) ? t : [t], r = []; return n.forEach((i) => { Array.isArray(i) ? r.push(...Yn(i, e)) : i && i.type === wt ? i.key === nj ? r.push(i) : r.push(...Yn(i.children, e)) : i && nu(i) ? e && !nI(i) ? r.push(i) : e || r.push(i) : r2(i) && r.push(i); }), r; }, rj = function(t) { let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "default", n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; if (nu(t)) return t.type === wt ? e === "default" ? Yn(t.children) : [] : t.children && t.children[e] ? Yn(t.children[e](n)) : []; { const r = t.$slots[e] && t.$slots[e](n); return Yn(r); } }, Cs = (t) => { var e; let n = ((e = t == null ? void 0 : t.vnode) === null || e === void 0 ? void 0 : e.el) || t && (t.$el || t); for (; n && !n.tagName; ) n = n.nextSibling; return n; }, Aue = (t) => { const e = {}; if (t.$ && t.$.vnode) { const n = t.$.vnode.props || {}; Object.keys(t.$props).forEach((r) => { const i = t.$props[r], a = aue(r); (i !== void 0 || a in n) && (e[r] = i); }); } else if (nu(t) && typeof t.type == "object") { const n = t.props || {}, r = {}; Object.keys(n).forEach((a) => { r[tI(a)] = n[a]; }); const i = t.type.props || {}; Object.keys(i).forEach((a) => { const o = sue(i, r, a, r[a]); (o !== void 0 || a in r) && (e[a] = o); }); } return e; }, Eue = function(t) { let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "default", n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : t, r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !0, i; if (t.$) { const a = t[e]; if (a !== void 0) return typeof a == "function" && r ? a(n) : a; i = t.$slots[e], i = r && i ? i(n) : i; } else if (nu(t)) { const a = t.props && t.props[e]; if (a !== void 0 && t.props !== null) return typeof a == "function" && r ? a(n) : a; t.type === wt ? i = t.children : t.children && t.children[e] && (i = t.children[e], i = r && i ? i(n) : i); } return Array.isArray(i) && (i = Yn(i), i = i.length === 1 ? i[0] : i, i = i.length === 0 ? void 0 : i), i; }; function e8() { let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, n = {}; return t.$ ? n = I(I({}, n), t.$attrs) : n = I(I({}, n), t.props), Pue(n)[e ? "onEvents" : "events"]; } function Mue(t, e) { let r = ((nu(t) ? t.props : t.$attrs) || {}).style || {}; return typeof r == "string" && (r = $ue(r, e)), r; } function Iue(t) { return t.length === 1 && t[0].type === wt; } function nI(t) { return t && (t.type === Q9 || t.type === wt && t.children.length === 0 || t.type === TS && t.children.trim() === ""); } function os() { let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : []; const e = []; return t.forEach((n) => { Array.isArray(n) ? e.push(...n) : (n == null ? void 0 : n.type) === wt ? e.push(...os(n.children)) : e.push(n); }), e.filter((n) => !nI(n)); } function Ui(t) { return Array.isArray(t) && t.length === 1 && (t = t[0]), t && t.__v_isVNode && typeof t.type != "symbol"; } function IS(t, e) { let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "default"; var r, i; return (r = e[n]) !== null && r !== void 0 ? r : (i = t[n]) === null || i === void 0 ? void 0 : i.call(t); } const ph = te({ compatConfig: { MODE: 3 }, name: "ResizeObserver", props: { disabled: Boolean, onResize: Function }, emits: ["resize"], setup(t, e) { let { slots: n } = e; const r = tn({ width: 0, height: 0, offsetHeight: 0, offsetWidth: 0 }); let i = null, a = null; const o = () => { a && (a.disconnect(), a = null); }, s = (c) => { const { onResize: f } = t, d = c[0].target, { width: h, height: p } = d.getBoundingClientRect(), { offsetWidth: v, offsetHeight: g } = d, m = Math.floor(h), y = Math.floor(p); if (r.width !== m || r.height !== y || r.offsetWidth !== v || r.offsetHeight !== g) { const b = { width: m, height: y, offsetWidth: v, offsetHeight: g }; I(r, b), f && Promise.resolve().then(() => { f(I(I({}, b), { offsetWidth: v, offsetHeight: g }), d); }); } }, l = vn(), u = () => { const { disabled: c } = t; if (c) { o(); return; } const f = Cs(l); f !== i && (o(), i = f), !a && f && (a = new tj(s), a.observe(f)); }; return it(() => { u(); }), ep(() => { u(); }), nl(() => { o(); }), se(() => t.disabled, () => { u(); }, { flush: "post" }), () => { var c; return (c = n.default) === null || c === void 0 ? void 0 : c.call(n)[0]; }; } }); let ij = (t) => setTimeout(t, 16), aj = (t) => clearTimeout(t); typeof window < "u" && "requestAnimationFrame" in window && (ij = (t) => window.requestAnimationFrame(t), aj = (t) => window.cancelAnimationFrame(t)); let t8 = 0; const rI = /* @__PURE__ */ new Map(); function oj(t) { rI.delete(t); } function xt(t) { let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1; t8 += 1; const n = t8; function r(i) { if (i === 0) oj(n), t(); else { const a = ij(() => { r(i - 1); }); rI.set(n, a); } } return r(e), n; } xt.cancel = (t) => { const e = rI.get(t); return oj(e), aj(e); }; const ru = function() { for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++) e[n] = arguments[n]; return e; }, np = (t) => { const e = t; return e.install = function(n) { n.component(e.displayName || e.name, t); }, t; }; function g1() { return { type: [Function, Array] }; } function $t(t) { return { type: Object, default: t }; } function nt(t) { return { type: Boolean, default: t }; } function tt(t) { return { type: Function, default: t }; } function fa(t, e) { return { validator: () => !0, default: t }; } function uf(t) { return { type: Array, default: t }; } function hn(t) { return { type: String, default: t }; } function gn(t, e) { return t ? { type: t, default: e } : fa(e); } let pr = !1; try { const t = Object.defineProperty({}, "passive", { get() { pr = !0; } }); window.addEventListener("testPassive", null, t), window.removeEventListener("testPassive", null, t); } catch { } function vr(t, e, n, r) { if (t && t.addEventListener) { let i = r; i === void 0 && pr && (e === "touchstart" || e === "touchmove" || e === "wheel") && (i = { passive: !1 }), t.addEventListener(e, n, i); } return { remove: () => { t && t.removeEventListener && t.removeEventListener(e, n); } }; } const iI = "anticon", sj = Symbol("GlobalFormContextKey"), Due = (t) => { pt(sj, t); }, Rue = () => Ge(sj, { validateMessages: L(() => { }) }), kue = () => ({ iconPrefixCls: String, getTargetContainer: { type: Function }, getPopupContainer: { type: Function }, prefixCls: String, getPrefixCls: { type: Function }, renderEmpty: { type: Function }, transformCellText: { type: Function }, csp: $t(), input: $t(), autoInsertSpaceInButton: { type: Boolean, default: void 0 }, locale: $t(), pageHeader: $t(), componentSize: { type: String }, componentDisabled: { type: Boolean, default: void 0 }, direction: { type: String, default: "ltr" }, space: $t(), virtual: { type: Boolean, default: void 0 }, dropdownMatchSelectWidth: { type: [Number, Boolean], default: !0 }, form: $t(), pagination: $t(), theme: $t(), select: $t(), wave: $t() }), aI = Symbol("configProvider"), lj = { getPrefixCls: (t, e) => e || (t ? `ant-${t}` : "ant"), iconPrefixCls: L(() => iI), getPopupContainer: L(() => () => document.body), direction: L(() => "ltr") }, DS = () => Ge(aI, lj), Lue = (t) => pt(aI, t), uj = Symbol("DisabledContextKey"), Ko = () => Ge(uj, U(void 0)), cj = (t) => { const e = Ko(); return pt(uj, L(() => { var n; return (n = t.value) !== null && n !== void 0 ? n : e.value; })), t; }, Nue = { // Options.jsx items_per_page: "/ page", jump_to: "Go to", jump_to_confirm: "confirm", page: "", // Pagination.jsx prev_page: "Previous Page", next_page: "Next Page", prev_5: "Previous 5 Pages", next_5: "Next 5 Pages", prev_3: "Previous 3 Pages", next_3: "Next 3 Pages" }, Bue = { locale: "en_US", today: "Today", now: "Now", backToToday: "Back to today", ok: "Ok", clear: "Clear", month: "Month", year: "Year", timeSelect: "select time", dateSelect: "select date", weekSelect: "Choose a week", monthSelect: "Choose a month", yearSelect: "Choose a year", decadeSelect: "Choose a decade", yearFormat: "YYYY", dateFormat: "M/D/YYYY", dayFormat: "D", dateTimeFormat: "M/D/YYYY HH:mm:ss", monthBeforeYear: !0, previousMonth: "Previous month (PageUp)", nextMonth: "Next month (PageDown)", previousYear: "Last year (Control + left)", nextYear: "Next year (Control + right)", previousDecade: "Last decade", nextDecade: "Next decade", previousCentury: "Last century", nextCentury: "Next century" }, fj = { placeholder: "Select time", rangePlaceholder: ["Start time", "End time"] }, n8 = { lang: I({ placeholder: "Select date", yearPlaceholder: "Select year", quarterPlaceholder: "Select quarter", monthPlaceholder: "Select month", weekPlaceholder: "Select week", rangePlaceholder: ["Start date", "End date"], rangeYearPlaceholder: ["Start year", "End year"], rangeQuarterPlaceholder: ["Start quarter", "End quarter"], rangeMonthPlaceholder: ["Start month", "End month"], rangeWeekPlaceholder: ["Start week", "End week"] }, Bue), timePickerLocale: I({}, fj) }, Ti = "${label} is not a valid ${type}", zs = { locale: "en", Pagination: Nue, DatePicker: n8, TimePicker: fj, Calendar: n8, global: { placeholder: "Please select" }, Table: { filterTitle: "Filter menu", filterConfirm: "OK", filterReset: "Reset", filterEmptyText: "No filters", filterCheckall: "Select all items", filterSearchPlaceholder: "Search in filters", emptyText: "No data", selectAll: "Select current page", selectInvert: "Invert current page", selectNone: "Clear all data", selectionAll: "Select all data", sortTitle: "Sort", expand: "Expand row", collapse: "Collapse row", triggerDesc: "Click to sort descending", triggerAsc: "Click to sort ascending", cancelSort: "Click to cancel sorting" }, Tour: { Next: "Next", Previous: "Previous", Finish: "Finish" }, Modal: { okText: "OK", cancelText: "Cancel", justOkText: "OK" }, Popconfirm: { okText: "OK", cancelText: "Cancel" }, Transfer: { titles: ["", ""], searchPlaceholder: "Search here", itemUnit: "item", itemsUnit: "items", remove: "Remove", selectCurrent: "Select current page", removeCurrent: "Remove current page", selectAll: "Select all data", removeAll: "Remove all data", selectInvert: "Invert current page" }, Upload: { uploading: "Uploading...", removeFile: "Remove file", uploadError: "Upload error", previewFile: "Preview file", downloadFile: "Download file" }, Empty: { description: "No data" }, Icon: { icon: "icon" }, Text: { edit: "Edit", copy: "Copy", copied: "Copied", expand: "Expand" }, PageHeader: { back: "Back" }, Form: { optional: "(optional)", defaultValidateMessages: { default: "Field validation error for ${label}", required: "Please enter ${label}", enum: "${label} must be one of [${enum}]", whitespace: "${label} cannot be a blank character", date: { format: "${label} date format is invalid", parse: "${label} cannot be converted to a date", invalid: "${label} is an invalid date" }, types: { string: Ti, method: Ti, array: Ti, object: Ti, number: Ti, date: Ti, boolean: Ti, integer: Ti, float: Ti, regexp: Ti, email: Ti, url: Ti, hex: Ti }, string: { len: "${label} must be ${len} characters", min: "${label} must be at least ${min} characters", max: "${label} must be up to ${max} characters", range: "${label} must be between ${min}-${max} characters" }, number: { len: "${label} must be equal to ${len}", min: "${label} must be minimum ${min}", max: "${label} must be maximum ${max}", range: "${label} must be between ${min}-${max}" }, array: { len: "Must be ${len} ${label}", min: "At least ${min} ${label}", max: "At most ${max} ${label}", range: "The amount of ${label} must be between ${min}-${max}" }, pattern: { mismatch: "${label} does not match the pattern ${pattern}" } } }, Image: { preview: "Preview" }, QRCode: { expired: "QR code expired", refresh: "Refresh", scanned: "Scanned" } }, dj = te({ compatConfig: { MODE: 3 }, name: "LocaleReceiver", props: { componentName: String, defaultLocale: { type: [Object, Function] }, children: { type: Function } }, setup(t, e) { let { slots: n } = e; const r = Ge("localeData", {}), i = L(() => { const { componentName: o = "global", defaultLocale: s } = t, l = s || zs[o || "global"], { antLocale: u } = r, c = o && u ? u[o] : {}; return I(I({}, typeof l == "function" ? l() : l), c || {}); }), a = L(() => { const { antLocale: o } = r, s = o && o.locale; return o && o.exist && !s ? zs.locale : s; }); return () => { const o = t.children || n.default, { antLocale: s } = r; return o == null ? void 0 : o(i.value, a.value, s); }; } }); function RS(t, e, n) { const r = Ge("localeData", {}); return [L(() => { const { antLocale: a } = r, o = B(e) || zs[t || "global"], s = t && a ? a[t] : {}; return I(I(I({}, typeof o == "function" ? o() : o), s || {}), B(n) || {}); })]; } function oI(t) { for (var e = 0, n, r = 0, i = t.length; i >= 4; ++r, i -= 4) n = t.charCodeAt(r) & 255 | (t.charCodeAt(++r) & 255) << 8 | (t.charCodeAt(++r) & 255) << 16 | (t.charCodeAt(++r) & 255) << 24, n = /* Math.imul(k, m): */ (n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16), n ^= /* k >>> r: */ n >>> 24, e = /* Math.imul(k, m): */ (n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */ (e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16); switch (i) { case 3: e ^= (t.charCodeAt(r + 2) & 255) << 16; case 2: e ^= (t.charCodeAt(r + 1) & 255) << 8; case 1: e ^= t.charCodeAt(r) & 255, e = /* Math.imul(h, m): */ (e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16); } return e ^= e >>> 13, e = /* Math.imul(h, m): */ (e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16), ((e ^ e >>> 15) >>> 0).toString(36); } const r8 = "%"; class zue { constructor(e) { this.cache = /* @__PURE__ */ new Map(), this.instanceId = e; } get(e) { return this.cache.get(Array.isArray(e) ? e.join(r8) : e) || null; } update(e, n) { const r = Array.isArray(e) ? e.join(r8) : e, i = this.cache.get(r), a = n(i); a === null ? this.cache.delete(r) : this.cache.set(r, a); } } const hj = "data-token-hash", Hc = "data-css-hash", Vue = "data-cache-path", Nd = "__cssinjs_instance__"; function Xg() { const t = Math.random().toString(12).slice(2); if (typeof document < "u" && document.head && document.body) { const e = document.body.querySelectorAll(`style[${Hc}]`) || [], { firstChild: n } = document.head; Array.from(e).forEach((i) => { i[Nd] = i[Nd] || t, i[Nd] === t && document.head.insertBefore(i, n); }); const r = {}; Array.from(document.querySelectorAll(`style[${Hc}]`)).forEach((i) => { var a; const o = i.getAttribute(Hc); r[o] ? i[Nd] === t && ((a = i.parentNode) === null || a === void 0 || a.removeChild(i)) : r[o] = !0; }); } return new zue(t); } const pj = Symbol("StyleContextKey"), Fue = () => { var t, e, n; const r = vn(); let i; if (r && r.appContext) { const a = (n = (e = (t = r.appContext) === null || t === void 0 ? void 0 : t.config) === null || e === void 0 ? void 0 : e.globalProperties) === null || n === void 0 ? void 0 : n.__ANTDV_CSSINJS_CACHE__; a ? i = a : (i = Xg(), r.appContext.config.globalProperties && (r.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__ = i)); } else i = Xg(); return i; }, vj = { cache: Xg(), defaultCache: !0, hashPriority: "low" }, kS = () => { const t = Fue(); return Ge(pj, ae(I(I({}, vj), { cache: t }))); }, Wue = (t) => { const e = kS(), n = ae(I(I({}, vj), { cache: Xg() })); return se([() => B(t), e], () => { const r = I({}, e.value), i = B(t); Object.keys(i).forEach((o) => { const s = i[o]; i[o] !== void 0 && (r[o] = s); }); const { cache: a } = i; r.cache = r.cache || Xg(), r.defaultCache = !a && e.value.defaultCache, n.value = r; }, { immediate: !0 }), pt(pj, n), n; }, Que = () => ({ autoClear: nt(), /** @private Test only. Not work in production. */ mock: hn(), /** * Only set when you need ssr to extract style on you own. * If not provided, it will auto create