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



Your IP : 18.117.72.24


Current Path : /var/www/qpms/assets/
Upload File :
Current File : /var/www/qpms/assets/Table-Bjn0CUkG.js

import{ad as xn,aD as Ro,r as s,f as zt,I as nt,a as le,g as Ct,c as U,a$ as _a,ab as fr,b0 as Aa,an as Jt,au as qt,b1 as Fa,u as Wa,q as Va,k as B,b2 as Sn,aR as ko,j as fn,m as Ut,b3 as $n,b4 as Po,aQ as Yn,U as Qt,aH as Mt,b5 as Xa,b6 as qa,o as To,b7 as Ua,b8 as bt,X as pr,b9 as Ga,ba as Ko,Y as Bo,bb as Ya,bc as Ja,bd as Qa,be as Za,bf as ei,l as Jn,bg as zr,av as kn,aZ as Pn,aU as wn,bh as ti,z as ni,bi as ri,aE as mt,Z as he,d as F,w as Et,_ as gt,bj as oi,B as En,bk as Hr,aN as ie,b as ye,K as Ye,e as I,p as dn,G as Tn,bl as ai,bm as ii,bn as li,bo as si,bp as ci,bq as di,af as ui,ag as fi,br as pi,a3 as Do,aA as mi,bs as un,at as Lr,bt as Mo,bu as mr,bv as gr,bw as jr,bx as _r,am as gi,by as Ar,bz as zo,aI as Ho,aJ as Lo,aK as jo,aL as A,aM as _o,bA as vi,C as hi,aG as bi,al as yi,F as Ci,a_ as xi,bB as Fr,bC as Si,bD as $i,ah as wi}from"./index-CvUjCcnC.js";import{C as In,g as Ei}from"./index-Bcns0PqO.js";import{u as Ao,T as Qn,g as Fo,a as Ii,b as Ni,c as Oi,d as Ri,R as Wo}from"./index-Ox-82G5m.js";import{S as ki}from"./index-cBpPe4Bv.js";import{u as Pi}from"./responsiveObserver-DEIyf_nc.js";const Ti=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}});function Zn(e){return e!=null&&e===e.window}const Ki=e=>{var t,r;if(typeof window>"u")return 0;let n=0;return Zn(e)?n=e.pageYOffset:e instanceof Document?n=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(n=e.scrollTop),e&&!Zn(e)&&typeof n!="number"&&(n=(r=((t=e.ownerDocument)!==null&&t!==void 0?t:e).documentElement)===null||r===void 0?void 0:r.scrollTop),n};function Bi(e,t,r,n){const o=r-t;return e/=n/2,e<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}function Di(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:r=()=>window,callback:n,duration:o=450}=t,l=r(),d=Ki(l),a=Date.now(),i=()=>{const f=Date.now()-a,u=Bi(f>o?o:f,d,e,o);Zn(l)?l.scrollTo(window.pageXOffset,u):l instanceof Document||l.constructor.name==="HTMLDocument"?l.documentElement.scrollTop=u:l.scrollTop=u,f<o?xn(i):typeof n=="function"&&n()};xn(i)}var Vo=function(t){if(Ro()&&window.document.documentElement){var r=Array.isArray(t)?t:[t],n=window.document.documentElement;return r.some(function(o){return o in n.style})}return!1},Mi=function(t,r){if(!Vo(t))return!1;var n=document.createElement("div"),o=n.style[t];return n.style[t]=r,n.style[t]!==o};function zi(e,t){return!Array.isArray(e)&&t!==void 0?Mi(e,t):Vo(e)}function Xo(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=s.useRef({}),r=Ao(),n=Pi();return zt(()=>{const o=n.subscribe(l=>{t.current=l,e&&r()});return()=>n.unsubscribe(o)},[]),t.current}var Hi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},Li=function(t,r){return s.createElement(nt,le({},t,{ref:r,icon:Hi}))},er=s.forwardRef(Li),ji={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},_i=function(t,r){return s.createElement(nt,le({},t,{ref:r,icon:ji}))},Wr=s.forwardRef(_i);const qo=s.createContext({}),Nn=s.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var Ai=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const Uo=e=>{const{prefixCls:t,className:r,dashed:n}=e,o=Ai(e,["prefixCls","className","dashed"]),{getPrefixCls:l}=s.useContext(Ct),d=l("menu",t),a=U({[`${d}-item-divider-dashed`]:!!n},r);return s.createElement(_a,Object.assign({className:a},o))},Go=e=>{var t;const{className:r,children:n,icon:o,title:l,danger:d}=e,{prefixCls:a,firstLevel:i,direction:c,disableMenuItemTitleTooltip:f,inlineCollapsed:u}=s.useContext(Nn),m=y=>{const C=s.createElement("span",{className:`${a}-title-content`},n);return(!o||s.isValidElement(n)&&n.type==="span")&&n&&y&&i&&typeof n=="string"?s.createElement("div",{className:`${a}-inline-collapsed-noicon`},n.charAt(0)):C},{siderCollapsed:p}=s.useContext(qo);let g=l;typeof l>"u"?g=i?n:"":l===!1&&(g="");const h={title:g};!p&&!u&&(h.title=null,h.open=!1);const v=fr(n).length;let b=s.createElement(Aa,Object.assign({},Jt(e,["title","icon","danger"]),{className:U({[`${a}-item-danger`]:d,[`${a}-item-only-child`]:(o?v+1:v)===1},r),title:typeof l=="string"?l:void 0}),qt(o,{className:U(s.isValidElement(o)?(t=o.props)===null||t===void 0?void 0:t.className:"",`${a}-item-icon`)}),m(u));return f||(b=s.createElement(Qn,Object.assign({},h,{placement:c==="rtl"?"left":"right",overlayClassName:`${a}-inline-collapsed-tooltip`}),b)),b};var Fi=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const On=s.createContext(null),Yo=s.forwardRef((e,t)=>{const{children:r}=e,n=Fi(e,["children"]),o=s.useContext(On),l=s.useMemo(()=>Object.assign(Object.assign({},o),n),[o,n.prefixCls,n.mode,n.selectable,n.rootClassName]),d=Fa(r),a=Wa(t,d?r.ref:null);return s.createElement(On.Provider,{value:l},s.createElement(Va,{space:!0},d?s.cloneElement(r,{ref:a}):r))}),Wi=e=>{const{componentCls:t,motionDurationSlow:r,horizontalLineHeight:n,colorSplit:o,lineWidth:l,lineType:d,itemPaddingInline:a}=e;return{[`${t}-horizontal`]:{lineHeight:n,border:0,borderBottom:`${B(l)} ${d} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:a},[`> ${t}-item:hover,
        > ${t}-item-active,
        > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${r}`,`background ${r}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},Vi=e=>{let{componentCls:t,menuArrowOffset:r,calc:n}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,
    ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${B(n(r).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${B(r)})`}}}}},Vr=e=>Object.assign({},Sn(e)),Xr=(e,t)=>{const{componentCls:r,itemColor:n,itemSelectedColor:o,groupTitleColor:l,itemBg:d,subMenuItemBg:a,itemSelectedBg:i,activeBarHeight:c,activeBarWidth:f,activeBarBorderWidth:u,motionDurationSlow:m,motionEaseInOut:p,motionEaseOut:g,itemPaddingInline:h,motionDurationMid:v,itemHoverColor:b,lineType:y,colorSplit:C,itemDisabledColor:x,dangerItemColor:S,dangerItemHoverColor:R,dangerItemSelectedColor:N,dangerItemActiveBg:O,dangerItemSelectedBg:w,popupBg:E,itemHoverBg:M,itemActiveBg:P,menuSubMenuBg:k,horizontalItemSelectedColor:$,horizontalItemSelectedBg:T,horizontalItemBorderRadius:D,horizontalItemHoverBg:K}=e;return{[`${r}-${t}, ${r}-${t} > ${r}`]:{color:n,background:d,[`&${r}-root:focus-visible`]:Object.assign({},Vr(e)),[`${r}-item-group-title`]:{color:l},[`${r}-submenu-selected`]:{[`> ${r}-submenu-title`]:{color:o}},[`${r}-item, ${r}-submenu-title`]:{color:n,[`&:not(${r}-item-disabled):focus-visible`]:Object.assign({},Vr(e))},[`${r}-item-disabled, ${r}-submenu-disabled`]:{color:`${x} !important`},[`${r}-item:not(${r}-item-selected):not(${r}-submenu-selected)`]:{[`&:hover, > ${r}-submenu-title:hover`]:{color:b}},[`&:not(${r}-horizontal)`]:{[`${r}-item:not(${r}-item-selected)`]:{"&:hover":{backgroundColor:M},"&:active":{backgroundColor:P}},[`${r}-submenu-title`]:{"&:hover":{backgroundColor:M},"&:active":{backgroundColor:P}}},[`${r}-item-danger`]:{color:S,[`&${r}-item:hover`]:{[`&:not(${r}-item-selected):not(${r}-submenu-selected)`]:{color:R}},[`&${r}-item:active`]:{background:O}},[`${r}-item a`]:{"&, &:hover":{color:"inherit"}},[`${r}-item-selected`]:{color:o,[`&${r}-item-danger`]:{color:N},"a, a:hover":{color:"inherit"}},[`& ${r}-item-selected`]:{backgroundColor:i,[`&${r}-item-danger`]:{backgroundColor:w}},[`&${r}-submenu > ${r}`]:{backgroundColor:k},[`&${r}-popup > ${r}`]:{backgroundColor:E},[`&${r}-submenu-popup > ${r}`]:{backgroundColor:E},[`&${r}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${r}-item, > ${r}-submenu`]:{top:u,marginTop:e.calc(u).mul(-1).equal(),marginBottom:0,borderRadius:D,"&::after":{position:"absolute",insetInline:h,bottom:0,borderBottom:`${B(c)} solid transparent`,transition:`border-color ${m} ${p}`,content:'""'},"&:hover, &-active, &-open":{background:K,"&::after":{borderBottomWidth:c,borderBottomColor:$}},"&-selected":{color:$,backgroundColor:T,"&:hover":{backgroundColor:T},"&::after":{borderBottomWidth:c,borderBottomColor:$}}}}),[`&${r}-root`]:{[`&${r}-inline, &${r}-vertical`]:{borderInlineEnd:`${B(u)} ${y} ${C}`}},[`&${r}-inline`]:{[`${r}-sub${r}-inline`]:{background:a},[`${r}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${B(f)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${v} ${g}`,`opacity ${v} ${g}`].join(","),content:'""'},[`&${r}-item-danger`]:{"&::after":{borderInlineEndColor:N}}},[`${r}-selected, ${r}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${v} ${p}`,`opacity ${v} ${p}`].join(",")}}}}}},qr=e=>{const{componentCls:t,itemHeight:r,itemMarginInline:n,padding:o,menuArrowSize:l,marginXS:d,itemMarginBlock:a,itemWidth:i}=e,c=e.calc(l).add(o).add(d).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:r,lineHeight:B(r),paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:n,marginBlock:a,width:i},[`> ${t}-item,
            > ${t}-submenu > ${t}-submenu-title`]:{height:r,lineHeight:B(r)},[`${t}-item-group-list ${t}-submenu-title,
            ${t}-submenu-title`]:{paddingInlineEnd:c}}},Xi=e=>{const{componentCls:t,iconCls:r,itemHeight:n,colorTextLightSolid:o,dropdownWidth:l,controlHeightLG:d,motionDurationMid:a,motionEaseOut:i,paddingXL:c,itemMarginInline:f,fontSizeLG:u,motionDurationSlow:m,paddingXS:p,boxShadowSecondary:g,collapsedWidth:h,collapsedIconSize:v}=e,b={height:n,lineHeight:B(n),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},qr(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},qr(e)),{boxShadow:g})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:l,maxHeight:`calc(100vh - ${B(e.calc(d).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${m}`,`background ${m}`,`padding ${a} ${i}`,`padding-inline calc(50% - ${B(e.calc(u).div(2).equal())} - ${B(f)})`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:b,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:b}},{[`${t}-inline-collapsed`]:{width:h,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,textAlign:"center"}}},[`> ${t}-item,
          > ${t}-item-group > ${t}-item-group-list > ${t}-item,
          > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
          > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${B(e.calc(u).div(2).equal())} - ${B(f)})`,textOverflow:"clip",[`
            ${t}-submenu-arrow,
            ${t}-submenu-expand-icon
          `]:{opacity:0},[`${t}-item-icon, ${r}`]:{margin:0,fontSize:v,lineHeight:B(n),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${r}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${r}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},ko),{paddingInline:p})}}]},Ur=e=>{const{componentCls:t,motionDurationSlow:r,motionDurationMid:n,motionEaseInOut:o,motionEaseOut:l,iconCls:d,iconSize:a,iconMarginInlineEnd:i}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${r}`,`background ${r}`,`padding ${r} ${o}`].join(","),[`${t}-item-icon, ${d}`]:{minWidth:a,fontSize:a,transition:[`font-size ${n} ${l}`,`margin ${r} ${o}`,`color ${r}`].join(","),"+ span":{marginInlineStart:i,opacity:1,transition:[`opacity ${r} ${o}`,`margin ${r}`,`color ${r}`].join(",")}},[`${t}-item-icon`]:Object.assign({},Xa()),[`&${t}-item-only-child`]:{[`> ${d}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Gr=e=>{const{componentCls:t,motionDurationSlow:r,motionEaseInOut:n,borderRadius:o,menuArrowSize:l,menuArrowOffset:d}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:l,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${r} ${n}, opacity ${r}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(l).mul(.6).equal(),height:e.calc(l).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${r} ${n}`,`transform ${r} ${n}`,`top ${r} ${n}`,`color ${r} ${n}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${B(e.calc(d).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${B(d)})`}}}}},qi=e=>{const{antCls:t,componentCls:r,fontSize:n,motionDurationSlow:o,motionDurationMid:l,motionEaseInOut:d,paddingXS:a,padding:i,colorSplit:c,lineWidth:f,zIndexPopup:u,borderRadiusLG:m,subMenuItemBorderRadius:p,menuArrowSize:g,menuArrowOffset:h,lineType:v,groupTitleLineHeight:b,groupTitleFontSize:y}=e;return[{"":{[`${r}`]:Object.assign(Object.assign({},Yn()),{"&-hidden":{display:"none"}})},[`${r}-submenu-hidden`]:{display:"none"}},{[r]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Qt(e)),Yn()),{marginBottom:0,paddingInlineStart:0,fontSize:n,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${r}-item`]:{flex:"none"}},[`${r}-item, ${r}-submenu, ${r}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${r}-item-group-title`]:{padding:`${B(a)} ${B(i)}`,fontSize:y,lineHeight:b,transition:`all ${o}`},[`&-horizontal ${r}-submenu`]:{transition:[`border-color ${o} ${d}`,`background ${o} ${d}`].join(",")},[`${r}-submenu, ${r}-submenu-inline`]:{transition:[`border-color ${o} ${d}`,`background ${o} ${d}`,`padding ${l} ${d}`].join(",")},[`${r}-submenu ${r}-sub`]:{cursor:"initial",transition:[`background ${o} ${d}`,`padding ${o} ${d}`].join(",")},[`${r}-title-content`]:{transition:`color ${o}`,[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${r}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${r}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:v,borderWidth:0,borderTopWidth:f,marginBlock:f,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Ur(e)),{[`${r}-item-group`]:{[`${r}-item-group-list`]:{margin:0,padding:0,[`${r}-item, ${r}-submenu-title`]:{paddingInline:`${B(e.calc(n).mul(2).equal())} ${B(i)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:u,borderRadius:m,boxShadow:"none",transformOrigin:"0 0",[`&${r}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${r}`]:Object.assign(Object.assign(Object.assign({borderRadius:m},Ur(e)),Gr(e)),{[`${r}-item, ${r}-submenu > ${r}-submenu-title`]:{borderRadius:p},[`${r}-submenu-title::after`]:{transition:`transform ${o} ${d}`}})},"\n          &-placement-leftTop,\n          &-placement-bottomRight,\n          ":{transformOrigin:"100% 0"},"\n          &-placement-leftBottom,\n          &-placement-topRight,\n          ":{transformOrigin:"100% 100%"},"\n          &-placement-rightBottom,\n          &-placement-topLeft,\n          ":{transformOrigin:"0 100%"},"\n          &-placement-bottomLeft,\n          &-placement-rightTop,\n          ":{transformOrigin:"0 0"},"\n          &-placement-leftTop,\n          &-placement-leftBottom\n          ":{paddingInlineEnd:e.paddingXS},"\n          &-placement-rightTop,\n          &-placement-rightBottom\n          ":{paddingInlineStart:e.paddingXS},"\n          &-placement-topRight,\n          &-placement-topLeft\n          ":{paddingBottom:e.paddingXS},"\n          &-placement-bottomRight,\n          &-placement-bottomLeft\n          ":{paddingTop:e.paddingXS}}}),Gr(e)),{[`&-inline-collapsed ${r}-submenu-arrow,
        &-inline ${r}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${B(h)})`},"&::after":{transform:`rotate(45deg) translateX(${B(e.calc(h).mul(-1).equal())})`}},[`${r}-submenu-open${r}-submenu-inline > ${r}-submenu-title > ${r}-submenu-arrow`]:{transform:`translateY(${B(e.calc(g).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${B(e.calc(h).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${B(h)})`}}})},{[`${t}-layout-header`]:{[r]:{lineHeight:"inherit"}}}]},Ui=e=>{var t,r,n;const{colorPrimary:o,colorError:l,colorTextDisabled:d,colorErrorBg:a,colorText:i,colorTextDescription:c,colorBgContainer:f,colorFillAlter:u,colorFillContent:m,lineWidth:p,lineWidthBold:g,controlItemBgActive:h,colorBgTextHover:v,controlHeightLG:b,lineHeight:y,colorBgElevated:C,marginXXS:x,padding:S,fontSize:R,controlHeightSM:N,fontSizeLG:O,colorTextLightSolid:w,colorErrorHover:E}=e,M=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,P=(r=e.activeBarBorderWidth)!==null&&r!==void 0?r:p,k=(n=e.itemMarginInline)!==null&&n!==void 0?n:e.marginXXS,$=new Mt(w).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:i,itemColor:i,colorItemTextHover:i,itemHoverColor:i,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:o,itemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:f,itemBg:f,colorItemBgHover:v,itemHoverBg:v,colorItemBgActive:m,itemActiveBg:h,colorSubItemBg:u,subMenuItemBg:u,colorItemBgSelected:h,itemSelectedBg:h,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:M,colorActiveBarHeight:g,activeBarHeight:g,colorActiveBarBorderSize:p,activeBarBorderWidth:P,colorItemTextDisabled:d,itemDisabledColor:d,colorDangerItemText:l,dangerItemColor:l,colorDangerItemTextHover:l,dangerItemHoverColor:l,colorDangerItemTextSelected:l,dangerItemSelectedColor:l,colorDangerItemBgActive:a,dangerItemActiveBg:a,colorDangerItemBgSelected:a,dangerItemSelectedBg:a,itemMarginInline:k,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:b,groupTitleLineHeight:y,collapsedWidth:b*2,popupBg:C,itemMarginBlock:x,itemPaddingInline:S,horizontalLineHeight:`${b*1.15}px`,iconSize:R,iconMarginInlineEnd:N-R,collapsedIconSize:O,groupTitleFontSize:R,darkItemDisabledColor:new Mt(w).setAlpha(.25).toRgbString(),darkItemColor:$,darkDangerItemColor:l,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:w,darkItemSelectedBg:o,darkDangerItemSelectedBg:l,darkItemHoverBg:"transparent",darkGroupTitleColor:$,darkItemHoverColor:w,darkDangerItemHoverColor:E,darkDangerItemSelectedColor:w,darkDangerItemActiveBg:l,itemWidth:M?`calc(100% + ${P}px)`:`calc(100% - ${k*2}px)`}},Gi=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return fn("Menu",o=>{const{colorBgElevated:l,controlHeightLG:d,fontSize:a,darkItemColor:i,darkDangerItemColor:c,darkItemBg:f,darkSubMenuItemBg:u,darkItemSelectedColor:m,darkItemSelectedBg:p,darkDangerItemSelectedBg:g,darkItemHoverBg:h,darkGroupTitleColor:v,darkItemHoverColor:b,darkItemDisabledColor:y,darkDangerItemHoverColor:C,darkDangerItemSelectedColor:x,darkDangerItemActiveBg:S,popupBg:R,darkPopupBg:N}=o,O=o.calc(a).div(7).mul(5).equal(),w=Ut(o,{menuArrowSize:O,menuHorizontalHeight:o.calc(d).mul(1.15).equal(),menuArrowOffset:o.calc(O).mul(.25).equal(),menuSubMenuBg:l,calc:o.calc,popupBg:R}),E=Ut(w,{itemColor:i,itemHoverColor:b,groupTitleColor:v,itemSelectedColor:m,itemBg:f,popupBg:N,subMenuItemBg:u,itemActiveBg:"transparent",itemSelectedBg:p,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:h,itemDisabledColor:y,dangerItemColor:c,dangerItemHoverColor:C,dangerItemSelectedColor:x,dangerItemActiveBg:S,dangerItemSelectedBg:g,menuSubMenuBg:u,horizontalItemSelectedColor:m,horizontalItemSelectedBg:p});return[qi(w),Wi(w),Xi(w),Xr(w,"light"),Xr(E,"dark"),Vi(w),Fo(w),$n(w,"slide-up"),$n(w,"slide-down"),Po(w,"zoom-big")]},Ui,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:r,unitless:{groupTitleLineHeight:!0}})(e,t)},Jo=e=>{var t;const{popupClassName:r,icon:n,title:o,theme:l}=e,d=s.useContext(Nn),{prefixCls:a,inlineCollapsed:i,theme:c}=d,f=qa();let u;if(!n)u=i&&!f.length&&o&&typeof o=="string"?s.createElement("div",{className:`${a}-inline-collapsed-noicon`},o.charAt(0)):s.createElement("span",{className:`${a}-title-content`},o);else{const g=s.isValidElement(o)&&o.type==="span";u=s.createElement(s.Fragment,null,qt(n,{className:U(s.isValidElement(n)?(t=n.props)===null||t===void 0?void 0:t.className:"",`${a}-item-icon`)}),g?o:s.createElement("span",{className:`${a}-title-content`},o))}const m=s.useMemo(()=>Object.assign(Object.assign({},d),{firstLevel:!1}),[d]),[p]=To("Menu");return s.createElement(Nn.Provider,{value:m},s.createElement(Ua,Object.assign({},Jt(e,["icon"]),{title:u,popupClassName:U(a,r,`${a}-${l||c}`),popupStyle:{zIndex:p}})))};var Yi=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function Fn(e){return e===null||e===!1}const Ji={item:Go,submenu:Jo,divider:Uo},Qi=s.forwardRef((e,t)=>{var r;const n=s.useContext(On),o=n||{},{getPrefixCls:l,getPopupContainer:d,direction:a,menu:i}=s.useContext(Ct),c=l(),{prefixCls:f,className:u,style:m,theme:p="light",expandIcon:g,_internalDisableMenuItemTitleTooltip:h,inlineCollapsed:v,siderCollapsed:b,rootClassName:y,mode:C,selectable:x,onClick:S,overflowedIndicatorPopupClassName:R}=e,N=Yi(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),O=Jt(N,["collapsedWidth"]);(r=o.validator)===null||r===void 0||r.call(o,{mode:C});const w=bt(function(){var Q;S==null||S.apply(void 0,arguments),(Q=o.onClick)===null||Q===void 0||Q.call(o)}),E=o.mode||C,M=x??o.selectable,P=s.useMemo(()=>b!==void 0?b:v,[v,b]),k={horizontal:{motionName:`${c}-slide-up`},inline:Bo(c),other:{motionName:`${c}-zoom-big`}},$=l("menu",f||o.prefixCls),T=pr($),[D,K,z]=Gi($,T,!n),H=U(`${$}-${p}`,i==null?void 0:i.className,u),L=s.useMemo(()=>{var Q,Y;if(typeof g=="function"||Fn(g))return g||null;if(typeof o.expandIcon=="function"||Fn(o.expandIcon))return o.expandIcon||null;if(typeof(i==null?void 0:i.expandIcon)=="function"||Fn(i==null?void 0:i.expandIcon))return(i==null?void 0:i.expandIcon)||null;const de=(Q=g??(o==null?void 0:o.expandIcon))!==null&&Q!==void 0?Q:i==null?void 0:i.expandIcon;return qt(de,{className:U(`${$}-submenu-expand-icon`,s.isValidElement(de)?(Y=de.props)===null||Y===void 0?void 0:Y.className:void 0)})},[g,o==null?void 0:o.expandIcon,i==null?void 0:i.expandIcon,$]),W=s.useMemo(()=>({prefixCls:$,inlineCollapsed:P||!1,direction:a,firstLevel:!0,theme:p,mode:E,disableMenuItemTitleTooltip:h}),[$,P,a,h,p]);return D(s.createElement(On.Provider,{value:null},s.createElement(Nn.Provider,{value:W},s.createElement(Ga,Object.assign({getPopupContainer:d,overflowedIndicator:s.createElement(Ko,null),overflowedIndicatorPopupClassName:U($,`${$}-${p}`,R),mode:E,selectable:M,onClick:w},O,{inlineCollapsed:P,style:Object.assign(Object.assign({},i==null?void 0:i.style),m),className:H,prefixCls:$,direction:a,defaultMotions:k,expandIcon:L,ref:t,rootClassName:U(y,K,o.rootClassName,z,T),_internalComponents:Ji})))))}),Zt=s.forwardRef((e,t)=>{const r=s.useRef(null),n=s.useContext(qo);return s.useImperativeHandle(t,()=>({menu:r.current,focus:o=>{var l;(l=r.current)===null||l===void 0||l.focus(o)}})),s.createElement(Qi,Object.assign({ref:r},e,n))});Zt.Item=Go;Zt.SubMenu=Jo;Zt.Divider=Uo;Zt.ItemGroup=Ya;const Zi=e=>{const{componentCls:t,menuCls:r,colorError:n,colorTextLightSolid:o}=e,l=`${r}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${r} ${l}`]:{[`&${l}-danger:not(${l}-disabled)`]:{color:n,"&:hover":{color:o,backgroundColor:n}}}}}},el=e=>{const{componentCls:t,menuCls:r,zIndexPopup:n,dropdownArrowDistance:o,sizePopupArrow:l,antCls:d,iconCls:a,motionDurationMid:i,paddingBlock:c,fontSize:f,dropdownEdgeChildPadding:u,colorTextDisabled:m,fontSizeIcon:p,controlPaddingHorizontal:g,colorBgElevated:h}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:n,display:"block","&::before":{position:"absolute",insetBlock:e.calc(l).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${d}-btn`]:{[`& > ${a}-down, & > ${d}-btn-icon > ${a}-down`]:{fontSize:p}},[`${t}-wrap`]:{position:"relative",[`${d}-btn > ${a}-down`]:{fontSize:p},[`${a}-down::before`]:{transition:`transform ${i}`}},[`${t}-wrap-open`]:{[`${a}-down::before`]:{transform:"rotate(180deg)"}},"\n        &-hidden,\n        &-menu-hidden,\n        &-menu-submenu-hidden\n      ":{display:"none"},[`&${d}-slide-down-enter${d}-slide-down-enter-active${t}-placement-bottomLeft,
          &${d}-slide-down-appear${d}-slide-down-appear-active${t}-placement-bottomLeft,
          &${d}-slide-down-enter${d}-slide-down-enter-active${t}-placement-bottom,
          &${d}-slide-down-appear${d}-slide-down-appear-active${t}-placement-bottom,
          &${d}-slide-down-enter${d}-slide-down-enter-active${t}-placement-bottomRight,
          &${d}-slide-down-appear${d}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Ja},[`&${d}-slide-up-enter${d}-slide-up-enter-active${t}-placement-topLeft,
          &${d}-slide-up-appear${d}-slide-up-appear-active${t}-placement-topLeft,
          &${d}-slide-up-enter${d}-slide-up-enter-active${t}-placement-top,
          &${d}-slide-up-appear${d}-slide-up-appear-active${t}-placement-top,
          &${d}-slide-up-enter${d}-slide-up-enter-active${t}-placement-topRight,
          &${d}-slide-up-appear${d}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Qa},[`&${d}-slide-down-leave${d}-slide-down-leave-active${t}-placement-bottomLeft,
          &${d}-slide-down-leave${d}-slide-down-leave-active${t}-placement-bottom,
          &${d}-slide-down-leave${d}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Za},[`&${d}-slide-up-leave${d}-slide-up-leave-active${t}-placement-topLeft,
          &${d}-slide-up-leave${d}-slide-up-leave-active${t}-placement-top,
          &${d}-slide-up-leave${d}-slide-up-leave-active${t}-placement-topRight`]:{animationName:ei}}},Ii(e,h,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${r}`]:{position:"relative",margin:0},[`${r}-submenu-popup`]:{position:"absolute",zIndex:n,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},Qt(e)),{[r]:Object.assign(Object.assign({padding:u,listStyleType:"none",backgroundColor:h,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Jn(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${r}-item-group-title`]:{padding:`${B(c)} ${B(g)}`,color:e.colorTextDescription,transition:`all ${i}`},[`${r}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${r}-item-icon`]:{minWidth:f,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${r}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${i}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${r}-item, ${r}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${B(c)} ${B(g)}`,color:e.colorText,fontWeight:"normal",fontSize:f,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${i}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Jn(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:m,cursor:"not-allowed","&:hover":{color:m,backgroundColor:h,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${B(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:p,fontStyle:"normal"}}}),[`${r}-item-group-list`]:{margin:`0 ${B(e.marginXS)}`,padding:0,listStyle:"none"},[`${r}-submenu-title`]:{paddingInlineEnd:e.calc(g).add(e.fontSizeSM).equal()},[`${r}-submenu-vertical`]:{position:"relative"},[`${r}-submenu${r}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:m,backgroundColor:h,cursor:"not-allowed"}},[`${r}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[$n(e,"slide-up"),$n(e,"slide-down"),zr(e,"move-up"),zr(e,"move-down"),Po(e,"zoom-big")]]},tl=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},Ni({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),Oi(e)),nl=fn("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:r,paddingXXS:n,componentCls:o}=e,l=Ut(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(r).div(2).add(t).equal(),dropdownEdgeChildPadding:n});return[el(l),Zi(l)]},tl,{resetStyle:!1}),Kn=e=>{var t;const{menu:r,arrow:n,prefixCls:o,children:l,trigger:d,disabled:a,dropdownRender:i,getPopupContainer:c,overlayClassName:f,rootClassName:u,overlayStyle:m,open:p,onOpenChange:g,visible:h,onVisibleChange:v,mouseEnterDelay:b=.15,mouseLeaveDelay:y=.1,autoAdjustOverflow:C=!0,placement:x="",overlay:S,transitionName:R}=e,{getPopupContainer:N,getPrefixCls:O,direction:w,dropdown:E}=s.useContext(Ct);kn();const M=s.useMemo(()=>{const _=O();return R!==void 0?R:x.includes("top")?`${_}-slide-down`:`${_}-slide-up`},[O,x,R]),P=s.useMemo(()=>x?x.includes("Center")?x.slice(0,x.indexOf("Center")):x:w==="rtl"?"bottomRight":"bottomLeft",[x,w]),k=O("dropdown",o),$=pr(k),[T,D,K]=nl(k,$),[,z]=Pn(),H=s.Children.only(l),L=qt(H,{className:U(`${k}-trigger`,{[`${k}-rtl`]:w==="rtl"},H.props.className),disabled:(t=H.props.disabled)!==null&&t!==void 0?t:a}),W=a?[]:d,Q=!!(W!=null&&W.includes("contextMenu")),[Y,de]=wn(!1,{value:p??h}),me=bt(_=>{g==null||g(_,{source:"trigger"}),v==null||v(_),de(_)}),$e=U(f,u,D,K,$,E==null?void 0:E.className,{[`${k}-rtl`]:w==="rtl"}),ee=Ri({arrowPointAtCenter:typeof n=="object"&&n.pointAtCenter,autoAdjustOverflow:C,offset:z.marginXXS,arrowWidth:n?z.sizePopupArrow:0,borderRadius:z.borderRadius}),pe=s.useCallback(()=>{r!=null&&r.selectable&&(r!=null&&r.multiple)||(g==null||g(!1,{source:"menu"}),de(!1))},[r==null?void 0:r.selectable,r==null?void 0:r.multiple]),ae=()=>{let _;return r!=null&&r.items?_=s.createElement(Zt,Object.assign({},r)):typeof S=="function"?_=S():_=S,i&&(_=i(_)),_=s.Children.only(typeof _=="string"?s.createElement("span",null,_):_),s.createElement(Yo,{prefixCls:`${k}-menu`,rootClassName:U(K,$),expandIcon:s.createElement("span",{className:`${k}-menu-submenu-arrow`},s.createElement(er,{className:`${k}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:pe,validator:V=>{}},_)},[ce,te]=To("Dropdown",m==null?void 0:m.zIndex);let q=s.createElement(ti,Object.assign({alignPoint:Q},Jt(e,["rootClassName"]),{mouseEnterDelay:b,mouseLeaveDelay:y,visible:Y,builtinPlacements:ee,arrow:!!n,overlayClassName:$e,prefixCls:k,getPopupContainer:c||N,transitionName:M,trigger:W,overlay:ae,placement:P,onVisibleChange:me,overlayStyle:Object.assign(Object.assign(Object.assign({},E==null?void 0:E.style),m),{zIndex:ce})}),L);return ce&&(q=s.createElement(ni.Provider,{value:te},q)),T(q)};function rl(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const ol=ri(Kn,"dropdown",e=>e,rl),al=e=>s.createElement(ol,Object.assign({},e),s.createElement("span",null));Kn._InternalPanelDoNotUseOrYouWillBeFired=al;function tt(e,t){return e[t]}var il=["children"];function Qo(e,t){return"".concat(e,"-").concat(t)}function ll(e){return e&&e.type&&e.type.isTreeNode}function pn(e,t){return e??t}function Gt(e){var t=e||{},r=t.title,n=t._title,o=t.key,l=t.children,d=r||"title";return{title:d,_title:n||[d],key:o||"key",children:l||"children"}}function Zo(e){function t(r){var n=fr(r);return n.map(function(o){if(!ll(o))return Et(!o,"Tree/TreeNode can only accept TreeNode as children."),null;var l=o.key,d=o.props,a=d.children,i=gt(d,il),c=F({key:l},i),f=t(a);return f.length&&(c.children=f),c}).filter(function(o){return o})}return t(e)}function Wn(e,t,r){var n=Gt(r),o=n._title,l=n.key,d=n.children,a=new Set(t===!0?[]:t),i=[];function c(f){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return f.map(function(m,p){for(var g=Qo(u?u.pos:"0",p),h=pn(m[l],g),v,b=0;b<o.length;b+=1){var y=o[b];if(m[y]!==void 0){v=m[y];break}}var C=Object.assign(Jt(m,[].concat(he(o),[l,d])),{title:v,key:h,parent:u,pos:g,children:null,data:m,isStart:[].concat(he(u?u.isStart:[]),[p===0]),isEnd:[].concat(he(u?u.isEnd:[]),[p===f.length-1])});return i.push(C),t===!0||a.has(h)?C.children=c(m[d]||[],C):C.children=[],C})}return c(e),i}function sl(e,t,r){var n={};mt(r)==="object"?n=r:n={externalGetKey:r},n=n||{};var o=n,l=o.childrenPropName,d=o.externalGetKey,a=o.fieldNames,i=Gt(a),c=i.key,f=i.children,u=l||f,m;d?typeof d=="string"?m=function(h){return h[d]}:typeof d=="function"&&(m=function(h){return d(h)}):m=function(h,v){return pn(h[c],v)};function p(g,h,v,b){var y=g?g[u]:e,C=g?Qo(v.pos,h):"0",x=g?[].concat(he(b),[g]):[];if(g){var S=m(g,C),R={node:g,index:h,pos:C,key:S,parentPos:v.node?v.pos:null,level:v.level+1,nodes:x};t(R)}y&&y.forEach(function(N,O){p(N,O,{node:g,pos:C,level:v?v.level+1:-1},x)})}p(null)}function vr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.initWrapper,n=t.processEntity,o=t.onProcessFinished,l=t.externalGetKey,d=t.childrenPropName,a=t.fieldNames,i=arguments.length>2?arguments[2]:void 0,c=l||i,f={},u={},m={posEntities:f,keyEntities:u};return r&&(m=r(m)||m),sl(e,function(p){var g=p.node,h=p.index,v=p.pos,b=p.key,y=p.parentPos,C=p.level,x=p.nodes,S={node:g,nodes:x,index:h,key:b,pos:v,level:C},R=pn(b,v);f[v]=S,u[R]=S,S.parent=f[y],S.parent&&(S.parent.children=S.parent.children||[],S.parent.children.push(S)),n&&n(S,m)},{externalGetKey:c,childrenPropName:d,fieldNames:a}),o&&o(m),m}function sn(e,t){var r=t.expandedKeys,n=t.selectedKeys,o=t.loadedKeys,l=t.loadingKeys,d=t.checkedKeys,a=t.halfCheckedKeys,i=t.dragOverNodeKey,c=t.dropPosition,f=t.keyEntities,u=tt(f,e),m={eventKey:e,expanded:r.indexOf(e)!==-1,selected:n.indexOf(e)!==-1,loaded:o.indexOf(e)!==-1,loading:l.indexOf(e)!==-1,checked:d.indexOf(e)!==-1,halfChecked:a.indexOf(e)!==-1,pos:String(u?u.pos:""),dragOver:i===e&&c===0,dragOverGapTop:i===e&&c===-1,dragOverGapBottom:i===e&&c===1};return m}function Fe(e){var t=e.data,r=e.expanded,n=e.selected,o=e.checked,l=e.loaded,d=e.loading,a=e.halfChecked,i=e.dragOver,c=e.dragOverGapTop,f=e.dragOverGapBottom,u=e.pos,m=e.active,p=e.eventKey,g=F(F({},t),{},{expanded:r,selected:n,checked:o,loaded:l,loading:d,halfChecked:a,dragOver:i,dragOverGapTop:c,dragOverGapBottom:f,pos:u,active:m,key:p});return"props"in g||Object.defineProperty(g,"props",{get:function(){return Et(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),g}function ea(e,t){var r=new Set;return e.forEach(function(n){t.has(n)||r.add(n)}),r}function cl(e){var t=e||{},r=t.disabled,n=t.disableCheckbox,o=t.checkable;return!!(r||n)||o===!1}function dl(e,t,r,n){for(var o=new Set(e),l=new Set,d=0;d<=r;d+=1){var a=t.get(d)||new Set;a.forEach(function(u){var m=u.key,p=u.node,g=u.children,h=g===void 0?[]:g;o.has(m)&&!n(p)&&h.filter(function(v){return!n(v.node)}).forEach(function(v){o.add(v.key)})})}for(var i=new Set,c=r;c>=0;c-=1){var f=t.get(c)||new Set;f.forEach(function(u){var m=u.parent,p=u.node;if(!(n(p)||!u.parent||i.has(u.parent.key))){if(n(u.parent.node)){i.add(m.key);return}var g=!0,h=!1;(m.children||[]).filter(function(v){return!n(v.node)}).forEach(function(v){var b=v.key,y=o.has(b);g&&!y&&(g=!1),!h&&(y||l.has(b))&&(h=!0)}),g&&o.add(m.key),h&&l.add(m.key),i.add(m.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(ea(l,o))}}function ul(e,t,r,n,o){for(var l=new Set(e),d=new Set(t),a=0;a<=n;a+=1){var i=r.get(a)||new Set;i.forEach(function(m){var p=m.key,g=m.node,h=m.children,v=h===void 0?[]:h;!l.has(p)&&!d.has(p)&&!o(g)&&v.filter(function(b){return!o(b.node)}).forEach(function(b){l.delete(b.key)})})}d=new Set;for(var c=new Set,f=n;f>=0;f-=1){var u=r.get(f)||new Set;u.forEach(function(m){var p=m.parent,g=m.node;if(!(o(g)||!m.parent||c.has(m.parent.key))){if(o(m.parent.node)){c.add(p.key);return}var h=!0,v=!1;(p.children||[]).filter(function(b){return!o(b.node)}).forEach(function(b){var y=b.key,C=l.has(y);h&&!C&&(h=!1),!v&&(C||d.has(y))&&(v=!0)}),h||l.delete(p.key),v&&d.add(p.key),c.add(p.key)}})}return{checkedKeys:Array.from(l),halfCheckedKeys:Array.from(ea(d,l))}}function Vt(e,t,r,n){var o=[],l;n?l=n:l=cl;var d=new Set(e.filter(function(f){var u=!!tt(r,f);return u||o.push(f),u})),a=new Map,i=0;Object.keys(r).forEach(function(f){var u=r[f],m=u.level,p=a.get(m);p||(p=new Set,a.set(m,p)),p.add(u),i=Math.max(i,m)}),Et(!o.length,"Tree missing follow keys: ".concat(o.slice(0,100).map(function(f){return"'".concat(f,"'")}).join(", ")));var c;return t===!0?c=dl(d,a,i,l):c=ul(d,t.halfCheckedKeys,a,i,l),c}var fl=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const ta=e=>{const{getPopupContainer:t,getPrefixCls:r,direction:n}=s.useContext(Ct),{prefixCls:o,type:l="default",danger:d,disabled:a,loading:i,onClick:c,htmlType:f,children:u,className:m,menu:p,arrow:g,autoFocus:h,overlay:v,trigger:b,align:y,open:C,onOpenChange:x,placement:S,getPopupContainer:R,href:N,icon:O=s.createElement(Ko,null),title:w,buttonsRender:E=pe=>pe,mouseEnterDelay:M,mouseLeaveDelay:P,overlayClassName:k,overlayStyle:$,destroyPopupOnHide:T,dropdownRender:D}=e,K=fl(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),z=r("dropdown",o),H=`${z}-button`,L={menu:p,arrow:g,autoFocus:h,align:y,disabled:a,trigger:a?[]:b,onOpenChange:x,getPopupContainer:R||t,mouseEnterDelay:M,mouseLeaveDelay:P,overlayClassName:k,overlayStyle:$,destroyPopupOnHide:T,dropdownRender:D},{compactSize:W,compactItemClassnames:Q}=oi(z,n),Y=U(H,Q,m);"overlay"in e&&(L.overlay=v),"open"in e&&(L.open=C),"placement"in e?L.placement=S:L.placement=n==="rtl"?"bottomLeft":"bottomRight";const de=s.createElement(En,{type:l,danger:d,disabled:a,loading:i,onClick:c,htmlType:f,href:N,title:w},u),me=s.createElement(En,{type:l,danger:d,icon:O}),[$e,ee]=E([de,me]);return s.createElement(ki.Compact,Object.assign({className:Y,size:W,block:!0},K),$e,s.createElement(Kn,Object.assign({},L),ee))};ta.__ANT_BUTTON=!0;const hr=Kn;hr.Button=ta;function Yr(e){var t=e.getBoundingClientRect(),r=document.documentElement;return{left:t.left+(window.pageXOffset||r.scrollLeft)-(r.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||r.scrollTop)-(r.clientTop||document.body.clientTop||0)}}function bn(e,t,r,n){var o=Hr.unstable_batchedUpdates?function(d){Hr.unstable_batchedUpdates(r,d)}:r;return e!=null&&e.addEventListener&&e.addEventListener(t,o,n),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,o,n)}}}const pl=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t<arguments.length;t++){const r=t<0||arguments.length<=t?void 0:arguments[t];r&&Object.keys(r).forEach(n=>{const o=r[n];o!==void 0&&(e[n]=o)})}return e};var ml={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},gl=function(t,r){return s.createElement(nt,le({},t,{ref:r,icon:ml}))},Jr=s.forwardRef(gl),vl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},hl=function(t,r){return s.createElement(nt,le({},t,{ref:r,icon:vl}))},Qr=s.forwardRef(hl),bl={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},yl=["10","20","50","100"],Cl=function(t){var r=t.pageSizeOptions,n=r===void 0?yl:r,o=t.locale,l=t.changeSize,d=t.pageSize,a=t.goButton,i=t.quickGo,c=t.rootPrefixCls,f=t.selectComponentClass,u=t.selectPrefixCls,m=t.disabled,p=t.buildOptionText,g=ie.useState(""),h=ye(g,2),v=h[0],b=h[1],y=function(){return!v||Number.isNaN(v)?void 0:Number(v)},C=typeof p=="function"?p:function($){return"".concat($," ").concat(o.items_per_page)},x=function(T){l==null||l(Number(T))},S=function(T){b(T.target.value)},R=function(T){a||v===""||(b(""),!(T.relatedTarget&&(T.relatedTarget.className.indexOf("".concat(c,"-item-link"))>=0||T.relatedTarget.className.indexOf("".concat(c,"-item"))>=0))&&(i==null||i(y())))},N=function(T){v!==""&&(T.keyCode===Ye.ENTER||T.type==="click")&&(b(""),i==null||i(y()))},O=function(){return n.some(function(T){return T.toString()===d.toString()})?n:n.concat([d.toString()]).sort(function(T,D){var K=Number.isNaN(Number(T))?0:Number(T),z=Number.isNaN(Number(D))?0:Number(D);return K-z})},w="".concat(c,"-options");if(!l&&!i)return null;var E=null,M=null,P=null;if(l&&f){var k=O().map(function($,T){return ie.createElement(f.Option,{key:T,value:$.toString()},C($))});E=ie.createElement(f,{disabled:m,prefixCls:u,showSearch:!1,className:"".concat(w,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(d||n[0]).toString(),onChange:x,getPopupContainer:function(T){return T.parentNode},"aria-label":o.page_size,defaultOpen:!1},k)}return i&&(a&&(P=typeof a=="boolean"?ie.createElement("button",{type:"button",onClick:N,onKeyUp:N,disabled:m,className:"".concat(w,"-quick-jumper-button")},o.jump_to_confirm):ie.createElement("span",{onClick:N,onKeyUp:N},a)),M=ie.createElement("div",{className:"".concat(w,"-quick-jumper")},o.jump_to,ie.createElement("input",{disabled:m,type:"text",value:v,onChange:S,onKeyUp:N,onBlur:R,"aria-label":o.page}),o.page,P)),ie.createElement("li",{className:w},E,M)},ln=function(t){var r,n=t.rootPrefixCls,o=t.page,l=t.active,d=t.className,a=t.showTitle,i=t.onClick,c=t.onKeyPress,f=t.itemRender,u="".concat(n,"-item"),m=U(u,"".concat(u,"-").concat(o),(r={},I(r,"".concat(u,"-active"),l),I(r,"".concat(u,"-disabled"),!o),r),d),p=function(){i(o)},g=function(b){c(b,i,o)},h=f(o,"page",ie.createElement("a",{rel:"nofollow"},o));return h?ie.createElement("li",{title:a?String(o):null,className:m,onClick:p,onKeyDown:g,tabIndex:0},h):null},xl=function(t,r,n){return n};function Zr(){}function eo(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Dt(e,t,r){var n=typeof e>"u"?t:e;return Math.floor((r-1)/n)+1}var Sl=function(t){var r,n=t.prefixCls,o=n===void 0?"rc-pagination":n,l=t.selectPrefixCls,d=l===void 0?"rc-select":l,a=t.className,i=t.selectComponentClass,c=t.current,f=t.defaultCurrent,u=f===void 0?1:f,m=t.total,p=m===void 0?0:m,g=t.pageSize,h=t.defaultPageSize,v=h===void 0?10:h,b=t.onChange,y=b===void 0?Zr:b,C=t.hideOnSinglePage,x=t.align,S=t.showPrevNextJumpers,R=S===void 0?!0:S,N=t.showQuickJumper,O=t.showLessItems,w=t.showTitle,E=w===void 0?!0:w,M=t.onShowSizeChange,P=M===void 0?Zr:M,k=t.locale,$=k===void 0?bl:k,T=t.style,D=t.totalBoundaryShowSizeChanger,K=D===void 0?50:D,z=t.disabled,H=t.simple,L=t.showTotal,W=t.showSizeChanger,Q=t.pageSizeOptions,Y=t.itemRender,de=Y===void 0?xl:Y,me=t.jumpPrevIcon,$e=t.jumpNextIcon,ee=t.prevIcon,pe=t.nextIcon,ae=ie.useRef(null),ce=wn(10,{value:g,defaultValue:v}),te=ye(ce,2),q=te[0],_=te[1],V=wn(1,{value:c,defaultValue:u,postState:function(ge){return Math.max(1,Math.min(ge,Dt(void 0,q,p)))}}),G=ye(V,2),X=G[0],j=G[1],re=ie.useState(X),xe=ye(re,2),ne=xe[0],be=xe[1];s.useEffect(function(){be(X)},[X]);var Ne=Math.max(1,X-(O?3:5)),J=Math.min(Dt(void 0,q,p),X+(O?3:5));function Ce(oe,ge){var ze=oe||ie.createElement("button",{type:"button","aria-label":ge,className:"".concat(o,"-item-link")});return typeof oe=="function"&&(ze=ie.createElement(oe,F({},t))),ze}function Pe(oe){var ge=oe.target.value,ze=Dt(void 0,q,p),vt;return ge===""?vt=ge:Number.isNaN(Number(ge))?vt=ne:ge>=ze?vt=ze:vt=Number(ge),vt}function we(oe){return eo(oe)&&oe!==X&&eo(p)&&p>0}var Je=p>q?N:!1;function We(oe){(oe.keyCode===Ye.UP||oe.keyCode===Ye.DOWN)&&oe.preventDefault()}function lt(oe){var ge=Pe(oe);switch(ge!==ne&&be(ge),oe.keyCode){case Ye.ENTER:ue(ge);break;case Ye.UP:ue(ge-1);break;case Ye.DOWN:ue(ge+1);break}}function Z(oe){ue(Pe(oe))}function Oe(oe){var ge=Dt(oe,q,p),ze=X>ge&&ge!==0?ge:X;_(oe),be(ze),P==null||P(X,oe),j(ze),y==null||y(ze,oe)}function ue(oe){if(we(oe)&&!z){var ge=Dt(void 0,q,p),ze=oe;return oe>ge?ze=ge:oe<1&&(ze=1),ze!==ne&&be(ze),j(ze),y==null||y(ze,q),ze}return X}var Be=X>1,Te=X<Dt(void 0,q,p),Re=W??p>K;function He(){Be&&ue(X-1)}function je(){Te&&ue(X+1)}function Ke(){ue(Ne)}function st(){ue(J)}function _e(oe,ge){if(oe.key==="Enter"||oe.charCode===Ye.ENTER||oe.keyCode===Ye.ENTER){for(var ze=arguments.length,vt=new Array(ze>2?ze-2:0),Tt=2;Tt<ze;Tt++)vt[Tt-2]=arguments[Tt];ge.apply(void 0,vt)}}function Nt(oe){_e(oe,He)}function ke(oe){_e(oe,je)}function Ot(oe){_e(oe,Ke)}function Qe(oe){_e(oe,st)}function ot(oe){var ge=de(oe,"prev",Ce(ee,"prev page"));return ie.isValidElement(ge)?ie.cloneElement(ge,{disabled:!Be}):ge}function at(oe){var ge=de(oe,"next",Ce(pe,"next page"));return ie.isValidElement(ge)?ie.cloneElement(ge,{disabled:!Te}):ge}function ut(oe){(oe.type==="click"||oe.keyCode===Ye.ENTER)&&ue(ne)}var ct=null,Ve=dn(t,{aria:!0,data:!0}),qe=L&&ie.createElement("li",{className:"".concat(o,"-total-text")},L(p,[p===0?0:(X-1)*q+1,X*q>p?p:X*q])),it=null,De=Dt(void 0,q,p);if(C&&p<=q)return null;var Me=[],Ze={rootPrefixCls:o,onClick:ue,onKeyPress:_e,showTitle:E,itemRender:de,page:-1},nn=X-1>0?X-1:0,_t=X+1<De?X+1:De,xt=N&&N.goButton,se=mt(H)==="object"?H.readOnly:!H,ve=xt,Ee=null;H&&(xt&&(typeof xt=="boolean"?ve=ie.createElement("button",{type:"button",onClick:ut,onKeyUp:ut},$.jump_to_confirm):ve=ie.createElement("span",{onClick:ut,onKeyUp:ut},xt),ve=ie.createElement("li",{title:E?"".concat($.jump_to).concat(X,"/").concat(De):null,className:"".concat(o,"-simple-pager")},ve)),Ee=ie.createElement("li",{title:E?"".concat(X,"/").concat(De):null,className:"".concat(o,"-simple-pager")},se?ne:ie.createElement("input",{type:"text",value:ne,disabled:z,onKeyDown:We,onKeyUp:lt,onChange:lt,onBlur:Z,size:3}),ie.createElement("span",{className:"".concat(o,"-slash")},"/"),De));var Ie=O?1:2;if(De<=3+Ie*2){De||Me.push(ie.createElement(ln,le({},Ze,{key:"noPager",page:1,className:"".concat(o,"-item-disabled")})));for(var Le=1;Le<=De;Le+=1)Me.push(ie.createElement(ln,le({},Ze,{key:Le,page:Le,active:X===Le})))}else{var Xe=O?$.prev_3:$.prev_5,ft=O?$.next_3:$.next_5,Ae=de(Ne,"jump-prev",Ce(me,"prev page")),vn=de(J,"jump-next",Ce($e,"next page"));R&&(ct=Ae?ie.createElement("li",{title:E?Xe:null,key:"prev",onClick:Ke,tabIndex:0,onKeyDown:Ot,className:U("".concat(o,"-jump-prev"),I({},"".concat(o,"-jump-prev-custom-icon"),!!me))},Ae):null,it=vn?ie.createElement("li",{title:E?ft:null,key:"next",onClick:st,tabIndex:0,onKeyDown:Qe,className:U("".concat(o,"-jump-next"),I({},"".concat(o,"-jump-next-custom-icon"),!!$e))},vn):null);var At=Math.max(1,X-Ie),rn=Math.min(X+Ie,De);X-1<=Ie&&(rn=1+Ie*2),De-X<=Ie&&(At=De-Ie*2);for(var St=At;St<=rn;St+=1)Me.push(ie.createElement(ln,le({},Ze,{key:St,page:St,active:X===St})));if(X-1>=Ie*2&&X!==3&&(Me[0]=ie.cloneElement(Me[0],{className:U("".concat(o,"-item-after-jump-prev"),Me[0].props.className)}),Me.unshift(ct)),De-X>=Ie*2&&X!==De-2){var Rt=Me[Me.length-1];Me[Me.length-1]=ie.cloneElement(Rt,{className:U("".concat(o,"-item-before-jump-next"),Rt.props.className)}),Me.push(it)}At!==1&&Me.unshift(ie.createElement(ln,le({},Ze,{key:1,page:1}))),rn!==De&&Me.push(ie.createElement(ln,le({},Ze,{key:De,page:De})))}var pt=ot(nn);if(pt){var on=!Be||!De;pt=ie.createElement("li",{title:E?$.prev_page:null,onClick:He,tabIndex:on?null:0,onKeyDown:Nt,className:U("".concat(o,"-prev"),I({},"".concat(o,"-disabled"),on)),"aria-disabled":on},pt)}var kt=at(_t);if(kt){var Pt,Ft;H?(Pt=!Te,Ft=Be?0:null):(Pt=!Te||!De,Ft=Pt?null:0),kt=ie.createElement("li",{title:E?$.next_page:null,onClick:je,tabIndex:Ft,onKeyDown:ke,className:U("".concat(o,"-next"),I({},"".concat(o,"-disabled"),Pt)),"aria-disabled":Pt},kt)}var zn=U(o,a,(r={},I(r,"".concat(o,"-start"),x==="start"),I(r,"".concat(o,"-center"),x==="center"),I(r,"".concat(o,"-end"),x==="end"),I(r,"".concat(o,"-simple"),H),I(r,"".concat(o,"-disabled"),z),r));return ie.createElement("ul",le({className:zn,style:T,ref:ae},Ve),qe,pt,H?Ee:Me,kt,ie.createElement(Cl,{locale:$,rootPrefixCls:o,disabled:z,selectComponentClass:i,selectPrefixCls:d,changeSize:Re?Oe:null,pageSize:q,pageSizeOptions:Q,quickGo:Je?ue:null,goButton:ve}))};const na=e=>s.createElement(Tn,Object.assign({},e,{showSearch:!0,size:"small"})),ra=e=>s.createElement(Tn,Object.assign({},e,{showSearch:!0,size:"middle"}));na.Option=Tn.Option;ra.Option=Tn.Option;const $l=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},wl=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:B(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:B(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:B(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`
    &${t}-mini ${t}-prev ${t}-item-link,
    &${t}-mini ${t}-next ${t}-item-link
    `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:B(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:B(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:B(e.itemSizeSM),input:Object.assign(Object.assign({},li(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},El=e=>{const{componentCls:t}=e;return{[`
    &${t}-simple ${t}-prev,
    &${t}-simple ${t}-next
    `]:{height:e.itemSizeSM,lineHeight:B(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:B(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${B(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${B(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${B(e.inputOutlineOffset)} 0 ${B(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},Il=e=>{const{componentCls:t,antCls:r}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
    ${t}-prev,
    ${t}-jump-prev,
    ${t}-jump-next
    `]:{marginInlineEnd:e.marginXS},[`
    ${t}-prev,
    ${t}-next,
    ${t}-jump-prev,
    ${t}-jump-next
    `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:`${B(e.itemSize)}`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${B(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto",[`${r}-select-arrow:not(:last-child)`]:{opacity:1}},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:B(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},si(e)),ci(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},di(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},Nl=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:B(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${B(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${B(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},Ol=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Qt(e)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:B(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),Nl(e)),Il(e)),El(e)),wl(e)),$l(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},Rl=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Jn(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Sn(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},Sn(e))}}}},oa=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},ai(e)),aa=e=>Ut(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},ii(e)),kl=fn("Pagination",e=>{const t=aa(e);return[Ol(t),Rl(t)]},oa),Pl=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${B(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},Tl=ui(["Pagination","bordered"],e=>{const t=aa(e);return[Pl(t)]},oa);var Kl=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const Bl=e=>{const{align:t,prefixCls:r,selectPrefixCls:n,className:o,rootClassName:l,style:d,size:a,locale:i,selectComponentClass:c,responsive:f,showSizeChanger:u}=e,m=Kl(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:p}=Xo(f),[,g]=Pn(),{getPrefixCls:h,direction:v,pagination:b={}}=s.useContext(Ct),y=h("pagination",r),[C,x,S]=kl(y),R=u??b.showSizeChanger,N=s.useMemo(()=>{const T=s.createElement("span",{className:`${y}-item-ellipsis`},"•••"),D=s.createElement("button",{className:`${y}-item-link`,type:"button",tabIndex:-1},v==="rtl"?s.createElement(er,null):s.createElement(Wr,null)),K=s.createElement("button",{className:`${y}-item-link`,type:"button",tabIndex:-1},v==="rtl"?s.createElement(Wr,null):s.createElement(er,null)),z=s.createElement("a",{className:`${y}-item-link`},s.createElement("div",{className:`${y}-item-container`},v==="rtl"?s.createElement(Qr,{className:`${y}-item-link-icon`}):s.createElement(Jr,{className:`${y}-item-link-icon`}),T)),H=s.createElement("a",{className:`${y}-item-link`},s.createElement("div",{className:`${y}-item-container`},v==="rtl"?s.createElement(Jr,{className:`${y}-item-link-icon`}):s.createElement(Qr,{className:`${y}-item-link-icon`}),T));return{prevIcon:D,nextIcon:K,jumpPrevIcon:z,jumpNextIcon:H}},[v,y]),[O]=fi("Pagination",pi),w=Object.assign(Object.assign({},O),i),E=Do(a),M=E==="small"||!!(p&&!E&&f),P=h("select",n),k=U({[`${y}-${t}`]:!!t,[`${y}-mini`]:M,[`${y}-rtl`]:v==="rtl",[`${y}-bordered`]:g.wireframe},b==null?void 0:b.className,o,l,x,S),$=Object.assign(Object.assign({},b==null?void 0:b.style),d);return C(s.createElement(s.Fragment,null,g.wireframe&&s.createElement(Tl,{prefixCls:y}),s.createElement(Sl,Object.assign({},N,m,{style:$,prefixCls:y,selectPrefixCls:P,className:k,selectComponentClass:c||(M?na:ra),locale:w,showSizeChanger:R}))))};var wt={},mn="rc-table-internal-hook";function br(e){var t=s.createContext(void 0),r=function(o){var l=o.value,d=o.children,a=s.useRef(l);a.current=l;var i=s.useState(function(){return{getValue:function(){return a.current},listeners:new Set}}),c=ye(i,1),f=c[0];return zt(function(){mi.unstable_batchedUpdates(function(){f.listeners.forEach(function(u){u(l)})})},[l]),s.createElement(t.Provider,{value:f},d)};return{Context:t,Provider:r,defaultValue:e}}function et(e,t){var r=bt(typeof t=="function"?t:function(u){if(t===void 0)return u;if(!Array.isArray(t))return u[t];var m={};return t.forEach(function(p){m[p]=u[p]}),m}),n=s.useContext(e==null?void 0:e.Context),o=n||{},l=o.listeners,d=o.getValue,a=s.useRef();a.current=r(n?d():e==null?void 0:e.defaultValue);var i=s.useState({}),c=ye(i,2),f=c[1];return zt(function(){if(!n)return;function u(m){var p=r(m);un(a.current,p,!0)||f({})}return l.add(u),function(){l.delete(u)}},[n]),a.current}function Dl(){var e=s.createContext(null);function t(){return s.useContext(e)}function r(o,l){var d=Lr(o),a=function(c,f){var u=d?{ref:f}:{},m=s.useRef(0),p=s.useRef(c),g=t();return g!==null?s.createElement(o,le({},c,u)):((!l||l(p.current,c))&&(m.current+=1),p.current=c,s.createElement(e.Provider,{value:m.current},s.createElement(o,le({},c,u))))};return d?s.forwardRef(a):a}function n(o,l){var d=Lr(o),a=function(c,f){var u=d?{ref:f}:{};return t(),s.createElement(o,le({},c,u))};return d?s.memo(s.forwardRef(a),l):s.memo(a,l)}return{makeImmutable:r,responseImmutable:n,useImmutableMark:t}}var yr=Dl(),ia=yr.makeImmutable,en=yr.responseImmutable,Ml=yr.useImmutableMark,rt=br(),la=s.createContext({renderWithProps:!1}),zl="RC_TABLE_KEY";function Hl(e){return e==null?[]:Array.isArray(e)?e:[e]}function Bn(e){var t=[],r={};return e.forEach(function(n){for(var o=n||{},l=o.key,d=o.dataIndex,a=l||Hl(d).join("-")||zl;r[a];)a="".concat(a,"_next");r[a]=!0,t.push(a)}),t}function tr(e){return e!=null}function Ll(e){return e&&mt(e)==="object"&&!Array.isArray(e)&&!s.isValidElement(e)}function jl(e,t,r,n,o,l){var d=s.useContext(la),a=Ml(),i=Mo(function(){if(tr(n))return[n];var c=t==null||t===""?[]:Array.isArray(t)?t:[t],f=mr(e,c),u=f,m=void 0;if(o){var p=o(f,e,r);Ll(p)?(u=p.children,m=p.props,d.renderWithProps=!0):u=p}return[u,m]},[a,e,n,t,o,r],function(c,f){if(l){var u=ye(c,2),m=u[1],p=ye(f,2),g=p[1];return l(g,m)}return d.renderWithProps?!0:!un(c,f,!0)});return i}function _l(e,t,r,n){var o=e+t-1;return e<=n&&o>=r}function Al(e,t){return et(rt,function(r){var n=_l(e,t||1,r.hoverStartRow,r.hoverEndRow);return[n,r.onHover]})}var Fl=function(t){var r=t.ellipsis,n=t.rowType,o=t.children,l,d=r===!0?{showTitle:!0}:r;return d&&(d.showTitle||n==="header")&&(typeof o=="string"||typeof o=="number"?l=o.toString():s.isValidElement(o)&&typeof o.props.children=="string"&&(l=o.props.children)),l};function Wl(e){var t,r,n,o,l,d,a,i,c=e.component,f=e.children,u=e.ellipsis,m=e.scope,p=e.prefixCls,g=e.className,h=e.align,v=e.record,b=e.render,y=e.dataIndex,C=e.renderIndex,x=e.shouldCellUpdate,S=e.index,R=e.rowType,N=e.colSpan,O=e.rowSpan,w=e.fixLeft,E=e.fixRight,M=e.firstFixLeft,P=e.lastFixLeft,k=e.firstFixRight,$=e.lastFixRight,T=e.appendNode,D=e.additionalProps,K=D===void 0?{}:D,z=e.isSticky,H="".concat(p,"-cell"),L=et(rt,["supportSticky","allColumnsFixedLeft","rowHoverable"]),W=L.supportSticky,Q=L.allColumnsFixedLeft,Y=L.rowHoverable,de=jl(v,y,C,f,b,x),me=ye(de,2),$e=me[0],ee=me[1],pe={},ae=typeof w=="number"&&W,ce=typeof E=="number"&&W;ae&&(pe.position="sticky",pe.left=w),ce&&(pe.position="sticky",pe.right=E);var te=(t=(r=(n=ee==null?void 0:ee.colSpan)!==null&&n!==void 0?n:K.colSpan)!==null&&r!==void 0?r:N)!==null&&t!==void 0?t:1,q=(o=(l=(d=ee==null?void 0:ee.rowSpan)!==null&&d!==void 0?d:K.rowSpan)!==null&&l!==void 0?l:O)!==null&&o!==void 0?o:1,_=Al(S,q),V=ye(_,2),G=V[0],X=V[1],j=bt(function(Ce){var Pe;v&&X(S,S+q-1),K==null||(Pe=K.onMouseEnter)===null||Pe===void 0||Pe.call(K,Ce)}),re=bt(function(Ce){var Pe;v&&X(-1,-1),K==null||(Pe=K.onMouseLeave)===null||Pe===void 0||Pe.call(K,Ce)});if(te===0||q===0)return null;var xe=(a=K.title)!==null&&a!==void 0?a:Fl({rowType:R,ellipsis:u,children:$e}),ne=U(H,g,(i={},I(i,"".concat(H,"-fix-left"),ae&&W),I(i,"".concat(H,"-fix-left-first"),M&&W),I(i,"".concat(H,"-fix-left-last"),P&&W),I(i,"".concat(H,"-fix-left-all"),P&&Q&&W),I(i,"".concat(H,"-fix-right"),ce&&W),I(i,"".concat(H,"-fix-right-first"),k&&W),I(i,"".concat(H,"-fix-right-last"),$&&W),I(i,"".concat(H,"-ellipsis"),u),I(i,"".concat(H,"-with-append"),T),I(i,"".concat(H,"-fix-sticky"),(ae||ce)&&z&&W),I(i,"".concat(H,"-row-hover"),!ee&&G),i),K.className,ee==null?void 0:ee.className),be={};h&&(be.textAlign=h);var Ne=F(F(F(F({},pe),K.style),be),ee==null?void 0:ee.style),J=$e;return mt(J)==="object"&&!Array.isArray(J)&&!s.isValidElement(J)&&(J=null),u&&(P||k)&&(J=s.createElement("span",{className:"".concat(H,"-content")},J)),s.createElement(c,le({},ee,K,{className:ne,style:Ne,title:xe,scope:m,onMouseEnter:Y?j:void 0,onMouseLeave:Y?re:void 0,colSpan:te!==1?te:null,rowSpan:q!==1?q:null}),T,J)}const jt=s.memo(Wl);function Cr(e,t,r,n,o){var l=r[e]||{},d=r[t]||{},a,i;l.fixed==="left"?a=n.left[o==="rtl"?t:e]:d.fixed==="right"&&(i=n.right[o==="rtl"?e:t]);var c=!1,f=!1,u=!1,m=!1,p=r[t+1],g=r[e-1],h=p&&!p.fixed||g&&!g.fixed||r.every(function(x){return x.fixed==="left"});if(o==="rtl"){if(a!==void 0){var v=g&&g.fixed==="left";m=!v&&h}else if(i!==void 0){var b=p&&p.fixed==="right";u=!b&&h}}else if(a!==void 0){var y=p&&p.fixed==="left";c=!y&&h}else if(i!==void 0){var C=g&&g.fixed==="right";f=!C&&h}return{fixLeft:a,fixRight:i,lastFixLeft:c,firstFixRight:f,lastFixRight:u,firstFixLeft:m,isSticky:n.isSticky}}var sa=s.createContext({});function Vl(e){var t=e.className,r=e.index,n=e.children,o=e.colSpan,l=o===void 0?1:o,d=e.rowSpan,a=e.align,i=et(rt,["prefixCls","direction"]),c=i.prefixCls,f=i.direction,u=s.useContext(sa),m=u.scrollColumnIndex,p=u.stickyOffsets,g=u.flattenColumns,h=r+l-1,v=h+1===m?l+1:l,b=Cr(r,r+v-1,g,p,f);return s.createElement(jt,le({className:t,index:r,component:"td",prefixCls:c,record:null,dataIndex:null,align:a,colSpan:v,rowSpan:d,render:function(){return n}},b))}var Xl=["children"];function ql(e){var t=e.children,r=gt(e,Xl);return s.createElement("tr",r,t)}function Dn(e){var t=e.children;return t}Dn.Row=ql;Dn.Cell=Vl;function Ul(e){var t=e.children,r=e.stickyOffsets,n=e.flattenColumns,o=et(rt,"prefixCls"),l=n.length-1,d=n[l],a=s.useMemo(function(){return{stickyOffsets:r,flattenColumns:n,scrollColumnIndex:d!=null&&d.scrollbar?l:null}},[d,n,l,r]);return s.createElement(sa.Provider,{value:a},s.createElement("tfoot",{className:"".concat(o,"-summary")},t))}const yn=en(Ul);var ca=Dn;function Gl(e){return null}function Yl(e){return null}function da(e,t,r,n,o,l,d){e.push({record:t,indent:r,index:d});var a=l(t),i=o==null?void 0:o.has(a);if(t&&Array.isArray(t[n])&&i)for(var c=0;c<t[n].length;c+=1)da(e,t[n][c],r+1,n,o,l,c)}function ua(e,t,r,n){var o=s.useMemo(function(){if(r!=null&&r.size){for(var l=[],d=0;d<(e==null?void 0:e.length);d+=1){var a=e[d];da(l,a,0,t,r,n,d)}return l}return e==null?void 0:e.map(function(i,c){return{record:i,indent:0,index:c}})},[e,t,r,n]);return o}function fa(e,t,r,n){var o=et(rt,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),l=o.flattenColumns,d=o.expandableType,a=o.expandedKeys,i=o.childrenColumnName,c=o.onTriggerExpand,f=o.rowExpandable,u=o.onRow,m=o.expandRowByClick,p=o.rowClassName,g=d==="nest",h=d==="row"&&(!f||f(e)),v=h||g,b=a&&a.has(t),y=i&&e&&e[i],C=bt(c),x=u==null?void 0:u(e,r),S=x==null?void 0:x.onClick,R=function(E){m&&v&&c(e,E);for(var M=arguments.length,P=new Array(M>1?M-1:0),k=1;k<M;k++)P[k-1]=arguments[k];S==null||S.apply(void 0,[E].concat(P))},N;typeof p=="string"?N=p:typeof p=="function"&&(N=p(e,r,n));var O=Bn(l);return F(F({},o),{},{columnsKey:O,nestExpandable:g,expanded:b,hasNestChildren:y,record:e,onTriggerExpand:C,rowSupportExpand:h,expandable:v,rowProps:F(F({},x),{},{className:U(N,x==null?void 0:x.className),onClick:R})})}function pa(e){var t=e.prefixCls,r=e.children,n=e.component,o=e.cellComponent,l=e.className,d=e.expanded,a=e.colSpan,i=e.isEmpty,c=et(rt,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),f=c.scrollbarSize,u=c.fixHeader,m=c.fixColumn,p=c.componentWidth,g=c.horizonScroll,h=r;return(i?g&&p:m)&&(h=s.createElement("div",{style:{width:p-(u?f:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},h)),s.createElement(n,{className:l,style:{display:d?null:"none"}},s.createElement(jt,{component:o,prefixCls:t,colSpan:a},h))}function ma(e,t,r,n,o){var l=e.record,d=e.prefixCls,a=e.columnsKey,i=e.fixedInfoList,c=e.expandIconColumnIndex,f=e.nestExpandable,u=e.indentSize,m=e.expandIcon,p=e.expanded,g=e.hasNestChildren,h=e.onTriggerExpand,v=a[r],b=i[r],y;r===(c||0)&&f&&(y=s.createElement(s.Fragment,null,s.createElement("span",{style:{paddingLeft:"".concat(u*n,"px")},className:"".concat(d,"-row-indent indent-level-").concat(n)}),m({prefixCls:d,expanded:p,expandable:g,record:l,onExpand:h})));var C;return t.onCell&&(C=t.onCell(l,o)),{key:v,fixedInfo:b,appendCellNode:y,additionalCellProps:C||{}}}function Jl(e){var t=e.className,r=e.style,n=e.record,o=e.index,l=e.renderIndex,d=e.rowKey,a=e.indent,i=a===void 0?0:a,c=e.rowComponent,f=e.cellComponent,u=e.scopeCellComponent,m=fa(n,d,o,i),p=m.prefixCls,g=m.flattenColumns,h=m.expandedRowClassName,v=m.expandedRowRender,b=m.rowProps,y=m.expanded,C=m.rowSupportExpand,x=s.useRef(!1);x.current||(x.current=y);var S=h&&h(n,o,i),R=s.createElement(c,le({},b,{"data-row-key":d,className:U(t,"".concat(p,"-row"),"".concat(p,"-row-level-").concat(i),b==null?void 0:b.className,i>=1?S:""),style:F(F({},r),b==null?void 0:b.style)}),g.map(function(w,E){var M=w.render,P=w.dataIndex,k=w.className,$=ma(m,w,E,i,o),T=$.key,D=$.fixedInfo,K=$.appendCellNode,z=$.additionalCellProps;return s.createElement(jt,le({className:k,ellipsis:w.ellipsis,align:w.align,scope:w.rowScope,component:w.rowScope?u:f,prefixCls:p,key:T,record:n,index:o,renderIndex:l,dataIndex:P,render:M,shouldCellUpdate:w.shouldCellUpdate},D,{appendNode:K,additionalProps:z}))})),N;if(C&&(x.current||y)){var O=v(n,o,i+1,y);N=s.createElement(pa,{expanded:y,className:U("".concat(p,"-expanded-row"),"".concat(p,"-expanded-row-level-").concat(i+1),S),prefixCls:p,component:c,cellComponent:f,colSpan:g.length,isEmpty:!1},O)}return s.createElement(s.Fragment,null,R,N)}const Ql=en(Jl);function Zl(e){var t=e.columnKey,r=e.onColumnResize,n=s.useRef();return s.useEffect(function(){n.current&&r(t,n.current.offsetWidth)},[]),s.createElement(gr,{data:t},s.createElement("td",{ref:n,style:{padding:0,border:0,height:0}},s.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function es(e){var t=e.prefixCls,r=e.columnsKey,n=e.onColumnResize;return s.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0}},s.createElement(gr.Collection,{onBatchResize:function(l){l.forEach(function(d){var a=d.data,i=d.size;n(a,i.offsetWidth)})}},r.map(function(o){return s.createElement(Zl,{key:o,columnKey:o,onColumnResize:n})})))}function ts(e){var t=e.data,r=e.measureColumnWidth,n=et(rt,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),o=n.prefixCls,l=n.getComponent,d=n.onColumnResize,a=n.flattenColumns,i=n.getRowKey,c=n.expandedKeys,f=n.childrenColumnName,u=n.emptyNode,m=ua(t,f,c,i),p=s.useRef({renderWithProps:!1}),g=l(["body","wrapper"],"tbody"),h=l(["body","row"],"tr"),v=l(["body","cell"],"td"),b=l(["body","cell"],"th"),y;t.length?y=m.map(function(x,S){var R=x.record,N=x.indent,O=x.index,w=i(R,S);return s.createElement(Ql,{key:w,rowKey:w,record:R,index:S,renderIndex:O,rowComponent:h,cellComponent:v,scopeCellComponent:b,getRowKey:i,indent:N})}):y=s.createElement(pa,{expanded:!0,className:"".concat(o,"-placeholder"),prefixCls:o,component:h,cellComponent:v,colSpan:a.length,isEmpty:!0},u);var C=Bn(a);return s.createElement(la.Provider,{value:p.current},s.createElement(g,{className:"".concat(o,"-tbody")},r&&s.createElement(es,{prefixCls:o,columnsKey:C,onColumnResize:d}),y))}const ns=en(ts);var rs=["expandable"],cn="RC_TABLE_INTERNAL_COL_DEFINE";function os(e){var t=e.expandable,r=gt(e,rs),n;return"expandable"in e?n=F(F({},r),t):n=r,n.showExpandColumn===!1&&(n.expandIconColumnIndex=-1),n}var as=["columnType"];function ga(e){for(var t=e.colWidths,r=e.columns,n=e.columCount,o=[],l=n||r.length,d=!1,a=l-1;a>=0;a-=1){var i=t[a],c=r&&r[a],f=c&&c[cn];if(i||f||d){var u=f||{};u.columnType;var m=gt(u,as);o.unshift(s.createElement("col",le({key:a,style:{width:i}},m))),d=!0}}return s.createElement("colgroup",null,o)}var is=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function ls(e,t){return s.useMemo(function(){for(var r=[],n=0;n<t;n+=1){var o=e[n];if(o!==void 0)r[n]=o;else return null}return r},[e.join("_"),t])}var ss=s.forwardRef(function(e,t){var r=e.className,n=e.noData,o=e.columns,l=e.flattenColumns,d=e.colWidths,a=e.columCount,i=e.stickyOffsets,c=e.direction,f=e.fixHeader,u=e.stickyTopOffset,m=e.stickyBottomOffset,p=e.stickyClassName,g=e.onScroll,h=e.maxContentScroll,v=e.children,b=gt(e,is),y=et(rt,["prefixCls","scrollbarSize","isSticky","getComponent"]),C=y.prefixCls,x=y.scrollbarSize,S=y.isSticky,R=y.getComponent,N=R(["header","table"],"table"),O=S&&!f?0:x,w=s.useRef(null),E=s.useCallback(function(z){jr(t,z),jr(w,z)},[]);s.useEffect(function(){var z;function H(L){var W=L,Q=W.currentTarget,Y=W.deltaX;Y&&(g({currentTarget:Q,scrollLeft:Q.scrollLeft+Y}),L.preventDefault())}return(z=w.current)===null||z===void 0||z.addEventListener("wheel",H,{passive:!1}),function(){var L;(L=w.current)===null||L===void 0||L.removeEventListener("wheel",H)}},[]);var M=s.useMemo(function(){return l.every(function(z){return z.width})},[l]),P=l[l.length-1],k={fixed:P?P.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(C,"-cell-scrollbar")}}},$=s.useMemo(function(){return O?[].concat(he(o),[k]):o},[O,o]),T=s.useMemo(function(){return O?[].concat(he(l),[k]):l},[O,l]),D=s.useMemo(function(){var z=i.right,H=i.left;return F(F({},i),{},{left:c==="rtl"?[].concat(he(H.map(function(L){return L+O})),[0]):H,right:c==="rtl"?z:[].concat(he(z.map(function(L){return L+O})),[0]),isSticky:S})},[O,i,S]),K=ls(d,a);return s.createElement("div",{style:F({overflow:"hidden"},S?{top:u,bottom:m}:{}),ref:E,className:U(r,I({},p,!!p))},s.createElement(N,{style:{tableLayout:"fixed",visibility:n||K?null:"hidden"}},(!n||!h||M)&&s.createElement(ga,{colWidths:K?[].concat(he(K),[O]):[],columCount:a+1,columns:T}),v(F(F({},b),{},{stickyOffsets:D,columns:$,flattenColumns:T}))))});const to=s.memo(ss);var cs=function(t){var r=t.cells,n=t.stickyOffsets,o=t.flattenColumns,l=t.rowComponent,d=t.cellComponent,a=t.onHeaderRow,i=t.index,c=et(rt,["prefixCls","direction"]),f=c.prefixCls,u=c.direction,m;a&&(m=a(r.map(function(g){return g.column}),i));var p=Bn(r.map(function(g){return g.column}));return s.createElement(l,m,r.map(function(g,h){var v=g.column,b=Cr(g.colStart,g.colEnd,o,n,u),y;return v&&v.onHeaderCell&&(y=g.column.onHeaderCell(v)),s.createElement(jt,le({},g,{scope:v.title?g.colSpan>1?"colgroup":"col":null,ellipsis:v.ellipsis,align:v.align,component:d,prefixCls:f,key:p[h]},b,{additionalProps:y,rowType:"header"}))}))};function ds(e){var t=[];function r(d,a){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[i]=t[i]||[];var c=a,f=d.filter(Boolean).map(function(u){var m={key:u.key,className:u.className||"",children:u.title,column:u,colStart:c},p=1,g=u.children;return g&&g.length>0&&(p=r(g,c,i+1).reduce(function(h,v){return h+v},0),m.hasSubColumns=!0),"colSpan"in u&&(p=u.colSpan),"rowSpan"in u&&(m.rowSpan=u.rowSpan),m.colSpan=p,m.colEnd=m.colStart+p-1,t[i].push(m),c+=p,p});return f}r(e,0);for(var n=t.length,o=function(a){t[a].forEach(function(i){!("rowSpan"in i)&&!i.hasSubColumns&&(i.rowSpan=n-a)})},l=0;l<n;l+=1)o(l);return t}var us=function(t){var r=t.stickyOffsets,n=t.columns,o=t.flattenColumns,l=t.onHeaderRow,d=et(rt,["prefixCls","getComponent"]),a=d.prefixCls,i=d.getComponent,c=s.useMemo(function(){return ds(n)},[n]),f=i(["header","wrapper"],"thead"),u=i(["header","row"],"tr"),m=i(["header","cell"],"th");return s.createElement(f,{className:"".concat(a,"-thead")},c.map(function(p,g){var h=s.createElement(cs,{key:g,flattenColumns:o,cells:p,stickyOffsets:r,rowComponent:u,cellComponent:m,onHeaderRow:l,index:g});return h}))};const no=en(us);function ro(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function fs(e,t,r){return s.useMemo(function(){if(t&&t>0){var n=0,o=0;e.forEach(function(m){var p=ro(t,m.width);p?n+=p:o+=1});var l=Math.max(t,r),d=Math.max(l-n,o),a=o,i=d/o,c=0,f=e.map(function(m){var p=F({},m),g=ro(t,p.width);if(g)p.width=g;else{var h=Math.floor(i);p.width=a===1?d:h,d-=h,a-=1}return c+=p.width,p});if(c<l){var u=l/c;d=l,f.forEach(function(m,p){var g=Math.floor(m.width*u);m.width=p===f.length-1?d:g,d-=g})}return[f,Math.max(c,l)]}return[e,t]},[e,t,r])}var ps=["children"],ms=["fixed"];function xr(e){return fr(e).filter(function(t){return s.isValidElement(t)}).map(function(t){var r=t.key,n=t.props,o=n.children,l=gt(n,ps),d=F({key:r},l);return o&&(d.children=xr(o)),d})}function va(e){return e.filter(function(t){return t&&mt(t)==="object"&&!t.hidden}).map(function(t){var r=t.children;return r&&r.length>0?F(F({},t),{},{children:va(r)}):t})}function nr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(r){return r&&mt(r)==="object"}).reduce(function(r,n,o){var l=n.fixed,d=l===!0?"left":l,a="".concat(t,"-").concat(o),i=n.children;return i&&i.length>0?[].concat(he(r),he(nr(i,a).map(function(c){return F({fixed:d},c)}))):[].concat(he(r),[F(F({key:a},n),{},{fixed:d})])},[])}function gs(e){return e.map(function(t){var r=t.fixed,n=gt(t,ms),o=r;return r==="left"?o="right":r==="right"&&(o="left"),F({fixed:o},n)})}function vs(e,t){var r=e.prefixCls,n=e.columns,o=e.children,l=e.expandable,d=e.expandedKeys,a=e.columnTitle,i=e.getRowKey,c=e.onTriggerExpand,f=e.expandIcon,u=e.rowExpandable,m=e.expandIconColumnIndex,p=e.direction,g=e.expandRowByClick,h=e.columnWidth,v=e.fixed,b=e.scrollWidth,y=e.clientWidth,C=s.useMemo(function(){var P=n||xr(o)||[];return va(P.slice())},[n,o]),x=s.useMemo(function(){if(l){var P,k=C.slice();if(!k.includes(wt)){var $=m||0;$>=0&&k.splice($,0,wt)}var T=k.indexOf(wt);k=k.filter(function(H,L){return H!==wt||L===T});var D=C[T],K;(v==="left"||v)&&!m?K="left":(v==="right"||v)&&m===C.length?K="right":K=D?D.fixed:null;var z=(P={},I(P,cn,{className:"".concat(r,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),I(P,"title",a),I(P,"fixed",K),I(P,"className","".concat(r,"-row-expand-icon-cell")),I(P,"width",h),I(P,"render",function(L,W,Q){var Y=i(W,Q),de=d.has(Y),me=u?u(W):!0,$e=f({prefixCls:r,expanded:de,expandable:me,record:W,onExpand:c});return g?s.createElement("span",{onClick:function(pe){return pe.stopPropagation()}},$e):$e}),P);return k.map(function(H){return H===wt?z:H})}return C.filter(function(H){return H!==wt})},[l,C,i,d,f,p]),S=s.useMemo(function(){var P=x;return t&&(P=t(P)),P.length||(P=[{render:function(){return null}}]),P},[t,x,p]),R=s.useMemo(function(){return p==="rtl"?gs(nr(S)):nr(S)},[S,p,b]),N=s.useMemo(function(){for(var P=-1,k=R.length-1;k>=0;k-=1){var $=R[k].fixed;if($==="left"||$===!0){P=k;break}}if(P>=0)for(var T=0;T<=P;T+=1){var D=R[T].fixed;if(D!=="left"&&D!==!0)return!0}var K=R.findIndex(function(L){var W=L.fixed;return W==="right"});if(K>=0)for(var z=K;z<R.length;z+=1){var H=R[z].fixed;if(H!=="right")return!0}return!1},[R]),O=fs(R,b,y),w=ye(O,2),E=w[0],M=w[1];return[S,E,M,N]}function hs(e){var t,r=e.prefixCls,n=e.record,o=e.onExpand,l=e.expanded,d=e.expandable,a="".concat(r,"-row-expand-icon");if(!d)return s.createElement("span",{className:U(a,"".concat(r,"-row-spaced"))});var i=function(f){o(n,f),f.stopPropagation()};return s.createElement("span",{className:U(a,(t={},I(t,"".concat(r,"-row-expanded"),l),I(t,"".concat(r,"-row-collapsed"),!l),t)),onClick:i})}function bs(e,t,r){var n=[];function o(l){(l||[]).forEach(function(d,a){n.push(t(d,a)),o(d[r])})}return o(e),n}function ys(e,t,r){var n=os(e),o=n.expandIcon,l=n.expandedRowKeys,d=n.defaultExpandedRowKeys,a=n.defaultExpandAllRows,i=n.expandedRowRender,c=n.onExpand,f=n.onExpandedRowsChange,u=n.childrenColumnName,m=o||hs,p=u||"children",g=s.useMemo(function(){return i?"row":e.expandable&&e.internalHooks===mn&&e.expandable.__PARENT_RENDER_ICON__||t.some(function(S){return S&&mt(S)==="object"&&S[p]})?"nest":!1},[!!i,t]),h=s.useState(function(){return d||(a?bs(t,r,p):[])}),v=ye(h,2),b=v[0],y=v[1],C=s.useMemo(function(){return new Set(l||b||[])},[l,b]),x=s.useCallback(function(S){var R=r(S,t.indexOf(S)),N,O=C.has(R);O?(C.delete(R),N=he(C)):N=[].concat(he(C),[R]),y(N),c&&c(!O,S),f&&f(N)},[r,C,t,c,f]);return[n,g,C,m,p,x]}function Cs(e,t,r){var n=e.map(function(o,l){return Cr(l,l,e,t,r)});return Mo(function(){return n},[n],function(o,l){return!un(o,l)})}function ha(e){var t=s.useRef(e),r=s.useState({}),n=ye(r,2),o=n[1],l=s.useRef(null),d=s.useRef([]);function a(i){d.current.push(i);var c=Promise.resolve();l.current=c,c.then(function(){if(l.current===c){var f=d.current,u=t.current;d.current=[],f.forEach(function(m){t.current=m(t.current)}),l.current=null,u!==t.current&&o({})}})}return s.useEffect(function(){return function(){l.current=null}},[]),[t.current,a]}function xs(e){var t=s.useRef(null),r=s.useRef();function n(){window.clearTimeout(r.current)}function o(d){t.current=d,n(),r.current=window.setTimeout(function(){t.current=null,r.current=void 0},100)}function l(){return t.current}return s.useEffect(function(){return n},[]),[o,l]}function Ss(){var e=s.useState(-1),t=ye(e,2),r=t[0],n=t[1],o=s.useState(-1),l=ye(o,2),d=l[0],a=l[1],i=s.useCallback(function(c,f){n(c),a(f)},[]);return[r,d,i]}var oo=Ro()?window:null;function $s(e,t){var r=mt(e)==="object"?e:{},n=r.offsetHeader,o=n===void 0?0:n,l=r.offsetSummary,d=l===void 0?0:l,a=r.offsetScroll,i=a===void 0?0:a,c=r.getContainer,f=c===void 0?function(){return oo}:c,u=f()||oo;return s.useMemo(function(){var m=!!e;return{isSticky:m,stickyClassName:m?"".concat(t,"-sticky-holder"):"",offsetHeader:o,offsetSummary:d,offsetScroll:i,container:u}},[i,o,d,t,u])}function ws(e,t,r){var n=s.useMemo(function(){var o=t.length,l=function(c,f,u){for(var m=[],p=0,g=c;g!==f;g+=u)m.push(p),t[g].fixed&&(p+=e[g]||0);return m},d=l(0,o,1),a=l(o-1,-1,-1).reverse();return r==="rtl"?{left:a,right:d}:{left:d,right:a}},[e,t,r]);return n}function ao(e){var t=e.className,r=e.children;return s.createElement("div",{className:t},r)}var Es=function(t,r){var n,o,l=t.scrollBodyRef,d=t.onScroll,a=t.offsetScroll,i=t.container,c=et(rt,"prefixCls"),f=((n=l.current)===null||n===void 0?void 0:n.scrollWidth)||0,u=((o=l.current)===null||o===void 0?void 0:o.clientWidth)||0,m=f&&u*(u/f),p=s.useRef(),g=ha({scrollLeft:0,isHiddenScrollBar:!1}),h=ye(g,2),v=h[0],b=h[1],y=s.useRef({delta:0,x:0}),C=s.useState(!1),x=ye(C,2),S=x[0],R=x[1],N=s.useRef(null);s.useEffect(function(){return function(){xn.cancel(N.current)}},[]);var O=function(){R(!1)},w=function($){$.persist(),y.current.delta=$.pageX-v.scrollLeft,y.current.x=0,R(!0),$.preventDefault()},E=function($){var T,D=$||((T=window)===null||T===void 0?void 0:T.event),K=D.buttons;if(!S||K===0){S&&R(!1);return}var z=y.current.x+$.pageX-y.current.x-y.current.delta;z<=0&&(z=0),z+m>=u&&(z=u-m),d({scrollLeft:z/u*(f+2)}),y.current.x=$.pageX},M=function(){N.current=xn(function(){if(l.current){var $=Yr(l.current).top,T=$+l.current.offsetHeight,D=i===window?document.documentElement.scrollTop+window.innerHeight:Yr(i).top+i.clientHeight;T-_r()<=D||$>=D-a?b(function(K){return F(F({},K),{},{isHiddenScrollBar:!0})}):b(function(K){return F(F({},K),{},{isHiddenScrollBar:!1})})}})},P=function($){b(function(T){return F(F({},T),{},{scrollLeft:$/f*u||0})})};return s.useImperativeHandle(r,function(){return{setScrollLeft:P,checkScrollBarVisible:M}}),s.useEffect(function(){var k=bn(document.body,"mouseup",O,!1),$=bn(document.body,"mousemove",E,!1);return M(),function(){k.remove(),$.remove()}},[m,S]),s.useEffect(function(){var k=bn(i,"scroll",M,!1),$=bn(window,"resize",M,!1);return function(){k.remove(),$.remove()}},[i]),s.useEffect(function(){v.isHiddenScrollBar||b(function(k){var $=l.current;return $?F(F({},k),{},{scrollLeft:$.scrollLeft/$.scrollWidth*$.clientWidth}):k})},[v.isHiddenScrollBar]),f<=u||!m||v.isHiddenScrollBar?null:s.createElement("div",{style:{height:_r(),width:u,bottom:a},className:"".concat(c,"-sticky-scroll")},s.createElement("div",{onMouseDown:w,ref:p,className:U("".concat(c,"-sticky-scroll-bar"),I({},"".concat(c,"-sticky-scroll-bar-active"),S)),style:{width:"".concat(m,"px"),transform:"translate3d(".concat(v.scrollLeft,"px, 0, 0)")}}))};const Is=s.forwardRef(Es);var ba="rc-table",Ns=[],Os={};function Rs(){return"No Data"}function ks(e,t){var r,n=F({rowKey:"key",prefixCls:ba,emptyText:Rs},e),o=n.prefixCls,l=n.className,d=n.rowClassName,a=n.style,i=n.data,c=n.rowKey,f=n.scroll,u=n.tableLayout,m=n.direction,p=n.title,g=n.footer,h=n.summary,v=n.caption,b=n.id,y=n.showHeader,C=n.components,x=n.emptyText,S=n.onRow,R=n.onHeaderRow,N=n.onScroll,O=n.internalHooks,w=n.transformColumns,E=n.internalRefs,M=n.tailor,P=n.getContainerWidth,k=n.sticky,$=n.rowHoverable,T=$===void 0?!0:$,D=i||Ns,K=!!D.length,z=O===mn,H=s.useCallback(function(fe,Se){return mr(C,fe)||Se},[C]),L=s.useMemo(function(){return typeof c=="function"?c:function(fe){var Se=fe&&fe[c];return Se}},[c]),W=H(["body"]),Q=Ss(),Y=ye(Q,3),de=Y[0],me=Y[1],$e=Y[2],ee=ys(n,D,L),pe=ye(ee,6),ae=pe[0],ce=pe[1],te=pe[2],q=pe[3],_=pe[4],V=pe[5],G=f==null?void 0:f.x,X=s.useState(0),j=ye(X,2),re=j[0],xe=j[1],ne=vs(F(F(F({},n),ae),{},{expandable:!!ae.expandedRowRender,columnTitle:ae.columnTitle,expandedKeys:te,getRowKey:L,onTriggerExpand:V,expandIcon:q,expandIconColumnIndex:ae.expandIconColumnIndex,direction:m,scrollWidth:z&&M&&typeof G=="number"?G:null,clientWidth:re}),z?w:null),be=ye(ne,4),Ne=be[0],J=be[1],Ce=be[2],Pe=be[3],we=Ce??G,Je=s.useMemo(function(){return{columns:Ne,flattenColumns:J}},[Ne,J]),We=s.useRef(),lt=s.useRef(),Z=s.useRef(),Oe=s.useRef();s.useImperativeHandle(t,function(){return{nativeElement:We.current,scrollTo:function(Se){var Ue;if(Z.current instanceof HTMLElement){var dt=Se.index,Ge=Se.top,Wt=Se.key;if(Ge){var Kt;(Kt=Z.current)===null||Kt===void 0||Kt.scrollTo({top:Ge})}else{var Bt,an=Wt??L(D[dt]);(Bt=Z.current.querySelector('[data-row-key="'.concat(an,'"]')))===null||Bt===void 0||Bt.scrollIntoView()}}else(Ue=Z.current)!==null&&Ue!==void 0&&Ue.scrollTo&&Z.current.scrollTo(Se)}}});var ue=s.useRef(),Be=s.useState(!1),Te=ye(Be,2),Re=Te[0],He=Te[1],je=s.useState(!1),Ke=ye(je,2),st=Ke[0],_e=Ke[1],Nt=ha(new Map),ke=ye(Nt,2),Ot=ke[0],Qe=ke[1],ot=Bn(J),at=ot.map(function(fe){return Ot.get(fe)}),ut=s.useMemo(function(){return at},[at.join("_")]),ct=ws(ut,J,m),Ve=f&&tr(f.y),qe=f&&tr(we)||!!ae.fixed,it=qe&&J.some(function(fe){var Se=fe.fixed;return Se}),De=s.useRef(),Me=$s(k,o),Ze=Me.isSticky,nn=Me.offsetHeader,_t=Me.offsetSummary,xt=Me.offsetScroll,se=Me.stickyClassName,ve=Me.container,Ee=s.useMemo(function(){return h==null?void 0:h(D)},[h,D]),Ie=(Ve||Ze)&&s.isValidElement(Ee)&&Ee.type===Dn&&Ee.props.fixed,Le,Xe,ft;Ve&&(Xe={overflowY:"scroll",maxHeight:f.y}),qe&&(Le={overflowX:"auto"},Ve||(Xe={overflowY:"hidden"}),ft={width:we===!0?"auto":we,minWidth:"100%"});var Ae=s.useCallback(function(fe,Se){gi(We.current)&&Qe(function(Ue){if(Ue.get(fe)!==Se){var dt=new Map(Ue);return dt.set(fe,Se),dt}return Ue})},[]),vn=xs(),At=ye(vn,2),rn=At[0],St=At[1];function Rt(fe,Se){Se&&(typeof Se=="function"?Se(fe):Se.scrollLeft!==fe&&(Se.scrollLeft=fe,Se.scrollLeft!==fe&&setTimeout(function(){Se.scrollLeft=fe},0)))}var pt=bt(function(fe){var Se=fe.currentTarget,Ue=fe.scrollLeft,dt=m==="rtl",Ge=typeof Ue=="number"?Ue:Se.scrollLeft,Wt=Se||Os;if(!St()||St()===Wt){var Kt;rn(Wt),Rt(Ge,lt.current),Rt(Ge,Z.current),Rt(Ge,ue.current),Rt(Ge,(Kt=De.current)===null||Kt===void 0?void 0:Kt.setScrollLeft)}var Bt=Se||lt.current;if(Bt){var an=Bt.scrollWidth,An=Bt.clientWidth;if(an===An){He(!1),_e(!1);return}dt?(He(-Ge<an-An),_e(-Ge>0)):(He(Ge>0),_e(Ge<an-An))}}),on=bt(function(fe){pt(fe),N==null||N(fe)}),kt=function(){qe&&Z.current?pt({currentTarget:Z.current}):(He(!1),_e(!1))},Pt=function(Se){var Ue,dt=Se.width;(Ue=De.current)===null||Ue===void 0||Ue.checkScrollBarVisible();var Ge=We.current?We.current.offsetWidth:dt;z&&P&&We.current&&(Ge=P(We.current,Ge)||Ge),Ge!==re&&(kt(),xe(Ge))},Ft=s.useRef(!1);s.useEffect(function(){Ft.current&&kt()},[qe,i,Ne.length]),s.useEffect(function(){Ft.current=!0},[]);var zn=s.useState(0),oe=ye(zn,2),ge=oe[0],ze=oe[1],vt=s.useState(!0),Tt=ye(vt,2),Or=Tt[0],Ma=Tt[1];s.useEffect(function(){(!M||!z)&&(Z.current instanceof Element?ze(Ar(Z.current).width):ze(Ar(Oe.current).width)),Ma(zi("position","sticky"))},[]),s.useEffect(function(){z&&E&&(E.body.current=Z.current)});var za=s.useCallback(function(fe){return s.createElement(s.Fragment,null,s.createElement(no,fe),Ie==="top"&&s.createElement(yn,fe,Ee))},[Ie,Ee]),Ha=s.useCallback(function(fe){return s.createElement(yn,fe,Ee)},[Ee]),Rr=H(["table"],"table"),hn=s.useMemo(function(){return u||(it?we==="max-content"?"auto":"fixed":Ve||Ze||J.some(function(fe){var Se=fe.ellipsis;return Se})?"fixed":"auto")},[Ve,it,J,u,Ze]),Hn,Ln={colWidths:ut,columCount:J.length,stickyOffsets:ct,onHeaderRow:R,fixHeader:Ve,scroll:f},kr=s.useMemo(function(){return K?null:typeof x=="function"?x():x},[K,x]),Pr=s.createElement(ns,{data:D,measureColumnWidth:Ve||qe||Ze}),Tr=s.createElement(ga,{colWidths:J.map(function(fe){var Se=fe.width;return Se}),columns:J}),Kr=v!=null?s.createElement("caption",{className:"".concat(o,"-caption")},v):void 0,La=dn(n,{data:!0}),Br=dn(n,{aria:!0});if(Ve||Ze){var jn;typeof W=="function"?(jn=W(D,{scrollbarSize:ge,ref:Z,onScroll:pt}),Ln.colWidths=J.map(function(fe,Se){var Ue=fe.width,dt=Se===J.length-1?Ue-ge:Ue;return typeof dt=="number"&&!Number.isNaN(dt)?dt:0})):jn=s.createElement("div",{style:F(F({},Le),Xe),onScroll:on,ref:Z,className:U("".concat(o,"-body"))},s.createElement(Rr,le({style:F(F({},ft),{},{tableLayout:hn})},Br),Kr,Tr,Pr,!Ie&&Ee&&s.createElement(yn,{stickyOffsets:ct,flattenColumns:J},Ee)));var Dr=F(F(F({noData:!D.length,maxContentScroll:qe&&we==="max-content"},Ln),Je),{},{direction:m,stickyClassName:se,onScroll:pt});Hn=s.createElement(s.Fragment,null,y!==!1&&s.createElement(to,le({},Dr,{stickyTopOffset:nn,className:"".concat(o,"-header"),ref:lt}),za),jn,Ie&&Ie!=="top"&&s.createElement(to,le({},Dr,{stickyBottomOffset:_t,className:"".concat(o,"-summary"),ref:ue}),Ha),Ze&&Z.current&&Z.current instanceof Element&&s.createElement(Is,{ref:De,offsetScroll:xt,scrollBodyRef:Z,onScroll:pt,container:ve}))}else Hn=s.createElement("div",{style:F(F({},Le),Xe),className:U("".concat(o,"-content")),onScroll:pt,ref:Z},s.createElement(Rr,le({style:F(F({},ft),{},{tableLayout:hn})},Br),Kr,Tr,y!==!1&&s.createElement(no,le({},Ln,Je)),Pr,Ee&&s.createElement(yn,{stickyOffsets:ct,flattenColumns:J},Ee)));var _n=s.createElement("div",le({className:U(o,l,(r={},I(r,"".concat(o,"-rtl"),m==="rtl"),I(r,"".concat(o,"-ping-left"),Re),I(r,"".concat(o,"-ping-right"),st),I(r,"".concat(o,"-layout-fixed"),u==="fixed"),I(r,"".concat(o,"-fixed-header"),Ve),I(r,"".concat(o,"-fixed-column"),it),I(r,"".concat(o,"-fixed-column-gapped"),it&&Pe),I(r,"".concat(o,"-scroll-horizontal"),qe),I(r,"".concat(o,"-has-fix-left"),J[0]&&J[0].fixed),I(r,"".concat(o,"-has-fix-right"),J[J.length-1]&&J[J.length-1].fixed==="right"),r)),style:a,id:b,ref:We},La),p&&s.createElement(ao,{className:"".concat(o,"-title")},p(D)),s.createElement("div",{ref:Oe,className:"".concat(o,"-container")},Hn),g&&s.createElement(ao,{className:"".concat(o,"-footer")},g(D)));qe&&(_n=s.createElement(gr,{onResize:Pt},_n));var Mr=Cs(J,ct,m),ja=s.useMemo(function(){return{scrollX:we,prefixCls:o,getComponent:H,scrollbarSize:ge,direction:m,fixedInfoList:Mr,isSticky:Ze,supportSticky:Or,componentWidth:re,fixHeader:Ve,fixColumn:it,horizonScroll:qe,tableLayout:hn,rowClassName:d,expandedRowClassName:ae.expandedRowClassName,expandIcon:q,expandableType:ce,expandRowByClick:ae.expandRowByClick,expandedRowRender:ae.expandedRowRender,onTriggerExpand:V,expandIconColumnIndex:ae.expandIconColumnIndex,indentSize:ae.indentSize,allColumnsFixedLeft:J.every(function(fe){return fe.fixed==="left"}),emptyNode:kr,columns:Ne,flattenColumns:J,onColumnResize:Ae,hoverStartRow:de,hoverEndRow:me,onHover:$e,rowExpandable:ae.rowExpandable,onRow:S,getRowKey:L,expandedKeys:te,childrenColumnName:_,rowHoverable:T}},[we,o,H,ge,m,Mr,Ze,Or,re,Ve,it,qe,hn,d,ae.expandedRowClassName,q,ce,ae.expandRowByClick,ae.expandedRowRender,V,ae.expandIconColumnIndex,ae.indentSize,kr,Ne,J,Ae,de,me,$e,ae.rowExpandable,S,L,te,_,T]);return s.createElement(rt.Provider,{value:ja},_n)}var Ps=s.forwardRef(ks);function ya(e){return ia(Ps,e)}var tn=ya();tn.EXPAND_COLUMN=wt;tn.INTERNAL_HOOKS=mn;tn.Column=Gl;tn.ColumnGroup=Yl;tn.Summary=ca;var Sr=br(null),Ca=br(null);function Ts(e,t,r){var n=t||1;return r[e+n]-(r[e]||0)}function Ks(e){var t=e.rowInfo,r=e.column,n=e.colIndex,o=e.indent,l=e.index,d=e.component,a=e.renderIndex,i=e.record,c=e.style,f=e.className,u=e.inverse,m=e.getHeight,p=r.render,g=r.dataIndex,h=r.className,v=r.width,b=et(Ca,["columnsOffset"]),y=b.columnsOffset,C=ma(t,r,n,o,l),x=C.key,S=C.fixedInfo,R=C.appendCellNode,N=C.additionalCellProps,O=N.style,w=N.colSpan,E=w===void 0?1:w,M=N.rowSpan,P=M===void 0?1:M,k=n-1,$=Ts(k,E,y),T=E>1?v-$:0,D=F(F(F({},O),c),{},{flex:"0 0 ".concat($,"px"),width:"".concat($,"px"),marginRight:T,pointerEvents:"auto"}),K=s.useMemo(function(){return u?P<=1:E===0||P===0||P>1},[P,E,u]);K?D.visibility="hidden":u&&(D.height=m==null?void 0:m(P));var z=K?function(){return null}:p,H={};return(P===0||E===0)&&(H.rowSpan=1,H.colSpan=1),s.createElement(jt,le({className:U(h,f),ellipsis:r.ellipsis,align:r.align,scope:r.rowScope,component:d,prefixCls:t.prefixCls,key:x,record:i,index:l,renderIndex:a,dataIndex:g,render:z,shouldCellUpdate:r.shouldCellUpdate},S,{appendNode:R,additionalProps:F(F({},N),{},{style:D},H)}))}var Bs=["data","index","className","rowKey","style","extra","getHeight"],Ds=s.forwardRef(function(e,t){var r=e.data,n=e.index,o=e.className,l=e.rowKey,d=e.style,a=e.extra,i=e.getHeight,c=gt(e,Bs),f=r.record,u=r.indent,m=r.index,p=et(rt,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),g=p.scrollX,h=p.flattenColumns,v=p.prefixCls,b=p.fixColumn,y=p.componentWidth,C=et(Sr,["getComponent"]),x=C.getComponent,S=fa(f,l,n,u),R=x(["body","row"],"div"),N=x(["body","cell"],"div"),O=S.rowSupportExpand,w=S.expanded,E=S.rowProps,M=S.expandedRowRender,P=S.expandedRowClassName,k;if(O&&w){var $=M(f,n,u+1,w),T=P==null?void 0:P(f,n,u),D={};b&&(D={style:I({},"--virtual-width","".concat(y,"px"))});var K="".concat(v,"-expanded-row-cell");k=s.createElement(R,{className:U("".concat(v,"-expanded-row"),"".concat(v,"-expanded-row-level-").concat(u+1),T)},s.createElement(jt,{component:N,prefixCls:v,className:U(K,I({},"".concat(K,"-fixed"),b)),additionalProps:D},$))}var z=F(F({},d),{},{width:g});a&&(z.position="absolute",z.pointerEvents="none");var H=s.createElement(R,le({},E,c,{"data-row-key":l,ref:O?null:t,className:U(o,"".concat(v,"-row"),E==null?void 0:E.className,I({},"".concat(v,"-row-extra"),a)),style:F(F({},z),E==null?void 0:E.style)}),h.map(function(L,W){return s.createElement(Ks,{key:W,component:N,rowInfo:S,column:L,colIndex:W,indent:u,index:n,renderIndex:m,record:f,inverse:a,getHeight:i})}));return O?s.createElement("div",{ref:t},H,k):H}),io=en(Ds),Ms=s.forwardRef(function(e,t){var r=e.data,n=e.onScroll,o=et(rt,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),l=o.flattenColumns,d=o.onColumnResize,a=o.getRowKey,i=o.expandedKeys,c=o.prefixCls,f=o.childrenColumnName,u=o.emptyNode,m=o.scrollX,p=et(Sr),g=p.sticky,h=p.scrollY,v=p.listItemHeight,b=p.getComponent,y=p.onScroll,C=s.useRef(),x=ua(r,f,i,a),S=s.useMemo(function(){var D=0;return l.map(function(K){var z=K.width,H=K.key;return D+=z,[H,z,D]})},[l]),R=s.useMemo(function(){return S.map(function(D){return D[2]})},[S]);s.useEffect(function(){S.forEach(function(D){var K=ye(D,2),z=K[0],H=K[1];d(z,H)})},[S]),s.useImperativeHandle(t,function(){var D={scrollTo:function(z){var H;(H=C.current)===null||H===void 0||H.scrollTo(z)}};return Object.defineProperty(D,"scrollLeft",{get:function(){var z;return((z=C.current)===null||z===void 0?void 0:z.getScrollInfo().x)||0},set:function(z){var H;(H=C.current)===null||H===void 0||H.scrollTo({left:z})}}),D});var N=function(K,z){var H,L=(H=x[z])===null||H===void 0?void 0:H.record,W=K.onCell;if(W){var Q,Y=W(L,z);return(Q=Y==null?void 0:Y.rowSpan)!==null&&Q!==void 0?Q:1}return 1},O=function(K){var z=K.start,H=K.end,L=K.getSize,W=K.offsetY;if(H<0)return null;for(var Q=l.filter(function(V){return N(V,z)===0}),Y=z,de=function(G){if(Q=Q.filter(function(X){return N(X,G)===0}),!Q.length)return Y=G,1},me=z;me>=0&&!de(me);me-=1);for(var $e=l.filter(function(V){return N(V,H)!==1}),ee=H,pe=function(G){if($e=$e.filter(function(X){return N(X,G)!==1}),!$e.length)return ee=Math.max(G-1,H),1},ae=H;ae<x.length&&!pe(ae);ae+=1);for(var ce=[],te=function(G){var X=x[G];if(!X)return 1;l.some(function(j){return N(j,G)>1})&&ce.push(G)},q=Y;q<=ee;q+=1)te(q);var _=ce.map(function(V){var G=x[V],X=a(G.record,V),j=function(ne){var be=V+ne-1,Ne=a(x[be].record,be),J=L(X,Ne);return J.bottom-J.top},re=L(X);return s.createElement(io,{key:V,data:G,rowKey:X,index:V,style:{top:-W+re.top},extra:!0,getHeight:j})});return _},w=s.useMemo(function(){return{columnsOffset:R}},[R]),E="".concat(c,"-tbody"),M=b(["body","wrapper"]),P=b(["body","row"],"div"),k=b(["body","cell"],"div"),$;if(x.length){var T={};g&&(T.position="sticky",T.bottom=0,mt(g)==="object"&&g.offsetScroll&&(T.bottom=g.offsetScroll)),$=s.createElement(zo,{fullHeight:!1,ref:C,prefixCls:"".concat(E,"-virtual"),styles:{horizontalScrollBar:T},className:E,height:h,itemHeight:v||24,data:x,itemKey:function(K){return a(K.record)},component:M,scrollWidth:m,onVirtualScroll:function(K){var z=K.x;n({scrollLeft:z})},onScroll:y,extraRender:O},function(D,K,z){var H=a(D.record,K);return s.createElement(io,{data:D,rowKey:H,index:K,style:z.style})})}else $=s.createElement(P,{className:U("".concat(c,"-placeholder"))},s.createElement(jt,{component:k,prefixCls:c},u));return s.createElement(Ca.Provider,{value:w},$)}),zs=en(Ms),Hs=function(t,r){var n=r.ref,o=r.onScroll;return s.createElement(zs,{ref:n,data:t,onScroll:o})};function Ls(e,t){var r=e.columns,n=e.scroll,o=e.sticky,l=e.prefixCls,d=l===void 0?ba:l,a=e.className,i=e.listItemHeight,c=e.components,f=e.onScroll,u=n||{},m=u.x,p=u.y;typeof m!="number"&&(m=1),typeof p!="number"&&(p=500);var g=bt(function(b,y){return mr(c,b)||y}),h=bt(f),v=s.useMemo(function(){return{sticky:o,scrollY:p,listItemHeight:i,getComponent:g,onScroll:h}},[o,p,i,g,h]);return s.createElement(Sr.Provider,{value:v},s.createElement(tn,le({},e,{className:U(a,"".concat(d,"-virtual")),scroll:F(F({},n),{},{x:m}),components:F(F({},c),{},{body:Hs}),columns:r,internalHooks:mn,tailor:!0,ref:t})))}var js=s.forwardRef(Ls);function xa(e){return ia(js,e)}xa();function _s(e){return null}function As(e){return null}var $r=s.createContext(null),Fs=function(t){for(var r=t.prefixCls,n=t.level,o=t.isStart,l=t.isEnd,d="".concat(r,"-indent-unit"),a=[],i=0;i<n;i+=1)a.push(s.createElement("span",{key:i,className:U(d,I(I({},"".concat(d,"-start"),o[i]),"".concat(d,"-end"),l[i]))}));return s.createElement("span",{"aria-hidden":"true",className:"".concat(r,"-indent")},a)};const Ws=s.memo(Fs);var Vs=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],lo="open",so="close",Xs="---",qs=function(e){Ho(r,e);var t=Lo(r);function r(){var n;jo(this,r);for(var o=arguments.length,l=new Array(o),d=0;d<o;d++)l[d]=arguments[d];return n=t.call.apply(t,[this].concat(l)),I(A(n),"state",{dragNodeHighlight:!1}),I(A(n),"selectHandle",void 0),I(A(n),"cacheIndent",void 0),I(A(n),"onSelectorClick",function(a){var i=n.props.context.onNodeClick;i(a,Fe(n.props)),n.isSelectable()?n.onSelect(a):n.onCheck(a)}),I(A(n),"onSelectorDoubleClick",function(a){var i=n.props.context.onNodeDoubleClick;i(a,Fe(n.props))}),I(A(n),"onSelect",function(a){if(!n.isDisabled()){var i=n.props.context.onNodeSelect;i(a,Fe(n.props))}}),I(A(n),"onCheck",function(a){if(!n.isDisabled()){var i=n.props,c=i.disableCheckbox,f=i.checked,u=n.props.context.onNodeCheck;if(!(!n.isCheckable()||c)){var m=!f;u(a,Fe(n.props),m)}}}),I(A(n),"onMouseEnter",function(a){var i=n.props.context.onNodeMouseEnter;i(a,Fe(n.props))}),I(A(n),"onMouseLeave",function(a){var i=n.props.context.onNodeMouseLeave;i(a,Fe(n.props))}),I(A(n),"onContextMenu",function(a){var i=n.props.context.onNodeContextMenu;i(a,Fe(n.props))}),I(A(n),"onDragStart",function(a){var i=n.props.context.onNodeDragStart;a.stopPropagation(),n.setState({dragNodeHighlight:!0}),i(a,A(n));try{a.dataTransfer.setData("text/plain","")}catch{}}),I(A(n),"onDragEnter",function(a){var i=n.props.context.onNodeDragEnter;a.preventDefault(),a.stopPropagation(),i(a,A(n))}),I(A(n),"onDragOver",function(a){var i=n.props.context.onNodeDragOver;a.preventDefault(),a.stopPropagation(),i(a,A(n))}),I(A(n),"onDragLeave",function(a){var i=n.props.context.onNodeDragLeave;a.stopPropagation(),i(a,A(n))}),I(A(n),"onDragEnd",function(a){var i=n.props.context.onNodeDragEnd;a.stopPropagation(),n.setState({dragNodeHighlight:!1}),i(a,A(n))}),I(A(n),"onDrop",function(a){var i=n.props.context.onNodeDrop;a.preventDefault(),a.stopPropagation(),n.setState({dragNodeHighlight:!1}),i(a,A(n))}),I(A(n),"onExpand",function(a){var i=n.props,c=i.loading,f=i.context.onNodeExpand;c||f(a,Fe(n.props))}),I(A(n),"setSelectHandle",function(a){n.selectHandle=a}),I(A(n),"getNodeState",function(){var a=n.props.expanded;return n.isLeaf()?null:a?lo:so}),I(A(n),"hasChildren",function(){var a=n.props.eventKey,i=n.props.context.keyEntities,c=tt(i,a)||{},f=c.children;return!!(f||[]).length}),I(A(n),"isLeaf",function(){var a=n.props,i=a.isLeaf,c=a.loaded,f=n.props.context.loadData,u=n.hasChildren();return i===!1?!1:i||!f&&!u||f&&c&&!u}),I(A(n),"isDisabled",function(){var a=n.props.disabled,i=n.props.context.disabled;return!!(i||a)}),I(A(n),"isCheckable",function(){var a=n.props.checkable,i=n.props.context.checkable;return!i||a===!1?!1:i}),I(A(n),"syncLoadData",function(a){var i=a.expanded,c=a.loading,f=a.loaded,u=n.props.context,m=u.loadData,p=u.onNodeLoad;c||m&&i&&!n.isLeaf()&&!f&&p(Fe(n.props))}),I(A(n),"isDraggable",function(){var a=n.props,i=a.data,c=a.context.draggable;return!!(c&&(!c.nodeDraggable||c.nodeDraggable(i)))}),I(A(n),"renderDragHandler",function(){var a=n.props.context,i=a.draggable,c=a.prefixCls;return i!=null&&i.icon?s.createElement("span",{className:"".concat(c,"-draggable-icon")},i.icon):null}),I(A(n),"renderSwitcherIconDom",function(a){var i=n.props.switcherIcon,c=n.props.context.switcherIcon,f=i||c;return typeof f=="function"?f(F(F({},n.props),{},{isLeaf:a})):f}),I(A(n),"renderSwitcher",function(){var a=n.props.expanded,i=n.props.context.prefixCls;if(n.isLeaf()){var c=n.renderSwitcherIconDom(!0);return c!==!1?s.createElement("span",{className:U("".concat(i,"-switcher"),"".concat(i,"-switcher-noop"))},c):null}var f=U("".concat(i,"-switcher"),"".concat(i,"-switcher_").concat(a?lo:so)),u=n.renderSwitcherIconDom(!1);return u!==!1?s.createElement("span",{onClick:n.onExpand,className:f},u):null}),I(A(n),"renderCheckbox",function(){var a=n.props,i=a.checked,c=a.halfChecked,f=a.disableCheckbox,u=n.props.context.prefixCls,m=n.isDisabled(),p=n.isCheckable();if(!p)return null;var g=typeof p!="boolean"?p:null;return s.createElement("span",{className:U("".concat(u,"-checkbox"),i&&"".concat(u,"-checkbox-checked"),!i&&c&&"".concat(u,"-checkbox-indeterminate"),(m||f)&&"".concat(u,"-checkbox-disabled")),onClick:n.onCheck},g)}),I(A(n),"renderIcon",function(){var a=n.props.loading,i=n.props.context.prefixCls;return s.createElement("span",{className:U("".concat(i,"-iconEle"),"".concat(i,"-icon__").concat(n.getNodeState()||"docu"),a&&"".concat(i,"-icon_loading"))})}),I(A(n),"renderSelector",function(){var a=n.state.dragNodeHighlight,i=n.props,c=i.title,f=c===void 0?Xs:c,u=i.selected,m=i.icon,p=i.loading,g=i.data,h=n.props.context,v=h.prefixCls,b=h.showIcon,y=h.icon,C=h.loadData,x=h.titleRender,S=n.isDisabled(),R="".concat(v,"-node-content-wrapper"),N;if(b){var O=m||y;N=O?s.createElement("span",{className:U("".concat(v,"-iconEle"),"".concat(v,"-icon__customize"))},typeof O=="function"?O(n.props):O):n.renderIcon()}else C&&p&&(N=n.renderIcon());var w;typeof f=="function"?w=f(g):x?w=x(g):w=f;var E=s.createElement("span",{className:"".concat(v,"-title")},w);return s.createElement("span",{ref:n.setSelectHandle,title:typeof f=="string"?f:"",className:U("".concat(R),"".concat(R,"-").concat(n.getNodeState()||"normal"),!S&&(u||a)&&"".concat(v,"-node-selected")),onMouseEnter:n.onMouseEnter,onMouseLeave:n.onMouseLeave,onContextMenu:n.onContextMenu,onClick:n.onSelectorClick,onDoubleClick:n.onSelectorDoubleClick},N,E,n.renderDropIndicator())}),I(A(n),"renderDropIndicator",function(){var a=n.props,i=a.disabled,c=a.eventKey,f=n.props.context,u=f.draggable,m=f.dropLevelOffset,p=f.dropPosition,g=f.prefixCls,h=f.indent,v=f.dropIndicatorRender,b=f.dragOverNodeKey,y=f.direction,C=!!u,x=!i&&C&&b===c,S=h??n.cacheIndent;return n.cacheIndent=h,x?v({dropPosition:p,dropLevelOffset:m,indent:S,prefixCls:g,direction:y}):null}),n}return _o(r,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var o=this.props.selectable,l=this.props.context.selectable;return typeof o=="boolean"?o:l}},{key:"render",value:function(){var o,l=this.props,d=l.eventKey,a=l.className,i=l.style,c=l.dragOver,f=l.dragOverGapTop,u=l.dragOverGapBottom,m=l.isLeaf,p=l.isStart,g=l.isEnd,h=l.expanded,v=l.selected,b=l.checked,y=l.halfChecked,C=l.loading,x=l.domRef,S=l.active;l.data;var R=l.onMouseMove,N=l.selectable,O=gt(l,Vs),w=this.props.context,E=w.prefixCls,M=w.filterTreeNode,P=w.keyEntities,k=w.dropContainerKey,$=w.dropTargetKey,T=w.draggingNodeKey,D=this.isDisabled(),K=dn(O,{aria:!0,data:!0}),z=tt(P,d)||{},H=z.level,L=g[g.length-1],W=this.isDraggable(),Q=!D&&W,Y=T===d,de=N!==void 0?{"aria-selected":!!N}:void 0;return s.createElement("div",le({ref:x,className:U(a,"".concat(E,"-treenode"),(o={},I(I(I(I(I(I(I(I(I(I(o,"".concat(E,"-treenode-disabled"),D),"".concat(E,"-treenode-switcher-").concat(h?"open":"close"),!m),"".concat(E,"-treenode-checkbox-checked"),b),"".concat(E,"-treenode-checkbox-indeterminate"),y),"".concat(E,"-treenode-selected"),v),"".concat(E,"-treenode-loading"),C),"".concat(E,"-treenode-active"),S),"".concat(E,"-treenode-leaf-last"),L),"".concat(E,"-treenode-draggable"),W),"dragging",Y),I(I(I(I(I(I(o,"drop-target",$===d),"drop-container",k===d),"drag-over",!D&&c),"drag-over-gap-top",!D&&f),"drag-over-gap-bottom",!D&&u),"filter-node",M&&M(Fe(this.props))))),style:i,draggable:Q,"aria-grabbed":Y,onDragStart:Q?this.onDragStart:void 0,onDragEnter:W?this.onDragEnter:void 0,onDragOver:W?this.onDragOver:void 0,onDragLeave:W?this.onDragLeave:void 0,onDrop:W?this.onDrop:void 0,onDragEnd:W?this.onDragEnd:void 0,onMouseMove:R},de,K),s.createElement(Ws,{prefixCls:E,level:H,isStart:p,isEnd:g}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),r}(s.Component),Yt=function(t){return s.createElement($r.Consumer,null,function(r){return s.createElement(qs,le({},t,{context:r}))})};Yt.displayName="TreeNode";Yt.isTreeNode=1;function ht(e,t){if(!e)return[];var r=e.slice(),n=r.indexOf(t);return n>=0&&r.splice(n,1),r}function yt(e,t){var r=(e||[]).slice();return r.indexOf(t)===-1&&r.push(t),r}function wr(e){return e.split("-")}function Us(e,t){var r=[],n=tt(t,e);function o(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];l.forEach(function(d){var a=d.key,i=d.children;r.push(a),o(i)})}return o(n.children),r}function Gs(e){if(e.parent){var t=wr(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function Ys(e){var t=wr(e.pos);return Number(t[t.length-1])===0}function co(e,t,r,n,o,l,d,a,i,c){var f,u=e.clientX,m=e.clientY,p=e.target.getBoundingClientRect(),g=p.top,h=p.height,v=(c==="rtl"?-1:1)*(((o==null?void 0:o.x)||0)-u),b=(v-12)/n,y=i.filter(function(D){var K;return(K=a[D])===null||K===void 0||(K=K.children)===null||K===void 0?void 0:K.length}),C=tt(a,r.props.eventKey);if(m<g+h/2){var x=d.findIndex(function(D){return D.key===C.key}),S=x<=0?0:x-1,R=d[S].key;C=tt(a,R)}var N=C.key,O=C,w=C.key,E=0,M=0;if(!y.includes(N))for(var P=0;P<b&&Gs(C);P+=1)C=C.parent,M+=1;var k=t.props.data,$=C.node,T=!0;return Ys(C)&&C.level===0&&m<g+h/2&&l({dragNode:k,dropNode:$,dropPosition:-1})&&C.key===r.props.eventKey?E=-1:(O.children||[]).length&&y.includes(w)?l({dragNode:k,dropNode:$,dropPosition:0})?E=0:T=!1:M===0?b>-1.5?l({dragNode:k,dropNode:$,dropPosition:1})?E=1:T=!1:l({dragNode:k,dropNode:$,dropPosition:0})?E=0:l({dragNode:k,dropNode:$,dropPosition:1})?E=1:T=!1:l({dragNode:k,dropNode:$,dropPosition:1})?E=1:T=!1,{dropPosition:E,dropLevelOffset:M,dropTargetKey:C.key,dropTargetPos:C.pos,dragOverNodeKey:w,dropContainerKey:E===0?null:((f=C.parent)===null||f===void 0?void 0:f.key)||null,dropAllowed:T}}function uo(e,t){if(e){var r=t.multiple;return r?e.slice():e.length?[e[0]]:e}}function Vn(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(mt(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return Et(!1,"`checkedKeys` is not an array or an object"),null;return t}function rr(e,t){var r=new Set;function n(o){if(!r.has(o)){var l=tt(t,o);if(l){r.add(o);var d=l.parent,a=l.node;a.disabled||d&&n(d.key)}}}return(e||[]).forEach(function(o){n(o)}),he(r)}function Js(e){const[t,r]=s.useState(null);return[s.useCallback((l,d,a)=>{const i=t??l,c=Math.min(i||0,l),f=Math.max(i||0,l),u=d.slice(c,f+1).map(g=>e(g)),m=u.some(g=>!a.has(g)),p=[];return u.forEach(g=>{m?(a.has(g)||p.push(g),a.add(g)):(a.delete(g),p.push(g))}),r(m?f:null),p},[t]),l=>{r(l)}]}const $t={},or="SELECT_ALL",ar="SELECT_INVERT",ir="SELECT_NONE",fo=[],Sa=(e,t)=>{let r=[];return(t||[]).forEach(n=>{r.push(n),n&&typeof n=="object"&&e in n&&(r=[].concat(he(r),he(Sa(e,n[e]))))}),r},Qs=(e,t)=>{const{preserveSelectedRowKeys:r,selectedRowKeys:n,defaultSelectedRowKeys:o,getCheckboxProps:l,onChange:d,onSelect:a,onSelectAll:i,onSelectInvert:c,onSelectNone:f,onSelectMultiple:u,columnWidth:m,type:p,selections:g,fixed:h,renderCell:v,hideSelectAll:b,checkStrictly:y=!0}=t||{},{prefixCls:C,data:x,pageData:S,getRecordByKey:R,getRowKey:N,expandType:O,childrenColumnName:w,locale:E,getPopupContainer:M}=e,P=kn(),[k,$]=Js(te=>te),[T,D]=wn(n||o||fo,{value:n}),K=s.useRef(new Map),z=s.useCallback(te=>{if(r){const q=new Map;te.forEach(_=>{let V=R(_);!V&&K.current.has(_)&&(V=K.current.get(_)),q.set(_,V)}),K.current=q}},[R,r]);s.useEffect(()=>{z(T)},[T]);const{keyEntities:H}=s.useMemo(()=>{if(y)return{keyEntities:null};let te=x;if(r){const q=new Set(x.map((V,G)=>N(V,G))),_=Array.from(K.current).reduce((V,G)=>{let[X,j]=G;return q.has(X)?V:V.concat(j)},[]);te=[].concat(he(te),he(_))}return vr(te,{externalGetKey:N,childrenPropName:w})},[x,N,y,w,r]),L=s.useMemo(()=>Sa(w,S),[w,S]),W=s.useMemo(()=>{const te=new Map;return L.forEach((q,_)=>{const V=N(q,_),G=(l?l(q):null)||{};te.set(V,G)}),te},[L,N,l]),Q=s.useCallback(te=>{var q;return!!(!((q=W.get(N(te)))===null||q===void 0)&&q.disabled)},[W,N]),[Y,de]=s.useMemo(()=>{if(y)return[T||[],[]];const{checkedKeys:te,halfCheckedKeys:q}=Vt(T,!0,H,Q);return[te||[],q]},[T,y,H,Q]),me=s.useMemo(()=>{const te=p==="radio"?Y.slice(0,1):Y;return new Set(te)},[Y,p]),$e=s.useMemo(()=>p==="radio"?new Set:new Set(de),[de,p]);s.useEffect(()=>{t||D(fo)},[!!t]);const ee=s.useCallback((te,q)=>{let _,V;z(te),r?(_=te,V=te.map(G=>K.current.get(G))):(_=[],V=[],te.forEach(G=>{const X=R(G);X!==void 0&&(_.push(G),V.push(X))})),D(_),d==null||d(_,V,{type:q})},[D,R,d,r]),pe=s.useCallback((te,q,_,V)=>{if(a){const G=_.map(X=>R(X));a(R(te),q,G,V)}ee(_,"single")},[a,R,ee]),ae=s.useMemo(()=>!g||b?null:(g===!0?[or,ar,ir]:g).map(q=>q===or?{key:"all",text:E.selectionAll,onSelect(){ee(x.map((_,V)=>N(_,V)).filter(_=>{const V=W.get(_);return!(V!=null&&V.disabled)||me.has(_)}),"all")}}:q===ar?{key:"invert",text:E.selectInvert,onSelect(){const _=new Set(me);S.forEach((G,X)=>{const j=N(G,X),re=W.get(j);re!=null&&re.disabled||(_.has(j)?_.delete(j):_.add(j))});const V=Array.from(_);c&&(P.deprecated(!1,"onSelectInvert","onChange"),c(V)),ee(V,"invert")}}:q===ir?{key:"none",text:E.selectNone,onSelect(){f==null||f(),ee(Array.from(me).filter(_=>{const V=W.get(_);return V==null?void 0:V.disabled}),"none")}}:q).map(q=>Object.assign(Object.assign({},q),{onSelect:function(){for(var _,V,G=arguments.length,X=new Array(G),j=0;j<G;j++)X[j]=arguments[j];(V=q.onSelect)===null||V===void 0||(_=V).call.apply(_,[q].concat(X)),$(null)}})),[g,me,S,N,c,ee]);return[s.useCallback(te=>{var q;if(!t)return te.filter(Z=>Z!==$t);let _=he(te);const V=new Set(me),G=L.map(N).filter(Z=>!W.get(Z).disabled),X=G.every(Z=>V.has(Z)),j=G.some(Z=>V.has(Z)),re=()=>{const Z=[];X?G.forEach(ue=>{V.delete(ue),Z.push(ue)}):G.forEach(ue=>{V.has(ue)||(V.add(ue),Z.push(ue))});const Oe=Array.from(V);i==null||i(!X,Oe.map(ue=>R(ue)),Z.map(ue=>R(ue))),ee(Oe,"all"),$(null)};let xe,ne;if(p!=="radio"){let Z;if(ae){const Re={getPopupContainer:M,items:ae.map((He,je)=>{const{key:Ke,text:st,onSelect:_e}=He;return{key:Ke??je,onClick:()=>{_e==null||_e(G)},label:st}})};Z=s.createElement("div",{className:`${C}-selection-extra`},s.createElement(hr,{menu:Re,getPopupContainer:M},s.createElement("span",null,s.createElement(vi,null))))}const Oe=L.map((Re,He)=>{const je=N(Re,He),Ke=W.get(je)||{};return Object.assign({checked:V.has(je)},Ke)}).filter(Re=>{let{disabled:He}=Re;return He}),ue=!!Oe.length&&Oe.length===L.length,Be=ue&&Oe.every(Re=>{let{checked:He}=Re;return He}),Te=ue&&Oe.some(Re=>{let{checked:He}=Re;return He});ne=s.createElement(In,{checked:ue?Be:!!L.length&&X,indeterminate:ue?!Be&&Te:!X&&j,onChange:re,disabled:L.length===0||ue,"aria-label":Z?"Custom selection":"Select all",skipGroup:!0}),xe=!b&&s.createElement("div",{className:`${C}-selection`},ne,Z)}let be;p==="radio"?be=(Z,Oe,ue)=>{const Be=N(Oe,ue),Te=V.has(Be);return{node:s.createElement(Wo,Object.assign({},W.get(Be),{checked:Te,onClick:Re=>Re.stopPropagation(),onChange:Re=>{V.has(Be)||pe(Be,!0,[Be],Re.nativeEvent)}})),checked:Te}}:be=(Z,Oe,ue)=>{var Be;const Te=N(Oe,ue),Re=V.has(Te),He=$e.has(Te),je=W.get(Te);let Ke;return O==="nest"?Ke=He:Ke=(Be=je==null?void 0:je.indeterminate)!==null&&Be!==void 0?Be:He,{node:s.createElement(In,Object.assign({},je,{indeterminate:Ke,checked:Re,skipGroup:!0,onClick:st=>st.stopPropagation(),onChange:st=>{let{nativeEvent:_e}=st;const{shiftKey:Nt}=_e,ke=G.findIndex(Qe=>Qe===Te),Ot=Y.some(Qe=>G.includes(Qe));if(Nt&&y&&Ot){const Qe=k(ke,G,V),ot=Array.from(V);u==null||u(!Re,ot.map(at=>R(at)),Qe.map(at=>R(at))),ee(ot,"multiple")}else{const Qe=Y;if(y){const ot=Re?ht(Qe,Te):yt(Qe,Te);pe(Te,!Re,ot,_e)}else{const ot=Vt([].concat(he(Qe),[Te]),!0,H,Q),{checkedKeys:at,halfCheckedKeys:ut}=ot;let ct=at;if(Re){const Ve=new Set(at);Ve.delete(Te),ct=Vt(Array.from(Ve),{checked:!1,halfCheckedKeys:ut},H,Q).checkedKeys}pe(Te,!Re,ct,_e)}}$(Re?null:ke)}})),checked:Re}};const Ne=(Z,Oe,ue)=>{const{node:Be,checked:Te}=be(Z,Oe,ue);return v?v(Te,Oe,ue,Be):Be};if(!_.includes($t))if(_.findIndex(Z=>{var Oe;return((Oe=Z[cn])===null||Oe===void 0?void 0:Oe.columnType)==="EXPAND_COLUMN"})===0){const[Z,...Oe]=_;_=[Z,$t].concat(he(Oe))}else _=[$t].concat(he(_));const J=_.indexOf($t);_=_.filter((Z,Oe)=>Z!==$t||Oe===J);const Ce=_[J-1],Pe=_[J+1];let we=h;we===void 0&&((Pe==null?void 0:Pe.fixed)!==void 0?we=Pe.fixed:(Ce==null?void 0:Ce.fixed)!==void 0&&(we=Ce.fixed)),we&&Ce&&((q=Ce[cn])===null||q===void 0?void 0:q.columnType)==="EXPAND_COLUMN"&&Ce.fixed===void 0&&(Ce.fixed=we);const Je=U(`${C}-selection-col`,{[`${C}-selection-col-with-dropdown`]:g&&p==="checkbox"}),We=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(ne):t.columnTitle:xe,lt={fixed:we,width:m,className:`${C}-selection-column`,title:We(),render:Ne,onCell:t.onCell,[cn]:{className:Je}};return _.map(Z=>Z===$t?lt:Z)},[N,L,t,Y,me,$e,m,ae,O,W,u,pe,Q]),me]};function Zs(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(r=>{if(!(r in e._antProxy)){const n=e[r];e._antProxy[r]=n,e[r]=t[r]}}),e}function ec(e,t){return s.useImperativeHandle(e,()=>{const r=t(),{nativeElement:n}=r;return typeof Proxy<"u"?new Proxy(n,{get(o,l){return r[l]?r[l]:Reflect.get(o,l)}}):Zs(n,r)})}function tc(e){return function(r){let{prefixCls:n,onExpand:o,record:l,expanded:d,expandable:a}=r;const i=`${n}-row-expand-icon`;return s.createElement("button",{type:"button",onClick:c=>{o(l,c),c.stopPropagation()},className:U(i,{[`${i}-spaced`]:!a,[`${i}-expanded`]:a&&d,[`${i}-collapsed`]:a&&!d}),"aria-label":d?e.collapse:e.expand,"aria-expanded":d})}}function nc(e){return(r,n)=>{const o=r.querySelector(`.${e}-container`);let l=n;if(o){const d=getComputedStyle(o),a=parseInt(d.borderLeftWidth,10),i=parseInt(d.borderRightWidth,10);l=n-a-i}return l}}function Ht(e,t){return"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t}function gn(e,t){return t?`${t}-${e}`:`${e}`}function Mn(e,t){return typeof e=="function"?e(t):e}function rc(e,t){const r=Mn(e,t);return Object.prototype.toString.call(r)==="[object Object]"?"":r}var oc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},ac=function(t,r){return s.createElement(nt,le({},t,{ref:r,icon:oc}))},ic=s.forwardRef(ac);function lc(e){const t=s.useRef(e),r=Ao();return[()=>t.current,n=>{t.current=n,r()}]}function sc(e){var t=e.dropPosition,r=e.dropLevelOffset,n=e.indent,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:o.top=0,o.left=-r*n;break;case 1:o.bottom=0,o.left=-r*n;break;case 0:o.bottom=0,o.left=n;break}return s.createElement("div",{style:o})}function $a(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function cc(e,t){var r=s.useState(!1),n=ye(r,2),o=n[0],l=n[1];zt(function(){if(o)return e(),function(){t()}},[o]),zt(function(){return l(!0),function(){l(!1)}},[])}var dc=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],wa=function(t,r){var n=t.className,o=t.style,l=t.motion,d=t.motionNodes,a=t.motionType,i=t.onMotionStart,c=t.onMotionEnd,f=t.active,u=t.treeNodeRequiredProps,m=gt(t,dc),p=s.useState(!0),g=ye(p,2),h=g[0],v=g[1],b=s.useContext($r),y=b.prefixCls,C=d&&a!=="hide";zt(function(){d&&C!==h&&v(C)},[d]);var x=function(){d&&i()},S=s.useRef(!1),R=function(){d&&!S.current&&(S.current=!0,c())};cc(x,R);var N=function(w){C===w&&R()};return d?s.createElement(hi,le({ref:r,visible:h},l,{motionAppear:a==="show",onVisibleChanged:N}),function(O,w){var E=O.className,M=O.style;return s.createElement("div",{ref:w,className:U("".concat(y,"-treenode-motion"),E),style:M},d.map(function(P){var k=Object.assign({},($a(P.data),P.data)),$=P.title,T=P.key,D=P.isStart,K=P.isEnd;delete k.children;var z=sn(T,u);return s.createElement(Yt,le({},k,z,{title:$,active:f,data:P.data,key:T,isStart:D,isEnd:K}))}))}):s.createElement(Yt,le({domRef:r,className:n,style:o},m,{active:f}))};wa.displayName="MotionTreeNode";var uc=s.forwardRef(wa);function fc(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=e.length,n=t.length;if(Math.abs(r-n)!==1)return{add:!1,key:null};function o(l,d){var a=new Map;l.forEach(function(c){a.set(c,!0)});var i=d.filter(function(c){return!a.has(c)});return i.length===1?i[0]:null}return r<n?{add:!0,key:o(e,t)}:{add:!1,key:o(t,e)}}function po(e,t,r){var n=e.findIndex(function(a){return a.key===r}),o=e[n+1],l=t.findIndex(function(a){return a.key===r});if(o){var d=t.findIndex(function(a){return a.key===o.key});return t.slice(l+1,d)}return t.slice(l+1)}var pc=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],mo={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},mc=function(){},Lt="RC_TREE_MOTION_".concat(Math.random()),lr={key:Lt},Ea={key:Lt,level:0,index:0,pos:"0",node:lr,nodes:[lr]},go={parent:null,children:[],pos:Ea.pos,data:lr,title:null,key:Lt,isStart:[],isEnd:[]};function vo(e,t,r,n){return t===!1||!r?e:e.slice(0,Math.ceil(r/n)+1)}function ho(e){var t=e.key,r=e.pos;return pn(t,r)}function gc(e){for(var t=String(e.data.key),r=e;r.parent;)r=r.parent,t="".concat(r.data.key," > ").concat(t);return t}var Ia=s.forwardRef(function(e,t){var r=e.prefixCls,n=e.data;e.selectable,e.checkable;var o=e.expandedKeys,l=e.selectedKeys,d=e.checkedKeys,a=e.loadedKeys,i=e.loadingKeys,c=e.halfCheckedKeys,f=e.keyEntities,u=e.disabled,m=e.dragging,p=e.dragOverNodeKey,g=e.dropPosition,h=e.motion,v=e.height,b=e.itemHeight,y=e.virtual,C=e.focusable,x=e.activeItem,S=e.focused,R=e.tabIndex,N=e.onKeyDown,O=e.onFocus,w=e.onBlur,E=e.onActiveChange,M=e.onListChangeStart,P=e.onListChangeEnd,k=gt(e,pc),$=s.useRef(null),T=s.useRef(null);s.useImperativeHandle(t,function(){return{scrollTo:function(be){$.current.scrollTo(be)},getIndentWidth:function(){return T.current.offsetWidth}}});var D=s.useState(o),K=ye(D,2),z=K[0],H=K[1],L=s.useState(n),W=ye(L,2),Q=W[0],Y=W[1],de=s.useState(n),me=ye(de,2),$e=me[0],ee=me[1],pe=s.useState([]),ae=ye(pe,2),ce=ae[0],te=ae[1],q=s.useState(null),_=ye(q,2),V=_[0],G=_[1],X=s.useRef(n);X.current=n;function j(){var ne=X.current;Y(ne),ee(ne),te([]),G(null),P()}zt(function(){H(o);var ne=fc(z,o);if(ne.key!==null)if(ne.add){var be=Q.findIndex(function(Je){var We=Je.key;return We===ne.key}),Ne=vo(po(Q,n,ne.key),y,v,b),J=Q.slice();J.splice(be+1,0,go),ee(J),te(Ne),G("show")}else{var Ce=n.findIndex(function(Je){var We=Je.key;return We===ne.key}),Pe=vo(po(n,Q,ne.key),y,v,b),we=n.slice();we.splice(Ce+1,0,go),ee(we),te(Pe),G("hide")}else Q!==n&&(Y(n),ee(n))},[o,n]),s.useEffect(function(){m||j()},[m]);var re=h?$e:n,xe={expandedKeys:o,selectedKeys:l,loadedKeys:a,loadingKeys:i,checkedKeys:d,halfCheckedKeys:c,dragOverNodeKey:p,dropPosition:g,keyEntities:f};return s.createElement(s.Fragment,null,S&&x&&s.createElement("span",{style:mo,"aria-live":"assertive"},gc(x)),s.createElement("div",null,s.createElement("input",{style:mo,disabled:C===!1||u,tabIndex:C!==!1?R:null,onKeyDown:N,onFocus:O,onBlur:w,value:"",onChange:mc,"aria-label":"for screen reader"})),s.createElement("div",{className:"".concat(r,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},s.createElement("div",{className:"".concat(r,"-indent")},s.createElement("div",{ref:T,className:"".concat(r,"-indent-unit")}))),s.createElement(zo,le({},k,{data:re,itemKey:ho,height:v,fullHeight:!1,virtual:y,itemHeight:b,prefixCls:"".concat(r,"-list"),ref:$,onVisibleChange:function(be,Ne){var J=new Set(be),Ce=Ne.filter(function(Pe){return!J.has(Pe)});Ce.some(function(Pe){return ho(Pe)===Lt})&&j()}}),function(ne){var be=ne.pos,Ne=Object.assign({},($a(ne.data),ne.data)),J=ne.title,Ce=ne.key,Pe=ne.isStart,we=ne.isEnd,Je=pn(Ce,be);delete Ne.key,delete Ne.children;var We=sn(Je,xe);return s.createElement(uc,le({},Ne,We,{title:J,active:!!x&&Ce===x.key,pos:be,data:ne.data,isStart:Pe,isEnd:we,motion:h,motionNodes:Ce===Lt?ce:null,motionType:V,onMotionStart:M,onMotionEnd:j,treeNodeRequiredProps:xe,onMouseMove:function(){E(null)}}))}))});Ia.displayName="NodeList";var vc=10,Er=function(e){Ho(r,e);var t=Lo(r);function r(){var n;jo(this,r);for(var o=arguments.length,l=new Array(o),d=0;d<o;d++)l[d]=arguments[d];return n=t.call.apply(t,[this].concat(l)),I(A(n),"destroyed",!1),I(A(n),"delayedDragEnterLogic",void 0),I(A(n),"loadingRetryTimes",{}),I(A(n),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:Gt()}),I(A(n),"dragStartMousePosition",null),I(A(n),"dragNode",void 0),I(A(n),"currentMouseOverDroppableNodeKey",null),I(A(n),"listRef",s.createRef()),I(A(n),"onNodeDragStart",function(a,i){var c=n.state,f=c.expandedKeys,u=c.keyEntities,m=n.props.onDragStart,p=i.props.eventKey;n.dragNode=i,n.dragStartMousePosition={x:a.clientX,y:a.clientY};var g=ht(f,p);n.setState({draggingNodeKey:p,dragChildrenKeys:Us(p,u),indent:n.listRef.current.getIndentWidth()}),n.setExpandedKeys(g),window.addEventListener("dragend",n.onWindowDragEnd),m==null||m({event:a,node:Fe(i.props)})}),I(A(n),"onNodeDragEnter",function(a,i){var c=n.state,f=c.expandedKeys,u=c.keyEntities,m=c.dragChildrenKeys,p=c.flattenNodes,g=c.indent,h=n.props,v=h.onDragEnter,b=h.onExpand,y=h.allowDrop,C=h.direction,x=i.props,S=x.pos,R=x.eventKey,N=A(n),O=N.dragNode;if(n.currentMouseOverDroppableNodeKey!==R&&(n.currentMouseOverDroppableNodeKey=R),!O){n.resetDragState();return}var w=co(a,O,i,g,n.dragStartMousePosition,y,p,u,f,C),E=w.dropPosition,M=w.dropLevelOffset,P=w.dropTargetKey,k=w.dropContainerKey,$=w.dropTargetPos,T=w.dropAllowed,D=w.dragOverNodeKey;if(m.indexOf(P)!==-1||!T){n.resetDragState();return}if(n.delayedDragEnterLogic||(n.delayedDragEnterLogic={}),Object.keys(n.delayedDragEnterLogic).forEach(function(K){clearTimeout(n.delayedDragEnterLogic[K])}),O.props.eventKey!==i.props.eventKey&&(a.persist(),n.delayedDragEnterLogic[S]=window.setTimeout(function(){if(n.state.draggingNodeKey!==null){var K=he(f),z=tt(u,i.props.eventKey);z&&(z.children||[]).length&&(K=yt(f,i.props.eventKey)),"expandedKeys"in n.props||n.setExpandedKeys(K),b==null||b(K,{node:Fe(i.props),expanded:!0,nativeEvent:a.nativeEvent})}},800)),O.props.eventKey===P&&M===0){n.resetDragState();return}n.setState({dragOverNodeKey:D,dropPosition:E,dropLevelOffset:M,dropTargetKey:P,dropContainerKey:k,dropTargetPos:$,dropAllowed:T}),v==null||v({event:a,node:Fe(i.props),expandedKeys:f})}),I(A(n),"onNodeDragOver",function(a,i){var c=n.state,f=c.dragChildrenKeys,u=c.flattenNodes,m=c.keyEntities,p=c.expandedKeys,g=c.indent,h=n.props,v=h.onDragOver,b=h.allowDrop,y=h.direction,C=A(n),x=C.dragNode;if(x){var S=co(a,x,i,g,n.dragStartMousePosition,b,u,m,p,y),R=S.dropPosition,N=S.dropLevelOffset,O=S.dropTargetKey,w=S.dropContainerKey,E=S.dropAllowed,M=S.dropTargetPos,P=S.dragOverNodeKey;f.indexOf(O)!==-1||!E||(x.props.eventKey===O&&N===0?n.state.dropPosition===null&&n.state.dropLevelOffset===null&&n.state.dropTargetKey===null&&n.state.dropContainerKey===null&&n.state.dropTargetPos===null&&n.state.dropAllowed===!1&&n.state.dragOverNodeKey===null||n.resetDragState():R===n.state.dropPosition&&N===n.state.dropLevelOffset&&O===n.state.dropTargetKey&&w===n.state.dropContainerKey&&M===n.state.dropTargetPos&&E===n.state.dropAllowed&&P===n.state.dragOverNodeKey||n.setState({dropPosition:R,dropLevelOffset:N,dropTargetKey:O,dropContainerKey:w,dropTargetPos:M,dropAllowed:E,dragOverNodeKey:P}),v==null||v({event:a,node:Fe(i.props)}))}}),I(A(n),"onNodeDragLeave",function(a,i){n.currentMouseOverDroppableNodeKey===i.props.eventKey&&!a.currentTarget.contains(a.relatedTarget)&&(n.resetDragState(),n.currentMouseOverDroppableNodeKey=null);var c=n.props.onDragLeave;c==null||c({event:a,node:Fe(i.props)})}),I(A(n),"onWindowDragEnd",function(a){n.onNodeDragEnd(a,null,!0),window.removeEventListener("dragend",n.onWindowDragEnd)}),I(A(n),"onNodeDragEnd",function(a,i){var c=n.props.onDragEnd;n.setState({dragOverNodeKey:null}),n.cleanDragState(),c==null||c({event:a,node:Fe(i.props)}),n.dragNode=null,window.removeEventListener("dragend",n.onWindowDragEnd)}),I(A(n),"onNodeDrop",function(a,i){var c,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,u=n.state,m=u.dragChildrenKeys,p=u.dropPosition,g=u.dropTargetKey,h=u.dropTargetPos,v=u.dropAllowed;if(v){var b=n.props.onDrop;if(n.setState({dragOverNodeKey:null}),n.cleanDragState(),g!==null){var y=F(F({},sn(g,n.getTreeNodeRequiredProps())),{},{active:((c=n.getActiveItem())===null||c===void 0?void 0:c.key)===g,data:tt(n.state.keyEntities,g).node}),C=m.indexOf(g)!==-1;Et(!C,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var x=wr(h),S={event:a,node:Fe(y),dragNode:n.dragNode?Fe(n.dragNode.props):null,dragNodesKeys:[n.dragNode.props.eventKey].concat(m),dropToGap:p!==0,dropPosition:p+Number(x[x.length-1])};f||b==null||b(S),n.dragNode=null}}}),I(A(n),"cleanDragState",function(){var a=n.state.draggingNodeKey;a!==null&&n.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),n.dragStartMousePosition=null,n.currentMouseOverDroppableNodeKey=null}),I(A(n),"triggerExpandActionExpand",function(a,i){var c=n.state,f=c.expandedKeys,u=c.flattenNodes,m=i.expanded,p=i.key,g=i.isLeaf;if(!(g||a.shiftKey||a.metaKey||a.ctrlKey)){var h=u.filter(function(b){return b.key===p})[0],v=Fe(F(F({},sn(p,n.getTreeNodeRequiredProps())),{},{data:h.data}));n.setExpandedKeys(m?ht(f,p):yt(f,p)),n.onNodeExpand(a,v)}}),I(A(n),"onNodeClick",function(a,i){var c=n.props,f=c.onClick,u=c.expandAction;u==="click"&&n.triggerExpandActionExpand(a,i),f==null||f(a,i)}),I(A(n),"onNodeDoubleClick",function(a,i){var c=n.props,f=c.onDoubleClick,u=c.expandAction;u==="doubleClick"&&n.triggerExpandActionExpand(a,i),f==null||f(a,i)}),I(A(n),"onNodeSelect",function(a,i){var c=n.state.selectedKeys,f=n.state,u=f.keyEntities,m=f.fieldNames,p=n.props,g=p.onSelect,h=p.multiple,v=i.selected,b=i[m.key],y=!v;y?h?c=yt(c,b):c=[b]:c=ht(c,b);var C=c.map(function(x){var S=tt(u,x);return S?S.node:null}).filter(function(x){return x});n.setUncontrolledState({selectedKeys:c}),g==null||g(c,{event:"select",selected:y,node:i,selectedNodes:C,nativeEvent:a.nativeEvent})}),I(A(n),"onNodeCheck",function(a,i,c){var f=n.state,u=f.keyEntities,m=f.checkedKeys,p=f.halfCheckedKeys,g=n.props,h=g.checkStrictly,v=g.onCheck,b=i.key,y,C={event:"check",node:i,checked:c,nativeEvent:a.nativeEvent};if(h){var x=c?yt(m,b):ht(m,b),S=ht(p,b);y={checked:x,halfChecked:S},C.checkedNodes=x.map(function(M){return tt(u,M)}).filter(function(M){return M}).map(function(M){return M.node}),n.setUncontrolledState({checkedKeys:x})}else{var R=Vt([].concat(he(m),[b]),!0,u),N=R.checkedKeys,O=R.halfCheckedKeys;if(!c){var w=new Set(N);w.delete(b);var E=Vt(Array.from(w),{checked:!1,halfCheckedKeys:O},u);N=E.checkedKeys,O=E.halfCheckedKeys}y=N,C.checkedNodes=[],C.checkedNodesPositions=[],C.halfCheckedKeys=O,N.forEach(function(M){var P=tt(u,M);if(P){var k=P.node,$=P.pos;C.checkedNodes.push(k),C.checkedNodesPositions.push({node:k,pos:$})}}),n.setUncontrolledState({checkedKeys:N},!1,{halfCheckedKeys:O})}v==null||v(y,C)}),I(A(n),"onNodeLoad",function(a){var i,c=a.key,f=n.state.keyEntities,u=tt(f,c);if(!(u!=null&&(i=u.children)!==null&&i!==void 0&&i.length)){var m=new Promise(function(p,g){n.setState(function(h){var v=h.loadedKeys,b=v===void 0?[]:v,y=h.loadingKeys,C=y===void 0?[]:y,x=n.props,S=x.loadData,R=x.onLoad;if(!S||b.indexOf(c)!==-1||C.indexOf(c)!==-1)return null;var N=S(a);return N.then(function(){var O=n.state.loadedKeys,w=yt(O,c);R==null||R(w,{event:"load",node:a}),n.setUncontrolledState({loadedKeys:w}),n.setState(function(E){return{loadingKeys:ht(E.loadingKeys,c)}}),p()}).catch(function(O){if(n.setState(function(E){return{loadingKeys:ht(E.loadingKeys,c)}}),n.loadingRetryTimes[c]=(n.loadingRetryTimes[c]||0)+1,n.loadingRetryTimes[c]>=vc){var w=n.state.loadedKeys;Et(!1,"Retry for `loadData` many times but still failed. No more retry."),n.setUncontrolledState({loadedKeys:yt(w,c)}),p()}g(O)}),{loadingKeys:yt(C,c)}})});return m.catch(function(){}),m}}),I(A(n),"onNodeMouseEnter",function(a,i){var c=n.props.onMouseEnter;c==null||c({event:a,node:i})}),I(A(n),"onNodeMouseLeave",function(a,i){var c=n.props.onMouseLeave;c==null||c({event:a,node:i})}),I(A(n),"onNodeContextMenu",function(a,i){var c=n.props.onRightClick;c&&(a.preventDefault(),c({event:a,node:i}))}),I(A(n),"onFocus",function(){var a=n.props.onFocus;n.setState({focused:!0});for(var i=arguments.length,c=new Array(i),f=0;f<i;f++)c[f]=arguments[f];a==null||a.apply(void 0,c)}),I(A(n),"onBlur",function(){var a=n.props.onBlur;n.setState({focused:!1}),n.onActiveChange(null);for(var i=arguments.length,c=new Array(i),f=0;f<i;f++)c[f]=arguments[f];a==null||a.apply(void 0,c)}),I(A(n),"getTreeNodeRequiredProps",function(){var a=n.state,i=a.expandedKeys,c=a.selectedKeys,f=a.loadedKeys,u=a.loadingKeys,m=a.checkedKeys,p=a.halfCheckedKeys,g=a.dragOverNodeKey,h=a.dropPosition,v=a.keyEntities;return{expandedKeys:i||[],selectedKeys:c||[],loadedKeys:f||[],loadingKeys:u||[],checkedKeys:m||[],halfCheckedKeys:p||[],dragOverNodeKey:g,dropPosition:h,keyEntities:v}}),I(A(n),"setExpandedKeys",function(a){var i=n.state,c=i.treeData,f=i.fieldNames,u=Wn(c,a,f);n.setUncontrolledState({expandedKeys:a,flattenNodes:u},!0)}),I(A(n),"onNodeExpand",function(a,i){var c=n.state.expandedKeys,f=n.state,u=f.listChanging,m=f.fieldNames,p=n.props,g=p.onExpand,h=p.loadData,v=i.expanded,b=i[m.key];if(!u){var y=c.indexOf(b),C=!v;if(Et(v&&y!==-1||!v&&y===-1,"Expand state not sync with index check"),C?c=yt(c,b):c=ht(c,b),n.setExpandedKeys(c),g==null||g(c,{node:i,expanded:C,nativeEvent:a.nativeEvent}),C&&h){var x=n.onNodeLoad(i);x&&x.then(function(){var S=Wn(n.state.treeData,c,m);n.setUncontrolledState({flattenNodes:S})}).catch(function(){var S=n.state.expandedKeys,R=ht(S,b);n.setExpandedKeys(R)})}}}),I(A(n),"onListChangeStart",function(){n.setUncontrolledState({listChanging:!0})}),I(A(n),"onListChangeEnd",function(){setTimeout(function(){n.setUncontrolledState({listChanging:!1})})}),I(A(n),"onActiveChange",function(a){var i=n.state.activeKey,c=n.props,f=c.onActiveChange,u=c.itemScrollOffset,m=u===void 0?0:u;i!==a&&(n.setState({activeKey:a}),a!==null&&n.scrollTo({key:a,offset:m}),f==null||f(a))}),I(A(n),"getActiveItem",function(){var a=n.state,i=a.activeKey,c=a.flattenNodes;return i===null?null:c.find(function(f){var u=f.key;return u===i})||null}),I(A(n),"offsetActiveKey",function(a){var i=n.state,c=i.flattenNodes,f=i.activeKey,u=c.findIndex(function(g){var h=g.key;return h===f});u===-1&&a<0&&(u=c.length),u=(u+a+c.length)%c.length;var m=c[u];if(m){var p=m.key;n.onActiveChange(p)}else n.onActiveChange(null)}),I(A(n),"onKeyDown",function(a){var i=n.state,c=i.activeKey,f=i.expandedKeys,u=i.checkedKeys,m=i.fieldNames,p=n.props,g=p.onKeyDown,h=p.checkable,v=p.selectable;switch(a.which){case Ye.UP:{n.offsetActiveKey(-1),a.preventDefault();break}case Ye.DOWN:{n.offsetActiveKey(1),a.preventDefault();break}}var b=n.getActiveItem();if(b&&b.data){var y=n.getTreeNodeRequiredProps(),C=b.data.isLeaf===!1||!!(b.data[m.children]||[]).length,x=Fe(F(F({},sn(c,y)),{},{data:b.data,active:!0}));switch(a.which){case Ye.LEFT:{C&&f.includes(c)?n.onNodeExpand({},x):b.parent&&n.onActiveChange(b.parent.key),a.preventDefault();break}case Ye.RIGHT:{C&&!f.includes(c)?n.onNodeExpand({},x):b.children&&b.children.length&&n.onActiveChange(b.children[0].key),a.preventDefault();break}case Ye.ENTER:case Ye.SPACE:{h&&!x.disabled&&x.checkable!==!1&&!x.disableCheckbox?n.onNodeCheck({},x,!u.includes(c)):!h&&v&&!x.disabled&&x.selectable!==!1&&n.onNodeSelect({},x);break}}}g==null||g(a)}),I(A(n),"setUncontrolledState",function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!n.destroyed){var f=!1,u=!0,m={};Object.keys(a).forEach(function(p){if(p in n.props){u=!1;return}f=!0,m[p]=a[p]}),f&&(!i||u)&&n.setState(F(F({},m),c))}}),I(A(n),"scrollTo",function(a){n.listRef.current.scrollTo(a)}),n}return _o(r,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var o=this.props,l=o.activeKey,d=o.itemScrollOffset,a=d===void 0?0:d;l!==void 0&&l!==this.state.activeKey&&(this.setState({activeKey:l}),l!==null&&this.scrollTo({key:l,offset:a}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var o=this.state,l=o.focused,d=o.flattenNodes,a=o.keyEntities,i=o.draggingNodeKey,c=o.activeKey,f=o.dropLevelOffset,u=o.dropContainerKey,m=o.dropTargetKey,p=o.dropPosition,g=o.dragOverNodeKey,h=o.indent,v=this.props,b=v.prefixCls,y=v.className,C=v.style,x=v.showLine,S=v.focusable,R=v.tabIndex,N=R===void 0?0:R,O=v.selectable,w=v.showIcon,E=v.icon,M=v.switcherIcon,P=v.draggable,k=v.checkable,$=v.checkStrictly,T=v.disabled,D=v.motion,K=v.loadData,z=v.filterTreeNode,H=v.height,L=v.itemHeight,W=v.virtual,Q=v.titleRender,Y=v.dropIndicatorRender,de=v.onContextMenu,me=v.onScroll,$e=v.direction,ee=v.rootClassName,pe=v.rootStyle,ae=dn(this.props,{aria:!0,data:!0}),ce;return P&&(mt(P)==="object"?ce=P:typeof P=="function"?ce={nodeDraggable:P}:ce={}),s.createElement($r.Provider,{value:{prefixCls:b,selectable:O,showIcon:w,icon:E,switcherIcon:M,draggable:ce,draggingNodeKey:i,checkable:k,checkStrictly:$,disabled:T,keyEntities:a,dropLevelOffset:f,dropContainerKey:u,dropTargetKey:m,dropPosition:p,dragOverNodeKey:g,indent:h,direction:$e,dropIndicatorRender:Y,loadData:K,filterTreeNode:z,titleRender:Q,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},s.createElement("div",{role:"tree",className:U(b,y,ee,I(I(I({},"".concat(b,"-show-line"),x),"".concat(b,"-focused"),l),"".concat(b,"-active-focused"),c!==null)),style:pe},s.createElement(Ia,le({ref:this.listRef,prefixCls:b,style:C,data:d,disabled:T,selectable:O,checkable:!!k,motion:D,dragging:i!==null,height:H,itemHeight:L,virtual:W,focusable:S,focused:l,tabIndex:N,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:de,onScroll:me},this.getTreeNodeRequiredProps(),ae))))}}],[{key:"getDerivedStateFromProps",value:function(o,l){var d=l.prevProps,a={prevProps:o};function i(R){return!d&&R in o||d&&d[R]!==o[R]}var c,f=l.fieldNames;if(i("fieldNames")&&(f=Gt(o.fieldNames),a.fieldNames=f),i("treeData")?c=o.treeData:i("children")&&(Et(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),c=Zo(o.children)),c){a.treeData=c;var u=vr(c,{fieldNames:f});a.keyEntities=F(I({},Lt,Ea),u.keyEntities)}var m=a.keyEntities||l.keyEntities;if(i("expandedKeys")||d&&i("autoExpandParent"))a.expandedKeys=o.autoExpandParent||!d&&o.defaultExpandParent?rr(o.expandedKeys,m):o.expandedKeys;else if(!d&&o.defaultExpandAll){var p=F({},m);delete p[Lt],a.expandedKeys=Object.keys(p).map(function(R){return p[R].key})}else!d&&o.defaultExpandedKeys&&(a.expandedKeys=o.autoExpandParent||o.defaultExpandParent?rr(o.defaultExpandedKeys,m):o.defaultExpandedKeys);if(a.expandedKeys||delete a.expandedKeys,c||a.expandedKeys){var g=Wn(c||l.treeData,a.expandedKeys||l.expandedKeys,f);a.flattenNodes=g}if(o.selectable&&(i("selectedKeys")?a.selectedKeys=uo(o.selectedKeys,o):!d&&o.defaultSelectedKeys&&(a.selectedKeys=uo(o.defaultSelectedKeys,o))),o.checkable){var h;if(i("checkedKeys")?h=Vn(o.checkedKeys)||{}:!d&&o.defaultCheckedKeys?h=Vn(o.defaultCheckedKeys)||{}:c&&(h=Vn(o.checkedKeys)||{checkedKeys:l.checkedKeys,halfCheckedKeys:l.halfCheckedKeys}),h){var v=h,b=v.checkedKeys,y=b===void 0?[]:b,C=v.halfCheckedKeys,x=C===void 0?[]:C;if(!o.checkStrictly){var S=Vt(y,!0,m);y=S.checkedKeys,x=S.halfCheckedKeys}a.checkedKeys=y,a.halfCheckedKeys=x}}return i("loadedKeys")&&(a.loadedKeys=o.loadedKeys),a}}]),r}(s.Component);I(Er,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:sc,allowDrop:function(){return!0},expandAction:!1});I(Er,"TreeNode",Yt);var hc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},bc=function(t,r){return s.createElement(nt,le({},t,{ref:r,icon:hc}))},Na=s.forwardRef(bc),yc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},Cc=function(t,r){return s.createElement(nt,le({},t,{ref:r,icon:yc}))},xc=s.forwardRef(Cc),Sc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},$c=function(t,r){return s.createElement(nt,le({},t,{ref:r,icon:Sc}))},wc=s.forwardRef($c),Ec={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},Ic=function(t,r){return s.createElement(nt,le({},t,{ref:r,icon:Ec}))},Nc=s.forwardRef(Ic);const Oc=new bi("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Rc=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),kc=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${B(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Pc=(e,t)=>{const{treeCls:r,treeNodeCls:n,treeNodePadding:o,titleHeight:l,nodeSelectedBg:d,nodeHoverBg:a}=t,i=t.paddingXS;return{[r]:Object.assign(Object.assign({},Qt(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${r}-rtl`]:{[`${r}-switcher`]:{"&_close":{[`${r}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${r}-active-focused)`]:Object.assign({},Sn(t)),[`${r}-list-holder-inner`]:{alignItems:"flex-start"},[`&${r}-block-node`]:{[`${r}-list-holder-inner`]:{alignItems:"stretch",[`${r}-node-content-wrapper`]:{flex:"auto"},[`${n}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:o,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:Oc,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${n}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${B(o)} 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${r}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${r}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${n}-disabled).filter-node ${r}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{cursor:"grab",[`${r}-draggable-icon`]:{flexShrink:0,width:l,lineHeight:`${B(l)}`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${n}:hover &`]:{opacity:.45}},[`&${n}-disabled`]:{[`${r}-draggable-icon`]:{visibility:"hidden"}}}},[`${r}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:l}},[`${r}-draggable-icon`]:{visibility:"hidden"},[`${r}-switcher`]:Object.assign(Object.assign({},Rc(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:l,margin:0,lineHeight:`${B(l)}`,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,borderRadius:t.borderRadius,"&-noop":{cursor:"unset"},[`&:not(${r}-switcher-noop):hover`]:{backgroundColor:t.colorBgTextHover},"&_close":{[`${r}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(l).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(l).div(2).equal()).mul(.8).equal(),height:t.calc(l).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${r}-checkbox`]:{top:"initial",marginInlineEnd:i,alignSelf:"flex-start",marginTop:t.marginXXS},[`${r}-node-content-wrapper, ${r}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:l,margin:0,padding:`0 ${B(t.calc(t.paddingXS).div(2).equal())}`,color:"inherit",lineHeight:`${B(l)}`,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:a},[`&${r}-node-selected`]:{backgroundColor:d},[`${r}-iconEle`]:{display:"inline-block",width:l,height:l,lineHeight:`${B(l)}`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${r}-unselectable ${r}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${r}-node-content-wrapper`]:Object.assign({lineHeight:`${B(l)}`,userSelect:"none"},kc(e,t)),[`${n}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${r}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(l).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${r}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${n}-leaf-last`]:{[`${r}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${B(t.calc(l).div(2).equal())} !important`}}}}})}},Tc=e=>{const{treeCls:t,treeNodeCls:r,treeNodePadding:n,directoryNodeSelectedBg:o,directoryNodeSelectedColor:l}=e;return{[`${t}${t}-directory`]:{[r]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:n,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:l,background:"transparent"}},"&-selected":{"\n            &:hover::before,\n            &::before\n          ":{background:o},[`${t}-switcher`]:{color:l},[`${t}-node-content-wrapper`]:{color:l,background:"transparent"}}}}}},Kc=(e,t)=>{const r=`.${e}`,n=`${r}-treenode`,o=t.calc(t.paddingXS).div(2).equal(),l=Ut(t,{treeCls:r,treeNodeCls:n,treeNodePadding:o});return[Pc(e,l),Tc(l)]},Bc=e=>{const{controlHeightSM:t}=e;return{titleHeight:t,nodeHoverBg:e.controlItemBgHover,nodeSelectedBg:e.controlItemBgActive}},Dc=e=>{const{colorTextLightSolid:t,colorPrimary:r}=e;return Object.assign(Object.assign({},Bc(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:r})},Mc=fn("Tree",(e,t)=>{let{prefixCls:r}=t;return[{[e.componentCls]:Ei(`${r}-checkbox`,e)},Kc(r,e),Fo(e)]},Dc),bo=4;function zc(e){const{dropPosition:t,dropLevelOffset:r,prefixCls:n,indent:o,direction:l="ltr"}=e,d=l==="ltr"?"left":"right",a=l==="ltr"?"right":"left",i={[d]:-r*o+bo,[a]:0};switch(t){case-1:i.top=-3;break;case 1:i.bottom=-3;break;default:i.bottom=-3,i[d]=o+bo;break}return ie.createElement("div",{style:i,className:`${n}-drop-indicator`})}var Hc={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},Lc=function(t,r){return s.createElement(nt,le({},t,{ref:r,icon:Hc}))},jc=s.forwardRef(Lc),_c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},Ac=function(t,r){return s.createElement(nt,le({},t,{ref:r,icon:_c}))},Fc=s.forwardRef(Ac),Wc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},Vc=function(t,r){return s.createElement(nt,le({},t,{ref:r,icon:Wc}))},Xc=s.forwardRef(Vc);const qc=e=>{const{prefixCls:t,switcherIcon:r,treeNodeProps:n,showLine:o}=e,{isLeaf:l,expanded:d,loading:a}=n;if(a)return s.createElement(yi,{className:`${t}-switcher-loading-icon`});let i;if(o&&typeof o=="object"&&(i=o.showLeafIcon),l){if(!o)return null;if(typeof i!="boolean"&&i){const u=typeof i=="function"?i(n):i,m=`${t}-switcher-line-custom-icon`;return s.isValidElement(u)?qt(u,{className:U(u.props.className||"",m)}):u}return i?s.createElement(Na,{className:`${t}-switcher-line-icon`}):s.createElement("span",{className:`${t}-switcher-leaf-line`})}const c=`${t}-switcher-icon`,f=typeof r=="function"?r(n):r;return s.isValidElement(f)?qt(f,{className:U(f.props.className||"",c)}):f!==void 0?f:o?d?s.createElement(Fc,{className:`${t}-switcher-line-icon`}):s.createElement(Xc,{className:`${t}-switcher-line-icon`}):s.createElement(jc,{className:c})},Oa=ie.forwardRef((e,t)=>{var r;const{getPrefixCls:n,direction:o,virtual:l,tree:d}=ie.useContext(Ct),{prefixCls:a,className:i,showIcon:c=!1,showLine:f,switcherIcon:u,blockNode:m=!1,children:p,checkable:g=!1,selectable:h=!0,draggable:v,motion:b,style:y}=e,C=n("tree",a),x=n(),S=b??Object.assign(Object.assign({},Bo(x)),{motionAppear:!1}),R=Object.assign(Object.assign({},e),{checkable:g,selectable:h,showIcon:c,motion:S,blockNode:m,showLine:!!f,dropIndicatorRender:zc}),[N,O,w]=Mc(C),[,E]=Pn(),M=E.paddingXS/2+(((r=E.Tree)===null||r===void 0?void 0:r.titleHeight)||E.controlHeightSM),P=ie.useMemo(()=>{if(!v)return!1;let $={};switch(typeof v){case"function":$.nodeDraggable=v;break;case"object":$=Object.assign({},v);break}return $.icon!==!1&&($.icon=$.icon||ie.createElement(Nc,null)),$},[v]),k=$=>ie.createElement(qc,{prefixCls:C,switcherIcon:u,treeNodeProps:$,showLine:f});return N(ie.createElement(Er,Object.assign({itemHeight:M,ref:t,virtual:l},R,{style:Object.assign(Object.assign({},d==null?void 0:d.style),y),prefixCls:C,className:U({[`${C}-icon-hide`]:!c,[`${C}-block-node`]:m,[`${C}-unselectable`]:!h,[`${C}-rtl`]:o==="rtl"},d==null?void 0:d.className,i,O,w),direction:o,checkable:g&&ie.createElement("span",{className:`${C}-checkbox-inner`}),selectable:h,switcherIcon:k,draggable:P}),p))}),yo=0,Xn=1,Co=2;function Ir(e,t,r){const{key:n,children:o}=r;function l(d){const a=d[n],i=d[o];t(a,d)!==!1&&Ir(i||[],t,r)}e.forEach(l)}function Uc(e){let{treeData:t,expandedKeys:r,startKey:n,endKey:o,fieldNames:l}=e;const d=[];let a=yo;if(n&&n===o)return[n];if(!n||!o)return[];function i(c){return c===n||c===o}return Ir(t,c=>{if(a===Co)return!1;if(i(c)){if(d.push(c),a===yo)a=Xn;else if(a===Xn)return a=Co,!1}else a===Xn&&d.push(c);return r.includes(c)},Gt(l)),d}function qn(e,t,r){const n=he(t),o=[];return Ir(e,(l,d)=>{const a=n.indexOf(l);return a!==-1&&(o.push(d),n.splice(a,1)),!!n.length},Gt(r)),o}var xo=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function Gc(e){const{isLeaf:t,expanded:r}=e;return t?s.createElement(Na,null):r?s.createElement(xc,null):s.createElement(wc,null)}function So(e){let{treeData:t,children:r}=e;return t||Zo(r)}const Yc=(e,t)=>{var{defaultExpandAll:r,defaultExpandParent:n,defaultExpandedKeys:o}=e,l=xo(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const d=s.useRef(),a=s.useRef(),i=()=>{const{keyEntities:O}=vr(So(l));let w;return r?w=Object.keys(O):n?w=rr(l.expandedKeys||o||[],O):w=l.expandedKeys||o||[],w},[c,f]=s.useState(l.selectedKeys||l.defaultSelectedKeys||[]),[u,m]=s.useState(()=>i());s.useEffect(()=>{"selectedKeys"in l&&f(l.selectedKeys)},[l.selectedKeys]),s.useEffect(()=>{"expandedKeys"in l&&m(l.expandedKeys)},[l.expandedKeys]);const p=(O,w)=>{var E;return"expandedKeys"in l||m(O),(E=l.onExpand)===null||E===void 0?void 0:E.call(l,O,w)},g=(O,w)=>{var E;const{multiple:M,fieldNames:P}=l,{node:k,nativeEvent:$}=w,{key:T=""}=k,D=So(l),K=Object.assign(Object.assign({},w),{selected:!0}),z=($==null?void 0:$.ctrlKey)||($==null?void 0:$.metaKey),H=$==null?void 0:$.shiftKey;let L;M&&z?(L=O,d.current=T,a.current=L,K.selectedNodes=qn(D,L,P)):M&&H?(L=Array.from(new Set([].concat(he(a.current||[]),he(Uc({treeData:D,expandedKeys:u,startKey:T,endKey:d.current,fieldNames:P}))))),K.selectedNodes=qn(D,L,P)):(L=[T],d.current=T,a.current=L,K.selectedNodes=qn(D,L,P)),(E=l.onSelect)===null||E===void 0||E.call(l,L,K),"selectedKeys"in l||f(L)},{getPrefixCls:h,direction:v}=s.useContext(Ct),{prefixCls:b,className:y,showIcon:C=!0,expandAction:x="click"}=l,S=xo(l,["prefixCls","className","showIcon","expandAction"]),R=h("tree",b),N=U(`${R}-directory`,{[`${R}-directory-rtl`]:v==="rtl"},y);return s.createElement(Oa,Object.assign({icon:Gc,ref:t,blockNode:!0},S,{showIcon:C,expandAction:x,prefixCls:R,className:N,expandedKeys:u,selectedKeys:c,onSelect:g,onExpand:p}))},Jc=s.forwardRef(Yc),Nr=Oa;Nr.DirectoryTree=Jc;Nr.TreeNode=Yt;function $o(e){let{value:t,onChange:r,filterSearch:n,tablePrefixCls:o,locale:l}=e;return n?s.createElement("div",{className:`${o}-filter-dropdown-search`},s.createElement(Ci,{prefix:s.createElement(xi,null),placeholder:l.filterSearchPlaceholder,onChange:r,value:t,htmlSize:1,className:`${o}-filter-dropdown-search-input`})):null}const Qc=e=>{const{keyCode:t}=e;t===Ye.ENTER&&e.stopPropagation()},Zc=s.forwardRef((e,t)=>s.createElement("div",{className:e.className,onClick:r=>r.stopPropagation(),onKeyDown:Qc,ref:t},e.children));function Xt(e){let t=[];return(e||[]).forEach(r=>{let{value:n,children:o}=r;t.push(n),o&&(t=[].concat(he(t),he(Xt(o))))}),t}function ed(e){return e.some(t=>{let{children:r}=t;return r})}function Ra(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function ka(e){let{filters:t,prefixCls:r,filteredKeys:n,filterMultiple:o,searchValue:l,filterSearch:d}=e;return t.map((a,i)=>{const c=String(a.value);if(a.children)return{key:c||i,label:a.text,popupClassName:`${r}-dropdown-submenu`,children:ka({filters:a.children,prefixCls:r,filteredKeys:n,filterMultiple:o,searchValue:l,filterSearch:d})};const f=o?In:Wo,u={key:a.value!==void 0?c:i,label:s.createElement(s.Fragment,null,s.createElement(f,{checked:n.includes(c)}),s.createElement("span",null,a.text))};return l.trim()?typeof d=="function"?d(l,a)?u:null:Ra(l,a.text)?u:null:u})}function Un(e){return e||[]}function td(e){var t,r;const{tablePrefixCls:n,prefixCls:o,column:l,dropdownPrefixCls:d,columnKey:a,filterOnClose:i,filterMultiple:c,filterMode:f="menu",filterSearch:u=!1,filterState:m,triggerFilter:p,locale:g,children:h,getPopupContainer:v,rootClassName:b}=e,{filterDropdownOpen:y,onFilterDropdownOpenChange:C,filterResetToDefaultFilteredValue:x,defaultFilteredValue:S,filterDropdownVisible:R,onFilterDropdownVisibleChange:N}=l,[O,w]=s.useState(!1),E=!!(m&&(!((t=m.filteredKeys)===null||t===void 0)&&t.length||m.forceFiltered)),M=j=>{w(j),C==null||C(j),N==null||N(j)},P=(r=y??R)!==null&&r!==void 0?r:O,k=m==null?void 0:m.filteredKeys,[$,T]=lc(Un(k)),D=j=>{let{selectedKeys:re}=j;T(re)},K=(j,re)=>{let{node:xe,checked:ne}=re;D(c?{selectedKeys:j}:{selectedKeys:ne&&xe.key?[xe.key]:[]})};s.useEffect(()=>{O&&D({selectedKeys:Un(k)})},[k]);const[z,H]=s.useState([]),L=j=>{H(j)},[W,Q]=s.useState(""),Y=j=>{const{value:re}=j.target;Q(re)};s.useEffect(()=>{O||Q("")},[O]);const de=j=>{const re=j!=null&&j.length?j:null;if(re===null&&(!m||!m.filteredKeys)||un(re,m==null?void 0:m.filteredKeys,!0))return null;p({column:l,key:a,filteredKeys:re})},me=()=>{M(!1),de($())},$e=function(){let{confirm:j,closeDropdown:re}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};j&&de([]),re&&M(!1),Q(""),T(x?(S||[]).map(xe=>String(xe)):[])},ee=function(){let{closeDropdown:j}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};j&&M(!1),de($())},pe=(j,re)=>{re.source==="trigger"&&(j&&k!==void 0&&T(Un(k)),M(j),!j&&!l.filterDropdown&&i&&me())},ae=U({[`${d}-menu-without-submenu`]:!ed(l.filters||[])}),ce=j=>{if(j.target.checked){const re=Xt(l==null?void 0:l.filters).map(xe=>String(xe));T(re)}else T([])},te=j=>{let{filters:re}=j;return(re||[]).map((xe,ne)=>{const be=String(xe.value),Ne={title:xe.text,key:xe.value!==void 0?be:String(ne)};return xe.children&&(Ne.children=te({filters:xe.children})),Ne})},q=j=>{var re;return Object.assign(Object.assign({},j),{text:j.title,value:j.key,children:((re=j.children)===null||re===void 0?void 0:re.map(xe=>q(xe)))||[]})};let _;if(typeof l.filterDropdown=="function")_=l.filterDropdown({prefixCls:`${d}-custom`,setSelectedKeys:j=>D({selectedKeys:j}),selectedKeys:$(),confirm:ee,clearFilters:$e,filters:l.filters,visible:P,close:()=>{M(!1)}});else if(l.filterDropdown)_=l.filterDropdown;else{const j=$()||[],re=()=>{const ne=s.createElement(Fr,{image:Fr.PRESENTED_IMAGE_SIMPLE,description:g.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}});if((l.filters||[]).length===0)return ne;if(f==="tree")return s.createElement(s.Fragment,null,s.createElement($o,{filterSearch:u,value:W,onChange:Y,tablePrefixCls:n,locale:g}),s.createElement("div",{className:`${n}-filter-dropdown-tree`},c?s.createElement(In,{checked:j.length===Xt(l.filters).length,indeterminate:j.length>0&&j.length<Xt(l.filters).length,className:`${n}-filter-dropdown-checkall`,onChange:ce},g.filterCheckall):null,s.createElement(Nr,{checkable:!0,selectable:!1,blockNode:!0,multiple:c,checkStrictly:!c,className:`${d}-menu`,onCheck:K,checkedKeys:j,selectedKeys:j,showIcon:!1,treeData:te({filters:l.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:W.trim()?J=>typeof u=="function"?u(W,q(J)):Ra(W,J.title):void 0})));const be=ka({filters:l.filters||[],filterSearch:u,prefixCls:o,filteredKeys:$(),filterMultiple:c,searchValue:W}),Ne=be.every(J=>J===null);return s.createElement(s.Fragment,null,s.createElement($o,{filterSearch:u,value:W,onChange:Y,tablePrefixCls:n,locale:g}),Ne?ne:s.createElement(Zt,{selectable:!0,multiple:c,prefixCls:`${d}-menu`,className:ae,onSelect:D,onDeselect:D,selectedKeys:j,getPopupContainer:v,openKeys:z,onOpenChange:L,items:be}))},xe=()=>x?un((S||[]).map(ne=>String(ne)),j,!0):j.length===0;_=s.createElement(s.Fragment,null,re(),s.createElement("div",{className:`${o}-dropdown-btns`},s.createElement(En,{type:"link",size:"small",disabled:xe(),onClick:()=>$e()},g.filterReset),s.createElement(En,{type:"primary",size:"small",onClick:me},g.filterConfirm)))}l.filterDropdown&&(_=s.createElement(Yo,{selectable:void 0},_));const V=()=>s.createElement(Zc,{className:`${o}-dropdown`},_);let G;typeof l.filterIcon=="function"?G=l.filterIcon(E):l.filterIcon?G=l.filterIcon:G=s.createElement(ic,null);const{direction:X}=s.useContext(Ct);return s.createElement("div",{className:`${o}-column`},s.createElement("span",{className:`${n}-column-title`},h),s.createElement(hr,{dropdownRender:V,trigger:["click"],open:P,onOpenChange:pe,getPopupContainer:v,placement:X==="rtl"?"bottomLeft":"bottomRight",rootClassName:b},s.createElement("span",{role:"button",tabIndex:-1,className:U(`${o}-trigger`,{active:E}),onClick:j=>{j.stopPropagation()}},G)))}function sr(e,t,r){let n=[];return(e||[]).forEach((o,l)=>{var d;const a=gn(l,r);if(o.filters||"filterDropdown"in o||"onFilter"in o)if("filteredValue"in o){let i=o.filteredValue;"filterDropdown"in o||(i=(d=i==null?void 0:i.map(String))!==null&&d!==void 0?d:i),n.push({column:o,key:Ht(o,a),filteredKeys:i,forceFiltered:o.filtered})}else n.push({column:o,key:Ht(o,a),filteredKeys:t&&o.defaultFilteredValue?o.defaultFilteredValue:void 0,forceFiltered:o.filtered});"children"in o&&(n=[].concat(he(n),he(sr(o.children,t,a))))}),n}function Pa(e,t,r,n,o,l,d,a,i){return r.map((c,f)=>{const u=gn(f,a),{filterOnClose:m=!0,filterMultiple:p=!0,filterMode:g,filterSearch:h}=c;let v=c;if(v.filters||v.filterDropdown){const b=Ht(v,u),y=n.find(C=>{let{key:x}=C;return b===x});v=Object.assign(Object.assign({},v),{title:C=>s.createElement(td,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:v,columnKey:b,filterState:y,filterOnClose:m,filterMultiple:p,filterMode:g,filterSearch:h,triggerFilter:l,locale:o,getPopupContainer:d,rootClassName:i},Mn(c.title,C))})}return"children"in v&&(v=Object.assign(Object.assign({},v),{children:Pa(e,t,v.children,n,o,l,d,u,i)})),v})}function wo(e){const t={};return e.forEach(r=>{let{key:n,filteredKeys:o,column:l}=r;const d=n,{filters:a,filterDropdown:i}=l;if(i)t[d]=o||null;else if(Array.isArray(o)){const c=Xt(a);t[d]=c.filter(f=>o.includes(String(f)))}else t[d]=null}),t}function cr(e,t,r){return t.reduce((n,o)=>{const{column:{onFilter:l,filters:d},filteredKeys:a}=o;return l&&a&&a.length?n.map(i=>Object.assign({},i)).filter(i=>a.some(c=>{const f=Xt(d),u=f.findIndex(p=>String(p)===String(c)),m=u!==-1?f[u]:c;return i[r]&&(i[r]=cr(i[r],t,r)),l(m,i)})):n},e)}const Ta=e=>e.flatMap(t=>"children"in t?[t].concat(he(Ta(t.children||[]))):[t]);function nd(e){let{prefixCls:t,dropdownPrefixCls:r,mergedColumns:n,onFilterChange:o,getPopupContainer:l,locale:d,rootClassName:a}=e;kn();const i=s.useMemo(()=>Ta(n||[]),[n]),[c,f]=s.useState(()=>sr(i,!0)),u=s.useMemo(()=>{const h=sr(i,!1);if(h.length===0)return h;let v=!0;if(h.forEach(b=>{let{filteredKeys:y}=b;y!==void 0&&(v=!1)}),v){const b=(i||[]).map((y,C)=>Ht(y,gn(C)));return c.filter(y=>{let{key:C}=y;return b.includes(C)}).map(y=>{const C=i[b.findIndex(x=>x===y.key)];return Object.assign(Object.assign({},y),{column:Object.assign(Object.assign({},y.column),C),forceFiltered:C.filtered})})}return h},[i,c]),m=s.useMemo(()=>wo(u),[u]),p=h=>{const v=u.filter(b=>{let{key:y}=b;return y!==h.key});v.push(h),f(v),o(wo(v),v)};return[h=>Pa(t,r,h,u,d,p,l,void 0,a),u,m]}function rd(e,t,r){const n=s.useRef({});function o(l){if(!n.current||n.current.data!==e||n.current.childrenColumnName!==t||n.current.getRowKey!==r){let a=function(i){i.forEach((c,f)=>{const u=r(c,f);d.set(u,c),c&&typeof c=="object"&&t in c&&a(c[t]||[])})};const d=new Map;a(e),n.current={data:e,childrenColumnName:t,kvMap:d,getRowKey:r}}return n.current.kvMap.get(l)}return[o]}var od=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const Ka=10;function ad(e,t){const r={current:e.current,pageSize:e.pageSize};return Object.keys(t&&typeof t=="object"?t:{}).forEach(o=>{const l=e[o];typeof l!="function"&&(r[o]=l)}),r}function id(e,t,r){const n=r&&typeof r=="object"?r:{},{total:o=0}=n,l=od(n,["total"]),[d,a]=s.useState(()=>({current:"defaultCurrent"in l?l.defaultCurrent:1,pageSize:"defaultPageSize"in l?l.defaultPageSize:Ka})),i=pl(d,l,{total:o>0?o:e}),c=Math.ceil((o||e)/i.pageSize);i.current>c&&(i.current=c||1);const f=(m,p)=>{a({current:m??1,pageSize:p||i.pageSize})},u=(m,p)=>{var g;r&&((g=r.onChange)===null||g===void 0||g.call(r,m,p)),f(m,p),t(m,p||(i==null?void 0:i.pageSize))};return r===!1?[{},()=>{}]:[Object.assign(Object.assign({},i),{onChange:u}),f]}var ld={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},sd=function(t,r){return s.createElement(nt,le({},t,{ref:r,icon:ld}))},cd=s.forwardRef(sd),dd={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},ud=function(t,r){return s.createElement(nt,le({},t,{ref:r,icon:dd}))},fd=s.forwardRef(ud);const Cn="ascend",Gn="descend";function Rn(e){return typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1}function Eo(e){return typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1}function pd(e,t){return t?e[e.indexOf(t)+1]:e[0]}function dr(e,t,r){let n=[];function o(l,d){n.push({column:l,key:Ht(l,d),multiplePriority:Rn(l),sortOrder:l.sortOrder})}return(e||[]).forEach((l,d)=>{const a=gn(d,r);l.children?("sortOrder"in l&&o(l,a),n=[].concat(he(n),he(dr(l.children,t,a)))):l.sorter&&("sortOrder"in l?o(l,a):t&&l.defaultSortOrder&&n.push({column:l,key:Ht(l,a),multiplePriority:Rn(l),sortOrder:l.defaultSortOrder}))}),n}function Ba(e,t,r,n,o,l,d,a){return(t||[]).map((i,c)=>{const f=gn(c,a);let u=i;if(u.sorter){const m=u.sortDirections||o,p=u.showSorterTooltip===void 0?d:u.showSorterTooltip,g=Ht(u,f),h=r.find(O=>{let{key:w}=O;return w===g}),v=h?h.sortOrder:null,b=pd(m,v);let y;if(i.sortIcon)y=i.sortIcon({sortOrder:v});else{const O=m.includes(Cn)&&s.createElement(fd,{className:U(`${e}-column-sorter-up`,{active:v===Cn})}),w=m.includes(Gn)&&s.createElement(cd,{className:U(`${e}-column-sorter-down`,{active:v===Gn})});y=s.createElement("span",{className:U(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(O&&w)})},s.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},O,w))}const{cancelSort:C,triggerAsc:x,triggerDesc:S}=l||{};let R=C;b===Gn?R=S:b===Cn&&(R=x);const N=typeof p=="object"?Object.assign({title:R},p):{title:R};u=Object.assign(Object.assign({},u),{className:U(u.className,{[`${e}-column-sort`]:v}),title:O=>{const w=`${e}-column-sorters`,E=s.createElement("span",{className:`${e}-column-title`},Mn(i.title,O)),M=s.createElement("div",{className:w},E,y);return p?typeof p!="boolean"&&(p==null?void 0:p.target)==="sorter-icon"?s.createElement("div",{className:`${w} ${e}-column-sorters-tooltip-target-sorter`},E,s.createElement(Qn,Object.assign({},N),y)):s.createElement(Qn,Object.assign({},N),M):M},onHeaderCell:O=>{var w;const E=((w=i.onHeaderCell)===null||w===void 0?void 0:w.call(i,O))||{},M=E.onClick,P=E.onKeyDown;E.onClick=T=>{n({column:i,key:g,sortOrder:b,multiplePriority:Rn(i)}),M==null||M(T)},E.onKeyDown=T=>{T.keyCode===Ye.ENTER&&(n({column:i,key:g,sortOrder:b,multiplePriority:Rn(i)}),P==null||P(T))};const k=rc(i.title,{}),$=k==null?void 0:k.toString();return v?E["aria-sort"]=v==="ascend"?"ascending":"descending":E["aria-label"]=$||"",E.className=U(E.className,`${e}-column-has-sorters`),E.tabIndex=0,i.ellipsis&&(E.title=(k??"").toString()),E}})}return"children"in u&&(u=Object.assign(Object.assign({},u),{children:Ba(e,u.children,r,n,o,l,d,f)})),u})}const Io=e=>{const{column:t,sortOrder:r}=e;return{column:t,order:r,field:t.dataIndex,columnKey:t.key}},No=e=>{const t=e.filter(r=>{let{sortOrder:n}=r;return n}).map(Io);if(t.length===0&&e.length){const r=e.length-1;return Object.assign(Object.assign({},Io(e[r])),{column:void 0})}return t.length<=1?t[0]||{}:t};function ur(e,t,r){const n=t.slice().sort((d,a)=>a.multiplePriority-d.multiplePriority),o=e.slice(),l=n.filter(d=>{let{column:{sorter:a},sortOrder:i}=d;return Eo(a)&&i});return l.length?o.sort((d,a)=>{for(let i=0;i<l.length;i+=1){const c=l[i],{column:{sorter:f},sortOrder:u}=c,m=Eo(f);if(m&&u){const p=m(d,a,u);if(p!==0)return u===Cn?p:-p}}return 0}).map(d=>{const a=d[r];return a?Object.assign(Object.assign({},d),{[r]:ur(a,t,r)}):d}):o}function md(e){let{prefixCls:t,mergedColumns:r,onSorterChange:n,sortDirections:o,tableLocale:l,showSorterTooltip:d}=e;const[a,i]=s.useState(dr(r,!0)),c=s.useMemo(()=>{let g=!0;const h=dr(r,!1);if(!h.length)return a;const v=[];function b(C){g?v.push(C):v.push(Object.assign(Object.assign({},C),{sortOrder:null}))}let y=null;return h.forEach(C=>{y===null?(b(C),C.sortOrder&&(C.multiplePriority===!1?g=!1:y=!0)):(y&&C.multiplePriority!==!1||(g=!1),b(C))}),v},[r,a]),f=s.useMemo(()=>{var g,h;const v=c.map(b=>{let{column:y,sortOrder:C}=b;return{column:y,order:C}});return{sortColumns:v,sortColumn:(g=v[0])===null||g===void 0?void 0:g.column,sortOrder:(h=v[0])===null||h===void 0?void 0:h.order}},[c]),u=g=>{let h;g.multiplePriority===!1||!c.length||c[0].multiplePriority===!1?h=[g]:h=[].concat(he(c.filter(v=>{let{key:b}=v;return b!==g.key})),[g]),i(h),n(No(h),h)};return[g=>Ba(t,g,c,u,o,l,d),c,f,()=>No(c)]}function Da(e,t){return e.map(r=>{const n=Object.assign({},r);return n.title=Mn(r.title,t),"children"in n&&(n.children=Da(n.children,t)),n})}function gd(e){return[s.useCallback(r=>Da(r,e),[e])]}const vd=ya((e,t)=>{const{_renderTimes:r}=e,{_renderTimes:n}=t;return r!==n}),hd=xa((e,t)=>{const{_renderTimes:r}=e,{_renderTimes:n}=t;return r!==n}),bd=e=>{const{componentCls:t,lineWidth:r,lineType:n,tableBorderColor:o,tableHeaderBg:l,tablePaddingVertical:d,tablePaddingHorizontal:a,calc:i}=e,c=`${B(r)} ${n} ${o}`,f=(u,m,p)=>({[`&${t}-${u}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n            > table > tbody > tr > th,\n            > table > tbody > tr > td\n          ":{[`> ${t}-expanded-row-fixed`]:{margin:`${B(i(m).mul(-1).equal())}
              ${B(i(i(p).add(r)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:c,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:c,borderTop:c,[`
            > ${t}-content,
            > ${t}-header,
            > ${t}-body,
            > ${t}-summary
          `]:{"> table":{"\n                > thead > tr > th,\n                > thead > tr > td,\n                > tbody > tr > th,\n                > tbody > tr > td,\n                > tfoot > tr > th,\n                > tfoot > tr > td\n              ":{borderInlineEnd:c},"> thead":{"> tr:not(:last-child) > th":{borderBottom:c},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n                > thead > tr,\n                > tbody > tr,\n                > tfoot > tr\n              ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:c}},"\n                > tbody > tr > th,\n                > tbody > tr > td\n              ":{[`> ${t}-expanded-row-fixed`]:{margin:`${B(i(d).mul(-1).equal())} ${B(i(i(a).add(r)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:r,bottom:0,borderInlineEnd:c,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`
                > tr${t}-expanded-row,
                > tr${t}-placeholder
              `]:{"> th, > td":{borderInlineEnd:0}}}}}},f("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),f("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:c,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${B(r)} 0 ${B(r)} ${l}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:c}}}},yd=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},ko),{wordBreak:"keep-all",[`
          &${t}-cell-fix-left-last,
          &${t}-cell-fix-right-first
        `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Cd=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n          &:hover > th,\n          &:hover > td,\n        ":{background:e.colorBgContainer}}}}},xd=e=>{const{componentCls:t,antCls:r,motionDurationSlow:n,lineWidth:o,paddingXS:l,lineType:d,tableBorderColor:a,tableExpandIconBg:i,tableExpandColumnWidth:c,borderRadius:f,tablePaddingVertical:u,tablePaddingHorizontal:m,tableExpandedRowBg:p,paddingXXS:g,expandIconMarginTop:h,expandIconSize:v,expandIconHalfInner:b,expandIconScale:y,calc:C}=e,x=`${B(o)} ${d} ${a}`,S=C(g).sub(o).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:c},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},Ti(e)),{position:"relative",float:"left",boxSizing:"border-box",width:v,height:v,padding:0,color:"inherit",lineHeight:B(v),background:i,border:x,borderRadius:f,transform:`scale(${y})`,transition:`all ${n}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${n} ease-out`,content:'""'},"&::before":{top:b,insetInlineEnd:S,insetInlineStart:S,height:o},"&::after":{top:S,bottom:S,insetInlineStart:b,width:o,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:h,marginInlineEnd:l},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:p}},[`${r}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${B(C(u).mul(-1).equal())} ${B(C(m).mul(-1).equal())}`,padding:`${B(u)} ${B(m)}`}}}},Sd=e=>{const{componentCls:t,antCls:r,iconCls:n,tableFilterDropdownWidth:o,tableFilterDropdownSearchWidth:l,paddingXXS:d,paddingXS:a,colorText:i,lineWidth:c,lineType:f,tableBorderColor:u,headerIconColor:m,fontSizeSM:p,tablePaddingHorizontal:g,borderRadius:h,motionDurationSlow:v,colorTextDescription:b,colorPrimary:y,tableHeaderFilterActiveBg:C,colorTextDisabled:x,tableFilterDropdownBg:S,tableFilterDropdownHeight:R,controlItemBgHover:N,controlItemBgActive:O,boxShadowSecondary:w,filterDropdownMenuBg:E,calc:M}=e,P=`${r}-dropdown`,k=`${t}-filter-dropdown`,$=`${r}-tree`,T=`${B(c)} ${f} ${u}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:M(d).mul(-1).equal(),marginInline:`${B(d)} ${B(M(g).div(2).mul(-1).equal())}`,padding:`0 ${B(d)}`,color:m,fontSize:p,borderRadius:h,cursor:"pointer",transition:`all ${v}`,"&:hover":{color:b,background:C},"&.active":{color:y}}}},{[`${r}-dropdown`]:{[k]:Object.assign(Object.assign({},Qt(e)),{minWidth:o,backgroundColor:S,borderRadius:h,boxShadow:w,overflow:"hidden",[`${P}-menu`]:{maxHeight:R,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:E,"&:empty::after":{display:"block",padding:`${B(a)} 0`,color:x,fontSize:p,textAlign:"center",content:'"Not Found"'}},[`${k}-tree`]:{paddingBlock:`${B(a)} 0`,paddingInline:a,[$]:{padding:0},[`${$}-treenode ${$}-node-content-wrapper:hover`]:{backgroundColor:N},[`${$}-treenode-checkbox-checked ${$}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:O}}},[`${k}-search`]:{padding:a,borderBottom:T,"&-input":{input:{minWidth:l},[n]:{color:x}}},[`${k}-checkall`]:{width:"100%",marginBottom:d,marginInlineStart:d},[`${k}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${B(M(a).sub(c).equal())} ${B(a)}`,overflow:"hidden",borderTop:T}})}},{[`${r}-dropdown ${k}, ${k}-submenu`]:{[`${r}-checkbox-wrapper + span`]:{paddingInlineStart:a,color:i},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},$d=e=>{const{componentCls:t,lineWidth:r,colorSplit:n,motionDurationSlow:o,zIndexTableFixed:l,tableBg:d,zIndexTableSticky:a,calc:i}=e,c=n;return{[`${t}-wrapper`]:{[`
        ${t}-cell-fix-left,
        ${t}-cell-fix-right
      `]:{position:"sticky !important",zIndex:l,background:d},[`
        ${t}-cell-fix-left-first::after,
        ${t}-cell-fix-left-last::after
      `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:i(r).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`
        ${t}-cell-fix-right-first::after,
        ${t}-cell-fix-right-last::after
      `]:{position:"absolute",top:0,bottom:i(r).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:i(a).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${c}`},[`
          ${t}-cell-fix-left-first::after,
          ${t}-cell-fix-left-last::after
        `]:{boxShadow:`inset 10px 0 8px -8px ${c}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${c}`},[`
          ${t}-cell-fix-right-first::after,
          ${t}-cell-fix-right-last::after
        `]:{boxShadow:`inset -10px 0 8px -8px ${c}`}},[`${t}-fixed-column-gapped`]:{[`
        ${t}-cell-fix-left-first::after,
        ${t}-cell-fix-left-last::after,
        ${t}-cell-fix-right-first::after,
        ${t}-cell-fix-right-last::after
      `]:{boxShadow:"none"}}}}},wd=e=>{const{componentCls:t,antCls:r,margin:n}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${r}-pagination`]:{margin:`${B(n)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Ed=e=>{const{componentCls:t,tableRadius:r}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${B(r)} ${B(r)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:r,borderStartEndRadius:r,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:r},"> *:last-child":{borderStartEndRadius:r}}},"&-footer":{borderRadius:`0 0 ${B(r)} ${B(r)}`}}}}},Id=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},Nd=e=>{const{componentCls:t,antCls:r,iconCls:n,fontSizeIcon:o,padding:l,paddingXS:d,headerIconColor:a,headerIconHoverColor:i,tableSelectionColumnWidth:c,tableSelectedRowBg:f,tableSelectedRowHoverBg:u,tableRowHoverBg:m,tablePaddingHorizontal:p,calc:g}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:c,[`&${t}-selection-col-with-dropdown`]:{width:g(c).add(o).add(g(l).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:g(c).add(g(d).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:g(c).add(o).add(g(l).div(4)).add(g(d).mul(2)).equal()}},[`
        table tr th${t}-selection-column,
        table tr td${t}-selection-column,
        ${t}-selection-column
      `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${r}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:e.zIndexTableFixed+1},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:B(g(p).div(4).equal()),[n]:{color:a,fontSize:o,verticalAlign:"baseline","&:hover":{color:i}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:f,"&-row-hover":{background:u}}},[`> ${t}-cell-row-hover`]:{background:m}}}}}},Od=e=>{const{componentCls:t,tableExpandColumnWidth:r,calc:n}=e,o=(l,d,a,i)=>({[`${t}${t}-${l}`]:{fontSize:i,[`
        ${t}-title,
        ${t}-footer,
        ${t}-cell,
        ${t}-thead > tr > th,
        ${t}-tbody > tr > th,
        ${t}-tbody > tr > td,
        tfoot > tr > th,
        tfoot > tr > td
      `]:{padding:`${B(d)} ${B(a)}`},[`${t}-filter-trigger`]:{marginInlineEnd:B(n(a).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${B(n(d).mul(-1).equal())} ${B(n(a).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:B(n(d).mul(-1).equal()),marginInline:`${B(n(r).sub(a).equal())} ${B(n(a).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:B(n(a).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},o("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),o("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},Rd=e=>{const{componentCls:t,marginXXS:r,fontSizeIcon:n,headerIconColor:o,headerIconHoverColor:l}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`
          &${t}-cell-fix-left:hover,
          &${t}-cell-fix-right:hover
        `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:r,color:o,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:n,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:l}}}},kd=e=>{const{componentCls:t,opacityLoading:r,tableScrollThumbBg:n,tableScrollThumbBgHover:o,tableScrollThumbSize:l,tableScrollBg:d,zIndexTableSticky:a,stickyScrollBarBorderRadius:i,lineWidth:c,lineType:f,tableBorderColor:u}=e,m=`${B(c)} ${f} ${u}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:a,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${B(l)} !important`,zIndex:a,display:"flex",alignItems:"center",background:d,borderTop:m,opacity:r,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:l,backgroundColor:n,borderRadius:i,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:o}}}}}}},Oo=e=>{const{componentCls:t,lineWidth:r,tableBorderColor:n,calc:o}=e,l=`${B(r)} ${e.lineType} ${n}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:l}}},[`div${t}-summary`]:{boxShadow:`0 ${B(o(r).mul(-1).equal())} 0 ${n}`}}}},Pd=e=>{const{componentCls:t,motionDurationMid:r,lineWidth:n,lineType:o,tableBorderColor:l,calc:d}=e,a=`${B(n)} ${o} ${l}`,i=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-row:not(tr)`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${t}-cell`]:{borderBottom:a,transition:`background ${r}`},[`${t}-expanded-row`]:{[`${i}${i}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${B(n)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:a,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:a,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:d(n).mul(-1).equal(),borderInlineStart:a}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:a,borderBottom:a}}}}}},Td=e=>{const{componentCls:t,fontWeightStrong:r,tablePaddingVertical:n,tablePaddingHorizontal:o,tableExpandColumnWidth:l,lineWidth:d,lineType:a,tableBorderColor:i,tableFontSize:c,tableBg:f,tableRadius:u,tableHeaderTextColor:m,motionDurationMid:p,tableHeaderBg:g,tableHeaderCellSplitColor:h,tableFooterTextColor:v,tableFooterBg:b,calc:y}=e,C=`${B(d)} ${a} ${i}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},Yn()),{[t]:Object.assign(Object.assign({},Qt(e)),{fontSize:c,background:f,borderRadius:`${B(u)} ${B(u)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${B(u)} ${B(u)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
          ${t}-cell,
          ${t}-thead > tr > th,
          ${t}-tbody > tr > th,
          ${t}-tbody > tr > td,
          tfoot > tr > th,
          tfoot > tr > td
        `]:{position:"relative",padding:`${B(n)} ${B(o)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${B(n)} ${B(o)}`},[`${t}-thead`]:{"\n          > tr > th,\n          > tr > td\n        ":{position:"relative",color:m,fontWeight:r,textAlign:"start",background:g,borderBottom:C,transition:`background ${p} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:h,transform:"translateY(-50%)",transition:`background-color ${p}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${p}, border-color ${p}`,borderBottom:C,[`
              > ${t}-wrapper:only-child,
              > ${t}-expanded-row-fixed > ${t}-wrapper:only-child
            `]:{[t]:{marginBlock:B(y(n).mul(-1).equal()),marginInline:`${B(y(l).sub(o).equal())}
                ${B(y(o).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:m,fontWeight:r,textAlign:"start",background:g,borderBottom:C,transition:`background ${p} ease`}}},[`${t}-footer`]:{padding:`${B(n)} ${B(o)}`,color:v,background:b}})}},Kd=e=>{const{colorFillAlter:t,colorBgContainer:r,colorTextHeading:n,colorFillSecondary:o,colorFillContent:l,controlItemBgActive:d,controlItemBgActiveHover:a,padding:i,paddingSM:c,paddingXS:f,colorBorderSecondary:u,borderRadiusLG:m,controlHeight:p,colorTextPlaceholder:g,fontSize:h,fontSizeSM:v,lineHeight:b,lineWidth:y,colorIcon:C,colorIconHover:x,opacityLoading:S,controlInteractiveSize:R}=e,N=new Mt(o).onBackground(r).toHexShortString(),O=new Mt(l).onBackground(r).toHexShortString(),w=new Mt(t).onBackground(r).toHexShortString(),E=new Mt(C),M=new Mt(x),P=R/2-y,k=P*2+y*3;return{headerBg:w,headerColor:n,headerSortActiveBg:N,headerSortHoverBg:O,bodySortBg:w,rowHoverBg:w,rowSelectedBg:d,rowSelectedHoverBg:a,rowExpandedBg:t,cellPaddingBlock:i,cellPaddingInline:i,cellPaddingBlockMD:c,cellPaddingInlineMD:f,cellPaddingBlockSM:f,cellPaddingInlineSM:f,borderColor:u,headerBorderRadius:m,footerBg:w,footerColor:n,cellFontSize:h,cellFontSizeMD:h,cellFontSizeSM:h,headerSplitColor:u,fixedHeaderSortActiveBg:N,headerFilterHoverBg:l,filterDropdownMenuBg:r,filterDropdownBg:r,expandIconBg:r,selectionColumnWidth:p,stickyScrollBarBg:g,stickyScrollBarBorderRadius:100,expandIconMarginTop:(h*b-y*3)/2-Math.ceil((v*1.4-y*3)/2),headerIconColor:E.clone().setAlpha(E.getAlpha()*S).toRgbString(),headerIconHoverColor:M.clone().setAlpha(M.getAlpha()*S).toRgbString(),expandIconHalfInner:P,expandIconSize:k,expandIconScale:R/k}},Bd=fn("Table",e=>{const{colorTextHeading:t,colorSplit:r,colorBgContainer:n,controlInteractiveSize:o,headerBg:l,headerColor:d,headerSortActiveBg:a,headerSortHoverBg:i,bodySortBg:c,rowHoverBg:f,rowSelectedBg:u,rowSelectedHoverBg:m,rowExpandedBg:p,cellPaddingBlock:g,cellPaddingInline:h,cellPaddingBlockMD:v,cellPaddingInlineMD:b,cellPaddingBlockSM:y,cellPaddingInlineSM:C,borderColor:x,footerBg:S,footerColor:R,headerBorderRadius:N,cellFontSize:O,cellFontSizeMD:w,cellFontSizeSM:E,headerSplitColor:M,fixedHeaderSortActiveBg:P,headerFilterHoverBg:k,filterDropdownBg:$,expandIconBg:T,selectionColumnWidth:D,stickyScrollBarBg:K,calc:z}=e,H=2,L=Ut(e,{tableFontSize:O,tableBg:n,tableRadius:N,tablePaddingVertical:g,tablePaddingHorizontal:h,tablePaddingVerticalMiddle:v,tablePaddingHorizontalMiddle:b,tablePaddingVerticalSmall:y,tablePaddingHorizontalSmall:C,tableBorderColor:x,tableHeaderTextColor:d,tableHeaderBg:l,tableFooterTextColor:R,tableFooterBg:S,tableHeaderCellSplitColor:M,tableHeaderSortBg:a,tableHeaderSortHoverBg:i,tableBodySortBg:c,tableFixedHeaderSortActiveBg:P,tableHeaderFilterActiveBg:k,tableFilterDropdownBg:$,tableRowHoverBg:f,tableSelectedRowBg:u,tableSelectedRowHoverBg:m,zIndexTableFixed:H,zIndexTableSticky:H+1,tableFontSizeMiddle:w,tableFontSizeSmall:E,tableSelectionColumnWidth:D,tableExpandIconBg:T,tableExpandColumnWidth:z(o).add(z(e.padding).mul(2)).equal(),tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:K,tableScrollThumbBgHover:t,tableScrollBg:r});return[Td(L),wd(L),Oo(L),Rd(L),Sd(L),bd(L),Ed(L),xd(L),Oo(L),Cd(L),Nd(L),$d(L),kd(L),yd(L),Od(L),Id(L),Pd(L)]},Kd,{unitless:{expandIconScale:!0}}),Dd=[],Md=(e,t)=>{var r,n;const{prefixCls:o,className:l,rootClassName:d,style:a,size:i,bordered:c,dropdownPrefixCls:f,dataSource:u,pagination:m,rowSelection:p,rowKey:g="key",rowClassName:h,columns:v,children:b,childrenColumnName:y,onChange:C,getPopupContainer:x,loading:S,expandIcon:R,expandable:N,expandedRowRender:O,expandIconColumnIndex:w,indentSize:E,scroll:M,sortDirections:P,locale:k,showSorterTooltip:$={target:"full-header"},virtual:T}=e;kn();const D=s.useMemo(()=>v||xr(b),[v,b]),K=s.useMemo(()=>D.some(se=>se.responsive),[D]),z=Xo(K),H=s.useMemo(()=>{const se=new Set(Object.keys(z).filter(ve=>z[ve]));return D.filter(ve=>!ve.responsive||ve.responsive.some(Ee=>se.has(Ee)))},[D,z]),L=Jt(e,["className","style","columns"]),{locale:W=wi,direction:Q,table:Y,renderEmpty:de,getPrefixCls:me,getPopupContainer:$e}=s.useContext(Ct),ee=Do(i),pe=Object.assign(Object.assign({},W.Table),k),ae=u||Dd,ce=me("table",o),te=me("dropdown",f),[,q]=Pn(),_=pr(ce),[V,G,X]=Bd(ce,_),j=Object.assign(Object.assign({childrenColumnName:y,expandIconColumnIndex:w},N),{expandIcon:(r=N==null?void 0:N.expandIcon)!==null&&r!==void 0?r:(n=Y==null?void 0:Y.expandable)===null||n===void 0?void 0:n.expandIcon}),{childrenColumnName:re="children"}=j,xe=s.useMemo(()=>ae.some(se=>se==null?void 0:se[re])?"nest":O||N!=null&&N.expandedRowRender?"row":null,[ae]),ne={body:s.useRef()},be=nc(ce),Ne=s.useRef(null),J=s.useRef(null);ec(t,()=>Object.assign(Object.assign({},J.current),{nativeElement:Ne.current}));const Ce=s.useMemo(()=>typeof g=="function"?g:se=>se==null?void 0:se[g],[g]),[Pe]=rd(ae,re,Ce),we={},Je=function(se,ve){let Ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Ie,Le,Xe,ft;const Ae=Object.assign(Object.assign({},we),se);Ee&&((Ie=we.resetPagination)===null||Ie===void 0||Ie.call(we),!((Le=Ae.pagination)===null||Le===void 0)&&Le.current&&(Ae.pagination.current=1),m&&((Xe=m.onChange)===null||Xe===void 0||Xe.call(m,1,(ft=Ae.pagination)===null||ft===void 0?void 0:ft.pageSize))),M&&M.scrollToFirstRowOnChange!==!1&&ne.body.current&&Di(0,{getContainer:()=>ne.body.current}),C==null||C(Ae.pagination,Ae.filters,Ae.sorter,{currentDataSource:cr(ur(ae,Ae.sorterStates,re),Ae.filterStates,re),action:ve})},We=(se,ve)=>{Je({sorter:se,sorterStates:ve},"sort",!1)},[lt,Z,Oe,ue]=md({prefixCls:ce,mergedColumns:H,onSorterChange:We,sortDirections:P||["ascend","descend"],tableLocale:pe,showSorterTooltip:$}),Be=s.useMemo(()=>ur(ae,Z,re),[ae,Z]);we.sorter=ue(),we.sorterStates=Z;const Te=(se,ve)=>{Je({filters:se,filterStates:ve},"filter",!0)},[Re,He,je]=nd({prefixCls:ce,locale:pe,dropdownPrefixCls:te,mergedColumns:H,onFilterChange:Te,getPopupContainer:x||$e,rootClassName:U(d,_)}),Ke=cr(Be,He,re);we.filters=je,we.filterStates=He;const st=s.useMemo(()=>{const se={};return Object.keys(je).forEach(ve=>{je[ve]!==null&&(se[ve]=je[ve])}),Object.assign(Object.assign({},Oe),{filters:se})},[Oe,je]),[_e]=gd(st),Nt=(se,ve)=>{Je({pagination:Object.assign(Object.assign({},we.pagination),{current:se,pageSize:ve})},"paginate")},[ke,Ot]=id(Ke.length,Nt,m);we.pagination=m===!1?{}:ad(ke,m),we.resetPagination=Ot;const Qe=s.useMemo(()=>{if(m===!1||!ke.pageSize)return Ke;const{current:se=1,total:ve,pageSize:Ee=Ka}=ke;return Ke.length<ve?Ke.length>Ee?Ke.slice((se-1)*Ee,se*Ee):Ke:Ke.slice((se-1)*Ee,se*Ee)},[!!m,Ke,ke==null?void 0:ke.current,ke==null?void 0:ke.pageSize,ke==null?void 0:ke.total]),[ot,at]=Qs({prefixCls:ce,data:Ke,pageData:Qe,getRowKey:Ce,getRecordByKey:Pe,expandType:xe,childrenColumnName:re,locale:pe,getPopupContainer:x||$e},p),ut=(se,ve,Ee)=>{let Ie;return typeof h=="function"?Ie=U(h(se,ve,Ee)):Ie=U(h),U({[`${ce}-row-selected`]:at.has(Ce(se,ve))},Ie)};j.__PARENT_RENDER_ICON__=j.expandIcon,j.expandIcon=j.expandIcon||R||tc(pe),xe==="nest"&&j.expandIconColumnIndex===void 0?j.expandIconColumnIndex=p?1:0:j.expandIconColumnIndex>0&&p&&(j.expandIconColumnIndex-=1),typeof j.indentSize!="number"&&(j.indentSize=typeof E=="number"?E:15);const ct=s.useCallback(se=>_e(ot(Re(lt(se)))),[lt,Re,ot]);let Ve,qe;if(m!==!1&&(ke!=null&&ke.total)){let se;ke.size?se=ke.size:se=ee==="small"||ee==="middle"?"small":void 0;const ve=Le=>s.createElement(Bl,Object.assign({},ke,{className:U(`${ce}-pagination ${ce}-pagination-${Le}`,ke.className),size:se})),Ee=Q==="rtl"?"left":"right",{position:Ie}=ke;if(Ie!==null&&Array.isArray(Ie)){const Le=Ie.find(Ae=>Ae.includes("top")),Xe=Ie.find(Ae=>Ae.includes("bottom")),ft=Ie.every(Ae=>`${Ae}`=="none");!Le&&!Xe&&!ft&&(qe=ve(Ee)),Le&&(Ve=ve(Le.toLowerCase().replace("top",""))),Xe&&(qe=ve(Xe.toLowerCase().replace("bottom","")))}else qe=ve(Ee)}let it;typeof S=="boolean"?it={spinning:S}:typeof S=="object"&&(it=Object.assign({spinning:!0},S));const De=U(X,_,`${ce}-wrapper`,Y==null?void 0:Y.className,{[`${ce}-wrapper-rtl`]:Q==="rtl"},l,d,G),Me=Object.assign(Object.assign({},Y==null?void 0:Y.style),a),Ze=typeof(k==null?void 0:k.emptyText)<"u"?k.emptyText:(de==null?void 0:de("Table"))||s.createElement(Si,{componentName:"Table"}),nn=T?hd:vd,_t={},xt=s.useMemo(()=>{const{fontSize:se,lineHeight:ve,padding:Ee,paddingXS:Ie,paddingSM:Le}=q,Xe=Math.floor(se*ve);switch(ee){case"large":return Ee*2+Xe;case"small":return Ie*2+Xe;default:return Le*2+Xe}},[q,ee]);return T&&(_t.listItemHeight=xt),V(s.createElement("div",{ref:Ne,className:De,style:Me},s.createElement($i,Object.assign({spinning:!1},it),Ve,s.createElement(nn,Object.assign({},_t,L,{ref:J,columns:H,direction:Q,expandable:j,prefixCls:ce,className:U({[`${ce}-middle`]:ee==="middle",[`${ce}-small`]:ee==="small",[`${ce}-bordered`]:c,[`${ce}-empty`]:ae.length===0},X,_,G),data:Qe,rowKey:Ce,rowClassName:ut,emptyText:Ze,internalHooks:mn,internalRefs:ne,transformColumns:ct,getContainerWidth:be})),qe)))},zd=s.forwardRef(Md),Hd=(e,t)=>{const r=s.useRef(0);return r.current+=1,s.createElement(zd,Object.assign({},e,{ref:t,_renderTimes:r.current}))},It=s.forwardRef(Hd);It.SELECTION_COLUMN=$t;It.EXPAND_COLUMN=wt;It.SELECTION_ALL=or;It.SELECTION_INVERT=ar;It.SELECTION_NONE=ir;It.Column=_s;It.ColumnGroup=As;It.Summary=ca;export{It as F};