UNPKG

openapi-ui-dist

Version:

<h1 align="center"> OpenAPI UI </h1> <p align="center"> OpenAPI/Swagger UI document, quickly generate mock params and call api, also simplified postman tool </p> <p align="center"> <a href="https://github.com/rookie-luochao/openapi-ui/blob/master/LICE

1,421 lines 178 kB
import { r as a, I as pt, _, w as Ne, K as ve, c as eo, W as Ae, s as to, a as me, b as re, d as X, e as W, u as fr, i as no, f as te, g as we, h as vr, j as We, k as oo, l as ro, m as pr, n as hr, o as br, p as Cr, q as Ie, t as ht, C as wr, v as Ir, x as yr, y as he, z as bt, A as Br, B as xr, D as L, E as Sr, F as Mr, G as en, H as Qt, J as io, L as Pn, M as ao, T as Rn, N as Er, O as lo, P as Ao, Q as so, R as Dr, S as Nn, U as Or, V as Pr, X as Rr, Y as Nr, Z as Lr, $ as Hr, a0 as jr, a1 as Ut, a2 as zr, a3 as Tr, a4 as Xr, a5 as Fr, a6 as Ln, a7 as co, a8 as kr, a9 as He, aa as Ct, ab as Re, ac as B, ad as Gr, ae as $e, af as st, ag as ae, ah as Qr, ai as wt, aj as Ur, ak as Yr, al as uo, am as tn, an as nn, ao as qr, ap as Kr, aq as Hn, ar as Wr, as as go, at as Jr, au as Le, av as Vr, aw as jn, ax as $r, ay as Zr, az as mo, aA as _r, aB as ei, aC as Ue, aD as ti, aE as ni, aF as oi, aG as ri } from "./index.js"; import { T as fo, F as Je, a as ii, g as ai, i as gt, s as li, b as Ai, c as si, d as ci, e as ui, f as zn, h as di, j as gi, k as mi, l as fi, m as Yt, n as vi, I as on, o as vo, t as Tn, p as qt, q as ct, r as pi } from "./utils.js"; var hi = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" } }] }, name: "right", theme: "outlined" }, bi = function(n, t) { return /* @__PURE__ */ a.createElement(pt, _({}, n, { ref: t, icon: hi })); }, Kt = /* @__PURE__ */ a.forwardRef(bi), Ci = ve.ESC, wi = ve.TAB; function Ii(e) { var n = e.visible, t = e.triggerRef, r = e.onVisibleChange, o = e.autoFocus, l = e.overlayRef, i = a.useRef(!1), A = function() { if (n) { var u, g; (u = t.current) === null || u === void 0 || (g = u.focus) === null || g === void 0 || g.call(u), r == null || r(!1); } }, s = function() { var u; return (u = l.current) !== null && u !== void 0 && u.focus ? (l.current.focus(), i.current = !0, !0) : !1; }, c = function(u) { switch (u.keyCode) { case Ci: A(); break; case wi: { var g = !1; i.current || (g = s()), g ? u.preventDefault() : A(); break; } } }; a.useEffect(function() { return n ? (window.addEventListener("keydown", c), o && Ne(s, 3), function() { window.removeEventListener("keydown", c), i.current = !1; }) : function() { i.current = !1; }; }, [n]); } var yi = /* @__PURE__ */ a.forwardRef(function(e, n) { var t = e.overlay, r = e.arrow, o = e.prefixCls, l = a.useMemo(function() { var A; return typeof t == "function" ? A = t() : A = t, A; }, [t]), i = eo(n, l == null ? void 0 : l.ref); return /* @__PURE__ */ Ae.createElement(Ae.Fragment, null, r && /* @__PURE__ */ Ae.createElement("div", { className: "".concat(o, "-arrow") }), /* @__PURE__ */ Ae.cloneElement(l, { ref: to(l) ? i : void 0 })); }), Oe = { adjustX: 1, adjustY: 1 }, Pe = [0, 0], Bi = { topLeft: { points: ["bl", "tl"], overflow: Oe, offset: [0, -4], targetOffset: Pe }, top: { points: ["bc", "tc"], overflow: Oe, offset: [0, -4], targetOffset: Pe }, topRight: { points: ["br", "tr"], overflow: Oe, offset: [0, -4], targetOffset: Pe }, bottomLeft: { points: ["tl", "bl"], overflow: Oe, offset: [0, 4], targetOffset: Pe }, bottom: { points: ["tc", "bc"], overflow: Oe, offset: [0, 4], targetOffset: Pe }, bottomRight: { points: ["tr", "br"], overflow: Oe, offset: [0, 4], targetOffset: Pe } }, xi = ["arrow", "prefixCls", "transitionName", "animation", "align", "placement", "placements", "getPopupContainer", "showAction", "hideAction", "overlayClassName", "overlayStyle", "visible", "trigger", "autoFocus", "overlay", "children", "onVisibleChange"]; function Si(e, n) { var t, r = e.arrow, o = r === void 0 ? !1 : r, l = e.prefixCls, i = l === void 0 ? "rc-dropdown" : l, A = e.transitionName, s = e.animation, c = e.align, m = e.placement, u = m === void 0 ? "bottomLeft" : m, g = e.placements, f = g === void 0 ? Bi : g, d = e.getPopupContainer, v = e.showAction, h = e.hideAction, b = e.overlayClassName, E = e.overlayStyle, I = e.visible, w = e.trigger, S = w === void 0 ? ["hover"] : w, p = e.autoFocus, x = e.overlay, D = e.children, y = e.onVisibleChange, P = me(e, xi), N = Ae.useState(), O = re(N, 2), C = O[0], M = O[1], R = "visible" in e ? I : C, j = Ae.useRef(null), H = Ae.useRef(null), F = Ae.useRef(null); Ae.useImperativeHandle(n, function() { return j.current; }); var k = function(Z) { M(Z), y == null || y(Z); }; Ii({ visible: R, triggerRef: F, onVisibleChange: k, autoFocus: p, overlayRef: H }); var G = function(Z) { var le = e.onOverlayClick; M(!1), le && le(Z); }, Y = function() { return /* @__PURE__ */ Ae.createElement(yi, { ref: H, overlay: x, prefixCls: i, arrow: o }); }, z = function() { return typeof x == "function" ? Y : Y(); }, Q = function() { var Z = e.minOverlayWidthMatchTrigger, le = e.alignPoint; return "minOverlayWidthMatchTrigger" in e ? Z : !le; }, J = function() { var Z = e.openClassName; return Z !== void 0 ? Z : "".concat(i, "-open"); }, K = /* @__PURE__ */ Ae.cloneElement(D, { className: X((t = D.props) === null || t === void 0 ? void 0 : t.className, R && J()), ref: to(D) ? eo(F, D.ref) : void 0 }), U = h; return !U && S.indexOf("contextMenu") !== -1 && (U = ["click"]), /* @__PURE__ */ Ae.createElement(fo, _({ builtinPlacements: f }, P, { prefixCls: i, ref: j, popupClassName: X(b, W({}, "".concat(i, "-show-arrow"), o)), popupStyle: E, action: S, showAction: v, hideAction: U, popupPlacement: u, popupAlign: c, popupTransitionName: A, popupAnimation: s, popupVisible: R, stretch: Q() ? "minWidth" : "", popup: z(), onPopupVisibleChange: k, onPopupClick: G, getPopupContainer: d }), K); } const Mi = /* @__PURE__ */ Ae.forwardRef(Si); var po = /* @__PURE__ */ a.createContext(null); function ho(e, n) { return e === void 0 ? null : "".concat(e, "-").concat(n); } function bo(e) { var n = a.useContext(po); return ho(n, e); } var Ei = ["children", "locked"], fe = /* @__PURE__ */ a.createContext(null); function Di(e, n) { var t = te({}, e); return Object.keys(n).forEach(function(r) { var o = n[r]; o !== void 0 && (t[r] = o); }), t; } function Ve(e) { var n = e.children, t = e.locked, r = me(e, Ei), o = a.useContext(fe), l = fr(function() { return Di(o, r); }, [o, r], function(i, A) { return !t && (i[0] !== A[0] || !no(i[1], A[1], !0)); }); return /* @__PURE__ */ a.createElement(fe.Provider, { value: l }, n); } var Oi = [], Co = /* @__PURE__ */ a.createContext(null); function It() { return a.useContext(Co); } var wo = /* @__PURE__ */ a.createContext(Oi); function je(e) { var n = a.useContext(wo); return a.useMemo(function() { return e !== void 0 ? [].concat(we(n), [e]) : n; }, [n, e]); } var Io = /* @__PURE__ */ a.createContext(null), rn = /* @__PURE__ */ a.createContext({}); function Xn(e) { var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1; if (vr(e)) { var t = e.nodeName.toLowerCase(), r = ( // Focusable element ["input", "select", "textarea", "button"].includes(t) || // Editable element e.isContentEditable || // Anchor with href element t === "a" && !!e.getAttribute("href") ), o = e.getAttribute("tabindex"), l = Number(o), i = null; return o && !Number.isNaN(l) ? i = l : r && i === null && (i = 0), r && e.disabled && (i = null), i !== null && (i >= 0 || n && i < 0); } return !1; } function Pi(e) { var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, t = we(e.querySelectorAll("*")).filter(function(r) { return Xn(r, n); }); return Xn(e, n) && t.unshift(e), t; } var Wt = ve.LEFT, Jt = ve.RIGHT, Vt = ve.UP, ut = ve.DOWN, dt = ve.ENTER, yo = ve.ESC, Ye = ve.HOME, qe = ve.END, Fn = [Vt, ut, Wt, Jt]; function Ri(e, n, t, r) { var o, l, i, A, s = "prev", c = "next", m = "children", u = "parent"; if (e === "inline" && r === dt) return { inlineTrigger: !0 }; var g = (o = {}, W(o, Vt, s), W(o, ut, c), o), f = (l = {}, W(l, Wt, t ? c : s), W(l, Jt, t ? s : c), W(l, ut, m), W(l, dt, m), l), d = (i = {}, W(i, Vt, s), W(i, ut, c), W(i, dt, m), W(i, yo, u), W(i, Wt, t ? m : u), W(i, Jt, t ? u : m), i), v = { inline: g, horizontal: f, vertical: d, inlineSub: g, horizontalSub: d, verticalSub: d }, h = (A = v["".concat(e).concat(n ? "" : "Sub")]) === null || A === void 0 ? void 0 : A[r]; switch (h) { case s: return { offset: -1, sibling: !0 }; case c: return { offset: 1, sibling: !0 }; case u: return { offset: -1, sibling: !1 }; case m: return { offset: 1, sibling: !1 }; default: return null; } } function Ni(e) { for (var n = e; n; ) { if (n.getAttribute("data-menu-list")) return n; n = n.parentElement; } return null; } function Li(e, n) { for (var t = e || document.activeElement; t; ) { if (n.has(t)) return t; t = t.parentElement; } return null; } function an(e, n) { var t = Pi(e, !0); return t.filter(function(r) { return n.has(r); }); } function kn(e, n, t) { var r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 1; if (!e) return null; var o = an(e, n), l = o.length, i = o.findIndex(function(A) { return t === A; }); return r < 0 ? i === -1 ? i = l - 1 : i -= 1 : r > 0 && (i += 1), i = (i + l) % l, o[i]; } var $t = function(n, t) { var r = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(); return n.forEach(function(i) { var A = document.querySelector("[data-menu-id='".concat(ho(t, i), "']")); A && (r.add(A), l.set(A, i), o.set(i, A)); }), { elements: r, key2element: o, element2key: l }; }; function Hi(e, n, t, r, o, l, i, A, s, c) { var m = a.useRef(), u = a.useRef(); u.current = n; var g = function() { Ne.cancel(m.current); }; return a.useEffect(function() { return function() { g(); }; }, []), function(f) { var d = f.which; if ([].concat(Fn, [dt, yo, Ye, qe]).includes(d)) { var v = l(), h = $t(v, r), b = h, E = b.elements, I = b.key2element, w = b.element2key, S = I.get(n), p = Li(S, E), x = w.get(p), D = Ri(e, i(x, !0).length === 1, t, d); if (!D && d !== Ye && d !== qe) return; (Fn.includes(d) || [Ye, qe].includes(d)) && f.preventDefault(); var y = function(H) { if (H) { var F = H, k = H.querySelector("a"); k != null && k.getAttribute("href") && (F = k); var G = w.get(H); A(G), g(), m.current = Ne(function() { u.current === G && F.focus(); }); } }; if ([Ye, qe].includes(d) || D.sibling || !p) { var P; !p || e === "inline" ? P = o.current : P = Ni(p); var N, O = an(P, E); d === Ye ? N = O[0] : d === qe ? N = O[O.length - 1] : N = kn(P, E, p, D.offset), y(N); } else if (D.inlineTrigger) s(x); else if (D.offset > 0) s(x, !0), g(), m.current = Ne(function() { h = $t(v, r); var j = p.getAttribute("aria-controls"), H = document.getElementById(j), F = kn(H, h.elements); y(F); }, 5); else if (D.offset < 0) { var C = i(x, !0), M = C[C.length - 2], R = I.get(M); s(M, !1), y(R); } } c == null || c(f); }; } function ji(e) { Promise.resolve().then(e); } var ln = "__RC_UTIL_PATH_SPLIT__", Gn = function(n) { return n.join(ln); }, zi = function(n) { return n.split(ln); }, Zt = "rc-menu-more"; function Ti() { var e = a.useState({}), n = re(e, 2), t = n[1], r = a.useRef(/* @__PURE__ */ new Map()), o = a.useRef(/* @__PURE__ */ new Map()), l = a.useState([]), i = re(l, 2), A = i[0], s = i[1], c = a.useRef(0), m = a.useRef(!1), u = function() { m.current || t({}); }, g = a.useCallback(function(I, w) { var S = Gn(w); o.current.set(S, I), r.current.set(I, S), c.current += 1; var p = c.current; ji(function() { p === c.current && u(); }); }, []), f = a.useCallback(function(I, w) { var S = Gn(w); o.current.delete(S), r.current.delete(I); }, []), d = a.useCallback(function(I) { s(I); }, []), v = a.useCallback(function(I, w) { var S = r.current.get(I) || "", p = zi(S); return w && A.includes(p[0]) && p.unshift(Zt), p; }, [A]), h = a.useCallback(function(I, w) { return I.filter(function(S) { return S !== void 0; }).some(function(S) { var p = v(S, !0); return p.includes(w); }); }, [v]), b = function() { var w = we(r.current.keys()); return A.length && w.push(Zt), w; }, E = a.useCallback(function(I) { var w = "".concat(r.current.get(I)).concat(ln), S = /* @__PURE__ */ new Set(); return we(o.current.keys()).forEach(function(p) { p.startsWith(w) && S.add(o.current.get(p)); }), S; }, []); return a.useEffect(function() { return function() { m.current = !0; }; }, []), { // Register registerPath: g, unregisterPath: f, refreshOverflowKeys: d, // Util isSubPathKey: h, getKeyPath: v, getKeys: b, getSubPathKeys: E }; } function Ke(e) { var n = a.useRef(e); n.current = e; var t = a.useCallback(function() { for (var r, o = arguments.length, l = new Array(o), i = 0; i < o; i++) l[i] = arguments[i]; return (r = n.current) === null || r === void 0 ? void 0 : r.call.apply(r, [n].concat(l)); }, []); return e ? t : void 0; } var Xi = Math.random().toFixed(5).toString().slice(2), Qn = 0; function Fi(e) { var n = We(e, { value: e }), t = re(n, 2), r = t[0], o = t[1]; return a.useEffect(function() { Qn += 1; var l = "".concat(Xi, "-").concat(Qn); o("rc-menu-uuid-".concat(l)); }, []), r; } function Bo(e, n, t, r) { var o = a.useContext(fe), l = o.activeKey, i = o.onActive, A = o.onInactive, s = { active: l === e }; return n || (s.onMouseEnter = function(c) { t == null || t({ key: e, domEvent: c }), i(e); }, s.onMouseLeave = function(c) { r == null || r({ key: e, domEvent: c }), A(e); }), s; } function xo(e) { var n = a.useContext(fe), t = n.mode, r = n.rtl, o = n.inlineIndent; if (t !== "inline") return null; var l = e; return r ? { paddingRight: l * o } : { paddingLeft: l * o }; } function So(e) { var n = e.icon, t = e.props, r = e.children, o; return n === null || n === !1 ? null : (typeof n == "function" ? o = /* @__PURE__ */ a.createElement(n, te({}, t)) : typeof n != "boolean" && (o = n), o || r || null); } var ki = ["item"]; function mt(e) { var n = e.item, t = me(e, ki); return Object.defineProperty(t, "item", { get: function() { return oo(!1, "`info.item` is deprecated since we will move to function component that not provides React Node instance in future."), n; } }), t; } var Gi = ["title", "attribute", "elementRef"], Qi = ["style", "className", "eventKey", "warnKey", "disabled", "itemIcon", "children", "role", "onMouseEnter", "onMouseLeave", "onClick", "onKeyDown", "onFocus"], Ui = ["active"], Yi = /* @__PURE__ */ function(e) { pr(t, e); var n = hr(t); function t() { return br(this, t), n.apply(this, arguments); } return Cr(t, [{ key: "render", value: function() { var o = this.props, l = o.title, i = o.attribute, A = o.elementRef, s = me(o, Gi), c = Ie(s, ["eventKey", "popupClassName", "popupOffset", "onTitleClick"]); return oo(!i, "`attribute` of Menu.Item is deprecated. Please pass attribute directly."), /* @__PURE__ */ a.createElement(Je.Item, _({}, i, { title: typeof l == "string" ? l : void 0 }, c, { ref: A })); } }]), t; }(a.Component), qi = /* @__PURE__ */ a.forwardRef(function(e, n) { var t, r = e.style, o = e.className, l = e.eventKey; e.warnKey; var i = e.disabled, A = e.itemIcon, s = e.children, c = e.role, m = e.onMouseEnter, u = e.onMouseLeave, g = e.onClick, f = e.onKeyDown, d = e.onFocus, v = me(e, Qi), h = bo(l), b = a.useContext(fe), E = b.prefixCls, I = b.onItemClick, w = b.disabled, S = b.overflowDisabled, p = b.itemIcon, x = b.selectedKeys, D = b.onActive, y = a.useContext(rn), P = y._internalRenderMenuItem, N = "".concat(E, "-item"), O = a.useRef(), C = a.useRef(), M = w || i, R = ro(n, C), j = je(l), H = function(ne) { return { key: l, // Note: For legacy code is reversed which not like other antd component keyPath: we(j).reverse(), item: O.current, domEvent: ne }; }, F = A || p, k = Bo(l, M, m, u), G = k.active, Y = me(k, Ui), z = x.includes(l), Q = xo(j.length), J = function(ne) { if (!M) { var se = H(ne); g == null || g(mt(se)), I(se); } }, K = function(ne) { if (f == null || f(ne), ne.which === ve.ENTER) { var se = H(ne); g == null || g(mt(se)), I(se); } }, U = function(ne) { D(l), d == null || d(ne); }, ee = {}; e.role === "option" && (ee["aria-selected"] = z); var Z = /* @__PURE__ */ a.createElement(Yi, _({ ref: O, elementRef: R, role: c === null ? "none" : c || "menuitem", tabIndex: i ? null : -1, "data-menu-id": S && h ? null : h }, v, Y, ee, { component: "li", "aria-disabled": i, style: te(te({}, Q), r), className: X(N, (t = {}, W(t, "".concat(N, "-active"), G), W(t, "".concat(N, "-selected"), z), W(t, "".concat(N, "-disabled"), M), t), o), onClick: J, onKeyDown: K, onFocus: U }), s, /* @__PURE__ */ a.createElement(So, { props: te(te({}, e), {}, { isSelected: z }), icon: F })); return P && (Z = P(Z, e, { selected: z })), Z; }); function Ki(e, n) { var t = e.eventKey, r = It(), o = je(t); return a.useEffect(function() { if (r) return r.registerPath(t, o), function() { r.unregisterPath(t, o); }; }, [o]), r ? null : /* @__PURE__ */ a.createElement(qi, _({}, e, { ref: n })); } const yt = /* @__PURE__ */ a.forwardRef(Ki); var Wi = ["className", "children"], Ji = function(n, t) { var r = n.className, o = n.children, l = me(n, Wi), i = a.useContext(fe), A = i.prefixCls, s = i.mode, c = i.rtl; return /* @__PURE__ */ a.createElement("ul", _({ className: X(A, c && "".concat(A, "-rtl"), "".concat(A, "-sub"), "".concat(A, "-").concat(s === "inline" ? "inline" : "vertical"), r), role: "menu" }, l, { "data-menu-list": !0, ref: t }), o); }, An = /* @__PURE__ */ a.forwardRef(Ji); An.displayName = "SubMenuList"; function sn(e, n) { return ht(e).map(function(t, r) { if (/* @__PURE__ */ a.isValidElement(t)) { var o, l, i = t.key, A = (o = (l = t.props) === null || l === void 0 ? void 0 : l.eventKey) !== null && o !== void 0 ? o : i, s = A == null; s && (A = "tmp_key-".concat([].concat(we(n), [r]).join("-"))); var c = { key: A, eventKey: A }; return /* @__PURE__ */ a.cloneElement(t, c); } return t; }); } var ie = { adjustX: 1, adjustY: 1 }, Vi = { topLeft: { points: ["bl", "tl"], overflow: ie }, topRight: { points: ["br", "tr"], overflow: ie }, bottomLeft: { points: ["tl", "bl"], overflow: ie }, bottomRight: { points: ["tr", "br"], overflow: ie }, leftTop: { points: ["tr", "tl"], overflow: ie }, leftBottom: { points: ["br", "bl"], overflow: ie }, rightTop: { points: ["tl", "tr"], overflow: ie }, rightBottom: { points: ["bl", "br"], overflow: ie } }, $i = { topLeft: { points: ["bl", "tl"], overflow: ie }, topRight: { points: ["br", "tr"], overflow: ie }, bottomLeft: { points: ["tl", "bl"], overflow: ie }, bottomRight: { points: ["tr", "br"], overflow: ie }, rightTop: { points: ["tr", "tl"], overflow: ie }, rightBottom: { points: ["br", "bl"], overflow: ie }, leftTop: { points: ["tl", "tr"], overflow: ie }, leftBottom: { points: ["bl", "br"], overflow: ie } }; function Mo(e, n, t) { if (n) return n; if (t) return t[e] || t.other; } var Zi = { horizontal: "bottomLeft", vertical: "rightTop", "vertical-left": "rightTop", "vertical-right": "leftTop" }; function _i(e) { var n = e.prefixCls, t = e.visible, r = e.children, o = e.popup, l = e.popupStyle, i = e.popupClassName, A = e.popupOffset, s = e.disabled, c = e.mode, m = e.onVisibleChange, u = a.useContext(fe), g = u.getPopupContainer, f = u.rtl, d = u.subMenuOpenDelay, v = u.subMenuCloseDelay, h = u.builtinPlacements, b = u.triggerSubMenuAction, E = u.forceSubMenuRender, I = u.rootClassName, w = u.motion, S = u.defaultMotions, p = a.useState(!1), x = re(p, 2), D = x[0], y = x[1], P = f ? te(te({}, $i), h) : te(te({}, Vi), h), N = Zi[c], O = Mo(c, w, S), C = a.useRef(O); c !== "inline" && (C.current = O); var M = te(te({}, C.current), {}, { leavedClassName: "".concat(n, "-hidden"), removeOnLeave: !1, motionAppear: !0 }), R = a.useRef(); return a.useEffect(function() { return R.current = Ne(function() { y(t); }), function() { Ne.cancel(R.current); }; }, [t]), /* @__PURE__ */ a.createElement(fo, { prefixCls: n, popupClassName: X("".concat(n, "-popup"), W({}, "".concat(n, "-rtl"), f), i, I), stretch: c === "horizontal" ? "minWidth" : null, getPopupContainer: g, builtinPlacements: P, popupPlacement: N, popupVisible: D, popup: o, popupStyle: l, popupAlign: A && { offset: A }, action: s ? [] : [b], mouseEnterDelay: d, mouseLeaveDelay: v, onPopupVisibleChange: m, forceRender: E, popupMotion: M, fresh: !0 }, r); } function ea(e) { var n = e.id, t = e.open, r = e.keyPath, o = e.children, l = "inline", i = a.useContext(fe), A = i.prefixCls, s = i.forceSubMenuRender, c = i.motion, m = i.defaultMotions, u = i.mode, g = a.useRef(!1); g.current = u === l; var f = a.useState(!g.current), d = re(f, 2), v = d[0], h = d[1], b = g.current ? t : !1; a.useEffect(function() { g.current && h(!1); }, [u]); var E = te({}, Mo(l, c, m)); r.length > 1 && (E.motionAppear = !1); var I = E.onVisibleChanged; return E.onVisibleChanged = function(w) { return !g.current && !w && h(!0), I == null ? void 0 : I(w); }, v ? null : /* @__PURE__ */ a.createElement(Ve, { mode: l, locked: !g.current }, /* @__PURE__ */ a.createElement(wr, _({ visible: b }, E, { forceRender: s, removeOnLeave: !1, leavedClassName: "".concat(A, "-hidden") }), function(w) { var S = w.className, p = w.style; return /* @__PURE__ */ a.createElement(An, { id: n, className: S, style: p }, o); })); } var ta = ["style", "className", "title", "eventKey", "warnKey", "disabled", "internalPopupClose", "children", "itemIcon", "expandIcon", "popupClassName", "popupOffset", "popupStyle", "onClick", "onMouseEnter", "onMouseLeave", "onTitleClick", "onTitleMouseEnter", "onTitleMouseLeave"], na = ["active"], oa = /* @__PURE__ */ a.forwardRef(function(e, n) { var t, r = e.style, o = e.className, l = e.title, i = e.eventKey; e.warnKey; var A = e.disabled, s = e.internalPopupClose, c = e.children, m = e.itemIcon, u = e.expandIcon, g = e.popupClassName, f = e.popupOffset, d = e.popupStyle, v = e.onClick, h = e.onMouseEnter, b = e.onMouseLeave, E = e.onTitleClick, I = e.onTitleMouseEnter, w = e.onTitleMouseLeave, S = me(e, ta), p = bo(i), x = a.useContext(fe), D = x.prefixCls, y = x.mode, P = x.openKeys, N = x.disabled, O = x.overflowDisabled, C = x.activeKey, M = x.selectedKeys, R = x.itemIcon, j = x.expandIcon, H = x.onItemClick, F = x.onOpenChange, k = x.onActive, G = a.useContext(rn), Y = G._internalRenderSubMenuItem, z = a.useContext(Io), Q = z.isSubPathKey, J = je(), K = "".concat(D, "-submenu"), U = N || A, ee = a.useRef(), Z = a.useRef(), le = m ?? R, ne = u ?? j, se = P.includes(i), de = !O && se, V = Q(M, i), ze = Bo(i, U, I, w), ye = ze.active, Te = me(ze, na), Et = a.useState(!1), Xe = re(Et, 2), Fe = Xe[0], et = Xe[1], tt = function(ge) { U || et(ge); }, Dt = function(ge) { tt(!0), h == null || h({ key: i, domEvent: ge }); }, nt = function(ge) { tt(!1), b == null || b({ key: i, domEvent: ge }); }, pe = a.useMemo(function() { return ye || (y !== "inline" ? Fe || Q([C], i) : !1); }, [y, ye, C, Fe, i, Q]), Ot = xo(J.length), Pt = function(ge) { U || (E == null || E({ key: i, domEvent: ge }), y === "inline" && F(i, !se)); }, ot = Ke(function(oe) { v == null || v(mt(oe)), H(oe); }), rt = function(ge) { y !== "inline" && F(i, ge); }, Rt = function() { k(i); }, be = p && "".concat(p, "-popup"), Be = /* @__PURE__ */ a.createElement("div", _({ role: "menuitem", style: Ot, className: "".concat(K, "-title"), tabIndex: U ? null : -1, ref: ee, title: typeof l == "string" ? l : null, "data-menu-id": O && p ? null : p, "aria-expanded": de, "aria-haspopup": !0, "aria-controls": be, "aria-disabled": U, onClick: Pt, onFocus: Rt }, Te), l, /* @__PURE__ */ a.createElement(So, { icon: y !== "horizontal" ? ne : void 0, props: te(te({}, e), {}, { isOpen: de, // [Legacy] Not sure why need this mark isSubMenu: !0 }) }, /* @__PURE__ */ a.createElement("i", { className: "".concat(K, "-arrow") }))), xe = a.useRef(y); if (y !== "inline" && J.length > 1 ? xe.current = "vertical" : xe.current = y, !O) { var ke = xe.current; Be = /* @__PURE__ */ a.createElement(_i, { mode: ke, prefixCls: K, visible: !s && de && y !== "inline", popupClassName: g, popupOffset: f, popupStyle: d, popup: /* @__PURE__ */ a.createElement( Ve, { mode: ke === "horizontal" ? "vertical" : ke }, /* @__PURE__ */ a.createElement(An, { id: be, ref: Z }, c) ), disabled: U, onVisibleChange: rt }, Be); } var De = /* @__PURE__ */ a.createElement(Je.Item, _({ ref: n, role: "none" }, S, { component: "li", style: r, className: X(K, "".concat(K, "-").concat(y), o, (t = {}, W(t, "".concat(K, "-open"), de), W(t, "".concat(K, "-active"), pe), W(t, "".concat(K, "-selected"), V), W(t, "".concat(K, "-disabled"), U), t)), onMouseEnter: Dt, onMouseLeave: nt }), Be, !O && /* @__PURE__ */ a.createElement(ea, { id: be, open: de, keyPath: J }, c)); return Y && (De = Y(De, e, { selected: V, active: pe, open: de, disabled: U })), /* @__PURE__ */ a.createElement(Ve, { onItemClick: ot, mode: y === "horizontal" ? "vertical" : y, itemIcon: le, expandIcon: ne }, De); }), Bt = /* @__PURE__ */ a.forwardRef(function(e, n) { var t = e.eventKey, r = e.children, o = je(t), l = sn(r, o), i = It(); a.useEffect(function() { if (i) return i.registerPath(t, o), function() { i.unregisterPath(t, o); }; }, [o]); var A; return i ? A = l : A = /* @__PURE__ */ a.createElement(oa, _({ ref: n }, e), l), /* @__PURE__ */ a.createElement(wo.Provider, { value: o }, A); }); function cn(e) { var n = e.className, t = e.style, r = a.useContext(fe), o = r.prefixCls, l = It(); return l ? null : /* @__PURE__ */ a.createElement("li", { role: "separator", className: X("".concat(o, "-item-divider"), n), style: t }); } var ra = ["className", "title", "eventKey", "children"], ia = /* @__PURE__ */ a.forwardRef(function(e, n) { var t = e.className, r = e.title; e.eventKey; var o = e.children, l = me(e, ra), i = a.useContext(fe), A = i.prefixCls, s = "".concat(A, "-item-group"); return /* @__PURE__ */ a.createElement("li", _({ ref: n, role: "presentation" }, l, { onClick: function(m) { return m.stopPropagation(); }, className: X(s, t) }), /* @__PURE__ */ a.createElement("div", { role: "presentation", className: "".concat(s, "-title"), title: typeof r == "string" ? r : void 0 }, r), /* @__PURE__ */ a.createElement("ul", { role: "group", className: "".concat(s, "-list") }, o)); }), un = /* @__PURE__ */ a.forwardRef(function(e, n) { var t = e.eventKey, r = e.children, o = je(t), l = sn(r, o), i = It(); return i ? l : /* @__PURE__ */ a.createElement(ia, _({ ref: n }, Ie(e, ["warnKey"])), l); }), aa = ["label", "children", "key", "type"]; function _t(e, n) { var t = n.item, r = n.group, o = n.submenu, l = n.divider; return (e || []).map(function(i, A) { if (i && Ir(i) === "object") { var s = i, c = s.label, m = s.children, u = s.key, g = s.type, f = me(s, aa), d = u ?? "tmp-".concat(A); return m || g === "group" ? g === "group" ? /* @__PURE__ */ a.createElement(r, _({ key: d }, f, { title: c }), _t(m, n)) : /* @__PURE__ */ a.createElement(o, _({ key: d }, f, { title: c }), _t(m, n)) : g === "divider" ? /* @__PURE__ */ a.createElement(l, _({ key: d }, f)) : /* @__PURE__ */ a.createElement(t, _({ key: d }, f), c); } return null; }).filter(function(i) { return i; }); } function Un(e, n, t, r) { var o = e, l = te({ divider: cn, item: yt, group: un, submenu: Bt }, r); return n && (o = _t(n, l)), sn(o, t); } var la = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items", "children", "direction", "id", "mode", "inlineCollapsed", "disabled", "disabledOverflow", "subMenuOpenDelay", "subMenuCloseDelay", "forceSubMenuRender", "defaultOpenKeys", "openKeys", "activeKey", "defaultActiveFirst", "selectable", "multiple", "defaultSelectedKeys", "selectedKeys", "onSelect", "onDeselect", "inlineIndent", "motion", "defaultMotions", "triggerSubMenuAction", "builtinPlacements", "itemIcon", "expandIcon", "overflowedIndicator", "overflowedIndicatorPopupClassName", "getPopupContainer", "onClick", "onOpenChange", "onKeyDown", "openAnimation", "openTransitionName", "_internalRenderMenuItem", "_internalRenderSubMenuItem", "_internalComponents"], Me = [], Aa = /* @__PURE__ */ a.forwardRef(function(e, n) { var t, r, o = e, l = o.prefixCls, i = l === void 0 ? "rc-menu" : l, A = o.rootClassName, s = o.style, c = o.className, m = o.tabIndex, u = m === void 0 ? 0 : m, g = o.items, f = o.children, d = o.direction, v = o.id, h = o.mode, b = h === void 0 ? "vertical" : h, E = o.inlineCollapsed, I = o.disabled, w = o.disabledOverflow, S = o.subMenuOpenDelay, p = S === void 0 ? 0.1 : S, x = o.subMenuCloseDelay, D = x === void 0 ? 0.1 : x, y = o.forceSubMenuRender, P = o.defaultOpenKeys, N = o.openKeys, O = o.activeKey, C = o.defaultActiveFirst, M = o.selectable, R = M === void 0 ? !0 : M, j = o.multiple, H = j === void 0 ? !1 : j, F = o.defaultSelectedKeys, k = o.selectedKeys, G = o.onSelect, Y = o.onDeselect, z = o.inlineIndent, Q = z === void 0 ? 24 : z, J = o.motion, K = o.defaultMotions, U = o.triggerSubMenuAction, ee = U === void 0 ? "hover" : U, Z = o.builtinPlacements, le = o.itemIcon, ne = o.expandIcon, se = o.overflowedIndicator, de = se === void 0 ? "..." : se, V = o.overflowedIndicatorPopupClassName, ze = o.getPopupContainer, ye = o.onClick, Te = o.onOpenChange, Et = o.onKeyDown; o.openAnimation, o.openTransitionName; var Xe = o._internalRenderMenuItem, Fe = o._internalRenderSubMenuItem, et = o._internalComponents, tt = me(o, la), Dt = a.useMemo(function() { return [Un(f, g, Me, et), Un(f, g, Me, {})]; }, [f, g, et]), nt = re(Dt, 2), pe = nt[0], Ot = nt[1], Pt = a.useState(!1), ot = re(Pt, 2), rt = ot[0], Rt = ot[1], be = a.useRef(), Be = Fi(v), xe = d === "rtl", ke = We(P, { value: N, postState: function(T) { return T || Me; } }), De = re(ke, 2), oe = De[0], ge = De[1], Nt = function(T) { var q = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1; function ce() { ge(T), Te == null || Te(T); } q ? yr.flushSync(ce) : ce(); }, Xo = a.useState(oe), vn = re(Xo, 2), Fo = vn[0], ko = vn[1], Lt = a.useRef(!1), Go = a.useMemo(function() { return (b === "inline" || b === "vertical") && E ? ["vertical", E] : [b, !1]; }, [b, E]), pn = re(Go, 2), it = pn[0], Ht = pn[1], hn = it === "inline", Qo = a.useState(it), bn = re(Qo, 2), Ce = bn[0], Uo = bn[1], Yo = a.useState(Ht), Cn = re(Yo, 2), qo = Cn[0], Ko = Cn[1]; a.useEffect(function() { Uo(it), Ko(Ht), Lt.current && (hn ? ge(Fo) : Nt(Me)); }, [it, Ht]); var Wo = a.useState(0), wn = re(Wo, 2), at = wn[0], Jo = wn[1], jt = at >= pe.length - 1 || Ce !== "horizontal" || w; a.useEffect(function() { hn && ko(oe); }, [oe]), a.useEffect(function() { return Lt.current = !0, function() { Lt.current = !1; }; }, []); var Se = Ti(), In = Se.registerPath, yn = Se.unregisterPath, Vo = Se.refreshOverflowKeys, Bn = Se.isSubPathKey, $o = Se.getKeyPath, xn = Se.getKeys, Zo = Se.getSubPathKeys, _o = a.useMemo(function() { return { registerPath: In, unregisterPath: yn }; }, [In, yn]), er = a.useMemo(function() { return { isSubPathKey: Bn }; }, [Bn]); a.useEffect(function() { Vo(jt ? Me : pe.slice(at + 1).map(function($) { return $.key; })); }, [at, jt]); var tr = We(O || C && ((t = pe[0]) === null || t === void 0 ? void 0 : t.key), { value: O }), Sn = re(tr, 2), Ge = Sn[0], zt = Sn[1], nr = Ke(function($) { zt($); }), or = Ke(function() { zt(void 0); }); a.useImperativeHandle(n, function() { return { list: be.current, focus: function(T) { var q, ce = xn(), ue = $t(ce, Be), At = ue.elements, Tt = ue.key2element, gr = ue.element2key, Dn = an(be.current, At), On = Ge ?? (Dn[0] ? gr.get(Dn[0]) : (q = pe.find(function(mr) { return !mr.props.disabled; })) === null || q === void 0 ? void 0 : q.key), Qe = Tt.get(On); if (On && Qe) { var Xt; Qe == null || (Xt = Qe.focus) === null || Xt === void 0 || Xt.call(Qe, T); } } }; }); var rr = We(F || [], { value: k, // Legacy convert key to array postState: function(T) { return Array.isArray(T) ? T : T == null ? Me : [T]; } }), Mn = re(rr, 2), lt = Mn[0], ir = Mn[1], ar = function(T) { if (R) { var q = T.key, ce = lt.includes(q), ue; H ? ce ? ue = lt.filter(function(Tt) { return Tt !== q; }) : ue = [].concat(we(lt), [q]) : ue = [q], ir(ue); var At = te(te({}, T), {}, { selectedKeys: ue }); ce ? Y == null || Y(At) : G == null || G(At); } !H && oe.length && Ce !== "inline" && Nt(Me); }, lr = Ke(function($) { ye == null || ye(mt($)), ar($); }), En = Ke(function($, T) { var q = oe.filter(function(ue) { return ue !== $; }); if (T) q.push($); else if (Ce !== "inline") { var ce = Zo($); q = q.filter(function(ue) { return !ce.has(ue); }); } no(oe, q, !0) || Nt(q, !0); }), Ar = function(T, q) { var ce = q ?? !oe.includes(T); En(T, ce); }, sr = Hi(Ce, Ge, xe, Be, be, xn, $o, zt, Ar, Et); a.useEffect(function() { Rt(!0); }, []); var cr = a.useMemo(function() { return { _internalRenderMenuItem: Xe, _internalRenderSubMenuItem: Fe }; }, [Xe, Fe]), ur = Ce !== "horizontal" || w ? pe : ( // Need wrap for overflow dropdown that do not response for open pe.map(function($, T) { return ( // Always wrap provider to avoid sub node re-mount /* @__PURE__ */ a.createElement(Ve, { key: $.key, overflowDisabled: T > at }, $) ); }) ), dr = /* @__PURE__ */ a.createElement(Je, _({ id: v, ref: be, prefixCls: "".concat(i, "-overflow"), component: "ul", itemComponent: yt, className: X(i, "".concat(i, "-root"), "".concat(i, "-").concat(Ce), c, (r = {}, W(r, "".concat(i, "-inline-collapsed"), qo), W(r, "".concat(i, "-rtl"), xe), r), A), dir: d, style: s, role: "menu", tabIndex: u, data: ur, renderRawItem: function(T) { return T; }, renderRawRest: function(T) { var q = T.length, ce = q ? pe.slice(-q) : null; return /* @__PURE__ */ a.createElement(Bt, { eventKey: Zt, title: de, disabled: jt, internalPopupClose: q === 0, popupClassName: V }, ce); }, maxCount: Ce !== "horizontal" || w ? Je.INVALIDATE : Je.RESPONSIVE, ssr: "full", "data-menu-list": !0, onVisibleChange: function(T) { Jo(T); }, onKeyDown: sr }, tt)); return /* @__PURE__ */ a.createElement(rn.Provider, { value: cr }, /* @__PURE__ */ a.createElement(po.Provider, { value: Be }, /* @__PURE__ */ a.createElement(Ve, { prefixCls: i, rootClassName: A, mode: Ce, openKeys: oe, rtl: xe, disabled: I, motion: rt ? J : null, defaultMotions: rt ? K : null, activeKey: Ge, onActive: nr, onInactive: or, selectedKeys: lt, inlineIndent: Q, subMenuOpenDelay: p, subMenuCloseDelay: D, forceSubMenuRender: y, builtinPlacements: Z, triggerSubMenuAction: ee, getPopupContainer: ze, itemIcon: le, expandIcon: ne, onItemClick: lr, onOpenChange: En }, /* @__PURE__ */ a.createElement(Io.Provider, { value: er }, dr), /* @__PURE__ */ a.createElement("div", { style: { display: "none" }, "aria-hidden": !0 }, /* @__PURE__ */ a.createElement(Co.Provider, { value: _o }, Ot))))); }), Ze = Aa; Ze.Item = yt; Ze.SubMenu = Bt; Ze.ItemGroup = un; Ze.Divider = cn; var sa = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, name: "bars", theme: "outlined" }, ca = function(n, t) { return /* @__PURE__ */ a.createElement(pt, _({}, n, { ref: t, icon: sa })); }, ua = /* @__PURE__ */ a.forwardRef(ca), da = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z" } }] }, name: "left", theme: "outlined" }, ga = function(n, t) { return /* @__PURE__ */ a.createElement(pt, _({}, n, { ref: t, icon: da })); }, Yn = /* @__PURE__ */ a.forwardRef(ga); const ma = (e) => !isNaN(parseFloat(e)) && isFinite(e), Eo = /* @__PURE__ */ a.createContext({ siderHook: { addSider: () => null, removeSider: () => null } }); var fa = function(e, n) { var t = {}; for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && n.indexOf(r) < 0 && (t[r] = e[r]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, r = Object.getOwnPropertySymbols(e); o < r.length; o++) n.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (t[r[o]] = e[r[o]]); return t; }; const qn = { xs: "479.98px", sm: "575.98px", md: "767.98px", lg: "991.98px", xl: "1199.98px", xxl: "1599.98px" }, xt = /* @__PURE__ */ a.createContext({}), va = /* @__PURE__ */ (() => { let e = 0; return function() { let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ""; return e += 1, `${n}${e}`; }; })(), dn = /* @__PURE__ */ a.forwardRef((e, n) => { const { prefixCls: t, className: r, trigger: o, children: l, defaultCollapsed: i = !1, theme: A = "dark", style: s = {}, collapsible: c = !1, reverseArrow: m = !1, width: u = 200, collapsedWidth: g = 80, zeroWidthTriggerStyle: f, breakpoint: d, onCollapse: v, onBreakpoint: h } = e, b = fa(e, ["prefixCls", "className", "trigger", "children", "defaultCollapsed", "theme", "style", "collapsible", "reverseArrow", "width", "collapsedWidth", "zeroWidthTriggerStyle", "breakpoint", "onCollapse", "onBreakpoint"]), { siderHook: E } = a.useContext(Eo), [I, w] = a.useState("collapsed" in e ? e.collapsed : i), [S, p] = a.useState(!1); a.useEffect(() => { "collapsed" in e && w(e.collapsed); }, [e.collapsed]); const x = (C, M) => { "collapsed" in e || w(C), v == null || v(C, M); }, D = a.useRef(); D.current = (C) => { p(C.matches), h == null || h(C.matches), I !== C.matches && x(C.matches, "responsive"); }, a.useEffect(() => { function C(R) { return D.current(R); } let M; if (typeof window < "u") { const { matchMedia: R } = window; if (R && d && d in qn) { M = R(`screen and (max-width: ${qn[d]})`); try { M.addEventListener("change", C); } catch { M.addListener(C); } C(M); } } return () => { try { M == null || M.removeEventListener("change", C); } catch { M == null || M.removeListener(C); } }; }, [d]), a.useEffect(() => { const C = va("ant-sider-"); return E.addSider(C), () => E.removeSider(C); }, []); const y = () => { x(!I, "clickTrigger"); }, { getPrefixCls: P } = a.useContext(he), N = () => { const C = P("layout-sider", t), M = Ie(b, ["collapsed"]), R = I ? g : u, j = ma(R) ? `${R}px` : String(R), H = parseFloat(String(g || 0)) === 0 ? /* @__PURE__ */ a.createElement("span", { onClick: y, className: X(`${C}-zero-width-trigger`, `${C}-zero-width-trigger-${m ? "right" : "left"}`), style: f }, o || /* @__PURE__ */ a.createElement(ua, null)) : null, G = { expanded: m ? /* @__PURE__ */ a.createElement(Kt, null) : /* @__PURE__ */ a.createElement(Yn, null), collapsed: m ? /* @__PURE__ */ a.createElement(Yn, null) : /* @__PURE__ */ a.createElement(Kt, null) }[I ? "collapsed" : "expanded"], Y = o !== null ? H || /* @__PURE__ */ a.createElement("div", { className: `${C}-trigger`, onClick: y, style: { width: j } }, o || G) : null, z = Object.assign(Object.assign({}, s), { flex: `0 0 ${j}`, maxWidth: j, minWidth: j, width: j }), Q = X(C, `${C}-${A}`, { [`${C}-collapsed`]: !!I, [`${C}-has-trigger`]: c && o !== null && !H, [`${C}-below`]: !!S, [`${C}-zero-width`]: parseFloat(j) === 0 }, r); return /* @__PURE__ */ a.createElement("aside", Object.assign({ className: Q }, M, { style: z, ref: n }), /* @__PURE__ */ a.createElement("div", { className: `${C}-children` }, l), c || S && H ? Y : null); }, O = a.useMemo(() => ({ siderCollapsed: I }), [I]); return /* @__PURE__ */ a.createElement(xt.Provider, { value: O }, N()); }); var pa = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, name: "ellipsis", theme: "outlined" }, ha = function(n, t) { return /* @__PURE__ */ a.createElement(pt, _({}, n, { ref: t, icon: pa })); }, Do = /* @__PURE__ */ a.forwardRef(ha); const ft = /* @__PURE__ */ a.createContext({ prefixCls: "", firstLevel: !0, inlineCollapsed: !1 }); var ba = function(e, n) { var t = {}; for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && n.indexOf(r) < 0 && (t[r] = e[r]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, r = Object.getOwnPropertySymbols(e); o < r.length; o++) n.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (t[r[o]] = e[r[o]]); return t; }; const Oo = (e) => { const { prefixCls: n, className: t, dashed: r } = e, o = ba(e, ["prefixCls", "className", "dashed"]), { getPrefixCls: l } = a.useContext(he), i = l("menu", n), A = X({ [`${i}-item-divider-dashed`]: !!r }, t); return /* @__PURE__ */ a.createElement(cn, Object.assign({ className: A }, o)); }, Po = (e) => { var n; const { className: t, children: r, icon: o, title: l, danger: i } = e, { prefixCls: A, firstLevel: s, direction: c, disableMenuItemTitleTooltip: m, inlineCollapsed: u } = a.useContext(ft), g = (E) => { const I = /* @__PURE__ */ a.createElement("span", { className: `${A}-title-content` }, r); return (!o || /* @__PURE__ */ a.isValidElement(r) && r.type === "span") && r && E && s && typeof r == "string" ? /* @__PURE__ */ a.createElement("div", { className: `${A}-inline-collapsed-noicon` }, r.charAt(0)) : I; }, { siderCollapsed: f } = a.useContext(xt); let d = l; typeof l > "u" ? d = s ? r : "" : l === !1 && (d = ""); const v = { title: d }; !f && !u && (v.title = null, v.open = !1); const h = ht(r).length; let b = /* @__PURE__ */ a.createElement(yt, Object.assign({}, Ie(e, ["title", "icon", "danger"]), { className: X({ [`${A}-item-danger`]: i, [`${A}-item-only-child`]: (o ? h + 1 : h) === 1 }, t), title: typeof l == "string" ? l : void 0 }), bt(o, { className: X(/* @__PURE__ */ a.isValidElement(o) ? (n = o.props) === null || n === void 0 ? void 0 : n.className : "", `${A}-item-icon`) }), g(u)); return m || (b = /* @__PURE__ */ a.createElement(ii, Object.assign({}, v, { placement: c === "rtl" ? "left" : "right", overlayClassName: `${A}-inline-collapsed-tooltip` }), b)), b; }; var Ca = function(e, n) { var t = {}; for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && n.indexOf(r) < 0 && (t[r] = e[r]); if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, r = Object.getOwnPropertySymbols(e); o < r.length; o++) n.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (t[r[o]] = e[r[o]]); return t; }; const vt = /* @__PURE__ */ a.createContext(null), wa = /* @__PURE__ */ a.forwardRef((e, n) => { const { children: t } = e, r = Ca(e, ["children"]), o = a.useContext(vt), l = a.useMemo(() => Object.assign(Object.assign({}, o), r), [ o, r.prefixCls, // restProps.expandIcon, Not mark as deps since this is a ReactNode r.mode, r.selectable, r.rootClassName // restProps.validator, Not mark as deps since this is a function ]), i = Br(t), A = ro(n, i ? t.ref : null); return /* @__PURE__ */ a.createElement(vt.Provider, { value: l }, /* @__PURE__ */ a.createElement(xr, { space: !0 }, i ? /* @__PURE__ */ a.cloneElement(t, { ref: A }) : t)); }), Ia = (e) => { const { componentCls: n, motionDurationSlow: t, horizontalLineHeight: r, colorSplit: o, lineWidth: l, lineType: i, itemPaddingInline: A } = e; return { [`${n}-horizontal`]: { lineHeight: r, border: 0, borderBottom: `${L(l)} ${i} ${o}`, boxShadow: "none", "&::after": { display: "block", clear: "both", height: 0, content: '"\\20"' }, // ======================= Item ======================= [`${n}-item, ${n}-submenu`]: { position: "relative", display: "inline-block", verticalAlign: "bottom", paddingInline: A }, [`> ${n}-item:hover, > ${n}-item-active, > ${n}-submenu ${n}-submenu-title:hover`]: { backgroundColor: "transparent" }, [`${n}-item, ${n}-submenu-title`]: { transition: [`border-color ${t}`, `background ${t}`].join(",") }, // ===================== Sub Menu ===================== [`${n}-submenu-arrow`]: { display: "none" } } }; }, ya = (e) => { let { componentCls: n, menuArrowOffset: t, calc: r } = e; return { [`${n}-rtl`]: { direction: "rtl" }, [`${n}-submenu-rtl`]: { transformOrigin: "100% 0" }, // Vertical Arrow [`${n}-rtl${n}-vertical, ${n}-submenu-rtl ${n}-vertical`]: { [`${n}-submenu-arrow`]: { "&::before": { transform: `rotate(-45deg) translateY(${L(r(t).mul(-1).equal())})` }, "&::after": { transform: `rotate(45deg) translateY(${L(t)})` } } } }; }, Kn = (e) => Object.assign({}, Sr(e)), Wn = (e, n) => { const { componentCls: t, itemColor: r, itemSelectedColor: o, groupTitleColor: l, itemBg: i, subMenuItemBg: A, itemSelectedBg: s, activeBarHeight: c, activeBarWidth: m, activeBarBorderWidth: u, motionDurationSlow: g, motionEaseInOut: f, motionEaseOut: d, itemPaddingInline: v, motionDurationMid: h, itemHoverColor: b, lineType: E, colorSplit: I, // Disabled itemDisabledColor: w, // Danger dangerItemColor: S, dangerItemHoverColor: p, dangerItemSele