"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5418],{13728:function(e,t,o){o.d(t,{Z:function(){return a}});var n=o(87462),r=o(67294),l={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"},i=o(13401),a=r.forwardRef(function(e,t){return r.createElement(i.Z,(0,n.Z)({},e,{ref:t,icon:l}))})},18073:function(e,t,o){o.d(t,{Z:function(){return a}});var n=o(87462),r=o(67294),l={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"},i=o(13401),a=r.forwardRef(function(e,t){return r.createElement(i.Z,(0,n.Z)({},e,{ref:t,icon:l}))})},1203:function(e,t,o){o.d(t,{Z:function(){return R}});var n=o(67294),r=o(18073),l=o(93967),i=o.n(l),a=o(29171),s=o(56790),d=o(21770),c=o(98423),u=o(87263),m=o(80636),p=o(8745),g=o(96159),b=o(27288),$=o(43945),f=o(53124),v=o(35792),h=o(50136),I=o(76529),C=o(25976),y=o(25446),w=o(14747),x=o(67771),S=o(33297),O=o(50438),B=o(97414),k=o(79511),E=o(83559),j=o(83262),z=e=>{let{componentCls:t,menuCls:o,colorError:n,colorTextLightSolid:r}=e,l=`${o}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${o} ${l}`]:{[`&${l}-danger:not(${l}-disabled)`]:{color:n,"&:hover":{color:r,backgroundColor:n}}}}}};let H=e=>{let{componentCls:t,menuCls:o,zIndexPopup:n,dropdownArrowDistance:r,sizePopupArrow:l,antCls:i,iconCls:a,motionDurationMid:s,paddingBlock:d,fontSize:c,dropdownEdgeChildPadding:u,colorTextDisabled:m,fontSizeIcon:p,controlPaddingHorizontal:g,colorBgElevated:b}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:n,display:"block","&::before":{position:"absolute",insetBlock:e.calc(l).div(2).sub(r).equal(),zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${i}-btn`]:{[`& > ${a}-down, & > ${i}-btn-icon > ${a}-down`]:{fontSize:p}},[`${t}-wrap`]:{position:"relative",[`${i}-btn > ${a}-down`]:{fontSize:p},[`${a}-down::before`]:{transition:`transform ${s}`}},[`${t}-wrap-open`]:{[`${a}-down::before`]:{transform:"rotate(180deg)"}},[`
        &-hidden,
        &-menu-hidden,
        &-menu-submenu-hidden
      `]:{display:"none"},[`&${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomLeft,
          &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomLeft,
          &${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottom,
          &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottom,
          &${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomRight,
          &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:x.fJ},[`&${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topLeft,
          &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topLeft,
          &${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-top,
          &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-top,
          &${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topRight,
          &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topRight`]:{animationName:x.Qt},[`&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomLeft,
          &${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottom,
          &${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:x.Uw},[`&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topLeft,
          &${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-top,
          &${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topRight`]:{animationName:x.ly}}},(0,B.ZP)(e,b,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${o}`]:{position:"relative",margin:0},[`${o}-submenu-popup`]:{position:"absolute",zIndex:n,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},(0,w.Wf)(e)),{[o]:Object.assign(Object.assign({padding:u,listStyleType:"none",backgroundColor:b,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},(0,w.Qy)(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${o}-item-group-title`]:{padding:`${(0,y.bf)(d)} ${(0,y.bf)(g)}`,color:e.colorTextDescription,transition:`all ${s}`},[`${o}-item`]:{position:"relative",display:"flex",alignItems:"center",whiteSpace:"nowrap"},[`${o}-item-icon`]:{minWidth:c,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${o}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${s}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${o}-item, ${o}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${(0,y.bf)(d)} ${(0,y.bf)(g)}`,color:e.colorText,fontWeight:"normal",fontSize:c,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${s}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},(0,w.Qy)(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:m,cursor:"not-allowed","&:hover":{color:m,backgroundColor:b,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,y.bf)(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.colorTextDescription,fontSize:p,fontStyle:"normal"}}}),[`${o}-item-group-list`]:{margin:`0 ${(0,y.bf)(e.marginXS)}`,padding:0,listStyle:"none"},[`${o}-submenu-title`]:{paddingInlineEnd:e.calc(g).add(e.fontSizeSM).equal()},[`${o}-submenu-vertical`]:{position:"relative"},[`${o}-submenu${o}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:m,backgroundColor:b,cursor:"not-allowed"}},[`${o}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[(0,x.oN)(e,"slide-up"),(0,x.oN)(e,"slide-down"),(0,S.Fm)(e,"move-up"),(0,S.Fm)(e,"move-down"),(0,O._y)(e,"zoom-big")]]};var N=(0,E.I$)("Dropdown",e=>{let{marginXXS:t,sizePopupArrow:o,paddingXXS:n,componentCls:r}=e,l=(0,j.IX)(e,{menuCls:`${r}-menu`,dropdownArrowDistance:e.calc(o).div(2).add(t).equal(),dropdownEdgeChildPadding:n});return[H(l),z(l)]},e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},(0,B.wZ)({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),(0,k.w)(e)),{resetStyle:!1});let T=e=>{var t;let{menu:o,arrow:l,prefixCls:p,children:y,trigger:w,disabled:x,dropdownRender:S,getPopupContainer:O,overlayClassName:B,rootClassName:k,overlayStyle:E,open:j,onOpenChange:z,visible:H,onVisibleChange:T,mouseEnterDelay:P=.15,mouseLeaveDelay:R=.1,autoAdjustOverflow:Z=!0,placement:D="",overlay:M,transitionName:A}=e,{getPopupContainer:W,getPrefixCls:L,direction:X,dropdown:_}=n.useContext(f.E_);(0,b.ln)("Dropdown");let q=n.useMemo(()=>{let e=L();return void 0!==A?A:D.includes("top")?`${e}-slide-down`:`${e}-slide-up`},[L,D,A]),F=n.useMemo(()=>D?D.includes("Center")?D.slice(0,D.indexOf("Center")):D:"rtl"===X?"bottomRight":"bottomLeft",[D,X]),Y=L("dropdown",p),V=(0,v.Z)(Y),[G,J,Q]=N(Y,V),[,U]=(0,C.ZP)(),K=n.Children.only(y),ee=(0,g.Tm)(K,{className:i()(`${Y}-trigger`,{[`${Y}-rtl`]:"rtl"===X},K.props.className),disabled:null!==(t=K.props.disabled)&&void 0!==t?t:x}),et=x?[]:w,eo=!!(null==et?void 0:et.includes("contextMenu")),[en,er]=(0,d.Z)(!1,{value:null!=j?j:H}),el=(0,s.zX)(e=>{null==z||z(e,{source:"trigger"}),null==T||T(e),er(e)}),ei=i()(B,k,J,Q,V,null==_?void 0:_.className,{[`${Y}-rtl`]:"rtl"===X}),ea=(0,m.Z)({arrowPointAtCenter:"object"==typeof l&&l.pointAtCenter,autoAdjustOverflow:Z,offset:U.marginXXS,arrowWidth:l?U.sizePopupArrow:0,borderRadius:U.borderRadius}),es=n.useCallback(()=>{null!=o&&o.selectable&&null!=o&&o.multiple||(null==z||z(!1,{source:"menu"}),er(!1))},[null==o?void 0:o.selectable,null==o?void 0:o.multiple]),[ed,ec]=(0,u.Cn)("Dropdown",null==E?void 0:E.zIndex),eu=n.createElement(a.Z,Object.assign({alignPoint:eo},(0,c.Z)(e,["rootClassName"]),{mouseEnterDelay:P,mouseLeaveDelay:R,visible:en,builtinPlacements:ea,arrow:!!l,overlayClassName:ei,prefixCls:Y,getPopupContainer:O||W,transitionName:q,trigger:et,overlay:()=>{let e;return e=(null==o?void 0:o.items)?n.createElement(h.Z,Object.assign({},o)):"function"==typeof M?M():M,S&&(e=S(e)),e=n.Children.only("string"==typeof e?n.createElement("span",null,e):e),n.createElement(I.J,{prefixCls:`${Y}-menu`,rootClassName:i()(Q,V),expandIcon:n.createElement("span",{className:`${Y}-menu-submenu-arrow`},n.createElement(r.Z,{className:`${Y}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:es,validator:e=>{let{mode:t}=e}},e)},placement:F,onVisibleChange:el,overlayStyle:Object.assign(Object.assign(Object.assign({},null==_?void 0:_.style),E),{zIndex:ed})}),ee);return ed&&(eu=n.createElement($.Z.Provider,{value:ec},eu)),G(eu)},P=(0,p.Z)(T,"dropdown",e=>e,function(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})});T._InternalPanelDoNotUseOrYouWillBeFired=e=>n.createElement(P,Object.assign({},e),n.createElement("span",null));var R=T},85418:function(e,t,o){o.d(t,{Z:function(){return b}});var n=o(1203),r=o(67294),l=o(89705),i=o(93967),a=o.n(i),s=o(14726),d=o(53124),c=o(42075),u=o(4173),m=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)0>t.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o};let p=e=>{let{getPopupContainer:t,getPrefixCls:o,direction:i}=r.useContext(d.E_),{prefixCls:p,type:g="default",danger:b,disabled:$,loading:f,onClick:v,htmlType:h,children:I,className:C,menu:y,arrow:w,autoFocus:x,overlay:S,trigger:O,align:B,open:k,onOpenChange:E,placement:j,getPopupContainer:z,href:H,icon:N=r.createElement(l.Z,null),title:T,buttonsRender:P=e=>e,mouseEnterDelay:R,mouseLeaveDelay:Z,overlayClassName:D,overlayStyle:M,destroyPopupOnHide:A,dropdownRender:W}=e,L=m(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),X=o("dropdown",p),_=`${X}-button`,q={menu:y,arrow:w,autoFocus:x,align:B,disabled:$,trigger:$?[]:O,onOpenChange:E,getPopupContainer:z||t,mouseEnterDelay:R,mouseLeaveDelay:Z,overlayClassName:D,overlayStyle:M,destroyPopupOnHide:A,dropdownRender:W},{compactSize:F,compactItemClassnames:Y}=(0,u.ri)(X,i),V=a()(_,Y,C);"overlay"in e&&(q.overlay=S),"open"in e&&(q.open=k),"placement"in e?q.placement=j:q.placement="rtl"===i?"bottomLeft":"bottomRight";let G=r.createElement(s.ZP,{type:g,danger:b,disabled:$,loading:f,onClick:v,htmlType:h,href:H,title:T},I),J=r.createElement(s.ZP,{type:g,danger:b,icon:N}),[Q,U]=P([G,J]);return r.createElement(c.Z.Compact,Object.assign({className:V,size:F,block:!0},L),Q,r.createElement(n.Z,Object.assign({},q),U))};p.__ANT_BUTTON=!0;let g=n.Z;g.Button=p;var b=g},5210:function(e,t,o){let n;o.d(t,{D:function(){return $},Z:function(){return h}});var r=o(67294),l=o(13728),i=o(6171),a=o(18073),s=o(93967),d=o.n(s),c=o(98423),u=e=>!isNaN(parseFloat(e))&&isFinite(e),m=o(53124),p=o(82401),g=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)0>t.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o};let b={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},$=r.createContext({}),f=(n=0,function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return`${e}${n+=1}`}),v=r.forwardRef((e,t)=>{let{prefixCls:o,className:n,trigger:s,children:v,defaultCollapsed:h=!1,theme:I="dark",style:C={},collapsible:y=!1,reverseArrow:w=!1,width:x=200,collapsedWidth:S=80,zeroWidthTriggerStyle:O,breakpoint:B,onCollapse:k,onBreakpoint:E}=e,j=g(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:z}=(0,r.useContext)(p.V),[H,N]=(0,r.useState)("collapsed"in e?e.collapsed:h),[T,P]=(0,r.useState)(!1);(0,r.useEffect)(()=>{"collapsed"in e&&N(e.collapsed)},[e.collapsed]);let R=(t,o)=>{"collapsed"in e||N(t),null==k||k(t,o)},Z=(0,r.useRef)();Z.current=e=>{P(e.matches),null==E||E(e.matches),H!==e.matches&&R(e.matches,"responsive")},(0,r.useEffect)(()=>{let e;function t(e){return Z.current(e)}if("undefined"!=typeof window){let{matchMedia:o}=window;if(o&&B&&B in b){e=o(`screen and (max-width: ${b[B]})`);try{e.addEventListener("change",t)}catch(o){e.addListener(t)}t(e)}}return()=>{try{null==e||e.removeEventListener("change",t)}catch(o){null==e||e.removeListener(t)}}},[B]),(0,r.useEffect)(()=>{let e=f("ant-sider-");return z.addSider(e),()=>z.removeSider(e)},[]);let D=()=>{R(!H,"clickTrigger")},{getPrefixCls:M}=(0,r.useContext)(m.E_),A=r.useMemo(()=>({siderCollapsed:H}),[H]);return r.createElement($.Provider,{value:A},(()=>{let e=M("layout-sider",o),m=(0,c.Z)(j,["collapsed"]),p=H?S:x,g=u(p)?`${p}px`:String(p),b=0===parseFloat(String(S||0))?r.createElement("span",{onClick:D,className:d()(`${e}-zero-width-trigger`,`${e}-zero-width-trigger-${w?"right":"left"}`),style:O},s||r.createElement(l.Z,null)):null,$={expanded:w?r.createElement(a.Z,null):r.createElement(i.Z,null),collapsed:w?r.createElement(i.Z,null):r.createElement(a.Z,null)},f=H?"collapsed":"expanded",h=$[f],B=null!==s?b||r.createElement("div",{className:`${e}-trigger`,onClick:D,style:{width:g}},s||h):null,k=Object.assign(Object.assign({},C),{flex:`0 0 ${g}`,maxWidth:g,minWidth:g,width:g}),E=d()(e,`${e}-${I}`,{[`${e}-collapsed`]:!!H,[`${e}-has-trigger`]:y&&null!==s&&!b,[`${e}-below`]:!!T,[`${e}-zero-width`]:0===parseFloat(g)},n);return r.createElement("aside",Object.assign({className:E},m,{style:k,ref:t}),r.createElement("div",{className:`${e}-children`},v),y||T&&b?B:null)})())});var h=v},82401:function(e,t,o){o.d(t,{V:function(){return r}});var n=o(67294);let r=n.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},76529:function(e,t,o){o.d(t,{J:function(){return s}});var n=o(67294),r=o(56790),l=o(89942),i=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)0>t.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o};let a=n.createContext(null),s=n.forwardRef((e,t)=>{let{children:o}=e,s=i(e,["children"]),d=n.useContext(a),c=n.useMemo(()=>Object.assign(Object.assign({},d),s),[d,s.prefixCls,s.mode,s.selectable,s.rootClassName]),u=(0,r.t4)(o),m=(0,r.x1)(t,u?o.ref:null);return n.createElement(a.Provider,{value:c},n.createElement(l.Z,{space:!0},u?n.cloneElement(o,{ref:m}):o))});t.Z=a},50136:function(e,t,o){o.d(t,{Z:function(){return V}});var n=o(67294),r=o(72512),l=o(5210),i=o(89705),a=o(93967),s=o.n(a),d=o(56790),c=o(98423),u=o(33603),m=o(96159),p=o(53124),g=o(35792);let b=(0,n.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var $=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)0>t.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o},f=e=>{let{prefixCls:t,className:o,dashed:l}=e,i=$(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=n.useContext(p.E_),d=a("menu",t),c=s()({[`${d}-item-divider-dashed`]:!!l},o);return n.createElement(r.iz,Object.assign({className:c},i))},v=o(50344),h=o(83062),I=e=>{var t;let{className:o,children:i,icon:a,title:d,danger:u}=e,{prefixCls:p,firstLevel:g,direction:$,disableMenuItemTitleTooltip:f,inlineCollapsed:I}=n.useContext(b),{siderCollapsed:C}=n.useContext(l.D),y=d;void 0===d?y=g?i:"":!1===d&&(y="");let w={title:y};C||I||(w.title=null,w.open=!1);let x=(0,v.Z)(i).length,S=n.createElement(r.ck,Object.assign({},(0,c.Z)(e,["title","icon","danger"]),{className:s()({[`${p}-item-danger`]:u,[`${p}-item-only-child`]:(a?x+1:x)===1},o),title:"string"==typeof d?d:void 0}),(0,m.Tm)(a,{className:s()(n.isValidElement(a)?null===(t=a.props)||void 0===t?void 0:t.className:"",`${p}-item-icon`)}),(e=>{let t=n.createElement("span",{className:`${p}-title-content`},i);return(!a||n.isValidElement(i)&&"span"===i.type)&&i&&e&&g&&"string"==typeof i?n.createElement("div",{className:`${p}-inline-collapsed-noicon`},i.charAt(0)):t})(I));return f||(S=n.createElement(h.Z,Object.assign({},w,{placement:"rtl"===$?"left":"right",overlayClassName:`${p}-inline-collapsed-tooltip`}),S)),S},C=o(76529),y=o(25446),w=o(10274),x=o(14747),S=o(33507),O=o(67771),B=o(50438),k=o(83559),E=o(83262),j=e=>{let{componentCls:t,motionDurationSlow:o,horizontalLineHeight:n,colorSplit:r,lineWidth:l,lineType:i,itemPaddingInline:a}=e;return{[`${t}-horizontal`]:{lineHeight:n,border:0,borderBottom:`${(0,y.bf)(l)} ${i} ${r}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:a},[`> ${t}-item:hover,
        > ${t}-item-active,
        > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:`border-color ${o},background ${o}`},[`${t}-submenu-arrow`]:{display:"none"}}}},z=e=>{let{componentCls:t,menuArrowOffset:o,calc:n}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,
    ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,y.bf)(n(o).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,y.bf)(o)})`}}}}};let H=e=>Object.assign({},(0,x.oN)(e));var N=(e,t)=>{let{componentCls:o,itemColor:n,itemSelectedColor:r,groupTitleColor:l,itemBg:i,subMenuItemBg:a,itemSelectedBg:s,activeBarHeight:d,activeBarWidth:c,activeBarBorderWidth:u,motionDurationSlow:m,motionEaseInOut:p,motionEaseOut:g,itemPaddingInline:b,motionDurationMid:$,itemHoverColor:f,lineType:v,colorSplit:h,itemDisabledColor:I,dangerItemColor:C,dangerItemHoverColor:w,dangerItemSelectedColor:x,dangerItemActiveBg:S,dangerItemSelectedBg:O,popupBg:B,itemHoverBg:k,itemActiveBg:E,menuSubMenuBg:j,horizontalItemSelectedColor:z,horizontalItemSelectedBg:N,horizontalItemBorderRadius:T,horizontalItemHoverBg:P}=e;return{[`${o}-${t}, ${o}-${t} > ${o}`]:{color:n,background:i,[`&${o}-root:focus-visible`]:Object.assign({},H(e)),[`${o}-item-group-title`]:{color:l},[`${o}-submenu-selected`]:{[`> ${o}-submenu-title`]:{color:r}},[`${o}-item, ${o}-submenu-title`]:{color:n,[`&:not(${o}-item-disabled):focus-visible`]:Object.assign({},H(e))},[`${o}-item-disabled, ${o}-submenu-disabled`]:{color:`${I} !important`},[`${o}-item:not(${o}-item-selected):not(${o}-submenu-selected)`]:{[`&:hover, > ${o}-submenu-title:hover`]:{color:f}},[`&:not(${o}-horizontal)`]:{[`${o}-item:not(${o}-item-selected)`]:{"&:hover":{backgroundColor:k},"&:active":{backgroundColor:E}},[`${o}-submenu-title`]:{"&:hover":{backgroundColor:k},"&:active":{backgroundColor:E}}},[`${o}-item-danger`]:{color:C,[`&${o}-item:hover`]:{[`&:not(${o}-item-selected):not(${o}-submenu-selected)`]:{color:w}},[`&${o}-item:active`]:{background:S}},[`${o}-item a`]:{"&, &:hover":{color:"inherit"}},[`${o}-item-selected`]:{color:r,[`&${o}-item-danger`]:{color:x},"a, a:hover":{color:"inherit"}},[`& ${o}-item-selected`]:{backgroundColor:s,[`&${o}-item-danger`]:{backgroundColor:O}},[`&${o}-submenu > ${o}`]:{backgroundColor:j},[`&${o}-popup > ${o}`]:{backgroundColor:B},[`&${o}-submenu-popup > ${o}`]:{backgroundColor:B},[`&${o}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${o}-item, > ${o}-submenu`]:{top:u,marginTop:e.calc(u).mul(-1).equal(),marginBottom:0,borderRadius:T,"&::after":{position:"absolute",insetInline:b,bottom:0,borderBottom:`${(0,y.bf)(d)} solid transparent`,transition:`border-color ${m} ${p}`,content:'""'},"&:hover, &-active, &-open":{background:P,"&::after":{borderBottomWidth:d,borderBottomColor:z}},"&-selected":{color:z,backgroundColor:N,"&:hover":{backgroundColor:N},"&::after":{borderBottomWidth:d,borderBottomColor:z}}}}),[`&${o}-root`]:{[`&${o}-inline, &${o}-vertical`]:{borderInlineEnd:`${(0,y.bf)(u)} ${v} ${h}`}},[`&${o}-inline`]:{[`${o}-sub${o}-inline`]:{background:a},[`${o}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,y.bf)(c)} solid ${r}`,transform:"scaleY(0.0001)",opacity:0,transition:`transform ${$} ${g},opacity ${$} ${g}`,content:'""'},[`&${o}-item-danger`]:{"&::after":{borderInlineEndColor:x}}},[`${o}-selected, ${o}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:`transform ${$} ${p},opacity ${$} ${p}`}}}}}};let T=e=>{let{componentCls:t,itemHeight:o,itemMarginInline:n,padding:r,menuArrowSize:l,marginXS:i,itemMarginBlock:a,itemWidth:s}=e,d=e.calc(l).add(r).add(i).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:o,lineHeight:(0,y.bf)(o),paddingInline:r,overflow:"hidden",textOverflow:"ellipsis",marginInline:n,marginBlock:a,width:s},[`> ${t}-item,
            > ${t}-submenu > ${t}-submenu-title`]:{height:o,lineHeight:(0,y.bf)(o)},[`${t}-item-group-list ${t}-submenu-title,
            ${t}-submenu-title`]:{paddingInlineEnd:d}}};var P=e=>{let{componentCls:t,iconCls:o,itemHeight:n,colorTextLightSolid:r,dropdownWidth:l,controlHeightLG:i,motionDurationMid:a,motionEaseOut:s,paddingXL:d,itemMarginInline:c,fontSizeLG:u,motionDurationSlow:m,paddingXS:p,boxShadowSecondary:g,collapsedWidth:b,collapsedIconSize:$}=e,f={height:n,lineHeight:(0,y.bf)(n),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},T(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},T(e)),{boxShadow:g})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:l,maxHeight:`calc(100vh - ${(0,y.bf)(e.calc(i).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 ${m},padding ${a} ${s},padding-inline calc(50% - ${(0,y.bf)(e.calc(u).div(2).equal())} - ${(0,y.bf)(c)})`,[`> ${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`]:f,[`& ${t}-item-group-title`]:{paddingInlineStart:d}},[`${t}-item`]:f}},{[`${t}-inline-collapsed`]:{width:b,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,textAlign:"center"}}},[`> ${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`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,y.bf)(e.calc(u).div(2).equal())} - ${(0,y.bf)(c)})`,textOverflow:"clip",[`
            ${t}-submenu-arrow,
            ${t}-submenu-expand-icon
          `]:{opacity:0},[`${t}-item-icon, ${o}`]:{margin:0,fontSize:$,lineHeight:(0,y.bf)(n),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${o}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${o}`]:{display:"none"},"a, a:hover":{color:r}},[`${t}-item-group-title`]:Object.assign(Object.assign({},x.vS),{paddingInline:p})}}]};let R=e=>{let{componentCls:t,motionDurationSlow:o,motionDurationMid:n,motionEaseInOut:r,motionEaseOut:l,iconCls:i,iconSize:a,iconMarginInlineEnd:s}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:`border-color ${o},background ${o},padding ${o} ${r}`,[`${t}-item-icon, ${i}`]:{minWidth:a,fontSize:a,transition:`font-size ${n} ${l},margin ${o} ${r},color ${o}`,"+ span":{marginInlineStart:s,opacity:1,transition:`opacity ${o} ${r},margin ${o},color ${o}`}},[`${t}-item-icon`]:Object.assign({},(0,x.Ro)()),[`&${t}-item-only-child`]:{[`> ${i}, > ${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"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Z=e=>{let{componentCls:t,motionDurationSlow:o,motionEaseInOut:n,borderRadius:r,menuArrowSize:l,menuArrowOffset:i}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:l,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${o} ${n}, opacity ${o}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(l).mul(.6).equal(),height:e.calc(l).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:r,transition:`background ${o} ${n},transform ${o} ${n},top ${o} ${n},color ${o} ${n}`,content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,y.bf)(e.calc(i).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,y.bf)(i)})`}}}}},D=e=>{let{antCls:t,componentCls:o,fontSize:n,motionDurationSlow:r,motionDurationMid:l,motionEaseInOut:i,paddingXS:a,padding:s,colorSplit:d,lineWidth:c,zIndexPopup:u,borderRadiusLG:m,subMenuItemBorderRadius:p,menuArrowSize:g,menuArrowOffset:b,lineType:$,groupTitleLineHeight:f,groupTitleFontSize:v}=e;return[{"":{[o]:Object.assign(Object.assign({},(0,x.dF)()),{"&-hidden":{display:"none"}})},[`${o}-submenu-hidden`]:{display:"none"}},{[o]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,x.Wf)(e)),(0,x.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:n,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${r} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${o}-item`]:{flex:"none"}},[`${o}-item, ${o}-submenu, ${o}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${o}-item-group-title`]:{padding:`${(0,y.bf)(a)} ${(0,y.bf)(s)}`,fontSize:v,lineHeight:f,transition:`all ${r}`},[`&-horizontal ${o}-submenu`]:{transition:`border-color ${r} ${i},background ${r} ${i}`},[`${o}-submenu, ${o}-submenu-inline`]:{transition:`border-color ${r} ${i},background ${r} ${i},padding ${l} ${i}`},[`${o}-submenu ${o}-sub`]:{cursor:"initial",transition:`background ${r} ${i},padding ${r} ${i}`},[`${o}-title-content`]:{transition:`color ${r}`,[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${o}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${o}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:d,borderStyle:$,borderWidth:0,borderTopWidth:c,marginBlock:c,padding:0,"&-dashed":{borderStyle:"dashed"}}}),R(e)),{[`${o}-item-group`]:{[`${o}-item-group-list`]:{margin:0,padding:0,[`${o}-item, ${o}-submenu-title`]:{paddingInline:`${(0,y.bf)(e.calc(n).mul(2).equal())} ${(0,y.bf)(s)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:u,borderRadius:m,boxShadow:"none",transformOrigin:"0 0",[`&${o}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${o}`]:Object.assign(Object.assign(Object.assign({borderRadius:m},R(e)),Z(e)),{[`${o}-item, ${o}-submenu > ${o}-submenu-title`]:{borderRadius:p},[`${o}-submenu-title::after`]:{transition:`transform ${r} ${i}`}})},[`
          &-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}}}),Z(e)),{[`&-inline-collapsed ${o}-submenu-arrow,
        &-inline ${o}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,y.bf)(b)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,y.bf)(e.calc(b).mul(-1).equal())})`}},[`${o}-submenu-open${o}-submenu-inline > ${o}-submenu-title > ${o}-submenu-arrow`]:{transform:`translateY(${(0,y.bf)(e.calc(g).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,y.bf)(e.calc(b).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,y.bf)(b)})`}}})},{[`${t}-layout-header`]:{[o]:{lineHeight:"inherit"}}}]},M=e=>{var t,o,n;let{colorPrimary:r,colorError:l,colorTextDisabled:i,colorErrorBg:a,colorText:s,colorTextDescription:d,colorBgContainer:c,colorFillAlter:u,colorFillContent:m,lineWidth:p,lineWidthBold:g,controlItemBgActive:b,colorBgTextHover:$,controlHeightLG:f,lineHeight:v,colorBgElevated:h,marginXXS:I,padding:C,fontSize:y,controlHeightSM:x,fontSizeLG:S,colorTextLightSolid:O,colorErrorHover:B}=e,k=null!==(t=e.activeBarWidth)&&void 0!==t?t:0,E=null!==(o=e.activeBarBorderWidth)&&void 0!==o?o:p,j=null!==(n=e.itemMarginInline)&&void 0!==n?n:e.marginXXS,z=new w.C(O).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:s,itemColor:s,colorItemTextHover:s,itemHoverColor:s,colorItemTextHoverHorizontal:r,horizontalItemHoverColor:r,colorGroupTitle:d,groupTitleColor:d,colorItemTextSelected:r,itemSelectedColor:r,colorItemTextSelectedHorizontal:r,horizontalItemSelectedColor:r,colorItemBg:c,itemBg:c,colorItemBgHover:$,itemHoverBg:$,colorItemBgActive:m,itemActiveBg:b,colorSubItemBg:u,subMenuItemBg:u,colorItemBgSelected:b,itemSelectedBg:b,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:k,colorActiveBarHeight:g,activeBarHeight:g,colorActiveBarBorderSize:p,activeBarBorderWidth:E,colorItemTextDisabled:i,itemDisabledColor:i,colorDangerItemText:l,dangerItemColor:l,colorDangerItemTextHover:l,dangerItemHoverColor:l,colorDangerItemTextSelected:l,dangerItemSelectedColor:l,colorDangerItemBgActive:a,dangerItemActiveBg:a,colorDangerItemBgSelected:a,dangerItemSelectedBg:a,itemMarginInline:j,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:f,groupTitleLineHeight:v,collapsedWidth:2*f,popupBg:h,itemMarginBlock:I,itemPaddingInline:C,horizontalLineHeight:`${1.15*f}px`,iconSize:y,iconMarginInlineEnd:x-y,collapsedIconSize:S,groupTitleFontSize:y,darkItemDisabledColor:new w.C(O).setAlpha(.25).toRgbString(),darkItemColor:z,darkDangerItemColor:l,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:O,darkItemSelectedBg:r,darkDangerItemSelectedBg:l,darkItemHoverBg:"transparent",darkGroupTitleColor:z,darkItemHoverColor:O,darkDangerItemHoverColor:B,darkDangerItemSelectedColor:O,darkDangerItemActiveBg:l,itemWidth:k?`calc(100% + ${E}px)`:`calc(100% - ${2*j}px)`}};var A=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,o=!(arguments.length>2)||void 0===arguments[2]||arguments[2],n=(0,k.I$)("Menu",e=>{let{colorBgElevated:t,controlHeightLG:o,fontSize:n,darkItemColor:r,darkDangerItemColor:l,darkItemBg:i,darkSubMenuItemBg:a,darkItemSelectedColor:s,darkItemSelectedBg:d,darkDangerItemSelectedBg:c,darkItemHoverBg:u,darkGroupTitleColor:m,darkItemHoverColor:p,darkItemDisabledColor:g,darkDangerItemHoverColor:b,darkDangerItemSelectedColor:$,darkDangerItemActiveBg:f,popupBg:v,darkPopupBg:h}=e,I=e.calc(n).div(7).mul(5).equal(),C=(0,E.IX)(e,{menuArrowSize:I,menuHorizontalHeight:e.calc(o).mul(1.15).equal(),menuArrowOffset:e.calc(I).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:v}),y=(0,E.IX)(C,{itemColor:r,itemHoverColor:p,groupTitleColor:m,itemSelectedColor:s,itemBg:i,popupBg:h,subMenuItemBg:a,itemActiveBg:"transparent",itemSelectedBg:d,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:u,itemDisabledColor:g,dangerItemColor:l,dangerItemHoverColor:b,dangerItemSelectedColor:$,dangerItemActiveBg:f,dangerItemSelectedBg:c,menuSubMenuBg:a,horizontalItemSelectedColor:s,horizontalItemSelectedBg:d});return[D(C),j(C),P(C),N(C,"light"),N(y,"dark"),z(C),(0,S.Z)(C),(0,O.oN)(C,"slide-up"),(0,O.oN)(C,"slide-down"),(0,B._y)(C,"zoom-big")]},M,{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:o,unitless:{groupTitleLineHeight:!0}});return n(e,t)},W=o(87263),L=e=>{var t;let o;let{popupClassName:l,icon:i,title:a,theme:d}=e,u=n.useContext(b),{prefixCls:p,inlineCollapsed:g,theme:$}=u,f=(0,r.Xl)();if(i){let e=n.isValidElement(a)&&"span"===a.type;o=n.createElement(n.Fragment,null,(0,m.Tm)(i,{className:s()(n.isValidElement(i)?null===(t=i.props)||void 0===t?void 0:t.className:"",`${p}-item-icon`)}),e?a:n.createElement("span",{className:`${p}-title-content`},a))}else o=g&&!f.length&&a&&"string"==typeof a?n.createElement("div",{className:`${p}-inline-collapsed-noicon`},a.charAt(0)):n.createElement("span",{className:`${p}-title-content`},a);let v=n.useMemo(()=>Object.assign(Object.assign({},u),{firstLevel:!1}),[u]),[h]=(0,W.Cn)("Menu");return n.createElement(b.Provider,{value:v},n.createElement(r.Wd,Object.assign({},(0,c.Z)(e,["icon"]),{title:o,popupClassName:s()(p,l,`${p}-${d||$}`),popupStyle:{zIndex:h}})))},X=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)0>t.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(o[n[r]]=e[n[r]]);return o};function _(e){return null===e||!1===e}let q={item:I,submenu:L,divider:f},F=(0,n.forwardRef)((e,t)=>{var o;let l=n.useContext(C.Z),a=l||{},{getPrefixCls:$,getPopupContainer:f,direction:v,menu:h}=n.useContext(p.E_),I=$(),{prefixCls:y,className:w,style:x,theme:S="light",expandIcon:O,_internalDisableMenuItemTitleTooltip:B,inlineCollapsed:k,siderCollapsed:E,rootClassName:j,mode:z,selectable:H,onClick:N,overflowedIndicatorPopupClassName:T}=e,P=X(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),R=(0,c.Z)(P,["collapsedWidth"]);null===(o=a.validator)||void 0===o||o.call(a,{mode:z});let Z=(0,d.zX)(function(){var e;null==N||N.apply(void 0,arguments),null===(e=a.onClick)||void 0===e||e.call(a)}),D=a.mode||z,M=null!=H?H:a.selectable,W=n.useMemo(()=>void 0!==E?E:k,[k,E]),L={horizontal:{motionName:`${I}-slide-up`},inline:(0,u.Z)(I),other:{motionName:`${I}-zoom-big`}},F=$("menu",y||a.prefixCls),Y=(0,g.Z)(F),[V,G,J]=A(F,Y,!l),Q=s()(`${F}-${S}`,null==h?void 0:h.className,w),U=n.useMemo(()=>{var e,t;if("function"==typeof O||_(O))return O||null;if("function"==typeof a.expandIcon||_(a.expandIcon))return a.expandIcon||null;if("function"==typeof(null==h?void 0:h.expandIcon)||_(null==h?void 0:h.expandIcon))return(null==h?void 0:h.expandIcon)||null;let o=null!==(e=null!=O?O:null==a?void 0:a.expandIcon)&&void 0!==e?e:null==h?void 0:h.expandIcon;return(0,m.Tm)(o,{className:s()(`${F}-submenu-expand-icon`,n.isValidElement(o)?null===(t=o.props)||void 0===t?void 0:t.className:void 0)})},[O,null==a?void 0:a.expandIcon,null==h?void 0:h.expandIcon,F]),K=n.useMemo(()=>({prefixCls:F,inlineCollapsed:W||!1,direction:v,firstLevel:!0,theme:S,mode:D,disableMenuItemTitleTooltip:B}),[F,W,v,B,S]);return V(n.createElement(C.Z.Provider,{value:null},n.createElement(b.Provider,{value:K},n.createElement(r.ZP,Object.assign({getPopupContainer:f,overflowedIndicator:n.createElement(i.Z,null),overflowedIndicatorPopupClassName:s()(F,`${F}-${S}`,T),mode:D,selectable:M,onClick:Z},R,{inlineCollapsed:W,style:Object.assign(Object.assign({},null==h?void 0:h.style),x),className:Q,prefixCls:F,direction:v,defaultMotions:L,expandIcon:U,ref:t,rootClassName:s()(j,G,a.rootClassName,J,Y),_internalComponents:q})))))}),Y=(0,n.forwardRef)((e,t)=>{let o=(0,n.useRef)(null),r=n.useContext(l.D);return(0,n.useImperativeHandle)(t,()=>({menu:o.current,focus:e=>{var t;null===(t=o.current)||void 0===t||t.focus(e)}})),n.createElement(F,Object.assign({ref:o},e,r))});Y.Item=I,Y.SubMenu=L,Y.Divider=f,Y.ItemGroup=r.BW;var V=Y}}]);