(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8644],{25414:function(){},95562:function(Ve,ge,d){"use strict";d.d(ge,{Z:function(){return ma}});var M=d(96156),W=d(22122),se=d(54549),ce=d(44545),Re=d(49101),Tt=d(94184),j=d.n(Tt),F=d(28991),k=d(28481),Se=d(90484),Ee=d(81253),t=d(67294),Pt=d(31131),$e=d(21770),Zt=d(63441),Ce=(0,t.createContext)(null),Nt=t.forwardRef(function(e,a){var o=e.prefixCls,n=e.className,r=e.style,i=e.id,l=e.active,s=e.tabKey,c=e.children;return t.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:r,className:j()(o,l&&"".concat(o,"-active"),n),ref:a},c)}),je=Nt,Rt=["key","forceRender","style","className"];function It(e){var a=e.id,o=e.activeKey,n=e.animated,r=e.tabPosition,i=e.destroyInactiveTabPane,l=t.useContext(Ce),s=l.prefixCls,c=l.tabs,g=n.tabPane,C="".concat(s,"-tabpane");return t.createElement("div",{className:j()("".concat(s,"-content-holder"))},t.createElement("div",{className:j()("".concat(s,"-content"),"".concat(s,"-content-").concat(r),(0,M.Z)({},"".concat(s,"-content-animated"),g))},c.map(function(u){var E=u.key,Z=u.forceRender,N=u.style,R=u.className,B=(0,Ee.Z)(u,Rt),L=E===o;return t.createElement(Zt.Z,(0,W.Z)({key:E,visible:L,forceRender:Z,removeOnLeave:!!i,leavedClassName:"".concat(C,"-hidden")},n.tabPaneMotion),function(O,x){var U=O.style,w=O.className;return t.createElement(je,(0,W.Z)({},B,{prefixCls:C,id:a,tabKey:E,animated:g,active:L,style:(0,F.Z)((0,F.Z)({},N),U),className:j()(R,w),ref:x}))})})))}var Fe=d(85061),He=d(48717),kt=d(66680),Ge=d(75164),Lt=d(42550),Xe={width:0,height:0,left:0,top:0};function At(e,a,o){return(0,t.useMemo)(function(){for(var n,r=new Map,i=a.get((n=e[0])===null||n===void 0?void 0:n.key)||Xe,l=i.left+i.width,s=0;sS?(P=h,I.current="x"):(P=v,I.current="y"),a(-P,-P)&&f.preventDefault()}var D=(0,t.useRef)(null);D.current={onTouchStart:x,onTouchMove:U,onTouchEnd:w,onWheel:T},t.useEffect(function(){function f(p){D.current.onTouchStart(p)}function h(p){D.current.onTouchMove(p)}function v(p){D.current.onTouchEnd(p)}function P(p){D.current.onWheel(p)}return document.addEventListener("touchmove",h,{passive:!1}),document.addEventListener("touchend",v,{passive:!1}),e.current.addEventListener("touchstart",f,{passive:!1}),e.current.addEventListener("wheel",P),function(){document.removeEventListener("touchmove",h),document.removeEventListener("touchend",v)}},[])}var Bt=d(8410);function qe(e){var a=(0,t.useState)(0),o=(0,k.Z)(a,2),n=o[0],r=o[1],i=(0,t.useRef)(0),l=(0,t.useRef)();return l.current=e,(0,Bt.o)(function(){var s;(s=l.current)===null||s===void 0||s.call(l)},[n]),function(){i.current===n&&(i.current+=1,r(i.current))}}function wt(e){var a=(0,t.useRef)([]),o=(0,t.useState)({}),n=(0,k.Z)(o,2),r=n[1],i=(0,t.useRef)(typeof e=="function"?e():e),l=qe(function(){var c=i.current;a.current.forEach(function(g){c=g(c)}),a.current=[],i.current=c,r({})});function s(c){a.current.push(c),l()}return[i.current,s]}var _e={width:0,height:0,left:0,top:0,right:0};function Dt(e,a,o,n,r,i,l){var s=l.tabs,c=l.tabPosition,g=l.rtl,C,u,E;return["top","bottom"].includes(c)?(C="width",u=g?"right":"left",E=Math.abs(o)):(C="height",u="top",E=-o),(0,t.useMemo)(function(){if(!s.length)return[0,0];for(var Z=s.length,N=Z,R=0;RE+a){N=R-1;break}}for(var L=0,O=Z-1;O>=0;O-=1){var x=e.get(s[O].key)||_e;if(x[u]b?"left":"right"})}),p=(0,k.Z)(P,2),S=p[0],G=p[1],ve=Ye(0,function(y,b){!v&&x&&x({direction:y>b?"top":"bottom"})}),_=(0,k.Z)(ve,2),H=_[0],q=_[1],fe=(0,t.useState)([0,0]),oe=(0,k.Z)(fe,2),m=oe[0],z=oe[1],Y=(0,t.useState)([0,0]),$=(0,k.Z)(Y,2),ee=$[0],de=$[1],ie=(0,t.useState)([0,0]),me=(0,k.Z)(ie,2),Ie=me[0],ke=me[1],Le=(0,t.useState)([0,0]),be=(0,k.Z)(Le,2),Ae=be[0],Me=be[1],A=wt(new Map),te=(0,k.Z)(A,2),pe=te[0],ba=te[1],Pe=At(i,pe,ee[0]),Oe=Te(m,v),he=Te(ee,v),Be=Te(Ie,v),st=Te(Ae,v),ct=Oele?le:y}var ut=(0,t.useRef)(),ha=(0,t.useState)(),dt=(0,k.Z)(ha,2),Ze=dt[0],vt=dt[1];function De(){vt(Date.now())}function ze(){window.clearTimeout(ut.current)}Ot(T,function(y,b){function K(V,re){V(function(J){var Za=we(J+re);return Za})}return ct?(v?K(G,y):K(q,b),ze(),De(),!0):!1}),(0,t.useEffect)(function(){return ze(),Ze&&(ut.current=window.setTimeout(function(){vt(0)},100)),ze},[Ze]);var ya=Dt(Pe,Q,v?S:H,he,Be,st,(0,F.Z)((0,F.Z)({},e),{},{tabs:i})),ft=(0,k.Z)(ya,2),ga=ft[0],Sa=ft[1],mt=(0,kt.Z)(function(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:C,b=Pe.get(y)||{width:0,height:0,left:0,right:0,top:0};if(v){var K=S;u?b.rightS+Q&&(K=b.right+b.width-Q):b.left<-S?K=-b.left:b.left+b.width>-S+Q&&(K=-(b.left+b.width-Q)),q(0),G(we(K))}else{var V=H;b.top<-H?V=-b.top:b.top+b.height>-H+Q&&(V=-(b.top+b.height-Q)),G(0),q(we(V))}}),Ne={};R==="top"||R==="bottom"?Ne[u?"marginRight":"marginLeft"]=B:Ne.marginTop=B;var bt=i.map(function(y,b){var K=y.key;return t.createElement(Ft,{id:c,prefixCls:r,key:K,tab:y,style:b===0?void 0:Ne,closable:y.closable,editable:Z,active:K===C,renderWrapper:L,removeAriaLabel:N==null?void 0:N.removeAriaLabel,onClick:function(re){O(K,re)},onFocus:function(){mt(K),De(),!!T.current&&(u||(T.current.scrollLeft=0),T.current.scrollTop=0)}})}),pt=function(){return ba(function(){var b=new Map;return i.forEach(function(K){var V,re=K.key,J=(V=D.current)===null||V===void 0?void 0:V.querySelector('[data-node-key="'.concat(tt(re),'"]'));J&&b.set(re,{width:J.offsetWidth,height:J.offsetHeight,left:J.offsetLeft,top:J.offsetTop})}),b})};(0,t.useEffect)(function(){pt()},[i.map(function(y){return y.key}).join("_")]);var Ke=qe(function(){var y=ue(U),b=ue(w),K=ue(I);z([y[0]-b[0]-K[0],y[1]-b[1]-K[1]]);var V=ue(h);ke(V);var re=ue(f);Me(re);var J=ue(D);de([J[0]-V[0],J[1]-V[1]]),pt()}),Ea=i.slice(0,ga),Ca=i.slice(Sa+1),ht=[].concat((0,Fe.Z)(Ea),(0,Fe.Z)(Ca)),xa=(0,t.useState)(),yt=(0,k.Z)(xa,2),Ta=yt[0],Pa=yt[1],ne=Pe.get(C),gt=(0,t.useRef)();function St(){Ge.Z.cancel(gt.current)}(0,t.useEffect)(function(){var y={};return ne&&(v?(u?y.right=ne.right:y.left=ne.left,y.width=ne.width):(y.top=ne.top,y.height=ne.height)),St(),gt.current=(0,Ge.Z)(function(){Pa(y)}),St},[ne,v,u]),(0,t.useEffect)(function(){mt()},[C,ae,le,et(ne),et(Pe),v]),(0,t.useEffect)(function(){Ke()},[u]);var Et=!!ht.length,ye="".concat(r,"-nav-wrap"),We,Ue,Ct,xt;return v?u?(Ue=S>0,We=S!==le):(We=S<0,Ue=S!==ae):(Ct=H<0,xt=H!==ae),t.createElement(He.Z,{onResize:Ke},t.createElement("div",{ref:(0,Lt.x1)(a,U),role:"tablist",className:j()("".concat(r,"-nav"),l),style:s,onKeyDown:function(){De()}},t.createElement(nt,{ref:w,position:"left",extra:E,prefixCls:r}),t.createElement("div",{className:j()(ye,(o={},(0,M.Z)(o,"".concat(ye,"-ping-left"),We),(0,M.Z)(o,"".concat(ye,"-ping-right"),Ue),(0,M.Z)(o,"".concat(ye,"-ping-top"),Ct),(0,M.Z)(o,"".concat(ye,"-ping-bottom"),xt),o)),ref:T},t.createElement(He.Z,{onResize:Ke},t.createElement("div",{ref:D,className:"".concat(r,"-nav-list"),style:{transform:"translate(".concat(S,"px, ").concat(H,"px)"),transition:Ze?"none":void 0}},bt,t.createElement(at,{ref:h,prefixCls:r,locale:N,editable:Z,style:(0,F.Z)((0,F.Z)({},bt.length===0?void 0:Ne),{},{visibility:Et?"hidden":null})}),t.createElement("div",{className:j()("".concat(r,"-ink-bar"),(0,M.Z)({},"".concat(r,"-ink-bar-animated"),g.inkBar)),style:Ta})))),t.createElement($t,(0,W.Z)({},e,{removeAriaLabel:N==null?void 0:N.removeAriaLabel,ref:f,prefixCls:r,tabs:ht,className:!Et&&pa,tabMoving:!!Ze})),t.createElement(nt,{ref:I,position:"right",extra:E,prefixCls:r})))}var ot=t.forwardRef(Ht),Gt=["renderTabBar"],Xt=["label","key"];function Yt(e){var a=e.renderTabBar,o=(0,Ee.Z)(e,Gt),n=t.useContext(Ce),r=n.tabs;if(a){var i=(0,F.Z)((0,F.Z)({},o),{},{panes:r.map(function(l){var s=l.label,c=l.key,g=(0,Ee.Z)(l,Xt);return t.createElement(je,(0,W.Z)({tab:s,key:c,tabKey:c},g))})});return a(i,ot)}return t.createElement(ot,o)}var Na=d(80334);function Qt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},a;return e===!1?a={inkBar:!1,tabPane:!1}:e===!0?a={inkBar:!0,tabPane:!1}:a=(0,F.Z)({inkBar:!0},(0,Se.Z)(e)==="object"?e:{}),a.tabPaneMotion&&a.tabPane===void 0&&(a.tabPane=!0),!a.tabPaneMotion&&a.tabPane&&(a.tabPane=!1),a}var Jt=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName"],it=0;function qt(e,a){var o,n=e.id,r=e.prefixCls,i=r===void 0?"rc-tabs":r,l=e.className,s=e.items,c=e.direction,g=e.activeKey,C=e.defaultActiveKey,u=e.editable,E=e.animated,Z=e.tabPosition,N=Z===void 0?"top":Z,R=e.tabBarGutter,B=e.tabBarStyle,L=e.tabBarExtraContent,O=e.locale,x=e.moreIcon,U=e.moreTransitionName,w=e.destroyInactiveTabPane,I=e.renderTabBar,T=e.onChange,D=e.onTabClick,f=e.onTabScroll,h=e.getPopupContainer,v=e.popupClassName,P=(0,Ee.Z)(e,Jt),p=t.useMemo(function(){return(s||[]).filter(function(A){return A&&(0,Se.Z)(A)==="object"&&"key"in A})},[s]),S=c==="rtl",G=Qt(E),ve=(0,t.useState)(!1),_=(0,k.Z)(ve,2),H=_[0],q=_[1];(0,t.useEffect)(function(){q((0,Pt.Z)())},[]);var fe=(0,$e.Z)(function(){var A;return(A=p[0])===null||A===void 0?void 0:A.key},{value:g,defaultValue:C}),oe=(0,k.Z)(fe,2),m=oe[0],z=oe[1],Y=(0,t.useState)(function(){return p.findIndex(function(A){return A.key===m})}),$=(0,k.Z)(Y,2),ee=$[0],de=$[1];(0,t.useEffect)(function(){var A=p.findIndex(function(pe){return pe.key===m});if(A===-1){var te;A=Math.max(0,Math.min(ee,p.length-1)),z((te=p[A])===null||te===void 0?void 0:te.key)}de(A)},[p.map(function(A){return A.key}).join("_"),m,ee]);var ie=(0,$e.Z)(null,{value:n}),me=(0,k.Z)(ie,2),Ie=me[0],ke=me[1];(0,t.useEffect)(function(){n||(ke("rc-tabs-".concat(it)),it+=1)},[]);function Le(A,te){D==null||D(A,te);var pe=A!==m;z(A),pe&&(T==null||T(A))}var be={id:Ie,activeKey:m,animated:G,tabPosition:N,rtl:S,mobile:H},Ae,Me=(0,F.Z)((0,F.Z)({},be),{},{editable:u,locale:O,moreIcon:x,moreTransitionName:U,tabBarGutter:R,onTabClick:Le,onTabScroll:f,extra:L,style:B,panes:null,getPopupContainer:h,popupClassName:v});return t.createElement(Ce.Provider,{value:{tabs:p,prefixCls:i}},t.createElement("div",(0,W.Z)({ref:a,id:n,className:j()(i,"".concat(i,"-").concat(N),(o={},(0,M.Z)(o,"".concat(i,"-mobile"),H),(0,M.Z)(o,"".concat(i,"-editable"),u),(0,M.Z)(o,"".concat(i,"-rtl"),S),o),l)},P),Ae,t.createElement(Yt,(0,W.Z)({},Me,{renderTabBar:I})),t.createElement(It,(0,W.Z)({destroyInactiveTabPane:w},be,{animated:G}))))}var _t=t.forwardRef(qt),ea=_t,ta=ea,aa=d(53124),na=d(97647),ra=d(33603),oa={motionAppear:!1,motionEnter:!0,motionLeave:!0};function ia(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},o;return a===!1?o={inkBar:!1,tabPane:!1}:a===!0?o={inkBar:!0,tabPane:!0}:o=(0,W.Z)({inkBar:!0},(0,Se.Z)(a)==="object"?a:{}),o.tabPane&&(o.tabPaneMotion=(0,W.Z)((0,W.Z)({},oa),{motionName:(0,ra.mL)(e,"switch")})),o}var la=d(50344),sa=function(e,a){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&a.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r