(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8009],{64335:function(fe,w,n){"use strict";var B=n(67294),J=(0,B.createContext)({});w.Z=J},85224:function(fe,w,n){"use strict";var B=n(28991),J=n(84305),Z=n(75901),L=n(81253),H=n(85893),Q=n(94184),p=n.n(Q),$=n(97435),I=n(67294),O=n(64335),R=n(56264),U=n.n(R),q=["children","className","extra","style","renderContent"],l=function(S){var z=S.children,G=S.className,X=S.extra,ne=S.style,Y=S.renderContent,oe=(0,L.Z)(S,q),ue=(0,I.useContext)(Z.ZP.ConfigContext),ve=ue.getPrefixCls,k=S.prefixCls||ve("pro"),me="".concat(k,"-footer-bar"),E=(0,I.useContext)(O.Z),le=(0,I.useMemo)(function(){var ee=E.hasSiderMenu,_=E.isMobile,te=E.siderWidth;if(!!ee)return te?_?"100%":"calc(100% - ".concat(te,"px)"):"100%"},[E.collapsed,E.hasSiderMenu,E.isMobile,E.siderWidth]),se=(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)("div",{className:"".concat(me,"-left"),children:X}),(0,H.jsx)("div",{className:"".concat(me,"-right"),children:z})]});return(0,I.useEffect)(function(){return!E||!(E==null?void 0:E.setHasFooterToolbar)?function(){}:(E==null||E.setHasFooterToolbar(!0),function(){var ee;E==null||(ee=E.setHasFooterToolbar)===null||ee===void 0||ee.call(E,!1)})},[]),(0,H.jsx)("div",(0,B.Z)((0,B.Z)({className:p()(G,"".concat(me)),style:(0,B.Z)({width:le},ne)},(0,$.Z)(oe,["prefixCls"])),{},{children:Y?Y((0,B.Z)((0,B.Z)((0,B.Z)({},S),E),{},{leftWidth:le}),se):se}))};w.Z=l},21349:function(fe,w,n){"use strict";var B=n(84305),J=n(75901),Z=n(85893),L=n(94184),H=n.n(L),Q=n(67294),p=n(64335),$=n(53645),I=n.n($),O=function(U){var q=(0,Q.useContext)(p.Z),l=U.children,D=U.contentWidth,S=U.className,z=U.style,G=(0,Q.useContext)(J.ZP.ConfigContext),X=G.getPrefixCls,ne=U.prefixCls||X("pro"),Y=D||q.contentWidth,oe="".concat(ne,"-grid-content");return(0,Z.jsx)("div",{className:H()(oe,S,{wide:Y==="Fixed"}),style:z,children:(0,Z.jsx)("div",{className:"".concat(ne,"-grid-content-children"),children:l})})};w.Z=O},78009:function(fe,w,n){"use strict";n.d(w,{ZP:function(){return Zt}});var B=n(38663),J=n(70883),Z=n(22122),L=n(96156),H=n(6610),Q=n(5991),p=n(10379),$=n(54070),I=n(90484),O=n(94184),R=n.n(O),U=n(48717),q=n(98423),l=n(67294),D=n(53124),S=n(85061),z=n(75164);function G(o){var e,r=function(i){return function(){e=null,o.apply(void 0,(0,S.Z)(i))}},t=function(){if(e==null){for(var i=arguments.length,s=new Array(i),d=0;do.top-r)return r+e.top}function ue(o,e,r){if(r!==void 0&&e.bottom=0;d--)(s=o[d])&&(i=(a<3?s(i):a>3?s(e,r,i):s(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i};function ee(){return typeof window!="undefined"?window:null}var _;(function(o){o[o.None=0]="None",o[o.Prepare=1]="Prepare"})(_||(_={}));var te=function(o){(0,p.Z)(r,o);var e=(0,$.Z)(r);function r(){var t;return(0,H.Z)(this,r),t=e.apply(this,arguments),t.state={status:_.None,lastAffix:!1,prevTarget:null},t.getOffsetTop=function(){var a=t.props,i=a.offsetBottom,s=a.offsetTop;return i===void 0&&s===void 0?0:s},t.getOffsetBottom=function(){return t.props.offsetBottom},t.savePlaceholderNode=function(a){t.placeholderNode=a},t.saveFixedNode=function(a){t.fixedNode=a},t.measure=function(){var a=t.state,i=a.status,s=a.lastAffix,d=t.props.onChange,c=t.getTargetFunc();if(!(i!==_.Prepare||!t.fixedNode||!t.placeholderNode||!c)){var v=t.getOffsetTop(),m=t.getOffsetBottom(),h=c();if(!!h){var f={status:_.None},x=Y(h),u=Y(t.placeholderNode),C=oe(u,x,v),N=ue(u,x,m);C!==void 0?(f.affixStyle={position:"fixed",top:C,width:u.width,height:u.height},f.placeholderStyle={width:u.width,height:u.height}):N!==void 0&&(f.affixStyle={position:"fixed",bottom:N,width:u.width,height:u.height},f.placeholderStyle={width:u.width,height:u.height}),f.lastAffix=!!f.affixStyle,d&&s!==f.lastAffix&&d(f.lastAffix),t.setState(f)}}},t.prepareMeasure=function(){if(t.setState({status:_.Prepare,affixStyle:void 0,placeholderStyle:void 0}),!1)var a},t}return(0,Q.Z)(r,[{key:"getTargetFunc",value:function(){var a=this.context.getTargetContainer,i=this.props.target;return i!==void 0?i:a||ee}},{key:"componentDidMount",value:function(){var a=this,i=this.getTargetFunc();i&&(this.timeout=setTimeout(function(){E(i(),a),a.updatePosition()}))}},{key:"componentDidUpdate",value:function(a){var i=this.state.prevTarget,s=this.getTargetFunc(),d=(s==null?void 0:s())||null;i!==d&&(le(this),d&&(E(d,this),this.updatePosition()),this.setState({prevTarget:d})),(a.offsetTop!==this.props.offsetTop||a.offsetBottom!==this.props.offsetBottom)&&this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout),le(this),this.updatePosition.cancel(),this.lazyUpdatePosition.cancel()}},{key:"updatePosition",value:function(){this.prepareMeasure()}},{key:"lazyUpdatePosition",value:function(){var a=this.getTargetFunc(),i=this.state.affixStyle;if(a&&i){var s=this.getOffsetTop(),d=this.getOffsetBottom(),c=a();if(c&&this.placeholderNode){var v=Y(c),m=Y(this.placeholderNode),h=oe(m,v,s),f=ue(m,v,d);if(h!==void 0&&i.top===h||f!==void 0&&i.bottom===f)return}}this.prepareMeasure()}},{key:"render",value:function(){var a=this,i=this.state,s=i.affixStyle,d=i.placeholderStyle,c=this.props,v=c.affixPrefixCls,m=c.children,h=R()((0,L.Z)({},v,!!s)),f=(0,q.Z)(this.props,["prefixCls","offsetTop","offsetBottom","target","onChange","affixPrefixCls"]);return l.createElement(U.Z,{onResize:function(){a.updatePosition()}},l.createElement("div",(0,Z.Z)({},f,{ref:this.savePlaceholderNode}),s&&l.createElement("div",{style:d,"aria-hidden":"true"}),l.createElement("div",{className:h,ref:this.saveFixedNode,style:s},l.createElement(U.Z,{onResize:function(){a.updatePosition()}},m))))}}]),r}(l.Component);te.contextType=D.E_,se([X()],te.prototype,"updatePosition",null),se([X()],te.prototype,"lazyUpdatePosition",null);var Ie=l.forwardRef(function(o,e){var r=o.prefixCls,t=l.useContext(D.E_),a=t.getPrefixCls,i=a("affix",r),s=(0,Z.Z)((0,Z.Z)({},o),{affixPrefixCls:i});return l.createElement(te,(0,Z.Z)({},s,{ref:e}))}),Le=Ie,Ft=n(84305),xe=n(75901),Kt=n(59903),Ht=n(94233),zt=n(81262),$t=n(59250),wt=n(30887),Gt=n(49111),Ce=n(28481),Ue=n(6700),We=n(93488),Fe=n(30470),Ke=n(51890),He=n(50344),ze=n(28682),$e=n(96159),we=n(57254),Ge=n(81555),Xe=function(o,e){var r={};for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&e.indexOf(t)<0&&(r[t]=o[t]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,t=Object.getOwnPropertySymbols(o);a0){var M=[];P=d.map(function(y){var W=Ee(y.path,f);W&&M.push(W);var F;return y.children&&y.children.length&&(F=l.createElement(ze.Z,{items:y.children.map(function(K){return{key:K.path||K.breadcrumbName,label:m(K,f,d,ke(M,K.path,f))}})})),l.createElement(ye,{overlay:F,separator:a,key:W||y.breadcrumbName},m(y,f,d,M))})}else c&&(P=(0,He.Z)(c).map(function(y,W){return y&&(0,$e.Tm)(y,{separator:a,key:W})}));var j=R()(T,(0,L.Z)({},"".concat(T,"-rtl"),N==="rtl"),s);return l.createElement("nav",(0,Z.Z)({className:j,style:i},x),l.createElement("ol",null,P))};he.Item=ye,he.Separator=Ye;var _e=he,qe=_e,et=n(42051),tt=n(19650),rt=n(34952),at=function(e,r,t){return!r||!t?null:l.createElement(et.Z,{componentName:"PageHeader"},function(a){var i=a.back;return l.createElement("div",{className:"".concat(e,"-back")},l.createElement(rt.Z,{onClick:function(d){t==null||t(d)},className:"".concat(e,"-back-button"),"aria-label":i},r))})},nt=function(e){return l.createElement(qe,(0,Z.Z)({},e))},ot=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"ltr";return e.backIcon!==void 0?e.backIcon:r==="rtl"?l.createElement(We.Z,null):l.createElement(Ue.Z,null)},it=function(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"ltr",a=r.title,i=r.avatar,s=r.subTitle,d=r.tags,c=r.extra,v=r.onBack,m="".concat(e,"-heading"),h=a||s||d||c;if(!h)return null;var f=ot(r,t),x=at(e,f,v),u=x||i||h;return l.createElement("div",{className:m},u&&l.createElement("div",{className:"".concat(m,"-left")},x,i&&l.createElement(Ke.C,(0,Z.Z)({},i)),a&&l.createElement("span",{className:"".concat(m,"-title"),title:typeof a=="string"?a:void 0},a),s&&l.createElement("span",{className:"".concat(m,"-sub-title"),title:typeof s=="string"?s:void 0},s),d&&l.createElement("span",{className:"".concat(m,"-tags")},d)),c&&l.createElement("span",{className:"".concat(m,"-extra")},l.createElement(tt.Z,null,c)))},lt=function(e,r){return r?l.createElement("div",{className:"".concat(e,"-footer")},r):null},st=function(e,r){return l.createElement("div",{className:"".concat(e,"-content")},r)},dt=function(e){var r=(0,Fe.Z)(!1),t=(0,Ce.Z)(r,2),a=t[0],i=t[1],s=function(c){var v=c.width;i(v<768,!0)};return l.createElement(D.C,null,function(d){var c,v=d.getPrefixCls,m=d.pageHeader,h=d.direction,f,x=e.prefixCls,u=e.style,C=e.footer,N=e.children,P=e.breadcrumb,T=e.breadcrumbRender,M=e.className,j=!0;"ghost"in e?j=e.ghost:m&&"ghost"in m&&(j=m.ghost);var y=v("page-header",x),W=function(){return(P==null?void 0:P.routes)?nt(P):null},F=W(),K=P&&"props"in P,re=(f=T==null?void 0:T(e,F))!==null&&f!==void 0?f:F,A=K?P:re,ie=R()(y,M,(c={"has-breadcrumb":!!A,"has-footer":!!C},(0,L.Z)(c,"".concat(y,"-ghost"),j),(0,L.Z)(c,"".concat(y,"-rtl"),h==="rtl"),(0,L.Z)(c,"".concat(y,"-compact"),a),c));return l.createElement(U.Z,{onResize:s},l.createElement("div",{className:ie,style:u},A,it(y,e,h),N&&st(y,N),lt(y,C)))})},ct=dt,pe=n(81253),g=n(28991),Xt=n(18106),Ze=n(60561),b=n(85893),Oe=n(64335),ft=n(85224),ut=n(21349),vt=n(83832),mt=function(e){if(!e)return 1;var r=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/r},ht=function(e){var r=e.children,t=e.style,a=e.className,i=e.markStyle,s=e.markClassName,d=e.zIndex,c=d===void 0?9:d,v=e.gapX,m=v===void 0?212:v,h=e.gapY,f=h===void 0?222:h,x=e.width,u=x===void 0?120:x,C=e.height,N=C===void 0?64:C,P=e.rotate,T=P===void 0?-22:P,M=e.image,j=e.content,y=e.offsetLeft,W=e.offsetTop,F=e.fontStyle,K=F===void 0?"normal":F,re=e.fontWeight,A=re===void 0?"normal":re,ie=e.fontColor,ge=ie===void 0?"rgba(0,0,0,.15)":ie,Re=e.fontSize,Ne=Re===void 0?16:Re,Te=e.fontFamily,Me=Te===void 0?"sans-serif":Te,Ot=e.prefixCls,Rt=(0,l.useContext)(xe.ZP.ConfigContext),Nt=Rt.getPrefixCls,Be=Nt("pro-layout-watermark",Ot),Tt=R()("".concat(Be,"-wrapper"),a),Mt=R()(Be,s),Bt=(0,l.useState)(""),De=(0,Ce.Z)(Bt,2),Se=De[0],je=De[1];return(0,l.useEffect)(function(){var de=document.createElement("canvas"),V=de.getContext("2d"),ae=mt(V),Dt="".concat((m+u)*ae,"px"),St="".concat((f+N)*ae,"px"),jt=y||m/2,At=W||f/2;if(de.setAttribute("width",Dt),de.setAttribute("height",St),V){V.translate(jt*ae,At*ae),V.rotate(Math.PI/180*Number(T));var It=u*ae,Ae=N*ae;if(M){var ce=new Image;ce.crossOrigin="anonymous",ce.referrerPolicy="no-referrer",ce.src=M,ce.onload=function(){V.drawImage(ce,0,0,It,Ae),je(de.toDataURL())}}else if(j){var Lt=Number(Ne)*ae;V.font="".concat(K," normal ").concat(A," ").concat(Lt,"px/").concat(Ae,"px ").concat(Me),V.fillStyle=ge,Array.isArray(j)?j==null||j.forEach(function(Ut,Wt){return V.fillText(Ut,0,Wt*50)}):V.fillText(j,0,0),je(de.toDataURL())}}else console.error("\u5F53\u524D\u73AF\u5883\u4E0D\u652F\u6301Canvas")},[m,f,y,W,T,K,A,u,N,Me,ge,M,j,Ne]),(0,b.jsxs)("div",{style:(0,g.Z)({position:"relative"},t),className:Tt,children:[r,(0,b.jsx)("div",{className:Mt,style:(0,g.Z)((0,g.Z)({zIndex:c,position:"absolute",left:0,top:0,width:"100%",height:"100%",backgroundSize:"".concat(m+u,"px"),pointerEvents:"none",backgroundRepeat:"repeat"},Se?{backgroundImage:"url('".concat(Se,"')")}:null),i)})]})},gt=ht,Yt=n(12395),xt=["title","content","pageHeaderRender","header","prefixedClassName","extraContent","style","prefixCls","breadcrumbRender"],Ct=["children","loading","className","style","footer","affixProps","ghost","fixedHeader","breadcrumbRender"];function Pt(o){return(0,I.Z)(o)==="object"?o:{spinning:o}}var yt=function(e){var r=e.tabList,t=e.tabActiveKey,a=e.onTabChange,i=e.tabBarExtraContent,s=e.tabProps,d=e.prefixedClassName;return Array.isArray(r)||i?(0,b.jsx)(Ze.Z,(0,g.Z)((0,g.Z)({className:"".concat(d,"-tabs"),activeKey:t,onChange:function(v){a&&a(v)},tabBarExtraContent:i},s),{},{children:r==null?void 0:r.map(function(c,v){return(0,l.createElement)(Ze.Z.TabPane,(0,g.Z)((0,g.Z)({},c),{},{tab:c.tab,key:c.key||v}))})})):null},bt=function(e,r,t){return!e&&!r?null:(0,b.jsx)("div",{className:"".concat(t,"-detail"),children:(0,b.jsx)("div",{className:"".concat(t,"-main"),children:(0,b.jsxs)("div",{className:"".concat(t,"-row"),children:[e&&(0,b.jsx)("div",{className:"".concat(t,"-content"),children:e}),r&&(0,b.jsx)("div",{className:"".concat(t,"-extraContent"),children:r})]})})})},Vt=function(e){var r=useContext(RouteContext);return _jsx("div",{style:{height:"100%",display:"flex",alignItems:"center"},children:_jsx(_Breadcrumb,_objectSpread(_objectSpread(_objectSpread({},r==null?void 0:r.breadcrumb),r==null?void 0:r.breadcrumbProps),e))})},Et=function(e){var r,t=(0,l.useContext)(Oe.Z),a=e.title,i=e.content,s=e.pageHeaderRender,d=e.header,c=e.prefixedClassName,v=e.extraContent,m=e.style,h=e.prefixCls,f=e.breadcrumbRender,x=(0,pe.Z)(e,xt),u=(0,l.useMemo)(function(){if(!!f)return f},[f]);if(s===!1)return null;if(s)return(0,b.jsxs)(b.Fragment,{children:[" ",s((0,g.Z)((0,g.Z)({},e),t))]});var C=a;!a&&a!==!1&&(C=t.title);var N=(0,g.Z)((0,g.Z)((0,g.Z)({},t),{},{title:C},x),{},{footer:yt((0,g.Z)((0,g.Z)({},x),{},{breadcrumbRender:f,prefixedClassName:c}))},d),P=N.breadcrumb,T=(!P||!(P==null?void 0:P.itemRender)&&!(P==null||(r=P.routes)===null||r===void 0?void 0:r.length))&&!f;return["title","subTitle","extra","tags","footer","avatar","backIcon"].every(function(M){return!N[M]})&&T&&!i&&!v?null:(0,b.jsx)("div",{className:"".concat(c,"-warp"),children:(0,b.jsx)(ct,(0,g.Z)((0,g.Z)({},N),{},{breadcrumb:f===!1?void 0:(0,g.Z)((0,g.Z)({},N.breadcrumb),t.breadcrumbProps),breadcrumbRender:u,prefixCls:h,children:(d==null?void 0:d.children)||bt(i,v,c)}))})},pt=function(e){var r,t,a=e.children,i=e.loading,s=i===void 0?!1:i,d=e.className,c=e.style,v=e.footer,m=e.affixProps,h=e.ghost,f=e.fixedHeader,x=e.breadcrumbRender,u=(0,pe.Z)(e,Ct),C=(0,l.useContext)(Oe.Z),N=(0,l.useContext)(xe.ZP.ConfigContext),P=N.getPrefixCls,T=e.prefixCls||P("pro"),M="".concat(T,"-page-container"),j=R()(M,d,(r={},(0,L.Z)(r,"".concat(T,"-page-container-ghost"),h),(0,L.Z)(r,"".concat(T,"-page-container-with-footer"),v),r)),y=(0,l.useMemo)(function(){return a?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"".concat(M,"-children-content"),children:a}),C.hasFooterToolbar&&(0,b.jsx)("div",{style:{height:48,marginTop:24}})]}):null},[a,M,C.hasFooterToolbar]),W=(0,l.useMemo)(function(){var A;return x==!1?!1:x||(u==null||(A=u.header)===null||A===void 0?void 0:A.breadcrumbRender)},[x,u==null||(t=u.header)===null||t===void 0?void 0:t.breadcrumbRender]),F=(0,b.jsx)(Et,(0,g.Z)((0,g.Z)({},u),{},{breadcrumbRender:W,ghost:h,prefixCls:void 0,prefixedClassName:M})),K=(0,l.useMemo)(function(){if(l.isValidElement(s))return s;if(typeof s=="boolean"&&!s)return null;var A=Pt(s);return A.spinning?(0,b.jsx)(vt.Z,(0,g.Z)({},A)):null},[s]),re=(0,l.useMemo)(function(){var A=K||y;if(e.waterMarkProps||C.waterMarkProps){var ie=(0,g.Z)((0,g.Z)({},C.waterMarkProps),e.waterMarkProps);return(0,b.jsx)(gt,(0,g.Z)((0,g.Z)({},ie),{},{children:A}))}return A},[e.waterMarkProps,C.waterMarkProps,K,y]);return(0,b.jsxs)("div",{style:c,className:j,children:[f&&F?(0,b.jsx)(Le,(0,g.Z)((0,g.Z)({offsetTop:C.hasHeader&&C.fixedHeader?C.headerHeight:0},m),{},{children:F})):F,re&&(0,b.jsx)(ut.Z,{children:re}),v&&(0,b.jsx)(ft.Z,{prefixCls:T,children:v})]})},Zt=pt},56264:function(){},53645:function(){},12395:function(){},70883:function(){},81262:function(){},59903:function(){},34952:function(fe,w,n){"use strict";var B=n(22122),J=n(15105),Z=n(67294),L=function(p,$){var I={};for(var O in p)Object.prototype.hasOwnProperty.call(p,O)&&$.indexOf(O)<0&&(I[O]=p[O]);if(p!=null&&typeof Object.getOwnPropertySymbols=="function")for(var R=0,O=Object.getOwnPropertySymbols(p);R