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.

97 lines
195 KiB

6 months ago
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[624],{34994:function(Mn,Xe,R){"use strict";R.d(Xe,{A:function(){return en}});var ee=R(1413),pe=R(8232),xe=R(67294),ce=R(78733),Z=R(9105),Ze=R(4942),i=R(97685),he=R(87462),we=R(50756),o=R(46976),fn=function(Me,rn){return xe.createElement(o.Z,(0,he.Z)({},Me,{ref:rn,icon:we.Z}))},ke=xe.forwardRef(fn),oe=R(21770),Ue=R(48874),Ve=R(28459),$e=R(78957),qe=R(93967),lt=R.n(qe),Lt=R(66758),Bt=R(2514),it=R(98082),st=function(Me){return(0,Ze.Z)({},Me.componentCls,{"&-title":{marginBlockEnd:Me.marginXL,fontWeight:"bold"},"&-container":(0,Ze.Z)({flexWrap:"wrap",maxWidth:"100%"},"> div".concat(Me.antCls,"-space-item"),{maxWidth:"100%"}),"&-twoLine":(0,Ze.Z)((0,Ze.Z)((0,Ze.Z)((0,Ze.Z)({display:"block",width:"100%"},"".concat(Me.componentCls,"-title"),{width:"100%",margin:"8px 0"}),"".concat(Me.componentCls,"-container"),{paddingInlineStart:16}),"".concat(Me.antCls,"-space-item,").concat(Me.antCls,"-form-item"),{width:"100%"}),"".concat(Me.antCls,"-form-item"),{"&-control":{display:"flex",alignItems:"center",justifyContent:"flex-end","&-input":{alignItems:"center",justifyContent:"flex-end","&-content":{flex:"none"}}}})})};function zt(Ge){return(0,it.Xj)("ProFormGroup",function(Me){var rn=(0,ee.Z)((0,ee.Z)({},Me),{},{componentCls:".".concat(Ge)});return[st(rn)]})}var De=R(85893),$n=xe.forwardRef(function(Ge,Me){var rn=xe.useContext(Lt.Z),je=rn.groupProps,Le=(0,ee.Z)((0,ee.Z)({},je),Ge),At=Le.children,Kt=Le.collapsible,vr=Le.defaultCollapsed,mr=Le.style,pr=Le.labelLayout,Wt=Le.title,dt=Wt===void 0?Ge.label:Wt,Vt=Le.tooltip,ut=Le.align,Ht=ut===void 0?"start":ut,Xt=Le.direction,Ut=Le.size,Gt=Ut===void 0?32:Ut,gr=Le.titleStyle,ft=Le.titleRender,an=Le.spaceProps,Un=Le.extra,Gn=Le.autoFocus,nn=(0,oe.Z)(function(){return vr||!1},{value:Ge.collapsed,onChange:Ge.onCollapse}),vt=(0,i.Z)(nn,2),Jn=vt[0],mt=vt[1],pt=(0,xe.useContext)(Ve.ZP.ConfigContext),Yn=pt.getPrefixCls,Qn=(0,Bt.zx)(Ge),gt=Qn.ColWrapper,Jt=Qn.RowWrapper,xn=Yn("pro-form-group"),ht=zt(xn),Yt=ht.wrapSSR,vn=ht.hashId,yt=Kt&&(0,De.jsx)(ke,{style:{marginInlineEnd:8},rotate:Jn?void 0:90}),bt=(0,De.jsx)(Ue.G,{label:yt?(0,De.jsxs)("div",{children:[yt,dt]}):dt,tooltip:Vt}),jn=(0,xe.useCallback)(function(Ae){var Fn=Ae.children;return(0,De.jsx)($e.Z,(0,ee.Z)((0,ee.Z)({},an),{},{className:lt()("".concat(xn,"-container ").concat(vn),an==null?void 0:an.className),size:Gt,align:Ht,direction:Xt,style:(0,ee.Z)({rowGap:0},an==null?void 0:an.style),children:Fn}))},[Ht,xn,Xt,vn,Gt,an]),Ln=ft?ft(bt,Ge):bt,St=(0,xe.useMemo)(function(){var Ae=[],Fn=xe.Children.toArray(At).map(function(on,Zn){var Ke;return xe.isValidElement(on)&&on!==null&&on!==void 0&&(Ke=on.props)!==null&&Ke!==void 0&&Ke.hidden?(Ae.push(on),null):Zn===0&&xe.isValidElement(on)&&Gn?xe.cloneElement(on,(0,ee.Z)((0,ee.Z)({},on.props),{},{autoFocus:Gn})):on});return[(0,De.jsx)(Jt,{Wrapper:jn,children:Fn},"children"),Ae.length>0?(0,De.jsx)("div",{style:{display:"none"},children:Ae}):null]},[At,Jt,jn,Gn]),Ct=(0,i.Z)(St,2),Qt=Ct[0],Bn=Ct[1];return Yt((0,De.jsx)(gt,{children:(0,De.jsxs)("div",{className:lt()(xn,vn,(0,Ze.Z)({},"".concat(xn,"-twoLine"),pr==="twoLine")),style:mr,ref:Me,children:[Bn,(dt||Vt||Un)&&(0,De.jsx)("div",{className:"".concat(xn,"-title ").concat(vn).trim(),style:gr,onClick:function(){mt(!Jn)},children:Un?(0,De.jsxs)("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"},children:[Ln,(0,De.jsx)("span",{onClick:function(Fn){return Fn.stopPropagation()},children:Un})]}):Ln}),(0,De.jsx)("div",{style:{display:Kt&&Jn?"none":void 0},children:Qt})]})}))});$n.displayName="ProForm-Group";var Dt=$n,ct=R(4499);function en(Ge){return(0,De.jsx)(ce.I,(0,ee.Z)({layout:"vertical",contentRender:function(rn,je){return(0,De.jsxs)(De.Fragment,{children:[rn,je]})}},Ge))}en.Group=Dt,en.useForm=pe.Z.useForm,en.Item=ct.Z,en.useWatch=pe.Z.useWatch,en.ErrorList=pe.Z.ErrorList,en.Provider=pe.Z.Provider,en.useFormInstance=pe.Z.useFormInstance,en.EditOrReadOnlyContext=Z.A},50624:function(Mn,Xe,R){"use strict";R.d(Xe,{Z:function(){return id}}
.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);
}
}
`,ht=function(e){var r=(0,o.useContext)(an),t=r.csp,a=r.prefixCls,c=xn;a&&(c=c.replace(/anticon/g,a)),(0,o.useEffect)(function(){var l=e.current,s=(0,Gn.A)(l);(0,Un.hq)(c,"@ant-design-icons",{prepend:!0,csp:t,attachTo:s})},[])},Yt=["icon","className","onClick","style","primaryColor","secondaryColor"],vn={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function yt(n){var e=n.primaryColor,r=n.secondaryColor;vn.primaryColor=e,vn.secondaryColor=r||Qn(e),vn.calculated=!!r}function bt(){return(0,i.Z)({},vn)}var jn=function(e){var r=e.icon,t=e.className,a=e.onClick,c=e.style,l=e.primaryColor,s=e.secondaryColor,d=(0,he.Z)(e,Yt),u=o.useRef(),v=vn;if(l&&(v={primaryColor:l,secondaryColor:s||Qn(l)}),ht(u),Jn(mt(r),"icon should be icon definiton, but got ".concat(r)),!mt(r))return null;var p=r;return p&&typeof p.icon=="function"&&(p=(0,i.Z)((0,i.Z)({},p),{},{icon:p.icon(v.primaryColor,v.secondaryColor)})),Yn(p.icon,"svg-".concat(p.name),(0,i.Z)((0,i.Z)({className:t,onClick:a,style:c,"data-icon":p.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},d),{},{ref:u}))};jn.displayName="IconReact",jn.getTwoToneColors=bt,jn.setTwoToneColors=yt;var Ln=jn;function St(n){var e=gt(n),r=(0,ce.Z)(e,2),t=r[0],a=r[1];return Ln.setTwoToneColors({primaryColor:t,secondaryColor:a})}function Ct(){var n=Ln.getTwoToneColors();return n.calculated?[n.primaryColor,n.secondaryColor]:n.primaryColor}var Qt=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];St(ut.primary);var Bn=o.forwardRef(function(n,e){var r=n.className,t=n.icon,a=n.spin,c=n.rotate,l=n.tabIndex,s=n.onClick,d=n.twoToneColor,u=(0,he.Z)(n,Qt),v=o.useContext(an),p=v.prefixCls,h=p===void 0?"anticon":p,w=v.rootClassName,m=oe()(w,h,(0,Z.Z)((0,Z.Z)({},"".concat(h,"-").concat(t.name),!!t.name),"".concat(h,"-spin"),!!a||t.name==="loading"),r),g=l;g===void 0&&s&&(g=-1);var y=c?{msTransform:"rotate(".concat(c,"deg)"),transform:"rotate(".concat(c,"deg)")}:void 0,S=gt(d),b=(0,ce.Z)(S,2),N=b[0],F=b[1];return o.createElement("span",(0,we.Z)({role:"img","aria-label":t.name},u,{ref:e,tabIndex:g,onClick:s,className:m}),o.createElement(Ln,{icon:t,primaryColor:N,secondaryColor:F,style:y}))});Bn.displayName="AntdIcon",Bn.getTwoToneColor=Ct,Bn.setTwoToneColor=St;var Ae=Bn,Fn=function(e,r){return o.createElement(Ae,(0,we.Z)({},e,{ref:r,icon:fn.Z}))},on=o.forwardRef(Fn),Zn=R(48874),Ke=R(28459),zn=R(11941),hr=R(25378),mn=R(97435),Oe=R(21770),Fe=R(98082),Ra=function(e){var r=e.componentCls,t=e.antCls;return(0,Z.Z)({},"".concat(r,"-actions"),(0,Z.Z)((0,Z.Z)({marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none",display:"flex",gap:e.marginXS,background:e.colorBgContainer,borderBlockStart:"".concat(e.lineWidth,"px ").concat(e.lineType," ").concat(e.colorSplit),minHeight:42},"& > *",{alignItems:"center",justifyContent:"center",flex:1,display:"flex",cursor:"pointer",color:e.colorTextSecondary,transition:"color 0.3s","&:hover":{color:e.colorPrimaryHover}}),"& > li > div",{flex:1,width:"100%",marginBlock:e.marginSM,marginInline:0,color:e.colorTextSecondary,textAlign:"center",a:{color:e.colorTextSecondary,transition:"color 0.3s","&:hover":{color:e.colorPrimaryHover}},div:(0,Z.Z)((0,Z.Z)({position:"relative",display:"block",minWidth:32,fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimaryHover,transition:"color 0.3s"}},"a:not(".concat(t,`-btn),
> .anticon`),{display:"inline-block",width:"100%",color:e.colorTextSecondary,lineHeight:"22px",transition:"color 0.3s","&:hover":{color:e.colorPrimaryHover}}),".anticon",{fontSize:e.cardActionIconSize,lineHeight:"22px"}),"&:not(:last-child)":{borderInlineEnd:"".concat(e.lineWidth,"px ").concat(e.lineType," ").concat(e.colorSplit)}}))};function Ia(n){return(0,Fe.Xj)("ProCardActions",function(e){var r=(0,i.Z)((0,i.Z)({},e),{},{componentCls:".".concat(n),cardActionIconSize:16});return[Ra(r)]})}var f=R(85893),Ta=function(e){var r=e.actions,t=e.prefixCls,a=Ia(t),c=a.wrapSSR,l=a.hashId;return Array.isArray(r)&&r!==null&&r!==void 0&&r.length?c((0,f.jsx)("ul",{className:oe()("".concat(t,"-actions"),l),children:r.map(function(s,d){return(0,f.jsx)("li",{style:{width:"".concat(100/r.length,"%"),padding:0,margin:0},className:oe()("".concat(t,"-actions-item"),l),children:s},"action-".concat(d))})})):c((0,f.jsx)("ul",{className:oe()("".concat(t,"-actions"),l),children:r}))},Ea=Ta,wn=R(71230),Je=R(15746),ye=R(54548),Pa=new ye.E4("card-loading",{"0%":{backgroundPosition:"0 50%"},"50%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),$a=function(e){return(0,Z.Z)({},e.componentCls,(0,Z.Z)((0,Z.Z)({"&-loading":{overflow:"hidden"},"&-loading &-body":{userSelect:"none"}},"".concat(e.componentCls,"-loading-content"),{width:"100%",p:{marginBlock:0,marginInline:0}}),"".concat(e.componentCls,"-loading-block"),{height:"14px",marginBlock:"4px",background:"linear-gradient(90deg, rgba(54, 61, 64, 0.2), rgba(54, 61, 64, 0.4), rgba(54, 61, 64, 0.2))",backgroundSize:"600% 600%",borderRadius:e.borderRadius,animationName:Pa,animationDuration:"1.4s",animationTimingFunction:"ease",animationIterationCount:"infinite"}))};function ja(n){return(0,Fe.Xj)("ProCardLoading",function(e){var r=(0,i.Z)((0,i.Z)({},e),{},{componentCls:".".concat(n)});return[$a(r)]})}var Fa=function(e){var r=e.style,t=e.prefix,a=ja(t||"ant-pro-card"),c=a.wrapSSR;return c((0,f.jsxs)("div",{className:"".concat(t,"-loading-content"),style:r,children:[(0,f.jsx)(wn.Z,{gutter:8,children:(0,f.jsx)(Je.Z,{span:22,children:(0,f.jsx)("div",{className:"".concat(t,"-loading-block")})})}),(0,f.jsxs)(wn.Z,{gutter:8,children:[(0,f.jsx)(Je.Z,{span:8,children:(0,f.jsx)("div",{className:"".concat(t,"-loading-block")})}),(0,f.jsx)(Je.Z,{span:15,children:(0,f.jsx)("div",{className:"".concat(t,"-loading-block")})})]}),(0,f.jsxs)(wn.Z,{gutter:8,children:[(0,f.jsx)(Je.Z,{span:6,children:(0,f.jsx)("div",{className:"".concat(t,"-loading-block")})}),(0,f.jsx)(Je.Z,{span:18,children:(0,f.jsx)("div",{className:"".concat(t,"-loading-block")})})]}),(0,f.jsxs)(wn.Z,{gutter:8,children:[(0,f.jsx)(Je.Z,{span:13,children:(0,f.jsx)("div",{className:"".concat(t,"-loading-block")})}),(0,f.jsx)(Je.Z,{span:9,children:(0,f.jsx)("div",{className:"".concat(t,"-loading-block")})})]}),(0,f.jsxs)(wn.Z,{gutter:8,children:[(0,f.jsx)(Je.Z,{span:4,children:(0,f.jsx)("div",{className:"".concat(t,"-loading-block")})}),(0,f.jsx)(Je.Z,{span:3,children:(0,f.jsx)("div",{className:"".concat(t,"-loading-block")})}),(0,f.jsx)(Je.Z,{span:16,children:(0,f.jsx)("div",{className:"".concat(t,"-loading-block")})})]})]}))},Oa=Fa,xt=R(67159),Dn=R(50344),Na=R(34155),Ma=["tab","children"],La=["key","tab","tabKey","disabled","destroyInactiveTabPane","children","className","style","cardProps"];function Ba(n){return n.filter(function(e){return e})}function za(n,e,r){if(n)return n.map(function(a){return(0,i.Z)((0,i.Z)({},a),{},{children:(0,f.jsx)(kn,(0,i.Z)((0,i.Z)({},r==null?void 0:r.cardProps),{},{children:a.children}))})});(0,nn.ET)(!r,"Tabs.TabPane is deprecated. Please use `items` directly.");var t=(0,Dn.Z)(e).map(function(a){if(o.isValidElement(a)){var c=a.key,l=a.props,s=l||{},d=s.tab,u=s.children,v=(0,he.Z)(s,Ma),p=(0,i.Z)((0,i.Z)({key:String(c)},v),{},{children:(0,f.jsx)(kn,(0,i.Z)((0,i.Z)({},r==null?void 0:r.cardProps),{},{children:u})),label:d});return p}return null});return Ba(t)}var Da=function(e){var r=(0,o.useContext)(Ke.ZP.ConfigContext),t=r.getPrefixCls;if(xt.Z.startsWith("5"))return(0,f.jsx)(f.Fragment,{});v
https://procomponents.ant.design/components/editable-table#editable-%E6%96%B0%E5%BB%BA%E8%A1%8C`),new Error("\u8BF7\u8BBE\u7F6E recordCreatorProps.record \u5E76\u8FD4\u56DE\u4E00\u4E2A\u552F\u4E00\u7684key");if(S.add(j),y(Array.from(S)),(E==null?void 0:E.newRecordType)==="dataSource"||n.tableName){var V,X={data:n.dataSource,getRowKey:n.getRowKey,row:(0,i.Z)((0,i.Z)({},L),{},{map_row_parentKey:E!=null&&E.parentKey?(V=Ye(E==null?void 0:E.parentKey))===null||V===void 0?void 0:V.toString():void 0}),key:j,childrenColumnName:n.childrenColumnName||"children"};n.setDataSource(nt(X,(E==null?void 0:E.position)==="top"?"top":"update"))}else a({defaultValue:L,options:(0,i.Z)((0,i.Z)({},E),{},{recordKey:j})});return!0}),x=(0,Be.YB)(),O=(n==null?void 0:n.saveText)||x.getMessage("editableTable.action.save","\u4FDD\u5B58"),k=(n==null?void 0:n.deleteText)||x.getMessage("editableTable.action.delete","\u5220\u9664"),B=(n==null?void 0:n.cancelText)||x.getMessage("editableTable.action.cancel","\u53D6\u6D88"),C=(0,Ee.J)(function(){var L=(0,pe.Z)((0,ee.Z)().mark(function E(j,V,X,q){var W,G,M,H,ne,re,me;return(0,ee.Z)().wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return ie.next=2,n==null||(W=n.onSave)===null||W===void 0?void 0:W.call(n,j,V,X,q);case 2:return H=ie.sent,ie.next=5,U(j);case 5:if(ne=q||d.current||{},re=ne.options,!(!(re!=null&&re.parentKey)&&(re==null?void 0:re.recordKey)===j)){ie.next=9;break}return(re==null?void 0:re.position)==="top"?n.setDataSource([V].concat((0,Ze.Z)(n.dataSource))):n.setDataSource([].concat((0,Ze.Z)(n.dataSource),[V])),ie.abrupt("return",H);case 9:return me={data:n.dataSource,getRowKey:n.getRowKey,row:re?(0,i.Z)((0,i.Z)({},V),{},{map_row_parentKey:(G=Ye((M=re==null?void 0:re.parentKey)!==null&&M!==void 0?M:""))===null||G===void 0?void 0:G.toString()}):V,key:j,childrenColumnName:n.childrenColumnName||"children"},n.setDataSource(nt(me,(re==null?void 0:re.position)==="top"?"top":"update")),ie.next=13,U(j);case 13:return ie.abrupt("return",H);case 14:case"end":return ie.stop()}},E)}));return function(E,j,V,X){return L.apply(this,arguments)}}()),$=(0,Ee.J)(function(){var L=(0,pe.Z)((0,ee.Z)().mark(function E(j,V){var X,q,W;return(0,ee.Z)().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return q={data:n.dataSource,getRowKey:n.getRowKey,row:V,key:j,childrenColumnName:n.childrenColumnName||"children"},M.next=3,n==null||(X=n.onDelete)===null||X===void 0?void 0:X.call(n,j,V);case 3:return W=M.sent,M.next=6,U(j,!1);case 6:return n.setDataSource(nt(q,"delete")),M.abrupt("return",W);case 8:case"end":return M.stop()}},E)}));return function(E,j){return L.apply(this,arguments)}}()),D=(0,Ee.J)(function(){var L=(0,pe.Z)((0,ee.Z)().mark(function E(j,V,X,q){var W,G;return(0,ee.Z)().wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return H.next=2,n==null||(W=n.onCancel)===null||W===void 0?void 0:W.call(n,j,V,X,q);case 2:return G=H.sent,H.abrupt("return",G);case 4:case"end":return H.stop()}},E)}));return function(E,j,V,X){return L.apply(this,arguments)}}()),_=function(E){var j=n.getRowKey(E,E.index),V={saveText:O,cancelText:B,deleteText:k,addEditRecord:I,recordKey:j,cancelEditable:U,index:E.index,tableName:n.tableName,newLineConfig:t,onCancel:D,onDelete:$,onSave:C,editableKeys:g,setEditableRowKeys:y,deletePopconfirmMessage:n.deletePopconfirmMessage||"".concat(x.getMessage("deleteThisLine","\u5220\u9664\u6B64\u9879"),"?")},X=Zo(E,V);return n.tableName?z.current.set(s.current.get(Ye(j))||Ye(j),X.saveRef):z.current.set(Ye(j),X.saveRef),n.actionRender?n.actionRender(E,V,{save:X.save,delete:X.delete,cancel:X.cancel}):[X.save,X.delete,X.cancel]};return{editableKeys:g,setEditableRowKeys:y,isEditable:N,actionRender:_,startEditable:F,cancelEditable:U,addEditRecord:I,saveEditable:P,newLineRecord:t,preEditableKeys:b,onValuesChange:T,getRealIndex:n.getRealIndex}}var sn=R(51812),Kn=R(53914),Ro=R(78164),Rn=R(72051),Io=R(72378),Rt=R.n(Io),md=function(e){return e!=null};function To(n,e,r){var t,a;if(n===!1)return!1;var c=e.total,l=e.current,s=e.pageSize,d=e.setPageInfo,u=(0,xe.Z)(n)==="object"?n:{};return(0,i.Z)((0,i.Z)({
h${t}&,
div&-h${t},
div&-h${t} > textarea,
h${t}
`]=os(n[`fontSizeHeading${t}`],n[`lineHeightHeading${t}`],n.colorTextHeading,n)}),r},is=n=>{const{componentCls:e}=n;return{"a&, a":Object.assign(Object.assign({},(0,ra.N)(n)),{textDecoration:n.linkDecoration,"&:active, &:hover":{textDecoration:n.linkHoverDecoration},[`&[disabled], &${e}-disabled`]:{color:n.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:n.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},ss=n=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:n.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:n.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:as.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:n.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}}),cs=n=>{const{componentCls:e,paddingSM:r}=n,t=r;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:n.calc(n.paddingSM).mul(-1).equal(),marginTop:n.calc(t).mul(-1).equal(),marginBottom:`calc(1em - ${(0,ye.bf)(t)})`},[`${e}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:n.calc(n.marginXS).add(2).equal(),insetBlockEnd:n.marginXS,color:n.colorTextDescription,fontWeight:"normal",fontSize:n.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},ds=n=>({[`${n.componentCls}-copy-success`]:{[`
&,
&:hover,
&:focus`]:{color:n.colorSuccess}},[`${n.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),us=()=>({[`
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"}}),fs=n=>{const{componentCls:e,titleMarginTop:r}=n;return{[e]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:n.colorText,wordBreak:"break-word",lineHeight:n.lineHeight,[`&${e}-secondary`]:{color:n.colorTextDescription},[`&${e}-success`]:{color:n.colorSuccess},[`&${e}-warning`]:{color:n.colorWarning},[`&${e}-danger`]:{color:n.colorError,"a&:active, a&:focus":{color:n.colorErrorActive},"a&:hover":{color:n.colorErrorHover}},[`&${e}-disabled`]:{color:n.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},[`
div&,
p
`]:{marginBottom:"1em"}},ls(n)),{[`
& + h1${e},
& + h2${e},
& + h3${e},
& + h4${e},
& + h5${e}
`]:{marginTop:r},[`
div,
ul,
li,
p,
h1,
h2,
h3,
h4,
h5`]:{[`
+ h1,
+ h2,
+ h3,
+ h4,
+ h5
`]:{marginTop:r}}}),ss(n)),is(n)),{[`
${e}-expand,
${e}-edit,
${e}-copy
`]:Object.assign(Object.assign({},(0,ra.N)(n)),{marginInlineStart:n.marginXXS})}),cs(n)),ds(n)),us()),{"&-rtl":{direction:"rtl"}})}},vs=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"});var aa=(0,er.I$)("Typography",n=>[fs(n)],vs),ms=n=>{const{prefixCls:e,"aria-label":r,className:t,style:a,direction:c,maxLength:l,autoSize:s=!0,value:d,onSave:u,onCancel:v,onEnd:p,component:h,enterIcon:w=o.createElement(ts,null)}=n,m=o.useRef(null),g=o.useRef(!1),y=o.useRef(),[S,b]=o.useState(d);o.useEffect(()=>{b(d)},[d]),o.useEffect(()=>{if(m.current&&m.current.resizableTextArea){const{textArea:C}=m.current.resizableTextArea;C.focus();const{length:$}=C.value;C.setSelectionRange($,$)}},[]);const N=C=>{let{target:$}=C;b($.value.replace(/[\n\r]/g,""))},F=()=>{g.current=!0},U=()=>{g.current=!1},A=C=>{let{keyCode:$}=C;g.current||(y.current=$)},T=()=>{u(S.trim())},z=C=>{let{keyCode:$,ctrlKey:D,altKey:_,metaKey:L,shiftKey:E}=C;y.current===$&&!g.current&&!D&&!_&&!L&&!E&&($===On.Z.ENTER?(T(),p==null||p()):$===On.Z.ESC&&v())},P=()=>{T()},I=h?`${e}-${h}`:"",[x,O,k]=aa(e),B=oe()(e,`${e}-edit-content`,{[`${e}-rtl`]:c==="rtl"},t,I,O,k);return x(o.createElement("div",{className:B,style:a},o.createElement(rs.Z,{ref:m,maxLength:l,value:S,onChange:N,onKeyDown:A,onKeyUp:z,onCompositionStart:F,onCompositionEnd:U,onBlur:P,"aria-label":r,rows:1,autoSize:s}),w!==null?(0,Zr.Tm)(w,{className:`${e}-edit-content-confirm`}):null))};function or(n,e){return o.useMemo(()=>{const r=!!n;return[r,Object.assign(Object.assign({},e),r&&typeof n=="object"?n:null)]},[n])}var ps=(n,e)=>{const r=o.useRef(!1);o.useEffect(()=>{r.current?n():r.current=!0},e)},gs=function(n,e){var r={};for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&e.indexOf(t)<0&&(r[t]=n[t]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,t=Object.getOwnPropertySymbols(n);a<t.length;a++)e.indexOf(t[a])<0&&Object.prototype.propertyIsEnumerable.call(n,t[a])&&(r[t[a]]=n[t[a]]);return r},oa=o.forwardRef((n,e)=>{const{prefixCls:r,component:t="article",className:a,rootClassName:c,setContentRef:l,children:s,direction:d,style:u}=n,v=gs(n,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:p,direction:h,typography:w}=o.useContext(An.E_),m=d!=null?d:h;let g=e;l&&(g=(0,ea.sQ)(e,l));const y=p("typography",r),[S,b,N]=aa(y),F=oe()(y,w==null?void 0:w.className,{[`${y}-rtl`]:m==="rtl"},a,c,b,N),U=Object.assign(Object.assign({},w==null?void 0:w.style),u);return S(o.createElement(t,Object.assign({className:F,style:U,ref:g},v),s))}),hs=R(48820),ys=function(e,r){return o.createElement(ar.Z,(0,we.Z)({},e,{ref:r,icon:hs.Z}))},bs=o.forwardRef(ys);function la(n){return n===!1?[!1,!1]:Array.isArray(n)?n:[n]}function Nt(n,e,r){return n===!0||n===void 0?e:n||r&&e}function Ss(n){const{prefixCls:e,copied:r,locale:t={},onCopy:a,iconOnly:c,tooltips:l,icon:s}=n,d=la(l),u=la(s),{copied:v,copy:p}=t,h=r?Nt(d[1],v):Nt(d[0],p),m=typeof h=="string"?h:r?v:p;return o.createElement(cn.Z,{key:"copy",title:h},o.createElement(ta,{className:oe()(`${e}-copy`,{[`${e}-copy-success`]:r,[`${e}-copy-icon-only`]:c}),onClick:a,"aria-label":m},r?Nt(u[1],o.createElement(Ar.Z,null),!0):Nt(u[0],o.createElement(bs,null),!0)))}const ia=o.forwardRef((n,e)=>{let{style:r,children:t}=n;const a=o.useRef(null);return o.useImperativeHandle(e,()=>({isExceed:()=>{const c=a.current;return c.scrollHeight>c.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)"},r)},t)});function sa(n){const e=typeof n;return e==="string"||e==="number"}function Cs(n){let e=0;return n.forEach(r=>{sa(r)?e+=String(r).length:e+=1}),e}function ca(n,e){let r=0;const t=[];for(let a=0;a<n.length;a+=1){if(r===e)return t;const c=n[a],s=sa(c)?String(c).length:1,d=r+s;if(d>e){const u=e-r;return t.push(String(c).slice(0,u)),t}t.push(c),r=d}return n}const lr=0,ir=1,sr=2,da=3,ua={display:"-webkit-box",overflow:"hidden",WebkitBoxOrien