You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
98 lines
76 KiB
98 lines
76 KiB
10 months ago
|
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[963],{47356:function(N,m){"use strict";Object.defineProperty(m,"__esModule",{value:!0});var a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"};m.default=a},44149:function(N,m){"use strict";Object.defineProperty(m,"__esModule",{value:!0});var a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"};m.default=a},90930:function(N,m,a){"use strict";a.d(m,{_z:function(){return Ge}});var t=a(4942),E=a(91),c=a(1413),Z=a(71002),A=a(10915),j=a(11941),$=a(67159),V=a(28459),g=a(67294),oe=a(93967),W=a.n(oe),ae=a(9220),i=a(98423),v=a(74902),b=a(75164);function d(r){let e;const n=u=>()=>{e=null,r.apply(void 0,(0,v.Z)(u))},l=function(){if(e==null){for(var u=arguments.length,P=new Array(u),_=0;_<u;_++)P[_]=arguments[_];e=(0,b.Z)(n(P))}};return l.cancel=()=>{b.Z.cancel(e),e=null},l}var w=d,R=a(53124),S=a(91945);const B=r=>{const{componentCls:e}=r;return{[e]:{position:"fixed",zIndex:r.zIndexPopup}}},X=r=>({zIndexPopup:r.zIndexBase+10});var he=(0,S.I$)("Affix",B,X);function O(r){return r!==window?r.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function D(r,e,n){if(n!==void 0&&Math.round(e.top)>Math.round(r.top)-n)return n+e.top}function s(r,e,n){if(n!==void 0&&Math.round(e.bottom)<Math.round(r.bottom)+n){const l=window.innerHeight-e.bottom;return n+l}}const h=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"];function x(){return typeof window!="undefined"?window:null}var T;(function(r){r[r.None=0]="None",r[r.Prepare=1]="Prepare"})(T||(T={}));var fe=g.forwardRef((r,e)=>{var n;const{style:l,offsetTop:u,offsetBottom:P,prefixCls:_,className:U,rootClassName:re,children:k,target:G,onChange:H}=r,{getPrefixCls:K,getTargetContainer:J}=g.useContext(R.E_),L=K("affix",_),[F,q]=g.useState(!1),[z,Q]=g.useState(),[pe,Y]=g.useState(),Pe=g.useRef(T.None),Ce=g.useRef(null),ie=g.useRef(),Se=g.useRef(null),Oe=g.useRef(null),ge=g.useRef(null),me=(n=G!=null?G:J)!==null&&n!==void 0?n:x,We=P===void 0&&u===void 0?0:u,Ie=()=>{if(Pe.current!==T.Prepare||!Oe.current||!Se.current||!me)return;const ve=me();if(ve){const be={status:T.None},de=O(Se.current);if(de.top===0&&de.left===0&&de.width===0&&de.height===0)return;const Xe=O(ve),He=D(de,Xe,We),Ke=s(de,Xe,P);He!==void 0?(be.affixStyle={position:"fixed",top:He,width:de.width,height:de.height},be.placeholderStyle={width:de.width,height:de.height}):Ke!==void 0&&(be.affixStyle={position:"fixed",bottom:Ke,width:de.width,height:de.height},be.placeholderStyle={width:de.width,height:de.height}),be.lastAffix=!!be.affixStyle,F!==be.lastAffix&&(H==null||H(be.lastAffix)),Pe.current=be.status,Q(be.affixStyle),Y(be.placeholderStyle),q(be.lastAffix)}},Fe=()=>{var ve;Pe.current=T.Prepare,Ie()},Re=w(()=>{Fe()}),Be=w(()=>{if(me&&z){const ve=me();if(ve&&Se.current){const be=O(ve),de=O(Se.current),Xe=D(de,be,We),He=s(de,be,P);if(Xe!==void 0&&z.top===Xe||He!==void 0&&z.bottom===He)return}}Fe()}),Ee=()=>{const ve=me==null?void 0:me();ve&&(h.forEach(be=>{var de;ie.current&&((de=Ce.current)===null||de===void 0||de.removeEventListener(be,ie.current)),ve==null||ve.addEventListener(be,Be)}),Ce.current=ve,ie.current=Be)},te=()=>{ge.current&&(clearTimeout(ge.current),ge.current=null);const ve=me==null?void 0:me();h.forEach(be=>{var de;ve==null||ve.removeEventListener(be,Be),ie.current&&((de=Ce.current)===null||de===void 0||de.removeEventListener(be,ie.current))}),Re.cancel(),Be.cancel()};g.useImperativeHandle(e,()=>({updatePosi
|
||
|
> ${n} + span,
|
||
|
> ${n} + a
|
||
|
`]:{marginInlineStart:r.marginXXS}},[`${e}-overlay-link`]:{borderRadius:r.borderRadiusSM,height:r.fontHeight,display:"inline-block",padding:`0 ${(0,Nt.bf)(r.paddingXXS)}`,marginInline:l(r.marginXXS).mul(-1).equal(),[`> ${n}`]:{marginInlineStart:r.marginXXS,fontSize:r.fontSizeIcon},"&:hover":{color:r.linkHoverColor,backgroundColor:r.colorBgTextHover,a:{color:r.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${r.componentCls}-rtl`]:{direction:"rtl"}})}},Pt=r=>({itemColor:r.colorTextDescription,lastItemColor:r.colorText,iconFontSize:r.fontSize,linkColor:r.colorTextDescription,linkHoverColor:r.colorText,separatorColor:r.colorTextDescription,separatorMargin:r.marginXS});var Mt=(0,S.I$)("Breadcrumb",r=>{const e=(0,xt.TS)(r,{});return St(e)},Pt),wt=function(r,e){var n={};for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&e.indexOf(l)<0&&(n[l]=r[l]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,l=Object.getOwnPropertySymbols(r);u<l.length;u++)e.indexOf(l[u])<0&&Object.prototype.propertyIsEnumerable.call(r,l[u])&&(n[l[u]]=r[l[u]]);return n};function Ft(r){const{breadcrumbName:e,children:n}=r,l=wt(r,["breadcrumbName","children"]),u=Object.assign({title:e},l);return n&&(u.menu={items:n.map(P=>{var{breadcrumbName:_}=P,U=wt(P,["breadcrumbName"]);return Object.assign(Object.assign({},U),{title:_})})}),u}function un(r,e){return(0,g.useMemo)(()=>r||(e?e.map(Ft):null),[r,e])}var Ut=function(r,e){var n={};for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&e.indexOf(l)<0&&(n[l]=r[l]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,l=Object.getOwnPropertySymbols(r);u<l.length;u++)e.indexOf(l[u])<0&&Object.prototype.propertyIsEnumerable.call(r,l[u])&&(n[l[u]]=r[l[u]]);return n};const kt=(r,e)=>{if(e===void 0)return e;let n=(e||"").replace(/^\//,"");return Object.keys(r).forEach(l=>{n=n.replace(`:${l}`,r[l])}),n},Et=r=>{const{prefixCls:e,separator:n="/",style:l,className:u,rootClassName:P,routes:_,items:U,children:re,itemRender:k,params:G={}}=r,H=Ut(r,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:K,direction:J,breadcrumb:L}=g.useContext(R.E_);let F;const q=K("breadcrumb",e),[z,Q,pe]=Mt(q),Y=un(U,_),Pe=ct(q,k);if(Y&&Y.length>0){const Se=[],Oe=U||_;F=Y.map((ge,me)=>{const{path:We,key:Ie,type:Fe,menu:Re,overlay:Be,onClick:Ee,className:te,separator:ye,dropdownProps:Ue}=ge,ke=kt(G,We);ke!==void 0&&Se.push(ke);const $e=Ie!=null?Ie:me;if(Fe==="separator")return g.createElement(yt,{key:$e},ye);const Ye={},ot=me===Y.length-1;Re?Ye.menu=Re:Be&&(Ye.overlay=Be);let{href:ve}=ge;return Se.length&&ke!==void 0&&(ve=`#/${Se.join("/")}`),g.createElement(Zt,Object.assign({key:$e},Ye,(0,Tt.Z)(ge,{data:!0,aria:!0}),{className:te,dropdownProps:Ue,href:ve,separator:ot?"":n,onClick:Ee,prefixCls:q}),Pe(ge,G,Oe,Se,ve))})}else if(re){const Se=(0,Ht.Z)(re).length;F=(0,Ht.Z)(re).map((Oe,ge)=>{if(!Oe)return Oe;const me=ge===Se-1;return(0,Lt.Tm)(Oe,{separator:me?"":n,key:ge})})}const Ce=W()(q,L==null?void 0:L.className,{[`${q}-rtl`]:J==="rtl"},u,P,Q,pe),ie=Object.assign(Object.assign({},L==null?void 0:L.style),l);return z(g.createElement("nav",Object.assign({className:Ce,style:ie},H),g.createElement("ol",null,F)))};Et.Item=_t,Et.Separator=yt;var Xt=Et,dn=Xt,st=a(7134),Kt=a(78957),Vt=function(){return{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},Gt=function(e){var n;return(0,t.Z)({},e.componentCls,(0,c.Z)((0,c.Z)({},je.Wf===null||je.Wf===void 0?void 0:(0,je.Wf)(e)),{},(0,t.Z)((0,t.Z)((0,t.Z)((0,t.Z)((0,t.Z)((0,t.Z)((0,t.Z)((0,t.Z)({position:"relative",backgroundColor:e.pageHeaderBgGhost,paddingBlock:e.pageHeaderPaddingVertical+2,paddingInline:e.pageHeaderPadding,"&-no-children":{height:(n=e.layout)===null||n===void 0||(n=n.pageContainer)===null||n===void 0?void 0:n.paddingBlockPageContainerContent},"& &-has-breadcrumb":{paddingBlockStart:e.pageHeaderPaddingBreadCrumb},"& &-has-footer":{paddingBlockEnd:0},"& &-back":(0,t.Z)({marginInlineEnd:e.margin,fontSize:16,lineHeight:1,"&-button":(
|
||
|
.anticon {
|
||
|
display: inline-block;
|
||
|
color: inherit;
|
||
|
font-style: normal;
|
||
|
line-height: 0;
|
||
|
text-align: center;
|
||
|
text-transform: none;
|
||
|
vertical-align: -0.125em;
|
||
|
text-rendering: optimizeLegibility;
|
||
|
-webkit-font-smoothing: antialiased;
|
||
|
-moz-osx-font-smoothing: grayscale;
|
||
|
}
|
||
|
|
||
|
.anticon > * {
|
||
|
line-height: 1;
|
||
|
}
|
||
|
|
||
|
.anticon svg {
|
||
|
display: inline-block;
|
||
|
}
|
||
|
|
||
|
.anticon::before {
|
||
|
display: none;
|
||
|
}
|
||
|
|
||
|
.anticon .anticon-icon {
|
||
|
display: block;
|
||
|
}
|
||
|
|
||
|
.anticon[tabindex] {
|
||
|
cursor: pointer;
|
||
|
}
|
||
|
|
||
|
.anticon-spin::before,
|
||
|
.anticon-spin {
|
||
|
display: inline-block;
|
||
|
-webkit-animation: loadingCircle 1s infinite linear;
|
||
|
animation: loadingCircle 1s infinite linear;
|
||
|
}
|
||
|
|
||
|
@-webkit-keyframes loadingCircle {
|
||
|
100% {
|
||
|
-webkit-transform: rotate(360deg);
|
||
|
transform: rotate(360deg);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@keyframes loadingCircle {
|
||
|
100% {
|
||
|
-webkit-transform: rotate(360deg);
|
||
|
transform: rotate(360deg);
|
||
|
}
|
||
|
}
|
||
|
`,he=function(O){var D=(0,j.useContext)($.default),s=D.csp,h=D.prefixCls,x=X;h&&(x=x.replace(/anticon/g,h)),(0,j.useEffect)(function(){var T=O.current,ee=(0,Z.getShadowRoot)(T);(0,c.updateCSS)(x,"@ant-design-icons",{prepend:!0,csp:s,attachTo:ee})},[])}},49867:function(N,m,a){"use strict";a.d(m,{N:function(){return t}});const t=E=>({color:E.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${E.motionDurationSlow}`,"&:focus, &:hover":{color:E.colorLinkHover},"&:active":{color:E.colorLinkActive}})},31064:function(N,m,a){"use strict";a.d(m,{Z:function(){return rn}});var t=a(67294),E=a(87462),c={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"},Z=c,A=a(93771),j=function(p,y){return t.createElement(A.Z,(0,E.Z)({},p,{ref:y,icon:Z}))},$=t.forwardRef(j),V=a(93967),g=a.n(V),oe=a(20640),W=a.n(oe),ae=a(9220),i=a(50344),v=a(8410),b=a(21770),d=a(98423),w=a(42550),R=a(79370),S=a(15105),B=function(o,p){var y={};for(var f in o)Object.prototype.hasOwnProperty.call(o,f)&&p.indexOf(f)<0&&(y[f]=o[f]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var C=0,f=Object.getOwnPropertySymbols(o);C<f.length;C++)p.indexOf(f[C])<0&&Object.prototype.propertyIsEnumerable.call(o,f[C])&&(y[f[C]]=o[f[C]]);return y};const X={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"};var O=t.forwardRef((o,p)=>{const y=xe=>{const{keyCode:ce}=xe;ce===S.Z.ENTER&&xe.preventDefault()},f=xe=>{const{keyCode:ce}=xe,{onClick:ue}=o;ce===S.Z.ENTER&&ue&&ue()},{style:C,noStyle:se,disabled:_e}=o,Ne=B(o,["style","noStyle","disabled"]);let le={};return se||(le=Object.assign({},X)),_e&&(le.pointerEvents="none"),le=Object.assign(Object.assign({},le),C),t.createElement("div",Object.assign({role:"button",tabIndex:0,ref:p},Ne,{onKeyDown:y,onKeyUp:f,style:le}))}),D=a(53124),s=a(10110),h=a(83062),x={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"},T=x,ee=function(p,y){return t.createElement(A.Z,(0,E.Z)({},p,{ref:y,icon:T}))},fe=t.forwardRef(ee),Ze=a(96159),Ve=a(22913),et=a(49867),dt=a(91945),je=a(78589),it=a(54548);const tt=(o,p,y,f)=>{const{titleMarginBottom:C,fontWeightStrong:se}=f;return{marginBottom:C,color:y,fontWeight:se,fontSize:o,lineHeight:p}},ft=o=>{const p=[1,2,3,4,5],y={};return p.forEach(f=>{y[`
|
||
|
h${f}&,
|
||
|
div&-h${f},
|
||
|
div&-h${f} > textarea,
|
||
|
h${f}
|
||
|
`]=tt(o[`fontSizeHeading${f}`],o[`lineHeightHeading${f}`],o.colorTextHeading,o)}),y},M=o=>{const{componentCls:p}=o;return{"a&, a":Object.assign(Object.assign({},(0,et.N)(o)),{textDecoration:o.linkDecoration,"&:active, &:hover":{textDecoration:o.linkHoverDecoration},[`&[disabled], &${p}-disabled`]:{color:o.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:o.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},pt=o=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:o.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:o.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:je.EV[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:o.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}}),nt=o=>{const{componentCls:p,paddingSM:y}=o,f=y;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:o.calc(o.paddingSM).mul(-1).equal(),marginTop:o.calc(f).mul(-1).equal(),marginBottom:`calc(1em - ${(0,it.bf)(f)})`},[`${p}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:o.calc(o.marginXS).add(2).equal(),insetBlockEnd:o.marginXS,color:o.colorTextDescription,fontWeight:"normal",fontSize:o.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},gt=o=>({[`${o.componentCls}-copy-success`]:{[`
|
||
|
&,
|
||
|
&:hover,
|
||
|
&:focus`]:{color:o.colorSuccess}},[`${o.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),lt=()=>({[`
|
||
|
a&-ellipsis,
|
||
|
span&-ellipsis
|
||
|
`]:{display:"inline-block",maxWidth:"100%"},"&-single-line":{whiteSpace:"nowrap"},"&-ellipsis-single-line":{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"}}),mt=o=>{const{componentCls:p,titleMarginTop:y}=o;return{[p]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:o.colorText,wordBreak:"break-word",lineHeight:o.lineHeight,[`&${p}-secondary`]:{color:o.colorTextDescription},[`&${p}-success`]:{color:o.colorSuccess},[`&${p}-warning`]:{color:o.colorWarning},[`&${p}-danger`]:{color:o.colorError,"a&:active, a&:focus":{color:o.colorErrorActive},"a&:hover":{color:o.colorErrorHover}},[`&${p}-disabled`]:{color:o.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},[`
|
||
|
div&,
|
||
|
p
|
||
|
`]:{marginBottom:"1em"}},ft(o)),{[`
|
||
|
& + h1${p},
|
||
|
& + h2${p},
|
||
|
& + h3${p},
|
||
|
& + h4${p},
|
||
|
& + h5${p}
|
||
|
`]:{marginTop:y},[`
|
||
|
div,
|
||
|
ul,
|
||
|
li,
|
||
|
p,
|
||
|
h1,
|
||
|
h2,
|
||
|
h3,
|
||
|
h4,
|
||
|
h5`]:{[`
|
||
|
+ h1,
|
||
|
+ h2,
|
||
|
+ h3,
|
||
|
+ h4,
|
||
|
+ h5
|
||
|
`]:{marginTop:y}}}),pt(o)),M(o)),{[`
|
||
|
${p}-expand,
|
||
|
${p}-edit,
|
||
|
${p}-copy
|
||
|
`]:Object.assign(Object.assign({},(0,et.N)(o)),{marginInlineStart:o.marginXXS})}),nt(o)),gt(o)),lt()),{"&-rtl":{direction:"rtl"}})}},rt=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"});var jt=(0,dt.I$)("Typography",o=>[mt(o)],rt),$t=o=>{const{prefixCls:p,"aria-label":y,className:f,style:C,direction:se,maxLength:_e,autoSize:Ne=!0,value:le,onSave:xe,onCancel:ce,onEnd:ue,component:Me,enterIcon:De=t.createElement(fe,null)}=o,Ae=t.useRef(null),we=t.useRef(!1),ze=t.useRef(),[Qe,Ge]=t.useState(le);t.useEffect(()=>{Ge(le)},[le]),t.useEffect(()=>{if(Ae.current&&Ae.current.resizableTextArea){const{textArea:H}=Ae.current.resizableTextArea;H.focus();const{length:K}=H.value;H.setSelectionRange(K,K)}},[]);const Te=H=>{let{target:K}=H;Ge(K.value.replace(/[\n\r]/g,""))},r=()=>{we.current=!0},e=()=>{we.current=!1},n=H=>{let{keyCode:K}=H;we.current||(ze.current=K)},l=()=>{xe(Qe.trim())},u=H=>{let{keyCode:K,ctrlKey:J,altKey:L,metaKey:F,shiftKey:q}=H;ze.current===K&&!we.current&&!J&&!L&&!F&&!q&&(K===S.Z.ENTER?(l(),ue==null||ue()):K===S.Z.ESC&&ce())},P=()=>{l()},_=Me?`${p}-${Me}`:"",[U,re,k]=jt(p),G=g()(p,`${p}-edit-content`,{[`${p}-rtl`]:se==="rtl"},f,_,re,k);return U(t.createElement("div",{className:G,style:C},t.createElement(Ve.Z,{ref:Ae,maxLength:_e,value:Qe,onChange:Te,onKeyDown:n,onKeyUp:u,onCompositionStart:r,onCompositionEnd:e,onBlur:P,"aria-label":y,rows:1,autoSize:Ne}),De!==null?(0,Ze.Tm)(De,{className:`${p}-edit-content-confirm`}):null))};function vt(o,p){return t.useMemo(()=>{const y=!!o;return[y,Object.assign(Object.assign({},p),y&&typeof o=="object"?o:null)]},[o])}var Tt=(o,p)=>{const y=t.useRef(!1);t.useEffect(()=>{y.current?o():y.current=!0},p)},Lt=function(o,p){var y={};for(var f in o)Object.prototype.hasOwnProperty.call(o,f)&&p.indexOf(f)<0&&(y[f]=o[f]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var C=0,f=Object.getOwnPropertySymbols(o);C<f.length;C++)p.indexOf(f[C])<0&&Object.prototype.propertyIsEnumerable.call(o,f[C])&&(y[f[C]]=o[f[C]]);return y},It=t.forwardRef((o,p)=>{const{prefixCls:y,component:f="article",className:C,rootClassName:se,setContentRef:_e,children:Ne,direction:le,style:xe}=o,ce=Lt(o,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:ue,direction:Me,typography:De}=t.useContext(D.E_),Ae=le!=null?le:Me;let we=p;_e&&(we=(0,w.sQ)(p,_e));const ze=ue("typography",y),[Qe,Ge,Te]=jt(ze),r=g()(ze,De==null?void 0:De.className,{[`${ze}-rtl`]:Ae==="rtl"},C,se,Ge,Te),e=Object.assign(Object.assign({},De==null?void 0:De.style),xe);return Qe(t.createElement(f,Object.assign({className:r,style:e,ref:we},ce),Ne))}),Rt=a(64894),yt=a(48820),zt=function(p,y){return t.createElement(A.Z,(0,E.Z)({},p,{ref:y,icon:yt.Z}))},Wt=t.forwardRef(zt);function ht(o){return o===!1?[!1,!1]:Array.isArray(o)?o:[o]}function ct(o,p,y){return o===!0||o===void 0?p:o||y&&p}function bt(o){const{prefixCls:p,copied:y,locale:f={},onCopy:C,iconOnly:se,tooltips:_e,icon:Ne}=o,le=ht(_e),xe=ht(Ne),{copied:ce,copy:ue}=f,Me=y?ct(le[1],ce):ct(le[0],ue),Ae=typeof Me=="string"?Me:y?ce:ue;return t.createElement(h.Z,{key:"copy",title:Me},t.createElement(O,{className:g()(`${p}-copy`,{[`${p}-copy-success`]:y,[`${p}-copy-icon-only`]:se}),onClick:C,"aria-label":Ae},y?ct(xe[1],t.createElement(Rt.Z,null),!0):ct(xe[0],t.createElement(Wt,null),!0)))}var Zt=a(74902);const Ct=t.forwardRef((o,p)=>{let{style:y,children:f}=o;const C=t.useRef(null);return t.useImperativeHandle(p,()=>({isExceed:()=>{const se=C.current;return se.scrollHeight>se.clientHeight},getHeight:()=>C.current.clientHeight})),t.createElement("span",{"aria-hidden":!0,ref:C,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},y)},f)});function _t(o){const p=typeof o;return p==="string"||p==="number"}function Nt(o){let p=0;return o.forEach(y=>{_t(y)?p+=String(y).length:p+=1}),p}function Ot(o,p){let y=0;const f=[];for(let C=0;C<o.length;C+=1){if(y===p)return f;const se=o[C],Ne=_t(se)?String(se).length:1,le=y+Ne;if(le>p){const xe=p-y;return f.
|