PageSourceSearch

https://cdn.pi.inc/web/3dab686ae1d6879cee0bf16fed35e60ab739be9d/assets/tabs-Z0T2_kwy.js

js pi.inc collected 2026-09-25 18:20:09 UTC 36,774 bytes, 2 lines download raw bytes

1import{o as e,t}from"./react-COZjIs5k.js";import{B as n,D as r,Ht as i,I as a,J as o,Jt as s,K as c,L as l,Lt as u,P as d,U as f,W as p,Wt as m,Zt as h,dn as g,qt as _,vt as ee}from"./render-DthXvZMn.js";import{t as v}from"./useCSSVarCls-GvR9PqJf.js";import{t as y}from"./CloseOutlined-5eo0n0GL.js";import{_ as b}from"./util-DsvC0IBg.js";import{t as x}from"./useSize-DXhFJOVT.js";import{d as S,l as te,r as C,s as w,t as T}from"./EllipsisOutlined-DEp-GlaP.js";import{t as E}from"./PlusOutlined-BYMVmzqH.js";var D=e(t()),O=e(E());function k(){return k=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},k.apply(this,arguments)}var A=D.forwardRef((e,t)=>D.createElement(a,k({},e,{ref:t,icon:O.default})));function j(){return!!(typeof window<`u`&&window.document&&window.document.createElement)}var M=j()?D.useLayoutEffect:D.useEffect,N=(e,t)=>{let n=D.useRef(!0);M(()=>e(n.current),t),M(()=>(n.current=!1,()=>{n.current=!0}),[])},P=(e,t)=>{N(t=>{if(!t)return e()},t)};function ne(e,t){let[n,r]=(0,D.useState)(e),i=t===void 0?n:t;return N(e=>{e||r(t)},[t]),[i,r]}var F=e(l()),I,re=(()=>(I===void 0&&(I=(0,F.default)()),I)),ie=(0,D.createContext)(null);function ae(e){let t=D.useRef(e);return t.current=e,D.useCallback((...e)=>t.current?.(...e),[])}g();function oe(e,t,n){let r=D.useRef({});return(!(`value`in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}Number(D.version.split(`.`)[0]);var se=(e,t)=>{typeof e==`function`?e(t):typeof e==`object`&&e&&`current`in e&&(e.current=t)},L=(...e)=>{let t=e.filter(Boolean);return t.length<=1?t[0]:t=>{e.forEach(e=>{se(e,t)})}},R=(...e)=>oe(()=>L(...e),e,(e,t)=>e.length!==t.length||e.every((e,n)=>e!==t[n])),z=e=>+setTimeout(e,16),ce=e=>clearTimeout(e);typeof window<`u`&&`requestAnimationFrame`in window&&(z=e=>window.requestAnimationFrame(e),ce=e=>window.cancelAnimationFrame(e));var B=0,V=new Map;function H(e){V.delete(e)}var U=(e,t=1)=>{B+=1;let n=B;function r(t){if(t===0)H(n),e();else{let e=z(()=>{r(t-1)});V.set(n,e)}}return r(t),n};U.cancel=e=>{let t=V.get(e);return H(e),ce(t)};var le=e=>{let{activeTabOffset:t,horizontal:n,rtl:r,indicator:i={}}=e,{size:a,align:o=`center`}=i,[s,c]=(0,D.useState)(),l=(0,D.useRef)(),u=D.useCallback(e=>typeof a==`function`?a(e):typeof a==`number`?a:e,[a]);function d(){U.cancel(l.current)}return(0,D.useEffect)(()=>{let e={};if(t)if(n){e.width=u(t.width);let n=r?`right`:`left`;o===`start`&&(e[n]=t[n]),o===`center`&&(e[n]=t[n]+t.width/2,e.transform=r?`translateX(50%)`:`translateX(-50%)`),o===`end`&&(e[n]=t[n]+t.width,e.transform=`translateX(-100%)`)}else e.height=u(t.height),o===`start`&&(e.top=t.top),o===`center`&&(e.top=t.top+t.height/2,e.transform=`translateY(-50%)`),o===`end`&&(e.top=t.top+t.height,e.transform=`translateY(-100%)`);return d(),l.current=U(()=>{s&&e&&Object.keys(e).every(t=>{let n=e[t],r=s[t];
1return typeof n==`number`&&typeof r==`number`?Math.round(n)===Math.round(r):n===r})||c(e)}),d},[JSON.stringify(t),n,r,o,u]),{style:s}},ue={width:0,height:0,left:0,top:0};function de(e,t,n){return(0,D.useMemo)(()=>{let n=new Map,r=t.get(e[0]?.key)||ue,i=r.left+r.width;for(let r=0;r<e.length;r+=1){let{key:a}=e[r],o=t.get(a);o||=t.get(e[r-1]?.key)||ue;let s=n.get(a)||{...o};s.right=i-s.left-s.width,n.set(a,s)}return n},[e.map(e=>e.key).join(`_`),t,n])}function fe(e,t){let n=D.useRef(e),[,r]=D.useState({});function i(e){let i=typeof e==`function`?e(n.current):e;i!==n.current&&t(i,n.current),n.current=i,r({})}return[n.current,i]}var pe=.1,W=.01,G=20,K=.995**G;function me(e,t){let[n,r]=(0,D.useState)(),[i,a]=(0,D.useState)(0),[o,s]=(0,D.useState)(0),[c,l]=(0,D.useState)(),u=(0,D.useRef)();function d(e){let{screenX:t,screenY:n}=e.touches[0];r({x:t,y:n}),window.clearInterval(u.current)}function f(e){if(!n)return;let{screenX:o,screenY:c}=e.touches[0];r({x:o,y:c});let u=o-n.x,d=c-n.y;t(u,d);let f=Date.now();a(f),s(f-i),l({x:u,y:d})}function p(){if(n&&(r(null),l(null),c)){let e=c.x/o,n=c.y/o;if(Math.max(Math.abs(e),Math.abs(n))<pe)return;let r=e,i=n;u.current=window.setInterval(()=>{if(Math.abs(r)<W&&Math.abs(i)<W){window.clearInterval(u.current);return}r*=K,i*=K,t(r*G,i*G)},G)}}let m=(0,D.useRef)();function h(e){let{deltaX:n,deltaY:r}=e,i=0,a=Math.abs(n),o=Math.abs(r);a===o?i=m.current===`x`?n:r:a>o?(i=n,m.current=`x`):(i=r,m.current=`y`),t(-i,-i)&&e.preventDefault()}let g=(0,D.useRef)(null);g.current={onTouchStart:d,onTouchMove:f,onTouchEnd:p,onWheel:h},D.useEffect(()=>{function t(e){g.current.onTouchStart(e)}function n(e){g.current.onTouchMove(e)}function r(e){g.current.onTouchEnd(e)}function i(e){g.current.onWheel(e)}return document.addEventListener(`touchmove`,n,{passive:!1}),document.addEventListener(`touchend`,r,{passive:!0}),e.current.addEventListener(`touchstart`,t,{passive:!0}),e.current.addEventListener(`wheel`,i,{passive:!1}),()=>{document.removeEventListener(`touchmove`,n),document.removeEventListener(`touchend`,r)}},[])}function he(e){let[t,n]=(0,D.useState)(0),r=(0,D.useRef)(0),i=(0,D.useRef)();return i.current=e,P(()=>{i.current?.()},[t]),()=>{r.current===t&&(r.current+=1,n(r.current))}}function ge(e){let t=(0,D.useRef)([]),[,n]=(0,D.useState)({}),r=(0,D.useRef)(typeof e==`function`?e():e),i=he(()=>{let e=r.current;t.current.forEach(t=>{e=t(e)}),t.current=[],r.current=e,n({})});function a(e){t.current.push(e),i()}return[r.current,a]}var q={width:0,height:0,left:0,top:0,right:0};function _e(e,t,n,r,i,a,{tabs:o,tabPosition:s,rtl:c}){let l,u,d;return[`top`,`bottom`].includes(s)?(l=`width`,u=c?`right`:`left`,d=Math.abs(n)):(l=`height`,u=`top`,d=-n),(0,D.useMemo)(()=>{if(!o.length)return[0,0];let n=o.length,r=n;for(let i=0;i<n;i+=1){let n=e.get(o[i].key)||q;if(Math.floor(n[u]+n[l])>Math.floor(d+t)){r=i-1;break}}let i=0;for(let t=n-1;t>=0;--t)if((e.get(o[t].key)||q)[u]<d){i=t+1;break}return i>r?[0,-1]:[i,r]},[e,t,r,i,a,d,s,o.map(e=>e.key).join(`_`),c])}function ve(e){let t;return e instanceof Map?(t={},e.forEach((e,n)=>{t[n]=e})):t=e,JSON.stringify(t)}var ye=`TABS_DQ`;function be(e){return String(e).replace(/"/g,ye)}function xe(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var Se=D.forwardRef((e,t)=>{let{prefixCls:n,editable:r,locale:i,style:a}=e;return!r||r.showAdd===!1?null:D.createElement(`button`,{ref:t,type:`button`,className:`${n}-nav-add`,style:a,"aria-label":i?.addAriaLabel||`Add tab`,onClick:e=>{r.onEdit(`add`,{event:e})}},r.addIcon||`+`)}),Ce=D.forwardRef((e,t)=>{let{position:n,prefixCls:r,extra:i}=e;if(!i)return null;let a,o={};return typeof i==`object`&&!D.isValidElement(i)?o=i:o.right=i,n===`right`&&(a=o.right),n===`left`&&(a=o.left),a?D.createElement(`div`,{className:`${r}-extra-content`,ref:t},a):null}),J={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_
1SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){let{keyCode:t}=e;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=J.F1&&t<=J.F12)return!1;switch(t){case J.ALT:case J.CAPS_LOCK:case J.CONTEXT_MENU:case J.CTRL:case J.DOWN:case J.END:case J.ESC:case J.HOME:case J.INSERT:case J.LEFT:case J.MAC_FF_META:case J.META:case J.NUMLOCK:case J.NUM_CENTER:case J.PAGE_DOWN:case J.PAGE_UP:case J.PAUSE:case J.PRINT_SCREEN:case J.RIGHT:case J.SHIFT:case J.UP:case J.WIN_KEY:case J.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=J.ZERO&&e<=J.NINE||e>=J.NUM_ZERO&&e<=J.NUM_MULTIPLY||e>=J.A&&e<=J.Z||window.navigator.userAgent.indexOf(`WebKit`)!==-1&&e===0)return!0;switch(e){case J.SPACE:case J.QUESTION_MARK:case J.NUM_PLUS:case J.NUM_MINUS:case J.NUM_PERIOD:case J.NUM_DIVISION:case J.SEMICOLON:case J.DASH:case J.EQUALS:case J.COMMA:case J.PERIOD:case J.SLASH:case J.APOSTROPHE:case J.SINGLE_QUOTE:case J.OPEN_SQUARE_BRACKET:case J.BACKSLASH:case J.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};function Y(){return Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Y.apply(this,arguments)}var we=D.forwardRef((e,t)=>{let{prefixCls:n,id:r,tabs:i,locale:a,mobile:o,more:s={},style:c,className:l,editable:u,tabBarGutter:d,rtl:f,removeAriaLabel:p,onTabClick:m,getPopupContainer:h,popupClassName:g,popupStyle:ee}=e,[v,y]=(0,D.useState)(!1),[b,x]=(0,D.useState)(null),{icon:S=`More`}=s,T=`${r}-more-popup`,E=`${n}-dropdown`,O=b===null?null:`${T}-${b}`,k=a?.dropdownAriaLabel;function A(e,t){e.preventDefault(),e.stopPropagation(),u.onEdit(`remove`,{key:t,event:e})}let j=D.createElement(C,{onClick:({key:e,domEvent:t})=>{m(e,t),y(!1)},prefixCls:`${E}-menu`,id:T,tabIndex:-1,role:`listbox`,"aria-activedescendant":O,selectedKeys:[b],"aria-label":k===void 0?`expanded dropdown`:k},i.map(e=>{let{closable:t,disabled:n,closeIcon:i,key:a,label:o}=e,s=xe(t,i,u,n);return D.createElement(w,{key:a,id:`${T}-${a}`,role:`option`,"aria-controls":r&&`${r}-panel-${a}`,disabled:n},D.createElement(`span`,null,o),s&&D.createElement(`button`,{type:`button`,"aria-label":p||`remove`,tabIndex:0,className:`${E}-menu-item-remove`,onClick:e=>{e.stopPropagation(),A(e,a)}},i||u.removeIcon||`×`))}));function M(e){let t=i.filter(e=>!e.disabled),n=t.findIndex(e=>e.key===b)||0,r=t.length;for(let i=0;i<r;i+=1){n=(n+e+r)%r;let i=t[n];if(!i.disabled){x(i.key);return}}}function N(e){let{which:t}=e;if(!v){[J.DOWN,J.SPACE,J.ENTER].includes(t)&&(y(!0),e.preventDefault());return}switch(t){case J.UP:M(-1),e.preventDefault();break;case J.DOWN:M(1),e.preventDefault();break;case J.ESC:y(!1);break;case J.SPACE:case J.ENTER:b!==null&&m(b,e);break}}(0,D.useEffect)(()=>{let e=document.getElementById(O);e?.scrollIntoView&&e.scrollIntoView(!1)},[O,b]),(0,D.useEffect)(()=>{v||x(null)},[v]);let P={marginInlineStart:d};i.length||(P.visibility=`hidden`,P.order=1);let ne=_(g,{[`${E}-rtl`]:f}),F=o?null:D.createElement(te,Y({prefixCls:E,overlay:j,visible:i.length?v:!1,onVisibleChange:y,overlayClassName:ne,overlayStyle:ee,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:h},s),D.createElement(`button`,{type:`button`,className:`${n}-nav-more`,style:P,"aria-haspopup":`listbox`,"aria-controls":T,id:`${r}-more`,"aria-expanded":v,onKeyDown:N},S));return D.createElement(`div`,{className:_(`${n}-nav-operations`,l),style:c,ref:t},F,D.createElement(Se,{prefixCls:n,locale:a,editable:u}))}),Te=D.memo(we,(e,t)=>t.tabMoving),Ee=e=>{let{prefixCls:t,id:n,active:r,focus:i,tab:{key:a,label:o,disabled:s,closeIcon:c,icon:l},closable:u,renderWrapper:d,removeAriaLabel:f,editable:p,onClick:m,onFocus:h,onBlur:g,onKeyDown:ee,onMouseDown:v,onMouseUp:y,style:b,className:x,tabCount:S,currentPosition:te}=e,C=`${t}-tab`,w=xe(u,c,p,s);function T(e){s||m(e)}function E(e){e.preventDefault(),e.stopPropagation(),p.onEdit(`remove`,{key:a,event:e})}let O=D.useMemo(()=>l&&typeof o==`string`?D.createElement(`span`,null,o):o,[o,l]),k=D.useRef(null);D.useEffect(()=>{i&&k.current&&k.current.focus()},[i]);let A=D.createElement(`div`,{key:a,"data-node-key":be(a),className:_(C,x,{[`${C}-with-remove`]:w,[`${C}-active`]:r,[`${C}-disabled`]:s,[`${C}-focus`]:i}),style:b,onClick:T},D.createElement(`div`,{ref:k,role:`tab`,"aria-selected":r,id:n&&`${n}-tab-${a}`,className:`${C}-btn`,"aria-controls":n&&`${n}-panel-${a}`,"aria-disabled":s,tabIndex:s?null:r?0:-1,onClick:e=>{e.stopPropagation(),T(e)},onKeyDown:ee,onMouseDown:v,onMouseUp:y,onFocus:h,onBlur:g},i&&D.createElement(`div`,{"aria-live":`polite`,style:{width:0,height:0,position:`absolute`,overflow:`hidden`,opacity:0}
1},`Tab ${te} of ${S}`),l&&D.createElement(`span`,{className:`${C}-icon`},l),o&&O),w&&D.createElement(`button`,{type:`button`,"aria-label":f||`remove`,tabIndex:r?0:-1,className:`${C}-remove`,onClick:e=>{e.stopPropagation(),E(e)}},c||p.removeIcon||`×`));return d?d(A):A};function De(){return De=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},De.apply(this,arguments)}var Oe=(e,t)=>{let{offsetWidth:n,offsetHeight:r,offsetTop:i,offsetLeft:a}=e,{width:o,height:s,left:c,top:l}=e.getBoundingClientRect();return Math.abs(o-n)<1?[o,s,c-t.left,l-t.top]:[n,r,a,i]},ke=e=>{let{offsetWidth:t=0,offsetHeight:n=0}=e.current||{};if(e.current){let{width:n,height:r}=e.current.getBoundingClientRect();if(Math.abs(n-t)<1)return[n,r]}return[t,n]},Ae=(e,t)=>e[+!t],je=D.forwardRef((e,t)=>{let{className:n,style:r,id:i,animated:a,activeKey:o,rtl:c,extra:l,editable:u,locale:d,tabPosition:f,tabBarGutter:p,children:m,onTabClick:h,onTabScroll:g,indicator:ee,classNames:v,styles:y}=e,{prefixCls:b,tabs:x}=D.useContext(ie),S=(0,D.useRef)(null),te=(0,D.useRef)(null),C=(0,D.useRef)(null),w=(0,D.useRef)(null),T=(0,D.useRef)(null),E=(0,D.useRef)(null),O=(0,D.useRef)(null),k=f===`top`||f===`bottom`,[A,j]=fe(0,(e,t)=>{k&&g&&g({direction:e>t?`left`:`right`})}),[M,N]=fe(0,(e,t)=>{!k&&g&&g({direction:e>t?`top`:`bottom`})}),[P,ne]=(0,D.useState)([0,0]),[F,I]=(0,D.useState)([0,0]),[re,oe]=(0,D.useState)([0,0]),[se,L]=(0,D.useState)([0,0]),[z,ce]=ge(new Map),B=de(x,z,F[0]),V=Ae(P,k),H=Ae(F,k),U=Ae(re,k),ue=Ae(se,k),pe=Math.floor(V)<Math.floor(H+U),W=pe?V-ue:V-U,G=`${b}-nav-operations-hidden`,K=0,q=0;k&&c?(K=0,q=Math.max(0,H-W)):(K=Math.min(0,W-H),q=0);function ye(e){return e<K?K:e>q?q:e}let J=(0,D.useRef)(null),[Y,we]=(0,D.useState)();function je(){we(Date.now())}function Me(){J.current&&clearTimeout(J.current)}me(w,(e,t)=>{function n(e,t){e(e=>ye(e+t))}return pe?(k?n(j,e):n(N,t),Me(),je(),!0):!1}),(0,D.useEffect)(()=>(Me(),Y&&(J.current=setTimeout(()=>{we(0)},100)),Me),[Y]);let[Ne,Pe]=_e(B,W,k?A:M,H,U,ue,{...e,tabs:x}),Fe=ae((e=o)=>{let t=B.get(e)||{width:0,height:0,left:0,right:0,top:0};if(k){let e=A;c?t.right<A?e=t.right:t.right+t.width>A+W&&(e=t.right+t.width-W):t.left<-A?e=-t.left:t.left+t.width>-A+W&&(e=-(t.left+t.width-W)),N(0),j(ye(e))}else{let e=M;t.top<-M?e=-t.top:t.top+t.height>-M+W&&(e=-(t.top+t.height-W)),j(0),N(ye(e))}}),[X,Ie]=(0,D.useState)(),[Le,Re]=(0,D.useState)(!1),Z=x.filter(e=>!e.disabled).map(e=>e.key),Q=e=>{let t=Z.indexOf(X||o),n=Z.length,r=(t+e+n)%n,i=Z[r];Ie(i)},ze=(e,t)=>{let n=Z.indexOf(e),r=x.find(t=>t.key===e);xe(r?.closable,r?.closeIcon,u,r?.disabled)&&(t.preventDefault(),t.stopPropagation(),u.onEdit(`remove`,{key:e,event:t}),n===Z.length-1?Q(-1):Q(1))},Be=(e,t)=>{Re(!0),t.button===1&&ze(e,t)},Ve=e=>{let{code:t}=e,n=c&&k,r=Z[0],i=Z[Z.length-1];switch(t){case`ArrowLeft`:k&&Q(n?1:-1);break;case`ArrowRight`:k&&Q(n?-1:1);break;case`ArrowUp`:e.preventDefault(),k||Q(-1);break;case`ArrowDown`:e.preventDefault(),k||Q(1);break;case`Home`:e.preventDefault(),Ie(r);break;case`End`:e.preventDefault(),Ie(i);break;case`Enter`:case`Space`:e.preventDefault(),h(X??o,e);break;case`Backspace`:case`Delete`:ze(X,e);break}},He={};k?He.marginInlineStart=p:He.marginTop=p;let $=x.map((e,t)=>{let{key:n}=e;return D.createElement(Ee,{id:i,prefixCls:b,key:n,tab:e,className:v?.item,style:t===0?y?.item:{...He,...y?.item},closable:e.closable,editable:u,active:n===o,focus:n===X,renderWrapper:m,removeAriaLabel:d?.removeAriaLabel,tabCount:Z.length,currentPosition:t+1,onClick:e=>{h(n,e)},onKeyDown:Ve,onFocus:()=>{Le||Ie(n),Fe(n),je(),w.current&&(c||(w.current.scrollLeft=0),w.current.scrollTop=0)},onBlur:()=>{Ie(void 0)},onMouseDown:e=>Be(n,e),onMouseUp:()=>{Re(!1)}})}),Ue=()=>ce(()=>{let e=new Map,t=T.current?.getBoundingClientRect();return x.forEach(({key:n})=>{let r=T.current?.querySelector(`[data-node-key="${be(n)}"]`);if(r){let[i,a,o,s]=Oe(r,t);e.set(n,{width:i,height:a,left:o,top:s})}}),e});(0,D.useEffect)(()=>{Ue()},[x.map(e=>e.key).join(`_`)]);let We=he(()=>{let e=ke(S),t=ke(te),n=ke(C);ne([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);let r=ke(O);oe(r);let i=ke(E);L(i);let a=ke(T);I([a[0]-r[0],a[1]-r[1]]),Ue()}),Ge=x.slice(0,Ne),Ke=x.slice(Pe+1),qe=[...Ge,...Ke],Je=B.get(o),{style:Ye}=le({activeTabOffset:Je,horizontal:k,indicator:ee,rtl:c});(0,D.useEffect)(()=>{Fe()},[o,K,q,ve(Je),ve(B),k]),(0,D.useEffect)(()=>{We()},[c]);let Xe=!!qe.length,Ze=`${b}-nav-wrap`,Qe,$e,et,tt;return k?c?($e=A>0,Qe=A!==q):(Qe=A<0,$e=A!==K):(et=M<0,tt=M!==K),D.createElement(s,{onResize:We},D.createElement(`div`,{ref:R(t,S),role:`tablist`,"aria-orientation":k?`horizontal`:`vertical`,className:_(`${b}-nav`,n,v?.header),style:{...y?.header,...r},onKeyDown:()=>{je()}},D.createElement(Ce,{ref:te,position:`left`,extra:l,prefixCls:b}),D.createElement(s,{onResize:We},D.createElement(`div`,{className:_(Ze,{[`${Ze}-ping-left`]:Qe,[`${Ze}-ping-right`]:$e,[`${Ze}-ping-top`]:et,[`${Ze}-ping-bottom`]:tt}),ref:w},D.createElement(s,{onResize:We},D.createElement(`div`,{ref:T,className:`${b}-nav-list`,style:{transform:`translate(${A}px, ${M}px)`,transition:Y?`none`:void 0}},$,D.createElement(Se,{ref:O,prefixCls:b,locale:d,editable:u,style:{...$.length===0?void 0:He,visibility:Xe?`hidden`:null}}),D.createElement(`div`,{className:_(`${b}-ink-bar`,v?.indicator,{[`${b}-ink-bar-animated`]:a.inkBar}),style:{...Ye,...y?.indicator}}))))),D.createElement(Te,De({},e,{removeAriaLabel:d?.removeAriaLabel,ref:E,prefixCls:b,tabs:qe,className:!Xe&&G,popupStyle:y?.popup,tabMoving:!!Y})),D.createElement(Ce,{ref:C,position:`right`,extra:l,prefixCls:b})))}),Me=({renderTabBar:e,...t})=>e?e(t,je):D.createElement(je,t),Ne=D.forwardRef((e,t)=>
1{let{prefixCls:n,className:r,style:i,id:a,active:o,tabKey:s,children:c}=e,l=D.Children.count(c)>0;return D.createElement(`div`,{id:a&&`${a}-panel-${s}`,role:`tabpanel`,tabIndex:o&&l?0:-1,"aria-labelledby":a&&`${a}-tab-${s}`,"aria-hidden":!o,style:i,className:_(n,o&&`${n}-active`,r),ref:t},c)});function Pe(){return Pe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pe.apply(this,arguments)}var Fe=e=>{let{id:t,activeKey:n,animated:r,tabPosition:i,destroyOnHidden:a,contentStyle:o,contentClassName:s}=e,{prefixCls:c,tabs:l}=D.useContext(ie),u=r.tabPane,f=`${c}-tabpane`;return D.createElement(`div`,{className:_(`${c}-content-holder`)},D.createElement(`div`,{className:_(`${c}-content`,`${c}-content-${i}`,{[`${c}-content-animated`]:u})},l.map(e=>{let{key:i,forceRender:c,style:l,className:p,destroyOnHidden:m,...h}=e,g=i===n;return D.createElement(d,Pe({key:i,visible:g,forceRender:c,removeOnLeave:!!(a??m),leavedClassName:`${f}-hidden`},r.tabPaneMotion),({style:e,className:n},r)=>D.createElement(Ne,Pe({},h,{prefixCls:f,id:t,tabKey:i,animated:u,active:g,style:{...o,...l,...e},className:_(s,p,n),ref:r})))})))},X={},Ie=[],Le=e=>{Ie.push(e)};function Re(e,t){}function Z(e,t){}function Q(){X={}}function ze(e,t,n){!t&&!X[n]&&(e(!1,n),X[n]=!0)}function Be(e,t){ze(Re,e,t)}function Ve(e,t){ze(Z,e,t)}Be.preMessage=Le,Be.resetWarned=Q,Be.noteOnce=Ve;function He(e={inkBar:!0,tabPane:!1}){let t;return t=e===!1?{inkBar:!1,tabPane:!1}:e===!0?{inkBar:!0,tabPane:!1}:{inkBar:!0,...typeof e==`object`?e:{}},t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}function $(){return $=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$.apply(this,arguments)}var Ue=0,We=D.forwardRef((e,t)=>{let{id:n,prefixCls:r=`rc-tabs`,className:i,items:a,direction:o,activeKey:s,defaultActiveKey:c,editable:l,animated:u,tabPosition:d=`top`,tabBarGutter:f,tabBarStyle:p,tabBarExtraContent:m,locale:h,more:g,destroyOnHidden:ee,renderTabBar:v,onChange:y,onTabClick:b,onTabScroll:x,getPopupContainer:S,popupClassName:te,indicator:C,classNames:w,styles:T,...E}=e,O=D.useMemo(()=>(a||[]).filter(e=>e&&typeof e==`object`&&`key`in e),[a]),k=o===`rtl`,A=He(u),[j,M]=(0,D.useState)(!1);(0,D.useEffect)(()=>{M(re())},[]);let[N,P]=ne(c??O[0]?.key,s),[F,I]=(0,D.useState)(()=>O.findIndex(e=>e.key===N));(0,D.useEffect)(()=>{let e=O.findIndex(e=>e.key===N);e===-1&&(e=Math.max(0,Math.min(F,O.length-1)),P(O[e]?.key)),I(e)},[O.map(e=>e.key).join(`_`),N,F]);let[ae,oe]=ne(null,n);(0,D.useEffect)(()=>{n||(oe(`rc-tabs-${Ue}`),Ue+=1)},[]);function se(e,t){b?.(e,t);let n=e!==N;P(e),n&&y?.(e)}let L={id:ae,activeKey:N,animated:A,tabPosition:d,rtl:k,mobile:j},R={...L,editable:l,locale:h,more:g,tabBarGutter:f,onTabClick:se,onTabScroll:x,extra:m,style:p,getPopupContainer:S,popupClassName:_(te,w?.popup),indicator:C,styles:T,classNames:w},z=D.useMemo(()=>({tabs:O,prefixCls:r}),[O,r]);return D.createElement(ie.Provider,{value:z},D.createElement(`div`,$({ref:t,id:n,className:_(r,`${r}-${d}`,{[`${r}-mobile`]:j,[`${r}-editable`]:l,[`${r}-rtl`]:k},i)},E),D.createElement(Me,$({},R,{renderTabBar:v})),D.createElement(Fe,$({destroyOnHidden:ee},L,{contentStyle:T?.content,contentClassName:w?.content,animated:A}))))}),Ge={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Ke(e,t={inkBar:!0,tabPane:!1}){let n;return n=t===!1?{inkBar:!1,tabPane:!1}:t===!0?{inkBar:!0,tabPane:!0}:{inkBar:!0,...typeof t==`object`?t:{}},n.tabPane&&(n.tabPaneMotion={...Ge,motionName:b(e,`switch`)}),n}function qe(e){return e.filter(e=>e)}function Je(e,t){return e?e.map(e=>({...e,destroyOnHidden:e.destroyOnHidden??e.destroyInactiveTabPane})):qe(h(t).map(e=>{if(D.isValidElement(e)){let{key:t,props:n}=e,{tab:r,...i}=n||{};return{key:String(t),...i,label:r}}return null}))}var Ye=e=>{let{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:`none`,"&-start":{opacity:0}
vendor: 12,650 bytes, lines 1-2
1,"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:`absolute`,transition:`none`,inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[S(e,`slide-up`),S(e,`slide-down`)]]},Xe=e=>{let{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:i,colorBorderSecondary:a,itemSelectedColor:o}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${u(e.lineWidth)} ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:o,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:f(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:`none`},[`${t}-ink-bar`]:{visibility:`hidden`}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:u(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:u(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${u(e.borderRadiusLG)} 0 0 ${u(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Ze=e=>{let{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:{...c(e),position:`absolute`,top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:`block`,"&-hidden":{display:`none`},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${u(r)} 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":{...o,display:`flex`,alignItems:`center`,minWidth:e.tabsDropdownWidth,margin:0,padding:`${u(e.paddingXXS)} ${u(e.paddingSM)}`,color:e.colorText,fontWeight:`normal`,fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:`pointer`,transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:`nowrap`},"&-remove":{flex:`none`,marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorIcon,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`}}}}}}},Qe=e=>{let{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:a,verticalItemMargin:o,motionDurationSlow:s,calc:c}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:`column`,[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:`absolute`,right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${u(e.lineWidth)} ${e.lineType} ${r}`,content:`''`},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:[`width`,`left`,`right`].map(e=>`${e} ${s}`).join(`, `)}},[`${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},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
2        > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:`column`,minWidth:c(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:a,textAlign:`center`},[`${t}-tab + ${t}-tab`]:{margin:o},[`${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},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:[`height`,`top`].map(e=>`${e} ${s}`).join(`, `)}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:`1 0 auto`,flexDirection:`column`}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:u(c(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${u(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:c(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${u(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},$e=e=>{let{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:i,cardHeightLG:a,horizontalItemPaddingSM:o,horizontalItemPaddingLG:s}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:s,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:i,minHeight:i}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${u(e.borderRadius)} ${u(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${u(e.borderRadius)} ${u(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${u(e.borderRadius)} ${u(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${u(e.borderRadius)} 0 0 ${u(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:a,minHeight:a}}}}}},et=e=>{let{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:a,horizontalItemPadding:o,itemSelectedColor:s,itemColor:c}=e,l=`${t}-tab`;return{[l]:{position:`relative`,WebkitTouchCallout:`none`,WebkitTapHighlightColor:`transparent`,display:`inline-flex`,alignItems:`center`,padding:o,fontSize:e.titleFontSize,background:`transparent`,border:0,outline:`none`,cursor:`pointer`,color:c,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:`none`,transition:`all ${e.motionDurationSlow}`,[`${l}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:`none`,lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:`transparent`,border:`none`,outline:`none`,cursor:`pointer`,transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading},...p(e)},"&:hover":{color:r},[`&${l}-active ${l}-btn`]:{color:s},[`&${l}-focus ${l}-btn:focus-visible`]:f(e),[`&${l}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`},[`&${l}-disabled ${l}-btn, &${l}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${l}-remove ${i}`]:{margin:0,verticalAlign:`middle`},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${l} + ${l}`]:{margin:{_skip_check_:!0,value:a}}}},tt=e=>{let{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:i,calc:a}=e;return{[`${t}-rtl`]:{direction:`rtl`,[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:e.marginSM}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:e.marginXS},marginLeft:{_skip_check_:!0,value:a(e.marginXXS).mul(-1).equal()},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:`rtl`},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:`right`}}}}},nt=e=>{let{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:i,itemHoverColor:a,itemActiveColor:o,colorBorderSecondary:s}=e;return{[t]:{...c(e),display:`flex`,[`> ${t}-nav, > div > ${t}-nav`]:{position:`relative`,display:`flex`,flex:`none`,alignItems:`center`,[`${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 ${e.motionDurationSlow}`,content:`''`,pointerEvents:`none`}},[`${t}-nav-list`]:{position:`relative`,display:`flex`,transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:`flex`,alignSelf:`stretch`},[`${t}-nav-operations-hidden`]:{position:`absolute`,visibility:`hidden`,pointerEvents:`none`},[`${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:`''`}},[`${t}-nav-add`]:{minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:i},background:`transparent`,border:`${u(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)} 0 0`,outline:`none`,cursor:`pointer`,color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:o},...p(e,-3)}},[`${t}-extra-content`]:{flex:`none`},[`${t}-ink-bar`]:{position:`absolute`,background:e.inkBarColor,pointerEvents:`none`},...et(e),[`${t}-content`]:{position:`relative`,width:`100%`},[`${t}-content-holder`]:{flex:`auto`,minWidth:0,minHeight:0},[`${t}-tabpane`]:{...p(e),"&-hidden":{display:`none`}}},[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:`auto`}}}}}},rt=n(`Tabs`,e=>{let t=ee(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${u(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${u(e.horizontalItemGutter)}`});return[$e(t),tt(t),Qe(t),Ze(t),Xe(t),nt(t),Ye(t)]},e=>{let{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:i,controlHeightLG:a}=e,o=t||a,s=n||i,c=r||a+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:o,cardHeightSM:s,cardHeightLG:c,cardPadding:`${(o-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(s-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(c-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:``,horizontalItemMarginRTL:``,horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}),it=()=>null,at=D.forwardRef((e,t)=>
2{let{type:n,className:a,rootClassName:o,size:s,onEdit:c,hideAdd:l,centered:u,addIcon:d,removeIcon:f,moreIcon:p,more:h,popupClassName:g,children:ee,items:b,animated:S,style:te,indicatorSize:C,indicator:w,classNames:E,styles:O,destroyInactiveTabPane:k,destroyOnHidden:j,tabPlacement:M,tabPosition:N,...P}=e,{prefixCls:ne}=P,{getPrefixCls:F,direction:I,getPopupContainer:re,className:ie,style:ae,classNames:oe,styles:se}=m(`tabs`),{tabs:L}=D.useContext(i),R=F(`tabs`,ne),z=v(R),[ce,B]=rt(R,z),V=D.useRef(null);D.useImperativeHandle(t,()=>({nativeElement:V.current}));let H;n===`editable-card`&&(H={onEdit:(e,{key:t,event:n})=>{c?.(e===`add`?n:t,e)},removeIcon:f??L?.removeIcon??D.createElement(y,null),addIcon:(d??L?.addIcon)||D.createElement(A,null),showAdd:l!==!0});let U=F(),le=x(s),ue=Je(b,ee),de=Ke(R,S),fe={align:w?.align??L?.indicator?.align,size:w?.size??C??L?.indicator?.size??L?.indicatorSize},pe=D.useMemo(()=>{let e=M??N??void 0,t=I===`rtl`;switch(e){case`start`:return t?`right`:`left`;case`end`:return t?`left`:`right`;default:return e}},[M,N,I]),W={...e,size:le,tabPlacement:pe,items:ue},[G,K]=r([oe,E],[se,O],{props:W},{popup:{_default:`root`}});return D.createElement(We,{ref:V,direction:I,getPopupContainer:re,...P,items:ue,className:_({[`${R}-large`]:le===`large`,[`${R}-small`]:le===`small`,[`${R}-card`]:[`card`,`editable-card`].includes(n),[`${R}-editable-card`]:n===`editable-card`,[`${R}-centered`]:u},ie,a,o,G.root,ce,B,z),classNames:{...G,popup:_(g,ce,B,z,G.popup?.root)},styles:K,style:{...K.root,...ae,...te},editable:H,more:{icon:L?.more?.icon??L?.moreIcon??p??D.createElement(T,null),transitionName:`${U}-slide-up`,...h},prefixCls:R,animated:de,indicator:fe,destroyOnHidden:j??k,tabPosition:pe})});at.TabPane=it;export{A as n,at as t};

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.