From 8ef5bc709756449b8709685ea5933b5f9a99a732 Mon Sep 17 00:00:00 2001 From: imhuwq Date: Mon, 4 Mar 2024 15:30:25 +0800 Subject: [PATCH 01/10] bugfix(dependencies): upgrade dependencies' version to avoid vulnerable bugs --- requirements.txt | 4 ++-- setup.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/requirements.txt b/requirements.txt index ee409f7..87b4ad5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ celery==5.2.7 click==8.1.3 -cryptography==41.0.2 -Django==4.1.10 +cryptography==42.0.5 +Django==4.2.10 djangorestframework==3.14.0 django-cors-headers==3.13.0 numpy==1.22.0 diff --git a/setup.py b/setup.py index 4c0d64c..f552e56 100644 --- a/setup.py +++ b/setup.py @@ -14,8 +14,8 @@ install_requires = [ "celery==5.2.7", "click==8.1.3", - "cryptography==41.0.2", - "Django==4.1.10", + "cryptography==42.0.5", + "Django==4.2.10", "djangorestframework==3.14.0", "django-cors-headers==3.13.0", "numpy==1.22.0", From 59d3e700ca5acd618a9048ee2f30a310b9523402 Mon Sep 17 00:00:00 2001 From: fredzhu Date: Tue, 12 Mar 2024 12:38:48 +0800 Subject: [PATCH 02/10] feat(dataset): fix dataset filter update logic --- .../server/static/20.4f772983.async.js.map | 1 - ...4f772983.async.js => 20.85fcbb81.async.js} | 2 - ...6c6168c.async.js => 222.33ccd216.async.js} | 2 - .../server/static/222.a6c6168c.async.js.map | 1 - ...b953a00.async.js => 233.3d91ac9a.async.js} | 2 - .../server/static/233.9b953a00.async.js.map | 1 - .../server/static/422.622bc3b6.async.js.map | 1 - ...22bc3b6.async.js => 422.f952182a.async.js} | 2 - .../server/static/742.57cebfa0.async.js.map | 1 - ...7cebfa0.async.js => 742.bbe64d32.async.js} | 3 +- ...31421c9.async.js => 851.1072d61f.async.js} | 3 +- .../server/static/851.131421c9.async.js.map | 1 - deepdataspace/server/static/index.html | 4 +- .../layouts__index.18db7c0b.chunk.css.map | 1 - ....css => layouts__index.cf0de806.chunk.css} | 2 - ..._DatasetList__index.0f643c55.chunk.css.map | 1 - ... p__DatasetList__index.cbd96143.chunk.css} | 2 - ...s => p__Dataset__index.a1af859f.chunk.css} | 2 - .../p__Dataset__index.e261a835.chunk.css.map | 1 - ...ab__Datasets__index.2c17e085.chunk.css.map | 1 - ...__Lab__Datasets__index.e9f4c3ea.chunk.css} | 2 - ...ab__FlagTool__index.be3332fd.chunk.css.map | 1 - ...__Lab__FlagTool__index.c0569e06.chunk.css} | 2 - .../p__Lab__index.133bb551.chunk.css.map | 1 - ...k.css => p__Lab__index.28ea9971.chunk.css} | 2 - ...css => p__Login__index.26727079.chunk.css} | 2 - .../p__Login__index.e3ef503c.chunk.css.map | 1 - ...ject__Detail__index.85029923.chunk.css.map | 1 - ...Project__Detail__index.9b99b574.chunk.css} | 2 - ...t__Workspace__index.17ab0171.chunk.css.map | 1 - ...ject__Workspace__index.983f52a6.chunk.css} | 2 - .../p__Project__index.0a5e0e7e.chunk.css.map | 1 - ...s => p__Project__index.711b5411.chunk.css} | 2 - ...ugin-layout__Layout.383e10cb.chunk.css.map | 1 - ..._plugin-layout__Layout.8f39539f.chunk.css} | 2 - .../server/static/umi.0e5412b2.js.map | 1 - .../{umi.0e5412b2.js => umi.66cd8dc0.js} | 93 +++++++++---------- .../{umi.ac821cfa.css => umi.99ffc894.css} | 2 - .../server/static/umi.ac821cfa.css.map | 1 - deepdataspace/server/templates/index.html | 4 +- packages/app/.umirc.ts | 1 - packages/app/src/models/dataset/common.tsx | 1 + 42 files changed, 53 insertions(+), 107 deletions(-) delete mode 100644 deepdataspace/server/static/20.4f772983.async.js.map rename deepdataspace/server/static/{20.4f772983.async.js => 20.85fcbb81.async.js} (99%) rename deepdataspace/server/static/{222.a6c6168c.async.js => 222.33ccd216.async.js} (99%) delete mode 100644 deepdataspace/server/static/222.a6c6168c.async.js.map rename deepdataspace/server/static/{233.9b953a00.async.js => 233.3d91ac9a.async.js} (99%) delete mode 100644 deepdataspace/server/static/233.9b953a00.async.js.map delete mode 100644 deepdataspace/server/static/422.622bc3b6.async.js.map rename deepdataspace/server/static/{422.622bc3b6.async.js => 422.f952182a.async.js} (99%) delete mode 100644 deepdataspace/server/static/742.57cebfa0.async.js.map rename deepdataspace/server/static/{742.57cebfa0.async.js => 742.bbe64d32.async.js} (99%) rename deepdataspace/server/static/{851.131421c9.async.js => 851.1072d61f.async.js} (99%) delete mode 100644 deepdataspace/server/static/851.131421c9.async.js.map delete mode 100644 deepdataspace/server/static/layouts__index.18db7c0b.chunk.css.map rename deepdataspace/server/static/{layouts__index.18db7c0b.chunk.css => layouts__index.cf0de806.chunk.css} (98%) delete mode 100644 deepdataspace/server/static/p__DatasetList__index.0f643c55.chunk.css.map rename deepdataspace/server/static/{p__DatasetList__index.0f643c55.chunk.css => p__DatasetList__index.cbd96143.chunk.css} (97%) rename deepdataspace/server/static/{p__Dataset__index.e261a835.chunk.css => p__Dataset__index.a1af859f.chunk.css} (98%) delete mode 100644 deepdataspace/server/static/p__Dataset__index.e261a835.chunk.css.map delete mode 100644 deepdataspace/server/static/p__Lab__Datasets__index.2c17e085.chunk.css.map rename deepdataspace/server/static/{p__Lab__Datasets__index.2c17e085.chunk.css => p__Lab__Datasets__index.e9f4c3ea.chunk.css} (98%) delete mode 100644 deepdataspace/server/static/p__Lab__FlagTool__index.be3332fd.chunk.css.map rename deepdataspace/server/static/{p__Lab__FlagTool__index.be3332fd.chunk.css => p__Lab__FlagTool__index.c0569e06.chunk.css} (98%) delete mode 100644 deepdataspace/server/static/p__Lab__index.133bb551.chunk.css.map rename deepdataspace/server/static/{p__Lab__index.133bb551.chunk.css => p__Lab__index.28ea9971.chunk.css} (88%) rename deepdataspace/server/static/{p__Login__index.e3ef503c.chunk.css => p__Login__index.26727079.chunk.css} (71%) delete mode 100644 deepdataspace/server/static/p__Login__index.e3ef503c.chunk.css.map delete mode 100644 deepdataspace/server/static/p__Project__Detail__index.85029923.chunk.css.map rename deepdataspace/server/static/{p__Project__Detail__index.85029923.chunk.css => p__Project__Detail__index.9b99b574.chunk.css} (93%) delete mode 100644 deepdataspace/server/static/p__Project__Workspace__index.17ab0171.chunk.css.map rename deepdataspace/server/static/{p__Project__Workspace__index.17ab0171.chunk.css => p__Project__Workspace__index.983f52a6.chunk.css} (96%) delete mode 100644 deepdataspace/server/static/p__Project__index.0a5e0e7e.chunk.css.map rename deepdataspace/server/static/{p__Project__index.0a5e0e7e.chunk.css => p__Project__index.711b5411.chunk.css} (88%) delete mode 100644 deepdataspace/server/static/t__plugin-layout__Layout.383e10cb.chunk.css.map rename deepdataspace/server/static/{t__plugin-layout__Layout.383e10cb.chunk.css => t__plugin-layout__Layout.8f39539f.chunk.css} (92%) delete mode 100644 deepdataspace/server/static/umi.0e5412b2.js.map rename deepdataspace/server/static/{umi.0e5412b2.js => umi.66cd8dc0.js} (96%) rename deepdataspace/server/static/{umi.ac821cfa.css => umi.99ffc894.css} (99%) delete mode 100644 deepdataspace/server/static/umi.ac821cfa.css.map diff --git a/deepdataspace/server/static/20.4f772983.async.js.map b/deepdataspace/server/static/20.4f772983.async.js.map deleted file mode 100644 index 909b385..0000000 --- a/deepdataspace/server/static/20.4f772983.async.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"20.4f772983.async.js","mappings":";AA0CA;AACA;AACA","sources":["webpack://app/../../node_modules/.pnpm/antd@5.8.5_react-dom@18.2.0_react@18.2.0/node_modules/antd/es/breadcrumb/style/index.js"],"sourcesContent":["import { genFocusStyle, resetComponent } from '../../style';\nimport { genComponentStyleHook, mergeToken } from '../../theme/internal';\nconst genBreadcrumbStyle = token => {\n const {\n componentCls,\n iconCls\n } = token;\n return {\n [componentCls]: Object.assign(Object.assign({}, resetComponent(token)), {\n color: token.itemColor,\n fontSize: token.fontSize,\n [iconCls]: {\n fontSize: token.iconFontSize\n },\n ol: {\n display: 'flex',\n flexWrap: 'wrap',\n margin: 0,\n padding: 0,\n listStyle: 'none'\n },\n a: Object.assign({\n color: token.linkColor,\n transition: `color ${token.motionDurationMid}`,\n padding: `0 ${token.paddingXXS}px`,\n borderRadius: token.borderRadiusSM,\n height: token.lineHeight * token.fontSize,\n display: 'inline-block',\n marginInline: -token.marginXXS,\n '&:hover': {\n color: token.linkHoverColor,\n backgroundColor: token.colorBgTextHover\n }\n }, genFocusStyle(token)),\n [`li:last-child`]: {\n color: token.lastItemColor\n },\n [`${componentCls}-separator`]: {\n marginInline: token.separatorMargin,\n color: token.separatorColor\n },\n [`${componentCls}-link`]: {\n [`\n > ${iconCls} + span,\n > ${iconCls} + a\n `]: {\n marginInlineStart: token.marginXXS\n }\n },\n [`${componentCls}-overlay-link`]: {\n borderRadius: token.borderRadiusSM,\n height: token.lineHeight * token.fontSize,\n display: 'inline-block',\n padding: `0 ${token.paddingXXS}px`,\n marginInline: -token.marginXXS,\n [`> ${iconCls}`]: {\n marginInlineStart: token.marginXXS,\n fontSize: token.fontSizeIcon\n },\n '&:hover': {\n color: token.linkHoverColor,\n backgroundColor: token.colorBgTextHover,\n a: {\n color: token.linkHoverColor\n }\n },\n a: {\n '&:hover': {\n backgroundColor: 'transparent'\n }\n }\n },\n // rtl style\n [`&${token.componentCls}-rtl`]: {\n direction: 'rtl'\n }\n })\n };\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Breadcrumb', token => {\n const BreadcrumbToken = mergeToken(token, {});\n return [genBreadcrumbStyle(BreadcrumbToken)];\n}, token => ({\n itemColor: token.colorTextDescription,\n lastItemColor: token.colorText,\n iconFontSize: token.fontSize,\n linkColor: token.colorTextDescription,\n linkHoverColor: token.colorText,\n separatorColor: token.colorTextDescription,\n separatorMargin: token.marginXS\n}));"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/deepdataspace/server/static/20.4f772983.async.js b/deepdataspace/server/static/20.85fcbb81.async.js similarity index 99% rename from deepdataspace/server/static/20.4f772983.async.js rename to deepdataspace/server/static/20.85fcbb81.async.js index 6219ba4..834aa7d 100644 --- a/deepdataspace/server/static/20.4f772983.async.js +++ b/deepdataspace/server/static/20.85fcbb81.async.js @@ -2,5 +2,3 @@ > ${a} + span, > ${a} + a `]:{marginInlineStart:e.marginXXS}},[`${o}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",padding:`0 ${e.paddingXXS}px`,marginInline:-e.marginXXS,[`> ${a}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}};var ne=(0,S.Z)("Breadcrumb",e=>{const o=(0,Y.TS)(e,{});return[de(o)]},e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS})),f=function(e,o){var a={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&o.indexOf(t)<0&&(a[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,t=Object.getOwnPropertySymbols(e);r{var{breadcrumbName:g}=m,v=f(m,["breadcrumbName"]);return Object.assign(Object.assign({},v),{title:g})})}),r}function u(e,o){return(0,s.useMemo)(()=>e||(o?o.map(h):null),[e,o])}var n=function(e,o){var a={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&o.indexOf(t)<0&&(a[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,t=Object.getOwnPropertySymbols(e);r{if(o===void 0)return o;let a=(o||"").replace(/^\//,"");return Object.keys(e).forEach(t=>{a=a.replace(`:${t}`,e[t])}),a},c=e=>{const{prefixCls:o,separator:a="/",style:t,className:r,rootClassName:m,routes:g,items:v,children:z,itemRender:L,params:U={}}=e,X=n(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:k,direction:H,breadcrumb:P}=s.useContext(y.E_);let w;const N=k("breadcrumb",o),[W,oe]=ne(N),E=u(v,g),q=re(N,L);if(E&&E.length>0){const A=[],G=v||g;w=E.map((T,_)=>{const{path:ge,key:se,type:he,menu:ue,overlay:me,onClick:ve,className:be,separator:ye,dropdownProps:xe}=T,ie=l(U,ge);ie!==void 0&&A.push(ie);const pe=se!=null?se:_;if(he==="separator")return s.createElement(B,{key:pe},ye);const le={},Oe=_===E.length-1;ue?le.menu=ue:me&&(le.overlay=me);let{href:ce}=T;return A.length&&ie!==void 0&&(ce=`#/${A.join("/")}`),s.createElement(M,Object.assign({key:pe},le,(0,R.Z)(T,{data:!0,aria:!0}),{className:be,dropdownProps:xe,href:ce,separator:Oe?"":a,onClick:ve,prefixCls:N}),q(T,U,G,A,ce))})}else if(z){const A=(0,j.Z)(z).length;w=(0,j.Z)(z).map((G,T)=>{if(!G)return G;const _=T===A-1;return(0,D.Tm)(G,{separator:_?"":a,key:T})})}const ae=O()(N,P==null?void 0:P.className,{[`${N}-rtl`]:H==="rtl"},r,m,oe),K=Object.assign(Object.assign({},P==null?void 0:P.style),t);return W(s.createElement("nav",Object.assign({className:ae,style:K},X),s.createElement("ol",null,w)))};c.Item=V,c.Separator=B;var d=c,p=d}}]); - -//# sourceMappingURL=20.4f772983.async.js.map \ No newline at end of file diff --git a/deepdataspace/server/static/222.a6c6168c.async.js b/deepdataspace/server/static/222.33ccd216.async.js similarity index 99% rename from deepdataspace/server/static/222.a6c6168c.async.js rename to deepdataspace/server/static/222.33ccd216.async.js index a2f92cd..d29b336 100644 --- a/deepdataspace/server/static/222.a6c6168c.async.js +++ b/deepdataspace/server/static/222.33ccd216.async.js @@ -78,5 +78,3 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `).concat(e.antCls,"-menu-submenu-title:active"),{backgroundColor:"transparent!important"})),(0,o.Z)(Qe,"".concat(e.antCls,"-menu-item-selected"),{color:(mt=e.layout)===null||mt===void 0||(pt=mt.sider)===null||pt===void 0?void 0:pt.colorTextMenuSelected}),(0,o.Z)(Qe,"".concat(e.antCls,"-menu-submenu-selected"),{color:(Kt=e.layout)===null||Kt===void 0||(Lt=Kt.sider)===null||Lt===void 0?void 0:Lt.colorTextMenuSelected}),(0,o.Z)(Qe,"".concat(e.antCls,"-menu:not(").concat(e.antCls,"-menu-horizontal)"),(ut={},(0,o.Z)(ut,"".concat(e.antCls,"-menu-item-selected"),{backgroundColor:"rgba(0, 0, 0, 0.04)",borderRadius:e.borderRadius,color:(Gt=e.layout)===null||Gt===void 0||($t=Gt.sider)===null||$t===void 0?void 0:$t.colorTextMenuSelected}),(0,o.Z)(ut,"".concat(e.antCls,`-menu-item:hover, `).concat(e.antCls,`-menu-item-active, `).concat(e.antCls,"-menu-submenu-title:hover"),(0,o.Z)({color:(Et=e.layout)===null||Et===void 0||(Vt=Et.sider)===null||Vt===void 0?void 0:Vt.colorTextMenuActive,borderRadius:e.borderRadius},"".concat(e.antCls,"-menu-submenu-arrow"),{color:(At=e.layout)===null||At===void 0||(_t=At.sider)===null||_t===void 0?void 0:_t.colorTextMenuActive})),ut)),Qe)),gt)},io=function(e){var t,n,a,l,i,u,f,v,m;return m={},(0,o.Z)(m,"".concat(e.antCls,"-layout"),{backgroundColor:"transparent !important"}),(0,o.Z)(m,e.componentCls,(v={},(0,o.Z)(v,"& ".concat(e.antCls,"-layout"),{display:"flex",backgroundColor:"transparent",width:"100%"}),(0,o.Z)(v,"".concat(e.componentCls,"-content"),{display:"flex",flexDirection:"column",width:"100%",backgroundColor:((t=e.layout)===null||t===void 0||(n=t.pageContainer)===null||n===void 0?void 0:n.colorBgPageContainer)||"transparent",position:"relative",paddingBlock:(a=e.layout)===null||a===void 0||(l=a.pageContainer)===null||l===void 0?void 0:l.paddingBlockPageContainerContent,paddingInline:(i=e.layout)===null||i===void 0||(u=i.pageContainer)===null||u===void 0?void 0:u.paddingInlinePageContainerContent,"&-has-page-container":{padding:0}}),(0,o.Z)(v,"".concat(e.componentCls,"-container"),{width:"100%",display:"flex",flexDirection:"column",minWidth:0,minHeight:0,backgroundColor:"transparent"}),(0,o.Z)(v,"".concat(e.componentCls,"-bg-list"),{pointerEvents:"none",position:"fixed",overflow:"hidden",insetBlockStart:0,insetInlineStart:0,zIndex:0,height:"100%",width:"100%",background:(f=e.layout)===null||f===void 0?void 0:f.bgLayout}),v)),m};function lo(r){return(0,De.Xj)("ProLayout",function(e){var t=(0,s.Z)((0,s.Z)({},e),{},{componentCls:".".concat(r)});return[io(t),oo(t)]})}function uo(r){if(!r||r==="/")return["/"];var e=r.split("/").filter(function(t){return t});return e.map(function(t,n){return"/".concat(e.slice(0,n+1).join("/"))})}var _n=c(73656),co=function(){var e,t;return typeof _n=="undefined"?fn.Z:((e=_n)===null||_n===void 0||(t={NODE_ENV:"production",PUBLIC_PATH:"/static/"})===null||t===void 0?void 0:t.ANTD_VERSION)||fn.Z},so=function(e,t,n){var a=e,l=a.breadcrumbName,i=a.title,u=a.path,f=n.findIndex(function(v){return v.linkPath===e.path})===n.length-1;return f?(0,d.jsx)("span",{children:i||l}):(0,d.jsx)("span",{onClick:u?function(){return location.href=u}:void 0,children:i||l})},fo=function(e,t){var n=t.formatMessage,a=t.menu;return e.locale&&n&&(a==null?void 0:a.locale)!==!1?n({id:e.locale,defaultMessage:e.name}):e.name},vo=function(e,t){var n=e.get(t);if(!n){var a=Array.from(e.keys())||[],l=a.find(function(i){return Ln()(i.replace("?","")).test(t)});l&&(n=e.get(l))}return n||{path:""}},mo=function(e){var t=e.location,n=e.breadcrumbMap;return{location:t,breadcrumbMap:n}},po=function(e,t,n){var a=uo(e==null?void 0:e.pathname),l=a.map(function(i){var u=vo(t,i),f=fo(u,n),v=u.hideInBreadcrumb;return f&&!v?{linkPath:i,breadcrumbName:f,title:f,component:u.component}:{linkPath:"",breadcrumbName:"",title:""}}).filter(function(i){return i&&i.linkPath});return l},go=function(e){var t=mo(e),n=t.location,a=t.breadcrumbMap;return n&&n.pathname&&a?po(n,a,e):[]},ho=function(e,t){var n=e.breadcrumbRender,a=e.itemRender,l=t.breadcrumbProps||{},i=l.minLength,u=i===void 0?2:i,f=go(e),v=function(C){for(var P=a||so,ne=arguments.length,V=new Array(ne>1?ne-1:0),k=1;k-1?{items:m,itemRender:v}:{routes:m,itemRender:v}};function yo(r){return(0,cn.Z)(r).reduce(function(e,t){var n=(0,Z.Z)(t,2),a=n[0],l=n[1];return e[a]=l,e},{})}var xo=function r(e,t,n,a){var l=Ut(e,(t==null?void 0:t.locale)||!1,n,!0),i=l.menuData,u=l.breadcrumb;return a?r(a(i),t,n,void 0):{breadcrumb:yo(u),breadcrumbMap:u,menuData:i}},Co=c(38790),bo=c(48145),So=function(e){var t=(0,p.useState)({}),n=(0,Z.Z)(t,2),a=n[0],l=n[1];return(0,p.useEffect)(function(){l((0,bo.Y)({layout:(0,Co.Z)(e.layout)!=="object"?e.layout:void 0,navTheme:e.navTheme,menuRender:e.menuRender,footerRender:e.footerRender,menuHeaderRender:e.menuHeaderRender,headerRender:e.headerRender,fixSiderbar:e.fixSiderbar}))},[e.layout,e.navTheme,e.menuRender,e.footerRender,e.menuHeaderRender,e.headerRender,e.fixSiderbar]),a},Mo=c(32245),Zo=function(e){var t,n=(0,p.useContext)(X.L_),a=n.hashId,l=e.style,i=e.prefixCls,u=e.children,f=e.hasPageContainer,v=f===void 0?0:f,m=pe()("".concat(i,"-content"),a,(t={},(0,o.Z)(t,"".concat(i,"-has-header"),e.hasHeader),(0,o.Z)(t,"".concat(i,"-content-has-page-container"),v>0),t)),y=e.ErrorBoundary||Mo.S;return e.ErrorBoundary===!1?(0,d.jsx)(Pt.Z.Content,{className:m,style:l,children:u}):(0,d.jsx)(y,{children:(0,d.jsx)(Pt.Z.Content,{className:m,style:l,children:u})})},Io=["id","defaultMessage"],$o=["fixSiderbar","navTheme","layout"],vr=0,To=function(e,t){var n;return e.headerRender===!1||e.pure?null:(0,d.jsx)(Ha,(0,s.Z)((0,s.Z)({matchMenuKeys:t},e),{},{stylish:(n=e.stylish)===null||n===void 0?void 0:n.header}))},Ro=function(e){return e.footerRender===!1||e.pure?null:e.footerRender?e.footerRender((0,s.Z)({},e),(0,d.jsx)(zr,{})):null},wo=function(e,t){var n,a=e.layout,l=e.isMobile,i=e.selectedKeys,u=e.openKeys,f=e.splitMenus,v=e.suppressSiderWhenMenuEmpty,m=e.menuRender;if(e.menuRender===!1||e.pure)return null;var y=e.menuData;if(f&&(u!==!1||a==="mix")&&!l){var C=i||t,P=(0,Z.Z)(C,1),ne=P[0];if(ne){var V,k;y=((V=e.menuData)===null||V===void 0||(k=V.find(function(I){return I.key===ne}))===null||k===void 0?void 0:k.children)||[]}else y=[]}var H=dn(y||[]);if(H&&(H==null?void 0:H.length)<1&&(f||v))return null;if(a==="top"&&!l){var K;return(0,d.jsx)(cr,(0,s.Z)((0,s.Z)({matchMenuKeys:t},e),{},{hide:!0,stylish:(K=e.stylish)===null||K===void 0?void 0:K.sider}))}var q=(0,d.jsx)(cr,(0,s.Z)((0,s.Z)({matchMenuKeys:t},e),{},{menuData:H,stylish:(n=e.stylish)===null||n===void 0?void 0:n.sider}));return m?m(e,q):q},jo=function(e,t){var n=t.pageTitleRender,a=En(e);if(n===!1)return{title:t.title||"",id:"",pageName:""};if(n){var l=n(e,a.title,a);if(typeof l=="string")return En((0,s.Z)((0,s.Z)({},a),{},{title:l}));(0,Br.ZP)(typeof l=="string","pro-layout: renderPageTitle return value should be a string")}return a},Bo=function(e,t,n){return e?t?64:n:0},Po=function(e){var t,n,a,l,i,u,f,v,m,y,C,P,ne,V,k,H,K,q,I,j,E,b,de,oe,le,re,me,te=e||{},ie=te.children,Ze=te.onCollapse,W=te.location,Ie=W===void 0?{pathname:"/"}:W,T=te.contentStyle,fe=te.route,be=te.defaultCollapsed,Re=te.style,Te=te.siderWidth,ue=te.menu,Ae=te.siderMenuType,_e=te.isChildrenLayout,ze=te.menuDataRender,ke=te.actionRef,Se=te.bgLayoutImgList,We=te.formatMessage,Fe=te.loading,Ue=(0,p.useMemo)(function(){return Te||(e.layout==="mix"?215:256)},[e.layout,Te]),Ve=(0,p.useContext)(rt.ZP.ConfigContext),$e=(t=e.prefixCls)!==null&&t!==void 0?t:Ve.getPrefixCls("pro"),Be=(0,se.Z)(!1,{value:ue==null?void 0:ue.loading,onChange:ue==null?void 0:ue.onLoadingChange}),je=(0,Z.Z)(Be,2),Xe=je[0],at=je[1],st=(0,p.useState)(function(){return vr+=1,"pro-layout-".concat(vr)}),ft=(0,Z.Z)(st,1),vt=ft[0],Je=(0,p.useCallback)(function(Ne){var yt=Ne.id,pn=Ne.defaultMessage,Yt=(0,B.Z)(Ne,Io);if(We)return We((0,s.Z)({id:yt,defaultMessage:pn},Yt));var Qt=ro();return Qt[yt]?Qt[yt]:pn},[We]),Ye=(0,Un.ZP)([vt,ue==null?void 0:ue.params],function(){var Ne=(0,F.Z)((0,M.Z)().mark(function yt(pn){var Yt,Qt,Ir,$r;return(0,M.Z)().wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:return Qt=(0,Z.Z)(pn,2),Ir=Qt[1],at(!0),Dt.next=4,ue==null||(Yt=ue.request)===null||Yt===void 0?void 0:Yt.call(ue,Ir||{},(fe==null?void 0:fe.children)||(fe==null?void 0:fe.routes)||[]);case 4:return $r=Dt.sent,at(!1),Dt.abrupt("return",$r);case 7:case"end":return Dt.stop()}},yt)}));return function(yt){return Ne.apply(this,arguments)}}(),{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),ot=Ye.data,mt=Ye.mutate,pt=Ye.isLoading;(0,p.useEffect)(function(){at(pt)},[pt]);var Kt=(0,Un.kY)(),Lt=Kt.cache;(0,p.useEffect)(function(){return function(){Lt instanceof Map&&Lt.clear()}},[]);var Gt=(0,p.useMemo)(function(){return xo(ot||(fe==null?void 0:fe.children)||(fe==null?void 0:fe.routes)||[],ue,Je,ze)},[Je,ue,ze,ot,fe==null?void 0:fe.children,fe==null?void 0:fe.routes]),$t=Gt||{},Et=$t.breadcrumb,Vt=Et===void 0?{}:Et,At=$t.breadcrumbMap,_t=$t.menuData,ut=_t===void 0?[]:_t;ke&&ue!==null&&ue!==void 0&&ue.request&&(ke.current={reload:function(){mt()}});var Qe=(0,p.useMemo)(function(){return wr(Ie.pathname||"/",ut||[],!0)},[Ie.pathname,ut]),gt=(0,p.useMemo)(function(){return Array.from(new Set(Qe.map(function(Ne){return Ne.key||Ne.path||""})))},[Qe]),mr=Qe[Qe.length-1]||{},pr=So(mr),vn=(0,s.Z)((0,s.Z)({},e),pr),Eo=vn.fixSiderbar,Qo=vn.navTheme,Xt=vn.layout,Ao=(0,B.Z)(vn,$o),Nt=$(),Ht=(0,p.useMemo)(function(){return(Nt==="sm"||Nt==="xs")&&!e.disableMobile},[Nt,e.disableMobile]),_o=Xt!=="top"&&!Ht,No=(0,se.Z)(function(){return be!==void 0?be:!!(Ht||Nt==="md")},{value:e.collapsed,onChange:Ze}),gr=(0,Z.Z)(No,2),Jt=gr[0],hr=gr[1],Ot=(0,Wn.Z)((0,s.Z)((0,s.Z)((0,s.Z)({prefixCls:$e},e),{},{siderWidth:Ue},pr),{},{formatMessage:Je,breadcrumb:Vt,menu:(0,s.Z)((0,s.Z)({},ue),{},{type:Ae||(ue==null?void 0:ue.type),loading:Xe}),layout:Xt}),["className","style","breadcrumbRender"]),Nn=jo((0,s.Z)((0,s.Z)({pathname:Ie.pathname},Ot),{},{breadcrumbMap:At}),e),Ho=ho((0,s.Z)((0,s.Z)({},Ot),{},{breadcrumbRender:e.breadcrumbRender,breadcrumbMap:At}),e),mn=wo((0,s.Z)((0,s.Z)({},Ot),{},{menuData:ut,onCollapse:hr,isMobile:Ht,collapsed:Jt}),gt),Hn=To((0,s.Z)((0,s.Z)({},Ot),{},{children:null,hasSiderMenu:!!mn,menuData:ut,isMobile:Ht,collapsed:Jt,onCollapse:hr}),gt),yr=Ro((0,s.Z)({isMobile:Ht,collapsed:Jt},Ot)),Oo=(0,p.useContext)(sr.X),Do=Oo.isChildrenLayout,On=_e!==void 0?_e:Do,dt="".concat($e,"-layout"),xr=lo(dt),zo=xr.wrapSSR,Dn=xr.hashId,ko=pe()(e.className,Dn,"ant-design-pro",dt,(n={},(0,o.Z)(n,"screen-".concat(Nt),Nt),(0,o.Z)(n,"".concat(dt,"-top-menu"),Xt==="top"),(0,o.Z)(n,"".concat(dt,"-is-children"),On),(0,o.Z)(n,"".concat(dt,"-fix-siderbar"),Eo),(0,o.Z)(n,"".concat(dt,"-").concat(Xt),Xt),n)),Fo=Bo(!!_o,Jt,Ue),Cr={position:"relative"};(On||T&&T.minHeight)&&(Cr.minHeight=0),(0,p.useEffect)(function(){var Ne;(Ne=e.onPageChange)===null||Ne===void 0||Ne.call(e,e.location)},[Ie.pathname,(a=Ie.pathname)===null||a===void 0?void 0:a.search]);var Wo=(0,p.useState)(!1),br=(0,Z.Z)(Wo,2),Sr=br[0],Uo=br[1],Ko=(0,p.useState)(0),Mr=(0,Z.Z)(Ko,2),Zr=Mr[0],Go=Mr[1];h(Nn,e.title||!1);var Vo=(0,p.useMemo)(function(){return Se&&Se.length>0?Se.map(function(Ne,yt){return(0,d.jsx)("img",{src:Ne.src,style:(0,s.Z)({position:"absolute"},Ne)},yt)}):null},[Se]),Xo=(0,p.useContext)(X.L_),he=Xo.token;return zo((0,d.jsx)(sr.X.Provider,{value:(0,s.Z)((0,s.Z)({},Ot),{},{breadcrumb:Ho,menuData:ut,isMobile:Ht,collapsed:Jt,hasPageContainer:Zr,setHasPageContainer:Go,isChildrenLayout:!0,title:Nn.pageName,hasSiderMenu:!!mn,hasHeader:!!Hn,siderWidth:Fo,hasFooter:!!yr,hasFooterToolbar:Sr,setHasFooterToolbar:Uo,pageTitleInfo:Nn,matchMenus:Qe,matchMenuKeys:gt,currentMenu:mr}),children:e.pure?(0,d.jsx)(d.Fragment,{children:ie}):(0,d.jsxs)("div",{className:ko,children:[(0,d.jsx)("div",{className:pe()("".concat(dt,"-bg-list"),Dn),children:Vo}),(0,d.jsxs)(Pt.Z,{style:(0,s.Z)({minHeight:"100%",flexDirection:mn?"row":void 0},Re),children:[(0,d.jsx)(rt.ZP,{theme:{hashed:(0,X.nu)(),components:{Menu:A({colorItemBg:((l=he.layout)===null||l===void 0||(i=l.sider)===null||i===void 0?void 0:i.colorMenuBackground)||"transparent",colorSubItemBg:((u=he.layout)===null||u===void 0||(f=u.sider)===null||f===void 0?void 0:f.colorMenuBackground)||"transparent",radiusItem:4,controlHeightLG:((v=he.layout)===null||v===void 0||(m=v.sider)===null||m===void 0?void 0:m.menuHeight)||(he==null?void 0:he.controlHeightLG),colorItemBgSelected:((y=he.layout)===null||y===void 0||(C=y.sider)===null||C===void 0?void 0:C.colorBgMenuItemSelected)||(he==null?void 0:he.colorBgTextHover),colorItemBgHover:((P=he.layout)===null||P===void 0||(ne=P.sider)===null||ne===void 0?void 0:ne.colorBgMenuItemHover)||(he==null?void 0:he.colorBgTextHover),colorItemBgActive:((V=he.layout)===null||V===void 0||(k=V.sider)===null||k===void 0?void 0:k.colorBgMenuItemActive)||(he==null?void 0:he.colorBgTextActive),colorItemBgSelectedHorizontal:((H=he.layout)===null||H===void 0||(K=H.sider)===null||K===void 0?void 0:K.colorBgMenuItemSelected)||(he==null?void 0:he.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((q=he.layout)===null||q===void 0||(I=q.sider)===null||I===void 0?void 0:I.colorTextMenu)||(he==null?void 0:he.colorTextSecondary),colorItemTextHover:((j=he.layout)===null||j===void 0||(E=j.sider)===null||E===void 0?void 0:E.colorTextMenuItemHover)||"rgba(0, 0, 0, 0.85)",colorItemTextSelected:((b=he.layout)===null||b===void 0||(de=b.sider)===null||de===void 0?void 0:de.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",colorBgElevated:((oe=he.layout)===null||oe===void 0||(le=oe.sider)===null||le===void 0?void 0:le.colorBgMenuItemCollapsedElevated)||"#fff"})}},children:mn}),(0,d.jsxs)("div",{style:Cr,className:"".concat(dt,"-container ").concat(Dn).trim(),children:[Hn,(0,d.jsx)(Zo,(0,s.Z)((0,s.Z)({hasPageContainer:Zr,isChildrenLayout:On},Ao),{},{hasHeader:!!Hn,prefixCls:dt,style:T,children:Fe?(0,d.jsx)(Oa.S,{}):ie})),yr,Sr&&(0,d.jsx)("div",{className:"".concat(dt,"-has-footer"),style:{height:64,marginBlockStart:(re=he.layout)===null||re===void 0||(me=re.pageContainer)===null||me===void 0?void 0:me.paddingBlockPageContainerContent}})]})]})]})}))},Lo=function(e){var t=e.colorPrimary,n=e.navTheme!==void 0?{dark:e.navTheme==="realDark"}:{};return(0,d.jsx)(rt.ZP,{theme:t?{token:{colorPrimary:t}}:void 0,children:(0,d.jsx)(X._Y,(0,s.Z)((0,s.Z)({autoClearCache:!0},n),{},{token:e.token,prefixCls:e.prefixCls,children:(0,d.jsx)(Po,(0,s.Z)((0,s.Z)({logo:(0,d.jsx)(Pr,{})},qn),{},{location:(0,J.j)()?window.location:void 0},e))}))})}},20202:function(O,G,c){"use strict";c.d(G,{S:function(){return X}});var o=c(57370),M=c(47075),F=c(79233),B=c(58757),Z=c(35667),s=["isLoading","pastDelay","timedOut","error","retry"],X=function(p){var ye=p.isLoading,xe=p.pastDelay,Pe=p.timedOut,$=p.error,J=p.retry,h=(0,M.Z)(p,s);return(0,Z.jsx)("div",{style:{paddingBlockStart:100,textAlign:"center"},children:(0,Z.jsx)(F.Z,(0,o.Z)({size:"large"},h))})}},77895:function(O,G,c){"use strict";c.d(G,{X:function(){return M}});var o=c(58757),M=(0,o.createContext)({})},32245:function(O,G,c){"use strict";c.d(G,{S:function(){return ye}});var o=c(60412),M=c(14346),F=c(86717),B=c(87498),Z=c(73726),s=c(37734),X=c(12632),se=c(58757),p=c(35667),ye=function(xe){(0,B.Z)($,xe);var Pe=(0,Z.Z)($);function $(){var J;(0,o.Z)(this,$);for(var h=arguments.length,S=new Array(h),x=0;x=48&&R<=57||R>=65&&R<=90||R>=97&&R<=122||R===95){ve+=h[_++];continue}break}if(!ve)throw new TypeError("Missing parameter name at "+x);S.push({type:"NAME",index:x,value:ve}),x=_;continue}if(A==="("){var Y=1,ae="",_=x+1;if(h[_]==="?")throw new TypeError('Pattern cannot start with "?" at '+_);for(;_-1:Le===void 0;ve||(ge+="(?:"+Me+"(?="+ee+"))?"),et||(ge+="(?="+Me+"|"+ee+")")}return new RegExp(ge,p(x))}c=$;function J(h,S,x){return h instanceof RegExp?ye(h,S):Array.isArray(h)?xe(h,S,x):Pe(h,S,x)}G.Bo=J},29233:function(O){function G(c,o){for(var M=-1,F=c==null?0:c.length,B=Array(F);++MB?0:B+o),M=M>B?B:M,M<0&&(M+=B),B=o>M?0:M-o>>>0,o>>>=0;for(var Z=Array(B);++F=s?F:o(F,B,Z)}O.exports=M},41254:function(O,G,c){var o=c(3237),M=c(63932),F=c(15233),B=c(99835);function Z(s){return function(X){X=B(X);var se=M(X)?F(X):void 0,p=se?se[0]:X.charAt(0),ye=se?o(se,1).join(""):X.slice(1);return p[s]()+ye}}O.exports=Z},25048:function(O,G,c){var o=c(85115),M=c(8820),F=c(12170),B="['\u2019]",Z=RegExp(B,"g");function s(X){return function(se){return o(F(M(se).replace(Z,"")),X,"")}}O.exports=s},33729:function(O,G,c){var o=c(61642),M={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},F=o(M);O.exports=F},63932:function(O){var G="\\ud800-\\udfff",c="\\u0300-\\u036f",o="\\ufe20-\\ufe2f",M="\\u20d0-\\u20ff",F=c+o+M,B="\\ufe0e\\ufe0f",Z="\\u200d",s=RegExp("["+Z+G+F+B+"]");function X(se){return s.test(se)}O.exports=X},70605:function(O){var G=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function c(o){return G.test(o)}O.exports=c},15233:function(O,G,c){var o=c(59512),M=c(63932),F=c(32205);function B(Z){return M(Z)?F(Z):o(Z)}O.exports=B},32205:function(O){var G="\\ud800-\\udfff",c="\\u0300-\\u036f",o="\\ufe20-\\ufe2f",M="\\u20d0-\\u20ff",F=c+o+M,B="\\ufe0e\\ufe0f",Z="["+G+"]",s="["+F+"]",X="\\ud83c[\\udffb-\\udfff]",se="(?:"+s+"|"+X+")",p="[^"+G+"]",ye="(?:\\ud83c[\\udde6-\\uddff]){2}",xe="[\\ud800-\\udbff][\\udc00-\\udfff]",Pe="\\u200d",$=se+"?",J="["+B+"]?",h="(?:"+Pe+"(?:"+[p,ye,xe].join("|")+")"+J+$+")*",S=J+$+h,x="(?:"+[p+s+"?",s,ye,xe,Z].join("|")+")",A=RegExp(X+"(?="+X+")|"+x+S,"g");function ve(_){return _.match(A)||[]}O.exports=ve},76061:function(O){var G="\\ud800-\\udfff",c="\\u0300-\\u036f",o="\\ufe20-\\ufe2f",M="\\u20d0-\\u20ff",F=c+o+M,B="\\u2700-\\u27bf",Z="a-z\\xdf-\\xf6\\xf8-\\xff",s="\\xac\\xb1\\xd7\\xf7",X="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",se="\\u2000-\\u206f",p=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ye="A-Z\\xc0-\\xd6\\xd8-\\xde",xe="\\ufe0e\\ufe0f",Pe=s+X+se+p,$="['\u2019]",J="["+Pe+"]",h="["+F+"]",S="\\d+",x="["+B+"]",A="["+Z+"]",ve="[^"+G+Pe+S+B+Z+ye+"]",_="\\ud83c[\\udffb-\\udfff]",R="(?:"+h+"|"+_+")",Y="[^"+G+"]",ae="(?:\\ud83c[\\udde6-\\uddff]){2}",ce="[\\ud800-\\udbff][\\udc00-\\udfff]",U="["+ye+"]",ee="\\u200d",Me="(?:"+A+"|"+ve+")",ge="(?:"+U+"|"+ve+")",N="(?:"+$+"(?:d|ll|m|re|s|t|ve))?",Q="(?:"+$+"(?:D|LL|M|RE|S|T|VE))?",w=R+"?",we="["+xe+"]?",He="(?:"+ee+"(?:"+[Y,ae,ce].join("|")+")"+we+w+")*",qe="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Le="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",et=we+w+He,Ke="(?:"+[x,ae,ce].join("|")+")"+et,tt=RegExp([U+"?"+A+"+"+N+"(?="+[J,U,"$"].join("|")+")",ge+"+"+Q+"(?="+[J,U+Me,"$"].join("|")+")",U+"?"+Me+"+"+N,U+"+"+Q,Le,qe,S,Ke].join("|"),"g");function it(xt){return xt.match(tt)||[]}O.exports=it},89309:function(O,G,c){var o=c(60844),M=c(25048),F=M(function(B,Z,s){return Z=Z.toLowerCase(),B+(s?o(Z):Z)});O.exports=F},60844:function(O,G,c){var o=c(99835),M=c(57584);function F(B){return M(o(B).toLowerCase())}O.exports=F},8820:function(O,G,c){var o=c(33729),M=c(99835),F=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,B="\\u0300-\\u036f",Z="\\ufe20-\\ufe2f",s="\\u20d0-\\u20ff",X=B+Z+s,se="["+X+"]",p=RegExp(se,"g");function ye(xe){return xe=M(xe),xe&&xe.replace(F,o).replace(p,"")}O.exports=ye},99835:function(O,G,c){var o=c(86245);function M(F){return F==null?"":o(F)}O.exports=M},57584:function(O,G,c){var o=c(41254),M=o("toUpperCase");O.exports=M},12170:function(O,G,c){var o=c(96026),M=c(70605),F=c(99835),B=c(76061);function Z(s,X,se){return s=F(s),X=se?void 0:X,X===void 0?M(s)?B(s):o(s):s.match(X)||[]}O.exports=Z},36497:function(O){O.exports=Pe,O.exports.parse=M,O.exports.compile=F,O.exports.tokensToFunction=B,O.exports.tokensToRegExp=xe;var G="/",c="./",o=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");function M($,J){for(var h=[],S=0,x=0,A="",ve=J&&J.delimiter||G,_=J&&J.delimiters||c,R=!1,Y;(Y=o.exec($))!==null;){var ae=Y[0],ce=Y[1],U=Y.index;if(A+=$.slice(x,U),x=U+ae.length,ce){A+=ce[1],R=!0;continue}var ee="",Me=$[x],ge=Y[2],N=Y[3],Q=Y[4],w=Y[5];if(!R&&A.length){var we=A.length-1;_.indexOf(A[we])>-1&&(ee=A[we],A=A.slice(0,we))}A&&(h.push(A),A="",R=!1);var He=ee!==""&&Me!==void 0&&Me!==ee,qe=w==="+"||w==="*",Le=w==="?"||w==="*",et=ee||ve,Ke=N||Q;h.push({name:ge||S++,prefix:ee,delimiter:et,optional:Le,repeat:qe,partial:He,pattern:Ke?s(Ke):"[^"+Z(et)+"]+?"})}return(A||x<$.length)&&h.push(A+$.substr(x)),h}function F($,J){return B(M($,J))}function B($){for(var J=new Array($.length),h=0;h<$.length;h++)typeof $[h]=="object"&&(J[h]=new RegExp("^(?:"+$[h].pattern+")$"));return function(S,x){for(var A="",ve=x&&x.encode||encodeURIComponent,_=0;_<$.length;_++){var R=$[_];if(typeof R=="string"){A+=R;continue}var Y=S?S[R.name]:void 0,ae;if(Array.isArray(Y)){if(!R.repeat)throw new TypeError('Expected "'+R.name+'" to not repeat, but got array');if(Y.length===0){if(R.optional)continue;throw new TypeError('Expected "'+R.name+'" to not be empty')}for(var ce=0;ce-1;else{var ee=U.repeat?"(?:"+U.pattern+")(?:"+Z(U.delimiter)+"(?:"+U.pattern+"))*":U.pattern;J&&J.push(U),U.optional?U.partial?Y+=Z(U.prefix)+"("+ee+")?":Y+="(?:"+Z(U.prefix)+"("+ee+"))?":Y+=Z(U.prefix)+"("+ee+")"}}return A?(S||(Y+="(?:"+ve+")?"),Y+=R==="$"?"$":"(?="+R+")"):(S||(Y+="(?:"+ve+"(?="+R+"))?"),ae||(Y+="(?="+ve+"|"+R+")")),new RegExp(Y,X(h))}function Pe($,J,h){return $ instanceof RegExp?se($,J):Array.isArray($)?p($,J,h):ye($,J,h)}}}]); - -//# sourceMappingURL=222.a6c6168c.async.js.map \ No newline at end of file diff --git a/deepdataspace/server/static/222.a6c6168c.async.js.map b/deepdataspace/server/static/222.a6c6168c.async.js.map deleted file mode 100644 index 6d778f3..0000000 --- a/deepdataspace/server/static/222.a6c6168c.async.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"222.a6c6168c.async.js","mappings":";AA+DA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACzDA;AAMA;AA8BA;ACjBA;AAAA;AAAA;AAGA;ACmBA;AAEA;AAAA;AAAA;AAQA;AAAA;AAiBA;AAAA;AAAA;AAKA;AAAA;AAAA;AAgBA;AAAA;AAAA;AAoBA;AAUA;AAAA","sources":["webpack://app/../../node_modules/.pnpm/@ant-design+icons@4.8.1_react-dom@18.2.0_react@18.2.0/node_modules/@ant-design/icons/es/utils.js","webpack://app/../../node_modules/.pnpm/@umijs+route-utils@4.0.1/node_modules/@umijs/route-utils/es/transformRoute/transformRoute.js","webpack://app/../../node_modules/.pnpm/@ant-design+pro-layout@7.16.11_antd@4.24.13_react-dom@18.2.0_react@18.2.0/node_modules/@ant-design/pro-layout/es/components/SiderMenu/style/menu.js","webpack://app/../../node_modules/.pnpm/@ant-design+pro-layout@7.16.11_antd@4.24.13_react-dom@18.2.0_react@18.2.0/node_modules/@ant-design/pro-layout/es/style/index.js"],"sourcesContent":["import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _typeof from \"@babel/runtime/helpers/esm/typeof\";\nimport { generate as generateColor } from '@ant-design/colors';\nimport React, { useContext, useEffect } from 'react';\nimport warn from \"rc-util/es/warning\";\nimport { updateCSS } from \"rc-util/es/Dom/dynamicCSS\";\nimport IconContext from './components/Context';\nimport camelCase from 'lodash/camelCase';\nexport function warning(valid, message) {\n warn(valid, \"[@ant-design/icons] \".concat(message));\n}\nexport function isIconDefinition(target) {\n return _typeof(target) === 'object' && typeof target.name === 'string' && typeof target.theme === 'string' && (_typeof(target.icon) === 'object' || typeof target.icon === 'function');\n}\nexport function normalizeAttrs() {\n var attrs = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n return Object.keys(attrs).reduce(function (acc, key) {\n var val = attrs[key];\n switch (key) {\n case 'class':\n acc.className = val;\n delete acc.class;\n break;\n default:\n delete acc[key];\n acc[camelCase(key)] = val;\n }\n return acc;\n }, {});\n}\nexport function generate(node, key, rootProps) {\n if (!rootProps) {\n return /*#__PURE__*/React.createElement(node.tag, _objectSpread({\n key: key\n }, normalizeAttrs(node.attrs)), (node.children || []).map(function (child, index) {\n return generate(child, \"\".concat(key, \"-\").concat(node.tag, \"-\").concat(index));\n }));\n }\n return /*#__PURE__*/React.createElement(node.tag, _objectSpread(_objectSpread({\n key: key\n }, normalizeAttrs(node.attrs)), rootProps), (node.children || []).map(function (child, index) {\n return generate(child, \"\".concat(key, \"-\").concat(node.tag, \"-\").concat(index));\n }));\n}\nexport function getSecondaryColor(primaryColor) {\n // choose the second color\n return generateColor(primaryColor)[0];\n}\nexport function normalizeTwoToneColors(twoToneColor) {\n if (!twoToneColor) {\n return [];\n }\n return Array.isArray(twoToneColor) ? twoToneColor : [twoToneColor];\n}\n// These props make sure that the SVG behaviours like general text.\n// Reference: https://blog.prototypr.io/align-svg-icons-to-text-and-say-goodbye-to-font-icons-d44b3d7b26b4\nexport var svgBaseProps = {\n width: '1em',\n height: '1em',\n fill: 'currentColor',\n 'aria-hidden': 'true',\n focusable: 'false'\n};\nexport var iconStyles = \"\\n.anticon {\\n display: inline-block;\\n color: inherit;\\n font-style: normal;\\n line-height: 0;\\n text-align: center;\\n text-transform: none;\\n vertical-align: -0.125em;\\n text-rendering: optimizeLegibility;\\n -webkit-font-smoothing: antialiased;\\n -moz-osx-font-smoothing: grayscale;\\n}\\n\\n.anticon > * {\\n line-height: 1;\\n}\\n\\n.anticon svg {\\n display: inline-block;\\n}\\n\\n.anticon::before {\\n display: none;\\n}\\n\\n.anticon .anticon-icon {\\n display: block;\\n}\\n\\n.anticon[tabindex] {\\n cursor: pointer;\\n}\\n\\n.anticon-spin::before,\\n.anticon-spin {\\n display: inline-block;\\n -webkit-animation: loadingCircle 1s infinite linear;\\n animation: loadingCircle 1s infinite linear;\\n}\\n\\n@-webkit-keyframes loadingCircle {\\n 100% {\\n -webkit-transform: rotate(360deg);\\n transform: rotate(360deg);\\n }\\n}\\n\\n@keyframes loadingCircle {\\n 100% {\\n -webkit-transform: rotate(360deg);\\n transform: rotate(360deg);\\n }\\n}\\n\";\nexport var useInsertStyles = function useInsertStyles() {\n var styleStr = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : iconStyles;\n var _useContext = useContext(IconContext),\n csp = _useContext.csp;\n useEffect(function () {\n updateCSS(styleStr, '@ant-design-icons', {\n prepend: true,\n csp: csp\n });\n }, []);\n};","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\nvar _excluded = [\"pro_layout_parentKeys\", \"children\", \"icon\", \"flatMenu\", \"indexRoute\", \"routes\"];\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _wrapNativeSuper(Class) { var _cache = typeof Map === \"function\" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !_isNativeFunction(Class)) return Class; if (typeof Class !== \"function\") { throw new TypeError(\"Super expression must either be null or a function\"); } if (typeof _cache !== \"undefined\") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return _construct(Class, arguments, _getPrototypeOf(this).constructor); } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); return _setPrototypeOf(Wrapper, Class); }; return _wrapNativeSuper(Class); }\n\nfunction _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _construct = Reflect.construct.bind(); } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _isNativeFunction(fn) { return Function.toString.call(fn).indexOf(\"[native code]\") !== -1; }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n//@ts-ignore\nimport { pathToRegexp } from '../path-to-regexp';\nimport sha265 from '../sha265';\nexport var childrenPropsName = 'routes';\nexport function stripQueryStringAndHashFromPath(url) {\n return url.split('?')[0].split('#')[0];\n}\nexport var isUrl = function isUrl(path) {\n if (!path.startsWith('http')) {\n return false;\n }\n\n try {\n var url = new URL(path);\n return !!url;\n } catch (error) {\n return false;\n }\n};\nexport var getKeyByPath = function getKeyByPath(item) {\n var path = item.path;\n\n if (!path || path === '/') {\n // 如果还是没有,用对象的hash 生成一个\n try {\n return \"/\".concat(sha265(JSON.stringify(item)));\n } catch (error) {// dom some thing\n }\n }\n\n return path ? stripQueryStringAndHashFromPath(path) : path;\n};\n/**\n * 获取locale,增加了一个功能,如果 locale = false,将不使用国际化\n * @param item\n * @param parentName\n */\n\nvar getItemLocaleName = function getItemLocaleName(item, parentName) {\n var name = item.name,\n locale = item.locale; // 如果配置了 locale 并且 locale 为 false或 \"\"\n\n if ('locale' in item && locale === false || !name) {\n return false;\n }\n\n return item.locale || \"\".concat(parentName, \".\").concat(name);\n};\n/**\n * 如果不是 / 开头的和父节点做一下合并\n * 如果是 / 开头的不作任何处理\n * 如果是 url 也直接返回\n * @param path\n * @param parentPath\n */\n\n\nvar mergePath = function mergePath() {\n var path = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var parentPath = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '/';\n\n if (path.endsWith('/*')) {\n return path.replace('/*', '/');\n }\n\n if ((path || parentPath).startsWith('/')) {\n return path;\n }\n\n if (isUrl(path)) {\n return path;\n }\n\n return \"/\".concat(parentPath, \"/\").concat(path).replace(/\\/\\//g, '/').replace(/\\/\\//g, '/');\n}; // bigfish 的兼容准话\n\n\nvar bigfishCompatibleConversions = function bigfishCompatibleConversions(route, props) {\n var _route$menu = route.menu,\n menu = _route$menu === void 0 ? {} : _route$menu,\n indexRoute = route.indexRoute,\n _route$path = route.path,\n path = _route$path === void 0 ? '' : _route$path;\n var routerChildren = route.children || [];\n var _menu$name = menu.name,\n name = _menu$name === void 0 ? route.name : _menu$name,\n _menu$icon = menu.icon,\n icon = _menu$icon === void 0 ? route.icon : _menu$icon,\n _menu$hideChildren = menu.hideChildren,\n hideChildren = _menu$hideChildren === void 0 ? route.hideChildren : _menu$hideChildren,\n _menu$flatMenu = menu.flatMenu,\n flatMenu = _menu$flatMenu === void 0 ? route.flatMenu : _menu$flatMenu; // 兼容平铺式写法\n // 拼接 childrenRoutes, 处理存在 indexRoute 时的逻辑\n\n var childrenList = indexRoute && // 如果只有 redirect,不用处理的\n Object.keys(indexRoute).join(',') !== 'redirect' ? [_objectSpread({\n path: path,\n menu: menu\n }, indexRoute)].concat(routerChildren || []) : routerChildren; // 拼接返回的 menu 数据\n\n var result = _objectSpread({}, route);\n\n if (name) {\n result.name = name;\n }\n\n if (icon) {\n result.icon = icon;\n }\n\n if (childrenList && childrenList.length) {\n /** 在菜单中隐藏子项 */\n if (hideChildren) {\n delete result.children;\n return result;\n } // 需要重新进行一次\n\n\n var finalChildren = formatter(_objectSpread(_objectSpread({}, props), {}, {\n data: childrenList\n }), route);\n /** 在菜单中只隐藏此项,子项往上提,仍旧展示 */\n\n if (flatMenu) {\n return finalChildren;\n }\n\n delete result[childrenPropsName];\n }\n\n return result;\n};\n\nvar notNullArray = function notNullArray(value) {\n return Array.isArray(value) && value.length > 0;\n};\n/**\n *\n * @param props\n * @param parent\n */\n\n\nfunction formatter(props) {\n var parent = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {\n path: '/'\n };\n var data = props.data,\n formatMessage = props.formatMessage,\n parentName = props.parentName,\n menuLocale = props.locale;\n\n if (!data || !Array.isArray(data)) {\n return [];\n }\n\n return data.filter(function (item) {\n if (!item) return false;\n if (notNullArray(item.children)) return true;\n if (item.path) return true;\n if (item.originPath) return true;\n if (item.layout) return true; // 重定向\n\n if (item.redirect) return false;\n if (item.unaccessible) return false;\n return false;\n }).filter(function (item) {\n var _item$menu, _item$menu2;\n\n if ((item === null || item === void 0 ? void 0 : (_item$menu = item.menu) === null || _item$menu === void 0 ? void 0 : _item$menu.name) || (item === null || item === void 0 ? void 0 : item.flatMenu) || (item === null || item === void 0 ? void 0 : (_item$menu2 = item.menu) === null || _item$menu2 === void 0 ? void 0 : _item$menu2.flatMenu)) {\n return true;\n } // 显示指定在 menu 中隐藏该项\n // layout 插件的功能,其实不应该存在的\n\n\n if (item.menu === false) {\n return false;\n }\n\n return true;\n }).map(function (finallyItem) {\n var item = _objectSpread(_objectSpread({}, finallyItem), {}, {\n path: finallyItem.path || finallyItem.originPath\n });\n\n if (!item.children && item[childrenPropsName]) {\n item.children = item[childrenPropsName];\n delete item[childrenPropsName];\n } // 是否没有权限查看\n // 这样就不会显示,是一个兼容性的方式\n\n\n if (item.unaccessible) {\n // eslint-disable-next-line no-param-reassign\n delete item.name;\n }\n\n if (item.path === '*') {\n item.path = '.';\n }\n\n if (item.path === '/*') {\n item.path = '.';\n }\n\n if (!item.path && item.originPath) {\n item.path = item.originPath;\n }\n\n return item;\n }).map(function () {\n var item = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {\n path: '/'\n };\n var routerChildren = item.children || item[childrenPropsName] || [];\n var path = mergePath(item.path, parent ? parent.path : '/');\n var name = item.name;\n var locale = getItemLocaleName(item, parentName || 'menu'); // if enableMenuLocale use item.name,\n // close menu international\n\n var localeName = locale !== false && menuLocale !== false && formatMessage && locale ? formatMessage({\n id: locale,\n defaultMessage: name\n }) : name;\n\n var _parent$pro_layout_pa = parent.pro_layout_parentKeys,\n pro_layout_parentKeys = _parent$pro_layout_pa === void 0 ? [] : _parent$pro_layout_pa,\n children = parent.children,\n icon = parent.icon,\n flatMenu = parent.flatMenu,\n indexRoute = parent.indexRoute,\n routes = parent.routes,\n restParent = _objectWithoutProperties(parent, _excluded);\n\n var item_pro_layout_parentKeys = new Set([].concat(_toConsumableArray(pro_layout_parentKeys), _toConsumableArray(item.parentKeys || [])));\n\n if (parent.key) {\n item_pro_layout_parentKeys.add(parent.key);\n }\n\n var finallyItem = _objectSpread(_objectSpread(_objectSpread({}, restParent), {}, {\n menu: undefined\n }, item), {}, {\n path: path,\n locale: locale,\n key: item.key || getKeyByPath(_objectSpread(_objectSpread({}, item), {}, {\n path: path\n })),\n pro_layout_parentKeys: Array.from(item_pro_layout_parentKeys).filter(function (key) {\n return key && key !== '/';\n })\n });\n\n if (localeName) {\n finallyItem.name = localeName;\n } else {\n delete finallyItem.name;\n }\n\n if (finallyItem.menu === undefined) {\n delete finallyItem.menu;\n }\n\n if (notNullArray(routerChildren)) {\n var formatterChildren = formatter(_objectSpread(_objectSpread({}, props), {}, {\n data: routerChildren,\n parentName: locale || ''\n }), finallyItem);\n\n if (notNullArray(formatterChildren)) {\n finallyItem.children = formatterChildren;\n }\n }\n\n return bigfishCompatibleConversions(finallyItem, props);\n }).flat(1);\n}\n/**\n * 删除 hideInMenu 和 item.name 不存在的\n */\n\n\nvar defaultFilterMenuData = function defaultFilterMenuData() {\n var menuData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n return menuData.filter(function (item) {\n return item && (item.name || notNullArray(item.children)) && !item.hideInMenu && !item.redirect;\n }).map(function (item) {\n var newItem = _objectSpread({}, item);\n\n var routerChildren = newItem.children || item[childrenPropsName] || [];\n delete newItem[childrenPropsName];\n\n if (notNullArray(routerChildren) && !newItem.hideChildrenInMenu && routerChildren.some(function (child) {\n return child && !!child.name;\n })) {\n var newChildren = defaultFilterMenuData(routerChildren);\n if (newChildren.length) return _objectSpread(_objectSpread({}, newItem), {}, {\n children: newChildren\n });\n }\n\n return _objectSpread({}, item);\n }).filter(function (item) {\n return item;\n });\n};\n/**\n * support pathToRegexp get string\n */\n\n\nvar RouteListMap = /*#__PURE__*/function (_Map) {\n _inherits(RouteListMap, _Map);\n\n var _super = _createSuper(RouteListMap);\n\n function RouteListMap() {\n _classCallCheck(this, RouteListMap);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(RouteListMap, [{\n key: \"get\",\n value: function get(pathname) {\n var routeValue;\n\n try {\n // eslint-disable-next-line no-restricted-syntax\n var _iterator = _createForOfIteratorHelper(this.entries()),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var _step$value = _slicedToArray(_step.value, 2),\n key = _step$value[0],\n value = _step$value[1];\n\n var path = stripQueryStringAndHashFromPath(key);\n\n if (!isUrl(key) && pathToRegexp(path, []).test(pathname)) {\n routeValue = value;\n break;\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n } catch (error) {\n routeValue = undefined;\n }\n\n return routeValue;\n }\n }]);\n\n return RouteListMap;\n}( /*#__PURE__*/_wrapNativeSuper(Map));\n/**\n * 获取面包屑映射\n * @param MenuDataItem[] menuData 菜单配置\n */\n\n\nvar getBreadcrumbNameMap = function getBreadcrumbNameMap(menuData) {\n // Map is used to ensure the order of keys\n var routerMap = new RouteListMap();\n\n var flattenMenuData = function flattenMenuData(data, parent) {\n data.forEach(function (menuItem) {\n var routerChildren = menuItem.children || menuItem[childrenPropsName] || [];\n\n if (notNullArray(routerChildren)) {\n flattenMenuData(routerChildren, menuItem);\n } // Reduce memory usage\n\n\n var path = mergePath(menuItem.path, parent ? parent.path : '/');\n routerMap.set(stripQueryStringAndHashFromPath(path), menuItem);\n });\n };\n\n flattenMenuData(menuData);\n return routerMap;\n};\n\nvar clearChildren = function clearChildren() {\n var menuData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n return menuData.map(function (item) {\n var routerChildren = item.children || item[childrenPropsName];\n\n if (notNullArray(routerChildren)) {\n var newChildren = clearChildren(routerChildren);\n if (newChildren.length) return _objectSpread({}, item);\n }\n\n var finallyItem = _objectSpread({}, item);\n\n delete finallyItem[childrenPropsName];\n delete finallyItem.children;\n return finallyItem;\n }).filter(function (item) {\n return item;\n });\n};\n/**\n * @param routeList 路由配置\n * @param locale 是否使用国际化\n * @param formatMessage 国际化的程序\n * @param ignoreFilter 是否筛选掉不展示的 menuItem 项,plugin-layout需要所有项目来计算布局样式\n * @returns { breadcrumb, menuData}\n */\n\n\nvar transformRoute = function transformRoute(routeList, locale, formatMessage, ignoreFilter) {\n var originalMenuData = formatter({\n data: routeList,\n formatMessage: formatMessage,\n locale: locale\n });\n var menuData = ignoreFilter ? clearChildren(originalMenuData) : defaultFilterMenuData(originalMenuData); // Map type used for internal logic\n\n var breadcrumb = getBreadcrumbNameMap(originalMenuData);\n return {\n breadcrumb: breadcrumb,\n menuData: menuData\n };\n};\n\nexport default transformRoute;","import _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport { useStyle as useAntdStyle } from '@ant-design/pro-provider';\nvar genProLayoutBaseMenuStyle = function genProLayoutBaseMenuStyle(token, mode) {\n var _token$layout, _token$layout2, _collapsed, _collapsed2, _$concat3, _itemTitle, _$concat5;\n var menuToken = mode.includes('horizontal') ? (_token$layout = token.layout) === null || _token$layout === void 0 ? void 0 : _token$layout.header : (_token$layout2 = token.layout) === null || _token$layout2 === void 0 ? void 0 : _token$layout2.sider;\n return _objectSpread(_objectSpread(_defineProperty({}, \"\".concat(token.componentCls), (_$concat5 = {\n background: 'transparent',\n color: menuToken === null || menuToken === void 0 ? void 0 : menuToken.colorTextMenu,\n border: 'none'\n }, _defineProperty(_$concat5, \"\".concat(token.componentCls, \"-menu-item\"), {\n transition: 'none !important'\n }), _defineProperty(_$concat5, \"\".concat(token.componentCls, \"-submenu-has-icon\"), _defineProperty({}, \"> \".concat(token.antCls, \"-menu-sub\"), {\n paddingInlineStart: 10\n })), _defineProperty(_$concat5, \"\".concat(token.antCls, \"-menu-title-content\"), {\n width: '100%',\n height: '100%',\n display: 'inline-flex'\n }), _defineProperty(_$concat5, \"\".concat(token.antCls, \"-menu-title-content\"), {\n '&:first-child': {\n width: '100%'\n }\n }), _defineProperty(_$concat5, \"\".concat(token.componentCls, \"-item-icon\"), {\n display: 'flex',\n alignItems: 'center'\n }), _defineProperty(_$concat5, \"&&-collapsed\", (_collapsed = {}, _defineProperty(_collapsed, \"\".concat(token.antCls, \"-menu-item, \\n \").concat(token.antCls, \"-menu-item-group > \").concat(token.antCls, \"-menu-item-group-list > \").concat(token.antCls, \"-menu-item, \\n \").concat(token.antCls, \"-menu-item-group > \").concat(token.antCls, \"-menu-item-group-list > \").concat(token.antCls, \"-menu-submenu > \").concat(token.antCls, \"-menu-submenu-title, \\n \").concat(token.antCls, \"-menu-submenu > \").concat(token.antCls, \"-menu-submenu-title\"), {\n paddingInline: '0 !important',\n marginBlock: '4px !important'\n }), _defineProperty(_collapsed, \"\".concat(token.antCls, \"-menu-item-group > \").concat(token.antCls, \"-menu-item-group-list > \").concat(token.antCls, \"-menu-submenu-selected > \").concat(token.antCls, \"-menu-submenu-title, \\n \").concat(token.antCls, \"-menu-submenu-selected > \").concat(token.antCls, \"-menu-submenu-title\"), {\n backgroundColor: menuToken === null || menuToken === void 0 ? void 0 : menuToken.colorBgMenuItemSelected,\n borderRadius: token.borderRadiusLG\n }), _defineProperty(_collapsed, \"\".concat(token.componentCls, \"-group\"), _defineProperty({}, \"\".concat(token.antCls, \"-menu-item-group-title\"), {\n paddingInline: 0\n })), _collapsed)), _defineProperty(_$concat5, '&-item-title', (_itemTitle = {\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'center',\n gap: token.marginXS\n }, _defineProperty(_itemTitle, \"\".concat(token.componentCls, \"-item-text\"), {\n maxWidth: '100%',\n textOverflow: 'ellipsis',\n overflow: 'hidden',\n wordBreak: 'break-all',\n whiteSpace: 'nowrap'\n }), _defineProperty(_itemTitle, '&-collapsed', (_collapsed2 = {\n flexDirection: 'column',\n justifyContent: 'center',\n minWidth: 40,\n height: 40\n }, _defineProperty(_collapsed2, \"\".concat(token.componentCls, \"-item-icon\"), {\n height: '16px',\n width: '16px',\n lineHeight: '16px !important',\n '.anticon': {\n lineHeight: '16px !important',\n height: '16px'\n }\n }), _defineProperty(_collapsed2, \"\".concat(token.componentCls, \"-item-text-has-icon\"), {\n display: 'none !important'\n }), _collapsed2)), _defineProperty(_itemTitle, \"&\".concat(token.componentCls, \"-group-item-title\"), {\n gap: token.marginXS,\n height: 18,\n overflow: 'hidden'\n }), _defineProperty(_itemTitle, \"&\".concat(token.componentCls, \"-item-collapsed-show-title\"), _defineProperty({\n lineHeight: '16px',\n gap: 0\n }, \"&\".concat(token.componentCls, \"-item-title-collapsed\"), (_$concat3 = {\n display: 'flex'\n }, _defineProperty(_$concat3, \"\".concat(token.componentCls, \"-item-icon\"), {\n height: '16px',\n width: '16px',\n lineHeight: '16px !important',\n '.anticon': {\n lineHeight: '16px!important',\n height: '16px'\n }\n }), _defineProperty(_$concat3, \"\".concat(token.componentCls, \"-item-text\"), {\n opacity: '1 !important',\n display: 'inline !important',\n textAlign: 'center',\n fontSize: 12,\n height: 12,\n lineHeight: '12px',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n width: '100%',\n margin: 0,\n padding: 0,\n marginBlockStart: 4\n }), _$concat3))), _itemTitle)), _defineProperty(_$concat5, '&-group', _defineProperty({}, \"\".concat(token.antCls, \"-menu-item-group-title\"), {\n fontSize: 12,\n color: token.colorTextLabel,\n '.anticon': {\n marginInlineEnd: 8\n }\n })), _defineProperty(_$concat5, '&-group-divider', {\n color: token.colorTextSecondary,\n fontSize: 12,\n lineHeight: 20\n }), _$concat5)), mode.includes('horizontal') ? {} : _defineProperty({}, \"\".concat(token.antCls, \"-menu-submenu\").concat(token.antCls, \"-menu-submenu-popup\"), _defineProperty({}, \"\".concat(token.componentCls, \"-item-title\"), {\n alignItems: 'flex-start'\n }))), {}, _defineProperty({}, \"\".concat(token.antCls, \"-menu-submenu-popup\"), {\n backgroundColor: 'rgba(255, 255, 255, 0.42)',\n '-webkit-backdrop-filter': 'blur(8px)',\n backdropFilter: 'blur(8px)'\n }));\n};\nexport function useStyle(prefixCls, mode) {\n return useAntdStyle('ProLayoutBaseMenu' + mode, function (token) {\n var proLayoutMenuToken = _objectSpread(_objectSpread({}, token), {}, {\n componentCls: \".\".concat(prefixCls)\n });\n return [genProLayoutBaseMenuStyle(proLayoutMenuToken, mode || 'inline')];\n });\n}","import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport { useStyle as useAntdStyle } from '@ant-design/pro-provider';\nimport { version } from 'antd';\nvar getVersion = function getVersion() {\n var _process, _process$env;\n if (typeof process === 'undefined') return version;\n return ((_process = process) === null || _process === void 0 ? void 0 : (_process$env = _process.env) === null || _process$env === void 0 ? void 0 : _process$env.ANTD_VERSION) || version;\n};\n\n/**\n * 主要区别:\n * 需要手动引入 import 'antd/dist/antd.css';\n * 需要重置 menu 的样式\n * @param token\n * @returns\n */\nvar compatibleStyle = function compatibleStyle(token) {\n var _getVersion, _token$layout, _token$layout$sider, _token$layout2, _token$layout2$sider, _token$layout3, _token$layout3$sider, _$concat, _token$layout4, _token$layout4$sider, _token$layout5, _token$layout5$sider, _token$layout6, _token$layout6$sider, _token$layout7, _token$layout7$sider, _token$layout8, _token$layout8$header, _token$layout9, _token$layout9$sider, _$concat$concat, _token$layout10, _token$layout10$sider, _token$layout11, _token$layout11$sider, _token$layout12, _token$layout12$sider, _token$layout13, _token$layout13$sider, _token$layout14, _token$layout14$sider, _token$layout15, _token$layout15$heade, _token$layout16, _token$layout16$heade, _token$layout17, _token$layout17$heade, _token$layout18, _token$layout18$heade, _token$layout19, _token$layout19$heade, _$concat5, _$concat6, _token$layout20, _token$layout20$heade, _token$layout21, _token$layout21$heade, _token$layout22, _token$layout22$heade, _token$layout23, _token$layout23$heade, _token$layout24, _token$layout24$heade, _token$layout25, _token$layout25$heade, _$concat8, _$concat9, _token$componentCls, _token$layout26, _token$layout26$sider, _token$layout27, _token$layout27$sider, _token$layout28, _token$layout28$sider, _token$layout29, _token$layout29$sider, _token$layout30, _token$layout30$sider, _$concat$concat2, _$concat11, _ref;\n if ((_getVersion = getVersion()) !== null && _getVersion !== void 0 && _getVersion.startsWith('5')) {\n return {};\n }\n return _ref = {}, _defineProperty(_ref, token.componentCls, (_token$componentCls = {\n width: '100%',\n height: '100%'\n }, _defineProperty(_token$componentCls, \"\".concat(token.proComponentsCls, \"-base-menu\"), (_$concat6 = {\n color: (_token$layout = token.layout) === null || _token$layout === void 0 ? void 0 : (_token$layout$sider = _token$layout.sider) === null || _token$layout$sider === void 0 ? void 0 : _token$layout$sider.colorTextMenu\n }, _defineProperty(_$concat6, \"\".concat(token.antCls, \"-menu-sub\"), {\n backgroundColor: 'transparent!important',\n color: (_token$layout2 = token.layout) === null || _token$layout2 === void 0 ? void 0 : (_token$layout2$sider = _token$layout2.sider) === null || _token$layout2$sider === void 0 ? void 0 : _token$layout2$sider.colorTextMenu\n }), _defineProperty(_$concat6, \"& \".concat(token.antCls, \"-layout\"), {\n backgroundColor: 'transparent',\n width: '100%'\n }), _defineProperty(_$concat6, \"\".concat(token.antCls, \"-menu-submenu-expand-icon, \").concat(token.antCls, \"-menu-submenu-arrow\"), {\n color: 'inherit'\n }), _defineProperty(_$concat6, \"&\".concat(token.antCls, \"-menu\"), (_$concat = {\n color: (_token$layout3 = token.layout) === null || _token$layout3 === void 0 ? void 0 : (_token$layout3$sider = _token$layout3.sider) === null || _token$layout3$sider === void 0 ? void 0 : _token$layout3$sider.colorTextMenu\n }, _defineProperty(_$concat, \"\".concat(token.antCls, \"-menu-item\"), {\n '*': {\n transition: 'none !important'\n }\n }), _defineProperty(_$concat, \"\".concat(token.antCls, \"-menu-item a\"), {\n color: 'inherit'\n }), _$concat)), _defineProperty(_$concat6, \"&\".concat(token.antCls, \"-menu-inline\"), _defineProperty({}, \"\".concat(token.antCls, \"-menu-selected::after,\").concat(token.antCls, \"-menu-item-selected::after\"), {\n display: 'none'\n })), _defineProperty(_$concat6, \"\".concat(token.antCls, \"-menu-sub \").concat(token.antCls, \"-menu-inline\"), {\n backgroundColor: 'transparent!important'\n }), _defineProperty(_$concat6, \"\".concat(token.antCls, \"-menu-item:active, \\n \").concat(token.antCls, \"-menu-submenu-title:active\"), {\n backgroundColor: 'transparent!important'\n }), _defineProperty(_$concat6, \"&\".concat(token.antCls, \"-menu-light\"), _defineProperty({}, \"\".concat(token.antCls, \"-menu-item:hover, \\n \").concat(token.antCls, \"-menu-item-active,\\n \").concat(token.antCls, \"-menu-submenu-active, \\n \").concat(token.antCls, \"-menu-submenu-title:hover\"), _defineProperty({\n color: (_token$layout4 = token.layout) === null || _token$layout4 === void 0 ? void 0 : (_token$layout4$sider = _token$layout4.sider) === null || _token$layout4$sider === void 0 ? void 0 : _token$layout4$sider.colorTextMenuActive,\n borderRadius: token.borderRadius\n }, \"\".concat(token.antCls, \"-menu-submenu-arrow\"), {\n color: (_token$layout5 = token.layout) === null || _token$layout5 === void 0 ? void 0 : (_token$layout5$sider = _token$layout5.sider) === null || _token$layout5$sider === void 0 ? void 0 : _token$layout5$sider.colorTextMenuActive\n }))), _defineProperty(_$concat6, \"&\".concat(token.antCls, \"-menu:not(\").concat(token.antCls, \"-menu-horizontal)\"), (_$concat$concat = {}, _defineProperty(_$concat$concat, \"\".concat(token.antCls, \"-menu-item-selected\"), {\n backgroundColor: (_token$layout6 = token.layout) === null || _token$layout6 === void 0 ? void 0 : (_token$layout6$sider = _token$layout6.sider) === null || _token$layout6$sider === void 0 ? void 0 : _token$layout6$sider.colorBgMenuItemSelected,\n borderRadius: token.borderRadius\n }), _defineProperty(_$concat$concat, \"\".concat(token.antCls, \"-menu-item:hover, \\n \").concat(token.antCls, \"-menu-item-active,\\n \").concat(token.antCls, \"-menu-submenu-title:hover\"), _defineProperty({\n color: (_token$layout7 = token.layout) === null || _token$layout7 === void 0 ? void 0 : (_token$layout7$sider = _token$layout7.sider) === null || _token$layout7$sider === void 0 ? void 0 : _token$layout7$sider.colorTextMenuActive,\n borderRadius: token.borderRadius,\n backgroundColor: \"\".concat((_token$layout8 = token.layout) === null || _token$layout8 === void 0 ? void 0 : (_token$layout8$header = _token$layout8.header) === null || _token$layout8$header === void 0 ? void 0 : _token$layout8$header.colorBgMenuItemHover, \" !important\")\n }, \"\".concat(token.antCls, \"-menu-submenu-arrow\"), {\n color: (_token$layout9 = token.layout) === null || _token$layout9 === void 0 ? void 0 : (_token$layout9$sider = _token$layout9.sider) === null || _token$layout9$sider === void 0 ? void 0 : _token$layout9$sider.colorTextMenuActive\n })), _$concat$concat)), _defineProperty(_$concat6, \"\".concat(token.antCls, \"-menu-item-selected\"), {\n color: (_token$layout10 = token.layout) === null || _token$layout10 === void 0 ? void 0 : (_token$layout10$sider = _token$layout10.sider) === null || _token$layout10$sider === void 0 ? void 0 : _token$layout10$sider.colorTextMenuSelected\n }), _defineProperty(_$concat6, \"\".concat(token.antCls, \"-menu-submenu-selected\"), {\n color: (_token$layout11 = token.layout) === null || _token$layout11 === void 0 ? void 0 : (_token$layout11$sider = _token$layout11.sider) === null || _token$layout11$sider === void 0 ? void 0 : _token$layout11$sider.colorTextMenuSelected\n }), _defineProperty(_$concat6, \"&\".concat(token.antCls, \"-menu:not(\").concat(token.antCls, \"-menu-inline) \").concat(token.antCls, \"-menu-submenu-open\"), {\n color: (_token$layout12 = token.layout) === null || _token$layout12 === void 0 ? void 0 : (_token$layout12$sider = _token$layout12.sider) === null || _token$layout12$sider === void 0 ? void 0 : _token$layout12$sider.colorTextMenuSelected\n }), _defineProperty(_$concat6, \"&\".concat(token.antCls, \"-menu-vertical\"), _defineProperty({}, \"\".concat(token.antCls, \"-menu-submenu-selected\"), {\n borderRadius: token.borderRadius,\n color: (_token$layout13 = token.layout) === null || _token$layout13 === void 0 ? void 0 : (_token$layout13$sider = _token$layout13.sider) === null || _token$layout13$sider === void 0 ? void 0 : _token$layout13$sider.colorTextMenuSelected\n })), _defineProperty(_$concat6, \"\".concat(token.antCls, \"-menu-submenu:hover > \").concat(token.antCls, \"-menu-submenu-title > \").concat(token.antCls, \"-menu-submenu-arrow\"), {\n color: (_token$layout14 = token.layout) === null || _token$layout14 === void 0 ? void 0 : (_token$layout14$sider = _token$layout14.sider) === null || _token$layout14$sider === void 0 ? void 0 : _token$layout14$sider.colorTextMenuActive\n }), _defineProperty(_$concat6, \"&\".concat(token.antCls, \"-menu-horizontal\"), (_$concat5 = {}, _defineProperty(_$concat5, \"\".concat(token.antCls, \"-menu-item:hover,\\n \").concat(token.antCls, \"-menu-submenu:hover,\\n \").concat(token.antCls, \"-menu-item-active,\\n \").concat(token.antCls, \"-menu-submenu-active\"), {\n borderRadius: 4,\n transition: 'none',\n color: (_token$layout15 = token.layout) === null || _token$layout15 === void 0 ? void 0 : (_token$layout15$heade = _token$layout15.header) === null || _token$layout15$heade === void 0 ? void 0 : _token$layout15$heade.colorTextMenuActive,\n backgroundColor: \"\".concat((_token$layout16 = token.layout) === null || _token$layout16 === void 0 ? void 0 : (_token$layout16$heade = _token$layout16.header) === null || _token$layout16$heade === void 0 ? void 0 : _token$layout16$heade.colorBgMenuItemHover, \" !important\")\n }), _defineProperty(_$concat5, \"\".concat(token.antCls, \"-menu-item-open,\\n \").concat(token.antCls, \"-menu-submenu-open,\\n \").concat(token.antCls, \"-menu-item-selected,\\n \").concat(token.antCls, \"-menu-submenu-selected\"), _defineProperty({\n backgroundColor: (_token$layout17 = token.layout) === null || _token$layout17 === void 0 ? void 0 : (_token$layout17$heade = _token$layout17.header) === null || _token$layout17$heade === void 0 ? void 0 : _token$layout17$heade.colorBgMenuItemSelected,\n borderRadius: token.borderRadius,\n transition: 'none',\n color: \"\".concat((_token$layout18 = token.layout) === null || _token$layout18 === void 0 ? void 0 : (_token$layout18$heade = _token$layout18.header) === null || _token$layout18$heade === void 0 ? void 0 : _token$layout18$heade.colorTextMenuSelected, \" !important\")\n }, \"\".concat(token.antCls, \"-menu-submenu-arrow\"), {\n color: \"\".concat((_token$layout19 = token.layout) === null || _token$layout19 === void 0 ? void 0 : (_token$layout19$heade = _token$layout19.header) === null || _token$layout19$heade === void 0 ? void 0 : _token$layout19$heade.colorTextMenuSelected, \" !important\")\n })), _defineProperty(_$concat5, \"> \".concat(token.antCls, \"-menu-item, > \").concat(token.antCls, \"-menu-submenu\"), {\n paddingInline: 16,\n marginInline: 4\n }), _defineProperty(_$concat5, \"> \".concat(token.antCls, \"-menu-item::after, > \").concat(token.antCls, \"-menu-submenu::after\"), {\n display: 'none'\n }), _$concat5)), _$concat6)), _defineProperty(_token$componentCls, \"\".concat(token.proComponentsCls, \"-top-nav-header-base-menu\"), (_$concat9 = {}, _defineProperty(_$concat9, \"&\".concat(token.antCls, \"-menu\"), _defineProperty({\n color: (_token$layout20 = token.layout) === null || _token$layout20 === void 0 ? void 0 : (_token$layout20$heade = _token$layout20.header) === null || _token$layout20$heade === void 0 ? void 0 : _token$layout20$heade.colorTextMenu\n }, \"\".concat(token.antCls, \"-menu-item a\"), {\n color: 'inherit'\n })), _defineProperty(_$concat9, \"&\".concat(token.antCls, \"-menu-light\"), (_$concat8 = {}, _defineProperty(_$concat8, \"\".concat(token.antCls, \"-menu-item:hover, \\n \").concat(token.antCls, \"-menu-item-active,\\n \").concat(token.antCls, \"-menu-submenu-active, \\n \").concat(token.antCls, \"-menu-submenu-title:hover\"), _defineProperty({\n color: (_token$layout21 = token.layout) === null || _token$layout21 === void 0 ? void 0 : (_token$layout21$heade = _token$layout21.header) === null || _token$layout21$heade === void 0 ? void 0 : _token$layout21$heade.colorTextMenuActive,\n borderRadius: token.borderRadius,\n transition: 'none',\n backgroundColor: (_token$layout22 = token.layout) === null || _token$layout22 === void 0 ? void 0 : (_token$layout22$heade = _token$layout22.header) === null || _token$layout22$heade === void 0 ? void 0 : _token$layout22$heade.colorBgMenuItemSelected\n }, \"\".concat(token.antCls, \"-menu-submenu-arrow\"), {\n color: (_token$layout23 = token.layout) === null || _token$layout23 === void 0 ? void 0 : (_token$layout23$heade = _token$layout23.header) === null || _token$layout23$heade === void 0 ? void 0 : _token$layout23$heade.colorTextMenuActive\n })), _defineProperty(_$concat8, \"\".concat(token.antCls, \"-menu-item-selected\"), {\n color: (_token$layout24 = token.layout) === null || _token$layout24 === void 0 ? void 0 : (_token$layout24$heade = _token$layout24.header) === null || _token$layout24$heade === void 0 ? void 0 : _token$layout24$heade.colorTextMenuSelected,\n borderRadius: token.borderRadius,\n backgroundColor: (_token$layout25 = token.layout) === null || _token$layout25 === void 0 ? void 0 : (_token$layout25$heade = _token$layout25.header) === null || _token$layout25$heade === void 0 ? void 0 : _token$layout25$heade.colorBgMenuItemSelected\n }), _$concat8)), _$concat9)), _token$componentCls)), _defineProperty(_ref, \"\".concat(token.antCls, \"-menu-sub\").concat(token.antCls, \"-menu-inline\"), {\n backgroundColor: 'transparent!important'\n }), _defineProperty(_ref, \"\".concat(token.antCls, \"-menu-submenu-popup\"), (_$concat11 = {\n backgroundColor: 'rgba(255, 255, 255, 0.42)',\n '-webkit-backdrop-filter': 'blur(8px)',\n backdropFilter: 'blur(8px)'\n }, _defineProperty(_$concat11, \"\".concat(token.antCls, \"-menu\"), _defineProperty({\n background: 'transparent !important',\n backgroundColor: 'transparent !important'\n }, \"\".concat(token.antCls, \"-menu-item:active, \\n \").concat(token.antCls, \"-menu-submenu-title:active\"), {\n backgroundColor: 'transparent!important'\n })), _defineProperty(_$concat11, \"\".concat(token.antCls, \"-menu-item-selected\"), {\n color: (_token$layout26 = token.layout) === null || _token$layout26 === void 0 ? void 0 : (_token$layout26$sider = _token$layout26.sider) === null || _token$layout26$sider === void 0 ? void 0 : _token$layout26$sider.colorTextMenuSelected\n }), _defineProperty(_$concat11, \"\".concat(token.antCls, \"-menu-submenu-selected\"), {\n color: (_token$layout27 = token.layout) === null || _token$layout27 === void 0 ? void 0 : (_token$layout27$sider = _token$layout27.sider) === null || _token$layout27$sider === void 0 ? void 0 : _token$layout27$sider.colorTextMenuSelected\n }), _defineProperty(_$concat11, \"\".concat(token.antCls, \"-menu:not(\").concat(token.antCls, \"-menu-horizontal)\"), (_$concat$concat2 = {}, _defineProperty(_$concat$concat2, \"\".concat(token.antCls, \"-menu-item-selected\"), {\n backgroundColor: 'rgba(0, 0, 0, 0.04)',\n borderRadius: token.borderRadius,\n color: (_token$layout28 = token.layout) === null || _token$layout28 === void 0 ? void 0 : (_token$layout28$sider = _token$layout28.sider) === null || _token$layout28$sider === void 0 ? void 0 : _token$layout28$sider.colorTextMenuSelected\n }), _defineProperty(_$concat$concat2, \"\".concat(token.antCls, \"-menu-item:hover, \\n \").concat(token.antCls, \"-menu-item-active,\\n \").concat(token.antCls, \"-menu-submenu-title:hover\"), _defineProperty({\n color: (_token$layout29 = token.layout) === null || _token$layout29 === void 0 ? void 0 : (_token$layout29$sider = _token$layout29.sider) === null || _token$layout29$sider === void 0 ? void 0 : _token$layout29$sider.colorTextMenuActive,\n borderRadius: token.borderRadius\n }, \"\".concat(token.antCls, \"-menu-submenu-arrow\"), {\n color: (_token$layout30 = token.layout) === null || _token$layout30 === void 0 ? void 0 : (_token$layout30$sider = _token$layout30.sider) === null || _token$layout30$sider === void 0 ? void 0 : _token$layout30$sider.colorTextMenuActive\n })), _$concat$concat2)), _$concat11)), _ref;\n};\nvar genProLayoutStyle = function genProLayoutStyle(token) {\n var _token$layout31, _token$layout31$pageC, _token$layout32, _token$layout32$pageC, _token$layout33, _token$layout33$pageC, _token$layout34, _token$componentCls2, _ref2;\n return _ref2 = {}, _defineProperty(_ref2, \"\".concat(token.antCls, \"-layout\"), {\n backgroundColor: 'transparent !important'\n }), _defineProperty(_ref2, token.componentCls, (_token$componentCls2 = {}, _defineProperty(_token$componentCls2, \"& \".concat(token.antCls, \"-layout\"), {\n display: 'flex',\n backgroundColor: 'transparent',\n width: '100%'\n }), _defineProperty(_token$componentCls2, \"\".concat(token.componentCls, \"-content\"), {\n display: 'flex',\n flexDirection: 'column',\n width: '100%',\n backgroundColor: ((_token$layout31 = token.layout) === null || _token$layout31 === void 0 ? void 0 : (_token$layout31$pageC = _token$layout31.pageContainer) === null || _token$layout31$pageC === void 0 ? void 0 : _token$layout31$pageC.colorBgPageContainer) || 'transparent',\n position: 'relative',\n paddingBlock: (_token$layout32 = token.layout) === null || _token$layout32 === void 0 ? void 0 : (_token$layout32$pageC = _token$layout32.pageContainer) === null || _token$layout32$pageC === void 0 ? void 0 : _token$layout32$pageC.paddingBlockPageContainerContent,\n paddingInline: (_token$layout33 = token.layout) === null || _token$layout33 === void 0 ? void 0 : (_token$layout33$pageC = _token$layout33.pageContainer) === null || _token$layout33$pageC === void 0 ? void 0 : _token$layout33$pageC.paddingInlinePageContainerContent,\n '&-has-page-container': {\n padding: 0\n }\n }), _defineProperty(_token$componentCls2, \"\".concat(token.componentCls, \"-container\"), {\n width: '100%',\n display: 'flex',\n flexDirection: 'column',\n minWidth: 0,\n minHeight: 0,\n backgroundColor: 'transparent'\n }), _defineProperty(_token$componentCls2, \"\".concat(token.componentCls, \"-bg-list\"), {\n pointerEvents: 'none',\n position: 'fixed',\n overflow: 'hidden',\n insetBlockStart: 0,\n insetInlineStart: 0,\n zIndex: 0,\n height: '100%',\n width: '100%',\n background: (_token$layout34 = token.layout) === null || _token$layout34 === void 0 ? void 0 : _token$layout34.bgLayout\n }), _token$componentCls2)), _ref2;\n};\nexport function useStyle(prefixCls) {\n return useAntdStyle('ProLayout', function (token) {\n var proLayoutToken = _objectSpread(_objectSpread({}, token), {}, {\n componentCls: \".\".concat(prefixCls)\n });\n return [genProLayoutStyle(proLayoutToken), compatibleStyle(proLayoutToken)];\n });\n}"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/deepdataspace/server/static/233.9b953a00.async.js b/deepdataspace/server/static/233.3d91ac9a.async.js similarity index 99% rename from deepdataspace/server/static/233.9b953a00.async.js rename to deepdataspace/server/static/233.3d91ac9a.async.js index a45cff5..ddacc50 100644 --- a/deepdataspace/server/static/233.9b953a00.async.js +++ b/deepdataspace/server/static/233.3d91ac9a.async.js @@ -4,5 +4,3 @@ `,F+="."+U+" { "+C(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+P,"animation-name: "+P])+` } `,F+="@-webkit-keyframes "+P+` { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } } `,F+="@keyframes "+P+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }",D(F)}}function i(x){x.className+=" "+f+"_animation_active"}function a(x,c,z){if(x.addEventListener)x.addEventListener(c,z);else if(x.attachEvent)x.attachEvent("on"+c,z);else return v.error("[scroll] Don't know how to add event listeners.")}function y(x,c,z){if(x.removeEventListener)x.removeEventListener(c,z);else if(x.detachEvent)x.detachEvent("on"+c,z);else return v.error("[scroll] Don't know how to remove event listeners.")}function L(x){return n(x).container.childNodes[0].childNodes[0].childNodes[0]}function t(x){return n(x).container.childNodes[0].childNodes[0].childNodes[1]}function e(x,c){var z=n(x).listeners;if(!z.push)throw new Error("Cannot add listener to an element that is not detectable.");n(x).listeners.push(c)}function d(x,c,z){z||(z=c,c=x,x=null),x=x||{};function D(){if(x.debug){var O=Array.prototype.slice.call(arguments);if(O.unshift(g.get(c),"Scroll: "),v.log.apply)v.log.apply(null,O);else for(var M=0;M