1 |
- (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[439],{44545:function(ot,re,s){"use strict";s.d(re,{Z:function(){return x}});var D=s(28991),$=s(67294),L={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"},z=L,p=s(30076),C=function(g,l){return $.createElement(p.Z,(0,D.Z)((0,D.Z)({},g),{},{ref:l,icon:z}))};C.displayName="EllipsisOutlined";var x=$.forwardRef(C)},8812:function(ot,re,s){"use strict";s.d(re,{Z:function(){return x}});var D=s(28991),$=s(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"},z=L,p=s(30076),C=function(g,l){return $.createElement(p.Z,(0,D.Z)((0,D.Z)({},g),{},{ref:l,icon:z}))};C.displayName="RightOutlined";var x=$.forwardRef(C)},98082:function(ot,re,s){"use strict";var D=s(28481),$=s(67294),L=s(31808);re.Z=function(){var z=$.useState(!1),p=(0,D.Z)(z,2),C=p[0],x=p[1];return $.useEffect(function(){x((0,L.fk)())},[]),C}},24308:function(ot,re,s){"use strict";s.d(re,{c4:function(){return L}});var D=s(96156),$=s(22122),L=["xxl","xl","lg","md","sm","xs"],z={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},p=new Map,C=-1,x={},E={matchHandlers:{},dispatch:function(l){return x=l,p.forEach(function(G){return G(x)}),p.size>=1},subscribe:function(l){return p.size||this.register(),C+=1,p.set(C,l),l(x),C},unsubscribe:function(l){p.delete(l),p.size||this.unregister()},unregister:function(){var l=this;Object.keys(z).forEach(function(G){var P=z[G],S=l.matchHandlers[P];S==null||S.mql.removeListener(S==null?void 0:S.listener)}),p.clear()},register:function(){var l=this;Object.keys(z).forEach(function(G){var P=z[G],S=function(xe){var a=xe.matches;l.dispatch((0,$.Z)((0,$.Z)({},x),(0,D.Z)({},G,a)))},ye=window.matchMedia(P);ye.addListener(S),l.matchHandlers[P]={mql:ye,listener:S},S(ye)})}};re.ZP=E},31808:function(ot,re,s){"use strict";s.d(re,{jD:function(){return $},fk:function(){return z}});var D=s(98924),$=function(){return(0,D.Z)()&&window.document.documentElement},L,z=function(){if(!$())return!1;if(L!==void 0)return L;var C=document.createElement("div");return C.style.display="flex",C.style.flexDirection="column",C.style.rowGap="1px",C.appendChild(document.createElement("div")),C.appendChild(document.createElement("div")),document.body.appendChild(C),L=C.scrollHeight===1,document.body.removeChild(C),L}},69578:function(ot,re,s){"use strict";s.d(re,{Z:function(){return dn}});var D=s(22122),$=s(90484),L=s(96156),z=s(28481),p=s(8812),C=s(94184),x=s.n(C),E=s(28991),g=s(81253),l=s(67294),G=s(77787),P={adjustX:1,adjustY:1},S=[0,0],ye={topLeft:{points:["bl","tl"],overflow:P,offset:[0,-4],targetOffset:S},topCenter:{points:["bc","tc"],overflow:P,offset:[0,-4],targetOffset:S},topRight:{points:["br","tr"],overflow:P,offset:[0,-4],targetOffset:S},bottomLeft:{points:["tl","bl"],overflow:P,offset:[0,4],targetOffset:S},bottomCenter:{points:["tc","bc"],overflow:P,offset:[0,4],targetOffset:S},bottomRight:{points:["tr","br"],overflow:P,offset:[0,4],targetOffset:S}},We=ye,xe=s(15105),a=s(75164),Mn=s(88603),Sn=xe.Z.ESC,nn=xe.Z.TAB;function rn(v){var c=v.visible,K=v.setTriggerVisible,y=v.triggerRef,W=v.onVisibleChange,J=v.autoFocus,se=l.useRef(!1),ae=function(){if(c&&y.current){var U,Q,Y,le;(U=y.current)===null||U===void 0||(Q=U.triggerRef)===null||Q===void 0||(Y=Q.current)===null||Y===void 0||(le=Y.focus)===null||le===void 0||le.call(Y),K(!1),typeof W=="function"&&W(!1)}},X=function(){var U,Q,Y,le,je=(0,Mn.tS)((U=y.current)===null||U===void 0||(Q=U.popupRef)===null||Q===void 0||(Y=Q.current)===null||Y===void 0||(le=Y.getElement)===null||le===void 0?void 0:le.call(Y)),Ee=je[0];return(Ee==null?void 0:Ee.focus)?(Ee.focus(),se.current=!0,!0):!1},ie=function(U){switch(U.keyCode){case Sn:ae();break;case nn:{var Q=!1;se.current||(Q=X()),Q?U.preventDefault():ae();break}}};l.useEffect(function(){return c?(window.addEventListener("keydown",ie),J&&(0,a.Z)(X,3),function(){window.removeEventListener("keydown",ie),se.current=!1}):function(){se.current=!1}},[c])}var jt=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus"];function an(v,c){var K=v.arrow,y=K===void 0?!1:K,W=v.prefixCls,J=W===void 0?"rc-dropdown":W,se=v.transitionName,ae=v.animation,X=v.align,ie=v.placement,be=ie===void 0?"bottomLeft":ie,U=v.placements,Q=U===void 0?We:U,Y=v.getPopupContainer,le=v.showAction,je=v.hideAction,Ee=v.overlayClassName,et=v.overlayStyle,Ye=v.visible,Fe=v.trigger,Pe=Fe===void 0?["hover"]:Fe,tt=v.autoFocus,nt=(0,g.Z)(v,jt),Me=l.useState(),Te=(0,z.Z)(Me,2),Je=Te[0],Ae=Te[1],ee="visible"in v?Ye:Je,Le=l.useRef(null);l.useImperativeHandle(c,function(){return Le.current}),rn({visible:ee,setTriggerVisible:Ae,triggerRef:Le,onVisibleChange:v.onVisibleChange,autoFocus:tt});var ke=function(){var j=v.overlay,ue;return typeof j=="function"?ue=j():ue=j,ue},Xe=function(j){var ue=v.onOverlayClick;Ae(!1),ue&&ue(j)},Ie=function(j){var ue=v.onVisibleChange;Ae(j),typeof ue=="function"&&ue(j)},Ke=function(){var j=ke();return l.createElement(l.Fragment,null,y&&l.createElement("div",{className:"".concat(J,"-arrow")}),j)},rt=function(){var j=v.overlay;return typeof j=="function"?Ke:Ke()},$e=function(){var j=v.minOverlayWidthMatchTrigger,ue=v.alignPoint;return"minOverlayWidthMatchTrigger"in v?j:!ue},q=function(){var j=v.openClassName;return j!==void 0?j:"".concat(J,"-open")},Qe=function(){var j=v.children,ue=j.props?j.props:{},he=x()(ue.className,q());return ee&&j?l.cloneElement(j,{className:he}):j},_e=je;return!_e&&Pe.indexOf("contextMenu")!==-1&&(_e=["click"]),l.createElement(G.Z,(0,E.Z)((0,E.Z)({builtinPlacements:Q},nt),{},{prefixCls:J,ref:Le,popupClassName:x()(Ee,(0,L.Z)({},"".concat(J,"-show-arrow"),y)),popupStyle:et,action:Pe,showAction:le,hideAction:_e||[],popupPlacement:be,popupAlign:X,popupTransitionName:se,popupAnimation:ae,popupVisible:ee,stretch:$e()?"minWidth":"",popup:rt(),onPopupVisibleChange:Ie,onPopupClick:Xe,getPopupContainer:Y}),Qe())}var In=l.forwardRef(an),On=In,De=s(66680),Zn=s(21770),bt=s(38993),Ft=s(53124),ln=s(76529),Rt=s(80636),on=s(96159),ft=s(93355),sn=s(44545),un=s(71577),xt=s(4173),Ge=s(50344),Et=s(98082);function Nn(v){var c=v.className,K=v.direction,y=v.index,W=v.marginDirection,J=v.children,se=v.split,ae=v.wrap,X=l.useContext(wt),ie=X.horizontalSize,be=X.verticalSize,U=X.latestIndex,Q=X.supportFlexGap,Y={};return Q||(K==="vertical"?y<U&&(Y={marginBottom:ie/(se?2:1)}):Y=(0,D.Z)((0,D.Z)({},y<U&&(0,L.Z)({},W,ie/(se?2:1))),ae&&{paddingBottom:be})),J==null?null:l.createElement(l.Fragment,null,l.createElement("div",{className:c,style:Y},J),y<U&&se&&l.createElement("span",{className:"".concat(c,"-split"),style:Y},se))}var kt=function(v,c){var K={};for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&c.indexOf(y)<0&&(K[y]=v[y]);if(v!=null&&typeof Object.getOwnPropertySymbols=="function")for(var W=0,y=Object.getOwnPropertySymbols(v);W<y.length;W++)c.indexOf(y[W])<0&&Object.prototype.propertyIsEnumerable.call(v,y[W])&&(K[y[W]]=v[y[W]]);return K},wt=l.createContext({latestIndex:0,horizontalSize:0,verticalSize:0,supportFlexGap:!1}),Vt={small:8,middle:16,large:24};function Dt(v){return typeof v=="string"?Vt[v]:v||0}var Tt=function(c){var K,y=l.useContext(Ft.E_),W=y.getPrefixCls,J=y.space,se=y.direction,ae=c.size,X=ae===void 0?(J==null?void 0:J.size)||"small":ae,ie=c.align,be=c.className,U=c.children,Q=c.direction,Y=Q===void 0?"horizontal":Q,le=c.prefixCls,je=c.split,Ee=c.style,et=c.wrap,Ye=et===void 0?!1:et,Fe=kt(c,["size","align","className","children","direction","prefixCls","split","style","wrap"]),Pe=(0,Et.Z)(),tt=l.useMemo(function(){return(Array.isArray(X)?X:[X,X]).map(function(q){return Dt(q)})},[X]),nt=(0,z.Z)(tt,2),Me=nt[0],Te=nt[1],Je=(0,Ge.Z)(U,{keepEmpty:!0}),Ae=ie===void 0&&Y==="horizontal"?"center":ie,ee=W("space",le),Le=x()(ee,"".concat(ee,"-").concat(Y),(K={},(0,L.Z)(K,"".concat(ee,"-rtl"),se==="rtl"),(0,L.Z)(K,"".concat(ee,"-align-").concat(Ae),Ae),K),be),ke="".concat(ee,"-item"),Xe=se==="rtl"?"marginLeft":"marginRight",Ie=0,Ke=Je.map(function(q,Qe){q!=null&&(Ie=Qe);var _e=q&&q.key||"".concat(ke,"-").concat(Qe);return l.createElement(Nn,{className:ke,key:_e,direction:Y,index:Qe,marginDirection:Xe,split:je,wrap:Ye},q)}),rt=l.useMemo(function(){return{horizontalSize:Me,verticalSize:Te,latestIndex:Ie,supportFlexGap:Pe}},[Me,Te,Ie,Pe]);if(Je.length===0)return null;var $e={};return Ye&&($e.flexWrap="wrap",Pe||($e.marginBottom=-Te)),Pe&&($e.columnGap=Me,$e.rowGap=Te),l.createElement("div",(0,D.Z)({className:Le,style:(0,D.Z)((0,D.Z)({},$e),Ee)},Fe),l.createElement(wt.Provider,{value:rt},Ke))},Bt=Tt;Bt.Compact=xt.ZP;var Pt=Bt,Mt=function(v,c){var K={};for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&c.indexOf(y)<0&&(K[y]=v[y]);if(v!=null&&typeof Object.getOwnPropertySymbols=="function")for(var W=0,y=Object.getOwnPropertySymbols(v);W<y.length;W++)c.indexOf(y[W])<0&&Object.prototype.propertyIsEnumerable.call(v,y[W])&&(K[y[W]]=v[y[W]]);return K},Ut=function(c){var K=l.useContext(Ft.E_),y=K.getPopupContainer,W=K.getPrefixCls,J=K.direction,se=c.prefixCls,ae=c.type,X=ae===void 0?"default":ae,ie=c.danger,be=c.disabled,U=c.loading,Q=c.onClick,Y=c.htmlType,le=c.children,je=c.className,Ee=c.menu,et=c.arrow,Ye=c.autoFocus,Fe=c.overlay,Pe=c.trigger,tt=c.align,nt=c.visible,Me=c.open,Te=c.onVisibleChange,Je=c.onOpenChange,Ae=c.placement,ee=c.getPopupContainer,Le=c.href,ke=c.icon,Xe=ke===void 0?l.createElement(sn.Z,null):ke,Ie=c.title,Ke=c.buttonsRender,rt=Ke===void 0?function(An){return An}:Ke,$e=c.mouseEnterDelay,q=c.mouseLeaveDelay,Qe=c.overlayClassName,_e=c.overlayStyle,Ve=c.destroyPopupOnHide,j=Mt(c,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","visible","open","onVisibleChange","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide"]),ue=W("dropdown-button",se),he={menu:Ee,arrow:et,autoFocus:Ye,align:tt,disabled:be,trigger:be?[]:Pe,onOpenChange:Je||Te,getPopupContainer:ee||y,mouseEnterDelay:$e,mouseLeaveDelay:q,overlayClassName:Qe,overlayStyle:_e,destroyPopupOnHide:Ve},Ce=(0,xt.ri)(ue,J),de=Ce.compactSize,At=Ce.compactItemClassnames,mt=x()(ue,At,je);"overlay"in c&&(he.overlay=Fe),"open"in c?he.open=Me:"visible"in c&&(he.open=nt),"placement"in c?he.placement=Ae:he.placement=J==="rtl"?"bottomLeft":"bottomRight";var vn=l.createElement(un.Z,{type:X,danger:ie,disabled:be,loading:U,onClick:Q,htmlType:Y,href:Le,title:Ie},le),Lt=l.createElement(un.Z,{type:X,danger:ie,icon:Xe}),wn=rt([vn,Lt]),st=(0,z.Z)(wn,2),Dn=st[0],Tn=st[1];return l.createElement(Pt.Compact,(0,D.Z)({className:mt,size:de,block:!0},j),Dn,l.createElement(Ht,(0,D.Z)({},he),Tn))};Ut.__ANT_BUTTON=!0;var Rn=Ut,Un=(0,ft.b)("topLeft","topCenter","topRight","bottomLeft","bottomCenter","bottomRight","top","bottom"),cn=function(c){var K=l.useContext(Ft.E_),y=K.getPopupContainer,W=K.getPrefixCls,J=K.direction,se=function(){var Ce=W(),de=c.placement,At=de===void 0?"":de,mt=c.transitionName;return mt!==void 0?mt:At.includes("top")?"".concat(Ce,"-slide-down"):"".concat(Ce,"-slide-up")},ae=function(){var Ce=c.placement;if(!Ce)return J==="rtl"?"bottomRight":"bottomLeft";if(Ce.includes("Center")){var de=Ce.slice(0,Ce.indexOf("Center"));return de}return Ce},X=c.menu,ie=c.arrow,be=c.prefixCls,U=c.children,Q=c.trigger,Y=c.disabled,le=c.dropdownRender,je=c.getPopupContainer,Ee=c.overlayClassName,et=c.visible,Ye=c.open,Fe=c.onVisibleChange,Pe=c.onOpenChange,tt=c.mouseEnterDelay,nt=tt===void 0?.15:tt,Me=c.mouseLeaveDelay,Te=Me===void 0?.1:Me,Je=c.autoAdjustOverflow,Ae=Je===void 0?!0:Je,ee=W("dropdown",be),Le=l.Children.only(U),ke=(0,on.Tm)(Le,{className:x()("".concat(ee,"-trigger"),(0,L.Z)({},"".concat(ee,"-rtl"),J==="rtl"),Le.props.className),disabled:Y}),Xe=Y?[]:Q,Ie;Xe&&Xe.includes("contextMenu")&&(Ie=!0);var Ke=(0,Zn.Z)(!1,{value:Ye!==void 0?Ye:et}),rt=(0,z.Z)(Ke,2),$e=rt[0],q=rt[1],Qe=(0,De.Z)(function(he){Fe==null||Fe(he),Pe==null||Pe(he),q(he)}),_e=x()(Ee,(0,L.Z)({},"".concat(ee,"-rtl"),J==="rtl")),Ve=(0,Rt.Z)({arrowPointAtCenter:(0,$.Z)(ie)==="object"&&ie.pointAtCenter,autoAdjustOverflow:Ae}),j=l.useCallback(function(){q(!1)},[]),ue=function(){var Ce=c.overlay,de;return(X==null?void 0:X.items)?de=l.createElement(bt.Z,(0,D.Z)({},X)):typeof Ce=="function"?de=Ce():de=Ce,le&&(de=le(de)),de=l.Children.only(typeof de=="string"?l.createElement("span",null,de):de),l.createElement(ln.J,{prefixCls:"".concat(ee,"-menu"),expandIcon:l.createElement("span",{className:"".concat(ee,"-menu-submenu-arrow")},l.createElement(p.Z,{className:"".concat(ee,"-menu-submenu-arrow-icon")})),mode:"vertical",selectable:!1,onClick:j,validator:function(mt){var vn=mt.mode}},l.createElement(xt.BR,null,de))};return l.createElement(On,(0,D.Z)({alignPoint:Ie},c,{mouseEnterDelay:nt,mouseLeaveDelay:Te,visible:$e,builtinPlacements:Ve,arrow:!!ie,overlayClassName:_e,prefixCls:ee,getPopupContainer:je||y,transitionName:se(),trigger:Xe,overlay:ue,placement:ae(),onVisibleChange:Qe}),ke)};cn.Button=Rn;var Ht=cn,dn=Ht},76529:function(ot,re,s){"use strict";s.d(re,{J:function(){return p}});var D=s(22122),$=s(67294),L=function(C,x){var E={};for(var g in C)Object.prototype.hasOwnProperty.call(C,g)&&x.indexOf(g)<0&&(E[g]=C[g]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,g=Object.getOwnPropertySymbols(C);l<g.length;l++)x.indexOf(g[l])<0&&Object.prototype.propertyIsEnumerable.call(C,g[l])&&(E[g[l]]=C[g[l]]);return E},z=$.createContext(null),p=function(x){var E=x.children,g=L(x,["children"]),l=$.useContext(z),G=$.useMemo(function(){return(0,D.Z)((0,D.Z)({},l),g)},[l,g.prefixCls,g.mode,g.selectable]);return $.createElement(z.Provider,{value:G},E)};re.Z=z},38993:function(ot,re,s){"use strict";s.d(re,{Z:function(){return Mr}});var D=s(6610),$=s(5991),L=s(10379),z=s(44144),p=s(22122),C=s(44545),x=s(94184),E=s.n(x),g=s(96156),l=s(28991),G=s(85061),P=s(28481),S=s(81253),ye=s(19214),We=s(21770),xe=s(80334),a=s(67294),Mn=s(73935),Sn=s(96774),nn=s.n(Sn),rn=a.createContext(null);function jt(r,e){return r===void 0?null:"".concat(r,"-").concat(e)}function an(r){var e=a.useContext(rn);return jt(e,r)}var In=s(56982),On=["children","locked"],De=a.createContext(null);function Zn(r,e){var i=(0,l.Z)({},r);return Object.keys(e).forEach(function(t){var n=e[t];n!==void 0&&(i[t]=n)}),i}function bt(r){var e=r.children,i=r.locked,t=(0,S.Z)(r,On),n=a.useContext(De),u=(0,In.Z)(function(){return Zn(n,t)},[n,t],function(o,d){return!i&&(o[0]!==d[0]||!nn()(o[1],d[1]))});return a.createElement(De.Provider,{value:u},e)}var Ft=[],ln=a.createContext(null);function Rt(){return a.useContext(ln)}var on=a.createContext(Ft);function ft(r){var e=a.useContext(on);return a.useMemo(function(){return r!==void 0?[].concat((0,G.Z)(e),[r]):e},[e,r])}var sn=a.createContext(null),un=a.createContext({}),xt=un,Ge=s(15105),Et=s(75164),Nn=s(88603),kt=Ge.Z.LEFT,wt=Ge.Z.RIGHT,Vt=Ge.Z.UP,Dt=Ge.Z.DOWN,Tt=Ge.Z.ENTER,Bt=Ge.Z.ESC,Pt=Ge.Z.HOME,Mt=Ge.Z.END,Ut=[Vt,Dt,kt,wt];function Rn(r,e,i,t){var n,u,o,d,f="prev",m="next",h="children",N="parent";if(r==="inline"&&t===Tt)return{inlineTrigger:!0};var R=(n={},(0,g.Z)(n,Vt,f),(0,g.Z)(n,Dt,m),n),A=(u={},(0,g.Z)(u,kt,i?m:f),(0,g.Z)(u,wt,i?f:m),(0,g.Z)(u,Dt,h),(0,g.Z)(u,Tt,h),u),O=(o={},(0,g.Z)(o,Vt,f),(0,g.Z)(o,Dt,m),(0,g.Z)(o,Tt,h),(0,g.Z)(o,Bt,N),(0,g.Z)(o,kt,i?h:N),(0,g.Z)(o,wt,i?N:h),o),w={inline:R,horizontal:A,vertical:O,inlineSub:R,horizontalSub:O,verticalSub:O},F=(d=w["".concat(r).concat(e?"":"Sub")])===null||d===void 0?void 0:d[t];switch(F){case f:return{offset:-1,sibling:!0};case m:return{offset:1,sibling:!0};case N:return{offset:-1,sibling:!1};case h:return{offset:1,sibling:!1};default:return null}}function Un(r){for(var e=r;e;){if(e.getAttribute("data-menu-list"))return e;e=e.parentElement}return null}function cn(r,e){for(var i=r||document.activeElement;i;){if(e.has(i))return i;i=i.parentElement}return null}function Ht(r,e){var i=(0,Nn.tS)(r,!0);return i.filter(function(t){return e.has(t)})}function dn(r,e,i){var t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!r)return null;var n=Ht(r,e),u=n.length,o=n.findIndex(function(d){return i===d});return t<0?o===-1?o=u-1:o-=1:t>0&&(o+=1),o=(o+u)%u,n[o]}function v(r,e,i,t,n,u,o,d,f,m){var h=a.useRef(),N=a.useRef();N.current=e;var R=function(){Et.Z.cancel(h.current)};return a.useEffect(function(){return function(){R()}},[]),function(A){var O=A.which;if([].concat(Ut,[Tt,Bt,Pt,Mt]).includes(O)){var w,F,k,Z=function(){w=new Set,F=new Map,k=new Map;var ve=u();return ve.forEach(function(oe){var ce=document.querySelector("[data-menu-id='".concat(jt(t,oe),"']"));ce&&(w.add(ce),k.set(ce,oe),F.set(oe,ce))}),w};Z();var I=F.get(e),b=cn(I,w),T=k.get(b),M=Rn(r,o(T,!0).length===1,i,O);if(!M&&O!==Pt&&O!==Mt)return;(Ut.includes(O)||[Pt,Mt].includes(O))&&A.preventDefault();var V=function(ve){if(ve){var oe=ve,ce=ve.querySelector("a");ce!=null&&ce.getAttribute("href")&&(oe=ce);var Ne=k.get(ve);d(Ne),R(),h.current=(0,Et.Z)(function(){N.current===Ne&&oe.focus()})}};if([Pt,Mt].includes(O)||M.sibling||!b){var me;!b||r==="inline"?me=n.current:me=Un(b);var B,Oe=Ht(me,w);O===Pt?B=Oe[0]:O===Mt?B=Oe[Oe.length-1]:B=dn(me,w,b,M.offset),V(B)}else if(M.inlineTrigger)f(T);else if(M.offset>0)f(T,!0),R(),h.current=(0,Et.Z)(function(){Z();var pe=b.getAttribute("aria-controls"),ve=document.getElementById(pe),oe=dn(ve,w);V(oe)},5);else if(M.offset<0){var Ze=o(T,!0),te=Ze[Ze.length-2],Se=F.get(te);f(te,!1),V(Se)}}m==null||m(A)}}function c(r){Promise.resolve().then(r)}var K="__RC_UTIL_PATH_SPLIT__",y=function(e){return e.join(K)},W=function(e){return e.split(K)},J="rc-menu-more";function se(){var r=a.useState({}),e=(0,P.Z)(r,2),i=e[1],t=(0,a.useRef)(new Map),n=(0,a.useRef)(new Map),u=a.useState([]),o=(0,P.Z)(u,2),d=o[0],f=o[1],m=(0,a.useRef)(0),h=(0,a.useRef)(!1),N=function(){h.current||i({})},R=(0,a.useCallback)(function(I,b){var T=y(b);n.current.set(T,I),t.current.set(I,T),m.current+=1;var M=m.current;c(function(){M===m.current&&N()})},[]),A=(0,a.useCallback)(function(I,b){var T=y(b);n.current.delete(T),t.current.delete(I)},[]),O=(0,a.useCallback)(function(I){f(I)},[]),w=(0,a.useCallback)(function(I,b){var T=t.current.get(I)||"",M=W(T);return b&&d.includes(M[0])&&M.unshift(J),M},[d]),F=(0,a.useCallback)(function(I,b){return I.some(function(T){var M=w(T,!0);return M.includes(b)})},[w]),k=function(){var b=(0,G.Z)(t.current.keys());return d.length&&b.push(J),b},Z=(0,a.useCallback)(function(I){var b="".concat(t.current.get(I)).concat(K),T=new Set;return(0,G.Z)(n.current.keys()).forEach(function(M){M.startsWith(b)&&T.add(n.current.get(M))}),T},[]);return a.useEffect(function(){return function(){h.current=!0}},[]),{registerPath:R,unregisterPath:A,refreshOverflowKeys:O,isSubPathKey:F,getKeyPath:w,getKeys:k,getSubPathKeys:Z}}function ae(r){var e=a.useRef(r);e.current=r;var i=a.useCallback(function(){for(var t,n=arguments.length,u=new Array(n),o=0;o<n;o++)u[o]=arguments[o];return(t=e.current)===null||t===void 0?void 0:t.call.apply(t,[e].concat(u))},[]);return r?i:void 0}var X=Math.random().toFixed(5).toString().slice(2),ie=0;function be(r){var e=(0,We.Z)(r,{value:r}),i=(0,P.Z)(e,2),t=i[0],n=i[1];return a.useEffect(function(){ie+=1;var u="".concat(X,"-").concat(ie);n("rc-menu-uuid-".concat(u))},[]),t}var U=s(98423);function Q(r,e,i,t){var n=a.useContext(De),u=n.activeKey,o=n.onActive,d=n.onInactive,f={active:u===r};return e||(f.onMouseEnter=function(m){i==null||i({key:r,domEvent:m}),o(r)},f.onMouseLeave=function(m){t==null||t({key:r,domEvent:m}),d(r)}),f}var Y=["item"];function le(r){var e=r.item,i=(0,S.Z)(r,Y);return Object.defineProperty(i,"item",{get:function(){return(0,xe.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e}}),i}function je(r){var e=r.icon,i=r.props,t=r.children,n;return typeof e=="function"?n=a.createElement(e,(0,l.Z)({},i)):n=e,n||t||null}function Ee(r){var e=a.useContext(De),i=e.mode,t=e.rtl,n=e.inlineIndent;if(i!=="inline")return null;var u=r;return t?{paddingRight:u*n}:{paddingLeft:u*n}}var et=["title","attribute","elementRef"],Ye=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Fe=["active"],Pe=function(r){(0,L.Z)(i,r);var e=(0,z.Z)(i);function i(){return(0,D.Z)(this,i),e.apply(this,arguments)}return(0,$.Z)(i,[{key:"render",value:function(){var n=this.props,u=n.title,o=n.attribute,d=n.elementRef,f=(0,S.Z)(n,et),m=(0,U.Z)(f,["eventKey"]);return(0,xe.ZP)(!o,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),a.createElement(ye.Z.Item,(0,p.Z)({},o,{title:typeof u=="string"?u:void 0},m,{ref:d}))}}]),i}(a.Component),tt=function(e){var i,t=e.style,n=e.className,u=e.eventKey,o=e.warnKey,d=e.disabled,f=e.itemIcon,m=e.children,h=e.role,N=e.onMouseEnter,R=e.onMouseLeave,A=e.onClick,O=e.onKeyDown,w=e.onFocus,F=(0,S.Z)(e,Ye),k=an(u),Z=a.useContext(De),I=Z.prefixCls,b=Z.onItemClick,T=Z.disabled,M=Z.overflowDisabled,V=Z.itemIcon,me=Z.selectedKeys,B=Z.onActive,Oe=a.useContext(xt),Ze=Oe._internalRenderMenuItem,te="".concat(I,"-item"),Se=a.useRef(),pe=a.useRef(),ve=T||d,oe=ft(u),ce=function(ge){return{key:u,keyPath:(0,G.Z)(oe).reverse(),item:Se.current,domEvent:ge}},Ne=f||V,It=Q(u,ve,N,R),pt=It.active,ut=(0,S.Z)(It,Fe),at=me.includes(u),gt=Ee(oe.length),ht=function(ge){if(!ve){var Be=ce(ge);A==null||A(le(Be)),b(Be)}},Re=function(ge){if(O==null||O(ge),ge.which===Ge.Z.ENTER){var Be=ce(ge);A==null||A(le(Be)),b(Be)}},fe=function(ge){B(u),w==null||w(ge)},ct={};e.role==="option"&&(ct["aria-selected"]=at);var it=a.createElement(Pe,(0,p.Z)({ref:Se,elementRef:pe,role:h===null?"none":h||"menuitem",tabIndex:d?null:-1,"data-menu-id":M&&k?null:k},F,ut,ct,{component:"li","aria-disabled":d,style:(0,l.Z)((0,l.Z)({},gt),t),className:E()(te,(i={},(0,g.Z)(i,"".concat(te,"-active"),pt),(0,g.Z)(i,"".concat(te,"-selected"),at),(0,g.Z)(i,"".concat(te,"-disabled"),ve),i),n),onClick:ht,onKeyDown:Re,onFocus:fe}),m,a.createElement(je,{props:(0,l.Z)((0,l.Z)({},e),{},{isSelected:at}),icon:Ne}));return Ze&&(it=Ze(it,e,{selected:at})),it};function nt(r){var e=r.eventKey,i=Rt(),t=ft(e);return a.useEffect(function(){if(i)return i.registerPath(e,t),function(){i.unregisterPath(e,t)}},[t]),i?null:a.createElement(tt,r)}var Me=nt,Te=["className","children"],Je=function(e,i){var t=e.className,n=e.children,u=(0,S.Z)(e,Te),o=a.useContext(De),d=o.prefixCls,f=o.mode,m=o.rtl;return a.createElement("ul",(0,p.Z)({className:E()(d,m&&"".concat(d,"-rtl"),"".concat(d,"-sub"),"".concat(d,"-").concat(f==="inline"?"inline":"vertical"),t)},u,{"data-menu-list":!0,ref:i}),n)},Ae=a.forwardRef(Je);Ae.displayName="SubMenuList";var ee=Ae,Le=s(90484),ke=s(50344),Xe=["label","children","key","type"];function Ie(r,e){return(0,ke.Z)(r).map(function(i,t){if(a.isValidElement(i)){var n,u,o=i.key,d=(n=(u=i.props)===null||u===void 0?void 0:u.eventKey)!==null&&n!==void 0?n:o,f=d==null;f&&(d="tmp_key-".concat([].concat((0,G.Z)(e),[t]).join("-")));var m={key:d,eventKey:d};return a.cloneElement(i,m)}return i})}function Ke(r){return(r||[]).map(function(e,i){if(e&&(0,Le.Z)(e)==="object"){var t=e,n=t.label,u=t.children,o=t.key,d=t.type,f=(0,S.Z)(t,Xe),m=o!=null?o:"tmp-".concat(i);return u||d==="group"?d==="group"?a.createElement(fn,(0,p.Z)({key:m},f,{title:n}),Ke(u)):a.createElement(Lt,(0,p.Z)({key:m},f,{title:n}),Ke(u)):d==="divider"?a.createElement(Ln,(0,p.Z)({key:m},f)):a.createElement(Me,(0,p.Z)({key:m},f),n)}return null}).filter(function(e){return e})}function rt(r,e,i){var t=r;return e&&(t=Ke(e)),Ie(t,i)}var $e=s(77787),q={adjustX:1,adjustY:1},Qe={topLeft:{points:["bl","tl"],overflow:q,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:q,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:q,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:q,offset:[4,0]}},_e={topLeft:{points:["bl","tl"],overflow:q,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:q,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:q,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:q,offset:[4,0]}},Ve=null;function j(r,e,i){if(e)return e;if(i)return i[r]||i.other}var ue={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function he(r){var e=r.prefixCls,i=r.visible,t=r.children,n=r.popup,u=r.popupClassName,o=r.popupOffset,d=r.disabled,f=r.mode,m=r.onVisibleChange,h=a.useContext(De),N=h.getPopupContainer,R=h.rtl,A=h.subMenuOpenDelay,O=h.subMenuCloseDelay,w=h.builtinPlacements,F=h.triggerSubMenuAction,k=h.forceSubMenuRender,Z=h.rootClassName,I=h.motion,b=h.defaultMotions,T=a.useState(!1),M=(0,P.Z)(T,2),V=M[0],me=M[1],B=R?(0,l.Z)((0,l.Z)({},_e),w):(0,l.Z)((0,l.Z)({},Qe),w),Oe=ue[f],Ze=j(f,I,b),te=(0,l.Z)((0,l.Z)({},Ze),{},{leavedClassName:"".concat(e,"-hidden"),removeOnLeave:!1,motionAppear:!0}),Se=a.useRef();return a.useEffect(function(){return Se.current=(0,Et.Z)(function(){me(i)}),function(){Et.Z.cancel(Se.current)}},[i]),a.createElement($e.Z,{prefixCls:e,popupClassName:E()("".concat(e,"-popup"),(0,g.Z)({},"".concat(e,"-rtl"),R),u,Z),stretch:f==="horizontal"?"minWidth":null,getPopupContainer:N,builtinPlacements:B,popupPlacement:Oe,popupVisible:V,popup:n,popupAlign:o&&{offset:o},action:d?[]:[F],mouseEnterDelay:A,mouseLeaveDelay:O,onPopupVisibleChange:m,forceRender:k,popupMotion:te},t)}var Ce=s(63441);function de(r){var e=r.id,i=r.open,t=r.keyPath,n=r.children,u="inline",o=a.useContext(De),d=o.prefixCls,f=o.forceSubMenuRender,m=o.motion,h=o.defaultMotions,N=o.mode,R=a.useRef(!1);R.current=N===u;var A=a.useState(!R.current),O=(0,P.Z)(A,2),w=O[0],F=O[1],k=R.current?i:!1;a.useEffect(function(){R.current&&F(!1)},[N]);var Z=(0,l.Z)({},j(u,m,h));t.length>1&&(Z.motionAppear=!1);var I=Z.onVisibleChanged;return Z.onVisibleChanged=function(b){return!R.current&&!b&&F(!0),I==null?void 0:I(b)},w?null:a.createElement(bt,{mode:u,locked:!R.current},a.createElement(Ce.Z,(0,p.Z)({visible:k},Z,{forceRender:f,removeOnLeave:!1,leavedClassName:"".concat(d,"-hidden")}),function(b){var T=b.className,M=b.style;return a.createElement(ee,{id:e,className:T,style:M},n)}))}var At=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],mt=["active"],vn=function(e){var i,t=e.style,n=e.className,u=e.title,o=e.eventKey,d=e.warnKey,f=e.disabled,m=e.internalPopupClose,h=e.children,N=e.itemIcon,R=e.expandIcon,A=e.popupClassName,O=e.popupOffset,w=e.onClick,F=e.onMouseEnter,k=e.onMouseLeave,Z=e.onTitleClick,I=e.onTitleMouseEnter,b=e.onTitleMouseLeave,T=(0,S.Z)(e,At),M=an(o),V=a.useContext(De),me=V.prefixCls,B=V.mode,Oe=V.openKeys,Ze=V.disabled,te=V.overflowDisabled,Se=V.activeKey,pe=V.selectedKeys,ve=V.itemIcon,oe=V.expandIcon,ce=V.onItemClick,Ne=V.onOpenChange,It=V.onActive,pt=a.useContext(xt),ut=pt._internalRenderSubMenuItem,at=a.useContext(sn),gt=at.isSubPathKey,ht=ft(),Re="".concat(me,"-submenu"),fe=Ze||f,ct=a.useRef(),it=a.useRef(),dt=N||ve,ge=R||oe,Be=Oe.includes(o),vt=!te&&Be,Jt=gt(pe,o),Xt=Q(o,fe,I,b),Ct=Xt.active,Kt=(0,S.Z)(Xt,mt),pn=a.useState(!1),gn=(0,P.Z)(pn,2),zn=gn[0],hn=gn[1],Qt=function(qe){fe||hn(qe)},Wn=function(qe){Qt(!0),F==null||F({key:o,domEvent:qe})},lt=function(qe){Qt(!1),k==null||k({key:o,domEvent:qe})},Cn=a.useMemo(function(){return Ct||(B!=="inline"?zn||gt([Se],o):!1)},[B,Ct,Se,zn,o,gt]),yn=Ee(ht.length),bn=function(qe){fe||(Z==null||Z({key:o,domEvent:qe}),B==="inline"&&Ne(o,!Be))},jn=ae(function(He){w==null||w(le(He)),ce(He)}),$t=function(qe){B!=="inline"&&Ne(o,qe)},_t=function(){It(o)},Ot=M&&"".concat(M,"-popup"),qt=a.createElement("div",(0,p.Z)({role:"menuitem",style:yn,className:"".concat(Re,"-title"),tabIndex:fe?null:-1,ref:ct,title:typeof u=="string"?u:null,"data-menu-id":te&&M?null:M,"aria-expanded":vt,"aria-haspopup":!0,"aria-controls":Ot,"aria-disabled":fe,onClick:bn,onFocus:_t},Kt),u,a.createElement(je,{icon:B!=="horizontal"?ge:null,props:(0,l.Z)((0,l.Z)({},e),{},{isOpen:vt,isSubMenu:!0})},a.createElement("i",{className:"".concat(Re,"-arrow")}))),zt=a.useRef(B);if(B!=="inline"&&ht.length>1?zt.current="vertical":zt.current=B,!te){var Ue=zt.current;qt=a.createElement(he,{mode:Ue,prefixCls:Re,visible:!m&&vt&&B!=="inline",popupClassName:A,popupOffset:O,popup:a.createElement(bt,{mode:Ue==="horizontal"?"vertical":Ue},a.createElement(ee,{id:Ot,ref:it},h)),disabled:fe,onVisibleChange:$t},qt)}var Wt=a.createElement(ye.Z.Item,(0,p.Z)({role:"none"},T,{component:"li",style:t,className:E()(Re,"".concat(Re,"-").concat(B),n,(i={},(0,g.Z)(i,"".concat(Re,"-open"),vt),(0,g.Z)(i,"".concat(Re,"-active"),Cn),(0,g.Z)(i,"".concat(Re,"-selected"),Jt),(0,g.Z)(i,"".concat(Re,"-disabled"),fe),i)),onMouseEnter:Wn,onMouseLeave:lt}),qt,!te&&a.createElement(de,{id:Ot,open:vt,keyPath:ht},h));return ut&&(Wt=ut(Wt,e,{selected:Jt,active:Cn,open:vt,disabled:fe})),a.createElement(bt,{onItemClick:jn,mode:B==="horizontal"?"vertical":B,itemIcon:dt,expandIcon:ge},Wt)};function Lt(r){var e=r.eventKey,i=r.children,t=ft(e),n=Ie(i,t),u=Rt();a.useEffect(function(){if(u)return u.registerPath(e,t),function(){u.unregisterPath(e,t)}},[t]);var o;return u?o=n:o=a.createElement(vn,r,n),a.createElement(on.Provider,{value:t},o)}var wn=["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"],st=[],Dn=a.forwardRef(function(r,e){var i,t,n=r,u=n.prefixCls,o=u===void 0?"rc-menu":u,d=n.rootClassName,f=n.style,m=n.className,h=n.tabIndex,N=h===void 0?0:h,R=n.items,A=n.children,O=n.direction,w=n.id,F=n.mode,k=F===void 0?"vertical":F,Z=n.inlineCollapsed,I=n.disabled,b=n.disabledOverflow,T=n.subMenuOpenDelay,M=T===void 0?.1:T,V=n.subMenuCloseDelay,me=V===void 0?.1:V,B=n.forceSubMenuRender,Oe=n.defaultOpenKeys,Ze=n.openKeys,te=n.activeKey,Se=n.defaultActiveFirst,pe=n.selectable,ve=pe===void 0?!0:pe,oe=n.multiple,ce=oe===void 0?!1:oe,Ne=n.defaultSelectedKeys,It=n.selectedKeys,pt=n.onSelect,ut=n.onDeselect,at=n.inlineIndent,gt=at===void 0?24:at,ht=n.motion,Re=n.defaultMotions,fe=n.triggerSubMenuAction,ct=fe===void 0?"hover":fe,it=n.builtinPlacements,dt=n.itemIcon,ge=n.expandIcon,Be=n.overflowedIndicator,vt=Be===void 0?"...":Be,Jt=n.overflowedIndicatorPopupClassName,Xt=n.getPopupContainer,Ct=n.onClick,Kt=n.onOpenChange,pn=n.onKeyDown,gn=n.openAnimation,zn=n.openTransitionName,hn=n._internalRenderMenuItem,Qt=n._internalRenderSubMenuItem,Wn=(0,S.Z)(n,wn),lt=a.useMemo(function(){return rt(A,R,st)},[A,R]),Cn=a.useState(!1),yn=(0,P.Z)(Cn,2),bn=yn[0],jn=yn[1],$t=a.useRef(),_t=be(w),Ot=O==="rtl",qt=(0,We.Z)(Oe,{value:Ze,postState:function(H){return H||st}}),zt=(0,P.Z)(qt,2),Ue=zt[0],Wt=zt[1],He=function(H){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function we(){Wt(H),Kt==null||Kt(H)}_?(0,Mn.flushSync)(we):we()},qe=a.useState(Ue),Qn=(0,P.Z)(qe,2),Sr=Qn[0],Ir=Qn[1],Fn=a.useRef(!1),Or=a.useMemo(function(){return(k==="inline"||k==="vertical")&&Z?["vertical",Z]:[k,!1]},[k,Z]),_n=(0,P.Z)(Or,2),xn=_n[0],kn=_n[1],qn=xn==="inline",Zr=a.useState(xn),er=(0,P.Z)(Zr,2),yt=er[0],Nr=er[1],Rr=a.useState(kn),tr=(0,P.Z)(Rr,2),wr=tr[0],Dr=tr[1];a.useEffect(function(){Nr(xn),Dr(kn),!!Fn.current&&(qn?Wt(Sr):He(st))},[xn,kn]);var Tr=a.useState(0),nr=(0,P.Z)(Tr,2),En=nr[0],Ar=nr[1],Vn=En>=lt.length-1||yt!=="horizontal"||b;a.useEffect(function(){qn&&Ir(Ue)},[Ue]),a.useEffect(function(){return Fn.current=!0,function(){Fn.current=!1}},[]);var Zt=se(),rr=Zt.registerPath,ar=Zt.unregisterPath,Lr=Zt.refreshOverflowKeys,ir=Zt.isSubPathKey,Kr=Zt.getKeyPath,$r=Zt.getKeys,zr=Zt.getSubPathKeys,Wr=a.useMemo(function(){return{registerPath:rr,unregisterPath:ar}},[rr,ar]),jr=a.useMemo(function(){return{isSubPathKey:ir}},[ir]);a.useEffect(function(){Lr(Vn?st:lt.slice(En+1).map(function(ne){return ne.key}))},[En,Vn]);var Fr=(0,We.Z)(te||Se&&((i=lt[0])===null||i===void 0?void 0:i.key),{value:te}),lr=(0,P.Z)(Fr,2),en=lr[0],Bn=lr[1],kr=ae(function(ne){Bn(ne)}),Vr=ae(function(){Bn(void 0)});(0,a.useImperativeHandle)(e,function(){return{list:$t.current,focus:function(H){var _,we=en!=null?en:(_=lt.find(function(ea){return!ea.props.disabled}))===null||_===void 0?void 0:_.key;if(we){var ze,Nt,tn;(ze=$t.current)===null||ze===void 0||(Nt=ze.querySelector("li[data-menu-id='".concat(jt(_t,we),"']")))===null||Nt===void 0||(tn=Nt.focus)===null||tn===void 0||tn.call(Nt,H)}}}});var Br=(0,We.Z)(Ne||[],{value:It,postState:function(H){return Array.isArray(H)?H:H==null?st:[H]}}),or=(0,P.Z)(Br,2),Pn=or[0],Ur=or[1],Hr=function(H){if(ve){var _=H.key,we=Pn.includes(_),ze;ce?we?ze=Pn.filter(function(tn){return tn!==_}):ze=[].concat((0,G.Z)(Pn),[_]):ze=[_],Ur(ze);var Nt=(0,l.Z)((0,l.Z)({},H),{},{selectedKeys:ze});we?ut==null||ut(Nt):pt==null||pt(Nt)}!ce&&Ue.length&&yt!=="inline"&&He(st)},Gr=ae(function(ne){Ct==null||Ct(le(ne)),Hr(ne)}),sr=ae(function(ne,H){var _=Ue.filter(function(ze){return ze!==ne});if(H)_.push(ne);else if(yt!=="inline"){var we=zr(ne);_=_.filter(function(ze){return!we.has(ze)})}nn()(Ue,_)||He(_,!0)}),Yr=ae(Xt),Jr=function(H,_){var we=_!=null?_:!Ue.includes(H);sr(H,we)},Xr=v(yt,en,Ot,_t,$t,$r,Kr,Bn,Jr,pn);a.useEffect(function(){jn(!0)},[]);var Qr=a.useMemo(function(){return{_internalRenderMenuItem:hn,_internalRenderSubMenuItem:Qt}},[hn,Qt]),_r=yt!=="horizontal"||b?lt:lt.map(function(ne,H){return a.createElement(bt,{key:ne.key,overflowDisabled:H>En},ne)}),qr=a.createElement(ye.Z,(0,p.Z)({id:w,ref:$t,prefixCls:"".concat(o,"-overflow"),component:"ul",itemComponent:Me,className:E()(o,"".concat(o,"-root"),"".concat(o,"-").concat(yt),m,(t={},(0,g.Z)(t,"".concat(o,"-inline-collapsed"),wr),(0,g.Z)(t,"".concat(o,"-rtl"),Ot),t),d),dir:O,style:f,role:"menu",tabIndex:N,data:_r,renderRawItem:function(H){return H},renderRawRest:function(H){var _=H.length,we=_?lt.slice(-_):null;return a.createElement(Lt,{eventKey:J,title:vt,disabled:Vn,internalPopupClose:_===0,popupClassName:Jt},we)},maxCount:yt!=="horizontal"||b?ye.Z.INVALIDATE:ye.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(H){Ar(H)},onKeyDown:Xr},Wn));return a.createElement(xt.Provider,{value:Qr},a.createElement(rn.Provider,{value:_t},a.createElement(bt,{prefixCls:o,rootClassName:d,mode:yt,openKeys:Ue,rtl:Ot,disabled:I,motion:bn?ht:null,defaultMotions:bn?Re:null,activeKey:en,onActive:kr,onInactive:Vr,selectedKeys:Pn,inlineIndent:gt,subMenuOpenDelay:M,subMenuCloseDelay:me,forceSubMenuRender:B,builtinPlacements:it,triggerSubMenuAction:ct,getPopupContainer:Yr,itemIcon:dt,expandIcon:ge,onItemClick:Gr,onOpenChange:sr},a.createElement(sn.Provider,{value:jr},qr),a.createElement("div",{style:{display:"none"},"aria-hidden":!0},a.createElement(ln.Provider,{value:Wr},lt)))))}),Tn=Dn,An=["className","title","eventKey","children"],ur=["children"],cr=function(e){var i=e.className,t=e.title,n=e.eventKey,u=e.children,o=(0,S.Z)(e,An),d=a.useContext(De),f=d.prefixCls,m="".concat(f,"-item-group");return a.createElement("li",(0,p.Z)({},o,{onClick:function(N){return N.stopPropagation()},className:E()(m,i)}),a.createElement("div",{className:"".concat(m,"-title"),title:typeof t=="string"?t:void 0},t),a.createElement("ul",{className:"".concat(m,"-list")},u))};function fn(r){var e=r.children,i=(0,S.Z)(r,ur),t=ft(i.eventKey),n=Ie(e,t),u=Rt();return u?n:a.createElement(cr,(0,U.Z)(i,["warnKey"]),n)}function Ln(r){var e=r.className,i=r.style,t=a.useContext(De),n=t.prefixCls,u=Rt();return u?null:a.createElement("li",{className:E()("".concat(n,"-item-divider"),e),style:i})}var Gt=Tn;Gt.Item=Me,Gt.SubMenu=Lt,Gt.ItemGroup=fn,Gt.Divider=Ln;var dr=Gt,vr=s(66680),Hn=s(53124),ta=function(r,e){var i={};for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&e.indexOf(t)<0&&(i[t]=r[t]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,t=Object.getOwnPropertySymbols(r);n<t.length;n++)e.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(r,t[n])&&(i[t[n]]=r[t[n]]);return i},na={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},Gn=a.createContext({}),ra=function(){var r=0;return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return r+=1,"".concat(e).concat(r)}}(),aa=null,ia=null,fr=s(33603),St=s(96159),mr=function(r,e){var i={};for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&e.indexOf(t)<0&&(i[t]=r[t]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,t=Object.getOwnPropertySymbols(r);n<t.length;n++)e.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(r,t[n])&&(i[t[n]]=r[t[n]]);return i},pr=function(e){var i=e.prefixCls,t=e.className,n=e.dashed,u=mr(e,["prefixCls","className","dashed"]),o=a.useContext(Hn.E_),d=o.getPrefixCls,f=d("menu",i),m=E()((0,g.Z)({},"".concat(f,"-item-divider-dashed"),!!n),t);return a.createElement(Ln,(0,p.Z)({className:m},u))},Yn=pr,gr=s(45777),hr=(0,a.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),mn=hr,Cr=function(r,e){var i={};for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&e.indexOf(t)<0&&(i[t]=r[t]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,t=Object.getOwnPropertySymbols(r);n<t.length;n++)e.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(r,t[n])&&(i[t[n]]=r[t[n]]);return i},Kn=function(r){(0,L.Z)(i,r);var e=(0,z.Z)(i);function i(){var t;return(0,D.Z)(this,i),t=e.apply(this,arguments),t.renderItem=function(n){var u,o=n.siderCollapsed,d,f=t.context,m=f.prefixCls,h=f.firstLevel,N=f.inlineCollapsed,R=f.direction,A=f.disableMenuItemTitleTooltip,O=t.props,w=O.className,F=O.children,k=t.props,Z=k.title,I=k.icon,b=k.danger,T=Cr(k,["title","icon","danger"]),M=Z;typeof Z=="undefined"?M=h?F:"":Z===!1&&(M="");var V={title:M};!o&&!N&&(V.title=null,V.open=!1);var me=(0,ke.Z)(F).length,B=a.createElement(Me,(0,p.Z)({},T,{className:E()((u={},(0,g.Z)(u,"".concat(m,"-item-danger"),b),(0,g.Z)(u,"".concat(m,"-item-only-child"),(I?me+1:me)===1),u),w),title:typeof Z=="string"?Z:void 0}),(0,St.Tm)(I,{className:E()((0,St.l$)(I)?(d=I.props)===null||d===void 0?void 0:d.className:"","".concat(m,"-item-icon"))}),t.renderItemChildren(N));return A||(B=a.createElement(gr.Z,(0,p.Z)({},V,{placement:R==="rtl"?"left":"right",overlayClassName:"".concat(m,"-inline-collapsed-tooltip")}),B)),B},t}return(0,$.Z)(i,[{key:"renderItemChildren",value:function(n){var u=this.context,o=u.prefixCls,d=u.firstLevel,f=this.props,m=f.icon,h=f.children,N=a.createElement("span",{className:"".concat(o,"-title-content")},h);return(!m||(0,St.l$)(h)&&h.type==="span")&&h&&n&&d&&typeof h=="string"?a.createElement("div",{className:"".concat(o,"-inline-collapsed-noicon")},h.charAt(0)):N}},{key:"render",value:function(){return a.createElement(Gn.Consumer,null,this.renderItem)}}]),i}(a.Component);Kn.contextType=mn;function yr(r){var e,i=r.popupClassName,t=r.icon,n=r.title,u=r.theme,o=a.useContext(mn),d=o.prefixCls,f=o.inlineCollapsed,m=o.antdMenuTheme,h=ft(),N;if(!t)N=f&&!h.length&&n&&typeof n=="string"?a.createElement("div",{className:"".concat(d,"-inline-collapsed-noicon")},n.charAt(0)):a.createElement("span",{className:"".concat(d,"-title-content")},n);else{var R=(0,St.l$)(n)&&n.type==="span";N=a.createElement(a.Fragment,null,(0,St.Tm)(t,{className:E()((0,St.l$)(t)?(e=t.props)===null||e===void 0?void 0:e.className:"","".concat(d,"-item-icon"))}),R?n:a.createElement("span",{className:"".concat(d,"-title-content")},n))}var A=a.useMemo(function(){return(0,p.Z)((0,p.Z)({},o),{firstLevel:!1})},[o]);return a.createElement(mn.Provider,{value:A},a.createElement(Lt,(0,p.Z)({},(0,U.Z)(r,["icon"]),{title:N,popupClassName:E()(d,"".concat(d,"-").concat(u||m),i)})))}var Jn=yr,br=function(r,e){var i={};for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&e.indexOf(t)<0&&(i[t]=r[t]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,t=Object.getOwnPropertySymbols(r);n<t.length;n++)e.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(r,t[n])&&(i[t[n]]=r[t[n]]);return i};function $n(r){return(r||[]).map(function(e,i){if(e&&(0,Le.Z)(e)==="object"){var t=e,n=t.label,u=t.children,o=t.key,d=t.type,f=br(t,["label","children","key","type"]),m=o!=null?o:"tmp-".concat(i);return u||d==="group"?d==="group"?a.createElement(fn,(0,p.Z)({key:m},f,{title:n}),$n(u)):a.createElement(Jn,(0,p.Z)({key:m},f,{title:n}),$n(u)):d==="divider"?a.createElement(Yn,(0,p.Z)({key:m},f)):a.createElement(Kn,(0,p.Z)({key:m},f),n)}return null}).filter(function(e){return e})}function xr(r){return a.useMemo(function(){return r&&$n(r)},[r])}var Xn=s(76529),Er=function(r,e){var i={};for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&e.indexOf(t)<0&&(i[t]=r[t]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,t=Object.getOwnPropertySymbols(r);n<t.length;n++)e.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(r,t[n])&&(i[t[n]]=r[t[n]]);return i},Pr=(0,a.forwardRef)(function(r,e){var i,t=a.useContext(Xn.Z)||{},n=a.useContext(Hn.E_),u=n.getPrefixCls,o=n.getPopupContainer,d=n.direction,f=u(),m=r.prefixCls,h=r.className,N=r.theme,R=N===void 0?"light":N,A=r.expandIcon,O=r._internalDisableMenuItemTitleTooltip,w=r.inlineCollapsed,F=r.siderCollapsed,k=r.items,Z=r.children,I=r.mode,b=r.selectable,T=r.onClick,M=Er(r,["prefixCls","className","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","mode","selectable","onClick"]),V=(0,U.Z)(M,["collapsedWidth"]),me=xr(k)||Z;(i=t.validator)===null||i===void 0||i.call(t,{mode:I});var B=(0,vr.Z)(function(){var Ne;T==null||T.apply(void 0,arguments),(Ne=t==null?void 0:t.onClick)===null||Ne===void 0||Ne.call(t)}),Oe=t.mode||I,Ze=b!=null?b:t.selectable,te=a.useMemo(function(){return F!==void 0?F:w},[w,F]),Se={horizontal:{motionName:"".concat(f,"-slide-up")},inline:fr.ZP,other:{motionName:"".concat(f,"-zoom-big")}},pe=u("menu",m||t.prefixCls),ve=E()("".concat(pe,"-").concat(R),h),oe;typeof A=="function"?oe=A:oe=(0,St.Tm)(A||t.expandIcon,{className:"".concat(pe,"-submenu-expand-icon")});var ce=a.useMemo(function(){return{prefixCls:pe,inlineCollapsed:te||!1,antdMenuTheme:R,direction:d,firstLevel:!0,disableMenuItemTitleTooltip:O}},[pe,te,R,d,O]);return a.createElement(Xn.Z.Provider,{value:null},a.createElement(mn.Provider,{value:ce},a.createElement(dr,(0,p.Z)({getPopupContainer:o,overflowedIndicator:a.createElement(C.Z,null),overflowedIndicatorPopupClassName:"".concat(pe,"-").concat(R),mode:Oe,selectable:Ze,onClick:B},V,{inlineCollapsed:te,className:ve,prefixCls:pe,direction:d,defaultMotions:Se,expandIcon:oe,ref:e}),me)))}),Yt=function(r){(0,L.Z)(i,r);var e=(0,z.Z)(i);function i(){var t;return(0,D.Z)(this,i),t=e.apply(this,arguments),t.focus=function(n){var u;(u=t.menu)===null||u===void 0||u.focus(n)},t}return(0,$.Z)(i,[{key:"render",value:function(){var n=this;return a.createElement(Gn.Consumer,null,function(u){return a.createElement(Pr,(0,p.Z)({ref:function(d){n.menu=d}},n.props,u))})}}]),i}(a.Component);Yt.Divider=Yn,Yt.Item=Kn,Yt.SubMenu=Jn,Yt.ItemGroup=fn;var Mr=Yt},88603:function(ot,re,s){"use strict";s.d(re,{tS:function(){return z}});var D=s(85061),$=s(5110);function L(l){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,$.Z)(l)){var P=l.nodeName.toLowerCase(),S=["input","select","textarea","button"].includes(P)||l.isContentEditable||P==="a"&&!!l.getAttribute("href"),ye=l.getAttribute("tabindex"),We=Number(ye),xe=null;return ye&&!Number.isNaN(We)?xe=We:S&&xe===null&&(xe=0),S&&l.disabled&&(xe=null),xe!==null&&(xe>=0||G&&xe<0)}return!1}function z(l){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,P=(0,D.Z)(l.querySelectorAll("*")).filter(function(S){return L(S,G)});return L(l,G)&&P.unshift(l),P}var p=null;function C(){p=document.activeElement}function x(){p=null}function E(){if(p)try{p.focus()}catch(l){}}function g(l,G){if(G.keyCode===9){var P=z(l),S=P[G.shiftKey?0:P.length-1],ye=S===document.activeElement||l===document.activeElement;if(ye){var We=P[G.shiftKey?P.length-1:0];We.focus(),G.preventDefault()}}}},74204:function(ot,re,s){"use strict";s.d(re,{Z:function(){return $},o:function(){return z}});var D;function $(p){if(typeof document=="undefined")return 0;if(p||D===void 0){var C=document.createElement("div");C.style.width="100%",C.style.height="200px";var x=document.createElement("div"),E=x.style;E.position="absolute",E.top="0",E.left="0",E.pointerEvents="none",E.visibility="hidden",E.width="200px",E.height="150px",E.overflow="hidden",x.appendChild(C),document.body.appendChild(x);var g=C.offsetWidth;x.style.overflow="scroll";var l=C.offsetWidth;g===l&&(l=x.clientWidth),document.body.removeChild(x),D=g-l}return D}function L(p){var C=p.match(/^(.*)px$/),x=Number(C==null?void 0:C[1]);return Number.isNaN(x)?$():x}function z(p){if(typeof document=="undefined"||!p||!(p instanceof Element))return{width:0,height:0};var C=getComputedStyle(p,"::-webkit-scrollbar"),x=C.width,E=C.height;return{width:L(x),height:L(E)}}}}]);
|