diff --git a/.github/workflows/registry-publish.yml b/.github/workflows/registry-publish.yml deleted file mode 100644 index c850e4d..0000000 --- a/.github/workflows/registry-publish.yml +++ /dev/null @@ -1,54 +0,0 @@ -name: publish package to serverless-hub - -on: - release: - types: [created] - -jobs: - deploy: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: '3.x' - - uses: actions/setup-node@v1 - with: - node-version: 12 - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install setuptools wheel twine - pip install requests - - name: NPM install - run: | - npm install --production - - name: Add publish file - run: | - wget https://serverless-registry.oss-cn-hangzhou.aliyuncs.com/publish-file/python3/hub-publish.py - ls - - name: Publish package - env: - publish_token: ${{ secrets.alibaba_registry_publish_token }} - release_body: ${{ github.event.release.body }} - release_name: ${{ github.event.release.name }} - run: | - if [[ -n $(echo "$release_name $release_body" | grep -P 'fc-stable-diffusion(?!-)') ]]; then - echo "release fc-stable-diffusion" - python hub-publish.py - fi - - if [[ -n $(echo "$release_name $release_body" | grep -P 'fc-stable-diffusion-plus') ]]; then - echo "release fc-stable-diffusion-plus" - mv publish-plus.yaml publish.yaml - mv readme-plus.md readme.md - python hub-publish.py - fi - - if [[ -n $(echo "$release_name $release_body" | grep -P 'fc-stable-diffusion-api') ]]; then - echo "release fc-stable-diffusion-api" - mv publish-api.yaml publish.yaml - mv readme-api.md readme.md - python hub-publish.py - fi diff --git a/.github/workflows/release-dev.yml b/.github/workflows/release-dev.yml new file mode 100644 index 0000000..e455e90 --- /dev/null +++ b/.github/workflows/release-dev.yml @@ -0,0 +1,56 @@ +name: release dev version to serverless-hub + +on: + push: + branches: + - master + - main + - dev + - 'dev/**' + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + - uses: actions/setup-node@v1 + with: + node-version: 12 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel twine + pip install requests + - name: NPM install + run: | + npm install --production + - name: Add publish file + run: | + wget https://serverless-registry.oss-cn-hangzhou.aliyuncs.com/publish-file/python3/hub-publish.py + ls + - name: Publish package + env: + publish_token: ${{ secrets.alibaba_registry_publish_token }} + run: | + export TAG="dev" + + echo "release fc-stable-diffusion" + sed -i "s/Version: .*/Version: ${TAG}/" publish.yaml + python hub-publish.py + + echo "release fc-stable-diffusion-plus" + mv publish-plus.yaml publish.yaml + mv readme-plus.md readme.md + sed -i "s/Version: .*/Version: ${TAG}/" publish.yaml + python hub-publish.py + + + echo "release fc-stable-diffusion-api" + mv publish-api.yaml publish.yaml + mv readme-api.md readme.md + sed -i "s/Version: .*/Version: ${TAG}/" publish.yaml + python hub-publish.py \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..053a8eb --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,83 @@ +name: release package to serverless-hub + +on: + release: + types: [created] + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + - uses: actions/setup-node@v1 + with: + node-version: 12 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel twine + pip install requests + - name: NPM install + run: | + npm install --production + - name: Add publish file + run: | + wget https://serverless-registry.oss-cn-hangzhou.aliyuncs.com/publish-file/python3/hub-publish.py + ls + - name: Publish package + env: + publish_token: ${{ secrets.alibaba_registry_publish_token }} + release_body: ${{ github.event.release.body }} + release_name: ${{ github.event.release.name }} + run: | + if [[ -e "${release_body}" ]]; then + TAG=$(git describe --tags --always | sed 's/^v//') + echo "release ${TAG}" + + echo "release fc-stable-diffusion" + sed -i "s/Version: .*/Version: ${TAG}/" publish.yaml + python hub-publish.py + + echo "release fc-stable-diffusion-plus" + mv publish-plus.yaml publish.yaml + mv readme-plus.md readme.md + sed -i "s/Version: .*/Version: ${TAG}/" publish.yaml + python hub-publish.py + + + echo "release fc-stable-diffusion-api" + mv publish-api.yaml publish.yaml + mv readme-api.md readme.md + sed -i "s/Version: .*/Version: ${TAG}/" publish.yaml + python hub-publish.py + + else + + if [[ -n $(echo "$release_name $release_body" | grep -P 'fc-stable-diffusion(?!-)') ]]; then + echo "release fc-stable-diffusion" + python hub-publish.py + fi + + if [[ -n $(echo "$release_name $release_body" | grep -P 'fc-stable-diffusion-plus') ]]; then + echo "release fc-stable-diffusion-plus" + mv publish-plus.yaml publish.yaml + mv readme-plus.md readme.md + python hub-publish.py + fi + + if [[ -n $(echo "$release_name $release_body" | grep -P 'fc-stable-diffusion-api') ]]; then + echo "release fc-stable-diffusion-api" + mv publish-api.yaml publish.yaml + mv readme-api.md readme.md + python hub-publish.py + fi + + fi + + + + diff --git a/publish-api.yaml b/publish-api.yaml index 81aed74..f19186b 100644 --- a/publish-api.yaml +++ b/publish-api.yaml @@ -2,7 +2,7 @@ Type: Application Name: fc-stable-diffusion-api Provider: - 阿里云 -Version: 1.0.10 +Version: dev Description: 使用serverless devs将stable-diffusion-api部署到阿里云函数计算上 HomePage: https://github.com/OhYee/fc-stable-diffuson Tags: #标签详情 @@ -29,6 +29,7 @@ Parameters: description: 创建应用所在的地区。由于当前模板涉及 Github 以及 HuggingFace 等网站访问,国内部分地区可能无法直接使用,推荐您选择海外地区进行部署 enum: - ap-northeast-1 + - ap-southeast-1 - cn-beijing - cn-hangzhou - cn-shanghai @@ -59,7 +60,7 @@ Parameters: - SD1.5 - 动漫风格 - 真人风格 - + - 轻量版 nasEnabled: title: 启用 NAS type: boolean diff --git a/publish-plus.yaml b/publish-plus.yaml index baf0203..ce04130 100644 --- a/publish-plus.yaml +++ b/publish-plus.yaml @@ -2,7 +2,7 @@ Type: Application Name: fc-stable-diffusion-plus Provider: - 阿里云 -Version: 1.0.10 +Version: dev Description: 使用serverless devs将stable-diffusion-plus部署到阿里云函数计算上 HomePage: https://github.com/OhYee/fc-stable-diffuson Tags: #标签详情 @@ -29,6 +29,7 @@ Parameters: description: 创建应用所在的地区。由于当前模板涉及 Github 以及 HuggingFace 等网站访问,国内部分地区可能无法直接使用,推荐您选择海外地区进行部署 enum: - ap-northeast-1 + - ap-southeast-1 - cn-beijing - cn-hangzhou - cn-shanghai @@ -59,7 +60,7 @@ Parameters: - SD1.5 - 动漫风格 - 真人风格 - + - 轻量版 nasEnabled: title: 启用 NAS type: boolean diff --git a/publish.yaml b/publish.yaml index ee6a61b..5068b35 100644 --- a/publish.yaml +++ b/publish.yaml @@ -2,7 +2,7 @@ Type: Application Name: fc-stable-diffusion Provider: - 阿里云 -Version: 1.0.10 +Version: dev Description: 使用serverless devs将stable-diffusion部署到阿里云函数计算上 HomePage: https://github.com/OhYee/fc-stable-diffuson Tags: #标签详情 @@ -25,6 +25,7 @@ Parameters: description: 创建应用所在的地区。由于当前模板涉及 Github 以及 HuggingFace 等网站访问,国内部分地区可能无法直接使用,推荐您选择海外地区进行部署 enum: - ap-northeast-1 + - ap-southeast-1 - cn-beijing - cn-hangzhou - cn-shanghai @@ -53,6 +54,7 @@ Parameters: - SD1.5 - 动漫风格 - 真人风格 + - 轻量版 enableCollect: title: 协助改善体验 type: boolean diff --git a/src/Makefile b/src/Makefile index 6f1894d..cd584de 100644 --- a/src/Makefile +++ b/src/Makefile @@ -13,29 +13,33 @@ help: ## 帮助文件 NAMESPACE=aliyun-fc REPO=fc-stable-diffusion -BASE_TAG=basev6 +BASE_TAG=basev8 -SD15_VERSION=v8 -ANIME_VERSION=v8 -REALMAN_VERSION=v8 +SD15_VERSION=v10 +ANIME_VERSION=v10 +REALMAN_VERSION=v10 +LITE_VERSION=v2 -push: push-beijing push-shanghai push-shenzhen push-hangzhou ## push 镜像到所有 registry +push: push-jp push-beijing push-shanghai push-shenzhen push-hangzhou ## push 镜像到所有 registry build-base: ## 构建基础镜像 DOCKER_BUILDKIT=1 docker build -f code/images/Dockerfile --target base -t registry.cn-hangzhou.aliyuncs.com/${NAMESPACE}/${REPO}:${BASE_TAG} code/images build-sd1.5: ## 构建 sd 1.5 - DOCKER_BUILDKIT=1 docker build -f code/images/Dockerfile --target sd1.5 -t stable-diffusion:sd1.5-${SD15_VERSION} code/images/ + DOCKER_BUILDKIT=1 docker build -f code/images/Dockerfile --target sd1.5 --build-arg IMAGE_TAG=sd1.5-${SD15_VERSION} -t stable-diffusion:sd1.5-${SD15_VERSION} code/images/ build-anime: ## 构建动漫风格 - DOCKER_BUILDKIT=1 docker build -f code/images/Dockerfile --target anime -t stable-diffusion:anime-${ANIME_VERSION} code/images/ + DOCKER_BUILDKIT=1 docker build -f code/images/Dockerfile --target anime --build-arg IMAGE_TAG=anime-${ANIME_VERSION} -t stable-diffusion:anime-${ANIME_VERSION} code/images/ build-realman: ## 构建真人风格 - DOCKER_BUILDKIT=1 docker build -f code/images/Dockerfile --target realman -t stable-diffusion:realman-${REALMAN_VERSION} code/images/ + DOCKER_BUILDKIT=1 docker build -f code/images/Dockerfile --target realman --build-arg IMAGE_TAG=realman-${REALMAN_VERSION} -t stable-diffusion:realman-${REALMAN_VERSION} code/images/ -build: build-sd1.5 build-anime build-realman # 构建全部镜像 +build-lite: ## 构建 Lite 版本 + DOCKER_BUILDKIT=1 docker build -f code/images/Dockerfile --target lite --build-arg IMAGE_TAG=lite-${LITE_VERSION} -t stable-diffusion:lite-${LITE_VERSION} code/images/ + +build: build-sd1.5 build-anime build-realman build-lite # 构建全部镜像 @@ -45,42 +49,42 @@ push-base: ## 推送基础镜像 push-beijing: ## push 镜像到北京 IMAGE=registry.cn-beijing.aliyuncs.com/${NAMESPACE}/${REPO} && \ - for tag in "sd1.5-${SD15_VERSION}" "anime-${ANIME_VERSION}" "realman-${REALMAN_VERSION}"; do \ + for tag in "sd1.5-${SD15_VERSION}" "anime-${ANIME_VERSION}" "realman-${REALMAN_VERSION}" "lite-${LITE_VERSION}"; do \ docker tag stable-diffusion:$$tag $$IMAGE:$$tag && \ docker push $$IMAGE:$$tag; \ done push-shanghai: ## push 镜像到上海 IMAGE=registry.cn-shanghai.aliyuncs.com/${NAMESPACE}/${REPO} && \ - for tag in "sd1.5-${SD15_VERSION}" "anime-${ANIME_VERSION}" "realman-${REALMAN_VERSION}"; do \ + for tag in "sd1.5-${SD15_VERSION}" "anime-${ANIME_VERSION}" "realman-${REALMAN_VERSION}" "lite-${LITE_VERSION}"; do \ docker tag stable-diffusion:$$tag $$IMAGE:$$tag && \ docker push $$IMAGE:$$tag; \ done push-shenzhen: ## push 镜像到深圳 IMAGE=registry.cn-shenzhen.aliyuncs.com/${NAMESPACE}/${REPO} && \ - for tag in "sd1.5-${SD15_VERSION}" "anime-${ANIME_VERSION}" "realman-${REALMAN_VERSION}"; do \ + for tag in "sd1.5-${SD15_VERSION}" "anime-${ANIME_VERSION}" "realman-${REALMAN_VERSION}" "lite-${LITE_VERSION}"; do \ docker tag stable-diffusion:$$tag $$IMAGE:$$tag && \ docker push $$IMAGE:$$tag; \ done push-hangzhou: ## push 镜像到杭州 IMAGE=registry.cn-hangzhou.aliyuncs.com/${NAMESPACE}/${REPO} && \ - for tag in "sd1.5-${SD15_VERSION}" "anime-${ANIME_VERSION}" "realman-${REALMAN_VERSION}"; do \ + for tag in "sd1.5-${SD15_VERSION}" "anime-${ANIME_VERSION}" "realman-${REALMAN_VERSION}" "lite-${LITE_VERSION}"; do \ docker tag stable-diffusion:$$tag $$IMAGE:$$tag && \ docker push $$IMAGE:$$tag; \ done push-ap: build ## push 镜像到新加坡 IMAGE=registry-vpc.ap-southeast-1.aliyuncs.com/${NAMESPACE}/${REPO} && \ - for tag in "sd1.5-${SD15_VERSION}" "anime-${ANIME_VERSION}" "realman-${REALMAN_VERSION}"; do \ + for tag in "sd1.5-${SD15_VERSION}" "anime-${ANIME_VERSION}" "realman-${REALMAN_VERSION}" "lite-${LITE_VERSION}"; do \ docker tag stable-diffusion:$$tag $$IMAGE:$$tag && \ docker push $$IMAGE:$$tag; \ done push-jp: IMAGE=registry.ap-northeast-1.aliyuncs.com/${NAMESPACE}/${REPO} && \ - for tag in "sd1.5-${SD15_VERSION}" "anime-${ANIME_VERSION}" "realman-${REALMAN_VERSION}"; do \ + for tag in "sd1.5-${SD15_VERSION}" "anime-${ANIME_VERSION}" "realman-${REALMAN_VERSION}" "lite-${LITE_VERSION}"; do \ docker tag stable-diffusion:$$tag $$IMAGE:$$tag && \ docker push $$IMAGE:$$tag; \ done @@ -93,7 +97,7 @@ sync-from-ap: ## 同步新加坡镜像到其他 region docker pull registry.ap-southeast-1.aliyuncs.com/${NAMESPACE}/${REPO}:${BASE_TAG} && \ docker tag registry.ap-southeast-1.aliyuncs.com/${NAMESPACE}/${REPO}:${BASE_TAG} registry.cn-hangzhou.aliyuncs.com/${NAMESPACE}/${REPO}:${BASE_TAG} && \ docker push registry.cn-hangzhou.aliyuncs.com/${NAMESPACE}/${REPO}:${BASE_TAG} && \ - for tag in "sd1.5-${SD15_VERSION}" "anime-${ANIME_VERSION}" "realman-${REALMAN_VERSION}"; do \ + for tag in "sd1.5-${SD15_VERSION}" "anime-${ANIME_VERSION}" "realman-${REALMAN_VERSION}" "lite-${LITE_VERSION}"; do \ for region in "cn-hangzhou" "cn-beijing" "cn-shanghai" "cn-shenzhen" "ap-northeast-1"; do \ docker pull registry.ap-southeast-1.aliyuncs.com/${NAMESPACE}/${REPO}:$${tag} && \ docker tag registry.ap-southeast-1.aliyuncs.com/${NAMESPACE}/${REPO}:$${tag} registry.$${region}.aliyuncs.com/${NAMESPACE}/${REPO}:$${tag} && \ @@ -106,4 +110,10 @@ push: push-beijing push-shanghai push-hangzhou push-shenzhen push-jp all-ap: build-base build push-base-ap push-ap -all: all-ap push-base push \ No newline at end of file +all: all-ap push push-base + +dev: build-anime ## 使用动漫风格进行测试 + docker run --rm -it --name=sd --net=host -v ${shell pwd}/nas:/mnt/auto stable-diffusion:anime-${ANIME_VERSION} + +exec: ## 登入容器实例 + docker exec -it sd /bin/bash diff --git a/src/code/filemgr/13.async.js b/src/code/filemgr/13.async.js deleted file mode 100644 index d9b5efe..0000000 --- a/src/code/filemgr/13.async.js +++ /dev/null @@ -1,20 +0,0 @@ -(self.webpackChunk=self.webpackChunk||[]).push([[13],{21640:function(N,c,e){"use strict";e.d(c,{Z:function(){return u}});var v=e(87462),n=e(62435),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},y=o,g=e(42135),h=function(E,l){return n.createElement(g.Z,(0,v.Z)({},E,{ref:l,icon:y}))},u=n.forwardRef(h)},99611:function(N,c,e){"use strict";e.d(c,{Z:function(){return u}});var v=e(87462),n=e(62435),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},y=o,g=e(42135),h=function(E,l){return n.createElement(g.Z,(0,v.Z)({},E,{ref:l,icon:y}))},u=n.forwardRef(h)},78860:function(N,c,e){"use strict";e.d(c,{Z:function(){return u}});var v=e(87462),n=e(62435),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},y=o,g=e(42135),h=function(E,l){return n.createElement(g.Z,(0,v.Z)({},E,{ref:l,icon:y}))},u=n.forwardRef(h)},6171:function(N,c,e){"use strict";e.d(c,{Z:function(){return u}});var v=e(87462),n=e(62435),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},y=o,g=e(42135),h=function(E,l){return n.createElement(g.Z,(0,v.Z)({},E,{ref:l,icon:y}))},u=n.forwardRef(h)},18073:function(N,c,e){"use strict";e.d(c,{Z:function(){return u}});var v=e(87462),n=e(62435),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},y=o,g=e(42135),h=function(E,l){return n.createElement(g.Z,(0,v.Z)({},E,{ref:l,icon:y}))},u=n.forwardRef(h)},68795:function(N,c,e){"use strict";e.d(c,{Z:function(){return u}});var v=e(87462),n=e(62435),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},y=o,g=e(42135),h=function(E,l){return n.createElement(g.Z,(0,v.Z)({},E,{ref:l,icon:y}))},u=n.forwardRef(h)},99138:function(N,c,e){"use strict";e.d(c,{Z:function(){return k}});var v=e(89739),n=e(4340),o=e(97937),y=e(21640),g=e(78860),h=e(94184),u=e.n(h),M=e(82225),E=e(64217),l=e(62435),I=e(96159),O=e(53124),R=e(15671),K=e(43144),D=e(32531),w=e(73568),re=function(d){(0,D.Z)(t,d);var i=(0,w.Z)(t);function t(){var r;return(0,R.Z)(this,t),r=i.apply(this,arguments),r.state={error:void 0,info:{componentStack:""}},r}return(0,K.Z)(t,[{key:"componentDidCatch",value:function(a,s){this.setState({error:a,info:s})}},{key:"render",value:function(){const{message:a,description:s,children:m}=this.props,{error:z,info:b}=this.state,P=b&&b.componentStack?b.componentStack:null,L=typeof a=="undefined"?(z||"").toString():a,V=typeof s=="undefined"?P:s;return z?l.createElement(k,{type:"error",message:L,description:l.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},V)}):m}}]),t}(l.Component),ue=e(14747),ge=e(67968),he=e(45503);const le=(d,i,t,r,a)=>({backgroundColor:d,border:`${r.lineWidth}px ${r.lineType} ${i}`,[`${a}-icon`]:{color:t}}),f=d=>{const{componentCls:i,motionDurationSlow:t,marginXS:r,marginSM:a,fontSize:s,fontSizeLG:m,lineHeight:z,borderRadiusLG:b,motionEaseInOutCirc:P,alertIconSizeLG:L,colorText:V,paddingContentVerticalSM:H,alertPaddingHorizontal:F,paddingMD:ee,paddingContentHorizontalLG:q,colorTextHeading:te}=d;return{[i]:Object.assign(Object.assign({},(0,ue.Wf)(d)),{position:"relative",display:"flex",alignItems:"center",padding:`${H}px ${F}px`,wordWrap:"break-word",borderRadius:b,[`&${i}-rtl`]:{direction:"rtl"},[`${i}-content`]:{flex:1,minWidth:0},[`${i}-icon`]:{marginInlineEnd:r,lineHeight:0},["&-description"]:{display:"none",fontSize:s,lineHeight:z},"&-message":{color:V},[`&${i}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${t} ${P}, opacity ${t} ${P}, - padding-top ${t} ${P}, padding-bottom ${t} ${P}, - margin-bottom ${t} ${P}`},[`&${i}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${i}-with-description`]:{alignItems:"flex-start",paddingInline:q,paddingBlock:ee,[`${i}-icon`]:{marginInlineEnd:a,fontSize:L,lineHeight:0},[`${i}-message`]:{display:"block",marginBottom:r,color:te,fontSize:m},[`${i}-description`]:{display:"block"}},[`${i}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},$=d=>{const{componentCls:i,colorSuccess:t,colorSuccessBorder:r,colorSuccessBg:a,colorWarning:s,colorWarningBorder:m,colorWarningBg:z,colorError:b,colorErrorBorder:P,colorErrorBg:L,colorInfo:V,colorInfoBorder:H,colorInfoBg:F}=d;return{[i]:{"&-success":le(a,r,t,d,i),"&-info":le(F,H,V,d,i),"&-warning":le(z,m,s,d,i),"&-error":Object.assign(Object.assign({},le(L,P,b,d,i)),{[`${i}-description > pre`]:{margin:0,padding:0}})}}},C=d=>{const{componentCls:i,iconCls:t,motionDurationMid:r,marginXS:a,fontSizeIcon:s,colorIcon:m,colorIconHover:z}=d;return{[i]:{["&-action"]:{marginInlineStart:a},[`${i}-close-icon`]:{marginInlineStart:a,padding:0,overflow:"hidden",fontSize:s,lineHeight:`${s}px`,backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${t}-close`]:{color:m,transition:`color ${r}`,"&:hover":{color:z}}},"&-close-text":{color:m,transition:`color ${r}`,"&:hover":{color:z}}}}},p=d=>[f(d),$(d),C(d)];var x=(0,ge.Z)("Alert",d=>{const{fontSizeHeading3:i}=d,t=(0,he.TS)(d,{alertIconSizeLG:i,alertPaddingHorizontal:12});return[p(t)]}),U=function(d,i){var t={};for(var r in d)Object.prototype.hasOwnProperty.call(d,r)&&i.indexOf(r)<0&&(t[r]=d[r]);if(d!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(d);a{const{icon:i,prefixCls:t,type:r}=d,a=A[r]||null;return i?(0,I.wm)(i,l.createElement("span",{className:`${t}-icon`},i),()=>({className:u()(`${t}-icon`,{[i.props.className]:i.props.className})})):l.createElement(a,{className:`${t}-icon`})},X=d=>{const{isClosable:i,closeText:t,prefixCls:r,closeIcon:a,handleClose:s}=d;return i?l.createElement("button",{type:"button",onClick:s,className:`${r}-close-icon`,tabIndex:0},t?l.createElement("span",{className:`${r}-close-text`},t):a):null},J=d=>{var{description:i,prefixCls:t,message:r,banner:a,className:s,rootClassName:m,style:z,onMouseEnter:b,onMouseLeave:P,onClick:L,afterClose:V,showIcon:H,closable:F,closeText:ee,closeIcon:q=l.createElement(o.Z,null),action:te}=d,ne=U(d,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action"]);const[S,T]=l.useState(!1),W=l.useRef(null),{getPrefixCls:j,direction:ie}=l.useContext(O.E_),B=j("alert",t),[oe,_]=x(B),se=Y=>{var me;T(!0),(me=ne.onClose)===null||me===void 0||me.call(ne,Y)},ce=()=>{const{type:Y}=ne;return Y!==void 0?Y:a?"warning":"info"},de=ee?!0:F,fe=ce(),Ce=a&&H===void 0?!0:H,xe=u()(B,`${B}-${fe}`,{[`${B}-with-description`]:!!i,[`${B}-no-icon`]:!Ce,[`${B}-banner`]:!!a,[`${B}-rtl`]:ie==="rtl"},s,m,_),ve=(0,E.Z)(ne,{aria:!0,data:!0});return oe(l.createElement(M.ZP,{visible:!S,motionName:`${B}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:Y=>({maxHeight:Y.offsetHeight}),onLeaveEnd:V},Y=>{let{className:me,style:ye}=Y;return l.createElement("div",Object.assign({ref:W,"data-show":!S,className:u()(xe,me),style:Object.assign(Object.assign({},z),ye),onMouseEnter:b,onMouseLeave:P,onClick:L,role:"alert"},ve),Ce?l.createElement(Q,{description:i,icon:ne.icon,prefixCls:B,type:fe}):null,l.createElement("div",{className:`${B}-content`},r?l.createElement("div",{className:`${B}-message`},r):null,i?l.createElement("div",{className:`${B}-description`},i):null),te?l.createElement("div",{className:`${B}-action`},te):null,l.createElement(X,{isClosable:!!de,closeText:ee,prefixCls:B,closeIcon:q,handleClose:se}))}))};J.ErrorBoundary=re;var k=J},79531:function(N,c,e){"use strict";e.d(c,{Z:function(){return i}});var v=e(94184),n=e.n(v),o=e(62435),y=e(53124),g=e(52706),h=e(47673),M=t=>{const{getPrefixCls:r,direction:a}=(0,o.useContext)(y.E_),{prefixCls:s,className:m=""}=t,z=r("input-group",s),b=r("input"),[P,L]=(0,h.ZP)(b),V=n()(z,{[`${z}-lg`]:t.size==="large",[`${z}-sm`]:t.size==="small",[`${z}-compact`]:t.compact,[`${z}-rtl`]:a==="rtl"},L,m),H=(0,o.useContext)(g.aM),F=(0,o.useMemo)(()=>Object.assign(Object.assign({},H),{isFormItemInput:!1}),[H]);return P(o.createElement("span",{className:V,style:t.style,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,onFocus:t.onFocus,onBlur:t.onBlur},o.createElement(g.aM.Provider,{value:F},t.children)))},E=e(82586),l=e(87462),I={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},O=I,R=e(42135),K=function(r,a){return o.createElement(R.Z,(0,l.Z)({},r,{ref:a,icon:O}))},D=o.forwardRef(K),w=e(99611),ae=e(98423),re=e(42550),ue=e(72922),ge=function(t,r){var a={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&r.indexOf(s)<0&&(a[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var m=0,s=Object.getOwnPropertySymbols(t);mt?o.createElement(w.Z,null):o.createElement(D,null),le={click:"onClick",hover:"onMouseOver"};var $=o.forwardRef((t,r)=>{const{visibilityToggle:a=!0}=t,s=typeof a=="object"&&a.visible!==void 0,[m,z]=(0,o.useState)(()=>s?a.visible:!1),b=(0,o.useRef)(null);o.useEffect(()=>{s&&z(a.visible)},[s,a]);const P=(0,ue.Z)(b),L=()=>{const{disabled:B}=t;B||(m&&P(),z(oe=>{var _;const se=!oe;return typeof a=="object"&&((_=a.onVisibleChange)===null||_===void 0||_.call(a,se)),se}))},V=B=>{const{action:oe="click",iconRender:_=he}=t,se=le[oe]||"",ce=_(m),de={[se]:L,className:`${B}-icon`,key:"passwordIcon",onMouseDown:fe=>{fe.preventDefault()},onMouseUp:fe=>{fe.preventDefault()}};return o.cloneElement(o.isValidElement(ce)?ce:o.createElement("span",null,ce),de)},{className:H,prefixCls:F,inputPrefixCls:ee,size:q}=t,te=ge(t,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:ne}=o.useContext(y.E_),S=ne("input",ee),T=ne("input-password",F),W=a&&V(T),j=n()(T,H,{[`${T}-${q}`]:!!q}),ie=Object.assign(Object.assign({},(0,ae.Z)(te,["suffix","iconRender","visibilityToggle"])),{type:m?"text":"password",className:j,prefixCls:S,suffix:W});return q&&(ie.size=q),o.createElement(E.Z,Object.assign({ref:(0,re.sQ)(r,b)},ie))}),C=e(68795),p=e(96159),x=e(71577),U=e(98675),A=e(4173),Q=function(t,r){var a={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&r.indexOf(s)<0&&(a[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var m=0,s=Object.getOwnPropertySymbols(t);m{const{prefixCls:a,inputPrefixCls:s,className:m,size:z,suffix:b,enterButton:P=!1,addonAfter:L,loading:V,disabled:H,onSearch:F,onChange:ee,onCompositionStart:q,onCompositionEnd:te}=t,ne=Q(t,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:S,direction:T}=o.useContext(y.E_),W=o.useRef(!1),j=S("input-search",a),ie=S("input",s),{compactSize:B}=(0,A.ri)(j,T),oe=(0,U.Z)(Z=>{var G;return(G=B!=null?B:z)!==null&&G!==void 0?G:Z}),_=o.useRef(null),se=Z=>{Z&&Z.target&&Z.type==="click"&&F&&F(Z.target.value,Z),ee&&ee(Z)},ce=Z=>{var G;document.activeElement===((G=_.current)===null||G===void 0?void 0:G.input)&&Z.preventDefault()},de=Z=>{var G,pe;F&&F((pe=(G=_.current)===null||G===void 0?void 0:G.input)===null||pe===void 0?void 0:pe.value,Z)},fe=Z=>{W.current||V||de(Z)},Ce=typeof P=="boolean"?o.createElement(C.Z,null):null,xe=`${j}-button`;let ve;const Y=P||{},me=Y.type&&Y.type.__ANT_BUTTON===!0;me||Y.type==="button"?ve=(0,p.Tm)(Y,Object.assign({onMouseDown:ce,onClick:Z=>{var G,pe;(pe=(G=Y==null?void 0:Y.props)===null||G===void 0?void 0:G.onClick)===null||pe===void 0||pe.call(G,Z),de(Z)},key:"enterButton"},me?{className:xe,size:oe}:{})):ve=o.createElement(x.ZP,{className:xe,type:P?"primary":void 0,size:oe,disabled:H,key:"enterButton",onMouseDown:ce,onClick:de,loading:V,icon:Ce},P),L&&(ve=[ve,(0,p.Tm)(L,{key:"addonAfter"})]);const ye=n()(j,{[`${j}-rtl`]:T==="rtl",[`${j}-${oe}`]:!!oe,[`${j}-with-button`]:!!P},m),Se=Z=>{W.current=!0,q==null||q(Z)},Ee=Z=>{W.current=!1,te==null||te(Z)};return o.createElement(E.Z,Object.assign({ref:(0,re.sQ)(_,r),onPressEnter:fe},ne,{size:oe,onCompositionStart:Se,onCompositionEnd:Ee,prefixCls:ie,addonAfter:ve,suffix:b,onChange:se,className:ye,disabled:H}))}),k=e(22913);const d=E.Z;d.Group=M,d.Search=J,d.TextArea=k.Z,d.Password=$;var i=d},7293:function(N,c,e){"use strict";e.d(c,{D:function(){return ue},Z:function(){return le}});var v=e(87462),n=e(62435),o={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},y=o,g=e(42135),h=function($,C){return n.createElement(g.Z,(0,v.Z)({},$,{ref:C,icon:y}))},u=n.forwardRef(h),M=e(6171),E=e(18073),l=e(94184),I=e.n(l),O=e(98423),R=e(53124),D=f=>!isNaN(parseFloat(f))&&isFinite(f),w=e(84321),ae=function(f,$){var C={};for(var p in f)Object.prototype.hasOwnProperty.call(f,p)&&$.indexOf(p)<0&&(C[p]=f[p]);if(f!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,p=Object.getOwnPropertySymbols(f);x{let f=0;return function(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return f+=1,`${$}${f}`}})();var le=n.forwardRef((f,$)=>{var{prefixCls:C,className:p,trigger:x,children:U,defaultCollapsed:A=!1,theme:Q="dark",style:X={},collapsible:J=!1,reverseArrow:k=!1,width:d=200,collapsedWidth:i=80,zeroWidthTriggerStyle:t,breakpoint:r,onCollapse:a,onBreakpoint:s}=f,m=ae(f,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]);const{siderHook:z}=(0,n.useContext)(w.Gs),[b,P]=(0,n.useState)("collapsed"in m?m.collapsed:A),[L,V]=(0,n.useState)(!1);(0,n.useEffect)(()=>{"collapsed"in m&&P(m.collapsed)},[m.collapsed]);const H=(S,T)=>{"collapsed"in m||P(S),a==null||a(S,T)},F=(0,n.useRef)();F.current=S=>{V(S.matches),s==null||s(S.matches),b!==S.matches&&H(S.matches,"responsive")},(0,n.useEffect)(()=>{function S(W){return F.current(W)}let T;if(typeof window!="undefined"){const{matchMedia:W}=window;if(W&&r&&r in re){T=W(`(max-width: ${re[r]})`);try{T.addEventListener("change",S)}catch(j){T.addListener(S)}S(T)}}return()=>{try{T==null||T.removeEventListener("change",S)}catch(W){T==null||T.removeListener(S)}}},[r]),(0,n.useEffect)(()=>{const S=ge("ant-sider-");return z.addSider(S),()=>z.removeSider(S)},[]);const ee=()=>{H(!b,"clickTrigger")},{getPrefixCls:q}=(0,n.useContext)(R.E_),te=()=>{const S=q("layout-sider",C),T=(0,O.Z)(m,["collapsed"]),W=b?i:d,j=D(W)?`${W}px`:String(W),ie=parseFloat(String(i||0))===0?n.createElement("span",{onClick:ee,className:I()(`${S}-zero-width-trigger`,`${S}-zero-width-trigger-${k?"right":"left"}`),style:t},x||n.createElement(u,null)):null,_={expanded:k?n.createElement(E.Z,null):n.createElement(M.Z,null),collapsed:k?n.createElement(M.Z,null):n.createElement(E.Z,null)}[b?"collapsed":"expanded"],se=x!==null?ie||n.createElement("div",{className:`${S}-trigger`,onClick:ee,style:{width:j}},x||_):null,ce=Object.assign(Object.assign({},X),{flex:`0 0 ${j}`,maxWidth:j,minWidth:j,width:j}),de=I()(S,`${S}-${Q}`,{[`${S}-collapsed`]:!!b,[`${S}-has-trigger`]:J&&x!==null&&!ie,[`${S}-below`]:!!L,[`${S}-zero-width`]:parseFloat(j)===0},p);return n.createElement("aside",Object.assign({className:de},T,{style:ce,ref:$}),n.createElement("div",{className:`${S}-children`},U),J||L&&ie?se:null)},ne=n.useMemo(()=>({siderCollapsed:b}),[b]);return n.createElement(ue.Provider,{value:ne},te())})},97183:function(N,c,e){"use strict";var v=e(84321),n=e(7293);const o=v.ZP;o.Header=v.h4,o.Footer=v.$_,o.Content=v.VY,o.Sider=n.Z,c.Z=o},84321:function(N,c,e){"use strict";e.d(c,{VY:function(){return he},$_:function(){return ge},h4:function(){return ue},Gs:function(){return K},ZP:function(){return le}});var v=e(74902),n=e(94184),o=e.n(n),y=e(98423),g=e(62435),h=e(53124),u=e(67968),M=e(45503),l=f=>{const{componentCls:$,colorBgContainer:C,colorBgBody:p,colorText:x}=f;return{[`${$}-sider-light`]:{background:C,[`${$}-sider-trigger`]:{color:x,background:C},[`${$}-sider-zero-width-trigger`]:{color:x,background:C,border:`1px solid ${p}`,borderInlineStart:0}}}};const I=f=>{const{antCls:$,componentCls:C,colorText:p,colorTextLightSolid:x,colorBgHeader:U,colorBgBody:A,colorBgTrigger:Q,layoutHeaderHeight:X,layoutHeaderPaddingInline:J,layoutHeaderColor:k,layoutFooterPadding:d,layoutTriggerHeight:i,layoutZeroTriggerSize:t,motionDurationMid:r,motionDurationSlow:a,fontSize:s,borderRadius:m}=f;return{[C]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:A,"&, *":{boxSizing:"border-box"},[`&${C}-has-sider`]:{flexDirection:"row",[`> ${C}, > ${C}-content`]:{width:0}},[`${C}-header, &${C}-footer`]:{flex:"0 0 auto"},[`${C}-sider`]:{position:"relative",minWidth:0,background:U,transition:`all ${r}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${$}-menu${$}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:i},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:i,color:x,lineHeight:`${i}px`,textAlign:"center",background:Q,cursor:"pointer",transition:`all ${r}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:X,insetInlineEnd:-t,zIndex:1,width:t,height:t,color:x,fontSize:f.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:U,borderStartStartRadius:0,borderStartEndRadius:m,borderEndEndRadius:m,borderEndStartRadius:0,cursor:"pointer",transition:`background ${a} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${a}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-t,borderStartStartRadius:m,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:m}}}}},l(f)),{"&-rtl":{direction:"rtl"}}),[`${C}-header`]:{height:X,paddingInline:J,color:k,lineHeight:`${X}px`,background:U,[`${$}-menu`]:{lineHeight:"inherit"}},[`${C}-footer`]:{padding:d,color:p,fontSize:s,background:A},[`${C}-content`]:{flex:"auto",minHeight:0}}};var O=(0,u.Z)("Layout",f=>{const{colorText:$,controlHeightSM:C,controlHeight:p,controlHeightLG:x,marginXXS:U}=f,A=x*1.25,Q=(0,M.TS)(f,{layoutHeaderHeight:p*2,layoutHeaderPaddingInline:A,layoutHeaderColor:$,layoutFooterPadding:`${C}px ${A}px`,layoutTriggerHeight:x+U*2,layoutZeroTriggerSize:x});return[I(Q)]},f=>{const{colorBgLayout:$}=f;return{colorBgHeader:"#001529",colorBgBody:$,colorBgTrigger:"#002140"}}),R=function(f,$){var C={};for(var p in f)Object.prototype.hasOwnProperty.call(f,p)&&$.indexOf(p)<0&&(C[p]=f[p]);if(f!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,p=Object.getOwnPropertySymbols(f);xnull,removeSider:()=>null}});function D(f){let{suffixCls:$,tagName:C,displayName:p}=f;return x=>g.forwardRef((A,Q)=>g.createElement(x,Object.assign({ref:Q,suffixCls:$,tagName:C},A)))}const w=g.forwardRef((f,$)=>{const{prefixCls:C,suffixCls:p,className:x,tagName:U}=f,A=R(f,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Q}=g.useContext(h.E_),X=Q("layout",C),[J,k]=O(X),d=p?`${X}-${p}`:X;return J(g.createElement(U,Object.assign({className:o()(C||d,x,k),ref:$},A)))}),ae=g.forwardRef((f,$)=>{const{direction:C}=g.useContext(h.E_),[p,x]=g.useState([]),{prefixCls:U,className:A,rootClassName:Q,children:X,hasSider:J,tagName:k}=f,d=R(f,["prefixCls","className","rootClassName","children","hasSider","tagName"]),i=(0,y.Z)(d,["suffixCls"]),{getPrefixCls:t}=g.useContext(h.E_),r=t("layout",U),[a,s]=O(r),m=o()(r,{[`${r}-has-sider`]:typeof J=="boolean"?J:p.length>0,[`${r}-rtl`]:C==="rtl"},A,Q,s),z=g.useMemo(()=>({siderHook:{addSider:b=>{x(P=>[].concat((0,v.Z)(P),[b]))},removeSider:b=>{x(P=>P.filter(L=>L!==b))}}}),[]);return a(g.createElement(K.Provider,{value:z},g.createElement(k,Object.assign({ref:$,className:m},i),X)))}),re=D({tagName:"section",displayName:"Layout"})(ae),ue=D({suffixCls:"header",tagName:"header",displayName:"Header"})(w),ge=D({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(w),he=D({suffixCls:"content",tagName:"main",displayName:"Content"})(w);var le=re},80037:function(N,c,e){"use strict";var v=e(64836).default;Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var n=v(e(5584)),o=n.default;c.default=o},5584:function(N,c,e){"use strict";var v=e(64836).default;Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var n=v(e(85369)),o=v(e(15704));const y={lang:Object.assign({placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",yearPlaceholder:"\u8BF7\u9009\u62E9\u5E74\u4EFD",quarterPlaceholder:"\u8BF7\u9009\u62E9\u5B63\u5EA6",monthPlaceholder:"\u8BF7\u9009\u62E9\u6708\u4EFD",weekPlaceholder:"\u8BF7\u9009\u62E9\u5468",rangePlaceholder:["\u5F00\u59CB\u65E5\u671F","\u7ED3\u675F\u65E5\u671F"],rangeYearPlaceholder:["\u5F00\u59CB\u5E74\u4EFD","\u7ED3\u675F\u5E74\u4EFD"],rangeMonthPlaceholder:["\u5F00\u59CB\u6708\u4EFD","\u7ED3\u675F\u6708\u4EFD"],rangeQuarterPlaceholder:["\u5F00\u59CB\u5B63\u5EA6","\u7ED3\u675F\u5B63\u5EA6"],rangeWeekPlaceholder:["\u5F00\u59CB\u5468","\u7ED3\u675F\u5468"]},n.default),timePickerLocale:Object.assign({},o.default)};y.lang.ok="\u786E\u5B9A";var g=y;c.default=g},82925:function(N,c,e){"use strict";var v,n=e(64836).default;v={value:!0},c.Z=void 0;var o=n(e(74219)),y=n(e(80037)),g=n(e(5584)),h=n(e(15704));const u="${label}\u4E0D\u662F\u4E00\u4E2A\u6709\u6548\u7684${type}";var E={locale:"zh-cn",Pagination:o.default,DatePicker:g.default,TimePicker:h.default,Calendar:y.default,global:{placeholder:"\u8BF7\u9009\u62E9"},Table:{filterTitle:"\u7B5B\u9009",filterConfirm:"\u786E\u5B9A",filterReset:"\u91CD\u7F6E",filterEmptyText:"\u65E0\u7B5B\u9009\u9879",filterCheckall:"\u5168\u9009",filterSearchPlaceholder:"\u5728\u7B5B\u9009\u9879\u4E2D\u641C\u7D22",selectAll:"\u5168\u9009\u5F53\u9875",selectInvert:"\u53CD\u9009\u5F53\u9875",selectNone:"\u6E05\u7A7A\u6240\u6709",selectionAll:"\u5168\u9009\u6240\u6709",sortTitle:"\u6392\u5E8F",expand:"\u5C55\u5F00\u884C",collapse:"\u5173\u95ED\u884C",triggerDesc:"\u70B9\u51FB\u964D\u5E8F",triggerAsc:"\u70B9\u51FB\u5347\u5E8F",cancelSort:"\u53D6\u6D88\u6392\u5E8F"},Modal:{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",justOkText:"\u77E5\u9053\u4E86"},Tour:{Next:"\u4E0B\u4E00\u6B65",Previous:"\u4E0A\u4E00\u6B65",Finish:"\u7ED3\u675F\u5BFC\u89C8"},Popconfirm:{cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A"},Transfer:{titles:["",""],searchPlaceholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9",itemUnit:"\u9879",itemsUnit:"\u9879",remove:"\u5220\u9664",selectCurrent:"\u5168\u9009\u5F53\u9875",removeCurrent:"\u5220\u9664\u5F53\u9875",selectAll:"\u5168\u9009\u6240\u6709",removeAll:"\u5220\u9664\u5168\u90E8",selectInvert:"\u53CD\u9009\u5F53\u9875"},Upload:{uploading:"\u6587\u4EF6\u4E0A\u4F20\u4E2D",removeFile:"\u5220\u9664\u6587\u4EF6",uploadError:"\u4E0A\u4F20\u9519\u8BEF",previewFile:"\u9884\u89C8\u6587\u4EF6",downloadFile:"\u4E0B\u8F7D\u6587\u4EF6"},Empty:{description:"\u6682\u65E0\u6570\u636E"},Icon:{icon:"\u56FE\u6807"},Text:{edit:"\u7F16\u8F91",copy:"\u590D\u5236",copied:"\u590D\u5236\u6210\u529F",expand:"\u5C55\u5F00"},PageHeader:{back:"\u8FD4\u56DE"},Form:{optional:"\uFF08\u53EF\u9009\uFF09",defaultValidateMessages:{default:"\u5B57\u6BB5\u9A8C\u8BC1\u9519\u8BEF${label}",required:"\u8BF7\u8F93\u5165${label}",enum:"${label}\u5FC5\u987B\u662F\u5176\u4E2D\u4E00\u4E2A[${enum}]",whitespace:"${label}\u4E0D\u80FD\u4E3A\u7A7A\u5B57\u7B26",date:{format:"${label}\u65E5\u671F\u683C\u5F0F\u65E0\u6548",parse:"${label}\u4E0D\u80FD\u8F6C\u6362\u4E3A\u65E5\u671F",invalid:"${label}\u662F\u4E00\u4E2A\u65E0\u6548\u65E5\u671F"},types:{string:u,method:u,array:u,object:u,number:u,date:u,boolean:u,integer:u,float:u,regexp:u,email:u,url:u,hex:u},string:{len:"${label}\u987B\u4E3A${len}\u4E2A\u5B57\u7B26",min:"${label}\u6700\u5C11${min}\u4E2A\u5B57\u7B26",max:"${label}\u6700\u591A${max}\u4E2A\u5B57\u7B26",range:"${label}\u987B\u5728${min}-${max}\u5B57\u7B26\u4E4B\u95F4"},number:{len:"${label}\u5FC5\u987B\u7B49\u4E8E${len}",min:"${label}\u6700\u5C0F\u503C\u4E3A${min}",max:"${label}\u6700\u5927\u503C\u4E3A${max}",range:"${label}\u987B\u5728${min}-${max}\u4E4B\u95F4"},array:{len:"\u987B\u4E3A${len}\u4E2A${label}",min:"\u6700\u5C11${min}\u4E2A${label}",max:"\u6700\u591A${max}\u4E2A${label}",range:"${label}\u6570\u91CF\u987B\u5728${min}-${max}\u4E4B\u95F4"},pattern:{mismatch:"${label}\u4E0E\u6A21\u5F0F\u4E0D\u5339\u914D${pattern}"}}},Image:{preview:"\u9884\u89C8"},QRCode:{expired:"\u4E8C\u7EF4\u7801\u8FC7\u671F",refresh:"\u70B9\u51FB\u5237\u65B0"},ColorPicker:{presetEmpty:"\u6682\u65E0"}};c.Z=E},15704:function(N,c){"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var v={placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4",rangePlaceholder:["\u5F00\u59CB\u65F6\u95F4","\u7ED3\u675F\u65F6\u95F4"]};c.default=v},36808:function(N,c,e){var v,n;(function(o){var y;if(v=o,n=typeof v=="function"?v.call(c,e,c,N):v,n!==void 0&&(N.exports=n),y=!0,N.exports=o(),y=!0,!y){var g=window.Cookies,h=window.Cookies=o();h.noConflict=function(){return window.Cookies=g,h}}})(function(){function o(){for(var h=0,u={};h