(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6301],{64335:function(ue,ae,c){"use strict";var p=c(67294),Z=(0,p.createContext)({});ae.Z=Z},16254:function(ue){ue.exports=pe,ue.exports.parse=Z,ue.exports.compile=M,ue.exports.tokensToFunction=y,ue.exports.tokensToRegExp=be;var ae="/",c="./",p=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");function Z(E,z){for(var T=[],A=0,g=0,l="",ye=z&&z.delimiter||ae,se=z&&z.delimiters||c,D=!1,L;(L=p.exec(E))!==null;){var ce=L[0],de=L[1],J=L.index;if(l+=E.slice(g,J),g=J+ce.length,de){l+=de[1],D=!0;continue}var me="",Ie=E[g],De=L[2],Xe=L[3],Le=L[4],we=L[5];if(!D&&l.length){var xe=l.length-1;se.indexOf(l[xe])>-1&&(me=l[xe],l=l.slice(0,xe))}l&&(T.push(l),l="",D=!1);var lt=me!==""&&Ie!==void 0&&Ie!==me,Ye=we==="+"||we==="*",k=we==="?"||we==="*",x=me||ye,w=Xe||Le;T.push({name:De||A++,prefix:me,delimiter:x,optional:k,repeat:Ye,partial:lt,pattern:w?b(w):"[^"+P(x)+"]+?"})}return(l||g-1;else{var me=J.repeat?"(?:"+J.pattern+")(?:"+P(J.delimiter)+"(?:"+J.pattern+"))*":J.pattern;z&&z.push(J),J.optional?J.partial?L+=P(J.prefix)+"("+me+")?":L+="(?:"+P(J.prefix)+"("+me+"))?":L+=P(J.prefix)+"("+me+")"}}return l?(A||(L+="(?:"+ye+")?"),L+=D==="$"?"$":"(?="+D+")"):(A||(L+="(?:"+ye+"(?="+D+"))?"),ce||(L+="(?="+ye+"|"+D+")")),new RegExp(L,W(T))}function pe(E,z,T){return E instanceof RegExp?ee(E,z):Array.isArray(E)?oe(E,z,T):I(E,z,T)}},80430:function(ue){"use strict";var ae=!1,c=function(){};if(ae){var p=function(M,y){var P=arguments.length;y=new Array(P>1?P-1:0);for(var b=1;b2?P-2:0);for(var b=2;b=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 u=1,s="",a=t+1;if(n[a]==="?")throw new TypeError('Pattern cannot start with "?" at '+a);for(;a-1:G===void 0;i||(C+="(?:"+v+"(?="+f+"))?"),q||(C+="(?="+v+"|"+f+")")}return new RegExp(C,$(t))}function B(n,e,t){return n instanceof RegExp?V(n,e):Array.isArray(n)?ne(n,e,t):te(n,e,t)}function F(n,e){return e>>>n|e<<32-n}function ie(n,e,t){return n&e^~n&t}function X(n,e,t){return n&e^n&t^e&t}function fe(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 ut(n){return F(17,n)^F(19,n)^n>>>10}function Ct(n,e){return n[e&15]+=ut(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],O,_,Y,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 st(){O=new Array(8),_=new Array(2),Y=new Array(64),_[0]=_[1]=0,O[0]=1779033703,O[1]=3144134277,O[2]=1013904242,O[3]=2773480762,O[4]=1359893119,O[5]=2600822924,O[6]=528734635,O[7]=1541459225}function Je(){var n,e,t,r,i,a,o,u,s,d,m=new Array(16);n=O[0],e=O[1],t=O[2],r=O[3],i=O[4],a=O[5],o=O[6],u=O[7];for(var f=0;f<16;f++)m[f]=Y[(f<<2)+3]|Y[(f<<2)+2]<<8|Y[(f<<2)+1]<<16|Y[f<<2]<<24;for(var v=0;v<64;v++)s=u+Re(i)+ie(i,a,o)+bt[v],v<16?s+=m[v]:s+=Ct(m,v),d=fe(n)+X(n,e,t),u=o,o=a,a=i,i=Fe(r,s),r=t,t=e,e=n,n=Fe(s,d);O[0]+=n,O[1]+=e,O[2]+=t,O[3]+=r,O[4]+=i,O[5]+=a,O[6]+=o,O[7]+=u}function ct(n,e){var t,r,i=0;r=_[0]>>3&63;var a=e&63;for((_[0]+=e<<3)>29,t=0;t+63>3&63;if(Y[n++]=128,n<=56)for(var e=n;e<56;e++)Y[e]=0;else{for(var t=n;t<64;t++)Y[t]=0;Je();for(var r=0;r<56;r++)Y[r]=0}Y[56]=_[1]>>>24&255,Y[57]=_[1]>>>16&255,Y[58]=_[1]>>>8&255,Y[59]=_[1]&255,Y[60]=_[0]>>>24&255,Y[61]=_[0]>>>16&255,Y[62]=_[0]>>>8&255,Y[63]=_[0]&255,Je()}function Wt(){for(var n=0,e=new Array(32),t=0;t<8;t++)e[n++]=O[t]>>>24&255,e[n++]=O[t]>>>16&255,e[n++]=O[t]>>>8&255,e[n++]=O[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(O[e]>>>t&15);return n}function Mt(n){return st(),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,u;try{for(t=t.call(n);!(i=(o=t.next()).done)&&(r.push(o.value),!(e&&r.length===e));i=!0);}catch(s){a=!0,u=s}finally{try{!i&&t.return!=null&&t.return()}finally{if(a)throw u}}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,u;return{s:function(){t=t.call(n)},n:function(){var d=t.next();return a=d.done,d},e:function(d){o=!0,u=d},f:function(){try{!a&&t.return!=null&&t.return()}finally{if(o)throw u}}}}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 re(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,u=o===void 0?"":o,s=e.children||e[ve],d=i.name,m=d===void 0?e.name:d,f=i.icon,v=f===void 0?e.icon:f,C=i.hideChildren,R=C===void 0?e.hideChildren:C,N=i.flatMenu,h=N===void 0?e.flatMenu:N,S=a&&Object.keys(a).join(",")!=="redirect"?[re({path:u,menu:i},a)].concat(s||[]):s,j=re({},e);if(m&&(j.name=m),v&&(j.icon=v),S&&S.length){if(R)return delete j[ve],delete j.children,j;var Q=Nt(re(re({},t),{},{data:S}),e);if(h)return Q;j[ve]=Q}return j},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[ve])||je(o.children)||o.path||o.originPath||o.layout?!0:(o.redirect||o.unaccessible,!1):!1}).filter(function(o){var u,s;return(o==null||(u=o.menu)===null||u===void 0?void 0:u.name)||(o==null?void 0:o.flatMenu)||(o==null||(s=o.menu)===null||s===void 0?void 0:s.flatMenu)?!0:o.menu!==!1}).map(function(o){var u=re({},o);return u.unaccessible&&delete u.name,u.path==="*"&&(u.path="."),u.path==="/*"&&(u.path="."),!u.path&&u.originPath&&(u.path=u.originPath),u}).map(function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{path:"/"},u=o.children||o[ve],s=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,C=v===void 0?[]:v,R=e.children,N=e.icon,h=e.flatMenu,S=e.indexRoute,j=e.routes,Q=qn(e,Ln),G=new Set([].concat(Ut(C),Ut(o.parentKeys||[])));e.key&&G.add(e.key);var q=re(re(re({},Q),{},{menu:void 0},o),{},{path:s,locale:m,key:o.key||tr(re(re({},o),{},{path:s})),pro_layout_parentKeys:Array.from(G).filter(function(le){return le&&le!=="/"})});if(f?q.name=f:delete q.name,q.menu===void 0&&delete q.menu,je(u)){var H=Nt(re(re({},n),{},{data:u,parentName:m||""}),q);je(H)&&(q[ve]=H,q.children=H)}return rr(q,n)}).flat(1)}var ar=Le(Nt,J()),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[ve])||je(t.children))&&!t.hideInMenu&&!t.redirect}).map(function(t){var r=re({},t),i=r.children||r[ve];if(je(i)&&!r.hideChildrenInMenu&&i.some(function(u){return u&&!!u.name})){var a,o=n(i);if(o.length)return re(re({},r),{},(a={},qe(a,ve,o),qe(a,"children",o),a))}return re(re({},t),{},qe({},ve,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()),u;try{for(o.s();!(u=o.n()).done;){var s=Bn(u.value,2),d=s[0],m=s[1],f=et(d);if(!Pt(d)&&B(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(u){var s=u.children||u[ve];je(s)&&i(s,u);var d=Vt(u.path,o?o.path:"/");t.set(et(d),u)})};return r(e),t},ur=Le(lr,J()),sr=function n(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(function(t){var r=t.children||t[ve];if(je(r)){var i=n(r);if(i.length)return re(re({},t),{},qe({},ve,i))}var a=re({},t);return delete a[ve],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?sr(a):ir(a),u=ur(a);return{breadcrumb:u,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[ve];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&&B("".concat(a)).test(t)||B("".concat(a),[]).test(t)||B("".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),u=vr(o,e||"/",i);return!u||u.length<1?[]:(r||(u=[u[u.length-1]]),u.map(function(s){var d=a[s]||{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),he=c.n(mr),kt=c(97435),hr=c(21770),_t=c(29405),pr=c(38069),yr=c(80430),xr=c.n(yr),xi=c(7700),Cr=c(83832),Ci=c(57338),br=c(83107),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),ht=c(28682),jr=c(1351),Er=c(76629),Mi=c(18446),Sr=c(19586),pt=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}},wt=Nr;function wr(n){return/\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(n)}var Or=wr,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(wt(e)||Or(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),u=t.props,s=u.subMenuItemRender,d=u.prefixCls,m=u.menu,f=u.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}),C=s?s((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:C,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(N){var h;wt(r==null?void 0:r.path)&&window.open(r.path,"_blank"),(h=r.onTitleClick)===null||h===void 0||h.call(r,N)}}},this.getIntlName=function(r){var i=r.name,a=r.locale,o=t.props,u=o.menu,s=o.formatMessage;return a&&(u==null?void 0:u.locale)!==!1?s==null?void 0:s({id:a,defaultMessage:i}):i},this.getMenuItemPath=function(r,i){var a=t.conversionPath(r.path||"/"),o=t.props,u=o.location,s=u===void 0?{pathname:"/"}:u,d=o.isMobile,m=o.onCollapse,f=o.menuItemRender,v=o.iconPrefixes,C=t.getIntlName(r),R=t.props.prefixCls,N=i?null:ln(r.icon,v),h=wt(a),S=(0,l.jsxs)("span",{className:he()("".concat(R,"-menu-item"),(0,I.Z)({},"".concat(R,"-menu-item-link"),h)),children:[N,(0,l.jsx)("span",{className:"".concat(R,"-menu-item-title"),children:C})]});if(f){var j=(0,g.Z)((0,g.Z)({},r),{},{isUrl:h,itemPath:a,isMobile:d,replace:a===s.pathname,onClick:function(){h&&window.open(a,"_blank"),m&&m(!0)},children:void 0});return f(j,S,t.props)}return S},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},un=function(e){var t=e.theme,r=e.mode,i=e.className,a=e.handleOpenChange,o=e.style,u=e.menuData,s=e.menu,d=e.matchMenuKeys,m=e.iconfontUrl,f=e.collapsed,v=e.selectedKeys,C=e.onSelect,R=e.openKeys,N=(0,M.useRef)([]),h=mt.useContainer(),S=h.flatMenuKeys,j=(0,se.Z)(s==null?void 0:s.defaultOpenAll),Q=(0,A.Z)(j,2),G=Q[0],q=Q[1],H=(0,se.Z)(function(){return(s==null?void 0:s.defaultOpenAll)?rn(u)||[]:R===!1?!1:[]},{value:R===!1?void 0:R,onChange:a}),le=(0,A.Z)(H,2),ge=le[0],K=le[1],Ze=(0,se.Z)([],{value:v,onChange:C?function(Ae){C&&Ae&&C(Ae)}:void 0}),Ee=(0,A.Z)(Ze,2),Se=Ee[0],Pe=Ee[1];(0,M.useEffect)(function(){(s==null?void 0:s.defaultOpenAll)||R===!1||S.length||d&&(K(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),!G&&R!==!1&&d.join("-")!==(ge||[]).join("-")){var Ae=d;(s==null?void 0:s.autoClose)===!1&&(Ae=Array.from(new Set([].concat((0,pt.Z)(d),(0,pt.Z)(ge||[]))))),K(Ae)}else(s==null?void 0:s.ignoreFlatMenu)&&G?K(rn(u)):S.length>0&&q(!1)},[d.join("-"),f]);var ze=(0,M.useMemo)(function(){return Fr(ge,e)},[ge&&ge.join(","),e.layout,e.collapsed]),He=(0,M.useState)(function(){return new Dr(e)}),We=(0,A.Z)(He,1),Ne=We[0];if(s==null?void 0:s.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 Oe=he()(i,{"top-nav-menu":r==="horizontal"});Ne.props=e,e.openKeys===!1&&!e.handleOpenChange&&(N.current=d);var Me=e.postMenuData?e.postMenuData(u):u;return Me&&(Me==null?void 0:Me.length)<1?null:(0,M.createElement)(ht.Z,(0,g.Z)((0,g.Z)({},ze),{},{key:"Menu",mode:r,items:Ne.getNavMenuItems(Me,!1),inlineIndent:16,defaultOpenKeys:N.current,theme:t,selectedKeys:Se,style:o,className:Oe,onOpenChange:K},e.menuProps))};un.defaultProps={postMenuData:function(e){return e||[]}};var sn=un,Ar=oe.Z.Sider,cn=function(e){return typeof e=="string"?(0,l.jsx)("img",{src:e,alt:"logo"}):typeof e=="function"?e():e},Ot=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 u=cn(r),s=(0,l.jsx)("h1",{children:i!=null?i:"Ant Design Pro"});return o?o(u,e.collapsed?null:s,e):a==="mix"&&t==="menuHeaderRender"?null:(0,l.jsxs)("a",{children:[u,e.collapsed?null:s]})},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,u=e.theme,s=e.siderWidth,d=e.isMobile,m=e.onMenuHeaderClick,f=e.breakpoint,v=f===void 0?"lg":f,C=e.style,R=e.layout,N=e.menuExtraRender,h=N===void 0?!1:N,S=e.collapsedButtonRender,j=S===void 0?dn:S,Q=e.links,G=e.menuContentRender,q=e.prefixCls,H=e.onOpenChange,le=e.headerHeight,ge=e.logoStyle,K="".concat(q,"-sider"),Ze=mt.useContainer(),Ee=Ze.flatMenuKeys,Se=he()("".concat(K),(t={},(0,I.Z)(t,"".concat(K,"-fixed"),i),(0,I.Z)(t,"".concat(K,"-layout-").concat(R),R&&!d),(0,I.Z)(t,"".concat(K,"-light"),u!=="dark"),t)),Pe=Ot(e),ze=h&&h(e),He=G!==!1&&Ee&&(0,M.createElement)(sn,(0,g.Z)((0,g.Z)({},e),{},{key:"base-menu",mode:"inline",handleOpenChange:H,style:{width:"100%"},className:"".concat(K,"-menu")})),We=G?G(e,He):He,Ne=(Q||[]).map(function(Oe,Me){return{className:"".concat(K,"-link"),label:Oe,key:Me}});return j&&!d&&Ne.push({className:"".concat(K,"-collapsed-button"),title:!1,key:"collapsed",onClick:function(){o&&o(!r)},label:j(r)}),(0,l.jsxs)(l.Fragment,{children:[i&&(0,l.jsx)("div",{style:(0,g.Z)({width:r?48:s,overflow:"hidden",flex:"0 0 ".concat(r?48:s,"px"),maxWidth:r?48:s,minWidth:r?48:s,transition:"background-color 0.3s, min-width 0.3s, max-width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"},C)}),(0,l.jsxs)(Ar,{collapsible:!0,trigger:null,collapsed:r,breakpoint:v===!1?void 0:v,onCollapse:function(Me){d||o==null||o(Me)},collapsedWidth:48,style:(0,g.Z)({overflow:"hidden",paddingTop:R==="mix"&&!d?le:void 0},C),width:s,theme:u,className:Se,children:[Pe&&(0,l.jsx)("div",{className:he()("".concat(K,"-logo"),(0,I.Z)({},"".concat(K,"-collapsed"),r)),onClick:R!=="mix"?m:void 0,id:"logo",style:ge,children:Pe}),ze&&(0,l.jsx)("div",{className:"".concat(K,"-extra ").concat(!Pe&&"".concat(K,"-extra-no-logo")),children:ze}),(0,l.jsx)("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden"},children:We}),(0,l.jsx)("div",{className:"".concat(K,"-links"),children:(0,l.jsx)(ht.Z,{theme:u,inlineIndent:16,className:"".concat(K,"-link-menu"),selectedKeys:[],openKeys:[],mode:"inline",items:Ne})}),a&&(0,l.jsx)("div",{className:he()("".concat(K,"-footer"),(0,I.Z)({},"".concat(K,"-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,u=e.style,s=e.className,d=e.hide,m=e.getContainer,f=e.prefixCls,v=e.matchMenuKeys,C=mt.useContainer(),R=C.setFlatMenuKeys;(0,M.useEffect)(function(){if(!(!r||r.length<1)){var h=Qt(r);R(Object.keys(h))}},[v.join("-")]),(0,M.useEffect)(function(){t===!0&&(o==null||o(!0))},[t]);var N=(0,kt.Z)(e,["className","style"]);return d?null:t?(0,l.jsx)(br.Z,{visible:!a,placement:"left",className:he()("".concat(f,"-drawer-sider"),s),onClose:function(){return o==null?void 0:o(!0)},style:(0,g.Z)({padding:0,height:"100vh"},u),getContainer:m,width:i,bodyStyle:{height:"100vh",padding:0,display:"flex",flexDirection:"row"},children:(0,l.jsx)(fn,(0,g.Z)((0,g.Z)({},N),{},{className:he()("".concat(f,"-sider"),s),collapsed:t?!1:a,splitMenus:!1}))}):(0,l.jsx)(fn,(0,g.Z)((0,g.Z)({className:he()("".concat(f,"-sider"),s)},N),{},{style:u}))},vn=Lr,Br=c(63485),zr=c(16254),Tt=c.n(zr),Hr=function(e,t,r){if(r){var i=(0,pt.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,u=e.formatMessage,s=e.title,d=e.menu,m=d===void 0?{locale:!1}:d,f=t?"":s||"",v=Hr(i,a,o);if(!v)return{title:f,id:"",pageName:f};var C=v.name;return m.locale!==!1&&v.locale&&u&&(C=u({id:v.locale||"",defaultMessage:v.name})),C?t||!s?{title:C,id:v.locale||"",pageName:C}:{title:"".concat(C," - ").concat(s),id:v.locale||"",pageName:C}:{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,E.Z)(e,Gr),a=(0,M.useState)("auto"),o=(0,A.Z)(a,2),u=o[0],s=o[1],d=(0,Kr.Z)(function(){var m=(0,pe.Z)((0,be.Z)().mark(function f(v){return(0,be.Z)().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:s(v);case 1:case"end":return R.stop()}},f)}));return function(f){return m.apply(this,arguments)}}(),160);return(0,l.jsx)("div",{className:"".concat(r,"-right-content"),style:{minWidth:u},children:(0,l.jsx)("div",{style:{paddingRight:8},children:(0,l.jsx)(Ur.default,{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:u}))})})})})},Xr=function(e){var t=(0,M.useRef)(null),r=e.theme,i=e.onMenuHeaderClick,a=e.contentWidth,o=e.rightContentRender,u=e.className,s=e.style,d=e.headerContentRender,m=e.layout,f="".concat(e.prefixCls||"ant-pro","-top-nav-header"),v=Ot((0,g.Z)((0,g.Z)({},e),{},{collapsed:!1}),m==="mix"?"headerTitleRender":void 0),C=he()(f,u,{light:r==="light"}),R=(0,l.jsx)(sn,(0,g.Z)((0,g.Z)({},e),e.menuProps)),N=d?d==null?void 0:d(e,R):R;return(0,l.jsx)("div",{className:C,style:s,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:N}),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,u=o===void 0?dn:o,s=e.rightContentRender,d=e.menuHeaderRender,m=e.onMenuHeaderClick,f=e.className,v=e.style,C=e.layout,R=e.children,N=e.headerTheme,h=N===void 0?"dark":N,S=e.splitMenus,j=e.menuData,Q=e.prefixCls,G=(0,M.useContext)(T.ZP.ConfigContext),q=G.direction,H="".concat(Q,"-global-header"),le=he()(f,H,(0,I.Z)({},"".concat(H,"-layout-").concat(C),C&&h==="dark"));if(C==="mix"&&!t&&S){var ge=(j||[]).map(function(Se){return(0,g.Z)((0,g.Z)({},Se),{},{children:void 0,routes:void 0})}),K=tt(ge);return(0,l.jsx)(mn,(0,g.Z)((0,g.Z)({mode:"horizontal"},e),{},{splitMenus:!1,menuData:K,theme:h}))}var Ze=he()("".concat(H,"-logo"),(0,I.Z)({},"".concat(H,"-logo-rtl"),q==="rtl")),Ee=(0,l.jsx)("span",{className:Ze,children:(0,l.jsx)("a",{children:cn(r)})},"logo");return(0,l.jsxs)("div",{className:le,style:(0,g.Z)({},v),children:[t&&Yr(d,Ee),t&&u&&(0,l.jsx)("span",{className:"".concat(H,"-collapsed-button"),onClick:function(){a&&a(!i)},children:u(i)}),C==="mix"&&!t&&(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:Ze,onClick:m,children:Ot((0,g.Z)((0,g.Z)({},e),{},{collapsed:!1}),"headerTitleRender")})}),(0,l.jsx)("div",{style:{flex:1},children:R}),s&&s(e)]})},Jr=Qr,Ni=c(2828),hn=oe.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