1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[262],{1442:(t,e,n)=>{n.d(e,{A:()=>tg});var a=n(14232),o=n(21255),c=n(14980),r=n(54351);let i={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 l=n(45522),d=a.forwardRef(function(t,e){return a.createElement(l.A,(0,r.A)({},t,{ref:e,icon:i}))}),s=n(58103),u=n.n(s),b=n(83736),f=n(11300),p=n(21529),v=n(87791),m=n(5686),g=n(25450),h=n(20173);let y=(0,a.createContext)(null);var k=n(82038),x=n(77068),S=n(17227),w=n(30072),A=n(17412);let _=function(t){var e=t.activeTabOffset,n=t.horizontal,o=t.rtl,c=t.indicator,r=void 0===c?{}:c,i=r.size,l=r.align,d=void 0===l?"center":l,s=(0,a.useState)(),u=(0,p.A)(s,2),b=u[0],f=u[1],v=(0,a.useRef)(),m=a.useCallback(function(t){return"function"==typeof i?i(t):"number"==typeof i?i:t},[i]);function g(){A.A.cancel(v.current)}return(0,a.useEffect)(function(){var t={};if(e)if(n){t.width=m(e.width);var a=o?"right":"left";"start"===d&&(t[a]=e[a]),"center"===d&&(t[a]=e[a]+e.width/2,t.transform=o?"translateX(50%)":"translateX(-50%)"),"end"===d&&(t[a]=e[a]+e.width,t.transform="translateX(-100%)")}else t.height=m(e.height),"start"===d&&(t.top=e.top),"center"===d&&(t.top=e.top+e.height/2,t.transform="translateY(-50%)"),"end"===d&&(t.top=e.top+e.height,t.transform="translateY(-100%)");return g(),v.current=(0,A.A)(function(){b&&t&&Object.keys(t).every(function(e){var n=t[e],a=b[e];return"number"==typeof n&&"number"==typeof a?Math.round(n)===Math.round(a):n===a})||f(t)}),g},[JSON.stringify(e),n,o,d,m]),{style:b}};var E={width:0,height:0,left:0,top:0};function O(t,e){var n=a.useRef(t),o=a.useState({}),c=(0,p.A)(o,2)[1];return[n.current,function(t){var a="function"==typeof t?t(n.current):t;a!==n.current&&e(a,n.current),n.current=a,c({})}]}var C=n(18682);function R(t){var e=(0,a.useState)(0),n=(0,p.A)(e,2),o=n[0],c=n[1],r=(0,a.useRef)(0),i=(0,a.useRef)();return i.current=t,(0,C.o)(function(){var t;null==(t=i.current)||t.call(i)},[o]),function(){r.current===o&&(r.current+=1,c(r.current))}}var P={width:0,height:0,left:0,top:0,right:0};function T(t){var e;return t instanceof Map?(e={},t.forEach(function(t,n){e[n]=t})):e=t,JSON.stringify(e)}function j(t){return String(t).replace(/"/g,"TABS_DQ")}function I(t,e,n,a){return!!n&&!a&&!1!==t&&(void 0!==t||!1!==e&&null!==e)}var L=a.forwardRef(function(t,e){var n=t.prefixCls,o=t.editable,c=t.locale,r=t.style;return o&&!1!==o.showAdd?a.createElement("button",{ref:e,type:"button",className:"".concat(n,"-nav-add"),style:r,"aria-label":(null==c?void 0:c.addAriaLabel)||"Add tab",onClick:function(t){o.onEdit("add",{event:t})}},o.addIcon||"+"):null}),z=a.forwardRef(function(t,e){var n,o=t.position,c=t.prefixCls,r=t.extra;if(!r)return null;var i={};return"object"!==(0,v.A)(r)||a.isValidElement(r)?i.right=r:i=r,"right"===o&&(n=i.right),"left"===o&&(n=i.left),n?a.createElement("div",{className:"".concat(c,"-extra-content"),ref:e},n):null}),M=n(85650),N=n(7608),B=n(22559),D=a.forwardRef(function(t,e){var n=t.prefixCls,o=t.id,c=t.tabs,i=t.locale,l=t.mobile,d=t.more,s=void 0===d?{}:d,f=t.style,v=t.className,m=t.editable,g=t.tabBarGutter,h=t.rtl,y=t.removeAriaLabel,k=t.onTabClick,x=t.getPopupContainer,S=t.popupClassName,w=(0,a.useState)(!1),A=(0,p.A)(w,2),_=A[0],E=A[1],O=(0,a.useState)(null),C=(0,p.A)(O,2),R=C[0],P=C[1],T=s.icon,j="".concat(o,"-more-popup"),z="".concat(n,"-dropdown"),D=null!==R?"".concat(j,"-").concat(R):null,G=null==i?void 0:i.dropdownAriaLabel,H=a.createElement(N.Ay,{onClick:function(t){k(t.key,t.domEvent),E(!1)},prefixCls:"".concat(z,"-menu"),id:j,tabIndex:-1,role:"listbox","aria-activedescendant":D,selectedKeys:[R],"aria-label":void 0!==G?G:"expanded dropdown"},c.map(function(t){var e=t.closable,n=t.disabled,c=t.closeIcon,r=t.key,i=t.label,l=I(e,c,m,n);return a.createElement(N.Dr,{key:r,id:"".concat(j,"-").concat(r),role:"option","aria-controls":o&&"".concat(o,"-panel-").concat(r),disabled:n},a.createElement("span",null,i),l&&a.createElement("button",{type:"button","aria-label":y||"remove",tabIndex:0,className:"".concat(z,"-menu-item-remove"),onClick:function(t){t.stopPropagation(),t.preventDefault(),t.stopPropagation(),m.onEdit("remove",{key:r,event:t})}},c||m.removeIcon||"\xd7"))}));function W(t){for(var e=c.filter(function(t){return!t.disabled}),n=e.findIndex(function(t){return t.key===R})||0,a=e.length,o=0;o<a;o+=1){var r=e[n=(n+t+a)%a];if(!r.disabled)return void P(r.key)}}(0,a.useEffect)(function(){var t=document.getElementById(D);t&&t.scrollIntoView&&t.scrollIntoView(!1)},[R]),(0,a.useEffect)(function(){_||P(null)},[_]);var X=(0,b.A)({},h?"marginRight":"marginLeft",g);c.length||(X.visibility="hidden",X.order=1);var K=u()((0,b.A)({},"".concat(z,"-rtl"),h)),q=l?null:a.createElement(M.A,(0,r.A)({prefixCls:z,overlay:H,visible:!!c.length&&_,onVisibleChange:E,overlayClassName:u()(K,S),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:x},s),a.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:X,"aria-haspopup":"listbox","aria-controls":j,id:"".concat(o,"-more"),"aria-expanded":_,onKeyDown:function(t){var e=t.which;if(!_){[B.A.DOWN,B.A.SPACE,B.A.ENTER].includes(e)&&(E(!0),t.preventDefault());return}switch(e){case B.A.UP:W(-1),t.preventDefault();break;case B.A.DOWN:W(1),t.preventDefault();break;case B.A.ESC:E(!1);break;case B.A.SPACE:case B.A.ENTER:null!==R&&k(R,t)}}},void 0===T?"More":T));return a.createElement("div",{className:u()("".concat(n,"-nav-operations"),v),style:f,ref:e},q,a.createElement(L,{prefixCls:n,locale:i,editable:m}))});let G=a.memo(D,function(t,e){return e.tabMoving}),H=function(t){var e=t.prefixCls,n=t.id,o=t.active,c=t.focus,r=t.tab,i=r.key,l=r.label,d=r.disabled,s=r.closeIcon,f=r.icon,p=t.closable,v=t.renderWrapper,m=t.removeAriaLabel,g=t.editable,h=t.onClick,y=t.onFocus,k=t.onBlur,x=t.onKeyDown,S=t.onMouseDown,w=t.onMouseUp,A=t.style,_=t.tabCount,E=t.currentPosition,O="".concat(e,"-tab"),C=I(p,s,g,d);function R(t){d||h(t)}var P=a.useMemo(function(){return f&&"string"==typeof l?a.createElement("span",null,l):l},[l,f]),T=a.useRef(null);a.useEffect(function(){c&&T.current&&T.current.focus()},[c]);var L=a.createElement("div",{key:i,"data-node-key":j(i),className:u()(O,(0,b.A)((0,b.A)((0,b.A)((0,b.A)({},"".concat(O,"-with-remove"),C),"".concat(O,"-active"),o),"".concat(O,"-disabled"),d),"".concat(O,"-focus"),c)),style:A,onClick:R},a.createElement("div",{ref:T,role:"tab","aria-selected":o,id:n&&"".concat(n,"-tab-").concat(i),className:"".concat(O,"-btn"),"aria-controls":n&&"".concat(n,"-panel-").concat(i),"aria-disabled":d,tabIndex:d?null:o?0:-1,onClick:function(t){t.stopPropagation(),R(t)},onKeyDown:x,onMouseDown:S,onMouseUp:w,onFocus:y,onBlur:k},c&&a.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}
1},"Tab ".concat(E," of ").concat(_)),f&&a.createElement("span",{className:"".concat(O,"-icon")},f),l&&P),C&&a.createElement("button",{type:"button",role:"tab","aria-label":m||"remove",tabIndex:o?0:-1,className:"".concat(O,"-remove"),onClick:function(t){t.stopPropagation(),t.preventDefault(),t.stopPropagation(),g.onEdit("remove",{key:i,event:t})}},s||g.removeIcon||"\xd7"));return v?v(L):L};var W=function(t,e){var n=t.offsetWidth,a=t.offsetHeight,o=t.offsetTop,c=t.offsetLeft,r=t.getBoundingClientRect(),i=r.width,l=r.height,d=r.left,s=r.top;return 1>Math.abs(i-n)?[i,l,d-e.left,s-e.top]:[n,a,c,o]},X=function(t){var e=t.current||{},n=e.offsetWidth,a=void 0===n?0:n,o=e.offsetHeight;if(t.current){var c=t.current.getBoundingClientRect(),r=c.width,i=c.height;if(1>Math.abs(r-a))return[r,i]}return[a,void 0===o?0:o]},K=function(t,e){return t[+!e]},q=a.forwardRef(function(t,e){var n,o,c,i,l,d,s,v,m,g,h,A,C,M,N,B,D,q,F,V,Y,Q,U,J,Z,$,tt,te,tn,ta,to,tc,tr,ti,tl,td,ts,tu,tb,tf=t.className,tp=t.style,tv=t.id,tm=t.animated,tg=t.activeKey,th=t.rtl,ty=t.extra,tk=t.editable,tx=t.locale,tS=t.tabPosition,tw=t.tabBarGutter,tA=t.children,t_=t.onTabClick,tE=t.onTabScroll,tO=t.indicator,tC=a.useContext(y),tR=tC.prefixCls,tP=tC.tabs,tT=(0,a.useRef)(null),tj=(0,a.useRef)(null),tI=(0,a.useRef)(null),tL=(0,a.useRef)(null),tz=(0,a.useRef)(null),tM=(0,a.useRef)(null),tN=(0,a.useRef)(null),tB="top"===tS||"bottom"===tS,tD=O(0,function(t,e){tB&&tE&&tE({direction:t>
1e?"left":"right"})}),tG=(0,p.A)(tD,2),tH=tG[0],tW=tG[1],tX=O(0,function(t,e){!tB&&tE&&tE({direction:t>e?"top":"bottom"})}),tK=(0,p.A)(tX,2),tq=tK[0],tF=tK[1],tV=(0,a.useState)([0,0]),tY=(0,p.A)(tV,2),tQ=tY[0],tU=tY[1],tJ=(0,a.useState)([0,0]),tZ=(0,p.A)(tJ,2),t$=tZ[0],t0=tZ[1],t1=(0,a.useState)([0,0]),t2=(0,p.A)(t1,2),t8=t2[0],t5=t2[1],t4=(0,a.useState)([0,0]),t6=(0,p.A)(t4,2),t3=t6[0],t9=t6[1],t7=(n=new Map,o=(0,a.useRef)([]),c=(0,a.useState)({}),i=(0,p.A)(c,2)[1],l=(0,a.useRef)("function"==typeof n?n():n),d=R(function(){var t=l.current;o.current.forEach(function(e){t=e(t)}),o.current=[],l.current=t,i({})}),[l.current,function(t){o.current.push(t),d()}]),et=(0,p.A)(t7,2),ee=et[0],en=et[1],ea=(s=t$[0],(0,a.useMemo)(function(){for(var t=new Map,e=ee.get(null==(o=tP[0])?void 0:o.key)||E,n=e.left+e.width,a=0;a<tP.length;a+=1){var o,c,r=tP[a].key,i=ee.get(r);i||(i=ee.get(null==(c=tP[a-1])?void 0:c.key)||E);var l=t.get(r)||(0,f.A)({},i);l.right=n-l.left-l.width,t.set(r,l)}return t},[tP.map(function(t){return t.key}).join("_"),ee,s])),eo=K(tQ,tB),ec=K(t$,tB),er=K(t8,tB),ei=K(t3,tB),el=Math.floor(eo)<Math.floor(ec+er),ed=el?eo-ei:eo-er,es="".concat(tR,"-nav-operations-hidden"),eu=0,eb=0;function ef(t){return t<eu?eu:t>eb?eb:t}tB&&th?(eu=0,eb=Math.max(0,ec-ed)):(eu=Math.min(0,ed-ec),eb=0);var ep=(0,a.useRef)(null),ev=(0,a.useState)(),em=(0,p.A)(ev,2),eg=em[0],eh=em[1];function ey(){eh(Date.now())}function ek(){ep.current&&clearTimeout(ep.current)}v=function(t,e){function n(t,e){t(function(t){return ef(t+e)})}return!!el&&(tB?n(tW,t):n(tF,e),ek(),ey(),!0)},m=(0,a.useState)(),h=(g=(0,p.A)(m,2))[0],A=g[1],C=(0,a.useState)(0),N=(M=(0,p.A)(C,2))[0],B=M[1],D=(0,a.useState)(0),F=(q=(0,p.A)(D,2))[0],V=q[1],Y=(0,a.useState)(),U=(Q=(0,p.A)(Y,2))[0],J=Q[1],Z=(0,a.useRef)(),$=(0,a.useRef)(),(tt=(0,a.useRef)(null)).current={onTouchStart:function(t){var e=t.touches[0];A({x:e.screenX,y:e.screenY}),window.clearInterval(Z.current)},onTouchMove:function(t){if(h){var e=t.touches[0],n=e.screenX,a=e.screenY;A({x:n,y:a});var o=n-h.x,c=a-h.y;v(o,c);var r=Date.now();B(r),V(r-N),J({x:o,y:c})}},onTouchEnd:function(){if(h&&(A(null),J(null),U)){var t=U.x/F,e=U.y/F;if(!(.1>Math.max(Math.abs(t),Math.abs(e)))){var n=t,a=e;Z.current=window.setInterval(function(){if(.01>Math.abs(n)&&.01>Math.abs(a))return void window.clearInterval(Z.current);n*=.9046104802746175,a*=.9046104802746175,v(20*n,20*a)},20)}}},onWheel:function(t){var e=t.deltaX,n=t.deltaY,a=0,o=Math.abs(e),c=Math.abs(n);o===c?a="x"===$.current?e:n:o>c?(a=e,$.current="x"):(a=n,$.current="y"),v(-a,-a)&&t.preventDefault()}},a.useEffect(function(){function t(t){tt.current.onTouchMove(t)}function e(t){tt.current.onTouchEnd(t)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",e,{passive:!0}),tL.current.addEventListener("touchstart",function(t){tt.current.onTouchStart(t)},{passive:!0}),tL.current.addEventListener("wheel",function(t){tt.current.onWheel(t)},{passive:!1}),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",e)}},[]),(0,a.useEffect)(function(){return ek(),eg&&(ep.current=setTimeout(function(){eh(0)},100)),ek},[eg]);var ex=(te=tB?tH:tq,tr=(tn=(0,f.A)((0,f.A)({},t),{},{tabs:tP})).tabs,ti=tn.tabPosition,tl=tn.rtl,["top","bottom"].includes(ti)?(ta="width",to=tl?"right":"left",tc=Math.abs(te)):(ta="height",to="top",tc=-te),(0,a.useMemo)(function(){if(!tr.length)return[0,0];for(var t=tr.length,e=t,n=0;n<t;n+=1){var a=ea.get(tr[n].key)||P;if(Math.floor(a[to]+a[ta])>Math.floor(tc+ed)){e=n-1;break}}for(var o=0,c=t-1;c>=0;c-=1)if((ea.get(tr[c].key)||P)[to]<tc){o=c+1;break}return o>e?[0,-1]:[o,e]},[ea,ed,ec,er,ei,tc,ti,tr.map(function(t){return t.key}).join("_"),tl])),eS=(0,p.A)(ex,2),ew=eS[0],eA=eS[1],e_=(0,S.A)(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tg,e=ea.get(t)||{width:0,height:0,left:0,right:0,top:0};if(tB){var n=tH;th?e.right<tH?n=e.right:e.right+e.width>tH+ed&&(n=e.right+e.width-ed):e.left<-tH?n=-e.left:e.left+e.width>-tH+ed&&(n=-(e.left+e.width-ed)),tF(0),tW(ef(n))}else{var a=tq;e.top<-tq?a=-e.top:e.top+e.height>-tq+ed&&(a=-(e.top+e.height-ed)),tW(0),tF(ef(a))}}),eE=(0,a.useState)(),eO=(0,p.A)(eE,2),eC=eO[0],eR=eO[1],eP=(0,a.useState)(!1),eT=(0,p.A)(eP,2),ej=eT[0],eI=eT[1],eL=tP.filter(function(t){return!t.disabled}).map(function(t){return t.key}),ez=function(t){var e=eL.indexOf(eC||tg),n=eL.length;eR(eL[(e+t+n)%n])},eM=function(t,e){var n=eL.indexOf(t),a=tP.find(function(e){return e.key===t});I(null==a?void 0:a.closable,null==a?void 0:a.closeIcon,tk,null==a?void 0:a.disabled)&&(e.preventDefault(),e.stopPropagation(),tk.onEdit("remove",{key:t,event:e}),n===eL.length-1?ez(-1):ez(1))},eN=function(t,e){eI(!0),1===e.button&&eM(t,e)},eB=function(t){var e=t.code,n=th&&tB,a=eL[0],o=eL[eL.length-1];switch(e){case"ArrowLeft":tB&&ez(n?1:-1);break;case"ArrowRight":tB&&ez(n?-1:1);break;case"ArrowUp":t.preventDefault(),tB||ez(-1);break;case"ArrowDown":t.preventDefault(),tB||ez(1);break;case"Home":t.preventDefault(),eR(a);break;case"End":t.preventDefault(),eR(o);break;case"Enter":case"Space":t.preventDefault(),t_(null!=eC?eC:tg,t);break;case"Backspace":case"Delete":eM(eC,t)}},eD={};tB?eD[th?"marginRight":"marginLeft"]=tw:eD.marginTop=tw;var eG=tP.map(function(t,e){var n=t.key;return a.createElement(H,{id:tv,prefixCls:tR,key:n,tab:t,style:0===e?void 0:eD,closable:t.closable,editable:tk,active:n===tg,focus:n===eC,renderWrapper:tA,removeAriaLabel:null==tx?void 0:tx.removeAriaLabel,tabCount:eL.length,currentPosition:e+1,onClick:function(t){t_(n,t)},onKeyDown:eB,onFocus:function(){ej||eR(n),e_(n),ey(),tL.current&&(th||(tL.current.scrollLeft=0),tL.current.scrollTop=0)},onBlur:function(){eR(void 0)},onMouseDown:function(t){return eN(n,t)},onMouseUp:function(){eI(!1)}})}),eH=function(){return en(function(){var t,e=new Map,n=null==(t=tz.current)?void 0:t.getBoundingClientRect();return tP.forEach(function(t){var a,o=t.key,c=null==(a=tz.current)?void 0:a.querySelector('[data-node-key="'.concat(j(o),'"]'));if(c){var r=W(c,n),i=(0,p.A)(r,4),l=i[0],d=i[1],s=i[2],u=i[3];e.set(o,{width:l,height:d,left:s,top:u})}}),e})};(0,a.useEffect)(function(){eH()},[tP.map(function(t){return t.key}).join("_")]);var eW=R(function(){var t=X(tT),e=X(tj),n=X(tI);tU([t[0]-e[0]-n[0],t[1]-e[1]-n[1]]);var a=X(tN);t5(a),t9(X(tM));var o=X(tz);t0([o[0]-a[0],o[1]-a[1]]),eH()}),eX=tP.slice(0,ew),eK=tP.slice(eA+1),eq=[].concat((0,k.A)(eX),(0,k.A)(eK
1)),eF=ea.get(tg),eV=_({activeTabOffset:eF,horizontal:tB,indicator:tO,rtl:th}).style;(0,a.useEffect)(function(){e_()},[tg,eu,eb,T(eF),T(ea),tB]),(0,a.useEffect)(function(){eW()},[th]);var eY=!!eq.length,eQ="".concat(tR,"-nav-wrap");return tB?th?(ts=tH>0,td=tH!==eb):(td=tH<0,ts=tH!==eu):(tu=tq<0,tb=tq!==eu),a.createElement(x.A,{onResize:eW},a.createElement("div",{ref:(0,w.xK)(e,tT),role:"tablist","aria-orientation":tB?"horizontal":"vertical",className:u()("".concat(tR,"-nav"),tf),style:tp,onKeyDown:function(){ey()}},a.createElement(z,{ref:tj,position:"left",extra:ty,prefixCls:tR}),a.createElement(x.A,{onResize:eW},a.createElement("div",{className:u()(eQ,(0,b.A)((0,b.A)((0,b.A)((0,b.A)({},"".concat(eQ,"-ping-left"),td),"".concat(eQ,"-ping-right"),ts),"".concat(eQ,"-ping-top"),tu),"".concat(eQ,"-ping-bottom"),tb)),ref:tL},a.createElement(x.A,{onResize:eW},a.createElement("div",{ref:tz,className:"".concat(tR,"-nav-list"),style:{transform:"translate(".concat(tH,"px, ").concat(tq,"px)"),transition:eg?"none":void 0}},eG,a.createElement(L,{ref:tN,prefixCls:tR,locale:tx,editable:tk,style:(0,f.A)((0,f.A)({},0===eG.length?void 0:eD),{},{visibility:eY?"hidden":null})}),a.createElement("div",{className:u()("".concat(tR,"-ink-bar"),(0,b.A)({},"".concat(tR,"-ink-bar-animated"),tm.inkBar)),style:eV}))))),a.createElement(G,(0,r.A)({},t,{removeAriaLabel:null==tx?void 0:tx.removeAriaLabel,ref:tM,prefixCls:tR,tabs:eq,className:!eY&&es,tabMoving:!!eg})),a.createElement(z,{ref:tI,position:"right",extra:ty,prefixCls:tR})))}),F=a.forwardRef(function(t,e){var n=t.prefixCls,o=t.className,c=t.style,r=t.id,i=t.active,l=t.tabKey,d=t.children;return a.createElement("div",{id:r&&"".concat(r,"-panel-").concat(l),role:"tabpanel",tabIndex:i?0:-1,"aria-labelledby":r&&"".concat(r,"-tab-").concat(l),"aria-hidden":!i,style:c,className:u()(n,i&&"".concat(n,"-active"),o),ref:e},d)}),V=["renderTabBar"],Y=["label","key"];let Q=function(t){var e=t.renderTabBar,n=(0,m.A)(t,V),o=a.useContext(y).tabs;return e?e((0,f.A)((0,f.A)({},n),{},{panes:o.map(function(t){var e=t.label,n=t.key,o=(0,m.A)(t,Y);return a.createElement(F,(0,r.A)({tab:e,key:n,tabKey:n},o))})}),q):a.createElement(q,n)};var U=n(98600),J=["key","forceRender","style","className","destroyInactiveTabPane"];let Z=function(t){var e=t.id,n=t.activeKey,o=t.animated,c=t.tabPosition,i=t.destroyInactiveTabPane,l=a.useContext(y),d=l.prefixCls,s=l.tabs,p=o.tabPane,v="".concat(d,"-tabpane");return a.createElement("div",{className:u()("".concat(d,"-content-holder"))},a.createElement("div",{className:u()("".concat(d,"-content"),"".concat(d,"-content-").concat(c),(0,b.A)({},"".concat(d,"-content-animated"),p))},s.map(function(t){var c=t.key,l=t.forceRender,d=t.style,s=t.className,b=t.destroyInactiveTabPane,g=(0,m.A)(t,J),h=c===n;return a.createElement(U.default,(0,r.A)({key:c,visible:h,forceRender:l,removeOnLeave:!!(i||b),leavedClassName:"".concat(v,"-hidden")},o.tabPaneMotion),function(t,n){var o=t.style,i=t.className;return a.createElement(F,(0,r.A)({},g,{prefixCls:v,id:e,tabKey:c,animated:p,active:h,style:(0,f.A)((0,f.A)({},d),o),className:u()(s,i),ref:n}))})})))};n(46949);var $=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],tt=0,te=a.forwardRef(function(t,e){var n=t.id,o=t.prefixCls,c=void 0===o?"rc-tabs":o,i=t.className,l=t.items,d=t.direction,s=t.activeKey,k=t.defaultActiveKey,x=t.editable,S=t.animated,w=t.tabPosition,A=void 0===w?"top":w,_=t.tabBarGutter,E=t.tabBarStyle,O=t.tabBarExtraContent,C=t.locale,R=t.more,P=t.destroyInactiveTabPane,T=t.renderTabBar,j=t.onChange,I=t.onTabClick,L=t.onTabScroll,z=t.getPopupContainer,M=t.popupClassName,N=t.indicator,B=(0,m.A)(t,$),D=a.useMemo(function(){return(l||[]).filter(function(t){return t&&"object"===(0,v.A)(t)&&"key"in t})},[l]),G="rtl"===d,H=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(t=!1===e?{inkBar:!1,tabPane:!1}:!0===e?{inkBar:!0,tabPane:!1}:(0,f.A)({inkBar:!0},"object"===(0,v.A)(e)?e:{})).tabPaneMotion&&void 0===t.tabPane&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}(S),W=(0,a.useState)(!1),X=(0,p.A)(W,2),K=X[0],q=X[1];(0,a.useEffect)(function(){q((0,h.A)())},[]);var F=(0,g.A)(function(){var t;return null==(t=D[0])?void 0:t.key},{value:s,defaultValue:k}),V=(0,p.A)(F,2),Y=V[0],U=V[1],J=(0,a.useState)(function(){return D.findIndex(function(t){return t.key===Y})}),te=(0,p.A)(J,2),tn=te[0],ta=te[1];(0,a.useEffect)(function(){var t,e=D.findIndex(function(t){return t.key===Y});-1===e&&(e=Math.max(0,Math.min(tn,D.length-1)),U(null==(t=D[e])?void 0:t.key)),ta(e)},[D.map(function(t){return t.key}).join("_"),Y,tn]);var to=(0,g.A)(null,{value:n}),tc=(0,p.A)(to,2),tr=tc[0],ti=tc[1];(0,a.useEffect)(function(){n||(ti("rc-tabs-".concat(tt)),tt+=1)},[]);var tl={id:tr,activeKey:Y,animated:H,tabPosition:A,rtl:G,mobile:K},td=(0,f.A)((0,f.A)({},tl),{},{editable:x,locale:C,more:R,tabBarGutter:_,onTabClick:function(t,e){null==I||I(t,e);var n=t!==Y;U(t),n&&(null==j||j(t))},onTabScroll:L,extra:O,style:E,panes:null,getPopupContainer:z,popupClassName:M,indicator:N});return a.createElement(y.Provider,{value:{tabs:D,prefixCls:c}},a.createElement("div",(0,r.A)({ref:e,id:n,className:u()(c,"".concat(c,"-").concat(A),(0,b.A)((0,b.A)((0,b.A)({},"".concat(c,"-mobile"),K),"".concat(c,"-editable"),x),"".concat(c,"-rtl"),G),i)},B),a.createElement(Q,(0,r.A)({},td,{renderTabBar:T})),a.createElement(Z,(0,r.A)({destroyInactiveTabPane:P},tl,{animated:H}))))}),tn=n(28580),ta=n(35453),to=n(81034),tc=n(67348);let tr={motionAppear:!1,motionEnter:!0,motionLeave:!0};var ti=n(11190),tl=function(t,e){var n={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&0>e.indexOf(a)&&(n[a]=t[a]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,a=Object.getOwnPropertySymbols(t);o<a.length;o++)0>e.indexOf(a[o])&&Object.prototype.propertyIsEnumerable.call(t,a[o])&&(n[a[o]]=t[a[o]]);return n},td=n(55523),ts=n(47538),tu=n(88809),tb=n(15956),tf=n(9726);let tp=(0,tu.OF)("Tabs",t=>{let e=(0,tb.mergeToken)(t,{tabsCardPadding:t.cardPadding,dropdownEdgeChildVerticalPadding:t.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:"0 0 0 ".concat((0,td.unit)(t.horizontalItemGutter)),tabsHorizontalItemMarginRTL:"0 0 0 ".concat((0,td.unit)(t.horizontalItemGutter))});return[(t=>{let{componentCls:e,cardPaddingSM:n,cardPaddingLG:a,cardHeightSM:o,cardHeightLG:c,horizontalItemPaddingSM:r,horizontalItemPaddingLG:i}=t;return{[e]:{"&-small":{["> ".concat(e,"-nav")]:{["".concat(e,"-tab")]:{padding:r,fontSize:t.titleFontSizeSM}}},"&-large":{["> ".concat(e,"-nav")]:{["".concat(e,"-tab")]:{padding:i,fontSize:t.titleFontSizeLG,lineHeight:t.lineHeightLG}}}},["".concat(e,"-card")]:{["&".concat(e,"-small")]:{["> ".concat(e,"-nav")]:{["".concat(e,"-tab")]:{padding:n},["".concat(e,"-nav-add")]:{minWidth:o,minHeight:o}},["&".concat(e,"-bottom")]:{["> ".concat(e,"-nav ").concat(e,"-tab")]:{borderRadius:"0 0 ".concat((0,td.unit)(t.borderRadius)," ").concat((0,td.unit)(t.borderRadius))}},["&".concat(e,"-top")]:{["> ".concat(e,"-nav ").concat(e,"-tab")]:{borderRadius:"".concat((0,td.unit)(t.borderRadius)," ").concat((0,td.unit)(t.borderRadius)," 0 0")}},["&".concat(e,"-right")]:{["> ".concat(e,"-nav ").concat(e,"-tab")]:{borderRadius:{_skip_check_:!0,value:"0 ".concat((0,td.unit)(t.borderRadius)," ").concat((0,td.unit)(t.borderRadius)," 0")}}},["&".concat(e,"-left")]:{["> ".concat(e,"-nav ").concat(e,"-tab")]:{borderRadius:{_skip_check_:!0,value:"".concat((0,td.unit)(t.borderRadius)," 0 0 ").concat((0,td.unit)(t.borderRadius))}}}},["&".concat(e,"-large")]:{["> ".concat(e,"-nav")]:{["".concat(e,"-tab")]:{padding:a},["".concat(e,"-nav-add")]:{minWidth:c,minHeight:c}}}}}})(e),(t=>{let{componentCls:e,tabsHorizontalItemMarginRTL:n,iconCls:a,cardGutter:o,calc:c}=t;return{["".concat(e,"-rtl")]:{direction:"rtl",["".concat(e,"-nav")]:{["".concat(e,"-tab")]:{margin:{_skip_check_:!0,value:n},["".concat(e,"-tab:last-of-type")]:{marginLeft:{_skip_check_:!0,value:0}},[a]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:(0,td.unit)(t.marginSM)}},["".concat(e,"-tab-remove")]:{marginRight:{_skip_check_:!0,value:(0,td.unit)(t.marginXS)},marginLeft:{_skip_check_:!0,value:(0,td.unit)(c(t.marginXXS).mul(-1).equal())},[a]:{margin:0}}}},["&".concat(e,"-left")]:{["> ".concat(e,"-nav")]:{order:1},["> ".concat(e,"-content-holder")]:{order:0}},["&".concat(e,"-right")]:{["> ".concat(e,"-nav")]:{order:0},["> ".concat(e,"-content-holder")]:{order:1}},["&".concat(e,"-card").concat(e,"-top, &").concat(e,"-card").concat(e,"-bottom")]:{["> ".concat(e,"-nav, > div > ").concat(e,"-nav")]:{["".concat(e,"-tab + ").concat(e,"-tab")]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},["".concat(e,"-dropdown-rtl")]:{direction:"rtl"}
1,["".concat(e,"-menu-item")]:{["".concat(e,"-dropdown-rtl")]:{textAlign:{_skip_check_:!0,value:"right"}}}}})(e),(t=>{let{componentCls:e,margin:n,colorBorderSecondary:a,horizontalMargin:o,verticalItemPadding:c,verticalItemMargin:r,calc:i}=t;return{["".concat(e,"-top, ").concat(e,"-bottom")]:{flexDirection:"column",["> ".concat(e,"-nav, > div > ").concat(e,"-nav")]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:"".concat((0,td.unit)(t.lineWidth)," ").concat(t.lineType," ").concat(a),content:"''"},["".concat(e,"-ink-bar")]:{height:t.lineWidthBold,"&-animated":{transition:"width ".concat(t.motionDurationSlow,", left ").concat(t.motionDurationSlow,",\n right ").concat(t.motionDurationSlow)}},["".concat(e,"-nav-wrap")]:{"&::before, &::after":{top:0,bottom:0,width:t.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:t.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:t.boxShadowTabsOverflowRight},["&".concat(e,"-nav-wrap-ping-left::before")]:{opacity:1},["&".concat(e,"-nav-wrap-ping-right::after")]:{opacity:1}}}},["".concat(e,"-top")]:{["> ".concat(e,"-nav,\n > div > ").concat(e,"-nav")]:{"&::before":{bottom:0},["".concat(e,"-ink-bar")]:{bottom:0}}},["".concat(e,"-bottom")]:{["> ".concat(e,"-nav, > div > ").concat(e,"-nav")]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},["".concat(e,"-ink-bar")]:{top:0}},["> ".concat(e,"-content-holder, > div > ").concat(e,"-content-holder")]:{order:0}},["".concat(e,"-left, ").concat(e,"-right")]:{["> ".concat(e,"-nav, > div > ").concat(e,"-nav")]:{flexDirection:"column",minWidth:i(t.controlHeight).mul(1.25).equal(),["".concat(e,"-tab")]:{padding:c,textAlign:"center"},["".concat(e,"-tab + ").concat(e,"-tab")]:{margin:r},["".concat(e,"-nav-wrap")]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:t.controlHeight}
1,"&::before":{top:0,boxShadow:t.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:t.boxShadowTabsOverflowBottom},["&".concat(e,"-nav-wrap-ping-top::before")]:{opacity:1},["&".concat(e,"-nav-wrap-ping-bottom::after")]:{opacity:1}},["".concat(e,"-ink-bar")]:{width:t.lineWidthBold,"&-animated":{transition:"height ".concat(t.motionDurationSlow,", top ").concat(t.motionDurationSlow)}},["".concat(e,"-nav-list, ").concat(e,"-nav-operations")]:{flex:"1 0 auto",flexDirection:"column"}}},["".concat(e,"-left")]:{["> ".concat(e,"-nav, > div > ").concat(e,"-nav")]:{["".concat(e,"-ink-bar")]:{right:{_skip_check_:!0,value:0}}},["> ".concat(e,"-content-holder, > div > ").concat(e,"-content-holder")]:{marginLeft:{_skip_check_:!0,value:(0,td.unit)(i(t.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:"".concat((0,td.unit)(t.lineWidth)," ").concat(t.lineType," ").concat(t.colorBorder)},["> ".concat(e,"-content > ").concat(e,"-tabpane")]:{paddingLeft:{_skip_check_:!0,value:t.paddingLG}}}},["".concat(e,"-right")]:{["> ".concat(e,"-nav, > div > ").concat(e,"-nav")]:{order:1,["".concat(e,"-ink-bar")]:{left:{_skip_check_:!0,value:0}}},["> ".concat(e,"-content-holder, > div > ").concat(e,"-content-holder")]:{order:0,marginRight:{_skip_check_:!0,value:i(t.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:"".concat((0,td.unit)(t.lineWidth)," ").concat(t.lineType," ").concat(t.colorBorder)},["> ".concat(e,"-content > ").concat(e,"-tabpane")]:{paddingRight:{_skip_check_:!0,value:t.paddingLG}}}}}})(e),(t=>{let{componentCls:e,itemHoverColor:n,dropdownEdgeChildVerticalPadding:a}=t;return{["".concat(e,"-dropdown")]:Object.assign(Object.assign({},(0,ts.dF)(t)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:t.zIndexPopup,display:"block","&-hidden":{display:"none"},["".concat(e,"-dropdown-menu")]:{maxHeight:t.tabsDropdownHeight,margin:0,padding:"".concat((0,td.unit)(a)," 0"),overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:t.colorBgContainer,backgroundClip:"padding-box",borderRadius:t.borderRadiusLG,outline:"none",boxShadow:t.boxShadowSecondary,"&-item":Object.assign(Object.assign({},ts.L9),{display:"flex",alignItems:"center",minWidth:t.tabsDropdownWidth,margin:0,padding:"".concat((0,td.unit)(t.paddingXXS)," ").concat((0,td.unit)(t.paddingSM)),color:t.colorText,fontWeight:"normal",fontSize:t.fontSize,lineHeight:t.lineHeight,cursor:"pointer",transition:"all ".concat(t.motionDurationSlow),"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:t.marginSM},color:t.colorIcon,fontSize:t.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:t.controlItemBgHover},"&-disabled":{"&, &:hover":{color:t.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}})(e),(t=>{let{componentCls:e,tabsCardPadding:n,cardBg:a,cardGutter:o,colorBorderSecondary:c,itemSelectedColor:r}=t;return{["".concat(e,"-card")]:{["> ".concat(e,"-nav, > div > ").concat(e,"-nav")]:{["".concat(e,"-tab")]:{margin:0,padding:n,background:a,border:"".concat((0,td.unit)(t.lineWidth)," ").concat(t.lineType," ").concat(c),transition:"all ".concat(t.motionDurationSlow," ").concat(t.motionEaseInOut)},["".concat(e,"-tab-active")]:{color:r,background:t.colorBgContainer},["".concat(e,"-tab-focus:has(").concat(e,"-tab-btn:focus-visible)")]:(0,ts.jk)(t,-3),["& ".concat(e,"-tab").concat(e,"-tab-focus ").concat(e,"-tab-btn:focus-visible")]:{outline:"none"},["".concat(e,"-ink-bar")]:{visibility:"hidden"}},["&".concat(e,"-top, &").concat(e,"-bottom")]:{["> ".concat(e,"-nav, > div > ").concat(e,"-nav")]:{["".concat(e,"-tab + ").concat(e,"-tab")]:{marginLeft:{_skip_check_:!0,value:(0,td.unit)(o)}}}},["&".concat(e,"-top")]:{["> ".concat(e,"-nav, > div > ").concat(e,"-nav")]:{["".concat(e,"-tab")]:{borderRadius:"".concat((0,td.unit)(t.borderRadiusLG)," ").concat((0,td.unit)(t.borderRadiusLG)," 0 0")},["".concat(e,"-tab-active")]:{borderBottomColor:t.colorBgContainer}}},["&".concat(e,"-bottom")]:{["> ".concat(e,"-nav, > div > ").concat(e,"-nav")]:{["".concat(e,"-tab")]:{borderRadius:"0 0 ".concat((0,td.unit)(t.borderRadiusLG)," ").concat((0,td.unit)(t.borderRadiusLG))}
1,["".concat(e,"-tab-active")]:{borderTopColor:t.colorBgContainer}}},["&".concat(e,"-left, &").concat(e,"-right")]:{["> ".concat(e,"-nav, > div > ").concat(e,"-nav")]:{["".concat(e,"-tab + ").concat(e,"-tab")]:{marginTop:(0,td.unit)(o)}}},["&".concat(e,"-left")]:{["> ".concat(e,"-nav, > div > ").concat(e,"-nav")]:{["".concat(e,"-tab")]:{borderRadius:{_skip_check_:!0,value:"".concat((0,td.unit)(t.borderRadiusLG)," 0 0 ").concat((0,td.unit)(t.borderRadiusLG))}},["".concat(e,"-tab-active")]:{borderRightColor:{_skip_check_:!0,value:t.colorBgContainer}}}},["&".concat(e,"-right")]:{["> ".concat(e,"-nav, > div > ").concat(e,"-nav")]:{["".concat(e,"-tab")]:{borderRadius:{_skip_check_:!0,value:"0 ".concat((0,td.unit)(t.borderRadiusLG)," ").concat((0,td.unit)(t.borderRadiusLG)," 0")}},["".concat(e,"-tab-active")]:{borderLeftColor:{_skip_check_:!0,value:t.colorBgContainer}}}}}}})(e),(t=>{let{componentCls:e,tabsCardPadding:n,cardHeight:a,cardGutter:o,itemHoverColor:c,itemActiveColor:r,colorBorderSecondary:i}=t;return{[e]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ts.dF)(t)),{display:"flex",["> ".concat(e,"-nav, > div > ").concat(e,"-nav")]:{position:"relative",display:"flex",flex:"none",alignItems:"center",["".concat(e,"-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(t.motionDurationSlow),content:"''",pointerEvents:"none"}},["".concat(e,"-nav-list")]:{position:"relative",display:"flex",transition:"opacity ".concat(t.motionDurationSlow)},["".concat(e,"-nav-operations")]:{display:"flex",alignSelf:"stretch"},["".concat(e,"-nav-operations-hidden")]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},["".concat(e,"-nav-more")]:{position:"relative",padding:n,background:"transparent",border:0,color:t.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:t.calc(t.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},["".concat(e,"-nav-add")]:Object.assign({minWidth:a,minHeight:a,marginLeft:{_skip_check_:!0,value:o},background:"transparent",border:"".concat((0,td.unit)(t.lineWidth)," ").concat(t.lineType," ").concat(i),borderRadius:"".concat((0,td.unit)(t.borderRadiusLG)," ").concat((0,td.unit)(t.borderRadiusLG)," 0 0"),outline:"none",cursor:"pointer",color:t.colorText,transition:"all ".concat(t.motionDurationSlow," ").concat(t.motionEaseInOut),"&:hover":{color:c},"&:active, &:focus:not(:focus-visible)":{color:r}},(0,ts.K8)(t,-3))},["".concat(e,"-extra-content")]:{flex:"none"},["".concat(e,"-ink-bar")]:{position:"absolute",background:t.inkBarColor,pointerEvents:"none"}}),(t=>{let{componentCls:e,itemActiveColor:n,itemHoverColor:a,iconCls:o,tabsHorizontalItemMargin:c,horizontalItemPadding:r,itemSelectedColor:i,itemColor:l}=t,d="".concat(e,"-tab");return{[d]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:r,fontSize:t.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:"all ".concat(t.motionDurationSlow),["".concat(d,"-icon:not(:last-child)")]:{marginInlineEnd:t.marginSM}},"&-remove":Object.assign({flex:"none",marginRight:{_skip_check_:!0,value:t.calc(t.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:t.marginXS},color:t.colorIcon,fontSize:t.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:"all ".concat(t.motionDurationSlow),"&:hover":{color:t.colorTextHeading}},(0,ts.K8)(t)),"&:hover":{color:a},["&".concat(d,"-active ").concat(d,"-btn")]:{color:i,textShadow:t.tabsActiveTextShadow},["&".concat(d,"-focus ").concat(d,"-btn:focus-visible")]:(0,ts.jk)(t),["&".concat(d,"-disabled")]:{color:t.colorTextDisabled,cursor:"not-allowed"},["&".concat(d,"-disabled ").concat(d,"-btn, &").concat(d,"-disabled ").concat(e,"-remove")]:{"&:focus, &:active":{color:t.colorTextDisabled}},["& ".concat(d,"-remove ").concat(o)]:{margin:0},["".concat(o,":not(:last-child)")]:{marginRight:{_skip_check_:!0,value:t.marginSM}}},["".concat(d," + ").concat(d)]:{margin:{_skip_check_:!0,value:c}}}})(t)),{["".concat(e,"-content")]:{position:"relative",width:"100%"},["".concat(e,"-content-holder")]:{flex:"auto",minWidth:0,minHeight:0},["".concat(e,"-tabpane")]:Object.assign(Object.assign({},(0,ts.K8)(t)),{"&-hidden":{display:"none"}})}),["".concat(e,"-centered")]:{["> ".concat(e,"-nav, > div > ").concat(e,"-nav")]:{["".concat(e,"-nav-wrap")]:{["&:not([class*='".concat(e,"-nav-wrap-ping']) > ").concat(e,"-nav-list")]:{margin:"auto"}}}}}})(e),(t=>{let{componentCls:e,motionDurationSlow:n}=t;return[{[e]:{["".concat(e,"-switch")]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0}
1,"&-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,tf._j)(t,"slide-up"),(0,tf._j)(t,"slide-down")]]})(e)]},t=>{let{cardHeight:e,cardHeightSM:n,cardHeightLG:a,controlHeight:o,controlHeightLG:c}=t,r=e||c,i=n||o,l=a||c+8;return{zIndexPopup:t.zIndexPopupBase+50,cardBg:t.colorFillAlter,cardHeight:r,cardHeightSM:i,cardHeightLG:l,cardPadding:"".concat((r-t.fontHeight)/2-t.lineWidth,"px ").concat(t.padding,"px"),cardPaddingSM:"".concat((i-t.fontHeight)/2-t.lineWidth,"px ").concat(t.paddingXS,"px"),cardPaddingLG:"".concat((l-t.fontHeightLG)/2-t.lineWidth,"px ").concat(t.padding,"px"),titleFontSize:t.fontSize,titleFontSizeLG:t.fontSizeLG,titleFontSizeSM:t.fontSize,inkBarColor:t.colorPrimary,horizontalMargin:"0 0 ".concat(t.margin,"px 0"),horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:"".concat(t.paddingSM,"px 0"),horizontalItemPaddingSM:"".concat(t.paddingXS,"px 0"),horizontalItemPaddingLG:"".concat(t.padding,"px 0"),verticalItemPadding:"".concat(t.paddingXS,"px ").concat(t.paddingLG,"px"),verticalItemMargin:"".concat(t.margin,"px 0 0 0"),itemColor:t.colorText,itemSelectedColor:t.colorPrimary,itemHoverColor:t.colorPrimaryHover,itemActiveColor:t.colorPrimaryActive,cardGutter:t.marginXXS/2}});var tv=function(t,e){var n={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&0>e.indexOf(a)&&(n[a]=t[a]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,a=Object.getOwnPropertySymbols(t);o<a.length;o++)0>e.indexOf(a[o])&&Object.prototype.propertyIsEnumerable.call(t,a[o])&&(n[a[o]]=t[a[o]]);return n};let tm=a.forwardRef((t,e)=>{var n,r,i,l,s,b,f,p,v,m,g;let h,{type:y,className:k,rootClassName:x,size:S,onEdit:w,hideAdd:A,centered:_,addIcon:E,removeIcon:O,moreIcon:C,more:R,popupClassName:P,children:T,items:j,animated:I,style:L,indicatorSize:z,indicator:M,destroyInactiveTabPane:N,destroyOnHidden:B}=t,D=tv(t,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator","destroyInactiveTabPane","destroyOnHidden"]),{prefixCls:G}=D,{direction:H,tabs:W,getPrefixCls:X,getPopupContainer:K}=a.useContext(tn.QO),q=X("tabs",G),F=(0,ta.A)(q),[V,Y,Q]=tp(q,F),U=a.useRef(null);a.useImperativeHandle(e,()=>({nativeElement:U.current})),"editable-card"===y&&(h={onEdit:(t,e)=>{let{key:n,event:a}=e;null==w||w("add"===t?a:n,t)},removeIcon:null!=(n=null!=O?O:null==W?void 0:W.removeIcon)?n:a.createElement(o.A,null),addIcon:(null!=E?E:null==W?void 0:W.addIcon)||a.createElement(d,null),showAdd:!0!==A});let J=X(),Z=(0,to.A)(S),$=function(t,e){return t?t.map(t=>{var e;let n=null!=(e=t.destroyOnHidden)?e:t.destroyInactiveTabPane;return Object.assign(Object.assign({},t),{destroyInactiveTabPane:n})}):(0,ti.A)(e).map(t=>{if(a.isValidElement(t)){let{key:e,props:n}=t,a=n||{},{tab:o}=a,c=tl(a,["tab"]);return Object.assign(Object.assign({key:String(e)},c),{label:o})}return null}).filter(t=>t)}(j,T),tt=function(t){let e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return(e=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof n?n:{})).tabPane&&(e.tabPaneMotion=Object.assign(Object.assign({},tr),{motionName:(0,tc.b)(t,"switch")})),e}(q,I),td=Object.assign(Object.assign({},null==W?void 0:W.style),L),ts={align:null!=(r=null==M?void 0:M.align)?r:null==(i=null==W?void 0:W.indicator)?void 0:i.align,size:null!=(f=null!=(s=null!=(l=null==M?void 0:M.size)?l:z)?s:null==(b=null==W?void 0:W.indicator)?void 0:b.size)?f:null==W?void 0:W.indicatorSize};return V(a.createElement(te,Object.assign({ref:U,direction:H,getPopupContainer:K},D,{items:$,className:u()({["".concat(q,"-").concat(Z)]:Z,["".concat(q,"-card")]:["card","editable-card"].includes(y),["".concat(q,"-editable-card")]:"editable-card"===y,["".concat(q,"-centered")]:_},null==W?void 0:W.className,k,x,Y,Q,F),popupClassName:u()(P,Y,Q,F),style:td,editable:h,more:Object.assign({icon:null!=(g=null!=(m=null!=(v=null==(p=null==W?void 0:W.more)?void 0:p.icon)?v:null==W?void 0:W.moreIcon)?m:C)?g:a.createElement(c.A,null),transitionName:"".concat(J,"-slide-up")},R),prefixCls:q,animated:tt,indicator:ts,destroyInactiveTabPane:null!=B?B:N})))});tm.TabPane=()=>null;let tg=tm},50262:(t,e,n)=>{n.d(e,{A:()=>w});var a=n(14232),o=n(58103),c=n.n(o),r=n(77018),i=n(28580),l=n(81034),d=n(62384),s=n(1442),u=function(t,e){var n={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&0>e.indexOf(a)&&(n[a]=t[a]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,a=Object.getOwnPropertySymbols(t);o<a.length;o++)0>e.indexOf(a[o])&&Object.prototype.propertyIsEnumerable.call(t,a[o])&&(n[a[o]]=t[a[o]]);return n};let b=t=>{var{prefixCls:e,className:n,hoverable:o=!0}=t,r=u(t,["prefixCls","className","hoverable"]);let{getPrefixCls:l}=a.useContext(i.QO),d=l("card",e),s=c()("".concat(d,"-grid"),n,{["".concat(d,"-grid-hoverable")]:o});return a.createElement("div",Object.assign({},r,{className:s}))};var f=n(55523),p=n(47538),v=n(88809),m=n(15956);let g=(0,v.OF)("Card",t=>
1{let e=(0,m.mergeToken)(t,{cardShadow:t.boxShadowCard,cardHeadPadding:t.padding,cardPaddingBase:t.paddingLG,cardActionsIconSize:t.fontSize});return[(t=>{let{componentCls:e,cardShadow:n,cardHeadPadding:a,colorBorderSecondary:o,boxShadowTertiary:c,bodyPadding:r,extraColor:i}=t;return{[e]:Object.assign(Object.assign({},(0,p.dF)(t)),{position:"relative",background:t.colorBgContainer,borderRadius:t.borderRadiusLG,["&:not(".concat(e,"-bordered)")]:{boxShadow:c},["".concat(e,"-head")]:(t=>{let{antCls:e,componentCls:n,headerHeight:a,headerPadding:o,tabsMarginBottom:c}=t;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:a,marginBottom:-1,padding:"0 ".concat((0,f.unit)(o)),color:t.colorTextHeading,fontWeight:t.fontWeightStrong,fontSize:t.headerFontSize,background:t.headerBg,borderBottom:"".concat((0,f.unit)(t.lineWidth)," ").concat(t.lineType," ").concat(t.colorBorderSecondary),borderRadius:"".concat((0,f.unit)(t.borderRadiusLG)," ").concat((0,f.unit)(t.borderRadiusLG)," 0 0")},(0,p.t6)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},p.L9),{["\n > ".concat(n,"-typography,\n > ").concat(n,"-typography-edit-content\n ")]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),["".concat(e,"-tabs-top")]:{clear:"both",marginBottom:c,color:t.colorText,fontWeight:"normal",fontSize:t.fontSize,"&-bar":{borderBottom:"".concat((0,f.unit)(t.lineWidth)," ").concat(t.lineType," ").concat(t.colorBorderSecondary)}}})})(t),["".concat(e,"-extra")]:{marginInlineStart:"auto",color:i,fontWeight:"normal",fontSize:t.fontSize},["".concat(e,"-body")]:Object.assign({padding:r,borderRadius:"0 0 ".concat((0,f.unit)(t.borderRadiusLG)," ").concat((0,f.unit)(t.borderRadiusLG))},(0,p.t6)()),["".concat(e,"-grid")]:(t=>{let{cardPaddingBase:e,colorBorderSecondary:n,cardShadow:a,lineWidth:o}=t;return{width:"33.33%",padding:e,border:0,borderRadius:0,boxShadow:"\n ".concat((0,f.unit)(o)," 0 0 0 ").concat(n,",\n 0 ").concat((0,f.unit)(o)," 0 0 ").concat(n,",\n ").concat((0,f.unit)(o)," ").concat((0,f.unit)(o)," 0 0 ").concat(n,",\n ").concat((0,f.unit)(o)," 0 0 0 ").concat(n," inset,\n 0 ").concat((0,f.unit)(o)," 0 0 ").concat(n," inset;\n "),transition:"all ".concat(t.motionDurationMid),"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:a}}})(t),["".concat(e,"-cover")]:{"> *":{display:"block",width:"100%",borderRadius:"".concat((0,f.unit)(t.borderRadiusLG)," ").concat((0,f.unit)(t.borderRadiusLG)," 0 0")}},["".concat(e,"-actions")]:(t=>{let{componentCls:e,iconCls:n,actionsLiMargin:a,cardActionsIconSize:o,colorBorderSecondary:c,actionsBg:r}=t;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:r,borderTop:"".concat((0,f.unit)(t.lineWidth)," ").concat(t.lineType," ").concat(c),display:"flex",borderRadius:"0 0 ".concat((0,f.unit)(t.borderRadiusLG)," ").concat((0,f.unit)(t.borderRadiusLG))},(0,p.t6)()),{"& > li":{margin:a,color:t.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:t.calc(t.cardActionsIconSize).mul(2).equal(),fontSize:t.fontSize,lineHeight:t.lineHeight,cursor:"pointer","&:hover":{color:t.colorPrimary,transition:"color ".concat(t.motionDurationMid)},["a:not(".concat(e,"-btn), > ").concat(n)]:{display:"inline-block",width:"100%",color:t.colorIcon,lineHeight:(0,f.unit)(t.fontHeight),transition:"color ".concat(t.motionDurationMid),"&:hover":{color:t.colorPrimary}},["> ".concat(n)]:{fontSize:o,lineHeight:(0,f.unit)(t.calc(o).mul(t.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:"".concat((0,f.unit)(t.lineWidth)," ").concat(t.lineType," ").concat(c)}}})})(t),["".concat(e,"-meta")]:(t=>Object.assign(Object.assign({margin:"".concat((0,f.unit)(t.calc(t.marginXXS).mul(-1).equal())," 0"),display:"flex"},(0,p.t6)()),{"&-avatar":{paddingInlineEnd:t.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:t.marginXS}},"&-title":Object.assign({color:t.colorTextHeading,fontWeight:t.fontWeightStrong,fontSize:t.fontSizeLG},p.L9),"&-description":{color:t.colorTextDescription}}))(t)}),["".concat(e,"-bordered")]:{border:"".concat((0,f.unit)(t.lineWidth)," ").concat(t.lineType," ").concat(o),["".concat(e,"-cover")]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},["".concat(e,"-hoverable")]:{cursor:"pointer",transition:"box-shadow ".concat(t.motionDurationMid,", border-color ").concat(t.motionDurationMid),"&:hover":{borderColor:"transparent",boxShadow:n}},["".concat(e,"-contain-grid")]:{borderRadius:"".concat((0,f.unit)(t.borderRadiusLG)," ").concat((0,f.unit)(t.borderRadiusLG)," 0 0 "),["".concat(e,"-body")]:{dis
1play:"flex",flexWrap:"wrap"},["&:not(".concat(e,"-loading) ").concat(e,"-body")]:{marginBlockStart:t.calc(t.lineWidth).mul(-1).equal(),marginInlineStart:t.calc(t.lineWidth).mul(-1).equal(),padding:0}},["".concat(e,"-contain-tabs")]:{["> div".concat(e,"-head")]:{minHeight:0,["".concat(e,"-head-title, ").concat(e,"-extra")]:{paddingTop:a}}},["".concat(e,"-type-inner")]:(t=>{let{componentCls:e,colorFillAlter:n,headerPadding:a,bodyPadding:o}=t;return{["".concat(e,"-head")]:{padding:"0 ".concat((0,f.unit)(a)),background:n,"&-title":{fontSize:t.fontSize}},["".concat(e,"-body")]:{padding:"".concat((0,f.unit)(t.padding)," ").concat((0,f.unit)(o))}}})(t),["".concat(e,"-loading")]:(t=>{let{componentCls:e}=t;return{overflow:"hidden",["".concat(e,"-body")]:{userSelect:"none"}}})(t),["".concat(e,"-rtl")]:{direction:"rtl"}}})(e),(t=>{let{componentCls:e,bodyPaddingSM:n,headerPaddingSM:a,headerHeightSM:o,headerFontSizeSM:c}=t;return{["".concat(e,"-small")]:{["> ".concat(e,"-head")]:{minHeight:o,padding:"0 ".concat((0,f.unit)(a)),fontSize:c,["> ".concat(e,"-head-wrapper")]:{["> ".concat(e,"-extra")]:{fontSize:t.fontSize}}},["> ".concat(e,"-body")]:{padding:n}},["".concat(e,"-small").concat(e,"-contain-tabs")]:{["> ".concat(e,"-head")]:{["".concat(e,"-head-title, ").concat(e,"-extra")]:{paddingTop:0,display:"flex",alignItems:"center"}}}}})(e)]},t=>{var e,n;return{headerBg:"transparent",headerFontSize:t.fontSizeLG,headerFontSizeSM:t.fontSize,headerHeight:t.fontSizeLG*t.lineHeightLG+2*t.padding,headerHeightSM:t.fontSize*t.lineHeight+2*t.paddingXS,actionsBg:t.colorBgContainer,actionsLiMargin:"".concat(t.paddingSM,"px 0"),tabsMarginBottom:-t.padding-t.lineWidth,extraColor:t.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:null!=(e=t.bodyPadding)?e:t.paddingLG,headerPadding:null!=(n=t.headerPadding)?n:t.paddingLG}});var h=n(46843),y=function(t,e){var n={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&0>e.indexOf(a)&&(n[a]=t[a]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,a=Object.getOwnPropertySymbols(t);o<a.length;o++)0>e.indexOf(a[o])&&Object.prototype.propertyIsEnumerable.call(t,a[o])&&(n[a[o]]=t[a[o]]);return n};let k=t=>{let{actionClasses:e,actions:n=[],actionStyle:o}=t;return a.createElement("ul",{className:e,style:o},n.map((t,e)=>a.createElement("li",{style:{width:"".concat(100/n.length,"%")},key:"action-".concat(e)},a.createElement("span",null,t))))},x=a.forwardRef((t,e)=>{let n,{prefixCls:o,className:u,rootClassName:f,style:p,extra:v,headStyle:m={},bodyStyle:x={},title:S,loading:w,bordered:A,variant:_,size:E,type:O,cover:C,actions:R,tabList:P,children:T,activeTabKey:j,defaultActiveTabKey:I,tabBarExtraContent:L,hoverable:z,tabProps:M={},classNames:N,styles:B}=t,D=y(t,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","variant","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:G,direction:H,card:W}=a.useContext(i.QO),[X]=(0,h.A)("card",_,A),K=t=>{var e;return c()(null==(e=null==W?void 0:W.classNames)?void 0:e[t],null==N?void 0:N[t])},q=t=>{var e;return Object.assign(Object.assign({},null==(e=null==W?void 0:W.styles)?void 0:e[t]),null==B?void 0:B[t])},F=a.useMemo(()=>{let t=!1;return a.Children.forEach(T,e=>{(null==e?void 0:e.type)===b&&(t=!0)}),t},[T]),V=G("card",o),[Y,Q,U]=g(V),J=a.createElement(d.A,{loading:!0,active:!0,paragraph:{rows:4},title:!1},T),Z=void 0!==j,$=Object.assign(Object.assign({},M),{[Z?"activeKey":"defaultActiveKey"]:Z?j:I,tabBarExtraContent:L}),tt=(0,l.A)(E),te=tt&&"default"!==tt?tt:"large",tn=P?a.createElement(s.A,Object.assign({size:te},$,{className:"".concat(V,"-head-tabs"),onChange:e=>{var n;null==(n=t.onTabChange)||n.call(t,e)},items:P.map(t=>{var{tab:e}=t;return Object.assign({label:e},y(t,["tab"]))})})):null;if(S||v||tn){let t=c()("".concat(V,"-head"),K("header")),e=c()("".concat(V,"-head-title"),K("title")),o=c()("".concat(V,"-extra"),K("extra")),r=Object.assign(Object.assign({},m),q("header"));n=a.createElement("div",{className:t,style:r},a.createElement("div",{className:"".concat(V,"-head-wrapper")},S&&a.createElement("div",{className:e,style:q("title")},S),v&&a.createElement("div",{className:o,style:q("extra")},v)),tn)}let ta=c()("".concat(V,"-cover"),K("cover")),to=C?a.createElement("div",{className:ta,style:q("cover")},C):null,tc=c()("".concat(V,"-body"),K("body")),tr=Object.assign(Object.assign({},x),q("body")),ti=a.createElement("div",{className:tc,style:tr},w?J:T),tl=c()("".concat(V,"-actions"),K("actions")),td=(null==R?void 0:R.length)?a.createElement(k,{actionClasses:tl,actionStyle:q("actions"),actions:R}):null,ts=(0,r.A)(D,["onTabChange"]),tu=c()(V,null==W?void 0:W.className,{["".concat(V,"-loading")]:w,["".concat(V,"-bordered")]:"borderless"!==X,["".concat(V,"-hoverable")]:z,["".concat(V,"-contain-grid")]:F,["".concat(V,"-contain-tabs")]:null==P?void 0:P.length,["".concat(V,"-").concat(tt)]:tt,["".concat(V,"-type-").concat(O)]:!!O,["".concat(V,"-rtl")]:"rtl"===H},u,f,Q,U),tb=Object.assign(Object.assign({},null==W?void 0:W.style),p);return Y(a.createElement("div",Object.assign({ref:e},ts,{className:tu,style:tb}),n,to,ti,td))});var S=function(t,e){var n={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&0>e.indexOf(a)&&(n[a]=t[a]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,a=Object.getOwnPropertySymbols(t);o<a.length;o++)0>e.indexOf(a[o])&&Object.prototype.propertyIsEnumerable.call(t,a[o])&&(n[a[o]]=t[a[o]]);return n};x.Grid=b,x.Meta=t=>
1{let{prefixCls:e,className:n,avatar:o,title:r,description:l}=t,d=S(t,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=a.useContext(i.QO),u=s("card",e),b=c()("".concat(u,"-meta"),n),f=o?a.createElement("div",{className:"".concat(u,"-meta-avatar")},o):null,p=r?a.createElement("div",{className:"".concat(u,"-meta-title")},r):null,v=l?a.createElement("div",{className:"".concat(u,"-meta-description")},l):null,m=p||v?a.createElement("div",{className:"".concat(u,"-meta-detail")},p,v):null;return a.createElement("div",Object.assign({},d,{className:b}),f,m)};let w=x}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.