import{de as Xt,p as se,r as a,l as je,cr as qt,df as Yt,av as Pe,aw as He,m as tt,k as J,i as Ct,cX as Zt,j as $t,aU as Jt,R as T,b as le,h as nt,g as pe,f as Te,a as ce,d as Le,_ as he,e as rt,O as Et,o as Qt,bu as kt,ar as wt,cl as en,n as Ot,aq as Rt,ap as It,bp as ot,dg as st,u as ct,aC as tn,c4 as dt,aQ as _e,dh as nn,U as rn,a$ as on,ck as an,a3 as at,aO as ln,W as Tt,cz as Re,au as sn,bG as cn,X as jt,aK as ut,di as dn}from"./index-c51caa49.js";const zt=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}});var Bt=function(t){if(Xt()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(o){return o in r.style})}return!1},un=function(t,n){if(!Bt(t))return!1;var r=document.createElement("div"),o=r.style[t];return r.style[t]=n,r.style[t]!==o};function ft(e,t){return!Array.isArray(e)&&t!==void 0?un(e,t):Bt(e)}function ke(e,t,n){return se({[`${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 At=(e,t)=>t||e,fn=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,o;const{variant:i,[e]:l}=a.useContext(je),s=a.useContext(qt),u=l==null?void 0:l.variant;let d;typeof t<"u"?d=t:n===!1?d="borderless":d=(o=(r=s??u)!==null&&r!==void 0?r:i)!==null&&o!==void 0?o:"outlined";const c=Yt.includes(d);return[d,c]},_t=fn;var pn={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"};const gn=pn;var mn=function(t,n){return a.createElement(Pe,He({},t,{ref:n,icon:gn}))},vn=a.forwardRef(mn);const bn=vn;function hn(e){return tt(e,{inputAffixPadding:e.paddingXXS})}const yn=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:l,fontSizeLG:s,lineHeightLG:u,paddingSM:d,controlPaddingHorizontalSM:c,controlPaddingHorizontal:f,colorFillAlter:p,colorPrimaryHover:C,colorPrimary:O,controlOutlineWidth:I,controlOutline:N,colorErrorOutline:$,colorWarningOutline:E,colorBgContainer:m}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((i-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((l-s*u)/2*10)/10-o,paddingInline:d-o,paddingInlineSM:c-o,paddingInlineLG:f-o,addonBg:p,activeBorderColor:O,hoverBorderColor:C,activeShadow:`0 0 0 ${I}px ${N}`,errorActiveShadow:`0 0 0 ${I}px ${$}`,warningActiveShadow:`0 0 0 ${I}px ${E}`,hoverBg:m,activeBg:m,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},xn=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),it=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({},xn(tt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Nt=(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}}),pt=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Nt(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),Sn=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Nt(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},it(e))}),pt(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),pt(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),gt=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Cn=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}}},gt(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),gt(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},it(e))}})}),$n=(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},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},Pt=(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}}),mt=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Pt(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),En=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Pt(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},it(e))}),mt(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),mt(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),vt=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),wn=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}`}}}},vt(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),vt(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}`}}}})}),On=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Ht=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${J(t)} ${J(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},Lt=e=>({padding:`${J(e.paddingBlockSM)} ${J(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Mt=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}`},On(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({},Ht(e)),"&-sm":Object.assign({},Lt(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),Rn=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({},Ht(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Lt(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"},Jt()),{[`${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}}}})}},In=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,i=16,l=o(n).sub(o(r).mul(2)).sub(i).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},$t(e)),Mt(e)),Sn(e)),En(e)),$n(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:l,paddingBottom:l}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},Tn=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${J(e.inputAffixPadding)}`}}}},jn=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:l,iconCls:s}=e,u=`${t}-affix-wrapper`,d=`${t}-affix-wrapper-disabled`;return{[u]:Object.assign(Object.assign(Object.assign(Object.assign({},Mt(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}}}),Tn(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:l}}}),[d]:{[`${s}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},zn=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},$t(e)),Rn(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}}},Cn(e)),wn(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}}})})}},Bn=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{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,paddingTop:0,paddingBottom:0,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 ${r}-button`]:{height:e.controlHeightLG},[`&-small ${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}}}}},An=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}}}}}},_n=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Dt=Ct("Input",e=>{const t=tt(e,hn(e));return[In(t),An(t),jn(t),zn(t),Bn(t),_n(t),Zt(t)]},yn,{resetFont:!1});function Nn(e){return!!(e.addonBefore||e.addonAfter)}function Pn(e){return!!(e.prefix||e.suffix||e.allowClear)}function bt(e,t,n){var r=t.cloneNode(!0),o=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)},o}function Ne(e,t,n,r){if(n){var o=t;if(t.type==="click"){o=bt(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=bt(t,e,r),n(o);return}n(o)}}function Hn(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var o=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var Wt=T.forwardRef(function(e,t){var n,r,o=e.inputElement,i=e.children,l=e.prefixCls,s=e.prefix,u=e.suffix,d=e.addonBefore,c=e.addonAfter,f=e.className,p=e.style,C=e.disabled,O=e.readOnly,I=e.focused,N=e.triggerFocus,$=e.allowClear,E=e.value,m=e.handleReset,P=e.hidden,v=e.classes,g=e.classNames,S=e.dataAttrs,b=e.styles,x=e.components,X=e.onClear,z=i??o,B=(x==null?void 0:x.affixWrapper)||"span",F=(x==null?void 0:x.groupWrapper)||"span",R=(x==null?void 0:x.wrapper)||"span",w=(x==null?void 0:x.groupAddon)||"span",y=a.useRef(null),D=function(ae){var Q;(Q=y.current)!==null&&Q!==void 0&&Q.contains(ae.target)&&(N==null||N())},_=Pn(e),L=a.cloneElement(z,{value:E,className:le(z.props.className,!_&&(g==null?void 0:g.variant))||null}),ee=a.useRef(null);if(T.useImperativeHandle(t,function(){return{nativeElement:ee.current||y.current}}),_){var V=null;if($){var q=!C&&!O&&E,M="".concat(l,"-clear-icon"),Y=nt($)==="object"&&$!==null&&$!==void 0&&$.clearIcon?$.clearIcon:"✖";V=T.createElement("span",{onClick:function(ae){m==null||m(ae),X==null||X()},onMouseDown:function(ae){return ae.preventDefault()},className:le(M,pe(pe({},"".concat(M,"-hidden"),!q),"".concat(M,"-has-suffix"),!!u)),role:"button",tabIndex:-1},Y)}var te="".concat(l,"-affix-wrapper"),ue=le(te,pe(pe(pe(pe(pe({},"".concat(l,"-disabled"),C),"".concat(te,"-disabled"),C),"".concat(te,"-focused"),I),"".concat(te,"-readonly"),O),"".concat(te,"-input-with-clear-btn"),u&&$&&E),v==null?void 0:v.affixWrapper,g==null?void 0:g.affixWrapper,g==null?void 0:g.variant),ge=(u||$)&&T.createElement("span",{className:le("".concat(l,"-suffix"),g==null?void 0:g.suffix),style:b==null?void 0:b.suffix},V,u);L=T.createElement(B,Te({className:ue,style:b==null?void 0:b.affixWrapper,onClick:D},S==null?void 0:S.affixWrapper,{ref:y}),s&&T.createElement("span",{className:le("".concat(l,"-prefix"),g==null?void 0:g.prefix),style:b==null?void 0:b.prefix},s),L,ge)}if(Nn(e)){var G="".concat(l,"-group"),ie="".concat(G,"-addon"),ne="".concat(G,"-wrapper"),oe=le("".concat(l,"-wrapper"),G,v==null?void 0:v.wrapper,g==null?void 0:g.wrapper),K=le(ne,pe({},"".concat(ne,"-disabled"),C),v==null?void 0:v.group,g==null?void 0:g.groupWrapper);L=T.createElement(F,{className:K,ref:ee},T.createElement(R,{className:oe},d&&T.createElement(w,{className:ie},d),L,c&&T.createElement(w,{className:ie},c)))}return T.cloneElement(L,{className:le((n=L.props)===null||n===void 0?void 0:n.className,f)||null,style:ce(ce({},(r=L.props)===null||r===void 0?void 0:r.style),p),hidden:P})}),Ln=["show"];function Ft(e,t){return a.useMemo(function(){var n={};t&&(n.show=nt(t)==="object"&&t.formatter?t.formatter:!!t),n=ce(ce({},n),e);var r=n,o=r.show,i=Le(r,Ln);return ce(ce({},i),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:i.strategy||function(l){return l.length}})},[e,t])}var Mn=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],Dn=a.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,i=e.onBlur,l=e.onPressEnter,s=e.onKeyDown,u=e.onKeyUp,d=e.prefixCls,c=d===void 0?"rc-input":d,f=e.disabled,p=e.htmlSize,C=e.className,O=e.maxLength,I=e.suffix,N=e.showCount,$=e.count,E=e.type,m=E===void 0?"text":E,P=e.classes,v=e.classNames,g=e.styles,S=e.onCompositionStart,b=e.onCompositionEnd,x=Le(e,Mn),X=a.useState(!1),z=he(X,2),B=z[0],F=z[1],R=a.useRef(!1),w=a.useRef(!1),y=a.useRef(null),D=a.useRef(null),_=function(j){y.current&&Hn(y.current,j)},L=rt(e.defaultValue,{value:e.value}),ee=he(L,2),V=ee[0],q=ee[1],M=V==null?"":String(V),Y=a.useState(null),te=he(Y,2),ue=te[0],ge=te[1],G=Ft($,N),ie=G.max||O,ne=G.strategy(M),oe=!!ie&&ne>ie;a.useImperativeHandle(t,function(){var W;return{focus:_,blur:function(){var Z;(Z=y.current)===null||Z===void 0||Z.blur()},setSelectionRange:function(Z,$e,ye){var ve;(ve=y.current)===null||ve===void 0||ve.setSelectionRange(Z,$e,ye)},select:function(){var Z;(Z=y.current)===null||Z===void 0||Z.select()},input:y.current,nativeElement:((W=D.current)===null||W===void 0?void 0:W.nativeElement)||y.current}}),a.useEffect(function(){F(function(W){return W&&f?!1:W})},[f]);var K=function(j,Z,$e){var ye=Z;if(!R.current&&G.exceedFormatter&&G.max&&G.strategy(Z)>G.max){if(ye=G.exceedFormatter(Z,{max:G.max}),Z!==ye){var ve,be;ge([((ve=y.current)===null||ve===void 0?void 0:ve.selectionStart)||0,((be=y.current)===null||be===void 0?void 0:be.selectionEnd)||0])}}else if($e.source==="compositionEnd")return;q(ye),y.current&&Ne(y.current,j,r,ye)};a.useEffect(function(){if(ue){var W;(W=y.current)===null||W===void 0||W.setSelectionRange.apply(W,Et(ue))}},[ue]);var U=function(j){K(j,j.target.value,{source:"change"})},ae=function(j){R.current=!1,K(j,j.currentTarget.value,{source:"compositionEnd"}),b==null||b(j)},Q=function(j){l&&j.key==="Enter"&&!w.current&&(w.current=!0,l(j)),s==null||s(j)},re=function(j){j.key==="Enter"&&(w.current=!1),u==null||u(j)},me=function(j){F(!0),o==null||o(j)},de=function(j){F(!1),i==null||i(j)},Ee=function(j){q(""),_(),y.current&&Ne(y.current,j,r)},Oe=oe&&"".concat(c,"-out-of-range"),we=function(){var j=Qt(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return T.createElement("input",Te({autoComplete:n},j,{onChange:U,onFocus:me,onBlur:de,onKeyDown:Q,onKeyUp:re,className:le(c,pe({},"".concat(c,"-disabled"),f),v==null?void 0:v.input),style:g==null?void 0:g.input,ref:y,size:p,type:m,onCompositionStart:function($e){R.current=!0,S==null||S($e)},onCompositionEnd:ae}))},Ie=function(){var j=Number(ie)>0;if(I||G.show){var Z=G.showFormatter?G.showFormatter({value:M,count:ne,maxLength:ie}):"".concat(ne).concat(j?" / ".concat(ie):"");return T.createElement(T.Fragment,null,G.show&&T.createElement("span",{className:le("".concat(c,"-show-count-suffix"),pe({},"".concat(c,"-show-count-has-suffix"),!!I),v==null?void 0:v.count),style:ce({},g==null?void 0:g.count)},Z),I)}return null};return T.createElement(Wt,Te({},x,{prefixCls:c,className:le(C,Oe),handleReset:Ee,value:M,focused:B,triggerFocus:_,suffix:Ie(),disabled:f,classes:P,classNames:v,styles:g}),we())});const Wn=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:T.createElement(kt,null)}),t},Vt=Wn;function Fn(e,t){const n=a.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,i,l,s;!((o=e.current)===null||o===void 0)&&o.input&&((i=e.current)===null||i===void 0?void 0:i.input.getAttribute("type"))==="password"&&(!((l=e.current)===null||l===void 0)&&l.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return a.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function Vn(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var Kn=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Un(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}const Gn=a.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,status:i,size:l,disabled:s,onBlur:u,onFocus:d,suffix:c,allowClear:f,addonAfter:p,addonBefore:C,className:O,style:I,styles:N,rootClassName:$,onChange:E,classNames:m,variant:P}=e,v=Kn(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:g,direction:S,input:b}=T.useContext(je),x=g("input",r),X=a.useRef(null),z=wt(x),[B,F,R]=Dt(x,z),{compactSize:w,compactItemClassnames:y}=en(x,S),D=Ot(U=>{var ae;return(ae=l??w)!==null&&ae!==void 0?ae:U}),_=T.useContext(Rt),L=s??_,{status:ee,hasFeedback:V,feedbackIcon:q}=a.useContext(It),M=At(ee,i),Y=Vn(e)||!!V;a.useRef(Y);const te=Fn(X,!0),ue=U=>{te(),u==null||u(U)},ge=U=>{te(),d==null||d(U)},G=U=>{te(),E==null||E(U)},ie=(V||c)&&T.createElement(T.Fragment,null,c,V&&q),ne=Vt(f??(b==null?void 0:b.allowClear)),[oe,K]=_t("input",P,o);return B(T.createElement(Dn,Object.assign({ref:ot(t,X),prefixCls:x,autoComplete:b==null?void 0:b.autoComplete},v,{disabled:L,onBlur:ue,onFocus:ge,style:Object.assign(Object.assign({},b==null?void 0:b.style),I),styles:Object.assign(Object.assign({},b==null?void 0:b.styles),N),suffix:ie,allowClear:ne,className:se(O,$,R,z,y,b==null?void 0:b.className),onChange:G,addonBefore:C&&T.createElement(st,{form:!0,space:!0},C),addonAfter:p&&T.createElement(st,{form:!0,space:!0},p),classNames:Object.assign(Object.assign(Object.assign({},m),b==null?void 0:b.classNames),{input:se({[`${x}-sm`]:D==="small",[`${x}-lg`]:D==="large",[`${x}-rtl`]:S==="rtl"},m==null?void 0:m.input,(n=b==null?void 0:b.classNames)===null||n===void 0?void 0:n.input,F),variant:se({[`${x}-${oe}`]:K},ke(x,M)),affixWrapper:se({[`${x}-affix-wrapper-sm`]:D==="small",[`${x}-affix-wrapper-lg`]:D==="large",[`${x}-affix-wrapper-rtl`]:S==="rtl"},F),wrapper:se({[`${x}-group-rtl`]:S==="rtl"},F),groupWrapper:se({[`${x}-group-wrapper-sm`]:D==="small",[`${x}-group-wrapper-lg`]:D==="large",[`${x}-group-wrapper-rtl`]:S==="rtl",[`${x}-group-wrapper-${oe}`]:K},ke(`${x}-group-wrapper`,M,V),F)})})))}),So=Gn;var Xn=`
  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;
`,qn=["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"],Ve={},fe;function Yn(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&&Ve[n])return Ve[n];var r=window.getComputedStyle(e),o=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")),l=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=qn.map(function(d){return"".concat(d,":").concat(r.getPropertyValue(d))}).join(";"),u={sizingStyle:s,paddingSize:i,borderSize:l,boxSizing:o};return t&&n&&(Ve[n]=u),u}function Zn(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;fe||(fe=document.createElement("textarea"),fe.setAttribute("tab-index","-1"),fe.setAttribute("aria-hidden","true"),fe.setAttribute("name","hiddenTextarea"),document.body.appendChild(fe)),e.getAttribute("wrap")?fe.setAttribute("wrap",e.getAttribute("wrap")):fe.removeAttribute("wrap");var o=Yn(e,t),i=o.paddingSize,l=o.borderSize,s=o.boxSizing,u=o.sizingStyle;fe.setAttribute("style","".concat(u,";").concat(Xn)),fe.value=e.value||e.placeholder||"";var d=void 0,c=void 0,f,p=fe.scrollHeight;if(s==="border-box"?p+=l:s==="content-box"&&(p-=i),n!==null||r!==null){fe.value=" ";var C=fe.scrollHeight-i;n!==null&&(d=C*n,s==="border-box"&&(d=d+i+l),p=Math.max(d,p)),r!==null&&(c=C*r,s==="border-box"&&(c=c+i+l),f=p>c?"":"hidden",p=Math.min(c,p))}var O={height:p,overflowY:f,resize:"none"};return d&&(O.minHeight=d),c&&(O.maxHeight=c),O}var Jn=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ke=0,Ue=1,Ge=2,Qn=a.forwardRef(function(e,t){var n=e,r=n.prefixCls,o=n.defaultValue,i=n.value,l=n.autoSize,s=n.onResize,u=n.className,d=n.style,c=n.disabled,f=n.onChange;n.onInternalAutoSize;var p=Le(n,Jn),C=rt(o,{value:i,postState:function(Y){return Y??""}}),O=he(C,2),I=O[0],N=O[1],$=function(Y){N(Y.target.value),f==null||f(Y)},E=a.useRef();a.useImperativeHandle(t,function(){return{textArea:E.current}});var m=a.useMemo(function(){return l&&nt(l)==="object"?[l.minRows,l.maxRows]:[]},[l]),P=he(m,2),v=P[0],g=P[1],S=!!l,b=function(){try{if(document.activeElement===E.current){var Y=E.current,te=Y.selectionStart,ue=Y.selectionEnd,ge=Y.scrollTop;E.current.setSelectionRange(te,ue),E.current.scrollTop=ge}}catch{}},x=a.useState(Ge),X=he(x,2),z=X[0],B=X[1],F=a.useState(),R=he(F,2),w=R[0],y=R[1],D=function(){B(Ke)};ct(function(){S&&D()},[i,v,g,S]),ct(function(){if(z===Ke)B(Ue);else if(z===Ue){var M=Zn(E.current,!1,v,g);B(Ge),y(M)}else b()},[z]);var _=a.useRef(),L=function(){dt.cancel(_.current)},ee=function(Y){z===Ge&&(s==null||s(Y),l&&(L(),_.current=dt(function(){D()})))};a.useEffect(function(){return L},[]);var V=S?w:null,q=ce(ce({},d),V);return(z===Ke||z===Ue)&&(q.overflowY="hidden",q.overflowX="hidden"),a.createElement(tn,{onResize:ee,disabled:!(l||s)},a.createElement("textarea",Te({},p,{ref:E,style:q,className:le(r,u,pe({},"".concat(r,"-disabled"),c)),disabled:c,value:I,onChange:$})))}),kn=["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"],er=T.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,i=e.onFocus,l=e.onBlur,s=e.onChange,u=e.allowClear,d=e.maxLength,c=e.onCompositionStart,f=e.onCompositionEnd,p=e.suffix,C=e.prefixCls,O=C===void 0?"rc-textarea":C,I=e.showCount,N=e.count,$=e.className,E=e.style,m=e.disabled,P=e.hidden,v=e.classNames,g=e.styles,S=e.onResize,b=e.onClear,x=e.onPressEnter,X=e.readOnly,z=e.autoSize,B=e.onKeyDown,F=Le(e,kn),R=rt(r,{value:o,defaultValue:r}),w=he(R,2),y=w[0],D=w[1],_=y==null?"":String(y),L=T.useState(!1),ee=he(L,2),V=ee[0],q=ee[1],M=T.useRef(!1),Y=T.useState(null),te=he(Y,2),ue=te[0],ge=te[1],G=a.useRef(null),ie=a.useRef(null),ne=function(){var H;return(H=ie.current)===null||H===void 0?void 0:H.textArea},oe=function(){ne().focus()};a.useImperativeHandle(t,function(){var k;return{resizableTextArea:ie.current,focus:oe,blur:function(){ne().blur()},nativeElement:((k=G.current)===null||k===void 0?void 0:k.nativeElement)||ne()}}),a.useEffect(function(){q(function(k){return!m&&k})},[m]);var K=T.useState(null),U=he(K,2),ae=U[0],Q=U[1];T.useEffect(function(){if(ae){var k;(k=ne()).setSelectionRange.apply(k,Et(ae))}},[ae]);var re=Ft(N,I),me=(n=re.max)!==null&&n!==void 0?n:d,de=Number(me)>0,Ee=re.strategy(_),Oe=!!me&&Ee>me,we=function(H,Se){var h=Se;!M.current&&re.exceedFormatter&&re.max&&re.strategy(Se)>re.max&&(h=re.exceedFormatter(Se,{max:re.max}),Se!==h&&Q([ne().selectionStart||0,ne().selectionEnd||0])),D(h),Ne(H.currentTarget,H,s,h)},Ie=function(H){M.current=!0,c==null||c(H)},W=function(H){M.current=!1,we(H,H.currentTarget.value),f==null||f(H)},j=function(H){we(H,H.target.value)},Z=function(H){H.key==="Enter"&&x&&x(H),B==null||B(H)},$e=function(H){q(!0),i==null||i(H)},ye=function(H){q(!1),l==null||l(H)},ve=function(H){D(""),oe(),Ne(ne(),H,s)},be=p,xe;re.show&&(re.showFormatter?xe=re.showFormatter({value:_,count:Ee,maxLength:me}):xe="".concat(Ee).concat(de?" / ".concat(me):""),be=T.createElement(T.Fragment,null,be,T.createElement("span",{className:le("".concat(O,"-data-count"),v==null?void 0:v.count),style:g==null?void 0:g.count},xe)));var De=function(H){var Se;S==null||S(H),(Se=ne())!==null&&Se!==void 0&&Se.style.height&&ge(!0)},We=!z&&!I&&!u;return T.createElement(Wt,{ref:G,value:_,allowClear:u,handleReset:ve,suffix:be,prefixCls:O,classNames:ce(ce({},v),{},{affixWrapper:le(v==null?void 0:v.affixWrapper,pe(pe({},"".concat(O,"-show-count"),I),"".concat(O,"-textarea-allow-clear"),u))}),disabled:m,focused:V,className:le($,Oe&&"".concat(O,"-out-of-range")),style:ce(ce({},E),ue&&!We?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof xe=="string"?xe:void 0}},hidden:P,readOnly:X,onClear:b},T.createElement(Qn,Te({},F,{autoSize:z,maxLength:d,onKeyDown:Z,onChange:j,onFocus:$e,onBlur:ye,onCompositionStart:Ie,onCompositionEnd:W,className:le(v==null?void 0:v.textarea),style:ce(ce({},g==null?void 0:g.textarea),{},{resize:E==null?void 0:E.resize}),disabled:m,prefixCls:O,onResize:De,ref:ie,readOnly:X})))}),tr=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const nr=a.forwardRef((e,t)=>{var n,r;const{prefixCls:o,bordered:i=!0,size:l,disabled:s,status:u,allowClear:d,classNames:c,rootClassName:f,className:p,style:C,styles:O,variant:I}=e,N=tr(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:$,direction:E,textArea:m}=a.useContext(je),P=Ot(l),v=a.useContext(Rt),g=s??v,{status:S,hasFeedback:b,feedbackIcon:x}=a.useContext(It),X=At(S,u),z=a.useRef(null);a.useImperativeHandle(t,()=>{var ee;return{resizableTextArea:(ee=z.current)===null||ee===void 0?void 0:ee.resizableTextArea,focus:V=>{var q,M;Un((M=(q=z.current)===null||q===void 0?void 0:q.resizableTextArea)===null||M===void 0?void 0:M.textArea,V)},blur:()=>{var V;return(V=z.current)===null||V===void 0?void 0:V.blur()}}});const B=$("input",o),F=wt(B),[R,w,y]=Dt(B,F),[D,_]=_t("textArea",I,i),L=Vt(d??(m==null?void 0:m.allowClear));return R(a.createElement(er,Object.assign({autoComplete:m==null?void 0:m.autoComplete},N,{style:Object.assign(Object.assign({},m==null?void 0:m.style),C),styles:Object.assign(Object.assign({},m==null?void 0:m.styles),O),disabled:g,allowClear:L,className:se(y,F,p,f,m==null?void 0:m.className),classNames:Object.assign(Object.assign(Object.assign({},c),m==null?void 0:m.classNames),{textarea:se({[`${B}-sm`]:P==="small",[`${B}-lg`]:P==="large"},w,c==null?void 0:c.textarea,(n=m==null?void 0:m.classNames)===null||n===void 0?void 0:n.textarea),variant:se({[`${B}-${D}`]:_},ke(B,X)),affixWrapper:se(`${B}-textarea-affix-wrapper`,{[`${B}-affix-wrapper-rtl`]:E==="rtl",[`${B}-affix-wrapper-sm`]:P==="small",[`${B}-affix-wrapper-lg`]:P==="large",[`${B}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},w)}),prefixCls:B,suffix:b&&a.createElement("span",{className:`${B}-textarea-suffix`},x),ref:z})))}),rr=nr;function or(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)&&e==null?[]:Array.isArray(e)?e:[e]}var ar={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"};const ir=ar;var lr=function(t,n){return a.createElement(Pe,He({},t,{ref:n,icon:ir}))},sr=a.forwardRef(lr);const cr=sr;var dr={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"};const ur=dr;var fr=function(t,n){return a.createElement(Pe,He({},t,{ref:n,icon:ur}))},pr=a.forwardRef(fr);const gr=pr;var mr={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"};const vr=mr;var br=function(t,n){return a.createElement(Pe,He({},t,{ref:n,icon:vr}))},hr=a.forwardRef(br);const yr=hr;var xr=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Sr={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-flex"},Cr=a.forwardRef((e,t)=>{const n=c=>{const{keyCode:f}=c;f===_e.ENTER&&c.preventDefault()},r=c=>{const{keyCode:f}=c,{onClick:p}=e;f===_e.ENTER&&p&&p()},{style:o,noStyle:i,disabled:l,tabIndex:s=0}=e,u=xr(e,["style","noStyle","disabled","tabIndex"]);let d={};return i||(d=Object.assign({},Sr)),l&&(d.pointerEvents="none"),d=Object.assign(Object.assign({},d),o),a.createElement("div",Object.assign({role:"button",tabIndex:s,ref:t},u,{onKeyDown:n,onKeyUp:r,style:d}))}),et=Cr,$r=(e,t,n,r)=>{const{titleMarginBottom:o,fontWeightStrong:i}=r;return{marginBottom:o,color:n,fontWeight:i,fontSize:e,lineHeight:t}},Er=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}
    `]=$r(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},wr=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},zt(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},Or=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:nn[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}}),Rr=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"}}}},Ir=e=>({[`${e.componentCls}-copy-success`]:{"\n    &,\n    &:hover,\n    &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),Tr=()=>({"\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"}}),jr=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"}},Er(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}}}),Or(e)),wr(e)),{[`
        ${t}-expand,
        ${t}-collapse,
        ${t}-edit,
        ${t}-copy
      `]:Object.assign(Object.assign({},zt(e)),{marginInlineStart:e.marginXXS})}),Rr(e)),Ir(e)),Tr()),{"&-rtl":{direction:"rtl"}})}},zr=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),Kt=Ct("Typography",e=>[jr(e)],zr),Br=e=>{const{prefixCls:t,"aria-label":n,className:r,style:o,direction:i,maxLength:l,autoSize:s=!0,value:u,onSave:d,onCancel:c,onEnd:f,component:p,enterIcon:C=a.createElement(yr,null)}=e,O=a.useRef(null),I=a.useRef(!1),N=a.useRef(),[$,E]=a.useState(u);a.useEffect(()=>{E(u)},[u]),a.useEffect(()=>{var R;if(!((R=O.current)===null||R===void 0)&&R.resizableTextArea){const{textArea:w}=O.current.resizableTextArea;w.focus();const{length:y}=w.value;w.setSelectionRange(y,y)}},[]);const m=R=>{let{target:w}=R;E(w.value.replace(/[\n\r]/g,""))},P=()=>{I.current=!0},v=()=>{I.current=!1},g=R=>{let{keyCode:w}=R;I.current||(N.current=w)},S=()=>{d($.trim())},b=R=>{let{keyCode:w,ctrlKey:y,altKey:D,metaKey:_,shiftKey:L}=R;N.current!==w||I.current||y||D||_||L||(w===_e.ENTER?(S(),f==null||f()):w===_e.ESC&&c())},x=()=>{S()},[X,z,B]=Kt(t),F=se(t,`${t}-edit-content`,{[`${t}-rtl`]:i==="rtl",[`${t}-${p}`]:!!p},r,z,B);return X(a.createElement("div",{className:F,style:o},a.createElement(rr,{ref:O,maxLength:l,value:$,onChange:m,onKeyDown:g,onKeyUp:b,onCompositionStart:P,onCompositionEnd:v,onBlur:x,"aria-label":n,rows:1,autoSize:s}),C!==null?rn(C,{className:`${t}-edit-content-confirm`}):null))},Ar=Br;var _r=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(o){e.addRange(o)}),t&&t.focus()}},Nr=_r,ht={"text/plain":"Text","text/html":"Url",default:"Text"},Pr="Copy to clipboard: #{key}, Enter";function Hr(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function Lr(e,t){var n,r,o,i,l,s,u=!1;t||(t={}),n=t.debug||!1;try{o=Nr(),i=document.createRange(),l=document.getSelection(),s=document.createElement("span"),s.textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",function(c){if(c.stopPropagation(),t.format)if(c.preventDefault(),typeof c.clipboardData>"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var f=ht[t.format]||ht.default;window.clipboardData.setData(f,e)}else c.clipboardData.clearData(),c.clipboardData.setData(t.format,e);t.onCopy&&(c.preventDefault(),t.onCopy(c.clipboardData))}),document.body.appendChild(s),i.selectNodeContents(s),l.addRange(i);var d=document.execCommand("copy");if(!d)throw new Error("copy command was unsuccessful");u=!0}catch(c){n&&console.error("unable to copy using execCommand: ",c),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(f){n&&console.error("unable to copy using clipboardData: ",f),n&&console.error("falling back to prompt"),r=Hr("message"in t?t.message:Pr),window.prompt(r,e)}}finally{l&&(typeof l.removeRange=="function"?l.removeRange(i):l.removeAllRanges()),s&&document.body.removeChild(s),o()}return u}var Mr=Lr;const Dr=on(Mr);var Wr=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(l){l(i)})}return new(n||(n=Promise))(function(i,l){function s(c){try{d(r.next(c))}catch(f){l(f)}}function u(c){try{d(r.throw(c))}catch(f){l(f)}}function d(c){c.done?i(c.value):o(c.value).then(s,u)}d((r=r.apply(e,t||[])).next())})};const Fr=e=>{let{copyConfig:t,children:n}=e;const[r,o]=a.useState(!1),[i,l]=a.useState(!1),s=a.useRef(null),u=()=>{s.current&&clearTimeout(s.current)},d={};t.format&&(d.format=t.format),a.useEffect(()=>u,[]);const c=an(f=>Wr(void 0,void 0,void 0,function*(){var p;f==null||f.preventDefault(),f==null||f.stopPropagation(),l(!0);try{const C=typeof t.text=="function"?yield t.text():t.text;Dr(C||or(n,!0).join("")||"",d),l(!1),o(!0),u(),s.current=setTimeout(()=>{o(!1)},3e3),(p=t.onCopy)===null||p===void 0||p.call(t,f)}catch(C){throw l(!1),C}}));return{copied:r,copyLoading:i,onClick:c}},Vr=Fr;function Xe(e,t){return a.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const Kr=e=>{const t=a.useRef();return a.useEffect(()=>{t.current=e}),t.current},Ur=Kr,Gr=(e,t,n)=>a.useMemo(()=>e===!0?{title:t??n}:a.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??n},e):{title:e},[e,t,n]),Xr=Gr;var qr=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Yr=a.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:o,rootClassName:i,setContentRef:l,children:s,direction:u,style:d}=e,c=qr(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:p,typography:C}=a.useContext(je),O=u??p,I=l?ot(t,l):t,N=f("typography",n),[$,E,m]=Kt(N),P=se(N,C==null?void 0:C.className,{[`${N}-rtl`]:O==="rtl"},o,i,E,m),v=Object.assign(Object.assign({},C==null?void 0:C.style),d);return $(a.createElement(r,Object.assign({className:P,style:v,ref:I},c),s))}),Ut=Yr;function yt(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function qe(e,t,n){return e===!0||e===void 0?t:e||n&&t}function Zr(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 lt=e=>["string","number"].includes(typeof e),Jr=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:o,tooltips:i,icon:l,tabIndex:s,onCopy:u,loading:d}=e;const c=yt(i),f=yt(l),{copied:p,copy:C}=r??{},O=n?p:C,I=qe(c[n?1:0],O),N=typeof I=="string"?I:O;return a.createElement(at,{title:I},a.createElement(et,{className:se(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:o}),onClick:u,"aria-label":N,tabIndex:s},n?qe(f[1],a.createElement(bn,null),!0):qe(f[0],d?a.createElement(ln,null):a.createElement(cr,null),!0)))},Qr=Jr,Be=a.forwardRef((e,t)=>{let{style:n,children:r}=e;const o=a.useRef(null);return a.useImperativeHandle(t,()=>({isExceed:()=>{const i=o.current;return i.scrollHeight>i.clientHeight},getHeight:()=>o.current.clientHeight})),a.createElement("span",{"aria-hidden":!0,ref:o,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},n)},r)}),kr=e=>e.reduce((t,n)=>t+(lt(n)?String(n).length:1),0);function xt(e,t){let n=0;const r=[];for(let o=0;o<e.length;o+=1){if(n===t)return r;const i=e[o],s=lt(i)?String(i).length:1,u=n+s;if(u>t){const d=t-n;return r.push(String(i).slice(0,d)),r}r.push(i),n=u}return e}const Ye=0,Ze=1,Je=2,Qe=3,St=4,Ae={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function eo(e){const{enableMeasure:t,width:n,text:r,children:o,rows:i,expanded:l,miscDeps:s,onEllipsis:u}=e,d=a.useMemo(()=>Tt(r),[r]),c=a.useMemo(()=>kr(d),[r]),f=a.useMemo(()=>o(d,!1),[r]),[p,C]=a.useState(null),O=a.useRef(null),I=a.useRef(null),N=a.useRef(null),$=a.useRef(null),E=a.useRef(null),[m,P]=a.useState(!1),[v,g]=a.useState(Ye),[S,b]=a.useState(0),[x,X]=a.useState(null);Re(()=>{g(t&&n&&c?Ze:Ye)},[n,r,i,t,d]),Re(()=>{var R,w,y,D;if(v===Ze){g(Je);const _=I.current&&getComputedStyle(I.current).whiteSpace;X(_)}else if(v===Je){const _=!!(!((R=N.current)===null||R===void 0)&&R.isExceed());g(_?Qe:St),C(_?[0,c]:null),P(_);const L=((w=N.current)===null||w===void 0?void 0:w.getHeight())||0,ee=i===1?0:((y=$.current)===null||y===void 0?void 0:y.getHeight())||0,V=((D=E.current)===null||D===void 0?void 0:D.getHeight())||0,q=Math.max(L,ee+V);b(q+1),u(_)}},[v]);const z=p?Math.ceil((p[0]+p[1])/2):0;Re(()=>{var R;const[w,y]=p||[0,0];if(w!==y){const _=(((R=O.current)===null||R===void 0?void 0:R.getHeight())||0)>S;let L=z;y-w===1&&(L=_?w:y),C(_?[w,L]:[L,y])}},[p,z]);const B=a.useMemo(()=>{if(!t)return o(d,!1);if(v!==Qe||!p||p[0]!==p[1]){const R=o(d,!1);return[St,Ye].includes(v)?R:a.createElement("span",{style:Object.assign(Object.assign({},Ae),{WebkitLineClamp:i})},R)}return o(l?d:xt(d,p[0]),m)},[l,v,p,d].concat(sn(s))),F={width:n,margin:0,padding:0,whiteSpace:x==="nowrap"?"normal":"inherit"};return a.createElement(a.Fragment,null,B,v===Je&&a.createElement(a.Fragment,null,a.createElement(Be,{style:Object.assign(Object.assign(Object.assign({},F),Ae),{WebkitLineClamp:i}),ref:N},f),a.createElement(Be,{style:Object.assign(Object.assign(Object.assign({},F),Ae),{WebkitLineClamp:i-1}),ref:$},f),a.createElement(Be,{style:Object.assign(Object.assign(Object.assign({},F),Ae),{WebkitLineClamp:1}),ref:E},o([],!0))),v===Qe&&p&&p[0]!==p[1]&&a.createElement(Be,{style:Object.assign(Object.assign({},F),{top:400}),ref:O},o(xt(d,z),!0)),v===Ze&&a.createElement("span",{style:{whiteSpace:"inherit"},ref:I}))}const to=e=>{let{enableEllipsis:t,isEllipsis:n,children:r,tooltipProps:o}=e;return!(o!=null&&o.title)||!t?r:a.createElement(at,Object.assign({open:n?void 0:!1},o),r)},no=to;var ro=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function oo(e,t){let{mark:n,code:r,underline:o,delete:i,strong:l,keyboard:s,italic:u}=e,d=t;function c(f,p){p&&(d=a.createElement(f,{},d))}return c("strong",l),c("u",o),c("del",i),c("code",r),c("mark",n),c("kbd",s),c("i",u),d}const ao="...",io=a.forwardRef((e,t)=>{var n;const{prefixCls:r,className:o,style:i,type:l,disabled:s,children:u,ellipsis:d,editable:c,copyable:f,component:p,title:C}=e,O=ro(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:I,direction:N}=a.useContext(je),[$]=cn("Text"),E=a.useRef(null),m=a.useRef(null),P=I("typography",r),v=jt(O,["mark","code","delete","underline","strong","keyboard","italic"]),[g,S]=Xe(c),[b,x]=ut(!1,{value:S.editing}),{triggerType:X=["icon"]}=S,z=h=>{var A;h&&((A=S.onStart)===null||A===void 0||A.call(S)),x(h)},B=Ur(b);Re(()=>{var h;!b&&B&&((h=m.current)===null||h===void 0||h.focus())},[b]);const F=h=>{h==null||h.preventDefault(),z(!0)},R=h=>{var A;(A=S.onChange)===null||A===void 0||A.call(S,h),z(!1)},w=()=>{var h;(h=S.onCancel)===null||h===void 0||h.call(S),z(!1)},[y,D]=Xe(f),{copied:_,copyLoading:L,onClick:ee}=Vr({copyConfig:D,children:u}),[V,q]=a.useState(!1),[M,Y]=a.useState(!1),[te,ue]=a.useState(!1),[ge,G]=a.useState(!1),[ie,ne]=a.useState(!0),[oe,K]=Xe(d,{expandable:!1,symbol:h=>h?$==null?void 0:$.collapse:$==null?void 0:$.expand}),[U,ae]=ut(K.defaultExpanded||!1,{value:K.expanded}),Q=oe&&(!U||K.expandable==="collapsible"),{rows:re=1}=K,me=a.useMemo(()=>Q&&(K.suffix!==void 0||K.onEllipsis||K.expandable||g||y),[Q,K,g,y]);Re(()=>{oe&&!me&&(q(ft("webkitLineClamp")),Y(ft("textOverflow")))},[me,oe]);const[de,Ee]=a.useState(Q),Oe=a.useMemo(()=>me?!1:re===1?M:V,[me,M,V]);Re(()=>{Ee(Oe&&Q)},[Oe,Q]);const we=Q&&(de?ge:te),Ie=Q&&re===1&&de,W=Q&&re>1&&de,j=(h,A)=>{var Ce;ae(A.expanded),(Ce=K.onExpand)===null||Ce===void 0||Ce.call(K,h,A)},[Z,$e]=a.useState(0),ye=h=>{let{offsetWidth:A}=h;$e(A)},ve=h=>{var A;ue(h),te!==h&&((A=K.onEllipsis)===null||A===void 0||A.call(K,h))};a.useEffect(()=>{const h=E.current;if(oe&&de&&h){const A=Zr(h);ge!==A&&G(A)}},[oe,de,u,W,ie,Z]),a.useEffect(()=>{const h=E.current;if(typeof IntersectionObserver>"u"||!h||!de||!Q)return;const A=new IntersectionObserver(()=>{ne(!!h.offsetParent)});return A.observe(h),()=>{A.disconnect()}},[de,Q]);const be=Xr(K.tooltip,S.text,u),xe=a.useMemo(()=>{if(!(!oe||de))return[S.text,u,C,be.title].find(lt)},[oe,de,C,be.title,we]);if(b)return a.createElement(Ar,{value:(n=S.text)!==null&&n!==void 0?n:typeof u=="string"?u:"",onSave:R,onCancel:w,onEnd:S.onEnd,prefixCls:P,className:o,style:i,direction:N,component:p,maxLength:S.maxLength,autoSize:S.autoSize,enterIcon:S.enterIcon});const De=()=>{const{expandable:h,symbol:A}=K;return h?a.createElement(et,{key:"expand",className:`${P}-${U?"collapse":"expand"}`,onClick:Ce=>j(Ce,{expanded:!U}),"aria-label":U?$.collapse:$==null?void 0:$.expand},typeof A=="function"?A(U):A):null},We=()=>{if(!g)return;const{icon:h,tooltip:A,tabIndex:Ce}=S,Fe=Tt(A)[0]||($==null?void 0:$.edit),Gt=typeof Fe=="string"?Fe:"";return X.includes("icon")?a.createElement(at,{key:"edit",title:A===!1?"":Fe},a.createElement(et,{ref:m,className:`${P}-edit`,onClick:F,"aria-label":Gt,tabIndex:Ce},h||a.createElement(gr,{role:"button"}))):null},k=()=>y?a.createElement(Qr,Object.assign({key:"copy"},D,{prefixCls:P,copied:_,locale:$,onCopy:ee,loading:L,iconOnly:u==null})):null,H=h=>[h&&De(),We(),k()],Se=h=>[h&&!U&&a.createElement("span",{"aria-hidden":!0,key:"ellipsis"},ao),K.suffix,H(h)];return a.createElement(dn,{onResize:ye,disabled:!Q},h=>a.createElement(no,{tooltipProps:be,enableEllipsis:Q,isEllipsis:we},a.createElement(Ut,Object.assign({className:se({[`${P}-${l}`]:l,[`${P}-disabled`]:s,[`${P}-ellipsis`]:oe,[`${P}-ellipsis-single-line`]:Ie,[`${P}-ellipsis-multiple-line`]:W},o),prefixCls:r,style:Object.assign(Object.assign({},i),{WebkitLineClamp:W?re:void 0}),component:p,ref:ot(h,E,t),direction:N,onClick:X.includes("text")?F:void 0,"aria-label":xe==null?void 0:xe.toString(),title:C},v),a.createElement(eo,{enableMeasure:Q&&!de,text:u,rows:re,width:Z,onEllipsis:ve,expanded:U,miscDeps:[_,U,L,g,y]},(A,Ce)=>oo(e,a.createElement(a.Fragment,null,A.length>0&&Ce&&!U&&xe?a.createElement("span",{key:"show-content","aria-hidden":!0},A):A,Se(Ce)))))))}),Me=io;var lo=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const so=a.forwardRef((e,t)=>{var{ellipsis:n,rel:r}=e,o=lo(e,["ellipsis","rel"]);const i=Object.assign(Object.assign({},o),{rel:r===void 0&&o.target==="_blank"?"noopener noreferrer":r});return delete i.navigate,a.createElement(Me,Object.assign({},i,{ref:t,ellipsis:!!n,component:"a"}))}),co=so,uo=a.forwardRef((e,t)=>a.createElement(Me,Object.assign({ref:t},e,{component:"div"}))),fo=uo;var po=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const go=(e,t)=>{var{ellipsis:n}=e,r=po(e,["ellipsis"]);const o=a.useMemo(()=>n&&typeof n=="object"?jt(n,["expandable","rows"]):n,[n]);return a.createElement(Me,Object.assign({ref:t},r,{ellipsis:o,component:"span"}))},mo=a.forwardRef(go);var vo=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const bo=[1,2,3,4,5],ho=a.forwardRef((e,t)=>{const{level:n=1}=e,r=vo(e,["level"]),o=bo.includes(n)?`h${n}`:"h1";return a.createElement(Me,Object.assign({ref:t},r,{component:o}))}),yo=ho,ze=Ut;ze.Text=mo;ze.Link=co;ze.Title=yo;ze.Paragraph=fo;const Co=ze;export{bn as C,So as I,Co as T,yn as a,Fn as b,rr as c,_t as d,ke as e,Lt as f,At as g,Mt as h,hn as i,Nt as j,it as k,zt as o,Dt as u};