0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.133.136.95


Current Path : /proc/thread-self/root/var/www/college/static/js/
Upload File :
Current File : //proc/thread-self/root/var/www/college/static/js/137.51edddfa.chunk.js

"use strict";(self.webpackChunkcollege_portal_app=self.webpackChunkcollege_portal_app||[]).push([[137],{78528:(e,t,n)=>{n.d(t,{A:()=>l});var o=n(58168),a=n(65043);const r={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};var c=n(22172),i=function(e,t){return a.createElement(c.A,(0,o.A)({},e,{ref:t,icon:r}))};const l=a.forwardRef(i)},84235:(e,t,n)=>{n.d(t,{A:()=>l});var o=n(58168),a=n(65043);const r={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"};var c=n(22172),i=function(e,t){return a.createElement(c.A,(0,o.A)({},e,{ref:t,icon:r}))};const l=a.forwardRef(i)},62058:(e,t,n)=>{n.d(t,{A:()=>l});var o=n(58168),a=n(65043);const r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};var c=n(22172),i=function(e,t){return a.createElement(c.A,(0,o.A)({},e,{ref:t,icon:r}))};const l=a.forwardRef(i)},77689:(e,t,n)=>{n.d(t,{L:()=>r,v:()=>c});var o=n(98139),a=n.n(o);function r(e,t,n){return a()({["".concat(e,"-status-success")]:"success"===t,["".concat(e,"-status-warning")]:"warning"===t,["".concat(e,"-status-error")]:"error"===t,["".concat(e,"-status-validating")]:"validating"===t,["".concat(e,"-has-feedback")]:n})}const c=(e,t)=>t||e},12366:(e,t,n)=>{n.d(t,{A:()=>E});var o=n(65043),a=n(98139),r=n.n(a),c=n(76590),i=n(13758),l=n(35296),s=n(12701),d=n(66712);const u=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:"var(--wave-color, ".concat(n,")"),boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:["box-shadow 0.4s ".concat(e.motionEaseOutCirc),"opacity 2s ".concat(e.motionEaseOutCirc)].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:["box-shadow ".concat(e.motionDurationSlow," ").concat(e.motionEaseInOut),"opacity ".concat(e.motionDurationSlow," ").concat(e.motionEaseInOut)].join(",")}}}}},f=(0,d.Ay)("Wave",(e=>[u(e)]));var p=n(87483),v=n(45818),m=n(691),b=n(37489),g=n(7419),h=n(58895);function y(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&function(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(t&&t[1]&&t[2]&&t[3])||!(t[1]===t[2]&&t[2]===t[3])}(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function A(e){return Number.isNaN(e)?0:e}const C=e=>{const{className:t,target:n,component:a}=e,c=o.useRef(null),[l,s]=o.useState(null),[d,u]=o.useState([]),[f,p]=o.useState(0),[m,C]=o.useState(0),[S,x]=o.useState(0),[E,w]=o.useState(0),[k,O]=o.useState(!1),R={left:f,top:m,width:S,height:E,borderRadius:d.map((e=>"".concat(e,"px"))).join(" ")};function z(){const e=getComputedStyle(n);s(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:o}=getComputedStyle(e);return y(t)?t:y(n)?n:y(o)?o:null}(n));const t="static"===e.position,{borderLeftWidth:o,borderTopWidth:a}=e;p(t?n.offsetLeft:A(-parseFloat(o))),C(t?n.offsetTop:A(-parseFloat(a))),x(n.offsetWidth),w(n.offsetHeight);const{borderTopLeftRadius:r,borderTopRightRadius:c,borderBottomLeftRadius:i,borderBottomRightRadius:l}=e;u([r,c,l,i].map((e=>A(parseFloat(e)))))}if(l&&(R["--wave-color"]=l),o.useEffect((()=>{if(n){const e=(0,v.A)((()=>{z(),O(!0)}));let t;return"undefined"!==typeof ResizeObserver&&(t=new ResizeObserver(z),t.observe(n)),()=>{v.A.cancel(e),null===t||void 0===t||t.disconnect()}}}),[]),!k)return null;const I=("Checkbox"===a||"Radio"===a)&&(null===n||void 0===n?void 0:n.classList.contains(b.D));return o.createElement(g.Ay,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=c.current)||void 0===n?void 0:n.parentElement;(0,h.v)(e).then((()=>{null===e||void 0===e||e.remove()}))}return!1}},((e,n)=>{let{className:a}=e;return o.createElement("div",{ref:(0,i.K4)(c,n),className:r()(t,{"wave-quick":I},a),style:R})}))},S=(e,t)=>{var n;const{component:a}=t;if("Checkbox"===a&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;const r=document.createElement("div");r.style.position="absolute",r.style.left="0px",r.style.top="0px",null===e||void 0===e||e.insertBefore(r,null===e||void 0===e?void 0:e.firstChild),(0,h.X)(o.createElement(C,Object.assign({},t,{target:e})),r)},x=(e,t,n)=>{const{wave:a}=o.useContext(l.QO),[,r,c]=(0,m.Ay)(),i=(0,p._q)((o=>{const i=e.current;if((null===a||void 0===a?void 0:a.disabled)||!i)return;const l=i.querySelector(".".concat(b.D))||i,{showEffect:s}=a||{};(s||S)(l,{className:t,token:r,component:n,event:o,hashId:c})})),s=o.useRef();return e=>{v.A.cancel(s.current),s.current=(0,v.A)((()=>{i(e)}))}};const E=e=>{const{children:t,disabled:n,component:a}=e,{getPrefixCls:d}=(0,o.useContext)(l.QO),u=(0,o.useRef)(null),p=d("wave"),[,v]=f(p),m=x(u,r()(p,v),a);if(o.useEffect((()=>{const e=u.current;if(!e||1!==e.nodeType||n)return;const t=t=>{!(0,c.A)(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||m(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[n]),!o.isValidElement(t))return null!==t&&void 0!==t?t:null;const b=(0,i.f3)(t)?(0,i.K4)(t.ref,u):u;return(0,s.Ob)(t,{ref:b})}},37489:(e,t,n)=>{n.d(t,{D:()=>o});const o="ant-wave-target"},64160:(e,t,n)=>{n.d(t,{Ap:()=>c,DU:()=>i,Ve:()=>s,uR:()=>d});var o=n(65043),a=n(12701);const r=/^[\u4e00-\u9fa5]{2}$/,c=r.test.bind(r);function i(e){return"danger"===e?{danger:!0}:{type:e}}function l(e){return"string"===typeof e}function s(e){return"text"===e||"link"===e}function d(e,t){let n=!1;const r=[];return o.Children.forEach(e,(e=>{const t=typeof e,o="string"===t||"number"===t;if(n&&o){const t=r.length-1,n=r[t];r[t]="".concat(n).concat(e)}else r.push(e);n=o})),o.Children.map(r,(e=>function(e,t){if(null===e||void 0===e)return;const n=t?" ":"";return"string"!==typeof e&&"number"!==typeof e&&l(e.type)&&c(e.props.children)?(0,a.Ob)(e,{children:e.props.children.split("").join(n)}):l(e)?c(e)?o.createElement("span",null,e.split("").join(n)):o.createElement("span",null,e):(0,a.zv)(e)?o.createElement("span",null,e):e}(e,t)))}},87021:(e,t,n)=>{n.d(t,{Ay:()=>se});var o=n(65043),a=n(98139),r=n.n(a),c=n(18574),i=n(13758),l=n(12366),s=n(35296),d=n(78440),u=n(89122),f=n(45132),p=n(691),v=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]])}return n};const m=o.createContext(void 0),b=e=>{const{getPrefixCls:t,direction:n}=o.useContext(s.QO),{prefixCls:a,size:c,className:i}=e,l=v(e,["prefixCls","size","className"]),d=t("btn-group",a),[,,u]=(0,p.Ay)();let f="";switch(c){case"large":f="lg";break;case"small":f="sm"}const b=r()(d,{["".concat(d,"-").concat(f)]:f,["".concat(d,"-rtl")]:"rtl"===n},i,u);return o.createElement(m.Provider,{value:c},o.createElement("div",Object.assign({},l,{className:b})))};var g=n(64160);const h=(0,o.forwardRef)(((e,t)=>{const{className:n,style:a,children:c,prefixCls:i}=e,l=r()("".concat(i,"-icon"),n);return o.createElement("span",{ref:t,className:l,style:a},c)})),y=h;var A=n(40164),C=n(7419);const S=(0,o.forwardRef)(((e,t)=>{const{prefixCls:n,className:a,style:c,iconClassName:i}=e,l=r()("".concat(n,"-loading-icon"),a);return o.createElement(y,{prefixCls:n,className:l,style:c,ref:t},o.createElement(A.A,{className:i}))})),x=()=>({width:0,opacity:0,transform:"scale(0)"}),E=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),w=e=>{const{prefixCls:t,loading:n,existIcon:a,className:r,style:c}=e,i=!!n;return a?o.createElement(S,{prefixCls:t,className:r,style:c}):o.createElement(C.Ay,{visible:i,motionName:"".concat(t,"-loading-icon-motion"),motionLeave:i,removeOnLeave:!0,onAppearStart:x,onAppearActive:E,onEnterStart:x,onEnterActive:E,onLeaveStart:E,onLeaveActive:x},((e,n)=>{let{className:a,style:i}=e;return o.createElement(S,{prefixCls:t,className:r,style:Object.assign(Object.assign({},c),i),ref:n,iconClassName:a})}))};var k=n(36647),O=n(94414),R=n(78365),z=n(66712);const I=(e,t)=>({["> span, > ".concat(e)]:{"&:not(:last-child)":{["&, & > ".concat(e)]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{["&, & > ".concat(e)]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),P=e=>{const{componentCls:t,fontSize:n,lineWidth:o,groupBorderColor:a,colorErrorHover:r}=e;return{["".concat(t,"-group")]:[{position:"relative",display:"inline-flex",["> span, > ".concat(t)]:{"&:not(:last-child)":{["&, & > ".concat(t)]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(o).mul(-1).equal(),["&, & > ".concat(t)]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n          &:focus,\n          &:active":{zIndex:2},"&[disabled]":{zIndex:0}},["".concat(t,"-icon-only")]:{fontSize:n}},I("".concat(t,"-primary"),a),I("".concat(t,"-danger"),r)]}};var N=n(41140);const M=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:o}=e;return(0,R.h1)(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:o,buttonIconOnlyFontSize:n})},j=e=>{var t,n,o,a,r,c;const i=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,l=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,s=null!==(o=e.contentFontSizeLG)&&void 0!==o?o:e.fontSizeLG,d=null!==(a=e.contentLineHeight)&&void 0!==a?a:(0,N.k)(i),u=null!==(r=e.contentLineHeightSM)&&void 0!==r?r:(0,N.k)(l),f=null!==(c=e.contentLineHeightLG)&&void 0!==c?c:(0,N.k)(s);return{fontWeight:400,defaultShadow:"0 ".concat(e.controlOutlineWidth,"px 0 ").concat(e.controlTmpOutline),primaryShadow:"0 ".concat(e.controlOutlineWidth,"px 0 ").concat(e.controlOutline),dangerShadow:"0 ".concat(e.controlOutlineWidth,"px 0 ").concat(e.colorErrorOutline),primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,contentFontSize:i,contentFontSizeSM:l,contentFontSizeLG:s,contentLineHeight:d,contentLineHeightSM:u,contentLineHeightLG:f,paddingBlock:Math.max((e.controlHeight-i*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*u)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-s*f)/2-e.lineWidth,0)}},L=e=>{const{componentCls:t,iconCls:n,fontWeight:o}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:o,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:"".concat((0,k.zA)(e.lineWidth)," ").concat(e.lineType," transparent"),cursor:"pointer",transition:"all ".concat(e.motionDurationMid," ").concat(e.motionEaseInOut),userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},["".concat(t,"-icon")]:{lineHeight:1},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},(0,O.K8)(e)),["&".concat(t,"-two-chinese-chars::first-letter")]:{letterSpacing:"0.34em"},["&".concat(t,"-two-chinese-chars > *:not(").concat(n,")")]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},_=(e,t,n)=>({["&:not(:disabled):not(".concat(e,"-disabled)")]:{"&:hover":t,"&:active":n}}),T=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),B=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),H=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),D=(e,t,n,o,a,r,c,i)=>({["&".concat(e,"-background-ghost")]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:o||void 0,boxShadow:"none"},_(e,Object.assign({background:t},c),Object.assign({background:t},i))),{"&:disabled":{cursor:"not-allowed",color:a||void 0,borderColor:r||void 0}})}),K=e=>({["&:disabled, &".concat(e.componentCls,"-disabled")]:Object.assign({},H(e))}),W=e=>Object.assign({},K(e)),G=e=>({["&:disabled, &".concat(e.componentCls,"-disabled")]:{cursor:"not-allowed",color:e.colorTextDisabled}}),F=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},W(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),_(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),D(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{["&".concat(e.componentCls,"-dangerous")]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},_(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),D(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),K(e))}),X=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},W(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),_(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),D(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{["&".concat(e.componentCls,"-dangerous")]:Object.assign(Object.assign(Object.assign({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},_(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),D(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),K(e))}),V=e=>Object.assign(Object.assign({},F(e)),{borderStyle:"dashed"}),q=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},_(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),G(e)),{["&".concat(e.componentCls,"-dangerous")]:Object.assign(Object.assign({color:e.colorError},_(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),G(e))}),Y=e=>Object.assign(Object.assign(Object.assign({},_(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),G(e)),{["&".concat(e.componentCls,"-dangerous")]:Object.assign(Object.assign({color:e.colorError},G(e)),_(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}))}),Q=e=>{const{componentCls:t}=e;return{["".concat(t,"-default")]:F(e),["".concat(t,"-primary")]:X(e),["".concat(t,"-dashed")]:V(e),["".concat(t,"-link")]:q(e),["".concat(t,"-text")]:Y(e),["".concat(t,"-ghost")]:D(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},U=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,controlHeight:o,fontSize:a,lineHeight:r,borderRadius:c,buttonPaddingHorizontal:i,iconCls:l,buttonPaddingVertical:s}=e,d="".concat(n,"-icon-only");return[{["".concat(t)]:{fontSize:a,lineHeight:r,height:o,padding:"".concat((0,k.zA)(s)," ").concat((0,k.zA)(i)),borderRadius:c,["&".concat(d)]:{width:o,paddingInline:0,["&".concat(n,"-compact-item")]:{flex:"none"},["&".concat(n,"-round")]:{width:"auto"},[l]:{fontSize:e.buttonIconOnlyFontSize}},["&".concat(n,"-loading")]:{opacity:e.opacityLoading,cursor:"default"},["".concat(n,"-loading-icon")]:{transition:"width ".concat(e.motionDurationSlow," ").concat(e.motionEaseInOut,", opacity ").concat(e.motionDurationSlow," ").concat(e.motionEaseInOut)}}},{["".concat(n).concat(n,"-circle").concat(t)]:T(e)},{["".concat(n).concat(n,"-round").concat(t)]:B(e)}]},J=e=>{const t=(0,R.h1)(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return U(t,e.componentCls)},$=e=>{const t=(0,R.h1)(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return U(t,"".concat(e.componentCls,"-sm"))},Z=e=>{const t=(0,R.h1)(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return U(t,"".concat(e.componentCls,"-lg"))},ee=e=>{const{componentCls:t}=e;return{[t]:{["&".concat(t,"-block")]:{width:"100%"}}}},te=(0,z.OF)("Button",(e=>{const t=M(e);return[L(t),J(t),$(t),Z(t),ee(t),Q(t),P(t)]}),j,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});var ne=n(92919);function oe(e,t){return{["&-item:not(".concat(t,"-last-item)")]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function ae(e){const t="".concat(e.componentCls,"-compact-vertical");return{[t]:Object.assign(Object.assign({},oe(e,t)),(n=e.componentCls,o=t,{["&-item:not(".concat(o,"-first-item):not(").concat(o,"-last-item)")]:{borderRadius:0},["&-item".concat(o,"-first-item:not(").concat(o,"-last-item)")]:{["&, &".concat(n,"-sm, &").concat(n,"-lg")]:{borderEndEndRadius:0,borderEndStartRadius:0}},["&-item".concat(o,"-last-item:not(").concat(o,"-first-item)")]:{["&, &".concat(n,"-sm, &").concat(n,"-lg")]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,o}const re=e=>{const{componentCls:t,calc:n}=e;return{[t]:{["&-compact-item".concat(t,"-primary")]:{["&:not([disabled]) + ".concat(t,"-compact-item").concat(t,"-primary:not([disabled])")]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:"calc(100% + ".concat((0,k.zA)(e.lineWidth)," * 2)"),backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{["&".concat(t,"-primary")]:{["&:not([disabled]) + ".concat(t,"-compact-vertical-item").concat(t,"-primary:not([disabled])")]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:"calc(100% + ".concat((0,k.zA)(e.lineWidth)," * 2)"),height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},ce=(0,z.bf)(["Button","compact"],(e=>{const t=M(e);return[(0,ne.G)(t),ae(t),re(t)]}),j);var ie=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]])}return n};const le=o.forwardRef(((e,t)=>{var n,a,p;const{loading:v=!1,prefixCls:b,type:h,danger:A=!1,shape:C="default",size:S,styles:x,disabled:E,className:k,rootClassName:O,children:R,icon:z,iconPosition:I="start",ghost:P=!1,block:N=!1,htmlType:M="button",classNames:j,style:L={},autoInsertSpace:_}=e,T=ie(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),B=h||"default",{getPrefixCls:H,direction:D,button:K}=(0,o.useContext)(s.QO),W=null===(n=null!==_&&void 0!==_?_:null===K||void 0===K?void 0:K.autoInsertSpace)||void 0===n||n,G=H("btn",b),[F,X,V]=te(G),q=(0,o.useContext)(d.A),Y=null!==E&&void 0!==E?E:q,Q=(0,o.useContext)(m),U=(0,o.useMemo)((()=>function(e){if("object"===typeof e&&e){let t=null===e||void 0===e?void 0:e.delay;return t=Number.isNaN(t)||"number"!==typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(v)),[v]),[J,$]=(0,o.useState)(U.loading),[Z,ee]=(0,o.useState)(!1),ne=(0,o.createRef)(),oe=(0,i.K4)(t,ne),ae=1===o.Children.count(R)&&!z&&!(0,g.Ve)(B);(0,o.useEffect)((()=>{let e=null;return U.delay>0?e=setTimeout((()=>{e=null,$(!0)}),U.delay):$(U.loading),function(){e&&(clearTimeout(e),e=null)}}),[U]),(0,o.useEffect)((()=>{if(!oe||!oe.current||!W)return;const e=oe.current.textContent;ae&&(0,g.Ap)(e)?Z||ee(!0):Z&&ee(!1)}),[oe]);const re=t=>{const{onClick:n}=e;J||Y?t.preventDefault():null===n||void 0===n||n(t)};const{compactSize:le,compactItemClassnames:se}=(0,f.RQ)(G,D),de={large:"lg",small:"sm",middle:void 0},ue=(0,u.A)((e=>{var t,n;return null!==(n=null!==(t=null!==S&&void 0!==S?S:le)&&void 0!==t?t:Q)&&void 0!==n?n:e})),fe=ue&&de[ue]||"",pe=J?"loading":z,ve=(0,c.A)(T,["navigate"]),me=r()(G,X,V,{["".concat(G,"-").concat(C)]:"default"!==C&&C,["".concat(G,"-").concat(B)]:B,["".concat(G,"-").concat(fe)]:fe,["".concat(G,"-icon-only")]:!R&&0!==R&&!!pe,["".concat(G,"-background-ghost")]:P&&!(0,g.Ve)(B),["".concat(G,"-loading")]:J,["".concat(G,"-two-chinese-chars")]:Z&&W&&!J,["".concat(G,"-block")]:N,["".concat(G,"-dangerous")]:A,["".concat(G,"-rtl")]:"rtl"===D,["".concat(G,"-icon-end")]:"end"===I},se,k,O,null===K||void 0===K?void 0:K.className),be=Object.assign(Object.assign({},null===K||void 0===K?void 0:K.style),L),ge=r()(null===j||void 0===j?void 0:j.icon,null===(a=null===K||void 0===K?void 0:K.classNames)||void 0===a?void 0:a.icon),he=Object.assign(Object.assign({},(null===x||void 0===x?void 0:x.icon)||{}),(null===(p=null===K||void 0===K?void 0:K.styles)||void 0===p?void 0:p.icon)||{}),ye=z&&!J?o.createElement(y,{prefixCls:G,className:ge,style:he},z):o.createElement(w,{existIcon:!!z,prefixCls:G,loading:J}),Ae=R||0===R?(0,g.uR)(R,ae&&W):null;if(void 0!==ve.href)return F(o.createElement("a",Object.assign({},ve,{className:r()(me,{["".concat(G,"-disabled")]:Y}),href:Y?void 0:ve.href,style:be,onClick:re,ref:oe,tabIndex:Y?-1:0}),ye,Ae));let Ce=o.createElement("button",Object.assign({},T,{type:M,className:me,style:be,onClick:re,disabled:Y,ref:oe}),ye,Ae,!!se&&o.createElement(ce,{key:"compact",prefixCls:G}));return(0,g.Ve)(B)||(Ce=o.createElement(l.A,{component:"Button",disabled:J},Ce)),F(Ce)}));le.Group=b,le.__ANT_BUTTON=!0;const se=le},5397:(e,t,n)=>{n.d(t,{A:()=>Qe});var o=n(65043),a=n(98139),r=n.n(a),c=n(18574),i=n(35296),l=n(89122),s=n(38510),d=n(53727),u=n(84235),f=n(58168);const p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};var v=n(22172),m=function(e,t){return o.createElement(v.A,(0,f.A)({},e,{ref:t,icon:p}))};const b=o.forwardRef(m);var g=n(64467),h=n(89379),y=n(5544),A=n(82284),C=n(53986),S=n(28678),x=n(16765);const E=(0,o.createContext)(null);var w=n(60436),k=n(89635),O=n(32375),R=n(13758),z=n(45818);const I=function(e){var t=e.activeTabOffset,n=e.horizontal,a=e.rtl,r=e.indicator,c=void 0===r?{}:r,i=c.size,l=c.align,s=void 0===l?"center":l,d=(0,o.useState)(),u=(0,y.A)(d,2),f=u[0],p=u[1],v=(0,o.useRef)(),m=o.useCallback((function(e){return"function"===typeof i?i(e):"number"===typeof i?i:e}),[i]);function b(){z.A.cancel(v.current)}return(0,o.useEffect)((function(){var e={};if(t)if(n){e.width=m(t.width);var o=a?"right":"left";"start"===s&&(e[o]=t[o]),"center"===s&&(e[o]=t[o]+t.width/2,e.transform=a?"translateX(50%)":"translateX(-50%)"),"end"===s&&(e[o]=t[o]+t.width,e.transform="translateX(-100%)")}else e.height=m(t.height),"start"===s&&(e.top=t.top),"center"===s&&(e.top=t.top+t.height/2,e.transform="translateY(-50%)"),"end"===s&&(e.top=t.top+t.height,e.transform="translateY(-100%)");return b(),v.current=(0,z.A)((function(){p(e)})),b}),[t,n,a,s,m]),{style:f}};var P={width:0,height:0,left:0,top:0};function N(e,t){var n=o.useRef(e),a=o.useState({}),r=(0,y.A)(a,2)[1];return[n.current,function(e){var o="function"===typeof e?e(n.current):e;o!==n.current&&t(o,n.current),n.current=o,r({})}]}var M=Math.pow(.995,20);var j=n(52664);function L(e){var t=(0,o.useState)(0),n=(0,y.A)(t,2),a=n[0],r=n[1],c=(0,o.useRef)(0),i=(0,o.useRef)();return i.current=e,(0,j.o)((function(){var e;null===(e=i.current)||void 0===e||e.call(i)}),[a]),function(){c.current===a&&(c.current+=1,r(c.current))}}var _={width:0,height:0,left:0,top:0,right:0};function T(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function B(e){return String(e).replace(/"/g,"TABS_DQ")}function H(e,t,n,o){return!(!n||o||!1===e||void 0===e&&(!1===t||null===t))}var D=o.forwardRef((function(e,t){var n=e.prefixCls,a=e.editable,r=e.locale,c=e.style;return a&&!1!==a.showAdd?o.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:c,"aria-label":(null===r||void 0===r?void 0:r.addAriaLabel)||"Add tab",onClick:function(e){a.onEdit("add",{event:e})}},a.addIcon||"+"):null}));const K=D;const W=o.forwardRef((function(e,t){var n,a=e.position,r=e.prefixCls,c=e.extra;if(!c)return null;var i={};return"object"!==(0,A.A)(c)||o.isValidElement(c)?i.right=c:i=c,"right"===a&&(n=i.right),"left"===a&&(n=i.left),n?o.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},n):null}));var G=n(75822),F=n(80244),X=n(25001),V=o.forwardRef((function(e,t){var n=e.prefixCls,a=e.id,c=e.tabs,i=e.locale,l=e.mobile,s=e.more,d=void 0===s?{}:s,u=e.style,p=e.className,v=e.editable,m=e.tabBarGutter,b=e.rtl,h=e.removeAriaLabel,A=e.onTabClick,C=e.getPopupContainer,S=e.popupClassName,x=(0,o.useState)(!1),E=(0,y.A)(x,2),w=E[0],k=E[1],O=(0,o.useState)(null),R=(0,y.A)(O,2),z=R[0],I=R[1],P=d.icon,N=void 0===P?"More":P,M="".concat(a,"-more-popup"),j="".concat(n,"-dropdown"),L=null!==z?"".concat(M,"-").concat(z):null,_=null===i||void 0===i?void 0:i.dropdownAriaLabel;var T=o.createElement(F.Ay,{onClick:function(e){var t=e.key,n=e.domEvent;A(t,n),k(!1)},prefixCls:"".concat(j,"-menu"),id:M,tabIndex:-1,role:"listbox","aria-activedescendant":L,selectedKeys:[z],"aria-label":void 0!==_?_:"expanded dropdown"},c.map((function(e){var t=e.closable,n=e.disabled,r=e.closeIcon,c=e.key,i=e.label,l=H(t,r,v,n);return o.createElement(F.Dr,{key:c,id:"".concat(M,"-").concat(c),role:"option","aria-controls":a&&"".concat(a,"-panel-").concat(c),disabled:n},o.createElement("span",null,i),l&&o.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(j,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),v.onEdit("remove",{key:t,event:e})}(e,c)}},r||v.removeIcon||"\xd7"))})));function B(e){for(var t=c.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===z}))||0,o=t.length,a=0;a<o;a+=1){var r=t[n=(n+e+o)%o];if(!r.disabled)return void I(r.key)}}(0,o.useEffect)((function(){var e=document.getElementById(L);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),[z]),(0,o.useEffect)((function(){w||I(null)}),[w]);var D=(0,g.A)({},b?"marginRight":"marginLeft",m);c.length||(D.visibility="hidden",D.order=1);var W=r()((0,g.A)({},"".concat(j,"-rtl"),b)),V=l?null:o.createElement(G.A,(0,f.A)({prefixCls:j,overlay:T,visible:!!c.length&&w,onVisibleChange:k,overlayClassName:r()(W,S),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:C},d),o.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:D,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":M,id:"".concat(a,"-more"),"aria-expanded":w,onKeyDown:function(e){var t=e.which;if(w)switch(t){case X.A.UP:B(-1),e.preventDefault();break;case X.A.DOWN:B(1),e.preventDefault();break;case X.A.ESC:k(!1);break;case X.A.SPACE:case X.A.ENTER:null!==z&&A(z,e)}else[X.A.DOWN,X.A.SPACE,X.A.ENTER].includes(t)&&(k(!0),e.preventDefault())}},N));return o.createElement("div",{className:r()("".concat(n,"-nav-operations"),p),style:u,ref:t},V,o.createElement(K,{prefixCls:n,locale:i,editable:v}))}));const q=o.memo(V,(function(e,t){return t.tabMoving}));const Y=function(e){var t=e.prefixCls,n=e.id,a=e.active,c=e.tab,i=c.key,l=c.label,s=c.disabled,d=c.closeIcon,u=c.icon,f=e.closable,p=e.renderWrapper,v=e.removeAriaLabel,m=e.editable,b=e.onClick,h=e.onFocus,y=e.style,A="".concat(t,"-tab"),C=H(f,d,m,s);function S(e){s||b(e)}var x=o.useMemo((function(){return u&&"string"===typeof l?o.createElement("span",null,l):l}),[l,u]),E=o.createElement("div",{key:i,"data-node-key":B(i),className:r()(A,(0,g.A)((0,g.A)((0,g.A)({},"".concat(A,"-with-remove"),C),"".concat(A,"-active"),a),"".concat(A,"-disabled"),s)),style:y,onClick:S},o.createElement("div",{role:"tab","aria-selected":a,id:n&&"".concat(n,"-tab-").concat(i),className:"".concat(A,"-btn"),"aria-controls":n&&"".concat(n,"-panel-").concat(i),"aria-disabled":s,tabIndex:s?null:0,onClick:function(e){e.stopPropagation(),S(e)},onKeyDown:function(e){[X.A.SPACE,X.A.ENTER].includes(e.which)&&(e.preventDefault(),S(e))},onFocus:h},u&&o.createElement("span",{className:"".concat(A,"-icon")},u),l&&x),C&&o.createElement("button",{type:"button","aria-label":v||"remove",tabIndex:0,className:"".concat(A,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),m.onEdit("remove",{key:i,event:t})}},d||m.removeIcon||"\xd7"));return p?p(E):E};var Q=function(e){var t=e.current||{},n=t.offsetWidth,o=void 0===n?0:n,a=t.offsetHeight,r=void 0===a?0:a;if(e.current){var c=e.current.getBoundingClientRect(),i=c.width,l=c.height;if(Math.abs(i-o)<1)return[i,l]}return[o,r]},U=function(e,t){return e[t?0:1]},J=o.forwardRef((function(e,t){var n=e.className,a=e.style,c=e.id,i=e.animated,l=e.activeKey,s=e.rtl,d=e.extra,u=e.editable,p=e.locale,v=e.tabPosition,m=e.tabBarGutter,b=e.children,A=e.onTabClick,C=e.onTabScroll,S=e.indicator,x=o.useContext(E),z=x.prefixCls,j=x.tabs,H=(0,o.useRef)(null),D=(0,o.useRef)(null),G=(0,o.useRef)(null),F=(0,o.useRef)(null),X=(0,o.useRef)(null),V=(0,o.useRef)(null),J=(0,o.useRef)(null),$="top"===v||"bottom"===v,Z=N(0,(function(e,t){$&&C&&C({direction:e>t?"left":"right"})})),ee=(0,y.A)(Z,2),te=ee[0],ne=ee[1],oe=N(0,(function(e,t){!$&&C&&C({direction:e>t?"top":"bottom"})})),ae=(0,y.A)(oe,2),re=ae[0],ce=ae[1],ie=(0,o.useState)([0,0]),le=(0,y.A)(ie,2),se=le[0],de=le[1],ue=(0,o.useState)([0,0]),fe=(0,y.A)(ue,2),pe=fe[0],ve=fe[1],me=(0,o.useState)([0,0]),be=(0,y.A)(me,2),ge=be[0],he=be[1],ye=(0,o.useState)([0,0]),Ae=(0,y.A)(ye,2),Ce=Ae[0],Se=Ae[1],xe=function(e){var t=(0,o.useRef)([]),n=(0,o.useState)({}),a=(0,y.A)(n,2)[1],r=(0,o.useRef)("function"===typeof e?e():e),c=L((function(){var e=r.current;t.current.forEach((function(t){e=t(e)})),t.current=[],r.current=e,a({})}));return[r.current,function(e){t.current.push(e),c()}]}(new Map),Ee=(0,y.A)(xe,2),we=Ee[0],ke=Ee[1],Oe=function(e,t,n){return(0,o.useMemo)((function(){for(var n,o=new Map,a=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||P,r=a.left+a.width,c=0;c<e.length;c+=1){var i,l=e[c].key,s=t.get(l);s||(s=t.get(null===(i=e[c-1])||void 0===i?void 0:i.key)||P);var d=o.get(l)||(0,h.A)({},s);d.right=r-d.left-d.width,o.set(l,d)}return o}),[e.map((function(e){return e.key})).join("_"),t,n])}(j,we,pe[0]),Re=U(se,$),ze=U(pe,$),Ie=U(ge,$),Pe=U(Ce,$),Ne=Re<ze+Ie,Me=Ne?Re-Pe:Re-Ie,je="".concat(z,"-nav-operations-hidden"),Le=0,_e=0;function Te(e){return e<Le?Le:e>_e?_e:e}$&&s?(Le=0,_e=Math.max(0,ze-Me)):(Le=Math.min(0,Me-ze),_e=0);var Be=(0,o.useRef)(null),He=(0,o.useState)(),De=(0,y.A)(He,2),Ke=De[0],We=De[1];function Ge(){We(Date.now())}function Fe(){Be.current&&clearTimeout(Be.current)}!function(e,t){var n=(0,o.useState)(),a=(0,y.A)(n,2),r=a[0],c=a[1],i=(0,o.useState)(0),l=(0,y.A)(i,2),s=l[0],d=l[1],u=(0,o.useState)(0),f=(0,y.A)(u,2),p=f[0],v=f[1],m=(0,o.useState)(),b=(0,y.A)(m,2),g=b[0],h=b[1],A=(0,o.useRef)(),C=(0,o.useRef)(),S=(0,o.useRef)(null);S.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,o=t.screenY;c({x:n,y:o}),window.clearInterval(A.current)},onTouchMove:function(e){if(r){e.preventDefault();var n=e.touches[0],o=n.screenX,a=n.screenY;c({x:o,y:a});var i=o-r.x,l=a-r.y;t(i,l);var u=Date.now();d(u),v(u-s),h({x:i,y:l})}},onTouchEnd:function(){if(r&&(c(null),h(null),g)){var e=g.x/p,n=g.y/p,o=Math.abs(e),a=Math.abs(n);if(Math.max(o,a)<.1)return;var i=e,l=n;A.current=window.setInterval((function(){Math.abs(i)<.01&&Math.abs(l)<.01?window.clearInterval(A.current):t(20*(i*=M),20*(l*=M))}),20)}},onWheel:function(e){var n=e.deltaX,o=e.deltaY,a=0,r=Math.abs(n),c=Math.abs(o);r===c?a="x"===C.current?n:o:r>c?(a=n,C.current="x"):(a=o,C.current="y"),t(-a,-a)&&e.preventDefault()}},o.useEffect((function(){function t(e){S.current.onTouchMove(e)}function n(e){S.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!0}),e.current.addEventListener("touchstart",(function(e){S.current.onTouchStart(e)}),{passive:!0}),e.current.addEventListener("wheel",(function(e){S.current.onWheel(e)}),{passive:!1}),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(F,(function(e,t){function n(e,t){e((function(e){return Te(e+t)}))}return!!Ne&&($?n(ne,e):n(ce,t),Fe(),Ge(),!0)})),(0,o.useEffect)((function(){return Fe(),Ke&&(Be.current=setTimeout((function(){We(0)}),100)),Fe}),[Ke]);var Xe=function(e,t,n,a,r,c,i){var l,s,d,u=i.tabs,f=i.tabPosition,p=i.rtl;return["top","bottom"].includes(f)?(l="width",s=p?"right":"left",d=Math.abs(n)):(l="height",s="top",d=-n),(0,o.useMemo)((function(){if(!u.length)return[0,0];for(var n=u.length,o=n,a=0;a<n;a+=1){var r=e.get(u[a].key)||_;if(r[s]+r[l]>d+t){o=a-1;break}}for(var c=0,i=n-1;i>=0;i-=1)if((e.get(u[i].key)||_)[s]<d){c=i+1;break}return c>=o?[0,0]:[c,o]}),[e,t,a,r,c,d,f,u.map((function(e){return e.key})).join("_"),p])}(Oe,Me,$?te:re,ze,Ie,Pe,(0,h.A)((0,h.A)({},e),{},{tabs:j})),Ve=(0,y.A)(Xe,2),qe=Ve[0],Ye=Ve[1],Qe=(0,O.A)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=Oe.get(e)||{width:0,height:0,left:0,right:0,top:0};if($){var n=te;s?t.right<te?n=t.right:t.right+t.width>te+Me&&(n=t.right+t.width-Me):t.left<-te?n=-t.left:t.left+t.width>-te+Me&&(n=-(t.left+t.width-Me)),ce(0),ne(Te(n))}else{var o=re;t.top<-re?o=-t.top:t.top+t.height>-re+Me&&(o=-(t.top+t.height-Me)),ne(0),ce(Te(o))}})),Ue={};"top"===v||"bottom"===v?Ue[s?"marginRight":"marginLeft"]=m:Ue.marginTop=m;var Je=j.map((function(e,t){var n=e.key;return o.createElement(Y,{id:c,prefixCls:z,key:n,tab:e,style:0===t?void 0:Ue,closable:e.closable,editable:u,active:n===l,renderWrapper:b,removeAriaLabel:null===p||void 0===p?void 0:p.removeAriaLabel,onClick:function(e){A(n,e)},onFocus:function(){Qe(n),Ge(),F.current&&(s||(F.current.scrollLeft=0),F.current.scrollTop=0)}})})),$e=function(){return ke((function(){var e,t=new Map,n=null===(e=X.current)||void 0===e?void 0:e.getBoundingClientRect();return j.forEach((function(e){var o,a=e.key,r=null===(o=X.current)||void 0===o?void 0:o.querySelector('[data-node-key="'.concat(B(a),'"]'));if(r){var c=function(e,t){var n=e.offsetWidth,o=e.offsetHeight,a=e.offsetTop,r=e.offsetLeft,c=e.getBoundingClientRect(),i=c.width,l=c.height,s=c.x,d=c.y;return Math.abs(i-n)<1?[i,l,s-t.x,d-t.y]:[n,o,r,a]}(r,n),i=(0,y.A)(c,4),l=i[0],s=i[1],d=i[2],u=i[3];t.set(a,{width:l,height:s,left:d,top:u})}})),t}))};(0,o.useEffect)((function(){$e()}),[j.map((function(e){return e.key})).join("_")]);var Ze=L((function(){var e=Q(H),t=Q(D),n=Q(G);de([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var o=Q(J);he(o);var a=Q(V);Se(a);var r=Q(X);ve([r[0]-o[0],r[1]-o[1]]),$e()})),et=j.slice(0,qe),tt=j.slice(Ye+1),nt=[].concat((0,w.A)(et),(0,w.A)(tt)),ot=Oe.get(l),at=I({activeTabOffset:ot,horizontal:$,indicator:S,rtl:s}).style;(0,o.useEffect)((function(){Qe()}),[l,Le,_e,T(ot),T(Oe),$]),(0,o.useEffect)((function(){Ze()}),[s]);var rt,ct,it,lt,st=!!nt.length,dt="".concat(z,"-nav-wrap");return $?s?(ct=te>0,rt=te!==_e):(rt=te<0,ct=te!==Le):(it=re<0,lt=re!==Le),o.createElement(k.A,{onResize:Ze},o.createElement("div",{ref:(0,R.xK)(t,H),role:"tablist",className:r()("".concat(z,"-nav"),n),style:a,onKeyDown:function(){Ge()}},o.createElement(W,{ref:D,position:"left",extra:d,prefixCls:z}),o.createElement(k.A,{onResize:Ze},o.createElement("div",{className:r()(dt,(0,g.A)((0,g.A)((0,g.A)((0,g.A)({},"".concat(dt,"-ping-left"),rt),"".concat(dt,"-ping-right"),ct),"".concat(dt,"-ping-top"),it),"".concat(dt,"-ping-bottom"),lt)),ref:F},o.createElement(k.A,{onResize:Ze},o.createElement("div",{ref:X,className:"".concat(z,"-nav-list"),style:{transform:"translate(".concat(te,"px, ").concat(re,"px)"),transition:Ke?"none":void 0}},Je,o.createElement(K,{ref:J,prefixCls:z,locale:p,editable:u,style:(0,h.A)((0,h.A)({},0===Je.length?void 0:Ue),{},{visibility:st?"hidden":null})}),o.createElement("div",{className:r()("".concat(z,"-ink-bar"),(0,g.A)({},"".concat(z,"-ink-bar-animated"),i.inkBar)),style:at}))))),o.createElement(q,(0,f.A)({},e,{removeAriaLabel:null===p||void 0===p?void 0:p.removeAriaLabel,ref:V,prefixCls:z,tabs:nt,className:!st&&je,tabMoving:!!Ke})),o.createElement(W,{ref:G,position:"right",extra:d,prefixCls:z})))}));const $=J;var Z=o.forwardRef((function(e,t){var n=e.prefixCls,a=e.className,c=e.style,i=e.id,l=e.active,s=e.tabKey,d=e.children;return o.createElement("div",{id:i&&"".concat(i,"-panel-").concat(s),role:"tabpanel",tabIndex:l?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(s),"aria-hidden":!l,style:c,className:r()(n,l&&"".concat(n,"-active"),a),ref:t},d)}));const ee=Z;var te=["renderTabBar"],ne=["label","key"];const oe=function(e){var t=e.renderTabBar,n=(0,C.A)(e,te),a=o.useContext(E).tabs;return t?t((0,h.A)((0,h.A)({},n),{},{panes:a.map((function(e){var t=e.label,n=e.key,a=(0,C.A)(e,ne);return o.createElement(ee,(0,f.A)({tab:t,key:n,tabKey:n},a))}))}),$):o.createElement($,n)};var ae=n(7419),re=["key","forceRender","style","className","destroyInactiveTabPane"];const ce=function(e){var t=e.id,n=e.activeKey,a=e.animated,c=e.tabPosition,i=e.destroyInactiveTabPane,l=o.useContext(E),s=l.prefixCls,d=l.tabs,u=a.tabPane,p="".concat(s,"-tabpane");return o.createElement("div",{className:r()("".concat(s,"-content-holder"))},o.createElement("div",{className:r()("".concat(s,"-content"),"".concat(s,"-content-").concat(c),(0,g.A)({},"".concat(s,"-content-animated"),u))},d.map((function(e){var c=e.key,l=e.forceRender,s=e.style,d=e.className,v=e.destroyInactiveTabPane,m=(0,C.A)(e,re),b=c===n;return o.createElement(ae.Ay,(0,f.A)({key:c,visible:b,forceRender:l,removeOnLeave:!(!i&&!v),leavedClassName:"".concat(p,"-hidden")},a.tabPaneMotion),(function(e,n){var a=e.style,i=e.className;return o.createElement(ee,(0,f.A)({},m,{prefixCls:p,id:t,tabKey:c,animated:u,active:b,style:(0,h.A)((0,h.A)({},s),a),className:r()(d,i),ref:n}))}))}))))};n(97907);var ie=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],le=0;const se=o.forwardRef((function(e,t){var n=e.id,a=e.prefixCls,c=void 0===a?"rc-tabs":a,i=e.className,l=e.items,s=e.direction,d=e.activeKey,u=e.defaultActiveKey,p=e.editable,v=e.animated,m=e.tabPosition,b=void 0===m?"top":m,w=e.tabBarGutter,k=e.tabBarStyle,O=e.tabBarExtraContent,R=e.locale,z=e.more,I=e.destroyInactiveTabPane,P=e.renderTabBar,N=e.onChange,M=e.onTabClick,j=e.onTabScroll,L=e.getPopupContainer,_=e.popupClassName,T=e.indicator,B=(0,C.A)(e,ie),H=o.useMemo((function(){return(l||[]).filter((function(e){return e&&"object"===(0,A.A)(e)&&"key"in e}))}),[l]),D="rtl"===s,K=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:(0,h.A)({inkBar:!0},"object"===(0,A.A)(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(v),W=(0,o.useState)(!1),G=(0,y.A)(W,2),F=G[0],X=G[1];(0,o.useEffect)((function(){X((0,x.A)())}),[]);var V=(0,S.A)((function(){var e;return null===(e=H[0])||void 0===e?void 0:e.key}),{value:d,defaultValue:u}),q=(0,y.A)(V,2),Y=q[0],Q=q[1],U=(0,o.useState)((function(){return H.findIndex((function(e){return e.key===Y}))})),J=(0,y.A)(U,2),$=J[0],Z=J[1];(0,o.useEffect)((function(){var e,t=H.findIndex((function(e){return e.key===Y}));-1===t&&(t=Math.max(0,Math.min($,H.length-1)),Q(null===(e=H[t])||void 0===e?void 0:e.key));Z(t)}),[H.map((function(e){return e.key})).join("_"),Y,$]);var ee=(0,S.A)(null,{value:n}),te=(0,y.A)(ee,2),ne=te[0],ae=te[1];(0,o.useEffect)((function(){n||(ae("rc-tabs-".concat(le)),le+=1)}),[]);var re={id:ne,activeKey:Y,animated:K,tabPosition:b,rtl:D,mobile:F},se=(0,h.A)((0,h.A)({},re),{},{editable:p,locale:R,more:z,tabBarGutter:w,onTabClick:function(e,t){null===M||void 0===M||M(e,t);var n=e!==Y;Q(e),n&&(null===N||void 0===N||N(e))},onTabScroll:j,extra:O,style:k,panes:null,getPopupContainer:L,popupClassName:_,indicator:T});return o.createElement(E.Provider,{value:{tabs:H,prefixCls:c}},o.createElement("div",(0,f.A)({ref:t,id:n,className:r()(c,"".concat(c,"-").concat(b),(0,g.A)((0,g.A)((0,g.A)({},"".concat(c,"-mobile"),F),"".concat(c,"-editable"),p),"".concat(c,"-rtl"),D),i)},B),o.createElement(oe,(0,f.A)({},se,{renderTabBar:P})),o.createElement(ce,(0,f.A)({destroyInactiveTabPane:I},re,{animated:K}))))}));var de=n(78887),ue=n(83290);const fe={motionAppear:!1,motionEnter:!0,motionLeave:!0};var pe=n(62149),ve=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]])}return n};var me=n(36647),be=n(94414),ge=n(66712),he=n(78365),ye=n(24760);const Ae=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{["".concat(t,"-switch")]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:"opacity ".concat(n)}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:"opacity ".concat(n)}}}}},[(0,ye._j)(e,"slide-up"),(0,ye._j)(e,"slide-down")]]},Ce=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:o,cardGutter:a,colorBorderSecondary:r,itemSelectedColor:c}=e;return{["".concat(t,"-card")]:{["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{["".concat(t,"-tab")]:{margin:0,padding:n,background:o,border:"".concat((0,me.zA)(e.lineWidth)," ").concat(e.lineType," ").concat(r),transition:"all ".concat(e.motionDurationSlow," ").concat(e.motionEaseInOut)},["".concat(t,"-tab-active")]:{color:c,background:e.colorBgContainer},["".concat(t,"-ink-bar")]:{visibility:"hidden"}},["&".concat(t,"-top, &").concat(t,"-bottom")]:{["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{["".concat(t,"-tab + ").concat(t,"-tab")]:{marginLeft:{_skip_check_:!0,value:(0,me.zA)(a)}}}},["&".concat(t,"-top")]:{["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{["".concat(t,"-tab")]:{borderRadius:"".concat((0,me.zA)(e.borderRadiusLG)," ").concat((0,me.zA)(e.borderRadiusLG)," 0 0")},["".concat(t,"-tab-active")]:{borderBottomColor:e.colorBgContainer}}},["&".concat(t,"-bottom")]:{["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{["".concat(t,"-tab")]:{borderRadius:"0 0 ".concat((0,me.zA)(e.borderRadiusLG)," ").concat((0,me.zA)(e.borderRadiusLG))},["".concat(t,"-tab-active")]:{borderTopColor:e.colorBgContainer}}},["&".concat(t,"-left, &").concat(t,"-right")]:{["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{["".concat(t,"-tab + ").concat(t,"-tab")]:{marginTop:(0,me.zA)(a)}}},["&".concat(t,"-left")]:{["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{["".concat(t,"-tab")]:{borderRadius:{_skip_check_:!0,value:"".concat((0,me.zA)(e.borderRadiusLG)," 0 0 ").concat((0,me.zA)(e.borderRadiusLG))}},["".concat(t,"-tab-active")]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},["&".concat(t,"-right")]:{["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{["".concat(t,"-tab")]:{borderRadius:{_skip_check_:!0,value:"0 ".concat((0,me.zA)(e.borderRadiusLG)," ").concat((0,me.zA)(e.borderRadiusLG)," 0")}},["".concat(t,"-tab-active")]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Se=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:o}=e;return{["".concat(t,"-dropdown")]:Object.assign(Object.assign({},(0,be.dF)(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},["".concat(t,"-dropdown-menu")]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:"".concat((0,me.zA)(o)," 0"),overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},be.L9),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:"".concat((0,me.zA)(e.paddingXXS)," ").concat((0,me.zA)(e.paddingSM)),color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:"all ".concat(e.motionDurationSlow),"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},xe=e=>{const{componentCls:t,margin:n,colorBorderSecondary:o,horizontalMargin:a,verticalItemPadding:r,verticalItemMargin:c,calc:i}=e;return{["".concat(t,"-top, ").concat(t,"-bottom")]:{flexDirection:"column",["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{margin:a,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:"".concat((0,me.zA)(e.lineWidth)," ").concat(e.lineType," ").concat(o),content:"''"},["".concat(t,"-ink-bar")]:{height:e.lineWidthBold,"&-animated":{transition:"width ".concat(e.motionDurationSlow,", left ").concat(e.motionDurationSlow,",\n            right ").concat(e.motionDurationSlow)}},["".concat(t,"-nav-wrap")]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},["&".concat(t,"-nav-wrap-ping-left::before")]:{opacity:1},["&".concat(t,"-nav-wrap-ping-right::after")]:{opacity:1}}}},["".concat(t,"-top")]:{["> ".concat(t,"-nav,\n        > div > ").concat(t,"-nav")]:{"&::before":{bottom:0},["".concat(t,"-ink-bar")]:{bottom:0}}},["".concat(t,"-bottom")]:{["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},["".concat(t,"-ink-bar")]:{top:0}},["> ".concat(t,"-content-holder, > div > ").concat(t,"-content-holder")]:{order:0}},["".concat(t,"-left, ").concat(t,"-right")]:{["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{flexDirection:"column",minWidth:i(e.controlHeight).mul(1.25).equal(),["".concat(t,"-tab")]:{padding:r,textAlign:"center"},["".concat(t,"-tab + ").concat(t,"-tab")]:{margin:c},["".concat(t,"-nav-wrap")]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},["&".concat(t,"-nav-wrap-ping-top::before")]:{opacity:1},["&".concat(t,"-nav-wrap-ping-bottom::after")]:{opacity:1}},["".concat(t,"-ink-bar")]:{width:e.lineWidthBold,"&-animated":{transition:"height ".concat(e.motionDurationSlow,", top ").concat(e.motionDurationSlow)}},["".concat(t,"-nav-list, ").concat(t,"-nav-operations")]:{flex:"1 0 auto",flexDirection:"column"}}},["".concat(t,"-left")]:{["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{["".concat(t,"-ink-bar")]:{right:{_skip_check_:!0,value:0}}},["> ".concat(t,"-content-holder, > div > ").concat(t,"-content-holder")]:{marginLeft:{_skip_check_:!0,value:(0,me.zA)(i(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:"".concat((0,me.zA)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder)},["> ".concat(t,"-content > ").concat(t,"-tabpane")]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},["".concat(t,"-right")]:{["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{order:1,["".concat(t,"-ink-bar")]:{left:{_skip_check_:!0,value:0}}},["> ".concat(t,"-content-holder, > div > ").concat(t,"-content-holder")]:{order:0,marginRight:{_skip_check_:!0,value:i(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:"".concat((0,me.zA)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder)},["> ".concat(t,"-content > ").concat(t,"-tabpane")]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Ee=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:o,horizontalItemPaddingSM:a,horizontalItemPaddingLG:r}=e;return{[t]:{"&-small":{["> ".concat(t,"-nav")]:{["".concat(t,"-tab")]:{padding:a,fontSize:e.titleFontSizeSM}}},"&-large":{["> ".concat(t,"-nav")]:{["".concat(t,"-tab")]:{padding:r,fontSize:e.titleFontSizeLG}}}},["".concat(t,"-card")]:{["&".concat(t,"-small")]:{["> ".concat(t,"-nav")]:{["".concat(t,"-tab")]:{padding:n}},["&".concat(t,"-bottom")]:{["> ".concat(t,"-nav ").concat(t,"-tab")]:{borderRadius:"0 0 ".concat((0,me.zA)(e.borderRadius)," ").concat((0,me.zA)(e.borderRadius))}},["&".concat(t,"-top")]:{["> ".concat(t,"-nav ").concat(t,"-tab")]:{borderRadius:"".concat((0,me.zA)(e.borderRadius)," ").concat((0,me.zA)(e.borderRadius)," 0 0")}},["&".concat(t,"-right")]:{["> ".concat(t,"-nav ").concat(t,"-tab")]:{borderRadius:{_skip_check_:!0,value:"0 ".concat((0,me.zA)(e.borderRadius)," ").concat((0,me.zA)(e.borderRadius)," 0")}}},["&".concat(t,"-left")]:{["> ".concat(t,"-nav ").concat(t,"-tab")]:{borderRadius:{_skip_check_:!0,value:"".concat((0,me.zA)(e.borderRadius)," 0 0 ").concat((0,me.zA)(e.borderRadius))}}}},["&".concat(t,"-large")]:{["> ".concat(t,"-nav")]:{["".concat(t,"-tab")]:{padding:o}}}}}},we=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:o,iconCls:a,tabsHorizontalItemMargin:r,horizontalItemPadding:c,itemSelectedColor:i,itemColor:l}=e,s="".concat(t,"-tab");return{[s]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:c,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},(0,be.K8)(e)),"&-btn":{outline:"none",transition:"all ".concat(e.motionDurationSlow),["".concat(s,"-icon:not(:last-child)")]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:"all ".concat(e.motionDurationSlow),"&:hover":{color:e.colorTextHeading}},"&:hover":{color:o},["&".concat(s,"-active ").concat(s,"-btn")]:{color:i,textShadow:e.tabsActiveTextShadow},["&".concat(s,"-disabled")]:{color:e.colorTextDisabled,cursor:"not-allowed"},["&".concat(s,"-disabled ").concat(s,"-btn, &").concat(s,"-disabled ").concat(t,"-remove")]:{"&:focus, &:active":{color:e.colorTextDisabled}},["& ".concat(s,"-remove ").concat(a)]:{margin:0},["".concat(a,":not(:last-child)")]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},["".concat(s," + ").concat(s)]:{margin:{_skip_check_:!0,value:r}}}},ke=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:o,cardGutter:a,calc:r}=e,c="".concat(t,"-rtl");return{[c]:{direction:"rtl",["".concat(t,"-nav")]:{["".concat(t,"-tab")]:{margin:{_skip_check_:!0,value:n},["".concat(t,"-tab:last-of-type")]:{marginLeft:{_skip_check_:!0,value:0}},[o]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:(0,me.zA)(e.marginSM)}},["".concat(t,"-tab-remove")]:{marginRight:{_skip_check_:!0,value:(0,me.zA)(e.marginXS)},marginLeft:{_skip_check_:!0,value:(0,me.zA)(r(e.marginXXS).mul(-1).equal())},[o]:{margin:0}}}},["&".concat(t,"-left")]:{["> ".concat(t,"-nav")]:{order:1},["> ".concat(t,"-content-holder")]:{order:0}},["&".concat(t,"-right")]:{["> ".concat(t,"-nav")]:{order:0},["> ".concat(t,"-content-holder")]:{order:1}},["&".concat(t,"-card").concat(t,"-top, &").concat(t,"-card").concat(t,"-bottom")]:{["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{["".concat(t,"-tab + ").concat(t,"-tab")]:{marginRight:{_skip_check_:!0,value:a},marginLeft:{_skip_check_:!0,value:0}}}}},["".concat(t,"-dropdown-rtl")]:{direction:"rtl"},["".concat(t,"-menu-item")]:{["".concat(t,"-dropdown-rtl")]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Oe=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:o,cardGutter:a,itemHoverColor:r,itemActiveColor:c,colorBorderSecondary:i}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,be.dF)(e)),{display:"flex",["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{position:"relative",display:"flex",flex:"none",alignItems:"center",["".concat(t,"-nav-wrap")]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:"opacity ".concat(e.motionDurationSlow),content:"''",pointerEvents:"none"}},["".concat(t,"-nav-list")]:{position:"relative",display:"flex",transition:"opacity ".concat(e.motionDurationSlow)},["".concat(t,"-nav-operations")]:{display:"flex",alignSelf:"stretch"},["".concat(t,"-nav-operations-hidden")]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},["".concat(t,"-nav-more")]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},["".concat(t,"-nav-add")]:Object.assign({minWidth:o,minHeight:o,marginLeft:{_skip_check_:!0,value:a},padding:"0 ".concat((0,me.zA)(e.paddingXS)),background:"transparent",border:"".concat((0,me.zA)(e.lineWidth)," ").concat(e.lineType," ").concat(i),borderRadius:"".concat((0,me.zA)(e.borderRadiusLG)," ").concat((0,me.zA)(e.borderRadiusLG)," 0 0"),outline:"none",cursor:"pointer",color:e.colorText,transition:"all ".concat(e.motionDurationSlow," ").concat(e.motionEaseInOut),"&:hover":{color:r},"&:active, &:focus:not(:focus-visible)":{color:c}},(0,be.K8)(e))},["".concat(t,"-extra-content")]:{flex:"none"},["".concat(t,"-ink-bar")]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),we(e)),{["".concat(t,"-content")]:{position:"relative",width:"100%"},["".concat(t,"-content-holder")]:{flex:"auto",minWidth:0,minHeight:0},["".concat(t,"-tabpane")]:{outline:"none","&-hidden":{display:"none"}}}),["".concat(t,"-centered")]:{["> ".concat(t,"-nav, > div > ").concat(t,"-nav")]:{["".concat(t,"-nav-wrap")]:{["&:not([class*='".concat(t,"-nav-wrap-ping'])")]:{justifyContent:"center"}}}}}},Re=(0,ge.OF)("Tabs",(e=>{const t=(0,he.h1)(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:"0 0 0 ".concat((0,me.zA)(e.horizontalItemGutter)),tabsHorizontalItemMarginRTL:"0 0 0 ".concat((0,me.zA)(e.horizontalItemGutter))});return[Ee(t),ke(t),xe(t),Se(t),Ce(t),Oe(t),Ae(t)]}),(e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:"".concat((t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth,"px ").concat(e.padding,"px"),cardPaddingSM:"".concat(1.5*e.paddingXXS,"px ").concat(e.padding,"px"),cardPaddingLG:"".concat(e.paddingXS,"px ").concat(e.padding,"px ").concat(1.5*e.paddingXXS,"px"),titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:"0 0 ".concat(e.margin,"px 0"),horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:"".concat(e.paddingSM,"px 0"),horizontalItemPaddingSM:"".concat(e.paddingXS,"px 0"),horizontalItemPaddingLG:"".concat(e.padding,"px 0"),verticalItemPadding:"".concat(e.paddingXS,"px ").concat(e.paddingLG,"px"),verticalItemMargin:"".concat(e.margin,"px 0 0 0"),itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}));var ze=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]])}return n};const Ie=e=>{var t,n,a,c,s,f,p,v,m,g,h;const{type:y,className:A,rootClassName:C,size:S,onEdit:x,hideAdd:E,centered:w,addIcon:k,removeIcon:O,moreIcon:R,more:z,popupClassName:I,children:P,items:N,animated:M,style:j,indicatorSize:L,indicator:_}=e,T=ze(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:B}=T,{direction:H,tabs:D,getPrefixCls:K,getPopupContainer:W}=o.useContext(i.QO),G=K("tabs",B),F=(0,de.A)(G),[X,V,q]=Re(G,F);let Y;"editable-card"===y&&(Y={onEdit:(e,t)=>{let{key:n,event:o}=t;null===x||void 0===x||x("add"===e?o:n,e)},removeIcon:null!==(t=null!==O&&void 0!==O?O:null===D||void 0===D?void 0:D.removeIcon)&&void 0!==t?t:o.createElement(d.A,null),addIcon:(null!==k&&void 0!==k?k:null===D||void 0===D?void 0:D.addIcon)||o.createElement(b,null),showAdd:!0!==E});const Q=K();const U=(0,l.A)(S),J=function(e,t){return e||function(e){return e.filter((e=>e))}((0,pe.A)(t).map((e=>{if(o.isValidElement(e)){const{key:t,props:n}=e,o=n||{},{tab:a}=o,r=ve(o,["tab"]);return Object.assign(Object.assign({key:String(t)},r),{label:a})}return null})))}(N,P),$=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"===typeof n?n:{}),t.tabPane&&(t.tabPaneMotion=Object.assign(Object.assign({},fe),{motionName:(0,ue.b)(e,"switch")})),t}(G,M),Z=Object.assign(Object.assign({},null===D||void 0===D?void 0:D.style),j),ee={align:null!==(n=null===_||void 0===_?void 0:_.align)&&void 0!==n?n:null===(a=null===D||void 0===D?void 0:D.indicator)||void 0===a?void 0:a.align,size:null!==(p=null!==(s=null!==(c=null===_||void 0===_?void 0:_.size)&&void 0!==c?c:L)&&void 0!==s?s:null===(f=null===D||void 0===D?void 0:D.indicator)||void 0===f?void 0:f.size)&&void 0!==p?p:null===D||void 0===D?void 0:D.indicatorSize};return X(o.createElement(se,Object.assign({direction:H,getPopupContainer:W},T,{items:J,className:r()({["".concat(G,"-").concat(U)]:U,["".concat(G,"-card")]:["card","editable-card"].includes(y),["".concat(G,"-editable-card")]:"editable-card"===y,["".concat(G,"-centered")]:w},null===D||void 0===D?void 0:D.className,A,C,V,q,F),popupClassName:r()(I,V,q,F),style:Z,editable:Y,more:Object.assign({icon:null!==(h=null!==(g=null!==(m=null===(v=null===D||void 0===D?void 0:D.more)||void 0===v?void 0:v.icon)&&void 0!==m?m:null===D||void 0===D?void 0:D.moreIcon)&&void 0!==g?g:R)&&void 0!==h?h:o.createElement(u.A,null),transitionName:"".concat(Q,"-slide-up")},z),prefixCls:G,animated:$,indicator:ee})))};Ie.TabPane=()=>null;const Pe=Ie;var Ne=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]])}return n};const Me=e=>{var{prefixCls:t,className:n,hoverable:a=!0}=e,c=Ne(e,["prefixCls","className","hoverable"]);const{getPrefixCls:l}=o.useContext(i.QO),s=l("card",t),d=r()("".concat(s,"-grid"),n,{["".concat(s,"-grid-hoverable")]:a});return o.createElement("div",Object.assign({},c,{className:d}))},je=e=>{const{antCls:t,componentCls:n,headerHeight:o,cardPaddingBase:a,tabsMarginBottom:r}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:o,marginBottom:-1,padding:"0 ".concat((0,me.zA)(a)),color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:"".concat((0,me.zA)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorderSecondary),borderRadius:"".concat((0,me.zA)(e.borderRadiusLG)," ").concat((0,me.zA)(e.borderRadiusLG)," 0 0")},(0,be.t6)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},be.L9),{["\n          > ".concat(n,"-typography,\n          > ").concat(n,"-typography-edit-content\n        ")]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),["".concat(t,"-tabs-top")]:{clear:"both",marginBottom:r,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:"".concat((0,me.zA)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorderSecondary)}}})},Le=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:o,lineWidth:a}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:"\n      ".concat((0,me.zA)(a)," 0 0 0 ").concat(n,",\n      0 ").concat((0,me.zA)(a)," 0 0 ").concat(n,",\n      ").concat((0,me.zA)(a)," ").concat((0,me.zA)(a)," 0 0 ").concat(n,",\n      ").concat((0,me.zA)(a)," 0 0 0 ").concat(n," inset,\n      0 ").concat((0,me.zA)(a)," 0 0 ").concat(n," inset;\n    "),transition:"all ".concat(e.motionDurationMid),"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:o}}},_e=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:o,cardActionsIconSize:a,colorBorderSecondary:r,actionsBg:c}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:c,borderTop:"".concat((0,me.zA)(e.lineWidth)," ").concat(e.lineType," ").concat(r),display:"flex",borderRadius:"0 0 ".concat((0,me.zA)(e.borderRadiusLG)," ").concat((0,me.zA)(e.borderRadiusLG))},(0,be.t6)()),{"& > li":{margin:o,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:"color ".concat(e.motionDurationMid)},["a:not(".concat(t,"-btn), > ").concat(n)]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:(0,me.zA)(e.fontHeight),transition:"color ".concat(e.motionDurationMid),"&:hover":{color:e.colorPrimary}},["> ".concat(n)]:{fontSize:a,lineHeight:(0,me.zA)(e.calc(a).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:"".concat((0,me.zA)(e.lineWidth)," ").concat(e.lineType," ").concat(r)}}})},Te=e=>Object.assign(Object.assign({margin:"".concat((0,me.zA)(e.calc(e.marginXXS).mul(-1).equal())," 0"),display:"flex"},(0,be.t6)()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},be.L9),"&-description":{color:e.colorTextDescription}}),Be=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:o}=e;return{["".concat(t,"-head")]:{padding:"0 ".concat((0,me.zA)(n)),background:o,"&-title":{fontSize:e.fontSize}},["".concat(t,"-body")]:{padding:"".concat((0,me.zA)(e.padding)," ").concat((0,me.zA)(n))}}},He=e=>{const{componentCls:t}=e;return{overflow:"hidden",["".concat(t,"-body")]:{userSelect:"none"}}},De=e=>{const{antCls:t,componentCls:n,cardShadow:o,cardHeadPadding:a,colorBorderSecondary:r,boxShadowTertiary:c,cardPaddingBase:i,extraColor:l}=e;return{[n]:Object.assign(Object.assign({},(0,be.dF)(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,["&:not(".concat(n,"-bordered)")]:{boxShadow:c},["".concat(n,"-head")]:je(e),["".concat(n,"-extra")]:{marginInlineStart:"auto",color:l,fontWeight:"normal",fontSize:e.fontSize},["".concat(n,"-body")]:Object.assign({padding:i,borderRadius:"0 0 ".concat((0,me.zA)(e.borderRadiusLG)," ").concat((0,me.zA)(e.borderRadiusLG))},(0,be.t6)()),["".concat(n,"-grid")]:Le(e),["".concat(n,"-cover")]:{"> *":{display:"block",width:"100%"},["img, img + ".concat(t,"-image-mask")]:{borderRadius:"".concat((0,me.zA)(e.borderRadiusLG)," ").concat((0,me.zA)(e.borderRadiusLG)," 0 0")}},["".concat(n,"-actions")]:_e(e),["".concat(n,"-meta")]:Te(e)}),["".concat(n,"-bordered")]:{border:"".concat((0,me.zA)(e.lineWidth)," ").concat(e.lineType," ").concat(r),["".concat(n,"-cover")]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},["".concat(n,"-hoverable")]:{cursor:"pointer",transition:"box-shadow ".concat(e.motionDurationMid,", border-color ").concat(e.motionDurationMid),"&:hover":{borderColor:"transparent",boxShadow:o}},["".concat(n,"-contain-grid")]:{borderRadius:"".concat((0,me.zA)(e.borderRadiusLG)," ").concat((0,me.zA)(e.borderRadiusLG)," 0 0 "),["".concat(n,"-body")]:{display:"flex",flexWrap:"wrap"},["&:not(".concat(n,"-loading) ").concat(n,"-body")]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},["".concat(n,"-contain-tabs")]:{["> div".concat(n,"-head")]:{minHeight:0,["".concat(n,"-head-title, ").concat(n,"-extra")]:{paddingTop:a}}},["".concat(n,"-type-inner")]:Be(e),["".concat(n,"-loading")]:He(e),["".concat(n,"-rtl")]:{direction:"rtl"}}},Ke=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:o,headerFontSizeSM:a}=e;return{["".concat(t,"-small")]:{["> ".concat(t,"-head")]:{minHeight:o,padding:"0 ".concat((0,me.zA)(n)),fontSize:a,["> ".concat(t,"-head-wrapper")]:{["> ".concat(t,"-extra")]:{fontSize:e.fontSize}}},["> ".concat(t,"-body")]:{padding:n}},["".concat(t,"-small").concat(t,"-contain-tabs")]:{["> ".concat(t,"-head")]:{["".concat(t,"-head-title, ").concat(t,"-extra")]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},We=(0,ge.OF)("Card",(e=>{const t=(0,he.h1)(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[De(t),Ke(t)]}),(e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+2*e.padding,headerHeightSM:e.fontSize*e.lineHeight+2*e.paddingXS,actionsBg:e.colorBgContainer,actionsLiMargin:"".concat(e.paddingSM,"px 0"),tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText})));var Ge=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]])}return n};const Fe=e=>{const{actionClasses:t,actions:n=[],actionStyle:a}=e;return o.createElement("ul",{className:t,style:a},n.map(((e,t)=>{const a="action-".concat(t);return o.createElement("li",{style:{width:"".concat(100/n.length,"%")},key:a},o.createElement("span",null,e))})))},Xe=o.forwardRef(((e,t)=>{const{prefixCls:n,className:a,rootClassName:d,style:u,extra:f,headStyle:p={},bodyStyle:v={},title:m,loading:b,bordered:g=!0,size:h,type:y,cover:A,actions:C,tabList:S,children:x,activeTabKey:E,defaultActiveTabKey:w,tabBarExtraContent:k,hoverable:O,tabProps:R={},classNames:z,styles:I}=e,P=Ge(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:N,direction:M,card:j}=o.useContext(i.QO);const L=e=>{var t;return r()(null===(t=null===j||void 0===j?void 0:j.classNames)||void 0===t?void 0:t[e],null===z||void 0===z?void 0:z[e])},_=e=>{var t;return Object.assign(Object.assign({},null===(t=null===j||void 0===j?void 0:j.styles)||void 0===t?void 0:t[e]),null===I||void 0===I?void 0:I[e])},T=o.useMemo((()=>{let e=!1;return o.Children.forEach(x,(t=>{t&&t.type&&t.type===Me&&(e=!0)})),e}),[x]),B=N("card",n),[H,D,K]=We(B),W=o.createElement(s.A,{loading:!0,active:!0,paragraph:{rows:4},title:!1},x),G=void 0!==E,F=Object.assign(Object.assign({},R),{[G?"activeKey":"defaultActiveKey"]:G?E:w,tabBarExtraContent:k});let X;const V=(0,l.A)(h),q=V&&"default"!==V?V:"large",Y=S?o.createElement(Pe,Object.assign({size:q},F,{className:"".concat(B,"-head-tabs"),onChange:t=>{var n;null===(n=e.onTabChange)||void 0===n||n.call(e,t)},items:S.map((e=>{var{tab:t}=e,n=Ge(e,["tab"]);return Object.assign({label:t},n)}))})):null;if(m||f||Y){const e=r()("".concat(B,"-head"),L("header")),t=r()("".concat(B,"-head-title"),L("title")),n=r()("".concat(B,"-extra"),L("extra")),a=Object.assign(Object.assign({},p),_("header"));X=o.createElement("div",{className:e,style:a},o.createElement("div",{className:"".concat(B,"-head-wrapper")},m&&o.createElement("div",{className:t,style:_("title")},m),f&&o.createElement("div",{className:n,style:_("extra")},f)),Y)}const Q=r()("".concat(B,"-cover"),L("cover")),U=A?o.createElement("div",{className:Q,style:_("cover")},A):null,J=r()("".concat(B,"-body"),L("body")),$=Object.assign(Object.assign({},v),_("body")),Z=o.createElement("div",{className:J,style:$},b?W:x),ee=r()("".concat(B,"-actions"),L("actions")),te=C&&C.length?o.createElement(Fe,{actionClasses:ee,actionStyle:_("actions"),actions:C}):null,ne=(0,c.A)(P,["onTabChange"]),oe=r()(B,null===j||void 0===j?void 0:j.className,{["".concat(B,"-loading")]:b,["".concat(B,"-bordered")]:g,["".concat(B,"-hoverable")]:O,["".concat(B,"-contain-grid")]:T,["".concat(B,"-contain-tabs")]:S&&S.length,["".concat(B,"-").concat(V)]:V,["".concat(B,"-type-").concat(y)]:!!y,["".concat(B,"-rtl")]:"rtl"===M},a,d,D,K),ae=Object.assign(Object.assign({},null===j||void 0===j?void 0:j.style),u);return H(o.createElement("div",Object.assign({ref:t},ne,{className:oe,style:ae}),X,U,Z,te))}));var Ve=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]])}return n};const qe=e=>{const{prefixCls:t,className:n,avatar:a,title:c,description:l}=e,s=Ve(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:d}=o.useContext(i.QO),u=d("card",t),f=r()("".concat(u,"-meta"),n),p=a?o.createElement("div",{className:"".concat(u,"-meta-avatar")},a):null,v=c?o.createElement("div",{className:"".concat(u,"-meta-title")},c):null,m=l?o.createElement("div",{className:"".concat(u,"-meta-description")},l):null,b=v||m?o.createElement("div",{className:"".concat(u,"-meta-detail")},v,m):null;return o.createElement("div",Object.assign({},s,{className:f}),p,b)},Ye=Xe;Ye.Grid=Me,Ye.Meta=qe;const Qe=Ye},14647:(e,t,n)=>{n.d(t,{A:()=>f});var o=n(65043),a=n(98139),r=n.n(a),c=n(35296),i=n(95150),l=n(56055),s=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]])}return n};function d(e){return"number"===typeof e?"".concat(e," ").concat(e," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 ".concat(e):e}const u=["xs","sm","md","lg","xl","xxl"];const f=o.forwardRef(((e,t)=>{const{getPrefixCls:n,direction:a}=o.useContext(c.QO),{gutter:f,wrap:p}=o.useContext(i.A),{prefixCls:v,span:m,order:b,offset:g,push:h,pull:y,className:A,children:C,flex:S,style:x}=e,E=s(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),w=n("col",v),[k,O,R]=(0,l.xV)(w),z={};let I={};u.forEach((t=>{let n={};const o=e[t];"number"===typeof o?n.span=o:"object"===typeof o&&(n=o||{}),delete E[t],I=Object.assign(Object.assign({},I),{["".concat(w,"-").concat(t,"-").concat(n.span)]:void 0!==n.span,["".concat(w,"-").concat(t,"-order-").concat(n.order)]:n.order||0===n.order,["".concat(w,"-").concat(t,"-offset-").concat(n.offset)]:n.offset||0===n.offset,["".concat(w,"-").concat(t,"-push-").concat(n.push)]:n.push||0===n.push,["".concat(w,"-").concat(t,"-pull-").concat(n.pull)]:n.pull||0===n.pull,["".concat(w,"-rtl")]:"rtl"===a}),n.flex&&(I["".concat(w,"-").concat(t,"-flex")]=!0,z["--".concat(w,"-").concat(t,"-flex")]=d(n.flex))}));const P=r()(w,{["".concat(w,"-").concat(m)]:void 0!==m,["".concat(w,"-order-").concat(b)]:b,["".concat(w,"-offset-").concat(g)]:g,["".concat(w,"-push-").concat(h)]:h,["".concat(w,"-pull-").concat(y)]:y},A,I,O,R),N={};if(f&&f[0]>0){const e=f[0]/2;N.paddingLeft=e,N.paddingRight=e}return S&&(N.flex=d(S),!1!==p||N.minWidth||(N.minWidth=0)),k(o.createElement("div",Object.assign({},E,{style:Object.assign(Object.assign(Object.assign({},N),x),z),className:P,ref:t}),C))}))},82805:(e,t,n)=>{n.d(t,{A:()=>c});var o=n(65043),a=n(11250);const r=["outlined","borderless","filled"],c=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;const n=(0,o.useContext)(a.Pp);let c;c="undefined"!==typeof e?e:!1===t?"borderless":null!==n&&void 0!==n?n:"outlined";return[c,r.includes(c)]}},95150:(e,t,n)=>{n.d(t,{A:()=>o});const o=(0,n(65043).createContext)({})},56055:(e,t,n)=>{n.d(t,{L3:()=>l,xV:()=>s});var o=n(36647),a=n(66712),r=n(78365);const c=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},i=(e,t)=>((e,t)=>{const{prefixCls:n,componentCls:o,gridColumns:a}=e,r={};for(let c=a;c>=0;c--)0===c?(r["".concat(o).concat(t,"-").concat(c)]={display:"none"},r["".concat(o,"-push-").concat(c)]={insetInlineStart:"auto"},r["".concat(o,"-pull-").concat(c)]={insetInlineEnd:"auto"},r["".concat(o).concat(t,"-push-").concat(c)]={insetInlineStart:"auto"},r["".concat(o).concat(t,"-pull-").concat(c)]={insetInlineEnd:"auto"},r["".concat(o).concat(t,"-offset-").concat(c)]={marginInlineStart:0},r["".concat(o).concat(t,"-order-").concat(c)]={order:0}):(r["".concat(o).concat(t,"-").concat(c)]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:"0 0 ".concat(c/a*100,"%"),maxWidth:"".concat(c/a*100,"%")}],r["".concat(o).concat(t,"-push-").concat(c)]={insetInlineStart:"".concat(c/a*100,"%")},r["".concat(o).concat(t,"-pull-").concat(c)]={insetInlineEnd:"".concat(c/a*100,"%")},r["".concat(o).concat(t,"-offset-").concat(c)]={marginInlineStart:"".concat(c/a*100,"%")},r["".concat(o).concat(t,"-order-").concat(c)]={order:c});return r["".concat(o).concat(t,"-flex")]={flex:"var(--".concat(n).concat(t,"-flex)")},r})(e,t),l=(0,a.OF)("Grid",(e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}}),(()=>({}))),s=(0,a.OF)("Grid",(e=>{const t=(0,r.h1)(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[c(t),i(t,""),i(t,"-xs"),Object.keys(n).map((e=>((e,t,n)=>({["@media (min-width: ".concat((0,o.zA)(t),")")]:Object.assign({},i(e,n))}))(t,n[e],e))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})]}),(()=>({})))},79672:(e,t,n)=>{n.d(t,{A:()=>f});var o=n(65043),a=n(98139),r=n.n(a),c=n(44320),i=n(35296),l=n(95150),s=n(56055),d=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]])}return n};function u(e,t){const[n,a]=o.useState("string"===typeof e?e:"");return o.useEffect((()=>{(()=>{if("string"===typeof e&&a(e),"object"===typeof e)for(let n=0;n<c.ye.length;n++){const o=c.ye[n];if(!t[o])continue;const r=e[o];if(void 0!==r)return void a(r)}})()}),[JSON.stringify(e),t]),n}const f=o.forwardRef(((e,t)=>{const{prefixCls:n,justify:a,align:f,className:p,style:v,children:m,gutter:b=0,wrap:g}=e,h=d(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:y,direction:A}=o.useContext(i.QO),[C,S]=o.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[x,E]=o.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),w=u(f,x),k=u(a,x),O=o.useRef(b),R=(0,c.Ay)();o.useEffect((()=>{const e=R.subscribe((e=>{E(e);const t=O.current||0;(!Array.isArray(t)&&"object"===typeof t||Array.isArray(t)&&("object"===typeof t[0]||"object"===typeof t[1]))&&S(e)}));return()=>R.unsubscribe(e)}),[]);const z=y("row",n),[I,P,N]=(0,s.L3)(z),M=(()=>{const e=[void 0,void 0];return(Array.isArray(b)?b:[b,void 0]).forEach(((t,n)=>{if("object"===typeof t)for(let o=0;o<c.ye.length;o++){const a=c.ye[o];if(C[a]&&void 0!==t[a]){e[n]=t[a];break}}else e[n]=t})),e})(),j=r()(z,{["".concat(z,"-no-wrap")]:!1===g,["".concat(z,"-").concat(k)]:k,["".concat(z,"-").concat(w)]:w,["".concat(z,"-rtl")]:"rtl"===A},p,P,N),L={},_=null!=M[0]&&M[0]>0?M[0]/-2:void 0;_&&(L.marginLeft=_,L.marginRight=_);const[T,B]=M;L.rowGap=B;const H=o.useMemo((()=>({gutter:[T,B],wrap:g})),[T,B,g]);return I(o.createElement(l.A.Provider,{value:H},o.createElement("div",Object.assign({},h,{className:j,style:Object.assign(Object.assign({},L),v),ref:t}),m)))}))},92919:(e,t,n)=>{function o(e,t,n){const{focusElCls:o,focus:a,borderElCls:r}=n,c=r?"> *":"",i=["hover",a?"focus":null,"active"].filter(Boolean).map((e=>"&:".concat(e," ").concat(c))).join(",");return{["&-item:not(".concat(t,"-last-item)")]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[i]:{zIndex:2}},o?{["&".concat(o)]:{zIndex:2}}:{}),{["&[disabled] ".concat(c)]:{zIndex:0}})}}function a(e,t,n){const{borderElCls:o}=n,a=o?"> ".concat(o):"";return{["&-item:not(".concat(t,"-first-item):not(").concat(t,"-last-item) ").concat(a)]:{borderRadius:0},["&-item:not(".concat(t,"-last-item)").concat(t,"-first-item")]:{["& ".concat(a,", &").concat(e,"-sm ").concat(a,", &").concat(e,"-lg ").concat(a)]:{borderStartEndRadius:0,borderEndEndRadius:0}},["&-item:not(".concat(t,"-first-item)").concat(t,"-last-item")]:{["& ".concat(a,", &").concat(e,"-sm ").concat(a,", &").concat(e,"-lg ").concat(a)]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,r="".concat(n,"-compact");return{[r]:Object.assign(Object.assign({},o(e,r,t)),a(n,r,t))}}n.d(t,{G:()=>r})},24760:(e,t,n)=>{n.d(t,{YU:()=>l,_j:()=>v,nP:()=>i,ox:()=>r,vR:()=>c});var o=n(36647),a=n(40955);const r=new o.Mo("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),c=new o.Mo("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),i=new o.Mo("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),l=new o.Mo("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),s=new o.Mo("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),d=new o.Mo("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),u=new o.Mo("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),f=new o.Mo("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),p={"slide-up":{inKeyframes:r,outKeyframes:c},"slide-down":{inKeyframes:i,outKeyframes:l},"slide-left":{inKeyframes:s,outKeyframes:d},"slide-right":{inKeyframes:u,outKeyframes:f}},v=(e,t)=>{const{antCls:n}=e,o="".concat(n,"-").concat(t),{inKeyframes:r,outKeyframes:c}=p[t];return[(0,a.b)(o,r,c,e.motionDurationMid),{["\n      ".concat(o,"-enter,\n      ").concat(o,"-appear\n    ")]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},["".concat(o,"-leave")]:{animationTimingFunction:e.motionEaseInQuint}}]}},75822:(e,t,n)=>{n.d(t,{A:()=>S});var o=n(58168),a=n(64467),r=n(5544),c=n(53986),i=n(54017),l=n(98139),s=n.n(l),d=n(13758),u=n(65043),f=n(25001),p=n(45818),v=f.A.ESC,m=f.A.TAB;const b=(0,u.forwardRef)((function(e,t){var n=e.overlay,o=e.arrow,a=e.prefixCls,r=(0,u.useMemo)((function(){return"function"===typeof n?n():n}),[n]),c=(0,d.K4)(t,null===r||void 0===r?void 0:r.ref);return u.createElement(u.Fragment,null,o&&u.createElement("div",{className:"".concat(a,"-arrow")}),u.cloneElement(r,{ref:(0,d.f3)(r)?c:void 0}))}));var g={adjustX:1,adjustY:1},h=[0,0];const y={topLeft:{points:["bl","tl"],overflow:g,offset:[0,-4],targetOffset:h},top:{points:["bc","tc"],overflow:g,offset:[0,-4],targetOffset:h},topRight:{points:["br","tr"],overflow:g,offset:[0,-4],targetOffset:h},bottomLeft:{points:["tl","bl"],overflow:g,offset:[0,4],targetOffset:h},bottom:{points:["tc","bc"],overflow:g,offset:[0,4],targetOffset:h},bottomRight:{points:["tr","br"],overflow:g,offset:[0,4],targetOffset:h}};var A=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function C(e,t){var n,l=e.arrow,f=void 0!==l&&l,g=e.prefixCls,h=void 0===g?"rc-dropdown":g,C=e.transitionName,S=e.animation,x=e.align,E=e.placement,w=void 0===E?"bottomLeft":E,k=e.placements,O=void 0===k?y:k,R=e.getPopupContainer,z=e.showAction,I=e.hideAction,P=e.overlayClassName,N=e.overlayStyle,M=e.visible,j=e.trigger,L=void 0===j?["hover"]:j,_=e.autoFocus,T=e.overlay,B=e.children,H=e.onVisibleChange,D=(0,c.A)(e,A),K=u.useState(),W=(0,r.A)(K,2),G=W[0],F=W[1],X="visible"in e?M:G,V=u.useRef(null),q=u.useRef(null),Y=u.useRef(null);u.useImperativeHandle(t,(function(){return V.current}));var Q=function(e){F(e),null===H||void 0===H||H(e)};!function(e){var t=e.visible,n=e.triggerRef,o=e.onVisibleChange,a=e.autoFocus,r=e.overlayRef,c=u.useRef(!1),i=function(){var e,a;t&&(null===(e=n.current)||void 0===e||null===(a=e.focus)||void 0===a||a.call(e),null===o||void 0===o||o(!1))},l=function(){var e;return!(null===(e=r.current)||void 0===e||!e.focus)&&(r.current.focus(),c.current=!0,!0)},s=function(e){switch(e.keyCode){case v:i();break;case m:var t=!1;c.current||(t=l()),t?e.preventDefault():i()}};u.useEffect((function(){return t?(window.addEventListener("keydown",s),a&&(0,p.A)(l,3),function(){window.removeEventListener("keydown",s),c.current=!1}):function(){c.current=!1}}),[t])}({visible:X,triggerRef:Y,onVisibleChange:Q,autoFocus:_,overlayRef:q});var U=function(){return u.createElement(b,{ref:q,overlay:T,prefixCls:h,arrow:f})},J=u.cloneElement(B,{className:s()(null===(n=B.props)||void 0===n?void 0:n.className,X&&function(){var t=e.openClassName;return void 0!==t?t:"".concat(h,"-open")}()),ref:(0,d.f3)(B)?(0,d.K4)(Y,B.ref):void 0}),$=I;return $||-1===L.indexOf("contextMenu")||($=["click"]),u.createElement(i.A,(0,o.A)({builtinPlacements:O},D,{prefixCls:h,ref:V,popupClassName:s()(P,(0,a.A)({},"".concat(h,"-show-arrow"),f)),popupStyle:N,action:L,showAction:z,hideAction:$,popupPlacement:w,popupAlign:x,popupTransitionName:C,popupAnimation:S,popupVisible:X,stretch:function(){var t=e.minOverlayWidthMatchTrigger,n=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?t:!n}()?"minWidth":"",popup:"function"===typeof T?U:U(),onPopupVisibleChange:Q,onPopupClick:function(t){var n=e.onOverlayClick;F(!1),n&&n(t)},getPopupContainer:R}),J)}const S=u.forwardRef(C)},80244:(e,t,n)=>{n.d(t,{cG:()=>De,q7:()=>ye,te:()=>Ge,Dr:()=>ye,g8:()=>Be,Ay:()=>Ue,Wj:()=>R});var o=n(58168),a=n(64467),r=n(89379),c=n(60436),i=n(5544),l=n(53986),s=n(98139),d=n.n(s),u=n(69944),f=n(28678),p=n(2231),v=n(97907),m=n(65043),b=n(97950),g=m.createContext(null);function h(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function y(e){return h(m.useContext(g),e)}var A=n(13709),C=["children","locked"],S=m.createContext(null);function x(e){var t=e.children,n=e.locked,o=(0,l.A)(e,C),a=m.useContext(S),c=(0,A.A)((function(){return function(e,t){var n=(0,r.A)({},e);return Object.keys(t).forEach((function(e){var o=t[e];void 0!==o&&(n[e]=o)})),n}(a,o)}),[a,o],(function(e,t){return!n&&(e[0]!==t[0]||!(0,p.A)(e[1],t[1],!0))}));return m.createElement(S.Provider,{value:c},t)}var E=[],w=m.createContext(null);function k(){return m.useContext(w)}var O=m.createContext(E);function R(e){var t=m.useContext(O);return m.useMemo((function(){return void 0!==e?[].concat((0,c.A)(t),[e]):t}),[t,e])}var z=m.createContext(null);const I=m.createContext({});var P=n(76590);function N(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,P.A)(e)){var n=e.nodeName.toLowerCase(),o=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),a=e.getAttribute("tabindex"),r=Number(a),c=null;return a&&!Number.isNaN(r)?c=r:o&&null===c&&(c=0),o&&e.disabled&&(c=null),null!==c&&(c>=0||t&&c<0)}return!1}function M(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,c.A)(e.querySelectorAll("*")).filter((function(e){return N(e,t)}));return N(e,t)&&n.unshift(e),n}var j=n(25001),L=n(45818),_=j.A.LEFT,T=j.A.RIGHT,B=j.A.UP,H=j.A.DOWN,D=j.A.ENTER,K=j.A.ESC,W=j.A.HOME,G=j.A.END,F=[B,H,_,T];function X(e,t){return M(e,!0).filter((function(e){return t.has(e)}))}function V(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var a=X(e,t),r=a.length,c=a.findIndex((function(e){return n===e}));return o<0?-1===c?c=r-1:c-=1:o>0&&(c+=1),a[c=(c+r)%r]}var q=function(e,t){var n=new Set,o=new Map,a=new Map;return e.forEach((function(e){var r=document.querySelector("[data-menu-id='".concat(h(t,e),"']"));r&&(n.add(r),a.set(r,e),o.set(e,r))})),{elements:n,key2element:o,element2key:a}};function Y(e,t,n,o,r,c,i,l,s,d){var u=m.useRef(),f=m.useRef();f.current=t;var p=function(){L.A.cancel(u.current)};return m.useEffect((function(){return function(){p()}}),[]),function(v){var m=v.which;if([].concat(F,[D,K,W,G]).includes(m)){var b=c(),g=q(b,o),h=g,y=h.elements,A=h.key2element,C=h.element2key,S=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(A.get(t),y),x=C.get(S),E=function(e,t,n,o){var r,c="prev",i="next",l="children",s="parent";if("inline"===e&&o===D)return{inlineTrigger:!0};var d=(0,a.A)((0,a.A)({},B,c),H,i),u=(0,a.A)((0,a.A)((0,a.A)((0,a.A)({},_,n?i:c),T,n?c:i),H,l),D,l),f=(0,a.A)((0,a.A)((0,a.A)((0,a.A)((0,a.A)((0,a.A)({},B,c),H,i),D,l),K,s),_,n?l:s),T,n?s:l);switch(null===(r={inline:d,horizontal:u,vertical:f,inlineSub:d,horizontalSub:f,verticalSub:f}["".concat(e).concat(t?"":"Sub")])||void 0===r?void 0:r[o]){case c:return{offset:-1,sibling:!0};case i:return{offset:1,sibling:!0};case s:return{offset:-1,sibling:!1};case l:return{offset:1,sibling:!1};default:return null}}(e,1===i(x,!0).length,n,m);if(!E&&m!==W&&m!==G)return;(F.includes(m)||[W,G].includes(m))&&v.preventDefault();var w=function(e){if(e){var t=e,n=e.querySelector("a");null!==n&&void 0!==n&&n.getAttribute("href")&&(t=n);var o=C.get(e);l(o),p(),u.current=(0,L.A)((function(){f.current===o&&t.focus()}))}};if([W,G].includes(m)||E.sibling||!S){var k,O,R=X(k=S&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(S):r.current,y);O=m===W?R[0]:m===G?R[R.length-1]:V(k,y,S,E.offset),w(O)}else if(E.inlineTrigger)s(x);else if(E.offset>0)s(x,!0),p(),u.current=(0,L.A)((function(){g=q(b,o);var e=S.getAttribute("aria-controls"),t=V(document.getElementById(e),g.elements);w(t)}),5);else if(E.offset<0){var z=i(x,!0),I=z[z.length-2],P=A.get(I);s(I,!1),w(P)}}null===d||void 0===d||d(v)}}var Q="__RC_UTIL_PATH_SPLIT__",U=function(e){return e.join(Q)},J="rc-menu-more";function $(){var e=m.useState({}),t=(0,i.A)(e,2)[1],n=(0,m.useRef)(new Map),o=(0,m.useRef)(new Map),a=m.useState([]),r=(0,i.A)(a,2),l=r[0],s=r[1],d=(0,m.useRef)(0),u=(0,m.useRef)(!1),f=(0,m.useCallback)((function(e,a){var r=U(a);o.current.set(r,e),n.current.set(e,r),d.current+=1;var c,i=d.current;c=function(){i===d.current&&(u.current||t({}))},Promise.resolve().then(c)}),[]),p=(0,m.useCallback)((function(e,t){var a=U(t);o.current.delete(a),n.current.delete(e)}),[]),v=(0,m.useCallback)((function(e){s(e)}),[]),b=(0,m.useCallback)((function(e,t){var o=n.current.get(e)||"",a=o.split(Q);return t&&l.includes(a[0])&&a.unshift(J),a}),[l]),g=(0,m.useCallback)((function(e,t){return e.some((function(e){return b(e,!0).includes(t)}))}),[b]),h=(0,m.useCallback)((function(e){var t="".concat(n.current.get(e)).concat(Q),a=new Set;return(0,c.A)(o.current.keys()).forEach((function(e){e.startsWith(t)&&a.add(o.current.get(e))})),a}),[]);return m.useEffect((function(){return function(){u.current=!0}}),[]),{registerPath:f,unregisterPath:p,refreshOverflowKeys:v,isSubPathKey:g,getKeyPath:b,getKeys:function(){var e=(0,c.A)(n.current.keys());return l.length&&e.push(J),e},getSubPathKeys:h}}function Z(e){var t=m.useRef(e);t.current=e;var n=m.useCallback((function(){for(var e,n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(o))}),[]);return e?n:void 0}var ee=Math.random().toFixed(5).toString().slice(2),te=0;var ne=n(23029),oe=n(92901),ae=n(85501),re=n(29426),ce=n(18574),ie=n(13758);function le(e,t,n,o){var a=m.useContext(S),r=a.activeKey,c=a.onActive,i=a.onInactive,l={active:r===e};return t||(l.onMouseEnter=function(t){null===n||void 0===n||n({key:e,domEvent:t}),c(e)},l.onMouseLeave=function(t){null===o||void 0===o||o({key:e,domEvent:t}),i(e)}),l}function se(e){var t=m.useContext(S),n=t.mode,o=t.rtl,a=t.inlineIndent;if("inline"!==n)return null;return o?{paddingRight:e*a}:{paddingLeft:e*a}}function de(e){var t,n=e.icon,o=e.props,a=e.children;return null===n||!1===n?null:("function"===typeof n?t=m.createElement(n,(0,r.A)({},o)):"boolean"!==typeof n&&(t=n),t||a||null)}var ue=["item"];function fe(e){var t=e.item,n=(0,l.A)(e,ue);return Object.defineProperty(n,"item",{get:function(){return(0,v.Ay)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var pe=["title","attribute","elementRef"],ve=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],me=["active"],be=function(e){(0,ae.A)(n,e);var t=(0,re.A)(n);function n(){return(0,ne.A)(this,n),t.apply(this,arguments)}return(0,oe.A)(n,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,a=e.elementRef,r=(0,l.A)(e,pe),c=(0,ce.A)(r,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,v.Ay)(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),m.createElement(u.A.Item,(0,o.A)({},n,{title:"string"===typeof t?t:void 0},c,{ref:a}))}}]),n}(m.Component),ge=m.forwardRef((function(e,t){var n=e.style,i=e.className,s=e.eventKey,u=(e.warnKey,e.disabled),f=e.itemIcon,p=e.children,v=e.role,b=e.onMouseEnter,g=e.onMouseLeave,h=e.onClick,A=e.onKeyDown,C=e.onFocus,x=(0,l.A)(e,ve),E=y(s),w=m.useContext(S),k=w.prefixCls,O=w.onItemClick,z=w.disabled,P=w.overflowDisabled,N=w.itemIcon,M=w.selectedKeys,L=w.onActive,_=m.useContext(I)._internalRenderMenuItem,T="".concat(k,"-item"),B=m.useRef(),H=m.useRef(),D=z||u,K=(0,ie.xK)(t,H),W=R(s);var G=function(e){return{key:s,keyPath:(0,c.A)(W).reverse(),item:B.current,domEvent:e}},F=f||N,X=le(s,D,b,g),V=X.active,q=(0,l.A)(X,me),Y=M.includes(s),Q=se(W.length),U={};"option"===e.role&&(U["aria-selected"]=Y);var J=m.createElement(be,(0,o.A)({ref:B,elementRef:K,role:null===v?"none":v||"menuitem",tabIndex:u?null:-1,"data-menu-id":P&&E?null:E},x,q,U,{component:"li","aria-disabled":u,style:(0,r.A)((0,r.A)({},Q),n),className:d()(T,(0,a.A)((0,a.A)((0,a.A)({},"".concat(T,"-active"),V),"".concat(T,"-selected"),Y),"".concat(T,"-disabled"),D),i),onClick:function(e){if(!D){var t=G(e);null===h||void 0===h||h(fe(t)),O(t)}},onKeyDown:function(e){if(null===A||void 0===A||A(e),e.which===j.A.ENTER){var t=G(e);null===h||void 0===h||h(fe(t)),O(t)}},onFocus:function(e){L(s),null===C||void 0===C||C(e)}}),p,m.createElement(de,{props:(0,r.A)((0,r.A)({},e),{},{isSelected:Y}),icon:F}));return _&&(J=_(J,e,{selected:Y})),J}));function he(e,t){var n=e.eventKey,a=k(),r=R(n);return m.useEffect((function(){if(a)return a.registerPath(n,r),function(){a.unregisterPath(n,r)}}),[r]),a?null:m.createElement(ge,(0,o.A)({},e,{ref:t}))}const ye=m.forwardRef(he);var Ae=["className","children"],Ce=function(e,t){var n=e.className,a=e.children,r=(0,l.A)(e,Ae),c=m.useContext(S),i=c.prefixCls,s=c.mode,u=c.rtl;return m.createElement("ul",(0,o.A)({className:d()(i,u&&"".concat(i,"-rtl"),"".concat(i,"-sub"),"".concat(i,"-").concat("inline"===s?"inline":"vertical"),n),role:"menu"},r,{"data-menu-list":!0,ref:t}),a)},Se=m.forwardRef(Ce);Se.displayName="SubMenuList";const xe=Se;var Ee=n(62149);function we(e,t){return(0,Ee.A)(e).map((function(e,n){if(m.isValidElement(e)){var o,a,r=e.key,i=null!==(o=null===(a=e.props)||void 0===a?void 0:a.eventKey)&&void 0!==o?o:r;(null===i||void 0===i)&&(i="tmp_key-".concat([].concat((0,c.A)(t),[n]).join("-")));var l={key:i,eventKey:i};return m.cloneElement(e,l)}return e}))}var ke=n(54017),Oe={adjustX:1,adjustY:1},Re={topLeft:{points:["bl","tl"],overflow:Oe},topRight:{points:["br","tr"],overflow:Oe},bottomLeft:{points:["tl","bl"],overflow:Oe},bottomRight:{points:["tr","br"],overflow:Oe},leftTop:{points:["tr","tl"],overflow:Oe},leftBottom:{points:["br","bl"],overflow:Oe},rightTop:{points:["tl","tr"],overflow:Oe},rightBottom:{points:["bl","br"],overflow:Oe}},ze={topLeft:{points:["bl","tl"],overflow:Oe},topRight:{points:["br","tr"],overflow:Oe},bottomLeft:{points:["tl","bl"],overflow:Oe},bottomRight:{points:["tr","br"],overflow:Oe},rightTop:{points:["tr","tl"],overflow:Oe},rightBottom:{points:["br","bl"],overflow:Oe},leftTop:{points:["tl","tr"],overflow:Oe},leftBottom:{points:["bl","br"],overflow:Oe}};function Ie(e,t,n){return t||(n?n[e]||n.other:void 0)}var Pe={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Ne(e){var t=e.prefixCls,n=e.visible,o=e.children,c=e.popup,l=e.popupStyle,s=e.popupClassName,u=e.popupOffset,f=e.disabled,p=e.mode,v=e.onVisibleChange,b=m.useContext(S),g=b.getPopupContainer,h=b.rtl,y=b.subMenuOpenDelay,A=b.subMenuCloseDelay,C=b.builtinPlacements,x=b.triggerSubMenuAction,E=b.forceSubMenuRender,w=b.rootClassName,k=b.motion,O=b.defaultMotions,R=m.useState(!1),z=(0,i.A)(R,2),I=z[0],P=z[1],N=h?(0,r.A)((0,r.A)({},ze),C):(0,r.A)((0,r.A)({},Re),C),M=Pe[p],j=Ie(p,k,O),_=m.useRef(j);"inline"!==p&&(_.current=j);var T=(0,r.A)((0,r.A)({},_.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),B=m.useRef();return m.useEffect((function(){return B.current=(0,L.A)((function(){P(n)})),function(){L.A.cancel(B.current)}}),[n]),m.createElement(ke.A,{prefixCls:t,popupClassName:d()("".concat(t,"-popup"),(0,a.A)({},"".concat(t,"-rtl"),h),s,w),stretch:"horizontal"===p?"minWidth":null,getPopupContainer:g,builtinPlacements:N,popupPlacement:M,popupVisible:I,popup:c,popupStyle:l,popupAlign:u&&{offset:u},action:f?[]:[x],mouseEnterDelay:y,mouseLeaveDelay:A,onPopupVisibleChange:v,forceRender:E,popupMotion:T,fresh:!0},o)}var Me=n(7419);function je(e){var t=e.id,n=e.open,a=e.keyPath,c=e.children,l="inline",s=m.useContext(S),d=s.prefixCls,u=s.forceSubMenuRender,f=s.motion,p=s.defaultMotions,v=s.mode,b=m.useRef(!1);b.current=v===l;var g=m.useState(!b.current),h=(0,i.A)(g,2),y=h[0],A=h[1],C=!!b.current&&n;m.useEffect((function(){b.current&&A(!1)}),[v]);var E=(0,r.A)({},Ie(l,f,p));a.length>1&&(E.motionAppear=!1);var w=E.onVisibleChanged;return E.onVisibleChanged=function(e){return b.current||e||A(!0),null===w||void 0===w?void 0:w(e)},y?null:m.createElement(x,{mode:l,locked:!b.current},m.createElement(Me.Ay,(0,o.A)({visible:C},E,{forceRender:u,removeOnLeave:!1,leavedClassName:"".concat(d,"-hidden")}),(function(e){var n=e.className,o=e.style;return m.createElement(xe,{id:t,className:n,style:o},c)})))}var Le=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],_e=["active"],Te=m.forwardRef((function(e,t){var n=e.style,c=e.className,s=e.title,f=e.eventKey,p=(e.warnKey,e.disabled),v=e.internalPopupClose,b=e.children,g=e.itemIcon,h=e.expandIcon,A=e.popupClassName,C=e.popupOffset,E=e.popupStyle,w=e.onClick,k=e.onMouseEnter,O=e.onMouseLeave,P=e.onTitleClick,N=e.onTitleMouseEnter,M=e.onTitleMouseLeave,j=(0,l.A)(e,Le),L=y(f),_=m.useContext(S),T=_.prefixCls,B=_.mode,H=_.openKeys,D=_.disabled,K=_.overflowDisabled,W=_.activeKey,G=_.selectedKeys,F=_.itemIcon,X=_.expandIcon,V=_.onItemClick,q=_.onOpenChange,Y=_.onActive,Q=m.useContext(I)._internalRenderSubMenuItem,U=m.useContext(z).isSubPathKey,J=R(),$="".concat(T,"-submenu"),ee=D||p,te=m.useRef(),ne=m.useRef();var oe=null!==g&&void 0!==g?g:F,ae=null!==h&&void 0!==h?h:X,re=H.includes(f),ce=!K&&re,ie=U(G,f),ue=le(f,ee,N,M),pe=ue.active,ve=(0,l.A)(ue,_e),me=m.useState(!1),be=(0,i.A)(me,2),ge=be[0],he=be[1],ye=function(e){ee||he(e)},Ae=m.useMemo((function(){return pe||"inline"!==B&&(ge||U([W],f))}),[B,pe,W,ge,f,U]),Ce=se(J.length),Se=Z((function(e){null===w||void 0===w||w(fe(e)),V(e)})),Ee=L&&"".concat(L,"-popup"),we=m.createElement("div",(0,o.A)({role:"menuitem",style:Ce,className:"".concat($,"-title"),tabIndex:ee?null:-1,ref:te,title:"string"===typeof s?s:null,"data-menu-id":K&&L?null:L,"aria-expanded":ce,"aria-haspopup":!0,"aria-controls":Ee,"aria-disabled":ee,onClick:function(e){ee||(null===P||void 0===P||P({key:f,domEvent:e}),"inline"===B&&q(f,!re))},onFocus:function(){Y(f)}},ve),s,m.createElement(de,{icon:"horizontal"!==B?ae:void 0,props:(0,r.A)((0,r.A)({},e),{},{isOpen:ce,isSubMenu:!0})},m.createElement("i",{className:"".concat($,"-arrow")}))),ke=m.useRef(B);if("inline"!==B&&J.length>1?ke.current="vertical":ke.current=B,!K){var Oe=ke.current;we=m.createElement(Ne,{mode:Oe,prefixCls:$,visible:!v&&ce&&"inline"!==B,popupClassName:A,popupOffset:C,popupStyle:E,popup:m.createElement(x,{mode:"horizontal"===Oe?"vertical":Oe},m.createElement(xe,{id:Ee,ref:ne},b)),disabled:ee,onVisibleChange:function(e){"inline"!==B&&q(f,e)}},we)}var Re=m.createElement(u.A.Item,(0,o.A)({ref:t,role:"none"},j,{component:"li",style:n,className:d()($,"".concat($,"-").concat(B),c,(0,a.A)((0,a.A)((0,a.A)((0,a.A)({},"".concat($,"-open"),ce),"".concat($,"-active"),Ae),"".concat($,"-selected"),ie),"".concat($,"-disabled"),ee)),onMouseEnter:function(e){ye(!0),null===k||void 0===k||k({key:f,domEvent:e})},onMouseLeave:function(e){ye(!1),null===O||void 0===O||O({key:f,domEvent:e})}}),we,!K&&m.createElement(je,{id:Ee,open:ce,keyPath:J},b));return Q&&(Re=Q(Re,e,{selected:ie,active:Ae,open:ce,disabled:ee})),m.createElement(x,{onItemClick:Se,mode:"horizontal"===B?"vertical":B,itemIcon:oe,expandIcon:ae},Re)}));const Be=m.forwardRef((function(e,t){var n,a=e.eventKey,r=e.children,c=R(a),i=we(r,c),l=k();return m.useEffect((function(){if(l)return l.registerPath(a,c),function(){l.unregisterPath(a,c)}}),[c]),n=l?i:m.createElement(Te,(0,o.A)({ref:t},e),i),m.createElement(O.Provider,{value:c},n)}));var He=n(82284);function De(e){var t=e.className,n=e.style,o=m.useContext(S).prefixCls;return k()?null:m.createElement("li",{role:"separator",className:d()("".concat(o,"-item-divider"),t),style:n})}var Ke=["className","title","eventKey","children"],We=m.forwardRef((function(e,t){var n=e.className,a=e.title,r=(e.eventKey,e.children),c=(0,l.A)(e,Ke),i=m.useContext(S).prefixCls,s="".concat(i,"-item-group");return m.createElement("li",(0,o.A)({ref:t,role:"presentation"},c,{onClick:function(e){return e.stopPropagation()},className:d()(s,n)}),m.createElement("div",{role:"presentation",className:"".concat(s,"-title"),title:"string"===typeof a?a:void 0},a),m.createElement("ul",{role:"group",className:"".concat(s,"-list")},r))}));const Ge=m.forwardRef((function(e,t){var n=e.eventKey,a=we(e.children,R(n));return k()?a:m.createElement(We,(0,o.A)({ref:t},(0,ce.A)(e,["warnKey"])),a)}));var Fe=["label","children","key","type"];function Xe(e,t){var n=t.item,a=t.group,r=t.submenu,c=t.divider;return(e||[]).map((function(e,i){if(e&&"object"===(0,He.A)(e)){var s=e,d=s.label,u=s.children,f=s.key,p=s.type,v=(0,l.A)(s,Fe),b=null!==f&&void 0!==f?f:"tmp-".concat(i);return u||"group"===p?"group"===p?m.createElement(a,(0,o.A)({key:b},v,{title:d}),Xe(u,t)):m.createElement(r,(0,o.A)({key:b},v,{title:d}),Xe(u,t)):"divider"===p?m.createElement(c,(0,o.A)({key:b},v)):m.createElement(n,(0,o.A)({key:b},v),d)}return null})).filter((function(e){return e}))}function Ve(e,t,n,o){var a=e,c=(0,r.A)({divider:De,item:ye,group:Ge,submenu:Be},o);return t&&(a=Xe(t,c)),we(a,n)}var qe=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],Ye=[];var Qe=m.forwardRef((function(e,t){var n,s=e,v=s.prefixCls,h=void 0===v?"rc-menu":v,y=s.rootClassName,A=s.style,C=s.className,S=s.tabIndex,E=void 0===S?0:S,k=s.items,O=s.children,R=s.direction,P=s.id,N=s.mode,M=void 0===N?"vertical":N,j=s.inlineCollapsed,L=s.disabled,_=s.disabledOverflow,T=s.subMenuOpenDelay,B=void 0===T?.1:T,H=s.subMenuCloseDelay,D=void 0===H?.1:H,K=s.forceSubMenuRender,W=s.defaultOpenKeys,G=s.openKeys,F=s.activeKey,V=s.defaultActiveFirst,Q=s.selectable,U=void 0===Q||Q,ne=s.multiple,oe=void 0!==ne&&ne,ae=s.defaultSelectedKeys,re=s.selectedKeys,ce=s.onSelect,ie=s.onDeselect,le=s.inlineIndent,se=void 0===le?24:le,de=s.motion,ue=s.defaultMotions,pe=s.triggerSubMenuAction,ve=void 0===pe?"hover":pe,me=s.builtinPlacements,be=s.itemIcon,ge=s.expandIcon,he=s.overflowedIndicator,Ae=void 0===he?"...":he,Ce=s.overflowedIndicatorPopupClassName,Se=s.getPopupContainer,xe=s.onClick,Ee=s.onOpenChange,we=s.onKeyDown,ke=(s.openAnimation,s.openTransitionName,s._internalRenderMenuItem),Oe=s._internalRenderSubMenuItem,Re=s._internalComponents,ze=(0,l.A)(s,qe),Ie=m.useMemo((function(){return[Ve(O,k,Ye,Re),Ve(O,k,Ye,{})]}),[O,k,Re]),Pe=(0,i.A)(Ie,2),Ne=Pe[0],Me=Pe[1],je=m.useState(!1),Le=(0,i.A)(je,2),_e=Le[0],Te=Le[1],He=m.useRef(),De=function(e){var t=(0,f.A)(e,{value:e}),n=(0,i.A)(t,2),o=n[0],a=n[1];return m.useEffect((function(){te+=1;var e="".concat(ee,"-").concat(te);a("rc-menu-uuid-".concat(e))}),[]),o}(P),Ke="rtl"===R;var We=(0,f.A)(W,{value:G,postState:function(e){return e||Ye}}),Ge=(0,i.A)(We,2),Fe=Ge[0],Xe=Ge[1],Qe=function(e){function t(){Xe(e),null===Ee||void 0===Ee||Ee(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(0,b.flushSync)(t):t()},Ue=m.useState(Fe),Je=(0,i.A)(Ue,2),$e=Je[0],Ze=Je[1],et=m.useRef(!1),tt=m.useMemo((function(){return"inline"!==M&&"vertical"!==M||!j?[M,!1]:["vertical",j]}),[M,j]),nt=(0,i.A)(tt,2),ot=nt[0],at=nt[1],rt="inline"===ot,ct=m.useState(ot),it=(0,i.A)(ct,2),lt=it[0],st=it[1],dt=m.useState(at),ut=(0,i.A)(dt,2),ft=ut[0],pt=ut[1];m.useEffect((function(){st(ot),pt(at),et.current&&(rt?Xe($e):Qe(Ye))}),[ot,at]);var vt=m.useState(0),mt=(0,i.A)(vt,2),bt=mt[0],gt=mt[1],ht=bt>=Ne.length-1||"horizontal"!==lt||_;m.useEffect((function(){rt&&Ze(Fe)}),[Fe]),m.useEffect((function(){return et.current=!0,function(){et.current=!1}}),[]);var yt=$(),At=yt.registerPath,Ct=yt.unregisterPath,St=yt.refreshOverflowKeys,xt=yt.isSubPathKey,Et=yt.getKeyPath,wt=yt.getKeys,kt=yt.getSubPathKeys,Ot=m.useMemo((function(){return{registerPath:At,unregisterPath:Ct}}),[At,Ct]),Rt=m.useMemo((function(){return{isSubPathKey:xt}}),[xt]);m.useEffect((function(){St(ht?Ye:Ne.slice(bt+1).map((function(e){return e.key})))}),[bt,ht]);var zt=(0,f.A)(F||V&&(null===(n=Ne[0])||void 0===n?void 0:n.key),{value:F}),It=(0,i.A)(zt,2),Pt=It[0],Nt=It[1],Mt=Z((function(e){Nt(e)})),jt=Z((function(){Nt(void 0)}));(0,m.useImperativeHandle)(t,(function(){return{list:He.current,focus:function(e){var t,n,o=wt(),a=q(o,De),r=a.elements,c=a.key2element,i=a.element2key,l=X(He.current,r),s=null!==Pt&&void 0!==Pt?Pt:l[0]?i.get(l[0]):null===(t=Ne.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key,d=c.get(s);s&&d&&(null===d||void 0===d||null===(n=d.focus)||void 0===n||n.call(d,e))}}}));var Lt=(0,f.A)(ae||[],{value:re,postState:function(e){return Array.isArray(e)?e:null===e||void 0===e?Ye:[e]}}),_t=(0,i.A)(Lt,2),Tt=_t[0],Bt=_t[1],Ht=Z((function(e){null===xe||void 0===xe||xe(fe(e)),function(e){if(U){var t,n=e.key,o=Tt.includes(n);t=oe?o?Tt.filter((function(e){return e!==n})):[].concat((0,c.A)(Tt),[n]):[n],Bt(t);var a=(0,r.A)((0,r.A)({},e),{},{selectedKeys:t});o?null===ie||void 0===ie||ie(a):null===ce||void 0===ce||ce(a)}!oe&&Fe.length&&"inline"!==lt&&Qe(Ye)}(e)})),Dt=Z((function(e,t){var n=Fe.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==lt){var o=kt(e);n=n.filter((function(e){return!o.has(e)}))}(0,p.A)(Fe,n,!0)||Qe(n,!0)})),Kt=Y(lt,Pt,Ke,De,He,wt,Et,Nt,(function(e,t){var n=null!==t&&void 0!==t?t:!Fe.includes(e);Dt(e,n)}),we);m.useEffect((function(){Te(!0)}),[]);var Wt=m.useMemo((function(){return{_internalRenderMenuItem:ke,_internalRenderSubMenuItem:Oe}}),[ke,Oe]),Gt="horizontal"!==lt||_?Ne:Ne.map((function(e,t){return m.createElement(x,{key:e.key,overflowDisabled:t>bt},e)})),Ft=m.createElement(u.A,(0,o.A)({id:P,ref:He,prefixCls:"".concat(h,"-overflow"),component:"ul",itemComponent:ye,className:d()(h,"".concat(h,"-root"),"".concat(h,"-").concat(lt),C,(0,a.A)((0,a.A)({},"".concat(h,"-inline-collapsed"),ft),"".concat(h,"-rtl"),Ke),y),dir:R,style:A,role:"menu",tabIndex:E,data:Gt,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?Ne.slice(-t):null;return m.createElement(Be,{eventKey:J,title:Ae,disabled:ht,internalPopupClose:0===t,popupClassName:Ce},n)},maxCount:"horizontal"!==lt||_?u.A.INVALIDATE:u.A.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){gt(e)},onKeyDown:Kt},ze));return m.createElement(I.Provider,{value:Wt},m.createElement(g.Provider,{value:De},m.createElement(x,{prefixCls:h,rootClassName:y,mode:lt,openKeys:Fe,rtl:Ke,disabled:L,motion:_e?de:null,defaultMotions:_e?ue:null,activeKey:Pt,onActive:Mt,onInactive:jt,selectedKeys:Tt,inlineIndent:se,subMenuOpenDelay:B,subMenuCloseDelay:D,forceSubMenuRender:K,builtinPlacements:me,triggerSubMenuAction:ve,getPopupContainer:Se,itemIcon:be,expandIcon:ge,onItemClick:Ht,onOpenChange:Dt},m.createElement(z.Provider,{value:Rt},Ft),m.createElement("div",{style:{display:"none"},"aria-hidden":!0},m.createElement(w.Provider,{value:Ot},Me)))))}));Qe.Item=ye,Qe.SubMenu=Be,Qe.ItemGroup=Ge,Qe.Divider=De;const Ue=Qe},69944:(e,t,n)=>{n.d(t,{A:()=>L});var o=n(58168),a=n(89379),r=n(5544),c=n(53986),i=n(65043),l=n(98139),s=n.n(l),d=n(89635),u=n(52664),f=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],p=void 0;function v(e,t){var n=e.prefixCls,r=e.invalidate,l=e.item,u=e.renderItem,v=e.responsive,m=e.responsiveDisabled,b=e.registerSize,g=e.itemKey,h=e.className,y=e.style,A=e.children,C=e.display,S=e.order,x=e.component,E=void 0===x?"div":x,w=(0,c.A)(e,f),k=v&&!C;function O(e){b(g,e)}i.useEffect((function(){return function(){O(null)}}),[]);var R,z=u&&l!==p?u(l):A;r||(R={opacity:k?0:1,height:k?0:p,overflowY:k?"hidden":p,order:v?S:p,pointerEvents:k?"none":p,position:k?"absolute":p});var I={};k&&(I["aria-hidden"]=!0);var P=i.createElement(E,(0,o.A)({className:s()(!r&&n,h),style:(0,a.A)((0,a.A)({},R),y)},I,w,{ref:t}),z);return v&&(P=i.createElement(d.A,{onResize:function(e){O(e.offsetWidth)},disabled:m},P)),P}var m=i.forwardRef(v);m.displayName="Item";const b=m;var g=n(32375),h=n(97950),y=n(45818);function A(){var e=i.useRef(null);return function(t){e.current||(e.current=[],function(e){if("undefined"===typeof MessageChannel)(0,y.A)(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){(0,h.unstable_batchedUpdates)((function(){e.current.forEach((function(e){e()})),e.current=null}))}))),e.current.push(t)}}function C(e,t){var n=i.useState(t),o=(0,r.A)(n,2),a=o[0],c=o[1];return[a,(0,g.A)((function(t){e((function(){c(t)}))}))]}var S=i.createContext(null),x=["component"],E=["className"],w=["className"],k=function(e,t){var n=i.useContext(S);if(!n){var a=e.component,r=void 0===a?"div":a,l=(0,c.A)(e,x);return i.createElement(r,(0,o.A)({},l,{ref:t}))}var d=n.className,u=(0,c.A)(n,E),f=e.className,p=(0,c.A)(e,w);return i.createElement(S.Provider,{value:null},i.createElement(b,(0,o.A)({ref:t,className:s()(d,f)},u,p)))},O=i.forwardRef(k);O.displayName="RawItem";const R=O;var z=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],I="responsive",P="invalidate";function N(e){return"+ ".concat(e.length," ...")}function M(e,t){var n=e.prefixCls,l=void 0===n?"rc-overflow":n,f=e.data,p=void 0===f?[]:f,v=e.renderItem,m=e.renderRawItem,g=e.itemKey,h=e.itemWidth,y=void 0===h?10:h,x=e.ssr,E=e.style,w=e.className,k=e.maxCount,O=e.renderRest,R=e.renderRawRest,M=e.suffix,j=e.component,L=void 0===j?"div":j,_=e.itemComponent,T=e.onVisibleChange,B=(0,c.A)(e,z),H="full"===x,D=A(),K=C(D,null),W=(0,r.A)(K,2),G=W[0],F=W[1],X=G||0,V=C(D,new Map),q=(0,r.A)(V,2),Y=q[0],Q=q[1],U=C(D,0),J=(0,r.A)(U,2),$=J[0],Z=J[1],ee=C(D,0),te=(0,r.A)(ee,2),ne=te[0],oe=te[1],ae=C(D,0),re=(0,r.A)(ae,2),ce=re[0],ie=re[1],le=(0,i.useState)(null),se=(0,r.A)(le,2),de=se[0],ue=se[1],fe=(0,i.useState)(null),pe=(0,r.A)(fe,2),ve=pe[0],me=pe[1],be=i.useMemo((function(){return null===ve&&H?Number.MAX_SAFE_INTEGER:ve||0}),[ve,G]),ge=(0,i.useState)(!1),he=(0,r.A)(ge,2),ye=he[0],Ae=he[1],Ce="".concat(l,"-item"),Se=Math.max($,ne),xe=k===I,Ee=p.length&&xe,we=k===P,ke=Ee||"number"===typeof k&&p.length>k,Oe=(0,i.useMemo)((function(){var e=p;return Ee?e=null===G&&H?p:p.slice(0,Math.min(p.length,X/y)):"number"===typeof k&&(e=p.slice(0,k)),e}),[p,y,G,k,Ee]),Re=(0,i.useMemo)((function(){return Ee?p.slice(be+1):p.slice(Oe.length)}),[p,Oe,Ee,be]),ze=(0,i.useCallback)((function(e,t){var n;return"function"===typeof g?g(e):null!==(n=g&&(null===e||void 0===e?void 0:e[g]))&&void 0!==n?n:t}),[g]),Ie=(0,i.useCallback)(v||function(e){return e},[v]);function Pe(e,t,n){(ve!==e||void 0!==t&&t!==de)&&(me(e),n||(Ae(e<p.length-1),null===T||void 0===T||T(e)),void 0!==t&&ue(t))}function Ne(e,t){Q((function(n){var o=new Map(n);return null===t?o.delete(e):o.set(e,t),o}))}function Me(e){return Y.get(ze(Oe[e],e))}(0,u.A)((function(){if(X&&"number"===typeof Se&&Oe){var e=ce,t=Oe.length,n=t-1;if(!t)return void Pe(0,null);for(var o=0;o<t;o+=1){var a=Me(o);if(H&&(a=a||0),void 0===a){Pe(o-1,void 0,!0);break}if(e+=a,0===n&&e<=X||o===n-1&&e+Me(n)<=X){Pe(n,null);break}if(e+Se>X){Pe(o-1,e-a-ce+ne);break}}M&&Me(0)+ce>X&&ue(null)}}),[X,Y,ne,ce,ze,Oe]);var je=ye&&!!Re.length,Le={};null!==de&&Ee&&(Le={position:"absolute",left:de,top:0});var _e,Te={prefixCls:Ce,responsive:Ee,component:_,invalidate:we},Be=m?function(e,t){var n=ze(e,t);return i.createElement(S.Provider,{key:n,value:(0,a.A)((0,a.A)({},Te),{},{order:t,item:e,itemKey:n,registerSize:Ne,display:t<=be})},m(e,t))}:function(e,t){var n=ze(e,t);return i.createElement(b,(0,o.A)({},Te,{order:t,key:n,item:e,renderItem:Ie,itemKey:n,registerSize:Ne,display:t<=be}))},He={order:je?be:Number.MAX_SAFE_INTEGER,className:"".concat(Ce,"-rest"),registerSize:function(e,t){oe(t),Z(ne)},display:je};if(R)R&&(_e=i.createElement(S.Provider,{value:(0,a.A)((0,a.A)({},Te),He)},R(Re)));else{var De=O||N;_e=i.createElement(b,(0,o.A)({},Te,He),"function"===typeof De?De(Re):De)}var Ke=i.createElement(L,(0,o.A)({className:s()(!we&&l,w),style:E,ref:t},B),Oe.map(Be),ke?_e:null,M&&i.createElement(b,(0,o.A)({},Te,{responsive:xe,responsiveDisabled:!Ee,order:be,className:"".concat(Ce,"-suffix"),registerSize:function(e,t){ie(t)},display:!0,style:Le}),M));return xe&&(Ke=i.createElement(d.A,{onResize:function(e,t){F(t.clientWidth)},disabled:!Ee},Ke)),Ke}var j=i.forwardRef(M);j.displayName="Overflow",j.Item=R,j.RESPONSIVE=I,j.INVALIDATE=P;const L=j},58895:(e,t,n)=>{var o;n.d(t,{X:()=>b,v:()=>A});var a,r=n(90675),c=n(10467),i=n(82284),l=n(89379),s=n(97950),d=(0,l.A)({},o||(o=n.t(s,2))),u=d.version,f=d.render,p=d.unmountComponentAtNode;try{Number((u||"").split(".")[0])>=18&&(a=d.createRoot)}catch(S){}function v(e){var t=d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===(0,i.A)(t)&&(t.usingClientEntryPoint=e)}var m="__rc_react_root__";function b(e,t){a?function(e,t){v(!0);var n=t[m]||a(t);v(!1),n.render(e),t[m]=n}(e,t):function(e,t){f(e,t)}(e,t)}function g(e){return h.apply(this,arguments)}function h(){return(h=(0,c.A)((0,r.A)().mark((function e(t){return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[m])||void 0===e||e.unmount(),delete t[m]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function y(e){p(e)}function A(e){return C.apply(this,arguments)}function C(){return(C=(0,c.A)((0,r.A)().mark((function e(t){return(0,r.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===a){e.next=2;break}return e.abrupt("return",g(t));case 2:y(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}}}]);
//# sourceMappingURL=137.51edddfa.chunk.js.map