(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6301],{64335:function(ce,re,c){"use strict";var C=c(67294),Z=(0,C.createContext)({});re.Z=Z},16254:function(ce){ce.exports=pe,ce.exports.parse=Z,ce.exports.compile=M,ce.exports.tokensToFunction=x,ce.exports.tokensToRegExp=Ce;var re="/",c="./",C=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");function Z(j,B){for(var T=[],A=0,g=0,l="",he=B&&B.delimiter||re,oe=B&&B.delimiters||c,D=!1,I;(I=C.exec(j))!==null;){var le=I[0],se=I[1],Q=I.index;if(l+=j.slice(g,Q),g=Q+le.length,se){l+=se[1],D=!0;continue}var ge="",Ie=j[g],De=I[2],Xe=I[3],Le=I[4],Oe=I[5];if(!D&&l.length){var ye=l.length-1;oe.indexOf(l[ye])>-1&&(ge=l[ye],l=l.slice(0,ye))}l&&(T.push(l),l="",D=!1);var lt=ge!==""&&Ie!==void 0&&Ie!==ge,Ye=Oe==="+"||Oe==="*",J=Oe==="?"||Oe==="*",h=ge||he,O=Xe||Le;T.push({name:De||A++,prefix:ge,delimiter:h,optional:J,repeat:Ye,partial:lt,pattern:O?S(O):"[^"+N(h)+"]+?"})}return(l||g-1;else{var ge=Q.repeat?"(?:"+Q.pattern+")(?:"+N(Q.delimiter)+"(?:"+Q.pattern+"))*":Q.pattern;B&&B.push(Q),Q.optional?Q.partial?I+=N(Q.prefix)+"("+ge+")?":I+="(?:"+N(Q.prefix)+"("+ge+"))?":I+=N(Q.prefix)+"("+ge+")"}}return l?(A||(I+="(?:"+he+")?"),I+=D==="$"?"$":"(?="+D+")"):(A||(I+="(?:"+he+"(?="+D+"))?"),le||(I+="(?="+he+"|"+D+")")),new RegExp(I,ie(T))}function pe(j,B,T){return j instanceof RegExp?Me(j,B):Array.isArray(j)?ve(j,B,T):H(j,B,T)}},80430:function(ce){"use strict";var re=!1,c=function(){};if(re){var C=function(M,x){var N=arguments.length;x=new Array(N>1?N-1:0);for(var S=1;S2?N-2:0);for(var S=2;S=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||o===95){i+=n[a++];continue}break}if(!i)throw new TypeError("Missing parameter name at "+t);e.push({type:"NAME",index:t,value:i}),t=a;continue}if(r==="("){var s=1,u="",a=t+1;if(n[a]==="?")throw new TypeError('Pattern cannot start with "?" at '+a);for(;a-1:U===void 0;i||(y+="(?:"+v+"(?="+f+"))?"),_||(y+="(?="+v+"|"+f+")")}return new RegExp(y,W(t))}function L(n,e,t){return n instanceof RegExp?G(n,e):Array.isArray(n)?ee(n,e,t):q(n,e,t)}function F(n,e){return e>>>n|e<<32-n}function ne(n,e,t){return n&e^~n&t}function V(n,e,t){return n&e^n&t^e&t}function ue(n){return F(2,n)^F(13,n)^F(22,n)}function Re(n){return F(6,n)^F(11,n)^F(25,n)}function Qe(n){return F(7,n)^F(18,n)^n>>>3}function st(n){return F(17,n)^F(19,n)^n>>>10}function Ct(n,e){return n[e&15]+=st(n[e+14&15])+n[e+9&15]+Qe(n[e+1&15])}var bt=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],w,k,X,Be="0123456789abcdef";function Fe(n,e){var t=(n&65535)+(e&65535),r=(n>>16)+(e>>16)+(t>>16);return r<<16|t&65535}function ut(){w=new Array(8),k=new Array(2),X=new Array(64),k[0]=k[1]=0,w[0]=1779033703,w[1]=3144134277,w[2]=1013904242,w[3]=2773480762,w[4]=1359893119,w[5]=2600822924,w[6]=528734635,w[7]=1541459225}function Je(){var n,e,t,r,i,a,o,s,u,d,m=new Array(16);n=w[0],e=w[1],t=w[2],r=w[3],i=w[4],a=w[5],o=w[6],s=w[7];for(var f=0;f<16;f++)m[f]=X[(f<<2)+3]|X[(f<<2)+2]<<8|X[(f<<2)+1]<<16|X[f<<2]<<24;for(var v=0;v<64;v++)u=s+Re(i)+ne(i,a,o)+bt[v],v<16?u+=m[v]:u+=Ct(m,v),d=ue(n)+V(n,e,t),s=o,o=a,a=i,i=Fe(r,u),r=t,t=e,e=n,n=Fe(u,d);w[0]+=n,w[1]+=e,w[2]+=t,w[3]+=r,w[4]+=i,w[5]+=a,w[6]+=o,w[7]+=s}function ct(n,e){var t,r,i=0;r=k[0]>>3&63;var a=e&63;for((k[0]+=e<<3)>29,t=0;t+63>3&63;if(X[n++]=128,n<=56)for(var e=n;e<56;e++)X[e]=0;else{for(var t=n;t<64;t++)X[t]=0;Je();for(var r=0;r<56;r++)X[r]=0}X[56]=k[1]>>>24&255,X[57]=k[1]>>>16&255,X[58]=k[1]>>>8&255,X[59]=k[1]&255,X[60]=k[0]>>>24&255,X[61]=k[0]>>>16&255,X[62]=k[0]>>>8&255,X[63]=k[0]&255,Je()}function Wt(){for(var n=0,e=new Array(32),t=0;t<8;t++)e[n++]=w[t]>>>24&255,e[n++]=w[t]>>>16&255,e[n++]=w[t]>>>8&255,e[n++]=w[t]&255;return e}function ft(){for(var n=new String,e=0;e<8;e++)for(var t=28;t>=0;t-=4)n+=Be.charAt(w[e]>>>t&15);return n}function Mt(n){return ut(),ct(n,n.length),dt(),ft()}var Zt=Mt;function Rt(n){return Rt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rt(n)}var Ln=["pro_layout_parentKeys","children","icon","flatMenu","indexRoute","routes"];function Bn(n,e){return Wn(n)||Hn(n,e)||Et(n,e)||zn()}function zn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hn(n,e){var t=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var r=[],i=!0,a=!1,o,s;try{for(t=t.call(n);!(i=(o=t.next()).done)&&(r.push(o.value),!(e&&r.length===e));i=!0);}catch(u){a=!0,s=u}finally{try{!i&&t.return!=null&&t.return()}finally{if(a)throw s}}return r}}function Wn(n){if(Array.isArray(n))return n}function $n(n,e){var t=typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(!t){if(Array.isArray(n)||(t=Et(n))||e&&n&&typeof n.length=="number"){t&&(n=t);var r=0,i=function(){};return{s:i,n:function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(d){throw d},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){t=t.call(n)},n:function(){var d=t.next();return a=d.done,d},e:function(d){o=!0,s=d},f:function(){try{!a&&t.return!=null&&t.return()}finally{if(o)throw s}}}}function Kn(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function $t(n,e){for(var t=0;tn.length)&&(e=n.length);for(var t=0,r=new Array(e);t=0)&&(!Object.prototype.propertyIsEnumerable.call(n,r)||(t[r]=n[r]))}return t}function er(n,e){if(n==null)return{};var t={},r=Object.keys(n),i,a;for(a=0;a=0)&&(t[i]=n[i]);return t}function Gt(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function te(n){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"/";return e.endsWith("/*")?e.replace("/*","/"):(e||t).startsWith("/")||Pt(e)?e:"/".concat(t,"/").concat(e).replace(/\/\//g,"/").replace(/\/\//g,"/")},rr=function(e,t){var r=e.menu,i=r===void 0?{}:r,a=e.indexRoute,o=e.path,s=o===void 0?"":o,u=e.children||e[de],d=i.name,m=d===void 0?e.name:d,f=i.icon,v=f===void 0?e.icon:f,y=i.hideChildren,b=y===void 0?e.hideChildren:y,P=i.flatMenu,p=P===void 0?e.flatMenu:P,E=a&&Object.keys(a).join(",")!=="redirect"?[te({path:s,menu:i},a)].concat(u||[]):u,R=te({},e);if(m&&(R.name=m),v&&(R.icon=v),E&&E.length){if(b)return delete R[de],delete R.children,R;var Y=Nt(te(te({},t),{},{data:E}),e);if(p)return Y;R[de]=Y}return R},je=function(e){return Array.isArray(e)&&e.length>0};function Nt(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{path:"/"},t=n.data,r=n.formatMessage,i=n.parentName,a=n.locale;return!t||!Array.isArray(t)?[]:t.filter(function(o){return o?je(o[de])||je(o.children)||o.path||o.originPath||o.layout?!0:(o.redirect||o.unaccessible,!1):!1}).filter(function(o){var s,u;return(o==null||(s=o.menu)===null||s===void 0?void 0:s.name)||(o==null?void 0:o.flatMenu)||(o==null||(u=o.menu)===null||u===void 0?void 0:u.flatMenu)?!0:o.menu!==!1}).map(function(o){var s=te({},o);return s.unaccessible&&delete s.name,s.path==="*"&&(s.path="."),s.path==="/*"&&(s.path="."),!s.path&&s.originPath&&(s.path=s.originPath),s}).map(function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{path:"/"},s=o.children||o[de],u=Vt(o.path,e?e.path:"/"),d=o.name,m=nr(o,i||"menu"),f=m!==!1&&a!==!1&&r&&m?r({id:m,defaultMessage:d}):d,v=e.pro_layout_parentKeys,y=v===void 0?[]:v,b=e.children,P=e.icon,p=e.flatMenu,E=e.indexRoute,R=e.routes,Y=qn(e,Ln),U=new Set([].concat(Ut(y),Ut(o.parentKeys||[])));e.key&&U.add(e.key);var _=te(te(te({},Y),{},{menu:void 0},o),{},{path:u,locale:m,key:o.key||tr(te(te({},o),{},{path:u})),pro_layout_parentKeys:Array.from(U).filter(function(ae){return ae&&ae!=="/"})});if(f?_.name=f:delete _.name,_.menu===void 0&&delete _.menu,je(s)){var z=Nt(te(te({},n),{},{data:s,parentName:m||""}),_);je(z)&&(_[de]=z,_.children=z)}return rr(_,n)}).flat(1)}var ar=Le(Nt,Q()),ir=function n(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.filter(function(t){return t&&(t.name||je(t[de])||je(t.children))&&!t.hideInMenu&&!t.redirect}).map(function(t){var r=te({},t),i=r.children||r[de];if(je(i)&&!r.hideChildrenInMenu&&i.some(function(s){return s&&!!s.name})){var a,o=n(i);if(o.length)return te(te({},r),{},(a={},qe(a,de,o),qe(a,"children",o),a))}return te(te({},t),{},qe({},de,void 0))}).filter(function(t){return t})},or=function(n){Gn(t,n);var e=Vn(t);function t(){return Kn(this,t),e.apply(this,arguments)}return Un(t,[{key:"get",value:function(i){var a;try{var o=$n(this.entries()),s;try{for(o.s();!(s=o.n()).done;){var u=Bn(s.value,2),d=u[0],m=u[1],f=et(d);if(!Pt(d)&&L(f,[]).test(i)){a=m;break}}}catch(v){o.e(v)}finally{o.f()}}catch(v){a=void 0}return a}}]),t}(jt(Map)),lr=function(e){var t=new or,r=function i(a,o){a.forEach(function(s){var u=s.children||s[de];je(u)&&i(u,s);var d=Vt(s.path,o?o.path:"/");t.set(et(d),s)})};return r(e),t},sr=Le(lr,Q()),ur=function n(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(function(t){var r=t.children||t[de];if(je(r)){var i=n(r);if(i.length)return te(te({},t),{},qe({},de,i))}var a=te({},t);return delete a[de],delete a.children,a}).filter(function(t){return t})},cr=function(e,t,r,i){var a=ar({data:e,formatMessage:r,locale:t}),o=i?ur(a):ir(a),s=sr(a);return{breadcrumb:s,menuData:o}},Xt=cr;function Yt(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function gt(n){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:[],t={};return e.forEach(function(r){if(!(!r||!r.key)){var i=r.children||r[de];t[et(r.path||r.key||"/")]=gt({},r),t[r.key||r.path||"/"]=gt({},r),i&&(t=gt(gt({},t),n(i)))}}),t},Qt=fr,vr=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;return e.filter(function(i){if(i==="/"&&t==="/")return!0;if(i!=="/"&&i!=="/*"&&i&&!Pt(i)){var a=et(i);try{if(r&&L("".concat(a)).test(t)||L("".concat(a),[]).test(t)||L("".concat(a,"/(.*)")).test(t))return!0}catch(o){}}return!1}).sort(function(i,a){return i===t?10:a===t?-10:i.substr(1).split("/").length-a.substr(1).split("/").length})},gr=function(e,t,r,i){var a=Qt(t),o=Object.keys(a),s=vr(o,e||"/",i);return!s||s.length<1?[]:(r||(s=[s[s.length-1]]),s.map(function(u){var d=a[u]||{pro_layout_parentKeys:"",key:""},m=new Map,f=(d.pro_layout_parentKeys||[]).map(function(v){return m.has(v)?null:(m.set(v,!0),a[v])}).filter(function(v){return v});return d.key&&f.push(d),f}).flat(1))},Jt=gr,mr=c(94184),me=c.n(mr),kt=c(97435),pr=c(21770),_t=c(29405),hr=c(38069),yr=c(80430),xr=c.n(yr),xi=c(7700),Cr=c(83832),Ci=c(57338),br=c(273),Mr=c(57186);function Zr(){var n=(0,M.useState)([]),e=(0,A.Z)(n,2),t=e[0],r=e[1];return{flatMenuKeys:t,setFlatMenuKeys:r}}var Rr=(0,Mr.f)(Zr),mt=Rr,bi=c(30887),pt=c(28682),jr=c(1351),Er=c(76629),Mi=c(18446),Sr=c(19586),ht=c(85061),qt=c(5991),en=c(6610),tn=c(91321),Pr=c(16165),Nr=function(e){if(!e||!e.startsWith("http"))return!1;try{var t=new URL(e);return!!t}catch(r){return!1}},Ot=Nr;function Or(n){return/\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(n)}var wr=Or,Tr={navTheme:"dark",layout:"side",contentWidth:"Fluid",fixedHeader:!1,fixSiderbar:!1,headerHeight:48,iconfontUrl:"",primaryColor:"#1890ff",splitMenus:!1},nn=Tr,rn=function n(e){return(e||[]).reduce(function(t,r){if(r.key&&t.push(r.key),r.routes){var i=t.concat(n(r.routes)||[]);return i}return t},[])},an={daybreak:"#1890ff",dust:"#F5222D",volcano:"#FA541C",sunset:"#FAAD14",cyan:"#13C2C2",green:"#52C41A",geekblue:"#2F54EB",purple:"#722ED1"};function Zi(n){return n&&an[n]?an[n]:n}function tt(n){return n.map(function(e){var t=e.children||e.routes,r=(0,g.Z)({},e);if(!r.name||r.hideInMenu)return null;if(r&&(r==null?void 0:r.routes)){if(!r.hideChildrenInMenu&&t.some(function(i){return i&&i.name&&!i.hideInMenu}))return(0,g.Z)((0,g.Z)({},e),{},{children:tt(t),routes:tt(t)});delete r.routes,delete r.children}return r}).filter(function(e){return e})}var Ri=c(43361),on=(0,tn.Z)({scriptUrl:nn.iconfontUrl}),ln=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"icon-";if(typeof e=="string"&&e!==""){if(Ot(e)||wr(e))return(0,l.jsx)(Pr.Z,{component:function(){return(0,l.jsx)("img",{src:e,alt:"icon",className:"ant-pro-sider-menu-icon"})}});if(e.startsWith(t))return(0,l.jsx)(on,{type:e})}return e},Dr=(0,qt.Z)(function n(e){var t=this;(0,en.Z)(this,n),this.props=void 0,this.getNavMenuItems=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],i=arguments.length>1?arguments[1]:void 0;return r.map(function(a){return t.getSubMenuOrItem(a,i)}).filter(function(a){return a})},this.getSubMenuOrItem=function(r,i){var a=(r==null?void 0:r.children)||(r==null?void 0:r.routes);if(Array.isArray(a)&&a.length>0){var o=t.getIntlName(r),s=t.props,u=s.subMenuItemRender,d=s.prefixCls,m=s.menu,f=s.iconPrefixes,v=r.icon?(0,l.jsxs)("span",{className:"".concat(d,"-menu-item"),title:o,children:[!i&&ln(r.icon,f),(0,l.jsx)("span",{className:"".concat(d,"-menu-item-title"),children:o})]}):(0,l.jsx)("span",{className:"".concat(d,"-menu-item"),title:o,children:o}),y=u?u((0,g.Z)((0,g.Z)({},r),{},{isUrl:!1}),v,t.props):v;return{type:(m==null?void 0:m.type)==="group"?"group":void 0,label:y,children:t.getNavMenuItems(a,!0),onTitleClick:r.onTitleClick,key:r.key||r.path}}return{label:t.getMenuItemPath(r,i),title:t.getIntlName(r),key:r.key||r.path,disabled:r.disabled,onClick:function(P){var p;Ot(r==null?void 0:r.path)&&window.open(r.path,"_blank"),(p=r.onTitleClick)===null||p===void 0||p.call(r,P)}}},this.getIntlName=function(r){var i=r.name,a=r.locale,o=t.props,s=o.menu,u=o.formatMessage;return a&&(s==null?void 0:s.locale)!==!1?u==null?void 0:u({id:a,defaultMessage:i}):i},this.getMenuItemPath=function(r,i){var a=t.conversionPath(r.path||"/"),o=t.props,s=o.location,u=s===void 0?{pathname:"/"}:s,d=o.isMobile,m=o.onCollapse,f=o.menuItemRender,v=o.iconPrefixes,y=t.getIntlName(r),b=t.props.prefixCls,P=i?null:ln(r.icon,v),p=Ot(a),E=(0,l.jsxs)("span",{className:me()("".concat(b,"-menu-item"),(0,H.Z)({},"".concat(b,"-menu-item-link"),p)),children:[P,(0,l.jsx)("span",{className:"".concat(b,"-menu-item-title"),children:y})]});if(f){var R=(0,g.Z)((0,g.Z)({},r),{},{isUrl:p,itemPath:a,isMobile:d,replace:a===u.pathname,onClick:function(){p&&window.open(a,"_blank"),m&&m(!0)},children:void 0});return f(R,E,t.props)}return E},this.conversionPath=function(r){return r&&r.indexOf("http")===0?r:"/".concat(r||"").replace(/\/+/g,"/")},this.props=e}),Fr=function(e,t){var r=t.layout,i=t.collapsed,a={};return e&&!i&&["side","mix"].includes(r||"mix")&&(a={openKeys:e}),a},sn=function(e){var t=e.theme,r=e.mode,i=e.className,a=e.handleOpenChange,o=e.style,s=e.menuData,u=e.menu,d=e.matchMenuKeys,m=e.iconfontUrl,f=e.collapsed,v=e.selectedKeys,y=e.onSelect,b=e.openKeys,P=(0,M.useRef)([]),p=mt.useContainer(),E=p.flatMenuKeys,R=(0,oe.Z)(u==null?void 0:u.defaultOpenAll),Y=(0,A.Z)(R,2),U=Y[0],_=Y[1],z=(0,oe.Z)(function(){return(u==null?void 0:u.defaultOpenAll)?rn(s)||[]:b===!1?!1:[]},{value:b===!1?void 0:b,onChange:a}),ae=(0,A.Z)(z,2),fe=ae[0],$=ae[1],Ze=(0,oe.Z)([],{value:v,onChange:y?function(Ae){y&&Ae&&y(Ae)}:void 0}),Ee=(0,A.Z)(Ze,2),Se=Ee[0],Pe=Ee[1];(0,M.useEffect)(function(){(u==null?void 0:u.defaultOpenAll)||b===!1||E.length||d&&($(d),Pe(d))},[d.join("-")]),(0,M.useEffect)(function(){m&&(on=(0,tn.Z)({scriptUrl:m}))},[m]),(0,M.useEffect)(function(){if(d.join("-")!==(Se||[]).join("-")&&Pe(d),!U&&b!==!1&&d.join("-")!==(fe||[]).join("-")){var Ae=d;(u==null?void 0:u.autoClose)===!1&&(Ae=Array.from(new Set([].concat((0,ht.Z)(d),(0,ht.Z)(fe||[]))))),$(Ae)}else(u==null?void 0:u.ignoreFlatMenu)&&U?$(rn(s)):E.length>0&&_(!1)},[d.join("-"),f]);var ze=(0,M.useMemo)(function(){return Fr(fe,e)},[fe&&fe.join(","),e.layout,e.collapsed]),He=(0,M.useState)(function(){return new Dr(e)}),We=(0,A.Z)(He,1),Ne=We[0];if(u==null?void 0:u.loading)return(0,l.jsx)("div",{style:(r==null?void 0:r.includes("inline"))?{padding:24}:{marginTop:16},children:(0,l.jsx)(Sr.Z,{active:!0,title:!1,paragraph:{rows:(r==null?void 0:r.includes("inline"))?6:1}})});var we=me()(i,{"top-nav-menu":r==="horizontal"});Ne.props=e,e.openKeys===!1&&!e.handleOpenChange&&(P.current=d);var be=e.postMenuData?e.postMenuData(s):s;return be&&(be==null?void 0:be.length)<1?null:(0,M.createElement)(pt.Z,(0,g.Z)((0,g.Z)({},ze),{},{key:"Menu",mode:r,items:Ne.getNavMenuItems(be,!1),inlineIndent:16,defaultOpenKeys:P.current,theme:t,selectedKeys:Se,style:o,className:we,onOpenChange:$},e.menuProps))};sn.defaultProps={postMenuData:function(e){return e||[]}};var un=sn,Ar=ve.Z.Sider,cn=function(e){return typeof e=="string"?(0,l.jsx)("img",{src:e,alt:"logo"}):typeof e=="function"?e():e},wt=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"menuHeaderRender",r=e.logo,i=e.title,a=e.layout,o=e[t||""];if(o===!1)return null;var s=cn(r),u=(0,l.jsx)("h1",{children:i!=null?i:"Ant Design Pro"});return o?o(s,e.collapsed?null:u,e):a==="mix"&&t==="menuHeaderRender"?null:(0,l.jsxs)("a",{children:[s,e.collapsed?null:u]})},dn=function(e){return e?(0,l.jsx)(jr.Z,{}):(0,l.jsx)(Er.Z,{})},Ir=function(e){var t,r=e.collapsed,i=e.fixSiderbar,a=e.menuFooterRender,o=e.onCollapse,s=e.theme,u=e.siderWidth,d=e.isMobile,m=e.onMenuHeaderClick,f=e.breakpoint,v=f===void 0?"lg":f,y=e.style,b=e.layout,P=e.menuExtraRender,p=P===void 0?!1:P,E=e.collapsedButtonRender,R=E===void 0?dn:E,Y=e.links,U=e.menuContentRender,_=e.prefixCls,z=e.onOpenChange,ae=e.headerHeight,fe=e.logoStyle,$="".concat(_,"-sider"),Ze=mt.useContainer(),Ee=Ze.flatMenuKeys,Se=me()("".concat($),(t={},(0,H.Z)(t,"".concat($,"-fixed"),i),(0,H.Z)(t,"".concat($,"-layout-").concat(b),b&&!d),(0,H.Z)(t,"".concat($,"-light"),s!=="dark"),t)),Pe=wt(e),ze=p&&p(e),He=U!==!1&&Ee&&(0,M.createElement)(un,(0,g.Z)((0,g.Z)({},e),{},{key:"base-menu",mode:"inline",handleOpenChange:z,style:{width:"100%"},className:"".concat($,"-menu")})),We=U?U(e,He):He,Ne=(Y||[]).map(function(we,be){return{className:"".concat($,"-link"),label:we,key:be}});return R&&!d&&Ne.push({className:"".concat($,"-collapsed-button"),title:!1,key:"collapsed",onClick:function(){o&&o(!r)},label:R(r)}),(0,l.jsxs)(l.Fragment,{children:[i&&(0,l.jsx)("div",{style:(0,g.Z)({width:r?48:u,overflow:"hidden",flex:"0 0 ".concat(r?48:u,"px"),maxWidth:r?48:u,minWidth:r?48:u,transition:"background-color 0.3s, min-width 0.3s, max-width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"},y)}),(0,l.jsxs)(Ar,{collapsible:!0,trigger:null,collapsed:r,breakpoint:v===!1?void 0:v,onCollapse:function(be){d||o==null||o(be)},collapsedWidth:48,style:(0,g.Z)({overflow:"hidden",paddingTop:b==="mix"&&!d?ae:void 0},y),width:u,theme:s,className:Se,children:[Pe&&(0,l.jsx)("div",{className:me()("".concat($,"-logo"),(0,H.Z)({},"".concat($,"-collapsed"),r)),onClick:b!=="mix"?m:void 0,id:"logo",style:fe,children:Pe}),ze&&(0,l.jsx)("div",{className:"".concat($,"-extra ").concat(!Pe&&"".concat($,"-extra-no-logo")),children:ze}),(0,l.jsx)("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden"},children:We}),(0,l.jsx)("div",{className:"".concat($,"-links"),children:(0,l.jsx)(pt.Z,{theme:s,inlineIndent:16,className:"".concat($,"-link-menu"),selectedKeys:[],openKeys:[],mode:"inline",items:Ne})}),a&&(0,l.jsx)("div",{className:me()("".concat($,"-footer"),(0,H.Z)({},"".concat($,"-footer-collapsed"),!r)),children:a(e)})]})]})},fn=Ir,Lr=function(e){var t=e.isMobile,r=e.menuData,i=e.siderWidth,a=e.collapsed,o=e.onCollapse,s=e.style,u=e.className,d=e.hide,m=e.getContainer,f=e.prefixCls,v=e.matchMenuKeys,y=mt.useContainer(),b=y.setFlatMenuKeys;(0,M.useEffect)(function(){if(!(!r||r.length<1)){var p=Qt(r);b(Object.keys(p))}},[v.join("-")]),(0,M.useEffect)(function(){t===!0&&(o==null||o(!0))},[t]);var P=(0,kt.Z)(e,["className","style"]);return d?null:t?(0,l.jsx)(br.Z,{visible:!a,placement:"left",className:me()("".concat(f,"-drawer-sider"),u),onClose:function(){return o==null?void 0:o(!0)},style:(0,g.Z)({padding:0,height:"100vh"},s),getContainer:m,width:i,bodyStyle:{height:"100vh",padding:0,display:"flex",flexDirection:"row"},children:(0,l.jsx)(fn,(0,g.Z)((0,g.Z)({},P),{},{className:me()("".concat(f,"-sider"),u),collapsed:t?!1:a,splitMenus:!1}))}):(0,l.jsx)(fn,(0,g.Z)((0,g.Z)({className:me()("".concat(f,"-sider"),u)},P),{},{style:s}))},vn=Lr,Br=c(63485),zr=c(16254),Tt=c.n(zr),Hr=function(e,t,r){if(r){var i=(0,ht.Z)(r.keys()).find(function(o){return Tt()(o).test(e)});if(i)return r.get(i)}if(t){var a=Object.keys(t).find(function(o){return Tt()(o).test(e)});if(a)return t[a]}return{path:""}},gn=function(e,t){var r=e.pathname,i=r===void 0?"/":r,a=e.breadcrumb,o=e.breadcrumbMap,s=e.formatMessage,u=e.title,d=e.menu,m=d===void 0?{locale:!1}:d,f=t?"":u||"",v=Hr(i,a,o);if(!v)return{title:f,id:"",pageName:f};var y=v.name;return m.locale!==!1&&v.locale&&s&&(y=s({id:v.locale||"",defaultMessage:v.name})),y?t||!u?{title:y,id:v.locale||"",pageName:y}:{title:"".concat(y," - ").concat(u),id:v.locale||"",pageName:y}:{title:f,id:v.locale||"",pageName:f}},ji=function(e,t){return gn(e,t).title},Ei=null,Wr=c(10379),$r=c(44144),Kr=c(10178),Ur=c(48717),Si=c(17212),Gr=["rightContentRender","prefixCls"],Vr=function(e){var t=e.rightContentRender,r=e.prefixCls,i=(0,j.Z)(e,Gr),a=(0,M.useState)("auto"),o=(0,A.Z)(a,2),s=o[0],u=o[1],d=(0,Kr.Z)(function(){var m=(0,pe.Z)((0,Ce.Z)().mark(function f(v){return(0,Ce.Z)().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:u(v);case 1:case"end":return b.stop()}},f)}));return function(f){return m.apply(this,arguments)}}(),160);return(0,l.jsx)("div",{className:"".concat(r,"-right-content"),style:{minWidth:s},children:(0,l.jsx)("div",{style:{paddingRight:8},children:(0,l.jsx)(Ur.Z,{onResize:function(f){var v=f.width;d.run(v)},children:t&&(0,l.jsx)("div",{className:"".concat(r,"-right-content-resize"),children:t((0,g.Z)((0,g.Z)({},i),{},{rightContentSize:s}))})})})})},Xr=function(e){var t=(0,M.useRef)(null),r=e.theme,i=e.onMenuHeaderClick,a=e.contentWidth,o=e.rightContentRender,s=e.className,u=e.style,d=e.headerContentRender,m=e.layout,f="".concat(e.prefixCls||"ant-pro","-top-nav-header"),v=wt((0,g.Z)((0,g.Z)({},e),{},{collapsed:!1}),m==="mix"?"headerTitleRender":void 0),y=me()(f,s,{light:r==="light"}),b=(0,l.jsx)(un,(0,g.Z)((0,g.Z)({},e),e.menuProps)),P=d?d==null?void 0:d(e,b):b;return(0,l.jsx)("div",{className:y,style:u,children:(0,l.jsxs)("div",{ref:t,className:"".concat(f,"-main ").concat(a==="Fixed"?"wide":""),children:[v&&(0,l.jsx)("div",{className:"".concat(f,"-main-left"),onClick:i,children:(0,l.jsx)("div",{className:"".concat(f,"-logo"),id:"logo",children:v},"logo")}),(0,l.jsx)("div",{style:{flex:1},className:"".concat(f,"-menu"),children:P}),o&&(0,l.jsx)(Vr,(0,g.Z)({rightContentRender:o,prefixCls:f},e))]})})},mn=Xr,Pi=c(17124),Yr=function(e,t){return e===!1?null:e?e(t,null):t},Qr=function(e){var t=e.isMobile,r=e.logo,i=e.collapsed,a=e.onCollapse,o=e.collapsedButtonRender,s=o===void 0?dn:o,u=e.rightContentRender,d=e.menuHeaderRender,m=e.onMenuHeaderClick,f=e.className,v=e.style,y=e.layout,b=e.children,P=e.headerTheme,p=P===void 0?"dark":P,E=e.splitMenus,R=e.menuData,Y=e.prefixCls,U=(0,M.useContext)(T.ZP.ConfigContext),_=U.direction,z="".concat(Y,"-global-header"),ae=me()(f,z,(0,H.Z)({},"".concat(z,"-layout-").concat(y),y&&p==="dark"));if(y==="mix"&&!t&&E){var fe=(R||[]).map(function(Se){return(0,g.Z)((0,g.Z)({},Se),{},{children:void 0,routes:void 0})}),$=tt(fe);return(0,l.jsx)(mn,(0,g.Z)((0,g.Z)({mode:"horizontal"},e),{},{splitMenus:!1,menuData:$,theme:p}))}var Ze=me()("".concat(z,"-logo"),(0,H.Z)({},"".concat(z,"-logo-rtl"),_==="rtl")),Ee=(0,l.jsx)("span",{className:Ze,children:(0,l.jsx)("a",{children:cn(r)})},"logo");return(0,l.jsxs)("div",{className:ae,style:(0,g.Z)({},v),children:[t&&Yr(d,Ee),t&&s&&(0,l.jsx)("span",{className:"".concat(z,"-collapsed-button"),onClick:function(){a&&a(!i)},children:s(i)}),y==="mix"&&!t&&(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:Ze,onClick:m,children:wt((0,g.Z)((0,g.Z)({},e),{},{collapsed:!1}),"headerTitleRender")})}),(0,l.jsx)("div",{style:{flex:1},children:b}),u&&u(e)]})},Jr=Qr,Ni=c(2828),pn=ve.Z.Header,kr=function(n){(0,Wr.Z)(t,n);var e=(0,$r.Z)(t);function t(){var r;(0,en.Z)(this,t);for(var i=arguments.length,a=new Array(i),o=0;o