import{i as e,t}from"./rolldown-runtime-BgaNhQyE.js";import{$t as n,B as r,Ct as i,Dr as a,Dt as o,Et as s,Ft as c,G as l,H as u,Jn as d,Jt as f,K as p,Kt as m,Ln as h,N as g,Pn as _,Qt as v,St as y,U as b,V as x,Vn as S,W as C,Wt as w,Zn as T,Zt as E,a as D,c as O,en as k,et as A,fr as j,hr as M,i as N,l as ee,mn as P,n as F,o as te,pr as ne,q as I,qt as L,r as re,s as R,st as z,wr as B,xn as V,xt as ie,yr as ae,yt as oe,z as H,zn as se}from"./jsx-runtime-ADHq9IcL.js";import{b as U,c as W,h as ce,m as G,o as le,s as K,t as q,u as ue,w as de,y as fe}from"./tooltip-CRuv8UNz.js";import{r as pe}from"./ColorPresets-wH0crouI.js";import{n as J,t as me}from"./LeftOutlined-DolIAuof.js";import{t as Y}from"./PurePanel-CKFVxwoF.js";var he=t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={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`}})),X=e(a()),ge=e(he());function Z(){return Z=Object.assign?Object.assign.bind():function(e){for(var t=1;tX.createElement(c,Z({},e,{ref:t,icon:ge.default}))),ve=X.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),ye=e=>{let{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:a,headerPadding:o,headerColor:s,footerPadding:c,fontSize:l,bodyBg:u,headerBg:d}=e;return{[n]:{display:`flex`,flex:`auto`,flexDirection:`column`,minHeight:0,background:u,"&, *":{boxSizing:`border-box`},[`&${n}-has-sider`]:{flexDirection:`row`,[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:`0 0 auto`},"&-rtl":{direction:`rtl`}},[`${n}-header`]:{height:a,padding:o,color:s,lineHeight:_(a),background:d,[`${t}-menu`]:{lineHeight:`inherit`}},[`${n}-footer`]:{padding:c,color:r,fontSize:l,background:i},[`${n}-content`]:{flex:`auto`,color:r,minHeight:0}}},be=e=>{let{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:a,marginXXS:o,colorTextLightSolid:s,colorBgContainer:c}=e,l=r*1.25;return{colorBgHeader:`#001529`,colorBgBody:t,colorBgTrigger:`#002140`,bodyBg:t,headerBg:`#001529`,headerHeight:n*2,headerPadding:`0 ${l}px`,headerColor:i,footerPadding:`${a}px ${l}px`,footerBg:t,siderBg:`#001529`,triggerHeight:r+o*2,triggerBg:`#002140`,triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:i}},xe=[[`colorBgBody`,`bodyBg`],[`colorBgHeader`,`headerBg`],[`colorBgTrigger`,`triggerBg`]],Se=w(`Layout`,ye,be,{deprecatedTokens:xe}),Ce=w([`Layout`,`Sider`],e=>{let{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:i,antCls:a,triggerHeight:o,triggerColor:s,triggerBg:c,headerHeight:l,zeroTriggerWidth:u,zeroTriggerHeight:d,borderRadiusLG:f,lightSiderBg:p,lightTriggerColor:m,lightTriggerBg:h,bodyBg:g}=e;return{[t]:{position:`relative`,minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:o},"&-right":{order:1},[`${t}-children`]:{height:`100%`,marginTop:-.1,paddingTop:.1,[`${a}-menu${a}-menu-inline-collapsed`]:{width:`auto`}},[`&-zero-width ${t}-children`]:{overflow:`hidden`},[`${t}-trigger`]:{position:`fixed`,bottom:0,zIndex:1,height:o,color:s,lineHeight:_(o),textAlign:`center`,background:c,cursor:`pointer`,transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:`absolute`,top:l,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:d,color:s,fontSize:e.fontSizeXL,display:`flex`,alignItems:`center`,justifyContent:`center`,background:n,borderRadius:`0 ${_(f)} ${_(f)} 0`,cursor:`pointer`,transition:`background-color ${i} ease`,"&::after":{position:`absolute`,inset:0,background:`transparent`,transition:`all ${i}`,content:`""`},"&:hover::after":{background:`rgba(255, 255, 255, 0.2)`},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderRadius:`${_(f)} 0 0 ${_(f)}`}},"&-light":{background:p,[`${t}-trigger`]:{color:m,background:h},[`${t}-zero-width-trigger`]:{color:m,background:h,border:`1px solid ${g}`,borderInlineStart:0}}}}},be,{deprecatedTokens:xe}),we={xs:`479.98px`,sm:`575.98px`,md:`767.98px`,lg:`991.98px`,xl:`1199.98px`,xxl:`1599.98px`,xxxl:`1839.98px`},Te=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),Q=X.createContext({}),Ee=(()=>{let e=0;return(t=``)=>(e+=1,`${t}${e}`)})(),De=X.forwardRef((e,t)=>{let{prefixCls:n,className:r,trigger:a,children:o,defaultCollapsed:s=!1,theme:c=`dark`,style:l={},collapsible:u=!1,reverseArrow:d=!1,width:f=200,collapsedWidth:p=80,zeroWidthTriggerStyle:m,breakpoint:_,onCollapse:v,onBreakpoint:y,classNames:b,styles:x,...C}=e,{siderHook:w}=(0,X.useContext)(ve),[E,D]=(0,X.useState)(`collapsed`in e?e.collapsed:s),[O,k]=(0,X.useState)(!1);(0,X.useEffect)(()=>{`collapsed`in e&&D(e.collapsed)},[e.collapsed]);let A=(t,n)=>{`collapsed`in e||D(t),v?.(t,n)},j={...e,collapsed:E,defaultCollapsed:s,theme:c,style:l,collapsible:u,reverseArrow:d,width:f,collapsedWidth:p,zeroWidthTriggerStyle:m,breakpoint:_,onCollapse:v,onBreakpoint:y},[M,N]=ie([b],[x],{props:j}),{getPrefixCls:ee,direction:P}=(0,X.useContext)(h),F=ee(`layout-sider`,n),[te,ne]=Ce(F),I=(0,X.useRef)(null);I.current=e=>{k(e.matches),y?.(e.matches),E!==e.matches&&A(e.matches,`responsive`)},(0,X.useEffect)(()=>{function e(e){return I.current?.(e)}let t;return window?.matchMedia!==void 0&&_&&_ in we&&(t=window.matchMedia(`screen and (max-width: ${we[_]})`),i(t?.addEventListener)&&t.addEventListener(`change`,e),e(t)),()=>{i(t?.removeEventListener)&&t.removeEventListener(`change`,e)}},[_]),(0,X.useEffect)(()=>{let e=Ee(`ant-sider-`);return w.addSider(e),()=>w.removeSider(e)},[]);let L=()=>{A(!E,`clickTrigger`)},re=T(C,[`collapsed`]),R=E?p:f,z=Te(R)?`${R}px`:String(R),B=Number.parseFloat(String(p||0))===0?X.createElement(`span`,{onClick:L,className:S(`${F}-zero-width-trigger`,`${F}-zero-width-trigger-${d?`right`:`left`}`),style:m},a||X.createElement(_e,null)):null,V=P===`rtl`==!d,ae={expanded:V?X.createElement(g,null):X.createElement(me,null),collapsed:V?X.createElement(me,null):X.createElement(g,null)}[E?`collapsed`:`expanded`],oe=a===null?null:B||X.createElement(`div`,{className:`${F}-trigger`,onClick:L,style:{width:z}},a||ae),H={...l,flex:`0 0 ${z}`,maxWidth:z,minWidth:z,width:z},se=S(F,`${F}-${c}`,{[`${F}-collapsed`]:!!E,[`${F}-has-trigger`]:u&&a!==null&&!B,[`${F}-below`]:!!O,[`${F}-zero-width`]:Number.parseFloat(z)===0},r,M.root,te,ne),U=X.useMemo(()=>({siderCollapsed:E}),[E]);return X.createElement(Q.Provider,{value:U},X.createElement(`aside`,{className:se,...re,style:{...N.root,...H},ref:t},X.createElement(`div`,{className:S(`${F}-children`,M.body),style:N.body},o),u||O&&B?oe:null))}),Oe=(0,X.createContext)({prefixCls:``,firstLevel:!0,inlineCollapsed:!1,styles:null,classNames:null}),ke=e=>{let{prefixCls:t,className:n,dashed:r,...i}=e,{getPrefixCls:a}=X.useContext(h),o=S({[`${a(`menu`,t)}-item-divider-dashed`]:!!r},n);return X.createElement(D,{className:o,...i})},Ae=e=>{let{className:t,children:n,icon:r,title:a,danger:o,extra:s}=e,{prefixCls:c,firstLevel:l,direction:u,disableMenuItemTitleTooltip:f,tooltip:p,inlineCollapsed:m,styles:h,classNames:g}=X.useContext(Oe),_=e=>{let t=n?.[0],i=X.createElement(`span`,{className:S(`${c}-title-content`,l?g?.itemContent:g?.subMenu?.itemContent,{[`${c}-title-content-with-extra`]:!!s||s===0}),style:l?h?.itemContent:h?.subMenu?.itemContent},n);return(!r||X.isValidElement(n)&&n.type===`span`)&&n&&e&&l&&typeof t==`string`?X.createElement(`div`,{className:`${c}-inline-collapsed-noicon`},t.charAt(0)):i},{siderCollapsed:v}=X.useContext(Q),y=a;a===void 0?y=l?n:``:a===!1&&(y=``);let b=p===!1?void 0:p,x=b&&b.title!==void 0?b.title:y,C={...b??null,title:x};!v&&!m&&(C.title=null,C.open=!1);let w=d(n).length,E=X.createElement(R,{...T(e,[`title`,`icon`,`danger`]),className:S(l?g?.item:g?.subMenu?.item,{[`${c}-item-danger`]:o,[`${c}-item-only-child`]:(r?w+1:w)===1},t),style:{...l?h?.item:h?.subMenu?.item,...e.style},title:typeof a==`string`?a:void 0,itemData:e?.itemData??{...e,key:e.eventKey}},z(r,e=>({className:S(`${c}-item-icon`,l?g?.itemIcon:g?.subMenu?.itemIcon,e.className),style:{...l?h?.itemIcon:h?.subMenu?.itemIcon,...e.style}})),_(m));if(!f&&p!==!1){let e=b&&b.placement?b.placement:u===`rtl`?`left`:`right`,t=`${c}-inline-collapsed-tooltip`,n=e=>({...e,root:S(t,e?.root)}),r=i(b?.classNames)?e=>{let t=b.classNames(e);return n(t)}:n(b?.classNames);E=X.createElement(q,{...C,placement:e,classNames:r},E)}return E},je=X.createContext(null),Me=X.forwardRef((e,t)=>{let{children:n,...r}=e,i=X.useContext(je),a=X.useMemo(()=>({...i,...r}),[i,r.prefixCls,r.mode,r.selectable,r.rootClassName]),o=ne(n),s=M(t,o?j(n):null);return X.createElement(je.Provider,{value:a},X.createElement(G,{space:!0},o?X.cloneElement(n,{ref:s}):n))}),Ne=e=>{let{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:i,lineWidth:a,lineType:o,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${_(a)} ${o} ${i}`,boxShadow:`none`,"&::after":{display:`block`,clear:`both`,height:0,content:`"\\20"`},[`${t}-item, ${t}-submenu`]:{position:`relative`,display:`inline-block`,verticalAlign:`bottom`,paddingInline:s},[`> ${t}-item:hover, > ${t}-item-active, > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:`transparent`},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color`,`background-color`].map(e=>`${e} ${n}`).join(`,`)},[`${t}-submenu-arrow`]:{display:`none`}}}},Pe=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${e}-rtl`]:{direction:`rtl`},[`${e}-submenu-rtl`]:{transformOrigin:`100% 0`},[`${e}-rtl${e}-vertical, ${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${_(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${_(t)})`}}}}),Fe=e=>L(e),Ie=(e,t)=>{let{componentCls:n,itemColor:r,itemSelectedColor:i,subMenuItemSelectedColor:a,groupTitleColor:o,itemBg:s,subMenuItemBg:c,itemSelectedBg:l,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:f,motionDurationSlow:p,motionEaseInOut:m,motionEaseOut:h,itemPaddingInline:g,motionDurationMid:v,itemHoverColor:y,lineType:b,colorSplit:x,itemDisabledColor:S,dangerItemColor:C,dangerItemHoverColor:w,dangerItemSelectedColor:T,dangerItemActiveBg:E,dangerItemSelectedBg:D,popupBg:O,itemHoverBg:k,itemActiveBg:A,menuSubMenuBg:j,horizontalItemSelectedColor:M,horizontalItemSelectedBg:N,horizontalItemBorderRadius:ee,horizontalItemHoverBg:P}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:s,[`&${n}-root:focus-visible`]:{...Fe(e)},[`${n}-item`]:{"&-group-title, &-extra":{color:o}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:a},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:{...Fe(e)}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${S} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:y}},[`${n}-submenu:not(${n}-submenu-selected)`]:{[`> ${n}-submenu-title:hover`]:{color:y}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:k},"&:active":{backgroundColor:A}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:k},"&:active":{backgroundColor:A}}},[`${n}-item-danger`]:{color:C,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:w}},[`&${n}-item:active`]:{background:E}},[`${n}-item a`]:{"&, &:hover":{color:`inherit`}},[`${n}-item-selected`]:{color:i,[`&${n}-item-danger`]:{color:T},"a, a:hover":{color:`inherit`}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:D}},[`&${n}-submenu > ${n}`]:{backgroundColor:j},[`&${n}-popup > ${n}`]:{backgroundColor:O},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:O},[`&${n}-horizontal`]:{...t===`dark`?{borderBottom:0}:{},[`> ${n}-item, > ${n}-submenu`]:{top:f,marginTop:e.calc(f).mul(-1).equal(),marginBottom:0,borderRadius:ee,"&::after":{position:`absolute`,insetInline:g,bottom:0,borderBottom:`${_(u)} solid transparent`,transition:`border-color ${p} ${m}`,content:`""`},"&:hover, &-active, &-open":{background:P,"&::after":{borderBottomWidth:u,borderBottomColor:M}},"&-selected":{color:M,backgroundColor:N,"&:hover":{backgroundColor:N},"&::after":{borderBottomWidth:u,borderBottomColor:M}}}},[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${_(f)} ${b} ${x}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:c},[`${n}-item`]:{position:`relative`,"&::after":{position:`absolute`,insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${_(d)} solid ${i}`,transform:`scaleY(0.0001)`,opacity:0,transition:[`transform`,`opacity`].map(e=>`${e} ${v} ${h}`).join(`,`),content:`""`},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:T}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:`scaleY(1)`,opacity:1,transition:[`transform`,`opacity`].map(e=>`${e} ${v} ${m}`).join(`,`)}}}}}},Le=e=>{let{componentCls:t,itemHeight:n,itemMarginInline:r,padding:i,menuArrowSize:a,marginXS:o,itemMarginBlock:s,itemWidth:c,itemPaddingInline:l}=e,u=e.calc(a).add(i).add(o).equal();return{[`${t}-item`]:{position:`relative`,overflow:`hidden`},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:_(n),paddingInline:l,overflow:`hidden`,textOverflow:`ellipsis`,marginInline:r,marginBlock:s,width:c},[`> ${t}-item, > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:_(n)},[`${t}-item-group-list ${t}-submenu-title, ${t}-submenu-title`]:{paddingInlineEnd:u}}},Re=e=>{let{componentCls:t,iconCls:r,itemHeight:i,colorTextLightSolid:a,dropdownWidth:o,controlHeightLG:s,motionEaseOut:c,padding:l,paddingXL:u,itemMarginInline:d,fontSizeLG:f,motionDurationFast:p,motionDurationSlow:m,paddingXS:h,boxShadowSecondary:g,collapsedWidth:v,collapsedIconSize:y}=e,b={height:i,lineHeight:_(i),listStylePosition:`inside`,listStyleType:`disc`};return[{[t]:{"&-inline, &-vertical":{[`&${t}-root`]:{boxShadow:`none`},...Le(e)}},[`${t}-submenu-popup`]:{[`${t}-vertical`]:{...Le(e),boxShadow:g}}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:o,maxHeight:`calc(100vh - ${_(e.calc(s).mul(2.5).equal())})`,padding:`0`,overflow:`hidden`,borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:`hidden`,overflowY:`auto`}}},{[`${t}-inline`]:{width:`100%`,[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:`flex`,alignItems:`center`,transition:[`border-color ${m}`,`background-color ${m}`,`padding ${p} ${c}`].join(`,`),[`> ${t}-title-content`]:{flex:`auto`,minWidth:0,overflow:`hidden`,textOverflow:`ellipsis`},"> *":{flex:`none`}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:`none`,[`& > ${t}-submenu > ${t}-submenu-title`]:b,[`& ${t}-item-group-title`]:{paddingInlineStart:u}},[`${t}-item`]:b}},{[`${t}-inline-collapsed`]:{width:v,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:f,textAlign:`center`,width:`100%`}}},[`> ${t}-item, > ${t}-item-group > ${t}-item-group-list > ${t}-item, > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title, > ${t}-submenu > ${t}-submenu-title`]:{display:`flex`,alignItems:`center`,justifyContent:`flex-start`,insetInlineStart:0,paddingInline:`calc(50% - ${_(e.calc(y).div(2).equal())} - ${_(d)})`,textOverflow:`clip`,[` ${t}-submenu-arrow, ${t}-submenu-expand-icon `]:{opacity:0},[`> ${t}-title-content`]:{width:0,opacity:0,overflow:`hidden`},[`${t}-item-icon, ${r}`]:{margin:0,fontSize:y,lineHeight:_(i),"+ span":{display:`inline-block`,width:0,opacity:0,overflow:`hidden`,marginInlineStart:0}}},[`${t}-item-icon, ${r}`]:{display:`inline-block`},"&-tooltip":{pointerEvents:`none`,[`${t}-item-icon, ${r}`]:{display:`none`},[`${t}-item-extra`]:{paddingInlineStart:l},"a, a:hover":{color:a}},[`${t}-item-group-title`]:{...n,paddingInline:h}}}]},ze=e=>{let{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:i,motionEaseOut:a,iconCls:o,iconSize:s,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:`relative`,display:`block`,margin:0,whiteSpace:`nowrap`,cursor:`pointer`,transition:[`border-color ${n}`,`background-color ${n}`,`padding calc(${n} + 0.1s) ${i}`].join(`,`),[`${t}-item-icon, ${o}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${a}`,`margin ${n} ${i}`,`color ${n}`].join(`,`),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${i}`,`margin ${n}`,`color ${n}`].join(`,`)}},[`${t}-item-icon`]:{...v()},[`&${t}-item-only-child`]:{[`> ${o}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:`none !important`,cursor:`not-allowed`,"&::after":{borderColor:`transparent !important`},a:{color:`inherit !important`,cursor:`not-allowed`,pointerEvents:`none`},[`> ${t}-submenu-title`]:{color:`inherit !important`,cursor:`not-allowed`}}}},Be=e=>{let{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:i,menuArrowSize:a,menuArrowOffset:o}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:`absolute`,top:`50%`,insetInlineEnd:e.margin,width:a,color:`currentcolor`,transform:`translateY(-50%)`,transition:[`transform`,`opacity`].map(e=>`${e} ${n}`).join(`,`)},"&-arrow":{"&::before, &::after":{position:`absolute`,width:e.calc(a).mul(.6).equal(),height:e.calc(a).mul(.15).equal(),backgroundColor:`currentcolor`,borderRadius:i,transition:[`background-color`,`transform`,`top`,`color`].map(e=>`${e} ${n} ${r}`).join(`,`),content:`""`},"&::before":{transform:`rotate(45deg) translateY(${_(e.calc(o).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${_(o)})`}}}}},Ve=e=>{let{antCls:t,componentCls:r,fontSize:i,motionDurationSlow:a,motionDurationMid:o,motionEaseInOut:s,paddingXS:c,padding:l,colorSplit:u,lineWidth:d,zIndexPopup:f,borderRadiusLG:p,subMenuItemBorderRadius:h,menuArrowSize:g,menuArrowOffset:v,lineType:y,groupTitleLineHeight:b,groupTitleFontSize:x,iconSize:S,iconMarginInlineEnd:C}=e,w=[`> ${t}-typography-ellipsis-single-line`,`> ${r}-item-label > ${t}-typography-ellipsis-single-line`].join(`,`);return[{"":{[r]:{...m(),"&-hidden":{display:`none`}}},[`${r}-submenu-hidden`]:{display:`none`}},{[r]:{...E(e),...m(),marginBottom:0,paddingInlineStart:0,fontSize:i,lineHeight:0,listStyle:`none`,outline:`none`,transition:`width ${a} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:`none`},"&-overflow":{display:`flex`,[`${r}-item`]:{flex:`none`}},[`${r}-item, ${r}-submenu, ${r}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${r}-item-group-title`]:{padding:`${_(c)} ${_(l)}`,fontSize:x,lineHeight:b,transition:`all ${a}`},[`&-horizontal ${r}-submenu`]:{transition:[`border-color`,`background-color`].map(e=>`${e} ${a} ${s}`).join(`,`)},[`${r}-submenu, ${r}-submenu-inline`]:{transition:[`border-color ${a}`,`background-color ${a}`,`padding ${o}`].map(e=>`${e} ${s}`).join(`,`)},[`${r}-submenu ${r}-sub`]:{cursor:`initial`,transition:[`background-color`,`padding`].map(e=>`${e} ${a} ${s}`).join(`,`)},[`${r}-title-content`]:{transition:`color ${a}`,"&-with-extra":{display:`inline-flex`,alignItems:`center`,width:`100%`,minWidth:0},[`${r}-item-label`]:{flex:`auto`,minWidth:0,...n},[w]:{display:`inline`,verticalAlign:`unset`},[`${r}-item-extra`]:{flex:`none`,marginInlineStart:`auto`,paddingInlineStart:e.padding}},[`${r}-item-icon + ${r}-title-content-with-extra`]:{width:`calc(100% - ${_(e.calc(S).add(C??0).equal())})`},[`${r}-item a`]:{"&::before":{position:`absolute`,inset:0,backgroundColor:`transparent`,content:`""`}},[`${r}-item-divider`]:{overflow:`hidden`,lineHeight:0,borderColor:u,borderStyle:y,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:`dashed`}},...ze(e),[`${r}-item-group`]:{[`${r}-item-group-list`]:{margin:0,padding:0,[`${r}-item, ${r}-submenu-title`]:{paddingInline:`${_(e.calc(i).mul(2).equal())} ${_(l)}`}}},"&-submenu":{"&-popup":{position:`absolute`,zIndex:f,borderRadius:p,boxShadow:`none`,transformOrigin:`0 0`,[`&${r}-submenu`]:{background:`transparent`},"&::before":{position:`absolute`,inset:0,zIndex:-1,width:`100%`,height:`100%`,opacity:0,content:`""`},[`> ${r}`]:{borderRadius:p,...ze(e),...Be(e),[`${r}-item, ${r}-submenu > ${r}-submenu-title`]:{borderRadius:h},[`${r}-submenu-title::after`]:{transition:`transform ${a} ${s}`}}},"&-placement-leftTop, &-placement-bottomRight":{transformOrigin:`100% 0`},"&-placement-leftBottom, &-placement-topRight":{transformOrigin:`100% 100%`},"&-placement-rightBottom, &-placement-topLeft":{transformOrigin:`0 100%`},"&-placement-bottomLeft, &-placement-rightTop":{transformOrigin:`0 0`},"&-placement-leftTop, &-placement-leftBottom":{paddingInlineEnd:e.paddingXS},"&-placement-rightTop, &-placement-rightBottom":{paddingInlineStart:e.paddingXS},"&-placement-topRight, &-placement-topLeft":{paddingBottom:e.paddingXS},"&-placement-bottomRight, &-placement-bottomLeft":{paddingTop:e.paddingXS}},...Be(e),[`&-inline-collapsed ${r}-submenu-arrow, &-inline ${r}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${_(v)})`},"&::after":{transform:`rotate(45deg) translateX(${_(e.calc(v).mul(-1).equal())})`}},[`${r}-submenu-open${r}-submenu-inline > ${r}-submenu-title > ${r}-submenu-arrow`]:{transform:`translateY(${_(e.calc(g).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${_(e.calc(v).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${_(v)})`}}}},{[`${t}-layout-header`]:{[r]:{lineHeight:`inherit`}}}]},He=e=>{let{colorPrimary:t,colorError:n,colorTextDisabled:r,colorErrorBg:i,colorText:a,colorTextDescription:o,colorBgContainer:s,colorFillAlter:c,colorFillContent:l,lineWidth:u,lineWidthBold:d,controlItemBgActive:f,colorBgTextHover:p,controlHeightLG:m,lineHeight:h,colorBgElevated:g,marginXXS:_,padding:v,fontSize:y,controlHeightSM:b,fontSizeLG:x,colorTextLightSolid:S,colorErrorHover:C}=e,w=e.activeBarWidth??0,T=e.activeBarBorderWidth??u,E=e.itemMarginInline??e.marginXXS,D=new P(S).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:a,itemColor:a,colorItemTextHover:a,itemHoverColor:a,colorItemTextHoverHorizontal:t,horizontalItemHoverColor:t,colorGroupTitle:o,groupTitleColor:o,colorItemTextSelected:t,itemSelectedColor:t,subMenuItemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:s,itemBg:s,colorItemBgHover:p,itemHoverBg:p,colorItemBgActive:l,itemActiveBg:f,colorSubItemBg:c,subMenuItemBg:c,colorItemBgSelected:f,itemSelectedBg:f,colorItemBgSelectedHorizontal:`transparent`,horizontalItemSelectedBg:`transparent`,colorActiveBarWidth:0,activeBarWidth:w,colorActiveBarHeight:d,activeBarHeight:d,colorActiveBarBorderSize:u,activeBarBorderWidth:T,colorItemTextDisabled:r,itemDisabledColor:r,colorDangerItemText:n,dangerItemColor:n,colorDangerItemTextHover:n,dangerItemHoverColor:n,colorDangerItemTextSelected:n,dangerItemSelectedColor:n,colorDangerItemBgActive:i,dangerItemActiveBg:i,colorDangerItemBgSelected:i,dangerItemSelectedBg:i,itemMarginInline:E,horizontalItemBorderRadius:0,horizontalItemHoverBg:`transparent`,itemHeight:m,groupTitleLineHeight:h,collapsedWidth:m*2,popupBg:g,itemMarginBlock:_,itemPaddingInline:v,horizontalLineHeight:`${m*1.15}px`,iconSize:y,iconMarginInlineEnd:b-y,collapsedIconSize:x,groupTitleFontSize:y,darkItemDisabledColor:new P(S).setA(.25).toRgbString(),darkItemColor:D,darkDangerItemColor:n,darkItemBg:`#001529`,darkPopupBg:`#001529`,darkSubMenuItemBg:`#000c17`,darkItemSelectedColor:S,darkItemSelectedBg:t,darkDangerItemSelectedBg:n,darkItemHoverBg:`transparent`,darkGroupTitleColor:D,darkItemHoverColor:S,darkDangerItemHoverColor:C,darkDangerItemSelectedColor:S,darkDangerItemActiveBg:n,itemWidth:w?`calc(100% + ${T}px)`:`calc(100% - ${E*2}px)`}},Ue=(e,t=e,n=!0)=>w(`Menu`,e=>{let{colorBgElevated:t,controlHeightLG:n,fontSize:r,darkItemColor:i,darkDangerItemColor:a,darkItemBg:o,darkSubMenuItemBg:s,darkItemSelectedColor:c,darkItemSelectedBg:l,darkDangerItemSelectedBg:u,darkItemHoverBg:d,darkGroupTitleColor:f,darkItemHoverColor:p,darkItemDisabledColor:m,darkDangerItemHoverColor:h,darkDangerItemSelectedColor:g,darkDangerItemActiveBg:_,popupBg:v,darkPopupBg:y}=e,b=e.calc(r).div(7).mul(5).equal(),x=V(e,{menuArrowSize:b,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(b).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:v}),S=V(x,{itemColor:i,itemHoverColor:p,groupTitleColor:f,itemSelectedColor:c,subMenuItemSelectedColor:c,itemBg:o,popupBg:y,subMenuItemBg:s,itemActiveBg:`transparent`,itemSelectedBg:l,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:m,dangerItemColor:a,dangerItemHoverColor:h,dangerItemSelectedColor:g,dangerItemActiveBg:_,dangerItemSelectedBg:u,menuSubMenuBg:s,horizontalItemSelectedColor:c,horizontalItemSelectedBg:l});return[Ve(x),Ne(x),Re(x),Ie(x,`light`),Ie(S,`dark`),Pe(x),pe(x),H(x,`slide-up`),H(x,`slide-down`),ce(x,`zoom-big`)]},He,{deprecatedTokens:[[`colorGroupTitle`,`groupTitleColor`],[`radiusItem`,`itemBorderRadius`],[`radiusSubMenuItem`,`subMenuItemBorderRadius`],[`colorItemText`,`itemColor`],[`colorItemTextHover`,`itemHoverColor`],[`colorItemTextHoverHorizontal`,`horizontalItemHoverColor`],[`colorItemTextSelected`,`itemSelectedColor`],[`colorItemTextSelectedHorizontal`,`horizontalItemSelectedColor`],[`colorItemTextDisabled`,`itemDisabledColor`],[`colorDangerItemText`,`dangerItemColor`],[`colorDangerItemTextHover`,`dangerItemHoverColor`],[`colorDangerItemTextSelected`,`dangerItemSelectedColor`],[`colorDangerItemBgActive`,`dangerItemActiveBg`],[`colorDangerItemBgSelected`,`dangerItemSelectedBg`],[`colorItemBg`,`itemBg`],[`colorItemBgHover`,`itemHoverBg`],[`colorSubItemBg`,`subMenuItemBg`],[`colorItemBgActive`,`itemActiveBg`],[`colorItemBgSelectedHorizontal`,`horizontalItemSelectedBg`],[`colorActiveBarWidth`,`activeBarWidth`],[`colorActiveBarHeight`,`activeBarHeight`],[`colorActiveBarBorderSize`,`activeBarBorderWidth`],[`colorItemBgSelected`,`itemSelectedBg`]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t),We=e=>{let{popupClassName:t,icon:n,title:r,theme:i}=e,a=X.useContext(Oe),{prefixCls:o,inlineCollapsed:s,theme:c,classNames:l,styles:u}=a,d=O(),f;if(!n)f=s&&!d.length&&r&&typeof r==`string`?X.createElement(`div`,{className:`${o}-inline-collapsed-noicon`},r.charAt(0)):X.createElement(`span`,{className:`${o}-title-content`},r);else{let e=X.isValidElement(r)&&r.type===`span`;f=X.createElement(X.Fragment,null,z(n,e=>({className:S(e.className,`${o}-item-icon`,l?.itemIcon),style:{...e.style,...u?.itemIcon}})),e?r:X.createElement(`span`,{className:`${o}-title-content`},r))}let p=X.useMemo(()=>({...a,firstLevel:!1}),[a]),[m]=fe(`Menu`);return X.createElement(Oe.Provider,{value:p},X.createElement(te,{...T(e,[`icon`]),title:f,classNames:{list:l?.subMenu?.list,listTitle:l?.subMenu?.itemTitle},styles:{list:u?.subMenu?.list,listTitle:u?.subMenu?.itemTitle},popupClassName:S(o,t,l?.popup?.root,`${o}-${i||c}`),popupStyle:{zIndex:m,...e.popupStyle,...u?.popup?.root}}))};function Ge(e){return e===null||e===!1}var Ke={item:Ae,submenu:We,divider:ke},qe=(0,X.forwardRef)((e,t)=>{let n=X.useContext(je),r=n||{},{prefixCls:a,className:o,style:s,theme:c=`light`,expandIcon:l,_internalDisableMenuItemTitleTooltip:u,tooltip:d,inlineCollapsed:f,siderCollapsed:p,rootClassName:m,mode:g,selectable:_,onClick:v,overflowedIndicatorPopupClassName:b,classNames:x,styles:C,...w}=e,{menu:E}=X.useContext(h),{getPrefixCls:D,getPopupContainer:O,direction:k,className:j,style:M,classNames:N,styles:ee}=se(`menu`),P=D(),te=T(w,[`collapsedWidth`]);r.validator?.({mode:g});let ne=B((...e)=>{v?.(...e),r.onClick?.()}),I=r.mode||g,L=_??r.selectable,R=f??p,V={...e,mode:I,inlineCollapsed:R,selectable:L,theme:c},ae=y(M),H=y(s),[U,W]=ie([N,x],[ee,ae,C,H],{props:V},{popup:{_default:`root`},subMenu:{_default:`item`}}),ce={horizontal:{motionName:`${P}-slide-up`},inline:A(P),other:{motionName:`${P}-zoom-big`}},G=D(`menu`,a||r.prefixCls),le=oe(G),[K,q]=Ue(G,le,!n),ue=S(`${G}-${c}`,j,o),de=X.useMemo(()=>{if(i(l)||Ge(l))return l||null;if(i(r.expandIcon)||Ge(r.expandIcon))return r.expandIcon||null;if(i(E?.expandIcon)||Ge(E?.expandIcon))return E?.expandIcon||null;let e=l??r?.expandIcon??E?.expandIcon;return z(e,{className:S(`${G}-submenu-expand-icon`,X.isValidElement(e)?e.props?.className:void 0)})},[l,r?.expandIcon,E?.expandIcon,G]),fe=X.useMemo(()=>({prefixCls:G,inlineCollapsed:R||!1,direction:k,firstLevel:!0,theme:c,mode:I,disableMenuItemTitleTooltip:u,tooltip:d,classNames:U,styles:W}),[G,R,k,u,c,I,U,W,d]);return X.createElement(je.Provider,{value:null},X.createElement(Oe.Provider,{value:fe},X.createElement(re,{getPopupContainer:O,overflowedIndicator:X.createElement(F,null),overflowedIndicatorPopupClassName:S(G,`${G}-${c}`,b),classNames:{list:U.list,listTitle:U.itemTitle},styles:{list:W.list,listTitle:W.itemTitle},mode:I,selectable:L,onClick:ne,...te,inlineCollapsed:R,style:W.root,className:ue,prefixCls:G,direction:k,defaultMotions:ce,expandIcon:de,ref:t,rootClassName:S(m,K,r.rootClassName,q,le,U.root),_internalComponents:Ke})))}),$=(0,X.forwardRef)((e,t)=>{let n=(0,X.useRef)(null),r=X.useContext(Q);return(0,X.useImperativeHandle)(t,()=>({menu:n.current,focus:e=>{n.current?.focus(e)}})),X.createElement(qe,{ref:n,...e,...r})});$.Item=Ae,$.SubMenu=We,$.Divider=ke,$.ItemGroup=N;var Je=e=>{let{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:i}=e,a=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:r,"&:hover":{color:i,backgroundColor:r}}}}}},Ye=e=>{let{componentCls:t,menuCls:n,zIndexPopup:i,dropdownArrowDistance:a,sizePopupArrow:o,antCls:s,iconCls:c,motionDurationMid:d,paddingBlock:m,fontSize:h,dropdownEdgeChildPadding:g,colorTextDisabled:v,fontSizeIcon:y,controlPaddingHorizontal:S,colorBgElevated:w,controlHeightLG:T}=e;return[{[t]:{position:`absolute`,top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:i,display:`block`,"&::before":{position:`absolute`,insetBlock:e.calc(o).div(2).sub(a).equal(),zIndex:-9999,opacity:1e-4,content:`""`},"&-menu-vertical":{maxHeight:`calc(100vh - ${_(e.calc(T).mul(2.5).equal())})`,overflowY:`auto`},[`&-trigger${s}-btn`]:{[`& > ${c}-down, & > ${s}-btn-icon > ${c}-down`]:{fontSize:y}},[`${t}-wrap`]:{position:`relative`,[`${s}-btn > ${c}-down`]:{fontSize:y},[`${c}-down::before`]:{transition:`transform ${d}`}},[`${t}-wrap-open`]:{[`${c}-down::before`]:{transform:`rotate(180deg)`}},"&-hidden, &-menu-hidden, &-menu-submenu-hidden":{display:`none`},[`&${s}-slide-down-enter${s}-slide-down-enter-active${t}-placement-bottomLeft, &${s}-slide-down-appear${s}-slide-down-appear-active${t}-placement-bottomLeft, &${s}-slide-down-enter${s}-slide-down-enter-active${t}-placement-bottom, &${s}-slide-down-appear${s}-slide-down-appear-active${t}-placement-bottom, &${s}-slide-down-enter${s}-slide-down-enter-active${t}-placement-bottomRight, &${s}-slide-down-appear${s}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:p},[`&${s}-slide-up-enter${s}-slide-up-enter-active${t}-placement-topLeft, &${s}-slide-up-appear${s}-slide-up-appear-active${t}-placement-topLeft, &${s}-slide-up-enter${s}-slide-up-enter-active${t}-placement-top, &${s}-slide-up-appear${s}-slide-up-appear-active${t}-placement-top, &${s}-slide-up-enter${s}-slide-up-enter-active${t}-placement-topRight, &${s}-slide-up-appear${s}-slide-up-appear-active${t}-placement-topRight`]:{animationName:r},[`&${s}-slide-down-leave${s}-slide-down-leave-active${t}-placement-bottomLeft, &${s}-slide-down-leave${s}-slide-down-leave-active${t}-placement-bottom, &${s}-slide-down-leave${s}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:I},[`&${s}-slide-up-leave${s}-slide-up-leave-active${t}-placement-topLeft, &${s}-slide-up-leave${s}-slide-up-leave-active${t}-placement-top, &${s}-slide-up-leave${s}-slide-up-leave-active${t}-placement-topRight`]:{animationName:x},[`&${s}-slide-right-enter${s}-slide-right-enter-active${t}-placement-right, &${s}-slide-right-appear${s}-slide-right-appear-active${t}-placement-right, &${s}-slide-right-enter${s}-slide-right-enter-active${t}-placement-rightTop, &${s}-slide-right-appear${s}-slide-right-appear-active${t}-placement-rightTop, &${s}-slide-right-enter${s}-slide-right-enter-active${t}-placement-rightBottom, &${s}-slide-right-appear${s}-slide-right-appear-active${t}-placement-rightBottom`]:{animationName:u},[`&${s}-slide-left-enter${s}-slide-left-enter-active${t}-placement-left, &${s}-slide-left-appear${s}-slide-left-appear-active${t}-placement-left, &${s}-slide-left-enter${s}-slide-left-enter-active${t}-placement-leftTop, &${s}-slide-left-appear${s}-slide-left-appear-active${t}-placement-leftTop, &${s}-slide-left-enter${s}-slide-left-enter-active${t}-placement-leftBottom, &${s}-slide-left-appear${s}-slide-left-appear-active${t}-placement-leftBottom`]:{animationName:C},[`&${s}-slide-right-leave${s}-slide-right-leave-active${t}-placement-right, &${s}-slide-right-leave${s}-slide-right-leave-active${t}-placement-rightTop, &${s}-slide-right-leave${s}-slide-right-leave-active${t}-placement-rightBottom`]:{animationName:b},[`&${s}-slide-left-leave${s}-slide-left-leave-active${t}-placement-left, &${s}-slide-left-leave${s}-slide-left-leave-active${t}-placement-leftTop, &${s}-slide-left-leave${s}-slide-left-leave-active${t}-placement-leftBottom`]:{animationName:l}}},W(e,w),{[`${t} ${n}`]:{position:`relative`,margin:0},[`${n}-submenu-popup`]:{position:`absolute`,zIndex:i,background:`transparent`,boxShadow:`none`,transformOrigin:`0 0`,"ul, li":{listStyle:`none`,margin:0}},[`${t}, ${t}-menu-submenu`]:{...E(e),[n]:{padding:g,listStyleType:`none`,backgroundColor:w,backgroundClip:`padding-box`,borderRadius:e.borderRadiusLG,outline:`none`,boxShadow:e.boxShadowSecondary,...f(e),"&:empty":{padding:0,boxShadow:`none`},[`${n}-item-group-title`]:{padding:`${_(m)} ${_(S)}`,color:e.colorTextDescription,transition:`all ${d}`},[`${n}-item`]:{position:`relative`,display:`flex`,alignItems:`center`},[`${n}-item-icon`]:{minWidth:h,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:`auto`,"&-with-extra":{display:`inline-flex`,alignItems:`center`,width:`100%`},[`> a, > ${n}-item-label > a`]:{color:`inherit`,transition:`all ${d}`,"&:hover":{color:`inherit`},"&::after":{position:`absolute`,inset:0,content:`""`}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:`auto`,fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:{display:`flex`,margin:0,padding:`${_(m)} ${_(S)}`,color:e.colorText,fontWeight:`normal`,fontSize:h,lineHeight:e.lineHeight,cursor:`pointer`,transition:`all ${d}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover},...f(e),"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:v,cursor:`not-allowed`,"&:hover":{color:v,backgroundColor:w,cursor:`not-allowed`},a:{pointerEvents:`none`}},"&-divider":{height:1,margin:`${_(e.marginXXS)} 0`,overflow:`hidden`,lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:`absolute`,insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:`0 !important`,color:e.colorIcon,fontSize:y,fontStyle:`normal`}}},[`${n}-item-group-list`]:{margin:`0 ${_(e.marginXS)}`,padding:0,listStyle:`none`},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(S).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:`relative`},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:v,backgroundColor:w,cursor:`not-allowed`}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}}}},[H(e,`slide-up`),H(e,`slide-down`),H(e,`slide-left`),H(e,`slide-right`),J(e,`move-up`),J(e,`move-down`),ce(e,`zoom-big`)]]},Xe=w(`Dropdown`,e=>{let{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:i}=e,a=V(e,{menuCls:`${i}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[Ye(a),Je(a)]},e=>({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2,...K({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0}),...ue(e)}),{resetStyle:!1}),Ze=X.forwardRef((e,t)=>{let{menu:n,arrow:r,prefixCls:i,children:a,trigger:c,disabled:l,dropdownRender:u,popupRender:d,getPopupContainer:f,overlayClassName:p,rootClassName:m,overlayStyle:h,open:_,onOpenChange:v,mouseEnterDelay:y=.15,mouseLeaveDelay:b=.1,autoAdjustOverflow:x=!0,placement:C=``,transitionName:w,classNames:E,styles:D,destroyPopupOnHide:O,destroyOnHidden:A}=e,{getPrefixCls:N,direction:P,getPopupContainer:F,className:te,style:ne,classNames:I,styles:L}=se(`dropdown`),re={...e,mouseEnterDelay:y,mouseLeaveDelay:b,autoAdjustOverflow:x},[R,V]=ie([I,E],[L,D],{props:re}),H={...ne,...h,...V.root},W=d||u;de(`Dropdown`);let ce=X.useMemo(()=>{let e=N();return w===void 0?C.startsWith(`top`)?`${e}-slide-down`:C.startsWith(`left`)?`${e}-slide-right`:C.startsWith(`right`)?`${e}-slide-left`:`${e}-slide-up`:w},[N,C,w]),G=X.useMemo(()=>C?C.includes(`Center`)?C.slice(0,C.indexOf(`Center`)):C:P===`rtl`?`bottomRight`:`bottomLeft`,[C,P]),K=N(`dropdown`,i),q=oe(K),[ue,pe]=Xe(K,q),[,J]=k(),Y=X.Children.only(o(a)?X.createElement(`span`,null,a):a),he=M(t,j(Y)),ge=z(Y,{className:S(`${K}-trigger`,{[`${K}-rtl`]:P===`rtl`},Y.props.className),disabled:Y.props.disabled??l,ref:he}),Z=l?[]:c,_e=!!Z?.includes(`contextMenu`),[ve,ye]=ae(!1,_),be=B(e=>{v?.(e,{source:`trigger`}),ye(e)}),xe=S(p,m,ue,pe,q,te,R.root,{[`${K}-rtl`]:P===`rtl`}),Se=le({arrowPointAtCenter:s(r)&&r.pointAtCenter,autoAdjustOverflow:x,offset:J.marginXXS,arrowWidth:r?J.sizePopupArrow:0,borderRadius:J.borderRadius}),Ce=B(()=>{n?.selectable&&n?.multiple||(v?.(!1,{source:`menu`}),ye(!1))}),we=()=>{let e=T(R,[`root`]),t=T(V,[`root`]),r;return n?.items&&(r=X.createElement($,{...n,classNames:{...e,subMenu:{...e}},styles:{...t,subMenu:{...t}}})),W&&(r=W(r)),r=X.Children.only(typeof r==`string`?X.createElement(`span`,null,r):r),X.createElement(Me,{prefixCls:`${K}-menu`,rootClassName:S(pe,q),expandIcon:X.createElement(`span`,{className:`${K}-menu-submenu-arrow`},P===`rtl`?X.createElement(me,{className:`${K}-menu-submenu-arrow-icon`}):X.createElement(g,{className:`${K}-menu-submenu-arrow-icon`})),mode:`vertical`,selectable:!1,onClick:Ce,validator:({mode:e})=>{}},r)},[Te,Q]=fe(`Dropdown`,H.zIndex),Ee=X.createElement(ee,{alignPoint:_e,...T(e,[`rootClassName`,`onOpenChange`]),mouseEnterDelay:y,mouseLeaveDelay:b,visible:ve,builtinPlacements:Se,arrow:!!r,overlayClassName:xe,prefixCls:K,getPopupContainer:f||F,transitionName:ce,trigger:Z,overlay:we,placement:G,onVisibleChange:be,overlayStyle:{...H,zIndex:Te},autoDestroy:A??O},ge);return Te&&(Ee=X.createElement(U.Provider,{value:Q},Ee)),Ee}),Qe=Y(Ze,`align`,void 0,`dropdown`,e=>e);Ze._InternalPanelDoNotUseOrYouWillBeFired=e=>X.createElement(Qe,{...e},X.createElement(`span`,null));export{Q as a,_e as c,De as i,$ as n,Se as o,Me as r,ve as s,Ze as t};