import{r as o,I as nt,b as de,c3 as Oe,cl as bn,a6 as hn,Y as j,ak as Ue,al as Xe,ag as J,ae as be,ao as Ye,a4 as It,a0 as je,$ as ee,a1 as rt,H as Ot,M as oe,Q as Qt,P as yn,J as U,O as we,d4 as Sn,d5 as $n,ar as xn,bY as Cn,aj as Zt,am as En,X as jt,Z as $e,c4 as wn,ac as et,aq as On,bT as Rn,bZ as In,as as jn,d6 as zn,ai as kt,bg as Tn,ad as Bt,ay as Nn,bS as en,af as zt,R as Mn,a5 as tn,bE as An}from"./main-tangy-colts-beg.js";var Bn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},Pn=function(t,n){return o.createElement(nt,de({},t,{ref:n,icon:Bn}))},Hn=o.forwardRef(Pn),_n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},Ln=function(t,n){return o.createElement(nt,de({},t,{ref:n,icon:_n}))},Wn=o.forwardRef(Ln),Dn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},Fn=function(t,n){return o.createElement(nt,de({},t,{ref:n,icon:Dn}))},Vn=o.forwardRef(Fn),Gn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},qn=function(t,n){return o.createElement(nt,de({},t,{ref:n,icon:Gn}))},Kn=o.forwardRef(qn);const Un=new Oe("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Xn=new Oe("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Yn=new Oe("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Jn=new Oe("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Qn=new Oe("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Zn=new Oe("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),kn=new Oe("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),er=new Oe("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),tr={"slide-up":{inKeyframes:Un,outKeyframes:Xn},"slide-down":{inKeyframes:Yn,outKeyframes:Jn},"slide-left":{inKeyframes:Qn,outKeyframes:Zn},"slide-right":{inKeyframes:kn,outKeyframes:er}},ho=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:i}=tr[t];return[bn(r,a,i,e.motionDurationMid),{[`
      ${r}-enter,
      ${r}-appear
    `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]};var nn=function(t){if(hn()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(a){return a in r.style})}return!1},nr=function(t,n){if(!nn(t))return!1;var r=document.createElement("div"),a=r.style[t];return r.style[t]=n,r.style[t]!==a};function Pt(e,t){return!Array.isArray(e)&&t!==void 0?nr(e,t):nn(e)}const at=e=>{const{prefixCls:t,className:n,style:r,size:a,shape:i}=e,s=j({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),l=j({[`${t}-circle`]:i==="circle",[`${t}-square`]:i==="square",[`${t}-round`]:i==="round"}),c=o.useMemo(()=>typeof a=="number"?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return o.createElement("span",{className:j(t,s,l,n),style:Object.assign(Object.assign({},c),r)})},rr=new Oe("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),ot=e=>({height:e,lineHeight:J(e)}),He=e=>Object.assign({width:e},ot(e)),ar=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:rr,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),dt=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},ot(e)),or=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:a,controlHeightSM:i}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},He(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},He(a)),[`${t}${t}-sm`]:Object.assign({},He(i))}},ir=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:a,controlHeightSM:i,gradientFromColor:s,calc:l}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:s,borderRadius:n},dt(t,l)),[`${r}-lg`]:Object.assign({},dt(a,l)),[`${r}-sm`]:Object.assign({},dt(i,l))}},Ht=e=>Object.assign({width:e},ot(e)),sr=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:a,calc:i}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:a},Ht(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},Ht(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},ut=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},ft=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},ot(e)),lr=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:a,controlHeightSM:i,gradientFromColor:s,calc:l}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:s,borderRadius:t,width:l(r).mul(2).equal(),minWidth:l(r).mul(2).equal()},ft(r,l))},ut(e,r,n)),{[`${n}-lg`]:Object.assign({},ft(a,l))}),ut(e,a,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},ft(i,l))}),ut(e,i,`${n}-sm`))},cr=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:a,skeletonButtonCls:i,skeletonInputCls:s,skeletonImageCls:l,controlHeight:c,controlHeightLG:d,controlHeightSM:u,gradientFromColor:p,padding:f,marginSM:S,borderRadius:b,titleHeight:m,blockRadius:O,paragraphLiHeight:v,controlHeightXS:$,paragraphMarginTop:h}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:f,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:p},He(c)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},He(d)),[`${n}-sm`]:Object.assign({},He(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:m,background:p,borderRadius:O,[`+ ${a}`]:{marginBlockStart:u}},[a]:{padding:0,"> li":{width:"100%",height:v,listStyle:"none",background:p,borderRadius:O,"+ li":{marginBlockStart:$}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${a} > li`]:{borderRadius:b}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:S,[`+ ${a}`]:{marginBlockStart:h}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},lr(e)),or(e)),ir(e)),sr(e)),[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[s]:{width:"100%"}},[`${t}${t}-active`]:{[`
        ${r},
        ${a} > li,
        ${n},
        ${i},
        ${s},
        ${l}
      `]:Object.assign({},ar(e))}}},dr=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,a=n;return{color:r,colorGradientEnd:a,gradientFromColor:r,gradientToColor:a,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},_e=Ue("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=Xe(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[cr(r)]},dr,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),ur=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,shape:i="circle",size:s="default"}=e,{getPrefixCls:l}=o.useContext(be),c=l("skeleton",t),[d,u,p]=_e(c),f=Ye(e,["prefixCls","className"]),S=j(c,`${c}-element`,{[`${c}-active`]:a},n,r,u,p);return d(o.createElement("div",{className:S},o.createElement(at,Object.assign({prefixCls:`${c}-avatar`,shape:i,size:s},f))))},fr=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,block:i=!1,size:s="default"}=e,{getPrefixCls:l}=o.useContext(be),c=l("skeleton",t),[d,u,p]=_e(c),f=Ye(e,["prefixCls"]),S=j(c,`${c}-element`,{[`${c}-active`]:a,[`${c}-block`]:i},n,r,u,p);return d(o.createElement("div",{className:S},o.createElement(at,Object.assign({prefixCls:`${c}-button`,size:s},f))))},pr="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",gr=e=>{const{prefixCls:t,className:n,rootClassName:r,style:a,active:i}=e,{getPrefixCls:s}=o.useContext(be),l=s("skeleton",t),[c,d,u]=_e(l),p=j(l,`${l}-element`,{[`${l}-active`]:i},n,r,d,u);return c(o.createElement("div",{className:p},o.createElement("div",{className:j(`${l}-image`,n),style:a},o.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},o.createElement("title",null,"Image placeholder"),o.createElement("path",{d:pr,className:`${l}-image-path`})))))},mr=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,block:i,size:s="default"}=e,{getPrefixCls:l}=o.useContext(be),c=l("skeleton",t),[d,u,p]=_e(c),f=Ye(e,["prefixCls"]),S=j(c,`${c}-element`,{[`${c}-active`]:a,[`${c}-block`]:i},n,r,u,p);return d(o.createElement("div",{className:S},o.createElement(at,Object.assign({prefixCls:`${c}-input`,size:s},f))))},vr=e=>{const{prefixCls:t,className:n,rootClassName:r,style:a,active:i,children:s}=e,{getPrefixCls:l}=o.useContext(be),c=l("skeleton",t),[d,u,p]=_e(c),f=j(c,`${c}-element`,{[`${c}-active`]:i},u,n,r,p);return d(o.createElement("div",{className:f},o.createElement("div",{className:j(`${c}-image`,n),style:a},s)))},br=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},hr=e=>{const{prefixCls:t,className:n,style:r,rows:a}=e,i=It(new Array(a)).map((s,l)=>o.createElement("li",{key:l,style:{width:br(l,e)}}));return o.createElement("ul",{className:j(t,n),style:r},i)},yr=e=>{let{prefixCls:t,className:n,width:r,style:a}=e;return o.createElement("h3",{className:j(t,n),style:Object.assign({width:r},a)})};function pt(e){return e&&typeof e=="object"?e:{}}function Sr(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function $r(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function xr(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const Je=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:a,style:i,children:s,avatar:l=!1,title:c=!0,paragraph:d=!0,active:u,round:p}=e,{getPrefixCls:f,direction:S,skeleton:b}=o.useContext(be),m=f("skeleton",t),[O,v,$]=_e(m);if(n||!("loading"in e)){const h=!!l,I=!!c,E=!!d;let x;if(h){const w=Object.assign(Object.assign({prefixCls:`${m}-avatar`},Sr(I,E)),pt(l));x=o.createElement("div",{className:`${m}-header`},o.createElement(at,Object.assign({},w)))}let g;if(I||E){let w;if(I){const R=Object.assign(Object.assign({prefixCls:`${m}-title`},$r(h,E)),pt(c));w=o.createElement(yr,Object.assign({},R))}let y;if(E){const R=Object.assign(Object.assign({prefixCls:`${m}-paragraph`},xr(h,I)),pt(d));y=o.createElement(hr,Object.assign({},R))}g=o.createElement("div",{className:`${m}-content`},w,y)}const T=j(m,{[`${m}-with-avatar`]:h,[`${m}-active`]:u,[`${m}-rtl`]:S==="rtl",[`${m}-round`]:p},b==null?void 0:b.className,r,a,v,$);return O(o.createElement("div",{className:T,style:Object.assign(Object.assign({},b==null?void 0:b.style),i)},x,g))}return s??null};Je.Button=fr;Je.Avatar=ur;Je.Input=mr;Je.Image=gr;Je.Node=vr;const Cr=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},Er=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},wr=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:a}=e,i={};for(let s=a;s>=0;s--)s===0?(i[`${r}${t}-${s}`]={display:"none"},i[`${r}-push-${s}`]={insetInlineStart:"auto"},i[`${r}-pull-${s}`]={insetInlineEnd:"auto"},i[`${r}${t}-push-${s}`]={insetInlineStart:"auto"},i[`${r}${t}-pull-${s}`]={insetInlineEnd:"auto"},i[`${r}${t}-offset-${s}`]={marginInlineStart:0},i[`${r}${t}-order-${s}`]={order:0}):(i[`${r}${t}-${s}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${s/a*100}%`,maxWidth:`${s/a*100}%`}],i[`${r}${t}-push-${s}`]={insetInlineStart:`${s/a*100}%`},i[`${r}${t}-pull-${s}`]={insetInlineEnd:`${s/a*100}%`},i[`${r}${t}-offset-${s}`]={marginInlineStart:`${s/a*100}%`},i[`${r}${t}-order-${s}`]={order:s});return i[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},i},Rt=(e,t)=>wr(e,t),Or=(e,t,n)=>({[`@media (min-width: ${J(t)})`]:Object.assign({},Rt(e,n))}),Rr=()=>({}),Ir=()=>({}),jr=Ue("Grid",Cr,Rr),zr=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),Tr=Ue("Grid",e=>{const t=Xe(e,{gridColumns:24}),n=zr(t);return delete n.xs,[Er(t),Rt(t,""),Rt(t,"-xs"),Object.keys(n).map(r=>Or(t,n[r],`-${r}`)).reduce((r,a)=>Object.assign(Object.assign({},r),a),{})]},Ir);var Nr=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Pe=void 0;function Mr(e,t){var n=e.prefixCls,r=e.invalidate,a=e.item,i=e.renderItem,s=e.responsive,l=e.responsiveDisabled,c=e.registerSize,d=e.itemKey,u=e.className,p=e.style,f=e.children,S=e.display,b=e.order,m=e.component,O=m===void 0?"div":m,v=je(e,Nr),$=s&&!S;function h(T){c(d,T)}o.useEffect(function(){return function(){h(null)}},[]);var I=i&&a!==Pe?i(a,{index:b}):f,E;r||(E={opacity:$?0:1,height:$?0:Pe,overflowY:$?"hidden":Pe,order:s?b:Pe,pointerEvents:$?"none":Pe,position:$?"absolute":Pe});var x={};$&&(x["aria-hidden"]=!0);var g=o.createElement(O,de({className:j(!r&&n,u),style:ee(ee({},E),p)},x,v,{ref:t}),I);return s&&(g=o.createElement(rt,{onResize:function(w){var y=w.offsetWidth;h(y)},disabled:l},g)),g}var qe=o.forwardRef(Mr);qe.displayName="Item";function Ar(e){if(typeof MessageChannel>"u")Ot(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function Br(){var e=o.useRef(null),t=function(r){e.current||(e.current=[],Ar(function(){yn.unstable_batchedUpdates(function(){e.current.forEach(function(a){a()}),e.current=null})})),e.current.push(r)};return t}function Ge(e,t){var n=o.useState(t),r=oe(n,2),a=r[0],i=r[1],s=Qt(function(l){e(function(){i(l)})});return[a,s]}var tt=U.createContext(null),Pr=["component"],Hr=["className"],_r=["className"],Lr=function(t,n){var r=o.useContext(tt);if(!r){var a=t.component,i=a===void 0?"div":a,s=je(t,Pr);return o.createElement(i,de({},s,{ref:n}))}var l=r.className,c=je(r,Hr),d=t.className,u=je(t,_r);return o.createElement(tt.Provider,{value:null},o.createElement(qe,de({ref:n,className:j(l,d)},c,u)))},rn=o.forwardRef(Lr);rn.displayName="RawItem";var Wr=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],an="responsive",on="invalidate";function Dr(e){return"+ ".concat(e.length," ...")}function Fr(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,a=e.data,i=a===void 0?[]:a,s=e.renderItem,l=e.renderRawItem,c=e.itemKey,d=e.itemWidth,u=d===void 0?10:d,p=e.ssr,f=e.style,S=e.className,b=e.maxCount,m=e.renderRest,O=e.renderRawRest,v=e.suffix,$=e.component,h=$===void 0?"div":$,I=e.itemComponent,E=e.onVisibleChange,x=je(e,Wr),g=p==="full",T=Br(),w=Ge(T,null),y=oe(w,2),R=y[0],M=y[1],W=R||0,A=Ge(T,new Map),z=oe(A,2),P=z[0],D=z[1],L=Ge(T,0),H=oe(L,2),q=H[0],Q=H[1],X=Ge(T,0),Z=oe(X,2),K=Z[0],he=Z[1],ue=Ge(T,0),ye=oe(ue,2),me=ye[0],Se=ye[1],ie=o.useState(null),re=oe(ie,2),k=re[0],ae=re[1],xe=o.useState(null),Y=oe(xe,2),V=Y[0],ve=Y[1],te=o.useMemo(function(){return V===null&&g?Number.MAX_SAFE_INTEGER:V||0},[V,R]),ze=o.useState(!1),Te=oe(ze,2),Ne=Te[0],Le=Te[1],Ee="".concat(r,"-item"),Me=Math.max(q,K),Re=b===an,fe=i.length&&Re,Ae=b===on,We=fe||typeof b=="number"&&i.length>b,se=o.useMemo(function(){var N=i;return fe?R===null&&g?N=i:N=i.slice(0,Math.min(i.length,W/u)):typeof b=="number"&&(N=i.slice(0,b)),N},[i,u,R,b,fe]),le=o.useMemo(function(){return fe?i.slice(te+1):i.slice(se.length)},[i,se,fe,te]),Ie=o.useCallback(function(N,F){var ne;return typeof c=="function"?c(N):(ne=c&&(N==null?void 0:N[c]))!==null&&ne!==void 0?ne:F},[c]),De=o.useCallback(s||function(N){return N},[s]);function G(N,F,ne){V===N&&(F===void 0||F===k)||(ve(N),ne||(Le(N<i.length-1),E==null||E(N)),F!==void 0&&ae(F))}function _(N,F){M(F.clientWidth)}function pe(N,F){D(function(ne){var Ce=new Map(ne);return F===null?Ce.delete(N):Ce.set(N,F),Ce})}function C(N,F){he(F),Q(K)}function B(N,F){Se(F)}function ce(N){return P.get(Ie(se[N],N))}we(function(){if(W&&typeof Me=="number"&&se){var N=me,F=se.length,ne=F-1;if(!F){G(0,null);return}for(var Ce=0;Ce<F;Ce+=1){var Ve=ce(Ce);if(g&&(Ve=Ve||0),Ve===void 0){G(Ce-1,void 0,!0);break}if(N+=Ve,ne===0&&N<=W||Ce===ne-1&&N+ce(ne)<=W){G(ne,null);break}else if(N+Me>W){G(Ce-1,N-Ve-me+K);break}}v&&ce(0)+me>W&&ae(null)}},[W,P,K,me,Ie,se]);var Be=Ne&&!!le.length,Qe={};k!==null&&fe&&(Qe={position:"absolute",left:k,top:0});var Fe={prefixCls:Ee,responsive:fe,component:I,invalidate:Ae},mn=l?function(N,F){var ne=Ie(N,F);return o.createElement(tt.Provider,{key:ne,value:ee(ee({},Fe),{},{order:F,item:N,itemKey:ne,registerSize:pe,display:F<=te})},l(N,F))}:function(N,F){var ne=Ie(N,F);return o.createElement(qe,de({},Fe,{order:F,key:ne,item:N,renderItem:De,itemKey:ne,registerSize:pe,display:F<=te}))},Mt={order:Be?te:Number.MAX_SAFE_INTEGER,className:"".concat(Ee,"-rest"),registerSize:C,display:Be},ct=m||Dr,vn=O?o.createElement(tt.Provider,{value:ee(ee({},Fe),Mt)},O(le)):o.createElement(qe,de({},Fe,Mt),typeof ct=="function"?ct(le):ct),At=o.createElement(h,de({className:j(!Ae&&r,S),style:f,ref:t},x),se.map(mn),We?vn:null,v&&o.createElement(qe,de({},Fe,{responsive:Re,responsiveDisabled:!fe,order:te,className:"".concat(Ee,"-suffix"),registerSize:B,display:!0,style:Qe}),v));return Re?o.createElement(rt,{onResize:_,disabled:!fe},At):At}var it=o.forwardRef(Fr);it.displayName="Overflow";it.Item=rn;it.RESPONSIVE=an;it.INVALIDATE=on;function Vr(e,t,n){return j({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const Gr=(e,t)=>t||e,qr=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,a;const{variant:i,[e]:s}=o.useContext(be),l=o.useContext(Sn),c=s==null?void 0:s.variant;let d;typeof t<"u"?d=t:n===!1?d="borderless":d=(a=(r=l??c)!==null&&r!==void 0?r:i)!==null&&a!==void 0?a:"outlined";const u=$n.includes(d);return[d,u]},Ke=["xxl","xl","lg","md","sm","xs"],Kr=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),Ur=e=>{const t=e,n=[].concat(Ke).reverse();return n.forEach((r,a)=>{const i=r.toUpperCase(),s=`screen${i}Min`,l=`screen${i}`;if(!(t[s]<=t[l]))throw new Error(`${s}<=${l} fails : !(${t[s]}<=${t[l]})`);if(a<n.length-1){const c=`screen${i}Max`;if(!(t[l]<=t[c]))throw new Error(`${l}<=${c} fails : !(${t[l]}<=${t[c]})`);const u=`screen${n[a+1].toUpperCase()}Min`;if(!(t[c]<=t[u]))throw new Error(`${c}<=${u} fails : !(${t[c]}<=${t[u]})`)}}),e};function Xr(){const[,e]=xn(),t=Kr(Ur(e));return U.useMemo(()=>{const n=new Map;let r=-1,a={};return{matchHandlers:{},dispatch(i){return a=i,n.forEach(s=>s(a)),n.size>=1},subscribe(i){return n.size||this.register(),r+=1,n.set(r,i),i(a),r},unsubscribe(i){n.delete(i),n.size||this.unregister()},unregister(){Object.keys(t).forEach(i=>{const s=t[i],l=this.matchHandlers[s];l==null||l.mql.removeListener(l==null?void 0:l.listener)}),n.clear()},register(){Object.keys(t).forEach(i=>{const s=t[i],l=d=>{let{matches:u}=d;this.dispatch(Object.assign(Object.assign({},a),{[i]:u}))},c=window.matchMedia(s);c.addListener(l),this.matchHandlers[s]={mql:c,listener:l},l(c)})},responsiveMap:t}},[e])}function Yr(e){return Xe(e,{inputAffixPadding:e.paddingXXS})}const Jr=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:a,controlHeightSM:i,controlHeightLG:s,fontSizeLG:l,lineHeightLG:c,paddingSM:d,controlPaddingHorizontalSM:u,controlPaddingHorizontal:p,colorFillAlter:f,colorPrimaryHover:S,colorPrimary:b,controlOutlineWidth:m,controlOutline:O,colorErrorOutline:v,colorWarningOutline:$,colorBgContainer:h}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-a,0),paddingBlockSM:Math.max(Math.round((i-n*r)/2*10)/10-a,0),paddingBlockLG:Math.ceil((s-l*c)/2*10)/10-a,paddingInline:d-a,paddingInlineSM:u-a,paddingInlineLG:p-a,addonBg:f,activeBorderColor:b,hoverBorderColor:S,activeShadow:`0 0 0 ${m}px ${O}`,errorActiveShadow:`0 0 0 ${m}px ${v}`,warningActiveShadow:`0 0 0 ${m}px ${$}`,hoverBg:h,activeBg:h,inputFontSize:n,inputFontSizeLG:l,inputFontSizeSM:n}},Qr=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Tt=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},Qr(Xe(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),sn=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),_t=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},sn(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),Zr=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},sn(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Tt(e))}),_t(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),_t(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Lt=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),kr=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},Lt(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),Lt(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Tt(e))}})}),ea=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},ln=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),Wt=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},ln(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),ta=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ln(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Tt(e))}),Wt(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Wt(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),Dt=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),na=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${J(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${J(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},Dt(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),Dt(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),ra=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),cn=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:a}=e;return{padding:`${J(t)} ${J(a)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},dn=e=>({padding:`${J(e.paddingBlockSM)} ${J(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),un=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${J(e.paddingBlock)} ${J(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},ra(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},cn(e)),"&-sm":Object.assign({},dn(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),aa=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},cn(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},dn(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${J(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${J(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${J(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${J(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${J(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},En()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
        & > ${t}-affix-wrapper,
        & > ${t}-number-affix-wrapper,
        & > ${n}-picker-range
      `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,
      & > ${n}-select-auto-complete ${t},
      & > ${n}-cascader-picker ${t},
      & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,
      & > ${n}-select:first-child > ${n}-select-selector,
      & > ${n}-select-auto-complete:first-child ${t},
      & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
      & > ${n}-select:last-child > ${n}-select-selector,
      & > ${n}-cascader-picker:last-child ${t},
      & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},oa=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:a}=e,s=a(n).sub(a(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Zt(e)),un(e)),Zr(e)),ta(e)),ea(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:s,paddingBottom:s}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},ia=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${J(e.inputAffixPadding)}`}}}},sa=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:a,colorIcon:i,colorIconHover:s,iconCls:l}=e,c=`${t}-affix-wrapper`,d=`${t}-affix-wrapper-disabled`;return{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},un(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),ia(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${a}`,"&:hover":{color:s}}}),[d]:{[`${l}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},la=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Zt(e)),aa(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},kr(e)),na(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}})})}},ca=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
        > ${t},
        ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},da=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
        &-allow-clear > ${t},
        &-affix-wrapper${r}-has-feedback ${t}
      `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},ua=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},fa=Ue("Input",e=>{const t=Xe(e,Yr(e));return[oa(t),da(t),sa(t),la(t),ca(t),ua(t),Cn(t)]},Jr,{resetFont:!1}),fn=o.createContext({});var pa=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function Ft(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const ga=["xs","sm","md","lg","xl","xxl"],yo=o.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=o.useContext(be),{gutter:a,wrap:i}=o.useContext(fn),{prefixCls:s,span:l,order:c,offset:d,push:u,pull:p,className:f,children:S,flex:b,style:m}=e,O=pa(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),v=n("col",s),[$,h,I]=Tr(v),E={};let x={};ga.forEach(w=>{let y={};const R=e[w];typeof R=="number"?y.span=R:typeof R=="object"&&(y=R||{}),delete O[w],x=Object.assign(Object.assign({},x),{[`${v}-${w}-${y.span}`]:y.span!==void 0,[`${v}-${w}-order-${y.order}`]:y.order||y.order===0,[`${v}-${w}-offset-${y.offset}`]:y.offset||y.offset===0,[`${v}-${w}-push-${y.push}`]:y.push||y.push===0,[`${v}-${w}-pull-${y.pull}`]:y.pull||y.pull===0,[`${v}-rtl`]:r==="rtl"}),y.flex&&(x[`${v}-${w}-flex`]=!0,E[`--${v}-${w}-flex`]=Ft(y.flex))});const g=j(v,{[`${v}-${l}`]:l!==void 0,[`${v}-order-${c}`]:c,[`${v}-offset-${d}`]:d,[`${v}-push-${u}`]:u,[`${v}-pull-${p}`]:p},f,x,h,I),T={};if(a&&a[0]>0){const w=a[0]/2;T.paddingLeft=w,T.paddingRight=w}return b&&(T.flex=Ft(b),i===!1&&!T.minWidth&&(T.minWidth=0)),$(o.createElement("div",Object.assign({},O,{style:Object.assign(Object.assign(Object.assign({},T),m),E),className:g,ref:t}),S))});var ma=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function Vt(e,t){const[n,r]=o.useState(typeof e=="string"?e:""),a=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let i=0;i<Ke.length;i++){const s=Ke[i];if(!t[s])continue;const l=e[s];if(l!==void 0){r(l);return}}};return o.useEffect(()=>{a()},[JSON.stringify(e),t]),n}const So=o.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:a,className:i,style:s,children:l,gutter:c=0,wrap:d}=e,u=ma(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:p,direction:f}=o.useContext(be),[S,b]=o.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[m,O]=o.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),v=Vt(a,m),$=Vt(r,m),h=o.useRef(c),I=Xr();o.useEffect(()=>{const D=I.subscribe(L=>{O(L);const H=h.current||0;(!Array.isArray(H)&&typeof H=="object"||Array.isArray(H)&&(typeof H[0]=="object"||typeof H[1]=="object"))&&b(L)});return()=>I.unsubscribe(D)},[]);const E=()=>{const D=[void 0,void 0];return(Array.isArray(c)?c:[c,void 0]).forEach((H,q)=>{if(typeof H=="object")for(let Q=0;Q<Ke.length;Q++){const X=Ke[Q];if(S[X]&&H[X]!==void 0){D[q]=H[X];break}}else D[q]=H}),D},x=p("row",n),[g,T,w]=jr(x),y=E(),R=j(x,{[`${x}-no-wrap`]:d===!1,[`${x}-${$}`]:$,[`${x}-${v}`]:v,[`${x}-rtl`]:f==="rtl"},i,T,w),M={},W=y[0]!=null&&y[0]>0?y[0]/-2:void 0;W&&(M.marginLeft=W,M.marginRight=W);const[A,z]=y;M.rowGap=z;const P=o.useMemo(()=>({gutter:[A,z],wrap:d}),[A,z,d]);return g(o.createElement(fn.Provider,{value:P},o.createElement("div",Object.assign({},u,{className:R,style:Object.assign(Object.assign({},M),s),ref:t}),l)))});function va(e){return!!(e.addonBefore||e.addonAfter)}function ba(e){return!!(e.prefix||e.suffix||e.allowClear)}function Gt(e,t,n){var r=t.cloneNode(!0),a=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},a}function qt(e,t,n,r){if(n){var a=t;if(t.type==="click"){a=Gt(t,e,""),n(a);return}if(e.type!=="file"&&r!==void 0){a=Gt(t,e,r),n(a);return}n(a)}}function ha(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var a=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(a,a);break;default:e.setSelectionRange(0,a)}}}}var ya=U.forwardRef(function(e,t){var n,r,a,i=e.inputElement,s=e.children,l=e.prefixCls,c=e.prefix,d=e.suffix,u=e.addonBefore,p=e.addonAfter,f=e.className,S=e.style,b=e.disabled,m=e.readOnly,O=e.focused,v=e.triggerFocus,$=e.allowClear,h=e.value,I=e.handleReset,E=e.hidden,x=e.classes,g=e.classNames,T=e.dataAttrs,w=e.styles,y=e.components,R=e.onClear,M=s??i,W=(y==null?void 0:y.affixWrapper)||"span",A=(y==null?void 0:y.groupWrapper)||"span",z=(y==null?void 0:y.wrapper)||"span",P=(y==null?void 0:y.groupAddon)||"span",D=o.useRef(null),L=function(Y){var V;(V=D.current)!==null&&V!==void 0&&V.contains(Y.target)&&(v==null||v())},H=ba(e),q=o.cloneElement(M,{value:h,className:j((n=M.props)===null||n===void 0?void 0:n.className,!H&&(g==null?void 0:g.variant))||null}),Q=o.useRef(null);if(U.useImperativeHandle(t,function(){return{nativeElement:Q.current||D.current}}),H){var X=null;if($){var Z=!b&&!m&&h,K="".concat(l,"-clear-icon"),he=jt($)==="object"&&$!==null&&$!==void 0&&$.clearIcon?$.clearIcon:"✖";X=U.createElement("button",{type:"button",tabIndex:-1,onClick:function(Y){I==null||I(Y),R==null||R()},onMouseDown:function(Y){return Y.preventDefault()},className:j(K,$e($e({},"".concat(K,"-hidden"),!Z),"".concat(K,"-has-suffix"),!!d))},he)}var ue="".concat(l,"-affix-wrapper"),ye=j(ue,$e($e($e($e($e({},"".concat(l,"-disabled"),b),"".concat(ue,"-disabled"),b),"".concat(ue,"-focused"),O),"".concat(ue,"-readonly"),m),"".concat(ue,"-input-with-clear-btn"),d&&$&&h),x==null?void 0:x.affixWrapper,g==null?void 0:g.affixWrapper,g==null?void 0:g.variant),me=(d||$)&&U.createElement("span",{className:j("".concat(l,"-suffix"),g==null?void 0:g.suffix),style:w==null?void 0:w.suffix},X,d);q=U.createElement(W,de({className:ye,style:w==null?void 0:w.affixWrapper,onClick:L},T==null?void 0:T.affixWrapper,{ref:D}),c&&U.createElement("span",{className:j("".concat(l,"-prefix"),g==null?void 0:g.prefix),style:w==null?void 0:w.prefix},c),q,me)}if(va(e)){var Se="".concat(l,"-group"),ie="".concat(Se,"-addon"),re="".concat(Se,"-wrapper"),k=j("".concat(l,"-wrapper"),Se,x==null?void 0:x.wrapper,g==null?void 0:g.wrapper),ae=j(re,$e({},"".concat(re,"-disabled"),b),x==null?void 0:x.group,g==null?void 0:g.groupWrapper);q=U.createElement(A,{className:ae,ref:Q},U.createElement(z,{className:k},u&&U.createElement(P,{className:ie},u),q,p&&U.createElement(P,{className:ie},p)))}return U.cloneElement(q,{className:j((r=q.props)===null||r===void 0?void 0:r.className,f)||null,style:ee(ee({},(a=q.props)===null||a===void 0?void 0:a.style),S),hidden:E})}),Sa=["show"];function $a(e,t){return o.useMemo(function(){var n={};t&&(n.show=jt(t)==="object"&&t.formatter?t.formatter:!!t),n=ee(ee({},n),e);var r=n,a=r.show,i=je(r,Sa);return ee(ee({},i),{},{show:!!a,showFormatter:typeof a=="function"?a:void 0,strategy:i.strategy||function(s){return s.length}})},[e,t])}const xa=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:U.createElement(wn,null)}),t};var Ca=`
  min-height:0 !important;
  max-height:none !important;
  height:0 !important;
  visibility:hidden !important;
  overflow:hidden !important;
  position:absolute !important;
  z-index:-1000 !important;
  top:0 !important;
  right:0 !important;
  pointer-events: none !important;
`,Ea=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],gt={},ge;function wa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&gt[n])return gt[n];var r=window.getComputedStyle(e),a=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),s=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l=Ea.map(function(d){return"".concat(d,":").concat(r.getPropertyValue(d))}).join(";"),c={sizingStyle:l,paddingSize:i,borderSize:s,boxSizing:a};return t&&n&&(gt[n]=c),c}function Oa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ge||(ge=document.createElement("textarea"),ge.setAttribute("tab-index","-1"),ge.setAttribute("aria-hidden","true"),ge.setAttribute("name","hiddenTextarea"),document.body.appendChild(ge)),e.getAttribute("wrap")?ge.setAttribute("wrap",e.getAttribute("wrap")):ge.removeAttribute("wrap");var a=wa(e,t),i=a.paddingSize,s=a.borderSize,l=a.boxSizing,c=a.sizingStyle;ge.setAttribute("style","".concat(c,";").concat(Ca)),ge.value=e.value||e.placeholder||"";var d=void 0,u=void 0,p,f=ge.scrollHeight;if(l==="border-box"?f+=s:l==="content-box"&&(f-=i),n!==null||r!==null){ge.value=" ";var S=ge.scrollHeight-i;n!==null&&(d=S*n,l==="border-box"&&(d=d+i+s),f=Math.max(d,f)),r!==null&&(u=S*r,l==="border-box"&&(u=u+i+s),p=f>u?"":"hidden",f=Math.min(u,f))}var b={height:f,overflowY:p,resize:"none"};return d&&(b.minHeight=d),u&&(b.maxHeight=u),b}var Ra=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],mt=0,vt=1,bt=2,Ia=o.forwardRef(function(e,t){var n=e,r=n.prefixCls,a=n.defaultValue,i=n.value,s=n.autoSize,l=n.onResize,c=n.className,d=n.style,u=n.disabled,p=n.onChange;n.onInternalAutoSize;var f=je(n,Ra),S=et(a,{value:i,postState:function(K){return K??""}}),b=oe(S,2),m=b[0],O=b[1],v=function(K){O(K.target.value),p==null||p(K)},$=o.useRef();o.useImperativeHandle(t,function(){return{textArea:$.current}});var h=o.useMemo(function(){return s&&jt(s)==="object"?[s.minRows,s.maxRows]:[]},[s]),I=oe(h,2),E=I[0],x=I[1],g=!!s,T=function(){try{if(document.activeElement===$.current){var K=$.current,he=K.selectionStart,ue=K.selectionEnd,ye=K.scrollTop;$.current.setSelectionRange(he,ue),$.current.scrollTop=ye}}catch{}},w=o.useState(bt),y=oe(w,2),R=y[0],M=y[1],W=o.useState(),A=oe(W,2),z=A[0],P=A[1],D=function(){M(mt)};we(function(){g&&D()},[i,E,x,g]),we(function(){if(R===mt)M(vt);else if(R===vt){var Z=Oa($.current,!1,E,x);M(bt),P(Z)}else T()},[R]);var L=o.useRef(),H=function(){Ot.cancel(L.current)},q=function(K){R===bt&&(l==null||l(K),s&&(H(),L.current=Ot(function(){D()})))};o.useEffect(function(){return H},[]);var Q=g?z:null,X=ee(ee({},d),Q);return(R===mt||R===vt)&&(X.overflowY="hidden",X.overflowX="hidden"),o.createElement(rt,{onResize:q,disabled:!(s||l)},o.createElement("textarea",de({},f,{ref:$,style:X,className:j(r,c,$e({},"".concat(r,"-disabled"),u)),disabled:u,value:m,onChange:v})))}),ja=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],za=U.forwardRef(function(e,t){var n,r=e.defaultValue,a=e.value,i=e.onFocus,s=e.onBlur,l=e.onChange,c=e.allowClear,d=e.maxLength,u=e.onCompositionStart,p=e.onCompositionEnd,f=e.suffix,S=e.prefixCls,b=S===void 0?"rc-textarea":S,m=e.showCount,O=e.count,v=e.className,$=e.style,h=e.disabled,I=e.hidden,E=e.classNames,x=e.styles,g=e.onResize,T=e.onClear,w=e.onPressEnter,y=e.readOnly,R=e.autoSize,M=e.onKeyDown,W=je(e,ja),A=et(r,{value:a,defaultValue:r}),z=oe(A,2),P=z[0],D=z[1],L=P==null?"":String(P),H=U.useState(!1),q=oe(H,2),Q=q[0],X=q[1],Z=U.useRef(!1),K=U.useState(null),he=oe(K,2),ue=he[0],ye=he[1],me=o.useRef(null),Se=o.useRef(null),ie=function(){var _;return(_=Se.current)===null||_===void 0?void 0:_.textArea},re=function(){ie().focus()};o.useImperativeHandle(t,function(){var G;return{resizableTextArea:Se.current,focus:re,blur:function(){ie().blur()},nativeElement:((G=me.current)===null||G===void 0?void 0:G.nativeElement)||ie()}}),o.useEffect(function(){X(function(G){return!h&&G})},[h]);var k=U.useState(null),ae=oe(k,2),xe=ae[0],Y=ae[1];U.useEffect(function(){if(xe){var G;(G=ie()).setSelectionRange.apply(G,It(xe))}},[xe]);var V=$a(O,m),ve=(n=V.max)!==null&&n!==void 0?n:d,te=Number(ve)>0,ze=V.strategy(L),Te=!!ve&&ze>ve,Ne=function(_,pe){var C=pe;!Z.current&&V.exceedFormatter&&V.max&&V.strategy(pe)>V.max&&(C=V.exceedFormatter(pe,{max:V.max}),pe!==C&&Y([ie().selectionStart||0,ie().selectionEnd||0])),D(C),qt(_.currentTarget,_,l,C)},Le=function(_){Z.current=!0,u==null||u(_)},Ee=function(_){Z.current=!1,Ne(_,_.currentTarget.value),p==null||p(_)},Me=function(_){Ne(_,_.target.value)},Re=function(_){_.key==="Enter"&&w&&w(_),M==null||M(_)},fe=function(_){X(!0),i==null||i(_)},Ae=function(_){X(!1),s==null||s(_)},We=function(_){D(""),re(),qt(ie(),_,l)},se=f,le;V.show&&(V.showFormatter?le=V.showFormatter({value:L,count:ze,maxLength:ve}):le="".concat(ze).concat(te?" / ".concat(ve):""),se=U.createElement(U.Fragment,null,se,U.createElement("span",{className:j("".concat(b,"-data-count"),E==null?void 0:E.count),style:x==null?void 0:x.count},le)));var Ie=function(_){var pe;g==null||g(_),(pe=ie())!==null&&pe!==void 0&&pe.style.height&&ye(!0)},De=!R&&!m&&!c;return U.createElement(ya,{ref:me,value:L,allowClear:c,handleReset:We,suffix:se,prefixCls:b,classNames:ee(ee({},E),{},{affixWrapper:j(E==null?void 0:E.affixWrapper,$e($e({},"".concat(b,"-show-count"),m),"".concat(b,"-textarea-allow-clear"),c))}),disabled:h,focused:Q,className:j(v,Te&&"".concat(b,"-out-of-range")),style:ee(ee({},$),ue&&!De?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof le=="string"?le:void 0}},hidden:I,readOnly:y,onClear:T},U.createElement(Ia,de({},W,{autoSize:R,maxLength:d,onKeyDown:Re,onChange:Me,onFocus:fe,onBlur:Ae,onCompositionStart:Le,onCompositionEnd:Ee,className:j(E==null?void 0:E.textarea),style:ee(ee({},x==null?void 0:x.textarea),{},{resize:$==null?void 0:$.resize}),disabled:h,prefixCls:b,onResize:Ie,ref:Se,readOnly:y})))}),Ta=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const Na=o.forwardRef((e,t)=>{var n,r;const{prefixCls:a,bordered:i=!0,size:s,disabled:l,status:c,allowClear:d,classNames:u,rootClassName:p,className:f,style:S,styles:b,variant:m}=e,O=Ta(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:v,direction:$,textArea:h}=o.useContext(be),I=On(s),E=o.useContext(Rn),x=l??E,{status:g,hasFeedback:T,feedbackIcon:w}=o.useContext(In),y=Gr(g,c),R=o.useRef(null);o.useImperativeHandle(t,()=>{var q;return{resizableTextArea:(q=R.current)===null||q===void 0?void 0:q.resizableTextArea,focus:Q=>{var X,Z;ha((Z=(X=R.current)===null||X===void 0?void 0:X.resizableTextArea)===null||Z===void 0?void 0:Z.textArea,Q)},blur:()=>{var Q;return(Q=R.current)===null||Q===void 0?void 0:Q.blur()}}});const M=v("input",a),W=jn(M),[A,z,P]=fa(M,W),[D,L]=qr("textArea",m,i),H=xa(d??(h==null?void 0:h.allowClear));return A(o.createElement(za,Object.assign({autoComplete:h==null?void 0:h.autoComplete},O,{style:Object.assign(Object.assign({},h==null?void 0:h.style),S),styles:Object.assign(Object.assign({},h==null?void 0:h.styles),b),disabled:x,allowClear:H,className:j(P,W,f,p,h==null?void 0:h.className),classNames:Object.assign(Object.assign(Object.assign({},u),h==null?void 0:h.classNames),{textarea:j({[`${M}-sm`]:I==="small",[`${M}-lg`]:I==="large"},z,u==null?void 0:u.textarea,(n=h==null?void 0:h.classNames)===null||n===void 0?void 0:n.textarea),variant:j({[`${M}-${D}`]:L},Vr(M,y)),affixWrapper:j(`${M}-textarea-affix-wrapper`,{[`${M}-affix-wrapper-rtl`]:$==="rtl",[`${M}-affix-wrapper-sm`]:I==="small",[`${M}-affix-wrapper-lg`]:I==="large",[`${M}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},z)}),prefixCls:M,suffix:T&&o.createElement("span",{className:`${M}-textarea-suffix`},w),ref:R})))});function Ma(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)&&e==null?[]:Array.isArray(e)?e:[e]}const Aa=(e,t,n,r)=>{const{titleMarginBottom:a,fontWeightStrong:i}=r;return{marginBottom:a,color:n,fontWeight:i,fontSize:e,lineHeight:t}},Ba=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[`
      h${r}&,
      div&-h${r},
      div&-h${r} > textarea,
      h${r}
    `]=Aa(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},Pa=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},kt(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},Ha=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:zn[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),_a=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(r).mul(-1).equal(),marginBottom:`calc(1em - ${J(r)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},La=e=>({[`${e.componentCls}-copy-success`]:{"\n    &,\n    &:hover,\n    &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),Wa=()=>({"\n  a&-ellipsis,\n  span&-ellipsis\n  ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),Da=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n        div&,\n        p\n      ":{marginBottom:"1em"}},Ba(e)),{[`
      & + h1${t},
      & + h2${t},
      & + h3${t},
      & + h4${t},
      & + h5${t}
      `]:{marginTop:n},"\n      div,\n      ul,\n      li,\n      p,\n      h1,\n      h2,\n      h3,\n      h4,\n      h5":{"\n        + h1,\n        + h2,\n        + h3,\n        + h4,\n        + h5\n        ":{marginTop:n}}}),Ha(e)),Pa(e)),{[`
        ${t}-expand,
        ${t}-collapse,
        ${t}-edit,
        ${t}-copy
      `]:Object.assign(Object.assign({},kt(e)),{marginInlineStart:e.marginXXS})}),_a(e)),La(e)),Wa()),{"&-rtl":{direction:"rtl"}})}},Fa=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),pn=Ue("Typography",e=>[Da(e)],Fa),Va=e=>{const{prefixCls:t,"aria-label":n,className:r,style:a,direction:i,maxLength:s,autoSize:l=!0,value:c,onSave:d,onCancel:u,onEnd:p,component:f,enterIcon:S=o.createElement(Kn,null)}=e,b=o.useRef(null),m=o.useRef(!1),O=o.useRef(null),[v,$]=o.useState(c);o.useEffect(()=>{$(c)},[c]),o.useEffect(()=>{var A;if(!((A=b.current)===null||A===void 0)&&A.resizableTextArea){const{textArea:z}=b.current.resizableTextArea;z.focus();const{length:P}=z.value;z.setSelectionRange(P,P)}},[]);const h=A=>{let{target:z}=A;$(z.value.replace(/[\n\r]/g,""))},I=()=>{m.current=!0},E=()=>{m.current=!1},x=A=>{let{keyCode:z}=A;m.current||(O.current=z)},g=()=>{d(v.trim())},T=A=>{let{keyCode:z,ctrlKey:P,altKey:D,metaKey:L,shiftKey:H}=A;O.current!==z||m.current||P||D||L||H||(z===Bt.ENTER?(g(),p==null||p()):z===Bt.ESC&&u())},w=()=>{g()},[y,R,M]=pn(t),W=j(t,`${t}-edit-content`,{[`${t}-rtl`]:i==="rtl",[`${t}-${f}`]:!!f},r,R,M);return y(o.createElement("div",{className:W,style:a},o.createElement(Na,{ref:b,maxLength:s,value:v,onChange:h,onKeyDown:x,onKeyUp:T,onCompositionStart:I,onCompositionEnd:E,onBlur:w,"aria-label":n,rows:1,autoSize:l}),S!==null?Tn(S,{className:`${t}-edit-content-confirm`}):null))};var ht,Kt;function Ga(){return Kt||(Kt=1,ht=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(a){e.addRange(a)}),t&&t.focus()}}),ht}var yt,Ut;function qa(){if(Ut)return yt;Ut=1;var e=Ga(),t={"text/plain":"Text","text/html":"Url",default:"Text"},n="Copy to clipboard: #{key}, Enter";function r(i){var s=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return i.replace(/#{\s*key\s*}/g,s)}function a(i,s){var l,c,d,u,p,f,S=!1;s||(s={}),l=s.debug||!1;try{d=e(),u=document.createRange(),p=document.getSelection(),f=document.createElement("span"),f.textContent=i,f.ariaHidden="true",f.style.all="unset",f.style.position="fixed",f.style.top=0,f.style.clip="rect(0, 0, 0, 0)",f.style.whiteSpace="pre",f.style.webkitUserSelect="text",f.style.MozUserSelect="text",f.style.msUserSelect="text",f.style.userSelect="text",f.addEventListener("copy",function(m){if(m.stopPropagation(),s.format)if(m.preventDefault(),typeof m.clipboardData>"u"){l&&console.warn("unable to use e.clipboardData"),l&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var O=t[s.format]||t.default;window.clipboardData.setData(O,i)}else m.clipboardData.clearData(),m.clipboardData.setData(s.format,i);s.onCopy&&(m.preventDefault(),s.onCopy(m.clipboardData))}),document.body.appendChild(f),u.selectNodeContents(f),p.addRange(u);var b=document.execCommand("copy");if(!b)throw new Error("copy command was unsuccessful");S=!0}catch(m){l&&console.error("unable to copy using execCommand: ",m),l&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(s.format||"text",i),s.onCopy&&s.onCopy(window.clipboardData),S=!0}catch(O){l&&console.error("unable to copy using clipboardData: ",O),l&&console.error("falling back to prompt"),c=r("message"in s?s.message:n),window.prompt(c,i)}}finally{p&&(typeof p.removeRange=="function"?p.removeRange(u):p.removeAllRanges()),f&&document.body.removeChild(f),d()}return S}return yt=a,yt}var Ka=qa();const Ua=Nn(Ka);var Xa=function(e,t,n,r){function a(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function l(u){try{d(r.next(u))}catch(p){s(p)}}function c(u){try{d(r.throw(u))}catch(p){s(p)}}function d(u){u.done?i(u.value):a(u.value).then(l,c)}d((r=r.apply(e,t||[])).next())})};const Ya=e=>{let{copyConfig:t,children:n}=e;const[r,a]=o.useState(!1),[i,s]=o.useState(!1),l=o.useRef(null),c=()=>{l.current&&clearTimeout(l.current)},d={};t.format&&(d.format=t.format),o.useEffect(()=>c,[]);const u=Qt(p=>Xa(void 0,void 0,void 0,function*(){var f;p==null||p.preventDefault(),p==null||p.stopPropagation(),s(!0);try{const S=typeof t.text=="function"?yield t.text():t.text;Ua(S||Ma(n,!0).join("")||"",d),s(!1),a(!0),c(),l.current=setTimeout(()=>{a(!1)},3e3),(f=t.onCopy)===null||f===void 0||f.call(t,p)}catch(S){throw s(!1),S}}));return{copied:r,copyLoading:i,onClick:u}};function St(e,t){return o.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const Ja=e=>{const t=o.useRef(void 0);return o.useEffect(()=>{t.current=e}),t.current},Qa=(e,t,n)=>o.useMemo(()=>e===!0?{title:t??n}:o.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??n},e):{title:e},[e,t,n]);var Za=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const gn=o.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:a,rootClassName:i,setContentRef:s,children:l,direction:c,style:d}=e,u=Za(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:p,direction:f,typography:S}=o.useContext(be),b=c??f,m=s?en(t,s):t,O=p("typography",n),[v,$,h]=pn(O),I=j(O,S==null?void 0:S.className,{[`${O}-rtl`]:b==="rtl"},a,i,$,h),E=Object.assign(Object.assign({},S==null?void 0:S.style),d);return v(o.createElement(r,Object.assign({className:I,style:E,ref:m},u),l))});function Xt(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function $t(e,t,n){return e===!0||e===void 0?t:e||n&&t}function ka(e){const t=document.createElement("em");e.appendChild(t);const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}const Nt=e=>["string","number"].includes(typeof e),eo=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:a,tooltips:i,icon:s,tabIndex:l,onCopy:c,loading:d}=e;const u=Xt(i),p=Xt(s),{copied:f,copy:S}=r??{},b=n?f:S,m=$t(u[n?1:0],b),O=typeof m=="string"?m:b;return o.createElement(zt,{title:m},o.createElement("button",{type:"button",className:j(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:a}),onClick:c,"aria-label":O,tabIndex:l},n?$t(p[1],o.createElement(Hn,null),!0):$t(p[0],d?o.createElement(Mn,null):o.createElement(Wn,null),!0)))},Ze=o.forwardRef((e,t)=>{let{style:n,children:r}=e;const a=o.useRef(null);return o.useImperativeHandle(t,()=>({isExceed:()=>{const i=a.current;return i.scrollHeight>i.clientHeight},getHeight:()=>a.current.clientHeight})),o.createElement("span",{"aria-hidden":!0,ref:a,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},n)},r)}),to=e=>e.reduce((t,n)=>t+(Nt(n)?String(n).length:1),0);function Yt(e,t){let n=0;const r=[];for(let a=0;a<e.length;a+=1){if(n===t)return r;const i=e[a],l=Nt(i)?String(i).length:1,c=n+l;if(c>t){const d=t-n;return r.push(String(i).slice(0,d)),r}r.push(i),n=c}return e}const xt=0,Ct=1,Et=2,wt=3,Jt=4,ke={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function no(e){const{enableMeasure:t,width:n,text:r,children:a,rows:i,expanded:s,miscDeps:l,onEllipsis:c}=e,d=o.useMemo(()=>tn(r),[r]),u=o.useMemo(()=>to(d),[r]),p=o.useMemo(()=>a(d,!1),[r]),[f,S]=o.useState(null),b=o.useRef(null),m=o.useRef(null),O=o.useRef(null),v=o.useRef(null),$=o.useRef(null),[h,I]=o.useState(!1),[E,x]=o.useState(xt),[g,T]=o.useState(0),[w,y]=o.useState(null);we(()=>{x(t&&n&&u?Ct:xt)},[n,r,i,t,d]),we(()=>{var A,z,P,D;if(E===Ct){x(Et);const L=m.current&&getComputedStyle(m.current).whiteSpace;y(L)}else if(E===Et){const L=!!(!((A=O.current)===null||A===void 0)&&A.isExceed());x(L?wt:Jt),S(L?[0,u]:null),I(L);const H=((z=O.current)===null||z===void 0?void 0:z.getHeight())||0,q=i===1?0:((P=v.current)===null||P===void 0?void 0:P.getHeight())||0,Q=((D=$.current)===null||D===void 0?void 0:D.getHeight())||0,X=Math.max(H,q+Q);T(X+1),c(L)}},[E]);const R=f?Math.ceil((f[0]+f[1])/2):0;we(()=>{var A;const[z,P]=f||[0,0];if(z!==P){const L=(((A=b.current)===null||A===void 0?void 0:A.getHeight())||0)>g;let H=R;P-z===1&&(H=L?z:P),S(L?[z,H]:[H,P])}},[f,R]);const M=o.useMemo(()=>{if(!t)return a(d,!1);if(E!==wt||!f||f[0]!==f[1]){const A=a(d,!1);return[Jt,xt].includes(E)?A:o.createElement("span",{style:Object.assign(Object.assign({},ke),{WebkitLineClamp:i})},A)}return a(s?d:Yt(d,f[0]),h)},[s,E,f,d].concat(It(l))),W={width:n,margin:0,padding:0,whiteSpace:w==="nowrap"?"normal":"inherit"};return o.createElement(o.Fragment,null,M,E===Et&&o.createElement(o.Fragment,null,o.createElement(Ze,{style:Object.assign(Object.assign(Object.assign({},W),ke),{WebkitLineClamp:i}),ref:O},p),o.createElement(Ze,{style:Object.assign(Object.assign(Object.assign({},W),ke),{WebkitLineClamp:i-1}),ref:v},p),o.createElement(Ze,{style:Object.assign(Object.assign(Object.assign({},W),ke),{WebkitLineClamp:1}),ref:$},a([],!0))),E===wt&&f&&f[0]!==f[1]&&o.createElement(Ze,{style:Object.assign(Object.assign({},W),{top:400}),ref:b},a(Yt(d,R),!0)),E===Ct&&o.createElement("span",{style:{whiteSpace:"inherit"},ref:m}))}const ro=e=>{let{enableEllipsis:t,isEllipsis:n,children:r,tooltipProps:a}=e;return!(a!=null&&a.title)||!t?r:o.createElement(zt,Object.assign({open:n?void 0:!1},a),r)};var ao=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};function oo(e,t){let{mark:n,code:r,underline:a,delete:i,strong:s,keyboard:l,italic:c}=e,d=t;function u(p,f){f&&(d=o.createElement(p,{},d))}return u("strong",s),u("u",a),u("del",i),u("code",r),u("mark",n),u("kbd",l),u("i",c),d}const io="...",st=o.forwardRef((e,t)=>{var n;const{prefixCls:r,className:a,style:i,type:s,disabled:l,children:c,ellipsis:d,editable:u,copyable:p,component:f,title:S}=e,b=ao(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:m,direction:O}=o.useContext(be),[v]=An("Text"),$=o.useRef(null),h=o.useRef(null),I=m("typography",r),E=Ye(b,["mark","code","delete","underline","strong","keyboard","italic"]),[x,g]=St(u),[T,w]=et(!1,{value:g.editing}),{triggerType:y=["icon"]}=g,R=C=>{var B;C&&((B=g.onStart)===null||B===void 0||B.call(g)),w(C)},M=Ja(T);we(()=>{var C;!T&&M&&((C=h.current)===null||C===void 0||C.focus())},[T]);const W=C=>{C==null||C.preventDefault(),R(!0)},A=C=>{var B;(B=g.onChange)===null||B===void 0||B.call(g,C),R(!1)},z=()=>{var C;(C=g.onCancel)===null||C===void 0||C.call(g),R(!1)},[P,D]=St(p),{copied:L,copyLoading:H,onClick:q}=Ya({copyConfig:D,children:c}),[Q,X]=o.useState(!1),[Z,K]=o.useState(!1),[he,ue]=o.useState(!1),[ye,me]=o.useState(!1),[Se,ie]=o.useState(!0),[re,k]=St(d,{expandable:!1,symbol:C=>C?v==null?void 0:v.collapse:v==null?void 0:v.expand}),[ae,xe]=et(k.defaultExpanded||!1,{value:k.expanded}),Y=re&&(!ae||k.expandable==="collapsible"),{rows:V=1}=k,ve=o.useMemo(()=>Y&&(k.suffix!==void 0||k.onEllipsis||k.expandable||x||P),[Y,k,x,P]);we(()=>{re&&!ve&&(X(Pt("webkitLineClamp")),K(Pt("textOverflow")))},[ve,re]);const[te,ze]=o.useState(Y),Te=o.useMemo(()=>ve?!1:V===1?Z:Q,[ve,Z,Q]);we(()=>{ze(Te&&Y)},[Te,Y]);const Ne=Y&&(te?ye:he),Le=Y&&V===1&&te,Ee=Y&&V>1&&te,Me=(C,B)=>{var ce;xe(B.expanded),(ce=k.onExpand)===null||ce===void 0||ce.call(k,C,B)},[Re,fe]=o.useState(0),Ae=C=>{let{offsetWidth:B}=C;fe(B)},We=C=>{var B;ue(C),he!==C&&((B=k.onEllipsis)===null||B===void 0||B.call(k,C))};o.useEffect(()=>{const C=$.current;if(re&&te&&C){const B=ka(C);ye!==B&&me(B)}},[re,te,c,Ee,Se,Re]),o.useEffect(()=>{const C=$.current;if(typeof IntersectionObserver>"u"||!C||!te||!Y)return;const B=new IntersectionObserver(()=>{ie(!!C.offsetParent)});return B.observe(C),()=>{B.disconnect()}},[te,Y]);const se=Qa(k.tooltip,g.text,c),le=o.useMemo(()=>{if(!(!re||te))return[g.text,c,S,se.title].find(Nt)},[re,te,S,se.title,Ne]);if(T)return o.createElement(Va,{value:(n=g.text)!==null&&n!==void 0?n:typeof c=="string"?c:"",onSave:A,onCancel:z,onEnd:g.onEnd,prefixCls:I,className:a,style:i,direction:O,component:f,maxLength:g.maxLength,autoSize:g.autoSize,enterIcon:g.enterIcon});const Ie=()=>{const{expandable:C,symbol:B}=k;return C?o.createElement("button",{type:"button",key:"expand",className:`${I}-${ae?"collapse":"expand"}`,onClick:ce=>Me(ce,{expanded:!ae}),"aria-label":ae?v.collapse:v==null?void 0:v.expand},typeof B=="function"?B(ae):B):null},De=()=>{if(!x)return;const{icon:C,tooltip:B,tabIndex:ce}=g,Be=tn(B)[0]||(v==null?void 0:v.edit),Qe=typeof Be=="string"?Be:"";return y.includes("icon")?o.createElement(zt,{key:"edit",title:B===!1?"":Be},o.createElement("button",{type:"button",ref:h,className:`${I}-edit`,onClick:W,"aria-label":Qe,tabIndex:ce},C||o.createElement(Vn,{role:"button"}))):null},G=()=>P?o.createElement(eo,Object.assign({key:"copy"},D,{prefixCls:I,copied:L,locale:v,onCopy:q,loading:H,iconOnly:c==null})):null,_=C=>[C&&Ie(),De(),G()],pe=C=>[C&&!ae&&o.createElement("span",{"aria-hidden":!0,key:"ellipsis"},io),k.suffix,_(C)];return o.createElement(rt,{onResize:Ae,disabled:!Y},C=>o.createElement(ro,{tooltipProps:se,enableEllipsis:Y,isEllipsis:Ne},o.createElement(gn,Object.assign({className:j({[`${I}-${s}`]:s,[`${I}-disabled`]:l,[`${I}-ellipsis`]:re,[`${I}-ellipsis-single-line`]:Le,[`${I}-ellipsis-multiple-line`]:Ee},a),prefixCls:r,style:Object.assign(Object.assign({},i),{WebkitLineClamp:Ee?V:void 0}),component:f,ref:en(C,$,t),direction:O,onClick:y.includes("text")?W:void 0,"aria-label":le==null?void 0:le.toString(),title:S},E),o.createElement(no,{enableMeasure:Y&&!te,text:c,rows:V,width:Re,onEllipsis:We,expanded:ae,miscDeps:[L,ae,H,x,P,v]},(B,ce)=>oo(e,o.createElement(o.Fragment,null,B.length>0&&ce&&!ae&&le?o.createElement("span",{key:"show-content","aria-hidden":!0},B):B,pe(ce)))))))});var so=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const lo=o.forwardRef((e,t)=>{var{ellipsis:n,rel:r}=e,a=so(e,["ellipsis","rel"]);const i=Object.assign(Object.assign({},a),{rel:r===void 0&&a.target==="_blank"?"noopener noreferrer":r});return delete i.navigate,o.createElement(st,Object.assign({},i,{ref:t,ellipsis:!!n,component:"a"}))}),co=o.forwardRef((e,t)=>o.createElement(st,Object.assign({ref:t},e,{component:"div"})));var uo=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const fo=(e,t)=>{var{ellipsis:n}=e,r=uo(e,["ellipsis"]);const a=o.useMemo(()=>n&&typeof n=="object"?Ye(n,["expandable","rows"]):n,[n]);return o.createElement(st,Object.assign({ref:t},r,{ellipsis:a,component:"span"}))},po=o.forwardRef(fo);var go=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const mo=[1,2,3,4,5],vo=o.forwardRef((e,t)=>{const{level:n=1}=e,r=go(e,["level"]),a=mo.includes(n)?`h${n}`:"h1";return o.createElement(st,Object.assign({ref:t},r,{component:a}))}),lt=gn;lt.Text=po;lt.Link=lo;lt.Title=vo;lt.Paragraph=co;export{Xr as A,ya as B,yo as C,Zr as D,ta as E,it as F,ea as G,ra as H,aa as I,kr as J,na as K,lo as L,co as P,So as R,Je as S,lt as T,ho as a,Xn as b,Yn as c,Un as d,vo as e,po as f,Yr as g,Jr as h,Pt as i,un as j,sn as k,Tt as l,dn as m,Vr as n,Hn as o,zr as p,Gr as q,Ke as r,Jn as s,$a as t,qr as u,ha as v,qt as w,fa as x,xa as y,Na as z};
