You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__Classrooms__Lists__Exerc...

47 lines
101 KiB

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[921],{27812:function(_e,ue,t){t.d(ue,{Z:function(){return ee}});var d=t(54476),i=t(59301),y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},X=y,v=t(7657),Y=function(K,H){return i.createElement(v.Z,(0,d.Z)({},K,{ref:H,icon:X}))},V=i.forwardRef(Y),ee=V},84105:function(_e,ue,t){t.d(ue,{Z:function(){return ee}});var d=t(54476),i=t(59301),y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},X=y,v=t(7657),Y=function(K,H){return i.createElement(v.Z,(0,d.Z)({},K,{ref:H,icon:X}))},V=i.forwardRef(Y),ee=V},18785:function(_e,ue,t){t.d(ue,{Z:function(){return ee}});var d=t(54476),i=t(59301),y={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"},X=y,v=t(7657),Y=function(K,H){return i.createElement(v.Z,(0,d.Z)({},K,{ref:H,icon:X}))},V=i.forwardRef(Y),ee=V},33853:function(_e,ue,t){t.d(ue,{Z:function(){return ee}});var d=t(54476),i=t(59301),y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},X=y,v=t(7657),Y=function(K,H){return i.createElement(v.Z,(0,d.Z)({},K,{ref:H,icon:X}))},V=i.forwardRef(Y),ee=V},38819:function(_e,ue,t){t.d(ue,{Z:function(){return ee}});var d=t(54476),i=t(59301),y={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"},X=y,v=t(7657),Y=function(K,H){return i.createElement(v.Z,(0,d.Z)({},K,{ref:H,icon:X}))},V=i.forwardRef(Y),ee=V},4573:function(_e,ue,t){t.r(ue),t.d(ue,{default:function(){return Me}});var d=t(59301),i=t(65582),y=t(66104),X=t(95237),v=t(43604),Y=t(61621),V=t(27812),ee=t(50258),j={flex_box_center:"flex_box_center___aDZ0y",flex_space_between:"flex_space_between___YgV77",flex_box_vertical_center:"flex_box_vertical_center___RiXOn",flex_box_center_end:"flex_box_center_end___leo_X",flex_box_column:"flex_box_column___yVux9",title:"title___eoGRP",wrap:"wrap___sXyah",code:"code___NIt6L",error:"error___p_cW8"},K=t(38147),H=Object.defineProperty,T=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable,me=(W,oe,w)=>oe in W?H(W,oe,{enumerable:!0,configurable:!0,writable:!0,value:w}):W[oe]=w,pe=(W,oe)=>{for(var w in oe||(oe={}))n.call(oe,w)&&me(W,w,oe[w]);if(T)for(var w of T(oe))G.call(oe,w)&&me(W,w,oe[w]);return W},he=(W,oe,w)=>new Promise((J,E)=>{var $=A=>{try{B(w.next(A))}catch(se){E(se)}},L=A=>{try{B(w.throw(A))}catch(se){E(se)}},B=A=>A.done?J(A.value):Promise.resolve(A.value).then($,L);B((w=w.apply(W,oe)).next())});const M=({exercise:W,user:oe,dispatch:w})=>{var J,E;const $=(J=window.location.pathname)==null?void 0:J.includes("exercise"),L=$?"exercise":"shixun_homework",B=(0,i.useParams)(),[A]=(0,i.useSearchParams)(),{userInfo:se}=oe,ae=A.get("name"),be=A.get("rule_id"),Pe=A.get("uuid"),c=A.get("language"),R=A.get("rowNumber"),Z=A.get("issueId"),[l,x]=(0,d.useState)({}),[U,z]=(0,d.useState)({value:"",language:c.toLowerCase(),theme:"vs",options:{readOnly:!0},errorContent:"",errorLine:parseInt(R)}),[k,_]=(0,d.useState)(!0);(0,d.useEffect)(()=>{ve()},[]);const ve=()=>he(void 0,null,function*(){var de,fe,Ce;_(!0);const Ie=yield(0,K.ZP)("/api/code_analyses_detail/code_detail.json",{method:"get",params:{rule_id:be,uuid:Pe,issue_id:Z}});if(Ie.status===0){U.value=(fe=(de=Ie.data)==null?void 0:de.codes)==null?void 0:fe.map(ge=>ge.code).join(`
`);const $e=document.createElement("div");$e.innerHTML=U.value,U.value=$e.innerText,U.errorContent=(Ce=Ie==null?void 0:Ie.data)==null?void 0:Ce.errMessage,z(pe({},U)),x(Ie.data)}_(!1)});return d.createElement("section",{className:"edu-container"},d.createElement("section",{className:"animated fadeIn"},d.createElement("aside",{className:"mt10"},se&&d.createElement(y.Z,{separator:">"},d.createElement(y.Z.Item,null,d.createElement(i.Link,{to:`/classrooms/${B.coursesId}/${L}`},(E=se==null?void 0:se.course)==null?void 0:E.course_name)),d.createElement(y.Z.Item,null,d.createElement(i.Link,{to:`/classrooms/${B.coursesId}/${L}`},$?"\u8003\u8BD5":"\u5B9E\u8BAD","\u5217\u8868")),d.createElement(y.Z.Item,null,d.createElement(i.Link,{to:`/classrooms/${B.coursesId}/${L}/${B==null?void 0:B.exerciseId}/detail`},$?"\u8BD5\u5377":"\u4F5C\u4E1A","\u8BE6\u60C5")),d.createElement(y.Z.Item,null,ae))),d.createElement("aside",{className:[j.title,"mt20"].join(" ")},d.createElement(X.Z,{style:{width:"100%"}},d.createElement(v.Z,{flex:"1",style:{lineHeight:"24px"}},d.createElement(i.Link,{to:`/classrooms/${B.coursesId}/${L}/${B.exerciseId}/analysis/${B.studentId}`},d.createElement(V.Z,{className:"font16 c-black"})),d.createElement("strong",{className:"font20 ml5"},"\u4EE3\u7801\u8BE6\u60C5"))))),d.createElement("section",{className:j.wrap},d.createElement(Y.Z,{loading:k,active:!0,paragraph:{rows:5}},d.createElement("div",{className:j.title},l==null?void 0:l.title),d.createElement("div",{className:j.code},d.createElement(ee.ZP,pe({},U))),d.createElement("div",{className:j.error,dangerouslySetInnerHTML:{__html:(l==null?void 0:l.example)||""}}))))};var Me=(0,i.connect)(({exercise:W,user:oe})=>({exercise:W,user:oe}))(M)},66104:function(_e,ue,t){t.d(ue,{Z:function(){return Pe}});var d=t(92310),i=t.n(d),y=t(11592),X=t(26112),v=t(59301),Y=t(92343),V=t(36355),ee=t(84105),j=t(91857);const K=c=>{let{children:R}=c;const{getPrefixCls:Z}=v.useContext(V.E_),l=Z("breadcrumb");return v.createElement("li",{className:`${l}-separator`,"aria-hidden":"true"},R===""?R:R||"/")};K.__ANT_BREADCRUMB_SEPARATOR=!0;var H=K,T=function(c,R){var Z={};for(var l in c)Object.prototype.hasOwnProperty.call(c,l)&&R.indexOf(l)<0&&(Z[l]=c[l]);if(c!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,l=Object.getOwnPropertySymbols(c);x<l.length;x++)R.indexOf(l[x])<0&&Object.prototype.propertyIsEnumerable.call(c,l[x])&&(Z[l[x]]=c[l[x]]);return Z};function n(c,R){if(c.title===void 0||c.title===null)return null;const Z=Object.keys(R).join("|");return typeof c.title=="object"?c.title:String(c.title).replace(new RegExp(`:(${Z})`,"g"),(l,x)=>R[x]||l)}function G(c,R,Z,l){if(Z==null)return null;const{className:x,onClick:U}=R,z=T(R,["className","onClick"]),k=Object.assign(Object.assign({},(0,X.Z)(z,{data:!0,aria:!0})),{onClick:U});return l!==void 0?v.createElement("a",Object.assign({},k,{className:i()(`${c}-link`,x),href:l}),Z):v.createElement("span",Object.assign({},k,{className:i()(`${c}-link`,x)}),Z)}function me(c,R){return(l,x,U,z,k)=>{if(R)return R(l,x,U,z);const _=n(l,x);return G(c,l,_,k)}}var pe=function(c,R){var Z={};for(var l in c)Object.prototype.hasOwnProperty.call(c,l)&&R.indexOf(l)<0&&(Z[l]=c[l]);if(c!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,l=Object.getOwnPropertySymbols(c);x<l.length;x++)R.indexOf(l[x])<0&&Object.prototype.propertyIsEnumerable.call(c,l[x])&&(Z[l[x]]=c[l[x]]);return Z};const he=c=>{const{prefixCls:R,separator:Z="/",children:l,menu:x,overlay:U,dropdownProps:z,href:k}=c,ve=(de=>{if(x||U){const fe=Object.assign({},z);if(x){const Ce=x||{},{items:Ie}=Ce,$e=pe(Ce,["items"]);fe.menu=Object.assign(Object.assign({},$e),{items:Ie==null?void 0:Ie.map((ge,Ze)=>{var{key:Re,title:Ae,label:xe,path:f}=ge,a=pe(ge,["key","title","label","path"]);let e=xe!=null?xe:Ae;return f&&(e=v.createElement("a",{href:`${k}${f}`},e)),Object.assign(Object.assign({},a),{key:Re!=null?Re:Ze,label:e})})})}else U&&(fe.overlay=U);return v.createElement(j.Z,Object.assign({placement:"bottom"},fe),v.createElement("span",{className:`${R}-overlay-link`},de,v.createElement(ee.Z,null)))}return de})(l);return ve!=null?v.createElement(v.Fragment,null,v.createElement("li",null,ve),Z&&v.createElement(H,null,Z)):null},M=c=>{const{prefixCls:R,children:Z,href:l}=c,x=pe(c,["prefixCls","children","href"]),{getPrefixCls:U}=v.useContext(V.E_),z=U("breadcrumb",R);return v.createElement(he,Object.assign({},x,{prefixCls:z}),G(z,x,Z,l))};M.__ANT_BREADCRUMB_ITEM=!0;var Me=M,W=t(17313),oe=t(83116),w=t(37613);const J=c=>{const{componentCls:R,iconCls:Z}=c;return{[R]:Object.assign(Object.assign({},(0,W.Wf)(c)),{color:c.itemColor,fontSize:c.fontSize,[Z]:{fontSize:c.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:c.linkColor,transition:`color ${c.motionDurationMid}`,padding:`0 ${c.paddingXXS}px`,borderRadius:c.borderRadiusSM,height:c.lineHeight*c.fontSize,display:"inline-block",marginInline:-c.marginXXS,"&:hover":{color:c.linkHoverColor,backgroundColor:c.colorBgTextHover}},(0,W.Qy)(c)),"li:last-child":{color:c.lastItemColor},[`${R}-separator`]:{marginInline:c.separatorMargin,color:c.separatorColor},[`${R}-link`]:{[`
> ${Z} + span,
> ${Z} + a
`]:{marginInlineStart:c.marginXXS}},[`${R}-overlay-link`]:{borderRadius:c.borderRadiusSM,height:c.lineHeight*c.fontSize,display:"inline-block",padding:`0 ${c.paddingXXS}px`,marginInline:-c.marginXXS,[`> ${Z}`]:{marginInlineStart:c.marginXXS,fontSize:c.fontSizeIcon},"&:hover":{color:c.linkHoverColor,backgroundColor:c.colorBgTextHover,a:{color:c.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${c.componentCls}-rtl`]:{direction:"rtl"}})}};var E=(0,oe.Z)("Breadcrumb",c=>{const R=(0,w.TS)(c,{});return[J(R)]},c=>({itemColor:c.colorTextDescription,lastItemColor:c.colorText,iconFontSize:c.fontSize,linkColor:c.colorTextDescription,linkHoverColor:c.colorText,separatorColor:c.colorTextDescription,separatorMargin:c.marginXS})),$=function(c,R){var Z={};for(var l in c)Object.prototype.hasOwnProperty.call(c,l)&&R.indexOf(l)<0&&(Z[l]=c[l]);if(c!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,l=Object.getOwnPropertySymbols(c);x<l.length;x++)R.indexOf(l[x])<0&&Object.prototype.propertyIsEnumerable.call(c,l[x])&&(Z[l[x]]=c[l[x]]);return Z};function L(c){const{breadcrumbName:R,children:Z}=c,l=$(c,["breadcrumbName","children"]),x=Object.assign({title:R},l);return Z&&(x.menu={items:Z.map(U=>{var{breadcrumbName:z}=U,k=$(U,["breadcrumbName"]);return Object.assign(Object.assign({},k),{title:z})})}),x}function B(c,R){return(0,v.useMemo)(()=>c||(R?R.map(L):null),[c,R])}var A=function(c,R){var Z={};for(var l in c)Object.prototype.hasOwnProperty.call(c,l)&&R.indexOf(l)<0&&(Z[l]=c[l]);if(c!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,l=Object.getOwnPropertySymbols(c);x<l.length;x++)R.indexOf(l[x])<0&&Object.prototype.propertyIsEnumerable.call(c,l[x])&&(Z[l[x]]=c[l[x]]);return Z};const se=(c,R)=>{if(R===void 0)return R;let Z=(R||"").replace(/^\//,"");return Object.keys(c).forEach(l=>{Z=Z.replace(`:${l}`,c[l])}),Z},ae=c=>{const{prefixCls:R,separator:Z="/",style:l,className:x,rootClassName:U,routes:z,items:k,children:_,itemRender:ve,params:de={}}=c,fe=A(c,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Ce,direction:Ie,breadcrumb:$e}=v.useContext(V.E_);let ge;const Ze=Ce("breadcrumb",R),[Re,Ae]=E(Ze),xe=B(k,z),f=me(Ze,ve);if(xe&&xe.length>0){const r=[],o=k||z;ge=xe.map((p,C)=>{const{path:O,key:P,type:D,menu:S,overlay:F,onClick:ie,className:ne,separator:ce,dropdownProps:le}=p,te=se(de,O);te!==void 0&&r.push(te);const re=P!=null?P:C;if(D==="separator")return v.createElement(H,{key:re},ce);const De={},Xe=C===xe.length-1;S?De.menu=S:F&&(De.overlay=F);let{href:ke}=p;return r.length&&te!==void 0&&(ke=`#/${r.join("/")}`),v.createElement(he,Object.assign({key:re},De,(0,X.Z)(p,{data:!0,aria:!0}),{className:ne,dropdownProps:le,href:ke,separator:Xe?"":Z,onClick:ie,prefixCls:Ze}),f(p,de,o,r,ke))})}else if(_){const r=(0,y.Z)(_).length;ge=(0,y.Z)(_).map((o,p)=>{if(!o)return o;const C=p===r-1;return(0,Y.Tm)(o,{separator:C?"":Z,key:p})})}const a=i()(Ze,$e==null?void 0:$e.className,{[`${Ze}-rtl`]:Ie==="rtl"},x,U,Ae),e=Object.assign(Object.assign({},$e==null?void 0:$e.style),l);return Re(v.createElement("nav",Object.assign({className:a,style:e},fe),v.createElement("ol",null,ge)))};ae.Item=Me,ae.Separator=H;var be=ae,Pe=be},91857:function(_e,ue,t){var d=t(59301),i=t(38819),y=t(92310),X=t.n(y),v=t(31561),Y=t(70425),V=t(18929),ee=t(2738),j=t(79676),K=t(53487),H=t(92343),T=t(36355),n=t(20834),G=t(40875),me=t(88088),pe=t(47211);const he=null,M=w=>{const{menu:J,arrow:E,prefixCls:$,children:L,trigger:B,disabled:A,dropdownRender:se,getPopupContainer:ae,overlayClassName:be,rootClassName:Pe,open:c,onOpenChange:R,visible:Z,onVisibleChange:l,mouseEnterDelay:x=.15,mouseLeaveDelay:U=.1,autoAdjustOverflow:z=!0,placement:k="",overlay:_,transitionName:ve}=w,{getPopupContainer:de,getPrefixCls:fe,direction:Ce}=d.useContext(T.E_),Ie=d.useMemo(()=>{const S=fe();return ve!==void 0?ve:k.includes("top")?`${S}-slide-down`:`${S}-slide-up`},[fe,k,ve]),$e=d.useMemo(()=>k?k.includes("Center")?k.slice(0,k.indexOf("Center")):k:Ce==="rtl"?"bottomRight":"bottomLeft",[k,Ce]),ge=fe("dropdown",$),[Ze,Re]=(0,pe.Z)(ge),[,Ae]=(0,me.Z)(),xe=d.Children.only(L),f=(0,H.Tm)(xe,{className:X()(`${ge}-trigger`,{[`${ge}-rtl`]:Ce==="rtl"},xe.props.className),disabled:A}),a=A?[]:B;let e;a&&a.includes("contextMenu")&&(e=!0);const[r,o]=(0,V.Z)(!1,{value:c!=null?c:Z}),p=(0,Y.useEvent)(S=>{R==null||R(S),l==null||l(S),o(S)}),C=X()(be,Pe,Re,{[`${ge}-rtl`]:Ce==="rtl"}),O=(0,j.Z)({arrowPointAtCenter:typeof E=="object"&&E.pointAtCenter,autoAdjustOverflow:z,offset:Ae.marginXXS,arrowWidth:E?Ae.sizePopupArrow:0,borderRadius:Ae.borderRadius}),P=d.useCallback(()=>{o(!1)},[]),D=()=>{let S;return J!=null&&J.items?S=d.createElement(n.default,Object.assign({},J)):typeof _=="function"?S=_():S=_,se&&(S=se(S)),S=d.Children.only(typeof S=="string"?d.createElement("span",null,S):S),d.createElement(G.J,{prefixCls:`${ge}-menu`,expandIcon:d.createElement("span",{className:`${ge}-menu-submenu-arrow`},d.createElement(i.Z,{className:`${ge}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:P,validator:F=>{let{mode:ie}=F}},S)};return Ze(d.createElement(v.Z,Object.assign({alignPoint:e},(0,ee.Z)(w,["rootClassName"]),{mouseEnterDelay:x,mouseLeaveDelay:U,visible:r,builtinPlacements:O,arrow:!!E,overlayClassName:C,prefixCls:ge,getPopupContainer:ae||de,transitionName:Ie,trigger:a,overlay:D,placement:$e,onVisibleChange:p}),f))};function Me(w){return Object.assign(Object.assign({},w),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const W=(0,K.Z)(M,"dropdown",w=>w,Me),oe=w=>d.createElement(W,Object.assign({},w),d.createElement("span",null));M._InternalPanelDoNotUseOrYouWillBeFired=oe,ue.Z=M},47211:function(_e,ue,t){t.d(ue,{Z:function(){return H}});var d=t(17313),i=t(13826),y=t(92899),X=t(29878),v=t(19447),Y=t(83116),V=t(37613),j=T=>{const{componentCls:n,menuCls:G,colorError:me,colorTextLightSolid:pe}=T,he=`${G}-item`;return{[`${n}, ${n}-menu-submenu`]:{[`${G} ${he}`]:{[`&${he}-danger:not(${he}-disabled)`]:{color:me,"&:hover":{color:pe,backgroundColor:me}}}}}};const K=T=>{const{componentCls:n,menuCls:G,zIndexPopup:me,dropdownArrowDistance:pe,sizePopupArrow:he,antCls:M,iconCls:Me,motionDurationMid:W,dropdownPaddingVertical:oe,fontSize:w,dropdownEdgeChildPadding:J,colorTextDisabled:E,fontSizeIcon:$,controlPaddingHorizontal:L,colorBgElevated:B}=T;return[{[n]:Object.assign(Object.assign({},(0,d.Wf)(T)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:me,display:"block","&::before":{position:"absolute",insetBlock:-pe+he/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${M}-btn`]:{[`& > ${Me}-down, & > ${M}-btn-icon > ${Me}-down`]:{fontSize:$}},[`${n}-wrap`]:{position:"relative",[`${M}-btn > ${Me}-down`]:{fontSize:$},[`${Me}-down::before`]:{transition:`transform ${W}`}},[`${n}-wrap-open`]:{[`${Me}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${M}-slide-down-enter${M}-slide-down-enter-active${n}-placement-bottomLeft,
&${M}-slide-down-appear${M}-slide-down-appear-active${n}-placement-bottomLeft,
&${M}-slide-down-enter${M}-slide-down-enter-active${n}-placement-bottom,
&${M}-slide-down-appear${M}-slide-down-appear-active${n}-placement-bottom,
&${M}-slide-down-enter${M}-slide-down-enter-active${n}-placement-bottomRight,
&${M}-slide-down-appear${M}-slide-down-appear-active${n}-placement-bottomRight`]:{animationName:i.fJ},[`&${M}-slide-up-enter${M}-slide-up-enter-active${n}-placement-topLeft,
&${M}-slide-up-appear${M}-slide-up-appear-active${n}-placement-topLeft,
&${M}-slide-up-enter${M}-slide-up-enter-active${n}-placement-top,
&${M}-slide-up-appear${M}-slide-up-appear-active${n}-placement-top,
&${M}-slide-up-enter${M}-slide-up-enter-active${n}-placement-topRight,
&${M}-slide-up-appear${M}-slide-up-appear-active${n}-placement-topRight`]:{animationName:i.Qt},[`&${M}-slide-down-leave${M}-slide-down-leave-active${n}-placement-bottomLeft,
&${M}-slide-down-leave${M}-slide-down-leave-active${n}-placement-bottom,
&${M}-slide-down-leave${M}-slide-down-leave-active${n}-placement-bottomRight`]:{animationName:i.Uw},[`&${M}-slide-up-leave${M}-slide-up-leave-active${n}-placement-topLeft,
&${M}-slide-up-leave${M}-slide-up-leave-active${n}-placement-top,
&${M}-slide-up-leave${M}-slide-up-leave-active${n}-placement-topRight`]:{animationName:i.ly}})},(0,v.ZP)(T,{colorBg:B,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${n} ${G}`]:{position:"relative",margin:0},[`${G}-submenu-popup`]:{position:"absolute",zIndex:me,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${n}, ${n}-menu-submenu`]:{[G]:Object.assign(Object.assign({padding:J,listStyleType:"none",backgroundColor:B,backgroundClip:"padding-box",borderRadius:T.borderRadiusLG,outline:"none",boxShadow:T.boxShadowSecondary},(0,d.Qy)(T)),{[`${G}-item-group-title`]:{padding:`${oe}px ${L}px`,color:T.colorTextDescription,transition:`all ${W}`},[`${G}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${G}-item-icon`]:{minWidth:w,marginInlineEnd:T.marginXS,fontSize:T.fontSizeSM},[`${G}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${W}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${G}-item, ${G}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${oe}px ${L}px`,color:T.colorText,fontWeight:"normal",fontSize:w,lineHeight:T.lineHeight,cursor:"pointer",transition:`all ${W}`,borderRadius:T.borderRadiusSM,"&:hover, &-active":{backgroundColor:T.controlItemBgHover}},(0,d.Qy)(T)),{"&-selected":{color:T.colorPrimary,backgroundColor:T.controlItemBgActive,"&:hover, &-active":{backgroundColor:T.controlItemBgActiveHover}},"&-disabled":{color:E,cursor:"not-allowed","&:hover":{color:E,backgroundColor:B,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${T.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:T.colorSplit},[`${n}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:T.paddingXS,[`${n}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:T.colorTextDescription,fontSize:$,fontStyle:"normal"}}}),[`${G}-item-group-list`]:{margin:`0 ${T.marginXS}px`,padding:0,listStyle:"none"},[`${G}-submenu-title`]:{paddingInlineEnd:L+T.fontSizeSM},[`${G}-submenu-vertical`]:{position:"relative"},[`${G}-submenu${G}-submenu-disabled ${n}-menu-submenu-title`]:{[`&, ${n}-menu-submenu-arrow-icon`]:{color:E,backgroundColor:B,cursor:"not-allowed"}},[`${G}-submenu-selected ${n}-menu-submenu-title`]:{color:T.colorPrimary}})}},[(0,i.oN)(T,"slide-up"),(0,i.oN)(T,"slide-down"),(0,y.Fm)(T,"move-up"),(0,y.Fm)(T,"move-down"),(0,X._y)(T,"zoom-big")]]};var H=(0,Y.Z)("Dropdown",(T,n)=>{let{rootPrefixCls:G}=n;const{marginXXS:me,sizePopupArrow:pe,controlHeight:he,fontSize:M,lineHeight:Me,paddingXXS:W,componentCls:oe,borderRadiusLG:w}=T,J=(he-M*Me)/2,{dropdownArrowOffset:E}=(0,v.fS)({contentRadius:w}),$=(0,V.TS)(T,{menuCls:`${oe}-menu`,rootPrefixCls:G,dropdownArrowDistance:pe/2+me,dropdownArrowOffset:E,dropdownPaddingVertical:J,dropdownEdgeChildPadding:W});return[K($),j($)]},T=>({zIndexPopup:T.zIndexPopupBase+50}))},45818:function(_e,ue,t){t.d(ue,{D:function(){return W},Z:function(){return J}});var d=t(54476),i=t(59301),y={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=y,v=t(7657),Y=function($,L){return i.createElement(v.Z,(0,d.Z)({},$,{ref:L,icon:X}))},V=i.forwardRef(Y),ee=V,j=t(33853),K=t(38819),H=t(92310),T=t.n(H),n=t(2738),me=E=>!isNaN(parseFloat(E))&&isFinite(E),pe=t(36355),he=t(84966),M=function(E,$){var L={};for(var B in E)Object.prototype.hasOwnProperty.call(E,B)&&$.indexOf(B)<0&&(L[B]=E[B]);if(E!=null&&typeof Object.getOwnPropertySymbols=="function")for(var A=0,B=Object.getOwnPropertySymbols(E);A<B.length;A++)$.indexOf(B[A])<0&&Object.prototype.propertyIsEnumerable.call(E,B[A])&&(L[B[A]]=E[B[A]]);return L};const Me={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},W=i.createContext({}),oe=(()=>{let E=0;return function(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return E+=1,`${$}${E}`}})();var J=i.forwardRef((E,$)=>{const{prefixCls:L,className:B,trigger:A,children:se,defaultCollapsed:ae=!1,theme:be="dark",style:Pe={},collapsible:c=!1,reverseArrow:R=!1,width:Z=200,collapsedWidth:l=80,zeroWidthTriggerStyle:x,breakpoint:U,onCollapse:z,onBreakpoint:k}=E,_=M(E,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:ve}=(0,i.useContext)(he.Gs),[de,fe]=(0,i.useState)("collapsed"in E?E.collapsed:ae),[Ce,Ie]=(0,i.useState)(!1);(0,i.useEffect)(()=>{"collapsed"in E&&fe(E.collapsed)},[E.collapsed]);const $e=(f,a)=>{"collapsed"in E||fe(f),z==null||z(f,a)},ge=(0,i.useRef)();ge.current=f=>{Ie(f.matches),k==null||k(f.matches),de!==f.matches&&$e(f.matches,"responsive")},(0,i.useEffect)(()=>{function f(e){return ge.current(e)}let a;if(typeof window!="undefined"){const{matchMedia:e}=window;if(e&&U&&U in Me){a=e(`(max-width: ${Me[U]})`);try{a.addEventListener("change",f)}catch(r){a.addListener(f)}f(a)}}return()=>{try{a==null||a.removeEventListener("change",f)}catch(e){a==null||a.removeListener(f)}}},[U]),(0,i.useEffect)(()=>{const f=oe("ant-sider-");return ve.addSider(f),()=>ve.removeSider(f)},[]);const Ze=()=>{$e(!de,"clickTrigger")},{getPrefixCls:Re}=(0,i.useContext)(pe.E_),Ae=()=>{const f=Re("layout-sider",L),a=(0,n.Z)(_,["collapsed"]),e=de?l:Z,r=me(e)?`${e}px`:String(e),o=parseFloat(String(l||0))===0?i.createElement("span",{onClick:Ze,className:T()(`${f}-zero-width-trigger`,`${f}-zero-width-trigger-${R?"right":"left"}`),style:x},A||i.createElement(ee,null)):null,O={expanded:R?i.createElement(K.Z,null):i.createElement(j.Z,null),collapsed:R?i.createElement(j.Z,null):i.createElement(K.Z,null)}[de?"collapsed":"expanded"],P=A!==null?o||i.createElement("div",{className:`${f}-trigger`,onClick:Ze,style:{width:r}},A||O):null,D=Object.assign(Object.assign({},Pe),{flex:`0 0 ${r}`,maxWidth:r,minWidth:r,width:r}),S=T()(f,`${f}-${be}`,{[`${f}-collapsed`]:!!de,[`${f}-has-trigger`]:c&&A!==null&&!o,[`${f}-below`]:!!Ce,[`${f}-zero-width`]:parseFloat(r)===0},B);return i.createElement("aside",Object.assign({className:S},a,{style:D,ref:$}),i.createElement("div",{className:`${f}-children`},se),c||Ce&&o?P:null)},xe=i.useMemo(()=>({siderCollapsed:de}),[de]);return i.createElement(W.Provider,{value:xe},Ae())})},84966:function(_e,ue,t){t.d(ue,{VY:function(){return W},$_:function(){return Me},h4:function(){return M},Gs:function(){return n},ZP:function(){return oe}});var d=t(94480),i=t(92310),y=t.n(i),X=t(2738),v=t(59301),Y=t(36355),V=t(83116),j=w=>{const{componentCls:J,bodyBg:E,lightSiderBg:$,lightTriggerBg:L,lightTriggerColor:B}=w;return{[`${J}-sider-light`]:{background:$,[`${J}-sider-trigger`]:{color:B,background:L},[`${J}-sider-zero-width-trigger`]:{color:B,background:L,border:`1px solid ${E}`,borderInlineStart:0}}}};const K=w=>{const{antCls:J,componentCls:E,colorText:$,triggerColor:L,footerBg:B,triggerBg:A,headerHeight:se,headerPadding:ae,headerColor:be,footerPadding:Pe,triggerHeight:c,zeroTriggerHeight:R,zeroTriggerWidth:Z,motionDurationMid:l,motionDurationSlow:x,fontSize:U,borderRadius:z,bodyBg:k,headerBg:_,siderBg:ve}=w;return{[E]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:k,"&, *":{boxSizing:"border-box"},[`&${E}-has-sider`]:{flexDirection:"row",[`> ${E}, > ${E}-content`]:{width:0}},[`${E}-header, &${E}-footer`]:{flex:"0 0 auto"},[`${E}-sider`]:{position:"relative",minWidth:0,background:ve,transition:`all ${l}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${J}-menu${J}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:c},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:c,color:L,lineHeight:`${c}px`,textAlign:"center",background:A,cursor:"pointer",transition:`all ${l}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:se,insetInlineEnd:-Z,zIndex:1,width:Z,height:R,color:L,fontSize:w.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:ve,borderStartStartRadius:0,borderStartEndRadius:z,borderEndEndRadius:z,borderEndStartRadius:0,cursor:"pointer",transition:`background ${x} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${x}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Z,borderStartStartRadius:z,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:z}}}}},j(w)),{"&-rtl":{direction:"rtl"}}),[`${E}-header`]:{height:se,padding:ae,color:be,lineHeight:`${se}px`,background:_,[`${J}-menu`]:{lineHeight:"inherit"}},[`${E}-footer`]:{padding:Pe,color:$,fontSize:U,background:B},[`${E}-content`]:{flex:"auto",minHeight:0}}};var H=(0,V.Z)("Layout",w=>[K(w)],w=>{const{colorBgLayout:J,controlHeight:E,controlHeightLG:$,colorText:L,controlHeightSM:B,marginXXS:A,colorTextLightSolid:se,colorBgContainer:ae}=w,be=$*1.25;return{colorBgHeader:"#001529",colorBgBody:J,colorBgTrigger:"#002140",bodyBg:J,headerBg:"#001529",headerHeight:E*2,headerPadding:`0 ${be}px`,headerColor:L,footerPadding:`${B}px ${be}px`,footerBg:J,siderBg:"#001529",triggerHeight:$+A*2,triggerBg:"#002140",triggerColor:se,zeroTriggerWidth:$,zeroTriggerHeight:$,lightSiderBg:ae,lightTriggerBg:ae,lightTriggerColor:L}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),T=function(w,J){var E={};for(var $ in w)Object.prototype.hasOwnProperty.call(w,$)&&J.indexOf($)<0&&(E[$]=w[$]);if(w!=null&&typeof Object.getOwnPropertySymbols=="function")for(var L=0,$=Object.getOwnPropertySymbols(w);L<$.length;L++)J.indexOf($[L])<0&&Object.prototype.propertyIsEnumerable.call(w,$[L])&&(E[$[L]]=w[$[L]]);return E};const n=v.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function G(w){let{suffixCls:J,tagName:E,displayName:$}=w;return L=>v.forwardRef((A,se)=>v.createElement(L,Object.assign({ref:se,suffixCls:J,tagName:E},A)))}const me=v.forwardRef((w,J)=>{const{prefixCls:E,suffixCls:$,className:L,tagName:B}=w,A=T(w,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:se}=v.useContext(Y.E_),ae=se("layout",E),[be,Pe]=H(ae),c=$?`${ae}-${$}`:ae;return be(v.createElement(B,Object.assign({className:y()(E||c,L,Pe),ref:J},A)))}),pe=v.forwardRef((w,J)=>{const{direction:E}=v.useContext(Y.E_),[$,L]=v.useState([]),{prefixCls:B,className:A,rootClassName:se,children:ae,hasSider:be,tagName:Pe,style:c}=w,R=T(w,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Z=(0,X.Z)(R,["suffixCls"]),{getPrefixCls:l,layout:x}=v.useContext(Y.E_),U=l("layout",B),[z,k]=H(U),_=y()(U,{[`${U}-has-sider`]:typeof be=="boolean"?be:$.length>0,[`${U}-rtl`]:E==="rtl"},x==null?void 0:x.className,A,se,k),ve=v.useMemo(()=>({siderHook:{addSider:de=>{L(fe=>[].concat((0,d.Z)(fe),[de]))},removeSider:de=>{L(fe=>fe.filter(Ce=>Ce!==de))}}}),[]);return z(v.createElement(n.Provider,{value:ve},v.createElement(Pe,Object.assign({ref:J,className:_,style:Object.assign(Object.assign({},x==null?void 0:x.style),c)},Z),ae)))}),he=G({tagName:"div",displayName:"Layout"})(pe),M=G({suffixCls:"header",tagName:"header",displayName:"Header"})(me),Me=G({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(me),W=G({suffixCls:"content",tagName:"main",displayName:"Content"})(me);var oe=he},40875:function(_e,ue,t){t.d(ue,{J:function(){return Y}});var d=t(59301),i=t(33234),y=t(70425),X=function(V,ee){var j={};for(var K in V)Object.prototype.hasOwnProperty.call(V,K)&&ee.indexOf(K)<0&&(j[K]=V[K]);if(V!=null&&typeof Object.getOwnPropertySymbols=="function")for(var H=0,K=Object.getOwnPropertySymbols(V);H<K.length;H++)ee.indexOf(K[H])<0&&Object.prototype.propertyIsEnumerable.call(V,K[H])&&(j[K[H]]=V[K[H]]);return j};const v=d.createContext(null),Y=d.forwardRef((V,ee)=>{const{children:j}=V,K=X(V,["children"]),H=d.useContext(v),T=d.useMemo(()=>Object.assign(Object.assign({},H),K),[H,K.prefixCls,K.mode,K.selectable]);return d.createElement(v.Provider,{value:T},d.createElement(i.BR,null,(0,y.supportNodeRef)(j)?d.cloneElement(j,{ref:ee}):j))});ue.Z=v},20834:function(_e,ue,t){t.d(ue,{default:function(){return xe}});var d=t(15285),i=t(59301),y=t(45818),X=t(92310),v=t.n(X),Y=t(36355),V=function(f,a){var e={};for(var r in f)Object.prototype.hasOwnProperty.call(f,r)&&a.indexOf(r)<0&&(e[r]=f[r]);if(f!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(f);o<r.length;o++)a.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(f,r[o])&&(e[r[o]]=f[r[o]]);return e},j=f=>{const{prefixCls:a,className:e,dashed:r}=f,o=V(f,["prefixCls","className","dashed"]),{getPrefixCls:p}=i.useContext(Y.E_),C=p("menu",a),O=v()({[`${C}-item-divider-dashed`]:!!r},e);return i.createElement(d.iz,Object.assign({className:O},o))},K=t(11592),H=t(2738),T=t(6848),n=t(92343),me=(0,i.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),he=f=>{var a;const{className:e,children:r,icon:o,title:p,danger:C}=f,{prefixCls:O,firstLevel:P,direction:D,disableMenuItemTitleTooltip:S,inlineCollapsed:F}=i.useContext(me),ie=De=>{const Xe=i.createElement("span",{className:`${O}-title-content`},r);return(!o||(0,n.l$)(r)&&r.type==="span")&&r&&De&&P&&typeof r=="string"?i.createElement("div",{className:`${O}-inline-collapsed-noicon`},r.charAt(0)):Xe},{siderCollapsed:ne}=i.useContext(y.D);let ce=p;typeof p=="undefined"?ce=P?r:"":p===!1&&(ce="");const le={title:ce};!ne&&!F&&(le.title=null,le.open=!1);const te=(0,K.Z)(r).length;let re=i.createElement(d.ck,Object.assign({},(0,H.Z)(f,["title","icon","danger"]),{className:v()({[`${O}-item-danger`]:C,[`${O}-item-only-child`]:(o?te+1:te)===1},e),title:typeof p=="string"?p:void 0}),(0,n.Tm)(o,{className:v()((0,n.l$)(o)?(a=o.props)===null||a===void 0?void 0:a.className:"",`${O}-item-icon`)}),ie(F));return S||(re=i.createElement(T.Z,Object.assign({},le,{placement:D==="rtl"?"left":"right",overlayClassName:`${O}-inline-collapsed-tooltip`}),re)),re},Me=f=>{var a;const{popupClassName:e,icon:r,title:o,theme:p}=f,C=i.useContext(me),{prefixCls:O,inlineCollapsed:P,theme:D}=C,S=(0,d.Xl)();let F;if(!r)F=P&&!S.length&&o&&typeof o=="string"?i.createElement("div",{className:`${O}-inline-collapsed-noicon`},o.charAt(0)):i.createElement("span",{className:`${O}-title-content`},o);else{const ne=(0,n.l$)(o)&&o.type==="span";F=i.createElement(i.Fragment,null,(0,n.Tm)(r,{className:v()((0,n.l$)(r)?(a=r.props)===null||a===void 0?void 0:a.className:"",`${O}-item-icon`)}),ne?o:i.createElement("span",{className:`${O}-title-content`},o))}const ie=i.useMemo(()=>Object.assign(Object.assign({},C),{firstLevel:!1}),[C]);return i.createElement(me.Provider,{value:ie},i.createElement(d.Wd,Object.assign({},(0,H.Z)(f,["icon"]),{title:F,popupClassName:v()(O,e,`${O}-${p||D}`)})))},W=t(18785),oe=t(70425),w=t(62892),J=t(40875),E=function(f,a){var e={};for(var r in f)Object.prototype.hasOwnProperty.call(f,r)&&a.indexOf(r)<0&&(e[r]=f[r]);if(f!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(f);o<r.length;o++)a.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(f,r[o])&&(e[r[o]]=f[r[o]]);return e};function $(f){return(f||[]).map((a,e)=>{if(a&&typeof a=="object"){const r=a,{label:o,children:p,key:C,type:O}=r,P=E(r,["label","children","key","type"]),D=C!=null?C:`tmp-${e}`;return p||O==="group"?O==="group"?i.createElement(d.BW,Object.assign({key:D},P,{title:o}),$(p)):i.createElement(Me,Object.assign({key:D},P,{title:o}),$(p)):O==="divider"?i.createElement(j,Object.assign({key:D},P)):i.createElement(he,Object.assign({key:D},P),o)}return null}).filter(a=>a)}function L(f){return i.useMemo(()=>f&&$(f),[f])}var B=t(64993),A=t(17313),se=t(8378),ae=t(13826),be=t(29878),Pe=t(83116),c=t(37613),Z=f=>{const{componentCls:a,motionDurationSlow:e,horizontalLineHeight:r,colorSplit:o,lineWidth:p,lineType:C,itemPaddingInline:O}=f;return{[`${a}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${p}px ${C} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${a}-item, ${a}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:O},[`> ${a}-item:hover,
> ${a}-item-active,
> ${a}-submenu ${a}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${a}-item, ${a}-submenu-title`]:{transition:[`border-color ${e}`,`background ${e}`].join(",")},[`${a}-submenu-arrow`]:{display:"none"}}}},x=f=>{let{componentCls:a,menuArrowOffset:e}=f;return{[`${a}-rtl`]:{direction:"rtl"},[`${a}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${a}-rtl${a}-vertical,
${a}-submenu-rtl ${a}-vertical`]:{[`${a}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${e})`},"&::after":{transform:`rotate(45deg) translateY(${e})`}}}}};const U=f=>Object.assign({},(0,A.oN)(f));var k=(f,a)=>{const{componentCls:e,itemColor:r,itemSelectedColor:o,groupTitleColor:p,itemBg:C,subMenuItemBg:O,itemSelectedBg:P,activeBarHeight:D,activeBarWidth:S,activeBarBorderWidth:F,motionDurationSlow:ie,motionEaseInOut:ne,motionEaseOut:ce,itemPaddingInline:le,motionDurationMid:te,itemHoverColor:re,lineType:De,colorSplit:Xe,itemDisabledColor:ke,dangerItemColor:qe,dangerItemHoverColor:Je,dangerItemSelectedColor:et,dangerItemActiveBg:Oe,dangerItemSelectedBg:tt,itemHoverBg:ot,itemActiveBg:at,menuSubMenuBg:gt,horizontalItemSelectedColor:Nt,horizontalItemSelectedBg:Bt,horizontalItemBorderRadius:pt,horizontalItemHoverBg:ht,popupBg:Ft}=f;return{[`${e}-${a}, ${e}-${a} > ${e}`]:{color:r,background:C,[`&${e}-root:focus-visible`]:Object.assign({},U(f)),[`${e}-item-group-title`]:{color:p},[`${e}-submenu-selected`]:{[`> ${e}-submenu-title`]:{color:o}},[`${e}-item-disabled, ${e}-submenu-disabled`]:{color:`${ke} !important`},[`${e}-item:not(${e}-item-selected):not(${e}-submenu-selected)`]:{[`&:hover, > ${e}-submenu-title:hover`]:{color:re}},[`&:not(${e}-horizontal)`]:{[`${e}-item:not(${e}-item-selected)`]:{"&:hover":{backgroundColor:ot},"&:active":{backgroundColor:at}},[`${e}-submenu-title`]:{"&:hover":{backgroundColor:ot},"&:active":{backgroundColor:at}}},[`${e}-item-danger`]:{color:qe,[`&${e}-item:hover`]:{[`&:not(${e}-item-selected):not(${e}-submenu-selected)`]:{color:Je}},[`&${e}-item:active`]:{background:Oe}},[`${e}-item a`]:{"&, &:hover":{color:"inherit"}},[`${e}-item-selected`]:{color:o,[`&${e}-item-danger`]:{color:et},"a, a:hover":{color:"inherit"}},[`& ${e}-item-selected`]:{backgroundColor:P,[`&${e}-item-danger`]:{backgroundColor:tt}},[`${e}-item, ${e}-submenu-title`]:{[`&:not(${e}-item-disabled):focus-visible`]:Object.assign({},U(f))},[`&${e}-submenu > ${e}`]:{backgroundColor:gt},[`&${e}-popup > ${e}`]:{backgroundColor:Ft},[`&${e}-horizontal`]:Object.assign(Object.assign({},a==="dark"?{borderBottom:0}:{}),{[`> ${e}-item, > ${e}-submenu`]:{top:F,marginTop:-F,marginBottom:0,borderRadius:pt,"&::after":{position:"absolute",insetInline:le,bottom:0,borderBottom:`${D}px solid transparent`,transition:`border-color ${ie} ${ne}`,content:'""'},"&:hover, &-active, &-open":{background:ht,"&::after":{borderBottomWidth:D,borderBottomColor:Nt}},"&-selected":{color:Nt,backgroundColor:Bt,"&:hover":{backgroundColor:Bt},"&::after":{borderBottomWidth:D,borderBottomColor:Nt}}}}),[`&${e}-root`]:{[`&${e}-inline, &${e}-vertical`]:{borderInlineEnd:`${F}px ${De} ${Xe}`}},[`&${e}-inline`]:{[`${e}-sub${e}-inline`]:{background:O},[`${e}-item, ${e}-submenu-title`]:F&&S?{width:`calc(100% + ${F}px)`}:{},[`${e}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${S}px solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${te} ${ce}`,`opacity ${te} ${ce}`].join(","),content:'""'},[`&${e}-item-danger`]:{"&::after":{borderInlineEndColor:et}}},[`${e}-selected, ${e}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${te} ${ne}`,`opacity ${te} ${ne}`].join(",")}}}}}};const _=f=>{const{componentCls:a,itemHeight:e,itemMarginInline:r,padding:o,menuArrowSize:p,marginXS:C,itemMarginBlock:O}=f,P=o+p+C;return{[`${a}-item`]:{position:"relative",overflow:"hidden"},[`${a}-item, ${a}-submenu-title`]:{height:e,lineHeight:`${e}px`,paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:O,width:`calc(100% - ${r*2}px)`},[`> ${a}-item,
> ${a}-submenu > ${a}-submenu-title`]:{height:e,lineHeight:`${e}px`},[`${a}-item-group-list ${a}-submenu-title,
${a}-submenu-title`]:{paddingInlineEnd:P}}};var de=f=>{const{componentCls:a,iconCls:e,itemHeight:r,colorTextLightSolid:o,dropdownWidth:p,controlHeightLG:C,motionDurationMid:O,motionEaseOut:P,paddingXL:D,itemMarginInline:S,fontSizeLG:F,motionDurationSlow:ie,paddingXS:ne,boxShadowSecondary:ce,collapsedWidth:le,collapsedIconSize:te}=f,re={height:r,lineHeight:`${r}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[a]:{"&-inline, &-vertical":Object.assign({[`&${a}-root`]:{boxShadow:"none"}},_(f))},[`${a}-submenu-popup`]:{[`${a}-vertical`]:Object.assign(Object.assign({},_(f)),{boxShadow:ce})}},{[`${a}-submenu-popup ${a}-vertical${a}-sub`]:{minWidth:p,maxHeight:`calc(100vh - ${C*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${a}-inline`]:{width:"100%",[`&${a}-root`]:{[`${a}-item, ${a}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${ie}`,`background ${ie}`,`padding ${O} ${P}`].join(","),[`> ${a}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${a}-sub${a}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${a}-submenu > ${a}-submenu-title`]:re,[`& ${a}-item-group-title`]:{paddingInlineStart:D}},[`${a}-item`]:re}},{[`${a}-inline-collapsed`]:{width:le,[`&${a}-root`]:{[`${a}-item, ${a}-submenu ${a}-submenu-title`]:{[`> ${a}-inline-collapsed-noicon`]:{fontSize:F,textAlign:"center"}}},[`> ${a}-item,
> ${a}-item-group > ${a}-item-group-list > ${a}-item,
> ${a}-item-group > ${a}-item-group-list > ${a}-submenu > ${a}-submenu-title,
> ${a}-submenu > ${a}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${F/2}px - ${S}px)`,textOverflow:"clip",[`
${a}-submenu-arrow,
${a}-submenu-expand-icon
`]:{opacity:0},[`${a}-item-icon, ${e}`]:{margin:0,fontSize:te,lineHeight:`${r}px`,"+ span":{display:"inline-block",opacity:0}}},[`${a}-item-icon, ${e}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${a}-item-icon, ${e}`]:{display:"none"},"a, a:hover":{color:o}},[`${a}-item-group-title`]:Object.assign(Object.assign({},A.vS),{paddingInline:ne})}}]};const fe=f=>{const{componentCls:a,motionDurationSlow:e,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:p,iconCls:C,iconSize:O,iconMarginInlineEnd:P}=f;return{[`${a}-item, ${a}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${e}`,`background ${e}`,`padding ${e} ${o}`].join(","),[`${a}-item-icon, ${C}`]:{minWidth:O,fontSize:O,transition:[`font-size ${r} ${p}`,`margin ${e} ${o}`,`color ${e}`].join(","),"+ span":{marginInlineStart:P,opacity:1,transition:[`opacity ${e} ${o}`,`margin ${e}`,`color ${e}`].join(",")}},[`${a}-item-icon`]:Object.assign({},(0,A.Ro)()),[`&${a}-item-only-child`]:{[`> ${C}, > ${a}-item-icon`]:{marginInlineEnd:0}}},[`${a}-item-disabled, ${a}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${a}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Ce=f=>{const{componentCls:a,motionDurationSlow:e,motionEaseInOut:r,borderRadius:o,menuArrowSize:p,menuArrowOffset:C}=f;return{[`${a}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:f.margin,width:p,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${e} ${r}, opacity ${e}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:p*.6,height:p*.15,backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${e} ${r}`,`transform ${e} ${r}`,`top ${e} ${r}`,`color ${e} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${C})`},"&::after":{transform:`rotate(-45deg) translateY(${C})`}}}}},Ie=f=>{const{antCls:a,componentCls:e,fontSize:r,motionDurationSlow:o,motionDurationMid:p,motionEaseInOut:C,paddingXS:O,padding:P,colorSplit:D,lineWidth:S,zIndexPopup:F,borderRadiusLG:ie,subMenuItemBorderRadius:ne,menuArrowSize:ce,menuArrowOffset:le,lineType:te,menuPanelMaskInset:re,groupTitleLineHeight:De,groupTitleFontSize:Xe}=f;return[{"":{[`${e}`]:Object.assign(Object.assign({},(0,A.dF)()),{"&-hidden":{display:"none"}})},[`${e}-submenu-hidden`]:{display:"none"}},{[e]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,A.Wf)(f)),(0,A.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${e}-item`]:{flex:"none"}},[`${e}-item, ${e}-submenu, ${e}-submenu-title`]:{borderRadius:f.itemBorderRadius},[`${e}-item-group-title`]:{padding:`${O}px ${P}px`,fontSize:Xe,lineHeight:De,transition:`all ${o}`},[`&-horizontal ${e}-submenu`]:{transition:[`border-color ${o} ${C}`,`background ${o} ${C}`].join(",")},[`${e}-submenu, ${e}-submenu-inline`]:{transition:[`border-color ${o} ${C}`,`background ${o} ${C}`,`padding ${p} ${C}`].join(",")},[`${e}-submenu ${e}-sub`]:{cursor:"initial",transition:[`background ${o} ${C}`,`padding ${o} ${C}`].join(",")},[`${e}-title-content`]:{transition:`color ${o}`},[`${e}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${e}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:D,borderStyle:te,borderWidth:0,borderTopWidth:S,marginBlock:S,padding:0,"&-dashed":{borderStyle:"dashed"}}}),fe(f)),{[`${e}-item-group`]:{[`${e}-item-group-list`]:{margin:0,padding:0,[`${e}-item, ${e}-submenu-title`]:{paddingInline:`${r*2}px ${P}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:F,borderRadius:ie,boxShadow:"none",transformOrigin:"0 0",[`&${e}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${re}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:re},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:f.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:f.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:f.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:f.paddingXS},[`> ${e}`]:Object.assign(Object.assign(Object.assign({borderRadius:ie},fe(f)),Ce(f)),{[`${e}-item, ${e}-submenu > ${e}-submenu-title`]:{borderRadius:ne},[`${e}-submenu-title::after`]:{transition:`transform ${o} ${C}`}})}}),Ce(f)),{[`&-inline-collapsed ${e}-submenu-arrow,
&-inline ${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${le})`},"&::after":{transform:`rotate(45deg) translateX(-${le})`}},[`${e}-submenu-open${e}-submenu-inline > ${e}-submenu-title > ${e}-submenu-arrow`]:{transform:`translateY(-${ce*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${le})`},"&::before":{transform:`rotate(45deg) translateX(${le})`}}})},{[`${a}-layout-header`]:{[e]:{lineHeight:"inherit"}}}]};var $e=(f,a)=>(0,Pe.Z)("Menu",r=>{if(a===!1)return[];const{colorBgElevated:o,colorPrimary:p,colorTextLightSolid:C,controlHeightLG:O,fontSize:P,darkItemColor:D,darkDangerItemColor:S,darkItemBg:F,darkSubMenuItemBg:ie,darkItemSelectedColor:ne,darkItemSelectedBg:ce,darkDangerItemSelectedBg:le,darkItemHoverBg:te,darkGroupTitleColor:re,darkItemHoverColor:De,darkItemDisabledColor:Xe,darkDangerItemHoverColor:ke,darkDangerItemSelectedColor:qe,darkDangerItemActiveBg:Je}=r,et=P/7*5,Oe=(0,c.TS)(r,{menuArrowSize:et,menuHorizontalHeight:O*1.15,menuArrowOffset:`${et*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:o}),tt=(0,c.TS)(Oe,{itemColor:D,itemHoverColor:De,groupTitleColor:re,itemSelectedColor:ne,itemBg:F,popupBg:F,subMenuItemBg:ie,itemActiveBg:"transparent",itemSelectedBg:ce,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:te,itemDisabledColor:Xe,dangerItemColor:S,dangerItemHoverColor:ke,dangerItemSelectedColor:qe,dangerItemActiveBg:Je,dangerItemSelectedBg:le,menuSubMenuBg:ie,horizontalItemSelectedColor:C,horizontalItemSelectedBg:p});return[Ie(Oe),Z(Oe),de(Oe),k(Oe,"light"),k(tt,"dark"),x(Oe),(0,se.Z)(Oe),(0,ae.oN)(Oe,"slide-up"),(0,ae.oN)(Oe,"slide-down"),(0,be._y)(Oe,"zoom-big")]},r=>{const{colorPrimary:o,colorError:p,colorTextDisabled:C,colorErrorBg:O,colorText:P,colorTextDescription:D,colorBgContainer:S,colorFillAlter:F,colorFillContent:ie,lineWidth:ne,lineWidthBold:ce,controlItemBgActive:le,colorBgTextHover:te,controlHeightLG:re,lineHeight:De,colorBgElevated:Xe,marginXXS:ke,padding:qe,fontSize:Je,controlHeightSM:et,fontSizeLG:Oe,colorTextLightSolid:tt,colorErrorHover:ot}=r,at=new B.C(tt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:r.zIndexPopupBase+50,radiusItem:r.borderRadiusLG,itemBorderRadius:r.borderRadiusLG,radiusSubMenuItem:r.borderRadiusSM,subMenuItemBorderRadius:r.borderRadiusSM,colorItemText:P,itemColor:P,colorItemTextHover:P,itemHoverColor:P,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:D,groupTitleColor:D,colorItemTextSelected:o,itemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:S,itemBg:S,colorItemBgHover:te,itemHoverBg:te,colorItemBgActive:ie,itemActiveBg:le,colorSubItemBg:F,subMenuItemBg:F,colorItemBgSelected:le,itemSelectedBg:le,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:ce,activeBarHeight:ce,colorActiveBarBorderSize:ne,activeBarBorderWidth:ne,colorItemTextDisabled:C,itemDisabledColor:C,colorDangerItemText:p,dangerItemColor:p,colorDangerItemTextHover:p,dangerItemHoverColor:p,colorDangerItemTextSelected:p,dangerItemSelectedColor:p,colorDangerItemBgActive:O,dangerItemActiveBg:O,colorDangerItemBgSelected:O,dangerItemSelectedBg:O,itemMarginInline:r.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:re,groupTitleLineHeight:De,collapsedWidth:re*2,popupBg:Xe,itemMarginBlock:ke,itemPaddingInline:qe,horizontalLineHeight:`${re*1.15}px`,iconSize:Je,iconMarginInlineEnd:et-Je,collapsedIconSize:Oe,groupTitleFontSize:Je,darkItemDisabledColor:new B.C(tt).setAlpha(.25).toRgbString(),darkItemColor:at,darkDangerItemColor:p,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:tt,darkItemSelectedBg:o,darkDangerItemSelectedBg:p,darkItemHoverBg:"transparent",darkGroupTitleColor:at,darkItemHoverColor:tt,darkDangerItemHoverColor:ot,darkDangerItemSelectedColor:tt,darkDangerItemActiveBg:p}},{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"]]})(f),ge=function(f,a){var e={};for(var r in f)Object.prototype.hasOwnProperty.call(f,r)&&a.indexOf(r)<0&&(e[r]=f[r]);if(f!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(f);o<r.length;o++)a.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(f,r[o])&&(e[r[o]]=f[r[o]]);return e},Re=(0,i.forwardRef)((f,a)=>{var e,r;const o=i.useContext(J.Z),p=o||{},{getPrefixCls:C,getPopupContainer:O,direction:P,menu:D}=i.useContext(Y.E_),S=C(),{prefixCls:F,className:ie,style:ne,theme:ce="light",expandIcon:le,_internalDisableMenuItemTitleTooltip:te,inlineCollapsed:re,siderCollapsed:De,items:Xe,children:ke,rootClassName:qe,mode:Je,selectable:et,onClick:Oe,overflowedIndicatorPopupClassName:tt}=f,ot=ge(f,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),at=(0,H.Z)(ot,["collapsedWidth"]),gt=L(Xe)||ke;(e=p.validator)===null||e===void 0||e.call(p,{mode:Je});const Nt=(0,oe.useEvent)(function(){var st;Oe==null||Oe.apply(void 0,arguments),(st=p.onClick)===null||st===void 0||st.call(p)}),Bt=p.mode||Je,pt=et!=null?et:p.selectable,ht=i.useMemo(()=>De!==void 0?De:re,[re,De]),Ft={horizontal:{motionName:`${S}-slide-up`},inline:(0,w.Z)(S),other:{motionName:`${S}-zoom-big`}},dt=C("menu",F||p.prefixCls),[Xt,Vt]=$e(dt,!o),jt=v()(`${dt}-${ce}`,D==null?void 0:D.className,ie);let Zt;if(typeof le=="function")Zt=le;else if(le===null||le===!1)Zt=null;else if(p.expandIcon===null||p.expandIcon===!1)Zt=null;else{const st=le!=null?le:p.expandIcon;Zt=(0,n.Tm)(st,{className:v()(`${dt}-submenu-expand-icon`,(0,n.l$)(st)?(r=st.props)===null||r===void 0?void 0:r.className:"")})}const Ge=i.useMemo(()=>({prefixCls:dt,inlineCollapsed:ht||!1,direction:P,firstLevel:!0,theme:ce,mode:Bt,disableMenuItemTitleTooltip:te}),[dt,ht,P,te,ce]);return Xt(i.createElement(J.Z.Provider,{value:null},i.createElement(me.Provider,{value:Ge},i.createElement(d.ZP,Object.assign({getPopupContainer:O,overflowedIndicator:i.createElement(W.Z,null),overflowedIndicatorPopupClassName:v()(dt,`${dt}-${ce}`,tt),mode:Bt,selectable:pt,onClick:Nt},at,{inlineCollapsed:ht,style:Object.assign(Object.assign({},D==null?void 0:D.style),ne),className:jt,prefixCls:dt,direction:P,defaultMotions:Ft,expandIcon:Zt,ref:a,rootClassName:v()(qe,Vt)}),gt))))});const Ae=(0,i.forwardRef)((f,a)=>{const e=(0,i.useRef)(null),r=i.useContext(y.D);return(0,i.useImperativeHandle)(a,()=>({menu:e.current,focus:o=>{var p;(p=e.current)===null||p===void 0||p.focus(o)}})),i.createElement(Re,Object.assign({ref:e},f,r))});Ae.Item=he,Ae.SubMenu=Me,Ae.Divider=j,Ae.ItemGroup=d.BW;var xe=Ae},61621:function(_e,ue,t){t.d(ue,{Z:function(){return a}});var d=t(92310),i=t.n(d),y=t(59301),X=t(36355),v=t(2738),V=e=>{const{prefixCls:r,className:o,style:p,size:C,shape:O}=e,P=i()({[`${r}-lg`]:C==="large",[`${r}-sm`]:C==="small"}),D=i()({[`${r}-circle`]:O==="circle",[`${r}-square`]:O==="square",[`${r}-round`]:O==="round"}),S=y.useMemo(()=>typeof C=="number"?{width:C,height:C,lineHeight:`${C}px`}:{},[C]);return y.createElement("span",{className:i()(r,P,D,o),style:Object.assign(Object.assign({},S),p)})},ee=t(36237),j=t(83116),K=t(37613);const H=new ee.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),T=e=>({height:e,lineHeight:`${e}px`}),n=e=>Object.assign({width:e},T(e)),G=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:H,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),me=e=>Object.assign({width:e*5,minWidth:e*5},T(e)),pe=e=>{const{skeletonAvatarCls:r,gradientFromColor:o,controlHeight:p,controlHeightLG:C,controlHeightSM:O}=e;return{[`${r}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:o},n(p)),[`${r}${r}-circle`]:{borderRadius:"50%"},[`${r}${r}-lg`]:Object.assign({},n(C)),[`${r}${r}-sm`]:Object.assign({},n(O))}},he=e=>{const{controlHeight:r,borderRadiusSM:o,skeletonInputCls:p,controlHeightLG:C,controlHeightSM:O,gradientFromColor:P}=e;return{[`${p}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:P,borderRadius:o},me(r)),[`${p}-lg`]:Object.assign({},me(C)),[`${p}-sm`]:Object.assign({},me(O))}},M=e=>Object.assign({width:e},T(e)),Me=e=>{const{skeletonImageCls:r,imageSizeBase:o,gradientFromColor:p,borderRadiusSM:C}=e;return{[`${r}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:p,borderRadius:C},M(o*2)),{[`${r}-path`]:{fill:"#bfbfbf"},[`${r}-svg`]:Object.assign(Object.assign({},M(o)),{maxWidth:o*4,maxHeight:o*4}),[`${r}-svg${r}-svg-circle`]:{borderRadius:"50%"}}),[`${r}${r}-circle`]:{borderRadius:"50%"}}},W=(e,r,o)=>{const{skeletonButtonCls:p}=e;return{[`${o}${p}-circle`]:{width:r,minWidth:r,borderRadius:"50%"},[`${o}${p}-round`]:{borderRadius:r}}},oe=e=>Object.assign({width:e*2,minWidth:e*2},T(e)),w=e=>{const{borderRadiusSM:r,skeletonButtonCls:o,controlHeight:p,controlHeightLG:C,controlHeightSM:O,gradientFromColor:P}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${o}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:P,borderRadius:r,width:p*2,minWidth:p*2},oe(p))},W(e,p,o)),{[`${o}-lg`]:Object.assign({},oe(C))}),W(e,C,`${o}-lg`)),{[`${o}-sm`]:Object.assign({},oe(O))}),W(e,O,`${o}-sm`))},J=e=>{const{componentCls:r,skeletonAvatarCls:o,skeletonTitleCls:p,skeletonParagraphCls:C,skeletonButtonCls:O,skeletonInputCls:P,skeletonImageCls:D,controlHeight:S,controlHeightLG:F,controlHeightSM:ie,gradientFromColor:ne,padding:ce,marginSM:le,borderRadius:te,titleHeight:re,blockRadius:De,paragraphLiHeight:Xe,controlHeightXS:ke,paragraphMarginTop:qe}=e;return{[`${r}`]:{display:"table",width:"100%",[`${r}-header`]:{display:"table-cell",paddingInlineEnd:ce,verticalAlign:"top",[`${o}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:ne},n(S)),[`${o}-circle`]:{borderRadius:"50%"},[`${o}-lg`]:Object.assign({},n(F)),[`${o}-sm`]:Object.assign({},n(ie))},[`${r}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${p}`]:{width:"100%",height:re,background:ne,borderRadius:De,[`+ ${C}`]:{marginBlockStart:ie}},[`${C}`]:{padding:0,"> li":{width:"100%",height:Xe,listStyle:"none",background:ne,borderRadius:De,"+ li":{marginBlockStart:ke}}},[`${C}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${r}-content`]:{[`${p}, ${C} > li`]:{borderRadius:te}}},[`${r}-with-avatar ${r}-content`]:{[`${p}`]:{marginBlockStart:le,[`+ ${C}`]:{marginBlockStart:qe}}},[`${r}${r}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},w(e)),pe(e)),he(e)),Me(e)),[`${r}${r}-block`]:{width:"100%",[`${O}`]:{width:"100%"},[`${P}`]:{width:"100%"}},[`${r}${r}-active`]:{[`
${p},
${C} > li,
${o},
${O},
${P},
${D}
`]:Object.assign({},G(e))}}};var E=(0,j.Z)("Skeleton",e=>{const{componentCls:r}=e,o=(0,K.TS)(e,{skeletonAvatarCls:`${r}-avatar`,skeletonTitleCls:`${r}-title`,skeletonParagraphCls:`${r}-paragraph`,skeletonButtonCls:`${r}-button`,skeletonInputCls:`${r}-input`,skeletonImageCls:`${r}-image`,imageSizeBase:e.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[J(o)]},e=>{const{colorFillContent:r,colorFill:o}=e,p=r,C=o;return{color:p,colorGradientEnd:C,gradientFromColor:p,gradientToColor:C,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),L=e=>{const{prefixCls:r,className:o,rootClassName:p,active:C,shape:O="circle",size:P="default"}=e,{getPrefixCls:D}=y.useContext(X.E_),S=D("skeleton",r),[F,ie]=E(S),ne=(0,v.Z)(e,["prefixCls","className"]),ce=i()(S,`${S}-element`,{[`${S}-active`]:C},o,p,ie);return F(y.createElement("div",{className:ce},y.createElement(V,Object.assign({prefixCls:`${S}-avatar`,shape:O,size:P},ne))))},A=e=>{const{prefixCls:r,className:o,rootClassName:p,active:C,block:O=!1,size:P="default"}=e,{getPrefixCls:D}=y.useContext(X.E_),S=D("skeleton",r),[F,ie]=E(S),ne=(0,v.Z)(e,["prefixCls"]),ce=i()(S,`${S}-element`,{[`${S}-active`]:C,[`${S}-block`]:O},o,p,ie);return F(y.createElement("div",{className:ce},y.createElement(V,Object.assign({prefixCls:`${S}-button`,size:P},ne))))};const se="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var be=e=>{const{prefixCls:r,className:o,rootClassName:p,style:C,active:O}=e,{getPrefixCls:P}=y.useContext(X.E_),D=P("skeleton",r),[S,F]=E(D),ie=i()(D,`${D}-element`,{[`${D}-active`]:O},o,p,F);return S(y.createElement("div",{className:ie},y.createElement("div",{className:i()(`${D}-image`,o),style:C},y.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${D}-image-svg`},y.createElement("path",{d:se,className:`${D}-image-path`})))))},c=e=>{const{prefixCls:r,className:o,rootClassName:p,active:C,block:O,size:P="default"}=e,{getPrefixCls:D}=y.useContext(X.E_),S=D("skeleton",r),[F,ie]=E(S),ne=(0,v.Z)(e,["prefixCls"]),ce=i()(S,`${S}-element`,{[`${S}-active`]:C,[`${S}-block`]:O},o,p,ie);return F(y.createElement("div",{className:ce},y.createElement(V,Object.assign({prefixCls:`${S}-input`,size:P},ne))))},R=t(54476),Z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},l=Z,x=t(7657),U=function(r,o){return y.createElement(x.Z,(0,R.Z)({},r,{ref:o,icon:l}))},z=y.forwardRef(U),k=z,ve=e=>{const{prefixCls:r,className:o,rootClassName:p,style:C,active:O,children:P}=e,{getPrefixCls:D}=y.useContext(X.E_),S=D("skeleton",r),[F,ie]=E(S),ne=i()(S,`${S}-element`,{[`${S}-active`]:O},ie,o,p),ce=P!=null?P:y.createElement(k,null);return F(y.createElement("div",{className:ne},y.createElement("div",{className:i()(`${S}-image`,o),style:C},ce)))},de=t(94480),Ce=e=>{const r=D=>{const{width:S,rows:F=2}=e;if(Array.isArray(S))return S[D];if(F-1===D)return S},{prefixCls:o,className:p,style:C,rows:O}=e,P=(0,de.Z)(Array(O)).map((D,S)=>y.createElement("li",{key:S,style:{width:r(S)}}));return y.createElement("ul",{className:i()(o,p),style:C},P)},$e=e=>{let{prefixCls:r,className:o,width:p,style:C}=e;return y.createElement("h3",{className:i()(r,o),style:Object.assign({width:p},C)})};function ge(e){return e&&typeof e=="object"?e:{}}function Ze(e,r){return e&&!r?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Re(e,r){return!e&&r?{width:"38%"}:e&&r?{width:"50%"}:{}}function Ae(e,r){const o={};return(!e||!r)&&(o.width="61%"),!e&&r?o.rows=3:o.rows=2,o}const xe=e=>{const{prefixCls:r,loading:o,className:p,rootClassName:C,style:O,children:P,avatar:D=!1,title:S=!0,paragraph:F=!0,active:ie,round:ne}=e,{getPrefixCls:ce,direction:le,skeleton:te}=y.useContext(X.E_),re=ce("skeleton",r),[De,Xe]=E(re);if(o||!("loading"in e)){const ke=!!D,qe=!!S,Je=!!F;let et;if(ke){const ot=Object.assign(Object.assign({prefixCls:`${re}-avatar`},Ze(qe,Je)),ge(D));et=y.createElement("div",{className:`${re}-header`},y.createElement(V,Object.assign({},ot)))}let Oe;if(qe||Je){let ot;if(qe){const gt=Object.assign(Object.assign({prefixCls:`${re}-title`},Re(ke,Je)),ge(S));ot=y.createElement($e,Object.assign({},gt))}let at;if(Je){const gt=Object.assign(Object.assign({prefixCls:`${re}-paragraph`},Ae(ke,qe)),ge(F));at=y.createElement(Ce,Object.assign({},gt))}Oe=y.createElement("div",{className:`${re}-content`},ot,at)}const tt=i()(re,{[`${re}-with-avatar`]:ke,[`${re}-active`]:ie,[`${re}-rtl`]:le==="rtl",[`${re}-round`]:ne},te==null?void 0:te.className,p,C,Xe);return De(y.createElement("div",{className:tt,style:Object.assign(Object.assign({},te==null?void 0:te.style),O)},et,Oe))}return typeof P!="undefined"?P:null};xe.Button=A,xe.Avatar=L,xe.Input=c,xe.Image=be,xe.Node=ve;var f=xe,a=f},8378:function(_e,ue){const t=d=>({[d.componentCls]:{[`${d.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${d.motionDurationMid} ${d.motionEaseInOut},
opacity ${d.motionDurationMid} ${d.motionEaseInOut} !important`}},[`${d.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${d.motionDurationMid} ${d.motionEaseInOut},
opacity ${d.motionDurationMid} ${d.motionEaseInOut} !important`}}});ue.Z=t},92899:function(_e,ue,t){t.d(ue,{Fm:function(){return T}});var d=t(36237),i=t(95406);const y=new d.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),X=new d.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),v=new d.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Y=new d.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),V=new d.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ee=new d.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),j=new d.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),K=new d.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),H={"move-up":{inKeyframes:j,outKeyframes:K},"move-down":{inKeyframes:y,outKeyframes:X},"move-left":{inKeyframes:v,outKeyframes:Y},"move-right":{inKeyframes:V,outKeyframes:ee}},T=(n,G)=>{const{antCls:me}=n,pe=`${me}-${G}`,{inKeyframes:he,outKeyframes:M}=H[G];return[(0,i.R)(pe,he,M,n.motionDurationMid),{[`
${pe}-enter,
${pe}-appear
`]:{opacity:0,animationTimingFunction:n.motionEaseOutCirc},[`${pe}-leave`]:{animationTimingFunction:n.motionEaseInOutCirc}}]}},13826:function(_e,ue,t){t.d(ue,{Qt:function(){return v},Uw:function(){return X},fJ:function(){return y},ly:function(){return Y},oN:function(){return T}});var d=t(36237),i=t(95406);const y=new d.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),X=new d.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),v=new d.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Y=new d.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),V=new d.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),ee=new d.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),j=new d.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),K=new d.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),H={"slide-up":{inKeyframes:y,outKeyframes:X},"slide-down":{inKeyframes:v,outKeyframes:Y},"slide-left":{inKeyframes:V,outKeyframes:ee},"slide-right":{inKeyframes:j,outKeyframes:K}},T=(n,G)=>{const{antCls:me}=n,pe=`${me}-${G}`,{inKeyframes:he,outKeyframes:M}=H[G];return[(0,i.R)(pe,he,M,n.motionDurationMid),{[`
${pe}-enter,
${pe}-appear
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:n.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${pe}-leave`]:{animationTimingFunction:n.motionEaseInQuint}}]}},31561:function(_e,ue,t){t.d(ue,{Z:function(){return E}});var d=t(54476),i=t(20068),y=t(42978),X=t(75931),v=t(35593),Y=t(92310),V=t.n(Y),ee=t(8654),j=t(59301),K=t(10228),H=t(16089),T=K.Z.ESC,n=K.Z.TAB;function G($){var L=$.visible,B=$.triggerRef,A=$.onVisibleChange,se=$.autoFocus,ae=$.overlayRef,be=j.useRef(!1),Pe=function(){if(L){var l,x;(l=B.current)===null||l===void 0||(x=l.focus)===null||x===void 0||x.call(l),A==null||A(!1)}},c=function(){var l;return(l=ae.current)!==null&&l!==void 0&&l.focus?(ae.current.focus(),be.current=!0,!0):!1},R=function(l){switch(l.keyCode){case T:Pe();break;case n:{var x=!1;be.current||(x=c()),x?l.preventDefault():Pe();break}}};j.useEffect(function(){return L?(window.addEventListener("keydown",R),se&&(0,H.Z)(c,3),function(){window.removeEventListener("keydown",R),be.current=!1}):function(){be.current=!1}},[L])}var me=(0,j.forwardRef)(function($,L){var B=$.overlay,A=$.arrow,se=$.prefixCls,ae=(0,j.useMemo)(function(){var Pe;return typeof B=="function"?Pe=B():Pe=B,Pe},[B]),be=(0,ee.sQ)(L,ae==null?void 0:ae.ref);return j.createElement(j.Fragment,null,A&&j.createElement("div",{className:"".concat(se,"-arrow")}),j.cloneElement(ae,{ref:(0,ee.Yr)(ae)?be:void 0}))}),pe=me,he={adjustX:1,adjustY:1},M=[0,0],Me={topLeft:{points:["bl","tl"],overflow:he,offset:[0,-4],targetOffset:M},top:{points:["bc","tc"],overflow:he,offset:[0,-4],targetOffset:M},topRight:{points:["br","tr"],overflow:he,offset:[0,-4],targetOffset:M},bottomLeft:{points:["tl","bl"],overflow:he,offset:[0,4],targetOffset:M},bottom:{points:["tc","bc"],overflow:he,offset:[0,4],targetOffset:M},bottomRight:{points:["tr","br"],overflow:he,offset:[0,4],targetOffset:M}},W=Me,oe=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function w($,L){var B,A=$.arrow,se=A===void 0?!1:A,ae=$.prefixCls,be=ae===void 0?"rc-dropdown":ae,Pe=$.transitionName,c=$.animation,R=$.align,Z=$.placement,l=Z===void 0?"bottomLeft":Z,x=$.placements,U=x===void 0?W:x,z=$.getPopupContainer,k=$.showAction,_=$.hideAction,ve=$.overlayClassName,de=$.overlayStyle,fe=$.visible,Ce=$.trigger,Ie=Ce===void 0?["hover"]:Ce,$e=$.autoFocus,ge=$.overlay,Ze=$.children,Re=$.onVisibleChange,Ae=(0,X.Z)($,oe),xe=j.useState(),f=(0,y.Z)(xe,2),a=f[0],e=f[1],r="visible"in $?fe:a,o=j.useRef(null),p=j.useRef(null),C=j.useRef(null);j.useImperativeHandle(L,function(){return o.current});var O=function(te){e(te),Re==null||Re(te)};G({visible:r,triggerRef:C,onVisibleChange:O,autoFocus:$e,overlayRef:p});var P=function(te){var re=$.onOverlayClick;e(!1),re&&re(te)},D=function(){return j.createElement(pe,{ref:p,overlay:ge,prefixCls:be,arrow:se})},S=function(){return typeof ge=="function"?D:D()},F=function(){var te=$.minOverlayWidthMatchTrigger,re=$.alignPoint;return"minOverlayWidthMatchTrigger"in $?te:!re},ie=function(){var te=$.openClassName;return te!==void 0?te:"".concat(be,"-open")},ne=j.cloneElement(Ze,{className:V()((B=Ze.props)===null||B===void 0?void 0:B.className,r&&ie()),ref:(0,ee.Yr)(Ze)?(0,ee.sQ)(C,Ze.ref):void 0}),ce=_;return!ce&&Ie.indexOf("contextMenu")!==-1&&(ce=["click"]),j.createElement(v.Z,(0,d.Z)({builtinPlacements:U},Ae,{prefixCls:be,ref:o,popupClassName:V()(ve,(0,i.Z)({},"".concat(be,"-show-arrow"),se)),popupStyle:de,action:Ie,showAction:k,hideAction:ce,popupPlacement:l,popupAlign:R,popupTransitionName:Pe,popupAnimation:c,popupVisible:r,stretch:F()?"minWidth":"",popup:S(),onPopupVisibleChange:O,onPopupClick:P,getPopupContainer:z}),ne)}var J=j.forwardRef(w),E=J},15285:function(_e,ue,t){t.d(ue,{iz:function(){return At},ck:function(){return pt},BW:function(){return gn},sN:function(){return pt},Wd:function(){return Gt},ZP:function(){return Kt},Xl:function(){return B}});var d=t(54476),i=t(20068),y=t(33885),X=t(94480),v=t(42978),Y=t(75931),V=t(92310),ee=t.n(V),j=t(83836),K=t(18929),H=t(13697),T=t(48736),n=t(59301),G=t(4676),me=n.createContext(null);function pe(u,s){return u===void 0?null:"".concat(u,"-").concat(s)}function he(u){var s=n.useContext(me);return pe(s,u)}var M=t(80547),Me=["children","locked"],W=n.createContext(null);function oe(u,s){var b=(0,y.Z)({},u);return Object.keys(s).forEach(function(I){var m=s[I];m!==void 0&&(b[I]=m)}),b}function w(u){var s=u.children,b=u.locked,I=(0,Y.Z)(u,Me),m=n.useContext(W),h=(0,M.Z)(function(){return oe(m,I)},[m,I],function(g,N){return!b&&(g[0]!==N[0]||!(0,H.Z)(g[1],N[1],!0))});return n.createElement(W.Provider,{value:h},s)}var J=[],E=n.createContext(null);function $(){return n.useContext(E)}var L=n.createContext(J);function B(u){var s=n.useContext(L);return n.useMemo(function(){return u!==void 0?[].concat((0,X.Z)(s),[u]):s},[s,u])}var A=n.createContext(null),se=n.createContext({}),ae=se,be=t(29194);function Pe(u){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,be.Z)(u)){var b=u.nodeName.toLowerCase(),I=["input","select","textarea","button"].includes(b)||u.isContentEditable||b==="a"&&!!u.getAttribute("href"),m=u.getAttribute("tabindex"),h=Number(m),g=null;return m&&!Number.isNaN(h)?g=h:I&&g===null&&(g=0),I&&u.disabled&&(g=null),g!==null&&(g>=0||s&&g<0)}return!1}function c(u){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,b=(0,X.Z)(u.querySelectorAll("*")).filter(function(I){return Pe(I,s)});return Pe(u,s)&&b.unshift(u),b}var R=null;function Z(){R=document.activeElement}function l(){R=null}function x(){if(R)try{R.focus()}catch(u){}}function U(u,s){if(s.keyCode===9){var b=c(u),I=b[s.shiftKey?0:b.length-1],m=I===document.activeElement||u===document.activeElement;if(m){var h=b[s.shiftKey?b.length-1:0];h.focus(),s.preventDefault()}}}var z=t(10228),k=t(16089),_=z.Z.LEFT,ve=z.Z.RIGHT,de=z.Z.UP,fe=z.Z.DOWN,Ce=z.Z.ENTER,Ie=z.Z.ESC,$e=z.Z.HOME,ge=z.Z.END,Ze=[de,fe,_,ve];function Re(u,s,b,I){var m,h,g,N,q="prev",Q="next",Te="children",ye="parent";if(u==="inline"&&I===Ce)return{inlineTrigger:!0};var Le=(m={},(0,i.Z)(m,de,q),(0,i.Z)(m,fe,Q),m),ze=(h={},(0,i.Z)(h,_,b?Q:q),(0,i.Z)(h,ve,b?q:Q),(0,i.Z)(h,fe,Te),(0,i.Z)(h,Ce,Te),h),we=(g={},(0,i.Z)(g,de,q),(0,i.Z)(g,fe,Q),(0,i.Z)(g,Ce,Te),(0,i.Z)(g,Ie,ye),(0,i.Z)(g,_,b?Te:ye),(0,i.Z)(g,ve,b?ye:Te),g),Ye={inline:Le,horizontal:ze,vertical:we,inlineSub:Le,horizontalSub:we,verticalSub:we},Ve=(N=Ye["".concat(u).concat(s?"":"Sub")])===null||N===void 0?void 0:N[I];switch(Ve){case q:return{offset:-1,sibling:!0};case Q:return{offset:1,sibling:!0};case ye:return{offset:-1,sibling:!1};case Te:return{offset:1,sibling:!1};default:return null}}function Ae(u){for(var s=u;s;){if(s.getAttribute("data-menu-list"))return s;s=s.parentElement}return null}function xe(u,s){for(var b=u||document.activeElement;b;){if(s.has(b))return b;b=b.parentElement}return null}function f(u,s){var b=c(u,!0);return b.filter(function(I){return s.has(I)})}function a(u,s,b){var I=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!u)return null;var m=f(u,s),h=m.length,g=m.findIndex(function(N){return b===N});return I<0?g===-1?g=h-1:g-=1:I>0&&(g+=1),g=(g+h)%h,m[g]}var e=function(s,b){var I=new Set,m=new Map,h=new Map;return s.forEach(function(g){var N=document.querySelector("[data-menu-id='".concat(pe(b,g),"']"));N&&(I.add(N),h.set(N,g),m.set(g,N))}),{elements:I,key2element:m,element2key:h}};function r(u,s,b,I,m,h,g,N,q,Q){var Te=n.useRef(),ye=n.useRef();ye.current=s;var Le=function(){k.Z.cancel(Te.current)};return n.useEffect(function(){return function(){Le()}},[]),function(ze){var we=ze.which;if([].concat(Ze,[Ce,Ie,$e,ge]).includes(we)){var Ye=h(),Ve=e(Ye,I),Qe=Ve,Ne=Qe.elements,Ee=Qe.key2element,Se=Qe.element2key,He=Ee.get(s),je=xe(He,Ne),nt=Se.get(je),Ke=Re(u,g(nt,!0).length===1,b,we);if(!Ke&&we!==$e&&we!==ge)return;(Ze.includes(we)||[$e,ge].includes(we))&&ze.preventDefault();var xt=function(ct){if(ct){var Ot=ct,Et=ct.querySelector("a");Et!=null&&Et.getAttribute("href")&&(Ot=Et);var Pt=Se.get(ct);N(Pt),Le(),Te.current=(0,k.Z)(function(){ye.current===Pt&&Ot.focus()})}};if([$e,ge].includes(we)||Ke.sibling||!je){var Fe;!je||u==="inline"?Fe=m.current:Fe=Ae(je);var mt,rt=f(Fe,Ne);we===$e?mt=rt[0]:we===ge?mt=rt[rt.length-1]:mt=a(Fe,Ne,je,Ke.offset),xt(mt)}else if(Ke.inlineTrigger)q(nt);else if(Ke.offset>0)q(nt,!0),Le(),Te.current=(0,k.Z)(function(){Ve=e(Ye,I);var Tt=je.getAttribute("aria-controls"),ct=document.getElementById(Tt),Ot=a(ct,Ve.elements);xt(Ot)},5);else if(Ke.offset<0){var it=g(nt,!0),Ct=it[it.length-2],yt=Ee.get(Ct);q(Ct,!1),xt(yt)}}Q==null||Q(ze)}}function o(u){Promise.resolve().then(u)}var p="__RC_UTIL_PATH_SPLIT__",C=function(s){return s.join(p)},O=function(s){return s.split(p)},P="rc-menu-more";function D(){var u=n.useState({}),s=(0,v.Z)(u,2),b=s[1],I=(0,n.useRef)(new Map),m=(0,n.useRef)(new Map),h=n.useState([]),g=(0,v.Z)(h,2),N=g[0],q=g[1],Q=(0,n.useRef)(0),Te=(0,n.useRef)(!1),ye=function(){Te.current||b({})},Le=(0,n.useCallback)(function(Ee,Se){var He=C(Se);m.current.set(He,Ee),I.current.set(Ee,He),Q.current+=1;var je=Q.current;o(function(){je===Q.current&&ye()})},[]),ze=(0,n.useCallback)(function(Ee,Se){var He=C(Se);m.current.delete(He),I.current.delete(Ee)},[]),we=(0,n.useCallback)(function(Ee){q(Ee)},[]),Ye=(0,n.useCallback)(function(Ee,Se){var He=I.current.get(Ee)||"",je=O(He);return Se&&N.includes(je[0])&&je.unshift(P),je},[N]),Ve=(0,n.useCallback)(function(Ee,Se){return Ee.some(function(He){var je=Ye(He,!0);return je.includes(Se)})},[Ye]),Qe=function(){var Se=(0,X.Z)(I.current.keys());return N.length&&Se.push(P),Se},Ne=(0,n.useCallback)(function(Ee){var Se="".concat(I.current.get(Ee)).concat(p),He=new Set;return(0,X.Z)(m.current.keys()).forEach(function(je){je.startsWith(Se)&&He.add(m.current.get(je))}),He},[]);return n.useEffect(function(){return function(){Te.current=!0}},[]),{registerPath:Le,unregisterPath:ze,refreshOverflowKeys:we,isSubPathKey:Ve,getKeyPath:Ye,getKeys:Qe,getSubPathKeys:Ne}}function S(u){var s=n.useRef(u);s.current=u;var b=n.useCallback(function(){for(var I,m=arguments.length,h=new Array(m),g=0;g<m;g++)h[g]=arguments[g];return(I=s.current)===null||I===void 0?void 0:I.call.apply(I,[s].concat(h))},[]);return u?b:void 0}var F=Math.random().toFixed(5).toString().slice(2),ie=0;function ne(u){var s=(0,K.Z)(u,{value:u}),b=(0,v.Z)(s,2),I=b[0],m=b[1];return n.useEffect(function(){ie+=1;var h="".concat(F,"-").concat(ie);m("rc-menu-uuid-".concat(h))},[]),I}var ce=t(67732),le=t(83652),te=t(42403),re=t(158),De=t(2738),Xe=t(8654);function ke(u,s,b,I){var m=n.useContext(W),h=m.activeKey,g=m.onActive,N=m.onInactive,q={active:h===u};return s||(q.onMouseEnter=function(Q){b==null||b({key:u,domEvent:Q}),g(u)},q.onMouseLeave=function(Q){I==null||I({key:u,domEvent:Q}),N(u)}),q}function qe(u){var s=n.useContext(W),b=s.mode,I=s.rtl,m=s.inlineIndent;if(b!=="inline")return null;var h=u;return I?{paddingRight:h*m}:{paddingLeft:h*m}}function Je(u){var s=u.icon,b=u.props,I=u.children,m;return s===null||s===!1?null:(typeof s=="function"?m=n.createElement(s,(0,y.Z)({},b)):typeof s!="boolean"&&(m=s),m||I||null)}var et=["item"];function Oe(u){var s=u.item,b=(0,Y.Z)(u,et);return Object.defineProperty(b,"item",{get:function(){return(0,T.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),s}}),b}var tt=["title","attribute","elementRef"],ot=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],at=["active"],gt=function(u){(0,te.Z)(b,u);var s=(0,re.Z)(b);function b(){return(0,ce.Z)(this,b),s.apply(this,arguments)}return(0,le.Z)(b,[{key:"render",value:function(){var m=this.props,h=m.title,g=m.attribute,N=m.elementRef,q=(0,Y.Z)(m,tt),Q=(0,De.Z)(q,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,T.ZP)(!g,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),n.createElement(j.Z.Item,(0,d.Z)({},g,{title:typeof h=="string"?h:void 0},Q,{ref:N}))}}]),b}(n.Component),Nt=n.forwardRef(function(u,s){var b,I=u.style,m=u.className,h=u.eventKey,g=u.warnKey,N=u.disabled,q=u.itemIcon,Q=u.children,Te=u.role,ye=u.onMouseEnter,Le=u.onMouseLeave,ze=u.onClick,we=u.onKeyDown,Ye=u.onFocus,Ve=(0,Y.Z)(u,ot),Qe=he(h),Ne=n.useContext(W),Ee=Ne.prefixCls,Se=Ne.onItemClick,He=Ne.disabled,je=Ne.overflowDisabled,nt=Ne.itemIcon,Ke=Ne.selectedKeys,xt=Ne.onActive,Fe=n.useContext(ae),mt=Fe._internalRenderMenuItem,rt="".concat(Ee,"-item"),it=n.useRef(),Ct=n.useRef(),yt=He||N,Tt=(0,Xe.x1)(s,Ct),ct=B(h),Ot=function(lt){return{key:h,keyPath:(0,X.Z)(ct).reverse(),item:it.current,domEvent:lt}},Et=q||nt,Pt=ke(h,yt,ye,Le),Yt=Pt.active,Qt=(0,Y.Z)(Pt,at),Ht=Ke.includes(h),Jt=qe(ct.length),_t=function(lt){if(!yt){var Rt=Ot(lt);ze==null||ze(Oe(Rt)),Se(Rt)}},ut=function(lt){if(we==null||we(lt),lt.which===z.Z.ENTER){var Rt=Ot(lt);ze==null||ze(Oe(Rt)),Se(Rt)}},$t=function(lt){xt(h),Ye==null||Ye(lt)},cn={};u.role==="option"&&(cn["aria-selected"]=Ht);var qt=n.createElement(gt,(0,d.Z)({ref:it,elementRef:Tt,role:Te===null?"none":Te||"menuitem",tabIndex:N?null:-1,"data-menu-id":je&&Qe?null:Qe},Ve,Qt,cn,{component:"li","aria-disabled":N,style:(0,y.Z)((0,y.Z)({},Jt),I),className:ee()(rt,(b={},(0,i.Z)(b,"".concat(rt,"-active"),Yt),(0,i.Z)(b,"".concat(rt,"-selected"),Ht),(0,i.Z)(b,"".concat(rt,"-disabled"),yt),b),m),onClick:_t,onKeyDown:ut,onFocus:$t}),Q,n.createElement(Je,{props:(0,y.Z)((0,y.Z)({},u),{},{isSelected:Ht}),icon:Et}));return mt&&(qt=mt(qt,u,{selected:Ht})),qt});function Bt(u,s){var b=u.eventKey,I=$(),m=B(b);return n.useEffect(function(){if(I)return I.registerPath(b,m),function(){I.unregisterPath(b,m)}},[m]),I?null:n.createElement(Nt,(0,d.Z)({},u,{ref:s}))}var pt=n.forwardRef(Bt),ht=["className","children"],Ft=function(s,b){var I=s.className,m=s.children,h=(0,Y.Z)(s,ht),g=n.useContext(W),N=g.prefixCls,q=g.mode,Q=g.rtl;return n.createElement("ul",(0,d.Z)({className:ee()(N,Q&&"".concat(N,"-rtl"),"".concat(N,"-sub"),"".concat(N,"-").concat(q==="inline"?"inline":"vertical"),I),role:"menu"},h,{"data-menu-list":!0,ref:b}),m)},dt=n.forwardRef(Ft);dt.displayName="SubMenuList";var Xt=dt,Vt=t(11592);function jt(u,s){return(0,Vt.Z)(u).map(function(b,I){if(n.isValidElement(b)){var m,h,g=b.key,N=(m=(h=b.props)===null||h===void 0?void 0:h.eventKey)!==null&&m!==void 0?m:g,q=N==null;q&&(N="tmp_key-".concat([].concat((0,X.Z)(s),[I]).join("-")));var Q={key:N,eventKey:N};return n.cloneElement(b,Q)}return b})}var Zt=t(35593),Ge={adjustX:1,adjustY:1},st={topLeft:{points:["bl","tl"],overflow:Ge},topRight:{points:["br","tr"],overflow:Ge},bottomLeft:{points:["tl","bl"],overflow:Ge},bottomRight:{points:["tr","br"],overflow:Ge},leftTop:{points:["tr","tl"],overflow:Ge},leftBottom:{points:["br","bl"],overflow:Ge},rightTop:{points:["tl","tr"],overflow:Ge},rightBottom:{points:["bl","br"],overflow:Ge}},jn={topLeft:{points:["bl","tl"],overflow:Ge},topRight:{points:["br","tr"],overflow:Ge},bottomLeft:{points:["tl","bl"],overflow:Ge},bottomRight:{points:["tr","br"],overflow:Ge},rightTop:{points:["tr","tl"],overflow:Ge},rightBottom:{points:["br","bl"],overflow:Ge},leftTop:{points:["tl","tr"],overflow:Ge},leftBottom:{points:["bl","br"],overflow:Ge}},Ut=null;function xn(u,s,b){if(s)return s;if(b)return b[u]||b.other}var On={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function An(u){var s=u.prefixCls,b=u.visible,I=u.children,m=u.popup,h=u.popupStyle,g=u.popupClassName,N=u.popupOffset,q=u.disabled,Q=u.mode,Te=u.onVisibleChange,ye=n.useContext(W),Le=ye.getPopupContainer,ze=ye.rtl,we=ye.subMenuOpenDelay,Ye=ye.subMenuCloseDelay,Ve=ye.builtinPlacements,Qe=ye.triggerSubMenuAction,Ne=ye.forceSubMenuRender,Ee=ye.rootClassName,Se=ye.motion,He=ye.defaultMotions,je=n.useState(!1),nt=(0,v.Z)(je,2),Ke=nt[0],xt=nt[1],Fe=ze?(0,y.Z)((0,y.Z)({},jn),Ve):(0,y.Z)((0,y.Z)({},st),Ve),mt=On[Q],rt=xn(Q,Se,He),it=n.useRef(rt);Q!=="inline"&&(it.current=rt);var Ct=(0,y.Z)((0,y.Z)({},it.current),{},{leavedClassName:"".concat(s,"-hidden"),removeOnLeave:!1,motionAppear:!0}),yt=n.useRef();return n.useEffect(function(){return yt.current=(0,k.Z)(function(){xt(b)}),function(){k.Z.cancel(yt.current)}},[b]),n.createElement(Zt.Z,{prefixCls:s,popupClassName:ee()("".concat(s,"-popup"),(0,i.Z)({},"".concat(s,"-rtl"),ze),g,Ee),stretch:Q==="horizontal"?"minWidth":null,getPopupContainer:Le,builtinPlacements:Fe,popupPlacement:mt,popupVisible:Ke,popup:m,popupStyle:h,popupAlign:N&&{offset:N},action:q?[]:[Qe],mouseEnterDelay:we,mouseLeaveDelay:Ye,onPopupVisibleChange:Te,forceRender:Ne,popupMotion:Ct,fresh:!0},I)}var Ln=t(77900);function on(u){var s=u.id,b=u.open,I=u.keyPath,m=u.children,h="inline",g=n.useContext(W),N=g.prefixCls,q=g.forceSubMenuRender,Q=g.motion,Te=g.defaultMotions,ye=g.mode,Le=n.useRef(!1);Le.current=ye===h;var ze=n.useState(!Le.current),we=(0,v.Z)(ze,2),Ye=we[0],Ve=we[1],Qe=Le.current?b:!1;n.useEffect(function(){Le.current&&Ve(!1)},[ye]);var Ne=(0,y.Z)({},xn(h,Q,Te));I.length>1&&(Ne.motionAppear=!1);var Ee=Ne.onVisibleChanged;return Ne.onVisibleChanged=function(Se){return!Le.current&&!Se&&Ve(!0),Ee==null?void 0:Ee(Se)},Ye?null:n.createElement(w,{mode:h,locked:!Le.current},n.createElement(Ln.default,(0,d.Z)({visible:Qe},Ne,{forceRender:q,removeOnLeave:!1,leavedClassName:"".concat(N,"-hidden")}),function(Se){var He=Se.className,je=Se.style;return n.createElement(Xt,{id:s,className:He,style:je},m)}))}var En=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],an=["active"],bt=function(s){var b,I=s.style,m=s.className,h=s.title,g=s.eventKey,N=s.warnKey,q=s.disabled,Q=s.internalPopupClose,Te=s.children,ye=s.itemIcon,Le=s.expandIcon,ze=s.popupClassName,we=s.popupOffset,Ye=s.popupStyle,Ve=s.onClick,Qe=s.onMouseEnter,Ne=s.onMouseLeave,Ee=s.onTitleClick,Se=s.onTitleMouseEnter,He=s.onTitleMouseLeave,je=(0,Y.Z)(s,En),nt=he(g),Ke=n.useContext(W),xt=Ke.prefixCls,Fe=Ke.mode,mt=Ke.openKeys,rt=Ke.disabled,it=Ke.overflowDisabled,Ct=Ke.activeKey,yt=Ke.selectedKeys,Tt=Ke.itemIcon,ct=Ke.expandIcon,Ot=Ke.onItemClick,Et=Ke.onOpenChange,Pt=Ke.onActive,Yt=n.useContext(ae),Qt=Yt._internalRenderSubMenuItem,Ht=n.useContext(A),Jt=Ht.isSubPathKey,_t=B(),ut="".concat(xt,"-submenu"),$t=rt||q,cn=n.useRef(),qt=n.useRef(),en=ye!=null?ye:Tt,lt=Le!=null?Le:ct,Rt=mt.includes(g),Wt=!it&&Rt,Rn=Jt(yt,g),un=ke(g,$t,Se,He),tn=un.active,kn=(0,Y.Z)(un,an),qn=n.useState(!1),Fn=(0,v.Z)(qn,2),hn=Fn[0],Mn=Fn[1],wn=function(It){$t||Mn(It)},Mt=function(It){wn(!0),Qe==null||Qe({key:g,domEvent:It})},Xn=function(It){wn(!1),Ne==null||Ne({key:g,domEvent:It})},bn=n.useMemo(function(){return tn||(Fe!=="inline"?hn||Jt([Ct],g):!1)},[Fe,tn,Ct,hn,g,Jt]),Nn=qe(_t.length),Vn=function(It){$t||(Ee==null||Ee({key:g,domEvent:It}),Fe==="inline"&&Et(g,!Rt))},dn=S(function(wt){Ve==null||Ve(Oe(wt)),Ot(wt)}),Cn=function(It){Fe!=="inline"&&Et(g,It)},yn=function(){Pt(g)},$n=nt&&"".concat(nt,"-popup"),mn=n.createElement("div",(0,d.Z)({role:"menuitem",style:Nn,className:"".concat(ut,"-title"),tabIndex:$t?null:-1,ref:cn,title:typeof h=="string"?h:null,"data-menu-id":it&&nt?null:nt,"aria-expanded":Wt,"aria-haspopup":!0,"aria-controls":$n,"aria-disabled":$t,onClick:Vn,onFocus:yn},kn),h,n.createElement(Je,{icon:Fe!=="horizontal"?lt:void 0,props:(0,y.Z)((0,y.Z)({},s),{},{isOpen:Wt,isSubMenu:!0})},n.createElement("i",{className:"".concat(ut,"-arrow")}))),St=n.useRef(Fe);if(Fe!=="inline"&&_t.length>1?St.current="vertical":St.current=Fe,!it){var fn=St.current;mn=n.createElement(An,{mode:fn,prefixCls:ut,visible:!Q&&Wt&&Fe!=="inline",popupClassName:ze,popupOffset:we,popupStyle:Ye,popup:n.createElement(w,{mode:fn==="horizontal"?"vertical":fn},n.createElement(Xt,{id:$n,ref:qt},Te)),disabled:$t,onVisibleChange:Cn},mn)}var nn=n.createElement(j.Z.Item,(0,d.Z)({role:"none"},je,{component:"li",style:I,className:ee()(ut,"".concat(ut,"-").concat(Fe),m,(b={},(0,i.Z)(b,"".concat(ut,"-open"),Wt),(0,i.Z)(b,"".concat(ut,"-active"),bn),(0,i.Z)(b,"".concat(ut,"-selected"),Rn),(0,i.Z)(b,"".concat(ut,"-disabled"),$t),b)),onMouseEnter:Mt,onMouseLeave:Xn}),mn,!it&&n.createElement(on,{id:$n,open:Wt,keyPath:_t},Te));return Qt&&(nn=Qt(nn,s,{selected:Rn,active:bn,open:Wt,disabled:$t})),n.createElement(w,{onItemClick:dn,mode:Fe==="horizontal"?"vertical":Fe,itemIcon:en,expandIcon:lt},nn)};function Gt(u){var s=u.eventKey,b=u.children,I=B(s),m=jt(b,I),h=$();n.useEffect(function(){if(h)return h.registerPath(s,I),function(){h.unregisterPath(s,I)}},[I]);var g;return h?g=m:g=n.createElement(bt,u,m),n.createElement(L.Provider,{value:I},g)}var zn=t(76190),Dt=["className","title","eventKey","children"],vn=["children"],ln=function(s){var b=s.className,I=s.title,m=s.eventKey,h=s.children,g=(0,Y.Z)(s,Dt),N=n.useContext(W),q=N.prefixCls,Q="".concat(q,"-item-group");return n.createElement("li",(0,d.Z)({role:"presentation"},g,{onClick:function(ye){return ye.stopPropagation()},className:ee()(Q,b)}),n.createElement("div",{role:"presentation",className:"".concat(Q,"-title"),title:typeof I=="string"?I:void 0},I),n.createElement("ul",{role:"group",className:"".concat(Q,"-list")},h))};function gn(u){var s=u.children,b=(0,Y.Z)(u,vn),I=B(b.eventKey),m=jt(s,I),h=$();return h?m:n.createElement(ln,(0,De.Z)(b,["warnKey"]),m)}function At(u){var s=u.className,b=u.style,I=n.useContext(W),m=I.prefixCls,h=$();return h?null:n.createElement("li",{role:"separator",className:ee()("".concat(m,"-item-divider"),s),style:b})}var Kn=["label","children","key","type"];function sn(u){return(u||[]).map(function(s,b){if(s&&(0,zn.Z)(s)==="object"){var I=s,m=I.label,h=I.children,g=I.key,N=I.type,q=(0,Y.Z)(I,Kn),Q=g!=null?g:"tmp-".concat(b);return h||N==="group"?N==="group"?n.createElement(gn,(0,d.Z)({key:Q},q,{title:m}),sn(h)):n.createElement(Gt,(0,d.Z)({key:Q},q,{title:m}),sn(h)):N==="divider"?n.createElement(At,(0,d.Z)({key:Q},q)):n.createElement(pt,(0,d.Z)({key:Q},q),m)}return null}).filter(function(s){return s})}function Hn(u,s,b){var I=u;return s&&(I=sn(s)),jt(I,b)}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"],Lt=[],pn=n.forwardRef(function(u,s){var b,I,m=u,h=m.prefixCls,g=h===void 0?"rc-menu":h,N=m.rootClassName,q=m.style,Q=m.className,Te=m.tabIndex,ye=Te===void 0?0:Te,Le=m.items,ze=m.children,we=m.direction,Ye=m.id,Ve=m.mode,Qe=Ve===void 0?"vertical":Ve,Ne=m.inlineCollapsed,Ee=m.disabled,Se=m.disabledOverflow,He=m.subMenuOpenDelay,je=He===void 0?.1:He,nt=m.subMenuCloseDelay,Ke=nt===void 0?.1:nt,xt=m.forceSubMenuRender,Fe=m.defaultOpenKeys,mt=m.openKeys,rt=m.activeKey,it=m.defaultActiveFirst,Ct=m.selectable,yt=Ct===void 0?!0:Ct,Tt=m.multiple,ct=Tt===void 0?!1:Tt,Ot=m.defaultSelectedKeys,Et=m.selectedKeys,Pt=m.onSelect,Yt=m.onDeselect,Qt=m.inlineIndent,Ht=Qt===void 0?24:Qt,Jt=m.motion,_t=m.defaultMotions,ut=m.triggerSubMenuAction,$t=ut===void 0?"hover":ut,cn=m.builtinPlacements,qt=m.itemIcon,en=m.expandIcon,lt=m.overflowedIndicator,Rt=lt===void 0?"...":lt,Wt=m.overflowedIndicatorPopupClassName,Rn=m.getPopupContainer,un=m.onClick,tn=m.onOpenChange,kn=m.onKeyDown,qn=m.openAnimation,Fn=m.openTransitionName,hn=m._internalRenderMenuItem,Mn=m._internalRenderSubMenuItem,wn=(0,Y.Z)(m,Wn),Mt=n.useMemo(function(){return Hn(ze,Le,Lt)},[ze,Le]),Xn=n.useState(!1),bn=(0,v.Z)(Xn,2),Nn=bn[0],Vn=bn[1],dn=n.useRef(),Cn=ne(Ye),yn=we==="rtl",$n=(0,K.Z)(Fe,{value:mt,postState:function(Be){return Be||Lt}}),mn=(0,v.Z)($n,2),St=mn[0],fn=mn[1],nn=function(Be){var We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function ft(){fn(Be),tn==null||tn(Be)}We?(0,G.flushSync)(ft):ft()},wt=n.useState(St),It=(0,v.Z)(wt,2),vr=It[0],gr=It[1],Un=n.useRef(!1),pr=n.useMemo(function(){return(Qe==="inline"||Qe==="vertical")&&Ne?["vertical",Ne]:[Qe,!1]},[Qe,Ne]),er=(0,v.Z)(pr,2),Bn=er[0],Gn=er[1],tr=Bn==="inline",hr=n.useState(Bn),nr=(0,v.Z)(hr,2),kt=nr[0],br=nr[1],Cr=n.useState(Gn),rr=(0,v.Z)(Cr,2),yr=rr[0],$r=rr[1];n.useEffect(function(){br(Bn),$r(Gn),Un.current&&(tr?fn(vr):nn(Lt))},[Bn,Gn]);var Sr=n.useState(0),or=(0,v.Z)(Sr,2),Zn=or[0],Ir=or[1],Yn=Zn>=Mt.length-1||kt!=="horizontal"||Se;n.useEffect(function(){tr&&gr(St)},[St]),n.useEffect(function(){return Un.current=!0,function(){Un.current=!1}},[]);var rn=D(),ar=rn.registerPath,ir=rn.unregisterPath,xr=rn.refreshOverflowKeys,lr=rn.isSubPathKey,Or=rn.getKeyPath,sr=rn.getKeys,Er=rn.getSubPathKeys,Pr=n.useMemo(function(){return{registerPath:ar,unregisterPath:ir}},[ar,ir]),Rr=n.useMemo(function(){return{isSubPathKey:lr}},[lr]);n.useEffect(function(){xr(Yn?Lt:Mt.slice(Zn+1).map(function(Ue){return Ue.key}))},[Zn,Yn]);var Mr=(0,K.Z)(rt||it&&((b=Mt[0])===null||b===void 0?void 0:b.key),{value:rt}),cr=(0,v.Z)(Mr,2),Sn=cr[0],Qn=cr[1],wr=S(function(Ue){Qn(Ue)}),Nr=S(function(){Qn(void 0)});(0,n.useImperativeHandle)(s,function(){return{list:dn.current,focus:function(Be){var We,ft=sr(),vt=e(ft,Cn),Tn=vt.elements,Jn=vt.key2element,Hr=vt.element2key,mr=f(dn.current,Tn),fr=Sn!=null?Sn:mr[0]?Hr.get(mr[0]):(We=Mt.find(function(Wr){return!Wr.props.disabled}))===null||We===void 0?void 0:We.key,In=Jn.get(fr);if(fr&&In){var _n;In==null||(_n=In.focus)===null||_n===void 0||_n.call(In,Be)}}}});var Br=(0,K.Z)(Ot||[],{value:Et,postState:function(Be){return Array.isArray(Be)?Be:Be==null?Lt:[Be]}}),ur=(0,v.Z)(Br,2),Dn=ur[0],Zr=ur[1],Dr=function(Be){if(yt){var We=Be.key,ft=Dn.includes(We),vt;ct?ft?vt=Dn.filter(function(Jn){return Jn!==We}):vt=[].concat((0,X.Z)(Dn),[We]):vt=[We],Zr(vt);var Tn=(0,y.Z)((0,y.Z)({},Be),{},{selectedKeys:vt});ft?Yt==null||Yt(Tn):Pt==null||Pt(Tn)}!ct&&St.length&&kt!=="inline"&&nn(Lt)},Tr=S(function(Ue){un==null||un(Oe(Ue)),Dr(Ue)}),dr=S(function(Ue,Be){var We=St.filter(function(vt){return vt!==Ue});if(Be)We.push(Ue);else if(kt!=="inline"){var ft=Er(Ue);We=We.filter(function(vt){return!ft.has(vt)})}(0,H.Z)(St,We,!0)||nn(We,!0)}),jr=function(Be,We){var ft=We!=null?We:!St.includes(Be);dr(Be,ft)},Ar=r(kt,Sn,yn,Cn,dn,sr,Or,Qn,jr,kn);n.useEffect(function(){Vn(!0)},[]);var Lr=n.useMemo(function(){return{_internalRenderMenuItem:hn,_internalRenderSubMenuItem:Mn}},[hn,Mn]),zr=kt!=="horizontal"||Se?Mt:Mt.map(function(Ue,Be){return n.createElement(w,{key:Ue.key,overflowDisabled:Be>Zn},Ue)}),Kr=n.createElement(j.Z,(0,d.Z)({id:Ye,ref:dn,prefixCls:"".concat(g,"-overflow"),component:"ul",itemComponent:pt,className:ee()(g,"".concat(g,"-root"),"".concat(g,"-").concat(kt),Q,(I={},(0,i.Z)(I,"".concat(g,"-inline-collapsed"),yr),(0,i.Z)(I,"".concat(g,"-rtl"),yn),I),N),dir:we,style:q,role:"menu",tabIndex:ye,data:zr,renderRawItem:function(Be){return Be},renderRawRest:function(Be){var We=Be.length,ft=We?Mt.slice(-We):null;return n.createElement(Gt,{eventKey:P,title:Rt,disabled:Yn,internalPopupClose:We===0,popupClassName:Wt},ft)},maxCount:kt!=="horizontal"||Se?j.Z.INVALIDATE:j.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Be){Ir(Be)},onKeyDown:Ar},wn));return n.createElement(ae.Provider,{value:Lr},n.createElement(me.Provider,{value:Cn},n.createElement(w,{prefixCls:g,rootClassName:N,mode:kt,openKeys:St,rtl:yn,disabled:Ee,motion:Nn?Jt:null,defaultMotions:Nn?_t:null,activeKey:Sn,onActive:wr,onInactive:Nr,selectedKeys:Dn,inlineIndent:Ht,subMenuOpenDelay:je,subMenuCloseDelay:Ke,forceSubMenuRender:xt,builtinPlacements:cn,triggerSubMenuAction:$t,getPopupContainer:Rn,itemIcon:qt,expandIcon:en,onItemClick:Tr,onOpenChange:dr},n.createElement(A.Provider,{value:Rr},Kr),n.createElement("div",{style:{display:"none"},"aria-hidden":!0},n.createElement(E.Provider,{value:Pr},Mt)))))}),Pn=pn,zt=Pn;zt.Item=pt,zt.SubMenu=Gt,zt.ItemGroup=gn,zt.Divider=At;var Kt=zt},83836:function(_e,ue,t){t.d(ue,{Z:function(){return Z}});var d=t(54476),i=t(33885),y=t(42978),X=t(75931),v=t(59301),Y=t(92310),V=t.n(Y),ee=t(29301),j=t(34280),K=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],H=void 0;function T(l,x){var U=l.prefixCls,z=l.invalidate,k=l.item,_=l.renderItem,ve=l.responsive,de=l.responsiveDisabled,fe=l.registerSize,Ce=l.itemKey,Ie=l.className,$e=l.style,ge=l.children,Ze=l.display,Re=l.order,Ae=l.component,xe=Ae===void 0?"div":Ae,f=(0,X.Z)(l,K),a=ve&&!Ze;function e(O){fe(Ce,O)}v.useEffect(function(){return function(){e(null)}},[]);var r=_&&k!==H?_(k,{index:Re}):ge,o;z||(o={opacity:a?0:1,height:a?0:H,overflowY:a?"hidden":H,order:ve?Re:H,pointerEvents:a?"none":H,position:a?"absolute":H});var p={};a&&(p["aria-hidden"]=!0);var C=v.createElement(xe,(0,d.Z)({className:V()(!z&&U,Ie),style:(0,i.Z)((0,i.Z)({},o),$e)},p,f,{ref:x}),r);return ve&&(C=v.createElement(ee.Z,{onResize:function(P){var D=P.offsetWidth;e(D)},disabled:de},C)),C}var n=v.forwardRef(T);n.displayName="Item";var G=n,me=t(6089),pe=t(4676),he=t(16089);function M(l){if(typeof MessageChannel=="undefined")(0,he.Z)(l);else{var x=new MessageChannel;x.port1.onmessage=function(){return l()},x.port2.postMessage(void 0)}}function Me(){var l=v.useRef(null),x=function(z){l.current||(l.current=[],M(function(){(0,pe.unstable_batchedUpdates)(function(){l.current.forEach(function(k){k()}),l.current=null})})),l.current.push(z)};return x}function W(l,x){var U=v.useState(x),z=(0,y.Z)(U,2),k=z[0],_=z[1],ve=(0,me.Z)(function(de){l(function(){_(de)})});return[k,ve]}var oe=v.createContext(null),w=["component"],J=["className"],E=["className"],$=function(x,U){var z=v.useContext(oe);if(!z){var k=x.component,_=k===void 0?"div":k,ve=(0,X.Z)(x,w);return v.createElement(_,(0,d.Z)({},ve,{ref:U}))}var de=z.className,fe=(0,X.Z)(z,J),Ce=x.className,Ie=(0,X.Z)(x,E);return v.createElement(oe.Provider,{value:null},v.createElement(G,(0,d.Z)({ref:U,className:V()(de,Ce)},fe,Ie)))},L=v.forwardRef($);L.displayName="RawItem";var B=L,A=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],se="responsive",ae="invalidate";function be(l){return"+ ".concat(l.length," ...")}function Pe(l,x){var U=l.prefixCls,z=U===void 0?"rc-overflow":U,k=l.data,_=k===void 0?[]:k,ve=l.renderItem,de=l.renderRawItem,fe=l.itemKey,Ce=l.itemWidth,Ie=Ce===void 0?10:Ce,$e=l.ssr,ge=l.style,Ze=l.className,Re=l.maxCount,Ae=l.renderRest,xe=l.renderRawRest,f=l.prefix,a=l.suffix,e=l.component,r=e===void 0?"div":e,o=l.itemComponent,p=l.onVisibleChange,C=(0,X.Z)(l,A),O=$e==="full",P=Me(),D=W(P,null),S=(0,y.Z)(D,2),F=S[0],ie=S[1],ne=F||0,ce=W(P,new Map),le=(0,y.Z)(ce,2),te=le[0],re=le[1],De=W(P,0),Xe=(0,y.Z)(De,2),ke=Xe[0],qe=Xe[1],Je=W(P,0),et=(0,y.Z)(Je,2),Oe=et[0],tt=et[1],ot=W(P,0),at=(0,y.Z)(ot,2),gt=at[0],Nt=at[1],Bt=W(P,0),pt=(0,y.Z)(Bt,2),ht=pt[0],Ft=pt[1],dt=(0,v.useState)(null),Xt=(0,y.Z)(dt,2),Vt=Xt[0],jt=Xt[1],Zt=(0,v.useState)(null),Ge=(0,y.Z)(Zt,2),st=Ge[0],jn=Ge[1],Ut=v.useMemo(function(){return st===null&&O?Number.MAX_SAFE_INTEGER:st||0},[st,F]),xn=(0,v.useState)(!1),On=(0,y.Z)(xn,2),An=On[0],Ln=On[1],on="".concat(z,"-item"),En=Math.max(ke,Oe),an=Re===se,bt=_.length&&an,Gt=Re===ae,zn=bt||typeof Re=="number"&&_.length>Re,Dt=(0,v.useMemo)(function(){var h=_;return bt?F===null&&O?h=_:h=_.slice(0,Math.min(_.length,ne/Ie)):typeof Re=="number"&&(h=_.slice(0,Re)),h},[_,Ie,F,Re,bt]),vn=(0,v.useMemo)(function(){return bt?_.slice(Ut+1):_.slice(Dt.length)},[_,Dt,bt,Ut]),ln=(0,v.useCallback)(function(h,g){var N;return typeof fe=="function"?fe(h):(N=fe&&(h==null?void 0:h[fe]))!==null&&N!==void 0?N:g},[fe]),gn=(0,v.useCallback)(ve||function(h){return h},[ve]);function At(h,g,N){st===h&&(g===void 0||g===Vt)||(jn(h),N||(Ln(h<_.length-1),p==null||p(h)),g!==void 0&&jt(g))}function Kn(h,g){ie(g.clientWidth)}function sn(h,g){re(function(N){var q=new Map(N);return g===null?q.delete(h):q.set(h,g),q})}function Hn(h,g){tt(g),qe(Oe)}function Wn(h,g){Nt(g)}function Lt(h,g){Ft(g)}function pn(h){return te.get(ln(Dt[h],h))}(0,j.Z)(function(){if(ne&&typeof En=="number"&&Dt){var h=gt+ht,g=Dt.length,N=g-1;if(!g){At(0,null);return}for(var q=0;q<g;q+=1){var Q=pn(q);if(O&&(Q=Q||0),Q===void 0){At(q-1,void 0,!0);break}if(h+=Q,N===0&&h<=ne||q===N-1&&h+pn(N)<=ne){At(N,null);break}else if(h+En>ne){At(q-1,h-Q-ht+Oe);break}}a&&pn(0)+ht>ne&&jt(null)}},[ne,te,Oe,gt,ht,ln,Dt]);var Pn=An&&!!vn.length,zt={};Vt!==null&&bt&&(zt={position:"absolute",left:Vt,top:0});var Kt={prefixCls:on,responsive:bt,component:o,invalidate:Gt},u=de?function(h,g){var N=ln(h,g);return v.createElement(oe.Provider,{key:N,value:(0,i.Z)((0,i.Z)({},Kt),{},{order:g,item:h,itemKey:N,registerSize:sn,display:g<=Ut})},de(h,g))}:function(h,g){var N=ln(h,g);return v.createElement(G,(0,d.Z)({},Kt,{order:g,key:N,item:h,renderItem:gn,itemKey:N,registerSize:sn,display:g<=Ut}))},s={order:Pn?Ut:Number.MAX_SAFE_INTEGER,className:"".concat(on,"-rest"),registerSize:Hn,display:Pn},b=Ae||be,I=xe?v.createElement(oe.Provider,{value:(0,i.Z)((0,i.Z)({},Kt),s)},xe(vn)):v.createElement(G,(0,d.Z)({},Kt,s),typeof b=="function"?b(vn):b),m=v.createElement(r,(0,d.Z)({className:V()(!Gt&&z,Ze),style:ge,ref:x},C),f&&v.createElement(G,(0,d.Z)({},Kt,{responsive:an,responsiveDisabled:!bt,order:-1,className:"".concat(on,"-prefix"),registerSize:Wn,display:!0}),f),Dt.map(u),zn?I:null,a&&v.createElement(G,(0,d.Z)({},Kt,{responsive:an,responsiveDisabled:!bt,order:Ut,className:"".concat(on,"-suffix"),registerSize:Lt,display:!0,style:zt}),a));return an?v.createElement(ee.Z,{onResize:Kn,disabled:!bt},m):m}var c=v.forwardRef(Pe);c.displayName="Overflow",c.Item=B,c.RESPONSIVE=se,c.INVALIDATE=ae;var R=c,Z=R}}]);