From 7f817c7db4f7ab28e72be6e8fcae2dd0fc3cc19f Mon Sep 17 00:00:00 2001 From: admin Date: Thu, 23 Apr 2026 11:55:05 +0800 Subject: [PATCH] fix: remove tracked build files from git and clean build directory before copy - Add server/resource/build/ to .gitignore - Remove tracked build files from git repository - Add rm -rf before mkdir in GitHub Actions to ensure clean build --- .github/workflows/build-docker-image.yml | 1 + .gitignore | 1 + .../build/assets/AccessLogPage-BMkEOqMJ.js | 1 - .../assets/AccessLogStatsPage-CXrZAL2E.js | 1 - .../build/assets/AgentGatewayPage-DEPMQmCG.js | 1 - .../build/assets/AssetFacadePage-CCyTP6F2.js | 1 - .../assets/AssetGatewayChoose-4vUjpk3C.js | 1 - .../build/assets/AssetPage-BJD5muIt.js | 1 - .../assets/AuthorisedAssetPage-BX2rNWSk.js | 1 - .../assets/AuthorisedAssetPost-vCyEAP3r.js | 1 - .../AuthorisedDatabaseAssetPage-CQMQnnFB.js | 1 - .../AuthorisedDatabaseAssetPost-BrzKzr0W.js | 1 - .../assets/AuthorisedWebsitePage-C91itGU-.js | 1 - .../assets/AuthorisedWebsitePost-COc7i5eT.js | 1 - .../build/assets/BrowserPage-B9fb62o-.js | 9 - .../build/assets/BrowserPage-C3yUGLF0.css | 1 - .../build/assets/CertificatePage-B2tj9A2w.js | 2 - .../assets/CommandFilterDetail-BeaIU-md.js | 1 - .../assets/CommandFilterPage-DaXaMByx.js | 1 - .../build/assets/CredentialPage-Die5iQYX.js | 1 - .../build/assets/DashboardPage-Im-9FWfr.js | 2 - .../DatabaseAssetFacadePage-a0QWLTVr.js | 1 - .../assets/DatabaseAssetPage-C5z0KjFF.js | 1 - .../assets/DatabaseSQLLogPage-D3ObzhHj.js | 1 - .../assets/DatabaseWorkOrderPage-Caoq0Mdz.js | 1 - .../DatabaseWorkOrderUserPage-B2ycCPZM.js | 1 - .../build/assets/DepartmentDetail-ByJ-vndZ.js | 1 - .../build/assets/DepartmentPage-CRl-pRy6.js | 1 - .../build/assets/ErrorPage-BYi3namZ.js | 1 - .../assets/FacadeCardSkeleton-N6rktkuw.js | 2 - .../build/assets/FacadeSearchBar-DPZw3dye.js | 1 - .../assets/FileSystemLogPage-q2mkisVQ.js | 1 - .../build/assets/GatewayGroupPage-Bz3t4FqF.js | 1 - .../build/assets/GuacdMonitor-BuR0ODFT.js | 1 - .../build/assets/GuacdPlayback-CFtamDo9.js | 1 - .../build/assets/GuacdPlayback-DQHtnea3.css | 1 - .../build/assets/InfoPage--AJ8mxff.js | 2 - .../build/assets/LoginLockedPage-DZnpSndD.js | 1 - .../build/assets/LoginLogPage-wdWF965f.js | 1 - .../build/assets/LoginPage-aub4Iv9y.js | 1 - .../assets/LoginPolicyDetailPage-C0FoOMds.js | 1 - .../build/assets/LoginPolicyPage-D8II9jNz.js | 1 - .../assets/LoginPolicyPostPage--Tauq4PS.js | 1 - .../assets/LoginPolicyPostPage-BQyj14Fs.css | 1 - .../assets/MobileAccessTerminal-DNKK6b04.js | 1 - .../resource/build/assets/NButton-DoPcvKBF.js | 1 - .../resource/build/assets/NLink-Dl2yFaN4.js | 1 - .../assets/OfflineSessionPage-D1UBBI15.js | 1 - .../build/assets/OidcCallback-qbNXTZur.js | 1 - .../build/assets/OidcClientPage-DeSDpT3L.js | 2 - .../assets/OidcServerConsent-zcgmhrgY.js | 1 - .../assets/OnlineSessionPage-zbyIKEoo.js | 1 - .../build/assets/OperationLogPage-BlAhFenm.js | 1 - .../build/assets/QuerySelects-HiP3pg4d.js | 1 - .../build/assets/RedirectPage-BghypuSI.js | 1 - .../build/assets/RoleDetail-B5ZhMtSV.js | 1 - .../build/assets/RolePage-DqozdEe0.js | 1 - .../assets/ScheduledTaskPage-CQSqn-EP.js | 1 - .../build/assets/SettingPage-DxlkP9BT.js | 1 - .../build/assets/SetupPage-DriicTxX.js | 1 - .../build/assets/SnippetPage-Bp2O5-JS.js | 1 - .../build/assets/SnippetUserPage-DbddvRmb.js | 1 - .../build/assets/SshGatewayPage-C_iCWAPs.js | 1 - .../build/assets/StoragePage-DS0_Tdim.js | 1 - .../build/assets/StrategyPage-58Xo8e61.js | 1 - .../assets/SystemMonitorPage-Lnutq0Ew.js | 1 - .../build/assets/TerminalMonitor-BGHFY2w9.js | 1 - .../assets/TerminalPlayback-C0uHH8VC.css | 1 - .../build/assets/TerminalPlayback-CwU1DI7U.js | 7 - .../build/assets/ToolsPage-DPPxYsiI.js | 3 - .../build/assets/UserDetailPage-CxWs4t4Q.js | 1 - .../build/assets/UserInfoPage-DrNAhF9r.js | 1 - .../build/assets/UserLayout-M9_Sh7Dn.js | 1 - .../build/assets/UserPage-hpsga5IM.js | 3 - .../assets/WebsiteFacadePage-CqAliO-B.js | 1 - .../build/assets/WebsitePage-BFwEoyOi.js | 1 - .../assets/WechatWorkCallback-BTjIgIlC.js | 1 - .../build/assets/access-log-api-C2jjjGpZ.js | 1 - .../assets/agent-gateway-api-C9ZaxlKW.js | 1 - server/resource/build/assets/antd-Afm2kNt7.js | 497 - .../build/assets/asset-api-1abjsV5s.js | 1 - .../assets/authorised-asset-api-DxGTPNvM.js | 1 - .../authorised-database-asset-api-u0MMVZQN.js | 1 - .../assets/authorised-website-api-DLMeAD6d.js | 1 - .../build/assets/certificate-api-CCI2Z4Qf.js | 1 - .../resource/build/assets/charts-DWBuA5Za.js | 64 - .../build/assets/codicon-ngg6Pgfi.ttf | Bin 121972 -> 0 bytes .../assets/command-filter-api-BxXGNaHY.js | 1 - .../build/assets/credential-api-DP_sN2cX.js | 1 - .../build/assets/css.worker-CgwaIV8M.js | 93 - .../assets/database-asset-api-BQeUyDt2.js | 1 - .../assets/db-work-order-api-Bt-h8Gzk.js | 1 - .../build/assets/department-api-fa0GHZbt.js | 1 - .../assets/gateway-group-api-nxpckHkj.js | 1 - .../build/assets/html.worker-CTR7tRei.js | 470 - .../resource/build/assets/index-CkNj51me.css | 1 - .../resource/build/assets/index-DQXwuKC5.js | 343 - .../build/assets/json.worker-CTPo88F_.js | 58 - .../resource/build/assets/linux-CC_5NTIW.png | Bin 39186 -> 0 bytes .../build/assets/login-policy-api-BlI40YsB.js | 1 - .../resource/build/assets/macos-CpA6aHqw.png | Bin 15820 -> 0 bytes .../resource/build/assets/monaco-CA9D5Osg.js | 11 - .../resource/build/assets/monaco-D4lxmsqF.css | 1 - .../resource/build/assets/network-Bw9HyUcr.js | 1 - .../build/assets/oidc-api-DdlmoOii.js | 1 - .../resource/build/assets/react-l0sNRNKZ.js | 1 - .../build/assets/role-api-RbYCFKw-.js | 1 - .../resource/build/assets/server-DnjIV_zW.js | 1 - .../build/assets/session-api-mmDQqQeA.js | 1 - server/resource/build/assets/sort-BOdE-yay.js | 1 - .../build/assets/ssh-gateway-api-D4569Eil.js | 1 - .../build/assets/storage-api-CDrFMJhC.js | 1 - .../build/assets/strategy-api-z9cMxeja.js | 1 - server/resource/build/assets/sun-7WZ3UW9g.js | 1 - .../resource/build/assets/times-CQ9ir0Jv.js | 1 - .../build/assets/ts.worker-CC31TMTe.js | 67718 ---------------- .../resource/build/assets/upload-D4kD-YfJ.js | 1 - .../build/assets/user-api-BJxKseSg.js | 1 - .../resource/build/assets/users-Bfyvg_N3.js | 1 - .../build/assets/website-api-CiGWjL7L.js | 1 - .../build/assets/wechat-work-api-DdwWCsjx.js | 1 - .../build/assets/windows-BIA7AHJd.png | Bin 6043 -> 0 bytes .../resource/build/assets/xterm-Buno8AXJ.js | 66 - server/resource/build/index.html | 24 - server/resource/build/logo.png | Bin 5525 -> 0 bytes server/resource/build/logo.svg | 17 - server/resource/build/manifest.webmanifest | 1 - server/resource/build/registerSW.js | 1 - server/resource/build/sw.js | 1 - server/resource/build/workbox-8c29f6e4.js | 1 - 130 files changed, 2 insertions(+), 69496 deletions(-) delete mode 100644 server/resource/build/assets/AccessLogPage-BMkEOqMJ.js delete mode 100644 server/resource/build/assets/AccessLogStatsPage-CXrZAL2E.js delete mode 100644 server/resource/build/assets/AgentGatewayPage-DEPMQmCG.js delete mode 100644 server/resource/build/assets/AssetFacadePage-CCyTP6F2.js delete mode 100644 server/resource/build/assets/AssetGatewayChoose-4vUjpk3C.js delete mode 100644 server/resource/build/assets/AssetPage-BJD5muIt.js delete mode 100644 server/resource/build/assets/AuthorisedAssetPage-BX2rNWSk.js delete mode 100644 server/resource/build/assets/AuthorisedAssetPost-vCyEAP3r.js delete mode 100644 server/resource/build/assets/AuthorisedDatabaseAssetPage-CQMQnnFB.js delete mode 100644 server/resource/build/assets/AuthorisedDatabaseAssetPost-BrzKzr0W.js delete mode 100644 server/resource/build/assets/AuthorisedWebsitePage-C91itGU-.js delete mode 100644 server/resource/build/assets/AuthorisedWebsitePost-COc7i5eT.js delete mode 100644 server/resource/build/assets/BrowserPage-B9fb62o-.js delete mode 100644 server/resource/build/assets/BrowserPage-C3yUGLF0.css delete mode 100644 server/resource/build/assets/CertificatePage-B2tj9A2w.js delete mode 100644 server/resource/build/assets/CommandFilterDetail-BeaIU-md.js delete mode 100644 server/resource/build/assets/CommandFilterPage-DaXaMByx.js delete mode 100644 server/resource/build/assets/CredentialPage-Die5iQYX.js delete mode 100644 server/resource/build/assets/DashboardPage-Im-9FWfr.js delete mode 100644 server/resource/build/assets/DatabaseAssetFacadePage-a0QWLTVr.js delete mode 100644 server/resource/build/assets/DatabaseAssetPage-C5z0KjFF.js delete mode 100644 server/resource/build/assets/DatabaseSQLLogPage-D3ObzhHj.js delete mode 100644 server/resource/build/assets/DatabaseWorkOrderPage-Caoq0Mdz.js delete mode 100644 server/resource/build/assets/DatabaseWorkOrderUserPage-B2ycCPZM.js delete mode 100644 server/resource/build/assets/DepartmentDetail-ByJ-vndZ.js delete mode 100644 server/resource/build/assets/DepartmentPage-CRl-pRy6.js delete mode 100644 server/resource/build/assets/ErrorPage-BYi3namZ.js delete mode 100644 server/resource/build/assets/FacadeCardSkeleton-N6rktkuw.js delete mode 100644 server/resource/build/assets/FacadeSearchBar-DPZw3dye.js delete mode 100644 server/resource/build/assets/FileSystemLogPage-q2mkisVQ.js delete mode 100644 server/resource/build/assets/GatewayGroupPage-Bz3t4FqF.js delete mode 100644 server/resource/build/assets/GuacdMonitor-BuR0ODFT.js delete mode 100644 server/resource/build/assets/GuacdPlayback-CFtamDo9.js delete mode 100644 server/resource/build/assets/GuacdPlayback-DQHtnea3.css delete mode 100644 server/resource/build/assets/InfoPage--AJ8mxff.js delete mode 100644 server/resource/build/assets/LoginLockedPage-DZnpSndD.js delete mode 100644 server/resource/build/assets/LoginLogPage-wdWF965f.js delete mode 100644 server/resource/build/assets/LoginPage-aub4Iv9y.js delete mode 100644 server/resource/build/assets/LoginPolicyDetailPage-C0FoOMds.js delete mode 100644 server/resource/build/assets/LoginPolicyPage-D8II9jNz.js delete mode 100644 server/resource/build/assets/LoginPolicyPostPage--Tauq4PS.js delete mode 100644 server/resource/build/assets/LoginPolicyPostPage-BQyj14Fs.css delete mode 100644 server/resource/build/assets/MobileAccessTerminal-DNKK6b04.js delete mode 100644 server/resource/build/assets/NButton-DoPcvKBF.js delete mode 100644 server/resource/build/assets/NLink-Dl2yFaN4.js delete mode 100644 server/resource/build/assets/OfflineSessionPage-D1UBBI15.js delete mode 100644 server/resource/build/assets/OidcCallback-qbNXTZur.js delete mode 100644 server/resource/build/assets/OidcClientPage-DeSDpT3L.js delete mode 100644 server/resource/build/assets/OidcServerConsent-zcgmhrgY.js delete mode 100644 server/resource/build/assets/OnlineSessionPage-zbyIKEoo.js delete mode 100644 server/resource/build/assets/OperationLogPage-BlAhFenm.js delete mode 100644 server/resource/build/assets/QuerySelects-HiP3pg4d.js delete mode 100644 server/resource/build/assets/RedirectPage-BghypuSI.js delete mode 100644 server/resource/build/assets/RoleDetail-B5ZhMtSV.js delete mode 100644 server/resource/build/assets/RolePage-DqozdEe0.js delete mode 100644 server/resource/build/assets/ScheduledTaskPage-CQSqn-EP.js delete mode 100644 server/resource/build/assets/SettingPage-DxlkP9BT.js delete mode 100644 server/resource/build/assets/SetupPage-DriicTxX.js delete mode 100644 server/resource/build/assets/SnippetPage-Bp2O5-JS.js delete mode 100644 server/resource/build/assets/SnippetUserPage-DbddvRmb.js delete mode 100644 server/resource/build/assets/SshGatewayPage-C_iCWAPs.js delete mode 100644 server/resource/build/assets/StoragePage-DS0_Tdim.js delete mode 100644 server/resource/build/assets/StrategyPage-58Xo8e61.js delete mode 100644 server/resource/build/assets/SystemMonitorPage-Lnutq0Ew.js delete mode 100644 server/resource/build/assets/TerminalMonitor-BGHFY2w9.js delete mode 100644 server/resource/build/assets/TerminalPlayback-C0uHH8VC.css delete mode 100644 server/resource/build/assets/TerminalPlayback-CwU1DI7U.js delete mode 100644 server/resource/build/assets/ToolsPage-DPPxYsiI.js delete mode 100644 server/resource/build/assets/UserDetailPage-CxWs4t4Q.js delete mode 100644 server/resource/build/assets/UserInfoPage-DrNAhF9r.js delete mode 100644 server/resource/build/assets/UserLayout-M9_Sh7Dn.js delete mode 100644 server/resource/build/assets/UserPage-hpsga5IM.js delete mode 100644 server/resource/build/assets/WebsiteFacadePage-CqAliO-B.js delete mode 100644 server/resource/build/assets/WebsitePage-BFwEoyOi.js delete mode 100644 server/resource/build/assets/WechatWorkCallback-BTjIgIlC.js delete mode 100644 server/resource/build/assets/access-log-api-C2jjjGpZ.js delete mode 100644 server/resource/build/assets/agent-gateway-api-C9ZaxlKW.js delete mode 100644 server/resource/build/assets/antd-Afm2kNt7.js delete mode 100644 server/resource/build/assets/asset-api-1abjsV5s.js delete mode 100644 server/resource/build/assets/authorised-asset-api-DxGTPNvM.js delete mode 100644 server/resource/build/assets/authorised-database-asset-api-u0MMVZQN.js delete mode 100644 server/resource/build/assets/authorised-website-api-DLMeAD6d.js delete mode 100644 server/resource/build/assets/certificate-api-CCI2Z4Qf.js delete mode 100644 server/resource/build/assets/charts-DWBuA5Za.js delete mode 100644 server/resource/build/assets/codicon-ngg6Pgfi.ttf delete mode 100644 server/resource/build/assets/command-filter-api-BxXGNaHY.js delete mode 100644 server/resource/build/assets/credential-api-DP_sN2cX.js delete mode 100644 server/resource/build/assets/css.worker-CgwaIV8M.js delete mode 100644 server/resource/build/assets/database-asset-api-BQeUyDt2.js delete mode 100644 server/resource/build/assets/db-work-order-api-Bt-h8Gzk.js delete mode 100644 server/resource/build/assets/department-api-fa0GHZbt.js delete mode 100644 server/resource/build/assets/gateway-group-api-nxpckHkj.js delete mode 100644 server/resource/build/assets/html.worker-CTR7tRei.js delete mode 100644 server/resource/build/assets/index-CkNj51me.css delete mode 100644 server/resource/build/assets/index-DQXwuKC5.js delete mode 100644 server/resource/build/assets/json.worker-CTPo88F_.js delete mode 100644 server/resource/build/assets/linux-CC_5NTIW.png delete mode 100644 server/resource/build/assets/login-policy-api-BlI40YsB.js delete mode 100644 server/resource/build/assets/macos-CpA6aHqw.png delete mode 100644 server/resource/build/assets/monaco-CA9D5Osg.js delete mode 100644 server/resource/build/assets/monaco-D4lxmsqF.css delete mode 100644 server/resource/build/assets/network-Bw9HyUcr.js delete mode 100644 server/resource/build/assets/oidc-api-DdlmoOii.js delete mode 100644 server/resource/build/assets/react-l0sNRNKZ.js delete mode 100644 server/resource/build/assets/role-api-RbYCFKw-.js delete mode 100644 server/resource/build/assets/server-DnjIV_zW.js delete mode 100644 server/resource/build/assets/session-api-mmDQqQeA.js delete mode 100644 server/resource/build/assets/sort-BOdE-yay.js delete mode 100644 server/resource/build/assets/ssh-gateway-api-D4569Eil.js delete mode 100644 server/resource/build/assets/storage-api-CDrFMJhC.js delete mode 100644 server/resource/build/assets/strategy-api-z9cMxeja.js delete mode 100644 server/resource/build/assets/sun-7WZ3UW9g.js delete mode 100644 server/resource/build/assets/times-CQ9ir0Jv.js delete mode 100644 server/resource/build/assets/ts.worker-CC31TMTe.js delete mode 100644 server/resource/build/assets/upload-D4kD-YfJ.js delete mode 100644 server/resource/build/assets/user-api-BJxKseSg.js delete mode 100644 server/resource/build/assets/users-Bfyvg_N3.js delete mode 100644 server/resource/build/assets/website-api-CiGWjL7L.js delete mode 100644 server/resource/build/assets/wechat-work-api-DdwWCsjx.js delete mode 100644 server/resource/build/assets/windows-BIA7AHJd.png delete mode 100644 server/resource/build/assets/xterm-Buno8AXJ.js delete mode 100644 server/resource/build/index.html delete mode 100644 server/resource/build/logo.png delete mode 100644 server/resource/build/logo.svg delete mode 100644 server/resource/build/manifest.webmanifest delete mode 100644 server/resource/build/registerSW.js delete mode 100644 server/resource/build/sw.js delete mode 100644 server/resource/build/workbox-8c29f6e4.js diff --git a/.github/workflows/build-docker-image.yml b/.github/workflows/build-docker-image.yml index 91e272f2d..30a92cddc 100644 --- a/.github/workflows/build-docker-image.yml +++ b/.github/workflows/build-docker-image.yml @@ -53,6 +53,7 @@ jobs: npm install --global yarn yarn --frozen-lockfile --prefer-offline || yarn node --max-old-space-size=4096 ./node_modules/.bin/vite build + rm -rf ../server/resource/build mkdir -p ../server/resource/build cp -r dist/* ../server/resource/build/ echo "=== Checking build output ===" diff --git a/.gitignore b/.gitignore index 12d9de492..2fb9416e1 100644 --- a/.gitignore +++ b/.gitignore @@ -29,3 +29,4 @@ web/node_modules /server/resource/*.html /server/resource/*.json /server/resource/*.ico +/server/resource/build/ diff --git a/server/resource/build/assets/AccessLogPage-BMkEOqMJ.js b/server/resource/build/assets/AccessLogPage-BMkEOqMJ.js deleted file mode 100644 index 37d1bec8b..000000000 --- a/server/resource/build/assets/AccessLogPage-BMkEOqMJ.js +++ /dev/null @@ -1 +0,0 @@ -import{f,aI as y,S as s,bi as i,a$ as I,bz as S,av as T}from"./antd-Afm2kNt7.js";import{g as w}from"./sort-BOdE-yay.js";import{a as l}from"./access-log-api-C2jjjGpZ.js";import{u as L,h as j,w as P,y as A,Y as E}from"./index-DQXwuKC5.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";const O=()=>{const{t}=L(),o=f.useRef(null);let{modal:u}=y.useApp(),h=j({mutationFn:l.clear,onSuccess:()=>{o.current?.reload()}}),{isMobile:c}=P();const m=e=>e>=200&&e<300?"green":e>=300&&e<400?"blue":e>=400&&e<500?"orange":e>=500?"red":"default",p=[{title:t("assets.domain"),key:"domain",dataIndex:"domain",width:150,ellipsis:!0,render:e=>s.jsx("code",{children:e}),fixed:c?void 0:"left"},{title:t("menus.identity.submenus.user"),key:"accountName",dataIndex:"accountName",hideInSearch:!0,width:120,ellipsis:!0,render:(e,n)=>{const r=n.accountId;if(!r)return s.jsx(i,{color:"gray",children:t("audit.accessLog.anonymous")});if(r==="anonymous")return s.jsx(i,{color:"blue",children:t("audit.accessLog.anonymous")});if(r.startsWith("whitelist-")){const a=r.replace("whitelist-","");return s.jsx(i,{color:"green",title:a,children:t("audit.accessLog.whitelist")})}if(r.startsWith("temp-pass-")){const a=r.replace("temp-pass-","");return s.jsx(i,{color:"orange",title:a,children:t("audit.accessLog.tempPass")})}return e?s.jsx(A,{to:`/user/${r}`,children:e}):s.jsx(i,{color:"red",title:r,children:t("audit.accessLog.deletedUser")})},fixed:c?void 0:"left"},{title:t("assets.website_response_modify.match_method"),key:"method",dataIndex:"method",valueType:"select",width:100,valueEnum:{GET:{text:"GET",status:"Success"},POST:{text:"POST",status:"Processing"},PUT:{text:"PUT",status:"Warning"},DELETE:{text:"DELETE",status:"Error"},PATCH:{text:"PATCH",status:"Default"},HEAD:{text:"HEAD",status:"Default"},OPTIONS:{text:"OPTIONS",status:"Default"}}},{title:t("audit.accessLog.uri"),key:"uri",dataIndex:"uri",hideInSearch:!0,ellipsis:!0,width:300,render:e=>s.jsx("code",{className:"text-xs",children:e})},{title:t("audit.accessLog.statusCode"),key:"statusCode",dataIndex:"statusCode",width:100,render:e=>s.jsx(i,{color:m(e),children:e})},{title:t("audit.accessLog.responseSize"),key:"responseSize",dataIndex:"responseSize",hideInSearch:!0,width:100,render:e=>E(e)},{title:t("audit.client_ip"),key:"clientIp",dataIndex:"clientIp",width:140,ellipsis:!0,render:(e,n)=>{let r=s.jsx("div",{children:e});const a=n.region;return s.jsxs("div",{className:"flex items-center gap-2",children:[r,s.jsx(I.Text,{type:"secondary",children:a})]})}},{title:t("audit.accessLog.responseTime"),key:"responseTime",dataIndex:"responseTime",hideInSearch:!0,width:100,render:e=>`${e}ms`},{title:t("audit.accessLog.userAgent"),key:"userAgent",dataIndex:"userAgent",hideInSearch:!0,ellipsis:!0,width:250,render:e=>s.jsx("span",{className:"text-xs",title:String(e||""),children:e})},{title:t("audit.accessLog.createdAt"),key:"createdAt",dataIndex:"createdAt",hideInSearch:!0,valueType:"dateTime",width:191}];return s.jsx("div",{children:s.jsx(S,{defaultSize:"small",columns:p,actionRef:o,scroll:{x:"max-content"},request:async(e={},n,r)=>{let[a,g]=w(n),x={pageIndex:e.current,pageSize:e.pageSize,order:a,field:g,domain:e.domain,method:e.method,statusCode:e.statusCode,clientIp:e.clientIp,accountId:e.accountId},d=await l.getPaging(x);return{data:d.items,success:!0,total:d.total}},rowKey:"id",search:{labelWidth:"auto"},pagination:{defaultPageSize:10,showSizeChanger:!0},dateFormatter:"string",headerTitle:t("menus.log_audit.submenus.access_log"),toolBarRender:()=>[s.jsx(T,{type:"primary",danger:!0,onClick:()=>{u.confirm({title:t("audit.accessLog.clearConfirmTitle"),content:t("audit.accessLog.clearConfirmContent"),onOk:async()=>h.mutate()})},children:t("actions.clear")},"clear")]})})};export{O as default}; diff --git a/server/resource/build/assets/AccessLogStatsPage-CXrZAL2E.js b/server/resource/build/assets/AccessLogStatsPage-CXrZAL2E.js deleted file mode 100644 index acd566e66..000000000 --- a/server/resource/build/assets/AccessLogStatsPage-CXrZAL2E.js +++ /dev/null @@ -1 +0,0 @@ -import{f as S,S as e,ay as v,aY as d,bh as q,bp as T}from"./antd-Afm2kNt7.js";import{v as y,u as se,e as l,Y as F,a5 as te,a6 as ae,a7 as f,a8 as g,a9 as h,aa as P,ab as re}from"./index-DQXwuKC5.js";import{a as n}from"./access-log-api-C2jjjGpZ.js";import{w as oe}from"./website-api-CiGWjL7L.js";import{U as ie,G as le}from"./users-Bfyvg_N3.js";import{N as ce}from"./network-Bw9HyUcr.js";import{A as de,C as K,X as R,Y as $,b as I,B as ne,d as ue,P as xe,a as me,e as fe}from"./charts-DWBuA5Za.js";import"./monaco-CA9D5Osg.js";import"./xterm-Buno8AXJ.js";const ge=[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]],A=y("timer",ge);const he=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],M=y("trending-up",he);const pe=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],ve=y("zap",pe),{Option:p}=v,c=t=>t==null?"0":t.toLocaleString(),qe=()=>{const{t}=se(),D=[{value:"today",label:t("audit.accessLog.stats.periods.today")},{value:"yesterday",label:t("audit.accessLog.stats.periods.yesterday")},{value:"7days",label:t("audit.accessLog.stats.periods.7days")},{value:"30days",label:t("audit.accessLog.stats.periods.30days")}],[r,O]=S.useState(""),[o,Q]=S.useState("today"),j=l({queryKey:["websites"],queryFn:()=>oe.getAll()}),W=l({queryKey:["website-stats",r,o],queryFn:()=>n.getWebsiteStats(r,o)}),b=l({queryKey:["website-traffic-trend",r,o],queryFn:()=>n.getWebsiteTrafficTrend(r,o)}),L=l({queryKey:["website-hourly-stats",r,o],queryFn:()=>n.getWebsiteHourlyStats(r,o)}),C=l({queryKey:["website-status-code-stats",r,o],queryFn:()=>n.getWebsiteStatusCodeStats(r,o)}),w=l({queryKey:["top-pages",r,o],queryFn:()=>n.getTopPages(r,o,10)}),N=l({queryKey:["top-referers",r,o],queryFn:()=>n.getTopReferers(r,o,10)}),Y=l({queryKey:["realtime-metrics",r],queryFn:()=>n.getRealtimeMetrics(r),refetchInterval:3e4}),_=j.data||[],u=W.data||{},E=b.data||[],z=L.data||[],G=C.data||[],H=w.data||[],U=N.data||[],x=Y.data||{},B={pv:{label:t("audit.accessLog.stats.metrics.pv"),color:"var(--chart-1)"},uv:{label:t("audit.accessLog.stats.metrics.uv"),color:"var(--chart-2)"},traffic:{label:t("audit.accessLog.stats.metrics.traffic"),color:"var(--chart-3)"}},X={count:{label:t("audit.accessLog.stats.table.visitCount"),color:"var(--chart-1)"}},k={"2xx":{label:t("audit.accessLog.stats.statusCodes.success"),color:"hsl(217, 91%, 60%)"},"3xx":{label:t("audit.accessLog.stats.statusCodes.redirect"),color:"hsl(262, 83%, 58%)"},"4xx":{label:t("audit.accessLog.stats.statusCodes.clientError"),color:"hsl(32, 95%, 44%)"},"5xx":{label:t("audit.accessLog.stats.statusCodes.serverError"),color:"hsl(0, 84%, 60%)"},other:{label:t("audit.accessLog.stats.statusCodes.other")||"Other",color:"hsl(215, 16%, 47%)"}},m=G.map(s=>{let a="other";const i=s.statusCode;return i>=200&&i<300?a="2xx":i>=300&&i<400?a="3xx":i>=400&&i<500?a="4xx":i>=500&&(a="5xx"),{category:a,name:`${i}`,label:`${i}`,value:s.count,fill:k[a].color}});console.log("statusCodeChartData",m);const Z=[{title:t("audit.accessLog.stats.metrics.pv"),value:u.pv,icon:e.jsx(te,{className:"h-4 w-4"}),formatter:c},{title:t("audit.accessLog.stats.metrics.uv"),value:u.uv,icon:e.jsx(ie,{className:"h-4 w-4"}),formatter:c},{title:t("audit.accessLog.stats.metrics.ip"),value:u.ip,icon:e.jsx(ce,{className:"h-4 w-4"}),formatter:c},{title:t("audit.accessLog.stats.metrics.traffic"),value:u.traffic,icon:e.jsx(M,{className:"h-4 w-4"}),formatter:F},{title:t("audit.accessLog.stats.metrics.requests"),value:u.requests,icon:e.jsx(le,{className:"h-4 w-4"}),formatter:c},{title:t("audit.accessLog.stats.table.avgResponseTime"),value:u.avgResponseTime,icon:e.jsx(A,{className:"h-4 w-4"}),formatter:s=>`${s?.toFixed(2)||0}ms`}],J=[{title:t("audit.accessLog.stats.realtime.currentOnline"),value:x.currentOnline,icon:e.jsx(ae,{className:"h-4 w-4"}),formatter:c},{title:t("audit.accessLog.stats.realtime.requestsPerSecond"),value:x.requestsPerSecond,icon:e.jsx(ve,{className:"h-4 w-4"}),formatter:s=>`${s?.toFixed(1)||0}/s`},{title:t("audit.accessLog.stats.realtime.realtimeTraffic"),value:x.trafficPerSecond,icon:e.jsx(M,{className:"h-4 w-4"}),formatter:s=>`${F(s||0)}/s`},{title:t("audit.accessLog.stats.realtime.errorRate"),value:x.errorRate,icon:e.jsx(A,{className:"h-4 w-4"}),formatter:s=>`${(s*100).toFixed(2)||0}%`}],V=[{title:t("audit.accessLog.stats.table.pagePath"),dataIndex:"uri",key:"uri",render:s=>e.jsx("code",{className:"text-sm",children:s})},{title:t("audit.accessLog.stats.table.pv"),dataIndex:"pv",key:"pv",sorter:(s,a)=>s.pv-a.pv,render:s=>c(s)},{title:t("audit.accessLog.stats.table.uv"),dataIndex:"uv",key:"uv",sorter:(s,a)=>s.uv-a.uv,render:s=>c(s)},{title:t("audit.accessLog.stats.table.avgResponseTime"),dataIndex:"avgResponseTime",key:"avgResponseTime",render:s=>`${s?.toFixed(2)||0}ms`}],ee=[{title:t("audit.accessLog.stats.table.referer"),dataIndex:"referer",key:"referer",render:s=>!s||s==="-"?t("audit.accessLog.stats.table.directAccess"):e.jsx("a",{href:s,target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 hover:underline",children:s})},{title:t("audit.accessLog.stats.table.visitCount"),dataIndex:"count",key:"count",sorter:(s,a)=>s.count-a.count,render:s=>c(s)}];return e.jsxs("div",{className:"p-4 space-y-4 max-w-full overflow-hidden",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row justify-between items-start sm:items-center gap-4",children:[e.jsx("h1",{className:"text-xl font-bold",children:t("audit.accessLog.stats.title")}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[e.jsxs(v,{placeholder:t("audit.accessLog.stats.selectWebsite"),value:r,onChange:O,style:{width:200},loading:j.isLoading,children:[e.jsx(p,{value:"",children:t("audit.accessLog.stats.allWebsites")},"all"),_.map(s=>e.jsxs(p,{value:s.id,children:[s.name," (",s.domain,")"]},s.id))]}),e.jsx(v,{value:o,onChange:Q,style:{width:120},children:D.map(s=>e.jsx(p,{value:s.value,children:s.label},s.value))})]})]}),e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-4",children:Z.map((s,a)=>e.jsxs(d,{className:"p-4 min-w-0",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("div",{className:"font-medium text-sm truncate pr-2",children:s.title}),s.icon]}),e.jsx("div",{className:"mt-2 text-lg font-bold truncate",children:s.formatter(s.value||0)})]},a))}),e.jsxs(d,{children:[e.jsx("div",{className:"font-medium mb-4",children:t("audit.accessLog.stats.realtime.title")}),e.jsx("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4",children:J.map((s,a)=>e.jsxs("div",{className:"text-center min-w-0",children:[e.jsxs("div",{className:"flex items-center justify-center gap-2 text-sm text-gray-600 mb-1",children:[s.icon,e.jsx("span",{className:"truncate",children:s.title})]}),e.jsx("div",{className:"text-lg font-bold truncate",children:s.formatter(s.value||0)})]},a))})]}),e.jsx(d,{title:t("audit.accessLog.stats.charts.trafficTrend"),loading:b.isLoading,children:e.jsx("div",{className:"rounded-xl p-4 border-0 w-full overflow-hidden",children:e.jsx(f,{config:B,className:"aspect-auto h-[300px] w-full min-w-0",children:e.jsxs(de,{data:E,children:[e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"fillPv",x1:"0",y1:"0",x2:"0",y2:"1",children:[e.jsx("stop",{offset:"5%",stopColor:"var(--color-pv)",stopOpacity:.8}),e.jsx("stop",{offset:"95%",stopColor:"var(--color-pv)",stopOpacity:.1})]}),e.jsxs("linearGradient",{id:"fillUv",x1:"0",y1:"0",x2:"0",y2:"1",children:[e.jsx("stop",{offset:"5%",stopColor:"var(--color-uv)",stopOpacity:.8}),e.jsx("stop",{offset:"95%",stopColor:"var(--color-uv)",stopOpacity:.1})]})]}),e.jsx(K,{strokeDasharray:"3 3",vertical:!1}),e.jsx(R,{dataKey:"time",tickLine:!1,axisLine:!1,tickMargin:8,tickFormatter:s=>q(s).format("MM-DD HH:mm")}),e.jsx($,{tickLine:!1,axisLine:!1}),e.jsx(g,{cursor:!1,content:e.jsx(h,{labelFormatter:s=>q(s).format("YYYY-MM-DD HH:mm"),indicator:"dot"})}),e.jsx(I,{dataKey:"pv",type:"natural",fill:"url(#fillPv)",stroke:"var(--color-pv)",stackId:"a"}),e.jsx(I,{dataKey:"uv",type:"natural",fill:"url(#fillUv)",stroke:"var(--color-uv)",stackId:"b"}),e.jsx(P,{content:e.jsx(re,{})})]})})})}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[e.jsx(d,{title:t("audit.accessLog.stats.charts.hourlyDistribution"),loading:L.isLoading,children:e.jsx("div",{className:"rounded-xl p-4 border-0 w-full overflow-hidden",children:e.jsx(f,{config:X,className:"aspect-auto h-[300px] w-full min-w-0",children:e.jsxs(ne,{data:z,children:[e.jsx(K,{strokeDasharray:"3 3",vertical:!1}),e.jsx(R,{dataKey:"hour",tickLine:!1,axisLine:!1,tickMargin:8,tickFormatter:s=>`${s}:00`}),e.jsx($,{tickLine:!1,axisLine:!1}),e.jsx(g,{cursor:!1,content:e.jsx(h,{labelFormatter:s=>`${t("audit.accessLog.stats.tooltip.time")}: ${s}:00`,formatter:s=>[s,t("audit.accessLog.stats.table.visitCount")],indicator:"dot"})}),e.jsx(ue,{dataKey:"count",fill:"var(--color-count)",radius:[4,4,0,0]})]})})})}),e.jsx(d,{title:t("audit.accessLog.stats.charts.statusCodeDistribution"),loading:C.isLoading,children:e.jsx("div",{className:"rounded-xl p-4 border-0 w-full overflow-hidden",children:e.jsx(f,{config:k,className:"mx-auto aspect-square max-h-[300px] min-w-0",children:e.jsxs(xe,{children:[e.jsx(g,{cursor:!1,content:e.jsx(h,{labelFormatter:(s,a)=>`${t("audit.accessLog.statusCode")} ${a[0]?.name}`,formatter:(s,a)=>[s]})}),e.jsx(me,{data:m,dataKey:"value",nameKey:"name",innerRadius:60,outerRadius:100,children:m.map((s,a)=>e.jsx(fe,{fill:s.fill},`cell-${a}`))}),e.jsx(P,{})]})})})})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[e.jsx(d,{title:t("audit.accessLog.stats.charts.topPages"),loading:w.isLoading,children:e.jsx("div",{className:"overflow-x-auto",children:e.jsx(T,{dataSource:H,columns:V,pagination:!1,size:"small",rowKey:"uri",scroll:{x:"max-content"}})})}),e.jsx(d,{title:t("audit.accessLog.stats.charts.topReferers"),loading:N.isLoading,children:e.jsx("div",{className:"overflow-x-auto",children:e.jsx(T,{dataSource:U,columns:ee,pagination:!1,size:"small",rowKey:"referer",scroll:{x:"max-content"}})})})]})]})};export{qe as default}; diff --git a/server/resource/build/assets/AgentGatewayPage-DEPMQmCG.js b/server/resource/build/assets/AgentGatewayPage-DEPMQmCG.js deleted file mode 100644 index 209bd9918..000000000 --- a/server/resource/build/assets/AgentGatewayPage-DEPMQmCG.js +++ /dev/null @@ -1 +0,0 @@ -import{f as o,S as e,U as E,aK as oe,aT as J,aO as H,ay as ce,a$ as Z,bs as C,bh as me,av as K,aS as ee,au as se,bp as xe,bg as L,aY as z,bD as ge,bf as B,bi as w,aI as he,ch as ue,b2 as pe,R as ye}from"./antd-Afm2kNt7.js";import{v as Y,u as M,A as je,e as R,m as we,H as T,ac as fe,Y as g,ad as ke,a6 as ve,z as Ne,h as X,ae as D}from"./index-DQXwuKC5.js";import{a as A}from"./agent-gateway-api-C9ZaxlKW.js";import{c as j}from"./charts-DWBuA5Za.js";import{N as U}from"./NButton-DoPcvKBF.js";import{S as be}from"./server-DnjIV_zW.js";import{N as _e}from"./network-Bw9HyUcr.js";import{g as Se}from"./sort-BOdE-yay.js";import"./monaco-CA9D5Osg.js";import"./xterm-Buno8AXJ.js";const Ie=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],G=Y("arrow-down",Ie);const Ce=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],W=Y("arrow-up",Ce);const Fe=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Ae=Y("clock",Fe),$e=A,qe=({open:n,handleOk:p,handleCancel:r,confirmLoading:s,id:c})=>{const t=o.useRef(null);let{t:x}=M();const h=async()=>c?await $e.getById(c):{};return e.jsx(E,{title:x("actions.edit"),open:n,maskClosable:!1,destroyOnHidden:!0,onOk:()=>{t.current?.validateFields().then(async f=>{p(f)})},onCancel:()=>{r()},confirmLoading:s,children:e.jsxs(oe,{formRef:t,request:h,submitter:!1,children:[e.jsx(J,{hidden:!0,name:"id"}),e.jsx(J,{name:"name",label:x("general.name"),rules:[{required:!0}]})]})})};class Te extends je{constructor(){super("admin/agent-gateway-tokens")}}let O=new Te;const{Paragraph:S}=Z,Oe=new URL("/assets/linux-CC_5NTIW.png",import.meta.url).href,Re=new URL("/assets/windows-BIA7AHJd.png",import.meta.url).href,Me=new URL("/assets/macos-CpA6aHqw.png",import.meta.url).href,Pe=({open:n,handleCancel:p})=>{const{t:r}=M();let[s,c]=o.useState({endpoint:"",token:""}),[t,x]=o.useState("linux"),[h,f]=o.useState(""),k=R({queryKey:["agent-gateway-tokens"],queryFn:O.getAll}),v=R({queryKey:["agent-gateway-register-param"],queryFn:A.getRegisterParam,enabled:n});o.useEffect(()=>{if(v.data){let l=v.data;l.endpoint===""?(l.endpoint=window.location.origin,A.setRegisterAddr(l.endpoint).then(y=>{c(l)})):c(l)}},[v.data]),o.useEffect(()=>{n&&k.refetch()},[n]),o.useEffect(()=>{f(`curl -k ${s.endpoint}/api/agent/install.sh | bash -s ${s.token}`)},[s]);const N=[{key:"linux",label:"Linux",img:Oe},{key:"windows",label:"Windows",img:Re},{key:"macos",label:"macOS",img:Me}],I=l=>{switch(l){case"linux":return e.jsxs("div",{className:"space-y-2",children:[e.jsx("div",{className:"font-medium",children:r("gateways.install_auto")}),e.jsx("div",{className:j("bg-slate-200 p-4 rounded","dark:bg-slate-700"),children:e.jsx(S,{copyable:!0,style:{margin:0},children:h})}),e.jsx("div",{className:"font-medium mt-4",children:r("gateways.install_manual")}),e.jsxs("div",{children:["1. ",r("gateways.download_binary")]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("a",{href:`${T()}/agent/downloads/nt-tunnel-linux-amd64`,children:"amd64"}),e.jsx("a",{href:`${T()}/agent/downloads/nt-tunnel-linux-arm64`,children:"arm64"})]}),e.jsxs("div",{children:["2. ",r("gateways.install_step_rename")]}),e.jsx("div",{className:j("bg-slate-200 p-4 rounded","dark:bg-slate-700"),children:e.jsx(S,{copyable:!0,style:{margin:0},children:"mv nt-tunnel-linux-amd64 nt-tunnel && chmod +x nt-tunnel"})}),e.jsxs("div",{children:["3. ",r("gateways.install_step_register")]}),e.jsx("div",{className:j("bg-slate-200 p-4 rounded","dark:bg-slate-700"),children:e.jsx(S,{copyable:!0,style:{margin:0},children:`sudo ./nt-tunnel register --endpoint ${s.endpoint} --token ${s.token} --yes`})})]});case"windows":return e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{children:["1. ",r("gateways.download_binary")]}),e.jsx("div",{children:e.jsx("a",{href:`${T()}/agent/downloads/nt-tunnel-windows-amd64.exe`,children:"amd64"})}),e.jsxs("div",{children:["2. ",r("gateways.install_step_rename_windows")]}),e.jsx("div",{className:j("bg-slate-200 p-4 rounded","dark:bg-slate-700"),children:e.jsx(S,{copyable:!0,style:{margin:0},children:"ren nt-tunnel-windows-amd64.exe nt-tunnel.exe"})}),e.jsxs("div",{children:["3. ",r("gateways.install_step_register_admin")]}),e.jsx("div",{className:j("bg-slate-200 p-4 rounded","dark:bg-slate-700"),children:e.jsx(S,{copyable:!0,style:{margin:0},children:`nt-tunnel.exe register --endpoint ${s.endpoint} --token ${s.token} --yes`})}),e.jsx("div",{className:"text-sm text-gray-500 dark:text-gray-400",children:r("gateways.install_windows_service_tip")})]});case"macos":return e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{children:["1. ",r("gateways.download_binary")]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("a",{href:`${T()}/agent/downloads/nt-tunnel-darwin-arm64`,children:"arm64"}),e.jsx("a",{href:`${T()}/agent/downloads/nt-tunnel-darwin-amd64`,children:"amd64"})]}),e.jsxs("div",{children:["2. ",r("gateways.install_step_rename")]}),e.jsx("div",{className:j("bg-slate-200 p-4 rounded","dark:bg-slate-700"),children:e.jsx(S,{copyable:!0,style:{margin:0},children:"mv nt-tunnel-darwin-arm64 nt-tunnel && chmod +x nt-tunnel"})}),e.jsxs("div",{children:["3. ",r("gateways.install_step_register")]}),e.jsx("div",{className:j("bg-slate-200 p-4 rounded","dark:bg-slate-700"),children:e.jsx(S,{copyable:!0,style:{margin:0},children:`sudo ./nt-tunnel register --endpoint ${s.endpoint} --token ${s.token} --yes`})}),e.jsx("div",{className:"text-sm text-gray-500 dark:text-gray-400",children:r("gateways.install_system_service_tip")})]})}};function $(l){try{const y=new URL(l);return`${y.protocol}//${y.host}`}catch{return""}}return e.jsxs(E,{title:r("gateways.register_title"),open:n,maskClosable:!1,destroyOnHidden:!0,footer:!1,onCancel:()=>{p()},children:[e.jsxs("div",{className:"mb-2 flex flex-col gap-2",children:[e.jsx("div",{children:r("gateways.server_address")}),e.jsx(H,{value:s.endpoint,onChange:l=>{c({...s,endpoint:l.target.value})},onBlur:async()=>{let l=$(s.endpoint);we.hasText(l)||(l=window.location.origin),c({...s,endpoint:l}),await A.setRegisterAddr(l)}}),e.jsx("div",{children:r("gateways.register_token")}),e.jsx(ce,{showSearch:!0,placeholder:r("gateways.register_token_placeholder"),filterOption:(l,y)=>{const m=l.toLowerCase(),u=y?.label?.toLowerCase()||"",P=y?.value?.toLowerCase()||"";return u.includes(m)||P.includes(m)},options:Array.isArray(k.data)?k.data.map(l=>({label:l.id,value:l.id,remark:l.remark})):[],optionRender:l=>e.jsxs("div",{className:"flex flex-col py-1",children:[e.jsx("div",{className:"font-mono text-sm text-gray-800 dark:text-gray-200",children:l.data.value}),l.data.remark&&e.jsx("div",{className:"text-xs text-gray-500 dark:text-gray-400 mt-1",children:l.data.remark})]}),value:s.token,onChange:l=>{c({...s,token:l})}})]}),e.jsx("div",{className:"grid grid-cols-3 p-4",children:N.map(l=>e.jsx("div",{className:"flex items-center justify-center cursor-pointer",onClick:()=>{x(l.key)},children:e.jsxs("div",{className:"space-y-2 text-center",children:[e.jsx("img",{src:l.img,alt:"linux",className:"w-16 h-16"}),e.jsx("div",{className:"font-medium",children:l.label}),e.jsx("div",{className:j("h-1 w-full",t===l.key&&"bg-blue-500")})]})},l.key))}),e.jsxs("div",{className:"mt-4 space-y-2",children:[e.jsx("div",{children:r("gateways.install_shell")}),I(t)]})]})},{Paragraph:Le}=Z,ze=({open:n,onClose:p})=>{let{t:r}=M();const[s]=C.useForm(),[c]=C.useForm(),[t,x]=o.useState(!1),[h,f]=o.useState(!1),[k,v]=o.useState(null);let N=R({queryKey:["agent-gateway-tokens"],queryFn:O.getAll});o.useEffect(()=>{n&&N.refetch()},[n]);const I=async m=>{try{const u={remark:m.remark};await O.create(u),L.success(r("general.success")),x(!1),s.resetFields(),N.refetch()}catch{L.error(r("general.error"))}},$=async m=>{if(k)try{const u={...k,remark:m.remark};await O.updateById(k.id,u),L.success(r("general.success")),f(!1),v(null),c.resetFields(),N.refetch()}catch{L.error(r("general.error"))}},l=m=>{v(m),c.setFieldsValue({remark:m.remark}),f(!0)},y=[{title:"Token",dataIndex:"id",key:"id",render:(m,u)=>e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsx(Le,{copyable:!0,style:{marginBottom:0},className:"font-mono text-sm",children:m}),u.remark&&e.jsxs("div",{className:"px-2 py-1 bg-gray-50 dark:bg-gray-800 rounded text-xs text-gray-600 dark:text-gray-400 border-l-2 border-blue-200 dark:border-blue-700",children:[e.jsx("span",{className:"font-medium text-gray-700 dark:text-gray-300",children:r("general.remark_label")}),u.remark]})]})},{title:r("general.updated_at"),dataIndex:"updatedAt",key:"updatedAt",width:191,render:m=>me(m).format("YYYY-MM-DD HH:mm:ss")},{title:r("actions.label"),key:"action",width:150,render:(m,u)=>e.jsxs("div",{style:{display:"flex",gap:"8px"},children:[e.jsx(K,{type:"link",size:"small",onClick:()=>l(u),children:r("actions.edit")}),e.jsx(ee,{title:r("general.confirm_delete"),onConfirm:async()=>{await O.deleteById(u.id),N.refetch()},children:e.jsx(U,{danger:!0,children:r("actions.delete")},"delete")},"delete-confirm")]})}];return e.jsxs(e.Fragment,{children:[e.jsx(se,{title:r("gateways.token_manage"),onClose:p,open:n,width:window.innerWidth*.6,extra:e.jsx(K,{type:"primary",onClick:()=>x(!0),children:r("actions.new")}),children:e.jsx(xe,{columns:y,dataSource:N.data,pagination:!1,rowKey:"id"})}),e.jsx(E,{title:r("gateways.add_token"),open:t,onOk:()=>s.submit(),onCancel:()=>{x(!1),s.resetFields()},children:e.jsx(C,{form:s,layout:"vertical",onFinish:I,children:e.jsx(C.Item,{label:r("general.remark"),name:"remark",rules:[{required:!0,message:r("general.required")}],children:e.jsx(H,{placeholder:r("general.enter_remark")})})})}),e.jsx(E,{title:r("gateways.edit_token_remark"),open:h,onOk:()=>c.submit(),onCancel:()=>{f(!1),v(null),c.resetFields()},children:e.jsx(C,{form:c,layout:"vertical",onFinish:$,children:e.jsx(C.Item,{label:r("general.remark"),name:"remark",rules:[{required:!0,message:r("general.required")}],children:e.jsx(H,{placeholder:r("general.enter_remark")})})})})]})},Be=({open:n,id:p,onClose:r})=>{const{t:s}=M(),t=R({queryKey:["agent-gateway",p,"stat"],queryFn:async()=>await A.getStat(p),enabled:n,refetchInterval:3e3}).data;return e.jsx(se,{title:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(ve,{className:"h-5 w-5"}),e.jsx("span",{children:s("gateways.monitor.title")}),t?.host?.hostname&&e.jsx("span",{className:"text-sm text-gray-500",children:t.host.hostname}),t?.ping!==void 0&&e.jsxs(w,{color:"green",children:[s("gateways.stat.ping"),": ",t.ping,"ms"]})]}),onClose:r,open:n,width:Math.min(1200,window.innerWidth-100),children:e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsxs(z,{size:"small",title:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(be,{className:"h-4 w-4"}),e.jsx("span",{children:s("gateways.monitor.system_info")})]}),children:[e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[e.jsxs("div",{children:[e.jsx("div",{className:"text-gray-500 text-sm",children:s("stat.info.hostname")}),e.jsx("div",{className:"font-medium",children:t?.host.hostname||"-"})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-gray-500 text-sm",children:s("stat.info.os")}),e.jsxs("div",{className:"font-medium",children:[t?.host.os||"-"," / ",t?.host.arch||"-"]})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-gray-500 text-sm",children:s("gateways.stat.system_version")}),e.jsx("div",{className:"font-medium",children:t?.host.version||"-"})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"text-gray-500 text-sm flex items-center gap-1",children:[e.jsx(Ae,{className:"h-3 w-3"}),s("gateways.stat.uptime")]}),e.jsx("div",{className:"font-medium",children:fe(t?.host.uptime)})]})]}),t?.load&&e.jsxs(e.Fragment,{children:[e.jsx(ge,{className:"my-3"}),e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[e.jsxs("div",{children:[e.jsx("div",{className:"text-gray-500 text-sm",children:s("gateways.stat.ping")}),e.jsx("div",{className:"font-medium",children:t.ping!==void 0?`${t.ping} ms`:"-"})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-gray-500 text-sm",children:s("gateways.monitor.load_1m")}),e.jsx("div",{className:"font-medium",children:t.load.load_1?.toFixed(2)||"-"})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-gray-500 text-sm",children:s("gateways.monitor.load_5m")}),e.jsx("div",{className:"font-medium",children:t.load.load_5?.toFixed(2)||"-"})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-gray-500 text-sm",children:s("gateways.monitor.load_15m")}),e.jsx("div",{className:"font-medium",children:t.load.load_15?.toFixed(2)||"-"})]})]})]})]}),e.jsx(z,{size:"small",title:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(ke,{className:"h-4 w-4"}),e.jsxs("span",{children:[s("gateways.stat.cpu")," / ",s("gateways.stat.memory")," / ",s("gateways.stat.disk")]})]}),children:e.jsx("div",{className:"space-y-4",children:e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[e.jsxs("div",{className:"rounded-md border border-slate-200/70 dark:border-slate-700 px-3 py-2",children:[e.jsx("div",{className:"text-xs text-gray-500 mb-1",children:s("gateways.stat.cpu")}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("span",{className:"text-lg font-semibold",children:[t?.cpu.percent?.toFixed(1)||0,"%"]}),e.jsxs("span",{className:"text-xs text-gray-400",children:[s("gateways.stat.logical_cores"),": ",t?.cpu.logical_cores||0]})]}),e.jsx(B,{percent:t?.cpu.percent||0,showInfo:!1,strokeColor:(t?.cpu.percent||0)>80?"#f5222d":(t?.cpu.percent||0)>60?"#faad14":"#52c41a"}),e.jsx("div",{className:"text-xs text-gray-500 mt-1",children:t?.cpu.model||"-"})]}),e.jsxs("div",{className:"rounded-md border border-slate-200/70 dark:border-slate-700 px-3 py-2",children:[e.jsx("div",{className:"text-xs text-gray-500 mb-1",children:s("gateways.stat.memory")}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("span",{className:"text-lg font-semibold",children:[t?.memory.percent?.toFixed(1)||0,"%"]}),e.jsxs(w,{color:"blue",bordered:!1,className:"!m-0",children:[g(t?.memory.used)," / ",g(t?.memory.total)]})]}),e.jsxs("div",{className:"text-xs text-gray-500 mt-2",children:[s("gateways.stat.available"),": ",g(t?.memory.available)," · ",s("gateways.stat.free"),": ",g(t?.memory.free)]}),t?.memory.swap_total>0&&e.jsxs("div",{className:"text-xs text-gray-500 mt-1",children:[s("gateways.stat.swap"),": ",g(t.memory.swap_total)," / ",g(t.memory.swap_free)]})]}),e.jsxs("div",{className:"rounded-md border border-slate-200/70 dark:border-slate-700 px-3 py-2",children:[e.jsx("div",{className:"text-xs text-gray-500 mb-1",children:s("gateways.stat.disk")}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("span",{className:"text-lg font-semibold",children:[t?.disk.percent?.toFixed(1)||0,"%"]}),e.jsxs(w,{color:"gold",bordered:!1,className:"!m-0",children:[g(t?.disk.used)," / ",g(t?.disk.total)]})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-2 mt-2 text-xs",children:[e.jsxs("div",{className:j("flex items-center gap-2 px-2 py-1 rounded","bg-green-50 dark:bg-green-900/20"),children:[e.jsx(W,{className:"h-3 w-3 text-green-600 dark:text-green-400"}),e.jsxs("span",{className:"text-green-600 dark:text-green-400",children:[g(t?.disk_io.read_bytes),"/s"]})]}),e.jsxs("div",{className:j("flex items-center gap-2 px-2 py-1 rounded","bg-red-50 dark:bg-red-900/20"),children:[e.jsx(G,{className:"h-3 w-3 text-red-600 dark:text-red-400"}),e.jsxs("span",{className:"text-red-600 dark:text-red-400",children:[g(t?.disk_io.write_bytes),"/s"]})]})]})]})]})})}),e.jsx(z,{size:"small",title:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(_e,{className:"h-4 w-4"}),e.jsx("span",{children:s("assets.network")})]}),children:e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("div",{className:"text-gray-500 text-sm",children:s("gateways.monitor.network_io_rate")}),e.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[e.jsxs("div",{className:j("flex items-center gap-2 px-3 py-2 rounded","bg-green-50 dark:bg-green-900/20"),children:[e.jsx(W,{className:"h-4 w-4 text-green-600 dark:text-green-400"}),e.jsxs("div",{children:[e.jsx("div",{className:"text-xs text-gray-500",children:s("general.upload")}),e.jsxs("div",{className:"font-medium text-green-600 dark:text-green-400",children:[g(t?.network.tx_sec),"/s"]})]})]}),e.jsxs("div",{className:j("flex items-center gap-2 px-3 py-2 rounded","bg-blue-50 dark:bg-blue-900/20"),children:[e.jsx(G,{className:"h-4 w-4 text-blue-600 dark:text-blue-400"}),e.jsxs("div",{children:[e.jsx("div",{className:"text-xs text-gray-500",children:s("authorised.strategy.download")}),e.jsxs("div",{className:"font-medium text-blue-600 dark:text-blue-400",children:[g(t?.network.rx_sec),"/s"]})]})]})]}),e.jsxs("div",{className:"text-xs text-gray-500",children:[s("gateways.monitor.total_traffic"),":",s("general.upload")," ",g(t?.network.tx)," · ",s("authorised.strategy.download")," ",g(t?.network.rx)]})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-gray-500 text-sm mb-2",children:s("gateways.monitor.ip_address")}),e.jsxs("div",{className:"space-y-2",children:[t?.network.external_ip&&e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(w,{color:"blue",children:s("gateways.monitor.external")}),e.jsx("span",{className:"font-mono text-sm",children:t.network.external_ip})]}),t?.network.internal_ips&&t.network.internal_ips.length>0&&e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[e.jsx(w,{color:"green",children:s("gateways.monitor.internal")}),e.jsxs("span",{className:"text-xs text-gray-500",children:["(",t.network.internal_ips.length," ",s("gateways.monitor.items"),")"]})]}),e.jsx("div",{className:"pl-16 space-y-1",children:t.network.internal_ips.map((x,h)=>e.jsx("div",{className:"font-mono text-xs text-gray-600 dark:text-gray-400",children:x},h))})]})]})]})]})}),t?.errors&&Object.keys(t.errors).length>0&&e.jsx(z,{size:"small",title:e.jsx("span",{className:"text-red-600",children:s("gateways.monitor.collection_errors")}),children:e.jsx("div",{className:"space-y-2",children:Object.entries(t.errors).map(([x,h])=>e.jsxs("div",{className:"text-sm",children:[e.jsxs("span",{className:"font-medium text-gray-700 dark:text-gray-300",children:[x,": "]}),e.jsx("span",{className:"text-red-600",children:h})]},x))})})]})})},F=A,Ue=new URL("/assets/linux-CC_5NTIW.png",import.meta.url).href,Ee=new URL("/assets/windows-BIA7AHJd.png",import.meta.url).href,Ke=new URL("/assets/macos-CpA6aHqw.png",import.meta.url).href,es=()=>{const{t:n}=M(),p=o.useRef(null);let[r,s]=o.useState(!1),[c,t]=o.useState(!1),[x,h]=o.useState(),{license:f}=Ne(),[k,v]=o.useState([]),[N,I]=o.useState(!1),[$,l]=o.useState(!1);const{message:y}=he.useApp(),{data:m}=R({queryKey:["agentVersion"],queryFn:()=>F.getVersion(),staleTime:1e3*60*5});let P=X({mutationFn:async i=>{i.id?await F.updateById(i.id,i):await F.create(i)},onSuccess:()=>{p.current?.reload(),s(!1),h(void 0),ae()}});const te=X({mutationFn:i=>F.updateSortPosition(i),onSuccess:()=>{y.success(n("general.success"))}});function ae(){y.open({type:"success",content:n("general.success")})}const re=(i,a,d)=>{v(d);const b={id:d[a].id,beforeId:a>0?d[a-1].id:"",afterId:a{if(i==null||!a)return null;const d=i/a;return d<.7?{color:"green",text:n("gateways.load.normal")}:d<1?{color:"orange",text:n("gateways.load.moderate")}:{color:"red",text:n("gateways.load.busy")}},le=i=>{if(i==null)return"-";let a="green";return i>=200?a="red":i>=120?a="orange":i>=60&&(a="gold"),e.jsxs(w,{color:a,bordered:!1,className:"!m-0",children:[i," ms"]})};let ie=[{title:n("assets.sort"),dataIndex:"sort",width:50,className:"drag-visible",hideInSearch:!0},{title:n("general.name"),dataIndex:"name",hideInSearch:!0,className:"drag-visible",width:260,render:(i,a)=>{let d="";switch(a.os){case"linux":d=Ue;break;case"windows":d=Ee;break;case"darwin":d=Ke;break}return e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"h-9 w-9 rounded-lg bg-gray-100 dark:bg-gray-800 flex items-center justify-center",children:e.jsx("img",{src:d,className:"w-5 h-5",alt:"os"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"truncate font-medium",children:a.name}),a.version&&e.jsxs(w,{color:"blue",bordered:!1,className:"!m-0",children:["v",a.version]})]}),e.jsxs("div",{className:"text-xs text-gray-500 flex items-center gap-2",children:[e.jsx("span",{className:"font-mono",children:a.ip||"-"}),e.jsx("span",{className:"text-gray-300",children:"|"}),e.jsxs("span",{children:[a.os,"/",a.arch]})]})]})]})}},{title:n("general.status"),dataIndex:"online",key:"online",hideInSearch:!0,width:90,render:(i,a)=>a.online===!1?e.jsx(w,{bordered:!1,className:"!m-0",children:n("general.offline")}):e.jsx(w,{color:"green",bordered:!1,className:"!m-0",children:n("general.online")})},{title:n("gateways.stat.ping"),dataIndex:"stat.ping",key:"stat.ping",hideInSearch:!0,width:90,render:(i,a)=>a.online===!1?"-":le(a.stat?.ping)},{title:n("gateways.stat.load"),dataIndex:"stat.load",key:"stat.load",hideInSearch:!0,width:120,render:(i,a)=>{if(a.online===!1)return"-";const d=a.stat?.load?.load_1,_=`${a.stat?.load?.load_1?.toFixed(2)||"-"}, ${a.stat?.load?.load_5?.toFixed(2)||"-"}, ${a.stat?.load?.load_15?.toFixed(2)||"-"}`,b=a.stat?.cpu?.logical_cores,q=ne(d,b);return e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsx("div",{className:"text-xs text-gray-500",children:_}),q?e.jsx(w,{color:q.color,bordered:!1,className:"!m-0 w-fit",children:q.text}):"-"]})}},{title:"CPU",dataIndex:"stat.cpu",key:"stat.cpu",hideInSearch:!0,width:100,render:(i,a)=>a.stat?.cpu.percent?e.jsx(B,{size:"small",strokeColor:D(a.stat?.cpu.percent),percent:a.stat?.cpu.percent,format:d=>`${d?.toFixed(1)}%`}):"-"},{title:n("gateways.stat.memory"),dataIndex:"stat.memory",key:"stat.memory",hideInSearch:!0,width:100,render:(i,a)=>a.stat?.memory.percent?e.jsx(B,{size:"small",strokeColor:D(a.stat?.memory.percent),percent:a.stat?.memory.percent,format:d=>`${d?.toFixed(1)}%`}):"-"},{title:n("gateways.stat.disk"),dataIndex:"stat.disk",key:"stat.disk",hideInSearch:!0,width:100,render:(i,a)=>a.stat?.disk.percent?e.jsx(B,{size:"small",strokeColor:D(a.stat?.disk.percent),percent:a.stat?.disk.percent,format:d=>`${d?.toFixed(1)}%`}):"-"},{title:n("gateways.stat.network_io"),dataIndex:"stat.network_io",key:"stat.network_io",hideInSearch:!0,width:100,render:(i,a)=>a.stat?.network?e.jsxs("div",{className:"flex flex-col gap-0.5 text-xs",children:[e.jsxs("div",{className:"flex items-center gap-1 text-green-600",children:[e.jsx(W,{className:"h-3 w-3"}),g(a.stat?.network.tx_sec),"/s"]}),e.jsxs("div",{className:"flex items-center gap-1 text-blue-600",children:[e.jsx(G,{className:"h-3 w-3"}),g(a.stat?.network.rx_sec),"/s"]})]}):"-"},{title:n("actions.label"),valueType:"option",key:"option",width:100,fixed:"right",render:(i,a,d,_)=>[e.jsx(U,{onClick:()=>{l(!0),h(a.id)},children:n("gateways.monitor.action")},"stat"),e.jsx(U,{onClick:()=>{s(!0),h(a.id)},children:n("actions.edit")},"edit"),e.jsx(ee,{title:n("general.confirm_delete"),onConfirm:async()=>{await F.deleteById(a.id),p.current?.reload()},children:e.jsx(U,{danger:!0,children:n("actions.delete")},"delete")},"delete-confirm")]}];const V=f.isFree()&&k.length>=1,de=()=>{const i=e.jsx(K,{type:"primary",disabled:V,onClick:()=>{t(!0)},children:n("gateways.register")});return V?e.jsx(pe,{title:n("gateways.free_limit_tip"),children:e.jsx("span",{style:{display:"inline-block"},children:i})},"register-button"):ye.cloneElement(i,{key:"register-button"})};return e.jsxs("div",{className:"w-full",children:[e.jsx(ue,{headerTitle:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{children:n("menus.gateway.submenus.agent_gateway")}),m?.version&&e.jsxs(w,{color:"blue",bordered:!1,children:["v",m.version]})]}),columns:ie,actionRef:p,rowKey:"id",options:{search:!0},search:!1,pagination:{defaultPageSize:10,showSizeChanger:!0},request:async(i={},a,d)=>{let[_,b]=Se(a);_===""&&b===""&&(_="desc",b="sort");let q={pageIndex:i.current,pageSize:i.pageSize,order:_,field:b,keyword:i.keyword},Q=await F.getPaging(q);return{data:Q.items,success:!0,total:Q.total}},dragSortKey:"sort",onDragSortEnd:re,rowClassName:i=>{if(i.online==!1)return"grayscale"},dateFormatter:"string",toolBarRender:()=>[de(),e.jsx(K,{color:"purple",variant:"filled",onClick:()=>{I(!0)},children:n("gateways.token_manage")},"token-manage")],polling:5e3,scroll:{x:"max-content"}}),e.jsx(qe,{id:x,open:r,confirmLoading:P.isPending,handleCancel:()=>{s(!1),h(void 0)},handleOk:P.mutate}),e.jsx(Pe,{open:c,handleCancel:()=>{t(!1)}}),e.jsx(ze,{open:N,onClose:()=>{I(!1)}}),e.jsx(Be,{open:$,id:x,onClose:()=>{l(!1)}})]})};export{es as default}; diff --git a/server/resource/build/assets/AssetFacadePage-CCyTP6F2.js b/server/resource/build/assets/AssetFacadePage-CCyTP6F2.js deleted file mode 100644 index f700258b0..000000000 --- a/server/resource/build/assets/AssetFacadePage-CCyTP6F2.js +++ /dev/null @@ -1 +0,0 @@ -import{f as r,S as e,bc as k}from"./antd-Afm2kNt7.js";import{u as S,e as m,m as A,V as E,F,aj as h}from"./index-DQXwuKC5.js";import{g as T,a as K,c as L,f as G,F as I,b as q,d as M}from"./FacadeCardSkeleton-N6rktkuw.js";import{F as $}from"./FacadeSearchBar-DPZw3dye.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";const z=()=>{let{t:n}=S(),[u,y]=r.useState(),[l,b]=r.useState(""),[o,j]=r.useState(""),[v,x]=r.useState([]),c=m({queryKey:["my-assets"],queryFn:()=>h.assets("asset"),staleTime:300*1e3,gcTime:600*1e3}),t=m({queryKey:["my-assets-group-tree"],queryFn:()=>h.getAssetsGroupTree(),staleTime:600*1e3});r.useEffect(()=>{c.data&&y(c.data)},[c.data]);const p=r.useMemo(()=>t.data?T(t.data):[],[t.data]);r.useEffect(()=>{p.length>0&&x(p)},[p]);const N=r.useCallback(s=>{b(s.toLowerCase())},[]),g=r.useMemo(()=>{let s=u||[];if(o&&o!==""&&t.data){const a=K(t.data,o);s=s.filter(d=>L(d.groupId,a))}return A.hasText(l)&&(s=s.filter(a=>a.name.toLowerCase().includes(l)||a.alias&&a.alias.toLowerCase().includes(l)||a.address.toLowerCase().includes(l)||a.protocol.toLowerCase().includes(l)?!0:a.tags?.some(d=>d.toLowerCase().includes(l)))),s},[u,o,l,t.data]),f=r.useMemo(()=>o&&t.data?G(t.data,o):null,[o,t.data]),w=r.useCallback(s=>{const a=s.id,d=s.protocol;let i="";if(d==="http")i=`/browser?websiteId=${a}&t=${new Date().getTime()}`;else if(E()&&d==="ssh")i=`/mobile-terminal?assetId=${a}&t=${new Date().getTime()}`;else{const C={id:a,name:s.name,protocol:s.protocol,status:s.status,wolEnabled:s.attrs?.["wol-enabled"]||!1};i=`/access?asset=${F(C)}`}return e.jsx("a",{href:i,target:"_blank",rel:"noopener noreferrer",className:"group block cursor-pointer focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-blue-500/20 rounded-xl",children:e.jsx(I,{item:s,type:"asset"})},s.id)},[]);return e.jsx("div",{className:"pb-6",children:e.jsxs("div",{className:"lg:px-20 px-4",children:[e.jsx("div",{className:"lg:py-6 py-4",children:e.jsxs("div",{className:"rounded-2xl border border-slate-200/70 dark:border-slate-700/70 p-4 lg:p-5",children:[e.jsx("div",{className:"flex flex-col lg:flex-row lg:items-center lg:justify-between gap-3",children:e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsx("div",{className:"text-xl font-bold text-slate-900 dark:text-slate-100",children:n("menus.resource.submenus.asset")}),f&&e.jsx("div",{className:"flex flex-wrap gap-2",children:e.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full bg-slate-100 dark:bg-slate-800/70 px-2.5 py-1 text-xs font-medium text-slate-600 dark:text-slate-200",children:[n("assets.group")," · ",f.title]})})]})}),e.jsx("div",{className:"pt-3",children:e.jsx($,{value:l,onChange:N,resultCount:g.length,totalCount:u?.length||0,placeholder:n("facade.asset_placeholder")})})]})}),e.jsxs("div",{className:"grid lg:grid-cols-[240px_1fr] gap-4",children:[e.jsx(q,{title:n("assets.group"),treeData:t.data,selectedKey:o,onSelect:j,expandedKeys:v,onExpand:x,loading:t.isLoading}),e.jsx("div",{className:"rounded-lg",children:c.isLoading?e.jsx("div",{className:"grid 2xl:grid-cols-5 lg:grid-cols-4 lg:gap-6 grid-cols-1 gap-2",children:e.jsx(M,{count:8})}):g.length===0?e.jsx(k,{}):e.jsx("div",{className:"grid 2xl:grid-cols-5 lg:grid-cols-4 lg:gap-6 grid-cols-1 gap-2",children:g.map(s=>w(s))})})]})]})})};export{z as default}; diff --git a/server/resource/build/assets/AssetGatewayChoose-4vUjpk3C.js b/server/resource/build/assets/AssetGatewayChoose-4vUjpk3C.js deleted file mode 100644 index 810abaa6f..000000000 --- a/server/resource/build/assets/AssetGatewayChoose-4vUjpk3C.js +++ /dev/null @@ -1 +0,0 @@ -import{v as y,u as v,e as r}from"./index-DQXwuKC5.js";import{aI as _,f as c,S as t,au as x,a_ as b,ay as m,av as A}from"./antd-Afm2kNt7.js";import{a as j}from"./asset-api-1abjsV5s.js";import{w as M}from"./website-api-CiGWjL7L.js";import{a as G}from"./agent-gateway-api-C9ZaxlKW.js";import{s as q}from"./ssh-gateway-api-D4569Eil.js";import{g as S}from"./gateway-group-api-nxpckHkj.js";const C=[["path",{d:"M11 10.27 7 3.34",key:"16pf9h"}],["path",{d:"m11 13.73-4 6.93",key:"794ttg"}],["path",{d:"M12 22v-2",key:"1osdcq"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M14 12h8",key:"4f43i9"}],["path",{d:"m17 20.66-1-1.73",key:"eq3orb"}],["path",{d:"m17 3.34-1 1.73",key:"2wel8s"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"m20.66 17-1.73-1",key:"sg0v6f"}],["path",{d:"m20.66 7-1.73 1",key:"1ow05n"}],["path",{d:"m3.34 17 1.73-1",key:"nuk764"}],["path",{d:"m3.34 7 1.73 1",key:"1ulond"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["circle",{cx:"12",cy:"12",r:"8",key:"46899m"}]],z=y("cog",C);const P=[["path",{d:"M16 16h6",key:"100bgy"}],["path",{d:"M19 13v6",key:"85cyf1"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]],D=y("package-plus",P);const I=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],O=y("panel-left-close",I);const N=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]],R=y("panel-left-open",N);const F=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],V=y("plus",F),H=({resourceIds:h,type:i,open:n,onClose:p})=>{let{t:e}=v(),{message:k}=_.useApp();const[a,d]=c.useState(""),[l,o]=c.useState(void 0);let g=r({queryKey:["agent-gateways/all"],queryFn:()=>G.getAll()}),u=r({queryKey:["ssh-gateways/all"],queryFn:()=>q.getAll()}),w=r({queryKey:["gateway-groups/all"],queryFn:()=>S.getAll()});c.useEffect(()=>{n?(g.refetch(),u.refetch(),w.refetch()):(d(""),o(void 0))},[n]);const f=async()=>{try{i==="asset"?await j.changeGateway({assetIds:h,gatewayType:a,gatewayId:l}):i==="website"&&await M.changeGateway({websiteIds:h,gatewayType:a,gatewayId:l}),k.success(e("general.success")),p()}catch(s){console.error("Failed to update gateways:",s)}};return t.jsx(x,{title:e("assets.change_gateway"),onClose:p,open:n,width:400,children:t.jsxs(b,{direction:"vertical",style:{width:"100%"},size:"large",children:[t.jsxs("div",{children:[t.jsx("div",{style:{marginBottom:8},children:t.jsx("label",{children:e("assets.gateway_type")})}),t.jsx(m,{style:{width:"100%"},placeholder:e("assets.select_gateway_type"),value:a,onChange:s=>{d(s),o(void 0)},options:[{label:e("menus.gateway.submenus.ssh_gateway"),value:"ssh"},{label:e("menus.gateway.submenus.agent_gateway"),value:"agent"},{label:e("menus.gateway.submenus.gateway_group"),value:"group"}]})]}),a&&t.jsxs("div",{children:[t.jsx("div",{style:{marginBottom:8},children:t.jsxs("label",{children:[a==="ssh"&&e("menus.gateway.submenus.ssh_gateway"),a==="agent"&&e("menus.gateway.submenus.agent_gateway"),a==="group"&&e("menus.gateway.submenus.gateway_group")]})}),t.jsx(m,{style:{width:"100%"},placeholder:e(a==="ssh"?"assets.select_ssh_gateway":a==="agent"?"assets.select_agent_gateway":"assets.select_gateway_group"),value:l,onChange:o,showSearch:!0,options:[...(a==="ssh"?u.data:a==="agent"?g.data:w.data||[]).map(s=>({label:s.name,value:s.id}))]})]}),t.jsx(A,{type:"primary",onClick:f,disabled:!a||!l,style:{width:"100%"},children:e("actions.confirm")})]})})};export{H as A,z as C,V as P,D as a,R as b,O as c}; diff --git a/server/resource/build/assets/AssetPage-BJD5muIt.js b/server/resource/build/assets/AssetPage-BJD5muIt.js deleted file mode 100644 index 690231ae6..000000000 --- a/server/resource/build/assets/AssetPage-BJD5muIt.js +++ /dev/null @@ -1 +0,0 @@ -import{f as c,S as e,U as Ie,aK as je,aT as k,b2 as ae,aP as we,aC as Ce,au as _e,aI as ce,bs as Z,bJ as ve,bK as ke,aL as L,aU as de,av as B,c0 as Ae,bl as Te,bO as U,aM as oe,bH as V,b4 as Pe,aN as he,T as Fe,c1 as Ne,a_ as ue,aO as Re,bY as qe,aV as me,bA as Ee,c2 as Oe,c3 as De,bi as ne,c4 as le,bI as Ke,bp as ge,bz as xe}from"./antd-Afm2kNt7.js";import{u as N,d as ze,e as re,T as Se,B as Ge,g as Le,h as ie,M as Me,m as Ue,w as $e,b as Be,a as Ve,C as We,x as ee,E as He,F as Ye,G as Qe,H as Xe}from"./index-DQXwuKC5.js";import{a as S}from"./asset-api-1abjsV5s.js";import{N as J}from"./NButton-DoPcvKBF.js";import{P as Je,C as Ze,a as es,b as ss,c as ts,A as as}from"./AssetGatewayChoose-4vUjpk3C.js";import{c as ye}from"./charts-DWBuA5Za.js";import{a as rs}from"./agent-gateway-api-C9ZaxlKW.js";import{s as ns}from"./ssh-gateway-api-D4569Eil.js";import{g as ls}from"./gateway-group-api-nxpckHkj.js";import{U as os}from"./upload-D4kD-YfJ.js";import{c as is}from"./credential-api-DP_sN2cX.js";import{s as cs}from"./storage-api-CDrFMJhC.js";import{g as ds}from"./sort-BOdE-yay.js";import"./monaco-CA9D5Osg.js";import"./xterm-Buno8AXJ.js";import"./website-api-CiGWjL7L.js";const us=({open:t,handleOk:a,handleCancel:p,confirmLoading:d,op:o,node:h={title:"",key:"",children:[]}})=>{const x=c.useRef(null);let{t:y}=N();const u=c.useRef(null);c.useEffect(()=>{t&&setTimeout(()=>{u.current?.focus()},300)},[t]);const b=async()=>h,j=()=>{x.current?.validateFields().then(async m=>{a(m)})};return e.jsx("div",{children:e.jsx(Ie,{title:y(o==="edit"?"actions.edit":"actions.new"),open:t,maskClosable:!1,destroyOnHidden:!0,onOk:()=>{j()},onCancel:()=>{p()},confirmLoading:d,children:e.jsxs(je,{formRef:x,request:b,submitter:!1,autoFocus:!0,children:[e.jsx(k,{hidden:!0,name:"key"}),e.jsx(k,{name:"title",label:y("general.name"),rules:[{required:!0}],fieldProps:{ref:u,onPressEnter:m=>{j()}}})]})})})},fe=({selected:t,onSelect:a})=>{let{t:p}=N();const[d,o]=c.useState([]);let[h,x]=c.useState(!1),[y,u]=c.useState(),[b,j]=c.useState(),[m,C]=c.useState(),[w,T]=c.useState([]),[D,K]=c.useState([]);const[Y]=ze();let R=re({queryKey:["assets/tree"],queryFn:S.getGroups});c.useEffect(()=>{K(t?["group_"+t]:[])},[t]),c.useEffect(()=>{if(Array.isArray(R.data)&&R.data.length>0){o(R.data);let s=z(R.data);T(s)}},[R.data]);const z=s=>{let g=[];return Array.isArray(s)&&s.forEach(I=>{g.push(I.key),I.children&&(g=g.concat(z(I.children)))}),g},E=s=>{S.setGroups(s).then(()=>{o(s)})},M=s=>{const g=s.node.key,I=s.dragNode.key;if(I==="default")return;const _=s.node.pos.split("-"),X=s.dropPosition-Number(_[_.length-1]),W=(v,n,l)=>{for(let f=0;f{l.splice(n,1),$=v}),!s.dropToGap)W(H,g,v=>{v.children=v.children||[],v.children.unshift($)});else{let v=[],n;W(H,g,(l,f,q)=>{v=q,n=f}),X===-1?v.splice(n,0,$):v.splice(n+1,0,$)}E(H)},i=(s,g,I)=>g.map(_=>_.key===s?(_.title=I.title,_):(_.children&&(_.children=i(s,_.children,I)),_)),G=(s,g,I)=>s?g.map(_=>(_.key===s&&(_.children=_.children?[..._.children,I]:[I]),_.children&&(_.children=G(s,_.children,I)),_)):(g.push(I),g),[P,F]=c.useState(null),Q=[{label:p("actions.new"),key:"add",icon:e.jsx(Je,{className:"h-4 w-4"}),onClick:()=>{u(P.node.key),j(void 0),x(!0),C("add")}},{label:p("actions.edit"),key:"edit",icon:e.jsx(Ze,{className:"h-4 w-4"}),onClick:()=>{u(P.node.key),j(P.node),x(!0),C("edit")}},{label:p("actions.delete"),key:"delete",danger:!0,icon:e.jsx(Se,{className:"h-4 w-4"}),onClick:()=>{let s=P.node.key;s.startsWith("group_")&&(s=s.substring(6)),S.deleteGroup(s).then(()=>{R.refetch()})}}],r=({event:s,node:g})=>{g.key==="default"||g.key?.toString().startsWith("asset_")||(s.preventDefault(),F({pageX:s.pageX,pageY:s.pageY,node:g}))};return e.jsxs("div",{children:[e.jsx("div",{className:"px-4 pt-4 flex items-center justify-between",children:e.jsxs("div",{className:"font-medium text-[15px] flex items-center gap-2",children:[e.jsx(ae,{title:p("actions.new"),children:e.jsx(es,{className:"h-4 w-4 cursor-pointer",onClick:()=>{u(void 0),j(void 0),x(!0),C("add")}})}),e.jsx(ae,{title:p("assets.group_tip"),children:e.jsx("div",{className:"cursor-pointer",children:p("assets.group")})})]})}),e.jsx(we,{draggable:!0,blockNode:!0,onDrop:M,treeData:d,expandedKeys:w,onExpand:T,style:{backgroundColor:Y.isDark?Y.backgroundColor:"#F9FAFB",padding:8},selectedKeys:D,onSelect:s=>{K(s),s.length>0?a(s[0]):a("")},onRightClick:r}),P&&e.jsx(Ce,{menu:{items:Q},open:!0,trigger:["contextMenu"],onOpenChange:s=>!s&&F(null),overlayStyle:{position:"absolute",left:P.pageX,top:P.pageY},children:e.jsx("div",{style:{position:"fixed",top:P.pageY,left:P.pageX,width:0,height:0}})}),e.jsx(us,{op:m,open:h,confirmLoading:!1,node:b,handleCancel:()=>{x(!1),u(void 0)},handleOk:s=>{let g=[];s.key?g=i(s.key,d,s):(s.key="AG_"+Ge(),s.children=[],g=G(y,d,s)),console.log("newTreeData",y,s,g),E([...g]),x(!1),u(void 0)}})]})},ps=({assetIds:t,open:a,onClose:p})=>{let{t:d}=N();const[o,h]=c.useState([]);let[x,y]=c.useState([]),[u,b]=c.useState(""),j=re({queryKey:["assets/groups"],queryFn:S.getGroups});c.useEffect(()=>{a?j.refetch():b("")},[a]),c.useEffect(()=>{if(Array.isArray(j.data)&&j.data.length>0){h(j.data);let w=m(j.data);y(w)}},[j.data]);const m=w=>{let T=[];return Array.isArray(w)&&w.forEach(D=>{T.push(D.key),D.children&&(T=T.concat(m(D.children)))}),T},C=w=>{S.changeGroup({assetIds:t,groupId:w}).then(()=>{p()})};return e.jsx("div",{children:e.jsx(_e,{title:d("assets.change_group"),onClose:p,open:a,children:e.jsx(we,{blockNode:!0,treeData:o,expandedKeys:x,onExpand:y,selectedKeys:[u],style:{padding:4},onSelect:w=>{w&&w.length>0&&(b(w[0]),C(w[0]))}})})})},hs=({value:t,onChange:a})=>{const{t:p}=N(),{message:d}=ce.useApp(),[o,h]=c.useState(t||""),x=re({queryKey:["get-logos"],queryFn:S.getLogos});c.useEffect(()=>{h(t||"")},[t]);const y=m=>{h(m),a?.(m)},u=m=>m.size/1024/1024?!0:(d.error("Image must smaller than 1MB!"),!1),b=({file:m})=>{const C=new FileReader;m&&(C.readAsDataURL(m),C.onloadend=function(){const w=C.result;y(w)})},j=()=>e.jsx("div",{children:e.jsxs("div",{className:"grid grid-cols-8 gap-2",children:[Array.isArray(x.data)?x.data.map(m=>e.jsx("div",{className:"h-10 w-10 rounded-lg cursor-pointer border p-2",onClick:()=>y(m.data),children:e.jsx("img",{src:m.data,alt:m.name},m.name)},m.name)):[],e.jsx("div",{className:"h-10 w-10 rounded-lg cursor-pointer border p-2 border-dashed border-red-500 flex items-center justify-center",onClick:()=>y(""),children:e.jsx(Se,{className:"text-red-500 h-4 w-4"})}),e.jsx(ke,{maxCount:1,showUploadList:!1,customRequest:b,beforeUpload:u,children:e.jsx("div",{className:"h-10 w-10 rounded-lg cursor-pointer border p-2 border-dashed border-blue-500 flex items-center justify-center",children:e.jsx(os,{className:"text-blue-500 h-4 w-4"})})})]})});return e.jsx(Z.Item,{name:"logo",label:p("assets.logo"),children:e.jsx(ve,{placement:"rightTop",content:j(),children:e.jsx("div",{className:"w-10 h-10 border border-dashed rounded-lg p-2 flex items-center justify-center cursor-pointer hover:border-blue-500",children:o?e.jsx("img",{className:"",src:o,alt:"logo"}):""})})})},ms=({accountType:t,protocol:a,assetId:p,copy:d,decrypted:o,setDecrypted:h,onViewSecret:x,formRef:y})=>{const{t:u}=N();if(t==="credential")return e.jsx(L,{label:u("menus.resource.submenus.credential"),name:"credentialId",rules:[{required:!0}],request:async()=>(await is.getAll()).map(j=>({label:j.name,value:j.id})),showSearch:!0});switch(t){case"password":return e.jsxs(e.Fragment,{children:[e.jsx(k,{label:u("menus.identity.submenus.user"),name:"username"}),e.jsx(k.Password,{label:u("assets.password"),name:"password",fieldProps:{placeholder:p&&!d?"******":void 0,iconRender:b=>b?e.jsx(Ae,{}):e.jsx(Te,{}),visibilityToggle:{onVisibleChange:b=>{p&&!d&&b&&!o&&x()}}}})]});case"private-key":return e.jsxs(e.Fragment,{children:[e.jsx(k,{label:u("menus.identity.submenus.user"),name:"username",rules:[{required:!0}]}),e.jsx(de,{label:u("assets.private_key"),name:"privateKey",rules:[{required:!0}],fieldProps:{rows:4,allowClear:!0,placeholder:p&&!d?"******":void 0}}),e.jsx(Z.Item,{label:null,children:e.jsx("div",{className:"-mt-2",children:e.jsx(B,{color:"purple",variant:"filled",onClick:x,children:u("actions.view_private_key")})})}),e.jsx(k.Password,{label:u("assets.passphrase"),name:"passphrase",fieldProps:{placeholder:p&&!d?"******":void 0}})]});default:return null}},be=({protocol:t})=>{const{t:a}=N();return e.jsxs(e.Fragment,{children:[e.jsx(L,{name:["attrs","color-depth"],label:a("assets.color_depth"),fieldProps:{options:[{value:"",label:a("general.default")},{value:"8",label:"8"},{value:"16",label:"16"},{value:"24",label:"24"},{value:"32",label:"32"}]}}),e.jsx(U,{name:["attrs","force-lossless"],label:a("assets.force_lossless")}),e.jsx(oe,{name:["attrs","width"],label:a("assets.width"),fieldProps:{precision:0}}),e.jsx(oe,{name:["attrs","height"],label:a("assets.height"),fieldProps:{precision:0}}),t==="rdp"&&e.jsxs(e.Fragment,{children:[e.jsx(L,{name:["attrs","resize-method"],label:a("assets.resize_method"),fieldProps:{options:[{value:"",label:a("general.default")},{value:"display-update",label:a("assets.resize_methods.display_update")},{value:"reconnect",label:a("assets.resize_methods.reconnect")}]}}),e.jsx(V,{name:[["attrs","resize-method"]],children:({attrs:p})=>{const d=p?.["resize-method"];let o=a("assets.resize_method_extra");switch(d){case"display-update":o=a("assets.resize_methods.display_update_desc");break;case"reconnect":o=a("assets.resize_methods.reconnect_desc");break;default:o=a("assets.resize_method_extra")}return e.jsx("div",{style:{marginTop:"-16px",marginBottom:"16px",marginLeft:"calc(16.666667% + 8px)",fontSize:"12px",color:"#666"},children:o})}})]})]})},gs=()=>{const{t}=N();return e.jsxs(e.Fragment,{children:[e.jsx(L,{name:["attrs","security"],label:t("assets.security.mode"),fieldProps:{options:[{value:"any",label:t("assets.security.modes.any")},{value:"nla",label:t("assets.security.modes.nla")},{value:"nla-ext",label:t("assets.security.modes.nla_ext")},{value:"tls",label:t("assets.security.modes.tls")},{value:"vmconnect",label:t("assets.security.modes.vmconnect")},{value:"rdp",label:t("assets.security.modes.rdp")}]}}),e.jsx(V,{name:[["attrs","security"]],children:({attrs:a})=>{const p=a?.security;let d=t("assets.security.mode_extra");switch(p){case"any":d=t("assets.security.modes.any_desc");break;case"nla":d=t("assets.security.modes.nla_desc");break;case"nla-ext":d=t("assets.security.modes.nla_ext_desc");break;case"tls":d=t("assets.security.modes.tls_desc");break;case"vmconnect":d=t("assets.security.modes.vmconnect_desc");break;case"rdp":d=t("assets.security.modes.rdp_desc");break;default:d=t("assets.security.mode_extra")}return e.jsx("div",{style:{marginTop:"-16px",marginBottom:"16px",marginLeft:"calc(16.666667% + 8px)",fontSize:"12px",color:"#666"},children:d})}}),e.jsx(U,{name:["attrs","ignore-cert"],label:t("assets.security.ignore_cert"),extra:t("assets.security.ignore_cert_extra")}),e.jsx(U,{name:["attrs","cert-tofu"],label:t("assets.security.cert_tofu"),extra:t("assets.security.cert_tofu_extra")}),e.jsx(k,{name:["attrs","cert-fingerprints"],label:t("assets.security.cert_fingerprints"),extra:t("assets.security.cert_fingerprints_extra"),placeholder:t("assets.security.cert_fingerprints_placeholder")}),e.jsx(U,{name:["attrs","disable-auth"],label:t("assets.security.disable_auth"),extra:t("assets.security.disable_auth_extra")})]})},se=()=>{const{t}=N();return e.jsxs(e.Fragment,{children:[e.jsx(U,{name:["attrs","wol-enabled"],label:t("assets.wol.enabled"),tooltip:t("assets.wol.settings")}),e.jsx(V,{name:["attrs","wol-enabled"],children:a=>!a.attrs||!a.attrs["wol-enabled"]?null:e.jsxs(e.Fragment,{children:[e.jsx(k,{name:["attrs","wol-mac-addr"],label:t("assets.wol.mac_addr"),placeholder:t("assets.wol.mac_addr_placeholder"),rules:[{pattern:/^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/,message:t("assets.wol.mac_addr_invalid")}]}),e.jsx(k,{name:["attrs","wol-broadcast"],label:t("assets.wol.broadcast"),placeholder:t("assets.wol.broadcast_placeholder"),initialValue:"255.255.255.255"}),e.jsx(oe,{name:["attrs","wol-wakeup-delay"],label:t("assets.wol.wakeup_delay"),placeholder:t("assets.wol.wakeup_delay_placeholder"),tooltip:t("assets.wol.wakeup_delay_tooltip"),min:0,max:300,initialValue:30,fieldProps:{addonAfter:t("general.second")}})]})})]})},xs=({protocol:t})=>{const{t:a}=N(),p=()=>[{key:"security_settings",label:a("assets.security.settings"),forceRender:!0,children:e.jsx(gs,{})},{key:"display_settings",label:a("assets.display_settings"),children:e.jsx(be,{protocol:"rdp"})},{key:"audio_settings",label:a("assets.audio_settings"),forceRender:!0,children:e.jsxs(e.Fragment,{children:[e.jsx(U,{name:["attrs","disable-audio"],label:a("assets.disable_audio")}),e.jsx(U,{name:["attrs","enable-audio-input"],label:a("assets.enable_audio_input")})]})},{key:"domain",label:a("assets.rdp_domain"),forceRender:!0,children:e.jsx(k,{name:["attrs","domain"],label:a("assets.rdp_domain")})},{key:"PDU",label:"PDU",forceRender:!0,children:e.jsxs(e.Fragment,{children:[e.jsx(k,{name:["attrs","preconnection-id"],label:a("assets.preconnection_id")}),e.jsx(k,{name:["attrs","preconnection-blob"],label:a("assets.preconnection_blob")})]})},{key:"remote-app",label:"Remote App",forceRender:!0,children:e.jsxs(e.Fragment,{children:[e.jsx(k,{name:["attrs","remote-app"],label:a("assets.remote_app")}),e.jsx(k,{name:["attrs","remote-app-dir"],label:a("assets.remote_app_dir")}),e.jsx(k,{name:["attrs","remote-app-args"],label:a("assets.remote_app_args")})]})},{key:"rdp-drive",label:a("assets.rdp_drive"),forceRender:!0,children:e.jsxs(e.Fragment,{children:[e.jsx(U,{name:["attrs","enable-drive"],checkedChildren:a("general.enabled"),unCheckedChildren:a("general.disabled"),label:a("assets.rdp_drive")}),e.jsx(L,{name:["attrs","drive-path"],label:a("assets.rdp_drive_path"),extra:a("assets.rdp_drive_path_extra"),request:async()=>(await cs.getShares()).map(u=>({label:u.name,value:u.id}))})]})},{key:"wol-settings",label:a("assets.wol.settings"),forceRender:!0,children:e.jsx(se,{})}],d=()=>[{key:"display_settings",label:a("assets.display_settings"),children:e.jsx(be,{protocol:"vnc"})},{key:"wol-settings",label:a("assets.wol.settings"),children:e.jsx(se,{})}],o=()=>[{key:"wol-settings",label:a("assets.wol.settings"),children:e.jsx(se,{})}],h=()=>[{label:a("assets.terminal_settings"),key:"terminal_settings",forceRender:!0,children:e.jsxs("div",{children:[e.jsx(he,{name:["attrs","disableAliveCheck"],label:a("assets.disable_alive_check"),extra:a("assets.disable_alive_check_extra")}),e.jsx(he,{name:["attrs","disableDetectOS"],label:a("assets.disable_detect_os"),extra:a("assets.disable_detect_os_extra")}),e.jsx(de,{label:a("assets.env"),name:["attrs","env"],placeholder:a("assets.env_placeholder"),fieldProps:{rows:4,allowClear:!0}})]})},{key:"wol-settings",label:a("assets.wol.settings"),forceRender:!0,children:e.jsx(se,{})}],x=()=>{switch(t){case"rdp":return p();case"vnc":return d();case"telnet":return o();case"ssh":return h();default:return[]}};return t?e.jsx(Pe,{items:x()}):null},ys={labelCol:{span:4},wrapperCol:{span:10}},fs=function({assetId:t,groupId:a,copy:p,onClose:d}){let{t:o}=N();const h=c.useRef(null);let[x,y]=c.useState(),[u,b]=c.useState(!1),[j,m]=c.useState(!1),[C,w]=c.useState(!1),{message:T}=ce.useApp();c.useEffect(()=>{Le.getSecurityTokenSupportTypes().then(r=>{w(r.length>0)})},[]);const D=async()=>{if(C)m(!0);else{const r=await S.decrypt(t,"");h.current?.setFieldsValue({password:r.password,privateKey:r.privateKey,passphrase:r.passphrase}),b(!0)}},K=async()=>{if(t){let r=await S.getById(t);return console.log("Asset data from API:",r),console.log("accessGatewayId:",r.accessGatewayId),Ue.hasText(r.logo)&&y(r.logo),p===!0&&(r.password="",r.privateKey="",r.passphrase="",r.alias=""),typeof r.tags=="string"&&r.tags?r.tags=r.tags.split(",").filter(s=>s):r.tags||(r.tags=[]),r.accessGatewayId&&r.accessGatewayId!=="-"&&(r.gatewayType="ssh",console.log("Setting gatewayType to ssh")),console.log("Asset data after processing:",r),r}return{protocol:"ssh",port:22,accountType:"password",attrs:{"disable-audio":!0,"enable-drive":!0,security:"any","ignore-cert":!0},groupId:a,tags:[]}};let R=ie({mutationFn:async r=>{r.logo=x,Array.isArray(r.tags)&&(r.tags=r.tags.join(",")),r.gatewayType||(r.accessGatewayId="-"),delete r.gatewayType,!p&&r.id?await S.updateById(r.id,r):(delete r.id,await S.create(r))},onSuccess:()=>{T.success(o("general.success")),d&&d()}});const z=async r=>{h.current?.validateFields().then(()=>{R.mutate(r)})},E=r=>r==="telnet"?null:e.jsxs(e.Fragment,{children:[e.jsx(me.Group,{label:o("assets.account_type"),name:"accountType",rules:[{required:!0}],options:[{label:o("assets.password"),value:"password"},{label:o("assets.private_key"),value:"private-key",disabled:r!=="ssh"},{label:o("menus.resource.submenus.credential"),value:"credential"}]}),e.jsx(V,{name:["accountType"],children:({accountType:s})=>e.jsx(ms,{accountType:s,protocol:r,assetId:t,copy:p,decrypted:u,setDecrypted:b,onViewSecret:D,formRef:h})})]}),M=r=>r.map(s=>{const g={title:s.title,value:s.key,children:[]};return s.children&&(g.children=M(s.children)),g}),{token:i}=Fe.useToken(),G={marginBottom:24,background:i.colorFillAlter,borderRadius:i.borderRadiusLG,border:"none"},P=async()=>(await ns.getAll()).map(s=>({label:s.name,value:s.id})),F=async()=>(await rs.getAll()).map(s=>({label:s.name,value:s.id})),Q=async()=>(await ls.getAll()).map(s=>({label:s.name,value:s.id}));return e.jsxs("div",{className:"px-4",children:[e.jsxs(je,{...ys,formRef:h,layout:"horizontal",request:K,onFinish:z,children:[e.jsx(k,{hidden:!0,name:"id"}),e.jsx(hs,{value:x,onChange:y}),e.jsx(k,{name:"name",label:o("general.name"),rules:[{required:!0}]}),e.jsx(k,{name:"alias",label:o("assets.alias"),placeholder:o("assets.alias_placeholder"),extra:o("assets.alias_tip"),rules:[{pattern:/^[A-Za-z][A-Za-z0-9_-]*$/,message:o("assets.alias_invalid")}]}),e.jsx(Ne,{label:o("assets.protocol"),name:"protocol",rules:[{required:!0}],valueEnum:{ssh:"SSH",rdp:"RDP",vnc:"VNC",telnet:"Telnet"},fieldProps:{onChange:r=>{let s=0;switch(r){case"rdp":s=3389;break;case"vnc":s=5900;break;case"ssh":s=22;break;case"telnet":s=23;break}h.current.setFieldsValue({port:s})}}}),e.jsx(Z.Item,{label:o("assets.addr"),className:"nesting-form-item",children:e.jsxs(ue.Compact,{block:!0,children:[e.jsx(Z.Item,{noStyle:!0,name:"ip",rules:[{required:!0}],children:e.jsx(Re,{style:{width:"70%"},placeholder:"127.0.0.1",onKeyDown:r=>{r.key===" "&&r.preventDefault()}})}),e.jsx(Z.Item,{noStyle:!0,name:"port",rules:[{required:!0}],children:e.jsx(qe,{style:{width:"30%"},min:1,max:65535,placeholder:"0"})})]})}),e.jsx(V,{name:["protocol"],children:({protocol:r})=>E(r)}),e.jsx(me.Group,{label:o("assets.gateway_type"),name:"gatewayType",options:[{label:o("assets.no_gateway"),value:""},{label:o("menus.gateway.submenus.ssh_gateway"),value:"ssh"},{label:o("menus.gateway.submenus.agent_gateway"),value:"agent"},{label:o("menus.gateway.submenus.gateway_group"),value:"group"}]}),e.jsx(V,{name:["gatewayType"],children:({gatewayType:r})=>(console.log("ProFormDependency gatewayType:",r),r==="ssh"?e.jsx(L,{label:o("menus.gateway.submenus.ssh_gateway"),name:"accessGatewayId",request:P,params:{gatewayType:r},showSearch:!0,rules:[{required:!0}],debounceTime:0,convertValue:s=>{if(s&&s!=="-")return{value:s,label:s}}},"ssh"):r==="agent"?e.jsx(L,{label:o("menus.gateway.submenus.agent_gateway"),name:"accessGatewayId",request:F,params:{gatewayType:r},showSearch:!0,rules:[{required:!0}],debounceTime:0,convertValue:s=>{if(s&&s!=="-")return{value:s,label:s}}},"agent"):r==="group"?e.jsx(L,{label:o("menus.gateway.submenus.gateway_group"),name:"accessGatewayId",request:Q,params:{gatewayType:r},showSearch:!0,rules:[{required:!0}],convertValue:s=>{if(s&&s!=="-")return{value:s,label:s}}},"group"):null)}),e.jsx(L,{label:o("assets.tags"),name:"tags",fieldProps:{mode:"tags"},request:async()=>(await S.getTags()).map(s=>({label:s,value:s})),showSearch:!0}),e.jsx(Ee,{name:"groupId",label:o("assets.group"),allowClear:!0,request:async()=>{let r=await S.getGroups();return M(r)},fieldProps:{treeDefaultExpandAll:!0}}),e.jsx(de,{label:o("general.remark"),name:"description",fieldProps:{rows:4}}),e.jsx(Oe,{defaultActiveKey:["advanced_setting"],ghost:!0,expandIcon:({isActive:r})=>e.jsx(De,{rotate:r?90:0}),style:{background:i.colorBgContainer},items:[{label:o("assets.advanced_setting"),key:"advanced_setting",children:e.jsx(V,{name:["protocol"],children:({protocol:r})=>e.jsx(xs,{protocol:r})}),style:G}]})]}),e.jsx(Me,{open:j,handleOk:async r=>{const s=await S.decrypt(t,r);h.current?.setFieldsValue({password:s.password,privateKey:s.privateKey,passphrase:s.passphrase}),b(!0),m(!1)},handleCancel:()=>m(!1)})]})},bs=({open:t,onClose:a,assetId:p,groupId:d,copy:o})=>{let{t:h}=N();const x=c.useRef(null);let y=h(p?"actions.edit":"actions.new");o&&(y=h("actions.copy"));const u=1200,b=()=>{const m=x.current?.querySelector("form");if(m){if(typeof m.requestSubmit=="function"){m.requestSubmit();return}m.dispatchEvent(new Event("submit",{bubbles:!0,cancelable:!0}))}},j=e.jsxs(ue,{size:8,children:[e.jsx(B,{onClick:a,children:h("actions.cancel")}),e.jsx(B,{type:"primary",onClick:b,children:h("actions.save")})]});return e.jsx("div",{children:e.jsx(_e,{title:y,extra:j,onClose:a,open:t,width:u,destroyOnHidden:!0,children:e.jsx("div",{ref:x,children:e.jsx(fs,{assetId:p,groupId:d,copy:o,onClose:a})})})})},te=S;function js(){Qe(`${Xe()}/admin/assets/sample`)}const Ds=()=>{const{isMobile:t}=$e(),a=c.useRef(null);let[p,d]=Be();const o=c.useMemo(()=>{const n={};return p.forEach((l,f)=>{n[f]=l}),n},[p]),h=c.useCallback(n=>{const l={...o};Object.entries(n).forEach(([A,O])=>{O?l[A]=O:delete l[A]}),!(Object.keys(l).length===Object.keys(o).length&&Object.entries(l).every(([A,O])=>o[A]===O))&&d(l)},[o,d]);let[x,y]=c.useState([]),[u,b]=c.useState(p.get("groupId")||""),[j,m]=c.useState([]);const C=n=>{n.startsWith("group_")?b(n.substring(6)):n.startsWith("asset_")?b(""):b(n)};let[w,T]=c.useState([]),[D,K]=c.useState(!1),[Y,R]=c.useState(!1),[z,E]=c.useState({open:!1,assetId:void 0,groupId:void 0,copy:!1}),M=Ve(),{t:i}=N(),{modal:G,message:P}=ce.useApp();const[F,Q]=c.useState(()=>{const n=localStorage.getItem("asset-tree-collapsed");return n?JSON.parse(n):!1}),r=o.assetId;c.useEffect(()=>{localStorage.setItem("asset-tree-collapsed",JSON.stringify(F))},[F]),c.useEffect(()=>{r&&E(n=>n.open&&n.assetId===r?n:{open:!0,assetId:r,groupId:n.groupId,copy:!1})},[r]),c.useEffect(()=>{h({groupId:u||void 0}),a.current?.setPageInfo({pageSize:10,current:1}),a.current?.reload()},[h,u]);const s=re({queryKey:["tags"],queryFn:S.getTags,refetchOnWindowFocus:!1}),g=Array.isArray(s.data)?s.data.filter(n=>n!=="-"):[];c.useEffect(()=>{a.current?.setPageInfo({current:1}),a.current?.reload()},[w]);let I=ie({mutationFn:S.checking,onSuccess:()=>{a.current?.reload()}});ie({mutationFn:n=>S.updateSortPosition(n),onSuccess:()=>{P.success(i("general.success"))}});const _=e.jsxs(e.Fragment,{children:[e.jsx(J,{onClick:js,children:i("actions.download_import_sample")}),e.jsx("div",{children:i("assets.import_asset_tip")})]}),X=(n,l)=>{E({open:!0,assetId:n,groupId:l?.groupId,copy:l?.copy??!1}),h({assetId:n})},W=[{title:i("assets.sort"),dataIndex:"sort",width:60,className:"drag-visible",hideInSearch:!0,fixed:"left"},{title:i("assets.logo"),dataIndex:"logo",hideInSearch:!0,width:t?40:60,render:(n,l)=>l.logo?e.jsx("img",{src:l.logo,alt:l.name,className:"w-6 h-6"}):e.jsx("div",{className:ye("w-6 h-6 rounded flex items-center justify-center font-bold text-white text-xs",We(l.protocol)),children:l.name[0]}),fixed:"left"},{title:i("general.name"),dataIndex:"name",sorter:!0,hideInSearch:!0,width:t?120:200,render:(n,l)=>{const f=()=>X(l.id,{groupId:l.groupId});return e.jsxs("div",{className:"flex flex-col",children:[e.jsx("span",{className:"cursor-pointer text-blue-600 hover:underline",onClick:f,children:n}),!t&&e.jsx(ae,{title:l.description,children:e.jsx("div",{className:"text-gray-500 line-clamp-1",children:l.description})})]})},fixed:"left"},{title:i("assets.alias"),dataIndex:"alias",sorter:!0,hideInSearch:!0,width:t?80:140,hideInTable:t},{title:i("assets.group"),dataIndex:"groupFullName",key:"groupFullName",width:t?80:150,render:(n,l)=>e.jsx("div",{className:ee("cursor-pointer hover:text-blue-500 underline",t&&"text-xs line-clamp-2"),onClick:()=>{K(!0),y([l.id])},children:n}),hideInSearch:!0},{title:i("assets.protocol"),dataIndex:"protocol",key:"protocol",sorter:!0,hideInSearch:!0,width:t?60:80,render:(n,l)=>e.jsx("span",{className:ye("rounded-md px-1.5 py-1 text-white font-bold",He(l.protocol)),style:{fontSize:t?8:9},children:l.protocol.toUpperCase()})},{title:i("assets.network"),dataIndex:"network",key:"network",hideInSearch:!0,width:t?90:160,hideInTable:t,render:(n,l)=>`${l.ip+":"+l.port}`},{title:i("assets.tags"),dataIndex:"tags",key:"tags",hideInSearch:!0,width:t?80:120,hideInTable:t,render:n=>{if(!n||n==="-")return;let l;if(Array.isArray(n))l=n;else if(typeof n=="string")l=n.split(",").filter(f=>f.trim());else return;return l.map(f=>e.jsx(ne,{children:f},f))}},{title:i("general.status"),dataIndex:"status",key:"status",sorter:!0,hideInSearch:!0,width:t?70:100,render:(n,l)=>{switch(n){case"testing":return e.jsx(le,{status:"processing",text:i("assets.testing")});case"active":return e.jsx(le,{status:"success",text:i("assets.active")});case"inactive":return e.jsx(ae,{title:l.statusText,children:e.jsx(le,{status:"error",text:i("general.offline")})})}}},{title:i("actions.label"),valueType:"option",key:"option",width:t?80:120,render:(n,l,f,q)=>{const A=l.id;return[e.jsx("a",{href:(()=>{let O={id:A,name:l.name,protocol:l.protocol,status:l.status,wolEnabled:l.attrs?.["wol-enabled"]||!1};return`/access?asset=${Ye(O)}`})(),target:"_blank",rel:"noopener noreferrer",className:"ant-btn ant-btn-default ant-btn-sm",children:t?i("assets.access").substring(0,2):i("assets.access")},`btn-access-${A}`),e.jsx(Ke,{onSelect:O=>{switch(O){case"copy":X(l.id,{groupId:l.groupId,copy:!0});break;case"edit":X(l.id,{groupId:l.groupId});break;case"view-authorised-asset":M(`/authorised-asset?assetId=${l.id}`);break;case"delete":G.confirm({title:i("general.confirm_delete"),okText:i("actions.delete"),onOk:async()=>{o.assetId===l.id&&(h({assetId:void 0}),E({open:!1,assetId:void 0,groupId:void 0,copy:!1})),await te.deleteById(l.id),a.current?.reload()}})}},menus:[{key:"copy",name:i("assets.copy")},{key:"edit",name:i("actions.edit")},{key:"view-authorised-asset",name:`${i("actions.authorized")}${i("menus.identity.submenus.user")}`},{key:"delete",name:i("actions.delete"),danger:!0}]},`perm-action-${A}`)]},fixed:"right"}],H=async n=>{let l=await te.importAsset(n),f=l.error,q=l.errorAssets;return f===""?G.success({title:i("assets.import_asset_success"),content:i("general.success")}):G.error({title:i("assets.import_asset_error"),content:e.jsxs("div",{children:[e.jsx("p",{children:i("assets.import_asset_error_title")}),e.jsx("hr",{className:"h-px my-2 bg-gray-200 border-0 dark:bg-gray-700"}),e.jsx("ul",{children:q.map(A=>e.jsxs("li",{children:[A.name,":",A.error]}))})]})}),a.current?.reload(),!1},$={columns:W,actionRef:a,request:async(n={},l,f)=>{let[q,A]=ds(l);q===""&&A===""&&(q="desc",A="sort");let O={pageIndex:n.current,pageSize:n.pageSize,order:q,field:A,keyword:n.keyword,tags:w.length>0?w.join(","):void 0,groupId:u},pe=await te.getPaging(O);return{data:pe.items,success:!0,total:pe.total}},dragSortKey:"sort",columnsState:{persistenceKey:"assets-table-v2",persistenceType:"localStorage"},rowSelection:{selections:[ge.SELECTION_ALL,ge.SELECTION_INVERT]},options:{search:!0},search:!1,tableAlertOptionRender:({selectedRowKeys:n})=>e.jsxs(ue,{size:16,children:[e.jsx(J,{onClick:()=>{y(n),K(!0)},children:i("assets.change_group")}),e.jsx(J,{onClick:()=>{y(n),R(!0)},children:i("assets.change_gateway")}),e.jsx(J,{onClick:()=>{I.mutate(n)},children:i("assets.conn_test")}),e.jsx(J,{danger:!0,onClick:async()=>{G.confirm({title:i("general.confirm_delete"),onOk:async()=>{await te.deleteById(n.join(",")),a.current?.reload()}})},children:i("actions.delete")})]}),rowKey:"id",pagination:{defaultPageSize:10,showSizeChanger:!t},dateFormatter:"string",headerTitle:i("menus.resource.submenus.asset"),toolBarRender:()=>[e.jsx(B,{onClick:()=>{M("/authorised-asset")},color:"purple",variant:"dashed",children:i("actions.authorized")},"auth"),u&&e.jsx(B,{onClick:()=>M(`/authorised-asset?assetGroupId=${u}`),children:`${i("authorised.label.asset_group")}${i("actions.authorized")}`},"group-auth"),e.jsx(B,{type:"primary",onClick:()=>{h({assetId:void 0}),E({open:!0,assetId:void 0,groupId:u,copy:!1})},children:i("actions.new")},"add"),e.jsx(ve,{content:_,children:e.jsx(ke,{maxCount:1,beforeUpload:H,showUploadList:!1,children:e.jsx(B,{children:i("assets.import")})})},"import")]},v=g.length===0?null:e.jsxs("div",{className:"flex items-center flex-wrap pt-4 pb-0 px-[24px]",children:[e.jsx("span",{className:"text-gray-500 text-sm",children:i("assets.tags")}),e.jsx(ne.CheckableTag,{checked:w.length===0,onChange:()=>T([]),children:i("general.all")}),g.map(n=>e.jsx(ne.CheckableTag,{checked:w.includes(n),onChange:l=>{T(f=>l?[...f,n]:f.filter(q=>q!==n))},children:n},n))]});return e.jsxs("div",{children:[e.jsx("div",{className:ee("px-4",t&&"px-2"),children:t?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"mb-4 bg-white dark:bg-gray-800 rounded-lg",children:e.jsx(fe,{selected:u,onSelect:C})}),v,e.jsx(xe,{...$})]}):e.jsxs("div",{className:ee("grid gap-4 transition-all duration-300",F?"grid-cols-[48px_1fr]":"grid-cols-[240px_1fr]"),children:[e.jsxs("div",{className:"relative rounded-md bg-gray-50 dark:bg-[#141414]",children:[!F&&e.jsx(fe,{selected:u,onSelect:C}),e.jsx("div",{className:ee("absolute top-4 bg-gray-100 p-1.5 rounded dark:bg-gray-800 cursor-pointer hover:bg-gray-200 dark:hover:bg-gray-700 transition-colors",F?"left-2":"right-4"),onClick:()=>Q(!F),children:F?e.jsx(ss,{className:"w-4 h-4"}):e.jsx(ts,{className:"w-4 h-4"})})]}),e.jsxs("div",{className:"overflow-hidden",children:[v,e.jsx(xe,{...$,scroll:{x:"max-content"}})]})]})}),e.jsx(ps,{assetIds:x,open:D,onClose:()=>{K(!1),y([]),a.current?.reload()}}),e.jsx(as,{type:"asset",resourceIds:x,open:Y,onClose:()=>{R(!1),y([]),a.current?.reload()}}),e.jsx(bs,{open:z.open,onClose:()=>{h({assetId:void 0}),E({open:!1,assetId:void 0,groupId:void 0,copy:!1}),a.current?.reload()},assetId:z.assetId,groupId:z.groupId,copy:z.copy})]})};export{Ds as default}; diff --git a/server/resource/build/assets/AuthorisedAssetPage-BX2rNWSk.js b/server/resource/build/assets/AuthorisedAssetPage-BX2rNWSk.js deleted file mode 100644 index d7d76b031..000000000 --- a/server/resource/build/assets/AuthorisedAssetPage-BX2rNWSk.js +++ /dev/null @@ -1 +0,0 @@ -import{f as u,S as r,bh as x,aS as b,bz as P,bp as g,av as v}from"./antd-Afm2kNt7.js";import{a as f}from"./authorised-asset-api-DxGTPNvM.js";import{U as w,D as N,A as R,a as _}from"./QuerySelects-HiP3pg4d.js";import{N as y}from"./NButton-DoPcvKBF.js";import{N as m}from"./NLink-Dl2yFaN4.js";import{u as T,a as E,b as z}from"./index-DQXwuKC5.js";import"./user-api-BJxKseSg.js";import"./department-api-fa0GHZbt.js";import"./asset-api-1abjsV5s.js";import"./website-api-CiGWjL7L.js";import"./database-asset-api-BQeUyDt2.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";const H=()=>{const{t:s}=T(),c=u.useRef(null),p=u.useRef(null);let S=E();const[l,I]=z(),o=u.useMemo(()=>({userId:l.get("userId")||void 0,departmentId:l.get("departmentId")||void 0,assetGroupId:l.get("assetGroupId")||void 0,assetId:l.get("assetId")||void 0}),[l]),j=u.useMemo(()=>Object.fromEntries(Object.entries(o).filter(([,t])=>t)),[o]);u.useEffect(()=>{p.current?.setFieldsValue(o)},[o]);const h=u.useCallback(e=>{const t={};Object.entries(e).forEach(([n,d])=>{d&&(t[n]=String(d))}),!(Object.keys(t).length===Object.keys(o).length&&Object.entries(t).every(([n,d])=>o[n]===d))&&I(t)},[I,o]),A=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:s("menus.identity.submenus.user"),dataIndex:"userName",formItemProps:{name:"userId"},renderFormItem:(e,{type:t,defaultRender:i,...a},n)=>t==="form"?null:r.jsx(w,{...a}),render:((e,t)=>e==="-"?"-":r.jsx(m,{to:`/user/${t.userId}`,children:e}))},{title:s("menus.identity.submenus.department"),dataIndex:"departmentName",formItemProps:{name:"departmentId"},renderFormItem:(e,{type:t,defaultRender:i,...a},n)=>t==="form"?null:r.jsx(N,{...a}),render:((e,t)=>e==="-"?"-":r.jsx(m,{to:`/department/${t.departmentId}`,children:e}))},{title:s("menus.resource.submenus.asset"),dataIndex:"assetName",formItemProps:{name:"assetId"},renderFormItem:(e,{type:t,defaultRender:i,...a},n)=>t==="form"?null:r.jsx(R,{...a}),render:((e,t)=>e==="-"?"-":r.jsx(m,{to:`/asset?assetId=${t.assetId}`,children:e}))},{title:s("authorised.label.asset_group"),dataIndex:"assetGroupName",formItemProps:{name:"assetGroupId"},renderFormItem:(e,{type:t,defaultRender:i,...a},n)=>t==="form"?null:r.jsx(_,{...a}),render:((e,t)=>e==="-"?"-":r.jsx(m,{to:`/asset?groupId=${t.assetGroupId}`,children:e}))},{title:s("assets.limit_time"),key:"expiredAt",dataIndex:"expiredAt",hideInSearch:!0,render:(e,t)=>{if(t.expiredAt===0)return"-";let i=x(t.expiredAt);const a=x(),n=i.diff(a,"day");let d="";return n>7?d="text-green-500":n>0?d="text-yellow-500":d="text-red-500",r.jsx("div",{className:d,children:i.format("YYYY-MM-DD HH:mm:ss")})},width:180},{title:s("authorised.label.authorised_at"),key:"createdAt",dataIndex:"createdAt",valueType:"dateTime",hideInSearch:!0,width:180},{title:s("actions.label"),valueType:"option",key:"option",width:50,render:(e,t,i,a)=>[r.jsx(b,{title:s("general.confirm_delete"),onConfirm:async()=>{await f.deleteById(t.id),c.current?.reload()},children:r.jsx(y,{danger:!0,children:s("actions.unbind")},"unbind")},"unbind-confirm")]}];return r.jsx("div",{children:r.jsx(P,{columns:A,actionRef:c,formRef:p,params:j,form:{initialValues:o},onSubmit:e=>h(e),onReset:()=>h({}),request:async(e={},t,i)=>{let a={pageIndex:e.current,pageSize:e.pageSize,userId:e.userId,departmentId:e.departmentId,assetGroupId:e.assetGroupId,assetId:e.assetId},n=await f.paging(a);return{data:n.items,success:!0,total:n.total}},rowKey:"id",search:{labelWidth:"auto"},rowSelection:{selections:[g.SELECTION_ALL,g.SELECTION_INVERT]},tableAlertOptionRender:({selectedRowKeys:e})=>r.jsx(b,{title:s("general.confirm_delete"),onConfirm:async()=>{await Promise.all(e.map(t=>f.deleteById(String(t)))),c.current?.reload()},children:r.jsx(y,{danger:!0,children:s("actions.unbind")})}),pagination:{defaultPageSize:10,showSizeChanger:!0},dateFormatter:"string",headerTitle:s("actions.authorized"),toolBarRender:()=>[r.jsx(v,{type:"primary",onClick:()=>{S("/authorised-asset/post")},children:s("actions.authorized")},"button")]})})};export{H as default}; diff --git a/server/resource/build/assets/AuthorisedAssetPost-vCyEAP3r.js b/server/resource/build/assets/AuthorisedAssetPost-vCyEAP3r.js deleted file mode 100644 index aafd715d9..000000000 --- a/server/resource/build/assets/AuthorisedAssetPost-vCyEAP3r.js +++ /dev/null @@ -1 +0,0 @@ -import{f as l,S as r,aK as g,aL as u,bA as d,bs as j,a_ as y,be as w,bB as P,bh as o,bg as E}from"./antd-Afm2kNt7.js";import{c as S}from"./command-filter-api-BxXGNaHY.js";import{s as v}from"./strategy-api-z9cMxeja.js";import{u as F}from"./user-api-BJxKseSg.js";import{d as N}from"./department-api-fa0GHZbt.js";import{a as h}from"./asset-api-1abjsV5s.js";import{a as D}from"./authorised-asset-api-DxGTPNvM.js";import{u as k,a as I}from"./index-DQXwuKC5.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";const W=()=>{const m=l.useRef(null);let{t:a}=k();const[n,i]=l.useState(),[c,p]=l.useState(!0);let f=I();l.useEffect(()=>{open||(i(void 0),p(!0))},[open]);const x=e=>{p(e.target.checked),e.target.checked===!0?i(o(0)):i(o())},b=(e,t)=>{console.log(e,t),i(e)},A=e=>e&&e{n?e.expiredAt=n.valueOf():e.expiredAt=0,await D.post(e),E.success(a("general.success")),m.current?.resetFields(),f("/authorised-asset")},children:[r.jsx(u,{label:a("menus.identity.submenus.user"),name:"userIds",fieldProps:{mode:"multiple",showSearch:!0},request:async()=>(await F.getAll()).map(t=>({label:t.nickname,value:t.id}))}),r.jsx(d,{label:a("menus.identity.submenus.department"),name:"departmentIds",fieldProps:{showSearch:!0,multiple:!0,treeDefaultExpandAll:!0},request:async()=>await N.getTree()}),r.jsx(d,{label:a("authorised.label.asset_group"),name:"assetGroupIds",fieldProps:{multiple:!0,showSearch:!0,treeDefaultExpandAll:!0,treeNodeFilterProp:"title"},request:async()=>{let e=await h.getGroups();function t(s){s.value=s.id,s.children&&s.children.forEach(t)}return e.forEach(s=>{t(s)}),e}}),r.jsx(d,{label:a("menus.resource.submenus.asset"),name:"assetIds",fieldProps:{multiple:!0,showSearch:!0,treeDefaultExpandAll:!0,treeNodeFilterProp:"title"},request:async()=>{let e=await h.tree();function t(s){s.value=s.id,s.isLeaf?s.title=s.title+" ("+s.extra?.network+")":s.disabled=!0,s.children&&s.children.forEach(t)}return e.forEach(s=>{t(s)}),e}}),r.jsx(u,{label:a("menus.authorised.submenus.command_filter"),name:"commandFilterId",fieldProps:{showSearch:!0},request:async()=>(await S.getAll()).map(t=>({label:t.name,value:t.id}))}),r.jsx(u,{label:a("authorised.label.strategy"),name:"strategyId",fieldProps:{showSearch:!0},request:async()=>(await v.getAll()).map(t=>({label:t.name,value:t.id}))}),r.jsx(j.Item,{label:a("assets.limit_time"),name:"expiredAt",children:r.jsxs(y,{children:[r.jsx(w,{onChange:x,checked:c,children:a("authorised.label.never_expired")}),!c&&r.jsx(P,{onChange:b,value:n,format:"YYYY-MM-DD HH:mm:ss",disabledDate:A,showTime:{defaultValue:o("00:00:00","HH:mm:ss")}})]})})]})]})};export{W as default}; diff --git a/server/resource/build/assets/AuthorisedDatabaseAssetPage-CQMQnnFB.js b/server/resource/build/assets/AuthorisedDatabaseAssetPage-CQMQnnFB.js deleted file mode 100644 index 9cdd1f920..000000000 --- a/server/resource/build/assets/AuthorisedDatabaseAssetPage-CQMQnnFB.js +++ /dev/null @@ -1 +0,0 @@ -import{f as o,S as r,bh as x,aS as b,bz as w,bp as y,av as P}from"./antd-Afm2kNt7.js";import{a as l}from"./authorised-database-asset-api-u0MMVZQN.js";import{U as v,D as N,c as T}from"./QuerySelects-HiP3pg4d.js";import{N as g}from"./NButton-DoPcvKBF.js";import{N as c}from"./NLink-Dl2yFaN4.js";import{u as E,a as _,b as z}from"./index-DQXwuKC5.js";import"./user-api-BJxKseSg.js";import"./department-api-fa0GHZbt.js";import"./asset-api-1abjsV5s.js";import"./website-api-CiGWjL7L.js";import"./database-asset-api-BQeUyDt2.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";const $=()=>{const{t:a}=E(),m=o.useRef(null),f=o.useRef(null),S=_(),[u,p]=z(),i=o.useMemo(()=>({userId:u.get("userId")||void 0,departmentId:u.get("departmentId")||void 0,assetId:u.get("assetId")||void 0}),[u]),j=o.useMemo(()=>Object.fromEntries(Object.entries(i).filter(([,t])=>t)),[i]);o.useEffect(()=>{f.current?.setFieldsValue(i)},[i]);const h=o.useCallback(e=>{const t={};Object.entries(e).forEach(([d,n])=>{n&&(t[d]=String(n))}),!(Object.keys(t).length===Object.keys(i).length&&Object.entries(t).every(([d,n])=>i[d]===n))&&p(t)},[p,i]),A=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:a("menus.identity.submenus.user"),dataIndex:"userName",formItemProps:{name:"userId"},renderFormItem:(e,{type:t,...s})=>t==="form"?null:r.jsx(v,{...s}),render:((e,t)=>e==="-"?"-":r.jsx(c,{to:`/user/${t.userId}`,children:e}))},{title:a("menus.identity.submenus.department"),dataIndex:"departmentName",formItemProps:{name:"departmentId"},renderFormItem:(e,{type:t,...s})=>t==="form"?null:r.jsx(N,{...s}),render:((e,t)=>e==="-"?"-":r.jsx(c,{to:`/department/${t.departmentId}`,children:e}))},{title:a("menus.resource.submenus.database_asset"),dataIndex:"assetName",formItemProps:{name:"assetId"},renderFormItem:(e,{type:t,...s})=>t==="form"?null:r.jsx(T,{...s}),render:((e,t)=>e==="-"?"-":r.jsx(c,{to:"/database-asset",children:e}))},{title:a("assets.limit_time"),key:"expiredAt",dataIndex:"expiredAt",hideInSearch:!0,render:(e,t)=>{if(t.expiredAt===0)return"-";const s=x(t.expiredAt),I=x(),d=s.diff(I,"day");let n="";return d>7?n="text-green-500":d>0?n="text-yellow-500":n="text-red-500",r.jsx("div",{className:n,children:s.format("YYYY-MM-DD HH:mm:ss")})},width:180},{title:a("authorised.label.authorised_at"),key:"createdAt",dataIndex:"createdAt",valueType:"dateTime",hideInSearch:!0,width:180},{title:a("actions.label"),valueType:"option",key:"option",width:50,render:(e,t)=>[r.jsx(b,{title:a("general.confirm_delete"),onConfirm:async()=>{await l.deleteById(t.id),m.current?.reload()},children:r.jsx(g,{danger:!0,children:a("actions.unbind")},"unbind")},"unbind-confirm")]}];return r.jsx("div",{children:r.jsx(w,{columns:A,actionRef:m,formRef:f,params:j,form:{initialValues:i},onSubmit:e=>h(e),onReset:()=>h({}),request:async(e={})=>{const t={pageIndex:e.current,pageSize:e.pageSize,userId:e.userId,departmentId:e.departmentId,assetId:e.assetId},s=await l.paging(t);return{data:s.items,success:!0,total:s.total}},rowKey:"id",search:{labelWidth:"auto"},rowSelection:{selections:[y.SELECTION_ALL,y.SELECTION_INVERT]},tableAlertOptionRender:({selectedRowKeys:e})=>r.jsx(b,{title:a("general.confirm_delete"),onConfirm:async()=>{await Promise.all(e.map(t=>l.deleteById(String(t)))),m.current?.reload()},children:r.jsx(g,{danger:!0,children:a("actions.unbind")})}),pagination:{defaultPageSize:10,showSizeChanger:!0},dateFormatter:"string",headerTitle:a("actions.authorized"),toolBarRender:()=>[r.jsx(P,{type:"primary",onClick:()=>{S("/authorised-database-asset/post")},children:a("actions.authorized")},"button")]})})};export{$ as default}; diff --git a/server/resource/build/assets/AuthorisedDatabaseAssetPost-BrzKzr0W.js b/server/resource/build/assets/AuthorisedDatabaseAssetPost-BrzKzr0W.js deleted file mode 100644 index 6c5e48294..000000000 --- a/server/resource/build/assets/AuthorisedDatabaseAssetPost-BrzKzr0W.js +++ /dev/null @@ -1 +0,0 @@ -import{f as o,S as s,aK as x,aL as n,bs as f,a_ as A,be as j,bB as g,bh as r,bg as y}from"./antd-Afm2kNt7.js";import{u as v}from"./user-api-BJxKseSg.js";import{d as w}from"./department-api-fa0GHZbt.js";import{d as D}from"./database-asset-api-BQeUyDt2.js";import{a as S}from"./authorised-database-asset-api-u0MMVZQN.js";import{u as P,a as k}from"./index-DQXwuKC5.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";const Y=()=>{const d=o.useRef(null),{t:a}=P(),[i,m]=o.useState(),[l,u]=o.useState(!0),c=k(),p=e=>{u(e.target.checked),e.target.checked===!0?m(r(0)):m(r())},h=e=>{m(e)},b=e=>e&&e{i?e.expiredAt=i.valueOf():e.expiredAt=0,await S.post(e),y.success(a("general.success")),d.current?.resetFields(),c("/authorised-database-asset")},children:[s.jsx(n,{label:a("menus.identity.submenus.user"),name:"userIds",fieldProps:{mode:"multiple",showSearch:!0},request:async()=>(await v.getAll()).map(t=>({label:t.nickname,value:t.id}))}),s.jsx(n,{label:a("menus.identity.submenus.department"),name:"departmentIds",fieldProps:{mode:"multiple",showSearch:!0},request:async()=>(await w.getAll()).map(t=>({label:t.name,value:t.id}))}),s.jsx(n,{label:a("menus.resource.submenus.database_asset"),name:"assetIds",fieldProps:{mode:"multiple",showSearch:!0},request:async()=>(await D.getAll()).map(t=>({label:t.name,value:t.id}))}),s.jsx(f.Item,{label:a("assets.limit_time"),name:"expiredAt",children:s.jsxs(A,{children:[s.jsx(j,{onChange:p,checked:l,children:a("authorised.label.never_expired")}),!l&&s.jsx(g,{onChange:h,value:i,format:"YYYY-MM-DD HH:mm:ss",disabledDate:b,showTime:{defaultValue:r("00:00:00","HH:mm:ss")}})]})})]})]})};export{Y as default}; diff --git a/server/resource/build/assets/AuthorisedWebsitePage-C91itGU-.js b/server/resource/build/assets/AuthorisedWebsitePage-C91itGU-.js deleted file mode 100644 index 9fa247d7f..000000000 --- a/server/resource/build/assets/AuthorisedWebsitePage-C91itGU-.js +++ /dev/null @@ -1 +0,0 @@ -import{f as u,S as r,bh as h,aS as x,bz as P,bp as w,av as v}from"./antd-Afm2kNt7.js";import{a as f}from"./authorised-website-api-DLMeAD6d.js";import{U as N,D as R,W as _,b as A}from"./QuerySelects-HiP3pg4d.js";import{N as g}from"./NButton-DoPcvKBF.js";import{N as m}from"./NLink-Dl2yFaN4.js";import{u as T,a as E,b as z}from"./index-DQXwuKC5.js";import"./user-api-BJxKseSg.js";import"./department-api-fa0GHZbt.js";import"./asset-api-1abjsV5s.js";import"./website-api-CiGWjL7L.js";import"./database-asset-api-BQeUyDt2.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";const q=()=>{const{t:i}=T(),c=u.useRef(null),p=u.useRef(null);let y=E();const[l,b]=z(),o=u.useMemo(()=>({userId:l.get("userId")||void 0,departmentId:l.get("departmentId")||void 0,websiteGroupId:l.get("websiteGroupId")||void 0,websiteId:l.get("websiteId")||void 0}),[l]),S=u.useMemo(()=>Object.fromEntries(Object.entries(o).filter(([,t])=>t)),[o]);u.useEffect(()=>{p.current?.setFieldsValue(o)},[o]);const I=u.useCallback(e=>{const t={};Object.entries(e).forEach(([s,d])=>{d&&(t[s]=String(d))}),!(Object.keys(t).length===Object.keys(o).length&&Object.entries(t).every(([s,d])=>o[s]===d))&&b(t)},[b,o]),j=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:i("menus.identity.submenus.user"),dataIndex:"userName",formItemProps:{name:"userId"},renderFormItem:(e,{type:t,defaultRender:a,...n},s)=>t==="form"?null:r.jsx(N,{...n}),render:((e,t)=>e==="-"?"-":r.jsx(m,{to:`/user/${t.userId}`,children:e}))},{title:i("menus.identity.submenus.department"),dataIndex:"departmentName",formItemProps:{name:"departmentId"},renderFormItem:(e,{type:t,defaultRender:a,...n},s)=>t==="form"?null:r.jsx(R,{...n}),render:((e,t)=>e==="-"?"-":r.jsx(m,{to:`/department/${t.departmentId}`,children:e}))},{title:i("menus.resource.submenus.website"),dataIndex:"websiteName",formItemProps:{name:"websiteId"},renderFormItem:(e,{type:t,defaultRender:a,...n},s)=>t==="form"?null:r.jsx(_,{...n}),render:((e,t)=>e==="-"?"-":r.jsx(m,{to:`/website?websiteId=${t.websiteId}`,children:e}))},{title:i("authorised.label.website_group"),dataIndex:"websiteGroupName",formItemProps:{name:"websiteGroupId"},renderFormItem:(e,{type:t,defaultRender:a,...n},s)=>t==="form"?null:r.jsx(A,{...n}),render:((e,t)=>e==="-"?"-":r.jsx(m,{to:`/website?groupId=${t.websiteGroupId}`,children:e}))},{title:i("assets.limit_time"),key:"expiredAt",dataIndex:"expiredAt",hideInSearch:!0,render:(e,t)=>{if(t.expiredAt===0)return"-";let a=h(t.expiredAt);const n=h(),s=a.diff(n,"day");let d="";return s>7?d="text-green-500":s>0?d="text-yellow-500":d="text-red-500",r.jsx("div",{className:d,children:a.format("YYYY-MM-DD HH:mm:ss")})},width:180},{title:i("authorised.label.authorised_at"),key:"createdAt",dataIndex:"createdAt",valueType:"dateTime",hideInSearch:!0,width:180},{title:i("actions.label"),valueType:"option",key:"option",width:50,render:(e,t,a,n)=>[r.jsx(x,{title:i("general.confirm_delete"),onConfirm:async()=>{await f.deleteById(t.id),c.current?.reload()},children:r.jsx(g,{danger:!0,children:i("actions.unbind")},"unbind")},"unbind-confirm")]}];return r.jsx("div",{children:r.jsx(P,{columns:j,actionRef:c,formRef:p,params:S,form:{initialValues:o},onSubmit:e=>I(e),onReset:()=>I({}),request:async(e={},t,a)=>{let n={pageIndex:e.current,pageSize:e.pageSize,userId:e.userId,departmentId:e.departmentId,websiteGroupId:e.websiteGroupId,websiteId:e.websiteId},s=await f.paging(n);return{data:s.items,success:!0,total:s.total}},rowKey:"id",search:{labelWidth:"auto"},rowSelection:{selections:[w.SELECTION_ALL,w.SELECTION_INVERT]},tableAlertOptionRender:({selectedRowKeys:e})=>r.jsx(x,{title:i("general.confirm_delete"),onConfirm:async()=>{await Promise.all(e.map(t=>f.deleteById(String(t)))),c.current?.reload()},children:r.jsx(g,{danger:!0,children:i("actions.unbind")})}),pagination:{defaultPageSize:10,showSizeChanger:!0},dateFormatter:"string",headerTitle:i("actions.authorized"),toolBarRender:()=>[r.jsx(v,{type:"primary",onClick:()=>{y("/authorised-website/post")},children:i("actions.authorized")},"button")]})})};export{q as default}; diff --git a/server/resource/build/assets/AuthorisedWebsitePost-COc7i5eT.js b/server/resource/build/assets/AuthorisedWebsitePost-COc7i5eT.js deleted file mode 100644 index 41be21ed0..000000000 --- a/server/resource/build/assets/AuthorisedWebsitePost-COc7i5eT.js +++ /dev/null @@ -1 +0,0 @@ -import{f as l,S as s,aK as w,aL as g,bA as n,bs as j,a_ as y,be as P,bB as v,bh as d,bg as p}from"./antd-Afm2kNt7.js";import{u as D}from"./user-api-BJxKseSg.js";import{d as E}from"./department-api-fa0GHZbt.js";import{w as h}from"./website-api-CiGWjL7L.js";import{a as S}from"./authorised-website-api-DLMeAD6d.js";import{u as k,a as F}from"./index-DQXwuKC5.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";const Y=()=>{const m=l.useRef(null);let{t:r}=k();const[o,i]=l.useState(),[u,c]=l.useState(!0);let f=F();l.useEffect(()=>{i(void 0),c(!0)},[]);const b=e=>{c(e.target.checked),e.target.checked===!0?i(void 0):i(d())},x=(e,t)=>{console.log(e,t),i(e)},A=e=>e&&e{u||!o?e.expiredAt=0:e.expiredAt=o.valueOf();try{await S.authorise(e),p.success(r("general.success")),m.current?.resetFields(),f("/authorised-website")}catch{p.error(r("authorised.authorise_failed"))}},children:[s.jsx(g,{label:r("menus.identity.submenus.user"),name:"userIds",fieldProps:{mode:"multiple",showSearch:!0},request:async()=>(await D.getAll()).map(t=>({label:t.nickname,value:t.id}))}),s.jsx(n,{label:r("menus.identity.submenus.department"),name:"departmentIds",fieldProps:{showSearch:!0,multiple:!0,treeDefaultExpandAll:!0},request:async()=>await E.getTree()}),s.jsx(n,{label:r("authorised.label.website_group"),name:"websiteGroupIds",fieldProps:{multiple:!0,showSearch:!0,treeDefaultExpandAll:!0,treeNodeFilterProp:"title"},request:async()=>{let e=await h.getGroups();function t(a){a.value=a.key,a.isLeaf||a.children&&a.children.forEach(t)}return e.forEach(a=>{t(a)}),e}}),s.jsx(n,{label:r("menus.resource.submenus.website"),name:"websiteIds",fieldProps:{multiple:!0,showSearch:!0,treeDefaultExpandAll:!0,treeNodeFilterProp:"title"},request:async()=>(await h.getAll()).map(t=>({title:t.name+" ("+t.targetUrl+")",key:t.id,value:t.id,isLeaf:!0}))}),s.jsx(j.Item,{label:r("assets.limit_time"),name:"expiredAt",children:s.jsxs(y,{children:[s.jsx(P,{onChange:b,checked:u,children:r("authorised.label.never_expired")}),!u&&s.jsx(v,{onChange:x,value:o,format:"YYYY-MM-DD HH:mm:ss",disabledDate:A,showTime:{defaultValue:d("00:00:00","HH:mm:ss")}})]})})]})]})};export{Y as default}; diff --git a/server/resource/build/assets/BrowserPage-B9fb62o-.js b/server/resource/build/assets/BrowserPage-B9fb62o-.js deleted file mode 100644 index 5a5606cf7..000000000 --- a/server/resource/build/assets/BrowserPage-B9fb62o-.js +++ /dev/null @@ -1,9 +0,0 @@ -import{f as c,S as s}from"./antd-Afm2kNt7.js";import{b as i,o as l,aj as h}from"./index-DQXwuKC5.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";const w=()=>{let[e]=i(),r=l(e.get("websiteId"),"");return c.useEffect(()=>{h.accessWebsite(r).then(t=>{window.location.href=t})},[]),s.jsx("div",{className:"flex items-center justify-center h-screen",children:s.jsx("div",{className:"loader",children:s.jsxs("div",{className:"truckWrapper",children:[s.jsx("div",{className:"truckBody",children:s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 198 93",className:"trucksvg",children:[s.jsx("path",{strokeWidth:"3",stroke:"#282828",fill:"#F83D3D",d:"M135 22.5H177.264C178.295 22.5 179.22 23.133 179.594 24.0939L192.33 56.8443C192.442 57.1332 192.5 57.4404 192.5 57.7504V89C192.5 90.3807 191.381 91.5 190 91.5H135C133.619 91.5 132.5 90.3807 132.5 89V25C132.5 23.6193 133.619 22.5 135 22.5Z"}),s.jsx("path",{strokeWidth:"3",stroke:"#282828",fill:"#7D7C7C",d:"M146 33.5H181.741C182.779 33.5 183.709 34.1415 184.078 35.112L190.538 52.112C191.16 53.748 189.951 55.5 188.201 55.5H146C144.619 55.5 143.5 54.3807 143.5 53V36C143.5 34.6193 144.619 33.5 146 33.5Z"}),s.jsx("path",{strokeWidth:"2",stroke:"#282828",fill:"#282828",d:"M150 65C150 65.39 149.763 65.8656 149.127 66.2893C148.499 66.7083 147.573 67 146.5 67C145.427 67 144.501 66.7083 143.873 66.2893C143.237 65.8656 143 65.39 143 65C143 64.61 143.237 64.1344 143.873 63.7107C144.501 63.2917 145.427 63 146.5 63C147.573 63 148.499 63.2917 149.127 63.7107C149.763 64.1344 150 64.61 150 65Z"}),s.jsx("rect",{strokeWidth:"2",stroke:"#282828",fill:"#FFFCAB",rx:"1",height:"7",width:"5",y:"63",x:"187"}),s.jsx("rect",{strokeWidth:"2",stroke:"#282828",fill:"#282828",rx:"1",height:"11",width:"4",y:"81",x:"193"}),s.jsx("rect",{strokeWidth:"3",stroke:"#282828",fill:"#DFDFDF",rx:"2.5",height:"90",width:"121",y:"1.5",x:"6.5"}),s.jsx("rect",{strokeWidth:"2",stroke:"#282828",fill:"#DFDFDF",rx:"2",height:"4",width:"6",y:"84",x:"1"})]})}),s.jsxs("div",{className:"truckTires",children:[s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 30 30",className:"tiresvg",children:[s.jsx("circle",{strokeWidth:"3",stroke:"#282828",fill:"#282828",r:"13.5",cy:"15",cx:"15"}),s.jsx("circle",{fill:"#DFDFDF",r:"7",cy:"15",cx:"15"})]}),s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 30 30",className:"tiresvg",children:[s.jsx("circle",{strokeWidth:"3",stroke:"#282828",fill:"#282828",r:"13.5",cy:"15",cx:"15"}),s.jsx("circle",{fill:"#DFDFDF",r:"7",cy:"15",cx:"15"})]})]}),s.jsx("div",{className:"road"}),s.jsx("svg",{xmlSpace:"preserve",viewBox:"0 0 453.459 453.459",xmlnsXlink:"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/svg",id:"Capa_1",version:"1.1",fill:"#000000",className:"lampPost",children:s.jsx("path",{d:`M252.882,0c-37.781,0-68.686,29.953-70.245,67.358h-6.917v8.954c-26.109,2.163-45.463,10.011-45.463,19.366h9.993\r -c-1.65,5.146-2.507,10.54-2.507,16.017c0,28.956,23.558,52.514,52.514,52.514c28.956,0,52.514-23.558,52.514-52.514\r -c0-5.478-0.856-10.872-2.506-16.017h9.992c0-9.354-19.352-17.204-45.463-19.366v-8.954h-6.149C200.189,38.779,223.924,16,252.882,16\r -c29.952,0,54.32,24.368,54.32,54.32c0,28.774-11.078,37.009-25.105,47.437c-17.444,12.968-37.216,27.667-37.216,78.884v113.914\r -h-0.797c-5.068,0-9.174,4.108-9.174,9.177c0,2.844,1.293,5.383,3.321,7.066c-3.432,27.933-26.851,95.744-8.226,115.459v11.202h45.75\r -v-11.202c18.625-19.715-4.794-87.527-8.227-115.459c2.029-1.683,3.322-4.223,3.322-7.066c0-5.068-4.107-9.177-9.176-9.177h-0.795\r -V196.641c0-43.174,14.942-54.283,30.762-66.043c14.793-10.997,31.559-23.461,31.559-60.277C323.202,31.545,291.656,0,252.882,0z\r -M232.77,111.694c0,23.442-19.071,42.514-42.514,42.514c-23.442,0-42.514-19.072-42.514-42.514c0-5.531,1.078-10.957,3.141-16.017\r -h78.747C231.693,100.736,232.77,106.162,232.77,111.694z`})})]})})})};export{w as default}; diff --git a/server/resource/build/assets/BrowserPage-C3yUGLF0.css b/server/resource/build/assets/BrowserPage-C3yUGLF0.css deleted file mode 100644 index 81c65f5f1..000000000 --- a/server/resource/build/assets/BrowserPage-C3yUGLF0.css +++ /dev/null @@ -1 +0,0 @@ -.loader{width:fit-content;height:fit-content;display:flex;align-items:center;justify-content:center}.truckWrapper{width:200px;height:100px;display:flex;flex-direction:column;position:relative;align-items:center;justify-content:flex-end;overflow-x:hidden}.truckBody{width:130px;height:fit-content;margin-bottom:6px;animation:motion 1s linear infinite}@keyframes motion{0%{transform:translateY(0)}50%{transform:translateY(3px)}to{transform:translateY(0)}}.truckTires{width:130px;height:fit-content;display:flex;align-items:center;justify-content:space-between;padding:0 10px 0 15px;position:absolute;bottom:0}.truckTires svg{width:24px}.road{width:100%;height:1.5px;background-color:#282828;position:relative;bottom:0;align-self:flex-end;border-radius:3px}.road:before{content:"";position:absolute;width:20px;height:100%;background-color:#282828;right:-50%;border-radius:3px;animation:roadAnimation 1.4s linear infinite;border-left:10px solid white}.road:after{content:"";position:absolute;width:10px;height:100%;background-color:#282828;right:-65%;border-radius:3px;animation:roadAnimation 1.4s linear infinite;border-left:4px solid white}.lampPost{position:absolute;bottom:0;right:-90%;height:90px;animation:roadAnimation 1.4s linear infinite}@keyframes roadAnimation{0%{transform:translate(0)}to{transform:translate(-350px)}} diff --git a/server/resource/build/assets/CertificatePage-B2tj9A2w.js b/server/resource/build/assets/CertificatePage-B2tj9A2w.js deleted file mode 100644 index 881bdf7f4..000000000 --- a/server/resource/build/assets/CertificatePage-B2tj9A2w.js +++ /dev/null @@ -1,2 +0,0 @@ -var V=Object.defineProperty;var X=(t,c,a)=>c in t?V(t,c,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[c]=a;var _=(t,c,a)=>X(t,typeof c!="symbol"?c+"":c,a);import{f,S as e,U as q,aK as W,aT as g,aV as U,bH as G,aU as D,aM as J,bO as Y,aI as H,au as Z,a_ as N,a$ as Q,av as b,b2 as $,c5 as ee,c6 as se,c7 as te,bi as j,c4 as T,bI as re,bz as ae}from"./antd-Afm2kNt7.js";import{g as ne}from"./sort-BOdE-yay.js";import{u as C,m as K,r as P,H as ie,I as le,h as L}from"./index-DQXwuKC5.js";import{N as E}from"./NButton-DoPcvKBF.js";import{c as M}from"./certificate-api-CCI2Z4Qf.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";const oe=M,ce=({open:t,handleOk:c,handleCancel:a,confirmLoading:i,id:l})=>{const d=f.useRef(null);let{t:o}=C();const m=async()=>l?await oe.getById(l):{type:"self-signed",renewBefore:30,requireClientAuth:!1};return e.jsx(q,{title:o(l?"actions.edit":"actions.new"),open:t,maskClosable:!1,destroyOnHidden:!0,onOk:()=>{d.current?.validateFields().then(async x=>{c(x)})},onCancel:()=>{a()},confirmLoading:i,children:e.jsxs(W,{formRef:d,request:m,submitter:!1,children:[e.jsx(g,{hidden:!0,name:"id"}),e.jsx(g,{name:"commonName",label:o("assets.domain"),rules:[{required:!0}],disabled:K.hasText(l)}),e.jsx(U.Group,{label:o("assets.certificates.type"),name:"type",rules:[{required:!0}],options:[{label:o("assets.certificates.self_signed"),value:"self-signed"},{label:o("assets.certificates.issued"),value:"issued"},{label:o("assets.certificates.imported"),value:"imported"}],disabled:K.hasText(l)}),e.jsx(G,{name:["type"],children:({type:x})=>{switch(x){case"self-signed":return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"p-4 border rounded-lg space-y-1 mb-4",children:[e.jsx("div",{className:"font-medium",children:o("assets.certificates.self_signed_tip_title")}),e.jsxs("div",{children:[o("assets.certificates.self_signed_root_ca_cert_path")," ./data/root_ca_cert.pem"]}),e.jsxs("div",{children:[o("assets.certificates.self_signed_root_ca_key_path")," ./data/root_ca_key.pem"]})]}),e.jsx(Y,{name:"requireClientAuth",label:"mTLS"})]});case"issued":return e.jsx(e.Fragment,{children:e.jsx(J,{label:o("assets.certificates.renew_before"),name:"renewBefore",rules:[{required:!0}],fieldProps:{addonAfter:o("general.days"),min:0,max:3650,step:1}})});case"imported":return e.jsxs(e.Fragment,{children:[e.jsx(D,{label:o("assets.cert"),name:"certificate",fieldProps:{rows:4,allowClear:!0},rules:[{required:!0}]}),e.jsx(D,{label:o("assets.private_key"),name:"privateKey",fieldProps:{rows:4,allowClear:!0},rules:[{required:!0}]})]})}}})]})})};class de{constructor(){_(this,"group","admin/dns-providers");_(this,"get",async()=>await P.get(`/${this.group}/config`));_(this,"set",async c=>await P.put(`/${this.group}/config`,c));_(this,"remove",async()=>{await P.delete(`/${this.group}/config`)})}}let z=new de;const ue=({open:t,handleOk:c,handleCancel:a})=>{const i=f.useRef(null);let{t:l}=C(),[d,o]=f.useState(!1),{modal:m,message:x}=H.useApp();const w=async()=>{const u=await z.get();return u.ok===!0?(o(!0),u):{type:"tencentcloud"}};return e.jsx(q,{title:l("assets.dns_provider_config"),open:t,maskClosable:!1,destroyOnHidden:!0,onOk:()=>{i.current?.validateFields().then(async u=>{c(u)})},onCancel:a,confirmLoading:!1,okText:l("assets.dns_providers.set"),okButtonProps:{disabled:d},cancelButtonProps:{color:"red",variant:"filled",disabled:!d,onClick:async()=>{m.confirm({title:l("assets.dns_providers.remove_confirm_title"),content:l("assets.dns_providers.remove_confirm_content"),onOk:()=>{z.remove().then(()=>{i.current?.setFieldsValue({type:"tencentcloud",tencentcloud:{secretId:"",secretKey:""},alidns:{accessKeyId:"",accessKeySecret:""},cloudflare:{apiToken:"",zoneToken:""},huaweicloud:{accessKeyId:"",secretAccessKey:""}}),o(!1),x.open({type:"success",content:l("general.success")})})}})}},cancelText:l("assets.dns_providers.remove"),children:e.jsxs(W,{formRef:i,request:w,submitter:!1,disabled:d,children:[e.jsx(g,{hidden:!0,name:"id"}),e.jsx(U.Group,{label:l("assets.dns_providers.type"),name:"type",rules:[{required:!0}],options:[{label:l("assets.dns_providers.tencentcloud"),value:"tencentcloud"},{label:l("assets.dns_providers.alidns"),value:"alidns"},{label:l("assets.dns_providers.huaweicloud"),value:"huaweicloud"},{label:l("assets.dns_providers.cloudflare"),value:"cloudflare"}]}),e.jsx(G,{name:["type"],children:({type:u})=>{switch(u){case"tencentcloud":return e.jsxs(e.Fragment,{children:[e.jsx(g,{label:"SecretId",name:["tencentcloud","secretId"]}),e.jsx(g,{label:"SecretKey",name:["tencentcloud","secretKey"]})]});case"alidns":return e.jsxs(e.Fragment,{children:[e.jsx(g,{label:"AccessKeyId",name:["alidns","accessKeyId"]}),e.jsx(g,{label:"AccessKeySecret",name:["alidns","accessKeySecret"]})]});case"huaweicloud":return e.jsxs(e.Fragment,{children:[e.jsx(g,{label:"AccessKeyId",name:["huaweicloud","accessKeyId"]}),e.jsx(g,{label:"SecretAccessKey",name:["huaweicloud","secretAccessKey"]})]});case"cloudflare":return e.jsxs(e.Fragment,{children:[e.jsx(g,{label:"ApiToken",name:["cloudflare","apiToken"]}),e.jsx(g,{label:"ZoneToken",name:["cloudflare","zoneToken"]})]})}}})]})})},{Text:y}=Q,fe=({open:t,onClose:c})=>{let{t:a}=C();const[i,l]=f.useState([]),[d,o]=f.useState(!1),[m,x]=f.useState(!0),w=f.useRef(null),u=f.useRef(null),S=r=>{try{const s=JSON.parse(r);let p=s.msg||"";s.logger&&s.logger!=="default"&&(p=`[${s.logger}] ${p}`);const n=[];return s.identifier&&n.push(`identifier=${s.identifier}`),s.challenge_type&&n.push(`challenge_type=${s.challenge_type}`),s.ca&&n.push(`ca=${s.ca}`),s.account&&n.push(`account=${s.account}`),s.status_code&&n.push(`status=${s.status_code}`),s.method&&n.push(`method=${s.method}`),s.url&&n.push(`url=${s.url}`),s.error&&n.push(`error=${s.error}`),s.count&&n.push(`count=${s.count}`),s.names&&Array.isArray(s.names)&&n.push(`names=[${s.names.join(", ")}]`),n.length>0&&(p+=` (${n.join(", ")})`),{timestamp:s.time||new Date().toISOString(),level:(s.level||"INFO").toUpperCase(),message:p||r,raw:r}}catch{const s=r.match(/(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2})\s+(\w+)\s+(.+)/);return s?{timestamp:s[1],level:s[2].toUpperCase(),message:s[3],raw:r}:{timestamp:new Date().toISOString().replace("T"," ").substring(0,19),level:"INFO",message:r,raw:r}}},k=r=>{switch(r.toUpperCase()){case"ERROR":return"#ff4d4f";case"WARN":case"WARNING":return"#faad14";case"INFO":return"#1890ff";case"DEBUG":return"#52c41a";default:return"#d9d9d9"}},R=r=>{switch(r.toUpperCase()){case"ERROR":return"ERR";case"WARN":case"WARNING":return"WRN";case"INFO":return"INF";case"DEBUG":return"DBG";default:return"LOG"}};f.useEffect(()=>{if(!t)return;const r=new EventSource(`${ie()}/admin/certificates/issued/log?X-Auth-Token=${le()}`);return r.onmessage=s=>{if(!d){const p=S(s.data);l(n=>[...n,p])}},r.onerror=s=>{console.error("SSE connection error:",s),r.close()},()=>{r.close()}},[t,d]),f.useEffect(()=>{m&&!d&&w.current?.scrollIntoView({behavior:"smooth"})},[i,m,d]);const I=()=>{if(u.current){const{scrollTop:r,scrollHeight:s,clientHeight:p}=u.current,n=r+p>=s-10;x(n)}},A=()=>{const r=i.map(h=>h.raw).join(` -`),s=new Blob([r],{type:"text/plain"}),p=URL.createObjectURL(s),n=document.createElement("a");n.href=p,n.download=`certificate-logs-${new Date().toISOString().split("T")[0]}.log`,document.body.appendChild(n),n.click(),document.body.removeChild(n),URL.revokeObjectURL(p)},O=()=>{o(!d)};return e.jsx(Z,{title:e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[e.jsx("span",{children:a("assets.certificates.issued_log")}),e.jsxs(N,{children:[e.jsxs(y,{type:"secondary",style:{fontSize:"12px"},children:[i.length," ",a("assets.certificates.log_viewer.stats.total_logs")]}),e.jsx($,{title:a(d?"assets.certificates.log_viewer.actions.resume":"assets.certificates.log_viewer.actions.pause"),children:e.jsx(b,{size:"small",icon:d?e.jsx(ee,{}):e.jsx(se,{}),onClick:O,type:d?"primary":"default"})}),e.jsx($,{title:a("assets.certificates.log_viewer.actions.download"),children:e.jsx(b,{size:"small",icon:e.jsx(te,{}),onClick:A,disabled:i.length===0})})]})]}),onClose:c,open:t,width:window.innerWidth*.85,styles:{body:{padding:0}},children:e.jsxs("div",{style:{height:"100%",display:"flex",flexDirection:"column"},children:[e.jsxs("div",{style:{padding:"8px 16px",backgroundColor:"#f5f5f5",borderBottom:"1px solid #d9d9d9",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[e.jsxs(N,{children:[e.jsxs(y,{type:"secondary",style:{fontSize:"12px"},children:[a("general.status"),": ",d?e.jsx(y,{type:"warning",children:a("assets.certificates.log_viewer.status.paused")}):e.jsx(y,{type:"success",children:a("assets.certificates.log_viewer.status.realtime")})]}),!m&&e.jsxs(y,{type:"secondary",style:{fontSize:"12px"},children:[a("assets.certificates.log_viewer.stats.auto_scroll"),": ",e.jsx(y,{type:"warning",children:a("assets.certificates.log_viewer.status.auto_scroll_disabled")})]})]}),e.jsxs(y,{type:"secondary",style:{fontSize:"12px"},children:[a("assets.certificates.log_viewer.stats.last_update"),": ",i.length>0?i[i.length-1].timestamp:a("general.no")]})]}),e.jsxs("div",{ref:u,onScroll:I,style:{flex:1,backgroundColor:"#0d1117",color:"#c9d1d9",fontFamily:"'Fira Code', 'Consolas', 'Monaco', monospace",fontSize:"13px",lineHeight:"1.5",padding:"12px",overflowY:"auto",overflowX:"hidden"},children:[i.length===0?e.jsxs("div",{style:{textAlign:"center",color:"#8b949e",marginTop:"50px"},children:[e.jsx("div",{style:{fontSize:"24px",marginBottom:"16px",fontWeight:"bold"},children:"LOG"}),e.jsx("div",{children:a("assets.certificates.log_viewer.stats.no_data")}),e.jsx("div",{style:{fontSize:"12px",marginTop:"8px"},children:a("assets.certificates.log_viewer.stats.no_data_desc")})]}):i.map((r,s)=>e.jsx("div",{style:{marginBottom:"2px",padding:"4px 6px",borderRadius:"3px",backgroundColor:r.level==="ERROR"?"rgba(248, 81, 73, 0.1)":r.level==="WARN"||r.level==="WARNING"?"rgba(250, 173, 20, 0.1)":"transparent",borderLeft:`3px solid ${k(r.level)}`,transition:"all 0.2s ease"},children:e.jsxs("div",{style:{display:"flex",alignItems:"flex-start",gap:"6px"},children:[e.jsx("span",{style:{color:k(r.level),fontSize:"10px",fontWeight:"bold",minWidth:"28px",textAlign:"center",backgroundColor:"rgba(255,255,255,0.1)",borderRadius:"2px",padding:"1px 2px"},children:R(r.level)}),e.jsx("span",{style:{color:"#8b949e",fontSize:"11px",minWidth:"140px",fontFamily:"monospace"},children:r.timestamp}),e.jsx("span",{style:{flex:1,wordBreak:"break-word",whiteSpace:"pre-wrap",lineHeight:"1.4"},children:r.message})]})},s)),e.jsx("div",{ref:w})]}),i.length>0&&e.jsxs("div",{style:{padding:"8px 16px",backgroundColor:"#f5f5f5",borderTop:"1px solid #d9d9d9",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[e.jsxs(N,{children:[e.jsxs(y,{type:"secondary",style:{fontSize:"12px"},children:[a("general.error"),": ",i.filter(r=>r.level==="ERROR").length]}),e.jsxs(y,{type:"secondary",style:{fontSize:"12px"},children:[a("assets.certificates.log_viewer.stats.warnings"),": ",i.filter(r=>r.level==="WARN"||r.level==="WARNING").length]}),e.jsxs(y,{type:"secondary",style:{fontSize:"12px"},children:[a("assets.certificates.log_viewer.stats.info"),": ",i.filter(r=>r.level==="INFO").length]})]}),!m&&e.jsx(b,{size:"small",type:"link",onClick:()=>{x(!0),w.current?.scrollIntoView({behavior:"smooth"})},children:a("assets.certificates.log_viewer.actions.scroll_to_bottom")})]})]})})},v=M,be=()=>{const{t}=C(),c=f.useRef(null);let[a,i]=f.useState(!1),[l,d]=f.useState(),[o,m]=f.useState(!1),[x,w]=f.useState(!1);const{message:u,modal:S}=H.useApp(),k=async r=>{r.id?await v.updateById(r.id,r):await v.create(r)};let R=L({mutationFn:z.set,onSuccess:()=>{m(!1),u.open({type:"success",content:t("general.success")})}}),I=L({mutationFn:k,onSuccess:()=>{c.current?.reload(),i(!1),d(void 0),A()}});function A(){u.open({type:"success",content:t("general.success")})}const O=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:t("assets.domain"),dataIndex:"commonName",hideInSearch:!0},{title:t("assets.certificates.type"),dataIndex:"type",key:"type",hideInSearch:!0,width:160,render:(r,s)=>{switch(s.type){case"self-signed":return e.jsx(j,{bordered:!1,color:"blue",children:t("assets.certificates.self_signed")});case"issued":return e.jsx(j,{bordered:!1,color:"orange",children:t("assets.certificates.issued")});case"imported":return e.jsx(j,{bordered:!1,color:"volcano",children:t("assets.certificates.imported")})}}},{title:"mTLS",dataIndex:"requireClientAuth",key:"requireClientAuth",hideInSearch:!0,width:100,render:(r,s)=>s.requireClientAuth?e.jsx(j,{bordered:!1,color:"green-inverse",children:t("general.yes")}):e.jsx(j,{bordered:!1,color:"gray",children:t("general.no")})},{title:t("assets.certificates.is_default"),dataIndex:"isDefault",key:"isDefault",hideInSearch:!0,width:100,render:(r,s)=>s.isDefault?e.jsx(j,{bordered:!1,color:"green-inverse",children:t("general.yes")}):e.jsx(j,{bordered:!1,color:"gray",children:t("general.no")}),tooltip:t("assets.certificates.is_default_tooltip")},{title:t("assets.certificates.issuer"),dataIndex:"issuer",hideInSearch:!0,ellipsis:!0},{title:t("assets.certificates.issuedStatus"),dataIndex:"issuedStatus",key:"issuedStatus",hideInSearch:!0,width:120,render:(r,s)=>{switch(s.issuedStatus){case"pending":return e.jsx(T,{status:"processing",text:t("assets.certificates.issuedPending")});case"success":return e.jsx(T,{status:"success",text:t("assets.certificates.issuedSuccess")});case"failed":return e.jsx($,{title:s.issuedError,children:e.jsx(T,{status:"error",text:t("assets.certificates.issuedFailed")})})}}},{title:t("assets.certificates.not_after"),dataIndex:"notAfter",key:"notAfter",hideInSearch:!0,valueType:"dateTime",width:191,defaultSortOrder:"ascend",sorter:!0},{title:t("actions.label"),valueType:"option",key:"option",width:180,render:(r,s,p,n)=>[e.jsx(E,{onClick:()=>{v.updateAsDefault(s.id).then(()=>{n.reload()})},disabled:s.isDefault,children:t("assets.certificates.set_as_default")},"set_as_default"),e.jsx(E,{onClick:()=>{i(!0),d(s.id)},disabled:s.type==="self-signed",children:t("actions.edit")},"edit"),e.jsx(re,{menus:[{key:"download",name:t("assets.certificates.download"),onClick:()=>{v.download(s.id,s.commonName)}},{key:"renew",name:t("assets.certificates.renew"),disabled:s.type!=="issued",onClick:()=>{S.confirm({title:t("assets.certificates.renew_confirm"),content:t("assets.certificates.renew_confirm_content"),onOk:async()=>{try{const h=await v.renew(s.id);h.success?(u.success(t("general.success")),c.current?.reload()):h.warning?u.warning(h.error||t("general.failed")):u.error(h.error||t("general.failed"))}catch(h){const F=h?.response?.data?.message||h?.message||t("general.failed");u.error(F)}}})}},{key:"delete",name:t("actions.delete"),danger:!0,onClick:()=>{S.confirm({title:t("general.confirm_delete"),onOk:async()=>{await v.deleteById(s.id),c.current?.reload()}})}}]},"actionGroup")]}];return e.jsxs("div",{className:"",children:[e.jsx(ae,{columns:O,actionRef:c,request:async(r={},s,p)=>{let[n,h]=ne(s),F={pageIndex:r.current,pageSize:r.pageSize,order:n,field:h,keyword:r.keyword},B=await v.getPaging(F);return{data:B.items,success:!0,total:B.total}},rowKey:"id",options:{search:!0},search:!1,pagination:{defaultPageSize:10,showSizeChanger:!0},dateFormatter:"string",headerTitle:t("menus.resource.submenus.certificate"),toolBarRender:()=>[e.jsx(b,{type:"primary",onClick:()=>{i(!0)},children:t("actions.new")},"new"),e.jsx(b,{color:"purple",variant:"filled",onClick:()=>{m(!0)},children:t("assets.dns_providers.set")},"dns-set"),e.jsx(b,{color:"orange",variant:"filled",onClick:()=>{w(!0)},children:t("assets.certificates.issued_log")},"dns-log")]}),e.jsx(ce,{id:l,open:a,confirmLoading:I.isPending,handleCancel:()=>{i(!1),d(void 0)},handleOk:I.mutate}),e.jsx(ue,{open:o,handleCancel:()=>{m(!1)},handleOk:R.mutate}),e.jsx(fe,{open:x,onClose:()=>{w(!1)}})]})};export{be as default}; diff --git a/server/resource/build/assets/CommandFilterDetail-BeaIU-md.js b/server/resource/build/assets/CommandFilterDetail-BeaIU-md.js deleted file mode 100644 index 097ebcd05..000000000 --- a/server/resource/build/assets/CommandFilterDetail-BeaIU-md.js +++ /dev/null @@ -1 +0,0 @@ -import{S as e,bL as f,f as c,U as R,aK as T,aT as w,aM as q,aV as F,aN as A,aI as B,bi as x,c4 as S,aS as K,bz as O,av as z,b4 as N}from"./antd-Afm2kNt7.js";import{c as M}from"./command-filter-api-BxXGNaHY.js";import{u as h,A as W,h as D,p as U,b as E,o as G}from"./index-DQXwuKC5.js";import{g as L}from"./sort-BOdE-yay.js";import{N as P}from"./NButton-DoPcvKBF.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";const $=M,H=({id:o})=>{let{t}=h();const i=async()=>({success:!0,data:await $.getById(o)});return e.jsx("div",{className:"page-detail-info",children:e.jsxs(f,{column:1,request:i,children:[e.jsx(f.Item,{label:t("general.name"),dataIndex:"name"}),e.jsx(f.Item,{label:t("general.created_at"),dataIndex:"createdAt",valueType:"dateTime"})]})})};class V extends W{constructor(){super("admin/command-filter-rules")}}const b=new V,J=b,Q=({open:o,handleOk:t,handleCancel:i,confirmLoading:s,id:n})=>{const l=c.useRef(null);let{t:a}=h();const d=async()=>n?await J.getById(n):{type:"command",priority:50,action:"reject",enabled:!0};return e.jsx(R,{title:a(n?"actions.edit":"actions.new"),open:o,maskClosable:!1,destroyOnHidden:!0,onOk:()=>{l.current?.validateFields().then(async u=>{t(u)})},onCancel:()=>{i()},confirmLoading:s,children:e.jsxs(T,{formRef:l,request:d,submitter:!1,children:[e.jsx(w,{hidden:!0,name:"id"}),e.jsx(q,{label:a("identity.policy.priority"),name:"priority",rules:[{required:!0}],extra:a("authorised.command_filter.rule.priority_extra"),min:1,max:100,fieldProps:{precision:0}}),e.jsx(F.Group,{label:a("authorised.command_filter.rule.type.label"),name:"type",rules:[{required:!0}],options:[{value:"command",label:a("authorised.command_filter.rule.type.command")},{value:"regexp",label:a("authorised.command_filter.rule.type.regexp")}]}),e.jsx(w,{label:a("authorised.command_filter.rule.match_content"),name:"command",rules:[{required:!0}]}),e.jsx(F.Group,{label:a("identity.policy.action.label"),name:"action",rules:[{required:!0}],options:[{value:"allow",label:a("identity.policy.action.allow")},{value:"reject",label:a("identity.policy.action.reject")}]}),e.jsx(A,{label:a("general.status"),name:"enabled",rules:[{required:!0}]})]})})},g=b,X=({id:o})=>{const{t}=h(),i=c.useRef(null);let[s,n]=c.useState(!1),[l,a]=c.useState();const{message:d}=B.useApp();let m=D({mutationFn:async r=>{r.commandFilterId=o,r.id?await g.updateById(r.id,r):await g.create(r)},onSuccess:()=>{i.current?.reload(),n(!1),a(void 0),p()}});function p(){d.open({type:"success",content:t("general.success")})}const _=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:t("identity.policy.priority"),key:"priority",dataIndex:"priority",sorter:!0,hideInSearch:!0},{title:t("authorised.command_filter.rule.type.label"),key:"type",dataIndex:"type",hideInSearch:!0,render:(r=>r==="regexp"?e.jsx(x,{color:"blue",children:t("authorised.command_filter.rule.type.regexp")}):e.jsx(x,{color:"geekblue",children:t("authorised.command_filter.rule.type.command")}))},{title:t("authorised.command_filter.rule.match_content"),key:"command",dataIndex:"command",sorter:!0},{title:t("identity.policy.action.label"),key:"action",dataIndex:"action",hideInSearch:!0,render:(r=>{switch(r){case"allow":return e.jsx(x,{color:"green",children:t("identity.policy.action.allow")});case"reject":return e.jsx(x,{color:"red",children:t("identity.policy.action.reject")})}})},{title:t("general.status"),key:"enabled",dataIndex:"enabled",hideInSearch:!0,render:(r=>r===!0?e.jsx(S,{status:"processing",text:t("general.enabled")}):e.jsx(S,{status:"default",text:t("general.disabled")}))},{title:t("actions.label"),valueType:"option",key:"option",render:(r,y,C,j)=>[e.jsx(P,{onClick:()=>{n(!0),a(y.id)},children:t("actions.edit")},"edit"),e.jsx(K,{title:t("general.confirm_delete"),onConfirm:async()=>{await g.deleteById(y.id),i.current?.reload()},children:e.jsx(P,{danger:!0,children:t("actions.delete")},"delete")},"delete-confirm")]}];return e.jsxs("div",{children:[e.jsx(O,{columns:_,actionRef:i,request:async(r={},y,C)=>{let[j,k]=L(y),v={pageIndex:r.current,pageSize:r.pageSize,order:j,field:k,name:r.name,commandFilterId:o},I=await b.getPaging(v);return{data:I.items,success:!0,total:I.total}},rowKey:"id",search:{labelWidth:"auto"},pagination:{defaultPageSize:10,showSizeChanger:!0},dateFormatter:"string",headerTitle:t("authorised.command_filter.options.rule"),toolBarRender:()=>[e.jsx(z,{type:"primary",onClick:()=>{n(!0)},children:t("actions.new")},"button")]}),e.jsx(Q,{id:l,open:s,confirmLoading:m.isPending,handleCancel:()=>{n(!1),a(void 0)},handleOk:m.mutate})]})},oe=()=>{const t=U().commandFilterId,[i,s]=E();let n=G(i.get("activeKey"),"info"),{t:l}=h(),[a,d]=c.useState(n);const u=p=>{d(p),s({activeKey:p})},m=[{label:l("actions.detail"),key:"info",children:e.jsx(H,{id:t})},{label:l("authorised.command_filter.options.rule"),key:"rules",children:e.jsx(X,{id:t})}];return e.jsx("div",{className:"px-4",children:e.jsx(N,{activeKey:a,onChange:u,items:m})})};export{oe as default}; diff --git a/server/resource/build/assets/CommandFilterPage-DaXaMByx.js b/server/resource/build/assets/CommandFilterPage-DaXaMByx.js deleted file mode 100644 index a9a3f826c..000000000 --- a/server/resource/build/assets/CommandFilterPage-DaXaMByx.js +++ /dev/null @@ -1 +0,0 @@ -import{f as m,S as e,U as v,aK as I,aT as y,aI as T,aS as P,bI as F,bz as R,av as B}from"./antd-Afm2kNt7.js";import{c as w}from"./command-filter-api-BxXGNaHY.js";import{u as b,h as K,a as O}from"./index-DQXwuKC5.js";import{g as z}from"./sort-BOdE-yay.js";import{N as j}from"./NButton-DoPcvKBF.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";const A=w,_=({open:t,handleOk:o,handleCancel:u,confirmLoading:r,id:s})=>{const i=m.useRef(null);let{t:l}=b();const f=async()=>s?await A.getById(s):{};return e.jsx(v,{title:l(s?"actions.edit":"actions.new"),open:t,maskClosable:!1,destroyOnHidden:!0,onOk:()=>{i.current?.validateFields().then(async d=>{o(d)})},onCancel:()=>{u()},confirmLoading:r,children:e.jsxs(I,{formRef:i,request:f,submitter:!1,children:[e.jsx(y,{hidden:!0,name:"id"}),e.jsx(y,{name:"name",label:l("general.name"),rules:[{required:!0}]})]})})},c=w,G=()=>{const{t}=b(),o=m.useRef(null);let[u,r]=m.useState(!1),[s,i]=m.useState();const{message:l}=T.useApp();let d=K({mutationFn:async a=>{a.id?await c.updateById(a.id,a):await c.create(a)},onSuccess:()=>{i(void 0),r(!1),o.current?.reload()}}),g=O();const S=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:t("general.name"),dataIndex:"name",render:(a,n)=>e.jsx("a",{onClick:()=>{r(!0),i(n.id)},children:a})},{title:t("general.created_at"),key:"createdAt",dataIndex:"createdAt",valueType:"dateTime",hideInSearch:!0},{title:t("actions.label"),valueType:"option",key:"option",render:(a,n,k,x)=>[e.jsx(j,{onClick:()=>{r(!0),i(n.id)},children:t("actions.edit")},"edit"),e.jsx(P,{title:t("general.confirm_delete"),onConfirm:async()=>{await c.deleteById(n.id),o.current?.reload()},children:e.jsx(j,{danger:!0,children:t("actions.delete")},"delete")},"delete-confirm"),e.jsx(F,{onSelect:p=>{switch(p){case"command-filter-detail":g(`/command-filter/${n.id}?activeKey=info`);break;case"command-filter-rule":g(`/command-filter/${n.id}?activeKey=rules`);break}},menus:[{key:"command-filter-detail",name:t("actions.detail")},{key:"command-filter-rule",name:t("authorised.command_filter.options.rule")}]},"actionGroup")]}];return e.jsxs("div",{children:[e.jsx(R,{columns:S,actionRef:o,request:async(a={},n,k)=>{let[x,p]=z(n),C={pageIndex:a.current,pageSize:a.pageSize,order:x,field:p,name:a.name},h=await c.getPaging(C);return{data:h.items,success:!0,total:h.total}},rowKey:"id",search:{labelWidth:"auto"},pagination:{defaultPageSize:10,showSizeChanger:!0},dateFormatter:"string",headerTitle:t("menus.authorised.submenus.command_filter"),toolBarRender:()=>[e.jsx(B,{type:"primary",onClick:()=>{r(!0)},children:t("actions.new")},"button")]}),e.jsx(_,{id:s,open:u,confirmLoading:d.isPending,handleCancel:()=>{r(!1),i(void 0)},handleOk:d.mutate})]})};export{G as default}; diff --git a/server/resource/build/assets/CredentialPage-Die5iQYX.js b/server/resource/build/assets/CredentialPage-Die5iQYX.js deleted file mode 100644 index ec8447414..000000000 --- a/server/resource/build/assets/CredentialPage-Die5iQYX.js +++ /dev/null @@ -1 +0,0 @@ -import{f as d,S as e,U as T,aK as _,aT as m,aV as K,bH as O,c0 as S,bl as C,aU as A,av as j,aI as B,bi as I,bd as q,aS as M,bz as z}from"./antd-Afm2kNt7.js";import{c as k}from"./credential-api-DP_sN2cX.js";import{u as F,M as V,h as N}from"./index-DQXwuKC5.js";import{g as U}from"./sort-BOdE-yay.js";import{N as w}from"./NButton-DoPcvKBF.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";const b=k,E=({open:t,handleOk:u,handleCancel:h,confirmLoading:c,id:i})=>{const l=d.useRef(null);let{t:a}=F(),[x,p]=d.useState(!1),[y,o]=d.useState(!1);d.useEffect(()=>{t||(p(!1),o(!1))},[t]);const s=async()=>i?await b.getById(i):{type:"password"};return e.jsxs(T,{title:a(i?"actions.edit":"actions.new"),open:t,maskClosable:!1,destroyOnHidden:!0,onOk:()=>{l.current?.validateFields().then(async r=>{u(r)})},onCancel:()=>{h()},confirmLoading:c,children:[e.jsxs(_,{formRef:l,request:s,submitter:!1,children:[e.jsx(m,{hidden:!0,name:"id"}),e.jsx(m,{name:"name",label:a("general.name"),rules:[{required:!0}]}),e.jsx(K.Group,{label:a("assets.type"),name:"type",rules:[{required:!0}],options:[{label:a("assets.password"),value:"password"},{label:a("assets.private_key"),value:"private-key"}]}),e.jsx(m,{label:a("menus.identity.submenus.user"),name:"username",rules:[{required:!0}]}),e.jsx(O,{name:["type"],children:({type:r})=>{switch(r){case"private-key":return e.jsxs(e.Fragment,{children:[e.jsx(A,{label:a("assets.private_key"),name:"privateKey",fieldProps:{rows:4,allowClear:!0}}),e.jsxs("div",{className:"mb-4 -mt-2 flex items-center gap-2",children:[e.jsx(j,{color:"geekblue",variant:"filled",onClick:async()=>{l.current?.setFieldsValue({privateKey:`${await b.genPrivateKey()}`})},children:a("assets.generate_private_key")}),i&&e.jsx(j,{color:"purple",variant:"filled",onClick:async()=>{o(!0)},children:a("actions.view_private_key")})]}),e.jsx(m.Password,{label:a("assets.passphrase"),name:"passphrase",fieldProps:{iconRender:n=>n?e.jsx(S,{}):e.jsx(C,{}),visibilityToggle:{onVisibleChange:n=>{i&&n&&!x&&o(!0)}}}})]});case"password":return e.jsx(e.Fragment,{children:e.jsx(m.Password,{label:a("assets.password"),name:"password",fieldProps:{iconRender:n=>n?e.jsx(S,{}):e.jsx(C,{}),visibilityToggle:{onVisibleChange:n=>{i&&n&&!x&&o(!0)}}}})})}}})]}),e.jsx(V,{open:y,handleOk:async r=>{const n=await b.decrypt(i,r);l.current?.setFieldsValue(n),p(!0),o(!1)},handleCancel:()=>o(!1)})]})},f=k,X=()=>{const{t}=F(),u=d.useRef(null);let[h,c]=d.useState(!1),[i,l]=d.useState();const{message:a}=B.useApp();let p=N({mutationFn:async s=>{s.id?await f.updateById(s.id,s):await f.create(s)},onSuccess:()=>{u.current?.reload(),c(!1),l(void 0),y()}});function y(){a.open({type:"success",content:t("general.success")})}const o=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:t("general.name"),dataIndex:"name",hideInSearch:!0},{title:t("assets.type"),dataIndex:"type",key:"type",hideInSearch:!0,render:(s,r)=>s==="private-key"?e.jsx(I,{color:"green",children:t("assets.private_key")}):e.jsx(I,{color:"red",children:t("assets.password")})},{title:t("menus.identity.submenus.user"),dataIndex:"username",key:"username",hideInSearch:!0},{title:t("general.created_at"),key:"createdAt",dataIndex:"createdAt",valueType:"dateTime",hideInSearch:!0,width:191},{title:t("actions.label"),valueType:"option",key:"option",width:150,render:(s,r,n,v)=>[e.jsx(w,{disabled:r.type!=="private-key",onClick:async()=>{let g=await k.getPublicKey(r.id);q(g),y()},children:t("assets.copy_public_key")},"download-public-key"),e.jsx(w,{onClick:()=>{c(!0),l(r.id)},children:t("actions.edit")},"edit"),e.jsx(M,{title:t("general.confirm_delete"),onConfirm:async()=>{await f.deleteById(r.id),u.current?.reload()},children:e.jsx(w,{danger:!0,children:t("actions.delete")},"delete")},"delete-confirm")]}];return e.jsxs("div",{className:"",children:[e.jsx(z,{columns:o,actionRef:u,request:async(s={},r,n)=>{let[v,g]=U(r),R={pageIndex:s.current,pageSize:s.pageSize,order:v,field:g,keyword:s.keyword},P=await f.getPaging(R);return{data:P.items,success:!0,total:P.total}},rowKey:"id",options:{search:!0},search:!1,pagination:{defaultPageSize:10,showSizeChanger:!0},dateFormatter:"string",headerTitle:t("menus.resource.submenus.credential"),toolBarRender:()=>[e.jsx(j,{type:"primary",onClick:()=>{c(!0)},children:t("actions.new")},"button")]}),e.jsx(E,{id:i,open:h,confirmLoading:p.isPending,handleCancel:()=>{c(!1),l(void 0)},handleOk:p.mutate})]})};export{X as default}; diff --git a/server/resource/build/assets/DashboardPage-Im-9FWfr.js b/server/resource/build/assets/DashboardPage-Im-9FWfr.js deleted file mode 100644 index 421d2882c..000000000 --- a/server/resource/build/assets/DashboardPage-Im-9FWfr.js +++ /dev/null @@ -1,2 +0,0 @@ -var xe=Object.defineProperty;var be=(o,u,V)=>u in o?xe(o,u,{enumerable:!0,configurable:!0,writable:!0,value:V}):o[u]=V;var Y=(o,u,V)=>be(o,typeof u!="symbol"?u+"":u,V);import{cn as je,g as Ce,f as oe,S as t,bh as Ve}from"./antd-Afm2kNt7.js";import{v as ye,r as te,u as Ae,w as Ee,e as ae,aw as we,x as y,a7 as le,a8 as ue,a9 as ce,aa as de,ab as fe,ax as Oe,ay as Ne,az as me,aA as K,aB as Se,aC as z}from"./index-DQXwuKC5.js";import{s as Te}from"./session-api-mmDQqQeA.js";import{U as Fe,G as Re}from"./users-Bfyvg_N3.js";import{S as Pe}from"./server-DnjIV_zW.js";import{A as De,C as _e,X as Ue,b as se,P as Ie,a as Le}from"./charts-DWBuA5Za.js";import"./monaco-CA9D5Osg.js";import"./xterm-Buno8AXJ.js";const Me=[["circle",{cx:"6",cy:"19",r:"3",key:"1kj8tv"}],["path",{d:"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15",key:"1d8sl"}],["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}]],ke=ye("route",Me);const qe=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m4.243 5.21 14.39 12.472",key:"1c9a7c"}]],Ge=ye("shield-ban",qe);class Ke{constructor(){Y(this,"getTimeCounter",async()=>await te.get("/admin/dashboard/time-counter"));Y(this,"getDateCounter",async()=>await te.get("/admin/dashboard/date-counter"));Y(this,"getDateCounterV2",async()=>await te.get("/admin/dashboard/v2/date-counter"));Y(this,"getAssetTypes",async()=>await te.get("/admin/dashboard/asset-types"))}}let ie=new Ke;var X={},J={exports:{}},ze=J.exports,pe;function He(){return pe||(pe=1,(function(o,u){(function(V,E){E(u)})(ze,(function(V){var E=function(){return E=Object.assign||function(d){for(var s,c=1,m=arguments.length;ca.endVal;a.frameVal=b?a.endVal:a.frameVal,a.frameVal=Number(a.frameVal.toFixed(a.options.decimalPlaces)),a.printValue(a.frameVal),p1?a.options.decimal+H[1]:"",a.options.useGrouping){T="";for(var g=3,$=0,I=0,Z=b.length;I"u"?this.error?console.error(this.error,s):console.error("IntersectionObserver is not supported by this browser"):this.setupObserver())}return d.prototype.setupObserver=function(){var s=this,c=d.observedElements.get(this.el);c&&c.unobserve(),d.observedElements.set(this.el,this),this.observer=new IntersectionObserver((function(m){for(var a=0,l=m;as;var c=s-this.startVal;if(Math.abs(c)>this.options.smartEasingThreshold&&this.options.useEasing){this.finalEndVal=s;var m=this.countDown?1:-1;this.endVal=s+m*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=s,this.finalEndVal=null;this.finalEndVal!==null?this.useEasing=!1:this.useEasing=this.options.useEasing},d.prototype.start=function(s){this.error||(this.options.onStartCallback&&this.options.onStartCallback(),s&&(this.options.onCompleteCallback=s),this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},d.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},d.prototype.reset=function(){clearTimeout(this.autoAnimateTimeout),cancelAnimationFrame(this.rAF),this.paused=!0,this.once=!1,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},d.prototype.update=function(s){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(s),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,this.finalEndVal==null&&this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},d.prototype.printValue=function(s){var c;if(this.el){var m=this.formattingFn(s);!((c=this.options.plugin)===null||c===void 0)&&c.render?this.options.plugin.render(this.el,m):this.el.tagName==="INPUT"?this.el.value=m:this.el.tagName==="text"||this.el.tagName==="tspan"?this.el.textContent=m:this.el.innerHTML=m}},d.prototype.ensureNumber=function(s){return typeof s=="number"&&!isNaN(s)},d.prototype.validateValue=function(s){var c=Number(s);return this.ensureNumber(c)?c:(this.error="[CountUp] invalid start or end value: ".concat(s),null)},d.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},d.prototype.parse=function(s){var c=function(p){return p.replace(/([.,'  ])/g,"\\$1")},m=c(this.options.separator),a=c(this.options.decimal),l=s.replace(new RegExp(m,"g"),"").replace(new RegExp(a,"g"),".");return parseFloat(l)},d.observedElements=new WeakMap,d})();V.CountUp=v}))})(J,J.exports)),J.exports}var he;function $e(){if(he)return X;he=1,Object.defineProperty(X,"__esModule",{value:!0});var o=je(),u=He();function V(r,e){var n=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(n!=null){var i,f,h,O,A=[],x=!0,j=!1;try{if(h=(n=n.call(r)).next,e!==0)for(;!(x=(i=h.call(n)).done)&&(A.push(i.value),A.length!==e);x=!0);}catch(C){j=!0,f=C}finally{try{if(!x&&n.return!=null&&(O=n.return(),Object(O)!==O))return}finally{if(j)throw f}}return A}}function E(r,e){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(f){return Object.getOwnPropertyDescriptor(r,f).enumerable})),n.push.apply(n,i)}return n}function v(r){for(var e=1;e=0)&&(n[f]=r[f]);return n}function l(r,e){if(r==null)return{};var n=a(r,e),i,f;if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(r);for(f=0;f=0)&&Object.prototype.propertyIsEnumerable.call(r,i)&&(n[i]=r[i])}return n}function p(r,e){return b(r)||V(r,e)||D(r,e)||ne()}function b(r){if(Array.isArray(r))return r}function D(r,e){if(r){if(typeof r=="string")return T(r,e);var n=Object.prototype.toString.call(r).slice(8,-1);if(n==="Object"&&r.constructor&&(n=r.constructor.name),n==="Map"||n==="Set")return Array.from(r);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return T(r,e)}}function T(r,e){(e==null||e>r.length)&&(e=r.length);for(var n=0,i=new Array(e);n0?F.current=setTimeout(S,A*1e3):S(),j?.({pauseResume:R,reset:P,update:B})}),R=g(function(){w().pauseResume(),C?.({reset:P,start:Q,update:B})}),P=g(function(){w().el&&(F.current&&clearTimeout(F.current),w().reset(),_?.({pauseResume:R,start:Q,update:B}))}),B=g(function(S){w().update(S),U?.({pauseResume:R,reset:P,start:Q})}),Q=g(function(){P(),G()}),re=g(function(S){h&&(S&&P(),G())});return o.useEffect(function(){N.current?O&&re(!0):(N.current=!0,re())},[O,N,re,A,e.start,e.suffix,e.prefix,e.duration,e.separator,e.decimals,e.decimal,e.formattingFn]),o.useEffect(function(){return function(){P()}},[P]),{start:Q,pauseResume:R,reset:P,update:B,getCountUp:w}},ve=["className","redraw","containerProps","children","style"],ge=function(e){var n=e.className,i=e.redraw,f=e.containerProps,h=e.children,O=e.style,A=l(e,ve),x=o.useRef(null),j=o.useRef(!1),C=L(v(v({},A),{},{ref:x,startOnMount:typeof h!="function"||e.delay===0,enableReinitialize:!1})),_=C.start,U=C.reset,M=C.update,k=C.pauseResume,F=C.getCountUp,N=g(function(){_()}),q=g(function(R){e.preserveValue||U(),M(R)}),w=g(function(){if(typeof e.children=="function"&&!(x.current instanceof Element)){console.error(`Couldn't find attached element to hook the CountUp instance into! Try to attach "containerRef" from the render prop to a an Element, eg. .`);return}F()});o.useEffect(function(){w()},[w]),o.useEffect(function(){j.current&&q(e.end)},[e.end,q]);var G=i&&e;return o.useEffect(function(){i&&j.current&&N()},[N,i,G]),o.useEffect(function(){!i&&j.current&&N()},[N,i,e.start,e.suffix,e.prefix,e.duration,e.separator,e.decimals,e.decimal,e.className,e.formattingFn]),o.useEffect(function(){j.current=!0},[]),typeof h=="function"?h({countUpRef:x,start:_,reset:U,update:M,pauseResume:k,getCountUp:F}):o.createElement("span",m({className:n,ref:x,style:O},f),typeof e.start<"u"?F().formattingFn(e.start):"")};return X.default=ge,X.useCountUp=L,X}var Be=$e();const Qe=Ce(Be),We={rdp:{label:"RDP",color:"var(--chart-1)"},vnc:{label:"VNC",color:"var(--chart-2)"},ssh:{label:"SSH",color:"var(--chart-3)"},telnet:{label:"TELNET",color:"var(--chart-4)"},http:{label:"HTTP",color:"var(--chart-5)"}},st=()=>{let{t:o}=Ae();const{isMobile:u}=Ee();let[V,E]=oe.useState([]),v=ae({queryKey:["timeCounter"],queryFn:ie.getTimeCounter}),d=ae({queryKey:["dateCounter"],queryFn:ie.getDateCounterV2}),s=ae({queryKey:["assetTypes"],queryFn:ie.getAssetTypes});const c={login:{label:o("dashboard.login_times"),color:"var(--chart-1)"},user:{label:o("dashboard.active_users"),color:"var(--chart-2)"},asset:{label:o("dashboard.active_assets"),color:"var(--chart-3)"}};oe.useEffect(()=>{if(s.data&&Array.isArray(s.data)){let l=s.data.map(p=>({name:p.type.toLowerCase(),value:p.value,fill:`var(--color-${p.type.toLowerCase()})`}));E(l)}},[s.data]);let m=ae({queryKey:["sessions"],queryFn:()=>{let l={pageIndex:1,pageSize:5,status:"disconnected"};return Te.getPaging(l)}});const a=[{title:o("dashboard.login_failed_times"),value:v.data?.loginFailedTimes,icon:t.jsx(Ge,{className:"h-4 w-4"})},{title:o("dashboard.user_online_count"),value:v.data?.userOnlineCount,icon:t.jsx(Fe,{className:"h-4 w-4"})},{title:o("menus.log_audit.submenus.online_session"),value:v.data?.sessionOnlineCount,icon:t.jsx(we,{className:"h-4 w-4"})},{title:o("dashboard.gateway_active_count"),value:v.data?.gatewayActiveCount,icon:t.jsx(ke,{className:"h-4 w-4"})},{title:o("dashboard.asset_active_count"),value:v.data?.assetActiveCount,icon:t.jsx(Pe,{className:"h-4 w-4"})},{title:o("menus.resource.submenus.website"),value:v.data?.websiteTotalCount,icon:t.jsx(Re,{className:"h-4 w-4"})}];return t.jsxs("div",{className:y("px-4 space-y-4",u&&"px-2"),children:[t.jsx("div",{className:"font-medium",children:o("menus.dashboard.label")}),v.isLoading||d.isLoading||s.isLoading?t.jsx("div",{className:"flex justify-center items-center h-64",children:t.jsx("div",{className:"text-gray-500",children:"Loading..."})}):t.jsxs(t.Fragment,{children:[t.jsx("div",{className:y("grid gap-4",u?"grid-cols-2":"grid-cols-6"),children:a.map(l=>t.jsxs("div",{className:y("rounded-xl border",u?"p-3":"p-4"),children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("div",{className:y("font-medium",u&&"text-sm line-clamp-2"),children:l.title}),l.icon]}),t.jsx("div",{className:y("mt-2 font-bold",u?"text-base":"text-lg"),children:t.jsx(Qe,{delay:2,end:l.value??0})})]},l.title))}),t.jsx("div",{className:"font-medium",children:o("dashboard.date_counter")}),t.jsx("div",{className:y("rounded-xl border",u?"p-2":"p-4"),children:t.jsx(le,{config:c,className:y("aspect-auto w-full",u?"h-[200px]":"h-[250px]"),children:t.jsxs(De,{data:Array.isArray(d.data)?d.data:[],children:[t.jsxs("defs",{children:[t.jsxs("linearGradient",{id:"fillLogin",x1:"0",y1:"0",x2:"0",y2:"1",children:[t.jsx("stop",{offset:"5%",stopColor:"var(--color-login)",stopOpacity:.8}),t.jsx("stop",{offset:"95%",stopColor:"var(--color-login)",stopOpacity:.1})]}),t.jsxs("linearGradient",{id:"fillUser",x1:"0",y1:"0",x2:"0",y2:"1",children:[t.jsx("stop",{offset:"5%",stopColor:"var(--color-user)",stopOpacity:.8}),t.jsx("stop",{offset:"95%",stopColor:"var(--color-user)",stopOpacity:.1})]}),t.jsxs("linearGradient",{id:"fillAsset",x1:"0",y1:"0",x2:"0",y2:"1",children:[t.jsx("stop",{offset:"5%",stopColor:"var(--color-asset)",stopOpacity:.8}),t.jsx("stop",{offset:"95%",stopColor:"var(--color-asset)",stopOpacity:.1})]})]}),t.jsx(_e,{vertical:!1}),t.jsx(Ue,{dataKey:"date",tickLine:!1,axisLine:!1,tickMargin:8,minTickGap:32,tickFormatter:l=>new Date(l).toLocaleDateString()}),t.jsx(ue,{cursor:!1,content:t.jsx(ce,{labelFormatter:l=>new Date(l).toLocaleDateString(),indicator:"dot"})}),t.jsx(se,{dataKey:"login",type:"natural",fill:"url(#fillLogin)",stroke:"var(--color-login)",stackId:"a"}),t.jsx(se,{dataKey:"user",type:"natural",fill:"url(#fillUser)",stroke:"var(--color-user)",stackId:"b"}),t.jsx(se,{dataKey:"asset",type:"natural",fill:"url(#fillAsset)",stroke:"var(--color-asset)",stackId:"c"}),t.jsx(de,{content:t.jsx(fe,{})})]})})}),t.jsxs("div",{className:y("grid gap-4",u?"grid-cols-1":"grid-cols-3"),children:[t.jsxs("div",{className:y("space-y-4",!u&&"col-span-2"),children:[t.jsx("div",{className:"font-medium",children:o("dashboard.latest_session")}),t.jsx("div",{className:y("border rounded-xl",u?"p-2":"p-4"),children:t.jsx("div",{className:"overflow-x-auto",children:t.jsxs(Oe,{className:y(u?"min-h-[200px]":"min-h-[250px]"),children:[t.jsx(Ne,{children:t.jsxs(me,{children:[!u&&t.jsx(K,{className:"w-[100px] text-center",children:o("audit.client_ip")}),t.jsx(K,{className:"text-center",children:o("menus.identity.submenus.user")}),t.jsx(K,{className:"text-center",children:o("assets.protocol")}),t.jsx(K,{className:"text-center",children:o("menus.resource.submenus.asset")}),!u&&t.jsx(K,{className:"text-center",children:o("audit.connected_at")}),!u&&t.jsx(K,{className:"text-center",children:o("audit.connection_duration")})]})}),t.jsx(Se,{children:Array.isArray(m.data?.items)&&m.data.items.map(l=>t.jsxs(me,{children:[!u&&t.jsx(z,{className:"text-center p-2.5",children:l.clientIp}),t.jsx(z,{className:y("text-center",u?"p-1.5 text-xs":"p-2.5"),children:l.userAccount}),t.jsx(z,{className:y("text-center",u?"p-1.5 text-xs":"p-2.5"),children:l.protocol}),t.jsx(z,{className:y("text-center",u?"p-1.5 text-xs":"p-2.5"),children:u?t.jsxs("div",{className:"line-clamp-2",children:[l.username,"@",l.ip]}):`${l.username}@${l.ip}:${l.port}`}),!u&&t.jsxs(t.Fragment,{children:[t.jsx(z,{className:"text-center p-2.5",children:Ve(l.connectedAt).format("YYYY-MM-DD HH:mm:ss")}),t.jsx(z,{className:"text-center p-2.5",children:l.connectionDuration})]})]},l.id))})]})})})]}),t.jsxs("div",{className:"space-y-4",children:[t.jsx("div",{className:"font-medium",children:o("dashboard.asset_type")}),t.jsx("div",{className:y("rounded-xl border",u?"p-2":"p-4"),children:t.jsx(le,{config:We,className:y("mx-auto aspect-square",u?"max-h-[200px]":"max-h-[250px]"),children:t.jsxs(Ie,{children:[t.jsx(ue,{cursor:!1,content:t.jsx(ce,{hideLabel:!0})}),t.jsx(Le,{data:Array.isArray(V)?V:[],dataKey:"value",nameKey:"name",innerRadius:u?30:50}),t.jsx(de,{content:t.jsx(fe,{nameKey:"name"})})]})})})]})]})]})]})};export{st as default}; diff --git a/server/resource/build/assets/DatabaseAssetFacadePage-a0QWLTVr.js b/server/resource/build/assets/DatabaseAssetFacadePage-a0QWLTVr.js deleted file mode 100644 index 4307a2fb1..000000000 --- a/server/resource/build/assets/DatabaseAssetFacadePage-a0QWLTVr.js +++ /dev/null @@ -1 +0,0 @@ -import{S as e,aZ as a,av as o}from"./antd-Afm2kNt7.js";import{u as i,a as r}from"./index-DQXwuKC5.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";const m=()=>{let{t}=i(),s=r();return e.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},children:e.jsx(a,{status:"info",title:t("databaseAsset.notSupported"),subTitle:t("databaseAsset.notSupportedDesc"),extra:[e.jsx(o,{type:"primary",onClick:()=>s("/assets"),children:t("goToAssets")},"console")]})})};export{m as default}; diff --git a/server/resource/build/assets/DatabaseAssetPage-C5z0KjFF.js b/server/resource/build/assets/DatabaseAssetPage-C5z0KjFF.js deleted file mode 100644 index ebf1cee0d..000000000 --- a/server/resource/build/assets/DatabaseAssetPage-C5z0KjFF.js +++ /dev/null @@ -1 +0,0 @@ -import{f as o,S as e,a_ as F,av as v,au as C,aK as N,aT as m,aL as u,aU as k,aM as O,c0 as B,bl as z,bH as D,aI as G,bi as w,aS as M,bz as E}from"./antd-Afm2kNt7.js";import{u as P,M as K,h as $}from"./index-DQXwuKC5.js";import{d as A}from"./database-asset-api-BQeUyDt2.js";import{s as U}from"./ssh-gateway-api-D4569Eil.js";import{a as W}from"./agent-gateway-api-C9ZaxlKW.js";import{g as H}from"./gateway-group-api-nxpckHkj.js";import{N as q}from"./NButton-DoPcvKBF.js";import{g as L}from"./sort-BOdE-yay.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";const _=A,V=({open:t,handleOk:c,handleCancel:p,confirmLoading:x,id:i})=>{const{t:s}=P(),d=o.useRef(null),I=1200,[g,y]=o.useState(!1),[a,n]=o.useState(!1);o.useEffect(()=>{t||(y(!1),n(!1))},[t]);const b=async()=>i?await _.getById(i):{type:"mysql",port:3306,tags:[]},j=async()=>(await U.getAll()).map(l=>({label:l.name,value:l.id})),S=async()=>(await W.getAll()).map(l=>({label:l.name,value:l.id})),h=async()=>(await H.getAll()).map(l=>({label:l.name,value:l.id})),R=()=>{d.current?.validateFields().then(async r=>{r.gatewayType||(r.gatewayType="",r.gatewayId=""),c(r)})},T=e.jsxs(F,{size:8,children:[e.jsx(v,{onClick:p,children:s("actions.cancel")}),e.jsx(v,{type:"primary",loading:x,onClick:R,children:s("actions.save")})]});return e.jsxs(C,{title:s(i?"actions.edit":"actions.new"),extra:T,onClose:p,open:t,width:I,destroyOnHidden:!0,children:[e.jsx("div",{className:"flex h-full flex-col",children:e.jsx("div",{className:"flex-1 overflow-auto pr-1",children:e.jsxs(N,{formRef:d,request:b,submitter:!1,children:[e.jsx(m,{hidden:!0,name:"id"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsx("div",{className:"md:col-span-2",children:e.jsx(m,{name:"name",label:s("general.name"),rules:[{required:!0}]})}),e.jsx(u,{label:s("db.asset.type"),name:"type",rules:[{required:!0}],options:[{label:s("db.asset.type_mysql"),value:"mysql"},{label:s("db.asset.type_pg"),value:"pg",disabled:!0}]}),e.jsx(u,{label:s("assets.tags"),name:"tags",fieldProps:{mode:"tags"},showSearch:!0}),e.jsx("div",{className:"md:col-span-2",children:e.jsx(k,{label:s("general.remark"),name:"description",fieldProps:{rows:3}})})]}),e.jsxs("div",{className:"mt-4 grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"md:col-span-2 grid grid-cols-1 md:grid-cols-3 gap-4",children:[e.jsx("div",{className:"md:col-span-2",children:e.jsx(m,{name:"host",label:s("db.asset.host"),rules:[{required:!0}]})}),e.jsx(O,{name:"port",label:s("gateways.port"),min:1,max:65535,rules:[{required:!0}]})]}),e.jsx(m,{name:"username",label:s("menus.identity.submenus.user"),rules:[{required:!0}]}),e.jsx(m.Password,{label:s("assets.password"),name:"password",fieldProps:{iconRender:r=>r?e.jsx(B,{}):e.jsx(z,{}),visibilityToggle:{onVisibleChange:r=>{i&&r&&!g&&n(!0)}}}})]}),e.jsxs("div",{className:"mt-4 grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsx(u,{label:s("assets.gateway_type"),name:"gatewayType",options:[{label:s("assets.no_gateway"),value:""},{label:s("menus.gateway.submenus.ssh_gateway"),value:"ssh"},{label:s("menus.gateway.submenus.agent_gateway"),value:"agent"},{label:s("menus.gateway.submenus.gateway_group"),value:"group"}],fieldProps:{allowClear:!0}}),e.jsx(D,{name:["gatewayType"],children:({gatewayType:r})=>r==="ssh"?e.jsx(u,{label:s("menus.gateway.submenus.ssh_gateway"),name:"gatewayId",request:j,showSearch:!0,rules:[{required:!0}]},"ssh"):r==="agent"?e.jsx(u,{label:s("menus.gateway.submenus.agent_gateway"),name:"gatewayId",request:S,showSearch:!0,rules:[{required:!0}]},"agent"):r==="group"?e.jsx(u,{label:s("menus.gateway.submenus.gateway_group"),name:"gatewayId",request:h,showSearch:!0,rules:[{required:!0}]},"group"):e.jsx("div",{})})]})]})})}),e.jsx(K,{open:a,handleOk:async r=>{if(!i)return;const l=await _.decrypt(i,r);d.current?.setFieldsValue({password:l.password}),y(!0),n(!1)},handleCancel:()=>n(!1)})]})},f=A,ie=()=>{const{t}=P(),c=o.useRef(null),{message:p}=G.useApp(),[x,i]=o.useState(!1),[s,d]=o.useState(),g=$({mutationFn:async a=>{a.id?await f.updateById(a.id,a):await f.create(a)},onSuccess:()=>{c.current?.reload(),i(!1),d(void 0),p.success(t("general.success"))}}),y=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:t("general.name"),dataIndex:"name",hideInSearch:!0,ellipsis:!0},{title:t("db.asset.type"),dataIndex:"type",hideInSearch:!0,render:a=>a==="mysql"?e.jsx(w,{color:"blue",children:t("db.asset.type_mysql")}):a==="pg"?e.jsx(w,{color:"purple",children:t("db.asset.type_pg")}):e.jsx(w,{children:a}),width:120},{title:t("db.asset.host"),dataIndex:"host",render:(a,n)=>`${n.host}:${n.port}`,hideInSearch:!0},{title:t("menus.identity.submenus.user"),dataIndex:"username",hideInSearch:!0},{title:t("assets.gateway_type"),dataIndex:"gatewayType",hideInSearch:!0,render:a=>a?a==="ssh"?t("menus.gateway.submenus.ssh_gateway"):a==="agent"?t("menus.gateway.submenus.agent_gateway"):a==="group"?t("menus.gateway.submenus.gateway_group"):a:"-"},{title:t("assets.tags"),dataIndex:"tags",hideInSearch:!0,render:a=>!a||a==="-"?"-":e.jsx(e.Fragment,{children:a.map(n=>e.jsx(w,{children:n},n))})},{title:t("general.created_at"),dataIndex:"createdAt",valueType:"dateTime",sorter:!0,hideInSearch:!0,width:190},{title:t("actions.label"),valueType:"option",key:"option",width:120,render:(a,n)=>[e.jsx(q,{onClick:()=>{i(!0),d(n.id)},children:t("actions.edit")},"edit"),e.jsx(M,{title:t("general.confirm_delete"),onConfirm:async()=>{await f.deleteById(n.id),c.current?.reload()},children:e.jsx(q,{danger:!0,children:t("actions.delete")},"delete")},"delete_confirm")]}];return e.jsxs("div",{children:[e.jsx(E,{columns:y,actionRef:c,request:async(a={},n)=>{const[b,j]=L(n),S={pageIndex:a.current,pageSize:a.pageSize,order:b,field:j,keyword:a.keyword},h=await f.getPaging(S);return{data:h.items,success:!0,total:h.total}},rowKey:"id",options:{search:!0},search:!1,pagination:{defaultPageSize:10,showSizeChanger:!0},dateFormatter:"string",headerTitle:t("menus.resource.submenus.database_asset"),toolBarRender:()=>[e.jsx(v,{type:"primary",onClick:()=>i(!0),children:t("actions.new")},"button")]}),e.jsx(V,{id:s,open:x,confirmLoading:g.isPending,handleCancel:()=>{i(!1),d(void 0)},handleOk:g.mutate})]})};export{ie as default}; diff --git a/server/resource/build/assets/DatabaseSQLLogPage-D3ObzhHj.js b/server/resource/build/assets/DatabaseSQLLogPage-D3ObzhHj.js deleted file mode 100644 index 3cfc241a3..000000000 --- a/server/resource/build/assets/DatabaseSQLLogPage-D3ObzhHj.js +++ /dev/null @@ -1 +0,0 @@ -var f=Object.defineProperty;var I=(e,t,o)=>t in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var d=(e,t,o)=>I(e,typeof t!="symbol"?t+"":t,o);import{f as _,aI as S,S as s,bi as i,b2 as m,a$ as w,bz as y,av as q}from"./antd-Afm2kNt7.js";import{q as j,r as p,u as k,h as T}from"./index-DQXwuKC5.js";import{g as A}from"./sort-BOdE-yay.js";import{c as L,U as v}from"./QuerySelects-HiP3pg4d.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";import"./user-api-BJxKseSg.js";import"./department-api-fa0GHZbt.js";import"./asset-api-1abjsV5s.js";import"./website-api-CiGWjL7L.js";import"./database-asset-api-BQeUyDt2.js";class P{constructor(){d(this,"group","admin/database-sql-logs");d(this,"paging",async t=>{const o=j.stringify(t);return await p.get(`/${this.group}/paging?${o}`)});d(this,"clear",async()=>{await p.post(`/${this.group}/clear`)})}}const g=new P,{Text:z}=w,C=e=>{if(!e)return"";let t=e.trimStart();for(;t.startsWith("/*");){const o=t.indexOf("*/");if(o===-1)break;const c=t.slice(0,o+2);if(!/ApplicationName\s*=/.test(c))break;t=t.slice(o+2).trimStart()}return t},G=()=>{const{t:e}=k(),t=_.useRef(null),{modal:o}=S.useApp(),c=T({mutationFn:g.clear,onSuccess:()=>{t.current?.reload()}}),x=(a,r)=>{const n={success:{color:"success",label:e("general.success")},failed:{color:"error",label:e("general.failed")},blocked:{color:"warning",label:e("db.sql_log.status.blocked")}}[a]||{color:"default",label:a};return(a==="failed"||a==="blocked")&&r?s.jsx(m,{title:r,children:s.jsx(i,{color:n.color,children:n.label})}):s.jsx(i,{color:n.color,children:n.label})},h=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:e("menus.resource.submenus.database_asset"),dataIndex:"assetName",hideInSearch:!1,renderFormItem:(a,{type:r,...l})=>r==="form"?null:s.jsx(L,{...l}),formItemProps:{name:"assetId"},ellipsis:!0},{title:e("db.asset.database"),dataIndex:"database",hideInSearch:!0,ellipsis:!0},{title:e("menus.identity.submenus.user"),dataIndex:"userName",renderFormItem:(a,{type:r,...l})=>r==="form"?null:s.jsx(v,{...l}),formItemProps:{name:"userId"}},{title:e("audit.accessLog.stats.table.referer"),dataIndex:"source",valueEnum:{proxy:{text:e("db.sql_log.source.proxy")},"work-order":{text:e("db.sql_log.source.work_order")}},render:(a,r)=>r.source==="proxy"?s.jsx(i,{color:"blue",children:e("db.sql_log.source.proxy")}):r.source==="work-order"?s.jsx(i,{color:"purple",children:e("db.sql_log.source.work_order")}):s.jsx(i,{children:r.source}),width:80},{title:e("general.status"),dataIndex:"status",valueEnum:{success:{text:e("general.success")},failed:{text:e("general.failed")},blocked:{text:e("db.sql_log.status.blocked")}},render:(a,r)=>x(r.status,r.errorMessage),width:80},{title:e("db.sql_log.duration_ms"),dataIndex:"durationMs",hideInSearch:!0,width:120},{title:e("db.sql_log.rows_affected"),dataIndex:"rowsAffected",hideInSearch:!0,width:120},{title:e("audit.client_ip"),dataIndex:"clientIp",hideInSearch:!0,width:140},{title:e("db.sql_log.sql"),dataIndex:"sql",hideInSearch:!0,render:(a,r)=>{const l=C(r.sql);return l?s.jsx(m,{title:l,placement:"topLeft",children:s.jsx(z,{ellipsis:!0,style:{maxWidth:300},children:l})}):"-"}},{title:e("general.created_at"),dataIndex:"createdAt",valueType:"dateTime",hideInSearch:!0,sorter:!0,width:180}];return s.jsx("div",{children:s.jsx(y,{columns:h,actionRef:t,request:async(a={},r)=>{const[l,n]=A(r),b={pageIndex:a.current,pageSize:a.pageSize,order:l,field:n,assetId:a.assetId,userId:a.userId,status:a.status,source:a.source},u=await g.paging(b);return{data:u.items,success:!0,total:u.total}},rowKey:"id",search:{labelWidth:"auto"},scroll:{x:"max-content"},pagination:{defaultPageSize:10,showSizeChanger:!0},dateFormatter:"string",headerTitle:e("menus.log_audit.submenus.database_sql_log"),toolBarRender:()=>[s.jsx(q,{type:"primary",danger:!0,onClick:()=>{o.confirm({title:e("general.clear_confirm"),onOk:async()=>c.mutate()})},children:e("actions.clear")},"clear")]})})};export{G as default}; diff --git a/server/resource/build/assets/DatabaseWorkOrderPage-Caoq0Mdz.js b/server/resource/build/assets/DatabaseWorkOrderPage-Caoq0Mdz.js deleted file mode 100644 index 8f3fb79cd..000000000 --- a/server/resource/build/assets/DatabaseWorkOrderPage-Caoq0Mdz.js +++ /dev/null @@ -1 +0,0 @@ -import{f as i,aI as C,S as a,ay as O,b2 as b,a$ as R,aS as F,bz as P,U as L,aO as M,bi as _}from"./antd-Afm2kNt7.js";import{u as W,e as z,h as x,aj as N}from"./index-DQXwuKC5.js";import{d as l}from"./db-work-order-api-Bt-h8Gzk.js";import{N as g}from"./NButton-DoPcvKBF.js";import{g as E}from"./sort-BOdE-yay.js";import{U}from"./QuerySelects-HiP3pg4d.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";import"./user-api-BJxKseSg.js";import"./department-api-fa0GHZbt.js";import"./asset-api-1abjsV5s.js";import"./website-api-CiGWjL7L.js";import"./database-asset-api-BQeUyDt2.js";const{Text:k}=R,re=()=>{const{t:e}=W(),n=i.useRef(null),{modal:y,message:d}=C.useApp(),[v,u]=i.useState(!1),[c,p]=i.useState(""),[j,m]=i.useState(void 0),f=z({queryKey:["portal-database-assets"],queryFn:()=>N.databaseAssets(),refetchOnWindowFocus:!1}),S=x({mutationFn:t=>l.approve(t),onSuccess:()=>{n.current?.reload(),d.success(e("general.success"))}}),w=x({mutationFn:t=>l.reject(t.id,t.reason),onSuccess:()=>{n.current?.reload(),u(!1),p(""),m(void 0),d.success(e("general.success"))}}),q=x({mutationFn:t=>l.deleteById(t),onSuccess:()=>{n.current?.reload(),d.success(e("general.success"))}}),T=(t,r)=>{const o={pending:{color:"processing",label:e("db.work_order.status.pending")},approved:{color:"blue",label:e("db.work_order.status.approved")},rejected:{color:"red",label:e("db.work_order.status.rejected")},executed:{color:"green",label:e("db.work_order.status.executed")},failed:{color:"red",label:e("db.work_order.status.failed")}}[t]||{color:"default",label:t};return(t==="failed"||t==="rejected")&&r?a.jsx(b,{title:r,children:a.jsx(_,{color:o.color,children:o.label})}):a.jsx(_,{color:o.color,children:o.label})},A=[{title:e("menus.resource.submenus.database_asset"),dataIndex:"assetName",formItemProps:{name:"assetId"},renderFormItem:(t,{type:r,...s})=>r==="form"?null:a.jsx(O,{allowClear:!0,showSearch:!0,placeholder:e("menus.resource.submenus.database_asset"),loading:f.isLoading,options:(Array.isArray(f.data)?f.data:[]).map(o=>({label:o.name,value:o.id})),filterOption:(o,h)=>(h?.label??"").toString().toLowerCase().includes(o.toLowerCase()),...s}),ellipsis:!0,fixed:"left"},{title:e("db.asset.database"),dataIndex:"database",hideInSearch:!0,ellipsis:!0},{title:e("db.sql_log.sql"),dataIndex:"sql",hideInSearch:!0,render:t=>t?a.jsx(b,{title:t,placement:"topLeft",children:a.jsx(k,{ellipsis:!0,style:{maxWidth:260},children:t})}):"-"},{title:e("db.work_order.reason"),dataIndex:"requestReason",hideInSearch:!0,render:t=>t?a.jsx(b,{title:t,placement:"topLeft",children:a.jsx(k,{ellipsis:!0,style:{maxWidth:220},children:t})}):"-"},{title:e("db.work_order.requester"),dataIndex:"requesterName",formItemProps:{name:"requesterId"},renderFormItem:(t,{type:r,...s})=>r==="form"?null:a.jsx(U,{...s}),render:t=>t||"-"},{title:e("general.status"),dataIndex:"status",valueEnum:{pending:{text:e("db.work_order.status.pending")},approved:{text:e("db.work_order.status.approved")},rejected:{text:e("db.work_order.status.rejected")},executed:{text:e("db.work_order.status.executed")},failed:{text:e("db.work_order.status.failed")}},render:(t,r)=>T(r.status,r.errorMessage||r.reason),width:120},{title:e("db.sql_log.rows_affected"),dataIndex:"rowsAffected",hideInSearch:!0,width:120},{title:e("db.work_order.approver"),dataIndex:"approverName",hideInSearch:!0,width:120},{title:e("general.created_at"),dataIndex:"createdAt",valueType:"dateTime",hideInSearch:!0,sorter:!0,width:180},{title:e("sysops.logs.exec_at"),dataIndex:"executedAt",valueType:"dateTime",hideInSearch:!0,width:180},{title:e("actions.label"),valueType:"option",key:"option",width:160,fixed:"right",render:(t,r)=>{const s=[];return r.status==="pending"&&(s.push(a.jsx(g,{onClick:()=>{y.confirm({title:e("db.work_order.approve_confirm"),onOk:async()=>S.mutate(r.id)})},children:e("db.work_order.approve")},"approve")),s.push(a.jsx(g,{danger:!0,onClick:()=>{u(!0),m(r.id)},children:e("identity.policy.action.reject")},"reject"))),r.status!=="approved"&&s.push(a.jsx(F,{title:e("general.confirm_delete"),onConfirm:()=>q.mutate(r.id),children:a.jsx(g,{danger:!0,children:e("actions.delete")},"delete")},"delete-confirm")),s}}];return a.jsxs("div",{children:[a.jsx(P,{columns:A,actionRef:n,request:async(t={},r)=>{const[s,o]=E(r),h={pageIndex:t.current,pageSize:t.pageSize,order:s,field:o,status:t.status,assetId:t.assetId,requesterId:t.requesterId},I=await l.paging(h);return{data:I.items,success:!0,total:I.total}},rowKey:"id",search:{labelWidth:"auto"},pagination:{defaultPageSize:10,showSizeChanger:!0},scroll:{x:"max-content"},dateFormatter:"string",headerTitle:e("menus.resource.submenus.db_work_order")}),a.jsx(L,{title:e("identity.policy.action.reject"),open:v,onOk:()=>{if(j){if(!c.trim()){d.error(e("db.work_order.reject_reason"));return}w.mutate({id:j,reason:c})}},onCancel:()=>{u(!1),p(""),m(void 0)},confirmLoading:w.isPending,children:a.jsx(M.TextArea,{rows:4,value:c,onChange:t=>p(t.target.value),placeholder:e("db.work_order.reject_reason")})})]})};export{re as default}; diff --git a/server/resource/build/assets/DatabaseWorkOrderUserPage-B2ycCPZM.js b/server/resource/build/assets/DatabaseWorkOrderUserPage-B2ycCPZM.js deleted file mode 100644 index a543285cb..000000000 --- a/server/resource/build/assets/DatabaseWorkOrderUserPage-B2ycCPZM.js +++ /dev/null @@ -1 +0,0 @@ -import{f as n,S as r,U as T,aK as q,aL as P,aT as A,aU as g,aI as F,b2 as m,a$ as N,bz as C,av as M,bi as w}from"./antd-Afm2kNt7.js";import{u as v,aj as O,w as R,a4 as W,h as z,x as j}from"./index-DQXwuKC5.js";import{a as k}from"./db-work-order-api-Bt-h8Gzk.js";import{g as L}from"./sort-BOdE-yay.js";import{F as B}from"./FacadeSearchBar-DPZw3dye.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";const E=({open:e,handleOk:t,handleCancel:x,confirmLoading:c})=>{const{t:s}=v(),o=n.useRef(null),[u,p]=n.useState([]);return n.useEffect(()=>{if(!e){o.current?.resetFields();return}O.databaseAssets().then(p).catch(()=>p([]))},[e]),r.jsx(T,{title:s("db.work_order.new"),open:e,maskClosable:!1,destroyOnHidden:!0,onOk:()=>{o.current?.validateFields().then(async d=>{t(d)})},onCancel:x,confirmLoading:c,children:r.jsxs(q,{formRef:o,submitter:!1,children:[r.jsx(P,{label:s("menus.resource.submenus.database_asset"),name:"assetId",rules:[{required:!0}],fieldProps:{showSearch:!0,options:u.map(d=>({label:d.name,value:d.id})),filterOption:(d,b)=>(b?.label??"").toString().toLowerCase().includes(d.toLowerCase())}}),r.jsx(A,{label:s("db.asset.database"),name:"database",rules:[{required:!0}],placeholder:s("db.work_order.database_placeholder")}),r.jsx(g,{label:s("db.sql_log.sql"),name:"sql",rules:[{required:!0}],fieldProps:{rows:6}}),r.jsx(g,{label:s("db.work_order.reason"),name:"requestReason",rules:[{required:!0}],fieldProps:{rows:3},placeholder:s("db.work_order.reason_placeholder")})]})})},{Text:_}=N,V=()=>{const{t:e}=v(),{isMobile:t}=R(),{message:x}=F.useApp(),c=n.useRef(null),[s,o]=n.useState(!1),[u,p]=n.useState(""),d=n.useMemo(()=>W(()=>{c.current?.reload()},300),[]),b=z({mutationFn:k.create,onSuccess:()=>{c.current?.reload(),o(!1),x.success(e("general.success"))}}),I=(a,l)=>{const i={pending:{color:"processing",label:e("db.work_order.status.pending")},approved:{color:"blue",label:e("db.work_order.status.approved")},rejected:{color:"red",label:e("db.work_order.status.rejected")},executed:{color:"green",label:e("db.work_order.status.executed")},failed:{color:"red",label:e("db.work_order.status.failed")}}[a]||{color:"default",label:a};return(a==="failed"||a==="rejected")&&l?r.jsx(m,{title:l,children:r.jsx(w,{color:i.color,children:i.label})}):r.jsx(w,{color:i.color,children:i.label})},S=[{dataIndex:"index",valueType:"indexBorder",width:48,hideInTable:t},{title:e("menus.resource.submenus.database_asset"),dataIndex:"assetName",hideInSearch:!0,ellipsis:!0},{title:e("db.asset.database"),dataIndex:"database",hideInSearch:!0,ellipsis:!0},{title:e("db.sql_log.sql"),dataIndex:"sql",hideInSearch:!0,render:a=>a?r.jsx(m,{title:a,placement:"topLeft",children:r.jsx(_,{ellipsis:!0,style:{maxWidth:260},children:a})}):"-"},{title:e("db.work_order.reason"),dataIndex:"requestReason",hideInSearch:!0,render:a=>a?r.jsx(m,{title:a,placement:"topLeft",children:r.jsx(_,{ellipsis:!0,style:{maxWidth:220},children:a})}):"-"},{title:e("general.status"),dataIndex:"status",valueEnum:{pending:{text:e("db.work_order.status.pending")},approved:{text:e("db.work_order.status.approved")},rejected:{text:e("db.work_order.status.rejected")},executed:{text:e("db.work_order.status.executed")},failed:{text:e("db.work_order.status.failed")}},render:(a,l)=>I(l.status,l.errorMessage||l.reason),width:120},{title:e("db.sql_log.rows_affected"),dataIndex:"rowsAffected",hideInSearch:!0,width:120},{title:e("db.work_order.approver"),dataIndex:"approverName",hideInSearch:!0,width:120},{title:e("general.created_at"),dataIndex:"createdAt",valueType:"dateTime",hideInSearch:!0,sorter:!0,width:180,hideInTable:t},{title:e("sysops.logs.exec_at"),dataIndex:"executedAt",valueType:"dateTime",hideInSearch:!0,width:180,hideInTable:t}];return r.jsxs("div",{className:j("px-4 lg:px-20",t&&"px-2"),children:[r.jsx("div",{className:j("py-6",t&&"p-4"),children:r.jsxs("div",{className:"rounded-2xl border border-slate-200/70 dark:border-slate-700/70 p-4 lg:p-5",children:[r.jsx("div",{className:"flex flex-col lg:flex-row lg:items-center lg:justify-between gap-3",children:r.jsx("div",{className:"flex flex-col gap-1",children:r.jsx("div",{className:"text-xl font-bold text-slate-900 dark:text-slate-100",children:e("menus.resource.submenus.db_work_order")})})}),r.jsx("div",{className:"pt-3",children:r.jsx(B,{value:u,onChange:a=>{p(a),d()}})})]})}),r.jsx("div",{className:"rounded-xl ring-1 ring-slate-200/60 dark:ring-slate-700/60 p-1",children:r.jsx(C,{columns:S,actionRef:c,request:async(a={},l)=>{const[h,i]=L(l),y={pageIndex:a.current,pageSize:a.pageSize,order:h,field:i,keyword:u.trim()||void 0},f=await k.paging(y);return{data:f.items,success:!0,total:f.total}},rowKey:"id",search:!1,pagination:{defaultPageSize:10,showSizeChanger:!t,simple:t},scroll:{x:"max-content"},dateFormatter:"string",headerTitle:null,toolBarRender:()=>[r.jsx(M,{type:"primary",size:"middle",onClick:()=>o(!0),children:e("db.work_order.new")},"button")],options:{density:!t,fullScreen:!t,reload:!0,setting:!t}})}),r.jsx(E,{open:s,confirmLoading:b.isPending,handleCancel:()=>o(!1),handleOk:b.mutate})]})};export{V as default}; diff --git a/server/resource/build/assets/DepartmentDetail-ByJ-vndZ.js b/server/resource/build/assets/DepartmentDetail-ByJ-vndZ.js deleted file mode 100644 index f1bdf9992..000000000 --- a/server/resource/build/assets/DepartmentDetail-ByJ-vndZ.js +++ /dev/null @@ -1 +0,0 @@ -import{S as t,bL as I,bi as d,a_ as b,f as g,b4 as j}from"./antd-Afm2kNt7.js";import{d as f}from"./department-api-fa0GHZbt.js";import{u as p,e as c,p as v,b as D,o as K}from"./index-DQXwuKC5.js";import{N as l}from"./NLink-Dl2yFaN4.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";const m=f,S=({active:n,id:r})=>{const{t:e}=p(),{data:a}=c({queryKey:["department",r],queryFn:()=>m.getById(r),enabled:n&&!!r}),{data:s}=c({queryKey:["department",a?.parentId],queryFn:()=>m.getById(a.parentId),enabled:n&&!!a?.parentId});return t.jsx(I,{column:1,title:e("actions.detail"),dataSource:a,columns:[{title:e("general.name"),dataIndex:"name",copyable:!0},{title:e("identity.department.parent"),dataIndex:"parentId",render:()=>a?.parentId?s?t.jsx(d,{color:"blue",children:s.name}):t.jsx(d,{color:"default",children:a.parentId}):t.jsx(d,{color:"green",children:e("identity.department.root")})},{title:e("assets.sort"),dataIndex:"weight"},{title:e("general.created_at"),dataIndex:"createdAt",valueType:"dateTime"},{title:"ID",dataIndex:"id",copyable:!0},{title:e("actions.authorized"),dataIndex:"authorisedLinks",render:()=>t.jsxs(b,{size:12,wrap:!0,children:[t.jsx(l,{to:`/authorised-asset?departmentId=${r}`,children:`${e("menus.resource.submenus.asset")}${e("actions.authorized")}`}),t.jsx(l,{to:`/authorised-website?departmentId=${r}`,children:`${e("menus.resource.submenus.website")}${e("actions.authorized")}`})]})}]})},A=()=>{const r=v().departmentId,[e,a]=D();let s=K(e.get("activeKey"),"detail"),[i,u]=g.useState(s),{t:h}=p();const x=o=>{u(o),a({activeKey:o})},y=[{label:h("actions.detail"),key:"detail",children:t.jsx(S,{active:i==="detail",id:r})}];return t.jsx("div",{className:"px-4",children:t.jsx(j,{activeKey:i,onChange:x,items:y})})};export{A as default}; diff --git a/server/resource/build/assets/DepartmentPage-CRl-pRy6.js b/server/resource/build/assets/DepartmentPage-CRl-pRy6.js deleted file mode 100644 index a0a1475ff..000000000 --- a/server/resource/build/assets/DepartmentPage-CRl-pRy6.js +++ /dev/null @@ -1 +0,0 @@ -import{bs as S,f as c,S as t,U as K,aO as z,bX as N,bY as R,bg as q,bM as V,bi as $,bI as Q,av as v,bz as G,aP as H}from"./antd-Afm2kNt7.js";import{u as F,e as b,h as D,a as W}from"./index-DQXwuKC5.js";import{d as I}from"./department-api-fa0GHZbt.js";import{u as U}from"./user-api-BJxKseSg.js";import{g as X}from"./sort-BOdE-yay.js";import{N as T}from"./NButton-DoPcvKBF.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";const Y=({id:e,open:i,confirmLoading:p,handleCancel:u,handleOk:j})=>{const{t:r}=F(),[s]=S.useForm(),[h,g]=c.useState(),{data:m}=b({queryKey:["department",e],queryFn:()=>I.getById(e),enabled:!!e&&i}),{data:y}=b({queryKey:["department-tree"],queryFn:()=>I.getTree(),enabled:i}),{data:f}=b({queryKey:["users-all"],queryFn:()=>U.getAll(),enabled:i});c.useEffect(()=>{m?(g(m),s.setFieldsValue({...m})):i&&!e&&(s.resetFields(),g(void 0))},[m,s,e,i]);const x=async()=>{try{const l=await s.validateFields(),a={...l,id:h?.id,leaders:l.leaders||[]};j(a)}catch(l){console.error("Validation failed:",l)}},w=(l,a)=>l.filter(d=>d.key!==a).map(d=>({title:d.title,value:d.value,children:d.children?w(d.children,a):void 0}));return t.jsx(K,{title:r(h?"actions.edit":"actions.new"),open:i,onOk:x,onCancel:u,confirmLoading:p,width:600,children:t.jsxs(S,{form:s,layout:"vertical",initialValues:{weight:0,leaders:[]},children:[t.jsx(S.Item,{label:r("general.name"),name:"name",rules:[{required:!0,message:r("general.name")+r("general.required")},{max:100,message:r("general.name")+r("general.max_length",{max:100})}],children:t.jsx(z,{placeholder:r("identity.department.name_placeholder")})}),t.jsx(S.Item,{label:r("identity.department.parent"),name:"parentId",children:t.jsx(N,{placeholder:r("identity.department.parent_placeholder"),allowClear:!0,showSearch:!0,treeDefaultExpandAll:!0,treeData:y?w(y,h?.id):[],filterTreeNode:(l,a)=>a?.title?.toLowerCase().includes(l.toLowerCase())})}),t.jsx(S.Item,{label:r("assets.sort"),name:"weight",tooltip:r("identity.department.weight_tooltip"),children:t.jsx(R,{min:0,max:9999,placeholder:r("identity.department.weight_placeholder"),style:{width:"100%"}})})]})})},J=({departmentId:e,departmentName:i,open:p,confirmLoading:u,handleCancel:j,handleOk:r})=>{const{t:s}=F(),[h,g]=c.useState([]),{data:m=[]}=b({queryKey:["users-all"],queryFn:()=>U.getAll(),enabled:p}),y=b({queryKey:["department-users",e],queryFn:()=>I.getDepartmentUsers(e),enabled:!!e&&p});c.useEffect(()=>{p||g([])},[p]),c.useEffect(()=>{y.data&&g(y.data)},[y.data]);const f=D({mutationFn:a=>I.setDepartmentUsers(e,a),onSuccess:()=>{q.success(s("general.success")),r()},onError:()=>{q.error(s("general.error"))}}),x=a=>{g(a)},w=()=>{f.mutate(h)},l=m.map(a=>({key:a.id,title:`${a.nickname} (${a.username})`,description:a.mail||a.username}));return t.jsx(K,{title:`${s("identity.department.manage_users")} - ${i}`,open:p,onOk:w,onCancel:j,confirmLoading:u||f.isPending,width:600,children:t.jsx(V,{dataSource:l,titles:[s("identity.user.available"),s("identity.user.selected")],targetKeys:h,onChange:x,render:a=>a.title,showSearch:!0,filterOption:(a,d)=>d.title.toLowerCase().includes(a.toLowerCase())||d.description&&d.description.toLowerCase().includes(a.toLowerCase()),listStyle:{width:250,height:300}})})},C=I,oe=()=>{const{t:e}=F(),i=c.useRef(null);let[p,u]=c.useState(!1),[j,r]=c.useState(),[s,h]=c.useState("table"),[g,m]=c.useState(!1),[y,f]=c.useState(),x=W();const[w,l]=q.useMessage(),{data:a,refetch:d}=b({queryKey:["department-tree"],queryFn:()=>C.getTree(),enabled:s==="tree"});let M=D({mutationFn:async n=>{n.id?await C.updateById(n.id,n):await C.create(n)},onSuccess:()=>{i.current?.reload(),d(),u(!1),r(void 0),_()}});const A=D({mutationFn:n=>C.deleteById(n),onSuccess:()=>{i.current?.reload(),d(),_()},onError:()=>{w.error(e("general.error"))}});function _(){w.open({type:"success",content:e("general.success")})}const E=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:e("general.name"),dataIndex:"name",render:(n,o)=>t.jsx("a",{onClick:()=>{u(!0),r(o.id)},children:n})},{title:e("identity.department.parent"),dataIndex:"parentId",hideInSearch:!0,render:(n,o)=>o.parentId?t.jsx($,{color:"blue",children:o.parentName}):t.jsx($,{color:"green",children:e("identity.department.root")})},{title:e("identity.department.user_count"),dataIndex:"userCount",hideInSearch:!0,width:100},{title:e("assets.sort"),dataIndex:"weight",hideInSearch:!0,width:100},{title:e("general.created_at"),key:"createdAt",dataIndex:"createdAt",valueType:"dateTime",hideInSearch:!0,width:191},{title:e("actions.label"),valueType:"option",key:"option",width:160,render:(n,o,B,O)=>[t.jsx(T,{onClick:()=>{r(o.id),u(!0)},children:e("actions.edit")},"edit"),t.jsx(T,{onClick:()=>{f(o),m(!0)},children:e("identity.department.manage_users")},"manage-users"),t.jsx(T,{onClick:()=>{A.mutate(o.id)},danger:!0,children:e("actions.delete")},"delete"),t.jsx(Q,{onSelect:k=>{switch(k){case"view-authorised-asset":x(`/authorised-asset?departmentId=${o.id}`);break;case"view-authorised-website":x(`/authorised-website?departmentId=${o.id}`);break}},menus:[{key:"view-authorised-asset",name:`${e("menus.resource.submenus.asset")}${e("actions.authorized")}`},{key:"view-authorised-website",name:`${e("menus.resource.submenus.website")}${e("actions.authorized")}`}]},"more")]}];return t.jsxs("div",{children:[t.jsx("div",{style:{marginLeft:16},children:t.jsxs(v.Group,{children:[t.jsx(v,{type:s==="table"?"primary":"default",onClick:()=>h("table"),children:e("identity.department.table_view")}),t.jsx(v,{type:s==="tree"?"primary":"default",onClick:()=>h("tree"),children:e("identity.department.tree_view")})]})}),s==="table"?t.jsx(G,{columns:E,actionRef:i,request:async(n={},o,B)=>{let[O,k]=X(o),P={pageIndex:n.current,pageSize:n.pageSize,order:O,field:k,name:n.name},L=await C.getPaging(P);return{data:L.items,success:!0,total:L.total}},rowKey:"id",search:{labelWidth:"auto"},pagination:{defaultPageSize:10,showSizeChanger:!0},dateFormatter:"string",headerTitle:e("menus.identity.submenus.department"),toolBarRender:()=>[t.jsx(v,{type:"primary",onClick:()=>{u(!0)},children:e("actions.new")},"button")]}):t.jsxs("div",{style:{background:"#fff",padding:24,borderRadius:8},children:[t.jsxs("div",{style:{marginBottom:16,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[t.jsx("h3",{children:e("identity.department.tree_structure")}),t.jsx(v,{type:"primary",onClick:()=>u(!0),children:e("actions.new")})]}),a&&t.jsx(H,{showLine:!0,showIcon:!0,defaultExpandAll:!0,treeData:a,onSelect:n=>{n.length>0&&x(`/department/${n[0]}`)}})]}),t.jsx(Y,{id:j,open:p,confirmLoading:M.isPending,handleCancel:()=>{u(!1),r(void 0)},handleOk:M.mutate}),t.jsx(J,{departmentId:y?.id,departmentName:y?.name,open:g,confirmLoading:!1,handleCancel:()=>{m(!1),f(void 0)},handleOk:()=>{m(!1),f(void 0),i.current?.reload()}}),l]})};export{oe as default}; diff --git a/server/resource/build/assets/ErrorPage-BYi3namZ.js b/server/resource/build/assets/ErrorPage-BYi3namZ.js deleted file mode 100644 index f11ba9224..000000000 --- a/server/resource/build/assets/ErrorPage-BYi3namZ.js +++ /dev/null @@ -1 +0,0 @@ -import{S as e,aG as a,aZ as i,a_ as n,av as t}from"./antd-Afm2kNt7.js";import{a as l,af as c,ag as p,y as m}from"./index-DQXwuKC5.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";const g=()=>{const o=l(),r=c();let s;return p(r)?s=r.statusText:r instanceof Error?s=r.message:typeof r=="string"?s=r:(console.error(r),s="Unknown error"),e.jsx(a,{hashPriority:"high",children:e.jsx("div",{children:e.jsx(i,{status:"error",title:s,extra:e.jsxs(n,{children:[e.jsx(t,{type:"primary",onClick:()=>{o(-1)},children:"Back"}),e.jsx(t,{type:"primary",children:e.jsx(m,{to:"/",children:"Home"})})]})})})})};export{g as default}; diff --git a/server/resource/build/assets/FacadeCardSkeleton-N6rktkuw.js b/server/resource/build/assets/FacadeCardSkeleton-N6rktkuw.js deleted file mode 100644 index 27cd1bed1..000000000 --- a/server/resource/build/assets/FacadeCardSkeleton-N6rktkuw.js +++ /dev/null @@ -1,2 +0,0 @@ -import{R as m,S as e,aP as k,b2 as g,bJ as N,a$ as v}from"./antd-Afm2kNt7.js";import{v as w,u as f,C as y,E as C,X as _,ak as n}from"./index-DQXwuKC5.js";import{c}from"./charts-DWBuA5Za.js";const F=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],A=w("external-link",F),E=s=>{let a=[];return Array.isArray(s)&&s.forEach(r=>{r.isLeaf||a.push(r.key),r.children&&(a=a.concat(E(r.children)))}),a},I=(s,a)=>{for(const r of s){if(r.key===a)return r;if(r.children){const t=I(r.children,a);if(t)return t}}return null},G=(s,a)=>{const r=[a],t=(i,d)=>{for(const l of i){if(l.key===d){l.children&&l.children.forEach(o=>{o.isLeaf||(r.push(o.key),t(l.children,o.key))});return}l.children&&t(l.children,d)}};return t(s,a),r},M=(s,a)=>a.includes(s)||s==="",S=m.memo(({title:s,treeData:a,selectedKey:r,onSelect:t,expandedKeys:i,onExpand:d,loading:l=!1})=>{const{t:o}=f(),p=x=>{x.length>0?t(x[0]):t("")};return e.jsxs("div",{className:"hidden lg:block rounded-2xl border border-slate-200/70 dark:border-slate-700/70 p-5 shadow-xl shadow-slate-200/50 dark:shadow-black/40",children:[e.jsx("div",{className:"mb-3 pb-3 border-b border-slate-200/60 dark:border-slate-700/60",children:e.jsx("h3",{className:"text-sm font-bold text-transparent bg-clip-text bg-gradient-to-r from-slate-900 to-slate-700 dark:from-slate-100 dark:to-slate-300",children:s})}),l?e.jsxs("div",{className:"flex items-center gap-2 text-sm text-slate-500 dark:text-slate-400",children:[e.jsx("div",{className:"w-4 h-4 border-2 border-slate-400 border-t-transparent rounded-full animate-spin"}),o("general.loading")]}):e.jsx(k,{treeData:a,expandedKeys:i,onExpand:d,selectedKeys:r?[r]:[],onSelect:p,blockNode:!0,className:"text-sm text-slate-700 dark:text-slate-200 [&_.ant-tree-node-selected]:bg-gradient-to-r [&_.ant-tree-node-selected]:from-blue-50 [&_.ant-tree-node-selected]:to-indigo-50 dark:[&_.ant-tree-node-selected]:from-blue-900/30 dark:[&_.ant-tree-node-selected]:to-indigo-900/30 [&_.ant-tree-node-selected]:border-l-2 [&_.ant-tree-node-selected]:border-blue-500"})]})});S.displayName="FacadeGroupTree";const b=m.memo(({name:s,logo:a,protocol:r,className:t})=>a&&a!==""?e.jsx("div",{className:c("w-12 h-12 flex-shrink-0",t),children:e.jsx("img",{className:"w-12 h-12 rounded-lg object-cover ring-1 ring-slate-200 dark:ring-slate-700",src:a,alt:"logo",loading:"eager"})}):e.jsx("div",{className:c("w-12 h-12 flex-shrink-0 rounded-lg flex items-center justify-center","text-white font-bold text-lg","ring-1 ring-white/10",y(r),t),children:s[0].toUpperCase()}));b.displayName="FacadeLogo";const T=m.memo(({item:s,type:a,onOpen:r,onAllowTempIP:t,allowLoading:i,className:d})=>{const{t:l}=f(),o=a==="website"&&!!s.attrs?.tempAllowEnabled,p=s.status==="inactive",x=s.users&&s.users.length>0,j=()=>a!=="asset"||!x?null:e.jsx(g,{title:s.users.join(` -`),children:e.jsxs("div",{className:"flex items-center gap-1 px-1.5 py-0.5 rounded-full bg-green-50 dark:bg-green-900/20 ring-1 ring-green-200 dark:ring-green-800",children:[e.jsx("div",{className:"w-1 h-1 rounded-full bg-green-500 animate-pulse"}),e.jsx("span",{className:"text-[10px] font-medium text-green-700 dark:text-green-300",children:l("facade.in_use")})]})}),u=()=>e.jsxs("div",{className:c("relative overflow-hidden h-full flex flex-col","rounded-xl","bg-white dark:bg-[#141414]","ring-1 ring-slate-200/60 dark:ring-slate-700/60","shadow-sm","dark:shadow-md","transition-all duration-200 ease-out","hover:shadow-md hover:ring-slate-300/60","dark:hover:shadow-lg dark:hover:ring-slate-600/60","hover:-translate-y-0.5",p&&"opacity-50"),children:[e.jsxs("div",{className:"absolute top-2.5 right-2.5 flex items-center gap-1.5 z-10",children:[a==="asset"&&j(),a==="asset"?e.jsx("span",{className:c("px-1.5 py-0.5 rounded text-[9px] font-bold tracking-wider uppercase","text-white shadow-sm",C(s.protocol)),children:s.protocol}):e.jsx("span",{className:"px-1.5 py-0.5 rounded text-[9px] font-semibold uppercase text-slate-600 dark:text-slate-300 bg-slate-100 dark:bg-slate-800",children:s.protocol})]}),e.jsxs("div",{className:"p-4 space-y-3 flex-1",children:[e.jsxs("div",{className:"flex gap-3",children:[e.jsx("div",{className:"flex-shrink-0",children:e.jsx(b,{name:s.name,logo:s.logo,protocol:s.protocol})}),e.jsxs("div",{className:"flex-1 min-w-0 space-y-0.5",children:[e.jsx(g,{title:s.name,children:e.jsx("h3",{className:"text-sm font-semibold text-slate-900 dark:text-slate-100 truncate pr-20",children:s.name})}),a==="asset"&&s.alias&&e.jsx(g,{title:s.alias,children:e.jsx("p",{className:"text-xs text-slate-600 dark:text-slate-400 truncate",children:s.alias})}),a==="asset"&&e.jsx(g,{title:s.address,children:e.jsx("p",{className:"text-xs text-slate-500 dark:text-slate-500 truncate font-mono",children:s.address})})]})]}),s.description&&e.jsx(N,{content:e.jsx("div",{onClick:h=>{if(a==="asset")return h.stopPropagation(),!1},children:e.jsx(v.Paragraph,{copyable:!0,style:{marginBottom:0,maxWidth:300},children:s.description})}),children:e.jsx("p",{className:"text-xs text-slate-600 dark:text-slate-400 line-clamp-2 leading-relaxed",children:s.description})}),s.tags&&s.tags.length>0&&e.jsx("div",{className:"flex flex-wrap gap-1.5",children:s.tags.map(h=>e.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded-md text-[11px] font-medium bg-slate-100 dark:bg-slate-800 text-slate-700 dark:text-slate-300 ring-1 ring-slate-200/50 dark:ring-slate-700/50",children:h},h))}),a==="website"&&e.jsxs("div",{className:"flex items-center gap-1.5 pt-3 mt-auto border-t border-slate-100 dark:border-slate-800",children:[e.jsxs("button",{onClick:()=>r?.(s.id),className:"cursor-pointer flex-1 inline-flex items-center justify-center gap-1.5 px-3 py-2 rounded-lg text-xs font-semibold text-slate-700 dark:text-slate-200 bg-slate-100 dark:bg-slate-800 hover:bg-slate-200 dark:hover:bg-slate-700 transition-all duration-150",children:[e.jsx(A,{className:"w-3.5 h-3.5"}),l("assets.access")]}),o&&e.jsx("button",{onClick:()=>t?.(s.id),disabled:i===s.id,className:"cursor-pointer inline-flex items-center justify-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-semibold text-slate-700 dark:text-slate-200 bg-slate-100 dark:bg-slate-800 hover:bg-slate-200 dark:hover:bg-slate-700 ring-1 ring-slate-200 dark:ring-slate-700 shadow-sm transition-all duration-150 disabled:opacity-50 disabled:cursor-not-allowed",children:i===s.id?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"w-3.5 h-3.5 border-2 border-slate-400 border-t-transparent rounded-full animate-spin"}),e.jsx("span",{className:"hidden sm:inline",children:l("facade.processing")})]}):e.jsxs(e.Fragment,{children:[e.jsx(_,{className:"w-3.5 h-3.5"}),e.jsx("span",{className:"hidden sm:inline",children:l("assets.temp_allow_action")})]})})]})]})]});return a==="website"?e.jsx("div",{className:c("group",d),children:u()}):e.jsx("div",{className:c("group",d),children:u()})});T.displayName="FacadeCard";const L=m.memo(({count:s=8})=>e.jsx(e.Fragment,{children:Array.from({length:s}).map((a,r)=>e.jsx("div",{className:"animate-in fade-in duration-500",style:{animationDelay:`${r*50}ms`},children:e.jsxs("div",{className:"rounded-xl ring-1 ring-slate-200/60 dark:ring-slate-700/60 bg-white dark:bg-[#141414] shadow-sm dark:shadow-md p-4 space-y-3",children:[e.jsxs("div",{className:"flex gap-3",children:[e.jsx(n,{className:"w-12 h-12 rounded-lg flex-shrink-0"}),e.jsxs("div",{className:"flex-1 min-w-0 space-y-1.5",children:[e.jsx(n,{className:"h-4 w-3/4"}),e.jsx(n,{className:"h-3 w-full"})]})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(n,{className:"h-3 w-full"}),e.jsx(n,{className:"h-3 w-2/3"})]}),e.jsxs("div",{className:"flex gap-1.5",children:[e.jsx(n,{className:"h-5 w-14 rounded-md"}),e.jsx(n,{className:"h-5 w-16 rounded-md"})]}),e.jsxs("div",{className:"flex gap-1.5 pt-2.5 border-t border-slate-100 dark:border-slate-800",children:[e.jsx(n,{className:"h-8 flex-1 rounded-lg"}),e.jsx(n,{className:"h-8 w-28 rounded-lg"})]})]})},r))}));L.displayName="FacadeCardSkeleton";export{T as F,G as a,S as b,M as c,L as d,I as f,E as g}; diff --git a/server/resource/build/assets/FacadeSearchBar-DPZw3dye.js b/server/resource/build/assets/FacadeSearchBar-DPZw3dye.js deleted file mode 100644 index 7228e554d..000000000 --- a/server/resource/build/assets/FacadeSearchBar-DPZw3dye.js +++ /dev/null @@ -1 +0,0 @@ -import{R as x,S as e}from"./antd-Afm2kNt7.js";import{u as n,al as i,am as h}from"./index-DQXwuKC5.js";const m=x.memo(({value:a,onChange:t,resultCount:s,totalCount:r,placeholder:d})=>{const{t:l}=n(),c=()=>{t("")};return e.jsx("div",{className:"rounded-2xl border border-slate-200/70 dark:border-slate-700/70 bg-white dark:bg-[#141414] px-3 py-2 shadow-sm",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"flex items-center justify-center h-8 w-8 rounded-xl bg-slate-100 dark:bg-slate-800 text-slate-500 dark:text-slate-300",children:e.jsx(i,{className:"h-4 w-4"})}),e.jsx("input",{type:"text",value:a,placeholder:d||l("general.search_placeholder"),className:"flex-1 bg-transparent text-sm text-slate-900 dark:text-slate-100 placeholder:text-slate-400 dark:placeholder:text-slate-500 focus:outline-none",onChange:o=>t(o.target.value)}),s!==void 0&&r!==void 0&&e.jsxs("span",{className:"rounded-full bg-slate-100 dark:bg-slate-800 px-2.5 py-1 text-xs font-medium text-slate-600 dark:text-slate-300",children:[s,"/",r]}),a&&e.jsx("button",{onClick:c,className:"p-1.5 rounded-lg text-slate-400 hover:text-slate-600 dark:hover:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors","aria-label":l("facade.clear_search"),children:e.jsx(h,{className:"h-3.5 w-3.5"})})]})})});m.displayName="FacadeSearchBar";export{m as F}; diff --git a/server/resource/build/assets/FileSystemLogPage-q2mkisVQ.js b/server/resource/build/assets/FileSystemLogPage-q2mkisVQ.js deleted file mode 100644 index 9d3600e7c..000000000 --- a/server/resource/build/assets/FileSystemLogPage-q2mkisVQ.js +++ /dev/null @@ -1 +0,0 @@ -var y=Object.defineProperty;var h=(e,t,r)=>t in e?y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var o=(e,t,r)=>h(e,typeof t!="symbol"?t+"":t,r);import{f as x,aI as f,S as i,bz as I,av as S}from"./antd-Afm2kNt7.js";import{g as w}from"./sort-BOdE-yay.js";import{A as k,r as v,u as A,h as T,y as l}from"./index-DQXwuKC5.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";class b extends k{constructor(){super("admin/filesystem-logs");o(this,"clear",async()=>{await v.post(`/${this.group}/clear`)})}}const u=new b,q=()=>{const{t:e}=A(),t=x.useRef(null);let{modal:r}=f.useApp(),d=T({mutationFn:u.clear,onSuccess:()=>{t.current?.reload()}});const c=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:e("menus.resource.submenus.asset"),key:"assetName",dataIndex:"assetName",hideInSearch:!0,render:((a,s)=>i.jsx(l,{to:`/asset?assetId=${s.assetId}`,children:a}))},{title:e("menus.identity.submenus.user"),key:"userName",dataIndex:"userName",hideInSearch:!0,render:((a,s)=>i.jsx(l,{to:`/user/${s.userId}`,children:a}))},{title:e("audit.action"),key:"action",dataIndex:"action",valueType:"select",valueEnum:{upload:{text:e("general.upload")},download:{text:e("authorised.strategy.download")},rename:{text:e("authorised.strategy.rename")},remove:{text:e("actions.delete")},"create-dir":{text:e("authorised.strategy.create_dir")},"create-file":{text:e("authorised.strategy.create_file")}},width:100},{title:e("audit.filename"),key:"fileName",dataIndex:"fileName",hideInSearch:!0},{title:e("audit.operation.at"),key:"createdAt",dataIndex:"createdAt",hideInSearch:!0,valueType:"dateTime"}];return i.jsx("div",{children:i.jsx(I,{defaultSize:"small",columns:c,actionRef:t,request:async(a={},s,j)=>{let[m,p]=w(s),g={pageIndex:a.current,pageSize:a.pageSize,order:m,field:p,action:a.action,username:a.username,clientIp:a.clientIp},n=await u.getPaging(g);return{data:n.items,success:!0,total:n.total}},rowKey:"id",search:{labelWidth:"auto"},pagination:{defaultPageSize:10,showSizeChanger:!0},dateFormatter:"string",headerTitle:e("menus.log_audit.submenus.filesystem_log"),toolBarRender:()=>[i.jsx(S,{type:"primary",danger:!0,onClick:()=>{r.confirm({title:e("general.clear_confirm"),onOk:async()=>d.mutate()})},children:e("actions.clear")},"clear")]})})};export{q as default}; diff --git a/server/resource/build/assets/GatewayGroupPage-Bz3t4FqF.js b/server/resource/build/assets/GatewayGroupPage-Bz3t4FqF.js deleted file mode 100644 index edc9b075c..000000000 --- a/server/resource/build/assets/GatewayGroupPage-Bz3t4FqF.js +++ /dev/null @@ -1 +0,0 @@ -import{aI as f,bs as v,f as p,S as t,au as I,aK as G,aT as A,aU as C,aV as _,b$ as T,bH as R,aL as B,aM as D,bO as M,bi as q,av as x,aS as k,bz as z,ci as O}from"./antd-Afm2kNt7.js";import{g}from"./gateway-group-api-nxpckHkj.js";import{s as V}from"./ssh-gateway-api-D4569Eil.js";import{a as E}from"./agent-gateway-api-C9ZaxlKW.js";import{u as j}from"./index-DQXwuKC5.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";const W=({open:a,group:i,onClose:l})=>{const{t:e}=j(),{message:c}=f.useApp(),[d]=v.useForm();p.useEffect(()=>{if(a&&i){let r=i.members;if(typeof r=="string")try{r=JSON.parse(r)}catch{r=[]}d.setFieldsValue({...i,members:r})}else a&&(d.resetFields(),d.setFieldsValue({selectionMode:"priority",members:[]}))},[a,i,d]);const u=async r=>{try{const s={...r,members:JSON.stringify(r.members||[])};i?.id?await g.updateById(i.id,s):await g.create(s),c.success(e("general.success")),l(!0)}catch(s){console.error("Submit failed:",s)}},y=async()=>(await V.getAll()).map(s=>({label:s.name,value:s.id})),w=async()=>(await E.getAll()).map(s=>({label:s.name,value:s.id}));return t.jsx(I,{title:e(i?"gateway_group.edit":"gateway_group.create"),width:720,open:a,onClose:()=>l(),destroyOnHidden:!0,children:t.jsxs(G,{form:d,onFinish:u,submitter:{searchConfig:{submitText:e("actions.confirm"),resetText:e("actions.cancel")},resetButtonProps:{onClick:()=>l()}},children:[t.jsx(A,{name:"name",label:e("gateway_group.name"),rules:[{required:!0}],placeholder:e("gateway_group.name_placeholder")}),t.jsx(C,{name:"description",label:e("general.description"),placeholder:e("gateway_group.description_placeholder")}),t.jsx(_.Group,{name:"selectionMode",label:e("gateway_group.selection_mode"),rules:[{required:!0}],options:[{label:e("gateway_group.mode_priority"),value:"priority"},{label:e("gateway_group.mode_latency"),value:"latency"},{label:e("gateway_group.mode_random"),value:"random"}]}),t.jsxs(T,{name:"members",label:e("gateway_group.members"),creatorButtonProps:{creatorButtonText:e("gateway_group.add_member")},min:1,copyIconProps:!1,itemRender:({listDom:r,action:s},{index:h})=>t.jsxs("div",{style:{marginBottom:16,padding:16,border:"1px solid #d9d9d9",borderRadius:4,position:"relative"},children:[t.jsx("div",{style:{position:"absolute",top:8,right:8},children:s}),t.jsxs("div",{style:{marginBottom:8,fontWeight:"bold"},children:[e("gateway_group.member")," ",h+1]}),r]}),children:[t.jsx(_.Group,{name:"gatewayType",label:e("assets.gateway_type"),rules:[{required:!0}],options:[{label:e("menus.gateway.submenus.ssh_gateway"),value:"ssh"},{label:e("menus.gateway.submenus.agent_gateway"),value:"agent"}]}),t.jsx(R,{name:["gatewayType"],children:({gatewayType:r})=>{if(!r)return null;const s=r==="ssh";return t.jsx(B,{name:"gatewayId",label:e(s?"menus.gateway.submenus.ssh_gateway":"menus.gateway.submenus.agent_gateway"),rules:[{required:!0}],request:s?y:w,params:{gatewayType:r},showSearch:!0},r)}}),t.jsx(D,{name:"priority",label:e("identity.policy.priority"),tooltip:e("gateway_group.priority_tooltip"),initialValue:0,min:0,fieldProps:{precision:0}}),t.jsx(M,{name:"enabled",label:e("general.enabled"),initialValue:!0})]})]})})},X=()=>{const{t:a}=j(),{message:i}=f.useApp(),l=p.useRef(null),[e,c]=p.useState(!1),[d,u]=p.useState(),y=()=>{u(void 0),c(!0)},w=o=>{u(o),c(!0)},r=async o=>{try{await g.deleteById(o),i.success(a("general.success")),l.current?.reload()}catch(n){console.error("Delete failed:",n)}},s=o=>{c(!1),u(void 0),o&&l.current?.reload()},h=o=>{if(!o)return[];if(Array.isArray(o))return o;try{return JSON.parse(o)}catch{return[]}},S=[{title:a("gateway_group.name"),dataIndex:"name",hideInSearch:!0,width:200},{title:a("gateway_group.selection_mode"),dataIndex:"selectionMode",width:120,render:(o,n)=>{const m={priority:{text:a("gateway_group.mode_priority"),color:"blue"},latency:{text:a("gateway_group.mode_latency"),color:"green"},random:{text:a("gateway_group.mode_random"),color:"orange"}}[n.selectionMode]||{text:n.selectionMode,color:"default"};return t.jsx(q,{color:m.color,children:m.text})}},{title:a("gateway_group.members"),dataIndex:"members",width:100,render:(o,n)=>{const b=h(n.members),m=b.filter(F=>F.enabled).length,P=b.length;return`${m}/${P}`}},{title:a("general.description"),dataIndex:"description",hideInSearch:!0,ellipsis:!0},{title:a("general.created_at"),dataIndex:"createdAt",width:180,valueType:"dateTime",hideInSearch:!0},{title:a("actions.label"),width:150,fixed:"right",valueType:"option",render:(o,n)=>[t.jsx(x,{type:"link",size:"small",onClick:()=>w(n),children:a("actions.edit")},"edit"),t.jsx(k,{title:a("general.confirm_delete"),onConfirm:()=>r(n.id),children:t.jsx(x,{type:"link",size:"small",danger:!0,children:a("actions.delete")})},"delete")]}];return t.jsxs(t.Fragment,{children:[t.jsx(z,{columns:S,actionRef:l,request:async o=>{const n=await g.getPaging({pageIndex:o.current||1,pageSize:o.pageSize||10,keyword:o.keyword});return{data:n.items,success:!0,total:n.total}},rowKey:"id",headerTitle:a("menus.gateway.submenus.gateway_group"),options:{search:!0},search:!1,pagination:{defaultPageSize:10,showSizeChanger:!0},toolBarRender:()=>[t.jsx(x,{type:"primary",icon:t.jsx(O,{}),onClick:y,children:a("actions.new")},"create")]}),t.jsx(W,{open:e,group:d,onClose:s})]})};export{X as default}; diff --git a/server/resource/build/assets/GuacdMonitor-BuR0ODFT.js b/server/resource/build/assets/GuacdMonitor-BuR0ODFT.js deleted file mode 100644 index d3fc73edb..000000000 --- a/server/resource/build/assets/GuacdMonitor-BuR0ODFT.js +++ /dev/null @@ -1 +0,0 @@ -import{f as o,S as c}from"./antd-Afm2kNt7.js";import{b as v,a3 as k,a2 as g,$ as E,I as T,m as W,q as j,a4 as z}from"./index-DQXwuKC5.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";const R=()=>{const[d]=v(),u=d.get("sessionId"),m=d.get("token");let[h,p]=o.useState(),[w,S]=o.useState(),[f,y]=o.useState();const b=e=>{let t=e.getDisplay().getWidth(),s=e.getDisplay().getHeight(),a=window.innerWidth,l=window.innerHeight,n=a/t,i=l/s;console.log(n,i);let r=Math.min(n,i);r&&e.getDisplay().scale(r)},x=e=>{let t=new g.WebSocketTunnel(`${E()}/admin/sessions/${e}/graphics-monitor`),s=new g.Client(t);t.onstatechange=y,s.onstatechange=p,s.onerror=S;const a=document.getElementById("display");a.innerHTML="";const l=s.getDisplay().getElement();a.appendChild(l);let n=T();W.hasText(m)&&(n=m);let i={"X-Auth-Token":n},r=j.stringify(i);return s.connect(r),s};return o.useEffect(()=>{let e=x(u),t=z(()=>{b(e)});return e.getDisplay().onresize=t,window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}},[u]),c.jsxs("div",{className:"h-screen w-screen overflow-hidden flex items-center justify-center relative bg-[#1b1b1b]",children:[c.jsx(k,{state:h,status:w,tunnelState:f,overlay:!0}),c.jsx("div",{id:"display"})]})};export{R as default}; diff --git a/server/resource/build/assets/GuacdPlayback-CFtamDo9.js b/server/resource/build/assets/GuacdPlayback-CFtamDo9.js deleted file mode 100644 index eb80b6f56..000000000 --- a/server/resource/build/assets/GuacdPlayback-CFtamDo9.js +++ /dev/null @@ -1 +0,0 @@ -import{f as s,S as e,b2 as x,cg as B,aH as he,T as me,ay as xe}from"./antd-Afm2kNt7.js";import{v as c,b as pe,u as fe,I as ke,m as ge,a2 as L,H as ye}from"./index-DQXwuKC5.js";import{t as z}from"./times-CQ9ir0Jv.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";const we=[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]],ve=c("maximize",we);const be=[["path",{d:"M8 3v3a2 2 0 0 1-2 2H3",key:"hohbtr"}],["path",{d:"M21 8h-3a2 2 0 0 1-2-2V3",key:"5jw1f3"}],["path",{d:"M3 16h3a2 2 0 0 1 2 2v3",key:"198tvr"}],["path",{d:"M16 21v-3a2 2 0 0 1 2-2h3",key:"ph8mxp"}]],je=c("minimize",be);const Me=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],Ne=c("pause",Me);const Se=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],Ce=c("play",Se);const Te=[["path",{d:"M17.971 4.285A2 2 0 0 1 21 6v12a2 2 0 0 1-3.029 1.715l-9.997-5.998a2 2 0 0 1-.003-3.432z",key:"15892j"}],["path",{d:"M3 20V4",key:"1ptbpl"}]],_e=c("skip-back",Te);const Pe=[["path",{d:"M21 4v16",key:"7j8fe9"}],["path",{d:"M6.029 4.285A2 2 0 0 0 3 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z",key:"zs4d6"}]],Ee=c("skip-forward",Pe);const ze=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]],Le=c("volume-2",ze);const De=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15",key:"1ewh16"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15",key:"5ykzw1"}]],Re=c("volume-x",De);L.Layer.prototype.toCanvas=function(){const i=this.getCanvas();if(!i||i.width===0||i.height===0){const a=document.createElement("canvas");return a.width=1,a.height=1,a}const d=document.createElement("canvas");return d.width=this.width,d.height=this.height,d.getContext("2d").drawImage(i,0,0),d};const Be=()=>{const[i]=pe(),d=i.get("sessionId"),y=i.get("token");let{t:a}=fe(),[D,U]=s.useState("00:00"),[G,K]=s.useState("00:00"),[w,R]=s.useState(0),[v,X]=s.useState(0),[b,O]=s.useState(1),[n,W]=s.useState(),[p,V]=s.useState(!1),[J,j]=s.useState(1),[M,Q]=s.useState(!1),[A,Y]=s.useState(!1),[$,Z]=s.useState(1),[f,H]=s.useState(!1),[ee,I]=s.useState(!1);const u=s.useRef(null),N=s.useRef(null),S=s.useRef(null);s.useEffect(()=>{let t=te(d);const r=o=>{if(!(o.target&&o.target.tagName==="INPUT"))switch(o.code){case"Space":o.preventDefault(),T();break;case"ArrowLeft":o.preventDefault(),g(-1e4);break;case"ArrowRight":o.preventDefault(),g(1e4);break;case"KeyF":o.preventDefault(),_();break}},h=()=>{Y(!!document.fullscreenElement)};return document.addEventListener("keydown",r),document.addEventListener("fullscreenchange",h),()=>{t&&(t.disconnect(),t.getDisplay().getElement().innerHTML=""),document.removeEventListener("keydown",r),document.removeEventListener("fullscreenchange",h)}},[d]);const te=t=>{let r=ke();ge.hasText(y)&&(r=y);let h=`${ye()}/admin/sessions/${t}/recording?X-Auth-Token=${r}`;const o=new L.StaticHTTPTunnel(h),l=new L.SessionRecording(o);console.log(l.getDisplay().getDefaultLayer().toCanvas.toString());const P=l.getDisplay();return document.getElementById("display").appendChild(P.getElement()),l.onload=function(){console.log("onload")},l.onplay=()=>{V(!0)},l.onpause=()=>{V(!1)},P.onresize=function(ie,de){const E=document.getElementById("display");if(!E)return;const ue=Math.min(E.offsetWidth/ie,E.offsetHeight/de);P.scale(ue)},l.connect(),l.onseek=m=>{R(m),U(z.formatTime(m))},l.onprogress=m=>{X(m),K(z.formatTime(m))},W(l),l};let C;const k=()=>{if(F(),b===1||!n.isPlaying())return;const t=100;let r=1e3/(1e3/t)/(b-1),h=n.getDuration(),o=n.getPosition();o>=h||n.seek(o+t,()=>{C=setTimeout(k,r)})},F=()=>{C&&clearTimeout(C)},T=t=>{Q(!0),w===v&&(R(0),n.seek(0,()=>{n.play(),k()})),n.isPlaying()?(console.log("pause"),n.pause()):(console.log("play"),n.play(),k())},se=t=>{n.seek(t,()=>{console.log("complete")})},q=t=>p?e.jsx(Ne,{className:t,onClick:()=>T()}):e.jsx(Ce,{className:t,onClick:()=>T()}),g=t=>{if(!n)return;const r=Math.max(0,Math.min(v,w+t));n.seek(r,()=>{console.log("seek complete")})},_=async()=>{if(N.current)try{document.fullscreenElement?await document.exitFullscreen():await N.current.requestFullscreen()}catch(t){console.error("Fullscreen toggle failed:",t)}},ae=()=>{H(!f)},ne=t=>{Z(t),H(t===0)},oe=()=>{S.current&&clearTimeout(S.current),I(!0)},le=()=>{S.current=window.setTimeout(()=>{I(!1)},1e3)},re=()=>{j(1),u.current&&clearTimeout(u.current),u.current=window.setTimeout(()=>{M&&p&&j(0)},3e3)},ce=()=>{u.current&&clearTimeout(u.current),u.current=window.setTimeout(()=>{M&&p&&j(0)},1e3)};return e.jsxs("div",{ref:N,children:[e.jsx("div",{className:"h-screen w-screen flex items-center justify-center bg-gradient-to-br from-slate-950 via-neutral-900 to-black",onMouseMove:re,onMouseLeave:ce,children:e.jsx("div",{className:"rounded-xl overflow-hidden ring-1 ring-white/10 shadow-2xl bg-black/20",children:e.jsx("div",{id:"display",onClick:()=>{}})})}),!p&&!M&&e.jsx("div",{className:"fixed top-0 left-0 w-full h-full bg-black/60 backdrop-blur-sm z-50 flex justify-center items-center",children:e.jsxs("div",{className:"text-center px-4",children:[q("h-16 w-16 cursor-pointer text-white md:h-28 md:w-28 mb-4"),e.jsxs("div",{className:"text-white/60 text-xs md:text-sm mt-4 space-y-1",children:[e.jsx("div",{children:a("access.playback.shortcut_space")}),e.jsx("div",{className:"hidden sm:block",children:a("access.playback.shortcut_seek")}),e.jsx("div",{className:"hidden sm:block",children:a("access.playback.shortcut_fullscreen")})]})]})}),e.jsxs("div",{className:"fixed bottom-2 md:bottom-4 left-1/2 -translate-x-1/2 w-[min(900px,98vw)] h-12 md:h-14 flex gap-1 md:gap-3 items-center px-2 md:px-4 rounded-lg md:rounded-xl bg-black/60 backdrop-blur-md border border-white/10 shadow-xl transition-opacity duration-300 ctrl-bar",style:{opacity:J},children:[e.jsx("div",{className:"flex-none hidden sm:block",children:e.jsx(x,{title:a("access.playback.seek_back"),children:e.jsx(_e,{className:"h-4 w-4 cursor-pointer text-white/80 hover:text-white transition-colors",onClick:()=>g(-1e4)})})}),e.jsx("div",{className:"flex-none",children:e.jsx(x,{title:a("access.playback.play_pause"),children:q("h-4 w-4 md:h-5 md:w-5 cursor-pointer text-white")})}),e.jsx("div",{className:"flex-none hidden sm:block",children:e.jsx(x,{title:a("access.playback.seek_forward"),children:e.jsx(Ee,{className:"h-4 w-4 cursor-pointer text-white/80 hover:text-white transition-colors",onClick:()=>g(1e4)})})}),e.jsx("div",{className:"flex-auto px-1 md:px-2",children:e.jsx(B,{value:w,max:v,onChange:se,tooltip:{formatter:t=>z.formatTime(t)},styles:{rail:{backgroundColor:"rgba(255,255,255,0.15)"},track:{backgroundColor:"#22c55e"},handle:{borderColor:"#22c55e",boxShadow:"0 0 0 4px rgba(34,197,94,0.15)"}}})}),e.jsx("div",{className:"flex-none",children:e.jsx(he,{theme:{algorithm:me.darkAlgorithm},children:e.jsx(xe,{size:"small",className:"min-w-12 md:min-w-16 text-xs",defaultValue:1,value:b,onChange:t=>{O(t),t===1?F():k()},options:[{value:1,label:"1x"},{value:1.5,label:"1.5x"},{value:2,label:"2x"},{value:5,label:"5x"}]})})}),e.jsxs("div",{className:"flex-none hidden lg:block relative",onMouseEnter:oe,onMouseLeave:le,children:[e.jsx(x,{title:a(f?"access.playback.unmute":"access.playback.mute"),children:e.jsx("div",{className:"cursor-pointer",onClick:ae,children:f||$===0?e.jsx(Re,{className:"h-4 w-4 text-white/80 hover:text-white transition-colors"}):e.jsx(Le,{className:"h-4 w-4 text-white/80 hover:text-white transition-colors"})})}),ee&&e.jsx("div",{className:"absolute bottom-full left-1/2 -translate-x-1/2 mb-2 bg-black/80 backdrop-blur-md rounded-lg p-3 border border-white/10",children:e.jsx("div",{className:"h-20 flex items-center",children:e.jsx(B,{vertical:!0,value:f?0:$*100,max:100,onChange:t=>ne(t/100),tooltip:{formatter:t=>`${t}%`},styles:{rail:{backgroundColor:"rgba(255,255,255,0.15)"},track:{backgroundColor:"#22c55e"},handle:{borderColor:"#22c55e",boxShadow:"0 0 0 4px rgba(34,197,94,0.15)"}}})})})]}),e.jsx("div",{className:"flex-none",children:e.jsx(x,{title:a(A?"access.playback.exit_fullscreen":"access.playback.fullscreen"),children:A?e.jsx(je,{className:"h-3 w-3 md:h-4 md:w-4 cursor-pointer text-white/80 hover:text-white transition-colors",onClick:_}):e.jsx(ve,{className:"h-3 w-3 md:h-4 md:w-4 cursor-pointer text-white/80 hover:text-white transition-colors",onClick:_})})}),e.jsxs("div",{className:"flex-none text-xs text-white/80 min-w-[60px] md:min-w-[80px] text-right hidden md:block",children:[e.jsx("b",{children:D})," / ",e.jsx("b",{children:G})]}),e.jsx("div",{className:"flex-none text-xs text-white/80 min-w-[40px] text-right md:hidden",children:e.jsx("b",{children:D})})]})]})};export{Be as default}; diff --git a/server/resource/build/assets/GuacdPlayback-DQHtnea3.css b/server/resource/build/assets/GuacdPlayback-DQHtnea3.css deleted file mode 100644 index 3930a1d9a..000000000 --- a/server/resource/build/assets/GuacdPlayback-DQHtnea3.css +++ /dev/null @@ -1 +0,0 @@ -body{overflow:hidden}.ctrl-bar{background:linear-gradient(to bottom,#00000080,#000 25% 100%);color:#bbb} diff --git a/server/resource/build/assets/InfoPage--AJ8mxff.js b/server/resource/build/assets/InfoPage--AJ8mxff.js deleted file mode 100644 index b35a1cada..000000000 --- a/server/resource/build/assets/InfoPage--AJ8mxff.js +++ /dev/null @@ -1,2 +0,0 @@ -import{f as x,S as e,a$ as b,bs as v,aO as C,c0 as G,bl as V,av as T,bg as Z,aI as K,c8 as ne,c9 as pe,ca as he,b0 as L,aX as me,bv as fe,cb as Q,bD as ye,aZ as xe,cc as ge,a_ as S,aW as B,bj as _e,bk as te,aY as Y,cd as se,ce as je,$ as be,cf as O,bG as we,bi as F,aS as ce,bp as ve,U as q,ay as Te,aK as re,aT as W,aU as Re,bh as U,bc as J,bN as N,as as ke,b4 as Ne}from"./antd-Afm2kNt7.js";import{v as X,W as w,J as Ae,K as Se,N as Ie,O as ae,P as Ce,Q as P,R as Pe,u as R,e as A,g as p,S as Ee,M as ie,h as M,U as oe,b as Oe,o as Me,V as Ke,x as De}from"./index-DQXwuKC5.js";import{t as E}from"./times-CQ9ir0Jv.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";const Le=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],qe=X("key",Le);const Ue=[["path",{d:"M12.4 2.7a2.5 2.5 0 0 1 3.4 0l5.5 5.5a2.5 2.5 0 0 1 0 3.4l-3.7 3.7a2.5 2.5 0 0 1-3.4 0L8.7 9.8a2.5 2.5 0 0 1 0-3.4z",key:"165ttr"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"m9.4 10.6-6.814 6.814A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814",key:"1ubxi2"}]],Fe=X("key-square",Ue);const ze=[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],$e=X("pencil-line",ze);function Be({error:t,options:c}){const{publicKey:n}=c;if(!n)throw Error("options was missing required publicKey property");if(t.name==="AbortError"){if(c.signal instanceof AbortSignal)return new w({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else if(t.name==="ConstraintError"){if(n.authenticatorSelection?.requireResidentKey===!0)return new w({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:t});if(c.mediation==="conditional"&&n.authenticatorSelection?.userVerification==="required")return new w({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:t});if(n.authenticatorSelection?.userVerification==="required")return new w({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:t})}else{if(t.name==="InvalidStateError")return new w({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:t});if(t.name==="NotAllowedError")return new w({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if(t.name==="NotSupportedError")return n.pubKeyCredParams.filter(s=>s.type==="public-key").length===0?new w({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:t}):new w({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:t});if(t.name==="SecurityError"){const i=globalThis.location.hostname;if(Ae(i)){if(n.rp.id!==i)return new w({message:`The RP ID "${n.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new w({message:`${globalThis.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t})}else if(t.name==="TypeError"){if(n.user.id.byteLength<1||n.user.id.byteLength>64)return new w({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:t})}else if(t.name==="UnknownError")return new w({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}return t}async function Ye(t){!t.optionsJSON&&t.challenge&&(console.warn("startRegistration() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information."),t={optionsJSON:t});const{optionsJSON:c,useAutoRegister:n=!1}=t;if(!Se())throw new Error("WebAuthn is not supported in this browser");const i={...c,challenge:ae(c.challenge),user:{...c.user,id:ae(c.user.id)},excludeCredentials:c.excludeCredentials?.map(Ie)},s={};n&&(s.mediation="conditional"),s.publicKey=i,s.signal=Ce.createNewAbortSignal();let d;try{d=await navigator.credentials.create(s)}catch(h){throw Be({error:h,options:s})}if(!d)throw new Error("Registration was not completed");const{id:a,rawId:r,response:o,type:m}=d;let f;typeof o.getTransports=="function"&&(f=o.getTransports());let _;if(typeof o.getPublicKeyAlgorithm=="function")try{_=o.getPublicKeyAlgorithm()}catch(h){H("getPublicKeyAlgorithm()",h)}let k;if(typeof o.getPublicKey=="function")try{const h=o.getPublicKey();h!==null&&(k=P(h))}catch(h){H("getPublicKey()",h)}let u;if(typeof o.getAuthenticatorData=="function")try{u=P(o.getAuthenticatorData())}catch(h){H("getAuthenticatorData()",h)}return{id:a,rawId:P(r),response:{attestationObject:P(o.attestationObject),clientDataJSON:P(o.clientDataJSON),transports:f,publicKeyAlgorithm:_,publicKey:k,authenticatorData:u},type:m,clientExtensionResults:d.getClientExtensionResults(),authenticatorAttachment:Pe(d.authenticatorAttachment)}}function H(t,c){console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${t}. You should report this error to them. -`,c)}const{Title:He}=b,Ge=()=>{let{t}=R(),[c,n]=x.useState(""),[i,s]=x.useState(""),[d,a]=x.useState(),[r,o]=x.useState(""),m=A({queryKey:["get-password-policy"],queryFn:p.getPasswordPolicy});const f=l=>{let g=m.data;if(!g)return"";if(l.length0){let j=0;if(l.match(/[0-9]/)&&j++,l.match(/[a-z]/)&&j++,l.match(/[A-Z]/)&&j++,l.match(`[~!@#$%^&*()_+-={}[]|:;"'<>,.?/]`)&&j++,j{n(l.target.value),a(u(l.target.value,i));let g=f(l.target.value);o(g)},k=l=>{s(l.target.value),a(u(c,l.target.value))},u=(l,g)=>g===l?"success":"error",h=async l=>{await p.changePassword(l),Z.success(t("general.success")),window.location.href="/"};return e.jsxs("div",{children:[e.jsx(He,{level:5,style:{marginTop:0},children:t("account.change.password")}),e.jsx("div",{style:{margin:16}}),e.jsxs(v,{name:"password",onFinish:h,layout:"vertical",children:[e.jsx("input",{type:"password",hidden:!0,autoComplete:"new-password"}),e.jsx(v.Item,{name:"oldPassword",label:t("account.old_password"),rules:[{required:!0}],children:e.jsx(C,{type:"password",style:{width:240},placeholder:t("account.enter")})}),e.jsx(v.Item,{name:"newPassword",label:t("identity.user.reset_password.new"),rules:[{required:!0}],validateStatus:r!=""?"error":"success",help:r,children:e.jsx(C.Password,{showCount:!0,iconRender:l=>l?e.jsx(G,{}):e.jsx(V,{}),onChange:l=>_(l),style:{width:240},placeholder:t("account.enter")})}),e.jsx(v.Item,{name:"newPassword2",label:t("account.confirm_password"),rules:[{required:!0}],validateStatus:d,children:e.jsx(C.Password,{showCount:!0,iconRender:l=>l?e.jsx(G,{}):e.jsx(V,{}),onChange:l=>k(l),style:{width:240},placeholder:t("account.enter")})}),e.jsx(v.Item,{children:e.jsx(T,{disabled:d!=="success"||r!=="",type:"primary",htmlType:"submit",children:t("actions.confirm")})})]})]})},{Paragraph:Ve}=b,Qe=({refetch:t})=>{const[c]=v.useForm(),[n,i]=x.useState(!1);let{t:s}=R(),{message:d}=K.useApp(),a=A({queryKey:["totp"],queryFn:()=>p.reloadTotp(window.location.hostname),refetchOnWindowFocus:!1});const r=async _=>{_.secret=a.data?.secret,await p.confirmTotp(_),d.success(s("general.success")),t()},o=()=>a.isLoading?"loading":"active",m=()=>{a.data?.secret&&(navigator.clipboard.writeText(a.data.secret),d.success(s("general.copy_success")))},f=[{title:s("account.otp_setup_guide.step2.title"),description:s("account.otp_step2_description"),status:"process"},{title:s("account.otp_setup_guide.step3.title"),description:s("account.otp_step3_description"),status:"wait"}];return e.jsxs("div",{children:[e.jsx(ne,{items:f,size:"small",style:{marginBottom:24}}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"border rounded-lg",children:[e.jsx("div",{className:"px-4 py-3 border-b ",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(pe,{}),e.jsx("span",{children:s("account.otp_scan_qr")})]})}),e.jsx("div",{className:"p-4 text-center",children:e.jsxs("div",{className:"flex flex-col items-center gap-4 w-full",children:[e.jsx(he,{value:a.data?.url,errorLevel:"M",status:o(),onRefresh:()=>a.refetch(),size:200}),e.jsx("div",{className:"w-full text-left",children:e.jsx(L,{message:s("account.otp_scan_instruction"),type:"info",showIcon:!0})})]})})]}),e.jsxs("div",{className:"border rounded-lg",children:[e.jsx("div",{className:"px-4 py-3 border-b",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(me,{}),e.jsx("span",{children:s("account.otp_manual_setup")})]})}),e.jsxs("div",{className:"p-4",children:[e.jsx(Ve,{style:{marginBottom:12},children:s("account.otp_manual_setup_desc")}),e.jsxs(C.Group,{compact:!0,children:[e.jsx(C,{value:a.data?.secret,readOnly:!0,type:n?"text":"password",style:{width:"calc(100% - 80px)"}}),e.jsx(T,{icon:n?e.jsx(V,{}):e.jsx(G,{}),onClick:()=>i(!n),style:{width:"40px"}}),e.jsx(T,{icon:e.jsx(fe,{}),onClick:m,style:{width:"40px"},type:"primary"})]})]})]})]}),e.jsx("div",{children:e.jsxs("div",{className:"border rounded-lg",children:[e.jsx("div",{className:"px-4 py-3 border-b",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Q,{}),e.jsx("span",{children:s("account.otp_verification_title")})]})}),e.jsxs("div",{className:"p-4",children:[e.jsx("div",{className:"mb-4",children:e.jsx(L,{message:s("account.otp_verification_instruction"),type:"warning",showIcon:!0})}),e.jsxs(v,{form:c,onFinish:r,layout:"vertical",children:[e.jsx(v.Item,{name:"totp",label:s("account.captcha"),rules:[{required:!0,message:s("account.otp_code_required")},{pattern:/^\d{6}$/,message:s("account.otp_code_format")}],children:e.jsx(C,{placeholder:s("account.otp_verification_placeholder"),size:"large",maxLength:6,style:{textAlign:"center",fontSize:"18px",letterSpacing:"4px"}})}),e.jsx(v.Item,{style:{marginBottom:0},children:e.jsx(T,{type:"primary",htmlType:"submit",size:"large",block:!0,loading:!1,children:s("actions.confirm")})})]}),e.jsx(ye,{}),e.jsx(L,{message:s("account.otp_security_tip"),description:s("account.otp_security_description"),type:"success",showIcon:!0})]})]})})]})]})},We=({refetch:t,forceReauth:c=!1})=>{let{t:n}=R(),[i,s]=x.useState(!1),{modal:d}=K.useApp();return e.jsxs("div",{children:[e.jsx(xe,{status:"success",title:n("account.otp_bind_title"),subTitle:n("account.otp_bind_sub_title"),extra:[e.jsx(T,{type:"primary",danger:!0,onClick:()=>{d.confirm({title:n("account.otp_unbind_title"),icon:e.jsx(ge,{}),content:n("account.otp_unbind_subtitle"),okType:"danger",onOk:async()=>{s(!0)}})},children:n("account.otp_unbind")},"console")]}),e.jsx(ie,{open:i,forceReauth:c,handleOk:async a=>{s(!1),await p.resetTotp(a),Z.success(n("general.success")),t()},handleCancel:()=>s(!1)})]})},{Title:Je,Paragraph:Ze,Text:ht}=b,Xe=()=>{let{t}=R(),c=A({queryKey:["info"],queryFn:p.getUserInfo}),[n,i]=x.useState("binding");x.useEffect(()=>{c.data?.enabledTotp?i("unbinding"):i("binding")},[c.data]);const s=()=>{c.refetch()},d=()=>{const m=[{icon:e.jsx(B,{style:{color:"#52c41a"}}),title:t("account.otp_features.enhanced_security")},{icon:e.jsx(Q,{style:{color:"#1890ff"}}),title:t("account.otp_features.offline_access")},{icon:e.jsx(je,{style:{color:"#faad14"}}),title:t("account.otp_features.time_based")},{icon:e.jsx(be,{style:{color:"#722ed1"}}),title:t("account.otp_features.widely_supported")}];return e.jsx(O,{dataSource:m,renderItem:f=>e.jsx(O.Item,{children:e.jsx(O.Item.Meta,{avatar:f.icon,title:f.title})})})},a=()=>{const m=[{name:"Google Authenticator",color:"blue"},{name:"Microsoft Authenticator",color:"green"},{name:"Authy",color:"orange"},{name:"1Password",color:"purple"},{name:"LastPass Authenticator",color:"red"}];return e.jsx(S,{wrap:!0,children:m.map((f,_)=>e.jsx(F,{color:f.color,style:{margin:"4px"},children:f.name},_))})},r=()=>{const m=[{title:t("account.otp_setup_guide.step1.title"),description:e.jsxs("div",{children:[e.jsx(Ze,{children:t("account.otp_setup_guide.step1.description")}),a()]}),icon:e.jsx(Q,{})},{title:t("account.otp_setup_guide.step2.title"),description:t("account.otp_setup_guide.step2.description"),icon:e.jsx(se,{})},{title:t("account.otp_setup_guide.step3.title"),description:t("account.otp_setup_guide.step3.description"),icon:e.jsx(we,{})}];return e.jsx(ne,{direction:"vertical",current:-1,items:m,style:{marginTop:16}})},o=m=>{switch(m){case"unbinding":return e.jsx(We,{refetch:s,forceReauth:!0});case"binding":return e.jsxs(_e,{gutter:[24,24],children:[e.jsxs(te,{xs:24,lg:10,children:[e.jsx(Y,{title:e.jsxs(S,{children:[e.jsx(se,{}),t("account.otp_features.title")]}),size:"small",children:d()}),e.jsx(Y,{title:t("account.otp_setup_guide.title"),style:{marginTop:16},size:"small",children:r()})]}),e.jsx(te,{xs:24,lg:14,children:e.jsx(Y,{title:e.jsxs(S,{children:[e.jsx(B,{}),t("account.otp_binding_title")]}),size:"small",children:e.jsx(Qe,{refetch:s})})})]})}};return e.jsxs("div",{children:[e.jsx(Je,{level:3,style:{marginTop:0,marginBottom:16},children:e.jsxs(S,{children:[e.jsx(B,{}),t("identity.user.otp")]})}),e.jsx(L,{message:t("account.otp_description"),type:"info",showIcon:!0,style:{marginBottom:24}}),o(n)]})},et=()=>{let{t}=R();const[c,n]=x.useState(null),[i,s]=x.useState("api"),[d,a]=x.useState(!1);let r=A({queryKey:["access-token"],queryFn:p.getAccessTokens}),o=M({mutationFn:()=>p.createAccessToken(i),onSuccess:u=>{a(!1),n(u),r.refetch()}}),m=M({mutationFn:u=>p.deleteAccessToken(u),onSuccess:()=>{r.refetch()}});const f=u=>{switch(u){case"api":return t("account.access_token_type_values.api");case"db-password":return t("account.access_token_type_values.db_password");case"session":return t("account.access_token_type_values.session");case"temporary":return t("account.access_token_type_values.temporary");default:return u}},_=u=>{switch(u){case"api":return"blue";case"db-password":return"gold";case"session":return"green";case"temporary":return"orange";default:return"default"}},k=[{title:t("account.access_token"),dataIndex:"token",render:u=>e.jsx(b.Text,{code:!0,children:u})},{title:t("account.access_token_type"),dataIndex:"type",render:u=>e.jsx(F,{color:_(u),children:f(u)})},{title:t("general.created_at"),dataIndex:"createdAt",render:u=>E.format(u)},{title:t("actions.label"),dataIndex:"id",render:(u,h)=>e.jsx(ce,{title:t("general.confirm_delete"),onConfirm:()=>m.mutate(h.id),okText:t("actions.confirm"),cancelText:t("actions.cancel"),children:e.jsx(T,{type:"link",danger:!0,loading:m.isPending&&m.variables===h.id,children:t("actions.delete")})})}];return e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(b.Title,{level:5,style:{marginTop:0},children:t("account.access_token")}),e.jsx(T,{type:"primary",onClick:()=>a(!0),children:t("account.access_token_create")})]}),e.jsx(ve,{rowKey:"id",columns:k,dataSource:r.data||[],loading:r.isLoading,pagination:!1}),e.jsx(q,{open:!!c,title:t("account.access_token"),onCancel:()=>n(null),onOk:()=>n(null),okText:t("actions.confirm"),children:e.jsxs(S,{direction:"vertical",size:8,children:[e.jsx(b.Text,{type:"secondary",children:t("account.access_token_once_tip")}),e.jsx(b.Text,{strong:!0,copyable:!0,children:c?.token})]})}),e.jsx(q,{open:d,title:t("account.access_token_create"),onCancel:()=>a(!1),onOk:()=>o.mutate(),okText:t("actions.new"),confirmLoading:o.isPending,children:e.jsx(v,{layout:"vertical",children:e.jsx(v.Item,{label:t("account.access_token_type"),children:e.jsx(Te,{value:i,onChange:s,options:[{value:"api",label:t("account.access_token_type_values.api")},{value:"db-password",label:t("account.access_token_type_values.db_password")}]})})})})]})},{Title:tt}=b,st=()=>{let{t}=R(),{message:c}=K.useApp();const n=async()=>await p.getUserInfo(),i=async s=>(await p.changeInfo(s),c.success(t("general.success")),!0);return e.jsxs("div",{children:[e.jsx(tt,{level:5,style:{marginTop:0},children:t("account.change.info")}),e.jsx("div",{style:{margin:16}}),e.jsxs(re,{request:n,onFinish:i,children:[e.jsx(W,{name:"nickname",label:t("identity.user.nickname"),rules:[{required:!0}]}),e.jsx(Re,{label:t("identity.user.public_key"),name:"publicKey",placeholder:"Public Key, one per line",fieldProps:{rows:8}})]})]})},at=({open:t,handleOk:c,handleCancel:n,confirmLoading:i,credential:s})=>{let{t:d}=R();const a=x.useRef(null),r=async()=>s;return e.jsx(q,{title:"",open:t,maskClosable:!1,destroyOnHidden:!0,onOk:()=>{a.current?.validateFields().then(async o=>{c(o)})},onCancel:()=>{n()},confirmLoading:i,children:e.jsxs(re,{formRef:a,request:r,submitter:!1,children:[e.jsx(W,{hidden:!0,name:"id"}),e.jsx(W,{name:"name",label:d("general.name"),rules:[{required:!0}]})]})})},nt=()=>{let{t}=R(),[c,n]=x.useState(!1),[i,s]=x.useState(),[d,a]=x.useState(!1),[r,o]=x.useState(null),[m,f]=x.useState(),{message:_,modal:k}=K.useApp();const u=A({queryKey:["info"],queryFn:p.getUserInfo});let h=A({queryKey:["getWebauthnCredentials"],queryFn:p.getWebauthnCredentials});const l=async y=>{let ee=await p.webauthnCredentialStart(y);const $=await Ye({optionsJSON:ee.publicKey});if(!$){alert("Credential creation failed");return}await p.webauthnCredentialFinish($),h.refetch(),_.success(t("general.success"))},g=y=>y===0?"-":U(y).fromNow();let z=M({mutationFn:async y=>{await p.updateWebauthnCredentials(i.id,y)},onSuccess:()=>{h.refetch(),n(!1)}});const D=()=>{a(!1),o(null),f(void 0)},j=()=>{o("add"),a(!0)},I=y=>{f(y),o("delete"),a(!0)},le=async y=>{a(!1),r==="add"&&await l(y),r==="delete"&&m&&(await p.deleteWebauthnCredentials(m.id,y),h.refetch(),_.success(t("general.success"))),o(null),f(void 0)},de=u.data?.mfaEnabled??!1,ue=h.isLoading||u.isLoading;return e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(b.Title,{level:5,style:{marginTop:0},children:t("account.passkey")}),e.jsx(T,{type:"primary",disabled:ue,onClick:()=>{if(de){j();return}l()},children:t("account.passkey_add")})]}),e.jsx("div",{children:e.jsx(O,{itemLayout:"horizontal",dataSource:h.data,renderItem:(y,ee)=>e.jsxs("div",{className:"border rounded-md p-4 flex items-center justify-between mb-2",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx(Fe,{className:"h-4 w-4"}),e.jsx("div",{className:"font-medium",children:y.name})]}),e.jsxs("div",{className:"ml-8",children:[t("account.passkey_add_time"),":",U(y.createdAt).format("YYYY-MM-DD HH:mm:ss")]}),e.jsxs("div",{className:"ml-8",children:[t("account.passkey_used_time"),":",g(y.usedAt)]})]}),e.jsxs("div",{className:"flex items-center cursor-pointer gap-4",children:[e.jsx($e,{className:"h-4 w-4",onClick:()=>{s(y),n(!0)}}),e.jsx(oe,{className:"h-4 w-4",onClick:async()=>{await k.confirm({title:t("account.passkey_delete_title"),content:t("account.passkey_delete_content")})&&I(y)}})]})]})})}),e.jsx(at,{open:c,handleOk:z.mutate,handleCancel:()=>{n(!1)},confirmLoading:!1,credential:i}),e.jsx(ie,{open:d,forceReauth:!0,handleOk:le,handleCancel:D})]})},ct=()=>{const{t}=R();let{message:c,modal:n}=K.useApp(),i=A({queryKey:["oidc-server-consents"],queryFn:p.getOidcServerConsents}),s=M({mutationFn:p.revokeOidcServerConsent,onSuccess:()=>{i.refetch(),c.success(t("account.oidc_server_authorization_revoked"))},onError:()=>{c.error(t("general.failed"))}});const d=async r=>{await n.confirm({title:t("account.oidc_server_authorization_revoke_title"),content:t("account.oidc_server_authorization_revoke_content",{clientId:r.clientId})})&&s.mutate(r.clientId)},a=r=>e.jsx(S,{wrap:!0,children:r.map(o=>e.jsx(F,{color:"blue",children:o},o))});return e.jsxs("div",{className:"",children:[e.jsx("div",{className:"flex items-center justify-between",children:e.jsx(b.Title,{level:5,style:{marginTop:0},children:t("account.oidc_server_authorizations")})}),e.jsx("div",{className:"text-gray-700",children:t("account.oidc_server_authorizations_desc")}),e.jsx("div",{className:"mt-4",children:i.data?.length===0?e.jsx(J,{description:t("account.oidc_server_no_authorizations"),image:J.PRESENTED_IMAGE_SIMPLE}):e.jsx(O,{itemLayout:"horizontal",dataSource:i.data,loading:i.isLoading,renderItem:r=>e.jsxs("div",{className:"border rounded-md p-4 flex items-center justify-between mb-2",children:[e.jsxs("div",{className:"space-y-2 flex-1",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx(qe,{className:"h-4 w-4"}),e.jsx("div",{className:"font-medium text-base",children:r.clientId})]}),e.jsxs("div",{className:"ml-8 space-y-2",children:[e.jsxs("div",{children:[e.jsxs("span",{className:"text-gray-500",children:[t("account.oidc_server_scopes"),":"]}),a(r.scopes)]}),e.jsxs("div",{className:"text-sm text-gray-500",children:[t("authorised.label.authorised_at"),":",U(r.createdAt).format("YYYY-MM-DD HH:mm:ss")]}),e.jsxs("div",{className:"text-sm text-gray-500",children:[t("general.updated_at"),":",U(r.updatedAt).format("YYYY-MM-DD HH:mm:ss")]})]})]}),e.jsx("div",{className:"flex items-center",children:e.jsx(T,{danger:!0,icon:e.jsx(oe,{className:"h-4 w-4"}),onClick:()=>d(r),loading:s.isPending,children:t("account.oidc_server_revoke")})})]})})})]})},rt=()=>{const{t}=R(),c=A({queryKey:["client-cert"],queryFn:p.getClientCert}),n=M({mutationFn:p.revokeClientCert,onSuccess:()=>{c.refetch()}}),i=r=>t(r==="active"?"account.client_cert_status_active":"account.client_cert_status_revoked"),s=r=>r==="active"?"green":"red",d=()=>{const r=!!c.data;q.confirm({title:t(r?"account.client_cert_regenerate":"account.client_cert_generate"),content:t("account.client_cert_once_tip"),okText:t("actions.confirm"),cancelText:t("actions.cancel"),onOk:async()=>{p.downloadClientCert(),Z.success(t("account.client_cert_download_started")),setTimeout(()=>c.refetch(),800)}})},a=c.data;return e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(b.Title,{level:5,style:{marginTop:0},children:t("account.client_cert")}),e.jsxs(S,{children:[e.jsx(T,{type:"primary",onClick:d,children:t(a?"account.client_cert_regenerate":"account.client_cert_generate")}),a&&e.jsx(ce,{title:t("account.client_cert_revoke_confirm"),onConfirm:()=>n.mutate(),okText:t("actions.confirm"),cancelText:t("actions.cancel"),children:e.jsx(T,{danger:!0,loading:n.isPending,children:t("account.client_cert_revoke")})})]})]}),a?e.jsxs(N,{column:1,bordered:!0,size:"small",children:[e.jsx(N.Item,{label:t("account.client_cert_serial"),children:e.jsx(b.Text,{code:!0,children:a.serialNumber})}),e.jsx(N.Item,{label:t("account.client_cert_fingerprint"),children:e.jsx(b.Text,{code:!0,children:a.fingerprint})}),e.jsx(N.Item,{label:t("general.status"),children:e.jsx(F,{color:s(a.status),children:i(a.status)})}),e.jsx(N.Item,{label:t("account.client_cert_not_before"),children:a.notBefore?E.format(a.notBefore):t("general.no")}),e.jsx(N.Item,{label:t("account.client_cert_not_after"),children:a.notAfter?E.format(a.notAfter):t("general.no")}),e.jsx(N.Item,{label:t("account.client_cert_last_used"),children:a.lastUsedAt?E.format(a.lastUsedAt):t("general.no")}),e.jsx(N.Item,{label:t("general.created_at"),children:a.createdAt?E.format(a.createdAt):t("general.no")})]}):e.jsx(J,{description:t("account.client_cert_empty")})]})},mt=()=>{let{t}=R();const[c,n]=Oe();let i=Me(c.get("activeKey"),"change-info");const s=r=>{n({activeKey:r})},d=[{label:t("account.change.info"),key:"change-info",children:e.jsx(st,{})},{label:t("account.change.password"),key:"change-password",children:e.jsx(Ge,{})},{label:t("identity.user.otp"),key:"otp",children:e.jsx(Xe,{})},{label:t("account.passkey"),key:"passkey",children:e.jsx(nt,{})},{label:t("account.access_token"),key:"access-token",children:e.jsx(et,{})},{label:t("account.client_cert"),key:"client-cert",children:e.jsx(rt,{})},{label:t("account.oidc_server_authorizations"),key:"oidc-server-authorizations",children:e.jsx(ct,{})}];let a=Ke();return e.jsx(e.Fragment,{children:e.jsx(ke.Content,{className:De("page-container",a&&"px-4"),children:e.jsx(Ne,{tabPosition:a?"top":"left",items:d,activeKey:i,onChange:s})})})};export{mt as default}; diff --git a/server/resource/build/assets/LoginLockedPage-DZnpSndD.js b/server/resource/build/assets/LoginLockedPage-DZnpSndD.js deleted file mode 100644 index 8fda88e49..000000000 --- a/server/resource/build/assets/LoginLockedPage-DZnpSndD.js +++ /dev/null @@ -1 +0,0 @@ -import{f as m,S as r,bi as d,aS as y,bz as x}from"./antd-Afm2kNt7.js";import{A as g,u as h}from"./index-DQXwuKC5.js";import{N as f}from"./NButton-DoPcvKBF.js";import{g as k}from"./sort-BOdE-yay.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";class I extends g{constructor(){super("admin/login-locked")}}let s=new I;const P=()=>{const{t:e}=h(),a=m.useRef(null),l=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:"IP",dataIndex:"ip",key:"ip",sorter:!0},{title:e("gateways.username"),dataIndex:"username",key:"username",sorter:!0},{title:e("identity.user.locked_type"),dataIndex:"type",key:"type",hideInSearch:!0,render:(t,i)=>{switch(i.type){case"username":return r.jsx(d,{bordered:!1,color:"purple",children:e("identity.user.locked_type_username")});case"ip":return r.jsx(d,{bordered:!1,color:"red",children:e("identity.user.locked_type_ip")})}}},{title:e("identity.user.locked_at"),dataIndex:"lockedAt",key:"lockedAt",valueType:"dateTime",hideInSearch:!0,sorter:!0},{title:e("assets.limit_time"),dataIndex:"expirationAt",key:"expirationAt",valueType:"dateTime",hideInSearch:!0,sorter:!0},{title:e("actions.label"),valueType:"option",key:"option",render:(t,i,u,n)=>[r.jsx(y,{title:e("general.confirm_delete"),onConfirm:async()=>{await s.deleteById(i.id),a.current?.reload()},children:r.jsx(f,{danger:!0,children:e("actions.delete")},"delete")},"delete-confirm")]}];return r.jsx("div",{children:r.jsx(x,{columns:l,actionRef:a,request:async(t={},i,u)=>{let[n,c]=k(i),p={pageIndex:t.current,pageSize:t.pageSize,order:n,field:c,ip:t.ip,username:t.username},o=await s.getPaging(p);return{data:o.items,success:!0,total:o.total}},rowKey:"id",search:{labelWidth:"auto"},pagination:{defaultPageSize:10,showSizeChanger:!0},dateFormatter:"string",headerTitle:e("menus.identity.submenus.login_locked"),toolBarRender:()=>[]})})};export{P as default}; diff --git a/server/resource/build/assets/LoginLogPage-wdWF965f.js b/server/resource/build/assets/LoginLogPage-wdWF965f.js deleted file mode 100644 index 0ca45818a..000000000 --- a/server/resource/build/assets/LoginLogPage-wdWF965f.js +++ /dev/null @@ -1 +0,0 @@ -var h=Object.defineProperty;var y=(e,t,s)=>t in e?h(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var u=(e,t,s)=>y(e,typeof t!="symbol"?t+"":t,s);import{f,aI as I,S as n,a$ as S,bi as d,bz as A,av as j}from"./antd-Afm2kNt7.js";import{A as T,r as _,u as k,h as v}from"./index-DQXwuKC5.js";import{g as w}from"./sort-BOdE-yay.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";class z extends T{constructor(){super("admin/login-logs");u(this,"clear",async()=>{await _.post(`/${this.group}/clear`)})}}let c=new z;const C=()=>{const{t:e}=k(),t=f.useRef(null);let{modal:s}=I.useApp(),g=v({mutationFn:c.clear,onSuccess:()=>{t.current?.reload()}});const p=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:e("gateways.username"),dataIndex:"username",key:"username"},{title:e("audit.client_ip"),dataIndex:"clientIp",key:"clientIp",render:(r,i)=>{let a=n.jsx("div",{children:r});const l=i.region;return n.jsxs("div",{className:"flex items-center gap-2",children:[a,n.jsx(S.Text,{type:"secondary",children:l})]})}},{title:e("audit.login_status"),dataIndex:"success",key:"success",hideInSearch:!0,render:r=>r!==!0?n.jsx(d,{color:"error",children:e("general.failed")}):n.jsx(d,{color:"success",children:e("general.success")})},{title:e("audit.login_reason"),dataIndex:"reason",key:"reason",hideInSearch:!0},{title:e("audit.user_agent"),dataIndex:"userAgent",key:"userAgent",hideInSearch:!0,render:(r,i)=>{let a=i.userAgent;return a?`${a?.OS} ${a?.OSVersion} ${a?.Name} ${a?.Version}`:"-"}},{title:e("audit.login_at"),dataIndex:"loginAt",key:"loginAt",hideInSearch:!0,valueType:"dateTime",sorter:!0}];return n.jsx("div",{children:n.jsx(A,{defaultSize:"small",columns:p,actionRef:t,request:async(r={},i,a)=>{let[l,m]=w(i),x={pageIndex:r.current,pageSize:r.pageSize,order:l,field:m,username:r.username,clientIp:r.clientIp},o=await c.getPaging(x);return{data:o.items,success:!0,total:o.total}},rowKey:"id",search:{labelWidth:"auto"},pagination:{defaultPageSize:10,showSizeChanger:!0},dateFormatter:"string",headerTitle:e("menus.log_audit.submenus.login_log"),toolBarRender:()=>[n.jsx(j,{type:"primary",danger:!0,onClick:()=>{s.confirm({title:e("general.clear_confirm"),onOk:async()=>g.mutate()})},children:e("actions.clear")},"clear")]})})};export{C as default}; diff --git a/server/resource/build/assets/LoginPage-aub4Iv9y.js b/server/resource/build/assets/LoginPage-aub4Iv9y.js deleted file mode 100644 index 308bef047..000000000 --- a/server/resource/build/assets/LoginPage-aub4Iv9y.js +++ /dev/null @@ -1 +0,0 @@ -import{bs as r,f as h,S as e,aG as M,aH as V,ay as J,a$ as Q,aO as g,av as c,ai as $,bC as I,a_ as G,ar as H,bD as X}from"./antd-Afm2kNt7.js";import{u as Y,c as Z,d as ee,a as ae,b as te,e as y,f as se,g as o,L as j,h as L,i as w,j as re,t as ne,k as le,s as oe,l as ie}from"./index-DQXwuKC5.js";import{w as ce}from"./wechat-work-api-DdwWCsjx.js";import{o as ue}from"./oidc-api-DdlmoOii.js";import{S as de,M as he}from"./sun-7WZ3UW9g.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";const{Title:q}=Q;var ge=(i=>(i.Default="default",i.OTP="otp",i))(ge||{});const ve=()=>{const[i]=r.useForm();let{t}=Y();const v=h.useRef(null),{isDarkMode:k,toggleDarkMode:F}=Z(v),[O]=ee(),[_,m]=h.useState("default");let[p,n]=h.useState(!1);const A=ae();let[S]=te(),T=y({queryKey:["branding"],queryFn:se.getBranding}),l=y({queryKey:["getCaptcha"],queryFn:o.getCaptcha}),u=y({queryKey:["login-status"],queryFn:o.getLoginStatus});h.useEffect(()=>{if(u.data)switch(u.data?.status){case j.LoggedIn:x();break;case j.OTPRequired:m("otp");break;case j.Unlogged:break}},[u.data]);let f=L({mutationFn:o.login,onSuccess:a=>{N(a,!0)},onError:a=>{l.refetch()}});const x=()=>{let a=S.get("return_url");if(a){window.location.href=a;return}let s=S.get("redirect");s?window.location.href=s:A("/")};let b=L({mutationFn:o.validateTOTP,onSuccess:a=>{x()}});const N=(a,s)=>{sessionStorage.removeItem("current"),sessionStorage.removeItem("openKeys"),ie(a.token),s&&a.needTotp?m("otp"):x()},E=async a=>{a.key=l.data?.key,f.mutate(a)},W=a=>{b.isPending||b.mutate({totp:a})},U=async()=>{n(!0);try{let a=await o.webauthnLoginStartV2();if(a.type==="mfa")return;let s=await oe({optionsJSON:a.publicKey,verifyBrowserAutofillInput:!1}),d=await o.webauthnLoginFinishV2(a.token,s);N(d,!1)}finally{n(!1)}},B=async()=>{n(!0);try{const{authorizeUrl:a}=await ce.getAuthorizeUrl("login");window.location.href=a}catch(a){console.error("WeChat Work login error:",a)}finally{n(!1)}},R=async()=>{n(!0);try{const{authorizeUrl:a,state:s}=await ue.getAuthorizeUrl();s&&sessionStorage.setItem("oidc_state",s),window.location.href=a}finally{n(!1)}},D=()=>{switch(_){case"default":const a=u.data,s=a?.passwordEnabled!==!1,d=a?.webauthnEnabled,P=a?.wechatWorkEnabled,C=a?.oidcEnabled,K=d||P||C;return e.jsxs("div",{children:[e.jsx(q,{level:3,children:t("account.login.action")}),s&&e.jsxs(r,{onFinish:E,className:"login-form",layout:"vertical",children:[e.jsx(r.Item,{label:t("audit.operation.account"),name:"username",rules:[{required:!0}],children:e.jsx(g,{size:"large",prefix:e.jsx($,{}),placeholder:t("account.enter"),autoComplete:"username webauthn"})}),e.jsx(r.Item,{label:t("assets.password"),name:"password",rules:[{required:!0}],children:e.jsx(g.Password,{size:"large",prefix:e.jsx(I,{}),placeholder:t("account.enter")})}),l.data?.enabled&&e.jsx(r.Item,{label:t("account.captcha"),name:"captcha",rules:[{required:!0}],children:e.jsxs(G.Compact,{children:[e.jsx(g,{prefix:e.jsx(I,{}),size:"large",placeholder:t("account.enter")}),e.jsx(H,{spinning:l.isLoading,children:e.jsx("div",{style:{width:100},children:e.jsx("img",{onClick:()=>l.refetch(),src:l.data?.captcha,alt:"captcha",style:{cursor:"pointer"}})})})]})}),e.jsx(r.Item,{children:e.jsx(c,{type:"primary",htmlType:"submit",size:"large",className:"w-full",loading:f.isPending,children:t("account.login.action")})})]}),s&&K&&e.jsx(X,{className:"my-4",plain:!0,children:"Or"}),d&&e.jsx(c,{variant:"filled",color:"default",size:"large",className:"w-full mb-2",onClick:U,loading:p,children:t("account.login.methods.passkey")}),P&&e.jsx(c,{variant:"filled",color:"geekblue",size:"large",className:"w-full mb-2",onClick:B,loading:p,children:t("account.login.methods.wechat_work")}),C&&e.jsx(c,{variant:"filled",color:"primary",size:"large",className:"w-full",onClick:R,loading:p,children:t("account.login.methods.oidc")})]});case"otp":return e.jsxs("div",{children:[e.jsx(q,{level:3,children:t("account.login.methods.otp")}),e.jsxs(r,{form:i,onFinish:b.mutate,className:"login-form",layout:"vertical",children:[e.jsx(r.Item,{label:t("identity.user.otp"),name:"totp",rules:[{required:!0}],children:e.jsx(g.OTP,{length:6,autoFocus:!0,onChange:z=>{z.length===6&&W(z)}})}),e.jsxs(r.Item,{children:[e.jsx(c,{type:"primary",htmlType:"submit",size:"large",className:"w-full",loading:f.isPending,children:t("account.login.action")}),e.jsx("div",{className:"mt-2",children:e.jsx("div",{className:"text-blue-500 cursor-pointer",onClick:()=>{le(),m("default")},children:t("account.login.back")})})]})]})]})}};return e.jsx(M,{hashPriority:"high",children:e.jsx(V,{theme:{algorithm:O.algorithm},locale:ne(w.language),children:e.jsxs("div",{className:"h-screen w-screen relative flex items-center justify-center",children:[e.jsxs("div",{className:"w-96 md:border rounded-lg p-8",children:[e.jsx("div",{className:"font-medium mb-4 text-lg",children:T.data?.name}),D()]}),e.jsxs("div",{className:"absolute top-8 right-8 flex items-center gap-2",children:[e.jsx("button",{ref:v,type:"button",onClick:()=>F(!k),className:"h-8 w-8 rounded-md border border-slate-200/60 bg-white/80 text-slate-700 transition-colors hover:bg-white dark:border-slate-700/60 dark:bg-slate-900/70 dark:text-slate-100 dark:hover:bg-slate-900","aria-label":"切换主题",children:k?e.jsx(de,{className:"h-4 w-4 mx-auto"}):e.jsx(he,{className:"h-4 w-4 mx-auto"})}),e.jsx(J,{placeholder:"Language",variant:"borderless",style:{width:120},prefix:e.jsx(re,{className:"w-4 h-4"}),options:[{value:"en-US",label:"English"},{value:"zh-CN",label:t("general.language_zh_cn")},{value:"zh-TW",label:t("general.language_zh_tw")},{value:"ja-JP",label:t("general.language_ja_jp")}],value:w.language,onChange:a=>{w.changeLanguage(a)}})]}),e.jsx("div",{className:"absolute bottom-12 text-blue-500",children:e.jsx("a",{href:"https://beian.miit.gov.cn",rel:"noopener",target:"_blank",children:T.data?.icp})})]})})})};export{ge as LoginStep,ve as default}; diff --git a/server/resource/build/assets/LoginPolicyDetailPage-C0FoOMds.js b/server/resource/build/assets/LoginPolicyDetailPage-C0FoOMds.js deleted file mode 100644 index 83fc85966..000000000 --- a/server/resource/build/assets/LoginPolicyDetailPage-C0FoOMds.js +++ /dev/null @@ -1 +0,0 @@ -import{S as a,bL as n,bi as x,a0 as h,bZ as f,f as g,bM as w,b4 as j}from"./antd-Afm2kNt7.js";import{l as y}from"./login-policy-api-BlI40YsB.js";import{u as p,m as I,e as b,p as k,b as v}from"./index-DQXwuKC5.js";import{u as P}from"./user-api-BJxKseSg.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";const T=({id:r})=>{let{t:e}=p();const l=async()=>({success:!0,data:await y.getById(r)}),o={0:e("dw.week.days.sunday"),1:e("dw.week.days.monday"),2:e("dw.week.days.tuesday"),3:e("dw.week.days.wednesday"),4:e("dw.week.days.thursday"),5:e("dw.week.days.friday"),6:e("dw.week.days.saturday")};return a.jsx("div",{className:"page-detail-info",children:a.jsxs(n,{column:1,request:l,children:[a.jsx(n.Item,{label:e("general.name"),dataIndex:"name"}),a.jsx(n.Item,{label:e("identity.policy.priority"),dataIndex:"priority"}),a.jsx(n.Item,{label:e("identity.policy.ip_group"),dataIndex:"ipGroup"}),a.jsx(n.Item,{label:e("identity.policy.time_period"),dataIndex:"timePeriod",render:(t,s)=>t?t.map(d=>{if(I.hasText(d.value))return a.jsxs(a.Fragment,{children:[`${o[d.key]} :${d.value}`,a.jsx("br",{})]})}):void 0}),a.jsx(n.Item,{label:e("identity.policy.action.label"),dataIndex:"rule",render:t=>t==="allow"?a.jsx(x,{icon:a.jsx(h,{}),color:"success",bordered:!1,children:e("identity.policy.action.allow")}):a.jsx(x,{icon:a.jsx(f,{}),color:"error",bordered:!1,children:e("identity.policy.action.reject")})}),a.jsx(n.Item,{label:e("general.status"),dataIndex:"enabled",valueEnum:{true:{text:e("general.enabled"),status:"success"},false:{text:e("general.disabled"),status:"default"}}}),a.jsx(n.Item,{label:e("general.created_at"),dataIndex:"createdAt",valueType:"dateTime"})]})})},K=({id:r})=>{let{t:e}=p();const[l,o]=g.useState([]);let t=b({queryKey:["user"],queryFn:P.getAll}),s=b({queryKey:["user-id"],queryFn:()=>y.getUserId(r)});if(g.useEffect(()=>{s.data&&o(s.data)},[s.data]),t.isLoading)return a.jsx("div",{children:"Loading..."});let c=Array.isArray(t.data)?t.data.map(i=>({key:i.id,title:i.nickname})):[];const d=async(i,m,u)=>{switch(m){case"left":await y.unbindUser(r,u);break;case"right":await y.bindUser(r,u);break}o(i)};return a.jsx(w,{dataSource:c,titles:[e("general.unbound"),e("general.bound")],operations:[e("actions.binding"),e("actions.unbind")],showSearch:!0,listStyle:{width:250,height:400},targetKeys:l,onChange:d,render:i=>i.title})},F=()=>{let{t:r}=p();const l=k().loginPolicyId,[o,t]=v();let s=o.get("activeKey");s=s||"detail";let[c,d]=g.useState(s);const i=u=>{d(u),t({activeKey:u})},m=[{label:r("actions.detail"),key:"detail",children:a.jsx(T,{active:c==="detail",id:l})},{label:r("actions.binding"),key:"bind-user",children:a.jsx(K,{active:c==="bind-user",id:l})}];return a.jsx("div",{className:"px-4",children:a.jsx(j,{activeKey:c,onChange:i,items:m})})};export{F as default}; diff --git a/server/resource/build/assets/LoginPolicyPage-D8II9jNz.js b/server/resource/build/assets/LoginPolicyPage-D8II9jNz.js deleted file mode 100644 index b3e7fa743..000000000 --- a/server/resource/build/assets/LoginPolicyPage-D8II9jNz.js +++ /dev/null @@ -1 +0,0 @@ -import{f as h,S as t,bi as d,a0 as f,bZ as b,aS as I,bI as j,bz as w,av as S}from"./antd-Afm2kNt7.js";import{l as k}from"./login-policy-api-BlI40YsB.js";import{g as v}from"./sort-BOdE-yay.js";import{N as c}from"./NButton-DoPcvKBF.js";import{N as P}from"./NLink-Dl2yFaN4.js";import{u as T,a as z,z as R,y as u,D as B}from"./index-DQXwuKC5.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";const p=k,K=()=>{const{t:e}=T(),r=h.useRef(null);let o=z(),{license:y}=R();const g=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:e("general.name"),dataIndex:"name",render:(i,a)=>t.jsx(P,{to:`/login-policy/new?loginPolicyId=${a.id}`,children:i})},{title:e("identity.policy.priority"),key:"priority",dataIndex:"priority",sorter:!0,defaultSortOrder:"ascend",hideInSearch:!0},{title:e("identity.policy.ip_group"),key:"ipGroup",dataIndex:"ipGroup",sorter:!1,hideInSearch:!0},{title:e("identity.policy.action.label"),key:"rule",dataIndex:"rule",hideInSearch:!0,render:(i=>i==="allow"?t.jsx(d,{icon:t.jsx(f,{}),color:"success",bordered:!1,children:e("identity.policy.action.allow")}):t.jsx(d,{icon:t.jsx(b,{}),color:"error",bordered:!1,children:e("identity.policy.action.reject")}))},{title:e("general.status"),key:"enabled",dataIndex:"enabled",hideInSearch:!0,valueEnum:{true:{text:e("general.enabled"),status:"success"},false:{text:e("general.disabled"),status:"default"}}},{title:e("assets.limit_time"),key:"expirationAt",dataIndex:"expirationAt",hideInSearch:!0,sorter:!0,valueType:"dateTime",width:191},{title:e("actions.label"),valueType:"option",key:"option",width:160,render:(i,a,m,l)=>[t.jsx(u,{to:`/login-policy/new?loginPolicyId=${a.id}`,children:t.jsx(c,{children:e("actions.edit")},"edit")}),t.jsx(I,{title:e("general.confirm_delete"),onConfirm:async()=>{await p.deleteById(a.id),r.current?.reload()},children:t.jsx(c,{danger:!0,children:e("actions.delete")},"delete")},"delete-confirm"),t.jsx(j,{onSelect:n=>{switch(n){case"login-policy-detail":o(`/login-policy/${a.id}?activeKey=info`);break;case"login-policy-bind-user":o(`/login-policy/${a.id}?activeKey=bind-user`);break}},menus:[{key:"login-policy-detail",name:e("actions.detail")},{key:"login-policy-bind-user",name:e("actions.binding")}]},"actionGroup")]}];return t.jsx("div",{children:t.jsx(B,{disabled:y.isFree(),children:t.jsx(w,{columns:g,actionRef:r,request:async(i={},a,m)=>{let[l,n]=v(a),x={pageIndex:i.current,pageSize:i.pageSize,order:l,field:n,name:i.name},s=await p.getPaging(x);return{data:s.items,success:!0,total:s.total}},rowKey:"id",search:{labelWidth:"auto"},pagination:{defaultPageSize:10,showSizeChanger:!0},dateFormatter:"string",headerTitle:e("menus.identity.submenus.login_policy"),toolBarRender:()=>[t.jsx(u,{to:"/login-policy/new",children:t.jsx(S,{type:"primary",children:e("actions.new")},"button")})]})})})};export{K as default}; diff --git a/server/resource/build/assets/LoginPolicyPostPage--Tauq4PS.js b/server/resource/build/assets/LoginPolicyPostPage--Tauq4PS.js deleted file mode 100644 index a136d0c82..000000000 --- a/server/resource/build/assets/LoginPolicyPostPage--Tauq4PS.js +++ /dev/null @@ -1 +0,0 @@ -import{f as m,S as s,a$ as J,aK as Q,aT as N,aM as X,bs as Z,aV as ee,b_ as te,aN as se,bh as ae}from"./antd-Afm2kNt7.js";import{u as $,m as I,b as re,o as oe,a as le,h as ne}from"./index-DQXwuKC5.js";import{l as P}from"./login-policy-api-BlI40YsB.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";const ce=Array.from(Array(24)).map((i,o)=>o),_=(i,o)=>{const a={"hh:mm":{hour:"2-digit",minute:"2-digit",hour12:!1}};return new Intl.DateTimeFormat("default",a[o]).format(i)},ie=i=>Array.from(Array(i)).map((o,a)=>a),de=i=>{const a=1542384e6+i*18e5,x=a+18e5;let u=_(new Date(a),"hh:mm"),y=_(new Date(x),"hh:mm");return y==="00:00"&&(y="24:00"),`${u}~${y}`},he=i=>{const o=[];let a=!1;for(const x in i){let u=i[x];u.checked&&(u.checked!==a?o.push("、",u.begin,"~",u.end):o.length&&(o.pop(),o.push(u.end))),a=u.checked}return o.shift(),o.join("")},ue=({onChange:i,value:o})=>{let{t:a}=$();m.useEffect(()=>{o?K(o):S()},[]);const x={0:a("dw.week.days.sunday"),1:a("dw.week.days.monday"),2:a("dw.week.days.tuesday"),3:a("dw.week.days.wednesday"),4:a("dw.week.days.thursday"),5:a("dw.week.days.friday"),6:a("dw.week.days.saturday")},u=t=>x[t],y=()=>x,W=Object.keys(y()).map(t=>{let e=y()[t];return{value:e,day:t,child:((d,h,f)=>ie(f).map((j,g)=>{let w=de(g);return{week:d,value:w,begin:w.split("~")[0],end:w.split("~")[1],row:h,col:g,checked:!1}}))(e,parseInt(t),48)}});let[p,k]=m.useState(W),[c,A]=m.useState(!1),[D,E]=m.useState(!1),[l,q]=m.useState(0),[n,H]=m.useState(0),[b,L]=m.useState(!1),[M,F]=m.useState({width:0,height:0,left:0,top:0}),[U,Y]=m.useState(o);const G=(t,e)=>{let{width:r,height:d,left:h,top:f}=M;D?e.col<=n&&e.row<=l?(r=(n-e.col+1)*t.target.offsetWidth,d=(l-e.row+1)*t.target.offsetHeight,h=t.target.offsetLeft,f=t.target.offsetTop):e.col>=n&&e.row>=l?(r=(e.col-n+1)*t.target.offsetWidth,d=(e.row-l+1)*t.target.offsetHeight,e.col>n&&e.row===l&&(f=t.target.offsetTop),e.col===n&&e.row>l&&(h=t.target.offsetLeft)):e.col>n&&e.rowl&&(r=(n-e.col+1)*t.target.offsetWidth,d=(e.row-l+1)*t.target.offsetHeight,h=t.target.offsetLeft):(h=t.target.offsetLeft,f=t.target.offsetTop),F({width:r,height:d,left:h,top:f})},O=(t,e)=>{L(e.checked),E(!0),q(e.row),H(e.col)},V=(t,e)=>{e.col<=n&&e.row<=l?T([e.row,l],[e.col,n],!b):e.col>=n&&e.row>=l?T([l,e.row],[n,e.col],!b):e.col>n&&e.rowl&&T([l,e.row],[e.col,n],!b),F({width:0,height:0,left:0,top:0}),E(!1),v()},T=(t,e,r)=>{const[d,h]=t,[f,j]=e;p.forEach(g=>{g.child.forEach(w=>{w.row>=d&&w.row<=h&&w.col>=f&&w.col<=j&&(w.checked=r)})}),k(p)},S=()=>{p.forEach(t=>{t.child.forEach(e=>{e.checked=!1})}),k(p),C([])},B=()=>{p.forEach(t=>{t.child.forEach(e=>{e.checked=!0})}),k(p),v()},v=()=>{let t=p.map(e=>({key:parseInt(e.day),value:he(e.child)}));C(t)},C=t=>{i&&i(t),t.length>0?A(!0):A(!1),Y(t)},K=t=>{S();for(let e in t){let r=t[e].value;if(!I.hasText(r))continue;let d=r.split("、");for(const h in d)z(t[e].key,d[h])}v()},z=(t,e)=>{let r=t;const[d,h]=e.split("~"),f=R(d),j=R(h);for(let g=f;g<(j===0?48:j);g++){const w=p[r];w.child[g].checked=!0}k(p)},R=t=>{const e=Number(t.slice(0,2).replace(/^0/,""))||0,r=/30/.test(t)?1:0;return e*2+r};return s.jsxs("div",{className:"week-time",children:[s.jsx("div",{className:`schedule ${D?"schedule-notransi":""}`,style:M}),s.jsxs("table",{className:"week-time-table",children:[s.jsxs("thead",{className:"week-time-head",children:[s.jsxs("tr",{children:[s.jsxs("th",{rowSpan:8,className:"week-td",children:[a("dw.week.label"),"/",a("audit.accessLog.stats.tooltip.time")]}),s.jsx("th",{colSpan:24,children:"00:00 - 12:00"}),s.jsx("th",{colSpan:24,children:"12:00 - 24:00"})]}),s.jsx("tr",{children:ce.map(t=>s.jsx("td",{colSpan:2,children:t},t))})]}),s.jsxs("tbody",{className:"week-time-body",children:[p.map(t=>s.jsxs("tr",{children:[s.jsx("td",{"data-value":t.value,children:t.value},"td"+t.value),t.child.map(e=>s.jsx("td",{className:`${e.checked?"ui-selected":""}`,onMouseEnter:r=>G(r,e),onMouseDown:r=>O(r,e),onMouseUp:r=>V(r,e),"data-value":e.value},`${e.row}-${e.col}`))]},"tr"+t.value)),s.jsx("tr",{children:s.jsxs("td",{colSpan:49,className:"week-time-preview",children:[s.jsxs("div",{className:"d-clearfix week-time-con",children:[s.jsx("span",{className:"g-pull-left",children:a(c?"dw.selected":"dw.select")}),s.jsx("a",{className:"g-pull-right",onClick:S,children:a("dw.clear")}),s.jsx("a",{className:"g-pull-right",onClick:B,children:a("dw.select_all")})]}),c?s.jsx("div",{className:"week-time-time",children:U?.map(t=>{if(I.hasText(t.value))return s.jsx("div",{children:s.jsxs("p",{children:[s.jsx("span",{className:"g-tip-text",children:u(t.key)}),s.jsx("span",{children:t.value})]})},t.key)})}):void 0]})})]})]})]})},{Title:pe}=J,ke=()=>{const[i]=re();let o=oe(i.get("loginPolicyId"),""),{t:a}=$();const x=m.useRef(null);let u=le();const y=async()=>{if(o){let c=await P.getById(o);return c.expirationAt===0&&(c.expirationAt=void 0),c}return{ipGroup:"0.0.0.0/0",priority:50,rule:"reject",enabled:!0}};let p=ne({mutationFn:async c=>{c.expirationAt?c.expirationAt=ae(c.expirationAt).unix()*1e3:c.expirationAt=0,c.id?await P.updateById(c.id,c):await P.create(c)},onSuccess:()=>{u(-1)}});const k=async c=>{x.current?.validateFields().then(()=>{p.mutate(c)})};return s.jsxs("div",{className:"px-4",children:[s.jsx(pe,{level:5,style:{marginTop:0},children:a("actions.new")}),s.jsxs(Q,{formRef:x,request:y,onFinish:k,children:[s.jsx(N,{hidden:!0,name:"id"}),s.jsx(N,{name:"name",label:a("general.name"),rules:[{required:!0}]}),s.jsx(X,{name:"priority",label:a("identity.policy.priority"),extra:a("identity.policy.priority_extra"),rules:[{required:!0}],fieldProps:{min:1,max:100}}),s.jsx(N,{name:"ipGroup",label:a("identity.policy.ip_group"),extra:a("identity.policy.ip_group_extra"),rules:[{required:!0}]}),s.jsx(Z.Item,{label:a("identity.policy.time_period"),name:"timePeriod",children:s.jsx(ue,{})}),s.jsx(ee.Group,{label:a("identity.policy.action.label"),name:"rule",rules:[{required:!0}],options:[{value:"allow",label:a("identity.policy.action.allow")},{value:"reject",label:a("identity.policy.action.reject")}]}),s.jsx(te,{label:a("assets.limit_time"),name:"expirationAt",fieldProps:{format:"YYYY-MM-DD HH:mm:ss",showTime:!0}}),s.jsx(se,{label:a("general.status"),name:"enabled",rules:[{required:!0}]})]})]})};export{ke as default}; diff --git a/server/resource/build/assets/LoginPolicyPostPage-BQyj14Fs.css b/server/resource/build/assets/LoginPolicyPostPage-BQyj14Fs.css deleted file mode 100644 index 9d06a00a7..000000000 --- a/server/resource/build/assets/LoginPolicyPostPage-BQyj14Fs.css +++ /dev/null @@ -1 +0,0 @@ -.week-time{min-width:640px;position:relative;display:inline-block}.schedule{background:#40a9ff;position:absolute;width:0;height:0;opacity:.6;pointer-events:none}.schedule-notransi{transition:width .12s ease,height .12s ease,top .12s ease,left .12s ease}.week-time-table{border-collapse:collapse}.week-time-table th{vertical-align:inherit;font-weight:700}.week-time-table tr{height:30px}.week-time-table tr,.week-time-table td,.week-time-table th{user-select:none;border:1px solid #d9d9d9;text-align:center;min-width:12px;line-height:1.8em;transition:background .2s ease}@media(prefers-color-scheme:dark){.week-time-table tr,.week-time-table td,.week-time-table th{border:1px solid #555555}}.week-time-table .week-time-head{font-size:12px}.week-time-table .week-time-head .week-td{width:70px}.week-time-table .week-time-body{font-size:12px}.week-time-table .week-time-body td.ui-selected{background-color:#096dd9}.week-time-table .week-time-preview{line-height:2.4em;padding:0 10px;font-size:14px}.week-time-table .week-time-preview .week-time-con{line-height:46px;user-select:none}.week-time-table .week-time-preview .week-time-time{text-align:left;line-height:2.4em}.week-time-table .week-time-preview .week-time-time p{max-width:625px;line-height:1.4em;word-break:break-all;margin-bottom:8px}.week-time-table tr,.week-time-table td,.week-time-table th{min-width:12px}.d-clearfix:after,.d-clearfix:before{clear:both;content:" ";display:table}.g-pull-left{float:left}.g-pull-right{float:right;margin-left:5px;color:#096dd9}.g-tip-text{color:#8c8c8c;margin-right:10px} diff --git a/server/resource/build/assets/MobileAccessTerminal-DNKK6b04.js b/server/resource/build/assets/MobileAccessTerminal-DNKK6b04.js deleted file mode 100644 index 3d2f5426f..000000000 --- a/server/resource/build/assets/MobileAccessTerminal-DNKK6b04.js +++ /dev/null @@ -1 +0,0 @@ -import{S as s}from"./antd-Afm2kNt7.js";import{b as t,m as a,n as i}from"./index-DQXwuKC5.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";const d=()=>{let[e]=t(),r=e.get("assetId");return a.hasText(r)?s.jsx("div",{children:s.jsx(i,{assetId:r})}):s.jsx("div",{children:"Error"})};export{d as default}; diff --git a/server/resource/build/assets/NButton-DoPcvKBF.js b/server/resource/build/assets/NButton-DoPcvKBF.js deleted file mode 100644 index 735e54c55..000000000 --- a/server/resource/build/assets/NButton-DoPcvKBF.js +++ /dev/null @@ -1 +0,0 @@ -import{S as e,av as u}from"./antd-Afm2kNt7.js";const j=({classNames:t,href:a,target:n,danger:o,disabled:i,children:r,onClick:m,style:s,loading:p})=>(s||(s={padding:0}),e.jsx(u,{className:t?.join(" "),type:"link",size:"small",href:a,danger:o,disabled:i,onClick:m,style:s,target:n,loading:p,children:r}));export{j as N}; diff --git a/server/resource/build/assets/NLink-Dl2yFaN4.js b/server/resource/build/assets/NLink-Dl2yFaN4.js deleted file mode 100644 index 60c29e45a..000000000 --- a/server/resource/build/assets/NLink-Dl2yFaN4.js +++ /dev/null @@ -1 +0,0 @@ -import{S as s}from"./antd-Afm2kNt7.js";import{y as t}from"./index-DQXwuKC5.js";const i=({to:r,children:e})=>s.jsx(t,{to:r,className:"text-blue-500 hover:underline",children:e});export{i as N}; diff --git a/server/resource/build/assets/OfflineSessionPage-D1UBBI15.js b/server/resource/build/assets/OfflineSessionPage-D1UBBI15.js deleted file mode 100644 index 6fa5ad999..000000000 --- a/server/resource/build/assets/OfflineSessionPage-D1UBBI15.js +++ /dev/null @@ -1 +0,0 @@ -import{S as e,au as L,ar as $,b0 as j,bN as h,a$ as g,f as o,aI as F,ay as c,av as p,aS as B,bz as q,bp as w,a_ as f,bi as S,b2 as K,bo as M}from"./antd-Afm2kNt7.js";import{g as V}from"./sort-BOdE-yay.js";import{s as l}from"./session-api-mmDQqQeA.js";import{u as N,e as H,h as z,E as Q,Y as U}from"./index-DQXwuKC5.js";import{N as v}from"./NButton-DoPcvKBF.js";import{c as W}from"./charts-DWBuA5Za.js";import"./monaco-CA9D5Osg.js";import"./xterm-Buno8AXJ.js";const{Paragraph:Y}=g,G=({open:s,sessionId:d,onClose:y})=>{const{t:i}=N(),{data:n,isLoading:m,error:u}=H({queryKey:["session-audit",d],queryFn:()=>l.getAudit(d),enabled:s&&!!d});return e.jsxs(L,{title:i("audit.audit_detail"),placement:"right",width:600,onClose:y,open:s,children:[m&&e.jsx("div",{className:"flex justify-center items-center h-40",children:e.jsx($,{size:"large"})}),u&&e.jsx(j,{type:"error",message:i("audit.audit_load_failed"),description:String(u)}),n&&e.jsxs("div",{className:"space-y-4",children:[e.jsxs(h,{column:1,bordered:!0,size:"small",children:[e.jsxs(h.Item,{label:i("audit.audit_status.label"),children:[n.status==="completed"&&e.jsx("span",{className:"text-green-600",children:i("audit.audit_status.completed")}),n.status==="pending"&&e.jsx("span",{className:"text-blue-600",children:i("audit.audit_status.pending")}),n.status==="failed"&&e.jsx("span",{className:"text-red-600",children:i("audit.audit_status.failed")})]}),e.jsx(h.Item,{label:i("general.created_at"),children:n.createdAt?new Date(n.createdAt*1e3).toLocaleString():"-"}),e.jsx(h.Item,{label:i("general.updated_at"),children:n.updatedAt?new Date(n.updatedAt*1e3).toLocaleString():"-"})]}),n.error&&e.jsx(j,{type:"error",message:i("audit.audit_error"),description:n.error}),n.content&&e.jsxs("div",{children:[e.jsx("div",{className:"font-medium mb-2",children:i("audit.audit_content")}),e.jsx("div",{className:"bg-gray-100 dark:bg-gray-800 p-4 rounded",children:e.jsx(Y,{style:{margin:0,whiteSpace:"pre-wrap"},children:n.content})})]})]}),!m&&!u&&!n&&e.jsx(j,{type:"info",message:i("audit.no_audit_data")})]})},ie=()=>{const{t:s}=N(),d=o.useRef(null),[y,i]=o.useState(!1),[n,m]=o.useState(""),[u,b]=o.useState(!1),[T,_]=o.useState(new Set),{modal:C,message:E}=F.useApp();o.useEffect(()=>{l.auditEnabled().then(({terminalEnabled:t})=>i(t)).catch(()=>i(!1))},[]);const O=t=>{m(t),b(!0)},k=async t=>{_(a=>new Set(a).add(t));try{await l.triggerAudit(t),d.current?.reload()}catch{E.error(s("audit.audit_failed"))}finally{_(a=>{const r=new Set(a);return r.delete(t),r})}},I=z({mutationFn:l.deleteById,onSuccess:()=>d.current?.reload()}),P=z({mutationFn:l.clear,onSuccess:()=>d.current?.reload()}),D=t=>{const a=t.protocol==="ssh"||t.protocol==="telnet",r=t.recordingSize>0&&a&&y,x=T.has(t.id);switch(t.auditStatus){case"pending":return e.jsx(K,{title:s("audit.audit_status.pending_tip"),children:e.jsx(S,{icon:e.jsx(M,{spin:!0}),color:"processing",children:s("audit.audit_status.pending")})});case"completed":return e.jsxs(f,{size:4,children:[e.jsx(S,{color:"success",children:s("audit.audit_status.completed")}),e.jsx(p,{type:"link",size:"small",style:{padding:0},onClick:()=>O(t.id),children:s("audit.audit_status.view")})]});case"failed":return e.jsxs(f,{size:4,children:[e.jsx(S,{color:"error",children:s("audit.audit_status.failed")}),r&&e.jsx(p,{type:"link",size:"small",danger:!0,loading:x,style:{padding:0},onClick:()=>k(t.id),children:s("audit.audit_status.retry")})]});default:return r?e.jsx(p,{type:"link",size:"small",loading:x,style:{padding:0},onClick:()=>k(t.id),children:s("audit.audit_status.start")}):null}},R=[{title:s("menus.identity.submenus.user"),dataIndex:"userAccount",key:"userAccount"},{title:s("menus.resource.submenus.asset"),dataIndex:"assetName",key:"assetName",render:(t,a)=>{const r=`${a.protocol} ${a.username}@${a.ip}:${a.port}`;return e.jsxs("div",{children:[e.jsx("div",{children:t}),e.jsx(g.Text,{type:"secondary",children:r})]})}},{title:s("audit.client_ip"),dataIndex:"clientIp",key:"clientIp",render:(t,a)=>e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{children:t}),e.jsx(g.Text,{type:"secondary",children:a.region})]})},{title:s("assets.protocol"),dataIndex:"protocol",key:"protocol",sorter:!0,render:(t,a)=>e.jsx("span",{className:W("rounded-md px-1.5 py-1 text-white font-bold",Q(a.protocol)),style:{fontSize:9},children:a.protocol.toUpperCase()}),renderFormItem:(t,{type:a})=>a==="form"?null:e.jsxs(c,{children:[e.jsx(c.Option,{value:"rdp",children:"RDP"}),e.jsx(c.Option,{value:"ssh",children:"SSH"}),e.jsx(c.Option,{value:"telnet",children:"Telnet"}),e.jsx(c.Option,{value:"vnc",children:"VNC"}),e.jsx(c.Option,{value:"kubernetes",children:"Kubernetes"})]})},{title:s("audit.connected_at"),dataIndex:"connectedAt",key:"connectedAt",hideInSearch:!0,valueType:"dateTime"},{title:s("audit.connection_duration"),dataIndex:"connectionDuration",key:"connectionDuration",hideInSearch:!0},{title:s("audit.recording_size"),dataIndex:"recordingSize",key:"recordingSize",hideInSearch:!0,render:(t,a)=>{const r=a.commandCount;return e.jsxs("div",{children:[e.jsx("div",{children:U(a.recordingSize)}),r>0&&e.jsxs(g.Text,{type:"secondary",children:[s("sysops.command")," × ",r]})]})}},{title:s("audit.audit_status.label"),dataIndex:"auditStatus",key:"auditStatus",hideInSearch:!0,render:(t,a)=>D(a)},{title:s("actions.label"),valueType:"option",key:"option",render:(t,a)=>{const r=a.recordingSize<=0;return[e.jsx(p,{disabled:r,type:"link",size:"small",onClick:()=>{switch(a.protocol){case"ssh":case"telnet":window.open(`/terminal-playback?sessionId=${a.id}`,"_blank");break;case"rdp":case"vnc":window.open(`/graphics-playback?sessionId=${a.id}`,"_blank");break}},children:s("audit.options.playback")},"playback"),e.jsx(B,{title:s("general.confirm_delete"),onConfirm:async()=>{await l.deleteById(a.id),d.current?.reload()},children:e.jsx(v,{danger:!0,children:s("actions.delete")})},"delete-confirm")]}}];return e.jsxs("div",{children:[e.jsx(q,{defaultSize:"small",columns:R,actionRef:d,request:async(t={},a)=>{const[r,x]=V(a),A=await l.getPaging({pageIndex:t.current,pageSize:t.pageSize,order:r,field:x,status:"disconnected",clientIp:t.clientIp,protocol:t.protocol,assetName:t.assetName,userAccount:t.userAccount});return{data:A.items,success:!0,total:A.total}},rowKey:"id",search:{labelWidth:"auto"},pagination:{defaultPageSize:10,showSizeChanger:!0},dateFormatter:"string",headerTitle:s("menus.log_audit.submenus.offline_session"),rowSelection:{selections:[w.SELECTION_ALL,w.SELECTION_INVERT]},tableAlertOptionRender:({selectedRowKeys:t})=>e.jsx(f,{size:16,children:e.jsx(v,{danger:!0,loading:I.isPending,onClick:()=>I.mutate(t.join(",")),children:s("actions.delete")})}),toolBarRender:()=>[e.jsx(p,{type:"primary",danger:!0,onClick:()=>{C.confirm({title:s("general.clear_confirm"),onOk:()=>P.mutate()})},children:s("actions.clear")},"clear")],polling:5e3}),e.jsx(G,{open:u,sessionId:n,onClose:()=>b(!1)})]})};export{ie as default}; diff --git a/server/resource/build/assets/OidcCallback-qbNXTZur.js b/server/resource/build/assets/OidcCallback-qbNXTZur.js deleted file mode 100644 index 33f4ab1ff..000000000 --- a/server/resource/build/assets/OidcCallback-qbNXTZur.js +++ /dev/null @@ -1 +0,0 @@ -import{f as c,S as t,ar as l,aZ as m}from"./antd-Afm2kNt7.js";import{b as u,a as g,u as d,h as f,l as x}from"./index-DQXwuKC5.js";import{o as p}from"./oidc-api-DdlmoOii.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";const y=()=>{const[n]=u(),s=g(),{t:o}=d(),a=f({mutationFn:({code:e,state:r})=>p.login(e,r),onSuccess:e=>{x(e.token),sessionStorage.removeItem("current"),sessionStorage.removeItem("openKeys"),s("/")},onError:e=>{console.error("OIDC login failed:",e),s(`/login?error=${e.message}`)},retry:!1});return c.useEffect(()=>{const e=n.get("code"),r=n.get("state"),i=sessionStorage.getItem("oidc_state");if(!e){s("/login?error=oidc_cancelled");return}if(!r){console.error("Missing state parameter"),s("/login?error=invalid_state");return}if(i&&r!==i){console.error("State mismatch"),s("/login?error=state_mismatch");return}sessionStorage.removeItem("oidc_state"),a.mutate({code:e,state:r})},[]),a.isPending?t.jsx("div",{className:"h-screen w-screen flex items-center justify-center",children:t.jsxs("div",{className:"text-center",children:[t.jsx(l,{size:"large"}),t.jsx("div",{className:"mt-4 text-lg",children:o("account.login.processing")})]})}):a.isError?t.jsx("div",{className:"h-screen w-screen flex items-center justify-center",children:t.jsx(m,{status:"error",title:o("account.login.failed"),subTitle:o("account.login.oidc_error"),extra:[t.jsx("button",{className:"px-4 py-2 bg-blue-500 text-white rounded",onClick:()=>s("/login"),children:o("account.login.back_to_login")},"retry")]})}):null};export{y as default}; diff --git a/server/resource/build/assets/OidcClientPage-DeSDpT3L.js b/server/resource/build/assets/OidcClientPage-DeSDpT3L.js deleted file mode 100644 index 834fcc023..000000000 --- a/server/resource/build/assets/OidcClientPage-DeSDpT3L.js +++ /dev/null @@ -1,2 +0,0 @@ -var L=Object.defineProperty;var D=(e,l,d)=>l in e?L(e,l,{enumerable:!0,configurable:!0,writable:!0,value:d}):e[l]=d;var b=(e,l,d)=>D(e,typeof l!="symbol"?l+"":l,d);import{f as h,S as t,U as E,aK as M,aT as g,b$ as N,aN as v,aV as W,bH as G,aL as T,aU as H,aI as V,bi as f,az as J,aS as j,bI as Q,bz as X,a_ as k,av as P,bd as q}from"./antd-Afm2kNt7.js";import{A as Y,r as A,u as O,h as w}from"./index-DQXwuKC5.js";import{g as Z}from"./sort-BOdE-yay.js";import{N as R}from"./NButton-DoPcvKBF.js";import{u as ee}from"./user-api-BJxKseSg.js";import{d as te}from"./department-api-fa0GHZbt.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";class ie extends Y{constructor(){super("admin/oidc-clients");b(this,"regenerateSecret",async d=>await A.post(`/${this.group}/${d}/regenerate-secret`,{}));b(this,"updateStatus",async(d,u)=>{await A.patch(`/${this.group}/${d}/status`,{status:u})})}}const U=new ie,ne=({visible:e,onOk:l,onCancel:d,confirmLoading:u,id:p})=>{const m=h.useRef(null),{t:i}=O(),x=async()=>{if(p){const s=await U.getById(p);return{...s,redirectUris:(s.redirectUris||[]).map(a=>({url:a})),accessControl:s.accessControl||"all"}}return{grantTypes:["authorization_code","refresh_token"],scopes:["openid","profile","email"],redirectUris:[],accessControl:"all"}},_=async s=>{s.redirectUris&&Array.isArray(s.redirectUris)&&(s.redirectUris=s.redirectUris.map(a=>(a?.url??"").trim()).filter(a=>a)),await l(s)};return t.jsx(E,{title:i(p?"actions.edit":"actions.new"),open:e,maskClosable:!1,destroyOnHidden:!0,onOk:()=>{m.current?.validateFields().then(_)},onCancel:d,confirmLoading:u,width:700,children:t.jsxs(M,{formRef:m,request:x,submitter:!1,children:[t.jsx(g,{hidden:!0,name:"id"}),t.jsx(g,{name:"name",label:i("general.name"),rules:[{required:!0,message:i("identity.oidc_client.name_required")}],placeholder:i("identity.oidc_client.name_placeholder")}),t.jsx(g,{name:"clientId",label:i("identity.oidc_client.client_id_label"),rules:[{required:!0,message:i("identity.oidc_client.client_id_required")}],placeholder:i("identity.oidc_client.client_id_placeholder"),disabled:!!p,tooltip:p?i("identity.oidc_client.client_id_tooltip"):void 0}),t.jsx(N,{name:"redirectUris",label:i("identity.oidc_client.redirect_uris"),rules:[{validator:async(s,a)=>!a||a.length===0?Promise.reject(new Error(i("identity.oidc_client.redirect_uris_required"))):Promise.resolve()}],creatorButtonProps:{creatorButtonText:i("identity.oidc_client.redirect_uris_add")},min:1,copyIconProps:!1,alwaysShowItemLabel:!1,itemRender:({listDom:s,action:a},{index:c})=>t.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[t.jsx("div",{style:{flex:1},children:s}),a]}),children:t.jsx(g,{name:"url",rules:[{required:!0,message:i("identity.oidc_client.redirect_uri_required")},{type:"url",message:i("general.invalid_url")}],placeholder:"https://example.com/callback"})}),t.jsx(v.Group,{name:"grantTypes",label:i("identity.oidc_client.grant_types"),rules:[{required:!0,message:i("identity.oidc_client.grant_types_required")}],options:[{label:"Authorization Code",value:"authorization_code"},{label:"Refresh Token",value:"refresh_token"},{label:"Client Credentials",value:"client_credentials"}]}),t.jsx(v.Group,{name:"scopes",label:i("identity.oidc_client.scopes"),rules:[{required:!0,message:i("identity.oidc_client.scopes_required")}],options:[{label:"OpenID",value:"openid"},{label:"Profile",value:"profile"},{label:"Email",value:"email"},{label:"Offline Access",value:"offline_access"}]}),t.jsx(W.Group,{name:"accessControl",label:i("identity.oidc_client.access_control"),tooltip:i("identity.oidc_client.access_control_tip"),initialValue:"all",options:[{label:i("identity.oidc_client.access_all_users"),value:"all"},{label:i("identity.oidc_client.access_departments"),value:"department"},{label:i("identity.oidc_client.access_users"),value:"user"}]}),t.jsx(G,{name:["accessControl"],children:({accessControl:s})=>s==="user"?t.jsx(T,{name:"boundUserIds",label:i("identity.oidc_client.bound_users"),placeholder:i("identity.oidc_client.bound_users_placeholder"),mode:"multiple",fieldProps:{showSearch:!0,filterOption:(a,c)=>(c?.label??"").toLowerCase().includes(a.toLowerCase())},request:async()=>(await ee.getAll()).map(c=>({label:`${c.nickname} (${c.username})`,value:c.id})),rules:[{required:!0,message:i("identity.oidc_client.bound_users_required")}]}):s==="department"?t.jsx(T,{name:"boundDepartmentIds",label:i("identity.oidc_client.bound_departments"),placeholder:i("identity.oidc_client.bound_departments_placeholder"),mode:"multiple",fieldProps:{showSearch:!0,filterOption:(a,c)=>(c?.label??"").toLowerCase().includes(a.toLowerCase())},request:async()=>(await te.getAll()).map(c=>({label:c.name,value:c.id})),rules:[{required:!0,message:i("identity.oidc_client.bound_departments_required")}]}):null}),t.jsx(H,{name:"description",label:i("general.description"),placeholder:i("identity.oidc_client.description_placeholder"),fieldProps:{rows:3}})]})})},y=U,_e=()=>{const{t:e}=O(),l=h.useRef(null);let[d,u]=h.useState(!1),[p,m]=h.useState(),[i,x]=h.useState(),{message:_,modal:s}=V.useApp(),c=w({mutationFn:async n=>{if(n.id)await y.updateById(n.id,n);else{let r=await y.create(n);s.success({title:e("identity.oidc_client.created_success"),content:t.jsxs("div",{children:[t.jsxs("div",{children:[t.jsxs("strong",{children:[e("settings.oidc.client_id"),":"]})," ",r.client.clientId]}),t.jsxs("div",{children:[t.jsxs("strong",{children:[e("settings.oidc.client_secret"),":"]})," ",r.secret]}),t.jsx("div",{className:"text-red-500 mt-2",children:e("identity.oidc_client.created_copy_tip")})]}),okText:e("actions.copy"),onOk:()=>{q(`Client ID: ${r.client.clientId} -Client Secret: ${r.secret}`),_.success(e("general.copy_success"))}})}},onSuccess:()=>{l.current?.reload(),u(!1),m(void 0),_.success(e("general.success"))}});const S=()=>{_.success(e("general.success"))},C=async n=>{await y.deleteById(n.join(",")),S(),l.current?.reload(),x([])},F=w({mutationFn:({id:n,status:r})=>y.updateStatus(n,r),onSuccess:()=>{l.current?.reload(),S()}}),z=w({mutationFn:n=>y.regenerateSecret(n),onSuccess:n=>{s.success({title:e("identity.oidc_client.secret_regenerated"),content:t.jsxs("div",{children:[t.jsxs("div",{children:[t.jsxs("strong",{children:[e("identity.oidc_client.new_secret_label"),":"]})," ",n.clientSecret]}),t.jsx("div",{className:"text-red-500 mt-2",children:e("identity.oidc_client.new_secret_tip")})]}),okText:e("actions.copy"),onOk:()=>{q(n.clientSecret),_.success(e("general.copy_success"))}})}}),K=[{title:e("general.name"),dataIndex:"name",fixed:"left"},{title:e("identity.oidc_client.client_id_label"),dataIndex:"clientId",copyable:!0},{title:e("identity.oidc_client.redirect_uris"),dataIndex:"redirectUris",search:!1,render:(n,r)=>r.redirectUris?.map(o=>t.jsx(f,{children:o},o))},{title:e("identity.oidc_client.grant_types"),dataIndex:"grantTypes",search:!1,render:(n,r)=>r.grantTypes?.map(o=>t.jsx(f,{children:o},o))},{title:e("identity.oidc_client.scopes"),dataIndex:"scopes",search:!1,render:(n,r)=>r.scopes?.map(o=>t.jsx(f,{children:o},o))},{title:e("general.status"),dataIndex:"status",valueType:"select",valueEnum:{enabled:{text:e("general.enabled"),status:"Success"},disabled:{text:e("general.disabled"),status:"Default"}},render:(n,r)=>t.jsx(J,{checkedChildren:e("general.enabled"),unCheckedChildren:e("general.disabled"),checked:r.status==="enabled",onChange:o=>{F.mutate({id:r.id,status:o?"enabled":"disabled"})}})},{title:e("general.description"),dataIndex:"description",search:!1,ellipsis:!0},{title:e("general.created_at"),dataIndex:"createdAt",valueType:"dateTime",search:!1,sorter:!0},{title:e("actions.label"),valueType:"option",fixed:"right",render:(n,r)=>[t.jsx(R,{onClick:()=>{m(r.id),u(!0)},children:e("actions.edit")},"edit"),t.jsx(j,{title:e("identity.oidc_client.regenerate_secret"),description:e("identity.oidc_client.regenerate_secret_confirm"),onConfirm:async()=>{z.mutate(r.id)},okText:e("actions.confirm"),cancelText:e("actions.cancel"),children:t.jsx(R,{danger:!0,children:e("identity.oidc_client.regenerate_secret")})},"regenerate"),t.jsx(Q,{menus:[{key:"delete",name:t.jsx(j,{title:e("general.confirm_delete"),onConfirm:async()=>{await C([r.id])},okText:e("actions.confirm"),cancelText:e("actions.cancel"),children:e("actions.delete")})}]},"actionGroup")]}];return t.jsxs(t.Fragment,{children:[t.jsx(X,{columns:K,actionRef:l,request:async(n={},r)=>{let[o,$]=Z(r),B={pageIndex:n.current,pageSize:n.pageSize,order:o,field:$,name:n.name,clientId:n.clientId,status:n.status},I=await y.getPaging(B);return{data:I.items,success:!0,total:I.total}},columnsState:{persistenceKey:"oidc-client-table-show",persistenceType:"localStorage"},rowKey:"id",search:{labelWidth:"auto"},pagination:{defaultPageSize:10,showSizeChanger:!0},scroll:{x:"max-content"},dateFormatter:"string",headerTitle:e("identity.oidc_client.title"),toolBarRender:()=>[t.jsx(P,{type:"primary",onClick:()=>{m(void 0),u(!0)},children:e("actions.new")},"button")],rowSelection:{selectedRowKeys:i,onChange:n=>{x(n)}},tableAlertRender:({selectedRowKeys:n,onCleanSelected:r})=>t.jsx(k,{size:16,children:t.jsxs("span",{children:[e("identity.oidc_client.selected_count",{count:n.length}),t.jsx("a",{style:{marginInlineStart:8},onClick:r,children:e("actions.cancel")})]})}),tableAlertOptionRender:({selectedRowKeys:n,onCleanSelected:r})=>t.jsx(k,{size:16,children:t.jsx(j,{title:e("general.confirm_delete"),onConfirm:async()=>{await C(n),r()},okText:e("actions.confirm"),cancelText:e("actions.cancel"),children:t.jsx(P,{type:"link",size:"small",children:e("actions.batch_delete")})})})}),t.jsx(ne,{id:p,visible:d,onOk:async n=>{await c.mutateAsync(n)},confirmLoading:c.isPending,onCancel:()=>{u(!1),m(void 0)}})]})};export{_e as default}; diff --git a/server/resource/build/assets/OidcServerConsent-zcgmhrgY.js b/server/resource/build/assets/OidcServerConsent-zcgmhrgY.js deleted file mode 100644 index efd3cdd5e..000000000 --- a/server/resource/build/assets/OidcServerConsent-zcgmhrgY.js +++ /dev/null @@ -1 +0,0 @@ -import{f as a,S as e,ar as D,b0 as u,aY as P,a$ as R,bE as z,ai as E,be as y,a_ as _,av as b,bF as q,bG as A}from"./antd-Afm2kNt7.js";import{u as T,b as O,a as $,g as m}from"./index-DQXwuKC5.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";const{Title:F,Text:l}=R,B=()=>{const{t}=T(),[r]=O(),x=$(),[N,p]=a.useState(!0),[h,f]=a.useState(!1),[n,v]=a.useState(null),[d,g]=a.useState([]),[i,w]=a.useState(null),I={openid:t("account.oidc_consent.scope.openid"),profile:t("account.oidc_consent.scope.profile"),email:t("account.oidc_consent.scope.email"),offline_access:t("account.oidc_consent.scope.offline_access")};a.useEffect(()=>{S()},[]);const S=async()=>{try{const s=r.get("client_id"),o=r.get("scopes"),c=r.get("return_url");if(!s||!o||!c)throw new Error("Missing required parameters");const[j,k]=await Promise.all([m.getOidcConsentPage(s,o,c,void 0),m.getUserInfo()]);v(j),w(k),g(j.scopes),p(!1)}catch(s){console.error("Failed to load consent page data:",s),p(!1)}},C=async()=>{if(n){f(!0);try{const s=r.get("client_id"),o=r.get("return_url");if(!s||!o)throw new Error("Missing required parameters");const c=await m.submitOidcConsent(s,o,!0,d);c&&c.return_url?window.location.href=c.return_url:x("/")}catch(s){console.error("Authorization failed:",s),f(!1)}}},U=()=>{if(n&&n.redirectURI){const s=new URL(n.redirectURI);s.searchParams.set("error","access_denied"),s.searchParams.set("error_description","User denied consent"),n.state&&s.searchParams.set("state",n.state),window.location.href=s.toString()}else x("/")};return N?e.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",padding:"16px"},children:e.jsx(D,{size:"large",tip:t("general.loading")})}):n?e.jsx("div",{className:"flex justify-center items-center min-h-screen bg-gray-100 p-4",children:e.jsxs(P,{className:"w-full shadow-md",style:{maxWidth:460},styles:{body:{padding:"24px"}},children:[e.jsxs("div",{className:"text-center mb-5",children:[e.jsx(F,{level:3,className:"mt-3 mb-1",children:t("account.oidc_consent.title")}),e.jsx(l,{type:"secondary",className:"text-[13px]",children:t("account.oidc_consent.subtitle")})]}),e.jsxs("div",{className:"flex flex-col gap-4",children:[i&&e.jsx("div",{className:"bg-gray-50 rounded-lg p-3 mb-4 border border-gray-200",children:e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx(z,{size:40,icon:e.jsx(E,{}),className:"bg-blue-500 flex-shrink-0"}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx(l,{type:"secondary",className:"text-xs block mb-0.5",children:t("account.oidc_consent.current_account")}),e.jsx(l,{strong:!0,className:"text-sm block",children:i.nickname||i.username}),i.email&&e.jsx(l,{type:"secondary",className:"text-xs",children:i.email})]})]})}),e.jsx(u,{message:e.jsxs("span",{className:"text-[13px]",children:[e.jsx("strong",{children:n.clientID})," ",t("account.oidc_consent.request_access")]}),description:e.jsx("span",{className:"text-xs",children:t("account.oidc_consent.request_access_desc")}),type:"info",showIcon:!0}),e.jsxs("div",{children:[e.jsx(l,{strong:!0,className:"block mb-3 text-sm",children:t("account.oidc_consent.requested_scopes")}),e.jsx(y.Group,{value:d,onChange:s=>g(s),className:"w-full",children:e.jsx(_,{direction:"vertical",className:"w-full",size:8,children:n.scopes.map(s=>e.jsx(y,{value:s,children:e.jsxs("div",{className:"ml-2",children:[e.jsx("div",{className:"font-medium text-[13px] mb-0.5",children:s}),e.jsx("div",{className:"text-xs text-gray-500",children:I[s]||t("account.oidc_consent.scope.default")})]})},s))})})]}),e.jsx(u,{message:e.jsx("span",{className:"text-xs",children:t("account.oidc_consent.warning",{clientId:n.clientID})}),type:"warning",showIcon:!1,className:"px-3 py-2"}),e.jsxs(_,{className:"w-full justify-end",size:"middle",children:[e.jsx(b,{icon:e.jsx(q,{}),onClick:U,disabled:h,children:t("identity.policy.action.reject")}),e.jsx(b,{type:"primary",icon:e.jsx(A,{}),onClick:C,loading:h,disabled:d.length===0,children:t("actions.authorized")})]})]})]})}):e.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",padding:"16px"},children:e.jsx(u,{message:t("general.error"),description:t("account.oidc_consent.load_error"),type:"error",showIcon:!0,style:{maxWidth:400,width:"100%"}})})};export{B as default}; diff --git a/server/resource/build/assets/OnlineSessionPage-zbyIKEoo.js b/server/resource/build/assets/OnlineSessionPage-zbyIKEoo.js deleted file mode 100644 index c019c9e61..000000000 --- a/server/resource/build/assets/OnlineSessionPage-zbyIKEoo.js +++ /dev/null @@ -1 +0,0 @@ -import{f,aI as g,S as t,a$ as d,ay as r,aS as y,bz as j}from"./antd-Afm2kNt7.js";import{g as v}from"./sort-BOdE-yay.js";import{s as u}from"./session-api-mmDQqQeA.js";import{N as p}from"./NButton-DoPcvKBF.js";import{c as I}from"./charts-DWBuA5Za.js";import{u as w,E as S}from"./index-DQXwuKC5.js";import"./monaco-CA9D5Osg.js";import"./xterm-Buno8AXJ.js";const C=()=>{const{t:o}=w(),a=f.useRef(null),{message:m}=g.useApp(),x=[{title:o("menus.identity.submenus.user"),dataIndex:"userAccount",key:"userAccount"},{title:o("menus.resource.submenus.asset"),dataIndex:"assetName",key:"assetName",render:(n,e)=>{let s=t.jsx("div",{children:n});const i=`${e.protocol} ${e.username}@${e.ip}:${e.port}`;return t.jsxs("div",{children:[s,t.jsx(d.Text,{type:"secondary",children:i})]})}},{title:o("audit.client_ip"),dataIndex:"clientIp",key:"clientIp",render:(n,e)=>{let s=t.jsx("div",{children:n});const i=e.region;return t.jsxs("div",{className:"flex items-center gap-2",children:[s,t.jsx(d.Text,{type:"secondary",children:i})]})}},{title:o("assets.protocol"),dataIndex:"protocol",key:"protocol",sorter:!0,render:(n,e)=>t.jsx("span",{className:I("rounded-md px-1.5 py-1 text-white font-bold",S(e.protocol)),style:{fontSize:9},children:e.protocol.toUpperCase()}),renderFormItem:(n,{type:e,defaultRender:s,...i},l)=>e==="form"?null:t.jsxs(r,{children:[t.jsx(r.Option,{value:"rdp",children:"RDP"}),t.jsx(r.Option,{value:"ssh",children:"SSH"}),t.jsx(r.Option,{value:"telnet",children:"Telnet"}),t.jsx(r.Option,{value:"vnc",children:"VNC"}),t.jsx(r.Option,{value:"kubernetes",children:"Kubernetes"})]})},{title:o("audit.connected_at"),dataIndex:"connectedAt",key:"connectedAt",hideInSearch:!0,valueType:"dateTime"},{title:o("audit.connection_duration"),dataIndex:"connectionDuration",key:"connectionDuration",hideInSearch:!0},{title:o("actions.label"),valueType:"option",key:"option",render:(n,e,s,i)=>[t.jsx(p,{onClick:()=>{switch(e.protocol){case"ssh":window.open(`/terminal-monitor?sessionId=${e.id}`,"_blank");break;case"rdp":case"vnc":window.open(`/graphics-monitor?sessionId=${e.id}`,"_blank");break;default:m.warning(o("audit.unknown_protocol",{protocol:e.protocol}))}},children:o("gateways.monitor.action")},"monitor"),t.jsx(y,{title:o("audit.options.disconnect.confirm"),onConfirm:async()=>{await u.disconnect(e.id),a.current?.reload()},children:t.jsx(p,{danger:!0,children:o("audit.options.disconnect.action")},"delete")},"confirm-disconnect")]}];return t.jsx("div",{children:t.jsx(j,{defaultSize:"small",columns:x,actionRef:a,request:async(n={},e,s)=>{let[i,l]=v(e),h={pageIndex:n.current,pageSize:n.pageSize,order:i,field:l,status:"connected",clientIp:n.clientIp,protocol:n.protocol,assetName:n.assetName,userAccount:n.userAccount},c=await u.getPaging(h);return{data:c.items,success:!0,total:c.total}},rowKey:"id",search:{labelWidth:"auto"},pagination:{defaultPageSize:10,showSizeChanger:!0},polling:1e3,dateFormatter:"string",headerTitle:o("menus.log_audit.submenus.online_session"),toolBarRender:()=>[]})})};export{C as default}; diff --git a/server/resource/build/assets/OperationLogPage-BlAhFenm.js b/server/resource/build/assets/OperationLogPage-BlAhFenm.js deleted file mode 100644 index 263fa713e..000000000 --- a/server/resource/build/assets/OperationLogPage-BlAhFenm.js +++ /dev/null @@ -1 +0,0 @@ -var x=Object.defineProperty;var f=(e,t,s)=>t in e?x(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var u=(e,t,s)=>f(e,typeof t!="symbol"?t+"":t,s);import{f as I,aI as y,S as i,bi as o,b2 as S,bz as A,av as k}from"./antd-Afm2kNt7.js";import{g as b}from"./sort-BOdE-yay.js";import{A as j,r as T,u as _,h as $}from"./index-DQXwuKC5.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";class w extends j{constructor(){super("admin/operation-logs");u(this,"clear",async()=>{await T.post(`/${this.group}/clear`)})}}let c=new w;const C=()=>{const{t:e}=_(),t=I.useRef(null);let{modal:s}=y.useApp(),d=$({mutationFn:c.clear,onSuccess:()=>{t.current?.reload()}});const p=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:e("audit.operation.account"),dataIndex:"accountName",key:"accountName",hideInSearch:!0},{title:e("assets.type"),dataIndex:"action",key:"action",render:(a,r)=>{let n="blue";return r.action.includes("add")?n="green":r.action.includes("delete")&&(n="red"),i.jsx(o,{bordered:!1,color:n,children:e("audit.operation.options."+r.action.replaceAll("-","_"))})},hideInSearch:!0},{title:e("actions.detail"),dataIndex:"content",key:"content",hideInSearch:!0},{title:e("general.status"),dataIndex:"success",key:"success",hideInSearch:!0,render:(a,r)=>a==="failed"?i.jsx(S,{title:r.errorMessage,children:i.jsx(o,{color:"error",children:e("general.failed")})}):i.jsx(o,{color:"success",children:e("general.success")})},{title:e("audit.client_ip"),dataIndex:"ip",key:"ip",render:(a,r)=>`${a} (${r.region})`},{title:e("audit.user_agent"),dataIndex:"userAgent",key:"userAgent",hideInSearch:!0,render:(a,r)=>{let n=r.userAgent;return n?`${n?.OS} ${n?.OSVersion} ${n?.Name} ${n?.Version}`:"-"}},{title:e("audit.operation.at"),dataIndex:"createdAt",key:"createdAt",hideInSearch:!0,valueType:"dateTime",sorter:!0}];return i.jsx("div",{children:i.jsx(A,{defaultSize:"small",columns:p,actionRef:t,request:async(a={},r,n)=>{let[g,m]=b(r),h={pageIndex:a.current,pageSize:a.pageSize,order:g,field:m,username:a.username,clientIp:a.clientIp},l=await c.getPaging(h);return{data:l.items,success:!0,total:l.total}},rowKey:"id",search:{labelWidth:"auto"},pagination:{defaultPageSize:10,showSizeChanger:!0},dateFormatter:"string",headerTitle:e("menus.log_audit.submenus.operation_log"),toolBarRender:()=>[i.jsx(k,{type:"primary",danger:!0,onClick:()=>{s.confirm({title:e("general.clear_confirm"),onOk:async()=>d.mutate()})},children:e("actions.clear")},"clear")]})})};export{C as default}; diff --git a/server/resource/build/assets/QuerySelects-HiP3pg4d.js b/server/resource/build/assets/QuerySelects-HiP3pg4d.js deleted file mode 100644 index f0fdc4732..000000000 --- a/server/resource/build/assets/QuerySelects-HiP3pg4d.js +++ /dev/null @@ -1 +0,0 @@ -import{f as s,S as d,ay as m}from"./antd-Afm2kNt7.js";import{u as g}from"./user-api-BJxKseSg.js";import{d as y}from"./department-api-fa0GHZbt.js";import{a as b}from"./asset-api-1abjsV5s.js";import{w as S}from"./website-api-CiGWjL7L.js";import{d as A}from"./database-asset-api-BQeUyDt2.js";import{u as w}from"./index-DQXwuKC5.js";const v=({value:l,onChange:n})=>{const{t:c}=w(),[i,u]=s.useState([]),[f,a]=s.useState(!1);return s.useEffect(()=>{(async()=>{a(!0);try{const r=(await g.getAll()).map(t=>({label:t.nickname||t.username,value:t.id}));u(r)}catch(e){console.error("Failed to fetch users:",e)}finally{a(!1)}})()},[]),d.jsx(m,{value:l,onChange:n,placeholder:c("menus.identity.submenus.user"),allowClear:!0,showSearch:!0,loading:f,options:i,filterOption:(o,e)=>(e?.label??"").toString().toLowerCase().includes(o.toLowerCase())})},F=({value:l,onChange:n})=>{const{t:c}=w(),[i,u]=s.useState([]),[f,a]=s.useState(!1);return s.useEffect(()=>{(async()=>{a(!0);try{const r=(await y.getAll()).map(t=>({label:t.name,value:t.id}));u(r)}catch(e){console.error("Failed to fetch departments:",e)}finally{a(!1)}})()},[]),d.jsx(m,{value:l,onChange:n,placeholder:c("menus.identity.submenus.department"),allowClear:!0,showSearch:!0,loading:f,options:i,filterOption:(o,e)=>(e?.label??"").toString().toLowerCase().includes(o.toLowerCase())})},W=({value:l,onChange:n})=>{const{t:c}=w(),[i,u]=s.useState([]),[f,a]=s.useState(!1);return s.useEffect(()=>{(async()=>{a(!0);try{const e=await b.getGroups(),r=t=>{if(!t)return[];let h=[];return t.forEach(p=>{p.key!=="default"&&h.push({label:p.title||p.name,value:p.key}),p.children&&(h=h.concat(r(p.children)))}),h};u(r(e))}catch(e){console.error("Failed to fetch asset groups:",e)}finally{a(!1)}})()},[]),d.jsx(m,{value:l,onChange:n,placeholder:c("authorised.label.asset_group"),allowClear:!0,showSearch:!0,loading:f,options:i,filterOption:(o,e)=>(e?.label??"").toString().toLowerCase().includes(o.toLowerCase())})},k=({value:l,onChange:n})=>{const{t:c}=w(),[i,u]=s.useState([]),[f,a]=s.useState(!1);return s.useEffect(()=>{(async()=>{a(!0);try{const r=(await b.getAll()).map(t=>({label:t.name,value:t.id}));u(r)}catch(e){console.error("Failed to fetch assets:",e)}finally{a(!1)}})()},[]),d.jsx(m,{value:l,onChange:n,placeholder:c("menus.resource.submenus.asset"),allowClear:!0,showSearch:!0,loading:f,options:i,filterOption:(o,e)=>(e?.label??"").toString().toLowerCase().includes(o.toLowerCase())})},D=({value:l,onChange:n})=>{const{t:c}=w(),[i,u]=s.useState([]),[f,a]=s.useState(!1);return s.useEffect(()=>{(async()=>{a(!0);try{const e=await S.getGroups(),r=t=>{if(!t)return[];let h=[];return t.forEach(p=>{p.key!=="default"&&h.push({label:p.title||p.name,value:p.key}),p.children&&(h=h.concat(r(p.children)))}),h};u(r(e))}catch(e){console.error("Failed to fetch website groups:",e)}finally{a(!1)}})()},[]),d.jsx(m,{value:l,onChange:n,placeholder:c("authorised.label.website_group"),allowClear:!0,showSearch:!0,loading:f,options:i,filterOption:(o,e)=>(e?.label??"").toString().toLowerCase().includes(o.toLowerCase())})},U=({value:l,onChange:n})=>{const{t:c}=w(),[i,u]=s.useState([]),[f,a]=s.useState(!1);return s.useEffect(()=>{(async()=>{a(!0);try{const r=(await A.getAll()).map(t=>({label:t.name,value:t.id}));u(r)}catch(e){console.error("Failed to fetch database assets:",e)}finally{a(!1)}})()},[]),d.jsx(m,{value:l,onChange:n,placeholder:c("menus.resource.submenus.database_asset"),allowClear:!0,showSearch:!0,loading:f,options:i,filterOption:(o,e)=>(e?.label??"").toString().toLowerCase().includes(o.toLowerCase())})},_=({value:l,onChange:n})=>{const{t:c}=w(),[i,u]=s.useState([]),[f,a]=s.useState(!1);return s.useEffect(()=>{(async()=>{a(!0);try{const r=(await S.getAll()).map(t=>({label:t.name,value:t.id}));u(r)}catch(e){console.error("Failed to fetch websites:",e)}finally{a(!1)}})()},[]),d.jsx(m,{value:l,onChange:n,placeholder:c("menus.resource.submenus.website"),allowClear:!0,showSearch:!0,loading:f,options:i,filterOption:(o,e)=>(e?.label??"").toString().toLowerCase().includes(o.toLowerCase())})};export{k as A,F as D,v as U,_ as W,W as a,D as b,U as c}; diff --git a/server/resource/build/assets/RedirectPage-BghypuSI.js b/server/resource/build/assets/RedirectPage-BghypuSI.js deleted file mode 100644 index ec1567bf4..000000000 --- a/server/resource/build/assets/RedirectPage-BghypuSI.js +++ /dev/null @@ -1 +0,0 @@ -import{f as r,S as t}from"./antd-Afm2kNt7.js";import{a as s,e as i,V as o,an as u,g as n}from"./index-DQXwuKC5.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";const c=()=>{let e=s(),a=i({queryKey:["infoQuery"],queryFn:()=>n.getUserInfo()});return r.useEffect(()=>{if(!a.data)return;if(o()){e("/x-asset");return}a.data.type==="user"?e("/x-asset"):e("/dashboard")},[a.data]),t.jsx("div",{children:t.jsx(u,{})})};export{c as default}; diff --git a/server/resource/build/assets/RoleDetail-B5ZhMtSV.js b/server/resource/build/assets/RoleDetail-B5ZhMtSV.js deleted file mode 100644 index 37776d3ed..000000000 --- a/server/resource/build/assets/RoleDetail-B5ZhMtSV.js +++ /dev/null @@ -1 +0,0 @@ -import{f as h,S as r,bL as u,aP as b,b4 as k}from"./antd-Afm2kNt7.js";import{r as f}from"./role-api-RbYCFKw-.js";import{u as x,d as j,e as I,m as T,p as v,b as K,o as A}from"./index-DQXwuKC5.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";const P=f,S=c=>{const s=new Set,n=i=>{if(i)for(const l of i)s.add(l.key),l.children&&n(l.children)};return n(c),s},w=({id:c})=>{let{t:s}=x(),[n,i]=h.useState([]),[l]=j();const m=async()=>{let a=await f.getMenus();return d("",a),a},d=(a,e)=>{for(let t=0;t{let a=await P.getById(c),e=a.menus?.filter(t=>t.checked===!0).map(t=>t.menuId).filter(Boolean);return i(e||[]),{success:!0,data:a}};return r.jsx("div",{className:"page-detail-info",children:r.jsxs(u,{column:1,request:y,children:[r.jsx(u.Item,{label:s("general.name"),dataIndex:"name"}),r.jsx(u.Item,{label:s("identity.role.permission"),dataIndex:"menus",render:()=>o.isLoading?r.jsx("div",{children:"Loading"}):r.jsx(b,{checkable:!0,disabled:!0,checkedKeys:o.data?n.filter(a=>S(o.data).has(a)):[],treeData:o.data,style:{backgroundColor:l.backgroundColor}})}),r.jsx(u.Item,{label:s("general.created_at"),dataIndex:"createdAt",valueType:"dateTime"})]})})},N=()=>{let{t:c}=x();const n=v().roleId,[i,l]=K();let m=A(i.get("activeKey"),"detail"),[d,o]=h.useState(m);const y=e=>{o(e),l({activeKey:e})},a=[{label:c("actions.detail"),key:"detail",children:r.jsx(w,{id:n})}];return r.jsx("div",{className:"px-4",children:r.jsx(k,{activeKey:d,onChange:y,items:a})})};export{N as default}; diff --git a/server/resource/build/assets/RolePage-DqozdEe0.js b/server/resource/build/assets/RolePage-DqozdEe0.js deleted file mode 100644 index d8870417d..000000000 --- a/server/resource/build/assets/RolePage-DqozdEe0.js +++ /dev/null @@ -1 +0,0 @@ -import{f as h,S as s,U as v,aK as A,aT as I,bs as F,aP as B,aI as O,aS as q,bz as M,av as z}from"./antd-Afm2kNt7.js";import{r as T}from"./role-api-RbYCFKw-.js";import{u as C,e as K,m as _,z as $,h as L,y as N,D}from"./index-DQXwuKC5.js";import{g as E}from"./sort-BOdE-yay.js";import{N as b}from"./NButton-DoPcvKBF.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";const U=T,P=(d,t,l=[])=>{if(!d)return[];for(const o of d){if(l.push(o.key),t(o))return l;if(o.children){const i=P(o.children,t,l);if(i.length)return i}l.pop()}return[]},J=d=>{const t=new Set,l=o=>{if(o)for(const i of o)t.add(i.key),i.children&&l(i.children)};return l(d),t},Q=({open:d,handleOk:t,handleCancel:l,confirmLoading:o,id:i})=>{let{t:c}=C();const f=h.useRef(null);let[w,j]=h.useState([]);const g=async()=>{if(i){let n=await U.getById(i),r=n.menus?.filter(e=>e.checked===!0).map(e=>e.menuId).filter(Boolean);return j(r||[]),n}return{}},S=async()=>{let n=await T.getMenus();return x("",n),n},x=(n,r)=>{for(let e=0;e{let r=new Set;for(let e=0;em.key===y);for(let m=0;mJSON.parse(e))})};return s.jsx(v,{title:c(i?"actions.edit":"actions.new"),open:d,maskClosable:!1,destroyOnHidden:!0,onOk:()=>{f.current?.validateFields().then(async n=>{t(n)})},onCancel:()=>{l()},confirmLoading:o,children:s.jsxs(A,{formRef:f,request:g,submitter:!1,children:[s.jsx(I,{hidden:!0,name:"id"}),s.jsx(I,{name:"name",label:c("general.name"),rules:[{required:!0}]}),s.jsx(F.Item,{label:c("identity.role.permission"),name:"menus",rules:[{required:!0}],children:s.jsx(B,{checkable:!0,onCheck:u,checkedKeys:a.data?w.filter(n=>J(a.data).has(n)):[],treeData:a.data})})]})})},k=T,te=()=>{let{license:d}=$();const{t}=C(),l=h.useRef(null);let[o,i]=h.useState(!1),[c,f]=h.useState();const{message:w}=O.useApp();let g=L({mutationFn:async a=>{a.id?await k.updateById(a.id,a):await k.create(a)},onSuccess:()=>{l.current?.reload(),i(!1),f(void 0),S()}});function S(){w.open({type:"success",content:t("general.success")})}const x=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:t("general.name"),dataIndex:"name",render:(a,u)=>s.jsx("a",{onClick:()=>{i(!0),f(u.id)},children:a})},{title:t("identity.role.type"),dataIndex:"type",valueType:"radio",sorter:!0,valueEnum:{default:{text:t("identity.role.types.default")},new:{text:t("identity.role.types.new")}}},{title:t("general.created_at"),key:"createdAt",dataIndex:"createdAt",valueType:"dateTime",hideInSearch:!0,width:191},{title:t("actions.label"),valueType:"option",key:"option",width:160,render:(a,u,n,r)=>[s.jsx(b,{children:s.jsx(N,{to:`/role/${u.id}`,children:t("actions.detail")},"get")},"info"),s.jsx(b,{onClick:()=>{i(!0),f(u.id)},children:t("actions.edit")},"edit"),s.jsx(q,{title:t("general.confirm_delete"),onConfirm:async()=>{await k.deleteById(u.id),l.current?.reload()},children:s.jsx(b,{danger:!0,children:t("actions.delete")},"delete")},"delete-confirm")]}];return s.jsx("div",{children:s.jsxs(D,{disabled:d.isFree(),children:[s.jsx(M,{columns:x,actionRef:l,request:async(a={},u,n)=>{let[r,e]=E(u),y={pageIndex:a.current,pageSize:a.pageSize,order:r,field:e,name:a.name,type:a.type},p=await k.getPaging(y);return{data:p.items,success:!0,total:p.total}},rowKey:"id",search:{labelWidth:"auto"},pagination:{defaultPageSize:10,showSizeChanger:!0},dateFormatter:"string",headerTitle:t("menus.identity.submenus.role"),toolBarRender:()=>[s.jsx(z,{type:"primary",onClick:()=>{i(!0)},children:t("actions.new")},"button")]}),s.jsx(Q,{id:c,open:o,confirmLoading:g.isPending,handleCancel:()=>{i(!1),f(void 0)},handleOk:g.mutate})]})})};export{te as default}; diff --git a/server/resource/build/assets/ScheduledTaskPage-CQSqn-EP.js b/server/resource/build/assets/ScheduledTaskPage-CQSqn-EP.js deleted file mode 100644 index ebaa24d8e..000000000 --- a/server/resource/build/assets/ScheduledTaskPage-CQSqn-EP.js +++ /dev/null @@ -1 +0,0 @@ -var G=Object.defineProperty;var Y=(t,o,l)=>o in t?G(t,o,{enumerable:!0,configurable:!0,writable:!0,value:l}):t[o]=l;var v=(t,o,l)=>Y(t,typeof o!="symbol"?o+"":o,l);import{S as e,f as k,U as Z,aK as ee,aT as O,bj as se,bk as K,aL as M,bJ as te,bH as L,bA as re,aU as ae,aI as U,a_ as S,a$ as ne,bi as d,au as le,bz as B,av as H,az as oe,aS as ce}from"./antd-Afm2kNt7.js";import{g as J}from"./sort-BOdE-yay.js";import{v as ie,A as de,r as F,q as ue,e as Q,u as E,X as $,o as z,h as pe,M as he}from"./index-DQXwuKC5.js";import{a as ge}from"./asset-api-1abjsV5s.js";import{N as A}from"./NButton-DoPcvKBF.js";import{S as D}from"./server-DnjIV_zW.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";const ye=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],W=ie("code",ye);class xe extends de{constructor(){super("admin/scheduled-tasks");v(this,"changeStatus",async(l,s)=>await F.post(`/${this.group}/${l}/change-status?enabled=${s}`));v(this,"exec",async l=>{await F.post(`/${this.group}/${l}/exec`)});v(this,"getLogPaging",async(l,s)=>{let h=ue.stringify(s);return await F.get(`/${this.group}/${l}/logs/paging?${h}`)});v(this,"clearLog",async l=>{await F.delete(`/${this.group}/${l}/logs`)});v(this,"getNextTenRuns",async l=>await F.post(`/${this.group}/next-ten-runs`,{spec:l}))}}let P=new xe;const me=({open:t,spec:o})=>{let l=Q({queryKey:["scheduled-task-runtime",o],queryFn:()=>P.getNextTenRuns(o),enabled:t&&!!o,retry:!1});return e.jsxs("div",{className:"",children:[l.isError&&e.jsxs("div",{className:"text-red-500",children:["Error: ",l.error?.message]}),e.jsx("div",{className:"space-y-1",children:Array.isArray(l.data)?l.data.map((s,h)=>e.jsx("div",{children:s},h)):[]})]})},fe=({open:t,handleOk:o,handleCancel:l,confirmLoading:s,id:h})=>{let{t:c}=E();const b=k.useRef(null);let[w,f]=k.useState(!1),[u,r]=k.useState("");const{data:j}=Q({queryKey:["asset-tree","ssh"],queryFn:async()=>{let a=await ge.tree("ssh");function x(i){i.value=i.value||i.key||i.id,i.title=i.title||i.name||"",i.isLeaf&&i.extra?.network&&(i.title=i.title+" ("+i.extra.network+")"),i.children&&i.children.length>0&&i.children.forEach(x)}return a&&a.length>0&&a.forEach(x),a||[]}}),y=async()=>h?await P.getById(h):{type:"asset-exec-command",mode:"all"},T=a=>{if(a){const x=b.current?.getFieldValue("spec")||"";r(x)}f(a)};return e.jsx(Z,{title:c(h?"actions.edit":"actions.new"),open:t,maskClosable:!1,destroyOnHidden:!0,onOk:()=>{b.current?.validateFields().then(async a=>{o(a)})},onCancel:()=>{l()},confirmLoading:s,children:e.jsxs(ee,{formRef:b,request:y,submitter:!1,children:[e.jsx(O,{hidden:!0,name:"id"}),e.jsx(O,{label:c("general.name"),name:"name",rules:[{required:!0}]}),e.jsxs(se,{gutter:16,children:[e.jsx(K,{span:12,children:e.jsx(M,{label:c("assets.type"),name:"type",options:[{label:c("sysops.type.options.exec_command"),value:"asset-exec-command"},{label:c("sysops.type.options.check_status"),value:"asset-check-status"},{label:c("sysops.type.options.delete_log"),value:"delete-history-log"},{label:c("assets.certificates.renew"),value:"renew-certificate"}]})}),e.jsx(K,{span:12,children:e.jsx(O,{label:c("sysops.spec"),name:"spec",rules:[{required:!0}],tooltip:c("sysops.spec_tooltip"),fieldProps:{addonAfter:e.jsx("div",{className:"cursor-pointer",children:e.jsx(te,{content:w?e.jsx(me,{open:w,spec:u}):null,title:c("sysops.spec_run_time"),trigger:"click",placement:"rightTop",open:w,onOpenChange:T,children:c("sysops.spec_run")})})}})})]}),e.jsx(L,{name:["type"],children:({type:a})=>a==="delete-history-log"||a==="renew-certificate"?e.jsx(e.Fragment,{}):e.jsx(M,{label:c("sysops.mode.label"),name:"mode",options:[{label:c("sysops.mode.options.all_asset"),value:"all"},{label:c("sysops.mode.options.custom_asset"),value:"custom"}]})}),e.jsx(L,{name:["mode"],children:({mode:a})=>{switch(a){case"all":break;case"local":break;case"custom":return e.jsx(re,{label:c("menus.resource.submenus.asset"),name:"assetIdList",rules:[{required:!0}],fieldProps:{treeData:j||[],multiple:!0,showSearch:!0,treeDefaultExpandAll:!0,treeNodeFilterProp:"title"}})}return e.jsx(e.Fragment,{})}}),e.jsx(L,{name:["type"],children:({type:a})=>a==="asset-exec-command"?e.jsx(ae,{label:c("sysops.command"),name:"script",rules:[{required:!0}]}):e.jsx(e.Fragment,{})})]})})},{Text:p,Title:je}=ne,ke=({open:t,jobId:o,handleCancel:l})=>{let{t:s}=E();const h=k.useRef(null);let{modal:c}=U.useApp();k.useEffect(()=>{t&&h.current?.reload()},[t,o]);const b=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:s("sysops.logs.exec_at"),dataIndex:"createdAt",key:"createdAt",hideInSearch:!0,sorter:!0,width:191,valueType:"dateTime"},{title:s("sysops.logs.messages"),dataIndex:"message",key:"message",hideInSearch:!0,render:(f,u)=>{switch(u.jobType){case"asset-check-status":let r=u.results,j=r?.filter(g=>g.active)?.length;j=z(j,0);let y=r?.filter(g=>!g.active)?.length;return y=z(y,0),e.jsxs(S,{align:"center",size:"small",children:[e.jsx(D,{size:14,style:{color:"#1890ff"}}),e.jsx(p,{children:s("sysops.logs.asset_status_check")}),e.jsxs(d,{color:"green",children:[s("general.online"),": ",j]}),e.jsxs(d,{color:"red",children:[s("general.offline"),": ",y]})]});case"asset-exec-command":let T=u.results,a=T?.filter(g=>g.success)?.length;a=z(a,0);let x=T?.filter(g=>!g.success)?.length;return x=z(x,0),e.jsxs(S,{align:"center",size:"small",children:[e.jsx(W,{size:14,style:{color:"#52c41a"}}),e.jsx(p,{children:s("sysops.logs.script_execution")}),a>0&&e.jsxs(d,{color:"green",children:[s("general.success"),": ",a]}),x>0&&e.jsxs(d,{color:"red",children:[s("general.failed"),": ",x]})]});case"renew-certificate":let i=u.results;if(!i||i.length===0)return e.jsxs(S,{align:"center",size:"small",children:[e.jsx($,{size:14,style:{color:"#faad14"}}),e.jsx(p,{children:s("sysops.logs.certificate_renewal")}),e.jsx(d,{color:"blue",children:s("sysops.logs.no_certificates_to_renew")})]});let _=i?.filter(g=>g.success)?.length;_=z(_,0);let I=i?.filter(g=>!g.success)?.length;return I=z(I,0),e.jsxs(S,{align:"center",size:"small",children:[e.jsx($,{size:14,style:{color:"#faad14"}}),e.jsx(p,{children:s("sysops.logs.certificate_renewal")}),_>0&&e.jsxs(d,{color:"green",children:[s("general.success"),": ",_]}),I>0&&e.jsxs(d,{color:"orange",children:[s("sysops.logs.skipped"),": ",I]})]})}return""}}],w=f=>{const u=()=>{switch(f.jobType){case"asset-check-status":return[{title:s("sysops.logs.asset_name"),dataIndex:"name",key:"name",render:r=>e.jsxs(S,{align:"center",size:4,children:[e.jsx(D,{size:12,style:{color:"#1890ff"}}),e.jsx(p,{strong:!0,children:r})]})},{title:s("general.status"),dataIndex:"active",key:"active",render:r=>r===!0?e.jsx(d,{color:"green",children:s("general.online")}):e.jsx(d,{color:"red",children:s("general.offline")})},{title:s("sysops.logs.used_time"),dataIndex:"usedTimeStr",key:"usedTimeStr",render:r=>e.jsx(p,{type:"secondary",children:r})},{title:s("sysops.logs.reason"),dataIndex:"error",key:"error",render:r=>r?e.jsx(p,{type:"danger",children:r}):e.jsx(p,{type:"secondary",children:"-"})}];case"asset-exec-command":return[{title:s("sysops.logs.asset_name"),dataIndex:"name",key:"name",render:r=>e.jsxs(S,{align:"center",size:4,children:[e.jsx(W,{size:12,style:{color:"#52c41a"}}),e.jsx(p,{strong:!0,children:r})]})},{title:s("general.status"),dataIndex:"success",key:"success",render:r=>r===!0?e.jsx(d,{color:"green",children:s("general.success")}):e.jsx(d,{color:"red",children:s("general.failed")})},{title:s("sysops.logs.used_time"),dataIndex:"usedTimeStr",key:"usedTimeStr",render:r=>e.jsx(p,{type:"secondary",children:r})},{title:s("sysops.logs.script"),dataIndex:"script",key:"script",valueType:"code"},{title:s("sysops.logs.result"),dataIndex:"result",key:"result",width:200,render:r=>r?e.jsx("div",{style:{maxHeight:60,overflow:"auto",backgroundColor:"#f5f5f5",padding:"4px 8px",borderRadius:"4px",fontSize:"12px",fontFamily:"monospace",whiteSpace:"pre-wrap",wordBreak:"break-all"},children:r}):e.jsx(p,{type:"secondary",children:"-"})}];case"renew-certificate":return[{title:s("sysops.logs.certificate_name"),dataIndex:"name",key:"name",render:r=>e.jsxs(S,{align:"center",size:4,children:[e.jsx($,{size:12,style:{color:"#faad14"}}),e.jsx(p,{strong:!0,children:r})]})},{title:s("general.status"),dataIndex:"success",key:"success",render:r=>r===!0?e.jsx(d,{color:"green",children:s("sysops.logs.renewed")}):e.jsx(d,{color:"orange",children:s("sysops.logs.skipped")})},{title:s("sysops.logs.reason"),dataIndex:"error",key:"error",render:r=>r?e.jsx(p,{type:"warning",children:r}):e.jsx(p,{type:"secondary",children:"-"})}]}};return e.jsx(B,{size:"small",columns:u(),headerTitle:!1,search:!1,options:!1,dataSource:f.results,pagination:!1,rowKey:(r,j)=>r.name||r.id||j})};return e.jsx(le,{title:e.jsx(S,{align:"center",children:e.jsx(je,{level:4,style:{margin:0,color:"#1890ff"},children:s("sysops.logs.label")})}),placement:"right",width:window.innerWidth*.9,closable:!0,maskClosable:!0,onClose:l,open:t,styles:{body:{padding:"12px"}},extra:e.jsx(S,{children:e.jsx(H,{type:"primary",danger:!0,onClick:async()=>{c.confirm({title:s("general.clear_confirm"),content:s("sysops.logs.clear_confirm_content"),okText:s("actions.clear"),cancelText:s("actions.cancel"),okType:"danger",onOk:async()=>{await P.clearLog(o),h.current?.reload()}})},children:s("actions.clear")})}),children:e.jsx(B,{columns:b,actionRef:h,request:async(f={},u,r)=>{let[j,y]=J(u),T={pageIndex:f.current,pageSize:f.pageSize,name:f.name,order:j,field:y},a=await P.getLogPaging(o,T);return{data:a.items,success:!0,total:a.total}},expandable:{expandedRowRender:w,expandRowByClick:!0},rowKey:"id",search:!1,pagination:{defaultPageSize:10,showSizeChanger:!0,showQuickJumper:!0},options:!1,dateFormatter:"string",size:"middle",cardBordered:!1,headerTitle:!1})})},C=P,Re=()=>{const{t}=E(),o=k.useRef(null);let[l,s]=k.useState(!1),[h,c]=k.useState(!1),[b,w]=k.useState(""),[f,u]=k.useState(!1),[r,j]=k.useState({});const{message:y}=U.useApp();let a=pe({mutationFn:async n=>{n.id?await C.updateById(n.id,n):await C.create(n)},onSuccess:()=>{o.current?.reload(),s(!1),w(void 0),x()}});function x(){y.open({type:"success",content:t("general.success")})}const i=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:t("general.name"),dataIndex:"name",key:"name",sorter:!0},{title:t("general.status"),dataIndex:"enabled",key:"enabled",hideInSearch:!0,render:(n,m,R)=>e.jsx(oe,{checkedChildren:t("general.enabled"),unCheckedChildren:t("general.disabled"),checked:n===!0,onChange:q=>_(m.id,!n)})},{title:t("assets.type"),dataIndex:"type",key:"type",hideInSearch:!0,render:(n,m)=>{switch(n){case"asset-check-status":return e.jsx(d,{color:"blue",bordered:!1,children:t("sysops.type.options.check_status")});case"asset-exec-command":return e.jsx(d,{color:"red",bordered:!1,children:t("sysops.type.options.exec_command")});case"delete-history-log":return e.jsx(d,{color:"green",bordered:!1,children:t("sysops.type.options.delete_log")});case"renew-certificate":return e.jsx(d,{color:"orange",bordered:!1,children:t("assets.certificates.renew")});default:return""}}},{title:t("sysops.spec"),dataIndex:"spec",key:"spec",hideInSearch:!0},{title:t("general.created_at"),dataIndex:"createdAt",key:"createdAt",hideInSearch:!0,valueType:"dateTime",sorter:!0},{title:t("sysops.last_exec_at"),dataIndex:"lastExecAt",key:"lastExecAt",hideInSearch:!0,valueType:"dateTime",sorter:!0},{title:t("actions.label"),valueType:"option",key:"option",width:200,render:(n,m,R,q)=>[e.jsx(A,{onClick:()=>I(m.id),children:t("sysops.options.exec")},"exec"),e.jsx(A,{onClick:()=>g(m.id),children:t("sysops.options.logs")},"logs"),e.jsx(A,{onClick:()=>{s(!0),w(m.id)},children:t("actions.edit")},"edit"),e.jsx(ce,{title:t("general.confirm_delete"),onConfirm:async()=>{await C.deleteById(m.id),o.current?.reload()},children:e.jsx(A,{danger:!0,children:t("actions.delete")},"delete")},"delete-confirm")]}],_=async(n,m,R)=>{await C.changeStatus(n,m),o.current?.reload()},I=async(n,m)=>{y.loading({content:"loading...",key:n,duration:30});try{await C.exec(n),y.success({content:t("general.success"),key:n}),o.current?.reload()}catch{y.error({content:t("general.failed"),key:n})}},g=n=>{w(n),c(!0)};return e.jsxs("div",{children:[e.jsx(B,{columns:i,actionRef:o,request:async(n={},m,R)=>{let[q,V]=J(m),X={pageIndex:n.current,pageSize:n.pageSize,order:q,field:V,name:n.name},N=await C.getPaging(X);return{data:N.items,success:!0,total:N.total}},rowKey:"id",search:{labelWidth:"auto"},pagination:{defaultPageSize:10,showSizeChanger:!0},dateFormatter:"string",headerTitle:t("menus.sysops.submenus.scheduled_task"),toolBarRender:()=>[e.jsx(H,{type:"primary",onClick:()=>{s(!0)},children:t("actions.new")},"button")]}),e.jsx(fe,{id:b,open:l,confirmLoading:a.isPending,handleCancel:()=>{s(!1),w("")},handleOk:n=>{j(n),u(!0)}}),e.jsx(he,{open:f,handleOk:async n=>{u(!1),r.securityToken=n,a.mutate(r)},handleCancel:()=>u(!1)}),e.jsx(ke,{jobId:b,open:h,handleCancel:()=>{c(!1)}})]})};export{Re as default}; diff --git a/server/resource/build/assets/SettingPage-DxlkP9BT.js b/server/resource/build/assets/SettingPage-DxlkP9BT.js deleted file mode 100644 index a865fbb60..000000000 --- a/server/resource/build/assets/SettingPage-DxlkP9BT.js +++ /dev/null @@ -1 +0,0 @@ -var me=Object.defineProperty;var he=(a,r,s)=>r in a?me(a,r,{enumerable:!0,configurable:!0,writable:!0,value:s}):a[r]=s;var S=(a,r,s)=>he(a,typeof r!="symbol"?r+"":r,s);import{S as e,a$ as C,aK as w,bO as p,aL as N,f as h,aI as ae,bj as ne,bk as Q,aY as ee,aT as g,aM as y,b0 as L,aU as X,bD as B,aV as be,bH as ie,bs as I,av as U,U as xe,aO as ye,T as fe,bP as je,bQ as ke,aN as se,bR as ve,bS as _e,bT as we,bU as Ce,bV as Pe,bW as Se,a_ as te,bg as z,b2 as J,aS as qe,bK as Te,bA as de,b4 as Y}from"./antd-Afm2kNt7.js";import{v as Fe,u as b,r as q,m as V,w as $,x as f,h as oe,y as ce,z as G,D,e as Z,f as Ne,b as Ae,o as Be,g as Le,M as $e}from"./index-DQXwuKC5.js";import{N as Ee}from"./NLink-Dl2yFaN4.js";import{U as ue}from"./upload-D4kD-YfJ.js";import{u as Ie}from"./user-api-BJxKseSg.js";import{d as pe}from"./department-api-fa0GHZbt.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";const Re=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Me=Fe("info",Re),{Title:Ke}=C,Oe=({get:a,set:r})=>{let{t:s}=b();return e.jsxs("div",{children:[e.jsx(Ke,{level:5,style:{marginTop:0},children:s("settings.log.setting")}),e.jsxs(w,{onFinish:r,request:a,submitter:{resetButtonProps:{style:{display:"none"}}},children:[e.jsx(p,{name:"enable-recording",label:s("identity.user.recording"),checkedChildren:s("general.enabled"),unCheckedChildren:s("general.disabled")}),e.jsx(N,{name:"session-saved-limit",label:s("settings.log.session.saved_limit_days"),fieldProps:{options:[{value:"",label:"♾️"},{value:"1",label:"1"},{value:"7",label:"7"},{value:"15",label:"15"},{value:"30",label:"30"},{value:"60",label:"60"},{value:"180",label:"180"}]},addonAfter:s("general.days")}),e.jsx(N,{name:"login-log-saved-limit",label:s("settings.log.login_log.saved_limit_days"),fieldProps:{options:[{value:"",label:"♾️"},{value:"30",label:"30"},{value:"60",label:"60"},{value:"180",label:"180"},{value:"360",label:"360"}]},addonAfter:s("general.days")}),e.jsx(N,{name:"cron-log-saved-limit",label:s("settings.log.cron_log.saved_limit_days"),fieldProps:{options:[{value:"",label:"♾"},{value:"30",label:"30"},{value:"60",label:"60"},{value:"180",label:"180"},{value:"360",label:"360"}]},addonAfter:s("general.days")}),e.jsx(N,{name:"access-log-saved-limit",label:s("settings.log.access_log.saved_limit_days"),fieldProps:{options:[{value:"",label:"♾"},{value:"7",label:"7"},{value:"15",label:"15"},{value:"30",label:"30"},{value:"60",label:"60"},{value:"180",label:"180"}]},addonAfter:s("general.days")})]})]})},{Title:ze}=C,Ue=({get:a,set:r})=>{let{t:s}=b();return e.jsxs("div",{children:[e.jsx(ze,{level:5,style:{marginTop:0},children:s("settings.rdp.setting")}),e.jsxs(w,{onFinish:r,request:a,autoFocus:!1,submitter:{resetButtonProps:{style:{display:"none"}}},children:[e.jsx(p,{name:"enable-wallpaper",label:s("settings.rdp.enable.wallpaper"),checkedChildren:s("general.enabled"),unCheckedChildren:s("general.disabled")}),e.jsx(p,{name:"enable-theming",label:s("settings.rdp.enable.theming"),checkedChildren:s("general.enabled"),unCheckedChildren:s("general.disabled")}),e.jsx(p,{name:"enable-font-smoothing",label:s("settings.rdp.enable.font_smoothing"),checkedChildren:s("general.enabled"),unCheckedChildren:s("general.disabled")}),e.jsx(p,{name:"enable-full-window-drag",label:s("settings.rdp.enable.full_window_drag"),checkedChildren:s("general.enabled"),unCheckedChildren:s("general.disabled")}),e.jsx(p,{name:"enable-desktop-composition",label:s("settings.rdp.enable.desktop_composition"),checkedChildren:s("general.enabled"),unCheckedChildren:s("general.disabled")}),e.jsx(p,{name:"enable-menu-animations",label:s("settings.rdp.enable.menu_animations"),checkedChildren:s("general.enabled"),unCheckedChildren:s("general.disabled")}),e.jsx(p,{name:"disable-bitmap-caching",label:s("settings.rdp.disable.bitmap_caching"),checkedChildren:s("general.enabled"),unCheckedChildren:s("general.disabled")}),e.jsx(p,{name:"disable-offscreen-caching",label:s("settings.rdp.disable.offscreen_caching"),checkedChildren:s("general.enabled"),unCheckedChildren:s("general.disabled")})]})]})},{Title:De}=C,Ge=({get:a,set:r})=>{let{t:s}=b();return e.jsxs("div",{children:[e.jsx(De,{level:5,style:{marginTop:0},children:s("settings.vnc.setting")}),e.jsxs(w,{onFinish:r,request:a,submitter:{resetButtonProps:{style:{display:"none"}}},children:[e.jsx(N,{name:"color-depth",label:s("assets.color_depth"),fieldProps:{options:[{value:"",label:s("general.default")},{value:"8",label:"8"},{value:"16",label:"16"},{value:"24",label:"24"},{value:"32",label:"32"}]}}),e.jsx(N,{name:"cursor",label:s("settings.vnc.cursor.setting"),fieldProps:{options:[{value:"",label:s("general.default")},{value:"local",label:s("identity.user.sources.local")},{value:"remote",label:s("settings.vnc.cursor.remote")}]}}),e.jsx(p,{name:"swap-red-blue",label:s("settings.vnc.swap_red_blue"),checkedChildren:s("general.enabled"),unCheckedChildren:s("general.disabled")})]})]})},Ve=["watermark-content-user-account","watermark-content-asset-username","reverse-proxy-server-auto-tls","reverse-proxy-server-http-redirect-to-https","login-session-count-custom","ssh-server-port-forwarding-enabled","access-require-mfa","ssh-server-disable-password-auth","db-proxy-block-dml"];class We{constructor(){S(this,"group","admin/properties");S(this,"get",async()=>{let r=await q.get(`/${this.group}`);for(let s in r)r.hasOwnProperty(s)&&(r[s]==="-"&&(r[s]=""),s.includes("enable")&&(r[s]=V.isTrue(r[s])),s.includes("disable")&&(r[s]=V.isTrue(r[s])),Ve.includes(s)&&(r[s]=V.isTrue(r[s])));return r});S(this,"set",async(r,s)=>{const t=s?`?securityToken=${encodeURIComponent(s)}`:"";await q.put(`/${this.group}${t}`,r)});S(this,"genRSAPrivateKey",async()=>(await q.post(`/${this.group}/gen-rsa-private-key`)).key);S(this,"sendMail",async r=>{await q.post(`/${this.group}/send-mail`,r)});S(this,"getLatestVersion",async()=>await q.get(`/${this.group}/latest-version?noerror`));S(this,"upgrade",async()=>{await q.post(`/${this.group}/upgrade`)});S(this,"upgradeStatus",async()=>await q.get(`/${this.group}/upgrade-status`));S(this,"getClientIPs",async()=>await q.get(`/${this.group}/client-ips`))}}let R=new We;const{Title:He}=C,Qe=({get:a,set:r})=>{const{isMobile:s}=$();let{t}=b(),[l,n]=h.useState(!1),{message:c}=ae.useApp();const o=async()=>{let i=await a();return n(i["mail-enabled"]),i},d=async i=>{await R.sendMail(i),c.success(t("general.success"))};return e.jsxs("div",{children:[e.jsx(He,{level:5,style:{marginTop:0},children:t("settings.mail.setting")}),e.jsxs(ne,{gutter:16,children:[e.jsx(Q,{span:s?24:12,children:e.jsx(ee,{children:e.jsxs(w,{onFinish:r,request:o,submitter:{resetButtonProps:{style:{display:"none"}}},children:[e.jsx(p,{name:"mail-enabled",label:t("settings.mail.enabled"),checkedChildren:t("general.enabled"),unCheckedChildren:t("general.disabled"),fieldProps:{checked:l,onChange:n}}),e.jsx(g,{name:"mail-host",label:t("settings.mail.host"),required:l,disabled:!l}),e.jsx(y,{name:"mail-port",label:t("settings.mail.port"),required:l,disabled:!l,min:1,max:65535,fieldProps:{precision:0}}),e.jsx(g,{name:"mail-username",label:t("settings.mail.username"),required:l,disabled:!l}),e.jsx(g.Password,{name:"mail-password",label:t("settings.mail.password"),required:l,disabled:!l}),e.jsx(g,{name:"mail-from",label:t("settings.mail.from"),placeholder:"name ",disabled:!l}),e.jsx(p,{name:"mail-use-ssl",label:"SSL",disabled:!l,checkedChildren:t("general.enabled"),unCheckedChildren:t("general.disabled")}),e.jsx(p,{name:"mail-insecure-skip-verify",label:"Server Name Insecure Skip Verify",disabled:!l,checkedChildren:t("general.enabled"),unCheckedChildren:t("general.disabled")})]})})}),e.jsx(Q,{span:s?24:12,children:e.jsxs(ee,{children:[e.jsx(L,{message:t("settings.mail.tip"),type:"warning",style:{marginBottom:10}}),e.jsxs(w,{onFinish:d,submitter:{searchConfig:{submitText:t("settings.mail.send")},resetButtonProps:{style:{display:"none"}}},children:[e.jsx(g,{name:"mail",label:t("settings.mail.mail"),rules:[{required:!0}]}),e.jsx(g,{name:"title",label:t("settings.mail.title"),rules:[{required:!0}]}),e.jsx(X,{name:"content",label:t("settings.mail.content"),rules:[{required:!0}],fieldProps:{rows:4}})]})]})})]})]})},{Title:Je}=C,Xe=({get:a,set:r})=>{const{isMobile:s}=$();let{t}=b(),[l,n]=h.useState(),[c,o]=h.useState();const d=async()=>{let m=await a();n(m["login-lock-enabled"]),o(m["login-session-count-custom"]);try{m["password-strength"]=JSON.parse(m["password-strength-policy"]||"{}")}catch{m["password-strength"]={}}return m},i=async m=>{const x=m["password-strength"];return x&&(delete m["password-strength"],m["password-strength-policy"]=JSON.stringify(x)),await r(m)};return e.jsxs("div",{children:[e.jsx(Je,{level:5,style:{marginTop:0},children:t("settings.security.setting")}),e.jsxs(w,{onFinish:i,request:d,autoFocus:!1,submitter:{resetButtonProps:{style:{display:"none"}}},children:[e.jsx(B,{orientation:"left",children:t("settings.security.protection")}),e.jsxs("div",{className:"flex md:items-center md:gap-2 md:flex-row flex-col",children:[e.jsx(p,{name:"login-captcha-enabled",label:t("settings.security.captcha"),checkedChildren:t("general.enabled"),unCheckedChildren:t("general.disabled")}),e.jsx(p,{name:"login-force-totp-enabled",label:t("settings.security.force_otp"),checkedChildren:t("general.enabled"),unCheckedChildren:t("general.disabled")}),e.jsx(p,{name:"disable-password-login",label:t("settings.security.disable_password_login"),checkedChildren:t("general.enabled"),unCheckedChildren:t("general.disabled")})]}),e.jsxs("div",{className:"flex md:items-center md:gap-2 md:flex-row flex-col",children:[e.jsx(p,{name:"access-require-mfa",label:t("settings.security.access_require_mfa"),checkedChildren:t("general.enabled"),unCheckedChildren:t("general.disabled")}),e.jsx(y,{name:"access-mfa-expires-at",label:t("settings.security.access_mfa_expires_at"),min:0,addonAfter:t("general.minute"),fieldProps:{precision:0}})]}),e.jsx(B,{orientation:"left",children:t("settings.security.session_management")}),e.jsxs("div",{className:"flex md:items-center md:gap-2 md:flex-row flex-col",children:[e.jsx(p,{name:"login-session-count-custom",label:t("settings.security.session.count_custom"),checkedChildren:t("general.enabled"),unCheckedChildren:t("general.disabled"),fieldProps:{checked:c,onChange:o}}),e.jsx(y,{name:"login-session-count-limit",label:t("settings.security.session.count_limit"),min:1,required:c,disabled:!c,addonAfter:t("settings.security.devices"),fieldProps:{precision:0}}),e.jsx(y,{name:"login-session-duration",label:t("settings.security.session.duration"),min:1,addonAfter:t("general.minute"),fieldProps:{precision:0}}),e.jsx(y,{name:"password-expiration-period",label:t("settings.security.password.expiration_period"),tooltip:t("general.less-zero-tip"),min:-1,required:!0,addonAfter:t("general.days"),fieldProps:{precision:0}}),e.jsx(y,{name:"user-client-cert-valid-days",label:t("settings.security.client_cert_valid_days"),min:1,addonAfter:t("general.days"),fieldProps:{precision:0}})]}),e.jsx(B,{orientation:"left",children:t("settings.security.password.complexity")}),e.jsx(be.Group,{label:t("settings.security.password.complexity"),name:"password-strength-type",options:[{label:t("settings.security.password.recommend"),value:"recommend"},{label:t("settings.security.password.customize"),value:"customize"}]}),e.jsx(ie,{name:["password-strength-type"],children:(m,x)=>m["password-strength-type"]!=="customize"?null:e.jsxs("div",{className:"rounded-md p-4 bg-gray-50 mt-4 dark:bg-[#141414]",children:[e.jsx(y,{name:["password-strength","minLength"],label:t("settings.security.password.too_short"),min:1,required:!0,addonAfter:t("settings.security.password.character")}),e.jsx(y,{name:["password-strength","minCharacterType"],label:t("settings.security.password.too_simple"),min:1,max:3,required:!0,addonAfter:t("assets.type")}),e.jsx(p,{name:["password-strength","mustNotContainUsername"],label:t("settings.security.password.cannot_contain_username"),checkedChildren:t("general.enabled"),unCheckedChildren:t("general.disabled")}),e.jsx(p,{name:["password-strength","mustNotBePalindrome"],label:t("settings.security.password.cannot_be_palindrome"),checkedChildren:t("general.enabled"),unCheckedChildren:t("general.disabled")}),e.jsx(p,{name:["password-strength","mustNotWeak"],label:t("settings.security.password.cannot_be_weak"),checkedChildren:t("general.enabled"),unCheckedChildren:t("general.disabled")})]})}),e.jsx(B,{orientation:"left",children:t("settings.security.login_lock.setting")}),e.jsx(L,{message:e.jsxs("div",{children:[t("settings.security.login_lock.tip"),e.jsx(Ee,{to:"/login-locked",children:e.jsxs("span",{className:"ml-2",children:["[",t("menus.identity.submenus.login_locked"),"]"]})})]}),type:"info",style:{marginBottom:16}}),e.jsx(p,{name:"login-lock-enabled",label:t("settings.security.login_lock.enabled"),checkedChildren:t("general.enabled"),unCheckedChildren:t("general.disabled"),fieldProps:{checked:l,onChange:n}}),e.jsxs("div",{className:f("grid gap-4",s?"grid-cols-1":"grid-cols-4"),children:[e.jsx(y,{name:"login-lock-failed-duration",label:t("settings.security.login_lock.failed_duration"),min:1,required:l,disabled:!l,addonAfter:t("general.minute")}),e.jsx(y,{name:"login-lock-failed-times",label:t("settings.security.login_lock.failed_times"),min:1,required:l,disabled:!l}),e.jsx(y,{name:"login-lock-account-duration",label:t("settings.security.login_lock.account_duration"),min:0,required:l,addonAfter:t("general.minute"),disabled:!l}),e.jsx(y,{name:"login-lock-ip-duration",label:t("settings.security.login_lock.ip_duration"),min:0,required:l,addonAfter:t("general.minute"),disabled:!l})]})]})]})},{Title:Ye,Paragraph:le}=C,Ze=({get:a,set:r})=>{let{t:s}=b();const t=h.useRef(null);let[l,n]=h.useState(!1),[c,o]=h.useState(!1),[d,i]=h.useState(!1),[m,x]=h.useState(!1),[j,T]=h.useState(!1);const[F]=I.useForm(),M=async P=>{await t.current?.validateFields(),await r(P)},k=async()=>{let P=await a();n(P["ssh-server-enabled"]),o(P["ssh-server-port-forwarding-enabled"]);const u=P["ssh-server-private-key-exists"],_=typeof u=="string"?u.toLowerCase()==="true":!!u;return i(_),P};let E=oe({mutationFn:R.genRSAPrivateKey,onSuccess:P=>{F.setFieldsValue({privateKey:P})}});const K=()=>{F.resetFields(),x(!0)},v=async()=>{const P=await F.validateFields();T(!0);try{await r({"ssh-server-private-key":P.privateKey})!==!1&&(i(!0),x(!1),F.resetFields())}finally{T(!1)}};return e.jsxs("div",{children:[e.jsx(Ye,{level:5,style:{marginTop:0},children:s("settings.sshd.setting")}),e.jsx(L,{message:s("settings.sshd.tip"),type:"info",style:{marginBottom:10}}),e.jsxs("div",{className:"space-y-1 mb-4 border rounded-lg p-4",children:[e.jsx("div",{className:"font-medium",children:s("settings.sshd.usage")}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{children:s("settings.sshd.mode_proxy")}),e.jsx("div",{children:e.jsx(le,{style:{marginBottom:0},copyable:!0,children:"ssh username@host -p port"})})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{children:s("settings.sshd.direct_proxy")}),e.jsx("div",{children:e.jsx(le,{style:{marginBottom:0},copyable:!0,children:"ssh username:asset-name@host -p port"})})]})]}),e.jsxs(w,{formRef:t,onFinish:M,request:k,submitter:{resetButtonProps:{style:{display:"none"}}},children:[e.jsx(p,{name:"ssh-server-enabled",label:s("settings.sshd.enabled"),checkedChildren:s("general.enabled"),unCheckedChildren:s("general.disabled"),fieldProps:{checked:l,onChange:n}}),e.jsx(g,{name:"ssh-server-addr",label:s("settings.sshd.addr"),placeholder:"0.0.0.0:2022",rules:[{required:l}],disabled:!l}),e.jsx(I.Item,{label:s("settings.sshd.private_key"),children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(U,{type:"primary",onClick:K,disabled:!l,children:s("settings.sshd.private_key_button")}),e.jsx(C.Text,{type:d?"success":"secondary",children:s(d?"settings.sshd.private_key_status_set":"settings.sshd.private_key_status_empty")})]})}),e.jsx(p,{name:"ssh-server-port-forwarding-enabled",label:s("settings.sshd.port_forwarding.enabled"),checkedChildren:s("general.enabled"),unCheckedChildren:s("general.disabled"),fieldProps:{checked:c,onChange:o}}),e.jsx(X,{name:"ssh-server-port-forwarding-host-port",label:s("settings.sshd.port_forwarding.host_port"),rules:[{required:c}],disabled:!c,placeholder:"172.16.0.1:3306,10.10.0.3:5432",fieldProps:{rows:4}}),e.jsx(p,{name:"ssh-server-disable-password-auth",label:s("settings.sshd.disable_password_auth"),checkedChildren:s("general.yes"),unCheckedChildren:s("general.no")})]}),e.jsx(xe,{title:s("settings.sshd.private_key_modal_title"),open:m,onOk:v,onCancel:()=>x(!1),okText:s("actions.save"),cancelText:s("actions.cancel"),confirmLoading:j,destroyOnClose:!0,children:e.jsxs(I,{form:F,layout:"vertical",children:[e.jsx(I.Item,{name:"privateKey",label:s("settings.sshd.private_key"),rules:[{required:!0}],children:e.jsx(ye.TextArea,{rows:8,placeholder:"RSA、EC、DSA、OPENSSH"})}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(U,{onClick:()=>E.mutate(),loading:E.isPending,children:s("assets.generate_private_key")}),e.jsx(C.Text,{type:"secondary",children:s("settings.sshd.private_key_modal_tip")})]})]})})]})},{Title:es,Paragraph:re}=C,ss=({get:a,set:r})=>{const{t:s}=b(),t=h.useRef(null),[l,n]=h.useState(!1),c=async d=>(await t.current?.validateFields(),await r(d)),o=async()=>{const d=await a();return n(d["db-proxy-enabled"]),d};return e.jsxs("div",{children:[e.jsx(es,{level:5,style:{marginTop:0},children:s("db.proxy.setting")}),e.jsx(L,{message:s("db.proxy.tip"),type:"info",style:{marginBottom:10}}),e.jsxs("div",{className:"space-y-1 mb-4 border rounded-lg p-4",children:[e.jsx("div",{className:"font-medium",children:s("db.proxy.usage_title")}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{children:s("db.proxy.usage_client")}),e.jsx("div",{children:e.jsx(re,{style:{marginBottom:0},copyable:!0,children:"mysql -h host -P port -u username@asset_name -p"})})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{children:s("db.proxy.password_label")}),e.jsx("div",{children:e.jsxs(re,{style:{marginBottom:0},children:[s("db.proxy.password_tip_prefix"),e.jsx(ce,{to:"/info?activeKey=access-token",children:s("db.proxy.password_tip_link")}),s("db.proxy.password_tip_suffix")]})})]})]}),e.jsxs(w,{formRef:t,onFinish:c,request:o,submitter:{resetButtonProps:{style:{display:"none"}}},children:[e.jsx(p,{name:"db-proxy-enabled",label:s("db.proxy.enabled"),checkedChildren:s("general.enabled"),unCheckedChildren:s("general.disabled"),fieldProps:{checked:l,onChange:n}}),e.jsx(g,{name:"db-proxy-addr",label:s("settings.sshd.addr"),placeholder:"0.0.0.0:3307",rules:[{required:l}],disabled:!l}),e.jsx(p,{name:"db-proxy-block-dml",label:s("db.proxy.block_dml"),tooltip:s("db.proxy.block_dml_tip"),checkedChildren:s("general.yes"),unCheckedChildren:s("general.no")}),e.jsx(N,{name:"db-sql-log-saved-limit-days",label:s("db.sql_log.saved_limit_days"),fieldProps:{options:[{value:"",label:"♾️"},{value:"7",label:"7"},{value:"15",label:"15"},{value:"30",label:"30"},{value:"60",label:"60"},{value:"180",label:"180"}]},addonAfter:s("general.days")})]})]})},{Title:ts,Text:ls}=C,rs=(a=we)=>Object.entries(a).map(([r,s])=>({label:r,colors:s})),as=({get:a,set:r})=>{const{isMobile:s}=$();let{t}=b(),[l,n]=h.useState(),[c,o]=h.useState(),[d,i]=h.useState(""),[m,x]=h.useState(""),[j,T]=h.useState(!1),{license:F}=G();const M=async()=>{let u=await a();return n(u["system-logo"]),i(u["watermark-font-color"]),T(u["watermark-enabled"]),o(u["system-login-background-image"]),x(u["system-login-background-color"]),u},k=u=>(u["system-logo"]=l,u["watermark-font-color"]=d,u["system-login-background-image"]=c,u["system-login-background-color"]=m,r(u)),E=({file:u,onSuccess:_})=>{const A=new FileReader;u&&(A.readAsDataURL(u),A.onloadend=function(){let O=A.result;_(O)})},K=u=>{let _=u.target.files[0];E({file:_,onSuccess:A=>{n(A)}})},{token:v}=fe.useToken(),P=rs({primary:je(v.colorPrimary),red:Pe,green:Ce});return e.jsxs("div",{children:[e.jsx(ts,{level:5,style:{marginTop:0},children:t("menus.setting.label")}),e.jsxs(w,{onFinish:k,request:M,submitter:{resetButtonProps:{style:{display:"none"}}},children:[e.jsx(B,{orientation:"left",children:t("settings.system.basic_info_title")}),e.jsx(D,{disabled:F.isFree(),children:e.jsxs("div",{className:f("flex gap-4",s?"flex-col items-center":"items-start"),children:[e.jsx("div",{className:f(s&&"w-full flex justify-center"),children:e.jsx(I.Item,{name:"system-logo",label:t("settings.system.logo"),rules:[{required:!0}],children:e.jsxs("div",{className:"logo-upload-container",children:[e.jsx("input",{id:"file",type:"file",accept:".png,.jpg,.jpeg",style:{display:"none"},onChange:K}),e.jsx("div",{onClick:()=>{document.getElementById("file")?.click()},className:f("logo-preview border border-dashed border-gray-300 rounded-md p-3 cursor-pointer hover:border-blue-400 transition-colors flex flex-col items-center justify-center",s?"w-24 h-24":"w-20 h-20"),children:l?e.jsx(ke,{className:"w-full h-full object-contain",src:l,alt:"logo",preview:!1}):e.jsxs("div",{className:"flex flex-col items-center gap-1 text-gray-400",children:[e.jsx(ue,{size:16}),e.jsx(ls,{type:"secondary",className:"text-xs",children:t("general.upload")})]})})]})})}),e.jsxs("div",{className:f(s&&"w-full"),children:[e.jsxs("div",{className:f("flex gap-4",s?"flex-col":"items-center"),children:[e.jsx(g,{name:"system-name",label:t("settings.system.name"),rules:[{required:!0}],width:s?"xl":void 0}),e.jsx(g,{name:"system-icp",label:t("settings.system.icp"),width:s?"xl":void 0})]}),e.jsx("div",{children:e.jsx(g,{name:"system-copyright",label:t("settings.system.copyright"),rules:[{required:!0}],width:"xl"})})]})]})}),e.jsx(B,{orientation:"left",children:t("settings.system.watermark.setting")}),e.jsxs(D,{disabled:F.isFree(),children:[e.jsx(p,{name:"watermark-enabled",label:t("identity.user.watermark"),rules:[{required:!0}],checkedChildren:t("general.enabled"),unCheckedChildren:t("general.disabled"),fieldProps:{checked:j,onChange:T}}),e.jsxs("div",{className:f("flex gap-4",s?"flex-col":"items-center flex-wrap"),children:[e.jsx(g,{name:"watermark-content",label:t("settings.system.watermark.content"),rules:[{required:!1}],disabled:!j,width:s?"xl":void 0}),e.jsxs("div",{className:f("flex gap-4",s?"flex-col":"items-center"),children:[e.jsx(se,{name:"watermark-content-user-account",label:t("settings.system.watermark.append_user"),disabled:!j}),e.jsx(se,{name:"watermark-content-asset-username",label:t("settings.system.watermark.append_asset"),disabled:!j})]}),e.jsx(I.Item,{name:"watermark-font-color",label:t("settings.system.watermark.font_color"),rules:[{required:!1}],children:e.jsx(ve,{disabled:!j,presets:P,onChange:u=>{let _=u.toRgb();i(`rgba(${_.r}, ${_.g}, ${_.b}, ${_.a})`)}})})]}),e.jsx("div",{className:f(s?"w-full":"w-1/2"),children:e.jsx(_e,{name:"watermark-font-size",label:t("settings.system.watermark.font_size"),rules:[{required:!1}],min:1,max:100,disabled:!j,marks:{1:t("settings.system.watermark.size_small"),25:t("settings.system.watermark.size_medium"),50:t("settings.system.watermark.size_large"),100:t("settings.system.watermark.size_xlarge")}})})]})]})]})},ns=({label:a,isPending:r,error:s,value:t,errorText:l,isMobile:n=!1})=>{const c=()=>r?e.jsx(Se,{}):s!=null?e.jsx("div",{style:{color:"red"},children:l}):e.jsx("div",{className:"font-normal ml-1",children:t});return e.jsxs("div",{className:f("font-bold flex items-center gap-2",n&&"text-sm"),children:[e.jsxs("div",{children:[a,": "]}),e.jsx("div",{children:c()})]})},{Title:is}=C,ds=()=>{const{isMobile:a}=$(),{t:r}=b();let s=Z({queryKey:["branding"],queryFn:Ne.getBranding});return e.jsxs("div",{children:[e.jsx("div",{className:f("flex flex-col gap-3 md:flex-row md:items-center md:justify-between mb-3",a&&"items-stretch"),children:e.jsx(is,{level:5,style:{margin:0},children:r("settings.about.setting")})}),e.jsx("div",{className:"flex flex-col gap-4",children:e.jsx("div",{className:f("space-y-4",a&&"w-full px-2"),children:e.jsx("div",{className:f("flex flex-col gap-1","text-left"),children:e.jsx(ns,{label:r("settings.about.current_version"),isPending:s.isPending,error:s.error,value:s.data?.version,errorText:r("error"),isMobile:a})})})})]})},{Title:os}=C,cs=()=>{let{t:a}=b(),[r,s]=h.useState(!1),[t,l]=h.useState(!1);const n=o=>{if(!o)return;const d=new FileReader;d.onload=async()=>{let i=JSON.parse(d.result.toString());s(!0);try{await q.post("/admin/backup/import",i),z.success(a("settings.backup.restore_success"),3)}finally{s(!1)}},d.readAsText(o[0])},c=async()=>{l(!0);try{const o=await q.get("/admin/backup/export",{responseType:"blob"}),d=window.URL.createObjectURL(new Blob([o])),i=document.createElement("a");i.href=d,i.setAttribute("download",`backup_${new Date().toISOString().replace(/[:.]/g,"-")}.json`),document.body.appendChild(i),i.click(),i.remove(),window.URL.revokeObjectURL(d),z.success(a("settings.backup.export_success")||"导出成功")}catch{z.error(a("settings.backup.export_failed")||"导出失败")}finally{l(!1)}};return e.jsxs("div",{children:[e.jsx(os,{level:5,style:{marginTop:0},children:a("settings.backup.setting")}),e.jsxs(te,{direction:"vertical",children:[e.jsx(L,{message:a("settings.backup.tip"),type:"info"}),e.jsxs(te,{children:[e.jsx(U,{type:"primary",loading:t,onClick:c,children:a("settings.backup.export")||"导出备份"}),e.jsx(U,{loading:r,onClick:()=>{document.getElementById("file-upload").click()},children:a("settings.backup.recovery")}),e.jsx("input",{type:"file",id:"file-upload",style:{display:"none"},accept:".json",onChange:async o=>{let d=o.target.files;await n(d),o.target.value=""}})]})]})]})};class us{constructor(){S(this,"group","admin/logos");S(this,"logos",async()=>await q.get(`/${this.group}`));S(this,"upload",async r=>{const s=new FormData;return s.append("file",r),await q.postForm(`/${this.group}/upload`,s)});S(this,"delete",async r=>await q.delete(`/${this.group}/${r}`))}}const W=new us,{Title:ps}=C,gs=()=>{let{t:a}=b(),r=Z({queryKey:["system-logos"],queryFn:W.logos});const s=l=>l.size/1024/1024?!0:(z.error("Image must smaller than 1MB!"),!1),t=async({file:l,onSuccess:n})=>{W.upload(l).then(c=>{r.refetch(),n(c)})};return e.jsxs("div",{className:"space-y-2",children:[e.jsx(ps,{level:5,style:{marginTop:0},children:a("settings.logo.setting")}),e.jsx("div",{children:a("settings.logo.preset")}),e.jsx("div",{className:"flex items-center gap-2 flex-wrap",children:(Array.isArray(r.data)?r.data.filter(l=>!l.deletable):[]).map(l=>e.jsx(J,{title:l.name,children:e.jsx("div",{className:"h-10 w-10 rounded-lg cursor-pointer border p-2",children:e.jsx("img",{src:l.data,alt:l.name},l.name)},l.name)}))}),e.jsx("div",{children:a("settings.logo.custom")}),e.jsx("div",{children:e.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[(Array.isArray(r.data)?r.data.filter(l=>l.deletable):[]).map(l=>e.jsx(qe,{title:a("general.confirm_delete"),onConfirm:()=>{W.delete(l.name).then(n=>{r.refetch()})},children:e.jsx(J,{title:l.name,children:e.jsx("div",{className:"h-10 w-10 rounded-lg cursor-pointer border p-2 border-dashed border-red-500",children:e.jsx("img",{src:l.data,alt:l.name},l.name)})})},"delete-confirm"+l.name)),e.jsx(Te,{accept:"image/*",showUploadList:!1,customRequest:t,beforeUpload:s,multiple:!0,children:e.jsx("div",{className:"h-10 w-10 rounded-lg cursor-pointer border p-2 border-dashed border-blue-500 flex items-center justify-center",children:e.jsx(ue,{className:"text-blue-500 h-4 w-4"})})})]})})]})},ms=({get:a,set:r})=>{let{t:s}=b(),[t,l]=h.useState(!1),{license:n}=G(),{message:c}=ae.useApp(),o=oe({mutationFn:Ie.syncLdapUser,onSuccess:()=>{c.success(s("general.success"))}});const d=async()=>{let i=await a();return l(i["ldap-enabled"]),i};return e.jsx("div",{children:e.jsxs(D,{disabled:!n.isEnterprise(),children:[e.jsx(L,{message:s("settings.ldap.tip"),type:"info",showIcon:!0,style:{marginBottom:16}}),e.jsxs(w,{onFinish:r,request:d,autoFocus:!1,submitter:{resetButtonProps:{style:{display:"none"}},render:(i,m)=>[...m,e.jsx(U,{color:"geekblue",variant:"filled",loading:o.isPending,onClick:()=>o.mutate(),disabled:!t,children:s("actions.refresh")},"sync")]},children:[e.jsx(p,{name:"ldap-enabled",label:s("settings.ldap.setting"),rules:[{required:!0}],checkedChildren:s("general.enabled"),unCheckedChildren:s("general.disabled"),fieldProps:{checked:t,onChange:l}}),e.jsx(g,{name:"ldap-url",label:s("settings.ldap.url"),placeholder:"ldap://server:389",disabled:!t,rules:[{required:t}]}),e.jsx(g,{name:"ldap-user",label:s("settings.ldap.user"),tooltip:"cn=administrator,dc=domain,dc=com | administrator@domain.com",placeholder:"cn=administrator,dc=domain,dc=com | administrator@domain.com",disabled:!t,rules:[{required:t}]}),e.jsx(g,{name:"ldap-password",label:s("settings.ldap.password"),placeholder:"******",disabled:!t,rules:[{required:t}]}),e.jsx(g,{name:"ldap-base-dn",label:s("settings.ldap.base_dn"),tooltip:"dc=domain,dc=com",placeholder:"dc=domain,dc=com",disabled:!t,rules:[{required:t}]}),e.jsx(y,{name:"ldap-user-search-size-limit",label:s("settings.ldap.user_search.size_limit"),tooltip:s("settings.ldap.user_search.size_limit_tooltip"),placeholder:"1000",min:1,disabled:!t,rules:[{required:t}]}),e.jsx(g,{name:"ldap-user-search-filter",label:s("settings.ldap.user_search.filter"),tooltip:s("settings.ldap.user_search.filter_tooltip"),placeholder:"(objectClass=*)",disabled:!t,rules:[{required:t}]}),e.jsx(g,{name:"ldap-user-property-mapping",label:s("settings.ldap.user_property_mapping"),placeholder:'{"username": "cn", "nickname": "sn", "mail": "mail"}',disabled:!t,rules:[{required:t}]})]})]})})},hs=({get:a,set:r})=>{const{isMobile:s}=$();let[t,l]=h.useState(),{t:n}=b();const c=async()=>{let i=await a();return l(i["passkey-enabled"]),i["passkey-origins"]=i["passkey-origins"]?.split(","),i},o=async i=>(i["passkey-origins"]=i["passkey-origins"]?.join(","),await r(i));function d(i){try{const m=new URL(i);return m.protocol==="http:"||m.protocol==="https:"}catch{return!1}}return e.jsx("div",{children:e.jsxs(w,{onFinish:o,request:c,autoFocus:!1,submitter:{resetButtonProps:{style:{display:"none"}}},children:[e.jsx(p,{name:"passkey-enabled",label:n("settings.security.passkey.enabled"),checkedChildren:n("general.enabled"),unCheckedChildren:n("general.disabled"),rules:[{required:!0}],fieldProps:{checked:t,onChange:l}}),e.jsxs("div",{className:f("flex gap-2",s?"flex-col":"items-center"),children:[e.jsx(g,{name:"passkey-domain",label:n("settings.security.passkey.domain"),rules:[{required:t}],disabled:!t,width:s?"xl":void 0}),e.jsx("div",{className:f(s?"w-full":"flex-grow"),children:e.jsx(N,{name:"passkey-origins",label:n("settings.security.passkey.origins"),tooltip:n("settings.security.passkey.origins_tip"),disabled:!t,fieldProps:{mode:"tags"},rules:[{required:t},({getFieldValue:i})=>({validator(m,x){if(!x)return Promise.resolve();for(let j=0;j{let{t:s}=b(),[t,l]=h.useState(!1),{license:n}=G();const c=async()=>{let o=await a();return l(o["wechat-work-enabled"]),o};return e.jsx("div",{children:e.jsxs(D,{disabled:!n.isEnterprise(),children:[e.jsx(L,{message:s("settings.wechat_work.tip"),type:"info",showIcon:!0,style:{marginBottom:16}}),e.jsxs(w,{onFinish:r,request:c,submitter:{resetButtonProps:{style:{display:"none"}}},children:[e.jsx(p,{name:"wechat-work-enabled",label:s("settings.wechat_work.enabled"),rules:[{required:!0}],checkedChildren:s("general.enabled"),unCheckedChildren:s("general.disabled"),fieldProps:{checked:t,onChange:l}}),e.jsx(g,{name:"wechat-work-corp-id",label:s("settings.wechat_work.corp_id"),placeholder:s("settings.wechat_work.corp_id_placeholder"),disabled:!t,rules:[{required:t}]}),e.jsx(g,{name:"wechat-work-agent-id",label:s("settings.wechat_work.agent_id"),placeholder:s("settings.wechat_work.agent_id_placeholder"),disabled:!t,rules:[{required:t}]}),e.jsx(g.Password,{name:"wechat-work-secret",label:s("settings.wechat_work.secret"),placeholder:"******",disabled:!t,rules:[{required:t}]}),e.jsx(g,{name:"wechat-work-redirect-uri",label:s("identity.oidc_client.redirect_uris"),placeholder:s("settings.wechat_work.redirect_uri_placeholder"),disabled:!t,rules:[{required:t}]}),e.jsx(de,{name:"wechat-work-department",label:s("settings.oidc.department"),placeholder:s("settings.oidc.department_placeholder"),disabled:!t,fieldProps:{showSearch:!0,treeDefaultExpandAll:!0,treeNodeFilterProp:"title"},request:async()=>await pe.getTree()})]})]})})},xs=({get:a,set:r})=>{let{t:s}=b(),[t,l]=h.useState(!1),{license:n}=G();const c=async()=>{let o=await a();return l(o["oidc-enabled"]),o};return e.jsx("div",{children:e.jsxs(D,{disabled:!n.isEnterprise(),children:[e.jsx(L,{message:s("settings.oidc.tip"),type:"info",showIcon:!0,style:{marginBottom:16}}),e.jsxs(w,{onFinish:r,request:c,submitter:{resetButtonProps:{style:{display:"none"}}},children:[e.jsx(p,{name:"oidc-enabled",label:s("settings.oidc.enabled"),rules:[{required:!0}],checkedChildren:s("general.enabled"),unCheckedChildren:s("general.disabled"),fieldProps:{checked:t,onChange:l}}),e.jsx(g,{name:"oidc-issuer",label:s("settings.oidc.issuer"),placeholder:s("settings.oidc.issuer_placeholder"),disabled:!t,rules:[{required:t}]}),e.jsx(g,{name:"oidc-client-id",label:s("settings.oidc.client_id"),placeholder:s("settings.oidc.client_id_placeholder"),disabled:!t,rules:[{required:t}]}),e.jsx(g.Password,{name:"oidc-client-secret",label:s("settings.oidc.client_secret"),placeholder:"******",disabled:!t,rules:[{required:t}]}),e.jsx(g,{name:"oidc-redirect-uri",label:s("identity.oidc_client.redirect_uris"),placeholder:s("settings.oidc.redirect_uri_placeholder"),disabled:!t,rules:[{required:t}]}),e.jsx(g,{name:"oidc-scopes",label:s("settings.oidc.scopes"),placeholder:s("settings.oidc.scopes_placeholder"),disabled:!t,rules:[{required:t}]}),e.jsx(de,{name:"oidc-department",label:s("settings.oidc.department"),placeholder:s("settings.oidc.department_placeholder"),disabled:!t,fieldProps:{showSearch:!0,treeDefaultExpandAll:!0,treeNodeFilterProp:"title"},request:async()=>await pe.getTree()})]})]})})},ys=({get:a,set:r})=>{let{t:s}=b();const t=[{key:"webauthn",label:s("settings.webauthn.setting"),children:e.jsx(hs,{get:a,set:r})},{key:"ldap",label:s("settings.ldap.setting"),children:e.jsx(ms,{get:a,set:r})},{key:"wechat-work",label:s("settings.wechat_work.setting"),children:e.jsx(bs,{get:a,set:r})},{key:"oidc",label:s("settings.oidc.setting"),children:e.jsx(xs,{get:a,set:r})}];return e.jsx("div",{children:e.jsx(Y,{items:t})})},fs=({get:a,set:r})=>{const{t:s}=b(),[t,l]=h.useState(!1),n=async()=>{let c=await a();return l(c["oidc-server-enabled"]),c};return e.jsxs("div",{children:[e.jsx(L,{message:s("settings.oidc_server.description"),description:e.jsxs("div",{children:[e.jsxs("p",{children:[s("settings.oidc_server.manage_tip_prefix"),e.jsx(ce,{to:"/oidc-client",children:s("settings.oidc_server.manage_link")}),s("settings.oidc_server.manage_tip_suffix")]}),e.jsx("p",{children:s("settings.oidc_server.endpoints_title")}),e.jsxs("ul",{style:{marginBottom:0},children:[e.jsxs("li",{children:[s("settings.oidc_server.endpoint.discovery"),": ",e.jsx("code",{children:"/api/.well-known/openid-configuration"})]}),e.jsxs("li",{children:[s("settings.oidc_server.endpoint.jwks"),": ",e.jsx("code",{children:"/api/oidc/server/.well-known/jwks.json"})]}),e.jsxs("li",{children:[s("settings.oidc_server.endpoint.authorization"),": ",e.jsx("code",{children:"/api/oidc/server/authorize"})]}),e.jsxs("li",{children:[s("settings.oidc_server.endpoint.token"),": ",e.jsx("code",{children:"/api/oidc/server/token"})]}),e.jsxs("li",{children:[s("settings.oidc_server.endpoint.userinfo"),": ",e.jsx("code",{children:"/api/oidc/server/userinfo"})]})]})]}),type:"info",showIcon:!0,style:{marginBottom:16}}),e.jsxs(w,{onFinish:r,request:n,autoFocus:!1,submitter:{resetButtonProps:{style:{display:"none"}}},children:[e.jsx(p,{name:"oidc-server-enabled",label:s("settings.oidc_server.enable_label"),rules:[{required:!0}],checkedChildren:s("general.enabled"),unCheckedChildren:s("general.disabled"),fieldProps:{checked:t,onChange:l}}),e.jsx(g,{name:"oidc-server-issuer",label:s("settings.oidc_server.issuer_label"),placeholder:"https://next-terminal.example.com/api",tooltip:s("settings.oidc_server.issuer_tooltip"),disabled:!t,rules:[{required:t,message:s("settings.oidc_server.issuer_required")},{type:"url",message:s("general.invalid_url")}]}),e.jsx(y,{name:"oidc-server-access-token-ttl",label:s("settings.oidc_server.access_token_ttl_label"),placeholder:"3600",tooltip:s("settings.oidc_server.access_token_ttl_tooltip"),min:60,max:86400,disabled:!t,rules:[{required:t,message:s("settings.oidc_server.ttl_required")}],fieldProps:{precision:0}}),e.jsx(y,{name:"oidc-server-refresh-token-ttl",label:s("settings.oidc_server.refresh_token_ttl_label"),placeholder:"604800",tooltip:s("settings.oidc_server.refresh_token_ttl_tooltip"),min:3600,max:2592e3,disabled:!t,rules:[{required:t,message:s("settings.oidc_server.ttl_required")}],fieldProps:{precision:0}}),e.jsx(y,{name:"oidc-server-id-token-ttl",label:s("settings.oidc_server.id_token_ttl_label"),placeholder:"3600",tooltip:s("settings.oidc_server.id_token_ttl_tooltip"),min:60,max:86400,disabled:!t,rules:[{required:t,message:s("settings.oidc_server.ttl_required")}],fieldProps:{precision:0}}),e.jsx(y,{name:"oidc-server-auth-code-ttl",label:s("settings.oidc_server.auth_code_ttl_label"),placeholder:"600",tooltip:s("settings.oidc_server.auth_code_ttl_tooltip"),min:60,max:1800,disabled:!t,rules:[{required:t,message:s("settings.oidc_server.ttl_required")}],fieldProps:{precision:0}})]})]})},js=({get:a,set:r})=>{let{t:s}=b();const t=[{key:"oidc-server",label:"OIDC Server",children:e.jsx(fs,{get:a,set:r})}];return e.jsx("div",{children:e.jsx(Y,{items:t})})},ks=({get:a,set:r})=>{let{t:s}=b(),[t,l]=h.useState([]),[n,c]=h.useState(null);h.useEffect(()=>{R.getClientIPs().then(i=>{c(i)}).catch(i=>{console.error("Failed to get client IPs:",i)})},[]);const o=async()=>{let i=await a();if(i["ip-trust-list"]){let m=i["ip-trust-list"].split(",");l(m)}return i},d=i=>(i["ip-trust-list"]=t.join(","),r(i));return e.jsx("div",{children:e.jsxs(w,{onFinish:d,request:o,submitter:{resetButtonProps:{style:{display:"none"}}},children:[e.jsx(B,{orientation:"left",children:s("settings.network.setting")}),e.jsx(N,{name:"ip-extractor",label:s("settings.system.ip.extractor"),rules:[{required:!0}],options:[{label:`${s("assets.addr")}${n?.direct?` (${n.direct})`:""}`,value:"direct"},{label:`Header(X-Real-IP)${n?.["x-real-ip"]?` (${n["x-real-ip"]})`:` (${s("settings.network.not_detected")})`}`,value:"x-real-ip"},{label:`Header(X-Forwarded-For)${n?.["x-forwarded-for"]?` (${n["x-forwarded-for"]})`:` (${s("settings.network.not_detected")})`}`,value:"x-forwarded-for"}]}),e.jsx(ie,{name:["ip-extractor"],children:i=>i["ip-extractor"]==="direct"?null:e.jsx(ne,{gutter:[16,16],children:e.jsx(Q,{xs:24,children:e.jsx(N,{name:"ip-trust-list",label:e.jsxs("div",{className:"flex items-center gap-1",children:[s("settings.system.ip.trust_list"),e.jsx(J,{title:s("settings.network.trust_ip_tip"),children:e.jsx(Me,{className:"text-gray-400",size:12})})]}),placeholder:s("settings.system.ip.trust_placeholder"),fieldProps:{mode:"tags",value:t,onChange:l}})})})})]})})},{Title:vs}=C,H=({enabled:a,namePrefix:r,configLabel:s,description:t,enableLabel:l,promptLabel:n,promptPlaceholder:c})=>e.jsxs(e.Fragment,{children:[e.jsx(B,{orientation:"left",children:s}),t&&e.jsx(C.Paragraph,{type:"secondary",style:{marginBottom:16},children:t}),e.jsx(p,{name:`llm-${r}-enabled`,label:l,disabled:!a}),e.jsx(X,{name:`llm-${r}-prompt`,label:n,placeholder:c,fieldProps:{rows:6,autoSize:{minRows:6,maxRows:12}},disabled:!a})]}),_s=({get:a,set:r})=>{const{t:s}=b(),{isMobile:t}=$(),[l,n]=h.useState(!1),c=async()=>{const o=await a();return n(o["llm-enabled"]),o["llm-shell-prompt"]||(o["llm-shell-prompt"]=s("settings.llm.shell_prompt_default")),o["llm-audit-prompt"]||(o["llm-audit-prompt"]=s("settings.llm.audit_prompt_default")),o["llm-audit-rdp-prompt"]||(o["llm-audit-rdp-prompt"]=s("settings.llm.audit_rdp_prompt_default")),o};return e.jsxs("div",{className:f(t&&"px-2"),children:[e.jsx(vs,{level:5,style:{marginTop:0},children:s("settings.llm.title")}),e.jsxs(w,{onFinish:r,request:c,autoFocus:!1,submitter:{resetButtonProps:{style:{display:"none"}}},layout:t?"vertical":"horizontal",labelCol:t?void 0:{span:6},wrapperCol:t?void 0:{span:14},children:[e.jsx(B,{orientation:"left",children:s("settings.llm.base_config")}),e.jsx(p,{name:"llm-enabled",label:s("settings.llm.enable"),fieldProps:{onChange:n}}),e.jsx(g.Password,{name:"llm-api-key",label:s("settings.llm.api_key"),placeholder:s("settings.llm.api_key_placeholder"),rules:[{required:l,message:s("settings.llm.api_key_required")}],disabled:!l}),e.jsx(g,{name:"llm-base-url",label:s("settings.llm.base_url"),placeholder:"https://api.openai.com/v1",rules:[{required:l,message:s("settings.llm.base_url_required")}],disabled:!l}),e.jsx(g,{name:"llm-proxy-url",label:s("settings.llm.proxy_url"),placeholder:s("settings.llm.proxy_url_placeholder"),disabled:!l}),e.jsx(g,{name:"llm-model",label:s("settings.llm.model"),placeholder:"gpt-3.5-turbo",rules:[{required:l,message:s("settings.llm.model_required")}],disabled:!l}),e.jsx(y,{name:"llm-temperature",label:s("settings.llm.temperature"),min:0,max:2,fieldProps:{step:.1,precision:1},initialValue:.7,disabled:!l}),e.jsx(y,{name:"llm-max-tokens",label:s("settings.llm.max_tokens"),min:1,initialValue:4096,disabled:!l}),e.jsx(H,{enabled:l,namePrefix:"shell",configLabel:s("settings.llm.shell_config"),enableLabel:s("settings.llm.shell_enable"),promptLabel:s("settings.llm.shell_prompt"),promptPlaceholder:s("settings.llm.shell_prompt_placeholder")}),e.jsx(H,{enabled:l,namePrefix:"audit",configLabel:s("settings.llm.audit_config"),description:s("settings.llm.audit_config_desc"),enableLabel:s("settings.llm.audit_enable"),promptLabel:s("settings.llm.audit_prompt"),promptPlaceholder:s("settings.llm.audit_prompt_placeholder")}),e.jsx(H,{enabled:l,namePrefix:"audit-rdp",configLabel:s("settings.llm.audit_rdp_config"),description:s("settings.llm.audit_rdp_config_desc"),enableLabel:s("settings.llm.audit_rdp_enable"),promptLabel:s("settings.llm.audit_rdp_prompt"),promptPlaceholder:s("settings.llm.audit_rdp_prompt_placeholder")})]})]})},Ls=()=>{const{isMobile:a}=$(),[r,s]=z.useMessage(),[t,l]=Ae();let n=Be(t.get("activeKey"),"system-setting"),[c,o]=h.useState(n),{t:d}=b(),[i,m]=h.useState(!1),[x,j]=h.useState(null);const T=Z({queryKey:["info"],queryFn:Le.getUserInfo}),F=u=>{o(u),l({activeKey:u})},M=async()=>{if(T.data)return!!T.data.mfaEnabled;try{return!!(await T.refetch()).data?.mfaEnabled}catch{return!1}},k=async u=>{try{return x?!1:await M()?new Promise((A,O)=>{j({values:u,resolve:A,reject:O}),m(!0)}):(await R.set(u),r.success(d("general.success")),!0)}catch(_){return console.error("Setting save error:",_),r.error(_?.message||d("general.error")),!1}},E=async u=>{if(!x){m(!1);return}const{values:_,resolve:A,reject:O}=x;try{await R.set(_,u),r.success(d("general.success")),A(!0)}catch(ge){O(ge)}finally{j(null),m(!1)}},K=()=>{x&&x.resolve(!1),j(null),m(!1)},v=async()=>{try{return await R.get()}catch(u){return console.error("Setting get error:",u),r.error(u?.message||d("general.error")),{}}},P=[{label:d("menus.setting.label"),key:"system-setting",children:e.jsx(as,{get:v,set:k})},{label:d("settings.security.setting"),key:"security-setting",children:e.jsx(Xe,{get:v,set:k})},{label:d("settings.sshd.setting"),key:"sshd",children:e.jsx(Ze,{get:v,set:k})},{label:d("db.proxy.setting"),key:"db-proxy",children:e.jsx(ss,{get:v,set:k})},{label:d("settings.rdp.setting"),key:"rdp",children:e.jsx(Ue,{get:v,set:k})},{label:d("settings.vnc.setting"),key:"vnc",children:e.jsx(Ge,{get:v,set:k})},{label:d("settings.mail.setting"),key:"mail",children:e.jsx(Qe,{get:v,set:k})},{label:d("settings.identity_methods"),key:"ldap",children:e.jsx(ys,{get:v,set:k})},{label:d("settings.identity_source.setting"),key:"identity-source",children:e.jsx(js,{get:v,set:k})},{label:d("settings.log.setting"),key:"log",children:e.jsx(Oe,{get:v,set:k})},{label:d("settings.backup.setting"),key:"backup",children:e.jsx(cs,{})},{label:d("settings.network.setting"),key:"network",children:e.jsx(ks,{get:v,set:k})},{label:d("settings.llm.title"),key:"llm",children:e.jsx(_s,{get:v,set:k})},{label:d("settings.logo.setting"),key:"logo",children:e.jsx(gs,{})},{label:d("settings.about.setting"),key:"about",children:e.jsx(ds,{})}];return e.jsxs("div",{className:f("px-4",a&&"px-2"),children:[e.jsx(Y,{tabPosition:a?"top":"left",activeKey:c,onChange:F,tabBarStyle:a?{}:{width:150},items:P,size:a?"small":"middle",className:f(a&&"mobile-setting-tabs")}),s,e.jsx($e,{open:i,forceReauth:!0,handleOk:E,handleCancel:K})]})};export{Ls as default}; diff --git a/server/resource/build/assets/SetupPage-DriicTxX.js b/server/resource/build/assets/SetupPage-DriicTxX.js deleted file mode 100644 index d493431b1..000000000 --- a/server/resource/build/assets/SetupPage-DriicTxX.js +++ /dev/null @@ -1 +0,0 @@ -import{f as a,S as e,aG as k,a$ as K,ar as R,aZ as p,av as m,b0 as A,aK as B,aT as o}from"./antd-Afm2kNt7.js";import{e as g,f as E,u as Q,m as y}from"./index-DQXwuKC5.js";import{u as x}from"./user-api-BJxKseSg.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";const{Title:D}=K,Z=()=>{let[h,w]=a.useState(!1),f=g({queryKey:["branding"],queryFn:E.getBranding}),u=g({queryKey:["setup-status"],queryFn:x.getSetupStatus,retry:!1,initialData:{needSetup:!0}}),[j,P]=a.useState(""),[b,S]=a.useState(""),[v,l]=a.useState(),[n,d]=a.useState("");const N=a.useRef(null);let{t:s}=Q();const _=async()=>({type:"admin",recording:"enabled",watermark:"enabled"}),q=async t=>{x.setupUser(t).then(()=>{w(!0)}).catch(r=>{alert(r?.message)})},T=async t=>{P(t.target.value);let{status:r,error:i}=c(t.target.value,b);l(r),d(i)},C=t=>{S(t.target.value);let{status:r,error:i}=c(j,t.target.value);l(r),d(i)},c=(t,r)=>r===t?{status:"success",error:""}:{status:"error",error:s("identity.setup.password_not_same")},F=()=>u.isLoading?e.jsx("div",{className:"flex justify-center py-6",children:e.jsx(R,{})}):h?e.jsx(p,{status:"success",title:s("identity.setup.success"),extra:[e.jsx(m,{type:"link",href:"/login",children:s("identity.setup.go_to_login")},"go-login")]}):u.data?.needSetup?e.jsxs("div",{children:[y.hasText(n)&&e.jsx("div",{className:"mb-4",children:e.jsx(A,{showIcon:!0,type:"warning",message:n})}),e.jsxs(B,{formRef:N,request:_,onFinish:q,submitter:{submitButtonProps:{disabled:y.hasText(n)}},children:[e.jsx(o,{name:"username",label:s("audit.operation.account"),rules:[{required:!0}]}),e.jsx(o.Password,{name:"password",label:s("assets.password"),rules:[{required:!0}],fieldProps:{onChange:T}}),e.jsx(o.Password,{name:"newPassword2",label:s("account.confirm_password"),rules:[{required:!0}],validateStatus:v,fieldProps:{onChange:C}})]})]}):e.jsx(p,{status:"info",title:s("identity.setup.already_done_title"),subTitle:s("identity.setup.already_done_subtitle"),extra:[e.jsx(m,{type:"link",href:"/login",children:s("identity.setup.go_to_login")},"go-login")]});return e.jsx(k,{hashPriority:"high",children:e.jsx("div",{className:"bg-gray-100 h-screen w-screen flex flex-col items-center justify-center",children:e.jsxs("div",{className:"bg-white rounded-lg shadow-md p-8 min-w-[480px]",children:[e.jsxs("div",{className:"flex flex-col items-center justify-center",children:[e.jsx(D,{level:2,children:f.data?.name}),e.jsx("div",{className:"font-medium mb-8",children:s("identity.setup.user")})]}),F()]})})})};export{Z as default}; diff --git a/server/resource/build/assets/SnippetPage-Bp2O5-JS.js b/server/resource/build/assets/SnippetPage-Bp2O5-JS.js deleted file mode 100644 index 23ed3acd4..000000000 --- a/server/resource/build/assets/SnippetPage-Bp2O5-JS.js +++ /dev/null @@ -1 +0,0 @@ -import{f as p,S as t,U as P,aK as T,aT as x,aU as A,aV as R,aI as C,bi as f,aS as _,bz as B,av as F}from"./antd-Afm2kNt7.js";import{A as q,u as g,h as O}from"./index-DQXwuKC5.js";import{g as z}from"./sort-BOdE-yay.js";import{N as b}from"./NButton-DoPcvKBF.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";class K extends q{constructor(){super("admin/snippets")}}let v=new K;const U=v,M=({open:e,handleOk:n,handleCancel:u,confirmLoading:s,id:o})=>{let{t:i}=g();const l=p.useRef(null),m=async()=>o?await U.getById(o):{visibility:"private"};return t.jsx(P,{title:i(o?"actions.edit":"actions.new"),open:e,maskClosable:!1,destroyOnHidden:!0,onOk:()=>{l.current?.validateFields().then(async d=>{n(d)})},onCancel:()=>{u()},confirmLoading:s,children:t.jsxs(T,{formRef:l,request:m,submitter:!1,children:[t.jsx(x,{hidden:!0,name:"id"}),t.jsx(x,{label:i("general.name"),name:"name",rules:[{required:!0}]}),t.jsx(A,{label:i("assets.content"),name:"content",rules:[{required:!0}]}),t.jsx(R.Group,{name:"visibility",label:i("assets.snippet.visibility"),options:[{label:i("assets.snippet.visibility_private"),value:"private"},{label:i("assets.snippet.visibility_public"),value:"public"}],rules:[{required:!0}]})]})})},c=v,$=()=>{const{t:e}=g(),n=p.useRef(null);let[u,s]=p.useState(!1),[o,i]=p.useState();const{message:l}=C.useApp();let d=O({mutationFn:async a=>{a.id?await c.updateById(a.id,a):await c.create(a)},onSuccess:()=>{n.current?.reload(),s(!1),i(void 0),w()}});function w(){l.open({type:"success",content:e("general.success")})}const S=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:e("general.name"),dataIndex:"name",hideInSearch:!0,width:200,ellipsis:!0},{title:e("assets.content"),dataIndex:"content",key:"content",hideInSearch:!0,copyable:!0,ellipsis:!0},{title:e("assets.snippet.visibility"),dataIndex:"visibility",key:"visibility",width:100,hideInSearch:!0,render:(a,r)=>r.visibility==="public"?t.jsx(f,{color:"green",children:e("assets.snippet.visibility_public")}):t.jsx(f,{color:"default",children:e("assets.snippet.visibility_private")})},{title:e("general.creator"),key:"creator",dataIndex:"creator",hideInSearch:!0,width:200,ellipsis:!0},{title:e("general.created_at"),key:"createdAt",dataIndex:"createdAt",hideInSearch:!0,valueType:"dateTime",width:191},{title:e("actions.label"),valueType:"option",key:"option",width:100,render:(a,r,j,y)=>[t.jsx(b,{onClick:()=>{s(!0),i(r.id)},children:e("actions.edit")},"edit"),t.jsx(_,{title:e("general.confirm_delete"),onConfirm:async()=>{await c.deleteById(r.id),n.current?.reload()},children:t.jsx(b,{danger:!0,children:e("actions.delete")},"delete")},"delete-confirm")]}];return t.jsxs("div",{children:[t.jsx(B,{columns:S,actionRef:n,request:async(a={},r,j)=>{let[y,I]=z(r),k={pageIndex:a.current,pageSize:a.pageSize,order:y,field:I,keyword:a.keyword},h=await c.getPaging(k);return{data:h.items,success:!0,total:h.total}},rowKey:"id",options:{search:!0},search:!1,pagination:{defaultPageSize:10,showSizeChanger:!0},dateFormatter:"string",headerTitle:e("menus.resource.submenus.snippet"),toolBarRender:()=>[t.jsx(F,{type:"primary",onClick:()=>{s(!0)},children:e("actions.new")},"snippet-add")]}),t.jsx(M,{id:o,open:u,confirmLoading:d.isPending,handleCancel:()=>{s(!1),i(void 0)},handleOk:d.mutate})]})};export{$ as default}; diff --git a/server/resource/build/assets/SnippetUserPage-DbddvRmb.js b/server/resource/build/assets/SnippetUserPage-DbddvRmb.js deleted file mode 100644 index 482d192aa..000000000 --- a/server/resource/build/assets/SnippetUserPage-DbddvRmb.js +++ /dev/null @@ -1 +0,0 @@ -import{f as l,aI as C,S as e,bi as m,aS as I,bz as k,av as N}from"./antd-Afm2kNt7.js";import{u as T,w as B,e as U,h as A,aD as F,x as h,aE as O,S as _}from"./index-DQXwuKC5.js";import{N as y}from"./NButton-DoPcvKBF.js";import{F as K}from"./FacadeSearchBar-DPZw3dye.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";const o=F,H=()=>{const{t}=T(),{isMobile:s}=B();let[f,r]=l.useState(!1),[g,d]=l.useState();const[c,b]=l.useState(""),v=_(),{message:w}=C.useApp(),n=U({queryKey:["user-snippets"],queryFn:()=>o.getAll()}),u=l.useMemo(()=>{const i=n.data||[],a=c.trim().toLowerCase();return a?i.filter(p=>p.name?.toLowerCase().includes(a)||p.content?.toLowerCase().includes(a)):i},[n.data,c]);let x=A({mutationFn:async i=>{i.id?await o.updateById(i.id,i):await o.create(i)},onSuccess:()=>{r(!1),d(void 0),n.refetch(),j()}});function j(){w.open({type:"success",content:t("general.success")})}const S=[{dataIndex:"index",valueType:"indexBorder",width:48,hideInTable:s},{title:t("general.name"),dataIndex:"name",width:s?100:void 0},{title:t("assets.content"),dataIndex:"content",key:"content",copyable:!0,ellipsis:!0,width:s?150:void 0},{title:t("assets.snippet.visibility"),dataIndex:"visibility",key:"visibility",width:s?70:100,hideInSearch:!0,render:(i,a)=>a.visibility==="public"?e.jsx(m,{color:"green",children:t("assets.snippet.visibility_public")}):e.jsx(m,{color:"default",children:t("assets.snippet.visibility_private")})},{title:t("general.created_at"),key:"createdAt",dataIndex:"createdAt",hideInSearch:!0,valueType:"dateTime",hideInTable:s},{title:t("actions.label"),valueType:"option",key:"option",width:s?80:void 0,render:(i,a,p,L)=>a.createdBy===v.id?[e.jsx(y,{onClick:()=>{r(!0),d(a.id)},children:t("actions.edit")},"edit"),e.jsx(I,{title:t("general.confirm_delete"),onConfirm:async()=>{await o.deleteById(a.id),n.refetch()},children:e.jsx(y,{danger:!0,children:t("actions.delete")},"delete")},"delete-confirm")]:null}];return e.jsxs("div",{className:h("px-4 lg:px-20",s&&"px-2"),children:[e.jsx("div",{className:h("py-6",s&&"p-4"),children:e.jsxs("div",{className:"rounded-2xl border border-slate-200/70 dark:border-slate-700/70 p-4 lg:p-5",children:[e.jsx("div",{className:"flex flex-col lg:flex-row lg:items-center lg:justify-between gap-3",children:e.jsx("div",{className:"flex flex-col gap-1",children:e.jsx("div",{className:"text-xl font-bold text-slate-900 dark:text-slate-100",children:t("menus.resource.submenus.snippet")})})}),e.jsx("div",{className:"pt-3",children:e.jsx(K,{value:c,onChange:b,resultCount:u.length,totalCount:n.data?.length||0})})]})}),e.jsx("div",{className:"rounded-xl ring-1 ring-slate-200/60 dark:ring-slate-700/60 p-1",children:e.jsx(k,{columns:S,dataSource:u,loading:n.isFetching,rowKey:"id",search:!1,pagination:!1,dateFormatter:"string",headerTitle:null,toolBarRender:()=>[e.jsx(N,{type:"primary",size:"middle",onClick:()=>{r(!0)},children:t("actions.new")},"button")],options:{density:!s,fullScreen:!s,reload:!1,setting:!s}})}),e.jsx(O,{id:g,open:f,confirmLoading:x.isPending,handleCancel:()=>{r(!1),d(void 0)},handleOk:x.mutate})]})};export{H as default}; diff --git a/server/resource/build/assets/SshGatewayPage-C_iCWAPs.js b/server/resource/build/assets/SshGatewayPage-C_iCWAPs.js deleted file mode 100644 index 42d3c3c2b..000000000 --- a/server/resource/build/assets/SshGatewayPage-C_iCWAPs.js +++ /dev/null @@ -1 +0,0 @@ -import{f as c,S as e,U as B,aK as $,aT as h,aV as v,bH as k,bs as y,a_ as q,aO as P,bY as F,aL as b,aU as G,av as C,c0 as N,bl as z,aI as K,bi as d,aS as U,bz as E}from"./antd-Afm2kNt7.js";import{g as V}from"./sort-BOdE-yay.js";import{u as R,M as W,h as D}from"./index-DQXwuKC5.js";import{s as O}from"./ssh-gateway-api-D4569Eil.js";import{c as T}from"./credential-api-DP_sN2cX.js";import{N as A}from"./NButton-DoPcvKBF.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";const I=O,H=({open:t,handleOk:x,handleCancel:w,confirmLoading:u,id:i})=>{const o=c.useRef(null);let{t:a}=R(),[S,g]=c.useState(!1),[j,p]=c.useState(!1);c.useEffect(()=>{t||g(!1)},[t]);const s=async()=>i?await I.getById(i):{configMode:"direct",accountType:"password",port:22},m=l=>{switch(l){case"credential":return e.jsx(e.Fragment,{children:e.jsx(b,{label:a("menus.resource.submenus.credential"),name:"credentialId",rules:[{required:!0}],request:async()=>(await T.getAll()).map(r=>({label:r.name,value:r.id}))})});case"password":return e.jsxs(e.Fragment,{children:[e.jsx(h,{label:a("menus.identity.submenus.user"),name:"username",rules:[{required:!0}]}),e.jsx(h.Password,{label:a("assets.password"),name:"password",rules:[{required:!0}],fieldProps:{iconRender:n=>n?e.jsx(N,{}):e.jsx(z,{}),visibilityToggle:{onVisibleChange:n=>{i&&n&&!S&&p(!0)}}}})]});case"private-key":return e.jsxs(e.Fragment,{children:[e.jsx(h,{label:a("menus.identity.submenus.user"),name:"username",rules:[{required:!0}]}),e.jsx(G,{label:a("assets.private_key"),name:"privateKey",rules:[{required:!0}],fieldProps:{rows:4}}),i&&e.jsx("div",{className:"mb-2 -mt-2",children:e.jsx(C,{color:"purple",variant:"filled",onClick:async()=>{p(!0)},children:a("actions.view_private_key")})}),e.jsx(h.Password,{label:a("assets.passphrase"),name:"passphrase"})]})}};return e.jsxs(B,{title:a(i?"actions.edit":"actions.new"),open:t,maskClosable:!1,destroyOnHidden:!0,onOk:()=>{o.current?.validateFields().then(async l=>{x(l)})},onCancel:()=>{w()},confirmLoading:u,children:[e.jsxs($,{formRef:o,request:s,submitter:!1,children:[e.jsx(h,{hidden:!0,name:"id"}),e.jsx(h,{name:"name",label:a("general.name"),rules:[{required:!0}]}),e.jsx(v.Group,{label:a("gateways.config_mode"),name:"configMode",rules:[{required:!0}],options:[{label:a("gateways.config_mode_direct"),value:"direct"},{label:a("gateways.config_mode_credential"),value:"credential"},{label:a("gateways.config_mode_asset"),value:"asset"}]}),e.jsx(k,{name:["configMode"],children:({configMode:l})=>l==="direct"?e.jsxs(e.Fragment,{children:[e.jsx(y.Item,{label:a("assets.addr"),className:"nesting-form-item",rules:[{required:!0}],children:e.jsxs(q.Compact,{block:!0,children:[e.jsx(y.Item,{noStyle:!0,name:"ip",rules:[{required:!0}],children:e.jsx(P,{style:{width:"70%"},placeholder:"hostname or ip"})}),e.jsx(y.Item,{noStyle:!0,name:"port",rules:[{required:!0}],children:e.jsx(F,{style:{width:"30%"},min:1,max:65535,placeholder:"1-65535"})})]})}),e.jsx(v.Group,{label:a("assets.account_type"),name:"accountType",rules:[{required:!0}],options:[{label:a("assets.password"),value:"password"},{label:a("assets.private_key"),value:"private-key"}]}),e.jsx(k,{name:["accountType"],children:({accountType:n})=>m(n)})]}):l==="credential"?e.jsxs(e.Fragment,{children:[e.jsx(y.Item,{label:a("assets.addr"),className:"nesting-form-item",rules:[{required:!0}],children:e.jsxs(q.Compact,{block:!0,children:[e.jsx(y.Item,{noStyle:!0,name:"ip",rules:[{required:!0}],children:e.jsx(P,{style:{width:"70%"},placeholder:"hostname or ip"})}),e.jsx(y.Item,{noStyle:!0,name:"port",rules:[{required:!0}],children:e.jsx(F,{style:{width:"30%"},min:1,max:65535,placeholder:"1-65535"})})]})}),e.jsx(b,{label:a("menus.resource.submenus.credential"),name:"credentialId",rules:[{required:!0}],request:async()=>(await T.getAll()).map(r=>({label:r.name,value:r.id}))})]}):l==="asset"?e.jsx(e.Fragment,{children:e.jsx(b,{label:a("gateways.ssh_asset"),name:"assetId",rules:[{required:!0}],request:async()=>(await I.getAvailableAssets()).map(r=>({label:`${r.name} (${r.ip}:${r.port})`,value:r.id,disabled:!r.canBeGateway,title:r.disableReason||`${r.ip}:${r.port}`})),fieldProps:{showSearch:!0,optionFilterProp:"label"}})}):null})]}),e.jsx(W,{open:j,handleOk:async l=>{const n=await I.decrypt(i,l);o.current?.setFieldsValue(n),g(!0),p(!1)},handleCancel:()=>p(!1)})]})},f=O,re=()=>{const{t}=R(),x=c.useRef(null);let[w,u]=c.useState(!1),[i,o]=c.useState();const{message:a}=K.useApp();let g=D({mutationFn:async s=>{s.id?await f.updateById(s.id,s):await f.create(s)},onSuccess:()=>{x.current?.reload(),u(!1),o(void 0),j()}});function j(){a.open({type:"success",content:t("general.success")})}let p=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:t("general.name"),dataIndex:"name",hideInSearch:!0},{title:t("gateways.config_mode"),dataIndex:"configMode",key:"configMode",hideInSearch:!0,render:s=>{switch(s){case"direct":return e.jsx(d,{color:"blue",children:t("gateways.config_mode_direct")});case"credential":return e.jsx(d,{color:"orange",children:t("gateways.config_mode_credential")});case"asset":return e.jsx(d,{color:"green",children:t("gateways.config_mode_asset")});default:return e.jsx(d,{color:"blue",children:t("gateways.config_mode_direct")})}}},{title:"IP",dataIndex:"ip",key:"ip",sorter:!0,hideInSearch:!0},{title:t("gateways.port"),dataIndex:"port",key:"port",hideInSearch:!0},{title:t("assets.account_type"),dataIndex:"accountType",key:"accountType",hideInSearch:!0,render:s=>{switch(s){case"password":return e.jsx(d,{color:"red",children:t("assets.password")});case"private-key":return e.jsx(d,{color:"green",children:t("assets.private_key")});case"credential":return e.jsx(d,{color:"orange",children:t("menus.resource.submenus.credential")})}}},{title:t("gateways.username"),dataIndex:"username",key:"username",hideInSearch:!0},{title:t("general.created_at"),key:"createdAt",dataIndex:"createdAt",hideInSearch:!0,valueType:"dateTime"},{title:t("actions.label"),valueType:"option",key:"option",render:(s,m,l,n)=>[e.jsx(A,{onClick:()=>{u(!0),o(m.id)},children:t("actions.edit")},"edit"),e.jsx(U,{title:t("general.confirm_delete"),onConfirm:async()=>{await f.deleteById(m.id),x.current?.reload()},children:e.jsx(A,{danger:!0,children:t("actions.delete")},"delete")},"delete-confirm")]}];return e.jsxs("div",{children:[e.jsx(E,{columns:p,actionRef:x,request:async(s={},m,l)=>{let[n,r]=V(m),M={pageIndex:s.current,pageSize:s.pageSize,order:n,field:r,keyword:s.keyword},_=await f.getPaging(M);return{data:_.items,success:!0,total:_.total}},rowKey:"id",options:{search:!0},search:!1,pagination:{defaultPageSize:10,showSizeChanger:!0},dateFormatter:"string",headerTitle:t("menus.gateway.submenus.ssh_gateway"),toolBarRender:()=>[e.jsx(C,{type:"primary",onClick:()=>{u(!0)},children:t("actions.new")},"button")]}),e.jsx(H,{id:i,open:w,confirmLoading:g.isPending,handleCancel:()=>{u(!1),o(void 0)},handleOk:g.mutate})]})};export{re as default}; diff --git a/server/resource/build/assets/StoragePage-DS0_Tdim.js b/server/resource/build/assets/StoragePage-DS0_Tdim.js deleted file mode 100644 index 1a7d4f7c0..000000000 --- a/server/resource/build/assets/StoragePage-DS0_Tdim.js +++ /dev/null @@ -1 +0,0 @@ -import{f as o,S as t,U as F,aK as T,aT as x,bO as O,aM as R,aI as _,bi as m,aS as B,bz as q,av as A}from"./antd-Afm2kNt7.js";import{u as I,h as v,Y as w,ah as D}from"./index-DQXwuKC5.js";import{s as j}from"./storage-api-CDrFMJhC.js";import{N as p}from"./NButton-DoPcvKBF.js";import{g as K}from"./sort-BOdE-yay.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";const M=j,U=({open:e,handleOk:s,handleCancel:f,confirmLoading:n,id:l})=>{let{t:a}=I();const u=o.useRef(null),c=async()=>{if(l){let i=await M.getById(l);return i.limitSize>0&&(i.limitSize=i.limitSize/1024/1024/1024),await i}return{}};return t.jsx(F,{title:a(l?"actions.edit":"actions.new"),open:e,maskClosable:!1,destroyOnHidden:!0,onOk:()=>{u.current?.validateFields().then(async i=>{i.limitSize=i.limitSize*1024*1024*1024,s(i)})},onCancel:()=>{f()},confirmLoading:n,children:t.jsxs(T,{formRef:u,request:c,submitter:!1,children:[t.jsx(x,{hidden:!0,name:"id"}),t.jsx(x,{label:a("general.name"),name:"name",rules:[{required:!0}]}),t.jsx(O,{label:a("assets.is_share"),name:"isShare",rules:[{required:!0}]}),t.jsx(R,{label:a("assets.limit_size"),name:"limitSize",rules:[{required:!0}],fieldProps:{min:1,precision:2},addonAfter:"GB"})]})})},h=j,Q=()=>{const{t:e}=I(),s=o.useRef(null);let[f,n]=o.useState(!1),[l,a]=o.useState(""),[u,c]=o.useState(!1);const{message:i}=_.useApp();let g=v({mutationFn:async r=>{r.id?await h.updateById(r.id,r):await h.create(r)},onSuccess:()=>{s.current?.reload(),n(!1),a(void 0),z()}});function z(){i.open({type:"success",content:e("general.success")})}const b=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:e("general.name"),dataIndex:"name",hideInSearch:!0,ellipsis:!0,width:100},{title:e("general.default"),dataIndex:"isDefault",key:"isDefault",hideInSearch:!0,render:r=>r===!0?t.jsx(m,{color:"green-inverse",bordered:!1,children:e("general.yes")}):t.jsx(m,{color:"gray",bordered:!1,children:e("general.no")}),width:50},{title:e("assets.is_share"),dataIndex:"isShare",key:"isShare",hideInSearch:!0,render:r=>r===!0?t.jsx(m,{color:"green-inverse",bordered:!1,children:e("general.yes")}):t.jsx(m,{color:"gray",bordered:!1,children:e("general.no")}),width:50},{title:e("assets.used_size"),dataIndex:"usedSize",key:"usedSize",hideInSearch:!0,render:r=>w(r),width:100},{title:e("assets.limit_size"),dataIndex:"limitSize",key:"limitSize",hideInSearch:!0,render:r=>w(r),width:100},{title:e("general.creator"),key:"creator",dataIndex:"creator",hideInSearch:!0,width:100},{title:e("general.created_at"),key:"createdAt",dataIndex:"createdAt",hideInSearch:!0,valueType:"dateTime",width:191},{title:e("actions.label"),valueType:"option",key:"option",width:200,render:(r,d,k,S)=>[t.jsx(p,{onClick:()=>{c(!0),a(d.id)},children:e("assets.filesystem")},"filesystem"),t.jsx(p,{onClick:()=>{n(!0),a(d.id)},children:e("actions.edit")},"edit"),t.jsx(B,{title:e("general.confirm_delete"),onConfirm:async()=>{await h.deleteById(d.id),s.current?.reload()},children:t.jsx(p,{danger:!0,disabled:d.isDefault,children:e("actions.delete")},"delete")},"delete_confirm")]}];return t.jsxs("div",{children:[t.jsx(q,{columns:b,actionRef:s,request:async(r={},d,k)=>{let[S,P]=K(d),C={pageIndex:r.current,pageSize:r.pageSize,order:S,field:P,keyword:r.keyword},y=await h.getPaging(C);return{data:y.items,success:!0,total:y.total}},rowKey:"id",options:{search:!0},search:!1,pagination:{defaultPageSize:10,showSizeChanger:!0},dateFormatter:"string",headerTitle:e("menus.resource.submenus.storage"),toolBarRender:()=>[t.jsx(A,{type:"primary",onClick:()=>{n(!0)},children:e("actions.new")},"button")]}),t.jsx(U,{id:l,open:f,confirmLoading:g.isPending,handleCancel:()=>{n(!1),a("")},handleOk:g.mutate}),t.jsx(D,{fsId:l,strategy:{id:"x",name:"x",upload:!0,download:!0,delete:!0,rename:!0,edit:!0,createDir:!0,createFile:!0,copy:!0,paste:!0},mask:!0,maskClosable:!0,open:u,onClose:()=>{c(!1),s.current?.reload()}})]})};export{Q as default}; diff --git a/server/resource/build/assets/StrategyPage-58Xo8e61.js b/server/resource/build/assets/StrategyPage-58Xo8e61.js deleted file mode 100644 index c5ce9b329..000000000 --- a/server/resource/build/assets/StrategyPage-58Xo8e61.js +++ /dev/null @@ -1 +0,0 @@ -import{f as h,S as a,U as B,aK as F,aT as C,a_ as o,bO as r,aI as O,aS as v,bz as z,av as _,bi as f}from"./antd-Afm2kNt7.js";import{s as j}from"./strategy-api-z9cMxeja.js";import{g as K}from"./sort-BOdE-yay.js";import{u as S,h as q}from"./index-DQXwuKC5.js";import{N as k}from"./NButton-DoPcvKBF.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";const A=j,M=({open:n,handleOk:s,handleCancel:g,confirmLoading:d,id:i})=>{const l=h.useRef(null);let{t:e}=S();const m=async()=>i?await A.getById(i):{};return a.jsx(B,{title:e(i?"actions.edit":"actions.new"),open:n,maskClosable:!1,destroyOnHidden:!0,onOk:()=>{l.current?.validateFields().then(async p=>{s(p)})},onCancel:()=>{g()},confirmLoading:d,children:a.jsxs(F,{formRef:l,request:m,submitter:!1,children:[a.jsx(C,{hidden:!0,name:"id"}),a.jsx(C,{name:"name",label:e("general.name")}),a.jsxs(o,{direction:"vertical",children:[a.jsxs(o,{children:[a.jsx(r,{name:"upload",label:e("general.upload"),checkedChildren:e("general.enabled"),unCheckedChildren:e("general.disabled")}),a.jsx(r,{name:"download",label:e("authorised.strategy.download"),checkedChildren:e("general.enabled"),unCheckedChildren:e("general.disabled")})]}),a.jsxs(o,{children:[a.jsx(r,{name:"createDir",label:e("authorised.strategy.create_dir"),checkedChildren:e("general.enabled"),unCheckedChildren:e("general.disabled")}),a.jsx(r,{name:"createFile",label:e("authorised.strategy.create_file"),checkedChildren:e("general.enabled"),unCheckedChildren:e("general.disabled")})]}),a.jsxs(o,{children:[a.jsx(r,{name:"edit",label:e("actions.edit"),checkedChildren:e("general.enabled"),unCheckedChildren:e("general.disabled")}),a.jsx(r,{name:"delete",label:e("actions.delete"),checkedChildren:e("general.enabled"),unCheckedChildren:e("general.disabled")}),a.jsx(r,{name:"rename",label:e("authorised.strategy.rename"),checkedChildren:e("general.enabled"),unCheckedChildren:e("general.disabled")})]}),a.jsxs(o,{children:[a.jsx(r,{name:"copy",label:e("actions.copy"),checkedChildren:e("general.enabled"),unCheckedChildren:e("general.disabled")}),a.jsx(r,{name:"paste",label:e("authorised.strategy.paste"),checkedChildren:e("general.enabled"),unCheckedChildren:e("general.disabled")})]})]})]})})},u=j,G=()=>{const{t:n}=S(),s=h.useRef(null);let[g,d]=h.useState(!1),[i,l]=h.useState();const e=t=>t===!0?a.jsx(f,{color:"green",bordered:!1,children:n("general.enabled")}):a.jsx(f,{color:"red",bordered:!1,children:n("general.disabled")}),{message:m}=O.useApp();let x=q({mutationFn:async t=>{t.id?await u.updateById(t.id,t):await u.create(t)},onSuccess:()=>{s.current?.reload(),d(!1),l(void 0),I()}});function I(){m.open({type:"success",content:n("general.success")})}const w=[{dataIndex:"index",valueType:"indexBorder",width:48},{title:n("general.name"),dataIndex:"name",key:"name",sorter:!0},{title:n("general.upload"),dataIndex:"upload",key:"upload",hideInSearch:!0,render:t=>e(t)},{title:n("authorised.strategy.download"),dataIndex:"download",key:"download",hideInSearch:!0,render:t=>e(t)},{title:n("actions.edit"),dataIndex:"edit",key:"edit",hideInSearch:!0,render:t=>e(t)},{title:n("actions.delete"),dataIndex:"delete",key:"delete",hideInSearch:!0,render:t=>e(t)},{title:n("authorised.strategy.rename"),dataIndex:"rename",key:"rename",hideInSearch:!0,render:t=>e(t)},{title:n("actions.copy"),dataIndex:"copy",key:"copy",hideInSearch:!0,render:t=>e(t)},{title:n("authorised.strategy.paste"),dataIndex:"paste",key:"paste",hideInSearch:!0,render:t=>e(t)},{title:n("actions.label"),valueType:"option",key:"option",render:(t,c,P,y)=>[a.jsx(k,{onClick:()=>{d(!0),l(c.id)},children:n("actions.edit")},"edit"),a.jsx(v,{title:n("general.confirm_delete"),onConfirm:async()=>{await u.deleteById(c.id),s.current?.reload()},children:a.jsx(k,{danger:!0,children:n("actions.delete")},"delete")},"delete-confirm")]}];return a.jsxs("div",{children:[a.jsx(z,{columns:w,actionRef:s,request:async(t={},c,P)=>{let[y,R]=K(c),T={pageIndex:t.current,pageSize:t.pageSize,order:y,field:R,name:t.name},b=await u.getPaging(T);return{data:b.items,success:!0,total:b.total}},rowKey:"id",search:{labelWidth:"auto"},pagination:{defaultPageSize:10,showSizeChanger:!0},dateFormatter:"string",headerTitle:n("menus.authorised.submenus.strategy"),toolBarRender:()=>[a.jsx(_,{type:"primary",onClick:()=>{d(!0)},children:n("actions.new")},"button")]}),a.jsx(M,{id:i,open:g,confirmLoading:x.isPending,handleCancel:()=>{d(!1),l(void 0)},handleOk:x.mutate})]})};export{G as default}; diff --git a/server/resource/build/assets/SystemMonitorPage-Lnutq0Ew.js b/server/resource/build/assets/SystemMonitorPage-Lnutq0Ew.js deleted file mode 100644 index b74913ccc..000000000 --- a/server/resource/build/assets/SystemMonitorPage-Lnutq0Ew.js +++ /dev/null @@ -1 +0,0 @@ -import{S as t}from"./antd-Afm2kNt7.js";import{u as r}from"./index-DQXwuKC5.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";const p=()=>{const{t:o}=r();return t.jsx("div",{children:t.jsx("div",{style:{paddingLeft:24},children:o("sysops.monitoring.todo")})})};export{p as default}; diff --git a/server/resource/build/assets/TerminalMonitor-BGHFY2w9.js b/server/resource/build/assets/TerminalMonitor-BGHFY2w9.js deleted file mode 100644 index 50a500b6d..000000000 --- a/server/resource/build/assets/TerminalMonitor-BGHFY2w9.js +++ /dev/null @@ -1 +0,0 @@ -import{f as b,S as x}from"./antd-Afm2kNt7.js";import{b as h,o as m,Z as y,_ as T,I as E,m as S,q as $,$ as A,a0 as I,a1 as M}from"./index-DQXwuKC5.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";const j=()=>{const[n]=h();let p=m(n.get("sessionId"),""),a=m(n.get("token"),"");const r=(e,s)=>{e.writeln(`\x1B[1;3;31m${s}\x1B[0m `)},f=(e,s)=>{let i=document.getElementById("terminal");if(!i)return;e.open(i);let l=new T.FitAddon;e.loadAddon(l),l.fit(),e.focus(),e.writeln("trying to connect to the server ...");let u=e.cols,w=e.rows,c=E();S.hasText(a)&&(c=a);let g={cols:u,rows:w,"X-Auth-Token":c,sessionId:s},k=$.stringify(g),o=new WebSocket(`${A()}/admin/sessions/${s}/terminal-monitor?${k}`);return o.onopen=(t=>{e.clear()}),o.onerror=t=>{r(e,"websocket error")},o.onclose=t=>{r(e,"connection is closed.")},o.onmessage=t=>{let d=I.parse(t.data);d.type===M&&e.write(d.content)},o};return b.useEffect(()=>{let e=new y.Terminal({fontFamily:'monaco, Consolas, "Lucida Console", monospace',fontSize:15,theme:{background:"#141414"}}),s=f(e,p);return()=>{e.dispose(),s&&s.close(3886,"client quit")}},[]),x.jsx("div",{id:"terminal",style:{overflow:"hidden",padding:8,backgroundColor:"#141414"},className:"h-screen w-screen"})};export{j as default}; diff --git a/server/resource/build/assets/TerminalPlayback-C0uHH8VC.css b/server/resource/build/assets/TerminalPlayback-C0uHH8VC.css deleted file mode 100644 index 315e10b5b..000000000 --- a/server/resource/build/assets/TerminalPlayback-C0uHH8VC.css +++ /dev/null @@ -1 +0,0 @@ -.ap-default-term-ff{--term-font-family: "Cascadia Code", "Source Code Pro", Menlo, Consolas, "DejaVu Sans Mono", monospace, "Symbols Nerd Font"}div.ap-wrapper{outline:none;height:100%;display:flex;justify-content:center}div.ap-wrapper .title-bar{display:none;top:-78px;transition:top .15s linear;position:absolute;left:0;right:0;box-sizing:content-box;font-size:20px;line-height:1em;padding:15px;font-family:sans-serif;color:#fff;background-color:#000c}div.ap-wrapper .title-bar img{vertical-align:middle;height:48px;margin-right:16px}div.ap-wrapper .title-bar a{color:#fff;text-decoration:underline}div.ap-wrapper .title-bar a:hover{text-decoration:none}div.ap-wrapper:fullscreen{background-color:#000;width:100%;align-items:center}div.ap-wrapper:fullscreen .title-bar{display:initial}div.ap-wrapper:fullscreen.hud .title-bar{top:0}div.ap-wrapper div.ap-player{text-align:left;display:inline-block;padding:0;position:relative;box-sizing:content-box;overflow:hidden;max-width:100%;border-radius:4px;font-size:15px;background-color:var(--term-color-background)}.ap-player{--term-color-foreground: #ffffff;--term-color-background: #000000;--term-color-0: var(--term-color-foreground);--term-color-1: var(--term-color-foreground);--term-color-2: var(--term-color-foreground);--term-color-3: var(--term-color-foreground);--term-color-4: var(--term-color-foreground);--term-color-5: var(--term-color-foreground);--term-color-6: var(--term-color-foreground);--term-color-7: var(--term-color-foreground);--term-color-8: var(--term-color-0);--term-color-9: var(--term-color-1);--term-color-10: var(--term-color-2);--term-color-11: var(--term-color-3);--term-color-12: var(--term-color-4);--term-color-13: var(--term-color-5);--term-color-14: var(--term-color-6);--term-color-15: var(--term-color-7)}div.ap-term{position:relative;font-family:var(--term-font-family);border-width:.75em;border-radius:0;border-style:solid;border-color:var(--term-color-background);box-sizing:content-box}div.ap-term canvas{position:absolute;inset:0;display:block;width:100%;height:100%}div.ap-term svg.ap-term-symbols{position:absolute;inset:0;display:block;width:100%;height:100%;overflow:hidden;pointer-events:none}div.ap-term svg.ap-term-symbols use{color:var(--term-color-foreground)}div.ap-term svg.ap-term-symbols:not(.ap-blink) .ap-blink{opacity:0}div.ap-term pre.ap-term-text{position:absolute;inset:0;box-sizing:content-box;overflow:hidden;padding:0;margin:0;display:block;white-space:pre;word-wrap:normal;word-break:normal;cursor:text;color:var(--term-color-foreground);outline:none;line-height:var(--term-line-height);font-family:inherit;font-size:inherit;font-variant-ligatures:none;border:0;border-radius:0;background-color:transparent!important}pre.ap-term-text .ap-line{display:block;width:100%;height:var(--term-line-height);position:absolute;top:calc(100% * var(--row) / var(--term-rows));letter-spacing:normal;overflow:hidden}pre.ap-term-text .ap-line span{position:absolute;left:calc(100% * var(--offset) / var(--term-cols));padding:0;display:inline-block;height:100%}pre.ap-term-text:not(.ap-blink) .ap-line .ap-blink{color:transparent;border-color:transparent}pre.ap-term-text .ap-bold{font-weight:700}pre.ap-term-text .ap-faint{opacity:.5}pre.ap-term-text .ap-underline{text-decoration:underline}pre.ap-term-text .ap-italic{font-style:italic}pre.ap-term-text .ap-strike{text-decoration:line-through}.ap-line span{color:var(--term-color-foreground)}div.ap-player div.ap-control-bar{width:100%;height:32px;display:flex;justify-content:space-between;align-items:stretch;color:var(--term-color-foreground);box-sizing:content-box;line-height:1;position:absolute;bottom:0;left:0;opacity:0;transition:opacity .15s linear;user-select:none;border-top:2px solid color-mix(in oklab,var(--term-color-background) 80%,var(--term-color-foreground));z-index:30}div.ap-player div.ap-control-bar *{box-sizing:inherit}div.ap-control-bar svg.ap-icon path{fill:var(--term-color-foreground)}div.ap-control-bar span.ap-button{display:flex;flex:0 0 auto;cursor:pointer}div.ap-control-bar span.ap-playback-button{width:12px;height:12px;padding:10px;margin:0 0 0 2px}div.ap-control-bar span.ap-playback-button svg{height:12px;width:12px}div.ap-control-bar span.ap-timer{display:flex;flex:0 0 auto;min-width:50px;margin:0 10px;height:100%;text-align:center;font-size:13px;line-height:100%;cursor:default}div.ap-control-bar span.ap-timer span{font-family:var(--term-font-family);font-size:inherit;font-weight:600;margin:auto}div.ap-control-bar span.ap-timer .ap-time-remaining,div.ap-control-bar span.ap-timer:hover .ap-time-elapsed{display:none}div.ap-control-bar span.ap-timer:hover .ap-time-remaining{display:flex}div.ap-control-bar .ap-progressbar{display:block;flex:1 1 auto;height:100%;padding:0 10px}div.ap-control-bar .ap-progressbar .ap-bar{display:block;position:relative;cursor:default;height:100%;font-size:0}div.ap-control-bar .ap-progressbar .ap-bar .ap-gutter{display:block;position:absolute;top:15px;left:0;right:0;height:3px}div.ap-control-bar .ap-progressbar .ap-bar .ap-gutter-empty{background-color:color-mix(in oklab,var(--term-color-foreground) 20%,var(--term-color-background))}div.ap-control-bar .ap-progressbar .ap-bar .ap-gutter-full{width:100%;transform-origin:left center;background-color:var(--term-color-foreground);border-radius:3px}div.ap-control-bar.ap-seekable .ap-progressbar .ap-bar{cursor:pointer}div.ap-control-bar .ap-fullscreen-button{width:14px;height:14px;padding:9px;margin:0 2px 0 4px}div.ap-control-bar .ap-fullscreen-button svg{width:14px;height:14px}div.ap-control-bar .ap-fullscreen-button svg.ap-icon-fullscreen-on{display:inline}div.ap-control-bar .ap-fullscreen-button svg.ap-icon-fullscreen-off{display:none}div.ap-control-bar .ap-fullscreen-button .ap-tooltip{right:5px;left:initial;transform:none}div.ap-control-bar .ap-kbd-button{height:14px;padding:9px;margin:0 0 0 4px}div.ap-control-bar .ap-kbd-button svg{width:26px;height:14px}div.ap-control-bar .ap-kbd-button .ap-tooltip{right:5px;left:initial;transform:none}div.ap-control-bar .ap-speaker-button{width:19px;padding:6px 9px;margin:0 0 0 4px;position:relative}div.ap-control-bar .ap-speaker-button svg{width:19px}div.ap-control-bar .ap-speaker-button .ap-tooltip{left:-50%;transform:none}div.ap-wrapper.ap-hud .ap-control-bar{opacity:1}div.ap-wrapper:fullscreen .ap-fullscreen-button svg.ap-icon-fullscreen-on{display:none}div.ap-wrapper:fullscreen .ap-fullscreen-button svg.ap-icon-fullscreen-off{display:inline}span.ap-progressbar span.ap-marker-container{display:block;top:0;bottom:0;width:21px;position:absolute;margin-left:-10px}span.ap-marker-container span.ap-marker{display:block;inset:13px 7px 12px;background-color:color-mix(in oklab,var(--term-color-foreground) 33%,var(--term-color-background));position:absolute;transition:top .1s,bottom .1s,left .1s,right .1s,background-color .1s;border-radius:50%}span.ap-marker-container span.ap-marker.ap-marker-past{background-color:var(--term-color-foreground)}span.ap-marker-container span.ap-marker:hover,span.ap-marker-container:hover span.ap-marker{background-color:var(--term-color-foreground);inset:11px 5px 10px}.ap-tooltip-container span.ap-tooltip{visibility:hidden;background-color:var(--term-color-foreground);color:var(--term-color-background);font-family:var(--term-font-family);font-weight:700;text-align:center;padding:0 .5em;border-radius:4px;position:absolute;z-index:1;white-space:nowrap;font-size:13px;line-height:2em;bottom:100%;left:50%;transform:translate(-50%)}.ap-tooltip-container:hover span.ap-tooltip{visibility:visible}.ap-player .ap-overlay{z-index:10;background-repeat:no-repeat;background-position:center;position:absolute;inset:0;display:flex;justify-content:center;align-items:center}.ap-player .ap-overlay-start{cursor:pointer}.ap-player .ap-overlay-start .ap-play-button{font-size:0px;position:absolute;inset:0;text-align:center;color:#fff;height:80px;max-height:66%;margin:auto}.ap-player .ap-overlay-start .ap-play-button div{height:100%}.ap-player .ap-overlay-start .ap-play-button div span{height:100%;display:block}.ap-player .ap-overlay-start .ap-play-button div span svg{height:100%;display:inline-block}.ap-player .ap-overlay-start .ap-play-button svg{filter:drop-shadow(0px 0px 5px rgba(0,0,0,.4))}.ap-player .ap-overlay-loading .ap-loader{width:48px;height:48px;border-radius:50%;display:inline-block;position:relative;border:10px solid;border-color:rgba(255,255,255,.3) rgba(255,255,255,.5) rgba(255,255,255,.7) #ffffff;border-color:color-mix(in srgb,var(--term-color-foreground) 30%,var(--term-color-background)) color-mix(in srgb,var(--term-color-foreground) 50%,var(--term-color-background)) color-mix(in srgb,var(--term-color-foreground) 70%,var(--term-color-background)) color-mix(in srgb,var(--term-color-foreground) 100%,var(--term-color-background));box-sizing:border-box;animation:ap-loader-rotation 1s linear infinite}.ap-player .ap-overlay-info{background-color:var(--term-color-background)}.ap-player .ap-overlay-info span{font-family:var(--term-font-family);font-size:2em;font-weight:700;color:var(--term-color-background);background-color:var(--term-color-foreground);padding:.5em .75em;text-transform:uppercase}.ap-player .ap-overlay-help{background-color:#000c;container-type:inline-size}.ap-player .ap-overlay-help>div{font-family:var(--term-font-family);max-width:85%;max-height:85%;font-size:18px;color:var(--term-color-foreground);box-sizing:border-box;margin-bottom:32px}.ap-player .ap-overlay-help>div div{padding:min(4cqw,40px);font-size:min(1.9cqw,18px);background-color:var(--term-color-background);border:1px solid color-mix(in oklab,var(--term-color-background) 90%,var(--term-color-foreground));border-radius:6px}.ap-player .ap-overlay-help>div div p{font-weight:700;margin:0 0 2em}.ap-player .ap-overlay-help>div div ul{list-style:none;padding:0}.ap-player .ap-overlay-help>div div ul li{margin:0 0 .75em}.ap-player .ap-overlay-help>div div kbd{color:var(--term-color-background);background-color:var(--term-color-foreground);padding:.2em .5em;border-radius:.2em;font-family:inherit;font-size:.85em;border:none;margin:0}.ap-player .ap-overlay-error span{font-size:8em}.ap-player .slide-enter-active{transition:opacity .2s}.ap-player .slide-enter-active.ap-was-playing{transition:top .2s ease-out,opacity .2s}.ap-player .slide-exit-active{transition:top .2s ease-in,opacity .2s}.ap-player .slide-enter{top:-50%;opacity:0}.ap-player .slide-enter-to{top:0%}.ap-player .slide-enter,.ap-player .slide-enter-to,.ap-player .slide-exit,.ap-player .slide-exit-to{bottom:auto;height:100%}.ap-player .slide-exit{top:0%}.ap-player .slide-exit-to{top:-50%;opacity:0}@keyframes ap-loader-rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.asciinema-player-theme-asciinema{--term-color-foreground: #cccccc;--term-color-background: #121314;--term-color-0: #000000;--term-color-1: #dd3c69;--term-color-2: #4ebf22;--term-color-3: #ddaf3c;--term-color-4: #26b0d7;--term-color-5: #b954e1;--term-color-6: #54e1b9;--term-color-7: #d9d9d9;--term-color-8: #4d4d4d;--term-color-9: #dd3c69;--term-color-10: #4ebf22;--term-color-11: #ddaf3c;--term-color-12: #26b0d7;--term-color-13: #b954e1;--term-color-14: #54e1b9;--term-color-15: #ffffff}.asciinema-player-theme-dracula{--term-color-foreground: #f8f8f2;--term-color-background: #282a36;--term-color-0: #21222c;--term-color-1: #ff5555;--term-color-2: #50fa7b;--term-color-3: #f1fa8c;--term-color-4: #bd93f9;--term-color-5: #ff79c6;--term-color-6: #8be9fd;--term-color-7: #f8f8f2;--term-color-8: #6272a4;--term-color-9: #ff6e6e;--term-color-10: #69ff94;--term-color-11: #ffffa5;--term-color-12: #d6acff;--term-color-13: #ff92df;--term-color-14: #a4ffff;--term-color-15: #ffffff}.asciinema-player-theme-monokai{--term-color-foreground: #f8f8f2;--term-color-background: #272822;--term-color-0: #272822;--term-color-1: #f92672;--term-color-2: #a6e22e;--term-color-3: #f4bf75;--term-color-4: #66d9ef;--term-color-5: #ae81ff;--term-color-6: #a1efe4;--term-color-7: #f8f8f2;--term-color-8: #75715e;--term-color-15: #f9f8f5}.asciinema-player-theme-nord{--term-color-foreground: #eceff4;--term-color-background: #2e3440;--term-color-0: #3b4252;--term-color-1: #bf616a;--term-color-2: #a3be8c;--term-color-3: #ebcb8b;--term-color-4: #81a1c1;--term-color-5: #b48ead;--term-color-6: #88c0d0;--term-color-7: #eceff4}.asciinema-player-theme-seti{--term-color-foreground: #cacecd;--term-color-background: #111213;--term-color-0: #323232;--term-color-1: #c22832;--term-color-2: #8ec43d;--term-color-3: #e0c64f;--term-color-4: #43a5d5;--term-color-5: #8b57b5;--term-color-6: #8ec43d;--term-color-7: #eeeeee;--term-color-15: #ffffff}.asciinema-player-theme-solarized-dark{--term-color-foreground: #839496;--term-color-background: #002b36;--term-color-0: #073642;--term-color-1: #dc322f;--term-color-2: #859900;--term-color-3: #b58900;--term-color-4: #268bd2;--term-color-5: #d33682;--term-color-6: #2aa198;--term-color-7: #eee8d5;--term-color-8: #002b36;--term-color-9: #cb4b16;--term-color-10: #586e75;--term-color-11: #657b83;--term-color-12: #839496;--term-color-13: #6c71c4;--term-color-14: #93a1a1;--term-color-15: #fdf6e3}.asciinema-player-theme-solarized-light{--term-color-foreground: #657b83;--term-color-background: #fdf6e3;--term-color-0: #073642;--term-color-1: #dc322f;--term-color-2: #859900;--term-color-3: #b58900;--term-color-4: #268bd2;--term-color-5: #d33682;--term-color-6: #2aa198;--term-color-7: #eee8d5;--term-color-8: #002b36;--term-color-9: #cb4b16;--term-color-10: #586e75;--term-color-11: #657c83;--term-color-12: #839496;--term-color-13: #6c71c4;--term-color-14: #93a1a1;--term-color-15: #fdf6e3}.asciinema-player-theme-solarized-light .ap-overlay-start .ap-play-button svg .ap-play-btn-fill{fill:var(--term-color-1)}.asciinema-player-theme-solarized-light .ap-overlay-start .ap-play-button svg .ap-play-btn-stroke{stroke:var(--term-color-1)}.asciinema-player-theme-tango{--term-color-foreground: #cccccc;--term-color-background: #121314;--term-color-0: #000000;--term-color-1: #cc0000;--term-color-2: #4e9a06;--term-color-3: #c4a000;--term-color-4: #3465a4;--term-color-5: #75507b;--term-color-6: #06989a;--term-color-7: #d3d7cf;--term-color-8: #555753;--term-color-9: #ef2929;--term-color-10: #8ae234;--term-color-11: #fce94f;--term-color-12: #729fcf;--term-color-13: #ad7fa8;--term-color-14: #34e2e2;--term-color-15: #eeeeec}.asciinema-player-theme-gruvbox-dark{--term-color-foreground: #fbf1c7;--term-color-background: #282828;--term-color-0: #282828;--term-color-1: #cc241d;--term-color-2: #98971a;--term-color-3: #d79921;--term-color-4: #458588;--term-color-5: #b16286;--term-color-6: #689d6a;--term-color-7: #a89984;--term-color-8: #7c6f65;--term-color-9: #fb4934;--term-color-10: #b8bb26;--term-color-11: #fabd2f;--term-color-12: #83a598;--term-color-13: #d3869b;--term-color-14: #8ec07c;--term-color-15: #fbf1c7}.ap-wrapper{display:flex;align-items:center;justify-content:center}#player .ap-wrapper,#player .ap-player{width:100%;height:100%} diff --git a/server/resource/build/assets/TerminalPlayback-CwU1DI7U.js b/server/resource/build/assets/TerminalPlayback-CwU1DI7U.js deleted file mode 100644 index 17cdede9c..000000000 --- a/server/resource/build/assets/TerminalPlayback-CwU1DI7U.js +++ /dev/null @@ -1,7 +0,0 @@ -import{f as _A,S as wA,bp as wg,bN as hg,av as Dg,aH as yg,T as kg,aG as mg,au as qg,b4 as pg}from"./antd-Afm2kNt7.js";import{v as Lg,A as Fg,u as Mg,b as Rg,o as dt,I as bg,m as Ng,e as wt,Y as Gg,H as Ug}from"./index-DQXwuKC5.js";import{s as Sg}from"./session-api-mmDQqQeA.js";import{t as We}from"./times-CQ9ir0Jv.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";const Jg=[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]],Yg=Lg("square-terminal",Jg);function ht(A){return typeof A=="number"?A:typeof A=="string"?A.split(":").reverse().map(parseFloat).reduce((t,e,g)=>t+e*Math.pow(60,g)):void 0}function vg(A,t){let e;return function(){for(var g=arguments.length,V=new Array(g),n=0;nA.apply(this,V),t)}}function Tg(A,t){let e=!0;return function(){if(e){e=!1;for(var g=arguments.length,V=new Array(g),n=0;ne=!0,t)}}}const Kg=/^#[0-9a-f]{6}$/,Og=/^#[0-9a-f]{3}$/;function re(A){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0;if(typeof A!="string")return t;const e=A.trim().toLowerCase();return Kg.test(e)?e:Og.test(e)?`#${e[1]}${e[1]}${e[2]}${e[2]}${e[3]}${e[3]}`:t}function KA(A,t,e){return[t[0]+A*(e[0]-t[0]),t[1]+A*(e[1]-t[1]),t[2]+A*(e[2]-t[2])]}function OA(A){const[t,e,g]=Zg(A).map(Wg),V=.4122214708*t+.5363325363*e+.0514459929*g,n=.2119034982*t+.6806995451*e+.1073969566*g,r=.0883024619*t+.2817188376*e+.6299787005*g,o=Math.cbrt(V),i=Math.cbrt(n),s=Math.cbrt(r);return[.2104542553*o+.793617785*i-.0040720468*s,1.9779984951*o-2.428592205*i+.4505937099*s,.0259040371*o+.7827717662*i-.808675766*s]}function Dt(A){const t=xe(A);if(mt(t))return kt(t);const[e,g,V]=Hg(A);let n=0,r=g,o=[e,0,V];for(let i=0;i<24;i+=1){const s=(n+r)/2,E=[e,s,V],B=xe(yt(E));mt(B)?(n=s,o=E):r=s}return kt(xe(yt(o)))}function xe(A){const t=xt(A[0],0,1),e=A[1],g=A[2],V=t+.3963377774*e+.2158037573*g,n=t-.1055613458*e-.0638541728*g,r=t-.0894841775*e-1.291485548*g,o=V**3,i=n**3,s=r**3,E=4.0767416621*o-3.3077115913*i+.2309699292*s,B=-1.2684380046*o+2.6097574011*i-.3413193965*s,l=-.0041960863*o-.7034186147*i+1.707614701*s;return[$e(E),$e(B),$e(l)]}function Hg(A){let[t,e,g]=A;return[t,Math.hypot(e,g),Math.atan2(g,e)]}function yt(A){let[t,e,g]=A;return[t,e*Math.cos(g),e*Math.sin(g)]}function Zg(A){return[Number.parseInt(A.slice(1,3),16)/255,Number.parseInt(A.slice(3,5),16)/255,Number.parseInt(A.slice(5,7),16)/255]}function kt(A){const t=e=>Math.round(xt(e,0,1)*255).toString(16).padStart(2,"0");return`#${t(A[0])}${t(A[1])}${t(A[2])}`}function Wg(A){return A<=.04045?A/12.92:((A+.055)/1.055)**2.4}function $e(A){return A<=.0031308?A*12.92:1.055*A**(1/2.4)-.055}function mt(A){let[t,e,g]=A;return t>=0&&t<=1&&e>=0&&e<=1&&g>=0&&g<=1}function xt(A,t,e){return Math.max(t,Math.min(e,A))}class xg{log(){}debug(){}info(){}warn(){}error(){}}class $t{constructor(t,e){this.logger=t,this.prefix=e}log(t){for(var e=arguments.length,g=new Array(e>1?e-1:0),V=1;V1?e-1:0),V=1;V1?e-1:0),V=1;V1?e-1:0),V=1;V1?e-1:0),V=1;V0?`Function(${V})`:"Function"}if(Array.isArray(A)){const V=A.length;let n="[";V>0&&(n+=Vt(A[0]));for(let r=1;r1)g=e[1];else return toString.call(A);if(g=="Object")try{return"Object("+JSON.stringify(A)+")"}catch{return"Object"}return A instanceof Error?`${A.name}: ${A.message} -${A.stack}`:g}function $g(A){A<132||(bA[A]=ue,ue=A)}function _g(A,t){return A=A>>>0,zg().subarray(A/4,A/4+t)}let zA=null;function Me(){return(zA===null||zA.buffer.detached===!0||zA.buffer.detached===void 0&&zA.buffer!==j.memory.buffer)&&(zA=new DataView(j.memory.buffer)),zA}function qt(A,t){return A=A>>>0,jg(A,t)}let ae=null;function zg(){return(ae===null||ae.byteLength===0)&&(ae=new Uint32Array(j.memory.buffer)),ae}let le=null;function qe(){return(le===null||le.byteLength===0)&&(le=new Uint8Array(j.memory.buffer)),le}function ce(A){return bA[A]}let bA=new Array(128).fill(void 0);bA.push(void 0,null,!0,!1);let ue=bA.length;function _t(A,t,e){if(e===void 0){const o=de.encode(A),i=t(o.length,1)>>>0;return qe().subarray(i,i+o.length).set(o),Re=o.length,i}let g=A.length,V=t(g,1)>>>0;const n=qe();let r=0;for(;r127)break;n[V+r]=o}if(r!==g){r!==0&&(A=A.slice(r)),V=e(V,g,g=r+A.length*3,1)>>>0;const o=qe().subarray(V+r,V+g),i=de.encodeInto(A,o);r+=i.written,V=e(V,g,r,1)>>>0}return Re=r,V}function HA(A){const t=ce(A);return $g(A),t}let pe=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});pe.decode();const Xg=2146435072;let _e=0;function jg(A,t){return _e+=t,_e>=Xg&&(pe=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),pe.decode(),_e=t),pe.decode(qe().subarray(A,A+t))}const de=new TextEncoder;"encodeInto"in de||(de.encodeInto=function(A,t){const e=de.encode(A);return t.set(e),{read:A.length,written:e.length}});let Re=0;const pt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(A=>j.__wbg_vt_free(A>>>0,1));class Ie{static __wrap(t){t=t>>>0;const e=Object.create(Ie.prototype);return e.__wbg_ptr=t,pt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,pt.unregister(this),t}free(){const t=this.__destroy_into_raw();j.__wbg_vt_free(t,0)}feed(t){const e=_t(t,j.__wbindgen_export,j.__wbindgen_export2),g=Re,V=j.vt_feed(this.__wbg_ptr,e,g);return HA(V)}resize(t,e){const g=j.vt_resize(this.__wbg_ptr,t,e);return HA(g)}getSize(){try{const V=j.__wbindgen_add_to_stack_pointer(-16);j.vt_getSize(V,this.__wbg_ptr);var t=Me().getInt32(V+0,!0),e=Me().getInt32(V+4,!0),g=_g(t,e).slice();return j.__wbindgen_export3(t,e*4,4),g}finally{j.__wbindgen_add_to_stack_pointer(16)}}getLine(t,e){const g=j.vt_getLine(this.__wbg_ptr,t,e);return HA(g)}getCursor(){const t=j.vt_getCursor(this.__wbg_ptr);return HA(t)}}Symbol.dispose&&(Ie.prototype[Symbol.dispose]=Ie.prototype.free);function Pg(A,t,e,g){const V=j.create(A,t,e,g);return Ie.__wrap(V)}const AV=new Set(["basic","cors","default"]);async function eV(A,t){if(typeof Response=="function"&&A instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(A,t)}catch(g){if(A.ok&&AV.has(A.type)&&A.headers.get("Content-Type")!=="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",g);else throw g}const e=await A.arrayBuffer();return await WebAssembly.instantiate(e,t)}else{const e=await WebAssembly.instantiate(A,t);return e instanceof WebAssembly.Instance?{instance:e,module:A}:e}}function zt(){const A={};return A.wbg={},A.wbg.__wbg___wbindgen_debug_string_adfb662ae34724b6=function(t,e){const g=Vt(ce(e)),V=_t(g,j.__wbindgen_export,j.__wbindgen_export2),n=Re;Me().setInt32(t+4,n,!0),Me().setInt32(t+0,V,!0)},A.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e=function(t,e){throw new Error(qt(t,e))},A.wbg.__wbg_new_13317ed16189158e=function(){const t=new Array;return ne(t)},A.wbg.__wbg_new_4ceb6a766bf78b04=function(){const t=new Object;return ne(t)},A.wbg.__wbg_set_3f1d0b984ed272ed=function(t,e,g){ce(t)[HA(e)]=HA(g)},A.wbg.__wbg_set_8b6a9a61e98a8881=function(t,e,g){ce(t)[e>>>0]=HA(g)},A.wbg.__wbindgen_cast_2241b6af4c4b2941=function(t,e){const g=qt(t,e);return ne(g)},A.wbg.__wbindgen_cast_4625c577ab2ec9ee=function(t){const e=BigInt.asUintN(64,t);return ne(e)},A.wbg.__wbindgen_cast_d6cd19b81560fd6e=function(t){return ne(t)},A.wbg.__wbindgen_object_clone_ref=function(t){const e=ce(t);return ne(e)},A.wbg.__wbindgen_object_drop_ref=function(t){HA(t)},A}function Xt(A,t){return j=A.exports,Et.__wbindgen_wasm_module=t,zA=null,ae=null,le=null,j}function tV(A){if(j!==void 0)return j;typeof A<"u"&&(Object.getPrototypeOf(A)===Object.prototype?{module:A}=A:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));const t=zt();A instanceof WebAssembly.Module||(A=new WebAssembly.Module(A));const e=new WebAssembly.Instance(A,t);return Xt(e,A)}async function Et(A){if(j!==void 0)return j;typeof A<"u"&&(Object.getPrototypeOf(A)===Object.prototype?{module_or_path:A}=A:console.warn("using deprecated parameters for the initialization function; pass a single object instead"));const t=zt();(typeof A=="string"||typeof Request=="function"&&A instanceof Request||typeof URL=="function"&&A instanceof URL)&&(A=fetch(A));const{instance:e,module:g}=await eV(await A,t);return Xt(e,g)}var gV=Object.freeze({__proto__:null,Vt:Ie,create:Pg,default:Et,initSync:tV});const VV=[62,0,0,0,63,52,53,54,55,56,57,58,59,60,61,0,0,0,0,0,0,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,0,0,0,0,0,0,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51];function ke(A){return VV[A-43]}function nV(A){let t=A.endsWith("==")?2:A.endsWith("=")?1:0,e=A.length,g=new Uint8Array(3*(e/4)),V;for(let n=0,r=0;n>16,g[r+1]=V>>8&255,g[r+2]=V&255;return g.subarray(0,g.length-t)}var iV=nV("AGFzbQEAAAABnAEXYAJ/fwBgA39/fwBgAn9/AX9gA39/fwF/YAF/AGABfwF/YAR/f39/AGAFf39/f38AYAR/f39/AX9gBn9/f39/fwBgBX9/f39/AX9gAAF/YAZ/f39/f38Bf2ABfAF/YAF+AX9gB39/f39/f38AYAN/f34Bf2AEf39/fgBgA39+fwBgBX9/fH9/AGAFf39+f38AYAV/f31/fwBgAAACoAMLA3diZxpfX3diZ19uZXdfMTMzMTdlZDE2MTg5MTU4ZQALA3diZxpfX3diZ19zZXRfOGI2YTlhNjFlOThhODg4MQABA3diZy5fX3diZ19fX3diaW5kZ2VuX2RlYnVnX3N0cmluZ19hZGZiNjYyYWUzNDcyNGI2AAADd2JnGl9fd2JpbmRnZW5fb2JqZWN0X2Ryb3BfcmVmAAQDd2JnG19fd2JpbmRnZW5fb2JqZWN0X2Nsb25lX3JlZgAFA3diZxpfX3diZ19zZXRfM2YxZDBiOTg0ZWQyNzJlZAABA3diZxpfX3diZ19uZXdfNGNlYjZhNzY2YmY3OGIwNAALA3diZydfX3diZ19fX3diaW5kZ2VuX3Rocm93X2RkMjQ0MTdlZDM2ZmM0NmUAAAN3YmcgX193YmluZGdlbl9jYXN0XzIyNDFiNmFmNGM0YjI5NDEAAgN3YmcgX193YmluZGdlbl9jYXN0X2Q2Y2QxOWI4MTU2MGZkNmUADQN3YmcgX193YmluZGdlbl9jYXN0XzQ2MjVjNTc3YWIyZWM5ZWUADgO7AbkBAwADAQMABAEKAgEDAwMBCA8KBwMJBwAJAQABCQcBAQYBBAEGBQIGAAMCAgcDAQABCQYGAAEEAQAAEAIGBAAFAQEBAAUMBQIABgAAAAEEBQUBBAEAAAcAAwERBAAHAgABAAkHBAQAAQAAAAAGAggCEgECBAgHAQcIAAAAAAABBAAEAQAAAAgBCAwHEwoUFQUGAgQDBAYEBAAAAgIBAQQEBAECAgAAAAIAAQEBBAUWAAIABAAABAIFAgUEBQFwASsrBQMBABEGCQF/AUGAgMAACwfFAQwGbWVtb3J5AgANX193YmdfdnRfZnJlZQA+BmNyZWF0ZQAaB3Z0X2ZlZWQACwl2dF9yZXNpemUAMwp2dF9nZXRTaXplAGYKdnRfZ2V0TGluZQANDHZ0X2dldEN1cnNvcgAvEV9fd2JpbmRnZW5fZXhwb3J0AHcSX193YmluZGdlbl9leHBvcnQyAIIBH19fd2JpbmRnZW5fYWRkX3RvX3N0YWNrX3BvaW50ZXIAtwESX193YmluZGdlbl9leHBvcnQzAKcBCU0BAEEBCyqtAcEBwwFGwAE9wgEJCgilAawBsQEUlgGTATuUAZYBnQGaAZQBlAGYAZUBlwG+AbsBvAEwvQGvAaQBqwG/AXOPAUVdGGi6AQwBIAqD1wK5Ab81ARB/IwBBoAFrIgQkACAEQTBqIAAQXiAEKAIwIQMgBEEoaiIAIAI2AgQgACABNgIAIANB3ABqIQsgA0HQAGohDCADQTBqIQ8gA0EkaiEQIANBDGohESADQbIBaiEHIANBxAFqIQkgBCgCKCINIAQoAiwiDmohEiANIQIDQAJAAkACQAJAAkACQCADAn8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIAIgEkYNAAJ/IAIsAAAiAEEATgRAIABB/wFxIQAgAkEBagwBCyACLQABQT9xIQUgAEEfcSEBIABBX00EQCABQQZ0IAVyIQAgAkECagwBCyACLQACQT9xIAVBBnRyIQUgAEFwSQRAIAUgAUEMdHIhACACQQNqDAELIAFBEnRBgIDwAHEgAi0AA0E/cSAFQQZ0cnIiAEGAgMQARg0BIAJBBGoLIQJBwQAgACAAQZ8BSxshAQJAAkACQCADLQDMBSIGDgUABAQEAQQLIAFBIGtB4ABJDQEMAwsgAUEwa0EMTw0CDCALIAQgADYCQCAEQSE6ADwMAgsgBEHwAGoiASADQeAAaigCACADQeQAaigCABAjIARBCGogAxAkIAQgBCkDCDcCfCAEIAQoAnQgBCgCeBBbIAQoAgQhACAEKAIAQQFxRQRAIAEQbiAOBEAgDUEBIA4QOAsgBCgCNCAEKAI4ELIBIARBoAFqJAAgAA8LIAQgADYCTCAEQcwAakHcwsAAEEIACwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCABQf8BcSIFQRtHBEAgBUHbAEYNASAGDg0DBAUGBw4IDg4OAg4JDgsgA0EBOgDMBSAJECwMVAsgBg4NASMDBAUNBg0NDQANBw0LIAFBIGtB3wBJDVIMCwsCQCABQRhJDQAgAUEZRg0AIAFB/AFxQRxHDQsLIARBPGogABBIDDILIAFB8AFxQSBGDQYgAUEwa0EgSQ0IIAFB0QBrQQdJDQgCQCAFQdkAaw4FCQkACR8ACyABQeAAa0EfTw0JDAgLIAFBMGtBzwBPDQggA0EAOgDMBSAEQTxqIAkgABAtDDALIAFBL0sEQCABQTtHIAFBOk9xRQRAIANBBDoAzAUMTwsgAUFAakE/SQ0ECyABQfwBcUE8Rw0HIAMgADYCxAEgA0EEOgDMBQxOCyABQUBqQT9JDQQgAUH8AXFBPEcNBgxLCyABQUBqQT9PDQUMSQsgAUEga0HgAEkNSwJAIAVBGGsOAwcGBwALIAVBmQFrQQJJDQYgBUHQAEYNSyAFQQdGDUgMBQsgA0EAOgDMBSAEQTxqIAkgABAODCsLIAMgADYCxAEgA0ECOgDMBQxJCyADQQA6AMwFIARBPGogCSAAEA4MKQsgA0EAOgDMBSAEQTxqIAkgABAtDCgLAkAgBUEYaw4DAgECAAsgBUGZAWtBAkkNASAFQdAARw0AIAZBAWsOChUDCAkKJAsMDQ5GCyABQfABcSIIQYABRg0AIAFBkQFrQQZLDQELIANBADoAzAUgBEE8aiAAEEgMJQsgCEEgRw0BIAZBBEcNAQw/CyABQfABcSEIDAELIAZBAWsOCgEAAwQFDgYHCAkOCyAIQSBHDQEMOwsgAUEYTw0KDAsLAkAgAUEYSQ0AIAFBGUYNACABQfwBcUEcRw0MCyAEQTxqIAAQSAwfCwJAAkAgAUEYSQ0AIAFBGUYNACABQfwBcUEcRw0BCyAEQTxqIAAQSAwfCyABQfABcUEgRg05DAoLAkAgAUEYSQ0AIAFBGUYNACABQfwBcUEcRw0KCyAEQTxqIAAQSAwdCyABQUBqQT9PBEAgAUHwAXEiCEEgRg03IAhBMEYNOgwJCyADQQA6AMwFIARBPGogCSAAEA4MHAsgAUH8AXFBPEYNAyABQfABcUEgRg0vIAFBQGpBP08NBwwECyABQS9NDQYgAUE6SQ04IAFBO0YNOCABQUBqQT5NDQMMBgsgAUFAakE/SQ0CDAULIAFBGEkNNyABQRlGDTcgAUH8AXFBHEYNNwwECyADIAA2AsQBIANBCDoAzAUMNgsgA0EKOgDMBQw1CyAFQdgAayIIQQdNQQBBASAIdEHBAXEbDQUgBUEZRg0AIAFB/AFxQRxHDQELIARBPGogABBIDBQLIAVBkAFrDhABBQUFBQUFBQMFBQIvAAMDBAsgA0EMOgDMBQwxCyADQQc6AMwFIAkQLAwwCyADQQM6AMwFIAkQLAwvCyADQQ06AMwFDC4LAkAgBUE6aw4CBAIACyAFQRlGDQILIAZBA2sOBwksAwoFCwcsCyAGQQNrDgcIKysJBQoHKwsgBkEDaw4HByoCCCoJBioLIAZBA2sOBwYpKQcJCAUpCyABQRhJDQAgAUH8AXFBHEcNKAsgBEE8aiAAEEgMCAsgAUEwa0EKTw0mCyADQQg6AMwFDCQLIAFB8AFxQSBGDR8LIAFB8AFxQTBHDSMMAwsgAUE6Rw0iDCALAkAgAUEYSQ0AIAFBGUYNACABQfwBcUEcRw0iCyAEQTxqIAAQSAwCCyABQfABcUEgRg0VIAFBOkYNACABQfwBcUE8Rw0gCyADQQs6AMwFDB8LIAQtADwiAEEyRg0fAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCAAQQFrDjECAwQFBgcICQoLDA0ODyUQJhESExQVFhcYGRobHB0eHwAhIiMkJSYnKCkqKywtMDEyAQsgBCgCQCEADB8LIANBfkF/IAMoAmggAygCnAFGGxCFAQw9CyAELwE+IQAgBCADKAJoNgJMIARBADoAfCAEIANB1ABqKAIAIgE2AnAgBCABIAMoAlhBAnRqNgJ0QQEgACAAQQFNGyEAIAQgBEHMAGo2AngDQCAAQQFrIgAEQCAEQfAAahBQDQEMNgsLIARB8ABqEFAiAEUNNCAAKAIADDULIANBASAELwE+IgAgAEEBTRtBAWsiACADKAKcASIBQQFrIAAgAUkbNgJoDDsLIANBASAELwE+IgAgAEEBTRsQMgw6CyADQQEgBC8BPiIAIABBAU0bEF8gA0EANgJoDDkLIANBASAELwE+IgAgAEEBTRsQYSADQQA2AmgMOAsgA0EANgJoDDcLAkAgBC0APUEBaw4CJgATCyADQQA2AlgMNgsgA0EBIAQvAT4iACAAQQFNGyIAQX9zQQAgAGsgAygCaCADKAKcAUYbEIUBDDULIANBASAELwE+IgAgAEEBTRsQXww0CyADQQEgBC8BPiIAIABBAU0bEIUBDDMLIANBASAELwFAIgAgAEEBTRtBAWsiACADKAKcASIBQQFrIAAgAUkbNgJoIANBASAELwE+IgAgAEEBTRtBAWsQUgwyCyADQQEgBC8BPiIAIABBAU0bEGEMMQsgAygCaCIAIAMoApwBIgFPBEAgAyABQQFrIgA2AmgLQQEgBC8BPiIBIAFBAU0bIgEgAygCGCAAayIFIAEgBUkbIQEgAyADKAJsQbDNwAAQYiIFKAIEIAUoAgggAEGo2cAAEJABKAIERQRAIAUoAgQgBSgCCCAAQQFrQbjZwAAQkAEiBkKggICAEDcCACAGIAcpAQA3AQggBkEQaiAHQQhqLwEAOwEACyAEQRhqIAUoAgQgBSgCCCAAQcjZwAAQfyAEKAIYIAQoAhwgARCIASAFKAIEIAUoAgggAEHY2cAAEJABIgAoAgRFBEAgAEKggICAEDcCACAAIAcpAQA3AQggAEEQaiAHQQhqLwEAOwEACyAEQRBqIAUoAgQgBSgCCCIAIAAgAWtB6NnAABB/IAQoAhAhACAEKAIUIARB+ABqIAdBCGovAQA7AQAgBCAHKQEANwNwQRRsIQEDQCABBEAgAEKggICAEDcCACAAIAQpA3A3AgggAEEQaiAEQfgAai8BADsBACABQRRrIQEgAEEUaiEADAELCyAFQQA6AAwgA0HgAGooAgAgA0HkAGooAgAgAygCbBCRAQwwCyADKAKcASEFIAMoAqABIQZBACEBA0AgASAGRg0wQQAhAANAIAAgBUYEQCADQeAAaigCACADQeQAaigCACABEJEBIAFBAWohAQwCBSAEQQA7AHggBEECOgB0IARBAjoAcCADIAAgAUHFACAEQfAAahATGiAAQQFqIQAMAQsACwALAAsgBCgCSCEBIAQoAkQhACAEIAQoAkA2AnggBCAANgJwIAQgAUEBdCIBIABqIgU2AnwDQCABBEACQAJAAkACQAJAAkACQAJAAkACQCAALwEAIgZBAWsOBwExMTExAgMACyAGQZcIaw4DBAUGAwsgA0EAOgDBAQwHCyADQgA3AmggA0EAOgC+AQwGCyADQQA6AL8BDAULIANBADoAcAwECyADEG8MAgsgAxCJAQwCCyADEG8gAxCJAQsgAxARCyAAQQJqIQAgAUECayEBDAELCyAEIAU2AnQgBEHwAGoQqgEMLgsgBCgCSCEBIAQoAkQhACAEIAQoAkA2AnggBCAANgJwIAQgAUEBdCIBIABqIgY2AnwDQCABBEACQAJAAkACQAJAAkACQAJAAkAgAC8BACIFQQFrDgcBLy8vLwIDAAsgBUGXCGsOAwYEBQMLIANBAToAwQEMBgsgA0EBOgC+ASADQQA2AmggAyADKAKoATYCbAwFCyADQQE6AL8BDAQLIANBAToAcAwDCyADEGUMAgsgAxBlCyMAQTBrIgUkACADLQC8AUUEQCADQQE6ALwBIANB9ABqIANBiAFqEHQgAyADQSRqEHUgBUEMaiIIIAMoApwBIAMoAqABIgpBAUEAIANBsgFqEB8gA0EMahCgASADIAhBJBAWIggoAmAgCCgCZEEAIAoQUwsgBUEwaiQAIAMQEQsgAEECaiEAIAFBAmshAQwBCwsgBCAGNgJ0IARB8ABqEKoBDC0LAkBBASAELwE+IgAgAEEBTRtBAWsiACAELwFAIgEgAygCoAEiBSABG0EBayIBSSABIAVJcUUEQCADKAKoASEADAELIAMgATYCrAEgAyAANgKoAQsgA0EANgJoIAMgAEEAIAMtAL4BGzYCbAwsCyADQQE6AHAgA0EAOwC9ASADQQA7AboBIANBAjoAtgEgA0ECOgCyASADQQA7AbABIANCADcCpAEgA0GAgIAINgKEASADQQI6AIABIANBAjoAfCADQgA3AnQgAyADKAKgAUEBazYCrAEMKwsgAygCoAEgAygCrAEiAEEBaiAAIAMoAmwiAEkbIQEgAyAAIAFBASAELwE+IgUgBUEBTRsgBxAdIANB4ABqKAIAIANB5ABqKAIAIAAgARBTDCoLIAMgAygCaCADKAJsIgBBAEEBIAQvAT4iASABQQFNGyAHECIgA0HgAGooAgAgA0HkAGooAgAgABCRAQwpCwJAAkACQCAELQA9QQFrDgMBAisACyADIAMoAmggAygCbCIAQQEgBCAHECIgA0HgAGooAgAgA0HkAGooAgAgACADKAKgARBTDCoLIAMgAygCaCADKAJsIgBBAiAEIAcQIiADQeAAaigCACADQeQAaigCAEEAIABBAWoQUwwpCyADQQAgAygCHCAHECogA0HgAGooAgAgA0HkAGooAgBBACADKAKgARBTDCgLIAMgAygCaCADKAJsIgAgBC0APUEEciAEIAcQIiADQeAAaigCACADQeQAaigCACAAEJEBDCcLIAMgBC0APToAsQEMJgsgAyAELQA9OgCwAQwlCyADQQEQMgwkCyMAQRBrIgUkAAJAAkACQCADKAJoIghFDQAgCCADKAKcAU8NACAFQQhqIAMoAlQiACADKAJYIgEgCBA8IAUoAghBAUcNACAFKAIMIgYgAUsNASADQdAAaiIKKAIAIAFGBH8gCkG84sAAEGsgAygCVAUgAAsgBkECdGohACABIAZLBEAgAEEEaiAAIAEgBmtBAnQQEgsgACAINgIAIAMgAUEBajYCWAsgBUEQaiQADAELIAYgAUG84sAAEEwACwwjCyADKAJoIgAgAygCnAEiBUYEQCADIABBAWsiADYCaAsgAyAAIAMoAmwiAUEBIAQvAT4iBiAGQQFNGyIGIAUgAGsiBSAFIAZLGyIFIAcQICAAIAAgBWoiBSAAIAVLGyEFA0AgACAFRwRAIAMgACABQSAgBxATGiAAQQFqIQAMAQsLIANB4ABqKAIAIANB5ABqKAIAIAEQkQEMIgsgAygCoAEgAygCrAEiAEEBaiAAIAMoAmwiAEkbIQEgAyAAIAFBASAELwE+IgUgBUEBTRsgBxA2IANB4ABqKAIAIANB5ABqKAIAIAAgARBTDCELIAMQXCADLQDAAUEBRw0gIANBADYCaAwgCyADEFwgA0EANgJoDB8LIAMgABAhDB4LIAMoAmgiBUUNHSAELwE+IQAgAygCbCEBIARBIGogAxBwIAQoAiQiBiABTQ0SQQEgACAAQQFNGyEAIAQoAiAgAUEEdGoiAUEEaigCACABQQhqKAIAIAVBAWtBuOXAABCQASgCACEBA0AgAEUNHiADIAEQISAAQQFrIQAMAAsACyADKAJsIgAgAygCqAFGDRIgAEUNHCADIABBAWsQUgwcCyAEQcwAaiIAIAMoApwBIgUgAygCoAEiASADKAJIIAMoAkxBABAfIARB8ABqIgYgBSABQQFBAEEAEB8gERCgASADIABBJBAWIQAgDxCgASAQIAZBJBAWGiAAQQA6ALwBIARBlAFqIgYgBRA5IAAoAlAgAEHUAGooAgBBBEEEEJ8BIAxBCGogBkEIaiIFKAIANgIAIAwgBCkClAE3AgAgAEEAOwG6ASAAQQI6ALYBIABBAjoAsgEgAEEBOgBwIABCADcCaCAAQQA7AbABIABBgIAENgC9ASAAIAFBAWs2AqwBIABCADcCpAEgAEGAgIAINgKYASAAQQI6AJQBIABBAjoAkAEgAEEANgKMASAAQoCAgAg3AoQBIABBAjoAgAEgAEECOgB8IABCADcCdCAGIAEQVSAAKAJcIABB4ABqKAIAQQFBARCfASALQQhqIAUoAgA2AgAgCyAEKQKUATcCAAwbCyAEKAJIIQEgBCgCRCEAIAQgBCgCQDYCeCAEIAA2AnAgBCABQQF0IgEgAGoiBTYCfANAIAEEQAJAIAAvAQBBFEcEQCADQQA6AL0BDAELIANBADoAwAELIABBAmohACABQQJrIQEMAQsLIAQgBTYCdCAEQfAAahCqAQwaCyADEIkBDBkLIAMQZQwYCyADQQEgBC8BPiIAIABBAU0bEIYBDBcLIAQoAkhBBWwhASADLQC7ASEFIAQoAkAgBCgCRCIKIQADQAJAIAFFDQAgACgAASEGAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAC0AAEEBaw4SAQIDBAUGBwgJCgsMDQ4PEBETAAtBACEFIANBADsBugEgA0ECOgC2ASADQQI6ALIBDBELIANBAToAugEMEAsgA0ECOgC6AQwPCyADIAVBAXIiBToAuwEMDgsgAyAFQQJyIgU6ALsBDA0LIAMgBUEIciIFOgC7AQwMCyADIAVBEHIiBToAuwEMCwsgAyAFQQRyIgU6ALsBDAoLIANBADoAugEMCQsgAyAFQf4BcSIFOgC7AQwICyADIAVB/QFxIgU6ALsBDAcLIAMgBUH3AXEiBToAuwEMBgsgAyAFQe8BcSIFOgC7AQwFCyADIAVB+wFxIgU6ALsBDAQLIAcgBjYBAAwDCyAHQQI6AAAMAgsgAyAGNgG2AQwBCyADQQI6ALYBCyAAQQVqIQAgAUEFayEBDAELCyAKQQFBBRCfAQwWCyADQQA2AqQBDBULIAQoAkghASAEKAJEIQAgBCAEKAJANgJ4IAQgADYCcCAEIAFBAXQiASAAaiIFNgJ8A0AgAQRAAkAgAC8BAEEURwRAIANBAToAvQEMAQsgA0EBOgDAAQsgAEECaiEAIAFBAmshAQwBCwsgBCAFNgJ0IARB8ABqEKoBDBQLIANBATYCpAEMEwsgA0EBIAQvAT4iACAAQQFNGxCHAQwSCyAELQA9DQELIwBBEGsiACQAIABBCGogAygCVCIGIAMoAlgiASADKAJoEDwCQAJAIAAoAghFBEAgACgCDCIFIAFPDQEgBiAFQQJ0aiIGIAZBBGogASAFQX9zakECdBASIAMgAUEBazYCWAsgAEEQaiQADAELIwBBMGsiACQAIAAgATYCBCAAIAU2AgAgAEEDNgIMIABByMXAADYCCCAAQgI3AhQgACAAQQRqrUKAgICA4AGENwMoIAAgAK1CgICAgOABhDcDICAAIABBIGo2AhAgAEEIakHM4sAAEIoBAAsMEAsgA0EANgJYDA8LIANBASAELwE+IgAgAEEBTRtBAWsQUgwOCyADQQEgBC8BPiIAIABBAU0bEF8MDQsgAy0AwgFBAUcNDCADIAQvAT4iACADKAKcASAAGyAELwFAIgAgAygCoAEgABsQJQwMCyADIAA2AsQBIANBCToAzAUMCgsgASAGQbjlwAAQSwALIANBARCGAQwJCwALQQALIgAgAygCnAEiAUEBayAAIAFJGzYCaAwGCyAJIAA2AgAMBAsgAyAANgLEASADQQU6AMwFDAMLIANBADoAzAUMAgsgA0EGOgDMBQwBCyAJKAKEBCEBAkACQAJAAkACQCAAQTprDgIBAAILIAlBHyABQQFqIgAgAEEgRhs2AoQEDAMLIAFBIEkNASABQSBB5NvAABBLAAsgAUEgTwRAIAFBIEH028AAEEsACyAJIAFBBHRqQQRqIgUoAgAiAUEGSQRAIAUgAUEBdGpBBGoiASABLwEAQQpsIABBMGtB/wFxajsBAAwCCyABQQZBtOHAABBLAAsgCSABQQR0akEEaiIBKAIAQQFqIQAgAUEFIAAgAEEFTxs2AgALCyAEQTI6ADwMAAsAC98UAQZ/IwBBwAJrIgIkACABKAIEIQMDQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIAMEQCACQbgCaiABKAIAEGkgAigCuAIhAyACKAK8AkEBaw4GAQUEBQIDBQsgAEESOgAADAsLAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIAMvAQAiAw4eAAECAwQFDgYOBw4ODg4ODg4ODg4OCAgJCgsODA4NDgsgAkGoAWpBASABKAIAIAEoAgRB1NzAABCBASABIAIpA6gBNwIAIABBADoAAAwYCyACQbABakEBIAEoAgAgASgCBEHk3MAAEIEBIAEgAikDsAE3AgAgAEEBOgAADBcLIAJBuAFqQQEgASgCACABKAIEQfTcwAAQgQEgASACKQO4ATcCACAAQQI6AAAMFgsgAkHAAWpBASABKAIAIAEoAgRBhN3AABCBASABIAIpA8ABNwIAIABBAzoAAAwVCyACQcgBakEBIAEoAgAgASgCBEGU3cAAEIEBIAEgAikDyAE3AgAgAEEEOgAADBQLIAJB0AFqQQEgASgCACABKAIEQaTdwAAQgQEgASACKQPQATcCACAAQQU6AAAMEwsgAkHYAWpBASABKAIAIAEoAgRBtN3AABCBASABIAIpA9gBNwIAIABBBjoAAAwSCyACQeABakEBIAEoAgAgASgCBEHE3cAAEIEBIAEgAikD4AE3AgAgAEEHOgAADBELIAJB6AFqQQEgASgCACABKAIEQdTdwAAQgQEgASACKQPoATcCACAAQQg6AAAMEAsgAkHwAWpBASABKAIAIAEoAgRB5N3AABCBASABIAIpA/ABNwIAIABBCToAAAwPCyACQfgBakEBIAEoAgAgASgCBEH03cAAEIEBIAEgAikD+AE3AgAgAEEKOgAADA4LIAJBgAJqQQEgASgCACABKAIEQYTewAAQgQEgASACKQOAAjcCACAAQQs6AAAMDQsgAkGIAmpBASABKAIAIAEoAgRBlN7AABCBASABIAIpA4gCNwIAIABBDDoAAAwMCyACQZACakEBIAEoAgAgASgCBEGk3sAAEIEBIAEgAikDkAI3AgAgAEENOgAADAsLAkACQCADQR5rQf//A3FBCE8EQCADQSZrDgIBCAILIAJBCGpBASABKAIAIAEoAgRBxODAABCBASABIAIpAwg3AgAgACADQR5rOgACIABBDjsAAAwMCwJAIAEoAgQiA0ECTwRAIAJBmAFqIAEoAgBBEGoQaSACKAKYASIDDQEgASgCBCEDCyACQegAakEBIAEoAgAgA0G03sAAEIEBIAIoAmwhAyACKAJoIQQMDQsCQAJAAkAgAigCnAFBAUcNACADLwEAQQJrDgQBAAACAAsgAkHwAGpBASABKAIAIAEoAgRBhN/AABCBASACKAJ0IQMgAigCcCEEDA4LIAEoAgAhAyABKAIEIgRBBU8EQCADLQAkIQUgAy8BNCEGIAMvAUQhByACQYABakEFIAMgBEHE3sAAEIEBIAEgAikDgAE3AgAgAEEOOgAAIAAgBSAGQQh0QYD+A3EgB0EQdHJyQQh0QQFyNgABDA0LIAJB+ABqQQIgAyAEQdTewAAQgQEgAigCfCEDIAIoAnghBAwNCyABKAIAIQMgASgCBCIEQQNPBEAgAy0AJCEFIAJBkAFqQQMgAyAEQeTewAAQgQEgASACKQOQATcCACAAIAU6AAIgAEEOOwAADAwLIAJBiAFqQQIgAyAEQfTewAAQgQEgAigCjAEhAyACKAKIASEEDAwLAkACQCADQfj/A3FBKEcEQCADQTBrDgIBCQILIAJBEGpBASABKAIAIAEoAgRBtODAABCBASABIAIpAxA3AgAgACADQShrOgACIABBEDsAAAwMCwJAIAEoAgQiA0ECTwRAIAJB2ABqIAEoAgBBEGoQaSACKAJYIgMNASABKAIEIQMLIAJBKGpBASABKAIAIANBpN/AABCBASACKAIsIQMgAigCKCEEDA0LAkACQAJAIAIoAlxBAUcNACADLwEAQQJrDgQBAAACAAsgAkEwakEBIAEoAgAgASgCBEH038AAEIEBIAIoAjQhAyACKAIwIQQMDgsgASgCACEDIAEoAgQiBEEFTwRAIAMtACQhBSADLwE0IQYgAy8BRCEHIAJBQGtBBSADIARBtN/AABCBASABIAIpA0A3AgAgAEEQOgAAIAAgBSAGQQh0QYD+A3EgB0EQdHJyQQh0QQFyNgABDA0LIAJBOGpBAiADIARBxN/AABCBASACKAI8IQMgAigCOCEEDA0LIAEoAgAhAyABKAIEIgRBA08EQCADLQAkIQUgAkHQAGpBAyADIARB1N/AABCBASABIAIpA1A3AgAgACAFOgACIABBEDsAAAwMCyACQcgAakECIAMgBEHk38AAEIEBIAIoAkwhAyACKAJIIQQMDAsgA0HaAGtB//8DcUEISQ0HIANB5ABrQf//A3FBCE8NAyACQSBqQQEgASgCACABKAIEQZTgwAAQgQEgASACKQMgNwIAIAAgA0HcAGs6AAIgAEEQOwAADAoLIAMvAQAiBEEwRwRAIARBJkcNAyADLwECQQJHDQNBCCEEQQYhBUEEIQYMCQsgAy8BAkECRw0CQQghBEEGIQVBBCEGDAcLIAMvAQAiBEEwRwRAIARBJkcNAiADLwECQQJHDQJBCiEEQQghBUEGIQYMCAsgAy8BAkECRw0BQQohBEEIIQVBBiEGDAYLIAMvAQAiBEEwRwRAIARBJkcNASADLwECQQVHDQEgAy0ABCEDIAJBqAJqQQEgASgCACABKAIEQfTgwAAQgQEgASACKQOoAjcCACAAIAM6AAIgAEEOOwAADAgLIAMvAQJBBUYNAQsgAkEBIAEoAgAgASgCBEGU4cAAEIEBIAIoAgQhAyACKAIAIQQMBwsgAy0ABCEDIAJBsAJqQQEgASgCACABKAIEQYThwAAQgQEgASACKQOwAjcCACAAIAM6AAIgAEEQOwAADAULIAJBoAFqQQEgASgCACABKAIEQZTfwAAQgQEgASACKQOgATcCACAAQQ86AAAMBAsgAkHgAGpBASABKAIAIAEoAgRBhODAABCBASABIAIpA2A3AgAgAEEROgAADAMLIAJBGGpBASABKAIAIAEoAgRBpODAABCBASABIAIpAxg3AgAgACADQdIAazoAAiAAQQ47AAAMAgsgAyAGai0AACEGIAMgBWovAQAhBSADIARqLwEAIQMgAkGgAmpBASABKAIAIAEoAgRB5ODAABCBASABIAIpA6ACNwIAIABBEDoAACAAIAYgBUEIdEGA/gNxIANBEHRyckEIdEEBcjYAAQwBCyACQZgCakEBIAEoAgAgASgCBEHU4MAAEIEBIAEgAikDmAI3AgAgAyAGai0AACEBIAMgBWovAQAhBSADIARqLwEAIQMgAEEOOgAAIAAgASAFQQh0QYD+A3EgA0EQdHJyQQh0QQFyNgABCyACQcACaiQADwsgASAENgIAIAEgAzYCBAwACwAL/xICJH8BfiMAQfAAayIDJAAgA0E0aiAAEF4gAygCNCIFQQA2AogGIAVBADYC/AUgBUEANgLwBSAFQQA2AuQFIAVBADYC2AUgBS0AcEEBcQRAIAUoAmwgAUYgAkEAR3EhISAFKAJoIQYLIANBKGogBRBwIAMoAiwiACABSwRAIAVBgAZqIR0gBUH8BWohFCAFQfQFaiEeIAVB8AVqIRUgBUHoBWohHyAFQdwFaiEWIAVB0AVqIRggAygCKCABQQR0aiIBKAIEIQAgACABKAIIQRRsaiEiIANB1gBqISMgA0HQAGoiAUEEciEkIAZB//8DcSElIAFBCWohJkEFIQFBBSEJA0ACQAJAAkAgACIIICJHBEAgCEEUaiEAIAgoAgQiDkUNBCAIKAIAIQYgCEEIaiEgAkACQCADAn8CQCAhICUgD0H//wNxIhlGcSAIQRFqIhAtAABBEHFBBHZHBEBBASAgKAAAIgRB/wFxQQJGDQIaIARBAXENASAEQYD+A3FBA3IMAgsgA0EFIAgoAAwiAkGAfnFBBEEDIAJBAXEbciACQf8BcUECRhsiBDYCbEEAIQogCCgACCIHQf8BcUECRw0CQQAhAgwHCyAEQYB+cUEEcgsiBDYCbEECIQIgCCgADCIHQf8BcUECRw0BQQAhCgwFCyAHQQh2IQogB0EBcQ0DQQMhAiAHQYDwA3ENBCAFLQCMBkEBRw0EDAILIAdBCHYhCiAHQQFxDQJBAyECIAdBgPADcQ0DIAUtAIwGDQEMAwsgCUH/AXFBBUcEQCAYIBGtIAmtQv8Bg0IghiAarUIohoSEQfzCwAAQegsgAUH/AXFBBUcEQCADIAs7AFcgA0HZAGogC0EQdjoAACADIAw6AFogAyABOgBWIAMgDTsBVCADIBc2AlAgFiADQdAAakGMw8AAEGMLIAUoAogGIQEgBSgChAYhAiAFKAL8BSEEIAUoAvgFIQggBSgC8AUhFCAFKALsBSEVIAUoAuQFIQYgBSgC4AUhByAFKALYBSEJIAUoAtQFIQUgA0EANgJsIANBIGogA0HsAGoQBiIAQd/BwABBAiAFIAkQGwJAAn8gAygCIARAIAMoAiQMAQsgA0EYaiADQewAaiAAQeHBwABBBCAHIAYQGyADKAIYBEAgAygCHAwBCyADQRBqIANB7ABqIABB5cHAAEEKIAIgARAbIAMoAhAEQCADKAIUDAELIANBCGogA0HsAGogAEHvwcAAQQ4gFSAUEBsgAygCCARAIAMoAgwMAQsgAyADQewAaiAAQf3BwABBDiAIIAQQGyADKAIARQ0BIAMoAgQLIQEgABCpASADIAE2AmwgA0HsAGpBnMPAABBCAAsgAygCOCADKAI8ELIBIANB8ABqJAAgAA8LIApBCHIgCiAILQAQQQFGGyEKDAELQQQhAgsgAyAKQQh0QYD+A3EgB0GAgHxxciIKIAJyIgc2AkAgA0EAIANB7ABqIhIgBEH/AXFBBUYiBBs2AlggAyARrSAJrUL/AYNCIIYgGq1CKIaEhCInNwNQAkAgCUH/AXFBBUYEQEEFIQkgBA0BIA5BEHQgGXIhESASEFkiCUEIdiEaDAELIARFBEAgJCADQewAaiIEEFFFBEAgGCAnQbzDwAAQeiAOQRB0IBlyIREgBBBZIglBCHYhGgwCCyAOQRB0IBFqIREMAQsgGCAnQazDwAAQekEFIQkLQYjBwAAgBhB5IQQCQAJAAkACQAJ/AkAgBkGgywBGDQAgBA0AQZTBwAAgBhB5DQBB2MDAACAGEHkhBAJAIAZBj80ARg0AIAQNAEHkwMAAIAYQeQ0AQfDAwAAgBhB5DQBB/MDAACAGEHlFDQMLIANBQGsQWSESIBAtAABBAnRB/ABxQQIgCEEQai0AACIEQQFGIARBAkYbckH/AXEhEyAeKAIAIhsgFCgCACIHRgRAIwBBEGsiBCQAIARBCGogHiAbQQFBBEEQECYgBCgCCCIbQYGAgIB4RwRAIAQoAgwaIBtBzMPAABCuAQALIARBEGokAAsgBSgC+AUgB0EEdGoiBCATOgAMIAQgEjYCCCAEIAY2AgQgBCAPOwEAIBQMAQsgA0FAaxBZIRIgHygCACITIBUoAgAiB0YEQCMAQRBrIgQkACAEQQhqIB8gE0EBQQRBDBAmIAQoAggiE0GBgICAeEcEQCAEKAIMGiATQdzDwAAQrgEACyAEQRBqJAALIAUoAuwFIAdBDGxqIgQgEjYCCCAEIAY2AgQgBCAPOwEAIBULIAdBAWo2AgBBICEGDAELIAZBgAFJDQAgDkH//wNxQQFLDQEgBkH//wNNBEAgBkEDdkHAgMAAai0AACAGQQdxdkEBcUUNAQwCC0HMwMAAIAYQeQ0BCyADIAs7AFcgJiALQRB2IgQ6AAAgAyAgNgJcIAMgDDoAWiADIA07AVQgAyAXNgJQIAMgAToAVgJAIAFB/wFxQQVGDQACQCADQUBrICMQUQRAIBAtAABBAnRB/ABxQQIgCEEQai0AACIHQQFGIAdBAkYbckG/AXEgDHNBvwFxRQ0BCwJAIAZBIEcNACAMQQhxQQN2IBAtAAAiB0ECcUEBdkcNACAMQRBxQQR2IAdBBHFBAnZGDQELIAMgCzsAZyADQeAAaiIHQQlqIAQ6AAAgAyAMOgBqIAMgAToAZiADIA07AWQgAyAXNgJgIBYgB0Hsw8AAEGMMAQsgDUEBaiENIAEhAgwCCyAcQRB0IBlyIRcgEC0AAEECdEH8AHFBAiAIQRBqLQAAIgFBAUYgAUECRhtyQf8BcSEMIApBCHYhC0EBIQ0MAQsgAUH/AXFBBUcEQCADIAs7AEsgA0HEAGoiAkEJaiALQRB2OgAAIAMgDDoATiADIAE6AEogAyANOwFIIAMgFzYCRCAWIAJB/MPAABBjCyAQLQAAIQIgCEEQai0AACEBIAMgBzYBViADQQE7AVQgAyAcOwFSIAMgDzsBUCADIAJBAnRB/ABxQQIgAUEBRiABQQJGG3I6AFogFiADQdAAakGMxMAAEGNBBSECCyAFKAKIBiIEIAUoAoAGRgRAIwBBEGsiASQAIAFBCGogHSAdKAIAQQFBBEEEECYgASgCCCIIQYGAgIB4RwRAIAEoAgwaIAhBnMTAABCuAQALIAFBEGokAAsgHEEBaiEcIAUoAoQGIARBAnRqIAY2AgAgBSAEQQFqNgKIBiAOIA9qIQ8gAiEBDAALAAsgASAAQZjlwAAQSwALuQ4BA38jAEHgAGsiAyQAIAFBBGohBAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgASgCACIFQYCAxABGBEAgAkFAag42AQIDBAUGBwgJCgsMDQ43Nw83NxARNzcSEzcUNzc3NzcVFhc3GBkaGxw3NzcdHjc3NzcfIDIhNwsCQCACQewAaw4FNTc3NzMACyACQegARg0zDDYLIABBHToAACAAIAEvAQg7AQIMNgsgAEEMOgAAIAAgAS8BCDsBAgw1CyAAQQk6AAAgACABLwEIOwECDDQLIABBCjoAACAAIAEvAQg7AQIMMwsgAEEIOgAAIAAgAS8BCDsBAgwyCyAAQQQ6AAAgACABLwEIOwECDDELIABBBToAACAAIAEvAQg7AQIMMAsgAEECOgAAIAAgAS8BCDsBAgwvCyAAQQs6AAAgACABLwEYOwEEIAAgAS8BCDsBAgwuCyAAQQM6AAAgACABLwEIOwECDC0LIAEvAQgOBBcYGRoWCyABLwEIDgMbHB0aCyAAQR46AAAgACABLwEIOwECDCoLIABBFToAACAAIAEvAQg7AQIMKQsgAEENOgAAIAAgAS8BCDsBAgwoCyAAQS06AAAgACABLwEIOwECDCcLIABBKDoAACAAIAEvAQg7AQIMJgsgAS8BCA4GGRgaGBgbGAsgAEEWOgAAIAAgAS8BCDsBAgwkCyAAQQE6AAAgACABLwEIOwECDCMLIABBAjoAACAAIAEvAQg7AQIMIgsgAEEKOgAAIAAgAS8BCDsBAgwhCyAAQSI6AAAgACABLwEIOwECDCALIABBLzoAACAAIAEvAQg7AQIMHwsgAEEwOgAAIAAgAS8BCDsBAgweCyAAQQs6AAAgACABLwEYOwEEIAAgAS8BCDsBAgwdCyABLwEIDgQUExMVEwsgAyAEIAEoAoQEQYTcwAAQdiADQUBrIgEgAygCACICIAIgAygCBEEEdGoQKCADQTtqIAFBCGooAgA2AAAgAyADKQJANwAzIABBKzoAACAAIAMpADA3AAEgAEEIaiADQTdqKQAANwAADBsLIANBCGogBCABKAKEBEGU3MAAEHYgA0FAayIBIAMoAggiAiACIAMoAgxBBHRqECggA0E7aiABQQhqKAIANgAAIAMgAykCQDcAMyAAQSU6AAAgACADKQAwNwABIABBCGogA0E3aikAADcAAAwaCyADQRhqIAQgASgChARBpNzAABB2IAMgAykDGDcCTCADQdYAaiADQcwAahAMAn8gAy0AVkESRgRAQQAhAUEAIQRBAQwBCyADQRBqQQRBAUEFQZTIwAAQYCADQdoAai0AACEBIAMoAhAhAiADKAIUIgQgAygAVjYAACAEQQRqIAE6AAAgA0EBNgI4IAMgBDYCNCADIAI2AjAgAyADKQJMNwJAQQUhAkEBIQEDQCADQdsAaiADQUBrEAwgAy0AW0ESRkUEQCADKAIwIAFGBEAgA0EwaiABQQFBAUEFEG0gAygCNCEECyACIARqIgUgAygAWzYAACAFQQRqIANB3wBqLQAAOgAAIAMgAUEBaiIBNgI4IAJBBWohAgwBCwsgAygCMCEEIAMoAjQLIQIgACABNgIMIAAgAjYCCCAAIAQ2AgQgAEEpOgAADBkLIABBEzoAACAAIAEvARg7AQQgACABLwEIOwECDBgLIABBJzoAAAwXCyAAQSY6AAAMFgsgAEEyOgAADBULIABBFzsBAAwUCyAAQZcCOwEADBMLIABBlwQ7AQAMEgsgAEGXBjsBAAwRCyAAQTI6AAAMEAsgAEEYOwEADA8LIABBmAI7AQAMDgsgAEGYBDsBAAwNCyAAQTI6AAAMDAsgAEEHOwEADAsLIABBhwI7AQAMCgsgAEGHBDsBAAwJCyAAQTI6AAAMCAsgAEEuOwEADAcLIABBrgI7AQAMBgsgAS8BCEEIRg0DIABBMjoAAAwFCyAFQSFHDQMgAEEUOgAADAQLIAVBP0cNAiADQSBqIAQgASgChARBtNzAABB2IANBQGsiASADKAIgIgIgAiADKAIkQQR0ahApIANBO2ogAUEIaigCADYAACADIAMpAkA3ADMgAEESOgAAIAAgAykAMDcAASAAQQhqIANBN2opAAA3AAAMAwsgBUE/Rw0BIANBKGogBCABKAKEBEHE3MAAEHYgA0FAayIBIAMoAigiAiACIAMoAixBBHRqECkgA0E7aiABQQhqKAIANgAAIAMgAykCQDcAMyAAQRA6AAAgACADKQAwNwABIABBCGogA0E3aikAADcAAAwCCyAAQTE6AAAgACABLwEYOwEEIAAgAS8BKDsBAgwBCyAAQTI6AAALIANB4ABqJAALmQoBCn8CQAJAAkAgACgCACIFIAAoAggiA3IEQAJAIANBAXFFDQAgASACaiEGAkAgACgCDCIJRQRAIAEhBAwBCyABIQQDQCAEIAZGDQICfyAEIgMsAAAiBEEATgRAIANBAWoMAQsgA0ECaiAEQWBJDQAaIANBA2ogBEFwSQ0AGiADQQRqCyIEIANrIAdqIQcgCSAIQQFqIghHDQALCyAEIAZGDQACQCAELAAAQQBODQALIAcgAgJ/AkAgB0UNACACIAdNBEAgAiAHRg0BQQAMAgsgASAHaiwAAEFATg0AQQAMAQsgAQsiAxshAiADIAEgAxshAQsgBUUNAyAAKAIEIQsgAkEQTwRAIAEgAUEDakF8cSIHayIIIAJqIgpBA3EhCUEAIQVBACEDIAEgB0cEQCAIQXxNBEBBACEGA0AgAyABIAZqIgQsAABBv39KaiAEQQFqLAAAQb9/SmogBEECaiwAAEG/f0pqIARBA2osAABBv39KaiEDIAZBBGoiBg0ACwsgASEEA0AgAyAELAAAQb9/SmohAyAEQQFqIQQgCEEBaiIIDQALCwJAIAlFDQAgByAKQXxxaiIELAAAQb9/SiEFIAlBAUYNACAFIAQsAAFBv39KaiEFIAlBAkYNACAFIAQsAAJBv39KaiEFCyAKQQJ2IQYgAyAFaiEFA0AgByEIIAZFDQRBwAEgBiAGQcABTxsiCUEDcSEKIAlBAnQhB0EAIQQgBkEETwRAIAggB0HwB3FqIQwgCCEDA0AgBCADKAIAIgRBf3NBB3YgBEEGdnJBgYKECHFqIAMoAgQiBEF/c0EHdiAEQQZ2ckGBgoQIcWogAygCCCIEQX9zQQd2IARBBnZyQYGChAhxaiADKAIMIgRBf3NBB3YgBEEGdnJBgYKECHFqIQQgDCADQRBqIgNHDQALCyAGIAlrIQYgByAIaiEHIARBCHZB/4H8B3EgBEH/gfwHcWpBgYAEbEEQdiAFaiEFIApFDQALIAggCUH8AXFBAnRqIgQoAgAiA0F/c0EHdiADQQZ2ckGBgoQIcSEDIApBAUYNAiADIAQoAgQiA0F/c0EHdiADQQZ2ckGBgoQIcWohAyAKQQJGDQIgAyAEKAIIIgNBf3NBB3YgA0EGdnJBgYKECHFqIQMMAgsgAkUEQEEAIQUMAwsgAkEDcSEEAkAgAkEESQRAQQAhBUEAIQgMAQtBACEFIAEhAyACQQxxIgghBwNAIAUgAywAAEG/f0pqIANBAWosAABBv39KaiADQQJqLAAAQb9/SmogA0EDaiwAAEG/f0pqIQUgA0EEaiEDIAdBBGsiBw0ACwsgBEUNAiABIAhqIQMDQCAFIAMsAABBv39KaiEFIANBAWohAyAEQQFrIgQNAAsMAgsMAgsgA0EIdkH/gRxxIANB/4H8B3FqQYGABGxBEHYgBWohBQsCQCAFIAtJBEAgCyAFayEGAkACQAJAIAAtABgiA0EAIANBA0cbIgNBAWsOAgABAgsgBiEDQQAhBgwBCyAGQQF2IQMgBkEBakEBdiEGCyADQQFqIQMgACgCECEIIAAoAiAhBCAAKAIcIQADQCADQQFrIgNFDQIgACAIIAQoAhARAgBFDQALQQEPCwwBCyAAIAEgAiAEKAIMEQMABEBBAQ8LQQAhAwNAIAMgBkYEQEEADwsgA0EBaiEDIAAgCCAEKAIQEQIARQ0ACyADQQFrIAZJDwsgACgCHCABIAIgACgCICgCDBEDAAvhCwIPfwJ+IwBB0ABrIgIkACABQQRqIQwgAkFAayENIAJBJWohDiACQRxqIQ8gASgCJCEFIAEoAhQhECABKAIQIQMCQAJAAn8CQANAIAEoAgAhBiABQYCAgIB4NgIAIAEoAgQhCwJAAkACQAJAAkAgBkGAgICAeEcEQCABKQIIIREgCyEHDAELAkAgAyAQRgRAQYCAgIB4IQYMAQsgASADQRBqIgg2AhAgAykCCCERIAMoAgQhByADKAIAIQYgCCEDC0GAgICAeCALEKMBIAZBgICAgHhGDQELIAIgBzYCDCACIAY2AgggAiARNwIQIBFCIIghEkF/IAUgEaciBEcgBCAFSxtB/wFxDgICAwELQYCAgIB4IAcQowEgAEGAgICAeDYCACABQYCAgIB4NgIADAcLAkAgEqdBAXENACAFIAQgByAEEDRrIgMgAyAFSRsiAyAESw0AIAIgAzYCECADIQQLAn9BgICAgHggBCAFTQ0AGgJAAkAgByAEIAVBuNrAABCQASgCBEUEQCACQThqIgMgAkEIaiIIIAVBAWsQPyACQTBqIANBCGooAgA2AgAgAiACKQI4NwMoIAItABQhBCADQRBqIAIoAgwgAigCECIHIAdBAWtB2NrAABCQASIHQRBqLwEAOwEAIAJCoICAgBA3AjggAiAHKQIINwJAIAggA0Ho2sAAEFcgAiAEOgA0IAItABRBAXFFDQEMAgsgAkE4aiIDIAJBCGogBRA/IAJBMGogA0EIaigCADYCACACIAIpAjg3AyggAiACLQAUIgM6ADQgAw0BCyACQShqEIsBCyACKAIwBEAgAkFAayACQTRqKAIANgIAIAJBAToAFCACIAIpAiw3AzggAigCKAwBCyACKAIoIAIoAixBBEEUEJ8BQYCAgIB4CyEDQYCAgIB4IAsQowEgASADNgIAIAwgAikDODcCACAMQQhqIAJBQGsoAgA2AgAgAEEIaiACQRBqKQIANwIAIAAgAikCCDcCAAwGCyAAIBE3AgggACAHNgIEIAAgBjYCAAwFCwJAIAMgEEcEQCABIANBEGoiCDYCECADKAIAIgZBgICAgHhHDQELIAJBADsAQCACQQI6ADwgAkECOgA4IAJBCGoiASAFIAJBOGoQQSAAIAIpAgg3AgAgAkEAOgAUIABBCGogAUEIaikCADcCAAwFCyADQQxqKAIAIQkgDyADKQIENwIAIA9BCGogCTYCACACIAY2AhggBSAEayIJRQ0BIBKnQQFxRQRAIAJBADsAQCACQQI6ADwgAkECOgA4IAJBCGogBSACQThqEEEMAgsgAi0AJEUEQCACQRhqEIsBCyACKAIcIQMgAigCICIKIAlNBEAgAkEIaiIEIAMgChCAAQJAIAItACQiBg0AIAJBADoAFCACKAIQIAVPDQAgAkEAOwBAIAJBAjoAPCACQQI6ADggBCAFIAJBOGoQQQsgAigCGCADQQRBFBCfASAGRQ0EQYCAgIB4IAsQowEgAUEIaiACQRBqKQIANwIAIAEgAikCCDcCAEGAgICAeCACEKMBIAghAwwBCwsgAyAKIAlB+NnAABCQASgCBEUEQCANQQhqIAcgBCAEQQFrQYjawAAQkAEiCEEQai8BADsBACANIAgpAgg3AgAgAkKggICAEDcCOCACQQhqIAJBOGpBmNrAABBXIAlBAWshCQsgCSAKTQRAIAJBCGogAyAJEIABIAIoAhghBiADIAogCRCIASAGQYCAgIB4Rg0DIAogCiAJayIIIAggCksbIQQgAi0AJAwCCyAJIApBqNrAABCzAQALIAJBKmogDkECai0AADoAACACIA4vAAA7ASggAigCICEEIAIoAhwhAyACLQAkCyEIQYCAgIB4IAsQowEgASAIOgAMIAEgBDYCCCABIAM2AgQgASAGNgIAIAEgAi8BKDsADSABQQ9qIAJBKmotAAA6AAALIAAgAikCCDcCACAAQQhqIAJBEGopAgA3AgALIAJB0ABqJAAL5QoCEH8BfiMAQZABayICJAAgACgCbCIFIAAoAhwiBmsiAUEAIAEgACgCFCIHIAZrIAVqTRshDSAFIAdqIQMgB0EEdCIBIAAoAhAiCmohDyAAKAIYIQwgACgCaCEOIAAoAqABIQsgACgCnAEhCCAKIQQDQAJAIAMgBkYNACABRQ0AIAkgDGpBACAELQAMIhAbIQkgA0EBayEDIAFBEGshASAEQRBqIQQgDSAQQQFzaiENDAELCyAIIAxHBEBBACEFIABBADYCFCACIAg2AjggAkEANgI0IAIgBzYCMCACIABBDGoiDDYCLCACIA82AiggAiAKNgIkIAJBgICAgHg2AhQgAkHIAGogAkEUaiIBEBACfyACKAJIQYCAgIB4RgRAIAEQoQFBBCEEQQAMAQsgAkEIakEEQQRBEEGUyMAAEGAgAkHQAGopAgAhESACKAIIIQEgAigCDCIEIAIpAkg3AgAgBEEIaiARNwIAIAJBATYCRCACIAQ2AkAgAiABNgI8IAJB2ABqIAJBFGpBKBAWGkEQIQNBASEFA0AgAkGAAWogAkHYAGoQECACKAKAAUGAgICAeEcEQCACKAI8IAVGBEAgAkE8akEBEI0BIAIoAkAhBAsgAyAEaiIBIAIpAoABNwIAIAFBCGogAkGIAWopAgA3AgAgAiAFQQFqIgU2AkQgA0EQaiEDDAELC0GAgICAeCACKAKEARCjASACQdgAahChASACKAI8CyEHIAkgDmohCSAFQQR0IQMgBCEBAkADQCADRQ0BIANBEGshAyABKAIIIQogAUEQaiEBIAggCkYNAAtB8M/AAEE3QajQwAAQcQALIAwQoAEgACAFNgIUIAAgBDYCECAAIAc2AgwgBSAGSQRAIAJBADsAYCACQQI6AFwgAkECOgBYIAAgBiAFayAIIAJB2ABqEC4gACgCFCEFCyAFQQFrIQRBACEBQQAhAwNAAkAgASANTw0AIAMgBE8NACABIAAoAhAgACgCFCADQbDPwAAQkgEtAAxBAXNqIQEgA0EBaiEDDAELCwJ/A0AgACgCFCIBIAggCUsNARogACgCECABIANBoM/AABCSAS0ADARAIANBAWohAyAJIAhrIQkMAQsLIAAoAhQLIQcgCSAIQQFrIgEgASAJSxshDiADIAYgBWtqIgFBAE4hBCABQQAgBBshBSAGQQAgASAEG2shBgsCQAJAAkBBfyAGIAtHIAYgC0sbQf8BcQ4CAgABCyAHIAZrIgFBACABIAdNGyIEIAsgBmsiASABIARLGyIDQQAgBSAGSRsgBWohBSABIARNDQEgAkEAOwBgIAJBAjoAXCACQQI6AFggACABIANrIAggAkHYAGoQLgwBCwJAIAYgC2siCiAGIAVBf3NqIgEgASAKSxsiBEUNACAAKAIQIQMgBCAHTQRAIAAgByAEayIBNgIUIAMgAUEEdGohAyAEIQEDQCABBEAgAygCACADQQRqKAIAQQRBFBCfASABQQFrIQEgA0EQaiEDDAELCyAAKAIUIQcgACgCECEDCwJAIAdFDQAgAyAHQQR0aiIBQRBGDQAgAUEEa0EAOgAADAELQZDPwAAQtgEACyAFIAprIARqIQULIAAgBTYCbCAAIA42AmggAEEBOgAgIAAgCzYCHCAAIAg2AhgCfyAAKAKgASIDIAAoAmQiAU0EQCAAIAM2AmQgAwwBCyAAQdwAaiADIAFrQQAQOiAAKAJkIQMgACgCoAELIQEgACgCYCADQQAgARBTIAAoApwBIgEgACgCdE0EQCAAIAFBAWs2AnQLIAAoAqABIgEgACgCeE0EQCAAIAFBAWs2AngLIAJBkAFqJAALuwkBB38CQAJAIAIgACABa0sEQCABIAJqIQUgACACaiEAIAJBEEkNAUEAIABBA3EiBmshBwJAIABBfHEiAyAATw0AIAZBAWsCQCAGRQRAIAUhBAwBCyAGIQggBSEEA0AgAEEBayIAIARBAWsiBC0AADoAACAIQQFrIggNAAsLQQNJDQAgBEEEayEEA0AgAEEBayAEQQNqLQAAOgAAIABBAmsgBEECai0AADoAACAAQQNrIARBAWotAAA6AAAgAEEEayIAIAQtAAA6AAAgBEEEayEEIAAgA0sNAAsLIAMgAiAGayIEQXxxIgJrIQBBACACayEGAkAgBSAHaiIFQQNxRQRAIAAgA08NASABIARqQQRrIQEDQCADQQRrIgMgASgCADYCACABQQRrIQEgACADSQ0ACwwBCyAAIANPDQAgBUEDdCICQRhxIQggBUF8cSIHQQRrIQFBACACa0EYcSEJIAcoAgAhAgNAIAIgCXQhByADQQRrIgMgByABKAIAIgIgCHZyNgIAIAFBBGshASAAIANJDQALCyAEQQNxIQIgBSAGaiEFDAELIAJBEE8EQAJAQQAgAGtBA3EiBiAAaiIEIABNDQAgBkEBayABIQMgBgRAIAYhBQNAIAAgAy0AADoAACADQQFqIQMgAEEBaiEAIAVBAWsiBQ0ACwtBB0kNAANAIAAgAy0AADoAACAAQQFqIANBAWotAAA6AAAgAEECaiADQQJqLQAAOgAAIABBA2ogA0EDai0AADoAACAAQQRqIANBBGotAAA6AAAgAEEFaiADQQVqLQAAOgAAIABBBmogA0EGai0AADoAACAAQQdqIANBB2otAAA6AAAgA0EIaiEDIAQgAEEIaiIARw0ACwsgAiAGayIDQXxxIgggBGohAAJAIAEgBmoiBUEDcUUEQCAAIARNDQEgBSEBA0AgBCABKAIANgIAIAFBBGohASAEQQRqIgQgAEkNAAsMAQsgACAETQ0AIAVBA3QiAkEYcSEGIAVBfHEiB0EEaiEBQQAgAmtBGHEhCSAHKAIAIQIDQCACIAZ2IQcgBCAHIAEoAgAiAiAJdHI2AgAgAUEEaiEBIARBBGoiBCAASQ0ACwsgA0EDcSECIAUgCGohAQsgACACaiIFIABNDQEgAkEBayACQQdxIgMEQANAIAAgAS0AADoAACABQQFqIQEgAEEBaiEAIANBAWsiAw0ACwtBB0kNAQNAIAAgAS0AADoAACAAQQFqIAFBAWotAAA6AAAgAEECaiABQQJqLQAAOgAAIABBA2ogAUEDai0AADoAACAAQQRqIAFBBGotAAA6AAAgAEEFaiABQQVqLQAAOgAAIABBBmogAUEGai0AADoAACAAQQdqIAFBB2otAAA6AAAgAUEIaiEBIAUgAEEIaiIARw0ACwwBCyAAIAJrIgQgAE8NACACQQFrIAJBA3EiAQRAA0AgAEEBayIAIAVBAWsiBS0AADoAACABQQFrIgENAAsLQQNJDQAgBUEEayEBA0AgAEEBayABQQNqLQAAOgAAIABBAmsgAUECai0AADoAACAAQQNrIAFBAWotAAA6AAAgAEEEayIAIAEtAAA6AAAgAUEEayEBIAAgBEsNAAsLC7gKAQV/IAAgAkGAzcAAEGIiAigCBCACKAIIIAFB0NXAABCQASgCBCEGQQEhBwJAAkACfwJAAkACQAJAAkACQAJAIANBoAFJDQAgA0ENdkGA7cAAai0AACIAQRVPDQEgA0EHdkE/cSAAQQZ0ckGA78AAai0AACIAQbQBTw0CAkACQCADQQJ2QR9xIABBBXRyQcD5wABqLQAAIANBAXRBBnF2QQNxQQJrDgIBAAILIANBjvwDa0ECSQ0BIANB3AtGDQEgA0HYL0YNASADQZA0Rg0BIANBg5gERg0BIANB/v//AHFB/MkCRg0BIANBogxrQeEESQ0BIANBgC9rQTBJDQEgA0Gx2gBrQT9JDQEgA0Hm4wdrQRpJDQELQQAhBwsgAigCCCIFIAFBf3NqIQACQAJAAkACQCAGDgMDAQIAC0Gg2MAAQShByNjAABBxAAsgAigCBCEGIAcNBwJAAkACQCAADgIAAQILIAYgBSABQfDVwAAQkAEiAkEgNgIAQQAhAEEBIQYMCwtBAiEAIAYgBSABQYDWwAAQkAEiBUECNgIEIAUgAzYCACAFIAQpAAA3AAggBUEQaiAEQQhqLwAAOwAAIAIoAgQgAigCCCABQQFqQZDWwAAQkAEiAkEgNgIADAcLQQIhACAGIAUgAUGg1sAAEJABIgVBAjYCBCAFIAM2AgAgBSAEKQAANwAIIAVBEGogBEEIaiIDLwAAOwAAIAIoAgQgAigCCCABQQFqIgVBsNbAABCQASgCBEECRgRAIAIoAgQgAigCCCABQQJqQcDWwAAQkAEiAUKggICAEDcCACABIAQpAAA3AAggAUEQaiADLwAAOwAACyACKAIEIAIoAgggBUHQ1sAAEJABIgJBIDYCAAwGC0EBIQYgAUEBaiEIIAIoAgQhCSAHDQRBAiEAIAkgBSABQYDXwAAQkAEiAUECNgIEIAEgAzYCACABIAQpAAA3AAggAUEQaiAEQQhqLwAAOwAAIAIoAgQgAigCCCAIQZDXwAAQkAEiAkEgNgIADAULIAcNAgJAAkAgAA4CCgABC0EBIQYgAigCBCAFIAFBAWpBwNfAABCQASICQSA2AgBBACEADAgLIAIoAgQgBSABQQFrQdDXwAAQkAEiAEKggICAEDcCACAAIAQpAAA3AAggAEEQaiAEQQhqIgcvAAA7AABBAiEAIAIoAgQgAigCCCABQeDXwAAQkAEiBUECNgIEIAUgAzYCACAFIAQpAAA3AAggBUEQaiAHLwAAOwAAIAIoAgQgAigCCCABQQFqIgNB8NfAABCQASgCBEECRgRAIAIoAgQgAigCCCABQQJqQYDYwAAQkAEiAUKggICAEDcCACABIAQpAAA3AAggAUEQaiAHLwAAOwAACyACKAIEIAIoAgggA0GQ2MAAEJABIgJBIDYCAAwECyAAQRVB9MbAABBLAAsgAEG0AUGEx8AAEEsACyACKAIEIAUgAUEBa0Gg18AAEJABIgBCoICAgBA3AgAgACAEKQAANwAIIABBEGogBEEIai8AADsAACACKAIEIAIoAgggAUGw18AAEJABDAMLIAkgBSABQeDWwAAQkAEiAEEBNgIEIAAgAzYCACAAIAQpAAA3AAggAEEQaiAEQQhqLwAAOwAAIAIoAgQgAigCCCAIQfDWwAAQkAEiAkEgNgIAQQEhAAwDC0EAIQYMAgsgBiAFIAFB4NXAABCQAQsiAiADNgIAQQEhBkEBIQALIAIgBjYCBCACIAQpAAA3AAggAkEQaiAEQQhqLwAAOwAACyAAC6IGAQx/IwBBEGsiBiQAQQohAwJAIAAoAgAiAEGQzgBJBEAgACECDAELA0AgBkEGaiADaiIEQQRrIABBkM4AbiICQfCxA2wgAGoiB0H//wNxQeQAbiIIQQF0QZXnwABqLwAAOwAAIARBAmsgCEGcf2wgB2pB//8DcUEBdEGV58AAai8AADsAACADQQRrIQMgAEH/wdcvSyACIQANAAsLIAJB4wBLBEAgA0ECayIDIAZBBmpqIAIgAkH//wNxQeQAbiICQZx/bGpB//8DcUEBdEGV58AAai8AADsAAAsCQCACQQpPBEAgA0ECayIAIAZBBmpqIAJBAXRBlefAAGovAAA7AAAMAQsgA0EBayIAIAZBBmpqIAJBMHI6AAALQQogAGshBEEBIQNBK0GAgMQAIAEoAhQiAkEBcSIFGyEHIAJBBHFBAnYhCCAGQQZqIABqIQoCQCABKAIARQRAIAEoAhwiACABKAIgIgEgByAIEHgNASAAIAogBCABKAIMEQMAIQMMAQsgASgCBCIJIAQgBWoiC00EQCABKAIcIgAgASgCICIBIAcgCBB4DQEgACAKIAQgASgCDBEDACEDDAELIAJBCHEEQCABKAIQIQwgAUEwNgIQIAEtABghDSABQQE6ABggASgCHCICIAEoAiAiCyAHIAgQeA0BIAAgCWogBWtBCWshAANAIABBAWsiAARAIAJBMCALKAIQEQIARQ0BDAMLCyACIAogBCALKAIMEQMADQEgASANOgAYIAEgDDYCEEEAIQMMAQsgCSALayECAkACQAJAQQEgAS0AGCIAIABBA0YbIgBBAWsOAgABAgsgAiEAQQAhAgwBCyACQQF2IQAgAkEBakEBdiECCyAAQQFqIQAgASgCECEJIAEoAiAhBSABKAIcIQECQANAIABBAWsiAEUNASABIAkgBSgCEBECAEUNAAsMAQsgASAFIAcgCBB4DQAgASAKIAQgBSgCDBEDAA0AQQAhAANAIAAgAkYEQEEAIQMMAgsgAEEBaiEAIAEgCSAFKAIQEQIARQ0ACyAAQQFrIAJJIQMLIAZBEGokACADC8kFAgp/AX4jAEGQAWsiBCQAAkACQAJAA0BBACACQQR0ayEFAkADQCACRQ0FIABFDQUgACACakEYSQ0DIAAgAiAAIAJJIgMbQQlJDQEgA0UEQCABIQMDQCADIAVqIgEgAyACEGogASEDIAIgACACayIATQ0ACwwBCwtBACAAQQR0IgNrIQUDQCABIAVqIAEgABBqIAEgA2ohASACIABrIgIgAE8NAAsMAQsLIAEgAEEEdCIFayIDIAJBBHQiBmohByAAIAJLDQEgBEEQaiIAIAMgBRAWGiADIAEgBhASIAcgACAFEBYaDAILIARBCGoiByABIABBBHRrIgZBCGopAgA3AwAgBCAGKQIANwMAIAJBBHQhCCACIgUhAQNAIAYgAUEEdGohAwNAIARBGGoiCSADQQhqIgopAgA3AwAgBCADKQIANwMQIAcpAwAhDSADIAQpAwA3AgAgCiANNwIAIAcgCSkDADcDACAEIAQpAxA3AwAgACABSwRAIAMgCGohAyABIAJqIQEMAQsLIAEgAGsiAQRAIAEgBSABIAVJGyEFDAEFIAQpAwAhDSAGQQhqIARBCGoiBykDADcCACAGIA03AgBBASAFIAVBAU0bIQlBASEBA0AgASAJRg0EIAYgAUEEdGoiBSkCACENIAcgBUEIaiIKKQIANwMAIAQgDTcDACABIAJqIQMDQCAEQRhqIgsgBiADQQR0aiIIQQhqIgwpAgA3AwAgBCAIKQIANwMQIAcpAwAhDSAIIAQpAwA3AgAgDCANNwIAIAcgCykDADcDACAEIAQpAxA3AwAgACADSwRAIAIgA2ohAwwBCyADIABrIgMgAUcNAAsgBCkDACENIAogBykDADcCACAFIA03AgAgAUEBaiEBDAALAAsACwALIARBEGoiACABIAYQFhogByADIAUQEiADIAAgBhAWGgsgBEGQAWokAAuQBQEIfwJAIAJBEEkEQCAAIQMMAQsCQEEAIABrQQNxIgYgAGoiBSAATQ0AIAZBAWsgACEDIAEhBCAGBEAgBiEHA0AgAyAELQAAOgAAIARBAWohBCADQQFqIQMgB0EBayIHDQALC0EHSQ0AA0AgAyAELQAAOgAAIANBAWogBEEBai0AADoAACADQQJqIARBAmotAAA6AAAgA0EDaiAEQQNqLQAAOgAAIANBBGogBEEEai0AADoAACADQQVqIARBBWotAAA6AAAgA0EGaiAEQQZqLQAAOgAAIANBB2ogBEEHai0AADoAACAEQQhqIQQgBSADQQhqIgNHDQALCyACIAZrIgdBfHEiCCAFaiEDAkAgASAGaiIEQQNxRQRAIAMgBU0NASAEIQEDQCAFIAEoAgA2AgAgAUEEaiEBIAVBBGoiBSADSQ0ACwwBCyADIAVNDQAgBEEDdCICQRhxIQYgBEF8cSIJQQRqIQFBACACa0EYcSEKIAkoAgAhAgNAIAIgBnYhCSAFIAkgASgCACICIAp0cjYCACABQQRqIQEgBUEEaiIFIANJDQALCyAHQQNxIQIgBCAIaiEBCwJAIAIgA2oiBiADTQ0AIAJBAWsgAkEHcSIEBEADQCADIAEtAAA6AAAgAUEBaiEBIANBAWohAyAEQQFrIgQNAAsLQQdJDQADQCADIAEtAAA6AAAgA0EBaiABQQFqLQAAOgAAIANBAmogAUECai0AADoAACADQQNqIAFBA2otAAA6AAAgA0EEaiABQQRqLQAAOgAAIANBBWogAUEFai0AADoAACADQQZqIAFBBmotAAA6AAAgA0EHaiABQQdqLQAAOgAAIAFBCGohASAGIANBCGoiA0cNAAsLIAAL6gQBCn8jAEEwayIDJAAgAyABNgIsIAMgADYCKCADQQM6ACQgA0IgNwIcIANBADYCFCADQQA2AgwCfwJAAkACQCACKAIQIgpFBEAgAigCDCIARQ0BIAIoAggiASAAQQN0aiEEIABBAWtB/////wFxQQFqIQcgAigCACEAA0AgAEEEaigCACIFBEAgAygCKCAAKAIAIAUgAygCLCgCDBEDAA0ECyABKAIAIANBDGogAUEEaigCABECAA0DIABBCGohACAEIAFBCGoiAUcNAAsMAQsgAigCFCIARQ0AIABBBXQhCyAAQQFrQf///z9xQQFqIQcgAigCCCEFIAIoAgAhAANAIABBBGooAgAiAQRAIAMoAiggACgCACABIAMoAiwoAgwRAwANAwsgAyAIIApqIgFBEGooAgA2AhwgAyABQRxqLQAAOgAkIAMgAUEYaigCADYCICABQQxqKAIAIQRBACEJQQAhBgJAAkACQCABQQhqKAIAQQFrDgIAAgELIAUgBEEDdGoiDCgCAA0BIAwoAgQhBAtBASEGCyADIAQ2AhAgAyAGNgIMIAFBBGooAgAhBAJAAkACQCABKAIAQQFrDgIAAgELIAUgBEEDdGoiBigCAA0BIAYoAgQhBAtBASEJCyADIAQ2AhggAyAJNgIUIAUgAUEUaigCAEEDdGoiASgCACADQQxqIAFBBGooAgARAgANAiAAQQhqIQAgCyAIQSBqIghHDQALCyAHIAIoAgRPDQEgAygCKCACKAIAIAdBA3RqIgAoAgAgACgCBCADKAIsKAIMEQMARQ0BC0EBDAELQQALIANBMGokAAurBAEMfyABQQFrIQ4gACgCBCEKIAAoAgAhCyAAKAIIIQwCQANAIAUNAQJ/AkAgAiADSQ0AA0AgASADaiEFAkACQAJAIAIgA2siB0EHTQRAIAIgA0cNASACIQMMBQsCQCAFQQNqQXxxIgYgBWsiBARAQQAhAANAIAAgBWotAABBCkYNBSAEIABBAWoiAEcNAAsgB0EIayIAIARPDQEMAwsgB0EIayEACwNAIAYoAgAiCUGAgoQIIAlBipSo0ABza3IgBkEEaigCACIJQYCChAggCUGKlKjQAHNrcnFBgIGChHhxQYCBgoR4Rw0CIAZBCGohBiAAIARBCGoiBE8NAAsMAQtBACEAA0AgACAFai0AAEEKRg0CIAcgAEEBaiIARw0ACyACIQMMAwsgBCAHRgRAIAIhAwwDCyAEIAVqIQYgAiAEayADayEHQQAhAAJAA0AgACAGai0AAEEKRg0BIAcgAEEBaiIARw0ACyACIQMMAwsgACAEaiEACyAAIANqIgRBAWohAwJAIAIgBE0NACAAIAVqLQAAQQpHDQBBACEFIAMiBAwDCyACIANPDQALCyACIAhGDQJBASEFIAghBCACCyEAAkAgDC0AAARAIAtBjOfAAEEEIAooAgwRAwANAQsgACAIayEHQQAhBiAAIAhHBEAgACAOai0AAEEKRiEGCyABIAhqIQAgDCAGOgAAIAQhCCALIAAgByAKKAIMEQMARQ0BCwtBASENCyANC6EEAgt/An4jAEHQAGshBAJAIABFDQAgAkUNACAEQQhqIgNBEGoiBiABIABBbGxqIgsiB0EQaigCADYCACADQQhqIgggB0EIaikCADcDACAEIAcpAgA3AwggAkEUbCEJIAIiAyEFA0AgCyADQRRsaiEBA0AgASkCACEOIAEgBCkDCDcCACAIKQMAIQ8gCCABQQhqIgopAgA3AwAgCiAPNwIAIAYoAgAhCiAGIAFBEGoiDCgCADYCACAMIAo2AgAgBCAONwMIIAAgA01FBEAgASAJaiEBIAIgA2ohAwwBCwsgAyAAayIDBEAgAyAFIAMgBUkbIQUMAQUgByAEKQMINwIAIAdBEGogBEEIaiIBQRBqIgYoAgA2AgAgB0EIaiABQQhqIggpAwA3AgBBASAFIAVBAU0bIQtBASEDA0AgAyALRg0DIAYgByADQRRsaiIFQRBqIgooAgA2AgAgCCAFQQhqIgwpAgA3AwAgBCAFKQIANwMIIAIgA2ohAQNAIAcgAUEUbGoiCSkCACEOIAkgBCkDCDcCACAIKQMAIQ8gCCAJQQhqIg0pAgA3AwAgDSAPNwIAIAYoAgAhDSAGIAlBEGoiCSgCADYCACAJIA02AgAgBCAONwMIIAAgAUsEQCABIAJqIQEMAQsgAyABIABrIgFHDQALIAUgBCkDCDcCACAKIAYoAgA2AgAgDCAIKQMANwIAIANBAWohAwwACwALAAsACwvRBAIDfwR+IwBB0AZrIgQkACAEQfwBakEAQYUEEB4aIARBgIDEADYC+AEgBEE0aiIFIAAgAUEBIAJBABAfIARB2ABqIAAgAUEBQQBBABAfIARBxAZqIgYgARBVIARBhAFqIAAQOSAEQQA6APABIAQgATYC1AEgBCAANgLQASAEQQA7Ae4BIARBAjoA6gEgBEECOgDmASAEQQE6AKQBIARCADcCnAEgBCACNgKAASAEQQE2AnwgBEEAOwHkASAEQQA6APUBIARBgIAENgDxASAEQgA3AtgBIAQgAUEBazYC4AEgBEECOgCwASAEQQI6ALQBIARBADYCwAEgBEECOgDEASAEQQI6AMgBIARBgICACDYCzAEgBEIANwKoASAEQoCAgAg3ArgBIARBmAFqIAZBCGooAgA2AgAgBEEAOgD2ASAEIAQpAsQGNwKQASAEQShqIABBAkEIQYzCwAAQYCAEKQMoIQcgBEEgaiAAQQJBDEGcwsAAEGAgBCkDICEIIARBGGogAEEEQQxBrMLAABBgIAQpAxghCSAEQRBqIABBBEEQQbzCwAAQYCAEKQMQIQogBEEIaiAAQQRBBEHMwsAAEGAgBCADQQBHOgDABiAEQQA2ArwGIARBADYCsAYgBCAKNwKoBiAEQQA2AqQGIAQgCTcCnAYgBEEANgKYBiAEIAg3ApAGIARBADYCjAYgBCAHNwKEBiAEIAQpAwg3ArQGQZwGEJkBIgBBADYCCCAAQoGAgIAQNwIAIABBDGogBUGQBhAWGiAEQdAGaiQAIABBCGoLxhACEX8EfiMAQSBrIgwkABAAIQogDEEANgIcIAwgCjYCGCAMIAE2AhQgDEEUaiAFEIQBIAwoAhwhASAGQf//A3G4EAkhBSAMKAIYIhUgASAFEAEjAEEgayIGJAACQEGwssEAKAIAIgUNAEG0ssEAQQA2AgBBsLLBAEEBNgIAQbiywQAoAgAhAUG8ssEAKAIAIQhBuLLBAEHY68AAKQIAIhg3AgAgBkEIakHg68AAKQIAIhk3AwBBxLLBACgCACEKQcCywQAgGTcCACAGIBg3AwAgBUUNACAIRQ0AAkAgCkUNACABQQhqIQkgASkDAEJ/hUKAgYKEiJCgwIB/gyEZQQEhCyABIQUDQCALRQ0BIBkhGANAIBhQBEAgBUHgAGshBSAJKQMAQn+FQoCBgoSIkKDAgH+DIRggCUEIaiEJDAELCyAYQgF9IBiDIRkgCkEBayIKIQsgBSAYeqdBA3ZBdGxqQQRrKAIAIgdBhAFJDQAgBxADDAALAAsgBkEUaiAIQQFqEEMgASAGKAIcayAGKAIUIAYoAhgQpgELIAZBIGokAEG0ssEAKAIARQRAQbSywQBBfzYCAEG8ssEAKAIAIgEgA3EhBiADrSIaQhmIQoGChIiQoMCAAX4hG0G4ssEAKAIAIQoDQCAGIApqKQAAIhkgG4UiGEKBgoSIkKDAgAF9IBhCf4WDQoCBgoSIkKDAgH+DIRgCQAJAA0AgGEIAUgRAIAMgCiAYeqdBA3YgBmogAXFBdGxqIgVBDGsoAgBGBEAgBUEIaygCACAERg0DCyAYQgF9IBiDIRgMAQsLIBkgGUIBhoNCgIGChIiQoMCAf4NQDQFBwLLBACgCAEUEQCMAQTBrIggkAAJAAkACQEHEssEAKAIAIgpBf0YNAEG8ssEAKAIAIglBAWoiC0EDdiEBIAkgAUEHbCAJQQhJGyIOQQF2IApNBEAgCEEIagJ/IAogDiAKIA5LGyIBQQdPBEAgAUH+////AUsNA0F/IAFBA3RBCGpBB25BAWtndkEBagwBC0EEQQggAUEDSRsLIgEQQyAIKAIIIgVFDQEgCCgCECEGIAgoAgwiCQRAQeyywQAtAAAaIAUgCRA1IQULIAVFDQIgBSAGakH/ASABQQhqEB4hCyAIQQA2AiAgCCABQQFrIgc2AhggCCALNgIUIAhBCDYCECAIIAcgAUEDdkEHbCABQQlJGyIONgIcIAtBDGshEUG4ssEAKAIAIgYpAwBCf4VCgIGChIiQoMCAf4MhGCAGIQEgCiEJQQAhBQNAIAkEQANAIBhQBEAgBUEIaiEFIAEpAwhCf4VCgIGChIiQoMCAf4MhGCABQQhqIQEMAQsLIAggCyAHIAYgGHqnQQN2IAVqIg1BdGxqIgZBDGsoAgAiECAGQQhrKAIAIBAbrRBkIBEgCCgCAEF0bGoiEEG4ssEAKAIAIgYgDUF0bGpBDGsiDSkAADcAACAQQQhqIA1BCGooAAA2AAAgCUEBayEJIBhCAX0gGIMhGAwBCwsgCCAKNgIgIAggDiAKazYCHEEAIQEDQCABQRBHBEAgAUG4ssEAaiIFKAIAIQYgBSABIAhqQRRqIgUoAgA2AgAgBSAGNgIAIAFBBGohAQwBCwsgCCgCGCIBRQ0DIAhBJGogAUEBahBDIAgoAhQgCCgCLGsgCCgCJCAIKAIoEKYBDAMLIAEgC0EHcUEAR2ohBUG4ssEAKAIAIgYhAQNAIAUEQCABIAEpAwAiGEJ/hUIHiEKBgoSIkKDAgAGDIBhC//79+/fv37//AIR8NwMAIAFBCGohASAFQQFrIQUMAQUCQCALQQhPBEAgBiALaiAGKQAANwAADAELIAZBCGogBiALEBILIAZBCGohESAGQQxrIRAgBiEFQQAhAQNAAkACQCABIAtHBEAgASAGaiITLQAAQYABRw0CIAFBdGwiByAQaiEUIAYgB2oiB0EIayEWIAdBDGshFwNAIAEgFygCACIHIBYoAgAgBxsiByAJcSIPayAGIAkgB60QRCINIA9rcyAJcUEISQ0CIAYgDWoiDy0AACAPIAdBGXYiBzoAACARIA1BCGsgCXFqIAc6AAAgDUF0bCEHQf8BRwRAIAYgB2ohDUF0IQcDQCAHRQ0CIAUgB2oiDy0AACESIA8gByANaiIPLQAAOgAAIA8gEjoAACAHQQFqIQcMAAsACwsgE0H/AToAACARIAFBCGsgCXFqQf8BOgAAIAcgEGoiB0EIaiAUQQhqKAAANgAAIAcgFCkAADcAAAwCC0HAssEAIA4gCms2AgAMBwsgEyAHQRl2Igc6AAAgESABQQhrIAlxaiAHOgAACyABQQFqIQEgBUEMayEFDAALAAsACwALIwBBIGsiACQAIABBADYCGCAAQQE2AgwgAEHI6sAANgIIIABCBDcCECAAQQhqQfzqwAAQigEACwALIAhBMGokAAsgAyAEEAghASAMQQhqQbiywQAoAgBBvLLBACgCACAaEGQgDCgCCCEFIAwtAAwhBkHEssEAQcSywQAoAgBBAWo2AgBBwLLBAEHAssEAKAIAIAZBAXFrNgIAQbiywQAoAgAgBUF0bGoiBUEEayABNgIAIAVBCGsgBDYCACAFQQxrIAM2AgALIAVBBGsoAgAQBCEBQbSywQBBtLLBACgCAEEBajYCACACIAEgFRAFIABBADYCACAMQSBqJAAPCyAOQQhqIg4gBmogAXEhBgwACwALIwBBMGsiACQAIABBATYCDCAAQejlwAA2AgggAEIBNwIUIAAgAEEvaq1CgICAgLABhDcDICAAIABBIGo2AhAgAEEIakHQ7MAAEIoBAAu9AwEHfyABQQFrIQlBACABayEKIABBAnQhCCACKAIAIQUDQAJAIAVFDQAgBSEBA0ACQAJAAkACfwJAIAEoAggiBUEBcUUEQCABKAIAQXxxIgsgAUEIaiIGayAISQ0DIAsgCGsgCnEiBSAGIAMgACAEEQIAQQJ0akEIakkEQCAGKAIAIQUgBiAJcQ0EIAIgBUF8cTYCACABIgUoAgAMAwtBACECIAVBADYCACAFQQhrIgVCADcCACAFIAEoAgBBfHE2AgACQCABKAIAIgBBAnENACAAQXxxIgBFDQAgACAAKAIEQQNxIAVyNgIEIAUoAgRBA3EhAgsgBSABIAJyNgIEIAEgASgCCEF+cTYCCCABIAEoAgAiAEEDcSAFciICNgIAIABBAnENASAFKAIADAILIAEgBUF+cTYCCCABKAIEQXxxIgUEf0EAIAUgBS0AAEEBcRsFQQALIQUgARBAIAEtAABBAnENAwwECyABIAJBfXE2AgAgBSgCAEECcgshAiAFIAJBAXI2AgAgBUEIaiEHDAQLIAIgBTYCAAwECyAFIAUoAgBBAnI2AgALIAIgBTYCACAFIQEMAAsACwsgBwv0AwEFfyMAQTBrIgYkACACIAFrIgcgA0shCSACQQFrIgggACgCHCIFQQFrSQRAIAAgCEGgzsAAEGJBADoADAsgAyAHIAkbIQMCQAJAIAFFBEACQCACIAVHBEAgBkEQaiAAKAIYIAQQKyAFQQR0IAJBBHRrIQcgAEEMaiEJIAAoAhQiASACIAVraiEEIAEhAgNAIANFBEAgBigCECAGKAIUQQRBFBCfAQwFCyAGQSBqIAZBEGoQVCABIARJDQIgCSgCACIIIAJGBEAjAEEQayIFJAAgBUEIaiAJIAhBAUEEQRAQJiAFKAIIIghBgYCAgHhHBEAgBSgCDBogCEGwzsAAEK4BAAsgBUEQaiQACyAAKAIQIARBBHRqIQUgAiAESwRAIAVBEGogBSAHEBILIAUgBikCIDcCACAAIAJBAWoiAjYCFCAFQQhqIAZBKGopAgA3AgAgA0EBayEDIAdBEGohBwwACwALIAAgAyAAKAIYIAQQLgwCCyAEIAJBsM7AABBMAAsgACABQQFrQcDOwAAQYkEAOgAMIAZBCGogACABIAJB0M7AABBnIAYoAgwiASADSQ0BIAMgBigCCCADQQR0aiABIANrEBUgACACIANrIAIgBBAqCyAAQQE6ACAgBkEwaiQADwtBpMjAAEEjQbzJwAAQcQALlAMBBX8CQCACQRBJBEAgACEDDAELAkBBACAAa0EDcSIFIABqIgQgAE0NACAFQQFrIAAhAyAFBEAgBSEGA0AgAyABOgAAIANBAWohAyAGQQFrIgYNAAsLQQdJDQADQCADIAE6AAAgA0EHaiABOgAAIANBBmogAToAACADQQVqIAE6AAAgA0EEaiABOgAAIANBA2ogAToAACADQQJqIAE6AAAgA0EBaiABOgAAIAQgA0EIaiIDRw0ACwsgBCACIAVrIgJBfHFqIgMgBEsEQCABQf8BcUGBgoQIbCEFA0AgBCAFNgIAIARBBGoiBCADSQ0ACwsgAkEDcSECCwJAIAIgA2oiBSADTQ0AIAJBAWsgAkEHcSIEBEADQCADIAE6AAAgA0EBaiEDIARBAWsiBA0ACwtBB0kNAANAIAMgAToAACADQQdqIAE6AAAgA0EGaiABOgAAIANBBWogAToAACADQQRqIAE6AAAgA0EDaiABOgAAIANBAmogAToAACADQQFqIAE6AAAgBSADQQhqIgNHDQALCyAAC7EDAQV/IwBBQGoiBiQAIAZBADsAEiAGQQI6AA4gBkECOgAKIAZBMGoiB0EIaiIIIAUgBkEKaiAFGyIFQQhqLwAAOwEAIAYgBSkAADcDMCAGQRRqIAEgBxArIAYgAkEEQRBB8MzAABBgIAZBADYCLCAGIAYpAwA3AiQgBkEkaiACEI0BQQEgAiACQQFNGyIJQQFrIQcgBigCKCAGKAIsIgpBBHRqIQUCfwNAIAcEQCAGQTBqIAZBFGoQVCAFIAYpAjA3AgAgBUEIaiAIKQIANwIAIAdBAWshByAFQRBqIQUMAQUCQCAJIApqIQcCQCACRQRAIAYoAhQgBigCGEEEQRQQnwEgB0EBayEHDAELIAUgBikCFDcCACAFQQhqIAZBHGopAgA3AgALIAYgBzYCLCADQQFxRQ0AIAQEQCAGQSRqIAQQjQELIARBCm4gBGohBUEBDAMLCwsgBkEkakHoBxCNAUEACyEDIAAgBikCJDcCDCAAIAI2AhwgACABNgIYIABBADoAICAAIAU2AgggACAENgIEIAAgAzYCACAAQRRqIAZBLGooAgA2AgAgBkFAayQAC6YDAQN/IwBBEGsiBiQAIAMgACgCGCABayIFIAMgBUkbIQMgASAAIAJBoM3AABBiIgAoAggiAkEBayIFIAEgBUkbIQEgACgCBCACIAFB2NjAABCQASIFKAIERQRAIAVCoICAgBA3AgAgBSAEKQAANwAIIAVBEGogBEEIaiIHLwAAOwAAIAAoAgQgACgCCCABQQFrQejYwAAQkAEiBUKggICAEDcCACAFIAQpAAA3AAggBUEQaiAHLwAAOwAACyAGQQhqIAAoAgQgACgCCCABQfjYwAAQfwJAIAMgBigCDCIFTQRAIAUgA2siBSAGKAIIIAVBFGxqIAMQGSAAKAIEIAAoAgggAUGI2cAAEJABIgEoAgRFBEAgAUKggICAEDcCACABIAQpAAA3AAggAUEQaiAEQQhqLwAAOwAAIAJFDQIgACgCBCACQRRsaiIAQRRrIgFFDQIgAUEgNgIAIABBEGtBATYCACAAQQxrIgAgBCkAADcAACAAQQhqIARBCGovAAA7AAALIAZBEGokAA8LQczJwABBIUHwycAAEHEAC0GY2cAAELYBAAv2AgEEfwJAIAACfwJAAkACQAJAAkAgACgCpAEiAkEBTQRAAkAgAUH/AEsNACAAIAJqQbABai0AAEEBcUUNACABQQJ0QbjQwABqKAIAIQELIAAoAmgiAyAAKAKcASIETw0DIAAoAmwhAiAALQC9AQ0BDAILIAJBAkGo5cAAEEsACyAAIAMgAkEBIABBsgFqECALIAAgAyACIAEgAEGyAWoQEyIFDQELIAAtAL8BDQEgACADQQFrIAAoAmwiAiABIABBsgFqIgUQE0UEQCAAIANBAmsgAiABIAUQExoLIARBAWsMAgsgACADIAVqIgE2AmggASAERw0CIAAtAL8BDQIgBEEBawwBCwJAIAAoAmwiAiAAKAKsAUcEQCACIAAoAqABQQFrTw0BIAAgAhCwASAAIAJBAWoiAjYCbAwBCyAAIAIQsAEgAEEBEIcBIAAoAmwhAgsgAEEAIAIgASAAQbIBahATCzYCaAsgACgCYCAAKAJkIAIQkQEL+gIAAkACQAJAAkACQAJAAkAgA0EBaw4GAAECAwQFBgsgACgCGCEEIAAgAkHQzcAAEGIiA0EAOgAMIAMoAgQgAygCCCABIAQgBRAnIAAgAkEBaiAAKAIcIAUQKg8LIAAoAhghAyAAIAJB4M3AABBiIgQoAgQgBCgCCEEAIAFBAWoiASADIAEgA0kbIAUQJyAAQQAgAiAFECoPCyAAQQAgACgCHCAFECoPCyAAKAIYIQMgACACQfDNwAAQYiIAKAIEIAAoAgggASADIAUQJyAAQQA6AAwPCyAAKAIYIQMgACACQYDOwAAQYiIAKAIEIAAoAghBACABQQFqIgAgAyAAIANJGyAFECcPCyAAKAIYIQEgACACQZDOwAAQYiIAKAIEIAAoAghBACABIAUQJyAAQQA6AAwPCyAAKAIYIQMgACACQcDNwAAQYiIAKAIEIAAoAgggASABIAQgAyABayIBIAEgBEsbaiIBIAUQJyABIANGBEAgAEEAOgAMCwvUAgEFfyMAQUBqIgMkACADQQA2AiAgAyABNgIYIAMgASACajYCHCADQRBqIANBGGoQTQJAIAMoAhBFBEAgAEEANgIIIABCgICAgMAANwIADAELIAMoAhQhBCADQQhqQQRBBEEEQZTIwAAQYCADKAIIIQUgAygCDCIGIAQ2AgAgA0EBNgIsIAMgBjYCKCADIAU2AiQgA0E4aiADQSBqKAIANgIAIAMgAykCGDcDMEEEIQVBASEEA0AgAyADQTBqEE0gAygCAEEBR0UEQCADKAIEIQcgAygCJCAERgRAIANBJGogBEEBQQRBBBBtIAMoAighBgsgBSAGaiAHNgIAIAMgBEEBaiIENgIsIAVBBGohBQwBCwsgACADKQIkNwIAIABBCGogA0EsaigCADYCAAsDQCACBEAgAUEAOgAAIAJBAWshAiABQQFqIQEMAQsLIANBQGskAAvKAgIFfwJ+IwBBIGsiAiQAIAACfwJAAkAgAS0AIEUEQAwBCyABQQA6ACACQCABKAIAQQFGBEAgASgCFCIFIAEoAhxrIgMgASgCCEsNAQsMAQsgBSADIAEoAgRrIgRPBEBBACEDIAFBADYCFCACIAFBDGo2AhQgAiABKAIQIgY2AgwgAiAENgIYIAIgBSAEazYCHCACIAYgBEEEdGo2AhAgAS0AvAENAkEUQQQQfCEBIAJBDGoiA0EIaikCACEHIAIpAgwhCCABQRBqIANBEGooAgA2AgAgAUEIaiAHNwIAIAEgCDcCAEGg5MAADAMLIAQgBUH0y8AAELMBAAsgAkEANgIMQQEhAyABLQC8AQ0AQQBBARB8IQFBhOTAAAwBC0EAQQEQfCEBIANFBEAgAkEMahBYC0GE5MAACzYCBCAAIAE2AgAgAkEgaiQAC5ICAQV/AkACQAJAQX8gACgCnAEiAyABRyABIANJG0H/AXEOAgIBAAsgACAAKAJYIgMEfyAAKAJUIQUDQCADQQJJRQRAIANBAXYiBiAEaiIHIAQgBSAHQQJ0aigCACABSRshBCADIAZrIQMMAQsLIAQgBSAEQQJ0aigCACABSWoFQQALNgJYDAELQQAgASADQXhxQQhqIgRrIgNBACABIANPGyIDQQN2IANBB3FBAEdqayEDIABB0ABqIQUDQCADRQ0BIAUgBEHc4sAAEHsgA0EBaiEDIARBCGohBAwACwALIAIgACgCoAFHBEAgAEEANgKoASAAIAJBAWs2AqwBCyAAIAI2AqABIAAgATYCnAEgABARC/IBAgR/AX4jAEEQayIGJAACQCACIAIgA2oiA0sEQEEAIQIMAQtBACECIAQgBWpBAWtBACAEa3GtQQhBBCAFQQFGGyIHIAEoAgAiCEEBdCIJIAMgAyAJSRsiAyADIAdJGyIHrX4iCkIgiKcNACAKpyIDQYCAgIB4IARrSw0AIAQhAgJ/IAgEQCAFRQRAIAZBCGogBCADEIwBIAYoAggMAgsgASgCBCAFIAhsIAQgAxB+DAELIAYgBCADEIwBIAYoAgALIgVFDQAgASAHNgIAIAEgBTYCBEGBgICAeCECCyAAIAM2AgQgACACNgIAIAZBEGokAAuZAgEDfwJAAkACQCABIAJGDQAgACABIAJBoNXAABCQASgCBEUEQCAAIAEgAkEBa0Gw1cAAEJABIgVCoICAgBA3AgAgBSAEKQAANwAIIAVBEGogBEEIai8AADsAAAsgAiADSw0BIAEgA0kNAiADQRRsIgYgAkEUbCICayEFIAAgAmohAiAEQQhqIQcDQCAFBEAgAkKggICAEDcCACACIAQpAAA3AAggAkEQaiAHLwAAOwAAIAVBFGshBSACQRRqIQIMAQsLIAEgA00NACAAIAZqIgAoAgQNACAAQqCAgIAQNwIAIAAgBCkAADcACCAAQRBqIARBCGovAAA7AAALDwsgAiADQcDVwAAQtQEACyADIAFBwNXAABCzAQALiwIBA38jAEEwayIDJAAgAyACNgIYIAMgATYCFAJAIANBFGoQWiIBQf//A3FBA0YEQCAAQQA2AgggAEKAgICAIDcCAAwBCyADQQhqQQRBAkECQZTIwAAQYCADKAIIIQIgAygCDCIEIAE7AQAgA0EBNgIkIAMgBDYCICADIAI2AhwgAyADKQIUNwIoQQIhAUEBIQIDQCADQShqEFoiBUH//wNxQQNGRQRAIAMoAhwgAkYEQCADQRxqIAJBAUECQQIQbSADKAIgIQQLIAEgBGogBTsBACADIAJBAWoiAjYCJCABQQJqIQEMAQsLIAAgAykCHDcCACAAQQhqIANBJGooAgA2AgALIANBMGokAAuFAgEDfyMAQTBrIgMkACADIAI2AhggAyABNgIUAkAgA0EUahBOQf//A3EiAUUEQCAAQQA2AgggAEKAgICAIDcCAAwBCyADQQhqQQRBAkECQZTIwAAQYCADKAIIIQIgAygCDCIEIAE7AQAgA0EBNgIkIAMgBDYCICADIAI2AhwgAyADKQIUNwIoQQIhAUEBIQIDQCADQShqEE5B//8DcSIFBEAgAygCHCACRgRAIANBHGogAkEBQQJBAhBtIAMoAiAhBAsgASAEaiAFOwEAIAMgAkEBaiICNgIkIAFBAmohAQwBCwsgACADKQIcNwIAIABBCGogA0EkaigCADYCAAsgA0EwaiQAC4MCAQJ/IwBBMGsiBCQAIARBEGogACgCGCADECsgBEEIaiAAEHIgBCABIAIgBCgCCCAEKAIMQeDPwAAQbAJAIAQoAgQiAEUEQCAEKAIQIAQoAhRBBEEUEJ8BDAELIABBBHQiAUEQayEDIAEgBCgCACIAaiICQRBrIQEDQCADBEAgBEEgaiIFIARBEGoQVCAAKAIAIABBBGooAgBBBEEUEJ8BIABBCGogBUEIaikCADcCACAAIAQpAiA3AgAgA0EQayEDIABBEGohAAwBBSABKAIAIAJBDGsoAgBBBEEUEJ8BIAFBCGogBEEYaikCADcCACABIAQpAhA3AgALCwsgBEEwaiQAC4ACAQZ/IwBBIGsiAyQAIANBCGogAUEEQRRBkNXAABBgIANBADYCHCADIAMpAwg3AhQgA0EUaiABEI4BQQEgASABQQFNGyIGQQFrIQUgAygCGCADKAIcIgdBFGxqIQQgAkEIaiEIAkADQCAFBEAgBEKggICAEDcCACAEIAIpAAA3AAggBEEQaiAILwAAOwAAIAVBAWshBSAEQRRqIQQMAQUCQCAGIAdqIQUgAQ0AIAVBAWshBQwDCwsLIARCoICAgBA3AgAgBCACKQAANwAIIARBEGogAkEIai8AADsAAAsgACADKQIUNwIAIABBCGogBTYCACAAQQA6AAwgA0EgaiQAC9QBAQV/AkAgACgChAQiAUF/RwRAIAFBAWohAyABQSBJDQEgA0EgQdTbwAAQswEAC0HU28AAEH0ACyAAQQRqIgEgA0EEdGohBQNAIAEgBUZFBEACQCABKAIAIgJBf0cEQCACQQZJDQEgAkEBakEGQaThwAAQswEAC0Gk4cAAEH0ACyABQQRqIQQgAUEQaiACQQF0QQJqIQIDQCACBEAgBEEAOwEAIAJBAmshAiAEQQJqIQQMAQsLIAFBADYCACEBDAELCyAAQYCAxAA2AgAgAEEANgKEBAvzAQEBfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgASgCACIDQYCAxABGBEAgAkHg//8AcUHAAEYNASACQTdrDgIDBAILIAJBMEYNBiACQThGDQUgA0Eoaw4CCQoNCyAAIAJBQGsQSA8LIAJB4wBGDQIMCwsgAEEROgAADwsgAEEPOgAADwsgAEEkOgAAIAFBADoAiAQPCyADQSNrDgcBBwcHBwMGBwsgA0Eoaw4CAQQGCyAAQQ46AAAPCyAAQZoCOwEADwsgAEEaOwEADwsgAkEwRw0BCyAAQZkCOwEADwsgAEEZOwEADwsgAEEyOgAAC8UBAQJ/IwBBMGsiBCQAIARBDGogAiADECsgBCABNgIcIABBDGogARCNASABBEAgACgCECAAKAIUIgJBBHRqIQMCQANAAkAgBEEgaiIFIARBDGoQVCAEKAIgQYCAgIB4Rg0AIAMgBCkCIDcCACADQQhqIAVBCGopAgA3AgAgA0EQaiEDIAJBAWohAiABQQFrIgENAQwCCwtBgICAgHggBCgCJBCjAQsgACACNgIUCyAEKAIMIAQoAhBBBEEUEJ8BIARBMGokAAuHAQEDfyMAQSBrIgEkACABQQRqIAAQViABKAIEIgAtAHBBAXEEfyAAKAJsIQMgACgCaCEAIAFBADYCEBAAIQIgAUEANgIcIAEgAjYCGCABIAFBEGo2AhQgAUEUaiICIAAQhAEgAiADEIQBIAEoAhgFQYABCyABKAIIIAEoAgwQogEgAUEgaiQAC8EBAQV/IwBBEGsiAiQAQQEhBAJAIAEoAhwiA0G7gMAAQQUgASgCICIGKAIMIgURAwANAAJAIAEtABRBBHFFBEAgA0GS58AAQQEgBREDAA0CIAAgAyAGEDdFDQEMAgsgA0GT58AAQQIgBREDAA0BIAIgBjYCBCACIAM2AgAgAkEBOgAPIAIgAkEPajYCCCAAIAJB9ObAABA3DQEgAkGQ58AAQQIQGA0BCyADQZaqwQBBASAFEQMAIQQLIAJBEGokACAEC7ABAQF/IABBADYCACAAQQhrIgQgBCgCAEF+cTYCAAJAIAIgAxEFAEUNAAJAAkAgAEEEaygCAEF8cSICRQ0AIAItAABBAXENACAEEEAgBC0AAEECcUUNASACIAIoAgBBAnI2AgAPCyAEKAIAIgJBAnENASACQXxxIgJFDQEgAi0AAEEBcQ0BIAAgAigCCEF8cTYCACACIARBAXI2AggLDwsgACABKAIANgIAIAEgBDYCAAunAQECfyMAQSBrIgIkACACIAAoAmg2AgwgAkEAOgAcIAIgACgCVCIDNgIQIAIgAyAAKAJYQQJ0ajYCFCACIAJBDGo2AhggAAJ/AkACQANAIAFBAWsiAQRAIAJBEGoQSQ0BDAILCyACQRBqEEkiAQ0BCyAAKAKcASIDQQFrIgAMAQsgACgCnAEiA0EBayEAIAEoAgALIgEgACABIANJGzYCaCACQSBqJAALowEBAX8jAEFAaiIDJAAgA0EcaiAAEF4gAygCHCIAIAEgAhAlIANBKGogAEHgAGooAgAgAEHkAGooAgAQIyADQRBqIAAQJCADIAMpAxA3AjQgA0EIaiADKAIsIAMoAjAQWyADKAIMIQAgAygCCEEBcQRAIAMgADYCPCADQTxqQezCwAAQQgALIANBKGoQbiADKAIgIAMoAiQQsgEgA0FAayQAIAALmQEBA38gAUFsbCECIAFB/////wNxIQMgACABQRRsaiEBQQAhAAJAA0AgAkUNAQJAIAFBFGsiBCgCAEEgRw0AIAFBEGsoAgBBAUcNACABQQxrLQAAQQJHDQAgAUEIay0AAEECRw0AIAFBBGstAAANACABQQNrLQAAQR9xDQAgAkEUaiECIABBAWohACAEIQEMAQsLIAAhAwsgAwuxAQECfyMAQRBrIgIkAAJAIAFFDQAgAUEDakECdiEBAkAgAEEETQRAIAFBAWsiA0GAAkkNAQsgAkGsssEAKAIANgIIIAEgACACQQhqQaiqwQBBBEEFEE8hAEGsssEAIAIoAgg2AgAMAQsgAkGsssEANgIEIAIgA0ECdEGsqsEAaiIDKAIANgIMIAEgACACQQxqIAJBBGpBBkEHEE8hACADIAIoAgw2AgALIAJBEGokACAAC6ABAQN/IwBBEGsiBSQAIAVBCGogACABIAJB4M7AABBnIAUoAgwiBiADIAIgAWsiByADIAdJGyIDTwRAIAYgA2siBiAFKAIIIAZBBHRqIAMQFSAAIAEgASADaiAEECogAQRAIAAgAUEBa0HwzsAAEGJBADoADAsgACACQQFrQYDPwAAQYkEAOgAMIAVBEGokAA8LQczJwABBIUHwycAAEHEAC6gBAQF/IwBBQGoiAyQAIANBCGogACgCABACIAMoAgghACADIAMoAgw2AgQgAyAANgIAIANBATYCMCADQQI2AhggA0GYqsEANgIUIANCATcCICADIAMoAgQiADYCPCADIAMoAgA2AjggAyAANgI0IAMgA0E0ajYCLCADIANBLGo2AhwgASACIANBFGoQFyADKAI0IgEEQCADKAI4QQEgARA4CyADQUBrJAALpAEBAX8jAEEQayIDJAACQCAARQ0AIAJFDQACQCABQQRNBEAgAkEDakECdkEBayIBQYACSQ0BCyADQayywQAoAgA2AgggACADQQhqQaiqwQBBAhAxQayywQAgAygCCDYCAAwBCyADQayywQA2AgQgAyABQQJ0QayqwQBqIgEoAgA2AgwgACADQQxqIANBBGpBAxAxIAEgAygCDDYCAAsgA0EQaiQAC4sBAQJ/IwBBEGsiAiQAIAJCgICAgMAANwIEIAJBADYCDCABQQhrIgNBACABIANPGyIBQQN2IAFBB3FBAEdqIQFBCCEDA0AgAQRAIAJBBGogA0Gs4sAAEHsgAUEBayEBIANBCGohAwwBBSAAIAIpAgQ3AgAgAEEIaiACQQxqKAIANgIAIAJBEGokAAsLC40BAQR/IAEgACgCACAAKAIIIgRrSwRAIAAgBCABQQFBARBtIAAoAgghBAsgACgCBCAEaiEFQQEgASABQQFNGyIGQQFrIQMCQANAIAMEQCAFIAI6AAAgA0EBayEDIAVBAWohBQwBBQJAIAQgBmohAyABDQAgA0EBayEDDAMLCwsgBSACOgAACyAAIAM2AggLAwAAC3oBAn8CfyACRQRAQQEMAQsDQCACQQFNBEACQCABIARBAnRqKAIAIgEgA0cNAEEADAMLBSAEIAJBAXYiBSAEaiIEIAEgBEECdGooAgAgA0sbIQQgAiAFayECDAELCyAEIAEgA0lqIQRBAQshAiAAIAQ2AgQgACACNgIAC4gBAQJ/IwBBEGsiAyQAIAMgASgCACIFKAIANgIMQQEhBEGAECACQQJqIgEgAWwiASABQYAQTRsiAkEEIANBDGpBAUEEQQUQTyEBIAUgAygCDDYCACABBEAgAUIANwIEIAEgASACQQJ0akECcjYCAEEAIQQLIAAgATYCBCAAIAQ2AgAgA0EQaiQAC40BAQN/IwBBkAZrIgMkACAAEKgBIABBCGshAgJAAkAgAUUEQCACKAIAQQFHDQIgAyAAQQRqQZAGEBYgAkEANgIAAkAgAkF/Rg0AIABBBGsiBCgCAEEBayEAIAQgADYCACAADQAgAkEEQZwGEDgLEEcMAQsgAhCcAQsgA0GQBmokAA8LQaDBwABBPxC5AQAL3wEBBH8jAEEQayIEJAAgASgCCCIDIAJPBEAgBEEIaiADIAJrIgNBBEEUQcjawAAQYCAEKAIIIQUgBCgCDCABIAI2AgggASgCBCACQRRsaiADQRRsEBYhASAAIAM2AgggACABNgIEIAAgBTYCACAEQRBqJAAPCyMAQTBrIgAkACAAIAM2AgQgACACNgIAIABBAzYCDCAAQfjFwAA2AgggAEICNwIUIAAgAEEEaq1CgICAgOABhDcDKCAAIACtQoCAgIDgAYQ3AyAgACAAQSBqNgIQIABBCGpByNrAABCKAQALfgEDfwJAIAAoAgAiAUECcQ0AIAFBfHEiAkUNACACIAIoAgRBA3EgACgCBEF8cXI2AgQgACgCACEBCyAAKAIEIgJBfHEiAwRAIAMgAygCAEEDcSABQXxxcjYCACAAKAIEIQIgACgCACEBCyAAIAJBA3E2AgQgACABQQNxNgIAC38BAn8gACABIAAoAggiA2siBBCOASAEBEAgAyABayEEIAEgACgCCCIBaiADayEDIAAoAgQgAUEUbGohAQNAIAFCoICAgBA3AgAgAUEIaiACKQAANwAAIAFBEGogAkEIai8AADsAACABQRRqIQEgBEEBaiIEDQALIAAgAzYCCAsLggEBAX8jAEFAaiICJAAgAkErNgIMIAJBkIDAADYCCCACQYCAwAA2AhQgAiAANgIQIAJBAjYCHCACQeTmwAA2AhggAkICNwIkIAIgAkEQaq1CgICAgMABhDcDOCACIAJBCGqtQoCAgIDQAYQ3AzAgAiACQTBqNgIgIAJBGGogARCKAQALdgIBfwF+AkACQCABrUIMfiIDQiCIpw0AIAOnIgJBeEsNACACQQdqQXhxIgIgAUEIamohASABIAJJDQEgAUH4////B00EQCAAIAI2AgggACABNgIEIABBCDYCAA8LIABBADYCAA8LIABBADYCAA8LIABBADYCAAt2AQJ/IAKnIQNBCCEEA0AgASADcSIDIABqKQAAQoCBgoSIkKDAgH+DIgJCAFJFBEAgAyAEaiEDIARBCGohBAwBCwsgAnqnQQN2IANqIAFxIgEgAGosAABBAE4EfyAAKQMAQoCBgoSIkKDAgH+DeqdBA3YFIAELC3QBBn8gACgCBCEGIAAoAgAhAgJAA0AgASADRg0BAkAgAiAGRg0AIAAgAkEQaiIHNgIAIAIoAgQhBSACKAIAIgJBgICAgHhGDQAgAiAFEKMBIANBAWohAyAHIQIMAQsLQYCAgIB4IAUQowEgASADayEECyAEC2oAAn8gAkECdCIBIANBA3RBgIABaiICIAEgAksbQYeABGoiAUEQdkAAIgJBf0YEQEEAIQJBAQwBCyACQRB0IgJCADcCBCACIAIgAUGAgHxxakECcjYCAEEACyEDIAAgAjYCBCAAIAM2AgALkAEAIAAQngEgAEEkahCeASAAKAJQIAAoAlRBBEEEEJ8BIAAoAlwgACgCYEEBQQEQnwEgACgC0AUgACgC1AVBAkEIEJ8BIAAoAtwFIAAoAuAFQQJBDBCfASAAKALoBSAAKALsBUEEQQwQnwEgACgC9AUgACgC+AVBBEEQEJ8BIAAoAoAGIAAoAoQGQQRBBBCfAQuDAQEBfwJAAkACQAJAAkACQAJAAkACQAJAAkAgAUEIaw4IAQIGBgYDBAUAC0EyIQIgAUGEAWsOCgUGCQkHCQkJCQgJCwwIC0EbIQIMBwtBBiECDAYLQSwhAgwFC0EqIQIMBAtBHyECDAMLQSAhAgwCC0EcIQIMAQtBIyECCyAAIAI6AAALawEHfyAAKAIIIQMgACgCBCEEIAAtAAxBAXEhBSAAKAIAIgIhAQJAA0AgASAERgRAQQAPCyAAIAFBBGoiBjYCACAFDQEgASgCACEHIAYhASADKAIAIAdPDQALIAFBBGshAgsgAEEBOgAMIAILewECfyMAQRBrIgMkAEHMssEAQcyywQAoAgAiBEEBajYCAAJAIARBAEgNAAJAQdSywQAtAABFBEBB0LLBAEHQssEAKAIAQQFqNgIAQciywQAoAgBBAE4NAQwCCyADQQhqIAAgAREAAAALQdSywQBBADoAACACRQ0AAAsAC2sBAX8jAEEwayIDJAAgAyABNgIEIAMgADYCACADQQI2AgwgA0HQ5sAANgIIIANCAjcCFCADIAOtQoCAgIDgAYQ3AyggAyADQQRqrUKAgICA4AGENwMgIAMgA0EgajYCECADQQhqIAIQigEAC2sBAX8jAEEwayIDJAAgAyABNgIEIAMgADYCACADQQM2AgwgA0GcxcAANgIIIANCAjcCFCADIANBBGqtQoCAgIDgAYQ3AyggAyADrUKAgICA4AGENwMgIAMgA0EgajYCECADQQhqIAIQigEAC2cBB38gASgCCCEDIAEoAgAhAiABKAIEIQYDQAJAIAMhBCACIAZGBEBBACEFDAELQQEhBSABIAJBAWoiBzYCACABIARBAWoiAzYCCCACLQAAIAchAkUNAQsLIAAgBDYCBCAAIAU2AgALZQEEfyAAKAIAIQEgACgCBCEDAkADQCABIANGBEBBAA8LIAAgAUEQaiIENgIAIAEvAQQiAkEZTUEAQQEgAnRBwoGAEHEbDQEgAkGXCGtBA0kNASAEIQEgAkEvRw0AC0GXCA8LIAILaAECfyMAQRBrIgYkAAJAIAAgASACIAMgBRAcIgcNACAGQQhqIAMgACABIAQRBgBBACEHIAYoAggNACAGKAIMIgQgAigCADYCCCACIAQ2AgAgACABIAIgAyAFEBwhBwsgBkEQaiQAIAcLYwEFfyAAKAIEQQRrIQIgACgCCCEDIAAoAgAhBCAALQAMQQFxIQUDQCAEIAIiAUEEakYEQEEADwsgACABNgIEIAVFBEAgAUEEayECIAMoAgAgASgCAE0NAQsLIABBAToADCABC2kBAn8CQAJAIAAtAAAiAyABLQAARw0AQQEhAgJAAkAgA0EDaw4CAQADCyAALQABIAEtAAFHDQFBACECIAAtAAIgAS0AAkcNAiAALQADIAEtAANGDwsgAC0AASABLQABRg8LQQAhAgsgAgtiAQJ/IAAgACgCaCICIAAoApwBQQFrIgMgAiADSRs2AmggACABIAAoAqgBQQAgAC0AvgEiAhsiAWoiAyABIAEgA0kbIgEgACgCrAEgACgCoAFBAWsgAhsiACAAIAFLGzYCbAtcAAJAIAIgA00EQCABIANJDQEgAyACayEDIAAgAmohAgNAIAMEQCACQQE6AAAgA0EBayEDIAJBAWohAgwBCwsPCyACIANB9OPAABC1AQALIAMgAUH048AAELMBAAtoAQR/IwBBEGsiAiQAIAEoAgQhAyACQQhqIAEoAggiBEEEQRRB8MrAABBgIAIoAgghBSACKAIMIAMgBEEUbBAWIQMgACAENgIIIAAgAzYCBCAAIAU2AgAgACABLQAMOgAMIAJBEGokAAtgAQN/IwBBIGsiAiQAIAJBCGogAUEBQQFB1OPAABBgIAJBFGoiA0EIaiIEQQA2AgAgAiACKQMINwIUIAMgAUEBEDogAEEIaiAEKAIANgIAIAAgAikCFDcCACACQSBqJAALWwECfyABEKgBIAFBCGsiAygCAEEBaiECIAMgAjYCAAJAIAIEQCABKAIAIgJBf0YNASAAIAM2AgggACABNgIEIAAgAUEEajYCACABIAJBAWo2AgAPCwALELgBAAuVAQEDfyAAKAIAIgQgACgCCCIFRgRAIwBBEGsiAyQAIANBCGogACAEQQFBBEEUECYgAygCCCIEQYGAgIB4RwRAIAMoAgwaIAQgAhCuAQALIANBEGokAAsgACAFQQFqNgIIIAAoAgQgBUEUbGoiACABKQIANwIAIABBCGogAUEIaikCADcCACAAQRBqIAFBEGooAgA2AgALrQEBBX8gACgCBCECIAAoAgAhASAAQoSAgIDAADcCAAJAIAEgAkYNACACIAFrQQR2IQIDQCACRQ0BIAEoAgAgAUEEaigCAEEEQRQQnwEgAkEBayECIAFBEGohAQwACwALIAAoAhAiAQRAIAAoAggiAigCCCIDIAAoAgwiBEcEQCACKAIEIgUgA0EEdGogBSAEQQR0aiABQQR0EBIgACgCECEBCyACIAEgA2o2AggLC04BBH8CQAJAAkAgAC0AACIEQQNrDgIAAQILIAAtAAEhAwwBCyAALQACQRB0IQEgAC0AA0EYdCECIAAtAAEhAwsgASACciADQQh0ciAEcgtSAQR/IAAoAgAhASAAKAIEIQQDQCABIARGBEBBAw8LIAAgAUEQaiICNgIAIAEvAQQhAyACIQFBBEEUQQMgA0EURhsgA0EERhsiAkEDRg0ACyACC0wBAn8gAkECdCECEAAhBANAIAIEQCAEIAMgASgCAEEAEJsBEAEgAkEEayECIANBAWohAyABQQRqIQEMAQsLIAAgBDYCBCAAQQA2AgALUwEBfyAAKAJsIgEgACgCrAFHBEAgACgCoAFBAWsgAUsEQCAAIAFBAWo2AmwgACAAKAJoIgEgACgCnAFBAWsiACAAIAFLGzYCaAsPCyAAQQEQhwELVwAgASACEEUEQCAAQYCAgIB4NgIADwsgASgCACICIAEoAgRGBEAgAEGAgICAeDYCAA8LIAEgAkEQajYCACAAIAIpAgA3AgAgAEEIaiACQQhqKQIANwIAC1MBAn8gARCoASABQQhrIgIoAgBBAWohAyACIAM2AgACQCADBEAgASgCAA0BIAAgAjYCCCAAIAE2AgQgAUF/NgIAIAAgAUEEajYCAA8LAAsQuAEAC1EBAn8gACAAKAJoIgIgACgCnAFBAWsiAyACIANJGzYCaCAAIAAoAqABQQFrIAAoAqwBIgIgACgCbCIAIAJLGyICIAAgAWoiACAAIAJLGzYCbAvtAQIEfwF+IwBBEGsiBiQAIwBBEGsiByQAIAZBBGoiBQJ/AkAgAiADakEBa0EAIAJrca0gAa1+IglCIIinDQAgCaciA0GAgICAeCACa0sNACADRQRAIAUgAjYCCCAFQQA2AgRBAAwCCyAHQQhqIAIgAxCMASAHKAIIIggEQCAFIAg2AgggBSABNgIEQQAMAgsgBSADNgIIIAUgAjYCBEEBDAELIAVBADYCBEEBCzYCACAHQRBqJAAgBigCCCEBIAYoAgRFBEAgACAGKAIMNgIEIAAgATYCACAGQRBqJAAPCyAGKAIMGiABIAQQrgEAC0oBAn8gACAAKAJoIgIgACgCnAFBAWsiAyACIANJGzYCaCAAIAAoAqgBIgJBACAAKAJsIgAgAk8bIgIgACABayIAIAAgAkgbNgJsCz8BAX8jAEEQayIDJAAgA0EIaiAAEHIgASADKAIMIgBJBEAgAygCCCADQRBqJAAgAUEEdGoPCyABIAAgAhBLAAuFAQEDfyAAKAIAIgQgACgCCCIFRgRAIwBBEGsiAyQAIANBCGogACAEQQFBAkEMECYgAygCCCIEQYGAgIB4RwRAIAMoAgwaIAQgAhCuAQALIANBEGokAAsgACAFQQFqNgIIIAAoAgQgBUEMbGoiACABKQEANwEAIABBCGogAUEIaigBADYBAAtGAQN/IAEgAiADEEQiBSABaiIELQAAIQYgBCADp0EZdiIEOgAAIAEgBUEIayACcWpBCGogBDoAACAAIAY6AAQgACAFNgIAC1QBAX8gACAAKAJsNgJ4IAAgACkBsgE3AXwgACAALwG+ATsBhgEgAEGEAWogAEG6AWovAQA7AQAgACAAKAJoIgEgACgCnAFBAWsiACAAIAFLGzYCdAtRAgF/AX4jAEEQayICJAAgAkEEaiABEFYgAigCBCkCnAEhA0EIEJkBIgEgAzcCACACKAIIIAIoAgwQogEgAEECNgIEIAAgATYCACACQRBqJAALSQEBfyMAQRBrIgUkACAFQQhqIAEQciAFIAIgAyAFKAIIIAUoAgwgBBBsIAUoAgQhASAAIAUoAgA2AgAgACABNgIEIAVBEGokAAtPAQJ/IAAoAgQhAiAAKAIAIQMCQCAAKAIIIgAtAABFDQAgA0GM58AAQQQgAigCDBEDAEUNAEEBDwsgACABQQpGOgAAIAMgASACKAIQEQIAC0gBAn8CQCABKAIAIgJBf0cEQCACQQFqIQMgAkEGSQ0BIANBBkHE4cAAELMBAAtBxOHAABB9AAsgACADNgIEIAAgAUEEajYCAAtCAQF/IAJBAnQhAgNAIAIEQCAAKAIAIQMgACABKAIANgIAIAEgAzYCACACQQFrIQIgAUEEaiEBIABBBGohAAwBCwsLSAECfyMAQRBrIgIkACACQQhqIAAgACgCAEEBQQRBBBAmIAIoAggiAEGBgICAeEcEQCACKAIMIQMgACABEK4BAAsgAkEQaiQACz8AAkAgASACTQRAIAIgBE0NASACIAQgBRCzAQALIAEgAiAFELUBAAsgACACIAFrNgIEIAAgAyABQQR0ajYCAAtIAQJ/IwBBEGsiBSQAIAVBCGogACABIAIgAyAEECYgBSgCCCIAQYGAgIB4RwRAIAUoAgwhBiAAQYTMwAAQrgEACyAFQRBqJAALRwECfyAAKAIAIAAoAgRBBEEEEJ8BIAAoAgwhAiAAKAIQIgAoAgAiAQRAIAIgAREEAAsgACgCBCIBBEAgAiAAKAIIIAEQOAsLQQAgAC0AvAFBAUYEQCAAQQA6ALwBIABB9ABqIABBiAFqEHQgACAAQSRqEHUgACgCYCAAKAJkQQAgACgCoAEQUwsLQQEDfyABKAIUIgIgASgCHCIDayEEIAIgA0kEQCAEIAJBwM/AABC0AQALIAAgAzYCBCAAIAEoAhAgBEEEdGo2AgALQgEBfyMAQSBrIgMkACADQQA2AhAgA0EBNgIEIANCBDcCCCADIAE2AhwgAyAANgIYIAMgA0EYajYCACADIAIQigEAC0EBA38gASgCFCICIAEoAhwiA2shBCACIANJBEAgBCACQdDPwAAQtAEACyAAIAM2AgQgACABKAIQIARBBHRqNgIAC0QBAX8gASgCACICIAEoAgRGBEAgAEGAgICAeDYCAA8LIAEgAkEQajYCACAAIAIpAgA3AgAgAEEIaiACQQhqKQIANwIACzsBA38DQCACQRRGRQRAIAAgAmoiAygCACEEIAMgASACaiIDKAIANgIAIAMgBDYCACACQQRqIQIMAQsLCzsBA38DQCACQSRGRQRAIAAgAmoiAygCACEEIAMgASACaiIDKAIANgIAIAMgBDYCACACQQRqIQIMAQsLCzoBAX8CQCACQX9HBEAgAkEBaiEEIAJBIEkNASAEQSAgAxCzAQALIAMQfQALIAAgBDYCBCAAIAE2AgALOAACQCABaUEBRw0AQYCAgIB4IAFrIABJDQAgAARAQeyywQAtAAAaIAEgABA1IgFFDQELIAEPCwALOAACQCACQYCAxABGDQAgACACIAEoAhARAgBFDQBBAQ8LIANFBEBBAA8LIAAgA0EAIAEoAgwRAwALLQEBfyABIAAoAgBPBH8gACgCBCECIAAtAAhFBEAgASACTQ8LIAEgAkkFQQALC3ABA38gACgCACIEIAAoAggiBUYEQCMAQRBrIgMkACADQQhqIAAgBEEBQQJBCBAmIAMoAggiBEGBgICAeEcEQCADKAIMGiAEIAIQrgEACyADQRBqJAALIAAgBUEBajYCCCAAKAIEIAVBA3RqIAE3AQALNAEBfyAAKAIIIgMgACgCAEYEQCAAIAIQawsgACADQQFqNgIIIAAoAgQgA0ECdGogATYCAAsuAQF/IwBBEGsiAiQAIAJBCGogASAAEIwBIAIoAggiAARAIAJBEGokACAADwsACzcBAX8jAEEgayIBJAAgAUEANgIYIAFBATYCDCABQYzpwAA2AgggAUIENwIQIAFBCGogABCKAQALKgEBfyACIAMQNSIEBEAgBCAAIAEgAyABIANJGxAWGiAAIAIgARA4CyAECysAIAIgA0kEQCADIAIgBBC0AQALIAAgAiADazYCBCAAIAEgA0EUbGo2AgALLwEBfyAAIAIQjgEgACgCBCAAKAIIIgNBFGxqIAEgAkEUbBAWGiAAIAIgA2o2AggLKwAgASADSwRAIAEgAyAEELQBAAsgACADIAFrNgIEIAAgAiABQQR0ajYCAAsvAAJAAkAgA2lBAUcNAEGAgICAeCADayABSQ0AIAAgASADIAIQfiIADQELAAsgAAsuAANAIAEEQCAAKAIAIABBBGooAgBBBEEUEJ8BIAFBAWshASAAQRBqIQAMAQsLCzIBAX8gACgCCCECIAEgACgCAEECai0AABCbASEBIAAoAgQgAiABEAEgACACQQFqNgIICyoAIAAgACgCaCABaiIBIAAoApwBIgBBAWsgACABSxtBACABQQBOGzYCaAszAQJ/IAAgACgCqAEiAiAAKAKsAUEBaiIDIAEgAEGyAWoQNiAAKAJgIAAoAmQgAiADEFMLMwECfyAAIAAoAqgBIgIgACgCrAFBAWoiAyABIABBsgFqEB0gACgCYCAAKAJkIAIgAxBTCyoAIAEgAkkEQEGkyMAAQSNBvMnAABBxAAsgAiAAIAJBFGxqIAEgAmsQGQs1ACAAIAApAnQ3AmggACAAKQF8NwGyASAAIAAvAYYBOwG+ASAAQboBaiAAQYQBai8BADsBAAvsAQICfwF+IwBBEGsiAiQAIAJBATsBDCACIAE2AgggAiAANgIEIwBBEGsiASQAIAJBBGoiACkCACEEIAEgADYCDCABIAQ3AgQjAEEQayIAJAAgAUEEaiIBKAIAIgIoAgwhAwJAAkACQAJAIAIoAgQOAgABAgsgAw0BQQEhAkEAIQMMAgsgAw0AIAIoAgAiAigCBCEDIAIoAgAhAgwBCyAAQYCAgIB4NgIAIAAgATYCDCABKAIIIgEtAAkaIABBGyABLQAIEEoACyAAIAM2AgQgACACNgIAIAEoAggiAS0ACRogAEEcIAEtAAgQSgALKwECfwJAIAAoAgQgACgCCCIBEDQiAkUNACABIAJJDQAgACABIAJrNgIICwsmACACBEBB7LLBAC0AABogASACEDUhAQsgACACNgIEIAAgATYCAAsjAQF/IAEgACgCACAAKAIIIgJrSwRAIAAgAiABQQRBEBBtCwsjAQF/IAEgACgCACAAKAIIIgJrSwRAIAAgAiABQQRBFBBtCwslACAAQQE2AgQgACABKAIEIAEoAgBrQQR2IgE2AgggACABNgIACxsAIAEgAk0EQCACIAEgAxBLAAsgACACQRRsagsgACABIAJNBEAgAiABQeTjwAAQSwALIAAgAmpBAToAAAsbACABIAJNBEAgAiABIAMQSwALIAAgAkEEdGoLAwAACwMAAAsDAAALAwAACwMAAAsDAAALGgBB7LLBAC0AABpBBCAAEDUiAARAIAAPCwALIQAgAEUEQEGc68AAQTIQuQEACyAAIAIgAyABKAIQEQEACxYAIAFBAXFFBEAgALgQCQ8LIACtEAoLRgEBfyAAIAAoAgBBAWsiATYCACABRQRAIABBDGoQRwJAIABBf0YNACAAIAAoAgRBAWsiATYCBCABDQAgAEEEQZwGEDgLCwsfACAARQRAQZzrwABBMhC5AQALIAAgAiABKAIQEQIACyEBAX8gACgCECIBIAAoAhQQgwEgACgCDCABQQRBEBCfAQsSACAABEAgASACIAAgA2wQOAsLIQEBfyAAKAIEIgEgACgCCBCDASAAKAIAIAFBBEEQEJ8BCxYAIABBEGoQWCAAKAIAIAAoAgQQowELFAAgACAAKAIAQQFrNgIAIAEQnAELGQAgAEGAgICAeEcEQCAAIAFBBEEUEJ8BCwsUACABBEBBgICAgHggARCjAQsgAQsZACABKAIcQcjlwABBDiABKAIgKAIMEQMACw8AIAIEQCAAIAEgAhA4CwsPACABBEAgACACIAEQOAsLEwAgAARADwtBpKnBAEEbELkBAAsPACAAQYQBTwRAIAAQAwsLEwAgACgCCCAAKAIAQQJBAhCfAQsVACACIAIQpAEaIABBgICAgHg2AgALFAAgACgCACABIAAoAgQoAgwRAgALEAAgASAAKAIEIAAoAggQDws8ACAARQRAIwBBIGsiACQAIABBADYCGCAAQQE2AgwgAEHQxMAANgIIIABCBDcCECAAQQhqIAEQigEACwALFAAgAEEANgIIIABCgICAgBA3AgALEgAgACABQZDNwAAQYkEBOgAMCxAAIAEgACgCACAAKAIEEA8LDgAgAEEANgIAIAEQnAELawEBfyMAQTBrIgMkACADIAE2AgQgAyAANgIAIANBAjYCDCADQejpwAA2AgggA0ICNwIUIAMgA0EEaq1CgICAgOABhDcDKCADIAOtQoCAgIDgAYQ3AyAgAyADQSBqNgIQIANBCGogAhCKAQALawEBfyMAQTBrIgMkACADIAE2AgQgAyAANgIAIANBAjYCDCADQcjpwAA2AgggA0ICNwIUIAMgA0EEaq1CgICAgOABhDcDKCADIAOtQoCAgIDgAYQ3AyAgAyADQSBqNgIQIANBCGogAhCKAQALawEBfyMAQTBrIgMkACADIAE2AgQgAyAANgIAIANBAjYCDCADQZzqwAA2AgggA0ICNwIUIAMgA0EEaq1CgICAgOABhDcDKCADIAOtQoCAgIDgAYQ3AyAgAyADQSBqNgIQIANBCGogAhCKAQALDgBB8OXAAEErIAAQcQALCwAgACMAaiQAIwALDgBBv6nBAEHPABC5AQALCQAgACABEAcACw0AIABB9ObAACABEBcLDAAgACABKQIANwMACwoAIAAoAgAQqQELDQAgAEGAgICAeDYCAAsJACAAQQA2AgALBgAgABBYCwUAQYAECwQAQQELBAAgAQsEAEEACwvSbSAAQYCAwAALQB0AAAAEAAAABAAAAB4AAABjYWxsZWQgYFJlc3VsdDo6dW53cmFwKClgIG9uIGFuIGBFcnJgIHZhbHVlRXJyb3IAQb+JwAALAXgAQeCJwAALEP////////////////////8AQYaKwAALDwEAAAAAACAAAAAAAAAAAgBBwIrAAAsg//////////////////////////////////////////8AQaSLwAALCBAAAAAAAAABAEHAuMAACwL/BwBB1LjAAAsHDwD////1/wBBgLnAAAsW////////////////////////////AwBBoLnAAAsd/////////////////////////////////////w8AQf+5wAALGPz//////////////////////////////wBBoLrAAAs+//////////////////////////////////////////////////////////////////////////////////8AQYy7wAALOP////////////////////////////////////////////////////////////////////////9/AEHgu8AAC9EB/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////wMAQcC9wAALJ///////////////////////////////////////////////////DwBBwMDAAAvBI3NyYy9saWIucnMAAAEADwDwGg8AAAAAAOIlAADlJQAAAAAAALDgAACz4AAAAAAAADz7AQBp+wEAAAAAAGr7AQBs+wEAAAAAAIAlAACfJQAAAAAAAAD7AQA7+wEAAAAAAGF0dGVtcHRlZCB0byB0YWtlIG93bmVyc2hpcCBvZiBSdXN0IHZhbHVlIHdoaWxlIGl0IHdhcyBib3Jyb3dlZGJndGV4dGNvZGVwb2ludHNyYXN0ZXJfc3ltYm9sc3ZlY3Rvcl9zeW1ib2xzAEAgEAAKAAAAZgAAABMAAABAIBAACgAAAGcAAAAVAAAAQCAQAAoAAABoAAAAGQAAAEAgEAAKAAAAaQAAABkAAABAIBAACgAAAGoAAAAVAAAAQCAQAAoAAAByAAAANgAAAEAgEAAKAAAAdwAAADYAAABAIBAACgAAAP4AAAAbAAAAQCAQAAoAAAACAQAAHQAAAEAgEAAKAAAAGQEAAC0AAABAIBAACgAAAK8AAAAjAAAAQCAQAAoAAAC5AAAAIwAAAEAgEAAKAAAAzgAAACUAAABAIBAACgAAAMYAAAAlAAAAQCAQAAoAAADzAAAAKQAAAEAgEAAKAAAA2gAAACUAAABAIBAACgAAAN4AAAAWAAAAQCAQAAoAAAD5AAAAHQAAAEAgEAAKAAAAIAEAAC8AAABjYXBhY2l0eSBvdmVyZmxvdwAAADwiEAARAAAAKSBzaG91bGQgYmUgPCBsZW4gKGlzIGluc2VydGlvbiBpbmRleCAoaXMgKSBzaG91bGQgYmUgPD0gbGVuIChpcyAAAABuIhAAFAAAAIIiEAAXAAAAFlUQAAEAAAByZW1vdmFsIGluZGV4IChpcyAAALQiEAASAAAAWCIQABYAAAAWVRAAAQAAAGBhdGAgc3BsaXQgaW5kZXggKGlzIAAAAOAiEAAVAAAAgiIQABcAAAAWVRAAAQAAAC9ob21lL3J1bm5lci8uY2FyZ28vcmVnaXN0cnkvc3JjL2luZGV4LmNyYXRlcy5pby0xOTQ5Y2Y4YzZiNWI1NTdmL3VuaWNvZGUtd2lkdGgtMC4xLjE0L3NyYy90YWJsZXMucnMQIxAAZAAAAJEAAAAVAAAAECMQAGQAAACXAAAAGQAAAC9uaXgvc3RvcmUvMjhoeXpmbDMzOGtzNGFtaGE3dnBwbmxicTFzMW5xYXYtcnVzdC1kZWZhdWx0LTEuODUuMC9saWIvcnVzdGxpYi9zcmMvcnVzdC9saWJyYXJ5L2NvcmUvc3JjL2l0ZXIvdHJhaXRzL2l0ZXJhdG9yLnJzAAAAlCMQAH0AAACzBwAACQAAAGFzc2VydGlvbiBmYWlsZWQ6IG1pZCA8PSBzZWxmLmxlbigpL25peC9zdG9yZS8yOGh5emZsMzM4a3M0YW1oYTd2cHBubGJxMXMxbnFhdi1ydXN0LWRlZmF1bHQtMS44NS4wL2xpYi9ydXN0bGliL3NyYy9ydXN0L2xpYnJhcnkvY29yZS9zcmMvc2xpY2UvbW9kLnJzAAAARyQQAHIAAACgDQAACQAAAGFzc2VydGlvbiBmYWlsZWQ6IGsgPD0gc2VsZi5sZW4oKQAAAEckEAByAAAAzQ0AAAkAAAAvbml4L3N0b3JlLzI4aHl6ZmwzMzhrczRhbWhhN3ZwcG5sYnExczFucWF2LXJ1c3QtZGVmYXVsdC0xLjg1LjAvbGliL3J1c3RsaWIvc3JjL3J1c3QvbGlicmFyeS9hbGxvYy9zcmMvc2xpY2UucnMAACUQAG8AAAChAAAAGQAAAC9uaXgvc3RvcmUvMjhoeXpmbDMzOGtzNGFtaGE3dnBwbmxicTFzMW5xYXYtcnVzdC1kZWZhdWx0LTEuODUuMC9saWIvcnVzdGxpYi9zcmMvcnVzdC9saWJyYXJ5L2FsbG9jL3NyYy92ZWMvbW9kLnJzAAAAgCUQAHEAAAA/CgAAJAAAAEBTEABxAAAAKAIAABEAAAAvaG9tZS9ydW5uZXIvLmNhcmdvL3JlZ2lzdHJ5L3NyYy9pbmRleC5jcmF0ZXMuaW8tMTk0OWNmOGM2YjViNTU3Zi9hdnQtMC4xNi4wL3NyYy9idWZmZXIucnMAABQmEABaAAAALQAAABkAAAAUJhAAWgAAAFoAAAANAAAAFCYQAFoAAABeAAAADQAAABQmEABaAAAAYwAAAA0AAAAUJhAAWgAAAGgAAAAdAAAAFCYQAFoAAAB1AAAAJQAAABQmEABaAAAAfwAAACUAAAAUJhAAWgAAAIcAAAAVAAAAFCYQAFoAAACRAAAAJQAAABQmEABaAAAAmAAAABUAAAAUJhAAWgAAAJ0AAAAlAAAAFCYQAFoAAACoAAAAEQAAABQmEABaAAAAswAAACAAAAAUJhAAWgAAALcAAAARAAAAFCYQAFoAAAC5AAAAEQAAABQmEABaAAAAwwAAAA0AAAAUJhAAWgAAAMcAAAARAAAAFCYQAFoAAADKAAAADQAAABQmEABaAAAA9AAAACsAAAAUJhAAWgAAADkBAAAsAAAAFCYQAFoAAAAyAQAAGwAAABQmEABaAAAARQEAABQAAAAUJhAAWgAAAFcBAAAYAAAAFCYQAFoAAABcAQAAGAAAAGFzc2VydGlvbiBmYWlsZWQ6IGxpbmVzLml0ZXIoKS5hbGwofGx8IGwubGVuKCkgPT0gY29scykAFCYQAFoAAAD3AQAABQAAAAAAAAABAAAAAgAAAAMAAAAEAAAABQAAAAYAAAAHAAAACAAAAAkAAAAKAAAACwAAAAwAAAANAAAADgAAAA8AAAAQAAAAEQAAABIAAAATAAAAFAAAABUAAAAWAAAAFwAAABgAAAAZAAAAGgAAABsAAAAcAAAAHQAAAB4AAAAfAAAAIAAAACEAAAAiAAAAIwAAACQAAAAlAAAAJgAAACcAAAAoAAAAKQAAACoAAAArAAAALAAAAC0AAAAuAAAALwAAADAAAAAxAAAAMgAAADMAAAA0AAAANQAAADYAAAA3AAAAOAAAADkAAAA6AAAAOwAAADwAAAA9AAAAPgAAAD8AAABAAAAAQQAAAEIAAABDAAAARAAAAEUAAABGAAAARwAAAEgAAABJAAAASgAAAEsAAABMAAAATQAAAE4AAABPAAAAUAAAAFEAAABSAAAAUwAAAFQAAABVAAAAVgAAAFcAAABYAAAAWQAAAFoAAABbAAAAXAAAAF0AAABeAAAAXwAAAGYmAACSJQAACSQAAAwkAAANJAAACiQAALAAAACxAAAAJCQAAAskAAAYJQAAECUAAAwlAAAUJQAAPCUAALojAAC7IwAAACUAALwjAAC9IwAAHCUAACQlAAA0JQAALCUAAAIlAABkIgAAZSIAAMADAABgIgAAowAAAMUiAAB/AAAAL2hvbWUvcnVubmVyLy5jYXJnby9yZWdpc3RyeS9zcmMvaW5kZXguY3JhdGVzLmlvLTE5NDljZjhjNmI1YjU1N2YvYXZ0LTAuMTYuMC9zcmMvbGluZS5yczgqEABYAAAAEAAAABQAAAA4KhAAWAAAAB0AAAAWAAAAOCoQAFgAAAAeAAAAFwAAADgqEABYAAAAIQAAABMAAAA4KhAAWAAAACsAAAAkAAAAOCoQAFgAAAAxAAAAGwAAADgqEABYAAAANQAAABsAAAA4KhAAWAAAADwAAAAbAAAAOCoQAFgAAAA9AAAAGwAAADgqEABYAAAAQQAAABsAAAA4KhAAWAAAAEMAAAAeAAAAOCoQAFgAAABEAAAAHwAAADgqEABYAAAARwAAABsAAAA4KhAAWAAAAE4AAAAbAAAAOCoQAFgAAABPAAAAGwAAADgqEABYAAAAVgAAABsAAAA4KhAAWAAAAFcAAAAbAAAAOCoQAFgAAABeAAAAGwAAADgqEABYAAAAXwAAABsAAAA4KhAAWAAAAG0AAAAbAAAAOCoQAFgAAAB1AAAAGwAAADgqEABYAAAAdgAAABsAAAA4KhAAWAAAAHgAAAAeAAAAOCoQAFgAAAB5AAAAHwAAADgqEABYAAAAfAAAABsAAABpbnRlcm5hbCBlcnJvcjogZW50ZXJlZCB1bnJlYWNoYWJsZSBjb2RlOCoQAFgAAACAAAAAEQAAADgqEABYAAAAiQAAACcAAAA4KhAAWAAAAI0AAAAXAAAAOCoQAFgAAACQAAAAEwAAADgqEABYAAAAkgAAACcAAAA4KhAAWAAAAJYAAAAjAAAAOCoQAFgAAACbAAAAFgAAADgqEABYAAAAnAAAABcAAAA4KhAAWAAAAJ8AAAATAAAAOCoQAFgAAAChAAAAJwAAADgqEABYAAAAqAAAABMAAAA4KhAAWAAAAL0AAAAVAAAAOCoQAFgAAAC/AAAAJQAAADgqEABYAAAAwAAAABwAAAA4KhAAWAAAAMMAAAAlAAAAOCoQAFgAAADtAAAAMAAAADgqEABYAAAA9AAAACMAAAA4KhAAWAAAAPkAAAAlAAAAOCoQAFgAAAD6AAAAHAAAAC9ob21lL3J1bm5lci8uY2FyZ28vcmVnaXN0cnkvc3JjL2luZGV4LmNyYXRlcy5pby0xOTQ5Y2Y4YzZiNWI1NTdmL2F2dC0wLjE2LjAvc3JjL3BhcnNlci5ycwAAeC0QAFoAAADGAQAAIgAAAHgtEABaAAAA2gEAAA0AAAB4LRAAWgAAANwBAAANAAAAeC0QAFoAAABNAgAAJgAAAHgtEABaAAAAUgIAACYAAAB4LRAAWgAAAFgCAAAYAAAAeC0QAFoAAABwAgAAEwAAAHgtEABaAAAAdAIAABMAAAB4LRAAWgAAAAUDAAAnAAAAeC0QAFoAAAALAwAAJwAAAHgtEABaAAAAEQMAACcAAAB4LRAAWgAAABcDAAAnAAAAeC0QAFoAAAAdAwAAJwAAAHgtEABaAAAAIwMAACcAAAB4LRAAWgAAACkDAAAnAAAAeC0QAFoAAAAvAwAAJwAAAHgtEABaAAAANQMAACcAAAB4LRAAWgAAADsDAAAnAAAAeC0QAFoAAABBAwAAJwAAAHgtEABaAAAARwMAACcAAAB4LRAAWgAAAE0DAAAnAAAAeC0QAFoAAABTAwAAJwAAAHgtEABaAAAAbgMAACsAAAB4LRAAWgAAAHcDAAAvAAAAeC0QAFoAAAB7AwAALwAAAHgtEABaAAAAgwMAAC8AAAB4LRAAWgAAAIcDAAAvAAAAeC0QAFoAAACMAwAAKwAAAHgtEABaAAAAkQMAACcAAAB4LRAAWgAAAK0DAAArAAAAeC0QAFoAAAC2AwAALwAAAHgtEABaAAAAugMAAC8AAAB4LRAAWgAAAMIDAAAvAAAAeC0QAFoAAADGAwAALwAAAHgtEABaAAAAywMAACsAAAB4LRAAWgAAANADAAAnAAAAeC0QAFoAAADeAwAAJwAAAHgtEABaAAAA1wMAACcAAAB4LRAAWgAAAJgDAAAnAAAAeC0QAFoAAABaAwAAJwAAAHgtEABaAAAAYAMAACcAAAB4LRAAWgAAAJ8DAAAnAAAAeC0QAFoAAABnAwAAJwAAAHgtEABaAAAApgMAACcAAAB4LRAAWgAAAOQDAAAnAAAAeC0QAFoAAAAOBAAAEwAAAHgtEABaAAAAFwQAABsAAAB4LRAAWgAAACAEAAAUAAAAL2hvbWUvcnVubmVyLy5jYXJnby9yZWdpc3RyeS9zcmMvaW5kZXguY3JhdGVzLmlvLTE5NDljZjhjNmI1YjU1N2YvYXZ0LTAuMTYuMC9zcmMvdGFicy5yc9QwEABYAAAACQAAABIAAADUMBAAWAAAABEAAAAUAAAA1DAQAFgAAAAXAAAAFAAAANQwEABYAAAAHwAAABQAAAAvaG9tZS9ydW5uZXIvLmNhcmdvL3JlZ2lzdHJ5L3NyYy9pbmRleC5jcmF0ZXMuaW8tMTk0OWNmOGM2YjViNTU3Zi9hdnQtMC4xNi4wL3NyYy90ZXJtaW5hbC9kaXJ0eV9saW5lcy5yc2wxEABoAAAACAAAABQAAABsMRAAaAAAAAwAAAAPAAAAbDEQAGgAAAAQAAAADwBBjOTAAAvPBwEAAAAfAAAAIAAAACEAAAAiAAAAIwAAABQAAAAEAAAAJAAAACUAAAAmAAAAJwAAAC9ob21lL3J1bm5lci8uY2FyZ28vcmVnaXN0cnkvc3JjL2luZGV4LmNyYXRlcy5pby0xOTQ5Y2Y4YzZiNWI1NTdmL2F2dC0wLjE2LjAvc3JjL3Rlcm1pbmFsLnJzPDIQAFwAAAB1AgAAFQAAADwyEABcAAAAsQIAAA4AAAA8MhAAXAAAAAUEAAAjAAAAQm9ycm93TXV0RXJyb3JhbHJlYWR5IGJvcnJvd2VkOiDWMhAAEgAAAGNhbGxlZCBgT3B0aW9uOjp1bndyYXAoKWAgb24gYSBgTm9uZWAgdmFsdWVpbmRleCBvdXQgb2YgYm91bmRzOiB0aGUgbGVuIGlzICBidXQgdGhlIGluZGV4IGlzIAAAABszEAAgAAAAOzMQABIAAAA6IAAAAQAAAAAAAABgMxAAAgAAAAAAAAAMAAAABAAAACgAAAApAAAAKgAAACAgICAsCigoCjAwMDEwMjAzMDQwNTA2MDcwODA5MTAxMTEyMTMxNDE1MTYxNzE4MTkyMDIxMjIyMzI0MjUyNjI3MjgyOTMwMzEzMjMzMzQzNTM2MzczODM5NDA0MTQyNDM0NDQ1NDY0NzQ4NDk1MDUxNTI1MzU0NTU1NjU3NTg1OTYwNjE2MjYzNjQ2NTY2Njc2ODY5NzA3MTcyNzM3NDc1NzY3Nzc4Nzk4MDgxODI4Mzg0ODU4Njg3ODg4OTkwOTE5MjkzOTQ5NTk2OTc5ODk5YXR0ZW1wdGVkIHRvIGluZGV4IHNsaWNlIHVwIHRvIG1heGltdW0gdXNpemUAAABdNBAALAAAAHJhbmdlIHN0YXJ0IGluZGV4ICBvdXQgb2YgcmFuZ2UgZm9yIHNsaWNlIG9mIGxlbmd0aCCUNBAAEgAAAKY0EAAiAAAAcmFuZ2UgZW5kIGluZGV4INg0EAAQAAAApjQQACIAAABzbGljZSBpbmRleCBzdGFydHMgYXQgIGJ1dCBlbmRzIGF0IAD4NBAAFgAAAA41EAANAAAASGFzaCB0YWJsZSBjYXBhY2l0eSBvdmVyZmxvdyw1EAAcAAAAL3J1c3QvZGVwcy9oYXNoYnJvd24tMC4xNS4yL3NyYy9yYXcvbW9kLnJzAABQNRAAKgAAACMAAAAoAAAAsVMQAGwAAAAjAQAADgAAAGNsb3N1cmUgaW52b2tlZCByZWN1cnNpdmVseSBvciBhZnRlciBiZWluZyBkcm9wcGVkAAD//////////9A1EABB6OvAAAt1L2hvbWUvcnVubmVyLy5jYXJnby9yZWdpc3RyeS9zcmMvaW5kZXguY3JhdGVzLmlvLTE5NDljZjhjNmI1YjU1N2Yvc2VyZGUtd2FzbS1iaW5kZ2VuLTAuNi41L3NyYy9saWIucnMAAADoNRAAZQAAADUAAAAOAEGB7cAAC4cBAQIDAwQFBgcICQoLDA0OAwMDAwMDAw8DAwMDAwMDDwkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJEAkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJAEGB78AAC58LAQICAgIDAgIEAgUGBwgJCgsMDQ4PEBESExQVFhcYGRobHB0CAh4CAgICAgICHyAhIiMCJCUmJygpAioCAgICKywCAgICLS4CAgIvMDEyMwICAgICAjQCAjU2NwI4OTo7PD0+Pzk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OUA5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5QQICQkMCAkRFRkdISQJKOTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5SwICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAjk5OTlMAgICAgJNTk9QAgICUQJSUwICAgICAgICAgICAgJUVQICVgJXAgJYWVpbXF1eX2BhAmJjAmRlZmcCaAJpamtsAgJtbm9wAnFyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJzAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICdHUCAgICAgICdnc5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OXg5OTk5OTk5OTl5egICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICezk5fDk5fQICAgICAgICAgICAgICAgICAgJ+AgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICfwICAoCBggICAgICAgICAgICAgICAoOEAgICAgICAgICAoWGdQIChwICAogCAgICAgICiYoCAgICAgICAgICAgICi4wCjY4Cj5CRkpOUlZYClwICmJmamwICAgICAgICAgI5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTmcHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0CAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCdAgICAp6fAgQCBQYHCAkKCwwNDg8QERITFBUWFxgZGhscHQICHgICAgICAgIfICEiIwIkJSYnKCkCKgICAgKgoaKjpKWmLqeoqaqrrK0zAgICAgICrgICNTY3Ajg5Ojs8PT6vOTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5TAICAgICsE5PsYWGdQIChwICAogCAgICAgICiYoCAgICAgICAgICAgICi4yys44Cj5CRkpOUlZYClwICmJmamwICAgICAgICAgJVVXVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUAQbz6wAALKVVVVVUVAFBVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUBAEHv+sAAC8QBEEEQVVVVVVVXVVVVVVVVVVVVUVVVAABAVPXdVVVVVVVVVVUVAAAAAABVVVVV/F1VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVQUAFAAUBFBVVVVVVVVVFVFVVVVVVVVVAAAAAAAAQFVVVVVVVVVVVdVXVVVVVVVVVVVVVVUFAABUVVVVVVVVVVVVVVVVVRUAAFVVUVVVVVVVBRAAAAEBUFVVVVVVVVVVVVUBVVVVVVX/////f1VVVVBVAABVVVVVVVVVVVVVBQBBwPzAAAuYBEBVVVVVVVVVVVVVVVVVRVQBAFRRAQBVVQVVVVVVVVVVUVVVVVVVVVVVVVVVVVVVRAFUVVFVFVVVBVVVVVVVVUVBVVVVVVVVVVVVVVVVVVVUQRUUUFFVVVVVVVVVUFFVVUFVVVVVVVVVVVVVVVVVVVQBEFRRVVVVVQVVVVVVVQUAUVVVVVVVVVVVVVVVVVVVBAFUVVFVAVVVBVVVVVVVVVVFVVVVVVVVVVVVVVVVVVVFVFVVUVUVVVVVVVVVVVVVVVRUVVVVVVVVVVVVVVVVVQRUBQRQVUFVVQVVVVVVVVVVUVVVVVVVVVVVVVVVVVVVFEQFBFBVQVVVBVVVVVVVVVVQVVVVVVVVVVVVVVVVVRVEAVRVQVUVVVUFVVVVVVVVVVFVVVVVVVVVVVVVVVVVVVVVVUUVBURVFVVVVVVVVVVVVVVVVVVVVVVVVVVVUQBAVVUVAEBVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVRAABUVVUAQFVVVVVVVVVVVVVVVVVVVVVVVVBVVVVVVVURUVVVVVVVVVVVVVVVVVUBAABAAARVAQAAAQAAAAAAAAAAVFVFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVQEEAEFBVVVVVVVVUAVUVVVVAVRVVUVBVVFVVVVRVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqAEGAgcEAC5ADVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUBVVVVVVVVVVVVVVVVBVRVVVVVVVUFVVVVVVVVVQVVVVVVVVVVBVVVVX///ff//ddfd9bV11UQAFBVRQEAAFVXUVVVVVVVVVVVVVUVAFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVQVVVVVVVVVVVUVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVQBVUVUVVAVVVVVVVVVVVVVVVVVVVVVVVVVVVVVcVFFVVVVVVVVVVVVVVVVVVRQBARAEAVBUAABRVVVVVVVVVVVVVVVUAAAAAAAAAQFVVVVVVVVVVVVVVVQBVVVVVVVVVVVVVVVUAAFAFVVVVVVVVVVVVFQAAVVVVUFVVVVVVVVUFUBBQVVVVVVVVVVVVVVVVVUVQEVBVVVVVVVVVVVVVVVVVVQAABVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVQAAAAAQAVFFVVFBVVVVVVVVVVVVVVVVVVVVVVQBBoITBAAuTCFVVFQBVVVVVVVUFQFVVVVVVVVVVVVVVVQAAAABVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUAAAAAAAAAAFRVVVVVVVVVVVX1VVVVaVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV/VfXVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVX1VVVVVVV9VVVVVVVVVVVVVVVX///9VVVVVVVVVVVVV1VVVVVXVVVVVXVX1VVVVVX1VX1V1VVdVVVVVdVX1XXVdVV31VVVVVVVVVVdVVVVVVVVVVXfV31VVVVVVVVVVVVVVVVVVVf1VVVVVVVVXVVXVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVdVXVVVVVVVVVVVVVVVVV11VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVFVBVVVVVVVVVVVVVVVVVVVX9////////////////X1XVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVQAAAAAAAAAAqqqqqqqqmqqqqqqqqqqqqqqqqqqqqqqqqqqqqqpVVVWqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqlpVVVVVVVWqqqqqqqqqqqqqqqqqqgoAqqqqaqmqqqqqqqqqqqqqqqqqqqqqqqqqqmqBqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqlWpqqqqqqqqqqqqqqmqqqqqqqqqqqqqqqqoqqqqqqqqqqqqaqqqqqqqqqqqqqqqqqqqqqqqqqqqqlVVlaqqqqqqqqqqqqqqaqqqqqqqqqqqqqpVVaqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqpVVVVVVVVVVVVVVVVVVVVVqqqqVqqqqqqqqqqqqqqqqqpqVVVVVVVVVVVVVVVVVV9VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUVQAAAUFVVVVVVVVUFVVVVVVVVVVVVVVVVVVVVVVVVVVVQVVVVRUUVVVVVVVVVQVVUVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVBVVVVVVVUAAAAAUFVFFVVVVVVVVVVVVQUAUFVVVVVVFQAAUFVVVaqqqqqqqqpWQFVVVVVVVVVVVVVVFQVQUFVVVVVVVVVVVVFVVVVVVVVVVVVVVVVVVVVVAUBBQVVVFVVVVFVVVVVVVVVVVVVVVFVVVVVVVVVVVVVVVQQUVAVRVVVVVVVVVVVVVVBVRVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVFUUVVVVVWqqqqqqqqqqqpVVVUAAAAAAEAVAEG/jMEAC+EMVVVVVVVVVVVFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVAAAA8KqqWlUAAAAAqqqqqqqqqqpqqqqqqmqqVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVFamqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqlZVVVVVVVVVVVVVVVVVVQVUVVVVVVVVVVVVVVVVVVVVqmpVVQAAVFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVRVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUFQFUBQVUAVVVVVVVVVVVVVUAVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVBVVVVVVVV1VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUAVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUVVFVVVVVVVVVVVVVVVVVVVVVVVVUBVVVVVVVVVVVVVVVVVVVVVVUFAABUVVVVVVVVVVVVVVUFUFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVFVVVVVVVVVVVVVVVVVAAAAQFVVVVVVVVVVVVUUVFUVUFVVVVVVVVVVVVVVFUBBVUVVVVVVVVVVVVVVVVVVVVVAVVVVVVVVVVUVAAEAVFVVVVVVVVVVVVVVVVVVFVVVVVBVVVVVVVVVVVVVVVUFAEAFVQEUVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUVUARVRVFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVRUVAEBVVVVVVVBVVVVVVVVVVVVVVVVVFURUVVVVVRVVVVUFAFQAVFVVVVVVVVVVVVVVVVVVVVUAAAVEVVVVVVVFVVVVVVVVVVVVVVVVVVVVVVVVVVUUAEQRBFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVFQVQVRBUVVVVVVVVUFVVVVVVVVVVVVVVVVVVVVVVVVVVFQBAEVRVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVFVEAEFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUBBRAAVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUVAABBVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUVRUEEVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVQAFVVRVVVVVVVVVAQBAVVVVVVVVVVVVFQAEQFUVVVUBQAFVVVVVVVVVVVVVAAAAAEBQVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVQBAABBVVVVVVVVVVVVVVVVVVVVVVVVVVQUAAAAAAAUABEFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUBQEUQAABVVVVVVVVVVVVVVVVVVVVVVVVQEVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVRVUVVVAVVVVVVVVVVVVVVVVBUBVRFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUFQAAAFBVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVQBUVVVVVVVVVVVVVVVVVVUAQFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUVVVVVVVVVVVVVVVVVVVVVFUBVVVVVVVVVVVVVVVVVVVVVVVVVqlRVVVpVVVWqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqpVVaqqqqqqqqqqqqqqqqqqqqqqqqqqqlpVVVVVVVVVVVVVqqpWVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVqqmqaaqqqqqqqqqqalVVVWVVVVVVVVVVallVVVWqVVWqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqlVVVVVVVVVVQQBVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVQBBq5nBAAt1UAAAAAAAQFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVRFQBQAAAABAAQBVVVVVVVVVBVBVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUFVFVVVVVVVVVVVVVVVVVVAEGtmsEACwJAFQBBu5rBAAvFBlRVUVVVVVRVVVVVFQABAAAAVVVVVVVVVVVVVVVVVVVVVVVVVVUAQAAAAAAUABAEQFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVRVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVFVVVVVVVVVVVVVVVVVVVVAFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUAVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVAEBVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUAQFVVVVVVVVVVVVVVVVVVV1VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVXVVVVVVVVVVVVVVVVVVVVVdf3/f1VVVVVVVVVVVVVVVVVVVVVVVfX///////9uVVVVqqq6qqqqqur6v79VqqpWVV9VVVWqWlVVVVVVVf//////////V1VV/f/f///////////////////////3//////9VVVX/////////////f9X/VVVV/////1dX//////////////////////9/9//////////////////////////////////////////////////////////////X////////////////////X1VV1X////////9VVVVVdVVVVVVVVX1VVVVXVVVVVVVVVVVVVVVVVVVVVVVVVVXV////////////////////////////VVVVVVVVVVVVVVVV//////////////////////9fVVd//VX/VVXVV1X//1dVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVX///9VV1VVVVVVVf//////////////f///3/////////////////////////////////////////////////////////////9VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV////V///V1X//////////////9//X1X1////Vf//V1X//1dVqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqlpVVVVVVVVVVVmWVWGqpVmqVVVVVVWVVVVVVVVVVZVVVQBBjqHBAAsBAwBBnKHBAAuJCVVVVVVVlVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVFQCWalpaaqoFQKZZlWVVVVVVVVVVVQAAAABVVlVVqVZVVVVVVVVVVVVWVVVVVVVVVVUAAAAAAAAAAFRVVVWVWVlVVWVVVWlVVVVVVVVVVVVVVZVWlWqqqqpVqqpaVVVVWVWqqqpVVVVVZVVVWlVVVVWlZVZVVVWVVVVVVVVVppaalllZZamWqqpmVapVWllVWlZlVVVVaqqlpVpVVVWlqlpVVVlZVVVZVVVVVVWVVVVVVVVVVVVVVVVVVVVVVVVVVVVlVfVVVVVpVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqpqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqpVqqqqqqqqqqqqVVVVqqqqqqVaVVWaqlpVpaVVWlqllqVaVVVVpVpVlVVVVX1VaVmlVV9VZlVVVVVVVVVVZlX///9VVVWammqaVVVV1VVVVVXVVVWlXVX1VVVVVb1Vr6q6qquqqppVuqr6rrquVV31VVVVVVVVVVdVVVVVWVVVVXfV31VVVVVVVVWlqqpVVVVVVVXVV1VVVVVVVVVVVVVVVVetWlVVVVVVVVVVVaqqqqqqqqpqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqAAAAwKqqWlUAAAAAqqqqqqqqqqpqqqqqqmqqVVVVVVVVVVVVVVVVBVRVVVVVVVVVVVVVVVVVVVWqalVVAABUWaqqalWqqqqqqqqqWqqqqqqqqqqqqqqqqqqqWlWqqqqqqqqquv7/v6qqqqpWVVVVVVVVVVVVVVVVVfX///////8vbml4L3N0b3JlLzI4aHl6ZmwzMzhrczRhbWhhN3ZwcG5sYnExczFucWF2LXJ1c3QtZGVmYXVsdC0xLjg1LjAvbGliL3J1c3RsaWIvc3JjL3J1c3QvbGlicmFyeS9hbGxvYy9zcmMvcmF3X3ZlYy5ycy9ob21lL3J1bm5lci8uY2FyZ28vcmVnaXN0cnkvc3JjL2luZGV4LmNyYXRlcy5pby0xOTQ5Y2Y4YzZiNWI1NTdmL3dhc20tYmluZGdlbi0wLjIuMTA2L3NyYy9jb252ZXJ0L3NsaWNlcy5ycy9ob21lL3J1bm5lci8uY2FyZ28vcmVnaXN0cnkvc3JjL2luZGV4LmNyYXRlcy5pby0xOTQ5Y2Y4YzZiNWI1NTdmL3dhc20tYmluZGdlbi0wLjIuMTA2L3NyYy9leHRlcm5yZWYucnMdVBAAZwAAAH8AAAARAAAAHVQQAGcAAACMAAAAEQAAAG51bGwgcG9pbnRlciBwYXNzZWQgdG8gcnVzdHJlY3Vyc2l2ZSB1c2Ugb2YgYW4gb2JqZWN0IGRldGVjdGVkIHdoaWNoIHdvdWxkIGxlYWQgdG8gdW5zYWZlIGFsaWFzaW5nIGluIHJ1c3RKc1ZhbHVlKCkADlUQAAgAAAAWVRAAAQBBqKrBAAsBBABICXByb2R1Y2VycwEMcHJvY2Vzc2VkLWJ5AgZ3YWxydXMGMC4yNC40DHdhc20tYmluZGdlbhMwLjIuMTA2ICgxMTgzMWZiODkp");async function sV(A){return await Et({module_or_path:await A.module,memory:A.memory}),gV}class at{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;this.speed=t,this.startTime=performance.now()}getTime(){return this.speed*(performance.now()-this.startTime)/1e3}setTime(t){this.startTime=performance.now()-t/this.speed*1e3}}class we{constructor(){}getTime(t){}setTime(t){}}class qA{constructor(t,e){this.input=typeof t.next=="function"?t:t[Symbol.iterator](),this.xfs=e??[]}map(t){return this.transform(rV(t))}flatMap(t){return this.transform(oV(t))}filter(t){return this.transform(IV(t))}take(t){return this.transform(BV(t))}drop(t){return this.transform(CV(t))}transform(t){return new qA(this.input,this.xfs.concat([t]))}multiplex(t,e){return new qA(new EV(this[Symbol.iterator](),t[Symbol.iterator](),e))}toArray(){return Array.from(this)}[Symbol.iterator](){let t=0,e=[],g=!1;const V=QV(this.xfs,n=>e.push(n));return{next:()=>{for(t===e.length&&(e=[],t=0);e.length===0;){const n=this.input.next();if(n.done)break;V.step(n.value)}return e.length===0&&!g&&(V.flush(),g=!0),e.length>0?{done:!1,value:e[t++]}:{done:!0}}}}}function rV(A){return t=>e=>{t(A(e))}}function oV(A){return t=>e=>{A(e).forEach(t)}}function IV(A){return t=>e=>{A(e)&&t(e)}}function BV(A){let t=0;return e=>g=>{tg=>{t+=1,t>A&&e(g)}}function QV(A,t){return A.reverse().reduce((e,g)=>{const V=Lt(g(e.step));return{step:V.step,flush:()=>{V.flush(),e.flush()}}},Lt(t))}function Lt(A){return typeof A=="function"?{step:A,flush:()=>{}}:A}class EV{constructor(t,e,g){this.left=t,this.right=e,this.comparator=g}[Symbol.iterator](){let t,e;return{next:()=>{if(t===void 0&&this.left!==void 0){const g=this.left.next();g.done?this.left=void 0:t=g.value}if(e===void 0&&this.right!==void 0){const g=this.right.next();g.done?this.right=void 0:e=g.value}if(t===void 0&&e===void 0)return{done:!0};if(t===void 0){const g=e;return e=void 0,{done:!1,value:g}}else if(e===void 0){const g=t;return t=void 0,{done:!1,value:g}}else if(this.comparator(t,e)){const g=t;return t=void 0,{done:!1,value:g}}else{const g=e;return e=void 0,{done:!1,value:g}}}}}}function lt(A){const t=re(A.foreground),e=re(A.background),g=A.palette;if(g===void 0||!t||!e||g.length<8)return;const V=[],n=Math.min(g.length,16);for(let r=0;rV[0]==="[").map(JSON.parse);return{header:e,events:g}}function Ft(A){let t=0;const e=new qA(A.stdout).map(g=>(t+=g[0],[t,"o",g[1]]));return{cols:A.width,rows:A.height,events:e}}function Mt(A,t){return{cols:A.width,rows:A.height,theme:Pt(A.theme),events:t,idleTimeLimit:A.idle_time_limit}}function Rt(A,t){t instanceof qA||(t=new qA(t));let e=0;return t=t.map(g=>(e+=g[0],[e,g[1],g[2]])),{cols:A.term.cols,rows:A.term.rows,theme:Pt(A.term?.theme),events:t,idleTimeLimit:A.idle_time_limit}}function Pt(A){const t=typeof A?.palette=="string"?A.palette.split(":"):void 0;return lt({foreground:A?.fg,background:A?.bg,palette:t})}function lV(A){const t=JSON.stringify({version:2,width:A.cols,height:A.rows}),e=A.events.map(JSON.stringify).join(` -`);return`${t} -${e} -`}function cV(A,t,e){let{feed:g,resize:V,onInput:n,onMarker:r,setState:o,logger:i}=t,{speed:s,idleTimeLimit:E,startAt:B,loop:l,posterTime:a,markers:u,pauseOnMarkers:C,cols:Q,rows:I,audioUrl:f}=e,D,p,y,L,b,v,R,W=0,G=0,_,U,sA=0,QA=!1,IA,BA=!1,tA=()=>performance.now()*s,x,F,S=!1;async function EA(){const d=setTimeout(()=>{o("loading")},3e3);try{let m=aA(A,i,{idleTimeLimit:E,startAt:B,markers_:u});const k=await ZA(f);return m=await m,{...m,hasAudio:k}}finally{clearTimeout(d)}}async function aA(d,m,k){const{parser:J,minFrameTime:Z,inputOffset:TA,dumpFilename:Ce,encoding:$A="utf-8"}=d,ge=await pA(d),Qe=uV(await J(ge,{encoding:$A}),m,{...k,minFrameTime:Z,inputOffset:TA});if({cols:D,rows:p,events:y,duration:b,effectiveStartAt:v}=Qe,Q=Q??D,I=I??p,y.length===0)throw new Error("recording is missing events");Ce!==void 0&&hV(Qe,Ce);const Ze=a!==void 0?q(a):void 0;return L=y.filter(Ve=>Ve[1]==="m").map(Ve=>[Ve[0],Ve[2].label]),{cols:D,rows:p,duration:b,theme:Qe.theme,poster:Ze,markers:L}}async function ZA(d){return d?(F=await DV(d),S=!Number.isNaN(F.duration)&&F.duration!==1/0&&F.seekable.length>0&&F.seekable.end(F.seekable.length-1)===F.duration,S?(F.addEventListener("playing",uA),F.addEventListener("waiting",rA)):i.warn(`audio is not seekable - you must enable range request support on the server providing ${F.src} for audio seeking to work`),!0):!1}async function pA(d){let{url:m,data:k,fetchOpts:J={}}=d;if(typeof m=="string")return await hA(m,J);if(Array.isArray(m))return await Promise.all(m.map(Z=>hA(Z,J)));if(k!==void 0){typeof k=="function"&&(k=k()),k instanceof Promise||(k=Promise.resolve(k));const Z=await k;return typeof Z=="string"||Z instanceof ArrayBuffer?new Response(Z):Z}else throw new Error("failed fetching recording file: url/data missing in src")}async function hA(d,m){const k=await fetch(d,m);if(!k.ok)throw new Error(`failed fetching recording from ${d}: ${k.status} ${k.statusText}`);return k}function gA(){const d=y[W];d?R=WA(LA,d[0]):yA()}function WA(d,m){let k=(m*1e3-(tA()-_))/s;return k<0&&(k=0),setTimeout(d,k)}function LA(){let d=y[W],m;do{if(G=d[0],W++,JA(d))return;d=y[W],m=tA()-_}while(d&&m>d[0]*1e3);gA()}function DA(){clearTimeout(R),R=null}function JA(d){const[m,k,J]=d;if(k==="o")g(J);else if(k==="i")n(J);else if(k==="r"){const[Z,TA]=J.split("x");V(Z,TA)}else if(k==="m"&&(r(J),C))return fA(),U=m*1e3,o("idle",{reason:"paused"}),!0;return!1}function yA(){DA(),sA++,l===!0||typeof l=="number"&&sA>"?d=k+5:d==="<<<"?d=k-.1*b:d===">>>"?d=k+.1*b:d[d.length-1]==="%"&&(d=parseFloat(d.substring(0,d.length-1))/100*b);else if(typeof d=="object"){if(d.marker==="prev")d=xA(k)??0,m&&k-d<1&&(d=xA(d)??0);else if(d.marker==="next")d=c(k)??b;else if(typeof d.marker=="number"){const TA=L[d.marker];if(TA===void 0)throw new Error(`invalid marker index: ${d.marker}`);d=TA[0]}}const J=Math.min(Math.max(d,0),b);if(J*1e3===U)return!1;Jd;)J=k[0],k=L[--m];return J}function h(d){d===void 0&&(d=1);let m,k;if(d>0){let J=W;m=y[J];for(let Z=0;Zm[0]m[2])}function H(){return R?(tA()-_)/1e3:(U??0)/1e3}function N(){V(Q,I)}function T(){x=new AudioContext({latencyHint:"interactive"}),x.createMediaElementSource(F).connect(x.destination),tA=K}function K(){if(!x)throw new Error("audio context not started - can't tell time!");const{contextTime:d,performanceTime:m}=x.getOutputTimestamp();return m===0?d*1e3:d*1e3+(performance.now()-m)}function rA(){if(i.debug("audio buffering"),QA=!0,BA=!!R,IA=setTimeout(()=>o("loading"),1e3),!R)return!0;i.debug("pausing session playback"),DA(),U=tA()-_}function uA(){i.debug("audio resumed"),clearTimeout(IA),o("playing"),QA&&(QA=!1,BA&&(i.debug("resuming session playback"),_=tA()-U,U=null,gA()))}function dA(){if(F)return F.muted=!0,!0}function lA(){if(F)return F.muted=!1,!0}return{init:EA,play:te,pause:fA,seek:vA,step:h,restart:M,stop:fA,mute:dA,unmute:lA,getCurrentTime:H}}function fV(A){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.016666666666666666,e;return g=>{let V=0,n=0;return{step:r=>{if(V++,e===void 0){e=r;return}r[1]==="o"&&e[1]==="o"&&r[0]-e[0]{e!==void 0&&(g(e),n++),A.debug(`batched ${V} frames to ${n} frames`)}}}}function uV(A,t,e){let{startAt:g=0,idleTimeLimit:V,minFrameTime:n,inputOffset:r,markers_:o}=e,{events:i}=A;i instanceof qA||(i=new qA(i)),V=V??A.idleTimeLimit??1/0;const s={offset:0};i=i.transform(fV(t,n)).map(wV(V,g,s)).map(bt()),o!==void 0&&(o=new qA(o).map(dV),i=i.filter(l=>l[1]!=="m").multiplex(o,(l,a)=>l[0]l[1]==="i"?[l[0]+r,l[1],l[2]]:l),i.sort((l,a)=>l[0]-a[0]));const E=i[i.length-1][0],B=g-s.offset;return{...A,events:i,duration:E,effectiveStartAt:B}}function dV(A){return typeof A=="number"?[A,"m",""]:[A[0],"m",A[1]]}function wV(A,t,e){let g=0,V=0;return function(n){const o=n[0]-g-A;return g=n[0],o>0&&(V+=o,n[0]n[1]==="m"?[n[0],n[1],n[2].label]:n),V=lV({...A,events:g});e.href=URL.createObjectURL(new Blob([V],{type:"text/plain"})),e.download=t,e.click()}async function DV(A){const t=new Audio;t.preload="metadata",t.loop=!1,t.crossOrigin="anonymous";let e;const g=new Promise(n=>{e=n});function V(){e(),t.removeEventListener("canplay",V)}return t.addEventListener("canplay",V),t.src=A,t.load(),await g,t}function yV(A,t,e){let{hourColor:g=3,minuteColor:V=4,separatorColor:n=9}=A,{feed:r}=t,{cols:o=5,rows:i=1}=e;const s=Math.floor(i/2),E=Math.floor(o/2)-2,B=`\x1B[?25l\x1B[1m\x1B[${s}B`;let l;const a=()=>{const C=new Date,Q=C.getHours(),I=C.getMinutes(),f=[];f.push("\r");for(let D=0;D{a().forEach(r)};return{init:()=>{const Q=[B].concat(a());return{cols:o,rows:i,duration:1440,poster:Q}},play:()=>(r(B),u(),l=setInterval(u,1e3),!0),stop:()=>{clearInterval(l)},getCurrentTime:()=>{const C=new Date;return C.getHours()*60+C.getMinutes()}}}function kV(A,t,e){let{feed:g}=t,{speed:V}=e;const n=32,r=126-n;let o;const i=()=>{const E=Math.pow(5,Math.random()*4);o=setTimeout(s,E/V)},s=()=>{i();const E=String.fromCharCode(n+Math.floor(Math.random()*r));g(E)};return()=>(i(),()=>clearInterval(o))}function mV(A,t){let{url:e,iterations:g=10}=A,{feed:V,setState:n}=t,r,o=0;return{async init(){const i=await jt(await fetch(e)),{cols:s,rows:E,events:B}=i;r=Array.from(B).filter(a=>{let[u,C,Q]=a;return C==="o"}).map(a=>{let[u,C,Q]=a;return[u,Q]});const l=r[r.length-1][0];for(const[a,u]of r)o+=new Blob([u]).size;return{cols:s,rows:E,duration:l}},play(){const i=performance.now();for(let a=0;a{n("stopped",{reason:"ended"})},0),!0}}}class qV{constructor(){this.items=[],this.onPush=void 0}push(t){this.items.push(t),this.onPush!==void 0&&(this.onPush(this.popAll()),this.onPush=void 0)}popAll(){if(this.items.length>0){const t=this.items;return this.items=[],t}else{const t=this;return new Promise(e=>{t.onPush=e})}}}function Ag(A,t,e,g,V,n,r,o,i){const s=LV(t,e,g,V);if(A===0)return i.debug("using no buffer"),pV(s);{A=A??{};let E;return typeof A=="number"?(i.debug(`using fixed time buffer (${A} ms)`),E=B=>A):typeof A=="function"?(i.debug("using custom dynamic buffer"),E=A({logger:i})):(i.debug("using adaptive buffer",A),E=RV({logger:i},A)),FV(E,s,n,i,r??0,o)}}function pV(A){return{pushEvent(t){A(t[1],t[2])},pushText(t){A("o",t)},stop(){}}}function LV(A,t,e,g){return function(V,n){V==="o"?A(n):V==="i"?e(n):V==="r"?t(n.cols,n.rows):V==="m"&&g(n)}}function FV(A,t,e,g,V){let n=arguments.length>5&&arguments[5]!==void 0?arguments[5]:.016666666666666666,r=performance.now()-V*1e3,o=A(0);const i=new qV;n*=1e3;let s=-n,E=!1;function B(){return performance.now()-r}return setTimeout(async()=>{for(;!E;){const l=await i.popAll();if(E)return;for(const a of l){const u=a[0]*1e3+o;if(u-s0&&(await MV(C),E))return;e(a[0]),t(a[1],a[2]),s=u}}},0),{pushEvent(l){let a=B()-l[0]*1e3;a<0&&(g.debug(`correcting epoch by ${a} ms`),r+=a,a=0),o=A(a),i.push(l)},pushText(l){i.push([B()/1e3,"o",l])},stop(){E=!0,i.push(void 0)}}}function MV(A){return new Promise(t=>{setTimeout(t,A)})}function RV(){let{logger:A}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{minBufferTime:t=50,bufferLevelStep:e=100,maxBufferLevel:g=50,transitionDuration:V=500,peakHalfLifeUp:n=100,peakHalfLifeDown:r=1e4,floorHalfLifeUp:o=5e3,floorHalfLifeDown:i=100,idealHalfLifeUp:s=1e3,idealHalfLifeDown:E=5e3,safetyMultiplier:B=1.2,minImprovementDuration:l=3e3}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};function a(b){return b===0?t:e*b}let u=1,C=a(u),Q=performance.now(),I=null,f=null,D=null,p=null,y=null,L=null;return function(b){const v=performance.now(),R=Math.max(0,v-Q);if(Q=v,I===null)I=b;else if(b>I){const U=1-Math.pow(2,-R/n);I+=U*(b-I)}else{const U=1-Math.pow(2,-R/r);I+=U*(b-I)}if(I=Math.max(I,0),f===null)f=b;else if(b>f){const U=1-Math.pow(2,-R/o);f+=U*(b-f)}else{const U=1-Math.pow(2,-R/i);f+=U*(b-f)}f=Math.max(f,0);const W=I-f,G=B*(I+W);if(D===null)D=G;else if(G>D){const U=1-Math.pow(2,-R/s);D+=+U*(G-D)}else{const U=1-Math.pow(2,-R/E);D+=+U*(G-D)}let _;return D<=t?_=0:_=bV(Math.ceil(D/e),1,g),b>C&&A.debug("buffer underrun",{latency:b,bufferTime:C}),_>u?(b>C?u=Math.min(_,u+3):u+=1,y=a(u),L=(y-C)/V,p=null,A.debug("raising buffer",{latency:b,bufferTime:C,targetBufferTime:y})):_=l&&(u-=1,y=a(u),L=(y-C)/V,p=v,A.debug("lowering buffer",{latency:b,bufferTime:C,targetBufferTime:y}))):p=null,y!==null&&(C+=L*R,(L>=0&&C>y||L<0&&C0&&(b=t.decode(new Uint8Array(Q,C.offset,L))),g=s,{time:I,term:{size:{cols:f,rows:D},theme:y,init:b}}}function s(C){const Q=new Gt(new DataView(C)),I=Q.getUint8();if(I===1)return i(Q,C);if(I===111)return E(Q,C);if(I===105)return B(Q,C);if(I===114)return l(Q);if(I===109)return a(Q,C);if(I===120)return u(Q);if(I===4)return g=o,!1;A.debug(`alis: unknown frame type: ${I}`)}function E(C,Q){C.decodeVarUint();const I=C.decodeVarUint();V+=I;const f=C.decodeVarUint(),D=t.decode(new Uint8Array(Q,C.offset,f));return[V/ie,"o",D]}function B(C,Q){C.decodeVarUint();const I=C.decodeVarUint();V+=I;const f=C.decodeVarUint(),D=e.decode(new Uint8Array(Q,C.offset,f));return[V/ie,"i",D]}function l(C){C.decodeVarUint();const Q=C.decodeVarUint();V+=Q;const I=C.decodeVarUint(),f=C.decodeVarUint();return[V/ie,"r",{cols:I,rows:f}]}function a(C,Q){C.decodeVarUint();const I=C.decodeVarUint();V+=I;const f=C.decodeVarUint(),D=new TextDecoder,p=n++,y=V/ie,L=D.decode(new Uint8Array(Q,C.offset,f));return[y,"m",{index:p,time:y,label:L}]}function u(C){C.decodeVarUint();const Q=C.decodeVarUint();V+=Q;const I=C.decodeVarUint();return[V/ie,"x",{status:I}]}return function(C){return g(C)}}function Nt(A){const t=A.length/3,e=ze(A[0],A[1],A[2]),g=ze(A[3],A[4],A[5]),V=[];for(let n=2;n1&&arguments[1]!==void 0?arguments[1]:0;this.inner=t,this.offset=e}forward(t){this.offset+=t}getUint8(){const t=this.inner.getUint8(this.offset);return this.offset+=1,t}decodeVarUint(){let t=BigInt(0),e=BigInt(0),g=this.getUint8();for(;g>127;)g&=127,t+=BigInt(g)<{x=C.protocol||"raw",a.info("opened"),a.info(`activating ${x} protocol handler`),x==="v1.alis"?C.onmessage=G(NV(a)):x==="v2.asciicast"?C.onmessage=G(GV()):x==="v3.asciicast"?C.onmessage=G(UV()):x==="raw"&&(C.onmessage=G(SV())),D=setTimeout(()=>{f=0},1e3)},C.onclose=F=>{if(clearTimeout(v),sA(),p)return;let S=!1,EA="Stream ended";if(x==="v1.alis"?(b||F.code>=4e3&&F.code<=4100)&&(S=!0,EA=F.reason||EA):(L||F.code===1e3||F.code===1005)&&(S=!0),S)a.info("closed"),l("ended",{message:EA});else if(F.code===1002)a.debug(`close reason: ${F.reason}`),l("ended",{message:"Err: Player not compatible with the server"});else{clearTimeout(D);const aA=n(f++);a.info(`unexpected close, reconnecting in ${aA}...`),l("loading"),setTimeout(W,aA)}},y=!1}function G(x){return v=setTimeout(U,5e3),function(F){try{const S=x(F.data);if(Q){if(Array.isArray(S))Q.pushEvent(S),S[1]==="x"&&(L=!0);else if(typeof S=="string")Q.pushText(S);else if(typeof S=="object"&&!Array.isArray(S))_(S);else if(S===!1)U(),b=!0;else if(S!==void 0)throw new Error(`unexpected value from protocol handler: ${S}`)}else if(typeof S=="object"&&!Array.isArray(S))_(S),clearTimeout(v);else if(S===void 0)clearTimeout(v),v=setTimeout(U,1e3);else throw clearTimeout(v),new Error(`unexpected value from protocol handler: ${S}`)}catch(S){throw C.close(),S}}}function _(x){let{time:F,term:S}=x;const{size:EA,init:aA,theme:ZA}=S,{cols:pA,rows:hA}=EA;a.info(`stream reset (${pA}x${hA} @${F})`),l("playing"),sA(),Q=Ag(V,o,s,E,B,gA=>I.setTime(gA),F,r,a),i(pA,hA,aA,ZA),I=new at,y=!0,L=!1,b=!1,typeof F=="number"&&I.setTime(F)}function U(){sA(),y?(a.info("stream ended"),l("offline",{message:"Stream ended"})):(a.info("stream offline"),l("offline",{message:"Stream offline"})),I=new we}function sA(){Q&&Q.stop(),Q=null}function QA(){u&&(R=new Audio,R.preload="auto",R.crossOrigin="anonymous",R.src=u,R.play())}function IA(){R&&R.pause()}function BA(){if(R)return R.muted=!0,!0}function tA(){if(R)return R.muted=!1,!0}return{init:()=>({hasAudio:!!u}),play:()=>{W(),QA()},stop:()=>{p=!0,sA(),C!==void 0&&C.close(),IA()},mute:BA,unmute:tA,getCurrentTime:()=>I.getTime()}}function HV(A,t){let{url:e,bufferTime:g,minFrameTime:V}=A,{feed:n,reset:r,resize:o,onInput:i,onMarker:s,setState:E,logger:B}=t;B=new $t(B,"eventsource: ");let l,a,u=new we;function C(Q){a!==void 0&&a.stop(),a=Ag(g,n,o,i,s,I=>u.setTime(I),Q,V,B)}return{play:()=>{l=new EventSource(e),l.addEventListener("open",()=>{B.info("opened"),C()}),l.addEventListener("error",Q=>{B.info("errored"),B.debug({e:Q}),E("loading")}),l.addEventListener("message",Q=>{const I=JSON.parse(Q.data);if(Array.isArray(I))a.pushEvent(I);else if(I.cols!==void 0||I.width!==void 0){const f=I.cols??I.width,D=I.rows??I.height;B.debug(`vt reset (${f}x${D})`),E("playing"),C(I.time),r(f,D,I.init??void 0),u=new at,typeof I.time=="number"&&u.setTime(I.time)}else I.state==="offline"&&(B.info("stream offline"),E("offline",{message:"Stream offline"}),u=new we)}),l.addEventListener("done",()=>{B.info("closed"),l.close(),E("ended",{message:"Stream ended"})})},stop:()=>{a!==void 0&&a.stop(),l!==void 0&&l.close()},getCurrentTime:()=>u.getTime()}}async function ZV(A,t){let{encoding:e}=t;const g=new TextDecoder(e);let V,n,r=(await A[0].text()).split(` -`).filter(Q=>Q.length>0).map(Q=>Q.split(" "));r[0].length<3&&(r=r.map(Q=>["O",Q[0],Q[1]]));const o=await A[1].arrayBuffer(),i=new Uint8Array(o),s=i.findIndex(Q=>Q==10)+1,B=g.decode(i.subarray(0,s)).match(/COLUMNS="(\d+)" LINES="(\d+)"/);B!==null&&(V=parseInt(B[1],10),n=parseInt(B[2],10));const l={array:i,cursor:s};let a=l;if(A[2]!==void 0){const Q=await A[2].arrayBuffer();a={array:new Uint8Array(Q),cursor:s}}const u=[];let C=0;for(const Q of r)if(C+=parseFloat(Q[1]),Q[0]==="O"){const I=parseInt(Q[2],10),f=l.array.subarray(l.cursor,l.cursor+I),D=g.decode(f);u.push([C,"o",D]),l.cursor+=I}else if(Q[0]==="I"){const I=parseInt(Q[2],10),f=a.array.subarray(a.cursor,a.cursor+I),D=g.decode(f);u.push([C,"i",D]),a.cursor+=I}else if(Q[0]==="S"&&Q[2]==="SIGWINCH"){const I=parseInt(Q[4].slice(5),10),f=parseInt(Q[3].slice(5),10);u.push([C,"r",`${I}x${f}`])}else Q[0]==="H"&&Q[2]==="COLUMNS"?V=parseInt(Q[3],10):Q[0]==="H"&&Q[2]==="LINES"&&(n=parseInt(Q[3],10));return V=V??80,n=n??24,{cols:V,rows:n,events:u}}async function WV(A,t){let{encoding:e}=t;const g=new TextDecoder(e),V=await A.arrayBuffer(),n=new Uint8Array(V),r=je(n),o=r.time,s=g.decode(r.data).match(/\x1b\[8;(\d+);(\d+)t/),E=[];let B=80,l=24;s!==null&&(B=parseInt(s[2],10),l=parseInt(s[1],10));let a=0,u=je(n);for(;u!==void 0;){const C=u.time-o,Q=g.decode(u.data);E.push([C,"o",Q]),a+=u.len,u=je(n.subarray(a))}return{cols:B,rows:l,events:E}}function je(A){if(A.length<13)return;const t=xV(A.subarray(0,8)),e=nt(A.subarray(8,12)),g=A.subarray(12,12+e);return{time:t,data:g,len:e+12}}function nt(A){return A[0]+A[1]*256+A[2]*256*256+A[3]*256*256*256}function xV(A){const t=nt(A.subarray(0,4)),e=nt(A.subarray(4,8));return t+e/1e6}const Pe=80,At=24,$V=sV({module:iV});class Ae{constructor(t){this.core=t,this.driver=t.driver}onEnter(t){}init(){}play(){}pause(){}togglePlay(){}mute(){this.driver&&this.driver.mute()&&this.core._dispatchEvent("muted",!0)}unmute(){this.driver&&this.driver.unmute()&&this.core._dispatchEvent("muted",!1)}seek(t){return!1}step(t){}stop(){this.driver.stop()}}class _V extends Ae{async init(){try{return await this.core._initializeDriver(),this.core._setState("idle")}catch(t){throw this.core._setState("errored"),t}}async play(){this.core._dispatchEvent("play"),await(await this.init()).doPlay()}async togglePlay(){await this.play()}async seek(t){return await(await this.init()).seek(t)}async step(t){await(await this.init()).step(t)}stop(){}}class zV extends Ae{onEnter(t){let{reason:e,message:g}=t;this.core._dispatchEvent("idle",{message:g}),e==="paused"&&this.core._dispatchEvent("pause")}async play(){this.core._dispatchEvent("play"),await this.doPlay()}async doPlay(){const t=await this.driver.play();t===!0?this.core._setState("playing"):typeof t=="function"&&(this.core._setState("playing"),this.driver.stop=t)}async togglePlay(){await this.play()}seek(t){return this.driver.seek(t)}step(t){this.driver.step(t)}}class XV extends Ae{onEnter(){this.core._dispatchEvent("playing")}pause(){this.driver.pause()===!0&&this.core._setState("idle",{reason:"paused"})}togglePlay(){this.pause()}seek(t){return this.driver.seek(t)}}class jV extends Ae{onEnter(){this.core._dispatchEvent("loading")}}class PV extends Ae{onEnter(t){let{message:e}=t;this.core._dispatchEvent("offline",{message:e})}}class An extends Ae{onEnter(t){let{message:e}=t;this.core._dispatchEvent("ended",{message:e})}async play(){this.core._dispatchEvent("play"),await this.driver.restart()&&this.core._setState("playing")}async togglePlay(){await this.play()}async seek(t){return await this.driver.seek(t)===!0?(this.core._setState("idle"),!0):!1}}class en extends Ae{onEnter(){this.core._dispatchEvent("errored")}}class tn{constructor(t,e){this.logger=e.logger,this.state=new _V(this),this.stateName="uninitialized",this.driver=gn(t),this.changedLines=new Set,this.duration=void 0,this.cols=e.cols,this.rows=e.rows,this.speed=e.speed,this.loop=e.loop,this.autoPlay=e.autoPlay,this.idleTimeLimit=e.idleTimeLimit,this.preload=e.preload,this.startAt=ht(e.startAt),this.poster=this._parsePoster(e.poster),this.markers=this._normalizeMarkers(e.markers),this.pauseOnMarkers=e.pauseOnMarkers,this.audioUrl=e.audioUrl,this.boldIsBright=e.boldIsBright??!1,this.commandQueue=Promise.resolve(),this.needsClear=!1,this.eventHandlers=new Map([["ended",[]],["errored",[]],["idle",[]],["input",[]],["loading",[]],["marker",[]],["metadata",[]],["muted",[]],["offline",[]],["pause",[]],["play",[]],["playing",[]],["ready",[]],["seeked",[]],["vtUpdate",[]]])}async init(){this.wasm=await $V;const{memory:t}=await this.wasm.default();this.memory=t,this._initializeVt(this.cols??Pe,this.rows??At);const e=this._feed.bind(this),g=E=>{this._dispatchEvent("input",{data:E})},V=E=>{let{index:B,time:l,label:a}=E;this._dispatchEvent("marker",{index:B,time:l,label:a})},n=this._resetVt.bind(this),r=this._resizeVt.bind(this),o=this._setState.bind(this),i=this.poster.type==="npt"&&!this.autoPlay?this.poster.value:void 0;this.driver=this.driver({feed:e,onInput:g,onMarker:V,reset:n,resize:r,setState:o,logger:this.logger},{cols:this.cols,rows:this.rows,speed:this.speed,idleTimeLimit:this.idleTimeLimit,startAt:this.startAt,loop:this.loop,posterTime:i,markers:this.markers,pauseOnMarkers:this.pauseOnMarkers,audioUrl:this.audioUrl}),typeof this.driver=="function"&&(this.driver={play:this.driver}),(this.preload||i!==void 0)&&this._withState(E=>E.init());const s={isPausable:!!this.driver.pause,isSeekable:!!this.driver.seek};if(this.driver.init===void 0&&(this.driver.init=()=>({})),this.driver.pause===void 0&&(this.driver.pause=()=>{}),this.driver.seek===void 0&&(this.driver.seek=E=>!1),this.driver.step===void 0&&(this.driver.step=E=>{}),this.driver.stop===void 0&&(this.driver.stop=()=>{}),this.driver.restart===void 0&&(this.driver.restart=()=>{}),this.driver.mute===void 0&&(this.driver.mute=()=>{}),this.driver.unmute===void 0&&(this.driver.unmute=()=>{}),this.driver.getCurrentTime===void 0){const E=this.driver.play;let B=new we;this.driver.play=()=>(B=new at(this.speed),E()),this.driver.getCurrentTime=()=>B.getTime()}this._dispatchEvent("ready",s),this.autoPlay?this.play():this.poster.type==="text"&&(this._feed(this.poster.value),this.needsClear=!0)}play(){return this._clearIfNeeded(),this._withState(t=>t.play())}pause(){return this._withState(t=>t.pause())}togglePlay(){return this._clearIfNeeded(),this._withState(t=>t.togglePlay())}seek(t){return this._clearIfNeeded(),this._withState(async e=>{await e.seek(t)&&this._dispatchEvent("seeked")})}step(t){return this._clearIfNeeded(),this._withState(e=>e.step(t))}stop(){return this._withState(t=>t.stop())}mute(){return this._withState(t=>t.mute())}unmute(){return this._withState(t=>t.unmute())}getLine(t,e){return this.vt.getLine(t,e)}getDataView(t,e){let[g,V]=t;return new DataView(this.memory.buffer,g,V*e)}getUint32Array(t){let[e,g]=t;return new Uint32Array(this.memory.buffer,e,g)}getCursor(){const t=this.vt.getCursor();return t?{col:t[0],row:t[1],visible:!0}:{col:0,row:0,visible:!1}}getCurrentTime(){return this.driver.getCurrentTime()}getRemainingTime(){if(typeof this.duration=="number")return this.duration-Math.min(this.getCurrentTime(),this.duration)}getProgress(){if(typeof this.duration=="number")return Math.min(this.getCurrentTime(),this.duration)/this.duration}getDuration(){return this.duration}addEventListener(t,e){this.eventHandlers.get(t).push(e)}removeEventListener(t,e){const g=this.eventHandlers.get(t);if(!g)return;const V=g.indexOf(e);V!==-1&&g.splice(V,1)}_dispatchEvent(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(const g of this.eventHandlers.get(t))g(e)}_withState(t){return this._enqueueCommand(()=>t(this.state))}_enqueueCommand(t){return this.commandQueue=this.commandQueue.then(t),this.commandQueue}_setState(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.stateName===t)return this.state;if(this.stateName=t,t==="playing")this.state=new XV(this);else if(t==="idle")this.state=new zV(this);else if(t==="loading")this.state=new jV(this);else if(t==="ended")this.state=new An(this);else if(t==="offline")this.state=new PV(this);else if(t==="errored")this.state=new en(this);else throw new Error(`invalid state: ${t}`);return this.state.onEnter(e),this.state}_feed(t){const e=this.vt.feed(t);this._dispatchEvent("vtUpdate",{changedRows:e})}async _initializeDriver(){const t=await this.driver.init();this.cols=this.cols??t.cols??Pe,this.rows=this.rows??t.rows??At,this.duration=this.duration??t.duration,this.markers=this._normalizeMarkers(t.markers)??this.markers??[],this.cols===0&&(this.cols=Pe),this.rows===0&&(this.rows=At),this._initializeVt(this.cols,this.rows),t.poster!==void 0?(t.poster.forEach(e=>this.vt.feed(e)),this.needsClear=!0):this.poster.type==="text"&&(this.vt.feed(this.poster.value),this.needsClear=!0),this._dispatchEvent("metadata",{size:{cols:this.cols,rows:this.rows},theme:t.theme??null,duration:this.duration,markers:this.markers,hasAudio:t.hasAudio}),this._dispatchEvent("vtUpdate",{size:{cols:this.cols,rows:this.rows},theme:t.theme??null,changedRows:Array.from({length:this.rows},(e,g)=>g)})}_clearIfNeeded(){this.needsClear&&(this._feed("\x1Bc"),this.needsClear=!1)}_resetVt(t,e){let g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,V=arguments.length>3&&arguments[3]!==void 0?arguments[3]:void 0;this.logger.debug(`core: vt reset (${t}x${e})`),this.cols=t,this.rows=e,this._initializeVt(t,e),g!==void 0&&g!==""&&this.vt.feed(g),this._dispatchEvent("metadata",{size:{cols:t,rows:e},theme:V??null}),this._dispatchEvent("vtUpdate",{size:{cols:t,rows:e},theme:V??null,changedRows:Array.from({length:e},(n,r)=>r)})}_resizeVt(t,e){if(t===this.vt.cols&&e===this.vt.rows)return;const g=this.vt.resize(t,e);this.vt.cols=t,this.vt.rows=e,this.logger.debug(`core: vt resize (${t}x${e})`),this._dispatchEvent("metadata",{size:{cols:t,rows:e}}),this._dispatchEvent("vtUpdate",{size:{cols:t,rows:e},changedRows:g})}_initializeVt(t,e){this.logger.debug("vt init",{cols:t,rows:e}),this.vt=this.wasm.create(t,e,100,this.boldIsBright),this.vt.cols=t,this.vt.rows=e}_parsePoster(t){return typeof t!="string"?{}:t.substring(0,16)=="data:text/plain,"?{type:"text",value:t.substring(16)}:t.substring(0,4)=="npt:"?{type:"npt",value:ht(t.substring(4))}:{}}_normalizeMarkers(t){if(Array.isArray(t))return t.map(e=>typeof e=="number"?[e,""]:e)}}const Ut=new Map([["benchmark",mV],["clock",yV],["eventsource",HV],["random",kV],["recording",cV],["websocket",OV]]),St=new Map([["asciicast",jt],["typescript",ZV],["ttyrec",WV]]);function gn(A){if(typeof A=="function")return A;if(typeof A=="string"&&(A.substring(0,5)=="ws://"||A.substring(0,6)=="wss://"?A={driver:"websocket",url:A}:A.substring(0,6)=="clock:"?A={driver:"clock"}:A.substring(0,7)=="random:"?A={driver:"random"}:A.substring(0,10)=="benchmark:"?A={driver:"benchmark",url:A.substring(10)}:A={driver:"recording",url:A}),A.driver===void 0&&(A.driver="recording"),A.driver=="recording"&&(A.parser===void 0&&(A.parser="asciicast"),typeof A.parser=="string"))if(St.has(A.parser))A.parser=St.get(A.parser);else throw new Error(`unknown parser: ${A.parser}`);if(Ut.has(A.driver)){const t=Ut.get(A.driver);return(e,g)=>t(A,e,g)}else throw new Error(`unsupported driver: ${JSON.stringify(A)}`)}const Vn=!1,nn=(A,t)=>A===t,PA=Symbol("solid-proxy"),it=Symbol("solid-track"),be={equals:nn};let eg=ig;const SA=1,Ne=2,tg={owned:null,cleanups:null,context:null,owner:null};var eA=null;let et=null,sn=null,P=null,oA=null,NA=null,Te=0;function Le(A,t){const e=P,g=eA,V=A.length===0,n=t===void 0?g:t,r=V?tg:{owned:null,cleanups:null,context:n?n.context:null,owner:n},o=V?A:()=>A(()=>CA(()=>he(r)));eA=r,P=null;try{return ee(o,!0)}finally{P=e,eA=g}}function iA(A,t){t=t?Object.assign({},be,t):be;const e={value:A,observers:null,observerSlots:null,comparator:t.equals||void 0},g=V=>(typeof V=="function"&&(V=V(e.value)),ng(e,V));return[Vg.bind(e),g]}function rn(A,t,e){const g=Oe(A,t,!0,SA);Be(g)}function GA(A,t,e){const g=Oe(A,t,!1,SA);Be(g)}function st(A,t,e){eg=an;const g=Oe(A,t,!1,SA);g.user=!0,NA?NA.push(g):Be(g)}function VA(A,t,e){e=e?Object.assign({},be,e):be;const g=Oe(A,t,!0,0);return g.observers=null,g.observerSlots=null,g.comparator=e.equals||void 0,Be(g),Vg.bind(g)}function mA(A){return ee(A,!1)}function CA(A){if(P===null)return A();const t=P;P=null;try{return A()}finally{P=t}}function gg(A){st(()=>CA(A))}function Ke(A){return eA===null||(eA.cleanups===null?eA.cleanups=[A]:eA.cleanups.push(A)),A}function rt(){return P}function on(A){const t=P,e=eA;return Promise.resolve().then(()=>{P=t,eA=e;let g;return ee(A,!1),P=eA=null,g?g.done:void 0})}const[In]=iA(!1);function Bn(){return[In,on]}function Cn(A){const t=VA(A),e=VA(()=>ot(t()));return e.toArray=()=>{const g=e();return Array.isArray(g)?g:g!=null?[g]:[]},e}function Vg(){if(this.sources&&this.state)if(this.state===SA)Be(this);else{const A=oA;oA=null,ee(()=>Ue(this),!1),oA=A}if(P){const A=this.observers?this.observers.length:0;P.sources?(P.sources.push(this),P.sourceSlots.push(A)):(P.sources=[this],P.sourceSlots=[A]),this.observers?(this.observers.push(P),this.observerSlots.push(P.sources.length-1)):(this.observers=[P],this.observerSlots=[P.sources.length-1])}return this.value}function ng(A,t,e){let g=A.value;return(!A.comparator||!A.comparator(g,t))&&(A.value=t,A.observers&&A.observers.length&&ee(()=>{for(let V=0;V1e6)throw oA=[],new Error},!1)),t}function Be(A){if(!A.fn)return;he(A);const t=Te;Qn(A,A.value,t)}function Qn(A,t,e){let g;const V=eA,n=P;P=eA=A;try{g=A.fn(t)}catch(r){return A.pure&&(A.state=SA,A.owned&&A.owned.forEach(he),A.owned=null),A.updatedAt=e+1,rg(r)}finally{P=n,eA=V}(!A.updatedAt||A.updatedAt<=e)&&(A.updatedAt!=null&&"observers"in A?ng(A,g):A.value=g,A.updatedAt=e)}function Oe(A,t,e,g=SA,V){const n={fn:A,state:g,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:eA,context:eA?eA.context:null,pure:e};return eA===null||eA!==tg&&(eA.owned?eA.owned.push(n):eA.owned=[n]),n}function Ge(A){if(A.state===0)return;if(A.state===Ne)return Ue(A);if(A.suspense&&CA(A.suspense.inFallback))return A.suspense.effects.push(A);const t=[A];for(;(A=A.owner)&&(!A.updatedAt||A.updatedAt=0;e--)if(A=t[e],A.state===SA)Be(A);else if(A.state===Ne){const g=oA;oA=null,ee(()=>Ue(A,t[0]),!1),oA=g}}function ee(A,t){if(oA)return A();let e=!1;t||(oA=[]),NA?e=!0:NA=[],Te++;try{const g=A();return En(e),g}catch(g){e||(NA=null),oA=null,rg(g)}}function En(A){if(oA&&(ig(oA),oA=null),A)return;const t=NA;NA=null,t.length&&ee(()=>eg(t),!1)}function ig(A){for(let t=0;t=0;t--)he(A.tOwned[t]);delete A.tOwned}if(A.owned){for(t=A.owned.length-1;t>=0;t--)he(A.owned[t]);A.owned=null}if(A.cleanups){for(t=A.cleanups.length-1;t>=0;t--)A.cleanups[t]();A.cleanups=null}A.state=0}function ln(A){return A instanceof Error?A:new Error(typeof A=="string"?A:"Unknown error",{cause:A})}function rg(A,t=eA){throw ln(A)}function ot(A){if(typeof A=="function"&&!A.length)return ot(A());if(Array.isArray(A)){const t=[];for(let e=0;e1?[]:null;return Ke(()=>Jt(n)),()=>{let i=A()||[],s=i.length,E,B;return i[it],CA(()=>{let a,u,C,Q,I,f,D,p,y;if(s===0)r!==0&&(Jt(n),n=[],g=[],V=[],r=0,o&&(o=[])),e.fallback&&(g=[cn],V[0]=Le(L=>(n[0]=L,e.fallback())),r=1);else if(r===0){for(V=new Array(s),B=0;B=f&&p>=f&&g[D]===i[p];D--,p--)C[p]=V[D],Q[p]=n[D],o&&(I[p]=o[D]);for(a=new Map,u=new Array(p+1),B=p;B>=f;B--)y=i[B],E=a.get(y),u[B]=E===void 0?-1:E,a.set(y,B);for(E=f;E<=D;E++)y=g[E],B=a.get(y),B!==void 0&&B!==-1?(C[B]=V[E],Q[B]=n[E],o&&(I[B]=o[E]),B=u[B],a.set(y,B)):n[E]();for(B=f;BA(t||{}))}const og=A=>`Stale read from <${A}>.`;function un(A){const t="fallback"in A&&{fallback:()=>A.fallback};return VA(fn(()=>A.each,A.children,t||void 0))}function UA(A){const t=A.keyed,e=VA(()=>A.when,void 0,void 0),g=t?e:VA(e,void 0,{equals:(V,n)=>!V==!n});return VA(()=>{const V=g();if(V){const n=A.children;return typeof n=="function"&&n.length>0?CA(()=>n(t?V:()=>{if(!CA(g))throw og("Show");return e()})):n}return A.fallback},void 0,void 0)}function It(A){const t=Cn(()=>A.children),e=VA(()=>{const g=t(),V=Array.isArray(g)?g:[g];let n=()=>{};for(let r=0;rs()?void 0:i.when,void 0,void 0),B=i.keyed?E:VA(E,void 0,{equals:(l,a)=>!l==!a});n=()=>s()||(B()?[o,E,i]:void 0)}return n});return VA(()=>{const g=e()();if(!g)return A.fallback;const[V,n,r]=g,o=r.children;return typeof o=="function"&&o.length>0?CA(()=>o(r.keyed?n():()=>{if(CA(e)()?.[0]!==V)throw og("Match");return n()})):o},void 0,void 0)}function jA(A){return A}function dn(A,t,e){let g=e.length,V=t.length,n=g,r=0,o=0,i=t[V-1].nextSibling,s=null;for(;rE-o){const u=t[r];for(;o{V=n,t===document?A():AA(t,A(),t.firstChild?null:void 0,e)},g.owner),()=>{V(),t.textContent=""}}function $(A,t,e,g){let V;const n=()=>{const o=document.createElement("template");return o.innerHTML=A,o.content.firstChild},r=t?()=>CA(()=>document.importNode(V||(V=n()),!0)):()=>(V||(V=n())).cloneNode(!0);return r.cloneNode=r,r}function He(A,t=window.document){const e=t[Yt]||(t[Yt]=new Set);for(let g=0,V=A.length;gA(t,e))}function AA(A,t,e,g){if(e!==void 0&&!g&&(g=[]),typeof t!="function")return Se(A,t,g,e);GA(V=>Se(A,t(),V,e),g)}function Dn(A){let t=A.target;const e=`$$${A.type}`,g=A.target,V=A.currentTarget,n=i=>Object.defineProperty(A,"target",{configurable:!0,value:i}),r=()=>{const i=t[e];if(i&&!t.disabled){const s=t[`${e}Data`];if(s!==void 0?i.call(t,s,A):i.call(t,A),A.cancelBubble)return}return t.host&&typeof t.host!="string"&&!t.host._$host&&t.contains(A.target)&&n(t.host),!0},o=()=>{for(;r()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(A,"currentTarget",{configurable:!0,get(){return t||document}}),A.composedPath){const i=A.composedPath();n(i[0]);for(let s=0;s{let o=t();for(;typeof o=="function";)o=o();e=Se(A,o,e,g)}),()=>e;if(Array.isArray(t)){const o=[],i=e&&Array.isArray(e);if(Bt(o,t,e,V))return GA(()=>e=Se(A,o,e,g,!0)),()=>e;if(o.length===0){if(e=se(A,e,g),r)return e}else i?e.length===0?vt(A,o,g):dn(A,e,o):(e&&se(A),vt(A,o));e=o}else if(t.nodeType){if(Array.isArray(e)){if(r)return e=se(A,e,g,t);se(A,e,null,t)}else e==null||e===""||!A.firstChild?A.appendChild(t):A.replaceChild(t,A.firstChild);e=t}}return e}function Bt(A,t,e,g){let V=!1;for(let n=0,r=t.length;n=0;r--){const o=t[r];if(V!==o){const i=o.parentNode===A;!n&&!r?i?A.replaceChild(V,o):A.insertBefore(V,e):i&&o.remove()}else n=!0}}else A.insertBefore(V,e);return[V]}const Ct=Symbol("store-raw"),oe=Symbol("store-node"),RA=Symbol("store-has"),Bg=Symbol("store-self");function Cg(A){let t=A[PA];if(!t&&(Object.defineProperty(A,PA,{value:t=new Proxy(A,mn)}),!Array.isArray(A))){const e=Object.keys(A),g=Object.getOwnPropertyDescriptors(A);for(let V=0,n=e.length;VA[PA][t]),e}function Qg(A){rt()&&ye(Ye(A,oe),Bg)()}function kn(A){return Qg(A),Reflect.ownKeys(A)}const mn={get(A,t,e){if(t===Ct)return A;if(t===PA)return e;if(t===it)return Qg(A),e;const g=Ye(A,oe),V=g[t];let n=V?V():A[t];if(t===oe||t===RA||t==="__proto__")return n;if(!V){const r=Object.getOwnPropertyDescriptor(A,t);rt()&&(typeof n!="function"||A.hasOwnProperty(t))&&!(r&&r.get)&&(n=ye(g,t,n)())}return Je(n)?Cg(n):n},has(A,t){return t===Ct||t===PA||t===it||t===oe||t===RA||t==="__proto__"?!0:(rt()&&ye(Ye(A,RA),t)(),t in A)},set(){return!0},deleteProperty(){return!0},ownKeys:kn,getOwnPropertyDescriptor:yn};function ve(A,t,e,g=!1){if(!g&&A[t]===e)return;const V=A[t],n=A.length;e===void 0?(delete A[t],A[RA]&&A[RA][t]&&V!==void 0&&A[RA][t].$()):(A[t]=e,A[RA]&&A[RA][t]&&V===void 0&&A[RA][t].$());let r=Ye(A,oe),o;if((o=ye(r,t,V))&&o.$(()=>e),Array.isArray(A)&&A.length!==n){for(let i=A.length;i1){g=t.shift();const r=typeof g,o=Array.isArray(A);if(Array.isArray(g)){for(let i=0;i1){fe(A[g],t,[g].concat(e));return}V=A[g],e=[g].concat(e)}let n=t[0];typeof n=="function"&&(n=n(V,e),n===V)||g===void 0&&n==null||(n=De(n),g===void 0||Je(V)&&Je(n)&&!Array.isArray(n)?Eg(V,n):ve(A,g,n))}function Tt(...[A,t]){const e=De(A||{}),g=Array.isArray(e),V=Cg(e);function n(...r){mA(()=>{g&&r.length===1?qn(e,r[0]):fe(e,r)})}return[V,n]}const pn=()=>{},Kt=(A,t)=>t();function Ln(A,t){const e=CA(A),g=e?[e]:[],{onEnter:V=Kt,onExit:n=Kt}=t,[r,o]=iA(t.appear?[]:g),[i]=Bn();let s,E=!1;function B(u,C){if(!u)return C&&C();E=!0,n(u,()=>{mA(()=>{E=!1,o(Q=>Q.filter(I=>I!==u)),C&&C()})})}function l(u){const C=s;if(!C)return u&&u();s=void 0,o(Q=>[C,...Q]),V(C,u??pn)}const a=t.mode==="out-in"?u=>E||B(u,l):t.mode==="in-out"?u=>l(()=>B(u)):u=>{B(u),l()};return rn(u=>{const C=A();return CA(i)?(i(),u):(C!==u&&(s=C,mA(()=>CA(()=>a(u)))),C)},t.appear?void 0:e),r}const Ot=A=>A instanceof Element;function Qt(A,t){if(t(A))return A;if(typeof A=="function"&&!A.length)return Qt(A(),t);if(Array.isArray(A))for(const e of A){const g=Qt(e,t);if(g)return g}return null}function Fn(A,t=Ot,e=Ot){const g=VA(A);return VA(()=>Qt(g(),t))}function Mn(A){return VA(()=>{const t=A.name||"s";return{enterActive:(A.enterActiveClass||t+"-enter-active").split(" "),enter:(A.enterClass||t+"-enter").split(" "),enterTo:(A.enterToClass||t+"-enter-to").split(" "),exitActive:(A.exitActiveClass||t+"-exit-active").split(" "),exit:(A.exitClass||t+"-exit").split(" "),exitTo:(A.exitToClass||t+"-exit-to").split(" "),move:(A.moveClass||t+"-move").split(" ")}})}function ag(A){requestAnimationFrame(()=>requestAnimationFrame(A))}function Rn(A,t,e,g){const{onBeforeEnter:V,onEnter:n,onAfterEnter:r}=t;V?.(e),e.classList.add(...A.enter),e.classList.add(...A.enterActive),queueMicrotask(()=>{if(!e.parentNode)return g?.();n?.(e,()=>o())}),ag(()=>{e.classList.remove(...A.enter),e.classList.add(...A.enterTo),(!n||n.length<2)&&(e.addEventListener("transitionend",o),e.addEventListener("animationend",o))});function o(i){(!i||i.target===e)&&(g?.(),e.removeEventListener("transitionend",o),e.removeEventListener("animationend",o),e.classList.remove(...A.enterActive),e.classList.remove(...A.enterTo),r?.(e))}}function bn(A,t,e,g){const{onBeforeExit:V,onExit:n,onAfterExit:r}=t;if(!e.parentNode)return g?.();V?.(e),e.classList.add(...A.exit),e.classList.add(...A.exitActive),n?.(e,()=>o()),ag(()=>{e.classList.remove(...A.exit),e.classList.add(...A.exitTo),(!n||n.length<2)&&(e.addEventListener("transitionend",o),e.addEventListener("animationend",o))});function o(i){(!i||i.target===e)&&(g?.(),e.removeEventListener("transitionend",o),e.removeEventListener("animationend",o),e.classList.remove(...A.exitActive),e.classList.remove(...A.exitTo),r?.(e))}}var Nn={inout:"in-out",outin:"out-in"},Gn=A=>{const t=Mn(A);return Ln(Fn(()=>A.children),{mode:Nn[A.mode],appear:A.appear,onEnter(e,g){Rn(t(),A,e,g)},onExit(e,g){bn(t(),A,e,g)}})};const Un=$('
',12),tt="http://www.w3.org/2000/svg",z=8,X=24,Sn=1,Jn=2,Yn=4,vn=8,Tn=16,Ht=32;var Kn=(A=>{const t=A.core,e=[],g=[],V=[],n=new Set,r=new Map,o=new Map,[i,s]=iA({cols:A.cols,rows:A.rows},{equals:(c,h)=>c.cols===h.cols&&c.rows===h.rows}),[E,B]=iA(gt(Fe)),l=()=>A.lineHeight??1.3333333333,[a,u]=iA(!0),C=VA(()=>a()||U),Q=VA(()=>({width:`${i().cols}ch`,height:`${l()*i().rows}em`,"font-size":`${(A.scale||1)*100}%`,"--term-line-height":`${l()}em`,"--term-cols":i().cols,"--term-rows":i().rows}));let I={col:0,row:0,visible:!1},f={size:void 0,theme:void 0,rows:new Set},D,p,y,L,b,v,R,W,G,_,U=!1;gg(()=>{sA(),IA(),DA(i().rows),JA(i().rows),t.addEventListener("vtUpdate",BA)}),Ke(()=>{t.removeEventListener("vtUpdate",BA),clearInterval(G),cancelAnimationFrame(W)}),st(()=>{A.blinking&&G===void 0?G=setInterval(tA,600):(clearInterval(G),G=void 0,u(!0))}),st(()=>{C(),I.visible&&(f.rows.add(I.row),x())});function sA(){if(y=p.getContext("2d"),!y)throw new Error("2D ctx not available");const{cols:c,rows:h}=i();p.width=c*z,p.height=h*X,p.style.imageRendering="pixelated",y.imageSmoothingEnabled=!1}function QA(c){let{cols:h,rows:M}=c;p.width=h*z,p.height=M*X,y.imageSmoothingEnabled=!1}function IA(){_=On(D),f.theme=_}function BA(c){let{size:h,theme:M,changedRows:q}=c,H=!1;if(q!==void 0)for(const T of q)f.rows.add(T),U=!0,H=!0;if(M!==void 0&&A.preferEmbeddedTheme){f.theme=M;for(let T=0;T=h.rows&&f.rows.delete(T)}H&&I.visible&&f.rows.add(I.row),x()}function tA(){u(c=>(c||(U=!1),!c))}function x(){W===void 0&&(W=requestAnimationFrame(F))}function F(){W=void 0;const{size:c,theme:h,rows:M}=f;mA(function(){c!==void 0&&(QA(c),DA(c.rows),JA(c.rows),s(c)),h!==void 0&&(B(gt(h===null?_:h)),r.clear());const q=E(),H=a()||U;for(const N of M)S(N,q,H)}),f.size=void 0,f.theme=void 0,f.rows.clear(),A.stats.renders+=1}function S(c,h,M){const q=t.getLine(c,M);EA(c),aA(c,q.bg,h),ZA(c,q.raster_symbols,h),pA(c,q.vector_symbols,h),hA(c,q.text,q.codepoints,h)}function EA(c){y.clearRect(0,c*X,i().cols*z,X)}function aA(c,h,M){const q=t.getDataView(h,8),H=c*X;let N=0;for(;Nc;){const M=L.lastElementChild;L.removeChild(M),e.push(M)}}function JA(c){let h=R.children.length;if(hc;){const M=R.lastElementChild;R.removeChild(M),g.push(M)}}function yA(){let c=e.pop();return c===void 0&&(c=document.createElement("span"),c.className="ap-line"),c}function te(){let c=g.pop();return c===void 0&&(c=document.createElementNS(tt,"g"),c.setAttribute("class","ap-symbol-line")),c}function fA(c,h,M,q){if(!xA(c))return null;const H=$n.has(c),N=H?h-Wt:h,T=H?1+Wt*2:1,K=vA();return K.setAttribute("href",`#sym-${c}`),K.setAttribute("x",N),K.setAttribute("y",0),K.setAttribute("width",T),K.setAttribute("height","1"),M?K.style.setProperty("color",M):K.style.removeProperty("color"),q?K.classList.add("ap-blink"):K.classList.remove("ap-blink"),K}function YA(c){for(;c.firstChild;){const h=c.firstChild;c.removeChild(h),V.push(h)}}function vA(){let c=V.pop();return c===void 0&&(c=document.createElementNS(tt,"use")),c}function xA(c){const h=xn(c);if(!h)return!1;if(n.has(c))return!0;const M=`sym-${c}`,q=document.createElementNS(tt,"symbol");return q.setAttribute("id",M),q.setAttribute("viewBox","0 0 1 1"),q.setAttribute("preserveAspectRatio","none"),q.setAttribute("overflow","visible"),q.innerHTML=h,v.appendChild(q),n.add(c),!0}return(()=>{const c=Un.cloneNode(!0),h=c.firstChild,M=h.nextSibling,q=M.firstChild,H=q.nextSibling,N=M.nextSibling,T=D;typeof T=="function"?MA(T,c):D=c;const K=p;typeof K=="function"?MA(K,h):p=h;const rA=b;typeof rA=="function"?MA(rA,M):b=M;const uA=v;typeof uA=="function"?MA(uA,q):v=q;const dA=R;typeof dA=="function"?MA(dA,H):R=H;const lA=L;return typeof lA=="function"?MA(lA,N):L=N,GA(d=>{const m=Q(),k=`0 0 ${i().cols} ${i().rows}`,J=!!a(),Z=!!a();return d._v$=ct(c,m,d._v$),k!==d._v$2&&Ig(M,"viewBox",d._v$2=k),J!==d._v$3&&M.classList.toggle("ap-blink",d._v$3=J),Z!==d._v$4&&N.classList.toggle("ap-blink",d._v$4=Z),d},{_v$:void 0,_v$2:void 0,_v$3:void 0,_v$4:void 0}),c})()});function gt(A){return{fg:A.foreground,bg:A.background,palette:Hn(A.palette,A.background,A.foreground)}}function On(A){const t=getComputedStyle(A),e=re(t.getPropertyValue("--term-color-foreground"),Fe.foreground),g=re(t.getPropertyValue("--term-color-background"),Fe.background),V=[];for(let n=0;n<16;n++){const r=n>=8?V[n-8]:Fe.palette[n];V[n]=re(t.getPropertyValue(`--term-color-${n}`),r)}return{foreground:e,background:g,palette:V}}function Hn(A,t,e){const g=OA(t),V=OA(e),n=OA(A[1]),r=OA(A[2]),o=OA(A[3]),i=OA(A[4]),s=OA(A[5]),E=OA(A[6]),B=[...A];for(let l=0;l<6;l+=1){const a=l/5,u=KA(a,g,n),C=KA(a,r,o),Q=KA(a,i,s),I=KA(a,E,V);for(let f=0;f<6;f+=1){const D=f/5,p=KA(D,u,C),y=KA(D,Q,I);for(let L=0;L<6;L+=1){const b=L/5,v=KA(b,p,y);B.push(Dt(v))}}}for(let l=0;l<24;l+=1){const a=(l+1)/25;B.push(Dt(KA(a,g,V)))}return B}function Zn(A,t,e,g){const V=z/8,n=X/8,r=z/2,o=X/2,i=z/2,s=X/3;switch(t){case 9600:A.fillRect(e,g,z,o);break;case 9601:A.fillRect(e,g+n*7,z,n);break;case 9602:A.fillRect(e,g+n*6,z,n*2);break;case 9603:A.fillRect(e,g+n*5,z,n*3);break;case 9604:A.fillRect(e,g+o,z,o);break;case 9605:A.fillRect(e,g+n*3,z,n*5);break;case 9606:A.fillRect(e,g+n*2,z,n*6);break;case 9607:A.fillRect(e,g+n,z,n*7);break;case 9608:A.fillRect(e,g,z,X);break;case 9632:A.fillRect(e,g+n*2,z,n*4);break;case 9609:A.fillRect(e,g,V*7,X);break;case 9610:A.fillRect(e,g,V*6,X);break;case 9611:A.fillRect(e,g,V*5,X);break;case 9612:A.fillRect(e,g,r,X);break;case 9613:A.fillRect(e,g,V*3,X);break;case 9614:A.fillRect(e,g,V*2,X);break;case 9615:A.fillRect(e,g,V,X);break;case 9616:A.fillRect(e+r,g,r,X);break;case 9617:A.save(),A.globalAlpha=.25,A.fillRect(e,g,z,X),A.restore();break;case 9618:A.save(),A.globalAlpha=.5,A.fillRect(e,g,z,X),A.restore();break;case 9619:A.save(),A.globalAlpha=.75,A.fillRect(e,g,z,X),A.restore();break;case 9620:A.fillRect(e,g,z,n);break;case 9621:A.fillRect(e+V*7,g,V,X);break;case 9622:A.fillRect(e,g+o,r,o);break;case 9623:A.fillRect(e+r,g+o,r,o);break;case 9624:A.fillRect(e,g,r,o);break;case 9625:A.fillRect(e,g,r,X),A.fillRect(e+r,g+o,r,o);break;case 9626:A.fillRect(e,g,r,o),A.fillRect(e+r,g+o,r,o);break;case 9627:A.fillRect(e,g,z,o),A.fillRect(e,g+o,r,o);break;case 9628:A.fillRect(e,g,z,o),A.fillRect(e+r,g+o,r,o);break;case 9629:A.fillRect(e+r,g,r,o);break;case 9630:A.fillRect(e+r,g,r,o),A.fillRect(e,g+o,r,o);break;case 9631:A.fillRect(e+r,g,r,X),A.fillRect(e,g+o,r,o);break;case 129792:A.fillRect(e,g,i,s);break;case 129793:A.fillRect(e+i,g,i,s);break;case 129794:A.fillRect(e,g,i*2,s);break;case 129795:A.fillRect(e,g+s,i,s);break;case 129796:A.fillRect(e,g,i,s),A.fillRect(e,g+s,i,s);break;case 129797:A.fillRect(e+i,g,i,s),A.fillRect(e,g+s,i,s);break;case 129798:A.fillRect(e,g,i*2,s),A.fillRect(e,g+s,i,s);break;case 129799:A.fillRect(e+i,g+s,i,s);break;case 129800:A.fillRect(e,g,i,s),A.fillRect(e+i,g+s,i,s);break;case 129801:A.fillRect(e+i,g,i,s),A.fillRect(e+i,g+s,i,s);break;case 129802:A.fillRect(e,g,i*2,s),A.fillRect(e+i,g+s,i,s);break;case 129803:A.fillRect(e,g+s,i*2,s);break;case 129804:A.fillRect(e,g,i,s),A.fillRect(e,g+s,i*2,s);break;case 129805:A.fillRect(e+i,g,i,s),A.fillRect(e,g+s,i*2,s);break;case 129806:A.fillRect(e,g,i*2,s),A.fillRect(e,g+s,i*2,s);break;case 129807:A.fillRect(e,g+s*2,i,s);break;case 129808:A.fillRect(e,g,i,s),A.fillRect(e,g+s*2,i,s);break;case 129809:A.fillRect(e+i,g,i,s),A.fillRect(e,g+s*2,i,s);break;case 129810:A.fillRect(e,g,i*2,s),A.fillRect(e,g+s*2,i,s);break;case 129811:A.fillRect(e,g+s,i,s*2);break;case 129812:A.fillRect(e+i,g,i,s),A.fillRect(e,g+s,i,s*2);break;case 129813:A.fillRect(e,g,i*2,s),A.fillRect(e,g+s,i,s*2);break;case 129814:A.fillRect(e+i,g+s,i,s),A.fillRect(e,g+s*2,i,s);break;case 129815:A.fillRect(e,g,i,s),A.fillRect(e+i,g+s,i,s),A.fillRect(e,g+s*2,i,s);break;case 129816:A.fillRect(e+i,g,i,s*2),A.fillRect(e,g+s*2,i,s);break;case 129817:A.fillRect(e,g,i*2,s),A.fillRect(e+i,g+s,i,s),A.fillRect(e,g+s*2,i,s);break;case 129818:A.fillRect(e,g+s,i*2,s),A.fillRect(e,g+s*2,i,s);break;case 129819:A.fillRect(e,g,i,s*3),A.fillRect(e+i,g+s,i,s);break;case 129820:A.fillRect(e+i,g,i,s),A.fillRect(e,g+s,i*2,s),A.fillRect(e,g+s*2,i,s);break;case 129821:A.fillRect(e,g,i*2,s*2),A.fillRect(e,g+s*2,i,s);break;case 129822:A.fillRect(e+i,g+s*2,i,s);break;case 129823:A.fillRect(e,g,i,s),A.fillRect(e+i,g+s*2,i,s);break;case 129824:A.fillRect(e+i,g,i,s),A.fillRect(e+i,g+s*2,i,s);break;case 129825:A.fillRect(e,g,i*2,s),A.fillRect(e+i,g+s*2,i,s);break;case 129826:A.fillRect(e,g+s,i,s),A.fillRect(e+i,g+s*2,i,s);break;case 129827:A.fillRect(e,g,i,s*2),A.fillRect(e+i,g+s*2,i,s);break;case 129828:A.fillRect(e+i,g,i,s),A.fillRect(e,g+s,i,s),A.fillRect(e+i,g+s*2,i,s);break;case 129829:A.fillRect(e,g,i*2,s),A.fillRect(e,g+s,i,s),A.fillRect(e+i,g+s*2,i,s);break;case 129830:A.fillRect(e+i,g+s,i,s*2);break;case 129831:A.fillRect(e,g,i,s),A.fillRect(e+i,g+s,i,s*2);break;case 129832:A.fillRect(e,g,i*2,s),A.fillRect(e+i,g+s,i,s*2);break;case 129833:A.fillRect(e,g+s,i*2,s),A.fillRect(e+i,g+s*2,i,s);break;case 129834:A.fillRect(e,g,i,s*2),A.fillRect(e+i,g+s,i,s*2);break;case 129835:A.fillRect(e+i,g,i,s),A.fillRect(e,g+s,i*2,s),A.fillRect(e+i,g+s*2,i,s);break;case 129836:A.fillRect(e,g,i*2,s*2),A.fillRect(e+i,g+s*2,i,s);break;case 129837:A.fillRect(e,g+s*2,i*2,s);break;case 129838:A.fillRect(e,g,i,s),A.fillRect(e,g+s*2,i*2,s);break;case 129839:A.fillRect(e+i,g,i,s),A.fillRect(e,g+s*2,i*2,s);break;case 129840:A.fillRect(e,g,i*2,s),A.fillRect(e,g+s*2,i*2,s);break;case 129841:A.fillRect(e,g+s,i,s),A.fillRect(e,g+s*2,i*2,s);break;case 129842:A.fillRect(e,g,i,s*2),A.fillRect(e,g+s*2,i*2,s);break;case 129843:A.fillRect(e+i,g,i,s),A.fillRect(e,g+s,i,s),A.fillRect(e,g+s*2,i*2,s);break;case 129844:A.fillRect(e,g,i*2,s),A.fillRect(e,g+s,i,s),A.fillRect(e,g+s*2,i*2,s);break;case 129845:A.fillRect(e+i,g+s,i,s),A.fillRect(e,g+s*2,i*2,s);break;case 129846:A.fillRect(e,g,i,s),A.fillRect(e+i,g+s,i,s),A.fillRect(e,g+s*2,i*2,s);break;case 129847:A.fillRect(e+i,g,i,s*2),A.fillRect(e,g+s*2,i*2,s);break;case 129848:A.fillRect(e,g,i*2,s),A.fillRect(e+i,g+s,i,s),A.fillRect(e,g+s*2,i*2,s);break;case 129849:A.fillRect(e,g+s,i*2,s*2);break;case 129850:A.fillRect(e,g,i,s*3),A.fillRect(e+i,g+s,i,s),A.fillRect(e+i,g+s*2,i,s);break;case 129851:A.fillRect(e+i,g,i,s),A.fillRect(e,g+s,i*2,s*2);break}}const Zt=.05,Wn=9.0375/20;function xn(A){const t=`stroke="currentColor" stroke-width="${Zt}" stroke-linejoin="miter" stroke-linecap="square"`,e=`stroke="currentColor" stroke-width="${Zt}" stroke-linejoin="miter" stroke-linecap="butt"`,g=r=>``,V=1/3,n=2/3;switch(A){case 9698:return''+g("M1,1 L1,0 L0,1 Z");case 9699:return''+g("M0,1 L0,0 L1,1 Z");case 9700:return''+g("M0,0 L1,0 L0,1 Z");case 9701:return''+g("M1,0 L1,1 L0,0 Z");case 9871:{const B=p=>.5+p*Wn,C=B(-.27),Q=B(-.1),I=B(.1),f=B(.1+.17),D=(p,y,L,b)=>`M${p},${L} L${y},${L} L${y},${b} L${p},${b} Z`;return``}case 129852:return``+g(`M0,${n} L0,1 L0.5,1 Z`);case 129853:return``+g(`M0,${n} L0,1 L1,1 Z`);case 129854:return``+g(`M0,${V} L0.5,1 L0,1 Z`);case 129855:return``+g(`M0,${V} L1,1 L0,1 Z`);case 129856:return''+g("M0,0 L0.5,1 L0,1 Z");case 129857:return``+g(`M0,${V} L0,1 L1,1 L1,0 L0.5,0 Z`);case 129858:return``+g(`M0,${V} L0,1 L1,1 L1,0 Z`);case 129859:return``+g(`M0,${n} L0,1 L1,1 L1,0 L0.5,0 Z`);case 129860:return``+g(`M0,${n} L0,1 L1,1 L1,0 Z`);case 129861:return''+g("M0.5,0 L1,0 L1,1 L0,1 Z");case 129862:return``+g(`M0,${n} L0,1 L1,1 L1,${V} Z`);case 129863:return``+g(`M0.5,1 L1,1 L1,${n} Z`);case 129864:return``+g(`M0,1 L1,1 L1,${n} Z`);case 129865:return``+g(`M0.5,1 L1,1 L1,${V} Z`);case 129866:return``+g(`M0,1 L1,1 L1,${V} Z`);case 129867:return''+g("M0.5,1 L1,0 L1,1 Z");case 129868:return``+g(`M0,0 L0.5,0 L1,${V} L1,1 L0,1 Z`);case 129869:return``+g(`M0,0 L0,1 L1,1 L1,${V} Z`);case 129870:return``+g(`M0,0 L0.5,0 L1,${n} L1,1 L0,1 Z`);case 129871:return``+g(`M0,0 L1,${n} L1,1 L0,1 Z`);case 129872:return''+g("M0,0 L0.5,0 L1,1 L0,1 Z");case 129873:return``+g(`M0,${V} L1,${n} L1,1 L0,1 Z`);case 129874:return``+g(`M0,${n} L0,0 L1,0 L1,1 L0.5,1 Z`);case 129875:return``+g(`M0,${n} L0,0 L1,0 L1,1 Z`);case 129876:return``+g(`M0,${V} L0,0 L1,0 L1,1 L0.5,1 Z`);case 129877:return``+g(`M0,${V} L0,0 L1,0 L1,1 Z`);case 129878:return''+g("M0,0 L1,0 L1,1 L0.5,1 Z");case 129879:return``+g(`M0,${V} L0.5,0 L0,0 Z`);case 129880:return``+g(`M0,0 L1,0 L0,${V} Z`);case 129881:return``+g(`M0,0 L0.5,0 L0,${n} Z`);case 129882:return``+g(`M0,0 L1,0 L0,${n} Z`);case 129883:return''+g("M0,0 L0.5,0 L0,1 Z");case 129884:return``+g(`M0,0 L1,0 L1,${V} L0,${n} Z`);case 129885:return``+g(`M0,0 L1,0 L1,${n} L0.5,1 L0,1 Z`);case 129886:return``+g(`M0,0 L1,0 L1,${n} L0,1 Z`);case 129887:return``+g(`M0,0 L1,0 L1,${V} L0.5,1 L0,1 Z`);case 129888:return``+g(`M0,0 L1,0 L1,${V} L0,1 Z`);case 129889:return''+g("M0,0 L1,0 L0.5,1 L0,1 Z");case 129890:return``+g(`M0.5,0 L1,0 L1,${V} Z`);case 129891:return``+g(`M0,0 L1,0 L1,${V} Z`);case 129892:return``+g(`M0.5,0 L1,0 L1,${n} Z`);case 129893:return``+g(`M0,0 L1,0 L1,${n} Z`);case 129894:return''+g("M0.5,0 L1,0 L1,1 Z");case 129895:return``+g(`M0,${V} L0,0 L1,0 L1,${n} Z`);case 129896:return``;case 129897:return``;case 129898:return``;case 129899:return``;case 129900:return''+g("M0,0 L0,1 L0.5,0.5 Z");case 57520:return'';case 57521:return'';case 57522:return'';case 57523:return'';default:return null}}const $n=new Set([57520,57521,57522,57523]),Wt=.02,Fe={foreground:"#000000",background:"#000000",palette:["#000000","#000000","#000000","#000000","#000000","#000000","#000000","#000000","#000000","#000000","#000000","#000000","#000000","#000000","#000000","#000000"]},_n=$('',6);var zn=(A=>_n.cloneNode(!0));const Xn=$('',4);var jn=(A=>Xn.cloneNode(!0));const Pn=$('',6);var Ai=(A=>Pn.cloneNode(!0));const ei=$('',4);var ti=(A=>ei.cloneNode(!0));const gi=$('',6);var Vi=(A=>gi.cloneNode(!0));const ni=$('',6);var ii=(A=>ni.cloneNode(!0));const si=$('',4);var ri=(A=>si.cloneNode(!0));const oi=$('',2),Ii=$('',6),Bi=$('Unmute (m)',2),Ci=$('Mute (m)',2),Qi=$('',2),Ei=$('
Keyboard shortcuts (?)Fullscreen (f)
',18),ai=$('',6);function me(A){let t=Math.floor(A);const e=Math.floor(t/86400);t%=86400;const g=Math.floor(t/3600);t%=3600;const V=Math.floor(t/60);return t%=60,e>0?`${FA(e)}:${FA(g)}:${FA(V)}:${FA(t)}`:g>0?`${FA(g)}:${FA(V)}:${FA(t)}`:`${FA(V)}:${FA(t)}`}function FA(A){return A<10?`0${A}`:A.toString()}var li=(A=>{const t=I=>f=>{f.preventDefault(),I(f)},e=()=>typeof A.currentTime=="number"?me(A.currentTime):"--:--",g=()=>typeof A.remainingTime=="number"?"-"+me(A.remainingTime):e(),V=VA(()=>typeof A.duration=="number"?A.markers.filter(I=>I[0]`${I[0]/A.duration*100}%`,r=I=>I[1]===""?me(I[0]):`${me(I[0])} - ${I[1]}`,o=I=>typeof A.currentTime=="number"?I[0]<=A.currentTime:!1,i=()=>({transform:`scaleX(${A.progress||0}`}),s=I=>{const f=I.currentTarget.offsetWidth,D=I.currentTarget.getBoundingClientRect(),p=I.clientX-D.left;return`${Math.max(0,p/f)*100}%`},[E,B]=iA(!1),l=Tg(A.onSeekClick,50),a=I=>{I._marker||I.altKey||I.shiftKey||I.metaKey||I.ctrlKey||I.button!==0||(B(!0),A.onSeekClick(s(I)))},u=I=>t(()=>{A.onSeekClick({marker:I})}),C=I=>{I.altKey||I.shiftKey||I.metaKey||I.ctrlKey||E()&&l(s(I))},Q=()=>{B(!1)};return document.addEventListener("mouseup",Q),Ke(()=>{document.removeEventListener("mouseup",Q)}),(()=>{const I=Ei.cloneNode(!0),f=I.firstChild,D=f.firstChild,p=D.nextSibling,y=f.nextSibling,L=y.nextSibling,b=L.firstChild,v=L.nextSibling,R=v.firstChild,W=A.ref;return typeof W=="function"?MA(W,I):A.ref=I,AA(I,Y(UA,{get when(){return A.isPausable},get children(){const G=oi.cloneNode(!0);return XA(G,"click",t(A.onPlayClick)),AA(G,Y(It,{get children(){return[Y(jA,{get when(){return A.isPlaying},get children(){return Y(Ai,{})}}),Y(jA,{when:!0,get children(){return Y(ti,{})}})]}})),G}}),f),AA(D,e),AA(p,g),AA(y,Y(UA,{get when(){return typeof A.progress=="number"||A.isSeekable},get children(){const G=Ii.cloneNode(!0),_=G.firstChild,U=_.nextSibling;return G.$$mousemove=C,G.$$mousedown=a,AA(G,Y(un,{get each(){return V()},children:(sA,QA)=>(()=>{const IA=ai.cloneNode(!0),BA=IA.firstChild,tA=BA.nextSibling;return IA.$$mousedown=x=>{x._marker=!0},XA(IA,"click",u(QA())),AA(tA,()=>r(sA)),GA(x=>{const F=n(sA),S=!!o(sA);return F!==x._v$&&IA.style.setProperty("left",x._v$=F),S!==x._v$2&&BA.classList.toggle("ap-marker-past",x._v$2=S),x},{_v$:void 0,_v$2:void 0}),IA})()}),null),GA(sA=>ct(U,i(),sA)),G}})),AA(I,Y(UA,{get when(){return A.isMuted!==void 0},get children(){const G=Qi.cloneNode(!0);return XA(G,"click",t(A.onMuteClick)),AA(G,Y(It,{get children(){return[Y(jA,{get when(){return A.isMuted===!0},get children(){return[Y(ri,{}),Bi.cloneNode(!0)]}}),Y(jA,{get when(){return A.isMuted===!1},get children(){return[Y(ii,{}),Ci.cloneNode(!0)]}})]}})),G}}),L),XA(L,"click",t(A.onHelpClick)),AA(L,Y(jn,{}),b),XA(v,"click",t(A.onFullscreenClick)),AA(v,Y(Vi,{}),R),AA(v,Y(zn,{}),R),GA(()=>I.classList.toggle("ap-seekable",!!A.isSeekable)),I})()});He(["click","mousedown","mousemove"]);const ci=$('
💥
',4);var fi=(A=>ci.cloneNode(!0));const ui=$('
',4);var di=(A=>ui.cloneNode(!0));const wi=$('
',4);var hi=(A=>(()=>{const t=wi.cloneNode(!0),e=t.firstChild;return AA(e,()=>A.message),GA(()=>t.classList.toggle("ap-was-playing",!!A.wasPlaying)),t})());const Di=$('
',22);var yi=(A=>{const t=e=>g=>{g.preventDefault(),e(g)};return(()=>{const e=Di.cloneNode(!0);return XA(e,"click",t(A.onClick)),e})()});He(["click"]);const ki=$("
  • space - pause / resume
  • ",4),mi=$("
  • / - rewind / fast-forward by 5 seconds
  • ",6),qi=$("
  • Shift + / - rewind / fast-forward by 10%
  • ",8),pi=$("
  • [ / ] - jump to the previous / next marker
  • ",6),Li=$("
  • 0, 1, 2 ... 9 - jump to 0%, 10%, 20% ... 90%
  • ",10),Fi=$("
  • , / . - step back / forward, a frame at a time (when paused)
  • ",6),Mi=$("
  • m - mute / unmute audio
  • ",4),Ri=$('

    Keyboard shortcuts

    • f - toggle fullscreen mode
    • ? - show this help popup
    ',18);var bi=(A=>{const t=e=>g=>{g.preventDefault(),e(g)};return(()=>{const e=Ri.cloneNode(!0),g=e.firstChild,V=g.firstChild,n=V.firstChild,r=n.nextSibling,o=r.firstChild,i=o.nextSibling;return XA(e,"click",t(A.onClose)),g.$$click=s=>{s.stopPropagation()},AA(r,Y(UA,{get when(){return A.isPausable},get children(){return ki.cloneNode(!0)}}),o),AA(r,Y(UA,{get when(){return A.isSeekable},get children(){return[mi.cloneNode(!0),qi.cloneNode(!0),pi.cloneNode(!0),Li.cloneNode(!0),Fi.cloneNode(!0)]}}),o),AA(r,Y(UA,{get when(){return A.hasAudio},get children(){return Mi.cloneNode(!0)}}),i),e})()});He(["click"]);const Ni=$('
    ',4),Gi=32;var Ui=(A=>{const t=A.logger,e=A.core,g=A.autoPlay,V=A.charW,n=A.charH,r=A.bordersW,o=A.bordersH,i=A.theme??"auto/asciinema",s=i.slice(0,5)==="auto/",E=s?i.slice(5):i,[B,l]=Tt({containerW:0,containerH:0,isPausable:!0,isSeekable:!0,isFullscreen:!1,currentTime:null,remainingTime:null,progress:null}),[a,u]=iA(!1),[C,Q]=iA(void 0),[I,f]=iA(!1),[D,p]=iA(g?null:"start"),[y,L]=iA(null),[b,v]=iA(!1),[R,W]=iA({cols:A.cols,rows:A.rows},{equals:(w,O)=>w.cols===O.cols&&w.rows===O.rows}),[G,_]=iA(null),[U,sA]=Tt([]),[QA,IA]=iA(!1),[BA,tA]=iA(!1),[x,F]=iA(null),S=VA(()=>R().cols||80),EA=VA(()=>R().rows||24),aA=()=>A.controls===!1?0:Gi,ZA=()=>A.controls===!0||A.controls==="auto"&&QA();let pA,hA,gA,WA,LA,DA;function JA(){v(!0),TA()}function yA(){v(!1),Ce(),$A()}let te;const fA=new Promise(w=>{te=w}),YA=w=>{let{isPausable:O,isSeekable:nA}=w;l({isPausable:O,isSeekable:nA}),te()},vA=w=>{mA(()=>{w.duration!==void 0&&_(w.duration),w.markers!==void 0&&sA(w.markers),w.hasAudio!==void 0&&Q(w.hasAudio?!1:void 0),w.size!==void 0&&W(w.size),w.theme!==void 0&&F(w.theme)})},xA=()=>{p(null)},c=()=>{mA(()=>{u(!0),f(!0),p(null),JA()})},h=()=>{mA(()=>{u(!1),yA()})},M=()=>{mA(()=>{u(!1),yA(),p("loader")})},q=w=>{let{message:O}=w;mA(()=>{u(!1),yA(),O!==void 0&&(L(O),p("info"))})},H=w=>{Q(w)},N={terminal:{renders:0}},T=w=>{let{message:O}=w;mA(()=>{u(!1),yA(),O!==void 0&&(L(O),p("info"))}),t.debug("stats",N.terminal)},K=()=>{p("error")},rA=()=>{$A()};e.addEventListener("ready",YA),e.addEventListener("metadata",vA),e.addEventListener("play",xA),e.addEventListener("playing",c),e.addEventListener("idle",h),e.addEventListener("loading",M),e.addEventListener("offline",q),e.addEventListener("muted",H),e.addEventListener("ended",T),e.addEventListener("errored",K),e.addEventListener("seeked",rA);const uA=()=>{DA=new ResizeObserver(vg(w=>{l({containerW:gA.offsetWidth,containerH:gA.offsetHeight}),gA.dispatchEvent(new CustomEvent("resize",{detail:{el:WA}}))},10)),DA.observe(gA)};gg(async()=>{t.info("view: mounted"),t.debug("view: font measurements",{charW:V,charH:n}),uA(),l({containerW:gA.offsetWidth,containerH:gA.offsetHeight})}),Ke(()=>{e.removeEventListener("ready",YA),e.removeEventListener("metadata",vA),e.removeEventListener("play",xA),e.removeEventListener("playing",c),e.removeEventListener("idle",h),e.removeEventListener("loading",M),e.removeEventListener("offline",q),e.removeEventListener("muted",H),e.removeEventListener("ended",T),e.removeEventListener("errored",K),e.removeEventListener("seeked",rA),e.stop(),Ce(),DA.disconnect()});const dA=VA(()=>{const w=V*S()+r,O=n*EA()+o;let nA=A.fit??"width";if(nA==="both"||B.isFullscreen){const kA=B.containerW/(B.containerH-aA()),cA=w/O;kA>cA?nA="height":nA="width"}if(nA===!1||nA==="none")return{};if(nA==="width"){const kA=B.containerW/w;return{scale:kA,width:B.containerW,height:O*kA+aA()}}else if(nA==="height"){const kA=(B.containerH-aA())/O;return{scale:kA,width:w*kA,height:B.containerH}}else throw new Error(`unsupported fit mode: ${nA}`)}),lA=()=>{l("isFullscreen",document.fullscreenElement??document.webkitFullscreenElement)},d=()=>{B.isFullscreen?(document.exitFullscreen??document.webkitExitFullscreen??(()=>{})).apply(document):(gA.requestFullscreen??gA.webkitRequestFullscreen??(()=>{})).apply(gA)},m=()=>{BA()?tA(!1):(e.pause(),tA(!0))},k=w=>{if(!(w.altKey||w.metaKey||w.ctrlKey)){if(w.key==" ")e.togglePlay();else if(w.key==",")e.step(-1).then($A);else if(w.key==".")e.step().then($A);else if(w.key=="f")d();else if(w.key=="m")ft();else if(w.key=="[")e.seek({marker:"prev"});else if(w.key=="]")e.seek({marker:"next"});else if(w.key.charCodeAt(0)>=48&&w.key.charCodeAt(0)<=57){const O=(w.key.charCodeAt(0)-48)/10;e.seek(`${O*100}%`)}else if(w.key=="?")m();else if(w.key=="ArrowLeft")w.shiftKey?e.seek("<<<"):e.seek("<<");else if(w.key=="ArrowRight")w.shiftKey?e.seek(">>>"):e.seek(">>");else if(w.key=="Escape")tA(!1);else return;w.stopPropagation(),w.preventDefault()}},J=()=>{B.isFullscreen&&ge(!0)},Z=()=>{B.isFullscreen||ge(!1)},TA=()=>{hA=setInterval($A,100)},Ce=()=>{clearInterval(hA)},$A=async()=>{const w=await e.getCurrentTime(),O=await e.getRemainingTime(),nA=await e.getProgress();l({currentTime:w,remainingTime:O,progress:nA})},ge=w=>{clearTimeout(pA),w&&(pA=setTimeout(()=>ge(!1),2e3)),IA(w)},Qe=VA(()=>s?x():null),Ze=()=>{const w={};(A.fit===!1||A.fit==="none")&&A.terminalFontSize!==void 0&&(A.terminalFontSize==="small"?w["font-size"]="12px":A.terminalFontSize==="medium"?w["font-size"]="18px":A.terminalFontSize==="big"?w["font-size"]="24px":w["font-size"]=A.terminalFontSize);const O=dA();O.width!==void 0&&(w.width=`${O.width}px`,w.height=`${O.height}px`),A.terminalFontFamily!==void 0&&(w["--term-font-family"]=A.terminalFontFamily);const nA=Qe();return nA&&(w["--term-color-foreground"]=nA.foreground,w["--term-color-background"]=nA.background),w},Ve=()=>{fA.then(()=>e.play())},lg=()=>{fA.then(()=>e.togglePlay())},ft=()=>{fA.then(()=>{C()===!0?e.unmute():e.mute()})},cg=w=>{fA.then(()=>e.seek(w))},fg=()=>`ap-player ap-default-term-ff asciinema-player-theme-${E}`,ug=()=>dA()?.scale;return(()=>{const w=Ni.cloneNode(!0),O=w.firstChild,nA=gA;typeof nA=="function"?MA(nA,w):gA=w,w.addEventListener("webkitfullscreenchange",lA),w.addEventListener("fullscreenchange",lA),w.$$mousemove=J,w.$$keydown=k;const kA=WA;return typeof kA=="function"?MA(kA,O):WA=O,O.$$mousemove=()=>ge(!0),O.addEventListener("mouseleave",Z),AA(O,Y(Kn,{get cols(){return S()},get rows(){return EA()},get scale(){return ug()},get blinking(){return b()},get lineHeight(){return A.terminalLineHeight},preferEmbeddedTheme:s,core:e,get stats(){return N.terminal}}),null),AA(O,Y(UA,{get when(){return A.controls!==!1},get children(){return Y(li,{get duration(){return G()},get currentTime(){return B.currentTime},get remainingTime(){return B.remainingTime},get progress(){return B.progress},markers:U,get isPlaying(){return a()||D()=="loader"},get isPausable(){return B.isPausable},get isSeekable(){return B.isSeekable},get isMuted(){return C()},onPlayClick:lg,onFullscreenClick:d,onHelpClick:m,onSeekClick:cg,onMuteClick:ft,ref(cA){const Ee=LA;typeof Ee=="function"?Ee(cA):LA=cA}})}}),null),AA(O,Y(It,{get children(){return[Y(jA,{get when(){return D()=="start"},get children(){return Y(yi,{onClick:Ve})}}),Y(jA,{get when(){return D()=="loader"},get children(){return Y(di,{})}}),Y(jA,{get when(){return D()=="error"},get children(){return Y(fi,{})}})]}}),null),AA(O,Y(Gn,{name:"slide",get children(){return Y(UA,{get when(){return D()=="info"},get children(){return Y(hi,{get message(){return y()},get wasPlaying(){return I()}})}})}}),null),AA(O,Y(UA,{get when(){return BA()},get children(){return Y(bi,{onClose:()=>tA(!1),get isPausable(){return B.isPausable},get isSeekable(){return B.isSeekable},get hasAudio(){return C()!==void 0}})}}),null),GA(cA=>{const Ee=!!ZA(),ut=fg(),dg=Ze();return Ee!==cA._v$&&w.classList.toggle("ap-hud",cA._v$=Ee),ut!==cA._v$2&&hn(O,cA._v$2=ut),cA._v$3=ct(O,dg,cA._v$3),cA},{_v$:void 0,_v$2:void 0,_v$3:void 0}),w})()});He(["keydown","mousemove"]);function Si(A,t){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const g=Ji(e.terminalFontFamily,e.terminalLineHeight),V={core:A,logger:e.logger,cols:e.cols,rows:e.rows,fit:e.fit,controls:e.controls,autoPlay:e.autoPlay,terminalFontSize:e.terminalFontSize,terminalFontFamily:e.terminalFontFamily,terminalLineHeight:e.terminalLineHeight,theme:e.theme,...g};let n;const r=wn(()=>(n=Y(Ui,V),n),t);return{el:n,dispose:r}}function Ji(A,t){const V=document.createElement("div");V.className="ap-default-term-ff",V.style.height="0px",V.style.overflow="hidden",V.style.fontSize="15px",A!==void 0&&V.style.setProperty("--term-font-family",A);const n=document.createElement("div");n.className="ap-term",n.style.width="80ch",n.style.height=`${24*(t??1.3333333333)}em`,n.style.fontSize="100%",V.appendChild(n),document.body.appendChild(V);const r={charW:n.clientWidth/80,charH:n.clientHeight/24,bordersW:n.offsetWidth-n.clientWidth,bordersH:n.offsetHeight-n.clientHeight};return document.body.removeChild(V),r}const Yi=["audioUrl","autoPlay","autoplay","boldIsBright","cols","idleTimeLimit","loop","markers","pauseOnMarkers","poster","preload","rows","speed","startAt"],vi=["autoPlay","autoplay","cols","controls","fit","rows","terminalFontFamily","terminalFontSize","terminalLineHeight","theme"];function Ti(A){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const e=Object.fromEntries(Object.entries(A).filter(g=>{let[V]=g;return Yi.includes(V)}));return e.autoPlay??(e.autoPlay=e.autoplay),e.speed??(e.speed=1),{...e,...t}}function Ki(A){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const e=Object.fromEntries(Object.entries(A).filter(g=>{let[V]=g;return vi.includes(V)}));return e.autoPlay??(e.autoPlay=e.autoplay),e.controls??(e.controls="auto"),{...e,...t}}function Oi(A,t){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const g=e.logger??new xg,V=new tn(A,Ti(e,{logger:g})),{el:n,dispose:r}=Si(V,t,Ki(e,{logger:g})),o=V.init(),i={el:n,dispose:r,getCurrentTime:()=>o.then(V.getCurrentTime.bind(V)),getDuration:()=>o.then(V.getDuration.bind(V)),play:()=>o.then(V.play.bind(V)),pause:()=>o.then(V.pause.bind(V)),seek:s=>o.then(()=>V.seek(s))};return i.addEventListener=(s,E)=>V.addEventListener(s,E.bind(i)),i}class Hi extends Fg{constructor(){super("admin/session-commands")}}const Zi=new Hi,As=()=>{let{t:A}=Mg();const[t]=Rg(),e=dt(t.get("sessionId"),"");let g=dt(t.get("token"),""),[V,n]=_A.useState(!1),[r,o]=_A.useState([]),[i,s]=_A.useState(),[E,B]=_A.useState();_A.useEffect(()=>{let Q=bg();Ng.hasText(g)&&(Q=g);let I=`${Ug()}/admin/sessions/${e}/recording?X-Auth-Token=${Q}`,f=document.getElementById("player"),D=Oi(I,f,{fit:"both",autoPlay:!0,terminalFontFamily:'monaco, Consolas, "Lucida Console", monospace'});return B(D),()=>{D.dispose()}},[]);let l=wt({queryKey:["session"],queryFn:()=>Sg.getById(e)});_A.useEffect(()=>{l.data&&s(l.data)},[l.data]);let a=wt({queryKey:["cmd"],queryFn:()=>Zi.getPaging({pageIndex:1,pageSize:1e3,sessionId:e,sortField:"createdAt",sortOrder:"asc"})});_A.useEffect(()=>{a.data?.items&&o(a.data.items)},[a.data]);const u=[{title:A("sysops.logs.exec_at"),key:"createdAt",dataIndex:"createdAt",width:170,render:Q=>We.format(Q)},{title:A("sysops.command"),dataIndex:"command",ellipsis:!0}],C=[{key:"cmd",label:A("sysops.command"),children:wA.jsx(wg,{rowKey:"path",columns:u,dataSource:r,size:"small",pagination:!1,loading:a.isFetching,onRow:(Q,I)=>({onClick:()=>{let f=i?.connectedAt?i?.connectedAt:0,D=(Q.createdAt-f)/1e3;E?.seek(D-.5)}})})},{key:"info",label:A("actions.detail"),children:wA.jsx(hg,{column:1,items:[{key:"clientIp",label:A("audit.client_ip"),children:i?.clientIp},{key:"userAccount",label:A("menus.identity.submenus.user"),children:i?.userAccount},{key:"assetName",label:A("menus.resource.submenus.asset"),children:i?.assetName},{key:"addr",label:A("assets.addr"),children:`${i?.protocol} ${i?.username}@${i?.ip}:${i?.port}`},{key:"connectedAt",label:A("audit.connected_at"),children:We.format(i?.connectedAt)},{key:"disconnectedAt",label:A("audit.disconnected_at"),children:We.format(i?.disconnectedAt)},{key:"connectionDuration",label:A("audit.connection_duration"),children:i?.connectionDuration},{key:"recordingSize",label:A("audit.recording_size"),children:Gg(i?.recordingSize)}]})}];return wA.jsxs("div",{className:"fixed inset-0 flex items-center justify-center overflow-hidden bg-[#191919]",children:[wA.jsx("div",{id:"player",className:"w-full h-full overflow-hidden"}),wA.jsx("div",{className:"absolute top-5 right-5 z-10",children:wA.jsx(Dg,{type:"link",size:"small",onClick:()=>n(!0),children:wA.jsx(Yg,{className:"h-4 w-4"})})}),wA.jsx(yg,{theme:{algorithm:kg.darkAlgorithm,components:{Drawer:{paddingLG:16},Table:{cellPaddingBlockSM:6,headerBorderRadius:4}}},children:wA.jsx(mg,{hashPriority:"high",children:wA.jsx(qg,{title:A("actions.detail"),placement:"right",onClose:()=>n(!1),open:V,mask:!1,width:400,children:wA.jsx(pg,{defaultActiveKey:"cmd",items:C})})})})]})};export{As as default}; diff --git a/server/resource/build/assets/ToolsPage-DPPxYsiI.js b/server/resource/build/assets/ToolsPage-DPPxYsiI.js deleted file mode 100644 index 0ad1d9cb1..000000000 --- a/server/resource/build/assets/ToolsPage-DPPxYsiI.js +++ /dev/null @@ -1,3 +0,0 @@ -import{f as n,S as e,bs as r,aO as y,bY as j,av as v,b4 as N}from"./antd-Afm2kNt7.js";import{u as b,H as f,I as w,b as k}from"./index-DQXwuKC5.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";const C=()=>{let{t:s}=b();const[a,p]=n.useState(""),[i,d]=n.useState(4),[h,u]=n.useState([]),[x,c]=n.useState(!1);let o=null;const m=t=>{x||(c(!0),u([]),o=new EventSource(`${f()}/admin/tools/ping?X-Auth-Token=${w()}&host=${t}&attempts=${i}`),o.onmessage=g=>{u(l=>[...l,g.data])},o.addEventListener("done",()=>{o?.close(),c(!1)}),o.onerror=()=>{o?.close(),c(!1)})};return e.jsxs("div",{className:"flex flex-col gap-4 min-h-[75vh]",children:[e.jsxs(r,{layout:"inline",className:"w-full",children:[e.jsx(r.Item,{label:s("sysops.tools.target"),children:e.jsx(y,{value:a,onChange:t=>p(t.target.value),placeholder:s("sysops.tools.target_placeholder"),style:{width:"200px"}})}),e.jsx(r.Item,{label:s("sysops.tools.attempts"),tooltip:s("sysops.tools.attempts_tips"),children:e.jsx(j,{value:i,onChange:t=>d(t||4),min:1,max:100,style:{width:"100px"}})}),e.jsx(r.Item,{children:e.jsx(v,{type:"primary",disabled:!a||x,onClick:()=>m(a),children:s("sysops.tools.testing")})})]}),e.jsx("div",{className:"border rounded-lg p-4 flex-grow overflow-auto",children:e.jsx("pre",{className:"whitespace-pre-wrap break-all",children:h.join(` -`)})})]})},P=()=>{let{t:s}=b(),[a,p]=n.useState(""),[i,d]=n.useState(22);const[h,u]=n.useState(4),[x,c]=n.useState([]),[o,m]=n.useState(!1);let t=null;const g=(l,S)=>{o||(m(!0),c([]),t=new EventSource(`${f()}/admin/tools/tcping?X-Auth-Token=${w()}&host=${l}&port=${S}&attempts=${h}`),t.onmessage=T=>{c(I=>[...I,T.data])},t.addEventListener("done",()=>{t?.close(),m(!1)}),t.onerror=()=>{t?.close(),m(!1)})};return e.jsxs("div",{className:"flex flex-col gap-4 min-h-[75vh]",children:[e.jsxs(r,{layout:"inline",className:"w-full",children:[e.jsx(r.Item,{label:s("sysops.tools.target"),children:e.jsx(y,{value:a,onChange:l=>p(l.target.value),placeholder:s("sysops.tools.target_placeholder"),style:{width:"200px"}})}),e.jsx(r.Item,{label:s("gateways.port"),children:e.jsx(j,{value:i,onChange:l=>d(l),style:{width:"100px"},min:1,max:65535,precision:0})}),e.jsx(r.Item,{label:s("sysops.tools.attempts"),tooltip:s("sysops.tools.attempts_tips"),children:e.jsx(j,{value:h,onChange:l=>u(l||4),min:1,max:100,style:{width:"100px"}})}),e.jsx(r.Item,{children:e.jsx(v,{type:"primary",disabled:!a||o,onClick:()=>g(a,i),children:s("sysops.tools.testing")})})]}),e.jsx("div",{className:"border rounded-lg p-4 flex-grow overflow-auto",children:e.jsx("pre",{className:"whitespace-pre-wrap break-all",children:x.join(` -`)})})]})},H=()=>{let[s,a]=k();const p=[{key:"ping",label:"Ping",children:e.jsx(C,{})},{key:"tcping",label:"TCP Ping",children:e.jsx(P,{})}],i=d=>{s.set("tab",d),a(s)};return e.jsx("div",{className:"px-4",children:e.jsx(N,{activeKey:s.get("tab")||"ping",items:p,onChange:i})})};export{H as default}; diff --git a/server/resource/build/assets/UserDetailPage-CxWs4t4Q.js b/server/resource/build/assets/UserDetailPage-CxWs4t4Q.js deleted file mode 100644 index 533dd7cfe..000000000 --- a/server/resource/build/assets/UserDetailPage-CxWs4t4Q.js +++ /dev/null @@ -1 +0,0 @@ -import{S as t,bL as i,a_ as v,f as p,bM as k,a$ as h,aS as w,av as T,bN as d,bi as P,bc as A,b4 as S}from"./antd-Afm2kNt7.js";import{u as f}from"./user-api-BJxKseSg.js";import{N as I}from"./NLink-Dl2yFaN4.js";import{u as g,e as j,h as C,p as L,b as K,o as U}from"./index-DQXwuKC5.js";import{l as x}from"./login-policy-api-BlI40YsB.js";import{t as b}from"./times-CQ9ir0Jv.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";const E=({active:u,id:r})=>{let{t:e}=g();const o=async()=>({success:!0,data:await f.getById(r)}),c={local:e("identity.user.sources.local"),ldap:e("identity.user.sources.ldap"),wechat:e("identity.user.sources.wechat"),oidc:e("identity.user.sources.oidc"),self:e("identity.user.sources.local"),"wechat-work":e("identity.user.sources.wechat")};return t.jsx("div",{className:"page-detail-info",children:t.jsxs(i,{column:1,request:o,children:[t.jsx(i.Item,{label:e("gateways.username"),dataIndex:"username"}),t.jsx(i.Item,{label:e("identity.user.nickname"),dataIndex:"nickname"}),t.jsx(i.Item,{label:e("identity.user.mail"),dataIndex:"mail"}),t.jsx(i.Item,{label:e("audit.accessLog.stats.table.referer"),dataIndex:"source",render:(l,s)=>c[s.source]||s.source}),t.jsx(i.Item,{label:e("general.remark"),dataIndex:"remark"}),t.jsx(i.Item,{label:e("identity.user.status"),dataIndex:"status",valueEnum:{disabled:{text:e("general.disabled"),status:"Error"},enabled:{text:e("general.enabled"),status:"Success"}}}),t.jsx(i.Item,{label:e("identity.user.otp"),dataIndex:"enabledTotp",valueEnum:{disabled:{text:e("general.disabled"),status:"Error"},enabled:{text:e("general.enabled"),status:"Success"}}}),t.jsx(i.Item,{label:e("actions.authorized"),children:t.jsxs(v,{size:12,wrap:!0,children:[t.jsx(I,{to:`/authorised-asset?userId=${r}`,children:`${e("menus.resource.submenus.asset")}${e("actions.authorized")}`}),t.jsx(I,{to:`/authorised-website?userId=${r}`,children:`${e("menus.resource.submenus.website")}${e("actions.authorized")}`})]})}),t.jsx(i.Item,{label:e("general.created_at"),dataIndex:"createdAt",valueType:"dateTime"})]})})},N=({active:u,userId:r})=>{let{t:e}=g();const[o,c]=p.useState([]);let l=j({queryKey:["loginPolicy"],queryFn:x.getAll}),s=j({queryKey:["login-policy-id"],queryFn:()=>x.getLoginPolicyIdByUserId(r)});if(p.useEffect(()=>{s.data&&c(s.data)},[s.data]),l.isLoading)return t.jsx("div",{children:"Loading..."});let a=Array.isArray(l.data)?l.data.map(n=>({key:n.id,title:n.name,priority:n.priority})):[];const m=async(n,y,_)=>{switch(y){case"left":await x.unbindLoginPolicy(r,_);break;case"right":await x.bindLoginPolicy(r,_);break}c(n)};return t.jsx(k,{dataSource:a,titles:[e("general.unbound"),e("general.bound")],operations:[e("actions.binding"),e("actions.unbind")],showSearch:!0,listStyle:{width:250,height:400},targetKeys:o,onChange:m,render:n=>n.title+`(${n.priority})`})},$=({active:u,userId:r})=>{const{t:e}=g(),o=j({queryKey:["user-client-cert",r],queryFn:()=>f.getUserClientCert(r),enabled:u}),c=C({mutationFn:()=>f.revokeUserClientCert(r),onSuccess:()=>{o.refetch()}}),l=m=>e(m==="active"?"account.client_cert_status_active":"account.client_cert_status_revoked"),s=m=>m==="active"?"green":"red",a=o.data;return t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx(h.Title,{level:5,style:{marginTop:0},children:e("account.client_cert")}),a&&t.jsx(v,{children:t.jsx(w,{title:e("account.client_cert_revoke_confirm"),onConfirm:()=>c.mutate(),okText:e("actions.confirm"),cancelText:e("actions.cancel"),children:t.jsx(T,{danger:!0,loading:c.isPending,children:e("account.client_cert_revoke")})})})]}),a?t.jsxs(d,{column:1,bordered:!0,size:"small",children:[t.jsx(d.Item,{label:e("account.client_cert_serial"),children:t.jsx(h.Text,{code:!0,children:a.serialNumber})}),t.jsx(d.Item,{label:e("account.client_cert_fingerprint"),children:t.jsx(h.Text,{code:!0,children:a.fingerprint})}),t.jsx(d.Item,{label:e("general.status"),children:t.jsx(P,{color:s(a.status),children:l(a.status)})}),t.jsx(d.Item,{label:e("account.client_cert_not_before"),children:a.notBefore?b.format(a.notBefore):e("general.no")}),t.jsx(d.Item,{label:e("account.client_cert_not_after"),children:a.notAfter?b.format(a.notAfter):e("general.no")}),t.jsx(d.Item,{label:e("account.client_cert_last_used"),children:a.lastUsedAt?b.format(a.lastUsedAt):e("general.no")}),t.jsx(d.Item,{label:e("general.created_at"),children:a.createdAt?b.format(a.createdAt):e("general.no")})]}):t.jsx(A,{description:e("account.client_cert_empty")})]})},H=()=>{let{t:u}=g();const e=L().userId,[o,c]=K();let l=U(o.get("activeKey"),"info"),[s,a]=p.useState(l);const m=y=>{a(y),c({activeKey:y})},n=[{label:u("actions.detail"),key:"info",children:t.jsx(E,{active:s==="info",id:e})},{label:u("identity.options.login_policy"),key:"login-policy",children:t.jsx(N,{active:s==="login-policy",userId:e})},{label:u("account.client_cert"),key:"client-cert",children:t.jsx($,{active:s==="client-cert",userId:e})}];return t.jsx("div",{className:"px-4",children:t.jsx(S,{activeKey:s,onChange:m,items:n})})};export{H as default}; diff --git a/server/resource/build/assets/UserInfoPage-DrNAhF9r.js b/server/resource/build/assets/UserInfoPage-DrNAhF9r.js deleted file mode 100644 index c7633c44f..000000000 --- a/server/resource/build/assets/UserInfoPage-DrNAhF9r.js +++ /dev/null @@ -1 +0,0 @@ -import{S as e}from"./antd-Afm2kNt7.js";import s from"./InfoPage--AJ8mxff.js";import{u as o}from"./index-DQXwuKC5.js";import"./times-CQ9ir0Jv.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";const x=()=>{let{t:r}=o();return e.jsxs("div",{className:"md:px-20 px-4",children:[e.jsx("div",{className:"py-6 flex ",children:e.jsx("div",{className:"flex-grow text-xl font-bold",children:r("account.profile")})}),e.jsx("div",{className:"rounded p-4 pl-0 bg-white",children:e.jsx(s,{})})]})};export{x as default}; diff --git a/server/resource/build/assets/UserLayout-M9_Sh7Dn.js b/server/resource/build/assets/UserLayout-M9_Sh7Dn.js deleted file mode 100644 index cbd2fb3eb..000000000 --- a/server/resource/build/assets/UserLayout-M9_Sh7Dn.js +++ /dev/null @@ -1 +0,0 @@ -import{f as g,S as e,ar as y,ay as v,aC as P,au as D,at as z,U as I,aG as O,aH as U,aI as q}from"./antd-Afm2kNt7.js";import{v as E,u as A,w as F,c as B,ao as K,a as H,e as _,f as w,g as N,y as u,ap as R,aq as Q,i as c,j as W,ar as G,as as J,d as V,at as k,au as $,an as X,av as Y,t as Z,a4 as C}from"./index-DQXwuKC5.js";import{c as i}from"./charts-DWBuA5Za.js";import{S as L,M}from"./sun-7WZ3UW9g.js";import"./monaco-CA9D5Osg.js";import"./xterm-Buno8AXJ.js";const ee=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],ae=E("layout-dashboard",ee);const te=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],se=E("menu",te),ne=()=>{let{t:a}=A();const{isMobile:r}=F(),d=g.useRef(null),{isDarkMode:n,toggleDarkMode:h}=B(d),s=n;let l=K(),x=H(),f=l.pathname;const[S,m]=g.useState(!1);let o=_({queryKey:["branding"],queryFn:w.getBranding}),b=_({queryKey:["info"],queryFn:N.getUserInfo});const T=async()=>{await N.logout(),window.location.href="/login"},p=[{key:"info-center",icon:e.jsx(R,{className:"w-4 h-4"}),label:e.jsx(u,{to:"/x-info",children:a("account.profile")}),danger:!1}];(b.data?.type==="admin"||b.data?.type==="super-admin")&&p.push({key:"admin",icon:e.jsx(ae,{className:"w-4 h-4"}),label:e.jsx(u,{to:"/dashboard",children:a("menus.dashboard.label")}),danger:!1}),p.push({key:"logout",icon:e.jsx(Q,{className:"w-4 h-4"}),danger:!0,label:e.jsx("div",{onClick:T,children:a("account.logout")})});const j=[{key:"/x-asset",title:a("menus.resource.submenus.asset")},{key:"/x-website",title:a("menus.resource.submenus.website")},{key:"/x-database-asset",title:a("menus.resource.submenus.database_asset")},{key:"/x-snippet",title:a("menus.resource.submenus.snippet")},{key:"/x-db-work-order",title:a("menus.resource.submenus.db_work_order")}];return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:i("sticky top-0 z-50 w-full border-b shadow-[0_6px_18px_rgba(15,23,42,0.18)]",s?"bg-gradient-to-r from-[#0b1f3a] via-[#0f2a50] to-[#143a6b] border-white/10":"bg-gradient-to-r from-[#1A73E8] via-[#1E7BF2] to-[#3B82F6] border-white/20"),children:e.jsxs("div",{className:"h-14 flex gap-2 lg:gap-8 items-center px-4 lg:px-20 text-white",children:[r&&e.jsx("div",{className:"cursor-pointer text-white",onClick:()=>m(!0),children:e.jsx(se,{className:"w-6 h-6"})}),e.jsx(y,{spinning:o.isLoading,children:e.jsx(u,{to:"/x-asset",children:e.jsxs("div",{className:"flex-none flex gap-2 items-center",children:[o.data?e.jsx("img",{src:w.getLogo(),alt:"logo",className:"w-8 h-8 rounded-md"}):void 0,e.jsx("div",{className:"font-bold text-base text-white",children:o.data?.name})]})})}),e.jsx("div",{className:"flex-grow h-full",children:e.jsx("div",{className:"lg:flex gap-6 items-center h-full text-sm text-white hidden",children:j.map(t=>e.jsx("div",{className:i("h-full flex items-center cursor-pointer relative px-1.5 transition-colors",t.key===f?"text-white font-semibold after:absolute after:bottom-0 after:left-0 after:h-[3px] after:w-full after:bg-white/90":"text-white/80 hover:text-white"),onClick:()=>{x(t.key)},children:e.jsx("div",{className:"items-center",children:t.title})},t.key))})}),!r&&e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(v,{placeholder:a("general.language"),variant:"borderless",className:"text-white [&_.ant-select-selector]:!bg-white/10 [&_.ant-select-selector]:!text-white [&_.ant-select-selection-item]:!text-white [&_.ant-select-selection-placeholder]:!text-white/70 [&_.ant-select-arrow]:!text-white",style:{width:120},prefix:e.jsx(W,{className:"w-4 h-4"}),options:[{value:"en-US",label:a("general.language_en_us")},{value:"zh-CN",label:a("general.language_zh_cn")},{value:"zh-TW",label:a("general.language_zh_tw")},{value:"ja-JP",label:a("general.language_ja_jp")}],value:c.language,onChange:t=>{c.changeLanguage(t)}}),e.jsx("button",{ref:d,type:"button",onClick:()=>h(!n),className:"cursor-pointer h-8 w-8 rounded-md border border-white/30 bg-white/10 text-white/90 transition-colors hover:bg-white/20 hover:text-white",children:n?e.jsx(L,{className:"h-4 w-4 mx-auto"}):e.jsx(M,{className:"h-4 w-4 mx-auto"})}),e.jsx("button",{className:"cursor-pointer h-8 w-8 rounded-md border border-white/30 bg-white/10 text-white/90 transition-colors hover:bg-white/20 hover:text-white",onClick:()=>{window.open("/access","_blank")},children:e.jsx(G,{className:"w-4 h-4 mx-auto"})})]}),e.jsx(P,{menu:{items:p},children:e.jsxs("div",{className:"flex gap-2 items-center cursor-pointer h-full text-white",children:[e.jsx("div",{className:"text-sm ",children:b.data?.nickname}),e.jsx(J,{className:"w-5 h-5"})]})})]})}),e.jsx(D,{title:null,placement:"left",onClose:()=>m(!1),open:r&&S,styles:{body:{padding:0,background:s?"#0b1220":"#ffffff"}},width:280,className:i("[&_.ant-drawer-body]:p-0",s?"text-slate-100":"text-slate-900"),children:e.jsxs("div",{className:"flex flex-col h-full",children:[e.jsx("div",{className:"flex-none",children:e.jsx(y,{spinning:o.isLoading,children:e.jsx(u,{to:"/x-asset",onClick:()=>m(!1),children:e.jsxs("div",{className:"flex items-center gap-2 justify-center h-[60px]",children:[o.data&&e.jsx("img",{src:w.getLogo(),alt:"logo",className:"h-8 w-8 rounded"}),e.jsx("div",{className:"font-bold text-lg",children:o.data?.name})]})})})}),e.jsx("div",{className:"flex-1 overflow-auto",children:e.jsx(z,{mode:"inline",theme:s?"dark":"light",className:i("border-0",s&&"bg-transparent [&_.ant-menu-item]:text-slate-200 [&_.ant-menu-item-selected]:!bg-blue-500/20 [&_.ant-menu-item-selected]:!text-white"),selectedKeys:[f],items:j.map(t=>({key:t.key,label:t.title,onClick:()=>{x(t.key),m(!1)}}))})}),e.jsxs("div",{className:"flex-none p-4 space-y-4",children:[e.jsxs("div",{children:[e.jsx("div",{className:i("mb-2 text-xs",s?"text-slate-400":"text-gray-500"),children:a("general.language")}),e.jsx(v,{placeholder:a("general.language"),style:{width:"100%"},options:[{value:"en-US",label:a("general.language_en_us")},{value:"zh-CN",label:a("general.language_zh_cn")},{value:"zh-TW",label:a("general.language_zh_tw")},{value:"ja-JP",label:a("general.language_ja_jp")}],value:c.language,onChange:t=>{c.changeLanguage(t)}})]}),e.jsx("button",{type:"button",onClick:()=>h(!n),className:i("flex items-center gap-2 p-2 rounded transition-colors",s?"bg-white/5 text-slate-100 hover:bg-white/10":"bg-slate-100 text-slate-800 hover:bg-slate-200"),children:n?e.jsx(L,{className:"h-4 w-4"}):e.jsx(M,{className:"h-4 w-4"})})]})]})})]})},he=()=>{let{t:a}=A();const[r]=V();let[d,n]=I.useModal();return g.useEffect(()=>{let h=C(()=>{let l="/x-info?activeKey=otp";window.location.href.includes(l)||d.warning({title:a("general.tips"),content:a("account.otp_required"),onOk:()=>{window.location.href=l}})},500);k.on("API:NEED_ENABLE_OPT",()=>{h()});let s=C(()=>{let l="/x-info?activeKey=change-password";window.location.href.includes(l)||d.warning({title:a("general.tips"),content:a("general.password_expired"),onOk:()=>{window.location.href=l}})},500);k.on("API:NEED_CHANGE_PASSWORD",()=>{s()})},[]),e.jsx(O,{hashPriority:"high",children:e.jsx(U,{theme:{algorithm:r.algorithm,components:{Layout:{triggerBg:"#131313"}}},locale:Z(c.language),children:e.jsxs(q,{children:[e.jsxs("div",{className:"flex flex-col min-h-screen transition-colors max-md:[&_.ant-table-wrapper]:overflow-x-auto max-md:[&_.ant-table-thead>tr>th]:px-2 max-md:[&_.ant-table-thead>tr>th]:py-2 max-md:[&_.ant-table-thead>tr>th]:text-xs max-md:[&_.ant-table-thead>tr>th]:whitespace-nowrap max-md:[&_.ant-table-tbody>tr>td]:px-2 max-md:[&_.ant-table-tbody>tr>td]:py-2 max-md:[&_.ant-table-tbody>tr>td]:text-xs max-md:[&_.ant-table-tbody>tr>td]:break-words max-md:[&_.ant-btn-group]:flex-wrap max-md:[&_.ant-btn-group]:gap-1 max-md:[&_.ant-form-item]:mb-3 max-md:[&_.ant-form-item-label]:pb-1 max-md:[&_.ant-pro-table-search]:p-3 max-md:[&_.ant-pro-card-body]:p-3",style:{backgroundColor:r.backgroundColor},children:[e.jsx(ne,{}),e.jsx("div",{className:"flex-grow",children:e.jsx(g.Suspense,{fallback:e.jsx(X,{}),children:e.jsx($,{})})}),e.jsx(Y,{})]}),n]})})})};export{he as default}; diff --git a/server/resource/build/assets/UserPage-hpsga5IM.js b/server/resource/build/assets/UserPage-hpsga5IM.js deleted file mode 100644 index 7f79ae7bf..000000000 --- a/server/resource/build/assets/UserPage-hpsga5IM.js +++ /dev/null @@ -1,3 +0,0 @@ -import{f as c,S as t,U as M,aK as B,aT as y,bj as S,bk as p,aV as I,bH as Q,aL as E,bA as X,aU as Y,aI as Z,a_ as U,bi as ee,az as te,aS as se,bI as ae,bz as re,bp as K,av as q,bJ as ne,bK as ie,bd as z}from"./antd-Afm2kNt7.js";import{u as _}from"./user-api-BJxKseSg.js";import{g as le}from"./sort-BOdE-yay.js";import{r as oe}from"./role-api-RbYCFKw-.js";import{d as de}from"./department-api-fa0GHZbt.js";import{u as T,b as ue,o as ce,a as me,h as N}from"./index-DQXwuKC5.js";import{N as C}from"./NButton-DoPcvKBF.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";const pe=({open:e,handleOk:n,handleCancel:o,confirmLoading:d,id:u})=>{const i=c.useRef(null);let{t:a}=T();const g=async()=>u?await _.getById(u):{type:"user",recording:"enabled",watermark:"enabled",source:"local"};return t.jsx(M,{title:a(u?"actions.edit":"actions.new"),open:e,maskClosable:!1,destroyOnHidden:!0,onOk:()=>{i.current?.validateFields().then(async l=>{l.departments&&Array.isArray(l.departments)&&(l.departments=l.departments.map(m=>typeof m=="object"?m.value:m)),n(l)})},onCancel:()=>{o()},confirmLoading:d,children:t.jsxs(B,{formRef:i,request:g,submitter:!1,children:[t.jsx(y,{hidden:!0,name:"id"}),t.jsxs(S,{gutter:8,children:[t.jsx(p,{span:12,children:t.jsx(y,{name:"nickname",label:a("identity.user.nickname"),rules:[{required:!0}]})}),t.jsx(p,{span:12,children:t.jsx(y,{name:"username",label:a("gateways.username"),rules:[{required:!0}]})})]}),t.jsx(I.Group,{label:a("identity.user.type"),name:"type",rules:[{required:!0}],options:[{label:a("identity.user.types.super_admin"),value:"super-admin"},{label:a("identity.user.types.admin"),value:"admin"},{label:a("identity.user.types.normal"),value:"user"}]}),t.jsx(Q,{name:["type"],children:({type:l})=>l!=="admin"?null:t.jsx(E,{label:a("menus.identity.submenus.role"),name:"roles",fieldProps:{mode:"multiple"},request:async()=>(await oe.getAll()).map(k=>({label:k.name,value:k.id}))})}),t.jsx(X,{label:a("menus.identity.submenus.department"),name:"departments",fieldProps:{multiple:!0,treeCheckable:!0,showCheckedStrategy:"SHOW_ALL",placeholder:a("identity.user.select_department"),treeDefaultExpandAll:!0,treeCheckStrictly:!0},request:async()=>await de.getTree()}),t.jsxs(S,{gutter:8,children:[t.jsx(p,{span:12,children:t.jsx(I.Group,{label:a("identity.user.recording"),name:"recording",rules:[{required:!0}],options:[{label:a("general.enabled"),value:"enabled"},{label:a("general.disabled"),value:"disabled"}]})}),t.jsx(p,{span:12,children:t.jsx(I.Group,{label:a("identity.user.watermark"),name:"watermark",rules:[{required:!0}],options:[{label:a("general.enabled"),value:"enabled"},{label:a("general.disabled"),value:"disabled"}]})})]}),t.jsxs(S,{gutter:8,children:[t.jsx(p,{span:12,children:t.jsx(y,{name:"mail",label:a("identity.user.mail"),rules:[{type:"email"}]})}),t.jsx(p,{span:12,children:t.jsx(y,{name:"phone",label:a("identity.user.phone")})})]}),t.jsxs(S,{gutter:8,children:[t.jsx(p,{span:12,children:t.jsx(E,{name:"source",label:a("audit.accessLog.stats.table.referer"),options:[{label:a("identity.user.sources.local"),value:"local"},{label:a("identity.user.sources.ldap"),value:"ldap"},{label:a("identity.user.sources.wechat"),value:"wechat"},{label:a("identity.user.sources.oidc"),value:"oidc"}]})}),t.jsx(p,{span:12,children:t.jsx(y,{name:"remark",label:a("general.remark")})})]}),t.jsx(Y,{label:a("identity.user.public_key"),name:"publicKey",placeholder:"Public Key",fieldProps:{rows:4}}),!u&&t.jsx(y.Password,{name:"password",label:a("assets.password")})]})})},ye=({open:e,handleOk:n,handleCancel:o,confirmLoading:d})=>{const u=c.useRef(null);let{t:i}=T();return t.jsx(M,{title:i("identity.user.reset_password.confirm_title"),open:e,maskClosable:!1,destroyOnHidden:!0,onOk:()=>{u.current?.validateFields().then(async a=>{n(a)})},onCancel:()=>{o()},confirmLoading:d,children:t.jsx(B,{formRef:u,submitter:!1,children:t.jsx(y,{name:"password",label:i("assets.password"),rules:[{pattern:/^\S*$/,message:i("identity.user.no_spaces_allowed")}],extra:i("identity.user.reset_password.confirm_content")})})})},w=_;function he(){let e="name, account, password, email, recording(true,false), watermark(true,false), group1|group2";const n=new Blob(["\uFEFF"+e],{type:"text/csv;charset=gb2312;"});let o=document.createElement("a");o.download="sample.csv",o.href=URL.createObjectURL(n),o.click()}const Ie=()=>{const{t:e}=T(),n=c.useRef(null);let[o,d]=c.useState(!1),[u,i]=c.useState(),[a,g]=c.useState(),[l,m]=c.useState(!1),[k,W]=ue(),[v,G]=c.useState(ce(k.get("type"),"super-admin")),f=me(),{message:j,modal:P}=Z.useApp();c.useEffect(()=>{n.current?.reload()},[v]);let O=N({mutationFn:async s=>{if(s.id)await w.updateById(s.id,s);else{let r=await w.create(s);console.log(r),P.success({title:e("identity.user.new_user_result"),content:t.jsxs("div",{children:[t.jsxs("div",{children:[e("identity.user.nickname"),": ",r.nickname]}),t.jsxs("div",{children:[e("gateways.username"),": ",r.username]}),t.jsxs("div",{children:[e("assets.password"),": ",r.password]})]}),okText:e("actions.copy"),onOk:()=>{z(`${e("identity.user.nickname")}: ${r.nickname} -${e("gateways.username")}: ${r.username} -${e("assets.password")}: ${r.password}`),j.success(e("general.copy_success"))}})}},onSuccess:()=>{n.current?.reload(),d(!1),i(void 0),F()}}),R=N({mutationFn:s=>_.resetPassword(a,s.password),onSuccess:s=>{m(!1),P.success({title:e("identity.user.reset_password.success"),content:t.jsx("div",{children:t.jsxs("div",{children:[e("identity.user.reset_password.new"),": ",s]})}),okText:e("actions.copy"),onOk:()=>{z(s),j.success(e("general.copy_success"))}})}});const H=[{title:e("identity.user.nickname"),dataIndex:"nickname",key:"nickname",sorter:!0,render:(s,r)=>t.jsx("a",{onClick:()=>{d(!0),i(r.id)},children:s})},{title:e("gateways.username"),dataIndex:"username",key:"username",sorter:!0},{title:e("identity.user.mail"),dataIndex:"mail",key:"mail"},{title:e("menus.identity.submenus.department"),dataIndex:"departmentNames",key:"departmentNames",hideInSearch:!0,render:(s,r)=>{const b=r.departments;return!b||b.length===0?"-":t.jsx(U,{size:[0,4],wrap:!0,children:b.map((x,h)=>t.jsx(ee,{color:"blue",children:x.name},h))})}},{title:e("audit.accessLog.stats.table.referer"),dataIndex:"source",key:"source",hideInSearch:!0,render:s=>({local:e("identity.user.sources.local"),ldap:e("identity.user.sources.ldap"),wechat:e("identity.user.sources.wechat"),oidc:e("identity.user.sources.oidc"),self:e("identity.user.sources.local"),"wechat-work":e("identity.user.sources.wechat")})[s]||s,width:80},{title:e("general.remark"),dataIndex:"remark",key:"remark",hideInSearch:!0,ellipsis:!0},{title:e("identity.user.status"),dataIndex:"status",key:"status",hideInSearch:!0,render:(s,r,b)=>t.jsx(te,{checkedChildren:e("general.enabled"),unCheckedChildren:e("general.disabled"),checked:s!=="disabled",onChange:x=>{let h=x?"enabled":"disabled";w.changeStatus(r.id,h).then(()=>{n.current?.reload()})}})},{title:e("audit.login_status"),dataIndex:"online",key:"online",valueType:"radio",valueEnum:{true:{text:e("general.online"),status:"success"},false:{text:e("general.offline"),status:"default"}},hideInSearch:!0},{title:e("identity.user.last_login_at"),key:"lastLoginAt",dataIndex:"lastLoginAt",valueType:"dateTime",hideInSearch:!0,width:180},{title:e("general.created_at"),key:"createdAt",dataIndex:"createdAt",valueType:"dateTime",hideInSearch:!0,sorter:!0,width:180},{title:e("actions.label"),valueType:"option",key:"option",width:160,fixed:"right",render:(s,r,b,x)=>[t.jsx(C,{onClick:()=>{d(!0),i(r.id)},children:e("actions.edit")},"edit"),t.jsx(se,{title:e("general.confirm_delete"),onConfirm:async()=>{await w.deleteById(r.id),n.current?.reload()},children:t.jsx(C,{danger:!0,children:e("actions.delete")},"delete")},"delete-confirm"),t.jsx(ae,{onSelect:h=>{switch(h){case"detail":f(`/user/${r.id}?activeKey=info`);break;case"view-authorised-asset":f(`/authorised-asset?userId=${r.id}`);break;case"view-authorised-website":f(`/authorised-website?userId=${r.id}`);break;case"reset-password":A([r.id]);break;case"reset-totp":L([r.id]);break;case"login-policy":f(`/user/${r.id}?activeKey=login-policy`);break}},menus:[{key:"detail",name:e("actions.detail")},{key:"view-authorised-asset",name:`${e("menus.resource.submenus.asset")}${e("actions.authorized")}`},{key:"view-authorised-website",name:`${e("menus.resource.submenus.website")}${e("actions.authorized")}`},{key:"reset-password",name:e("identity.user.reset_password.action")},{key:"reset-totp",name:e("identity.user.reset_otp.action")},{key:"login-policy",name:e("identity.options.login_policy")}]},"actionGroup")]}],A=s=>{m(!0),g(s)};function F(){j.open({type:"success",content:e("general.success")})}const L=s=>{P.confirm({title:e("identity.user.reset_otp.confirm_title"),content:e("identity.user.reset_otp.confirm_content"),onOk(){_.resetTOTP(s).then(F)}})},D=t.jsx(t.Fragment,{children:t.jsx(C,{onClick:he,children:e("actions.download_import_sample")})}),V=async s=>(await w.import(s),j.success(e("general.success")),n.current?.reload(),!0);return t.jsxs("div",{children:[t.jsx(re,{columns:H,actionRef:n,columnsState:{persistenceKey:"user-table",persistenceType:"localStorage"},rowSelection:{selections:[K.SELECTION_ALL,K.SELECTION_INVERT]},tableAlertOptionRender:({selectedRowKeys:s})=>t.jsxs(U,{size:16,children:[t.jsx("a",{className:"danger",onClick:()=>{A(s)},children:e("identity.user.reset_password.action")}),t.jsx("a",{className:"danger",onClick:()=>{L(s)},children:e("identity.user.reset_otp.action")})]}),request:async(s={},r,b)=>{let[x,h]=le(r),J={pageIndex:s.current,pageSize:s.pageSize,order:x,field:h,nickname:s.nickname,username:s.username,mail:s.mail,online:s.online,type:v},$=await w.getPaging(J);return{data:$.items,success:!0,total:$.total}},rowKey:"id",search:{labelWidth:"auto"},pagination:{defaultPageSize:10,showSizeChanger:!0},scroll:{x:"max-content"},dateFormatter:"string",toolbar:{menu:{type:"tab",items:[{key:"super-admin",label:e("identity.user.types.super_admin")},{key:"admin",label:e("identity.user.types.admin")},{key:"user",label:e("identity.user.types.normal")}],activeKey:v,onChange:s=>{G(s),W({type:s})}},actions:[t.jsx(q,{type:"primary",onClick:()=>{d(!0)},children:e("actions.new")},"button"),t.jsx(ne,{content:D,children:t.jsx(ie,{maxCount:1,beforeUpload:V,showUploadList:!1,children:t.jsx(q,{children:e("actions.import")},"import")})})]}}),t.jsx(pe,{id:u,open:o,confirmLoading:O.isPending,handleCancel:()=>{d(!1),i(void 0)},handleOk:O.mutate}),t.jsx(ye,{open:l,confirmLoading:R.isPending,handleCancel:()=>{m(!1),g([])},handleOk:R.mutate})]})};export{Ie as default}; diff --git a/server/resource/build/assets/WebsiteFacadePage-CqAliO-B.js b/server/resource/build/assets/WebsiteFacadePage-CqAliO-B.js deleted file mode 100644 index 6cabe837d..000000000 --- a/server/resource/build/assets/WebsiteFacadePage-CqAliO-B.js +++ /dev/null @@ -1 +0,0 @@ -import{f as a,bg as k,S as e,bc as I}from"./antd-Afm2kNt7.js";import{u as F,e as h,aj as g,m as K}from"./index-DQXwuKC5.js";import{g as E,a as G,c as L,f as W,b as q,d as M,F as A}from"./FacadeCardSkeleton-N6rktkuw.js";import{F as _}from"./FacadeSearchBar-DPZw3dye.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";const z=()=>{let{t:d}=F(),[c,b]=a.useState(),[o,y]=a.useState(""),[r,w]=a.useState(""),[j,x]=a.useState([]),[N,m]=a.useState(""),n=h({queryKey:["my-websites"],queryFn:()=>g.assets("website"),staleTime:300*1e3,gcTime:600*1e3}),t=h({queryKey:["my-websites-group-tree"],queryFn:()=>g.getWebsitesGroupTree(),staleTime:600*1e3});a.useEffect(()=>{n.data&&b(n.data)},[n.data]);const u=a.useMemo(()=>t.data?E(t.data):[],[t.data]);a.useEffect(()=>{u.length>0&&x(u)},[u]);const v=a.useCallback(s=>{y(s.toLowerCase())},[]),C=a.useCallback(s=>{const l=`/browser?websiteId=${s}&t=${new Date().getTime()}`;window.open(l,"_blank")},[]),S=a.useCallback(async s=>{try{m(s);const i=(await g.allowWebsiteIP(s))?.expiresIn||0,T=Math.max(1,Math.ceil(i/60));k.success(d("assets.temp_allow_success",{minutes:T}))}catch{}finally{m("")}},[d]),p=a.useMemo(()=>{let s=c||[];if(r&&r!==""&&t.data){const l=G(t.data,r);s=s.filter(i=>L(i.groupId,l))}return K.hasText(o)&&(s=s.filter(l=>l.name.toLowerCase().includes(o)||l.protocol.toLowerCase().includes(o)?!0:l.tags?.some(i=>i.toLowerCase().includes(o)))),s},[c,r,o,t.data]),f=a.useMemo(()=>r&&t.data?W(t.data,r):null,[r,t.data]);return e.jsx("div",{className:"pb-6",children:e.jsxs("div",{className:"lg:px-20 px-4",children:[e.jsx("div",{className:"lg:py-6 py-4",children:e.jsxs("div",{className:"rounded-2xl border border-slate-200/70 dark:border-slate-700/70 p-4 lg:p-5",children:[e.jsx("div",{className:"flex flex-col lg:flex-row lg:items-center lg:justify-between gap-3",children:e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsx("div",{className:"text-xl font-bold text-slate-900 dark:text-slate-100",children:d("menus.resource.submenus.website")}),f&&e.jsx("div",{className:"flex flex-wrap gap-2",children:e.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full bg-slate-100 dark:bg-slate-800/70 px-2.5 py-1 text-xs font-medium text-slate-600 dark:text-slate-200",children:[d("assets.group")," · ",f.title]})})]})}),e.jsx("div",{className:"pt-3",children:e.jsx(_,{value:o,onChange:v,resultCount:p.length,totalCount:c?.length||0,placeholder:d("facade.website_placeholder")})})]})}),e.jsxs("div",{className:"grid lg:grid-cols-[240px_1fr] gap-4",children:[e.jsx(q,{title:d("assets.group"),treeData:t.data,selectedKey:r,onSelect:w,expandedKeys:j,onExpand:x,loading:t.isLoading}),e.jsx("div",{className:"rounded-lg",children:n.isLoading?e.jsx("div",{className:"grid 2xl:grid-cols-5 lg:grid-cols-4 lg:gap-6 grid-cols-1 gap-2",children:e.jsx(M,{count:8})}):p.length===0?e.jsx(I,{}):e.jsx("div",{className:"grid 2xl:grid-cols-5 lg:grid-cols-4 lg:gap-6 grid-cols-1 gap-2",children:p.map(s=>e.jsx(A,{item:s,type:"website",onOpen:C,onAllowTempIP:S,allowLoading:N},s.id))})})]})]})})};export{z as default}; diff --git a/server/resource/build/assets/WebsitePage-BFwEoyOi.js b/server/resource/build/assets/WebsitePage-BFwEoyOi.js deleted file mode 100644 index 99767da8b..000000000 --- a/server/resource/build/assets/WebsitePage-BFwEoyOi.js +++ /dev/null @@ -1 +0,0 @@ -var Le=Object.defineProperty;var $e=(s,t,u)=>t in s?Le(s,t,{enumerable:!0,configurable:!0,writable:!0,value:u}):s[t]=u;var ge=(s,t,u)=>$e(s,typeof t!="symbol"?t+"":t,u);import{f as n,S as e,bs as S,aY as A,bj as le,bk as B,aO as Q,ay as Pe,bY as Ke,bD as ve,a$ as Be,b2 as ue,cj as ke,ck as oe,av as D,ci as de,az as Ge,bg as J,bJ as We,bK as Me,bO as ae,aT as K,bA as Ue,bH as ne,aL as $,aM as Ae,aV as He,aN as Te,b$ as Ve,cl as Ye,b0 as Qe,aU as Xe,cm as Je,bh as ye,a_ as Re,au as qe,aK as Fe,b4 as Ze,aP as Ee,U as Oe,aC as es,aI as ss,bi as xe,bI as ts,bp as be,ch as Se}from"./antd-Afm2kNt7.js";import{u as R,T as De,ai as as,z as rs,e as me,D as ls,d as is,B as ns,r as Ce,w as os,b as ds,a as cs,h as us,C as ms,x as ie}from"./index-DQXwuKC5.js";import{w as z}from"./website-api-CiGWjL7L.js";import{N as fe}from"./NButton-DoPcvKBF.js";import{c as ps}from"./charts-DWBuA5Za.js";import{a as hs}from"./asset-api-1abjsV5s.js";import{a as gs}from"./agent-gateway-api-C9ZaxlKW.js";import{s as xs}from"./ssh-gateway-api-D4569Eil.js";import{g as bs}from"./gateway-group-api-nxpckHkj.js";import{U as fs}from"./upload-D4kD-YfJ.js";import{S as _s}from"./server-DnjIV_zW.js";import{c as ys}from"./certificate-api-CCI2Z4Qf.js";import{P as ws,C as js,a as vs,b as ks,c as Ss,A as Cs}from"./AssetGatewayChoose-4vUjpk3C.js";import{g as Ns}from"./sort-BOdE-yay.js";import"./monaco-CA9D5Osg.js";import"./xterm-Buno8AXJ.js";const{Option:X}=Pe,{Text:ce}=Be,Is=()=>{const{t:s}=R(),[t,u]=n.useState(!1),r=(a,y,h,b)=>e.jsx(S.List,{name:a,children:(c,{add:v,remove:f})=>e.jsxs(e.Fragment,{children:[e.jsx(le,{align:"middle",style:{marginBottom:8},children:e.jsxs(B,{children:[e.jsx(ce,{strong:!0,children:y}),e.jsx(ue,{title:h,children:e.jsx(ke,{style:{marginLeft:8,cursor:"pointer"}})})]})}),c.map(({key:x,name:_,...m})=>e.jsxs(le,{gutter:8,style:{marginBottom:8},children:[e.jsx(B,{flex:"1",children:e.jsx(S.Item,{...m,name:[_,"key"],rules:[{required:!0,message:s("assets.website_response_modify.header_key_required")}],style:{marginBottom:0},children:e.jsx(Q,{placeholder:s("assets.header_key")})})}),e.jsx(B,{flex:"1",children:e.jsx(S.Item,{...m,name:[_,"value"],rules:[{required:!0,message:s("assets.website_response_modify.header_value_required")}],style:{marginBottom:0},children:e.jsx(Q,{placeholder:s("assets.header_value")})})}),e.jsx(B,{children:e.jsx(oe,{onClick:()=>f(_),style:{color:"#ff4d4f",fontSize:"16px"}})})]},x)),e.jsx(S.Item,{children:e.jsx(D,{type:"dashed",onClick:()=>v(),block:!0,icon:e.jsx(de,{}),style:{marginTop:8},children:b})})]})});return e.jsx("div",{style:{},children:e.jsx(S.List,{name:"modifyRules",children:(a,{add:y,remove:h})=>e.jsxs(e.Fragment,{children:[a.map(({key:b,name:c,...v})=>e.jsx(A,{type:"inner",title:e.jsx(S.Item,{...v,name:[c,"name"],rules:[{required:!0,message:s("assets.website_response_modify.rule_name_required")}],style:{marginBottom:0},children:e.jsx(Q,{placeholder:s("assets.website_response_modify.rule_name_placeholder")})}),extra:a.length>0?e.jsx(oe,{onClick:()=>h(c),style:{fontSize:"16px",color:"#ff4d4f",marginLeft:8,cursor:"pointer"}}):null,style:{marginBottom:24},children:e.jsxs(le,{gutter:24,children:[e.jsx(B,{span:12,children:e.jsxs(A,{title:s("assets.website_response_modify.match_conditions"),size:"small",style:{marginBottom:16},children:[e.jsx(S.Item,{...v,name:[c,"match","path"],label:s("assets.website_response_modify.match_path"),tooltip:s("assets.website_response_modify.match_path_tip"),children:e.jsx(Q,{placeholder:"/hello"})}),e.jsx(S.Item,{...v,name:[c,"match","method"],label:s("assets.website_response_modify.match_method"),tooltip:s("assets.website_response_modify.match_method_tip"),children:e.jsxs(Pe,{placeholder:s("assets.website_response_modify.match_method_placeholder"),allowClear:!0,children:[e.jsx(X,{value:"GET",children:"GET"}),e.jsx(X,{value:"POST",children:"POST"}),e.jsx(X,{value:"PUT",children:"PUT"}),e.jsx(X,{value:"DELETE",children:"DELETE"}),e.jsx(X,{value:"PATCH",children:"PATCH"}),e.jsx(X,{value:"HEAD",children:"HEAD"}),e.jsx(X,{value:"OPTIONS",children:"OPTIONS"})]})}),e.jsx(S.Item,{...v,name:[c,"match","status"],label:s("assets.website_response_modify.match_status"),tooltip:s("assets.website_response_modify.match_status_tip"),children:e.jsx(Ke,{min:0,max:599,placeholder:"200",style:{width:"100%"}})})]})}),e.jsx(B,{span:12,children:e.jsxs(A,{title:s("assets.website_response_modify.actions_title"),size:"small",children:[e.jsx(ve,{orientation:"left",style:{margin:"12px 0"},children:e.jsx(ce,{strong:!0,children:s("assets.website_response_modify.header_operations")})}),r([c,"actions","set_headers"],s("assets.website_response_modify.set_headers_label"),s("assets.website_response_modify.set_headers_tip"),s("assets.website_response_modify.add_set_headers")),r([c,"actions","add_headers"],s("assets.website_response_modify.add_headers_label"),s("assets.website_response_modify.add_headers_tip"),s("assets.website_response_modify.add_add_headers")),e.jsx(S.List,{name:[c,"actions","remove_headers"],children:(f,{add:x,remove:_})=>e.jsxs(e.Fragment,{children:[e.jsx(le,{align:"middle",style:{marginBottom:8},children:e.jsxs(B,{children:[e.jsx(ce,{strong:!0,children:s("assets.website_response_modify.remove_headers_label")}),e.jsx(ue,{title:s("assets.website_response_modify.remove_headers_tip"),children:e.jsx(ke,{style:{marginLeft:8,cursor:"pointer"}})})]})}),f.map(({key:m,name:o,...p})=>e.jsxs(le,{gutter:8,style:{marginBottom:8},children:[e.jsx(B,{flex:"1",children:e.jsx(S.Item,{...p,name:[o],rules:[{required:!0,message:s("assets.website_response_modify.remove_header_name_required")}],style:{marginBottom:0},children:e.jsx(Q,{placeholder:s("assets.website_response_modify.remove_header_name_placeholder")})})}),e.jsx(B,{children:e.jsx(oe,{onClick:()=>_(o),style:{color:"#ff4d4f",fontSize:"16px"}})})]},m)),e.jsx(S.Item,{children:e.jsx(D,{type:"dashed",onClick:()=>x(),block:!0,icon:e.jsx(de,{}),style:{marginTop:8},children:s("assets.website_response_modify.add_remove_header_button")})})]})}),e.jsx(ve,{orientation:"left",style:{margin:"12px 0"},children:e.jsx(ce,{strong:!0,children:s("assets.website_response_modify.body_replace_title")})}),e.jsx(S.List,{name:[c,"actions","body_replace"],children:(f,{add:x,remove:_})=>e.jsxs(e.Fragment,{children:[f.map(({key:m,name:o,...p})=>e.jsxs(A,{size:"small",title:s("assets.website_response_modify.replace_rule_title",{index:o+1}),extra:e.jsx(oe,{onClick:()=>_(o),style:{color:"#ff4d4f"}}),style:{marginBottom:12},children:[e.jsx(S.Item,{...p,name:[o,"search"],label:s("assets.website_response_modify.search_text_label"),rules:[{required:!0,message:s("assets.website_response_modify.search_text_required")}],children:e.jsx(Q,{placeholder:s("assets.website_response_modify.search_text_placeholder")})}),e.jsx(S.Item,{...p,name:[o,"is_regex"],label:s("assets.website_response_modify.use_regex_label"),valuePropName:"checked",tooltip:s("assets.website_response_modify.use_regex_tip"),children:e.jsx(Ge,{})}),e.jsx(S.Item,{...p,name:[o,"replace"],label:s("assets.website_response_modify.replace_text_label"),rules:[{required:!0,message:s("assets.website_response_modify.replace_text_required")}],children:e.jsx(Q,{placeholder:s("assets.website_response_modify.replace_text_placeholder")})})]},m)),e.jsx(S.Item,{children:e.jsx(D,{type:"dashed",onClick:()=>x(),block:!0,icon:e.jsx(de,{}),children:s("assets.website_response_modify.add_replace_rule")})})]})})]})})]})},b)),e.jsx(S.Item,{children:e.jsx(D,{type:"dashed",onClick:()=>y(),block:!0,icon:e.jsx(de,{}),size:"large",children:s("assets.website_response_modify.add_modify_rule")})})]})})})},Ps=s=>{const t=new URL(s),u=t.protocol.replace(":",""),r=t.hostname,a=t.port||(u==="http"?"80":u==="https"?"443":"");return{scheme:u,host:r,port:a}},As=s=>s.size>1024*1024?(J.error("Image must be smaller than 1MB!"),!1):!0,Ts=({logo:s,onLogoChange:t,logosData:u})=>{const{t:r}=R(),a=({file:y,onSuccess:h})=>{const b=new FileReader;b.onloadend=()=>{const c=b.result;t(c),h?.(c)},b.readAsDataURL(y)};return e.jsx(S.Item,{name:"logo",label:r("assets.logo"),children:e.jsx(We,{placement:"bottomRight",content:e.jsxs("div",{className:"grid grid-cols-8 gap-2",children:[u?.map(y=>e.jsx("div",{className:"h-10 w-10 rounded-lg cursor-pointer border p-2 hover:border-blue-500",onClick:()=>t(y.data),children:e.jsx("img",{src:y.data,alt:y.name,className:"w-full h-full object-contain"})},y.name)),e.jsx("div",{className:"h-10 w-10 rounded-lg cursor-pointer border p-2 border-dashed border-red-500 flex items-center justify-center hover:bg-red-50",onClick:()=>t(""),children:e.jsx(De,{className:"text-red-500 h-4 w-4"})}),e.jsx(Me,{maxCount:1,showUploadList:!1,customRequest:a,beforeUpload:As,children:e.jsx("div",{className:"h-10 w-10 rounded-lg cursor-pointer border p-2 border-dashed border-blue-500 flex items-center justify-center hover:bg-blue-50",children:e.jsx(fs,{className:"text-blue-500 h-4 w-4"})})})]}),trigger:"click",children:e.jsx("div",{className:"w-10 h-10 border border-dashed rounded-lg p-2 flex items-center justify-center cursor-pointer border-blue-200 dark:border-blue-700 hover:border-blue-500",children:s&&e.jsx("img",{src:s,alt:"logo",className:"w-full h-full object-contain"})})})})},Rs=({logo:s,onLogoChange:t,logosData:u})=>{const{t:r}=R(),[a,y]=n.useState(!1),h=[{value:"http",label:"HTTP"},{value:"https",label:"HTTPS"}],b=async()=>(await gs.getAll()).map(o=>({label:o.name,value:o.id})),c=async()=>(await xs.getAll()).map(o=>({label:o.name,value:o.id})),v=async()=>(await bs.getAll()).map(o=>({label:o.name,value:o.id})),f=m=>m.map(o=>({title:o.title,value:o.key,children:o.children?f(o.children):[]})),x=async()=>{const m=await z.getGroups();return f(m)},_=async(m,o,p)=>{if(!o){J.warning(r("assets.forward_host_or_ip")+" "+r("general.required"));return}const P=`${m||"http"}://${o}${p?":"+p:""}`;y(!0);try{const q=await z.getFavicon(P);t(q),J.success(r("general.success"))}catch{J.error(r("assets.auto_fetch_favicon_failed"))}finally{y(!1)}};return e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsxs("div",{className:"flex flex-col gap-4 rounded-lg bg-slate-50/60 p-4 dark:bg-slate-900/40 md:flex-row md:items-center md:justify-between",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx(Ts,{logo:s,onLogoChange:t,logosData:u}),e.jsx("div",{className:"text-xs text-slate-500",children:r("assets.logo")})]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[e.jsx(ae,{label:r("general.enabled"),name:"enabled",rules:[{required:!0}],fieldProps:{checkedChildren:r("general.yes"),unCheckedChildren:r("general.no")}}),e.jsx(ae,{label:r("assets.disable_access_log"),name:"disableAccessLog",tooltip:r("assets.disable_access_log_tip"),fieldProps:{checkedChildren:r("general.yes"),unCheckedChildren:r("general.no")}})]})]}),e.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2",children:[e.jsx(K,{label:r("general.name"),name:"name",rules:[{required:!0}],placeholder:r("general.name")}),e.jsx(Ue,{label:r("assets.group"),name:"groupId",request:x,placeholder:r("gateway_group.name_placeholder"),fieldProps:{treeDefaultExpandAll:!0,allowClear:!0,showSearch:!0,treeNodeFilterProp:"title"}}),e.jsx(K,{label:r("assets.domain"),name:"domain",rules:[{required:!0}],extra:r("assets.domain_tip"),placeholder:"example.com"}),e.jsx(K,{label:r("assets.entrance"),name:"entrance",extra:r("assets.entrance_tip"),placeholder:"/admin"})]})]}),e.jsx(A,{size:"small",className:"bg-slate-50/60 dark:bg-slate-900/40",children:e.jsxs("div",{className:"",children:[e.jsxs("div",{className:"flex items-center justify-between mb-3",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(_s,{className:"h-4 w-4 text-blue-600"}),e.jsx("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-200",children:r("assets.target_server")})]}),e.jsx(ne,{name:["scheme","host","port"],children:({scheme:m,host:o,port:p})=>e.jsx(D,{size:"small",icon:e.jsx(as,{className:"h-3.5 w-3.5"}),loading:a,onClick:()=>_(m,o,p),children:r("assets.auto_fetch_favicon")})})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-12 gap-3",children:[e.jsx("div",{className:"md:col-span-2",children:e.jsx($,{label:r("assets.scheme"),name:"scheme",options:h,rules:[{required:!0}],formItemProps:{style:{margin:0}}})}),e.jsx("div",{className:"md:col-span-7",children:e.jsx(K,{label:r("assets.forward_host_or_ip"),name:"host",rules:[{required:!0}],placeholder:"192.168.1.100",formItemProps:{style:{margin:0}}})}),e.jsx("div",{className:"md:col-span-3",children:e.jsx(Ae,{name:"port",label:r("assets.forward_port"),min:1,max:65535,fieldProps:{precision:0},placeholder:"80",rules:[{required:!0}],formItemProps:{style:{margin:0}}})})]})]})}),e.jsx(He.Group,{label:r("assets.gateway_type"),name:"gatewayType",options:[{label:r("assets.no_gateway"),value:""},{label:r("menus.gateway.submenus.ssh_gateway"),value:"ssh"},{label:r("menus.gateway.submenus.agent_gateway"),value:"agent"},{label:r("menus.gateway.submenus.gateway_group"),value:"group"}]}),e.jsx(ne,{name:["gatewayType"],children:({gatewayType:m})=>m==="ssh"?e.jsx($,{label:r("menus.gateway.submenus.ssh_gateway"),name:"gatewayId",request:c,params:{gatewayType:m},showSearch:!0,rules:[{required:!0}]},"ssh"):m==="agent"?e.jsx($,{label:r("menus.gateway.submenus.agent_gateway"),name:"gatewayId",request:b,params:{gatewayType:m},showSearch:!0,rules:[{required:!0}]},"agent"):m==="group"?e.jsx($,{label:r("menus.gateway.submenus.gateway_group"),name:"gatewayId",request:v,params:{gatewayType:m},showSearch:!0,rules:[{required:!0}]},"group"):null})]})},qs=()=>{const{t:s}=R(),t=({listDom:u,action:r})=>e.jsx(A,{size:"small",className:"mb-3 bg-slate-50/60 dark:bg-slate-900/40",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"flex-1",children:u}),e.jsx("div",{className:"flex-shrink-0",children:r})]})});return e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsx(A,{size:"small",className:"bg-sky-50/60 dark:bg-sky-900/20",children:e.jsx(Te,{name:"preserveHost",label:s("assets.preserve_host"),extra:s("assets.preserve_host_tip")})}),e.jsx("div",{children:e.jsx(Ve,{name:"headers",label:s("assets.custom_header"),initialValue:[],tooltip:s("assets.custom_header_tip"),itemRender:t,children:e.jsx(Ye,{children:e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:[e.jsx(K,{name:"name",label:s("assets.header_key"),placeholder:"Content-Type"}),e.jsx(K,{name:"value",label:s("assets.header_value"),placeholder:"application/json"})]})},"group")})})]})},Fs=()=>{const{t:s}=R(),t=async()=>(await ys.getAll()).map(r=>({label:r.commonName,value:r.id}));return e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsx(A,{size:"small",className:"bg-slate-50/60 dark:bg-slate-900/40",children:e.jsx(ae,{label:s("general.enabled"),name:["cert","enabled"],fieldProps:{checkedChildren:s("general.yes"),unCheckedChildren:s("general.no")}})}),e.jsx(ne,{name:["cert","enabled"],children:({cert:u})=>u?.enabled?e.jsx(A,{size:"small",className:"bg-emerald-50/60 dark:bg-emerald-900/20",children:e.jsx($,{label:s("assets.cert"),name:["cert","certId"],rules:[{required:!0}],request:t,placeholder:s("assets.cert"),showSearch:!0})}):null})]})},Es=({timeLimit:s,onTimeLimitChange:t,expiredAt:u,onExpiredAtChange:r})=>{const{t:a}=R(),y=h=>h&&hh?.public?.enabled?e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsxs(A,{size:"small",className:"bg-slate-50/60 dark:bg-slate-900/40",children:[e.jsx(Xe,{label:a("assets.limit_ip"),name:["public","ip"],extra:a("assets.limit_ip_tip"),placeholder:"192.168.1.0/24",fieldProps:{rows:3}}),e.jsxs("div",{className:"grid grid-cols-1 gap-3 md:grid-cols-3",children:[e.jsx($,{label:a("assets.limit_country"),name:["public","countries"],extra:a("assets.limit_country_tip"),placeholder:a("assets.limit_country_placeholder"),fieldProps:{mode:"tags"},tooltip:a("assets.limit_geo_input_tip")}),e.jsx($,{label:a("assets.limit_province"),name:["public","provinces"],extra:a("assets.limit_province_tip"),placeholder:a("assets.limit_province_placeholder"),fieldProps:{mode:"tags"},tooltip:a("assets.limit_geo_input_tip")}),e.jsx($,{label:a("assets.limit_city"),name:["public","cities"],extra:a("assets.limit_city_tip"),placeholder:a("assets.limit_city_placeholder"),fieldProps:{mode:"tags"},tooltip:a("assets.limit_geo_input_tip")})]}),e.jsxs("div",{className:"grid grid-cols-1 gap-3 md:grid-cols-2",children:[e.jsx($,{label:a("assets.public_header_whitelist"),name:["public","headerWhitelist"],extra:a("assets.public_header_whitelist_tip"),placeholder:a("assets.public_header_whitelist_placeholder"),fieldProps:{mode:"tags",tokenSeparators:[","]}}),e.jsx($,{label:a("assets.public_path_whitelist"),name:["public","pathWhitelist"],extra:a("assets.public_path_whitelist_tip"),placeholder:a("assets.public_path_whitelist_placeholder"),fieldProps:{mode:"tags",tokenSeparators:[","]}})]}),e.jsx(Te,{label:a("assets.limit_time_enabled"),name:["public","timeLimit"],valuePropName:"checked",fieldProps:{checked:s,onChange:b=>t(b.target.checked)}}),s&&e.jsx(Je,{label:a("assets.limit_time"),name:["public","expiredAt"],fieldProps:{allowClear:!0,disabledDate:y,value:u,onChange:r}})]}),e.jsx(A,{size:"small",className:"bg-rose-50/60 dark:bg-rose-900/20",children:e.jsx(K.Password,{label:a("assets.limit_password"),name:["public","password"],extra:a("assets.limit_password_tip"),placeholder:"password123",fieldProps:{autoComplete:"new-password",name:"public-access-password",spellCheck:!1}})})]}):null})]})},Os=()=>{const{t:s}=R();return e.jsx("div",{className:"flex flex-col gap-4",children:e.jsxs(A,{size:"small",className:"bg-emerald-50/60 dark:bg-emerald-900/20",children:[e.jsx(ae,{label:s("assets.temp_allow_enabled"),name:["tempAllow","enabled"],fieldProps:{checkedChildren:s("general.yes"),unCheckedChildren:s("general.no")}}),e.jsx(ne,{name:["tempAllow","enabled"],children:t=>t?.tempAllow?.enabled?e.jsxs("div",{className:"grid grid-cols-1 gap-3 md:grid-cols-2",children:[e.jsx(Ae,{label:s("assets.temp_allow_duration"),name:["tempAllow","durationMinutes"],extra:s("assets.temp_allow_duration_tip"),initialValue:5,fieldProps:{min:1},addonAfter:s("general.minute")}),e.jsx(ae,{label:s("assets.temp_allow_auto_renew"),name:["tempAllow","autoRenew"],fieldProps:{checkedChildren:s("general.yes"),unCheckedChildren:s("general.no")},extra:s("assets.temp_allow_auto_renew_tip")})]}):null})]})})},Ds=({open:s,onClose:t,onSuccess:u,id:r})=>{const{t:a}=R(),{license:y}=rs(),h=n.useRef(null),[b,c]=n.useState(!1),[v,f]=n.useState(),[x,_]=n.useState(!1),[m,o]=n.useState(),p=me({queryKey:["get-logos"],queryFn:hs.getLogos});n.useEffect(()=>{s||(o(void 0),c(!1),f(void 0),_(!1))},[s]);const P=async()=>{if(!r)return{enabled:!0,scheme:"http",cert:{enabled:!1},public:{enabled:!1,expiredAt:0,countries:[],provinces:[],cities:[],headerWhitelist:[],pathWhitelist:[]},tempAllow:{enabled:!1,durationMinutes:5,autoRenew:!1}};try{const w=await z.getById(r),{scheme:k,host:V,port:ee}=Ps(w.targetUrl);if(o(w.logo),w.public?.expiredAt&&w.public.expiredAt>0){const F=ye(w.public.expiredAt);f(F),c(!0)}else f(void 0),c(!1);return{...w,scheme:k,host:V,port:parseInt(ee,10)}}catch(w){throw console.error("Failed to load website data:",w),J.error(a("assets.website_load_failed")),w}},q=w=>{c(w),w||f(void 0)},L=w=>{f(w||void 0)},Z=async w=>{_(!0);try{const k={...w,targetUrl:`${w.scheme}://${w.host}:${w.port}`,logo:m};b&&v&&(k.public={...k.public,expiredAt:v.valueOf()}),r?await z.updateById(r,k):await z.create(k),J.success(a("general.success")),u?.(),t()}catch(k){console.error("Save failed:",k),J.error(a("general.error"))}finally{_(!1)}},G=()=>{h.current?.validateFields().then(Z)},re=[{key:"general",label:a("assets.general"),children:e.jsx(Rs,{logo:m,onLogoChange:o,logosData:p.data}),forceRender:!0},{key:"headers",label:a("assets.custom_header"),children:e.jsx(qs,{}),forceRender:!0},{key:"cert",label:a("assets.custom_certificate"),children:e.jsx(Fs,{}),forceRender:!0},{key:"modify-response",label:a("assets.modify_response"),children:e.jsx(ls,{disabled:y.isFree(),children:e.jsx(Is,{})}),forceRender:!0},{key:"public",label:a("assets.public"),children:e.jsx(Es,{timeLimit:b,onTimeLimitChange:q,expiredAt:v,onExpiredAtChange:L}),forceRender:!0},{key:"temp-allow",label:a("assets.temp_allow"),children:e.jsx(Os,{}),forceRender:!0}],H=e.jsxs(Re,{children:[e.jsx(D,{onClick:t,className:"border-gray-300",children:a("actions.cancel")}),e.jsx(D,{type:"primary",onClick:G,loading:x,className:"bg-blue-500 hover:bg-blue-600",children:a("actions.save")})]});return e.jsx(qe,{title:a(r?"actions.edit":"actions.new"),onClose:t,open:s,width:1200,className:"website-drawer",destroyOnHidden:!0,extra:H,children:e.jsx("div",{className:"h-full -mt-4",children:e.jsxs(Fe,{formRef:h,request:P,submitter:!1,autoComplete:"off",children:[e.jsx(K,{hidden:!0,name:"id"}),e.jsx(Ze,{items:re,defaultActiveKey:"general",className:"h-full",style:{marginTop:"0"},tabBarStyle:{marginBottom:"16px"}})]})})})},zs=({open:s,onClose:t,websiteIds:u,onSuccess:r})=>{const{t:a}=R(),[y,h]=n.useState([]);let[b,c]=n.useState([]),[v,f]=n.useState(""),x=me({queryKey:["assets/groups"],queryFn:z.getGroups});n.useEffect(()=>{s?x.refetch():f("")},[s]),n.useEffect(()=>{if(Array.isArray(x.data)&&x.data.length>0){h(x.data);let p=_(x.data);c(p)}},[x.data]);const _=p=>{let P=[];return Array.isArray(p)&&p.forEach(q=>{P.push(q.key),q.children&&(P=P.concat(_(q.children)))}),P},m=p=>{z.changeGroup({websiteIds:u,groupId:p}).then(()=>{r&&r(),t()})},o=()=>{t()};return e.jsx(qe,{title:a("assets.group"),open:s,onClose:o,children:e.jsx(Ee,{blockNode:!0,treeData:y,expandedKeys:b,onExpand:c,selectedKeys:[v],style:{padding:4},onSelect:p=>{p&&p.length>0&&(f(p[0]),m(p[0]))}})})},Ls=({open:s,handleOk:t,handleCancel:u,confirmLoading:r,op:a,node:y={title:"",key:"",children:[]}})=>{const h=n.useRef(null);let{t:b}=R();const c=n.useRef(null);n.useEffect(()=>{s&&setTimeout(()=>{c.current?.focus()},300)},[s]);const v=async()=>y,f=()=>{h.current?.validateFields().then(async x=>{t(x)})};return e.jsx(Oe,{title:b(a==="edit"?"websites.edit_group":"websites.add_group"),open:s,maskClosable:!1,destroyOnHidden:!0,onOk:()=>{f()},onCancel:()=>{u()},confirmLoading:r,children:e.jsxs(Fe,{formRef:h,request:v,submitter:!1,autoFocus:!0,children:[e.jsx(K,{hidden:!0,name:"key"}),e.jsx(K,{name:"title",label:b("gateway_group.name"),placeholder:b("gateway_group.name_placeholder"),rules:[{required:!0,message:b("websites.group_name_required")}],fieldProps:{ref:c,onPressEnter:x=>{f()}}})]})})},Ne=({selected:s,onSelect:t})=>{let{t:u}=R();const[r,a]=n.useState([]);let[y,h]=n.useState(!1),[b,c]=n.useState(),[v,f]=n.useState(),[x,_]=n.useState(),[m,o]=n.useState([]),[p,P]=n.useState([s]),[q]=is(),L=me({queryKey:["websites/tree"],queryFn:z.getGroups});n.useEffect(()=>{if(Array.isArray(L.data)&&L.data.length>0){a(L.data);let d=Z(L.data);o(d)}},[L.data]);const Z=d=>{let g=[];return Array.isArray(d)&&d.forEach(I=>{g.push(I.key),I.children&&(g=g.concat(Z(I.children)))}),g},G=d=>{z.setGroups(d).then(()=>{a(d)})},re=d=>{const g=d.node.key,I=d.dragNode.key;if(I==="default")return;const j=d.node.pos.split("-"),pe=d.dropPosition-Number(j[j.length-1]),W=(C,E,Y)=>{for(let O=0;O{Y.splice(E,1),se=C}),!d.dropToGap)W(M,g,C=>{C.children=C.children||[],C.children.unshift(se)});else{let C=[],E;W(M,g,(Y,O,he)=>{C=he,E=O}),pe===-1?C.splice(E,0,se):C.splice(E+1,0,se)}G(M)},H=(d,g,I)=>g.map(j=>j.key===d?(j.title=I.title,j):(j.children&&(j.children=H(d,j.children,I)),j)),w=(d,g,I)=>d?g.map(j=>(j.key===d&&(j.children=j.children?[...j.children,I]:[I]),j.children&&(j.children=w(d,j.children,I)),j)):(g.push(I),g),[k,V]=n.useState(null),ee=[{label:u("actions.new"),key:"add",icon:e.jsx(ws,{className:"h-4 w-4"}),onClick:()=>{c(k.node.key),f(void 0),h(!0),_("add")}},{label:u("actions.edit"),key:"edit",icon:e.jsx(js,{className:"h-4 w-4"}),onClick:()=>{c(k.node.key),f(k.node),h(!0),_("edit")}},{label:u("actions.delete"),key:"delete",danger:!0,icon:e.jsx(De,{className:"h-4 w-4"}),onClick:()=>{z.deleteGroup(k.node.key).then(()=>{L.refetch()})}}],F=({event:d,node:g})=>{g.key!=="default"&&(d.preventDefault(),V({pageX:d.pageX,pageY:d.pageY,node:g}))};return e.jsxs("div",{children:[e.jsx("div",{className:"px-4 pt-4 flex items-center justify-between",children:e.jsxs("div",{className:"font-medium text-[15px] flex items-center gap-2",children:[e.jsx(ue,{title:u("actions.new"),children:e.jsx(vs,{className:"h-4 w-4 cursor-pointer",onClick:()=>{c(void 0),f(void 0),h(!0),_("add")}})}),e.jsx(ue,{title:u("websites.group_tip"),children:e.jsx("div",{className:"cursor-pointer",children:u("assets.group")})})]})}),e.jsx(Ee,{draggable:!0,blockNode:!0,onDrop:re,treeData:r,expandedKeys:m,onExpand:o,style:{backgroundColor:q.isDark?q.backgroundColor:"#F9FAFB",padding:8},selectedKeys:p,onSelect:d=>{P(d),d.length>0?t(d[0]):t("")},onRightClick:F}),k&&e.jsx(es,{menu:{items:ee},open:!0,trigger:["contextMenu"],onOpenChange:d=>!d&&V(null),overlayStyle:{position:"absolute",left:k.pageX,top:k.pageY},children:e.jsx("div",{style:{position:"fixed",top:k.pageY,left:k.pageX,width:0,height:0}})}),e.jsx(Ls,{op:x,open:y,confirmLoading:!1,node:v,handleCancel:()=>{h(!1),c(void 0)},handleOk:d=>{let g=[];d.key?g=H(d.key,r,d):(d.key="WG_"+ns(),d.children=[],g=w(b,r,d)),console.log("newTreeData",b,d,g),G([...g]),h(!1),c(void 0)}})]})};class $s{constructor(){ge(this,"list",async t=>await Ce.get(`/admin/website-temp-allow?websiteId=${t}`));ge(this,"remove",async(t,u)=>await Ce.delete(`/admin/website-temp-allow?websiteId=${t}&ip=${encodeURIComponent(u)}`))}}const Ie=new $s,_e=z,lt=()=>{const{isMobile:s}=os(),{t}=R(),{message:u,modal:r}=ss.useApp(),a=n.useRef(null);let[y,h]=n.useState(!1),[b,c]=n.useState(),[v,f]=ds();const x=n.useMemo(()=>{const l={};return v.forEach((i,T)=>{l[T]=i}),l},[v]),_=n.useCallback(l=>{const i={...x};Object.entries(l).forEach(([N,te])=>{te?i[N]=te:delete i[N]}),!(Object.keys(i).length===Object.keys(x).length&&Object.entries(i).every(([N,te])=>x[N]===te))&&f(i)},[x,f]);let[m,o]=n.useState([]),[p,P]=n.useState(v.get("groupId")||""),[q,L]=n.useState([]);const[Z,G]=n.useState(!1),[re,H]=n.useState(!1),[w,k]=n.useState(""),[V,ee]=n.useState(!1),[F,d]=n.useState(null),[g,I]=n.useState(()=>{const l=localStorage.getItem("website-tree-collapsed");return l?JSON.parse(l):!1});let j=cs();const pe=n.useRef(null),W=x.websiteId;n.useEffect(()=>{localStorage.setItem("website-tree-collapsed",JSON.stringify(g))},[g]),n.useEffect(()=>{W&&(h(!0),c(W))},[W]);const M=me({queryKey:["website-temp-allow",F?.id],queryFn:()=>Ie.list(F.id),enabled:V&&!!F?.id}),se=us({mutationFn:l=>_e.updateSortPosition(l),onSuccess:()=>{u.success(t("general.success"))}}),C=(l,i,T)=>{console.log("Sort operation",{beforeIndex:l,afterIndex:i}),L(T);const N={id:T[i].id,beforeId:i>0?T[i-1].id:"",afterId:i{h(!0),c(l),_({websiteId:l})},Y=l=>{d(l),ee(!0)},O=()=>{ee(!1),d(null)},he=l=>{if(!l||l<=0)return"-";if(l<60)return`${l}s`;const i=Math.floor(l/60),T=l%60;if(i<60)return`${i}m ${T}s`;const U=Math.floor(i/60),N=i%60;return`${U}h ${N}m`},ze=[{title:"IP",dataIndex:"ip",key:"ip",width:160},{title:t("assets.temp_allow_expires"),dataIndex:"expiresAt",key:"expiresAt",width:200,render:l=>l?ye(l).format("YYYY-MM-DD HH:mm:ss"):"-"},{title:t("assets.temp_allow_remaining"),dataIndex:"remainingSeconds",key:"remainingSeconds",width:120,render:l=>he(l)},{title:t("actions.label"),key:"option",width:100,render:(l,i)=>e.jsx(D,{type:"link",danger:!0,size:"small",onClick:()=>{r.confirm({title:t("general.confirm_delete"),okText:t("actions.delete"),okButtonProps:{danger:!0},onOk:async()=>{F&&(await Ie.remove(F.id,i.ip),M.refetch())}})},children:t("actions.delete")})}];n.useEffect(()=>{_({groupId:p||void 0}),a.current?.setPageInfo({pageSize:10,current:1}),a.current?.reload()},[_,p]);const we={columns:[{title:t("assets.sort"),dataIndex:"sort",width:60,className:"drag-visible",hideInSearch:!0},{title:t("assets.logo"),dataIndex:"logo",hideInSearch:!0,width:s?40:60,render:(l,i)=>i.logo?e.jsx("img",{src:i.logo,alt:i.name,className:"w-6 h-6"}):e.jsx("div",{className:ps("w-6 h-6 rounded flex items-center justify-center font-bold text-white text-xs",ms("http")),children:i.name[0]})},{title:t("general.name"),dataIndex:"name",hideInSearch:!0,width:120,render:(l,i)=>e.jsx("span",{className:"cursor-pointer text-blue-600 hover:underline",onClick:()=>E(i.id),children:l})},{title:t("assets.group"),dataIndex:"groupFullName",key:"groupFullName",width:s?80:150,render:(l,i)=>e.jsx("div",{className:ie("cursor-pointer hover:text-blue-500 underline",s&&"text-xs line-clamp-2"),onClick:()=>{k(i.id),G(!0)},children:l||t("assets.default_group")}),hideInSearch:!0},{title:t("general.enabled"),dataIndex:"enabled",hideInSearch:!0,width:50,hideInTable:s,render:l=>l===!0?e.jsx(xe,{color:"green-inverse",bordered:!1,children:t("general.yes")}):e.jsx(xe,{color:"gray",bordered:!1,children:t("general.no")})},{title:t("assets.domain"),dataIndex:"domain",key:"domain",hideInSearch:!0,width:s?150:300,render:(l,i)=>e.jsx("div",{children:e.jsx(xe,{bordered:!1,color:"blue",className:ie(s&&"text-xs"),children:s?e.jsx("div",{className:"line-clamp-2",children:i.domain}):i.domain+" -> "+i.targetUrl})})},{title:t("general.created_at"),key:"createdAt",dataIndex:"createdAt",hideInSearch:!0,hideInTable:s,width:160,valueType:"dateTime"},{title:t("actions.label"),valueType:"option",key:"option",width:160,render:(l,i,T,U)=>[e.jsx(fe,{onClick:()=>{let N=`/browser?websiteId=${i.id}&t=${new Date().getTime()}`;window.open(N,"_blank")},children:s?t("assets.access").substring(0,2):t("assets.access")},"access"),e.jsx(ts,{onSelect:N=>{switch(N){case"edit":E(i.id);break;case"temp-allow":Y(i);break;case"view-authorised":j(`/authorised-website?websiteId=${i.id}`);break;case"delete":r.confirm({title:t("general.confirm_delete"),okText:t("actions.delete"),okButtonProps:{danger:!0},onOk:async()=>{x.websiteId===i.id&&(_({websiteId:void 0}),h(!1),c(void 0)),await _e.deleteById(i.id),a.current?.reload()}});break}},menus:[{key:"edit",name:t("actions.edit")},{key:"temp-allow",name:t("assets.temp_allow")},{key:"view-authorised",name:`${t("actions.authorized")}${t("menus.identity.submenus.user")}`},{key:"delete",name:t("actions.delete"),danger:!0}]},`website-actions-${i.id}`)]}],actionRef:a,request:async(l={},i,T)=>{let[U,N]=Ns(i);U===""&&N===""&&(U="desc",N="sort");let te={pageIndex:l.current,pageSize:l.pageSize,order:U,field:N,keyword:l.keyword,groupId:p||void 0},je=await _e.getPaging(te);return{data:je.items,success:!0,total:je.total}},dragSortKey:"sort",onDragSortEnd:C,rowSelection:{selections:[be.SELECTION_ALL,be.SELECTION_INVERT]},tableAlertOptionRender:({selectedRowKeys:l})=>e.jsxs(Re,{size:16,children:[e.jsx(fe,{onClick:()=>{o(l),k(l[0]),G(!0)},children:t("assets.change_group")}),e.jsx(fe,{onClick:()=>{o(l),H(!0)},children:t("assets.change_gateway")})]}),rowKey:"id",options:{search:!0},search:!1,pagination:{defaultPageSize:10,showSizeChanger:!s},dateFormatter:"string",headerTitle:t("menus.resource.submenus.website"),toolBarRender:()=>[e.jsx(D,{onClick:()=>{j("/authorised-website")},color:"purple",variant:"dashed",children:t("actions.authorized")},"auth"),p&&e.jsx(D,{onClick:()=>j(`/authorised-website?websiteGroupId=${p}`),children:`${t("authorised.label.website_group")}${t("actions.authorized")}`},"group-auth"),e.jsx(D,{type:"primary",onClick:()=>{_({websiteId:void 0}),c(void 0),h(!0)},children:t("actions.new")},"button")]};return e.jsxs("div",{children:[e.jsxs("div",{className:ie("px-4",s&&"px-2"),ref:pe,children:[s&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"mb-4 bg-white dark:bg-gray-800 rounded-lg",children:e.jsx(Ne,{selected:p,onSelect:P})}),e.jsx(Se,{...we})]}),!s&&e.jsxs("div",{className:ie("grid gap-4 transition-all duration-300",g?"grid-cols-[48px_1fr]":"grid-cols-[240px_1fr]"),children:[e.jsxs("div",{className:"relative rounded-md bg-gray-50 dark:bg-[#141414]",children:[!g&&e.jsx(Ne,{selected:p,onSelect:P}),e.jsx("div",{className:ie("absolute top-4 bg-gray-100 p-1.5 rounded dark:bg-gray-800 cursor-pointer hover:bg-gray-200 dark:hover:bg-gray-700 transition-colors",g?"left-2":"right-4"),onClick:()=>I(!g),children:g?e.jsx(ks,{className:"w-4 h-4"}):e.jsx(Ss,{className:"w-4 h-4"})})]}),e.jsx("div",{className:"overflow-hidden rounded-md",children:e.jsx(Se,{...we,scroll:{x:"max-content"}})})]})]}),e.jsx(Ds,{id:b,open:y,onClose:()=>{_({websiteId:void 0}),h(!1),c(void 0)},onSuccess:()=>{a.current?.reload()}}),e.jsx(zs,{open:Z,onClose:()=>{G(!1),k(""),o([])},websiteIds:m.length>0?m:[w],onSuccess:()=>{a.current?.reload(),o([])}}),e.jsx(Cs,{resourceIds:m,type:"website",open:re,onClose:()=>{H(!1),o([]),a.current?.reload()}}),e.jsx(Oe,{title:F?`${F.name} · ${t("assets.temp_allow")}`:t("assets.temp_allow"),open:V,onCancel:O,footer:null,width:720,destroyOnHidden:!0,children:e.jsx(be,{rowKey:l=>`${l.websiteId}-${l.ip}`,loading:M.isFetching,dataSource:M.data||[],columns:ze,pagination:!1,size:"small"})})]})};export{lt as default}; diff --git a/server/resource/build/assets/WechatWorkCallback-BTjIgIlC.js b/server/resource/build/assets/WechatWorkCallback-BTjIgIlC.js deleted file mode 100644 index df39116e8..000000000 --- a/server/resource/build/assets/WechatWorkCallback-BTjIgIlC.js +++ /dev/null @@ -1 +0,0 @@ -import{f as n,S as t,ar as i,aZ as c}from"./antd-Afm2kNt7.js";import{b as l,a as u,u as m,h as g,l as d}from"./index-DQXwuKC5.js";import{w as x}from"./wechat-work-api-DdwWCsjx.js";import"./monaco-CA9D5Osg.js";import"./charts-DWBuA5Za.js";import"./xterm-Buno8AXJ.js";const v=()=>{const[a]=l(),s=u(),{t:r}=m(),o=g({mutationFn:x.login,onSuccess:e=>{d(e.token),sessionStorage.removeItem("current"),sessionStorage.removeItem("openKeys"),s("/")},onError:e=>{console.error("WeChat Work login failed:",e),s(`/login?error=${e.message}`)},retry:!1});return n.useEffect(()=>{const e=a.get("code");a.get("state"),e?o.mutate(e):s("/login?error=wechat_work_cancelled")},[]),o.isPending?t.jsx("div",{className:"h-screen w-screen flex items-center justify-center",children:t.jsxs("div",{className:"text-center",children:[t.jsx(i,{size:"large"}),t.jsx("div",{className:"mt-4 text-lg",children:r("account.login.processing")})]})}):o.isError?t.jsx("div",{className:"h-screen w-screen flex items-center justify-center",children:t.jsx(c,{status:"error",title:r("account.login.failed"),subTitle:r("account.login.wechat_work_error"),extra:[t.jsx("button",{className:"px-4 py-2 bg-blue-500 text-white rounded",onClick:()=>s("/login"),children:r("account.login.back_to_login")},"retry")]})}):null};export{v as default}; diff --git a/server/resource/build/assets/access-log-api-C2jjjGpZ.js b/server/resource/build/assets/access-log-api-C2jjjGpZ.js deleted file mode 100644 index bb995ac73..000000000 --- a/server/resource/build/assets/access-log-api-C2jjjGpZ.js +++ /dev/null @@ -1 +0,0 @@ -var p=Object.defineProperty;var c=(n,i,t)=>i in n?p(n,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[i]=t;var e=(n,i,t)=>c(n,typeof i!="symbol"?i+"":i,t);import{A as g,r}from"./index-DQXwuKC5.js";class u extends g{constructor(){super("admin/access-logs");e(this,"clear",async()=>{await r.post(`/${this.group}/clear`)});e(this,"getDomainStats",async(t=7)=>await r.get(`/${this.group}/domain-stats?days=${t}`));e(this,"getDailyStats",async(t=7)=>await r.get(`/${this.group}/daily-stats?days=${t}`));e(this,"getStatusCodeStats",async(t=7)=>await r.get(`/${this.group}/status-code-stats?days=${t}`));e(this,"getHourlyStats",async(t=7)=>await r.get(`/${this.group}/hourly-stats?days=${t}`));e(this,"getTotalStats",async(t=7)=>await r.get(`/${this.group}/total-stats?days=${t}`));e(this,"getWebsiteStats",async(t,s)=>{const a=new URLSearchParams({period:s});return t&&a.append("websiteId",t),await r.get(`/${this.group}/website-stats?${a}`)});e(this,"getWebsiteTrafficTrend",async(t,s)=>{const a=new URLSearchParams({period:s});return t&&a.append("websiteId",t),await r.get(`/${this.group}/website-traffic-trend?${a}`)});e(this,"getTopPages",async(t,s,a=10)=>{const o=new URLSearchParams({period:s,limit:a.toString()});return t&&o.append("websiteId",t),await r.get(`/${this.group}/top-pages?${o}`)});e(this,"getTopReferers",async(t,s,a=10)=>{const o=new URLSearchParams({period:s,limit:a.toString()});return t&&o.append("websiteId",t),await r.get(`/${this.group}/top-referers?${o}`)});e(this,"getRealtimeMetrics",async t=>{const s=new URLSearchParams;return t&&s.append("websiteId",t),await r.get(`/${this.group}/realtime-metrics?${s}`)});e(this,"getWebsiteHourlyStats",async(t,s)=>{const a=new URLSearchParams({period:s});return t&&a.append("websiteId",t),await r.get(`/${this.group}/website-hourly-stats?${a}`)});e(this,"getWebsiteStatusCodeStats",async(t,s)=>{const a=new URLSearchParams({period:s});return t&&a.append("websiteId",t),await r.get(`/${this.group}/website-status-code-stats?${a}`)})}}const m=new u;export{m as a}; diff --git a/server/resource/build/assets/agent-gateway-api-C9ZaxlKW.js b/server/resource/build/assets/agent-gateway-api-C9ZaxlKW.js deleted file mode 100644 index b8d6ceed4..000000000 --- a/server/resource/build/assets/agent-gateway-api-C9ZaxlKW.js +++ /dev/null @@ -1 +0,0 @@ -var i=Object.defineProperty;var n=(r,e,t)=>e in r?i(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var a=(r,e,t)=>n(r,typeof e!="symbol"?e+"":e,t);import{A as o,r as s}from"./index-DQXwuKC5.js";class g extends o{constructor(){super("admin/agent-gateways");a(this,"getRegisterParam",async()=>await s.get(`/${this.group}/get-register-param`));a(this,"setRegisterAddr",async t=>await s.post(`/${this.group}/set-register-addr?endpoint=${t}`));a(this,"getStat",async t=>await s.get(`/${this.group}/${t}/stat`));a(this,"updateSort",async t=>await s.post(`/${this.group}/sort`,t));a(this,"updateSortPosition",async t=>await s.post(`/${this.group}/sort`,t));a(this,"getVersion",async()=>await s.get("/agent/version"))}}let w=new g;export{w as a}; diff --git a/server/resource/build/assets/antd-Afm2kNt7.js b/server/resource/build/assets/antd-Afm2kNt7.js deleted file mode 100644 index 8817fa12b..000000000 --- a/server/resource/build/assets/antd-Afm2kNt7.js +++ /dev/null @@ -1,497 +0,0 @@ -function sj(e,t){for(var n=0;nr[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Ym=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Lr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function $Fe(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var a=!1;try{a=this instanceof r}catch{}return a?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}),n}var by={exports:{}},Wd={},yy={exports:{}},In={};var V6;function QW(){if(V6)return In;V6=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.iterator;function m(B){return B===null||typeof B!="object"?null:(B=f&&B[f]||B["@@iterator"],typeof B=="function"?B:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,b={};function p(B,K,W){this.props=B,this.context=K,this.refs=b,this.updater=W||g}p.prototype.isReactComponent={},p.prototype.setState=function(B,K){if(typeof B!="object"&&typeof B!="function"&&B!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,B,K,"setState")},p.prototype.forceUpdate=function(B){this.updater.enqueueForceUpdate(this,B,"forceUpdate")};function S(){}S.prototype=p.prototype;function C(B,K,W){this.props=B,this.context=K,this.refs=b,this.updater=W||g}var x=C.prototype=new S;x.constructor=C,h(x,p.prototype),x.isPureReactComponent=!0;var w=Array.isArray,$=Object.prototype.hasOwnProperty,E={current:null},P={key:!0,ref:!0,__self:!0,__source:!0};function M(B,K,W){var G,X={},Y=null,Z=null;if(K!=null)for(G in K.ref!==void 0&&(Z=K.ref),K.key!==void 0&&(Y=""+K.key),K)$.call(K,G)&&!P.hasOwnProperty(G)&&(X[G]=K[G]);var ee=arguments.length-2;if(ee===1)X.children=W;else if(1>>1,K=z[B];if(0>>1;Ba(X,H))Ya(Z,X)?(z[B]=Z,z[Y]=H,B=Y):(z[B]=X,z[G]=H,B=G);else if(Ya(Z,H))z[B]=Z,z[Y]=H,B=Y;else break e}}return V}function a(z,V){var H=z.sortIndex-V.sortIndex;return H!==0?H:z.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var c=[],u=[],d=1,f=null,m=3,g=!1,h=!1,b=!1,p=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(z){for(var V=n(u);V!==null;){if(V.callback===null)r(u);else if(V.startTime<=z)r(u),V.sortIndex=V.expirationTime,t(c,V);else break;V=n(u)}}function w(z){if(b=!1,x(z),!h)if(n(c)!==null)h=!0,j($);else{var V=n(u);V!==null&&k(w,V.startTime-z)}}function $(z,V){h=!1,b&&(b=!1,S(M),M=-1),g=!0;var H=m;try{for(x(V),f=n(c);f!==null&&(!(f.expirationTime>V)||z&&!N());){var B=f.callback;if(typeof B=="function"){f.callback=null,m=f.priorityLevel;var K=B(f.expirationTime<=V);V=e.unstable_now(),typeof K=="function"?f.callback=K:f===n(c)&&r(c),x(V)}else r(c);f=n(c)}if(f!==null)var W=!0;else{var G=n(u);G!==null&&k(w,G.startTime-V),W=!1}return W}finally{f=null,m=H,g=!1}}var E=!1,P=null,M=-1,O=5,T=-1;function N(){return!(e.unstable_now()-Tz||125B?(z.sortIndex=H,t(u,z),n(c)===null&&z===n(u)&&(b?(S(M),M=-1):b=!0,k(w,H-B))):(z.sortIndex=K,t(c,z),h||g||(h=!0,j($))),z},e.unstable_shouldYield=N,e.unstable_wrapCallback=function(z){var V=m;return function(){var H=m;m=V;try{return z.apply(this,arguments)}finally{m=H}}}})(xy)),xy}var G6;function tK(){return G6||(G6=1,Sy.exports=eK()),Sy.exports}var X6;function nK(){if(X6)return Aa;X6=1;var e=zu(),t=tK();function n(v){for(var y="https://reactjs.org/docs/error-decoder.html?invariant="+v,I=1;I"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),c=Object.prototype.hasOwnProperty,u=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,d={},f={};function m(v){return c.call(f,v)?!0:c.call(d,v)?!1:u.test(v)?f[v]=!0:(d[v]=!0,!1)}function g(v,y,I,A){if(I!==null&&I.type===0)return!1;switch(typeof y){case"function":case"symbol":return!0;case"boolean":return A?!1:I!==null?!I.acceptsBooleans:(v=v.toLowerCase().slice(0,5),v!=="data-"&&v!=="aria-");default:return!1}}function h(v,y,I,A){if(y===null||typeof y>"u"||g(v,y,I,A))return!0;if(A)return!1;if(I!==null)switch(I.type){case 3:return!y;case 4:return y===!1;case 5:return isNaN(y);case 6:return isNaN(y)||1>y}return!1}function b(v,y,I,A,J,te,ye){this.acceptsBooleans=y===2||y===3||y===4,this.attributeName=A,this.attributeNamespace=J,this.mustUseProperty=I,this.propertyName=v,this.type=y,this.sanitizeURL=te,this.removeEmptyString=ye}var p={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(v){p[v]=new b(v,0,!1,v,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(v){var y=v[0];p[y]=new b(y,1,!1,v[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(v){p[v]=new b(v,2,!1,v.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(v){p[v]=new b(v,2,!1,v,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(v){p[v]=new b(v,3,!1,v.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(v){p[v]=new b(v,3,!0,v,null,!1,!1)}),["capture","download"].forEach(function(v){p[v]=new b(v,4,!1,v,null,!1,!1)}),["cols","rows","size","span"].forEach(function(v){p[v]=new b(v,6,!1,v,null,!1,!1)}),["rowSpan","start"].forEach(function(v){p[v]=new b(v,5,!1,v.toLowerCase(),null,!1,!1)});var S=/[\-:]([a-z])/g;function C(v){return v[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(v){var y=v.replace(S,C);p[y]=new b(y,1,!1,v,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(v){var y=v.replace(S,C);p[y]=new b(y,1,!1,v,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(v){var y=v.replace(S,C);p[y]=new b(y,1,!1,v,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(v){p[v]=new b(v,1,!1,v.toLowerCase(),null,!1,!1)}),p.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(v){p[v]=new b(v,1,!1,v.toLowerCase(),null,!0,!0)});function x(v,y,I,A){var J=p.hasOwnProperty(y)?p[y]:null;(J!==null?J.type!==0:A||!(2Ne||J[ye]!==te[Ne]){var Ae=` -`+J[ye].replace(" at new "," at ");return v.displayName&&Ae.includes("")&&(Ae=Ae.replace("",v.displayName)),Ae}while(1<=ye&&0<=Ne);break}}}finally{W=!1,Error.prepareStackTrace=I}return(v=v?v.displayName||v.name:"")?K(v):""}function X(v){switch(v.tag){case 5:return K(v.type);case 16:return K("Lazy");case 13:return K("Suspense");case 19:return K("SuspenseList");case 0:case 2:case 15:return v=G(v.type,!1),v;case 11:return v=G(v.type.render,!1),v;case 1:return v=G(v.type,!0),v;default:return""}}function Y(v){if(v==null)return null;if(typeof v=="function")return v.displayName||v.name||null;if(typeof v=="string")return v;switch(v){case P:return"Fragment";case E:return"Portal";case O:return"Profiler";case M:return"StrictMode";case L:return"Suspense";case _:return"SuspenseList"}if(typeof v=="object")switch(v.$$typeof){case N:return(v.displayName||"Context")+".Consumer";case T:return(v._context.displayName||"Context")+".Provider";case D:var y=v.render;return v=v.displayName,v||(v=y.displayName||y.name||"",v=v!==""?"ForwardRef("+v+")":"ForwardRef"),v;case F:return y=v.displayName||null,y!==null?y:Y(v.type)||"Memo";case j:y=v._payload,v=v._init;try{return Y(v(y))}catch{}}return null}function Z(v){var y=v.type;switch(v.tag){case 24:return"Cache";case 9:return(y.displayName||"Context")+".Consumer";case 10:return(y._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return v=y.render,v=v.displayName||v.name||"",y.displayName||(v!==""?"ForwardRef("+v+")":"ForwardRef");case 7:return"Fragment";case 5:return y;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Y(y);case 8:return y===M?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof y=="function")return y.displayName||y.name||null;if(typeof y=="string")return y}return null}function ee(v){switch(typeof v){case"boolean":case"number":case"string":case"undefined":return v;case"object":return v;default:return""}}function re(v){var y=v.type;return(v=v.nodeName)&&v.toLowerCase()==="input"&&(y==="checkbox"||y==="radio")}function ne(v){var y=re(v)?"checked":"value",I=Object.getOwnPropertyDescriptor(v.constructor.prototype,y),A=""+v[y];if(!v.hasOwnProperty(y)&&typeof I<"u"&&typeof I.get=="function"&&typeof I.set=="function"){var J=I.get,te=I.set;return Object.defineProperty(v,y,{configurable:!0,get:function(){return J.call(this)},set:function(ye){A=""+ye,te.call(this,ye)}}),Object.defineProperty(v,y,{enumerable:I.enumerable}),{getValue:function(){return A},setValue:function(ye){A=""+ye},stopTracking:function(){v._valueTracker=null,delete v[y]}}}}function se(v){v._valueTracker||(v._valueTracker=ne(v))}function oe(v){if(!v)return!1;var y=v._valueTracker;if(!y)return!0;var I=y.getValue(),A="";return v&&(A=re(v)?v.checked?"true":"false":v.value),v=A,v!==I?(y.setValue(v),!0):!1}function me(v){if(v=v||(typeof document<"u"?document:void 0),typeof v>"u")return null;try{return v.activeElement||v.body}catch{return v.body}}function ue(v,y){var I=y.checked;return H({},y,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:I??v._wrapperState.initialChecked})}function de(v,y){var I=y.defaultValue==null?"":y.defaultValue,A=y.checked!=null?y.checked:y.defaultChecked;I=ee(y.value!=null?y.value:I),v._wrapperState={initialChecked:A,initialValue:I,controlled:y.type==="checkbox"||y.type==="radio"?y.checked!=null:y.value!=null}}function ae(v,y){y=y.checked,y!=null&&x(v,"checked",y,!1)}function ie(v,y){ae(v,y);var I=ee(y.value),A=y.type;if(I!=null)A==="number"?(I===0&&v.value===""||v.value!=I)&&(v.value=""+I):v.value!==""+I&&(v.value=""+I);else if(A==="submit"||A==="reset"){v.removeAttribute("value");return}y.hasOwnProperty("value")?pe(v,y.type,I):y.hasOwnProperty("defaultValue")&&pe(v,y.type,ee(y.defaultValue)),y.checked==null&&y.defaultChecked!=null&&(v.defaultChecked=!!y.defaultChecked)}function ge(v,y,I){if(y.hasOwnProperty("value")||y.hasOwnProperty("defaultValue")){var A=y.type;if(!(A!=="submit"&&A!=="reset"||y.value!==void 0&&y.value!==null))return;y=""+v._wrapperState.initialValue,I||y===v.value||(v.value=y),v.defaultValue=y}I=v.name,I!==""&&(v.name=""),v.defaultChecked=!!v._wrapperState.initialChecked,I!==""&&(v.name=I)}function pe(v,y,I){(y!=="number"||me(v.ownerDocument)!==v)&&(I==null?v.defaultValue=""+v._wrapperState.initialValue:v.defaultValue!==""+I&&(v.defaultValue=""+I))}var be=Array.isArray;function ve(v,y,I,A){if(v=v.options,y){y={};for(var J=0;J"+y.valueOf().toString()+"",y=je.firstChild;v.firstChild;)v.removeChild(v.firstChild);for(;y.firstChild;)v.appendChild(y.firstChild)}});function ke(v,y){if(y){var I=v.firstChild;if(I&&I===v.lastChild&&I.nodeType===3){I.nodeValue=y;return}}v.textContent=y}var _e={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Re=["Webkit","ms","Moz","O"];Object.keys(_e).forEach(function(v){Re.forEach(function(y){y=y+v.charAt(0).toUpperCase()+v.substring(1),_e[y]=_e[v]})});function Le(v,y,I){return y==null||typeof y=="boolean"||y===""?"":I||typeof y!="number"||y===0||_e.hasOwnProperty(v)&&_e[v]?(""+y).trim():y+"px"}function Me(v,y){v=v.style;for(var I in y)if(y.hasOwnProperty(I)){var A=I.indexOf("--")===0,J=Le(I,y[I],A);I==="float"&&(I="cssFloat"),A?v.setProperty(I,J):v[I]=J}}var Be=H({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function $e(v,y){if(y){if(Be[v]&&(y.children!=null||y.dangerouslySetInnerHTML!=null))throw Error(n(137,v));if(y.dangerouslySetInnerHTML!=null){if(y.children!=null)throw Error(n(60));if(typeof y.dangerouslySetInnerHTML!="object"||!("__html"in y.dangerouslySetInnerHTML))throw Error(n(61))}if(y.style!=null&&typeof y.style!="object")throw Error(n(62))}}function we(v,y){if(v.indexOf("-")===-1)return typeof y.is=="string";switch(v){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ie=null;function Fe(v){return v=v.target||v.srcElement||window,v.correspondingUseElement&&(v=v.correspondingUseElement),v.nodeType===3?v.parentNode:v}var Ge=null,et=null,Ke=null;function Ye(v){if(v=Id(v)){if(typeof Ge!="function")throw Error(n(280));var y=v.stateNode;y&&(y=dm(y),Ge(v.stateNode,v.type,y))}}function tt(v){et?Ke?Ke.push(v):Ke=[v]:et=v}function rt(){if(et){var v=et,y=Ke;if(Ke=et=null,Ye(v),y)for(v=0;v>>=0,v===0?32:31-(Zn(v)/Jn|0)|0}var ur=64,hr=4194304;function or(v){switch(v&-v){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return v&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return v&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return v}}function On(v,y){var I=v.pendingLanes;if(I===0)return 0;var A=0,J=v.suspendedLanes,te=v.pingedLanes,ye=I&268435455;if(ye!==0){var Ne=ye&~J;Ne!==0?A=or(Ne):(te&=ye,te!==0&&(A=or(te)))}else ye=I&~J,ye!==0?A=or(ye):te!==0&&(A=or(te));if(A===0)return 0;if(y!==0&&y!==A&&(y&J)===0&&(J=A&-A,te=y&-y,J>=te||J===16&&(te&4194240)!==0))return y;if((A&4)!==0&&(A|=I&16),y=v.entangledLanes,y!==0)for(v=v.entanglements,y&=A;0I;I++)y.push(v);return y}function Cn(v,y,I){v.pendingLanes|=y,y!==536870912&&(v.suspendedLanes=0,v.pingedLanes=0),v=v.eventTimes,y=31-pn(y),v[y]=I}function Wn(v,y){var I=v.pendingLanes&~y;v.pendingLanes=y,v.suspendedLanes=0,v.pingedLanes=0,v.expiredLanes&=y,v.mutableReadLanes&=y,v.entangledLanes&=y,y=v.entanglements;var A=v.eventTimes;for(v=v.expirationTimes;0=Cd),F3=" ",k3=!1;function L3(v,y){switch(v){case"keyup":return qV.indexOf(y.keyCode)!==-1;case"keydown":return y.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function z3(v){return v=v.detail,typeof v=="object"&&"data"in v?v.data:null}var hc=!1;function GV(v,y){switch(v){case"compositionend":return z3(y);case"keypress":return y.which!==32?null:(k3=!0,F3);case"textInput":return v=y.data,v===F3&&k3?null:v;default:return null}}function XV(v,y){if(hc)return v==="compositionend"||!Z0&&L3(v,y)?(v=M3(),em=q0=bl=null,hc=!1,v):null;switch(v){case"paste":return null;case"keypress":if(!(y.ctrlKey||y.altKey||y.metaKey)||y.ctrlKey&&y.altKey){if(y.char&&1=y)return{node:I,offset:y-v};v=A}e:{for(;I;){if(I.nextSibling){I=I.nextSibling;break e}I=I.parentNode}I=void 0}I=q3(I)}}function G3(v,y){return v&&y?v===y?!0:v&&v.nodeType===3?!1:y&&y.nodeType===3?G3(v,y.parentNode):"contains"in v?v.contains(y):v.compareDocumentPosition?!!(v.compareDocumentPosition(y)&16):!1:!1}function X3(){for(var v=window,y=me();y instanceof v.HTMLIFrameElement;){try{var I=typeof y.contentWindow.location.href=="string"}catch{I=!1}if(I)v=y.contentWindow;else break;y=me(v.document)}return y}function tb(v){var y=v&&v.nodeName&&v.nodeName.toLowerCase();return y&&(y==="input"&&(v.type==="text"||v.type==="search"||v.type==="tel"||v.type==="url"||v.type==="password")||y==="textarea"||v.contentEditable==="true")}function aW(v){var y=X3(),I=v.focusedElem,A=v.selectionRange;if(y!==I&&I&&I.ownerDocument&&G3(I.ownerDocument.documentElement,I)){if(A!==null&&tb(I)){if(y=A.start,v=A.end,v===void 0&&(v=y),"selectionStart"in I)I.selectionStart=y,I.selectionEnd=Math.min(v,I.value.length);else if(v=(y=I.ownerDocument||document)&&y.defaultView||window,v.getSelection){v=v.getSelection();var J=I.textContent.length,te=Math.min(A.start,J);A=A.end===void 0?te:Math.min(A.end,J),!v.extend&&te>A&&(J=A,A=te,te=J),J=U3(I,te);var ye=U3(I,A);J&&ye&&(v.rangeCount!==1||v.anchorNode!==J.node||v.anchorOffset!==J.offset||v.focusNode!==ye.node||v.focusOffset!==ye.offset)&&(y=y.createRange(),y.setStart(J.node,J.offset),v.removeAllRanges(),te>A?(v.addRange(y),v.extend(ye.node,ye.offset)):(y.setEnd(ye.node,ye.offset),v.addRange(y)))}}for(y=[],v=I;v=v.parentNode;)v.nodeType===1&&y.push({element:v,left:v.scrollLeft,top:v.scrollTop});for(typeof I.focus=="function"&&I.focus(),I=0;I=document.documentMode,bc=null,nb=null,$d=null,rb=!1;function Y3(v,y,I){var A=I.window===I?I.document:I.nodeType===9?I:I.ownerDocument;rb||bc==null||bc!==me(A)||(A=bc,"selectionStart"in A&&tb(A)?A={start:A.selectionStart,end:A.selectionEnd}:(A=(A.ownerDocument&&A.ownerDocument.defaultView||window).getSelection(),A={anchorNode:A.anchorNode,anchorOffset:A.anchorOffset,focusNode:A.focusNode,focusOffset:A.focusOffset}),$d&&wd($d,A)||($d=A,A=sm(nb,"onSelect"),0wc||(v.current=gb[wc],gb[wc]=null,wc--)}function lr(v,y){wc++,gb[wc]=v.current,v.current=y}var xl={},ga=Sl(xl),Da=Sl(!1),vs=xl;function $c(v,y){var I=v.type.contextTypes;if(!I)return xl;var A=v.stateNode;if(A&&A.__reactInternalMemoizedUnmaskedChildContext===y)return A.__reactInternalMemoizedMaskedChildContext;var J={},te;for(te in I)J[te]=y[te];return A&&(v=v.stateNode,v.__reactInternalMemoizedUnmaskedChildContext=y,v.__reactInternalMemoizedMaskedChildContext=J),J}function Fa(v){return v=v.childContextTypes,v!=null}function fm(){gr(Da),gr(ga)}function dP(v,y,I){if(ga.current!==xl)throw Error(n(168));lr(ga,y),lr(Da,I)}function fP(v,y,I){var A=v.stateNode;if(y=y.childContextTypes,typeof A.getChildContext!="function")return I;A=A.getChildContext();for(var J in A)if(!(J in y))throw Error(n(108,Z(v)||"Unknown",J));return H({},I,A)}function vm(v){return v=(v=v.stateNode)&&v.__reactInternalMemoizedMergedChildContext||xl,vs=ga.current,lr(ga,v),lr(Da,Da.current),!0}function vP(v,y,I){var A=v.stateNode;if(!A)throw Error(n(169));I?(v=fP(v,y,vs),A.__reactInternalMemoizedMergedChildContext=v,gr(Da),gr(ga),lr(ga,v)):gr(Da),lr(Da,I)}var Vi=null,mm=!1,pb=!1;function mP(v){Vi===null?Vi=[v]:Vi.push(v)}function pW(v){mm=!0,mP(v)}function wl(){if(!pb&&Vi!==null){pb=!0;var v=0,y=bn;try{var I=Vi;for(bn=1;v>=ye,J-=ye,Wi=1<<32-pn(y)+J|I<$n?(ea=gn,gn=null):ea=gn.sibling;var Hn=wt(Qe,gn,Je[$n],Dt);if(Hn===null){gn===null&&(gn=ea);break}v&&gn&&Hn.alternate===null&&y(Qe,gn),qe=te(Hn,qe,$n),mn===null?on=Hn:mn.sibling=Hn,mn=Hn,gn=ea}if($n===Je.length)return I(Qe,gn),yr&&gs(Qe,$n),on;if(gn===null){for(;$n$n?(ea=gn,gn=null):ea=gn.sibling;var Nl=wt(Qe,gn,Hn.value,Dt);if(Nl===null){gn===null&&(gn=ea);break}v&&gn&&Nl.alternate===null&&y(Qe,gn),qe=te(Nl,qe,$n),mn===null?on=Nl:mn.sibling=Nl,mn=Nl,gn=ea}if(Hn.done)return I(Qe,gn),yr&&gs(Qe,$n),on;if(gn===null){for(;!Hn.done;$n++,Hn=Je.next())Hn=Rt(Qe,Hn.value,Dt),Hn!==null&&(qe=te(Hn,qe,$n),mn===null?on=Hn:mn.sibling=Hn,mn=Hn);return yr&&gs(Qe,$n),on}for(gn=A(Qe,gn);!Hn.done;$n++,Hn=Je.next())Hn=Ut(gn,Qe,$n,Hn.value,Dt),Hn!==null&&(v&&Hn.alternate!==null&&gn.delete(Hn.key===null?$n:Hn.key),qe=te(Hn,qe,$n),mn===null?on=Hn:mn.sibling=Hn,mn=Hn);return v&&gn.forEach(function(YW){return y(Qe,YW)}),yr&&gs(Qe,$n),on}function jr(Qe,qe,Je,Dt){if(typeof Je=="object"&&Je!==null&&Je.type===P&&Je.key===null&&(Je=Je.props.children),typeof Je=="object"&&Je!==null){switch(Je.$$typeof){case $:e:{for(var on=Je.key,mn=qe;mn!==null;){if(mn.key===on){if(on=Je.type,on===P){if(mn.tag===7){I(Qe,mn.sibling),qe=J(mn,Je.props.children),qe.return=Qe,Qe=qe;break e}}else if(mn.elementType===on||typeof on=="object"&&on!==null&&on.$$typeof===j&&CP(on)===mn.type){I(Qe,mn.sibling),qe=J(mn,Je.props),qe.ref=Md(Qe,mn,Je),qe.return=Qe,Qe=qe;break e}I(Qe,mn);break}else y(Qe,mn);mn=mn.sibling}Je.type===P?(qe=ws(Je.props.children,Qe.mode,Dt,Je.key),qe.return=Qe,Qe=qe):(Dt=Hm(Je.type,Je.key,Je.props,null,Qe.mode,Dt),Dt.ref=Md(Qe,qe,Je),Dt.return=Qe,Qe=Dt)}return ye(Qe);case E:e:{for(mn=Je.key;qe!==null;){if(qe.key===mn)if(qe.tag===4&&qe.stateNode.containerInfo===Je.containerInfo&&qe.stateNode.implementation===Je.implementation){I(Qe,qe.sibling),qe=J(qe,Je.children||[]),qe.return=Qe,Qe=qe;break e}else{I(Qe,qe);break}else y(Qe,qe);qe=qe.sibling}qe=vy(Je,Qe.mode,Dt),qe.return=Qe,Qe=qe}return ye(Qe);case j:return mn=Je._init,jr(Qe,qe,mn(Je._payload),Dt)}if(be(Je))return Jt(Qe,qe,Je,Dt);if(V(Je))return nn(Qe,qe,Je,Dt);bm(Qe,Je)}return typeof Je=="string"&&Je!==""||typeof Je=="number"?(Je=""+Je,qe!==null&&qe.tag===6?(I(Qe,qe.sibling),qe=J(qe,Je),qe.return=Qe,Qe=qe):(I(Qe,qe),qe=fy(Je,Qe.mode,Dt),qe.return=Qe,Qe=qe),ye(Qe)):I(Qe,qe)}return jr}var Rc=SP(!0),xP=SP(!1),ym=Sl(null),Cm=null,Ic=null,xb=null;function wb(){xb=Ic=Cm=null}function $b(v){var y=ym.current;gr(ym),v._currentValue=y}function Eb(v,y,I){for(;v!==null;){var A=v.alternate;if((v.childLanes&y)!==y?(v.childLanes|=y,A!==null&&(A.childLanes|=y)):A!==null&&(A.childLanes&y)!==y&&(A.childLanes|=y),v===I)break;v=v.return}}function Mc(v,y){Cm=v,xb=Ic=null,v=v.dependencies,v!==null&&v.firstContext!==null&&((v.lanes&y)!==0&&(ka=!0),v.firstContext=null)}function yo(v){var y=v._currentValue;if(xb!==v)if(v={context:v,memoizedValue:y,next:null},Ic===null){if(Cm===null)throw Error(n(308));Ic=v,Cm.dependencies={lanes:0,firstContext:v}}else Ic=Ic.next=v;return y}var ps=null;function Pb(v){ps===null?ps=[v]:ps.push(v)}function wP(v,y,I,A){var J=y.interleaved;return J===null?(I.next=I,Pb(y)):(I.next=J.next,J.next=I),y.interleaved=I,qi(v,A)}function qi(v,y){v.lanes|=y;var I=v.alternate;for(I!==null&&(I.lanes|=y),I=v,v=v.return;v!==null;)v.childLanes|=y,I=v.alternate,I!==null&&(I.childLanes|=y),I=v,v=v.return;return I.tag===3?I.stateNode:null}var $l=!1;function Ob(v){v.updateQueue={baseState:v.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function $P(v,y){v=v.updateQueue,y.updateQueue===v&&(y.updateQueue={baseState:v.baseState,firstBaseUpdate:v.firstBaseUpdate,lastBaseUpdate:v.lastBaseUpdate,shared:v.shared,effects:v.effects})}function Ui(v,y){return{eventTime:v,lane:y,tag:0,payload:null,callback:null,next:null}}function El(v,y,I){var A=v.updateQueue;if(A===null)return null;if(A=A.shared,(An&2)!==0){var J=A.pending;return J===null?y.next=y:(y.next=J.next,J.next=y),A.pending=y,qi(v,I)}return J=A.interleaved,J===null?(y.next=y,Pb(A)):(y.next=J.next,J.next=y),A.interleaved=y,qi(v,I)}function Sm(v,y,I){if(y=y.updateQueue,y!==null&&(y=y.shared,(I&4194240)!==0)){var A=y.lanes;A&=v.pendingLanes,I|=A,y.lanes=I,Un(v,I)}}function EP(v,y){var I=v.updateQueue,A=v.alternate;if(A!==null&&(A=A.updateQueue,I===A)){var J=null,te=null;if(I=I.firstBaseUpdate,I!==null){do{var ye={eventTime:I.eventTime,lane:I.lane,tag:I.tag,payload:I.payload,callback:I.callback,next:null};te===null?J=te=ye:te=te.next=ye,I=I.next}while(I!==null);te===null?J=te=y:te=te.next=y}else J=te=y;I={baseState:A.baseState,firstBaseUpdate:J,lastBaseUpdate:te,shared:A.shared,effects:A.effects},v.updateQueue=I;return}v=I.lastBaseUpdate,v===null?I.firstBaseUpdate=y:v.next=y,I.lastBaseUpdate=y}function xm(v,y,I,A){var J=v.updateQueue;$l=!1;var te=J.firstBaseUpdate,ye=J.lastBaseUpdate,Ne=J.shared.pending;if(Ne!==null){J.shared.pending=null;var Ae=Ne,nt=Ae.next;Ae.next=null,ye===null?te=nt:ye.next=nt,ye=Ae;var Pt=v.alternate;Pt!==null&&(Pt=Pt.updateQueue,Ne=Pt.lastBaseUpdate,Ne!==ye&&(Ne===null?Pt.firstBaseUpdate=nt:Ne.next=nt,Pt.lastBaseUpdate=Ae))}if(te!==null){var Rt=J.baseState;ye=0,Pt=nt=Ae=null,Ne=te;do{var wt=Ne.lane,Ut=Ne.eventTime;if((A&wt)===wt){Pt!==null&&(Pt=Pt.next={eventTime:Ut,lane:0,tag:Ne.tag,payload:Ne.payload,callback:Ne.callback,next:null});e:{var Jt=v,nn=Ne;switch(wt=y,Ut=I,nn.tag){case 1:if(Jt=nn.payload,typeof Jt=="function"){Rt=Jt.call(Ut,Rt,wt);break e}Rt=Jt;break e;case 3:Jt.flags=Jt.flags&-65537|128;case 0:if(Jt=nn.payload,wt=typeof Jt=="function"?Jt.call(Ut,Rt,wt):Jt,wt==null)break e;Rt=H({},Rt,wt);break e;case 2:$l=!0}}Ne.callback!==null&&Ne.lane!==0&&(v.flags|=64,wt=J.effects,wt===null?J.effects=[Ne]:wt.push(Ne))}else Ut={eventTime:Ut,lane:wt,tag:Ne.tag,payload:Ne.payload,callback:Ne.callback,next:null},Pt===null?(nt=Pt=Ut,Ae=Rt):Pt=Pt.next=Ut,ye|=wt;if(Ne=Ne.next,Ne===null){if(Ne=J.shared.pending,Ne===null)break;wt=Ne,Ne=wt.next,wt.next=null,J.lastBaseUpdate=wt,J.shared.pending=null}}while(!0);if(Pt===null&&(Ae=Rt),J.baseState=Ae,J.firstBaseUpdate=nt,J.lastBaseUpdate=Pt,y=J.shared.interleaved,y!==null){J=y;do ye|=J.lane,J=J.next;while(J!==y)}else te===null&&(J.shared.lanes=0);ys|=ye,v.lanes=ye,v.memoizedState=Rt}}function PP(v,y,I){if(v=y.effects,y.effects=null,v!==null)for(y=0;yI?I:4,v(!0);var A=Nb.transition;Nb.transition={};try{v(!1),y()}finally{bn=I,Nb.transition=A}}function KP(){return Co().memoizedState}function CW(v,y,I){var A=Il(v);if(I={lane:A,action:I,hasEagerState:!1,eagerState:null,next:null},qP(v))UP(y,I);else if(I=wP(v,y,I,A),I!==null){var J=Ra();Ko(I,v,A,J),GP(I,y,A)}}function SW(v,y,I){var A=Il(v),J={lane:A,action:I,hasEagerState:!1,eagerState:null,next:null};if(qP(v))UP(y,J);else{var te=v.alternate;if(v.lanes===0&&(te===null||te.lanes===0)&&(te=y.lastRenderedReducer,te!==null))try{var ye=y.lastRenderedState,Ne=te(ye,I);if(J.hasEagerState=!0,J.eagerState=Ne,Ao(Ne,ye)){var Ae=y.interleaved;Ae===null?(J.next=J,Pb(y)):(J.next=Ae.next,Ae.next=J),y.interleaved=J;return}}catch{}I=wP(v,y,J,A),I!==null&&(J=Ra(),Ko(I,v,A,J),GP(I,y,A))}}function qP(v){var y=v.alternate;return v===Pr||y!==null&&y===Pr}function UP(v,y){jd=Em=!0;var I=v.pending;I===null?y.next=y:(y.next=I.next,I.next=y),v.pending=y}function GP(v,y,I){if((I&4194240)!==0){var A=y.lanes;A&=v.pendingLanes,I|=A,y.lanes=I,Un(v,I)}}var Rm={readContext:yo,useCallback:pa,useContext:pa,useEffect:pa,useImperativeHandle:pa,useInsertionEffect:pa,useLayoutEffect:pa,useMemo:pa,useReducer:pa,useRef:pa,useState:pa,useDebugValue:pa,useDeferredValue:pa,useTransition:pa,useMutableSource:pa,useSyncExternalStore:pa,useId:pa,unstable_isNewReconciler:!1},xW={readContext:yo,useCallback:function(v,y){return pi().memoizedState=[v,y===void 0?null:y],v},useContext:yo,useEffect:kP,useImperativeHandle:function(v,y,I){return I=I!=null?I.concat([v]):null,Pm(4194308,4,AP.bind(null,y,v),I)},useLayoutEffect:function(v,y){return Pm(4194308,4,v,y)},useInsertionEffect:function(v,y){return Pm(4,2,v,y)},useMemo:function(v,y){var I=pi();return y=y===void 0?null:y,v=v(),I.memoizedState=[v,y],v},useReducer:function(v,y,I){var A=pi();return y=I!==void 0?I(y):y,A.memoizedState=A.baseState=y,v={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:v,lastRenderedState:y},A.queue=v,v=v.dispatch=CW.bind(null,Pr,v),[A.memoizedState,v]},useRef:function(v){var y=pi();return v={current:v},y.memoizedState=v},useState:DP,useDebugValue:zb,useDeferredValue:function(v){return pi().memoizedState=v},useTransition:function(){var v=DP(!1),y=v[0];return v=yW.bind(null,v[1]),pi().memoizedState=v,[y,v]},useMutableSource:function(){},useSyncExternalStore:function(v,y,I){var A=Pr,J=pi();if(yr){if(I===void 0)throw Error(n(407));I=I()}else{if(I=y(),Jr===null)throw Error(n(349));(bs&30)!==0||MP(A,y,I)}J.memoizedState=I;var te={value:I,getSnapshot:y};return J.queue=te,kP(NP.bind(null,A,te,v),[v]),A.flags|=2048,kd(9,TP.bind(null,A,te,I,y),void 0,null),I},useId:function(){var v=pi(),y=Jr.identifierPrefix;if(yr){var I=Ki,A=Wi;I=(A&~(1<<32-pn(A)-1)).toString(32)+I,y=":"+y+"R"+I,I=Dd++,0<\/script>",v=v.removeChild(v.firstChild)):typeof A.is=="string"?v=ye.createElement(I,{is:A.is}):(v=ye.createElement(I),I==="select"&&(ye=v,A.multiple?ye.multiple=!0:A.size&&(ye.size=A.size))):v=ye.createElementNS(v,I),v[mi]=y,v[Rd]=A,m6(v,y,!1,!1),y.stateNode=v;e:{switch(ye=we(I,A),I){case"dialog":mr("cancel",v),mr("close",v),J=A;break;case"iframe":case"object":case"embed":mr("load",v),J=A;break;case"video":case"audio":for(J=0;JDc&&(y.flags|=128,A=!0,Ld(te,!1),y.lanes=4194304)}else{if(!A)if(v=wm(ye),v!==null){if(y.flags|=128,A=!0,I=v.updateQueue,I!==null&&(y.updateQueue=I,y.flags|=4),Ld(te,!0),te.tail===null&&te.tailMode==="hidden"&&!ye.alternate&&!yr)return ha(y),null}else 2*Xe()-te.renderingStartTime>Dc&&I!==1073741824&&(y.flags|=128,A=!0,Ld(te,!1),y.lanes=4194304);te.isBackwards?(ye.sibling=y.child,y.child=ye):(I=te.last,I!==null?I.sibling=ye:y.child=ye,te.last=ye)}return te.tail!==null?(y=te.tail,te.rendering=y,te.tail=y.sibling,te.renderingStartTime=Xe(),y.sibling=null,I=Er.current,lr(Er,A?I&1|2:I&1),y):(ha(y),null);case 22:case 23:return cy(),A=y.memoizedState!==null,v!==null&&v.memoizedState!==null!==A&&(y.flags|=8192),A&&(y.mode&1)!==0?(Ja&1073741824)!==0&&(ha(y),y.subtreeFlags&6&&(y.flags|=8192)):ha(y),null;case 24:return null;case 25:return null}throw Error(n(156,y.tag))}function MW(v,y){switch(bb(y),y.tag){case 1:return Fa(y.type)&&fm(),v=y.flags,v&65536?(y.flags=v&-65537|128,y):null;case 3:return Tc(),gr(Da),gr(ga),Tb(),v=y.flags,(v&65536)!==0&&(v&128)===0?(y.flags=v&-65537|128,y):null;case 5:return Ib(y),null;case 13:if(gr(Er),v=y.memoizedState,v!==null&&v.dehydrated!==null){if(y.alternate===null)throw Error(n(340));Oc()}return v=y.flags,v&65536?(y.flags=v&-65537|128,y):null;case 19:return gr(Er),null;case 4:return Tc(),null;case 10:return $b(y.type._context),null;case 22:case 23:return cy(),null;case 24:return null;default:return null}}var Nm=!1,ba=!1,TW=typeof WeakSet=="function"?WeakSet:Set,Zt=null;function _c(v,y){var I=v.ref;if(I!==null)if(typeof I=="function")try{I(null)}catch(A){Mr(v,y,A)}else I.current=null}function Qb(v,y,I){try{I()}catch(A){Mr(v,y,A)}}var h6=!1;function NW(v,y){if(cb=Zv,v=X3(),tb(v)){if("selectionStart"in v)var I={start:v.selectionStart,end:v.selectionEnd};else e:{I=(I=v.ownerDocument)&&I.defaultView||window;var A=I.getSelection&&I.getSelection();if(A&&A.rangeCount!==0){I=A.anchorNode;var J=A.anchorOffset,te=A.focusNode;A=A.focusOffset;try{I.nodeType,te.nodeType}catch{I=null;break e}var ye=0,Ne=-1,Ae=-1,nt=0,Pt=0,Rt=v,wt=null;t:for(;;){for(var Ut;Rt!==I||J!==0&&Rt.nodeType!==3||(Ne=ye+J),Rt!==te||A!==0&&Rt.nodeType!==3||(Ae=ye+A),Rt.nodeType===3&&(ye+=Rt.nodeValue.length),(Ut=Rt.firstChild)!==null;)wt=Rt,Rt=Ut;for(;;){if(Rt===v)break t;if(wt===I&&++nt===J&&(Ne=ye),wt===te&&++Pt===A&&(Ae=ye),(Ut=Rt.nextSibling)!==null)break;Rt=wt,wt=Rt.parentNode}Rt=Ut}I=Ne===-1||Ae===-1?null:{start:Ne,end:Ae}}else I=null}I=I||{start:0,end:0}}else I=null;for(ub={focusedElem:v,selectionRange:I},Zv=!1,Zt=y;Zt!==null;)if(y=Zt,v=y.child,(y.subtreeFlags&1028)!==0&&v!==null)v.return=y,Zt=v;else for(;Zt!==null;){y=Zt;try{var Jt=y.alternate;if((y.flags&1024)!==0)switch(y.tag){case 0:case 11:case 15:break;case 1:if(Jt!==null){var nn=Jt.memoizedProps,jr=Jt.memoizedState,Qe=y.stateNode,qe=Qe.getSnapshotBeforeUpdate(y.elementType===y.type?nn:Ho(y.type,nn),jr);Qe.__reactInternalSnapshotBeforeUpdate=qe}break;case 3:var Je=y.stateNode.containerInfo;Je.nodeType===1?Je.textContent="":Je.nodeType===9&&Je.documentElement&&Je.removeChild(Je.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(Dt){Mr(y,y.return,Dt)}if(v=y.sibling,v!==null){v.return=y.return,Zt=v;break}Zt=y.return}return Jt=h6,h6=!1,Jt}function zd(v,y,I){var A=y.updateQueue;if(A=A!==null?A.lastEffect:null,A!==null){var J=A=A.next;do{if((J.tag&v)===v){var te=J.destroy;J.destroy=void 0,te!==void 0&&Qb(y,I,te)}J=J.next}while(J!==A)}}function _m(v,y){if(y=y.updateQueue,y=y!==null?y.lastEffect:null,y!==null){var I=y=y.next;do{if((I.tag&v)===v){var A=I.create;I.destroy=A()}I=I.next}while(I!==y)}}function Zb(v){var y=v.ref;if(y!==null){var I=v.stateNode;v.tag,v=I,typeof y=="function"?y(v):y.current=v}}function b6(v){var y=v.alternate;y!==null&&(v.alternate=null,b6(y)),v.child=null,v.deletions=null,v.sibling=null,v.tag===5&&(y=v.stateNode,y!==null&&(delete y[mi],delete y[Rd],delete y[mb],delete y[mW],delete y[gW])),v.stateNode=null,v.return=null,v.dependencies=null,v.memoizedProps=null,v.memoizedState=null,v.pendingProps=null,v.stateNode=null,v.updateQueue=null}function y6(v){return v.tag===5||v.tag===3||v.tag===4}function C6(v){e:for(;;){for(;v.sibling===null;){if(v.return===null||y6(v.return))return null;v=v.return}for(v.sibling.return=v.return,v=v.sibling;v.tag!==5&&v.tag!==6&&v.tag!==18;){if(v.flags&2||v.child===null||v.tag===4)continue e;v.child.return=v,v=v.child}if(!(v.flags&2))return v.stateNode}}function Jb(v,y,I){var A=v.tag;if(A===5||A===6)v=v.stateNode,y?I.nodeType===8?I.parentNode.insertBefore(v,y):I.insertBefore(v,y):(I.nodeType===8?(y=I.parentNode,y.insertBefore(v,I)):(y=I,y.appendChild(v)),I=I._reactRootContainer,I!=null||y.onclick!==null||(y.onclick=um));else if(A!==4&&(v=v.child,v!==null))for(Jb(v,y,I),v=v.sibling;v!==null;)Jb(v,y,I),v=v.sibling}function ey(v,y,I){var A=v.tag;if(A===5||A===6)v=v.stateNode,y?I.insertBefore(v,y):I.appendChild(v);else if(A!==4&&(v=v.child,v!==null))for(ey(v,y,I),v=v.sibling;v!==null;)ey(v,y,I),v=v.sibling}var la=null,Vo=!1;function Pl(v,y,I){for(I=I.child;I!==null;)S6(v,y,I),I=I.sibling}function S6(v,y,I){if(vn&&typeof vn.onCommitFiberUnmount=="function")try{vn.onCommitFiberUnmount(Ht,I)}catch{}switch(I.tag){case 5:ba||_c(I,y);case 6:var A=la,J=Vo;la=null,Pl(v,y,I),la=A,Vo=J,la!==null&&(Vo?(v=la,I=I.stateNode,v.nodeType===8?v.parentNode.removeChild(I):v.removeChild(I)):la.removeChild(I.stateNode));break;case 18:la!==null&&(Vo?(v=la,I=I.stateNode,v.nodeType===8?vb(v.parentNode,I):v.nodeType===1&&vb(v,I),hl(v)):vb(la,I.stateNode));break;case 4:A=la,J=Vo,la=I.stateNode.containerInfo,Vo=!0,Pl(v,y,I),la=A,Vo=J;break;case 0:case 11:case 14:case 15:if(!ba&&(A=I.updateQueue,A!==null&&(A=A.lastEffect,A!==null))){J=A=A.next;do{var te=J,ye=te.destroy;te=te.tag,ye!==void 0&&((te&2)!==0||(te&4)!==0)&&Qb(I,y,ye),J=J.next}while(J!==A)}Pl(v,y,I);break;case 1:if(!ba&&(_c(I,y),A=I.stateNode,typeof A.componentWillUnmount=="function"))try{A.props=I.memoizedProps,A.state=I.memoizedState,A.componentWillUnmount()}catch(Ne){Mr(I,y,Ne)}Pl(v,y,I);break;case 21:Pl(v,y,I);break;case 22:I.mode&1?(ba=(A=ba)||I.memoizedState!==null,Pl(v,y,I),ba=A):Pl(v,y,I);break;default:Pl(v,y,I)}}function x6(v){var y=v.updateQueue;if(y!==null){v.updateQueue=null;var I=v.stateNode;I===null&&(I=v.stateNode=new TW),y.forEach(function(A){var J=BW.bind(null,v,A);I.has(A)||(I.add(A),A.then(J,J))})}}function Wo(v,y){var I=y.deletions;if(I!==null)for(var A=0;AJ&&(J=ye),A&=~te}if(A=J,A=Xe()-A,A=(120>A?120:480>A?480:1080>A?1080:1920>A?1920:3e3>A?3e3:4320>A?4320:1960*jW(A/1960))-A,10v?16:v,Rl===null)var A=!1;else{if(v=Rl,Rl=null,Lm=0,(An&6)!==0)throw Error(n(331));var J=An;for(An|=4,Zt=v.current;Zt!==null;){var te=Zt,ye=te.child;if((Zt.flags&16)!==0){var Ne=te.deletions;if(Ne!==null){for(var Ae=0;AeXe()-ry?Ss(v,0):ny|=I),za(v,y)}function D6(v,y){y===0&&((v.mode&1)===0?y=1:(y=hr,hr<<=1,(hr&130023424)===0&&(hr=4194304)));var I=Ra();v=qi(v,y),v!==null&&(Cn(v,y,I),za(v,I))}function AW(v){var y=v.memoizedState,I=0;y!==null&&(I=y.retryLane),D6(v,I)}function BW(v,y){var I=0;switch(v.tag){case 13:var A=v.stateNode,J=v.memoizedState;J!==null&&(I=J.retryLane);break;case 19:A=v.stateNode;break;default:throw Error(n(314))}A!==null&&A.delete(y),D6(v,I)}var F6;F6=function(v,y,I){if(v!==null)if(v.memoizedProps!==y.pendingProps||Da.current)ka=!0;else{if((v.lanes&I)===0&&(y.flags&128)===0)return ka=!1,RW(v,y,I);ka=(v.flags&131072)!==0}else ka=!1,yr&&(y.flags&1048576)!==0&&gP(y,pm,y.index);switch(y.lanes=0,y.tag){case 2:var A=y.type;Tm(v,y),v=y.pendingProps;var J=$c(y,ga.current);Mc(y,I),J=jb(null,y,A,v,J,I);var te=Db();return y.flags|=1,typeof J=="object"&&J!==null&&typeof J.render=="function"&&J.$$typeof===void 0?(y.tag=1,y.memoizedState=null,y.updateQueue=null,Fa(A)?(te=!0,vm(y)):te=!1,y.memoizedState=J.state!==null&&J.state!==void 0?J.state:null,Ob(y),J.updater=Im,y.stateNode=J,J._reactInternals=y,Bb(y,A,v,I),y=Kb(null,y,A,!0,te,I)):(y.tag=0,yr&&te&&hb(y),Oa(null,y,J,I),y=y.child),y;case 16:A=y.elementType;e:{switch(Tm(v,y),v=y.pendingProps,J=A._init,A=J(A._payload),y.type=A,J=y.tag=VW(A),v=Ho(A,v),J){case 0:y=Wb(null,y,A,v,I);break e;case 1:y=s6(null,y,A,v,I);break e;case 11:y=r6(null,y,A,v,I);break e;case 14:y=a6(null,y,A,Ho(A.type,v),I);break e}throw Error(n(306,A,""))}return y;case 0:return A=y.type,J=y.pendingProps,J=y.elementType===A?J:Ho(A,J),Wb(v,y,A,J,I);case 1:return A=y.type,J=y.pendingProps,J=y.elementType===A?J:Ho(A,J),s6(v,y,A,J,I);case 3:e:{if(c6(y),v===null)throw Error(n(387));A=y.pendingProps,te=y.memoizedState,J=te.element,$P(v,y),xm(y,A,null,I);var ye=y.memoizedState;if(A=ye.element,te.isDehydrated)if(te={element:A,isDehydrated:!1,cache:ye.cache,pendingSuspenseBoundaries:ye.pendingSuspenseBoundaries,transitions:ye.transitions},y.updateQueue.baseState=te,y.memoizedState=te,y.flags&256){J=Nc(Error(n(423)),y),y=u6(v,y,A,I,J);break e}else if(A!==J){J=Nc(Error(n(424)),y),y=u6(v,y,A,I,J);break e}else for(Za=Cl(y.stateNode.containerInfo.firstChild),Qa=y,yr=!0,Bo=null,I=xP(y,null,A,I),y.child=I;I;)I.flags=I.flags&-3|4096,I=I.sibling;else{if(Oc(),A===J){y=Gi(v,y,I);break e}Oa(v,y,A,I)}y=y.child}return y;case 5:return OP(y),v===null&&Cb(y),A=y.type,J=y.pendingProps,te=v!==null?v.memoizedProps:null,ye=J.children,db(A,J)?ye=null:te!==null&&db(A,te)&&(y.flags|=32),l6(v,y),Oa(v,y,ye,I),y.child;case 6:return v===null&&Cb(y),null;case 13:return d6(v,y,I);case 4:return Rb(y,y.stateNode.containerInfo),A=y.pendingProps,v===null?y.child=Rc(y,null,A,I):Oa(v,y,A,I),y.child;case 11:return A=y.type,J=y.pendingProps,J=y.elementType===A?J:Ho(A,J),r6(v,y,A,J,I);case 7:return Oa(v,y,y.pendingProps,I),y.child;case 8:return Oa(v,y,y.pendingProps.children,I),y.child;case 12:return Oa(v,y,y.pendingProps.children,I),y.child;case 10:e:{if(A=y.type._context,J=y.pendingProps,te=y.memoizedProps,ye=J.value,lr(ym,A._currentValue),A._currentValue=ye,te!==null)if(Ao(te.value,ye)){if(te.children===J.children&&!Da.current){y=Gi(v,y,I);break e}}else for(te=y.child,te!==null&&(te.return=y);te!==null;){var Ne=te.dependencies;if(Ne!==null){ye=te.child;for(var Ae=Ne.firstContext;Ae!==null;){if(Ae.context===A){if(te.tag===1){Ae=Ui(-1,I&-I),Ae.tag=2;var nt=te.updateQueue;if(nt!==null){nt=nt.shared;var Pt=nt.pending;Pt===null?Ae.next=Ae:(Ae.next=Pt.next,Pt.next=Ae),nt.pending=Ae}}te.lanes|=I,Ae=te.alternate,Ae!==null&&(Ae.lanes|=I),Eb(te.return,I,y),Ne.lanes|=I;break}Ae=Ae.next}}else if(te.tag===10)ye=te.type===y.type?null:te.child;else if(te.tag===18){if(ye=te.return,ye===null)throw Error(n(341));ye.lanes|=I,Ne=ye.alternate,Ne!==null&&(Ne.lanes|=I),Eb(ye,I,y),ye=te.sibling}else ye=te.child;if(ye!==null)ye.return=te;else for(ye=te;ye!==null;){if(ye===y){ye=null;break}if(te=ye.sibling,te!==null){te.return=ye.return,ye=te;break}ye=ye.return}te=ye}Oa(v,y,J.children,I),y=y.child}return y;case 9:return J=y.type,A=y.pendingProps.children,Mc(y,I),J=yo(J),A=A(J),y.flags|=1,Oa(v,y,A,I),y.child;case 14:return A=y.type,J=Ho(A,y.pendingProps),J=Ho(A.type,J),a6(v,y,A,J,I);case 15:return o6(v,y,y.type,y.pendingProps,I);case 17:return A=y.type,J=y.pendingProps,J=y.elementType===A?J:Ho(A,J),Tm(v,y),y.tag=1,Fa(A)?(v=!0,vm(y)):v=!1,Mc(y,I),YP(y,A,J),Bb(y,A,J,I),Kb(null,y,A,!0,v,I);case 19:return v6(v,y,I);case 22:return i6(v,y,I)}throw Error(n(156,y.tag))};function k6(v,y){return Wt(v,y)}function HW(v,y,I,A){this.tag=v,this.key=I,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=y,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=A,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xo(v,y,I,A){return new HW(v,y,I,A)}function dy(v){return v=v.prototype,!(!v||!v.isReactComponent)}function VW(v){if(typeof v=="function")return dy(v)?1:0;if(v!=null){if(v=v.$$typeof,v===D)return 11;if(v===F)return 14}return 2}function Tl(v,y){var I=v.alternate;return I===null?(I=xo(v.tag,y,v.key,v.mode),I.elementType=v.elementType,I.type=v.type,I.stateNode=v.stateNode,I.alternate=v,v.alternate=I):(I.pendingProps=y,I.type=v.type,I.flags=0,I.subtreeFlags=0,I.deletions=null),I.flags=v.flags&14680064,I.childLanes=v.childLanes,I.lanes=v.lanes,I.child=v.child,I.memoizedProps=v.memoizedProps,I.memoizedState=v.memoizedState,I.updateQueue=v.updateQueue,y=v.dependencies,I.dependencies=y===null?null:{lanes:y.lanes,firstContext:y.firstContext},I.sibling=v.sibling,I.index=v.index,I.ref=v.ref,I}function Hm(v,y,I,A,J,te){var ye=2;if(A=v,typeof v=="function")dy(v)&&(ye=1);else if(typeof v=="string")ye=5;else e:switch(v){case P:return ws(I.children,J,te,y);case M:ye=8,J|=8;break;case O:return v=xo(12,I,y,J|2),v.elementType=O,v.lanes=te,v;case L:return v=xo(13,I,y,J),v.elementType=L,v.lanes=te,v;case _:return v=xo(19,I,y,J),v.elementType=_,v.lanes=te,v;case k:return Vm(I,J,te,y);default:if(typeof v=="object"&&v!==null)switch(v.$$typeof){case T:ye=10;break e;case N:ye=9;break e;case D:ye=11;break e;case F:ye=14;break e;case j:ye=16,A=null;break e}throw Error(n(130,v==null?v:typeof v,""))}return y=xo(ye,I,y,J),y.elementType=v,y.type=A,y.lanes=te,y}function ws(v,y,I,A){return v=xo(7,v,A,y),v.lanes=I,v}function Vm(v,y,I,A){return v=xo(22,v,A,y),v.elementType=k,v.lanes=I,v.stateNode={isHidden:!1},v}function fy(v,y,I){return v=xo(6,v,null,y),v.lanes=I,v}function vy(v,y,I){return y=xo(4,v.children!==null?v.children:[],v.key,y),y.lanes=I,y.stateNode={containerInfo:v.containerInfo,pendingChildren:null,implementation:v.implementation},y}function WW(v,y,I,A,J){this.tag=y,this.containerInfo=v,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Lt(0),this.expirationTimes=Lt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Lt(0),this.identifierPrefix=A,this.onRecoverableError=J,this.mutableSourceEagerHydrationData=null}function my(v,y,I,A,J,te,ye,Ne,Ae){return v=new WW(v,y,I,Ne,Ae),y===1?(y=1,te===!0&&(y|=8)):y=0,te=xo(3,null,null,y),v.current=te,te.stateNode=v,te.memoizedState={element:A,isDehydrated:I,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ob(te),v}function KW(v,y,I){var A=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Cy.exports=nK(),Cy.exports}var s=zu();const Q=Lr(s),lh=sj({__proto__:null,default:Q},[s]);var kr=rK();const Nf=Lr(kr),aK=sj({__proto__:null,default:Nf},[kr]);var wy={exports:{}},$y={};var Q6;function oK(){if(Q6)return $y;Q6=1;var e=zu();function t(f,m){return f===m&&(f!==0||1/f===1/m)||f!==f&&m!==m}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,a=e.useEffect,o=e.useLayoutEffect,i=e.useDebugValue;function l(f,m){var g=m(),h=r({inst:{value:g,getSnapshot:m}}),b=h[0].inst,p=h[1];return o(function(){b.value=g,b.getSnapshot=m,c(b)&&p({inst:b})},[f,g,m]),a(function(){return c(b)&&p({inst:b}),f(function(){c(b)&&p({inst:b})})},[f]),i(g),g}function c(f){var m=f.getSnapshot;f=f.value;try{var g=m();return!n(f,g)}catch{return!0}}function u(f,m){return m()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:l;return $y.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,$y}var Z6;function iK(){return Z6||(Z6=1,wy.exports=oK()),wy.exports}var J6=iK(),Ey={exports:{}};var eO;function lK(){return eO||(eO=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",i=0;i1&&arguments[1]!==void 0?arguments[1]:{},n=[];return Q.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Xn(r)):cj(r)&&r.props?n=n.concat(Xn(r.props.children,t)):n.push(r))}),n}var N2={},fK=function(t){};function vK(e,t){}function mK(e,t){}function gK(){N2={}}function uj(e,t,n){!t&&!N2[n]&&(e(!1,n),N2[n]=!0)}function jn(e,t){uj(vK,e,t)}function Ia(e,t){uj(mK,e,t)}jn.preMessage=fK;jn.resetWarned=gK;jn.noteOnce=Ia;function pK(e,t){if(st(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(st(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dj(e){var t=pK(e,"string");return st(t)=="symbol"?t:t+""}function q(e,t,n){return(t=dj(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function R(e){for(var t=1;t=19)return!0;var a=Oy.isMemo(t)?t.type.type:t.type;return!(typeof a=="function"&&!((n=a.prototype)!==null&&n!==void 0&&n.render)&&a.$$typeof!==Oy.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==Oy.ForwardRef)};function q$(e){return s.isValidElement(e)&&!cj(e)}var CK=function(t){return q$(t)&&ni(t)},ns=function(t){if(t&&q$(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},_2=s.createContext(null);function SK(e){var t=e.children,n=e.onBatchResize,r=s.useRef(0),a=s.useRef([]),o=s.useContext(_2),i=s.useCallback(function(l,c,u){r.current+=1;var d=r.current;a.current.push({size:l,element:c,data:u}),Promise.resolve().then(function(){d===r.current&&(n?.(a.current),a.current=[])}),o?.(l,c,u)},[n,o]);return s.createElement(_2.Provider,{value:i},t)}var fj=(function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(a,o){return a[0]===n?(r=o,!0):!1}),r}return(function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),a=this.__entries__[r];return a&&a[1]},t.prototype.set=function(n,r){var a=e(this.__entries__,n);~a?this.__entries__[a][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,a=e(r,n);~a&&r.splice(a,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var a=0,o=this.__entries__;a0},e.prototype.connect_=function(){!j2||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),OK?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!j2||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,a=PK.some(function(o){return!!~r.indexOf(o)});a&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),vj=(function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof bu(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new FK(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof bu(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new kK(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e})(),gj=typeof WeakMap<"u"?new WeakMap:new fj,pj=(function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=RK.getInstance(),r=new LK(t,n,this);gj.set(this,r)}return e})();["observe","unobserve","disconnect"].forEach(function(e){pj.prototype[e]=function(){var t;return(t=gj.get(this))[e].apply(t,arguments)}});var zK=(function(){return typeof hp.ResizeObserver<"u"?hp.ResizeObserver:pj})(),Bl=new Map;function AK(e){e.forEach(function(t){var n,r=t.target;(n=Bl.get(r))===null||n===void 0||n.forEach(function(a){return a(r)})})}var hj=new zK(AK);function BK(e,t){Bl.has(e)||(Bl.set(e,new Set),hj.observe(e)),Bl.get(e).add(t)}function HK(e,t){Bl.has(e)&&(Bl.get(e).delete(t),Bl.get(e).size||(hj.unobserve(e),Bl.delete(e)))}function kn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oO(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&arguments[1]!==void 0?arguments[1]:1;iO+=1;var r=iO;function a(o){if(o===0)xj(r),t();else{var i=Cj(function(){a(o-1)});U$.set(r,i)}}return a(n),r};ln.cancel=function(e){var t=U$.get(e);return xj(e),Sj(t)};function YK(e){let t=null;const n=a=>()=>{t=null,e.apply(void 0,Te(a))},r=(...a)=>{t===null&&(t=ln(n(a)))};return r.cancel=()=>{ln.cancel(t),t=null},r}function wj(e){if(Array.isArray(e))return e}function QK(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,i,l=[],c=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw a}}return l}}function $j(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fe(e,t){return wj(e)||QK(e,t)||uh(e,t)||$j()}function Ff(e){for(var t=0,n,r=0,a=e.length;a>=4;++r,a-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function Xr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function F2(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var lO="data-rc-order",sO="data-rc-priority",ZK="rc-util-key",k2=new Map;function Ej(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):ZK}function dh(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function JK(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function G$(e){return Array.from((k2.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Pj(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Xr())return null;var n=t.csp,r=t.prepend,a=t.priority,o=a===void 0?0:a,i=JK(r),l=i==="prependQueue",c=document.createElement("style");c.setAttribute(lO,i),l&&o&&c.setAttribute(sO,"".concat(o)),n!=null&&n.nonce&&(c.nonce=n?.nonce),c.innerHTML=e;var u=dh(t),d=u.firstChild;if(r){if(l){var f=(t.styles||G$(u)).filter(function(m){if(!["prepend","prependQueue"].includes(m.getAttribute(lO)))return!1;var g=Number(m.getAttribute(sO)||0);return o>=g});if(f.length)return u.insertBefore(c,f[f.length-1].nextSibling),c}u.insertBefore(c,d)}else u.appendChild(c);return c}function Oj(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=dh(t);return(t.styles||G$(n)).find(function(r){return r.getAttribute(Ej(t))===e})}function kf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Oj(e,t);if(n){var r=dh(t);r.removeChild(n)}}function eq(e,t){var n=k2.get(e);if(!n||!F2(document,n)){var r=Pj("",t),a=r.parentNode;k2.set(e,a),e.removeChild(r)}}function ol(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=dh(n),a=G$(r),o=R(R({},n),{},{styles:a});eq(r,o);var i=Oj(t,o);if(i){var l,c;if((l=o.csp)!==null&&l!==void 0&&l.nonce&&i.nonce!==((c=o.csp)===null||c===void 0?void 0:c.nonce)){var u;i.nonce=(u=o.csp)===null||u===void 0?void 0:u.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var d=Pj(e,o);return d.setAttribute(Ej(o),t),d}function tq(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Ue(e,t){if(e==null)return{};var n,r,a=tq(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function a(o,i){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=r.has(o);if(jn(!c,"Warning: There may be circular references"),c)return!1;if(o===i)return!0;if(n&&l>1)return!1;r.add(o);var u=l+1;if(Array.isArray(o)){if(!Array.isArray(i)||o.length!==i.length)return!1;for(var d=0;d1&&arguments[1]!==void 0?arguments[1]:!1,i={map:this.cache};return n.forEach(function(l){if(!i)i=void 0;else{var c;i=(c=i)===null||c===void 0||(c=c.map)===null||c===void 0?void 0:c.get(l)}}),(r=i)!==null&&r!==void 0&&r.value&&o&&(i.value[1]=this.cacheCallTimes++),(a=i)===null||a===void 0?void 0:a.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var a=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(u,d){var f=fe(u,2),m=f[1];return a.internalGet(d)[1]0,void 0),cO+=1}return Ln(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,a){return a(n,r)},void 0)}}]),e})(),Ry=new X$;function Lf(e){var t=Array.isArray(e)?e:[e];return Ry.has(t)||Ry.set(t,new Ij(t)),Ry.get(t)}var iq=new WeakMap,Iy={};function lq(e,t){for(var n=iq,r=0;r3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(a)return e;var o=R(R({},r),{},q(q({},yu,t),Zo,n)),i=Object.keys(o).map(function(l){var c=o[l];return c?"".concat(l,'="').concat(c,'"'):null}).filter(function(l){return l}).join(" ");return"")}var Ag=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},sq=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(a){var o=fe(a,2),i=o[0],l=o[1];return"".concat(i,":").concat(l,";")}).join(""),"}"):""},Mj=function(t,n,r){var a={},o={};return Object.entries(t).forEach(function(i){var l,c,u=fe(i,2),d=u[0],f=u[1];if(r!=null&&(l=r.preserve)!==null&&l!==void 0&&l[d])o[d]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(c=r.ignore)!==null&&c!==void 0&&c[d])){var m,g=Ag(d,r?.prefix);a[g]=typeof f=="number"&&!(r!=null&&(m=r.unitless)!==null&&m!==void 0&&m[d])?"".concat(f,"px"):String(f),o[d]="var(".concat(g,")")}}),[o,sq(a,n,{scope:r?.scope})]},fO=Xr()?s.useLayoutEffect:s.useEffect,un=function(t,n){var r=s.useRef(!0);fO(function(){return t(r.current)},n),fO(function(){return r.current=!1,function(){r.current=!0}},[])},Ds=function(t,n){un(function(r){if(!r)return t()},n)},cq=R({},lh),vO=cq.useInsertionEffect,uq=function(t,n,r){s.useMemo(t,r),un(function(){return n(!0)},r)},dq=vO?function(e,t,n){return vO(function(){return e(),t()},n)}:uq,fq=R({},lh),vq=fq.useInsertionEffect,mq=function(t){var n=[],r=!1;function a(o){r||n.push(o)}return s.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(o){return o()})}},t),a},gq=function(){return function(t){t()}},pq=typeof vq<"u"?mq:gq;function Y$(e,t,n,r,a){var o=s.useContext(Bs),i=o.cache,l=[e].concat(Te(t)),c=L2(l),u=pq([c]),d=function(h){i.opUpdate(c,function(b){var p=b||[void 0,void 0],S=fe(p,2),C=S[0],x=C===void 0?0:C,w=S[1],$=w,E=$||n(),P=[x,E];return h?h(P):P})};s.useMemo(function(){d()},[c]);var f=i.opGet(c),m=f[1];return dq(function(){a?.(m)},function(g){return d(function(h){var b=fe(h,2),p=b[0],S=b[1];return g&&p===0&&a?.(m),[p+1,S]}),function(){i.opUpdate(c,function(h){var b=h||[],p=fe(b,2),S=p[0],C=S===void 0?0:S,x=p[1],w=C-1;return w===0?(u(function(){(g||!i.opGet(c))&&r?.(x,!1)}),null):[C-1,x]})}},[c]),m}var hq={},bq="css",Os=new Map;function yq(e){Os.set(e,(Os.get(e)||0)+1)}function Cq(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(yu,'="').concat(e,'"]'));n.forEach(function(r){if(r[Hl]===t){var a;(a=r.parentNode)===null||a===void 0||a.removeChild(r)}})}}var Sq=0;function xq(e,t){Os.set(e,(Os.get(e)||0)-1);var n=new Set;Os.forEach(function(r,a){r<=0&&n.add(a)}),Os.size-n.size>Sq&&n.forEach(function(r){Cq(r,t),Os.delete(r)})}var Tj=function(t,n,r,a){var o=r.getDerivativeToken(t),i=R(R({},o),n);return a&&(i=a(i)),i},Nj="token";function _j(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=s.useContext(Bs),a=r.cache.instanceId,o=r.container,i=n.salt,l=i===void 0?"":i,c=n.override,u=c===void 0?hq:c,d=n.formatToken,f=n.getComputedToken,m=n.cssVar,g=lq(function(){return Object.assign.apply(Object,[{}].concat(Te(t)))},t),h=bf(g),b=bf(u),p=m?bf(m):"",S=Y$(Nj,[l,e.id,h,b,p],function(){var C,x=f?f(g,u,e):Tj(g,u,e,d),w=R({},x),$="";if(m){var E=Mj(x,m.key,{prefix:m.prefix,ignore:m.ignore,unitless:m.unitless,preserve:m.preserve}),P=fe(E,2);x=P[0],$=P[1]}var M=dO(x,l);x._tokenKey=M,w._tokenKey=dO(w,l);var O=(C=m?.key)!==null&&C!==void 0?C:M;x._themeKey=O,yq(O);var T="".concat(bq,"-").concat(Ff(M));return x._hashId=T,[x,T,w,$,m?.key||""]},function(C){xq(C[0]._themeKey,a)},function(C){var x=fe(C,4),w=x[0],$=x[3];if(m&&$){var E=ol($,Ff("css-variables-".concat(w._themeKey)),{mark:Zo,prepend:"queue",attachTo:o,priority:-999});E[Hl]=a,E.setAttribute(yu,w._themeKey)}});return S}var wq=function(t,n,r){var a=fe(t,5),o=a[2],i=a[3],l=a[4],c=r||{},u=c.plain;if(!i)return null;var d=o._tokenKey,f=-999,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},g=yp(i,l,d,m,u);return[f,d,g]},$q={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},jj="comm",Dj="rule",Fj="decl",Eq="@import",Pq="@namespace",Oq="@keyframes",Rq="@layer",kj=Math.abs,Q$=String.fromCharCode;function Lj(e){return e.trim()}function Bg(e,t,n){return e.replace(t,n)}function Iq(e,t,n){return e.indexOf(t,n)}function lu(e,t){return e.charCodeAt(t)|0}function Cu(e,t,n){return e.slice(t,n)}function Ci(e){return e.length}function Mq(e){return e.length}function Qm(e,t){return t.push(e),e}var fh=1,Su=1,zj=0,_o=0,Hr=0,Au="";function Z$(e,t,n,r,a,o,i,l){return{value:e,root:t,parent:n,type:r,props:a,children:o,line:fh,column:Su,length:i,return:"",siblings:l}}function Tq(){return Hr}function Nq(){return Hr=_o>0?lu(Au,--_o):0,Su--,Hr===10&&(Su=1,fh--),Hr}function Jo(){return Hr=_o2||zf(Hr)>3?"":" "}function Fq(e,t){for(;--t&&Jo()&&!(Hr<48||Hr>102||Hr>57&&Hr<65||Hr>70&&Hr<97););return vh(e,Hg()+(t<6&&Vl()==32&&Jo()==32))}function A2(e){for(;Jo();)switch(Hr){case e:return _o;case 34:case 39:e!==34&&e!==39&&A2(Hr);break;case 40:e===41&&A2(e);break;case 92:Jo();break}return _o}function kq(e,t){for(;Jo()&&e+Hr!==57;)if(e+Hr===84&&Vl()===47)break;return"/*"+vh(t,_o-1)+"*"+Q$(e===47?e:Jo())}function Lq(e){for(;!zf(Vl());)Jo();return vh(e,_o)}function zq(e){return jq(Vg("",null,null,null,[""],e=_q(e),0,[0],e))}function Vg(e,t,n,r,a,o,i,l,c){for(var u=0,d=0,f=i,m=0,g=0,h=0,b=1,p=1,S=1,C=0,x="",w=a,$=o,E=r,P=x;p;)switch(h=C,C=Jo()){case 40:if(h!=108&&lu(P,f-1)==58){Iq(P+=Bg(My(C),"&","&\f"),"&\f",kj(u?l[u-1]:0))!=-1&&(S=-1);break}case 34:case 39:case 91:P+=My(C);break;case 9:case 10:case 13:case 32:P+=Dq(h);break;case 92:P+=Fq(Hg()-1,7);continue;case 47:switch(Vl()){case 42:case 47:Qm(Aq(kq(Jo(),Hg()),t,n,c),c),(zf(h||1)==5||zf(Vl()||1)==5)&&Ci(P)&&Cu(P,-1,void 0)!==" "&&(P+=" ");break;default:P+="/"}break;case 123*b:l[u++]=Ci(P)*S;case 125*b:case 59:case 0:switch(C){case 0:case 125:p=0;case 59+d:S==-1&&(P=Bg(P,/\f/g,"")),g>0&&(Ci(P)-f||b===0&&h===47)&&Qm(g>32?gO(P+";",r,n,f-1,c):gO(Bg(P," ","")+";",r,n,f-2,c),c);break;case 59:P+=";";default:if(Qm(E=mO(P,t,n,u,d,a,l,x,w=[],$=[],f,o),o),C===123)if(d===0)Vg(P,t,E,E,w,o,f,l,$);else{switch(m){case 99:if(lu(P,3)===110)break;case 108:if(lu(P,2)===97)break;default:d=0;case 100:case 109:case 115:}d?Vg(e,E,E,r&&Qm(mO(e,E,E,0,0,a,l,x,a,w=[],f,$),$),a,$,f,l,r?w:$):Vg(P,E,E,E,[""],$,0,l,$)}}u=d=g=0,b=S=1,x=P="",f=i;break;case 58:f=1+Ci(P),g=h;default:if(b<1){if(C==123)--b;else if(C==125&&b++==0&&Nq()==125)continue}switch(P+=Q$(C),C*b){case 38:S=d>0?1:(P+="\f",-1);break;case 44:l[u++]=(Ci(P)-1)*S,S=1;break;case 64:Vl()===45&&(P+=My(Jo())),m=Vl(),d=f=Ci(x=P+=Lq(Hg())),C++;break;case 45:h===45&&Ci(P)==2&&(b=0)}}return o}function mO(e,t,n,r,a,o,i,l,c,u,d,f){for(var m=a-1,g=a===0?o:[""],h=Mq(g),b=0,p=0,S=0;b0?g[C]+" "+x:Bg(x,/&\f/g,g[C])))&&(c[S++]=w);return Z$(e,t,n,a===0?Dj:l,c,u,d,f)}function Aq(e,t,n,r){return Z$(e,t,n,jj,Q$(Tq()),Cu(e,2,-2),0,r)}function gO(e,t,n,r,a){return Z$(e,t,n,Fj,Cu(e,0,r),Cu(e,r+1,-1),r,a)}function B2(e,t){for(var n="",r=0;r1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},a=r.root,o=r.injectHash,i=r.parentSelectors,l=n.hashId,c=n.layer;n.path;var u=n.hashPriority,d=n.transformers,f=d===void 0?[]:d;n.linters;var m="",g={};function h(S){var C=S.getName(l);if(!g[C]){var x=e(S.style,n,{root:!1,parentSelectors:i}),w=fe(x,1),$=w[0];g[C]="@keyframes ".concat(S.getName(l)).concat($)}}function b(S){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return S.forEach(function(x){Array.isArray(x)?b(x,C):x&&C.push(x)}),C}var p=b(Array.isArray(t)?t:[t]);return p.forEach(function(S){var C=typeof S=="string"&&!a?{}:S;if(typeof C=="string")m+="".concat(C,` -`);else if(C._keyframe)h(C);else{var x=f.reduce(function(w,$){var E;return($==null||(E=$.visit)===null||E===void 0?void 0:E.call($,w))||w},C);Object.keys(x).forEach(function(w){var $=x[w];if(st($)==="object"&&$&&(w!=="animationName"||!$._keyframe)&&!qq($)){var E=!1,P=w.trim(),M=!1;(a||o)&&l?P.startsWith("@")?E=!0:P==="&"?P=hO("",l,u):P=hO(w,l,u):a&&!l&&(P==="&"||P==="")&&(P="",M=!0);var O=e($,n,{root:M,injectHash:E,parentSelectors:[].concat(Te(i),[P])}),T=fe(O,2),N=T[0],D=T[1];g=R(R({},g),D),m+="".concat(P).concat(N)}else{let F=function(j,k){var z=j.replace(/[A-Z]/g,function(H){return"-".concat(H.toLowerCase())}),V=k;!$q[j]&&typeof V=="number"&&V!==0&&(V="".concat(V,"px")),j==="animationName"&&k!==null&&k!==void 0&&k._keyframe&&(h(k),V=k.getName(l)),m+="".concat(z,":").concat(V,";")};var L,_=(L=$?.value)!==null&&L!==void 0?L:$;st($)==="object"&&$!==null&&$!==void 0&&$[Hj]&&Array.isArray(_)?_.forEach(function(j){F(w,j)}):F(w,_)}})}}),a?c&&(m&&(m="@layer ".concat(c.name," {").concat(m,"}")),c.dependencies&&(g["@layer ".concat(c.name)]=c.dependencies.map(function(S){return"@layer ".concat(S,", ").concat(c.name,";")}).join(` -`))):m="{".concat(m,"}"),[m,g]};function Vj(e,t){return Ff("".concat(e.join("%")).concat(t))}function Gq(){return null}var Wj="style";function Cp(e,t){var n=e.token,r=e.path,a=e.hashId,o=e.layer,i=e.nonce,l=e.clientOnly,c=e.order,u=c===void 0?0:c,d=s.useContext(Bs),f=d.autoClear;d.mock;var m=d.defaultCache,g=d.hashPriority,h=d.container,b=d.ssrInline,p=d.transformers,S=d.linters,C=d.cache,x=d.layer,w=n._tokenKey,$=[w];x&&$.push("layer"),$.push.apply($,Te(r));var E=z2,P=Y$(Wj,$,function(){var D=$.join("|");if(Vq(D)){var L=Wq(D),_=fe(L,2),F=_[0],j=_[1];if(F)return[F,w,j,{},l,u]}var k=t(),z=Uq(k,{hashId:a,hashPriority:g,layer:x?o:void 0,path:r.join("-"),transformers:p,linters:S}),V=fe(z,2),H=V[0],B=V[1],K=Wg(H),W=Vj($,K);return[K,w,W,B,l,u]},function(D,L){var _=fe(D,3),F=_[2];(L||f)&&z2&&kf(F,{mark:Zo,attachTo:h})},function(D){var L=fe(D,4),_=L[0];L[1];var F=L[2],j=L[3];if(E&&_!==Aj){var k={mark:Zo,prepend:x?!1:"queue",attachTo:h,priority:u},z=typeof i=="function"?i():i;z&&(k.csp={nonce:z});var V=[],H=[];Object.keys(j).forEach(function(K){K.startsWith("@layer")?V.push(K):H.push(K)}),V.forEach(function(K){ol(Wg(j[K]),"_layer-".concat(K),R(R({},k),{},{prepend:!0}))});var B=ol(_,F,k);B[Hl]=C.instanceId,B.setAttribute(yu,w),H.forEach(function(K){ol(Wg(j[K]),"_effect-".concat(K),k)})}}),M=fe(P,3),O=M[0],T=M[1],N=M[2];return function(D){var L;return!b||E||!m?L=s.createElement(Gq,null):L=s.createElement("style",xe({},q(q({},yu,T),Zo,N),{dangerouslySetInnerHTML:{__html:O}})),s.createElement(s.Fragment,null,L,D)}}var Xq=function(t,n,r){var a=fe(t,6),o=a[0],i=a[1],l=a[2],c=a[3],u=a[4],d=a[5],f=r||{},m=f.plain;if(u)return null;var g=o,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return g=yp(o,i,l,h,m),c&&Object.keys(c).forEach(function(b){if(!n[b]){n[b]=!0;var p=Wg(c[b]),S=yp(p,i,"_effect-".concat(b),h,m);b.startsWith("@layer")?g=S+g:g+=S}}),[d,l,g]},Kj="cssVar",Yq=function(t,n){var r=t.key,a=t.prefix,o=t.unitless,i=t.ignore,l=t.token,c=t.scope,u=c===void 0?"":c,d=s.useContext(Bs),f=d.cache.instanceId,m=d.container,g=l._tokenKey,h=[].concat(Te(t.path),[r,u,g]),b=Y$(Kj,h,function(){var p=n(),S=Mj(p,r,{prefix:a,unitless:o,ignore:i,scope:u}),C=fe(S,2),x=C[0],w=C[1],$=Vj(h,w);return[x,w,$,r]},function(p){var S=fe(p,3),C=S[2];z2&&kf(C,{mark:Zo,attachTo:m})},function(p){var S=fe(p,3),C=S[1],x=S[2];if(C){var w=ol(C,x,{mark:Zo,prepend:"queue",attachTo:m,priority:-999});w[Hl]=f,w.setAttribute(yu,r)}});return b},Qq=function(t,n,r){var a=fe(t,4),o=a[1],i=a[2],l=a[3],c=r||{},u=c.plain;if(!o)return null;var d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},m=yp(o,l,i,f,u);return[d,i,m]};q(q(q({},Wj,Xq),Nj,wq),Kj,Qq);var an=(function(){function e(t,n){kn(this,e),q(this,"name",void 0),q(this,"style",void 0),q(this,"_keyframe",!0),this.name=t,this.style=n}return Ln(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e})();function kc(e){return e.notSplit=!0,e}kc(["borderTop","borderBottom"]),kc(["borderTop"]),kc(["borderBottom"]),kc(["borderLeft","borderRight"]),kc(["borderLeft"]),kc(["borderRight"]);var J$=s.createContext({});function eE(e){return wj(e)||yj(e)||uh(e)||$j()}function Dn(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Dn(e,t.slice(0,-1))?e:qj(e,t,n,r)}function Zq(e){return st(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function bO(e){return Array.isArray(e)?[]:{}}var Jq=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Wl(){for(var e=arguments.length,t=new Array(e),n=0;n{const e=()=>{};return e.deprecated=eU,e},Uj=s.createContext(void 0);var Gj={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},Xj={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},nU=R(R({},Xj),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const Yj={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Sp={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},nU),timePickerLocale:Object.assign({},Yj)},eo="${label} is not a valid ${type}",Ka={locale:"en",Pagination:Gj,DatePicker:Sp,TimePicker:Yj,Calendar:Sp,global:{placeholder:"Please select",close:"Close"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:eo,method:eo,array:eo,object:eo,number:eo,date:eo,boolean:eo,integer:eo,float:eo,regexp:eo,email:eo,url:eo,hex:eo},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let Kg=Object.assign({},Ka.Modal),qg=[];const yO=()=>qg.reduce((e,t)=>Object.assign(Object.assign({},e),t),Ka.Modal);function rU(e){if(e){const t=Object.assign({},e);return qg.push(t),Kg=yO(),()=>{qg=qg.filter(n=>n!==t),Kg=yO()}}Kg=Object.assign({},Ka.Modal)}function Qj(){return Kg}const tE=s.createContext(void 0),zr=(e,t)=>{const n=s.useContext(tE),r=s.useMemo(()=>{var o;const i=t||Ka[e],l=(o=n?.[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof i=="function"?i():i),l||{})},[e,t,n]),a=s.useMemo(()=>{const o=n?.locale;return n?.exist&&!o?Ka.locale:o},[n]);return[r,a]},aU="internalMark",oU=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;s.useEffect(()=>rU(t?.Modal),[t]);const a=s.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return s.createElement(tE.Provider,{value:a},n)},nE={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},xu=Object.assign(Object.assign({},nE),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, -'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', -'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),ta=Math.round;function Ty(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(a=>parseFloat(a));for(let a=0;a<3;a+=1)r[a]=t(r[a]||0,n[a]||"",a);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const CO=(e,t,n)=>n===0?e:e/100;function Kd(e,t){const n=t||255;return e>n?n:e<0?0:e}class dn{constructor(t){q(this,"isValid",!0),q(this,"r",0),q(this,"g",0),q(this,"b",0),q(this,"a",1),q(this,"_h",void 0),q(this,"_s",void 0),q(this,"_l",void 0),q(this,"_v",void 0),q(this,"_max",void 0),q(this,"_min",void 0),q(this,"_brightness",void 0);function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let a=function(o){return r.startsWith(o)};const r=t.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):a("rgb")?this.fromRgbString(r):a("hsl")?this.fromHslString(r):(a("hsv")||a("hsb"))&&this.fromHsvString(r)}else if(t instanceof dn)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=Kd(t.r),this.g=Kd(t.g),this.b=Kd(t.b),this.a=typeof t.a=="number"?Kd(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(o){const i=o/255;return i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),a=t(this.b);return .2126*n+.7152*r+.0722*a}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=ta(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let a=this.getLightness()-t/100;return a<0&&(a=0),this._c({h:n,s:r,l:a,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let a=this.getLightness()+t/100;return a>1&&(a=1),this._c({h:n,s:r,l:a,a:this.a})}mix(t,n=50){const r=this._c(t),a=n/100,o=l=>(r[l]-this[l])*a+this[l],i={r:ta(o("r")),g:ta(o("g")),b:ta(o("b")),a:ta(o("a")*100)/100};return this._c(i)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),a=o=>ta((this[o]*this.a+n[o]*n.a*(1-this.a))/r);return this._c({r:a("r"),g:a("g"),b:a("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const a=(this.b||0).toString(16);if(t+=a.length===2?a:"0"+a,typeof this.a=="number"&&this.a>=0&&this.a<1){const o=ta(this.a*255).toString(16);t+=o.length===2?o:"0"+o}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=ta(this.getSaturation()*100),r=ta(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const a=this.clone();return a[t]=Kd(n,r),a}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(a,o){return parseInt(n[a]+n[o||a],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof a=="number"?a:1,n<=0){const m=ta(r*255);this.r=m,this.g=m,this.b=m}let o=0,i=0,l=0;const c=t/60,u=(1-Math.abs(2*r-1))*n,d=u*(1-Math.abs(c%2-1));c>=0&&c<1?(o=u,i=d):c>=1&&c<2?(o=d,i=u):c>=2&&c<3?(i=u,l=d):c>=3&&c<4?(i=d,l=u):c>=4&&c<5?(o=d,l=u):c>=5&&c<6&&(o=u,l=d);const f=r-u/2;this.r=ta((o+f)*255),this.g=ta((i+f)*255),this.b=ta((l+f)*255)}fromHsv({h:t,s:n,v:r,a}){this._h=t%360,this._s=n,this._v=r,this.a=typeof a=="number"?a:1;const o=ta(r*255);if(this.r=o,this.g=o,this.b=o,n<=0)return;const i=t/60,l=Math.floor(i),c=i-l,u=ta(r*(1-n)*255),d=ta(r*(1-n*c)*255),f=ta(r*(1-n*(1-c))*255);switch(l){case 0:this.g=f,this.b=u;break;case 1:this.r=d,this.b=u;break;case 2:this.r=u,this.b=f;break;case 3:this.r=u,this.g=d;break;case 4:this.r=f,this.g=u;break;default:this.g=u,this.b=d;break}}fromHsvString(t){const n=Ty(t,CO);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=Ty(t,CO);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=Ty(t,(r,a)=>a.includes("%")?ta(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var Zm=2,SO=.16,iU=.05,lU=.05,sU=.15,Zj=5,Jj=4,cU=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function xO(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Zm*t:Math.round(e.h)+Zm*t:r=n?Math.round(e.h)+Zm*t:Math.round(e.h)-Zm*t,r<0?r+=360:r>=360&&(r-=360),r}function wO(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-SO*t:t===Jj?r=e.s+SO:r=e.s+iU*t,r>1&&(r=1),n&&t===Zj&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function $O(e,t,n){var r;return n?r=e.v+lU*t:r=e.v-sU*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function Hs(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new dn(e),a=r.toHsv(),o=Zj;o>0;o-=1){var i=new dn({h:xO(a,o,!0),s:wO(a,o,!0),v:$O(a,o,!0)});n.push(i)}n.push(r);for(var l=1;l<=Jj;l+=1){var c=new dn({h:xO(a,l),s:wO(a,l),v:$O(a,l)});n.push(c)}return t.theme==="dark"?cU.map(function(u){var d=u.index,f=u.amount;return new dn(t.backgroundColor||"#141414").mix(n[d],f).toHexString()}):n.map(function(u){return u.toHexString()})}var su={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},H2=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];H2.primary=H2[5];var V2=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];V2.primary=V2[5];var W2=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];W2.primary=W2[5];var xp=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];xp.primary=xp[5];var K2=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];K2.primary=K2[5];var q2=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];q2.primary=q2[5];var U2=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];U2.primary=U2[5];var G2=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];G2.primary=G2[5];var wu=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];wu.primary=wu[5];var X2=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];X2.primary=X2[5];var Y2=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Y2.primary=Y2[5];var Q2=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Q2.primary=Q2[5];var Z2=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Z2.primary=Z2[5];var Ny={red:H2,volcano:V2,orange:W2,gold:xp,yellow:K2,lime:q2,green:U2,cyan:G2,blue:wu,geekblue:X2,purple:Y2,magenta:Q2,grey:Z2};function eD(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:a,colorError:o,colorInfo:i,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,d=t(l),f=t(r),m=t(a),g=t(o),h=t(i),b=n(c,u),p=e.colorLink||e.colorInfo,S=t(p),C=new dn(g[1]).mix(new dn(g[3]),50).toHexString();return Object.assign(Object.assign({},b),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:g[1],colorErrorBgHover:g[2],colorErrorBgFilledHover:C,colorErrorBgActive:g[3],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[10],colorWarningBg:m[1],colorWarningBgHover:m[2],colorWarningBorder:m[3],colorWarningBorderHover:m[4],colorWarningHover:m[4],colorWarning:m[6],colorWarningActive:m[7],colorWarningTextHover:m[8],colorWarningText:m[9],colorWarningTextActive:m[10],colorInfoBg:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorLinkHover:S[4],colorLink:S[6],colorLinkActive:S[7],colorBgMask:new dn("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const uU=e=>{let t=e,n=e,r=e,a=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?a=4:e>=8&&(a=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:a}};function dU(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:a}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:a+1},uU(r))}const tD=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function Ug(e){return(e+8)/e}function fU(e){const t=Array.from({length:10}).map((n,r)=>{const a=r-1,o=e*Math.pow(Math.E,a/5),i=r>1?Math.floor(o):Math.ceil(o);return Math.floor(i/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:Ug(n)}))}const nD=e=>{const t=fU(e),n=t.map(d=>d.size),r=t.map(d=>d.lineHeight),a=n[1],o=n[0],i=n[2],l=r[1],c=r[0],u=r[2];return{fontSizeSM:o,fontSize:a,fontSizeLG:i,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:u,lineHeightSM:c,fontHeight:Math.round(l*a),fontHeightLG:Math.round(u*i),fontHeightSM:Math.round(c*o),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function vU(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const wo=(e,t)=>new dn(e).setA(t).toRgbString(),qd=(e,t)=>new dn(e).darken(t).toHexString(),mU=e=>{const t=Hs(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},gU=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:wo(r,.88),colorTextSecondary:wo(r,.65),colorTextTertiary:wo(r,.45),colorTextQuaternary:wo(r,.25),colorFill:wo(r,.15),colorFillSecondary:wo(r,.06),colorFillTertiary:wo(r,.04),colorFillQuaternary:wo(r,.02),colorBgSolid:wo(r,1),colorBgSolidHover:wo(r,.75),colorBgSolidActive:wo(r,.95),colorBgLayout:qd(n,4),colorBgContainer:qd(n,0),colorBgElevated:qd(n,0),colorBgSpotlight:wo(r,.85),colorBgBlur:"transparent",colorBorder:qd(n,15),colorBorderSecondary:qd(n,6)}};function mh(e){su.pink=su.magenta,Ny.pink=Ny.magenta;const t=Object.keys(nE).map(n=>{const r=e[n]===su[n]?Ny[n]:Hs(e[n]);return Array.from({length:10},()=>1).reduce((a,o,i)=>(a[`${n}-${i+1}`]=r[i],a[`${n}${i+1}`]=r[i],a),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),eD(e,{generateColorPalettes:mU,generateNeutralColorPalettes:gU})),nD(e.fontSize)),vU(e)),tD(e)),dU(e))}const rE=Lf(mh),Af={token:xu,override:{override:xu},hashed:!0},aE=Q.createContext(Af),Bf="ant",gh="anticon",pU=["outlined","borderless","filled","underlined"],hU=(e,t)=>t||(e?`${Bf}-${e}`:Bf),Ot=s.createContext({getPrefixCls:hU,iconPrefixCls:gh}),{Consumer:PFe}=Ot,EO={};function Vn(e){const t=s.useContext(Ot),{getPrefixCls:n,direction:r,getPopupContainer:a}=t,o=t[e];return Object.assign(Object.assign({classNames:EO,styles:EO},o),{getPrefixCls:n,direction:r,getPopupContainer:a})}const bU=`-ant-${Date.now()}-${Math.random()}`;function yU(e,t){const n={},r=(i,l)=>{let c=i.clone();return c=l?.(c)||c,c.toRgbString()},a=(i,l)=>{const c=new dn(i),u=Hs(c.toRgbString());n[`${l}-color`]=r(c),n[`${l}-color-disabled`]=u[1],n[`${l}-color-hover`]=u[4],n[`${l}-color-active`]=u[6],n[`${l}-color-outline`]=c.clone().setA(.2).toRgbString(),n[`${l}-color-deprecated-bg`]=u[0],n[`${l}-color-deprecated-border`]=u[2]};if(t.primaryColor){a(t.primaryColor,"primary");const i=new dn(t.primaryColor),l=Hs(i.toRgbString());l.forEach((u,d)=>{n[`primary-${d+1}`]=u}),n["primary-color-deprecated-l-35"]=r(i,u=>u.lighten(35)),n["primary-color-deprecated-l-20"]=r(i,u=>u.lighten(20)),n["primary-color-deprecated-t-20"]=r(i,u=>u.tint(20)),n["primary-color-deprecated-t-50"]=r(i,u=>u.tint(50)),n["primary-color-deprecated-f-12"]=r(i,u=>u.setA(u.a*.12));const c=new dn(l[0]);n["primary-color-active-deprecated-f-30"]=r(c,u=>u.setA(u.a*.3)),n["primary-color-active-deprecated-d-02"]=r(c,u=>u.darken(2))}return t.successColor&&a(t.successColor,"success"),t.warningColor&&a(t.warningColor,"warning"),t.errorColor&&a(t.errorColor,"error"),t.infoColor&&a(t.infoColor,"info"),` - :root { - ${Object.keys(n).map(i=>`--${e}-${i}: ${n[i]};`).join(` -`)} - } - `.trim()}function CU(e,t){const n=yU(e,t);Xr()&&ol(n,`${bU}-dynamic-theme`)}const Sr=s.createContext(!1),oE=({children:e,disabled:t})=>{const n=s.useContext(Sr);return s.createElement(Sr.Provider,{value:t??n},e)},Vs=s.createContext(void 0),SU=({children:e,size:t})=>{const n=s.useContext(Vs);return s.createElement(Vs.Provider,{value:t||n},e)};function xU(){const e=s.useContext(Sr),t=s.useContext(Vs);return{componentDisabled:e,componentSize:t}}var rD=Ln(function e(){kn(this,e)}),aD="CALC_UNIT",wU=new RegExp(aD,"g");function _y(e){return typeof e=="number"?"".concat(e).concat(aD):e}var $U=(function(e){ma(n,e);var t=Ea(n);function n(r,a){var o;kn(this,n),o=t.call(this),q($t(o),"result",""),q($t(o),"unitlessCssVar",void 0),q($t(o),"lowPriority",void 0);var i=st(r);return o.unitlessCssVar=a,r instanceof n?o.result="(".concat(r.result,")"):i==="number"?o.result=_y(r):i==="string"&&(o.result=r),o}return Ln(n,[{key:"add",value:function(a){return a instanceof n?this.result="".concat(this.result," + ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," + ").concat(_y(a))),this.lowPriority=!0,this}},{key:"sub",value:function(a){return a instanceof n?this.result="".concat(this.result," - ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," - ").concat(_y(a))),this.lowPriority=!0,this}},{key:"mul",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof n?this.result="".concat(this.result," * ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," * ").concat(a)),this.lowPriority=!1,this}},{key:"div",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof n?this.result="".concat(this.result," / ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," / ").concat(a)),this.lowPriority=!1,this}},{key:"getResult",value:function(a){return this.lowPriority||a?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(a){var o=this,i=a||{},l=i.unit,c=!0;return typeof l=="boolean"?c=l:Array.from(this.unitlessCssVar).some(function(u){return o.result.includes(u)})&&(c=!1),this.result=this.result.replace(wU,c?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n})(rD),EU=(function(e){ma(n,e);var t=Ea(n);function n(r){var a;return kn(this,n),a=t.call(this),q($t(a),"result",0),r instanceof n?a.result=r.result:typeof r=="number"&&(a.result=r),a}return Ln(n,[{key:"add",value:function(a){return a instanceof n?this.result+=a.result:typeof a=="number"&&(this.result+=a),this}},{key:"sub",value:function(a){return a instanceof n?this.result-=a.result:typeof a=="number"&&(this.result-=a),this}},{key:"mul",value:function(a){return a instanceof n?this.result*=a.result:typeof a=="number"&&(this.result*=a),this}},{key:"div",value:function(a){return a instanceof n?this.result/=a.result:typeof a=="number"&&(this.result/=a),this}},{key:"equal",value:function(){return this.result}}]),n})(rD),PU=function(t,n){var r=t==="css"?$U:EU;return function(a){return new r(a,n)}},PO=function(t,n){return"".concat([n,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Gt(e){var t=s.useRef();t.current=e;var n=s.useCallback(function(){for(var r,a=arguments.length,o=new Array(a),i=0;i1e4){var r=Date.now();this.lastAccessBeat.forEach(function(a,o){r-a>MU&&(n.map.delete(o),n.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e})(),MO=new TU;function NU(e,t){return Q.useMemo(function(){var n=MO.get(t);if(n)return n;var r=e();return MO.set(t,r),r},t)}var _U=function(){return{}};function jU(e){var t=e.useCSP,n=t===void 0?_U:t,r=e.useToken,a=e.usePrefix,o=e.getResetStyles,i=e.getCommonStyle,l=e.getCompUnitless;function c(m,g,h,b){var p=Array.isArray(m)?m[0]:m;function S(M){return"".concat(String(p)).concat(M.slice(0,1).toUpperCase()).concat(M.slice(1))}var C=b?.unitless||{},x=typeof l=="function"?l(m):{},w=R(R({},x),{},q({},S("zIndexPopup"),!0));Object.keys(C).forEach(function(M){w[S(M)]=C[M]});var $=R(R({},b),{},{unitless:w,prefixToken:S}),E=d(m,g,h,$),P=u(p,h,$);return function(M){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:M,T=E(M,O),N=fe(T,2),D=N[1],L=P(O),_=fe(L,2),F=_[0],j=_[1];return[F,D,j]}}function u(m,g,h){var b=h.unitless,p=h.injectStyle,S=p===void 0?!0:p,C=h.prefixToken,x=h.ignore,w=function(P){var M=P.rootCls,O=P.cssVar,T=O===void 0?{}:O,N=r(),D=N.realToken;return Yq({path:[m],prefix:T.prefix,key:T.key,unitless:b,ignore:x,token:D,scope:M},function(){var L=IO(m,D,g),_=OO(m,D,L,{deprecatedTokens:h?.deprecatedTokens});return Object.keys(L).forEach(function(F){_[C(F)]=_[F],delete _[F]}),_}),null},$=function(P){var M=r(),O=M.cssVar;return[function(T){return S&&O?Q.createElement(Q.Fragment,null,Q.createElement(w,{rootCls:P,cssVar:O,component:m}),T):T},O?.key]};return $}function d(m,g,h){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},p=Array.isArray(m)?m:[m,m],S=fe(p,1),C=S[0],x=p.join("-"),w=e.layer||{name:"antd"};return function($){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$,P=r(),M=P.theme,O=P.realToken,T=P.hashId,N=P.token,D=P.cssVar,L=a(),_=L.rootPrefixCls,F=L.iconPrefixCls,j=n(),k=D?"css":"js",z=NU(function(){var G=new Set;return D&&Object.keys(b.unitless||{}).forEach(function(X){G.add(Ag(X,D.prefix)),G.add(Ag(X,PO(C,D.prefix)))}),PU(k,G)},[k,C,D?.prefix]),V=IU(k),H=V.max,B=V.min,K={theme:M,token:N,hashId:T,nonce:function(){return j.nonce},clientOnly:b.clientOnly,layer:w,order:b.order||-999};typeof o=="function"&&Cp(R(R({},K),{},{clientOnly:!1,path:["Shared",_]}),function(){return o(N,{prefix:{rootPrefixCls:_,iconPrefixCls:F},csp:j})});var W=Cp(R(R({},K),{},{path:[x,$,F]}),function(){if(b.injectStyle===!1)return[];var G=RU(N),X=G.token,Y=G.flush,Z=IO(C,O,h),ee=".".concat($),re=OO(C,O,Z,{deprecatedTokens:b.deprecatedTokens});D&&Z&&st(Z)==="object"&&Object.keys(Z).forEach(function(me){Z[me]="var(".concat(Ag(me,PO(C,D.prefix)),")")});var ne=Xt(X,{componentCls:ee,prefixCls:$,iconCls:".".concat(F),antCls:".".concat(_),calc:z,max:H,min:B},D?Z:re),se=g(ne,{hashId:T,prefixCls:$,rootPrefixCls:_,iconPrefixCls:F});Y(C,re);var oe=typeof i=="function"?i(ne,$,E,b.resetFont):null;return[b.resetStyle===!1?null:oe,se]});return[W,T]}}function f(m,g,h){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},p=d(m,g,h,R({resetStyle:!1,order:-998},b)),S=function(x){var w=x.prefixCls,$=x.rootCls,E=$===void 0?w:$;return p(w,E),null};return S}return{genStyleHooks:c,genSubStyleComponent:f,genComponentStyleHook:d}}const Yl=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],ri="5.29.2";function Dy(e){return e>=0&&e<=255}function rf(e,t){const{r:n,g:r,b:a,a:o}=new dn(e).toRgb();if(o<1)return e;const{r:i,g:l,b:c}=new dn(t).toRgb();for(let u=.01;u<=1;u+=.01){const d=Math.round((n-i*(1-u))/u),f=Math.round((r-l*(1-u))/u),m=Math.round((a-c*(1-u))/u);if(Dy(d)&&Dy(f)&&Dy(m))return new dn({r:d,g:f,b:m,a:Math.round(u*100)/100}).toRgbString()}return new dn({r:n,g:r,b:a,a:1}).toRgbString()}var DU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{delete r[m]});const a=Object.assign(Object.assign({},n),r),o=480,i=576,l=768,c=992,u=1200,d=1600;return a.motion===!1&&(a.motionDurationFast="0s",a.motionDurationMid="0s",a.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},a),{colorFillContent:a.colorFillSecondary,colorFillContentHover:a.colorFill,colorFillAlter:a.colorFillQuaternary,colorBgContainerDisabled:a.colorFillTertiary,colorBorderBg:a.colorBgContainer,colorSplit:rf(a.colorBorderSecondary,a.colorBgContainer),colorTextPlaceholder:a.colorTextQuaternary,colorTextDisabled:a.colorTextQuaternary,colorTextHeading:a.colorText,colorTextLabel:a.colorTextSecondary,colorTextDescription:a.colorTextTertiary,colorTextLightSolid:a.colorWhite,colorHighlight:a.colorError,colorBgTextHover:a.colorFillSecondary,colorBgTextActive:a.colorFill,colorIcon:a.colorTextTertiary,colorIconHover:a.colorText,colorErrorOutline:rf(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:rf(a.colorWarningBg,a.colorBgContainer),fontSizeIcon:a.fontSizeSM,lineWidthFocus:a.lineWidth*3,lineWidth:a.lineWidth,controlOutlineWidth:a.lineWidth*2,controlInteractiveSize:a.controlHeight/2,controlItemBgHover:a.colorFillTertiary,controlItemBgActive:a.colorPrimaryBg,controlItemBgActiveHover:a.colorPrimaryBgHover,controlItemBgActiveDisabled:a.colorFill,controlTmpOutline:a.colorFillQuaternary,controlOutline:rf(a.colorPrimaryBg,a.colorBgContainer),lineType:a.lineType,borderRadius:a.borderRadius,borderRadiusXS:a.borderRadiusXS,borderRadiusSM:a.borderRadiusSM,borderRadiusLG:a.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:a.sizeXXS,paddingXS:a.sizeXS,paddingSM:a.sizeSM,padding:a.size,paddingMD:a.sizeMD,paddingLG:a.sizeLG,paddingXL:a.sizeXL,paddingContentHorizontalLG:a.sizeLG,paddingContentVerticalLG:a.sizeMS,paddingContentHorizontal:a.sizeMS,paddingContentVertical:a.sizeSM,paddingContentHorizontalSM:a.size,paddingContentVerticalSM:a.sizeXS,marginXXS:a.sizeXXS,marginXS:a.sizeXS,marginSM:a.sizeSM,margin:a.size,marginMD:a.sizeMD,marginLG:a.sizeLG,marginXL:a.sizeXL,marginXXL:a.sizeXXL,boxShadow:` - 0 6px 16px 0 rgba(0, 0, 0, 0.08), - 0 3px 6px -4px rgba(0, 0, 0, 0.12), - 0 9px 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowSecondary:` - 0 6px 16px 0 rgba(0, 0, 0, 0.08), - 0 3px 6px -4px rgba(0, 0, 0, 0.12), - 0 9px 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowTertiary:` - 0 1px 2px 0 rgba(0, 0, 0, 0.03), - 0 1px 6px -1px rgba(0, 0, 0, 0.02), - 0 2px 4px 0 rgba(0, 0, 0, 0.02) - `,screenXS:o,screenXSMin:o,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:l-1,screenMD:l,screenMDMin:l,screenMDMax:c-1,screenLG:c,screenLGMin:c,screenLGMax:u-1,screenXL:u,screenXLMin:u,screenXLMax:d-1,screenXXL:d,screenXXLMin:d,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` - 0 1px 2px -2px ${new dn("rgba(0, 0, 0, 0.16)").toRgbString()}, - 0 3px 6px 0 ${new dn("rgba(0, 0, 0, 0.12)").toRgbString()}, - 0 5px 12px 4px ${new dn("rgba(0, 0, 0, 0.09)").toRgbString()} - `,boxShadowDrawerRight:` - -6px 0 16px 0 rgba(0, 0, 0, 0.08), - -3px 0 6px -4px rgba(0, 0, 0, 0.12), - -9px 0 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowDrawerLeft:` - 6px 0 16px 0 rgba(0, 0, 0, 0.08), - 3px 0 6px -4px rgba(0, 0, 0, 0.12), - 9px 0 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowDrawerUp:` - 0 6px 16px 0 rgba(0, 0, 0, 0.08), - 0 3px 6px -4px rgba(0, 0, 0, 0.12), - 0 9px 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowDrawerDown:` - 0 -6px 16px 0 rgba(0, 0, 0, 0.08), - 0 -3px 6px -4px rgba(0, 0, 0, 0.12), - 0 -9px 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var TO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const r=n.getDerivativeToken(e),{override:a}=t,o=TO(t,["override"]);let i=Object.assign(Object.assign({},r),{override:a});return i=iE(i),o&&Object.entries(o).forEach(([l,c])=>{const{theme:u}=c,d=TO(c,["theme"]);let f=d;u&&(f=lD(Object.assign(Object.assign({},i),d),{override:d},u)),i[l]=f}),i};function Rr(){const{token:e,hashed:t,theme:n,override:r,cssVar:a}=Q.useContext(aE),o=`${ri}-${t||""}`,i=n||rE,[l,c,u]=_j(i,[xu,e],{salt:o,override:r,getComputedToken:lD,formatToken:iE,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:iD,ignore:FU,preserve:kU}});return[i,u,t?c:"",l,a]}const ra={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},fn=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),rs=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),Ei=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),LU=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),zU=(e,t,n,r)=>{const a=`[class^="${t}"], [class*=" ${t}"]`,o=n?`.${n}`:a,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return r!==!1&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},l),i),{[a]:i})}},jo=(e,t)=>({outline:`${ce(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),Ta=(e,t)=>({"&:focus-visible":jo(e,t)}),sD=e=>({[`.${e}`]:Object.assign(Object.assign({},rs()),{[`.${e} .${e}-icon`]:{display:"block"}})}),ph=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},Ta(e)),{"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:rn,genComponentStyleHook:cD,genSubStyleComponent:Bu}=jU({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=s.useContext(Ot);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,a]=Rr();return{theme:e,realToken:t,hashId:n,token:r,cssVar:a}},useCSP:()=>{const{csp:e}=s.useContext(Ot);return e??{}},getResetStyles:(e,t)=>{var n;const r=LU(e);return[r,{"&":r},sD((n=t?.prefix.iconPrefixCls)!==null&&n!==void 0?n:gh)]},getCommonStyle:zU,getCompUnitless:()=>iD});function hh(e,t){return Yl.reduce((n,r)=>{const a=e[`${r}1`],o=e[`${r}3`],i=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:a,lightBorderColor:o,darkColor:i,textColor:l}))},{})}const AU=(e,t)=>{const[n,r]=Rr();return Cp({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>sD(e))},BU=Object.assign({},lh),{useId:NO}=BU,HU=()=>"",VU=typeof NO>"u"?HU:NO;function WU(e,t,n){var r;Ni();const a=e||{},o=a.inherit===!1||!t?Object.assign(Object.assign({},Af),{hashed:(r=t?.hashed)!==null&&r!==void 0?r:Af.hashed,cssVar:t?.cssVar}):t,i=VU();return $i(()=>{var l,c;if(!e)return t;const u=Object.assign({},o.components);Object.keys(e.components||{}).forEach(m=>{u[m]=Object.assign(Object.assign({},u[m]),e.components[m])});const d=`css-var-${i.replace(/:/g,"")}`,f=((l=a.cssVar)!==null&&l!==void 0?l:o.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n?.prefixCls},typeof o.cssVar=="object"?o.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((c=a.cssVar)===null||c===void 0?void 0:c.key)||d});return Object.assign(Object.assign(Object.assign({},o),a),{token:Object.assign(Object.assign({},o.token),a.token),components:u,cssVar:f})},[a,o],(l,c)=>l.some((u,d)=>{const f=c[d];return!Ma(u,f,!0)}))}var KU=["children"],uD=s.createContext({});function qU(e){var t=e.children,n=Ue(e,KU);return s.createElement(uD.Provider,{value:n},t)}var UU=(function(e){ma(n,e);var t=Ea(n);function n(){return kn(this,n),t.apply(this,arguments)}return Ln(n,[{key:"render",value:function(){return this.props.children}}]),n})(s.Component);function GU(e){var t=s.useReducer(function(l){return l+1},0),n=fe(t,2),r=n[1],a=s.useRef(e),o=Gt(function(){return a.current}),i=Gt(function(l){a.current=typeof l=="function"?l(a.current):l,r()});return[o,i]}var Fl="none",Jm="appear",eg="enter",tg="leave",_O="none",Xo="prepare",ru="start",au="active",lE="end",dD="prepared";function jO(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function XU(e,t){var n={animationend:jO("Animation","AnimationEnd"),transitionend:jO("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var YU=XU(Xr(),typeof window<"u"?window:{}),fD={};if(Xr()){var QU=document.createElement("div");fD=QU.style}var ng={};function vD(e){if(ng[e])return ng[e];var t=YU[e];if(t)for(var n=Object.keys(t),r=n.length,a=0;a1&&arguments[1]!==void 0?arguments[1]:2;t();var o=ln(function(){a<=1?r({isCanceled:function(){return o!==e.current}}):n(r,a-1)});e.current=o}return s.useEffect(function(){return function(){t()}},[]),[n,t]});var eG=[Xo,ru,au,lE],tG=[Xo,dD],bD=!1,nG=!0;function yD(e){return e===au||e===lE}const rG=(function(e,t,n){var r=Ws(_O),a=fe(r,2),o=a[0],i=a[1],l=JU(),c=fe(l,2),u=c[0],d=c[1];function f(){i(Xo,!0)}var m=t?tG:eG;return hD(function(){if(o!==_O&&o!==lE){var g=m.indexOf(o),h=m[g+1],b=n(o);b===bD?i(h,!0):h&&u(function(p){function S(){p.isCanceled()||i(h,!0)}b===!0?S():Promise.resolve(b).then(S)})}},[e,o]),s.useEffect(function(){return function(){d()}},[]),[f,o]});function aG(e,t,n,r){var a=r.motionEnter,o=a===void 0?!0:a,i=r.motionAppear,l=i===void 0?!0:i,c=r.motionLeave,u=c===void 0?!0:c,d=r.motionDeadline,f=r.motionLeaveImmediately,m=r.onAppearPrepare,g=r.onEnterPrepare,h=r.onLeavePrepare,b=r.onAppearStart,p=r.onEnterStart,S=r.onLeaveStart,C=r.onAppearActive,x=r.onEnterActive,w=r.onLeaveActive,$=r.onAppearEnd,E=r.onEnterEnd,P=r.onLeaveEnd,M=r.onVisibleChanged,O=Ws(),T=fe(O,2),N=T[0],D=T[1],L=GU(Fl),_=fe(L,2),F=_[0],j=_[1],k=Ws(null),z=fe(k,2),V=z[0],H=z[1],B=F(),K=s.useRef(!1),W=s.useRef(null);function G(){return n()}var X=s.useRef(!1);function Y(){j(Fl),H(null,!0)}var Z=Gt(function(ve){var Ce=F();if(Ce!==Fl){var he=G();if(!(ve&&!ve.deadline&&ve.target!==he)){var Se=X.current,Ee;Ce===Jm&&Se?Ee=$?.(he,ve):Ce===eg&&Se?Ee=E?.(he,ve):Ce===tg&&Se&&(Ee=P?.(he,ve)),Se&&Ee!==!1&&Y()}}}),ee=ZU(Z),re=fe(ee,1),ne=re[0],se=function(Ce){switch(Ce){case Jm:return q(q(q({},Xo,m),ru,b),au,C);case eg:return q(q(q({},Xo,g),ru,p),au,x);case tg:return q(q(q({},Xo,h),ru,S),au,w);default:return{}}},oe=s.useMemo(function(){return se(B)},[B]),me=rG(B,!e,function(ve){if(ve===Xo){var Ce=oe[Xo];return Ce?Ce(G()):bD}if(ae in oe){var he;H(((he=oe[ae])===null||he===void 0?void 0:he.call(oe,G(),null))||null)}return ae===au&&B!==Fl&&(ne(G()),d>0&&(clearTimeout(W.current),W.current=setTimeout(function(){Z({deadline:!0})},d))),ae===dD&&Y(),nG}),ue=fe(me,2),de=ue[0],ae=ue[1],ie=yD(ae);X.current=ie;var ge=s.useRef(null);hD(function(){if(!(K.current&&ge.current===t)){D(t);var ve=K.current;K.current=!0;var Ce;!ve&&t&&l&&(Ce=Jm),ve&&t&&o&&(Ce=eg),(ve&&!t&&u||!ve&&f&&!t&&u)&&(Ce=tg);var he=se(Ce);Ce&&(e||he[Xo])?(j(Ce),de()):j(Fl),ge.current=t}},[t]),s.useEffect(function(){(B===Jm&&!l||B===eg&&!o||B===tg&&!u)&&j(Fl)},[l,o,u]),s.useEffect(function(){return function(){K.current=!1,clearTimeout(W.current)}},[]);var pe=s.useRef(!1);s.useEffect(function(){N&&(pe.current=!0),N!==void 0&&B===Fl&&((pe.current||N)&&M?.(N),pe.current=!0)},[N,B]);var be=V;return oe[Xo]&&ae===ru&&(be=R({transition:"none"},be)),[B,ae,be,N??t]}function oG(e){var t=e;st(e)==="object"&&(t=e.transitionSupport);function n(a,o){return!!(a.motionName&&t&&o!==!1)}var r=s.forwardRef(function(a,o){var i=a.visible,l=i===void 0?!0:i,c=a.removeOnLeave,u=c===void 0?!0:c,d=a.forceRender,f=a.children,m=a.motionName,g=a.leavedClassName,h=a.eventProps,b=s.useContext(uD),p=b.motion,S=n(a,p),C=s.useRef(),x=s.useRef();function w(){try{return C.current instanceof HTMLElement?C.current:zg(x.current)}catch{return null}}var $=aG(S,l,w,a),E=fe($,4),P=E[0],M=E[1],O=E[2],T=E[3],N=s.useRef(T);T&&(N.current=!0);var D=s.useCallback(function(z){C.current=z,jf(o,z)},[o]),L,_=R(R({},h),{},{visible:l});if(!f)L=null;else if(P===Fl)T?L=f(R({},_),D):!u&&N.current&&g?L=f(R(R({},_),{},{className:g}),D):d||!u&&!g?L=f(R(R({},_),{},{style:{display:"none"}}),D):L=null;else{var F;M===Xo?F="prepare":yD(M)?F="active":M===ru&&(F="start");var j=kO(m,"".concat(P,"-").concat(F));L=f(R(R({},_),{},{className:le(kO(m,P),q(q({},j,j&&F),m,typeof m=="string")),style:O}),D)}if(s.isValidElement(L)&&ni(L)){var k=ns(L);k||(L=s.cloneElement(L,{ref:D}))}return s.createElement(UU,{ref:x},L)});return r.displayName="CSSMotion",r}const Nr=oG(pD);var ew="add",tw="keep",nw="remove",Fy="removed";function iG(e){var t;return e&&st(e)==="object"&&"key"in e?t=e:t={key:e},R(R({},t),{},{key:String(t.key)})}function rw(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(iG)}function lG(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,a=t.length,o=rw(e),i=rw(t);o.forEach(function(u){for(var d=!1,f=r;f1});return c.forEach(function(u){n=n.filter(function(d){var f=d.key,m=d.status;return f!==u||m!==nw}),n.forEach(function(d){d.key===u&&(d.status=tw)})}),n}var sG=["component","children","onVisibleChanged","onAllRemoved"],cG=["status"],uG=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function dG(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Nr,n=(function(r){ma(o,r);var a=Ea(o);function o(){var i;kn(this,o);for(var l=arguments.length,c=new Array(l),u=0;unull;var mG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);at.endsWith("Color"))}const bG=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:a}=e;t!==void 0&&(wp=t),n!==void 0&&(CD=n),"holderRender"in e&&(xD=a),r&&(hG(r)?CU(Gg(),r):SD=r)},wD=()=>({getPrefixCls:(e,t)=>t||(e?`${Gg()}-${e}`:Gg()),getIconPrefixCls:pG,getRootPrefixCls:()=>wp||Gg(),getTheme:()=>SD,holderRender:xD}),yG=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:a,anchor:o,form:i,locale:l,componentSize:c,direction:u,space:d,splitter:f,virtual:m,dropdownMatchSelectWidth:g,popupMatchSelectWidth:h,popupOverflow:b,legacyLocale:p,parentContext:S,iconPrefixCls:C,theme:x,componentDisabled:w,segmented:$,statistic:E,spin:P,calendar:M,carousel:O,cascader:T,collapse:N,typography:D,checkbox:L,descriptions:_,divider:F,drawer:j,skeleton:k,steps:z,image:V,layout:H,list:B,mentions:K,modal:W,progress:G,result:X,slider:Y,breadcrumb:Z,menu:ee,pagination:re,input:ne,textArea:se,empty:oe,badge:me,radio:ue,rate:de,switch:ae,transfer:ie,avatar:ge,message:pe,tag:be,table:ve,card:Ce,tabs:he,timeline:Se,timePicker:Ee,upload:Oe,notification:We,tree:je,colorPicker:De,datePicker:ke,rangePicker:_e,flex:Re,wave:Le,dropdown:Me,warning:Be,tour:$e,tooltip:we,popover:Ie,popconfirm:Fe,floatButton:Ge,floatButtonGroup:et,variant:Ke,inputNumber:Ye,treeSelect:tt}=e,rt=s.useCallback((at,Nt)=>{const{prefixCls:pt}=e;if(Nt)return Nt;const mt=pt||S.getPrefixCls("");return at?`${mt}-${at}`:mt},[S.getPrefixCls,e.prefixCls]),ct=C||S.iconPrefixCls||gh,Ct=n||S.csp;AU(ct,Ct);const yt=WU(x,S.theme,{prefixCls:rt("")}),dt={csp:Ct,autoInsertSpaceInButton:r,alert:a,anchor:o,locale:l||p,direction:u,space:d,splitter:f,virtual:m,popupMatchSelectWidth:h??g,popupOverflow:b,getPrefixCls:rt,iconPrefixCls:ct,theme:yt,segmented:$,statistic:E,spin:P,calendar:M,carousel:O,cascader:T,collapse:N,typography:D,checkbox:L,descriptions:_,divider:F,drawer:j,skeleton:k,steps:z,image:V,input:ne,textArea:se,layout:H,list:B,mentions:K,modal:W,progress:G,result:X,slider:Y,breadcrumb:Z,menu:ee,pagination:re,empty:oe,badge:me,radio:ue,rate:de,switch:ae,transfer:ie,avatar:ge,message:pe,tag:be,table:ve,card:Ce,tabs:he,timeline:Se,timePicker:Ee,upload:Oe,notification:We,tree:je,colorPicker:De,datePicker:ke,rangePicker:_e,flex:Re,wave:Le,dropdown:Me,warning:Be,tour:$e,tooltip:we,popover:Ie,popconfirm:Fe,floatButton:Ge,floatButtonGroup:et,variant:Ke,inputNumber:Ye,treeSelect:tt},vt=Object.assign({},S);Object.keys(dt).forEach(at=>{dt[at]!==void 0&&(vt[at]=dt[at])}),gG.forEach(at=>{const Nt=e[at];Nt&&(vt[at]=Nt)}),typeof r<"u"&&(vt.button=Object.assign({autoInsertSpace:r},vt.button));const bt=$i(()=>vt,vt,(at,Nt)=>{const pt=Object.keys(at),mt=Object.keys(Nt);return pt.length!==mt.length||pt.some(jt=>at[jt]!==Nt[jt])}),{layer:ze}=s.useContext(Bs),Ve=s.useMemo(()=>({prefixCls:ct,csp:Ct,layer:ze?"antd":void 0}),[ct,Ct,ze]);let Pe=s.createElement(s.Fragment,null,s.createElement(vG,{dropdownMatchSelectWidth:g}),t);const He=s.useMemo(()=>{var at,Nt,pt,mt;return Wl(((at=Ka.Form)===null||at===void 0?void 0:at.defaultValidateMessages)||{},((pt=(Nt=bt.locale)===null||Nt===void 0?void 0:Nt.Form)===null||pt===void 0?void 0:pt.defaultValidateMessages)||{},((mt=bt.form)===null||mt===void 0?void 0:mt.validateMessages)||{},i?.validateMessages||{})},[bt,i?.validateMessages]);Object.keys(He).length>0&&(Pe=s.createElement(Uj.Provider,{value:He},Pe)),l&&(Pe=s.createElement(oU,{locale:l,_ANT_MARK__:aU},Pe)),Pe=s.createElement(J$.Provider,{value:Ve},Pe),c&&(Pe=s.createElement(SU,{size:c},Pe)),Pe=s.createElement(fG,null,Pe);const Ze=s.useMemo(()=>{const at=yt||{},{algorithm:Nt,token:pt,components:mt,cssVar:jt}=at,Kt=mG(at,["algorithm","token","components","cssVar"]),cn=Nt&&(!Array.isArray(Nt)||Nt.length>0)?Lf(Nt):rE,tn={};Object.entries(mt||{}).forEach(([It,Wt])=>{const ot=Object.assign({},Wt);"algorithm"in ot&&(ot.algorithm===!0?ot.theme=cn:(Array.isArray(ot.algorithm)||typeof ot.algorithm=="function")&&(ot.theme=Lf(ot.algorithm)),delete ot.algorithm),tn[It]=ot});const Bt=Object.assign(Object.assign({},xu),pt);return Object.assign(Object.assign({},Kt),{theme:cn,token:Bt,components:tn,override:Object.assign({override:Bt},tn),cssVar:jt})},[yt]);return x&&(Pe=s.createElement(aE.Provider,{value:Ze},Pe)),bt.warning&&(Pe=s.createElement(tU.Provider,{value:bt.warning},Pe)),w!==void 0&&(Pe=s.createElement(oE,{disabled:w},Pe)),s.createElement(Ot.Provider,{value:bt},Pe)},At=e=>{const t=s.useContext(Ot),n=s.useContext(tE);return s.createElement(yG,Object.assign({parentContext:t,legacyLocale:n},e))};At.ConfigContext=Ot;At.SizeContext=Vs;At.config=bG;At.useConfig=xU;Object.defineProperty(At,"SizeContext",{get:()=>Vs});var CG={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 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function $D(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function SG(e){return $D(e)instanceof ShadowRoot}function $p(e){return SG(e)?$D(e):null}function xG(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function wG(e,t){jn(e,"[@ant-design/icons] ".concat(t))}function zO(e){return st(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(st(e.icon)==="object"||typeof e.icon=="function")}function AO(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];return n==="class"?(t.className=r,delete t.class):(delete t[n],t[xG(n)]=r),t},{})}function aw(e,t,n){return n?Q.createElement(e.tag,R(R({key:t},AO(e.attrs)),n),(e.children||[]).map(function(r,a){return aw(r,"".concat(t,"-").concat(e.tag,"-").concat(a))})):Q.createElement(e.tag,R({key:t},AO(e.attrs)),(e.children||[]).map(function(r,a){return aw(r,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function ED(e){return Hs(e)[0]}function PD(e){return e?Array.isArray(e)?e:[e]:[]}var $G=` -.anticon { - display: inline-flex; - align-items: center; - color: inherit; - font-style: normal; - line-height: 0; - text-align: center; - text-transform: none; - vertical-align: -0.125em; - text-rendering: optimizeLegibility; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.anticon > * { - line-height: 1; -} - -.anticon svg { - display: inline-block; -} - -.anticon::before { - display: none; -} - -.anticon .anticon-icon { - display: block; -} - -.anticon[tabindex] { - cursor: pointer; -} - -.anticon-spin::before, -.anticon-spin { - display: inline-block; - -webkit-animation: loadingCircle 1s infinite linear; - animation: loadingCircle 1s infinite linear; -} - -@-webkit-keyframes loadingCircle { - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} - -@keyframes loadingCircle { - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} -`,EG=function(t){var n=s.useContext(J$),r=n.csp,a=n.prefixCls,o=n.layer,i=$G;a&&(i=i.replace(/anticon/g,a)),o&&(i="@layer ".concat(o,` { -`).concat(i,` -}`)),s.useEffect(function(){var l=t.current,c=$p(l);ol(i,"@ant-design-icons",{prepend:!o,csp:r,attachTo:c})},[])},PG=["icon","className","onClick","style","primaryColor","secondaryColor"],yf={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function OG(e){var t=e.primaryColor,n=e.secondaryColor;yf.primaryColor=t,yf.secondaryColor=n||ED(t),yf.calculated=!!n}function RG(){return R({},yf)}var Hu=function(t){var n=t.icon,r=t.className,a=t.onClick,o=t.style,i=t.primaryColor,l=t.secondaryColor,c=Ue(t,PG),u=s.useRef(),d=yf;if(i&&(d={primaryColor:i,secondaryColor:l||ED(i)}),EG(u),wG(zO(n),"icon should be icon definiton, but got ".concat(n)),!zO(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=R(R({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),aw(f.icon,"svg-".concat(f.name),R(R({className:r,onClick:a,style:o,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:u}))};Hu.displayName="IconReact";Hu.getTwoToneColors=RG;Hu.setTwoToneColors=OG;function OD(e){var t=PD(e),n=fe(t,2),r=n[0],a=n[1];return Hu.setTwoToneColors({primaryColor:r,secondaryColor:a})}function IG(){var e=Hu.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var MG=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];OD(wu.primary);var ht=s.forwardRef(function(e,t){var n=e.className,r=e.icon,a=e.spin,o=e.rotate,i=e.tabIndex,l=e.onClick,c=e.twoToneColor,u=Ue(e,MG),d=s.useContext(J$),f=d.prefixCls,m=f===void 0?"anticon":f,g=d.rootClassName,h=le(g,m,q(q({},"".concat(m,"-").concat(r.name),!!r.name),"".concat(m,"-spin"),!!a||r.name==="loading"),n),b=i;b===void 0&&l&&(b=-1);var p=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,S=PD(c),C=fe(S,2),x=C[0],w=C[1];return s.createElement("span",xe({role:"img","aria-label":r.name},u,{ref:t,tabIndex:b,onClick:l,className:h}),s.createElement(Hu,{icon:r,primaryColor:x,secondaryColor:w,style:p}))});ht.displayName="AntdIcon";ht.getTwoToneColor=IG;ht.setTwoToneColor=OD;var TG=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:CG}))},Zs=s.forwardRef(TG),NG={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},_G=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:NG}))},_i=s.forwardRef(_G),jG={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},DG=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:jG}))},vo=s.forwardRef(DG),FG={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"},kG=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:FG}))},as=s.forwardRef(kG),LG={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"},zG=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:LG}))},bh=s.forwardRef(zG),AG=`accept acceptCharset accessKey action allowFullScreen allowTransparency - alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge - charSet checked classID className colSpan cols content contentEditable contextMenu - controls coords crossOrigin data dateTime default defer dir disabled download draggable - encType form formAction formEncType formMethod formNoValidate formTarget frameBorder - headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity - is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media - mediaGroup method min minLength multiple muted name noValidate nonce open - optimum pattern placeholder poster preload radioGroup readOnly rel required - reversed role rowSpan rows sandbox scope scoped scrolling seamless selected - shape size sizes span spellCheck src srcDoc srcLang srcSet start step style - summary tabIndex target title type useMap value width wmode wrap`,BG=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown - onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick - onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown - onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel - onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough - onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata - onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,HG="".concat(AG," ").concat(BG).split(/[\s\n]+/),VG="aria-",WG="data-";function BO(e,t){return e.indexOf(t)===0}function Qn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=R({},t);var r={};return Object.keys(e).forEach(function(a){(n.aria&&(a==="role"||BO(a,VG))||n.data&&BO(a,WG)||n.attr&&HG.includes(a))&&(r[a]=e[a])}),r}function RD(e){return e&&Q.isValidElement(e)&&e.type===Q.Fragment}const cE=(e,t,n)=>Q.isValidElement(e)?Q.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function xr(e,t){return cE(e,e,t)}const rg=(e,t,n,r,a)=>({background:e,border:`${ce(r.lineWidth)} ${r.lineType} ${t}`,[`${a}-icon`]:{color:n}}),KG=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:a,fontSize:o,fontSizeLG:i,lineHeight:l,borderRadiusLG:c,motionEaseInOutCirc:u,withDescriptionIconSize:d,colorText:f,colorTextHeading:m,withDescriptionPadding:g,defaultPadding:h}=e;return{[t]:Object.assign(Object.assign({},fn(e)),{position:"relative",display:"flex",alignItems:"center",padding:h,wordWrap:"break-word",borderRadius:c,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:o,lineHeight:l},"&-message":{color:m},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${u}, opacity ${n} ${u}, - padding-top ${n} ${u}, padding-bottom ${n} ${u}, - margin-bottom ${n} ${u}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:g,[`${t}-icon`]:{marginInlineEnd:a,fontSize:d,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:m,fontSize:i},[`${t}-description`]:{display:"block",color:f}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},qG=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:a,colorWarning:o,colorWarningBorder:i,colorWarningBg:l,colorError:c,colorErrorBorder:u,colorErrorBg:d,colorInfo:f,colorInfoBorder:m,colorInfoBg:g}=e;return{[t]:{"&-success":rg(a,r,n,e,t),"&-info":rg(g,m,f,e,t),"&-warning":rg(l,i,o,e,t),"&-error":Object.assign(Object.assign({},rg(d,u,c,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},UG=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:a,fontSizeIcon:o,colorIcon:i,colorIconHover:l}=e;return{[t]:{"&-action":{marginInlineStart:a},[`${t}-close-icon`]:{marginInlineStart:a,padding:0,overflow:"hidden",fontSize:o,lineHeight:ce(o),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:i,transition:`color ${r}`,"&:hover":{color:l}}},"&-close-text":{color:i,transition:`color ${r}`,"&:hover":{color:l}}}}},GG=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),XG=rn("Alert",e=>[KG(e),qG(e),UG(e)],GG);var HO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{icon:t,prefixCls:n,type:r}=e,a=YG[r]||null;return t?cE(t,s.createElement("span",{className:`${n}-icon`},t),()=>({className:le(`${n}-icon`,t.props.className)})):s.createElement(a,{className:`${n}-icon`})},ZG=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:a,ariaProps:o}=e,i=r===!0||r===void 0?s.createElement(vo,null):r;return t?s.createElement("button",Object.assign({type:"button",onClick:a,className:`${n}-close-icon`,tabIndex:0},o),i):null},ID=s.forwardRef((e,t)=>{const{description:n,prefixCls:r,message:a,banner:o,className:i,rootClassName:l,style:c,onMouseEnter:u,onMouseLeave:d,onClick:f,afterClose:m,showIcon:g,closable:h,closeText:b,closeIcon:p,action:S,id:C}=e,x=HO(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[w,$]=s.useState(!1),E=s.useRef(null);s.useImperativeHandle(t,()=>({nativeElement:E.current}));const{getPrefixCls:P,direction:M,closable:O,closeIcon:T,className:N,style:D}=Vn("alert"),L=P("alert",r),[_,F,j]=XG(L),k=X=>{var Y;$(!0),(Y=e.onClose)===null||Y===void 0||Y.call(e,X)},z=s.useMemo(()=>e.type!==void 0?e.type:o?"warning":"info",[e.type,o]),V=s.useMemo(()=>typeof h=="object"&&h.closeIcon||b?!0:typeof h=="boolean"?h:p!==!1&&p!==null&&p!==void 0?!0:!!O,[b,p,h,O]),H=o&&g===void 0?!0:g,B=le(L,`${L}-${z}`,{[`${L}-with-description`]:!!n,[`${L}-no-icon`]:!H,[`${L}-banner`]:!!o,[`${L}-rtl`]:M==="rtl"},N,i,l,j,F),K=Qn(x,{aria:!0,data:!0}),W=s.useMemo(()=>typeof h=="object"&&h.closeIcon?h.closeIcon:b||(p!==void 0?p:typeof O=="object"&&O.closeIcon?O.closeIcon:T),[p,h,O,b,T]),G=s.useMemo(()=>{const X=h??O;if(typeof X=="object"){const{closeIcon:Y}=X;return HO(X,["closeIcon"])}return{}},[h,O]);return _(s.createElement(Nr,{visible:!w,motionName:`${L}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:X=>({maxHeight:X.offsetHeight}),onLeaveEnd:m},({className:X,style:Y},Z)=>s.createElement("div",Object.assign({id:C,ref:wr(E,Z),"data-show":!w,className:le(B,X),style:Object.assign(Object.assign(Object.assign({},D),c),Y),onMouseEnter:u,onMouseLeave:d,onClick:f,role:"alert"},K),H?s.createElement(QG,{description:n,icon:e.icon,prefixCls:L,type:z}):null,s.createElement("div",{className:`${L}-content`},a?s.createElement("div",{className:`${L}-message`},a):null,n?s.createElement("div",{className:`${L}-description`},n):null),S?s.createElement("div",{className:`${L}-action`},S):null,s.createElement(ZG,{isClosable:V,prefixCls:L,closeIcon:W,handleClose:k,ariaProps:G}))))});function JG(e,t,n){return t=As(t),bj(e,ch()?Reflect.construct(t,n||[],As(e).constructor):t.apply(e,n))}let eX=(function(e){function t(){var n;return kn(this,t),n=JG(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return ma(t,e),Ln(t,[{key:"componentDidCatch",value:function(r,a){this.setState({error:r,info:a})}},{key:"render",value:function(){const{message:r,description:a,id:o,children:i}=this.props,{error:l,info:c}=this.state,u=c?.componentStack||null,d=typeof r>"u"?(l||"").toString():r,f=typeof a>"u"?u:a;return l?s.createElement(ID,{id:o,type:"error",message:d,description:s.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},f)}):i}}])})(s.Component);const tX=ID;tX.ErrorBoundary=eX;const VO=e=>typeof e=="object"&&e!=null&&e.nodeType===1,WO=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",ag=(e,t)=>{if(e.clientHeight{const a=(o=>{if(!o.ownerDocument||!o.ownerDocument.defaultView)return null;try{return o.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!a&&(a.clientHeightot||o>e&&i=t&&l>=n?o-e-r:i>t&&ln?i-t+a:0,nX=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},KO=(e,t)=>{var n,r,a,o;if(typeof document>"u")return[];const{scrollMode:i,block:l,inline:c,boundary:u,skipOverflowHiddenElements:d}=t,f=typeof u=="function"?u:j=>j!==u;if(!VO(e))throw new TypeError("Invalid target");const m=document.scrollingElement||document.documentElement,g=[];let h=e;for(;VO(h)&&f(h);){if(h=nX(h),h===m){g.push(h);break}h!=null&&h===document.body&&ag(h)&&!ag(document.documentElement)||h!=null&&ag(h,d)&&g.push(h)}const b=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,p=(o=(a=window.visualViewport)==null?void 0:a.height)!=null?o:innerHeight,{scrollX:S,scrollY:C}=window,{height:x,width:w,top:$,right:E,bottom:P,left:M}=e.getBoundingClientRect(),{top:O,right:T,bottom:N,left:D}=(j=>{const k=window.getComputedStyle(j);return{top:parseFloat(k.scrollMarginTop)||0,right:parseFloat(k.scrollMarginRight)||0,bottom:parseFloat(k.scrollMarginBottom)||0,left:parseFloat(k.scrollMarginLeft)||0}})(e);let L=l==="start"||l==="nearest"?$-O:l==="end"?P+N:$+x/2-O+N,_=c==="center"?M+w/2-D+T:c==="end"?E+T:M-D;const F=[];for(let j=0;j=0&&M>=0&&P<=p&&E<=b&&(k===m&&!ag(k)||$>=H&&P<=K&&M>=W&&E<=B))return F;const G=getComputedStyle(k),X=parseInt(G.borderLeftWidth,10),Y=parseInt(G.borderTopWidth,10),Z=parseInt(G.borderRightWidth,10),ee=parseInt(G.borderBottomWidth,10);let re=0,ne=0;const se="offsetWidth"in k?k.offsetWidth-k.clientWidth-X-Z:0,oe="offsetHeight"in k?k.offsetHeight-k.clientHeight-Y-ee:0,me="offsetWidth"in k?k.offsetWidth===0?0:V/k.offsetWidth:0,ue="offsetHeight"in k?k.offsetHeight===0?0:z/k.offsetHeight:0;if(m===k)re=l==="start"?L:l==="end"?L-p:l==="nearest"?og(C,C+p,p,Y,ee,C+L,C+L+x,x):L-p/2,ne=c==="start"?_:c==="center"?_-b/2:c==="end"?_-b:og(S,S+b,b,X,Z,S+_,S+_+w,w),re=Math.max(0,re+C),ne=Math.max(0,ne+S);else{re=l==="start"?L-H-Y:l==="end"?L-K+ee+oe:l==="nearest"?og(H,K,z,Y,ee+oe,L,L+x,x):L-(H+z/2)+oe/2,ne=c==="start"?_-W-X:c==="center"?_-(W+V/2)+se/2:c==="end"?_-B+Z+se:og(W,B,V,X,Z+se,_,_+w,w);const{scrollLeft:de,scrollTop:ae}=k;re=ue===0?0:Math.max(0,Math.min(ae+re/ue,k.scrollHeight-z/ue+oe)),ne=me===0?0:Math.max(0,Math.min(de+ne/me,k.scrollWidth-V/me+se)),L+=ae-re,_+=de-ne}F.push({el:k,top:re,left:ne})}return F},rX=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function aX(e,t){if(!e.isConnected||!(a=>{let o=a;for(;o&&o.parentNode;){if(o.parentNode===document)return!0;o=o.parentNode instanceof ShadowRoot?o.parentNode.host:o.parentNode}return!1})(e))return;const n=(a=>{const o=window.getComputedStyle(a);return{top:parseFloat(o.scrollMarginTop)||0,right:parseFloat(o.scrollMarginRight)||0,bottom:parseFloat(o.scrollMarginBottom)||0,left:parseFloat(o.scrollMarginLeft)||0}})(e);if((a=>typeof a=="object"&&typeof a.behavior=="function")(t))return t.behavior(KO(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:a,top:o,left:i}of KO(e,rX(t))){const l=o-n.top+n.bottom,c=i-n.left+n.right;a.scroll({top:l,left:c,behavior:r})}}function ow(e){return e!=null&&e===e.window}const MD=e=>{var t,n;if(typeof window>"u")return 0;let r=0;return ow(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!ow(e)&&typeof r!="number"&&(r=(n=((t=e.ownerDocument)!==null&&t!==void 0?t:e).documentElement)===null||n===void 0?void 0:n.scrollTop),r};function oX(e,t,n,r){const a=n-t;return e/=r/2,e<1?a/2*e*e*e+t:a/2*((e-=2)*e*e+2)+t}function TD(e,t={}){const{getContainer:n=()=>window,callback:r,duration:a=450}=t,o=n(),i=MD(o),l=Date.now(),c=()=>{const d=Date.now()-l,f=oX(d>a?a:d,i,e,a);ow(o)?o.scrollTo(window.pageXOffset,f):o instanceof Document||o.constructor.name==="HTMLDocument"?o.documentElement.scrollTop=f:o.scrollTop=f,d{const[,,,,t]=Rr();return t?`${e}-css-var`:""};var lt={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,N:78,P:80,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,EQUALS:187,WIN_KEY:224},ND=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,a=e.className,o=e.duration,i=o===void 0?4.5:o,l=e.showProgress,c=e.pauseOnHover,u=c===void 0?!0:c,d=e.eventKey,f=e.content,m=e.closable,g=e.closeIcon,h=g===void 0?"x":g,b=e.props,p=e.onClick,S=e.onNoticeClose,C=e.times,x=e.hovering,w=s.useState(!1),$=fe(w,2),E=$[0],P=$[1],M=s.useState(0),O=fe(M,2),T=O[0],N=O[1],D=s.useState(0),L=fe(D,2),_=L[0],F=L[1],j=x||E,k=i>0&&l,z=function(){S(d)},V=function(X){(X.key==="Enter"||X.code==="Enter"||X.keyCode===lt.ENTER)&&z()};s.useEffect(function(){if(!j&&i>0){var G=Date.now()-_,X=setTimeout(function(){z()},i*1e3-_);return function(){u&&clearTimeout(X),F(Date.now()-G)}}},[i,j,C]),s.useEffect(function(){if(!j&&k&&(u||_===0)){var G=performance.now(),X,Y=function Z(){cancelAnimationFrame(X),X=requestAnimationFrame(function(ee){var re=ee+_-G,ne=Math.min(re/(i*1e3),1);N(ne*100),ne<1&&Z()})};return Y(),function(){u&&cancelAnimationFrame(X)}}},[i,_,j,k,C]);var H=s.useMemo(function(){return st(m)==="object"&&m!==null?m:m?{closeIcon:h}:{}},[m,h]),B=Qn(H,!0),K=100-(!T||T<0?0:T>100?100:T),W="".concat(n,"-notice");return s.createElement("div",xe({},b,{ref:t,className:le(W,a,q({},"".concat(W,"-closable"),m)),style:r,onMouseEnter:function(X){var Y;P(!0),b==null||(Y=b.onMouseEnter)===null||Y===void 0||Y.call(b,X)},onMouseLeave:function(X){var Y;P(!1),b==null||(Y=b.onMouseLeave)===null||Y===void 0||Y.call(b,X)},onClick:p}),s.createElement("div",{className:"".concat(W,"-content")},f),m&&s.createElement("a",xe({tabIndex:0,className:"".concat(W,"-close"),onKeyDown:V,"aria-label":"Close"},B,{onClick:function(X){X.preventDefault(),X.stopPropagation(),z()}}),H.closeIcon),k&&s.createElement("progress",{className:"".concat(W,"-progress"),max:"100",value:K},K+"%"))}),_D=Q.createContext({}),jD=function(t){var n=t.children,r=t.classNames;return Q.createElement(_D.Provider,{value:{classNames:r}},n)},qO=8,UO=3,GO=16,iX=function(t){var n={offset:qO,threshold:UO,gap:GO};if(t&&st(t)==="object"){var r,a,o;n.offset=(r=t.offset)!==null&&r!==void 0?r:qO,n.threshold=(a=t.threshold)!==null&&a!==void 0?a:UO,n.gap=(o=t.gap)!==null&&o!==void 0?o:GO}return[!!t,n]},lX=["className","style","classNames","styles"],sX=function(t){var n=t.configList,r=t.placement,a=t.prefixCls,o=t.className,i=t.style,l=t.motion,c=t.onAllNoticeRemoved,u=t.onNoticeClose,d=t.stack,f=s.useContext(_D),m=f.classNames,g=s.useRef({}),h=s.useState(null),b=fe(h,2),p=b[0],S=b[1],C=s.useState([]),x=fe(C,2),w=x[0],$=x[1],E=n.map(function(j){return{config:j,key:String(j.key)}}),P=iX(d),M=fe(P,2),O=M[0],T=M[1],N=T.offset,D=T.threshold,L=T.gap,_=O&&(w.length>0||E.length<=D),F=typeof l=="function"?l(r):l;return s.useEffect(function(){O&&w.length>1&&$(function(j){return j.filter(function(k){return E.some(function(z){var V=z.key;return k===V})})})},[w,E,O]),s.useEffect(function(){var j;if(O&&g.current[(j=E[E.length-1])===null||j===void 0?void 0:j.key]){var k;S(g.current[(k=E[E.length-1])===null||k===void 0?void 0:k.key])}},[E,O]),Q.createElement(sE,xe({key:r,className:le(a,"".concat(a,"-").concat(r),m?.list,o,q(q({},"".concat(a,"-stack"),!!O),"".concat(a,"-stack-expanded"),_)),style:i,keys:E,motionAppear:!0},F,{onAllRemoved:function(){c(r)}}),function(j,k){var z=j.config,V=j.className,H=j.style,B=j.index,K=z,W=K.key,G=K.times,X=String(W),Y=z,Z=Y.className,ee=Y.style,re=Y.classNames,ne=Y.styles,se=Ue(Y,lX),oe=E.findIndex(function(Se){return Se.key===X}),me={};if(O){var ue=E.length-1-(oe>-1?oe:B-1),de=r==="top"||r==="bottom"?"-50%":"0";if(ue>0){var ae,ie,ge;me.height=_?(ae=g.current[X])===null||ae===void 0?void 0:ae.offsetHeight:p?.offsetHeight;for(var pe=0,be=0;be-1?g.current[X]=Ee:delete g.current[X]},prefixCls:a,classNames:re,styles:ne,className:le(Z,m?.notice),style:ee,times:G,key:W,eventKey:W,onNoticeClose:u,hovering:O&&w.length>0})))})},cX=s.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,a=e.container,o=e.motion,i=e.maxCount,l=e.className,c=e.style,u=e.onAllRemoved,d=e.stack,f=e.renderNotifications,m=s.useState([]),g=fe(m,2),h=g[0],b=g[1],p=function(O){var T,N=h.find(function(D){return D.key===O});N==null||(T=N.onClose)===null||T===void 0||T.call(N),b(function(D){return D.filter(function(L){return L.key!==O})})};s.useImperativeHandle(t,function(){return{open:function(O){b(function(T){var N=Te(T),D=N.findIndex(function(F){return F.key===O.key}),L=R({},O);if(D>=0){var _;L.times=(((_=T[D])===null||_===void 0?void 0:_.times)||0)+1,N[D]=L}else L.times=0,N.push(L);return i>0&&N.length>i&&(N=N.slice(-i)),N})},close:function(O){p(O)},destroy:function(){b([])}}});var S=s.useState({}),C=fe(S,2),x=C[0],w=C[1];s.useEffect(function(){var M={};h.forEach(function(O){var T=O.placement,N=T===void 0?"topRight":T;N&&(M[N]=M[N]||[],M[N].push(O))}),Object.keys(x).forEach(function(O){M[O]=M[O]||[]}),w(M)},[h]);var $=function(O){w(function(T){var N=R({},T),D=N[O]||[];return D.length||delete N[O],N})},E=s.useRef(!1);if(s.useEffect(function(){Object.keys(x).length>0?E.current=!0:E.current&&(u?.(),E.current=!1)},[x]),!a)return null;var P=Object.keys(x);return kr.createPortal(s.createElement(s.Fragment,null,P.map(function(M){var O=x[M],T=s.createElement(sX,{key:M,configList:O,placement:M,prefixCls:r,className:l?.(M),style:c?.(M),motion:o,onNoticeClose:p,onAllNoticeRemoved:$,stack:d});return f?f(T,{prefixCls:r,key:M}):T})),a)}),uX=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],dX=function(){return document.body},XO=0;function fX(){for(var e={},t=arguments.length,n=new Array(t),r=0;r0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?dX:t,r=e.motion,a=e.prefixCls,o=e.maxCount,i=e.className,l=e.style,c=e.onAllRemoved,u=e.stack,d=e.renderNotifications,f=Ue(e,uX),m=s.useState(),g=fe(m,2),h=g[0],b=g[1],p=s.useRef(),S=s.createElement(cX,{container:h,ref:p,prefixCls:a,motion:r,maxCount:o,className:i,style:l,onAllRemoved:c,stack:u,renderNotifications:d}),C=s.useState([]),x=fe(C,2),w=x[0],$=x[1],E=Gt(function(M){var O=fX(f,M);(O.key===null||O.key===void 0)&&(O.key="rc-notification-".concat(XO),XO+=1),$(function(T){return[].concat(Te(T),[{type:"open",config:O}])})}),P=s.useMemo(function(){return{open:E,close:function(O){$(function(T){return[].concat(Te(T),[{type:"close",key:O}])})},destroy:function(){$(function(O){return[].concat(Te(O),[{type:"destroy"}])})}}},[]);return s.useEffect(function(){b(n())}),s.useEffect(function(){if(p.current&&w.length){w.forEach(function(T){switch(T.type){case"open":p.current.open(T.config);break;case"close":p.current.close(T.key);break;case"destroy":p.current.destroy();break}});var M,O;$(function(T){return(M!==T||!O)&&(M=T,O=T.filter(function(N){return!w.includes(N)})),O})}},[w]),[P,S]}var vX={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},mX=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:vX}))},wa=s.forwardRef(mX);function Hf(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{n[r]!==void 0&&(t[r]=n[r])})}),t}function $u(e){if(!e)return;const{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}}function YO(e){const{closable:t,closeIcon:n}=e||{};return Q.useMemo(()=>{if(!t&&(t===!1||n===!1||n===null))return!1;if(t===void 0&&n===void 0)return null;let r={closeIcon:typeof n!="boolean"&&n!==null?n:void 0};return t&&typeof t=="object"&&(r=Object.assign(Object.assign({},r),t)),r},[t,n])}const gX={},uE=(e,t,n=gX)=>{const r=YO(e),a=YO(t),[o]=zr("global",Ka.global),i=typeof r!="boolean"?!!r?.disabled:!1,l=Q.useMemo(()=>Object.assign({closeIcon:Q.createElement(vo,null)},n),[n]),c=Q.useMemo(()=>r===!1?!1:r?Hf(l,a,r):a===!1?!1:a?Hf(l,a):l.closable?l:!1,[r,a,l]);return Q.useMemo(()=>{var u,d;if(c===!1)return[!1,null,i,{}];const{closeIconRender:f}=l,{closeIcon:m}=c;let g=m;const h=Qn(c,!0);return g!=null&&(f&&(g=f(m)),g=Q.isValidElement(g)?Q.cloneElement(g,Object.assign(Object.assign(Object.assign({},g.props),{"aria-label":(d=(u=g.props)===null||u===void 0?void 0:u["aria-label"])!==null&&d!==void 0?d:o.close}),h)):Q.createElement("span",Object.assign({"aria-label":o.close},h),g)),[!0,g,i,h]},[i,o.close,c,l])},yh=()=>Q.useReducer(e=>e+1,0);function FD(e,...t){const n=e||{};return t.reduce((r,a)=>(Object.keys(a||{}).forEach(o=>{const i=n[o],l=a[o];if(i&&typeof i=="object")if(l&&typeof l=="object")r[o]=FD(i,r[o],l);else{const{_default:c}=i;c&&(r[o]=r[o]||{},r[o][c]=le(r[o][c],l))}else r[o]=le(r[o],l)}),r),{})}function pX(e,...t){return s.useMemo(()=>FD.apply(void 0,[e].concat(t)),[t,e])}function hX(...e){return s.useMemo(()=>e.reduce((t,n={})=>(Object.keys(n).forEach(r=>{t[r]=Object.assign(Object.assign({},t[r]),n[r])}),t),{}),[e])}function iw(e,t){const n=Object.assign({},e);return Object.keys(t).forEach(r=>{if(r!=="_default"){const a=t[r],o=n[r]||{};n[r]=a?iw(o,a):o}}),n}const bX=(e,t,n)=>{const r=pX.apply(void 0,[n].concat(Te(e))),a=hX.apply(void 0,Te(t));return s.useMemo(()=>[iw(r,n),iw(a,n)],[r,a,n])},lw=e=>{const[t,n]=s.useState(null);return[s.useCallback((a,o,i)=>{const l=t??a,c=Math.min(l||0,a),u=Math.max(l||0,a),d=o.slice(c,u+1).map(e),f=d.some(g=>!i.has(g)),m=[];return d.forEach(g=>{f?(i.has(g)||m.push(g),i.add(g)):(i.delete(g),m.push(g))}),n(f?u:null),m},[t]),n]},yX=()=>{const[e,t]=s.useState([]),n=s.useCallback(r=>(t(a=>[].concat(Te(a),[r])),()=>{t(a=>a.filter(o=>o!==r))}),[]);return[e,n]};function CX(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(n=>{if(!(n in e._antProxy)){const r=e[n];e._antProxy[n]=r,e[n]=t[n]}}),e}const SX=(e,t)=>s.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy<"u"?new Proxy(r,{get(a,o){return n[o]?n[o]:Reflect.get(a,o)}}):CX(r,n)}),xX=e=>{const t=s.useRef(e),[,n]=yh();return[()=>t.current,r=>{t.current=r,n()}]},uv=Q.createContext(void 0),kl=100,wX=10,dE=kl*wX,kD={Modal:kl,Drawer:kl,Popover:kl,Popconfirm:kl,Tooltip:kl,Tour:kl,FloatButton:kl},$X={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function EX(e){return e in kD}const Ua=(e,t)=>{const[,n]=Rr(),r=Q.useContext(uv),a=EX(e);let o;if(t!==void 0)o=[t,t];else{let i=r??0;a?i+=(r?0:n.zIndexPopupBase)+kD[e]:i+=$X[e],o=[r===void 0?t:i,i]}return o},PX=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:a,colorSuccess:o,colorError:i,colorWarning:l,colorInfo:c,fontSizeLG:u,motionEaseInOutCirc:d,motionDurationSlow:f,marginXS:m,paddingXS:g,borderRadiusLG:h,zIndexPopup:b,contentPadding:p,contentBg:S}=e,C=`${t}-notice`,x=new an("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:g,transform:"translateY(0)",opacity:1}}),w=new an("MessageMoveOut",{"0%":{maxHeight:e.height,padding:g,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),$={padding:g,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:m,fontSize:u},[`${C}-content`]:{display:"inline-block",padding:p,background:S,borderRadius:h,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:o},[`${t}-error > ${n}`]:{color:i},[`${t}-warning > ${n}`]:{color:l},[`${t}-info > ${n}, - ${t}-loading > ${n}`]:{color:c}};return[{[t]:Object.assign(Object.assign({},fn(e)),{color:a,position:"fixed",top:m,width:"100%",pointerEvents:"none",zIndex:b,[`${t}-move-up`]:{animationFillMode:"forwards"},[` - ${t}-move-up-appear, - ${t}-move-up-enter - `]:{animationName:x,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[` - ${t}-move-up-appear${t}-move-up-appear-active, - ${t}-move-up-enter${t}-move-up-enter-active - `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:w,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${C}-wrapper`]:Object.assign({},$)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},$),{padding:0,textAlign:"start"})}]},OX=e=>({zIndexPopup:e.zIndexPopupBase+dE+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),LD=rn("Message",e=>{const t=Xt(e,{height:150});return PX(t)},OX);var RX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);as.createElement("div",{className:le(`${e}-custom-content`,`${e}-${t}`)},n||IX[t],s.createElement("span",null,r)),MX=e=>{const{prefixCls:t,className:n,type:r,icon:a,content:o}=e,i=RX(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:l}=s.useContext(Ot),c=t||l("message"),u=zn(c),[d,f,m]=LD(c,u);return d(s.createElement(ND,Object.assign({},i,{prefixCls:c,className:le(n,f,`${c}-notice-pure-panel`,m,u),eventKey:"pure",duration:null,content:s.createElement(zD,{prefixCls:c,type:r,icon:a},o)})))};function TX(e,t){return{motionName:t??`${e}-move-up`}}function fE(e){let t;const n=new Promise(a=>{t=e(()=>{a(!0)})}),r=()=>{t?.()};return r.then=(a,o)=>n.then(a,o),r.promise=n,r}var NX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const n=zn(t),[r,a,o]=LD(t,n);return r(s.createElement(jD,{classNames:{list:le(a,o,n)}},e))},FX=(e,{prefixCls:t,key:n})=>s.createElement(DX,{prefixCls:t,key:n},e),kX=s.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:a,maxCount:o,duration:i=jX,rtl:l,transitionName:c,onAllRemoved:u}=e,{getPrefixCls:d,getPopupContainer:f,message:m,direction:g}=s.useContext(Ot),h=r||d("message"),b=()=>({left:"50%",transform:"translateX(-50%)",top:n??_X}),p=()=>le({[`${h}-rtl`]:l??g==="rtl"}),S=()=>TX(h,c),C=s.createElement("span",{className:`${h}-close-x`},s.createElement(vo,{className:`${h}-close-icon`})),[x,w]=DD({prefixCls:h,style:b,className:p,motion:S,closable:!1,closeIcon:C,duration:i,getContainer:()=>a?.()||f?.()||document.body,maxCount:o,onAllRemoved:u,renderNotifications:FX});return s.useImperativeHandle(t,()=>Object.assign(Object.assign({},x),{prefixCls:h,message:m})),w});let QO=0;function AD(e){const t=s.useRef(null);return Ni(),[s.useMemo(()=>{const r=c=>{var u;(u=t.current)===null||u===void 0||u.close(c)},a=c=>{if(!t.current){const E=()=>{};return E.then=()=>{},E}const{open:u,prefixCls:d,message:f}=t.current,m=`${d}-notice`,{content:g,icon:h,type:b,key:p,className:S,style:C,onClose:x}=c,w=NX(c,["content","icon","type","key","className","style","onClose"]);let $=p;return $==null&&(QO+=1,$=`antd-message-${QO}`),fE(E=>(u(Object.assign(Object.assign({},w),{key:$,content:s.createElement(zD,{prefixCls:d,type:b,icon:h},g),placement:"top",className:le(b&&`${m}-${b}`,S,f?.className),style:Object.assign(Object.assign({},f?.style),C),onClose:()=>{x?.(),E()}})),()=>{r($)}))},i={open:a,destroy:c=>{var u;c!==void 0?r(c):(u=t.current)===null||u===void 0||u.destroy()}};return["info","success","warning","error","loading"].forEach(c=>{const u=(d,f,m)=>{let g;d&&typeof d=="object"&&"content"in d?g=d:g={content:d};let h,b;typeof f=="function"?b=f:(h=f,b=m);const p=Object.assign(Object.assign({onClose:b,duration:h},g),{type:c});return a(p)};i[c]=u}),i},[]),s.createElement(kX,Object.assign({key:"message-holder"},e,{ref:t}))]}function BD(e){return AD(e)}function HD(e,t){this.v=e,this.k=t}function Ca(e,t,n,r){var a=Object.defineProperty;try{a({},"",{})}catch{a=0}Ca=function(i,l,c,u){function d(f,m){Ca(i,f,function(g){return this._invoke(f,m,g)})}l?a?a(i,l,{value:c,enumerable:!u,configurable:!u,writable:!u}):i[l]=c:(d("next",0),d("throw",1),d("return",2))},Ca(e,t,n,r)}function vE(){var e,t,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function o(g,h,b,p){var S=h&&h.prototype instanceof l?h:l,C=Object.create(S.prototype);return Ca(C,"_invoke",(function(x,w,$){var E,P,M,O=0,T=$||[],N=!1,D={p:0,n:0,v:e,a:L,f:L.bind(e,4),d:function(F,j){return E=F,P=0,M=e,D.n=j,i}};function L(_,F){for(P=_,M=F,t=0;!N&&O&&!j&&t3?(j=V===F)&&(M=k[(P=k[4])?5:(P=3,3)],k[4]=k[5]=e):k[0]<=z&&((j=_<2&&zF||F>V)&&(k[4]=_,k[5]=F,D.n=V,P=0))}if(j||_>1)return i;throw N=!0,F}return function(_,F,j){if(O>1)throw TypeError("Generator is already running");for(N&&F===1&&L(F,j),P=F,M=j;(t=P<2?e:M)||!N;){E||(P?P<3?(P>1&&(D.n=-1),L(P,M)):D.n=M:D.v=M);try{if(O=2,E){if(P||(_="next"),t=E[_]){if(!(t=t.call(E,M)))throw TypeError("iterator result is not an object");if(!t.done)return t;M=t.value,P<2&&(P=0)}else P===1&&(t=E.return)&&t.call(E),P<2&&(M=TypeError("The iterator does not provide a '"+_+"' method"),P=1);E=e}else if((t=(N=D.n<0)?M:x.call(w,D))!==i)break}catch(k){E=e,P=1,M=k}finally{O=1}}return{value:t,done:N}}})(g,b,p),!0),C}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var d=[][r]?t(t([][r]())):(Ca(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(d);function m(g){return Object.setPrototypeOf?Object.setPrototypeOf(g,u):(g.__proto__=u,Ca(g,a,"GeneratorFunction")),g.prototype=Object.create(f),g}return c.prototype=u,Ca(f,"constructor",u),Ca(u,"constructor",c),c.displayName="GeneratorFunction",Ca(u,a,"GeneratorFunction"),Ca(f),Ca(f,a,"Generator"),Ca(f,r,function(){return this}),Ca(f,"toString",function(){return"[object Generator]"}),(vE=function(){return{w:o,m}})()}function Ep(e,t){function n(a,o,i,l){try{var c=e[a](o),u=c.value;return u instanceof HD?t.resolve(u.v).then(function(d){n("next",d,i,l)},function(d){n("throw",d,i,l)}):t.resolve(u).then(function(d){c.value=d,i(c)},function(d){return n("throw",d,i,l)})}catch(d){l(d)}}var r;this.next||(Ca(Ep.prototype),Ca(Ep.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),Ca(this,"_invoke",function(a,o,i){function l(){return new t(function(c,u){n(a,i,c,u)})}return r=r?r.then(l,l):l()},!0)}function VD(e,t,n,r,a){return new Ep(vE().w(e,t,n,r),a||Promise)}function LX(e,t,n,r,a){var o=VD(e,t,n,r,a);return o.next().then(function(i){return i.done?i.value:o.next()})}function zX(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function a(){for(;n.length;)if((r=n.pop())in t)return a.value=r,a.done=!1,a;return a.done=!0,a}}function ZO(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(st(e)+" is not iterable")}function ut(){var e=vE(),t=e.m(ut),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(i){var l=typeof i=="function"&&i.constructor;return!!l&&(l===n||(l.displayName||l.name)==="GeneratorFunction")}var a={throw:1,return:2,break:3,continue:3};function o(i){var l,c;return function(u){l||(l={stop:function(){return c(u.a,2)},catch:function(){return u.v},abrupt:function(f,m){return c(u.a,a[f],m)},delegateYield:function(f,m,g){return l.resultName=m,c(u.d,ZO(f),g)},finish:function(f){return c(u.f,f)}},c=function(f,m,g){u.p=l.prev,u.n=l.next;try{return f(m,g)}finally{l.next=u.n}}),l.resultName&&(l[l.resultName]=u.v,l.resultName=void 0),l.sent=u.v,l.next=u.n;try{return i.call(this,l)}finally{u.p=l.prev,u.n=l.next}}}return(ut=function(){return{wrap:function(c,u,d,f){return e.w(o(c),u,d,f&&f.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(c,u){return new HD(c,u)},AsyncIterator:Ep,async:function(c,u,d,f,m){return(r(u)?VD:LX)(o(c),u,d,f,m)},keys:zX,values:ZO}})()}function JO(e,t,n,r,a,o,i){try{var l=e[o](i),c=l.value}catch(u){return void n(u)}l.done?t(c):Promise.resolve(c).then(r,a)}function en(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var o=e.apply(t,n);function i(c){JO(o,r,a,i,l,"next",c)}function l(c){JO(o,r,a,i,l,"throw",c)}i(void 0)})}}var dv=R({},aK),AX=dv.version,ky=dv.render,BX=dv.unmountComponentAtNode,Ch;try{var HX=Number((AX||"").split(".")[0]);HX>=18&&(Ch=dv.createRoot)}catch{}function eR(e){var t=dv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&st(t)==="object"&&(t.usingClientEntryPoint=e)}var Pp="__rc_react_root__";function VX(e,t){eR(!0);var n=t[Pp]||Ch(t);eR(!1),n.render(e),t[Pp]=n}function WX(e,t){ky?.(e,t)}function KX(e,t){if(Ch){VX(e,t);return}WX(e,t)}function qX(e){return sw.apply(this,arguments)}function sw(){return sw=en(ut().mark(function e(t){return ut().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var a;(a=t[Pp])===null||a===void 0||a.unmount(),delete t[Pp]}));case 1:case"end":return r.stop()}},e)})),sw.apply(this,arguments)}function UX(e){BX(e)}function GX(e){return cw.apply(this,arguments)}function cw(){return cw=en(ut().mark(function e(t){return ut().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(Ch===void 0){r.next=2;break}return r.abrupt("return",qX(t));case 2:UX(t);case 3:case"end":return r.stop()}},e)})),cw.apply(this,arguments)}const XX=(e,t)=>(KX(e,t),()=>GX(t));let YX=XX;function mE(e){return YX}const Ly=()=>({height:0,opacity:0}),tR=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},QX=e=>({height:e?e.offsetHeight:0}),zy=(e,t)=>t?.deadline===!0||t.propertyName==="height",Eu=(e=Bf)=>({motionName:`${e}-motion-collapse`,onAppearStart:Ly,onEnterStart:Ly,onAppearActive:tR,onEnterActive:tR,onLeaveStart:QX,onLeaveActive:Ly,onAppearEnd:zy,onEnterEnd:zy,onLeaveEnd:zy,motionDeadline:500}),aa=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function Qt(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}const Vu=(function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var a=e.getBoundingClientRect(),o=a.width,i=a.height;if(o||i)return!0}}return!1}),ZX=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},JX=cD("Wave",ZX),Sh=`${Bf}-wave-target`;function eY(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"&&e!=="canvastext"}function tY(e){var t;const{borderTopColor:n,borderColor:r,backgroundColor:a}=getComputedStyle(e);return(t=[n,r,a].find(eY))!==null&&t!==void 0?t:null}function Ay(e){return Number.isNaN(e)?0:e}const nY=e=>{const{className:t,target:n,component:r,registerUnmount:a}=e,o=s.useRef(null),i=s.useRef(null);s.useEffect(()=>{i.current=a()},[]);const[l,c]=s.useState(null),[u,d]=s.useState([]),[f,m]=s.useState(0),[g,h]=s.useState(0),[b,p]=s.useState(0),[S,C]=s.useState(0),[x,w]=s.useState(!1),$={left:f,top:g,width:b,height:S,borderRadius:u.map(M=>`${M}px`).join(" ")};l&&($["--wave-color"]=l);function E(){const M=getComputedStyle(n);c(tY(n));const O=M.position==="static",{borderLeftWidth:T,borderTopWidth:N}=M;m(O?n.offsetLeft:Ay(-Number.parseFloat(T))),h(O?n.offsetTop:Ay(-Number.parseFloat(N))),p(n.offsetWidth),C(n.offsetHeight);const{borderTopLeftRadius:D,borderTopRightRadius:L,borderBottomLeftRadius:_,borderBottomRightRadius:F}=M;d([D,L,F,_].map(j=>Ay(Number.parseFloat(j))))}if(s.useEffect(()=>{if(n){const M=ln(()=>{E(),w(!0)});let O;return typeof ResizeObserver<"u"&&(O=new ResizeObserver(E),O.observe(n)),()=>{ln.cancel(M),O?.disconnect()}}},[n]),!x)return null;const P=(r==="Checkbox"||r==="Radio")&&n?.classList.contains(Sh);return s.createElement(Nr,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(M,O)=>{var T,N;if(O.deadline||O.propertyName==="opacity"){const D=(T=o.current)===null||T===void 0?void 0:T.parentElement;(N=i.current)===null||N===void 0||N.call(i).then(()=>{D?.remove()})}return!1}},({className:M},O)=>s.createElement("div",{ref:wr(o,O),className:le(t,M,{"wave-quick":P}),style:$}))},rY=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const a=document.createElement("div");a.style.position="absolute",a.style.left="0px",a.style.top="0px",e?.insertBefore(a,e?.firstChild);const o=mE();let i=null;function l(){return i}i=o(s.createElement(nY,Object.assign({},t,{target:e,registerUnmount:l})),a)},aY=(e,t,n)=>{const{wave:r}=s.useContext(Ot),[,a,o]=Rr(),i=Gt(u=>{const d=e.current;if(r?.disabled||!d)return;const f=d.querySelector(`.${Sh}`)||d,{showEffect:m}=r||{};(m||rY)(f,{className:t,token:a,component:n,event:u,hashId:o})}),l=s.useRef(null);return u=>{ln.cancel(l.current),l.current=ln(()=>{i(u)})}},fv=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:a}=s.useContext(Ot),o=s.useRef(null),i=a("wave"),[,l]=JX(i),c=aY(o,le(i,l),r);if(Q.useEffect(()=>{const d=o.current;if(!d||d.nodeType!==window.Node.ELEMENT_NODE||n)return;const f=m=>{!Vu(m.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")&&!d.className.includes("disabled:")||d.getAttribute("aria-disabled")==="true"||d.className.includes("-leave")||c(m)};return d.addEventListener("click",f,!0),()=>{d.removeEventListener("click",f,!0)}},[n]),!Q.isValidElement(t))return t??null;const u=ni(t)?wr(ns(t),o):o;return xr(t,{ref:u})},ar=e=>{const t=Q.useContext(Vs);return Q.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},oY=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},iY=rn(["Space","Compact"],e=>[oY(e)],()=>({}),{resetStyle:!1});var WD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const n=s.useContext(xh),r=s.useMemo(()=>{if(!n)return"";const{compactDirection:a,isFirstItem:o,isLastItem:i}=n,l=a==="vertical"?"-vertical-":"-";return le(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:o,[`${e}-compact${l}last-item`]:i,[`${e}-compact${l}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n?.compactSize,compactDirection:n?.compactDirection,compactItemClassnames:r}},lY=e=>{const{children:t}=e;return s.createElement(xh.Provider,{value:null},t)},sY=e=>{const{children:t}=e,n=WD(e,["children"]);return s.createElement(xh.Provider,{value:s.useMemo(()=>n,[n])},t)},cY=e=>{const{getPrefixCls:t,direction:n}=s.useContext(Ot),{size:r,direction:a,block:o,prefixCls:i,className:l,rootClassName:c,children:u}=e,d=WD(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=ar(x=>r??x),m=t("space-compact",i),[g,h]=iY(m),b=le(m,h,{[`${m}-rtl`]:n==="rtl",[`${m}-block`]:o,[`${m}-vertical`]:a==="vertical"},l,c),p=s.useContext(xh),S=Xn(u),C=s.useMemo(()=>S.map((x,w)=>{const $=x?.key||`${m}-item-${w}`;return s.createElement(sY,{key:$,compactSize:f,compactDirection:a,isFirstItem:w===0&&(!p||p?.isFirstItem),isLastItem:w===S.length-1&&(!p||p?.isLastItem)},x)}),[S,p,a,f,m]);return S.length===0?null:g(s.createElement("div",Object.assign({className:b},d),C))};var uY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:t,direction:n}=s.useContext(Ot),{prefixCls:r,size:a,className:o}=e,i=uY(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,c]=Rr(),u=s.useMemo(()=>{switch(a){case"large":return"lg";case"small":return"sm";default:return""}},[a]),d=le(l,{[`${l}-${u}`]:u,[`${l}-rtl`]:n==="rtl"},o,c);return s.createElement(KD.Provider,{value:a},s.createElement("div",Object.assign({},i,{className:d})))},nR=/^[\u4E00-\u9FA5]{2}$/,uw=nR.test.bind(nR);function gE(e){return e==="danger"?{danger:!0}:{type:e}}function rR(e){return typeof e=="string"}function By(e){return e==="text"||e==="link"}function fY(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&rR(e.type)&&uw(e.props.children)?xr(e,{children:e.props.children.split("").join(n)}):rR(e)?uw(e)?Q.createElement("span",null,e.split("").join(n)):Q.createElement("span",null,e):RD(e)?Q.createElement("span",null,e):e}function vY(e,t){let n=!1;const r=[];return Q.Children.forEach(e,a=>{const o=typeof a,i=o==="string"||o==="number";if(n&&i){const l=r.length-1,c=r[l];r[l]=`${c}${a}`}else r.push(a);n=i}),Q.Children.map(r,a=>fY(a,t))}["default","primary","danger"].concat(Te(Yl));const qD=s.forwardRef((e,t)=>{const{className:n,style:r,children:a,prefixCls:o}=e,i=le(`${o}-icon`,n);return Q.createElement("span",{ref:t,className:i,style:r},a)}),aR=s.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:a,iconClassName:o}=e,i=le(`${n}-loading-icon`,r);return Q.createElement(qD,{prefixCls:n,className:i,style:a,ref:t},Q.createElement(wa,{className:o}))}),Hy=()=>({width:0,opacity:0,transform:"scale(0)"}),Vy=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),mY=e=>{const{prefixCls:t,loading:n,existIcon:r,className:a,style:o,mount:i}=e,l=!!n;return r?Q.createElement(aR,{prefixCls:t,className:a,style:o}):Q.createElement(Nr,{visible:l,motionName:`${t}-loading-icon-motion`,motionAppear:!i,motionEnter:!i,motionLeave:!i,removeOnLeave:!0,onAppearStart:Hy,onAppearActive:Vy,onEnterStart:Hy,onEnterActive:Vy,onLeaveStart:Vy,onLeaveActive:Hy},({className:c,style:u},d)=>{const f=Object.assign(Object.assign({},o),u);return Q.createElement(aR,{prefixCls:t,className:le(a,c),style:f,ref:d})})},oR=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),gY=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:a,colorErrorHover:o}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},oR(`${t}-primary`,a),oR(`${t}-danger`,o)]}};var pY=["b"],hY=["v"],Wy=function(t){return Math.round(Number(t||0))},bY=function(t){if(t instanceof dn)return t;if(t&&st(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,a=Ue(n,pY);return R(R({},a),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},ai=(function(e){ma(n,e);var t=Ea(n);function n(r){return kn(this,n),t.call(this,bY(r))}return Ln(n,[{key:"toHsbString",value:function(){var a=this.toHsb(),o=Wy(a.s*100),i=Wy(a.b*100),l=Wy(a.h),c=a.a,u="hsb(".concat(l,", ").concat(o,"%, ").concat(i,"%)"),d="hsba(".concat(l,", ").concat(o,"%, ").concat(i,"%, ").concat(c.toFixed(c===0?0:2),")");return c===1?u:d}},{key:"toHsb",value:function(){var a=this.toHsv(),o=a.v,i=Ue(a,hY);return R(R({},i),{},{b:o,a:this.a})}}]),n})(dn),yY="rc-color-picker",cu=function(t){return t instanceof ai?t:new ai(t)},CY=cu("#1677ff"),UD=function(t){var n=t.offset,r=t.targetRef,a=t.containerRef,o=t.color,i=t.type,l=a.current.getBoundingClientRect(),c=l.width,u=l.height,d=r.current.getBoundingClientRect(),f=d.width,m=d.height,g=f/2,h=m/2,b=(n.x+g)/c,p=1-(n.y+h)/u,S=o.toHsb(),C=b,x=(n.x+g)/c*360;if(i)switch(i){case"hue":return cu(R(R({},S),{},{h:x<=0?0:x}));case"alpha":return cu(R(R({},S),{},{a:C<=0?0:C}))}return cu({h:S.h,s:b<=0?0:b,b:p>=1?1:p,a:S.a})},GD=function(t,n){var r=t.toHsb();switch(n){case"hue":return{x:r.h/360*100,y:50};case"alpha":return{x:t.a*100,y:50};default:return{x:r.s*100,y:(1-r.b)*100}}},pE=function(t){var n=t.color,r=t.prefixCls,a=t.className,o=t.style,i=t.onClick,l="".concat(r,"-color-block");return Q.createElement("div",{className:le(l,a),style:o,onClick:i},Q.createElement("div",{className:"".concat(l,"-inner"),style:{background:n}}))};function SY(e){var t="touches"in e?e.touches[0]:e,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-n,pageY:t.pageY-r}}function XD(e){var t=e.targetRef,n=e.containerRef,r=e.direction,a=e.onDragChange,o=e.onDragChangeComplete,i=e.calculate,l=e.color,c=e.disabledDrag,u=s.useState({x:0,y:0}),d=fe(u,2),f=d[0],m=d[1],g=s.useRef(null),h=s.useRef(null);s.useEffect(function(){m(i())},[l]),s.useEffect(function(){return function(){document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",h.current),document.removeEventListener("touchmove",g.current),document.removeEventListener("touchend",h.current),g.current=null,h.current=null}},[]);var b=function(w){var $=SY(w),E=$.pageX,P=$.pageY,M=n.current.getBoundingClientRect(),O=M.x,T=M.y,N=M.width,D=M.height,L=t.current.getBoundingClientRect(),_=L.width,F=L.height,j=_/2,k=F/2,z=Math.max(0,Math.min(E-O,N))-j,V=Math.max(0,Math.min(P-T,D))-k,H={x:z,y:r==="x"?f.y:V};if(_===0&&F===0||_!==F)return!1;a?.(H)},p=function(w){w.preventDefault(),b(w)},S=function(w){w.preventDefault(),document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",h.current),document.removeEventListener("touchmove",g.current),document.removeEventListener("touchend",h.current),g.current=null,h.current=null,o?.()},C=function(w){document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",h.current),!c&&(b(w),document.addEventListener("mousemove",p),document.addEventListener("mouseup",S),document.addEventListener("touchmove",p),document.addEventListener("touchend",S),g.current=p,h.current=S)};return[f,C]}var YD=function(t){var n=t.size,r=n===void 0?"default":n,a=t.color,o=t.prefixCls;return Q.createElement("div",{className:le("".concat(o,"-handler"),q({},"".concat(o,"-handler-sm"),r==="small")),style:{backgroundColor:a}})},QD=function(t){var n=t.children,r=t.style,a=t.prefixCls;return Q.createElement("div",{className:"".concat(a,"-palette"),style:R({position:"relative"},r)},n)},ZD=s.forwardRef(function(e,t){var n=e.children,r=e.x,a=e.y;return Q.createElement("div",{ref:t,style:{position:"absolute",left:"".concat(r,"%"),top:"".concat(a,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},n)}),xY=function(t){var n=t.color,r=t.onChange,a=t.prefixCls,o=t.onChangeComplete,i=t.disabled,l=s.useRef(),c=s.useRef(),u=s.useRef(n),d=Gt(function(b){var p=UD({offset:b,targetRef:c,containerRef:l,color:n});u.current=p,r(p)}),f=XD({color:n,containerRef:l,targetRef:c,calculate:function(){return GD(n)},onDragChange:d,onDragChangeComplete:function(){return o?.(u.current)},disabledDrag:i}),m=fe(f,2),g=m[0],h=m[1];return Q.createElement("div",{ref:l,className:"".concat(a,"-select"),onMouseDown:h,onTouchStart:h},Q.createElement(QD,{prefixCls:a},Q.createElement(ZD,{x:g.x,y:g.y,ref:c},Q.createElement(YD,{color:n.toRgbString(),prefixCls:a})),Q.createElement("div",{className:"".concat(a,"-saturation"),style:{backgroundColor:"hsl(".concat(n.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},wY=function(t,n){var r=Tt(t,{value:n}),a=fe(r,2),o=a[0],i=a[1],l=s.useMemo(function(){return cu(o)},[o]);return[l,i]},$Y=function(t){var n=t.colors,r=t.children,a=t.direction,o=a===void 0?"to right":a,i=t.type,l=t.prefixCls,c=s.useMemo(function(){return n.map(function(u,d){var f=cu(u);return i==="alpha"&&d===n.length-1&&(f=new ai(f.setA(1))),f.toRgbString()}).join(",")},[n,i]);return Q.createElement("div",{className:"".concat(l,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(o,", ").concat(c,")")}},r)},EY=function(t){var n=t.prefixCls,r=t.colors,a=t.disabled,o=t.onChange,i=t.onChangeComplete,l=t.color,c=t.type,u=s.useRef(),d=s.useRef(),f=s.useRef(l),m=function($){return c==="hue"?$.getHue():$.a*100},g=Gt(function(w){var $=UD({offset:w,targetRef:d,containerRef:u,color:l,type:c});f.current=$,o(m($))}),h=XD({color:l,targetRef:d,containerRef:u,calculate:function(){return GD(l,c)},onDragChange:g,onDragChangeComplete:function(){i(m(f.current))},direction:"x",disabledDrag:a}),b=fe(h,2),p=b[0],S=b[1],C=Q.useMemo(function(){if(c==="hue"){var w=l.toHsb();w.s=1,w.b=1,w.a=1;var $=new ai(w);return $}return l},[l,c]),x=Q.useMemo(function(){return r.map(function(w){return"".concat(w.color," ").concat(w.percent,"%")})},[r]);return Q.createElement("div",{ref:u,className:le("".concat(n,"-slider"),"".concat(n,"-slider-").concat(c)),onMouseDown:S,onTouchStart:S},Q.createElement(QD,{prefixCls:n},Q.createElement(ZD,{x:p.x,y:p.y,ref:d},Q.createElement(YD,{size:"small",color:C.toHexString(),prefixCls:n})),Q.createElement($Y,{colors:x,type:c,prefixCls:n})))};function PY(e){return s.useMemo(function(){var t=e||{},n=t.slider;return[n||EY]},[e])}var OY=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],RY=s.forwardRef(function(e,t){var n=e.value,r=e.defaultValue,a=e.prefixCls,o=a===void 0?yY:a,i=e.onChange,l=e.onChangeComplete,c=e.className,u=e.style,d=e.panelRender,f=e.disabledAlpha,m=f===void 0?!1:f,g=e.disabled,h=g===void 0?!1:g,b=e.components,p=PY(b),S=fe(p,1),C=S[0],x=wY(r||CY,n),w=fe(x,2),$=w[0],E=w[1],P=s.useMemo(function(){return $.setA(1).toRgbString()},[$]),M=function(V,H){n||E(V),i?.(V,H)},O=function(V){return new ai($.setHue(V))},T=function(V){return new ai($.setA(V/100))},N=function(V){M(O(V),{type:"hue",value:V})},D=function(V){M(T(V),{type:"alpha",value:V})},L=function(V){l&&l(O(V))},_=function(V){l&&l(T(V))},F=le("".concat(o,"-panel"),c,q({},"".concat(o,"-panel-disabled"),h)),j={prefixCls:o,disabled:h,color:$},k=Q.createElement(Q.Fragment,null,Q.createElement(xY,xe({onChange:M},j,{onChangeComplete:l})),Q.createElement("div",{className:"".concat(o,"-slider-container")},Q.createElement("div",{className:le("".concat(o,"-slider-group"),q({},"".concat(o,"-slider-group-disabled-alpha"),m))},Q.createElement(C,xe({},j,{type:"hue",colors:OY,min:0,max:359,value:$.getHue(),onChange:N,onChangeComplete:L})),!m&&Q.createElement(C,xe({},j,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:P}],min:0,max:100,value:$.a*100,onChange:D,onChangeComplete:_}))),Q.createElement(pE,{color:$.toRgbString(),prefixCls:o})));return Q.createElement("div",{className:F,style:u,ref:t},typeof d=="function"?d(k):k)});const af=(e,t)=>e?.replace(/[^\w/]/g,"").slice(0,t?8:6)||"",IY=(e,t)=>e?af(e,t):"";let co=(function(){function e(t){kn(this,e);var n;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(n=t.colors)===null||n===void 0?void 0:n.map(a=>({color:new e(a.color),percent:a.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(({color:a,percent:o})=>({color:new e(a),percent:o})),this.metaColor=new ai(this.colors[0].color.metaColor)):this.metaColor=new ai(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Ln(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return IY(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:n}=this;return n?`linear-gradient(90deg, ${n.map(a=>`${a.color.toRgbString()} ${a.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(n){return!n||this.isGradient()!==n.isGradient()?!1:this.isGradient()?this.colors.length===n.colors.length&&this.colors.every((r,a)=>{const o=n.colors[a];return r.percent===o.percent&&r.color.equals(o.color)}):this.toHexString()===n.toHexString()}}])})();var MY={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"},TY=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:MY}))},Na=s.forwardRef(TY),JD=Q.forwardRef(function(e,t){var n=e.prefixCls,r=e.forceRender,a=e.className,o=e.style,i=e.children,l=e.isActive,c=e.role,u=e.classNames,d=e.styles,f=Q.useState(l||r),m=fe(f,2),g=m[0],h=m[1];return Q.useEffect(function(){(r||l)&&h(!0)},[r,l]),g?Q.createElement("div",{ref:t,className:le("".concat(n,"-content"),q(q({},"".concat(n,"-content-active"),l),"".concat(n,"-content-inactive"),!l),a),style:o,role:c},Q.createElement("div",{className:le("".concat(n,"-content-box"),u?.body),style:d?.body},i)):null});JD.displayName="PanelContent";var NY=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],eF=Q.forwardRef(function(e,t){var n=e.showArrow,r=n===void 0?!0:n,a=e.headerClass,o=e.isActive,i=e.onItemClick,l=e.forceRender,c=e.className,u=e.classNames,d=u===void 0?{}:u,f=e.styles,m=f===void 0?{}:f,g=e.prefixCls,h=e.collapsible,b=e.accordion,p=e.panelKey,S=e.extra,C=e.header,x=e.expandIcon,w=e.openMotion,$=e.destroyInactivePanel,E=e.children,P=Ue(e,NY),M=h==="disabled",O=S!=null&&typeof S!="boolean",T=q(q(q({onClick:function(){i?.(p)},onKeyDown:function(k){(k.key==="Enter"||k.keyCode===lt.ENTER||k.which===lt.ENTER)&&i?.(p)},role:b?"tab":"button"},"aria-expanded",o),"aria-disabled",M),"tabIndex",M?-1:0),N=typeof x=="function"?x(e):Q.createElement("i",{className:"arrow"}),D=N&&Q.createElement("div",xe({className:"".concat(g,"-expand-icon")},["header","icon"].includes(h)?T:{}),N),L=le("".concat(g,"-item"),q(q({},"".concat(g,"-item-active"),o),"".concat(g,"-item-disabled"),M),c),_=le(a,"".concat(g,"-header"),q({},"".concat(g,"-collapsible-").concat(h),!!h),d.header),F=R({className:_,style:m.header},["header","icon"].includes(h)?{}:T);return Q.createElement("div",xe({},P,{ref:t,className:L}),Q.createElement("div",F,r&&D,Q.createElement("span",xe({className:"".concat(g,"-header-text")},h==="header"?T:{}),C),O&&Q.createElement("div",{className:"".concat(g,"-extra")},S)),Q.createElement(Nr,xe({visible:o,leavedClassName:"".concat(g,"-content-hidden")},w,{forceRender:l,removeOnLeave:$}),function(j,k){var z=j.className,V=j.style;return Q.createElement(JD,{ref:k,prefixCls:g,className:z,classNames:d,style:V,styles:m,isActive:o,forceRender:l,role:b?"tabpanel":void 0},E)}))}),_Y=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],jY=function(t,n){var r=n.prefixCls,a=n.accordion,o=n.collapsible,i=n.destroyInactivePanel,l=n.onItemClick,c=n.activeKey,u=n.openMotion,d=n.expandIcon;return t.map(function(f,m){var g=f.children,h=f.label,b=f.key,p=f.collapsible,S=f.onItemClick,C=f.destroyInactivePanel,x=Ue(f,_Y),w=String(b??m),$=p??o,E=C??i,P=function(T){$!=="disabled"&&(l(T),S?.(T))},M=!1;return a?M=c[0]===w:M=c.indexOf(w)>-1,Q.createElement(eF,xe({},x,{prefixCls:r,key:w,panelKey:w,isActive:M,accordion:a,openMotion:u,expandIcon:d,header:h,collapsible:$,onItemClick:P,destroyInactivePanel:E}),g)})},DY=function(t,n,r){if(!t)return null;var a=r.prefixCls,o=r.accordion,i=r.collapsible,l=r.destroyInactivePanel,c=r.onItemClick,u=r.activeKey,d=r.openMotion,f=r.expandIcon,m=t.key||String(n),g=t.props,h=g.header,b=g.headerClass,p=g.destroyInactivePanel,S=g.collapsible,C=g.onItemClick,x=!1;o?x=u[0]===m:x=u.indexOf(m)>-1;var w=S??i,$=function(M){w!=="disabled"&&(c(M),C?.(M))},E={key:m,panelKey:m,header:h,headerClass:b,isActive:x,prefixCls:a,destroyInactivePanel:p??l,openMotion:d,accordion:o,children:t.props.children,onItemClick:$,expandIcon:f,collapsible:w};return typeof t.type=="string"?t:(Object.keys(E).forEach(function(P){typeof E[P]>"u"&&delete E[P]}),Q.cloneElement(t,E))};function FY(e,t,n){return Array.isArray(e)?jY(e,n):Xn(t).map(function(r,a){return DY(r,a,n)})}function kY(e){var t=e;if(!Array.isArray(t)){var n=st(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}var LY=Q.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,a=e.destroyInactivePanel,o=a===void 0?!1:a,i=e.style,l=e.accordion,c=e.className,u=e.children,d=e.collapsible,f=e.openMotion,m=e.expandIcon,g=e.activeKey,h=e.defaultActiveKey,b=e.onChange,p=e.items,S=le(r,c),C=Tt([],{value:g,onChange:function(O){return b?.(O)},defaultValue:h,postState:kY}),x=fe(C,2),w=x[0],$=x[1],E=function(O){return $(function(){if(l)return w[0]===O?[]:[O];var T=w.indexOf(O),N=T>-1;return N?w.filter(function(D){return D!==O}):[].concat(Te(w),[O])})};jn(!u,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var P=FY(p,u,{prefixCls:r,accordion:l,openMotion:f,expandIcon:m,collapsible:d,destroyInactivePanel:o,onItemClick:E,activeKey:w});return Q.createElement("div",xe({ref:t,className:S,style:i,role:l?"tablist":void 0},Qn(e,{aria:!0,data:!0})),P)});const hE=Object.assign(LY,{Panel:eF});hE.Panel;const zY=s.forwardRef((e,t)=>{const{getPrefixCls:n}=s.useContext(Ot),{prefixCls:r,className:a,showArrow:o=!0}=e,i=n("collapse",r),l=le({[`${i}-no-arrow`]:!o},a);return s.createElement(hE.Panel,Object.assign({ref:t},e,{prefixCls:i,className:l}))}),vv=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, - opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, - opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),AY=e=>({animationDuration:e,animationFillMode:"both"}),BY=e=>({animationDuration:e,animationFillMode:"both"}),Kl=(e,t,n,r,a=!1)=>{const o=a?"&":"";return{[` - ${o}${e}-enter, - ${o}${e}-appear - `]:Object.assign(Object.assign({},AY(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},BY(r)),{animationPlayState:"paused"}),[` - ${o}${e}-enter${e}-enter-active, - ${o}${e}-appear${e}-appear-active - `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},HY=new an("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),VY=new an("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),wh=(e,t=!1)=>{const{antCls:n}=e,r=`${n}-fade`,a=t?"&":"";return[Kl(r,HY,VY,e.motionDurationMid,t),{[` - ${a}${r}-enter, - ${a}${r}-appear - `]:{opacity:0,animationTimingFunction:"linear"},[`${a}${r}-leave`]:{animationTimingFunction:"linear"}}]},WY=new an("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),KY=new an("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),qY=new an("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),UY=new an("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),GY=new an("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),XY=new an("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),YY=new an("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),QY=new an("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),ZY={"move-up":{inKeyframes:YY,outKeyframes:QY},"move-down":{inKeyframes:WY,outKeyframes:KY},"move-left":{inKeyframes:qY,outKeyframes:UY},"move-right":{inKeyframes:GY,outKeyframes:XY}},Pu=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:o}=ZY[t];return[Kl(r,a,o,e.motionDurationMid),{[` - ${r}-enter, - ${r}-appear - `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},$h=new an("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Eh=new an("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Ph=new an("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Oh=new an("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),JY=new an("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),eQ=new an("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),tQ=new an("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),nQ=new an("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),rQ={"slide-up":{inKeyframes:$h,outKeyframes:Eh},"slide-down":{inKeyframes:Ph,outKeyframes:Oh},"slide-left":{inKeyframes:JY,outKeyframes:eQ},"slide-right":{inKeyframes:tQ,outKeyframes:nQ}},Pi=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:o}=rQ[t];return[Kl(r,a,o,e.motionDurationMid),{[` - ${r}-enter, - ${r}-appear - `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},bE=new an("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),aQ=new an("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),iR=new an("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),lR=new an("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),oQ=new an("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),iQ=new an("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),lQ=new an("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),sQ=new an("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),cQ=new an("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),uQ=new an("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),dQ=new an("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),fQ=new an("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),vQ={zoom:{inKeyframes:bE,outKeyframes:aQ},"zoom-big":{inKeyframes:iR,outKeyframes:lR},"zoom-big-fast":{inKeyframes:iR,outKeyframes:lR},"zoom-left":{inKeyframes:lQ,outKeyframes:sQ},"zoom-right":{inKeyframes:cQ,outKeyframes:uQ},"zoom-up":{inKeyframes:oQ,outKeyframes:iQ},"zoom-down":{inKeyframes:dQ,outKeyframes:fQ}},Wu=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:o}=vQ[t];return[Kl(r,a,o,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` - ${r}-enter, - ${r}-appear - `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},mQ=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:a,headerPadding:o,collapseHeaderPaddingSM:i,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:c,lineWidth:u,lineType:d,colorBorder:f,colorText:m,colorTextHeading:g,colorTextDisabled:h,fontSizeLG:b,lineHeight:p,lineHeightLG:S,marginSM:C,paddingSM:x,paddingLG:w,paddingXS:$,motionDurationSlow:E,fontSizeIcon:P,contentPadding:M,fontHeight:O,fontHeightLG:T}=e,N=`${ce(u)} ${d} ${f}`;return{[t]:Object.assign(Object.assign({},fn(e)),{backgroundColor:a,border:N,borderRadius:c,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:N,"&:first-child":{[` - &, - & > ${t}-header`]:{borderRadius:`${ce(c)} ${ce(c)} 0 0`}},"&:last-child":{[` - &, - & > ${t}-header`]:{borderRadius:`0 0 ${ce(c)} ${ce(c)}`}},[`> ${t}-header`]:Object.assign(Object.assign({position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:o,color:g,lineHeight:p,cursor:"pointer",transition:`all ${E}, visibility 0s`},Ta(e)),{[`> ${t}-header-text`]:{flex:"auto"},[`${t}-expand-icon`]:{height:O,display:"flex",alignItems:"center",paddingInlineEnd:C},[`${t}-arrow`]:Object.assign(Object.assign({},rs()),{fontSize:P,transition:`transform ${E}`,svg:{transition:`transform ${E}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}}),[`${t}-collapsible-header`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"},[`${t}-expand-icon`]:{cursor:"pointer"}},[`${t}-collapsible-icon`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:m,backgroundColor:n,borderTop:N,[`& > ${t}-content-box`]:{padding:M},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:i,paddingInlineStart:$,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(x).sub($).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:x}}},"&-large":{[`> ${t}-item`]:{fontSize:b,lineHeight:S,[`> ${t}-header`]:{padding:l,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:T,marginInlineStart:e.calc(w).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:w}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${ce(c)} ${ce(c)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:h,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:C}}}}})}},gQ=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},pQ=e=>{const{componentCls:t,headerBg:n,borderlessContentPadding:r,borderlessContentBg:a,colorBorder:o}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[` - > ${t}-item:last-child, - > ${t}-item:last-child ${t}-header - `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:a,borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{padding:r}}}},hQ=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},bQ=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer,borderlessContentPadding:`${e.paddingXXS}px 16px ${e.padding}px`,borderlessContentBg:"transparent"}),yQ=rn("Collapse",e=>{const t=Xt(e,{collapseHeaderPaddingSM:`${ce(e.paddingXS)} ${ce(e.paddingSM)}`,collapseHeaderPaddingLG:`${ce(e.padding)} ${ce(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[mQ(t),pQ(t),hQ(t),gQ(t),vv(t)]},bQ),CQ=s.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,expandIcon:a,className:o,style:i}=Vn("collapse"),{prefixCls:l,className:c,rootClassName:u,style:d,bordered:f=!0,ghost:m,size:g,expandIconPosition:h="start",children:b,destroyInactivePanel:p,destroyOnHidden:S,expandIcon:C}=e,x=ar(F=>{var j;return(j=g??F)!==null&&j!==void 0?j:"middle"}),w=n("collapse",l),$=n(),[E,P,M]=yQ(w),O=s.useMemo(()=>h==="left"?"start":h==="right"?"end":h,[h]),T=C??a,N=s.useCallback((F={})=>{const j=typeof T=="function"?T(F):s.createElement(Na,{rotate:F.isActive?r==="rtl"?-90:90:void 0,"aria-label":F.isActive?"expanded":"collapsed"});return xr(j,()=>{var k;return{className:le((k=j.props)===null||k===void 0?void 0:k.className,`${w}-arrow`)}})},[T,w,r]),D=le(`${w}-icon-position-${O}`,{[`${w}-borderless`]:!f,[`${w}-rtl`]:r==="rtl",[`${w}-ghost`]:!!m,[`${w}-${x}`]:x!=="middle"},o,c,u,P,M),L=s.useMemo(()=>Object.assign(Object.assign({},Eu($)),{motionAppear:!1,leavedClassName:`${w}-content-hidden`}),[$,w]),_=s.useMemo(()=>b?Xn(b).map((F,j)=>{var k,z;const V=F.props;if(V?.disabled){const H=(k=F.key)!==null&&k!==void 0?k:String(j),B=Object.assign(Object.assign({},Qt(F.props,["disabled"])),{key:H,collapsible:(z=V.collapsible)!==null&&z!==void 0?z:"disabled"});return xr(F,B)}return F}):null,[b]);return E(s.createElement(hE,Object.assign({ref:t,openMotion:L},Qt(e,["rootClassName"]),{expandIcon:N,prefixCls:w,className:D,style:Object.assign(Object.assign({},i),d),destroyInactivePanel:S??p}),_))}),SQ=Object.assign(CQ,{Panel:zY}),va=e=>e instanceof co?e:new co(e),Xg=e=>Math.round(Number(e||0)),yE=e=>Xg(e.toHsb().a*100),Yg=(e,t)=>{const n=e.toRgb();if(!n.r&&!n.g&&!n.b){const r=e.toHsb();return r.a=1,va(r)}return n.a=1,va(n)},tF=(e,t)=>{const n=[{percent:0,color:e[0].color}].concat(Te(e),[{percent:100,color:e[e.length-1].color}]);for(let r=0;re.map(t=>(t.colors=t.colors.map(va),t)),nF=(e,t)=>{const{r:n,g:r,b:a,a:o}=e.toRgb(),i=new ai(e.toRgbString()).onBackground(t).toHsv();return o<=.5?i.v>.5:n*.299+r*.587+a*.114>192},sR=(e,t)=>{var n;return`panel-${(n=e.key)!==null&&n!==void 0?n:t}`},xQ=({prefixCls:e,presets:t,value:n,onChange:r})=>{const[a]=zr("ColorPicker"),[,o]=Rr(),[i]=Tt(Ky(t),{value:Ky(t),postState:Ky}),l=`${e}-presets`,c=s.useMemo(()=>i.reduce((f,m,g)=>{const{defaultOpen:h=!0}=m;return h&&f.push(sR(m,g)),f},[]),[i]),u=f=>{r?.(f)},d=i.map((f,m)=>{var g;return{key:sR(f,m),label:Q.createElement("div",{className:`${l}-label`},f?.label),children:Q.createElement("div",{className:`${l}-items`},Array.isArray(f?.colors)&&((g=f.colors)===null||g===void 0?void 0:g.length)>0?f.colors.map((h,b)=>Q.createElement(pE,{key:`preset-${b}-${h.toHexString()}`,color:va(h).toRgbString(),prefixCls:e,className:le(`${l}-color`,{[`${l}-color-checked`]:h.toHexString()===n?.toHexString(),[`${l}-color-bright`]:nF(h,o.colorBgElevated)}),onClick:()=>u(h)})):Q.createElement("span",{className:`${l}-empty`},a.presetEmpty))}});return Q.createElement("div",{className:l},Q.createElement(SQ,{defaultActiveKey:c,ghost:!0,items:d}))},rF=e=>{const{paddingInline:t,onlyIconSize:n}=e;return Xt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},aF=e=>{var t,n,r,a,o,i;const l=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,c=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,u=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,d=(a=e.contentLineHeight)!==null&&a!==void 0?a:Ug(l),f=(o=e.contentLineHeightSM)!==null&&o!==void 0?o:Ug(c),m=(i=e.contentLineHeightLG)!==null&&i!==void 0?i:Ug(u),g=nF(new co(e.colorBgSolid),"#fff")?"#000":"#fff",h=Yl.reduce((b,p)=>Object.assign(Object.assign({},b),{[`${p}ShadowColor`]:`0 ${ce(e.controlOutlineWidth)} 0 ${rf(e[`${p}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},h),{fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:g,contentFontSize:l,contentFontSizeSM:c,contentFontSizeLG:u,contentLineHeight:d,contentLineHeightSM:f,contentLineHeightLG:m,paddingBlock:Math.max((e.controlHeight-l*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-c*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-u*m)/2-e.lineWidth,0)})},wQ=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:a,motionDurationSlow:o,motionEaseInOut:i,iconGap:l,calc:c}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:l,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${ce(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:rs(),"> a":{color:"currentColor"},"&:not(:disabled)":Ta(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"}},[`&${t}-loading`]:{opacity:a,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(u=>`${u} ${o} ${i}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:c(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:c(l).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:c(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:c(l).mul(-1).equal()}}}}}},oF=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),$Q=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),EQ=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Rh=(e,t,n,r,a,o,i,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},oF(e,Object.assign({background:t},i),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:a||void 0,borderColor:o||void 0}})}),PQ=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},EQ(e))}),OQ=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Ih=(e,t,n,r)=>{const o=r&&["link","text"].includes(r)?OQ:PQ;return Object.assign(Object.assign({},o(e)),oF(e.componentCls,t,n))},Mh=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},Ih(e,r,a))}),Th=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},Ih(e,r,a))}),Nh=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),_h=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},Ih(e,n,r))}),Oi=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},Ih(e,r,a,n))}),RQ=e=>{const{componentCls:t}=e;return Yl.reduce((n,r)=>{const a=e[`${r}6`],o=e[`${r}1`],i=e[`${r}5`],l=e[`${r}2`],c=e[`${r}3`],u=e[`${r}7`];return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:a,boxShadow:e[`${r}ShadowColor`]},Mh(e,e.colorTextLightSolid,a,{background:i},{background:u})),Th(e,a,e.colorBgContainer,{color:i,borderColor:i,background:e.colorBgContainer},{color:u,borderColor:u,background:e.colorBgContainer})),Nh(e)),_h(e,o,{color:a,background:l},{color:a,background:c})),Oi(e,a,"link",{color:i},{color:u})),Oi(e,a,"text",{color:i,background:o},{color:u,background:c}))})},{})},IQ=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},Mh(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),Nh(e)),_h(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),Rh(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),Oi(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),MQ=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},Th(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),Nh(e)),_h(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),Oi(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),Oi(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),Rh(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),TQ=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},Mh(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),Th(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Nh(e)),_h(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),Oi(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Oi(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),Rh(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),NQ=e=>Object.assign(Object.assign({},Oi(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),Rh(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),_Q=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:IQ(e),[`${t}-color-primary`]:MQ(e),[`${t}-color-dangerous`]:TQ(e),[`${t}-color-link`]:NQ(e)},RQ(e))},jQ=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Th(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Oi(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),Mh(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Oi(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),CE=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:a,borderRadius:o,buttonPaddingHorizontal:i,iconCls:l,buttonPaddingVertical:c,buttonIconOnlyFontSize:u}=e;return[{[t]:{fontSize:a,height:r,padding:`${ce(c)} ${ce(i)}`,borderRadius:o,[`&${n}-icon-only`]:{width:r,[l]:{fontSize:u}}}},{[`${n}${n}-circle${t}`]:$Q(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},DQ=e=>{const t=Xt(e,{fontSize:e.contentFontSize});return CE(t,e.componentCls)},FQ=e=>{const t=Xt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return CE(t,`${e.componentCls}-sm`)},kQ=e=>{const t=Xt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return CE(t,`${e.componentCls}-lg`)},LQ=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},zQ=rn("Button",e=>{const t=rF(e);return[wQ(t),DQ(t),FQ(t),kQ(t),LQ(t),_Q(t),jQ(t),gY(t)]},aF,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function AQ(e,t,n,r){const{focusElCls:a,focus:o,borderElCls:i}=n,l=i?"> *":"",c=["hover",o?"focus":null,"active"].filter(Boolean).map(u=>`&:${u} ${l}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[c]:{zIndex:3}},a?{[`&${a}`]:{zIndex:3}}:{}),{[`&[disabled] ${l}`]:{zIndex:0}})}}function BQ(e,t,n){const{borderElCls:r}=n,a=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${a}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function os(e,t={focus:!0}){const{componentCls:n}=e,{componentCls:r}=t,a=r||n,o=`${a}-compact`;return{[o]:Object.assign(Object.assign({},AQ(e,o,t,a)),BQ(a,o,t))}}function HQ(e,t,n){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}}}function VQ(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function WQ(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},HQ(e,t,e.componentCls)),VQ(e.componentCls,t))}}const KQ=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:a}=e,o=a(r).mul(-1).equal(),i=l=>{const c=`${t}-compact${l?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${c} + ${c}::before`]:{position:"absolute",top:l?o:0,insetInlineStart:l?0:o,backgroundColor:n,content:'""',width:l?"100%":r,height:l?r:"100%"}}};return Object.assign(Object.assign({},i()),i(!0))},qQ=Bu(["Button","compact"],e=>{const t=rF(e);return[os(t),WQ(t),KQ(t)]},aF);var UQ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r;const{loading:a=!1,prefixCls:o,color:i,variant:l,type:c,danger:u=!1,shape:d,size:f,styles:m,disabled:g,className:h,rootClassName:b,children:p,icon:S,iconPosition:C="start",ghost:x=!1,block:w=!1,htmlType:$="button",classNames:E,style:P={},autoInsertSpace:M,autoFocus:O}=e,T=UQ(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),N=c||"default",{button:D}=Q.useContext(Ot),L=d||D?.shape||"default",[_,F]=s.useMemo(()=>{if(i&&l)return[i,l];if(c||u){const Fe=XQ[N]||[];return u?["danger",Fe[1]]:Fe}return D?.color&&D?.variant?[D.color,D.variant]:["default","outlined"]},[i,l,c,u,D?.color,D?.variant,N]),k=_==="danger"?"dangerous":_,{getPrefixCls:z,direction:V,autoInsertSpace:H,className:B,style:K,classNames:W,styles:G}=Vn("button"),X=(n=M??H)!==null&&n!==void 0?n:!0,Y=z("btn",o),[Z,ee,re]=zQ(Y),ne=s.useContext(Sr),se=g??ne,oe=s.useContext(KD),me=s.useMemo(()=>GQ(a),[a]),[ue,de]=s.useState(me.loading),[ae,ie]=s.useState(!1),ge=s.useRef(null),pe=Ti(t,ge),be=s.Children.count(p)===1&&!S&&!By(F),ve=s.useRef(!0);Q.useEffect(()=>(ve.current=!1,()=>{ve.current=!0}),[]),un(()=>{let Fe=null;me.delay>0?Fe=setTimeout(()=>{Fe=null,de(!0)},me.delay):de(me.loading);function Ge(){Fe&&(clearTimeout(Fe),Fe=null)}return Ge},[me.delay,me.loading]),s.useEffect(()=>{if(!ge.current||!X)return;const Fe=ge.current.textContent||"";be&&uw(Fe)?ae||ie(!0):ae&&ie(!1)}),s.useEffect(()=>{O&&ge.current&&ge.current.focus()},[]);const Ce=Q.useCallback(Fe=>{var Ge;if(ue||se){Fe.preventDefault();return}(Ge=e.onClick)===null||Ge===void 0||Ge.call(e,("href"in e,Fe))},[e.onClick,ue,se]),{compactSize:he,compactItemClassnames:Se}=mo(Y,V),Ee={large:"lg",small:"sm",middle:void 0},Oe=ar(Fe=>{var Ge,et;return(et=(Ge=f??he)!==null&&Ge!==void 0?Ge:oe)!==null&&et!==void 0?et:Fe}),We=Oe&&(r=Ee[Oe])!==null&&r!==void 0?r:"",je=ue?"loading":S,De=Qt(T,["navigate"]),ke=le(Y,ee,re,{[`${Y}-${L}`]:L!=="default"&&L,[`${Y}-${N}`]:N,[`${Y}-dangerous`]:u,[`${Y}-color-${k}`]:k,[`${Y}-variant-${F}`]:F,[`${Y}-${We}`]:We,[`${Y}-icon-only`]:!p&&p!==0&&!!je,[`${Y}-background-ghost`]:x&&!By(F),[`${Y}-loading`]:ue,[`${Y}-two-chinese-chars`]:ae&&X&&!ue,[`${Y}-block`]:w,[`${Y}-rtl`]:V==="rtl",[`${Y}-icon-end`]:C==="end"},Se,h,b,B),_e=Object.assign(Object.assign({},K),P),Re=le(E?.icon,W.icon),Le=Object.assign(Object.assign({},m?.icon||{}),G.icon||{}),Me=Fe=>Q.createElement(qD,{prefixCls:Y,className:Re,style:Le},Fe),Be=()=>Q.createElement(mY,{existIcon:!!S,prefixCls:Y,loading:ue,mount:ve.current});let $e;S&&!ue?$e=Me(S):a&&typeof a=="object"&&a.icon?$e=Me(a.icon):$e=Be();const we=p||p===0?vY(p,be&&X):null;if(De.href!==void 0)return Z(Q.createElement("a",Object.assign({},De,{className:le(ke,{[`${Y}-disabled`]:se}),href:se?void 0:De.href,style:_e,onClick:Ce,ref:pe,tabIndex:se?-1:0,"aria-disabled":se}),$e,we));let Ie=Q.createElement("button",Object.assign({},T,{type:$,className:ke,style:_e,onClick:Ce,disabled:se,ref:pe}),$e,we,Se&&Q.createElement(qQ,{prefixCls:Y}));return By(F)||(Ie=Q.createElement(fv,{component:"Button",disabled:ue},Ie)),Z(Ie)}),cr=YQ;cr.Group=dY;cr.__ANT_BUTTON=!0;const qy=e=>typeof e?.then=="function",SE=e=>{const{type:t,children:n,prefixCls:r,buttonProps:a,close:o,autoFocus:i,emitEvent:l,isSilent:c,quitOnNullishReturnValue:u,actionFn:d}=e,f=s.useRef(!1),m=s.useRef(null),[g,h]=Ws(!1),b=(...C)=>{o?.apply(void 0,C)};s.useEffect(()=>{let C=null;return i&&(C=setTimeout(()=>{var x;(x=m.current)===null||x===void 0||x.focus({preventScroll:!0})})),()=>{C&&clearTimeout(C)}},[i]);const p=C=>{qy(C)&&(h(!0),C.then((...x)=>{h(!1,!0),b.apply(void 0,x),f.current=!1},x=>{if(h(!1,!0),f.current=!1,!c?.())return Promise.reject(x)}))},S=C=>{if(f.current)return;if(f.current=!0,!d){b();return}let x;if(l){if(x=d(C),u&&!qy(x)){f.current=!1,b(C);return}}else if(d.length)x=d(o),f.current=!1;else if(x=d(),!qy(x)){b();return}p(x)};return s.createElement(cr,Object.assign({},gE(t),{onClick:S,loading:g,prefixCls:r},a,{ref:m}),n)},mv=Q.createContext({}),{Provider:iF}=mv,cR=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:a,rootPrefixCls:o,close:i,onCancel:l,onConfirm:c}=s.useContext(mv);return a?Q.createElement(SE,{isSilent:r,actionFn:l,close:(...u)=>{i?.apply(void 0,u),c?.(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${o}-btn`},n):null},uR=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:a,okTextLocale:o,okType:i,onConfirm:l,onOk:c}=s.useContext(mv);return Q.createElement(SE,{isSilent:n,type:i||"primary",actionFn:c,close:(...u)=>{t?.apply(void 0,u),l?.(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${a}-btn`},o)};var lF=s.createContext(null),dR=[];function QQ(e,t){var n=s.useState(function(){if(!Xr())return null;var h=document.createElement("div");return h}),r=fe(n,1),a=r[0],o=s.useRef(!1),i=s.useContext(lF),l=s.useState(dR),c=fe(l,2),u=c[0],d=c[1],f=i||(o.current?void 0:function(h){d(function(b){var p=[h].concat(Te(b));return p})});function m(){a.parentElement||document.body.appendChild(a),o.current=!0}function g(){var h;(h=a.parentElement)===null||h===void 0||h.removeChild(a),o.current=!1}return un(function(){return e?i?i(m):m():g(),g},[e]),un(function(){u.length&&(u.forEach(function(h){return h()}),d(dR))},[u]),[a,f]}var Uy;function sF(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var a,o;if(e){var i=getComputedStyle(e);r.scrollbarColor=i.scrollbarColor,r.scrollbarWidth=i.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(l.width,10),u=parseInt(l.height,10);try{var d=c?"width: ".concat(l.width,";"):"",f=u?"height: ".concat(l.height,";"):"";ol(` -#`.concat(t,`::-webkit-scrollbar { -`).concat(d,` -`).concat(f,` -}`),t)}catch(h){console.error(h),a=c,o=u}}document.body.appendChild(n);var m=e&&a&&!isNaN(a)?a:n.offsetWidth-n.clientWidth,g=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),kf(t),{width:m,height:g}}function fR(e){return typeof document>"u"?0:(Uy===void 0&&(Uy=sF()),Uy.width)}function dw(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:sF(e)}function ZQ(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var JQ="rc-util-locker-".concat(Date.now()),vR=0;function eZ(e){var t=!!e,n=s.useState(function(){return vR+=1,"".concat(JQ,"_").concat(vR)}),r=fe(n,1),a=r[0];un(function(){if(t){var o=dw(document.body).width,i=ZQ();ol(` -html body { - overflow-y: hidden; - `.concat(i?"width: calc(100% - ".concat(o,"px);"):"",` -}`),a)}else kf(a);return function(){kf(a)}},[t,a])}var tZ=!1;function nZ(e){return tZ}var mR=function(t){return t===!1?!1:!Xr()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},gv=s.forwardRef(function(e,t){var n=e.open,r=e.autoLock,a=e.getContainer;e.debug;var o=e.autoDestroy,i=o===void 0?!0:o,l=e.children,c=s.useState(n),u=fe(c,2),d=u[0],f=u[1],m=d||n;s.useEffect(function(){(i||n)&&f(n)},[n,i]);var g=s.useState(function(){return mR(a)}),h=fe(g,2),b=h[0],p=h[1];s.useEffect(function(){var N=mR(a);p(N??null)});var S=QQ(m&&!b),C=fe(S,2),x=C[0],w=C[1],$=b??x;eZ(r&&n&&Xr()&&($===x||$===document.body));var E=null;if(l&&ni(l)&&t){var P=l;E=P.ref}var M=Ti(E,t);if(!m||!Xr()||b===void 0)return null;var O=$===!1||nZ(),T=l;return t&&(T=s.cloneElement(l,{ref:M})),s.createElement(lF.Provider,{value:w},O?T:kr.createPortal(T,$))}),cF=s.createContext({});function rZ(){var e=R({},lh);return e.useId}var gR=0,pR=rZ();const Ku=pR?(function(t){var n=pR();return t||n}):(function(t){var n=s.useState("ssr-id"),r=fe(n,2),a=r[0],o=r[1];return s.useEffect(function(){var i=gR;gR+=1,o("rc_unique_".concat(i))},[]),t||a});function hR(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function bR(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var a=e.document;n=a.documentElement[r],typeof n!="number"&&(n=a.body[r])}return n}function aZ(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,a=r.defaultView||r.parentWindow;return n.left+=bR(a),n.top+=bR(a,!0),n}const oZ=s.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var iZ={width:0,height:0,overflow:"hidden",outline:"none"},lZ={outline:"none"},uF=Q.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,o=e.title,i=e.ariaId,l=e.footer,c=e.closable,u=e.closeIcon,d=e.onClose,f=e.children,m=e.bodyStyle,g=e.bodyProps,h=e.modalRender,b=e.onMouseDown,p=e.onMouseUp,S=e.holderRef,C=e.visible,x=e.forceRender,w=e.width,$=e.height,E=e.classNames,P=e.styles,M=Q.useContext(cF),O=M.panel,T=Ti(S,O),N=s.useRef(),D=s.useRef();Q.useImperativeHandle(t,function(){return{focus:function(){var K;(K=N.current)===null||K===void 0||K.focus({preventScroll:!0})},changeActive:function(K){var W=document,G=W.activeElement;K&&G===D.current?N.current.focus({preventScroll:!0}):!K&&G===N.current&&D.current.focus({preventScroll:!0})}}});var L={};w!==void 0&&(L.width=w),$!==void 0&&(L.height=$);var _=l?Q.createElement("div",{className:le("".concat(n,"-footer"),E?.footer),style:R({},P?.footer)},l):null,F=o?Q.createElement("div",{className:le("".concat(n,"-header"),E?.header),style:R({},P?.header)},Q.createElement("div",{className:"".concat(n,"-title"),id:i},o)):null,j=s.useMemo(function(){return st(c)==="object"&&c!==null?c:c?{closeIcon:u??Q.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[c,u,n]),k=Qn(j,!0),z=st(c)==="object"&&c.disabled,V=c?Q.createElement("button",xe({type:"button",onClick:d,"aria-label":"Close"},k,{className:"".concat(n,"-close"),disabled:z}),j.closeIcon):null,H=Q.createElement("div",{className:le("".concat(n,"-content"),E?.content),style:P?.content},V,F,Q.createElement("div",xe({className:le("".concat(n,"-body"),E?.body),style:R(R({},m),P?.body)},g),f),_);return Q.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":o?i:null,"aria-modal":"true",ref:T,style:R(R({},a),L),className:le(n,r),onMouseDown:b,onMouseUp:p},Q.createElement("div",{ref:N,tabIndex:0,style:lZ},Q.createElement(oZ,{shouldUpdate:C||x},h?h(H):H)),Q.createElement("div",{tabIndex:0,ref:D,style:iZ}))}),dF=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,a=e.style,o=e.className,i=e.visible,l=e.forceRender,c=e.destroyOnClose,u=e.motionName,d=e.ariaId,f=e.onVisibleChanged,m=e.mousePosition,g=s.useRef(),h=s.useState(),b=fe(h,2),p=b[0],S=b[1],C={};p&&(C.transformOrigin=p);function x(){var w=aZ(g.current);S(m&&(m.x||m.y)?"".concat(m.x-w.left,"px ").concat(m.y-w.top,"px"):"")}return s.createElement(Nr,{visible:i,onVisibleChanged:f,onAppearPrepare:x,onEnterPrepare:x,forceRender:l,motionName:u,removeOnLeave:c,ref:g},function(w,$){var E=w.className,P=w.style;return s.createElement(uF,xe({},e,{ref:t,title:r,ariaId:d,prefixCls:n,holderRef:$,style:R(R(R({},P),a),C),className:le(o,E)}))})});dF.displayName="Content";var sZ=function(t){var n=t.prefixCls,r=t.style,a=t.visible,o=t.maskProps,i=t.motionName,l=t.className;return s.createElement(Nr,{key:"mask",visible:a,motionName:i,leavedClassName:"".concat(n,"-mask-hidden")},function(c,u){var d=c.className,f=c.style;return s.createElement("div",xe({ref:u,style:R(R({},f),r),className:le("".concat(n,"-mask"),d,l)},o))})},cZ=function(t){var n=t.prefixCls,r=n===void 0?"rc-dialog":n,a=t.zIndex,o=t.visible,i=o===void 0?!1:o,l=t.keyboard,c=l===void 0?!0:l,u=t.focusTriggerAfterClose,d=u===void 0?!0:u,f=t.wrapStyle,m=t.wrapClassName,g=t.wrapProps,h=t.onClose,b=t.afterOpenChange,p=t.afterClose,S=t.transitionName,C=t.animation,x=t.closable,w=x===void 0?!0:x,$=t.mask,E=$===void 0?!0:$,P=t.maskTransitionName,M=t.maskAnimation,O=t.maskClosable,T=O===void 0?!0:O,N=t.maskStyle,D=t.maskProps,L=t.rootClassName,_=t.classNames,F=t.styles,j=s.useRef(),k=s.useRef(),z=s.useRef(),V=s.useState(i),H=fe(V,2),B=H[0],K=H[1],W=Ku();function G(){F2(k.current,document.activeElement)||(j.current=document.activeElement)}function X(){if(!F2(k.current,document.activeElement)){var de;(de=z.current)===null||de===void 0||de.focus()}}function Y(de){if(de)X();else{if(K(!1),E&&j.current&&d){try{j.current.focus({preventScroll:!0})}catch{}j.current=null}B&&p?.()}b?.(de)}function Z(de){h?.(de)}var ee=s.useRef(!1),re=s.useRef(),ne=function(){clearTimeout(re.current),ee.current=!0},se=function(){re.current=setTimeout(function(){ee.current=!1})},oe=null;T&&(oe=function(ae){ee.current?ee.current=!1:k.current===ae.target&&Z(ae)});function me(de){if(c&&de.keyCode===lt.ESC){de.stopPropagation(),Z(de);return}i&&de.keyCode===lt.TAB&&z.current.changeActive(!de.shiftKey)}s.useEffect(function(){i&&(K(!0),G())},[i]),s.useEffect(function(){return function(){clearTimeout(re.current)}},[]);var ue=R(R(R({zIndex:a},f),F?.wrapper),{},{display:B?null:"none"});return s.createElement("div",xe({className:le("".concat(r,"-root"),L)},Qn(t,{data:!0})),s.createElement(sZ,{prefixCls:r,visible:E&&i,motionName:hR(r,P,M),style:R(R({zIndex:a},N),F?.mask),maskProps:D,className:_?.mask}),s.createElement("div",xe({tabIndex:-1,onKeyDown:me,className:le("".concat(r,"-wrap"),m,_?.wrapper),ref:k,onClick:oe,style:ue},g),s.createElement(dF,xe({},t,{onMouseDown:ne,onMouseUp:se,ref:z,closable:w,ariaId:W,prefixCls:r,visible:i&&B,onClose:Z,onVisibleChanged:Y,motionName:hR(r,S,C)}))))},xE=function(t){var n=t.visible,r=t.getContainer,a=t.forceRender,o=t.destroyOnClose,i=o===void 0?!1:o,l=t.afterClose,c=t.panelRef,u=s.useState(n),d=fe(u,2),f=d[0],m=d[1],g=s.useMemo(function(){return{panel:c}},[c]);return s.useEffect(function(){n&&m(!0)},[n]),!a&&i&&!f?null:s.createElement(cF.Provider,{value:g},s.createElement(gv,{open:n||a||f,autoDestroy:!1,getContainer:r,autoLock:n||f},s.createElement(cZ,xe({},t,{destroyOnClose:i,afterClose:function(){l?.(),m(!1)}}))))};xE.displayName="Dialog";var Ts="RC_FORM_INTERNAL_HOOKS",er=function(){jn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Ql=s.createContext({getFieldValue:er,getFieldsValue:er,getFieldError:er,getFieldWarning:er,getFieldsError:er,isFieldsTouched:er,isFieldTouched:er,isFieldValidating:er,isFieldsValidating:er,resetFields:er,setFields:er,setFieldValue:er,setFieldsValue:er,validateFields:er,submit:er,getInternalHooks:function(){return er(),{dispatch:er,initEntityValue:er,registerField:er,useSubscribe:er,setInitialValues:er,destroyForm:er,setCallbacks:er,registerWatch:er,getFields:er,setValidateMessages:er,setPreserve:er,getInitialValue:er}}}),Vf=s.createContext(null);function fw(e){return e==null?[]:Array.isArray(e)?e:[e]}function uZ(e){return e&&!!e._init}function vw(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",tel:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var mw=vw();function dZ(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function fZ(e,t,n){if(ch())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var a=new(e.bind.apply(e,r));return n&&Df(a,n.prototype),a}function gw(e){var t=typeof Map=="function"?new Map:void 0;return gw=function(r){if(r===null||!dZ(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,a)}function a(){return fZ(r,arguments,As(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Df(a,r)},gw(e)}var vZ=/%[sdj%]/g,mZ=function(){};function pw(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function uo(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=o)return l;switch(l){case"%s":return String(n[a++]);case"%d":return Number(n[a++]);case"%j":try{return JSON.stringify(n[a++])}catch{return"[Circular]"}break;default:return l}});return i}return e}function gZ(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"||e==="tel"}function Yr(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||gZ(t)&&typeof e=="string"&&!e)}function pZ(e,t,n){var r=[],a=0,o=e.length;function i(l){r.push.apply(r,Te(l||[])),a++,a===o&&n(r)}e.forEach(function(l){t(l,i)})}function yR(e,t,n){var r=0,a=e.length;function o(i){if(i&&i.length){n(i);return}var l=r;r=r+1,lt.max?a.push(uo(o.messages[f].max,t.fullField,t.max)):l&&c&&(dt.max)&&a.push(uo(o.messages[f].range,t.fullField,t.min,t.max))},fF=function(t,n,r,a,o,i){t.required&&(!r.hasOwnProperty(t.field)||Yr(n,i||t.type))&&a.push(uo(o.messages.required,t.fullField))},ig;const $Z=(function(){if(ig)return ig;var e="[a-fA-F\\d:]",t=function(E){return E&&E.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",a=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],o="(?:%[0-9a-zA-Z]{1,})?",i="(?:".concat(a.join("|"),")").concat(o),l=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),c=new RegExp("^".concat(n,"$")),u=new RegExp("^".concat(i,"$")),d=function(E){return E&&E.exact?l:new RegExp("(?:".concat(t(E)).concat(n).concat(t(E),")|(?:").concat(t(E)).concat(i).concat(t(E),")"),"g")};d.v4=function($){return $&&$.exact?c:new RegExp("".concat(t($)).concat(n).concat(t($)),"g")},d.v6=function($){return $&&$.exact?u:new RegExp("".concat(t($)).concat(i).concat(t($)),"g")};var f="(?:(?:[a-z]+:)?//)",m="(?:\\S+(?::\\S*)?@)?",g=d.v4().source,h=d.v6().source,b="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",p="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",S="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",C="(?::\\d{2,5})?",x='(?:[/?#][^\\s"]*)?',w="(?:".concat(f,"|www\\.)").concat(m,"(?:localhost|").concat(g,"|").concat(h,"|").concat(b).concat(p).concat(S,")").concat(C).concat(x);return ig=new RegExp("(?:^".concat(w,"$)"),"i"),ig});var Gy={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,tel:/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},of={integer:function(t){return of.number(t)&&parseInt(t,10)===t},float:function(t){return of.number(t)&&!of.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return st(t)==="object"&&!of.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Gy.email)},tel:function(t){return typeof t=="string"&&t.length<=32&&!!t.match(Gy.tel)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match($Z())},hex:function(t){return typeof t=="string"&&!!t.match(Gy.hex)}},EZ=function(t,n,r,a,o){if(t.required&&n===void 0){fF(t,n,r,a,o);return}var i=["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"],l=t.type;i.indexOf(l)>-1?of[l](n)||a.push(uo(o.messages.types[l],t.fullField,t.type)):l&&st(n)!==t.type&&a.push(uo(o.messages.types[l],t.fullField,t.type))},PZ=function(t,n,r,a,o){(/^\s+$/.test(n)||n==="")&&a.push(uo(o.messages.whitespace,t.fullField))};const _n={required:fF,whitespace:PZ,type:EZ,range:wZ,enum:SZ,pattern:xZ};var OZ=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Yr(n)&&!t.required)return r();_n.required(t,n,a,i,o)}r(i)},RZ=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();_n.required(t,n,a,i,o,"array"),n!=null&&(_n.type(t,n,a,i,o),_n.range(t,n,a,i,o))}r(i)},IZ=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Yr(n)&&!t.required)return r();_n.required(t,n,a,i,o),n!==void 0&&_n.type(t,n,a,i,o)}r(i)},MZ=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Yr(n,"date")&&!t.required)return r();if(_n.required(t,n,a,i,o),!Yr(n,"date")){var c;n instanceof Date?c=n:c=new Date(n),_n.type(t,c,a,i,o),c&&_n.range(t,c.getTime(),a,i,o)}}r(i)},TZ="enum",NZ=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Yr(n)&&!t.required)return r();_n.required(t,n,a,i,o),n!==void 0&&_n[TZ](t,n,a,i,o)}r(i)},_Z=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Yr(n)&&!t.required)return r();_n.required(t,n,a,i,o),n!==void 0&&(_n.type(t,n,a,i,o),_n.range(t,n,a,i,o))}r(i)},jZ=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Yr(n)&&!t.required)return r();_n.required(t,n,a,i,o),n!==void 0&&(_n.type(t,n,a,i,o),_n.range(t,n,a,i,o))}r(i)},DZ=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Yr(n)&&!t.required)return r();_n.required(t,n,a,i,o),n!==void 0&&_n.type(t,n,a,i,o)}r(i)},FZ=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),Yr(n)&&!t.required)return r();_n.required(t,n,a,i,o),n!==void 0&&(_n.type(t,n,a,i,o),_n.range(t,n,a,i,o))}r(i)},kZ=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Yr(n)&&!t.required)return r();_n.required(t,n,a,i,o),n!==void 0&&_n.type(t,n,a,i,o)}r(i)},LZ=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Yr(n,"string")&&!t.required)return r();_n.required(t,n,a,i,o),Yr(n,"string")||_n.pattern(t,n,a,i,o)}r(i)},zZ=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Yr(n)&&!t.required)return r();_n.required(t,n,a,i,o),Yr(n)||_n.type(t,n,a,i,o)}r(i)},AZ=function(t,n,r,a,o){var i=[],l=Array.isArray(n)?"array":st(n);_n.required(t,n,a,i,o,l),r(i)},BZ=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Yr(n,"string")&&!t.required)return r();_n.required(t,n,a,i,o,"string"),Yr(n,"string")||(_n.type(t,n,a,i,o),_n.range(t,n,a,i,o),_n.pattern(t,n,a,i,o),t.whitespace===!0&&_n.whitespace(t,n,a,i,o))}r(i)},lg=function(t,n,r,a,o){var i=t.type,l=[],c=t.required||!t.required&&a.hasOwnProperty(t.field);if(c){if(Yr(n,i)&&!t.required)return r();_n.required(t,n,a,l,o,i),Yr(n,i)||_n.type(t,n,a,l,o)}r(l)};const Cf={string:BZ,method:DZ,number:FZ,boolean:IZ,regexp:zZ,integer:jZ,float:_Z,array:RZ,object:kZ,enum:NZ,pattern:LZ,date:MZ,url:lg,hex:lg,email:lg,tel:lg,required:AZ,any:OZ};var pv=(function(){function e(t){kn(this,e),q(this,"rules",null),q(this,"_messages",mw),this.define(t)}return Ln(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(st(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(a){var o=n[a];r.rules[a]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(n){return n&&(this._messages=xR(vw(),n)),this._messages}},{key:"validate",value:function(n){var r=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},i=n,l=a,c=o;if(typeof l=="function"&&(c=l,l={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,i),Promise.resolve(i);function u(h){var b=[],p={};function S(x){if(Array.isArray(x)){var w;b=(w=b).concat.apply(w,Te(x))}else b.push(x)}for(var C=0;C0&&arguments[0]!==void 0?arguments[0]:[],M=Array.isArray(P)?P:[P];!l.suppressWarning&&M.length&&e.warning("async-validator:",M),M.length&&p.message!==void 0&&p.message!==null&&(M=[].concat(p.message));var O=M.map(SR(p,i));if(l.first&&O.length)return g[p.field]=1,b(O);if(!S)b(O);else{if(p.required&&!h.value)return p.message!==void 0?O=[].concat(p.message).map(SR(p,i)):l.error&&(O=[l.error(p,uo(l.messages.required,p.field))]),b(O);var T={};p.defaultField&&Object.keys(h.value).map(function(L){T[L]=p.defaultField}),T=R(R({},T),h.rule.fields);var N={};Object.keys(T).forEach(function(L){var _=T[L],F=Array.isArray(_)?_:[_];N[L]=F.map(C.bind(null,L))});var D=new e(N);D.messages(l.messages),h.rule.options&&(h.rule.options.messages=l.messages,h.rule.options.error=l.error),D.validate(h.value,h.rule.options||l,function(L){var _=[];O&&O.length&&_.push.apply(_,Te(O)),L&&L.length&&_.push.apply(_,Te(L)),b(_.length?_:null)})}}var w;if(p.asyncValidator)w=p.asyncValidator(p,h.value,x,h.source,l);else if(p.validator){try{w=p.validator(p,h.value,x,h.source,l)}catch(P){var $,E;($=(E=console).error)===null||$===void 0||$.call(E,P),l.suppressValidatorError||setTimeout(function(){throw P},0),x(P.message)}w===!0?x():w===!1?x(typeof p.message=="function"?p.message(p.fullField||p.field):p.message||"".concat(p.fullField||p.field," fails")):w instanceof Array?x(w):w instanceof Error&&x(w.message)}w&&w.then&&w.then(function(){return x()},function(P){return x(P)})},function(h){u(h)},i)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!Cf.hasOwnProperty(n.type))throw new Error(uo("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),a=r.indexOf("message");return a!==-1&&r.splice(a,1),r.length===1&&r[0]==="required"?Cf.required:Cf[this.getType(n)]||void 0}}]),e})();q(pv,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Cf[t]=n});q(pv,"warning",mZ);q(pv,"messages",mw);q(pv,"validators",Cf);var to="'${name}' is not a valid ${type}",vF={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:to,method:to,array:to,object:to,number:to,date:to,boolean:to,integer:to,float:to,regexp:to,email:to,url:to,hex:to},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},wR=pv;function HZ(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var $R="CODE_LOGIC_ERROR";function hw(e,t,n,r,a){return bw.apply(this,arguments)}function bw(){return bw=en(ut().mark(function e(t,n,r,a,o){var i,l,c,u,d,f,m,g,h;return ut().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return i=R({},r),delete i.ruleIndex,wR.warning=function(){},i.validator&&(l=i.validator,i.validator=function(){try{return l.apply(void 0,arguments)}catch(S){return console.error(S),Promise.reject($R)}}),c=null,i&&i.type==="array"&&i.defaultField&&(c=i.defaultField,delete i.defaultField),u=new wR(q({},t,[i])),d=Wl(vF,a.validateMessages),u.messages(d),f=[],p.prev=10,p.next=13,Promise.resolve(u.validate(q({},t,n),R({},a)));case 13:p.next=18;break;case 15:p.prev=15,p.t0=p.catch(10),p.t0.errors&&(f=p.t0.errors.map(function(S,C){var x=S.message,w=x===$R?d.default:x;return s.isValidElement(w)?s.cloneElement(w,{key:"error_".concat(C)}):w}));case 18:if(!(!f.length&&c&&Array.isArray(n)&&n.length>0)){p.next=23;break}return p.next=21,Promise.all(n.map(function(S,C){return hw("".concat(t,".").concat(C),S,c,a,o)}));case 21:return m=p.sent,p.abrupt("return",m.reduce(function(S,C){return[].concat(Te(S),Te(C))},[]));case 23:return g=R(R({},r),{},{name:t,enum:(r.enum||[]).join(", ")},o),h=f.map(function(S){return typeof S=="string"?HZ(S,g):S}),p.abrupt("return",h);case 26:case"end":return p.stop()}},e,null,[[10,15]])})),bw.apply(this,arguments)}function VZ(e,t,n,r,a,o){var i=e.join("."),l=n.map(function(d,f){var m=d.validator,g=R(R({},d),{},{ruleIndex:f});return m&&(g.validator=function(h,b,p){var S=!1,C=function(){for(var $=arguments.length,E=new Array($),P=0;P<$;P++)E[P]=arguments[P];Promise.resolve().then(function(){jn(!S,"Your validator function has already return a promise. `callback` will be ignored."),S||p.apply(void 0,E)})},x=m(h,b,C);S=x&&typeof x.then=="function"&&typeof x.catch=="function",jn(S,"`callback` is deprecated. Please return a promise instead."),S&&x.then(function(){p()}).catch(function(w){p(w||" ")})}),g}).sort(function(d,f){var m=d.warningOnly,g=d.ruleIndex,h=f.warningOnly,b=f.ruleIndex;return!!m==!!h?g-b:m?1:-1}),c;if(a===!0)c=new Promise((function(){var d=en(ut().mark(function f(m,g){var h,b,p;return ut().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:h=0;case 1:if(!(h2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return mF(t,r,n)})}function mF(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,a){return e[a]===r})}function qZ(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||st(e)!=="object"||st(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),a=new Set([].concat(n,r));return Te(a).every(function(o){var i=e[o],l=t[o];return typeof i=="function"&&typeof l=="function"?!0:i===l})}function UZ(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&st(t.target)==="object"&&e in t.target?t.target[e]:t}function PR(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var a=e[t],o=t-n;return o>0?[].concat(Te(e.slice(0,n)),[a],Te(e.slice(n,t)),Te(e.slice(t+1,r))):o<0?[].concat(Te(e.slice(0,t)),Te(e.slice(t+1,n+1)),[a],Te(e.slice(n+1,r))):e}var GZ=["name"],$o=[];function Xy(e,t,n,r,a,o){return typeof e=="function"?e(t,n,"source"in o?{source:o.source}:{}):r!==a}var wE=(function(e){ma(n,e);var t=Ea(n);function n(r){var a;if(kn(this,n),a=t.call(this,r),q($t(a),"state",{resetCount:0}),q($t(a),"cancelRegisterFunc",null),q($t(a),"mounted",!1),q($t(a),"touched",!1),q($t(a),"dirty",!1),q($t(a),"validatePromise",void 0),q($t(a),"prevValidating",void 0),q($t(a),"errors",$o),q($t(a),"warnings",$o),q($t(a),"cancelRegister",function(){var c=a.props,u=c.preserve,d=c.isListField,f=c.name;a.cancelRegisterFunc&&a.cancelRegisterFunc(d,u,Dr(f)),a.cancelRegisterFunc=null}),q($t(a),"getNamePath",function(){var c=a.props,u=c.name,d=c.fieldContext,f=d.prefixName,m=f===void 0?[]:f;return u!==void 0?[].concat(Te(m),Te(u)):[]}),q($t(a),"getRules",function(){var c=a.props,u=c.rules,d=u===void 0?[]:u,f=c.fieldContext;return d.map(function(m){return typeof m=="function"?m(f):m})}),q($t(a),"refresh",function(){a.mounted&&a.setState(function(c){var u=c.resetCount;return{resetCount:u+1}})}),q($t(a),"metaCache",null),q($t(a),"triggerMetaEvent",function(c){var u=a.props.onMetaChange;if(u){var d=R(R({},a.getMeta()),{},{destroy:c});Ma(a.metaCache,d)||u(d),a.metaCache=d}else a.metaCache=null}),q($t(a),"onStoreChange",function(c,u,d){var f=a.props,m=f.shouldUpdate,g=f.dependencies,h=g===void 0?[]:g,b=f.onReset,p=d.store,S=a.getNamePath(),C=a.getValue(c),x=a.getValue(p),w=u&&uu(u,S);switch(d.type==="valueUpdate"&&d.source==="external"&&!Ma(C,x)&&(a.touched=!0,a.dirty=!0,a.validatePromise=null,a.errors=$o,a.warnings=$o,a.triggerMetaEvent()),d.type){case"reset":if(!u||w){a.touched=!1,a.dirty=!1,a.validatePromise=void 0,a.errors=$o,a.warnings=$o,a.triggerMetaEvent(),b?.(),a.refresh();return}break;case"remove":{if(m&&Xy(m,c,p,C,x,d)){a.reRender();return}break}case"setField":{var $=d.data;if(w){"touched"in $&&(a.touched=$.touched),"validating"in $&&!("originRCField"in $)&&(a.validatePromise=$.validating?Promise.resolve([]):null),"errors"in $&&(a.errors=$.errors||$o),"warnings"in $&&(a.warnings=$.warnings||$o),a.dirty=!0,a.triggerMetaEvent(),a.reRender();return}else if("value"in $&&uu(u,S,!0)){a.reRender();return}if(m&&!S.length&&Xy(m,c,p,C,x,d)){a.reRender();return}break}case"dependenciesUpdate":{var E=h.map(Dr);if(E.some(function(P){return uu(d.relatedFields,P)})){a.reRender();return}break}default:if(w||(!h.length||S.length||m)&&Xy(m,c,p,C,x,d)){a.reRender();return}break}m===!0&&a.reRender()}),q($t(a),"validateRules",function(c){var u=a.getNamePath(),d=a.getValue(),f=c||{},m=f.triggerName,g=f.validateOnly,h=g===void 0?!1:g,b=Promise.resolve().then(en(ut().mark(function p(){var S,C,x,w,$,E,P;return ut().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(a.mounted){O.next=2;break}return O.abrupt("return",[]);case 2:if(S=a.props,C=S.validateFirst,x=C===void 0?!1:C,w=S.messageVariables,$=S.validateDebounce,E=a.getRules(),m&&(E=E.filter(function(T){return T}).filter(function(T){var N=T.validateTrigger;if(!N)return!0;var D=fw(N);return D.includes(m)})),!($&&m)){O.next=10;break}return O.next=8,new Promise(function(T){setTimeout(T,$)});case 8:if(a.validatePromise===b){O.next=10;break}return O.abrupt("return",[]);case 10:return P=VZ(u,d,E,c,x,w),P.catch(function(T){return T}).then(function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:$o;if(a.validatePromise===b){var N;a.validatePromise=null;var D=[],L=[];(N=T.forEach)===null||N===void 0||N.call(T,function(_){var F=_.rule.warningOnly,j=_.errors,k=j===void 0?$o:j;F?L.push.apply(L,Te(k)):D.push.apply(D,Te(k))}),a.errors=D,a.warnings=L,a.triggerMetaEvent(),a.reRender()}}),O.abrupt("return",P);case 13:case"end":return O.stop()}},p)})));return h||(a.validatePromise=b,a.dirty=!0,a.errors=$o,a.warnings=$o,a.triggerMetaEvent(),a.reRender()),b}),q($t(a),"isFieldValidating",function(){return!!a.validatePromise}),q($t(a),"isFieldTouched",function(){return a.touched}),q($t(a),"isFieldDirty",function(){if(a.dirty||a.props.initialValue!==void 0)return!0;var c=a.props.fieldContext,u=c.getInternalHooks(Ts),d=u.getInitialValue;return d(a.getNamePath())!==void 0}),q($t(a),"getErrors",function(){return a.errors}),q($t(a),"getWarnings",function(){return a.warnings}),q($t(a),"isListField",function(){return a.props.isListField}),q($t(a),"isList",function(){return a.props.isList}),q($t(a),"isPreserve",function(){return a.props.preserve}),q($t(a),"getMeta",function(){a.prevValidating=a.isFieldValidating();var c={touched:a.isFieldTouched(),validating:a.prevValidating,errors:a.errors,warnings:a.warnings,name:a.getNamePath(),validated:a.validatePromise===null};return c}),q($t(a),"getOnlyChild",function(c){if(typeof c=="function"){var u=a.getMeta();return R(R({},a.getOnlyChild(c(a.getControlled(),u,a.props.fieldContext))),{},{isFunction:!0})}var d=Xn(c);return d.length!==1||!s.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),q($t(a),"getValue",function(c){var u=a.props.fieldContext.getFieldsValue,d=a.getNamePath();return Dn(c||u(!0),d)}),q($t(a),"getControlled",function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=a.props,d=u.name,f=u.trigger,m=u.validateTrigger,g=u.getValueFromEvent,h=u.normalize,b=u.valuePropName,p=u.getValueProps,S=u.fieldContext,C=m!==void 0?m:S.validateTrigger,x=a.getNamePath(),w=S.getInternalHooks,$=S.getFieldsValue,E=w(Ts),P=E.dispatch,M=a.getValue(),O=p||function(_){return q({},b,_)},T=c[f],N=d!==void 0?O(M):{},D=R(R({},c),N);D[f]=function(){a.touched=!0,a.dirty=!0,a.triggerMetaEvent();for(var _,F=arguments.length,j=new Array(F),k=0;k=0&&T<=N.length?(d.keys=[].concat(Te(d.keys.slice(0,T)),[d.id],Te(d.keys.slice(T))),x([].concat(Te(N.slice(0,T)),[O],Te(N.slice(T))))):(d.keys=[].concat(Te(d.keys),[d.id]),x([].concat(Te(N),[O]))),d.id+=1},remove:function(O){var T=$(),N=new Set(Array.isArray(O)?O:[O]);N.size<=0||(d.keys=d.keys.filter(function(D,L){return!N.has(L)}),x(T.filter(function(D,L){return!N.has(L)})))},move:function(O,T){if(O!==T){var N=$();O<0||O>=N.length||T<0||T>=N.length||(d.keys=PR(d.keys,O,T),x(PR(N,O,T)))}}},P=C||[];return Array.isArray(P)||(P=[]),r(P.map(function(M,O){var T=d.keys[O];return T===void 0&&(d.keys[O]=d.id,T=d.keys[O],d.id+=1),{name:O,key:T,isListField:!0}}),E,p)})))}function XZ(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(a,o){e.forEach(function(i,l){i.catch(function(c){return t=!0,c}).then(function(c){n-=1,r[l]=c,!(n>0)&&(t&&o(r),a(r))})})}):Promise.resolve([])}var pF="__@field_split__";function Yy(e){return e.map(function(t){return"".concat(st(t),":").concat(t)}).join(pF)}var zc=(function(){function e(){kn(this,e),q(this,"kvs",new Map)}return Ln(e,[{key:"set",value:function(n,r){this.kvs.set(Yy(n),r)}},{key:"get",value:function(n){return this.kvs.get(Yy(n))}},{key:"update",value:function(n,r){var a=this.get(n),o=r(a);o?this.set(n,o):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(Yy(n))}},{key:"map",value:function(n){return Te(this.kvs.entries()).map(function(r){var a=fe(r,2),o=a[0],i=a[1],l=o.split(pF);return n({key:l.map(function(c){var u=c.match(/^([^:]*):(.*)$/),d=fe(u,3),f=d[1],m=d[2];return f==="number"?Number(m):m}),value:i})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var a=r.key,o=r.value;return n[a.join(".")]=o,null}),n}}]),e})(),YZ=["name"],QZ=Ln(function e(t){var n=this;kn(this,e),q(this,"formHooked",!1),q(this,"forceRootUpdate",void 0),q(this,"subscribable",!0),q(this,"store",{}),q(this,"fieldEntities",[]),q(this,"initialValues",{}),q(this,"callbacks",{}),q(this,"validateMessages",null),q(this,"preserve",null),q(this,"lastValidatePromise",null),q(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),q(this,"getInternalHooks",function(r){return r===Ts?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(jn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),q(this,"useSubscribe",function(r){n.subscribable=r}),q(this,"prevWithoutPreserves",null),q(this,"setInitialValues",function(r,a){if(n.initialValues=r||{},a){var o,i=Wl(r,n.store);(o=n.prevWithoutPreserves)===null||o===void 0||o.map(function(l){var c=l.key;i=sr(i,c,Dn(r,c))}),n.prevWithoutPreserves=null,n.updateStore(i)}}),q(this,"destroyForm",function(r){if(r)n.updateStore({});else{var a=new zc;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||a.set(o.getNamePath(),!0)}),n.prevWithoutPreserves=a}}),q(this,"getInitialValue",function(r){var a=Dn(n.initialValues,r);return r.length?Wl(a):a}),q(this,"setCallbacks",function(r){n.callbacks=r}),q(this,"setValidateMessages",function(r){n.validateMessages=r}),q(this,"setPreserve",function(r){n.preserve=r}),q(this,"watchList",[]),q(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(a){return a!==r})}}),q(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var a=n.getFieldsValue(),o=n.getFieldsValue(!0);n.watchList.forEach(function(i){i(a,o,r)})}}),q(this,"timeoutId",null),q(this,"warningUnhooked",function(){}),q(this,"updateStore",function(r){n.store=r}),q(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(a){return a.getNamePath().length}):n.fieldEntities}),q(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,a=new zc;return n.getFieldEntities(r).forEach(function(o){var i=o.getNamePath();a.set(i,o)}),a}),q(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var a=n.getFieldsMap(!0);return r.map(function(o){var i=Dr(o);return a.get(i)||{INVALIDATE_NAME_PATH:Dr(o)}})}),q(this,"getFieldsValue",function(r,a){n.warningUnhooked();var o,i,l;if(r===!0||Array.isArray(r)?(o=r,i=a):r&&st(r)==="object"&&(l=r.strict,i=r.filter),o===!0&&!i)return n.store;var c=n.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),u=[];return c.forEach(function(d){var f,m,g="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(l){var h,b;if((h=(b=d).isList)!==null&&h!==void 0&&h.call(b))return}else if(!o&&(f=(m=d).isListField)!==null&&f!==void 0&&f.call(m))return;if(!i)u.push(g);else{var p="getMeta"in d?d.getMeta():null;i(p)&&u.push(g)}}),ER(n.store,u.map(Dr))}),q(this,"getFieldValue",function(r){n.warningUnhooked();var a=Dr(r);return Dn(n.store,a)}),q(this,"getFieldsError",function(r){n.warningUnhooked();var a=n.getFieldEntitiesForNamePathList(r);return a.map(function(o,i){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:Dr(r[i]),errors:[],warnings:[]}})}),q(this,"getFieldError",function(r){n.warningUnhooked();var a=Dr(r),o=n.getFieldsError([a])[0];return o.errors}),q(this,"getFieldWarning",function(r){n.warningUnhooked();var a=Dr(r),o=n.getFieldsError([a])[0];return o.warnings}),q(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,a=new Array(r),o=0;o0&&arguments[0]!==void 0?arguments[0]:{},a=new zc,o=n.getFieldEntities(!0);o.forEach(function(c){var u=c.props.initialValue,d=c.getNamePath();if(u!==void 0){var f=a.get(d)||new Set;f.add({entity:c,value:u}),a.set(d,f)}});var i=function(u){u.forEach(function(d){var f=d.props.initialValue;if(f!==void 0){var m=d.getNamePath(),g=n.getInitialValue(m);if(g!==void 0)jn(!1,"Form already set 'initialValues' with path '".concat(m.join("."),"'. Field can not overwrite it."));else{var h=a.get(m);if(h&&h.size>1)jn(!1,"Multiple Field with path '".concat(m.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var b=n.getFieldValue(m),p=d.isListField();!p&&(!r.skipExist||b===void 0)&&n.updateStore(sr(n.store,m,Te(h)[0].value))}}}})},l;r.entities?l=r.entities:r.namePathList?(l=[],r.namePathList.forEach(function(c){var u=a.get(c);if(u){var d;(d=l).push.apply(d,Te(Te(u).map(function(f){return f.entity})))}})):l=o,i(l)}),q(this,"resetFields",function(r){n.warningUnhooked();var a=n.store;if(!r){n.updateStore(Wl(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(a,null,{type:"reset"}),n.notifyWatch();return}var o=r.map(Dr);o.forEach(function(i){var l=n.getInitialValue(i);n.updateStore(sr(n.store,i,l))}),n.resetWithFieldInitialValue({namePathList:o}),n.notifyObservers(a,o,{type:"reset"}),n.notifyWatch(o)}),q(this,"setFields",function(r){n.warningUnhooked();var a=n.store,o=[];r.forEach(function(i){var l=i.name,c=Ue(i,YZ),u=Dr(l);o.push(u),"value"in c&&n.updateStore(sr(n.store,u,c.value)),n.notifyObservers(a,[u],{type:"setField",data:i})}),n.notifyWatch(o)}),q(this,"getFields",function(){var r=n.getFieldEntities(!0),a=r.map(function(o){var i=o.getNamePath(),l=o.getMeta(),c=R(R({},l),{},{name:i,value:n.getFieldValue(i)});return Object.defineProperty(c,"originRCField",{value:!0}),c});return a}),q(this,"initEntityValue",function(r){var a=r.props.initialValue;if(a!==void 0){var o=r.getNamePath(),i=Dn(n.store,o);i===void 0&&n.updateStore(sr(n.store,o,a))}}),q(this,"isMergedPreserve",function(r){var a=r!==void 0?r:n.preserve;return a??!0}),q(this,"registerField",function(r){n.fieldEntities.push(r);var a=r.getNamePath();if(n.notifyWatch([a]),r.props.initialValue!==void 0){var o=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(o,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(i,l){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(l)&&(!i||c.length>1)){var u=i?void 0:n.getInitialValue(a);if(a.length&&n.getFieldValue(a)!==u&&n.fieldEntities.every(function(f){return!mF(f.getNamePath(),a)})){var d=n.store;n.updateStore(sr(d,a,u,!0)),n.notifyObservers(d,[a],{type:"remove"}),n.triggerDependenciesUpdate(d,a)}}n.notifyWatch([a])}}),q(this,"dispatch",function(r){switch(r.type){case"updateValue":{var a=r.namePath,o=r.value;n.updateValue(a,o);break}case"validateField":{var i=r.namePath,l=r.triggerName;n.validateFields([i],{triggerName:l});break}}}),q(this,"notifyObservers",function(r,a,o){if(n.subscribable){var i=R(R({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(l){var c=l.onStoreChange;c(r,a,i)})}else n.forceRootUpdate()}),q(this,"triggerDependenciesUpdate",function(r,a){var o=n.getDependencyChildrenFields(a);return o.length&&n.validateFields(o),n.notifyObservers(r,o,{type:"dependenciesUpdate",relatedFields:[a].concat(Te(o))}),o}),q(this,"updateValue",function(r,a){var o=Dr(r),i=n.store;n.updateStore(sr(n.store,o,a)),n.notifyObservers(i,[o],{type:"valueUpdate",source:"internal"}),n.notifyWatch([o]);var l=n.triggerDependenciesUpdate(i,o),c=n.callbacks.onValuesChange;if(c){var u=ER(n.store,[o]);c(u,n.getFieldsValue())}n.triggerOnFieldsChange([o].concat(Te(l)))}),q(this,"setFieldsValue",function(r){n.warningUnhooked();var a=n.store;if(r){var o=Wl(n.store,r);n.updateStore(o)}n.notifyObservers(a,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),q(this,"setFieldValue",function(r,a){n.setFields([{name:r,value:a,errors:[],warnings:[]}])}),q(this,"getDependencyChildrenFields",function(r){var a=new Set,o=[],i=new zc;n.getFieldEntities().forEach(function(c){var u=c.props.dependencies;(u||[]).forEach(function(d){var f=Dr(d);i.update(f,function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return m.add(c),m})})});var l=function c(u){var d=i.get(u)||new Set;d.forEach(function(f){if(!a.has(f)){a.add(f);var m=f.getNamePath();f.isFieldDirty()&&m.length&&(o.push(m),c(m))}})};return l(r),o}),q(this,"triggerOnFieldsChange",function(r,a){var o=n.callbacks.onFieldsChange;if(o){var i=n.getFields();if(a){var l=new zc;a.forEach(function(u){var d=u.name,f=u.errors;l.set(d,f)}),i.forEach(function(u){u.errors=l.get(u.name)||u.errors})}var c=i.filter(function(u){var d=u.name;return uu(r,d)});c.length&&o(c,i)}}),q(this,"validateFields",function(r,a){n.warningUnhooked();var o,i;Array.isArray(r)||typeof r=="string"||typeof a=="string"?(o=r,i=a):i=r;var l=!!o,c=l?o.map(Dr):[],u=[],d=String(Date.now()),f=new Set,m=i||{},g=m.recursive,h=m.dirty;n.getFieldEntities(!0).forEach(function(C){if(l||c.push(C.getNamePath()),!(!C.props.rules||!C.props.rules.length)&&!(h&&!C.isFieldDirty())){var x=C.getNamePath();if(f.add(x.join(d)),!l||uu(c,x,g)){var w=C.validateRules(R({validateMessages:R(R({},vF),n.validateMessages)},i));u.push(w.then(function(){return{name:x,errors:[],warnings:[]}}).catch(function($){var E,P=[],M=[];return(E=$.forEach)===null||E===void 0||E.call($,function(O){var T=O.rule.warningOnly,N=O.errors;T?M.push.apply(M,Te(N)):P.push.apply(P,Te(N))}),P.length?Promise.reject({name:x,errors:P,warnings:M}):{name:x,errors:P,warnings:M}}))}}});var b=XZ(u);n.lastValidatePromise=b,b.catch(function(C){return C}).then(function(C){var x=C.map(function(w){var $=w.name;return $});n.notifyObservers(n.store,x,{type:"validateFinish"}),n.triggerOnFieldsChange(x,C)});var p=b.then(function(){return n.lastValidatePromise===b?Promise.resolve(n.getFieldsValue(c)):Promise.reject([])}).catch(function(C){var x=C.filter(function(w){return w&&w.errors.length});return Promise.reject({values:n.getFieldsValue(c),errorFields:x,outOfDate:n.lastValidatePromise!==b})});p.catch(function(C){return C});var S=c.filter(function(C){return f.has(C.join(d))});return n.triggerOnFieldsChange(S),p}),q(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var a=n.callbacks.onFinish;if(a)try{a(r)}catch(o){console.error(o)}}).catch(function(r){var a=n.callbacks.onFinishFailed;a&&a(r)})}),this.forceRootUpdate=t});function EE(e){var t=s.useRef(),n=s.useState({}),r=fe(n,2),a=r[1];if(!t.current)if(e)t.current=e;else{var o=function(){a({})},i=new QZ(o);t.current=i.getForm()}return[t.current]}var Sw=s.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),hF=function(t){var n=t.validateMessages,r=t.onFormChange,a=t.onFormFinish,o=t.children,i=s.useContext(Sw),l=s.useRef({});return s.createElement(Sw.Provider,{value:R(R({},i),{},{validateMessages:R(R({},i.validateMessages),n),triggerFormChange:function(u,d){r&&r(u,{changedFields:d,forms:l.current}),i.triggerFormChange(u,d)},triggerFormFinish:function(u,d){a&&a(u,{values:d,forms:l.current}),i.triggerFormFinish(u,d)},registerForm:function(u,d){u&&(l.current=R(R({},l.current),{},q({},u,d))),i.registerForm(u,d)},unregisterForm:function(u){var d=R({},l.current);delete d[u],l.current=d,i.unregisterForm(u)}})},o)},ZZ=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],JZ=function(t,n){var r=t.name,a=t.initialValues,o=t.fields,i=t.form,l=t.preserve,c=t.children,u=t.component,d=u===void 0?"form":u,f=t.validateMessages,m=t.validateTrigger,g=m===void 0?"onChange":m,h=t.onValuesChange,b=t.onFieldsChange,p=t.onFinish,S=t.onFinishFailed,C=t.clearOnDestroy,x=Ue(t,ZZ),w=s.useRef(null),$=s.useContext(Sw),E=EE(i),P=fe(E,1),M=P[0],O=M.getInternalHooks(Ts),T=O.useSubscribe,N=O.setInitialValues,D=O.setCallbacks,L=O.setValidateMessages,_=O.setPreserve,F=O.destroyForm;s.useImperativeHandle(n,function(){return R(R({},M),{},{nativeElement:w.current})}),s.useEffect(function(){return $.registerForm(r,M),function(){$.unregisterForm(r)}},[$,M,r]),L(R(R({},$.validateMessages),f)),D({onValuesChange:h,onFieldsChange:function(G){if($.triggerFormChange(r,G),b){for(var X=arguments.length,Y=new Array(X>1?X-1:0),Z=1;Z{}}),yF=s.createContext(null),CF=e=>{const t=Qt(e,["prefixCls"]);return s.createElement(hF,Object.assign({},t))},PE=s.createContext({prefixCls:""}),Or=s.createContext({}),SF=({children:e,status:t,override:n})=>{const r=s.useContext(Or),a=s.useMemo(()=>{const o=Object.assign({},r);return n&&delete o.isFormItemInput,t&&(delete o.status,delete o.hasFeedback,delete o.feedbackIcon),o},[t,n,r]);return s.createElement(Or.Provider,{value:a},e)},xF=s.createContext(void 0),Do=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let a=r;return n&&(a=Q.createElement(SF,{override:!0,status:!0},a)),t&&(a=Q.createElement(lY,null,a)),a};var wF=function(t){if(Xr()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(a){return a in r.style})}return!1},tJ=function(t,n){if(!wF(t))return!1;var r=document.createElement("div"),a=r.style[t];return r.style[t]=n,r.style[t]!==a};function xw(e,t){return!Array.isArray(e)&&t!==void 0?tJ(e,t):wF(e)}const nJ=()=>Xr()&&window.document.documentElement,jh=e=>{const{prefixCls:t,className:n,style:r,size:a,shape:o}=e,i=le({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),l=le({[`${t}-circle`]:o==="circle",[`${t}-square`]:o==="square",[`${t}-round`]:o==="round"}),c=s.useMemo(()=>typeof a=="number"?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return s.createElement("span",{className:le(t,i,l,n),style:Object.assign(Object.assign({},c),r)})},rJ=new an("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Dh=e=>({height:e,lineHeight:ce(e)}),du=e=>Object.assign({width:e},Dh(e)),aJ=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:rJ,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Qy=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Dh(e)),oJ=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:a,controlHeightSM:o}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},du(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},du(a)),[`${t}${t}-sm`]:Object.assign({},du(o))}},iJ=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:a,controlHeightSM:o,gradientFromColor:i,calc:l}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:n},Qy(t,l)),[`${r}-lg`]:Object.assign({},Qy(a,l)),[`${r}-sm`]:Object.assign({},Qy(o,l))}},RR=e=>Object.assign({width:e},Dh(e)),lJ=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:a,calc:o}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:a},RR(o(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},RR(n)),{maxWidth:o(n).mul(4).equal(),maxHeight:o(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},Zy=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},Jy=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Dh(e)),sJ=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:a,controlHeightSM:o,gradientFromColor:i,calc:l}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:t,width:l(r).mul(2).equal(),minWidth:l(r).mul(2).equal()},Jy(r,l))},Zy(e,r,n)),{[`${n}-lg`]:Object.assign({},Jy(a,l))}),Zy(e,a,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},Jy(o,l))}),Zy(e,o,`${n}-sm`))},cJ=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:a,skeletonButtonCls:o,skeletonInputCls:i,skeletonImageCls:l,controlHeight:c,controlHeightLG:u,controlHeightSM:d,gradientFromColor:f,padding:m,marginSM:g,borderRadius:h,titleHeight:b,blockRadius:p,paragraphLiHeight:S,controlHeightXS:C,paragraphMarginTop:x}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:m,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},du(c)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},du(u)),[`${n}-sm`]:Object.assign({},du(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:b,background:f,borderRadius:p,[`+ ${a}`]:{marginBlockStart:d}},[a]:{padding:0,"> li":{width:"100%",height:S,listStyle:"none",background:f,borderRadius:p,"+ li":{marginBlockStart:C}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${a} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:g,[`+ ${a}`]:{marginBlockStart:x}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},sJ(e)),oJ(e)),iJ(e)),lJ(e)),[`${t}${t}-block`]:{width:"100%",[o]:{width:"100%"},[i]:{width:"100%"}},[`${t}${t}-active`]:{[` - ${r}, - ${a} > li, - ${n}, - ${o}, - ${i}, - ${l} - `]:Object.assign({},aJ(e))}}},uJ=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,a=n;return{color:r,colorGradientEnd:a,gradientFromColor:r,gradientToColor:a,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},Uu=rn("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=Xt(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return cJ(r)},uJ,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),dJ=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,shape:o="circle",size:i="default"}=e,{getPrefixCls:l}=s.useContext(Ot),c=l("skeleton",t),[u,d,f]=Uu(c),m=Qt(e,["prefixCls","className"]),g=le(c,`${c}-element`,{[`${c}-active`]:a},n,r,d,f);return u(s.createElement("div",{className:g},s.createElement(jh,Object.assign({prefixCls:`${c}-avatar`,shape:o,size:i},m))))},fJ=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,block:o=!1,size:i="default"}=e,{getPrefixCls:l}=s.useContext(Ot),c=l("skeleton",t),[u,d,f]=Uu(c),m=Qt(e,["prefixCls"]),g=le(c,`${c}-element`,{[`${c}-active`]:a,[`${c}-block`]:o},n,r,d,f);return u(s.createElement("div",{className:g},s.createElement(jh,Object.assign({prefixCls:`${c}-button`,size:i},m))))},vJ="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",mJ=e=>{const{prefixCls:t,className:n,rootClassName:r,style:a,active:o}=e,{getPrefixCls:i}=s.useContext(Ot),l=i("skeleton",t),[c,u,d]=Uu(l),f=le(l,`${l}-element`,{[`${l}-active`]:o},n,r,u,d);return c(s.createElement("div",{className:f},s.createElement("div",{className:le(`${l}-image`,n),style:a},s.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},s.createElement("title",null,"Image placeholder"),s.createElement("path",{d:vJ,className:`${l}-image-path`})))))},gJ=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,block:o,size:i="default"}=e,{getPrefixCls:l}=s.useContext(Ot),c=l("skeleton",t),[u,d,f]=Uu(c),m=Qt(e,["prefixCls"]),g=le(c,`${c}-element`,{[`${c}-active`]:a,[`${c}-block`]:o},n,r,d,f);return u(s.createElement("div",{className:g},s.createElement(jh,Object.assign({prefixCls:`${c}-input`,size:i},m))))},pJ=e=>{const{prefixCls:t,className:n,rootClassName:r,style:a,active:o,children:i}=e,{getPrefixCls:l}=s.useContext(Ot),c=l("skeleton",t),[u,d,f]=Uu(c),m=le(c,`${c}-element`,{[`${c}-active`]:o},d,n,r,f);return u(s.createElement("div",{className:m},s.createElement("div",{className:le(`${c}-image`,n),style:a},i)))},hJ=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},bJ=e=>{const{prefixCls:t,className:n,style:r,rows:a=0}=e,o=Array.from({length:a}).map((i,l)=>s.createElement("li",{key:l,style:{width:hJ(l,e)}}));return s.createElement("ul",{className:le(t,n),style:r},o)},yJ=({prefixCls:e,className:t,width:n,style:r})=>s.createElement("h3",{className:le(e,t),style:Object.assign({width:n},r)});function e1(e){return e&&typeof e=="object"?e:{}}function CJ(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function SJ(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function xJ(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const Tn=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:a,style:o,children:i,avatar:l=!1,title:c=!0,paragraph:u=!0,active:d,round:f}=e,{getPrefixCls:m,direction:g,className:h,style:b}=Vn("skeleton"),p=m("skeleton",t),[S,C,x]=Uu(p);if(n||!("loading"in e)){const w=!!l,$=!!c,E=!!u;let P;if(w){const T=Object.assign(Object.assign({prefixCls:`${p}-avatar`},CJ($,E)),e1(l));P=s.createElement("div",{className:`${p}-header`},s.createElement(jh,Object.assign({},T)))}let M;if($||E){let T;if($){const D=Object.assign(Object.assign({prefixCls:`${p}-title`},SJ(w,E)),e1(c));T=s.createElement(yJ,Object.assign({},D))}let N;if(E){const D=Object.assign(Object.assign({prefixCls:`${p}-paragraph`},xJ(w,$)),e1(u));N=s.createElement(bJ,Object.assign({},D))}M=s.createElement("div",{className:`${p}-content`},T,N)}const O=le(p,{[`${p}-with-avatar`]:w,[`${p}-active`]:d,[`${p}-rtl`]:g==="rtl",[`${p}-round`]:f},h,r,a,C,x);return S(s.createElement("div",{className:O,style:Object.assign(Object.assign({},b),o)},P,M))}return i??null};Tn.Button=fJ;Tn.Avatar=dJ;Tn.Input=gJ;Tn.Image=mJ;Tn.Node=pJ;function IR(){}const $F=s.createContext({add:IR,remove:IR});function EF(e){const t=s.useContext($F),n=s.useRef(null);return Gt(a=>{if(a){const o=e?a.querySelector(e):a;o&&(t.add(o),n.current=o)}else t.remove(n.current)})}const MR=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=s.useContext(mv);return Q.createElement(cr,Object.assign({onClick:n},e),t)},TR=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:a}=s.useContext(mv);return Q.createElement(cr,Object.assign({},gE(n),{loading:e,onClick:a},t),r)};function PF(e,t){return Q.createElement("span",{className:`${e}-close-x`},t||Q.createElement(vo,{className:`${e}-close-icon`}))}const OF=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:a,onOk:o,onCancel:i,okButtonProps:l,cancelButtonProps:c,footer:u}=e,[d]=zr("Modal",Qj()),f=t||d?.okText,m=r||d?.cancelText,g=Q.useMemo(()=>({confirmLoading:a,okButtonProps:l,cancelButtonProps:c,okTextLocale:f,cancelTextLocale:m,okType:n,onOk:o,onCancel:i}),[a,l,c,f,m,n,o,i]);let h;return typeof u=="function"||typeof u>"u"?(h=Q.createElement(Q.Fragment,null,Q.createElement(MR,null),Q.createElement(TR,null)),typeof u=="function"&&(h=u(h,{OkBtn:TR,CancelBtn:MR})),h=Q.createElement(iF,{value:g},h)):h=u,Q.createElement(oE,{disabled:!1},h)},wJ=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},$J=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},EJ=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:a}=e,o={};for(let i=a;i>=0;i--)i===0?(o[`${r}${t}-${i}`]={display:"none"},o[`${r}-push-${i}`]={insetInlineStart:"auto"},o[`${r}-pull-${i}`]={insetInlineEnd:"auto"},o[`${r}${t}-push-${i}`]={insetInlineStart:"auto"},o[`${r}${t}-pull-${i}`]={insetInlineEnd:"auto"},o[`${r}${t}-offset-${i}`]={marginInlineStart:0},o[`${r}${t}-order-${i}`]={order:0}):(o[`${r}${t}-${i}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${i/a*100}%`,maxWidth:`${i/a*100}%`}],o[`${r}${t}-push-${i}`]={insetInlineStart:`${i/a*100}%`},o[`${r}${t}-pull-${i}`]={insetInlineEnd:`${i/a*100}%`},o[`${r}${t}-offset-${i}`]={marginInlineStart:`${i/a*100}%`},o[`${r}${t}-order-${i}`]={order:i});return o[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},o},ww=(e,t)=>EJ(e,t),PJ=(e,t,n)=>({[`@media (min-width: ${ce(t)})`]:Object.assign({},ww(e,n))}),OJ=()=>({}),RJ=()=>({}),IJ=rn("Grid",wJ,OJ),RF=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),MJ=rn("Grid",e=>{const t=Xt(e,{gridColumns:24}),n=RF(t);return delete n.xs,[$J(t),ww(t,""),ww(t,"-xs"),Object.keys(n).map(r=>PJ(t,n[r],`-${r}`)).reduce((r,a)=>Object.assign(Object.assign({},r),a),{})]},RJ);function NR(e){return{position:e,inset:0}}const IF=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},NR("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},NR("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:wh(e)}]},TJ=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${ce(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},fn(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${ce(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:ce(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},Ta(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${ce(e.borderRadiusLG)} ${ce(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${ce(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content, - ${t}-body, - ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},NJ=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},_J=e=>{const{componentCls:t}=e,n=RF(e),r=Object.assign({},n);delete r.xs;const a=`--${t.replace(".","")}-`,o=Object.keys(r).map(i=>({[`@media (min-width: ${ce(r[i])})`]:{width:`var(${a}${i}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(Te(Object.keys(n).map((i,l)=>{const c=Object.keys(n)[l-1];return c?{[`${a}${i}-width`]:`var(${a}${c}-width)`}:null})),[{width:`var(${a}xs-width)`}],Te(o))}}},MF=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Xt(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},TF=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${ce(e.paddingMD)} ${ce(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${ce(e.padding)} ${ce(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${ce(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${ce(e.paddingXS)} ${ce(e.padding)}`:0,footerBorderTop:e.wireframe?`${ce(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${ce(e.borderRadiusLG)} ${ce(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${ce(e.padding*2)} ${ce(e.padding*2)} ${ce(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),NF=rn("Modal",e=>{const t=MF(e);return[TJ(t),NJ(t),IF(t),Wu(t,"zoom"),_J(t)]},TF,{unitless:{titleLineHeight:!0}});var jJ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{$w={x:e.pageX,y:e.pageY},setTimeout(()=>{$w=null},100)};nJ()&&document.documentElement.addEventListener("click",DJ,!0);const _F=e=>{const{prefixCls:t,className:n,rootClassName:r,open:a,wrapClassName:o,centered:i,getContainer:l,focusTriggerAfterClose:c=!0,style:u,visible:d,width:f=520,footer:m,classNames:g,styles:h,children:b,loading:p,confirmLoading:S,zIndex:C,mousePosition:x,onOk:w,onCancel:$,destroyOnHidden:E,destroyOnClose:P,panelRef:M=null,modalRender:O}=e,T=jJ(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading","confirmLoading","zIndex","mousePosition","onOk","onCancel","destroyOnHidden","destroyOnClose","panelRef","modalRender"]),{getPopupContainer:N,getPrefixCls:D,direction:L,modal:_}=s.useContext(Ot),F=ge=>{S||$?.(ge)},j=ge=>{w?.(ge)},k=D("modal",t),z=D(),V=zn(k),[H,B,K]=NF(k,V),W=le(o,{[`${k}-centered`]:i??_?.centered,[`${k}-wrap-rtl`]:L==="rtl"}),G=m!==null&&!p?s.createElement(OF,Object.assign({},e,{onOk:j,onCancel:F})):null,[X,Y,Z,ee]=uE($u(e),$u(_),{closable:!0,closeIcon:s.createElement(vo,{className:`${k}-close-icon`}),closeIconRender:ge=>PF(k,ge)}),re=O?ge=>s.createElement("div",{className:`${k}-render`},O(ge)):void 0,ne=`.${k}-${O?"render":"content"}`,se=EF(ne),oe=wr(M,se),[me,ue]=Ua("Modal",C),[de,ae]=s.useMemo(()=>f&&typeof f=="object"?[void 0,f]:[f,void 0],[f]),ie=s.useMemo(()=>{const ge={};return ae&&Object.keys(ae).forEach(pe=>{const be=ae[pe];be!==void 0&&(ge[`--${k}-${pe}-width`]=typeof be=="number"?`${be}px`:be)}),ge},[k,ae]);return H(s.createElement(Do,{form:!0,space:!0},s.createElement(uv.Provider,{value:ue},s.createElement(xE,Object.assign({width:de},T,{zIndex:me,getContainer:l===void 0?N:l,prefixCls:k,rootClassName:le(B,r,K,V),footer:G,visible:a??d,mousePosition:x??$w,onClose:F,closable:X&&Object.assign({disabled:Z,closeIcon:Y},ee),closeIcon:Y,focusTriggerAfterClose:c,transitionName:aa(z,"zoom",e.transitionName),maskTransitionName:aa(z,"fade",e.maskTransitionName),className:le(B,n,_?.className),style:Object.assign(Object.assign(Object.assign({},_?.style),u),ie),classNames:Object.assign(Object.assign(Object.assign({},_?.classNames),g),{wrapper:le(W,g?.wrapper)}),styles:Object.assign(Object.assign({},_?.styles),h),panelRef:oe,destroyOnClose:E??P,modalRender:re}),p?s.createElement(Tn,{active:!0,title:!1,paragraph:{rows:4},className:`${k}-body-skeleton`}):b))))},FJ=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:a,fontSize:o,lineHeight:i,modalTitleHeight:l,fontHeight:c,confirmBodyPadding:u}=e,d=`${t}-confirm`;return{[d]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${d}-body-wrapper`]:Object.assign({},Ei()),[`&${t} ${t}-body`]:{padding:u},[`${d}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:a,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(c).sub(a).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(l).sub(a).equal()).div(2).equal()}},[`${d}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${ce(e.marginSM)})`},[`${e.iconCls} + ${d}-paragraph`]:{maxWidth:`calc(100% - ${ce(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${d}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${d}-content`]:{color:e.colorText,fontSize:o,lineHeight:i},[`${d}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${d}-error ${d}-body > ${e.iconCls}`]:{color:e.colorError},[`${d}-warning ${d}-body > ${e.iconCls}, - ${d}-confirm ${d}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${d}-info ${d}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${d}-success ${d}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},kJ=Bu(["Modal","confirm"],e=>{const t=MF(e);return FJ(t)},TF,{order:-1e3});var LJ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,icon:n,okText:r,cancelText:a,confirmPrefixCls:o,type:i,okCancel:l,footer:c,locale:u}=e,d=LJ(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let f=n;if(!n&&n!==null)switch(i){case"info":f=s.createElement(bh,null);break;case"success":f=s.createElement(Zs,null);break;case"error":f=s.createElement(_i,null);break;default:f=s.createElement(as,null)}const m=l??i==="confirm",g=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[h]=zr("Modal"),b=u||h,p=r||(m?b?.okText:b?.justOkText),S=a||b?.cancelText,C=s.useMemo(()=>Object.assign({autoFocusButton:g,cancelTextLocale:S,okTextLocale:p,mergedOkCancel:m},d),[g,S,p,m,d]),x=s.createElement(s.Fragment,null,s.createElement(cR,null),s.createElement(uR,null)),w=e.title!==void 0&&e.title!==null,$=`${o}-body`;return s.createElement("div",{className:`${o}-body-wrapper`},s.createElement("div",{className:le($,{[`${$}-has-title`]:w})},f,s.createElement("div",{className:`${o}-paragraph`},w&&s.createElement("span",{className:`${o}-title`},e.title),s.createElement("div",{className:`${o}-content`},e.content))),c===void 0||typeof c=="function"?s.createElement(iF,{value:C},s.createElement("div",{className:`${o}-btns`},typeof c=="function"?c(x,{OkBtn:uR,CancelBtn:cR}):x)):c,s.createElement(kJ,{prefixCls:t}))},zJ=e=>{const{close:t,zIndex:n,maskStyle:r,direction:a,prefixCls:o,wrapClassName:i,rootPrefixCls:l,bodyStyle:c,closable:u=!1,onConfirm:d,styles:f,title:m}=e,g=`${o}-confirm`,h=e.width||416,b=e.style||{},p=e.mask===void 0?!0:e.mask,S=e.maskClosable===void 0?!1:e.maskClosable,C=le(g,`${g}-${e.type}`,{[`${g}-rtl`]:a==="rtl"},e.className),[,x]=Rr(),w=s.useMemo(()=>n!==void 0?n:x.zIndexPopupBase+dE,[n,x]);return s.createElement(_F,Object.assign({},e,{className:C,wrapClassName:le({[`${g}-centered`]:!!e.centered},i),onCancel:()=>{t?.({triggerCancel:!0}),d?.(!1)},title:m,footer:null,transitionName:aa(l||"","zoom",e.transitionName),maskTransitionName:aa(l||"","fade",e.maskTransitionName),mask:p,maskClosable:S,style:b,styles:Object.assign({body:c,mask:r},f),width:h,zIndex:w,closable:u}),s.createElement(jF,Object.assign({},e,{confirmPrefixCls:g})))},DF=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:a}=e;return s.createElement(At,{prefixCls:t,iconPrefixCls:n,direction:r,theme:a},s.createElement(zJ,Object.assign({},e)))},Ns=[];let FF="";function kF(){return FF}const AJ=e=>{var t,n;const{prefixCls:r,getContainer:a,direction:o}=e,i=Qj(),l=s.useContext(Ot),c=kF()||l.getPrefixCls(),u=r||`${c}-modal`;let d=a;return d===!1&&(d=void 0),Q.createElement(DF,Object.assign({},e,{rootPrefixCls:c,prefixCls:u,iconPrefixCls:l.iconPrefixCls,theme:l.theme,direction:o??l.direction,locale:(n=(t=l.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:i,getContainer:d}))};function hv(e){const t=wD(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:c,open:!0}),a,o;function i(...d){var f;if(d.some(h=>h?.triggerCancel)){var g;(f=e.onCancel)===null||f===void 0||(g=f).call.apply(g,[e,()=>{}].concat(Te(d.slice(1))))}for(let h=0;h{clearTimeout(a),a=setTimeout(()=>{const f=t.getPrefixCls(void 0,kF()),m=t.getIconPrefixCls(),g=t.getTheme(),h=Q.createElement(AJ,Object.assign({},d));o=mE()(Q.createElement(At,{prefixCls:f,iconPrefixCls:m,theme:g},typeof t.holderRender=="function"?t.holderRender(h):h),n)})};function c(...d){r=Object.assign(Object.assign({},r),{open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),i.apply(this,d)}}),r.visible&&delete r.visible,l(r)}function u(d){typeof d=="function"?r=d(r):r=Object.assign(Object.assign({},r),d),l(r)}return l(r),Ns.push(c),{destroy:c,update:u}}function LF(e){return Object.assign(Object.assign({},e),{type:"warning"})}function zF(e){return Object.assign(Object.assign({},e),{type:"info"})}function AF(e){return Object.assign(Object.assign({},e),{type:"success"})}function BF(e){return Object.assign(Object.assign({},e),{type:"error"})}function HF(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function BJ({rootPrefixCls:e}){FF=e}var HJ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,{afterClose:r,config:a}=e,o=HJ(e,["afterClose","config"]);const[i,l]=s.useState(!0),[c,u]=s.useState(a),{direction:d,getPrefixCls:f}=s.useContext(Ot),m=f("modal"),g=f(),h=()=>{var C;r(),(C=c.afterClose)===null||C===void 0||C.call(c)},b=(...C)=>{var x;if(l(!1),C.some(E=>E?.triggerCancel)){var $;(x=c.onCancel)===null||x===void 0||($=x).call.apply($,[c,()=>{}].concat(Te(C.slice(1))))}};s.useImperativeHandle(t,()=>({destroy:b,update:C=>{u(x=>{const w=typeof C=="function"?C(x):C;return Object.assign(Object.assign({},x),w)})}}));const p=(n=c.okCancel)!==null&&n!==void 0?n:c.type==="confirm",[S]=zr("Modal",Ka.Modal);return s.createElement(DF,Object.assign({prefixCls:m,rootPrefixCls:g},c,{close:b,open:i,afterClose:h,okText:c.okText||(p?S?.okText:S?.justOkText),direction:c.direction||d,cancelText:c.cancelText||S?.cancelText},o))},WJ=s.forwardRef(VJ);let _R=0;const KJ=s.memo(s.forwardRef((e,t)=>{const[n,r]=yX();return s.useImperativeHandle(t,()=>({patchElement:r}),[r]),s.createElement(s.Fragment,null,n)}));function VF(){const e=s.useRef(null),[t,n]=s.useState([]);s.useEffect(()=>{t.length&&(Te(t).forEach(i=>{i()}),n([]))},[t]);const r=s.useCallback(o=>function(l){var c;_R+=1;const u=s.createRef();let d;const f=new Promise(p=>{d=p});let m=!1,g;const h=s.createElement(WJ,{key:`modal-${_R}`,config:o(l),ref:u,afterClose:()=>{g?.()},isSilent:()=>m,onConfirm:p=>{d(p)}});return g=(c=e.current)===null||c===void 0?void 0:c.patchElement(h),g&&Ns.push(g),{destroy:()=>{function p(){var S;(S=u.current)===null||S===void 0||S.destroy()}u.current?p():n(S=>[].concat(Te(S),[p]))},update:p=>{function S(){var C;(C=u.current)===null||C===void 0||C.update(p)}u.current?S():n(C=>[].concat(Te(C),[S]))},then:p=>(m=!0,f.then(p))}},[]);return[s.useMemo(()=>({info:r(zF),success:r(AF),error:r(BF),warning:r(LF),confirm:r(HF)}),[r]),s.createElement(KJ,{key:"modal-holder",ref:e})]}const qJ=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,a=`${t}-notice`,o=new an("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),i=new an("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),l=new an("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),c=new an("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[a]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:o}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[a]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:c}}}}},UJ=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],GJ={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},XJ=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[GJ[t]]:{value:0,_skip_check_:!0}}}}},YJ=e=>{const t={};for(let n=1;n ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},QJ=e=>{const t={};for(let n=1;n{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`transform ${e.motionDurationSlow}, backdrop-filter 0s`,willChange:"transform, opacity",position:"absolute"},YJ(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},QJ(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},UJ.map(n=>XJ(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},JJ=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:a,notificationMarginBottom:o,borderRadiusLG:i,colorSuccess:l,colorInfo:c,colorWarning:u,colorError:d,colorTextHeading:f,notificationBg:m,notificationPadding:g,notificationMarginEdge:h,notificationProgressBg:b,notificationProgressHeight:p,fontSize:S,lineHeight:C,width:x,notificationIconSize:w,colorText:$,colorSuccessBg:E,colorErrorBg:P,colorInfoBg:M,colorWarningBg:O}=e,T=`${n}-notice`;return{position:"relative",marginBottom:o,marginInlineStart:"auto",background:m,borderRadius:i,boxShadow:r,[T]:{padding:g,width:x,maxWidth:`calc(100vw - ${ce(e.calc(h).mul(2).equal())})`,lineHeight:C,wordWrap:"break-word",borderRadius:i,overflow:"hidden","&-success":E?{background:E}:{},"&-error":P?{background:P}:{},"&-info":M?{background:M}:{},"&-warning":O?{background:O}:{}},[`${T}-message`]:{color:f,fontSize:a,lineHeight:e.lineHeightLG},[`${T}-description`]:{fontSize:S,color:$,marginTop:e.marginXS},[`${T}-closable ${T}-message`]:{paddingInlineEnd:e.paddingLG},[`${T}-with-icon ${T}-message`]:{marginInlineStart:e.calc(e.marginSM).add(w).equal(),fontSize:a},[`${T}-with-icon ${T}-description`]:{marginInlineStart:e.calc(e.marginSM).add(w).equal(),fontSize:S},[`${T}-icon`]:{position:"absolute",fontSize:w,lineHeight:1,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:c},[`&-warning${t}`]:{color:u},[`&-error${t}`]:{color:d}},[`${T}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},Ta(e)),[`${T}-progress`]:{position:"absolute",display:"block",appearance:"none",inlineSize:`calc(100% - ${ce(i)} * 2)`,left:{_skip_check_:!0,value:i},right:{_skip_check_:!0,value:i},bottom:0,blockSize:p,border:0,"&, &::-webkit-progress-bar":{borderRadius:i,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:b},"&::-webkit-progress-value":{borderRadius:i,background:b}},[`${T}-actions`]:{float:"right",marginTop:e.marginSM}}},eee=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:a,motionEaseInOut:o}=e,i=`${t}-notice`,l=new an("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},fn(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:o,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:o,animationFillMode:"both",animationDuration:a,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:l,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${i}-actions`]:{float:"left"}}})},{[t]:{[`${i}-wrapper`]:JJ(e)}}]},tee=e=>({zIndexPopup:e.zIndexPopupBase+dE+50,width:384,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}),nee=e=>{const t=e.paddingMD,n=e.paddingLG;return Xt(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${ce(e.paddingMD)} ${ce(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},ree=rn("Notification",e=>{const t=nee(e);return[eee(t),qJ(t),ZJ(t)]},tee);function WF(e,t){return t===null||t===!1?null:t||s.createElement(vo,{className:`${e}-close-icon`})}const aee={success:Zs,info:bh,error:_i,warning:as},oee=e=>{const{prefixCls:t,icon:n,type:r,message:a,description:o,actions:i,role:l="alert"}=e;let c=null;return n?c=s.createElement("span",{className:`${t}-icon`},n):r&&(c=s.createElement(aee[r]||null,{className:le(`${t}-icon`,`${t}-icon-${r}`)})),s.createElement("div",{className:le({[`${t}-with-icon`]:c}),role:l},c,s.createElement("div",{className:`${t}-message`},a),o&&s.createElement("div",{className:`${t}-description`},o),i&&s.createElement("div",{className:`${t}-actions`},i))};function iee(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function lee(e){return{motionName:`${e}-fade`}}function see(e,t,n){return typeof e<"u"?e:typeof t?.closeIcon<"u"?t.closeIcon:n?.closeIcon}var cee=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const n=zn(t),[r,a,o]=ree(t,n);return r(Q.createElement(jD,{classNames:{list:le(a,o,n)}},e))},vee=(e,{prefixCls:t,key:n})=>Q.createElement(fee,{prefixCls:t,key:n},e),mee=Q.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:a,getContainer:o,maxCount:i,rtl:l,onAllRemoved:c,stack:u,duration:d,pauseOnHover:f=!0,showProgress:m}=e,{getPrefixCls:g,getPopupContainer:h,notification:b,direction:p}=s.useContext(Ot),[,S]=Rr(),C=a||g("notification"),x=M=>iee(M,n??jR,r??jR),w=()=>le({[`${C}-rtl`]:l??p==="rtl"}),$=()=>lee(C),[E,P]=DD({prefixCls:C,style:x,className:w,motion:$,closable:!0,closeIcon:WF(C),duration:d??uee,getContainer:()=>o?.()||h?.()||document.body,maxCount:i,pauseOnHover:f,showProgress:m,onAllRemoved:c,renderNotifications:vee,stack:u===!1?!1:{threshold:typeof u=="object"?u?.threshold:void 0,offset:8,gap:S.margin}});return Q.useImperativeHandle(t,()=>Object.assign(Object.assign({},E),{prefixCls:C,notification:b})),P});function gee(e){const t=Q.useRef(null);return Ni(),[Q.useMemo(()=>{const r=l=>{var c;if(!t.current)return;const{open:u,prefixCls:d,notification:f}=t.current,m=`${d}-notice`,{message:g,description:h,icon:b,type:p,btn:S,actions:C,className:x,style:w,role:$="alert",closeIcon:E,closable:P}=l,M=cee(l,["message","description","icon","type","btn","actions","className","style","role","closeIcon","closable"]),O=C??S,T=WF(m,see(E,e,f));return u(Object.assign(Object.assign({placement:(c=e?.placement)!==null&&c!==void 0?c:dee},M),{content:Q.createElement(oee,{prefixCls:m,icon:b,type:p,message:g,description:h,actions:O,role:$}),className:le(p&&`${m}-${p}`,x,f?.className),style:Object.assign(Object.assign({},f?.style),w),closeIcon:T,closable:P??!!T}))},o={open:r,destroy:l=>{var c,u;l!==void 0?(c=t.current)===null||c===void 0||c.close(l):(u=t.current)===null||u===void 0||u.destroy()}};return["success","info","warning","error"].forEach(l=>{o[l]=c=>r(Object.assign(Object.assign({},c),{type:l}))}),o},[]),Q.createElement(mee,Object.assign({key:"notification-holder"},e,{ref:t}))]}function pee(e){return gee(e)}const Ew=Q.createContext({}),KF=Q.createContext({message:{},notification:{},modal:{}}),hee=e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:a,fontFamily:o}=e;return{[t]:{color:n,fontSize:r,lineHeight:a,fontFamily:o,[`&${t}-rtl`]:{direction:"rtl"}}}},bee=()=>({}),yee=rn("App",hee,bee),Cee=e=>{const{prefixCls:t,children:n,className:r,rootClassName:a,message:o,notification:i,style:l,component:c="div"}=e,{direction:u,getPrefixCls:d}=s.useContext(Ot),f=d("app",t),[m,g,h]=yee(f),b=le(g,f,r,a,h,{[`${f}-rtl`]:u==="rtl"}),p=s.useContext(Ew),S=Q.useMemo(()=>({message:Object.assign(Object.assign({},p.message),o),notification:Object.assign(Object.assign({},p.notification),i)}),[o,i,p.message,p.notification]),[C,x]=BD(S.message),[w,$]=pee(S.notification),[E,P]=VF(),M=Q.useMemo(()=>({message:C,notification:w,modal:E}),[C,w,E]);Ni()(!(h&&c===!1),"usage","When using cssVar, ensure `component` is assigned a valid React component string.");const O=c===!1?Q.Fragment:c,T={className:b,style:l};return m(Q.createElement(KF.Provider,{value:M},Q.createElement(Ew.Provider,{value:S},Q.createElement(O,Object.assign({},c===!1?void 0:T),P,x,$,n))))},See=()=>Q.useContext(KF),xee=Cee;xee.useApp=See;function qF(e){return t=>s.createElement(At,{theme:{token:{motion:!1,zIndexPopupBase:0}}},s.createElement(e,Object.assign({},t)))}const is=(e,t,n,r,a)=>qF(i=>{const{prefixCls:l,style:c}=i,u=s.useRef(null),[d,f]=s.useState(0),[m,g]=s.useState(0),[h,b]=Tt(!1,{value:i.open}),{getPrefixCls:p}=s.useContext(Ot),S=p(r||"select",l);s.useEffect(()=>{if(b(!0),typeof ResizeObserver<"u"){const w=new ResizeObserver(E=>{const P=E[0].target;f(P.offsetHeight+8),g(P.offsetWidth)}),$=setInterval(()=>{var E;const P=a?`.${a(S)}`:`.${S}-dropdown`,M=(E=u.current)===null||E===void 0?void 0:E.querySelector(P);M&&(clearInterval($),w.observe(M))},10);return()=>{clearInterval($),w.disconnect()}}},[S]);let C=Object.assign(Object.assign({},i),{style:Object.assign(Object.assign({},c),{margin:0}),open:h,visible:h,getPopupContainer:()=>u.current});n&&(C=n(C)),t&&Object.assign(C,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const x={paddingBottom:d,position:"relative",minWidth:m};return s.createElement("div",{ref:u,style:x},s.createElement(e,Object.assign({},C)))}),Fh=(function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e?.substr(0,4))});var kh=function(t){var n=t.className,r=t.customizeIcon,a=t.customizeIconProps,o=t.children,i=t.onMouseDown,l=t.onClick,c=typeof r=="function"?r(a):r;return s.createElement("span",{className:n,onMouseDown:function(d){d.preventDefault(),i?.(d)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},c!==void 0?c:s.createElement("span",{className:le(n.split(/\s+/).map(function(u){return"".concat(u,"-icon")}))},o))},wee=function(t,n,r,a,o){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,l=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,u=Q.useMemo(function(){if(st(a)==="object")return a.clearIcon;if(o)return o},[a,o]),d=Q.useMemo(function(){return!!(!i&&a&&(r.length||l)&&!(c==="combobox"&&l===""))},[a,i,r.length,l,c]);return{allowClear:d,clearIcon:Q.createElement(kh,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:u},"×")}},UF=s.createContext(null);function OE(){return s.useContext(UF)}function $ee(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=s.useState(!1),n=fe(t,2),r=n[0],a=n[1],o=s.useRef(null),i=function(){window.clearTimeout(o.current)};s.useEffect(function(){return i},[]);var l=function(u,d){i(),o.current=window.setTimeout(function(){a(u),d&&d()},e)};return[r,l,i]}function GF(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=s.useRef(null),n=s.useRef(null);s.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(a){(a||t.current===null)&&(t.current=a),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function Eee(e,t,n,r){var a=s.useRef(null);a.current={open:t,triggerOpen:n,customizedTrigger:r},s.useEffect(function(){function o(i){var l;if(!((l=a.current)!==null&&l!==void 0&&l.customizedTrigger)){var c=i.target;c.shadowRoot&&i.composed&&(c=i.composedPath()[0]||c),a.current.open&&e().filter(function(u){return u}).every(function(u){return!u.contains(c)&&u!==c})&&a.current.triggerOpen(!1)}}return window.addEventListener("mousedown",o),function(){return window.removeEventListener("mousedown",o)}},[])}function Pee(e){return e&&![lt.ESC,lt.SHIFT,lt.BACKSPACE,lt.TAB,lt.WIN_KEY,lt.ALT,lt.META,lt.WIN_KEY_RIGHT,lt.CTRL,lt.SEMICOLON,lt.EQUALS,lt.CAPS_LOCK,lt.CONTEXT_MENU,lt.F1,lt.F2,lt.F3,lt.F4,lt.F5,lt.F6,lt.F7,lt.F8,lt.F9,lt.F10,lt.F11,lt.F12].includes(e)}var Oee=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Ac=void 0;function Ree(e,t){var n=e.prefixCls,r=e.invalidate,a=e.item,o=e.renderItem,i=e.responsive,l=e.responsiveDisabled,c=e.registerSize,u=e.itemKey,d=e.className,f=e.style,m=e.children,g=e.display,h=e.order,b=e.component,p=b===void 0?"div":b,S=Ue(e,Oee),C=i&&!g;function x(M){c(u,M)}s.useEffect(function(){return function(){x(null)}},[]);var w=o&&a!==Ac?o(a,{index:h}):m,$;r||($={opacity:C?0:1,height:C?0:Ac,overflowY:C?"hidden":Ac,order:i?h:Ac,pointerEvents:C?"none":Ac,position:C?"absolute":Ac});var E={};C&&(E["aria-hidden"]=!0);var P=s.createElement(p,xe({className:le(!r&&n,d),style:R(R({},$),f)},E,S,{ref:t}),w);return i&&(P=s.createElement(Vr,{onResize:function(O){var T=O.offsetWidth;x(T)},disabled:l},P)),P}var ou=s.forwardRef(Ree);ou.displayName="Item";function Iee(e){if(typeof MessageChannel>"u")ln(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function Mee(){var e=s.useRef(null),t=function(r){e.current||(e.current=[],Iee(function(){kr.unstable_batchedUpdates(function(){e.current.forEach(function(a){a()}),e.current=null})})),e.current.push(r)};return t}function Bc(e,t){var n=s.useState(t),r=fe(n,2),a=r[0],o=r[1],i=Gt(function(l){e(function(){o(l)})});return[a,i]}var Op=Q.createContext(null),Tee=["component"],Nee=["className"],_ee=["className"],jee=function(t,n){var r=s.useContext(Op);if(!r){var a=t.component,o=a===void 0?"div":a,i=Ue(t,Tee);return s.createElement(o,xe({},i,{ref:n}))}var l=r.className,c=Ue(r,Nee),u=t.className,d=Ue(t,_ee);return s.createElement(Op.Provider,{value:null},s.createElement(ou,xe({ref:n,className:le(l,u)},c,d)))},XF=s.forwardRef(jee);XF.displayName="RawItem";var Dee=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],YF="responsive",QF="invalidate";function Fee(e){return"+ ".concat(e.length," ...")}function kee(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,a=e.data,o=a===void 0?[]:a,i=e.renderItem,l=e.renderRawItem,c=e.itemKey,u=e.itemWidth,d=u===void 0?10:u,f=e.ssr,m=e.style,g=e.className,h=e.maxCount,b=e.renderRest,p=e.renderRawRest,S=e.prefix,C=e.suffix,x=e.component,w=x===void 0?"div":x,$=e.itemComponent,E=e.onVisibleChange,P=Ue(e,Dee),M=f==="full",O=Mee(),T=Bc(O,null),N=fe(T,2),D=N[0],L=N[1],_=D||0,F=Bc(O,new Map),j=fe(F,2),k=j[0],z=j[1],V=Bc(O,0),H=fe(V,2),B=H[0],K=H[1],W=Bc(O,0),G=fe(W,2),X=G[0],Y=G[1],Z=Bc(O,0),ee=fe(Z,2),re=ee[0],ne=ee[1],se=Bc(O,0),oe=fe(se,2),me=oe[0],ue=oe[1],de=s.useState(null),ae=fe(de,2),ie=ae[0],ge=ae[1],pe=s.useState(null),be=fe(pe,2),ve=be[0],Ce=be[1],he=s.useMemo(function(){return ve===null&&M?Number.MAX_SAFE_INTEGER:ve||0},[ve,D]),Se=s.useState(!1),Ee=fe(Se,2),Oe=Ee[0],We=Ee[1],je="".concat(r,"-item"),De=Math.max(B,X),ke=h===YF,_e=o.length&&ke,Re=h===QF,Le=_e||typeof h=="number"&&o.length>h,Me=s.useMemo(function(){var Ve=o;return _e?D===null&&M?Ve=o:Ve=o.slice(0,Math.min(o.length,_/d)):typeof h=="number"&&(Ve=o.slice(0,h)),Ve},[o,d,D,h,_e]),Be=s.useMemo(function(){return _e?o.slice(he+1):o.slice(Me.length)},[o,Me,_e,he]),$e=s.useCallback(function(Ve,Pe){var He;return typeof c=="function"?c(Ve):(He=c&&Ve?.[c])!==null&&He!==void 0?He:Pe},[c]),we=s.useCallback(i||function(Ve){return Ve},[i]);function Ie(Ve,Pe,He){ve===Ve&&(Pe===void 0||Pe===ie)||(Ce(Ve),He||(We(Ve_){Ie(Ze-1,Ve-at-me+X);break}}C&&tt(0)+me>_&&ge(null)}},[_,k,X,re,me,$e,Me]);var rt=Oe&&!!Be.length,ct={};ie!==null&&_e&&(ct={position:"absolute",left:ie,top:0});var Ct={prefixCls:je,responsive:_e,component:$,invalidate:Re},yt=l?function(Ve,Pe){var He=$e(Ve,Pe);return s.createElement(Op.Provider,{key:He,value:R(R({},Ct),{},{order:Pe,item:Ve,itemKey:He,registerSize:Ge,display:Pe<=he})},l(Ve,Pe))}:function(Ve,Pe){var He=$e(Ve,Pe);return s.createElement(ou,xe({},Ct,{order:Pe,key:He,item:Ve,renderItem:we,itemKey:He,registerSize:Ge,display:Pe<=he}))},dt={order:rt?he:Number.MAX_SAFE_INTEGER,className:"".concat(je,"-rest"),registerSize:et,display:rt},vt=b||Fee,bt=p?s.createElement(Op.Provider,{value:R(R({},Ct),dt)},p(Be)):s.createElement(ou,xe({},Ct,dt),typeof vt=="function"?vt(Be):vt),ze=s.createElement(w,xe({className:le(!Re&&r,g),style:m,ref:t},P),S&&s.createElement(ou,xe({},Ct,{responsive:ke,responsiveDisabled:!_e,order:-1,className:"".concat(je,"-prefix"),registerSize:Ke,display:!0}),S),Me.map(yt),Le?bt:null,C&&s.createElement(ou,xe({},Ct,{responsive:ke,responsiveDisabled:!_e,order:he,className:"".concat(je,"-suffix"),registerSize:Ye,display:!0,style:ct}),C));return ke?s.createElement(Vr,{onResize:Fe,disabled:!_e},ze):ze}var ei=s.forwardRef(kee);ei.displayName="Overflow";ei.Item=XF;ei.RESPONSIVE=YF;ei.INVALIDATE=QF;function Lee(e,t,n){var r=R(R({},e),t);return Object.keys(t).forEach(function(a){var o=t[a];typeof o=="function"&&(r[a]=function(){for(var i,l=arguments.length,c=new Array(l),u=0;ux&&(be="".concat(ve.slice(0,x),"..."))}var Ce=function(Se){Se&&Se.stopPropagation(),M(de)};return typeof E=="function"?re(ge,be,ae,pe,Ce):ee(de,be,ae,pe,Ce)},se=function(de){if(!a.length)return null;var ae=typeof $=="function"?$(de):$;return typeof E=="function"?re(void 0,ae,!1,!1,void 0,!0):ee({title:ae},ae,!1)},oe=s.createElement("div",{className:"".concat(X,"-search"),style:{width:V},onFocus:function(){G(!0)},onBlur:function(){G(!1)}},s.createElement(ZF,{ref:c,open:o,prefixCls:r,id:n,inputElement:null,disabled:d,autoFocus:g,autoComplete:h,editable:Z,activeDescendantId:b,value:Y,onKeyDown:N,onMouseDown:D,onChange:O,onPaste:T,onCompositionStart:L,onCompositionEnd:_,onBlur:F,tabIndex:p,attrs:Qn(t,!0)}),s.createElement("span",{ref:j,className:"".concat(X,"-search-mirror"),"aria-hidden":!0},Y," ")),me=s.createElement(ei,{prefixCls:"".concat(X,"-overflow"),data:a,renderItem:ne,renderRest:se,suffix:oe,itemKey:qee,maxCount:C});return s.createElement("span",{className:"".concat(X,"-wrap")},me,!a.length&&!Y&&s.createElement("span",{className:"".concat(X,"-placeholder")},u))},Gee=function(t){var n=t.inputElement,r=t.prefixCls,a=t.id,o=t.inputRef,i=t.disabled,l=t.autoFocus,c=t.autoComplete,u=t.activeDescendantId,d=t.mode,f=t.open,m=t.values,g=t.placeholder,h=t.tabIndex,b=t.showSearch,p=t.searchValue,S=t.activeValue,C=t.maxLength,x=t.onInputKeyDown,w=t.onInputMouseDown,$=t.onInputChange,E=t.onInputPaste,P=t.onInputCompositionStart,M=t.onInputCompositionEnd,O=t.onInputBlur,T=t.title,N=s.useState(!1),D=fe(N,2),L=D[0],_=D[1],F=d==="combobox",j=F||b,k=m[0],z=p||"";F&&S&&!L&&(z=S),s.useEffect(function(){F&&_(!1)},[F,S]);var V=d!=="combobox"&&!f&&!b?!1:!!z,H=T===void 0?ek(k):T,B=s.useMemo(function(){return k?null:s.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:V?{visibility:"hidden"}:void 0},g)},[k,V,g,r]);return s.createElement("span",{className:"".concat(r,"-selection-wrap")},s.createElement("span",{className:"".concat(r,"-selection-search")},s.createElement(ZF,{ref:o,prefixCls:r,id:a,open:f,inputElement:n,disabled:i,autoFocus:l,autoComplete:c,editable:j,activeDescendantId:u,value:z,onKeyDown:x,onMouseDown:w,onChange:function(W){_(!0),$(W)},onPaste:E,onCompositionStart:P,onCompositionEnd:M,onBlur:O,tabIndex:h,attrs:Qn(t,!0),maxLength:F?C:void 0})),!F&&k?s.createElement("span",{className:"".concat(r,"-selection-item"),title:H,style:V?{visibility:"hidden"}:void 0},k.label):null,B)},Xee=function(t,n){var r=s.useRef(null),a=s.useRef(!1),o=t.prefixCls,i=t.open,l=t.mode,c=t.showSearch,u=t.tokenWithEnter,d=t.disabled,f=t.prefix,m=t.autoClearSearchValue,g=t.onSearch,h=t.onSearchSubmit,b=t.onToggleOpen,p=t.onInputKeyDown,S=t.onInputBlur,C=t.domRef;s.useImperativeHandle(n,function(){return{focus:function(H){r.current.focus(H)},blur:function(){r.current.blur()}}});var x=GF(0),w=fe(x,2),$=w[0],E=w[1],P=function(H){var B=H.which,K=r.current instanceof HTMLTextAreaElement;!K&&i&&(B===lt.UP||B===lt.DOWN)&&H.preventDefault(),p&&p(H),B===lt.ENTER&&l==="tags"&&!a.current&&!i&&h?.(H.target.value),!(K&&!i&&~[lt.UP,lt.DOWN,lt.LEFT,lt.RIGHT].indexOf(B))&&Pee(B)&&b(!0)},M=function(){E(!0)},O=s.useRef(null),T=function(H){g(H,!0,a.current)!==!1&&b(!0)},N=function(){a.current=!0},D=function(H){a.current=!1,l!=="combobox"&&T(H.target.value)},L=function(H){var B=H.target.value;if(u&&O.current&&/[\r\n]/.test(O.current)){var K=O.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");B=B.replace(K,O.current)}O.current=null,T(B)},_=function(H){var B=H.clipboardData,K=B?.getData("text");O.current=K||""},F=function(H){var B=H.target;if(B!==r.current){var K=document.body.style.msTouchAction!==void 0;K?setTimeout(function(){r.current.focus()}):r.current.focus()}},j=function(H){var B=$();H.target!==r.current&&!B&&!(l==="combobox"&&d)&&H.preventDefault(),(l!=="combobox"&&(!c||!B)||!i)&&(i&&m!==!1&&g("",!0,!1),b())},k={inputRef:r,onInputKeyDown:P,onInputMouseDown:M,onInputChange:L,onInputPaste:_,onInputCompositionStart:N,onInputCompositionEnd:D,onInputBlur:S},z=l==="multiple"||l==="tags"?s.createElement(Uee,xe({},t,k)):s.createElement(Gee,xe({},t,k));return s.createElement("div",{ref:C,className:"".concat(o,"-selector"),onClick:F,onMouseDown:j},f&&s.createElement("div",{className:"".concat(o,"-prefix")},f),z)},Yee=s.forwardRef(Xee);function Qee(e){var t=e.prefixCls,n=e.align,r=e.arrow,a=e.arrowPos,o=r||{},i=o.className,l=o.content,c=a.x,u=c===void 0?0:c,d=a.y,f=d===void 0?0:d,m=s.useRef();if(!n||!n.points)return null;var g={position:"absolute"};if(n.autoArrow!==!1){var h=n.points[0],b=n.points[1],p=h[0],S=h[1],C=b[0],x=b[1];p===C||!["t","b"].includes(p)?g.top=f:p==="t"?g.top=0:g.bottom=0,S===x||!["l","r"].includes(S)?g.left=u:S==="l"?g.left=0:g.right=0}return s.createElement("div",{ref:m,className:le("".concat(t,"-arrow"),i),style:g},l)}function Zee(e){var t=e.prefixCls,n=e.open,r=e.zIndex,a=e.mask,o=e.motion;return a?s.createElement(Nr,xe({},o,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(i){var l=i.className;return s.createElement("div",{style:{zIndex:r},className:le("".concat(t,"-mask"),l)})}):null}var Jee=s.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),ete=s.forwardRef(function(e,t){var n=e.popup,r=e.className,a=e.prefixCls,o=e.style,i=e.target,l=e.onVisibleChanged,c=e.open,u=e.keepDom,d=e.fresh,f=e.onClick,m=e.mask,g=e.arrow,h=e.arrowPos,b=e.align,p=e.motion,S=e.maskMotion,C=e.forceRender,x=e.getPopupContainer,w=e.autoDestroy,$=e.portal,E=e.zIndex,P=e.onMouseEnter,M=e.onMouseLeave,O=e.onPointerEnter,T=e.onPointerDownCapture,N=e.ready,D=e.offsetX,L=e.offsetY,_=e.offsetR,F=e.offsetB,j=e.onAlign,k=e.onPrepare,z=e.stretch,V=e.targetWidth,H=e.targetHeight,B=typeof n=="function"?n():n,K=c||u,W=x?.length>0,G=s.useState(!x||!W),X=fe(G,2),Y=X[0],Z=X[1];if(un(function(){!Y&&W&&i&&Z(!0)},[Y,W,i]),!Y)return null;var ee="auto",re={left:"-1000vw",top:"-1000vh",right:ee,bottom:ee};if(N||!c){var ne,se=b.points,oe=b.dynamicInset||((ne=b._experimental)===null||ne===void 0?void 0:ne.dynamicInset),me=oe&&se[0][1]==="r",ue=oe&&se[0][0]==="b";me?(re.right=_,re.left=ee):(re.left=D,re.right=ee),ue?(re.bottom=F,re.top=ee):(re.top=L,re.bottom=ee)}var de={};return z&&(z.includes("height")&&H?de.height=H:z.includes("minHeight")&&H&&(de.minHeight=H),z.includes("width")&&V?de.width=V:z.includes("minWidth")&&V&&(de.minWidth=V)),c||(de.pointerEvents="none"),s.createElement($,{open:C||K,getContainer:x&&function(){return x(i)},autoDestroy:w},s.createElement(Zee,{prefixCls:a,open:c,zIndex:E,mask:m,motion:S}),s.createElement(Vr,{onResize:j,disabled:!c},function(ae){return s.createElement(Nr,xe({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:C,leavedClassName:"".concat(a,"-hidden")},p,{onAppearPrepare:k,onEnterPrepare:k,visible:c,onVisibleChanged:function(ge){var pe;p==null||(pe=p.onVisibleChanged)===null||pe===void 0||pe.call(p,ge),l(ge)}}),function(ie,ge){var pe=ie.className,be=ie.style,ve=le(a,pe,r);return s.createElement("div",{ref:wr(ae,t,ge),className:ve,style:R(R(R(R({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},re),de),be),{},{boxSizing:"border-box",zIndex:E},o),onMouseEnter:P,onMouseLeave:M,onPointerEnter:O,onClick:f,onPointerDownCapture:T},g&&s.createElement(Qee,{prefixCls:a,arrow:g,arrowPos:h,align:b}),s.createElement(Jee,{cache:!c&&!d},B))})}))}),tte=s.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,a=ni(n),o=s.useCallback(function(l){jf(t,r?r(l):l)},[r]),i=Ti(o,ns(n));return a?s.cloneElement(n,{ref:i}):n}),kR=s.createContext(null);function LR(e){return e?Array.isArray(e)?e:[e]:[]}function nte(e,t,n,r){return s.useMemo(function(){var a=LR(n??t),o=LR(r??t),i=new Set(a),l=new Set(o);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[i,l]},[e,t,n,r])}function rte(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function ate(e,t,n,r){for(var a=n.points,o=Object.keys(e),i=0;i1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Ud(e){return Wf(parseFloat(e),0)}function AR(e,t){var n=R({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var a=bv(r).getComputedStyle(r),o=a.overflow,i=a.overflowClipMargin,l=a.borderTopWidth,c=a.borderBottomWidth,u=a.borderLeftWidth,d=a.borderRightWidth,f=r.getBoundingClientRect(),m=r.offsetHeight,g=r.clientHeight,h=r.offsetWidth,b=r.clientWidth,p=Ud(l),S=Ud(c),C=Ud(u),x=Ud(d),w=Wf(Math.round(f.width/h*1e3)/1e3),$=Wf(Math.round(f.height/m*1e3)/1e3),E=(h-b-C-x)*w,P=(m-g-p-S)*$,M=p*$,O=S*$,T=C*w,N=x*w,D=0,L=0;if(o==="clip"){var _=Ud(i);D=_*w,L=_*$}var F=f.x+T-D,j=f.y+M-L,k=F+f.width+2*D-T-N-E,z=j+f.height+2*L-M-O-P;n.left=Math.max(n.left,F),n.top=Math.max(n.top,j),n.right=Math.min(n.right,k),n.bottom=Math.min(n.bottom,z)}}),n}function BR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function HR(e,t){var n=t||[],r=fe(n,2),a=r[0],o=r[1];return[BR(e.width,a),BR(e.height,o)]}function VR(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Hc(e,t){var n=t[0],r=t[1],a,o;return n==="t"?o=e.y:n==="b"?o=e.y+e.height:o=e.y+e.height/2,r==="l"?a=e.x:r==="r"?a=e.x+e.width:a=e.x+e.width/2,{x:a,y:o}}function _l(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,a){return a===t?n[r]||"c":r}).join("")}function ote(e,t,n,r,a,o,i){var l=s.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[r]||{}}),c=fe(l,2),u=c[0],d=c[1],f=s.useRef(0),m=s.useMemo(function(){return t?Pw(t):[]},[t]),g=s.useRef({}),h=function(){g.current={}};e||h();var b=Gt(function(){if(t&&n&&e){let wn=function(_r,ir){var fr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ee,ia=K.x+_r,ja=K.y+ir,po=ia+ue,hd=ja+me,mc=Math.max(ia,fr.left),qt=Math.max(ja,fr.top),yn=Math.min(po,fr.right),nr=Math.min(hd,fr.bottom);return Math.max(0,(yn-mc)*(nr-qt))},Kn=function(){cn=K.y+vt,tn=cn+me,Bt=K.x+dt,It=Bt+ue};var C,x,w,$,E=t,P=E.ownerDocument,M=bv(E),O=M.getComputedStyle(E),T=O.position,N=E.style.left,D=E.style.top,L=E.style.right,_=E.style.bottom,F=E.style.overflow,j=R(R({},a[r]),o),k=P.createElement("div");(C=E.parentElement)===null||C===void 0||C.appendChild(k),k.style.left="".concat(E.offsetLeft,"px"),k.style.top="".concat(E.offsetTop,"px"),k.style.position=T,k.style.height="".concat(E.offsetHeight,"px"),k.style.width="".concat(E.offsetWidth,"px"),E.style.left="0",E.style.top="0",E.style.right="auto",E.style.bottom="auto",E.style.overflow="hidden";var z;if(Array.isArray(n))z={x:n[0],y:n[1],width:0,height:0};else{var V,H,B=n.getBoundingClientRect();B.x=(V=B.x)!==null&&V!==void 0?V:B.left,B.y=(H=B.y)!==null&&H!==void 0?H:B.top,z={x:B.x,y:B.y,width:B.width,height:B.height}}var K=E.getBoundingClientRect(),W=M.getComputedStyle(E),G=W.height,X=W.width;K.x=(x=K.x)!==null&&x!==void 0?x:K.left,K.y=(w=K.y)!==null&&w!==void 0?w:K.top;var Y=P.documentElement,Z=Y.clientWidth,ee=Y.clientHeight,re=Y.scrollWidth,ne=Y.scrollHeight,se=Y.scrollTop,oe=Y.scrollLeft,me=K.height,ue=K.width,de=z.height,ae=z.width,ie={left:0,top:0,right:Z,bottom:ee},ge={left:-oe,top:-se,right:re-oe,bottom:ne-se},pe=j.htmlRegion,be="visible",ve="visibleFirst";pe!=="scroll"&&pe!==ve&&(pe=be);var Ce=pe===ve,he=AR(ge,m),Se=AR(ie,m),Ee=pe===be?Se:he,Oe=Ce?Se:Ee;E.style.left="auto",E.style.top="auto",E.style.right="0",E.style.bottom="0";var We=E.getBoundingClientRect();E.style.left=N,E.style.top=D,E.style.right=L,E.style.bottom=_,E.style.overflow=F,($=E.parentElement)===null||$===void 0||$.removeChild(k);var je=Wf(Math.round(ue/parseFloat(X)*1e3)/1e3),De=Wf(Math.round(me/parseFloat(G)*1e3)/1e3);if(je===0||De===0||_f(n)&&!Vu(n))return;var ke=j.offset,_e=j.targetOffset,Re=HR(K,ke),Le=fe(Re,2),Me=Le[0],Be=Le[1],$e=HR(z,_e),we=fe($e,2),Ie=we[0],Fe=we[1];z.x-=Ie,z.y-=Fe;var Ge=j.points||[],et=fe(Ge,2),Ke=et[0],Ye=et[1],tt=VR(Ye),rt=VR(Ke),ct=Hc(z,tt),Ct=Hc(K,rt),yt=R({},j),dt=ct.x-Ct.x+Me,vt=ct.y-Ct.y+Be,bt=wn(dt,vt),ze=wn(dt,vt,Se),Ve=Hc(z,["t","l"]),Pe=Hc(K,["t","l"]),He=Hc(z,["b","r"]),Ze=Hc(K,["b","r"]),at=j.overflow||{},Nt=at.adjustX,pt=at.adjustY,mt=at.shiftX,jt=at.shiftY,Kt=function(ir){return typeof ir=="boolean"?ir:ir>=0},cn,tn,Bt,It;Kn();var Wt=Kt(pt),ot=rt[0]===tt[0];if(Wt&&rt[0]==="t"&&(tn>Oe.bottom||g.current.bt)){var Et=vt;ot?Et-=me-de:Et=Ve.y-Ze.y-Be;var gt=wn(dt,Et),Xe=wn(dt,Et,Se);gt>bt||gt===bt&&(!Ce||Xe>=ze)?(g.current.bt=!0,vt=Et,Be=-Be,yt.points=[_l(rt,0),_l(tt,0)]):g.current.bt=!1}if(Wt&&rt[0]==="b"&&(cnbt||ft===bt&&(!Ce||_t>=ze)?(g.current.tb=!0,vt=it,Be=-Be,yt.points=[_l(rt,0),_l(tt,0)]):g.current.tb=!1}var Yt=Kt(Nt),St=rt[1]===tt[1];if(Yt&&rt[1]==="l"&&(It>Oe.right||g.current.rl)){var Mt=dt;St?Mt-=ue-ae:Mt=Ve.x-Ze.x-Me;var Ht=wn(Mt,vt),vn=wn(Mt,vt,Se);Ht>bt||Ht===bt&&(!Ce||vn>=ze)?(g.current.rl=!0,dt=Mt,Me=-Me,yt.points=[_l(rt,1),_l(tt,1)]):g.current.rl=!1}if(Yt&&rt[1]==="r"&&(Btbt||pn===bt&&(!Ce||Zn>=ze)?(g.current.lr=!0,dt=En,Me=-Me,yt.points=[_l(rt,1),_l(tt,1)]):g.current.lr=!1}Kn();var Jn=mt===!0?0:mt;typeof Jn=="number"&&(BtSe.right&&(dt-=It-Se.right-Me,z.x>Se.right-Jn&&(dt+=z.x-Se.right+Jn)));var Ir=jt===!0?0:jt;typeof Ir=="number"&&(cnSe.bottom&&(vt-=tn-Se.bottom-Be,z.y>Se.bottom-Ir&&(vt+=z.y-Se.bottom+Ir)));var ur=K.x+dt,hr=ur+ue,or=K.y+vt,On=or+me,Vt=z.x,zt=Vt+ae,Pn=z.y,kt=Pn+de,Lt=Math.max(ur,Vt),Cn=Math.min(hr,zt),Wn=(Lt+Cn)/2,Un=Wn-ur,bn=Math.max(or,Pn),dr=Math.min(On,kt),$r=(bn+dr)/2,hn=$r-or;i?.(t,yt);var xt=We.right-K.x-(dt+K.width),Ft=We.bottom-K.y-(vt+K.height);je===1&&(dt=Math.floor(dt),xt=Math.floor(xt)),De===1&&(vt=Math.floor(vt),Ft=Math.floor(Ft));var Sn={ready:!0,offsetX:dt/je,offsetY:vt/De,offsetR:xt/je,offsetB:Ft/De,arrowX:Un/je,arrowY:hn/De,scaleX:je,scaleY:De,align:yt};d(Sn)}}),p=function(){f.current+=1;var x=f.current;Promise.resolve().then(function(){f.current===x&&b()})},S=function(){d(function(x){return R(R({},x),{},{ready:!1})})};return un(S,[r]),un(function(){e||S()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,p]}function ite(e,t,n,r,a){un(function(){if(e&&t&&n){let f=function(){r(),a()};var o=t,i=n,l=Pw(o),c=Pw(i),u=bv(i),d=new Set([u].concat(Te(l),Te(c)));return d.forEach(function(m){m.addEventListener("scroll",f,{passive:!0})}),u.addEventListener("resize",f,{passive:!0}),r(),function(){d.forEach(function(m){m.removeEventListener("scroll",f),u.removeEventListener("resize",f)})}}},[e,t,n])}function lte(e,t,n,r,a,o,i,l){var c=s.useRef(e);c.current=e;var u=s.useRef(!1);s.useEffect(function(){if(t&&r&&(!a||o)){var f=function(){u.current=!1},m=function(p){var S;c.current&&!i(((S=p.composedPath)===null||S===void 0||(S=S.call(p))===null||S===void 0?void 0:S[0])||p.target)&&!u.current&&l(!1)},g=bv(r);g.addEventListener("pointerdown",f,!0),g.addEventListener("mousedown",m,!0),g.addEventListener("contextmenu",m,!0);var h=$p(n);return h&&(h.addEventListener("mousedown",m,!0),h.addEventListener("contextmenu",m,!0)),function(){g.removeEventListener("pointerdown",f,!0),g.removeEventListener("mousedown",m,!0),g.removeEventListener("contextmenu",m,!0),h&&(h.removeEventListener("mousedown",m,!0),h.removeEventListener("contextmenu",m,!0))}}},[t,n,r,a,o]);function d(){u.current=!0}return d}var ste=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function cte(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:gv,t=s.forwardRef(function(n,r){var a=n.prefixCls,o=a===void 0?"rc-trigger-popup":a,i=n.children,l=n.action,c=l===void 0?"hover":l,u=n.showAction,d=n.hideAction,f=n.popupVisible,m=n.defaultPopupVisible,g=n.onPopupVisibleChange,h=n.afterPopupVisibleChange,b=n.mouseEnterDelay,p=n.mouseLeaveDelay,S=p===void 0?.1:p,C=n.focusDelay,x=n.blurDelay,w=n.mask,$=n.maskClosable,E=$===void 0?!0:$,P=n.getPopupContainer,M=n.forceRender,O=n.autoDestroy,T=n.destroyPopupOnHide,N=n.popup,D=n.popupClassName,L=n.popupStyle,_=n.popupPlacement,F=n.builtinPlacements,j=F===void 0?{}:F,k=n.popupAlign,z=n.zIndex,V=n.stretch,H=n.getPopupClassNameFromAlign,B=n.fresh,K=n.alignPoint,W=n.onPopupClick,G=n.onPopupAlign,X=n.arrow,Y=n.popupMotion,Z=n.maskMotion,ee=n.popupTransitionName,re=n.popupAnimation,ne=n.maskTransitionName,se=n.maskAnimation,oe=n.className,me=n.getTriggerDOMNode,ue=Ue(n,ste),de=O||T||!1,ae=s.useState(!1),ie=fe(ae,2),ge=ie[0],pe=ie[1];un(function(){pe(Fh())},[]);var be=s.useRef({}),ve=s.useContext(kR),Ce=s.useMemo(function(){return{registerSubPopup:function(yn,nr){be.current[yn]=nr,ve?.registerSubPopup(yn,nr)}}},[ve]),he=Ku(),Se=s.useState(null),Ee=fe(Se,2),Oe=Ee[0],We=Ee[1],je=s.useRef(null),De=Gt(function(qt){je.current=qt,_f(qt)&&Oe!==qt&&We(qt),ve?.registerSubPopup(he,qt)}),ke=s.useState(null),_e=fe(ke,2),Re=_e[0],Le=_e[1],Me=s.useRef(null),Be=Gt(function(qt){_f(qt)&&Re!==qt&&(Le(qt),Me.current=qt)}),$e=s.Children.only(i),we=$e?.props||{},Ie={},Fe=Gt(function(qt){var yn,nr,br=Re;return br?.contains(qt)||((yn=$p(br))===null||yn===void 0?void 0:yn.host)===qt||qt===br||Oe?.contains(qt)||((nr=$p(Oe))===null||nr===void 0?void 0:nr.host)===qt||qt===Oe||Object.values(be.current).some(function(vr){return vr?.contains(qt)||qt===vr})}),Ge=zR(o,Y,re,ee),et=zR(o,Z,se,ne),Ke=s.useState(m||!1),Ye=fe(Ke,2),tt=Ye[0],rt=Ye[1],ct=f??tt,Ct=Gt(function(qt){f===void 0&&rt(qt)});un(function(){rt(f||!1)},[f]);var yt=s.useRef(ct);yt.current=ct;var dt=s.useRef([]);dt.current=[];var vt=Gt(function(qt){var yn;Ct(qt),((yn=dt.current[dt.current.length-1])!==null&&yn!==void 0?yn:ct)!==qt&&(dt.current.push(qt),g?.(qt))}),bt=s.useRef(),ze=function(){clearTimeout(bt.current)},Ve=function(yn){var nr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;ze(),nr===0?vt(yn):bt.current=setTimeout(function(){vt(yn)},nr*1e3)};s.useEffect(function(){return ze},[]);var Pe=s.useState(!1),He=fe(Pe,2),Ze=He[0],at=He[1];un(function(qt){(!qt||ct)&&at(!0)},[ct]);var Nt=s.useState(null),pt=fe(Nt,2),mt=pt[0],jt=pt[1],Kt=s.useState(null),cn=fe(Kt,2),tn=cn[0],Bt=cn[1],It=function(yn){Bt([yn.clientX,yn.clientY])},Wt=ote(ct,Oe,K&&tn!==null?tn:Re,_,j,k,G),ot=fe(Wt,11),Et=ot[0],gt=ot[1],Xe=ot[2],it=ot[3],ft=ot[4],_t=ot[5],Yt=ot[6],St=ot[7],Mt=ot[8],Ht=ot[9],vn=ot[10],En=nte(ge,c,u,d),pn=fe(En,2),Zn=pn[0],Jn=pn[1],Ir=Zn.has("click"),ur=Jn.has("click")||Jn.has("contextMenu"),hr=Gt(function(){Ze||vn()}),or=function(){yt.current&&K&&ur&&Ve(!1)};ite(ct,Re,Oe,hr,or),un(function(){hr()},[tn,_]),un(function(){ct&&!(j!=null&&j[_])&&hr()},[JSON.stringify(k)]);var On=s.useMemo(function(){var qt=ate(j,o,Ht,K);return le(qt,H?.(Ht))},[Ht,H,j,o,K]);s.useImperativeHandle(r,function(){return{nativeElement:Me.current,popupElement:je.current,forceAlign:hr}});var Vt=s.useState(0),zt=fe(Vt,2),Pn=zt[0],kt=zt[1],Lt=s.useState(0),Cn=fe(Lt,2),Wn=Cn[0],Un=Cn[1],bn=function(){if(V&&Re){var yn=Re.getBoundingClientRect();kt(yn.width),Un(yn.height)}},dr=function(){bn(),hr()},$r=function(yn){at(!1),vn(),h?.(yn)},hn=function(){return new Promise(function(yn){bn(),jt(function(){return yn})})};un(function(){mt&&(vn(),mt(),jt(null))},[mt]);function xt(qt,yn,nr,br){Ie[qt]=function(vr){var gc;br?.(vr),Ve(yn,nr);for(var Bi=arguments.length,hl=new Array(Bi>1?Bi-1:0),zo=1;zo1?nr-1:0),vr=1;vr1?nr-1:0),vr=1;vr1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,a=[],o=tk(n,!1),i=o.label,l=o.value,c=o.options,u=o.groupLabel;function d(f,m){Array.isArray(f)&&f.forEach(function(g){if(m||!(c in g)){var h=g[l];a.push({key:WR(g,a.length),groupOption:m,data:g,label:g[i],value:h})}else{var b=g[u];b===void 0&&r&&(b=g.label),a.push({key:WR(g,a.length),group:!0,data:g,label:b}),d(g[c],!0)}})}return d(e,!1),a}function Rw(e){var t=R({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return jn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var gte=function(t,n,r){if(!n||!n.length)return null;var a=!1,o=function l(c,u){var d=eE(u),f=d[0],m=d.slice(1);if(!f)return[c];var g=c.split(f);return a=a||g.length>1,g.reduce(function(h,b){return[].concat(Te(h),Te(l(b,m)))},[]).filter(Boolean)},i=o(t,n);return a?typeof r<"u"?i.slice(0,r):i:null},RE=s.createContext(null);function pte(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return s.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(a){var o=a.label,i=a.value;return["number","string"].includes(st(o))?o:i}).join(", ")),n.length>r?", ...":null)}var hte=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],bte=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Iw=function(t){return t==="tags"||t==="multiple"},IE=s.forwardRef(function(e,t){var n,r=e.id,a=e.prefixCls,o=e.className,i=e.showSearch,l=e.tagRender,c=e.direction,u=e.omitDomProps,d=e.displayValues,f=e.onDisplayValuesChange,m=e.emptyOptions,g=e.notFoundContent,h=g===void 0?"Not Found":g,b=e.onClear,p=e.mode,S=e.disabled,C=e.loading,x=e.getInputElement,w=e.getRawInputElement,$=e.open,E=e.defaultOpen,P=e.onDropdownVisibleChange,M=e.activeValue,O=e.onActiveValueChange,T=e.activeDescendantId,N=e.searchValue,D=e.autoClearSearchValue,L=e.onSearch,_=e.onSearchSplit,F=e.tokenSeparators,j=e.allowClear,k=e.prefix,z=e.suffixIcon,V=e.clearIcon,H=e.OptionList,B=e.animation,K=e.transitionName,W=e.dropdownStyle,G=e.dropdownClassName,X=e.dropdownMatchSelectWidth,Y=e.dropdownRender,Z=e.dropdownAlign,ee=e.placement,re=e.builtinPlacements,ne=e.getPopupContainer,se=e.showAction,oe=se===void 0?[]:se,me=e.onFocus,ue=e.onBlur,de=e.onKeyUp,ae=e.onKeyDown,ie=e.onMouseDown,ge=Ue(e,hte),pe=Iw(p),be=(i!==void 0?i:pe)||p==="combobox",ve=R({},ge);bte.forEach(function(Vt){delete ve[Vt]}),u?.forEach(function(Vt){delete ve[Vt]});var Ce=s.useState(!1),he=fe(Ce,2),Se=he[0],Ee=he[1];s.useEffect(function(){Ee(Fh())},[]);var Oe=s.useRef(null),We=s.useRef(null),je=s.useRef(null),De=s.useRef(null),ke=s.useRef(null),_e=s.useRef(!1),Re=$ee(),Le=fe(Re,3),Me=Le[0],Be=Le[1],$e=Le[2];s.useImperativeHandle(t,function(){var Vt,zt;return{focus:(Vt=De.current)===null||Vt===void 0?void 0:Vt.focus,blur:(zt=De.current)===null||zt===void 0?void 0:zt.blur,scrollTo:function(kt){var Lt;return(Lt=ke.current)===null||Lt===void 0?void 0:Lt.scrollTo(kt)},nativeElement:Oe.current||We.current}});var we=s.useMemo(function(){var Vt;if(p!=="combobox")return N;var zt=(Vt=d[0])===null||Vt===void 0?void 0:Vt.value;return typeof zt=="string"||typeof zt=="number"?String(zt):""},[N,p,d]),Ie=p==="combobox"&&typeof x=="function"&&x()||null,Fe=typeof w=="function"&&w(),Ge=Ti(We,Fe==null||(n=Fe.props)===null||n===void 0?void 0:n.ref),et=s.useState(!1),Ke=fe(et,2),Ye=Ke[0],tt=Ke[1];un(function(){tt(!0)},[]);var rt=Tt(!1,{defaultValue:E,value:$}),ct=fe(rt,2),Ct=ct[0],yt=ct[1],dt=Ye?Ct:!1,vt=!h&&m;(S||vt&&dt&&p==="combobox")&&(dt=!1);var bt=vt?!1:dt,ze=s.useCallback(function(Vt){var zt=Vt!==void 0?Vt:!dt;S||(yt(zt),dt!==zt&&P?.(zt))},[S,dt,yt,P]),Ve=s.useMemo(function(){return(F||[]).some(function(Vt){return[` -`,`\r -`].includes(Vt)})},[F]),Pe=s.useContext(RE)||{},He=Pe.maxCount,Ze=Pe.rawValues,at=function(zt,Pn,kt){if(!(pe&&Ow(He)&&Ze?.size>=He)){var Lt=!0,Cn=zt;O?.(null);var Wn=gte(zt,F,Ow(He)?He-Ze.size:void 0),Un=kt?null:Wn;return p!=="combobox"&&Un&&(Cn="",_?.(Un),ze(!1),Lt=!1),L&&we!==Cn&&L(Cn,{source:Pn?"typing":"effect"}),Lt}},Nt=function(zt){!zt||!zt.trim()||L(zt,{source:"submit"})};s.useEffect(function(){!dt&&!pe&&p!=="combobox"&&at("",!1,!1)},[dt]),s.useEffect(function(){Ct&&S&&yt(!1),S&&!_e.current&&Be(!1)},[S]);var pt=GF(),mt=fe(pt,2),jt=mt[0],Kt=mt[1],cn=s.useRef(!1),tn=function(zt){var Pn=jt(),kt=zt.key,Lt=kt==="Enter";if(Lt&&(p!=="combobox"&&zt.preventDefault(),dt||ze(!0)),Kt(!!we),kt==="Backspace"&&!Pn&&pe&&!we&&d.length){for(var Cn=Te(d),Wn=null,Un=Cn.length-1;Un>=0;Un-=1){var bn=Cn[Un];if(!bn.disabled){Cn.splice(Un,1),Wn=bn;break}}Wn&&f(Cn,{type:"remove",values:[Wn]})}for(var dr=arguments.length,$r=new Array(dr>1?dr-1:0),hn=1;hn1?Pn-1:0),Lt=1;Lt1?Wn-1:0),bn=1;bn"u"?"undefined":st(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const rk=(function(e,t,n,r){var a=s.useRef(!1),o=s.useRef(null);function i(){clearTimeout(o.current),a.current=!0,o.current=setTimeout(function(){a.current=!1},50)}var l=s.useRef({top:e,bottom:t,left:n,right:r});return l.current.top=e,l.current.bottom=t,l.current.left=n,l.current.right=r,function(c,u){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=c?u<0&&l.current.left||u>0&&l.current.right:u<0&&l.current.top||u>0&&l.current.bottom;return d&&f?(clearTimeout(o.current),a.current=!1):(!f||a.current)&&i(),!a.current&&f}});function wte(e,t,n,r,a,o,i){var l=s.useRef(0),c=s.useRef(null),u=s.useRef(null),d=s.useRef(!1),f=rk(t,n,r,a);function m(C,x){if(ln.cancel(c.current),!f(!1,x)){var w=C;if(!w._virtualHandled)w._virtualHandled=!0;else return;l.current+=x,u.current=x,KR||w.preventDefault(),c.current=ln(function(){var $=d.current?10:1;i(l.current*$,!1),l.current=0})}}function g(C,x){i(x,!0),KR||C.preventDefault()}var h=s.useRef(null),b=s.useRef(null);function p(C){if(e){ln.cancel(b.current),b.current=ln(function(){h.current=null},2);var x=C.deltaX,w=C.deltaY,$=C.shiftKey,E=x,P=w;(h.current==="sx"||!h.current&&$&&w&&!x)&&(E=w,P=0,h.current="sx");var M=Math.abs(E),O=Math.abs(P);h.current===null&&(h.current=o&&M>O?"x":"y"),h.current==="y"?m(C,P):g(C,E)}}function S(C){e&&(d.current=C.detail===u.current)}return[p,S]}function $te(e,t,n,r){var a=s.useMemo(function(){return[new Map,[]]},[e,n.id,r]),o=fe(a,2),i=o[0],l=o[1],c=function(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d,m=i.get(d),g=i.get(f);if(m===void 0||g===void 0)for(var h=e.length,b=l.length;b0&&arguments[0]!==void 0?arguments[0]:!1;d();var h=function(){var S=!1;l.current.forEach(function(C,x){if(C&&C.offsetParent){var w=C.offsetHeight,$=getComputedStyle(C),E=$.marginTop,P=$.marginBottom,M=qR(E),O=qR(P),T=w+M+O;c.current.get(x)!==T&&(c.current.set(x,T),S=!0)}}),S&&i(function(C){return C+1})};if(g)h();else{u.current+=1;var b=u.current;Promise.resolve().then(function(){b===u.current&&h()})}}function m(g,h){var b=e(g);l.current.get(b),h?(l.current.set(b,h),f()):l.current.delete(b)}return s.useEffect(function(){return d},[]),[m,f,c.current,o]}var UR=14/15;function Ote(e,t,n){var r=s.useRef(!1),a=s.useRef(0),o=s.useRef(0),i=s.useRef(null),l=s.useRef(null),c,u=function(g){if(r.current){var h=Math.ceil(g.touches[0].pageX),b=Math.ceil(g.touches[0].pageY),p=a.current-h,S=o.current-b,C=Math.abs(p)>Math.abs(S);C?a.current=h:o.current=b;var x=n(C,C?p:S,!1,g);x&&g.preventDefault(),clearInterval(l.current),x&&(l.current=setInterval(function(){C?p*=UR:S*=UR;var w=Math.floor(C?p:S);(!n(C,w,!0)||Math.abs(w)<=.1)&&clearInterval(l.current)},16))}},d=function(){r.current=!1,c()},f=function(g){c(),g.touches.length===1&&!r.current&&(r.current=!0,a.current=Math.ceil(g.touches[0].pageX),o.current=Math.ceil(g.touches[0].pageY),i.current=g.target,i.current.addEventListener("touchmove",u,{passive:!1}),i.current.addEventListener("touchend",d,{passive:!0}))};c=function(){i.current&&(i.current.removeEventListener("touchmove",u),i.current.removeEventListener("touchend",d))},un(function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var m;(m=t.current)===null||m===void 0||m.removeEventListener("touchstart",f),c(),clearInterval(l.current)}},[e])}function GR(e){return Math.floor(Math.pow(e,.5))}function Mw(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function Rte(e,t,n){s.useEffect(function(){var r=t.current;if(e&&r){var a=!1,o,i,l=function(){ln.cancel(o)},c=function m(){l(),o=ln(function(){n(i),m()})},u=function(){a=!1,l()},d=function(g){if(!(g.target.draggable||g.button!==0)){var h=g;h._virtualHandled||(h._virtualHandled=!0,a=!0)}},f=function(g){if(a){var h=Mw(g,!1),b=r.getBoundingClientRect(),p=b.top,S=b.bottom;if(h<=p){var C=p-h;i=-GR(C),c()}else if(h>=S){var x=h-S;i=GR(x),c()}else l()}};return r.addEventListener("mousedown",d),r.ownerDocument.addEventListener("mouseup",u),r.ownerDocument.addEventListener("mousemove",f),r.ownerDocument.addEventListener("dragend",u),function(){r.removeEventListener("mousedown",d),r.ownerDocument.removeEventListener("mouseup",u),r.ownerDocument.removeEventListener("mousemove",f),r.ownerDocument.removeEventListener("dragend",u),l()}}},[e])}var Ite=10;function Mte(e,t,n,r,a,o,i,l){var c=s.useRef(),u=s.useState(null),d=fe(u,2),f=d[0],m=d[1];return un(function(){if(f&&f.times=0;_-=1){var F=a(t[_]),j=n.get(F);if(j===void 0){C=!0;break}if(L-=j,L<=0)break}switch($){case"top":w=P-p;break;case"bottom":w=M-S+p;break;default:{var k=e.current.scrollTop,z=k+S;Pz&&(x="bottom")}}w!==null&&i(w),w!==f.lastTop&&(C=!0)}C&&m(R(R({},f),{},{times:f.times+1,targetAlign:x,lastTop:w}))}},[f,e.current]),function(g){if(g==null){l();return}if(ln.cancel(c.current),typeof g=="number")i(g);else if(g&&st(g)==="object"){var h,b=g.align;"index"in g?h=g.index:h=t.findIndex(function(C){return a(C)===g.key});var p=g.offset,S=p===void 0?0:p;m({times:0,index:h,offset:S,originAlign:b})}}}var XR=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,a=e.scrollOffset,o=e.scrollRange,i=e.onStartMove,l=e.onStopMove,c=e.onScroll,u=e.horizontal,d=e.spinSize,f=e.containerSize,m=e.style,g=e.thumbStyle,h=e.showScrollBar,b=s.useState(!1),p=fe(b,2),S=p[0],C=p[1],x=s.useState(null),w=fe(x,2),$=w[0],E=w[1],P=s.useState(null),M=fe(P,2),O=M[0],T=M[1],N=!r,D=s.useRef(),L=s.useRef(),_=s.useState(h),F=fe(_,2),j=F[0],k=F[1],z=s.useRef(),V=function(){h===!0||h===!1||(clearTimeout(z.current),k(!0),z.current=setTimeout(function(){k(!1)},3e3))},H=o-f||0,B=f-d||0,K=s.useMemo(function(){if(a===0||H===0)return 0;var se=a/H;return se*B},[a,H,B]),W=function(oe){oe.stopPropagation(),oe.preventDefault()},G=s.useRef({top:K,dragging:S,pageY:$,startTop:O});G.current={top:K,dragging:S,pageY:$,startTop:O};var X=function(oe){C(!0),E(Mw(oe,u)),T(G.current.top),i(),oe.stopPropagation(),oe.preventDefault()};s.useEffect(function(){var se=function(de){de.preventDefault()},oe=D.current,me=L.current;return oe.addEventListener("touchstart",se,{passive:!1}),me.addEventListener("touchstart",X,{passive:!1}),function(){oe.removeEventListener("touchstart",se),me.removeEventListener("touchstart",X)}},[]);var Y=s.useRef();Y.current=H;var Z=s.useRef();Z.current=B,s.useEffect(function(){if(S){var se,oe=function(de){var ae=G.current,ie=ae.dragging,ge=ae.pageY,pe=ae.startTop;ln.cancel(se);var be=D.current.getBoundingClientRect(),ve=f/(u?be.width:be.height);if(ie){var Ce=(Mw(de,u)-ge)*ve,he=pe;!N&&u?he-=Ce:he+=Ce;var Se=Y.current,Ee=Z.current,Oe=Ee?he/Ee:0,We=Math.ceil(Oe*Se);We=Math.max(We,0),We=Math.min(We,Se),se=ln(function(){c(We,u)})}},me=function(){C(!1),l()};return window.addEventListener("mousemove",oe,{passive:!0}),window.addEventListener("touchmove",oe,{passive:!0}),window.addEventListener("mouseup",me,{passive:!0}),window.addEventListener("touchend",me,{passive:!0}),function(){window.removeEventListener("mousemove",oe),window.removeEventListener("touchmove",oe),window.removeEventListener("mouseup",me),window.removeEventListener("touchend",me),ln.cancel(se)}}},[S]),s.useEffect(function(){return V(),function(){clearTimeout(z.current)}},[a]),s.useImperativeHandle(t,function(){return{delayHidden:V}});var ee="".concat(n,"-scrollbar"),re={position:"absolute",visibility:j?null:"hidden"},ne={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return u?(Object.assign(re,{height:8,left:0,right:0,bottom:0}),Object.assign(ne,q({height:"100%",width:d},N?"left":"right",K))):(Object.assign(re,q({width:8,top:0,bottom:0},N?"right":"left",0)),Object.assign(ne,{width:"100%",height:d,top:K})),s.createElement("div",{ref:D,className:le(ee,q(q(q({},"".concat(ee,"-horizontal"),u),"".concat(ee,"-vertical"),!u),"".concat(ee,"-visible"),j)),style:R(R({},re),m),onMouseDown:W,onMouseMove:V},s.createElement("div",{ref:L,className:le("".concat(ee,"-thumb"),q({},"".concat(ee,"-thumb-moving"),S)),style:R(R({},ne),g),onMouseDown:X}))}),Tte=20;function YR(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,Tte),Math.floor(n)}var Nte=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],_te=[],jte={overflowY:"auto",overflowAnchor:"none"};function Dte(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,a=e.className,o=e.height,i=e.itemHeight,l=e.fullHeight,c=l===void 0?!0:l,u=e.style,d=e.data,f=e.children,m=e.itemKey,g=e.virtual,h=e.direction,b=e.scrollWidth,p=e.component,S=p===void 0?"div":p,C=e.onScroll,x=e.onVirtualScroll,w=e.onVisibleChange,$=e.innerProps,E=e.extraRender,P=e.styles,M=e.showScrollBar,O=M===void 0?"optional":M,T=Ue(e,Nte),N=s.useCallback(function(ot){return typeof m=="function"?m(ot):ot?.[m]},[m]),D=Pte(N),L=fe(D,4),_=L[0],F=L[1],j=L[2],k=L[3],z=!!(g!==!1&&o&&i),V=s.useMemo(function(){return Object.values(j.maps).reduce(function(ot,Et){return ot+Et},0)},[j.id,j.maps]),H=z&&d&&(Math.max(i*d.length,V)>o||!!b),B=h==="rtl",K=le(r,q({},"".concat(r,"-rtl"),B),a),W=d||_te,G=s.useRef(),X=s.useRef(),Y=s.useRef(),Z=s.useState(0),ee=fe(Z,2),re=ee[0],ne=ee[1],se=s.useState(0),oe=fe(se,2),me=oe[0],ue=oe[1],de=s.useState(!1),ae=fe(de,2),ie=ae[0],ge=ae[1],pe=function(){ge(!0)},be=function(){ge(!1)},ve={getKey:N};function Ce(ot){ne(function(Et){var gt;typeof ot=="function"?gt=ot(Et):gt=ot;var Xe=tt(gt);return G.current.scrollTop=Xe,Xe})}var he=s.useRef({start:0,end:W.length}),Se=s.useRef(),Ee=xte(W,N),Oe=fe(Ee,1),We=Oe[0];Se.current=We;var je=s.useMemo(function(){if(!z)return{scrollHeight:void 0,start:0,end:W.length-1,offset:void 0};if(!H){var ot;return{scrollHeight:((ot=X.current)===null||ot===void 0?void 0:ot.offsetHeight)||0,start:0,end:W.length-1,offset:void 0}}for(var Et=0,gt,Xe,it,ft=W.length,_t=0;_t=re&>===void 0&&(gt=_t,Xe=Et),Ht>re+o&&it===void 0&&(it=_t),Et=Ht}return gt===void 0&&(gt=0,Xe=0,it=Math.ceil(o/i)),it===void 0&&(it=W.length-1),it=Math.min(it+1,W.length-1),{scrollHeight:Et,start:gt,end:it,offset:Xe}},[H,z,re,W,k,o]),De=je.scrollHeight,ke=je.start,_e=je.end,Re=je.offset;he.current.start=ke,he.current.end=_e,s.useLayoutEffect(function(){var ot=j.getRecord();if(ot.size===1){var Et=Array.from(ot.keys())[0],gt=ot.get(Et),Xe=W[ke];if(Xe&>===void 0){var it=N(Xe);if(it===Et){var ft=j.get(Et),_t=ft-i;Ce(function(Yt){return Yt+_t})}}}j.resetRecord()},[De]);var Le=s.useState({width:0,height:o}),Me=fe(Le,2),Be=Me[0],$e=Me[1],we=function(Et){$e({width:Et.offsetWidth,height:Et.offsetHeight})},Ie=s.useRef(),Fe=s.useRef(),Ge=s.useMemo(function(){return YR(Be.width,b)},[Be.width,b]),et=s.useMemo(function(){return YR(Be.height,De)},[Be.height,De]),Ke=De-o,Ye=s.useRef(Ke);Ye.current=Ke;function tt(ot){var Et=ot;return Number.isNaN(Ye.current)||(Et=Math.min(Et,Ye.current)),Et=Math.max(Et,0),Et}var rt=re<=0,ct=re>=Ke,Ct=me<=0,yt=me>=b,dt=rk(rt,ct,Ct,yt),vt=function(){return{x:B?-me:me,y:re}},bt=s.useRef(vt()),ze=Gt(function(ot){if(x){var Et=R(R({},vt()),ot);(bt.current.x!==Et.x||bt.current.y!==Et.y)&&(x(Et),bt.current=Et)}});function Ve(ot,Et){var gt=ot;Et?(kr.flushSync(function(){ue(gt)}),ze()):Ce(gt)}function Pe(ot){var Et=ot.currentTarget.scrollTop;Et!==re&&Ce(Et),C?.(ot),ze()}var He=function(Et){var gt=Et,Xe=b?b-Be.width:0;return gt=Math.max(gt,0),gt=Math.min(gt,Xe),gt},Ze=Gt(function(ot,Et){Et?(kr.flushSync(function(){ue(function(gt){var Xe=gt+(B?-ot:ot);return He(Xe)})}),ze()):Ce(function(gt){var Xe=gt+ot;return Xe})}),at=wte(z,rt,ct,Ct,yt,!!b,Ze),Nt=fe(at,2),pt=Nt[0],mt=Nt[1];Ote(z,G,function(ot,Et,gt,Xe){var it=Xe;return dt(ot,Et,gt)?!1:!it||!it._virtualHandled?(it&&(it._virtualHandled=!0),pt({preventDefault:function(){},deltaX:ot?Et:0,deltaY:ot?0:Et}),!0):!1}),Rte(H,G,function(ot){Ce(function(Et){return Et+ot})}),un(function(){function ot(gt){var Xe=rt&>.detail<0,it=ct&>.detail>0;z&&!Xe&&!it&>.preventDefault()}var Et=G.current;return Et.addEventListener("wheel",pt,{passive:!1}),Et.addEventListener("DOMMouseScroll",mt,{passive:!0}),Et.addEventListener("MozMousePixelScroll",ot,{passive:!1}),function(){Et.removeEventListener("wheel",pt),Et.removeEventListener("DOMMouseScroll",mt),Et.removeEventListener("MozMousePixelScroll",ot)}},[z,rt,ct]),un(function(){if(b){var ot=He(me);ue(ot),ze({x:ot})}},[Be.width,b]);var jt=function(){var Et,gt;(Et=Ie.current)===null||Et===void 0||Et.delayHidden(),(gt=Fe.current)===null||gt===void 0||gt.delayHidden()},Kt=Mte(G,W,j,i,N,function(){return F(!0)},Ce,jt);s.useImperativeHandle(t,function(){return{nativeElement:Y.current,getScrollInfo:vt,scrollTo:function(Et){function gt(Xe){return Xe&&st(Xe)==="object"&&("left"in Xe||"top"in Xe)}gt(Et)?(Et.left!==void 0&&ue(He(Et.left)),Kt(Et.top)):Kt(Et)}}}),un(function(){if(w){var ot=W.slice(ke,_e+1);w(ot,W)}},[ke,_e,W]);var cn=$te(W,N,j,i),tn=E?.({start:ke,end:_e,virtual:H,offsetX:me,offsetY:Re,rtl:B,getSize:cn}),Bt=Cte(W,ke,_e,b,me,_,f,ve),It=null;o&&(It=R(q({},c?"height":"maxHeight",o),jte),z&&(It.overflowY="hidden",b&&(It.overflowX="hidden"),ie&&(It.pointerEvents="none")));var Wt={};return B&&(Wt.dir="rtl"),s.createElement("div",xe({ref:Y,style:R(R({},u),{},{position:"relative"}),className:K},Wt,T),s.createElement(Vr,{onResize:we},s.createElement(S,{className:"".concat(r,"-holder"),style:It,ref:G,onScroll:Pe,onMouseEnter:jt},s.createElement(nk,{prefixCls:r,height:De,offsetX:me,offsetY:Re,scrollWidth:b,onInnerResize:F,ref:X,innerProps:$,rtl:B,extra:tn},Bt))),H&&De>o&&s.createElement(XR,{ref:Ie,prefixCls:r,scrollOffset:re,scrollRange:De,rtl:B,onScroll:Ve,onStartMove:pe,onStopMove:be,spinSize:et,containerSize:Be.height,style:P?.verticalScrollBar,thumbStyle:P?.verticalScrollBarThumb,showScrollBar:O}),H&&b>Be.width&&s.createElement(XR,{ref:Fe,prefixCls:r,scrollOffset:me,scrollRange:b,rtl:B,onScroll:Ve,onStartMove:pe,onStopMove:be,spinSize:Ge,containerSize:Be.width,horizontal:!0,style:P?.horizontalScrollBar,thumbStyle:P?.horizontalScrollBarThumb,showScrollBar:O}))}var Lh=s.forwardRef(Dte);Lh.displayName="List";function Fte(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var kte=["disabled","title","children","style","className"];function QR(e){return typeof e=="string"||typeof e=="number"}var Lte=function(t,n){var r=OE(),a=r.prefixCls,o=r.id,i=r.open,l=r.multiple,c=r.mode,u=r.searchValue,d=r.toggleOpen,f=r.notFoundContent,m=r.onPopupScroll,g=s.useContext(RE),h=g.maxCount,b=g.flattenOptions,p=g.onActiveValue,S=g.defaultActiveFirstOption,C=g.onSelect,x=g.menuItemSelectedIcon,w=g.rawValues,$=g.fieldNames,E=g.virtual,P=g.direction,M=g.listHeight,O=g.listItemHeight,T=g.optionRender,N="".concat(a,"-item"),D=$i(function(){return b},[i,b],function(se,oe){return oe[0]&&se[1]!==oe[1]}),L=s.useRef(null),_=s.useMemo(function(){return l&&Ow(h)&&w?.size>=h},[l,h,w?.size]),F=function(oe){oe.preventDefault()},j=function(oe){var me;(me=L.current)===null||me===void 0||me.scrollTo(typeof oe=="number"?{index:oe}:oe)},k=s.useCallback(function(se){return c==="combobox"?!1:w.has(se)},[c,Te(w).toString(),w.size]),z=function(oe){for(var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ue=D.length,de=0;de1&&arguments[1]!==void 0?arguments[1]:!1;K(oe);var ue={source:me?"keyboard":"mouse"},de=D[oe];if(!de){p(null,-1,ue);return}p(de.value,oe,ue)};s.useEffect(function(){W(S!==!1?z(0):-1)},[D.length,u]);var G=s.useCallback(function(se){return c==="combobox"?String(se).toLowerCase()===u.toLowerCase():w.has(se)},[c,u,Te(w).toString(),w.size]);s.useEffect(function(){var se=setTimeout(function(){if(!l&&i&&w.size===1){var me=Array.from(w)[0],ue=D.findIndex(function(de){var ae=de.data;return u?String(ae.value).startsWith(u):ae.value===me});ue!==-1&&(W(ue),j(ue))}});if(i){var oe;(oe=L.current)===null||oe===void 0||oe.scrollTo(void 0)}return function(){return clearTimeout(se)}},[i,u]);var X=function(oe){oe!==void 0&&C(oe,{selected:!w.has(oe)}),l||d(!1)};if(s.useImperativeHandle(n,function(){return{onKeyDown:function(oe){var me=oe.which,ue=oe.ctrlKey;switch(me){case lt.N:case lt.P:case lt.UP:case lt.DOWN:{var de=0;if(me===lt.UP?de=-1:me===lt.DOWN?de=1:Fte()&&ue&&(me===lt.N?de=1:me===lt.P&&(de=-1)),de!==0){var ae=z(B+de,de);j(ae),W(ae,!0)}break}case lt.TAB:case lt.ENTER:{var ie,ge=D[B];ge&&!(ge!=null&&(ie=ge.data)!==null&&ie!==void 0&&ie.disabled)&&!_?X(ge.value):X(void 0),i&&oe.preventDefault();break}case lt.ESC:d(!1),i&&oe.stopPropagation()}},onKeyUp:function(){},scrollTo:function(oe){j(oe)}}}),D.length===0)return s.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat(N,"-empty"),onMouseDown:F},f);var Y=Object.keys($).map(function(se){return $[se]}),Z=function(oe){return oe.label};function ee(se,oe){var me=se.group;return{role:me?"presentation":"option",id:"".concat(o,"_list_").concat(oe)}}var re=function(oe){var me=D[oe];if(!me)return null;var ue=me.data||{},de=ue.value,ae=me.group,ie=Qn(ue,!0),ge=Z(me);return me?s.createElement("div",xe({"aria-label":typeof ge=="string"&&!ae?ge:null},ie,{key:oe},ee(me,oe),{"aria-selected":G(de)}),de):null},ne={role:"listbox",id:"".concat(o,"_list")};return s.createElement(s.Fragment,null,E&&s.createElement("div",xe({},ne,{style:{height:0,width:0,overflow:"hidden"}}),re(B-1),re(B),re(B+1)),s.createElement(Lh,{itemKey:"key",ref:L,data:D,height:M,itemHeight:O,fullHeight:!1,onMouseDown:F,onScroll:m,virtual:E,direction:P,innerProps:E?null:ne},function(se,oe){var me=se.group,ue=se.groupOption,de=se.data,ae=se.label,ie=se.value,ge=de.key;if(me){var pe,be=(pe=de.title)!==null&&pe!==void 0?pe:QR(ae)?ae.toString():void 0;return s.createElement("div",{className:le(N,"".concat(N,"-group"),de.className),title:be},ae!==void 0?ae:ge)}var ve=de.disabled,Ce=de.title;de.children;var he=de.style,Se=de.className,Ee=Ue(de,kte),Oe=Qt(Ee,Y),We=k(ie),je=ve||!We&&_,De="".concat(N,"-option"),ke=le(N,De,Se,q(q(q(q({},"".concat(De,"-grouped"),ue),"".concat(De,"-active"),B===oe&&!je),"".concat(De,"-disabled"),je),"".concat(De,"-selected"),We)),_e=Z(se),Re=!x||typeof x=="function"||We,Le=typeof _e=="number"?_e:_e||ie,Me=QR(Le)?Le.toString():void 0;return Ce!==void 0&&(Me=Ce),s.createElement("div",xe({},Qn(Oe),E?{}:ee(se,oe),{"aria-selected":G(ie),className:ke,title:Me,onMouseMove:function(){B===oe||je||W(oe)},onClick:function(){je||X(ie)},style:he}),s.createElement("div",{className:"".concat(De,"-content")},typeof T=="function"?T(se,{index:oe}):Le),s.isValidElement(x)||We,Re&&s.createElement(kh,{className:"".concat(N,"-option-state"),customizeIcon:x,customizeIconProps:{value:ie,disabled:je,isSelected:We}},We?"✓":null))}))},zte=s.forwardRef(Lte);const Ate=(function(e,t){var n=s.useRef({values:new Map,options:new Map}),r=s.useMemo(function(){var o=n.current,i=o.values,l=o.options,c=e.map(function(f){if(f.label===void 0){var m;return R(R({},f),{},{label:(m=i.get(f.value))===null||m===void 0?void 0:m.label})}return f}),u=new Map,d=new Map;return c.forEach(function(f){u.set(f.value,f),d.set(f.value,t.get(f.value)||l.get(f.value))}),n.current.values=u,n.current.options=d,c},[e,t]),a=s.useCallback(function(o){return t.get(o)||n.current.options.get(o)},[t]);return[r,a]});function t1(e,t){return JF(e).join("").toUpperCase().includes(t)}const Bte=(function(e,t,n,r,a){return s.useMemo(function(){if(!n||r===!1)return e;var o=t.options,i=t.label,l=t.value,c=[],u=typeof r=="function",d=n.toUpperCase(),f=u?r:function(g,h){return a?t1(h[a],d):h[o]?t1(h[i!=="children"?i:"label"],d):t1(h[l],d)},m=u?function(g){return Rw(g)}:function(g){return g};return e.forEach(function(g){if(g[o]){var h=f(n,m(g));if(h)c.push(g);else{var b=g[o].filter(function(p){return f(n,m(p))});b.length&&c.push(R(R({},g),{},q({},o,b)))}return}f(n,m(g))&&c.push(g)}),c},[e,r,a,n,t])});var ZR=0,Hte=Xr();function Vte(){var e;return Hte?(e=ZR,ZR+=1):e="TEST_OR_SSR",e}function NE(e){var t=s.useState(),n=fe(t,2),r=n[0],a=n[1];return s.useEffect(function(){a("rc_select_".concat(Vte()))},[]),e||r}var Wte=["children","value"],Kte=["children"];function qte(e){var t=e,n=t.key,r=t.props,a=r.children,o=r.value,i=Ue(r,Wte);return R({key:n,value:o!==void 0?o:n,children:a},i)}function ak(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Xn(e).map(function(n,r){if(!s.isValidElement(n)||!n.type)return null;var a=n,o=a.type.isSelectOptGroup,i=a.key,l=a.props,c=l.children,u=Ue(l,Kte);return t||!o?qte(n):R(R({key:"__RC_SELECT_GRP__".concat(i===null?r:i,"__"),label:i},u),{},{options:ak(c)})}).filter(function(n){return n})}var Ute=function(t,n,r,a,o){return s.useMemo(function(){var i=t,l=!t;l&&(i=ak(n));var c=new Map,u=new Map,d=function(g,h,b){b&&typeof b=="string"&&g.set(h[b],h)},f=function m(g){for(var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,b=0;b0?ze(He.options):He.options}):He})},Le=s.useMemo(function(){return C?Re(_e):_e},[_e,C,ne]),Me=s.useMemo(function(){return mte(Le,{fieldNames:Z,childrenAsData:X})},[Le,Z,X]),Be=function(Ve){var Pe=ae(Ve);if(be(Pe),H&&(Pe.length!==Se.length||Pe.some(function(at,Nt){var pt;return((pt=Se[Nt])===null||pt===void 0?void 0:pt.value)!==at?.value}))){var He=V?Pe:Pe.map(function(at){return at.value}),Ze=Pe.map(function(at){return Rw(Ee(at.value))});H(G?He:He[0],G?Ze:Ze[0])}},$e=s.useState(null),we=fe($e,2),Ie=we[0],Fe=we[1],Ge=s.useState(0),et=fe(Ge,2),Ke=et[0],Ye=et[1],tt=M!==void 0?M:r!=="combobox",rt=s.useCallback(function(ze,Ve){var Pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},He=Pe.source,Ze=He===void 0?"keyboard":He;Ye(Ve),i&&r==="combobox"&&ze!==null&&Ze==="keyboard"&&Fe(String(ze))},[i,r]),ct=function(Ve,Pe,He){var Ze=function(){var It,Wt=Ee(Ve);return[V?{label:Wt?.[Z.label],value:Ve,key:(It=Wt?.key)!==null&&It!==void 0?It:Ve}:Ve,Rw(Wt)]};if(Pe&&g){var at=Ze(),Nt=fe(at,2),pt=Nt[0],mt=Nt[1];g(pt,mt)}else if(!Pe&&h&&He!=="clear"){var jt=Ze(),Kt=fe(jt,2),cn=Kt[0],tn=Kt[1];h(cn,tn)}},Ct=JR(function(ze,Ve){var Pe,He=G?Ve.selected:!0;He?Pe=G?[].concat(Te(Se),[ze]):[ze]:Pe=Se.filter(function(Ze){return Ze.value!==ze}),Be(Pe),ct(ze,He),r==="combobox"?Fe(""):(!Iw||m)&&(se(""),Fe(""))}),yt=function(Ve,Pe){Be(Ve);var He=Pe.type,Ze=Pe.values;(He==="remove"||He==="clear")&&Ze.forEach(function(at){ct(at.value,!1,He)})},dt=function(Ve,Pe){if(se(Ve),Fe(null),Pe.source==="submit"){var He=(Ve||"").trim();if(He){var Ze=Array.from(new Set([].concat(Te(We),[He])));Be(Ze),ct(He,!0),se("")}return}Pe.source!=="blur"&&(r==="combobox"&&Be(Ve),d?.(Ve))},vt=function(Ve){var Pe=Ve;r!=="tags"&&(Pe=Ve.map(function(Ze){var at=ue.get(Ze);return at?.value}).filter(function(Ze){return Ze!==void 0}));var He=Array.from(new Set([].concat(Te(We),Te(Pe))));Be(He),He.forEach(function(Ze){ct(Ze,!0)})},bt=s.useMemo(function(){var ze=T!==!1&&p!==!1;return R(R({},oe),{},{flattenOptions:Me,onActiveValue:rt,defaultActiveFirstOption:tt,onSelect:Ct,menuItemSelectedIcon:O,rawValues:We,fieldNames:Z,virtual:ze,direction:N,listHeight:L,listItemHeight:F,childrenAsData:X,maxCount:B,optionRender:E})},[B,oe,Me,rt,tt,Ct,O,We,Z,T,p,N,L,F,X,E]);return s.createElement(RE.Provider,{value:bt},s.createElement(IE,xe({},K,{id:W,prefixCls:o,ref:t,omitDomProps:Xte,mode:r,displayValues:Oe,onDisplayValuesChange:yt,direction:N,searchValue:ne,onSearch:dt,autoClearSearchValue:m,onSearchSplit:vt,dropdownMatchSelectWidth:p,OptionList:zte,emptyOptions:!Me.length,activeValue:Ie,activeDescendantId:"".concat(W,"_list_").concat(Ke)})))}),_E=Qte;_E.Option=TE;_E.OptGroup=ME;function Fo(e,t,n){return le({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const ji=(e,t)=>t||e,Zte=()=>{const[,e]=Rr(),[t]=zr("Empty"),r=new dn(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return s.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},s.createElement("title",null,t?.description||"Empty"),s.createElement("g",{fill:"none",fillRule:"evenodd"},s.createElement("g",{transform:"translate(24 31.67)"},s.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),s.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),s.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),s.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),s.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),s.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),s.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},s.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),s.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},Jte=()=>{const[,e]=Rr(),[t]=zr("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:a,colorBgContainer:o}=e,{borderColor:i,shadowColor:l,contentColor:c}=s.useMemo(()=>({borderColor:new dn(n).onBackground(o).toHexString(),shadowColor:new dn(r).onBackground(o).toHexString(),contentColor:new dn(a).onBackground(o).toHexString()}),[n,r,a,o]);return s.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},s.createElement("title",null,t?.description||"Empty"),s.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},s.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),s.createElement("g",{fillRule:"nonzero",stroke:i},s.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),s.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:c}))))},ene=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:a,fontSize:o,lineHeight:i}=e;return{[t]:{marginInline:r,fontSize:o,lineHeight:i,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:a,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},tne=rn("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,a=Xt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return ene(a)});var nne=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var t;const{className:n,rootClassName:r,prefixCls:a,image:o,description:i,children:l,imageStyle:c,style:u,classNames:d,styles:f}=e,m=nne(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:g,direction:h,className:b,style:p,classNames:S,styles:C,image:x}=Vn("empty"),w=g("empty",a),[$,E,P]=tne(w),[M]=zr("Empty"),O=typeof i<"u"?i:M?.description,T=typeof O=="string"?O:"empty",N=(t=o??x)!==null&&t!==void 0?t:ok;let D=null;return typeof N=="string"?D=s.createElement("img",{draggable:!1,alt:T,src:N}):D=N,$(s.createElement("div",Object.assign({className:le(E,P,w,b,{[`${w}-normal`]:N===ik,[`${w}-rtl`]:h==="rtl"},n,r,S.root,d?.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},C.root),p),f?.root),u)},m),s.createElement("div",{className:le(`${w}-image`,S.image,d?.image),style:Object.assign(Object.assign(Object.assign({},c),C.image),f?.image)},D),O&&s.createElement("div",{className:le(`${w}-description`,S.description,d?.description),style:Object.assign(Object.assign({},C.description),f?.description)},O),l&&s.createElement("div",{className:le(`${w}-footer`,S.footer,d?.footer),style:Object.assign(Object.assign({},C.footer),f?.footer)},l)))};tl.PRESENTED_IMAGE_DEFAULT=ok;tl.PRESENTED_IMAGE_SIMPLE=ik;const Js=e=>{const{componentName:t}=e,{getPrefixCls:n}=s.useContext(Ot),r=n("empty");switch(t){case"Table":case"List":return Q.createElement(tl,{image:tl.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return Q.createElement(tl,{image:tl.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return Q.createElement(tl,null)}},Di=(e,t,n)=>{var r,a;const{variant:o,[e]:i}=s.useContext(Ot),l=s.useContext(xF),c=i?.variant;let u;typeof t<"u"?u=t:n===!1?u="borderless":u=(a=(r=l??c)!==null&&r!==void 0?r:o)!==null&&a!==void 0?a:"outlined";const d=pU.includes(u);return[u,d]},rne=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function jE(e,t){return e||rne(t)}const e8=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:a}=e;return{position:"relative",display:"block",minHeight:t,padding:a,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},ane=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,a=`&${t}-slide-up-enter${t}-slide-up-enter-active`,o=`&${t}-slide-up-appear${t}-slide-up-appear-active`,i=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`,c=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},fn(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[` - ${a}${l}bottomLeft, - ${o}${l}bottomLeft - `]:{animationName:$h},[` - ${a}${l}topLeft, - ${o}${l}topLeft, - ${a}${l}topRight, - ${o}${l}topRight - `]:{animationName:Ph},[`${i}${l}bottomLeft`]:{animationName:Eh},[` - ${i}${l}topLeft, - ${i}${l}topRight - `]:{animationName:Oh},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},e8(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},ra),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},e8(e)),{color:e.colorTextDisabled})}),[`${c}:has(+ ${c})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${c}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},Pi(e,"slide-up"),Pi(e,"slide-down"),Pu(e,"move-up"),Pu(e,"move-down")]},lk=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:a}=e,o=e.max(e.calc(n).sub(r).equal(),0),i=e.max(e.calc(o).sub(a).equal(),0);return{basePadding:o,containerPadding:i,itemHeight:ce(t),itemLineHeight:ce(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},one=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},sk=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:a,paddingXS:o,multipleItemColorDisabled:i,multipleItemBorderColorDisabled:l,colorIcon:c,colorIconHover:u,INTERNAL_FIXED_ITEM_MARGIN:d}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"calc(100% - 4px)",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:d,borderRadius:r,cursor:"default",transition:`font-size ${a}, line-height ${a}, height ${a}`,marginInlineEnd:e.calc(d).mul(2).equal(),paddingInlineStart:o,paddingInlineEnd:e.calc(o).div(2).equal(),[`${t}-disabled&`]:{color:i,borderColor:l,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(o).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},rs()),{display:"inline-flex",alignItems:"center",color:c,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:u}})}}}},ine=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,a=`${n}-selection-overflow`,o=e.multipleSelectItemHeight,i=one(e),l=t?`${n}-${t}`:"",c=lk(e);return{[`${n}-multiple${l}`]:Object.assign(Object.assign({},sk(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:c.basePadding,paddingBlock:c.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${ce(r)} 0`,lineHeight:ce(o),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:c.itemHeight,lineHeight:ce(c.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:ce(o),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(c.basePadding).equal()},[`${a}-item + ${a}-item, - ${n}-prefix + ${n}-selection-wrap - `]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${a}-item-suffix`]:{minHeight:c.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(i).equal(),"\n &-input,\n &-mirror\n ":{height:o,fontFamily:e.fontFamily,lineHeight:ce(o),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(c.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function n1(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",a={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[` - &${n}-show-arrow ${n}-selector, - &${n}-allow-clear ${n}-selector - `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[ine(e,t),a]}const lne=e=>{const{componentCls:t}=e,n=Xt(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Xt(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[n1(e),n1(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},n1(r,"lg")]};function r1(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:a}=e,o=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),i=t?`${n}-${t}`:"";return{[`${n}-single${i}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},fn(e,!0)),{display:"flex",borderRadius:a,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:ce(o)},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[` - ${n}-selection-item, - ${n}-selection-placeholder - `]:{display:"block",padding:0,lineHeight:ce(o),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` - &${n}-show-arrow ${n}-selection-item, - &${n}-show-arrow ${n}-selection-search, - &${n}-show-arrow ${n}-selection-placeholder - `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${ce(r)}`,[`${n}-selection-search-input`]:{height:o,fontSize:e.fontSize},"&:after":{lineHeight:ce(o)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${ce(r)}`,"&:after":{display:"none"}}}}}}}function sne(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[r1(e),r1(Xt(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${ce(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[` - &${t}-show-arrow ${t}-selection-item, - &${t}-show-arrow ${t}-selection-placeholder - `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},r1(Xt(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const cne=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:a,controlHeightSM:o,controlHeightLG:i,paddingXXS:l,controlPaddingHorizontal:c,zIndexPopupBase:u,colorText:d,fontWeightStrong:f,controlItemBgActive:m,controlItemBgHover:g,colorBgContainer:h,colorFillSecondary:b,colorBgContainerDisabled:p,colorTextDisabled:S,colorPrimaryHover:C,colorPrimary:x,controlOutline:w}=e,$=l*2,E=r*2,P=Math.min(a-$,a-E),M=Math.min(o-$,o-E),O=Math.min(i-$,i-E);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:u+50,optionSelectedColor:d,optionSelectedFontWeight:f,optionSelectedBg:m,optionActiveBg:g,optionPadding:`${(a-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:a,selectorBg:h,clearBg:h,singleItemHeightLG:i,multipleItemBg:b,multipleItemBorderColor:"transparent",multipleItemHeight:P,multipleItemHeightSM:M,multipleItemHeightLG:O,multipleSelectorBgDisabled:p,multipleItemColorDisabled:S,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:C,activeBorderColor:x,activeOutlineColor:w,selectAffixPadding:l}},ck=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:a}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${ce(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${ce(a)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},t8=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},ck(e,t))}),une=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},ck(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),t8(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),t8(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${ce(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),uk=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${ce(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},n8=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},uk(e,t))}),dne=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},uk(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),n8(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),n8(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${ce(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),fne=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${ce(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${ce(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),dk=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`${ce(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,background:e.selectorBg,borderRadius:0},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:`transparent transparent ${t.hoverBorderHover} transparent`},[`${n}-focused& ${n}-selector`]:{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0},[`${n}-prefix`]:{color:t.color}}}},r8=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},dk(e,t))}),vne=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},dk(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),r8(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),r8(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${ce(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),mne=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},une(e)),dne(e)),fne(e)),vne(e))}),gne=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},pne=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},hne=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:a}=e,o={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:Object.assign(Object.assign({},fn(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},gne(e)),pne(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},ra),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},ra),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},rs()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[a]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":o,"&:hover":o}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},bne=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},hne(e),sne(e),lne(e),ane(e),{[`${t}-rtl`]:{direction:"rtl"}},os(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},DE=rn("Select",(e,{rootPrefixCls:t})=>{const n=Xt(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[bne(n),mne(n)]},cne,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var yne={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},Cne=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:yne}))},Cv=s.forwardRef(Cne),Sne={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},xne=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:Sne}))},Ri=s.forwardRef(xne),wne={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"},$ne=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:wne}))},Sv=s.forwardRef($ne);function zh({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:a,multiple:o,hasFeedback:i,prefixCls:l,showSuffixIcon:c,feedbackIcon:u,showArrow:d,componentName:f}){const m=t??s.createElement(_i,null),g=S=>e===null&&!i&&!d?null:s.createElement(s.Fragment,null,c!==!1&&S,i&&u);let h=null;if(e!==void 0)h=g(e);else if(a)h=g(s.createElement(wa,{spin:!0}));else{const S=`${l}-suffix`;h=({open:C,showSearch:x})=>g(C&&x?s.createElement(Sv,{className:S}):s.createElement(Ri,{className:S}))}let b=null;n!==void 0?b=n:o?b=s.createElement(Cv,null):b=null;let p=null;return r!==void 0?p=r:p=s.createElement(vo,null),{clearIcon:m,suffixIcon:h,itemIcon:b,removeIcon:p}}function FE(e){return Q.useMemo(()=>{if(e)return(...t)=>Q.createElement(Do,{space:!0},e.apply(void 0,t))},[e])}function kE(e,t){return t!==void 0?t:e!==null}var Ene=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r,a,o,i;const{prefixCls:l,bordered:c,className:u,rootClassName:d,getPopupContainer:f,popupClassName:m,dropdownClassName:g,listHeight:h=256,placement:b,listItemHeight:p,size:S,disabled:C,notFoundContent:x,status:w,builtinPlacements:$,dropdownMatchSelectWidth:E,popupMatchSelectWidth:P,direction:M,style:O,allowClear:T,variant:N,dropdownStyle:D,transitionName:L,tagRender:_,maxCount:F,prefix:j,dropdownRender:k,popupRender:z,onDropdownVisibleChange:V,onOpenChange:H,styles:B,classNames:K}=e,W=Ene(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix","dropdownRender","popupRender","onDropdownVisibleChange","onOpenChange","styles","classNames"]),{getPopupContainer:G,getPrefixCls:X,renderEmpty:Y,direction:Z,virtual:ee,popupMatchSelectWidth:re,popupOverflow:ne}=s.useContext(Ot),{showSearch:se,style:oe,styles:me,className:ue,classNames:de}=Vn("select"),[,ae]=Rr(),ie=p??ae?.controlHeight,ge=X("select",l),pe=X(),be=M??Z,{compactSize:ve,compactItemClassnames:Ce}=mo(ge,be),[he,Se]=Di("select",N,c),Ee=zn(ge),[Oe,We,je]=DE(ge,Ee),De=s.useMemo(()=>{const{mode:He}=e;if(He!=="combobox")return He===fk?"combobox":He},[e.mode]),ke=De==="multiple"||De==="tags",_e=kE(e.suffixIcon,e.showArrow),Re=(n=P??E)!==null&&n!==void 0?n:re,Le=((r=B?.popup)===null||r===void 0?void 0:r.root)||((a=me.popup)===null||a===void 0?void 0:a.root)||D,Me=FE(z||k),Be=H||V,{status:$e,hasFeedback:we,isFormItemInput:Ie,feedbackIcon:Fe}=s.useContext(Or),Ge=ji($e,w);let et;x!==void 0?et=x:De==="combobox"?et=null:et=Y?.("Select")||s.createElement(Js,{componentName:"Select"});const{suffixIcon:Ke,itemIcon:Ye,removeIcon:tt,clearIcon:rt}=zh(Object.assign(Object.assign({},W),{multiple:ke,hasFeedback:we,feedbackIcon:Fe,showSuffixIcon:_e,prefixCls:ge,componentName:"Select"})),ct=T===!0?{clearIcon:rt}:T,Ct=Qt(W,["suffixIcon","itemIcon"]),yt=le(((o=K?.popup)===null||o===void 0?void 0:o.root)||((i=de?.popup)===null||i===void 0?void 0:i.root)||m||g,{[`${ge}-dropdown-${be}`]:be==="rtl"},d,de.root,K?.root,je,Ee,We),dt=ar(He=>{var Ze;return(Ze=S??ve)!==null&&Ze!==void 0?Ze:He}),vt=s.useContext(Sr),bt=C??vt,ze=le({[`${ge}-lg`]:dt==="large",[`${ge}-sm`]:dt==="small",[`${ge}-rtl`]:be==="rtl",[`${ge}-${he}`]:Se,[`${ge}-in-form-item`]:Ie},Fo(ge,Ge,we),Ce,ue,u,de.root,K?.root,d,je,Ee,We),Ve=s.useMemo(()=>b!==void 0?b:be==="rtl"?"bottomRight":"bottomLeft",[b,be]),[Pe]=Ua("SelectLike",Le?.zIndex);return Oe(s.createElement(_E,Object.assign({ref:t,virtual:ee,showSearch:se},Ct,{style:Object.assign(Object.assign(Object.assign(Object.assign({},me.root),B?.root),oe),O),dropdownMatchSelectWidth:Re,transitionName:aa(pe,"slide-up",L),builtinPlacements:jE($,ne),listHeight:h,listItemHeight:ie,mode:De,prefixCls:ge,placement:Ve,direction:be,prefix:j,suffixIcon:Ke,menuItemSelectedIcon:Ye,removeIcon:tt,allowClear:ct,notFoundContent:et,className:ze,getPopupContainer:f||G,dropdownClassName:yt,disabled:bt,dropdownStyle:Object.assign(Object.assign({},Le),{zIndex:Pe}),maxCount:ke?F:void 0,tagRender:ke?_:void 0,dropdownRender:Me,onDropdownVisibleChange:Be})))},fl=s.forwardRef(Pne),One=is(fl,"dropdownAlign");fl.SECRET_COMBOBOX_MODE_DO_NOT_USE=fk;fl.Option=TE;fl.OptGroup=ME;fl._InternalPanelDoNotUseOrYouWillBeFired=One;const vk=(e,t)=>{typeof e?.addEventListener<"u"?e.addEventListener("change",t):typeof e?.addListener<"u"&&e.addListener(t)},mk=(e,t)=>{typeof e?.removeEventListener<"u"?e.removeEventListener("change",t):typeof e?.removeListener<"u"&&e.removeListener(t)},cl=["xxl","xl","lg","md","sm","xs"],Rne=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),Ine=e=>{const t=e,n=[].concat(cl).reverse();return n.forEach((r,a)=>{const o=r.toUpperCase(),i=`screen${o}Min`,l=`screen${o}`;if(!(t[i]<=t[l]))throw new Error(`${i}<=${l} fails : !(${t[i]}<=${t[l]})`);if(a{if(t){for(const n of cl)if(e[n]&&t?.[n]!==void 0)return t[n]}},Mne=()=>{const[,e]=Rr(),t=Rne(Ine(e));return Q.useMemo(()=>{const n=new Map;let r=-1,a={};return{responsiveMap:t,matchHandlers:{},dispatch(o){return a=o,n.forEach(i=>i(a)),n.size>=1},subscribe(o){return n.size||this.register(),r+=1,n.set(r,o),o(a),r},unsubscribe(o){n.delete(o),n.size||this.unregister()},register(){Object.entries(t).forEach(([o,i])=>{const l=({matches:u})=>{this.dispatch(Object.assign(Object.assign({},a),{[o]:u}))},c=window.matchMedia(i);vk(c,l),this.matchHandlers[i]={mql:c,listener:l},l(c)})},unregister(){Object.values(t).forEach(o=>{const i=this.matchHandlers[o];mk(i?.mql,i?.listener)}),n.clear()}}},[t])};function ui(e=!0,t={}){const n=s.useRef(t),[,r]=yh(),a=Mne();return un(()=>{const o=a.subscribe(i=>{n.current=i,e&&r()});return()=>a.unsubscribe(o)},[]),n.current}const Tw=s.createContext({}),Tne=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:a,avatarColor:o,containerSize:i,containerSizeLG:l,containerSizeSM:c,textFontSize:u,textFontSizeLG:d,textFontSizeSM:f,iconFontSize:m,iconFontSizeLG:g,iconFontSizeSM:h,borderRadius:b,borderRadiusLG:p,borderRadiusSM:S,lineWidth:C,lineType:x}=e,w=($,E,P,M)=>({width:$,height:$,borderRadius:"50%",fontSize:E,[`&${n}-square`]:{borderRadius:M},[`&${n}-icon`]:{fontSize:P,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},fn(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:o,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:a,border:`${ce(C)} ${x} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),w(i,u,m,b)),{"&-lg":Object.assign({},w(l,d,g,p)),"&-sm":Object.assign({},w(c,f,h,S)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},Nne=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:a}=e;return{[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:a}}}},_ne=e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:a,fontSizeLG:o,fontSizeXL:i,fontSizeHeading3:l,marginXS:c,marginXXS:u,colorBorderBg:d}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:a,textFontSizeLG:a,textFontSizeSM:a,iconFontSize:Math.round((o+i)/2),iconFontSizeLG:l,iconFontSizeSM:a,groupSpace:u,groupOverlapping:-c,groupBorderColor:d}},pk=rn("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=Xt(e,{avatarBg:n,avatarColor:t});return[Tne(r),Nne(r)]},_ne);var jne=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,shape:r,size:a,src:o,srcSet:i,icon:l,className:c,rootClassName:u,style:d,alt:f,draggable:m,children:g,crossOrigin:h,gap:b=4,onError:p}=e,S=jne(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","style","alt","draggable","children","crossOrigin","gap","onError"]),[C,x]=s.useState(1),[w,$]=s.useState(!1),[E,P]=s.useState(!0),M=s.useRef(null),O=s.useRef(null),T=wr(t,M),{getPrefixCls:N,avatar:D}=s.useContext(Ot),L=s.useContext(Tw),_=()=>{if(!O.current||!M.current)return;const se=O.current.offsetWidth,oe=M.current.offsetWidth;se!==0&&oe!==0&&b*2{$(!0)},[]),s.useEffect(()=>{P(!0),x(1)},[o]),s.useEffect(_,[b]);const F=()=>{p?.()!==!1&&P(!1)},j=ar(se=>{var oe,me;return(me=(oe=a??L?.size)!==null&&oe!==void 0?oe:se)!==null&&me!==void 0?me:"default"}),k=Object.keys(typeof j=="object"?j||{}:{}).some(se=>["xs","sm","md","lg","xl","xxl"].includes(se)),z=ui(k),V=s.useMemo(()=>{if(typeof j!="object")return{};const se=cl.find(me=>z[me]),oe=j[se];return oe?{width:oe,height:oe,fontSize:oe&&(l||g)?oe/2:18}:{}},[z,j,l,g]),H=N("avatar",n),B=zn(H),[K,W,G]=pk(H,B),X=le({[`${H}-lg`]:j==="large",[`${H}-sm`]:j==="small"}),Y=s.isValidElement(o),Z=r||L?.shape||"circle",ee=le(H,X,D?.className,`${H}-${Z}`,{[`${H}-image`]:Y||o&&E,[`${H}-icon`]:!!l},G,B,c,u,W),re=typeof j=="number"?{width:j,height:j,fontSize:l?j/2:18}:{};let ne;if(typeof o=="string"&&E)ne=s.createElement("img",{src:o,draggable:m,srcSet:i,onError:F,alt:f,crossOrigin:h});else if(Y)ne=o;else if(l)ne=l;else if(w||C!==1){const se=`scale(${C})`,oe={msTransform:se,WebkitTransform:se,transform:se};ne=s.createElement(Vr,{onResize:_},s.createElement("span",{className:`${H}-string`,ref:O,style:oe},g))}else ne=s.createElement("span",{className:`${H}-string`,style:{opacity:0},ref:O},g);return K(s.createElement("span",Object.assign({},S,{style:Object.assign(Object.assign(Object.assign(Object.assign({},re),V),D?.style),d),className:ee,ref:T}),ne))}),Ou=e=>e?typeof e=="function"?e():e:null;function LE(e){var t=e.children,n=e.prefixCls,r=e.id,a=e.overlayInnerStyle,o=e.bodyClassName,i=e.className,l=e.style;return s.createElement("div",{className:le("".concat(n,"-content"),i),style:l},s.createElement("div",{className:le("".concat(n,"-inner"),o),id:r,role:"tooltip",style:a},typeof t=="function"?t():t))}var Vc={shiftX:64,adjustY:1},Wc={adjustX:1,shiftY:!0},Eo=[0,0],Dne={left:{points:["cr","cl"],overflow:Wc,offset:[-4,0],targetOffset:Eo},right:{points:["cl","cr"],overflow:Wc,offset:[4,0],targetOffset:Eo},top:{points:["bc","tc"],overflow:Vc,offset:[0,-4],targetOffset:Eo},bottom:{points:["tc","bc"],overflow:Vc,offset:[0,4],targetOffset:Eo},topLeft:{points:["bl","tl"],overflow:Vc,offset:[0,-4],targetOffset:Eo},leftTop:{points:["tr","tl"],overflow:Wc,offset:[-4,0],targetOffset:Eo},topRight:{points:["br","tr"],overflow:Vc,offset:[0,-4],targetOffset:Eo},rightTop:{points:["tl","tr"],overflow:Wc,offset:[4,0],targetOffset:Eo},bottomRight:{points:["tr","br"],overflow:Vc,offset:[0,4],targetOffset:Eo},rightBottom:{points:["bl","br"],overflow:Wc,offset:[4,0],targetOffset:Eo},bottomLeft:{points:["tl","bl"],overflow:Vc,offset:[0,4],targetOffset:Eo},leftBottom:{points:["br","bl"],overflow:Wc,offset:[-4,0],targetOffset:Eo}},Fne=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],kne=function(t,n){var r=t.overlayClassName,a=t.trigger,o=a===void 0?["hover"]:a,i=t.mouseEnterDelay,l=i===void 0?0:i,c=t.mouseLeaveDelay,u=c===void 0?.1:c,d=t.overlayStyle,f=t.prefixCls,m=f===void 0?"rc-tooltip":f,g=t.children,h=t.onVisibleChange,b=t.afterVisibleChange,p=t.transitionName,S=t.animation,C=t.motion,x=t.placement,w=x===void 0?"right":x,$=t.align,E=$===void 0?{}:$,P=t.destroyTooltipOnHide,M=P===void 0?!1:P,O=t.defaultVisible,T=t.getTooltipContainer,N=t.overlayInnerStyle;t.arrowContent;var D=t.overlay,L=t.id,_=t.showArrow,F=_===void 0?!0:_,j=t.classNames,k=t.styles,z=Ue(t,Fne),V=Ku(L),H=s.useRef(null);s.useImperativeHandle(n,function(){return H.current});var B=R({},z);"visible"in t&&(B.popupVisible=t.visible);var K=function(){return s.createElement(LE,{key:"content",prefixCls:m,id:V,bodyClassName:j?.body,overlayInnerStyle:R(R({},N),k?.body)},D)},W=function(){var X=s.Children.only(g),Y=X?.props||{},Z=R(R({},Y),{},{"aria-describedby":D?V:null});return s.cloneElement(g,Z)};return s.createElement(yv,xe({popupClassName:le(r,j?.root),prefixCls:m,popup:K,action:o,builtinPlacements:Dne,popupPlacement:w,ref:H,popupAlign:E,getPopupContainer:T,onPopupVisibleChange:h,afterPopupVisibleChange:b,popupTransitionName:p,popupAnimation:S,popupMotion:C,defaultPopupVisible:O,autoDestroy:M,mouseLeaveDelay:u,popupStyle:R(R({},d),k?.root),mouseEnterDelay:l,arrow:F},B),W())};const Lne=s.forwardRef(kne);function Ah(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,a=t/2,o=0,i=a,l=r*1/Math.sqrt(2),c=a-r*(1-1/Math.sqrt(2)),u=a-n*(1/Math.sqrt(2)),d=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*a-u,m=d,g=2*a-l,h=c,b=2*a-o,p=i,S=a*Math.sqrt(2)+r*(Math.sqrt(2)-2),C=r*(Math.sqrt(2)-1),x=`polygon(${C}px 100%, 50% ${C}px, ${2*a-C}px 100%, ${C}px 100%)`,w=`path('M ${o} ${i} A ${r} ${r} 0 0 0 ${l} ${c} L ${u} ${d} A ${n} ${n} 0 0 1 ${f} ${m} L ${g} ${h} A ${r} ${r} 0 0 0 ${b} ${p} Z')`;return{arrowShadowWidth:S,arrowPath:w,arrowPolygon:x}}const bk=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:a,arrowPath:o,arrowShadowWidth:i,borderRadiusXS:l,calc:c}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[a,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${ce(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},yk=8;function Bh(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?yk:r}}function sg(e,t){return e?t:{}}function zE(e,t,n){const{componentCls:r,boxShadowPopoverArrow:a,arrowOffsetVertical:o,arrowOffsetHorizontal:i}=e,{arrowDistance:l=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},bk(e,t,a)),{"&:before":{background:t}})]},sg(!!c.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":i,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${ce(i)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),sg(!!c.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":i,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${ce(i)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),sg(!!c.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:o},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:o}})),sg(!!c.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:o},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:o}}))}}function zne(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const a=r&&typeof r=="object"?r:{},o={};switch(e){case"top":case"bottom":o.shiftX=t.arrowOffsetHorizontal*2+n,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=t.arrowOffsetVertical*2+n,o.shiftX=!0,o.adjustX=!0;break}const i=Object.assign(Object.assign({},o),a);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}const a8={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},Ane={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},Bne=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Ck(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:a,borderRadius:o,visibleFirst:i}=e,l=t/2,c={},u=Bh({contentRadius:o,limitVerticalRadius:!0});return Object.keys(a8).forEach(d=>{const f=r&&Ane[d]||a8[d],m=Object.assign(Object.assign({},f),{offset:[0,0],dynamicInset:!0});switch(c[d]=m,Bne.has(d)&&(m.autoArrow=!1),d){case"top":case"topLeft":case"topRight":m.offset[1]=-l-a;break;case"bottom":case"bottomLeft":case"bottomRight":m.offset[1]=l+a;break;case"left":case"leftTop":case"leftBottom":m.offset[0]=-l-a;break;case"right":case"rightTop":case"rightBottom":m.offset[0]=l+a;break}if(r)switch(d){case"topLeft":case"bottomLeft":m.offset[0]=-u.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":m.offset[0]=u.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":m.offset[1]=-u.arrowOffsetHorizontal*2+l;break;case"leftBottom":case"rightBottom":m.offset[1]=u.arrowOffsetHorizontal*2-l;break}m.overflow=zne(d,u,t,n),i&&(m.htmlRegion="visibleFirst")}),c}const Hne=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:a,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:l,controlHeight:c,boxShadowSecondary:u,paddingSM:d,paddingXS:f,arrowOffsetHorizontal:m,sizePopupArrow:g}=e,h=t(i).add(g).add(m).equal(),b=t(i).mul(2).add(g).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},fn(e)),{position:"absolute",zIndex:l,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${n}-inner`]:{minWidth:b,minHeight:c,padding:`${ce(e.calc(d).div(2).equal())} ${ce(f)}`,color:`var(--ant-tooltip-color, ${a})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:u,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:h},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(i,yk)}},[`${n}-content`]:{position:"relative"}}),hh(e,(p,{darkColor:S})=>({[`&${n}-${p}`]:{[`${n}-inner`]:{backgroundColor:S},[`${n}-arrow`]:{"--antd-arrow-background-color":S}}}))),{"&-rtl":{direction:"rtl"}})},zE(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Vne=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Bh({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Ah(Xt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Sk=(e,t=!0)=>rn("Tooltip",r=>{const{borderRadius:a,colorTextLightSolid:o,colorBgSpotlight:i}=r,l=Xt(r,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:a,tooltipBg:i});return[Hne(l),Wu(r,"zoom-big-fast")]},Vne,{resetStyle:!1,injectStyle:t})(e),Wne=Yl.map(e=>`${e}-inverse`),Kne=["success","processing","error","default","warning"];function Hh(e,t=!0){return t?[].concat(Te(Wne),Te(Yl)).includes(e):Yl.includes(e)}function qne(e){return Kne.includes(e)}function xk(e,t){const n=Hh(t),r=le({[`${e}-${t}`]:t&&n}),a={},o={},i=va(t).toRgb(),c=(.299*i.r+.587*i.g+.114*i.b)/255<.5?"#FFF":"#000";return t&&!n&&(a.background=t,a["--ant-tooltip-color"]=c,o["--antd-arrow-background-color"]=t),{className:r,overlayStyle:a,arrowStyle:o}}const Une=e=>{const{prefixCls:t,className:n,placement:r="top",title:a,color:o,overlayInnerStyle:i}=e,{getPrefixCls:l}=s.useContext(Ot),c=l("tooltip",t),[u,d,f]=Sk(c),m=xk(c,o),g=m.arrowStyle,h=Object.assign(Object.assign({},i),m.overlayStyle),b=le(d,f,c,`${c}-pure`,`${c}-placement-${r}`,n,m.className);return u(s.createElement("div",{className:b,style:g},s.createElement("div",{className:`${c}-arrow`}),s.createElement(LE,Object.assign({},e,{className:d,prefixCls:c,overlayInnerStyle:h}),a)))};var Gne=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r;const{prefixCls:a,openClassName:o,getTooltipContainer:i,color:l,overlayInnerStyle:c,children:u,afterOpenChange:d,afterVisibleChange:f,destroyTooltipOnHide:m,destroyOnHidden:g,arrow:h=!0,title:b,overlay:p,builtinPlacements:S,arrowPointAtCenter:C=!1,autoAdjustOverflow:x=!0,motion:w,getPopupContainer:$,placement:E="top",mouseEnterDelay:P=.1,mouseLeaveDelay:M=.1,overlayStyle:O,rootClassName:T,overlayClassName:N,styles:D,classNames:L}=e,_=Gne(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),F=!!h,[,j]=Rr(),{getPopupContainer:k,getPrefixCls:z,direction:V,className:H,style:B,classNames:K,styles:W}=Vn("tooltip"),G=Ni(),X=s.useRef(null),Y=()=>{var _e;(_e=X.current)===null||_e===void 0||_e.forceAlign()};s.useImperativeHandle(t,()=>{var _e,Re;return{forceAlign:Y,forcePopupAlign:()=>{G.deprecated(!1,"forcePopupAlign","forceAlign"),Y()},nativeElement:(_e=X.current)===null||_e===void 0?void 0:_e.nativeElement,popupElement:(Re=X.current)===null||Re===void 0?void 0:Re.popupElement}});const[Z,ee]=Tt(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),re=!b&&!p&&b!==0,ne=_e=>{var Re,Le;ee(re?!1:_e),re||((Re=e.onOpenChange)===null||Re===void 0||Re.call(e,_e),(Le=e.onVisibleChange)===null||Le===void 0||Le.call(e,_e))},se=s.useMemo(()=>{var _e,Re;let Le=C;return typeof h=="object"&&(Le=(Re=(_e=h.pointAtCenter)!==null&&_e!==void 0?_e:h.arrowPointAtCenter)!==null&&Re!==void 0?Re:C),S||Ck({arrowPointAtCenter:Le,autoAdjustOverflow:x,arrowWidth:F?j.sizePopupArrow:0,borderRadius:j.borderRadius,offset:j.marginXXS,visibleFirst:!0})},[C,h,S,j]),oe=s.useMemo(()=>b===0?b:p||b||"",[p,b]),me=s.createElement(Do,{space:!0},typeof oe=="function"?oe():oe),ue=z("tooltip",a),de=z(),ae=e["data-popover-inject"];let ie=Z;!("open"in e)&&!("visible"in e)&&re&&(ie=!1);const ge=s.isValidElement(u)&&!RD(u)?u:s.createElement("span",null,u),pe=ge.props,be=!pe.className||typeof pe.className=="string"?le(pe.className,o||`${ue}-open`):pe.className,[ve,Ce,he]=Sk(ue,!ae),Se=xk(ue,l),Ee=Se.arrowStyle,Oe=le(N,{[`${ue}-rtl`]:V==="rtl"},Se.className,T,Ce,he,H,K.root,L?.root),We=le(K.body,L?.body),[je,De]=Ua("Tooltip",_.zIndex),ke=s.createElement(Lne,Object.assign({},_,{zIndex:je,showArrow:F,placement:E,mouseEnterDelay:P,mouseLeaveDelay:M,prefixCls:ue,classNames:{root:Oe,body:We},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ee),W.root),B),O),D?.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},W.body),c),D?.body),Se.overlayStyle)},getTooltipContainer:$||i||k,ref:X,builtinPlacements:se,overlay:me,visible:ie,onVisibleChange:ne,afterVisibleChange:d??f,arrowContent:s.createElement("span",{className:`${ue}-arrow-content`}),motion:{motionName:aa(de,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:g??!!m}),ie?xr(ge,{className:be}):ge);return ve(s.createElement(uv.Provider,{value:De},ke))}),tr=Xne;tr._InternalPanelDoNotUseOrYouWillBeFired=Une;const Yne=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:a,innerPadding:o,boxShadowSecondary:i,colorTextHeading:l,borderRadiusLG:c,zIndexPopup:u,titleMarginBottom:d,colorBgElevated:f,popoverBg:m,titleBorderBottom:g,innerContentPadding:h,titlePadding:b}=e;return[{[t]:Object.assign(Object.assign({},fn(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":f,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:m,backgroundClip:"padding-box",borderRadius:c,boxShadow:i,padding:o},[`${t}-title`]:{minWidth:r,marginBottom:d,color:l,fontWeight:a,borderBottom:g,padding:b},[`${t}-inner-content`]:{color:n,padding:h}})},zE(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},Qne=e=>{const{componentCls:t}=e;return{[t]:Yl.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},Zne=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:a,wireframe:o,zIndexPopupBase:i,borderRadiusLG:l,marginXS:c,lineType:u,colorSplit:d,paddingSM:f}=e,m=n-r,g=m/2,h=m/2-t,b=a;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:i+30},Ah(e)),Bh({contentRadius:l,limitVerticalRadius:!0})),{innerPadding:o?0:12,titleMarginBottom:o?0:c,titlePadding:o?`${g}px ${b}px ${h}px`:0,titleBorderBottom:o?`${t}px ${u} ${d}`:"none",innerContentPadding:o?`${f}px ${b}px`:0})},wk=rn("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=Xt(e,{popoverBg:t,popoverColor:n});return[Yne(r),Qne(r),Wu(r,"zoom-big")]},Zne,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var Jne=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a!e&&!t?null:s.createElement(s.Fragment,null,e&&s.createElement("div",{className:`${n}-title`},e),t&&s.createElement("div",{className:`${n}-inner-content`},t)),ere=e=>{const{hashId:t,prefixCls:n,className:r,style:a,placement:o="top",title:i,content:l,children:c}=e,u=Ou(i),d=Ou(l),f=le(t,n,`${n}-pure`,`${n}-placement-${o}`,r);return s.createElement("div",{className:f,style:a},s.createElement("div",{className:`${n}-arrow`}),s.createElement(LE,Object.assign({},e,{className:t,prefixCls:n}),c||s.createElement($k,{prefixCls:n,title:u,content:d})))},Ek=e=>{const{prefixCls:t,className:n}=e,r=Jne(e,["prefixCls","className"]),{getPrefixCls:a}=s.useContext(Ot),o=a("popover",t),[i,l,c]=wk(o);return i(s.createElement(ere,Object.assign({},r,{prefixCls:o,hashId:l,className:le(n,c)})))};var tre=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r;const{prefixCls:a,title:o,content:i,overlayClassName:l,placement:c="top",trigger:u="hover",children:d,mouseEnterDelay:f=.1,mouseLeaveDelay:m=.1,onOpenChange:g,overlayStyle:h={},styles:b,classNames:p}=e,S=tre(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:C,className:x,style:w,classNames:$,styles:E}=Vn("popover"),P=C("popover",a),[M,O,T]=wk(P),N=C(),D=le(l,O,T,x,$.root,p?.root),L=le($.body,p?.body),[_,F]=Tt(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),j=(B,K)=>{F(B,!0),g?.(B,K)},k=B=>{B.keyCode===lt.ESC&&j(!1,B)},z=B=>{j(B)},V=Ou(o),H=Ou(i);return M(s.createElement(tr,Object.assign({placement:c,trigger:u,mouseEnterDelay:f,mouseLeaveDelay:m},S,{prefixCls:P,classNames:{root:D,body:L},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},E.root),w),h),b?.root),body:Object.assign(Object.assign({},E.body),b?.body)},ref:t,open:_,onOpenChange:z,overlay:V||H?s.createElement($k,{prefixCls:P,title:V,content:H}):null,transitionName:aa(N,"zoom-big",S.transitionName),"data-popover-inject":!0}),xr(d,{onKeyDown:B=>{var K,W;s.isValidElement(d)&&((W=d==null?void 0:(K=d.props).onKeyDown)===null||W===void 0||W.call(K,B)),k(B)}})))}),Fi=nre;Fi._InternalPanelDoNotUseOrYouWillBeFired=Ek;const o8=e=>{const{size:t,shape:n}=s.useContext(Tw),r=s.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return s.createElement(Tw.Provider,{value:r},e.children)},rre=e=>{var t,n,r,a;const{getPrefixCls:o,direction:i}=s.useContext(Ot),{prefixCls:l,className:c,rootClassName:u,style:d,maxCount:f,maxStyle:m,size:g,shape:h,maxPopoverPlacement:b,maxPopoverTrigger:p,children:S,max:C}=e,x=o("avatar",l),w=`${x}-group`,$=zn(x),[E,P,M]=pk(x,$),O=le(w,{[`${w}-rtl`]:i==="rtl"},M,$,c,u,P),T=Xn(S).map((L,_)=>xr(L,{key:`avatar-key-${_}`})),N=C?.count||f,D=T.length;if(N&&N{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:a,textFontSize:o,textFontSizeSM:i,statusSize:l,dotSize:c,textFontWeight:u,indicatorHeight:d,indicatorHeightSM:f,marginXS:m,calc:g}=e,h=`${r}-scroll-number`,b=hh(e,(p,{darkColor:S})=>({[`&${t} ${t}-color-${p}`]:{background:S,[`&:not(${t}-count)`]:{color:S},"a:hover &":{background:S}}}));return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},fn(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:d,height:d,color:e.badgeTextColor,fontWeight:u,fontSize:o,lineHeight:ce(d),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:g(d).div(2).equal(),boxShadow:`0 0 0 ${ce(a)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:f,height:f,fontSize:i,lineHeight:ce(f),borderRadius:g(f).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${ce(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:c,minWidth:c,height:c,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${ce(a)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${h}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:dre,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:l,height:l,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:a,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:ire,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:m,color:e.colorText,fontSize:e.fontSize}}}),b),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:lre,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:sre,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:cre,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:ure,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${h}-custom-component, ${t}-count`]:{transform:"none"},[`${h}-custom-component, ${h}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[h]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${h}-only`]:{position:"relative",display:"inline-block",height:d,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${h}-only-unit`]:{height:d,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${h}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${h}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},Ok=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:a}=e,o=t,i=n,l=e.colorTextLightSolid,c=e.colorError,u=e.colorErrorHover;return Xt(e,{badgeFontHeight:o,badgeShadowSize:i,badgeTextColor:l,badgeColor:c,badgeColorHover:u,badgeShadowColor:a,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},Rk=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:a}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*a,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},vre=rn("Badge",e=>{const t=Ok(e);return fre(t)},Rk),mre=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:a,calc:o}=e,i=`${t}-ribbon`,l=`${t}-ribbon-wrapper`,c=hh(e,(u,{darkColor:d})=>({[`&${i}-color-${u}`]:{background:d,color:d}}));return{[l]:{position:"relative"},[i]:Object.assign(Object.assign(Object.assign(Object.assign({},fn(e)),{position:"absolute",top:r,padding:`0 ${ce(e.paddingXS)}`,color:e.colorPrimary,lineHeight:ce(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${i}-text`]:{color:e.badgeTextColor},[`${i}-corner`]:{position:"absolute",top:"100%",width:a,height:a,color:"currentcolor",border:`${ce(o(a).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),c),{[`&${i}-placement-end`]:{insetInlineEnd:o(a).mul(-1).equal(),borderEndEndRadius:0,[`${i}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${i}-placement-start`]:{insetInlineStart:o(a).mul(-1).equal(),borderEndStartRadius:0,[`${i}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},gre=rn(["Badge","Ribbon"],e=>{const t=Ok(e);return mre(t)},Rk),pre=e=>{const{className:t,prefixCls:n,style:r,color:a,children:o,text:i,placement:l="end",rootClassName:c}=e,{getPrefixCls:u,direction:d}=s.useContext(Ot),f=u("ribbon",n),m=`${f}-wrapper`,[g,h,b]=gre(f,m),p=Hh(a,!1),S=le(f,`${f}-placement-${l}`,{[`${f}-rtl`]:d==="rtl",[`${f}-color-${a}`]:p},t),C={},x={};return a&&!p&&(C.background=a,x.color=a),g(s.createElement("div",{className:le(m,c,h,b)},o,s.createElement("div",{className:le(S,h),style:Object.assign(Object.assign({},C),r)},s.createElement("span",{className:`${f}-text`},i),s.createElement("div",{className:`${f}-corner`,style:x}))))},i8=e=>{const{prefixCls:t,value:n,current:r,offset:a=0}=e;let o;return a&&(o={position:"absolute",top:`${a}00%`,left:0}),s.createElement("span",{style:o,className:le(`${t}-only-unit`,{current:r})},n)};function hre(e,t,n){let r=e,a=0;for(;(r+10)%10!==t;)r+=n,a+=n;return a}const bre=e=>{const{prefixCls:t,count:n,value:r}=e,a=Number(r),o=Math.abs(n),[i,l]=s.useState(a),[c,u]=s.useState(o),d=()=>{l(a),u(o)};s.useEffect(()=>{const g=setTimeout(d,1e3);return()=>clearTimeout(g)},[a]);let f,m;if(i===a||Number.isNaN(a)||Number.isNaN(i))f=[s.createElement(i8,Object.assign({},e,{key:a,current:!0}))],m={transition:"none"};else{f=[];const g=a+10,h=[];for(let C=a;C<=g;C+=1)h.push(C);const b=cC%10===i);f=(b<0?h.slice(0,p+1):h.slice(p)).map((C,x)=>{const w=C%10;return s.createElement(i8,Object.assign({},e,{key:C,value:w,offset:b<0?x-p:x,current:x===p}))}),m={transform:`translateY(${-hre(i,a,b)}00%)`}}return s.createElement("span",{className:`${t}-only`,style:m,onTransitionEnd:d},f)};var yre=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,count:r,className:a,motionClassName:o,style:i,title:l,show:c,component:u="sup",children:d}=e,f=yre(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:m}=s.useContext(Ot),g=m("scroll-number",n),h=Object.assign(Object.assign({},f),{"data-show":c,style:i,className:le(g,a,o),title:l});let b=r;if(r&&Number(r)%1===0){const p=String(r).split("");b=s.createElement("bdi",null,p.map((S,C)=>s.createElement(bre,{prefixCls:g,count:Number(r),value:S,key:p.length-C})))}return i?.borderColor&&(h.style=Object.assign(Object.assign({},i),{boxShadow:`0 0 0 1px ${i.borderColor} inset`})),d?xr(d,p=>({className:le(`${g}-custom-component`,p?.className,o)})):s.createElement(u,Object.assign({},h,{ref:t}),b)});var Sre=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r,a,o,i;const{prefixCls:l,scrollNumberPrefixCls:c,children:u,status:d,text:f,color:m,count:g=null,overflowCount:h=99,dot:b=!1,size:p="default",title:S,offset:C,style:x,className:w,rootClassName:$,classNames:E,styles:P,showZero:M=!1}=e,O=Sre(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:T,direction:N,badge:D}=s.useContext(Ot),L=T("badge",l),[_,F,j]=vre(L),k=g>h?`${h}+`:g,z=k==="0"||k===0||f==="0"||f===0,V=g===null||z&&!M,H=(d!=null||m!=null)&&V,B=d!=null||!z,K=b&&!z,W=K?"":k,G=s.useMemo(()=>((W==null||W==="")&&(f==null||f==="")||z&&!M)&&!K,[W,z,M,K,f]),X=s.useRef(g);G||(X.current=g);const Y=X.current,Z=s.useRef(W);G||(Z.current=W);const ee=Z.current,re=s.useRef(K);G||(re.current=K);const ne=s.useMemo(()=>{if(!C)return Object.assign(Object.assign({},D?.style),x);const pe={marginTop:C[1]};return N==="rtl"?pe.left=Number.parseInt(C[0],10):pe.right=-Number.parseInt(C[0],10),Object.assign(Object.assign(Object.assign({},pe),D?.style),x)},[N,C,x,D?.style]),se=S??(typeof Y=="string"||typeof Y=="number"?Y:void 0),oe=!G&&(f===0?M:!!f&&f!==!0),me=oe?s.createElement("span",{className:`${L}-status-text`},f):null,ue=!Y||typeof Y!="object"?void 0:xr(Y,pe=>({style:Object.assign(Object.assign({},ne),pe.style)})),de=Hh(m,!1),ae=le(E?.indicator,(n=D?.classNames)===null||n===void 0?void 0:n.indicator,{[`${L}-status-dot`]:H,[`${L}-status-${d}`]:!!d,[`${L}-color-${m}`]:de}),ie={};m&&!de&&(ie.color=m,ie.background=m);const ge=le(L,{[`${L}-status`]:H,[`${L}-not-a-wrapper`]:!u,[`${L}-rtl`]:N==="rtl"},w,$,D?.className,(r=D?.classNames)===null||r===void 0?void 0:r.root,E?.root,F,j);if(!u&&H&&(f||B||!V)){const pe=ne.color;return _(s.createElement("span",Object.assign({},O,{className:ge,style:Object.assign(Object.assign(Object.assign({},P?.root),(a=D?.styles)===null||a===void 0?void 0:a.root),ne)}),s.createElement("span",{className:ae,style:Object.assign(Object.assign(Object.assign({},P?.indicator),(o=D?.styles)===null||o===void 0?void 0:o.indicator),ie)}),oe&&s.createElement("span",{style:{color:pe},className:`${L}-status-text`},f)))}return _(s.createElement("span",Object.assign({ref:t},O,{className:ge,style:Object.assign(Object.assign({},(i=D?.styles)===null||i===void 0?void 0:i.root),P?.root)}),u,s.createElement(Nr,{visible:!G,motionName:`${L}-zoom`,motionAppear:!1,motionDeadline:1e3},({className:pe})=>{var be,ve;const Ce=T("scroll-number",c),he=re.current,Se=le(E?.indicator,(be=D?.classNames)===null||be===void 0?void 0:be.indicator,{[`${L}-dot`]:he,[`${L}-count`]:!he,[`${L}-count-sm`]:p==="small",[`${L}-multiple-words`]:!he&&ee&&ee.toString().length>1,[`${L}-status-${d}`]:!!d,[`${L}-color-${m}`]:de});let Ee=Object.assign(Object.assign(Object.assign({},P?.indicator),(ve=D?.styles)===null||ve===void 0?void 0:ve.indicator),ne);return m&&!de&&(Ee=Ee||{},Ee.background=m),s.createElement(Cre,{prefixCls:Ce,show:!G,motionClassName:pe,className:Se,count:ee,title:se,style:Ee,key:"scrollNumber"},ue)}),me))}),so=xre;so.Ribbon=pre;var wre={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"},$re=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:wre}))},oi=s.forwardRef($re),Ere=lt.ESC,Pre=lt.TAB;function Ore(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,a=e.autoFocus,o=e.overlayRef,i=s.useRef(!1),l=function(){if(t){var f,m;(f=n.current)===null||f===void 0||(m=f.focus)===null||m===void 0||m.call(f),r?.(!1)}},c=function(){var f;return(f=o.current)!==null&&f!==void 0&&f.focus?(o.current.focus(),i.current=!0,!0):!1},u=function(f){switch(f.keyCode){case Ere:l();break;case Pre:{var m=!1;i.current||(m=c()),m?f.preventDefault():l();break}}};s.useEffect(function(){return t?(window.addEventListener("keydown",u),a&&ln(c,3),function(){window.removeEventListener("keydown",u),i.current=!1}):function(){i.current=!1}},[t])}var Rre=s.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,a=e.prefixCls,o=s.useMemo(function(){var l;return typeof n=="function"?l=n():l=n,l},[n]),i=wr(t,ns(o));return Q.createElement(Q.Fragment,null,r&&Q.createElement("div",{className:"".concat(a,"-arrow")}),Q.cloneElement(o,{ref:ni(o)?i:void 0}))}),Kc={adjustX:1,adjustY:1},qc=[0,0],Ire={topLeft:{points:["bl","tl"],overflow:Kc,offset:[0,-4],targetOffset:qc},top:{points:["bc","tc"],overflow:Kc,offset:[0,-4],targetOffset:qc},topRight:{points:["br","tr"],overflow:Kc,offset:[0,-4],targetOffset:qc},bottomLeft:{points:["tl","bl"],overflow:Kc,offset:[0,4],targetOffset:qc},bottom:{points:["tc","bc"],overflow:Kc,offset:[0,4],targetOffset:qc},bottomRight:{points:["tr","br"],overflow:Kc,offset:[0,4],targetOffset:qc}},Mre=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Tre(e,t){var n,r=e.arrow,a=r===void 0?!1:r,o=e.prefixCls,i=o===void 0?"rc-dropdown":o,l=e.transitionName,c=e.animation,u=e.align,d=e.placement,f=d===void 0?"bottomLeft":d,m=e.placements,g=m===void 0?Ire:m,h=e.getPopupContainer,b=e.showAction,p=e.hideAction,S=e.overlayClassName,C=e.overlayStyle,x=e.visible,w=e.trigger,$=w===void 0?["hover"]:w,E=e.autoFocus,P=e.overlay,M=e.children,O=e.onVisibleChange,T=Ue(e,Mre),N=Q.useState(),D=fe(N,2),L=D[0],_=D[1],F="visible"in e?x:L,j=Q.useRef(null),k=Q.useRef(null),z=Q.useRef(null);Q.useImperativeHandle(t,function(){return j.current});var V=function(ee){_(ee),O?.(ee)};Ore({visible:F,triggerRef:z,onVisibleChange:V,autoFocus:E,overlayRef:k});var H=function(ee){var re=e.onOverlayClick;_(!1),re&&re(ee)},B=function(){return Q.createElement(Rre,{ref:k,overlay:P,prefixCls:i,arrow:a})},K=function(){return typeof P=="function"?B:B()},W=function(){var ee=e.minOverlayWidthMatchTrigger,re=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?ee:!re},G=function(){var ee=e.openClassName;return ee!==void 0?ee:"".concat(i,"-open")},X=Q.cloneElement(M,{className:le((n=M.props)===null||n===void 0?void 0:n.className,F&&G()),ref:ni(M)?wr(z,ns(M)):void 0}),Y=p;return!Y&&$.indexOf("contextMenu")!==-1&&(Y=["click"]),Q.createElement(yv,xe({builtinPlacements:g},T,{prefixCls:i,ref:j,popupClassName:le(S,q({},"".concat(i,"-show-arrow"),a)),popupStyle:C,action:$,showAction:b,hideAction:Y,popupPlacement:f,popupAlign:u,popupTransitionName:l,popupAnimation:c,popupVisible:F,stretch:W()?"minWidth":"",popup:K(),onPopupVisibleChange:V,onPopupClick:H,getPopupContainer:h}),X)}const Ik=Q.forwardRef(Tre),Nre=e=>typeof e!="object"&&typeof e!="function"||e===null;var Mk=s.createContext(null);function Tk(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function Nk(e){var t=s.useContext(Mk);return Tk(t,e)}var _re=["children","locked"],ii=s.createContext(null);function jre(e,t){var n=R({},e);return Object.keys(t).forEach(function(r){var a=t[r];a!==void 0&&(n[r]=a)}),n}function Kf(e){var t=e.children,n=e.locked,r=Ue(e,_re),a=s.useContext(ii),o=$i(function(){return jre(a,r)},[a,r],function(i,l){return!n&&(i[0]!==l[0]||!Ma(i[1],l[1],!0))});return s.createElement(ii.Provider,{value:o},t)}var Dre=[],_k=s.createContext(null);function Vh(){return s.useContext(_k)}var jk=s.createContext(Dre);function Gu(e){var t=s.useContext(jk);return s.useMemo(function(){return e!==void 0?[].concat(Te(t),[e]):t},[t,e])}var Dk=s.createContext(null),BE=s.createContext({});function l8(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Vu(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),a=e.getAttribute("tabindex"),o=Number(a),i=null;return a&&!Number.isNaN(o)?i=o:r&&i===null&&(i=0),r&&e.disabled&&(i=null),i!==null&&(i>=0||t&&i<0)}return!1}function Fre(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Te(e.querySelectorAll("*")).filter(function(r){return l8(r,t)});return l8(e,t)&&n.unshift(e),n}var Nw=lt.LEFT,_w=lt.RIGHT,jw=lt.UP,Qg=lt.DOWN,Zg=lt.ENTER,Fk=lt.ESC,Gd=lt.HOME,Xd=lt.END,s8=[jw,Qg,Nw,_w];function kre(e,t,n,r){var a,o="prev",i="next",l="children",c="parent";if(e==="inline"&&r===Zg)return{inlineTrigger:!0};var u=q(q({},jw,o),Qg,i),d=q(q(q(q({},Nw,n?i:o),_w,n?o:i),Qg,l),Zg,l),f=q(q(q(q(q(q({},jw,o),Qg,i),Zg,l),Fk,c),Nw,n?l:c),_w,n?c:l),m={inline:u,horizontal:d,vertical:f,inlineSub:u,horizontalSub:f,verticalSub:f},g=(a=m["".concat(e).concat(t?"":"Sub")])===null||a===void 0?void 0:a[r];switch(g){case o:return{offset:-1,sibling:!0};case i:return{offset:1,sibling:!0};case c:return{offset:-1,sibling:!1};case l:return{offset:1,sibling:!1};default:return null}}function Lre(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function zre(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function HE(e,t){var n=Fre(e,!0);return n.filter(function(r){return t.has(r)})}function c8(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var a=HE(e,t),o=a.length,i=a.findIndex(function(l){return n===l});return r<0?i===-1?i=o-1:i-=1:r>0&&(i+=1),i=(i+o)%o,a[i]}var Dw=function(t,n){var r=new Set,a=new Map,o=new Map;return t.forEach(function(i){var l=document.querySelector("[data-menu-id='".concat(Tk(n,i),"']"));l&&(r.add(l),o.set(l,i),a.set(i,l))}),{elements:r,key2element:a,element2key:o}};function Are(e,t,n,r,a,o,i,l,c,u){var d=s.useRef(),f=s.useRef();f.current=t;var m=function(){ln.cancel(d.current)};return s.useEffect(function(){return function(){m()}},[]),function(g){var h=g.which;if([].concat(s8,[Zg,Fk,Gd,Xd]).includes(h)){var b=o(),p=Dw(b,r),S=p,C=S.elements,x=S.key2element,w=S.element2key,$=x.get(t),E=zre($,C),P=w.get(E),M=kre(e,i(P,!0).length===1,n,h);if(!M&&h!==Gd&&h!==Xd)return;(s8.includes(h)||[Gd,Xd].includes(h))&&g.preventDefault();var O=function(k){if(k){var z=k,V=k.querySelector("a");V!=null&&V.getAttribute("href")&&(z=V);var H=w.get(k);l(H),m(),d.current=ln(function(){f.current===H&&z.focus()})}};if([Gd,Xd].includes(h)||M.sibling||!E){var T;!E||e==="inline"?T=a.current:T=Lre(E);var N,D=HE(T,C);h===Gd?N=D[0]:h===Xd?N=D[D.length-1]:N=c8(T,C,E,M.offset),O(N)}else if(M.inlineTrigger)c(P);else if(M.offset>0)c(P,!0),m(),d.current=ln(function(){p=Dw(b,r);var j=E.getAttribute("aria-controls"),k=document.getElementById(j),z=c8(k,p.elements);O(z)},5);else if(M.offset<0){var L=i(P,!0),_=L[L.length-2],F=x.get(_);c(_,!1),O(F)}}u?.(g)}}function Bre(e){Promise.resolve().then(e)}var VE="__RC_UTIL_PATH_SPLIT__",u8=function(t){return t.join(VE)},Hre=function(t){return t.split(VE)},Fw="rc-menu-more";function Vre(){var e=s.useState({}),t=fe(e,2),n=t[1],r=s.useRef(new Map),a=s.useRef(new Map),o=s.useState([]),i=fe(o,2),l=i[0],c=i[1],u=s.useRef(0),d=s.useRef(!1),f=function(){d.current||n({})},m=s.useCallback(function(x,w){var $=u8(w);a.current.set($,x),r.current.set(x,$),u.current+=1;var E=u.current;Bre(function(){E===u.current&&f()})},[]),g=s.useCallback(function(x,w){var $=u8(w);a.current.delete($),r.current.delete(x)},[]),h=s.useCallback(function(x){c(x)},[]),b=s.useCallback(function(x,w){var $=r.current.get(x)||"",E=Hre($);return w&&l.includes(E[0])&&E.unshift(Fw),E},[l]),p=s.useCallback(function(x,w){return x.filter(function($){return $!==void 0}).some(function($){var E=b($,!0);return E.includes(w)})},[b]),S=function(){var w=Te(r.current.keys());return l.length&&w.push(Fw),w},C=s.useCallback(function(x){var w="".concat(r.current.get(x)).concat(VE),$=new Set;return Te(a.current.keys()).forEach(function(E){E.startsWith(w)&&$.add(a.current.get(E))}),$},[]);return s.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:m,unregisterPath:g,refreshOverflowKeys:h,isSubPathKey:p,getKeyPath:b,getKeys:S,getSubPathKeys:C}}function lf(e){var t=s.useRef(e);t.current=e;var n=s.useCallback(function(){for(var r,a=arguments.length,o=new Array(a),i=0;i1&&(C.motionAppear=!1);var x=C.onVisibleChanged;return C.onVisibleChanged=function(w){return!m.current&&!w&&p(!0),x?.(w)},b?null:s.createElement(Kf,{mode:o,locked:!m.current},s.createElement(Nr,xe({visible:S},C,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),function(w){var $=w.className,E=w.style;return s.createElement(WE,{id:t,className:$,style:E},a)}))}var iae=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],lae=["active"],sae=s.forwardRef(function(e,t){var n=e.style,r=e.className,a=e.title,o=e.eventKey;e.warnKey;var i=e.disabled,l=e.internalPopupClose,c=e.children,u=e.itemIcon,d=e.expandIcon,f=e.popupClassName,m=e.popupOffset,g=e.popupStyle,h=e.onClick,b=e.onMouseEnter,p=e.onMouseLeave,S=e.onTitleClick,C=e.onTitleMouseEnter,x=e.onTitleMouseLeave,w=Ue(e,iae),$=Nk(o),E=s.useContext(ii),P=E.prefixCls,M=E.mode,O=E.openKeys,T=E.disabled,N=E.overflowDisabled,D=E.activeKey,L=E.selectedKeys,_=E.itemIcon,F=E.expandIcon,j=E.onItemClick,k=E.onOpenChange,z=E.onActive,V=s.useContext(BE),H=V._internalRenderSubMenuItem,B=s.useContext(Dk),K=B.isSubPathKey,W=Gu(),G="".concat(P,"-submenu"),X=T||i,Y=s.useRef(),Z=s.useRef(),ee=u??_,re=d??F,ne=O.includes(o),se=!N&&ne,oe=K(L,o),me=kk(o,X,C,x),ue=me.active,de=Ue(me,lae),ae=s.useState(!1),ie=fe(ae,2),ge=ie[0],pe=ie[1],be=function($e){X||pe($e)},ve=function($e){be(!0),b?.({key:o,domEvent:$e})},Ce=function($e){be(!1),p?.({key:o,domEvent:$e})},he=s.useMemo(function(){return ue||(M!=="inline"?ge||K([D],o):!1)},[M,ue,D,ge,o,K]),Se=Lk(W.length),Ee=function($e){X||(S?.({key:o,domEvent:$e}),M==="inline"&&k(o,!ne))},Oe=lf(function(Be){h?.(Rp(Be)),j(Be)}),We=function($e){M!=="inline"&&k(o,$e)},je=function(){z(o)},De=$&&"".concat($,"-popup"),ke=s.useMemo(function(){return s.createElement(zk,{icon:M!=="horizontal"?re:void 0,props:R(R({},e),{},{isOpen:se,isSubMenu:!0})},s.createElement("i",{className:"".concat(G,"-arrow")}))},[M,re,e,se,G]),_e=s.createElement("div",xe({role:"menuitem",style:Se,className:"".concat(G,"-title"),tabIndex:X?null:-1,ref:Y,title:typeof a=="string"?a:null,"data-menu-id":N&&$?null:$,"aria-expanded":se,"aria-haspopup":!0,"aria-controls":De,"aria-disabled":X,onClick:Ee,onFocus:je},de),a,ke),Re=s.useRef(M);if(M!=="inline"&&W.length>1?Re.current="vertical":Re.current=M,!N){var Le=Re.current;_e=s.createElement(aae,{mode:Le,prefixCls:G,visible:!l&&se&&M!=="inline",popupClassName:f,popupOffset:m,popupStyle:g,popup:s.createElement(Kf,{mode:Le==="horizontal"?"vertical":Le},s.createElement(WE,{id:De,ref:Z},c)),disabled:X,onVisibleChange:We},_e)}var Me=s.createElement(ei.Item,xe({ref:t,role:"none"},w,{component:"li",style:n,className:le(G,"".concat(G,"-").concat(M),r,q(q(q(q({},"".concat(G,"-open"),se),"".concat(G,"-active"),he),"".concat(G,"-selected"),oe),"".concat(G,"-disabled"),X)),onMouseEnter:ve,onMouseLeave:Ce}),_e,!N&&s.createElement(oae,{id:De,open:se,keyPath:W},c));return H&&(Me=H(Me,e,{selected:oe,active:he,open:se,disabled:X})),s.createElement(Kf,{onItemClick:Oe,mode:M==="horizontal"?"vertical":M,itemIcon:ee,expandIcon:re},Me)}),Wh=s.forwardRef(function(e,t){var n=e.eventKey,r=e.children,a=Gu(n),o=KE(r,a),i=Vh();s.useEffect(function(){if(i)return i.registerPath(n,a),function(){i.unregisterPath(n,a)}},[a]);var l;return i?l=o:l=s.createElement(sae,xe({ref:t},e),o),s.createElement(jk.Provider,{value:a},l)});function qE(e){var t=e.className,n=e.style,r=s.useContext(ii),a=r.prefixCls,o=Vh();return o?null:s.createElement("li",{role:"separator",className:le("".concat(a,"-item-divider"),t),style:n})}var cae=["className","title","eventKey","children"],uae=s.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var a=e.children,o=Ue(e,cae),i=s.useContext(ii),l=i.prefixCls,c="".concat(l,"-item-group");return s.createElement("li",xe({ref:t,role:"presentation"},o,{onClick:function(d){return d.stopPropagation()},className:le(c,n)}),s.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:typeof r=="string"?r:void 0},r),s.createElement("ul",{role:"group",className:"".concat(c,"-list")},a))}),UE=s.forwardRef(function(e,t){var n=e.eventKey,r=e.children,a=Gu(n),o=KE(r,a),i=Vh();return i?o:s.createElement(uae,xe({ref:t},Qt(e,["warnKey"])),o)}),dae=["label","children","key","type","extra"];function kw(e,t,n){var r=t.item,a=t.group,o=t.submenu,i=t.divider;return(e||[]).map(function(l,c){if(l&&st(l)==="object"){var u=l,d=u.label,f=u.children,m=u.key,g=u.type,h=u.extra,b=Ue(u,dae),p=m??"tmp-".concat(c);return f||g==="group"?g==="group"?s.createElement(a,xe({key:p},b,{title:d}),kw(f,t,n)):s.createElement(o,xe({key:p},b,{title:d}),kw(f,t,n)):g==="divider"?s.createElement(i,xe({key:p},b)):s.createElement(r,xe({key:p},b,{extra:h}),d,(!!h||h===0)&&s.createElement("span",{className:"".concat(n,"-item-extra")},h))}return null}).filter(function(l){return l})}function f8(e,t,n,r,a){var o=e,i=R({divider:qE,item:xv,group:UE,submenu:Wh},r);return t&&(o=kw(t,i,a)),KE(o,n)}var fae=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],$s=[],vae=s.forwardRef(function(e,t){var n,r=e,a=r.prefixCls,o=a===void 0?"rc-menu":a,i=r.rootClassName,l=r.style,c=r.className,u=r.tabIndex,d=u===void 0?0:u,f=r.items,m=r.children,g=r.direction,h=r.id,b=r.mode,p=b===void 0?"vertical":b,S=r.inlineCollapsed,C=r.disabled,x=r.disabledOverflow,w=r.subMenuOpenDelay,$=w===void 0?.1:w,E=r.subMenuCloseDelay,P=E===void 0?.1:E,M=r.forceSubMenuRender,O=r.defaultOpenKeys,T=r.openKeys,N=r.activeKey,D=r.defaultActiveFirst,L=r.selectable,_=L===void 0?!0:L,F=r.multiple,j=F===void 0?!1:F,k=r.defaultSelectedKeys,z=r.selectedKeys,V=r.onSelect,H=r.onDeselect,B=r.inlineIndent,K=B===void 0?24:B,W=r.motion,G=r.defaultMotions,X=r.triggerSubMenuAction,Y=X===void 0?"hover":X,Z=r.builtinPlacements,ee=r.itemIcon,re=r.expandIcon,ne=r.overflowedIndicator,se=ne===void 0?"...":ne,oe=r.overflowedIndicatorPopupClassName,me=r.getPopupContainer,ue=r.onClick,de=r.onOpenChange,ae=r.onKeyDown;r.openAnimation,r.openTransitionName;var ie=r._internalRenderMenuItem,ge=r._internalRenderSubMenuItem,pe=r._internalComponents,be=Ue(r,fae),ve=s.useMemo(function(){return[f8(m,f,$s,pe,o),f8(m,f,$s,{},o)]},[m,f,pe]),Ce=fe(ve,2),he=Ce[0],Se=Ce[1],Ee=s.useState(!1),Oe=fe(Ee,2),We=Oe[0],je=Oe[1],De=s.useRef(),ke=Kre(h),_e=g==="rtl",Re=Tt(O,{value:T,postState:function(Vt){return Vt||$s}}),Le=fe(Re,2),Me=Le[0],Be=Le[1],$e=function(Vt){var zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Pn(){Be(Vt),de?.(Vt)}zt?kr.flushSync(Pn):Pn()},we=s.useState(Me),Ie=fe(we,2),Fe=Ie[0],Ge=Ie[1],et=s.useRef(!1),Ke=s.useMemo(function(){return(p==="inline"||p==="vertical")&&S?["vertical",S]:[p,!1]},[p,S]),Ye=fe(Ke,2),tt=Ye[0],rt=Ye[1],ct=tt==="inline",Ct=s.useState(tt),yt=fe(Ct,2),dt=yt[0],vt=yt[1],bt=s.useState(rt),ze=fe(bt,2),Ve=ze[0],Pe=ze[1];s.useEffect(function(){vt(tt),Pe(rt),et.current&&(ct?Be(Fe):$e($s))},[tt,rt]);var He=s.useState(0),Ze=fe(He,2),at=Ze[0],Nt=Ze[1],pt=at>=he.length-1||dt!=="horizontal"||x;s.useEffect(function(){ct&&Ge(Me)},[Me]),s.useEffect(function(){return et.current=!0,function(){et.current=!1}},[]);var mt=Vre(),jt=mt.registerPath,Kt=mt.unregisterPath,cn=mt.refreshOverflowKeys,tn=mt.isSubPathKey,Bt=mt.getKeyPath,It=mt.getKeys,Wt=mt.getSubPathKeys,ot=s.useMemo(function(){return{registerPath:jt,unregisterPath:Kt}},[jt,Kt]),Et=s.useMemo(function(){return{isSubPathKey:tn}},[tn]);s.useEffect(function(){cn(pt?$s:he.slice(at+1).map(function(On){return On.key}))},[at,pt]);var gt=Tt(N||D&&((n=he[0])===null||n===void 0?void 0:n.key),{value:N}),Xe=fe(gt,2),it=Xe[0],ft=Xe[1],_t=lf(function(On){ft(On)}),Yt=lf(function(){ft(void 0)});s.useImperativeHandle(t,function(){return{list:De.current,focus:function(Vt){var zt,Pn=It(),kt=Dw(Pn,ke),Lt=kt.elements,Cn=kt.key2element,Wn=kt.element2key,Un=HE(De.current,Lt),bn=it??(Un[0]?Wn.get(Un[0]):(zt=he.find(function(hn){return!hn.props.disabled}))===null||zt===void 0?void 0:zt.key),dr=Cn.get(bn);if(bn&&dr){var $r;dr==null||($r=dr.focus)===null||$r===void 0||$r.call(dr,Vt)}}}});var St=Tt(k||[],{value:z,postState:function(Vt){return Array.isArray(Vt)?Vt:Vt==null?$s:[Vt]}}),Mt=fe(St,2),Ht=Mt[0],vn=Mt[1],En=function(Vt){if(_){var zt=Vt.key,Pn=Ht.includes(zt),kt;j?Pn?kt=Ht.filter(function(Cn){return Cn!==zt}):kt=[].concat(Te(Ht),[zt]):kt=[zt],vn(kt);var Lt=R(R({},Vt),{},{selectedKeys:kt});Pn?H?.(Lt):V?.(Lt)}!j&&Me.length&&dt!=="inline"&&$e($s)},pn=lf(function(On){ue?.(Rp(On)),En(On)}),Zn=lf(function(On,Vt){var zt=Me.filter(function(kt){return kt!==On});if(Vt)zt.push(On);else if(dt!=="inline"){var Pn=Wt(On);zt=zt.filter(function(kt){return!Pn.has(kt)})}Ma(Me,zt,!0)||$e(zt,!0)}),Jn=function(Vt,zt){var Pn=zt??!Me.includes(Vt);Zn(Vt,Pn)},Ir=Are(dt,it,_e,ke,De,It,Bt,ft,Jn,ae);s.useEffect(function(){je(!0)},[]);var ur=s.useMemo(function(){return{_internalRenderMenuItem:ie,_internalRenderSubMenuItem:ge}},[ie,ge]),hr=dt!=="horizontal"||x?he:he.map(function(On,Vt){return s.createElement(Kf,{key:On.key,overflowDisabled:Vt>at},On)}),or=s.createElement(ei,xe({id:h,ref:De,prefixCls:"".concat(o,"-overflow"),component:"ul",itemComponent:xv,className:le(o,"".concat(o,"-root"),"".concat(o,"-").concat(dt),c,q(q({},"".concat(o,"-inline-collapsed"),Ve),"".concat(o,"-rtl"),_e),i),dir:g,style:l,role:"menu",tabIndex:d,data:hr,renderRawItem:function(Vt){return Vt},renderRawRest:function(Vt){var zt=Vt.length,Pn=zt?he.slice(-zt):null;return s.createElement(Wh,{eventKey:Fw,title:se,disabled:pt,internalPopupClose:zt===0,popupClassName:oe},Pn)},maxCount:dt!=="horizontal"||x?ei.INVALIDATE:ei.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Vt){Nt(Vt)},onKeyDown:Ir},be));return s.createElement(BE.Provider,{value:ur},s.createElement(Mk.Provider,{value:ke},s.createElement(Kf,{prefixCls:o,rootClassName:i,mode:dt,openKeys:Me,rtl:_e,disabled:C,motion:We?W:null,defaultMotions:We?G:null,activeKey:it,onActive:_t,onInactive:Yt,selectedKeys:Ht,inlineIndent:K,subMenuOpenDelay:$,subMenuCloseDelay:P,forceSubMenuRender:M,builtinPlacements:Z,triggerSubMenuAction:Y,getPopupContainer:me,itemIcon:ee,expandIcon:re,onItemClick:pn,onOpenChange:Zn},s.createElement(Dk.Provider,{value:Et},or),s.createElement("div",{style:{display:"none"},"aria-hidden":!0},s.createElement(_k.Provider,{value:ot},Se)))))}),Xu=vae;Xu.Item=xv;Xu.SubMenu=Wh;Xu.ItemGroup=UE;Xu.Divider=qE;var mae={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"},gae=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:mae}))},pae=s.forwardRef(gae);const Bk=s.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),hae=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:a,headerHeight:o,headerPadding:i,headerColor:l,footerPadding:c,fontSize:u,bodyBg:d,headerBg:f}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:d,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:o,padding:i,color:l,lineHeight:ce(o),background:f,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:c,color:r,fontSize:u,background:a},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},Hk=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:a,controlHeightSM:o,marginXXS:i,colorTextLightSolid:l,colorBgContainer:c}=e,u=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${u}px`,headerColor:a,footerPadding:`${o}px ${u}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+i*2,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:a}},Vk=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],Wk=rn("Layout",hae,Hk,{deprecatedTokens:Vk}),bae=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:a,antCls:o,triggerHeight:i,triggerColor:l,triggerBg:c,headerHeight:u,zeroTriggerWidth:d,zeroTriggerHeight:f,borderRadiusLG:m,lightSiderBg:g,lightTriggerColor:h,lightTriggerBg:b,bodyBg:p}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:i},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${o}-menu${o}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:i,color:l,lineHeight:ce(i),textAlign:"center",background:c,cursor:"pointer",transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:u,insetInlineEnd:e.calc(d).mul(-1).equal(),zIndex:1,width:d,height:f,color:l,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${ce(m)} ${ce(m)} 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:e.calc(d).mul(-1).equal(),borderRadius:`${ce(m)} 0 0 ${ce(m)}`}},"&-light":{background:g,[`${t}-trigger`]:{color:h,background:b},[`${t}-zero-width-trigger`]:{color:h,background:b,border:`1px solid ${p}`,borderInlineStart:0}}}}},yae=rn(["Layout","Sider"],bae,Hk,{deprecatedTokens:Vk});var Cae=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),Kh=s.createContext({}),xae=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),Kk=s.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:a,children:o,defaultCollapsed:i=!1,theme:l="dark",style:c={},collapsible:u=!1,reverseArrow:d=!1,width:f=200,collapsedWidth:m=80,zeroWidthTriggerStyle:g,breakpoint:h,onCollapse:b,onBreakpoint:p}=e,S=Cae(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:C}=s.useContext(Bk),[x,w]=s.useState("collapsed"in e?e.collapsed:i),[$,E]=s.useState(!1);s.useEffect(()=>{"collapsed"in e&&w(e.collapsed)},[e.collapsed]);const P=(ee,re)=>{"collapsed"in e||w(ee),b?.(ee,re)},{getPrefixCls:M,direction:O}=s.useContext(Ot),T=M("layout-sider",n),[N,D,L]=yae(T),_=s.useRef(null);_.current=ee=>{E(ee.matches),p?.(ee.matches),x!==ee.matches&&P(ee.matches,"responsive")},s.useEffect(()=>{function ee(ne){var se;return(se=_.current)===null||se===void 0?void 0:se.call(_,ne)}let re;return typeof window?.matchMedia<"u"&&h&&h in v8&&(re=window.matchMedia(`screen and (max-width: ${v8[h]})`),vk(re,ee),ee(re)),()=>{mk(re,ee)}},[h]),s.useEffect(()=>{const ee=xae("ant-sider-");return C.addSider(ee),()=>C.removeSider(ee)},[]);const F=()=>{P(!x,"clickTrigger")},j=Qt(S,["collapsed"]),k=x?m:f,z=Sae(k)?`${k}px`:String(k),V=Number.parseFloat(String(m||0))===0?s.createElement("span",{onClick:F,className:le(`${T}-zero-width-trigger`,`${T}-zero-width-trigger-${d?"right":"left"}`),style:g},a||s.createElement(pae,null)):null,H=O==="rtl"==!d,W={expanded:H?s.createElement(Na,null):s.createElement(oi,null),collapsed:H?s.createElement(oi,null):s.createElement(Na,null)}[x?"collapsed":"expanded"],G=a!==null?V||s.createElement("div",{className:`${T}-trigger`,onClick:F,style:{width:z}},a||W):null,X=Object.assign(Object.assign({},c),{flex:`0 0 ${z}`,maxWidth:z,minWidth:z,width:z}),Y=le(T,`${T}-${l}`,{[`${T}-collapsed`]:!!x,[`${T}-has-trigger`]:u&&a!==null&&!V,[`${T}-below`]:!!$,[`${T}-zero-width`]:Number.parseFloat(z)===0},r,D,L),Z=s.useMemo(()=>({siderCollapsed:x}),[x]);return N(s.createElement(Kh.Provider,{value:Z},s.createElement("aside",Object.assign({className:Y},j,{style:X,ref:t}),s.createElement("div",{className:`${T}-children`},o),u||$&&V?G:null)))});var wae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},$ae=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:wae}))},qh=s.forwardRef($ae);const Ip=s.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var Eae=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,className:n,dashed:r}=e,a=Eae(e,["prefixCls","className","dashed"]),{getPrefixCls:o}=s.useContext(Ot),i=o("menu",t),l=le({[`${i}-item-divider-dashed`]:!!r},n);return s.createElement(qE,Object.assign({className:l},a))},Uk=e=>{var t;const{className:n,children:r,icon:a,title:o,danger:i,extra:l}=e,{prefixCls:c,firstLevel:u,direction:d,disableMenuItemTitleTooltip:f,inlineCollapsed:m}=s.useContext(Ip),g=x=>{const w=r?.[0],$=s.createElement("span",{className:le(`${c}-title-content`,{[`${c}-title-content-with-extra`]:!!l||l===0})},r);return(!a||s.isValidElement(r)&&r.type==="span")&&r&&x&&u&&typeof w=="string"?s.createElement("div",{className:`${c}-inline-collapsed-noicon`},w.charAt(0)):$},{siderCollapsed:h}=s.useContext(Kh);let b=o;typeof o>"u"?b=u?r:"":o===!1&&(b="");const p={title:b};!h&&!m&&(p.title=null,p.open=!1);const S=Xn(r).length;let C=s.createElement(xv,Object.assign({},Qt(e,["title","icon","danger"]),{className:le({[`${c}-item-danger`]:i,[`${c}-item-only-child`]:(a?S+1:S)===1},n),title:typeof o=="string"?o:void 0}),xr(a,{className:le(s.isValidElement(a)?(t=a.props)===null||t===void 0?void 0:t.className:void 0,`${c}-item-icon`)}),g(m));return f||(C=s.createElement(tr,Object.assign({},p,{placement:d==="rtl"?"left":"right",classNames:{root:`${c}-inline-collapsed-tooltip`}}),C)),C};var Pae=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{children:n}=e,r=Pae(e,["children"]),a=s.useContext(Mp),o=s.useMemo(()=>Object.assign(Object.assign({},a),r),[a,r.prefixCls,r.mode,r.selectable,r.rootClassName]),i=CK(n),l=Ti(t,i?ns(n):null);return s.createElement(Mp.Provider,{value:o},s.createElement(Do,{space:!0},i?s.cloneElement(n,{ref:l}):n))}),Oae=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:a,lineWidth:o,lineType:i,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${ce(o)} ${i} ${a}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover, - > ${t}-item-active, - > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},Rae=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical, - ${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${ce(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${ce(t)})`}}}}),m8=e=>jo(e),g8=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:a,subMenuItemSelectedColor:o,groupTitleColor:i,itemBg:l,subMenuItemBg:c,itemSelectedBg:u,activeBarHeight:d,activeBarWidth:f,activeBarBorderWidth:m,motionDurationSlow:g,motionEaseInOut:h,motionEaseOut:b,itemPaddingInline:p,motionDurationMid:S,itemHoverColor:C,lineType:x,colorSplit:w,itemDisabledColor:$,dangerItemColor:E,dangerItemHoverColor:P,dangerItemSelectedColor:M,dangerItemActiveBg:O,dangerItemSelectedBg:T,popupBg:N,itemHoverBg:D,itemActiveBg:L,menuSubMenuBg:_,horizontalItemSelectedColor:F,horizontalItemSelectedBg:j,horizontalItemBorderRadius:k,horizontalItemHoverBg:z}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:l,[`&${n}-root:focus-visible`]:Object.assign({},m8(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:i}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:o},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},m8(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${$} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:C}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:D},"&:active":{backgroundColor:L}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:D},"&:active":{backgroundColor:L}}},[`${n}-item-danger`]:{color:E,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:P}},[`&${n}-item:active`]:{background:O}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:a,[`&${n}-item-danger`]:{color:M},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:u,[`&${n}-item-danger`]:{backgroundColor:T}},[`&${n}-submenu > ${n}`]:{backgroundColor:_},[`&${n}-popup > ${n}`]:{backgroundColor:N},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:N},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:m,marginTop:e.calc(m).mul(-1).equal(),marginBottom:0,borderRadius:k,"&::after":{position:"absolute",insetInline:p,bottom:0,borderBottom:`${ce(d)} solid transparent`,transition:`border-color ${g} ${h}`,content:'""'},"&:hover, &-active, &-open":{background:z,"&::after":{borderBottomWidth:d,borderBottomColor:F}},"&-selected":{color:F,backgroundColor:j,"&:hover":{backgroundColor:j},"&::after":{borderBottomWidth:d,borderBottomColor:F}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${ce(m)} ${x} ${w}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:c},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ce(f)} solid ${a}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${S} ${b}`,`opacity ${S} ${b}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:M}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${S} ${h}`,`opacity ${S} ${h}`].join(",")}}}}}},p8=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:a,menuArrowSize:o,marginXS:i,itemMarginBlock:l,itemWidth:c,itemPaddingInline:u}=e,d=e.calc(o).add(a).add(i).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:ce(n),paddingInline:u,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:c},[`> ${t}-item, - > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:ce(n)},[`${t}-item-group-list ${t}-submenu-title, - ${t}-submenu-title`]:{paddingInlineEnd:d}}},Iae=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:a,dropdownWidth:o,controlHeightLG:i,motionEaseOut:l,paddingXL:c,itemMarginInline:u,fontSizeLG:d,motionDurationFast:f,motionDurationSlow:m,paddingXS:g,boxShadowSecondary:h,collapsedWidth:b,collapsedIconSize:p}=e,S={height:r,lineHeight:ce(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},p8(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},p8(e)),{boxShadow:h})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:o,maxHeight:`calc(100vh - ${ce(e.calc(i).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${m}`,`background ${m}`,`padding ${f} ${l}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:S,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:S}},{[`${t}-inline-collapsed`]:{width:b,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item, - > ${t}-item-group > ${t}-item-group-list > ${t}-item, - > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title, - > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${ce(e.calc(p).div(2).equal())} - ${ce(u)})`,textOverflow:"clip",[` - ${t}-submenu-arrow, - ${t}-submenu-expand-icon - `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:p,lineHeight:ce(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:a}},[`${t}-item-group-title`]:Object.assign(Object.assign({},ra),{paddingInline:g})}}]},h8=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:a,motionEaseOut:o,iconCls:i,iconSize:l,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${a}`].join(","),[`${t}-item-icon, ${i}`]:{minWidth:l,fontSize:l,transition:[`font-size ${r} ${o}`,`margin ${n} ${a}`,`color ${n}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${a}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},rs()),[`&${t}-item-only-child`]:{[`> ${i}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},b8=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:a,menuArrowSize:o,menuArrowOffset:i}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:o,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(o).mul(.6).equal(),height:e.calc(o).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:a,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${ce(e.calc(i).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${ce(i)})`}}}}},Mae=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:a,motionDurationMid:o,motionEaseInOut:i,paddingXS:l,padding:c,colorSplit:u,lineWidth:d,zIndexPopup:f,borderRadiusLG:m,subMenuItemBorderRadius:g,menuArrowSize:h,menuArrowOffset:b,lineType:p,groupTitleLineHeight:S,groupTitleFontSize:C}=e;return[{"":{[n]:Object.assign(Object.assign({},Ei()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},fn(e)),Ei()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${a} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${ce(l)} ${ce(c)}`,fontSize:C,lineHeight:S,transition:`all ${a}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${a} ${i}`,`background ${a} ${i}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${a} ${i}`,`background ${a} ${i}`,`padding ${o} ${i}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${a} ${i}`,`padding ${a} ${i}`].join(",")},[`${n}-title-content`]:{transition:`color ${a}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:u,borderStyle:p,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),h8(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${ce(e.calc(r).mul(2).equal())} ${ce(c)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,borderRadius:m,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:m},h8(e)),b8(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:g},[`${n}-submenu-title::after`]:{transition:`transform ${a} ${i}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),b8(e)),{[`&-inline-collapsed ${n}-submenu-arrow, - &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${ce(b)})`},"&::after":{transform:`rotate(45deg) translateX(${ce(e.calc(b).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${ce(e.calc(h).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${ce(e.calc(b).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${ce(b)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},Tae=e=>{var t,n,r;const{colorPrimary:a,colorError:o,colorTextDisabled:i,colorErrorBg:l,colorText:c,colorTextDescription:u,colorBgContainer:d,colorFillAlter:f,colorFillContent:m,lineWidth:g,lineWidthBold:h,controlItemBgActive:b,colorBgTextHover:p,controlHeightLG:S,lineHeight:C,colorBgElevated:x,marginXXS:w,padding:$,fontSize:E,controlHeightSM:P,fontSizeLG:M,colorTextLightSolid:O,colorErrorHover:T}=e,N=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,D=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:g,L=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,_=new dn(O).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:a,horizontalItemHoverColor:a,colorGroupTitle:u,groupTitleColor:u,colorItemTextSelected:a,itemSelectedColor:a,subMenuItemSelectedColor:a,colorItemTextSelectedHorizontal:a,horizontalItemSelectedColor:a,colorItemBg:d,itemBg:d,colorItemBgHover:p,itemHoverBg:p,colorItemBgActive:m,itemActiveBg:b,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:b,itemSelectedBg:b,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:N,colorActiveBarHeight:h,activeBarHeight:h,colorActiveBarBorderSize:g,activeBarBorderWidth:D,colorItemTextDisabled:i,itemDisabledColor:i,colorDangerItemText:o,dangerItemColor:o,colorDangerItemTextHover:o,dangerItemHoverColor:o,colorDangerItemTextSelected:o,dangerItemSelectedColor:o,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:L,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:S,groupTitleLineHeight:C,collapsedWidth:S*2,popupBg:x,itemMarginBlock:w,itemPaddingInline:$,horizontalLineHeight:`${S*1.15}px`,iconSize:E,iconMarginInlineEnd:P-E,collapsedIconSize:M,groupTitleFontSize:E,darkItemDisabledColor:new dn(O).setA(.25).toRgbString(),darkItemColor:_,darkDangerItemColor:o,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:O,darkItemSelectedBg:a,darkDangerItemSelectedBg:o,darkItemHoverBg:"transparent",darkGroupTitleColor:_,darkItemHoverColor:O,darkDangerItemHoverColor:T,darkDangerItemSelectedColor:O,darkDangerItemActiveBg:o,itemWidth:N?`calc(100% + ${D}px)`:`calc(100% - ${L*2}px)`}},Nae=(e,t=e,n=!0)=>rn("Menu",a=>{const{colorBgElevated:o,controlHeightLG:i,fontSize:l,darkItemColor:c,darkDangerItemColor:u,darkItemBg:d,darkSubMenuItemBg:f,darkItemSelectedColor:m,darkItemSelectedBg:g,darkDangerItemSelectedBg:h,darkItemHoverBg:b,darkGroupTitleColor:p,darkItemHoverColor:S,darkItemDisabledColor:C,darkDangerItemHoverColor:x,darkDangerItemSelectedColor:w,darkDangerItemActiveBg:$,popupBg:E,darkPopupBg:P}=a,M=a.calc(l).div(7).mul(5).equal(),O=Xt(a,{menuArrowSize:M,menuHorizontalHeight:a.calc(i).mul(1.15).equal(),menuArrowOffset:a.calc(M).mul(.25).equal(),menuSubMenuBg:o,calc:a.calc,popupBg:E}),T=Xt(O,{itemColor:c,itemHoverColor:S,groupTitleColor:p,itemSelectedColor:m,subMenuItemSelectedColor:m,itemBg:d,popupBg:P,subMenuItemBg:f,itemActiveBg:"transparent",itemSelectedBg:g,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:b,itemDisabledColor:C,dangerItemColor:u,dangerItemHoverColor:x,dangerItemSelectedColor:w,dangerItemActiveBg:$,dangerItemSelectedBg:h,menuSubMenuBg:f,horizontalItemSelectedColor:m,horizontalItemSelectedBg:g});return[Mae(O),Oae(O),Iae(O),g8(O,"light"),g8(T,"dark"),Rae(O),vv(O),Pi(O,"slide-up"),Pi(O,"slide-down"),Wu(O,"zoom-big")]},Tae,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t),Xk=e=>{var t;const{popupClassName:n,icon:r,title:a,theme:o}=e,i=s.useContext(Ip),{prefixCls:l,inlineCollapsed:c,theme:u}=i,d=Gu();let f;if(!r)f=c&&!d.length&&a&&typeof a=="string"?s.createElement("div",{className:`${l}-inline-collapsed-noicon`},a.charAt(0)):s.createElement("span",{className:`${l}-title-content`},a);else{const h=s.isValidElement(a)&&a.type==="span";f=s.createElement(s.Fragment,null,xr(r,{className:le(s.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:void 0,`${l}-item-icon`)}),h?a:s.createElement("span",{className:`${l}-title-content`},a))}const m=s.useMemo(()=>Object.assign(Object.assign({},i),{firstLevel:!1}),[i]),[g]=Ua("Menu");return s.createElement(Ip.Provider,{value:m},s.createElement(Wh,Object.assign({},Qt(e,["icon"]),{title:f,popupClassName:le(l,n,`${l}-${o||u}`),popupStyle:Object.assign({zIndex:g},e.popupStyle)})))};var _ae=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const r=s.useContext(Mp),a=r||{},{getPrefixCls:o,getPopupContainer:i,direction:l,menu:c}=s.useContext(Ot),u=o(),{prefixCls:d,className:f,style:m,theme:g="light",expandIcon:h,_internalDisableMenuItemTitleTooltip:b,inlineCollapsed:p,siderCollapsed:S,rootClassName:C,mode:x,selectable:w,onClick:$,overflowedIndicatorPopupClassName:E}=e,P=_ae(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),M=Qt(P,["collapsedWidth"]);(n=a.validator)===null||n===void 0||n.call(a,{mode:x});const O=Gt((...K)=>{var W;$?.apply(void 0,K),(W=a.onClick)===null||W===void 0||W.call(a)}),T=a.mode||x,N=w??a.selectable,D=p??S,L={horizontal:{motionName:`${u}-slide-up`},inline:Eu(u),other:{motionName:`${u}-zoom-big`}},_=o("menu",d||a.prefixCls),F=zn(_),[j,k,z]=Nae(_,F,!r),V=le(`${_}-${g}`,c?.className,f),H=s.useMemo(()=>{var K,W;if(typeof h=="function"||a1(h))return h||null;if(typeof a.expandIcon=="function"||a1(a.expandIcon))return a.expandIcon||null;if(typeof c?.expandIcon=="function"||a1(c?.expandIcon))return c?.expandIcon||null;const G=(K=h??a?.expandIcon)!==null&&K!==void 0?K:c?.expandIcon;return xr(G,{className:le(`${_}-submenu-expand-icon`,s.isValidElement(G)?(W=G.props)===null||W===void 0?void 0:W.className:void 0)})},[h,a?.expandIcon,c?.expandIcon,_]),B=s.useMemo(()=>({prefixCls:_,inlineCollapsed:D||!1,direction:l,firstLevel:!0,theme:g,mode:T,disableMenuItemTitleTooltip:b}),[_,D,l,b,g]);return j(s.createElement(Mp.Provider,{value:null},s.createElement(Ip.Provider,{value:B},s.createElement(Xu,Object.assign({getPopupContainer:i,overflowedIndicator:s.createElement(qh,null),overflowedIndicatorPopupClassName:le(_,`${_}-${g}`,E),mode:T,selectable:N,onClick:O},M,{inlineCollapsed:D,style:Object.assign(Object.assign({},c?.style),m),className:V,prefixCls:_,direction:l,defaultMotions:L,expandIcon:H,ref:t,rootClassName:le(C,k,a.rootClassName,z,F),_internalComponents:jae})))))}),ec=s.forwardRef((e,t)=>{const n=s.useRef(null),r=s.useContext(Kh);return s.useImperativeHandle(t,()=>({menu:n.current,focus:a=>{var o;(o=n.current)===null||o===void 0||o.focus(a)}})),s.createElement(Dae,Object.assign({ref:n},e,r))});ec.Item=Uk;ec.SubMenu=Xk;ec.Divider=qk;ec.ItemGroup=UE;const Fae=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:a}=e,o=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${o}`]:{[`&${o}-danger:not(${o}-disabled)`]:{color:r,"&:hover":{color:a,backgroundColor:r}}}}}},kae=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:a,sizePopupArrow:o,antCls:i,iconCls:l,motionDurationMid:c,paddingBlock:u,fontSize:d,dropdownEdgeChildPadding:f,colorTextDisabled:m,fontSizeIcon:g,controlPaddingHorizontal:h,colorBgElevated:b}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(o).div(2).sub(a).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${i}-btn`]:{[`& > ${l}-down, & > ${i}-btn-icon > ${l}-down`]:{fontSize:g}},[`${t}-wrap`]:{position:"relative",[`${i}-btn > ${l}-down`]:{fontSize:g},[`${l}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomLeft, - &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomLeft, - &${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottom, - &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottom, - &${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomRight, - &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:$h},[`&${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topLeft, - &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topLeft, - &${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-top, - &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-top, - &${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topRight, - &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Ph},[`&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomLeft, - &${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottom, - &${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Eh},[`&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topLeft, - &${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-top, - &${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Oh}}},zE(e,b,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},fn(e)),{[n]:Object.assign(Object.assign({padding:f,listStyleType:"none",backgroundColor:b,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Ta(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${ce(u)} ${ce(h)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${ce(u)} ${ce(h)}`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Ta(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:m,cursor:"not-allowed","&:hover":{color:m,backgroundColor:b,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${ce(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorIcon,fontSize:g,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${ce(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(h).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:m,backgroundColor:b,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[Pi(e,"slide-up"),Pi(e,"slide-down"),Pu(e,"move-up"),Pu(e,"move-down"),Wu(e,"zoom-big")]]},Lae=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},Bh({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),Ah(e)),zae=rn("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:a}=e,o=Xt(e,{menuCls:`${a}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[kae(o),Fae(o)]},Lae,{resetStyle:!1}),wv=e=>{var t;const{menu:n,arrow:r,prefixCls:a,children:o,trigger:i,disabled:l,dropdownRender:c,popupRender:u,getPopupContainer:d,overlayClassName:f,rootClassName:m,overlayStyle:g,open:h,onOpenChange:b,visible:p,onVisibleChange:S,mouseEnterDelay:C=.15,mouseLeaveDelay:x=.1,autoAdjustOverflow:w=!0,placement:$="",overlay:E,transitionName:P,destroyOnHidden:M,destroyPopupOnHide:O}=e,{getPopupContainer:T,getPrefixCls:N,direction:D,dropdown:L}=s.useContext(Ot),_=u||c;Ni();const F=s.useMemo(()=>{const ie=N();return P!==void 0?P:$.includes("top")?`${ie}-slide-down`:`${ie}-slide-up`},[N,$,P]),j=s.useMemo(()=>$?$.includes("Center")?$.slice(0,$.indexOf("Center")):$:D==="rtl"?"bottomRight":"bottomLeft",[$,D]),k=N("dropdown",a),z=zn(k),[V,H,B]=zae(k,z),[,K]=Rr(),W=s.Children.only(Nre(o)?s.createElement("span",null,o):o),G=xr(W,{className:le(`${k}-trigger`,{[`${k}-rtl`]:D==="rtl"},W.props.className),disabled:(t=W.props.disabled)!==null&&t!==void 0?t:l}),X=l?[]:i,Y=!!X?.includes("contextMenu"),[Z,ee]=Tt(!1,{value:h??p}),re=Gt(ie=>{b?.(ie,{source:"trigger"}),S?.(ie),ee(ie)}),ne=le(f,m,H,B,z,L?.className,{[`${k}-rtl`]:D==="rtl"}),se=Ck({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:w,offset:K.marginXXS,arrowWidth:r?K.sizePopupArrow:0,borderRadius:K.borderRadius}),oe=Gt(()=>{n?.selectable&&n?.multiple||(b?.(!1,{source:"menu"}),ee(!1))}),me=()=>{let ie;return n?.items?ie=s.createElement(ec,Object.assign({},n)):typeof E=="function"?ie=E():ie=E,_&&(ie=_(ie)),ie=s.Children.only(typeof ie=="string"?s.createElement("span",null,ie):ie),s.createElement(Gk,{prefixCls:`${k}-menu`,rootClassName:le(B,z),expandIcon:s.createElement("span",{className:`${k}-menu-submenu-arrow`},D==="rtl"?s.createElement(oi,{className:`${k}-menu-submenu-arrow-icon`}):s.createElement(Na,{className:`${k}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:oe,validator:({mode:ge})=>{}},ie)},[ue,de]=Ua("Dropdown",g?.zIndex);let ae=s.createElement(Ik,Object.assign({alignPoint:Y},Qt(e,["rootClassName"]),{mouseEnterDelay:C,mouseLeaveDelay:x,visible:Z,builtinPlacements:se,arrow:!!r,overlayClassName:ne,prefixCls:k,getPopupContainer:d||T,transitionName:F,trigger:X,overlay:me,placement:j,onVisibleChange:re,overlayStyle:Object.assign(Object.assign(Object.assign({},L?.style),g),{zIndex:ue}),autoDestroy:M??O}),G);return ue&&(ae=s.createElement(uv.Provider,{value:de},ae)),V(ae)},Aae=is(wv,"align",void 0,"dropdown",e=>e),Bae=e=>s.createElement(Aae,Object.assign({},e),s.createElement("span",null));wv._InternalPanelDoNotUseOrYouWillBeFired=Bae;const Uh=({children:e})=>{const{getPrefixCls:t}=s.useContext(Ot),n=t("breadcrumb");return s.createElement("li",{className:`${n}-separator`,"aria-hidden":"true"},e===""?e:e||"/")};Uh.__ANT_BREADCRUMB_SEPARATOR=!0;var Hae=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);at[a]||r)}function Yk(e,t,n,r){if(n==null)return null;const{className:a,onClick:o}=t,i=Hae(t,["className","onClick"]),l=Object.assign(Object.assign({},Qn(i,{data:!0,aria:!0})),{onClick:o});return r!==void 0?s.createElement("a",Object.assign({},l,{className:le(`${e}-link`,a),href:r}),n):s.createElement("span",Object.assign({},l,{className:le(`${e}-link`,a)}),n)}function Wae(e,t){return(r,a,o,i,l)=>{if(t)return t(r,a,o,i);const c=Vae(r,a);return Yk(e,r,c,l)}}var Lw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,separator:n="/",children:r,menu:a,overlay:o,dropdownProps:i,href:l}=e,u=(d=>{if(a||o){const f=Object.assign({},i);if(a){const m=a||{},{items:g}=m,h=Lw(m,["items"]);f.menu=Object.assign(Object.assign({},h),{items:g?.map((b,p)=>{var{key:S,title:C,label:x,path:w}=b,$=Lw(b,["key","title","label","path"]);let E=x??C;return w&&(E=s.createElement("a",{href:`${l}${w}`},E)),Object.assign(Object.assign({},$),{key:S??p,label:E})})})}else o&&(f.overlay=o);return s.createElement(wv,Object.assign({placement:"bottom"},f),s.createElement("span",{className:`${t}-overlay-link`},d,s.createElement(Ri,null)))}return d})(r);return u!=null?s.createElement(s.Fragment,null,s.createElement("li",null,u),n&&s.createElement(Uh,null,n)):null},Zk=e=>{const{prefixCls:t,children:n,href:r}=e,a=Lw(e,["prefixCls","children","href"]),{getPrefixCls:o}=s.useContext(Ot),i=o("breadcrumb",t);return s.createElement(Qk,Object.assign({},a,{prefixCls:i}),Yk(i,a,n,r))};Zk.__ANT_BREADCRUMB_ITEM=!0;const Kae=e=>{const{componentCls:t,iconCls:n,calc:r}=e;return{[t]:Object.assign(Object.assign({},fn(e)),{color:e.itemColor,fontSize:e.fontSize,[n]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},[`a${t}-link, ${t}-link a`]:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${ce(e.paddingXXS)}`,borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",marginInline:r(e.marginXXS).mul(-1).equal(),"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},Ta(e)),"li:last-child":{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[` - > ${n} + span, - > ${n} + a - `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",padding:`0 ${ce(e.paddingXXS)}`,marginInline:r(e.marginXXS).mul(-1).equal(),[`> ${n}`]:{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"}})}},qae=e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}),Uae=rn("Breadcrumb",e=>{const t=Xt(e,{});return Kae(t)},qae);var y8=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{breadcrumbName:i}=o,l=y8(o,["breadcrumbName"]);return Object.assign(Object.assign({},l),{title:i})})}),a}function Xae(e,t){return s.useMemo(()=>e||(t?t.map(Gae):null),[e,t])}var Yae=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{if(t===void 0)return t;let n=(t||"").replace(/^\//,"");return Object.keys(e).forEach(r=>{n=n.replace(`:${r}`,e[r])}),n},Jk=e=>{const{prefixCls:t,separator:n="/",style:r,className:a,rootClassName:o,routes:i,items:l,children:c,itemRender:u,params:d={}}=e,f=Yae(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:m,direction:g,breadcrumb:h}=s.useContext(Ot);let b;const p=m("breadcrumb",t),[S,C,x]=Uae(p),w=Xae(l,i),$=Wae(p,u);if(w&&w.length>0){const M=[],O=l||i;b=w.map((T,N)=>{const{path:D,key:L,type:_,menu:F,overlay:j,onClick:k,className:z,separator:V,dropdownProps:H}=T,B=Qae(d,D);B!==void 0&&M.push(B);const K=L??N;if(_==="separator")return s.createElement(Uh,{key:K},V);const W={},G=N===w.length-1;F?W.menu=F:j&&(W.overlay=j);let{href:X}=T;return M.length&&B!==void 0&&(X=`#/${M.join("/")}`),s.createElement(Qk,Object.assign({key:K},W,Qn(T,{data:!0,aria:!0}),{className:z,dropdownProps:H,href:X,separator:G?"":n,onClick:k,prefixCls:p}),$(T,d,O,M,X))})}else if(c){const M=Xn(c).length;b=Xn(c).map((O,T)=>{if(!O)return O;const N=T===M-1;return xr(O,{separator:N?"":n,key:T})})}const E=le(p,h?.className,{[`${p}-rtl`]:g==="rtl"},a,o,C,x),P=Object.assign(Object.assign({},h?.style),r);return S(s.createElement("nav",Object.assign({className:E,style:P},f),s.createElement("ol",null,b)))};Jk.Item=Zk;Jk.Separator=Uh;var Jg={exports:{}},Zae=Jg.exports,C8;function eL(){return C8||(C8=1,(function(e,t){(function(n,r){e.exports=r()})(Zae,(function(){var n=1e3,r=6e4,a=36e5,o="millisecond",i="second",l="minute",c="hour",u="day",d="week",f="month",m="quarter",g="year",h="date",b="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,C={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(_){var F=["th","st","nd","rd"],j=_%100;return"["+_+(F[(j-20)%10]||F[j]||F[0])+"]"}},x=function(_,F,j){var k=String(_);return!k||k.length>=F?_:""+Array(F+1-k.length).join(j)+_},w={s:x,z:function(_){var F=-_.utcOffset(),j=Math.abs(F),k=Math.floor(j/60),z=j%60;return(F<=0?"+":"-")+x(k,2,"0")+":"+x(z,2,"0")},m:function _(F,j){if(F.date()1)return _(H[0])}else{var B=F.name;E[B]=F,z=B}return!k&&z&&($=z),z||!k&&$},T=function(_,F){if(M(_))return _.clone();var j=typeof F=="object"?F:{};return j.date=_,j.args=arguments,new D(j)},N=w;N.l=O,N.i=M,N.w=function(_,F){return T(_,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var D=(function(){function _(j){this.$L=O(j.locale,null,!0),this.parse(j),this.$x=this.$x||j.x||{},this[P]=!0}var F=_.prototype;return F.parse=function(j){this.$d=(function(k){var z=k.date,V=k.utc;if(z===null)return new Date(NaN);if(N.u(z))return new Date;if(z instanceof Date)return new Date(z);if(typeof z=="string"&&!/Z$/i.test(z)){var H=z.match(p);if(H){var B=H[2]-1||0,K=(H[7]||"0").substring(0,3);return V?new Date(Date.UTC(H[1],B,H[3]||1,H[4]||0,H[5]||0,H[6]||0,K)):new Date(H[1],B,H[3]||1,H[4]||0,H[5]||0,H[6]||0,K)}}return new Date(z)})(j),this.init()},F.init=function(){var j=this.$d;this.$y=j.getFullYear(),this.$M=j.getMonth(),this.$D=j.getDate(),this.$W=j.getDay(),this.$H=j.getHours(),this.$m=j.getMinutes(),this.$s=j.getSeconds(),this.$ms=j.getMilliseconds()},F.$utils=function(){return N},F.isValid=function(){return this.$d.toString()!==b},F.isSame=function(j,k){var z=T(j);return this.startOf(k)<=z&&z<=this.endOf(k)},F.isAfter=function(j,k){return T(j)25){var d=i(this).startOf(r).add(1,r).date(u),f=i(this).endOf(n);if(d.isBefore(f))return 1}var m=i(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),g=this.diff(m,n,!0);return g<0?i(this).startOf("week").week():Math.ceil(g)},l.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}}))})(np)),np.exports}var soe=loe();const GE=Lr(soe);var rp={exports:{}},coe=rp.exports,$8;function uoe(){return $8||($8=1,(function(e,t){(function(n,r){e.exports=r()})(coe,(function(){return function(n,r){r.prototype.weekYear=function(){var a=this.month(),o=this.week(),i=this.year();return o===1&&a===11?i+1:a===0&&o>=52?i-1:i}}}))})(rp)),rp.exports}var doe=uoe();const foe=Lr(doe);var ap={exports:{}},voe=ap.exports,E8;function moe(){return E8||(E8=1,(function(e,t){(function(n,r){e.exports=r()})(voe,(function(){return function(n,r){var a=r.prototype,o=a.format;a.format=function(i){var l=this,c=this.$locale();if(!this.isValid())return o.bind(this)(i);var u=this.$utils(),d=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(f){switch(f){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return c.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return c.ordinal(l.week(),"W");case"w":case"ww":return u.s(l.week(),f==="w"?1:2,"0");case"W":case"WW":return u.s(l.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return u.s(String(l.$H===0?24:l.$H),f==="k"?1:2,"0");case"X":return Math.floor(l.$d.getTime()/1e3);case"x":return l.$d.getTime();case"z":return"["+l.offsetName()+"]";case"zzz":return"["+l.offsetName("long")+"]";default:return f}}));return o.bind(this)(d)}}}))})(ap)),ap.exports}var goe=moe();const rL=Lr(goe);var op={exports:{}},poe=op.exports,P8;function hoe(){return P8||(P8=1,(function(e,t){(function(n,r){e.exports=r()})(poe,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,o=/\d\d/,i=/\d\d?/,l=/\d*[^-_:/,()\s\d]+/,c={},u=function(p){return(p=+p)+(p>68?1900:2e3)},d=function(p){return function(S){this[p]=+S}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(p){(this.zone||(this.zone={})).offset=(function(S){if(!S||S==="Z")return 0;var C=S.match(/([+-]|\d\d)/g),x=60*C[1]+(+C[2]||0);return x===0?0:C[0]==="+"?-x:x})(p)}],m=function(p){var S=c[p];return S&&(S.indexOf?S:S.s.concat(S.f))},g=function(p,S){var C,x=c.meridiem;if(x){for(var w=1;w<=24;w+=1)if(p.indexOf(x(w,0,S))>-1){C=w>12;break}}else C=p===(S?"pm":"PM");return C},h={A:[l,function(p){this.afternoon=g(p,!1)}],a:[l,function(p){this.afternoon=g(p,!0)}],Q:[a,function(p){this.month=3*(p-1)+1}],S:[a,function(p){this.milliseconds=100*+p}],SS:[o,function(p){this.milliseconds=10*+p}],SSS:[/\d{3}/,function(p){this.milliseconds=+p}],s:[i,d("seconds")],ss:[i,d("seconds")],m:[i,d("minutes")],mm:[i,d("minutes")],H:[i,d("hours")],h:[i,d("hours")],HH:[i,d("hours")],hh:[i,d("hours")],D:[i,d("day")],DD:[o,d("day")],Do:[l,function(p){var S=c.ordinal,C=p.match(/\d+/);if(this.day=C[0],S)for(var x=1;x<=31;x+=1)S(x).replace(/\[|\]/g,"")===p&&(this.day=x)}],w:[i,d("week")],ww:[o,d("week")],M:[i,d("month")],MM:[o,d("month")],MMM:[l,function(p){var S=m("months"),C=(m("monthsShort")||S.map((function(x){return x.slice(0,3)}))).indexOf(p)+1;if(C<1)throw new Error;this.month=C%12||C}],MMMM:[l,function(p){var S=m("months").indexOf(p)+1;if(S<1)throw new Error;this.month=S%12||S}],Y:[/[+-]?\d+/,d("year")],YY:[o,function(p){this.year=u(p)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function b(p){var S,C;S=p,C=c&&c.formats;for(var x=(p=S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(T,N,D){var L=D&&D.toUpperCase();return N||C[D]||n[D]||C[L].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(_,F,j){return F||j.slice(1)}))}))).match(r),w=x.length,$=0;$-1)return new Date((z==="X"?1e3:1)*k);var B=b(z)(k),K=B.year,W=B.month,G=B.day,X=B.hours,Y=B.minutes,Z=B.seconds,ee=B.milliseconds,re=B.zone,ne=B.week,se=new Date,oe=G||(K||W?1:se.getDate()),me=K||se.getFullYear(),ue=0;K&&!W||(ue=W>0?W-1:se.getMonth());var de,ae=X||0,ie=Y||0,ge=Z||0,pe=ee||0;return re?new Date(Date.UTC(me,ue,oe,ae,ie,ge,pe+60*re.offset*1e3)):V?new Date(Date.UTC(me,ue,oe,ae,ie,ge,pe)):(de=new Date(me,ue,oe,ae,ie,ge,pe),ne&&(de=H(de).week(ne).toDate()),de)}catch{return new Date("")}})(E,O,P,C),this.init(),L&&L!==!0&&(this.$L=this.locale(L).$L),D&&E!=this.format(O)&&(this.$d=new Date("")),c={}}else if(O instanceof Array)for(var _=O.length,F=1;F<=_;F+=1){M[1]=O[F-1];var j=C.apply(this,M);if(j.isValid()){this.$d=j.$d,this.$L=j.$L,this.init();break}F===_&&(this.$d=new Date(""))}else w.call(this,$)}}}))})(op)),op.exports}var boe=hoe();const aL=Lr(boe);xn.extend(aL);xn.extend(rL);xn.extend(tL);xn.extend(nL);xn.extend(GE);xn.extend(foe);xn.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(o){var i=(o||"").replace("Wo","wo");return r.bind(this)(i)}});var yoe={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},Es=function(t){var n=yoe[t];return n||t.split("_")[0]},Coe={getNow:function(){var t=xn();return typeof t.tz=="function"?t.tz():t},getFixedDate:function(t){return xn(t,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(t){return t.endOf("month")},getWeekDay:function(t){var n=t.locale("en");return n.weekday()+n.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},getMillisecond:function(t){return t.millisecond()},addYear:function(t,n){return t.add(n,"year")},addMonth:function(t,n){return t.add(n,"month")},addDate:function(t,n){return t.add(n,"day")},setYear:function(t,n){return t.year(n)},setMonth:function(t,n){return t.month(n)},setDate:function(t,n){return t.date(n)},setHour:function(t,n){return t.hour(n)},setMinute:function(t,n){return t.minute(n)},setSecond:function(t,n){return t.second(n)},setMillisecond:function(t,n){return t.millisecond(n)},isAfter:function(t,n){return t.isAfter(n)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return xn().locale(Es(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(Es(t)).weekday(0)},getWeek:function(t,n){return n.locale(Es(t)).week()},getShortWeekDays:function(t){return xn().locale(Es(t)).localeData().weekdaysMin()},getShortMonths:function(t){return xn().locale(Es(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(Es(t)).format(r)},parse:function(t,n,r){for(var a=Es(t),o=0;o2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);r.length2&&arguments[2]!==void 0?arguments[2]:[],r=s.useState([!1,!1]),a=fe(r,2),o=a[0],i=a[1],l=function(d,f){i(function(m){return Sf(m,f,d)})},c=s.useMemo(function(){return o.map(function(u,d){if(u)return!0;var f=e[d];return f?!!(!n[d]&&!f||f&&t(f,{activeIndex:d})):!1})},[e,o,t,n]);return[c,l]}function uL(e,t,n,r,a){var o="",i=[];return e&&i.push(a?"hh":"HH"),t&&i.push("mm"),n&&i.push("ss"),o=i.join(":"),r&&(o+=".SSS"),a&&(o+=" A"),o}function woe(e,t,n,r,a,o){var i=e.fieldDateTimeFormat,l=e.fieldDateFormat,c=e.fieldTimeFormat,u=e.fieldMonthFormat,d=e.fieldYearFormat,f=e.fieldWeekFormat,m=e.fieldQuarterFormat,g=e.yearFormat,h=e.cellYearFormat,b=e.cellQuarterFormat,p=e.dayFormat,S=e.cellDateFormat,C=uL(t,n,r,a,o);return R(R({},e),{},{fieldDateTimeFormat:i||"YYYY-MM-DD ".concat(C),fieldDateFormat:l||"YYYY-MM-DD",fieldTimeFormat:c||C,fieldMonthFormat:u||"YYYY-MM",fieldYearFormat:d||"YYYY",fieldWeekFormat:f||"gggg-wo",fieldQuarterFormat:m||"YYYY-[Q]Q",yearFormat:g||"YYYY",cellYearFormat:h||"YYYY",cellQuarterFormat:b||"[Q]Q",cellDateFormat:S||p||"D"})}function dL(e,t){var n=t.showHour,r=t.showMinute,a=t.showSecond,o=t.showMillisecond,i=t.use12Hours;return Q.useMemo(function(){return woe(e,n,r,a,o,i)},[e,n,r,a,o,i])}function Yd(e,t,n){return n??t.some(function(r){return e.includes(r)})}var $oe=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function Eoe(e){var t=Gh(e,$oe),n=e.format,r=e.picker,a=null;return n&&(a=n,Array.isArray(a)&&(a=a[0]),a=st(a)==="object"?a.format:a),r==="time"&&(t.format=a),[t,a]}function Poe(e){return e&&typeof e=="string"}function fL(e,t,n,r){return[e,t,n,r].some(function(a){return a!==void 0})}function vL(e,t,n,r,a){var o=t,i=n,l=r;if(!e&&!o&&!i&&!l&&!a)o=!0,i=!0,l=!0;else if(e){var c,u,d,f=[o,i,l].some(function(h){return h===!1}),m=[o,i,l].some(function(h){return h===!0}),g=f?!0:!m;o=(c=o)!==null&&c!==void 0?c:g,i=(u=i)!==null&&u!==void 0?u:g,l=(d=l)!==null&&d!==void 0?d:g}return[o,i,l,a]}function mL(e){var t=e.showTime,n=Eoe(e),r=fe(n,2),a=r[0],o=r[1],i=t&&st(t)==="object"?t:{},l=R(R({defaultOpenValue:i.defaultOpenValue||i.defaultValue},a),i),c=l.showMillisecond,u=l.showHour,d=l.showMinute,f=l.showSecond,m=fL(u,d,f,c),g=vL(m,u,d,f,c),h=fe(g,3);return u=h[0],d=h[1],f=h[2],[l,R(R({},l),{},{showHour:u,showMinute:d,showSecond:f,showMillisecond:c}),l.format,o]}function gL(e,t,n,r,a){var o=e==="time";if(e==="datetime"||o){for(var i=r,l=iL(e,a,null),c=l,u=[t,n],d=0;d1&&(i=t.addDate(i,-7)),i}function Ur(e,t){var n=t.generateConfig,r=t.locale,a=t.format;return e?typeof a=="function"?a(e):n.locale.format(r.locale,e,a):""}function Tp(e,t,n){var r=t,a=["getHour","getMinute","getSecond","getMillisecond"],o=["setHour","setMinute","setSecond","setMillisecond"];return o.forEach(function(i,l){n?r=e[i](r,e[a[l]](n)):r=e[i](r,0)}),r}function Moe(e,t,n,r,a){var o=Gt(function(i,l){return!!(n&&n(i,l)||r&&e.isAfter(r,i)&&!xa(e,t,r,i,l.type)||a&&e.isAfter(i,a)&&!xa(e,t,a,i,l.type))});return o}function Toe(e,t,n){return s.useMemo(function(){var r=iL(e,t,n),a=tc(r),o=a[0],i=st(o)==="object"&&o.type==="mask"?o.format:null;return[a.map(function(l){return typeof l=="string"||typeof l=="function"?l:l.format}),i]},[e,t,n])}function Noe(e,t,n){return typeof e[0]=="function"||n?!0:t}function _oe(e,t,n,r){var a=Gt(function(o,i){var l=R({type:t},i);if(delete l.activeIndex,!e.isValidate(o)||n&&n(o,l))return!0;if((t==="date"||t==="time")&&r){var c,u=i&&i.activeIndex===1?"end":"start",d=((c=r.disabledTime)===null||c===void 0?void 0:c.call(r,o,u,{from:l.from}))||{},f=d.disabledHours,m=d.disabledMinutes,g=d.disabledSeconds,h=d.disabledMilliseconds,b=r.disabledHours,p=r.disabledMinutes,S=r.disabledSeconds,C=f||b,x=m||p,w=g||S,$=e.getHour(o),E=e.getMinute(o),P=e.getSecond(o),M=e.getMillisecond(o);if(C&&C().includes($)||x&&x($).includes(E)||w&&w($,E).includes(P)||h&&h($,E,P).includes(M))return!0}return!1});return a}function ug(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=s.useMemo(function(){var r=e&&tc(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function bL(e,t){var n=e.generateConfig,r=e.locale,a=e.picker,o=a===void 0?"date":a,i=e.prefixCls,l=i===void 0?"rc-picker":i,c=e.styles,u=c===void 0?{}:c,d=e.classNames,f=d===void 0?{}:d,m=e.order,g=m===void 0?!0:m,h=e.components,b=h===void 0?{}:h,p=e.inputRender,S=e.allowClear,C=e.clearIcon,x=e.needConfirm,w=e.multiple,$=e.format,E=e.inputReadOnly,P=e.disabledDate,M=e.minDate,O=e.maxDate,T=e.showTime,N=e.value,D=e.defaultValue,L=e.pickerValue,_=e.defaultPickerValue,F=ug(N),j=ug(D),k=ug(L),z=ug(_),V=o==="date"&&T?"datetime":o,H=V==="time"||V==="datetime",B=H||w,K=x??H,W=mL(e),G=fe(W,4),X=G[0],Y=G[1],Z=G[2],ee=G[3],re=dL(r,Y),ne=s.useMemo(function(){return gL(V,Z,ee,X,re)},[V,Z,ee,X,re]),se=s.useMemo(function(){return R(R({},e),{},{prefixCls:l,locale:re,picker:o,styles:u,classNames:f,order:g,components:R({input:p},b),clearIcon:Ooe(l,S,C),showTime:ne,value:F,defaultValue:j,pickerValue:k,defaultPickerValue:z},t?.())},[e]),oe=Toe(V,re,$),me=fe(oe,2),ue=me[0],de=me[1],ae=Noe(ue,E,w),ie=Moe(n,r,P,M,O),ge=_oe(n,o,ie,ne),pe=s.useMemo(function(){return R(R({},se),{},{needConfirm:K,inputReadOnly:ae,disabledDate:ie})},[se,K,ae,ie]);return[pe,V,B,ue,de,ge]}function joe(e,t,n){var r=Tt(t,{value:e}),a=fe(r,2),o=a[0],i=a[1],l=Q.useRef(e),c=Q.useRef(),u=function(){ln.cancel(c.current)},d=Gt(function(){i(l.current),n&&o!==l.current&&n(l.current)}),f=Gt(function(m,g){u(),l.current=m,m||g?d():c.current=ln(d)});return Q.useEffect(function(){return u},[]),[o,f]}function yL(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,a=n.every(function(d){return d})?!1:e,o=joe(a,t||!1,r),i=fe(o,2),l=i[0],c=i[1];function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!f.inherit||l)&&c(d,f.force)}return[l,u]}function CL(e){var t=s.useRef();return s.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(a){var o;(o=t.current)===null||o===void 0||o.focus(a)},blur:function(){var a;(a=t.current)===null||a===void 0||a.blur()}}}),t}function SL(e,t){return s.useMemo(function(){return e||(t?(jn(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=fe(n,2),a=r[0],o=r[1];return{label:a,value:o}})):[])},[e,t])}function JE(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=s.useRef(t);r.current=t,Ds(function(){if(e)r.current(e);else{var a=ln(function(){r.current(e)},n);return function(){ln.cancel(a)}}},[e])}function xL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=s.useState(0),a=fe(r,2),o=a[0],i=a[1],l=s.useState(!1),c=fe(l,2),u=c[0],d=c[1],f=s.useRef([]),m=s.useRef(null),g=s.useRef(null),h=function(w){m.current=w},b=function(w){return m.current===w},p=function(w){d(w)},S=function(w){return w&&(g.current=w),g.current},C=function(w){var $=f.current,E=new Set($.filter(function(M){return w[M]||t[M]})),P=$[$.length-1]===0?1:0;return E.size>=2||e[P]?null:P};return JE(u||n,function(){u||(f.current=[],h(null))}),s.useEffect(function(){u&&f.current.push(o)},[u,o]),[u,p,S,o,i,C,f.current,h,b]}function Doe(e,t,n,r,a,o){var i=n[n.length-1],l=function(u,d){var f=fe(e,2),m=f[0],g=f[1],h=R(R({},d),{},{from:lL(e,n)});return i===1&&t[0]&&m&&!xa(r,a,m,u,h.type)&&r.isAfter(m,u)||i===0&&t[1]&&g&&!xa(r,a,g,u,h.type)&&r.isAfter(u,g)?!0:o?.(u,h)};return l}function cf(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,r*10);case"decade":return e.addYear(n,r*100);default:return n}}var i1=[];function wL(e,t,n,r,a,o,i,l){var c=arguments.length>8&&arguments[8]!==void 0?arguments[8]:i1,u=arguments.length>9&&arguments[9]!==void 0?arguments[9]:i1,d=arguments.length>10&&arguments[10]!==void 0?arguments[10]:i1,f=arguments.length>11?arguments[11]:void 0,m=arguments.length>12?arguments[12]:void 0,g=arguments.length>13?arguments[13]:void 0,h=i==="time",b=o||0,p=function(k){var z=e.getNow();return h&&(z=Tp(e,z)),c[k]||n[k]||z},S=fe(u,2),C=S[0],x=S[1],w=Tt(function(){return p(0)},{value:C}),$=fe(w,2),E=$[0],P=$[1],M=Tt(function(){return p(1)},{value:x}),O=fe(M,2),T=O[0],N=O[1],D=s.useMemo(function(){var j=[E,T][b];return h?j:Tp(e,j,d[b])},[h,E,T,b,e,d]),L=function(k){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",V=[P,N][b];V(k);var H=[E,T];H[b]=k,f&&(!xa(e,t,E,H[0],i)||!xa(e,t,T,H[1],i))&&f(H,{source:z,range:b===1?"end":"start",mode:r})},_=function(k,z){if(l){var V={date:"month",week:"month",month:"year",quarter:"year"},H=V[i];if(H&&!xa(e,t,k,z,H))return cf(e,i,z,-1);if(i==="year"&&k){var B=Math.floor(e.getYear(k)/10),K=Math.floor(e.getYear(z)/10);if(B!==K)return cf(e,i,z,-1)}}return z},F=s.useRef(null);return un(function(){if(a&&!c[b]){var j=h?null:e.getNow();if(F.current!==null&&F.current!==b?j=[E,T][b^1]:n[b]?j=b===0?n[0]:_(n[0],n[1]):n[b^1]&&(j=n[b^1]),j){m&&e.isAfter(m,j)&&(j=m);var k=l?cf(e,i,j,1):j;g&&e.isAfter(k,g)&&(j=l?cf(e,i,g,-1):g),L(j,"reset")}}},[a,b,n[b]]),s.useEffect(function(){a?F.current=b:F.current=null},[a,b]),un(function(){a&&c&&c[b]&&L(c[b],"reset")},[a,b]),[D,L]}function $L(e,t){var n=s.useRef(e),r=s.useState({}),a=fe(r,2),o=a[1],i=function(u){return u&&t!==void 0?t:n.current},l=function(u){n.current=u,o({})};return[i,l,i(!0)]}var Foe=[];function EL(e,t,n){var r=function(i){return i.map(function(l){return Ur(l,{generateConfig:e,locale:t,format:n[0]})})},a=function(i,l){for(var c=Math.max(i.length,l.length),u=-1,d=0;d2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,i=[],l=n>=1?n|0:1,c=e;c<=t;c+=l){var u=a.includes(c);(!u||!r)&&i.push({label:XE(c,o),value:c,disabled:u})}return i}function e4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},a=r.use12Hours,o=r.hourStep,i=o===void 0?1:o,l=r.minuteStep,c=l===void 0?1:l,u=r.secondStep,d=u===void 0?1:u,f=r.millisecondStep,m=f===void 0?100:f,g=r.hideDisabledOptions,h=r.disabledTime,b=r.disabledHours,p=r.disabledMinutes,S=r.disabledSeconds,C=s.useMemo(function(){return n||e.getNow()},[n,e]),x=s.useCallback(function(z){var V=h?.(z)||{};return[V.disabledHours||b||dg,V.disabledMinutes||p||dg,V.disabledSeconds||S||dg,V.disabledMilliseconds||dg]},[h,b,p,S]),w=s.useMemo(function(){return x(C)},[C,x]),$=fe(w,4),E=$[0],P=$[1],M=$[2],O=$[3],T=s.useCallback(function(z,V,H,B){var K=fg(0,23,i,g,z()),W=a?K.map(function(Z){return R(R({},Z),{},{label:XE(Z.value%12||12,2)})}):K,G=function(ee){return fg(0,59,c,g,V(ee))},X=function(ee,re){return fg(0,59,d,g,H(ee,re))},Y=function(ee,re,ne){return fg(0,999,m,g,B(ee,re,ne),3)};return[W,G,X,Y]},[g,i,a,m,c,d]),N=s.useMemo(function(){return T(E,P,M,O)},[T,E,P,M,O]),D=fe(N,4),L=D[0],_=D[1],F=D[2],j=D[3],k=function(V,H){var B=function(){return L},K=_,W=F,G=j;if(H){var X=x(H),Y=fe(X,4),Z=Y[0],ee=Y[1],re=Y[2],ne=Y[3],se=T(Z,ee,re,ne),oe=fe(se,4),me=oe[0],ue=oe[1],de=oe[2],ae=oe[3];B=function(){return me},K=ue,W=de,G=ae}var ie=Loe(V,B,K,W,G,e);return ie};return[k,L,_,F,j]}function zoe(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,a=e.showNow,o=e.showTime,i=e.onSubmit,l=e.onNow,c=e.invalid,u=e.needConfirm,d=e.generateConfig,f=e.disabledDate,m=s.useContext(di),g=m.prefixCls,h=m.locale,b=m.button,p=b===void 0?"button":b,S=d.getNow(),C=e4(d,o,S),x=fe(C,1),w=x[0],$=r?.(t),E=f(S,{type:t}),P=function(){if(!E){var _=w(S);l(_)}},M="".concat(g,"-now"),O="".concat(M,"-btn"),T=a&&s.createElement("li",{className:M},s.createElement("a",{className:le(O,E&&"".concat(O,"-disabled")),"aria-disabled":E,onClick:P},n==="date"?h.today:h.now)),N=u&&s.createElement("li",{className:"".concat(g,"-ok")},s.createElement(p,{disabled:c,onClick:i},h.ok)),D=(T||N)&&s.createElement("ul",{className:"".concat(g,"-ranges")},T,N);return!$&&!D?null:s.createElement("div",{className:"".concat(g,"-footer")},$&&s.createElement("div",{className:"".concat(g,"-footer-extra")},$),D)}function ML(e,t,n){function r(a,o){var i=a.findIndex(function(c){return xa(e,t,c,o,n)});if(i===-1)return[].concat(Te(a),[o]);var l=Te(a);return l.splice(i,1),l}return r}var nc=s.createContext(null);function Yh(){return s.useContext(nc)}function Yu(e,t){var n=e.prefixCls,r=e.generateConfig,a=e.locale,o=e.disabledDate,i=e.minDate,l=e.maxDate,c=e.cellRender,u=e.hoverValue,d=e.hoverRangeValue,f=e.onHover,m=e.values,g=e.pickerValue,h=e.onSelect,b=e.prevIcon,p=e.nextIcon,S=e.superPrevIcon,C=e.superNextIcon,x=r.getNow(),w={now:x,values:m,pickerValue:g,prefixCls:n,disabledDate:o,minDate:i,maxDate:l,cellRender:c,hoverValue:u,hoverRangeValue:d,onHover:f,locale:a,generateConfig:r,onSelect:h,panelType:t,prevIcon:b,nextIcon:p,superPrevIcon:S,superNextIcon:C};return[w,x]}var Gl=s.createContext({});function $v(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,a=e.getCellDate,o=e.prefixColumn,i=e.rowClassName,l=e.titleFormat,c=e.getCellText,u=e.getCellClassName,d=e.headerCells,f=e.cellSelection,m=f===void 0?!0:f,g=e.disabledDate,h=Yh(),b=h.prefixCls,p=h.panelType,S=h.now,C=h.disabledDate,x=h.cellRender,w=h.onHover,$=h.hoverValue,E=h.hoverRangeValue,P=h.generateConfig,M=h.values,O=h.locale,T=h.onSelect,N=g||C,D="".concat(b,"-cell"),L=s.useContext(Gl),_=L.onCellDblClick,F=function(W){return M.some(function(G){return G&&xa(P,O,W,G,p)})},j=[],k=0;k1&&arguments[1]!==void 0?arguments[1]:!1;Ce(Be),p?.(Be),$e&&he(Be)},Ee=function(Be,$e){re(Be),$e&&Se($e),he($e,Be)},Oe=function(Be){if(ge(Be),Se(Be),ee!==w){var $e=["decade","year"],we=[].concat($e,["month"]),Ie={quarter:[].concat($e,["quarter"]),week:[].concat(Te(we),["week"]),date:[].concat(Te(we),["date"])},Fe=Ie[w]||we,Ge=Fe.indexOf(ee),et=Fe[Ge+1];et&&Ee(et,Be)}},We=s.useMemo(function(){var Me,Be;if(Array.isArray(P)){var $e=fe(P,2);Me=$e[0],Be=$e[1]}else Me=P;return!Me&&!Be?null:(Me=Me||Be,Be=Be||Me,a.isAfter(Me,Be)?[Be,Me]:[Me,Be])},[P,a]),je=YE(M,O,T),De=D[ne]||Qoe[ne]||Qh,ke=s.useContext(Gl),_e=s.useMemo(function(){return R(R({},ke),{},{hideHeader:L})},[ke,L]),Re="".concat(_,"-panel"),Le=Gh(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return s.createElement(Gl.Provider,{value:_e},s.createElement("div",{ref:F,tabIndex:c,className:le(Re,q({},"".concat(Re,"-rtl"),o==="rtl"))},s.createElement(De,xe({},Le,{showTime:G,prefixCls:_,locale:K,generateConfig:a,onModeChange:Ee,pickerValue:ve,onPickerValueChange:function(Be){Se(Be,!0)},value:ae[0],onSelect:Oe,values:ae,cellRender:je,hoverRangeValue:We,hoverValue:E}))))}var l1=s.memo(s.forwardRef(Zoe));function Joe(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,a=e.onPickerValueChange,o=e.needConfirm,i=e.onSubmit,l=e.range,c=e.hoverValue,u=s.useContext(di),d=u.prefixCls,f=u.generateConfig,m=s.useCallback(function(C,x){return cf(f,t,C,x)},[f,t]),g=s.useMemo(function(){return m(r,1)},[r,m]),h=function(x){a(m(x,-1))},b={onCellDblClick:function(){o&&i()}},p=t==="time",S=R(R({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:p});return l?S.hoverRangeValue=c:S.hoverValue=c,n?s.createElement("div",{className:"".concat(d,"-panels")},s.createElement(Gl.Provider,{value:R(R({},b),{},{hideNext:!0})},s.createElement(l1,S)),s.createElement(Gl.Provider,{value:R(R({},b),{},{hidePrev:!0})},s.createElement(l1,xe({},S,{pickerValue:g,onPickerValueChange:h})))):s.createElement(Gl.Provider,{value:R({},b)},s.createElement(l1,S))}function R8(e){return typeof e=="function"?e():e}function eie(e){var t=e.prefixCls,n=e.presets,r=e.onClick,a=e.onHover;return n.length?s.createElement("div",{className:"".concat(t,"-presets")},s.createElement("ul",null,n.map(function(o,i){var l=o.label,c=o.value;return s.createElement("li",{key:i,onClick:function(){r(R8(c))},onMouseEnter:function(){a(R8(c))},onMouseLeave:function(){a(null)}},l)}))):null}function NL(e){var t=e.panelRender,n=e.internalMode,r=e.picker,a=e.showNow,o=e.range,i=e.multiple,l=e.activeInfo,c=l===void 0?[0,0,0]:l,u=e.presets,d=e.onPresetHover,f=e.onPresetSubmit,m=e.onFocus,g=e.onBlur,h=e.onPanelMouseDown,b=e.direction,p=e.value,S=e.onSelect,C=e.isInvalid,x=e.defaultOpenValue,w=e.onOk,$=e.onSubmit,E=s.useContext(di),P=E.prefixCls,M="".concat(P,"-panel"),O=b==="rtl",T=s.useRef(null),N=s.useRef(null),D=s.useState(0),L=fe(D,2),_=L[0],F=L[1],j=s.useState(0),k=fe(j,2),z=k[0],V=k[1],H=s.useState(0),B=fe(H,2),K=B[0],W=B[1],G=function(Oe){Oe.width&&F(Oe.width)},X=fe(c,3),Y=X[0],Z=X[1],ee=X[2],re=s.useState(0),ne=fe(re,2),se=ne[0],oe=ne[1];s.useEffect(function(){oe(10)},[Y]),s.useEffect(function(){if(o&&N.current){var Ee,Oe=((Ee=T.current)===null||Ee===void 0?void 0:Ee.offsetWidth)||0,We=N.current.getBoundingClientRect();if(!We.height||We.right<0){oe(function(_e){return Math.max(0,_e-1)});return}var je=(O?Z-Oe:Y)-We.left;if(W(je),_&&_=l&&n<=c)return o;var u=Math.min(Math.abs(n-l),Math.abs(n-c));u0?Ct:yt));var ze=bt+tt,Ve=yt-Ct+1;return String(Ct+(Ve+ze-Ct)%Ve)};switch(Be){case"Backspace":case"Delete":$e="",we=Fe;break;case"ArrowLeft":$e="",Ge(-1);break;case"ArrowRight":$e="",Ge(1);break;case"ArrowUp":$e="",we=et(1);break;case"ArrowDown":$e="",we=et(-1);break;default:isNaN(Number(Be))||($e=B+Be,we=$e);break}if($e!==null&&(K($e),$e.length>=Ie&&(Ge(1),K(""))),we!==null){var Ke=se.slice(0,ie)+XE(we,Ie)+se.slice(ge);be(Ke.slice(0,i.length))}ne({})},_e=s.useRef();un(function(){if(!(!L||!i||he.current)){if(!ue.match(se)){be(i);return}return me.current.setSelectionRange(ie,ge),_e.current=ln(function(){me.current.setSelectionRange(ie,ge)}),function(){ln.cancel(_e.current)}}},[ue,i,L,se,X,ie,ge,re,be]);var Re=i?{onFocus:Oe,onBlur:je,onKeyDown:ke,onMouseDown:Se,onMouseUp:Ee,onPaste:Ce}:{};return s.createElement("div",{ref:oe,className:le(T,q(q({},"".concat(T,"-active"),n&&a),"".concat(T,"-placeholder"),u))},s.createElement(O,xe({ref:me,"aria-invalid":b,autoComplete:"off"},S,{onKeyDown:De,onBlur:We},Re,{value:se,onChange:ve})),s.createElement(Zh,{type:"suffix",icon:o}),p)}),lie=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveInfo","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],sie=["index"];function cie(e,t){var n=e.id,r=e.prefix,a=e.clearIcon,o=e.suffixIcon,i=e.separator,l=i===void 0?"~":i,c=e.activeIndex;e.activeHelp,e.allHelp;var u=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var d=e.placeholder,f=e.className,m=e.style,g=e.onClick,h=e.onClear,b=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var p=e.disabled,S=e.invalid;e.inputReadOnly;var C=e.direction;e.onOpenChange;var x=e.onActiveInfo;e.placement;var w=e.onMouseDown;e.required,e["aria-required"];var $=e.autoFocus,E=e.tabIndex,P=Ue(e,lie),M=C==="rtl",O=s.useContext(di),T=O.prefixCls,N=s.useMemo(function(){if(typeof n=="string")return[n];var re=n||{};return[re.start,re.end]},[n]),D=s.useRef(),L=s.useRef(),_=s.useRef(),F=function(ne){var se;return(se=[L,_][ne])===null||se===void 0?void 0:se.current};s.useImperativeHandle(t,function(){return{nativeElement:D.current,focus:function(ne){if(st(ne)==="object"){var se,oe=ne||{},me=oe.index,ue=me===void 0?0:me,de=Ue(oe,sie);(se=F(ue))===null||se===void 0||se.focus(de)}else{var ae;(ae=F(ne??0))===null||ae===void 0||ae.focus()}},blur:function(){var ne,se;(ne=F(0))===null||ne===void 0||ne.blur(),(se=F(1))===null||se===void 0||se.blur()}}});var j=jL(P),k=s.useMemo(function(){return Array.isArray(d)?d:[d,d]},[d]),z=_L(R(R({},e),{},{id:N,placeholder:k})),V=fe(z,1),H=V[0],B=s.useState({position:"absolute",width:0}),K=fe(B,2),W=K[0],G=K[1],X=Gt(function(){var re=F(c);if(re){var ne=re.nativeElement.getBoundingClientRect(),se=D.current.getBoundingClientRect(),oe=ne.left-se.left;G(function(me){return R(R({},me),{},{width:ne.width,left:oe})}),x([ne.left,ne.right,se.width])}});s.useEffect(function(){X()},[c]);var Y=a&&(b[0]&&!p[0]||b[1]&&!p[1]),Z=$&&!p[0],ee=$&&!Z&&!p[1];return s.createElement(Vr,{onResize:X},s.createElement("div",xe({},j,{className:le(T,"".concat(T,"-range"),q(q(q(q({},"".concat(T,"-focused"),u),"".concat(T,"-disabled"),p.every(function(re){return re})),"".concat(T,"-invalid"),S.some(function(re){return re})),"".concat(T,"-rtl"),M),f),style:m,ref:D,onClick:g,onMouseDown:function(ne){var se=ne.target;se!==L.current.inputElement&&se!==_.current.inputElement&&ne.preventDefault(),w?.(ne)}}),r&&s.createElement("div",{className:"".concat(T,"-prefix")},r),s.createElement(Bw,xe({ref:L},H(0),{autoFocus:Z,tabIndex:E,"date-range":"start"})),s.createElement("div",{className:"".concat(T,"-range-separator")},l),s.createElement(Bw,xe({ref:_},H(1),{autoFocus:ee,tabIndex:E,"date-range":"end"})),s.createElement("div",{className:"".concat(T,"-active-bar"),style:W}),s.createElement(Zh,{type:"suffix",icon:o}),Y&&s.createElement(Aw,{icon:a,onClear:h})))}var uie=s.forwardRef(cie);function M8(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function mg(e){return e===1?"end":"start"}function die(e,t){var n=bL(e,function(){var hn=e.disabled,xt=e.allowEmpty,Ft=M8(hn,!1),Sn=M8(xt,!1);return{disabled:Ft,allowEmpty:Sn}}),r=fe(n,6),a=r[0],o=r[1],i=r[2],l=r[3],c=r[4],u=r[5],d=a.prefixCls,f=a.styles,m=a.classNames,g=a.defaultValue,h=a.value,b=a.needConfirm,p=a.onKeyDown,S=a.disabled,C=a.allowEmpty,x=a.disabledDate,w=a.minDate,$=a.maxDate,E=a.defaultOpen,P=a.open,M=a.onOpenChange,O=a.locale,T=a.generateConfig,N=a.picker,D=a.showNow,L=a.showToday,_=a.showTime,F=a.mode,j=a.onPanelChange,k=a.onCalendarChange,z=a.onOk,V=a.defaultPickerValue,H=a.pickerValue,B=a.onPickerValueChange,K=a.inputReadOnly,W=a.suffixIcon,G=a.onFocus,X=a.onBlur,Y=a.presets,Z=a.ranges,ee=a.components,re=a.cellRender,ne=a.dateRender,se=a.monthCellRender,oe=a.onClick,me=CL(t),ue=yL(P,E,S,M),de=fe(ue,2),ae=de[0],ie=de[1],ge=function(xt,Ft){(S.some(function(Sn){return!Sn})||!xt)&&ie(xt,Ft)},pe=OL(T,O,l,!0,!1,g,h,k,z),be=fe(pe,5),ve=be[0],Ce=be[1],he=be[2],Se=be[3],Ee=be[4],Oe=he(),We=xL(S,C,ae),je=fe(We,9),De=je[0],ke=je[1],_e=je[2],Re=je[3],Le=je[4],Me=je[5],Be=je[6],$e=je[7],we=je[8],Ie=function(xt,Ft){ke(!0),G?.(xt,{range:mg(Ft??Re)})},Fe=function(xt,Ft){ke(!1),X?.(xt,{range:mg(Ft??Re)})},Ge=s.useMemo(function(){if(!_)return null;var hn=_.disabledTime,xt=hn?function(Ft){var Sn=mg(Re),wn=lL(Oe,Be,Re);return hn(Ft,Sn,{from:wn})}:void 0;return R(R({},_),{},{disabledTime:xt})},[_,Re,Oe,Be]),et=Tt([N,N],{value:F}),Ke=fe(et,2),Ye=Ke[0],tt=Ke[1],rt=Ye[Re]||N,ct=rt==="date"&&Ge?"datetime":rt,Ct=ct===N&&ct!=="time",yt=IL(N,rt,D,L,!0),dt=RL(a,ve,Ce,he,Se,S,l,De,ae,u),vt=fe(dt,2),bt=vt[0],ze=vt[1],Ve=Doe(Oe,S,Be,T,O,x),Pe=cL(Oe,u,C),He=fe(Pe,2),Ze=He[0],at=He[1],Nt=wL(T,O,Oe,Ye,ae,Re,o,Ct,V,H,Ge?.defaultOpenValue,B,w,$),pt=fe(Nt,2),mt=pt[0],jt=pt[1],Kt=Gt(function(hn,xt,Ft){var Sn=Sf(Ye,Re,xt);if((Sn[0]!==Ye[0]||Sn[1]!==Ye[1])&&tt(Sn),j&&Ft!==!1){var wn=Te(Oe);hn&&(wn[Re]=hn),j(wn,Sn)}}),cn=function(xt,Ft){return Sf(Oe,Ft,xt)},tn=function(xt,Ft){var Sn=Oe;xt&&(Sn=cn(xt,Re)),$e(Re);var wn=Me(Sn);Se(Sn),bt(Re,wn===null),wn===null?ge(!1,{force:!0}):Ft||me.current.focus({index:wn})},Bt=function(xt){var Ft,Sn=xt.target.getRootNode();if(!me.current.nativeElement.contains((Ft=Sn.activeElement)!==null&&Ft!==void 0?Ft:document.activeElement)){var wn=S.findIndex(function(Kn){return!Kn});wn>=0&&me.current.focus({index:wn})}ge(!0),oe?.(xt)},It=function(){ze(null),ge(!1,{force:!0})},Wt=s.useState(null),ot=fe(Wt,2),Et=ot[0],gt=ot[1],Xe=s.useState(null),it=fe(Xe,2),ft=it[0],_t=it[1],Yt=s.useMemo(function(){return ft||Oe},[Oe,ft]);s.useEffect(function(){ae||_t(null)},[ae]);var St=s.useState([0,0,0]),Mt=fe(St,2),Ht=Mt[0],vn=Mt[1],En=SL(Y,Z),pn=function(xt){_t(xt),gt("preset")},Zn=function(xt){var Ft=ze(xt);Ft&&ge(!1,{force:!0})},Jn=function(xt){tn(xt)},Ir=function(xt){_t(xt?cn(xt,Re):null),gt("cell")},ur=function(xt){ge(!0),Ie(xt)},hr=function(){_e("panel")},or=function(xt){var Ft=Sf(Oe,Re,xt);Se(Ft),!b&&!i&&o===ct&&tn(xt)},On=function(){ge(!1)},Vt=YE(re,ne,se,mg(Re)),zt=Oe[Re]||null,Pn=Gt(function(hn){return u(hn,{activeIndex:Re})}),kt=s.useMemo(function(){var hn=Qn(a,!1),xt=Qt(a,[].concat(Te(Object.keys(hn)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return xt},[a]),Lt=s.createElement(NL,xe({},kt,{showNow:yt,showTime:Ge,range:!0,multiplePanel:Ct,activeInfo:Ht,disabledDate:Ve,onFocus:ur,onBlur:Fe,onPanelMouseDown:hr,picker:N,mode:rt,internalMode:ct,onPanelChange:Kt,format:c,value:zt,isInvalid:Pn,onChange:null,onSelect:or,pickerValue:mt,defaultOpenValue:tc(_?.defaultOpenValue)[Re],onPickerValueChange:jt,hoverValue:Yt,onHover:Ir,needConfirm:b,onSubmit:tn,onOk:Ee,presets:En,onPresetHover:pn,onPresetSubmit:Zn,onNow:Jn,cellRender:Vt})),Cn=function(xt,Ft){var Sn=cn(xt,Ft);Se(Sn)},Wn=function(){_e("input")},Un=function(xt,Ft){var Sn=Be.length,wn=Be[Sn-1];if(Sn&&wn!==Ft&&b&&!C[wn]&&!we(wn)&&Oe[wn]){me.current.focus({index:wn});return}_e("input"),ge(!0,{inherit:!0}),Re!==Ft&&ae&&!b&&i&&tn(null,!0),Le(Ft),Ie(xt,Ft)},bn=function(xt,Ft){if(ge(!1),!b&&_e()==="input"){var Sn=Me(Oe);bt(Re,Sn===null)}Fe(xt,Ft)},dr=function(xt,Ft){xt.key==="Tab"&&tn(null,!0),p?.(xt,Ft)},$r=s.useMemo(function(){return{prefixCls:d,locale:O,generateConfig:T,button:ee.button,input:ee.input}},[d,O,T,ee.button,ee.input]);return un(function(){ae&&Re!==void 0&&Kt(null,N,!1)},[ae,Re,N]),un(function(){var hn=_e();!ae&&hn==="input"&&(ge(!1),tn(null,!0)),!ae&&i&&!b&&hn==="panel"&&(ge(!0),tn())},[ae]),s.createElement(di.Provider,{value:$r},s.createElement(oL,xe({},sL(a),{popupElement:Lt,popupStyle:f.popup,popupClassName:m.popup,visible:ae,onClose:On,range:!0}),s.createElement(uie,xe({},a,{ref:me,suffixIcon:W,activeIndex:De||ae?Re:null,activeHelp:!!ft,allHelp:!!ft&&Et==="preset",focused:De,onFocus:Un,onBlur:bn,onKeyDown:dr,onSubmit:tn,value:Yt,maskFormat:c,onChange:Cn,onInputChange:Wn,format:l,inputReadOnly:K,disabled:S,open:ae,onOpenChange:ge,onClick:Bt,onClear:It,invalid:Ze,onInvalid:at,onActiveInfo:vn}))))}var fie=s.forwardRef(die);function vie(e){var t=e.prefixCls,n=e.value,r=e.onRemove,a=e.removeIcon,o=a===void 0?"×":a,i=e.formatDate,l=e.disabled,c=e.maxTagCount,u=e.placeholder,d="".concat(t,"-selector"),f="".concat(t,"-selection"),m="".concat(f,"-overflow");function g(p,S){return s.createElement("span",{className:le("".concat(f,"-item")),title:typeof p=="string"?p:null},s.createElement("span",{className:"".concat(f,"-item-content")},p),!l&&S&&s.createElement("span",{onMouseDown:function(x){x.preventDefault()},onClick:S,className:"".concat(f,"-item-remove")},o))}function h(p){var S=i(p),C=function(w){w&&w.stopPropagation(),r(p)};return g(S,C)}function b(p){var S="+ ".concat(p.length," ...");return g(S)}return s.createElement("div",{className:d},s.createElement(ei,{prefixCls:m,data:n,renderItem:h,renderRest:b,itemKey:function(S){return i(S)},maxCount:c}),!n.length&&s.createElement("span",{className:"".concat(t,"-selection-placeholder")},u))}var mie=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function gie(e,t){e.id;var n=e.open,r=e.prefix,a=e.clearIcon,o=e.suffixIcon;e.activeHelp,e.allHelp;var i=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var l=e.locale,c=e.generateConfig,u=e.placeholder,d=e.className,f=e.style,m=e.onClick,g=e.onClear,h=e.internalPicker,b=e.value,p=e.onChange,S=e.onSubmit;e.onInputChange;var C=e.multiple,x=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var w=e.disabled,$=e.invalid;e.inputReadOnly;var E=e.direction;e.onOpenChange;var P=e.onMouseDown;e.required,e["aria-required"];var M=e.autoFocus,O=e.tabIndex,T=e.removeIcon,N=Ue(e,mie),D=E==="rtl",L=s.useContext(di),_=L.prefixCls,F=s.useRef(),j=s.useRef();s.useImperativeHandle(t,function(){return{nativeElement:F.current,focus:function(Z){var ee;(ee=j.current)===null||ee===void 0||ee.focus(Z)},blur:function(){var Z;(Z=j.current)===null||Z===void 0||Z.blur()}}});var k=jL(N),z=function(Z){p([Z])},V=function(Z){var ee=b.filter(function(re){return re&&!xa(c,l,re,Z,h)});p(ee),n||S()},H=_L(R(R({},e),{},{onChange:z}),function(Y){var Z=Y.valueTexts;return{value:Z[0]||"",active:i}}),B=fe(H,2),K=B[0],W=B[1],G=!!(a&&b.length&&!w),X=C?s.createElement(s.Fragment,null,s.createElement(vie,{prefixCls:_,value:b,onRemove:V,formatDate:W,maxTagCount:x,disabled:w,removeIcon:T,placeholder:u}),s.createElement("input",{className:"".concat(_,"-multiple-input"),value:b.map(W).join(","),ref:j,readOnly:!0,autoFocus:M,tabIndex:O}),s.createElement(Zh,{type:"suffix",icon:o}),G&&s.createElement(Aw,{icon:a,onClear:g})):s.createElement(Bw,xe({ref:j},K(),{autoFocus:M,tabIndex:O,suffixIcon:o,clearIcon:G&&s.createElement(Aw,{icon:a,onClear:g}),showActiveCls:!1}));return s.createElement("div",xe({},k,{className:le(_,q(q(q(q(q({},"".concat(_,"-multiple"),C),"".concat(_,"-focused"),i),"".concat(_,"-disabled"),w),"".concat(_,"-invalid"),$),"".concat(_,"-rtl"),D),d),style:f,ref:F,onClick:m,onMouseDown:function(Z){var ee,re=Z.target;re!==((ee=j.current)===null||ee===void 0?void 0:ee.inputElement)&&Z.preventDefault(),P?.(Z)}}),r&&s.createElement("div",{className:"".concat(_,"-prefix")},r),X)}var pie=s.forwardRef(gie);function hie(e,t){var n=bL(e),r=fe(n,6),a=r[0],o=r[1],i=r[2],l=r[3],c=r[4],u=r[5],d=a,f=d.prefixCls,m=d.styles,g=d.classNames,h=d.order,b=d.defaultValue,p=d.value,S=d.needConfirm,C=d.onChange,x=d.onKeyDown,w=d.disabled,$=d.disabledDate,E=d.minDate,P=d.maxDate,M=d.defaultOpen,O=d.open,T=d.onOpenChange,N=d.locale,D=d.generateConfig,L=d.picker,_=d.showNow,F=d.showToday,j=d.showTime,k=d.mode,z=d.onPanelChange,V=d.onCalendarChange,H=d.onOk,B=d.multiple,K=d.defaultPickerValue,W=d.pickerValue,G=d.onPickerValueChange,X=d.inputReadOnly,Y=d.suffixIcon,Z=d.removeIcon,ee=d.onFocus,re=d.onBlur,ne=d.presets,se=d.components,oe=d.cellRender,me=d.dateRender,ue=d.monthCellRender,de=d.onClick,ae=CL(t);function ie(kt){return kt===null?null:B?kt:kt[0]}var ge=ML(D,N,o),pe=yL(O,M,[w],T),be=fe(pe,2),ve=be[0],Ce=be[1],he=function(Lt,Cn,Wn){if(V){var Un=R({},Wn);delete Un.range,V(ie(Lt),ie(Cn),Un)}},Se=function(Lt){H?.(ie(Lt))},Ee=OL(D,N,l,!1,h,b,p,he,Se),Oe=fe(Ee,5),We=Oe[0],je=Oe[1],De=Oe[2],ke=Oe[3],_e=Oe[4],Re=De(),Le=xL([w]),Me=fe(Le,4),Be=Me[0],$e=Me[1],we=Me[2],Ie=Me[3],Fe=function(Lt){$e(!0),ee?.(Lt,{})},Ge=function(Lt){$e(!1),re?.(Lt,{})},et=Tt(L,{value:k}),Ke=fe(et,2),Ye=Ke[0],tt=Ke[1],rt=Ye==="date"&&j?"datetime":Ye,ct=IL(L,Ye,_,F),Ct=C&&function(kt,Lt){C(ie(kt),ie(Lt))},yt=RL(R(R({},a),{},{onChange:Ct}),We,je,De,ke,[],l,Be,ve,u),dt=fe(yt,2),vt=dt[1],bt=cL(Re,u),ze=fe(bt,2),Ve=ze[0],Pe=ze[1],He=s.useMemo(function(){return Ve.some(function(kt){return kt})},[Ve]),Ze=function(Lt,Cn){if(G){var Wn=R(R({},Cn),{},{mode:Cn.mode[0]});delete Wn.range,G(Lt[0],Wn)}},at=wL(D,N,Re,[Ye],ve,Ie,o,!1,K,W,tc(j?.defaultOpenValue),Ze,E,P),Nt=fe(at,2),pt=Nt[0],mt=Nt[1],jt=Gt(function(kt,Lt,Cn){if(tt(Lt),z&&Cn!==!1){var Wn=kt||Re[Re.length-1];z(Wn,Lt)}}),Kt=function(){vt(De()),Ce(!1,{force:!0})},cn=function(Lt){!w&&!ae.current.nativeElement.contains(document.activeElement)&&ae.current.focus(),Ce(!0),de?.(Lt)},tn=function(){vt(null),Ce(!1,{force:!0})},Bt=s.useState(null),It=fe(Bt,2),Wt=It[0],ot=It[1],Et=s.useState(null),gt=fe(Et,2),Xe=gt[0],it=gt[1],ft=s.useMemo(function(){var kt=[Xe].concat(Te(Re)).filter(function(Lt){return Lt});return B?kt:kt.slice(0,1)},[Re,Xe,B]),_t=s.useMemo(function(){return!B&&Xe?[Xe]:Re.filter(function(kt){return kt})},[Re,Xe,B]);s.useEffect(function(){ve||it(null)},[ve]);var Yt=SL(ne),St=function(Lt){it(Lt),ot("preset")},Mt=function(Lt){var Cn=B?ge(De(),Lt):[Lt],Wn=vt(Cn);Wn&&!B&&Ce(!1,{force:!0})},Ht=function(Lt){Mt(Lt)},vn=function(Lt){it(Lt),ot("cell")},En=function(Lt){Ce(!0),Fe(Lt)},pn=function(Lt){if(we("panel"),!(B&&rt!==L)){var Cn=B?ge(De(),Lt):[Lt];ke(Cn),!S&&!i&&o===rt&&Kt()}},Zn=function(){Ce(!1)},Jn=YE(oe,me,ue),Ir=s.useMemo(function(){var kt=Qn(a,!1),Lt=Qt(a,[].concat(Te(Object.keys(kt)),["onChange","onCalendarChange","style","className","onPanelChange"]));return R(R({},Lt),{},{multiple:a.multiple})},[a]),ur=s.createElement(NL,xe({},Ir,{showNow:ct,showTime:j,disabledDate:$,onFocus:En,onBlur:Ge,picker:L,mode:Ye,internalMode:rt,onPanelChange:jt,format:c,value:Re,isInvalid:u,onChange:null,onSelect:pn,pickerValue:pt,defaultOpenValue:j?.defaultOpenValue,onPickerValueChange:mt,hoverValue:ft,onHover:vn,needConfirm:S,onSubmit:Kt,onOk:_e,presets:Yt,onPresetHover:St,onPresetSubmit:Mt,onNow:Ht,cellRender:Jn})),hr=function(Lt){ke(Lt)},or=function(){we("input")},On=function(Lt){we("input"),Ce(!0,{inherit:!0}),Fe(Lt)},Vt=function(Lt){Ce(!1),Ge(Lt)},zt=function(Lt,Cn){Lt.key==="Tab"&&Kt(),x?.(Lt,Cn)},Pn=s.useMemo(function(){return{prefixCls:f,locale:N,generateConfig:D,button:se.button,input:se.input}},[f,N,D,se.button,se.input]);return un(function(){ve&&Ie!==void 0&&jt(null,L,!1)},[ve,Ie,L]),un(function(){var kt=we();!ve&&kt==="input"&&(Ce(!1),Kt()),!ve&&i&&!S&&kt==="panel"&&Kt()},[ve]),s.createElement(di.Provider,{value:Pn},s.createElement(oL,xe({},sL(a),{popupElement:ur,popupStyle:m.popup,popupClassName:g.popup,visible:ve,onClose:Zn}),s.createElement(pie,xe({},a,{ref:ae,suffixIcon:Y,removeIcon:Z,activeHelp:!!Xe,allHelp:!!Xe&&Wt==="preset",focused:Be,onFocus:On,onBlur:Vt,onKeyDown:zt,onSubmit:Kt,value:_t,maskFormat:c,onChange:hr,onInputChange:or,internalPicker:o,format:l,inputReadOnly:X,disabled:w,open:ve,onOpenChange:Ce,onClick:cn,onClear:tn,invalid:He,onInvalid:function(Lt){Pe(Lt,0)}}))))}var bie=s.forwardRef(hie);const DL=s.createContext(null),yie=DL.Provider,FL=s.createContext(null),Cie=FL.Provider;var Sie=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],kL=s.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,a=e.className,o=e.style,i=e.checked,l=e.disabled,c=e.defaultChecked,u=c===void 0?!1:c,d=e.type,f=d===void 0?"checkbox":d,m=e.title,g=e.onChange,h=Ue(e,Sie),b=s.useRef(null),p=s.useRef(null),S=Tt(u,{value:i}),C=fe(S,2),x=C[0],w=C[1];s.useImperativeHandle(t,function(){return{focus:function(M){var O;(O=b.current)===null||O===void 0||O.focus(M)},blur:function(){var M;(M=b.current)===null||M===void 0||M.blur()},input:b.current,nativeElement:p.current}});var $=le(r,a,q(q({},"".concat(r,"-checked"),x),"".concat(r,"-disabled"),l)),E=function(M){l||("checked"in e||w(M.target.checked),g?.({target:R(R({},e),{},{type:f,checked:M.target.checked}),stopPropagation:function(){M.stopPropagation()},preventDefault:function(){M.preventDefault()},nativeEvent:M.nativeEvent}))};return s.createElement("span",{className:$,title:m,style:o,ref:p},s.createElement("input",xe({},h,{className:"".concat(r,"-input"),ref:b,onChange:E,disabled:l,checked:!!x,type:f})),s.createElement("span",{className:"".concat(r,"-inner")}))});function LL(e){const t=Q.useRef(null),n=()=>{ln.cancel(t.current),t.current=null};return[()=>{n(),t.current=ln(()=>{t.current=null})},o=>{t.current&&(o.stopPropagation(),n()),e?.(o)}]}const xie=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},fn(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},wie=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:a,motionDurationSlow:o,motionDurationMid:i,motionEaseInOutCirc:l,colorBgContainer:c,colorBorder:u,lineWidth:d,colorBgContainerDisabled:f,colorTextDisabled:m,paddingXS:g,dotColorDisabled:h,lineType:b,radioColor:p,radioBgColor:S,calc:C}=e,x=`${t}-inner`,$=C(a).sub(C(4).mul(2)),E=C(1).mul(a).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},fn(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${ce(d)} ${b} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},fn(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &, - &:hover ${x}`]:{borderColor:r},[`${t}-input:focus-visible + ${x}`]:jo(e),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:E,height:E,marginBlockStart:C(1).mul(a).div(-2).equal({unit:!0}),marginInlineStart:C(1).mul(a).div(-2).equal({unit:!0}),backgroundColor:p,borderBlockStart:0,borderInlineStart:0,borderRadius:E,transform:"scale(0)",opacity:0,transition:`all ${o} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:E,height:E,backgroundColor:c,borderColor:u,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${i}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[x]:{borderColor:r,backgroundColor:S,"&::after":{transform:`scale(${e.calc(e.dotSize).div(a).equal()})`,opacity:1,transition:`all ${o} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[x]:{backgroundColor:f,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:h}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:m,cursor:"not-allowed"},[`&${t}-checked`]:{[x]:{"&::after":{transform:`scale(${C($).div(a).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:g,paddingInlineEnd:g}})}},$ie=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:a,lineType:o,colorBorder:i,motionDurationMid:l,buttonPaddingInline:c,fontSize:u,buttonBg:d,fontSizeLG:f,controlHeightLG:m,controlHeightSM:g,paddingXS:h,borderRadius:b,borderRadiusSM:p,borderRadiusLG:S,buttonCheckedBg:C,buttonSolidCheckedColor:x,colorTextDisabled:w,colorBgContainerDisabled:$,buttonCheckedBgDisabled:E,buttonCheckedColorDisabled:P,colorPrimary:M,colorPrimaryHover:O,colorPrimaryActive:T,buttonSolidCheckedBg:N,buttonSolidCheckedHoverBg:D,buttonSolidCheckedActiveBg:L,calc:_}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:ce(_(n).sub(_(a).mul(2)).equal()),background:d,border:`${ce(a)} ${o} ${i}`,borderBlockStartWidth:_(a).add(.02).equal(),borderInlineEndWidth:a,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`box-shadow ${l}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:last-child)":{marginInlineEnd:_(a).mul(-1).equal()},"&:first-child":{borderInlineStart:`${ce(a)} ${o} ${i}`,borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b},"&:first-child:last-child":{borderRadius:b},[`${r}-group-large &`]:{height:m,fontSize:f,lineHeight:ce(_(m).sub(_(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:S,borderEndStartRadius:S},"&:last-child":{borderStartEndRadius:S,borderEndEndRadius:S}},[`${r}-group-small &`]:{height:g,paddingInline:_(h).sub(a).equal(),paddingBlock:0,lineHeight:ce(_(g).sub(_(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:p,borderEndStartRadius:p},"&:last-child":{borderStartEndRadius:p,borderEndEndRadius:p}},"&:hover":{position:"relative",color:M},"&:has(:focus-visible)":jo(e),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:M,background:C,borderColor:M,"&::before":{backgroundColor:M},"&:first-child":{borderColor:M},"&:hover":{color:O,borderColor:O,"&::before":{backgroundColor:O}},"&:active":{color:T,borderColor:T,"&::before":{backgroundColor:T}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:x,background:N,borderColor:N,"&:hover":{color:x,background:D,borderColor:D},"&:active":{color:x,background:L,borderColor:L}},"&-disabled":{color:w,backgroundColor:$,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:w,backgroundColor:$,borderColor:i}},[`&-disabled${r}-button-wrapper-checked`]:{color:P,backgroundColor:E,borderColor:i,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},Eie=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:a,fontSizeLG:o,colorText:i,colorBgContainer:l,colorTextDisabled:c,controlItemBgActiveDisabled:u,colorTextLightSolid:d,colorPrimary:f,colorPrimaryHover:m,colorPrimaryActive:g,colorWhite:h}=e,b=4,p=o,S=t?p-b*2:p-(b+a)*2;return{radioSize:p,dotSize:S,dotColorDisabled:c,buttonSolidCheckedColor:d,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:m,buttonSolidCheckedActiveBg:g,buttonBg:l,buttonCheckedBg:l,buttonColor:i,buttonCheckedBgDisabled:u,buttonCheckedColorDisabled:c,buttonPaddingInline:n-a,wrapperMarginInlineEnd:r,radioColor:t?f:h,radioBgColor:t?l:f}},zL=rn("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${ce(n)} ${t}`,o=Xt(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[xie(o),wie(o),$ie(o)]},Eie,{unitless:{radioSize:!0,dotSize:!0}});var Pie=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r;const a=s.useContext(DL),o=s.useContext(FL),{getPrefixCls:i,direction:l,radio:c}=s.useContext(Ot),u=s.useRef(null),d=wr(t,u),{isFormItemInput:f}=s.useContext(Or),m=j=>{var k,z;(k=e.onChange)===null||k===void 0||k.call(e,j),(z=a?.onChange)===null||z===void 0||z.call(a,j)},{prefixCls:g,className:h,rootClassName:b,children:p,style:S,title:C}=e,x=Pie(e,["prefixCls","className","rootClassName","children","style","title"]),w=i("radio",g),$=(a?.optionType||o)==="button",E=$?`${w}-button`:w,P=zn(w),[M,O,T]=zL(w,P),N=Object.assign({},x),D=s.useContext(Sr);a&&(N.name=a.name,N.onChange=m,N.checked=e.value===a.value,N.disabled=(n=N.disabled)!==null&&n!==void 0?n:a.disabled),N.disabled=(r=N.disabled)!==null&&r!==void 0?r:D;const L=le(`${E}-wrapper`,{[`${E}-wrapper-checked`]:N.checked,[`${E}-wrapper-disabled`]:N.disabled,[`${E}-wrapper-rtl`]:l==="rtl",[`${E}-wrapper-in-form-item`]:f,[`${E}-wrapper-block`]:!!a?.block},c?.className,h,b,O,T,P),[_,F]=LL(N.onClick);return M(s.createElement(fv,{component:"Radio",disabled:N.disabled},s.createElement("label",{className:L,style:Object.assign(Object.assign({},c?.style),S),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:C,onClick:_},s.createElement(kL,Object.assign({},N,{className:le(N.className,{[Sh]:!$}),type:"radio",prefixCls:E,ref:d,onClick:F})),p!==void 0?s.createElement("span",{className:`${E}-label`},p):null)))},Np=s.forwardRef(Oie),Rie=["parentNode"],Iie="form_item";function xf(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function AL(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:Rie.includes(n)?`${Iie}_${n}`:n}function BL(e,t,n,r,a,o){let i=r;return o!==void 0?i=o:n.validating?i="validating":e.length?i="error":t.length?i="warning":(n.touched||a&&n.validated)&&(i="success"),i}var Mie=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);ae??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:a=>o=>{const i=Hw(a);o?n.current[i]=o:delete n.current[i]}},scrollToField:(a,o={})=>{const{focus:i}=o,l=Mie(o,["focus"]),c=T8(a,r);c&&(aX(c,Object.assign({scrollMode:"if-needed",block:"nearest"},l)),i&&r.focusField(a))},focusField:a=>{var o,i;const l=r.getFieldInstance(a);typeof l?.focus=="function"?l.focus():(i=(o=T8(a,r))===null||o===void 0?void 0:o.focus)===null||i===void 0||i.call(o)},getFieldInstance:a=>{const o=Hw(a);return n.current[o]}}),[e,t]);return[r]}const Tie=s.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=s.useContext(Ot),{name:a}=s.useContext(Or),o=Ku(Hw(a)),{prefixCls:i,className:l,rootClassName:c,options:u,buttonStyle:d="outline",disabled:f,children:m,size:g,style:h,id:b,optionType:p,name:S=o,defaultValue:C,value:x,block:w=!1,onChange:$,onMouseEnter:E,onMouseLeave:P,onFocus:M,onBlur:O}=e,[T,N]=Tt(C,{value:x}),D=s.useCallback(W=>{const G=T,X=W.target.value;"value"in e||N(X),X!==G&&$?.(W)},[T,N,$]),L=n("radio",i),_=`${L}-group`,F=zn(L),[j,k,z]=zL(L,F);let V=m;u&&u.length>0&&(V=u.map(W=>typeof W=="string"||typeof W=="number"?s.createElement(Np,{key:W.toString(),prefixCls:L,disabled:f,value:W,checked:T===W},W):s.createElement(Np,{key:`radio-group-value-options-${W.value}`,prefixCls:L,disabled:W.disabled||f,value:W.value,checked:T===W.value,title:W.title,style:W.style,className:W.className,id:W.id,required:W.required},W.label)));const H=ar(g),B=le(_,`${_}-${d}`,{[`${_}-${H}`]:H,[`${_}-rtl`]:r==="rtl",[`${_}-block`]:w},l,c,k,z,F),K=s.useMemo(()=>({onChange:D,value:T,disabled:f,name:S,optionType:p,block:w}),[D,T,f,S,p,w]);return j(s.createElement("div",Object.assign({},Qn(e,{aria:!0,data:!0}),{className:B,style:h,onMouseEnter:E,onMouseLeave:P,onFocus:M,onBlur:O,id:b,ref:t}),s.createElement(yie,{value:K},V)))}),Nie=s.memo(Tie);var _ie=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:n}=s.useContext(Ot),{prefixCls:r}=e,a=_ie(e,["prefixCls"]),o=n("radio",r);return s.createElement(Cie,{value:"button"},s.createElement(Np,Object.assign({prefixCls:o},a,{type:"radio",ref:t})))},Die=s.forwardRef(jie),ss=Np;ss.Button=Die;ss.Group=Nie;ss.__ANT_RADIO=!0;function rc(e){return Xt(e,{inputAffixPadding:e.paddingXXS})}const ac=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:a,controlHeightSM:o,controlHeightLG:i,fontSizeLG:l,lineHeightLG:c,paddingSM:u,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:m,colorPrimaryHover:g,colorPrimary:h,controlOutlineWidth:b,controlOutline:p,colorErrorOutline:S,colorWarningOutline:C,colorBgContainer:x,inputFontSize:w,inputFontSizeLG:$,inputFontSizeSM:E}=e,P=w||n,M=E||P,O=$||l,T=Math.round((t-P*r)/2*10)/10-a,N=Math.round((o-M*r)/2*10)/10-a,D=Math.ceil((i-O*c)/2*10)/10-a;return{paddingBlock:Math.max(T,0),paddingBlockSM:Math.max(N,0),paddingBlockLG:Math.max(D,0),paddingInline:u-a,paddingInlineSM:d-a,paddingInlineLG:f-a,addonBg:m,activeBorderColor:h,hoverBorderColor:g,activeShadow:`0 0 0 ${b}px ${p}`,errorActiveShadow:`0 0 0 ${b}px ${S}`,warningActiveShadow:`0 0 0 ${b}px ${C}`,hoverBg:x,activeBg:x,inputFontSize:P,inputFontSizeLG:O,inputFontSizeSM:M}},Fie=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Jh=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},Fie(Xt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),t4=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),N8=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},t4(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),n4=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t4(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Jh(e))}),N8(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),N8(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),_8=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),VL=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${ce(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},_8(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),_8(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Jh(e))}})}),r4=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},WL=(e,t)=>{var n;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(n=t?.inputColor)!==null&&n!==void 0?n:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},j8=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},WL(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),a4=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},WL(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Jh(e))}),j8(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),j8(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),D8=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),KL=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},D8(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),D8(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${ce(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ce(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ce(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${ce(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ce(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ce(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),qL=(e,t)=>({background:e.colorBgContainer,borderWidth:`${ce(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),F8=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},qL(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),o4=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},qL(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),F8(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),F8(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),i4=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),UL=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:a}=e;return{padding:`${ce(t)} ${ce(a)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},l4=e=>({padding:`${ce(e.paddingBlockSM)} ${ce(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Ev=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${ce(e.paddingBlock)} ${ce(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},i4(e.colorTextPlaceholder)),{"&-lg":Object.assign({},UL(e)),"&-sm":Object.assign({},l4(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),GL=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},UL(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},l4(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${ce(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${ce(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${ce(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${ce(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${ce(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},Ei()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[` - & > ${t}-affix-wrapper, - & > ${t}-number-affix-wrapper, - & > ${n}-picker-range - `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector, - & > ${n}-select-auto-complete ${t}, - & > ${n}-cascader-picker ${t}, - & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child, - & > ${n}-select:first-child > ${n}-select-selector, - & > ${n}-select-auto-complete:first-child ${t}, - & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, - & > ${n}-select:last-child > ${n}-select-selector, - & > ${n}-cascader-picker:last-child ${t}, - & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},kie=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:a}=e,i=a(n).sub(a(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},fn(e)),Ev(e)),n4(e)),a4(e)),r4(e)),o4(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},Lie=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${ce(e.inputAffixPadding)}`}}}},zie=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:a,colorIcon:o,colorIconHover:i,iconCls:l}=e,c=`${t}-affix-wrapper`,u=`${t}-affix-wrapper-disabled`;return{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},Ev(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),Lie(e)),{[`${l}${t}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${a}`,"&:hover":{color:i}}}),[`${t}-underlined`]:{borderRadius:0},[u]:{[`${l}${t}-password-icon`]:{color:o,cursor:"not-allowed","&:hover":{color:o}}}}},Aie=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},fn(e)),GL(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},VL(e)),KL(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},Bie=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:not([disabled]):hover, &:not([disabled]):focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-color-primary):not(${n}-btn-variant-text)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-color-primary)`]:{color:e.colorTextDescription,"&:not([disabled]):hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{inset:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button, - > ${t}, - ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},Hie=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},XL=rn(["Input","Shared"],e=>{const t=Xt(e,rc(e));return[kie(t),zie(t)]},ac,{resetFont:!1}),YL=rn(["Input","Component"],e=>{const t=Xt(e,rc(e));return[Aie(t),Bie(t),Hie(t),os(t)]},ac,{resetFont:!1}),c1=(e,t)=>{const{componentCls:n,controlHeight:r}=e,a=t?`${n}-${t}`:"",o=lk(e);return[{[`${n}-multiple${a}`]:{paddingBlock:o.containerPadding,paddingInlineStart:o.basePadding,minHeight:r,[`${n}-selection-item`]:{height:o.itemHeight,lineHeight:ce(o.itemLineHeight)}}}]},Vie=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,a=Xt(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),o=Xt(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[c1(a,"small"),c1(e),c1(o,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},sk(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},Wie=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:a,motionDurationMid:o,cellHoverBg:i,lineWidth:l,lineType:c,colorPrimary:u,cellActiveWithRangeBg:d,colorTextLightSolid:f,colorTextDisabled:m,cellBgDisabled:g,colorFillSecondary:h}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:ce(r),borderRadius:a,transition:`background ${o}`},[`&:hover:not(${t}-in-view):not(${t}-disabled), - &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:i}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${ce(l)} ${c} ${u}`,borderRadius:a,content:'""'}},[`&-in-view${t}-in-range, - &-in-view${t}-range-start, - &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:d}},[`&-in-view${t}-selected, - &-in-view${t}-range-start, - &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:f,background:u},[`&${t}-disabled ${n}`]:{background:h}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:a,borderEndStartRadius:a,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a},"&-disabled":{color:m,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:g}},[`&-disabled${t}-today ${n}::before`]:{borderColor:m}}},Kie=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:a,pickerControlIconSize:o,cellWidth:i,paddingSM:l,paddingXS:c,paddingXXS:u,colorBgContainer:d,lineWidth:f,lineType:m,borderRadiusLG:g,colorPrimary:h,colorTextHeading:b,colorSplit:p,pickerControlIconBorderWidth:S,colorIcon:C,textHeight:x,motionDurationMid:w,colorIconHover:$,fontWeightStrong:E,cellHeight:P,pickerCellPaddingVertical:M,colorTextDisabled:O,colorText:T,fontSize:N,motionDurationSlow:D,withoutTimeCellHeight:L,pickerQuarterPanelContentHeight:_,borderRadiusSM:F,colorTextLightSolid:j,cellHoverBg:k,timeColumnHeight:z,timeColumnWidth:V,timeCellHeight:H,controlItemBgActive:B,marginXXS:K,pickerDatePanelPaddingHorizontal:W,pickerControlIconMargin:G}=e,X=e.calc(i).mul(7).add(e.calc(W).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:d,borderRadius:g,outline:"none","&-focused":{borderColor:h},"&-rtl":{[`${t}-prev-icon, - ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon, - ${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:X},"&-header":{display:"flex",padding:`0 ${ce(c)}`,color:b,borderBottom:`${ce(f)} ${m} ${p}`,"> *":{flex:"none"},button:{padding:0,color:C,lineHeight:ce(x),background:"transparent",border:0,cursor:"pointer",transition:`color ${w}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:N,"&:hover":{color:$},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:E,lineHeight:ce(x),"> button":{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:c},"&:hover":{color:h}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:o,height:o,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:o,height:o,border:"0 solid currentcolor",borderBlockStartWidth:S,borderInlineStartWidth:S,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:G,insetInlineStart:G,display:"inline-block",width:o,height:o,border:"0 solid currentcolor",borderBlockStartWidth:S,borderInlineStartWidth:S,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:P,fontWeight:"normal"},th:{height:e.calc(P).add(e.calc(M).mul(2)).equal(),color:T,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${ce(M)} 0`,color:O,cursor:"pointer","&-in-view":{color:T}},Wie(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(L).mul(4).equal()},[r]:{padding:`0 ${ce(c)}`}},"&-quarter-panel":{[`${t}-content`]:{height:_}},"&-decade-panel":{[r]:{padding:`0 ${ce(e.calc(c).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${ce(c)}`},[r]:{width:a}},"&-date-panel":{[`${t}-body`]:{padding:`${ce(c)} ${ce(W)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel-row":{td:{"&:before":{transition:`background ${w}`},"&:first-child:before":{borderStartStartRadius:F,borderEndStartRadius:F},"&:last-child:before":{borderStartEndRadius:F,borderEndEndRadius:F}},"&:hover td:before":{background:k},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:h},[`&${t}-cell-week`]:{color:new dn(j).setA(.5).toHexString()},[r]:{color:j}}},"&-range-hover td:before":{background:B}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${ce(c)} ${ce(l)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${ce(f)} ${m} ${p}`},[`${t}-date-panel, - ${t}-time-panel`]:{transition:`opacity ${D}`},"&-active":{[`${t}-date-panel, - ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:z},"&-column":{flex:"1 0 auto",width:V,margin:`${ce(u)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${w}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${ce(H)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${ce(f)} ${m} ${p}`},"&-active":{background:new dn(B).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:K,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(V).sub(e.calc(K).mul(2)).equal(),height:H,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(V).sub(H).div(2).equal(),color:T,lineHeight:ce(H),borderRadius:F,cursor:"pointer",transition:`background ${w}`,"&:hover":{background:k}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:B}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:O,background:"transparent",cursor:"not-allowed"}}}}}}}}},qie=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:a,antCls:o,colorPrimary:i,cellActiveWithRangeBg:l,colorPrimaryBorder:c,lineType:u,colorSplit:d}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${ce(r)} ${u} ${d}`,"&-extra":{padding:`0 ${ce(a)}`,lineHeight:ce(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${ce(r)} ${u} ${d}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:ce(a),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:ce(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${o}-tag-blue`]:{color:i,background:l,borderColor:c,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},Uie=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:a}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(a).add(e.calc(r).div(2)).equal()}},Gie=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:a,paddingXXS:o,lineWidth:i}=e,l=o*2,c=i*2,u=Math.min(n-l,n-c),d=Math.min(r-l,r-c),f=Math.min(a-l,a-c);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(o/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new dn(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new dn(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:a*1.4,timeColumnHeight:224,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:a,withoutTimeCellHeight:a*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:u,multipleItemHeightSM:d,multipleItemHeightLG:f,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},Xie=e=>Object.assign(Object.assign(Object.assign(Object.assign({},ac(e)),Gie(e)),Ah(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),Yie=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign(Object.assign({},n4(e)),o4(e)),a4(e)),r4(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${ce(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${ce(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${ce(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${ce(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},u1=(e,t)=>({padding:`${ce(e)} ${ce(t)}`}),Qie=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},Zie=e=>{var t;const{componentCls:n,antCls:r,paddingInline:a,lineWidth:o,lineType:i,colorBorder:l,borderRadius:c,motionDurationMid:u,colorTextDisabled:d,colorTextPlaceholder:f,colorTextQuaternary:m,fontSizeLG:g,inputFontSizeLG:h,fontSizeSM:b,inputFontSizeSM:p,controlHeightSM:S,paddingInlineSM:C,paddingXS:x,marginXS:w,colorIcon:$,lineWidthBold:E,colorPrimary:P,motionDurationSlow:M,zIndexPopup:O,paddingXXS:T,sizePopupArrow:N,colorBgElevated:D,borderRadiusLG:L,boxShadowSecondary:_,borderRadiusSM:F,colorSplit:j,cellHoverBg:k,presetsWidth:z,presetsMaxWidth:V,boxShadowPopoverArrow:H,fontHeight:B,lineHeightLG:K}=e;return[{[n]:Object.assign(Object.assign(Object.assign({},fn(e)),u1(e.paddingBlock,e.paddingInline)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:c,transition:`border ${u}, box-shadow ${u}, background ${u}`,[`${n}-prefix`]:{flex:"0 0 auto",marginInlineEnd:e.inputAffixPadding},[`${n}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:(t=e.inputFontSize)!==null&&t!==void 0?t:e.fontSize,lineHeight:e.lineHeight,transition:`all ${u}`},i4(f)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:d,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:f}}},"&-large":Object.assign(Object.assign({},u1(e.paddingBlockLG,e.paddingInlineLG)),{[`${n}-input > input`]:{fontSize:h??g,lineHeight:K}}),"&-small":Object.assign(Object.assign({},u1(e.paddingBlockSM,e.paddingInlineSM)),{[`${n}-input > input`]:{fontSize:p??b}}),[`${n}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(x).div(2).equal(),color:m,lineHeight:1,pointerEvents:"none",transition:`opacity ${u}, color ${u}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:w}}},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:m,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${u}, color ${u}`,"> *":{verticalAlign:"top"},"&:hover":{color:$}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-suffix:not(:last-child)`]:{opacity:0}},[`${n}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:g,color:m,fontSize:g,verticalAlign:"top",cursor:"default",[`${n}-focused &`]:{color:$},[`${n}-range-separator &`]:{[`${n}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${n}-active-bar`]:{bottom:e.calc(o).mul(-1).equal(),height:E,background:P,opacity:0,transition:`all ${M} ease-out`,pointerEvents:"none"},[`&${n}-focused`]:{[`${n}-active-bar`]:{opacity:1}},[`${n}-range-separator`]:{alignItems:"center",padding:`0 ${ce(x)}`,lineHeight:1}},"&-range, &-multiple":{[`${n}-clear`]:{insetInlineEnd:a},[`&${n}-small`]:{[`${n}-clear`]:{insetInlineEnd:C}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},fn(e)),Kie(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:O,[`&${n}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${n}-dropdown-placement-bottomLeft, - &${n}-dropdown-placement-bottomRight`]:{[`${n}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${n}-dropdown-placement-topLeft, - &${n}-dropdown-placement-topRight`]:{[`${n}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${r}-slide-up-appear, &${r}-slide-up-enter`]:{[`${n}-range-arrow${n}-range-arrow`]:{transition:"none"}},[`&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-topLeft, - &${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-topRight, - &${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-topLeft, - &${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-topRight`]:{animationName:Ph},[`&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-bottomLeft, - &${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-bottomRight, - &${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-bottomLeft, - &${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-bottomRight`]:{animationName:$h},[`&${r}-slide-up-leave ${n}-panel-container`]:{pointerEvents:"none"},[`&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-topLeft, - &${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-topRight`]:{animationName:Oh},[`&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-bottomLeft, - &${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-bottomRight`]:{animationName:Eh},[`${n}-panel > ${n}-time-panel`]:{paddingTop:T},[`${n}-range-wrapper`]:{display:"flex",position:"relative"},[`${n}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(a).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${M} ease-out`},bk(e,D,H)),{"&:before":{insetInlineStart:e.calc(a).mul(1.5).equal()}}),[`${n}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:D,borderRadius:L,boxShadow:_,transition:`margin ${M}`,display:"inline-block",pointerEvents:"auto",[`${n}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${n}-presets`]:{display:"flex",flexDirection:"column",minWidth:z,maxWidth:V,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:x,borderInlineEnd:`${ce(o)} ${i} ${j}`,li:Object.assign(Object.assign({},ra),{borderRadius:F,paddingInline:x,paddingBlock:e.calc(S).sub(B).div(2).equal(),cursor:"pointer",transition:`all ${M}`,"+ li":{marginTop:w},"&:hover":{background:k}})}},[`${n}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${n}-panel`]:{borderWidth:0}}},[`${n}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${n}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:l}}}}),"&-dropdown-range":{padding:`${ce(e.calc(N).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${n}-separator`]:{transform:"scale(-1, 1)"},[`${n}-footer`]:{"&-extra":{direction:"rtl"}}}})},Pi(e,"slide-up"),Pi(e,"slide-down"),Pu(e,"move-up"),Pu(e,"move-down")]},QL=rn("DatePicker",e=>{const t=Xt(rc(e),Uie(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[qie(t),Zie(t),Yie(t),Qie(t),Vie(t),os(e,{focusElCls:`${e.componentCls}-focused`})]},Xie);var Jie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},ele=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:Jie}))},ZL=s.forwardRef(ele);const e0=s.createContext(null);var tle=function(t){var n=t.activeTabOffset,r=t.horizontal,a=t.rtl,o=t.indicator,i=o===void 0?{}:o,l=i.size,c=i.align,u=c===void 0?"center":c,d=s.useState(),f=fe(d,2),m=f[0],g=f[1],h=s.useRef(),b=Q.useCallback(function(S){return typeof l=="function"?l(S):typeof l=="number"?l:S},[l]);function p(){ln.cancel(h.current)}return s.useEffect(function(){var S={};if(n)if(r){S.width=b(n.width);var C=a?"right":"left";u==="start"&&(S[C]=n[C]),u==="center"&&(S[C]=n[C]+n.width/2,S.transform=a?"translateX(50%)":"translateX(-50%)"),u==="end"&&(S[C]=n[C]+n.width,S.transform="translateX(-100%)")}else S.height=b(n.height),u==="start"&&(S.top=n.top),u==="center"&&(S.top=n.top+n.height/2,S.transform="translateY(-50%)"),u==="end"&&(S.top=n.top+n.height,S.transform="translateY(-100%)");return p(),h.current=ln(function(){var x=m&&S&&Object.keys(S).every(function(w){var $=S[w],E=m[w];return typeof $=="number"&&typeof E=="number"?Math.round($)===Math.round(E):$===E});x||g(S)}),p},[JSON.stringify(n),r,a,u,b]),{style:m}},k8={width:0,height:0,left:0,top:0};function nle(e,t,n){return s.useMemo(function(){for(var r,a=new Map,o=t.get((r=e[0])===null||r===void 0?void 0:r.key)||k8,i=o.left+o.width,l=0;l_?(D=T,E.current="x"):(D=N,E.current="y"),t(-D,-D)&&O.preventDefault()}var M=s.useRef(null);M.current={onTouchStart:x,onTouchMove:w,onTouchEnd:$,onWheel:P},s.useEffect(function(){function O(L){M.current.onTouchStart(L)}function T(L){M.current.onTouchMove(L)}function N(L){M.current.onTouchEnd(L)}function D(L){M.current.onWheel(L)}return document.addEventListener("touchmove",T,{passive:!1}),document.addEventListener("touchend",N,{passive:!0}),e.current.addEventListener("touchstart",O,{passive:!0}),e.current.addEventListener("wheel",D,{passive:!1}),function(){document.removeEventListener("touchmove",T),document.removeEventListener("touchend",N)}},[])}function JL(e){var t=s.useState(0),n=fe(t,2),r=n[0],a=n[1],o=s.useRef(0),i=s.useRef();return i.current=e,Ds(function(){var l;(l=i.current)===null||l===void 0||l.call(i)},[r]),function(){o.current===r&&(o.current+=1,a(o.current))}}function ole(e){var t=s.useRef([]),n=s.useState({}),r=fe(n,2),a=r[1],o=s.useRef(typeof e=="function"?e():e),i=JL(function(){var c=o.current;t.current.forEach(function(u){c=u(c)}),t.current=[],o.current=c,a({})});function l(c){t.current.push(c),i()}return[o.current,l]}var B8={width:0,height:0,left:0,top:0,right:0};function ile(e,t,n,r,a,o,i){var l=i.tabs,c=i.tabPosition,u=i.rtl,d,f,m;return["top","bottom"].includes(c)?(d="width",f=u?"right":"left",m=Math.abs(n)):(d="height",f="top",m=-n),s.useMemo(function(){if(!l.length)return[0,0];for(var g=l.length,h=g,b=0;bMath.floor(m+t)){h=b-1;break}}for(var S=0,C=g-1;C>=0;C-=1){var x=e.get(l[C].key)||B8;if(x[f]h?[0,-1]:[S,h]},[e,t,r,a,o,m,c,l.map(function(g){return g.key}).join("_"),u])}function H8(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var lle="TABS_DQ";function e9(e){return String(e).replace(/"/g,lle)}function s4(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var t9=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,a=e.locale,o=e.style;return!r||r.showAdd===!1?null:s.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:o,"aria-label":a?.addAriaLabel||"Add tab",onClick:function(l){r.onEdit("add",{event:l})}},r.addIcon||"+")}),V8=s.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,a=e.extra;if(!a)return null;var o,i={};return st(a)==="object"&&!s.isValidElement(a)?i=a:i.right=a,n==="right"&&(o=i.right),n==="left"&&(o=i.left),o?s.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},o):null}),sle=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,a=e.tabs,o=e.locale,i=e.mobile,l=e.more,c=l===void 0?{}:l,u=e.style,d=e.className,f=e.editable,m=e.tabBarGutter,g=e.rtl,h=e.removeAriaLabel,b=e.onTabClick,p=e.getPopupContainer,S=e.popupClassName,C=s.useState(!1),x=fe(C,2),w=x[0],$=x[1],E=s.useState(null),P=fe(E,2),M=P[0],O=P[1],T=c.icon,N=T===void 0?"More":T,D="".concat(r,"-more-popup"),L="".concat(n,"-dropdown"),_=M!==null?"".concat(D,"-").concat(M):null,F=o?.dropdownAriaLabel;function j(W,G){W.preventDefault(),W.stopPropagation(),f.onEdit("remove",{key:G,event:W})}var k=s.createElement(Xu,{onClick:function(G){var X=G.key,Y=G.domEvent;b(X,Y),$(!1)},prefixCls:"".concat(L,"-menu"),id:D,tabIndex:-1,role:"listbox","aria-activedescendant":_,selectedKeys:[M],"aria-label":F!==void 0?F:"expanded dropdown"},a.map(function(W){var G=W.closable,X=W.disabled,Y=W.closeIcon,Z=W.key,ee=W.label,re=s4(G,Y,f,X);return s.createElement(xv,{key:Z,id:"".concat(D,"-").concat(Z),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(Z),disabled:X},s.createElement("span",null,ee),re&&s.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(L,"-menu-item-remove"),onClick:function(se){se.stopPropagation(),j(se,Z)}},Y||f.removeIcon||"×"))}));function z(W){for(var G=a.filter(function(re){return!re.disabled}),X=G.findIndex(function(re){return re.key===M})||0,Y=G.length,Z=0;Zft?"left":"right"})}),L=fe(D,2),_=L[0],F=L[1],j=L8(0,function(it,ft){!N&&b&&b({direction:it>ft?"top":"bottom"})}),k=fe(j,2),z=k[0],V=k[1],H=s.useState([0,0]),B=fe(H,2),K=B[0],W=B[1],G=s.useState([0,0]),X=fe(G,2),Y=X[0],Z=X[1],ee=s.useState([0,0]),re=fe(ee,2),ne=re[0],se=re[1],oe=s.useState([0,0]),me=fe(oe,2),ue=me[0],de=me[1],ae=ole(new Map),ie=fe(ae,2),ge=ie[0],pe=ie[1],be=nle(x,ge,Y[0]),ve=gg(K,N),Ce=gg(Y,N),he=gg(ne,N),Se=gg(ue,N),Ee=Math.floor(ve)De?De:it}var _e=s.useRef(null),Re=s.useState(),Le=fe(Re,2),Me=Le[0],Be=Le[1];function $e(){Be(Date.now())}function we(){_e.current&&clearTimeout(_e.current)}ale(P,function(it,ft){function _t(Yt,St){Yt(function(Mt){var Ht=ke(Mt+St);return Ht})}return Ee?(N?_t(F,it):_t(V,ft),we(),$e(),!0):!1}),s.useEffect(function(){return we(),Me&&(_e.current=setTimeout(function(){Be(0)},100)),we},[Me]);var Ie=ile(be,Oe,N?_:z,Ce,he,Se,R(R({},e),{},{tabs:x})),Fe=fe(Ie,2),Ge=Fe[0],et=Fe[1],Ke=Gt(function(){var it=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i,ft=be.get(it)||{width:0,height:0,left:0,right:0,top:0};if(N){var _t=_;l?ft.right<_?_t=ft.right:ft.right+ft.width>_+Oe&&(_t=ft.right+ft.width-Oe):ft.left<-_?_t=-ft.left:ft.left+ft.width>-_+Oe&&(_t=-(ft.left+ft.width-Oe)),V(0),F(ke(_t))}else{var Yt=z;ft.top<-z?Yt=-ft.top:ft.top+ft.height>-z+Oe&&(Yt=-(ft.top+ft.height-Oe)),F(0),V(ke(Yt))}}),Ye=s.useState(),tt=fe(Ye,2),rt=tt[0],ct=tt[1],Ct=s.useState(!1),yt=fe(Ct,2),dt=yt[0],vt=yt[1],bt=x.filter(function(it){return!it.disabled}).map(function(it){return it.key}),ze=function(ft){var _t=bt.indexOf(rt||i),Yt=bt.length,St=(_t+ft+Yt)%Yt,Mt=bt[St];ct(Mt)},Ve=function(ft,_t){var Yt=bt.indexOf(ft),St=x.find(function(Ht){return Ht.key===ft}),Mt=s4(St?.closable,St?.closeIcon,u,St?.disabled);Mt&&(_t.preventDefault(),_t.stopPropagation(),u.onEdit("remove",{key:ft,event:_t}),Yt===bt.length-1?ze(-1):ze(1))},Pe=function(ft,_t){vt(!0),_t.button===1&&Ve(ft,_t)},He=function(ft){var _t=ft.code,Yt=l&&N,St=bt[0],Mt=bt[bt.length-1];switch(_t){case"ArrowLeft":{N&&ze(Yt?1:-1);break}case"ArrowRight":{N&&ze(Yt?-1:1);break}case"ArrowUp":{ft.preventDefault(),N||ze(-1);break}case"ArrowDown":{ft.preventDefault(),N||ze(1);break}case"Home":{ft.preventDefault(),ct(St);break}case"End":{ft.preventDefault(),ct(Mt);break}case"Enter":case"Space":{ft.preventDefault(),h(rt??i,ft);break}case"Backspace":case"Delete":{Ve(rt,ft);break}}},Ze={};N?Ze[l?"marginRight":"marginLeft"]=m:Ze.marginTop=m;var at=x.map(function(it,ft){var _t=it.key;return s.createElement(ule,{id:a,prefixCls:C,key:_t,tab:it,style:ft===0?void 0:Ze,closable:it.closable,editable:u,active:_t===i,focus:_t===rt,renderWrapper:g,removeAriaLabel:d?.removeAriaLabel,tabCount:bt.length,currentPosition:ft+1,onClick:function(St){h(_t,St)},onKeyDown:He,onFocus:function(){dt||ct(_t),Ke(_t),$e(),P.current&&(l||(P.current.scrollLeft=0),P.current.scrollTop=0)},onBlur:function(){ct(void 0)},onMouseDown:function(St){return Pe(_t,St)},onMouseUp:function(){vt(!1)}})}),Nt=function(){return pe(function(){var ft,_t=new Map,Yt=(ft=M.current)===null||ft===void 0?void 0:ft.getBoundingClientRect();return x.forEach(function(St){var Mt,Ht=St.key,vn=(Mt=M.current)===null||Mt===void 0?void 0:Mt.querySelector('[data-node-key="'.concat(e9(Ht),'"]'));if(vn){var En=dle(vn,Yt),pn=fe(En,4),Zn=pn[0],Jn=pn[1],Ir=pn[2],ur=pn[3];_t.set(Ht,{width:Zn,height:Jn,left:Ir,top:ur})}}),_t})};s.useEffect(function(){Nt()},[x.map(function(it){return it.key}).join("_")]);var pt=JL(function(){var it=Uc(w),ft=Uc($),_t=Uc(E);W([it[0]-ft[0]-_t[0],it[1]-ft[1]-_t[1]]);var Yt=Uc(T);se(Yt);var St=Uc(O);de(St);var Mt=Uc(M);Z([Mt[0]-Yt[0],Mt[1]-Yt[1]]),Nt()}),mt=x.slice(0,Ge),jt=x.slice(et+1),Kt=[].concat(Te(mt),Te(jt)),cn=be.get(i),tn=tle({activeTabOffset:cn,horizontal:N,indicator:p,rtl:l}),Bt=tn.style;s.useEffect(function(){Ke()},[i,je,De,H8(cn),H8(be),N]),s.useEffect(function(){pt()},[l]);var It=!!Kt.length,Wt="".concat(C,"-nav-wrap"),ot,Et,gt,Xe;return N?l?(Et=_>0,ot=_!==De):(ot=_<0,Et=_!==je):(gt=z<0,Xe=z!==je),s.createElement(Vr,{onResize:pt},s.createElement("div",{ref:Ti(t,w),role:"tablist","aria-orientation":N?"horizontal":"vertical",className:le("".concat(C,"-nav"),n),style:r,onKeyDown:function(){$e()}},s.createElement(V8,{ref:$,position:"left",extra:c,prefixCls:C}),s.createElement(Vr,{onResize:pt},s.createElement("div",{className:le(Wt,q(q(q(q({},"".concat(Wt,"-ping-left"),ot),"".concat(Wt,"-ping-right"),Et),"".concat(Wt,"-ping-top"),gt),"".concat(Wt,"-ping-bottom"),Xe)),ref:P},s.createElement(Vr,{onResize:pt},s.createElement("div",{ref:M,className:"".concat(C,"-nav-list"),style:{transform:"translate(".concat(_,"px, ").concat(z,"px)"),transition:Me?"none":void 0}},at,s.createElement(t9,{ref:T,prefixCls:C,locale:d,editable:u,style:R(R({},at.length===0?void 0:Ze),{},{visibility:It?"hidden":null})}),s.createElement("div",{className:le("".concat(C,"-ink-bar"),q({},"".concat(C,"-ink-bar-animated"),o.inkBar)),style:Bt}))))),s.createElement(cle,xe({},e,{removeAriaLabel:d?.removeAriaLabel,ref:O,prefixCls:C,tabs:Kt,className:!It&&We,tabMoving:!!Me})),s.createElement(V8,{ref:E,position:"right",extra:c,prefixCls:C})))}),n9=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,o=e.id,i=e.active,l=e.tabKey,c=e.children;return s.createElement("div",{id:o&&"".concat(o,"-panel-").concat(l),role:"tabpanel",tabIndex:i?0:-1,"aria-labelledby":o&&"".concat(o,"-tab-").concat(l),"aria-hidden":!i,style:a,className:le(n,i&&"".concat(n,"-active"),r),ref:t},c)}),fle=["renderTabBar"],vle=["label","key"],mle=function(t){var n=t.renderTabBar,r=Ue(t,fle),a=s.useContext(e0),o=a.tabs;if(n){var i=R(R({},r),{},{panes:o.map(function(l){var c=l.label,u=l.key,d=Ue(l,vle);return s.createElement(n9,xe({tab:c,key:u,tabKey:u},d))})});return n(i,W8)}return s.createElement(W8,r)},gle=["key","forceRender","style","className","destroyInactiveTabPane"],ple=function(t){var n=t.id,r=t.activeKey,a=t.animated,o=t.tabPosition,i=t.destroyInactiveTabPane,l=s.useContext(e0),c=l.prefixCls,u=l.tabs,d=a.tabPane,f="".concat(c,"-tabpane");return s.createElement("div",{className:le("".concat(c,"-content-holder"))},s.createElement("div",{className:le("".concat(c,"-content"),"".concat(c,"-content-").concat(o),q({},"".concat(c,"-content-animated"),d))},u.map(function(m){var g=m.key,h=m.forceRender,b=m.style,p=m.className,S=m.destroyInactiveTabPane,C=Ue(m,gle),x=g===r;return s.createElement(Nr,xe({key:g,visible:x,forceRender:h,removeOnLeave:!!(i||S),leavedClassName:"".concat(f,"-hidden")},a.tabPaneMotion),function(w,$){var E=w.style,P=w.className;return s.createElement(n9,xe({},C,{prefixCls:f,id:n,tabKey:g,animated:d,active:x,style:R(R({},b),E),className:le(p,P),ref:$}))})})))};function hle(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=R({inkBar:!0},st(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var ble=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],K8=0,yle=s.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,a=r===void 0?"rc-tabs":r,o=e.className,i=e.items,l=e.direction,c=e.activeKey,u=e.defaultActiveKey,d=e.editable,f=e.animated,m=e.tabPosition,g=m===void 0?"top":m,h=e.tabBarGutter,b=e.tabBarStyle,p=e.tabBarExtraContent,S=e.locale,C=e.more,x=e.destroyInactiveTabPane,w=e.renderTabBar,$=e.onChange,E=e.onTabClick,P=e.onTabScroll,M=e.getPopupContainer,O=e.popupClassName,T=e.indicator,N=Ue(e,ble),D=s.useMemo(function(){return(i||[]).filter(function(ue){return ue&&st(ue)==="object"&&"key"in ue})},[i]),L=l==="rtl",_=hle(f),F=s.useState(!1),j=fe(F,2),k=j[0],z=j[1];s.useEffect(function(){z(Fh())},[]);var V=Tt(function(){var ue;return(ue=D[0])===null||ue===void 0?void 0:ue.key},{value:c,defaultValue:u}),H=fe(V,2),B=H[0],K=H[1],W=s.useState(function(){return D.findIndex(function(ue){return ue.key===B})}),G=fe(W,2),X=G[0],Y=G[1];s.useEffect(function(){var ue=D.findIndex(function(ae){return ae.key===B});if(ue===-1){var de;ue=Math.max(0,Math.min(X,D.length-1)),K((de=D[ue])===null||de===void 0?void 0:de.key)}Y(ue)},[D.map(function(ue){return ue.key}).join("_"),B,X]);var Z=Tt(null,{value:n}),ee=fe(Z,2),re=ee[0],ne=ee[1];s.useEffect(function(){n||(ne("rc-tabs-".concat(K8)),K8+=1)},[]);function se(ue,de){E?.(ue,de);var ae=ue!==B;K(ue),ae&&$?.(ue)}var oe={id:re,activeKey:B,animated:_,tabPosition:g,rtl:L,mobile:k},me=R(R({},oe),{},{editable:d,locale:S,more:C,tabBarGutter:h,onTabClick:se,onTabScroll:P,extra:p,style:b,panes:null,getPopupContainer:M,popupClassName:O,indicator:T});return s.createElement(e0.Provider,{value:{tabs:D,prefixCls:a}},s.createElement("div",xe({ref:t,id:n,className:le(a,"".concat(a,"-").concat(g),q(q(q({},"".concat(a,"-mobile"),k),"".concat(a,"-editable"),d),"".concat(a,"-rtl"),L),o)},N),s.createElement(mle,xe({},me,{renderTabBar:w})),s.createElement(ple,xe({destroyInactiveTabPane:x},oe,{animated:_}))))});const Cle={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Sle(e,t={inkBar:!0,tabPane:!1}){let n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},Cle),{motionName:aa(e,"switch")})),n}var xle=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);at)}function $le(e,t){if(e)return e.map(r=>{var a;const o=(a=r.destroyOnHidden)!==null&&a!==void 0?a:r.destroyInactiveTabPane;return Object.assign(Object.assign({},r),{destroyInactiveTabPane:o})});const n=Xn(t).map(r=>{if(s.isValidElement(r)){const{key:a,props:o}=r,i=o||{},{tab:l}=i,c=xle(i,["tab"]);return Object.assign(Object.assign({key:String(a)},c),{label:l})}return null});return wle(n)}const Ele=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[Pi(e,"slide-up"),Pi(e,"slide-down")]]},Ple=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:a,colorBorderSecondary:o,itemSelectedColor:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${ce(e.lineWidth)} ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:i,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:jo(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:"none"},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:ce(a)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${ce(e.borderRadiusLG)} ${ce(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${ce(e.borderRadiusLG)} ${ce(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:ce(a)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ce(e.borderRadiusLG)} 0 0 ${ce(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${ce(e.borderRadiusLG)} ${ce(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Ole=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},fn(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${ce(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},ra),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${ce(e.paddingXXS)} ${ce(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Rle=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:a,verticalItemPadding:o,verticalItemMargin:i,calc:l}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:a,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${ce(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, - right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav, - > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:o,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:i},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:ce(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${ce(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${ce(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Ile=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:a,cardHeightLG:o,horizontalItemPaddingSM:i,horizontalItemPaddingLG:l}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:l,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:a,minHeight:a}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${ce(e.borderRadius)} ${ce(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${ce(e.borderRadius)} ${ce(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${ce(e.borderRadius)} ${ce(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ce(e.borderRadius)} 0 0 ${ce(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:o,minHeight:o}}}}}},Mle=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:a,tabsHorizontalItemMargin:o,horizontalItemPadding:i,itemSelectedColor:l,itemColor:c}=e,u=`${t}-tab`;return{[u]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:i,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${u}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:"none",lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},Ta(e)),"&:hover":{color:r},[`&${u}-active ${u}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${u}-focus ${u}-btn:focus-visible`]:jo(e),[`&${u}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${u}-disabled ${u}-btn, &${u}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${u}-remove ${a}`]:{margin:0,verticalAlign:"middle"},[`${a}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${u} + ${u}`]:{margin:{_skip_check_:!0,value:o}}}},Tle=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:a,calc:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:ce(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:ce(e.marginXS)},marginLeft:{_skip_check_:!0,value:ce(o(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:a},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Nle=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:a,itemHoverColor:o,itemActiveColor:i,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},fn(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:a},background:"transparent",border:`${ce(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${ce(e.borderRadiusLG)} ${ce(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:o},"&:active, &:focus:not(:focus-visible)":{color:i}},Ta(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),Mle(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},Ta(e)),{"&-hidden":{display:"none"}})}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},_le=e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:a,controlHeightLG:o}=e,i=t||o,l=n||a,c=r||o+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:i,cardHeightSM:l,cardHeightLG:c,cardPadding:`${(i-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(l-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(c-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},jle=rn("Tabs",e=>{const t=Xt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${ce(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${ce(e.horizontalItemGutter)}`});return[Ile(t),Tle(t),Rle(t),Ole(t),Ple(t),Nle(t),Ele(t)]},_le),Dle=()=>null;var Fle=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r,a,o,i,l,c,u,d,f,m;const{type:g,className:h,rootClassName:b,size:p,onEdit:S,hideAdd:C,centered:x,addIcon:w,removeIcon:$,moreIcon:E,more:P,popupClassName:M,children:O,items:T,animated:N,style:D,indicatorSize:L,indicator:_,destroyInactiveTabPane:F,destroyOnHidden:j}=e,k=Fle(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator","destroyInactiveTabPane","destroyOnHidden"]),{prefixCls:z}=k,{direction:V,tabs:H,getPrefixCls:B,getPopupContainer:K}=s.useContext(Ot),W=B("tabs",z),G=zn(W),[X,Y,Z]=jle(W,G),ee=s.useRef(null);s.useImperativeHandle(t,()=>({nativeElement:ee.current}));let re;g==="editable-card"&&(re={onEdit:(ae,{key:ie,event:ge})=>{S?.(ae==="add"?ge:ie,ae)},removeIcon:(n=$??H?.removeIcon)!==null&&n!==void 0?n:s.createElement(vo,null),addIcon:(w??H?.addIcon)||s.createElement(ZL,null),showAdd:C!==!0});const ne=B(),se=ar(p),oe=$le(T,O),me=Sle(W,N),ue=Object.assign(Object.assign({},H?.style),D),de={align:(r=_?.align)!==null&&r!==void 0?r:(a=H?.indicator)===null||a===void 0?void 0:a.align,size:(c=(i=(o=_?.size)!==null&&o!==void 0?o:L)!==null&&i!==void 0?i:(l=H?.indicator)===null||l===void 0?void 0:l.size)!==null&&c!==void 0?c:H?.indicatorSize};return X(s.createElement(yle,Object.assign({ref:ee,direction:V,getPopupContainer:K},k,{items:oe,className:le({[`${W}-${se}`]:se,[`${W}-card`]:["card","editable-card"].includes(g),[`${W}-editable-card`]:g==="editable-card",[`${W}-centered`]:x},H?.className,h,b,Y,Z,G),popupClassName:le(M,Y,Z,G),style:ue,editable:re,more:Object.assign({icon:(m=(f=(d=(u=H?.more)===null||u===void 0?void 0:u.icon)!==null&&d!==void 0?d:H?.moreIcon)!==null&&f!==void 0?f:E)!==null&&m!==void 0?m:s.createElement(qh,null),transitionName:`${ne}-slide-up`},P),prefixCls:W,animated:me,indicator:de,destroyInactiveTabPane:j??F})))}),Zl=kle;Zl.TabPane=Dle;var Lle=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{prefixCls:t,className:n,hoverable:r=!0}=e,a=Lle(e,["prefixCls","className","hoverable"]);const{getPrefixCls:o}=s.useContext(Ot),i=o("card",t),l=le(`${i}-grid`,n,{[`${i}-grid-hoverable`]:r});return s.createElement("div",Object.assign({},a,{className:l}))},zle=e=>{const{antCls:t,componentCls:n,headerHeight:r,headerPadding:a,tabsMarginBottom:o}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${ce(a)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${ce(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${ce(e.borderRadiusLG)} ${ce(e.borderRadiusLG)} 0 0`},Ei()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},ra),{[` - > ${n}-typography, - > ${n}-typography-edit-content - `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:o,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${ce(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},Ale=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:a}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:` - ${ce(a)} 0 0 0 ${n}, - 0 ${ce(a)} 0 0 ${n}, - ${ce(a)} ${ce(a)} 0 0 ${n}, - ${ce(a)} 0 0 0 ${n} inset, - 0 ${ce(a)} 0 0 ${n} inset; - `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},Ble=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:a,colorBorderSecondary:o,actionsBg:i}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:i,borderTop:`${ce(e.lineWidth)} ${e.lineType} ${o}`,display:"flex",borderRadius:`0 0 ${ce(e.borderRadiusLG)} ${ce(e.borderRadiusLG)}`},Ei()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorIcon,lineHeight:ce(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:a,lineHeight:ce(e.calc(a).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${ce(e.lineWidth)} ${e.lineType} ${o}`}}})},Hle=e=>Object.assign(Object.assign({margin:`${ce(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},Ei()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},ra),"&-description":{color:e.colorTextDescription}}),Vle=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:a}=e;return{[`${t}-head`]:{padding:`0 ${ce(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${ce(e.padding)} ${ce(a)}`}}},Wle=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},Kle=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:a,boxShadowTertiary:o,bodyPadding:i,extraColor:l}=e;return{[t]:Object.assign(Object.assign({},fn(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:o},[`${t}-head`]:zle(e),[`${t}-extra`]:{marginInlineStart:"auto",color:l,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:{padding:i,borderRadius:`0 0 ${ce(e.borderRadiusLG)} ${ce(e.borderRadiusLG)}`},[`${t}-grid`]:Ale(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${ce(e.borderRadiusLG)} ${ce(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:Ble(e),[`${t}-meta`]:Hle(e)}),[`${t}-bordered`]:{border:`${ce(e.lineWidth)} ${e.lineType} ${a}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${ce(e.borderRadiusLG)} ${ce(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:Vle(e),[`${t}-loading`]:Wle(e),[`${t}-rtl`]:{direction:"rtl"}}},qle=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:a,headerFontSizeSM:o}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:a,padding:`0 ${ce(r)}`,fontSize:o,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},Ule=e=>{var t,n;return{headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:(t=e.bodyPadding)!==null&&t!==void 0?t:e.paddingLG,headerPadding:(n=e.headerPadding)!==null&&n!==void 0?n:e.paddingLG}},Gle=rn("Card",e=>{const t=Xt(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[Kle(t),qle(t)]},Ule);var q8=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return s.createElement("ul",{className:t,style:r},n.map((a,o)=>{const i=`action-${o}`;return s.createElement("li",{style:{width:`${100/n.length}%`},key:i},s.createElement("span",null,a))}))},Yle=s.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:a,style:o,extra:i,headStyle:l={},bodyStyle:c={},title:u,loading:d,bordered:f,variant:m,size:g,type:h,cover:b,actions:p,tabList:S,children:C,activeTabKey:x,defaultActiveTabKey:w,tabBarExtraContent:$,hoverable:E,tabProps:P={},classNames:M,styles:O}=e,T=q8(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","variant","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:N,direction:D,card:L}=s.useContext(Ot),[_]=Di("card",m,f),F=be=>{var ve;(ve=e.onTabChange)===null||ve===void 0||ve.call(e,be)},j=be=>{var ve;return le((ve=L?.classNames)===null||ve===void 0?void 0:ve[be],M?.[be])},k=be=>{var ve;return Object.assign(Object.assign({},(ve=L?.styles)===null||ve===void 0?void 0:ve[be]),O?.[be])},z=s.useMemo(()=>{let be=!1;return s.Children.forEach(C,ve=>{ve?.type===r9&&(be=!0)}),be},[C]),V=N("card",n),[H,B,K]=Gle(V),W=s.createElement(Tn,{loading:!0,active:!0,paragraph:{rows:4},title:!1},C),G=x!==void 0,X=Object.assign(Object.assign({},P),{[G?"activeKey":"defaultActiveKey"]:G?x:w,tabBarExtraContent:$});let Y;const Z=ar(g),ee=!Z||Z==="default"?"large":Z,re=S?s.createElement(Zl,Object.assign({size:ee},X,{className:`${V}-head-tabs`,onChange:F,items:S.map(be=>{var{tab:ve}=be,Ce=q8(be,["tab"]);return Object.assign({label:ve},Ce)})})):null;if(u||i||re){const be=le(`${V}-head`,j("header")),ve=le(`${V}-head-title`,j("title")),Ce=le(`${V}-extra`,j("extra")),he=Object.assign(Object.assign({},l),k("header"));Y=s.createElement("div",{className:be,style:he},s.createElement("div",{className:`${V}-head-wrapper`},u&&s.createElement("div",{className:ve,style:k("title")},u),i&&s.createElement("div",{className:Ce,style:k("extra")},i)),re)}const ne=le(`${V}-cover`,j("cover")),se=b?s.createElement("div",{className:ne,style:k("cover")},b):null,oe=le(`${V}-body`,j("body")),me=Object.assign(Object.assign({},c),k("body")),ue=s.createElement("div",{className:oe,style:me},d?W:C),de=le(`${V}-actions`,j("actions")),ae=p?.length?s.createElement(Xle,{actionClasses:de,actionStyle:k("actions"),actions:p}):null,ie=Qt(T,["onTabChange"]),ge=le(V,L?.className,{[`${V}-loading`]:d,[`${V}-bordered`]:_!=="borderless",[`${V}-hoverable`]:E,[`${V}-contain-grid`]:z,[`${V}-contain-tabs`]:S?.length,[`${V}-${Z}`]:Z,[`${V}-type-${h}`]:!!h,[`${V}-rtl`]:D==="rtl"},r,a,B,K),pe=Object.assign(Object.assign({},L?.style),o);return H(s.createElement("div",Object.assign({ref:t},ie,{className:ge,style:pe}),Y,se,ue,ae))});var Qle=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,className:n,avatar:r,title:a,description:o}=e,i=Qle(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:l}=s.useContext(Ot),c=l("card",t),u=le(`${c}-meta`,n),d=r?s.createElement("div",{className:`${c}-meta-avatar`},r):null,f=a?s.createElement("div",{className:`${c}-meta-title`},a):null,m=o?s.createElement("div",{className:`${c}-meta-description`},o):null,g=f||m?s.createElement("div",{className:`${c}-meta-detail`},f,m):null;return s.createElement("div",Object.assign({},i,{className:u}),d,g)},li=Yle;li.Grid=r9;li.Meta=Zle;function Jle(e,t,n){var r=n||{},a=r.noTrailing,o=a===void 0?!1:a,i=r.noLeading,l=i===void 0?!1:i,c=r.debounceMode,u=c===void 0?void 0:c,d,f=!1,m=0;function g(){d&&clearTimeout(d)}function h(p){var S=p||{},C=S.upcomingOnly,x=C===void 0?!1:C;g(),f=!x}function b(){for(var p=arguments.length,S=new Array(p),C=0;Ce?l?(m=Date.now(),o||(d=setTimeout(u?E:$,e))):$():o!==!0&&(d=setTimeout(u?E:$,u===void 0?e-w:e))}return b.cancel=h,b}function ese(e,t,n){var r={},a=r.atBegin,o=a===void 0?!1:a;return Jle(e,t,{debounceMode:o!==!1})}var Zu=s.createContext({}),fu="__rc_cascader_search_mark__",tse=function(t,n,r){var a=r.label,o=a===void 0?"":a;return n.some(function(i){return String(i[o]).toLowerCase().includes(t.toLowerCase())})},nse=function(t,n,r,a){return n.map(function(o){return o[a.label]}).join(" / ")},rse=function(t,n,r,a,o,i){var l=o.filter,c=l===void 0?tse:l,u=o.render,d=u===void 0?nse:u,f=o.limit,m=f===void 0?50:f,g=o.sort;return s.useMemo(function(){var h=[];if(!t)return[];function b(p,S){var C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;p.forEach(function(x){if(!(!g&&m!==!1&&m>0&&h.length>=m)){var w=[].concat(Te(S),[x]),$=x[r.children],E=C||x.disabled;if((!$||$.length===0||i)&&c(t,w,{label:r.label})){var P;h.push(R(R({},x),{},(P={disabled:E},q(P,r.label,d(t,w,a,r)),q(P,fu,w),q(P,r.children,void 0),P)))}$&&b(x[r.children],w,E)}})}return b(n,[]),g&&h.sort(function(p,S){return g(p[fu],S[fu],t,r)}),m!==!1&&m>0?h.slice(0,m):h},[t,n,r,a,d,i,c,g,m])},c4="__RC_CASCADER_SPLIT__",a9="SHOW_PARENT",o9="SHOW_CHILD";function ti(e){return e.join(c4)}function Ru(e){return e.map(ti)}function ase(e){return e.split(c4)}function i9(e){var t=e||{},n=t.label,r=t.value,a=t.children,o=r||"value";return{label:n||"label",value:o,key:o,children:a||"children"}}function uf(e,t){var n,r;return(n=e.isLeaf)!==null&&n!==void 0?n:!((r=e[t.children])!==null&&r!==void 0&&r.length)}function ose(e){var t=e.parentElement;if(t){var n=e.offsetTop-t.offsetTop;n-t.scrollTop<0?t.scrollTo({top:n}):n+e.offsetHeight-t.scrollTop>t.offsetHeight&&t.scrollTo({top:n+e.offsetHeight-t.offsetHeight})}}function l9(e,t){return e.map(function(n){var r;return(r=n[fu])===null||r===void 0?void 0:r.map(function(a){return a[t.value]})})}function ise(e){return Array.isArray(e)&&Array.isArray(e[0])}function _p(e){return e?ise(e)?e:(e.length===0?[]:[e]).map(function(t){return Array.isArray(t)?t:[t]}):[]}function s9(e,t,n){var r=new Set(e),a=t();return e.filter(function(o){var i=a[o],l=i?i.parent:null,c=i?i.children:null;return i&&i.node.disabled?!0:n===o9?!(c&&c.some(function(u){return u.key&&r.has(u.key)})):!(l&&!l.node.disabled&&r.has(l.key))})}function Iu(e,t,n){for(var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a=t,o=[],i=function(){var u,d,f,m=e[l],g=(u=a)===null||u===void 0?void 0:u.findIndex(function(b){var p=b[n.value];return r?String(p)===String(m):p===m}),h=g!==-1?(d=a)===null||d===void 0?void 0:d[g]:null;o.push({value:(f=h?.[n.value])!==null&&f!==void 0?f:m,index:g,option:h}),a=h?.[n.children]},l=0;l1&&arguments[1]!==void 0?arguments[1]:null;return d.map(function(m,g){for(var h=u9(f?f.pos:"0",g),b=Pv(m[o],h),p,S=0;S1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,a=t.onProcessFinished,o=t.externalGetKey,i=t.childrenPropName,l=t.fieldNames,c=arguments.length>2?arguments[2]:void 0,u=o||c,d={},f={},m={posEntities:d,keyEntities:f};return n&&(m=n(m)||m),use(e,function(g){var h=g.node,b=g.index,p=g.pos,S=g.key,C=g.parentPos,x=g.level,w=g.nodes,$={node:h,nodes:w,index:b,key:S,pos:p,level:x},E=Pv(S,p);d[p]=$,f[E]=$,$.parent=d[C],$.parent&&($.parent.children=$.parent.children||[],$.parent.children.push($)),r&&r($,m)},{externalGetKey:u,childrenPropName:i,fieldNames:l}),a&&a(m),m}function wf(e,t){var n=t.expandedKeys,r=t.selectedKeys,a=t.loadedKeys,o=t.loadingKeys,i=t.checkedKeys,l=t.halfCheckedKeys,c=t.dragOverNodeKey,u=t.dropPosition,d=t.keyEntities,f=Wa(d,e),m={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:a.indexOf(e)!==-1,loading:o.indexOf(e)!==-1,checked:i.indexOf(e)!==-1,halfChecked:l.indexOf(e)!==-1,pos:String(f?f.pos:""),dragOver:c===e&&u===0,dragOverGapTop:c===e&&u===-1,dragOverGapBottom:c===e&&u===1};return m}function Br(e){var t=e.data,n=e.expanded,r=e.selected,a=e.checked,o=e.loaded,i=e.loading,l=e.halfChecked,c=e.dragOver,u=e.dragOverGapTop,d=e.dragOverGapBottom,f=e.pos,m=e.active,g=e.eventKey,h=R(R({},t),{},{expanded:n,selected:r,checked:a,loaded:o,loading:i,halfChecked:l,dragOver:c,dragOverGapTop:u,dragOverGapBottom:d,pos:f,active:m,key:g});return"props"in h||Object.defineProperty(h,"props",{get:function(){return jn(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),h}const dse=(function(e,t){var n=s.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),r=s.useCallback(function(){return n.current.options!==e&&(n.current.options=e,n.current.info=Ov(e,{fieldNames:t,initWrapper:function(o){return R(R({},o),{},{pathKeyEntities:{}})},processEntity:function(o,i){var l=o.nodes.map(function(c){return c[t.value]}).join(c4);i.pathKeyEntities[l]=o,o.key=l}})),n.current.info.pathKeyEntities},[t,e]);return r});function f9(e,t){var n=s.useMemo(function(){return t||[]},[t]),r=dse(n,e),a=s.useCallback(function(o){var i=r();return o.map(function(l){var c=i[l].nodes;return c.map(function(u){return u[e.value]})})},[r,e]);return[n,r,a]}function fse(e){return s.useMemo(function(){if(!e)return[!1,{}];var t={matchInputWidth:!0,limit:50};return e&&st(e)==="object"&&(t=R(R({},t),e)),t.limit<=0&&(t.limit=!1),[!0,t]},[e])}function v9(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function vse(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,a=t.checkable;return!!(n||r)||a===!1}function mse(e,t,n,r){for(var a=new Set(e),o=new Set,i=0;i<=n;i+=1){var l=t.get(i)||new Set;l.forEach(function(f){var m=f.key,g=f.node,h=f.children,b=h===void 0?[]:h;a.has(m)&&!r(g)&&b.filter(function(p){return!r(p.node)}).forEach(function(p){a.add(p.key)})})}for(var c=new Set,u=n;u>=0;u-=1){var d=t.get(u)||new Set;d.forEach(function(f){var m=f.parent,g=f.node;if(!(r(g)||!f.parent||c.has(f.parent.key))){if(r(f.parent.node)){c.add(m.key);return}var h=!0,b=!1;(m.children||[]).filter(function(p){return!r(p.node)}).forEach(function(p){var S=p.key,C=a.has(S);h&&!C&&(h=!1),!b&&(C||o.has(S))&&(b=!0)}),h&&a.add(m.key),b&&o.add(m.key),c.add(m.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(v9(o,a))}}function gse(e,t,n,r,a){for(var o=new Set(e),i=new Set(t),l=0;l<=r;l+=1){var c=n.get(l)||new Set;c.forEach(function(m){var g=m.key,h=m.node,b=m.children,p=b===void 0?[]:b;!o.has(g)&&!i.has(g)&&!a(h)&&p.filter(function(S){return!a(S.node)}).forEach(function(S){o.delete(S.key)})})}i=new Set;for(var u=new Set,d=r;d>=0;d-=1){var f=n.get(d)||new Set;f.forEach(function(m){var g=m.parent,h=m.node;if(!(a(h)||!m.parent||u.has(m.parent.key))){if(a(m.parent.node)){u.add(g.key);return}var b=!0,p=!1;(g.children||[]).filter(function(S){return!a(S.node)}).forEach(function(S){var C=S.key,x=o.has(C);b&&!x&&(b=!1),!p&&(x||i.has(C))&&(p=!0)}),b||o.delete(g.key),p&&i.add(g.key),u.add(g.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(v9(i,o))}}function To(e,t,n,r){var a=[],o;r?o=r:o=vse;var i=new Set(e.filter(function(d){var f=!!Wa(n,d);return f||a.push(d),f})),l=new Map,c=0;Object.keys(n).forEach(function(d){var f=n[d],m=f.level,g=l.get(m);g||(g=new Set,l.set(m,g)),g.add(f),c=Math.max(c,m)}),jn(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map(function(d){return"'".concat(d,"'")}).join(", ")));var u;return t===!0?u=mse(i,l,c,o):u=gse(i,t.halfCheckedKeys,l,c,o),u}function m9(e,t,n,r,a,o,i,l){return function(c){if(!e)t(c);else{var u=ti(c),d=Ru(n),f=Ru(r),m=d.includes(u),g=a.some(function(E){return ti(E)===u}),h=n,b=a;if(g&&!m)b=a.filter(function(E){return ti(E)!==u});else{var p=m?d.filter(function(E){return E!==u}):[].concat(Te(d),[u]),S=o(),C;if(m){var x=To(p,{halfCheckedKeys:f},S);C=x.checkedKeys}else{var w=To(p,!0,S);C=w.checkedKeys}var $=s9(C,o,l);h=i($)}t([].concat(Te(b),Te(h)))}}}function g9(e,t,n,r,a){return s.useMemo(function(){var o=a(t),i=fe(o,2),l=i[0],c=i[1];if(!e||!t.length)return[l,[],c];var u=Ru(l),d=n(),f=To(u,!0,d),m=f.checkedKeys,g=f.halfCheckedKeys;return[r(m),r(g),c]},[e,t,n,r,a])}var pse=s.memo(function(e){var t=e.children;return t},function(e,t){return!t.open});function hse(e){var t,n=e.prefixCls,r=e.checked,a=e.halfChecked,o=e.disabled,i=e.onClick,l=e.disableCheckbox,c=s.useContext(Zu),u=c.checkable,d=typeof u!="boolean"?u:null;return s.createElement("span",{className:le("".concat(n),(t={},q(t,"".concat(n,"-checked"),r),q(t,"".concat(n,"-indeterminate"),!r&&a),q(t,"".concat(n,"-disabled"),o||l),t)),onClick:i},d)}var p9="__cascader_fix_label__";function bse(e){var t=e.prefixCls,n=e.multiple,r=e.options,a=e.activeValue,o=e.prevValuePath,i=e.onToggleOpen,l=e.onSelect,c=e.onActive,u=e.checkedSet,d=e.halfCheckedSet,f=e.loadingKeys,m=e.isSelectable,g=e.disabled,h="".concat(t,"-menu"),b="".concat(t,"-menu-item"),p=s.useContext(Zu),S=p.fieldNames,C=p.changeOnSelect,x=p.expandTrigger,w=p.expandIcon,$=p.loadingIcon,E=p.dropdownMenuColumnStyle,P=p.optionRender,M=x==="hover",O=function(D){return g||D},T=s.useMemo(function(){return r.map(function(N){var D,L=N.disabled,_=N.disableCheckbox,F=N[fu],j=(D=N[p9])!==null&&D!==void 0?D:N[S.label],k=N[S.value],z=uf(N,S),V=F?F.map(function(G){return G[S.value]}):[].concat(Te(o),[k]),H=ti(V),B=f.includes(H),K=u.has(H),W=d.has(H);return{disabled:L,label:j,value:k,isLeaf:z,isLoading:B,checked:K,halfChecked:W,option:N,disableCheckbox:_,fullPath:V,fullPathKey:H}})},[r,u,S,d,f,o]);return s.createElement("ul",{className:h,role:"menu"},T.map(function(N){var D,L=N.disabled,_=N.label,F=N.value,j=N.isLeaf,k=N.isLoading,z=N.checked,V=N.halfChecked,H=N.option,B=N.fullPath,K=N.fullPathKey,W=N.disableCheckbox,G=function(){if(!O(L)){var ee=Te(B);M&&j&&ee.pop(),c(ee)}},X=function(){m(H)&&!O(L)&&l(B,j)},Y;return typeof H.title=="string"?Y=H.title:typeof _=="string"&&(Y=_),s.createElement("li",{key:K,className:le(b,(D={},q(D,"".concat(b,"-expand"),!j),q(D,"".concat(b,"-active"),a===F||a===K),q(D,"".concat(b,"-disabled"),O(L)),q(D,"".concat(b,"-loading"),k),D)),style:E,role:"menuitemcheckbox",title:Y,"aria-checked":z,"data-path-key":K,onClick:function(){G(),!W&&(!n||j)&&X()},onDoubleClick:function(){C&&i(!1)},onMouseEnter:function(){M&&G()},onMouseDown:function(ee){ee.preventDefault()}},n&&s.createElement(hse,{prefixCls:"".concat(t,"-checkbox"),checked:z,halfChecked:V,disabled:O(L)||W,disableCheckbox:W,onClick:function(ee){W||(ee.stopPropagation(),X())}}),s.createElement("div",{className:"".concat(b,"-content")},P?P(H):_),!k&&w&&!j&&s.createElement("div",{className:"".concat(b,"-expand-icon")},w),k&&$&&s.createElement("div",{className:"".concat(b,"-loading-icon")},$))}))}var yse=function(t,n){var r=s.useContext(Zu),a=r.values,o=a[0],i=s.useState([]),l=fe(i,2),c=l[0],u=l[1];return s.useEffect(function(){t||u(o||[])},[n,o]),[c,u]};const Cse=(function(e,t,n,r,a,o,i){var l=i.direction,c=i.searchValue,u=i.toggleOpen,d=i.open,f=l==="rtl",m=s.useMemo(function(){for(var E=-1,P=t,M=[],O=[],T=r.length,N=l9(t,n),D=function(k){var z=P.findIndex(function(V,H){return(N[H]?ti(N[H]):V[n.value])===r[k]});if(z===-1)return 1;E=z,M.push(E),O.push(r[k]),P=P[E][n.children]},L=0;L1){var P=h.slice(0,-1);C(P)}else u(!1)},$=function(){var P,M=((P=p[b])===null||P===void 0?void 0:P[n.children])||[],O=M.find(function(N){return!N.disabled});if(O){var T=[].concat(Te(h),[O[n.value]]);C(T)}};s.useImperativeHandle(e,function(){return{onKeyDown:function(P){var M=P.which;switch(M){case lt.UP:case lt.DOWN:{var O=0;M===lt.UP?O=-1:M===lt.DOWN&&(O=1),O!==0&&x(O);break}case lt.LEFT:{if(c)break;f?$():w();break}case lt.RIGHT:{if(c)break;f?w():$();break}case lt.BACKSPACE:{c||w();break}case lt.ENTER:{if(h.length){var T=p[b],N=T?.[fu]||[];N.length?o(N.map(function(D){return D[n.value]}),N[N.length-1]):o(h,p[b])}break}case lt.ESC:u(!1),d&&P.stopPropagation()}},onKeyUp:function(){}}})});var h9=s.forwardRef(function(e,t){var n,r,a,o=e.prefixCls,i=e.multiple,l=e.searchValue,c=e.toggleOpen,u=e.notFoundContent,d=e.direction,f=e.open,m=e.disabled,g=s.useRef(null),h=d==="rtl",b=s.useContext(Zu),p=b.options,S=b.values,C=b.halfValues,x=b.fieldNames,w=b.changeOnSelect,$=b.onSelect,E=b.searchOptions,P=b.dropdownPrefixCls,M=b.loadData,O=b.expandTrigger,T=P||o,N=s.useState([]),D=fe(N,2),L=D[0],_=D[1],F=function(ue){if(!(!M||l)){var de=Iu(ue,p,x),ae=de.map(function(pe){var be=pe.option;return be}),ie=ae[ae.length-1];if(ie&&!uf(ie,x)){var ge=ti(ue);_(function(pe){return[].concat(Te(pe),[ge])}),M(ae)}}};s.useEffect(function(){L.length&&L.forEach(function(me){var ue=ase(me),de=Iu(ue,p,x,!0).map(function(ie){var ge=ie.option;return ge}),ae=de[de.length-1];(!ae||ae[x.children]||uf(ae,x))&&_(function(ie){return ie.filter(function(ge){return ge!==me})})})},[p,L,x]);var j=s.useMemo(function(){return new Set(Ru(S))},[S]),k=s.useMemo(function(){return new Set(Ru(C))},[C]),z=yse(i,f),V=fe(z,2),H=V[0],B=V[1],K=function(ue){B(ue),F(ue)},W=function(ue){if(m)return!1;var de=ue.disabled,ae=uf(ue,x);return!de&&(ae||w||i)},G=function(ue,de){var ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;$(ue),!i&&(de||w&&(O==="hover"||ae))&&c(!1)},X=s.useMemo(function(){return l?E:p},[l,E,p]),Y=s.useMemo(function(){for(var me=[{options:X}],ue=X,de=l9(ue,x),ae=function(){var pe=H[ie],be=ue.find(function(Ce,he){return(de[he]?ti(de[he]):Ce[x.value])===pe}),ve=be?.[x.children];if(!(ve!=null&&ve.length))return 1;ue=ve,me.push({options:ve})},ie=0;ie":S,x=n.loadingIcon,w=n.direction,$=n.notFoundContent,E=$===void 0?"Not Found":$,P=n.disabled,M=!!c,O=Tt(u,{value:d,postState:_p}),T=fe(O,2),N=T[0],D=T[1],L=s.useMemo(function(){return i9(f)},[JSON.stringify(f)]),_=f9(L,l),F=fe(_,3),j=F[0],k=F[1],z=F[2],V=c9(j,L),H=g9(M,N,k,z,V),B=fe(H,3),K=B[0],W=B[1],G=B[2],X=Gt(function(se){if(D(se),g){var oe=_p(se),me=oe.map(function(ae){return Iu(ae,j,L).map(function(ie){return ie.option})}),ue=M?oe:oe[0],de=M?me:me[0];g(ue,de)}}),Y=m9(M,X,K,W,G,k,z,h),Z=Gt(function(se){Y(se)}),ee=s.useMemo(function(){return{options:j,fieldNames:L,values:K,halfValues:W,changeOnSelect:m,onSelect:Z,checkable:c,searchOptions:[],dropdownPrefixCls:void 0,loadData:b,expandTrigger:p,expandIcon:C,loadingIcon:x,dropdownMenuColumnStyle:void 0}},[j,L,K,W,m,Z,c,b,p,C,x]),re="".concat(a,"-panel"),ne=!j.length;return s.createElement(Zu.Provider,{value:ee},s.createElement("div",{className:le(re,(t={},q(t,"".concat(re,"-rtl"),w==="rtl"),q(t,"".concat(re,"-empty"),ne),t),i),style:o},ne?E:s.createElement(h9,{prefixCls:a,searchValue:"",multiple:M,toggleOpen:xse,open:!0,direction:w,disabled:P})))}var wse=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","onOpenChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy","optionRender"],Rv=s.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,a=r===void 0?"rc-cascader":r,o=e.fieldNames,i=e.defaultValue,l=e.value,c=e.changeOnSelect,u=e.onChange,d=e.displayRender,f=e.checkable,m=e.autoClearSearchValue,g=m===void 0?!0:m,h=e.searchValue,b=e.onSearch,p=e.showSearch,S=e.expandTrigger,C=e.options,x=e.dropdownPrefixCls,w=e.loadData,$=e.popupVisible,E=e.open,P=e.popupClassName,M=e.dropdownClassName,O=e.dropdownMenuColumnStyle,T=e.dropdownStyle,N=e.popupPlacement,D=e.placement,L=e.onDropdownVisibleChange,_=e.onPopupVisibleChange,F=e.onOpenChange,j=e.expandIcon,k=j===void 0?">":j,z=e.loadingIcon,V=e.children,H=e.dropdownMatchSelectWidth,B=H===void 0?!1:H,K=e.showCheckedStrategy,W=K===void 0?a9:K,G=e.optionRender,X=Ue(e,wse),Y=NE(n),Z=!!f,ee=Tt(i,{value:l,postState:_p}),re=fe(ee,2),ne=re[0],se=re[1],oe=s.useMemo(function(){return i9(o)},[JSON.stringify(o)]),me=f9(oe,C),ue=fe(me,3),de=ue[0],ae=ue[1],ie=ue[2],ge=Tt("",{value:h,postState:function(yt){return yt||""}}),pe=fe(ge,2),be=pe[0],ve=pe[1],Ce=function(yt,dt){ve(yt),dt.source!=="blur"&&b&&b(yt)},he=fse(p),Se=fe(he,2),Ee=Se[0],Oe=Se[1],We=rse(be,de,oe,x||a,Oe,c||Z),je=c9(de,oe),De=g9(Z,ne,ae,ie,je),ke=fe(De,3),_e=ke[0],Re=ke[1],Le=ke[2],Me=s.useMemo(function(){var Ct=Ru(_e),yt=s9(Ct,ae,W);return[].concat(Te(Le),Te(ie(yt)))},[_e,ae,ie,Le,W]),Be=lse(Me,de,oe,Z,d),$e=Gt(function(Ct){if(se(Ct),u){var yt=_p(Ct),dt=yt.map(function(ze){return Iu(ze,de,oe).map(function(Ve){return Ve.option})}),vt=Z?yt:yt[0],bt=Z?dt:dt[0];u(vt,bt)}}),we=m9(Z,$e,_e,Re,Le,ae,ie,W),Ie=Gt(function(Ct){(!Z||g)&&ve(""),we(Ct)}),Fe=function(yt,dt){if(dt.type==="clear"){$e([]);return}var vt=dt.values[0],bt=vt.valueCells;Ie(bt)},Ge=E!==void 0?E:$,et=M||P,Ke=D||N,Ye=function(yt){F?.(yt),L?.(yt),_?.(yt)},tt=s.useMemo(function(){return{options:de,fieldNames:oe,values:_e,halfValues:Re,changeOnSelect:c,onSelect:Ie,checkable:f,searchOptions:We,dropdownPrefixCls:x,loadData:w,expandTrigger:S,expandIcon:k,loadingIcon:z,dropdownMenuColumnStyle:O,optionRender:G}},[de,oe,_e,Re,c,Ie,f,We,x,w,S,k,z,O,G]),rt=!(be?We:de).length,ct=be&&Oe.matchInputWidth||rt?{}:{minWidth:"auto"};return s.createElement(Zu.Provider,{value:tt},s.createElement(IE,xe({},X,{ref:t,id:Y,prefixCls:a,autoClearSearchValue:g,dropdownMatchSelectWidth:B,dropdownStyle:R(R({},ct),T),displayValues:Be,onDisplayValuesChange:Fe,mode:Z?"multiple":void 0,searchValue:be,onSearch:Ce,showSearch:Ee,OptionList:Sse,emptyOptions:rt,open:Ge,dropdownClassName:et,placement:Ke,onDropdownVisibleChange:Ye,getRawInputElement:function(){return V}})))});Rv.SHOW_PARENT=a9;Rv.SHOW_CHILD=o9;Rv.Panel=b9;function y9(e,t){const{getPrefixCls:n,direction:r,renderEmpty:a}=s.useContext(Ot),o=t||r,i=n("select",e),l=n("cascader",e);return[i,l,o,a]}function C9(e,t){return s.useMemo(()=>t?s.createElement("span",{className:`${e}-checkbox-inner`}):!1,[e,t])}const S9=(e,t,n)=>{let r=n;n||(r=t?s.createElement(oi,null):s.createElement(Na,null));const a=s.useMemo(()=>s.createElement("span",{className:`${e}-menu-item-loading-icon`},s.createElement(wa,{spin:!0})),[e]);return s.useMemo(()=>[r,a],[r,a])},$se=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},fn(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},fn(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},fn(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:jo(e)},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${ce(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${ce(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[` - ${n}:not(${n}-disabled), - ${t}:not(${t}-disabled) - `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[` - ${n}-checked:not(${n}-disabled), - ${t}-checked:not(${t}-disabled) - `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{"&":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorBorder}`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorPrimary}`}}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function t0(e,t){const n=Xt(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return $se(n)}const x9=rn("Checkbox",(e,{prefixCls:t})=>[t0(t,e)]),w9=e=>{const{prefixCls:t,componentCls:n}=e,r=`${n}-menu-item`,a=` - &${r}-expand ${r}-expand-icon, - ${r}-loading-icon -`;return[t0(`${t}-checkbox`,e),{[n]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS,pointerEvents:"unset"},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${n}-menu-empty`]:{[`${n}-menu`]:{width:"100%",height:"auto",[r]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${ce(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&-item":Object.assign(Object.assign({},ra),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:e.optionPadding,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[a]:{color:e.colorTextDisabled}},[`&-active:not(${r}-disabled)`]:{"&, &:hover":{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg}},"&-content":{flex:"auto"},[a]:{marginInlineStart:e.paddingXXS,color:e.colorIcon,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]},Ese=e=>{const{componentCls:t,antCls:n}=e;return[{[t]:{width:e.controlWidth}},{[`${t}-dropdown`]:[{[`&${n}-select-dropdown`]:{padding:0}},w9(e)]},{[`${t}-dropdown-rtl`]:{direction:"rtl"}},os(e)]},$9=e=>{const t=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:e.controlItemBgActive,optionSelectedFontWeight:e.fontWeightStrong,optionPadding:`${t}px ${e.paddingSM}px`,menuPadding:e.paddingXXS,optionSelectedColor:e.colorText}},E9=rn("Cascader",Ese,$9,{unitless:{optionSelectedFontWeight:!0}}),Pse=e=>{const{componentCls:t}=e;return{[`${t}-panel`]:[w9(e),{display:"inline-flex",border:`${ce(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:e.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${t}-menus`]:{alignItems:"stretch"},[`${t}-menu`]:{height:"auto"},"&-empty":{padding:e.paddingXXS}}]}},Ose=cD(["Cascader","Panel"],Pse,$9);function Rse(e){const{prefixCls:t,className:n,multiple:r,rootClassName:a,notFoundContent:o,direction:i,expandIcon:l,disabled:c}=e,u=s.useContext(Sr),d=c??u,[f,m,g,h]=y9(t,i),b=zn(m),[p,S,C]=E9(m,b);Ose(m);const x=g==="rtl",[w,$]=S9(f,x,l),E=o||h?.("Cascader")||s.createElement(Js,{componentName:"Cascader"}),P=C9(m,r);return p(s.createElement(b9,Object.assign({},e,{checkable:P,prefixCls:m,className:le(n,S,a,C,b),notFoundContent:E,direction:g,expandIcon:w,loadingIcon:$,disabled:d})))}var Ise=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);ac===0?[l]:[].concat(Te(i),[t,l]),[]),a=[];let o=0;return r.forEach((i,l)=>{const c=o+i.length;let u=e.slice(o,c);o=c,l%2===1&&(u=s.createElement("span",{className:`${n}-menu-item-keyword`,key:`separator-${l}`},u)),a.push(u)}),a}const _se=(e,t,n,r)=>{const a=[],o=e.toLowerCase();return t.forEach((i,l)=>{l!==0&&a.push(" / ");let c=i[r.label];const u=typeof c;(u==="string"||u==="number")&&(c=Nse(String(c),o,n)),a.push(c)}),a},Ju=s.forwardRef((e,t)=>{var n,r,a,o;const{prefixCls:i,size:l,disabled:c,className:u,rootClassName:d,multiple:f,bordered:m=!0,transitionName:g,choiceTransitionName:h="",popupClassName:b,dropdownClassName:p,expandIcon:S,placement:C,showSearch:x,allowClear:w=!0,notFoundContent:$,direction:E,getPopupContainer:P,status:M,showArrow:O,builtinPlacements:T,style:N,variant:D,dropdownRender:L,onDropdownVisibleChange:_,dropdownMenuColumnStyle:F,popupRender:j,dropdownStyle:k,popupMenuColumnStyle:z,onOpenChange:V,styles:H,classNames:B}=e,K=Ise(e,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style","variant","dropdownRender","onDropdownVisibleChange","dropdownMenuColumnStyle","popupRender","dropdownStyle","popupMenuColumnStyle","onOpenChange","styles","classNames"]),W=Qt(K,["suffixIcon"]),{getPrefixCls:G,getPopupContainer:X,className:Y,style:Z,classNames:ee,styles:re}=Vn("cascader"),{popupOverflow:ne}=s.useContext(Ot),{status:se,hasFeedback:oe,isFormItemInput:me,feedbackIcon:ue}=s.useContext(Or),de=ji(se,M),[ae,ie,ge,pe]=y9(i,E),be=ge==="rtl",ve=G(),Ce=zn(ae),[he,Se,Ee]=DE(ae,Ce),Oe=zn(ie),[We]=E9(ie,Oe),{compactSize:je,compactItemClassnames:De}=mo(ae,E),[ke,_e]=Di("cascader",D,m),Re=$||pe?.("Cascader")||s.createElement(Js,{componentName:"Cascader"}),Le=le(((n=B?.popup)===null||n===void 0?void 0:n.root)||((r=ee.popup)===null||r===void 0?void 0:r.root)||b||p,`${ie}-dropdown`,{[`${ie}-dropdown-rtl`]:ge==="rtl"},d,Ce,ee.root,B?.root,Oe,Se,Ee),Me=FE(j||L),Be=z||F,$e=V||_,we=((a=H?.popup)===null||a===void 0?void 0:a.root)||((o=re.popup)===null||o===void 0?void 0:o.root)||k,Ie=s.useMemo(()=>{if(!x)return x;let Ve={render:_se};return typeof x=="object"&&(Ve=Object.assign(Object.assign({},Ve),x)),Ve},[x]),Fe=ar(Ve=>{var Pe;return(Pe=l??je)!==null&&Pe!==void 0?Pe:Ve}),Ge=s.useContext(Sr),et=c??Ge,[Ke,Ye]=S9(ae,be,S),tt=C9(ie,f),rt=kE(e.suffixIcon,O),{suffixIcon:ct,removeIcon:Ct,clearIcon:yt}=zh(Object.assign(Object.assign({},e),{hasFeedback:oe,feedbackIcon:ue,showSuffixIcon:rt,multiple:f,prefixCls:ae,componentName:"Cascader"})),dt=s.useMemo(()=>C!==void 0?C:be?"bottomRight":"bottomLeft",[C,be]),vt=w===!0?{clearIcon:yt}:w,[bt]=Ua("SelectLike",we?.zIndex),ze=s.createElement(Rv,Object.assign({prefixCls:ae,className:le(!i&&ie,{[`${ae}-lg`]:Fe==="large",[`${ae}-sm`]:Fe==="small",[`${ae}-rtl`]:be,[`${ae}-${ke}`]:_e,[`${ae}-in-form-item`]:me},Fo(ae,de,oe),De,Y,u,d,B?.root,ee.root,Ce,Oe,Se,Ee),disabled:et,style:Object.assign(Object.assign(Object.assign(Object.assign({},re.root),H?.root),Z),N)},W,{builtinPlacements:jE(T,ne),direction:ge,placement:dt,notFoundContent:Re,allowClear:vt,showSearch:Ie,expandIcon:Ke,suffixIcon:ct,removeIcon:Ct,loadingIcon:Ye,checkable:tt,dropdownClassName:Le,dropdownPrefixCls:i||ie,dropdownStyle:Object.assign(Object.assign({},we),{zIndex:bt}),dropdownRender:Me,dropdownMenuColumnStyle:Be,onOpenChange:$e,choiceTransitionName:aa(ve,"",h),transitionName:aa(ve,"slide-up",g),getPopupContainer:P||X,ref:t}));return We(he(ze))}),jse=is(Ju,"dropdownAlign",e=>Qt(e,["visible"]));Ju.SHOW_PARENT=Tse;Ju.SHOW_CHILD=Mse;Ju.Panel=Rse;Ju._InternalPanelDoNotUseOrYouWillBeFired=jse;const P9=Q.createContext(null);var Dse=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const{prefixCls:r,className:a,rootClassName:o,children:i,indeterminate:l=!1,style:c,onMouseEnter:u,onMouseLeave:d,skipGroup:f=!1,disabled:m}=e,g=Dse(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:h,direction:b,checkbox:p}=s.useContext(Ot),S=s.useContext(P9),{isFormItemInput:C}=s.useContext(Or),x=s.useContext(Sr),w=(n=S?.disabled||m)!==null&&n!==void 0?n:x,$=s.useRef(g.value),E=s.useRef(null),P=wr(t,E);s.useEffect(()=>{S?.registerValue(g.value)},[]),s.useEffect(()=>{if(!f)return g.value!==$.current&&(S?.cancelValue($.current),S?.registerValue(g.value),$.current=g.value),()=>S?.cancelValue(g.value)},[g.value]),s.useEffect(()=>{var z;!((z=E.current)===null||z===void 0)&&z.input&&(E.current.input.indeterminate=l)},[l]);const M=h("checkbox",r),O=zn(M),[T,N,D]=x9(M,O),L=Object.assign({},g);S&&!f&&(L.onChange=(...z)=>{g.onChange&&g.onChange.apply(g,z),S.toggleOption&&S.toggleOption({label:i,value:g.value})},L.name=S.name,L.checked=S.value.includes(g.value));const _=le(`${M}-wrapper`,{[`${M}-rtl`]:b==="rtl",[`${M}-wrapper-checked`]:L.checked,[`${M}-wrapper-disabled`]:w,[`${M}-wrapper-in-form-item`]:C},p?.className,a,o,D,O,N),F=le({[`${M}-indeterminate`]:l},Sh,N),[j,k]=LL(L.onClick);return T(s.createElement(fv,{component:"Checkbox",disabled:w},s.createElement("label",{className:_,style:Object.assign(Object.assign({},p?.style),c),onMouseEnter:u,onMouseLeave:d,onClick:j},s.createElement(kL,Object.assign({},L,{onClick:k,prefixCls:M,className:F,disabled:w,ref:P})),i!=null&&s.createElement("span",{className:`${M}-label`},i))))},O9=s.forwardRef(Fse);var kse=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{defaultValue:n,children:r,options:a=[],prefixCls:o,className:i,rootClassName:l,style:c,onChange:u}=e,d=kse(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:m}=s.useContext(Ot),[g,h]=s.useState(d.value||n||[]),[b,p]=s.useState([]);s.useEffect(()=>{"value"in d&&h(d.value||[])},[d.value]);const S=s.useMemo(()=>a.map(F=>typeof F=="string"||typeof F=="number"?{label:F,value:F}:F),[a]),C=F=>{p(j=>j.filter(k=>k!==F))},x=F=>{p(j=>[].concat(Te(j),[F]))},w=F=>{const j=g.indexOf(F.value),k=Te(g);j===-1?k.push(F.value):k.splice(j,1),"value"in d||h(k),u?.(k.filter(z=>b.includes(z)).sort((z,V)=>{const H=S.findIndex(K=>K.value===z),B=S.findIndex(K=>K.value===V);return H-B}))},$=f("checkbox",o),E=`${$}-group`,P=zn($),[M,O,T]=x9($,P),N=Qt(d,["value","disabled"]),D=a.length?S.map(F=>s.createElement(O9,{prefixCls:$,key:F.value.toString(),disabled:"disabled"in F?F.disabled:d.disabled,value:F.value,checked:g.includes(F.value),onChange:F.onChange,className:le(`${E}-item`,F.className),style:F.style,title:F.title,id:F.id,required:F.required},F.label)):r,L=s.useMemo(()=>({toggleOption:w,value:g,disabled:d.disabled,name:d.name,registerValue:x,cancelValue:C}),[w,g,d.disabled,d.name,x,C]),_=le(E,{[`${E}-rtl`]:m==="rtl"},i,l,T,P,O);return M(s.createElement("div",Object.assign({className:_,style:c},N,{ref:t}),s.createElement(P9.Provider,{value:L},D)))}),si=O9;si.Group=Lse;si.__ANT_CHECKBOX=!0;const R9=s.createContext({});var zse=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:n,direction:r}=s.useContext(Ot),{gutter:a,wrap:o}=s.useContext(R9),{prefixCls:i,span:l,order:c,offset:u,push:d,pull:f,className:m,children:g,flex:h,style:b}=e,p=zse(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),S=n("col",i),[C,x,w]=MJ(S),$={};let E={};Ase.forEach(O=>{let T={};const N=e[O];typeof N=="number"?T.span=N:typeof N=="object"&&(T=N||{}),delete p[O],E=Object.assign(Object.assign({},E),{[`${S}-${O}-${T.span}`]:T.span!==void 0,[`${S}-${O}-order-${T.order}`]:T.order||T.order===0,[`${S}-${O}-offset-${T.offset}`]:T.offset||T.offset===0,[`${S}-${O}-push-${T.push}`]:T.push||T.push===0,[`${S}-${O}-pull-${T.pull}`]:T.pull||T.pull===0,[`${S}-rtl`]:r==="rtl"}),T.flex&&(E[`${S}-${O}-flex`]=!0,$[`--${S}-${O}-flex`]=U8(T.flex))});const P=le(S,{[`${S}-${l}`]:l!==void 0,[`${S}-order-${c}`]:c,[`${S}-offset-${u}`]:u,[`${S}-push-${d}`]:d,[`${S}-pull-${f}`]:f},m,E,x,w),M={};if(a?.[0]){const O=typeof a[0]=="number"?`${a[0]/2}px`:`calc(${a[0]} / 2)`;M.paddingLeft=O,M.paddingRight=O}return h&&(M.flex=U8(h),o===!1&&!M.minWidth&&(M.minWidth=0)),C(s.createElement("div",Object.assign({},p,{style:Object.assign(Object.assign(Object.assign({},M),b),$),className:P,ref:t}),g))});function Bse(e,t){const n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],a=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return r.forEach((o,i)=>{if(typeof o=="object"&&o!==null)for(let l=0;l{if(typeof e=="string"&&r(e),typeof e=="object")for(let o=0;o{a()},[JSON.stringify(e),t]),n}const Io=s.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:a,className:o,style:i,children:l,gutter:c=0,wrap:u}=e,d=Hse(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:m}=s.useContext(Ot),g=ui(!0,null),h=G8(a,g),b=G8(r,g),p=f("row",n),[S,C,x]=IJ(p),w=Bse(c,g),$=le(p,{[`${p}-no-wrap`]:u===!1,[`${p}-${b}`]:b,[`${p}-${h}`]:h,[`${p}-rtl`]:m==="rtl"},o,C,x),E={};if(w?.[0]){const T=typeof w[0]=="number"?`${w[0]/-2}px`:`calc(${w[0]} / -2)`;E.marginLeft=T,E.marginRight=T}const[P,M]=w;E.rowGap=M;const O=s.useMemo(()=>({gutter:[P,M],wrap:u}),[P,M,u]);return S(s.createElement(R9.Provider,{value:O},s.createElement("div",Object.assign({},d,{className:$,style:Object.assign(Object.assign({},E),i),ref:t}),l)))}),Vse=e=>{const{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},Wse=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:a,textPaddingInline:o,orientationMargin:i,verticalMarginInline:l}=e;return{[t]:Object.assign(Object.assign({},fn(e)),{borderBlockStart:`${ce(a)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${ce(a)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${ce(e.marginLG)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${ce(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${ce(a)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-start`]:{"&::before":{width:`calc(${i} * 100%)`},"&::after":{width:`calc(100% - ${i} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{"&::before":{width:`calc(100% - ${i} * 100%)`},"&::after":{width:`calc(${i} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:o},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${ce(a)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:a,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${ce(a)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:a,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-start${t}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-end${t}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},Kse=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),qse=rn("Divider",e=>{const t=Xt(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[Wse(t),Vse(t)]},Kse,{unitless:{orientationMargin:!0}});var Use=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:t,direction:n,className:r,style:a}=Vn("divider"),{prefixCls:o,type:i="horizontal",orientation:l="center",orientationMargin:c,className:u,rootClassName:d,children:f,dashed:m,variant:g="solid",plain:h,style:b,size:p}=e,S=Use(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style","size"]),C=t("divider",o),[x,w,$]=qse(C),E=ar(p),P=Gse[E],M=!!f,O=s.useMemo(()=>l==="left"?n==="rtl"?"end":"start":l==="right"?n==="rtl"?"start":"end":l,[n,l]),T=O==="start"&&c!=null,N=O==="end"&&c!=null,D=le(C,r,w,$,`${C}-${i}`,{[`${C}-with-text`]:M,[`${C}-with-text-${O}`]:M,[`${C}-dashed`]:!!m,[`${C}-${g}`]:g!=="solid",[`${C}-plain`]:!!h,[`${C}-rtl`]:n==="rtl",[`${C}-no-default-orientation-margin-start`]:T,[`${C}-no-default-orientation-margin-end`]:N,[`${C}-${P}`]:!!P},u,d),L=s.useMemo(()=>typeof c=="number"?c:/^\d+$/.test(c)?Number(c):c,[c]),_={marginInlineStart:T?L:void 0,marginInlineEnd:N?L:void 0};return x(s.createElement("div",Object.assign({className:D,style:Object.assign(Object.assign({},a),b)},S,{role:"separator"}),f&&i!=="vertical"&&s.createElement("span",{className:`${C}-inner-text`,style:_},f)))};var X8=function(t,n){if(!t)return null;var r={left:t.offsetLeft,right:t.parentElement.clientWidth-t.clientWidth-t.offsetLeft,width:t.clientWidth,top:t.offsetTop,bottom:t.parentElement.clientHeight-t.clientHeight-t.offsetTop,height:t.clientHeight};return n?{left:0,right:0,width:0,top:r.top,bottom:r.bottom,height:r.height}:{left:r.left,right:r.right,width:r.width,top:0,bottom:0,height:0}},bi=function(t){return t!==void 0?"".concat(t,"px"):void 0};function Xse(e){var t=e.prefixCls,n=e.containerRef,r=e.value,a=e.getValueIndex,o=e.motionName,i=e.onMotionStart,l=e.onMotionEnd,c=e.direction,u=e.vertical,d=u===void 0?!1:u,f=s.useRef(null),m=s.useState(r),g=fe(m,2),h=g[0],b=g[1],p=function(F){var j,k=a(F),z=(j=n.current)===null||j===void 0?void 0:j.querySelectorAll(".".concat(t,"-item"))[k];return z?.offsetParent&&z},S=s.useState(null),C=fe(S,2),x=C[0],w=C[1],$=s.useState(null),E=fe($,2),P=E[0],M=E[1];un(function(){if(h!==r){var _=p(h),F=p(r),j=X8(_,d),k=X8(F,d);b(r),w(j),M(k),_&&F?i():l()}},[r]);var O=s.useMemo(function(){if(d){var _;return bi((_=x?.top)!==null&&_!==void 0?_:0)}return bi(c==="rtl"?-x?.right:x?.left)},[d,c,x]),T=s.useMemo(function(){if(d){var _;return bi((_=P?.top)!==null&&_!==void 0?_:0)}return bi(c==="rtl"?-P?.right:P?.left)},[d,c,P]),N=function(){return d?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},D=function(){return d?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},L=function(){w(null),M(null),l()};return!x||!P?null:s.createElement(Nr,{visible:!0,motionName:o,motionAppear:!0,onAppearStart:N,onAppearActive:D,onVisibleChanged:L},function(_,F){var j=_.className,k=_.style,z=R(R({},k),{},{"--thumb-start-left":O,"--thumb-start-width":bi(x?.width),"--thumb-active-left":T,"--thumb-active-width":bi(P?.width),"--thumb-start-top":O,"--thumb-start-height":bi(x?.height),"--thumb-active-top":T,"--thumb-active-height":bi(P?.height)}),V={ref:wr(f,F),style:z,className:le("".concat(t,"-thumb"),j)};return s.createElement("div",V)})}var Yse=["prefixCls","direction","vertical","options","disabled","defaultValue","value","name","onChange","className","motionName"];function Qse(e){if(typeof e.title<"u")return e.title;if(st(e.label)!=="object"){var t;return(t=e.label)===null||t===void 0?void 0:t.toString()}}function Zse(e){return e.map(function(t){if(st(t)==="object"&&t!==null){var n=Qse(t);return R(R({},t),{},{title:n})}return{label:t?.toString(),title:t?.toString(),value:t}})}var Jse=function(t){var n=t.prefixCls,r=t.className,a=t.disabled,o=t.checked,i=t.label,l=t.title,c=t.value,u=t.name,d=t.onChange,f=t.onFocus,m=t.onBlur,g=t.onKeyDown,h=t.onKeyUp,b=t.onMouseDown,p=function(C){a||d(C,c)};return s.createElement("label",{className:le(r,q({},"".concat(n,"-item-disabled"),a)),onMouseDown:b},s.createElement("input",{name:u,className:"".concat(n,"-item-input"),type:"radio",disabled:a,checked:o,onChange:p,onFocus:f,onBlur:m,onKeyDown:g,onKeyUp:h}),s.createElement("div",{className:"".concat(n,"-item-label"),title:l},i))},ece=s.forwardRef(function(e,t){var n,r=e.prefixCls,a=r===void 0?"rc-segmented":r,o=e.direction,i=e.vertical,l=e.options,c=l===void 0?[]:l,u=e.disabled,d=e.defaultValue,f=e.value,m=e.name,g=e.onChange,h=e.className,b=h===void 0?"":h,p=e.motionName,S=p===void 0?"thumb-motion":p,C=Ue(e,Yse),x=s.useRef(null),w=s.useMemo(function(){return wr(x,t)},[x,t]),$=s.useMemo(function(){return Zse(c)},[c]),E=Tt((n=$[0])===null||n===void 0?void 0:n.value,{value:f,defaultValue:d}),P=fe(E,2),M=P[0],O=P[1],T=s.useState(!1),N=fe(T,2),D=N[0],L=N[1],_=function(se,oe){O(oe),g?.(oe)},F=Qt(C,["children"]),j=s.useState(!1),k=fe(j,2),z=k[0],V=k[1],H=s.useState(!1),B=fe(H,2),K=B[0],W=B[1],G=function(){W(!0)},X=function(){W(!1)},Y=function(){V(!1)},Z=function(se){se.key==="Tab"&&V(!0)},ee=function(se){var oe=$.findIndex(function(ae){return ae.value===M}),me=$.length,ue=(oe+se+me)%me,de=$[ue];de&&(O(de.value),g?.(de.value))},re=function(se){switch(se.key){case"ArrowLeft":case"ArrowUp":ee(-1);break;case"ArrowRight":case"ArrowDown":ee(1);break}};return s.createElement("div",xe({role:"radiogroup","aria-label":"segmented control",tabIndex:u?void 0:0,"aria-orientation":i?"vertical":"horizontal"},F,{className:le(a,q(q(q({},"".concat(a,"-rtl"),o==="rtl"),"".concat(a,"-disabled"),u),"".concat(a,"-vertical"),i),b),ref:w}),s.createElement("div",{className:"".concat(a,"-group")},s.createElement(Xse,{vertical:i,prefixCls:a,value:M,containerRef:x,motionName:"".concat(a,"-").concat(S),direction:o,getValueIndex:function(se){return $.findIndex(function(oe){return oe.value===se})},onMotionStart:function(){L(!0)},onMotionEnd:function(){L(!1)}}),$.map(function(ne){return s.createElement(Jse,xe({},ne,{name:m,key:ne.value,prefixCls:a,className:le(ne.className,"".concat(a,"-item"),q(q({},"".concat(a,"-item-selected"),ne.value===M&&!D),"".concat(a,"-item-focused"),K&&z&&ne.value===M)),checked:ne.value===M,onChange:_,onFocus:G,onBlur:X,onKeyDown:re,onKeyUp:Z,onMouseDown:Y,disabled:!!u||!!ne.disabled}))})))}),tce=ece;function Y8(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function Q8(e){return{background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const nce=Object.assign({overflow:"hidden"},ra),rce=e=>{const{componentCls:t}=e,n=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),r=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),a=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},fn(e)),{display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`}),Ta(e)),{[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:"column"},[`${t}-thumb`]:{width:"100%",height:0,padding:`0 ${ce(e.paddingXXS)}`}},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},Q8(e)),{color:e.itemSelectedColor}),"&-focused":jo(e),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",opacity:0,transition:`opacity ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,pointerEvents:"none"},[`&:not(${t}-item-selected):not(${t}-item-disabled)`]:{"&:hover, &:active":{color:e.itemHoverColor},"&:hover::after":{opacity:1,backgroundColor:e.itemHoverBg},"&:active::after":{opacity:1,backgroundColor:e.itemActiveBg}},"&-label":Object.assign({minHeight:n,lineHeight:ce(n),padding:`0 ${ce(e.segmentedPaddingHorizontal)}`},nce),"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:Object.assign(Object.assign({},Q8(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${ce(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:r,lineHeight:ce(r),padding:`0 ${ce(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:a,lineHeight:ce(a),padding:`0 ${ce(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),Y8(`&-disabled ${t}-item`,e)),Y8(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"},[`&${t}-shape-round`]:{borderRadius:9999,[`${t}-item, ${t}-thumb`]:{borderRadius:9999}}})}},ace=e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:a,colorFill:o,lineWidthBold:i,colorBgLayout:l}=e;return{trackPadding:i,trackBg:l,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:a,itemActiveBg:o,itemSelectedColor:n}},oce=rn("Segmented",e=>{const{lineWidth:t,calc:n}=e,r=Xt(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()});return rce(r)},ace);var Z8=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const n=Ku(),{prefixCls:r,className:a,rootClassName:o,block:i,options:l=[],size:c="middle",style:u,vertical:d,shape:f="default",name:m=n}=e,g=Z8(e,["prefixCls","className","rootClassName","block","options","size","style","vertical","shape","name"]),{getPrefixCls:h,direction:b,className:p,style:S}=Vn("segmented"),C=h("segmented",r),[x,w,$]=oce(C),E=ar(c),P=s.useMemo(()=>l.map(T=>{if(ice(T)){const{icon:N,label:D}=T,L=Z8(T,["icon","label"]);return Object.assign(Object.assign({},L),{label:s.createElement(s.Fragment,null,s.createElement("span",{className:`${C}-item-icon`},N),D&&s.createElement("span",null,D))})}return T}),[l,C]),M=le(a,o,p,{[`${C}-block`]:i,[`${C}-sm`]:E==="small",[`${C}-lg`]:E==="large",[`${C}-vertical`]:d,[`${C}-shape-${f}`]:f==="round"},w,$),O=Object.assign(Object.assign({},S),u);return x(s.createElement(tce,Object.assign({},g,{name:m,className:M,style:O,options:P,ref:t,prefixCls:C,direction:b,vertical:d})))}),I9=lce,M9=Q.createContext({}),T9=Q.createContext({}),N9=({prefixCls:e,value:t,onChange:n})=>{const r=()=>{if(n&&t&&!t.cleared){const a=t.toHsb();a.a=0;const o=va(a);o.cleared=!0,n(o)}};return Q.createElement("div",{className:`${e}-clear`,onClick:r})},_9="hex",j9="rgb",D9="hsb";var sce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},cce=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:sce}))},uce=s.forwardRef(cce);function Vw(){return typeof BigInt=="function"}function F9(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function ks(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",a=r.split("."),o=a[0]||"0",i=a[1]||"0";o==="0"&&i==="0"&&(n=!1);var l=n?"-":"";return{negative:n,negativeStr:l,trimStr:r,integerStr:o,decimalStr:i,fullStr:"".concat(l).concat(r)}}function n0(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function k9(e){var t=e.toLowerCase().split("e"),n=fe(t,2),r=n[0],a=n[1],o=a===void 0?"0":a,i=r.startsWith("-"),l=i?r.slice(1):r,c=l.split("."),u=fe(c,2),d=u[0],f=d===void 0?"0":d,m=u[1],g=m===void 0?"":m,h="".concat(f).concat(g).replace(/^0+/,"")||"0";return{decimal:g,digits:h,exponent:Number(o),integer:f,negative:i}}function dce(e){var t=e.decimal,n=e.digits,r=e.exponent,a=e.integer,o=e.negative;if(n==="0")return"0";var i=a.replace(/^0+/,"").length,l=(t.match(/^0*/)||[""])[0].length,c=i||-l,u=c+r,d="";return u<=0?d="0.".concat("0".repeat(-u)).concat(n):u>=n.length?d="".concat(n).concat("0".repeat(u-n.length)):d="".concat(n.slice(0,u),".").concat(n.slice(u)),"".concat(o?"-":"").concat(d)}function L9(e){return e.exponent>=0?Math.max(0,e.decimal.length-e.exponent):Math.abs(e.exponent)+e.decimal.length}function Rs(e){var t=String(e);return n0(e)?L9(k9(t)):t.includes(".")&&d4(t)?t.length-t.indexOf(".")-1:0}function r0(e){var t=String(e);if(n0(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Vw()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e100?dce(n):e.toFixed(r)}return ks(t).fullStr}function d4(e){return typeof e=="number"?!Number.isNaN(e):e?/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e):!1}var fce=(function(){function e(t){if(kn(this,e),q(this,"origin",""),q(this,"negative",void 0),q(this,"integer",void 0),q(this,"decimal",void 0),q(this,"decimalLen",void 0),q(this,"empty",void 0),q(this,"nan",void 0),F9(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(n0(n)&&(n=Number(n)),n=typeof n=="string"?n:r0(n),d4(n)){var r=ks(n);this.negative=r.negative;var a=r.trimStr.split(".");this.integer=BigInt(a[0]);var o=a[1]||"0";this.decimal=BigInt(o),this.decimalLen=o.length}else this.nan=!0}return Ln(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(n){var r="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(n,"0"));return BigInt(r)}},{key:"negate",value:function(){var n=new e(this.toString());return n.negative=!n.negative,n}},{key:"cal",value:function(n,r,a){var o=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),i=this.alignDecimal(o),l=n.alignDecimal(o),c=r(i,l).toString(),u=a(o),d=ks(c),f=d.negativeStr,m=d.trimStr,g="".concat(f).concat(m.padStart(u+1,"0"));return new e("".concat(g.slice(0,-u),".").concat(g.slice(-u)))}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=new e(n);return r.isInvalidate()?this:this.cal(r,function(a,o){return a+o},function(a){return a})}},{key:"multi",value:function(n){var r=new e(n);return this.isInvalidate()||r.isInvalidate()?new e(NaN):this.cal(r,function(a,o){return a*o},function(a){return a*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toString()===n?.toString()}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":ks("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e})(),vce=(function(){function e(t){if(kn(this,e),q(this,"origin",""),q(this,"number",void 0),q(this,"empty",void 0),F9(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return Ln(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var a=this.number+r;if(a>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(aNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(a0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":n0(this.number)&&Rs(this.number)>100?String(this.number):r0(this.number):this.origin}}]),e})();function Go(e){return Vw()?new fce(e):new vce(e)}function lp(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var a=ks(e),o=a.negativeStr,i=a.integerStr,l=a.decimalStr,c="".concat(t).concat(l),u="".concat(o).concat(i);if(n>=0){var d=Number(l[n]);if(d>=5&&!r){var f=Go(e).add("".concat(o,"0.").concat("0".repeat(n)).concat(10-d));return lp(f.toString(),t,n,r)}return n===0?u:"".concat(u).concat(t).concat(l.padEnd(n,"0").slice(0,n))}return c===".0"?u:"".concat(u).concat(c)}function mce(e){return!!(e.addonBefore||e.addonAfter)}function gce(e){return!!(e.prefix||e.suffix||e.allowClear)}function J8(e,t,n){var r=t.cloneNode(!0),a=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},a}function jp(e,t,n,r){if(n){var a=t;if(t.type==="click"){a=J8(t,e,""),n(a);return}if(e.type!=="file"&&r!==void 0){a=J8(t,e,r),n(a);return}n(a)}}function f4(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var a=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(a,a);break;default:e.setSelectionRange(0,a)}}}}var v4=Q.forwardRef(function(e,t){var n,r,a,o=e.inputElement,i=e.children,l=e.prefixCls,c=e.prefix,u=e.suffix,d=e.addonBefore,f=e.addonAfter,m=e.className,g=e.style,h=e.disabled,b=e.readOnly,p=e.focused,S=e.triggerFocus,C=e.allowClear,x=e.value,w=e.handleReset,$=e.hidden,E=e.classes,P=e.classNames,M=e.dataAttrs,O=e.styles,T=e.components,N=e.onClear,D=i??o,L=T?.affixWrapper||"span",_=T?.groupWrapper||"span",F=T?.wrapper||"span",j=T?.groupAddon||"span",k=s.useRef(null),z=function(de){var ae;(ae=k.current)!==null&&ae!==void 0&&ae.contains(de.target)&&S?.()},V=gce(e),H=s.cloneElement(D,{value:x,className:le((n=D.props)===null||n===void 0?void 0:n.className,!V&&P?.variant)||null}),B=s.useRef(null);if(Q.useImperativeHandle(t,function(){return{nativeElement:B.current||k.current}}),V){var K=null;if(C){var W=!h&&!b&&x,G="".concat(l,"-clear-icon"),X=st(C)==="object"&&C!==null&&C!==void 0&&C.clearIcon?C.clearIcon:"✖";K=Q.createElement("button",{type:"button",tabIndex:-1,onClick:function(de){w?.(de),N?.()},onMouseDown:function(de){return de.preventDefault()},className:le(G,q(q({},"".concat(G,"-hidden"),!W),"".concat(G,"-has-suffix"),!!u))},X)}var Y="".concat(l,"-affix-wrapper"),Z=le(Y,q(q(q(q(q({},"".concat(l,"-disabled"),h),"".concat(Y,"-disabled"),h),"".concat(Y,"-focused"),p),"".concat(Y,"-readonly"),b),"".concat(Y,"-input-with-clear-btn"),u&&C&&x),E?.affixWrapper,P?.affixWrapper,P?.variant),ee=(u||C)&&Q.createElement("span",{className:le("".concat(l,"-suffix"),P?.suffix),style:O?.suffix},K,u);H=Q.createElement(L,xe({className:Z,style:O?.affixWrapper,onClick:z},M?.affixWrapper,{ref:k}),c&&Q.createElement("span",{className:le("".concat(l,"-prefix"),P?.prefix),style:O?.prefix},c),H,ee)}if(mce(e)){var re="".concat(l,"-group"),ne="".concat(re,"-addon"),se="".concat(re,"-wrapper"),oe=le("".concat(l,"-wrapper"),re,E?.wrapper,P?.wrapper),me=le(se,q({},"".concat(se,"-disabled"),h),E?.group,P?.groupWrapper);H=Q.createElement(_,{className:me,ref:B},Q.createElement(F,{className:oe},d&&Q.createElement(j,{className:ne},d),H,f&&Q.createElement(j,{className:ne},f)))}return Q.cloneElement(H,{className:le((r=H.props)===null||r===void 0?void 0:r.className,m)||null,style:R(R({},(a=H.props)===null||a===void 0?void 0:a.style),g),hidden:$})}),pce=["show"];function z9(e,t){return s.useMemo(function(){var n={};t&&(n.show=st(t)==="object"&&t.formatter?t.formatter:!!t),n=R(R({},n),e);var r=n,a=r.show,o=Ue(r,pce);return R(R({},o),{},{show:!!a,showFormatter:typeof a=="function"?a:void 0,strategy:o.strategy||function(i){return i.length}})},[e,t])}var hce=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],bce=s.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,a=e.onFocus,o=e.onBlur,i=e.onPressEnter,l=e.onKeyDown,c=e.onKeyUp,u=e.prefixCls,d=u===void 0?"rc-input":u,f=e.disabled,m=e.htmlSize,g=e.className,h=e.maxLength,b=e.suffix,p=e.showCount,S=e.count,C=e.type,x=C===void 0?"text":C,w=e.classes,$=e.classNames,E=e.styles,P=e.onCompositionStart,M=e.onCompositionEnd,O=Ue(e,hce),T=s.useState(!1),N=fe(T,2),D=N[0],L=N[1],_=s.useRef(!1),F=s.useRef(!1),j=s.useRef(null),k=s.useRef(null),z=function(Se){j.current&&f4(j.current,Se)},V=Tt(e.defaultValue,{value:e.value}),H=fe(V,2),B=H[0],K=H[1],W=B==null?"":String(B),G=s.useState(null),X=fe(G,2),Y=X[0],Z=X[1],ee=z9(S,p),re=ee.max||h,ne=ee.strategy(W),se=!!re&&ne>re;s.useImperativeHandle(t,function(){var he;return{focus:z,blur:function(){var Ee;(Ee=j.current)===null||Ee===void 0||Ee.blur()},setSelectionRange:function(Ee,Oe,We){var je;(je=j.current)===null||je===void 0||je.setSelectionRange(Ee,Oe,We)},select:function(){var Ee;(Ee=j.current)===null||Ee===void 0||Ee.select()},input:j.current,nativeElement:((he=k.current)===null||he===void 0?void 0:he.nativeElement)||j.current}}),s.useEffect(function(){F.current&&(F.current=!1),L(function(he){return he&&f?!1:he})},[f]);var oe=function(Se,Ee,Oe){var We=Ee;if(!_.current&&ee.exceedFormatter&&ee.max&&ee.strategy(Ee)>ee.max){if(We=ee.exceedFormatter(Ee,{max:ee.max}),Ee!==We){var je,De;Z([((je=j.current)===null||je===void 0?void 0:je.selectionStart)||0,((De=j.current)===null||De===void 0?void 0:De.selectionEnd)||0])}}else if(Oe.source==="compositionEnd")return;K(We),j.current&&jp(j.current,Se,r,We)};s.useEffect(function(){if(Y){var he;(he=j.current)===null||he===void 0||he.setSelectionRange.apply(he,Te(Y))}},[Y]);var me=function(Se){oe(Se,Se.target.value,{source:"change"})},ue=function(Se){_.current=!1,oe(Se,Se.currentTarget.value,{source:"compositionEnd"}),M?.(Se)},de=function(Se){i&&Se.key==="Enter"&&!F.current&&(F.current=!0,i(Se)),l?.(Se)},ae=function(Se){Se.key==="Enter"&&(F.current=!1),c?.(Se)},ie=function(Se){L(!0),a?.(Se)},ge=function(Se){F.current&&(F.current=!1),L(!1),o?.(Se)},pe=function(Se){K(""),z(),j.current&&jp(j.current,Se,r)},be=se&&"".concat(d,"-out-of-range"),ve=function(){var Se=Qt(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return Q.createElement("input",xe({autoComplete:n},Se,{onChange:me,onFocus:ie,onBlur:ge,onKeyDown:de,onKeyUp:ae,className:le(d,q({},"".concat(d,"-disabled"),f),$?.input),style:E?.input,ref:j,size:m,type:x,onCompositionStart:function(Oe){_.current=!0,P?.(Oe)},onCompositionEnd:ue}))},Ce=function(){var Se=Number(re)>0;if(b||ee.show){var Ee=ee.showFormatter?ee.showFormatter({value:W,count:ne,maxLength:re}):"".concat(ne).concat(Se?" / ".concat(re):"");return Q.createElement(Q.Fragment,null,ee.show&&Q.createElement("span",{className:le("".concat(d,"-show-count-suffix"),q({},"".concat(d,"-show-count-has-suffix"),!!b),$?.count),style:R({},E?.count)},Ee),b)}return null};return Q.createElement(v4,xe({},O,{prefixCls:d,className:le(g,be),handleReset:pe,value:W,focused:D,triggerFocus:z,suffix:Ce(),disabled:f,classes:w,classNames:$,styles:E,ref:k}),ve())});function yce(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(r,a){if(t[a])return t[a];var o=r[a];return typeof o=="function"?o.bind(r):o}}):e}function Cce(e,t){var n=s.useRef(null);function r(){try{var o=e.selectionStart,i=e.selectionEnd,l=e.value,c=l.substring(0,o),u=l.substring(i);n.current={start:o,end:i,value:l,beforeTxt:c,afterTxt:u}}catch{}}function a(){if(e&&n.current&&t)try{var o=e.value,i=n.current,l=i.beforeTxt,c=i.afterTxt,u=i.start,d=o.length;if(o.startsWith(l))d=l.length;else if(o.endsWith(c))d=o.length-n.current.afterTxt.length;else{var f=l[u-1],m=o.indexOf(f,u-1);m!==-1&&(d=m+1)}e.setSelectionRange(d,d)}catch(g){jn(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(g.message))}}return[r,a]}var Sce=function(){var t=s.useState(!1),n=fe(t,2),r=n[0],a=n[1];return un(function(){a(Fh())},[]),r},xce=200,wce=600;function $ce(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,a=e.upDisabled,o=e.downDisabled,i=e.onStep,l=s.useRef(),c=s.useRef([]),u=s.useRef();u.current=i;var d=function(){clearTimeout(l.current)},f=function(x,w){x.preventDefault(),d(),u.current(w);function $(){u.current(w),l.current=setTimeout($,xce)}l.current=setTimeout($,wce)};s.useEffect(function(){return function(){d(),c.current.forEach(function(C){return ln.cancel(C)})}},[]);var m=Sce();if(m)return null;var g="".concat(t,"-handler"),h=le(g,"".concat(g,"-up"),q({},"".concat(g,"-up-disabled"),a)),b=le(g,"".concat(g,"-down"),q({},"".concat(g,"-down-disabled"),o)),p=function(){return c.current.push(ln(d))},S={unselectable:"on",role:"button",onMouseUp:p,onMouseLeave:p};return s.createElement("div",{className:"".concat(g,"-wrap")},s.createElement("span",xe({},S,{onMouseDown:function(x){f(x,!0)},"aria-label":"Increase Value","aria-disabled":a,className:h}),n||s.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),s.createElement("span",xe({},S,{onMouseDown:function(x){f(x,!1)},"aria-label":"Decrease Value","aria-disabled":o,className:b}),r||s.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function eI(e){var t=typeof e=="number"?r0(e):ks(e).fullStr,n=t.includes(".");return n?ks(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const Ece=(function(){var e=s.useRef(0),t=function(){ln.cancel(e.current)};return s.useEffect(function(){return t},[]),function(n){t(),e.current=ln(function(){n()})}});var Pce=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],Oce=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],tI=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},nI=function(t){var n=Go(t);return n.isInvalidate()?null:n},Rce=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,o=e.min,i=e.max,l=e.step,c=l===void 0?1:l,u=e.defaultValue,d=e.value,f=e.disabled,m=e.readOnly,g=e.upHandler,h=e.downHandler,b=e.keyboard,p=e.changeOnWheel,S=p===void 0?!1:p,C=e.controls,x=C===void 0?!0:C;e.classNames;var w=e.stringMode,$=e.parser,E=e.formatter,P=e.precision,M=e.decimalSeparator,O=e.onChange,T=e.onInput,N=e.onPressEnter,D=e.onStep,L=e.changeOnBlur,_=L===void 0?!0:L,F=e.domRef,j=Ue(e,Pce),k="".concat(n,"-input"),z=s.useRef(null),V=s.useState(!1),H=fe(V,2),B=H[0],K=H[1],W=s.useRef(!1),G=s.useRef(!1),X=s.useRef(!1),Y=s.useState(function(){return Go(d??u)}),Z=fe(Y,2),ee=Z[0],re=Z[1];function ne(Ke){d===void 0&&re(Ke)}var se=s.useCallback(function(Ke,Ye){if(!Ye)return P>=0?P:Math.max(Rs(Ke),Rs(c))},[P,c]),oe=s.useCallback(function(Ke){var Ye=String(Ke);if($)return $(Ye);var tt=Ye;return M&&(tt=tt.replace(M,".")),tt.replace(/[^\w.-]+/g,"")},[$,M]),me=s.useRef(""),ue=s.useCallback(function(Ke,Ye){if(E)return E(Ke,{userTyping:Ye,input:String(me.current)});var tt=typeof Ke=="number"?r0(Ke):Ke;if(!Ye){var rt=se(tt,Ye);if(d4(tt)&&(M||rt>=0)){var ct=M||".";tt=lp(tt,ct,rt)}}return tt},[E,se,M]),de=s.useState(function(){var Ke=u??d;return ee.isInvalidate()&&["string","number"].includes(st(Ke))?Number.isNaN(Ke)?"":Ke:ue(ee.toString(),!1)}),ae=fe(de,2),ie=ae[0],ge=ae[1];me.current=ie;function pe(Ke,Ye){ge(ue(Ke.isInvalidate()?Ke.toString(!1):Ke.toString(!Ye),Ye))}var be=s.useMemo(function(){return nI(i)},[i,P]),ve=s.useMemo(function(){return nI(o)},[o,P]),Ce=s.useMemo(function(){return!be||!ee||ee.isInvalidate()?!1:be.lessEquals(ee)},[be,ee]),he=s.useMemo(function(){return!ve||!ee||ee.isInvalidate()?!1:ee.lessEquals(ve)},[ve,ee]),Se=Cce(z.current,B),Ee=fe(Se,2),Oe=Ee[0],We=Ee[1],je=function(Ye){return be&&!Ye.lessEquals(be)?be:ve&&!ve.lessEquals(Ye)?ve:null},De=function(Ye){return!je(Ye)},ke=function(Ye,tt){var rt=Ye,ct=De(rt)||rt.isEmpty();if(!rt.isEmpty()&&!tt&&(rt=je(rt)||rt,ct=!0),!m&&!f&&ct){var Ct=rt.toString(),yt=se(Ct,tt);return yt>=0&&(rt=Go(lp(Ct,".",yt)),De(rt)||(rt=Go(lp(Ct,".",yt,!0)))),rt.equals(ee)||(ne(rt),O?.(rt.isEmpty()?null:tI(w,rt)),d===void 0&&pe(rt,tt)),rt}return ee},_e=Ece(),Re=function Ke(Ye){if(Oe(),me.current=Ye,ge(Ye),!G.current){var tt=oe(Ye),rt=Go(tt);rt.isNaN()||ke(rt,!0)}T?.(Ye),_e(function(){var ct=Ye;$||(ct=Ye.replace(/。/g,".")),ct!==Ye&&Ke(ct)})},Le=function(){G.current=!0},Me=function(){G.current=!1,Re(z.current.value)},Be=function(Ye){Re(Ye.target.value)},$e=function(Ye){var tt;if(!(Ye&&Ce||!Ye&&he)){W.current=!1;var rt=Go(X.current?eI(c):c);Ye||(rt=rt.negate());var ct=(ee||Go(0)).add(rt.toString()),Ct=ke(ct,!1);D?.(tI(w,Ct),{offset:X.current?eI(c):c,type:Ye?"up":"down"}),(tt=z.current)===null||tt===void 0||tt.focus()}},we=function(Ye){var tt=Go(oe(ie)),rt;tt.isNaN()?rt=ke(ee,Ye):rt=ke(tt,Ye),d!==void 0?pe(ee,!1):rt.isNaN()||pe(rt,!1)},Ie=function(){W.current=!0},Fe=function(Ye){var tt=Ye.key,rt=Ye.shiftKey;W.current=!0,X.current=rt,tt==="Enter"&&(G.current||(W.current=!1),we(!1),N?.(Ye)),b!==!1&&!G.current&&["Up","ArrowUp","Down","ArrowDown"].includes(tt)&&($e(tt==="Up"||tt==="ArrowUp"),Ye.preventDefault())},Ge=function(){W.current=!1,X.current=!1};s.useEffect(function(){if(S&&B){var Ke=function(rt){$e(rt.deltaY<0),rt.preventDefault()},Ye=z.current;if(Ye)return Ye.addEventListener("wheel",Ke,{passive:!1}),function(){return Ye.removeEventListener("wheel",Ke)}}});var et=function(){_&&we(!1),K(!1),W.current=!1};return Ds(function(){ee.isInvalidate()||pe(ee,!1)},[P,E]),Ds(function(){var Ke=Go(d);re(Ke);var Ye=Go(oe(ie));(!Ke.equals(Ye)||!W.current||E)&&pe(Ke,W.current)},[d]),Ds(function(){E&&We()},[ie]),s.createElement("div",{ref:F,className:le(n,r,q(q(q(q(q({},"".concat(n,"-focused"),B),"".concat(n,"-disabled"),f),"".concat(n,"-readonly"),m),"".concat(n,"-not-a-number"),ee.isNaN()),"".concat(n,"-out-of-range"),!ee.isInvalidate()&&!De(ee))),style:a,onFocus:function(){K(!0)},onBlur:et,onKeyDown:Fe,onKeyUp:Ge,onCompositionStart:Le,onCompositionEnd:Me,onBeforeInput:Ie},x&&s.createElement($ce,{prefixCls:n,upNode:g,downNode:h,upDisabled:Ce,downDisabled:he,onStep:$e}),s.createElement("div",{className:"".concat(k,"-wrap")},s.createElement("input",xe({autoComplete:"off",role:"spinbutton","aria-valuemin":o,"aria-valuemax":i,"aria-valuenow":ee.isInvalidate()?null:ee.toString(),step:c},j,{ref:wr(z,t),className:k,value:ie,onChange:Be,disabled:f,readOnly:m}))))}),Ice=s.forwardRef(function(e,t){var n=e.disabled,r=e.style,a=e.prefixCls,o=a===void 0?"rc-input-number":a,i=e.value,l=e.prefix,c=e.suffix,u=e.addonBefore,d=e.addonAfter,f=e.className,m=e.classNames,g=Ue(e,Oce),h=s.useRef(null),b=s.useRef(null),p=s.useRef(null),S=function(x){p.current&&f4(p.current,x)};return s.useImperativeHandle(t,function(){return yce(p.current,{focus:S,nativeElement:h.current.nativeElement||b.current})}),s.createElement(v4,{className:f,triggerFocus:S,prefixCls:o,value:i,disabled:n,style:r,prefix:l,suffix:c,addonAfter:d,addonBefore:u,classNames:m,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:h},s.createElement(Rce,xe({prefixCls:o,disabled:n,ref:p,domRef:b,className:m?.input},g)))});const Mce=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto",r=e.controlHeightSM-e.lineWidth*2;return Object.assign(Object.assign({},ac(e)),{controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new dn(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0,handleVisibleWidth:n===!0?r:0})},rI=({componentCls:e,borderRadiusSM:t,borderRadiusLG:n},r)=>{const a=r==="lg"?n:t;return{[`&-${r}`]:{[`${e}-handler-wrap`]:{borderStartEndRadius:a,borderEndEndRadius:a},[`${e}-handler-up`]:{borderStartEndRadius:a},[`${e}-handler-down`]:{borderEndEndRadius:a}}}},Tce=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:a,inputFontSizeSM:o,inputFontSizeLG:i,controlHeightLG:l,controlHeightSM:c,colorError:u,paddingInlineSM:d,paddingBlockSM:f,paddingBlockLG:m,paddingInlineLG:g,colorIcon:h,motionDurationMid:b,handleHoverColor:p,handleOpacity:S,paddingInline:C,paddingBlock:x,handleBg:w,handleActiveBg:$,colorTextDisabled:E,borderRadiusSM:P,borderRadiusLG:M,controlWidth:O,handleBorderColor:T,filledHandleBg:N,lineHeightLG:D,calc:L}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},fn(e)),Ev(e)),{display:"inline-block",width:O,margin:0,padding:0,borderRadius:a}),n4(e,{[`${t}-handler-wrap`]:{background:w,[`${t}-handler-down`]:{borderBlockStart:`${ce(n)} ${r} ${T}`}}})),a4(e,{[`${t}-handler-wrap`]:{background:N,[`${t}-handler-down`]:{borderBlockStart:`${ce(n)} ${r} ${T}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:w}}})),o4(e,{[`${t}-handler-wrap`]:{background:w,[`${t}-handler-down`]:{borderBlockStart:`${ce(n)} ${r} ${T}`}}})),r4(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:i,lineHeight:D,borderRadius:M,[`input${t}-input`]:{height:L(l).sub(L(n).mul(2)).equal(),padding:`${ce(m)} ${ce(g)}`}},"&-sm":{padding:0,fontSize:o,borderRadius:P,[`input${t}-input`]:{height:L(c).sub(L(n).mul(2)).equal(),padding:`${ce(f)} ${ce(d)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:u}}},"&-group":Object.assign(Object.assign(Object.assign({},fn(e)),GL(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:M,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:P}}},VL(e)),KL(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},fn(e)),{width:"100%",padding:`${ce(x)} ${ce(C)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:a,outline:0,transition:`all ${b} linear`,appearance:"textfield",fontSize:"inherit"}),i4(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:S,height:"100%",borderStartStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${b}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` - ${t}-handler-up-inner, - ${t}-handler-down-inner - `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:h,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${ce(n)} ${r} ${T}`,transition:`all ${b} linear`,"&:active":{background:$},"&:hover":{height:"60%",[` - ${t}-handler-up-inner, - ${t}-handler-down-inner - `]:{color:p}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},rs()),{color:h,transition:`all ${b} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:a},[`${t}-handler-down`]:{borderEndEndRadius:a}},rI(e,"lg")),rI(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[` - ${t}-handler-up-disabled, - ${t}-handler-down-disabled - `]:{cursor:"not-allowed"},[` - ${t}-handler-up-disabled:hover &-handler-up-inner, - ${t}-handler-down-disabled:hover &-handler-down-inner - `]:{color:E}})}]},Nce=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:a,controlWidth:o,borderRadiusLG:i,borderRadiusSM:l,paddingInlineLG:c,paddingInlineSM:u,paddingBlockLG:d,paddingBlockSM:f,motionDurationMid:m}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${ce(n)} 0`}},Ev(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:o,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:i,paddingInlineStart:c,[`input${t}-input`]:{padding:`${ce(d)} 0`}},"&-sm":{borderRadius:l,paddingInlineStart:u,[`input${t}-input`]:{padding:`${ce(f)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:a},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:a,transition:`margin ${m}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(r).equal()}}),[`${t}-underlined`]:{borderRadius:0}}},_ce=rn("InputNumber",e=>{const t=Xt(e,rc(e));return[Tce(t),Nce(t),os(t)]},Mce,{unitless:{handleOpacity:!0},resetFont:!1});var jce=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:n,direction:r}=s.useContext(Ot),a=s.useRef(null);s.useImperativeHandle(t,()=>a.current);const{className:o,rootClassName:i,size:l,disabled:c,prefixCls:u,addonBefore:d,addonAfter:f,prefix:m,suffix:g,bordered:h,readOnly:b,status:p,controls:S,variant:C}=e,x=jce(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),w=n("input-number",u),$=zn(w),[E,P,M]=_ce(w,$),{compactSize:O,compactItemClassnames:T}=mo(w,r);let N=s.createElement(uce,{className:`${w}-handler-up-inner`}),D=s.createElement(Ri,{className:`${w}-handler-down-inner`});const L=typeof S=="boolean"?S:void 0;typeof S=="object"&&(N=typeof S.upIcon>"u"?N:s.createElement("span",{className:`${w}-handler-up-inner`},S.upIcon),D=typeof S.downIcon>"u"?D:s.createElement("span",{className:`${w}-handler-down-inner`},S.downIcon));const{hasFeedback:_,status:F,isFormItemInput:j,feedbackIcon:k}=s.useContext(Or),z=ji(F,p),V=ar(ee=>{var re;return(re=l??O)!==null&&re!==void 0?re:ee}),H=s.useContext(Sr),B=c??H,[K,W]=Di("inputNumber",C,h),G=_&&s.createElement(s.Fragment,null,k),X=le({[`${w}-lg`]:V==="large",[`${w}-sm`]:V==="small",[`${w}-rtl`]:r==="rtl",[`${w}-in-form-item`]:j},P),Y=`${w}-group`,Z=s.createElement(Ice,Object.assign({ref:a,disabled:B,className:le(M,$,o,i,T),upHandler:N,downHandler:D,prefixCls:w,readOnly:b,controls:L,prefix:m,suffix:G||g,addonBefore:d&&s.createElement(Do,{form:!0,space:!0},d),addonAfter:f&&s.createElement(Do,{form:!0,space:!0},f),classNames:{input:X,variant:le({[`${w}-${K}`]:W},Fo(w,z,_)),affixWrapper:le({[`${w}-affix-wrapper-sm`]:V==="small",[`${w}-affix-wrapper-lg`]:V==="large",[`${w}-affix-wrapper-rtl`]:r==="rtl",[`${w}-affix-wrapper-without-controls`]:S===!1||B||b},P),wrapper:le({[`${Y}-rtl`]:r==="rtl"},P),groupWrapper:le({[`${w}-group-wrapper-sm`]:V==="small",[`${w}-group-wrapper-lg`]:V==="large",[`${w}-group-wrapper-rtl`]:r==="rtl",[`${w}-group-wrapper-${K}`]:W},Fo(`${w}-group-wrapper`,z,_),P)}},x));return E(Z)}),ul=A9,Dce=e=>s.createElement(At,{theme:{components:{InputNumber:{handleVisible:!0}}}},s.createElement(A9,Object.assign({},e)));ul._InternalPanelDoNotUseOrYouWillBeFired=Dce;const Ls=({prefixCls:e,min:t=0,max:n=100,value:r,onChange:a,className:o,formatter:i})=>{const l=`${e}-steppers`,[c,u]=s.useState(0),d=Number.isNaN(r)?c:r;return Q.createElement(ul,{className:le(l,o),min:t,max:n,value:d,formatter:i,size:"small",onChange:f=>{u(f||0),a?.(f)}})},Fce=({prefixCls:e,value:t,onChange:n})=>{const r=`${e}-alpha-input`,[a,o]=s.useState(()=>va(t||"#000")),i=t||a,l=c=>{const u=i.toHsb();u.a=(c||0)/100;const d=va(u);o(d),n?.(d)};return Q.createElement(Ls,{value:yE(i),prefixCls:e,formatter:c=>`${c}%`,className:r,onChange:l})},B9=e=>{let t;return typeof e=="object"&&e?.clearIcon?t=e:e&&(t={clearIcon:Q.createElement(_i,null)}),t};function H9(e,t){const n=s.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var a,o,i,l;!((a=e.current)===null||a===void 0)&&a.input&&((o=e.current)===null||o===void 0?void 0:o.input.getAttribute("type"))==="password"&&(!((i=e.current)===null||i===void 0)&&i.input.hasAttribute("value"))&&((l=e.current)===null||l===void 0||l.input.removeAttribute("value"))}))};return s.useEffect(()=>(t&&r(),()=>n.current.forEach(a=>{a&&clearTimeout(a)})),[]),r}function kce(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var Lce=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,bordered:r=!0,status:a,size:o,disabled:i,onBlur:l,onFocus:c,suffix:u,allowClear:d,addonAfter:f,addonBefore:m,className:g,style:h,styles:b,rootClassName:p,onChange:S,classNames:C,variant:x,_skipAddonWarning:w}=e,$=Lce(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant","_skipAddonWarning"]),{getPrefixCls:E,direction:P,allowClear:M,autoComplete:O,className:T,style:N,classNames:D,styles:L}=Vn("input"),_=E("input",n),F=s.useRef(null),j=zn(_),[k,z,V]=XL(_,p),[H]=YL(_,j),{compactSize:B,compactItemClassnames:K}=mo(_,P),W=ar(pe=>{var be;return(be=o??B)!==null&&be!==void 0?be:pe}),G=Q.useContext(Sr),X=i??G,{status:Y,hasFeedback:Z,feedbackIcon:ee}=s.useContext(Or),re=ji(Y,a),ne=kce(e)||!!Z;s.useRef(ne);const se=H9(F,!0),oe=pe=>{se(),l?.(pe)},me=pe=>{se(),c?.(pe)},ue=pe=>{se(),S?.(pe)},de=(Z||u)&&Q.createElement(Q.Fragment,null,u,Z&&ee),ae=B9(d??M),[ie,ge]=Di("input",x,r);return k(H(Q.createElement(bce,Object.assign({ref:wr(t,F),prefixCls:_,autoComplete:O},$,{disabled:X,onBlur:oe,onFocus:me,style:Object.assign(Object.assign({},N),h),styles:Object.assign(Object.assign({},L),b),suffix:de,allowClear:ae,className:le(g,p,V,j,K,T),onChange:ue,addonBefore:m&&Q.createElement(Do,{form:!0,space:!0},m),addonAfter:f&&Q.createElement(Do,{form:!0,space:!0},f),classNames:Object.assign(Object.assign(Object.assign({},C),D),{input:le({[`${_}-sm`]:W==="small",[`${_}-lg`]:W==="large",[`${_}-rtl`]:P==="rtl"},C?.input,D.input,z),variant:le({[`${_}-${ie}`]:ge},Fo(_,re)),affixWrapper:le({[`${_}-affix-wrapper-sm`]:W==="small",[`${_}-affix-wrapper-lg`]:W==="large",[`${_}-affix-wrapper-rtl`]:P==="rtl"},z),wrapper:le({[`${_}-group-rtl`]:P==="rtl"},z),groupWrapper:le({[`${_}-group-wrapper-sm`]:W==="small",[`${_}-group-wrapper-lg`]:W==="large",[`${_}-group-wrapper-rtl`]:P==="rtl",[`${_}-group-wrapper-${ie}`]:ge},Fo(`${_}-group-wrapper`,re,Z),z)})}))))}),zce=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,Ace=e=>zce.test(`#${e}`),Bce=({prefixCls:e,value:t,onChange:n})=>{const r=`${e}-hex-input`,[a,o]=s.useState(()=>t?af(t.toHexString()):void 0);s.useEffect(()=>{t&&o(af(t.toHexString()))},[t]);const i=l=>{const c=l.target.value;o(af(c)),Ace(af(c,!0))&&n?.(va(c))};return Q.createElement(oc,{className:r,value:a,prefix:"#",onChange:i,size:"small"})},Hce=({prefixCls:e,value:t,onChange:n})=>{const r=`${e}-hsb-input`,[a,o]=s.useState(()=>va(t||"#000")),i=t||a,l=(c,u)=>{const d=i.toHsb();d[u]=u==="h"?c:(c||0)/100;const f=va(d);o(f),n?.(f)};return Q.createElement("div",{className:r},Q.createElement(Ls,{max:360,min:0,value:Number(i.toHsb().h),prefixCls:e,className:r,formatter:c=>Xg(c||0).toString(),onChange:c=>l(Number(c),"h")}),Q.createElement(Ls,{max:100,min:0,value:Number(i.toHsb().s)*100,prefixCls:e,className:r,formatter:c=>`${Xg(c||0)}%`,onChange:c=>l(Number(c),"s")}),Q.createElement(Ls,{max:100,min:0,value:Number(i.toHsb().b)*100,prefixCls:e,className:r,formatter:c=>`${Xg(c||0)}%`,onChange:c=>l(Number(c),"b")}))},Vce=({prefixCls:e,value:t,onChange:n})=>{const r=`${e}-rgb-input`,[a,o]=s.useState(()=>va(t||"#000")),i=t||a,l=(c,u)=>{const d=i.toRgb();d[u]=c||0;const f=va(d);o(f),n?.(f)};return Q.createElement("div",{className:r},Q.createElement(Ls,{max:255,min:0,value:Number(i.toRgb().r),prefixCls:e,className:r,onChange:c=>l(Number(c),"r")}),Q.createElement(Ls,{max:255,min:0,value:Number(i.toRgb().g),prefixCls:e,className:r,onChange:c=>l(Number(c),"g")}),Q.createElement(Ls,{max:255,min:0,value:Number(i.toRgb().b),prefixCls:e,className:r,onChange:c=>l(Number(c),"b")}))},Wce=[_9,D9,j9].map(e=>({value:e,label:e.toUpperCase()})),Kce=e=>{const{prefixCls:t,format:n,value:r,disabledAlpha:a,onFormatChange:o,onChange:i,disabledFormat:l}=e,[c,u]=Tt(_9,{value:n,onChange:o}),d=`${t}-input`,f=g=>{u(g)},m=s.useMemo(()=>{const g={value:r,prefixCls:t,onChange:i};switch(c){case D9:return Q.createElement(Hce,Object.assign({},g));case j9:return Q.createElement(Vce,Object.assign({},g));default:return Q.createElement(Bce,Object.assign({},g))}},[c,t,r,i]);return Q.createElement("div",{className:`${d}-container`},!l&&Q.createElement(fl,{value:c,variant:"borderless",getPopupContainer:g=>g,popupMatchSelectWidth:68,placement:"bottomRight",onChange:f,className:`${t}-format-select`,size:"small",options:Wce}),Q.createElement("div",{className:d},m),!a&&Q.createElement(Fce,{prefixCls:t,value:r,onChange:i}))};function Ww(e,t,n){return(e-t)/(n-t)}function m4(e,t,n,r){var a=Ww(t,n,r),o={};switch(e){case"rtl":o.right="".concat(a*100,"%"),o.transform="translateX(50%)";break;case"btt":o.bottom="".concat(a*100,"%"),o.transform="translateY(50%)";break;case"ttb":o.top="".concat(a*100,"%"),o.transform="translateY(-50%)";break;default:o.left="".concat(a*100,"%"),o.transform="translateX(-50%)";break}return o}function Is(e,t){return Array.isArray(e)?e[t]:e}var ic=s.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),V9=s.createContext({}),qce=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],aI=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.value,a=e.valueIndex,o=e.onStartMove,i=e.onDelete,l=e.style,c=e.render,u=e.dragging,d=e.draggingDelete,f=e.onOffsetChange,m=e.onChangeComplete,g=e.onFocus,h=e.onMouseEnter,b=Ue(e,qce),p=s.useContext(ic),S=p.min,C=p.max,x=p.direction,w=p.disabled,$=p.keyboard,E=p.range,P=p.tabIndex,M=p.ariaLabelForHandle,O=p.ariaLabelledByForHandle,T=p.ariaRequired,N=p.ariaValueTextFormatterForHandle,D=p.styles,L=p.classNames,_="".concat(n,"-handle"),F=function(X){w||o(X,a)},j=function(X){g?.(X,a)},k=function(X){h(X,a)},z=function(X){if(!w&&$){var Y=null;switch(X.which||X.keyCode){case lt.LEFT:Y=x==="ltr"||x==="btt"?-1:1;break;case lt.RIGHT:Y=x==="ltr"||x==="btt"?1:-1;break;case lt.UP:Y=x!=="ttb"?1:-1;break;case lt.DOWN:Y=x!=="ttb"?-1:1;break;case lt.HOME:Y="min";break;case lt.END:Y="max";break;case lt.PAGE_UP:Y=2;break;case lt.PAGE_DOWN:Y=-2;break;case lt.BACKSPACE:case lt.DELETE:i?.(a);break}Y!==null&&(X.preventDefault(),f(Y,a))}},V=function(X){switch(X.which||X.keyCode){case lt.LEFT:case lt.RIGHT:case lt.UP:case lt.DOWN:case lt.HOME:case lt.END:case lt.PAGE_UP:case lt.PAGE_DOWN:m?.();break}},H=m4(x,r,S,C),B={};if(a!==null){var K;B={tabIndex:w?null:Is(P,a),role:"slider","aria-valuemin":S,"aria-valuemax":C,"aria-valuenow":r,"aria-disabled":w,"aria-label":Is(M,a),"aria-labelledby":Is(O,a),"aria-required":Is(T,a),"aria-valuetext":(K=Is(N,a))===null||K===void 0?void 0:K(r),"aria-orientation":x==="ltr"||x==="rtl"?"horizontal":"vertical",onMouseDown:F,onTouchStart:F,onFocus:j,onMouseEnter:k,onKeyDown:z,onKeyUp:V}}var W=s.createElement("div",xe({ref:t,className:le(_,q(q(q({},"".concat(_,"-").concat(a+1),a!==null&&E),"".concat(_,"-dragging"),u),"".concat(_,"-dragging-delete"),d),L.handle),style:R(R(R({},H),l),D.handle)},B,b));return c&&(W=c(W,{index:a,prefixCls:n,value:r,dragging:u,draggingDelete:d})),W}),Uce=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],Gce=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,a=e.onStartMove,o=e.onOffsetChange,i=e.values,l=e.handleRender,c=e.activeHandleRender,u=e.draggingIndex,d=e.draggingDelete,f=e.onFocus,m=Ue(e,Uce),g=s.useRef({}),h=s.useState(!1),b=fe(h,2),p=b[0],S=b[1],C=s.useState(-1),x=fe(C,2),w=x[0],$=x[1],E=function(N){$(N),S(!0)},P=function(N,D){E(D),f?.(N)},M=function(N,D){E(D)};s.useImperativeHandle(t,function(){return{focus:function(N){var D;(D=g.current[N])===null||D===void 0||D.focus()},hideHelp:function(){kr.flushSync(function(){S(!1)})}}});var O=R({prefixCls:n,onStartMove:a,onOffsetChange:o,render:l,onFocus:P,onMouseEnter:M},m);return s.createElement(s.Fragment,null,i.map(function(T,N){var D=u===N;return s.createElement(aI,xe({ref:function(_){_?g.current[N]=_:delete g.current[N]},dragging:D,draggingDelete:D&&d,style:Is(r,N),key:N,value:T,valueIndex:N},O))}),c&&p&&s.createElement(aI,xe({key:"a11y"},O,{value:i[w],valueIndex:null,dragging:u!==-1,draggingDelete:d,render:c,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),Xce=function(t){var n=t.prefixCls,r=t.style,a=t.children,o=t.value,i=t.onClick,l=s.useContext(ic),c=l.min,u=l.max,d=l.direction,f=l.includedStart,m=l.includedEnd,g=l.included,h="".concat(n,"-text"),b=m4(d,o,c,u);return s.createElement("span",{className:le(h,q({},"".concat(h,"-active"),g&&f<=o&&o<=m)),style:R(R({},b),r),onMouseDown:function(S){S.stopPropagation()},onClick:function(){i(o)}},a)},Yce=function(t){var n=t.prefixCls,r=t.marks,a=t.onClick,o="".concat(n,"-mark");return r.length?s.createElement("div",{className:o},r.map(function(i){var l=i.value,c=i.style,u=i.label;return s.createElement(Xce,{key:l,prefixCls:o,style:c,value:l,onClick:a},u)})):null},Qce=function(t){var n=t.prefixCls,r=t.value,a=t.style,o=t.activeStyle,i=s.useContext(ic),l=i.min,c=i.max,u=i.direction,d=i.included,f=i.includedStart,m=i.includedEnd,g="".concat(n,"-dot"),h=d&&f<=r&&r<=m,b=R(R({},m4(u,r,l,c)),typeof a=="function"?a(r):a);return h&&(b=R(R({},b),typeof o=="function"?o(r):o)),s.createElement("span",{className:le(g,q({},"".concat(g,"-active"),h)),style:b})},Zce=function(t){var n=t.prefixCls,r=t.marks,a=t.dots,o=t.style,i=t.activeStyle,l=s.useContext(ic),c=l.min,u=l.max,d=l.step,f=s.useMemo(function(){var m=new Set;if(r.forEach(function(h){m.add(h.value)}),a&&d!==null)for(var g=c;g<=u;)m.add(g),g+=d;return Array.from(m)},[c,u,d,a,r]);return s.createElement("div",{className:"".concat(n,"-step")},f.map(function(m){return s.createElement(Qce,{prefixCls:n,key:m,value:m,style:o,activeStyle:i})}))},oI=function(t){var n=t.prefixCls,r=t.style,a=t.start,o=t.end,i=t.index,l=t.onStartMove,c=t.replaceCls,u=s.useContext(ic),d=u.direction,f=u.min,m=u.max,g=u.disabled,h=u.range,b=u.classNames,p="".concat(n,"-track"),S=Ww(a,f,m),C=Ww(o,f,m),x=function(P){!g&&l&&l(P,-1)},w={};switch(d){case"rtl":w.right="".concat(S*100,"%"),w.width="".concat(C*100-S*100,"%");break;case"btt":w.bottom="".concat(S*100,"%"),w.height="".concat(C*100-S*100,"%");break;case"ttb":w.top="".concat(S*100,"%"),w.height="".concat(C*100-S*100,"%");break;default:w.left="".concat(S*100,"%"),w.width="".concat(C*100-S*100,"%")}var $=c||le(p,q(q({},"".concat(p,"-").concat(i+1),i!==null&&h),"".concat(n,"-track-draggable"),l),b.track);return s.createElement("div",{className:$,style:R(R({},w),r),onMouseDown:x,onTouchStart:x})},Jce=function(t){var n=t.prefixCls,r=t.style,a=t.values,o=t.startPoint,i=t.onStartMove,l=s.useContext(ic),c=l.included,u=l.range,d=l.min,f=l.styles,m=l.classNames,g=s.useMemo(function(){if(!u){if(a.length===0)return[];var b=o??d,p=a[0];return[{start:Math.min(b,p),end:Math.max(b,p)}]}for(var S=[],C=0;Ceue&&d3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof b=="number"){var C,x=h[p],w=x+b,$=[];r.forEach(function(T){$.push(T.value)}),$.push(e,t),$.push(l(x));var E=b>0?1:-1;S==="unit"?$.push(l(x+E*n)):$.push(l(w)),$=$.filter(function(T){return T!==null}).filter(function(T){return b<0?T<=x:T>=x}),S==="unit"&&($=$.filter(function(T){return T!==x}));var P=S==="unit"?x:w;C=$[0];var M=Math.abs(C-P);if($.forEach(function(T){var N=Math.abs(T-P);N1){var O=Te(h);return O[p]=C,g(O,b-E,p,S)}return C}else{if(b==="min")return e;if(b==="max")return t}},d=function(h,b,p){var S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",C=h[p],x=u(h,b,p,S);return{value:x,changed:x!==C}},f=function(h){return o===null&&h===0||typeof o=="number"&&h3&&arguments[3]!==void 0?arguments[3]:"unit",C=h.map(c),x=C[p],w=u(C,b,p,S);if(C[p]=w,a===!1){var $=o||0;p>0&&C[p-1]!==x&&(C[p]=Math.max(C[p],C[p-1]+$)),p0;O-=1)for(var T=!0;f(C[O]-C[O-1])&&T;){var N=d(C,-1,O-1);C[O-1]=N.value,T=N.changed}for(var D=C.length-1;D>0;D-=1)for(var L=!0;f(C[D]-C[D-1])&&L;){var _=d(C,-1,D-1);C[D-1]=_.value,L=_.changed}for(var F=0;F=0?k:!1},[k,_e]),Le=s.useMemo(function(){return Object.keys(ee||{}).map(function(gt){var Xe=ee[gt],it={value:Number(gt)};return Xe&&st(Xe)==="object"&&!s.isValidElement(Xe)&&("label"in Xe||"style"in Xe)?(it.style=Xe.style,it.label=Xe.label):it.label=Xe,it}).filter(function(gt){var Xe=gt.label;return Xe||typeof Xe=="number"}).sort(function(gt,Xe){return gt.value-Xe.value})},[ee]),Me=nue(De,ke,_e,Le,F,Re),Be=fe(Me,2),$e=Be[0],we=Be[1],Ie=Tt(P,{value:E}),Fe=fe(Ie,2),Ge=Fe[0],et=Fe[1],Ke=s.useMemo(function(){var gt=Ge==null?[]:Array.isArray(Ge)?Ge:[Ge],Xe=fe(gt,1),it=Xe[0],ft=it===void 0?De:it,_t=Ge===null?[]:[ft];if(Se){if(_t=Te(gt),O||Ge===void 0){var Yt=O>=0?O+1:2;for(_t=_t.slice(0,Yt);_t.length=0&&pe.current.focus(gt)}pt(null)},[Nt]);var jt=s.useMemo(function(){return Oe&&_e===null?!1:Oe},[Oe,_e]),Kt=Gt(function(gt,Xe){Ve(gt,Xe),N?.(Ye(Ke))}),cn=dt!==-1;s.useEffect(function(){if(!cn){var gt=Ke.lastIndexOf(vt);pe.current.focus(gt)}},[cn]);var tn=s.useMemo(function(){return Te(ze).sort(function(gt,Xe){return gt-Xe})},[ze]),Bt=s.useMemo(function(){return Se?[tn[0],tn[tn.length-1]]:[De,tn[0]]},[tn,Se,De]),It=fe(Bt,2),Wt=It[0],ot=It[1];s.useImperativeHandle(t,function(){return{focus:function(){pe.current.focus(0)},blur:function(){var Xe,it=document,ft=it.activeElement;(Xe=be.current)!==null&&Xe!==void 0&&Xe.contains(ft)&&ft?.blur()}}}),s.useEffect(function(){g&&pe.current.focus(0)},[]);var Et=s.useMemo(function(){return{min:De,max:ke,direction:ve,disabled:d,keyboard:m,step:_e,included:B,includedStart:Wt,includedEnd:ot,range:Se,tabIndex:ue,ariaLabelForHandle:de,ariaLabelledByForHandle:ae,ariaRequired:ie,ariaValueTextFormatterForHandle:ge,styles:l||{},classNames:i||{}}},[De,ke,ve,d,m,_e,B,Wt,ot,Se,ue,de,ae,ie,ge,l,i]);return s.createElement(ic.Provider,{value:Et},s.createElement("div",{ref:be,className:le(r,a,q(q(q(q({},"".concat(r,"-disabled"),d),"".concat(r,"-vertical"),V),"".concat(r,"-horizontal"),!V),"".concat(r,"-with-marks"),Le.length)),style:o,onMouseDown:He,id:c},s.createElement("div",{className:le("".concat(r,"-rail"),i?.rail),style:R(R({},X),l?.rail)}),oe!==!1&&s.createElement(Jce,{prefixCls:r,style:W,values:Ke,startPoint:K,onStartMove:jt?Kt:void 0}),s.createElement(Zce,{prefixCls:r,marks:Le,dots:re,style:Y,activeStyle:Z}),s.createElement(Gce,{ref:pe,prefixCls:r,style:G,values:ze,draggingIndex:dt,draggingDelete:bt,onStartMove:Kt,onOffsetChange:mt,onFocus:h,onBlur:b,handleRender:ne,activeHandleRender:se,onChangeComplete:rt,onDelete:Ee?ct:void 0}),s.createElement(Yce,{prefixCls:r,marks:Le,onClick:Pe})))});const W9=s.createContext({}),lI=s.forwardRef((e,t)=>{const{open:n,draggingDelete:r,value:a}=e,o=s.useRef(null),i=n&&!r,l=s.useRef(null);function c(){ln.cancel(l.current),l.current=null}function u(){l.current=ln(()=>{var d;(d=o.current)===null||d===void 0||d.forceAlign(),l.current=null})}return s.useEffect(()=>(i?u():c(),c),[i,e.title,a]),s.createElement(tr,Object.assign({ref:wr(o,t)},e,{open:i}))}),oue=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:a,marginFull:o,marginPart:i,colorFillContentHover:l,handleColorDisabled:c,calc:u,handleSize:d,handleSizeHover:f,handleActiveColor:m,handleActiveOutlineColor:g,handleLineWidth:h,handleLineWidthHover:b,motionDurationMid:p}=e;return{[t]:Object.assign(Object.assign({},fn(e)),{position:"relative",height:r,margin:`${ce(i)} ${ce(o)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${ce(o)} ${ce(i)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${p}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${p}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:l},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${ce(h)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:d,height:d,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:u(h).mul(-1).equal(),insetBlockStart:u(h).mul(-1).equal(),width:u(d).add(u(h).mul(2)).equal(),height:u(d).add(u(h).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:d,height:d,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${ce(h)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:` - inset-inline-start ${p}, - inset-block-start ${p}, - width ${p}, - height ${p}, - box-shadow ${p}, - outline ${p} - `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:u(f).sub(d).div(2).add(b).mul(-1).equal(),insetBlockStart:u(f).sub(d).div(2).add(b).mul(-1).equal(),width:u(f).add(u(b).mul(2)).equal(),height:u(f).add(u(b).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${ce(b)} ${m}`,outline:`6px solid ${g}`,width:f,height:f,insetInlineStart:e.calc(d).sub(f).div(2).equal(),insetBlockStart:e.calc(d).sub(f).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:"none"}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:a,height:a,backgroundColor:e.colorBgElevated,border:`${ce(h)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[` - ${t}-dot - `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:d,height:d,boxShadow:`0 0 0 ${ce(h)} ${c}`,insetInlineStart:0,insetBlockStart:0},[` - ${t}-mark-text, - ${t}-dot - `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},K9=(e,t)=>{const{componentCls:n,railSize:r,handleSize:a,dotSize:o,marginFull:i,calc:l}=e,c=t?"paddingBlock":"paddingInline",u=t?"width":"height",d=t?"height":"width",f=t?"insetBlockStart":"insetInlineStart",m=t?"top":"insetInlineStart",g=l(r).mul(3).sub(a).div(2).equal(),h=l(a).sub(r).div(2).equal(),b=t?{borderWidth:`${ce(h)} 0`,transform:`translateY(${ce(l(h).mul(-1).equal())})`}:{borderWidth:`0 ${ce(h)}`,transform:`translateX(${ce(e.calc(h).mul(-1).equal())})`};return{[c]:r,[d]:l(r).mul(3).equal(),[`${n}-rail`]:{[u]:"100%",[d]:r},[`${n}-track,${n}-tracks`]:{[d]:r},[`${n}-track-draggable`]:Object.assign({},b),[`${n}-handle`]:{[f]:g},[`${n}-mark`]:{insetInlineStart:0,top:0,[m]:l(r).mul(3).add(t?0:i).equal(),[u]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[m]:r,[u]:"100%",[d]:r},[`${n}-dot`]:{position:"absolute",[f]:l(r).sub(o).div(2).equal()}}},iue=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},K9(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},lue=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},K9(e,!1)),{height:"100%"})}},sue=e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,a=e.lineWidth+1,o=e.lineWidth+1*1.5,i=e.colorPrimary,l=new dn(i).setA(.2).toRgbString();return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:a,handleLineWidthHover:o,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:i,handleActiveOutlineColor:l,handleColorDisabled:new dn(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},cue=rn("Slider",e=>{const t=Xt(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[oue(t),iue(t),lue(t)]},sue);function f1(){const[e,t]=s.useState(!1),n=s.useRef(null),r=()=>{ln.cancel(n.current)},a=o=>{r(),o?t(o):n.current=ln(()=>{t(o)})};return s.useEffect(()=>r,[]),[e,a]}var uue=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);atypeof n=="number"?n.toString():""}const q9=Q.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:a,rootClassName:o,style:i,disabled:l,tooltipPrefixCls:c,tipFormatter:u,tooltipVisible:d,getTooltipPopupContainer:f,tooltipPlacement:m,tooltip:g={},onChangeComplete:h,classNames:b,styles:p}=e,S=uue(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete","classNames","styles"]),{vertical:C}=e,{getPrefixCls:x,direction:w,className:$,style:E,classNames:P,styles:M,getPopupContainer:O}=Vn("slider"),T=Q.useContext(Sr),N=l??T,{handleRender:D,direction:L}=Q.useContext(W9),F=(L||w)==="rtl",[j,k]=f1(),[z,V]=f1(),H=Object.assign({},g),{open:B,placement:K,getPopupContainer:W,prefixCls:G,formatter:X}=H,Y=B??d,Z=(j||z)&&Y!==!1,ee=due(X,u),[re,ne]=f1(),se=Se=>{h?.(Se),ne(!1)},oe=(Se,Ee)=>Se||(Ee?F?"left":"right":"top"),me=x("slider",n),[ue,de,ae]=cue(me),ie=le(a,$,P.root,b?.root,o,{[`${me}-rtl`]:F,[`${me}-lock`]:re},de,ae);F&&!S.vertical&&(S.reverse=!S.reverse),Q.useEffect(()=>{const Se=()=>{ln(()=>{V(!1)},1)};return document.addEventListener("mouseup",Se),()=>{document.removeEventListener("mouseup",Se)}},[]);const ge=r&&!Y,pe=D||((Se,Ee)=>{const{index:Oe}=Ee,We=Se.props;function je(Re,Le,Me){var Be,$e,we,Ie;Me&&(($e=(Be=S)[Re])===null||$e===void 0||$e.call(Be,Le)),(Ie=(we=We)[Re])===null||Ie===void 0||Ie.call(we,Le)}const De=Object.assign(Object.assign({},We),{onMouseEnter:Re=>{k(!0),je("onMouseEnter",Re)},onMouseLeave:Re=>{k(!1),je("onMouseLeave",Re)},onMouseDown:Re=>{V(!0),ne(!0),je("onMouseDown",Re)},onFocus:Re=>{var Le;V(!0),(Le=S.onFocus)===null||Le===void 0||Le.call(S,Re),je("onFocus",Re,!0)},onBlur:Re=>{var Le;V(!1),(Le=S.onBlur)===null||Le===void 0||Le.call(S,Re),je("onBlur",Re,!0)}}),ke=Q.cloneElement(Se,De),_e=(!!Y||Z)&&ee!==null;return ge?ke:Q.createElement(lI,Object.assign({},H,{prefixCls:x("tooltip",G??c),title:ee?ee(Ee.value):"",value:Ee.value,open:_e,placement:oe(K??m,C),key:Oe,classNames:{root:`${me}-tooltip`},getPopupContainer:W||f||O}),ke)}),be=ge?(Se,Ee)=>{const Oe=Q.cloneElement(Se,{style:Object.assign(Object.assign({},Se.props.style),{visibility:"hidden"})});return Q.createElement(lI,Object.assign({},H,{prefixCls:x("tooltip",G??c),title:ee?ee(Ee.value):"",open:ee!==null&&Z,placement:oe(K??m,C),key:"tooltip",classNames:{root:`${me}-tooltip`},getPopupContainer:W||f||O,draggingDelete:Ee.draggingDelete}),Oe)}:void 0,ve=Object.assign(Object.assign(Object.assign(Object.assign({},M.root),E),p?.root),i),Ce=Object.assign(Object.assign({},M.tracks),p?.tracks),he=le(P.tracks,b?.tracks);return ue(Q.createElement(aue,Object.assign({},S,{classNames:Object.assign({handle:le(P.handle,b?.handle),rail:le(P.rail,b?.rail),track:le(P.track,b?.track)},he?{tracks:he}:{}),styles:Object.assign({handle:Object.assign(Object.assign({},M.handle),p?.handle),rail:Object.assign(Object.assign({},M.rail),p?.rail),track:Object.assign(Object.assign({},M.track),p?.track)},Object.keys(Ce).length?{tracks:Ce}:{}),step:S.step,range:r,className:ie,style:ve,disabled:N,ref:t,prefixCls:me,handleRender:pe,activeHandleRender:be,onChangeComplete:se})))});var fue=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,colors:n,type:r,color:a,range:o=!1,className:i,activeIndex:l,onActive:c,onDragStart:u,onDragChange:d,onKeyDelete:f}=e,m=fue(e,["prefixCls","colors","type","color","range","className","activeIndex","onActive","onDragStart","onDragChange","onKeyDelete"]),g=Object.assign(Object.assign({},m),{track:!1}),h=s.useMemo(()=>`linear-gradient(90deg, ${n.map(E=>`${E.color} ${E.percent}%`).join(", ")})`,[n]),b=s.useMemo(()=>!a||!r?null:r==="alpha"?a.toRgbString():`hsl(${a.toHsb().h}, 100%, 50%)`,[a,r]),p=Gt(u),S=Gt(d),C=s.useMemo(()=>({onDragStart:p,onDragChange:S}),[]),x=Gt(($,E)=>{const{onFocus:P,style:M,className:O,onKeyDown:T}=$.props,N=Object.assign({},M);return r==="gradient"&&(N.background=tF(n,E.value)),s.cloneElement($,{onFocus:D=>{c?.(E.index),P?.(D)},style:N,className:le(O,{[`${t}-slider-handle-active`]:l===E.index}),onKeyDown:D=>{(D.key==="Delete"||D.key==="Backspace")&&f&&f(E.index),T?.(D)}})}),w=s.useMemo(()=>({direction:"ltr",handleRender:x}),[]);return s.createElement(W9.Provider,{value:w},s.createElement(V9.Provider,{value:C},s.createElement(q9,Object.assign({},g,{className:le(i,`${t}-slider`),tooltip:{open:!1},range:{editable:o,minCount:2},styles:{rail:{background:h},handle:b?{background:b}:{}},classNames:{rail:`${t}-slider-rail`,handle:`${t}-slider-handle`}}))))},vue=e=>{const{value:t,onChange:n,onChangeComplete:r}=e,a=i=>n(i[0]),o=i=>r(i[0]);return s.createElement(U9,Object.assign({},e,{value:[t],onChange:a,onChangeComplete:o}))};function sI(e){return Te(e).sort((t,n)=>t.percent-n.percent)}const mue=e=>{const{prefixCls:t,mode:n,onChange:r,onChangeComplete:a,onActive:o,activeIndex:i,onGradientDragging:l,colors:c}=e,u=n==="gradient",d=s.useMemo(()=>c.map(S=>({percent:S.percent,color:S.color.toRgbString()})),[c]),f=s.useMemo(()=>d.map(S=>S.percent),[d]),m=s.useRef(d),g=({rawValues:S,draggingIndex:C,draggingValue:x})=>{if(S.length>d.length){const w=tF(d,x),$=Te(d);$.splice(C,0,{percent:x,color:w}),m.current=$}else m.current=d;l(!0),r(new co(sI(m.current)),!0)},h=({deleteIndex:S,draggingIndex:C,draggingValue:x})=>{let w=Te(m.current);S!==-1?w.splice(S,1):(w[C]=Object.assign(Object.assign({},w[C]),{percent:x}),w=sI(w)),r(new co(w),!0)},b=S=>{const C=Te(d);C.splice(S,1);const x=new co(C);r(x),a(x)},p=S=>{a(new co(d)),i>=S.length&&o(S.length-1),l(!1)};return u?s.createElement(U9,{min:0,max:100,prefixCls:t,className:`${t}-gradient-slider`,colors:d,color:null,value:f,range:!0,onChangeComplete:p,disabled:!1,type:"gradient",activeIndex:i,onActive:o,onDragStart:g,onDragChange:h,onKeyDelete:b}):null},gue=s.memo(mue);var pue=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const e=s.useContext(M9),{mode:t,onModeChange:n,modeOptions:r,prefixCls:a,allowClear:o,value:i,disabledAlpha:l,onChange:c,onClear:u,onChangeComplete:d,activeIndex:f,gradientDragging:m}=e,g=pue(e,["mode","onModeChange","modeOptions","prefixCls","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete","activeIndex","gradientDragging"]),h=Q.useMemo(()=>i.cleared?[{percent:0,color:new co("")},{percent:100,color:new co("")}]:i.getColors(),[i]),b=!i.isGradient(),[p,S]=Q.useState(i);un(()=>{var _;b||S((_=h[f])===null||_===void 0?void 0:_.color)},[b,h,m,f]);const C=Q.useMemo(()=>{var _;return b?i:m?p:(_=h[f])===null||_===void 0?void 0:_.color},[h,i,f,b,p,m]),[x,w]=Q.useState(C),[$,E]=yh(),P=x?.equals(C)?C:x;un(()=>{w(C)},[$,C?.toHexString()]);const M=(_,F)=>{let j=va(_);if(i.cleared){const z=j.toRgb();if(!z.r&&!z.g&&!z.b&&F){const{type:V,value:H=0}=F;j=new co({h:V==="hue"?H:0,s:1,b:1,a:V==="alpha"?H/100:1})}else j=Yg(j)}if(t==="single")return j;const k=Te(h);return k[f]=Object.assign(Object.assign({},k[f]),{color:j}),new co(k)},O=(_,F,j)=>{const k=M(_,j);w(k.isGradient()?k.getColors()[f].color:k),c(k,F)},T=(_,F)=>{d(M(_,F)),E()},N=_=>{c(M(_))};let D=null;const L=r.length>1;return(o||L)&&(D=Q.createElement("div",{className:`${a}-operation`},L&&Q.createElement(I9,{size:"small",options:r,value:t,onChange:n}),Q.createElement(N9,Object.assign({prefixCls:a,value:i,onChange:_=>{c(_),u?.()}},g)))),Q.createElement(Q.Fragment,null,D,Q.createElement(gue,Object.assign({},e,{colors:h})),Q.createElement(RY,{prefixCls:a,value:P?.toHsb(),disabledAlpha:l,onChange:(_,F)=>{O(_,!0,F)},onChangeComplete:(_,F)=>{T(_,F)},components:hue}),Q.createElement(Kce,Object.assign({value:C,onChange:N,prefixCls:a,disabledAlpha:l},g)))},uI=()=>{const{prefixCls:e,value:t,presets:n,onChange:r}=s.useContext(T9);return Array.isArray(n)?Q.createElement(xQ,{value:t,presets:n,prefixCls:e,onChange:r}):null},bue=e=>{const{prefixCls:t,presets:n,panelRender:r,value:a,onChange:o,onClear:i,allowClear:l,disabledAlpha:c,mode:u,onModeChange:d,modeOptions:f,onChangeComplete:m,activeIndex:g,onActive:h,format:b,onFormatChange:p,gradientDragging:S,onGradientDragging:C,disabledFormat:x}=e,w=`${t}-inner`,$=Q.useMemo(()=>({prefixCls:t,value:a,onChange:o,onClear:i,allowClear:l,disabledAlpha:c,mode:u,onModeChange:d,modeOptions:f,onChangeComplete:m,activeIndex:g,onActive:h,format:b,onFormatChange:p,gradientDragging:S,onGradientDragging:C,disabledFormat:x}),[t,a,o,i,l,c,u,d,f,m,g,h,b,p,S,C,x]),E=Q.useMemo(()=>({prefixCls:t,value:a,presets:n,onChange:o}),[t,a,n,o]),P=Q.createElement("div",{className:`${w}-content`},Q.createElement(cI,null),Array.isArray(n)&&Q.createElement(u4,null),Q.createElement(uI,null));return Q.createElement(M9.Provider,{value:$},Q.createElement(T9.Provider,{value:E},Q.createElement("div",{className:w},typeof r=="function"?r(P,{components:{Picker:cI,Presets:uI}}):P)))};var yue=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{color:n,prefixCls:r,open:a,disabled:o,format:i,className:l,showText:c,activeIndex:u}=e,d=yue(e,["color","prefixCls","open","disabled","format","className","showText","activeIndex"]),f=`${r}-trigger`,m=`${f}-text`,g=`${m}-cell`,[h]=zr("ColorPicker"),b=Q.useMemo(()=>{if(!c)return"";if(typeof c=="function")return c(n);if(n.cleared)return h.transparent;if(n.isGradient())return n.getColors().map((x,w)=>{const $=u!==-1&&u!==w;return Q.createElement("span",{key:w,className:le(g,$&&`${g}-inactive`)},x.color.toRgbString()," ",x.percent,"%")});const S=n.toHexString().toUpperCase(),C=yE(n);switch(i){case"rgb":return n.toRgbString();case"hsb":return n.toHsbString();default:return C<100?`${S.slice(0,7)},${C}%`:S}},[n,i,c,u,h.transparent,g]),p=s.useMemo(()=>n.cleared?Q.createElement(N9,{prefixCls:r}):Q.createElement(pE,{prefixCls:r,color:n.toCssString()}),[n,r]);return Q.createElement("div",Object.assign({ref:t,className:le(f,l,{[`${f}-active`]:a,[`${f}-disabled`]:o})},Qn(d)),p,c&&Q.createElement("div",{className:m},b))});function Sue(e,t,n){const[r]=zr("ColorPicker"),[a,o]=Tt(e,{value:t}),[i,l]=s.useState("single"),[c,u]=s.useMemo(()=>{const b=(Array.isArray(n)?n:[n]).filter(x=>x);b.length||b.push("single");const p=new Set(b),S=[],C=(x,w)=>{p.has(x)&&S.push({label:w,value:x})};return C("single",r.singleColor),C("gradient",r.gradientColor),[S,p]},[n,r.singleColor,r.gradientColor]),[d,f]=s.useState(null),m=Gt(b=>{f(b),o(b)}),g=s.useMemo(()=>{const b=va(a||"");return b.equals(d)?d:b},[a,d]),h=s.useMemo(()=>{var b;return u.has(i)?i:(b=c[0])===null||b===void 0?void 0:b.value},[u,i,c]);return s.useEffect(()=>{l(g.isGradient()?"gradient":"single")},[g]),[g,m,h,l,c]}const G9=(e,t)=>({backgroundImage:`conic-gradient(${t} 25%, transparent 25% 50%, ${t} 50% 75%, transparent 75% 100%)`,backgroundSize:`${e} ${e}`}),dI=(e,t)=>{const{componentCls:n,borderRadiusSM:r,colorPickerInsetShadow:a,lineWidth:o,colorFillSecondary:i}=e;return{[`${n}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:r,width:t,height:t,boxShadow:a,flex:"none"},G9("50%",e.colorFillSecondary)),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",boxShadow:`inset 0 0 0 ${ce(o)} ${i}`,borderRadius:"inherit"}})}},xue=e=>{const{componentCls:t,antCls:n,fontSizeSM:r,lineHeightSM:a,colorPickerAlphaInputWidth:o,marginXXS:i,paddingXXS:l,controlHeightSM:c,marginXS:u,fontSizeIcon:d,paddingXS:f,colorTextPlaceholder:m,colorPickerInputNumberHandleWidth:g,lineWidth:h}=e;return{[`${t}-input-container`]:{display:"flex",[`${t}-steppers${n}-input-number`]:{fontSize:r,lineHeight:a,[`${n}-input-number-input`]:{paddingInlineStart:l,paddingInlineEnd:0},[`${n}-input-number-handler-wrap`]:{width:g}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${ce(o)}`,marginInlineStart:i},[`${t}-format-select${n}-select`]:{marginInlineEnd:u,width:"auto","&-single":{[`${n}-select-selector`]:{padding:0,border:0},[`${n}-select-arrow`]:{insetInlineEnd:0},[`${n}-select-selection-item`]:{paddingInlineEnd:e.calc(d).add(i).equal(),fontSize:r,lineHeight:ce(c)},[`${n}-select-item-option-content`]:{fontSize:r,lineHeight:a},[`${n}-select-dropdown`]:{[`${n}-select-item`]:{minHeight:"auto"}}}},[`${t}-input`]:{gap:i,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{display:"flex",gap:i,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${n}-input-affix-wrapper`]:{flex:1,padding:`0 ${ce(f)}`,[`${n}-input`]:{fontSize:r,textTransform:"uppercase",lineHeight:ce(e.calc(c).sub(e.calc(h).mul(2)).equal())},[`${n}-input-prefix`]:{color:m}}}}}},wue=e=>{const{componentCls:t,controlHeightLG:n,borderRadiusSM:r,colorPickerInsetShadow:a,marginSM:o,colorBgElevated:i,colorFillSecondary:l,lineWidthBold:c,colorPickerHandlerSize:u}=e;return{userSelect:"none",[`${t}-select`]:{[`${t}-palette`]:{minHeight:e.calc(n).mul(4).equal(),overflow:"hidden",borderRadius:r},[`${t}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:a,inset:0},marginBottom:o},[`${t}-handler`]:{width:u,height:u,border:`${ce(c)} solid ${i}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${a}, 0 0 0 1px ${l}`}}},$ue=e=>{const{componentCls:t,antCls:n,colorTextQuaternary:r,paddingXXS:a,colorPickerPresetColorSize:o,fontSizeSM:i,colorText:l,lineHeightSM:c,lineWidth:u,borderRadius:d,colorFill:f,colorWhite:m,marginXXS:g,paddingXS:h,fontHeightSM:b}=e;return{[`${t}-presets`]:{[`${n}-collapse-item > ${n}-collapse-header`]:{padding:0,[`${n}-collapse-expand-icon`]:{height:b,color:r,paddingInlineEnd:a}},[`${n}-collapse`]:{display:"flex",flexDirection:"column",gap:g},[`${n}-collapse-item > ${n}-collapse-content > ${n}-collapse-content-box`]:{padding:`${ce(h)} 0`},"&-label":{fontSize:i,color:l,lineHeight:c},"&-items":{display:"flex",flexWrap:"wrap",gap:e.calc(g).mul(1.5).equal(),[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:o,height:o,"&::before":{content:'""',pointerEvents:"none",width:e.calc(o).add(e.calc(u).mul(4)).equal(),height:e.calc(o).add(e.calc(u).mul(4)).equal(),position:"absolute",top:e.calc(u).mul(-2).equal(),insetInlineStart:e.calc(u).mul(-2).equal(),borderRadius:d,border:`${ce(u)} solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:f},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.calc(o).div(13).mul(5).equal(),height:e.calc(o).div(13).mul(8).equal(),border:`${ce(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`},[`&${t}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:m,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},[`&${t}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:i,color:r}}}},Eue=e=>{const{componentCls:t,colorPickerInsetShadow:n,colorBgElevated:r,colorFillSecondary:a,lineWidthBold:o,colorPickerHandlerSizeSM:i,colorPickerSliderHeight:l,marginSM:c,marginXS:u}=e,d=e.calc(i).sub(e.calc(o).mul(2).equal()).equal(),f=e.calc(i).add(e.calc(o).mul(2).equal()).equal(),m={"&:after":{transform:"scale(1)",boxShadow:`${n}, 0 0 0 1px ${e.colorPrimaryActive}`}};return{[`${t}-slider`]:[G9(ce(l),e.colorFillSecondary),{margin:0,padding:0,height:l,borderRadius:e.calc(l).div(2).equal(),"&-rail":{height:l,borderRadius:e.calc(l).div(2).equal(),boxShadow:n},[`& ${t}-slider-handle`]:{width:d,height:d,top:0,borderRadius:"100%","&:before":{display:"block",position:"absolute",background:"transparent",left:{_skip_check_:!0,value:"50%"},top:"50%",transform:"translate(-50%, -50%)",width:f,height:f,borderRadius:"100%"},"&:after":{width:i,height:i,border:`${ce(o)} solid ${r}`,boxShadow:`${n}, 0 0 0 1px ${a}`,outline:"none",insetInlineStart:e.calc(o).mul(-1).equal(),top:e.calc(o).mul(-1).equal(),background:"transparent",transition:"none"},"&:focus":m}}],[`${t}-slider-container`]:{display:"flex",gap:c,marginBottom:c,[`${t}-slider-group`]:{flex:1,flexDirection:"column",justifyContent:"space-between",display:"flex","&-disabled-alpha":{justifyContent:"center"}}},[`${t}-gradient-slider`]:{marginBottom:u,[`& ${t}-slider-handle`]:{"&:after":{transform:"scale(0.8)"},"&-active, &:focus":m}}}},Kw=(e,t,n)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${ce(e.controlOutlineWidth)} ${n}`,outline:0}),Pue=e=>{const{componentCls:t}=e;return{"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},fI=(e,t,n)=>{const{componentCls:r,borderRadiusSM:a,lineWidth:o,colorSplit:i,colorBorder:l,red6:c}=e;return{[`${r}-clear`]:Object.assign(Object.assign({width:t,height:t,borderRadius:a,border:`${ce(o)} solid ${i}`,position:"relative",overflow:"hidden",cursor:"inherit",transition:`all ${e.motionDurationFast}`},n),{"&::after":{content:'""',position:"absolute",insetInlineEnd:e.calc(o).mul(-1).equal(),top:e.calc(o).mul(-1).equal(),display:"block",width:40,height:2,transformOrigin:"calc(100% - 1px) 1px",transform:"rotate(-45deg)",backgroundColor:c},"&:hover":{borderColor:l}})}},Oue=e=>{const{componentCls:t,colorError:n,colorWarning:r,colorErrorHover:a,colorWarningHover:o,colorErrorOutline:i,colorWarningOutline:l}=e;return{[`&${t}-status-error`]:{borderColor:n,"&:hover":{borderColor:a},[`&${t}-trigger-active`]:Object.assign({},Kw(e,n,i))},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:o},[`&${t}-trigger-active`]:Object.assign({},Kw(e,r,l))}}},Rue=e=>{const{componentCls:t,controlHeightLG:n,controlHeightSM:r,controlHeight:a,controlHeightXS:o,borderRadius:i,borderRadiusSM:l,borderRadiusXS:c,borderRadiusLG:u,fontSizeLG:d}=e;return{[`&${t}-lg`]:{minWidth:n,minHeight:n,borderRadius:u,[`${t}-color-block, ${t}-clear`]:{width:a,height:a,borderRadius:i},[`${t}-trigger-text`]:{fontSize:d}},[`&${t}-sm`]:{minWidth:r,minHeight:r,borderRadius:l,[`${t}-color-block, ${t}-clear`]:{width:o,height:o,borderRadius:c},[`${t}-trigger-text`]:{lineHeight:ce(o)}}}},Iue=e=>{const{antCls:t,componentCls:n,colorPickerWidth:r,colorPrimary:a,motionDurationMid:o,colorBgElevated:i,colorTextDisabled:l,colorText:c,colorBgContainerDisabled:u,borderRadius:d,marginXS:f,marginSM:m,controlHeight:g,controlHeightSM:h,colorBgTextActive:b,colorPickerPresetColorSize:p,colorPickerPreviewSize:S,lineWidth:C,colorBorder:x,paddingXXS:w,fontSize:$,colorPrimaryHover:E,controlOutline:P}=e;return[{[n]:Object.assign({[`${n}-inner`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"&-content":{display:"flex",flexDirection:"column",width:r,[`& > ${t}-divider`]:{margin:`${ce(m)} 0 ${ce(f)}`}},[`${n}-panel`]:Object.assign({},wue(e))},Eue(e)),dI(e,S)),xue(e)),$ue(e)),fI(e,p,{marginInlineStart:"auto"})),{[`${n}-operation`]:{display:"flex",justifyContent:"space-between",marginBottom:f}}),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:g,minHeight:g,borderRadius:d,border:`${ce(C)} solid ${x}`,cursor:"pointer",display:"inline-flex",alignItems:"flex-start",justifyContent:"center",transition:`all ${o}`,background:i,padding:e.calc(w).sub(C).equal(),[`${n}-trigger-text`]:{marginInlineStart:f,marginInlineEnd:e.calc(f).sub(e.calc(w).sub(C)).equal(),fontSize:$,color:c,alignSelf:"center","&-cell":{"&:not(:last-child):after":{content:'", "'},"&-inactive":{color:l}}},"&:hover":{borderColor:E},[`&${n}-trigger-active`]:Object.assign({},Kw(e,a,P)),"&-disabled":{color:l,background:u,cursor:"not-allowed","&:hover":{borderColor:b},[`${n}-trigger-text`]:{color:l}}},fI(e,h)),dI(e,h)),Oue(e)),Rue(e))},Pue(e))},os(e,{focusElCls:`${n}-trigger-active`})]},Mue=rn("ColorPicker",e=>{const{colorTextQuaternary:t,marginSM:n}=e,r=8,a=Xt(e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:24,colorPickerInsetShadow:`inset 0 0 1px 0 ${t}`,colorPickerSliderHeight:r,colorPickerPreviewSize:e.calc(r).mul(2).add(n).equal()});return Iue(a)});var Tue=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{mode:t,value:n,defaultValue:r,format:a,defaultFormat:o,allowClear:i=!1,presets:l,children:c,trigger:u="click",open:d,disabled:f,placement:m="bottomLeft",arrow:g=!0,panelRender:h,showText:b,style:p,className:S,size:C,rootClassName:x,prefixCls:w,styles:$,disabledAlpha:E=!1,onFormatChange:P,onChange:M,onClear:O,onOpenChange:T,onChangeComplete:N,getPopupContainer:D,autoAdjustOverflow:L=!0,destroyTooltipOnHide:_,destroyOnHidden:F,disabledFormat:j}=e,k=Tue(e,["mode","value","defaultValue","format","defaultFormat","allowClear","presets","children","trigger","open","disabled","placement","arrow","panelRender","showText","style","className","size","rootClassName","prefixCls","styles","disabledAlpha","onFormatChange","onChange","onClear","onOpenChange","onChangeComplete","getPopupContainer","autoAdjustOverflow","destroyTooltipOnHide","destroyOnHidden","disabledFormat"]),{getPrefixCls:z,direction:V,colorPicker:H}=s.useContext(Ot),B=s.useContext(Sr),K=f??B,[W,G]=Tt(!1,{value:d,postState:we=>!K&&we,onChange:T}),[X,Y]=Tt(a,{value:a,defaultValue:o,onChange:P}),Z=z("color-picker",w),[ee,re,ne,se,oe]=Sue(r,n,t),me=s.useMemo(()=>yE(ee)<100,[ee]),[ue,de]=Q.useState(null),ae=we=>{if(N){let Ie=va(we);E&&me&&(Ie=Yg(we)),N(Ie)}},ie=(we,Ie)=>{let Fe=va(we);E&&me&&(Fe=Yg(Fe)),re(Fe),de(null),M&&M(Fe,Fe.toCssString()),Ie||ae(Fe)},[ge,pe]=Q.useState(0),[be,ve]=Q.useState(!1),Ce=we=>{if(se(we),we==="single"&&ee.isGradient())pe(0),ie(new co(ee.getColors()[0].color)),de(ee);else if(we==="gradient"&&!ee.isGradient()){const Ie=me?Yg(ee):ee;ie(new co(ue||[{percent:0,color:Ie},{percent:100,color:Ie}]))}},{status:he}=Q.useContext(Or),{compactSize:Se,compactItemClassnames:Ee}=mo(Z,V),Oe=ar(we=>{var Ie;return(Ie=C??Se)!==null&&Ie!==void 0?Ie:we}),We=zn(Z),[je,De,ke]=Mue(Z,We),_e={[`${Z}-rtl`]:V},Re=le(x,ke,We,_e),Le=le(Fo(Z,he),{[`${Z}-sm`]:Oe==="small",[`${Z}-lg`]:Oe==="large"},Ee,H?.className,Re,S,De),Me=le(Z,Re),Be={open:W,trigger:u,placement:m,arrow:g,rootClassName:x,getPopupContainer:D,autoAdjustOverflow:L,destroyOnHidden:F??!!_},$e=Object.assign(Object.assign({},H?.style),p);return je(Q.createElement(Fi,Object.assign({style:$?.popup,styles:{body:$?.popupOverlayInner},onOpenChange:we=>{(!we||!K)&&G(we)},content:Q.createElement(Do,{form:!0},Q.createElement(bue,{mode:ne,onModeChange:Ce,modeOptions:oe,prefixCls:Z,value:ee,allowClear:i,disabled:K,disabledAlpha:E,presets:l,panelRender:h,format:X,onFormatChange:Y,onChange:ie,onChangeComplete:ae,onClear:O,activeIndex:ge,onActive:pe,gradientDragging:be,onGradientDragging:ve,disabledFormat:j})),classNames:{root:Me}},Be),c||Q.createElement(Cue,Object.assign({activeIndex:W?ge:-1,open:W,className:Le,style:$e,prefixCls:Z,disabled:K,showText:b,format:X},k,{color:ee}))))},Nue=is(g4,void 0,e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1}),"color-picker",e=>e);g4._InternalPanelDoNotUseOrYouWillBeFired=Nue;var _ue={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},jue=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:_ue}))},Due=s.forwardRef(jue);const X9=(e,t,n,r,a)=>{const{classNames:o,styles:i}=Vn(e),[l,c]=bX([o,t],[i,n],{popup:{_default:"root"}});return s.useMemo(()=>{var u,d;const f=Object.assign(Object.assign({},l),{popup:Object.assign(Object.assign({},l.popup),{root:le((u=l.popup)===null||u===void 0?void 0:u.root,r)})}),m=Object.assign(Object.assign({},c),{popup:Object.assign(Object.assign({},c.popup),{root:Object.assign(Object.assign({},(d=c.popup)===null||d===void 0?void 0:d.root),a)})});return[f,m]},[l,c,r,a])};function Fue(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function kue(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function Y9(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:a}=zh(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[s.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),a]}const[Lue,zue]=["week","WeekPicker"],[Aue,Bue]=["month","MonthPicker"],[Hue,Vue]=["year","YearPicker"],[Wue,Kue]=["quarter","QuarterPicker"],[p4,vI]=["time","TimePicker"];var que={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},Uue=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:que}))},Gue=s.forwardRef(Uue),Xue={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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},Yue=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:Xue}))},Que=s.forwardRef(Yue);const Q9=({picker:e,hasFeedback:t,feedbackIcon:n,suffixIcon:r})=>r===null||r===!1?null:r===!0||r===void 0?Q.createElement(Q.Fragment,null,e===p4?Q.createElement(Que,null):Q.createElement(Gue,null),t&&n):r,Zue=e=>s.createElement(cr,Object.assign({size:"small",type:"primary"},e));function Z9(e){return s.useMemo(()=>Object.assign({button:Zue},e),[e])}var Jue=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);as.forwardRef((n,r)=>{var a;const{prefixCls:o,getPopupContainer:i,components:l,className:c,style:u,placement:d,size:f,disabled:m,bordered:g=!0,placeholder:h,popupStyle:b,popupClassName:p,dropdownClassName:S,status:C,rootClassName:x,variant:w,picker:$,styles:E,classNames:P,suffixIcon:M}=n,O=Jue(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupStyle","popupClassName","dropdownClassName","status","rootClassName","variant","picker","styles","classNames","suffixIcon"]),T=$===p4?"timePicker":"datePicker",N=s.useRef(null),{getPrefixCls:D,direction:L,getPopupContainer:_,rangePicker:F}=s.useContext(Ot),j=D("picker",o),{compactSize:k,compactItemClassnames:z}=mo(j,L),V=D(),[H,B]=Di("rangePicker",w,g),K=zn(j),[W,G,X]=QL(j,K),[Y,Z]=X9(T,P,E,p||S,b),[ee]=Y9(n,j),re=Z9(l),ne=ar(ve=>{var Ce;return(Ce=f??k)!==null&&Ce!==void 0?Ce:ve}),se=s.useContext(Sr),oe=m??se,me=s.useContext(Or),{hasFeedback:ue,status:de,feedbackIcon:ae}=me,ie=s.createElement(Q9,{picker:$,hasFeedback:ue,feedbackIcon:ae,suffixIcon:M});s.useImperativeHandle(r,()=>N.current);const[ge]=zr("Calendar",Sp),pe=Object.assign(Object.assign({},ge),n.locale),[be]=Ua("DatePicker",(a=Z.popup.root)===null||a===void 0?void 0:a.zIndex);return W(s.createElement(Do,{space:!0},s.createElement(fie,Object.assign({separator:s.createElement("span",{"aria-label":"to",className:`${j}-separator`},s.createElement(Due,null)),disabled:oe,ref:N,placement:d,placeholder:kue(pe,$,h),suffixIcon:ie,prevIcon:s.createElement("span",{className:`${j}-prev-icon`}),nextIcon:s.createElement("span",{className:`${j}-next-icon`}),superPrevIcon:s.createElement("span",{className:`${j}-super-prev-icon`}),superNextIcon:s.createElement("span",{className:`${j}-super-next-icon`}),transitionName:`${V}-slide-up`,picker:$},O,{className:le({[`${j}-${ne}`]:ne,[`${j}-${H}`]:B},Fo(j,ji(de,C),ue),G,z,c,F?.className,X,K,x,Y.root),style:Object.assign(Object.assign(Object.assign({},F?.style),u),Z.root),locale:pe.lang,prefixCls:j,getPopupContainer:i||_,generateConfig:e,components:re,direction:L,classNames:{popup:le(G,X,K,x,Y.popup.root)},styles:{popup:Object.assign(Object.assign({},Z.popup.root),{zIndex:be})},allowClear:ee}))))});var tde=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const t=(c,u)=>{const d=u===vI?"timePicker":"datePicker";return s.forwardRef((m,g)=>{var h;const{prefixCls:b,getPopupContainer:p,components:S,style:C,className:x,rootClassName:w,size:$,bordered:E,placement:P,placeholder:M,popupStyle:O,popupClassName:T,dropdownClassName:N,disabled:D,status:L,variant:_,onCalendarChange:F,styles:j,classNames:k,suffixIcon:z}=m,V=tde(m,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupStyle","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange","styles","classNames","suffixIcon"]),{getPrefixCls:H,direction:B,getPopupContainer:K,[d]:W}=s.useContext(Ot),G=H("picker",b),{compactSize:X,compactItemClassnames:Y}=mo(G,B),Z=s.useRef(null),[ee,re]=Di("datePicker",_,E),ne=zn(G),[se,oe,me]=QL(G,ne);s.useImperativeHandle(g,()=>Z.current);const ue={showToday:!0},de=c||m.picker,ae=H(),{onSelect:ie,multiple:ge}=V,pe=ie&&c==="time"&&!ge,be=(we,Ie,Fe)=>{F?.(we,Ie,Fe),pe&&ie(we)},[ve,Ce]=X9(d,k,j,T||N,O),[he,Se]=Y9(m,G),Ee=Z9(S),Oe=ar(we=>{var Ie;return(Ie=$??X)!==null&&Ie!==void 0?Ie:we}),We=s.useContext(Sr),je=D??We,De=s.useContext(Or),{hasFeedback:ke,status:_e,feedbackIcon:Re}=De,Le=s.createElement(Q9,{picker:de,hasFeedback:ke,feedbackIcon:Re,suffixIcon:z}),[Me]=zr("DatePicker",Sp),Be=Object.assign(Object.assign({},Me),m.locale),[$e]=Ua("DatePicker",(h=Ce.popup.root)===null||h===void 0?void 0:h.zIndex);return se(s.createElement(Do,{space:!0},s.createElement(bie,Object.assign({ref:Z,placeholder:Fue(Be,de,M),suffixIcon:Le,placement:P,prevIcon:s.createElement("span",{className:`${G}-prev-icon`}),nextIcon:s.createElement("span",{className:`${G}-next-icon`}),superPrevIcon:s.createElement("span",{className:`${G}-super-prev-icon`}),superNextIcon:s.createElement("span",{className:`${G}-super-next-icon`}),transitionName:`${ae}-slide-up`,picker:c,onCalendarChange:be},ue,V,{locale:Be.lang,className:le({[`${G}-${Oe}`]:Oe,[`${G}-${ee}`]:re},Fo(G,ji(_e,L),ke),oe,Y,W?.className,x,me,ne,w,ve.root),style:Object.assign(Object.assign(Object.assign({},W?.style),C),Ce.root),prefixCls:G,getPopupContainer:p||K,generateConfig:e,components:Ee,direction:B,disabled:je,classNames:{popup:le(oe,me,ne,w,ve.popup.root)},styles:{popup:Object.assign(Object.assign({},Ce.popup.root),{zIndex:$e})},allowClear:he,removeIcon:Se}))))})},n=t(),r=t(Lue,zue),a=t(Aue,Bue),o=t(Hue,Vue),i=t(Wue,Kue),l=t(p4,vI);return{DatePicker:n,WeekPicker:r,MonthPicker:a,YearPicker:o,TimePicker:l,QuarterPicker:i}},J9=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:a,TimePicker:o,QuarterPicker:i}=nde(e),l=ede(e),c=t;return c.WeekPicker=n,c.MonthPicker=r,c.YearPicker=a,c.RangePicker=l,c.TimePicker=o,c.QuarterPicker=i,c},ko=J9(Coe),rde=is(ko,"popupAlign",void 0,"picker");ko._InternalPanelDoNotUseOrYouWillBeFired=rde;const ade=is(ko.RangePicker,"popupAlign",void 0,"picker");ko._InternalRangePanelDoNotUseOrYouWillBeFired=ade;ko.generatePicker=J9;const ode={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},h4=Q.createContext({});var ide=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);aXn(e).map(t=>Object.assign(Object.assign({},t?.props),{key:t.key}));function sde(e,t,n){const r=s.useMemo(()=>t||lde(n),[t,n]);return s.useMemo(()=>r.map(o=>{var{span:i}=o,l=ide(o,["span"]);return i==="filled"?Object.assign(Object.assign({},l),{filled:!0}):Object.assign(Object.assign({},l),{span:typeof i=="number"?i:gk(e,i)})}),[r,e])}var cde=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);ai).forEach(i=>{const{filled:l}=i,c=cde(i,["filled"]);if(l){r.push(c),n.push(r),r=[],o=0;return}const u=t-o;o+=i.span||1,o>=t?(o>t?(a=!0,r.push(Object.assign(Object.assign({},c),{span:u}))):r.push(c),n.push(r),r=[],o=0):r.push(c)}),r.length>0&&n.push(r),n=n.map(i=>{const l=i.reduce((c,u)=>c+(u.span||1),0);if(l{const[n,r]=s.useMemo(()=>ude(t,e),[t,e]);return n},fde=({children:e})=>e,pg=e=>e!=null,v1=e=>{const{itemPrefixCls:t,component:n,span:r,className:a,style:o,labelStyle:i,contentStyle:l,bordered:c,label:u,content:d,colon:f,type:m,styles:g}=e,h=n,{classNames:b}=s.useContext(h4),p=Object.assign(Object.assign({},i),g?.label),S=Object.assign(Object.assign({},l),g?.content);return c?s.createElement(h,{colSpan:r,style:o,className:le(a,{[`${t}-item-${m}`]:m==="label"||m==="content",[b?.label]:b?.label&&m==="label",[b?.content]:b?.content&&m==="content"})},pg(u)&&s.createElement("span",{style:p},u),pg(d)&&s.createElement("span",{style:S},d)):s.createElement(h,{colSpan:r,style:o,className:le(`${t}-item`,a)},s.createElement("div",{className:`${t}-item-container`},pg(u)&&s.createElement("span",{style:p,className:le(`${t}-item-label`,b?.label,{[`${t}-item-no-colon`]:!f})},u),pg(d)&&s.createElement("span",{style:S,className:le(`${t}-item-content`,b?.content)},d)))};function m1(e,{colon:t,prefixCls:n,bordered:r},{component:a,type:o,showLabel:i,showContent:l,labelStyle:c,contentStyle:u,styles:d}){return e.map(({label:f,children:m,prefixCls:g=n,className:h,style:b,labelStyle:p,contentStyle:S,span:C=1,key:x,styles:w},$)=>typeof a=="string"?s.createElement(v1,{key:`${o}-${x||$}`,className:h,style:b,styles:{label:Object.assign(Object.assign(Object.assign(Object.assign({},c),d?.label),p),w?.label),content:Object.assign(Object.assign(Object.assign(Object.assign({},u),d?.content),S),w?.content)},span:C,colon:t,component:a,itemPrefixCls:g,bordered:r,label:i?f:null,content:l?m:null,type:o}):[s.createElement(v1,{key:`label-${x||$}`,className:h,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},c),d?.label),b),p),w?.label),span:1,colon:t,component:a[0],itemPrefixCls:g,bordered:r,label:f,type:"label"}),s.createElement(v1,{key:`content-${x||$}`,className:h,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},u),d?.content),b),S),w?.content),span:C*2-1,component:a[1],itemPrefixCls:g,bordered:r,content:m,type:"content"})])}const vde=e=>{const t=s.useContext(h4),{prefixCls:n,vertical:r,row:a,index:o,bordered:i}=e;return r?s.createElement(s.Fragment,null,s.createElement("tr",{key:`label-${o}`,className:`${n}-row`},m1(a,e,Object.assign({component:"th",type:"label",showLabel:!0},t))),s.createElement("tr",{key:`content-${o}`,className:`${n}-row`},m1(a,e,Object.assign({component:"td",type:"content",showContent:!0},t)))):s.createElement("tr",{key:o,className:`${n}-row`},m1(a,e,Object.assign({component:i?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},t)))},mde=e=>{const{componentCls:t,labelBg:n}=e;return{[`&${t}-bordered`]:{[`> ${t}-view`]:{border:`${ce(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto"},[`${t}-row`]:{borderBottom:`${ce(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:first-child":{"> th:first-child, > td:first-child":{borderStartStartRadius:e.borderRadiusLG}},"&:last-child":{borderBottom:"none","> th:first-child, > td:first-child":{borderEndStartRadius:e.borderRadiusLG}},[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${ce(e.padding)} ${ce(e.paddingLG)}`,borderInlineEnd:`${ce(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${t}-item-label`]:{color:e.colorTextSecondary,backgroundColor:n,"&::after":{display:"none"}}}},[`&${t}-middle`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${ce(e.paddingSM)} ${ce(e.paddingLG)}`}}},[`&${t}-small`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${ce(e.paddingXS)} ${ce(e.padding)}`}}}}}},gde=e=>{const{componentCls:t,extraColor:n,itemPaddingBottom:r,itemPaddingEnd:a,colonMarginRight:o,colonMarginLeft:i,titleMarginBottom:l}=e;return{[t]:Object.assign(Object.assign(Object.assign({},fn(e)),mde(e)),{"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:l},[`${t}-title`]:Object.assign(Object.assign({},ra),{flex:"auto",color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:n,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed",borderCollapse:"collapse"}},[`${t}-row`]:{"> th, > td":{paddingBottom:r,paddingInlineEnd:a},"> th:last-child, > td:last-child":{paddingInlineEnd:0},"&:last-child":{borderBottom:"none","> th, > td":{paddingBottom:0}}},[`${t}-item-label`]:{color:e.labelColor,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${ce(i)} ${ce(o)}`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.contentColor,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline",minWidth:"1em"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}},pde=e=>({labelBg:e.colorFillAlter,labelColor:e.colorTextTertiary,titleColor:e.colorText,titleMarginBottom:e.fontSizeSM*e.lineHeightSM,itemPaddingBottom:e.padding,itemPaddingEnd:e.padding,colonMarginRight:e.marginXS,colonMarginLeft:e.marginXXS/2,contentColor:e.colorText,extraColor:e.colorText}),hde=rn("Descriptions",e=>{const t=Xt(e,{});return gde(t)},pde);var bde=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,title:n,extra:r,column:a,colon:o=!0,bordered:i,layout:l,children:c,className:u,rootClassName:d,style:f,size:m,labelStyle:g,contentStyle:h,styles:b,items:p,classNames:S}=e,C=bde(e,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","styles","items","classNames"]),{getPrefixCls:x,direction:w,className:$,style:E,classNames:P,styles:M}=Vn("descriptions"),O=x("descriptions",t),T=ui(),N=s.useMemo(()=>{var V;return typeof a=="number"?a:(V=gk(T,Object.assign(Object.assign({},ode),a)))!==null&&V!==void 0?V:3},[T,a]),D=sde(T,p,c),L=ar(m),_=dde(N,D),[F,j,k]=hde(O),z=s.useMemo(()=>({labelStyle:g,contentStyle:h,styles:{content:Object.assign(Object.assign({},M.content),b?.content),label:Object.assign(Object.assign({},M.label),b?.label)},classNames:{label:le(P.label,S?.label),content:le(P.content,S?.content)}}),[g,h,b,S,P,M]);return F(s.createElement(h4.Provider,{value:z},s.createElement("div",Object.assign({className:le(O,$,P.root,S?.root,{[`${O}-${L}`]:L&&L!=="default",[`${O}-bordered`]:!!i,[`${O}-rtl`]:w==="rtl"},u,d,j,k),style:Object.assign(Object.assign(Object.assign(Object.assign({},E),M.root),b?.root),f)},C),(n||r)&&s.createElement("div",{className:le(`${O}-header`,P.header,S?.header),style:Object.assign(Object.assign({},M.header),b?.header)},n&&s.createElement("div",{className:le(`${O}-title`,P.title,S?.title),style:Object.assign(Object.assign({},M.title),b?.title)},n),r&&s.createElement("div",{className:le(`${O}-extra`,P.extra,S?.extra),style:Object.assign(Object.assign({},M.extra),b?.extra)},r)),s.createElement("div",{className:`${O}-view`},s.createElement("table",null,s.createElement("tbody",null,_.map((V,H)=>s.createElement(vde,{key:H,index:H,colon:o,prefixCls:O,vertical:l==="vertical",bordered:i,row:V}))))))))};a0.Item=fde;var mI=s.createContext(null),ez=s.createContext({}),yde=["prefixCls","className","containerRef"],Cde=function(t){var n=t.prefixCls,r=t.className,a=t.containerRef,o=Ue(t,yde),i=s.useContext(ez),l=i.panel,c=Ti(l,a);return s.createElement("div",xe({className:le("".concat(n,"-content"),r),role:"dialog",ref:c},Qn(t,{aria:!0}),{"aria-modal":"true"},o))};function gI(e){return typeof e=="string"&&String(Number(e))===e?(jn(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var pI={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Sde(e,t){var n,r,a,o=e.prefixCls,i=e.open,l=e.placement,c=e.inline,u=e.push,d=e.forceRender,f=e.autoFocus,m=e.keyboard,g=e.classNames,h=e.rootClassName,b=e.rootStyle,p=e.zIndex,S=e.className,C=e.id,x=e.style,w=e.motion,$=e.width,E=e.height,P=e.children,M=e.mask,O=e.maskClosable,T=e.maskMotion,N=e.maskClassName,D=e.maskStyle,L=e.afterOpenChange,_=e.onClose,F=e.onMouseEnter,j=e.onMouseOver,k=e.onMouseLeave,z=e.onClick,V=e.onKeyDown,H=e.onKeyUp,B=e.styles,K=e.drawerRender,W=s.useRef(),G=s.useRef(),X=s.useRef();s.useImperativeHandle(t,function(){return W.current});var Y=function(Ce){var he=Ce.keyCode,Se=Ce.shiftKey;switch(he){case lt.TAB:{if(he===lt.TAB){if(!Se&&document.activeElement===X.current){var Ee;(Ee=G.current)===null||Ee===void 0||Ee.focus({preventScroll:!0})}else if(Se&&document.activeElement===G.current){var Oe;(Oe=X.current)===null||Oe===void 0||Oe.focus({preventScroll:!0})}}break}case lt.ESC:{_&&m&&(Ce.stopPropagation(),_(Ce));break}}};s.useEffect(function(){if(i&&f){var ve;(ve=W.current)===null||ve===void 0||ve.focus({preventScroll:!0})}},[i]);var Z=s.useState(!1),ee=fe(Z,2),re=ee[0],ne=ee[1],se=s.useContext(mI),oe;typeof u=="boolean"?oe=u?{}:{distance:0}:oe=u||{};var me=(n=(r=(a=oe)===null||a===void 0?void 0:a.distance)!==null&&r!==void 0?r:se?.pushDistance)!==null&&n!==void 0?n:180,ue=s.useMemo(function(){return{pushDistance:me,push:function(){ne(!0)},pull:function(){ne(!1)}}},[me]);s.useEffect(function(){if(i){var ve;se==null||(ve=se.push)===null||ve===void 0||ve.call(se)}else{var Ce;se==null||(Ce=se.pull)===null||Ce===void 0||Ce.call(se)}},[i]),s.useEffect(function(){return function(){var ve;se==null||(ve=se.pull)===null||ve===void 0||ve.call(se)}},[]);var de=s.createElement(Nr,xe({key:"mask"},T,{visible:M&&i}),function(ve,Ce){var he=ve.className,Se=ve.style;return s.createElement("div",{className:le("".concat(o,"-mask"),he,g?.mask,N),style:R(R(R({},Se),D),B?.mask),onClick:O&&i?_:void 0,ref:Ce})}),ae=typeof w=="function"?w(l):w,ie={};if(re&&me)switch(l){case"top":ie.transform="translateY(".concat(me,"px)");break;case"bottom":ie.transform="translateY(".concat(-me,"px)");break;case"left":ie.transform="translateX(".concat(me,"px)");break;default:ie.transform="translateX(".concat(-me,"px)");break}l==="left"||l==="right"?ie.width=gI($):ie.height=gI(E);var ge={onMouseEnter:F,onMouseOver:j,onMouseLeave:k,onClick:z,onKeyDown:V,onKeyUp:H},pe=s.createElement(Nr,xe({key:"panel"},ae,{visible:i,forceRender:d,onVisibleChanged:function(Ce){L?.(Ce)},removeOnLeave:!1,leavedClassName:"".concat(o,"-content-wrapper-hidden")}),function(ve,Ce){var he=ve.className,Se=ve.style,Ee=s.createElement(Cde,xe({id:C,containerRef:Ce,prefixCls:o,className:le(S,g?.content),style:R(R({},x),B?.content)},Qn(e,{aria:!0}),ge),P);return s.createElement("div",xe({className:le("".concat(o,"-content-wrapper"),g?.wrapper,he),style:R(R(R({},ie),Se),B?.wrapper)},Qn(e,{data:!0})),K?K(Ee):Ee)}),be=R({},b);return p&&(be.zIndex=p),s.createElement(mI.Provider,{value:ue},s.createElement("div",{className:le(o,"".concat(o,"-").concat(l),h,q(q({},"".concat(o,"-open"),i),"".concat(o,"-inline"),c)),style:be,tabIndex:-1,ref:W,onKeyDown:Y},de,s.createElement("div",{tabIndex:0,ref:G,style:pI,"aria-hidden":"true","data-sentinel":"start"}),pe,s.createElement("div",{tabIndex:0,ref:X,style:pI,"aria-hidden":"true","data-sentinel":"end"})))}var xde=s.forwardRef(Sde),wde=function(t){var n=t.open,r=n===void 0?!1:n,a=t.prefixCls,o=a===void 0?"rc-drawer":a,i=t.placement,l=i===void 0?"right":i,c=t.autoFocus,u=c===void 0?!0:c,d=t.keyboard,f=d===void 0?!0:d,m=t.width,g=m===void 0?378:m,h=t.mask,b=h===void 0?!0:h,p=t.maskClosable,S=p===void 0?!0:p,C=t.getContainer,x=t.forceRender,w=t.afterOpenChange,$=t.destroyOnClose,E=t.onMouseEnter,P=t.onMouseOver,M=t.onMouseLeave,O=t.onClick,T=t.onKeyDown,N=t.onKeyUp,D=t.panelRef,L=s.useState(!1),_=fe(L,2),F=_[0],j=_[1],k=s.useState(!1),z=fe(k,2),V=z[0],H=z[1];un(function(){H(!0)},[]);var B=V?r:!1,K=s.useRef(),W=s.useRef();un(function(){B&&(W.current=document.activeElement)},[B]);var G=function(re){var ne;if(j(re),w?.(re),!re&&W.current&&!((ne=K.current)!==null&&ne!==void 0&&ne.contains(W.current))){var se;(se=W.current)===null||se===void 0||se.focus({preventScroll:!0})}},X=s.useMemo(function(){return{panel:D}},[D]);if(!x&&!F&&!B&&$)return null;var Y={onMouseEnter:E,onMouseOver:P,onMouseLeave:M,onClick:O,onKeyDown:T,onKeyUp:N},Z=R(R({},t),{},{open:B,prefixCls:o,placement:l,autoFocus:u,keyboard:f,width:g,mask:b,maskClosable:S,inline:C===!1,afterOpenChange:G,ref:K},Y);return s.createElement(ez.Provider,{value:X},s.createElement(gv,{open:B||x||F,autoDestroy:!1,getContainer:C,autoLock:b&&(B||F)},s.createElement(xde,Z)))};const tz=e=>{var t,n;const{prefixCls:r,ariaId:a,title:o,footer:i,extra:l,closable:c,loading:u,onClose:d,headerStyle:f,bodyStyle:m,footerStyle:g,children:h,classNames:b,styles:p}=e,S=Vn("drawer");let C;c===!1?C=void 0:c===void 0||c===!0?C="start":C=c?.placement==="end"?"end":"start";const x=s.useCallback(M=>s.createElement("button",{type:"button",onClick:d,className:le(`${r}-close`,{[`${r}-close-${C}`]:C==="end"})},M),[d,r,C]),[w,$]=uE($u(e),$u(S),{closable:!0,closeIconRender:x}),E=()=>{var M,O;return!o&&!w?null:s.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(M=S.styles)===null||M===void 0?void 0:M.header),f),p?.header),className:le(`${r}-header`,{[`${r}-header-close-only`]:w&&!o&&!l},(O=S.classNames)===null||O===void 0?void 0:O.header,b?.header)},s.createElement("div",{className:`${r}-header-title`},C==="start"&&$,o&&s.createElement("div",{className:`${r}-title`,id:a},o)),l&&s.createElement("div",{className:`${r}-extra`},l),C==="end"&&$)},P=()=>{var M,O;if(!i)return null;const T=`${r}-footer`;return s.createElement("div",{className:le(T,(M=S.classNames)===null||M===void 0?void 0:M.footer,b?.footer),style:Object.assign(Object.assign(Object.assign({},(O=S.styles)===null||O===void 0?void 0:O.footer),g),p?.footer)},i)};return s.createElement(s.Fragment,null,E(),s.createElement("div",{className:le(`${r}-body`,b?.body,(t=S.classNames)===null||t===void 0?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},(n=S.styles)===null||n===void 0?void 0:n.body),m),p?.body)},u?s.createElement(Tn,{active:!0,title:!1,paragraph:{rows:5},className:`${r}-body-skeleton`}):h),P())},$de=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},nz=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),rz=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},nz({opacity:e},{opacity:1})),Ede=(e,t)=>[rz(.7,t),nz({transform:$de(e)},{transform:"none"})],Pde=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:rz(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,a)=>Object.assign(Object.assign({},r),{[`&-${a}`]:Ede(a,n)}),{})}}},Ode=e=>{const{borderRadiusSM:t,componentCls:n,zIndexPopup:r,colorBgMask:a,colorBgElevated:o,motionDurationSlow:i,motionDurationMid:l,paddingXS:c,padding:u,paddingLG:d,fontSizeLG:f,lineHeightLG:m,lineWidth:g,lineType:h,colorSplit:b,marginXS:p,colorIcon:S,colorIconHover:C,colorBgTextHover:x,colorBgTextActive:w,colorText:$,fontWeightStrong:E,footerPaddingBlock:P,footerPaddingInline:M,calc:O}=e,T=`${n}-content-wrapper`;return{[n]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",color:$,"&-pure":{position:"relative",background:o,display:"flex",flexDirection:"column",[`&${n}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${n}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${n}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${n}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${n}-mask`]:{position:"absolute",inset:0,zIndex:r,background:a,pointerEvents:"auto"},[T]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${i}`,"&-hidden":{display:"none"}},[`&-left > ${T}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${T}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${T}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${T}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:o,pointerEvents:"auto"},[`${n}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${ce(u)} ${ce(d)}`,fontSize:f,lineHeight:m,borderBottom:`${ce(g)} ${h} ${b}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:Object.assign({display:"inline-flex",width:O(f).add(c).equal(),height:O(f).add(c).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",color:S,fontWeight:E,fontSize:f,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${l}`,textRendering:"auto",[`&${n}-close-end`]:{marginInlineStart:p},[`&:not(${n}-close-end)`]:{marginInlineEnd:p},"&:hover":{color:C,backgroundColor:x,textDecoration:"none"},"&:active":{backgroundColor:w}},Ta(e)),[`${n}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:f,lineHeight:m},[`${n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:d,overflow:"auto",[`${n}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${n}-footer`]:{flexShrink:0,padding:`${ce(P)} ${ce(M)}`,borderTop:`${ce(g)} ${h} ${b}`},"&-rtl":{direction:"rtl"}}}},Rde=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}),az=rn("Drawer",e=>{const t=Xt(e,{});return[Ode(t),Pde(t)]},Rde);var oz=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{rootClassName:t,width:n,height:r,size:a="default",mask:o=!0,push:i=Ide,open:l,afterOpenChange:c,onClose:u,prefixCls:d,getContainer:f,panelRef:m=null,style:g,className:h,"aria-labelledby":b,visible:p,afterVisibleChange:S,maskStyle:C,drawerStyle:x,contentWrapperStyle:w,destroyOnClose:$,destroyOnHidden:E}=e,P=oz(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","panelRef","style","className","aria-labelledby","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle","destroyOnClose","destroyOnHidden"]),M=Ku(),O=P.title?M:void 0,{getPopupContainer:T,getPrefixCls:N,direction:D,className:L,style:_,classNames:F,styles:j}=Vn("drawer"),k=N("drawer",d),[z,V,H]=az(k),B=f===void 0&&T?()=>T(document.body):f,K=le({"no-mask":!o,[`${k}-rtl`]:D==="rtl"},t,V,H),W=s.useMemo(()=>n??(a==="large"?736:378),[n,a]),G=s.useMemo(()=>r??(a==="large"?736:378),[r,a]),X={motionName:aa(k,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Y=me=>({motionName:aa(k,`panel-motion-${me}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Z=EF(),ee=wr(m,Z),[re,ne]=Ua("Drawer",P.zIndex),{classNames:se={},styles:oe={}}=P;return z(s.createElement(Do,{form:!0,space:!0},s.createElement(uv.Provider,{value:ne},s.createElement(wde,Object.assign({prefixCls:k,onClose:u,maskMotion:X,motion:Y},P,{classNames:{mask:le(se.mask,F.mask),content:le(se.content,F.content),wrapper:le(se.wrapper,F.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},oe.mask),C),j.mask),content:Object.assign(Object.assign(Object.assign({},oe.content),x),j.content),wrapper:Object.assign(Object.assign(Object.assign({},oe.wrapper),w),j.wrapper)},open:l??p,mask:o,push:i,width:W,height:G,style:Object.assign(Object.assign({},_),g),className:le(L,h),rootClassName:K,getContainer:B,afterOpenChange:c??S,panelRef:ee,zIndex:re,"aria-labelledby":b??O,destroyOnClose:E??$}),s.createElement(tz,Object.assign({prefixCls:k},P,{ariaId:O,onClose:u}))))))},Mde=e=>{const{prefixCls:t,style:n,className:r,placement:a="right"}=e,o=oz(e,["prefixCls","style","className","placement"]),{getPrefixCls:i}=s.useContext(Ot),l=i("drawer",t),[c,u,d]=az(l),f=le(l,`${l}-pure`,`${l}-${a}`,u,d,r);return c(s.createElement("div",{className:f,style:n},s.createElement(tz,Object.assign({prefixCls:l},o))))};iz._InternalPanelDoNotUseOrYouWillBeFired=Mde;function hI(e){return["small","middle","large"].includes(e)}function bI(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const Tde=e=>{const{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:a,paddingXS:o,fontSizeLG:i,fontSizeSM:l,borderRadiusLG:c,borderRadiusSM:u,colorBgContainerDisabled:d,lineWidth:f}=e;return{[t]:[{display:"inline-flex",alignItems:"center",gap:0,paddingInline:r,margin:0,background:d,borderWidth:f,borderStyle:"solid",borderColor:a,borderRadius:n,"&-large":{fontSize:i,borderRadius:c},"&-small":{paddingInline:o,borderRadius:u,fontSize:l},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0}},os(e,{focus:!1})]}},Nde=rn(["Space","Addon"],e=>[Tde(e)]);var _de=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{className:n,children:r,style:a,prefixCls:o}=e,i=_de(e,["className","children","style","prefixCls"]),{getPrefixCls:l,direction:c}=Q.useContext(Ot),u=l("space-addon",o),[d,f,m]=Nde(u),{compactItemClassnames:g,compactSize:h}=mo(u,c),b=le(u,f,g,m,{[`${u}-${h}`]:h},n);return d(Q.createElement("div",Object.assign({ref:t,className:b,style:a},i),r))}),lz=Q.createContext({latestIndex:0}),Dde=lz.Provider,Fde=({className:e,index:t,children:n,split:r,style:a})=>{const{latestIndex:o}=s.useContext(lz);return n==null?null:s.createElement(s.Fragment,null,s.createElement("div",{className:e,style:a},n),t{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},Lde=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},zde=rn("Space",e=>{const t=Xt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[kde(t),Lde(t)]},()=>({}),{resetStyle:!1});var Ade=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const{getPrefixCls:r,direction:a,size:o,className:i,style:l,classNames:c,styles:u}=Vn("space"),{size:d=o??"small",align:f,className:m,rootClassName:g,children:h,direction:b="horizontal",prefixCls:p,split:S,style:C,wrap:x=!1,classNames:w,styles:$}=e,E=Ade(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[P,M]=Array.isArray(d)?d:[d,d],O=hI(M),T=hI(P),N=bI(M),D=bI(P),L=Xn(h,{keepEmpty:!0}),_=f===void 0&&b==="horizontal"?"center":f,F=r("space",p),[j,k,z]=zde(F),V=le(F,i,k,`${F}-${b}`,{[`${F}-rtl`]:a==="rtl",[`${F}-align-${_}`]:_,[`${F}-gap-row-${M}`]:O,[`${F}-gap-col-${P}`]:T},m,g,z),H=le(`${F}-item`,(n=w?.item)!==null&&n!==void 0?n:c.item),B=Object.assign(Object.assign({},u.item),$?.item),K=L.map((X,Y)=>{const Z=X?.key||`${H}-${Y}`;return s.createElement(Fde,{className:H,key:Z,index:Y,split:S,style:B},X)}),W=s.useMemo(()=>({latestIndex:L.reduce((Y,Z,ee)=>Z!=null?ee:Y,0)}),[L]);if(L.length===0)return null;const G={};return x&&(G.flexWrap="wrap"),!T&&D&&(G.columnGap=P),!O&&N&&(G.rowGap=M),j(s.createElement("div",Object.assign({ref:t,className:V,style:Object.assign(Object.assign(Object.assign({},G),l),C)},E),s.createElement(Dde,{value:W},K)))}),Qr=Bde;Qr.Compact=cY;Qr.Addon=jde;var Hde=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPopupContainer:t,getPrefixCls:n,direction:r}=s.useContext(Ot),{prefixCls:a,type:o="default",danger:i,disabled:l,loading:c,onClick:u,htmlType:d,children:f,className:m,menu:g,arrow:h,autoFocus:b,overlay:p,trigger:S,align:C,open:x,onOpenChange:w,placement:$,getPopupContainer:E,href:P,icon:M=s.createElement(qh,null),title:O,buttonsRender:T=se=>se,mouseEnterDelay:N,mouseLeaveDelay:D,overlayClassName:L,overlayStyle:_,destroyOnHidden:F,destroyPopupOnHide:j,dropdownRender:k,popupRender:z}=e,V=Hde(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyOnHidden","destroyPopupOnHide","dropdownRender","popupRender"]),H=n("dropdown",a),B=`${H}-button`,W={menu:g,arrow:h,autoFocus:b,align:C,disabled:l,trigger:l?[]:S,onOpenChange:w,getPopupContainer:E||t,mouseEnterDelay:N,mouseLeaveDelay:D,overlayClassName:L,overlayStyle:_,destroyOnHidden:F,popupRender:z||k},{compactSize:G,compactItemClassnames:X}=mo(H,r),Y=le(B,X,m);"destroyPopupOnHide"in e&&(W.destroyPopupOnHide=j),"overlay"in e&&(W.overlay=p),"open"in e&&(W.open=x),"placement"in e?W.placement=$:W.placement=r==="rtl"?"bottomLeft":"bottomRight";const Z=s.createElement(cr,{type:o,danger:i,disabled:l,loading:c,onClick:u,htmlType:d,href:P,title:O},f),ee=s.createElement(cr,{type:o,danger:i,icon:M}),[re,ne]=T([Z,ee]);return s.createElement(Qr.Compact,Object.assign({className:Y,size:G,block:!0},V),re,s.createElement(wv,Object.assign({},W),ne))};sz.__ANT_BUTTON=!0;const cs=wv;cs.Button=sz;const b4=Q.createContext(void 0),{Provider:Vde}=b4;function cz(e){return e==null?null:typeof e=="object"&&!s.isValidElement(e)?e:{title:e}}var Wde={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"},Kde=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:Wde}))},uz=s.forwardRef(Kde),qde=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{icon:t,description:n,prefixCls:r,className:a}=e,o=qde(e,["icon","description","prefixCls","className"]),i=Q.createElement("div",{className:`${r}-icon`},Q.createElement(uz,null));return Q.createElement("div",Object.assign({},o,{className:le(a,`${r}-content`)}),t||n?Q.createElement(Q.Fragment,null,t&&Q.createElement("div",{className:`${r}-icon`},t),n&&Q.createElement("div",{className:`${r}-description`},n)):i)},Gde=s.memo(Ude),yI=e=>e===0?0:e-Math.sqrt(Math.pow(e,2)/2),Xde=e=>{const{componentCls:t,floatButtonSize:n,motionDurationSlow:r,motionEaseInOutCirc:a,calc:o}=e,i=new an("antFloatButtonMoveTopIn",{"0%":{transform:`translate3d(0, ${ce(n)}, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),l=new an("antFloatButtonMoveTopOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${ce(n)}, 0)`,transformOrigin:"0 0",opacity:0}}),c=new an("antFloatButtonMoveRightIn",{"0%":{transform:`translate3d(${ce(o(n).mul(-1).equal())}, 0, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),u=new an("antFloatButtonMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(${ce(o(n).mul(-1).equal())}, 0, 0)`,transformOrigin:"0 0",opacity:0}}),d=new an("antFloatButtonMoveBottomIn",{"0%":{transform:`translate3d(0, ${ce(o(n).mul(-1).equal())}, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),f=new an("antFloatButtonMoveBottomOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${ce(o(n).mul(-1).equal())}, 0)`,transformOrigin:"0 0",opacity:0}}),m=new an("antFloatButtonMoveLeftIn",{"0%":{transform:`translate3d(${ce(n)}, 0, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),g=new an("antFloatButtonMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(${ce(n)}, 0, 0)`,transformOrigin:"0 0",opacity:0}}),h=`${t}-group`;return[{[h]:{[`&${h}-top ${h}-wrap`]:Kl(`${h}-wrap`,i,l,r,!0),[`&${h}-bottom ${h}-wrap`]:Kl(`${h}-wrap`,d,f,r,!0),[`&${h}-left ${h}-wrap`]:Kl(`${h}-wrap`,m,g,r,!0),[`&${h}-right ${h}-wrap`]:Kl(`${h}-wrap`,c,u,r,!0)}},{[`${h}-wrap`]:{[`&${h}-wrap-enter, &${h}-wrap-appear`]:{opacity:0,animationTimingFunction:a},[`&${h}-wrap-leave`]:{opacity:1,animationTimingFunction:a}}}]},Yde=e=>{const{antCls:t,componentCls:n,floatButtonSize:r,margin:a,borderRadiusLG:o,borderRadiusSM:i,badgeOffset:l,floatButtonBodyPadding:c,zIndexPopupBase:u,calc:d}=e,f=`${n}-group`;return{[f]:Object.assign(Object.assign({},fn(e)),{zIndex:u,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",border:"none",position:"fixed",height:"auto",boxShadow:"none",minWidth:r,minHeight:r,insetInlineEnd:e.floatButtonInsetInlineEnd,bottom:e.floatButtonInsetBlockEnd,borderRadius:o,[`${f}-wrap`]:{zIndex:-1,display:"flex",justifyContent:"center",alignItems:"center",position:"absolute"},[`&${f}-rtl`]:{direction:"rtl"},[n]:{position:"static"}}),[`${f}-top > ${f}-wrap`]:{flexDirection:"column",top:"auto",bottom:d(r).add(a).equal(),"&::after":{content:'""',position:"absolute",width:"100%",height:a,bottom:d(a).mul(-1).equal()}},[`${f}-bottom > ${f}-wrap`]:{flexDirection:"column",top:d(r).add(a).equal(),bottom:"auto","&::after":{content:'""',position:"absolute",width:"100%",height:a,top:d(a).mul(-1).equal()}},[`${f}-right > ${f}-wrap`]:{flexDirection:"row",left:{_skip_check_:!0,value:d(r).add(a).equal()},right:{_skip_check_:!0,value:"auto"},"&::after":{content:'""',position:"absolute",width:a,height:"100%",left:{_skip_check_:!0,value:d(a).mul(-1).equal()}}},[`${f}-left > ${f}-wrap`]:{flexDirection:"row",left:{_skip_check_:!0,value:"auto"},right:{_skip_check_:!0,value:d(r).add(a).equal()},"&::after":{content:'""',position:"absolute",width:a,height:"100%",right:{_skip_check_:!0,value:d(a).mul(-1).equal()}}},[`${f}-circle`]:{gap:a,[`${f}-wrap`]:{gap:a}},[`${f}-square`]:{[`${n}-square`]:{padding:0,borderRadius:0,[`&${f}-trigger`]:{borderRadius:o},"&:first-child":{borderStartStartRadius:o,borderStartEndRadius:o},"&:last-child":{borderEndStartRadius:o,borderEndEndRadius:o},"&:not(:last-child)":{borderBottom:`${ce(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-badge`]:{[`${t}-badge-count`]:{top:d(d(c).add(l)).mul(-1).equal(),insetInlineEnd:d(d(c).add(l)).mul(-1).equal()}}},[`${f}-wrap`]:{borderRadius:o,boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",borderRadius:0,padding:c,[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize,borderRadius:i}}}},[`${f}-top > ${f}-wrap, ${f}-bottom > ${f}-wrap`]:{[`> ${n}-square`]:{"&:first-child":{borderStartStartRadius:o,borderStartEndRadius:o},"&:last-child":{borderEndStartRadius:o,borderEndEndRadius:o},"&:not(:last-child)":{borderBottom:`${ce(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}},[`${f}-left > ${f}-wrap, ${f}-right > ${f}-wrap`]:{[`> ${n}-square`]:{"&:first-child":{borderStartStartRadius:o,borderEndStartRadius:o},"&:last-child":{borderStartEndRadius:o,borderEndEndRadius:o},"&:not(:last-child)":{borderBottom:"none",borderInlineEnd:`${ce(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}},[`${f}-circle-shadow`]:{boxShadow:"none"},[`${f}-square-shadow`]:{boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",padding:c,[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize,borderRadius:i}}}}},Qde=e=>{const{antCls:t,componentCls:n,floatButtonBodyPadding:r,floatButtonIconSize:a,floatButtonSize:o,borderRadiusLG:i,badgeOffset:l,dotOffsetInSquare:c,dotOffsetInCircle:u,zIndexPopupBase:d,calc:f}=e;return{[n]:Object.assign(Object.assign({},fn(e)),{border:"none",position:"fixed",cursor:"pointer",zIndex:d,display:"block",width:o,height:o,insetInlineEnd:e.floatButtonInsetInlineEnd,bottom:e.floatButtonInsetBlockEnd,boxShadow:e.boxShadowSecondary,"&-pure":{position:"relative",inset:"auto"},"&:empty":{display:"none"},[`${t}-badge`]:{width:"100%",height:"100%",[`${t}-badge-count`]:{transform:"translate(0, 0)",transformOrigin:"center",top:f(l).mul(-1).equal(),insetInlineEnd:f(l).mul(-1).equal()}},[`${n}-body`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",transition:`all ${e.motionDurationMid}`,[`${n}-content`]:{overflow:"hidden",textAlign:"center",minHeight:o,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:`${ce(f(r).div(2).equal())} ${ce(r)}`,[`${n}-icon`]:{textAlign:"center",margin:"auto",width:a,fontSize:a,lineHeight:1}}}}),[`${n}-rtl`]:{direction:"rtl"},[`${n}-circle`]:{height:o,borderRadius:"50%",[`${t}-badge`]:{[`${t}-badge-dot`]:{top:u,insetInlineEnd:u}},[`${n}-body`]:{borderRadius:"50%"}},[`${n}-square`]:{height:"auto",minHeight:o,borderRadius:i,[`${t}-badge`]:{[`${t}-badge-dot`]:{top:c,insetInlineEnd:c}},[`${n}-body`]:{height:"auto",borderRadius:i}},[`${n}-default`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,[`${n}-body`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorFillContent},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorText},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:ce(e.fontSizeLG),color:e.colorText,fontSize:e.fontSizeSM}}}},[`${n}-primary`]:{backgroundColor:e.colorPrimary,[`${n}-body`]:{backgroundColor:e.colorPrimary,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorPrimaryHover},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorTextLightSolid},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:ce(e.fontSizeLG),color:e.colorTextLightSolid,fontSize:e.fontSizeSM}}}}}},Zde=e=>({dotOffsetInCircle:yI(e.controlHeightLG/2),dotOffsetInSquare:yI(e.borderRadiusLG)}),dz=rn("FloatButton",e=>{const{colorTextLightSolid:t,colorBgElevated:n,controlHeightLG:r,marginXXL:a,marginLG:o,fontSize:i,fontSizeIcon:l,controlItemBgHover:c,paddingXXS:u,calc:d}=e,f=Xt(e,{floatButtonBackgroundColor:n,floatButtonColor:t,floatButtonHoverBackgroundColor:c,floatButtonFontSize:i,floatButtonIconSize:d(l).mul(1.5).equal(),floatButtonSize:r,floatButtonInsetBlockEnd:a,floatButtonInsetInlineEnd:o,floatButtonBodySize:d(r).sub(d(u).mul(2)).equal(),floatButtonBodyPadding:u,badgeOffset:d(u).mul(1.5).equal()});return[Yde(f),Qde(f),wh(e),Xde(f)]},Zde);var Jde=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,className:r,rootClassName:a,style:o,type:i="default",shape:l="circle",icon:c,description:u,tooltip:d,htmlType:f="button",badge:m={}}=e,g=Jde(e,["prefixCls","className","rootClassName","style","type","shape","icon","description","tooltip","htmlType","badge"]),{getPrefixCls:h,direction:b}=s.useContext(Ot),p=s.useContext(b4),S=h(o0,n),C=zn(S),[x,w,$]=dz(S,C),E=p||l,P=le(w,$,C,S,r,a,`${S}-${i}`,`${S}-${E}`,{[`${S}-rtl`]:b==="rtl"}),[M]=Ua("FloatButton",o?.zIndex),O=Object.assign(Object.assign({},o),{zIndex:M}),T=Qt(m,["title","children","status","text"]);let N=Q.createElement("div",{className:`${S}-body`},Q.createElement(Gde,{prefixCls:S,description:u,icon:c}));"badge"in e&&(N=Q.createElement(so,Object.assign({},T),N));const D=cz(d);return D&&(N=Q.createElement(tr,Object.assign({},D),N)),x(e.href?Q.createElement("a",Object.assign({ref:t},g,{className:P,style:O}),N):Q.createElement("button",Object.assign({ref:t},g,{className:P,style:O,type:f}),N))}),ed=efe;var tfe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const{backTopIcon:r}=Vn("floatButton"),{prefixCls:a,className:o,type:i="default",shape:l="circle",visibilityHeight:c=400,icon:u,target:d,onClick:f,duration:m=450}=e,g=tfe(e,["prefixCls","className","type","shape","visibilityHeight","icon","target","onClick","duration"]),h=(n=u??r)!==null&&n!==void 0?n:nfe,[b,p]=s.useState(c===0),S=Q.useRef(null);Q.useImperativeHandle(t,()=>({nativeElement:S.current}));const C=()=>{var N;return((N=S.current)===null||N===void 0?void 0:N.ownerDocument)||window},x=YK(N=>{const D=MD(N.target);p(D>=c)});s.useEffect(()=>{const D=(d||C)();return x({target:D}),D?.addEventListener("scroll",x),()=>{x.cancel(),D?.removeEventListener("scroll",x)}},[d]);const w=N=>{TD(0,{getContainer:d||C,duration:m}),f?.(N)},{getPrefixCls:$}=s.useContext(Ot),E=$(o0,a),P=$(),O=s.useContext(b4)||l,T=Object.assign({prefixCls:E,icon:h,type:i,shape:O},g);return Q.createElement(Nr,{visible:b,motionName:`${P}-fade`},({className:N},D)=>Q.createElement(ed,Object.assign({ref:wr(S,D)},T,{onClick:w,className:le(o,N)})))});var rfe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var t;const{prefixCls:n,className:r,style:a,shape:o="circle",type:i="default",placement:l="top",icon:c=Q.createElement(uz,null),closeIcon:u,description:d,trigger:f,children:m,onOpenChange:g,open:h,onClick:b}=e,p=rfe(e,["prefixCls","className","style","shape","type","placement","icon","closeIcon","description","trigger","children","onOpenChange","open","onClick"]),{direction:S,getPrefixCls:C,closeIcon:x}=Vn("floatButtonGroup"),w=(t=u??x)!==null&&t!==void 0?t:Q.createElement(vo,null),$=C(o0,n),E=zn($),[P,M,O]=dz($,E),T=`${$}-group`,N=f&&["click","hover"].includes(f),D=l&&["top","left","right","bottom"].includes(l),L=le(T,M,O,E,r,{[`${T}-rtl`]:S==="rtl",[`${T}-${o}`]:o,[`${T}-${o}-shadow`]:!N,[`${T}-${l}`]:N&&D}),[_]=Ua("FloatButton",a?.zIndex),F=Object.assign(Object.assign({},a),{zIndex:_}),j=le(M,`${T}-wrap`),[k,z]=Tt(!1,{value:h}),V=Q.useRef(null),H=f==="hover",B=f==="click",K=Gt(Y=>{k!==Y&&(z(Y),g?.(Y))}),W=()=>{H&&K(!0)},G=()=>{H&&K(!1)},X=Y=>{B&&K(!k),b?.(Y)};return Q.useEffect(()=>{if(B){const Y=Z=>{var ee;!((ee=V.current)===null||ee===void 0)&&ee.contains(Z.target)||K(!1)};return document.addEventListener("click",Y,{capture:!0}),()=>document.removeEventListener("click",Y,{capture:!0})}},[B]),P(Q.createElement(Vde,{value:o},Q.createElement("div",{ref:V,className:L,style:F,onMouseEnter:W,onMouseLeave:G},N?Q.createElement(Q.Fragment,null,Q.createElement(Nr,{visible:k,motionName:`${T}-wrap`},({className:Y})=>Q.createElement("div",{className:le(Y,j)},m)),Q.createElement(ed,Object.assign({type:i,icon:k?w:c,description:d,"aria-label":e["aria-label"],className:`${T}-trigger`,onClick:X},p))):m)))};var mz=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{backTop:t}=e,n=mz(e,["backTop"]);return t?s.createElement(fz,Object.assign({},n,{visibilityHeight:0})):s.createElement(ed,Object.assign({},n))},afe=e=>{var{className:t,items:n}=e,r=mz(e,["className","items"]);const{prefixCls:a}=r,{getPrefixCls:o}=s.useContext(Ot),l=`${o(o0,a)}-pure`;return n?s.createElement(vz,Object.assign({className:le(t,l)},r),n.map((c,u)=>s.createElement(CI,Object.assign({key:u},c)))):s.createElement(CI,Object.assign({className:le(t,l)},r))};ed.BackTop=fz;ed.Group=vz;ed._InternalPanelDoNotUseOrYouWillBeFired=afe;function Dp(e){const[t,n]=s.useState(e);return s.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const ofe=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut}, - opacity ${e.motionDurationFast} ${e.motionEaseInOut}, - transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},ife=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${ce(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${ce(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),SI=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},lfe=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},fn(e)),ife(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},SI(e,e.controlHeightSM)),"&-large":Object.assign({},SI(e,e.controlHeightLG))})}},sfe=e=>{const{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:a,labelRequiredMarkColor:o,labelColor:i,labelFontSize:l,labelHeight:c,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:d,itemMarginBottom:f}=e;return{[t]:Object.assign(Object.assign({},fn(e)),{marginBottom:f,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, - &-hidden${a}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset","> label":{verticalAlign:"middle",textWrap:"balance"}},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:c,color:i,fontSize:l,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:o,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:u,marginInlineEnd:d},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%",[`&:has(> ${a}-switch:only-child, > ${a}-rate:only-child)`]:{display:"flex",alignItems:"center"}}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:bE,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},Ms=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),cfe=e=>{const{antCls:t,formItemCls:n}=e;return{[`${n}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}},[`${t}-col-24${n}-label, - ${t}-col-xl-24${n}-label`]:Ms(e)}}},ufe=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[`${n}-inline`]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label, - > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},dfe=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:Ms(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},ffe=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${n}-vertical`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label, - ${r}-col-24${n}-label, - ${r}-col-xl-24${n}-label`]:Ms(e)},[`@media (max-width: ${ce(e.screenXSMax)})`]:[dfe(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:Ms(e)}}}],[`@media (max-width: ${ce(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:Ms(e)}}},[`@media (max-width: ${ce(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:Ms(e)}}},[`@media (max-width: ${ce(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:Ms(e)}}}}},vfe=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),gz=(e,t)=>Xt(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),y4=rn("Form",(e,{rootPrefixCls:t})=>{const n=gz(e,t);return[lfe(n),sfe(n),ofe(n),cfe(n),ufe(n),ffe(n),vv(n),bE]},vfe,{order:-1e3}),xI=[];function g1(e,t,n,r=0){return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const pz=({help:e,helpStatus:t,errors:n=xI,warnings:r=xI,className:a,fieldId:o,onVisibleChanged:i})=>{const{prefixCls:l}=s.useContext(PE),c=`${l}-item-explain`,u=zn(l),[d,f,m]=y4(l,u),g=s.useMemo(()=>Eu(l),[l]),h=Dp(n),b=Dp(r),p=s.useMemo(()=>e!=null?[g1(e,"help",t)]:[].concat(Te(h.map((x,w)=>g1(x,"error","error",w))),Te(b.map((x,w)=>g1(x,"warning","warning",w)))),[e,t,h,b]),S=s.useMemo(()=>{const x={};return p.forEach(({key:w})=>{x[w]=(x[w]||0)+1}),p.map((w,$)=>Object.assign(Object.assign({},w),{key:x[w.key]>1?`${w.key}-fallback-${$}`:w.key}))},[p]),C={};return o&&(C.id=`${o}_help`),d(s.createElement(Nr,{motionDeadline:g.motionDeadline,motionName:`${l}-show-help`,visible:!!S.length,onVisibleChanged:i},x=>{const{className:w,style:$}=x;return s.createElement("div",Object.assign({},C,{className:le(c,w,m,u,a,f),style:$}),s.createElement(sE,Object.assign({keys:S},Eu(l),{motionName:`${l}-show-help-item`,component:!1}),E=>{const{key:P,error:M,errorStatus:O,className:T,style:N}=E;return s.createElement("div",{key:P,className:le(T,{[`${c}-${O}`]:O}),style:N},M)}))}))};var mfe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const n=s.useContext(Sr),{getPrefixCls:r,direction:a,requiredMark:o,colon:i,scrollToFirstError:l,className:c,style:u}=Vn("form"),{prefixCls:d,className:f,rootClassName:m,size:g,disabled:h=n,form:b,colon:p,labelAlign:S,labelWrap:C,labelCol:x,wrapperCol:w,hideRequiredMark:$,layout:E="horizontal",scrollToFirstError:P,requiredMark:M,onFinishFailed:O,name:T,style:N,feedbackIcons:D,variant:L}=e,_=mfe(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),F=ar(g),j=s.useContext(Uj),k=s.useMemo(()=>M!==void 0?M:$?!1:o!==void 0?o:!0,[$,M,o]),z=p??i,V=r("form",d),H=zn(V),[B,K,W]=y4(V,H),G=le(V,`${V}-${E}`,{[`${V}-hide-required-mark`]:k===!1,[`${V}-rtl`]:a==="rtl",[`${V}-${F}`]:F},W,H,K,c,f,m),[X]=HL(b),{__INTERNAL__:Y}=X;Y.name=T;const Z=s.useMemo(()=>({name:T,labelAlign:S,labelCol:x,labelWrap:C,wrapperCol:w,layout:E,colon:z,requiredMark:k,itemRef:Y.itemRef,form:X,feedbackIcons:D}),[T,S,x,w,E,z,k,X,D]),ee=s.useRef(null);s.useImperativeHandle(t,()=>{var se;return Object.assign(Object.assign({},X),{nativeElement:(se=ee.current)===null||se===void 0?void 0:se.nativeElement})});const re=(se,oe)=>{if(se){let me={block:"nearest"};typeof se=="object"&&(me=Object.assign(Object.assign({},me),se)),X.scrollToField(oe,me)}},ne=se=>{if(O?.(se),se.errorFields.length){const oe=se.errorFields[0].name;if(P!==void 0){re(P,oe);return}l!==void 0&&re(l,oe)}};return B(s.createElement(xF.Provider,{value:L},s.createElement(oE,{disabled:h},s.createElement(Vs.Provider,{value:F},s.createElement(CF,{validateMessages:j},s.createElement(sl.Provider,{value:Z},s.createElement(SF,{status:!0},s.createElement(qu,Object.assign({id:T},_,{name:T,onFinishFailed:ne,form:X,ref:ee,style:Object.assign(Object.assign({},u),N),className:G})))))))))},pfe=s.forwardRef(gfe);function hfe(e){if(typeof e=="function")return e;const t=Xn(e);return t.length<=1?t[0]:t}const hz=()=>{const{status:e,errors:t=[],warnings:n=[]}=s.useContext(Or);return{status:e,errors:t,warnings:n}};hz.Context=Or;function bfe(e){const[t,n]=s.useState(e),r=s.useRef(null),a=s.useRef([]),o=s.useRef(!1);s.useEffect(()=>(o.current=!1,()=>{o.current=!0,ln.cancel(r.current),r.current=null}),[]);function i(l){o.current||(r.current===null&&(a.current=[],r.current=ln(()=>{r.current=null,n(c=>{let u=c;return a.current.forEach(d=>{u=d(u)}),u})})),a.current.push(l))}return[t,i]}function yfe(){const{itemRef:e}=s.useContext(sl),t=s.useRef({});function n(r,a){const o=a&&typeof a=="object"&&ns(a),i=r.join("_");return(t.current.name!==i||t.current.originRef!==o)&&(t.current.name=i,t.current.originRef=o,t.current.ref=wr(e(r),o)),t.current.ref}return n}const Cfe=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},Sfe=Bu(["Form","item-item"],(e,{rootPrefixCls:t})=>{const n=gz(e,t);return Cfe(n)});var xfe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,status:n,labelCol:r,wrapperCol:a,children:o,errors:i,warnings:l,_internalItemRender:c,extra:u,help:d,fieldId:f,marginBottom:m,onErrorVisibleChanged:g,label:h}=e,b=`${t}-item`,p=s.useContext(sl),S=s.useMemo(()=>{let _=Object.assign({},a||p.wrapperCol||{});return h===null&&!r&&!a&&p.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(j=>{const k=j?[j]:[],z=Dn(p.labelCol,k),V=typeof z=="object"?z:{},H=Dn(_,k),B=typeof H=="object"?H:{};"span"in V&&!("offset"in B)&&V.span{const{labelCol:_,wrapperCol:F}=p;return xfe(p,["labelCol","wrapperCol"])},[p]),w=s.useRef(null),[$,E]=s.useState(0);un(()=>{u&&w.current?E(w.current.clientHeight):E(0)},[u]);const P=s.createElement("div",{className:`${b}-control-input`},s.createElement("div",{className:`${b}-control-input-content`},o)),M=s.useMemo(()=>({prefixCls:t,status:n}),[t,n]),O=m!==null||i.length||l.length?s.createElement(PE.Provider,{value:M},s.createElement(pz,{fieldId:f,errors:i,warnings:l,help:d,helpStatus:n,className:`${b}-explain-connected`,onVisibleChanged:g})):null,T={};f&&(T.id=`${f}_extra`);const N=u?s.createElement("div",Object.assign({},T,{className:`${b}-extra`,ref:w}),u):null,D=O||N?s.createElement("div",{className:`${b}-additional`,style:m?{minHeight:m+$}:{}},O,N):null,L=c&&c.mark==="pro_table_render"&&c.render?c.render(e,{input:P,errorList:O,extra:N}):s.createElement(s.Fragment,null,P,D);return s.createElement(sl.Provider,{value:x},s.createElement(Fr,Object.assign({},S,{className:C}),L),s.createElement(Sfe,{prefixCls:t}))};var Efe={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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},Pfe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:Efe}))},Ofe=s.forwardRef(Pfe),Rfe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var d;const[f]=zr("Form"),{labelAlign:m,labelCol:g,labelWrap:h,colon:b}=s.useContext(sl);if(!t)return null;const p=r||g||{},S=a||m,C=`${e}-item-label`,x=le(C,S==="left"&&`${C}-left`,p.className,{[`${C}-wrap`]:!!h});let w=t;const $=o===!0||b!==!1&&o!==!1;$&&!u&&typeof t=="string"&&t.trim()&&(w=t.replace(/[:|:]\s*$/,""));const P=cz(c);if(P){const{icon:L=s.createElement(Ofe,null)}=P,_=Rfe(P,["icon"]),F=s.createElement(tr,Object.assign({},_),s.cloneElement(L,{className:`${e}-item-tooltip`,title:"",onClick:j=>{j.preventDefault()},tabIndex:null}));w=s.createElement(s.Fragment,null,w,F)}const M=l==="optional",O=typeof l=="function",T=l===!1;O?w=l(w,{required:!!i}):M&&!i&&(w=s.createElement(s.Fragment,null,w,s.createElement("span",{className:`${e}-item-optional`,title:""},f?.optional||((d=Ka.Form)===null||d===void 0?void 0:d.optional))));let N;T?N="hidden":(M||O)&&(N="optional");const D=le({[`${e}-item-required`]:i,[`${e}-item-required-mark-${N}`]:N,[`${e}-item-no-colon`]:!$});return s.createElement(Fr,Object.assign({},p,{className:x}),s.createElement("label",{htmlFor:n,className:D,title:typeof t=="string"?t:""},w))},Mfe={success:Zs,warning:as,error:_i,validating:wa};function bz({children:e,errors:t,warnings:n,hasFeedback:r,validateStatus:a,prefixCls:o,meta:i,noStyle:l,name:c}){const u=`${o}-item`,{feedbackIcons:d}=s.useContext(sl),f=BL(t,n,i,null,!!r,a),{isFormItemInput:m,status:g,hasFeedback:h,feedbackIcon:b,name:p}=s.useContext(Or),S=s.useMemo(()=>{var C;let x;if(r){const $=r!==!0&&r.icons||d,E=f&&((C=$?.({status:f,errors:t,warnings:n}))===null||C===void 0?void 0:C[f]),P=f?Mfe[f]:null;x=E!==!1&&P?s.createElement("span",{className:le(`${u}-feedback-icon`,`${u}-feedback-icon-${f}`)},E||s.createElement(P,null)):null}const w={status:f||"",errors:t,warnings:n,hasFeedback:!!r,feedbackIcon:x,isFormItemInput:!0,name:c};return l&&(w.status=(f??g)||"",w.isFormItemInput=m,w.hasFeedback=!!(r??h),w.feedbackIcon=r!==void 0?w.feedbackIcon:b,w.name=c??p),w},[f,r,l,m,g]);return s.createElement(Or.Provider,{value:S},e)}var Tfe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{if(L&&O.current){const B=getComputedStyle(O.current);j(Number.parseInt(B.marginBottom,10))}},[L,_]);const k=B=>{B||j(null)},V=((B=!1)=>{const K=B?T:u.errors,W=B?N:u.warnings;return BL(K,W,u,"",!!d,c)})(),H=le(w,n,r,{[`${w}-with-help`]:D||T.length||N.length,[`${w}-has-feedback`]:V&&d,[`${w}-has-success`]:V==="success",[`${w}-has-warning`]:V==="warning",[`${w}-has-error`]:V==="error",[`${w}-is-validating`]:V==="validating",[`${w}-hidden`]:f,[`${w}-${P}`]:P});return s.createElement("div",{className:H,style:a,ref:O},s.createElement(Io,Object.assign({className:`${w}-row`},Qt(x,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),s.createElement(Ife,Object.assign({htmlFor:g},e,{requiredMark:$,required:h??b,prefixCls:t,vertical:M})),s.createElement($fe,Object.assign({},e,u,{errors:T,warnings:N,prefixCls:t,status:V,help:o,marginBottom:F,onErrorVisibleChanged:k}),s.createElement(yF.Provider,{value:p},s.createElement(bz,{prefixCls:t,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:d,validateStatus:V,name:C},m)))),!!F&&s.createElement("div",{className:`${w}-margin-offset`,style:{marginBottom:-F}}))}const _fe="__SPLIT__";function jfe(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(a=>{const o=e[a],i=t[a];return o===i||typeof o=="function"||typeof i=="function"})}const Dfe=s.memo(({children:e})=>e,(e,t)=>jfe(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function wI(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Ffe(e){const{name:t,noStyle:n,className:r,dependencies:a,prefixCls:o,shouldUpdate:i,rules:l,children:c,required:u,label:d,messageVariables:f,trigger:m="onChange",validateTrigger:g,hidden:h,help:b,layout:p}=e,{getPrefixCls:S}=s.useContext(Ot),{name:C}=s.useContext(sl),x=hfe(c),w=typeof x=="function",$=s.useContext(yF),{validateTrigger:E}=s.useContext(Ql),P=g!==void 0?g:E,M=t!=null,O=S("form",o),T=zn(O),[N,D,L]=y4(O,T);Ni();const _=s.useContext(Vf),F=s.useRef(null),[j,k]=bfe({}),[z,V]=Ws(()=>wI()),H=Z=>{const ee=_?.getKey(Z.name);if(V(Z.destroy?wI():Z,!0),n&&b!==!1&&$){let re=Z.name;if(Z.destroy)re=F.current||re;else if(ee!==void 0){const[ne,se]=ee;re=[ne].concat(Te(se)),F.current=re}$(Z,re)}},B=(Z,ee)=>{k(re=>{const ne=Object.assign({},re),oe=[].concat(Te(Z.name.slice(0,-1)),Te(ee)).join(_fe);return Z.destroy?delete ne[oe]:ne[oe]=Z,ne})},[K,W]=s.useMemo(()=>{const Z=Te(z.errors),ee=Te(z.warnings);return Object.values(j).forEach(re=>{Z.push.apply(Z,Te(re.errors||[])),ee.push.apply(ee,Te(re.warnings||[]))}),[Z,ee]},[j,z.errors,z.warnings]),G=yfe();function X(Z,ee,re){return n&&!h?s.createElement(bz,{prefixCls:O,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:z,errors:K,warnings:W,noStyle:!0,name:t},Z):s.createElement(Nfe,Object.assign({key:"row"},e,{className:le(r,L,T,D),prefixCls:O,fieldId:ee,isRequired:re,errors:K,warnings:W,meta:z,onSubItemMetaChange:B,layout:p,name:t}),Z)}if(!M&&!w&&!a)return N(X(x));let Y={};return typeof d=="string"?Y.label=d:t&&(Y.label=String(t)),f&&(Y=Object.assign(Object.assign({},Y),f)),N(s.createElement($E,Object.assign({},e,{messageVariables:Y,trigger:m,validateTrigger:P,onMetaChange:H}),(Z,ee,re)=>{const ne=xf(t).length&&ee?ee.name:[],se=AL(ne,C),oe=u!==void 0?u:!!l?.some(de=>{if(de&&typeof de=="object"&&de.required&&!de.warningOnly)return!0;if(typeof de=="function"){const ae=de(re);return ae?.required&&!ae?.warningOnly}return!1}),me=Object.assign({},Z);let ue=null;if(Array.isArray(x)&&M)ue=x;else if(!(w&&(!(i||a)||M))){if(!(a&&!w&&!M))if(s.isValidElement(x)){const de=Object.assign(Object.assign({},x.props),me);if(de.id||(de.id=se),b||K.length>0||W.length>0||e.extra){const ge=[];(b||K.length>0)&&ge.push(`${se}_help`),e.extra&&ge.push(`${se}_extra`),de["aria-describedby"]=ge.join(" ")}K.length>0&&(de["aria-invalid"]="true"),oe&&(de["aria-required"]="true"),ni(x)&&(de.ref=G(ne,x)),new Set([].concat(Te(xf(m)),Te(xf(P)))).forEach(ge=>{de[ge]=(...pe)=>{var be,ve,Ce,he,Se;(Ce=me[ge])===null||Ce===void 0||(be=Ce).call.apply(be,[me].concat(pe)),(Se=(he=x.props)[ge])===null||Se===void 0||(ve=Se).call.apply(ve,[he].concat(pe))}});const ie=[de["aria-required"],de["aria-invalid"],de["aria-describedby"]];ue=s.createElement(Dfe,{control:me,update:x,childProps:ie},xr(x,de))}else w&&(i||a)&&!M?ue=x(re):ue=x}return X(ue,se,oe)}))}const yz=Ffe;yz.useStatus=hz;var kfe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{prefixCls:t,children:n}=e,r=kfe(e,["prefixCls","children"]);const{getPrefixCls:a}=s.useContext(Ot),o=a("form",t),i=s.useMemo(()=>({prefixCls:o,status:"error"}),[o]);return s.createElement(gF,Object.assign({},r),(l,c,u)=>s.createElement(PE.Provider,{value:i},n(l.map(d=>Object.assign(Object.assign({},d),{fieldKey:d.key})),c,{errors:u.errors,warnings:u.warnings})))};function zfe(){const{form:e}=s.useContext(sl);return e}const Fn=pfe;Fn.Item=yz;Fn.List=Lfe;Fn.ErrorList=pz;Fn.useForm=HL;Fn.useFormInstance=zfe;Fn.useWatch=bF;Fn.Provider=CF;Fn.create=()=>{};var Afe={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"},Bfe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:Afe}))},i0=s.forwardRef(Bfe);function Cz(){var e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function Hfe(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function ql(e,t,n,r){var a=Nf.unstable_batchedUpdates?function(i){Nf.unstable_batchedUpdates(n,i)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,a,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,a,r)}}}var Iv=s.createContext(null),Vfe=function(t){var n=t.visible,r=t.maskTransitionName,a=t.getContainer,o=t.prefixCls,i=t.rootClassName,l=t.icons,c=t.countRender,u=t.showSwitch,d=t.showProgress,f=t.current,m=t.transform,g=t.count,h=t.scale,b=t.minScale,p=t.maxScale,S=t.closeIcon,C=t.onActive,x=t.onClose,w=t.onZoomIn,$=t.onZoomOut,E=t.onRotateRight,P=t.onRotateLeft,M=t.onFlipX,O=t.onFlipY,T=t.onReset,N=t.toolbarRender,D=t.zIndex,L=t.image,_=s.useContext(Iv),F=l.rotateLeft,j=l.rotateRight,k=l.zoomIn,z=l.zoomOut,V=l.close,H=l.left,B=l.right,K=l.flipX,W=l.flipY,G="".concat(o,"-operations-operation");s.useEffect(function(){var ae=function(ge){ge.keyCode===lt.ESC&&x()};return n&&window.addEventListener("keydown",ae),function(){window.removeEventListener("keydown",ae)}},[n]);var X=function(ie,ge){ie.preventDefault(),ie.stopPropagation(),C(ge)},Y=s.useCallback(function(ae){var ie=ae.type,ge=ae.disabled,pe=ae.onClick,be=ae.icon;return s.createElement("div",{key:ie,className:le(G,"".concat(o,"-operations-operation-").concat(ie),q({},"".concat(o,"-operations-operation-disabled"),!!ge)),onClick:pe},be)},[G,o]),Z=u?Y({icon:H,onClick:function(ie){return X(ie,-1)},type:"prev",disabled:f===0}):void 0,ee=u?Y({icon:B,onClick:function(ie){return X(ie,1)},type:"next",disabled:f===g-1}):void 0,re=Y({icon:W,onClick:O,type:"flipY"}),ne=Y({icon:K,onClick:M,type:"flipX"}),se=Y({icon:F,onClick:P,type:"rotateLeft"}),oe=Y({icon:j,onClick:E,type:"rotateRight"}),me=Y({icon:z,onClick:$,type:"zoomOut",disabled:h<=b}),ue=Y({icon:k,onClick:w,type:"zoomIn",disabled:h===p}),de=s.createElement("div",{className:"".concat(o,"-operations")},re,ne,se,oe,me,ue);return s.createElement(Nr,{visible:n,motionName:r},function(ae){var ie=ae.className,ge=ae.style;return s.createElement(gv,{open:!0,getContainer:a??document.body},s.createElement("div",{className:le("".concat(o,"-operations-wrapper"),ie,i),style:R(R({},ge),{},{zIndex:D})},S===null?null:s.createElement("button",{className:"".concat(o,"-close"),onClick:x},S||V),u&&s.createElement(s.Fragment,null,s.createElement("div",{className:le("".concat(o,"-switch-left"),q({},"".concat(o,"-switch-left-disabled"),f===0)),onClick:function(be){return X(be,-1)}},H),s.createElement("div",{className:le("".concat(o,"-switch-right"),q({},"".concat(o,"-switch-right-disabled"),f===g-1)),onClick:function(be){return X(be,1)}},B)),s.createElement("div",{className:"".concat(o,"-footer")},d&&s.createElement("div",{className:"".concat(o,"-progress")},c?c(f+1,g):s.createElement("bdi",null,"".concat(f+1," / ").concat(g))),N?N(de,R(R({icons:{prevIcon:Z,nextIcon:ee,flipYIcon:re,flipXIcon:ne,rotateLeftIcon:se,rotateRightIcon:oe,zoomOutIcon:me,zoomInIcon:ue},actions:{onActive:C,onFlipY:O,onFlipX:M,onRotateLeft:P,onRotateRight:E,onZoomOut:$,onZoomIn:w,onReset:T,onClose:x},transform:m},_?{current:f,total:g}:{}),{},{image:L})):de)))})},hg={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function Wfe(e,t,n,r){var a=s.useRef(null),o=s.useRef([]),i=s.useState(hg),l=fe(i,2),c=l[0],u=l[1],d=function(h){u(hg),Ma(hg,c)||r?.({transform:hg,action:h})},f=function(h,b){a.current===null&&(o.current=[],a.current=ln(function(){u(function(p){var S=p;return o.current.forEach(function(C){S=R(R({},S),C)}),a.current=null,r?.({transform:S,action:b}),S})})),o.current.push(R(R({},c),h))},m=function(h,b,p,S,C){var x=e.current,w=x.width,$=x.height,E=x.offsetWidth,P=x.offsetHeight,M=x.offsetLeft,O=x.offsetTop,T=h,N=c.scale*h;N>n?(N=n,T=n/c.scale):Nr){if(t>0)return q({},e,o);if(t<0&&ar)return q({},e,t<0?o:-o);return{}}function Sz(e,t,n,r){var a=Cz(),o=a.width,i=a.height,l=null;return e<=o&&t<=i?l={x:0,y:0}:(e>o||t>i)&&(l=R(R({},$I("x",n,e,o)),$I("y",r,t,i))),l}var iu=1,Kfe=1;function qfe(e,t,n,r,a,o,i){var l=a.rotate,c=a.scale,u=a.x,d=a.y,f=s.useState(!1),m=fe(f,2),g=m[0],h=m[1],b=s.useRef({diffX:0,diffY:0,transformX:0,transformY:0}),p=function($){!t||$.button!==0||($.preventDefault(),$.stopPropagation(),b.current={diffX:$.pageX-u,diffY:$.pageY-d,transformX:u,transformY:d},h(!0))},S=function($){n&&g&&o({x:$.pageX-b.current.diffX,y:$.pageY-b.current.diffY},"move")},C=function(){if(n&&g){h(!1);var $=b.current,E=$.transformX,P=$.transformY,M=u!==E&&d!==P;if(!M)return;var O=e.current.offsetWidth*c,T=e.current.offsetHeight*c,N=e.current.getBoundingClientRect(),D=N.left,L=N.top,_=l%180!==0,F=Sz(_?T:O,_?O:T,D,L);F&&o(R({},F),"dragRebound")}},x=function($){if(!(!n||$.deltaY==0)){var E=Math.abs($.deltaY/100),P=Math.min(E,Kfe),M=iu+P*r;$.deltaY>0&&(M=iu/M),i(M,"wheel",$.clientX,$.clientY)}};return s.useEffect(function(){var w,$,E,P;if(t){E=ql(window,"mouseup",C,!1),P=ql(window,"mousemove",S,!1);try{window.top!==window.self&&(w=ql(window.top,"mouseup",C,!1),$=ql(window.top,"mousemove",S,!1))}catch{}}return function(){var M,O,T,N;(M=E)===null||M===void 0||M.remove(),(O=P)===null||O===void 0||O.remove(),(T=w)===null||T===void 0||T.remove(),(N=$)===null||N===void 0||N.remove()}},[n,g,u,d,l,t]),{isMoving:g,onMouseDown:p,onMouseMove:S,onMouseUp:C,onWheel:x}}function Ufe(e){return new Promise(function(t){if(!e){t(!1);return}var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e})}function xz(e){var t=e.src,n=e.isCustomPlaceholder,r=e.fallback,a=s.useState(n?"loading":"normal"),o=fe(a,2),i=o[0],l=o[1],c=s.useRef(!1),u=i==="error";s.useEffect(function(){var g=!0;return Ufe(t).then(function(h){!h&&g&&l("error")}),function(){g=!1}},[t]),s.useEffect(function(){n&&!c.current?l("loading"):u&&l("normal")},[t]);var d=function(){l("normal")},f=function(h){c.current=!1,i==="loading"&&h!==null&&h!==void 0&&h.complete&&(h.naturalWidth||h.naturalHeight)&&(c.current=!0,d())},m=u&&r?{src:r}:{onLoad:d,src:t};return[f,m,i]}function Fp(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function Gfe(e,t,n,r){var a=Fp(e,n),o=Fp(t,r);if(a===0&&o===0)return[e.x,e.y];var i=a/(a+o),l=e.x+i*(t.x-e.x),c=e.y+i*(t.y-e.y);return[l,c]}function Xfe(e,t,n,r,a,o,i){var l=a.rotate,c=a.scale,u=a.x,d=a.y,f=s.useState(!1),m=fe(f,2),g=m[0],h=m[1],b=s.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),p=function($){b.current=R(R({},b.current),$)},S=function($){if(t){$.stopPropagation(),h(!0);var E=$.touches,P=E===void 0?[]:E;P.length>1?p({point1:{x:P[0].clientX,y:P[0].clientY},point2:{x:P[1].clientX,y:P[1].clientY},eventType:"touchZoom"}):p({point1:{x:P[0].clientX-u,y:P[0].clientY-d},eventType:"move"})}},C=function($){var E=$.touches,P=E===void 0?[]:E,M=b.current,O=M.point1,T=M.point2,N=M.eventType;if(P.length>1&&N==="touchZoom"){var D={x:P[0].clientX,y:P[0].clientY},L={x:P[1].clientX,y:P[1].clientY},_=Gfe(O,T,D,L),F=fe(_,2),j=F[0],k=F[1],z=Fp(D,L)/Fp(O,T);i(z,"touchZoom",j,k,!0),p({point1:D,point2:L,eventType:"touchZoom"})}else N==="move"&&(o({x:P[0].clientX-O.x,y:P[0].clientY-O.y},"move"),p({eventType:"move"}))},x=function(){if(n){if(g&&h(!1),p({eventType:"none"}),r>c)return o({x:0,y:0,scale:r},"touchZoom");var $=e.current.offsetWidth*c,E=e.current.offsetHeight*c,P=e.current.getBoundingClientRect(),M=P.left,O=P.top,T=l%180!==0,N=Sz(T?E:$,T?$:E,M,O);N&&o(R({},N),"dragRebound")}};return s.useEffect(function(){var w;return n&&t&&(w=ql(window,"touchmove",function($){return $.preventDefault()},{passive:!1})),function(){var $;($=w)===null||$===void 0||$.remove()}},[n,t]),{isTouching:g,onTouchStart:S,onTouchMove:C,onTouchEnd:x}}var Yfe=["fallback","src","imgRef"],Qfe=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],Zfe=function(t){var n=t.fallback,r=t.src,a=t.imgRef,o=Ue(t,Yfe),i=xz({src:r,fallback:n}),l=fe(i,2),c=l[0],u=l[1];return Q.createElement("img",xe({ref:function(f){a.current=f,c(f)}},o,u))},wz=function(t){var n=t.prefixCls,r=t.src,a=t.alt,o=t.imageInfo,i=t.fallback,l=t.movable,c=l===void 0?!0:l,u=t.onClose,d=t.visible,f=t.icons,m=f===void 0?{}:f,g=t.rootClassName,h=t.closeIcon,b=t.getContainer,p=t.current,S=p===void 0?0:p,C=t.count,x=C===void 0?1:C,w=t.countRender,$=t.scaleStep,E=$===void 0?.5:$,P=t.minScale,M=P===void 0?1:P,O=t.maxScale,T=O===void 0?50:O,N=t.transitionName,D=N===void 0?"zoom":N,L=t.maskTransitionName,_=L===void 0?"fade":L,F=t.imageRender,j=t.imgCommonProps,k=t.toolbarRender,z=t.onTransform,V=t.onChange,H=Ue(t,Qfe),B=s.useRef(),K=s.useContext(Iv),W=K&&x>1,G=K&&x>=1,X=s.useState(!0),Y=fe(X,2),Z=Y[0],ee=Y[1],re=Wfe(B,M,T,z),ne=re.transform,se=re.resetTransform,oe=re.updateTransform,me=re.dispatchZoomChange,ue=qfe(B,c,d,E,ne,oe,me),de=ue.isMoving,ae=ue.onMouseDown,ie=ue.onWheel,ge=Xfe(B,c,d,M,ne,oe,me),pe=ge.isTouching,be=ge.onTouchStart,ve=ge.onTouchMove,Ce=ge.onTouchEnd,he=ne.rotate,Se=ne.scale,Ee=le(q({},"".concat(n,"-moving"),de));s.useEffect(function(){Z||ee(!0)},[Z]);var Oe=function(){se("close")},We=function(){me(iu+E,"zoomIn")},je=function(){me(iu/(iu+E),"zoomOut")},De=function(){oe({rotate:he+90},"rotateRight")},ke=function(){oe({rotate:he-90},"rotateLeft")},_e=function(){oe({flipX:!ne.flipX},"flipX")},Re=function(){oe({flipY:!ne.flipY},"flipY")},Le=function(){se("reset")},Me=function(Ge){var et=S+Ge;!Number.isInteger(et)||et<0||et>x-1||(ee(!1),se(Ge<0?"prev":"next"),V?.(et,S))},Be=function(Ge){!d||!W||(Ge.keyCode===lt.LEFT?Me(-1):Ge.keyCode===lt.RIGHT&&Me(1))},$e=function(Ge){d&&(Se!==1?oe({x:0,y:0,scale:1},"doubleClick"):me(iu+E,"doubleClick",Ge.clientX,Ge.clientY))};s.useEffect(function(){var Fe=ql(window,"keydown",Be,!1);return function(){Fe.remove()}},[d,W,S]);var we=Q.createElement(Zfe,xe({},j,{width:t.width,height:t.height,imgRef:B,className:"".concat(n,"-img"),alt:a,style:{transform:"translate3d(".concat(ne.x,"px, ").concat(ne.y,"px, 0) scale3d(").concat(ne.flipX?"-":"").concat(Se,", ").concat(ne.flipY?"-":"").concat(Se,", 1) rotate(").concat(he,"deg)"),transitionDuration:(!Z||pe)&&"0s"},fallback:i,src:r,onWheel:ie,onMouseDown:ae,onDoubleClick:$e,onTouchStart:be,onTouchMove:ve,onTouchEnd:Ce,onTouchCancel:Ce})),Ie=R({url:r,alt:a},o);return Q.createElement(Q.Fragment,null,Q.createElement(xE,xe({transitionName:D,maskTransitionName:_,closable:!1,keyboard:!0,prefixCls:n,onClose:u,visible:d,classNames:{wrapper:Ee},rootClassName:g,getContainer:b},H,{afterClose:Oe}),Q.createElement("div",{className:"".concat(n,"-img-wrapper")},F?F(we,R({transform:ne,image:Ie},K?{current:S}:{})):we)),Q.createElement(Vfe,{visible:d,transform:ne,maskTransitionName:_,closeIcon:h,getContainer:b,prefixCls:n,rootClassName:g,icons:m,countRender:w,showSwitch:W,showProgress:G,current:S,count:x,scale:Se,minScale:M,maxScale:T,toolbarRender:k,onActive:Me,onZoomIn:We,onZoomOut:je,onRotateRight:De,onRotateLeft:ke,onFlipX:_e,onFlipY:Re,onClose:u,onReset:Le,zIndex:H.zIndex!==void 0?H.zIndex+1:void 0,image:Ie}))},qw=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function Jfe(e){var t=s.useState({}),n=fe(t,2),r=n[0],a=n[1],o=s.useCallback(function(l,c){return a(function(u){return R(R({},u),{},q({},l,c))}),function(){a(function(u){var d=R({},u);return delete d[l],d})}},[]),i=s.useMemo(function(){return e?e.map(function(l){if(typeof l=="string")return{data:{src:l}};var c={};return Object.keys(l).forEach(function(u){["src"].concat(Te(qw)).includes(u)&&(c[u]=l[u])}),{data:c}}):Object.keys(r).reduce(function(l,c){var u=r[c],d=u.canPreview,f=u.data;return d&&l.push({data:f,id:c}),l},[])},[e,r]);return[i,o,!!e]}var eve=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],tve=["src"],nve=function(t){var n,r=t.previewPrefixCls,a=r===void 0?"rc-image-preview":r,o=t.children,i=t.icons,l=i===void 0?{}:i,c=t.items,u=t.preview,d=t.fallback,f=st(u)==="object"?u:{},m=f.visible,g=f.onVisibleChange,h=f.getContainer,b=f.current,p=f.movable,S=f.minScale,C=f.maxScale,x=f.countRender,w=f.closeIcon,$=f.onChange,E=f.onTransform,P=f.toolbarRender,M=f.imageRender,O=Ue(f,eve),T=Jfe(c),N=fe(T,3),D=N[0],L=N[1],_=N[2],F=Tt(0,{value:b}),j=fe(F,2),k=j[0],z=j[1],V=s.useState(!1),H=fe(V,2),B=H[0],K=H[1],W=((n=D[k])===null||n===void 0?void 0:n.data)||{},G=W.src,X=Ue(W,tve),Y=Tt(!!m,{value:m,onChange:function(pe,be){g?.(pe,be,k)}}),Z=fe(Y,2),ee=Z[0],re=Z[1],ne=s.useState(null),se=fe(ne,2),oe=se[0],me=se[1],ue=s.useCallback(function(ge,pe,be,ve){var Ce=_?D.findIndex(function(he){return he.data.src===pe}):D.findIndex(function(he){return he.id===ge});z(Ce<0?0:Ce),re(!0),me({x:be,y:ve}),K(!0)},[D,_]);s.useEffect(function(){ee?B||z(0):K(!1)},[ee]);var de=function(pe,be){z(pe),$?.(pe,be)},ae=function(){re(!1),me(null)},ie=s.useMemo(function(){return{register:L,onPreview:ue}},[L,ue]);return s.createElement(Iv.Provider,{value:ie},o,s.createElement(wz,xe({"aria-hidden":!ee,movable:p,visible:ee,prefixCls:a,closeIcon:w,onClose:ae,mousePosition:oe,imgCommonProps:X,src:G,fallback:d,icons:l,minScale:S,maxScale:C,getContainer:h,current:k,count:D.length,countRender:x,onTransform:E,toolbarRender:P,imageRender:M,onChange:de},O)))},EI=0;function rve(e,t){var n=s.useState(function(){return EI+=1,String(EI)}),r=fe(n,1),a=r[0],o=s.useContext(Iv),i={data:t,canPreview:e};return s.useEffect(function(){if(o)return o.register(a,i)},[]),s.useEffect(function(){o&&o.register(a,i)},[e,t]),a}var ave=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],ove=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],C4=function(t){var n=t.src,r=t.alt,a=t.onPreviewClose,o=t.prefixCls,i=o===void 0?"rc-image":o,l=t.previewPrefixCls,c=l===void 0?"".concat(i,"-preview"):l,u=t.placeholder,d=t.fallback,f=t.width,m=t.height,g=t.style,h=t.preview,b=h===void 0?!0:h,p=t.className,S=t.onClick,C=t.onError,x=t.wrapperClassName,w=t.wrapperStyle,$=t.rootClassName,E=Ue(t,ave),P=u&&u!==!0,M=st(b)==="object"?b:{},O=M.src,T=M.visible,N=T===void 0?void 0:T,D=M.onVisibleChange,L=D===void 0?a:D,_=M.getContainer,F=_===void 0?void 0:_,j=M.mask,k=M.maskClassName,z=M.movable,V=M.icons,H=M.scaleStep,B=M.minScale,K=M.maxScale,W=M.imageRender,G=M.toolbarRender,X=Ue(M,ove),Y=O??n,Z=Tt(!!N,{value:N,onChange:L}),ee=fe(Z,2),re=ee[0],ne=ee[1],se=xz({src:n,isCustomPlaceholder:P,fallback:d}),oe=fe(se,3),me=oe[0],ue=oe[1],de=oe[2],ae=s.useState(null),ie=fe(ae,2),ge=ie[0],pe=ie[1],be=s.useContext(Iv),ve=!!b,Ce=function(){ne(!1),pe(null)},he=le(i,x,$,q({},"".concat(i,"-error"),de==="error")),Se=s.useMemo(function(){var je={};return qw.forEach(function(De){t[De]!==void 0&&(je[De]=t[De])}),je},qw.map(function(je){return t[je]})),Ee=s.useMemo(function(){return R(R({},Se),{},{src:Y})},[Y,Se]),Oe=rve(ve,Ee),We=function(De){var ke=Hfe(De.target),_e=ke.left,Re=ke.top;be?be.onPreview(Oe,Y,_e,Re):(pe({x:_e,y:Re}),ne(!0)),S?.(De)};return s.createElement(s.Fragment,null,s.createElement("div",xe({},E,{className:he,onClick:ve?We:S,style:R({width:f,height:m},w)}),s.createElement("img",xe({},Se,{className:le("".concat(i,"-img"),q({},"".concat(i,"-img-placeholder"),u===!0),p),style:R({height:m},g),ref:me},ue,{width:f,height:m,onError:C})),de==="loading"&&s.createElement("div",{"aria-hidden":"true",className:"".concat(i,"-placeholder")},u),j&&ve&&s.createElement("div",{className:le("".concat(i,"-mask"),k),style:{display:g?.display==="none"?"none":void 0}},j)),!be&&ve&&s.createElement(wz,xe({"aria-hidden":!re,visible:re,prefixCls:c,onClose:Ce,mousePosition:ge,src:Y,alt:r,imageInfo:{width:f,height:m},fallback:d,getContainer:F,icons:V,movable:z,scaleStep:H,minScale:B,maxScale:K,rootClassName:$,imageRender:W,imgCommonProps:Se,toolbarRender:G},X)))};C4.PreviewGroup=nve;var ive={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},lve=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:ive}))},sve=s.forwardRef(lve),cve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},uve=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:cve}))},dve=s.forwardRef(uve),fve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},vve=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:fve}))},PI=s.forwardRef(vve),mve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},gve=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:mve}))},pve=s.forwardRef(gve),hve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},bve=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:hve}))},yve=s.forwardRef(bve);const Uw=e=>({position:e||"absolute",inset:0}),Cve=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:a,prefixCls:o,colorTextLightSolid:i}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:i,background:new dn("#000").setA(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${o}-mask-info`]:Object.assign(Object.assign({},ra),{padding:`0 ${ce(r)}`,[t]:{marginInlineEnd:a,svg:{verticalAlign:"baseline"}}})}},Sve=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:a,margin:o,paddingLG:i,previewOperationColorDisabled:l,previewOperationHoverColor:c,motionDurationSlow:u,iconCls:d,colorTextLightSolid:f}=e,m=new dn(n).setA(.1),g=m.clone().setA(.2);return{[`${t}-footer`]:{position:"fixed",bottom:a,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${t}-progress`]:{marginBottom:o},[`${t}-close`]:{position:"fixed",top:a,right:{_skip_check_:!0,value:a},display:"flex",color:f,backgroundColor:m.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${u}`,"&:hover":{backgroundColor:g.toRgbString()},[`& > ${d}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${ce(i)}`,backgroundColor:m.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${u}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${d}`]:{color:c},"&-disabled":{color:l,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${d}`]:{fontSize:e.previewOperationSize}}}}},xve=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:a,zIndexPopup:o,motionDurationSlow:i}=e,l=new dn(t).setA(.1),c=l.clone().setA(.2);return{[`${a}-switch-left, ${a}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(o).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:l.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${i}`,userSelect:"none","&:hover":{background:c.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${a}-switch-left`]:{insetInlineStart:e.marginSM},[`${a}-switch-right`]:{insetInlineEnd:e.marginSM}}},wve=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:a}=e;return[{[`${a}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},Uw()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},Uw()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${a}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${a}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[Sve(e),xve(e)]}]},$ve=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},Cve(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},Uw())}}},Eve=e=>{const{previewCls:t}=e;return{[`${t}-root`]:Wu(e,"zoom"),"&":wh(e,!0)}},Pve=e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new dn(e.colorTextLightSolid).setA(.65).toRgbString(),previewOperationHoverColor:new dn(e.colorTextLightSolid).setA(.85).toRgbString(),previewOperationColorDisabled:new dn(e.colorTextLightSolid).setA(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5}),$z=rn("Image",e=>{const t=`${e.componentCls}-preview`,n=Xt(e,{previewCls:t,modalMaskBg:new dn("#000").setA(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[$ve(n),wve(n),IF(Xt(n,{componentCls:t})),Eve(n)]},Pve);var Ove=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{previewPrefixCls:t,preview:n}=e,r=Ove(e,["previewPrefixCls","preview"]);const{getPrefixCls:a,direction:o}=s.useContext(Ot),i=a("image",t),l=`${i}-preview`,c=a(),u=zn(i),[d,f,m]=$z(i,u),[g]=Ua("ImagePreview",typeof n=="object"?n.zIndex:void 0),h=s.useMemo(()=>Object.assign(Object.assign({},Ez),{left:o==="rtl"?s.createElement(Na,null):s.createElement(oi,null),right:o==="rtl"?s.createElement(oi,null):s.createElement(Na,null)}),[o]),b=s.useMemo(()=>{var p;if(n===!1)return n;const S=typeof n=="object"?n:{},C=le(f,m,u,(p=S.rootClassName)!==null&&p!==void 0?p:"");return Object.assign(Object.assign({},S),{transitionName:aa(c,"zoom",S.transitionName),maskTransitionName:aa(c,"fade",S.maskTransitionName),rootClassName:C,zIndex:g})},[n,c,g,f,m,u]);return d(s.createElement(C4.PreviewGroup,Object.assign({preview:b,previewPrefixCls:l,icons:h},r)))};var OI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,preview:n,className:r,rootClassName:a,style:o,fallback:i}=e,l=OI(e,["prefixCls","preview","className","rootClassName","style","fallback"]),{getPrefixCls:c,getPopupContainer:u,className:d,style:f,preview:m,fallback:g}=Vn("image"),[h]=zr("Image"),b=c("image",t),p=c(),S=zn(b),[C,x,w]=$z(b,S),$=le(a,x,w,S),E=le(r,x,d),[P]=Ua("ImagePreview",typeof n=="object"?n.zIndex:void 0),M=s.useMemo(()=>{if(n===!1)return n;const N=typeof n=="object"?n:{},{getContainer:D,closeIcon:L,rootClassName:_,destroyOnClose:F,destroyOnHidden:j}=N,k=OI(N,["getContainer","closeIcon","rootClassName","destroyOnClose","destroyOnHidden"]);return Object.assign(Object.assign({mask:s.createElement("div",{className:`${b}-mask-info`},s.createElement(i0,null),h?.preview),icons:Ez},k),{destroyOnClose:j??F,rootClassName:le($,_),getContainer:D??u,transitionName:aa(p,"zoom",N.transitionName),maskTransitionName:aa(p,"fade",N.maskTransitionName),zIndex:P,closeIcon:L??m?.closeIcon})},[n,h,m?.closeIcon]),O=Object.assign(Object.assign({},f),o),T=i??g;return C(s.createElement(C4,Object.assign({prefixCls:b,preview:M,rootClassName:$,className:E,style:O,fallback:T},l)))};Pz.PreviewGroup=Rve;const Ive=e=>{const{getPrefixCls:t,direction:n}=s.useContext(Ot),{prefixCls:r,className:a}=e,o=t("input-group",r),i=t("input"),[l,c,u]=YL(i),d=le(o,u,{[`${o}-lg`]:e.size==="large",[`${o}-sm`]:e.size==="small",[`${o}-compact`]:e.compact,[`${o}-rtl`]:n==="rtl"},c,a),f=s.useContext(Or),m=s.useMemo(()=>Object.assign(Object.assign({},f),{isFormItemInput:!1}),[f]);return l(s.createElement("span",{className:d,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},s.createElement(Or.Provider,{value:m},e.children)))},Mve=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:e.colorText},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},Tve=rn(["Input","OTP"],e=>{const t=Xt(e,rc(e));return Mve(t)},ac);var Nve=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{className:n,value:r,onChange:a,onActiveChange:o,index:i,mask:l}=e,c=Nve(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:u}=s.useContext(Ot),d=u("otp"),f=typeof l=="string"?l:r,m=s.useRef(null);s.useImperativeHandle(t,()=>m.current);const g=p=>{a(i,p.target.value)},h=()=>{ln(()=>{var p;const S=(p=m.current)===null||p===void 0?void 0:p.input;document.activeElement===S&&S&&S.select()})},b=p=>{const{key:S,ctrlKey:C,metaKey:x}=p;S==="ArrowLeft"?o(i-1):S==="ArrowRight"?o(i+1):S==="z"&&(C||x)?p.preventDefault():S==="Backspace"&&!r&&o(i-1),h()};return s.createElement("span",{className:`${d}-input-wrapper`,role:"presentation"},l&&r!==""&&r!==void 0&&s.createElement("span",{className:`${d}-mask-icon`,"aria-hidden":"true"},f),s.createElement(oc,Object.assign({"aria-label":`OTP Input ${i+1}`,type:l===!0?"password":"text"},c,{ref:m,value:r,onInput:g,onFocus:h,onKeyDown:b,onMouseDown:h,onMouseUp:h,className:le(n,{[`${d}-mask-input`]:l})})))});var jve=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{index:t,prefixCls:n,separator:r}=e,a=typeof r=="function"?r(t):r;return a?s.createElement("span",{className:`${n}-separator`},a):null},Fve=s.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:a,defaultValue:o,value:i,onChange:l,formatter:c,separator:u,variant:d,disabled:f,status:m,autoFocus:g,mask:h,type:b,onInput:p,inputMode:S}=e,C=jve(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:x,direction:w}=s.useContext(Ot),$=x("otp",n),E=Qn(C,{aria:!0,data:!0,attr:!0}),[P,M,O]=Tve($),T=ar(G=>a??G),N=s.useContext(Or),D=ji(N.status,m),L=s.useMemo(()=>Object.assign(Object.assign({},N),{status:D,hasFeedback:!1,feedbackIcon:null}),[N,D]),_=s.useRef(null),F=s.useRef({});s.useImperativeHandle(t,()=>({focus:()=>{var G;(G=F.current[0])===null||G===void 0||G.focus()},blur:()=>{var G;for(let X=0;Xc?c(G):G,[k,z]=s.useState(()=>bg(j(o||"")));s.useEffect(()=>{i!==void 0&&z(bg(i))},[i]);const V=Gt(G=>{z(G),p&&p(G),l&&G.length===r&&G.every(X=>X)&&G.some((X,Y)=>k[Y]!==X)&&l(G.join(""))}),H=Gt((G,X)=>{let Y=Te(k);for(let ee=0;ee=0&&!Y[ee];ee-=1)Y.pop();const Z=j(Y.map(ee=>ee||" ").join(""));return Y=bg(Z).map((ee,re)=>ee===" "&&!Y[re]?Y[re]:ee),Y}),B=(G,X)=>{var Y;const Z=H(G,X),ee=Math.min(G+X.length,r-1);ee!==G&&Z[G]!==void 0&&((Y=F.current[ee])===null||Y===void 0||Y.focus()),V(Z)},K=G=>{var X;(X=F.current[G])===null||X===void 0||X.focus()},W={variant:d,disabled:f,status:D,mask:h,type:b,inputMode:S};return P(s.createElement("div",Object.assign({},E,{ref:_,className:le($,{[`${$}-sm`]:T==="small",[`${$}-lg`]:T==="large",[`${$}-rtl`]:w==="rtl"},O,M),role:"group"}),s.createElement(Or.Provider,{value:L},Array.from({length:r}).map((G,X)=>{const Y=`otp-${X}`,Z=k[X]||"";return s.createElement(s.Fragment,{key:Y},s.createElement(_ve,Object.assign({ref:ee=>{F.current[X]=ee},index:X,size:T,htmlSize:1,className:`${$}-input`,onChange:B,value:Z,onActiveChange:K,autoFocus:X===0&&g},W)),Xe?s.createElement(i0,null):s.createElement(Oz,null),Bve={click:"onClick",hover:"onMouseOver"},Hve=s.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:a=!0,iconRender:o=Ave,suffix:i}=e,l=s.useContext(Sr),c=n??l,u=typeof a=="object"&&a.visible!==void 0,[d,f]=s.useState(()=>u?a.visible:!1),m=s.useRef(null);s.useEffect(()=>{u&&f(a.visible)},[u,a]);const g=H9(m),h=()=>{var N;if(c)return;d&&g();const D=!d;f(D),typeof a=="object"&&((N=a.onVisibleChange)===null||N===void 0||N.call(a,D))},b=N=>{const D=Bve[r]||"",L=o(d),_={[D]:h,className:`${N}-icon`,key:"passwordIcon",onMouseDown:F=>{F.preventDefault()},onMouseUp:F=>{F.preventDefault()}};return s.cloneElement(s.isValidElement(L)?L:s.createElement("span",null,L),_)},{className:p,prefixCls:S,inputPrefixCls:C,size:x}=e,w=zve(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:$}=s.useContext(Ot),E=$("input",C),P=$("input-password",S),M=a&&b(P),O=le(P,p,{[`${P}-${x}`]:!!x}),T=Object.assign(Object.assign({},Qt(w,["suffix","iconRender","visibilityToggle"])),{type:d?"text":"password",className:O,prefixCls:E,suffix:s.createElement(s.Fragment,null,M,i)});return x&&(T.size=x),s.createElement(oc,Object.assign({ref:wr(t,m)},T))});var Vve=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,inputPrefixCls:r,className:a,size:o,suffix:i,enterButton:l=!1,addonAfter:c,loading:u,disabled:d,onSearch:f,onChange:m,onCompositionStart:g,onCompositionEnd:h,variant:b,onPressEnter:p}=e,S=Vve(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:C,direction:x}=s.useContext(Ot),w=s.useRef(!1),$=C("input-search",n),E=C("input",r),{compactSize:P}=mo($,x),M=ar(W=>{var G;return(G=o??P)!==null&&G!==void 0?G:W}),O=s.useRef(null),T=W=>{W?.target&&W.type==="click"&&f&&f(W.target.value,W,{source:"clear"}),m?.(W)},N=W=>{var G;document.activeElement===((G=O.current)===null||G===void 0?void 0:G.input)&&W.preventDefault()},D=W=>{var G,X;f&&f((X=(G=O.current)===null||G===void 0?void 0:G.input)===null||X===void 0?void 0:X.value,W,{source:"input"})},L=W=>{w.current||u||(p?.(W),D(W))},_=typeof l=="boolean"?s.createElement(Sv,null):null,F=`${$}-button`;let j;const k=l||{},z=k.type&&k.type.__ANT_BUTTON===!0;z||k.type==="button"?j=xr(k,Object.assign({onMouseDown:N,onClick:W=>{var G,X;(X=(G=k?.props)===null||G===void 0?void 0:G.onClick)===null||X===void 0||X.call(G,W),D(W)},key:"enterButton"},z?{className:F,size:M}:{})):j=s.createElement(cr,{className:F,color:l?"primary":"default",size:M,disabled:d,key:"enterButton",onMouseDown:N,onClick:D,loading:u,icon:_,variant:b==="borderless"||b==="filled"||b==="underlined"?"text":l?"solid":void 0},l),c&&(j=[j,xr(c,{key:"addonAfter"})]);const V=le($,{[`${$}-rtl`]:x==="rtl",[`${$}-${M}`]:!!M,[`${$}-with-button`]:!!l},a),H=W=>{w.current=!0,g?.(W)},B=W=>{w.current=!1,h?.(W)},K=Object.assign(Object.assign({},S),{className:V,prefixCls:E,type:"search",size:M,variant:b,onPressEnter:L,onCompositionStart:H,onCompositionEnd:B,addonAfter:j,suffix:i,onChange:T,disabled:d,_skipAddonWarning:!0});return s.createElement(oc,Object.assign({ref:wr(O,t)},K))});var Kve=` - min-height:0 !important; - max-height:none !important; - height:0 !important; - visibility:hidden !important; - overflow:hidden !important; - position:absolute !important; - z-index:-1000 !important; - top:0 !important; - right:0 !important; - pointer-events: none !important; -`,qve=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],p1={},no;function Uve(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&p1[n])return p1[n];var r=window.getComputedStyle(e),a=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),o=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l=qve.map(function(u){return"".concat(u,":").concat(r.getPropertyValue(u))}).join(";"),c={sizingStyle:l,paddingSize:o,borderSize:i,boxSizing:a};return t&&n&&(p1[n]=c),c}function Gve(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;no||(no=document.createElement("textarea"),no.setAttribute("tab-index","-1"),no.setAttribute("aria-hidden","true"),no.setAttribute("name","hiddenTextarea"),document.body.appendChild(no)),e.getAttribute("wrap")?no.setAttribute("wrap",e.getAttribute("wrap")):no.removeAttribute("wrap");var a=Uve(e,t),o=a.paddingSize,i=a.borderSize,l=a.boxSizing,c=a.sizingStyle;no.setAttribute("style","".concat(c,";").concat(Kve)),no.value=e.value||e.placeholder||"";var u=void 0,d=void 0,f,m=no.scrollHeight;if(l==="border-box"?m+=i:l==="content-box"&&(m-=o),n!==null||r!==null){no.value=" ";var g=no.scrollHeight-o;n!==null&&(u=g*n,l==="border-box"&&(u=u+o+i),m=Math.max(u,m)),r!==null&&(d=g*r,l==="border-box"&&(d=d+o+i),f=m>d?"":"hidden",m=Math.min(d,m))}var h={height:m,overflowY:f,resize:"none"};return u&&(h.minHeight=u),d&&(h.maxHeight=d),h}var Xve=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],h1=0,b1=1,y1=2,Yve=s.forwardRef(function(e,t){var n=e,r=n.prefixCls,a=n.defaultValue,o=n.value,i=n.autoSize,l=n.onResize,c=n.className,u=n.style,d=n.disabled,f=n.onChange;n.onInternalAutoSize;var m=Ue(n,Xve),g=Tt(a,{value:o,postState:function(W){return W??""}}),h=fe(g,2),b=h[0],p=h[1],S=function(W){p(W.target.value),f?.(W)},C=s.useRef();s.useImperativeHandle(t,function(){return{textArea:C.current}});var x=s.useMemo(function(){return i&&st(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),w=fe(x,2),$=w[0],E=w[1],P=!!i,M=s.useState(y1),O=fe(M,2),T=O[0],N=O[1],D=s.useState(),L=fe(D,2),_=L[0],F=L[1],j=function(){N(h1)};un(function(){P&&j()},[o,$,E,P]),un(function(){if(T===h1)N(b1);else if(T===b1){var K=Gve(C.current,!1,$,E);N(y1),F(K)}},[T]);var k=s.useRef(),z=function(){ln.cancel(k.current)},V=function(W){T===y1&&(l?.(W),i&&(z(),k.current=ln(function(){j()})))};s.useEffect(function(){return z},[]);var H=P?_:null,B=R(R({},u),H);return(T===h1||T===b1)&&(B.overflowY="hidden",B.overflowX="hidden"),s.createElement(Vr,{onResize:V,disabled:!(i||l)},s.createElement("textarea",xe({},m,{ref:C,style:B,className:le(r,c,q({},"".concat(r,"-disabled"),d)),disabled:d,value:b,onChange:S})))}),Qve=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],Zve=Q.forwardRef(function(e,t){var n,r=e.defaultValue,a=e.value,o=e.onFocus,i=e.onBlur,l=e.onChange,c=e.allowClear,u=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,m=e.suffix,g=e.prefixCls,h=g===void 0?"rc-textarea":g,b=e.showCount,p=e.count,S=e.className,C=e.style,x=e.disabled,w=e.hidden,$=e.classNames,E=e.styles,P=e.onResize,M=e.onClear,O=e.onPressEnter,T=e.readOnly,N=e.autoSize,D=e.onKeyDown,L=Ue(e,Qve),_=Tt(r,{value:a,defaultValue:r}),F=fe(_,2),j=F[0],k=F[1],z=j==null?"":String(j),V=Q.useState(!1),H=fe(V,2),B=H[0],K=H[1],W=Q.useRef(!1),G=Q.useState(null),X=fe(G,2),Y=X[0],Z=X[1],ee=s.useRef(null),re=s.useRef(null),ne=function(){var Me;return(Me=re.current)===null||Me===void 0?void 0:Me.textArea},se=function(){ne().focus()};s.useImperativeHandle(t,function(){var Le;return{resizableTextArea:re.current,focus:se,blur:function(){ne().blur()},nativeElement:((Le=ee.current)===null||Le===void 0?void 0:Le.nativeElement)||ne()}}),s.useEffect(function(){K(function(Le){return!x&&Le})},[x]);var oe=Q.useState(null),me=fe(oe,2),ue=me[0],de=me[1];Q.useEffect(function(){if(ue){var Le;(Le=ne()).setSelectionRange.apply(Le,Te(ue))}},[ue]);var ae=z9(p,b),ie=(n=ae.max)!==null&&n!==void 0?n:u,ge=Number(ie)>0,pe=ae.strategy(z),be=!!ie&&pe>ie,ve=function(Me,Be){var $e=Be;!W.current&&ae.exceedFormatter&&ae.max&&ae.strategy(Be)>ae.max&&($e=ae.exceedFormatter(Be,{max:ae.max}),Be!==$e&&de([ne().selectionStart||0,ne().selectionEnd||0])),k($e),jp(Me.currentTarget,Me,l,$e)},Ce=function(Me){W.current=!0,d?.(Me)},he=function(Me){W.current=!1,ve(Me,Me.currentTarget.value),f?.(Me)},Se=function(Me){ve(Me,Me.target.value)},Ee=function(Me){Me.key==="Enter"&&O&&O(Me),D?.(Me)},Oe=function(Me){K(!0),o?.(Me)},We=function(Me){K(!1),i?.(Me)},je=function(Me){k(""),se(),jp(ne(),Me,l)},De=m,ke;ae.show&&(ae.showFormatter?ke=ae.showFormatter({value:z,count:pe,maxLength:ie}):ke="".concat(pe).concat(ge?" / ".concat(ie):""),De=Q.createElement(Q.Fragment,null,De,Q.createElement("span",{className:le("".concat(h,"-data-count"),$?.count),style:E?.count},ke)));var _e=function(Me){var Be;P?.(Me),(Be=ne())!==null&&Be!==void 0&&Be.style.height&&Z(!0)},Re=!N&&!b&&!c;return Q.createElement(v4,{ref:ee,value:z,allowClear:c,handleReset:je,suffix:De,prefixCls:h,classNames:R(R({},$),{},{affixWrapper:le($?.affixWrapper,q(q({},"".concat(h,"-show-count"),b),"".concat(h,"-textarea-allow-clear"),c))}),disabled:x,focused:B,className:le(S,be&&"".concat(h,"-out-of-range")),style:R(R({},C),Y&&!Re?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof ke=="string"?ke:void 0}},hidden:w,readOnly:T,onClear:M},Q.createElement(Yve,xe({},L,{autoSize:N,maxLength:u,onKeyDown:Ee,onChange:Se,onFocus:Oe,onBlur:We,onCompositionStart:Ce,onCompositionEnd:he,className:le($?.textarea),style:R(R({},E?.textarea),{},{resize:C?.resize}),disabled:x,prefixCls:h,onResize:_e,ref:re,readOnly:T})))});const Jve=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[r]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[` - &-allow-clear > ${t}, - &-affix-wrapper${r}-has-feedback ${t} - `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},eme=rn(["Input","TextArea"],e=>{const t=Xt(e,rc(e));return Jve(t)},ac,{resetFont:!1});var tme=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const{prefixCls:r,bordered:a=!0,size:o,disabled:i,status:l,allowClear:c,classNames:u,rootClassName:d,className:f,style:m,styles:g,variant:h,showCount:b,onMouseDown:p,onResize:S}=e,C=tme(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:x,direction:w,allowClear:$,autoComplete:E,className:P,style:M,classNames:O,styles:T}=Vn("textArea"),N=s.useContext(Sr),D=i??N,{status:L,hasFeedback:_,feedbackIcon:F}=s.useContext(Or),j=ji(L,l),k=s.useRef(null);s.useImperativeHandle(t,()=>{var ae;return{resizableTextArea:(ae=k.current)===null||ae===void 0?void 0:ae.resizableTextArea,focus:ie=>{var ge,pe;f4((pe=(ge=k.current)===null||ge===void 0?void 0:ge.resizableTextArea)===null||pe===void 0?void 0:pe.textArea,ie)},blur:()=>{var ie;return(ie=k.current)===null||ie===void 0?void 0:ie.blur()}}});const z=x("input",r),V=zn(z),[H,B,K]=XL(z,d),[W]=eme(z,V),{compactSize:G,compactItemClassnames:X}=mo(z,w),Y=ar(ae=>{var ie;return(ie=o??G)!==null&&ie!==void 0?ie:ae}),[Z,ee]=Di("textArea",h,a),re=B9(c??$),[ne,se]=s.useState(!1),[oe,me]=s.useState(!1),ue=ae=>{se(!0),p?.(ae);const ie=()=>{se(!1),document.removeEventListener("mouseup",ie)};document.addEventListener("mouseup",ie)},de=ae=>{var ie,ge;if(S?.(ae),ne&&typeof getComputedStyle=="function"){const pe=(ge=(ie=k.current)===null||ie===void 0?void 0:ie.nativeElement)===null||ge===void 0?void 0:ge.querySelector("textarea");pe&&getComputedStyle(pe).resize==="both"&&me(!0)}};return H(W(s.createElement(Zve,Object.assign({autoComplete:E},C,{style:Object.assign(Object.assign({},M),m),styles:Object.assign(Object.assign({},T),g),disabled:D,allowClear:re,className:le(K,V,f,d,X,P,oe&&`${z}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},u),O),{textarea:le({[`${z}-sm`]:Y==="small",[`${z}-lg`]:Y==="large"},B,u?.textarea,O.textarea,ne&&`${z}-mouse-active`),variant:le({[`${z}-${Z}`]:ee},Fo(z,j)),affixWrapper:le(`${z}-textarea-affix-wrapper`,{[`${z}-affix-wrapper-rtl`]:w==="rtl",[`${z}-affix-wrapper-sm`]:Y==="small",[`${z}-affix-wrapper-lg`]:Y==="large",[`${z}-textarea-show-count`]:b||((n=e.count)===null||n===void 0?void 0:n.show)},B)}),prefixCls:z,suffix:_&&s.createElement("span",{className:`${z}-textarea-suffix`},F),showCount:b,ref:k,onResize:de,onMouseDown:ue}))))}),$a=oc;$a.Group=Ive;$a.Search=Wve;$a.TextArea=Rz;$a.Password=Hve;$a.OTP=Fve;function nme(e,t,n){return typeof n=="boolean"?n:e.length?!0:Xn(t).some(a=>a.type===Kk)}var Iz=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);as.forwardRef((o,i)=>s.createElement(r,Object.assign({ref:i,suffixCls:e,tagName:t},o)))}const S4=s.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:a,tagName:o}=e,i=Iz(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:l}=s.useContext(Ot),c=l("layout",n),[u,d,f]=Wk(c),m=r?`${c}-${r}`:c;return u(s.createElement(o,Object.assign({className:le(n||m,a,d,f),ref:t},i)))}),rme=s.forwardRef((e,t)=>{const{direction:n}=s.useContext(Ot),[r,a]=s.useState([]),{prefixCls:o,className:i,rootClassName:l,children:c,hasSider:u,tagName:d,style:f}=e,m=Iz(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),g=Qt(m,["suffixCls"]),{getPrefixCls:h,className:b,style:p}=Vn("layout"),S=h("layout",o),C=nme(r,c,u),[x,w,$]=Wk(S),E=le(S,{[`${S}-has-sider`]:C,[`${S}-rtl`]:n==="rtl"},b,i,l,w,$),P=s.useMemo(()=>({siderHook:{addSider:M=>{a(O=>[].concat(Te(O),[M]))},removeSider:M=>{a(O=>O.filter(T=>T!==M))}}}),[]);return x(s.createElement(Bk.Provider,{value:P},s.createElement(d,Object.assign({ref:t,className:E,style:Object.assign(Object.assign({},p),f)},g),c)))}),ame=l0({tagName:"div",displayName:"Layout"})(rme),ome=l0({suffixCls:"header",tagName:"header",displayName:"Header"})(S4),ime=l0({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(S4),lme=l0({suffixCls:"content",tagName:"main",displayName:"Content"})(S4),Mv=ame;Mv.Header=ome;Mv.Footer=ime;Mv.Content=lme;Mv.Sider=Kk;Mv._InternalSiderContext=Kh;var sme={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},cme=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:sme}))},RI=s.forwardRef(cme),ume={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},dme=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:ume}))},II=s.forwardRef(dme),Mz={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},fme=[10,20,50,100],vme=function(t){var n=t.pageSizeOptions,r=n===void 0?fme:n,a=t.locale,o=t.changeSize,i=t.pageSize,l=t.goButton,c=t.quickGo,u=t.rootPrefixCls,d=t.disabled,f=t.buildOptionText,m=t.showSizeChanger,g=t.sizeChangerRender,h=Q.useState(""),b=fe(h,2),p=b[0],S=b[1],C=function(){return!p||Number.isNaN(p)?void 0:Number(p)},x=typeof f=="function"?f:function(D){return"".concat(D," ").concat(a.items_per_page)},w=function(L){S(L.target.value)},$=function(L){l||p===""||(S(""),!(L.relatedTarget&&(L.relatedTarget.className.indexOf("".concat(u,"-item-link"))>=0||L.relatedTarget.className.indexOf("".concat(u,"-item"))>=0))&&c?.(C()))},E=function(L){p!==""&&(L.keyCode===lt.ENTER||L.type==="click")&&(S(""),c?.(C()))},P=function(){return r.some(function(L){return L.toString()===i.toString()})?r:r.concat([i]).sort(function(L,_){var F=Number.isNaN(Number(L))?0:Number(L),j=Number.isNaN(Number(_))?0:Number(_);return F-j})},M="".concat(u,"-options");if(!m&&!c)return null;var O=null,T=null,N=null;return m&&g&&(O=g({disabled:d,size:i,onSizeChange:function(L){o?.(Number(L))},"aria-label":a.page_size,className:"".concat(M,"-size-changer"),options:P().map(function(D){return{label:x(D),value:D}})})),c&&(l&&(N=typeof l=="boolean"?Q.createElement("button",{type:"button",onClick:E,onKeyUp:E,disabled:d,className:"".concat(M,"-quick-jumper-button")},a.jump_to_confirm):Q.createElement("span",{onClick:E,onKeyUp:E},l)),T=Q.createElement("div",{className:"".concat(M,"-quick-jumper")},a.jump_to,Q.createElement("input",{disabled:d,type:"text",value:p,onChange:w,onKeyUp:E,onBlur:$,"aria-label":a.page}),a.page,N)),Q.createElement("li",{className:M},O,T)},Zd=function(t){var n=t.rootPrefixCls,r=t.page,a=t.active,o=t.className,i=t.showTitle,l=t.onClick,c=t.onKeyPress,u=t.itemRender,d="".concat(n,"-item"),f=le(d,"".concat(d,"-").concat(r),q(q({},"".concat(d,"-active"),a),"".concat(d,"-disabled"),!r),o),m=function(){l(r)},g=function(p){c(p,l,r)},h=u(r,"page",Q.createElement("a",{rel:"nofollow"},r));return h?Q.createElement("li",{title:i?String(r):null,className:f,onClick:m,onKeyDown:g,tabIndex:0},h):null},mme=function(t,n,r){return r};function MI(){}function TI(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Ps(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var gme=function(t){var n=t.prefixCls,r=n===void 0?"rc-pagination":n,a=t.selectPrefixCls,o=a===void 0?"rc-select":a,i=t.className,l=t.current,c=t.defaultCurrent,u=c===void 0?1:c,d=t.total,f=d===void 0?0:d,m=t.pageSize,g=t.defaultPageSize,h=g===void 0?10:g,b=t.onChange,p=b===void 0?MI:b,S=t.hideOnSinglePage,C=t.align,x=t.showPrevNextJumpers,w=x===void 0?!0:x,$=t.showQuickJumper,E=t.showLessItems,P=t.showTitle,M=P===void 0?!0:P,O=t.onShowSizeChange,T=O===void 0?MI:O,N=t.locale,D=N===void 0?Mz:N,L=t.style,_=t.totalBoundaryShowSizeChanger,F=_===void 0?50:_,j=t.disabled,k=t.simple,z=t.showTotal,V=t.showSizeChanger,H=V===void 0?f>F:V,B=t.sizeChangerRender,K=t.pageSizeOptions,W=t.itemRender,G=W===void 0?mme:W,X=t.jumpPrevIcon,Y=t.jumpNextIcon,Z=t.prevIcon,ee=t.nextIcon,re=Q.useRef(null),ne=Tt(10,{value:m,defaultValue:h}),se=fe(ne,2),oe=se[0],me=se[1],ue=Tt(1,{value:l,defaultValue:u,postState:function(Mt){return Math.max(1,Math.min(Mt,Ps(void 0,oe,f)))}}),de=fe(ue,2),ae=de[0],ie=de[1],ge=Q.useState(ae),pe=fe(ge,2),be=pe[0],ve=pe[1];s.useEffect(function(){ve(ae)},[ae]);var Ce=Math.max(1,ae-(E?3:5)),he=Math.min(Ps(void 0,oe,f),ae+(E?3:5));function Se(St,Mt){var Ht=St||Q.createElement("button",{type:"button","aria-label":Mt,className:"".concat(r,"-item-link")});return typeof St=="function"&&(Ht=Q.createElement(St,R({},t))),Ht}function Ee(St){var Mt=St.target.value,Ht=Ps(void 0,oe,f),vn;return Mt===""?vn=Mt:Number.isNaN(Number(Mt))?vn=be:Mt>=Ht?vn=Ht:vn=Number(Mt),vn}function Oe(St){return TI(St)&&St!==ae&&TI(f)&&f>0}var We=f>oe?$:!1;function je(St){(St.keyCode===lt.UP||St.keyCode===lt.DOWN)&&St.preventDefault()}function De(St){var Mt=Ee(St);switch(Mt!==be&&ve(Mt),St.keyCode){case lt.ENTER:Re(Mt);break;case lt.UP:Re(Mt-1);break;case lt.DOWN:Re(Mt+1);break}}function ke(St){Re(Ee(St))}function _e(St){var Mt=Ps(St,oe,f),Ht=ae>Mt&&Mt!==0?Mt:ae;me(St),ve(Ht),T?.(ae,St),ie(Ht),p?.(Ht,St)}function Re(St){if(Oe(St)&&!j){var Mt=Ps(void 0,oe,f),Ht=St;return St>Mt?Ht=Mt:St<1&&(Ht=1),Ht!==be&&ve(Ht),ie(Ht),p?.(Ht,oe),Ht}return ae}var Le=ae>1,Me=ae2?Ht-2:0),En=2;Enf?f:ae*oe])),vt=null,bt=Ps(void 0,oe,f);if(S&&f<=oe)return null;var ze=[],Ve={rootPrefixCls:r,onClick:Re,onKeyPress:Fe,showTitle:M,itemRender:G,page:-1},Pe=ae-1>0?ae-1:0,He=ae+1=mt*2&&ae!==3&&(ze[0]=Q.cloneElement(ze[0],{className:le("".concat(r,"-item-after-jump-prev"),ze[0].props.className)}),ze.unshift(Ct)),bt-ae>=mt*2&&ae!==bt-2){var Et=ze[ze.length-1];ze[ze.length-1]=Q.cloneElement(Et,{className:le("".concat(r,"-item-before-jump-next"),Et.props.className)}),ze.push(vt)}It!==1&&ze.unshift(Q.createElement(Zd,xe({},Ve,{key:1,page:1}))),Wt!==bt&&ze.push(Q.createElement(Zd,xe({},Ve,{key:bt,page:bt})))}var gt=tt(Pe);if(gt){var Xe=!Le||!bt;gt=Q.createElement("li",{title:M?D.prev_page:null,onClick:Be,tabIndex:Xe?null:0,onKeyDown:Ge,className:le("".concat(r,"-prev"),q({},"".concat(r,"-disabled"),Xe)),"aria-disabled":Xe},gt)}var it=rt(He);if(it){var ft,_t;k?(ft=!Me,_t=Le?0:null):(ft=!Me||!bt,_t=ft?null:0),it=Q.createElement("li",{title:M?D.next_page:null,onClick:$e,tabIndex:_t,onKeyDown:et,className:le("".concat(r,"-next"),q({},"".concat(r,"-disabled"),ft)),"aria-disabled":ft},it)}var Yt=le(r,i,q(q(q(q(q({},"".concat(r,"-start"),C==="start"),"".concat(r,"-center"),C==="center"),"".concat(r,"-end"),C==="end"),"".concat(r,"-simple"),k),"".concat(r,"-disabled"),j));return Q.createElement("ul",xe({className:Yt,style:L,ref:re},yt),dt,gt,k?pt:ze,it,Q.createElement(vme,{locale:D,rootPrefixCls:r,disabled:j,selectPrefixCls:o,changeSize:_e,pageSize:oe,pageSizeOptions:K,quickGo:We?Re:null,goButton:Nt,showSizeChanger:H,sizeChangerRender:B}))};const pme=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}}}},hme=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:ce(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:ce(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:ce(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[` - &${t}-mini ${t}-prev ${t}-item-link, - &${t}-mini ${t}-next ${t}-item-link - `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:ce(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:ce(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:ce(e.itemSizeSM),input:Object.assign(Object.assign({},l4(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},bme=e=>{const{componentCls:t}=e;return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSize,lineHeight:ce(e.itemSize),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSize,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSize,lineHeight:ce(e.itemSize)}}},[`${t}-simple-pager`]:{display:"inline-flex",alignItems:"center",height:e.itemSize,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",width:e.quickJumperInputWidth,padding:`0 ${ce(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${ce(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${ce(e.inputOutlineOffset)} 0 ${ce(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}},[`&${t}-disabled`]:{[`${t}-prev, ${t}-next`]:{[`${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}},[`&${t}-mini`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSizeSM,lineHeight:ce(e.itemSizeSM),[`${t}-item-link`]:{height:e.itemSizeSM,"&::after":{height:e.itemSizeSM,lineHeight:ce(e.itemSizeSM)}}},[`${t}-simple-pager`]:{height:e.itemSizeSM,input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},yme=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[` - ${t}-prev, - ${t}-jump-prev, - ${t}-jump-next - `]:{marginInlineEnd:e.marginXS},[` - ${t}-prev, - ${t}-next, - ${t}-jump-prev, - ${t}-jump-next - `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:ce(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${ce(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:ce(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},Ev(e)),t4(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},Jh(e)),width:e.quickJumperInputWidth,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},Cme=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:ce(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${ce(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${ce(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.itemActiveColor},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.itemActiveColorHover}}}}},Sme=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},fn(e)),{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:ce(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),Cme(e)),yme(e)),bme(e)),hme(e)),pme(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},xme=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Ta(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},jo(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:jo(e)}}}},Tz=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},ac(e)),Nz=e=>Xt(e,{inputOutlineOffset:0,quickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.25).equal(),paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},rc(e)),wme=rn("Pagination",e=>{const t=Nz(e);return[Sme(t),xme(t)]},Tz),$me=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${ce(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},Eme=Bu(["Pagination","bordered"],e=>{const t=Nz(e);return $me(t)},Tz);function NI(e){return s.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var Pme=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{align:t,prefixCls:n,selectPrefixCls:r,className:a,rootClassName:o,style:i,size:l,locale:c,responsive:u,showSizeChanger:d,selectComponentClass:f,pageSizeOptions:m}=e,g=Pme(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:h}=ui(u),[,b]=Rr(),{getPrefixCls:p,direction:S,showSizeChanger:C,className:x,style:w}=Vn("pagination"),$=p("pagination",n),[E,P,M]=wme($),O=ar(l),T=O==="small"||!!(h&&!O&&u),[N]=zr("Pagination",Gj),D=Object.assign(Object.assign({},N),c),[L,_]=NI(d),[F,j]=NI(C),k=L??F,z=_??j,V=f||fl,H=s.useMemo(()=>m?m.map(Y=>Number(Y)):void 0,[m]),B=Y=>{var Z;const{disabled:ee,size:re,onSizeChange:ne,"aria-label":se,className:oe,options:me}=Y,{className:ue,onChange:de}=z||{},ae=(Z=me.find(ie=>String(ie.value)===String(re)))===null||Z===void 0?void 0:Z.value;return s.createElement(V,Object.assign({disabled:ee,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:ie=>ie.parentNode,"aria-label":se,options:me},z,{value:ae,onChange:(ie,ge)=>{ne?.(ie),de?.(ie,ge)},size:T?"small":"middle",className:le(oe,ue)}))},K=s.useMemo(()=>{const Y=s.createElement("span",{className:`${$}-item-ellipsis`},"•••"),Z=s.createElement("button",{className:`${$}-item-link`,type:"button",tabIndex:-1},S==="rtl"?s.createElement(Na,null):s.createElement(oi,null)),ee=s.createElement("button",{className:`${$}-item-link`,type:"button",tabIndex:-1},S==="rtl"?s.createElement(oi,null):s.createElement(Na,null)),re=s.createElement("a",{className:`${$}-item-link`},s.createElement("div",{className:`${$}-item-container`},S==="rtl"?s.createElement(II,{className:`${$}-item-link-icon`}):s.createElement(RI,{className:`${$}-item-link-icon`}),Y)),ne=s.createElement("a",{className:`${$}-item-link`},s.createElement("div",{className:`${$}-item-container`},S==="rtl"?s.createElement(RI,{className:`${$}-item-link-icon`}):s.createElement(II,{className:`${$}-item-link-icon`}),Y));return{prevIcon:Z,nextIcon:ee,jumpPrevIcon:re,jumpNextIcon:ne}},[S,$]),W=p("select",r),G=le({[`${$}-${t}`]:!!t,[`${$}-mini`]:T,[`${$}-rtl`]:S==="rtl",[`${$}-bordered`]:b.wireframe},x,a,o,P,M),X=Object.assign(Object.assign({},w),i);return E(s.createElement(s.Fragment,null,b.wireframe&&s.createElement(Eme,{prefixCls:$}),s.createElement(gme,Object.assign({},K,g,{style:X,prefixCls:$,selectPrefixCls:W,className:G,locale:D,pageSizeOptions:H,showSizeChanger:k,sizeChangerRender:B}))))},kp=100,_z=kp/5,jz=kp/2-_z/2,C1=jz*2*Math.PI,_I=50,jI=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return s.createElement("circle",{className:le(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:jz,cx:_I,cy:_I,strokeWidth:_z,style:n})},Ome=({percent:e,prefixCls:t})=>{const n=`${t}-dot`,r=`${n}-holder`,a=`${r}-hidden`,[o,i]=s.useState(!1);un(()=>{e!==0&&i(!0)},[e!==0]);const l=Math.max(Math.min(e,100),0);if(!o)return null;const c={strokeDashoffset:`${C1/4}`,strokeDasharray:`${C1*l/100} ${C1*(100-l)/100}`};return s.createElement("span",{className:le(r,`${n}-progress`,l<=0&&a)},s.createElement("svg",{viewBox:`0 0 ${kp} ${kp}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":l},s.createElement(jI,{dotClassName:n,hasCircleCls:!0}),s.createElement(jI,{dotClassName:n,style:c})))};function Rme(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,a=`${r}-holder`,o=`${a}-hidden`;return s.createElement(s.Fragment,null,s.createElement("span",{className:le(a,n>0&&o)},s.createElement("span",{className:le(r,`${t}-dot-spin`)},[1,2,3,4].map(i=>s.createElement("i",{className:`${t}-dot-item`,key:i})))),s.createElement(Ome,{prefixCls:t,percent:n}))}function Ime(e){var t;const{prefixCls:n,indicator:r,percent:a}=e,o=`${n}-dot`;return r&&s.isValidElement(r)?xr(r,{className:le((t=r.props)===null||t===void 0?void 0:t.className,o),percent:a}):s.createElement(Rme,{prefixCls:n,percent:a})}const Mme=new an("antSpinMove",{to:{opacity:1}}),Tme=new an("antRotate",{to:{transform:"rotate(405deg)"}}),Nme=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},fn(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",inset:0},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:Mme,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:Tme,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(r=>`${r} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},_me=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},jme=rn("Spin",e=>{const t=Xt(e,{spinDotDefault:e.colorTextDescription});return Nme(t)},_me),Dme=200,DI=[[30,.05],[70,.03],[96,.01]];function Fme(e,t){const[n,r]=s.useState(0),a=s.useRef(null),o=t==="auto";return s.useEffect(()=>(o&&e&&(r(0),a.current=setInterval(()=>{r(i=>{const l=100-i;for(let c=0;c{a.current&&(clearInterval(a.current),a.current=null)}),[o,e]),o?n:t}var kme=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var t;const{prefixCls:n,spinning:r=!0,delay:a=0,className:o,rootClassName:i,size:l="default",tip:c,wrapperClassName:u,style:d,children:f,fullscreen:m=!1,indicator:g,percent:h}=e,b=kme(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:p,direction:S,className:C,style:x,indicator:w}=Vn("spin"),$=p("spin",n),[E,P,M]=jme($),[O,T]=s.useState(()=>r&&!Lme(r,a)),N=Fme(O,h);s.useEffect(()=>{if(r){const z=ese(a,()=>{T(!0)});return z(),()=>{var V;(V=z?.cancel)===null||V===void 0||V.call(z)}}T(!1)},[a,r]);const D=s.useMemo(()=>typeof f<"u"&&!m,[f,m]),L=le($,C,{[`${$}-sm`]:l==="small",[`${$}-lg`]:l==="large",[`${$}-spinning`]:O,[`${$}-show-text`]:!!c,[`${$}-rtl`]:S==="rtl"},o,!m&&i,P,M),_=le(`${$}-container`,{[`${$}-blur`]:O}),F=(t=g??w)!==null&&t!==void 0?t:Dz,j=Object.assign(Object.assign({},x),d),k=s.createElement("div",Object.assign({},b,{style:j,className:L,"aria-live":"polite","aria-busy":O}),s.createElement(Ime,{prefixCls:$,indicator:F,percent:N}),c&&(D||m)?s.createElement("div",{className:`${$}-text`},c):null);return E(D?s.createElement("div",Object.assign({},b,{className:le(`${$}-nested-loading`,u,P,M)}),O&&s.createElement("div",{key:"loading"},k),s.createElement("div",{className:_,key:"container"},f)):m?s.createElement("div",{className:le(`${$}-fullscreen`,{[`${$}-fullscreen-show`]:O},i,P,M)},k):k)};ki.setDefaultIndicator=e=>{Dz=e};const w4=Q.createContext({});w4.Consumer;var Fz=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{prefixCls:t,className:n,avatar:r,title:a,description:o}=e,i=Fz(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:l}=s.useContext(Ot),c=l("list",t),u=le(`${c}-item-meta`,n),d=Q.createElement("div",{className:`${c}-item-meta-content`},a&&Q.createElement("h4",{className:`${c}-item-meta-title`},a),o&&Q.createElement("div",{className:`${c}-item-meta-description`},o));return Q.createElement("div",Object.assign({},i,{className:u}),r&&Q.createElement("div",{className:`${c}-item-meta-avatar`},r),(a||o)&&d)},Ame=Q.forwardRef((e,t)=>{const{prefixCls:n,children:r,actions:a,extra:o,styles:i,className:l,classNames:c,colStyle:u}=e,d=Fz(e,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:f,itemLayout:m}=s.useContext(w4),{getPrefixCls:g,list:h}=s.useContext(Ot),b=P=>{var M,O;return le((O=(M=h?.item)===null||M===void 0?void 0:M.classNames)===null||O===void 0?void 0:O[P],c?.[P])},p=P=>{var M,O;return Object.assign(Object.assign({},(O=(M=h?.item)===null||M===void 0?void 0:M.styles)===null||O===void 0?void 0:O[P]),i?.[P])},S=()=>{let P=!1;return s.Children.forEach(r,M=>{typeof M=="string"&&(P=!0)}),P&&s.Children.count(r)>1},C=()=>m==="vertical"?!!o:!S(),x=g("list",n),w=a&&a.length>0&&Q.createElement("ul",{className:le(`${x}-item-action`,b("actions")),key:"actions",style:p("actions")},a.map((P,M)=>Q.createElement("li",{key:`${x}-item-action-${M}`},P,M!==a.length-1&&Q.createElement("em",{className:`${x}-item-action-split`})))),$=f?"div":"li",E=Q.createElement($,Object.assign({},d,f?{}:{ref:t},{className:le(`${x}-item`,{[`${x}-item-no-flex`]:!C()},l)}),m==="vertical"&&o?[Q.createElement("div",{className:`${x}-item-main`,key:"content"},r,w),Q.createElement("div",{className:le(`${x}-item-extra`,b("extra")),key:"extra",style:p("extra")},o)]:[r,w,xr(o,{key:"extra"})]);return f?Q.createElement(Fr,{ref:t,flex:1,style:u},E):E}),kz=Ame;kz.Meta=zme;const Bme=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:a,itemPaddingSM:o,itemPaddingLG:i,marginLG:l,borderRadiusLG:c}=e,u=ce(e.calc(c).sub(e.lineWidth).equal());return{[t]:{border:`${ce(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:c,[`${n}-header`]:{borderRadius:`${u} ${u} 0 0`},[`${n}-footer`]:{borderRadius:`0 0 ${u} ${u}`},[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${ce(a)} ${ce(l)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:o}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:i}}}},Hme=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:a,marginSM:o,margin:i}=e;return{[`@media screen and (max-width:${r}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:a}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:a}}}},[`@media screen and (max-width: ${n}px)`]:{[t]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:o}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${ce(i)}`}}}}}},Vme=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:a,paddingSM:o,marginLG:i,padding:l,itemPadding:c,colorPrimary:u,itemPaddingSM:d,itemPaddingLG:f,paddingXS:m,margin:g,colorText:h,colorTextDescription:b,motionDurationSlow:p,lineWidth:S,headerBg:C,footerBg:x,emptyTextPadding:w,metaMarginBottom:$,avatarMarginRight:E,titleMarginBottom:P,descriptionFontSize:M}=e;return{[t]:Object.assign(Object.assign({},fn(e)),{position:"relative","--rc-virtual-list-scrollbar-bg":e.colorSplit,"*":{outline:"none"},[`${t}-header`]:{background:C},[`${t}-footer`]:{background:x},[`${t}-header, ${t}-footer`]:{paddingBlock:o},[`${t}-pagination`]:{marginBlockStart:i,[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:a,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:c,color:h,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:E},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:h},[`${t}-item-meta-title`]:{margin:`0 0 ${ce(e.marginXXS)} 0`,color:h,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:h,transition:`all ${p}`,"&:hover":{color:u}}},[`${t}-item-meta-description`]:{color:b,fontSize:M,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${ce(m)}`,color:b,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:S,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${ce(l)} 0`,color:b,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:w,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:g,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:i},[`${t}-item-meta`]:{marginBlockEnd:$,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:P,color:h,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:l,marginInlineStart:"auto","> li":{padding:`0 ${ce(l)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${ce(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${ce(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${ce(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${ce(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:f},[`${t}-sm ${t}-item`]:{padding:d},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},Wme=e=>({contentWidth:220,itemPadding:`${ce(e.paddingContentVertical)} 0`,itemPaddingSM:`${ce(e.paddingContentVerticalSM)} ${ce(e.paddingContentHorizontal)}`,itemPaddingLG:`${ce(e.paddingContentVerticalLG)} ${ce(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),Kme=rn("List",e=>{const t=Xt(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[Vme(t),Bme(t),Hme(t)]},Wme);var qme=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a(he,Se)=>{var Ee;M(he),T(Se),n&&((Ee=n?.[Ce])===null||Ee===void 0||Ee.call(n,he,Se))},z=k("onChange"),V=k("onShowSizeChange"),H=(Ce,he)=>{if(!x)return null;let Se;return typeof C=="function"?Se=C(Ce):C?Se=Ce[C]:Se=Ce.key,Se||(Se=`list-item-${he}`),s.createElement(s.Fragment,{key:Se},x(Ce,he))},B=!!(f||n||p),K=N("list",r),[W,G,X]=Kme(K);let Y=S;typeof Y=="boolean"&&(Y={spinning:Y});const Z=!!Y?.spinning,ee=ar(h);let re="";switch(ee){case"large":re="lg";break;case"small":re="sm";break}const ne=le(K,{[`${K}-vertical`]:d==="vertical",[`${K}-${re}`]:re,[`${K}-split`]:o,[`${K}-bordered`]:a,[`${K}-loading`]:Z,[`${K}-grid`]:!!m,[`${K}-something-after-last-item`]:B,[`${K}-rtl`]:D==="rtl"},L,i,l,G,X),se=Hf(j,{total:g.length,current:P,pageSize:O},n||{}),oe=Math.ceil(se.total/se.pageSize);se.current=Math.min(se.current,oe);const me=n&&s.createElement("div",{className:le(`${K}-pagination`)},s.createElement(x4,Object.assign({align:"end"},se,{onChange:z,onShowSizeChange:V})));let ue=Te(g);n&&g.length>(se.current-1)*se.pageSize&&(ue=Te(g).splice((se.current-1)*se.pageSize,se.pageSize));const de=Object.keys(m||{}).some(Ce=>["xs","sm","md","lg","xl","xxl"].includes(Ce)),ae=ui(de),ie=s.useMemo(()=>{for(let Ce=0;Ce{if(!m)return;const Ce=ie&&m[ie]?m[ie]:m.column;if(Ce)return{width:`${100/Ce}%`,maxWidth:`${100/Ce}%`}},[JSON.stringify(m),ie]);let pe=Z&&s.createElement("div",{style:{minHeight:53}});if(ue.length>0){const Ce=ue.map(H);pe=m?s.createElement(Io,{gutter:m.gutter},s.Children.map(Ce,he=>s.createElement("div",{key:he?.key,style:ge},he))):s.createElement("ul",{className:`${K}-items`},Ce)}else!u&&!Z&&(pe=s.createElement("div",{className:`${K}-empty-text`},w?.emptyText||F?.("List")||s.createElement(Js,{componentName:"List"})));const be=se.position,ve=s.useMemo(()=>({grid:m,itemLayout:d}),[JSON.stringify(m),d]);return W(s.createElement(w4.Provider,{value:ve},s.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},_),c),className:ne},$),(be==="top"||be==="both")&&me,b&&s.createElement("div",{className:`${K}-header`},b),s.createElement(ki,Object.assign({},Y),pe,u),p&&s.createElement("div",{className:`${K}-footer`},p),f||(be==="bottom"||be==="both")&&me)))}const Gme=s.forwardRef(Ume),Xme=Gme;Xme.Item=kz;const $4=(e,t=!1)=>t&&e==null?[]:Array.isArray(e)?e:[e];let Oo=null,_s=e=>e(),qf=[],Uf={};function FI(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:a}=Uf,o=e?.()||document.body;return{getContainer:()=>o,duration:t,rtl:n,maxCount:r,top:a}}const Yme=Q.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:a}=s.useContext(Ot),o=Uf.prefixCls||a("message"),i=s.useContext(Ew),[l,c]=AD(Object.assign(Object.assign(Object.assign({},n),{prefixCls:o}),i.message));return Q.useImperativeHandle(t,()=>{const u=Object.assign({},l);return Object.keys(u).forEach(d=>{u[d]=(...f)=>(r(),l[d].apply(l,f))}),{instance:u,sync:r}}),c}),Qme=Q.forwardRef((e,t)=>{const[n,r]=Q.useState(FI),a=()=>{r(FI)};Q.useEffect(a,[]);const o=wD(),i=o.getRootPrefixCls(),l=o.getIconPrefixCls(),c=o.getTheme(),u=Q.createElement(Yme,{ref:t,sync:a,messageConfig:n});return Q.createElement(At,{prefixCls:i,iconPrefixCls:l,theme:c},o.holderRender?o.holderRender(u):u)}),s0=()=>{if(!Oo){const e=document.createDocumentFragment(),t={fragment:e};Oo=t,_s(()=>{mE()(Q.createElement(Qme,{ref:r=>{const{instance:a,sync:o}=r||{};Promise.resolve().then(()=>{!t.instance&&a&&(t.instance=a,t.sync=o,s0())})}}),e)});return}Oo.instance&&(qf.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{_s(()=>{const r=Oo.instance.open(Object.assign(Object.assign({},Uf),e.config));r?.then(e.resolve),e.setCloseFn(r)});break}case"destroy":_s(()=>{Oo?.instance.destroy(e.key)});break;default:_s(()=>{var r;const a=(r=Oo.instance)[t].apply(r,Te(e.args));a?.then(e.resolve),e.setCloseFn(a)})}}),qf=[])};function Zme(e){Uf=Object.assign(Object.assign({},Uf),e),_s(()=>{var t;(t=Oo?.sync)===null||t===void 0||t.call(Oo)})}function Jme(e){const t=fE(n=>{let r;const a={type:"open",config:e,resolve:n,setCloseFn:o=>{r=o}};return qf.push(a),()=>{r?_s(()=>{r()}):a.skipped=!0}});return s0(),t}function ege(e,t){const n=fE(r=>{let a;const o={type:e,args:t,resolve:r,setCloseFn:i=>{a=i}};return qf.push(o),()=>{a?_s(()=>{a()}):o.skipped=!0}});return s0(),n}const tge=e=>{qf.push({type:"destroy",key:e}),s0()},nge=["success","info","warning","error","loading"],rge={open:Jme,destroy:tge,config:Zme,useMessage:BD,_InternalPanelDoNotUseOrYouWillBeFired:MX},Gf=rge;nge.forEach(e=>{Gf[e]=(...t)=>ege(e,t)});var age=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,className:n,closeIcon:r,closable:a,type:o,title:i,children:l,footer:c}=e,u=age(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:d}=s.useContext(Ot),f=d(),m=t||d("modal"),g=zn(f),[h,b,p]=NF(m,g),S=`${m}-confirm`;let C={};return o?C={closable:a??!1,title:"",footer:"",children:s.createElement(jF,Object.assign({},e,{prefixCls:m,confirmPrefixCls:S,rootPrefixCls:f,content:l}))}:C={closable:a??!0,title:i,footer:c!==null&&s.createElement(OF,Object.assign({},e)),children:l},h(s.createElement(uF,Object.assign({prefixCls:m,className:le(b,`${m}-pure-panel`,o&&S,o&&`${S}-${o}`,n,p,g)},u,{closeIcon:PF(m,r),closable:a},C)))},ige=qF(oge);function Lz(e){return hv(LF(e))}const fi=_F;fi.useModal=VF;fi.info=function(t){return hv(zF(t))};fi.success=function(t){return hv(AF(t))};fi.error=function(t){return hv(BF(t))};fi.warning=Lz;fi.warn=Lz;fi.confirm=function(t){return hv(HF(t))};fi.destroyAll=function(){for(;Ns.length;){const t=Ns.pop();t&&t()}};fi.config=BJ;fi._InternalPanelDoNotUseOrYouWillBeFired=ige;const lge=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:a,colorText:o,colorWarning:i,marginXXS:l,marginXS:c,fontSize:u,fontWeightStrong:d,colorTextHeading:f}=e;return{[t]:{zIndex:a,[`&${r}-popover`]:{fontSize:u},[`${t}-message`]:{marginBottom:c,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:i,fontSize:u,lineHeight:1,marginInlineEnd:c},[`${t}-title`]:{fontWeight:d,color:f,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:l,color:o}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:c}}}}},sge=e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},zz=rn("Popconfirm",e=>lge(e),sge,{resetStyle:!1});var cge=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:a,description:o,cancelText:i,okText:l,okType:c="primary",icon:u=s.createElement(as,null),showCancel:d=!0,close:f,onConfirm:m,onCancel:g,onPopupClick:h}=e,{getPrefixCls:b}=s.useContext(Ot),[p]=zr("Popconfirm",Ka.Popconfirm),S=Ou(a),C=Ou(o);return s.createElement("div",{className:`${t}-inner-content`,onClick:h},s.createElement("div",{className:`${t}-message`},u&&s.createElement("span",{className:`${t}-message-icon`},u),s.createElement("div",{className:`${t}-message-text`},S&&s.createElement("div",{className:`${t}-title`},S),C&&s.createElement("div",{className:`${t}-description`},C))),s.createElement("div",{className:`${t}-buttons`},d&&s.createElement(cr,Object.assign({onClick:g,size:"small"},r),i||p?.cancelText),s.createElement(SE,{buttonProps:Object.assign(Object.assign({size:"small"},gE(c)),n),actionFn:m,close:f,prefixCls:b("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},l||p?.okText)))},uge=e=>{const{prefixCls:t,placement:n,className:r,style:a}=e,o=cge(e,["prefixCls","placement","className","style"]),{getPrefixCls:i}=s.useContext(Ot),l=i("popconfirm",t),[c]=zz(l);return c(s.createElement(Ek,{placement:n,className:le(l,r),style:a,content:s.createElement(Az,Object.assign({prefixCls:l},o))}))};var dge=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r;const{prefixCls:a,placement:o="top",trigger:i="click",okType:l="primary",icon:c=s.createElement(as,null),children:u,overlayClassName:d,onOpenChange:f,onVisibleChange:m,overlayStyle:g,styles:h,classNames:b}=e,p=dge(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:S,className:C,style:x,classNames:w,styles:$}=Vn("popconfirm"),[E,P]=Tt(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),M=(k,z)=>{P(k,!0),m?.(k),f?.(k,z)},O=k=>{M(!1,k)},T=k=>{var z;return(z=e.onConfirm)===null||z===void 0?void 0:z.call(void 0,k)},N=k=>{var z;M(!1,k),(z=e.onCancel)===null||z===void 0||z.call(void 0,k)},D=(k,z)=>{const{disabled:V=!1}=e;V||M(k,z)},L=S("popconfirm",a),_=le(L,C,d,w.root,b?.root),F=le(w.body,b?.body),[j]=zz(L);return j(s.createElement(Fi,Object.assign({},Qt(p,["title"]),{trigger:i,placement:o,onOpenChange:D,open:E,ref:t,classNames:{root:_,body:F},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},$.root),x),g),h?.root),body:Object.assign(Object.assign({},$.body),h?.body)},content:s.createElement(Az,Object.assign({okType:l,icon:c},e,{prefixCls:L,close:O,onConfirm:T,onCancel:N})),"data-popover-inject":!0}),u))}),Bz=fge;Bz._InternalPanelDoNotUseOrYouWillBeFired=uge;var vge={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},mge=function(){var t=s.useRef([]),n=s.useRef(null);return s.useEffect(function(){var r=Date.now(),a=!1;t.current.forEach(function(o){if(o){a=!0;var i=o.style;i.transitionDuration=".3s, .3s, .3s, .06s",n.current&&r-n.current<100&&(i.transitionDuration="0s, 0s")}}),a&&(n.current=Date.now())}),t.current},kI=0,gge=Xr();function pge(){var e;return gge?(e=kI,kI+=1):e="TEST_OR_SSR",e}const hge=(function(e){var t=s.useState(),n=fe(t,2),r=n[0],a=n[1];return s.useEffect(function(){a("rc_progress_".concat(pge()))},[]),e||r});var LI=function(t){var n=t.bg,r=t.children;return s.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function zI(e,t){return Object.keys(e).map(function(n){var r=parseFloat(n),a="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(a)})}var bge=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,a=e.gradientId,o=e.radius,i=e.style,l=e.ptg,c=e.strokeLinecap,u=e.strokeWidth,d=e.size,f=e.gapDegree,m=r&&st(r)==="object",g=m?"#FFF":void 0,h=d/2,b=s.createElement("circle",{className:"".concat(n,"-circle-path"),r:o,cx:h,cy:h,stroke:g,strokeLinecap:c,strokeWidth:u,opacity:l===0?0:1,style:i,ref:t});if(!m)return b;var p="".concat(a,"-conic"),S=f?"".concat(180+f/2,"deg"):"0deg",C=zI(r,(360-f)/360),x=zI(r,1),w="conic-gradient(from ".concat(S,", ").concat(C.join(", "),")"),$="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(x.join(", "),")");return s.createElement(s.Fragment,null,s.createElement("mask",{id:p},b),s.createElement("foreignObject",{x:0,y:0,width:d,height:d,mask:"url(#".concat(p,")")},s.createElement(LI,{bg:$},s.createElement(LI,{bg:w}))))}),df=100,S1=function(t,n,r,a,o,i,l,c,u,d){var f=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,m=r/100*360*((360-i)/360),g=i===0?0:{bottom:0,top:180,left:90,right:-90}[l],h=(100-a)/100*n;u==="round"&&a!==100&&(h+=d/2,h>=n&&(h=n-.01));var b=df/2;return{stroke:typeof c=="string"?c:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:h+f,transform:"rotate(".concat(o+m+g,"deg)"),transformOrigin:"".concat(b,"px ").concat(b,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},yge=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function AI(e){var t=e??[];return Array.isArray(t)?t:[t]}var Cge=function(t){var n=R(R({},vge),t),r=n.id,a=n.prefixCls,o=n.steps,i=n.strokeWidth,l=n.trailWidth,c=n.gapDegree,u=c===void 0?0:c,d=n.gapPosition,f=n.trailColor,m=n.strokeLinecap,g=n.style,h=n.className,b=n.strokeColor,p=n.percent,S=Ue(n,yge),C=df/2,x=hge(r),w="".concat(x,"-gradient"),$=C-i/2,E=Math.PI*2*$,P=u>0?90+u/2:-90,M=E*((360-u)/360),O=st(o)==="object"?o:{count:o,gap:2},T=O.count,N=O.gap,D=AI(p),L=AI(b),_=L.find(function(B){return B&&st(B)==="object"}),F=_&&st(_)==="object",j=F?"butt":m,k=S1(E,M,0,100,P,u,d,f,j,i),z=mge(),V=function(){var K=0;return D.map(function(W,G){var X=L[G]||L[L.length-1],Y=S1(E,M,K,W,P,u,d,X,j,i);return K+=W,s.createElement(bge,{key:G,color:X,ptg:W,radius:$,prefixCls:a,gradientId:w,style:Y,strokeLinecap:j,strokeWidth:i,gapDegree:u,ref:function(ee){z[G]=ee},size:df})}).reverse()},H=function(){var K=Math.round(T*(D[0]/100)),W=100/T,G=0;return new Array(T).fill(null).map(function(X,Y){var Z=Y<=K-1?L[0]:f,ee=Z&&st(Z)==="object"?"url(#".concat(w,")"):void 0,re=S1(E,M,G,W,P,u,d,Z,"butt",i,N);return G+=(M-re.strokeDashoffset+N)*100/M,s.createElement("circle",{key:Y,className:"".concat(a,"-circle-path"),r:$,cx:C,cy:C,stroke:ee,strokeWidth:i,opacity:1,style:re,ref:function(se){z[Y]=se}})})};return s.createElement("svg",xe({className:le("".concat(a,"-circle"),h),viewBox:"0 0 ".concat(df," ").concat(df),style:g,id:r,role:"presentation"},S),!T&&s.createElement("circle",{className:"".concat(a,"-circle-trail"),r:$,cx:C,cy:C,stroke:f,strokeLinecap:j,strokeWidth:l||i,style:k}),T?H():V())};function Xl(e){return!e||e<0?0:e>100?100:e}function Lp({success:e,successPercent:t}){let n=t;return e&&"progress"in e&&(n=e.progress),e&&"percent"in e&&(n=e.percent),n}const Sge=({percent:e,success:t,successPercent:n})=>{const r=Xl(Lp({success:t,successPercent:n}));return[r,Xl(Xl(e)-r)]},xge=({success:e={},strokeColor:t})=>{const{strokeColor:n}=e;return[n||su.green,t||null]},c0=(e,t,n)=>{var r,a,o,i;let l=-1,c=-1;if(t==="step"){const u=n.steps,d=n.strokeWidth;typeof e=="string"||typeof e>"u"?(l=e==="small"?2:14,c=d??8):typeof e=="number"?[l,c]=[e,e]:[l=14,c=8]=Array.isArray(e)?e:[e.width,e.height],l*=u}else if(t==="line"){const u=n?.strokeWidth;typeof e=="string"||typeof e>"u"?c=u||(e==="small"?6:8):typeof e=="number"?[l,c]=[e,e]:[l=-1,c=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[l,c]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[l,c]=[e,e]:Array.isArray(e)&&(l=(a=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&a!==void 0?a:120,c=(i=(o=e[0])!==null&&o!==void 0?o:e[1])!==null&&i!==void 0?i:120));return[l,c]},wge=3,$ge=e=>wge/e*100,Ege=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:a,gapDegree:o,width:i=120,type:l,children:c,success:u,size:d=i,steps:f}=e,[m,g]=c0(d,"circle");let{strokeWidth:h}=e;h===void 0&&(h=Math.max($ge(m),6));const b={width:m,height:g,fontSize:m*.15+6},p=s.useMemo(()=>{if(o||o===0)return o;if(l==="dashboard")return 75},[o,l]),S=Sge(e),C=a||l==="dashboard"&&"bottom"||void 0,x=Object.prototype.toString.call(e.strokeColor)==="[object Object]",w=xge({success:u,strokeColor:e.strokeColor}),$=le(`${t}-inner`,{[`${t}-circle-gradient`]:x}),E=s.createElement(Cge,{steps:f,percent:f?S[1]:S,strokeWidth:h,trailWidth:h,strokeColor:f?w[1]:w,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:p,gapPosition:C}),P=m<=20,M=s.createElement("div",{className:$,style:b},E,!P&&c);return P?s.createElement(tr,{title:c},M):M},zp="--progress-line-stroke-color",Hz="--progress-percent",BI=e=>{const t=e?"100%":"-100%";return new an(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Pge=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},fn(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${zp})`]},height:"100%",width:`calc(1 / var(${Hz}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${ce(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:BI(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:BI(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},Oge=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},Rge=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},Ige=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},Mge=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),Tge=rn("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=Xt(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[Pge(n),Oge(n),Rge(n),Ige(n)]},Mge);var Nge=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{let t=[];return Object.keys(e).forEach(n=>{const r=Number.parseFloat(n.replace(/%/g,""));Number.isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(({key:n,value:r})=>`${r} ${n}%`).join(", ")},jge=(e,t)=>{const{from:n=su.blue,to:r=su.blue,direction:a=t==="rtl"?"to left":"to right"}=e,o=Nge(e,["from","to","direction"]);if(Object.keys(o).length!==0){const l=_ge(o),c=`linear-gradient(${a}, ${l})`;return{background:c,[zp]:c}}const i=`linear-gradient(${a}, ${n}, ${r})`;return{background:i,[zp]:i}},Dge=e=>{const{prefixCls:t,direction:n,percent:r,size:a,strokeWidth:o,strokeColor:i,strokeLinecap:l="round",children:c,trailColor:u=null,percentPosition:d,success:f}=e,{align:m,type:g}=d,h=i&&typeof i!="string"?jge(i,n):{[zp]:i,background:i},b=l==="square"||l==="butt"?0:void 0,p=a??[-1,o||(a==="small"?6:8)],[S,C]=c0(p,"line",{strokeWidth:o}),x={backgroundColor:u||void 0,borderRadius:b},w=Object.assign(Object.assign({width:`${Xl(r)}%`,height:C,borderRadius:b},h),{[Hz]:Xl(r)/100}),$=Lp(e),E={width:`${Xl($)}%`,height:C,borderRadius:b,backgroundColor:f?.strokeColor},P={width:S<0?"100%":S},M=s.createElement("div",{className:`${t}-inner`,style:x},s.createElement("div",{className:le(`${t}-bg`,`${t}-bg-${g}`),style:w},g==="inner"&&c),$!==void 0&&s.createElement("div",{className:`${t}-success-bg`,style:E})),O=g==="outer"&&m==="start",T=g==="outer"&&m==="end";return g==="outer"&&m==="center"?s.createElement("div",{className:`${t}-layout-bottom`},M,c):s.createElement("div",{className:`${t}-outer`,style:P},O&&c,M,T&&c)},Fge=e=>{const{size:t,steps:n,rounding:r=Math.round,percent:a=0,strokeWidth:o=8,strokeColor:i,trailColor:l=null,prefixCls:c,children:u}=e,d=r(n*(a/100)),m=t??[t==="small"?2:14,o],[g,h]=c0(m,"step",{steps:n,strokeWidth:o}),b=g/n,p=Array.from({length:n});for(let S=0;S{const{prefixCls:n,className:r,rootClassName:a,steps:o,strokeColor:i,percent:l=0,size:c="default",showInfo:u=!0,type:d="line",status:f,format:m,style:g,percentPosition:h={}}=e,b=kge(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:p="end",type:S="outer"}=h,C=Array.isArray(i)?i[0]:i,x=typeof i=="string"||Array.isArray(i)?i:void 0,w=s.useMemo(()=>{if(C){const V=typeof C=="string"?C:Object.values(C)[0];return new dn(V).isLight()}return!1},[i]),$=s.useMemo(()=>{var V,H;const B=Lp(e);return Number.parseInt(B!==void 0?(V=B??0)===null||V===void 0?void 0:V.toString():(H=l??0)===null||H===void 0?void 0:H.toString(),10)},[l,e.success,e.successPercent]),E=s.useMemo(()=>!Lge.includes(f)&&$>=100?"success":f||"normal",[f,$]),{getPrefixCls:P,direction:M,progress:O}=s.useContext(Ot),T=P("progress",n),[N,D,L]=Tge(T),_=d==="line",F=_&&!o,j=s.useMemo(()=>{if(!u)return null;const V=Lp(e);let H;const B=m||(W=>`${W}%`),K=_&&w&&S==="inner";return S==="inner"||m||E!=="exception"&&E!=="success"?H=B(Xl(l),Xl(V)):E==="exception"?H=_?s.createElement(_i,null):s.createElement(vo,null):E==="success"&&(H=_?s.createElement(Zs,null):s.createElement(Cv,null)),s.createElement("span",{className:le(`${T}-text`,{[`${T}-text-bright`]:K,[`${T}-text-${p}`]:F,[`${T}-text-${S}`]:F}),title:typeof H=="string"?H:void 0},H)},[u,l,$,E,d,T,m]);let k;d==="line"?k=o?s.createElement(Fge,Object.assign({},e,{strokeColor:x,prefixCls:T,steps:typeof o=="object"?o.count:o}),j):s.createElement(Dge,Object.assign({},e,{strokeColor:C,prefixCls:T,direction:M,percentPosition:{align:p,type:S}}),j):(d==="circle"||d==="dashboard")&&(k=s.createElement(Ege,Object.assign({},e,{strokeColor:C,prefixCls:T,progressStatus:E}),j));const z=le(T,`${T}-status-${E}`,{[`${T}-${d==="dashboard"&&"circle"||d}`]:d!=="line",[`${T}-inline-circle`]:d==="circle"&&c0(c,"circle")[0]<=20,[`${T}-line`]:F,[`${T}-line-align-${p}`]:F,[`${T}-line-position-${S}`]:F,[`${T}-steps`]:o,[`${T}-show-info`]:u,[`${T}-${c}`]:typeof c=="string",[`${T}-rtl`]:M==="rtl"},O?.className,r,a,D,L);return N(s.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},O?.style),g),className:z,role:"progressbar","aria-valuenow":$,"aria-valuemin":0,"aria-valuemax":100},Qt(b,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),k))});function xi(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=uh(e))||t){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(u){throw u},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var u=n.next();return i=u.done,u},e:function(u){l=!0,o=u},f:function(){try{i||n.return==null||n.return()}finally{if(l)throw o}}}}var td,Tv;function Va(e,t,n){if(t<0||t>31||e>>>t)throw new RangeError("Value out of range");for(var r=t-1;r>=0;r--)n.push(e>>>r&1)}function Yi(e,t){return(e>>>t&1)!=0}function ro(e){if(!e)throw new Error("Assertion error")}var wi=(function(){function e(t,n){kn(this,e),q(this,"modeBits",void 0),q(this,"numBitsCharCount",void 0),this.modeBits=t,this.numBitsCharCount=n}return Ln(e,[{key:"numCharCountBits",value:function(n){return this.numBitsCharCount[Math.floor((n+7)/17)]}}]),e})();td=wi;q(wi,"NUMERIC",new td(1,[10,12,14]));q(wi,"ALPHANUMERIC",new td(2,[9,11,13]));q(wi,"BYTE",new td(4,[8,16,16]));q(wi,"KANJI",new td(8,[8,10,12]));q(wi,"ECI",new td(7,[0,0,0]));var Mo=Ln(function e(t,n){kn(this,e),q(this,"ordinal",void 0),q(this,"formatBits",void 0),this.ordinal=t,this.formatBits=n});Tv=Mo;q(Mo,"LOW",new Tv(0,1));q(Mo,"MEDIUM",new Tv(1,0));q(Mo,"QUARTILE",new Tv(2,3));q(Mo,"HIGH",new Tv(3,2));var zs=(function(){function e(t,n,r){if(kn(this,e),q(this,"mode",void 0),q(this,"numChars",void 0),q(this,"bitData",void 0),this.mode=t,this.numChars=n,this.bitData=r,n<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}return Ln(e,[{key:"getData",value:function(){return this.bitData.slice()}}],[{key:"makeBytes",value:function(n){var r=[],a=xi(n),o;try{for(a.s();!(o=a.n()).done;){var i=o.value;Va(i,8,r)}}catch(l){a.e(l)}finally{a.f()}return new e(wi.BYTE,n.length,r)}},{key:"makeNumeric",value:function(n){if(!e.isNumeric(n))throw new RangeError("String contains non-numeric characters");for(var r=[],a=0;a=1<e.MAX_VERSION)throw new RangeError("Version value out of range");if(o<-1||o>7)throw new RangeError("Mask value out of range");this.size=t*4+17;for(var i=[],l=0;l>>9)*1335;var i=(r<<10|a)^21522;ro(i>>>15==0);for(var l=0;l<=5;l++)this.setFunctionModule(8,l,Yi(i,l));this.setFunctionModule(8,7,Yi(i,6)),this.setFunctionModule(8,8,Yi(i,7)),this.setFunctionModule(7,8,Yi(i,8));for(var c=9;c<15;c++)this.setFunctionModule(14-c,8,Yi(i,c));for(var u=0;u<8;u++)this.setFunctionModule(this.size-1-u,8,Yi(i,u));for(var d=8;d<15;d++)this.setFunctionModule(8,this.size-15+d,Yi(i,d));this.setFunctionModule(8,this.size-8,!0)}},{key:"drawVersion",value:function(){if(!(this.version<7)){for(var n=this.version,r=0;r<12;r++)n=n<<1^(n>>>11)*7973;var a=this.version<<12|n;ro(a>>>18==0);for(var o=0;o<18;o++){var i=Yi(a,o),l=this.size-11+o%3,c=Math.floor(o/3);this.setFunctionModule(l,c,i),this.setFunctionModule(c,l,i)}}}},{key:"drawFinderPattern",value:function(n,r){for(var a=-4;a<=4;a++)for(var o=-4;o<=4;o++){var i=Math.max(Math.abs(o),Math.abs(a)),l=n+o,c=r+a;0<=l&&l=c)&&p.push($[w])})},C=0;C=1;a-=2){a==6&&(a=5);for(var o=0;o>>3],7-(r&7)),r++)}}ro(r==n.length*8)}},{key:"applyMask",value:function(n){if(n<0||n>7)throw new RangeError("Mask value out of range");for(var r=0;r5&&n++):(this.finderPenaltyAddHistory(o,i),a||(n+=this.finderPenaltyCountPatterns(i)*e.PENALTY_N3),a=this.modules[r][l],o=1);n+=this.finderPenaltyTerminateAndCount(a,o,i)*e.PENALTY_N3}for(var c=0;c5&&n++):(this.finderPenaltyAddHistory(d,f),u||(n+=this.finderPenaltyCountPatterns(f)*e.PENALTY_N3),u=this.modules[m][c],d=1);n+=this.finderPenaltyTerminateAndCount(u,d,f)*e.PENALTY_N3}for(var g=0;g0&&n[2]==r&&n[3]==r*3&&n[4]==r&&n[5]==r;return(a&&n[0]>=r*4&&n[6]>=r?1:0)+(a&&n[6]>=r*4&&n[0]>=r?1:0)}},{key:"finderPenaltyTerminateAndCount",value:function(n,r,a){var o=r;return n&&(this.finderPenaltyAddHistory(o,a),o=0),o+=this.size,this.finderPenaltyAddHistory(o,a),this.finderPenaltyCountPatterns(a)}},{key:"finderPenaltyAddHistory",value:function(n,r){var a=n;r[0]==0&&(a+=this.size),r.pop(),r.unshift(a)}}],[{key:"encodeText",value:function(n,r){var a=zs.makeSegments(n);return e.encodeSegments(a,r)}},{key:"encodeBinary",value:function(n,r){var a=zs.makeBytes(n);return e.encodeSegments([a],r)}},{key:"encodeSegments",value:function(n,r){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:40,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1,l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;if(!(e.MIN_VERSION<=a&&a<=o&&o<=e.MAX_VERSION)||i<-1||i>7)throw new RangeError("Invalid value");var c,u;for(c=a;;c++){var d=e.getNumDataCodewords(c,r)*8,f=zs.getTotalBits(n,c);if(f<=d){u=f;break}if(c>=o)throw new RangeError("Data too long")}for(var m=r,g=0,h=[Mo.MEDIUM,Mo.QUARTILE,Mo.HIGH];g>>3]|=T<<7-(N&7)}),new e(c,m,O,i)}},{key:"getNumRawDataModules",value:function(n){if(ne.MAX_VERSION)throw new RangeError("Version number out of range");var r=(16*n+128)*n+64;if(n>=2){var a=Math.floor(n/7)+2;r-=(25*a-10)*a-55,n>=7&&(r-=36)}return ro(208<=r&&r<=29648),r}},{key:"getNumDataCodewords",value:function(n,r){return Math.floor(e.getNumRawDataModules(n)/8)-e.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n]*e.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n]}},{key:"reedSolomonComputeDivisor",value:function(n){if(n<1||n>255)throw new RangeError("Degree out of range");for(var r=[],a=0;a>>8||r>>>8)throw new RangeError("Byte out of range");for(var a=0,o=7;o>=0;o--)a=a<<1^(a>>>7)*285,a^=(r>>>o&1)*n;return ro(a>>>8==0),a}}]),e})();q(vl,"MIN_VERSION",1);q(vl,"MAX_VERSION",40);q(vl,"PENALTY_N1",3);q(vl,"PENALTY_N2",3);q(vl,"PENALTY_N3",40);q(vl,"PENALTY_N4",10);q(vl,"ECC_CODEWORDS_PER_BLOCK",[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]]);q(vl,"NUM_ERROR_CORRECTION_BLOCKS",[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]]);var zge={L:Mo.LOW,M:Mo.MEDIUM,Q:Mo.QUARTILE,H:Mo.HIGH},Vz=128,Wz="L",Kz="#FFFFFF",qz="#000000",Uz=!1,Gz=1,Age=4,Bge=0,Hge=.1,Xz=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=[];return t.forEach(function(a,o){var i=null;a.forEach(function(l,c){if(!l&&i!==null){r.push("M".concat(i+n," ").concat(o+n,"h").concat(c-i,"v1H").concat(i+n,"z")),i=null;return}if(c===a.length-1){if(!l)return;i===null?r.push("M".concat(c+n,",").concat(o+n," h1v1H").concat(c+n,"z")):r.push("M".concat(i+n,",").concat(o+n," h").concat(c+1-i,"v1H").concat(i+n,"z"));return}l&&i===null&&(i=c)})}),r.join("")},Yz=function(t,n){return t.slice().map(function(r,a){return a=n.y+n.h?r:r.map(function(o,i){return i=n.x+n.w?o:!1})})},Vge=function(t,n,r,a){if(a==null)return null;var o=t.length+r*2,i=Math.floor(n*Hge),l=o/n,c=(a.width||i)*l,u=(a.height||i)*l,d=a.x==null?t.length/2-c/2:a.x*l,f=a.y==null?t.length/2-u/2:a.y*l,m=a.opacity==null?1:a.opacity,g=null;if(a.excavate){var h=Math.floor(d),b=Math.floor(f),p=Math.ceil(c+d-h),S=Math.ceil(u+f-b);g={x:h,y:b,w:p,h:S}}var C=a.crossOrigin;return{x:d,y:f,h:u,w:c,excavation:g,opacity:m,crossOrigin:C}},Wge=function(t,n){return n!=null?Math.max(Math.floor(n),0):t?Age:Bge},Kge=(function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0})(),Qz=function(t){var n=t.value,r=t.level,a=t.minVersion,o=t.includeMargin,i=t.marginSize,l=t.imageSettings,c=t.size,u=t.boostLevel,d=Q.useMemo(function(){var f=Array.isArray(n)?n:[n],m=f.reduce(function(g,h){return g.push.apply(g,Te(zs.makeSegments(h))),g},[]);return vl.encodeSegments(m,zge[r],a,void 0,void 0,u)},[n,r,a,u]);return Q.useMemo(function(){var f=d.getModules(),m=Wge(o,i),g=f.length+m*2,h=Vge(f,c,m,l);return{cells:f,margin:m,numCells:g,calculatedImageSettings:h,qrcode:d}},[d,c,l,o,i])},qge=["value","size","level","bgColor","fgColor","includeMargin","minVersion","marginSize","style","imageSettings","boostLevel"],Uge=Q.forwardRef(function(e,t){var n=e.value,r=e.size,a=r===void 0?Vz:r,o=e.level,i=o===void 0?Wz:o,l=e.bgColor,c=l===void 0?Kz:l,u=e.fgColor,d=u===void 0?qz:u,f=e.includeMargin,m=f===void 0?Uz:f,g=e.minVersion,h=g===void 0?Gz:g,b=e.marginSize,p=e.style,S=e.imageSettings,C=e.boostLevel,x=Ue(e,qge),w=S?.src,$=Q.useRef(null),E=Q.useRef(null),P=Q.useCallback(function(z){$.current=z,typeof t=="function"?t(z):t&&(t.current=z)},[t]),M=Q.useState(!1),O=fe(M,2),T=O[1],N=Qz({value:n,level:i,minVersion:h,includeMargin:m,marginSize:b,imageSettings:S,size:a,boostLevel:C}),D=N.margin,L=N.cells,_=N.numCells,F=N.calculatedImageSettings;Q.useEffect(function(){if($.current){var z=$.current,V=z.getContext("2d");if(!V)return;var H=L,B=E.current,K=F!=null&&B!==null&&B.complete&&B.naturalHeight!==0&&B.naturalWidth!==0;K&&F.excavation!=null&&(H=Yz(L,F.excavation));var W=window.devicePixelRatio||1;z.height=z.width=a*W;var G=a/_*W;V.scale(G,G),V.fillStyle=c,V.fillRect(0,0,_,_),V.fillStyle=d,Kge?V.fill(new Path2D(Xz(H,D))):L.forEach(function(X,Y){X.forEach(function(Z,ee){Z&&V.fillRect(ee+D,Y+D,1,1)})}),F&&(V.globalAlpha=F.opacity),K&&V.drawImage(B,F.x+D,F.y+D,F.w,F.h)}}),Q.useEffect(function(){T(!1)},[w]);var j=R({height:a,width:a},p),k=null;return w!=null&&(k=Q.createElement("img",{alt:"QR-Code",src:w,key:w,style:{display:"none"},onLoad:function(){T(!0)},ref:E,crossOrigin:F?.crossOrigin})),Q.createElement(Q.Fragment,null,Q.createElement("canvas",xe({style:j,height:a,width:a,ref:P,role:"img"},x)),k)}),Gge=["value","size","level","bgColor","fgColor","includeMargin","minVersion","title","marginSize","imageSettings","boostLevel"],Xge=Q.forwardRef(function(e,t){var n=e.value,r=e.size,a=r===void 0?Vz:r,o=e.level,i=o===void 0?Wz:o,l=e.bgColor,c=l===void 0?Kz:l,u=e.fgColor,d=u===void 0?qz:u,f=e.includeMargin,m=f===void 0?Uz:f,g=e.minVersion,h=g===void 0?Gz:g,b=e.title,p=e.marginSize,S=e.imageSettings,C=e.boostLevel,x=Ue(e,Gge),w=Qz({value:n,level:i,minVersion:h,includeMargin:m,marginSize:p,imageSettings:S,size:a,boostLevel:C}),$=w.margin,E=w.cells,P=w.numCells,M=w.calculatedImageSettings,O=E,T=null;S!=null&&M!=null&&(M.excavation!=null&&(O=Yz(E,M.excavation)),T=Q.createElement("image",{href:S.src,height:M.h,width:M.w,x:M.x+$,y:M.y+$,preserveAspectRatio:"none",opacity:M.opacity,crossOrigin:M.crossOrigin}));var N=Xz(O,$);return Q.createElement("svg",xe({height:a,width:a,viewBox:"0 0 ".concat(P," ").concat(P),ref:t,role:"img"},x),!!b&&Q.createElement("title",null,b),Q.createElement("path",{fill:c,d:"M0,0 h".concat(P,"v").concat(P,"H0z"),shapeRendering:"crispEdges"}),Q.createElement("path",{fill:d,d:N,shapeRendering:"crispEdges"}),T)}),Yge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"},Qge=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:Yge}))},Zz=s.forwardRef(Qge);const Zge=Q.createElement(ki,null);function Jge({prefixCls:e,locale:t,onRefresh:n,statusRender:r,status:a}){const o=Q.createElement(Q.Fragment,null,Q.createElement("p",{className:`${e}-expired`},t?.expired),n&&Q.createElement(cr,{type:"link",icon:Q.createElement(Zz,null),onClick:n},t?.refresh)),i=Q.createElement("p",{className:`${e}-scanned`},t?.scanned),l={expired:o,loading:Zge,scanned:i};return(r??(d=>l[d.status]))({status:a,locale:t,onRefresh:n})}const epe=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorSplit:a}=e;return{[t]:Object.assign(Object.assign({},fn(e)),{display:"flex",justifyContent:"center",alignItems:"center",padding:e.paddingSM,backgroundColor:e.colorWhite,borderRadius:e.borderRadiusLG,border:`${ce(n)} ${r} ${a}`,position:"relative",overflow:"hidden",[`& > ${t}-mask`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:10,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",color:e.colorText,lineHeight:e.lineHeight,background:e.QRCodeMaskBackgroundColor,textAlign:"center",[`& > ${t}-expired, & > ${t}-scanned`]:{color:e.QRCodeTextColor}},"> canvas":{alignSelf:"stretch",flex:"auto",minWidth:0},"&-icon":{marginBlockEnd:e.marginXS,fontSize:e.controlHeight}}),[`${t}-borderless`]:{borderColor:"transparent",padding:0,borderRadius:0}}},tpe=e=>({QRCodeMaskBackgroundColor:new dn(e.colorBgContainer).setA(.96).toRgbString()}),npe=rn("QRCode",e=>{const t=Xt(e,{QRCodeTextColor:e.colorText});return epe(t)},tpe);var rpe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var t,n,r,a;const[,o]=Rr(),{value:i,type:l="canvas",icon:c="",size:u=160,iconSize:d,color:f=o.colorText,errorLevel:m="M",status:g="active",bordered:h=!0,onRefresh:b,style:p,className:S,rootClassName:C,prefixCls:x,bgColor:w="transparent",statusRender:$,boostLevel:E}=e,P=rpe(e,["value","type","icon","size","iconSize","color","errorLevel","status","bordered","onRefresh","style","className","rootClassName","prefixCls","bgColor","statusRender","boostLevel"]),{getPrefixCls:M}=s.useContext(Ot),O=M("qrcode",x),[T,N,D]=npe(O),L={src:c,x:void 0,y:void 0,height:typeof d=="number"?d:(t=d?.height)!==null&&t!==void 0?t:40,width:typeof d=="number"?d:(n=d?.width)!==null&&n!==void 0?n:40,excavate:!0,crossOrigin:"anonymous"},_=Qn(P,!0),F=Qt(P,Object.keys(_)),j=Object.assign({value:i,size:u,level:m,bgColor:w,fgColor:f,style:{width:p?.width,height:p?.height},imageSettings:c?L:void 0,boostLevel:E},_),[k]=zr("QRCode");if(!i)return null;const z=le(O,S,C,N,D,{[`${O}-borderless`]:!h}),V=Object.assign(Object.assign({backgroundColor:w},p),{width:(r=p?.width)!==null&&r!==void 0?r:u,height:(a=p?.height)!==null&&a!==void 0?a:u});return T(Q.createElement("div",Object.assign({},F,{className:z,style:V}),g!=="active"&&Q.createElement("div",{className:`${O}-mask`},Q.createElement(Jge,{prefixCls:O,locale:k,status:g,onRefresh:b,statusRender:$})),l==="canvas"?Q.createElement(Uge,Object.assign({},j)):Q.createElement(Xge,Object.assign({},j))))};var ape={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},ope=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:ape}))},ipe=s.forwardRef(ope);function lpe(e,t){var n=e.disabled,r=e.prefixCls,a=e.character,o=e.characterRender,i=e.index,l=e.count,c=e.value,u=e.allowHalf,d=e.focused,f=e.onHover,m=e.onClick,g=function($){f($,i)},h=function($){m($,i)},b=function($){$.keyCode===lt.ENTER&&m($,i)},p=i+1,S=new Set([r]);c===0&&i===0&&d?S.add("".concat(r,"-focused")):u&&c+.5>=p&&ci?"true":"false","aria-posinset":i+1,"aria-setsize":l,tabIndex:n?-1:0},Q.createElement("div",{className:"".concat(r,"-first")},C),Q.createElement("div",{className:"".concat(r,"-second")},C)));return o&&(x=o(x,e)),x}const spe=Q.forwardRef(lpe);function cpe(){var e=s.useRef({});function t(r){return e.current[r]}function n(r){return function(a){e.current[r]=a}}return[t,n]}function upe(e){var t=e.pageXOffset,n="scrollLeft";if(typeof t!="number"){var r=e.document;t=r.documentElement[n],typeof t!="number"&&(t=r.body[n])}return t}function dpe(e){var t,n,r=e.ownerDocument,a=r.body,o=r&&r.documentElement,i=e.getBoundingClientRect();return t=i.left,n=i.top,t-=o.clientLeft||a.clientLeft||0,n-=o.clientTop||a.clientTop||0,{left:t,top:n}}function fpe(e){var t=dpe(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=upe(r),t.left}var vpe=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function mpe(e,t){var n=e.prefixCls,r=n===void 0?"rc-rate":n,a=e.className,o=e.defaultValue,i=e.value,l=e.count,c=l===void 0?5:l,u=e.allowHalf,d=u===void 0?!1:u,f=e.allowClear,m=f===void 0?!0:f,g=e.keyboard,h=g===void 0?!0:g,b=e.character,p=b===void 0?"★":b,S=e.characterRender,C=e.disabled,x=e.direction,w=x===void 0?"ltr":x,$=e.tabIndex,E=$===void 0?0:$,P=e.autoFocus,M=e.onHoverChange,O=e.onChange,T=e.onFocus,N=e.onBlur,D=e.onKeyDown,L=e.onMouseLeave,_=Ue(e,vpe),F=cpe(),j=fe(F,2),k=j[0],z=j[1],V=Q.useRef(null),H=function(){if(!C){var je;(je=V.current)===null||je===void 0||je.focus()}};Q.useImperativeHandle(t,function(){return{focus:H,blur:function(){if(!C){var je;(je=V.current)===null||je===void 0||je.blur()}}}});var B=Tt(o||0,{value:i}),K=fe(B,2),W=K[0],G=K[1],X=Tt(null),Y=fe(X,2),Z=Y[0],ee=Y[1],re=function(je,De){var ke=w==="rtl",_e=je+1;if(d){var Re=k(je),Le=fpe(Re),Me=Re.clientWidth;(ke&&De-Le>Me/2||!ke&&De-Le0&&!ke||De===lt.RIGHT&&W>0&&ke?(ne(W-_e),je.preventDefault()):De===lt.LEFT&&W{const{componentCls:t}=e;return{[`${t}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:e.marginXS},"> div":{transition:`all ${e.motionDurationMid}, outline 0s`,"&:hover":{transform:e.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${ce(e.lineWidth)} dashed ${e.starColor}`,transform:e.starHoverScale}},"&-first, &-second":{color:e.starBg,transition:`all ${e.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${t}-star-first, &-half ${t}-star-second`]:{opacity:1},[`&-half ${t}-star-first, &-full ${t}-star-second`]:{color:"inherit"}}}},hpe=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),bpe=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},fn(e)),{display:"inline-block",margin:0,padding:0,color:e.starColor,fontSize:e.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${t} ${t}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),ppe(e)),hpe(e))}},ype=e=>({starColor:e.yellow6,starSize:e.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:e.colorFillContent}),Cpe=rn("Rate",e=>{const t=Xt(e,{});return bpe(t)},ype);var Spe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,className:r,rootClassName:a,style:o,tooltips:i,character:l=s.createElement(ipe,null),disabled:c}=e,u=Spe(e,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),d=($,{index:E})=>i?s.createElement(tr,{title:i[E]},$):$,{getPrefixCls:f,direction:m,rate:g}=s.useContext(Ot),h=f("rate",n),[b,p,S]=Cpe(h),C=Object.assign(Object.assign({},g?.style),o),x=s.useContext(Sr),w=c??x;return b(s.createElement(gpe,Object.assign({ref:t,character:l,characterRender:d,disabled:w},u,{className:le(r,a,p,S,g?.className),style:C,prefixCls:h,direction:m})))});var xpe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"},wpe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:xpe}))},$pe=s.forwardRef(wpe);const Epe=()=>s.createElement("svg",{width:"252",height:"294"},s.createElement("title",null,"No Found"),s.createElement("g",{fill:"none",fillRule:"evenodd"},s.createElement("circle",{cx:"126.75",cy:"128.1",r:"126",fill:"#E4EBF7"}),s.createElement("circle",{cx:"31.55",cy:"130.8",r:"8.3",fill:"#FFF"}),s.createElement("path",{stroke:"#FFF",d:"m37 134.3 10.5 6m.9 6.2-12.7 10.8",strokeWidth:"2"}),s.createElement("path",{fill:"#FFF",d:"M39.9 159.4a5.7 5.7 0 1 1-11.3-1.2 5.7 5.7 0 0 1 11.3 1.2m17.7-16.2a5.7 5.7 0 1 1-11.4-1.1 5.7 5.7 0 0 1 11.4 1.1M99 27h29.8a4.6 4.6 0 1 0 0-9.2H99a4.6 4.6 0 1 0 0 9.2m11.4 18.3h29.8a4.6 4.6 0 0 0 0-9.2h-29.8a4.6 4.6 0 1 0 0 9.2"}),s.createElement("path",{fill:"#FFF",d:"M112.8 26.9h15.8a4.6 4.6 0 1 0 0 9.1h-15.8a4.6 4.6 0 0 0 0-9.1m71.7 108.8a10 10 0 1 1-19.8-2 10 10 0 0 1 19.8 2"}),s.createElement("path",{stroke:"#FFF",d:"m179.3 141.8 12.6 7.1m1.1 7.6-15.2 13",strokeWidth:"2"}),s.createElement("path",{fill:"#FFF",d:"M184.7 170a6.8 6.8 0 1 1-13.6-1.3 6.8 6.8 0 0 1 13.6 1.4m18.6-16.8a6.9 6.9 0 1 1-13.7-1.4 6.9 6.9 0 0 1 13.7 1.4"}),s.createElement("path",{stroke:"#FFF",d:"M152 192.3a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.4 0zm73.3-76.2a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0zm-9 35a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.5 0zM177 107.6a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm18.4-15.4a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0zm6.8 88.5a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0z",strokeWidth:"2"}),s.createElement("path",{stroke:"#FFF",d:"m214.4 153.3-2 20.2-10.8 6m-28-4.7-6.3 9.8H156l-4.5 6.5m23.5-66v-15.7m46 7.8-13 8-15.2-8V94.4",strokeWidth:"2"}),s.createElement("path",{fill:"#FFF",d:"M166.6 66h-4a4.8 4.8 0 0 1-4.7-4.8 4.8 4.8 0 0 1 4.7-4.7h4a4.8 4.8 0 0 1 4.7 4.7 4.8 4.8 0 0 1-4.7 4.7"}),s.createElement("circle",{cx:"204.3",cy:"30",r:"29.5",fill:"#1677ff"}),s.createElement("path",{fill:"#FFF",d:"M206 38.4c.5.5.7 1.1.7 2s-.2 1.4-.7 1.9a3 3 0 0 1-2 .7c-.8 0-1.5-.3-2-.8s-.8-1.1-.8-1.9.3-1.4.8-2c.5-.4 1.2-.7 2-.7.7 0 1.4.3 2 .8m4.2-19.5c1.5 1.3 2.2 3 2.2 5.2a7.2 7.2 0 0 1-1.5 4.5l-3 2.7a5 5 0 0 0-1.3 1.7 5.2 5.2 0 0 0-.6 2.4v.5h-4v-.5c0-1.4.1-2.5.6-3.5s1.9-2.5 4.2-4.5l.4-.5a4 4 0 0 0 1-2.6c0-1.2-.4-2-1-2.8-.7-.6-1.6-1-2.9-1-1.5 0-2.6.5-3.3 1.5-.4.5-.6 1-.8 1.9a2 2 0 0 1-2 1.6 2 2 0 0 1-2-2.4c.4-1.6 1-2.8 2.1-3.8a8.5 8.5 0 0 1 6.3-2.3c2.3 0 4.2.6 5.6 2"}),s.createElement("path",{fill:"#FFB594",d:"M52 76.1s21.8 5.4 27.3 16c5.6 10.7-6.3 9.2-15.7 5C52.8 92 39 85 52 76"}),s.createElement("path",{fill:"#FFC6A0",d:"m90.5 67.5-.5 2.9c-.7.5-4.7-2.7-4.7-2.7l-1.7.8-1.3-5.7s6.8-4.6 9-5c2.4-.5 9.8 1 10.6 2.3 0 0 1.3.4-2.2.6-3.6.3-5 .5-6.8 3.2l-2.4 3.6"}),s.createElement("path",{fill:"#FFF",d:"M128 111.4a36.7 36.7 0 0 0-8.9-15.5c-3.5-3-9.3-2.2-11.3-4.2-1.3-1.2-3.2-1.2-3.2-1.2L87.7 87c-2.3-.4-2.1-.7-6-1.4-1.6-1.9-3-1.1-3-1.1l-7-1.4c-1-1.5-2.5-1-2.5-1l-2.4-.9C65 91.2 59 95 59 95c1.8 1.1 15.7 8.3 15.7 8.3l5.1 37.1s-3.3 5.7 1.4 9.1c0 0 19.9-3.7 34.9-.3 0 0 3-2.6 1-8.8.5-3 1.4-8.3 1.7-11.6.4.7 2 1.9 3.1 3.4 0 0 9.4-7.3 11-14a17 17 0 0 1-2.2-2.4c-.5-.8-.3-2-.7-2.8-.7-1-1.8-1.3-2-1.6"}),s.createElement("path",{fill:"#CBD1D1",d:"M101 290s4.4 2 7.4 1c2.9-1 4.6.7 7.1 1.2 2.6.5 6.9 1.1 11.7-1.3 0-5.5-6.9-4-12-6.7-2.5-1.4-3.7-4.7-3.5-8.8h-9.5s-1.2 10.6-1 14.6"}),s.createElement("path",{fill:"#2B0849",d:"M101 289.8s2.5 1.3 6.8.7c3-.5 3.7.5 7.4 1 3.8.6 10.8 0 11.9-.9.4 1.1-.4 2-.4 2s-1.5.7-4.8.9c-2 .1-5.8.3-7.6-.5-1.8-1.4-5.2-1.9-5.7-.2-4 1-7.4-.3-7.4-.3l-.1-2.7z"}),s.createElement("path",{fill:"#A4AABA",d:"M108.3 276h3.1s0 6.7 4.6 8.6c-4.7.6-8.6-2.3-7.7-8.6"}),s.createElement("path",{fill:"#CBD1D1",d:"M57.5 272.4s-2 7.4-4.4 12.3c-1.8 3.7-4.3 7.5 5.4 7.5 6.7 0 9-.5 7.4-6.6-1.5-6.1.3-13.2.3-13.2h-8.7z"}),s.createElement("path",{fill:"#2B0849",d:"M51.5 289.8s2 1.2 6.6 1.2c6 0 8.3-1.7 8.3-1.7s.6 1.1-.7 2.2c-1 .8-3.6 1.6-7.4 1.5-4.1 0-5.8-.5-6.7-1.1-.8-.6-.7-1.6-.1-2.1"}),s.createElement("path",{fill:"#A4AABA",d:"M58.4 274.3s0 1.5-.3 3c-.3 1.4-1 3-1.1 4 0 1.2 4.5 1.7 5.1.1.6-1.5 1.3-6.4 2-7.2.6-.9-5-2.2-5.7.1"}),s.createElement("path",{fill:"#7BB2F9",d:"m99.7 278.5 13.3.1s1.3-54.5 1.9-64.4c.5-9.9 3.8-43.4 1-63.1l-12.6-.7-22.8.8-1.2 10c0 .5-.7.8-.7 1.4-.1.5.4 1.3.3 2-2.4 14-6.4 33-8.8 46.6 0 .7-1.2 1-1.4 2.7 0 .3.2 1.5 0 1.8-6.8 18.7-10.9 47.8-14.2 61.9h14.6s2.2-8.6 4-17c2.9-12.9 23.2-85 23.2-85l3-.5 1 46.3s-.2 1.2.4 2c.5.8-.6 1.1-.4 2.3l.4 1.8-1 11.8c-.4 4.8 0 39.2 0 39.2"}),s.createElement("path",{stroke:"#648BD8",d:"M76 221.6c1.2.1 4.1-2 7-5m23.4 8.5s2.7-1 6-3.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#648BD8",d:"M107.3 222.1s2.7-1.1 6-3.9",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{stroke:"#648BD8",d:"M74.7 224.8s2.7-.6 6.5-3.4m4.8-69.8c-.2 3.1.3 8.6-4.3 9.2m22-11s0 14-1.4 15.1a15 15 0 0 1-3 2m.5-16.5s0 13-1.2 24.4m-5 1.1s7.3-1.7 9.5-1.7M74.3 206a212 212 0 0 1-1 4.5s-1.4 1.9-1 3.8c.5 2-1 2-5 15.4A353 353 0 0 0 61 257l-.2 1.2m14.9-60.5a321 321 0 0 1-.9 4.8m7.8-50.4-1.2 10.5s-1.1.1-.5 2.2c.1 1.4-2.7 15.8-5.2 30.5m-19.6 79h13.3",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{fill:"#192064",d:"M116.2 148.2s-17-3-35.9.2c.2 2.5 0 4.2 0 4.2s14.7-2.8 35.7-.3c.3-2.4.2-4 .2-4"}),s.createElement("path",{fill:"#FFF",d:"M106.3 151.2v-5a.8.8 0 0 0-.8-.8h-7.8a.8.8 0 0 0-.8.8v5a.8.8 0 0 0 .8.8h7.8a.8.8 0 0 0 .8-.8"}),s.createElement("path",{fill:"#192064",d:"M105.2 150.2v-3a.6.6 0 0 0-.6-.7 94.3 94.3 0 0 0-5.9 0 .7.7 0 0 0-.6.6v3.1a.6.6 0 0 0 .6.7 121.1 121.1 0 0 1 5.8 0c.4 0 .7-.3.7-.7"}),s.createElement("path",{stroke:"#648BD8",d:"M100.3 275.4h12.3m-11.2-4.9.1 6.5m0-12.5a915.8 915.8 0 0 0 0 4.4m-.5-94 .9 44.7s.7 1.6-.2 2.7c-1 1.1 2.4.7.9 2.2-1.6 1.6.9 1.2 0 3.4-.6 1.5-1 21.1-1.1 35.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{fill:"#FFC6A0",d:"M46.9 83.4s-.5 6 7.2 5.6c11.2-.7 9.2-9.4 31.5-21.7-.7-2.7-2.4-4.7-2.4-4.7s-11 3-22.6 8c-6.8 3-13.4 6.4-13.7 12.8m57.6 7.7.9-5.4-8.9-11.4-5 5.3-1.8 7.9a.3.3 0 0 0 .1.3c1 .8 6.5 5 14.4 3.5a.3.3 0 0 0 .3-.2"}),s.createElement("path",{fill:"#FFC6A0",d:"M94 79.4s-4.6-2.9-2.5-6.9c1.6-3 4.5 1.2 4.5 1.2s.5-3.7 3.1-3.7c.6-1 1.6-4.1 1.6-4.1l13.5 3c0 5.3-2.3 19.5-7.8 20-8.9.6-12.5-9.5-12.5-9.5"}),s.createElement("path",{fill:"#520038",d:"M113.9 73.4c2.6-2 3.4-9.7 3.4-9.7s-2.4-.5-6.6-2c-4.7-2.1-12.8-4.8-17.5 1-9.6 3.2-2 19.8-2 19.8l2.7-3s-4-3.3-2-6.3c2-3.5 3.8 1 3.8 1s.7-2.3 3.6-3.3c.4-.7 1-2.6 1.4-3.8a1 1 0 0 1 1.3-.7l11.4 2.6c.5.2.8.7.8 1.2l-.3 3.2z"}),s.createElement("path",{fill:"#552950",d:"M105 76c-.1.7-.6 1.1-1 1-.6 0-.9-.6-.8-1.2.1-.6.6-1 1-1 .6 0 .9.7.8 1.3m7.1 1.6c0 .6-.5 1-1 1-.5-.1-.8-.7-.7-1.3 0-.6.5-1 1-1 .5.1.8.7.7 1.3"}),s.createElement("path",{stroke:"#DB836E",d:"m110.1 74.8-.9 1.7-.3 4.3h-2.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#5C2552",d:"M110.8 74.5s1.8-.7 2.6.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#DB836E",d:"M92.4 74.3s.5-1.1 1.1-.7c.6.4 1.3 1.4.6 2-.8.5.1 1.6.1 1.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#5C2552",d:"M103.3 73s1.8 1 4.1.9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#DB836E",d:"M103.7 81.8s2.2 1.2 4.4 1.2m-3.5 1.3s1 .4 1.6.3m-11.5-3.4s2.3 7.4 10.4 7.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#E4EBF7",d:"M81.5 89.4s.4 5.6-5 12.8M69 82.7s-.7 9.2-8.2 14.2m68.6 26s-5.3 7.4-9.4 10.7m-.7-26.3s.5 4.4-2.1 32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{fill:"#F2D7AD",d:"M150 151.2h-49.8a1 1 0 0 1-1-1v-31.7c0-.5.4-1 1-1H150c.6 0 1 .5 1 1v31.7a1 1 0 0 1-1 1"}),s.createElement("path",{fill:"#F4D19D",d:"M150.3 151.2h-19.9v-33.7h20.8v32.8a1 1 0 0 1-1 1"}),s.createElement("path",{fill:"#F2D7AD",d:"M123.6 127.9H92.9a.5.5 0 0 1-.4-.8l6.4-9.1c.2-.3.5-.5.8-.5h31.1l-7.2 10.4z"}),s.createElement("path",{fill:"#CC9B6E",d:"M123.7 128.4H99.2v-.5h24.2l7.2-10.2.4.3z"}),s.createElement("path",{fill:"#F4D19D",d:"M158.3 127.9h-18.7a2 2 0 0 1-1.6-.8l-7.2-9.6h20c.5 0 1 .3 1.2.6l6.7 9a.5.5 0 0 1-.4.8"}),s.createElement("path",{fill:"#CC9B6E",d:"M157.8 128.5h-19.3l-7.9-10.5.4-.3 7.7 10.3h19.1zm-27.2 22.2v-8.2h.4v8.2zm-.1-10.9v-21.4h.4l.1 21.4zm-18.6 1.1-.5-.1 1.5-5.2.5.2zm-3.5.2-2.6-3 2.6-3.4.4.3-2.4 3.1 2.4 2.6zm8.2 0-.4-.4 2.4-2.6-2.4-3 .4-.4 2.7 3.4z"}),s.createElement("path",{fill:"#FFC6A0",d:"m154.3 131.9-3.1-2v3.5l-1 .1a85 85 0 0 1-4.8.3c-1.9 0-2.7 2.2 2.2 2.6l-2.6-.6s-2.2 1.3.5 2.3c0 0-1.6 1.2.6 2.6-.6 3.5 5.2 4 7 3.6a6.1 6.1 0 0 0 4.6-5.2 8 8 0 0 0-3.4-7.2"}),s.createElement("path",{stroke:"#DB836E",d:"M153.7 133.6s-6.5.4-8.4.3c-1.8 0-1.9 2.2 2.4 2.3 3.7.2 5.4 0 5.4 0",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#DB836E",d:"M145.2 135.9c-1.9 1.3.5 2.3.5 2.3s3.5 1 6.8.6m-.6 2.9s-6.3.1-6.7-2.1c-.3-1.4.4-1.4.4-1.4m.5 2.7s-1 3.1 5.5 3.5m-.4-14.5v3.5M52.8 89.3a18 18 0 0 0 13.6-7.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{fill:"#5BA02E",d:"M168.6 248.3a6.6 6.6 0 0 1-6.7-6.6v-66.5a6.6 6.6 0 1 1 13.3 0v66.5a6.6 6.6 0 0 1-6.6 6.6"}),s.createElement("path",{fill:"#92C110",d:"M176.5 247.7a6.6 6.6 0 0 1-6.6-6.7v-33.2a6.6 6.6 0 1 1 13.3 0V241a6.6 6.6 0 0 1-6.7 6.7"}),s.createElement("path",{fill:"#F2D7AD",d:"M186.4 293.6H159a3.2 3.2 0 0 1-3.2-3.2v-46.1a3.2 3.2 0 0 1 3.2-3.2h27.5a3.2 3.2 0 0 1 3.2 3.2v46.1a3.2 3.2 0 0 1-3.2 3.2"}),s.createElement("path",{stroke:"#E4EBF7",d:"M89 89.5s7.8 5.4 16.6 2.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}))),Ppe=()=>s.createElement("svg",{width:"254",height:"294"},s.createElement("title",null,"Server Error"),s.createElement("g",{fill:"none",fillRule:"evenodd"},s.createElement("path",{fill:"#E4EBF7",d:"M0 128.1v-2C0 56.5 56.3.2 125.7.2h2.1C197.2.3 253.5 56.6 253.5 126v2.1c0 69.5-56.3 125.7-125.7 125.7h-2.1A125.7 125.7 0 0 1 0 128.1"}),s.createElement("path",{fill:"#FFF",d:"M40 132.1a8.3 8.3 0 1 1-16.6-1.7 8.3 8.3 0 0 1 16.6 1.7"}),s.createElement("path",{stroke:"#FFF",d:"m37.2 135.6 10.5 6m1 6.3-12.8 10.8",strokeWidth:"2"}),s.createElement("path",{fill:"#FFF",d:"M40.1 160.8a5.7 5.7 0 1 1-11.3-1.1 5.7 5.7 0 0 1 11.3 1.1M58 144.6a5.7 5.7 0 1 1-11.4-1.2 5.7 5.7 0 0 1 11.4 1.2M99.7 27.4h30a4.6 4.6 0 1 0 0-9.2h-30a4.6 4.6 0 0 0 0 9.2M111 46h30a4.6 4.6 0 1 0 0-9.3h-30a4.6 4.6 0 1 0 0 9.3m2.5-18.6h16a4.6 4.6 0 1 0 0 9.3h-16a4.6 4.6 0 0 0 0-9.3m36.7 42.7h-4a4.8 4.8 0 0 1-4.8-4.8 4.8 4.8 0 0 1 4.8-4.8h4a4.8 4.8 0 0 1 4.7 4.8 4.8 4.8 0 0 1-4.7 4.8"}),s.createElement("circle",{cx:"201.35",cy:"30.2",r:"29.7",fill:"#FF603B"}),s.createElement("path",{fill:"#FFF",d:"m203.6 19.4-.7 15a1.5 1.5 0 0 1-3 0l-.7-15a2.2 2.2 0 1 1 4.4 0m-.3 19.4c.5.5.8 1.1.8 1.9s-.3 1.4-.8 1.9a3 3 0 0 1-2 .7 2.5 2.5 0 0 1-1.8-.7c-.6-.6-.8-1.2-.8-2 0-.7.2-1.3.8-1.8.5-.5 1.1-.7 1.8-.7.8 0 1.5.2 2 .7"}),s.createElement("path",{fill:"#FFB594",d:"M119.3 133.3c4.4-.6 3.6-1.2 4-4.8.8-5.2-3-17-8.2-25.1-1-10.7-12.6-11.3-12.6-11.3s4.3 5 4.2 16.2c1.4 5.3.8 14.5.8 14.5s5.3 11.4 11.8 10.5"}),s.createElement("path",{fill:"#FFF",d:"M101 91.6s1.4-.6 3.2.6c8 1.4 10.3 6.7 11.3 11.4 1.8 1.2 1.8 2.3 1.8 3.5l1.5 3s-7.2 1.7-11 6.7c-1.3-6.4-6.9-25.2-6.9-25.2"}),s.createElement("path",{fill:"#FFB594",d:"m94 90.5 1-5.8-9.2-11.9-5.2 5.6-2.6 9.9s8.4 5 16 2.2"}),s.createElement("path",{fill:"#FFC6A0",d:"M83 78.2s-4.6-2.9-2.5-6.9c1.6-3 4.5 1.2 4.5 1.2s.5-3.7 3.2-3.7c.5-1 1.5-4.2 1.5-4.2l13.6 3.2c0 5.2-2.3 19.5-7.9 20-8.9.6-12.5-9.6-12.5-9.6"}),s.createElement("path",{fill:"#520038",d:"M103 72.2c2.6-2 3.5-9.7 3.5-9.7s-2.5-.5-6.7-2c-4.7-2.2-12.9-4.9-17.6.9-9.5 4.4-2 20-2 20l2.7-3.1s-4-3.3-2.1-6.3c2.2-3.5 4 1 4 1s.6-2.3 3.5-3.3c.4-.7 1-2.7 1.5-3.8A1 1 0 0 1 91 65l11.5 2.7c.5.1.8.6.8 1.2l-.3 3.2z"}),s.createElement("path",{fill:"#552950",d:"M101.2 76.5c0 .6-.6 1-1 1-.5-.1-.9-.7-.8-1.3.1-.6.6-1 1.1-1 .5.1.8.7.7 1.3m-7-1.4c0 .6-.5 1-1 1-.5-.1-.8-.7-.7-1.3 0-.6.6-1 1-1 .5.1.9.7.8 1.3"}),s.createElement("path",{stroke:"#DB836E",d:"m99.2 73.6-.9 1.7-.3 4.3h-2.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#5C2552",d:"M100 73.3s1.7-.7 2.4.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#DB836E",d:"M81.4 73s.4-1 1-.6c.7.4 1.4 1.4.6 2s.2 1.6.2 1.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#5C2552",d:"M92.3 71.7s1.9 1.1 4.2 1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#DB836E",d:"M92.7 80.6s2.3 1.2 4.4 1.2m-3.4 1.4s1 .4 1.5.3M83.7 80s1.8 6.6 9.2 8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#E4EBF7",d:"M95.5 91.7s-1 2.8-8.2 2c-7.3-.6-10.3-5-10.3-5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{fill:"#FFF",d:"M78.1 87.5s6.6 5 16.5 2.5c0 0 9.6 1 11.5 5.3 5.4 11.8.6 36.8 0 40 3.5 4-.4 8.4-.4 8.4-15.7-3.5-35.8-.6-35.8-.6-4.9-3.5-1.3-9-1.3-9l-6.2-23.8c-2.5-15.2.8-19.8 3.5-20.7 3-1 8-1.3 8-1.3.6 0 1.1 0 1.4-.2 2.4-1.3 2.8-.6 2.8-.6"}),s.createElement("path",{fill:"#FFC6A0",d:"M65.8 89.8s-6.8.5-7.6 8.2c-.4 8.8 3 11 3 11s6.1 22 16.9 22.9c8.4-2.2 4.7-6.7 4.6-11.4-.2-11.3-7-17-7-17s-4.3-13.7-9.9-13.7"}),s.createElement("path",{fill:"#FFC6A0",d:"M71.7 124.2s.9 11.3 9.8 6.5c4.8-2.5 7.6-13.8 9.8-22.6A201 201 0 0 0 94 96l-5-1.7s-2.4 5.6-7.7 12.3c-4.4 5.5-9.2 11.1-9.5 17.7"}),s.createElement("path",{stroke:"#E4EBF7",d:"M108.5 105.2s1.7 2.7-2.4 30.5c2.4 2.2 1 6-.2 7.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{fill:"#FFC6A0",d:"M123.3 131.5s-.5 2.8-11.8 2c-15.2-1-25.3-3.2-25.3-3.2l.9-5.8s.7.2 9.7-.1c11.9-.4 18.7-6 25-1 4 3.2 1.5 8.1 1.5 8.1"}),s.createElement("path",{fill:"#FFF",d:"M70.2 91s-5.6-4.8-11 2.7c-3.3 7.2.5 15.2 2.6 19.5-.3 3.8 2.4 4.3 2.4 4.3s0 1 1.5 2.7c4-7 6.7-9.1 13.7-12.5-.3-.7-1.9-3.3-1.8-3.8.2-1.7-1.3-2.6-1.3-2.6s-.3-.2-1.2-2.8c-.8-2.3-2-5.1-4.9-7.5"}),s.createElement("path",{fill:"#CBD1D1",d:"M90.2 288s4.9 2.3 8.3 1.2c3.2-1 5.2.7 8 1.3a20 20 0 0 0 13.3-1.4c-.2-6.2-7.8-4.5-13.6-7.6-2.9-1.6-4.2-5.3-4-10H91.5s-1.5 12-1.3 16.5"}),s.createElement("path",{fill:"#2B0849",d:"M90.2 287.8s2.8 1.5 7.6.8c3.5-.5 3.3.6 7.5 1.3 4.2.6 13-.2 14.3-1.2.5 1.3-.4 2.4-.4 2.4s-1.7.6-5.4.9c-2.3.1-8.1.3-10.2-.6-2-1.6-4.9-1.5-6-.3-4.5 1.1-7.2-.3-7.2-.3l-.2-3z"}),s.createElement("path",{fill:"#A4AABA",d:"M98.4 272.3h3.5s0 7.5 5.2 9.6c-5.3.7-9.7-2.6-8.7-9.6"}),s.createElement("path",{fill:"#CBD1D1",d:"M44.4 272s-2.2 7.8-4.7 13c-1.9 3.8-4.4 7.8 5.8 7.8 7 0 9.3-.5 7.7-7-1.6-6.3.3-13.8.3-13.8h-9z"}),s.createElement("path",{fill:"#2B0849",d:"M38 290.3s2.3 1.2 7 1.2c6.4 0 8.7-1.7 8.7-1.7s.6 1.1-.7 2.2c-1 1-3.8 1.7-7.7 1.7-4.4 0-6.1-.6-7-1.3-1-.5-.8-1.6-.2-2.1"}),s.createElement("path",{fill:"#A4AABA",d:"M45.3 274s0 1.6-.3 3.1-1.1 3.3-1.2 4.4c0 1.2 4.8 1.6 5.4 0 .7-1.6 1.4-6.8 2-7.6.7-.9-5.1-2.2-5.9.1"}),s.createElement("path",{fill:"#7BB2F9",d:"M89.5 277.6h13.9s1.3-56.6 1.9-66.8c.6-10.3 4-45.1 1-65.6l-13-.7-23.7.8-1.3 10.4c0 .5-.7.9-.8 1.4 0 .6.5 1.4.4 2L59.6 206c-.1.7-1.3 1-1.5 2.8 0 .3.2 1.6.1 1.8-7.1 19.5-12.2 52.6-15.6 67.2h15.1L62 259c3-13.3 24-88.3 24-88.3l3.2-1-.2 48.6s-.2 1.3.4 2.1c.5.8-.6 1.2-.4 2.4l.4 1.8-1 12.4c-.4 4.9 1.2 40.7 1.2 40.7"}),s.createElement("path",{stroke:"#648BD8",d:"M64.6 218.9c1.2 0 4.2-2.1 7.2-5.1m24.2 8.7s3-1.1 6.4-4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#648BD8",d:"M97 219.4s2.9-1.2 6.3-4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1"}),s.createElement("path",{stroke:"#648BD8",d:"M63.2 222.1s2.7-.6 6.7-3.5m5-72.4c-.3 3.2.3 8.8-4.5 9.4m22.8-11.3s.1 14.6-1.4 15.7c-2.3 1.7-3 2-3 2m.4-17s.3 13-1 25m-4.7.7s6.8-1 9.1-1M46 270l-.9 4.6m1.8-11.3-.8 4.1m16.6-64.9c-.3 1.6 0 2-.4 3.4 0 0-2.8 2-2.3 4s-.3 3.4-4.5 17.2c-1.8 5.8-4.3 19-6.2 28.3l-1.1 5.8m16-67-1 4.9m8.1-52.3-1.2 10.9s-1.2.1-.5 2.3c0 1.4-2.8 16.4-5.4 31.6m-20 82.1h13.9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{fill:"#192064",d:"M106.2 142.1c-3-.5-18.8-2.7-36.2.2a.6.6 0 0 0-.6.7v3a.6.6 0 0 0 .8.6c3.3-.5 17-2.4 35.6-.3.4 0 .7-.2.7-.5.2-1.4.2-2.5.2-3a.6.6 0 0 0-.5-.7"}),s.createElement("path",{fill:"#FFF",d:"M96.4 145.3v-5.1a.8.8 0 0 0-.8-.9 114.1 114.1 0 0 0-8.1 0 .8.8 0 0 0-.9.8v5.1c0 .5.4.9.9.9h8a.8.8 0 0 0 .9-.8"}),s.createElement("path",{fill:"#192064",d:"M95.2 144.3v-3.2a.7.7 0 0 0-.6-.7h-6.1a.7.7 0 0 0-.6.7v3.2c0 .4.3.7.6.7h6c.4 0 .7-.3.7-.7"}),s.createElement("path",{stroke:"#648BD8",d:"M90.1 273.5h12.8m-11.7-3.7v6.3m-.3-12.6v4.5m-.5-97.6 1 46.4s.7 1.6-.3 2.8c-.9 1.1 2.6.7 1 2.3-1.7 1.6.9 1.2 0 3.5-.6 1.6-1 22-1.2 36.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#E4EBF7",d:"M73.7 98.7 76 103s2 .8 1.8 2.7l.8 2.2m-14.3 8.7c.2-1 2.2-7.1 12.6-10.5m.7-16s7.7 6 16.5 2.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{fill:"#FFC6A0",d:"M92 87s5.5-.9 7.5-4.6c1.3-.3.8 2.2-.3 3.7l-1 1.5s.2.3.2.9c0 .6-.2.6-.3 1v1l-.4 1c-.1.2 0 .6-.2.9-.2.4-1.6 1.8-2.6 2.8-3.8 3.6-5 1.7-6-.4-1-1.8-.7-5.1-.9-6.9-.3-2.9-2.6-3-2-4.4.4-.7 3 .7 3.4 1.8.7 2 2.9 1.8 2.6 1.7"}),s.createElement("path",{stroke:"#DB836E",d:"M99.8 82.4c-.5.1-.3.3-1 1.3-.6 1-4.8 2.9-6.4 3.2-2.5.5-2.2-1.6-4.2-2.9-1.7-1-3.6-.6-1.4 1.4 1 1 1 1.1 1.4 3.2.3 1.5-.7 3.7.7 5.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),s.createElement("path",{stroke:"#E59788",d:"M79.5 108.7c-2 2.9-4.2 6.1-5.5 8.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),s.createElement("path",{fill:"#FFC6A0",d:"M87.7 124.8s-2-2-5.1-2.8c-3-.7-3.6-.1-5.5.1-2 .3-4-.9-3.7.7.3 1.7 5 1 5.2 2.1.2 1.1-6.3 2.8-8.3 2.2-.8.8.5 1.9 2 2.2.3 1.5 2.3 1.5 2.3 1.5s.7 1 2.6 1.1c2.5 1.3 9-.7 11-1.5 2-.9-.5-5.6-.5-5.6"}),s.createElement("path",{stroke:"#E59788",d:"M73.4 122.8s.7 1.2 3.2 1.4c2.3.3 2.6.6 2.6.6s-2.6 3-9.1 2.3m2.3 2.2s3.8 0 5-.7m-2.4 2.2s2 0 3.3-.6m-1 1.7s1.7 0 2.8-.5m-6.8-9s-.6-1.1 1.3-.5c1.7.5 2.8 0 5.1.1 1.4.1 3-.2 4 .2 1.6.8 3.6 2.2 3.6 2.2s10.6 1.2 19-1.1M79 108s-8.4 2.8-13.2 12.1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),s.createElement("path",{stroke:"#E4EBF7",d:"M109.3 112.5s3.4-3.6 7.6-4.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#E59788",d:"M107.4 123s9.7-2.7 11.4-.9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),s.createElement("path",{stroke:"#BFCDDD",d:"m194.6 83.7 4-4M187.2 91l3.7-3.6m.9-3-4.5-4.7m11.2 11.5-4.2-4.3m-65 76.3 3.7-3.7M122.3 170l3.5-3.5m.8-2.9-4.3-4.2M133 170l-4-4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),s.createElement("path",{fill:"#A3B4C6",d:"M190.2 211.8h-1.6a4 4 0 0 1-4-4v-32.1a4 4 0 0 1 4-4h1.6a4 4 0 0 1 4 4v32a4 4 0 0 1-4 4"}),s.createElement("path",{fill:"#A3B4C6",d:"M237.8 213a4.8 4.8 0 0 1-4.8 4.8h-86.6a4.8 4.8 0 0 1 0-9.6H233a4.8 4.8 0 0 1 4.8 4.8"}),s.createElement("path",{fill:"#A3B4C6",d:"M154.1 190.1h70.5v-84.6h-70.5z"}),s.createElement("path",{fill:"#BFCDDD",d:"M225 190.1h-71.2a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.2v19a3.2 3.2 0 0 1-3.2 3.2m0-59.3h-71.1a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.3v19a3.2 3.2 0 0 1-3.2 3.1"}),s.createElement("path",{fill:"#FFF",d:"M159.6 120.5a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8v-3.2c0-.4.3-.8.8-.8h22.4c.5 0 .8.4.8.8v3.2c0 .5-.3.8-.8.8"}),s.createElement("path",{fill:"#BFCDDD",d:"M225 160.5h-71.2a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.2v19a3.2 3.2 0 0 1-3.2 3.2"}),s.createElement("path",{stroke:"#7C90A5",d:"M173.5 130.8h49.3m-57.8 0h6m-15 0h6.7m11.1 29.8h49.3m-57.7 0h6m-15.8 0h6.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{fill:"#FFF",d:"M159.6 151a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8V147c0-.4.3-.8.8-.8h22.4c.5 0 .8.4.8.8v3.2c0 .5-.3.8-.8.8m-63 29a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.5 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8V176c0-.5.3-.8.8-.8h22.4c.5 0 .8.3.8.8v3.2c0 .4-.3.8-.8.8"}),s.createElement("path",{fill:"#BFCDDD",d:"M203 221.1h-27.3a2.4 2.4 0 0 1-2.4-2.4v-11.4a2.4 2.4 0 0 1 2.4-2.5H203a2.4 2.4 0 0 1 2.4 2.5v11.4a2.4 2.4 0 0 1-2.4 2.4"}),s.createElement("path",{stroke:"#A3B4C6",d:"M177.3 207.2v11.5m23.8-11.5v11.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{fill:"#5BA02E",d:"M162.9 267.9a9.4 9.4 0 0 1-9.4-9.4v-14.8a9.4 9.4 0 0 1 18.8 0v14.8a9.4 9.4 0 0 1-9.4 9.4"}),s.createElement("path",{fill:"#92C110",d:"M171.2 267.8a9.4 9.4 0 0 1-9.4-9.4V255a9.4 9.4 0 0 1 18.8 0v3.4a9.4 9.4 0 0 1-9.4 9.4"}),s.createElement("path",{fill:"#F2D7AD",d:"M181.3 293.7h-27.7a3.2 3.2 0 0 1-3.2-3.2v-20.7a3.2 3.2 0 0 1 3.2-3.2h27.7a3.2 3.2 0 0 1 3.2 3.2v20.7a3.2 3.2 0 0 1-3.2 3.2"}))),Ope=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:r,padding:a,paddingXL:o,paddingXS:i,paddingLG:l,marginXS:c,lineHeight:u}=e;return{[t]:{padding:`${ce(e.calc(l).mul(2).equal())} ${ce(o)}`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:l,textAlign:"center",[`& > ${r}`]:{fontSize:e.iconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.titleFontSize,lineHeight:n,marginBlock:c,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.subtitleFontSize,lineHeight:u,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:l,padding:`${ce(l)} ${ce(e.calc(a).mul(2.5).equal())}`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.extraMargin,textAlign:"center","& > *":{marginInlineEnd:i,"&:last-child":{marginInlineEnd:0}}}}},Rpe=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-success ${t}-icon > ${n}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${n}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${n}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${n}`]:{color:e.resultWarningIconColor}}},Ipe=e=>[Ope(e),Rpe(e)],Mpe=e=>Ipe(e),Tpe=e=>({titleFontSize:e.fontSizeHeading3,subtitleFontSize:e.fontSize,iconFontSize:e.fontSizeHeading3*3,extraMargin:`${e.paddingLG}px 0 0 0`}),Npe=rn("Result",e=>{const t=e.colorInfo,n=e.colorError,r=e.colorSuccess,a=e.colorWarning,o=Xt(e,{resultInfoIconColor:t,resultErrorIconColor:n,resultSuccessIconColor:r,resultWarningIconColor:a,imageWidth:250,imageHeight:295});return[Mpe(o)]},Tpe),_pe=()=>s.createElement("svg",{width:"251",height:"294"},s.createElement("title",null,"Unauthorized"),s.createElement("g",{fill:"none",fillRule:"evenodd"},s.createElement("path",{fill:"#E4EBF7",d:"M0 129v-2C0 58.3 55.6 2.7 124.2 2.7h2c68.6 0 124.2 55.6 124.2 124.1v2.1c0 68.6-55.6 124.2-124.1 124.2h-2.1A124.2 124.2 0 0 1 0 129"}),s.createElement("path",{fill:"#FFF",d:"M41.4 133a8.2 8.2 0 1 1-16.4-1.7 8.2 8.2 0 0 1 16.4 1.6"}),s.createElement("path",{stroke:"#FFF",d:"m38.7 136.4 10.4 5.9m.9 6.2-12.6 10.7",strokeWidth:"2"}),s.createElement("path",{fill:"#FFF",d:"M41.5 161.3a5.6 5.6 0 1 1-11.2-1.2 5.6 5.6 0 0 1 11.2 1.2m17.7-16a5.7 5.7 0 1 1-11.3-1.2 5.7 5.7 0 0 1 11.3 1.2m41.2-115.8H130a4.6 4.6 0 1 0 0-9.1h-29.6a4.6 4.6 0 0 0 0 9.1m11.3 18.3h29.7a4.6 4.6 0 1 0 0-9.2h-29.7a4.6 4.6 0 1 0 0 9.2"}),s.createElement("path",{fill:"#FFF",d:"M114 29.5h15.8a4.6 4.6 0 1 0 0 9.1H114a4.6 4.6 0 0 0 0-9.1m71.3 108.2a10 10 0 1 1-19.8-2 10 10 0 0 1 19.8 2"}),s.createElement("path",{stroke:"#FFF",d:"m180.2 143.8 12.5 7.1m1.1 7.5-15.1 13",strokeWidth:"2"}),s.createElement("path",{fill:"#FFF",d:"M185.6 172a6.8 6.8 0 1 1-13.6-1.4 6.8 6.8 0 0 1 13.5 1.3m18.6-16.6a6.8 6.8 0 1 1-13.6-1.4 6.8 6.8 0 0 1 13.6 1.4"}),s.createElement("path",{stroke:"#FFF",d:"M153 194a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm73-75.8a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.4 0zm-9 34.9a2.2 2.2 0 1 1-4.3 0 2.2 2.2 0 0 1 4.4 0zm-39.2-43.3a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm18.3-15.3a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm6.7 88a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0z",strokeWidth:"2"}),s.createElement("path",{stroke:"#FFF",d:"m215.1 155.3-1.9 20-10.8 6m-27.8-4.7-6.3 9.8H157l-4.5 6.4m23.4-65.5v-15.7m45.6 7.8-12.8 7.9-15.2-7.9V96.7",strokeWidth:"2"}),s.createElement("path",{fill:"#A26EF4",d:"M180.7 29.3a29.3 29.3 0 1 1 58.6 0 29.3 29.3 0 0 1-58.6 0"}),s.createElement("path",{fill:"#FFF",d:"m221.4 41.7-21.5-.1a1.7 1.7 0 0 1-1.7-1.8V27.6a1.7 1.7 0 0 1 1.8-1.7h21.5c1 0 1.8.9 1.8 1.8l-.1 12.3a1.7 1.7 0 0 1-1.7 1.7"}),s.createElement("path",{fill:"#FFF",d:"M215.1 29.2c0 2.6-2 4.6-4.5 4.6a4.6 4.6 0 0 1-4.5-4.7v-6.9c0-2.6 2-4.6 4.6-4.6 2.5 0 4.5 2 4.4 4.7v6.9zm-4.5-14a6.9 6.9 0 0 0-7 6.8v7.3a6.9 6.9 0 0 0 13.8.1V22a6.9 6.9 0 0 0-6.8-6.9zm-43 53.2h-4a4.7 4.7 0 0 1-4.7-4.8 4.7 4.7 0 0 1 4.7-4.7h4a4.7 4.7 0 0 1 4.7 4.8 4.7 4.7 0 0 1-4.7 4.7"}),s.createElement("path",{fill:"#5BA02E",d:"M168.2 248.8a6.6 6.6 0 0 1-6.6-6.6v-66a6.6 6.6 0 0 1 13.2 0v66a6.6 6.6 0 0 1-6.6 6.6"}),s.createElement("path",{fill:"#92C110",d:"M176.1 248.2a6.6 6.6 0 0 1-6.6-6.6v-33a6.6 6.6 0 1 1 13.3 0v33a6.6 6.6 0 0 1-6.7 6.6"}),s.createElement("path",{fill:"#F2D7AD",d:"M186 293.9h-27.4a3.2 3.2 0 0 1-3.2-3.2v-45.9a3.2 3.2 0 0 1 3.2-3.1H186a3.2 3.2 0 0 1 3.2 3.1v46a3.2 3.2 0 0 1-3.2 3"}),s.createElement("path",{fill:"#FFF",d:"M82 147.7s6.3-1 17.5-1.3c11.8-.4 17.6 1 17.6 1s3.7-3.8 1-8.3c1.3-12.1 6-32.9.3-48.3-1.1-1.4-3.7-1.5-7.5-.6-1.4.3-7.2-.2-8-.1l-15.3-.4-8-.5c-1.6-.1-4.3-1.7-5.5-.3-.4.4-2.4 5.6-2 16l8.7 35.7s-3.2 3.6 1.2 7"}),s.createElement("path",{fill:"#FFC6A0",d:"m75.8 73.3-1-6.4 12-6.5s7.4-.1 8 1.2c.8 1.3-5.5 1-5.5 1s-1.9 1.4-2.6 2.5c-1.7 2.4-1 6.5-8.4 6-1.7.3-2.5 2.2-2.5 2.2"}),s.createElement("path",{fill:"#FFB594",d:"M52.4 77.7S66.7 87 77.4 92c1 .5-2 16.2-11.9 11.8-7.4-3.3-20.1-8.4-21.5-14.5-.7-3.2 2.6-7.6 8.4-11.7M142 80s-6.7 3-13.9 6.9c-3.9 2.1-10.1 4.7-12.3 8-6.2 9.3 3.5 11.2 13 7.5 6.6-2.7 29-12.1 13.2-22.4"}),s.createElement("path",{fill:"#FFC6A0",d:"m76.2 66.4 3 3.8S76.4 73 73 76c-7 6.2-12.8 14.3-16 16.4-4 2.7-9.7 3.3-12.2 0-3.5-5.1.5-14.7 31.5-26"}),s.createElement("path",{fill:"#FFF",d:"M64.7 85.1s-2.4 8.4-9 14.5c.7.5 18.6 10.5 22.2 10 5.2-.6 6.4-19 1.2-20.5-.8-.2-6-1.3-8.9-2.2-.9-.2-1.6-1.7-3.5-1l-2-.8zm63.7.7s5.3 2 7.3 13.8c-.6.2-17.6 12.3-21.8 7.8-6.6-7-.8-17.4 4.2-18.6 4.7-1.2 5-1.4 10.3-3"}),s.createElement("path",{stroke:"#E4EBF7",d:"M78.2 94.7s.9 7.4-5 13",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#E4EBF7",d:"M87.4 94.7s3.1 2.6 10.3 2.6c7.1 0 9-3.5 9-3.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".9"}),s.createElement("path",{fill:"#FFC6A0",d:"m117.2 68.6-6.8-6.1s-5.4-4.4-9.2-1c-3.9 3.5 4.4 2.2 5.6 4.2 1.2 2.1.9 1.2-2 .5-5.7-1.4-2.1.9 3 5.3 2 1.9 7 1 7 1l2.4-3.9z"}),s.createElement("path",{fill:"#FFB594",d:"m105.3 91.3-.3-11H89l-.5 10.5c0 .4.2.8.6 1 2 1.3 9.3 5 15.8.4.2-.2.4-.5.4-.9"}),s.createElement("path",{fill:"#5C2552",d:"M107.6 74.2c.8-1.1 1-9 1-11.9a1 1 0 0 0-1-1l-4.6-.4c-7.7-1-17 .6-18.3 6.3-5.4 5.9-.4 13.3-.4 13.3s2 3.5 4.3 6.8c.8 1 .4-3.8 3-6a47.9 47.9 0 0 1 16-7"}),s.createElement("path",{fill:"#FFC6A0",d:"M88.4 83.2s2.7 6.2 11.6 6.5c7.8.3 9-7 7.5-17.5l-1-5.5c-6-2.9-15.4.6-15.4.6s-.6 2-.2 5.5c-2.3 2-1.8 5.6-1.8 5.6s-1-2-2-2.3c-.9-.3-2 0-2.3 2-1 4.6 3.6 5.1 3.6 5.1"}),s.createElement("path",{stroke:"#DB836E",d:"m100.8 77.1 1.7-1-1-4.3.7-1.4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{fill:"#552950",d:"M105.5 74c0 .8-.4 1.4-1 1.4-.4 0-.8-.7-.8-1.4s.5-1.2 1-1.2.9.6.8 1.3m-8 .2c0 .8-.4 1.3-.9 1.3s-.9-.6-.9-1.3c0-.7.5-1.3 1-1.3s1 .6.9 1.3"}),s.createElement("path",{stroke:"#DB836E",d:"M91.1 86.8s5.3 5 12.7 2.3",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{fill:"#DB836E",d:"M99.8 81.9s-3.6.2-1.5-2.8c1.6-1.5 5-.4 5-.4s1 3.9-3.5 3.2"}),s.createElement("path",{stroke:"#5C2552",d:"M102.9 70.6s2.5.8 3.4.7m-12.4.7s2.5-1.2 4.8-1.1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"}),s.createElement("path",{stroke:"#DB836E",d:"M86.3 77.4s1 .9 1.5 2c-.4.6-1 1.2-.3 1.9m11.8 2.4s2 .2 2.5-.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#E4EBF7",d:"m87.8 115.8 15.7-3m-3.3 3 10-2m-43.7-27s-1.6 8.8-6.7 14M128.3 88s3 4 4 11.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#DB836E",d:"M64 84.8s-6 10-13.5 10",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),s.createElement("path",{fill:"#FFC6A0",d:"m112.4 66-.2 5.2 12 9.2c4.5 3.6 8.9 7.5 11 8.7 4.8 2.8 8.9 3.3 11 1.8 4.1-2.9 4.4-9.9-8.1-15.3-4.3-1.8-16.1-6.3-25.7-9.7"}),s.createElement("path",{stroke:"#DB836E",d:"M130.5 85.5s4.6 5.7 11.7 6.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),s.createElement("path",{stroke:"#E4EBF7",d:"M121.7 105.7s-.4 8.6-1.3 13.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#648BD8",d:"M115.8 161.5s-3.6-1.5-2.7-7.1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{fill:"#CBD1D1",d:"M101.5 290.2s4.3 2.1 7.4 1c2.9-.9 4.6.7 7.2 1.3 2.5.5 6.9 1 11.7-1.3 0-5.6-7-4-12-6.8-2.6-1.4-3.8-4.7-3.6-8.8h-9.5s-1.4 10.6-1.2 14.6"}),s.createElement("path",{fill:"#2B0849",d:"M101.5 290s2.4 1.4 6.8.7c3-.4 3.7.5 7.5 1 3.7.6 10.8 0 11.9-.8.4 1-.4 2-.4 2s-1.5.7-4.8.9c-2 .1-5.8.3-7.7-.5-1.8-1.4-5.2-2-5.7-.3-4 1-7.4-.3-7.4-.3l-.2-2.6z"}),s.createElement("path",{fill:"#A4AABA",d:"M108.8 276.2h3.1s0 6.7 4.6 8.6c-4.7.6-8.6-2.3-7.7-8.6"}),s.createElement("path",{fill:"#CBD1D1",d:"M57.6 272.5s-2 7.5-4.5 12.4c-1.8 3.7-4.2 7.6 5.5 7.6 6.7 0 9-.5 7.5-6.7-1.5-6.1.3-13.3.3-13.3h-8.8z"}),s.createElement("path",{fill:"#2B0849",d:"M51.5 290s2.2 1.2 6.7 1.2c6.1 0 8.3-1.6 8.3-1.6s.6 1-.6 2.1c-1 .9-3.6 1.6-7.4 1.6-4.2 0-6-.6-6.8-1.2-.9-.5-.7-1.6-.2-2"}),s.createElement("path",{fill:"#A4AABA",d:"M58.5 274.4s0 1.6-.3 3-1 3.1-1.1 4.2c0 1.1 4.5 1.5 5.2 0 .6-1.6 1.3-6.5 1.9-7.3.6-.8-5-2.1-5.7.1"}),s.createElement("path",{fill:"#7BB2F9",d:"m100.9 277 13.3.1s1.3-54.2 1.8-64c.6-9.9 3.8-43.2 1-62.8l-12.4-.7-22.8.8-1.2 10c0 .4-.6.8-.7 1.3 0 .6.4 1.3.3 2-2.3 14-6.3 32.9-8.7 46.4-.1.6-1.2 1-1.4 2.6 0 .3.2 1.6 0 1.8-6.8 18.7-10.8 47.6-14.1 61.6h14.5s2.2-8.6 4-17a3984 3984 0 0 1 23-84.5l3-.5 1 46.1s-.2 1.2.4 2c.5.8-.6 1.1-.4 2.3l.4 1.7-1 11.9c-.4 4.6 0 39 0 39"}),s.createElement("path",{stroke:"#648BD8",d:"M77.4 220.4c1.2.1 4-2 7-4.9m23.1 8.4s2.8-1 6.1-3.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#648BD8",d:"M108.5 221s2.7-1.2 6-4",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{stroke:"#648BD8",d:"M76.1 223.6s2.6-.6 6.5-3.4m4.7-69.4c-.2 3.1.3 8.5-4.3 9m21.8-10.7s.1 14-1.3 15c-2.2 1.6-3 1.9-3 1.9m.5-16.4s0 12.8-1.2 24.3m-4.9 1s7.2-1.6 9.4-1.6m-28.6 31.5-1 4.5s-1.5 1.8-1 3.7c.4 2-1 2-5 15.3-1.7 5.6-4.4 18.5-6.3 27.5l-4 18.4M77 196.7a313.3 313.3 0 0 1-.8 4.8m7.7-50-1.2 10.3s-1 .2-.5 2.3c.1 1.3-2.6 15.6-5.1 30.2M57.6 273h13.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{fill:"#192064",d:"M117.4 147.4s-17-3-35.7.2v4.2s14.6-2.9 35.5-.4l.2-4"}),s.createElement("path",{fill:"#FFF",d:"M107.5 150.4v-5a.8.8 0 0 0-.8-.7H99a.8.8 0 0 0-.7.8v4.8c0 .5.3.9.8.8a140.8 140.8 0 0 1 7.7 0 .8.8 0 0 0 .8-.7"}),s.createElement("path",{fill:"#192064",d:"M106.4 149.4v-3a.6.6 0 0 0-.6-.7 94.1 94.1 0 0 0-5.8 0 .6.6 0 0 0-.7.7v3c0 .4.3.7.7.7h5.7c.4 0 .7-.3.7-.7"}),s.createElement("path",{stroke:"#648BD8",d:"M101.5 274h12.3m-11.1-5v6.5m0-12.4v4.3m-.5-93.4.9 44.4s.7 1.6-.2 2.7c-1 1.1 2.4.7.9 2.2-1.6 1.6.9 1.1 0 3.4-.6 1.5-1 21-1.1 35",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}))),jpe={success:Zs,error:_i,info:as,warning:$pe},Nv={404:Epe,500:Ppe,403:_pe},Dpe=Object.keys(Nv),Fpe=({prefixCls:e,icon:t,status:n})=>{const r=le(`${e}-icon`);if(Dpe.includes(`${n}`)){const o=Nv[n];return s.createElement("div",{className:`${r} ${e}-image`},s.createElement(o,null))}const a=s.createElement(jpe[n]);return t===null||t===!1?null:s.createElement("div",{className:r},t||a)},kpe=({prefixCls:e,extra:t})=>t?s.createElement("div",{className:`${e}-extra`},t):null,u0=({prefixCls:e,className:t,rootClassName:n,subTitle:r,title:a,style:o,children:i,status:l="info",icon:c,extra:u})=>{const{getPrefixCls:d,direction:f,result:m}=s.useContext(Ot),g=d("result",e),[h,b,p]=Npe(g),S=le(g,`${g}-${l}`,t,m?.className,n,{[`${g}-rtl`]:f==="rtl"},b,p),C=Object.assign(Object.assign({},m?.style),o);return h(s.createElement("div",{className:S,style:C},s.createElement(Fpe,{prefixCls:g,status:l,icon:c}),s.createElement("div",{className:`${g}-title`},a),r&&s.createElement("div",{className:`${g}-subtitle`},r),s.createElement(kpe,{prefixCls:g,extra:u}),i&&s.createElement("div",{className:`${g}-content`},i)))};u0.PRESENTED_IMAGE_403=Nv[403];u0.PRESENTED_IMAGE_404=Nv[404];u0.PRESENTED_IMAGE_500=Nv[500];var Lpe=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick","render"];function VI(e){return typeof e=="string"}function Jz(e){var t,n=e.className,r=e.prefixCls,a=e.style,o=e.active,i=e.status,l=e.iconPrefix,c=e.icon;e.wrapperStyle;var u=e.stepNumber,d=e.disabled,f=e.description,m=e.title,g=e.subTitle,h=e.progressDot,b=e.stepIcon,p=e.tailContent,S=e.icons,C=e.stepIndex,x=e.onStepClick,w=e.onClick,$=e.render,E=Ue(e,Lpe),P=!!x&&!d,M={};P&&(M.role="button",M.tabIndex=0,M.onClick=function(_){w?.(_),x(C)},M.onKeyDown=function(_){var F=_.which;(F===lt.ENTER||F===lt.SPACE)&&x(C)});var O=function(){var F,j,k=le("".concat(r,"-icon"),"".concat(l,"icon"),(F={},q(F,"".concat(l,"icon-").concat(c),c&&VI(c)),q(F,"".concat(l,"icon-check"),!c&&i==="finish"&&(S&&!S.finish||!S)),q(F,"".concat(l,"icon-cross"),!c&&i==="error"&&(S&&!S.error||!S)),F)),z=s.createElement("span",{className:"".concat(r,"-icon-dot")});return h?typeof h=="function"?j=s.createElement("span",{className:"".concat(r,"-icon")},h(z,{index:u-1,status:i,title:m,description:f})):j=s.createElement("span",{className:"".concat(r,"-icon")},z):c&&!VI(c)?j=s.createElement("span",{className:"".concat(r,"-icon")},c):S&&S.finish&&i==="finish"?j=s.createElement("span",{className:"".concat(r,"-icon")},S.finish):S&&S.error&&i==="error"?j=s.createElement("span",{className:"".concat(r,"-icon")},S.error):c||i==="finish"||i==="error"?j=s.createElement("span",{className:k}):j=s.createElement("span",{className:"".concat(r,"-icon")},u),b&&(j=b({index:u-1,status:i,title:m,description:f,node:j})),j},T=i||"wait",N=le("".concat(r,"-item"),"".concat(r,"-item-").concat(T),n,(t={},q(t,"".concat(r,"-item-custom"),c),q(t,"".concat(r,"-item-active"),o),q(t,"".concat(r,"-item-disabled"),d===!0),t)),D=R({},a),L=s.createElement("div",xe({},E,{className:N,style:D}),s.createElement("div",xe({onClick:w},M,{className:"".concat(r,"-item-container")}),s.createElement("div",{className:"".concat(r,"-item-tail")},p),s.createElement("div",{className:"".concat(r,"-item-icon")},O()),s.createElement("div",{className:"".concat(r,"-item-content")},s.createElement("div",{className:"".concat(r,"-item-title")},m,g&&s.createElement("div",{title:typeof g=="string"?g:void 0,className:"".concat(r,"-item-subtitle")},g)),f&&s.createElement("div",{className:"".concat(r,"-item-description")},f))));return $&&(L=$(L)||null),L}var zpe=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange","itemRender","items"];function P4(e){var t,n=e.prefixCls,r=n===void 0?"rc-steps":n,a=e.style,o=a===void 0?{}:a,i=e.className;e.children;var l=e.direction,c=l===void 0?"horizontal":l,u=e.type,d=u===void 0?"default":u,f=e.labelPlacement,m=f===void 0?"horizontal":f,g=e.iconPrefix,h=g===void 0?"rc":g,b=e.status,p=b===void 0?"process":b,S=e.size,C=e.current,x=C===void 0?0:C,w=e.progressDot,$=w===void 0?!1:w,E=e.stepIcon,P=e.initial,M=P===void 0?0:P,O=e.icons,T=e.onChange,N=e.itemRender,D=e.items,L=D===void 0?[]:D,_=Ue(e,zpe),F=d==="navigation",j=d==="inline",k=j||$,z=j?"horizontal":c,V=j?void 0:S,H=k?"vertical":m,B=le(r,"".concat(r,"-").concat(z),i,(t={},q(t,"".concat(r,"-").concat(V),V),q(t,"".concat(r,"-label-").concat(H),z==="horizontal"),q(t,"".concat(r,"-dot"),!!k),q(t,"".concat(r,"-navigation"),F),q(t,"".concat(r,"-inline"),j),t)),K=function(X){T&&x!==X&&T(X)},W=function(X,Y){var Z=R({},X),ee=M+Y;return p==="error"&&Y===x-1&&(Z.className="".concat(r,"-next-error")),Z.status||(ee===x?Z.status=p:ee{const{componentCls:t,customIconTop:n,customIconSize:r,customIconFontSize:a}=e;return{[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${t}-icon`]:{top:n,width:r,height:r,fontSize:a,lineHeight:ce(r)}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},Bpe=e=>{const{componentCls:t}=e,n=`${t}-item`;return{[`${t}-horizontal`]:{[`${n}-tail`]:{transform:"translateY(-50%)"}}}},Hpe=e=>{const{componentCls:t,inlineDotSize:n,inlineTitleColor:r,inlineTailColor:a}=e,o=e.calc(e.paddingXS).add(e.lineWidth).equal(),i={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:r}};return{[`&${t}-inline`]:{width:"auto",display:"inline-flex",[`${t}-item`]:{flex:"none","&-container":{padding:`${ce(o)} ${ce(e.paddingXXS)} 0`,margin:`0 ${ce(e.calc(e.marginXXS).div(2).equal())}`,borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover},"&[role='button']:hover":{opacity:1}},"&-icon":{width:n,height:n,marginInlineStart:`calc(50% - ${ce(e.calc(n).div(2).equal())})`,[`> ${t}-icon`]:{top:0},[`${t}-icon-dot`]:{borderRadius:e.calc(e.fontSizeSM).div(4).equal(),"&::after":{display:"none"}}},"&-content":{width:"auto",marginTop:e.calc(e.marginXS).sub(e.lineWidth).equal()},"&-title":{color:r,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,fontWeight:"normal",marginBottom:e.calc(e.marginXXS).div(2).equal()},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:e.calc(n).div(2).add(o).equal(),transform:"translateY(-50%)","&:after":{width:"100%",height:e.lineWidth,borderRadius:0,marginInlineStart:0,background:a}},[`&:first-child ${t}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${t}-item-tail`]:{display:"block",width:"50%"},"&-wait":Object.assign({[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:e.colorBorderBg,border:`${ce(e.lineWidth)} ${e.lineType} ${a}`}},i),"&-finish":Object.assign({[`${t}-item-tail::after`]:{backgroundColor:a},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:a,border:`${ce(e.lineWidth)} ${e.lineType} ${a}`}},i),"&-error":i,"&-active, &-process":Object.assign({[`${t}-item-icon`]:{width:n,height:n,marginInlineStart:`calc(50% - ${ce(e.calc(n).div(2).equal())})`,top:0}},i),[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:r}}}}}},Vpe=e=>{const{componentCls:t,iconSize:n,lineHeight:r,iconSizeSM:a}=e;return{[`&${t}-label-vertical`]:{[`${t}-item`]:{overflow:"visible","&-tail":{marginInlineStart:e.calc(n).div(2).add(e.controlHeightLG).equal(),padding:`0 ${ce(e.paddingLG)}`},"&-content":{display:"block",width:e.calc(n).div(2).add(e.controlHeightLG).mul(2).equal(),marginTop:e.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:e.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:e.marginXXS,marginInlineStart:0,lineHeight:r}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:e.calc(n).sub(a).div(2).add(e.controlHeightLG).equal()}}}}}},Wpe=e=>{const{componentCls:t,navContentMaxWidth:n,navArrowColor:r,stepsNavActiveColor:a,motionDurationSlow:o}=e;return{[`&${t}-navigation`]:{paddingTop:e.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:e.calc(e.marginSM).mul(-1).equal()}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:e.calc(e.margin).mul(-1).equal(),paddingBottom:e.paddingSM,textAlign:"start",transition:`opacity ${o}`,[`${t}-item-content`]:{maxWidth:n},[`${t}-item-title`]:Object.assign(Object.assign({maxWidth:"100%",paddingInlineEnd:0},ra),{"&::after":{display:"none"}})},[`&:not(${t}-item-active)`]:{[`${t}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${ce(e.calc(e.paddingSM).div(2).equal())})`,insetInlineStart:"100%",display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,borderTop:`${ce(e.lineWidth)} ${e.lineType} ${r}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${ce(e.lineWidth)} ${e.lineType} ${r}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:e.lineWidthBold,backgroundColor:a,transition:`width ${o}, inset-inline-start ${o}`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:e.calc(e.lineWidth).mul(3).equal(),height:`calc(100% - ${ce(e.marginLG)})`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:e.calc(e.controlHeight).mul(.25).equal(),height:e.calc(e.controlHeight).mul(.25).equal(),marginBottom:e.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},"&:last-child":{"&::after":{display:"none"}},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}}},Kpe=e=>{const{antCls:t,componentCls:n,iconSize:r,iconSizeSM:a,processIconColor:o,marginXXS:i,lineWidthBold:l,lineWidth:c,paddingXXS:u}=e,d=e.calc(r).add(e.calc(l).mul(4).equal()).equal(),f=e.calc(a).add(e.calc(e.lineWidth).mul(4).equal()).equal();return{[`&${n}-with-progress`]:{[`${n}-item`]:{paddingTop:u,[`&-process ${n}-item-container ${n}-item-icon ${n}-icon`]:{color:o}},[`&${n}-vertical > ${n}-item `]:{paddingInlineStart:u,[`> ${n}-item-container > ${n}-item-tail`]:{top:i,insetInlineStart:e.calc(r).div(2).sub(c).add(u).equal()}},[`&, &${n}-small`]:{[`&${n}-horizontal ${n}-item:first-child`]:{paddingBottom:u,paddingInlineStart:u}},[`&${n}-small${n}-vertical > ${n}-item > ${n}-item-container > ${n}-item-tail`]:{insetInlineStart:e.calc(a).div(2).sub(c).add(u).equal()},[`&${n}-label-vertical ${n}-item ${n}-item-tail`]:{top:e.calc(r).div(2).add(u).equal()},[`${n}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetInlineStart:"50%",top:"50%",transform:"translate(-50%, -50%)","&-inner":{width:`${ce(d)} !important`,height:`${ce(d)} !important`}}},[`&${n}-small`]:{[`&${n}-label-vertical ${n}-item ${n}-item-tail`]:{top:e.calc(a).div(2).add(u).equal()},[`${n}-item-icon ${t}-progress-inner`]:{width:`${ce(f)} !important`,height:`${ce(f)} !important`}}}}},qpe=e=>{const{componentCls:t,descriptionMaxWidth:n,lineHeight:r,dotCurrentSize:a,dotSize:o,motionDurationSlow:i}=e;return{[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:r},"&-tail":{top:e.calc(e.dotSize).sub(e.calc(e.lineWidth).mul(3).equal()).div(2).equal(),width:"100%",marginTop:0,marginBottom:0,marginInline:`${ce(e.calc(n).div(2).equal())} 0`,padding:0,"&::after":{width:`calc(100% - ${ce(e.calc(e.marginSM).mul(2).equal())})`,height:e.calc(e.lineWidth).mul(3).equal(),marginInlineStart:e.marginSM}},"&-icon":{width:o,height:o,marginInlineStart:e.calc(e.descriptionMaxWidth).sub(o).div(2).equal(),paddingInlineEnd:0,lineHeight:ce(o),background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${i}`,"&::after":{position:"absolute",top:e.calc(e.marginSM).mul(-1).equal(),insetInlineStart:e.calc(o).sub(e.calc(e.controlHeightLG).mul(1.5).equal()).div(2).equal(),width:e.calc(e.controlHeightLG).mul(1.5).equal(),height:e.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:n},[`&-process ${t}-item-icon`]:{position:"relative",top:e.calc(o).sub(a).div(2).equal(),width:a,height:a,lineHeight:ce(a),background:"none",marginInlineStart:e.calc(e.descriptionMaxWidth).sub(a).div(2).equal()},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(o).div(2).equal(),marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(a).div(2).equal(),top:0,insetInlineStart:e.calc(o).sub(a).div(2).equal(),marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeight).sub(o).div(2).equal(),insetInlineStart:0,margin:0,padding:`${ce(e.calc(o).add(e.paddingXS).equal())} 0 ${ce(e.paddingXS)}`,"&::after":{marginInlineStart:e.calc(o).sub(e.lineWidth).div(2).equal()}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(o).div(2).equal()},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(a).div(2).equal()},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeightSM).sub(o).div(2).equal()}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},Upe=e=>{const{componentCls:t}=e;return{[`&${t}-rtl`]:{direction:"rtl",[`${t}-item`]:{"&-subtitle":{float:"left"}},[`&${t}-navigation`]:{[`${t}-item::after`]:{transform:"rotate(-45deg)"}},[`&${t}-vertical`]:{[`> ${t}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${t}-item-icon`]:{float:"right"}}},[`&${t}-dot`]:{[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]:{float:"right"}}}}},Gpe=e=>{const{componentCls:t,iconSizeSM:n,fontSizeSM:r,fontSize:a,colorTextDescription:o}=e;return{[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:e.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:n,height:n,marginTop:0,marginBottom:0,marginInline:`0 ${ce(e.marginXS)}`,fontSize:r,lineHeight:ce(n),textAlign:"center",borderRadius:n},[`${t}-item-title`]:{paddingInlineEnd:e.paddingSM,fontSize:a,lineHeight:ce(n),"&::after":{top:e.calc(n).div(2).equal()}},[`${t}-item-description`]:{color:o,fontSize:a},[`${t}-item-tail`]:{top:e.calc(n).div(2).sub(e.paddingXXS).equal()},[`${t}-item-custom ${t}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${t}-icon`]:{fontSize:n,lineHeight:ce(n),transform:"none"}}}}},Xpe=e=>{const{componentCls:t,iconSizeSM:n,iconSize:r}=e;return{[`&${t}-vertical`]:{display:"flex",flexDirection:"column",[`> ${t}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${t}-item-icon`]:{float:"left",marginInlineEnd:e.margin},[`${t}-item-content`]:{display:"block",minHeight:e.calc(e.controlHeight).mul(1.5).equal(),overflow:"hidden"},[`${t}-item-title`]:{lineHeight:ce(r)},[`${t}-item-description`]:{paddingBottom:e.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(r).div(2).sub(e.lineWidth).equal(),width:e.lineWidth,height:"100%",padding:`${ce(e.calc(e.marginXXS).mul(1.5).add(r).equal())} 0 ${ce(e.calc(e.marginXXS).mul(1.5).equal())}`,"&::after":{width:e.lineWidth,height:"100%"}},[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]:{display:"block"},[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]:{"&::after":{display:"none"}},[`&${t}-small ${t}-item-container`]:{[`${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(n).div(2).sub(e.lineWidth).equal(),padding:`${ce(e.calc(e.marginXXS).mul(1.5).add(n).equal())} 0 ${ce(e.calc(e.marginXXS).mul(1.5).equal())}`},[`${t}-item-title`]:{lineHeight:ce(n)}}}}},Ype="wait",Qpe="process",Zpe="finish",Jpe="error",yg=(e,t)=>{const n=`${t.componentCls}-item`,r=`${e}IconColor`,a=`${e}TitleColor`,o=`${e}DescriptionColor`,i=`${e}TailColor`,l=`${e}IconBgColor`,c=`${e}IconBorderColor`,u=`${e}DotColor`;return{[`${n}-${e} ${n}-icon`]:{backgroundColor:t[l],borderColor:t[c],[`> ${t.componentCls}-icon`]:{color:t[r],[`${t.componentCls}-icon-dot`]:{background:t[u]}}},[`${n}-${e}${n}-custom ${n}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[u]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-title`]:{color:t[a],"&::after":{backgroundColor:t[i]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-description`]:{color:t[o]},[`${n}-${e} > ${n}-container > ${n}-tail::after`]:{backgroundColor:t[i]}}},ehe=e=>{const{componentCls:t,motionDurationSlow:n}=e,r=`${t}-item`,a=`${r}-icon`;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[r]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${r}-container > ${r}-tail, > ${r}-container > ${r}-content > ${r}-title::after`]:{display:"none"}}},[`${r}-container`]:{outline:"none",[`&:focus-visible ${a}`]:jo(e)},[`${a}, ${r}-content`]:{display:"inline-block",verticalAlign:"top"},[a]:{width:e.iconSize,height:e.iconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:e.marginXS,fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:ce(e.iconSize),textAlign:"center",borderRadius:e.iconSize,border:`${ce(e.lineWidth)} ${e.lineType} transparent`,transition:`background-color ${n}, border-color ${n}`,[`${t}-icon`]:{position:"relative",top:e.iconTop,color:e.colorPrimary,lineHeight:1}},[`${r}-tail`]:{position:"absolute",top:e.calc(e.iconSize).div(2).equal(),insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:e.lineWidth,background:e.colorSplit,borderRadius:e.lineWidth,transition:`background ${n}`,content:'""'}},[`${r}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:e.padding,color:e.colorText,fontSize:e.fontSizeLG,lineHeight:ce(e.titleLineHeight),"&::after":{position:"absolute",top:e.calc(e.titleLineHeight).div(2).equal(),insetInlineStart:"100%",display:"block",width:9999,height:e.lineWidth,background:e.processTailColor,content:'""'}},[`${r}-subtitle`]:{display:"inline",marginInlineStart:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize},[`${r}-description`]:{color:e.colorTextDescription,fontSize:e.fontSize}},yg(Ype,e)),yg(Qpe,e)),{[`${r}-process > ${r}-container > ${r}-title`]:{fontWeight:e.fontWeightStrong}}),yg(Zpe,e)),yg(Jpe,e)),{[`${r}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${r}-disabled`]:{cursor:"not-allowed"}})},the=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[`& ${t}-item`]:{[`&:not(${t}-item-active)`]:{[`& > ${t}-item-container[role='button']`]:{cursor:"pointer",[`${t}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]:{transition:`color ${n}`}},"&:hover":{[`${t}-item`]:{"&-title, &-subtitle, &-description":{color:e.colorPrimary}}}},[`&:not(${t}-item-process)`]:{[`& > ${t}-item-container[role='button']:hover`]:{[`${t}-item`]:{"&-icon":{borderColor:e.colorPrimary,[`${t}-icon`]:{color:e.colorPrimary}}}}}}},[`&${t}-horizontal:not(${t}-label-vertical)`]:{[`${t}-item`]:{paddingInlineStart:e.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${t}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:e.descriptionMaxWidth,whiteSpace:"normal"}}}}},nhe=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},fn(e)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),ehe(e)),the(e)),Ape(e)),Gpe(e)),Xpe(e)),Bpe(e)),Vpe(e)),qpe(e)),Wpe(e)),Upe(e)),Kpe(e)),Hpe(e))}},rhe=e=>({titleLineHeight:e.controlHeight,customIconSize:e.controlHeight,customIconTop:0,customIconFontSize:e.controlHeightSM,iconSize:e.controlHeight,iconTop:-.5,iconFontSize:e.fontSize,iconSizeSM:e.fontSizeHeading3,dotSize:e.controlHeight/4,dotCurrentSize:e.controlHeightLG/4,navArrowColor:e.colorTextDisabled,navContentMaxWidth:"unset",descriptionMaxWidth:140,waitIconColor:e.wireframe?e.colorTextDisabled:e.colorTextLabel,waitIconBgColor:e.wireframe?e.colorBgContainer:e.colorFillContent,waitIconBorderColor:e.wireframe?e.colorTextDisabled:"transparent",finishIconBgColor:e.wireframe?e.colorBgContainer:e.controlItemBgActive,finishIconBorderColor:e.wireframe?e.colorPrimary:e.controlItemBgActive}),ahe=rn("Steps",e=>{const{colorTextDisabled:t,controlHeightLG:n,colorTextLightSolid:r,colorText:a,colorPrimary:o,colorTextDescription:i,colorTextQuaternary:l,colorError:c,colorBorderSecondary:u,colorSplit:d}=e,f=Xt(e,{processIconColor:r,processTitleColor:a,processDescriptionColor:a,processIconBgColor:o,processIconBorderColor:o,processDotColor:o,processTailColor:d,waitTitleColor:i,waitDescriptionColor:i,waitTailColor:d,waitDotColor:t,finishIconColor:o,finishTitleColor:a,finishDescriptionColor:i,finishTailColor:o,finishDotColor:o,errorIconColor:r,errorTitleColor:c,errorDescriptionColor:c,errorTailColor:d,errorIconBgColor:c,errorIconBorderColor:c,errorDotColor:c,stepsNavActiveColor:o,stepsProgressSize:n,inlineDotSize:6,inlineTitleColor:l,inlineTailColor:u});return nhe(f)},rhe);function ohe(e){return e.filter(t=>t)}function ihe(e,t){if(e)return e;const n=Xn(t).map(r=>{if(s.isValidElement(r)){const{props:a}=r;return Object.assign({},a)}return null});return ohe(n)}var lhe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{percent:t,size:n,className:r,rootClassName:a,direction:o,items:i,responsive:l=!0,current:c=0,children:u,style:d}=e,f=lhe(e,["percent","size","className","rootClassName","direction","items","responsive","current","children","style"]),{xs:m}=ui(l),{getPrefixCls:g,direction:h,className:b,style:p}=Vn("steps"),S=s.useMemo(()=>l&&m?"vertical":o,[l,m,o]),C=ar(n),x=g("steps",e.prefixCls),[w,$,E]=ahe(x),P=e.type==="inline",M=g("",e.iconPrefix),O=ihe(i,u),T=P?void 0:t,N=Object.assign(Object.assign({},p),d),D=le(b,{[`${x}-rtl`]:h==="rtl",[`${x}-with-progress`]:T!==void 0},r,a,$,E),L={finish:s.createElement(Cv,{className:`${x}-finish-icon`}),error:s.createElement(vo,{className:`${x}-error-icon`})},_=({node:j,status:k})=>{if(k==="process"&&T!==void 0){const z=C==="small"?32:40;return s.createElement("div",{className:`${x}-progress-icon`},s.createElement(E4,{type:"circle",percent:T,size:z,strokeWidth:4,format:()=>null}),j)}return j},F=(j,k)=>j.description?s.createElement(tr,{title:j.description},k):k;return w(s.createElement(P4,Object.assign({icons:L},f,{style:N,current:c,size:C,items:O,itemRender:P?F:void 0,stepIcon:_,direction:S,prefixCls:x,iconPrefix:M,className:D})))};Gw.Step=P4.Step;var she=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],eA=s.forwardRef(function(e,t){var n,r=e.prefixCls,a=r===void 0?"rc-switch":r,o=e.className,i=e.checked,l=e.defaultChecked,c=e.disabled,u=e.loadingIcon,d=e.checkedChildren,f=e.unCheckedChildren,m=e.onClick,g=e.onChange,h=e.onKeyDown,b=Ue(e,she),p=Tt(!1,{value:i,defaultValue:l}),S=fe(p,2),C=S[0],x=S[1];function w(M,O){var T=C;return c||(T=M,x(T),g?.(T,O)),T}function $(M){M.which===lt.LEFT?w(!1,M):M.which===lt.RIGHT&&w(!0,M),h?.(M)}function E(M){var O=w(!C,M);m?.(O,M)}var P=le(a,o,(n={},q(n,"".concat(a,"-checked"),C),q(n,"".concat(a,"-disabled"),c),n));return s.createElement("button",xe({},b,{type:"button",role:"switch","aria-checked":C,disabled:c,className:P,ref:t,onKeyDown:$,onClick:E}),u,s.createElement("span",{className:"".concat(a,"-inner")},s.createElement("span",{className:"".concat(a,"-inner-checked")},d),s.createElement("span",{className:"".concat(a,"-inner-unchecked")},f)))});eA.displayName="Switch";const che=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:a,innerMinMarginSM:o,innerMaxMarginSM:i,handleSizeSM:l,calc:c}=e,u=`${t}-inner`,d=ce(c(l).add(c(r).mul(2)).equal()),f=ce(c(i).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:a,height:n,lineHeight:ce(n),[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:o,[`${u}-checked, ${u}-unchecked`]:{minHeight:n},[`${u}-checked`]:{marginInlineStart:`calc(-100% + ${d} - ${f})`,marginInlineEnd:`calc(100% - ${d} + ${f})`},[`${u}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:l,height:l},[`${t}-loading-icon`]:{top:c(c(l).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:i,[`${u}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${u}-unchecked`]:{marginInlineStart:`calc(100% - ${d} + ${f})`,marginInlineEnd:`calc(-100% + ${d} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${ce(c(l).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${u}`]:{[`${u}-unchecked`]:{marginInlineStart:c(e.marginXXS).div(2).equal(),marginInlineEnd:c(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${u}`]:{[`${u}-checked`]:{marginInlineStart:c(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:c(e.marginXXS).div(2).equal()}}}}}}},uhe=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},dhe=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:a,handleSize:o,calc:i}=e,l=`${t}-handle`;return{[t]:{[l]:{position:"absolute",top:n,insetInlineStart:n,width:o,height:o,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:i(o).div(2).equal(),boxShadow:a,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${l}`]:{insetInlineStart:`calc(100% - ${ce(i(o).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${l}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${l}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},fhe=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:a,innerMaxMargin:o,handleSize:i,calc:l}=e,c=`${t}-inner`,u=ce(l(i).add(l(r).mul(2)).equal()),d=ce(l(o).mul(2).equal());return{[t]:{[c]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:o,paddingInlineEnd:a,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${c}-checked, ${c}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${c}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${c}`]:{paddingInlineStart:a,paddingInlineEnd:o,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(r).mul(2).equal(),marginInlineEnd:l(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(r).mul(-1).mul(2).equal(),marginInlineEnd:l(r).mul(2).equal()}}}}}},vhe=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},fn(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:ce(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),Ta(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},mhe=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:a}=e,o=t*n,i=r/2,l=2,c=o-l*2,u=i-l*2;return{trackHeight:o,trackHeightSM:i,trackMinWidth:c*2+l*4,trackMinWidthSM:u*2+l*2,trackPadding:l,handleBg:a,handleSize:c,handleSizeSM:u,handleShadow:`0 2px 4px 0 ${new dn("#00230b").setA(.2).toRgbString()}`,innerMinMargin:c/2,innerMaxMargin:c+l+l*2,innerMinMarginSM:u/2,innerMaxMarginSM:u+l+l*2}},ghe=rn("Switch",e=>{const t=Xt(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[vhe(t),fhe(t),dhe(t),uhe(t),che(t)]},mhe);var phe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,size:r,disabled:a,loading:o,className:i,rootClassName:l,style:c,checked:u,value:d,defaultChecked:f,defaultValue:m,onChange:g}=e,h=phe(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[b,p]=Tt(!1,{value:u??d,defaultValue:f??m}),{getPrefixCls:S,direction:C,switch:x}=s.useContext(Ot),w=s.useContext(Sr),$=(a??w)||o,E=S("switch",n),P=s.createElement("div",{className:`${E}-handle`},o&&s.createElement(wa,{className:`${E}-loading-icon`})),[M,O,T]=ghe(E),N=ar(r),D=le(x?.className,{[`${E}-small`]:N==="small",[`${E}-loading`]:o,[`${E}-rtl`]:C==="rtl"},i,l,O,T),L=Object.assign(Object.assign({},x?.style),c),_=(...F)=>{p(F[0]),g?.apply(void 0,F)};return M(s.createElement(fv,{component:"Switch",disabled:$},s.createElement(eA,Object.assign({},h,{checked:b,onChange:_,prefixCls:E,className:D,style:L,disabled:$,ref:t,loadingIcon:P}))))}),tA=hhe;tA.__ANT_SWITCH=!0;var zl={},_v="rc-table-internal-hook";function O4(e){var t=s.createContext(void 0),n=function(a){var o=a.value,i=a.children,l=s.useRef(o);l.current=o;var c=s.useState(function(){return{getValue:function(){return l.current},listeners:new Set}}),u=fe(c,1),d=u[0];return un(function(){kr.unstable_batchedUpdates(function(){d.listeners.forEach(function(f){f(o)})})},[o]),s.createElement(t.Provider,{value:d},i)};return{Context:t,Provider:n,defaultValue:e}}function oa(e,t){var n=Gt(typeof t=="function"?t:function(f){if(t===void 0)return f;if(!Array.isArray(t))return f[t];var m={};return t.forEach(function(g){m[g]=f[g]}),m}),r=s.useContext(e?.Context),a=r||{},o=a.listeners,i=a.getValue,l=s.useRef();l.current=n(r?i():e?.defaultValue);var c=s.useState({}),u=fe(c,2),d=u[1];return un(function(){if(!r)return;function f(m){var g=n(m);Ma(l.current,g,!0)||d({})}return o.add(f),function(){o.delete(f)}},[r]),l.current}function bhe(){var e=s.createContext(null);function t(){return s.useContext(e)}function n(a,o){var i=ni(a),l=function(u,d){var f=i?{ref:d}:{},m=s.useRef(0),g=s.useRef(u),h=t();return h!==null?s.createElement(a,xe({},u,f)):((!o||o(g.current,u))&&(m.current+=1),g.current=u,s.createElement(e.Provider,{value:m.current},s.createElement(a,xe({},u,f))))};return i?s.forwardRef(l):l}function r(a,o){var i=ni(a),l=function(u,d){var f=i?{ref:d}:{};return t(),s.createElement(a,xe({},u,f))};return i?s.memo(s.forwardRef(l),o):s.memo(l,o)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var R4=bhe(),nA=R4.makeImmutable,nd=R4.responseImmutable,yhe=R4.useImmutableMark,Pa=O4(),rA=s.createContext({renderWithProps:!1}),Che="RC_TABLE_KEY";function She(e){return e==null?[]:Array.isArray(e)?e:[e]}function d0(e){var t=[],n={};return e.forEach(function(r){for(var a=r||{},o=a.key,i=a.dataIndex,l=o||She(i).join("-")||Che;n[l];)l="".concat(l,"_next");n[l]=!0,t.push(l)}),t}function Xw(e){return e!=null}function xhe(e){return typeof e=="number"&&!Number.isNaN(e)}function whe(e){return e&&st(e)==="object"&&!Array.isArray(e)&&!s.isValidElement(e)}function $he(e,t,n,r,a,o){var i=s.useContext(rA),l=yhe(),c=$i(function(){if(Xw(r))return[r];var u=t==null||t===""?[]:Array.isArray(t)?t:[t],d=Dn(e,u),f=d,m=void 0;if(a){var g=a(d,e,n);whe(g)?(f=g.children,m=g.props,i.renderWithProps=!0):f=g}return[f,m]},[l,e,r,t,a,n],function(u,d){if(o){var f=fe(u,2),m=f[1],g=fe(d,2),h=g[1];return o(h,m)}return i.renderWithProps?!0:!Ma(u,d,!0)});return c}function Ehe(e,t,n,r){var a=e+t-1;return e<=r&&a>=n}function Phe(e,t){return oa(Pa,function(n){var r=Ehe(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var Ohe=function(t){var n=t.ellipsis,r=t.rowType,a=t.children,o,i=n===!0?{showTitle:!0}:n;return i&&(i.showTitle||r==="header")&&(typeof a=="string"||typeof a=="number"?o=a.toString():s.isValidElement(a)&&typeof a.props.children=="string"&&(o=a.props.children)),o};function Rhe(e){var t,n,r,a,o,i,l,c,u=e.component,d=e.children,f=e.ellipsis,m=e.scope,g=e.prefixCls,h=e.className,b=e.align,p=e.record,S=e.render,C=e.dataIndex,x=e.renderIndex,w=e.shouldCellUpdate,$=e.index,E=e.rowType,P=e.colSpan,M=e.rowSpan,O=e.fixLeft,T=e.fixRight,N=e.firstFixLeft,D=e.lastFixLeft,L=e.firstFixRight,_=e.lastFixRight,F=e.appendNode,j=e.additionalProps,k=j===void 0?{}:j,z=e.isSticky,V="".concat(g,"-cell"),H=oa(Pa,["supportSticky","allColumnsFixedLeft","rowHoverable"]),B=H.supportSticky,K=H.allColumnsFixedLeft,W=H.rowHoverable,G=$he(p,C,x,d,S,w),X=fe(G,2),Y=X[0],Z=X[1],ee={},re=typeof O=="number"&&B,ne=typeof T=="number"&&B;re&&(ee.position="sticky",ee.left=O),ne&&(ee.position="sticky",ee.right=T);var se=(t=(n=(r=Z?.colSpan)!==null&&r!==void 0?r:k.colSpan)!==null&&n!==void 0?n:P)!==null&&t!==void 0?t:1,oe=(a=(o=(i=Z?.rowSpan)!==null&&i!==void 0?i:k.rowSpan)!==null&&o!==void 0?o:M)!==null&&a!==void 0?a:1,me=Phe($,oe),ue=fe(me,2),de=ue[0],ae=ue[1],ie=Gt(function(Se){var Ee;p&&ae($,$+oe-1),k==null||(Ee=k.onMouseEnter)===null||Ee===void 0||Ee.call(k,Se)}),ge=Gt(function(Se){var Ee;p&&ae(-1,-1),k==null||(Ee=k.onMouseLeave)===null||Ee===void 0||Ee.call(k,Se)});if(se===0||oe===0)return null;var pe=(l=k.title)!==null&&l!==void 0?l:Ohe({rowType:E,ellipsis:f,children:Y}),be=le(V,h,(c={},q(q(q(q(q(q(q(q(q(q(c,"".concat(V,"-fix-left"),re&&B),"".concat(V,"-fix-left-first"),N&&B),"".concat(V,"-fix-left-last"),D&&B),"".concat(V,"-fix-left-all"),D&&K&&B),"".concat(V,"-fix-right"),ne&&B),"".concat(V,"-fix-right-first"),L&&B),"".concat(V,"-fix-right-last"),_&&B),"".concat(V,"-ellipsis"),f),"".concat(V,"-with-append"),F),"".concat(V,"-fix-sticky"),(re||ne)&&z&&B),q(c,"".concat(V,"-row-hover"),!Z&&de)),k.className,Z?.className),ve={};b&&(ve.textAlign=b);var Ce=R(R(R(R({},Z?.style),ee),ve),k.style),he=Y;return st(he)==="object"&&!Array.isArray(he)&&!s.isValidElement(he)&&(he=null),f&&(D||L)&&(he=s.createElement("span",{className:"".concat(V,"-content")},he)),s.createElement(u,xe({},Z,k,{className:be,style:Ce,title:pe,scope:m,onMouseEnter:W?ie:void 0,onMouseLeave:W?ge:void 0,colSpan:se!==1?se:null,rowSpan:oe!==1?oe:null}),F,he)}const rd=s.memo(Rhe);function I4(e,t,n,r,a){var o=n[e]||{},i=n[t]||{},l,c;o.fixed==="left"?l=r.left[a==="rtl"?t:e]:i.fixed==="right"&&(c=r.right[a==="rtl"?e:t]);var u=!1,d=!1,f=!1,m=!1,g=n[t+1],h=n[e-1],b=g&&!g.fixed||h&&!h.fixed||n.every(function(w){return w.fixed==="left"});if(a==="rtl"){if(l!==void 0){var p=h&&h.fixed==="left";m=!p&&b}else if(c!==void 0){var S=g&&g.fixed==="right";f=!S&&b}}else if(l!==void 0){var C=g&&g.fixed==="left";u=!C&&b}else if(c!==void 0){var x=h&&h.fixed==="right";d=!x&&b}return{fixLeft:l,fixRight:c,lastFixLeft:u,firstFixRight:d,lastFixRight:f,firstFixLeft:m,isSticky:r.isSticky}}var aA=s.createContext({});function Ihe(e){var t=e.className,n=e.index,r=e.children,a=e.colSpan,o=a===void 0?1:a,i=e.rowSpan,l=e.align,c=oa(Pa,["prefixCls","direction"]),u=c.prefixCls,d=c.direction,f=s.useContext(aA),m=f.scrollColumnIndex,g=f.stickyOffsets,h=f.flattenColumns,b=n+o-1,p=b+1===m?o+1:o,S=I4(n,n+p-1,h,g,d);return s.createElement(rd,xe({className:t,index:n,component:"td",prefixCls:u,record:null,dataIndex:null,align:l,colSpan:p,rowSpan:i,render:function(){return r}},S))}var Mhe=["children"];function The(e){var t=e.children,n=Ue(e,Mhe);return s.createElement("tr",n,t)}function f0(e){var t=e.children;return t}f0.Row=The;f0.Cell=Ihe;function Nhe(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,a=oa(Pa,"prefixCls"),o=r.length-1,i=r[o],l=s.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:i!=null&&i.scrollbar?o:null}},[i,r,o,n]);return s.createElement(aA.Provider,{value:l},s.createElement("tfoot",{className:"".concat(a,"-summary")},t))}const Cg=nd(Nhe);var oA=f0;function _he(e){return null}function jhe(e){return null}function iA(e,t,n,r,a,o,i){var l=o(t,i);e.push({record:t,indent:n,index:i,rowKey:l});var c=a?.has(l);if(t&&Array.isArray(t[r])&&c)for(var u=0;u1?N-1:0),L=1;L5&&arguments[5]!==void 0?arguments[5]:[],l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:0,c=e.record,u=e.prefixCls,d=e.columnsKey,f=e.fixedInfoList,m=e.expandIconColumnIndex,g=e.nestExpandable,h=e.indentSize,b=e.expandIcon,p=e.expanded,S=e.hasNestChildren,C=e.onTriggerExpand,x=e.expandable,w=e.expandedKeys,$=d[n],E=f[n],P;n===(m||0)&&g&&(P=s.createElement(s.Fragment,null,s.createElement("span",{style:{paddingLeft:"".concat(h*r,"px")},className:"".concat(u,"-row-indent indent-level-").concat(r)}),b({prefixCls:u,expanded:p,expandable:S,record:c,onExpand:C})));var M=((o=t.onCell)===null||o===void 0?void 0:o.call(t,c,a))||{};if(l){var O=M.rowSpan,T=O===void 0?1:O;if(x&&T&&n=1)),style:R(R({},n),x?.style)}),p.map(function(N,D){var L=N.render,_=N.dataIndex,F=N.className,j=dA(h,N,D,u,a,l,g?.offset),k=j.key,z=j.fixedInfo,V=j.appendCellNode,H=j.additionalCellProps;return s.createElement(rd,xe({className:F,ellipsis:N.ellipsis,align:N.align,scope:N.rowScope,component:N.rowScope?m:f,prefixCls:b,key:k,record:r,index:a,renderIndex:o,dataIndex:_,render:L,shouldCellUpdate:N.shouldCellUpdate},z,{appendNode:V,additionalProps:H}))})),O;if($&&(E.current||w)){var T=C(r,a,u+1,w);O=s.createElement(cA,{expanded:w,className:le("".concat(b,"-expanded-row"),"".concat(b,"-expanded-row-level-").concat(u+1),P),prefixCls:b,component:d,cellComponent:f,colSpan:g?g.colSpan:p.length,stickyOffset:g?.sticky,isEmpty:!1},T)}return s.createElement(s.Fragment,null,M,O)}const Lhe=nd(khe);function zhe(e){var t=e.columnKey,n=e.onColumnResize,r=e.prefixCls,a=e.title,o=s.useRef();return un(function(){o.current&&n(t,o.current.offsetWidth)},[]),s.createElement(Vr,{data:t},s.createElement("th",{ref:o,className:"".concat(r,"-measure-cell")},s.createElement("div",{className:"".concat(r,"-measure-cell-content")},a||" ")))}function Ahe(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize,a=e.columns,o=s.useRef(null),i=oa(Pa,["measureRowRender"]),l=i.measureRowRender,c=s.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),ref:o,tabIndex:-1},s.createElement(Vr.Collection,{onBatchResize:function(d){Vu(o.current)&&d.forEach(function(f){var m=f.data,g=f.size;r(m,g.offsetWidth)})}},n.map(function(u){var d=a.find(function(g){return g.key===u}),f=d?.title,m=s.isValidElement(f)?s.cloneElement(f,{ref:null}):f;return s.createElement(zhe,{prefixCls:t,key:u,columnKey:u,onColumnResize:r,title:m})})));return l?l(c):c}function Bhe(e){var t=e.data,n=e.measureColumnWidth,r=oa(Pa,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode","expandedRowOffset","fixedInfoList","colWidths"]),a=r.prefixCls,o=r.getComponent,i=r.onColumnResize,l=r.flattenColumns,c=r.getRowKey,u=r.expandedKeys,d=r.childrenColumnName,f=r.emptyNode,m=r.expandedRowOffset,g=m===void 0?0:m,h=r.colWidths,b=lA(t,d,u,c),p=s.useMemo(function(){return b.map(function(O){return O.rowKey})},[b]),S=s.useRef({renderWithProps:!1}),C=s.useMemo(function(){for(var O=l.length-g,T=0,N=0;N=0;u-=1){var d=t[u],f=n&&n[u],m=void 0,g=void 0;if(f&&(m=f[$f],o==="auto"&&(g=f.minWidth)),d||g||m||c){var h=m||{};h.columnType;var b=Ue(h,Khe);i.unshift(s.createElement("col",xe({key:u,style:{width:d,minWidth:g}},b))),c=!0}}return i.length>0?s.createElement("colgroup",null,i):null}var qhe=["className","noData","columns","flattenColumns","colWidths","colGroup","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","scrollX","tableLayout","onScroll","children"];function Uhe(e,t){return s.useMemo(function(){for(var n=[],r=0;r1?"colgroup":"col":null,ellipsis:p.ellipsis,align:p.align,component:i,prefixCls:d,key:g[b]},S,{additionalProps:C,rowType:"header"}))}))};function Yhe(e){var t=[];function n(i,l){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[c]=t[c]||[];var u=l,d=i.filter(Boolean).map(function(f){var m={key:f.key,className:f.className||"",children:f.title,column:f,colStart:u},g=1,h=f.children;return h&&h.length>0&&(g=n(h,u,c+1).reduce(function(b,p){return b+p},0),m.hasSubColumns=!0),"colSpan"in f&&(g=f.colSpan),"rowSpan"in f&&(m.rowSpan=f.rowSpan),m.colSpan=g,m.colEnd=m.colStart+g-1,t[c].push(m),u+=g,g});return d}n(e,0);for(var r=t.length,a=function(l){t[l].forEach(function(c){!("rowSpan"in c)&&!c.hasSubColumns&&(c.rowSpan=r-l)})},o=0;o1&&arguments[1]!==void 0?arguments[1]:"";return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function Zhe(e,t,n){return s.useMemo(function(){if(t&&t>0){var r=0,a=0;e.forEach(function(m){var g=qI(t,m.width);g?r+=g:a+=1});var o=Math.max(t,n),i=Math.max(o-r,a),l=a,c=i/a,u=0,d=e.map(function(m){var g=R({},m),h=qI(t,g.width);if(h)g.width=h;else{var b=Math.floor(c);g.width=l===1?i:b,i-=b,l-=1}return u+=g.width,g});if(u0?R(R({},t),{},{children:vA(n)}):t})}function Yw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&st(n)==="object"}).reduce(function(n,r,a){var o=r.fixed,i=o===!0?"left":o,l="".concat(t,"-").concat(a),c=r.children;return c&&c.length>0?[].concat(Te(n),Te(Yw(c,l).map(function(u){var d;return R(R({},u),{},{fixed:(d=u.fixed)!==null&&d!==void 0?d:i})}))):[].concat(Te(n),[R(R({key:l},r),{},{fixed:i})])},[])}function t0e(e){return e.map(function(t){var n=t.fixed,r=Ue(t,e0e),a=n;return n==="left"?a="right":n==="right"&&(a="left"),R({fixed:a},r)})}function n0e(e,t){var n=e.prefixCls,r=e.columns,a=e.children,o=e.expandable,i=e.expandedKeys,l=e.columnTitle,c=e.getRowKey,u=e.onTriggerExpand,d=e.expandIcon,f=e.rowExpandable,m=e.expandIconColumnIndex,g=e.expandedRowOffset,h=g===void 0?0:g,b=e.direction,p=e.expandRowByClick,S=e.columnWidth,C=e.fixed,x=e.scrollWidth,w=e.clientWidth,$=s.useMemo(function(){var _=r||M4(a)||[];return vA(_.slice())},[r,a]),E=s.useMemo(function(){if(o){var _=$.slice();if(!_.includes(zl)){var F=m||0,j=F===0&&C==="right"?$.length:F;j>=0&&_.splice(j,0,zl)}var k=_.indexOf(zl);_=_.filter(function(B,K){return B!==zl||K===k});var z=$[k],V;C?V=C:V=z?z.fixed:null;var H=q(q(q(q(q(q({},$f,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",l),"fixed",V),"className","".concat(n,"-row-expand-icon-cell")),"width",S),"render",function(K,W,G){var X=c(W,G),Y=i.has(X),Z=f?f(W):!0,ee=d({prefixCls:n,expanded:Y,expandable:Z,record:W,onExpand:u});return p?s.createElement("span",{onClick:function(ne){return ne.stopPropagation()}},ee):ee});return _.map(function(B,K){var W=B===zl?H:B;return K=0;F-=1){var j=M[F].fixed;if(j==="left"||j===!0){_=F;break}}if(_>=0)for(var k=0;k<=_;k+=1){var z=M[k].fixed;if(z!=="left"&&z!==!0)return!0}var V=M.findIndex(function(K){var W=K.fixed;return W==="right"});if(V>=0)for(var H=V;H=k-l})})}})},L=function(F){C(function(j){return R(R({},j),{},{scrollLeft:f?F/f*m:0})})};return s.useImperativeHandle(n,function(){return{setScrollLeft:L,checkScrollBarVisible:D}}),s.useEffect(function(){var _=ql(document.body,"mouseup",O,!1),F=ql(document.body,"mousemove",N,!1);return D(),function(){_.remove(),F.remove()}},[g,E]),s.useEffect(function(){if(o.current){for(var _=[],F=cv(o.current);F;)_.push(F),F=F.parentElement;return _.forEach(function(j){return j.addEventListener("scroll",D,!1)}),window.addEventListener("resize",D,!1),window.addEventListener("scroll",D,!1),c.addEventListener("scroll",D,!1),function(){_.forEach(function(j){return j.removeEventListener("scroll",D)}),window.removeEventListener("resize",D),window.removeEventListener("scroll",D),c.removeEventListener("scroll",D)}}},[c]),s.useEffect(function(){S.isHiddenScrollBar||C(function(_){var F=o.current;return F?R(R({},_),{},{scrollLeft:F.scrollLeft/F.scrollWidth*F.clientWidth}):_})},[S.isHiddenScrollBar]),f<=m||!g||S.isHiddenScrollBar?null:s.createElement("div",{style:{height:fR(),width:m,bottom:l},className:"".concat(d,"-sticky-scroll")},s.createElement("div",{onMouseDown:T,ref:h,className:le("".concat(d,"-sticky-scroll-bar"),q({},"".concat(d,"-sticky-scroll-bar-active"),E)),style:{width:"".concat(g,"px"),transform:"translate3d(".concat(S.scrollLeft,"px, 0, 0)")}}))};const d0e=s.forwardRef(u0e);var mA="rc-table",f0e=[],v0e={};function m0e(){return"No Data"}function g0e(e,t){var n=R({rowKey:"key",prefixCls:mA,emptyText:m0e},e),r=n.prefixCls,a=n.className,o=n.rowClassName,i=n.style,l=n.data,c=n.rowKey,u=n.scroll,d=n.tableLayout,f=n.direction,m=n.title,g=n.footer,h=n.summary,b=n.caption,p=n.id,S=n.showHeader,C=n.components,x=n.emptyText,w=n.onRow,$=n.onHeaderRow,E=n.measureRowRender,P=n.onScroll,M=n.internalHooks,O=n.transformColumns,T=n.internalRefs,N=n.tailor,D=n.getContainerWidth,L=n.sticky,_=n.rowHoverable,F=_===void 0?!0:_,j=l||f0e,k=!!j.length,z=M===_v,V=s.useCallback(function(xt,Ft){return Dn(C,xt)||Ft},[C]),H=s.useMemo(function(){return typeof c=="function"?c:function(xt){var Ft=xt&&xt[c];return Ft}},[c]),B=V(["body"]),K=l0e(),W=fe(K,3),G=W[0],X=W[1],Y=W[2],Z=r0e(n,j,H),ee=fe(Z,6),re=ee[0],ne=ee[1],se=ee[2],oe=ee[3],me=ee[4],ue=ee[5],de=u?.x,ae=s.useState(0),ie=fe(ae,2),ge=ie[0],pe=ie[1],be=n0e(R(R(R({},n),re),{},{expandable:!!re.expandedRowRender,columnTitle:re.columnTitle,expandedKeys:se,getRowKey:H,onTriggerExpand:ue,expandIcon:oe,expandIconColumnIndex:re.expandIconColumnIndex,direction:f,scrollWidth:z&&N&&typeof de=="number"?de:null,clientWidth:ge}),z?O:null),ve=fe(be,4),Ce=ve[0],he=ve[1],Se=ve[2],Ee=ve[3],Oe=Se??de,We=s.useMemo(function(){return{columns:Ce,flattenColumns:he}},[Ce,he]),je=s.useRef(),De=s.useRef(),ke=s.useRef(),_e=s.useRef();s.useImperativeHandle(t,function(){return{nativeElement:je.current,scrollTo:function(Ft){var Sn;if(ke.current instanceof HTMLElement){var wn=Ft.index,Kn=Ft.top,_r=Ft.key;if(xhe(Kn)){var ir;(ir=ke.current)===null||ir===void 0||ir.scrollTo({top:Kn})}else{var fr,ia=_r??H(j[wn]);(fr=ke.current.querySelector('[data-row-key="'.concat(ia,'"]')))===null||fr===void 0||fr.scrollIntoView()}}else(Sn=ke.current)!==null&&Sn!==void 0&&Sn.scrollTo&&ke.current.scrollTo(Ft)}}});var Re=s.useRef(),Le=s.useState(!1),Me=fe(Le,2),Be=Me[0],$e=Me[1],we=s.useState(!1),Ie=fe(we,2),Fe=Ie[0],Ge=Ie[1],et=s.useState(new Map),Ke=fe(et,2),Ye=Ke[0],tt=Ke[1],rt=d0(he),ct=rt.map(function(xt){return Ye.get(xt)}),Ct=s.useMemo(function(){return ct},[ct.join("_")]),yt=c0e(Ct,he,f),dt=u&&Xw(u.y),vt=u&&Xw(Oe)||!!re.fixed,bt=vt&&he.some(function(xt){var Ft=xt.fixed;return Ft}),ze=s.useRef(),Ve=s0e(L,r),Pe=Ve.isSticky,He=Ve.offsetHeader,Ze=Ve.offsetSummary,at=Ve.offsetScroll,Nt=Ve.stickyClassName,pt=Ve.container,mt=s.useMemo(function(){return h?.(j)},[h,j]),jt=(dt||Pe)&&s.isValidElement(mt)&&mt.type===f0&&mt.props.fixed,Kt,cn,tn;dt&&(cn={overflowY:k?"scroll":"auto",maxHeight:u.y}),vt&&(Kt={overflowX:"auto"},dt||(cn={overflowY:"hidden"}),tn={width:Oe===!0?"auto":Oe,minWidth:"100%"});var Bt=s.useCallback(function(xt,Ft){tt(function(Sn){if(Sn.get(xt)!==Ft){var wn=new Map(Sn);return wn.set(xt,Ft),wn}return Sn})},[]),It=i0e(),Wt=fe(It,2),ot=Wt[0],Et=Wt[1];function gt(xt,Ft){Ft&&(typeof Ft=="function"?Ft(xt):Ft.scrollLeft!==xt&&(Ft.scrollLeft=xt,Ft.scrollLeft!==xt&&setTimeout(function(){Ft.scrollLeft=xt},0)))}var Xe=Gt(function(xt){var Ft=xt.currentTarget,Sn=xt.scrollLeft,wn=f==="rtl",Kn=typeof Sn=="number"?Sn:Ft.scrollLeft,_r=Ft||v0e;if(!Et()||Et()===_r){var ir;ot(_r),gt(Kn,De.current),gt(Kn,ke.current),gt(Kn,Re.current),gt(Kn,(ir=ze.current)===null||ir===void 0?void 0:ir.setScrollLeft)}var fr=Ft||De.current;if(fr){var ia=z&&N&&typeof Oe=="number"?Oe:fr.scrollWidth,ja=fr.clientWidth;if(ia===ja){$e(!1),Ge(!1);return}wn?($e(-Kn0)):($e(Kn>0),Ge(Kn1?p-_:0,j=R(R(R({},M),u),{},{flex:"0 0 ".concat(_,"px"),width:"".concat(_,"px"),marginRight:F,pointerEvents:"auto"}),k=s.useMemo(function(){return f?D<=1:T===0||D===0||D>1},[D,T,f]);k?j.visibility="hidden":f&&(j.height=m?.(D));var z=k?function(){return null}:g,V={};return(D===0||T===0)&&(V.rowSpan=1,V.colSpan=1),s.createElement(rd,xe({className:le(b,d),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:i,prefixCls:t.prefixCls,key:w,record:c,index:o,renderIndex:l,dataIndex:h,render:z,shouldCellUpdate:n.shouldCellUpdate},$,{appendNode:E,additionalProps:R(R({},P),{},{style:j},V)}))}var y0e=["data","index","className","rowKey","style","extra","getHeight"],C0e=s.forwardRef(function(e,t){var n=e.data,r=e.index,a=e.className,o=e.rowKey,i=e.style,l=e.extra,c=e.getHeight,u=Ue(e,y0e),d=n.record,f=n.indent,m=n.index,g=oa(Pa,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),h=g.scrollX,b=g.flattenColumns,p=g.prefixCls,S=g.fixColumn,C=g.componentWidth,x=oa(T4,["getComponent"]),w=x.getComponent,$=sA(d,o,r,f),E=w(["body","row"],"div"),P=w(["body","cell"],"div"),M=$.rowSupportExpand,O=$.expanded,T=$.rowProps,N=$.expandedRowRender,D=$.expandedRowClassName,L;if(M&&O){var _=N(d,r,f+1,O),F=uA(D,d,r,f),j={};S&&(j={style:q({},"--virtual-width","".concat(C,"px"))});var k="".concat(p,"-expanded-row-cell");L=s.createElement(E,{className:le("".concat(p,"-expanded-row"),"".concat(p,"-expanded-row-level-").concat(f+1),F)},s.createElement(rd,{component:P,prefixCls:p,className:le(k,q({},"".concat(k,"-fixed"),S)),additionalProps:j},_))}var z=R(R({},i),{},{width:h});l&&(z.position="absolute",z.pointerEvents="none");var V=s.createElement(E,xe({},T,u,{"data-row-key":o,ref:M?null:t,className:le(a,"".concat(p,"-row"),T?.className,q({},"".concat(p,"-row-extra"),l)),style:R(R({},z),T?.style)}),b.map(function(H,B){return s.createElement(b0e,{key:B,component:P,rowInfo:$,column:H,colIndex:B,indent:f,index:r,renderIndex:m,record:d,inverse:l,getHeight:c})}));return M?s.createElement("div",{ref:t},V,L):V}),YI=nd(C0e),S0e=s.forwardRef(function(e,t){var n=e.data,r=e.onScroll,a=oa(Pa,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),o=a.flattenColumns,i=a.onColumnResize,l=a.getRowKey,c=a.expandedKeys,u=a.prefixCls,d=a.childrenColumnName,f=a.scrollX,m=a.direction,g=oa(T4),h=g.sticky,b=g.scrollY,p=g.listItemHeight,S=g.getComponent,C=g.onScroll,x=s.useRef(),w=lA(n,d,c,l),$=s.useMemo(function(){var L=0;return o.map(function(_){var F=_.width,j=_.minWidth,k=_.key,z=Math.max(F||0,j||0);return L+=z,[k,z,L]})},[o]),E=s.useMemo(function(){return $.map(function(L){return L[2]})},[$]);s.useEffect(function(){$.forEach(function(L){var _=fe(L,2),F=_[0],j=_[1];i(F,j)})},[$]),s.useImperativeHandle(t,function(){var L,_={scrollTo:function(j){var k;(k=x.current)===null||k===void 0||k.scrollTo(j)},nativeElement:(L=x.current)===null||L===void 0?void 0:L.nativeElement};return Object.defineProperty(_,"scrollLeft",{get:function(){var j;return((j=x.current)===null||j===void 0?void 0:j.getScrollInfo().x)||0},set:function(j){var k;(k=x.current)===null||k===void 0||k.scrollTo({left:j})}}),Object.defineProperty(_,"scrollTop",{get:function(){var j;return((j=x.current)===null||j===void 0?void 0:j.getScrollInfo().y)||0},set:function(j){var k;(k=x.current)===null||k===void 0||k.scrollTo({top:j})}}),_});var P=function(_,F){var j,k=(j=w[F])===null||j===void 0?void 0:j.record,z=_.onCell;if(z){var V,H=z(k,F);return(V=H?.rowSpan)!==null&&V!==void 0?V:1}return 1},M=function(_){var F=_.start,j=_.end,k=_.getSize,z=_.offsetY;if(j<0)return null;for(var V=o.filter(function(se){return P(se,F)===0}),H=F,B=function(oe){if(V=V.filter(function(me){return P(me,oe)===0}),!V.length)return H=oe,1},K=F;K>=0&&!B(K);K-=1);for(var W=o.filter(function(se){return P(se,j)!==1}),G=j,X=function(oe){if(W=W.filter(function(me){return P(me,oe)!==1}),!W.length)return G=Math.max(oe-1,j),1},Y=j;Y1})&&Z.push(oe)},re=H;re<=G;re+=1)ee(re);var ne=Z.map(function(se){var oe=w[se],me=l(oe.record,se),ue=function(ie){var ge=se+ie-1,pe=l(w[ge].record,ge),be=k(me,pe);return be.bottom-be.top},de=k(me);return s.createElement(YI,{key:se,data:oe,rowKey:me,index:se,style:{top:-z+de.top},extra:!0,getHeight:ue})});return ne},O=s.useMemo(function(){return{columnsOffset:E}},[E]),T="".concat(u,"-tbody"),N=S(["body","wrapper"]),D={};return h&&(D.position="sticky",D.bottom=0,st(h)==="object"&&h.offsetScroll&&(D.bottom=h.offsetScroll)),s.createElement(pA.Provider,{value:O},s.createElement(Lh,{fullHeight:!1,ref:x,prefixCls:"".concat(T,"-virtual"),styles:{horizontalScrollBar:D},className:T,height:b,itemHeight:p||24,data:w,itemKey:function(_){return l(_.record)},component:N,scrollWidth:f,direction:m,onVirtualScroll:function(_){var F,j=_.x;r({currentTarget:(F=x.current)===null||F===void 0?void 0:F.nativeElement,scrollLeft:j})},onScroll:C,extraRender:M},function(L,_,F){var j=l(L.record,_);return s.createElement(YI,{data:L,rowKey:j,index:_,style:F.style})}))}),x0e=nd(S0e),w0e=function(t,n){var r=n.ref,a=n.onScroll;return s.createElement(x0e,{ref:r,data:t,onScroll:a})};function $0e(e,t){var n=e.data,r=e.columns,a=e.scroll,o=e.sticky,i=e.prefixCls,l=i===void 0?mA:i,c=e.className,u=e.listItemHeight,d=e.components,f=e.onScroll,m=a||{},g=m.x,h=m.y;typeof g!="number"&&(g=1),typeof h!="number"&&(h=500);var b=Gt(function(C,x){return Dn(d,C)||x}),p=Gt(f),S=s.useMemo(function(){return{sticky:o,scrollY:h,listItemHeight:u,getComponent:b,onScroll:p}},[o,h,u,b,p]);return s.createElement(T4.Provider,{value:S},s.createElement(ad,xe({},e,{className:le(c,"".concat(l,"-virtual")),scroll:R(R({},a),{},{x:g}),components:R(R({},d),{},{body:n!=null&&n.length?w0e:void 0}),columns:r,internalHooks:_v,tailor:!0,ref:t})))}var E0e=s.forwardRef($0e);function hA(e){return nA(E0e,e)}hA();const P0e=e=>null,O0e=e=>null;var N4=s.createContext(null),bA=s.createContext({}),R0e=function(t){for(var n=t.prefixCls,r=t.level,a=t.isStart,o=t.isEnd,i="".concat(n,"-indent-unit"),l=[],c=0;c=0&&n.splice(r,1),n}function Ji(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function _4(e){return e.split("-")}function N0e(e,t){var n=[],r=Wa(t,e);function a(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];o.forEach(function(i){var l=i.key,c=i.children;n.push(l),a(c)})}return a(r.children),n}function _0e(e){if(e.parent){var t=_4(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function j0e(e){var t=_4(e.pos);return Number(t[t.length-1])===0}function JI(e,t,n,r,a,o,i,l,c,u){var d,f=e.clientX,m=e.clientY,g=e.target.getBoundingClientRect(),h=g.top,b=g.height,p=(u==="rtl"?-1:1)*((a?.x||0)-f),S=(p-12)/r,C=c.filter(function(j){var k;return(k=l[j])===null||k===void 0||(k=k.children)===null||k===void 0?void 0:k.length}),x=Wa(l,n.eventKey);if(m-1.5?o({dragNode:L,dropNode:_,dropPosition:1})?T=1:F=!1:o({dragNode:L,dropNode:_,dropPosition:0})?T=0:o({dragNode:L,dropNode:_,dropPosition:1})?T=1:F=!1:o({dragNode:L,dropNode:_,dropPosition:1})?T=1:F=!1,{dropPosition:T,dropLevelOffset:N,dropTargetKey:x.key,dropTargetPos:x.pos,dragOverNodeKey:O,dropContainerKey:T===0?null:((d=x.parent)===null||d===void 0?void 0:d.key)||null,dropAllowed:F}}function eM(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function x1(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(st(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return jn(!1,"`checkedKeys` is not an array or an object"),null;return t}function Qw(e,t){var n=new Set;function r(a){if(!n.has(a)){var o=Wa(t,a);if(o){n.add(a);var i=o.parent,l=o.node;l.disabled||i&&r(i.key)}}}return(e||[]).forEach(function(a){r(a)}),Te(n)}const Ll={},Zw="SELECT_ALL",Jw="SELECT_INVERT",e$="SELECT_NONE",tM=[],yA=(e,t,n=[])=>((t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&yA(e,r[e],n)}),n),D0e=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:a,getCheckboxProps:o,getTitleCheckboxProps:i,onChange:l,onSelect:c,onSelectAll:u,onSelectInvert:d,onSelectNone:f,onSelectMultiple:m,columnWidth:g,type:h,selections:b,fixed:p,renderCell:S,hideSelectAll:C,checkStrictly:x=!0}=t||{},{prefixCls:w,data:$,pageData:E,getRecordByKey:P,getRowKey:M,expandType:O,childrenColumnName:T,locale:N,getPopupContainer:D}=e,L=Ni(),[_,F]=lw(oe=>oe),[j,k]=Tt(r||a||tM,{value:r}),z=s.useRef(new Map),V=s.useCallback(oe=>{if(n){const me=new Map;oe.forEach(ue=>{let de=P(ue);!de&&z.current.has(ue)&&(de=z.current.get(ue)),me.set(ue,de)}),z.current=me}},[P,n]);s.useEffect(()=>{V(j)},[j]);const H=s.useMemo(()=>yA(T,E),[T,E]),{keyEntities:B}=s.useMemo(()=>{if(x)return{keyEntities:null};let oe=$;if(n){const me=new Set(H.map((de,ae)=>M(de,ae))),ue=Array.from(z.current).reduce((de,[ae,ie])=>me.has(ae)?de:de.concat(ie),[]);oe=[].concat(Te(oe),Te(ue))}return Ov(oe,{externalGetKey:M,childrenPropName:T})},[$,M,x,T,n,H]),K=s.useMemo(()=>{const oe=new Map;return H.forEach((me,ue)=>{const de=M(me,ue),ae=(o?o(me):null)||{};oe.set(de,ae)}),oe},[H,M,o]),W=s.useCallback(oe=>{const me=M(oe);let ue;return K.has(me)?ue=K.get(M(oe)):ue=o?o(oe):void 0,!!ue?.disabled},[K,M]),[G,X]=s.useMemo(()=>{if(x)return[j||[],[]];const{checkedKeys:oe,halfCheckedKeys:me}=To(j,!0,B,W);return[oe||[],me]},[j,x,B,W]),Y=s.useMemo(()=>{const oe=h==="radio"?G.slice(0,1):G;return new Set(oe)},[G,h]),Z=s.useMemo(()=>h==="radio"?new Set:new Set(X),[X,h]);s.useEffect(()=>{t||k(tM)},[!!t]);const ee=s.useCallback((oe,me)=>{let ue,de;V(oe),n?(ue=oe,de=oe.map(ae=>z.current.get(ae))):(ue=[],de=[],oe.forEach(ae=>{const ie=P(ae);ie!==void 0&&(ue.push(ae),de.push(ie))})),k(ue),l?.(ue,de,{type:me})},[k,P,l,n]),re=s.useCallback((oe,me,ue,de)=>{if(c){const ae=ue.map(ie=>P(ie));c(P(oe),me,ae,de)}ee(ue,"single")},[c,P,ee]),ne=s.useMemo(()=>!b||C?null:(b===!0?[Zw,Jw,e$]:b).map(me=>me===Zw?{key:"all",text:N.selectionAll,onSelect(){ee($.map((ue,de)=>M(ue,de)).filter(ue=>{const de=K.get(ue);return!de?.disabled||Y.has(ue)}),"all")}}:me===Jw?{key:"invert",text:N.selectInvert,onSelect(){const ue=new Set(Y);E.forEach((ae,ie)=>{const ge=M(ae,ie),pe=K.get(ge);pe?.disabled||(ue.has(ge)?ue.delete(ge):ue.add(ge))});const de=Array.from(ue);d&&(L.deprecated(!1,"onSelectInvert","onChange"),d(de)),ee(de,"invert")}}:me===e$?{key:"none",text:N.selectNone,onSelect(){f?.(),ee(Array.from(Y).filter(ue=>{const de=K.get(ue);return de?.disabled}),"none")}}:me).map(me=>Object.assign(Object.assign({},me),{onSelect:(...ue)=>{var de,ae;(ae=me.onSelect)===null||ae===void 0||(de=ae).call.apply(de,[me].concat(ue)),F(null)}})),[b,Y,E,M,d,ee]);return[s.useCallback(oe=>{var me;if(!t)return oe.filter(_e=>_e!==Ll);let ue=Te(oe);const de=new Set(Y),ae=H.map(M).filter(_e=>!K.get(_e).disabled),ie=ae.every(_e=>de.has(_e)),ge=ae.some(_e=>de.has(_e)),pe=()=>{const _e=[];ie?ae.forEach(Le=>{de.delete(Le),_e.push(Le)}):ae.forEach(Le=>{de.has(Le)||(de.add(Le),_e.push(Le))});const Re=Array.from(de);u?.(!ie,Re.map(Le=>P(Le)),_e.map(Le=>P(Le))),ee(Re,"all"),F(null)};let be,ve;if(h!=="radio"){let _e;if(ne){const Fe={getPopupContainer:D,items:ne.map((Ge,et)=>{const{key:Ke,text:Ye,onSelect:tt}=Ge;return{key:Ke??et,onClick:()=>{tt?.(ae)},label:Ye}})};_e=s.createElement("div",{className:`${w}-selection-extra`},s.createElement(cs,{menu:Fe,getPopupContainer:D},s.createElement("span",null,s.createElement(Ri,null))))}const Re=H.map((Fe,Ge)=>{const et=M(Fe,Ge),Ke=K.get(et)||{};return Object.assign({checked:de.has(et)},Ke)}).filter(({disabled:Fe})=>Fe),Le=!!Re.length&&Re.length===H.length,Me=Le&&Re.every(({checked:Fe})=>Fe),Be=Le&&Re.some(({checked:Fe})=>Fe),$e=i?.()||{},{onChange:we,disabled:Ie}=$e;ve=s.createElement(si,Object.assign({"aria-label":_e?"Custom selection":"Select all"},$e,{checked:Le?Me:!!H.length&&ie,indeterminate:Le?!Me&&Be:!ie&&ge,onChange:Fe=>{pe(),we?.(Fe)},disabled:Ie??(H.length===0||Le),skipGroup:!0})),be=!C&&s.createElement("div",{className:`${w}-selection`},ve,_e)}let Ce;h==="radio"?Ce=(_e,Re,Le)=>{const Me=M(Re,Le),Be=de.has(Me),$e=K.get(Me);return{node:s.createElement(ss,Object.assign({},$e,{checked:Be,onClick:we=>{var Ie;we.stopPropagation(),(Ie=$e?.onClick)===null||Ie===void 0||Ie.call($e,we)},onChange:we=>{var Ie;de.has(Me)||re(Me,!0,[Me],we.nativeEvent),(Ie=$e?.onChange)===null||Ie===void 0||Ie.call($e,we)}})),checked:Be}}:Ce=(_e,Re,Le)=>{var Me;const Be=M(Re,Le),$e=de.has(Be),we=Z.has(Be),Ie=K.get(Be);let Fe;return O==="nest"?Fe=we:Fe=(Me=Ie?.indeterminate)!==null&&Me!==void 0?Me:we,{node:s.createElement(si,Object.assign({},Ie,{indeterminate:Fe,checked:$e,skipGroup:!0,onClick:Ge=>{var et;Ge.stopPropagation(),(et=Ie?.onClick)===null||et===void 0||et.call(Ie,Ge)},onChange:Ge=>{var et;const{nativeEvent:Ke}=Ge,{shiftKey:Ye}=Ke,tt=ae.indexOf(Be),rt=G.some(ct=>ae.includes(ct));if(Ye&&x&&rt){const ct=_(tt,ae,de),Ct=Array.from(de);m?.(!$e,Ct.map(yt=>P(yt)),ct.map(yt=>P(yt))),ee(Ct,"multiple")}else{const ct=G;if(x){const Ct=$e?yi(ct,Be):Ji(ct,Be);re(Be,!$e,Ct,Ke)}else{const Ct=To([].concat(Te(ct),[Be]),!0,B,W),{checkedKeys:yt,halfCheckedKeys:dt}=Ct;let vt=yt;if($e){const bt=new Set(yt);bt.delete(Be),vt=To(Array.from(bt),{halfCheckedKeys:dt},B,W).checkedKeys}re(Be,!$e,vt,Ke)}}F($e?null:tt),(et=Ie?.onChange)===null||et===void 0||et.call(Ie,Ge)}})),checked:$e}};const he=(_e,Re,Le)=>{const{node:Me,checked:Be}=Ce(_e,Re,Le);return S?S(Be,Re,Le,Me):Me};if(!ue.includes(Ll))if(ue.findIndex(_e=>{var Re;return((Re=_e[$f])===null||Re===void 0?void 0:Re.columnType)==="EXPAND_COLUMN"})===0){const[_e,...Re]=ue;ue=[_e,Ll].concat(Te(Re))}else ue=[Ll].concat(Te(ue));const Se=ue.indexOf(Ll);ue=ue.filter((_e,Re)=>_e!==Ll||Re===Se);const Ee=ue[Se-1],Oe=ue[Se+1];let We=p;We===void 0&&(Oe?.fixed!==void 0?We=Oe.fixed:Ee?.fixed!==void 0&&(We=Ee.fixed)),We&&Ee&&((me=Ee[$f])===null||me===void 0?void 0:me.columnType)==="EXPAND_COLUMN"&&Ee.fixed===void 0&&(Ee.fixed=We);const je=le(`${w}-selection-col`,{[`${w}-selection-col-with-dropdown`]:b&&h==="checkbox"}),De=()=>t?.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(ve):t.columnTitle:be,ke={fixed:We,width:g,className:`${w}-selection-column`,title:De(),render:he,onCell:t.onCell,align:t.align,[$f]:{className:je}};return ue.map(_e=>_e===Ll?ke:_e)},[M,H,t,G,Y,Z,g,ne,O,K,m,re,W]),Y]};function F0e(e){return t=>{const{prefixCls:n,onExpand:r,record:a,expanded:o,expandable:i}=t,l=`${n}-row-expand-icon`;return s.createElement("button",{type:"button",onClick:c=>{r(a,c),c.stopPropagation()},className:le(l,{[`${l}-spaced`]:!i,[`${l}-expanded`]:i&&o,[`${l}-collapsed`]:i&&!o}),"aria-label":o?e.collapse:e.expand,"aria-expanded":o})}}function k0e(e){return(n,r)=>{const a=n.querySelector(`.${e}-container`);let o=r;if(a){const i=getComputedStyle(a),l=Number.parseInt(i.borderLeftWidth,10),c=Number.parseInt(i.borderRightWidth,10);o=r-l-c}return o}}const Jl=(e,t)=>"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function od(e,t){return t?`${t}-${e}`:`${e}`}const v0=(e,t)=>typeof e=="function"?e(t):e,L0e=(e,t)=>{const n=v0(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n};var z0e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},A0e=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:z0e}))},B0e=s.forwardRef(A0e),H0e=function(t){var n=t.dropPosition,r=t.dropLevelOffset,a=t.indent,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case-1:o.top=0,o.left=-r*a;break;case 1:o.bottom=0,o.left=-r*a;break;case 0:o.bottom=0,o.left=a;break}return Q.createElement("div",{style:o})};function j4(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function V0e(e,t){var n=s.useState(!1),r=fe(n,2),a=r[0],o=r[1];un(function(){if(a)return e(),function(){t()}},[a]),un(function(){return o(!0),function(){o(!1)}},[])}var W0e=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],K0e=s.forwardRef(function(e,t){var n=e.className,r=e.style,a=e.motion,o=e.motionNodes,i=e.motionType,l=e.onMotionStart,c=e.onMotionEnd,u=e.active,d=e.treeNodeRequiredProps,f=Ue(e,W0e),m=s.useState(!0),g=fe(m,2),h=g[0],b=g[1],p=s.useContext(N4),S=p.prefixCls,C=o&&i!=="hide";un(function(){o&&C!==h&&b(C)},[o]);var x=function(){o&&l()},w=s.useRef(!1),$=function(){o&&!w.current&&(w.current=!0,c())};V0e(x,$);var E=function(M){C===M&&$()};return o?s.createElement(Nr,xe({ref:t,visible:h},a,{motionAppear:i==="show",onVisibleChanged:E}),function(P,M){var O=P.className,T=P.style;return s.createElement("div",{ref:M,className:le("".concat(S,"-treenode-motion"),O),style:T},o.map(function(N){var D=Object.assign({},(j4(N.data),N.data)),L=N.title,_=N.key,F=N.isStart,j=N.isEnd;delete D.children;var k=wf(_,d);return s.createElement(Xf,xe({},D,k,{title:L,active:u,data:N.data,key:_,isStart:F,isEnd:j}))}))}):s.createElement(Xf,xe({domRef:t,className:n,style:r},f,{active:u}))});function q0e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function a(o,i){var l=new Map;o.forEach(function(u){l.set(u,!0)});var c=i.filter(function(u){return!l.has(u)});return c.length===1?c[0]:null}return n ").concat(t);return t}var Y0e=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var a=e.expandedKeys,o=e.selectedKeys,i=e.checkedKeys,l=e.loadedKeys,c=e.loadingKeys,u=e.halfCheckedKeys,d=e.keyEntities,f=e.disabled,m=e.dragging,g=e.dragOverNodeKey,h=e.dropPosition,b=e.motion,p=e.height,S=e.itemHeight,C=e.virtual,x=e.scrollWidth,w=e.focusable,$=e.activeItem,E=e.focused,P=e.tabIndex,M=e.onKeyDown,O=e.onFocus,T=e.onBlur,N=e.onActiveChange,D=e.onListChangeStart,L=e.onListChangeEnd,_=Ue(e,U0e),F=s.useRef(null),j=s.useRef(null);s.useImperativeHandle(t,function(){return{scrollTo:function(Ce){F.current.scrollTo(Ce)},getIndentWidth:function(){return j.current.offsetWidth}}});var k=s.useState(a),z=fe(k,2),V=z[0],H=z[1],B=s.useState(r),K=fe(B,2),W=K[0],G=K[1],X=s.useState(r),Y=fe(X,2),Z=Y[0],ee=Y[1],re=s.useState([]),ne=fe(re,2),se=ne[0],oe=ne[1],me=s.useState(null),ue=fe(me,2),de=ue[0],ae=ue[1],ie=s.useRef(r);ie.current=r;function ge(){var ve=ie.current;G(ve),ee(ve),oe([]),ae(null),L()}un(function(){H(a);var ve=q0e(V,a);if(ve.key!==null)if(ve.add){var Ce=W.findIndex(function(je){var De=je.key;return De===ve.key}),he=oM(nM(W,r,ve.key),C,p,S),Se=W.slice();Se.splice(Ce+1,0,aM),ee(Se),oe(he),ae("show")}else{var Ee=r.findIndex(function(je){var De=je.key;return De===ve.key}),Oe=oM(nM(r,W,ve.key),C,p,S),We=r.slice();We.splice(Ee+1,0,aM),ee(We),oe(Oe),ae("hide")}else W!==r&&(G(r),ee(r))},[a,r]),s.useEffect(function(){m||ge()},[m]);var pe=b?Z:r,be={expandedKeys:a,selectedKeys:o,loadedKeys:l,loadingKeys:c,checkedKeys:i,halfCheckedKeys:u,dragOverNodeKey:g,dropPosition:h,keyEntities:d};return s.createElement(s.Fragment,null,E&&$&&s.createElement("span",{style:rM,"aria-live":"assertive"},X0e($)),s.createElement("div",null,s.createElement("input",{style:rM,disabled:w===!1||f,tabIndex:w!==!1?P:null,onKeyDown:M,onFocus:O,onBlur:T,value:"",onChange:G0e,"aria-label":"for screen reader"})),s.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},s.createElement("div",{className:"".concat(n,"-indent")},s.createElement("div",{ref:j,className:"".concat(n,"-indent-unit")}))),s.createElement(Lh,xe({},_,{data:pe,itemKey:iM,height:p,fullHeight:!1,virtual:C,itemHeight:S,scrollWidth:x,prefixCls:"".concat(n,"-list"),ref:F,role:"tree",onVisibleChange:function(Ce){Ce.every(function(he){return iM(he)!==qs})&&ge()}}),function(ve){var Ce=ve.pos,he=Object.assign({},(j4(ve.data),ve.data)),Se=ve.title,Ee=ve.key,Oe=ve.isStart,We=ve.isEnd,je=Pv(Ee,Ce);delete he.key,delete he.children;var De=wf(je,be);return s.createElement(K0e,xe({},he,De,{title:Se,active:!!$&&Ee===$.key,pos:Ce,data:ve.data,isStart:Oe,isEnd:We,motion:b,motionNodes:Ee===qs?se:null,motionType:de,onMotionStart:D,onMotionEnd:ge,treeNodeRequiredProps:be,onMouseMove:function(){N(null)}}))}))}),Q0e=10,m0=(function(e){ma(n,e);var t=Ea(n);function n(){var r;kn(this,n);for(var a=arguments.length,o=new Array(a),i=0;i2&&arguments[2]!==void 0?arguments[2]:!1,f=r.state,m=f.dragChildrenKeys,g=f.dropPosition,h=f.dropTargetKey,b=f.dropTargetPos,p=f.dropAllowed;if(p){var S=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),h!==null){var C=R(R({},wf(h,r.getTreeNodeRequiredProps())),{},{active:((u=r.getActiveItem())===null||u===void 0?void 0:u.key)===h,data:Wa(r.state.keyEntities,h).node}),x=m.includes(h);jn(!x,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var w=_4(b),$={event:l,node:Br(C),dragNode:r.dragNodeProps?Br(r.dragNodeProps):null,dragNodesKeys:[r.dragNodeProps.eventKey].concat(m),dropToGap:g!==0,dropPosition:g+Number(w[w.length-1])};d||S?.($),r.dragNodeProps=null}}}),q($t(r),"cleanDragState",function(){var l=r.state.draggingNodeKey;l!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),q($t(r),"triggerExpandActionExpand",function(l,c){var u=r.state,d=u.expandedKeys,f=u.flattenNodes,m=c.expanded,g=c.key,h=c.isLeaf;if(!(h||l.shiftKey||l.metaKey||l.ctrlKey)){var b=f.filter(function(S){return S.key===g})[0],p=Br(R(R({},wf(g,r.getTreeNodeRequiredProps())),{},{data:b.data}));r.setExpandedKeys(m?yi(d,g):Ji(d,g)),r.onNodeExpand(l,p)}}),q($t(r),"onNodeClick",function(l,c){var u=r.props,d=u.onClick,f=u.expandAction;f==="click"&&r.triggerExpandActionExpand(l,c),d?.(l,c)}),q($t(r),"onNodeDoubleClick",function(l,c){var u=r.props,d=u.onDoubleClick,f=u.expandAction;f==="doubleClick"&&r.triggerExpandActionExpand(l,c),d?.(l,c)}),q($t(r),"onNodeSelect",function(l,c){var u=r.state.selectedKeys,d=r.state,f=d.keyEntities,m=d.fieldNames,g=r.props,h=g.onSelect,b=g.multiple,p=c.selected,S=c[m.key],C=!p;C?b?u=Ji(u,S):u=[S]:u=yi(u,S);var x=u.map(function(w){var $=Wa(f,w);return $?$.node:null}).filter(Boolean);r.setUncontrolledState({selectedKeys:u}),h?.(u,{event:"select",selected:C,node:c,selectedNodes:x,nativeEvent:l.nativeEvent})}),q($t(r),"onNodeCheck",function(l,c,u){var d=r.state,f=d.keyEntities,m=d.checkedKeys,g=d.halfCheckedKeys,h=r.props,b=h.checkStrictly,p=h.onCheck,S=c.key,C,x={event:"check",node:c,checked:u,nativeEvent:l.nativeEvent};if(b){var w=u?Ji(m,S):yi(m,S),$=yi(g,S);C={checked:w,halfChecked:$},x.checkedNodes=w.map(function(N){return Wa(f,N)}).filter(Boolean).map(function(N){return N.node}),r.setUncontrolledState({checkedKeys:w})}else{var E=To([].concat(Te(m),[S]),!0,f),P=E.checkedKeys,M=E.halfCheckedKeys;if(!u){var O=new Set(P);O.delete(S);var T=To(Array.from(O),{halfCheckedKeys:M},f);P=T.checkedKeys,M=T.halfCheckedKeys}C=P,x.checkedNodes=[],x.checkedNodesPositions=[],x.halfCheckedKeys=M,P.forEach(function(N){var D=Wa(f,N);if(D){var L=D.node,_=D.pos;x.checkedNodes.push(L),x.checkedNodesPositions.push({node:L,pos:_})}}),r.setUncontrolledState({checkedKeys:P},!1,{halfCheckedKeys:M})}p?.(C,x)}),q($t(r),"onNodeLoad",function(l){var c,u=l.key,d=r.state.keyEntities,f=Wa(d,u);if(!(f!=null&&(c=f.children)!==null&&c!==void 0&&c.length)){var m=new Promise(function(g,h){r.setState(function(b){var p=b.loadedKeys,S=p===void 0?[]:p,C=b.loadingKeys,x=C===void 0?[]:C,w=r.props,$=w.loadData,E=w.onLoad;if(!$||S.includes(u)||x.includes(u))return null;var P=$(l);return P.then(function(){var M=r.state.loadedKeys,O=Ji(M,u);E?.(O,{event:"load",node:l}),r.setUncontrolledState({loadedKeys:O}),r.setState(function(T){return{loadingKeys:yi(T.loadingKeys,u)}}),g()}).catch(function(M){if(r.setState(function(T){return{loadingKeys:yi(T.loadingKeys,u)}}),r.loadingRetryTimes[u]=(r.loadingRetryTimes[u]||0)+1,r.loadingRetryTimes[u]>=Q0e){var O=r.state.loadedKeys;jn(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:Ji(O,u)}),g()}h(M)}),{loadingKeys:Ji(x,u)}})});return m.catch(function(){}),m}}),q($t(r),"onNodeMouseEnter",function(l,c){var u=r.props.onMouseEnter;u?.({event:l,node:c})}),q($t(r),"onNodeMouseLeave",function(l,c){var u=r.props.onMouseLeave;u?.({event:l,node:c})}),q($t(r),"onNodeContextMenu",function(l,c){var u=r.props.onRightClick;u&&(l.preventDefault(),u({event:l,node:c}))}),q($t(r),"onFocus",function(){var l=r.props.onFocus;r.setState({focused:!0});for(var c=arguments.length,u=new Array(c),d=0;d1&&arguments[1]!==void 0?arguments[1]:!1,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var d=!1,f=!0,m={};Object.keys(l).forEach(function(g){if(r.props.hasOwnProperty(g)){f=!1;return}d=!0,m[g]=l[g]}),d&&(!c||f)&&r.setState(R(R({},m),u))}}),q($t(r),"scrollTo",function(l){r.listRef.current.scrollTo(l)}),r}return Ln(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var a=this.props,o=a.activeKey,i=a.itemScrollOffset,l=i===void 0?0:i;o!==void 0&&o!==this.state.activeKey&&(this.setState({activeKey:o}),o!==null&&this.scrollTo({key:o,offset:l}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var a=this.state,o=a.focused,i=a.flattenNodes,l=a.keyEntities,c=a.draggingNodeKey,u=a.activeKey,d=a.dropLevelOffset,f=a.dropContainerKey,m=a.dropTargetKey,g=a.dropPosition,h=a.dragOverNodeKey,b=a.indent,p=this.props,S=p.prefixCls,C=p.className,x=p.style,w=p.showLine,$=p.focusable,E=p.tabIndex,P=E===void 0?0:E,M=p.selectable,O=p.showIcon,T=p.icon,N=p.switcherIcon,D=p.draggable,L=p.checkable,_=p.checkStrictly,F=p.disabled,j=p.motion,k=p.loadData,z=p.filterTreeNode,V=p.height,H=p.itemHeight,B=p.scrollWidth,K=p.virtual,W=p.titleRender,G=p.dropIndicatorRender,X=p.onContextMenu,Y=p.onScroll,Z=p.direction,ee=p.rootClassName,re=p.rootStyle,ne=Qn(this.props,{aria:!0,data:!0}),se;D&&(st(D)==="object"?se=D:typeof D=="function"?se={nodeDraggable:D}:se={});var oe={prefixCls:S,selectable:M,showIcon:O,icon:T,switcherIcon:N,draggable:se,draggingNodeKey:c,checkable:L,checkStrictly:_,disabled:F,keyEntities:l,dropLevelOffset:d,dropContainerKey:f,dropTargetKey:m,dropPosition:g,dragOverNodeKey:h,indent:b,direction:Z,dropIndicatorRender:G,loadData:k,filterTreeNode:z,titleRender:W,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return s.createElement(N4.Provider,{value:oe},s.createElement("div",{className:le(S,C,ee,q(q(q({},"".concat(S,"-show-line"),w),"".concat(S,"-focused"),o),"".concat(S,"-active-focused"),u!==null)),style:re},s.createElement(Y0e,xe({ref:this.listRef,prefixCls:S,style:x,data:i,disabled:F,selectable:M,checkable:!!L,motion:j,dragging:c!==null,height:V,itemHeight:H,virtual:K,focusable:$,focused:o,tabIndex:P,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:X,onScroll:Y,scrollWidth:B},this.getTreeNodeRequiredProps(),ne))))}}],[{key:"getDerivedStateFromProps",value:function(a,o){var i=o.prevProps,l={prevProps:a};function c(P){return!i&&a.hasOwnProperty(P)||i&&i[P]!==a[P]}var u,d=o.fieldNames;if(c("fieldNames")&&(d=Mu(a.fieldNames),l.fieldNames=d),c("treeData")?u=a.treeData:c("children")&&(jn(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),u=d9(a.children)),u){l.treeData=u;var f=Ov(u,{fieldNames:d});l.keyEntities=R(q({},qs,CA),f.keyEntities)}var m=l.keyEntities||o.keyEntities;if(c("expandedKeys")||i&&c("autoExpandParent"))l.expandedKeys=a.autoExpandParent||!i&&a.defaultExpandParent?Qw(a.expandedKeys,m):a.expandedKeys;else if(!i&&a.defaultExpandAll){var g=R({},m);delete g[qs];var h=[];Object.keys(g).forEach(function(P){var M=g[P];M.children&&M.children.length&&h.push(M.key)}),l.expandedKeys=h}else!i&&a.defaultExpandedKeys&&(l.expandedKeys=a.autoExpandParent||a.defaultExpandParent?Qw(a.defaultExpandedKeys,m):a.defaultExpandedKeys);if(l.expandedKeys||delete l.expandedKeys,u||l.expandedKeys){var b=d1(u||o.treeData,l.expandedKeys||o.expandedKeys,d);l.flattenNodes=b}if(a.selectable&&(c("selectedKeys")?l.selectedKeys=eM(a.selectedKeys,a):!i&&a.defaultSelectedKeys&&(l.selectedKeys=eM(a.defaultSelectedKeys,a))),a.checkable){var p;if(c("checkedKeys")?p=x1(a.checkedKeys)||{}:!i&&a.defaultCheckedKeys?p=x1(a.defaultCheckedKeys)||{}:u&&(p=x1(a.checkedKeys)||{checkedKeys:o.checkedKeys,halfCheckedKeys:o.halfCheckedKeys}),p){var S=p,C=S.checkedKeys,x=C===void 0?[]:C,w=S.halfCheckedKeys,$=w===void 0?[]:w;if(!a.checkStrictly){var E=To(x,!0,m);x=E.checkedKeys,$=E.halfCheckedKeys}l.checkedKeys=x,l.halfCheckedKeys=$}}return c("loadedKeys")&&(l.loadedKeys=a.loadedKeys),l}}]),n})(s.Component);q(m0,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:H0e,allowDrop:function(){return!0},expandAction:!1});q(m0,"TreeNode",Xf);var Z0e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},J0e=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:Z0e}))},SA=s.forwardRef(J0e),ebe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},tbe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:ebe}))},nbe=s.forwardRef(tbe),rbe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},abe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:rbe}))},obe=s.forwardRef(abe),ibe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},lbe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:ibe}))},xA=s.forwardRef(lbe);const sbe=({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:n,directoryNodeSelectedColor:r,motionDurationMid:a,borderRadius:o,controlItemBgHover:i})=>({[`${e}${e}-directory ${t}`]:{[`${e}-node-content-wrapper`]:{position:"static",[`&:has(${e}-drop-indicator)`]:{position:"relative"},[`> *:not(${e}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${a}`,content:'""',borderRadius:o},"&:hover:before":{background:i}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{background:n,borderRadius:o,[`${e}-switcher, ${e}-draggable-icon`]:{color:r},[`${e}-node-content-wrapper`]:{color:r,background:"transparent","&, &:hover":{color:r},"&:before, &:hover:before":{background:n}}}}}),cbe=new an("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),ube=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),dbe=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${ce(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),fbe=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:a,titleHeight:o,indentSize:i,nodeSelectedBg:l,nodeHoverBg:c,colorTextQuaternary:u,controlItemBgActiveDisabled:d}=t;return{[n]:Object.assign(Object.assign({},fn(t)),{"--rc-virtual-list-scrollbar-bg":t.colorSplit,background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${n}-active-focused)`]:jo(t),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:cbe,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:a,lineHeight:ce(o),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:a},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${n}-checkbox-disabled + ${n}-node-selected,&${r}-disabled${r}-selected ${n}-node-content-wrapper`]:{backgroundColor:d},[`${n}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${r}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:t.fontWeightStrong},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:o,textAlign:"center",visibility:"visible",color:u},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:i}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(o).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:Object.assign(Object.assign({},ube(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:o,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:o,height:o,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(o).div(2).equal(),bottom:t.calc(a).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(o).div(2).equal()).mul(.8).equal(),height:t.calc(o).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:o,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},dbe(e,t)),{"&:hover":{backgroundColor:c},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:l},[`${n}-iconEle`]:{display:"inline-block",width:o,height:o,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${r}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(o).div(2).equal(),bottom:t.calc(a).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last ${n}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${ce(t.calc(o).div(2).equal())} !important`}})}},wA=(e,t,n=!0)=>{const r=`.${e}`,a=`${r}-treenode`,o=t.calc(t.paddingXS).div(2).equal(),i=Xt(t,{treeCls:r,treeNodeCls:a,treeNodePadding:o});return[fbe(e,i),n&&sbe(i)].filter(Boolean)},$A=e=>{const{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e,a=t;return{titleHeight:a,indentSize:a,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},vbe=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},$A(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},mbe=rn("Tree",(e,{prefixCls:t})=>[{[e.componentCls]:t0(`${t}-checkbox`,e)},wA(t,e),vv(e)],vbe),lM=4;function gbe(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:a,direction:o="ltr"}=e,i=o==="ltr"?"left":"right",l=o==="ltr"?"right":"left",c={[i]:-n*a+lM,[l]:0};switch(t){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[i]=a+lM;break}return Q.createElement("div",{style:c,className:`${r}-drop-indicator`})}var pbe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},hbe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:pbe}))},bbe=s.forwardRef(hbe),ybe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},Cbe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:ybe}))},Sbe=s.forwardRef(Cbe),xbe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},wbe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:xbe}))},$be=s.forwardRef(wbe);const EA=e=>{var t,n;const{prefixCls:r,switcherIcon:a,treeNodeProps:o,showLine:i,switcherLoadingIcon:l}=e,{isLeaf:c,expanded:u,loading:d}=o;if(d)return s.isValidElement(l)?l:s.createElement(wa,{className:`${r}-switcher-loading-icon`});let f;if(i&&typeof i=="object"&&(f=i.showLeafIcon),c){if(!i)return null;if(typeof f!="boolean"&&f){const h=typeof f=="function"?f(o):f,b=`${r}-switcher-line-custom-icon`;return s.isValidElement(h)?xr(h,{className:le((t=h.props)===null||t===void 0?void 0:t.className,b)}):h}return f?s.createElement(SA,{className:`${r}-switcher-line-icon`}):s.createElement("span",{className:`${r}-switcher-leaf-line`})}const m=`${r}-switcher-icon`,g=typeof a=="function"?a(o):a;return s.isValidElement(g)?xr(g,{className:le((n=g.props)===null||n===void 0?void 0:n.className,m)}):g!==void 0?g:i?u?s.createElement(Sbe,{className:`${r}-switcher-line-icon`}):s.createElement($be,{className:`${r}-switcher-line-icon`}):s.createElement(bbe,{className:m})},PA=Q.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:a,virtual:o,tree:i}=Q.useContext(Ot),{prefixCls:l,className:c,showIcon:u=!1,showLine:d,switcherIcon:f,switcherLoadingIcon:m,blockNode:g=!1,children:h,checkable:b=!1,selectable:p=!0,draggable:S,disabled:C,motion:x,style:w}=e,$=r("tree",l),E=r(),P=Q.useContext(Sr),M=C??P,O=x??Object.assign(Object.assign({},Eu(E)),{motionAppear:!1}),T=Object.assign(Object.assign({},e),{checkable:b,selectable:p,showIcon:u,motion:O,blockNode:g,disabled:M,showLine:!!d,dropIndicatorRender:gbe}),[N,D,L]=mbe($),[,_]=Rr(),F=_.paddingXS/2+(((n=_.Tree)===null||n===void 0?void 0:n.titleHeight)||_.controlHeightSM),j=Q.useMemo(()=>{if(!S)return!1;let z={};switch(typeof S){case"function":z.nodeDraggable=S;break;case"object":z=Object.assign({},S);break}return z.icon!==!1&&(z.icon=z.icon||Q.createElement(xA,null)),z},[S]),k=z=>Q.createElement(EA,{prefixCls:$,switcherIcon:f,switcherLoadingIcon:m,treeNodeProps:z,showLine:d});return N(Q.createElement(m0,Object.assign({itemHeight:F,ref:t,virtual:o},T,{style:Object.assign(Object.assign({},i?.style),w),prefixCls:$,className:le({[`${$}-icon-hide`]:!u,[`${$}-block-node`]:g,[`${$}-unselectable`]:!p,[`${$}-rtl`]:a==="rtl",[`${$}-disabled`]:M},i?.className,c,D,L),direction:a,checkable:b&&Q.createElement("span",{className:`${$}-checkbox-inner`}),selectable:p,switcherIcon:k,draggable:j}),h))}),sM=0,w1=1,cM=2;function D4(e,t,n){const{key:r,children:a}=n;function o(i){const l=i[r],c=i[a];t(l,i)!==!1&&D4(c||[],t,n)}e.forEach(o)}function Ebe({treeData:e,expandedKeys:t,startKey:n,endKey:r,fieldNames:a}){const o=[];let i=sM;if(n&&n===r)return[n];if(!n||!r)return[];function l(c){return c===n||c===r}return D4(e,c=>{if(i===cM)return!1;if(l(c)){if(o.push(c),i===sM)i=w1;else if(i===w1)return i=cM,!1}else i===w1&&o.push(c);return t.includes(c)},Mu(a)),o}function $1(e,t,n){const r=Te(t),a=[];return D4(e,(o,i)=>{const l=r.indexOf(o);return l!==-1&&(a.push(i),r.splice(l,1)),!!r.length},Mu(n)),a}var uM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:a}=e,o=uM(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const i=s.useRef(null),l=s.useRef(null),c=()=>{const{keyEntities:M}=Ov(dM(o),{fieldNames:o.fieldNames});let O;return n?O=Object.keys(M):r?O=Qw(o.expandedKeys||a||[],M):O=o.expandedKeys||a||[],O},[u,d]=s.useState(o.selectedKeys||o.defaultSelectedKeys||[]),[f,m]=s.useState(()=>c());s.useEffect(()=>{"selectedKeys"in o&&d(o.selectedKeys)},[o.selectedKeys]),s.useEffect(()=>{"expandedKeys"in o&&m(o.expandedKeys)},[o.expandedKeys]);const g=(M,O)=>{var T;return"expandedKeys"in o||m(M),(T=o.onExpand)===null||T===void 0?void 0:T.call(o,M,O)},h=(M,O)=>{var T;const{multiple:N,fieldNames:D}=o,{node:L,nativeEvent:_}=O,{key:F=""}=L,j=dM(o),k=Object.assign(Object.assign({},O),{selected:!0}),z=_?.ctrlKey||_?.metaKey,V=_?.shiftKey;let H;N&&z?(H=M,i.current=F,l.current=H,k.selectedNodes=$1(j,H,D)):N&&V?(H=Array.from(new Set([].concat(Te(l.current||[]),Te(Ebe({treeData:j,expandedKeys:f,startKey:F,endKey:i.current,fieldNames:D}))))),k.selectedNodes=$1(j,H,D)):(H=[F],i.current=F,l.current=H,k.selectedNodes=$1(j,H,D)),(T=o.onSelect)===null||T===void 0||T.call(o,H,k),"selectedKeys"in o||d(H)},{getPrefixCls:b,direction:p}=s.useContext(Ot),{prefixCls:S,className:C,showIcon:x=!0,expandAction:w="click"}=o,$=uM(o,["prefixCls","className","showIcon","expandAction"]),E=b("tree",S),P=le(`${E}-directory`,{[`${E}-directory-rtl`]:p==="rtl"},C);return s.createElement(PA,Object.assign({icon:Pbe,ref:t,blockNode:!0},$,{showIcon:x,expandAction:w,prefixCls:E,className:P,expandedKeys:f,selectedKeys:u,onSelect:h,onExpand:g}))},Rbe=s.forwardRef(Obe),g0=PA;g0.DirectoryTree=Rbe;g0.TreeNode=Xf;const fM=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:a,onChange:o}=e;return n?s.createElement("div",{className:`${r}-filter-dropdown-search`},s.createElement(oc,{prefix:s.createElement(Sv,null),placeholder:a.filterSearchPlaceholder,onChange:o,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},Ibe=e=>{const{keyCode:t}=e;t===lt.ENTER&&e.stopPropagation()},Mbe=s.forwardRef((e,t)=>s.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:Ibe,ref:t},e.children));function vu(e){let t=[];return(e||[]).forEach(({value:n,children:r})=>{t.push(n),r&&(t=[].concat(Te(t),Te(vu(r))))}),t}function Tbe(e){return e.some(({children:t})=>t)}function OA(e,t){return typeof t=="string"||typeof t=="number"?t?.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function RA({filters:e,prefixCls:t,filteredKeys:n,filterMultiple:r,searchValue:a,filterSearch:o}){return e.map((i,l)=>{const c=String(i.value);if(i.children)return{key:c||l,label:i.text,popupClassName:`${t}-dropdown-submenu`,children:RA({filters:i.children,prefixCls:t,filteredKeys:n,filterMultiple:r,searchValue:a,filterSearch:o})};const u=r?si:ss,d={key:i.value!==void 0?c:l,label:s.createElement(s.Fragment,null,s.createElement(u,{checked:n.includes(c)}),s.createElement("span",null,i.text))};return a.trim()?typeof o=="function"?o(a,i)?d:null:OA(a,i.text)?d:null:d})}function E1(e){return e||[]}const Nbe=e=>{var t,n,r,a;const{tablePrefixCls:o,prefixCls:i,column:l,dropdownPrefixCls:c,columnKey:u,filterOnClose:d,filterMultiple:f,filterMode:m="menu",filterSearch:g=!1,filterState:h,triggerFilter:b,locale:p,children:S,getPopupContainer:C,rootClassName:x}=e,{filterResetToDefaultFilteredValue:w,defaultFilteredValue:$,filterDropdownProps:E={},filterDropdownOpen:P,filterDropdownVisible:M,onFilterDropdownVisibleChange:O,onFilterDropdownOpenChange:T}=l,[N,D]=s.useState(!1),L=!!(h&&(!((t=h.filteredKeys)===null||t===void 0)&&t.length||h.forceFiltered)),_=ve=>{var Ce;D(ve),(Ce=E.onOpenChange)===null||Ce===void 0||Ce.call(E,ve),T?.(ve),O?.(ve)},F=(a=(r=(n=E.open)!==null&&n!==void 0?n:P)!==null&&r!==void 0?r:M)!==null&&a!==void 0?a:N,j=h?.filteredKeys,[k,z]=xX(E1(j)),V=({selectedKeys:ve})=>{z(ve)},H=(ve,{node:Ce,checked:he})=>{V(f?{selectedKeys:ve}:{selectedKeys:he&&Ce.key?[Ce.key]:[]})};s.useEffect(()=>{N&&V({selectedKeys:E1(j)})},[j]);const[B,K]=s.useState([]),W=ve=>{K(ve)},[G,X]=s.useState(""),Y=ve=>{const{value:Ce}=ve.target;X(Ce)};s.useEffect(()=>{N||X("")},[N]);const Z=ve=>{const Ce=ve?.length?ve:null;if(Ce===null&&(!h||!h.filteredKeys)||Ma(Ce,h?.filteredKeys,!0))return null;b({column:l,key:u,filteredKeys:Ce})},ee=()=>{_(!1),Z(k())},re=({confirm:ve,closeDropdown:Ce}={confirm:!1,closeDropdown:!1})=>{ve&&Z([]),Ce&&_(!1),X(""),z(w?($||[]).map(he=>String(he)):[])},ne=({closeDropdown:ve}={closeDropdown:!0})=>{ve&&_(!1),Z(k())},se=(ve,Ce)=>{Ce.source==="trigger"&&(ve&&j!==void 0&&z(E1(j)),_(ve),!ve&&!l.filterDropdown&&d&&ee())},oe=le({[`${c}-menu-without-submenu`]:!Tbe(l.filters||[])}),me=ve=>{if(ve.target.checked){const Ce=vu(l?.filters).map(he=>String(he));z(Ce)}else z([])},ue=({filters:ve})=>(ve||[]).map((Ce,he)=>{const Se=String(Ce.value),Ee={title:Ce.text,key:Ce.value!==void 0?Se:String(he)};return Ce.children&&(Ee.children=ue({filters:Ce.children})),Ee}),de=ve=>{var Ce;return Object.assign(Object.assign({},ve),{text:ve.title,value:ve.key,children:((Ce=ve.children)===null||Ce===void 0?void 0:Ce.map(he=>de(he)))||[]})};let ae;const{direction:ie,renderEmpty:ge}=s.useContext(Ot);if(typeof l.filterDropdown=="function")ae=l.filterDropdown({prefixCls:`${c}-custom`,setSelectedKeys:ve=>V({selectedKeys:ve}),selectedKeys:k(),confirm:ne,clearFilters:re,filters:l.filters,visible:F,close:()=>{_(!1)}});else if(l.filterDropdown)ae=l.filterDropdown;else{const ve=k()||[],Ce=()=>{var Se,Ee;const Oe=(Se=ge?.("Table.filter"))!==null&&Se!==void 0?Se:s.createElement(tl,{image:tl.PRESENTED_IMAGE_SIMPLE,description:p.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((l.filters||[]).length===0)return Oe;if(m==="tree")return s.createElement(s.Fragment,null,s.createElement(fM,{filterSearch:g,value:G,onChange:Y,tablePrefixCls:o,locale:p}),s.createElement("div",{className:`${o}-filter-dropdown-tree`},f?s.createElement(si,{checked:ve.length===vu(l.filters).length,indeterminate:ve.length>0&&ve.lengthtypeof g=="function"?g(G,de(De)):OA(G,De.title):void 0})));const We=RA({filters:l.filters||[],filterSearch:g,prefixCls:i,filteredKeys:k(),filterMultiple:f,searchValue:G}),je=We.every(De=>De===null);return s.createElement(s.Fragment,null,s.createElement(fM,{filterSearch:g,value:G,onChange:Y,tablePrefixCls:o,locale:p}),je?Oe:s.createElement(ec,{selectable:!0,multiple:f,prefixCls:`${c}-menu`,className:oe,onSelect:V,onDeselect:V,selectedKeys:ve,getPopupContainer:C,openKeys:B,onOpenChange:W,items:We}))},he=()=>w?Ma(($||[]).map(Se=>String(Se)),ve,!0):ve.length===0;ae=s.createElement(s.Fragment,null,Ce(),s.createElement("div",{className:`${i}-dropdown-btns`},s.createElement(cr,{type:"link",size:"small",disabled:he(),onClick:()=>re()},p.filterReset),s.createElement(cr,{type:"primary",size:"small",onClick:ee},p.filterConfirm)))}l.filterDropdown&&(ae=s.createElement(Gk,{selectable:void 0},ae)),ae=s.createElement(Mbe,{className:`${i}-dropdown`},ae);const be=Hf({trigger:["click"],placement:ie==="rtl"?"bottomLeft":"bottomRight",children:(()=>{let ve;return typeof l.filterIcon=="function"?ve=l.filterIcon(L):l.filterIcon?ve=l.filterIcon:ve=s.createElement(B0e,null),s.createElement("span",{role:"button",tabIndex:-1,className:le(`${i}-trigger`,{active:L}),onClick:Ce=>{Ce.stopPropagation()}},ve)})(),getPopupContainer:C},Object.assign(Object.assign({},E),{rootClassName:le(x,E.rootClassName),open:F,onOpenChange:se,popupRender:()=>typeof E?.dropdownRender=="function"?E.dropdownRender(ae):ae}));return s.createElement("div",{className:`${i}-column`},s.createElement("span",{className:`${o}-column-title`},S),s.createElement(cs,Object.assign({},be)))},n$=(e,t,n)=>{let r=[];return(e||[]).forEach((a,o)=>{var i;const l=od(o,n),c=a.filterDropdown!==void 0;if(a.filters||c||"onFilter"in a)if("filteredValue"in a){let u=a.filteredValue;c||(u=(i=u?.map(String))!==null&&i!==void 0?i:u),r.push({column:a,key:Jl(a,l),filteredKeys:u,forceFiltered:a.filtered})}else r.push({column:a,key:Jl(a,l),filteredKeys:t&&a.defaultFilteredValue?a.defaultFilteredValue:void 0,forceFiltered:a.filtered});"children"in a&&(r=[].concat(Te(r),Te(n$(a.children,t,l))))}),r};function IA(e,t,n,r,a,o,i,l,c){return n.map((u,d)=>{const f=od(d,l),{filterOnClose:m=!0,filterMultiple:g=!0,filterMode:h,filterSearch:b}=u;let p=u;if(p.filters||p.filterDropdown){const S=Jl(p,f),C=r.find(({key:x})=>S===x);p=Object.assign(Object.assign({},p),{title:x=>s.createElement(Nbe,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:p,columnKey:S,filterState:C,filterOnClose:m,filterMultiple:g,filterMode:h,filterSearch:b,triggerFilter:o,locale:a,getPopupContainer:i,rootClassName:c},v0(u.title,x))})}return"children"in p&&(p=Object.assign(Object.assign({},p),{children:IA(e,t,p.children,r,a,o,i,f,c)})),p})}const vM=e=>{const t={};return e.forEach(({key:n,filteredKeys:r,column:a})=>{const o=n,{filters:i,filterDropdown:l}=a;if(l)t[o]=r||null;else if(Array.isArray(r)){const c=vu(i);t[o]=c.filter(u=>r.includes(String(u)))}else t[o]=null}),t},r$=(e,t,n)=>t.reduce((a,o)=>{const{column:{onFilter:i,filters:l},filteredKeys:c}=o;return i&&c&&c.length?a.map(u=>Object.assign({},u)).filter(u=>c.some(d=>{const f=vu(l),m=f.findIndex(h=>String(h)===String(d)),g=m!==-1?f[m]:d;return u[n]&&(u[n]=r$(u[n],t,n)),i(g,u)})):a},e),MA=e=>e.flatMap(t=>"children"in t?[t].concat(Te(MA(t.children||[]))):[t]),_be=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:a,getPopupContainer:o,locale:i,rootClassName:l}=e;Ni();const c=s.useMemo(()=>MA(r||[]),[r]),[u,d]=s.useState(()=>n$(c,!0)),f=s.useMemo(()=>{const b=n$(c,!1);if(b.length===0)return b;let p=!0;if(b.forEach(({filteredKeys:S})=>{S!==void 0&&(p=!1)}),p){const S=(c||[]).map((C,x)=>Jl(C,od(x)));return u.filter(({key:C})=>S.includes(C)).map(C=>{const x=c[S.indexOf(C.key)];return Object.assign(Object.assign({},C),{column:Object.assign(Object.assign({},C.column),x),forceFiltered:x.filtered})})}return b},[c,u]),m=s.useMemo(()=>vM(f),[f]),g=b=>{const p=f.filter(({key:S})=>S!==b.key);p.push(b),d(p),a(vM(p),p)};return[b=>IA(t,n,b,f,i,g,o,void 0,l),f,m]},TA=(e,t,n)=>{const r=s.useRef({});function a(o){var i;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let c=function(u){u.forEach((d,f)=>{const m=n(d,f);l.set(m,d),d&&typeof d=="object"&&t in d&&c(d[t]||[])})};const l=new Map;c(e),r.current={data:e,childrenColumnName:t,kvMap:l,getRowKey:n}}return(i=r.current.kvMap)===null||i===void 0?void 0:i.get(o)}return[a]};var jbe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const o=e[a];typeof o!="function"&&(n[a]=o)}),n}function Fbe(e,t,n){const r=n&&typeof n=="object"?n:{},{total:a=0}=r,o=jbe(r,["total"]),[i,l]=s.useState(()=>({current:"defaultCurrent"in o?o.defaultCurrent:1,pageSize:"defaultPageSize"in o?o.defaultPageSize:NA})),c=Hf(i,o,{total:a>0?a:e}),u=Math.ceil((a||e)/c.pageSize);c.current>u&&(c.current=u||1);const d=(m,g)=>{l({current:m??1,pageSize:g||c.pageSize})},f=(m,g)=>{var h;n&&((h=n.onChange)===null||h===void 0||h.call(n,m,g)),d(m,g),t(m,g||c?.pageSize)};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},c),{onChange:f}),d]}var kbe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},Lbe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:kbe}))},zbe=s.forwardRef(Lbe),Abe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},Bbe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:Abe}))},Hbe=s.forwardRef(Bbe);const sp="ascend",P1="descend",Ap=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1,mM=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1,Vbe=(e,t)=>t?e[e.indexOf(t)+1]:e[0],a$=(e,t,n)=>{let r=[];const a=(o,i)=>{r.push({column:o,key:Jl(o,i),multiplePriority:Ap(o),sortOrder:o.sortOrder})};return(e||[]).forEach((o,i)=>{const l=od(i,n);o.children?("sortOrder"in o&&a(o,l),r=[].concat(Te(r),Te(a$(o.children,t,l)))):o.sorter&&("sortOrder"in o?a(o,l):t&&o.defaultSortOrder&&r.push({column:o,key:Jl(o,l),multiplePriority:Ap(o),sortOrder:o.defaultSortOrder}))}),r},_A=(e,t,n,r,a,o,i,l)=>(t||[]).map((u,d)=>{const f=od(d,l);let m=u;if(m.sorter){const g=m.sortDirections||a,h=m.showSorterTooltip===void 0?i:m.showSorterTooltip,b=Jl(m,f),p=n.find(({key:O})=>O===b),S=p?p.sortOrder:null,C=Vbe(g,S);let x;if(u.sortIcon)x=u.sortIcon({sortOrder:S});else{const O=g.includes(sp)&&s.createElement(Hbe,{className:le(`${e}-column-sorter-up`,{active:S===sp})}),T=g.includes(P1)&&s.createElement(zbe,{className:le(`${e}-column-sorter-down`,{active:S===P1})});x=s.createElement("span",{className:le(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(O&&T)})},s.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},O,T))}const{cancelSort:w,triggerAsc:$,triggerDesc:E}=o||{};let P=w;C===P1?P=E:C===sp&&(P=$);const M=typeof h=="object"?Object.assign({title:P},h):{title:P};m=Object.assign(Object.assign({},m),{className:le(m.className,{[`${e}-column-sort`]:S}),title:O=>{const T=`${e}-column-sorters`,N=s.createElement("span",{className:`${e}-column-title`},v0(u.title,O)),D=s.createElement("div",{className:T},N,x);return h?typeof h!="boolean"&&h?.target==="sorter-icon"?s.createElement("div",{className:le(T,`${T}-tooltip-target-sorter`)},N,s.createElement(tr,Object.assign({},M),x)):s.createElement(tr,Object.assign({},M),D):D},onHeaderCell:O=>{var T;const N=((T=u.onHeaderCell)===null||T===void 0?void 0:T.call(u,O))||{},D=N.onClick,L=N.onKeyDown;N.onClick=j=>{r({column:u,key:b,sortOrder:C,multiplePriority:Ap(u)}),D?.(j)},N.onKeyDown=j=>{j.keyCode===lt.ENTER&&(r({column:u,key:b,sortOrder:C,multiplePriority:Ap(u)}),L?.(j))};const _=L0e(u.title,{}),F=_?.toString();return S&&(N["aria-sort"]=S==="ascend"?"ascending":"descending"),N["aria-label"]=F||"",N.className=le(N.className,`${e}-column-has-sorters`),N.tabIndex=0,u.ellipsis&&(N.title=(_??"").toString()),N}})}return"children"in m&&(m=Object.assign(Object.assign({},m),{children:_A(e,m.children,n,r,a,o,i,f)})),m}),gM=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},pM=e=>{const t=e.filter(({sortOrder:n})=>n).map(gM);if(t.length===0&&e.length){const n=e.length-1;return Object.assign(Object.assign({},gM(e[n])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},o$=(e,t,n)=>{const r=t.slice().sort((i,l)=>l.multiplePriority-i.multiplePriority),a=e.slice(),o=r.filter(({column:{sorter:i},sortOrder:l})=>mM(i)&&l);return o.length?a.sort((i,l)=>{for(let c=0;c{const l=i[n];return l?Object.assign(Object.assign({},i),{[n]:o$(l,t,n)}):i}):a},Wbe=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:a,showSorterTooltip:o,onSorterChange:i}=e,[l,c]=s.useState(()=>a$(n,!0)),u=(b,p)=>{const S=[];return b.forEach((C,x)=>{const w=od(x,p);if(S.push(Jl(C,w)),Array.isArray(C.children)){const $=u(C.children,w);S.push.apply(S,Te($))}}),S},d=s.useMemo(()=>{let b=!0;const p=a$(n,!1);if(!p.length){const w=u(n);return l.filter(({key:$})=>w.includes($))}const S=[];function C(w){b?S.push(w):S.push(Object.assign(Object.assign({},w),{sortOrder:null}))}let x=null;return p.forEach(w=>{x===null?(C(w),w.sortOrder&&(w.multiplePriority===!1?b=!1:x=!0)):(x&&w.multiplePriority!==!1||(b=!1),C(w))}),S},[n,l]),f=s.useMemo(()=>{var b,p;const S=d.map(({column:C,sortOrder:x})=>({column:C,order:x}));return{sortColumns:S,sortColumn:(b=S[0])===null||b===void 0?void 0:b.column,sortOrder:(p=S[0])===null||p===void 0?void 0:p.order}},[d]),m=b=>{let p;b.multiplePriority===!1||!d.length||d[0].multiplePriority===!1?p=[b]:p=[].concat(Te(d.filter(({key:S})=>S!==b.key)),[b]),c(p),i(pM(p),p)};return[b=>_A(t,b,d,m,r,a,o),d,f,()=>pM(d)]},jA=(e,t)=>e.map(r=>{const a=Object.assign({},r);return a.title=v0(r.title,t),"children"in a&&(a.children=jA(a.children,t)),a}),Kbe=e=>[s.useCallback(n=>jA(n,e),[e])],qbe=gA((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),Ube=hA((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),Gbe=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:a,tableHeaderBg:o,tablePaddingVertical:i,tablePaddingHorizontal:l,calc:c}=e,u=`${ce(n)} ${r} ${a}`,d=(f,m,g)=>({[`&${t}-${f}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${ce(c(m).mul(-1).equal())} - ${ce(c(c(g).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:u,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:u,borderTop:u,[` - > ${t}-content, - > ${t}-header, - > ${t}-body, - > ${t}-summary - `]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:u},"> thead":{"> tr:not(:last-child) > th":{borderBottom:u},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:u}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${ce(c(i).mul(-1).equal())} ${ce(c(c(l).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:u,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[` - > tr${t}-expanded-row, - > tr${t}-placeholder - `]:{"> th, > td":{borderInlineEnd:0}}}}}},d("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),d("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:u,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${ce(n)} 0 ${ce(n)} ${o}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:u}}}},Xbe=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},ra),{wordBreak:"keep-all",[` - &${t}-cell-fix-left-last, - &${t}-cell-fix-right-first - `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Ybe=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},Qbe=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:a,paddingXS:o,lineType:i,tableBorderColor:l,tableExpandIconBg:c,tableExpandColumnWidth:u,borderRadius:d,tablePaddingVertical:f,tablePaddingHorizontal:m,tableExpandedRowBg:g,paddingXXS:h,expandIconMarginTop:b,expandIconSize:p,expandIconHalfInner:S,expandIconScale:C,calc:x}=e,w=`${ce(a)} ${i} ${l}`,$=x(h).sub(a).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:u},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},ph(e)),{position:"relative",float:"left",width:p,height:p,color:"inherit",lineHeight:ce(p),background:c,border:w,borderRadius:d,transform:`scale(${C})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:S,insetInlineEnd:$,insetInlineStart:$,height:a},"&::after":{top:$,bottom:$,insetInlineStart:S,width:a,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:b,marginInlineEnd:o},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:g}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${ce(x(f).mul(-1).equal())} ${ce(x(m).mul(-1).equal())}`,padding:`${ce(f)} ${ce(m)}`}}}},Zbe=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:a,tableFilterDropdownSearchWidth:o,paddingXXS:i,paddingXS:l,colorText:c,lineWidth:u,lineType:d,tableBorderColor:f,headerIconColor:m,fontSizeSM:g,tablePaddingHorizontal:h,borderRadius:b,motionDurationSlow:p,colorIcon:S,colorPrimary:C,tableHeaderFilterActiveBg:x,colorTextDisabled:w,tableFilterDropdownBg:$,tableFilterDropdownHeight:E,controlItemBgHover:P,controlItemBgActive:M,boxShadowSecondary:O,filterDropdownMenuBg:T,calc:N}=e,D=`${n}-dropdown`,L=`${t}-filter-dropdown`,_=`${n}-tree`,F=`${ce(u)} ${d} ${f}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:N(i).mul(-1).equal(),marginInline:`${ce(i)} ${ce(N(h).div(2).mul(-1).equal())}`,padding:`0 ${ce(i)}`,color:m,fontSize:g,borderRadius:b,cursor:"pointer",transition:`all ${p}`,"&:hover":{color:S,background:x},"&.active":{color:C}}}},{[`${n}-dropdown`]:{[L]:Object.assign(Object.assign({},fn(e)),{minWidth:a,backgroundColor:$,borderRadius:b,boxShadow:O,overflow:"hidden",[`${D}-menu`]:{maxHeight:E,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:T,"&:empty::after":{display:"block",padding:`${ce(l)} 0`,color:w,fontSize:g,textAlign:"center",content:'"Not Found"'}},[`${L}-tree`]:{paddingBlock:`${ce(l)} 0`,paddingInline:l,[_]:{padding:0},[`${_}-treenode ${_}-node-content-wrapper:hover`]:{backgroundColor:P},[`${_}-treenode-checkbox-checked ${_}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:M}}},[`${L}-search`]:{padding:l,borderBottom:F,"&-input":{input:{minWidth:o},[r]:{color:w}}},[`${L}-checkall`]:{width:"100%",marginBottom:i,marginInlineStart:i},[`${L}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${ce(N(l).sub(u).equal())} ${ce(l)}`,overflow:"hidden",borderTop:F}})}},{[`${n}-dropdown ${L}, ${L}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:l,color:c},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Jbe=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:a,zIndexTableFixed:o,tableBg:i,zIndexTableSticky:l,calc:c}=e,u=r;return{[`${t}-wrapper`]:{[` - ${t}-cell-fix-left, - ${t}-cell-fix-right - `]:{position:"sticky !important",zIndex:o,background:i},[` - ${t}-cell-fix-left-first::after, - ${t}-cell-fix-left-last::after - `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:c(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${a}`,content:'""',pointerEvents:"none",willChange:"transform"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[` - ${t}-cell-fix-right-first::after, - ${t}-cell-fix-right-last::after - `]:{position:"absolute",top:0,bottom:c(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${a}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:c(l).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${a}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${u}`},[` - ${t}-cell-fix-left-first::after, - ${t}-cell-fix-left-last::after - `]:{boxShadow:`inset 10px 0 8px -8px ${u}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${u}`},[` - ${t}-cell-fix-right-first::after, - ${t}-cell-fix-right-last::after - `]:{boxShadow:`inset -10px 0 8px -8px ${u}`}},[`${t}-fixed-column-gapped`]:{[` - ${t}-cell-fix-left-first::after, - ${t}-cell-fix-left-last::after, - ${t}-cell-fix-right-first::after, - ${t}-cell-fix-right-last::after - `]:{boxShadow:"none"}}}}},eye=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper ${t}-pagination${n}-pagination`]:{margin:`${ce(r)} 0`}}},tye=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${ce(n)} ${ce(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${ce(n)} ${ce(n)}`}}}}},nye=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},rye=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:a,padding:o,paddingXS:i,headerIconColor:l,headerIconHoverColor:c,tableSelectionColumnWidth:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,tableRowHoverBg:m,tablePaddingHorizontal:g,calc:h}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:u,[`&${t}-selection-col-with-dropdown`]:{width:h(u).add(a).add(h(o).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:h(u).add(h(i).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:h(u).add(a).add(h(o).div(4)).add(h(i).mul(2)).equal()}},[` - table tr th${t}-selection-column, - table tr td${t}-selection-column, - ${t}-selection-column - `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:h(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:ce(h(g).div(4).equal()),[r]:{color:l,fontSize:a,verticalAlign:"baseline","&:hover":{color:c}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:d,"&-row-hover":{background:f}}},[`> ${t}-cell-row-hover`]:{background:m}}}}}},aye=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,a=(o,i,l,c)=>({[`${t}${t}-${o}`]:{fontSize:c,[` - ${t}-title, - ${t}-footer, - ${t}-cell, - ${t}-thead > tr > th, - ${t}-tbody > tr > th, - ${t}-tbody > tr > td, - tfoot > tr > th, - tfoot > tr > td - `]:{padding:`${ce(i)} ${ce(l)}`},[`${t}-filter-trigger`]:{marginInlineEnd:ce(r(l).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${ce(r(i).mul(-1).equal())} ${ce(r(l).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:ce(r(i).mul(-1).equal()),marginInline:`${ce(r(n).sub(l).equal())} ${ce(r(l).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:ce(r(l).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},a("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),a("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},oye=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:a,headerIconHoverColor:o}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[` - &${t}-cell-fix-left:hover, - &${t}-cell-fix-right:hover - `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:a,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:o}}}},iye=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:a,tableScrollThumbSize:o,tableScrollBg:i,zIndexTableSticky:l,stickyScrollBarBorderRadius:c,lineWidth:u,lineType:d,tableBorderColor:f}=e,m=`${ce(u)} ${d} ${f}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:l,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${ce(o)} !important`,zIndex:l,display:"flex",alignItems:"center",background:i,borderTop:m,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:o,backgroundColor:r,borderRadius:c,transition:`all ${e.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:a}}}}}}},hM=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:a}=e,o=`${ce(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:o}}},[`div${t}-summary`]:{boxShadow:`0 ${ce(a(n).mul(-1).equal())} 0 ${r}`}}}},lye=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:a,tableBorderColor:o,calc:i}=e,l=`${ce(r)} ${a} ${o}`,c=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[` - & > ${t}-row, - & > div:not(${t}-row) > ${t}-row - `]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:l,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${c}${c}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${ce(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:l,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:l,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:i(r).mul(-1).equal(),borderInlineStart:l}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:l,borderBottom:l}}}}}},sye=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:a,tableExpandColumnWidth:o,lineWidth:i,lineType:l,tableBorderColor:c,tableFontSize:u,tableBg:d,tableRadius:f,tableHeaderTextColor:m,motionDurationMid:g,tableHeaderBg:h,tableHeaderCellSplitColor:b,tableFooterTextColor:p,tableFooterBg:S,calc:C}=e,x=`${ce(i)} ${l} ${c}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%","--rc-virtual-list-scrollbar-bg":e.tableScrollBg},Ei()),{[t]:Object.assign(Object.assign({},fn(e)),{fontSize:u,background:d,borderRadius:`${ce(f)} ${ce(f)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${ce(f)} ${ce(f)} 0 0`,borderCollapse:"separate",borderSpacing:0},[` - ${t}-cell, - ${t}-thead > tr > th, - ${t}-tbody > tr > th, - ${t}-tbody > tr > td, - tfoot > tr > th, - tfoot > tr > td - `]:{position:"relative",padding:`${ce(r)} ${ce(a)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${ce(r)} ${ce(a)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:m,fontWeight:n,textAlign:"start",background:h,borderBottom:x,transition:`background ${g} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:b,transform:"translateY(-50%)",transition:`background-color ${g}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${g}, border-color ${g}`,borderBottom:x,[` - > ${t}-wrapper:only-child, - > ${t}-expanded-row-fixed > ${t}-wrapper:only-child - `]:{[t]:{marginBlock:ce(C(r).mul(-1).equal()),marginInline:`${ce(C(o).sub(a).equal())} - ${ce(C(a).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:m,fontWeight:n,textAlign:"start",background:h,borderBottom:x,transition:`background ${g} ease`},[`& > ${t}-measure-cell`]:{paddingBlock:"0 !important",borderBlock:"0 !important",[`${t}-measure-cell-content`]:{height:0,overflow:"hidden",pointerEvents:"none"}}}},[`${t}-footer`]:{padding:`${ce(r)} ${ce(a)}`,color:p,background:S}})}},cye=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:a,colorFillContent:o,controlItemBgActive:i,controlItemBgActiveHover:l,padding:c,paddingSM:u,paddingXS:d,colorBorderSecondary:f,borderRadiusLG:m,controlHeight:g,colorTextPlaceholder:h,fontSize:b,fontSizeSM:p,lineHeight:S,lineWidth:C,colorIcon:x,colorIconHover:w,opacityLoading:$,controlInteractiveSize:E}=e,P=new dn(a).onBackground(n).toHexString(),M=new dn(o).onBackground(n).toHexString(),O=new dn(t).onBackground(n).toHexString(),T=new dn(x),N=new dn(w),D=E/2-C,L=D*2+C*3;return{headerBg:O,headerColor:r,headerSortActiveBg:P,headerSortHoverBg:M,bodySortBg:O,rowHoverBg:O,rowSelectedBg:i,rowSelectedHoverBg:l,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:u,cellPaddingInlineMD:d,cellPaddingBlockSM:d,cellPaddingInlineSM:d,borderColor:f,headerBorderRadius:m,footerBg:O,footerColor:r,cellFontSize:b,cellFontSizeMD:b,cellFontSizeSM:b,headerSplitColor:f,fixedHeaderSortActiveBg:P,headerFilterHoverBg:o,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:g,stickyScrollBarBg:h,stickyScrollBarBorderRadius:100,expandIconMarginTop:(b*S-C*3)/2-Math.ceil((p*1.4-C*3)/2),headerIconColor:T.clone().setA(T.a*$).toRgbString(),headerIconHoverColor:N.clone().setA(N.a*$).toRgbString(),expandIconHalfInner:D,expandIconSize:L,expandIconScale:E/L}},bM=2,uye=rn("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:a,headerBg:o,headerColor:i,headerSortActiveBg:l,headerSortHoverBg:c,bodySortBg:u,rowHoverBg:d,rowSelectedBg:f,rowSelectedHoverBg:m,rowExpandedBg:g,cellPaddingBlock:h,cellPaddingInline:b,cellPaddingBlockMD:p,cellPaddingInlineMD:S,cellPaddingBlockSM:C,cellPaddingInlineSM:x,borderColor:w,footerBg:$,footerColor:E,headerBorderRadius:P,cellFontSize:M,cellFontSizeMD:O,cellFontSizeSM:T,headerSplitColor:N,fixedHeaderSortActiveBg:D,headerFilterHoverBg:L,filterDropdownBg:_,expandIconBg:F,selectionColumnWidth:j,stickyScrollBarBg:k,calc:z}=e,V=Xt(e,{tableFontSize:M,tableBg:r,tableRadius:P,tablePaddingVertical:h,tablePaddingHorizontal:b,tablePaddingVerticalMiddle:p,tablePaddingHorizontalMiddle:S,tablePaddingVerticalSmall:C,tablePaddingHorizontalSmall:x,tableBorderColor:w,tableHeaderTextColor:i,tableHeaderBg:o,tableFooterTextColor:E,tableFooterBg:$,tableHeaderCellSplitColor:N,tableHeaderSortBg:l,tableHeaderSortHoverBg:c,tableBodySortBg:u,tableFixedHeaderSortActiveBg:D,tableHeaderFilterActiveBg:L,tableFilterDropdownBg:_,tableRowHoverBg:d,tableSelectedRowBg:f,tableSelectedRowHoverBg:m,zIndexTableFixed:bM,zIndexTableSticky:z(bM).add(1).equal({unit:!1}),tableFontSizeMiddle:O,tableFontSizeSmall:T,tableSelectionColumnWidth:j,tableExpandIconBg:F,tableExpandColumnWidth:z(a).add(z(e.padding).mul(2)).equal(),tableExpandedRowBg:g,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:k,tableScrollThumbBgHover:t,tableScrollBg:n});return[sye(V),eye(V),hM(V),oye(V),Zbe(V),Gbe(V),tye(V),Qbe(V),hM(V),Ybe(V),rye(V),Jbe(V),iye(V),Xbe(V),aye(V),nye(V),lye(V)]},cye,{unitless:{expandIconScale:!0}}),yM=[],dye=(e,t)=>{var n,r;const{prefixCls:a,className:o,rootClassName:i,style:l,size:c,bordered:u,dropdownPrefixCls:d,dataSource:f,pagination:m,rowSelection:g,rowKey:h="key",rowClassName:b,columns:p,children:S,childrenColumnName:C,onChange:x,getPopupContainer:w,loading:$,expandIcon:E,expandable:P,expandedRowRender:M,expandIconColumnIndex:O,indentSize:T,scroll:N,sortDirections:D,locale:L,showSorterTooltip:_={target:"full-header"},virtual:F}=e;Ni();const j=s.useMemo(()=>p||M4(S),[p,S]),k=s.useMemo(()=>j.some(pt=>pt.responsive),[j]),z=ui(k),V=s.useMemo(()=>{const pt=new Set(Object.keys(z).filter(mt=>z[mt]));return j.filter(mt=>!mt.responsive||mt.responsive.some(jt=>pt.has(jt)))},[j,z]),H=Qt(e,["className","style","columns"]),{locale:B=Ka,direction:K,table:W,renderEmpty:G,getPrefixCls:X,getPopupContainer:Y}=s.useContext(Ot),Z=ar(c),ee=Object.assign(Object.assign({},B.Table),L),re=f||yM,ne=X("table",a),se=X("dropdown",d),[,oe]=Rr(),me=zn(ne),[ue,de,ae]=uye(ne,me),ie=Object.assign(Object.assign({childrenColumnName:C,expandIconColumnIndex:O},P),{expandIcon:(n=P?.expandIcon)!==null&&n!==void 0?n:(r=W?.expandable)===null||r===void 0?void 0:r.expandIcon}),{childrenColumnName:ge="children"}=ie,pe=s.useMemo(()=>re.some(pt=>pt?.[ge])?"nest":M||P?.expandedRowRender?"row":null,[re]),be={body:s.useRef(null)},ve=k0e(ne),Ce=s.useRef(null),he=s.useRef(null);SX(t,()=>Object.assign(Object.assign({},he.current),{nativeElement:Ce.current}));const Se=s.useMemo(()=>typeof h=="function"?h:pt=>pt?.[h],[h]),[Ee]=TA(re,ge,Se),Oe={},We=(pt,mt,jt=!1)=>{var Kt,cn,tn,Bt;const It=Object.assign(Object.assign({},Oe),pt);jt&&((Kt=Oe.resetPagination)===null||Kt===void 0||Kt.call(Oe),!((cn=It.pagination)===null||cn===void 0)&&cn.current&&(It.pagination.current=1),m&&((tn=m.onChange)===null||tn===void 0||tn.call(m,1,(Bt=It.pagination)===null||Bt===void 0?void 0:Bt.pageSize))),N&&N.scrollToFirstRowOnChange!==!1&&be.body.current&&TD(0,{getContainer:()=>be.body.current}),x?.(It.pagination,It.filters,It.sorter,{currentDataSource:r$(o$(re,It.sorterStates,ge),It.filterStates,ge),action:mt})},je=(pt,mt)=>{We({sorter:pt,sorterStates:mt},"sort",!1)},[De,ke,_e,Re]=Wbe({prefixCls:ne,mergedColumns:V,onSorterChange:je,sortDirections:D||["ascend","descend"],tableLocale:ee,showSorterTooltip:_}),Le=s.useMemo(()=>o$(re,ke,ge),[re,ke]);Oe.sorter=Re(),Oe.sorterStates=ke;const Me=(pt,mt)=>{We({filters:pt,filterStates:mt},"filter",!0)},[Be,$e,we]=_be({prefixCls:ne,locale:ee,dropdownPrefixCls:se,mergedColumns:V,onFilterChange:Me,getPopupContainer:w||Y,rootClassName:le(i,me)}),Ie=r$(Le,$e,ge);Oe.filters=we,Oe.filterStates=$e;const Fe=s.useMemo(()=>{const pt={};return Object.keys(we).forEach(mt=>{we[mt]!==null&&(pt[mt]=we[mt])}),Object.assign(Object.assign({},_e),{filters:pt})},[_e,we]),[Ge]=Kbe(Fe),et=(pt,mt)=>{We({pagination:Object.assign(Object.assign({},Oe.pagination),{current:pt,pageSize:mt})},"paginate")},[Ke,Ye]=Fbe(Ie.length,et,m);Oe.pagination=m===!1?{}:Dbe(Ke,m),Oe.resetPagination=Ye;const tt=s.useMemo(()=>{if(m===!1||!Ke.pageSize)return Ie;const{current:pt=1,total:mt,pageSize:jt=NA}=Ke;return Ie.lengthjt?Ie.slice((pt-1)*jt,pt*jt):Ie:Ie.slice((pt-1)*jt,pt*jt)},[!!m,Ie,Ke?.current,Ke?.pageSize,Ke?.total]),[rt,ct]=D0e({prefixCls:ne,data:Ie,pageData:tt,getRowKey:Se,getRecordByKey:Ee,expandType:pe,childrenColumnName:ge,locale:ee,getPopupContainer:w||Y},g),Ct=(pt,mt,jt)=>{let Kt;return typeof b=="function"?Kt=le(b(pt,mt,jt)):Kt=le(b),le({[`${ne}-row-selected`]:ct.has(Se(pt,mt))},Kt)};ie.__PARENT_RENDER_ICON__=ie.expandIcon,ie.expandIcon=ie.expandIcon||E||F0e(ee),pe==="nest"&&ie.expandIconColumnIndex===void 0?ie.expandIconColumnIndex=g?1:0:ie.expandIconColumnIndex>0&&g&&(ie.expandIconColumnIndex-=1),typeof ie.indentSize!="number"&&(ie.indentSize=typeof T=="number"?T:15);const yt=s.useCallback(pt=>Ge(rt(Be(De(pt)))),[De,Be,rt]),dt=()=>{if(m===!1||!Ke?.total)return{};const pt=()=>Ke.size||(Z==="small"||Z==="middle"?"small":void 0),mt=Xe=>{const it=Xe==="left"?"start":Xe==="right"?"end":Xe;return s.createElement(x4,Object.assign({},Ke,{align:Ke.align||it,className:le(`${ne}-pagination`,Ke.className),size:pt()}))},jt=K==="rtl"?"left":"right",Kt=Ke.position;if(Kt===null||!Array.isArray(Kt))return{bottom:mt(jt)};const cn=Kt.find(Xe=>typeof Xe=="string"&&Xe.toLowerCase().includes("top")),tn=Kt.find(Xe=>typeof Xe=="string"&&Xe.toLowerCase().includes("bottom")),Bt=Kt.every(Xe=>`${Xe}`=="none"),It=cn?cn.toLowerCase().replace("top",""):"",Wt=tn?tn.toLowerCase().replace("bottom",""):"",ot=!cn&&!tn&&!Bt,Et=()=>It?mt(It):void 0,gt=()=>{if(Wt)return mt(Wt);if(ot)return mt(jt)};return{top:Et(),bottom:gt()}},vt=s.useMemo(()=>typeof $=="boolean"?{spinning:$}:typeof $=="object"&&$!==null?Object.assign({spinning:!0},$):void 0,[$]),bt=le(ae,me,`${ne}-wrapper`,W?.className,{[`${ne}-wrapper-rtl`]:K==="rtl"},o,i,de),ze=Object.assign(Object.assign({},W?.style),l),Ve=s.useMemo(()=>vt?.spinning&&re===yM?null:typeof L?.emptyText<"u"?L.emptyText:G?.("Table")||s.createElement(Js,{componentName:"Table"}),[vt?.spinning,re,L?.emptyText,G]),Pe=F?Ube:qbe,He={},Ze=s.useMemo(()=>{const{fontSize:pt,lineHeight:mt,lineWidth:jt,padding:Kt,paddingXS:cn,paddingSM:tn}=oe,Bt=Math.floor(pt*mt);switch(Z){case"middle":return tn*2+Bt+jt;case"small":return cn*2+Bt+jt;default:return Kt*2+Bt+jt}},[oe,Z]);F&&(He.listItemHeight=Ze);const{top:at,bottom:Nt}=dt();return ue(s.createElement("div",{ref:Ce,className:bt,style:ze},s.createElement(ki,Object.assign({spinning:!1},vt),at,s.createElement(Pe,Object.assign({},He,H,{ref:he,columns:V,direction:K,expandable:ie,prefixCls:ne,className:le({[`${ne}-middle`]:Z==="middle",[`${ne}-small`]:Z==="small",[`${ne}-bordered`]:u,[`${ne}-empty`]:re.length===0},ae,me,de),data:tt,rowKey:Se,rowClassName:Ct,emptyText:Ve,internalHooks:_v,internalRefs:be,transformColumns:yt,getContainerWidth:ve,measureRowRender:pt=>s.createElement(At,{getPopupContainer:mt=>mt},pt)})),Nt)))},fye=s.forwardRef(dye),vye=(e,t)=>{const n=s.useRef(0);return n.current+=1,s.createElement(fye,Object.assign({},e,{ref:t,_renderTimes:n.current}))},qa=s.forwardRef(vye);qa.SELECTION_COLUMN=Ll;qa.EXPAND_COLUMN=zl;qa.SELECTION_ALL=Zw;qa.SELECTION_INVERT=Jw;qa.SELECTION_NONE=e$;qa.Column=P0e;qa.ColumnGroup=O0e;qa.Summary=oA;const mye=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:a,calc:o}=e,i=o(r).sub(n).equal(),l=o(t).sub(n).equal();return{[a]:Object.assign(Object.assign({},fn(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${ce(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${a}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${a}-close-icon`]:{marginInlineStart:l,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${a}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${a}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:i}}),[`${a}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},F4=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,a=e.fontSizeSM;return Xt(e,{tagFontSize:a,tagLineHeight:ce(r(e.lineHeightSM).mul(a).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},k4=e=>({defaultBg:new dn(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),DA=rn("Tag",e=>{const t=F4(e);return mye(t)},k4);var gye=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,style:r,className:a,checked:o,children:i,icon:l,onChange:c,onClick:u}=e,d=gye(e,["prefixCls","style","className","checked","children","icon","onChange","onClick"]),{getPrefixCls:f,tag:m}=s.useContext(Ot),g=x=>{c?.(!o),u?.(x)},h=f("tag",n),[b,p,S]=DA(h),C=le(h,`${h}-checkable`,{[`${h}-checkable-checked`]:o},m?.className,a,p,S);return b(s.createElement("span",Object.assign({},d,{ref:t,style:Object.assign(Object.assign({},r),m?.style),className:C,onClick:g}),l,s.createElement("span",null,i)))}),hye=e=>hh(e,(t,{textColor:n,lightBorderColor:r,lightColor:a,darkColor:o})=>({[`${e.componentCls}${e.componentCls}-${t}`]:{color:n,background:a,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:o,borderColor:o},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}})),bye=Bu(["Tag","preset"],e=>{const t=F4(e);return hye(t)},k4);function yye(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Sg=(e,t,n)=>{const r=yye(n);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},Cye=Bu(["Tag","status"],e=>{const t=F4(e);return[Sg(t,"success","Success"),Sg(t,"processing","Info"),Sg(t,"error","Error"),Sg(t,"warning","Warning")]},k4);var Sye=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,className:r,rootClassName:a,style:o,children:i,icon:l,color:c,onClose:u,bordered:d=!0,visible:f}=e,m=Sye(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:g,direction:h,tag:b}=s.useContext(Ot),[p,S]=s.useState(!0),C=Qt(m,["closeIcon","closable"]);s.useEffect(()=>{f!==void 0&&S(f)},[f]);const x=Hh(c),w=qne(c),$=x||w,E=Object.assign(Object.assign({backgroundColor:c&&!$?c:void 0},b?.style),o),P=g("tag",n),[M,O,T]=DA(P),N=le(P,b?.className,{[`${P}-${c}`]:$,[`${P}-has-color`]:c&&!$,[`${P}-hidden`]:!p,[`${P}-rtl`]:h==="rtl",[`${P}-borderless`]:!d},r,a,O,T),D=z=>{z.stopPropagation(),u?.(z),!z.defaultPrevented&&S(!1)},[,L]=uE($u(e),$u(b),{closable:!1,closeIconRender:z=>{const V=s.createElement("span",{className:`${P}-close-icon`,onClick:D},z);return cE(z,V,H=>({onClick:B=>{var K;(K=H?.onClick)===null||K===void 0||K.call(H,B),D(B)},className:le(H?.className,`${P}-close-icon`)}))}}),_=typeof m.onClick=="function"||i&&i.type==="a",F=l||null,j=F?s.createElement(s.Fragment,null,F,i&&s.createElement("span",null,i)):i,k=s.createElement("span",Object.assign({},C,{ref:t,className:N,style:E}),j,L,x&&s.createElement(bye,{key:"preset",prefixCls:P}),w&&s.createElement(Cye,{key:"status",prefixCls:P}));return M(_?s.createElement(fv,{component:"Tag"},k):k)}),wye=xye;wye.CheckableTag=pye;const $ye=e=>{const t=e?.algorithm?Lf(e.algorithm):rE,n=Object.assign(Object.assign({},xu),e?.token);return Tj(n,{override:e?.token},t,iE)};function Eye(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}const Pye=(e,t)=>{const n=t??mh(e),r=n.fontSizeSM,a=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),Eye(t??e)),nD(r)),{controlHeight:a}),tD(Object.assign(Object.assign({},n),{controlHeight:a})))},Po=(e,t)=>new dn(e).setA(t).toRgbString(),Gc=(e,t)=>new dn(e).lighten(t).toHexString(),Oye=e=>{const t=Hs(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},Rye=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:Po(r,.85),colorTextSecondary:Po(r,.65),colorTextTertiary:Po(r,.45),colorTextQuaternary:Po(r,.25),colorFill:Po(r,.18),colorFillSecondary:Po(r,.12),colorFillTertiary:Po(r,.08),colorFillQuaternary:Po(r,.04),colorBgSolid:Po(r,.95),colorBgSolidHover:Po(r,1),colorBgSolidActive:Po(r,.9),colorBgElevated:Gc(n,12),colorBgContainer:Gc(n,8),colorBgLayout:Gc(n,0),colorBgSpotlight:Gc(n,26),colorBgBlur:Po(r,.04),colorBorder:Gc(n,26),colorBorderSecondary:Gc(n,19)}},Iye=(e,t)=>{const n=Object.keys(nE).map(o=>{const i=Hs(e[o],{theme:"dark"});return Array.from({length:10},()=>1).reduce((l,c,u)=>(l[`${o}-${u+1}`]=i[u],l[`${o}${u+1}`]=i[u],l),{})}).reduce((o,i)=>(o=Object.assign(Object.assign({},o),i),o),{}),r=t??mh(e),a=eD(e,{generateColorPalettes:Oye,generateNeutralColorPalettes:Rye});return Object.assign(Object.assign(Object.assign(Object.assign({},r),n),a),{colorPrimaryBg:a.colorPrimaryBorder,colorPrimaryBgHover:a.colorPrimaryBorderHover})};function Mye(){const[e,t,n]=Rr();return{theme:e,token:t,hashId:n}}const Si={defaultSeed:Af.token,useToken:Mye,defaultAlgorithm:mh,darkAlgorithm:Iye,compactAlgorithm:Pye,getDesignToken:$ye,defaultConfig:Af,_internalContext:aE};var Tye=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);as.createElement(_ye,Object.assign({},e,{picker:"time",mode:void 0,ref:t}))),Us=s.forwardRef((e,t)=>{var{addon:n,renderExtraFooter:r,variant:a,bordered:o}=e,i=Tye(e,["addon","renderExtraFooter","variant","bordered"]);const[l]=Di("timePicker",a,o),c=s.useMemo(()=>{if(r)return r;if(n)return n},[n,r]);return s.createElement(Nye,Object.assign({},i,{mode:void 0,ref:t,renderExtraFooter:c,variant:l}))}),FA=is(Us,"popupAlign",void 0,"picker");Us._InternalPanelDoNotUseOrYouWillBeFired=FA;Us.RangePicker=jye;Us._InternalPanelDoNotUseOrYouWillBeFired=FA;const Bp=e=>{const t=new Map;return e.forEach((n,r)=>{t.set(n,r)}),t},Dye=e=>{const t=new Map;return e.forEach(({disabled:n,key:r},a)=>{n&&t.set(r,a)}),t},Fye=(e,t,n)=>{const r=s.useMemo(()=>(e||[]).map(i=>t?Object.assign(Object.assign({},i),{key:t(i)}):i),[e,t]),[a,o]=s.useMemo(()=>{var i;const l=[],c=Array.from({length:(i=n?.length)!==null&&i!==void 0?i:0}),u=Bp(n||[]);return r.forEach(d=>{if(u.has(d.key)){const f=u.get(d.key);c[f]=d}else l.push(d)}),[l,c]},[r,n]);return[r,a.filter(Boolean),o.filter(Boolean)]},kye=[];function xg(e,t){const n=e.filter(r=>t.has(r));return e.length===n.length?e:n}function CM(e){return Array.from(e).join(";")}function Lye(e,t,n){const[r,a]=s.useMemo(()=>[new Set(e.map(f=>f?.key)),new Set(t.map(f=>f?.key))],[e,t]),[o,i]=Tt(kye,{value:n}),l=s.useMemo(()=>xg(o,r),[o,r]),c=s.useMemo(()=>xg(o,a),[o,a]);s.useEffect(()=>{i([].concat(Te(xg(o,r)),Te(xg(o,a))))},[CM(r),CM(a)]);const u=Gt(f=>{i([].concat(Te(f),Te(c)))}),d=Gt(f=>{i([].concat(Te(l),Te(f)))});return[l,c,u,d]}var zye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},Aye=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:zye}))},p0=s.forwardRef(Aye);const Bye=e=>{const{renderedText:t,renderedEl:n,item:r,checked:a,disabled:o,prefixCls:i,onClick:l,onRemove:c,showRemove:u}=e,d=le(`${i}-content-item`,{[`${i}-content-item-disabled`]:o||r.disabled,[`${i}-content-item-checked`]:a&&!r.disabled});let f;(typeof t=="string"||typeof t=="number")&&(f=String(t));const[m]=zr("Transfer",Ka.Transfer),g={className:d,title:f},h=s.createElement("span",{className:`${i}-content-item-text`},n);return u?s.createElement("li",Object.assign({},g),h,s.createElement("button",{type:"button",disabled:o||r.disabled,className:`${i}-content-item-remove`,"aria-label":m?.remove,onClick:()=>c?.(r)},s.createElement(p0,null))):(g.onClick=o||r.disabled?void 0:b=>l(r,b),s.createElement("li",Object.assign({},g),s.createElement(si,{className:`${i}-checkbox`,checked:a,disabled:o||r.disabled}),h))},Hye=s.memo(Bye),Vye=["handleFilter","handleClear","checkedKeys"],Wye=e=>Object.assign(Object.assign({},{simple:!0,showSizeChanger:!1,showLessItems:!1}),e),Kye=(e,t)=>{const{prefixCls:n,filteredRenderItems:r,selectedKeys:a,disabled:o,showRemove:i,pagination:l,onScroll:c,onItemSelect:u,onItemRemove:d}=e,[f,m]=s.useState(1),g=s.useMemo(()=>l?Wye(typeof l=="object"?l:{}):null,[l]),[h,b]=Tt(10,{value:g?.pageSize});s.useEffect(()=>{if(g){const P=Math.ceil(r.length/h);m(Math.min(f,P))}},[r,g,h]);const p=(P,M)=>{u(P.key,!a.includes(P.key),M)},S=P=>{d?.([P.key])},C=P=>{m(P)},x=(P,M)=>{m(P),b(M)},w=s.useMemo(()=>g?r.slice((f-1)*h,f*h):r,[f,r,g,h]);s.useImperativeHandle(t,()=>({items:w}));const $=g?s.createElement(x4,{size:"small",disabled:o,simple:g.simple,pageSize:h,showLessItems:g.showLessItems,showSizeChanger:g.showSizeChanger,className:`${n}-pagination`,total:r.length,current:f,onChange:C,onShowSizeChange:x}):null,E=le(`${n}-content`,{[`${n}-content-show-remove`]:i});return s.createElement(s.Fragment,null,s.createElement("ul",{className:E,onScroll:c},(w||[]).map(({renderedEl:P,renderedText:M,item:O})=>s.createElement(Hye,{key:O.key,item:O,renderedText:M,renderedEl:P,prefixCls:n,showRemove:i,onClick:p,onRemove:S,checked:a.includes(O.key),disabled:o||O.disabled}))),$)},qye=s.forwardRef(Kye),kA=e=>{const{placeholder:t="",value:n,prefixCls:r,disabled:a,onChange:o,handleClear:i}=e,l=s.useCallback(c=>{o?.(c),c.target.value===""&&i?.()},[o]);return s.createElement(oc,{placeholder:t,className:r,value:n,onChange:l,disabled:a,allowClear:!0,prefix:s.createElement(Sv,null)})},Uye=()=>null;function Gye(e){return!!(e&&!Q.isValidElement(e)&&Object.prototype.toString.call(e)==="[object Object]")}function Jd(e){return e.filter(t=>!t.disabled).map(t=>t.key)}const Xye=e=>e!==void 0,Yye=e=>e&&typeof e=="object"?Object.assign(Object.assign({},e),{defaultValue:e.defaultValue||""}):{defaultValue:"",placeholder:""},i$=e=>{const{prefixCls:t,dataSource:n=[],titleText:r="",checkedKeys:a,disabled:o,showSearch:i=!1,style:l,searchPlaceholder:c,notFoundContent:u,selectAll:d,deselectAll:f,selectCurrent:m,selectInvert:g,removeAll:h,removeCurrent:b,showSelectAll:p=!0,showRemove:S,pagination:C,direction:x,itemsUnit:w,itemUnit:$,selectAllLabel:E,selectionsIcon:P,footer:M,renderList:O,onItemSelectAll:T,onItemRemove:N,handleFilter:D,handleClear:L,filterOption:_,render:F=Uye}=e,j=Yye(i),[k,z]=s.useState(j.defaultValue),V=s.useRef({}),H=pe=>{z(pe.target.value),D(pe)},B=()=>{z(""),L()},K=(pe,be)=>typeof _=="function"?_(k,be,x):pe.includes(k),W=pe=>{let be=O?O(Object.assign(Object.assign({},pe),{onItemSelect:(Ce,he)=>pe.onItemSelect(Ce,he)})):null;const ve=!!be;return ve||(be=Q.createElement(qye,Object.assign({ref:V},pe))),{customize:ve,bodyContent:be}},G=pe=>{const be=F(pe),ve=Gye(be);return{item:pe,renderedEl:ve?be.label:be,renderedText:ve?be.value:be}},X=s.useMemo(()=>Array.isArray(u)?u[x==="left"?0:1]:u,[u,x]),[Y,Z]=s.useMemo(()=>{const pe=[],be=[];return n.forEach(ve=>{const Ce=G(ve);k&&!K(Ce.renderedText,ve)||(pe.push(ve),be.push(Ce))}),[pe,be]},[n,k]),ee=s.useMemo(()=>Y.filter(pe=>a.includes(pe.key)&&!pe.disabled),[a,Y]),re=s.useMemo(()=>{if(ee.length===0)return"none";const pe=Bp(a);return Y.every(be=>pe.has(be.key)||!!be.disabled)?"all":"part"},[ee.length,a,Y]),ne=()=>{const pe=i?Q.createElement("div",{className:`${t}-body-search-wrapper`},Q.createElement(kA,{prefixCls:`${t}-search`,onChange:H,handleClear:B,placeholder:j.placeholder||c,value:k,disabled:o})):null,{customize:be,bodyContent:ve}=W(Object.assign(Object.assign({},Qt(e,Vye)),{filteredItems:Y,filteredRenderItems:Z,selectedKeys:a}));let Ce;return be?Ce=Q.createElement("div",{className:`${t}-body-customize-wrapper`},ve):Ce=Y.length?ve:Q.createElement("div",{className:`${t}-body-not-found`},X),Q.createElement("div",{className:le(`${t}-body`,{[`${t}-body-with-search`]:i})},pe,Ce)},se=Q.createElement(si,{disabled:n.filter(pe=>!pe.disabled).length===0||o,checked:re==="all",indeterminate:re==="part",className:`${t}-checkbox`,onChange:()=>{T?.(Y.filter(pe=>!pe.disabled).map(({key:pe})=>pe),re!=="all")}}),oe=(pe,be)=>{if(E)return typeof E=="function"?E({selectedCount:pe,totalCount:be}):E;const ve=be>1?w:$;return Q.createElement(Q.Fragment,null,(pe>0?`${pe}/`:"")+be," ",ve)},me=M&&(M.length<2?M(e):M(e,{direction:x})),ue=le(t,{[`${t}-with-pagination`]:!!C,[`${t}-with-footer`]:!!me}),de=me?Q.createElement("div",{className:`${t}-footer`},me):null,ae=!S&&!C&&se;let ie;S?ie=[C?{key:"removeCurrent",label:b,onClick(){var pe;const be=Jd((((pe=V.current)===null||pe===void 0?void 0:pe.items)||[]).map(ve=>ve.item));N?.(be)}}:null,{key:"removeAll",label:h,onClick(){N?.(Jd(Y))}}].filter(Boolean):ie=[{key:"selectAll",label:re==="all"?f:d,onClick(){const pe=Jd(Y);T?.(pe,pe.length!==a.length)}},C?{key:"selectCurrent",label:m,onClick(){var pe;const be=((pe=V.current)===null||pe===void 0?void 0:pe.items)||[];T?.(Jd(be.map(ve=>ve.item)),!0)}}:null,{key:"selectInvert",label:g,onClick(){var pe;const be=Jd((((pe=V.current)===null||pe===void 0?void 0:pe.items)||[]).map(he=>he.item)),ve=new Set(a),Ce=new Set(ve);be.forEach(he=>{ve.has(he)?Ce.delete(he):Ce.add(he)}),T?.(Array.from(Ce),"replace")}}];const ge=Q.createElement(cs,{className:`${t}-header-dropdown`,menu:{items:ie},disabled:o},Xye(P)?P:Q.createElement(Ri,null));return Q.createElement("div",{className:ue,style:l},Q.createElement("div",{className:`${t}-header`},p?Q.createElement(Q.Fragment,null,ae,ge):null,Q.createElement("span",{className:`${t}-header-selected`},oe(ee.length,Y.length)),Q.createElement("span",{className:`${t}-header-title`},r)),ne(),de)},LA=e=>{const{disabled:t,moveToLeft:n,moveToRight:r,leftArrowText:a="",rightArrowText:o="",leftActive:i,rightActive:l,className:c,style:u,direction:d,oneWay:f}=e;return s.createElement("div",{className:c,style:u},s.createElement(cr,{type:"primary",size:"small",disabled:t||!l,onClick:r,icon:d!=="rtl"?s.createElement(Na,null):s.createElement(oi,null)},o),!f&&s.createElement(cr,{type:"primary",size:"small",disabled:t||!i,onClick:n,icon:d!=="rtl"?s.createElement(oi,null):s.createElement(Na,null)},a))},Qye=e=>{const{antCls:t,componentCls:n,listHeight:r,controlHeightLG:a}=e,o=`${t}-table`,i=`${t}-input`;return{[`${n}-customize-list`]:{[`${n}-list`]:{flex:"1 1 50%",width:"auto",height:"auto",minHeight:r,minWidth:0},[`${o}-wrapper`]:{[`${o}-small`]:{border:0,borderRadius:0,[`${o}-selection-column`]:{width:a,minWidth:a}},[`${o}-pagination${o}-pagination`]:{margin:0,padding:e.paddingXS}},[`${i}[disabled]`]:{backgroundColor:"transparent"}}}},SM=(e,t)=>{const{componentCls:n,colorBorder:r}=e;return{[`${n}-list`]:{borderColor:t,"&-search:not([disabled])":{borderColor:r}}}},Zye=e=>{const{componentCls:t}=e;return{[`${t}-status-error`]:Object.assign({},SM(e,e.colorError)),[`${t}-status-warning`]:Object.assign({},SM(e,e.colorWarning))}},Jye=e=>{const{componentCls:t,colorBorder:n,colorSplit:r,lineWidth:a,itemHeight:o,headerHeight:i,transferHeaderVerticalPadding:l,itemPaddingBlock:c,controlItemBgActive:u,colorTextDisabled:d,colorTextSecondary:f,listHeight:m,listWidth:g,listWidthLG:h,fontSizeIcon:b,marginXS:p,paddingSM:S,lineType:C,antCls:x,iconCls:w,motionDurationSlow:$,controlItemBgHover:E,borderRadiusLG:P,colorBgContainer:M,colorText:O,controlItemBgActiveHover:T}=e,N=ce(e.calc(P).sub(a).equal());return{display:"flex",flexDirection:"column",width:g,height:m,border:`${ce(a)} ${C} ${n}`,borderRadius:e.borderRadiusLG,"&-with-pagination":{width:h,height:"auto"},"&-search":{[`${w}-search`]:{color:d}},"&-header":{display:"flex",flex:"none",alignItems:"center",height:i,padding:`${ce(e.calc(l).sub(a).equal())} ${ce(S)} ${ce(l)}`,color:O,background:M,borderBottom:`${ce(a)} ${C} ${r}`,borderRadius:`${ce(P)} ${ce(P)} 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":Object.assign(Object.assign({},ra),{flex:"auto",textAlign:"end"}),"&-dropdown":Object.assign(Object.assign({},rs()),{fontSize:b,transform:"translateY(10%)",cursor:"pointer","&[disabled]":{cursor:"not-allowed"}})},"&-body":{display:"flex",flex:"auto",flexDirection:"column",fontSize:e.fontSize,minHeight:0,"&-search-wrapper":{position:"relative",flex:"none",padding:S}},"&-content":{flex:"auto",margin:0,padding:0,overflow:"auto",listStyle:"none",borderRadius:`0 0 ${N} ${N}`,"&-item":{display:"flex",alignItems:"center",minHeight:o,padding:`${ce(c)} ${ce(S)}`,transition:`all ${$}`,"> *:not(:last-child)":{marginInlineEnd:p},"> *":{flex:"none"},"&-text":Object.assign(Object.assign({},ra),{flex:"auto"}),"&-remove":Object.assign(Object.assign({},ph(e)),{color:n,"&:hover, &:focus":{color:f}}),[`&:not(${t}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:E,cursor:"pointer"},[`&${t}-list-content-item-checked:hover`]:{backgroundColor:T}},"&-checked":{backgroundColor:u},"&-disabled":{color:d,cursor:"not-allowed"}},[`&-show-remove ${t}-list-content-item:not(${t}-list-content-item-disabled):hover`]:{background:"transparent",cursor:"default"}},"&-pagination":{padding:e.paddingXS,textAlign:"end",borderTop:`${ce(a)} ${C} ${r}`,[`${x}-pagination-options`]:{paddingInlineEnd:e.paddingXS}},"&-body-not-found":{flex:"none",width:"100%",margin:"auto 0",color:d,textAlign:"center"},"&-footer":{borderTop:`${ce(a)} ${C} ${r}`},"&-checkbox":{lineHeight:1}}},e1e=e=>{const{antCls:t,iconCls:n,componentCls:r,marginXS:a,marginXXS:o,fontSizeIcon:i,colorBgContainerDisabled:l}=e;return{[r]:Object.assign(Object.assign({},fn(e)),{position:"relative",display:"flex",alignItems:"stretch",[`${r}-disabled`]:{[`${r}-list`]:{background:l}},[`${r}-list`]:Jye(e),[`${r}-operation`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${ce(a)}`,verticalAlign:"middle",gap:o,[`${t}-btn ${n}`]:{fontSize:i}}})}},t1e=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},n1e=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlHeightLG:a,lineWidth:o}=e,i=Math.round(t*n);return{listWidth:180,listHeight:200,listWidthLG:250,headerHeight:a,itemHeight:r,itemPaddingBlock:(r-i)/2,transferHeaderVerticalPadding:Math.ceil((a-o-i)/2)}},r1e=rn("Transfer",e=>{const t=Xt(e);return[e1e(t),Qye(t),Zye(t),t1e(t)]},n1e),L4=e=>{const{dataSource:t,targetKeys:n=[],selectedKeys:r,selectAllLabels:a=[],operations:o=[],style:i={},listStyle:l={},locale:c={},titles:u,disabled:d,showSearch:f=!1,operationStyle:m,showSelectAll:g,oneWay:h,pagination:b,status:p,prefixCls:S,className:C,rootClassName:x,selectionsIcon:w,filterOption:$,render:E,footer:P,children:M,rowKey:O,onScroll:T,onChange:N,onSearch:D,onSelectChange:L}=e,{getPrefixCls:_,renderEmpty:F,direction:j,transfer:k}=s.useContext(Ot),z=s.useContext(Sr),V=d??z,H=_("transfer",S),[B,K,W]=r1e(H),[G,X,Y]=Fye(t,O,n),[Z,ee,re,ne]=Lye(X,Y,r),[se,oe]=lw(ze=>ze.key),[me,ue]=lw(ze=>ze.key),de=s.useCallback((ze,Ve)=>{if(ze==="left"){const Pe=typeof Ve=="function"?Ve(Z||[]):Ve;re(Pe)}else{const Pe=typeof Ve=="function"?Ve(ee||[]):Ve;ne(Pe)}},[Z,ee]),ae=(ze,Ve)=>{(ze==="left"?oe:ue)(Ve)},ie=s.useCallback((ze,Ve)=>{ze==="left"?L?.(Ve,ee):L?.(Z,Ve)},[Z,ee]),ge=ze=>{var Ve;return(Ve=u??ze.titles)!==null&&Ve!==void 0?Ve:[]},pe=ze=>{T?.("left",ze)},be=ze=>{T?.("right",ze)},ve=ze=>{const Ve=ze==="right"?Z:ee,Pe=Dye(G),He=Ve.filter(pt=>!Pe.has(pt)),Ze=Bp(He),at=ze==="right"?He.concat(n):n.filter(pt=>!Ze.has(pt)),Nt=ze==="right"?"left":"right";de(Nt,[]),ie(Nt,[]),N?.(at,ze,He)},Ce=()=>{ve("left"),ae("left",null)},he=()=>{ve("right"),ae("right",null)},Se=(ze,Ve,Pe)=>{de(ze,He=>{let Ze=[];if(Pe==="replace")Ze=Ve;else if(Pe)Ze=Array.from(new Set([].concat(Te(He),Te(Ve))));else{const at=Bp(Ve);Ze=He.filter(Nt=>!at.has(Nt))}return ie(ze,Ze),Ze}),ae(ze,null)},Ee=(ze,Ve)=>{Se("left",ze,Ve)},Oe=(ze,Ve)=>{Se("right",ze,Ve)},We=ze=>D?.("left",ze.target.value),je=ze=>D?.("right",ze.target.value),De=()=>D?.("left",""),ke=()=>D?.("right",""),_e=(ze,Ve,Pe,He,Ze)=>{Ve.has(Pe)&&(Ve.delete(Pe),ae(ze,null)),He&&(Ve.add(Pe),ae(ze,Ze))},Re=(ze,Ve,Pe,He)=>{(ze==="left"?se:me)(He,Ve,Pe)},Le=(ze,Ve,Pe,He)=>{const Ze=ze==="left",at=Te(Ze?Z:ee),Nt=new Set(at),pt=Te(Ze?X:Y).filter(Kt=>!Kt?.disabled),mt=pt.findIndex(Kt=>Kt.key===Ve);He&&at.length>0?Re(ze,pt,Nt,mt):_e(ze,Nt,Ve,Pe,mt);const jt=Array.from(Nt);ie(ze,jt),e.selectedKeys||de(ze,jt)},Me=(ze,Ve,Pe)=>{Le("left",ze,Ve,Pe?.shiftKey)},Be=(ze,Ve,Pe)=>{Le("right",ze,Ve,Pe?.shiftKey)},$e=ze=>{de("right",[]),N?.(n.filter(Ve=>!ze.includes(Ve)),"left",Te(ze))},we=ze=>typeof l=="function"?l({direction:ze}):l||{},Ie=s.useContext(Or),{hasFeedback:Fe,status:Ge}=Ie,et=ze=>Object.assign(Object.assign(Object.assign({},ze),{notFoundContent:F?.("Transfer")||Q.createElement(Js,{componentName:"Transfer"})}),c),Ke=ji(Ge,p),Ye=!M&&b,tt=Y.filter(ze=>ee.includes(ze.key)&&!ze.disabled).length>0,rt=X.filter(ze=>Z.includes(ze.key)&&!ze.disabled).length>0,ct=le(H,{[`${H}-disabled`]:V,[`${H}-customize-list`]:!!M,[`${H}-rtl`]:j==="rtl"},Fo(H,Ke,Fe),k?.className,C,x,K,W),[Ct]=zr("Transfer",Ka.Transfer),yt=et(Ct),[dt,vt]=ge(yt),bt=w??k?.selectionsIcon;return B(Q.createElement("div",{className:ct,style:Object.assign(Object.assign({},k?.style),i)},Q.createElement(i$,Object.assign({prefixCls:`${H}-list`,titleText:dt,dataSource:X,filterOption:$,style:we("left"),checkedKeys:Z,handleFilter:We,handleClear:De,onItemSelect:Me,onItemSelectAll:Ee,render:E,showSearch:f,renderList:M,footer:P,onScroll:pe,disabled:V,direction:j==="rtl"?"right":"left",showSelectAll:g,selectAllLabel:a[0],pagination:Ye,selectionsIcon:bt},yt)),Q.createElement(LA,{className:`${H}-operation`,rightActive:rt,rightArrowText:o[0],moveToRight:he,leftActive:tt,leftArrowText:o[1],moveToLeft:Ce,style:m,disabled:V,direction:j,oneWay:h}),Q.createElement(i$,Object.assign({prefixCls:`${H}-list`,titleText:vt,dataSource:Y,filterOption:$,style:we("right"),checkedKeys:ee,handleFilter:je,handleClear:ke,onItemSelect:Be,onItemSelectAll:Oe,onItemRemove:$e,render:E,showSearch:f,renderList:M,footer:P,onScroll:be,disabled:V,direction:j==="rtl"?"left":"right",showSelectAll:g,selectAllLabel:a[1],showRemove:h,pagination:Ye,selectionsIcon:bt},yt))))};L4.List=i$;L4.Search=kA;L4.Operation=LA;const a1e=(function(e){var t=s.useRef({valueLabels:new Map});return s.useMemo(function(){var n=t.current.valueLabels,r=new Map,a=e.map(function(o){var i=o.value,l=o.label,c=l??n.get(i);return r.set(i,c),R(R({},o),{},{label:c})});return t.current.valueLabels=r,[a]},[e])});var o1e=function(t,n,r,a){return s.useMemo(function(){var o=function(g){return g.map(function(h){var b=h.value;return b})},i=o(t),l=o(n),c=i.filter(function(m){return!a[m]}),u=i,d=l;if(r){var f=To(i,!0,a);u=f.checkedKeys,d=f.halfCheckedKeys}return[Array.from(new Set([].concat(Te(c),Te(u)))),d]},[t,n,r,a])},i1e=function(t){return Array.isArray(t)?t:t!==void 0?[t]:[]},l1e=function(t){var n=t||{},r=n.label,a=n.value,o=n.children;return{_title:r?[r]:["title","label"],value:a||"value",key:a||"value",children:o||"children"}},l$=function(t){return!t||t.disabled||t.disableCheckbox||t.checkable===!1},s1e=function(t,n){var r=[],a=function o(i){i.forEach(function(l){var c=l[n.children];c&&(r.push(l[n.value]),o(c))})};return a(t),r},xM=function(t){return t==null};const c1e=(function(e,t){return s.useMemo(function(){var n=Ov(e,{fieldNames:t,initWrapper:function(a){return R(R({},a),{},{valueEntities:new Map})},processEntity:function(a,o){var i=a.node[t.value];o.valueEntities.set(i,a)}});return n},[e,t])});var z4=function(){return null},u1e=["children","value"];function zA(e){return Xn(e).map(function(t){if(!s.isValidElement(t)||!t.type)return null;var n=t,r=n.key,a=n.props,o=a.children,i=a.value,l=Ue(a,u1e),c=R({key:r,value:i},l),u=zA(o);return u.length&&(c.children=u),c}).filter(function(t){return t})}function s$(e){if(!e)return e;var t=R({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return jn(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t}}),t}function d1e(e,t,n,r,a,o){var i=null,l=null;function c(){function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return d.map(function(g,h){var b="".concat(f,"-").concat(h),p=g[o.value],S=n.includes(p),C=u(g[o.children]||[],b,S),x=s.createElement(z4,g,C.map(function($){return $.node}));if(t===p&&(i=x),S){var w={pos:b,node:x,children:C};return m||l.push(w),w}return null}).filter(function(g){return g})}l||(l=[],u(r),l.sort(function(d,f){var m=d.node.props.value,g=f.node.props.value,h=n.indexOf(m),b=n.indexOf(g);return h-b}))}Object.defineProperty(e,"triggerNode",{get:function(){return jn(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),c(),i}}),Object.defineProperty(e,"allCheckedNodes",{get:function(){return jn(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),c(),a?l:l.map(function(d){var f=d.node;return f})}})}var f1e=function(t,n,r){var a=r.fieldNames,o=r.treeNodeFilterProp,i=r.filterTreeNode,l=a.children;return s.useMemo(function(){if(!n||i===!1)return t;var c=typeof i=="function"?i:function(d,f){return String(f[o]).toUpperCase().includes(n.toUpperCase())},u=function d(f){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return f.reduce(function(g,h){var b=h[l],p=m||c(n,s$(h)),S=d(b||[],p);return(p||S.length)&&g.push(R(R({},h),{},q({isLeaf:void 0},l,S))),g},[])};return u(t)},[t,n,l,o,i])};function wM(e){var t=s.useRef();t.current=e;var n=s.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}function v1e(e,t){var n=t.id,r=t.pId,a=t.rootPId,o=new Map,i=[];return e.forEach(function(l){var c=l[n],u=R(R({},l),{},{key:l.key||c});o.set(c,u)}),o.forEach(function(l){var c=l[r],u=o.get(c);u?(u.children=u.children||[],u.children.push(l)):(c===a||a===null)&&i.push(l)}),i}function m1e(e,t,n){return s.useMemo(function(){if(e){if(n){var r=R({id:"id",pId:"pId",rootPId:null},st(n)==="object"?n:{});return v1e(e,r)}return e}return zA(t)},[t,n,e])}var AA=s.createContext(null),BA=s.createContext(null),g1e={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},p1e=function(t,n){var r=OE(),a=r.prefixCls,o=r.multiple,i=r.searchValue,l=r.toggleOpen,c=r.open,u=r.notFoundContent,d=s.useContext(BA),f=d.virtual,m=d.listHeight,g=d.listItemHeight,h=d.listItemScrollOffset,b=d.treeData,p=d.fieldNames,S=d.onSelect,C=d.dropdownMatchSelectWidth,x=d.treeExpandAction,w=d.treeTitleRender,$=d.onPopupScroll,E=d.leftMaxCount,P=d.leafCountOnly,M=d.valueEntities,O=s.useContext(AA),T=O.checkable,N=O.checkedKeys,D=O.halfCheckedKeys,L=O.treeExpandedKeys,_=O.treeDefaultExpandAll,F=O.treeDefaultExpandedKeys,j=O.onTreeExpand,k=O.treeIcon,z=O.showTreeIcon,V=O.switcherIcon,H=O.treeLine,B=O.treeNodeFilterProp,K=O.loadData,W=O.treeLoadedKeys,G=O.treeMotion,X=O.onTreeLoad,Y=O.keyEntities,Z=s.useRef(),ee=$i(function(){return b},[c,b],function(Fe,Ge){return Ge[0]&&Fe[1]!==Ge[1]}),re=s.useMemo(function(){return T?{checked:N,halfChecked:D}:null},[T,N,D]);s.useEffect(function(){if(c&&!o&&N.length){var Fe;(Fe=Z.current)===null||Fe===void 0||Fe.scrollTo({key:N[0]})}},[c]);var ne=function(Ge){Ge.preventDefault()},se=function(Ge,et){var Ke=et.node;T&&l$(Ke)||(S(Ke.key,{selected:!N.includes(Ke.key)}),o||l(!1))},oe=s.useState(F),me=fe(oe,2),ue=me[0],de=me[1],ae=s.useState(null),ie=fe(ae,2),ge=ie[0],pe=ie[1],be=s.useMemo(function(){return L?Te(L):i?ge:ue},[ue,ge,L,i]),ve=function(Ge){de(Ge),pe(Ge),j&&j(Ge)},Ce=String(i).toLowerCase(),he=function(Ge){return Ce?String(Ge[B]).toLowerCase().includes(Ce):!1};s.useEffect(function(){i&&pe(s1e(b,p))},[i]);var Se=s.useState(function(){return new Map}),Ee=fe(Se,2),Oe=Ee[0],We=Ee[1];s.useEffect(function(){E&&We(new Map)},[E]);function je(Fe){var Ge=Fe[p.value];if(!Oe.has(Ge)){var et=M.get(Ge),Ke=(et.children||[]).length===0;if(Ke)Oe.set(Ge,!1);else{var Ye=et.children.filter(function(rt){return!rt.node.disabled&&!rt.node.disableCheckbox&&!N.includes(rt.node[p.value])}),tt=Ye.length;Oe.set(Ge,tt>E)}}return Oe.get(Ge)}var De=Gt(function(Fe){var Ge=Fe[p.value];return N.includes(Ge)||E===null?!1:E<=0?!0:P&&E?je(Fe):!1}),ke=function Fe(Ge){var et=xi(Ge),Ke;try{for(et.s();!(Ke=et.n()).done;){var Ye=Ke.value;if(!(Ye.disabled||Ye.selectable===!1)){if(i){if(he(Ye))return Ye}else return Ye;if(Ye[p.children]){var tt=Fe(Ye[p.children]);if(tt)return tt}}}}catch(rt){et.e(rt)}finally{et.f()}return null},_e=s.useState(null),Re=fe(_e,2),Le=Re[0],Me=Re[1],Be=Y[Le];s.useEffect(function(){if(c){var Fe=null,Ge=function(){var Ke=ke(ee);return Ke?Ke[p.value]:null};!o&&N.length&&!i?Fe=N[0]:Fe=Ge(),Me(Fe)}},[c,i]),s.useImperativeHandle(n,function(){var Fe;return{scrollTo:(Fe=Z.current)===null||Fe===void 0?void 0:Fe.scrollTo,onKeyDown:function(et){var Ke,Ye=et.which;switch(Ye){case lt.UP:case lt.DOWN:case lt.LEFT:case lt.RIGHT:(Ke=Z.current)===null||Ke===void 0||Ke.onKeyDown(et);break;case lt.ENTER:{if(Be){var tt=De(Be.node),rt=Be?.node||{},ct=rt.selectable,Ct=rt.value,yt=rt.disabled;ct!==!1&&!yt&&!tt&&se(null,{node:{key:Le},selected:!N.includes(Ct)})}break}case lt.ESC:l(!1)}},onKeyUp:function(){}}});var $e=$i(function(){return!i},[i,L||ue],function(Fe,Ge){var et=fe(Fe,1),Ke=et[0],Ye=fe(Ge,2),tt=Ye[0],rt=Ye[1];return Ke!==tt&&!!(tt||rt)}),we=$e?K:null;if(ee.length===0)return s.createElement("div",{role:"listbox",className:"".concat(a,"-empty"),onMouseDown:ne},u);var Ie={fieldNames:p};return W&&(Ie.loadedKeys=W),be&&(Ie.expandedKeys=be),s.createElement("div",{onMouseDown:ne},Be&&c&&s.createElement("span",{style:g1e,"aria-live":"assertive"},Be.node.value),s.createElement(bA.Provider,{value:{nodeDisabled:De}},s.createElement(m0,xe({ref:Z,focusable:!1,prefixCls:"".concat(a,"-tree"),treeData:ee,height:m,itemHeight:g,itemScrollOffset:h,virtual:f!==!1&&C!==!1,multiple:o,icon:k,showIcon:z,switcherIcon:V,showLine:H,loadData:we,motion:G,activeKey:Le,checkable:T,checkStrictly:!0,checkedKeys:re,selectedKeys:T?[]:N,defaultExpandAll:_,titleRender:w},Ie,{onActiveChange:Me,onSelect:se,onCheck:se,onExpand:ve,onLoad:X,filterTreeNode:he,expandAction:x,onScroll:$}))))},h1e=s.forwardRef(p1e),A4="SHOW_ALL",B4="SHOW_PARENT",h0="SHOW_CHILD";function $M(e,t,n,r){var a=new Set(e);return t===h0?e.filter(function(o){var i=n[o];return!i||!i.children||!i.children.some(function(l){var c=l.node;return a.has(c[r.value])})||!i.children.every(function(l){var c=l.node;return l$(c)||a.has(c[r.value])})}):t===B4?e.filter(function(o){var i=n[o],l=i?i.parent:null;return!l||l$(l.node)||!a.has(l.key)}):e}var b1e=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","maxCount","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender","onPopupScroll"];function y1e(e){return!e||st(e)!=="object"}var C1e=s.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,a=r===void 0?"rc-tree-select":r,o=e.value,i=e.defaultValue,l=e.onChange,c=e.onSelect,u=e.onDeselect,d=e.searchValue,f=e.inputValue,m=e.onSearch,g=e.autoClearSearchValue,h=g===void 0?!0:g,b=e.filterTreeNode,p=e.treeNodeFilterProp,S=p===void 0?"value":p,C=e.showCheckedStrategy,x=e.treeNodeLabelProp,w=e.multiple,$=e.treeCheckable,E=e.treeCheckStrictly,P=e.labelInValue,M=e.maxCount,O=e.fieldNames,T=e.treeDataSimpleMode,N=e.treeData,D=e.children,L=e.loadData,_=e.treeLoadedKeys,F=e.onTreeLoad,j=e.treeDefaultExpandAll,k=e.treeExpandedKeys,z=e.treeDefaultExpandedKeys,V=e.onTreeExpand,H=e.treeExpandAction,B=e.virtual,K=e.listHeight,W=K===void 0?200:K,G=e.listItemHeight,X=G===void 0?20:G,Y=e.listItemScrollOffset,Z=Y===void 0?0:Y,ee=e.onDropdownVisibleChange,re=e.dropdownMatchSelectWidth,ne=re===void 0?!0:re,se=e.treeLine,oe=e.treeIcon,me=e.showTreeIcon,ue=e.switcherIcon,de=e.treeMotion,ae=e.treeTitleRender,ie=e.onPopupScroll,ge=Ue(e,b1e),pe=NE(n),be=$&&!E,ve=$||E,Ce=E||P,he=ve||w,Se=Tt(i,{value:o}),Ee=fe(Se,2),Oe=Ee[0],We=Ee[1],je=s.useMemo(function(){return $?C||h0:A4},[C,$]),De=s.useMemo(function(){return l1e(O)},[JSON.stringify(O)]),ke=Tt("",{value:d!==void 0?d:f,postState:function(It){return It||""}}),_e=fe(ke,2),Re=_e[0],Le=_e[1],Me=function(It){Le(It),m?.(It)},Be=m1e(N,D,T),$e=c1e(Be,De),we=$e.keyEntities,Ie=$e.valueEntities,Fe=s.useCallback(function(Bt){var It=[],Wt=[];return Bt.forEach(function(ot){Ie.has(ot)?Wt.push(ot):It.push(ot)}),{missingRawValues:It,existRawValues:Wt}},[Ie]),Ge=f1e(Be,Re,{fieldNames:De,treeNodeFilterProp:S,filterTreeNode:b}),et=s.useCallback(function(Bt){if(Bt){if(x)return Bt[x];for(var It=De._title,Wt=0;WtNt)){var Et=Ye(Bt);if(We(Et),h&&Le(""),l){var gt=Bt;be&&(gt=ot.map(function(En){var pn=Ie.get(En);return pn?pn.node[De.value]:En}));var Xe=It||{triggerValue:void 0,selected:void 0},it=Xe.triggerValue,ft=Xe.selected,_t=gt;if(E){var Yt=yt.filter(function(En){return!gt.includes(En.value)});_t=[].concat(Te(_t),Te(Yt))}var St=Ye(_t),Mt={preValue:Ct,triggerValue:it},Ht=!0;(E||Wt==="selection"&&!ft)&&(Ht=!1),d1e(Mt,it,Bt,Be,Ht,De),ve?Mt.checked=ft:Mt.selected=ft;var vn=Ce?St:St.map(function(En){return En.value});l(he?vn:vn[0],Ce?null:St.map(function(En){return En.label}),Mt)}}}),mt=s.useCallback(function(Bt,It){var Wt,ot=It.selected,Et=It.source,gt=we[Bt],Xe=gt?.node,it=(Wt=Xe?.[De.value])!==null&&Wt!==void 0?Wt:Bt;if(!he)pt([it],{selected:!0,triggerValue:it},"option");else{var ft=ot?[].concat(Te(dt),[it]):ze.filter(function(pn){return pn!==it});if(be){var _t=Fe(ft),Yt=_t.missingRawValues,St=_t.existRawValues,Mt=St.map(function(pn){return Ie.get(pn).key}),Ht;if(ot){var vn=To(Mt,!0,we);Ht=vn.checkedKeys}else{var En=To(Mt,{halfCheckedKeys:Ve},we);Ht=En.checkedKeys}ft=[].concat(Te(Yt),Te(Ht.map(function(pn){return we[pn].node[De.value]})))}pt(ft,{selected:ot,triggerValue:it},Et||"option")}ot||!he?c?.(it,s$(Xe)):u?.(it,s$(Xe))},[Fe,Ie,we,De,he,dt,pt,be,c,u,ze,Ve,M]),jt=s.useCallback(function(Bt){if(ee){var It={};Object.defineProperty(It,"documentClickClose",{get:function(){return jn(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),ee(Bt,It)}},[ee]),Kt=wM(function(Bt,It){var Wt=Bt.map(function(ot){return ot.value});if(It.type==="clear"){pt(Wt,{},"selection");return}It.values.length&&mt(It.values[0].value,{selected:!1,source:"selection"})}),cn=s.useMemo(function(){return{virtual:B,dropdownMatchSelectWidth:ne,listHeight:W,listItemHeight:X,listItemScrollOffset:Z,treeData:Ge,fieldNames:De,onSelect:mt,treeExpandAction:H,treeTitleRender:ae,onPopupScroll:ie,leftMaxCount:M===void 0?null:M-at.length,leafCountOnly:je==="SHOW_CHILD"&&!E&&!!$,valueEntities:Ie}},[B,ne,W,X,Z,Ge,De,mt,H,ae,ie,M,at.length,je,E,$,Ie]),tn=s.useMemo(function(){return{checkable:ve,loadData:L,treeLoadedKeys:_,onTreeLoad:F,checkedKeys:ze,halfCheckedKeys:Ve,treeDefaultExpandAll:j,treeExpandedKeys:k,treeDefaultExpandedKeys:z,onTreeExpand:V,treeIcon:oe,treeMotion:de,showTreeIcon:me,switcherIcon:ue,treeLine:se,treeNodeFilterProp:S,keyEntities:we}},[ve,L,_,F,ze,Ve,j,k,z,V,oe,de,me,ue,se,S,we]);return s.createElement(BA.Provider,{value:cn},s.createElement(AA.Provider,{value:tn},s.createElement(IE,xe({ref:t},ge,{id:pe,prefixCls:a,mode:he?"multiple":void 0,displayValues:at,onDisplayValuesChange:Kt,searchValue:Re,onSearch:Me,OptionList:h1e,emptyOptions:!Be.length,onDropdownVisibleChange:jt,dropdownMatchSelectWidth:ne}))))}),jv=C1e;jv.TreeNode=z4;jv.SHOW_ALL=A4;jv.SHOW_PARENT=B4;jv.SHOW_CHILD=h0;const S1e=e=>{const{componentCls:t,treePrefixCls:n,colorBgElevated:r}=e,a=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${ce(e.paddingXS)} ${ce(e.calc(e.paddingXS).div(2).equal())}`},wA(n,Xt(e,{colorBgContainer:r}),!1),{[a]:{borderRadius:0,[`${a}-list-holder-inner`]:{alignItems:"stretch",[`${a}-treenode`]:{[`${a}-node-content-wrapper`]:{flex:"auto"}}}}},t0(`${n}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${a}-switcher${a}-switcher_close`]:{[`${a}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function x1e(e,t,n){return rn("TreeSelect",r=>{const a=Xt(r,{treePrefixCls:t});return S1e(a)},$A)(e,n)}var w1e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r,a,o,i;const{prefixCls:l,size:c,disabled:u,bordered:d=!0,style:f,className:m,rootClassName:g,treeCheckable:h,multiple:b,listHeight:p=256,listItemHeight:S,placement:C,notFoundContent:x,switcherIcon:w,treeLine:$,getPopupContainer:E,popupClassName:P,dropdownClassName:M,treeIcon:O=!1,transitionName:T,choiceTransitionName:N="",status:D,treeExpandAction:L,builtinPlacements:_,dropdownMatchSelectWidth:F,popupMatchSelectWidth:j,allowClear:k,variant:z,dropdownStyle:V,dropdownRender:H,popupRender:B,onDropdownVisibleChange:K,onOpenChange:W,tagRender:G,maxCount:X,showCheckedStrategy:Y,treeCheckStrictly:Z,styles:ee,classNames:re}=e,ne=w1e(e,["prefixCls","size","disabled","bordered","style","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear","variant","dropdownStyle","dropdownRender","popupRender","onDropdownVisibleChange","onOpenChange","tagRender","maxCount","showCheckedStrategy","treeCheckStrictly","styles","classNames"]),{getPopupContainer:se,getPrefixCls:oe,renderEmpty:me,direction:ue,virtual:de,popupMatchSelectWidth:ae,popupOverflow:ie}=s.useContext(Ot),{styles:ge,classNames:pe,switcherIcon:be}=Vn("treeSelect"),[,ve]=Rr(),Ce=S??ve?.controlHeightSM+ve?.paddingXXS,he=oe(),Se=oe("select",l),Ee=oe("select-tree",l),Oe=oe("tree-select",l),{compactSize:We,compactItemClassnames:je}=mo(Se,ue),De=zn(Se),ke=zn(Oe),[_e,Re,Le]=DE(Se,De),[Me]=x1e(Oe,Ee,ke),[Be,$e]=Di("treeSelect",z,d),we=le(((n=re?.popup)===null||n===void 0?void 0:n.root)||((r=pe?.popup)===null||r===void 0?void 0:r.root)||P||M,`${Oe}-dropdown`,{[`${Oe}-dropdown-rtl`]:ue==="rtl"},g,pe.root,re?.root,Le,De,ke,Re),Ie=((a=ee?.popup)===null||a===void 0?void 0:a.root)||((o=ge?.popup)===null||o===void 0?void 0:o.root)||V,Fe=FE(B||H),Ge=W||K,et=!!(h||b),Ke=s.useMemo(()=>{if(!(X&&(Y==="SHOW_ALL"&&!Z||Y==="SHOW_PARENT")))return X},[X,Y,Z]),Ye=kE(e.suffixIcon,e.showArrow),tt=(i=j??F)!==null&&i!==void 0?i:ae,{status:rt,hasFeedback:ct,isFormItemInput:Ct,feedbackIcon:yt}=s.useContext(Or),dt=ji(rt,D),{suffixIcon:vt,removeIcon:bt,clearIcon:ze}=zh(Object.assign(Object.assign({},ne),{multiple:et,showSuffixIcon:Ye,hasFeedback:ct,feedbackIcon:yt,prefixCls:Se,componentName:"TreeSelect"})),Ve=k===!0?{clearIcon:ze}:k;let Pe;x!==void 0?Pe=x:Pe=me?.("Select")||s.createElement(Js,{componentName:"Select"});const He=Qt(ne,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon","style"]),Ze=s.useMemo(()=>C!==void 0?C:ue==="rtl"?"bottomRight":"bottomLeft",[C,ue]),at=ar(Bt=>{var It;return(It=c??We)!==null&&It!==void 0?It:Bt}),Nt=s.useContext(Sr),pt=u??Nt,mt=le(!l&&Oe,{[`${Se}-lg`]:at==="large",[`${Se}-sm`]:at==="small",[`${Se}-rtl`]:ue==="rtl",[`${Se}-${Be}`]:$e,[`${Se}-in-form-item`]:Ct},Fo(Se,dt,ct),je,m,g,pe.root,re?.root,Le,De,ke,Re),jt=w??be,Kt=Bt=>s.createElement(EA,{prefixCls:Ee,switcherIcon:jt,treeNodeProps:Bt,showLine:$}),[cn]=Ua("SelectLike",Ie?.zIndex),tn=s.createElement(jv,Object.assign({virtual:de,disabled:pt},He,{dropdownMatchSelectWidth:tt,builtinPlacements:jE(_,ie),ref:t,prefixCls:Se,className:mt,style:Object.assign(Object.assign({},ee?.root),f),listHeight:p,listItemHeight:Ce,treeCheckable:h&&s.createElement("span",{className:`${Se}-tree-checkbox-inner`}),treeLine:!!$,suffixIcon:vt,multiple:et,placement:Ze,removeIcon:bt,allowClear:Ve,switcherIcon:Kt,showTreeIcon:O,notFoundContent:Pe,getPopupContainer:E||se,treeMotion:null,dropdownClassName:we,dropdownStyle:Object.assign(Object.assign({},Ie),{zIndex:cn}),dropdownRender:Fe,onDropdownVisibleChange:Ge,choiceTransitionName:aa(he,"",N),transitionName:aa(he,"slide-up",T),treeExpandAction:L,tagRender:et?G:void 0,maxCount:Ke,showCheckedStrategy:Y,treeCheckStrictly:Z}));return _e(Me(tn))},E1e=s.forwardRef($1e),lc=E1e,P1e=is(lc,"dropdownAlign",e=>Qt(e,["visible"]));lc.TreeNode=z4;lc.SHOW_ALL=A4;lc.SHOW_PARENT=B4;lc.SHOW_CHILD=h0;lc._InternalPanelDoNotUseOrYouWillBeFired=P1e;var O1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},R1e=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:O1e}))},c$=s.forwardRef(R1e),I1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},M1e=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:I1e}))},T1e=s.forwardRef(M1e);const N1e=(e,t,n,r)=>{const{titleMarginBottom:a,fontWeightStrong:o}=r;return{marginBottom:a,color:n,fontWeight:o,fontSize:e,lineHeight:t}},_1e=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[` - h${r}&, - div&-h${r}, - div&-h${r} > textarea, - h${r} - `]=N1e(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},j1e=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},ph(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},D1e=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:xp[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:e.fontWeightStrong},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),F1e=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(r).div(-2).add(1).equal(),marginBottom:e.calc(r).div(2).sub(2).equal()},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},k1e=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),L1e=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),z1e=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger`]:{color:e.colorErrorText,"a&:active, a&:focus":{color:e.colorErrorTextActive},"a&:hover":{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},_1e(e)),{[` - & + h1${t}, - & + h2${t}, - & + h3${t}, - & + h4${t}, - & + h5${t} - `]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),D1e(e)),j1e(e)),{[` - ${t}-expand, - ${t}-collapse, - ${t}-edit, - ${t}-copy - `]:Object.assign(Object.assign({},ph(e)),{marginInlineStart:e.marginXXS})}),F1e(e)),k1e(e)),L1e()),{"&-rtl":{direction:"rtl"}})}},A1e=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),HA=rn("Typography",z1e,A1e),B1e=e=>{const{prefixCls:t,"aria-label":n,className:r,style:a,direction:o,maxLength:i,autoSize:l=!0,value:c,onSave:u,onCancel:d,onEnd:f,component:m,enterIcon:g=s.createElement(T1e,null)}=e,h=s.useRef(null),b=s.useRef(!1),p=s.useRef(null),[S,C]=s.useState(c);s.useEffect(()=>{C(c)},[c]),s.useEffect(()=>{var _;if(!((_=h.current)===null||_===void 0)&&_.resizableTextArea){const{textArea:F}=h.current.resizableTextArea;F.focus();const{length:j}=F.value;F.setSelectionRange(j,j)}},[]);const x=({target:_})=>{C(_.value.replace(/[\n\r]/g,""))},w=()=>{b.current=!0},$=()=>{b.current=!1},E=({keyCode:_})=>{b.current||(p.current=_)},P=()=>{u(S.trim())},M=({keyCode:_,ctrlKey:F,altKey:j,metaKey:k,shiftKey:z})=>{p.current!==_||b.current||F||j||k||z||(_===lt.ENTER?(P(),f?.()):_===lt.ESC&&d())},O=()=>{P()},[T,N,D]=HA(t),L=le(t,`${t}-edit-content`,{[`${t}-rtl`]:o==="rtl",[`${t}-${m}`]:!!m},r,N,D);return T(s.createElement("div",{className:L,style:a},s.createElement(Rz,{ref:h,maxLength:i,value:S,onChange:x,onKeyDown:E,onKeyUp:M,onCompositionStart:w,onCompositionEnd:$,onBlur:O,"aria-label":n,rows:1,autoSize:l}),g!==null?xr(g,{className:`${t}-edit-content-confirm`}):null))};var O1,EM;function H1e(){return EM||(EM=1,O1=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r"u"){l&&console.warn("unable to use e.clipboardData"),l&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var p=t[i.format]||t.default;window.clipboardData.setData(p,o)}else b.clipboardData.clearData(),b.clipboardData.setData(i.format,o);i.onCopy&&(b.preventDefault(),i.onCopy(b.clipboardData))}),document.body.appendChild(m),d.selectNodeContents(m),f.addRange(d);var h=document.execCommand("copy");if(!h)throw new Error("copy command was unsuccessful");g=!0}catch(b){l&&console.error("unable to copy using execCommand: ",b),l&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(i.format||"text",o),i.onCopy&&i.onCopy(window.clipboardData),g=!0}catch(p){l&&console.error("unable to copy using clipboardData: ",p),l&&console.error("falling back to prompt"),c=r("message"in i?i.message:n),window.prompt(c,o)}}finally{f&&(typeof f.removeRange=="function"?f.removeRange(d):f.removeAllRanges()),m&&document.body.removeChild(m),u()}return g}return R1=a,R1}var W1e=V1e();const K1e=Lr(W1e);var q1e=function(e,t,n,r){function a(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function l(d){try{u(r.next(d))}catch(f){i(f)}}function c(d){try{u(r.throw(d))}catch(f){i(f)}}function u(d){d.done?o(d.value):a(d.value).then(l,c)}u((r=r.apply(e,t||[])).next())})};const U1e=({copyConfig:e,children:t})=>{const[n,r]=s.useState(!1),[a,o]=s.useState(!1),i=s.useRef(null),l=()=>{i.current&&clearTimeout(i.current)},c={};e.format&&(c.format=e.format),s.useEffect(()=>l,[]);const u=Gt(d=>q1e(void 0,void 0,void 0,function*(){var f;d?.preventDefault(),d?.stopPropagation(),o(!0);try{const m=typeof e.text=="function"?yield e.text():e.text;K1e(m||$4(t,!0).join("")||"",c),o(!1),r(!0),l(),i.current=setTimeout(()=>{r(!1)},3e3),(f=e.onCopy)===null||f===void 0||f.call(e,d)}catch(m){throw o(!1),m}}));return{copied:n,copyLoading:a,onClick:u}};function I1(e,t){return s.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const G1e=e=>{const t=s.useRef(void 0);return s.useEffect(()=>{t.current=e}),t.current},X1e=(e,t,n)=>s.useMemo(()=>e===!0?{title:t??n}:s.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??n},e):{title:e},[e,t,n]);var Y1e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,component:r="article",className:a,rootClassName:o,setContentRef:i,children:l,direction:c,style:u}=e,d=Y1e(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:m,className:g,style:h}=Vn("typography"),b=c??m,p=i?wr(t,i):t,S=f("typography",n),[C,x,w]=HA(S),$=le(S,g,{[`${S}-rtl`]:b==="rtl"},a,o,x,w),E=Object.assign(Object.assign({},h),u);return C(s.createElement(r,Object.assign({className:$,style:E,ref:p},d),l))});var Q1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},Z1e=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:Q1e}))},H4=s.forwardRef(Z1e);function OM(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function M1(e,t,n){return e===!0||e===void 0?t:e||n&&t}function J1e(e){const t=document.createElement("em");e.appendChild(t);const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}const V4=e=>["string","number"].includes(typeof e),eCe=({prefixCls:e,copied:t,locale:n,iconOnly:r,tooltips:a,icon:o,tabIndex:i,onCopy:l,loading:c})=>{const u=OM(a),d=OM(o),{copied:f,copy:m}=n??{},g=t?f:m,h=M1(u[t?1:0],g),b=typeof h=="string"?h:g;return s.createElement(tr,{title:h},s.createElement("button",{type:"button",className:le(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:r}),onClick:l,"aria-label":b,tabIndex:i},t?M1(d[1],s.createElement(Cv,null),!0):M1(d[0],c?s.createElement(wa,null):s.createElement(H4,null),!0)))},wg=s.forwardRef(({style:e,children:t},n)=>{const r=s.useRef(null);return s.useImperativeHandle(n,()=>({isExceed:()=>{const a=r.current;return a.scrollHeight>a.clientHeight},getHeight:()=>r.current.clientHeight})),s.createElement("span",{"aria-hidden":!0,ref:r,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},e)},t)}),tCe=e=>e.reduce((t,n)=>t+(V4(n)?String(n).length:1),0);function RM(e,t){let n=0;const r=[];for(let a=0;at){const u=t-n;return r.push(String(o).slice(0,u)),r}r.push(o),n=c}return e}const T1=0,N1=1,_1=2,j1=3,IM=4,$g={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function nCe(e){const{enableMeasure:t,width:n,text:r,children:a,rows:o,expanded:i,miscDeps:l,onEllipsis:c}=e,u=s.useMemo(()=>Xn(r),[r]),d=s.useMemo(()=>tCe(u),[r]),f=s.useMemo(()=>a(u,!1),[r]),[m,g]=s.useState(null),h=s.useRef(null),b=s.useRef(null),p=s.useRef(null),S=s.useRef(null),C=s.useRef(null),[x,w]=s.useState(!1),[$,E]=s.useState(T1),[P,M]=s.useState(0),[O,T]=s.useState(null);un(()=>{E(t&&n&&d?N1:T1)},[n,r,o,t,u]),un(()=>{var _,F,j,k;if($===N1){E(_1);const z=b.current&&getComputedStyle(b.current).whiteSpace;T(z)}else if($===_1){const z=!!(!((_=p.current)===null||_===void 0)&&_.isExceed());E(z?j1:IM),g(z?[0,d]:null),w(z);const V=((F=p.current)===null||F===void 0?void 0:F.getHeight())||0,H=o===1?0:((j=S.current)===null||j===void 0?void 0:j.getHeight())||0,B=((k=C.current)===null||k===void 0?void 0:k.getHeight())||0,K=Math.max(V,H+B);M(K+1),c(z)}},[$]);const N=m?Math.ceil((m[0]+m[1])/2):0;un(()=>{var _;const[F,j]=m||[0,0];if(F!==j){const z=(((_=h.current)===null||_===void 0?void 0:_.getHeight())||0)>P;let V=N;j-F===1&&(V=z?F:j),g(z?[F,V]:[V,j])}},[m,N]);const D=s.useMemo(()=>{if(!t)return a(u,!1);if($!==j1||!m||m[0]!==m[1]){const _=a(u,!1);return[IM,T1].includes($)?_:s.createElement("span",{style:Object.assign(Object.assign({},$g),{WebkitLineClamp:o})},_)}return a(i?u:RM(u,m[0]),x)},[i,$,m,u].concat(Te(l))),L={width:n,margin:0,padding:0,whiteSpace:O==="nowrap"?"normal":"inherit"};return s.createElement(s.Fragment,null,D,$===_1&&s.createElement(s.Fragment,null,s.createElement(wg,{style:Object.assign(Object.assign(Object.assign({},L),$g),{WebkitLineClamp:o}),ref:p},f),s.createElement(wg,{style:Object.assign(Object.assign(Object.assign({},L),$g),{WebkitLineClamp:o-1}),ref:S},f),s.createElement(wg,{style:Object.assign(Object.assign(Object.assign({},L),$g),{WebkitLineClamp:1}),ref:C},a([],!0))),$===j1&&m&&m[0]!==m[1]&&s.createElement(wg,{style:Object.assign(Object.assign({},L),{top:400}),ref:h},a(RM(u,N),!0)),$===N1&&s.createElement("span",{style:{whiteSpace:"inherit"},ref:b}))}const rCe=({enableEllipsis:e,isEllipsis:t,children:n,tooltipProps:r})=>!r?.title||!e?n:s.createElement(tr,Object.assign({open:t?void 0:!1},r),n);var aCe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const{prefixCls:r,className:a,style:o,type:i,disabled:l,children:c,ellipsis:u,editable:d,copyable:f,component:m,title:g}=e,h=aCe(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:b,direction:p}=s.useContext(Ot),[S]=zr("Text"),C=s.useRef(null),x=s.useRef(null),w=b("typography",r),$=Qt(h,MM),[E,P]=I1(d),[M,O]=Tt(!1,{value:P.editing}),{triggerType:T=["icon"]}=P,N=$e=>{var we;$e&&((we=P.onStart)===null||we===void 0||we.call(P)),O($e)},D=G1e(M);un(()=>{var $e;!M&&D&&(($e=x.current)===null||$e===void 0||$e.focus())},[M]);const L=$e=>{$e?.preventDefault(),N(!0)},_=$e=>{var we;(we=P.onChange)===null||we===void 0||we.call(P,$e),N(!1)},F=()=>{var $e;($e=P.onCancel)===null||$e===void 0||$e.call(P),N(!1)},[j,k]=I1(f),{copied:z,copyLoading:V,onClick:H}=U1e({copyConfig:k,children:c}),[B,K]=s.useState(!1),[W,G]=s.useState(!1),[X,Y]=s.useState(!1),[Z,ee]=s.useState(!1),[re,ne]=s.useState(!0),[se,oe]=I1(u,{expandable:!1,symbol:$e=>$e?S?.collapse:S?.expand}),[me,ue]=Tt(oe.defaultExpanded||!1,{value:oe.expanded}),de=se&&(!me||oe.expandable==="collapsible"),{rows:ae=1}=oe,ie=s.useMemo(()=>de&&(oe.suffix!==void 0||oe.onEllipsis||oe.expandable||E||j),[de,oe,E,j]);un(()=>{se&&!ie&&(K(xw("webkitLineClamp")),G(xw("textOverflow")))},[ie,se]);const[ge,pe]=s.useState(de),be=s.useMemo(()=>ie?!1:ae===1?W:B,[ie,W,B]);un(()=>{pe(be&&de)},[be,de]);const ve=de&&(ge?Z:X),Ce=de&&ae===1&&ge,he=de&&ae>1&&ge,Se=($e,we)=>{var Ie;ue(we.expanded),(Ie=oe.onExpand)===null||Ie===void 0||Ie.call(oe,$e,we)},[Ee,Oe]=s.useState(0),We=({offsetWidth:$e})=>{Oe($e)},je=$e=>{var we;Y($e),X!==$e&&((we=oe.onEllipsis)===null||we===void 0||we.call(oe,$e))};s.useEffect(()=>{const $e=C.current;if(se&&ge&&$e){const we=J1e($e);Z!==we&&ee(we)}},[se,ge,c,he,re,Ee]),s.useEffect(()=>{const $e=C.current;if(typeof IntersectionObserver>"u"||!$e||!ge||!de)return;const we=new IntersectionObserver(()=>{ne(!!$e.offsetParent)});return we.observe($e),()=>{we.disconnect()}},[ge,de]);const De=X1e(oe.tooltip,P.text,c),ke=s.useMemo(()=>{if(!(!se||ge))return[P.text,c,g,De.title].find(V4)},[se,ge,g,De.title,ve]);if(M)return s.createElement(B1e,{value:(n=P.text)!==null&&n!==void 0?n:typeof c=="string"?c:"",onSave:_,onCancel:F,onEnd:P.onEnd,prefixCls:w,className:a,style:o,direction:p,component:m,maxLength:P.maxLength,autoSize:P.autoSize,enterIcon:P.enterIcon});const _e=()=>{const{expandable:$e,symbol:we}=oe;return $e?s.createElement("button",{type:"button",key:"expand",className:`${w}-${me?"collapse":"expand"}`,onClick:Ie=>Se(Ie,{expanded:!me}),"aria-label":me?S.collapse:S?.expand},typeof we=="function"?we(me):we):null},Re=()=>{if(!E)return;const{icon:$e,tooltip:we,tabIndex:Ie}=P,Fe=Xn(we)[0]||S?.edit,Ge=typeof Fe=="string"?Fe:"";return T.includes("icon")?s.createElement(tr,{key:"edit",title:we===!1?"":Fe},s.createElement("button",{type:"button",ref:x,className:`${w}-edit`,onClick:L,"aria-label":Ge,tabIndex:Ie},$e||s.createElement(c$,{role:"button"}))):null},Le=()=>j?s.createElement(eCe,Object.assign({key:"copy"},k,{prefixCls:w,copied:z,locale:S,onCopy:H,loading:V,iconOnly:c==null})):null,Me=$e=>[$e&&_e(),Re(),Le()],Be=$e=>[$e&&!me&&s.createElement("span",{"aria-hidden":!0,key:"ellipsis"},iCe),oe.suffix,Me($e)];return s.createElement(Vr,{onResize:We,disabled:!de},$e=>s.createElement(rCe,{tooltipProps:De,enableEllipsis:de,isEllipsis:ve},s.createElement(VA,Object.assign({className:le({[`${w}-${i}`]:i,[`${w}-disabled`]:l,[`${w}-ellipsis`]:se,[`${w}-ellipsis-single-line`]:Ce,[`${w}-ellipsis-multiple-line`]:he},a),prefixCls:r,style:Object.assign(Object.assign({},o),{WebkitLineClamp:he?ae:void 0}),component:m,ref:wr($e,C,t),direction:p,onClick:T.includes("text")?L:void 0,"aria-label":ke?.toString(),title:g},$),s.createElement(nCe,{enableMeasure:de&&!ge,text:c,rows:ae,width:Ee,onEllipsis:je,expanded:me,miscDeps:[z,me,V,E,j,S].concat(Te(MM.map(we=>e[we])))},(we,Ie)=>oCe(e,s.createElement(s.Fragment,null,we.length>0&&Ie&&!me&&ke?s.createElement("span",{key:"show-content","aria-hidden":!0},we):we,Be(Ie)))))))});var lCe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{ellipsis:n,rel:r,children:a,navigate:o}=e,i=lCe(e,["ellipsis","rel","children","navigate"]),l=Object.assign(Object.assign({},i),{rel:r===void 0&&i.target==="_blank"?"noopener noreferrer":r});return s.createElement(b0,Object.assign({},l,{ref:t,ellipsis:!!n,component:"a"}),a)});var cCe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{children:n}=e,r=cCe(e,["children"]);return s.createElement(b0,Object.assign({ref:t},r,{component:"div"}),n)});var dCe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{ellipsis:n,children:r}=e,a=dCe(e,["ellipsis","children"]),o=s.useMemo(()=>n&&typeof n=="object"?Qt(n,["expandable","rows"]):n,[n]);return s.createElement(b0,Object.assign({ref:t},a,{ellipsis:o,component:"span"}),r)},vCe=s.forwardRef(fCe);var mCe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{level:n=1,children:r}=e,a=mCe(e,["level","children"]),o=gCe.includes(n)?`h${n}`:"h1";return s.createElement(b0,Object.assign({ref:t},a,{component:o}),r)}),id=VA;id.Text=vCe;id.Link=sCe;id.Title=pCe;id.Paragraph=uCe;const D1=(function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",a=e.type||"",o=a.replace(/\/.*$/,"");return n.some(function(i){var l=i.trim();if(/^\*(\/\*)?$/.test(i))return!0;if(l.charAt(0)==="."){var c=r.toLowerCase(),u=l.toLowerCase(),d=[u];return(u===".jpg"||u===".jpeg")&&(d=[".jpg",".jpeg"]),d.some(function(f){return c.endsWith(f)})}return/\/\*$/.test(l)?o===l.replace(/\/.*$/,""):a===l?!0:/^\w+$/.test(l)?(jn(!1,"Upload takes an invalidate 'accept' type '".concat(l,"'.Skip for check.")),!0):!1})}return!0});function hCe(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}function TM(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function NM(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(o){o.total>0&&(o.percent=o.loaded/o.total*100),e.onProgress(o)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(a){var o=e.data[a];if(Array.isArray(o)){o.forEach(function(i){n.append("".concat(a,"[]"),i)});return}n.append(a,o)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(o){e.onError(o)},t.onload=function(){return t.status<200||t.status>=300?e.onError(hCe(e,t),TM(t)):e.onSuccess(TM(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return r["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach(function(a){r[a]!==null&&t.setRequestHeader(a,r[a])}),t.send(n),{abort:function(){t.abort()}}}var bCe=(function(){var e=en(ut().mark(function t(n,r){var a,o,i,l,c,u,d,f;return ut().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:u=function(){return u=en(ut().mark(function b(p){return ut().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return C.abrupt("return",new Promise(function(x){p.file(function(w){r(w)?(p.fullPath&&!w.webkitRelativePath&&(Object.defineProperties(w,{webkitRelativePath:{writable:!0}}),w.webkitRelativePath=p.fullPath.replace(/^\//,""),Object.defineProperties(w,{webkitRelativePath:{writable:!1}})),x(w)):x(null)})}));case 1:case"end":return C.stop()}},b)})),u.apply(this,arguments)},c=function(b){return u.apply(this,arguments)},l=function(){return l=en(ut().mark(function b(p){var S,C,x,w,$;return ut().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:S=p.createReader(),C=[];case 2:return P.next=5,new Promise(function(M){S.readEntries(M,function(){return M([])})});case 5:if(x=P.sent,w=x.length,w){P.next=9;break}return P.abrupt("break",12);case 9:for($=0;$0||b.some(function(w){return w.kind==="file"}))&&d?.(),!h){x.next=11;break}return x.next=7,bCe(Array.prototype.slice.call(b),function(w){return D1(w,r.props.accept)});case 7:p=x.sent,r.uploadFiles(p),x.next=14;break;case 11:S=Te(p).filter(function(w){return D1(w,g)}),m===!1&&(S=p.slice(0,1)),r.uploadFiles(S);case 14:case"end":return x.stop()}},c)}));return function(c,u){return l.apply(this,arguments)}})()),q($t(r),"onFilePaste",(function(){var l=en(ut().mark(function c(u){var d,f;return ut().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:if(d=r.props.pastable,d){g.next=3;break}return g.abrupt("return");case 3:if(u.type!=="paste"){g.next=6;break}return f=u.clipboardData,g.abrupt("return",r.onDataTransferFiles(f,function(){u.preventDefault()}));case 6:case"end":return g.stop()}},c)}));return function(c){return l.apply(this,arguments)}})()),q($t(r),"onFileDragOver",function(l){l.preventDefault()}),q($t(r),"onFileDrop",(function(){var l=en(ut().mark(function c(u){var d;return ut().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(u.preventDefault(),u.type!=="drop"){m.next=4;break}return d=u.dataTransfer,m.abrupt("return",r.onDataTransferFiles(d));case 4:case"end":return m.stop()}},c)}));return function(c){return l.apply(this,arguments)}})()),q($t(r),"uploadFiles",function(l){var c=Te(l),u=c.map(function(d){return d.uid=F1(),r.processFile(d,c)});Promise.all(u).then(function(d){var f=r.props.onBatchStart;f?.(d.map(function(m){var g=m.origin,h=m.parsedFile;return{file:g,parsedFile:h}})),d.filter(function(m){return m.parsedFile!==null}).forEach(function(m){r.post(m)})})}),q($t(r),"processFile",(function(){var l=en(ut().mark(function c(u,d){var f,m,g,h,b,p,S,C,x;return ut().wrap(function($){for(;;)switch($.prev=$.next){case 0:if(f=r.props.beforeUpload,m=u,!f){$.next=14;break}return $.prev=3,$.next=6,f(u,d);case 6:m=$.sent,$.next=12;break;case 9:$.prev=9,$.t0=$.catch(3),m=!1;case 12:if(m!==!1){$.next=14;break}return $.abrupt("return",{origin:u,parsedFile:null,action:null,data:null});case 14:if(g=r.props.action,typeof g!="function"){$.next=21;break}return $.next=18,g(u);case 18:h=$.sent,$.next=22;break;case 21:h=g;case 22:if(b=r.props.data,typeof b!="function"){$.next=29;break}return $.next=26,b(u);case 26:p=$.sent,$.next=30;break;case 29:p=b;case 30:return S=(st(m)==="object"||typeof m=="string")&&m?m:u,S instanceof File?C=S:C=new File([S],u.name,{type:u.type}),x=C,x.uid=u.uid,$.abrupt("return",{origin:u,data:p,parsedFile:x,action:h});case 35:case"end":return $.stop()}},c,null,[[3,9]])}));return function(c,u){return l.apply(this,arguments)}})()),q($t(r),"saveFileInput",function(l){r.fileInput=l}),r}return Ln(n,[{key:"componentDidMount",value:function(){this._isMounted=!0;var a=this.props.pastable;a&&document.addEventListener("paste",this.onFilePaste)}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort(),document.removeEventListener("paste",this.onFilePaste)}},{key:"componentDidUpdate",value:function(a){var o=this.props.pastable;o&&!a.pastable?document.addEventListener("paste",this.onFilePaste):!o&&a.pastable&&document.removeEventListener("paste",this.onFilePaste)}},{key:"post",value:function(a){var o=this,i=a.data,l=a.origin,c=a.action,u=a.parsedFile;if(this._isMounted){var d=this.props,f=d.onStart,m=d.customRequest,g=d.name,h=d.headers,b=d.withCredentials,p=d.method,S=l.uid,C=m||NM,x={action:c,filename:g,data:i,file:u,headers:h,withCredentials:b,method:p||"post",onProgress:function($){var E=o.props.onProgress;E?.($,u)},onSuccess:function($,E){var P=o.props.onSuccess;P?.($,u,E),delete o.reqs[S]},onError:function($,E){var P=o.props.onError;P?.($,E,u),delete o.reqs[S]}};f(l),this.reqs[S]=C(x,{defaultRequest:NM})}}},{key:"reset",value:function(){this.setState({uid:F1()})}},{key:"abort",value:function(a){var o=this.reqs;if(a){var i=a.uid?a.uid:a;o[i]&&o[i].abort&&o[i].abort(),delete o[i]}else Object.keys(o).forEach(function(l){o[l]&&o[l].abort&&o[l].abort(),delete o[l]})}},{key:"render",value:function(){var a=this.props,o=a.component,i=a.prefixCls,l=a.className,c=a.classNames,u=c===void 0?{}:c,d=a.disabled,f=a.id,m=a.name,g=a.style,h=a.styles,b=h===void 0?{}:h,p=a.multiple,S=a.accept,C=a.capture,x=a.children,w=a.directory,$=a.folder,E=a.openFileDialogOnClick,P=a.onMouseEnter,M=a.onMouseLeave,O=a.hasControlInside,T=Ue(a,SCe),N=le(q(q(q({},i,!0),"".concat(i,"-disabled"),d),l,l)),D=w||$?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},L=d?{}:{onClick:E?this.onClick:function(){},onKeyDown:E?this.onKeyDown:function(){},onMouseEnter:P,onMouseLeave:M,onDrop:this.onFileDrop,onDragOver:this.onFileDragOver,tabIndex:O?void 0:"0"};return Q.createElement(o,xe({},L,{className:N,role:O?void 0:"button",style:g}),Q.createElement("input",xe({},Qn(T,{aria:!0,data:!0}),{id:f,name:m,disabled:d,type:"file",ref:this.saveFileInput,onClick:function(F){return F.stopPropagation()},key:this.state.uid,style:R({display:"none"},b.input),className:u.input,accept:S},D,{multiple:p,onChange:this.onChange},C!=null?{capture:C}:{})),x)}}]),n})(s.Component);function k1(){}var u$=(function(e){ma(n,e);var t=Ea(n);function n(){var r;kn(this,n);for(var a=arguments.length,o=new Array(a),i=0;i{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${ce(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${ce(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` - &:not(${t}-disabled):hover, - &-hover:not(${t}-disabled) - `]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${ce(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n}, - p${t}-text, - p${t}-hint - `]:{color:e.colorTextDisabled}}}}}},$Ce=e=>{const{componentCls:t,iconCls:n,fontSize:r,lineHeight:a,calc:o}=e,i=`${t}-list-item`,l=`${i}-actions`,c=`${i}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},Ei()),{lineHeight:e.lineHeight,[i]:{position:"relative",height:o(e.lineHeight).mul(r).equal(),marginTop:e.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${i}-name`]:Object.assign(Object.assign({},ra),{padding:`0 ${ce(e.paddingXS)}`,lineHeight:a,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[l]:{whiteSpace:"nowrap",[c]:{opacity:0},[n]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[` - ${c}:focus-visible, - &.picture ${c} - `]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorIcon,fontSize:r},[`${i}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:o(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${i}:hover ${c}`]:{opacity:1},[`${i}-error`]:{color:e.colorError,[`${i}-name, ${t}-icon ${n}`]:{color:e.colorError},[l]:{[`${n}, ${n}:hover`]:{color:e.colorError},[c]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},ECe=e=>{const{componentCls:t}=e,n=new an("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new an("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),a=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${a}-appear, ${a}-enter, ${a}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${a}-appear, ${a}-enter`]:{animationName:n},[`${a}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:wh(e)},n,r]},PCe=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:a,calc:o}=e,i=`${t}-list`,l=`${i}-item`;return{[`${t}-wrapper`]:{[` - ${i}${i}-picture, - ${i}${i}-picture-card, - ${i}${i}-picture-circle - `]:{[l]:{position:"relative",height:o(r).add(o(e.lineWidth).mul(2)).add(o(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${ce(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${l}-thumbnail`]:Object.assign(Object.assign({},ra),{width:r,height:r,lineHeight:ce(o(r).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${l}-progress`]:{bottom:a,width:`calc(100% - ${ce(o(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:o(r).add(e.paddingXS).equal()}},[`${l}-error`]:{borderColor:e.colorError,[`${l}-thumbnail ${n}`]:{[`svg path[fill='${wu[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${wu.primary}']`]:{fill:e.colorError}}},[`${l}-uploading`]:{borderStyle:"dashed",[`${l}-name`]:{marginBottom:a}}},[`${i}${i}-picture-circle ${l}`]:{[`&, &::before, ${l}-thumbnail`]:{borderRadius:"50%"}}}}},OCe=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:a,calc:o}=e,i=`${t}-list`,l=`${i}-item`,c=e.uploadPicCardSize;return{[` - ${t}-wrapper${t}-picture-card-wrapper, - ${t}-wrapper${t}-picture-circle-wrapper - `]:Object.assign(Object.assign({},Ei()),{display:"block",[`${t}${t}-select`]:{width:c,height:c,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${ce(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${i}${i}-picture-card, ${i}${i}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${i}-item-container`]:{display:"inline-block",width:c,height:c,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[l]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${ce(o(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${ce(o(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${l}:hover`]:{[`&::before, ${l}-actions`]:{opacity:1}},[`${l}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[` - ${n}-eye, - ${n}-download, - ${n}-delete - `]:{zIndex:10,width:r,margin:`0 ${ce(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:a,"&:hover":{color:a},svg:{verticalAlign:"baseline"}}},[`${l}-thumbnail, ${l}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${l}-name`]:{display:"none",textAlign:"center"},[`${l}-file + ${l}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${ce(o(e.paddingXS).mul(2).equal())})`},[`${l}-uploading`]:{[`&${l}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${l}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${ce(o(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},RCe=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},ICe=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},fn(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},MCe=e=>({actionsColor:e.colorIcon,pictureCardSize:e.controlHeightLG*2.55}),TCe=rn("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,pictureCardSize:a,calc:o}=e,i=Xt(e,{uploadThumbnailSize:o(t).mul(2).equal(),uploadProgressOffset:o(o(n).div(2)).add(r).equal(),uploadPicCardSize:a});return[ICe(i),wCe(i),PCe(i),OCe(i),$Ce(i),ECe(i),RCe(i),vv(i)]},MCe);var NCe={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:n}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"},_Ce=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:NCe}))},jCe=s.forwardRef(_Ce),DCe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},FCe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:DCe}))},kCe=s.forwardRef(FCe),LCe={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:n}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:n}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:n}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"},zCe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:LCe}))},ACe=s.forwardRef(zCe);function Eg(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function Pg(e,t){const n=Te(t),r=n.findIndex(({uid:a})=>a===e.uid);return r===-1?n.push(e):n[r]=e,n}function L1(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function BCe(e,t){const n=e.uid!==void 0?"uid":"name",r=t.filter(a=>a[n]!==e[n]);return r.length===t.length?null:r}const HCe=(e="")=>{const t=e.split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},WA=e=>e.indexOf("image/")===0,VCe=e=>{if(e.type&&!e.thumbUrl)return WA(e.type);const t=e.thumbUrl||e.url||"",n=HCe(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n)?!0:!(/^data:/.test(t)||n)},Dl=200;function WCe(e){return new Promise(t=>{if(!e.type||!WA(e.type)){t("");return}const n=document.createElement("canvas");n.width=Dl,n.height=Dl,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${Dl}px; height: ${Dl}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),a=new Image;if(a.onload=()=>{const{width:o,height:i}=a;let l=Dl,c=Dl,u=0,d=0;o>i?(c=i*(Dl/o),d=-(c-l)/2):(l=o*(Dl/i),u=-(l-c)/2),r.drawImage(a,u,d,l,c);const f=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(a.src),t(f)},a.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const o=new FileReader;o.onload=()=>{o.result&&typeof o.result=="string"&&(a.src=o.result)},o.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const o=new FileReader;o.onload=()=>{o.result&&t(o.result)},o.readAsDataURL(e)}else a.src=window.URL.createObjectURL(e)})}var KCe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},qCe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:KCe}))},UCe=s.forwardRef(qCe);const GCe=s.forwardRef(({prefixCls:e,className:t,style:n,locale:r,listType:a,file:o,items:i,progress:l,iconRender:c,actionIconRender:u,itemRender:d,isImgUrl:f,showPreviewIcon:m,showRemoveIcon:g,showDownloadIcon:h,previewIcon:b,removeIcon:p,downloadIcon:S,extra:C,onPreview:x,onDownload:w,onClose:$},E)=>{var P,M;const{status:O}=o,[T,N]=s.useState(O);s.useEffect(()=>{O!=="removed"&&N(O)},[O]);const[D,L]=s.useState(!1);s.useEffect(()=>{const oe=setTimeout(()=>{L(!0)},300);return()=>{clearTimeout(oe)}},[]);const _=c(o);let F=s.createElement("div",{className:`${e}-icon`},_);if(a==="picture"||a==="picture-card"||a==="picture-circle")if(T==="uploading"||!o.thumbUrl&&!o.url){const oe=le(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:T!=="uploading"});F=s.createElement("div",{className:oe},_)}else{const oe=f?.(o)?s.createElement("img",{src:o.thumbUrl||o.url,alt:o.name,className:`${e}-list-item-image`,crossOrigin:o.crossOrigin}):_,me=le(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:f&&!f(o)});F=s.createElement("a",{className:me,onClick:ue=>x(o,ue),href:o.url||o.thumbUrl,target:"_blank",rel:"noopener noreferrer"},oe)}const j=le(`${e}-list-item`,`${e}-list-item-${T}`),k=typeof o.linkProps=="string"?JSON.parse(o.linkProps):o.linkProps,z=(typeof g=="function"?g(o):g)?u((typeof p=="function"?p(o):p)||s.createElement(p0,null),()=>$(o),e,r.removeFile,!0):null,V=(typeof h=="function"?h(o):h)&&T==="done"?u((typeof S=="function"?S(o):S)||s.createElement(UCe,null),()=>w(o),e,r.downloadFile):null,H=a!=="picture-card"&&a!=="picture-circle"&&s.createElement("span",{key:"download-delete",className:le(`${e}-list-item-actions`,{picture:a==="picture"})},V,z),B=typeof C=="function"?C(o):C,K=B&&s.createElement("span",{className:`${e}-list-item-extra`},B),W=le(`${e}-list-item-name`),G=o.url?s.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:W,title:o.name},k,{href:o.url,onClick:oe=>x(o,oe)}),o.name,K):s.createElement("span",{key:"view",className:W,onClick:oe=>x(o,oe),title:o.name},o.name,K),X=(typeof m=="function"?m(o):m)&&(o.url||o.thumbUrl)?s.createElement("a",{href:o.url||o.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:oe=>x(o,oe),title:r.previewFile},typeof b=="function"?b(o):b||s.createElement(i0,null)):null,Y=(a==="picture-card"||a==="picture-circle")&&T!=="uploading"&&s.createElement("span",{className:`${e}-list-item-actions`},X,T==="done"&&V,z),{getPrefixCls:Z}=s.useContext(Ot),ee=Z(),re=s.createElement("div",{className:j},F,G,H,Y,D&&s.createElement(Nr,{motionName:`${ee}-fade`,visible:T==="uploading",motionDeadline:2e3},({className:oe})=>{const me="percent"in o?s.createElement(E4,Object.assign({type:"line",percent:o.percent,"aria-label":o["aria-label"],"aria-labelledby":o["aria-labelledby"]},l)):null;return s.createElement("div",{className:le(`${e}-list-item-progress`,oe)},me)})),ne=o.response&&typeof o.response=="string"?o.response:((P=o.error)===null||P===void 0?void 0:P.statusText)||((M=o.error)===null||M===void 0?void 0:M.message)||r.uploadError,se=T==="error"?s.createElement(tr,{title:ne,getPopupContainer:oe=>oe.parentNode},re):re;return s.createElement("div",{className:le(`${e}-list-item-container`,t),style:n,ref:E},d?d(se,o,i,{download:w.bind(null,o),preview:x.bind(null,o),remove:$.bind(null,o)}):se)}),XCe=(e,t)=>{const{listType:n="text",previewFile:r=WCe,onPreview:a,onDownload:o,onRemove:i,locale:l,iconRender:c,isImageUrl:u=VCe,prefixCls:d,items:f=[],showPreviewIcon:m=!0,showRemoveIcon:g=!0,showDownloadIcon:h=!1,removeIcon:b,previewIcon:p,downloadIcon:S,extra:C,progress:x={size:[-1,2],showInfo:!1},appendAction:w,appendActionVisible:$=!0,itemRender:E,disabled:P}=e,[,M]=yh(),[O,T]=s.useState(!1),N=["picture-card","picture-circle"].includes(n);s.useEffect(()=>{n.startsWith("picture")&&(f||[]).forEach(W=>{!(W.originFileObj instanceof File||W.originFileObj instanceof Blob)||W.thumbUrl!==void 0||(W.thumbUrl="",r?.(W.originFileObj).then(G=>{W.thumbUrl=G||"",M()}))})},[n,f,r]),s.useEffect(()=>{T(!0)},[]);const D=(W,G)=>{if(a)return G?.preventDefault(),a(W)},L=W=>{typeof o=="function"?o(W):W.url&&window.open(W.url)},_=W=>{i?.(W)},F=W=>{if(c)return c(W,n);const G=W.status==="uploading";if(n.startsWith("picture")){const X=n==="picture"?s.createElement(wa,null):l.uploading,Y=u?.(W)?s.createElement(ACe,null):s.createElement(jCe,null);return G?X:Y}return G?s.createElement(wa,null):s.createElement(kCe,null)},j=(W,G,X,Y,Z)=>{const ee={type:"text",size:"small",title:Y,onClick:re=>{var ne,se;G(),s.isValidElement(W)&&((se=(ne=W.props).onClick)===null||se===void 0||se.call(ne,re))},className:`${X}-list-item-action`,disabled:Z?P:!1};return s.isValidElement(W)?s.createElement(cr,Object.assign({},ee,{icon:xr(W,Object.assign(Object.assign({},W.props),{onClick:()=>{}}))})):s.createElement(cr,Object.assign({},ee),s.createElement("span",null,W))};s.useImperativeHandle(t,()=>({handlePreview:D,handleDownload:L}));const{getPrefixCls:k}=s.useContext(Ot),z=k("upload",d),V=k(),H=le(`${z}-list`,`${z}-list-${n}`),B=s.useMemo(()=>Qt(Eu(V),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[V]),K=Object.assign(Object.assign({},N?{}:B),{motionDeadline:2e3,motionName:`${z}-${N?"animate-inline":"animate"}`,keys:Te(f.map(W=>({key:W.uid,file:W}))),motionAppear:O});return s.createElement("div",{className:H},s.createElement(sE,Object.assign({},K,{component:!1}),({key:W,file:G,className:X,style:Y})=>s.createElement(GCe,{key:W,locale:l,prefixCls:z,className:X,style:Y,file:G,items:f,progress:x,listType:n,isImgUrl:u,showPreviewIcon:m,showRemoveIcon:g,showDownloadIcon:h,removeIcon:b,previewIcon:p,downloadIcon:S,extra:C,iconRender:F,actionIconRender:j,itemRender:E,onPreview:D,onDownload:L,onClose:_})),w&&s.createElement(Nr,Object.assign({},K,{visible:$,forceRender:!0}),({className:W,style:G})=>xr(w,X=>({className:le(X.className,W),style:Object.assign(Object.assign(Object.assign({},G),{pointerEvents:W?"none":void 0}),X.style)}))))},YCe=s.forwardRef(XCe);var QCe=function(e,t,n,r){function a(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function l(d){try{u(r.next(d))}catch(f){i(f)}}function c(d){try{u(r.throw(d))}catch(f){i(f)}}function u(d){d.done?o(d.value):a(d.value).then(l,c)}u((r=r.apply(e,[])).next())})};const ff=`__LIST_IGNORE_${Date.now()}__`,ZCe=(e,t)=>{const n=Vn("upload"),{fileList:r,defaultFileList:a,onRemove:o,showUploadList:i=!0,listType:l="text",onPreview:c,onDownload:u,onChange:d,onDrop:f,previewFile:m,disabled:g,locale:h,iconRender:b,isImageUrl:p,progress:S,prefixCls:C,className:x,type:w="select",children:$,style:E,itemRender:P,maxCount:M,data:O={},multiple:T=!1,hasControlInside:N=!0,action:D="",accept:L="",supportServerRender:_=!0,rootClassName:F}=e,j=s.useContext(Sr),k=g??j,z=e.customRequest||n.customRequest,[V,H]=Tt(a||[],{value:r,postState:$e=>$e??[]}),[B,K]=s.useState("drop"),W=s.useRef(null),G=s.useRef(null);s.useMemo(()=>{const $e=Date.now();(r||[]).forEach((we,Ie)=>{!we.uid&&!Object.isFrozen(we)&&(we.uid=`__AUTO__${$e}_${Ie}__`)})},[r]);const X=($e,we,Ie)=>{let Fe=Te(we),Ge=!1;M===1?Fe=Fe.slice(-1):M&&(Ge=Fe.length>M,Fe=Fe.slice(0,M)),kr.flushSync(()=>{H(Fe)});const et={file:$e,fileList:Fe};Ie&&(et.event=Ie),(!Ge||$e.status==="removed"||Fe.some(Ke=>Ke.uid===$e.uid))&&kr.flushSync(()=>{d?.(et)})},Y=($e,we)=>QCe(void 0,void 0,void 0,function*(){const{beforeUpload:Ie,transformFile:Fe}=e;let Ge=$e;if(Ie){const et=yield Ie($e,we);if(et===!1)return!1;if(delete $e[ff],et===ff)return Object.defineProperty($e,ff,{value:!0,configurable:!0}),!1;typeof et=="object"&&et&&(Ge=et)}return Fe&&(Ge=yield Fe(Ge)),Ge}),Z=$e=>{const we=$e.filter(Ge=>!Ge.file[ff]);if(!we.length)return;const Ie=we.map(Ge=>Eg(Ge.file));let Fe=Te(V);Ie.forEach(Ge=>{Fe=Pg(Ge,Fe)}),Ie.forEach((Ge,et)=>{let Ke=Ge;if(we[et].parsedFile)Ge.status="uploading";else{const{originFileObj:Ye}=Ge;let tt;try{tt=new File([Ye],Ye.name,{type:Ye.type})}catch{tt=new Blob([Ye],{type:Ye.type}),tt.name=Ye.name,tt.lastModifiedDate=new Date,tt.lastModified=new Date().getTime()}tt.uid=Ge.uid,Ke=tt}X(Ke,Fe)})},ee=($e,we,Ie)=>{try{typeof $e=="string"&&($e=JSON.parse($e))}catch{}if(!L1(we,V))return;const Fe=Eg(we);Fe.status="done",Fe.percent=100,Fe.response=$e,Fe.xhr=Ie;const Ge=Pg(Fe,V);X(Fe,Ge)},re=($e,we)=>{if(!L1(we,V))return;const Ie=Eg(we);Ie.status="uploading",Ie.percent=$e.percent;const Fe=Pg(Ie,V);X(Ie,Fe,$e)},ne=($e,we,Ie)=>{if(!L1(Ie,V))return;const Fe=Eg(Ie);Fe.error=$e,Fe.response=we,Fe.status="error";const Ge=Pg(Fe,V);X(Fe,Ge)},se=$e=>{let we;Promise.resolve(typeof o=="function"?o($e):o).then(Ie=>{var Fe;if(Ie===!1)return;const Ge=BCe($e,V);Ge&&(we=Object.assign(Object.assign({},$e),{status:"removed"}),V?.forEach(et=>{const Ke=we.uid!==void 0?"uid":"name";et[Ke]===we[Ke]&&!Object.isFrozen(et)&&(et.status="removed")}),(Fe=W.current)===null||Fe===void 0||Fe.abort(we),X(we,Ge))})},oe=$e=>{K($e.type),$e.type==="drop"&&f?.($e)};s.useImperativeHandle(t,()=>({onBatchStart:Z,onSuccess:ee,onProgress:re,onError:ne,fileList:V,upload:W.current,nativeElement:G.current}));const{getPrefixCls:me,direction:ue,upload:de}=s.useContext(Ot),ae=me("upload",C),ie=Object.assign(Object.assign({onBatchStart:Z,onError:ne,onProgress:re,onSuccess:ee},e),{customRequest:z,data:O,multiple:T,action:D,accept:L,supportServerRender:_,prefixCls:ae,disabled:k,beforeUpload:Y,onChange:void 0,hasControlInside:N});delete ie.className,delete ie.style,(!$||k)&&delete ie.id;const ge=`${ae}-wrapper`,[pe,be,ve]=TCe(ae,ge),[Ce]=zr("Upload",Ka.Upload),{showRemoveIcon:he,showPreviewIcon:Se,showDownloadIcon:Ee,removeIcon:Oe,previewIcon:We,downloadIcon:je,extra:De}=typeof i=="boolean"?{}:i,ke=typeof he>"u"?!k:he,_e=($e,we)=>i?s.createElement(YCe,{prefixCls:ae,listType:l,items:V,previewFile:m,onPreview:c,onDownload:u,onRemove:se,showRemoveIcon:ke,showPreviewIcon:Se,showDownloadIcon:Ee,removeIcon:Oe,previewIcon:We,downloadIcon:je,iconRender:b,extra:De,locale:Object.assign(Object.assign({},Ce),h),isImageUrl:p,progress:S,appendAction:$e,appendActionVisible:we,itemRender:P,disabled:k}):$e,Re=le(ge,x,F,be,ve,de?.className,{[`${ae}-rtl`]:ue==="rtl",[`${ae}-picture-card-wrapper`]:l==="picture-card",[`${ae}-picture-circle-wrapper`]:l==="picture-circle"}),Le=Object.assign(Object.assign({},de?.style),E);if(w==="drag"){const $e=le(be,ae,`${ae}-drag`,{[`${ae}-drag-uploading`]:V.some(we=>we.status==="uploading"),[`${ae}-drag-hover`]:B==="dragover",[`${ae}-disabled`]:k,[`${ae}-rtl`]:ue==="rtl"});return pe(s.createElement("span",{className:Re,ref:G},s.createElement("div",{className:$e,style:Le,onDrop:oe,onDragOver:oe,onDragLeave:oe},s.createElement(u$,Object.assign({},ie,{ref:W,className:`${ae}-btn`}),s.createElement("div",{className:`${ae}-drag-container`},$))),_e()))}const Me=le(ae,`${ae}-select`,{[`${ae}-disabled`]:k,[`${ae}-hidden`]:!$}),Be=s.createElement("div",{className:Me,style:Le},s.createElement(u$,Object.assign({},ie,{ref:W})));return pe(l==="picture-card"||l==="picture-circle"?s.createElement("span",{className:Re,ref:G},_e(Be,!!$)):s.createElement("span",{className:Re,ref:G},Be,_e()))},KA=s.forwardRef(ZCe);var JCe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{style:n,height:r,hasControlInside:a=!1,children:o}=e,i=JCe(e,["style","height","hasControlInside","children"]),l=Object.assign(Object.assign({},n),{height:r});return s.createElement(KA,Object.assign({ref:t,hasControlInside:a},i,{style:l,type:"drag"}),o)}),qA=KA;qA.Dragger=eSe;qA.LIST_IGNORE=ff;Q.Component;var tSe={subtree:!0,childList:!0,attributeFilter:["style","class"]};function nSe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:tSe;s.useEffect(function(){if(!(!Xr()||!e)){var r,a=Array.isArray(e)?e:[e];return"MutationObserver"in window&&(r=new MutationObserver(t),a.forEach(function(o){r.observe(o,n)})),function(){var o,i;(o=r)===null||o===void 0||o.takeRecords(),(i=r)===null||i===void 0||i.disconnect()}}},[n,e])}const UA=3,z1=(e,t,n=1)=>{const r=document.createElement("canvas"),a=r.getContext("2d"),o=e*n,i=t*n;return r.setAttribute("width",`${o}px`),r.setAttribute("height",`${i}px`),a.save(),[a,r,o,i]},rSe=(e,t,n)=>{const r=e*Math.cos(n)-t*Math.sin(n),a=e*Math.sin(n)+t*Math.cos(n);return[r,a]},aSe=()=>{const e=(t,n,r,a,o,i,l,c)=>{const[u,d,f,m]=z1(a,o,r);if(t instanceof HTMLImageElement)u.drawImage(t,0,0,f,m);else{const{color:H,fontSize:B,fontStyle:K,fontWeight:W,fontFamily:G,textAlign:X}=i,Y=Number(B)*r;u.font=`${K} normal ${W} ${Y}px/${o}px ${G}`,u.fillStyle=H,u.textAlign=X,u.textBaseline="top";const Z=$4(t);Z?.forEach((ee,re)=>{u.fillText(ee??"",f/2,re*(Y+UA*r))})}const g=Math.PI/180*Number(n),h=Math.max(a,o),[b,p,S]=z1(h,h,r);b.translate(S/2,S/2),b.rotate(g),f>0&&m>0&&b.drawImage(d,-f/2,-m/2);let C=0,x=0,w=0,$=0;const E=f/2,P=m/2;[[0-E,0-P],[0+E,0-P],[0+E,0+P],[0-E,0+P]].forEach(([H,B])=>{const[K,W]=rSe(H,B,g);C=Math.min(C,K),x=Math.max(x,K),w=Math.min(w,W),$=Math.max($,W)});const O=C+S/2,T=w+S/2,N=x-C,D=$-w,L=l*r,_=c*r,F=(N+L)*2,j=D+_,[k,z]=z1(F,j),V=(H=0,B=0)=>{k.drawImage(p,O,T,N,D,H,B,N,D)};return V(),V(N+L,-D/2-_/2),V(N+L,+D/2+_/2),[z.toDataURL(),F/r,j/r]};return Q.useCallback(e,[])};function oSe(e){const t=Q.useRef(!1),n=Q.useRef(null),r=Gt(e);return()=>{t.current||(t.current=!0,r(),n.current=ln(()=>{t.current=!1}))}}function iSe(){const e=s.useRef([null,null]);return(n,r)=>{const a=n.map(o=>o instanceof HTMLElement||Number.isNaN(o)?"":o);return Ma(e.current[0],a)||(e.current=[a,r()]),e.current[1]}}function lSe(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function sSe(e){return Object.keys(e).map(t=>`${lSe(t)}: ${e[t]};`).join(" ")}function cSe(){return window.devicePixelRatio||1}const uSe=(e,t)=>{let n=!1;return e.removedNodes.length&&(n=Array.from(e.removedNodes).some(r=>t(r))),e.type==="attributes"&&t(e.target)&&(n=!0),n},dSe={visibility:"visible !important"};function fSe(e){const t=s.useRef(new Map);return[(o,i,l)=>{if(l){if(!t.current.get(l)){const u=document.createElement("div");t.current.set(l,u)}const c=t.current.get(l);c.setAttribute("style",sSe(Object.assign(Object.assign(Object.assign({},e),{backgroundImage:`url('${o}')`,backgroundSize:`${Math.floor(i)}px`}),dSe))),c.removeAttribute("class"),c.removeAttribute("hidden"),c.parentElement!==l&&l.append(c)}return t.current.get(l)},o=>{const i=t.current.get(o);i&&o&&o.removeChild(i),t.current.delete(o)},o=>Array.from(t.current.values()).includes(o)]}function _M(e,t){return e.size===t.size?e:t}const jM=100,DM=100,FM={position:"relative",overflow:"hidden"},RFe=e=>{var t,n;const{zIndex:r=9,rotate:a=-22,width:o,height:i,image:l,content:c,font:u={},style:d,className:f,rootClassName:m,gap:g=[jM,DM],offset:h,children:b,inherit:p=!0}=e,S=Object.assign(Object.assign({},FM),d),[,C]=Rr(),{color:x=C.colorFill,fontSize:w=C.fontSizeLG,fontWeight:$="normal",fontStyle:E="normal",fontFamily:P="sans-serif",textAlign:M="center"}=u,[O=jM,T=DM]=g,N=O/2,D=T/2,L=(t=h?.[0])!==null&&t!==void 0?t:N,_=(n=h?.[1])!==null&&n!==void 0?n:D,F=Q.useMemo(()=>{const ue={zIndex:r,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let de=L-N,ae=_-D;return de>0&&(ue.left=`${de}px`,ue.width=`calc(100% - ${de}px)`,de=0),ae>0&&(ue.top=`${ae}px`,ue.height=`calc(100% - ${ae}px)`,ae=0),ue.backgroundPosition=`${de}px ${ae}px`,ue},[r,L,N,_,D]),[j,k]=Q.useState(),[z,V]=Q.useState(()=>new Set),H=Q.useMemo(()=>{const ue=j?[j]:[];return[].concat(ue,Te(Array.from(z)))},[j,z]),B=ue=>{let de=120,ae=64;if(!l&&ue.measureText){ue.font=`${Number(w)}px ${P}`;const ie=$4(c),ge=ie.map(pe=>{const be=ue.measureText(pe);return[be.width,be.fontBoundingBoxAscent+be.fontBoundingBoxDescent]});de=Math.ceil(Math.max.apply(Math,Te(ge.map(pe=>pe[0])))),ae=Math.ceil(Math.max.apply(Math,Te(ge.map(pe=>pe[1]))))*ie.length+(ie.length-1)*UA}return[o??de,i??ae]},K=aSe(),W=iSe(),[G,X]=Q.useState(null),Z=oSe(()=>{const de=document.createElement("canvas").getContext("2d");if(de){const ae=cSe(),[ie,ge]=B(de),pe=be=>{const ve=[be||"",a,ae,ie,ge,{color:x,fontSize:w,fontStyle:E,fontWeight:$,fontFamily:P,textAlign:M},O,T],[Ce,he]=W(ve,()=>K.apply(void 0,ve));X([Ce,he])};if(l){const be=new Image;be.onload=()=>{pe(be)},be.onerror=()=>{pe(c)},be.crossOrigin="anonymous",be.referrerPolicy="no-referrer",be.src=l}else pe(c)}}),[ee,re,ne]=fSe(F);s.useEffect(()=>{G&&H.forEach(ue=>{ee(G[0],G[1],ue)})},[G,H]);const se=Gt(ue=>{ue.forEach(de=>{if(uSe(de,ne))Z();else if(de.target===j&&de.attributeName==="style"){const ae=Object.keys(FM);for(let ie=0;ie({add:ue=>{V(de=>{const ae=new Set(de);return ae.add(ue),_M(de,ae)})},remove:ue=>{re(ue),V(de=>{const ae=new Set(de);return ae.delete(ue),_M(de,ae)})}}),[]),me=p?Q.createElement($F.Provider,{value:oe},b):b;return Q.createElement("div",{ref:k,className:le(f,m),style:S},me)};var vSe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908 640H804V488c0-4.4-3.6-8-8-8H548v-96h108c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16H368c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h108v96H228c-4.4 0-8 3.6-8 8v152H116c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16H292v-88h440v88H620c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16zm-564 76v168H176V716h168zm84-408V140h168v168H428zm420 576H680V716h168v168z"}}]},name:"apartment",theme:"outlined"},mSe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:vSe}))},IFe=s.forwardRef(mSe),gSe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M917.7 148.8l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 00-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 000 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3 2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM769.1 441.7l-59.4 59.4-186.8-186.8 59.4-59.4c24.9-24.9 58.1-38.7 93.4-38.7 35.3 0 68.4 13.7 93.4 38.7 24.9 24.9 38.7 58.1 38.7 93.4 0 35.3-13.8 68.4-38.7 93.4zm-190.2 105a8.03 8.03 0 00-11.3 0L501 613.3 410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 00-11.3 0L363 475.3l-43-43a7.85 7.85 0 00-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2c-68.9 69-77 175.7-24.3 253.5l-76.1 76.1a8.03 8.03 0 000 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2zM441.7 769.1a131.32 131.32 0 01-93.4 38.7c-35.3 0-68.4-13.7-93.4-38.7a131.32 131.32 0 01-38.7-93.4c0-35.3 13.7-68.4 38.7-93.4l59.4-59.4 186.8 186.8-59.4 59.4z"}}]},name:"api",theme:"outlined"},pSe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:gSe}))},MFe=s.forwardRef(pSe),hSe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}}]},name:"arrow-down",theme:"outlined"},bSe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:hSe}))},GA=s.forwardRef(bSe),ySe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"}}]},name:"arrow-up",theme:"outlined"},CSe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:ySe}))},XA=s.forwardRef(CSe),SSe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M296 250c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm184 144H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 458H208V148h560v320c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm440-88H728v-36.6c46.3-13.8 80-56.6 80-107.4 0-61.9-50.1-112-112-112s-112 50.1-112 112c0 50.7 33.7 93.6 80 107.4V764H520c-8.8 0-16 7.2-16 16v152c0 8.8 7.2 16 16 16h352c8.8 0 16-7.2 16-16V780c0-8.8-7.2-16-16-16zM646 620c0-27.6 22.4-50 50-50s50 22.4 50 50-22.4 50-50 50-50-22.4-50-50zm180 266H566v-60h260v60z"}}]},name:"audit",theme:"outlined"},xSe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:SSe}))},TFe=s.forwardRef(xSe),wSe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-600-80h56c4.4 0 8-3.6 8-8V560c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V384c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v320c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V462c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v242c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V304c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v400c0 4.4 3.6 8 8 8z"}}]},name:"bar-chart",theme:"outlined"},$Se=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:wSe}))},NFe=s.forwardRef($Se),ESe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M856 376H648V168c0-8.8-7.2-16-16-16H168c-8.8 0-16 7.2-16 16v464c0 8.8 7.2 16 16 16h208v208c0 8.8 7.2 16 16 16h464c8.8 0 16-7.2 16-16V392c0-8.8-7.2-16-16-16zm-480 16v188H220V220h360v156H392c-8.8 0-16 7.2-16 16zm204 52v136H444V444h136zm224 360H444V648h188c8.8 0 16-7.2 16-16V444h156v360z"}}]},name:"block",theme:"outlined"},PSe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:ESe}))},_Fe=s.forwardRef(PSe),OSe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M304 280h56c4.4 0 8-3.6 8-8 0-28.3 5.9-53.2 17.1-73.5 10.6-19.4 26-34.8 45.4-45.4C450.9 142 475.7 136 504 136h16c28.3 0 53.2 5.9 73.5 17.1 19.4 10.6 34.8 26 45.4 45.4C650 218.9 656 243.7 656 272c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-40-8.8-76.7-25.9-108.1a184.31 184.31 0 00-74-74C596.7 72.8 560 64 520 64h-16c-40 0-76.7 8.8-108.1 25.9a184.31 184.31 0 00-74 74C304.8 195.3 296 232 296 272c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M940 512H792V412c76.8 0 139-62.2 139-139 0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8a63 63 0 01-63 63H232a63 63 0 01-63-63c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 76.8 62.2 139 139 139v100H84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h148v96c0 6.5.2 13 .7 19.3C164.1 728.6 116 796.7 116 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-44.2 23.9-82.9 59.6-103.7a273 273 0 0022.7 49c24.3 41.5 59 76.2 100.5 100.5S460.5 960 512 960s99.8-13.9 141.3-38.2a281.38 281.38 0 00123.2-149.5A120 120 0 01836 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-79.3-48.1-147.4-116.7-176.7.4-6.4.7-12.8.7-19.3v-96h148c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM716 680c0 36.8-9.7 72-27.8 102.9-17.7 30.3-43 55.6-73.3 73.3C584 874.3 548.8 884 512 884s-72-9.7-102.9-27.8c-30.3-17.7-55.6-43-73.3-73.3A202.75 202.75 0 01308 680V412h408v268z"}}]},name:"bug",theme:"outlined"},RSe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:OSe}))},jFe=s.forwardRef(RSe),ISe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"},MSe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:ISe}))},DFe=s.forwardRef(MSe),TSe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"},NSe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:TSe}))},FFe=s.forwardRef(NSe),_Se={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"},jSe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:_Se}))},kFe=s.forwardRef(jSe),DSe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M704 446H320c-4.4 0-8 3.6-8 8v402c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8V454c0-4.4-3.6-8-8-8zm-328 64h272v117H376V510zm272 290H376V683h272v117z"}},{tag:"path",attrs:{d:"M424 748a32 32 0 1064 0 32 32 0 10-64 0zm0-178a32 32 0 1064 0 32 32 0 10-64 0z"}},{tag:"path",attrs:{d:"M811.4 368.9C765.6 248 648.9 162 512.2 162S258.8 247.9 213 368.8C126.9 391.5 63.5 470.2 64 563.6 64.6 668 145.6 752.9 247.6 762c4.7.4 8.7-3.3 8.7-8v-60.4c0-4-3-7.4-7-7.9-27-3.4-52.5-15.2-72.1-34.5-24-23.5-37.2-55.1-37.2-88.6 0-28 9.1-54.4 26.2-76.4 16.7-21.4 40.2-36.9 66.1-43.7l37.9-10 13.9-36.7c8.6-22.8 20.6-44.2 35.7-63.5 14.9-19.2 32.6-36 52.4-50 41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.3c19.9 14 37.5 30.8 52.4 50 15.1 19.3 27.1 40.7 35.7 63.5l13.8 36.6 37.8 10c54.2 14.4 92.1 63.7 92.1 120 0 33.6-13.2 65.1-37.2 88.6-19.5 19.2-44.9 31.1-71.9 34.5-4 .5-6.9 3.9-6.9 7.9V754c0 4.7 4.1 8.4 8.8 8 101.7-9.2 182.5-94 183.2-198.2.6-93.4-62.7-172.1-148.6-194.9z"}}]},name:"cloud-server",theme:"outlined"},FSe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:DSe}))},LFe=s.forwardRef(FSe),kSe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 680h-54V540H546v-92h238c8.8 0 16-7.2 16-16V168c0-8.8-7.2-16-16-16H240c-8.8 0-16 7.2-16 16v264c0 8.8 7.2 16 16 16h238v92H190v140h-54c-4.4 0-8 3.6-8 8v176c0 4.4 3.6 8 8 8h176c4.4 0 8-3.6 8-8V688c0-4.4-3.6-8-8-8h-54v-72h220v72h-54c-4.4 0-8 3.6-8 8v176c0 4.4 3.6 8 8 8h176c4.4 0 8-3.6 8-8V688c0-4.4-3.6-8-8-8h-54v-72h220v72h-54c-4.4 0-8 3.6-8 8v176c0 4.4 3.6 8 8 8h176c4.4 0 8-3.6 8-8V688c0-4.4-3.6-8-8-8zM256 805.3c0 1.5-1.2 2.7-2.7 2.7h-58.7c-1.5 0-2.7-1.2-2.7-2.7v-58.7c0-1.5 1.2-2.7 2.7-2.7h58.7c1.5 0 2.7 1.2 2.7 2.7v58.7zm288 0c0 1.5-1.2 2.7-2.7 2.7h-58.7c-1.5 0-2.7-1.2-2.7-2.7v-58.7c0-1.5 1.2-2.7 2.7-2.7h58.7c1.5 0 2.7 1.2 2.7 2.7v58.7zM288 384V216h448v168H288zm544 421.3c0 1.5-1.2 2.7-2.7 2.7h-58.7c-1.5 0-2.7-1.2-2.7-2.7v-58.7c0-1.5 1.2-2.7 2.7-2.7h58.7c1.5 0 2.7 1.2 2.7 2.7v58.7zM360 300a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"cluster",theme:"outlined"},LSe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:kSe}))},zFe=s.forwardRef(LSe),zSe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48zm-194.9 6.1l192-161c3.8-3.2 3.8-9.1 0-12.3l-192-160.9A7.95 7.95 0 00308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 00-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"code",theme:"outlined"},ASe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:zSe}))},AFe=s.forwardRef(ASe),BSe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M275 281c19.9 0 36-16.1 36-36V36c0-19.9-16.1-36-36-36s-36 16.1-36 36v209c0 19.9 16.1 36 36 36zm613 144H768c0-39.8-32.2-72-72-72H200c-39.8 0-72 32.2-72 72v248c0 3.4.2 6.7.7 9.9-.5 7-.7 14-.7 21.1 0 176.7 143.3 320 320 320 160.1 0 292.7-117.5 316.3-271H888c39.8 0 72-32.2 72-72V497c0-39.8-32.2-72-72-72zM696 681h-1.1c.7 7.6 1.1 15.2 1.1 23 0 137-111 248-248 248S200 841 200 704c0-7.8.4-15.4 1.1-23H200V425h496v256zm192-8H776V497h112v176zM613 281c19.9 0 36-16.1 36-36V36c0-19.9-16.1-36-36-36s-36 16.1-36 36v209c0 19.9 16.1 36 36 36zm-170 0c19.9 0 36-16.1 36-36V36c0-19.9-16.1-36-36-36s-36 16.1-36 36v209c0 19.9 16.1 36 36 36z"}}]},name:"coffee",theme:"outlined"},HSe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:BSe}))},BFe=s.forwardRef(HSe),VSe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M840 836H184c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h656c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm0-724H184c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h656c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zM610.8 378c6 0 9.4-7 5.7-11.7L515.7 238.7a7.14 7.14 0 00-11.3 0L403.6 366.3a7.23 7.23 0 005.7 11.7H476v268h-62.8c-6 0-9.4 7-5.7 11.7l100.8 127.5c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H548V378h62.8z"}}]},name:"column-height",theme:"outlined"},WSe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:VSe}))},KSe=s.forwardRef(WSe),qSe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656zM340 683v77c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-77c-10.1 3.3-20.8 5-32 5s-21.9-1.8-32-5zm64-198V264c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v221c10.1-3.3 20.8-5 32-5s21.9 1.8 32 5zm-64 198c10.1 3.3 20.8 5 32 5s21.9-1.8 32-5c41.8-13.5 72-52.7 72-99s-30.2-85.5-72-99c-10.1-3.3-20.8-5-32-5s-21.9 1.8-32 5c-41.8 13.5-72 52.7-72 99s30.2 85.5 72 99zm.1-115.7c.3-.6.7-1.2 1-1.8v-.1l1.2-1.8c.1-.2.2-.3.3-.5.3-.5.7-.9 1-1.4.1-.1.2-.3.3-.4.5-.6.9-1.1 1.4-1.6l.3-.3 1.2-1.2.4-.4c.5-.5 1-.9 1.6-1.4.6-.5 1.1-.9 1.7-1.3.2-.1.3-.2.5-.3.5-.3.9-.7 1.4-1 .1-.1.3-.2.4-.3.6-.4 1.2-.7 1.9-1.1.1-.1.3-.1.4-.2.5-.3 1-.5 1.6-.8l.6-.3c.7-.3 1.3-.6 2-.8.7-.3 1.4-.5 2.1-.7.2-.1.4-.1.6-.2.6-.2 1.1-.3 1.7-.4.2 0 .3-.1.5-.1.7-.2 1.5-.3 2.2-.4.2 0 .3 0 .5-.1.6-.1 1.2-.1 1.8-.2h.6c.8 0 1.5-.1 2.3-.1s1.5 0 2.3.1h.6c.6 0 1.2.1 1.8.2.2 0 .3 0 .5.1.7.1 1.5.2 2.2.4.2 0 .3.1.5.1.6.1 1.2.3 1.7.4.2.1.4.1.6.2.7.2 1.4.4 2.1.7.7.2 1.3.5 2 .8l.6.3c.5.2 1.1.5 1.6.8.1.1.3.1.4.2.6.3 1.3.7 1.9 1.1.1.1.3.2.4.3.5.3 1 .6 1.4 1 .2.1.3.2.5.3.6.4 1.2.9 1.7 1.3s1.1.9 1.6 1.4l.4.4 1.2 1.2.3.3c.5.5 1 1.1 1.4 1.6.1.1.2.3.3.4.4.4.7.9 1 1.4.1.2.2.3.3.5l1.2 1.8s0 .1.1.1a36.18 36.18 0 015.1 18.5c0 6-1.5 11.7-4.1 16.7-.3.6-.7 1.2-1 1.8 0 0 0 .1-.1.1l-1.2 1.8c-.1.2-.2.3-.3.5-.3.5-.7.9-1 1.4-.1.1-.2.3-.3.4-.5.6-.9 1.1-1.4 1.6l-.3.3-1.2 1.2-.4.4c-.5.5-1 .9-1.6 1.4-.6.5-1.1.9-1.7 1.3-.2.1-.3.2-.5.3-.5.3-.9.7-1.4 1-.1.1-.3.2-.4.3-.6.4-1.2.7-1.9 1.1-.1.1-.3.1-.4.2-.5.3-1 .5-1.6.8l-.6.3c-.7.3-1.3.6-2 .8-.7.3-1.4.5-2.1.7-.2.1-.4.1-.6.2-.6.2-1.1.3-1.7.4-.2 0-.3.1-.5.1-.7.2-1.5.3-2.2.4-.2 0-.3 0-.5.1-.6.1-1.2.1-1.8.2h-.6c-.8 0-1.5.1-2.3.1s-1.5 0-2.3-.1h-.6c-.6 0-1.2-.1-1.8-.2-.2 0-.3 0-.5-.1-.7-.1-1.5-.2-2.2-.4-.2 0-.3-.1-.5-.1-.6-.1-1.2-.3-1.7-.4-.2-.1-.4-.1-.6-.2-.7-.2-1.4-.4-2.1-.7-.7-.2-1.3-.5-2-.8l-.6-.3c-.5-.2-1.1-.5-1.6-.8-.1-.1-.3-.1-.4-.2-.6-.3-1.3-.7-1.9-1.1-.1-.1-.3-.2-.4-.3-.5-.3-1-.6-1.4-1-.2-.1-.3-.2-.5-.3-.6-.4-1.2-.9-1.7-1.3s-1.1-.9-1.6-1.4l-.4-.4-1.2-1.2-.3-.3c-.5-.5-1-1.1-1.4-1.6-.1-.1-.2-.3-.3-.4-.4-.4-.7-.9-1-1.4-.1-.2-.2-.3-.3-.5l-1.2-1.8v-.1c-.4-.6-.7-1.2-1-1.8-2.6-5-4.1-10.7-4.1-16.7s1.5-11.7 4.1-16.7zM620 539v221c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V539c-10.1 3.3-20.8 5-32 5s-21.9-1.8-32-5zm64-198v-77c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v77c10.1-3.3 20.8-5 32-5s21.9 1.8 32 5zm-64 198c10.1 3.3 20.8 5 32 5s21.9-1.8 32-5c41.8-13.5 72-52.7 72-99s-30.2-85.5-72-99c-10.1-3.3-20.8-5-32-5s-21.9 1.8-32 5c-41.8 13.5-72 52.7-72 99s30.2 85.5 72 99zm.1-115.7c.3-.6.7-1.2 1-1.8v-.1l1.2-1.8c.1-.2.2-.3.3-.5.3-.5.7-.9 1-1.4.1-.1.2-.3.3-.4.5-.6.9-1.1 1.4-1.6l.3-.3 1.2-1.2.4-.4c.5-.5 1-.9 1.6-1.4.6-.5 1.1-.9 1.7-1.3.2-.1.3-.2.5-.3.5-.3.9-.7 1.4-1 .1-.1.3-.2.4-.3.6-.4 1.2-.7 1.9-1.1.1-.1.3-.1.4-.2.5-.3 1-.5 1.6-.8l.6-.3c.7-.3 1.3-.6 2-.8.7-.3 1.4-.5 2.1-.7.2-.1.4-.1.6-.2.6-.2 1.1-.3 1.7-.4.2 0 .3-.1.5-.1.7-.2 1.5-.3 2.2-.4.2 0 .3 0 .5-.1.6-.1 1.2-.1 1.8-.2h.6c.8 0 1.5-.1 2.3-.1s1.5 0 2.3.1h.6c.6 0 1.2.1 1.8.2.2 0 .3 0 .5.1.7.1 1.5.2 2.2.4.2 0 .3.1.5.1.6.1 1.2.3 1.7.4.2.1.4.1.6.2.7.2 1.4.4 2.1.7.7.2 1.3.5 2 .8l.6.3c.5.2 1.1.5 1.6.8.1.1.3.1.4.2.6.3 1.3.7 1.9 1.1.1.1.3.2.4.3.5.3 1 .6 1.4 1 .2.1.3.2.5.3.6.4 1.2.9 1.7 1.3s1.1.9 1.6 1.4l.4.4 1.2 1.2.3.3c.5.5 1 1.1 1.4 1.6.1.1.2.3.3.4.4.4.7.9 1 1.4.1.2.2.3.3.5l1.2 1.8v.1a36.18 36.18 0 015.1 18.5c0 6-1.5 11.7-4.1 16.7-.3.6-.7 1.2-1 1.8v.1l-1.2 1.8c-.1.2-.2.3-.3.5-.3.5-.7.9-1 1.4-.1.1-.2.3-.3.4-.5.6-.9 1.1-1.4 1.6l-.3.3-1.2 1.2-.4.4c-.5.5-1 .9-1.6 1.4-.6.5-1.1.9-1.7 1.3-.2.1-.3.2-.5.3-.5.3-.9.7-1.4 1-.1.1-.3.2-.4.3-.6.4-1.2.7-1.9 1.1-.1.1-.3.1-.4.2-.5.3-1 .5-1.6.8l-.6.3c-.7.3-1.3.6-2 .8-.7.3-1.4.5-2.1.7-.2.1-.4.1-.6.2-.6.2-1.1.3-1.7.4-.2 0-.3.1-.5.1-.7.2-1.5.3-2.2.4-.2 0-.3 0-.5.1-.6.1-1.2.1-1.8.2h-.6c-.8 0-1.5.1-2.3.1s-1.5 0-2.3-.1h-.6c-.6 0-1.2-.1-1.8-.2-.2 0-.3 0-.5-.1-.7-.1-1.5-.2-2.2-.4-.2 0-.3-.1-.5-.1-.6-.1-1.2-.3-1.7-.4-.2-.1-.4-.1-.6-.2-.7-.2-1.4-.4-2.1-.7-.7-.2-1.3-.5-2-.8l-.6-.3c-.5-.2-1.1-.5-1.6-.8-.1-.1-.3-.1-.4-.2-.6-.3-1.3-.7-1.9-1.1-.1-.1-.3-.2-.4-.3-.5-.3-1-.6-1.4-1-.2-.1-.3-.2-.5-.3-.6-.4-1.2-.9-1.7-1.3s-1.1-.9-1.6-1.4l-.4-.4-1.2-1.2-.3-.3c-.5-.5-1-1.1-1.4-1.6-.1-.1-.2-.3-.3-.4-.4-.4-.7-.9-1-1.4-.1-.2-.2-.3-.3-.5l-1.2-1.8v-.1c-.4-.6-.7-1.2-1-1.8-2.6-5-4.1-10.7-4.1-16.7s1.5-11.7 4.1-16.7z"}}]},name:"control",theme:"outlined"},USe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:qSe}))},HFe=s.forwardRef(USe),GSe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 385.6a446.7 446.7 0 00-96-142.4 446.7 446.7 0 00-142.4-96C631.1 123.8 572.5 112 512 112s-119.1 11.8-174.4 35.2a446.7 446.7 0 00-142.4 96 446.7 446.7 0 00-96 142.4C75.8 440.9 64 499.5 64 560c0 132.7 58.3 257.7 159.9 343.1l1.7 1.4c5.8 4.8 13.1 7.5 20.6 7.5h531.7c7.5 0 14.8-2.7 20.6-7.5l1.7-1.4C901.7 817.7 960 692.7 960 560c0-60.5-11.9-119.1-35.2-174.4zM761.4 836H262.6A371.12 371.12 0 01140 560c0-99.4 38.7-192.8 109-263 70.3-70.3 163.7-109 263-109 99.4 0 192.8 38.7 263 109 70.3 70.3 109 163.7 109 263 0 105.6-44.5 205.5-122.6 276zM623.5 421.5a8.03 8.03 0 00-11.3 0L527.7 506c-18.7-5-39.4-.2-54.1 14.5a55.95 55.95 0 000 79.2 55.95 55.95 0 0079.2 0 55.87 55.87 0 0014.5-54.1l84.5-84.5c3.1-3.1 3.1-8.2 0-11.3l-28.3-28.3zM490 320h44c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8h-44c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8zm260 218v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8zm12.7-197.2l-31.1-31.1a8.03 8.03 0 00-11.3 0l-56.6 56.6a8.03 8.03 0 000 11.3l31.1 31.1c3.1 3.1 8.2 3.1 11.3 0l56.6-56.6c3.1-3.1 3.1-8.2 0-11.3zm-458.6-31.1a8.03 8.03 0 00-11.3 0l-31.1 31.1a8.03 8.03 0 000 11.3l56.6 56.6c3.1 3.1 8.2 3.1 11.3 0l31.1-31.1c3.1-3.1 3.1-8.2 0-11.3l-56.6-56.6zM262 530h-80c-4.4 0-8 3.6-8 8v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8z"}}]},name:"dashboard",theme:"outlined"},XSe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:GSe}))},VFe=s.forwardRef(XSe),YSe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM304 240a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"database",theme:"outlined"},QSe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:YSe}))},WFe=s.forwardRef(QSe),ZSe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 140H96c-17.7 0-32 14.3-32 32v496c0 17.7 14.3 32 32 32h380v112H304c-8.8 0-16 7.2-16 16v48c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-48c0-8.8-7.2-16-16-16H548V700h380c17.7 0 32-14.3 32-32V172c0-17.7-14.3-32-32-32zm-40 488H136V212h752v416z"}}]},name:"desktop",theme:"outlined"},JSe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:ZSe}))},KFe=s.forwardRef(JSe),exe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832.6 191.4c-84.6-84.6-221.5-84.6-306 0l-96.9 96.9 51 51 96.9-96.9c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204l-96.9 96.9 51.1 51.1 96.9-96.9c84.4-84.6 84.4-221.5-.1-306.1zM446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l96.9-96.9-51.1-51.1-96.9 96.9c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l96.9-96.9-51-51-96.8 97zM260.3 209.4a8.03 8.03 0 00-11.3 0L209.4 249a8.03 8.03 0 000 11.3l554.4 554.4c3.1 3.1 8.2 3.1 11.3 0l39.6-39.6c3.1-3.1 3.1-8.2 0-11.3L260.3 209.4z"}}]},name:"disconnect",theme:"outlined"},txe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:exe}))},qFe=s.forwardRef(txe),nxe={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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},rxe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:nxe}))},UFe=s.forwardRef(rxe),axe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M342 88H120c-17.7 0-32 14.3-32 32v224c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V168h174c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16zm578 576h-48c-8.8 0-16 7.2-16 16v176H682c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h222c17.7 0 32-14.3 32-32V680c0-8.8-7.2-16-16-16zM342 856H168V680c0-8.8-7.2-16-16-16h-48c-8.8 0-16 7.2-16 16v224c0 17.7 14.3 32 32 32h222c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16zM904 88H682c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h174v176c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V120c0-17.7-14.3-32-32-32z"}}]},name:"expand",theme:"outlined"},oxe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:axe}))},GFe=s.forwardRef(oxe),ixe={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M81.8 537.8a60.3 60.3 0 010-51.5C176.6 286.5 319.8 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 838c-192.1 0-335.4-100.5-430.2-300.2z",fill:n}},{tag:"path",attrs:{d:"M512 258c-161.3 0-279.4 81.8-362.7 254C232.6 684.2 350.7 766 512 766c161.4 0 279.5-81.8 362.7-254C791.4 339.8 673.3 258 512 258zm-4 430c-97.2 0-176-78.8-176-176s78.8-176 176-176 176 78.8 176 176-78.8 176-176 176z",fill:n}},{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 258s279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766z",fill:t}},{tag:"path",attrs:{d:"M508 336c-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",fill:t}}]}},name:"eye",theme:"twotone"},lxe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:ixe}))},XFe=s.forwardRef(lxe),sxe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm144 452H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm445.7 51.5l-93.3-93.3C814.7 780.7 828 743.9 828 704c0-97.2-78.8-176-176-176s-176 78.8-176 176 78.8 176 176 176c35.8 0 69-10.7 96.8-29l94.7 94.7c1.6 1.6 3.6 2.3 5.6 2.3s4.1-.8 5.6-2.3l31-31a7.9 7.9 0 000-11.2zM652 816c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"file-search",theme:"outlined"},cxe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:sxe}))},YFe=s.forwardRef(cxe),uxe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z"}}]},name:"filter",theme:"outlined"},dxe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:uxe}))},fxe=s.forwardRef(dxe),vxe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M752 100c-61.8 0-112 50.2-112 112 0 47.7 29.9 88.5 72 104.6v27.6L512 601.4 312 344.2v-27.6c42.1-16.1 72-56.9 72-104.6 0-61.8-50.2-112-112-112s-112 50.2-112 112c0 50.6 33.8 93.5 80 107.3v34.4c0 9.7 3.3 19.3 9.3 27L476 672.3v33.6c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c0-49.2-31.8-91-76-106.1v-33.6l226.7-291.6c6-7.7 9.3-17.3 9.3-27v-34.4c46.2-13.8 80-56.7 80-107.3 0-61.8-50.2-112-112-112zM224 212a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm336 600a48.01 48.01 0 01-96 0 48.01 48.01 0 0196 0zm192-552a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"fork",theme:"outlined"},mxe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:vxe}))},QFe=s.forwardRef(mxe),gxe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z"}}]},name:"form",theme:"outlined"},pxe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:gxe}))},ZFe=s.forwardRef(pxe),hxe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M391 240.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L200 146.3a8.03 8.03 0 00-11.3 0l-42.4 42.3a8.03 8.03 0 000 11.3L280 333.6l-43.9 43.9a8.01 8.01 0 004.7 13.6L401 410c5.1.6 9.5-3.7 8.9-8.9L391 240.9zm10.1 373.2L240.8 633c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L146.3 824a8.03 8.03 0 000 11.3l42.4 42.3c3.1 3.1 8.2 3.1 11.3 0L333.7 744l43.7 43.7A8.01 8.01 0 00391 783l18.9-160.1c.6-5.1-3.7-9.4-8.8-8.8zm221.8-204.2L783.2 391c6.6-.8 9.4-8.9 4.7-13.6L744 333.6 877.7 200c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.3a8.03 8.03 0 00-11.3 0L690.3 279.9l-43.7-43.7a8.01 8.01 0 00-13.6 4.7L614.1 401c-.6 5.2 3.7 9.5 8.8 8.9zM744 690.4l43.9-43.9a8.01 8.01 0 00-4.7-13.6L623 614c-5.1-.6-9.5 3.7-8.9 8.9L633 783.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L824 877.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L744 690.4z"}}]},name:"fullscreen-exit",theme:"outlined"},bxe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:hxe}))},yxe=s.forwardRef(bxe),Cxe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M290 236.4l43.9-43.9a8.01 8.01 0 00-4.7-13.6L169 160c-5.1-.6-9.5 3.7-8.9 8.9L179 329.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L370 423.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L290 236.4zm352.7 187.3c3.1 3.1 8.2 3.1 11.3 0l133.7-133.6 43.7 43.7a8.01 8.01 0 0013.6-4.7L863.9 169c.6-5.1-3.7-9.5-8.9-8.9L694.8 179c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L600.3 370a8.03 8.03 0 000 11.3l42.4 42.4zM845 694.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L654 600.3a8.03 8.03 0 00-11.3 0l-42.4 42.3a8.03 8.03 0 000 11.3L734 787.6l-43.9 43.9a8.01 8.01 0 004.7 13.6L855 864c5.1.6 9.5-3.7 8.9-8.9L845 694.9zm-463.7-94.6a8.03 8.03 0 00-11.3 0L236.3 733.9l-43.7-43.7a8.01 8.01 0 00-13.6 4.7L160.1 855c-.6 5.1 3.7 9.5 8.9 8.9L329.2 845c6.6-.8 9.4-8.9 4.7-13.6L290 787.6 423.7 654c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.4z"}}]},name:"fullscreen",theme:"outlined"},Sxe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:Cxe}))},xxe=s.forwardRef(Sxe),wxe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"},$xe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:wxe}))},JFe=s.forwardRef($xe),Exe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM496 208H312c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 544h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H312c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm328 244a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"hdd",theme:"outlined"},Pxe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:Exe}))},eke=s.forwardRef(Pxe),Oxe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136V232h752v560zM610.3 476h123.4c1.3 0 2.3-3.6 2.3-8v-48c0-4.4-1-8-2.3-8H610.3c-1.3 0-2.3 3.6-2.3 8v48c0 4.4 1 8 2.3 8zm4.8 144h185.7c3.9 0 7.1-3.6 7.1-8v-48c0-4.4-3.2-8-7.1-8H615.1c-3.9 0-7.1 3.6-7.1 8v48c0 4.4 3.2 8 7.1 8zM224 673h43.9c4.2 0 7.6-3.3 7.9-7.5 3.8-50.5 46-90.5 97.2-90.5s93.4 40 97.2 90.5c.3 4.2 3.7 7.5 7.9 7.5H522a8 8 0 008-8.4c-2.8-53.3-32-99.7-74.6-126.1a111.8 111.8 0 0029.1-75.5c0-61.9-49.9-112-111.4-112s-111.4 50.1-111.4 112c0 29.1 11 55.5 29.1 75.5a158.09 158.09 0 00-74.6 126.1c-.4 4.6 3.2 8.4 7.8 8.4zm149-262c28.5 0 51.7 23.3 51.7 52s-23.2 52-51.7 52-51.7-23.3-51.7-52 23.2-52 51.7-52z"}}]},name:"idcard",theme:"outlined"},Rxe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:Oxe}))},tke=s.forwardRef(Rxe),Ixe={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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},Mxe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:Ixe}))},Txe=s.forwardRef(Mxe),Nxe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M441.6 306.8L403 288.6a6.1 6.1 0 00-8.4 3.7c-17.5 58.5-45.2 110.1-82.2 153.6a6.05 6.05 0 00-1.2 5.6l13.2 43.5c1.3 4.4 7 5.7 10.2 2.4 7.7-8.1 15.4-16.9 23.1-26V656c0 4.4 3.6 8 8 8H403c4.4 0 8-3.6 8-8V393.1a429.2 429.2 0 0033.6-79c1-2.9-.3-6-3-7.3zm26.8 9.2v127.2c0 4.4 3.6 8 8 8h65.9v18.6h-94.9c-4.4 0-8 3.6-8 8v35.6c0 4.4 3.6 8 8 8h55.1c-19.1 30.8-42.4 55.7-71 76a6 6 0 00-1.6 8.1l22.8 36.5c1.9 3.1 6.2 3.8 8.9 1.4 31.6-26.8 58.7-62.9 80.6-107.6v120c0 4.4 3.6 8 8 8h36.2c4.4 0 8-3.6 8-8V536c21.3 41.7 47.5 77.5 78.1 106.9 2.6 2.5 6.8 2.1 8.9-.7l26.3-35.3c2-2.7 1.4-6.5-1.2-8.4-30.5-22.6-54.2-47.8-72.3-76.9h59c4.4 0 8-3.6 8-8V478c0-4.4-3.6-8-8-8h-98.8v-18.6h66.7c4.4 0 8-3.6 8-8V316c0-4.4-3.6-8-8-8H476.4c-4.4 0-8 3.6-8 8zm51.5 42.8h97.9v41.6h-97.9v-41.6zm347-188.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6z"}}]},name:"insurance",theme:"outlined"},_xe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:Nxe}))},nke=s.forwardRef(_xe),jxe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M608 112c-167.9 0-304 136.1-304 304 0 70.3 23.9 135 63.9 186.5l-41.1 41.1-62.3-62.3a8.15 8.15 0 00-11.4 0l-39.8 39.8a8.15 8.15 0 000 11.4l62.3 62.3-44.9 44.9-62.3-62.3a8.15 8.15 0 00-11.4 0l-39.8 39.8a8.15 8.15 0 000 11.4l62.3 62.3-65.3 65.3a8.03 8.03 0 000 11.3l42.3 42.3c3.1 3.1 8.2 3.1 11.3 0l253.6-253.6A304.06 304.06 0 00608 720c167.9 0 304-136.1 304-304S775.9 112 608 112zm161.2 465.2C726.2 620.3 668.9 644 608 644c-60.9 0-118.2-23.7-161.2-66.8-43.1-43-66.8-100.3-66.8-161.2 0-60.9 23.7-118.2 66.8-161.2 43-43.1 100.3-66.8 161.2-66.8 60.9 0 118.2 23.7 161.2 66.8 43.1 43 66.8 100.3 66.8 161.2 0 60.9-23.7 118.2-66.8 161.2z"}}]},name:"key",theme:"outlined"},Dxe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:jxe}))},rke=s.forwardRef(Dxe),Fxe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M574 665.4a8.03 8.03 0 00-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 00-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 000 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 000 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 00-11.3 0L372.3 598.7a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z"}}]},name:"link",theme:"outlined"},kxe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:Fxe}))},ake=s.forwardRef(kxe),Lxe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"},zxe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:Lxe}))},oke=s.forwardRef(zxe),Axe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M521.7 82c-152.5-.4-286.7 78.5-363.4 197.7-3.4 5.3.4 12.3 6.7 12.3h70.3c4.8 0 9.3-2.1 12.3-5.8 7-8.5 14.5-16.7 22.4-24.5 32.6-32.5 70.5-58.1 112.7-75.9 43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 32.6 32.5 58.1 70.4 76 112.5C865.7 417.8 875 464.1 875 512c0 47.9-9.4 94.2-27.8 137.8-17.8 42.1-43.4 80-76 112.5s-70.5 58.1-112.7 75.9A352.8 352.8 0 01520.6 866c-47.9 0-94.3-9.4-137.9-27.8A353.84 353.84 0 01270 762.3c-7.9-7.9-15.3-16.1-22.4-24.5-3-3.7-7.6-5.8-12.3-5.8H165c-6.3 0-10.2 7-6.7 12.3C234.9 863.2 368.5 942 520.6 942c236.2 0 428-190.1 430.4-425.6C953.4 277.1 761.3 82.6 521.7 82zM395.02 624v-76h-314c-4.4 0-8-3.6-8-8v-56c0-4.4 3.6-8 8-8h314v-76c0-6.7 7.8-10.5 13-6.3l141.9 112a8 8 0 010 12.6l-141.9 112c-5.2 4.1-13 .4-13-6.3z"}}]},name:"login",theme:"outlined"},Bxe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:Axe}))},ike=s.forwardRef(Bxe),Hxe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"},Vxe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:Hxe}))},lke=s.forwardRef(Vxe),Wxe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},Kxe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:Wxe}))},ske=s.forwardRef(Kxe),qxe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M744 62H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V126c0-35.3-28.7-64-64-64zm-8 824H288V134h448v752zM472 784a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"mobile",theme:"outlined"},Uxe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:qxe}))},cke=s.forwardRef(Uxe),Gxe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M692.8 412.7l.2-.2-34.6-44.3a7.97 7.97 0 00-11.2-1.4l-50.4 39.3-70.5-90.1a7.97 7.97 0 00-11.2-1.4l-37.9 29.7a7.97 7.97 0 00-1.4 11.2l70.5 90.2-.2.1 34.6 44.3c2.7 3.5 7.7 4.1 11.2 1.4l50.4-39.3 64.1 82c2.7 3.5 7.7 4.1 11.2 1.4l37.9-29.6c3.5-2.7 4.1-7.7 1.4-11.2l-64.1-82.1zM608 112c-167.9 0-304 136.1-304 304 0 70.3 23.9 135 63.9 186.5L114.3 856.1a8.03 8.03 0 000 11.3l42.3 42.3c3.1 3.1 8.2 3.1 11.3 0l253.6-253.6C473 696.1 537.7 720 608 720c167.9 0 304-136.1 304-304S775.9 112 608 112zm161.2 465.2C726.2 620.3 668.9 644 608 644s-118.2-23.7-161.2-66.8C403.7 534.2 380 476.9 380 416s23.7-118.2 66.8-161.2c43-43.1 100.3-66.8 161.2-66.8s118.2 23.7 161.2 66.8c43.1 43 66.8 100.3 66.8 161.2s-23.7 118.2-66.8 161.2z"}}]},name:"monitor",theme:"outlined"},Xxe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:Gxe}))},uke=s.forwardRef(Xxe),Yxe={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M489.5 111.66c30.65-1.8 45.98 36.44 22.58 56.33A243.35 243.35 0 00426 354c0 134.76 109.24 244 244 244 72.58 0 139.9-31.83 186.01-86.08 19.87-23.38 58.07-8.1 56.34 22.53C900.4 745.82 725.15 912 512.5 912 291.31 912 112 732.69 112 511.5c0-211.39 164.29-386.02 374.2-399.65l.2-.01zm-81.15 79.75l-4.11 1.36C271.1 237.94 176 364.09 176 511.5 176 697.34 326.66 848 512.5 848c148.28 0 274.94-96.2 319.45-230.41l.63-1.93-.11.07a307.06 307.06 0 01-159.73 46.26L670 662c-170.1 0-308-137.9-308-308 0-58.6 16.48-114.54 46.27-162.47z"}}]},name:"moon",theme:"outlined"},Qxe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:Yxe}))},dke=s.forwardRef(Qxe),Zxe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M304 176h80v672h-80zm408 0h-64c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8z"}}]},name:"pause",theme:"outlined"},Jxe=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:Zxe}))},fke=s.forwardRef(Jxe),e2e={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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M719.4 499.1l-296.1-215A15.9 15.9 0 00398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 000-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z"}}]},name:"play-circle",theme:"outlined"},t2e=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:e2e}))},vke=s.forwardRef(t2e),n2e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M468 128H160c-17.7 0-32 14.3-32 32v308c0 4.4 3.6 8 8 8h332c4.4 0 8-3.6 8-8V136c0-4.4-3.6-8-8-8zm-56 284H192V192h220v220zm-138-74h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm194 210H136c-4.4 0-8 3.6-8 8v308c0 17.7 14.3 32 32 32h308c4.4 0 8-3.6 8-8V556c0-4.4-3.6-8-8-8zm-56 284H192V612h220v220zm-138-74h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm590-630H556c-4.4 0-8 3.6-8 8v332c0 4.4 3.6 8 8 8h332c4.4 0 8-3.6 8-8V160c0-17.7-14.3-32-32-32zm-32 284H612V192h220v220zm-138-74h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm194 210h-48c-4.4 0-8 3.6-8 8v134h-78V556c0-4.4-3.6-8-8-8H556c-4.4 0-8 3.6-8 8v332c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V644h78v102c0 4.4 3.6 8 8 8h190c4.4 0 8-3.6 8-8V556c0-4.4-3.6-8-8-8zM746 832h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm142 0h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}}]},name:"qrcode",theme:"outlined"},r2e=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:n2e}))},mke=s.forwardRef(r2e),a2e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6zm-405.8-201c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0026 0l212.6-292.7c3.8-5.3 0-12.7-6.5-12.7h-55.2c-5.1 0-10 2.5-13 6.6L468.9 542.4l-64.7-89.1z"}}]},name:"safety-certificate",theme:"outlined"},o2e=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:a2e}))},gke=s.forwardRef(o2e),i2e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64L128 192v384c0 212.1 171.9 384 384 384s384-171.9 384-384V192L512 64zm312 512c0 172.3-139.7 312-312 312S200 748.3 200 576V246l312-110 312 110v330z"}},{tag:"path",attrs:{d:"M378.4 475.1a35.91 35.91 0 00-50.9 0 35.91 35.91 0 000 50.9l129.4 129.4 2.1 2.1a33.98 33.98 0 0048.1 0L730.6 434a33.98 33.98 0 000-48.1l-2.8-2.8a33.98 33.98 0 00-48.1 0L483 579.7 378.4 475.1z"}}]},name:"safety",theme:"outlined"},l2e=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:i2e}))},pke=s.forwardRef(l2e),s2e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},c2e=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:s2e}))},u2e=s.forwardRef(c2e),d2e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M752 664c-28.5 0-54.8 10-75.4 26.7L469.4 540.8a160.68 160.68 0 000-57.6l207.2-149.9C697.2 350 723.5 360 752 360c66.2 0 120-53.8 120-120s-53.8-120-120-120-120 53.8-120 120c0 11.6 1.6 22.7 4.7 33.3L439.9 415.8C410.7 377.1 364.3 352 312 352c-88.4 0-160 71.6-160 160s71.6 160 160 160c52.3 0 98.7-25.1 127.9-63.8l196.8 142.5c-3.1 10.6-4.7 21.8-4.7 33.3 0 66.2 53.8 120 120 120s120-53.8 120-120-53.8-120-120-120zm0-476c28.7 0 52 23.3 52 52s-23.3 52-52 52-52-23.3-52-52 23.3-52 52-52zM312 600c-48.5 0-88-39.5-88-88s39.5-88 88-88 88 39.5 88 88-39.5 88-88 88zm440 236c-28.7 0-52-23.3-52-52s23.3-52 52-52 52 23.3 52 52-23.3 52-52 52z"}}]},name:"share-alt",theme:"outlined"},f2e=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:d2e}))},hke=s.forwardRef(f2e),v2e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 264c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48zm-8 136H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM480 544H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 308H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm356.8-74.4c29-26.3 47.2-64.3 47.2-106.6 0-79.5-64.5-144-144-144s-144 64.5-144 144c0 42.3 18.2 80.3 47.2 106.6-57 32.5-96.2 92.7-99.2 162.1-.2 4.5 3.5 8.3 8 8.3h48.1c4.2 0 7.7-3.3 8-7.6C564 871.2 621.7 816 692 816s128 55.2 131.9 124.4c.2 4.2 3.7 7.6 8 7.6H880c4.6 0 8.2-3.8 8-8.3-2.9-69.5-42.2-129.6-99.2-162.1zM692 591c44.2 0 80 35.8 80 80s-35.8 80-80 80-80-35.8-80-80 35.8-80 80-80z"}}]},name:"solution",theme:"outlined"},m2e=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:v2e}))},bke=s.forwardRef(m2e),g2e={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 64zm0 820c-205.4 0-372-166.6-372-372 0-89 31.3-170.8 83.5-234.8l523.3 523.3C682.8 852.7 601 884 512 884zm288.5-137.2L277.2 223.5C341.2 171.3 423 140 512 140c205.4 0 372 166.6 372 372 0 89-31.3 170.8-83.5 234.8z"}}]},name:"stop",theme:"outlined"},p2e=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:g2e}))},yke=s.forwardRef(p2e),h2e={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M548 818v126a16 16 0 01-16 16h-40a16 16 0 01-16-16V818c15.85 1.64 27.84 2.46 36 2.46 8.15 0 20.16-.82 36-2.46m205.25-115.66l89.1 89.1a16 16 0 010 22.62l-28.29 28.29a16 16 0 01-22.62 0l-89.1-89.1c12.37-10.04 21.43-17.95 27.2-23.71 5.76-5.77 13.67-14.84 23.71-27.2m-482.5 0c10.04 12.36 17.95 21.43 23.71 27.2 5.77 5.76 14.84 13.67 27.2 23.71l-89.1 89.1a16 16 0 01-22.62 0l-28.29-28.29a16 16 0 010-22.63zM512 278c129.24 0 234 104.77 234 234S641.24 746 512 746 278 641.24 278 512s104.77-234 234-234m0 72c-89.47 0-162 72.53-162 162s72.53 162 162 162 162-72.53 162-162-72.53-162-162-162M206 476c-1.64 15.85-2.46 27.84-2.46 36 0 8.15.82 20.16 2.46 36H80a16 16 0 01-16-16v-40a16 16 0 0116-16zm738 0a16 16 0 0116 16v40a16 16 0 01-16 16H818c1.64-15.85 2.46-27.84 2.46-36 0-8.15-.82-20.16-2.46-36zM814.06 180.65l28.29 28.29a16 16 0 010 22.63l-89.1 89.09c-10.04-12.37-17.95-21.43-23.71-27.2-5.77-5.76-14.84-13.67-27.2-23.71l89.1-89.1a16 16 0 0122.62 0m-581.5 0l89.1 89.1c-12.37 10.04-21.43 17.95-27.2 23.71-5.76 5.77-13.67 14.84-23.71 27.2l-89.1-89.1a16 16 0 010-22.62l28.29-28.29a16 16 0 0122.62 0M532 64a16 16 0 0116 16v126c-15.85-1.64-27.84-2.46-36-2.46-8.15 0-20.16.82-36 2.46V80a16 16 0 0116-16z"}}]},name:"sun",theme:"outlined"},b2e=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:h2e}))},Cke=s.forwardRef(b2e),y2e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"},C2e=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:y2e}))},Ske=s.forwardRef(C2e),S2e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M824.2 699.9a301.55 301.55 0 00-86.4-60.4C783.1 602.8 812 546.8 812 484c0-110.8-92.4-201.7-203.2-200-109.1 1.7-197 90.6-197 200 0 62.8 29 118.8 74.2 155.5a300.95 300.95 0 00-86.4 60.4C345 754.6 314 826.8 312 903.8a8 8 0 008 8.2h56c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5A226.62 226.62 0 01612 684c60.9 0 118.2 23.7 161.3 66.8C814.5 792 838 846.3 840 904.3c.1 4.3 3.7 7.7 8 7.7h56a8 8 0 008-8.2c-2-77-33-149.2-87.8-203.9zM612 612c-34.2 0-66.4-13.3-90.5-37.5a126.86 126.86 0 01-37.5-91.8c.3-32.8 13.4-64.5 36.3-88 24-24.6 56.1-38.3 90.4-38.7 33.9-.3 66.8 12.9 91 36.6 24.8 24.3 38.4 56.8 38.4 91.4 0 34.2-13.3 66.3-37.5 90.5A127.3 127.3 0 01612 612zM361.5 510.4c-.9-8.7-1.4-17.5-1.4-26.4 0-15.9 1.5-31.4 4.3-46.5.7-3.6-1.2-7.3-4.5-8.8-13.6-6.1-26.1-14.5-36.9-25.1a127.54 127.54 0 01-38.7-95.4c.9-32.1 13.8-62.6 36.3-85.6 24.7-25.3 57.9-39.1 93.2-38.7 31.9.3 62.7 12.6 86 34.4 7.9 7.4 14.7 15.6 20.4 24.4 2 3.1 5.9 4.4 9.3 3.2 17.6-6.1 36.2-10.4 55.3-12.4 5.6-.6 8.8-6.6 6.3-11.6-32.5-64.3-98.9-108.7-175.7-109.9-110.9-1.7-203.3 89.2-203.3 199.9 0 62.8 28.9 118.8 74.2 155.5-31.8 14.7-61.1 35-86.5 60.4-54.8 54.7-85.8 126.9-87.8 204a8 8 0 008 8.2h56.1c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5 29.4-29.4 65.4-49.8 104.7-59.7 3.9-1 6.5-4.7 6-8.7z"}}]},name:"team",theme:"outlined"},x2e=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:S2e}))},xke=s.forwardRef(x2e),w2e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M876.6 239.5c-.5-.9-1.2-1.8-2-2.5-5-5-13.1-5-18.1 0L684.2 409.3l-67.9-67.9L788.7 169c.8-.8 1.4-1.6 2-2.5 3.6-6.1 1.6-13.9-4.5-17.5-98.2-58-226.8-44.7-311.3 39.7-67 67-89.2 162-66.5 247.4l-293 293c-3 3-2.8 7.9.3 11l169.7 169.7c3.1 3.1 8.1 3.3 11 .3l292.9-292.9c85.5 22.8 180.5.7 247.6-66.4 84.4-84.5 97.7-213.1 39.7-311.3zM786 499.8c-58.1 58.1-145.3 69.3-214.6 33.6l-8.8 8.8-.1-.1-274 274.1-79.2-79.2 230.1-230.1s0 .1.1.1l52.8-52.8c-35.7-69.3-24.5-156.5 33.6-214.6a184.2 184.2 0 01144-53.5L537 318.9a32.05 32.05 0 000 45.3l124.5 124.5a32.05 32.05 0 0045.3 0l132.8-132.8c3.7 51.8-14.4 104.8-53.6 143.9z"}}]},name:"tool",theme:"outlined"},$2e=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:w2e}))},wke=s.forwardRef($2e),E2e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},P2e=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:E2e}))},$ke=s.forwardRef(P2e),O2e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M759 335c0-137-111-248-248-248S263 198 263 335c0 82.8 40.6 156.2 103 201.2-.4.2-.7.3-.9.4-44.7 18.9-84.8 46-119.3 80.6a373.42 373.42 0 00-80.4 119.5A373.6 373.6 0 00136 874.8a8 8 0 008 8.2h59.9c4.3 0 7.9-3.5 8-7.8 2-77.2 32.9-149.5 87.6-204.3C356 614.2 431 583 511 583c137 0 248-111 248-248zM511 507c-95 0-172-77-172-172s77-172 172-172 172 77 172 172-77 172-172 172zm105 221h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H703.5l47.2-60.1a8.1 8.1 0 001.7-4.9c0-4.4-3.6-8-8-8h-72.6c-4.9 0-9.5 2.3-12.6 6.1l-68.5 87.1c-4.4 5.6-6.8 12.6-6.8 19.8.1 17.7 14.4 32 32.1 32zm240 64H592c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h176.5l-47.2 60.1a8.1 8.1 0 00-1.7 4.9c0 4.4 3.6 8 8 8h72.6c4.9 0 9.5-2.3 12.6-6.1l68.5-87.1c4.4-5.6 6.8-12.6 6.8-19.8-.1-17.7-14.4-32-32.1-32z"}}]},name:"user-switch",theme:"outlined"},R2e=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:O2e}))},Eke=s.forwardRef(R2e),I2e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 780H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM505.7 669a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V176c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8z"}}]},name:"vertical-align-bottom",theme:"outlined"},M2e=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:I2e}))},T2e=s.forwardRef(M2e),N2e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 474H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zm-353.6-74.7c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H550V104c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v156h-62.8c-6 0-9.4 7-5.7 11.7l100.8 127.6zm11.4 225.4a7.14 7.14 0 00-11.3 0L405.6 752.3a7.23 7.23 0 005.7 11.7H474v156c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V764h62.8c6 0 9.4-7 5.7-11.7L517.7 624.7z"}}]},name:"vertical-align-middle",theme:"outlined"},_2e=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:N2e}))},j2e=s.forwardRef(_2e),D2e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]},name:"warning",theme:"outlined"},F2e=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:D2e}))},Pke=s.forwardRef(F2e),k2e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M120.1 770.6L443 823.2V543.8H120.1v226.8zm63.4-163.5h196.2v141.6l-196.2-31.9V607.1zm340.3 226.5l382 62.2v-352h-382v289.8zm63.4-226.5h255.3v214.4l-255.3-41.6V607.1zm-63.4-415.7v288.8h382V128.1l-382 63.3zm318.7 225.5H587.3V245l255.3-42.3v214.2zm-722.4 63.3H443V201.9l-322.9 53.5v224.8zM183.5 309l196.2-32.5v140.4H183.5V309z"}}]},name:"windows",theme:"outlined"},L2e=function(t,n){return s.createElement(ht,xe({},t,{ref:n,icon:k2e}))},Oke=s.forwardRef(L2e),A1={exports:{}},kM;function Rke(){return kM||(kM=1,(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(A1)),A1.exports}var B1={exports:{}},H1={exports:{}},V1={exports:{}},W1={exports:{}},LM;function YA(){return LM||(LM=1,(function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(W1)),W1.exports}var K1={exports:{}},zM;function z2e(){return zM||(zM=1,(function(e){var t=YA().default;function n(r,a){if(t(r)!="object"||!r)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var i=o.call(r,a||"default");if(t(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(K1)),K1.exports}var AM;function A2e(){return AM||(AM=1,(function(e){var t=YA().default,n=z2e();function r(a){var o=n(a,"string");return t(o)=="symbol"?o:o+""}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(V1)),V1.exports}var BM;function B2e(){return BM||(BM=1,(function(e){var t=A2e();function n(r,a,o){return(a=t(a))in r?Object.defineProperty(r,a,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[a]=o,r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(H1)),H1.exports}var HM;function Ike(){return HM||(HM=1,(function(e){var t=B2e();function n(a,o){var i=Object.keys(a);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(a);o&&(l=l.filter(function(c){return Object.getOwnPropertyDescriptor(a,c).enumerable})),i.push.apply(i,l)}return i}function r(a){for(var o=1;o{},ua=rl(),Hp=Object,Nn=e=>e===ua,Yo=e=>typeof e=="function",dl=(e,t)=>({...e,...t}),tB=e=>Yo(e.then),q1={},Og={},W4="undefined",Dv=typeof window!=W4,v$=typeof document!=W4,W2e=Dv&&"Deno"in window,K2e=()=>Dv&&typeof window.requestAnimationFrame!=W4,nB=(e,t)=>{const n=nl.get(e);return[()=>!Nn(t)&&e.get(t)||q1,r=>{if(!Nn(t)){const a=e.get(t);t in Og||(Og[t]=a),n[5](t,dl(a,r),a||q1)}},n[6],()=>!Nn(t)&&t in Og?Og[t]:!Nn(t)&&e.get(t)||q1]};let m$=!0;const q2e=()=>m$,[g$,p$]=Dv&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[rl,rl],U2e=()=>{const e=v$&&document.visibilityState;return Nn(e)||e!=="hidden"},G2e=e=>(v$&&document.addEventListener("visibilitychange",e),g$("focus",e),()=>{v$&&document.removeEventListener("visibilitychange",e),p$("focus",e)}),X2e=e=>{const t=()=>{m$=!0,e()},n=()=>{m$=!1};return g$("online",t),g$("offline",n),()=>{p$("online",t),p$("offline",n)}},Y2e={isOnline:q2e,isVisible:U2e},Q2e={initFocus:G2e,initReconnect:X2e},KM=!Q.useId,mu=!Dv||W2e,Z2e=e=>K2e()?window.requestAnimationFrame(e):setTimeout(e,1),cp=mu?s.useEffect:s.useLayoutEffect,U1=typeof navigator<"u"&&navigator.connection,qM=!mu&&U1&&(["slow-2g","2g"].includes(U1.effectiveType)||U1.saveData),Rg=new WeakMap,J2e=e=>Hp.prototype.toString.call(e),G1=(e,t)=>e===`[object ${t}]`;let ewe=0;const h$=e=>{const t=typeof e,n=J2e(e),r=G1(n,"Date"),a=G1(n,"RegExp"),o=G1(n,"Object");let i,l;if(Hp(e)===e&&!r&&!a){if(i=Rg.get(e),i)return i;if(i=++ewe+"~",Rg.set(e,i),Array.isArray(e)){for(i="@",l=0;l{if(Yo(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?h$(e):"",[e,t]};let twe=0;const b$=()=>++twe;async function rB(...e){const[t,n,r,a]=e,o=dl({populateCache:!0,throwOnError:!0},typeof a=="boolean"?{revalidate:a}:a||{});let i=o.populateCache;const l=o.rollbackOnError;let c=o.optimisticData;const u=m=>typeof l=="function"?l(m):l!==!1,d=o.throwOnError;if(Yo(n)){const m=n,g=[],h=t.keys();for(const b of h)!/^\$(inf|sub)\$/.test(b)&&m(t.get(b)._k)&&g.push(b);return Promise.all(g.map(f))}return f(n);async function f(m){const[g]=K4(m);if(!g)return;const[h,b]=nB(t,g),[p,S,C,x]=nl.get(t),w=()=>{const _=p[g];return(Yo(o.revalidate)?o.revalidate(h().data,m):o.revalidate!==!1)&&(delete C[g],delete x[g],_&&_[0])?_[0](eB).then(()=>h().data):h().data};if(e.length<3)return w();let $=r,E,P=!1;const M=b$();S[g]=[M,0];const O=!Nn(c),T=h(),N=T.data,D=T._c,L=Nn(D)?N:D;if(O&&(c=Yo(c)?c(L,N):c,b({data:c,_c:L})),Yo($))try{$=$(L)}catch(_){E=_,P=!0}if($&&tB($))if($=await $.catch(_=>{E=_,P=!0}),M!==S[g][0]){if(P)throw E;return $}else P&&O&&u(E)&&(i=!0,b({data:L,_c:ua}));if(i&&!P)if(Yo(i)){const _=i($,L);b({data:_,error:ua,_c:ua})}else b({data:$,error:ua,_c:ua});if(S[g][1]=b$(),Promise.resolve(w()).then(()=>{b({_c:ua})}),P){if(d)throw E;return}return $}}const UM=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},aB=(e,t)=>{if(!nl.has(e)){const n=dl(Q2e,t),r=Object.create(null),a=rB.bind(ua,e);let o=rl;const i=Object.create(null),l=(d,f)=>{const m=i[d]||[];return i[d]=m,m.push(f),()=>m.splice(m.indexOf(f),1)},c=(d,f,m)=>{e.set(d,f);const g=i[d];if(g)for(const h of g)h(f,m)},u=()=>{if(!nl.has(e)&&(nl.set(e,[r,Object.create(null),Object.create(null),Object.create(null),a,c,l]),!mu)){const d=n.initFocus(setTimeout.bind(ua,UM.bind(ua,r,ZA))),f=n.initReconnect(setTimeout.bind(ua,UM.bind(ua,r,JA)));o=()=>{d&&d(),f&&f(),nl.delete(e)}}};return u(),[e,a,u,o]}return[e,nl.get(e)[4]]},nwe=(e,t,n,r,a)=>{const o=n.errorRetryCount,i=a.retryCount,l=~~((Math.random()+.5)*(1<<(i<8?i:8)))*n.errorRetryInterval;!Nn(o)&&i>o||setTimeout(r,l,a)},rwe=f$,[q4,awe]=aB(new Map),oB=dl({onLoadingSlow:rl,onSuccess:rl,onError:rl,onErrorRetry:nwe,onDiscarded:rl,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:qM?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:qM?5e3:3e3,compare:rwe,isPaused:()=>!1,cache:q4,mutate:awe,fallback:{}},Y2e),iB=(e,t)=>{const n=dl(e,t);if(t){const{use:r,fallback:a}=e,{use:o,fallback:i}=t;r&&o&&(n.use=r.concat(o)),a&&i&&(n.fallback=dl(a,i))}return n},y$=s.createContext({}),owe=e=>{const{value:t}=e,n=s.useContext(y$),r=Yo(t),a=s.useMemo(()=>r?t(n):t,[r,n,t]),o=s.useMemo(()=>r?a:iB(n,a),[r,n,a]),i=a&&a.provider,l=s.useRef(ua);i&&!l.current&&(l.current=aB(i(o.cache||q4),a));const c=l.current;return c&&(o.cache=c[0],o.mutate=c[1]),cp(()=>{if(c)return c[2]&&c[2](),c[3]},[]),s.createElement(y$.Provider,dl(e,{value:o}))},iwe="$inf$",lB=Dv&&window.__SWR_DEVTOOLS_USE__,lwe=lB?window.__SWR_DEVTOOLS_USE__:[],swe=()=>{lB&&(window.__SWR_DEVTOOLS_REACT__=Q)},cwe=e=>Yo(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],sB=()=>{const e=s.useContext(y$);return s.useMemo(()=>dl(oB,e),[e])},uwe=e=>(t,n,r)=>e(t,n&&((...o)=>{const[i]=K4(t),[,,,l]=nl.get(q4);if(i.startsWith(iwe))return n(...o);const c=l[i];return Nn(c)?n(...o):(delete l[i],c)}),r),dwe=lwe.concat(uwe),fwe=e=>function(...n){const r=sB(),[a,o,i]=cwe(n),l=iB(r,i);let c=e;const{use:u}=l,d=(u||[]).concat(dwe);for(let f=d.length;f--;)c=d[f](c);return c(a,o||l.fetcher||null,l)},vwe=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const a=r.indexOf(n);a>=0&&(r[a]=r[r.length-1],r.pop())}};swe();const X1=Q.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),Y1={dedupe:!0},GM=Promise.resolve(ua),mwe=()=>rl,gwe=(e,t,n)=>{const{cache:r,compare:a,suspense:o,fallbackData:i,revalidateOnMount:l,revalidateIfStale:c,refreshInterval:u,refreshWhenHidden:d,refreshWhenOffline:f,keepPreviousData:m,strictServerPrefetchWarning:g}=n,[h,b,p,S]=nl.get(r),[C,x]=K4(e),w=s.useRef(!1),$=s.useRef(!1),E=s.useRef(C),P=s.useRef(t),M=s.useRef(n),O=()=>M.current,T=()=>O().isVisible()&&O().isOnline(),[N,D,L,_]=nB(r,C),F=s.useRef({}).current,j=Nn(i)?Nn(n.fallback)?ua:n.fallback[C]:i,k=(ie,ge)=>{for(const pe in F){const be=pe;if(be==="data"){if(!a(ie[be],ge[be])&&(!Nn(ie[be])||!a(Y,ge[be])))return!1}else if(ge[be]!==ie[be])return!1}return!0},z=!w.current,V=s.useMemo(()=>{const ie=N(),ge=_(),pe=he=>{const Se=dl(he);return delete Se._k,(()=>{if(!C||!t||O().isPaused())return!1;if(z&&!Nn(l))return l;const Oe=Nn(j)?Se.data:j;return Nn(Oe)||c})()?{isValidating:!0,isLoading:!0,...Se}:Se},be=pe(ie),ve=ie===ge?be:pe(ge);let Ce=be;return[()=>{const he=pe(N());return k(he,Ce)?(Ce.data=he.data,Ce.isLoading=he.isLoading,Ce.isValidating=he.isValidating,Ce.error=he.error,Ce):(Ce=he,he)},()=>ve]},[r,C]),H=J6.useSyncExternalStore(s.useCallback(ie=>L(C,(ge,pe)=>{k(pe,ge)||ie()}),[r,C]),V[0],V[1]),B=h[C]&&h[C].length>0,K=H.data,W=Nn(K)?j&&tB(j)?X1(j):j:K,G=H.error,X=s.useRef(W),Y=m?Nn(K)?Nn(X.current)?W:X.current:K:W,Z=C&&Nn(W),ee=s.useRef(null);!mu&&J6.useSyncExternalStore(mwe,()=>(ee.current=!1,ee),()=>(ee.current=!0,ee));const re=ee.current;g&&re&&!o&&Z&&console.warn(`Missing pre-initiated data for serialized key "${C}" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);const ne=!C||!t||O().isPaused()||B&&!Nn(G)?!1:z&&!Nn(l)?l:o?Nn(W)?!1:c:Nn(W)||c,se=z&&ne,oe=Nn(H.isValidating)?se:H.isValidating,me=Nn(H.isLoading)?se:H.isLoading,ue=s.useCallback(async ie=>{const ge=P.current;if(!C||!ge||$.current||O().isPaused())return!1;let pe,be,ve=!0;const Ce=ie||{},he=!p[C]||!Ce.dedupe,Se=()=>KM?!$.current&&C===E.current&&w.current:C===E.current,Ee={isValidating:!1,isLoading:!1},Oe=()=>{D(Ee)},We=()=>{const De=p[C];De&&De[1]===be&&delete p[C]},je={isValidating:!0};Nn(N().data)&&(je.isLoading=!0);try{if(he&&(D(je),n.loadingTimeout&&Nn(N().data)&&setTimeout(()=>{ve&&Se()&&O().onLoadingSlow(C,n)},n.loadingTimeout),p[C]=[ge(x),b$()]),[pe,be]=p[C],pe=await pe,he&&setTimeout(We,n.dedupingInterval),!p[C]||p[C][1]!==be)return he&&Se()&&O().onDiscarded(C),!1;Ee.error=ua;const De=b[C];if(!Nn(De)&&(be<=De[0]||be<=De[1]||De[1]===0))return Oe(),he&&Se()&&O().onDiscarded(C),!1;const ke=N().data;Ee.data=a(ke,pe)?ke:pe,he&&Se()&&O().onSuccess(pe,C,n)}catch(De){We();const ke=O(),{shouldRetryOnError:_e}=ke;ke.isPaused()||(Ee.error=De,he&&Se()&&(ke.onError(De,C,ke),(_e===!0||Yo(_e)&&_e(De))&&(!O().revalidateOnFocus||!O().revalidateOnReconnect||T())&&ke.onErrorRetry(De,C,ke,Re=>{const Le=h[C];Le&&Le[0]&&Le[0](VM,Re)},{retryCount:(Ce.retryCount||0)+1,dedupe:!0})))}return ve=!1,Oe(),!0},[C,r]),de=s.useCallback((...ie)=>rB(r,E.current,...ie),[]);if(cp(()=>{P.current=t,M.current=n,Nn(K)||(X.current=K)}),cp(()=>{if(!C)return;const ie=ue.bind(ua,Y1);let ge=0;O().revalidateOnFocus&&(ge=Date.now()+O().focusThrottleInterval);const be=vwe(C,h,(ve,Ce={})=>{if(ve==ZA){const he=Date.now();O().revalidateOnFocus&&he>ge&&T()&&(ge=he+O().focusThrottleInterval,ie())}else if(ve==JA)O().revalidateOnReconnect&&T()&&ie();else{if(ve==eB)return ue();if(ve==VM)return ue(Ce)}});return $.current=!1,E.current=C,w.current=!0,D({_k:x}),ne&&(p[C]||(Nn(W)||mu?ie():Z2e(ie))),()=>{$.current=!0,be()}},[C]),cp(()=>{let ie;function ge(){const be=Yo(u)?u(N().data):u;be&&ie!==-1&&(ie=setTimeout(pe,be))}function pe(){!N().error&&(d||O().isVisible())&&(f||O().isOnline())?ue(Y1).then(ge):ge()}return ge(),()=>{ie&&(clearTimeout(ie),ie=-1)}},[u,d,f,C]),s.useDebugValue(Y),o){if(!KM&&mu&&Z)throw new Error("Fallback data is required when using Suspense in SSR.");Z&&(P.current=t,M.current=n,$.current=!1);const ie=S[C],ge=!Nn(ie)&&Z?de(ie):GM;if(X1(ge),!Nn(G)&&Z)throw G;const pe=Z?ue(Y1):GM;!Nn(Y)&&Z&&(pe.status="fulfilled",pe.value=!0),X1(pe)}return{mutate:de,get data(){return F.data=!0,Y},get error(){return F.error=!0,G},get isValidating(){return F.isValidating=!0,oe},get isLoading(){return F.isLoading=!0,me}}},pwe=Hp.defineProperty(owe,"defaultValue",{value:oB}),cB=fwe(gwe),hwe={moneySymbol:"$",form:{lightFilter:{more:"المزيد",clear:"نظف",confirm:"تأكيد",itemUnit:"عناصر"}},tableForm:{search:"ابحث",reset:"إعادة تعيين",submit:"ارسال",collapsed:"مُقلص",expand:"مُوسع",inputPlaceholder:"الرجاء الإدخال",selectPlaceholder:"الرجاء الإختيار"},alert:{clear:"نظف",selected:"محدد",item:"عنصر"},pagination:{total:{range:" ",total:"من",item:"عناصر"}},tableToolBar:{leftPin:"ثبت على اليسار",rightPin:"ثبت على اليمين",noPin:"الغاء التثبيت",leftFixedTitle:"لصق على اليسار",rightFixedTitle:"لصق على اليمين",noFixedTitle:"إلغاء الإلصاق",reset:"إعادة تعيين",columnDisplay:"الأعمدة المعروضة",columnSetting:"الإعدادات",fullScreen:"وضع كامل الشاشة",exitFullScreen:"الخروج من وضع كامل الشاشة",reload:"تحديث",density:"الكثافة",densityDefault:"افتراضي",densityLarger:"أكبر",densityMiddle:"وسط",densitySmall:"مدمج"},stepsForm:{next:"التالي",prev:"السابق",submit:"أنهى"},loginForm:{submitText:"تسجيل الدخول"},editableTable:{action:{save:"أنقذ",cancel:"إلغاء الأمر",delete:"حذف",add:"إضافة صف من البيانات"}},switch:{open:"مفتوح",close:"غلق"}},bwe={moneySymbol:"€",form:{lightFilter:{more:"Més",clear:"Netejar",confirm:"Confirmar",itemUnit:"Elements"}},tableForm:{search:"Cercar",reset:"Netejar",submit:"Enviar",collapsed:"Expandir",expand:"Col·lapsar",inputPlaceholder:"Introduïu valor",selectPlaceholder:"Seleccioneu valor"},alert:{clear:"Netejar",selected:"Seleccionat",item:"Article"},pagination:{total:{range:" ",total:"de",item:"articles"}},tableToolBar:{leftPin:"Pin a l'esquerra",rightPin:"Pin a la dreta",noPin:"Sense Pin",leftFixedTitle:"Fixat a l'esquerra",rightFixedTitle:"Fixat a la dreta",noFixedTitle:"Sense fixar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuració",fullScreen:"Pantalla Completa",exitFullScreen:"Sortir Pantalla Completa",reload:"Refrescar",density:"Densitat",densityDefault:"Per Defecte",densityLarger:"Llarg",densityMiddle:"Mitjà",densitySmall:"Compacte"},stepsForm:{next:"Següent",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Guardar",cancel:"Cancel·lar",delete:"Eliminar",add:"afegir una fila de dades"}},switch:{open:"obert",close:"tancat"}},ywe={moneySymbol:"Kč",deleteThisLine:"Smazat tento řádek",copyThisLine:"Kopírovat tento řádek",form:{lightFilter:{more:"Víc",clear:"Vymazat",confirm:"Potvrdit",itemUnit:"Položky"}},tableForm:{search:"Hledat",reset:"Resetovat",submit:"Odeslat",collapsed:"Zvětšit",expand:"Zmenšit",inputPlaceholder:"Zadejte prosím",selectPlaceholder:"Vyberte prosím"},alert:{clear:"Vymazat",selected:"Vybráno",item:"Položka"},pagination:{total:{range:" ",total:"z",item:"položek"}},tableToolBar:{leftPin:"Připnout doleva",rightPin:"Připnout doprava",noPin:"Odepnuto",leftFixedTitle:"Fixováno nalevo",rightFixedTitle:"Fixováno napravo",noFixedTitle:"Nefixováno",reset:"Resetovat",columnDisplay:"Zobrazení sloupců",columnSetting:"Nastavení",fullScreen:"Celá obrazovka",exitFullScreen:"Ukončit celou obrazovku",reload:"Obnovit",density:"Hustota",densityDefault:"Výchozí",densityLarger:"Větší",densityMiddle:"Střední",densitySmall:"Kompaktní"},stepsForm:{next:"Další",prev:"Předchozí",submit:"Dokončit"},loginForm:{submitText:"Přihlásit se"},editableTable:{onlyOneLineEditor:"Upravit lze pouze jeden řádek",action:{save:"Uložit",cancel:"Zrušit",delete:"Vymazat",add:"Přidat řádek"}},switch:{open:"Otevřít",close:"Zavřít"}},Cwe={moneySymbol:"€",form:{lightFilter:{more:"Mehr",clear:"Zurücksetzen",confirm:"Bestätigen",itemUnit:"Einträge"}},tableForm:{search:"Suchen",reset:"Zurücksetzen",submit:"Absenden",collapsed:"Zeige mehr",expand:"Zeige weniger",inputPlaceholder:"Bitte eingeben",selectPlaceholder:"Bitte auswählen"},alert:{clear:"Zurücksetzen",selected:"Ausgewählt",item:"Eintrag"},pagination:{total:{range:" ",total:"von",item:"Einträgen"}},tableToolBar:{leftPin:"Links anheften",rightPin:"Rechts anheften",noPin:"Nicht angeheftet",leftFixedTitle:"Links fixiert",rightFixedTitle:"Rechts fixiert",noFixedTitle:"Nicht fixiert",reset:"Zurücksetzen",columnDisplay:"Angezeigte Reihen",columnSetting:"Einstellungen",fullScreen:"Vollbild",exitFullScreen:"Vollbild verlassen",reload:"Aktualisieren",density:"Abstand",densityDefault:"Standard",densityLarger:"Größer",densityMiddle:"Mittel",densitySmall:"Kompakt"},stepsForm:{next:"Weiter",prev:"Zurück",submit:"Abschließen"},loginForm:{submitText:"Anmelden"},editableTable:{action:{save:"Retten",cancel:"Abbrechen",delete:"Löschen",add:"Hinzufügen einer Datenzeile"}},switch:{open:"offen",close:"schließen"}},Swe={moneySymbol:"£",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed to the left",rightFixedTitle:"Fixed to the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Table Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{onlyOneLineEditor:"Only one line can be edited",onlyAddOneLine:"Only one line can be added",action:{save:"Save",cancel:"Cancel",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"close"}},xwe={moneySymbol:"$",deleteThisLine:"Delete this line",copyThisLine:"Copy this line",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed to the left",rightFixedTitle:"Fixed to the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Table Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{onlyOneLineEditor:"Only one line can be edited",onlyAddOneLine:"Only one line can be added",action:{save:"Save",cancel:"Cancel",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"close"}},wwe={moneySymbol:"€",form:{lightFilter:{more:"Más",clear:"Limpiar",confirm:"Confirmar",itemUnit:"artículos"}},tableForm:{search:"Buscar",reset:"Limpiar",submit:"Submit",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Ingrese valor",selectPlaceholder:"Seleccione valor"},alert:{clear:"Limpiar",selected:"Seleccionado",item:"Articulo"},pagination:{total:{range:" ",total:"de",item:"artículos"}},tableToolBar:{leftPin:"Pin a la izquierda",rightPin:"Pin a la derecha",noPin:"Sin Pin",leftFixedTitle:"Fijado a la izquierda",rightFixedTitle:"Fijado a la derecha",noFixedTitle:"Sin Fijar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuración",fullScreen:"Pantalla Completa",exitFullScreen:"Salir Pantalla Completa",reload:"Refrescar",density:"Densidad",densityDefault:"Por Defecto",densityLarger:"Largo",densityMiddle:"Medio",densitySmall:"Compacto"},stepsForm:{next:"Siguiente",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Guardar",cancel:"Descartar",delete:"Borrar",add:"añadir una fila de datos"}},switch:{open:"abrir",close:"cerrar"}},$we={moneySymbol:"تومان",form:{lightFilter:{more:"بیشتر",clear:"پاک کردن",confirm:"تایید",itemUnit:"مورد"}},tableForm:{search:"جستجو",reset:"بازنشانی",submit:"تایید",collapsed:"نمایش بیشتر",expand:"نمایش کمتر",inputPlaceholder:"پیدا کنید",selectPlaceholder:"انتخاب کنید"},alert:{clear:"پاک سازی",selected:"انتخاب",item:"مورد"},pagination:{total:{range:" ",total:"از",item:"مورد"}},tableToolBar:{leftPin:"سنجاق به چپ",rightPin:"سنجاق به راست",noPin:"سنجاق نشده",leftFixedTitle:"ثابت شده در چپ",rightFixedTitle:"ثابت شده در راست",noFixedTitle:"شناور",reset:"بازنشانی",columnDisplay:"نمایش همه",columnSetting:"تنظیمات",fullScreen:"تمام صفحه",exitFullScreen:"خروج از حالت تمام صفحه",reload:"تازه سازی",density:"تراکم",densityDefault:"پیش فرض",densityLarger:"بزرگ",densityMiddle:"متوسط",densitySmall:"کوچک"},stepsForm:{next:"بعدی",prev:"قبلی",submit:"اتمام"},loginForm:{submitText:"ورود"},editableTable:{action:{save:"ذخیره",cancel:"لغو",delete:"حذف",add:"یک ردیف داده اضافه کنید"}},switch:{open:"باز",close:"نزدیک"}},Ewe={moneySymbol:"€",form:{lightFilter:{more:"Plus",clear:"Effacer",confirm:"Confirmer",itemUnit:"Items"}},tableForm:{search:"Rechercher",reset:"Réinitialiser",submit:"Envoyer",collapsed:"Agrandir",expand:"Réduire",inputPlaceholder:"Entrer une valeur",selectPlaceholder:"Sélectionner une valeur"},alert:{clear:"Réinitialiser",selected:"Sélectionné",item:"Item"},pagination:{total:{range:" ",total:"sur",item:"éléments"}},tableToolBar:{leftPin:"Épingler à gauche",rightPin:"Épingler à gauche",noPin:"Sans épingle",leftFixedTitle:"Fixer à gauche",rightFixedTitle:"Fixer à droite",noFixedTitle:"Non fixé",reset:"Réinitialiser",columnDisplay:"Affichage colonne",columnSetting:"Réglages",fullScreen:"Plein écran",exitFullScreen:"Quitter Plein écran",reload:"Rafraichir",density:"Densité",densityDefault:"Par défaut",densityLarger:"Larger",densityMiddle:"Moyenne",densitySmall:"Compacte"},stepsForm:{next:"Suivante",prev:"Précédente",submit:"Finaliser"},loginForm:{submitText:"Se connecter"},editableTable:{action:{save:"Sauvegarder",cancel:"Annuler",delete:"Supprimer",add:"ajouter une ligne de données"}},switch:{open:"ouvert",close:"près"}},Pwe={moneySymbol:"₪",deleteThisLine:"מחק שורה זו",copyThisLine:"העתק שורה זו",form:{lightFilter:{more:"יותר",clear:"נקה",confirm:"אישור",itemUnit:"פריטים"}},tableForm:{search:"חיפוש",reset:"איפוס",submit:"שלח",collapsed:"הרחב",expand:"כווץ",inputPlaceholder:"אנא הכנס",selectPlaceholder:"אנא בחר"},alert:{clear:"נקה",selected:"נבחר",item:"פריט"},pagination:{total:{range:" ",total:"מתוך",item:"פריטים"}},tableToolBar:{leftPin:"הצמד לשמאל",rightPin:"הצמד לימין",noPin:"לא מצורף",leftFixedTitle:"מוצמד לשמאל",rightFixedTitle:"מוצמד לימין",noFixedTitle:"לא מוצמד",reset:"איפוס",columnDisplay:"תצוגת עמודות",columnSetting:"הגדרות",fullScreen:"מסך מלא",exitFullScreen:"צא ממסך מלא",reload:"רענן",density:"רזולוציה",densityDefault:"ברירת מחדל",densityLarger:"גדול",densityMiddle:"בינוני",densitySmall:"קטן"},stepsForm:{next:"הבא",prev:"קודם",submit:"סיום"},loginForm:{submitText:"כניסה"},editableTable:{onlyOneLineEditor:"ניתן לערוך רק שורה אחת",action:{save:"שמור",cancel:"ביטול",delete:"מחיקה",add:"הוסף שורת נתונים"}},switch:{open:"פתח",close:"סגור"}},Owe={moneySymbol:"kn",form:{lightFilter:{more:"Više",clear:"Očisti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Pretraži",reset:"Poništi",submit:"Potvrdi",collapsed:"Raširi",expand:"Skupi",inputPlaceholder:"Unesite",selectPlaceholder:"Odaberite"},alert:{clear:"Očisti",selected:"Odaberi",item:"stavke"},pagination:{total:{range:" ",total:"od",item:"stavke"}},tableToolBar:{leftPin:"Prikači lijevo",rightPin:"Prikači desno",noPin:"Bez prikačenja",leftFixedTitle:"Fiksiraj lijevo",rightFixedTitle:"Fiksiraj desno",noFixedTitle:"Bez fiksiranja",reset:"Resetiraj",columnDisplay:"Prikaz stupaca",columnSetting:"Postavke",fullScreen:"Puni zaslon",exitFullScreen:"Izađi iz punog zaslona",reload:"Ponovno učitaj",density:"Veličina",densityDefault:"Zadano",densityLarger:"Veliko",densityMiddle:"Srednje",densitySmall:"Malo"},stepsForm:{next:"Sljedeći",prev:"Prethodni",submit:"Kraj"},loginForm:{submitText:"Prijava"},editableTable:{action:{save:"Spremi",cancel:"Odustani",delete:"Obriši",add:"dodajte red podataka"}},switch:{open:"otvori",close:"zatvori"}},Rwe={moneySymbol:"RP",form:{lightFilter:{more:"Lebih",clear:"Hapus",confirm:"Konfirmasi",itemUnit:"Unit"}},tableForm:{search:"Cari",reset:"Atur ulang",submit:"Kirim",collapsed:"Lebih sedikit",expand:"Lebih banyak",inputPlaceholder:"Masukkan pencarian",selectPlaceholder:"Pilih"},alert:{clear:"Hapus",selected:"Dipilih",item:"Butir"},pagination:{total:{range:" ",total:"Dari",item:"Butir"}},tableToolBar:{leftPin:"Pin kiri",rightPin:"Pin kanan",noPin:"Tidak ada pin",leftFixedTitle:"Rata kiri",rightFixedTitle:"Rata kanan",noFixedTitle:"Tidak tetap",reset:"Atur ulang",columnDisplay:"Tampilan kolom",columnSetting:"Pengaturan",fullScreen:"Layar penuh",exitFullScreen:"Keluar layar penuh",reload:"Atur ulang",density:"Kerapatan",densityDefault:"Standar",densityLarger:"Lebih besar",densityMiddle:"Sedang",densitySmall:"Rapat"},stepsForm:{next:"Selanjutnya",prev:"Sebelumnya",submit:"Selesai"},loginForm:{submitText:"Login"},editableTable:{action:{save:"simpan",cancel:"batal",delete:"hapus",add:"Tambahkan baris data"}},switch:{open:"buka",close:"tutup"}},Iwe={moneySymbol:"€",form:{lightFilter:{more:"più",clear:"pulisci",confirm:"conferma",itemUnit:"elementi"}},tableForm:{search:"Filtra",reset:"Pulisci",submit:"Invia",collapsed:"Espandi",expand:"Contrai",inputPlaceholder:"Digita",selectPlaceholder:"Seleziona"},alert:{clear:"Rimuovi",selected:"Selezionati",item:"elementi"},pagination:{total:{range:" ",total:"di",item:"elementi"}},tableToolBar:{leftPin:"Fissa a sinistra",rightPin:"Fissa a destra",noPin:"Ripristina posizione",leftFixedTitle:"Fissato a sinistra",rightFixedTitle:"Fissato a destra",noFixedTitle:"Non fissato",reset:"Ripristina",columnDisplay:"Disposizione colonne",columnSetting:"Impostazioni",fullScreen:"Modalità schermo intero",exitFullScreen:"Esci da modalità schermo intero",reload:"Ricarica",density:"Grandezza tabella",densityDefault:"predefinito",densityLarger:"Grande",densityMiddle:"Media",densitySmall:"Compatta"},stepsForm:{next:"successivo",prev:"precedente",submit:"finisci"},loginForm:{submitText:"Accedi"},editableTable:{action:{save:"salva",cancel:"annulla",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"chiudi"}},Mwe={moneySymbol:"¥",form:{lightFilter:{more:"更に",clear:"クリア",confirm:"確認",itemUnit:"アイテム"}},tableForm:{search:"検索",reset:"リセット",submit:"送信",collapsed:"拡大",expand:"折畳",inputPlaceholder:"入力してください",selectPlaceholder:"選択してください"},alert:{clear:"クリア",selected:"選択した",item:"アイテム"},pagination:{total:{range:"レコード",total:"/合計",item:" "}},tableToolBar:{leftPin:"左に固定",rightPin:"右に固定",noPin:"キャンセル",leftFixedTitle:"左に固定された項目",rightFixedTitle:"右に固定された項目",noFixedTitle:"固定されてない項目",reset:"リセット",columnDisplay:"表示列",columnSetting:"列表示設定",fullScreen:"フルスクリーン",exitFullScreen:"終了",reload:"更新",density:"行高",densityDefault:"デフォルト",densityLarger:"大",densityMiddle:"中",densitySmall:"小"},stepsForm:{next:"次へ",prev:"前へ",submit:"送信"},loginForm:{submitText:"ログイン"},editableTable:{action:{save:"保存",cancel:"キャンセル",delete:"削除",add:"追加"}},switch:{open:"開く",close:"閉じる"}},Twe={moneySymbol:"₩",form:{lightFilter:{more:"더보기",clear:"초기화",confirm:"확인",itemUnit:"건수"}},tableForm:{search:"조회",reset:"초기화",submit:"제출",collapsed:"확장",expand:"닫기",inputPlaceholder:"입력해 주세요",selectPlaceholder:"선택해 주세요"},alert:{clear:"취소",selected:"선택",item:"건"},pagination:{total:{range:" ",total:"/ 총",item:"건"}},tableToolBar:{leftPin:"왼쪽으로 핀",rightPin:"오른쪽으로 핀",noPin:"핀 제거",leftFixedTitle:"왼쪽으로 고정",rightFixedTitle:"오른쪽으로 고정",noFixedTitle:"비고정",reset:"초기화",columnDisplay:"컬럼 표시",columnSetting:"설정",fullScreen:"전체 화면",exitFullScreen:"전체 화면 취소",reload:"새로 고침",density:"여백",densityDefault:"기본",densityLarger:"많은 여백",densityMiddle:"중간 여백",densitySmall:"좁은 여백"},stepsForm:{next:"다음",prev:"이전",submit:"종료"},loginForm:{submitText:"로그인"},editableTable:{action:{save:"저장",cancel:"취소",delete:"삭제",add:"데이터 행 추가"}},switch:{open:"열",close:"가까 운"}},Nwe={moneySymbol:"₮",form:{lightFilter:{more:"Илүү",clear:"Цэвэрлэх",confirm:"Баталгаажуулах",itemUnit:"Нэгжүүд"}},tableForm:{search:"Хайх",reset:"Шинэчлэх",submit:"Илгээх",collapsed:"Өргөтгөх",expand:"Хураах",inputPlaceholder:"Утга оруулна уу",selectPlaceholder:"Утга сонгоно уу"},alert:{clear:"Цэвэрлэх",selected:"Сонгогдсон",item:"Нэгж"},pagination:{total:{range:" ",total:"Нийт",item:"мөр"}},tableToolBar:{leftPin:"Зүүн тийш бэхлэх",rightPin:"Баруун тийш бэхлэх",noPin:"Бэхлэхгүй",leftFixedTitle:"Зүүн зэрэгцүүлэх",rightFixedTitle:"Баруун зэрэгцүүлэх",noFixedTitle:"Зэрэгцүүлэхгүй",reset:"Шинэчлэх",columnDisplay:"Баганаар харуулах",columnSetting:"Тохиргоо",fullScreen:"Бүтэн дэлгэцээр",exitFullScreen:"Бүтэн дэлгэц цуцлах",reload:"Шинэчлэх",density:"Хэмжээ",densityDefault:"Хэвийн",densityLarger:"Том",densityMiddle:"Дунд",densitySmall:"Жижиг"},stepsForm:{next:"Дараах",prev:"Өмнөх",submit:"Дуусгах"},loginForm:{submitText:"Нэвтрэх"},editableTable:{action:{save:"Хадгалах",cancel:"Цуцлах",delete:"Устгах",add:"Мөр нэмэх"}},switch:{open:"Нээх",close:"Хаах"}},_we={moneySymbol:"RM",form:{lightFilter:{more:"Lebih banyak",clear:"Jelas",confirm:"Mengesahkan",itemUnit:"Item"}},tableForm:{search:"Cari",reset:"Menetapkan semula",submit:"Hantar",collapsed:"Kembang",expand:"Kuncup",inputPlaceholder:"Sila masuk",selectPlaceholder:"Sila pilih"},alert:{clear:"Padam",selected:"Dipilih",item:"Item"},pagination:{total:{range:" ",total:"daripada",item:"item"}},tableToolBar:{leftPin:"Pin ke kiri",rightPin:"Pin ke kanan",noPin:"Tidak pin",leftFixedTitle:"Tetap ke kiri",rightFixedTitle:"Tetap ke kanan",noFixedTitle:"Tidak Tetap",reset:"Menetapkan semula",columnDisplay:"Lajur",columnSetting:"Settings",fullScreen:"Full Screen",exitFullScreen:"Keluar Full Screen",reload:"Muat Semula",density:"Densiti",densityDefault:"Biasa",densityLarger:"Besar",densityMiddle:"Tengah",densitySmall:"Kecil"},stepsForm:{next:"Seterusnya",prev:"Sebelumnya",submit:"Selesai"},loginForm:{submitText:"Log Masuk"},editableTable:{action:{save:"Simpan",cancel:"Membatalkan",delete:"Menghapuskan",add:"tambah baris data"}},switch:{open:"Terbuka",close:"Tutup"}},jwe={moneySymbol:"€",deleteThisLine:"Verwijder deze regel",copyThisLine:"Kopieer deze regel",form:{lightFilter:{more:"Meer filters",clear:"Wissen",confirm:"Bevestigen",itemUnit:"item"}},tableForm:{search:"Zoeken",reset:"Resetten",submit:"Indienen",collapsed:"Uitvouwen",expand:"Inklappen",inputPlaceholder:"Voer in",selectPlaceholder:"Selecteer"},alert:{clear:"Selectie annuleren",selected:"Geselecteerd",item:"item"},pagination:{total:{range:"Van",total:"items/totaal",item:"items"}},tableToolBar:{leftPin:"Vastzetten aan begin",rightPin:"Vastzetten aan einde",noPin:"Niet vastzetten",leftFixedTitle:"Vastzetten aan de linkerkant",rightFixedTitle:"Vastzetten aan de rechterkant",noFixedTitle:"Niet vastzetten",reset:"Resetten",columnDisplay:"Kolomweergave",columnSetting:"Kolominstellingen",fullScreen:"Volledig scherm",exitFullScreen:"Verlaat volledig scherm",reload:"Vernieuwen",density:"Dichtheid",densityDefault:"Normaal",densityLarger:"Ruim",densityMiddle:"Gemiddeld",densitySmall:"Compact"},stepsForm:{next:"Volgende stap",prev:"Vorige stap",submit:"Indienen"},loginForm:{submitText:"Inloggen"},editableTable:{onlyOneLineEditor:"Slechts één regel tegelijk bewerken",action:{save:"Opslaan",cancel:"Annuleren",delete:"Verwijderen",add:"Een regel toevoegen"}},switch:{open:"Openen",close:"Sluiten"}},Dwe={moneySymbol:"zł",form:{lightFilter:{more:"Więcej",clear:"Wyczyść",confirm:"Potwierdź",itemUnit:"Ilość"}},tableForm:{search:"Szukaj",reset:"Reset",submit:"Zatwierdź",collapsed:"Pokaż wiecej",expand:"Pokaż mniej",inputPlaceholder:"Proszę podać",selectPlaceholder:"Proszę wybrać"},alert:{clear:"Wyczyść",selected:"Wybrane",item:"Wpis"},pagination:{total:{range:" ",total:"z",item:"Wpisów"}},tableToolBar:{leftPin:"Przypnij do lewej",rightPin:"Przypnij do prawej",noPin:"Odepnij",leftFixedTitle:"Przypięte do lewej",rightFixedTitle:"Przypięte do prawej",noFixedTitle:"Nieprzypięte",reset:"Reset",columnDisplay:"Wyświetlane wiersze",columnSetting:"Ustawienia",fullScreen:"Pełen ekran",exitFullScreen:"Zamknij pełen ekran",reload:"Odśwież",density:"Odstęp",densityDefault:"Standard",densityLarger:"Wiekszy",densityMiddle:"Sredni",densitySmall:"Kompaktowy"},stepsForm:{next:"Weiter",prev:"Zurück",submit:"Abschließen"},loginForm:{submitText:"Zaloguj się"},editableTable:{action:{save:"Zapisać",cancel:"Anuluj",delete:"Usunąć",add:"dodawanie wiersza danych"}},switch:{open:"otwierać",close:"zamykać"}},Fwe={moneySymbol:"R$",form:{lightFilter:{more:"Mais",clear:"Limpar",confirm:"Confirmar",itemUnit:"Itens"}},tableForm:{search:"Filtrar",reset:"Limpar",submit:"Confirmar",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Por favor insira",selectPlaceholder:"Por favor selecione"},alert:{clear:"Limpar",selected:"Selecionado(s)",item:"Item(s)"},pagination:{total:{range:" ",total:"de",item:"itens"}},tableToolBar:{leftPin:"Fixar à esquerda",rightPin:"Fixar à direita",noPin:"Desfixado",leftFixedTitle:"Fixado à esquerda",rightFixedTitle:"Fixado à direita",noFixedTitle:"Não fixado",reset:"Limpar",columnDisplay:"Mostrar Coluna",columnSetting:"Configurações",fullScreen:"Tela Cheia",exitFullScreen:"Sair da Tela Cheia",reload:"Atualizar",density:"Densidade",densityDefault:"Padrão",densityLarger:"Largo",densityMiddle:"Médio",densitySmall:"Compacto"},stepsForm:{next:"Próximo",prev:"Anterior",submit:"Enviar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Salvar",cancel:"Cancelar",delete:"Apagar",add:"adicionar uma linha de dados"}},switch:{open:"abrir",close:"fechar"}},kwe={moneySymbol:"RON",deleteThisLine:"Șterge acest rând",copyThisLine:"Copiază acest rând",form:{lightFilter:{more:"Mai multe filtre",clear:"Curăță",confirm:"Confirmă",itemUnit:"elemente"}},tableForm:{search:"Caută",reset:"Resetează",submit:"Trimite",collapsed:"Extinde",expand:"Restrânge",inputPlaceholder:"Introduceți",selectPlaceholder:"Selectați"},alert:{clear:"Anulează selecția",selected:"Selectat",item:"elemente"},pagination:{total:{range:"De la",total:"elemente/total",item:"elemente"}},tableToolBar:{leftPin:"Fixează la început",rightPin:"Fixează la sfârșit",noPin:"Nu fixa",leftFixedTitle:"Fixează în stânga",rightFixedTitle:"Fixează în dreapta",noFixedTitle:"Nu fixa",reset:"Resetează",columnDisplay:"Afișare coloane",columnSetting:"Setări coloane",fullScreen:"Ecran complet",exitFullScreen:"Ieși din ecran complet",reload:"Reîncarcă",density:"Densitate",densityDefault:"Normal",densityLarger:"Larg",densityMiddle:"Mediu",densitySmall:"Compact"},stepsForm:{next:"Pasul următor",prev:"Pasul anterior",submit:"Trimite"},loginForm:{submitText:"Autentificare"},editableTable:{onlyOneLineEditor:"Se poate edita doar un rând simultan",action:{save:"Salvează",cancel:"Anulează",delete:"Șterge",add:"Adaugă un rând"}},switch:{open:"Deschide",close:"Închide"}},Lwe={moneySymbol:"₽",form:{lightFilter:{more:"Еще",clear:"Очистить",confirm:"ОК",itemUnit:"Позиции"}},tableForm:{search:"Найти",reset:"Сброс",submit:"Отправить",collapsed:"Развернуть",expand:"Свернуть",inputPlaceholder:"Введите значение",selectPlaceholder:"Выберите значение"},alert:{clear:"Очистить",selected:"Выбрано",item:"элементов"},pagination:{total:{range:" ",total:"из",item:"элементов"}},tableToolBar:{leftPin:"Закрепить слева",rightPin:"Закрепить справа",noPin:"Открепить",leftFixedTitle:"Закреплено слева",rightFixedTitle:"Закреплено справа",noFixedTitle:"Не закреплено",reset:"Сброс",columnDisplay:"Отображение столбца",columnSetting:"Настройки",fullScreen:"Полный экран",exitFullScreen:"Выйти из полноэкранного режима",reload:"Обновить",density:"Размер",densityDefault:"По умолчанию",densityLarger:"Большой",densityMiddle:"Средний",densitySmall:"Сжатый"},stepsForm:{next:"Следующий",prev:"Предыдущий",submit:"Завершить"},loginForm:{submitText:"Вход"},editableTable:{action:{save:"Сохранить",cancel:"Отменить",delete:"Удалить",add:"добавить ряд данных"}},switch:{open:"Открытый чемпионат мира по теннису",close:"По адресу:"}},zwe={moneySymbol:"€",deleteThisLine:"Odstrániť tento riadok",copyThisLine:"Skopírujte tento riadok",form:{lightFilter:{more:"Viac",clear:"Vyčistiť",confirm:"Potvrďte",itemUnit:"Položky"}},tableForm:{search:"Vyhladať",reset:"Resetovať",submit:"Odoslať",collapsed:"Rozbaliť",expand:"Zbaliť",inputPlaceholder:"Prosím, zadajte",selectPlaceholder:"Prosím, vyberte"},alert:{clear:"Vyčistiť",selected:"Vybraný",item:"Položka"},pagination:{total:{range:" ",total:"z",item:"položiek"}},tableToolBar:{leftPin:"Pripnúť vľavo",rightPin:"Pripnúť vpravo",noPin:"Odopnuté",leftFixedTitle:"Fixované na ľavo",rightFixedTitle:"Fixované na pravo",noFixedTitle:"Nefixované",reset:"Resetovať",columnDisplay:"Zobrazenie stĺpcov",columnSetting:"Nastavenia",fullScreen:"Celá obrazovka",exitFullScreen:"Ukončiť celú obrazovku",reload:"Obnoviť",density:"Hustota",densityDefault:"Predvolené",densityLarger:"Väčšie",densityMiddle:"Stredné",densitySmall:"Kompaktné"},stepsForm:{next:"Ďalšie",prev:"Predchádzajúce",submit:"Potvrdiť"},loginForm:{submitText:"Prihlásiť sa"},editableTable:{onlyOneLineEditor:"Upravovať možno iba jeden riadok",action:{save:"Uložiť",cancel:"Zrušiť",delete:"Odstrániť",add:"pridať riadok údajov"}},switch:{open:"otvoriť",close:"zavrieť"}},Awe={moneySymbol:"RSD",form:{lightFilter:{more:"Više",clear:"Očisti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Pronađi",reset:"Resetuj",submit:"Pošalji",collapsed:"Proširi",expand:"Skupi",inputPlaceholder:"Molimo unesite",selectPlaceholder:"Molimo odaberite"},alert:{clear:"Očisti",selected:"Odabrano",item:"Stavka"},pagination:{total:{range:" ",total:"od",item:"stavki"}},tableToolBar:{leftPin:"Zakači levo",rightPin:"Zakači desno",noPin:"Nije zakačeno",leftFixedTitle:"Fiksirano levo",rightFixedTitle:"Fiksirano desno",noFixedTitle:"Nije fiksirano",reset:"Resetuj",columnDisplay:"Prikaz kolona",columnSetting:"Podešavanja",fullScreen:"Pun ekran",exitFullScreen:"Zatvori pun ekran",reload:"Osveži",density:"Veličina",densityDefault:"Podrazumevana",densityLarger:"Veća",densityMiddle:"Srednja",densitySmall:"Kompaktna"},stepsForm:{next:"Dalje",prev:"Nazad",submit:"Gotovo"},loginForm:{submitText:"Prijavi se"},editableTable:{action:{save:"Sačuvaj",cancel:"Poništi",delete:"Obriši",add:"dodajte red podataka"}},switch:{open:"Отворите",close:"Затворите"}},Bwe={moneySymbol:"SEK",deleteThisLine:"Radera denna rad",copyThisLine:"Kopiera denna rad",form:{lightFilter:{more:"Fler filter",clear:"Rensa",confirm:"Bekräfta",itemUnit:"objekt"}},tableForm:{search:"Sök",reset:"Återställ",submit:"Skicka",collapsed:"Expandera",expand:"Fäll ihop",inputPlaceholder:"Vänligen ange",selectPlaceholder:"Vänligen välj"},alert:{clear:"Avbryt val",selected:"Vald",item:"objekt"},pagination:{total:{range:"Från",total:"objekt/totalt",item:"objekt"}},tableToolBar:{leftPin:"Fäst till vänster",rightPin:"Fäst till höger",noPin:"Inte fäst",leftFixedTitle:"Fäst till vänster",rightFixedTitle:"Fäst till höger",noFixedTitle:"Inte fäst",reset:"Återställ",columnDisplay:"Kolumnvisning",columnSetting:"Kolumninställningar",fullScreen:"Fullskärm",exitFullScreen:"Avsluta fullskärm",reload:"Ladda om",density:"Täthet",densityDefault:"Normal",densityLarger:"Lös",densityMiddle:"Medium",densitySmall:"Kompakt"},stepsForm:{next:"Nästa steg",prev:"Föregående steg",submit:"Skicka"},loginForm:{submitText:"Logga in"},editableTable:{onlyOneLineEditor:"Endast en rad kan redigeras åt gången",action:{save:"Spara",cancel:"Avbryt",delete:"Radera",add:"Lägg till en rad"}},switch:{open:"Öppna",close:"Stäng"}},Hwe={moneySymbol:"฿",deleteThisLine:"ลบบรรทัดนี้",copyThisLine:"คัดลอกบรรทัดนี้",form:{lightFilter:{more:"มากกว่า",clear:"ชัดเจน",confirm:"ยืนยัน",itemUnit:"รายการ"}},tableForm:{search:"สอบถาม",reset:"รีเซ็ต",submit:"ส่ง",collapsed:"ขยาย",expand:"ทรุด",inputPlaceholder:"กรุณาป้อน",selectPlaceholder:"โปรดเลือก"},alert:{clear:"ชัดเจน",selected:"เลือกแล้ว",item:"รายการ"},pagination:{total:{range:" ",total:"ของ",item:"รายการ"}},tableToolBar:{leftPin:"ปักหมุดไปทางซ้าย",rightPin:"ปักหมุดไปทางขวา",noPin:"เลิกตรึงแล้ว",leftFixedTitle:"แก้ไขด้านซ้าย",rightFixedTitle:"แก้ไขด้านขวา",noFixedTitle:"ไม่คงที่",reset:"รีเซ็ต",columnDisplay:"การแสดงคอลัมน์",columnSetting:"การตั้งค่า",fullScreen:"เต็มจอ",exitFullScreen:"ออกจากโหมดเต็มหน้าจอ",reload:"รีเฟรช",density:"ความหนาแน่น",densityDefault:"ค่าเริ่มต้น",densityLarger:"ขนาดใหญ่ขึ้น",densityMiddle:"กลาง",densitySmall:"กะทัดรัด"},stepsForm:{next:"ถัดไป",prev:"ก่อนหน้า",submit:"เสร็จ"},loginForm:{submitText:"เข้าสู่ระบบ"},editableTable:{onlyOneLineEditor:"แก้ไขได้เพียงบรรทัดเดียวเท่านั้น",action:{save:"บันทึก",cancel:"ยกเลิก",delete:"ลบ",add:"เพิ่มแถวของข้อมูล"}},switch:{open:"เปิด",close:"ปิด"}},Vwe={moneySymbol:"₺",form:{lightFilter:{more:"Daha Fazla",clear:"Temizle",confirm:"Onayla",itemUnit:"Öğeler"}},tableForm:{search:"Filtrele",reset:"Sıfırla",submit:"Gönder",collapsed:"Daha fazla",expand:"Daha az",inputPlaceholder:"Filtrelemek için bir değer girin",selectPlaceholder:"Filtrelemek için bir değer seçin"},alert:{clear:"Temizle",selected:"Seçili",item:"Öğe"},pagination:{total:{range:" ",total:"Toplam",item:"Öğe"}},tableToolBar:{leftPin:"Sola sabitle",rightPin:"Sağa sabitle",noPin:"Sabitlemeyi kaldır",leftFixedTitle:"Sola sabitlendi",rightFixedTitle:"Sağa sabitlendi",noFixedTitle:"Sabitlenmedi",reset:"Sıfırla",columnDisplay:"Kolon Görünümü",columnSetting:"Ayarlar",fullScreen:"Tam Ekran",exitFullScreen:"Tam Ekrandan Çık",reload:"Yenile",density:"Kalınlık",densityDefault:"Varsayılan",densityLarger:"Büyük",densityMiddle:"Orta",densitySmall:"Küçük"},stepsForm:{next:"Sıradaki",prev:"Önceki",submit:"Gönder"},loginForm:{submitText:"Giriş Yap"},editableTable:{action:{save:"Kaydet",cancel:"Vazgeç",delete:"Sil",add:"foegje in rige gegevens ta"}},switch:{open:"açık",close:"kapatmak"}},Wwe={moneySymbol:"₴",deleteThisLine:"Видатили рядок",copyThisLine:"Скопіювати рядок",form:{lightFilter:{more:"Ще",clear:"Очистити",confirm:"Ок",itemUnit:"Позиції"}},tableForm:{search:"Пошук",reset:"Очистити",submit:"Відправити",collapsed:"Розгорнути",expand:"Згорнути",inputPlaceholder:"Введіть значення",selectPlaceholder:"Оберіть значення"},alert:{clear:"Очистити",selected:"Обрано",item:"елементів"},pagination:{total:{range:" ",total:"з",item:"елементів"}},tableToolBar:{leftPin:"Закріпити зліва",rightPin:"Закріпити справа",noPin:"Відкріпити",leftFixedTitle:"Закріплено зліва",rightFixedTitle:"Закріплено справа",noFixedTitle:"Не закріплено",reset:"Скинути",columnDisplay:"Відображення стовпців",columnSetting:"Налаштування",fullScreen:"Повноекранний режим",exitFullScreen:"Вийти з повноекранного режиму",reload:"Оновити",density:"Розмір",densityDefault:"За замовчуванням",densityLarger:"Великий",densityMiddle:"Середній",densitySmall:"Стислий"},stepsForm:{next:"Наступний",prev:"Попередній",submit:"Завершити"},loginForm:{submitText:"Вхіх"},editableTable:{onlyOneLineEditor:"Тільки один рядок може бути редагований одночасно",action:{save:"Зберегти",cancel:"Відмінити",delete:"Видалити",add:"додати рядок"}},switch:{open:"Відкрито",close:"Закрито"}},Kwe={moneySymbol:"UZS",form:{lightFilter:{more:"Yana",clear:"Tozalash",confirm:"OK",itemUnit:"Pozitsiyalar"}},tableForm:{search:"Qidirish",reset:"Qayta tiklash",submit:"Yuborish",collapsed:"Yig‘ish",expand:"Kengaytirish",inputPlaceholder:"Qiymatni kiriting",selectPlaceholder:"Qiymatni tanlang"},alert:{clear:"Tozalash",selected:"Tanlangan",item:"elementlar"},pagination:{total:{range:" ",total:"dan",item:"elementlar"}},tableToolBar:{leftPin:"Chapga mahkamlash",rightPin:"O‘ngga mahkamlash",noPin:"Mahkamlashni olib tashlash",leftFixedTitle:"Chapga mahkamlangan",rightFixedTitle:"O‘ngga mahkamlangan",noFixedTitle:"Mahkamlashsiz",reset:"Qayta tiklash",columnDisplay:"Ustunni ko‘rsatish",columnSetting:"Sozlamalar",fullScreen:"To‘liq ekran",exitFullScreen:"To‘liq ekrandan chiqish",reload:"Yangilash",density:"O‘lcham",densityDefault:"Standart",densityLarger:"Katta",densityMiddle:"O‘rtacha",densitySmall:"Kichik"},stepsForm:{next:"Keyingi",prev:"Oldingi",submit:"Tugatish"},loginForm:{submitText:"Kirish"},editableTable:{action:{save:"Saqlash",cancel:"Bekor qilish",delete:"O‘chirish",add:"maʼlumotlar qatorini qo‘shish"}},switch:{open:"Ochish",close:"Yopish"}},qwe={moneySymbol:"₫",form:{lightFilter:{more:"Nhiều hơn",clear:"Trong",confirm:"Xác nhận",itemUnit:"Mục"}},tableForm:{search:"Tìm kiếm",reset:"Làm lại",submit:"Gửi đi",collapsed:"Mở rộng",expand:"Thu gọn",inputPlaceholder:"nhập dữ liệu",selectPlaceholder:"Vui lòng chọn"},alert:{clear:"Xóa",selected:"đã chọn",item:"mục"},pagination:{total:{range:" ",total:"trên",item:"mặt hàng"}},tableToolBar:{leftPin:"Ghim trái",rightPin:"Ghim phải",noPin:"Bỏ ghim",leftFixedTitle:"Cố định trái",rightFixedTitle:"Cố định phải",noFixedTitle:"Chưa cố định",reset:"Làm lại",columnDisplay:"Cột hiển thị",columnSetting:"Cấu hình",fullScreen:"Chế độ toàn màn hình",exitFullScreen:"Thoát chế độ toàn màn hình",reload:"Làm mới",density:"Mật độ hiển thị",densityDefault:"Mặc định",densityLarger:"Mặc định",densityMiddle:"Trung bình",densitySmall:"Chật"},stepsForm:{next:"Sau",prev:"Trước",submit:"Kết thúc"},loginForm:{submitText:"Đăng nhập"},editableTable:{action:{save:"Cứu",cancel:"Hủy",delete:"Xóa",add:"thêm một hàng dữ liệu"}},switch:{open:"mở",close:"đóng"}},Uwe={moneySymbol:"¥",deleteThisLine:"删除此项",copyThisLine:"复制此项",form:{lightFilter:{more:"更多筛选",clear:"清除",confirm:"确认",itemUnit:"项"}},tableForm:{search:"查询",reset:"重置",submit:"提交",collapsed:"展开",expand:"收起",inputPlaceholder:"请输入",selectPlaceholder:"请选择"},alert:{clear:"取消选择",selected:"已选择",item:"项"},pagination:{total:{range:"第",total:"条/总共",item:"条"}},tableToolBar:{leftPin:"固定在列首",rightPin:"固定在列尾",noPin:"不固定",leftFixedTitle:"固定在左侧",rightFixedTitle:"固定在右侧",noFixedTitle:"不固定",reset:"重置",columnDisplay:"列展示",columnSetting:"列设置",fullScreen:"全屏",exitFullScreen:"退出全屏",reload:"刷新",density:"密度",densityDefault:"正常",densityLarger:"宽松",densityMiddle:"中等",densitySmall:"紧凑"},stepsForm:{next:"下一步",prev:"上一步",submit:"提交"},loginForm:{submitText:"登录"},editableTable:{onlyOneLineEditor:"只能同时编辑一行",action:{save:"保存",cancel:"取消",delete:"删除",add:"添加一行数据"}},switch:{open:"打开",close:"关闭"}},Gwe={moneySymbol:"HK$",deleteThisLine:"刪除此項",copyThisLine:"複製此項",form:{lightFilter:{more:"更多篩選",clear:"清除",confirm:"確認",itemUnit:"項"}},tableForm:{search:"搜尋",reset:"重設",submit:"提交",collapsed:"展開",expand:"收起",inputPlaceholder:"請輸入",selectPlaceholder:"請選擇"},alert:{clear:"取消選取",selected:"已選取",item:"項"},pagination:{total:{range:"第",total:"項/總共",item:"項"}},tableToolBar:{leftPin:"固定到左邊",rightPin:"固定到右邊",noPin:"不固定",leftFixedTitle:"固定在左側",rightFixedTitle:"固定在右側",noFixedTitle:"不固定",reset:"重設",columnDisplay:"列顯示",columnSetting:"列設定",fullScreen:"全螢幕",exitFullScreen:"退出全螢幕",reload:"重新整理",density:"密度",densityDefault:"正常",densityLarger:"寬鬆",densityMiddle:"中等",densitySmall:"緊湊"},stepsForm:{next:"下一步",prev:"上一步",submit:"完成"},loginForm:{submitText:"登入"},editableTable:{onlyOneLineEditor:"只能同時編輯一行",action:{save:"保存",cancel:"取消",delete:"刪除",add:"新增一行資料"}},switch:{open:"打開",close:"關閉"}},Xwe={moneySymbol:"NT$",deleteThisLine:"刪除此项",copyThisLine:"複製此项",form:{lightFilter:{more:"更多篩選",clear:"清除",confirm:"確認",itemUnit:"項"}},tableForm:{search:"查詢",reset:"重置",submit:"提交",collapsed:"展開",expand:"收起",inputPlaceholder:"請輸入",selectPlaceholder:"請選擇"},alert:{clear:"取消選擇",selected:"已選擇",item:"項"},pagination:{total:{range:"第",total:"條/總共",item:"條"}},tableToolBar:{leftPin:"固定到左邊",rightPin:"固定到右邊",noPin:"不固定",leftFixedTitle:"固定在左側",rightFixedTitle:"固定在右側",noFixedTitle:"不固定",reset:"重置",columnDisplay:"列展示",columnSetting:"列設置",fullScreen:"全屏",exitFullScreen:"退出全屏",reload:"刷新",density:"密度",densityDefault:"正常",densityLarger:"寬鬆",densityMiddle:"中等",densitySmall:"緊湊"},stepsForm:{next:"下一步",prev:"上一步",submit:"完成"},loginForm:{submitText:"登入"},editableTable:{onlyOneLineEditor:"只能同時編輯一行",action:{save:"保存",cancel:"取消",delete:"刪除",add:"新增一行資料"}},switch:{open:"打開",close:"關閉"}};var Bn=function(t,n){return{getMessage:function(a,o){var i=Dn(n,a.replace(/\[(\d+)\]/g,".$1").split("."))||"";if(i)return i;var l=t.replace("_","-");if(l==="zh-CN")return o;var c=Gs["zh-CN"];return c?c.getMessage(a,o):o},locale:t}},Ywe=Bn("mn_MN",Nwe),Qwe=Bn("ar_EG",hwe),gu=Bn("zh_CN",Uwe),Zwe=Bn("en_US",xwe),Jwe=Bn("en_GB",Swe),e$e=Bn("vi_VN",qwe),t$e=Bn("it_IT",Iwe),n$e=Bn("ja_JP",Mwe),r$e=Bn("es_ES",wwe),a$e=Bn("ca_ES",bwe),o$e=Bn("ru_RU",Lwe),i$e=Bn("sr_RS",Awe),l$e=Bn("ms_MY",_we),s$e=Bn("zh_TW",Xwe),c$e=Bn("zh_HK",Gwe),u$e=Bn("fr_FR",Ewe),d$e=Bn("pt_BR",Fwe),f$e=Bn("ko_KR",Twe),v$e=Bn("id_ID",Rwe),m$e=Bn("de_DE",Cwe),g$e=Bn("fa_IR",$we),p$e=Bn("tr_TR",Vwe),h$e=Bn("pl_PL",Dwe),b$e=Bn("hr_",Owe),y$e=Bn("th_TH",Hwe),C$e=Bn("cs_cz",ywe),S$e=Bn("sk_SK",zwe),x$e=Bn("he_IL",Pwe),w$e=Bn("uk_UA",Wwe),$$e=Bn("uz_UZ",Kwe),E$e=Bn("nl_NL",jwe),P$e=Bn("ro_RO",kwe),O$e=Bn("sv_SE",Bwe),Gs={"mn-MN":Ywe,"ar-EG":Qwe,"zh-CN":gu,"en-US":Zwe,"en-GB":Jwe,"vi-VN":e$e,"it-IT":t$e,"ja-JP":n$e,"es-ES":r$e,"ca-ES":a$e,"ru-RU":o$e,"sr-RS":i$e,"ms-MY":l$e,"zh-TW":s$e,"zh-HK":c$e,"fr-FR":u$e,"pt-BR":d$e,"ko-KR":f$e,"id-ID":v$e,"de-DE":m$e,"fa-IR":g$e,"tr-TR":p$e,"pl-PL":h$e,"hr-HR":b$e,"th-TH":y$e,"cs-CZ":C$e,"sk-SK":S$e,"he-IL":x$e,"uk-UA":w$e,"uz-UZ":$$e,"nl-NL":E$e,"ro-RO":P$e,"sv-SE":O$e},R$e=Object.keys(Gs),uB=function(t){var n=(t||"zh-CN").toLocaleLowerCase();return R$e.find(function(r){var a=r.toLocaleLowerCase();return a.includes(n)})};function da(e,t){I$e(e)&&(e="100%");var n=M$e(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Ig(e){return Math.min(1,Math.max(0,e))}function I$e(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function M$e(e){return typeof e=="string"&&e.indexOf("%")!==-1}function dB(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Mg(e){return e<=1?"".concat(Number(e)*100,"%"):e}function js(e){return e.length===1?"0"+e:String(e)}function T$e(e,t,n){return{r:da(e,255)*255,g:da(t,255)*255,b:da(n,255)*255}}function XM(e,t,n){e=da(e,255),t=da(t,255),n=da(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),o=0,i=0,l=(r+a)/2;if(r===a)i=0,o=0;else{var c=r-a;switch(i=l>.5?c/(2-r-a):c/(r+a),r){case e:o=(t-n)/c+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function N$e(e,t,n){var r,a,o;if(e=da(e,360),t=da(t,100),n=da(n,100),t===0)a=n,o=n,r=n;else{var i=n<.5?n*(1+t):n+t-n*t,l=2*n-i;r=Q1(l,i,e+1/3),a=Q1(l,i,e),o=Q1(l,i,e-1/3)}return{r:r*255,g:a*255,b:o*255}}function YM(e,t,n){e=da(e,255),t=da(t,255),n=da(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),o=0,i=r,l=r-a,c=r===0?0:l/r;if(r===a)o=0;else{switch(r){case e:o=(t-n)/l+(t>16,g:(e&65280)>>8,b:e&255}}var C$={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function k$e(e){var t={r:0,g:0,b:0},n=1,r=null,a=null,o=null,i=!1,l=!1;return typeof e=="string"&&(e=A$e(e)),typeof e=="object"&&(Qi(e.r)&&Qi(e.g)&&Qi(e.b)?(t=T$e(e.r,e.g,e.b),i=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Qi(e.h)&&Qi(e.s)&&Qi(e.v)?(r=Mg(e.s),a=Mg(e.v),t=_$e(e.h,r,a),i=!0,l="hsv"):Qi(e.h)&&Qi(e.s)&&Qi(e.l)&&(r=Mg(e.s),o=Mg(e.l),t=N$e(e.h,r,o),i=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=dB(n),{ok:i,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var L$e="[-\\+]?\\d+%?",z$e="[-\\+]?\\d*\\.\\d+%?",Ul="(?:".concat(z$e,")|(?:").concat(L$e,")"),Z1="[\\s|\\(]+(".concat(Ul,")[,|\\s]+(").concat(Ul,")[,|\\s]+(").concat(Ul,")\\s*\\)?"),J1="[\\s|\\(]+(".concat(Ul,")[,|\\s]+(").concat(Ul,")[,|\\s]+(").concat(Ul,")[,|\\s]+(").concat(Ul,")\\s*\\)?"),qo={CSS_UNIT:new RegExp(Ul),rgb:new RegExp("rgb"+Z1),rgba:new RegExp("rgba"+J1),hsl:new RegExp("hsl"+Z1),hsla:new RegExp("hsla"+J1),hsv:new RegExp("hsv"+Z1),hsva:new RegExp("hsva"+J1),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function A$e(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(C$[e])e=C$[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=qo.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=qo.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=qo.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=qo.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=qo.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=qo.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=qo.hex8.exec(e),n?{r:oo(n[1]),g:oo(n[2]),b:oo(n[3]),a:ZM(n[4]),format:t?"name":"hex8"}:(n=qo.hex6.exec(e),n?{r:oo(n[1]),g:oo(n[2]),b:oo(n[3]),format:t?"name":"hex"}:(n=qo.hex4.exec(e),n?{r:oo(n[1]+n[1]),g:oo(n[2]+n[2]),b:oo(n[3]+n[3]),a:ZM(n[4]+n[4]),format:t?"name":"hex8"}:(n=qo.hex3.exec(e),n?{r:oo(n[1]+n[1]),g:oo(n[2]+n[2]),b:oo(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Qi(e){return!!qo.CSS_UNIT.exec(String(e))}var B$e=(function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=F$e(t)),this.originalInput=t;var a=k$e(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:a.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,a,o=t.r/255,i=t.g/255,l=t.b/255;return o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),l<=.03928?a=l/12.92:a=Math.pow((l+.055)/1.055,2.4),.2126*n+.7152*r+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=dB(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=YM(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=YM(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=XM(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=XM(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),QM(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),j$e(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(da(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(da(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+QM(this.r,this.g,this.b,!1),n=0,r=Object.entries(C$);n=0,o=!n&&a&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Ig(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Ig(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Ig(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Ig(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),a=new e(t).toRgb(),o=n/100,i={r:(a.r-r.r)*o+r.r,g:(a.g-r.g)*o+r.g,b:(a.b-r.b)*o+r.b,a:(a.a-r.a)*o+r.a};return new e(i)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),a=360/n,o=[this];for(r.h=(r.h-(a*t>>1)+720)%360;--t;)r.h=(r.h+a)%360,o.push(new e(r));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,a=n.s,o=n.v,i=[],l=1/t;t--;)i.push(new e({h:r,s:a,v:o})),o=(o+l)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),a=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/a,g:(n.g*n.a+r.g*r.a*(1-n.a))/a,b:(n.b*n.a+r.b*r.a*(1-n.a))/a,a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,a=[this],o=360/t,i=1;i1&&arguments[1]!==void 0?arguments[1]:1,r=3735928559^n,a=1103547991^n,o=0,i;o>>16,2246822507)^Math.imul(a^a>>>13,3266489909),a=Math.imul(a^a>>>16,2246822507)^Math.imul(r^r>>>13,3266489909),4294967296*(2097151&a)+(r>>>0)},U4=Lf(function(e){return e}),vB={theme:U4,token:R(R({},Yf),Si==null||(eC=Si.defaultAlgorithm)===null||eC===void 0?void 0:eC.call(Si,Si?.defaultSeed)),hashId:"pro-".concat(fB(JSON.stringify(Yf)))},H$e=function(){return vB};const V$e=Object.freeze(Object.defineProperty({__proto__:null,defaultToken:Yf,emptyTheme:U4,hashCode:fB,token:vB,useToken:H$e},Symbol.toStringTag,{value:"Module"}));var io=function(t,n){return new B$e(t).setAlpha(n).toRgbString()},W$e=function(){return typeof Si>"u"||!Si?V$e:Si},fa=W$e(),Ef=fa.useToken,tC=function(t){return{boxSizing:"border-box",margin:0,padding:0,color:t.colorText,fontSize:t.fontSize,lineHeight:t.lineHeight,listStyle:"none"}};function Yn(e,t){var n,r=s.useContext(No),a=r.token,o=a===void 0?{}:a,i=s.useContext(No),l=i.hashed,c=Ef(),u=c.token,d=c.hashId,f=s.useContext(No);f.theme;var m=s.useContext(At.ConfigContext),g=m.getPrefixCls,h=m.csp;return o.layout||(o=R({},u)),o.proComponentsCls=(n=o.proComponentsCls)!==null&&n!==void 0?n:".".concat(g("pro")),o.antCls=".".concat(g()),{wrapSSR:Cp({token:o,path:[e],nonce:h?.nonce,layer:{name:"antd-pro"}},function(){return t(o)}),hashId:l?d:""}}var K$e=function(t,n){var r,a,o,i,l,c=R({},t);return R(R({bgLayout:"linear-gradient(".concat(n.colorBgContainer,", ").concat(n.colorBgLayout," 28%)"),colorTextAppListIcon:n.colorTextSecondary,appListIconHoverBgColor:c==null||(r=c.sider)===null||r===void 0?void 0:r.colorBgMenuItemSelected,colorBgAppListIconHover:io(n.colorTextBase,.04),colorTextAppListIconHover:n.colorTextBase},c),{},{header:R({colorBgHeader:io(n.colorBgElevated,.6),colorBgScrollHeader:io(n.colorBgElevated,.8),colorHeaderTitle:n.colorText,colorBgMenuItemHover:io(n.colorTextBase,.03),colorBgMenuItemSelected:"transparent",colorBgMenuElevated:(c==null||(a=c.header)===null||a===void 0?void 0:a.colorBgHeader)!=="rgba(255, 255, 255, 0.6)"?(o=c.header)===null||o===void 0?void 0:o.colorBgHeader:n.colorBgElevated,colorTextMenuSelected:io(n.colorTextBase,.95),colorBgRightActionsItemHover:io(n.colorTextBase,.03),colorTextRightActionsItem:n.colorTextTertiary,heightLayoutHeader:56,colorTextMenu:n.colorTextSecondary,colorTextMenuSecondary:n.colorTextTertiary,colorTextMenuTitle:n.colorText,colorTextMenuActive:n.colorText},c.header),sider:R({paddingInlineLayoutMenu:8,paddingBlockLayoutMenu:0,colorBgCollapsedButton:n.colorBgElevated,colorTextCollapsedButtonHover:n.colorTextSecondary,colorTextCollapsedButton:io(n.colorTextBase,.25),colorMenuBackground:"transparent",colorMenuItemDivider:io(n.colorTextBase,.06),colorBgMenuItemHover:io(n.colorTextBase,.03),colorBgMenuItemSelected:io(n.colorTextBase,.04),colorTextMenuItemHover:n.colorText,colorTextMenuSelected:io(n.colorTextBase,.95),colorTextMenuActive:n.colorText,colorTextMenu:n.colorTextSecondary,colorTextMenuSecondary:n.colorTextTertiary,colorTextMenuTitle:n.colorText,colorTextSubMenuSelected:io(n.colorTextBase,.95)},c.sider),pageContainer:R({colorBgPageContainer:"transparent",paddingInlinePageContainerContent:((i=c.pageContainer)===null||i===void 0?void 0:i.marginInlinePageContainerContent)||40,paddingBlockPageContainerContent:((l=c.pageContainer)===null||l===void 0?void 0:l.marginBlockPageContainerContent)||32,colorBgPageContainerFixed:n.colorBgElevated},c.pageContainer)})},q$e=function(){for(var t={},n=arguments.length,r=new Array(n),a=0;a1,oe=F.getMessage("form.lightFilter.itemUnit","项");return typeof Z=="string"&&Z.length>$&&se?"...".concat(W.length).concat(oe):""},re=ee();return U.jsxs("span",{title:typeof Z=="string"?Z:void 0,style:{display:"inline-flex",alignItems:"center"},children:[Y,U.jsx("span",{style:{paddingInlineStart:4,display:"flex"},children:typeof Z=="string"?Z==null||(G=Z.toString())===null||G===void 0||(X=G.slice)===null||X===void 0?void 0:X.call(G,0,$):Z}),re]})}return K||m};return L(U.jsxs("span",{className:le(N,_,"".concat(N,"-").concat((a=(o=t.size)!==null&&o!==void 0?o:M)!==null&&a!==void 0?a:"middle"),q(q(q(q({},"".concat(N,"-active"),(Array.isArray(c)?c.length>0:!!c)||c===0),"".concat(N,"-disabled"),u),"".concat(N,"-bordered"),b),"".concat(N,"-allow-clear"),x),g),style:p,ref:k,onClick:function(){var K;t==null||(K=t.onClick)===null||K===void 0||K.call(t)},children:[H(i,c),(c||c===0)&&x&&U.jsx(_i,{role:"button",title:F.getMessage("form.lightFilter.clear","清除"),className:le("".concat(N,"-icon"),_,"".concat(N,"-close")),onClick:function(K){u||l?.(),K.stopPropagation()},ref:j}),S!==!1?S??U.jsx(Ri,{className:le("".concat(N,"-icon"),_,"".concat(N,"-arrow"))}):null]}))},Li=Q.forwardRef(oEe),Tr=function(t){var n={};if(Object.keys(t||{}).forEach(function(r){t[r]!==void 0&&(n[r]=t[r])}),!(Object.keys(n).length<1))return n},iEe=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,e5=function(t){return t==="*"||t==="x"||t==="X"},t5=function(t){var n=parseInt(t,10);return isNaN(n)?t:n},lEe=function(t,n){return st(t)!==st(n)?[String(t),String(n)]:[t,n]},sEe=function(t,n){if(e5(t)||e5(n))return 0;var r=lEe(t5(t),t5(n)),a=fe(r,2),o=a[0],i=a[1];return o>i?1:o"u"?ri:((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:t.ANTD_VERSION)||ri},Fv=function(t,n){var r=ml(gB(),"4.23.0")>-1?{open:t,onOpenChange:n}:{visible:t,onVisibleChange:n};return Tr(r)},uEe=function(t){return q(q(q({},"".concat(t.componentCls,"-label"),{cursor:"pointer"}),"".concat(t.componentCls,"-overlay"),{minWidth:"200px",marginBlockStart:"4px"}),"".concat(t.componentCls,"-content"),{paddingBlock:16,paddingInline:16})};function dEe(e){return Yn("FilterDropdown",function(t){var n=R(R({},t),{},{componentCls:".".concat(e)});return[uEe(n)]})}var pB=function(t){var n=t.children,r=t.label,a=t.footer,o=t.open,i=t.onOpenChange,l=t.disabled,c=t.onVisibleChange,u=t.visible,d=t.footerRender,f=t.placement,m=s.useContext(At.ConfigContext),g=m.getPrefixCls,h=g("pro-core-field-dropdown"),b=dEe(h),p=b.wrapSSR,S=b.hashId,C=Fv(o||u||!1,i||c),x=s.useRef(null);return p(U.jsx(Fi,R(R({placement:f,trigger:["click"]},C),{},{styles:{body:{padding:0}},content:U.jsxs("div",{ref:x,className:le("".concat(h,"-overlay"),q(q({},"".concat(h,"-overlay-").concat(f),f),"hashId",S)),children:[U.jsx(At,{getPopupContainer:function(){return x.current||document.body},children:U.jsx("div",{className:"".concat(h,"-content ").concat(S).trim(),children:n})}),a&&U.jsx(nEe,R({disabled:l,footerRender:d},a))]}),children:U.jsx("span",{className:"".concat(h,"-label ").concat(S).trim(),children:r})})))},fEe=function(t){var n="".concat(t.antCls,"-progress-bg");return q({},t.componentCls,{"&-multiple":{paddingBlockStart:6,paddingBlockEnd:12,paddingInline:8},"&-progress":{"&-success":q({},n,{backgroundColor:t.colorSuccess}),"&-error":q({},n,{backgroundColor:t.colorError}),"&-warning":q({},n,{backgroundColor:t.colorWarning})},"&-rule":{display:"flex",alignItems:"center","&-icon":{"&-default":{display:"flex",alignItems:"center",justifyContent:"center",width:"14px",height:"22px","&-circle":{width:"6px",height:"6px",backgroundColor:t.colorTextSecondary,borderRadius:"4px"}},"&-loading":{color:t.colorPrimary},"&-error":{color:t.colorError},"&-success":{color:t.colorSuccess}},"&-text":{color:t.colorText}}})};function vEe(e){return Yn("InlineErrorFormItem",function(t){var n=R(R({},t),{},{componentCls:".".concat(e)});return[fEe(n)]})}var mEe=["rules","name","children","popoverProps"],gEe=["errorType","rules","name","popoverProps","children"],hB={marginBlockStart:-5,marginBlockEnd:-5,marginInlineStart:0,marginInlineEnd:0},pEe=function(t){var n=t.inputProps,r=t.input,a=t.extra,o=t.errorList,i=t.popoverProps,l=s.useState(!1),c=fe(l,2),u=c[0],d=c[1],f=s.useState([]),m=fe(f,2),g=m[0],h=m[1],b=s.useContext(At.ConfigContext),p=b.getPrefixCls,S=p(),C=Ef(),x=vEe("".concat(S,"-form-item-with-help")),w=x.wrapSSR,$=x.hashId;s.useEffect(function(){n.validateStatus!=="validating"&&h(n.errors)},[n.errors,n.validateStatus]);var E=Fv(g.length<1?!1:u,function(M){M!==u&&d(M)}),P=n.validateStatus==="validating";return U.jsx(Fi,R(R(R({trigger:i?.trigger||["click"],placement:i?.placement||"topLeft"},E),{},{getPopupContainer:i?.getPopupContainer,getTooltipContainer:i?.getTooltipContainer,content:w(U.jsx("div",{className:"".concat(S,"-form-item ").concat($," ").concat(C.hashId).trim(),style:{margin:0,padding:0},children:U.jsxs("div",{className:"".concat(S,"-form-item-with-help ").concat($," ").concat(C.hashId).trim(),children:[P?U.jsx(wa,{}):null,o]})}))},i),{},{children:U.jsxs(U.Fragment,{children:[r,a]})}),"popover")},hEe=function(t){var n=t.rules,r=t.name,a=t.children,o=t.popoverProps,i=Ue(t,mEe);return U.jsx(Fn.Item,R(R({name:r,rules:n,hasFeedback:!1,shouldUpdate:function(c,u){if(c===u)return!1;var d=[r].flat(1);d.length>1&&d.pop();try{return JSON.stringify(Dn(c,d))!==JSON.stringify(Dn(u,d))}catch{return!0}},_internalItemRender:{mark:"pro_table_render",render:function(c,u){return U.jsx(pEe,R({inputProps:c,popoverProps:o},u))}}},i),{},{style:R(R({},hB),i?.style),children:a}))},bB=function(t){var n=t.errorType,r=t.rules,a=t.name,o=t.popoverProps,i=t.children,l=Ue(t,gEe);return a&&r!==null&&r!==void 0&&r.length&&n==="popover"?U.jsx(hEe,R(R({name:a,rules:r,popoverProps:o},l),{},{children:i})):U.jsx(Fn.Item,R(R({rules:r,shouldUpdate:a?function(c,u){if(c===u)return!1;var d=[a].flat(1);d.length>1&&d.pop();try{return JSON.stringify(Dn(c,d))!==JSON.stringify(Dn(u,d))}catch{return!0}}:void 0},l),{},{style:R(R({},hB),l.style),name:a,children:i}))},bEe=function(t){return q({},t.componentCls,{display:"inline-flex",alignItems:"center",maxWidth:"100%","&-icon":{display:"block",marginInlineStart:"4px",cursor:"pointer","&:hover":{color:t.colorPrimary}},"&-title":{display:"inline-flex",flex:"1"},"&-subtitle ":{marginInlineStart:8,color:t.colorTextSecondary,fontWeight:"normal",fontSize:t.fontSize,whiteSpace:"nowrap"},"&-title-ellipsis":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",wordBreak:"keep-all"}})};function yEe(e){return Yn("LabelIconTip",function(t){var n=R(R({},t),{},{componentCls:".".concat(e)});return[bEe(n)]})}var Ii=Q.memo(function(e){var t=e.label,n=e.tooltip,r=e.ellipsis,a=e.subTitle,o=s.useContext(At.ConfigContext),i=o.getPrefixCls,l=i("pro-core-label-tip"),c=yEe(l),u=c.wrapSSR,d=c.hashId;if(!n&&!a)return U.jsx(U.Fragment,{children:t});var f=typeof n=="string"||Q.isValidElement(n)?{title:n}:n,m=f?.icon||U.jsx(Txe,{});return u(U.jsxs("div",{className:le(l,d),onMouseDown:function(h){return h.stopPropagation()},onMouseLeave:function(h){return h.stopPropagation()},onMouseMove:function(h){return h.stopPropagation()},children:[U.jsx("div",{className:le("".concat(l,"-title"),d,q({},"".concat(l,"-title-ellipsis"),r)),children:t}),a&&U.jsx("div",{className:"".concat(l,"-subtitle ").concat(d).trim(),children:a}),n&&U.jsx(tr,R(R({},f),{},{children:U.jsx("span",{className:"".concat(l,"-icon ").concat(d).trim(),children:m})}))]}))}),kv=Q.createContext({}),dp={exports:{}},CEe=dp.exports,r5;function SEe(){return r5||(r5=1,(function(e,t){(function(n,r){e.exports=r()})(CEe,(function(){var n="month",r="quarter";return function(a,o){var i=o.prototype;i.quarter=function(u){return this.$utils().u(u)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(u-1))};var l=i.add;i.add=function(u,d){return u=Number(u),this.$utils().p(d)===r?this.add(3*u,n):l.bind(this)(u,d)};var c=i.startOf;i.startOf=function(u,d){var f=this.$utils(),m=!!f.u(d)||d;if(f.p(u)===r){var g=this.quarter()-1;return m?this.month(3*g).startOf(n).startOf("day"):this.month(3*g+2).endOf(n).endOf("day")}return c.bind(this)(u,d)}}}))})(dp)),dp.exports}var xEe=SEe();const wEe=Lr(xEe);var ts=function(t){return t==null};xn.extend(wEe);var yB={time:"HH:mm:ss",timeRange:"HH:mm:ss",date:"YYYY-MM-DD",dateWeek:"YYYY-wo",dateMonth:"YYYY-MM",dateQuarter:"YYYY-[Q]Q",dateYear:"YYYY",dateRange:"YYYY-MM-DD",dateTime:"YYYY-MM-DD HH:mm:ss",dateTimeRange:"YYYY-MM-DD HH:mm:ss"};function a5(e){return Object.prototype.toString.call(e)==="[object Object]"}function $Ee(e){if(a5(e)===!1)return!1;var t=e.constructor;if(t===void 0)return!0;var n=t.prototype;return!(a5(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)}var S$=function(t){return!!(t!=null&&t._isAMomentObject)},o5=function(t,n,r){if(!n)return t;if(xn.isDayjs(t)||S$(t)){if(n==="number")return t.valueOf();if(n==="string")return t.format(yB[r]||"YYYY-MM-DD HH:mm:ss");if(typeof n=="string"&&n!=="string")return t.format(n);if(typeof n=="function")return n(t,r)}return t},EEe=function e(t,n,r,a,o){var i={};return typeof window>"u"||st(t)!=="object"||ts(t)||t instanceof Blob||Array.isArray(t)?t:(Object.keys(t).forEach(function(l){var c=o?[o,l].flat(1):[l],u=Dn(r,c)||"text",d="text",f;typeof u=="string"?d=u:(d=u.valueType,f=u.dateFormat);var m=t[l];if(!(ts(m)&&a)){if($Ee(m)&&!Array.isArray(m)&&!xn.isDayjs(m)&&!S$(m)){i[l]=e(m,n,r,a,c);return}if(Array.isArray(m)){i[l]=m.map(function(g,h){return xn.isDayjs(g)||S$(g)?o5(g,f||n,d):e(g,n,r,a,[l,"".concat(h)].flat(1))});return}i[l]=o5(m,f||n,d)}}),i)},i5=function(t,n){return typeof n=="function"?n(xn(t)):xn(t).format(n)},PEe=function(t,n){var r=Array.isArray(t)?t:[],a=fe(r,2),o=a[0],i=a[1],l,c;Array.isArray(n)?(l=n[0],c=n[1]):st(n)==="object"&&n.type==="mask"?(l=n.format,c=n.format):(l=n,c=n);var u=o?i5(o,l):"",d=i?i5(i,c):"",f=u&&d?"".concat(u," ~ ").concat(d):"";return f},OEe=function(t){var n;return!!(t!=null&&(n=t.valueType)!==null&&n!==void 0&&n.toString().startsWith("date")||t?.valueType==="select"||t!=null&&t.valueEnum)},REe=function(t){var n;return((n=t.ellipsis)===null||n===void 0?void 0:n.showTitle)===!1?!1:t.ellipsis},CB=function(t,n,r){if(n.copyable||n.ellipsis){var a=n.copyable&&r?{text:r,tooltips:["",""]}:void 0,o=OEe(n),i=REe(n)&&r?{tooltip:n?.tooltip!==!1&&o?U.jsx("div",{className:"pro-table-tooltip-text",children:t}):r}:!1;return U.jsx(id.Text,{style:{width:"100%",margin:0,padding:0},title:"",copyable:a,ellipsis:i,children:t})}return t};function Gr(e){if(typeof e=="function"){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r-1?{menu:t}:{overlay:U.jsx(ec,R({},t))};return Tr(n)},Mn=function(t){var n=s.useRef(null);return n.current=t,s.useCallback(function(){for(var r,a=arguments.length,o=new Array(a),i=0;i1&&arguments[1]!==void 0?arguments[1]:100,n=arguments.length>2?arguments[2]:void 0,r=s.useState(e),a=fe(r,2),o=a[0],i=a[1],l=X4(e);return s.useEffect(function(){var c=setTimeout(function(){i(l.current)},t);return function(){return clearTimeout(c)}},n?[t].concat(Te(n)):void 0),o}function il(e,t,n,r){if(e===t)return!0;if(e&&t&&st(e)==="object"&&st(t)==="object"){if(e.constructor!==t.constructor)return!1;var a,o,i;if(Array.isArray(e)){if(a=e.length,a!=t.length)return!1;for(o=a;o--!==0;)if(!il(e[o],t[o],n,r))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;var l=xi(e.entries()),c;try{for(l.s();!(c=l.n()).done;)if(o=c.value,!t.has(o[0]))return!1}catch(h){l.e(h)}finally{l.f()}var u=xi(e.entries()),d;try{for(u.s();!(d=u.n()).done;)if(o=d.value,!il(o[1],t.get(o[0]),n,r))return!1}catch(h){u.e(h)}finally{u.f()}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;var f=xi(e.entries()),m;try{for(f.s();!(m=f.n()).done;)if(o=m.value,!t.has(o[0]))return!1}catch(h){f.e(h)}finally{f.f()}return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(a=e.length,a!=t.length)return!1;for(o=a;o--!==0;)if(e[o]!==t[o])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&e.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&e.toString)return e.toString()===t.toString();if(i=Object.keys(e),a=i.length,a!==Object.keys(t).length)return!1;for(o=a;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[o]))return!1;for(o=a;o--!==0;){var g=i[o];if(!(n!=null&&n.includes(g))&&!(g==="_owner"&&e.$$typeof)&&!il(e[g],t[g],n,r))return!1}return!0}return e!==e&&t!==t}var MEe=function(t,n,r){return il(t,n,r)};function Y4(e,t){var n=s.useRef();return MEe(e,n.current,t)||(n.current=e),n.current}function Vp(e,t,n){s.useEffect(e,Y4(t||[],n))}function SB(e,t,n,r){var a=G4(en(ut().mark(function o(){return ut().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:e();case 1:case"end":return l.stop()}},o)})),r||16);s.useEffect(function(){a.run()},Y4(t||[],n))}function ya(e,t){return Q.useMemo(e,Y4(t))}var TEe=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,Q4=function(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.matchMedia<"u"&&!TEe},rC=0;function NEe(e){var t=s.useRef(null),n=s.useState(function(){return e.proFieldKey?e.proFieldKey.toString():(rC+=1,rC.toString())}),r=fe(n,1),a=r[0],o=s.useRef(a),i=(function(){var d=en(ut().mark(function f(){var m,g,h,b;return ut().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return(m=t.current)===null||m===void 0||m.abort(),h=new AbortController,t.current=h,S.next=5,Promise.race([(g=e.request)===null||g===void 0?void 0:g.call(e,e.params,e),new Promise(function(C,x){var w;(w=t.current)===null||w===void 0||(w=w.signal)===null||w===void 0||w.addEventListener("abort",function(){x(new Error("aborted"))})})]);case 5:return b=S.sent,S.abrupt("return",b);case 7:case"end":return S.stop()}},f)}));return function(){return d.apply(this,arguments)}})();s.useEffect(function(){return function(){rC+=1}},[]);var l=cB([o.current,e.params],i,{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),c=l.data,u=l.error;return[c||u]}var Pf=function(t){var n=s.useRef();return s.useEffect(function(){n.current=t}),n.current};function _Ee(){var e=s.useState(!0),t=fe(e,2),n=t[1],r=s.useCallback(function(){return n(function(a){return!a})},[]);return r}function jEe(e,t){var n=s.useMemo(function(){var r={current:t};return new Proxy(r,{set:function(o,i,l){return Object.is(o[i],l)||(o[i]=l,e(n)),!0}})},[]);return n}function DEe(e){var t=_Ee(),n=jEe(t,e);return n}var FEe=function(t){var n=!1;return(typeof t=="string"&&t.startsWith("date")&&!t.endsWith("Range")||t==="select"||t==="time")&&(n=!0),n},S0=function(){for(var t={},n=arguments.length,r=new Array(n),a=0;a0&&arguments[0]!==void 0?arguments[0]:21;if(typeof window>"u"||!window.crypto)return(l5+=1).toFixed(0);for(var n="",r=crypto.getRandomValues(new Uint8Array(t));t--;){var a=63&r[t];n+=a<36?a.toString(36):a<62?(a-26).toString(36).toUpperCase():a<63?"_":"-"}return n},Qf=function(){return typeof window>"u"?s5():window.crypto&&window.crypto.randomUUID&&typeof crypto.randomUUID=="function"?crypto.randomUUID():s5()},xB=function(t){if(t&&t!==!0)return t},kEe=function(t){var n={};return Object.keys(t||{}).forEach(function(r){var a;Array.isArray(t[r])&&((a=t[r])===null||a===void 0?void 0:a.length)===0||t[r]!==void 0&&(n[r]=t[r])}),n};xn.extend(aL);var c5=function(t){return!!(t!=null&&t._isAMomentObject)},Lv=function e(t,n){return ts(t)||xn.isDayjs(t)||c5(t)?c5(t)?xn(t):t:Array.isArray(t)?t.map(function(r){return e(r,n)}):typeof t=="number"?xn(t):xn(t,n)},LEe=["colon","dependencies","extra","getValueFromEvent","getValueProps","hasFeedback","help","htmlFor","initialValue","noStyle","label","labelAlign","labelCol","name","preserve","normalize","required","rules","shouldUpdate","trigger","validateFirst","validateStatus","validateTrigger","valuePropName","wrapperCol","hidden","validateDebounce","addonBefore","addonAfter","addonWarpStyle"];function zEe(e){var t={};return LEe.forEach(function(n){e[n]!==void 0&&(t[n]=e[n])}),t}var AEe="valueType request plain renderFormItem render text formItemProps valueEnum",BEe="fieldProps isDefaultDom groupProps contentRender submitterProps submitter";function wB(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n="".concat(AEe," ").concat(BEe).split(/[\s\n]+/),r={};return Object.keys(e||{}).forEach(function(a){n.includes(a)&&!t||(r[a]=e[a])}),r}function HEe(e){var t=Object.prototype.toString.call(e).match(/^\[object (.*)\]$/)[1].toLowerCase();return t==="string"&&st(e)==="object"?"object":e===null?"null":e===void 0?"undefined":t}var VEe=function(t){var n=t.color,r=t.children;return U.jsx(so,{color:n,text:r})},gl=function(t){return HEe(t)==="map"?t:new Map(Object.entries(t||{}))},WEe={Success:function(t){var n=t.children;return U.jsx(so,{status:"success",text:n})},Error:function(t){var n=t.children;return U.jsx(so,{status:"error",text:n})},Default:function(t){var n=t.children;return U.jsx(so,{status:"default",text:n})},Processing:function(t){var n=t.children;return U.jsx(so,{status:"processing",text:n})},Warning:function(t){var n=t.children;return U.jsx(so,{status:"warning",text:n})},success:function(t){var n=t.children;return U.jsx(so,{status:"success",text:n})},error:function(t){var n=t.children;return U.jsx(so,{status:"error",text:n})},default:function(t){var n=t.children;return U.jsx(so,{status:"default",text:n})},processing:function(t){var n=t.children;return U.jsx(so,{status:"processing",text:n})},warning:function(t){var n=t.children;return U.jsx(so,{status:"warning",text:n})}},ld=function e(t,n,r){if(Array.isArray(t))return U.jsx(Qr,{split:",",size:2,wrap:!0,children:t.map(function(u,d){return e(u,n,d)})},r);var a=gl(n);if(!a.has(t)&&!a.has("".concat(t)))return t?.label||t;var o=a.get(t)||a.get("".concat(t));if(!o)return U.jsx(Q.Fragment,{children:t?.label||t},r);var i=o.status,l=o.color,c=WEe[i||"Init"];return c?U.jsx(c,{children:o.text},r):l?U.jsx(VEe,{color:l,children:o.text},r):U.jsx(Q.Fragment,{children:o.text||o},r)},Tg={exports:{}},u5;function KEe(){return u5||(u5=1,(function(e,t){const{hasOwnProperty:n}=Object.prototype,r=S();r.configure=S,r.stringify=r,r.default=r,t.stringify=r,t.configure=S,e.exports=r;const a=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function o(C){return C.length<5e3&&!a.test(C)?`"${C}"`:JSON.stringify(C)}function i(C,x){if(C.length>200||x)return C.sort(x);for(let w=1;w$;)C[E]=C[E-1],E--;C[E]=$}return C}const l=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function c(C){return l.call(C)!==void 0&&C.length!==0}function u(C,x,w){C.length= 1`)}return w===void 0?1/0:w}function h(C){return C===1?"1 item":`${C} items`}function b(C){const x=new Set;for(const w of C)(typeof w=="string"||typeof w=="number")&&x.add(String(w));return x}function p(C){if(n.call(C,"strict")){const x=C.strict;if(typeof x!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(x)return w=>{let $=`Object can not safely be stringified. Received type ${typeof w}`;throw typeof w!="function"&&($+=` (${w.toString()})`),new Error($)}}}function S(C){C={...C};const x=p(C);x&&(C.bigint===void 0&&(C.bigint=!1),"circularValue"in C||(C.circularValue=Error));const w=d(C),$=m(C,"bigint"),E=f(C),P=typeof E=="function"?E:void 0,M=g(C,"maximumDepth"),O=g(C,"maximumBreadth");function T(F,j,k,z,V,H){let B=j[F];switch(typeof B=="object"&&B!==null&&typeof B.toJSON=="function"&&(B=B.toJSON(F)),B=z.call(j,F,B),typeof B){case"string":return o(B);case"object":{if(B===null)return"null";if(k.indexOf(B)!==-1)return w;let K="",W=",";const G=H;if(Array.isArray(B)){if(B.length===0)return"[]";if(MO){const me=B.length-O-1;K+=`${W}"... ${h(me)} not stringified"`}return V!==""&&(K+=` -${G}`),k.pop(),`[${K}]`}let X=Object.keys(B);const Y=X.length;if(Y===0)return"{}";if(MO){const ne=Y-O;K+=`${ee}"...":${Z}"${h(ne)} not stringified"`,ee=W}return V!==""&&ee.length>1&&(K=` -${H}${K} -${G}`),k.pop(),`{${K}}`}case"number":return isFinite(B)?String(B):x?x(B):"null";case"boolean":return B===!0?"true":"false";case"undefined":return;case"bigint":if($)return String(B);default:return x?x(B):void 0}}function N(F,j,k,z,V,H){switch(typeof j=="object"&&j!==null&&typeof j.toJSON=="function"&&(j=j.toJSON(F)),typeof j){case"string":return o(j);case"object":{if(j===null)return"null";if(k.indexOf(j)!==-1)return w;const B=H;let K="",W=",";if(Array.isArray(j)){if(j.length===0)return"[]";if(MO){const re=j.length-O-1;K+=`${W}"... ${h(re)} not stringified"`}return V!==""&&(K+=` -${B}`),k.pop(),`[${K}]`}k.push(j);let G="";V!==""&&(H+=V,W=`, -${H}`,G=" ");let X="";for(const Y of z){const Z=N(Y,j[Y],k,z,V,H);Z!==void 0&&(K+=`${X}${o(Y)}:${G}${Z}`,X=W)}return V!==""&&X.length>1&&(K=` -${H}${K} -${B}`),k.pop(),`{${K}}`}case"number":return isFinite(j)?String(j):x?x(j):"null";case"boolean":return j===!0?"true":"false";case"undefined":return;case"bigint":if($)return String(j);default:return x?x(j):void 0}}function D(F,j,k,z,V){switch(typeof j){case"string":return o(j);case"object":{if(j===null)return"null";if(typeof j.toJSON=="function"){if(j=j.toJSON(F),typeof j!="object")return D(F,j,k,z,V);if(j===null)return"null"}if(k.indexOf(j)!==-1)return w;const H=V;if(Array.isArray(j)){if(j.length===0)return"[]";if(MO){const oe=j.length-O-1;Z+=`${ee}"... ${h(oe)} not stringified"`}return Z+=` -${H}`,k.pop(),`[${Z}]`}let B=Object.keys(j);const K=B.length;if(K===0)return"{}";if(MO){const Z=K-O;G+=`${X}"...": "${h(Z)} not stringified"`,X=W}return X!==""&&(G=` -${V}${G} -${H}`),k.pop(),`{${G}}`}case"number":return isFinite(j)?String(j):x?x(j):"null";case"boolean":return j===!0?"true":"false";case"undefined":return;case"bigint":if($)return String(j);default:return x?x(j):void 0}}function L(F,j,k){switch(typeof j){case"string":return o(j);case"object":{if(j===null)return"null";if(typeof j.toJSON=="function"){if(j=j.toJSON(F),typeof j!="object")return L(F,j,k);if(j===null)return"null"}if(k.indexOf(j)!==-1)return w;let z="";const V=j.length!==void 0;if(V&&Array.isArray(j)){if(j.length===0)return"[]";if(MO){const Z=j.length-O-1;z+=`,"... ${h(Z)} not stringified"`}return k.pop(),`[${z}]`}let H=Object.keys(j);const B=H.length;if(B===0)return"{}";if(MO){const G=B-O;z+=`${K}"...":"${h(G)} not stringified"`}return k.pop(),`{${z}}`}case"number":return isFinite(j)?String(j):x?x(j):"null";case"boolean":return j===!0?"true":"false";case"undefined":return;case"bigint":if($)return String(j);default:return x?x(j):void 0}}function _(F,j,k){if(arguments.length>1){let z="";if(typeof k=="number"?z=" ".repeat(Math.min(k,10)):typeof k=="string"&&(z=k.slice(0,10)),j!=null){if(typeof j=="function")return T("",{"":F},[],j,z,"");if(Array.isArray(j))return N("",F,[],b(j),z,"")}if(z.length!==0)return D("",F,[],z,"")}return L("",F,[])}return _}})(Tg,Tg.exports)),Tg.exports}var qEe=KEe();const UEe=Lr(qEe),GEe=UEe.configure;var al=GEe({bigint:!0,circularValue:"Magic circle!",deterministic:!1,maximumDepth:4});function XEe(){this.__data__=[],this.size=0}function zv(e,t){return e===t||e!==e&&t!==t}function x0(e,t){for(var n=e.length;n--;)if(zv(e[n][0],t))return n;return-1}var YEe=Array.prototype,QEe=YEe.splice;function ZEe(e){var t=this.__data__,n=x0(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():QEe.call(t,n,1),--this.size,!0}function JEe(e){var t=this.__data__,n=x0(t,e);return n<0?void 0:t[n][1]}function e4e(e){return x0(this.__data__,e)>-1}function t4e(e,t){var n=this.__data__,r=x0(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function pl(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=c3e}function Av(e){return e!=null&&MB(e.length)&&!Z4(e)}function u3e(e){return Ys(e)&&Av(e)}function d3e(){return!1}var TB=typeof exports=="object"&&exports&&!exports.nodeType&&exports,h5=TB&&typeof module=="object"&&module&&!module.nodeType&&module,f3e=h5&&h5.exports===TB,b5=f3e?zi.Buffer:void 0,v3e=b5?b5.isBuffer:void 0,ev=v3e||d3e,m3e="[object Object]",g3e=Function.prototype,p3e=Object.prototype,NB=g3e.toString,h3e=p3e.hasOwnProperty,b3e=NB.call(Object);function y3e(e){if(!Ys(e)||sd(e)!=m3e)return!1;var t=RB(e);if(t===null)return!0;var n=h3e.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&NB.call(n)==b3e}var C3e="[object Arguments]",S3e="[object Array]",x3e="[object Boolean]",w3e="[object Date]",$3e="[object Error]",E3e="[object Function]",P3e="[object Map]",O3e="[object Number]",R3e="[object Object]",I3e="[object RegExp]",M3e="[object Set]",T3e="[object String]",N3e="[object WeakMap]",_3e="[object ArrayBuffer]",j3e="[object DataView]",D3e="[object Float32Array]",F3e="[object Float64Array]",k3e="[object Int8Array]",L3e="[object Int16Array]",z3e="[object Int32Array]",A3e="[object Uint8Array]",B3e="[object Uint8ClampedArray]",H3e="[object Uint16Array]",V3e="[object Uint32Array]",pr={};pr[D3e]=pr[F3e]=pr[k3e]=pr[L3e]=pr[z3e]=pr[A3e]=pr[B3e]=pr[H3e]=pr[V3e]=!0;pr[C3e]=pr[S3e]=pr[_3e]=pr[x3e]=pr[j3e]=pr[w3e]=pr[$3e]=pr[E3e]=pr[P3e]=pr[O3e]=pr[R3e]=pr[I3e]=pr[M3e]=pr[T3e]=pr[N3e]=!1;function W3e(e){return Ys(e)&&MB(e.length)&&!!pr[sd(e)]}function K3e(e){return function(t){return e(t)}}var _B=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Of=_B&&typeof module=="object"&&module&&!module.nodeType&&module,q3e=Of&&Of.exports===_B,oC=q3e&&$B.process,y5=(function(){try{var e=Of&&Of.require&&Of.require("util").types;return e||oC&&oC.binding&&oC.binding("util")}catch{}})(),C5=y5&&y5.isTypedArray,E0=C5?K3e(C5):W3e;function w$(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var U3e=Object.prototype,G3e=U3e.hasOwnProperty;function X3e(e,t,n){var r=e[t];(!(G3e.call(e,t)&&zv(r,n))||n===void 0&&!(t in e))&&J4(e,t,n)}function Y3e(e,t,n,r){var a=!n;n||(n={});for(var o=-1,i=t.length;++o-1&&e%1==0&&e0){if(++t>=fPe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var pPe=gPe(dPe);function hPe(e,t){return pPe(cPe(e,t,LB),e+"")}function bPe(e,t,n){if(!sc(n))return!1;var r=typeof t;return(r=="number"?Av(n)&&jB(t,n.length):r=="string"&&t in n)?zv(n[t],e):!1}function yPe(e){return hPe(function(t,n){var r=-1,a=n.length,o=a>1?n[a-1]:void 0,i=a>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(a--,o):void 0,i&&bPe(n[0],n[1],i)&&(o=a<3?void 0:o,a=1),t=Object(t);++r2&&arguments[2]!==void 0?arguments[2]:!0,a=Object.keys(n).reduce(function(l,c){var u=n[c];return ts(u)||(l[c]=u),l},{});if(Object.keys(a).length<1||typeof window>"u"||st(t)!=="object"||ts(t)||t instanceof Blob)return t;var o=Array.isArray(t)?[]:{},i=function l(c,u){var d=Array.isArray(c),f=d?[]:{};return c==null||c===void 0?f:(Object.keys(c).forEach(function(m){var g=function x(w,$){return Array.isArray(w)&&w.forEach(function(E,P){if(E){var M=$?.[P];typeof E=="function"&&($[P]=E($,m,c)),st(E)==="object"&&!Array.isArray(E)&&Object.keys(E).forEach(function(O){var T=M?.[O];if(typeof E[O]=="function"&&T){var N=E[O](M[O],m,c);M[O]=st(N)==="object"?N[O]:N}else st(E[O])==="object"&&Array.isArray(E[O])&&T&&x(E[O],T)}),st(E)==="object"&&Array.isArray(E)&&M&&x(E,M)}}),m},h=u?[u,m].flat(1):[m].flat(1),b=c[m],p=Dn(a,h),S=function(){var w,$,E=!1;if(typeof p=="function"){$=p?.(b,m,c);var P=st($);P!=="object"&&P!=="undefined"?(w=m,E=!0):w=$}else w=g(p,b);if(Array.isArray(w)){f=sr(f,w,b);return}st(w)==="object"&&!Array.isArray(o)?o=$$(o,w):st(w)==="object"&&Array.isArray(o)?f=R(R({},f),w):(w!==null||w!==void 0)&&(f=sr(f,[w],E?$:b))};if(p&&typeof p=="function"&&S(),!(typeof window>"u")){if(CPe(b)){var C=l(b,h);if(Object.keys(C).length<1)return;f=sr(f,[m],C);return}S()}}),r?f:c)};return o=Array.isArray(t)&&Array.isArray(o)?Te(i(t)):S0({},i(t),o),o},fo=function(t){return t===void 0?{}:ml(ri,"5.13.0")<=0?{bordered:t}:{variant:t?void 0:"borderless"}},xPe=["map_row_parentKey"],wPe=["map_row_parentKey","map_row_key"],$Pe=["map_row_key"],iC=function(t){return(Gf.warn||Gf.warning)(t)},ca=function(t){return Array.isArray(t)?t.join(","):t};function vf(e,t){var n,r=e.getRowKey,a=e.row,o=e.data,i=e.childrenColumnName,l=i===void 0?"children":i,c=(n=ca(e.key))===null||n===void 0?void 0:n.toString(),u=new Map;function d(m,g,h){m.forEach(function(b,p){var S=(h||0)*10+p,C=r(b,S).toString();b&&st(b)==="object"&&l in b&&d(b[l]||[],C,S);var x=R(R({},b),{},{map_row_key:C,children:void 0,map_row_parentKey:g});delete x.children,g||delete x.map_row_parentKey,u.set(C,x)})}t==="top"&&u.set(c,R(R({},u.get(c)),a)),d(o),t==="update"&&u.set(c,R(R({},u.get(c)),a)),t==="delete"&&u.delete(c);var f=function(g){var h=new Map,b=[],p=function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;g.forEach(function(x){if(x.map_row_parentKey&&!x.map_row_key){var w=x.map_row_parentKey,$=Ue(x,xPe);if(h.has(w)||h.set(w,[]),C){var E;(E=h.get(w))===null||E===void 0||E.push($)}}})};return p(t==="top"),g.forEach(function(S){if(S.map_row_parentKey&&S.map_row_key){var C,x=S.map_row_parentKey,w=S.map_row_key,$=Ue(S,wPe);h.has(w)&&($[l]=h.get(w)),h.has(x)||h.set(x,[]),(C=h.get(x))===null||C===void 0||C.push($)}}),p(t==="update"),g.forEach(function(S){if(!S.map_row_parentKey){var C=S.map_row_key,x=Ue(S,$Pe);if(C&&h.has(C)){var w=R(R({},x),{},q({},l,h.get(C)));b.push(w);return}b.push(x)}}),b};return f(u)}function EPe(e,t){var n=e.recordKey,r=e.onSave,a=e.row,o=e.children,i=e.newLineConfig,l=e.editorType,c=e.tableName,u=s.useContext(kv),d=Fn.useFormInstance(),f=Tt(!1),m=fe(f,2),g=m[0],h=m[1],b=Mn(en(ut().mark(function p(){var S,C,x,w,$,E,P,M,O;return ut().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return N.prev=0,C=l==="Map",x=[c,Array.isArray(n)?n[0]:n].map(function(D){return D?.toString()}).flat(1).filter(Boolean),h(!0),N.next=6,d.validateFields(x,{recursive:!0});case 6:return w=(u==null||(S=u.getFieldFormatValue)===null||S===void 0?void 0:S.call(u,x))||d.getFieldValue(x),Array.isArray(n)&&n.length>1&&($=eE(n),E=$.slice(1),P=Dn(w,E),sr(w,E,P)),M=C?sr({},x,w):w,N.next=11,r?.(n,S0({},a,M),a,i);case 11:return O=N.sent,h(!1),N.abrupt("return",O);case 16:throw N.prev=16,N.t0=N.catch(0),console.log(N.t0),h(!1),N.t0;case 21:case"end":return N.stop()}},p,null,[[0,16]])})));return s.useImperativeHandle(t,function(){return{save:b}},[b]),U.jsxs("a",{onClick:(function(){var p=en(ut().mark(function S(C){return ut().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return C.stopPropagation(),C.preventDefault(),w.prev=2,w.next=5,b();case 5:w.next=9;break;case 7:w.prev=7,w.t0=w.catch(2);case 9:case"end":return w.stop()}},S,null,[[2,7]])}));return function(S){return p.apply(this,arguments)}})(),children:[g?U.jsx(wa,{style:{marginInlineEnd:8}}):null,o||"保存"]},"save")}var PPe=function(t){var n=t.recordKey,r=t.onDelete,a=t.preEditRowRef,o=t.row,i=t.children,l=t.deletePopconfirmMessage,c=Tt(function(){return!1}),u=fe(c,2),d=u[0],f=u[1],m=Mn(en(ut().mark(function g(){var h;return ut().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.prev=0,f(!0),p.next=4,r?.(n,o);case 4:return h=p.sent,f(!1),p.abrupt("return",h);case 9:return p.prev=9,p.t0=p.catch(0),console.log(p.t0),f(!1),p.abrupt("return",null);case 14:return p.prev=14,a&&(a.current=null),p.finish(14);case 17:case"end":return p.stop()}},g,null,[[0,9,14,17]])})));return i!==!1?U.jsx(Bz,{title:l,onConfirm:function(){return m()},children:U.jsxs("a",{children:[d?U.jsx(wa,{style:{marginInlineEnd:8}}):null,i||"删除"]})},"delete"):null},OPe=function(t){var n=t.recordKey,r=t.tableName,a=t.newLineConfig,o=t.editorType,i=t.onCancel,l=t.cancelEditable,c=t.row,u=t.cancelText,d=t.preEditRowRef,f=s.useContext(kv),m=Fn.useFormInstance();return U.jsx("a",{onClick:(function(){var g=en(ut().mark(function h(b){var p,S,C,x,w,$,E;return ut().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return b.stopPropagation(),b.preventDefault(),S=o==="Map",C=[r,n].flat(1).filter(Boolean),x=(f==null||(p=f.getFieldFormatValue)===null||p===void 0?void 0:p.call(f,C))||m?.getFieldValue(C),w=S?sr({},C,x):x,M.next=8,i?.(n,w,c,a);case 8:return $=M.sent,M.next=11,l(n);case 11:if(d?.current===null){M.next=15;break}m.setFieldsValue(sr({},C,d?.current)),M.next=17;break;case 15:return M.next=17,(E=t.onDelete)===null||E===void 0?void 0:E.call(t,n,c);case 17:return d&&(d.current=null),M.abrupt("return",$);case 19:case"end":return M.stop()}},h)}));return function(h){return g.apply(this,arguments)}})(),children:u||"取消"},"cancel")};function zB(e,t){var n=t.recordKey,r=t.newLineConfig,a=t.saveText,o=t.deleteText,i=s.forwardRef(EPe),l=s.createRef();return{save:U.jsx(i,R(R({},t),{},{row:e,ref:l,children:a}),"save"+n),saveRef:l,delete:r?.options.recordKey!==n?U.jsx(PPe,R(R({},t),{},{row:e,children:o}),"delete"+n):void 0,cancel:U.jsx(OPe,R(R({},t),{},{row:e}),"cancel"+n)}}function RPe(e){var t=Rn(),n=s.useRef(null),r=s.useState(void 0),a=fe(r,2),o=a[0],i=a[1],l=function(){var G=new Map,X=function Y(Z,ee){Z?.forEach(function(re,ne){var se,oe=ee==null?ne.toString():ee+"_"+ne.toString();G.set(oe,ca(e.getRowKey(re,-1))),G.set((se=ca(e.getRowKey(re,-1)))===null||se===void 0?void 0:se.toString(),oe),e.childrenColumnName&&re!==null&&re!==void 0&&re[e.childrenColumnName]&&Y(re[e.childrenColumnName],oe)})};return X(e.dataSource),G},c=s.useMemo(function(){return l()},[]),u=s.useRef(c),d=s.useRef(void 0);SB(function(){u.current=l()},[e.dataSource]),d.current=o;var f=e.type||"single",m=TA(e.dataSource,"children",e.getRowKey),g=fe(m,1),h=g[0],b=Tt([],{value:e.editableKeys,onChange:e.onChange?function(W){var G,X,Y;e==null||(G=e.onChange)===null||G===void 0||G.call(e,(X=W?.filter(function(Z){return Z!==void 0}))!==null&&X!==void 0?X:[],(Y=W?.map(function(Z){return h(Z)}).filter(function(Z){return Z!==void 0}))!==null&&Y!==void 0?Y:[])}:void 0}),p=fe(b,2),S=p[0],C=p[1],x=s.useMemo(function(){var W=f==="single"?S?.slice(0,1):S;return new Set(W)},[(S||[]).join(","),f]),w=Pf(S),$=Mn(function(W){var G,X,Y,Z,ee=(G=e.getRowKey(W,W.index))===null||G===void 0||(X=G.toString)===null||X===void 0?void 0:X.call(G),re=(Y=e.getRowKey(W,-1))===null||Y===void 0||(Z=Y.toString)===null||Z===void 0?void 0:Z.call(Y),ne=S?.map(function(me){return me?.toString()}),se=w?.map(function(me){return me?.toString()})||[],oe=e.tableName&&!!(se!=null&&se.includes(re))||!!(se!=null&&se.includes(ee));return{recordKey:re,isEditable:e.tableName&&ne?.includes(re)||ne?.includes(ee),preIsEditable:oe}}),E=Mn(function(W,G){var X,Y;return x.size>0&&f==="single"&&e.onlyOneLineEditorAlertMessage!==!1?(iC(e.onlyOneLineEditorAlertMessage||t.getMessage("editableTable.onlyOneLineEditor","只能同时编辑一行")),!1):(x.add(W),C(Array.from(x)),n.current=(X=G??((Y=e.dataSource)===null||Y===void 0?void 0:Y.find(function(Z,ee){return e.getRowKey(Z,ee)===W})))!==null&&X!==void 0?X:null,!0)}),P=Mn((function(){var W=en(ut().mark(function G(X,Y){var Z,ee;return ut().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:if(Z=ca(X).toString(),ee=u.current.get(Z),!(!x.has(Z)&&ee&&(Y??!0)&&e.tableName)){ne.next=5;break}return P(ee,!1),ne.abrupt("return");case 5:return o&&o.options.recordKey===X&&i(void 0),x.delete(Z),x.delete(ca(X)),C(Array.from(x)),ne.abrupt("return",!0);case 10:case"end":return ne.stop()}},G)}));return function(G,X){return W.apply(this,arguments)}})()),M=G4(en(ut().mark(function W(){var G,X,Y,Z,ee=arguments;return ut().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:for(X=ee.length,Y=new Array(X),Z=0;Z0&&f==="single"&&e.onlyOneLineEditorAlertMessage!==!1)return iC(e.onlyOneLineEditorAlertMessage||t.getMessage("editableTable.onlyOneLineEditor","只能同时编辑一行")),!1;var X=e.getRowKey(W,-1);if(!X&&X!==0)throw Ia(!!X,`请设置 recordCreatorProps.record 并返回一个唯一的key - https://procomponents.ant.design/components/editable-table#editable-%E6%96%B0%E5%BB%BA%E8%A1%8C`),new Error("请设置 recordCreatorProps.record 并返回一个唯一的key");if(x.add(X),C(Array.from(x)),G?.newRecordType==="dataSource"||e.tableName){var Y,Z={data:e.dataSource,getRowKey:e.getRowKey,row:R(R({},W),{},{map_row_parentKey:G!=null&&G.parentKey?(Y=ca(G?.parentKey))===null||Y===void 0?void 0:Y.toString():void 0}),key:X,childrenColumnName:e.childrenColumnName||"children"};e.setDataSource(vf(Z,G?.position==="top"?"top":"update"))}else i({defaultValue:W,options:R(R({},G),{},{recordKey:X})});return!0}),L=e?.saveText||t.getMessage("editableTable.action.save","保存"),_=e?.deleteText||t.getMessage("editableTable.action.delete","删除"),F=e?.cancelText||t.getMessage("editableTable.action.cancel","取消"),j=Mn((function(){var W=en(ut().mark(function G(X,Y,Z,ee){var re,ne,se,oe,me,ue,de;return ut().wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return ie.next=2,e==null||(re=e.onSave)===null||re===void 0?void 0:re.call(e,X,Y,Z,ee);case 2:return oe=ie.sent,ie.next=5,P(X);case 5:if(me=ee||d.current||{},ue=me.options,!(!(ue!=null&&ue.parentKey)&&ue?.recordKey===X)){ie.next=9;break}return ue?.position==="top"?e.setDataSource([Y].concat(Te(e.dataSource))):e.setDataSource([].concat(Te(e.dataSource),[Y])),ie.abrupt("return",oe);case 9:return de={data:e.dataSource,getRowKey:e.getRowKey,row:ue?R(R({},Y),{},{map_row_parentKey:(ne=ca((se=ue?.parentKey)!==null&&se!==void 0?se:""))===null||ne===void 0?void 0:ne.toString()}):Y,key:X,childrenColumnName:e.childrenColumnName||"children"},e.setDataSource(vf(de,ue?.position==="top"?"top":"update")),ie.next=13,P(X);case 13:return ie.abrupt("return",oe);case 14:case"end":return ie.stop()}},G)}));return function(G,X,Y,Z){return W.apply(this,arguments)}})()),k=Mn((function(){var W=en(ut().mark(function G(X,Y){var Z,ee,re;return ut().wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return ee={data:e.dataSource,getRowKey:e.getRowKey,row:Y,key:X,childrenColumnName:e.childrenColumnName||"children"},se.next=3,e==null||(Z=e.onDelete)===null||Z===void 0?void 0:Z.call(e,X,Y);case 3:return re=se.sent,se.next=6,P(X,!1);case 6:return e.setDataSource(vf(ee,"delete")),se.abrupt("return",re);case 8:case"end":return se.stop()}},G)}));return function(G,X){return W.apply(this,arguments)}})()),z=Mn((function(){var W=en(ut().mark(function G(X,Y,Z,ee){var re,ne;return ut().wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return oe.next=2,e==null||(re=e.onCancel)===null||re===void 0?void 0:re.call(e,X,Y,Z,ee);case 2:return ne=oe.sent,oe.abrupt("return",ne);case 4:case"end":return oe.stop()}},G)}));return function(G,X,Y,Z){return W.apply(this,arguments)}})()),V=e.actionRender&&typeof e.actionRender=="function",H=V?e.actionRender:function(){},B=Mn(H),K=function(G){var X=e.getRowKey(G,G.index),Y={saveText:L,cancelText:F,deleteText:_,addEditRecord:D,recordKey:X,cancelEditable:P,index:G.index,tableName:e.tableName,newLineConfig:o,onCancel:z,onDelete:k,onSave:j,editableKeys:S,setEditableRowKeys:C,preEditRowRef:n,deletePopconfirmMessage:e.deletePopconfirmMessage||"".concat(t.getMessage("deleteThisLine","删除此项"),"?")},Z=zB(G,Y);return e.tableName?T.current.set(u.current.get(ca(X))||ca(X),Z.saveRef):T.current.set(ca(X),Z.saveRef),V?B(G,Y,{save:Z.save,delete:Z.delete,cancel:Z.cancel}):[Z.save,Z.delete,Z.cancel]};return{editableKeys:S,setEditableRowKeys:C,isEditable:$,actionRender:K,startEditable:E,cancelEditable:P,addEditRecord:D,saveEditable:N,newLineRecord:o,preEditableKeys:w,onValuesChange:O,getRealIndex:e.getRealIndex}}var IPe=function(t){return(Gf.warn||Gf.warning)(t)};function MPe(e){var t=e.data,n=e.row;return R(R({},t),n)}function TPe(e){var t=s.useRef(null),n=e.type||"single",r=Rn(),a=Tt([],{value:e.editableKeys,onChange:e.onChange?function(C){var x;e==null||(x=e.onChange)===null||x===void 0||x.call(e,C,e.dataSource)}:void 0}),o=fe(a,2),i=o[0],l=o[1],c=s.useMemo(function(){var C=n==="single"?i?.slice(0,1):i;return new Set(C)},[(i||[]).join(","),n]),u=s.useCallback(function(C){return!!(i!=null&&i.includes(ca(C)))},[(i||[]).join(",")]),d=function(x,w){var $;return c.size>0&&n==="single"?(IPe(e.onlyOneLineEditorAlertMessage||r.getMessage("editableTable.onlyOneLineEditor","只能同时编辑一行")),!1):(t.current=($=w??Dn(e.dataSource,Array.isArray(x)?x:[x]))!==null&&$!==void 0?$:null,c.add(ca(x)),l(Array.from(c)),!0)},f=function(x){return c.delete(ca(x)),l(Array.from(c)),!0},m=(function(){var C=en(ut().mark(function x(w,$,E,P){var M,O;return ut().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return N.next=2,e==null||(M=e.onCancel)===null||M===void 0?void 0:M.call(e,w,$,E,P);case 2:if(O=N.sent,O!==!1){N.next=5;break}return N.abrupt("return",!1);case 5:return N.abrupt("return",!0);case 6:case"end":return N.stop()}},x)}));return function(w,$,E,P){return C.apply(this,arguments)}})(),g=(function(){var C=en(ut().mark(function x(w,$,E){var P,M,O;return ut().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return N.next=2,e==null||(P=e.onSave)===null||P===void 0?void 0:P.call(e,w,$,E);case 2:if(M=N.sent,M!==!1){N.next=5;break}return N.abrupt("return",!1);case 5:return N.next=7,f(w);case 7:return O={data:e.dataSource,row:$,key:w,childrenColumnName:e.childrenColumnName||"children"},e.setDataSource(MPe(O)),N.abrupt("return",!0);case 10:case"end":return N.stop()}},x)}));return function(w,$,E){return C.apply(this,arguments)}})(),h=r.getMessage("editableTable.action.save","保存"),b=r.getMessage("editableTable.action.delete","删除"),p=r.getMessage("editableTable.action.cancel","取消"),S=s.useCallback(function(C,x){var w=R({recordKey:C,cancelEditable:f,onCancel:m,onSave:g,editableKeys:i,setEditableRowKeys:l,saveText:h,cancelText:p,preEditRowRef:t,deleteText:b,deletePopconfirmMessage:"".concat(r.getMessage("deleteThisLine","删除此项"),"?"),editorType:"Map"},x),$=zB(e.dataSource,w);return e.actionRender?e.actionRender(e.dataSource,w,{save:$.save,delete:$.delete,cancel:$.cancel}):[$.save,$.delete,$.cancel]},[i&&i.join(","),e.dataSource]);return{editableKeys:i,setEditableRowKeys:l,isEditable:u,actionRender:S,startEditable:d,cancelEditable:f}}var NPe=function(t){var n=t.componentCls,r=t.antCls;return q({},"".concat(n,"-actions"),q(q({marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none",display:"flex",gap:t.marginXS,background:t.colorBgContainer,borderBlockStart:"".concat(t.lineWidth,"px ").concat(t.lineType," ").concat(t.colorSplit),minHeight:42},"& > *",{alignItems:"center",justifyContent:"center",flex:1,display:"flex",cursor:"pointer",color:t.colorTextSecondary,transition:"color 0.3s","&:hover":{color:t.colorPrimaryHover}}),"& > li > div",{flex:1,width:"100%",marginBlock:t.marginSM,marginInline:0,color:t.colorTextSecondary,textAlign:"center",a:{color:t.colorTextSecondary,transition:"color 0.3s","&:hover":{color:t.colorPrimaryHover}},div:q(q({position:"relative",display:"block",minWidth:32,fontSize:t.fontSize,lineHeight:t.lineHeight,cursor:"pointer","&:hover":{color:t.colorPrimaryHover,transition:"color 0.3s"}},"a:not(".concat(r,`-btn), - > .anticon`),{display:"inline-block",width:"100%",color:t.colorTextSecondary,lineHeight:"22px",transition:"color 0.3s","&:hover":{color:t.colorPrimaryHover}}),".anticon",{fontSize:t.cardActionIconSize,lineHeight:"22px"}),"&:not(:last-child)":{borderInlineEnd:"".concat(t.lineWidth,"px ").concat(t.lineType," ").concat(t.colorSplit)}}))};function _Pe(e){return Yn("ProCardActions",function(t){var n=R(R({},t),{},{componentCls:".".concat(e),cardActionIconSize:16});return[NPe(n)]})}var AB=function(t){var n=t.actions,r=t.prefixCls,a=_Pe(r),o=a.wrapSSR,i=a.hashId;return Array.isArray(n)&&n!==null&&n!==void 0&&n.length?o(U.jsx("ul",{className:le("".concat(r,"-actions"),i),children:n.map(function(l,c){return U.jsx("li",{style:{width:"".concat(100/n.length,"%"),padding:0,margin:0},className:le("".concat(r,"-actions-item"),i),children:l},"action-".concat(c))})})):o(U.jsx("ul",{className:le("".concat(r,"-actions"),i),children:n}))},x5=function(t){return{backgroundColor:t.colorPrimaryBg,borderColor:t.colorPrimary}},w5=function(t){return q({backgroundColor:t.colorBgContainerDisabled,borderColor:t.colorBorder,cursor:"not-allowed"},t.componentCls,{"&-description":{color:t.colorTextDisabled},"&-title":{color:t.colorTextDisabled},"&-avatar":{opacity:"0.25"}})};new an("card-loading",{"0%":{backgroundPosition:"0 50%"},"50%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}});var jPe=function(t){var n;return q({},t.componentCls,(n={position:"relative",display:"inline-block",width:"320px",marginInlineEnd:"16px",marginBlockEnd:"16px",color:t.colorText,fontSize:t.fontSize,lineHeight:t.lineHeight,verticalAlign:"top",backgroundColor:t.colorBgContainer,borderRadius:t.borderRadius,overflow:"auto",cursor:"pointer",transition:"all 0.3s","&:after":{position:"absolute",insetBlockStart:2,insetInlineEnd:2,width:0,height:0,opacity:0,transition:"all 0.3s "+t.motionEaseInOut,borderBlockEnd:"".concat(t.borderRadius+4,"px solid transparent"),borderInlineStart:"".concat(t.borderRadius+4,"px solid transparent"),borderStartEndRadius:"".concat(t.borderRadius,"px"),content:"''"},"&:last-child":{marginInlineEnd:0},"& + &":{marginInlineStart:"0 !important"},"&-bordered":{border:"".concat(t.lineWidth,"px solid ").concat(t.colorBorder)},"&-group":{display:"inline-block","&-sub-check-card":{display:"flex",flexDirection:"column",gap:"8px","&-title":{cursor:"pointer",paddingBlock:t.paddingXS,display:"flex",gap:4,alignItems:"center"},"&-panel":{visibility:"initial",transition:"all 0.3s",opacity:1,"&-collapse":{display:"none",visibility:"hidden",opacity:0}}}}},q(q(q(q(q(q(q(q(q(q(n,"".concat(t.componentCls,"-loading"),{overflow:"hidden",userSelect:"none","&-content":{padding:t.paddingMD}}),"&:focus",x5(t)),"&-checked",R(R({},x5(t)),{},{"&:after":{opacity:1,border:"".concat(t.borderRadius+4,"px solid ").concat(t.colorPrimary),borderBlockEnd:"".concat(t.borderRadius+4,"px solid transparent"),borderInlineStart:"".concat(t.borderRadius+4,"px solid transparent"),borderStartEndRadius:"".concat(t.borderRadius,"px")}})),"&-disabled",w5(t)),"&[disabled]",w5(t)),"&-checked&-disabled",{"&:after":{position:"absolute",insetBlockStart:2,insetInlineEnd:2,width:0,height:0,border:"".concat(t.borderRadius+4,"px solid ").concat(t.colorTextDisabled),borderBlockEnd:"".concat(t.borderRadius+4,"px solid transparent"),borderInlineStart:"".concat(t.borderRadius+4,"px solid transparent"),borderStartEndRadius:"".concat(t.borderRadius,"px"),content:"''"}}),"&-lg",{width:440}),"&-sm",{width:212}),"&-cover",{paddingInline:t.paddingXXS,paddingBlock:t.paddingXXS,img:{width:"100%",height:"100%",overflow:"hidden",borderRadius:t.borderRadius}}),"&-content",{display:"flex",paddingInline:t.paddingSM,paddingBlock:t.padding}),q(q(q(q(q(q(q(q(n,"&-body",{paddingInline:t.paddingSM,paddingBlock:t.padding}),"&-avatar-header",{display:"flex",alignItems:"center"}),"&-avatar",{paddingInlineEnd:8}),"&-detail",{overflow:"hidden",width:"100%","> div:not(:last-child)":{marginBlockEnd:4}}),"&-header",{display:"flex",alignItems:"center",justifyContent:"space-between",lineHeight:t.lineHeight,"&-left":{display:"flex",alignItems:"center",gap:t.sizeSM,minWidth:0}}),"&-title",{overflow:"hidden",color:t.colorTextHeading,fontWeight:"500",fontSize:t.fontSize,whiteSpace:"nowrap",textOverflow:"ellipsis",display:"flex",alignItems:"center",justifyContent:"space-between","&-with-ellipsis":{display:"inline-block"}}),"&-description",{color:t.colorTextSecondary}),"&:not(".concat(t.componentCls,"-disabled)"),{"&:hover":{borderColor:t.colorPrimary}})))};function BB(e){return Yn("CheckCard",function(t){var n=R(R({},t),{},{componentCls:".".concat(e)});return[jPe(n)]})}var DPe=["prefixCls","className","style","options","loading","multiple","bordered","onChange"],FPe=function(t){var n=t.prefixCls,r=t.hashId;return U.jsx("div",{className:le("".concat(n,"-loading-content"),r),children:U.jsx(Tn,{loading:!0,active:!0,paragraph:{rows:4},title:!1})})},HB=s.createContext(null),kPe=function(t){var n=s.useState(!1),r=fe(n,2),a=r[0],o=r[1],i=fa.useToken(),l=i.hashId,c="".concat(t.prefix,"-sub-check-card");return U.jsxs("div",{className:le(c,l),children:[U.jsxs("div",{className:le("".concat(c,"-title"),l),onClick:function(){o(!a)},children:[U.jsx(Na,{style:{transform:"rotate(".concat(a?90:0,"deg)"),transition:"transform 0.3s"}}),t.title]}),U.jsx("div",{className:le("".concat(c,"-panel"),l,q({},"".concat(c,"-panel-collapse"),a)),children:t.children})]})},LPe=function(t){var n=t.prefixCls,r=t.className,a=t.style,o=t.options,i=o===void 0?[]:o,l=t.loading,c=l===void 0?!1:l,u=t.multiple,d=u===void 0?!1:u,f=t.bordered,m=f===void 0?!0:f;t.onChange;var g=Ue(t,DPe),h=s.useContext(At.ConfigContext),b=s.useCallback(function(){return i?.map(function(j){return typeof j=="string"?{title:j,value:j}:j})},[i]),p=h.getPrefixCls("pro-checkcard",n),S=BB(p),C=S.wrapSSR,x=S.hashId,w="".concat(p,"-group"),$=Qt(g,["children","defaultValue","value","disabled","size"]),E=Tt(t.defaultValue,{value:t.value,onChange:t.onChange}),P=fe(E,2),M=P[0],O=P[1],T=s.useRef(new Map),N=function(k){var z;(z=T.current)===null||z===void 0||z.set(k,!0)},D=function(k){var z;(z=T.current)===null||z===void 0||z.delete(k)},L=function(k){if(!d){var z;z=M,z===k.value?z=void 0:z=k.value,O?.(z)}if(d){var V,H=[],B=M,K=B?.includes(k.value);H=Te(B||[]),K||H.push(k.value),K&&(H=H.filter(function(X){return X!==k.value}));var W=b(),G=(V=H)===null||V===void 0||(V=V.filter(function(X){return T.current.has(X)}))===null||V===void 0?void 0:V.sort(function(X,Y){var Z=W.findIndex(function(re){return re.value===X}),ee=W.findIndex(function(re){return re.value===Y});return Z-ee});O(G)}},_=s.useMemo(function(){if(c)return new Array(i.length||Q.Children.toArray(t.children).length||1).fill(0).map(function(z,V){return U.jsx(E$,{loading:!0},V)});if(i&&i.length>0){var j=M,k=function z(V){return V.map(function(H){var B;if(H.children&&H.children.length>0){var K,W;return U.jsx(kPe,{title:H.title,prefix:w,children:z(H.children)},((K=H.value)===null||K===void 0?void 0:K.toString())||((W=H.title)===null||W===void 0?void 0:W.toString()))}return U.jsx(E$,{disabled:H.disabled,size:(B=H.size)!==null&&B!==void 0?B:t.size,value:H.value,checked:d?j?.includes(H.value):j===H.value,onChange:H.onChange,title:H.title,avatar:H.avatar,description:H.description,cover:H.cover},H.value.toString())})};return k(b())}return t.children},[b,c,d,i,t.children,t.size,M]),F=le(w,r,x);return C(U.jsx(HB.Provider,{value:{toggleOption:L,bordered:m,value:M,disabled:t.disabled,size:t.size,loading:t.loading,multiple:t.multiple,registerValue:N,cancelValue:D},children:U.jsx("div",R(R({className:F,style:a},$),{},{children:_}))}))};const zPe=(function(e){return U.jsx(y0,{needDeps:!0,children:U.jsx(LPe,R({},e))})});var APe=["prefixCls","className","avatar","title","description","cover","extra","style"],E$=function(t){var n=Tt(t.defaultChecked||!1,{value:t.checked,onChange:t.onChange}),r=fe(n,2),a=r[0],o=r[1],i=s.useContext(HB),l=s.useContext(At.ConfigContext),c=l.getPrefixCls,u=function(X){var Y,Z;t==null||(Y=t.onClick)===null||Y===void 0||Y.call(t,X);var ee=!a;i==null||(Z=i.toggleOption)===null||Z===void 0||Z.call(i,{value:t.value}),o?.(ee)},d=function(X){return X==="large"?"lg":X==="small"?"sm":""};s.useEffect(function(){var G;return i==null||(G=i.registerValue)===null||G===void 0||G.call(i,t.value),function(){var X;return i==null||(X=i.cancelValue)===null||X===void 0?void 0:X.call(i,t.value)}},[t.value]);var f=t.prefixCls,m=t.className,g=t.avatar,h=t.title,b=t.description,p=t.cover,S=t.extra,C=t.style,x=C===void 0?{}:C,w=Ue(t,APe),$=R({},w),E=c("pro-checkcard",f),P=BB(E),M=P.wrapSSR,O=P.hashId,T=function(X,Y){return U.jsx("div",{className:le("".concat(X,"-cover"),O),children:typeof Y=="string"?U.jsx("img",{src:Y,alt:"checkcard"}):Y})};$.checked=a;var N=!1;if(i){var D;$.disabled=t.disabled||i.disabled,$.loading=t.loading||i.loading,$.bordered=t.bordered||i.bordered,N=i.multiple;var L=i.multiple?(D=i.value)===null||D===void 0?void 0:D.includes(t.value):i.value===t.value;$.checked=$.loading?!1:L,$.size=t.size||i.size}var _=$.disabled,F=_===void 0?!1:_,j=$.size,k=$.loading,z=$.bordered,V=z===void 0?!0:z,H=$.checked,B=d(j),K=le(E,m,O,q(q(q(q(q(q(q({},"".concat(E,"-loading"),k),"".concat(E,"-").concat(B),B),"".concat(E,"-checked"),H),"".concat(E,"-multiple"),N),"".concat(E,"-disabled"),F),"".concat(E,"-bordered"),V),"".concat(E,"-ghost"),t.ghost)),W=s.useMemo(function(){if(k)return U.jsx(FPe,{prefixCls:E||"",hashId:O});if(p)return T(E||"",p);var G=g?U.jsx("div",{className:le("".concat(E,"-avatar"),O),children:typeof g=="string"?U.jsx(AE,{size:48,shape:"square",src:g}):g}):null,X=(h??S)!=null&&U.jsxs("div",{className:le("".concat(E,"-header"),O),children:[U.jsxs("div",{className:le("".concat(E,"-header-left"),O),children:[U.jsx("div",{className:le("".concat(E,"-title"),O,q({},"".concat(E,"-title-with-ellipsis"),typeof h=="string")),children:h}),t.subTitle?U.jsx("div",{className:le("".concat(E,"-subTitle"),O),children:t.subTitle}):null]}),S&&U.jsx("div",{className:le("".concat(E,"-extra"),O),children:S})]}),Y=b?U.jsx("div",{className:le("".concat(E,"-description"),O),children:b}):null,Z=le("".concat(E,"-content"),O,q({},"".concat(E,"-avatar-header"),G&&X&&!Y));return U.jsxs("div",{className:Z,children:[G,X||Y?U.jsxs("div",{className:le("".concat(E,"-detail"),O),children:[X,Y]}):null]})},[g,k,p,b,S,O,E,t.subTitle,h]);return M(U.jsxs("div",{className:K,style:x,onClick:function(X){!k&&!F&&u(X)},onMouseEnter:t.onMouseEnter,children:[W,t.children?U.jsx("div",{className:le("".concat(E,"-body"),O),style:t.bodyStyle,children:t.children}):null,t.actions?U.jsx(AB,{actions:t.actions,prefixCls:E}):null]}))};E$.Group=zPe;var BPe=new an("card-loading",{"0%":{backgroundPosition:"0 50%"},"50%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),HPe=function(t){return q({},t.componentCls,q(q({"&-loading":{overflow:"hidden"},"&-loading &-body":{userSelect:"none"}},"".concat(t.componentCls,"-loading-content"),{width:"100%",p:{marginBlock:0,marginInline:0}}),"".concat(t.componentCls,"-loading-block"),{height:"14px",marginBlock:"4px",background:"linear-gradient(90deg, rgba(54, 61, 64, 0.2), rgba(54, 61, 64, 0.4), rgba(54, 61, 64, 0.2))",backgroundSize:"600% 600%",borderRadius:t.borderRadius,animationName:BPe,animationDuration:"1.4s",animationTimingFunction:"ease",animationIterationCount:"infinite"}))};function VPe(e){return Yn("ProCardLoading",function(t){var n=R(R({},t),{},{componentCls:".".concat(e)});return[HPe(n)]})}var WPe=function(t){var n=t.style,r=t.prefix,a=VPe(r||"ant-pro-card"),o=a.wrapSSR;return o(U.jsxs("div",{className:"".concat(r,"-loading-content"),style:n,children:[U.jsx(Io,{gutter:8,children:U.jsx(Fr,{span:22,children:U.jsx("div",{className:"".concat(r,"-loading-block")})})}),U.jsxs(Io,{gutter:8,children:[U.jsx(Fr,{span:8,children:U.jsx("div",{className:"".concat(r,"-loading-block")})}),U.jsx(Fr,{span:15,children:U.jsx("div",{className:"".concat(r,"-loading-block")})})]}),U.jsxs(Io,{gutter:8,children:[U.jsx(Fr,{span:6,children:U.jsx("div",{className:"".concat(r,"-loading-block")})}),U.jsx(Fr,{span:18,children:U.jsx("div",{className:"".concat(r,"-loading-block")})})]}),U.jsxs(Io,{gutter:8,children:[U.jsx(Fr,{span:13,children:U.jsx("div",{className:"".concat(r,"-loading-block")})}),U.jsx(Fr,{span:9,children:U.jsx("div",{className:"".concat(r,"-loading-block")})})]}),U.jsxs(Io,{gutter:8,children:[U.jsx(Fr,{span:4,children:U.jsx("div",{className:"".concat(r,"-loading-block")})}),U.jsx(Fr,{span:3,children:U.jsx("div",{className:"".concat(r,"-loading-block")})}),U.jsx(Fr,{span:16,children:U.jsx("div",{className:"".concat(r,"-loading-block")})})]})]}))},KPe=["tab","children"],qPe=["key","tab","tabKey","disabled","destroyInactiveTabPane","children","className","style","cardProps"];function UPe(e){return e.filter(function(t){return t})}function GPe(e,t,n){if(e)return e.map(function(a){return R(R({},a),{},{children:U.jsx(tv,R(R({},n?.cardProps),{},{children:a.children}))})});Ia(!n,"Tabs.TabPane is deprecated. Please use `items` directly.");var r=Xn(t).map(function(a){if(Q.isValidElement(a)){var o=a.key,i=a.props,l=i||{},c=l.tab,u=l.children,d=Ue(l,KPe),f=R(R({key:String(o)},d),{},{children:U.jsx(tv,R(R({},n?.cardProps),{},{children:u})),label:c});return f}return null});return UPe(r)}var XPe=function(t){var n=s.useContext(At.ConfigContext),r=n.getPrefixCls;if(ri.startsWith("5"))return U.jsx(U.Fragment,{});var a=t.key,o=t.tab,i=t.tabKey,l=t.disabled,c=t.destroyInactiveTabPane,u=t.children,d=t.className,f=t.style,m=t.cardProps,g=Ue(t,qPe),h=r("pro-card-tabpane"),b=le(h,d);return U.jsx(Zl.TabPane,R(R({tabKey:i,tab:o,className:b,style:f,disabled:l,destroyInactiveTabPane:c},g),{},{children:U.jsx(tv,R(R({},m),{},{children:u}))}),a)},$5=function(t){return{backgroundColor:t.controlItemBgActive,borderColor:t.controlOutline}},YPe=function(t){var n=t.componentCls;return q(q(q({},n,R(R({position:"relative",display:"flex",flexDirection:"column",boxSizing:"border-box",width:"100%",marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,backgroundColor:t.colorBgContainer,borderRadius:t.borderRadius,transition:"all 0.3s"},tC?.(t)),{},q(q(q(q(q(q(q(q(q(q({"&-box-shadow":{boxShadow:"0 1px 2px -2px #00000029, 0 3px 6px #0000001f, 0 5px 12px 4px #00000017",borderColor:"transparent"},"&-col":{width:"100%"},"&-border":{border:"".concat(t.lineWidth,"px ").concat(t.lineType," ").concat(t.colorSplit)},"&-hoverable":q({cursor:"pointer",transition:"box-shadow 0.3s, border-color 0.3s","&:hover":{borderColor:"transparent",boxShadow:"0 1px 2px -2px #00000029, 0 3px 6px #0000001f, 0 5px 12px 4px #00000017"}},"&".concat(n,"-checked:hover"),{borderColor:t.controlOutline}),"&-checked":R(R({},$5(t)),{},{"&::after":{visibility:"visible",position:"absolute",insetBlockStart:2,insetInlineEnd:2,opacity:1,width:0,height:0,border:"6px solid ".concat(t.colorPrimary),borderBlockEnd:"6px solid transparent",borderInlineStart:"6px solid transparent",borderStartEndRadius:2,content:'""'}}),"&:focus":R({},$5(t)),"&&-ghost":q({backgroundColor:"transparent"},"> ".concat(n),{"&-header":{paddingInlineEnd:0,paddingBlockEnd:t.padding,paddingInlineStart:0},"&-body":{paddingBlock:0,paddingInline:0,backgroundColor:"transparent"}}),"&&-split > &-body":{paddingBlock:0,paddingInline:0},"&&-contain-card > &-body":{display:"flex"}},"".concat(n,"-body-direction-column"),{flexDirection:"column"}),"".concat(n,"-body-wrap"),{flexWrap:"wrap"}),"&&-collapse",q({},"> ".concat(n),{"&-header":{paddingBlockEnd:t.padding,borderBlockEnd:0},"&-body":{display:"none"}})),"".concat(n,"-header"),{display:"flex",alignItems:"center",justifyContent:"space-between",paddingInline:t.paddingLG,paddingBlock:t.padding,paddingBlockEnd:0,"&-border":{"&":{paddingBlockEnd:t.padding},borderBlockEnd:"".concat(t.lineWidth,"px ").concat(t.lineType," ").concat(t.colorSplit)},"&-collapsible":{cursor:"pointer"}}),"".concat(n,"-title"),{color:t.colorText,fontWeight:500,fontSize:t.fontSizeLG,lineHeight:t.lineHeight}),"".concat(n,"-extra"),{color:t.colorText}),"".concat(n,"-type-inner"),q({},"".concat(n,"-header"),{backgroundColor:t.colorFillAlter})),"".concat(n,"-collapsible-icon"),{marginInlineEnd:t.marginXS,color:t.colorIconHover,":hover":{color:t.colorPrimaryHover},"& svg":{transition:"transform ".concat(t.motionDurationMid)}}),"".concat(n,"-body"),{display:"block",boxSizing:"border-box",height:"100%",paddingInline:t.paddingLG,paddingBlock:t.padding,"&-center":{display:"flex",alignItems:"center",justifyContent:"center"}}),"&&-size-small",q(q({},n,{"&-header":{paddingInline:t.paddingSM,paddingBlock:t.paddingXS,paddingBlockEnd:0,"&-border":{paddingBlockEnd:t.paddingXS}},"&-title":{fontSize:t.fontSize},"&-body":{paddingInline:t.paddingSM,paddingBlock:t.paddingSM}}),"".concat(n,"-header").concat(n,"-header-collapsible"),{paddingBlock:t.paddingXS})))),"".concat(n,"-col"),q(q({},"&".concat(n,"-split-vertical"),{borderInlineEnd:"".concat(t.lineWidth,"px ").concat(t.lineType," ").concat(t.colorSplit)}),"&".concat(n,"-split-horizontal"),{borderBlockEnd:"".concat(t.lineWidth,"px ").concat(t.lineType," ").concat(t.colorSplit)})),"".concat(n,"-tabs"),q(q(q(q(q(q({},"".concat(t.antCls,"-tabs-top > ").concat(t.antCls,"-tabs-nav"),q({marginBlockEnd:0},"".concat(t.antCls,"-tabs-nav-list"),{marginBlockStart:t.marginXS,paddingInlineStart:t.padding})),"".concat(t.antCls,"-tabs-bottom > ").concat(t.antCls,"-tabs-nav"),q({marginBlockEnd:0},"".concat(t.antCls,"-tabs-nav-list"),{paddingInlineStart:t.padding})),"".concat(t.antCls,"-tabs-left"),q({},"".concat(t.antCls,"-tabs-content-holder"),q({},"".concat(t.antCls,"-tabs-content"),q({},"".concat(t.antCls,"-tabs-tabpane"),{paddingInlineStart:0})))),"".concat(t.antCls,"-tabs-left > ").concat(t.antCls,"-tabs-nav"),q({marginInlineEnd:0},"".concat(t.antCls,"-tabs-nav-list"),{paddingBlockStart:t.padding})),"".concat(t.antCls,"-tabs-right"),q({},"".concat(t.antCls,"-tabs-content-holder"),q({},"".concat(t.antCls,"-tabs-content"),q({},"".concat(t.antCls,"-tabs-tabpane"),{paddingInlineStart:0})))),"".concat(t.antCls,"-tabs-right > ").concat(t.antCls,"-tabs-nav"),q({},"".concat(t.antCls,"-tabs-nav-list"),{paddingBlockStart:t.padding})))},VB=24,QPe=function(t,n){var r=n.componentCls;return t===0?q({},"".concat(r,"-col-0"),{display:"none"}):q({},"".concat(r,"-col-").concat(t),{flexShrink:0,width:"".concat(t/VB*100,"%")})},ZPe=function(t){return Array(VB+1).fill(1).map(function(n,r){return QPe(r,t)})};function JPe(e){return Yn("ProCard",function(t){var n=R(R({},t),{},{componentCls:".".concat(e)});return[YPe(n),ZPe(n)]})}var e6e=["className","style","bodyStyle","headStyle","title","subTitle","extra","wrap","layout","loading","gutter","tooltip","split","headerBordered","bordered","boxShadow","children","size","actions","ghost","hoverable","direction","collapsed","collapsible","collapsibleIconRender","colStyle","defaultCollapsed","onCollapse","checked","onChecked","tabs","type"],tv=Q.forwardRef(function(e,t){var n,r=e.className,a=e.style,o=e.bodyStyle,i=e.headStyle,l=e.title,c=e.subTitle,u=e.extra,d=e.wrap,f=d===void 0?!1:d,m=e.layout,g=e.loading,h=e.gutter,b=h===void 0?0:h,p=e.tooltip,S=e.split,C=e.headerBordered,x=C===void 0?!1:C,w=e.bordered,$=w===void 0?!1:w,E=e.boxShadow,P=E===void 0?!1:E,M=e.children,O=e.size,T=e.actions,N=e.ghost,D=N===void 0?!1:N,L=e.hoverable,_=L===void 0?!1:L,F=e.direction,j=e.collapsed,k=e.collapsible,z=k===void 0?!1:k,V=e.collapsibleIconRender,H=e.colStyle,B=e.defaultCollapsed,K=B===void 0?!1:B,W=e.onCollapse,G=e.checked,X=e.onChecked,Y=e.tabs,Z=e.type,ee=Ue(e,e6e),re=s.useContext(At.ConfigContext),ne=re.getPrefixCls,se=ui()||{lg:!0,md:!0,sm:!0,xl:!1,xs:!1,xxl:!1},oe=Tt(K,{value:j,onChange:W}),me=fe(oe,2),ue=me[0],de=me[1],ae=["xxl","xl","lg","md","sm","xs"],ie=GPe(Y?.items,M,Y),ge=function(Ie){var Fe=[0,0],Ge=Array.isArray(Ie)?Ie:[Ie,0];return Ge.forEach(function(et,Ke){if(st(et)==="object")for(var Ye=0;Ye=0&&Ke<=24)),rt=he(U.jsx("div",{style:R(R(R(R({},Ye),pe(We>0,{paddingInlineEnd:We/2,paddingInlineStart:We/2})),pe(je>0,{paddingBlockStart:je/2,paddingBlockEnd:je/2})),H),className:tt,children:Q.cloneElement(we)}));return Q.cloneElement(rt,{key:"pro-card-col-".concat(we?.key||Ie)})}return we}),Re=le("".concat(ve),r,Se,(n={},q(q(q(q(q(q(q(q(q(q(n,"".concat(ve,"-border"),$),"".concat(ve,"-box-shadow"),P),"".concat(ve,"-contain-card"),De),"".concat(ve,"-loading"),g),"".concat(ve,"-split"),S==="vertical"||S==="horizontal"),"".concat(ve,"-ghost"),D),"".concat(ve,"-hoverable"),_),"".concat(ve,"-size-").concat(O),O),"".concat(ve,"-type-").concat(Z),Z),"".concat(ve,"-collapse"),ue),q(n,"".concat(ve,"-checked"),G))),Le=le("".concat(ve,"-body"),Se,q(q(q({},"".concat(ve,"-body-center"),m==="center"),"".concat(ve,"-body-direction-column"),S==="horizontal"||F==="column"),"".concat(ve,"-body-wrap"),f&&De)),Me=o,Be=Q.isValidElement(g)?g:U.jsx(WPe,{prefix:ve,style:o?.padding===0||o?.padding==="0px"?{padding:24}:void 0}),$e=z&&j===void 0&&(V?V({collapsed:ue}):U.jsx(Na,{onClick:function(){z==="icon"&&de(!ue)},rotate:ue?void 0:90,className:"".concat(ve,"-collapsible-icon ").concat(Se).trim()}));return he(U.jsxs("div",R(R({className:Re,style:a,ref:t,onClick:function(Ie){var Fe;X?.(Ie),ee==null||(Fe=ee.onClick)===null||Fe===void 0||Fe.call(ee,Ie)}},Qt(ee,["prefixCls","colSpan"])),{},{children:[(l||u||$e)&&U.jsxs("div",{className:le("".concat(ve,"-header"),Se,q(q({},"".concat(ve,"-header-border"),x||Z==="inner"),"".concat(ve,"-header-collapsible"),$e)),style:i,onClick:function(){(z==="header"||z===!0)&&de(!ue)},children:[U.jsxs("div",{className:"".concat(ve,"-title ").concat(Se).trim(),children:[$e,U.jsx(Ii,{label:l,tooltip:p,subTitle:c})]}),u&&U.jsx("div",{className:"".concat(ve,"-extra ").concat(Se).trim(),onClick:function(Ie){return Ie.stopPropagation()},children:u})]}),Y?U.jsx("div",{className:"".concat(ve,"-tabs ").concat(Se).trim(),children:U.jsx(Zl,R(R({onChange:Y.onChange},Qt(Y,["cardProps"])),{},{items:ie,children:g?Be:M}))}):U.jsx("div",{className:Le,style:Me,children:g?Be:_e}),T?U.jsx(AB,{actions:T,prefixCls:ve}):null]})))}),t6e=function(t){var n=t.componentCls;return q({},n,{"&-divider":{flex:"none",width:t.lineWidth,marginInline:t.marginXS,marginBlock:t.marginLG,backgroundColor:t.colorSplit,"&-horizontal":{width:"initial",height:t.lineWidth,marginInline:t.marginLG,marginBlock:t.marginXS}},"&&-size-small &-divider":{marginBlock:t.marginLG,marginInline:t.marginXS,"&-horizontal":{marginBlock:t.marginXS,marginInline:t.marginLG}}})};function n6e(e){return Yn("ProCardDivider",function(t){var n=R(R({},t),{},{componentCls:".".concat(e)});return[t6e(n)]})}var r6e=function(t){var n=s.useContext(At.ConfigContext),r=n.getPrefixCls,a=r("pro-card"),o="".concat(a,"-divider"),i=n6e(a),l=i.wrapSSR,c=i.hashId,u=t.className,d=t.style,f=d===void 0?{}:d,m=t.type,g=le(o,u,c,q({},"".concat(o,"-").concat(m),m));return l(U.jsx("div",{className:g,style:f}))},a6e=function(t){return U.jsx(tv,R({bodyStyle:{padding:0}},t))},Bv=tv;Bv.isProCard=!0;Bv.Divider=r6e;Bv.TabPane=XPe;Bv.Group=a6e;var Rf=function(){return Rf=Object.assign||function(e){for(var t,n=1,r=arguments.length;n"u"||!window.URL)return{};var d=[];i.forEach(function(m,g){d.push({key:g,value:m})}),d=d.reduce(function(m,g){return(m[g.key]=m[g.key]||[]).push(g),m},{}),d=Object.keys(d).map(function(m){var g=d[m];return g.length===1?[m,g[0].value]:[m,g.map(function(h){var b=h.value;return b})]});var f=Rf({},e);return d.forEach(function(m){var g=m[0],h=m[1];f[g]=s6e(g,h,{},e)}),f},[t.disabled,e,i]);function c(d){if(!(typeof window>"u"||!window.URL)){var f=o6e(d);window.location.search!==f.search&&window.history.replaceState({},"",f.toString()),i.toString()!==f.searchParams.toString()&&a({})}}s.useEffect(function(){t.disabled||typeof window>"u"||!window.URL||c(Rf(Rf({},e),l))},[t.disabled,l]);var u=function(d){c(d)};return s.useEffect(function(){if(t.disabled)return function(){};if(typeof window>"u"||!window.URL)return function(){};var d=function(){a({})};return window.addEventListener("popstate",d),function(){window.removeEventListener("popstate",d)}},[t.disabled]),[l,u]}var l6e={true:!0,false:!1};function s6e(e,t,n,r){if(!n)return t;var a=n[e],o=t===void 0?r[e]:t;return a===Number?Number(o):a===Boolean||t==="true"||t==="false"?l6e[o]:Array.isArray(a)?a.find(function(i){return i==o})||r[e]:o}var Ga=Q.createContext({}),c6e=["children","Wrapper"],u6e=["children","Wrapper"],e3=s.createContext({grid:!1,colProps:void 0,rowProps:void 0}),d6e=function(t){var n=t.grid,r=t.rowProps,a=t.colProps;return{grid:!!n,RowWrapper:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=i.children,c=i.Wrapper,u=Ue(i,c6e);return n?U.jsx(Io,R(R(R({gutter:8},r),u),{},{children:l})):c?U.jsx(c,{children:l}):l},ColWrapper:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=i.children,c=i.Wrapper,u=Ue(i,u6e),d=s.useMemo(function(){var f=R(R({},a),u);return typeof f.span>"u"&&typeof f.xs>"u"&&(f.xs=24),f},[u]);return n?U.jsx(Fr,R(R({},d),{},{children:l})):c?U.jsx(c,{children:l}):l}}},cd=function(t){var n=s.useMemo(function(){return st(t)==="object"?t:{grid:t}},[t]),r=s.useContext(e3),a=r.grid,o=r.colProps;return s.useMemo(function(){return d6e({grid:!!(a||n.grid),rowProps:n?.rowProps,colProps:n?.colProps||o,Wrapper:n?.Wrapper})},[n?.Wrapper,n.grid,a,JSON.stringify([o,n?.colProps,n?.rowProps])])},f6e=["valueType","customLightMode","lightFilterLabelFormatter","valuePropName","ignoreWidth","defaultProps"],v6e=["label","tooltip","placeholder","width","bordered","messageVariables","ignoreFormItem","transform","convertValue","readonly","allowClear","colSize","getFormItemProps","getFieldProps","filedConfig","cacheForSwr","proFieldProps"],E5={xs:104,s:216,sm:216,m:328,md:328,l:440,lg:440,xl:552},m6e=["switch","radioButton","radio","rate"];function P0(e,t){e.displayName="ProFormComponent";var n=function(o){var i=R(R({},o?.filedConfig),t),l=i.valueType,c=i.customLightMode,u=i.lightFilterLabelFormatter,d=i.valuePropName,f=d===void 0?"value":d,m=i.ignoreWidth,g=i.defaultProps,h=Ue(i,f6e),b=R(R({},g),o),p=b.label,S=b.tooltip,C=b.placeholder,x=b.width,w=b.bordered,$=b.messageVariables,E=b.ignoreFormItem,P=b.transform,M=b.convertValue,O=b.readonly,T=b.allowClear;b.colSize;var N=b.getFormItemProps,D=b.getFieldProps;b.filedConfig;var L=b.cacheForSwr,_=b.proFieldProps,F=Ue(b,v6e),j=l||F.valueType,k=s.useMemo(function(){return m||m6e.includes(j)},[m,j]),z=s.useState(),V=fe(z,2),H=V[1],B=s.useState(),K=fe(B,2),W=K[0],G=K[1],X=Q.useContext(Ga),Y=ya(function(){return{formItemProps:N?.(),fieldProps:D?.()}},[D,N,F.dependenciesValues,W]),Z=ya(function(){var he=R(R(R(R({},E?Tr({value:F.value}):{}),{},{placeholder:C,disabled:o.disabled},X.fieldProps),Y.fieldProps),F.fieldProps);return he.style=Tr(he?.style),he},[E,F.value,F.fieldProps,C,o.disabled,X.fieldProps,Y.fieldProps]),ee=zEe(F),re=ya(function(){return R(R(R(R({},X.formItemProps),ee),Y.formItemProps),F.formItemProps)},[Y.formItemProps,X.formItemProps,F.formItemProps,ee]),ne=ya(function(){return R(R({messageVariables:$},h),re)},[h,re,$]);Ia(!F.defaultValue,"请不要在 Form 中使用 defaultXXX。如果需要默认值请使用 initialValues 和 initialValue。");var se=s.useContext(Ql),oe=se.prefixName,me=ya(function(){var he,Se=ne?.name;Array.isArray(Se)&&(Se=Se.join("_")),Array.isArray(oe)&&Se&&(Se="".concat(oe.join("."),".").concat(Se));var Ee=Se&&"form-".concat((he=X.formKey)!==null&&he!==void 0?he:"","-field-").concat(Se);return Ee},[al(ne?.name),oe,X.formKey]),ue=Mn(function(){var he;N||D?G([]):F.renderFormItem&&H([]);for(var Se=arguments.length,Ee=new Array(Se),Oe=0;Oe0?ie.map(function(pe,be){var ve=ge?.[be],Ce=ve?.["data-item"];return R(R(R({},Ce||{}),pe),{},{label:j&&Ce?Ce.label:pe.label})}):[]},de=function ae(ie){return ie.map(function(ge,pe){var be,ve=ge,Ce=ve.className,he=ve.optionType,Se=Ue(ve,y6e),Ee=ge[H],Oe=ge[K],We=(be=ge[G])!==null&&be!==void 0?be:[];return he==="optGroup"||ge.options?R(R({label:Ee},Se),{},{data_title:Ee,title:Ee,key:Oe??"".concat(Ee?.toString(),"-").concat(pe,"-").concat(Qf()),children:ae(We)}):R(R({title:Ee},Se),{},{data_title:Ee,value:Oe??pe,key:Oe??"".concat(Ee?.toString(),"-").concat(pe,"-").concat(Qf()),"data-item":ge,className:"".concat(oe,"-option ").concat(Ce||"").trim(),label:r?.(ge)||Ee})})};return U.jsx(fl,R(R({ref:re,className:me,allowClear:!0,autoClearSearchValue:u,disabled:$,mode:a,showSearch:D,searchValue:Z,optionFilterProp:S,optionLabelProp:x,onClear:function(){T?.(),P(void 0),D&&ee(void 0)}},k),{},{filterOption:k.filterOption==!1?!1:function(ae,ie){var ge,pe;return k.filterOption&&typeof k.filterOption=="function"?k.filterOption(ae,R(R({},ie),{},{label:ie?.data_title})):!!(ie!=null&&(ge=ie.data_title)!==null&&ge!==void 0&&ge.toString().toLowerCase().includes(ae.toLowerCase())||ie!=null&&(pe=ie[S])!==null&&pe!==void 0&&pe.toString().toLowerCase().includes(ae.toLowerCase()))},onSearch:D?function(ae){b&&P(ae),o?.(ae),ee(ae)}:void 0,onChange:function(ie,ge){D&&u&&(P(void 0),o?.(""),ee(void 0));for(var pe=arguments.length,be=new Array(pe>2?pe-2:0),ve=2;ve-1&&r%1==0&&r-1&&n%1==0&&n<=e}return wC=t,wC}var $C,q5;function V6e(){if(q5)return $C;q5=1;var e=fc(),t=r3(),n=Ai(),r="[object Arguments]",a="[object Array]",o="[object Boolean]",i="[object Date]",l="[object Error]",c="[object Function]",u="[object Map]",d="[object Number]",f="[object Object]",m="[object RegExp]",g="[object Set]",h="[object String]",b="[object WeakMap]",p="[object ArrayBuffer]",S="[object DataView]",C="[object Float32Array]",x="[object Float64Array]",w="[object Int8Array]",$="[object Int16Array]",E="[object Int32Array]",P="[object Uint8Array]",M="[object Uint8ClampedArray]",O="[object Uint16Array]",T="[object Uint32Array]",N={};N[C]=N[x]=N[w]=N[$]=N[E]=N[P]=N[M]=N[O]=N[T]=!0,N[r]=N[a]=N[p]=N[o]=N[S]=N[i]=N[l]=N[c]=N[u]=N[d]=N[f]=N[m]=N[g]=N[h]=N[b]=!1;function D(L){return n(L)&&t(L.length)&&!!N[e(L)]}return $C=D,$C}var EC,U5;function a3(){if(U5)return EC;U5=1;function e(t){return function(n){return t(n)}}return EC=e,EC}var gf={exports:{}};gf.exports;var G5;function o3(){return G5||(G5=1,(function(e,t){var n=KB(),r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===r,i=o&&n.process,l=(function(){try{var c=a&&a.require&&a.require("util").types;return c||i&&i.binding&&i.binding("util")}catch{}})();e.exports=l})(gf,gf.exports)),gf.exports}var PC,X5;function i3(){if(X5)return PC;X5=1;var e=V6e(),t=a3(),n=o3(),r=n&&n.isTypedArray,a=r?t(r):e;return PC=a,PC}var OC,Y5;function UB(){if(Y5)return OC;Y5=1;var e=A6e(),t=t3(),n=go(),r=O0(),a=n3(),o=i3(),i=Object.prototype,l=i.hasOwnProperty;function c(u,d){var f=n(u),m=!f&&t(u),g=!f&&!m&&r(u),h=!f&&!m&&!g&&o(u),b=f||m||g||h,p=b?e(u.length,String):[],S=p.length;for(var C in u)(d||l.call(u,C))&&!(b&&(C=="length"||g&&(C=="offset"||C=="parent")||h&&(C=="buffer"||C=="byteLength"||C=="byteOffset")||a(C,S)))&&p.push(C);return p}return OC=c,OC}var RC,Q5;function l3(){if(Q5)return RC;Q5=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,a=typeof r=="function"&&r.prototype||e;return n===a}return RC=t,RC}var IC,Z5;function GB(){if(Z5)return IC;Z5=1;function e(t,n){return function(r){return t(n(r))}}return IC=e,IC}var MC,J5;function W6e(){if(J5)return MC;J5=1;var e=GB(),t=e(Object.keys,Object);return MC=t,MC}var TC,eT;function K6e(){if(eT)return TC;eT=1;var e=l3(),t=W6e(),n=Object.prototype,r=n.hasOwnProperty;function a(o){if(!e(o))return t(o);var i=[];for(var l in Object(o))r.call(o,l)&&l!="constructor"&&i.push(l);return i}return TC=a,TC}var NC,tT;function Lo(){if(tT)return NC;tT=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return NC=e,NC}var _C,nT;function s3(){if(nT)return _C;nT=1;var e=fc(),t=Lo(),n="[object AsyncFunction]",r="[object Function]",a="[object GeneratorFunction]",o="[object Proxy]";function i(l){if(!t(l))return!1;var c=e(l);return c==r||c==a||c==n||c==o}return _C=i,_C}var jC,rT;function dd(){if(rT)return jC;rT=1;var e=s3(),t=r3();function n(r){return r!=null&&t(r.length)&&!e(r)}return jC=n,jC}var DC,aT;function Vv(){if(aT)return DC;aT=1;var e=UB(),t=K6e(),n=dd();function r(a){return n(a)?e(a):t(a)}return DC=r,DC}var FC,oT;function XB(){if(oT)return FC;oT=1;var e=qB(),t=Vv();function n(r,a){return r&&e(r,a,t)}return FC=n,FC}var kC,iT;function R0(){if(iT)return kC;iT=1;function e(t){return t}return kC=e,kC}var LC,lT;function YB(){if(lT)return LC;lT=1;var e=R0();function t(n){return typeof n=="function"?n:e}return LC=t,LC}var zC,sT;function c3(){if(sT)return zC;sT=1;var e=XB(),t=YB();function n(r,a){return r&&e(r,t(a))}return zC=n,zC}var AC,cT;function u3(){if(cT)return AC;cT=1;var e=GB(),t=e(Object.getPrototypeOf,Object);return AC=t,AC}var BC,uT;function QB(){if(uT)return BC;uT=1;var e=fc(),t=u3(),n=Ai(),r="[object Object]",a=Function.prototype,o=Object.prototype,i=a.toString,l=o.hasOwnProperty,c=i.call(Object);function u(d){if(!n(d)||e(d)!=r)return!1;var f=t(d);if(f===null)return!0;var m=l.call(f,"constructor")&&f.constructor;return typeof m=="function"&&m instanceof m&&i.call(m)==c}return BC=u,BC}var HC,dT;function ZB(){if(dT)return HC;dT=1;function e(t,n){for(var r=-1,a=t==null?0:t.length,o=Array(a);++r-1}return GC=t,GC}var XC,bT;function Y6e(){if(bT)return XC;bT=1;var e=I0();function t(n,r){var a=this.__data__,o=e(a,n);return o<0?(++this.size,a.push([n,r])):a[o][1]=r,this}return XC=t,XC}var YC,yT;function M0(){if(yT)return YC;yT=1;var e=q6e(),t=U6e(),n=G6e(),r=X6e(),a=Y6e();function o(i){var l=-1,c=i==null?0:i.length;for(this.clear();++lg))return!1;var b=f.get(i),p=f.get(l);if(b&&p)return b==l&&p==i;var S=-1,C=!0,x=c&a?new e:void 0;for(f.set(i,l),f.set(l,i);++S0&&arguments[0]!==void 0?arguments[0]:[],m=[];return(0,l.default)(f,function(g){Array.isArray(g)?d(g).map(function(h){return m.push(h)}):(0,o.default)(g)?(0,r.default)(g,function(h,b){h===!0&&m.push(b),m.push(b+"-"+h)}):(0,t.default)(g)&&m.push(g)}),m};return Xc.default=u,Xc}var Yc={},wx,UN;function fH(){if(UN)return wx;UN=1;function e(t,n){for(var r=-1,a=t==null?0:t.length;++r1&&arguments[1]!==void 0?arguments[1]:[],d=c.default&&(0,r.default)(c.default)||{};return u.map(function(f){var m=c[f];return m&&(0,t.default)(m,function(g,h){d[h]||(d[h]={}),d[h]=a({},d[h],m[h])}),f}),d};return Yc.default=i,Yc}var Qc={},E_;function CRe(){if(E_)return Qc;E_=1,Object.defineProperty(Qc,"__esModule",{value:!0}),Qc.autoprefix=void 0;var e=c3(),t=r(e),n=Object.assign||function(i){for(var l=1;l1&&arguments[1]!==void 0?arguments[1]:"span";return(function(f){i(m,f);function m(){var g,h,b,p;a(this,m);for(var S=arguments.length,C=Array(S),x=0;x1&&arguments[1]!==void 0?arguments[1]:"span";return(function(f){i(m,f);function m(){var g,h,b,p;a(this,m);for(var S=arguments.length,C=Array(S),x=0;x1&&arguments[1]!==void 0?arguments[1]:!0;a[l]=c};return n===0&&o("first-child"),n===r-1&&o("last-child"),(n===0||n%2===0)&&o("even"),Math.abs(n%2)===1&&o("odd"),o("nth-child",n),a};return Ng.default=e,Ng}var I_;function $Re(){if(I_)return Ba;I_=1,Object.defineProperty(Ba,"__esModule",{value:!0}),Ba.ReactCSS=Ba.loop=Ba.handleActive=Ba.handleHover=Ba.hover=void 0;var e=JOe(),t=m(e),n=yRe(),r=m(n),a=CRe(),o=m(a),i=SRe(),l=m(i),c=xRe(),u=m(c),d=wRe(),f=m(d);function m(h){return h&&h.__esModule?h:{default:h}}Ba.hover=l.default,Ba.handleHover=l.default,Ba.handleActive=u.default,Ba.loop=f.default;var g=Ba.ReactCSS=function(b){for(var p=arguments.length,S=Array(p>1?p-1:0),C=1;C0){if(++o>=e)return arguments[0]}else o=0;return a.apply(void 0,arguments)}}return c2=r,c2}var u2,B_;function DRe(){if(B_)return u2;B_=1;var e=_Re(),t=jRe(),n=t(e);return u2=n,u2}var d2,H_;function FRe(){if(H_)return d2;H_=1;var e=R0(),t=TRe(),n=DRe();function r(a,o){return n(t(a,o,e),a+"")}return d2=r,d2}var f2,V_;function kRe(){if(V_)return f2;V_=1;var e=Wv(),t=dd(),n=n3(),r=Lo();function a(o,i,l){if(!r(l))return!1;var c=typeof i;return(c=="number"?t(l)&&n(i,l.length):c=="string"&&i in l)?e(l[i],o):!1}return f2=a,f2}var v2,W_;function LRe(){if(W_)return v2;W_=1;var e=FRe(),t=kRe();function n(r){return e(function(a,o){var i=-1,l=o.length,c=l>1?o[l-1]:void 0,u=l>2?o[2]:void 0;for(c=r.length>3&&typeof c=="function"?(l--,c):void 0,u&&t(o[0],o[1],u)&&(c=l<3?void 0:c,l=1),a=Object(a);++il?m=1:m=Math.round(f*100/l)/100,n.a!==m)return{h:n.h,s:n.s,l:n.l,a:m,source:"rgb"}}else{var g;if(d<0?g=0:d>i?g=1:g=Math.round(d*100/i)/100,a!==g)return{h:n.h,s:n.s,l:n.l,a:g,source:"rgb"}}return null},g2={},VRe=function(t,n,r,a){if(typeof document>"u"&&!a)return null;var o=a?new a:document.createElement("canvas");o.width=r*2,o.height=r*2;var i=o.getContext("2d");return i?(i.fillStyle=t,i.fillRect(0,0,o.width,o.height),i.fillStyle=n,i.fillRect(0,0,r,r),i.translate(r,r),i.fillRect(0,0,r,r),o.toDataURL()):null},WRe=function(t,n,r,a){var o="".concat(t,"-").concat(n,"-").concat(r).concat(a?"-server":"");if(g2[o])return g2[o];var i=VRe(t,n,r,a);return g2[o]=i,i};function nv(e){"@babel/helpers - typeof";return nv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nv(e)}function q_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function _g(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Up(e){return Up=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Up(e)}var o8e=(function(e){e8e(n,e);var t=t8e(n);function n(){var r;YRe(this,n);for(var a=arguments.length,o=new Array(a),i=0;ii)f=0;else{var m=-(d*100/i)+100;f=360*m/100}if(r.h!==f)return{h:f,s:r.s,l:r.l,a:r.a,source:"hsl"}}else{var g;if(u<0)g=0;else if(u>o)g=359;else{var h=u*100/o;g=360*h/100}if(r.h!==g)return{h:g,s:r.s,l:r.l,a:r.a,source:"hsl"}}return null};function _u(e){"@babel/helpers - typeof";return _u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_u(e)}function l8e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s8e(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Gp(e){return Gp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Gp(e)}var h8e=(function(e){f8e(n,e);var t=v8e(n);function n(){var r;l8e(this,n);for(var a=arguments.length,o=new Array(a),i=0;i=c||_<0||C&&F>=m}function M(){var L=t();if(P(L))return O(L);h=setTimeout(M,E(L))}function O(L){return h=void 0,x&&d?w(L):(d=f=void 0,g)}function T(){h!==void 0&&clearTimeout(h),p=0,d=b=f=h=void 0}function N(){return h===void 0?g:O(t())}function D(){var L=t(),_=P(L);if(d=arguments,f=this,b=L,_){if(h===void 0)return $(b);if(C)return clearTimeout(h),h=setTimeout(M,c),w(b)}return h===void 0&&(h=setTimeout(M,c)),g}return D.cancel=T,D.flush=N,D}return C2=i,C2}var S2,J_;function x8e(){if(J_)return S2;J_=1;var e=wH(),t=Lo(),n="Expected a function";function r(a,o,i){var l=!0,c=!0;if(typeof a!="function")throw new TypeError(n);return t(i)&&(l="leading"in i?!!i.leading:l,c="trailing"in i?!!i.trailing:c),e(a,o,{leading:l,maxWait:o,trailing:c})}return S2=r,S2}var w8e=x8e();const $8e=Lr(w8e);var E8e=function(t,n,r){var a=r.getBoundingClientRect(),o=a.width,i=a.height,l=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,c=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,u=l-(r.getBoundingClientRect().left+window.pageXOffset),d=c-(r.getBoundingClientRect().top+window.pageYOffset);u<0?u=0:u>o&&(u=o),d<0?d=0:d>i&&(d=i);var f=u/o,m=1-d/i;return{h:n.h,s:f,v:m,a:n.a,source:"hsv"}};function ju(e){"@babel/helpers - typeof";return ju=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ju(e)}function P8e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O8e(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Xp(e){return Xp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Xp(e)}var F8e=(function(e){T8e(n,e);var t=N8e(n);function n(r){var a;return P8e(this,n),a=t.call(this,r),a.handleChange=function(o){typeof a.props.onChange=="function"&&a.throttle(a.props.onChange,E8e(o,a.props.hsl,a.container),o)},a.handleMouseDown=function(o){a.handleChange(o);var i=a.getContainerRenderWindow();i.addEventListener("mousemove",a.handleChange),i.addEventListener("mouseup",a.handleMouseUp)},a.handleMouseUp=function(){a.unbindEventListeners()},a.throttle=$8e(function(o,i,l){o(i,l)},50),a}return R8e(n,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var a=this.container,o=window;!o.document.contains(a)&&o.parent!==o;)o=o.parent;return o}},{key:"unbindEventListeners",value:function(){var a=this.getContainerRenderWindow();a.removeEventListener("mousemove",this.handleChange),a.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var a=this,o=this.props.style||{},i=o.color,l=o.white,c=o.black,u=o.pointer,d=o.circle,f=us({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl(".concat(this.props.hsl.h,",100%, 50%)"),borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:"".concat(-(this.props.hsv.v*100)+100,"%"),left:"".concat(this.props.hsv.s*100,"%"),cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:`0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3), - 0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:i,white:l,black:c,pointer:u,circle:d}},{custom:!!this.props.style});return Q.createElement("div",{style:f.color,ref:function(g){return a.container=g},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},Q.createElement("style",null,` - .saturation-white { - background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0)); - background: linear-gradient(to right, #fff, rgba(255,255,255,0)); - } - .saturation-black { - background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0)); - background: linear-gradient(to top, #000, rgba(0,0,0,0)); - } - `),Q.createElement("div",{style:f.white,className:"saturation-white"},Q.createElement("div",{style:f.black,className:"saturation-black"}),Q.createElement("div",{style:f.pointer},this.props.pointer?Q.createElement(this.props.pointer,this.props):Q.createElement("div",{style:f.circle}))))}}]),n})(s.PureComponent||s.Component),k8e=wH();const L8e=Lr(k8e);var x2,e7;function z8e(){if(e7)return x2;e7=1;var e=fH(),t=dH(),n=YB(),r=go();function a(o,i){var l=r(o)?e:t;return l(o,n(i))}return x2=a,x2}var w2,t7;function A8e(){return t7||(t7=1,w2=z8e()),w2}var B8e=A8e();const H8e=Lr(B8e);function Yp(e){"@babel/helpers - typeof";return Yp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yp(e)}var V8e=/^\s+/,W8e=/\s+$/;function sn(e,t){if(e=e||"",t=t||{},e instanceof sn)return e;if(!(this instanceof sn))return new sn(e,t);var n=K8e(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}sn.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),n,r,a,o,i,l;return n=t.r/255,r=t.g/255,a=t.b/255,n<=.03928?o=n/12.92:o=Math.pow((n+.055)/1.055,2.4),r<=.03928?i=r/12.92:i=Math.pow((r+.055)/1.055,2.4),a<=.03928?l=a/12.92:l=Math.pow((a+.055)/1.055,2.4),.2126*o+.7152*i+.0722*l},setAlpha:function(t){return this._a=$H(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=r7(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=r7(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.v*100);return this._a==1?"hsv("+n+", "+r+"%, "+a+"%)":"hsva("+n+", "+r+"%, "+a+"%, "+this._roundA+")"},toHsl:function(){var t=n7(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=n7(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.l*100);return this._a==1?"hsl("+n+", "+r+"%, "+a+"%)":"hsla("+n+", "+r+"%, "+a+"%, "+this._roundA+")"},toHex:function(t){return a7(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return X8e(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Cr(this._r,255)*100)+"%",g:Math.round(Cr(this._g,255)*100)+"%",b:Math.round(Cr(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Cr(this._r,255)*100)+"%, "+Math.round(Cr(this._g,255)*100)+"%, "+Math.round(Cr(this._b,255)*100)+"%)":"rgba("+Math.round(Cr(this._r,255)*100)+"%, "+Math.round(Cr(this._g,255)*100)+"%, "+Math.round(Cr(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:lIe[a7(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var n="#"+o7(this._r,this._g,this._b,this._a),r=n,a=this._gradientType?"GradientType = 1, ":"";if(t){var o=sn(t);r="#"+o7(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+a+"startColorstr="+n+",endColorstr="+r+")"},toString:function(t){var n=!!t;t=t||this._format;var r=!1,a=this._a<1&&this._a>=0,o=!n&&a&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return o?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return sn(this.toString())},_applyModification:function(t,n){var r=t.apply(null,[this].concat([].slice.call(n)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(J8e,arguments)},brighten:function(){return this._applyModification(eIe,arguments)},darken:function(){return this._applyModification(tIe,arguments)},desaturate:function(){return this._applyModification(Y8e,arguments)},saturate:function(){return this._applyModification(Q8e,arguments)},greyscale:function(){return this._applyModification(Z8e,arguments)},spin:function(){return this._applyModification(nIe,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(oIe,arguments)},complement:function(){return this._applyCombination(rIe,arguments)},monochromatic:function(){return this._applyCombination(iIe,arguments)},splitcomplement:function(){return this._applyCombination(aIe,arguments)},triad:function(){return this._applyCombination(i7,[3])},tetrad:function(){return this._applyCombination(i7,[4])}};sn.fromRatio=function(e,t){if(Yp(e)=="object"){var n={};for(var r in e)e.hasOwnProperty(r)&&(r==="a"?n[r]=e[r]:n[r]=hf(e[r]));e=n}return sn(e,t)};function K8e(e){var t={r:0,g:0,b:0},n=1,r=null,a=null,o=null,i=!1,l=!1;return typeof e=="string"&&(e=dIe(e)),Yp(e)=="object"&&(Zi(e.r)&&Zi(e.g)&&Zi(e.b)?(t=q8e(e.r,e.g,e.b),i=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Zi(e.h)&&Zi(e.s)&&Zi(e.v)?(r=hf(e.s),a=hf(e.v),t=G8e(e.h,r,a),i=!0,l="hsv"):Zi(e.h)&&Zi(e.s)&&Zi(e.l)&&(r=hf(e.s),o=hf(e.l),t=U8e(e.h,r,o),i=!0,l="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=$H(n),{ok:i,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}function q8e(e,t,n){return{r:Cr(e,255)*255,g:Cr(t,255)*255,b:Cr(n,255)*255}}function n7(e,t,n){e=Cr(e,255),t=Cr(t,255),n=Cr(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),o,i,l=(r+a)/2;if(r==a)o=i=0;else{var c=r-a;switch(i=l>.5?c/(2-r-a):c/(r+a),r){case e:o=(t-n)/c+(t1&&(f-=1),f<1/6?u+(d-u)*6*f:f<1/2?d:f<2/3?u+(d-u)*(2/3-f)*6:u}if(t===0)r=a=o=n;else{var l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;r=i(c,l,e+1/3),a=i(c,l,e),o=i(c,l,e-1/3)}return{r:r*255,g:a*255,b:o*255}}function r7(e,t,n){e=Cr(e,255),t=Cr(t,255),n=Cr(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),o,i,l=r,c=r-a;if(i=r===0?0:c/r,r==a)o=0;else{switch(r){case e:o=(t-n)/c+(t>1)+720)%360;--t;)r.h=(r.h+a)%360,o.push(sn(r));return o}function iIe(e,t){t=t||6;for(var n=sn(e).toHsv(),r=n.h,a=n.s,o=n.v,i=[],l=1/t;t--;)i.push(sn({h:r,s:a,v:o})),o=(o+l)%1;return i}sn.mix=function(e,t,n){n=n===0?0:n||50;var r=sn(e).toRgb(),a=sn(t).toRgb(),o=n/100,i={r:(a.r-r.r)*o+r.r,g:(a.g-r.g)*o+r.g,b:(a.b-r.b)*o+r.b,a:(a.a-r.a)*o+r.a};return sn(i)};sn.readability=function(e,t){var n=sn(e),r=sn(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)};sn.isReadable=function(e,t,n){var r=sn.readability(e,t),a,o;switch(o=!1,a=fIe(n),a.level+a.size){case"AAsmall":case"AAAlarge":o=r>=4.5;break;case"AAlarge":o=r>=3;break;case"AAAsmall":o=r>=7;break}return o};sn.mostReadable=function(e,t,n){var r=null,a=0,o,i,l,c;n=n||{},i=n.includeFallbackColors,l=n.level,c=n.size;for(var u=0;ua&&(a=o,r=sn(t[u]));return sn.isReadable(e,r,{level:l,size:c})||!i?r:(n.includeFallbackColors=!1,sn.mostReadable(e,["#fff","#000"],n))};var M$=sn.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},lIe=sn.hexNames=sIe(M$);function sIe(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function $H(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Cr(e,t){cIe(e)&&(e="100%");var n=uIe(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function L0(e){return Math.min(1,Math.max(0,e))}function lo(e){return parseInt(e,16)}function cIe(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function uIe(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Qo(e){return e.length==1?"0"+e:""+e}function hf(e){return e<=1&&(e=e*100+"%"),e}function EH(e){return Math.round(parseFloat(e)*255).toString(16)}function l7(e){return lo(e)/255}var Uo=(function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",a="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+a),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function Zi(e){return!!Uo.CSS_UNIT.exec(e)}function dIe(e){e=e.replace(V8e,"").replace(W8e,"").toLowerCase();var t=!1;if(M$[e])e=M$[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=Uo.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=Uo.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Uo.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=Uo.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Uo.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=Uo.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Uo.hex8.exec(e))?{r:lo(n[1]),g:lo(n[2]),b:lo(n[3]),a:l7(n[4]),format:t?"name":"hex8"}:(n=Uo.hex6.exec(e))?{r:lo(n[1]),g:lo(n[2]),b:lo(n[3]),format:t?"name":"hex"}:(n=Uo.hex4.exec(e))?{r:lo(n[1]+""+n[1]),g:lo(n[2]+""+n[2]),b:lo(n[3]+""+n[3]),a:l7(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=Uo.hex3.exec(e))?{r:lo(n[1]+""+n[1]),g:lo(n[2]+""+n[2]),b:lo(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function fIe(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:t,size:n}}var s7=function(t){var n=["r","g","b","a","h","s","l","v"],r=0,a=0;return H8e(n,function(o){if(t[o]&&(r+=1,isNaN(t[o])||(a+=1),o==="s"||o==="l")){var i=/^\d+%$/;i.test(t[o])&&(a+=1)}}),r===a?t:!1},jg=function(t,n){var r=t.hex?sn(t.hex):sn(t),a=r.toHsl(),o=r.toHsv(),i=r.toRgb(),l=r.toHex();a.s===0&&(a.h=n||0,o.h=n||0);var c=l==="000000"&&i.a===0;return{hsl:a,hex:c?"transparent":"#".concat(l),rgb:i,hsv:o,oldHue:t.h||n||a.h,source:t.source}},vIe=function(t){if(t==="transparent")return!0;var n=String(t).charAt(0)==="#"?1:0;return t.length!==4+n&&t.length<7+n&&sn(t).isValid()};function Du(e){"@babel/helpers - typeof";return Du=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Du(e)}function T$(){return T$=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Qp(e){return Qp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Qp(e)}var wIe=function(t){var n=(function(r){bIe(o,r);var a=yIe(o);function o(i){var l;return gIe(this,o),l=a.call(this),l.handleChange=function(c,u){var d=s7(c);if(d){var f=jg(c,c.h||l.state.oldHue);l.setState(f),l.props.onChangeComplete&&l.debounce(l.props.onChangeComplete,f,u),l.props.onChange&&l.props.onChange(f,u)}},l.handleSwatchHover=function(c,u){var d=s7(c);if(d){var f=jg(c,c.h||l.state.oldHue);l.props.onSwatchHover&&l.props.onSwatchHover(f,u)}},l.state=tf({},jg(i.color,0)),l.debounce=L8e(function(c,u,d){c(u,d)},100),l}return pIe(o,[{key:"render",value:function(){var l={};return this.props.onSwatchHover&&(l.onSwatchHover=this.handleSwatchHover),Q.createElement(t,T$({},this.props,this.state,{onChange:this.handleChange},l))}}],[{key:"getDerivedStateFromProps",value:function(l,c){return tf({},jg(l.color,c.oldHue))}}]),o})(s.PureComponent||s.Component);return n.propTypes=tf({},t.propTypes),n.defaultProps=tf(tf({},t.defaultProps),{},{color:{h:250,s:.5,l:.2,a:1}}),n};function Fu(e){"@babel/helpers - typeof";return Fu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fu(e)}function $Ie(e,t,n){return t=OH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EIe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PIe(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Zp(e){return Zp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Zp(e)}var jIe=1,RH=38,DIe=40,FIe=[RH,DIe],kIe=function(t){return FIe.indexOf(t)>-1},LIe=function(t){return Number(String(t).replace(/%/g,""))},zIe=1,nf=(function(e){IIe(n,e);var t=MIe(n);function n(r){var a;return EIe(this,n),a=t.call(this),a.handleBlur=function(){a.state.blurValue&&a.setState({value:a.state.blurValue,blurValue:null})},a.handleChange=function(o){a.setUpdatedValue(o.target.value,o)},a.handleKeyDown=function(o){var i=LIe(o.target.value);if(!isNaN(i)&&kIe(o.keyCode)){var l=a.getArrowOffset(),c=o.keyCode===RH?i+l:i-l;a.setUpdatedValue(c,o)}},a.handleDrag=function(o){if(a.props.dragLabel){var i=Math.round(a.props.value+o.movementX);i>=0&&i<=a.props.dragMax&&a.props.onChange&&a.props.onChange(a.getValueObjectWithLabel(i),o)}},a.handleMouseDown=function(o){a.props.dragLabel&&(o.preventDefault(),a.handleDrag(o),window.addEventListener("mousemove",a.handleDrag),window.addEventListener("mouseup",a.handleMouseUp))},a.handleMouseUp=function(){a.unbindEventListeners()},a.unbindEventListeners=function(){window.removeEventListener("mousemove",a.handleDrag),window.removeEventListener("mouseup",a.handleMouseUp)},a.state={value:String(r.value).toUpperCase(),blurValue:String(r.value).toUpperCase()},a.inputId="rc-editable-input-".concat(zIe++),a}return OIe(n,[{key:"componentDidUpdate",value:function(a,o){this.props.value!==this.state.value&&(a.value!==this.props.value||o.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(a){return $Ie({},this.props.label,a)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||jIe}},{key:"setUpdatedValue",value:function(a,o){var i=this.props.label?this.getValueObjectWithLabel(a):a;this.props.onChange&&this.props.onChange(i,o),this.setState({value:a})}},{key:"render",value:function(){var a=this,o=us({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return Q.createElement("div",{style:o.wrap},Q.createElement("input",{id:this.inputId,style:o.input,ref:function(l){return a.input=l},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?Q.createElement("label",{htmlFor:this.inputId,style:o.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),n})(s.PureComponent||s.Component);function ku(e){"@babel/helpers - typeof";return ku=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ku(e)}function j$(){return j$=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Jp(e){return Jp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Jp(e)}var YIe=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return(function(r){KIe(o,r);var a=qIe(o);function o(){var i;AIe(this,o);for(var l=arguments.length,c=new Array(l),u=0;u100&&(d.a=100),d.a/=100,n?.({h:a?.h,s:a?.s,l:a?.l,a:d.a,source:"rgb"},f))};return Q.createElement("div",{style:l.fields,className:"flexbox-fix"},Q.createElement("div",{style:l.double},Q.createElement(nf,{style:{input:l.input,label:l.label},label:"hex",value:o?.replace("#",""),onChange:c})),Q.createElement("div",{style:l.single},Q.createElement(nf,{style:{input:l.input,label:l.label},label:"r",value:r?.r,onChange:c,dragLabel:"true",dragMax:"255"})),Q.createElement("div",{style:l.single},Q.createElement(nf,{style:{input:l.input,label:l.label},label:"g",value:r?.g,onChange:c,dragLabel:"true",dragMax:"255"})),Q.createElement("div",{style:l.single},Q.createElement(nf,{style:{input:l.input,label:l.label},label:"b",value:r?.b,onChange:c,dragLabel:"true",dragMax:"255"})),Q.createElement("div",{style:l.alpha},Q.createElement(nf,{style:{input:l.input,label:l.label},label:"a",value:Math.round((r?.a||0)*100),onChange:c,dragLabel:"true",dragMax:"100"})))};function av(e){"@babel/helpers - typeof";return av=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},av(e)}function v7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function m7(e){for(var t=1;t-1}function hMe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return(typeof e>"u"||e===!1)&&MH()?g4:gMe}var bMe=function(t,n){var r=t.text,a=t.mode,o=t.render,i=t.renderFormItem,l=t.fieldProps,c=t.old,u=s.useContext(At.ConfigContext),d=u.getPrefixCls,f=Q.useMemo(function(){return hMe(c)},[c]),m=d("pro-field-color-picker"),g=s.useMemo(function(){return c?"":le(q({},m,MH()))},[m,c]);if(a==="read"){var h=U.jsx(f,{value:r,mode:"read",ref:n,className:g,open:!1});return o?o(r,R({mode:a},l),h):h}if(a==="edit"||a==="update"){var b=R({display:"table-cell"},l.style),p=U.jsx(f,R(R({ref:n,presets:[pMe]},l),{},{style:b,className:g}));return i?i(r,R(R({mode:a},l),{},{style:b}),p):p}return null};const yMe=Q.forwardRef(bMe);xn.extend(GE);var CMe=function(t,n){return t?typeof n=="function"?n(xn(t)):xn(t).format((Array.isArray(n)?n[0]:n)||"YYYY-MM-DD"):"-"},SMe=function(t,n){var r=t.text,a=t.mode,o=t.format,i=t.label,l=t.light,c=t.render,u=t.renderFormItem,d=t.plain,f=t.showTime,m=t.fieldProps,g=t.picker,h=t.bordered,b=t.lightLabel,p=Rn(),S=s.useState(!1),C=fe(S,2),x=C[0],w=C[1];if(a==="read"){var $=CMe(r,m.format||o);return c?c(r,R({mode:a},m),U.jsx(U.Fragment,{children:$})):U.jsx(U.Fragment,{children:$})}if(a==="edit"||a==="update"){var E,P=m.disabled,M=m.value,O=m.placeholder,T=O===void 0?p.getMessage("tableForm.selectPlaceholder","请选择"):O,N=Lv(M);return l?E=U.jsx(Li,{label:i,onClick:function(){var L;m==null||(L=m.onOpenChange)===null||L===void 0||L.call(m,!0),w(!0)},style:N?{paddingInlineEnd:0}:void 0,disabled:P,value:N||x?U.jsx(ko,R(R(R({picker:g,showTime:f,format:o,ref:n},m),{},{value:N,onOpenChange:function(L){var _;w(L),m==null||(_=m.onOpenChange)===null||_===void 0||_.call(m,L)}},fo(!1)),{},{open:x})):void 0,allowClear:!1,downIcon:N||x?!1:void 0,bordered:h,ref:b}):E=U.jsx(ko,R(R(R({picker:g,showTime:f,format:o,placeholder:T},fo(d===void 0?!0:!d)),{},{ref:n},m),{},{value:N})),u?u(r,R({mode:a},m),E):E}return null};const eu=Q.forwardRef(SMe);var xMe=function(t,n){var r=t.text,a=t.mode,o=t.render,i=t.placeholder,l=t.renderFormItem,c=t.fieldProps,u=Rn(),d=i||u.getMessage("tableForm.inputPlaceholder","请输入"),f=s.useCallback(function(S){var C=S??void 0;return!c.stringMode&&typeof C=="string"&&(C=Number(C)),typeof C=="number"&&!ts(C)&&!ts(c.precision)&&(C=Number(C.toFixed(c.precision))),C},[c]);if(a==="read"){var m,g={};c!=null&&c.precision&&(g={minimumFractionDigits:Number(c.precision),maximumFractionDigits:Number(c.precision)});var h=new Intl.NumberFormat(void 0,R(R({},g),c?.intlProps||{})).format(Number(r)),b=c!=null&&c.stringMode?U.jsx("span",{children:r}):U.jsx("span",{ref:n,children:(c==null||(m=c.formatter)===null||m===void 0?void 0:m.call(c,h))||h});return o?o(r,R({mode:a},c),b):b}if(a==="edit"||a==="update"){var p=U.jsx(ul,R(R({ref:n,min:0,placeholder:d},Qt(c,["onChange","onBlur"])),{},{onChange:function(C){var x;return c==null||(x=c.onChange)===null||x===void 0?void 0:x.call(c,f(C))},onBlur:function(C){var x;return c==null||(x=c.onBlur)===null||x===void 0?void 0:x.call(c,f(C.target.value))}}));return l?l(r,R({mode:a},c),p):p}return null};const wMe=Q.forwardRef(xMe);var $Me=function(t,n){var r=t.text,a=t.mode,o=t.render,i=t.placeholder,l=t.renderFormItem,c=t.fieldProps,u=t.separator,d=u===void 0?"~":u,f=t.separatorWidth,m=f===void 0?30:f,g=c.value,h=c.defaultValue,b=c.onChange,p=c.id,S=Rn(),C=fa.useToken(),x=C.token,w=Tt(function(){return h},{value:g,onChange:b}),$=fe(w,2),E=$[0],P=$[1],M=s.useRef(E);if(a==="read"){var O=function(V){var H,B=new Intl.NumberFormat(void 0,R({minimumSignificantDigits:2},c?.intlProps||{})).format(Number(V));return(c==null||(H=c.formatter)===null||H===void 0?void 0:H.call(c,B))||B},T=U.jsxs("span",{ref:n,children:[O(r[0])," ",d," ",O(r[1])]});return o?o(r,R({mode:a},c),T):T}if(a==="edit"||a==="update"){var N=function(){if(Array.isArray(M.current)){var V=fe(M.current,2),H=V[0],B=V[1];typeof H=="number"&&typeof B=="number"&&H>B?P([B,H]):H===void 0&&B===void 0&&P(void 0)}},D=function(V,H){var B=Te(E||[]);B[V]=H===null?void 0:H,M.current=B,P(B)},L=c?.placeholder||i||[S.getMessage("tableForm.inputPlaceholder","请输入"),S.getMessage("tableForm.inputPlaceholder","请输入")],_=function(V){return Array.isArray(L)?L[V]:L},F=Qr.Compact||$a.Group,j=Qr.Compact?{}:{compact:!0},k=U.jsxs(F,R(R({},j),{},{onBlur:N,children:[U.jsx(ul,R(R({},c),{},{placeholder:_(0),id:p??"".concat(p,"-0"),style:{width:"calc((100% - ".concat(m,"px) / 2)")},value:E?.[0],defaultValue:h?.[0],onChange:function(V){return D(0,V)}})),U.jsx($a,{style:{width:m,textAlign:"center",borderInlineStart:0,borderInlineEnd:0,pointerEvents:"none",backgroundColor:x?.colorBgContainer},placeholder:d,disabled:!0}),U.jsx(ul,R(R({},c),{},{placeholder:_(1),id:p??"".concat(p,"-1"),style:{width:"calc((100% - ".concat(m,"px) / 2)"),borderInlineStart:0},value:E?.[1],defaultValue:h?.[1],onChange:function(V){return D(1,V)}}))]}));return l?l(r,R({mode:a},c),k):k}return null};const EMe=Q.forwardRef($Me);var fp={exports:{}},PMe=fp.exports,p7;function OMe(){return p7||(p7=1,(function(e,t){(function(n,r){e.exports=r()})(PMe,(function(){return function(n,r,a){n=n||{};var o=r.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function l(u,d,f,m){return o.fromToBase(u,d,f,m)}a.en.relativeTime=i,o.fromToBase=function(u,d,f,m,g){for(var h,b,p,S=f.$locale().relativeTime||i,C=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],x=C.length,w=0;w0,E<=$.r||!$.r){E<=1&&w>0&&($=C[w-1]);var P=S[$.l];g&&(E=g(""+E)),b=typeof P=="string"?P.replace("%d",E):P(E,d,$.l,p);break}}if(d)return b;var M=p?S.future:S.past;return typeof M=="function"?M(b):M.replace("%s",b)},o.to=function(u,d){return l(u,d,this,!0)},o.from=function(u,d){return l(u,d,this)};var c=function(u){return u.$u?a.utc():a()};o.toNow=function(u){return this.to(c(this),u)},o.fromNow=function(u){return this.from(c(this),u)}}}))})(fp)),fp.exports}var RMe=OMe();const IMe=Lr(RMe);xn.extend(IMe);var MMe=function(t,n){var r=t.text,a=t.mode,o=t.plain,i=t.render,l=t.renderFormItem,c=t.format,u=t.fieldProps,d=Rn();if(a==="read"){var f=U.jsx(tr,{title:xn(r).format(u?.format||c||"YYYY-MM-DD HH:mm:ss"),children:xn(r).fromNow()});return i?i(r,R({mode:a},u),U.jsx(U.Fragment,{children:f})):U.jsx(U.Fragment,{children:f})}if(a==="edit"||a==="update"){var m=d.getMessage("tableForm.selectPlaceholder","请选择"),g=Lv(u.value),h=U.jsx(ko,R(R(R({ref:n,placeholder:m,showTime:!0},fo(o===void 0?!0:!o)),u),{},{value:g}));return l?l(r,R({mode:a},u),h):h}return null};const TMe=Q.forwardRef(MMe);var TH=Q.forwardRef(function(e,t){var n=e.text,r=e.mode,a=e.render,o=e.renderFormItem,i=e.fieldProps,l=e.placeholder,c=e.width,u=Rn(),d=l||u.getMessage("tableForm.inputPlaceholder","请输入");if(r==="read"){var f=U.jsx(Pz,R({ref:t,width:c||32,src:n},i));return a?a(n,R({mode:r},i),f):f}if(r==="edit"||r==="update"){var m=U.jsx($a,R({ref:t,placeholder:d},i));return o?o(n,R({mode:r},i),m):m}return null}),NMe=function(t,n){var r=t.border,a=r===void 0?!1:r,o=t.children,i=s.useContext(At.ConfigContext),l=i.getPrefixCls,c=l("pro-field-index-column"),u=Yn("IndexColumn",function(){return q({},".".concat(c),{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"18px",height:"18px","&-border":{color:"#fff",fontSize:"12px",lineHeight:"12px",backgroundColor:"#314659",borderRadius:"9px","&.top-three":{backgroundColor:"#979797"}}})}),d=u.wrapSSR,f=u.hashId;return d(U.jsx("div",{ref:n,className:le(c,f,q(q({},"".concat(c,"-border"),a),"top-three",o>3)),children:o}))};const h7=Q.forwardRef(NMe);var _Me=["contentRender","numberFormatOptions","numberPopoverRender","open"],jMe=["text","mode","render","renderFormItem","fieldProps","proFieldKey","plain","valueEnum","placeholder","locale","customSymbol","numberFormatOptions","numberPopoverRender"],NH=new Intl.NumberFormat("zh-Hans-CN",{currency:"CNY",style:"currency"}),DMe={style:"currency",currency:"USD"},FMe={style:"currency",currency:"RUB"},kMe={style:"currency",currency:"RSD"},LMe={style:"currency",currency:"MYR"},zMe={style:"currency",currency:"BRL"},AMe={default:NH,"zh-Hans-CN":{currency:"CNY",style:"currency"},"en-US":DMe,"ru-RU":FMe,"ms-MY":LMe,"sr-RS":kMe,"pt-BR":zMe},b7=function(t,n,r,a){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"",i=n?.toString().replaceAll(",","");if(typeof i=="string"){var l=Number(i);if(Number.isNaN(l))return i;i=l}if(!i&&i!==0)return"";var c=!1;try{c=t!==!1&&Intl.NumberFormat.supportedLocalesOf([t.replace("_","-")],{localeMatcher:"lookup"}).length>0}catch{}try{var u=new Intl.NumberFormat(c&&t!==!1&&t?.replace("_","-")||"zh-Hans-CN",R(R({},AMe[t||"zh-Hans-CN"]||NH),{},{maximumFractionDigits:r},a)),d=u.format(i),f=function(S){var C=S.match(/\d+/);if(C){var x=C[0];return S.slice(S.indexOf(x))}else return S},m=f(d),g=d||"",h=fe(g,1),b=h[0];return["+","-"].includes(b)?"".concat(o||"").concat(b).concat(m):"".concat(o||"").concat(m)}catch{return i}},$2=2,BMe=Q.forwardRef(function(e,t){var n=e.contentRender;e.numberFormatOptions,e.numberPopoverRender;var r=e.open,a=Ue(e,_Me),o=Tt(function(){return a.defaultValue},{value:a.value,onChange:a.onChange}),i=fe(o,2),l=i[0],c=i[1],u=n?.(R(R({},a),{},{value:l})),d=Fv(u?r:!1);return U.jsx(Fi,R(R({placement:"topLeft"},d),{},{trigger:["focus","click"],content:u,getPopupContainer:function(m){return m?.parentElement||document.body},children:U.jsx(ul,R(R({ref:t},a),{},{value:l,onChange:c}))}))}),HMe=function(t,n){var r,a=t.text,o=t.mode,i=t.render,l=t.renderFormItem,c=t.fieldProps;t.proFieldKey,t.plain,t.valueEnum;var u=t.placeholder,d=t.locale,f=t.customSymbol,m=f===void 0?c.customSymbol:f,g=t.numberFormatOptions,h=g===void 0?c?.numberFormatOptions:g,b=t.numberPopoverRender,p=b===void 0?c?.numberPopoverRender||!1:b,S=Ue(t,jMe),C=(r=c?.precision)!==null&&r!==void 0?r:$2,x=Rn();d&&Gs[d]&&(x=Gs[d]);var w=u||x.getMessage("tableForm.inputPlaceholder","请输入"),$=s.useMemo(function(){if(m)return m;if(!(S.moneySymbol===!1||c.moneySymbol===!1))return x.getMessage("moneySymbol","¥")},[m,c.moneySymbol,x,S.moneySymbol]),E=s.useCallback(function(O){var T=new RegExp("\\B(?=(\\d{".concat(3+Math.max(C-$2,0),"})+(?!\\d))"),"g"),N=String(O).split("."),D=fe(N,2),L=D[0],_=D[1],F=L.replace(T,","),j="";return _&&C>0&&(j=".".concat(_.slice(0,C===void 0?$2:C))),"".concat(F).concat(j)},[C]);if(o==="read"){var P=U.jsx("span",{ref:n,children:b7(d||!1,a,C,h??c.numberFormatOptions,$)});return i?i(a,R({mode:o},c),P):P}if(o==="edit"||o==="update"){var M=U.jsx(BMe,R(R({contentRender:function(T){if(p===!1||!T.value)return null;var N=b7($||d||!1,"".concat(E(T.value)),C,R(R({},h),{},{notation:"compact"}),$);return typeof p=="function"?p?.(T,N):N},ref:n,precision:C,formatter:function(T){return T&&$?"".concat($," ").concat(E(T)):T?.toString()},parser:function(T){return $&&T?T.replace(new RegExp("\\".concat($,"\\s?|(,*)"),"g"),""):T},placeholder:w},Qt(c,["numberFormatOptions","precision","numberPopoverRender","customSymbol","moneySymbol","visible","open"])),{},{onBlur:c.onBlur?function(O){var T,N=O.target.value;$&&N&&(N=N.replace(new RegExp("\\".concat($,"\\s?|(,*)"),"g"),"")),(T=c.onBlur)===null||T===void 0||T.call(c,N)}:void 0}));return l?l(a,R({mode:o},c),M):M}return null};const _H=Q.forwardRef(HMe);var y7=function(t){return t.map(function(n,r){var a;return Q.isValidElement(n)?Q.cloneElement(n,R(R({key:r},n?.props),{},{style:R({},n==null||(a=n.props)===null||a===void 0?void 0:a.style)})):U.jsx(Q.Fragment,{children:n},r)})},VMe=function(t,n){var r=t.text,a=t.mode,o=t.render,i=t.fieldProps,l=s.useContext(At.ConfigContext),c=l.getPrefixCls,u=c("pro-field-option"),d=fa.useToken(),f=d.token;if(s.useImperativeHandle(n,function(){return{}}),o){var m=o(r,R({mode:a},i),U.jsx(U.Fragment,{}));return!m||m?.length<1||!Array.isArray(m)?null:U.jsx("div",{style:{display:"flex",gap:f.margin,alignItems:"center"},className:u,children:y7(m)})}return!r||!Array.isArray(r)?Q.isValidElement(r)?r:null:U.jsx("div",{style:{display:"flex",gap:f.margin,alignItems:"center"},className:u,children:y7(r)})};const WMe=Q.forwardRef(VMe);var KMe=["text","mode","render","renderFormItem","fieldProps","proFieldKey"],qMe=function(t,n){var r=t.text,a=t.mode,o=t.render,i=t.renderFormItem,l=t.fieldProps;t.proFieldKey;var c=Ue(t,KMe),u=Rn(),d=Tt(function(){return c.open||c.visible||!1},{value:c.open||c.visible,onChange:c.onOpenChange||c.onVisible}),f=fe(d,2),m=f[0],g=f[1];if(a==="read"){var h=U.jsx(U.Fragment,{children:"-"});return r&&(h=U.jsxs(Qr,{children:[U.jsx("span",{ref:n,children:m?r:"********"}),U.jsx("a",{onClick:function(){return g(!m)},children:m?U.jsx(i0,{}):U.jsx(Oz,{})})]})),o?o(r,R({mode:a},l),h):h}if(a==="edit"||a==="update"){var b=U.jsx($a.Password,R({placeholder:u.getMessage("tableForm.inputPlaceholder","请输入"),ref:n},l));return i?i(r,R({mode:a},l),b):b}return null};const UMe=Q.forwardRef(qMe);function GMe(e){return e===0?null:e>0?"+":"-"}function XMe(e){return e===0?"#595959":e>0?"#ff4d4f":"#52c41a"}function YMe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return t>=0?e?.toFixed(t):e}function eh(e){return st(e)==="symbol"||e instanceof Symbol?NaN:Number(e)}var QMe=function(t,n){var r=t.text,a=t.prefix,o=t.precision,i=t.suffix,l=i===void 0?"%":i,c=t.mode,u=t.showColor,d=u===void 0?!1:u,f=t.render,m=t.renderFormItem,g=t.fieldProps,h=t.placeholder,b=t.showSymbol,p=Rn(),S=h||p.getMessage("tableForm.inputPlaceholder","请输入"),C=s.useMemo(function(){return typeof r=="string"&&r.includes("%")?eh(r.replace("%","")):eh(r)},[r]),x=s.useMemo(function(){return typeof b=="function"?b?.(r):b},[b,r]);if(c==="read"){var w=d?{color:XMe(C)}:{},$=U.jsxs("span",{style:w,ref:n,children:[a&&U.jsx("span",{children:a}),x&&U.jsxs(s.Fragment,{children:[GMe(C)," "]}),YMe(Math.abs(C),o),l&&l]});return f?f(r,R(R({mode:c},g),{},{prefix:a,precision:o,showSymbol:x,suffix:l}),$):$}if(c==="edit"||c==="update"){var E=U.jsx(ul,R({ref:n,formatter:function(M){return M&&a?"".concat(a," ").concat(M).replace(/\B(?=(\d{3})+(?!\d)$)/g,","):M},parser:function(M){return M?M.replace(/.*\s|,/g,""):""},placeholder:S},g));return m?m(r,R({mode:c},g),E):E}return null};const jH=Q.forwardRef(QMe);function ZMe(e){return e===100?"success":e<0?"exception":e<100?"active":"normal"}var JMe=function(t,n){var r=t.text,a=t.mode,o=t.render,i=t.plain,l=t.renderFormItem,c=t.fieldProps,u=t.placeholder,d=Rn(),f=u||d.getMessage("tableForm.inputPlaceholder","请输入"),m=s.useMemo(function(){return typeof r=="string"&&r.includes("%")?eh(r.replace("%","")):eh(r)},[r]);if(a==="read"){var g=U.jsx(E4,R({ref:n,size:"small",style:{minWidth:100,maxWidth:320},percent:m,steps:i?10:void 0,status:ZMe(m)},c));return o?o(m,R({mode:a},c),g):g}if(a==="edit"||a==="update"){var h=U.jsx(ul,R({ref:n,placeholder:f},c));return l?l(r,R({mode:a},c),h):h}return null};const DH=Q.forwardRef(JMe);var e5e=["radioType","renderFormItem","mode","render"],t5e=function(t,n){var r,a,o=t.radioType,i=t.renderFormItem,l=t.mode,c=t.render,u=Ue(t,e5e),d=s.useContext(At.ConfigContext),f=d.getPrefixCls,m=f("pro-field-radio"),g=ud(u),h=fe(g,3),b=h[0],p=h[1],S=h[2],C=s.useRef(),x=(r=Fn.Item)===null||r===void 0||(a=r.useStatus)===null||a===void 0?void 0:a.call(r);s.useImperativeHandle(n,function(){return R(R({},C.current||{}),{},{fetchData:function(_){return S(_)}})},[S]);var w=Yn("FieldRadioRadio",function(L){return q(q(q({},".".concat(m,"-error"),{span:{color:L.colorError}}),".".concat(m,"-warning"),{span:{color:L.colorWarning}}),".".concat(m,"-vertical"),q({},"".concat(L.antCls,"-radio-wrapper"),{display:"flex",marginInlineEnd:0}))}),$=w.wrapSSR,E=w.hashId;if(b)return U.jsx(ki,{size:"small"});if(l==="read"){var P=p!=null&&p.length?p?.reduce(function(L,_){var F;return R(R({},L),{},q({},(F=_.value)!==null&&F!==void 0?F:"",_.label))},{}):void 0,M=U.jsx(U.Fragment,{children:ld(u.text,gl(u.valueEnum||P))});if(c){var O;return(O=c(u.text,R({mode:l},u.fieldProps),M))!==null&&O!==void 0?O:null}return M}if(l==="edit"){var T,N=$(U.jsx(ss.Group,R(R({ref:C,optionType:o},u.fieldProps),{},{className:le((T=u.fieldProps)===null||T===void 0?void 0:T.className,q(q({},"".concat(m,"-error"),x?.status==="error"),"".concat(m,"-warning"),x?.status==="warning"),E,"".concat(m,"-").concat(u.fieldProps.layout||"horizontal")),options:p})));if(i){var D;return(D=i(u.text,R(R({mode:l},u.fieldProps),{},{options:p,loading:b}),N))!==null&&D!==void 0?D:null}return N}return null};const C7=Q.forwardRef(t5e);var n5e=function(t,n){var r=t.text,a=t.mode,o=t.light,i=t.label,l=t.format,c=t.render,u=t.picker,d=t.renderFormItem,f=t.plain,m=t.showTime,g=t.lightLabel,h=t.bordered,b=t.fieldProps,p=Rn(),S=Array.isArray(r)?r:[],C=fe(S,2),x=C[0],w=C[1],$=Q.useState(!1),E=fe($,2),P=E[0],M=E[1],O=s.useCallback(function(k){if(typeof b?.format=="function"){var z;return b==null||(z=b.format)===null||z===void 0?void 0:z.call(b,k)}return b?.format||l||"YYYY-MM-DD"},[b,l]),T=x?xn(x).format(O(xn(x))):"",N=w?xn(w).format(O(xn(w))):"";if(a==="read"){var D=U.jsxs("div",{ref:n,style:{display:"flex",flexWrap:"wrap",gap:8,alignItems:"center"},children:[U.jsx("div",{children:T||"-"}),U.jsx("div",{children:N||"-"})]});return c?c(r,R({mode:a},b),U.jsx("span",{children:D})):D}if(a==="edit"||a==="update"){var L=Lv(b.value),_,F=function(z){var V;b==null||(V=b.onChange)===null||V===void 0||V.call(b,z),z||M(!1)};if(o){var j;_=U.jsx(Li,{label:i,onClick:function(){var z;b==null||(z=b.onOpenChange)===null||z===void 0||z.call(b,!0),M(!0)},style:L?{paddingInlineEnd:0}:void 0,disabled:b.disabled,value:L||P?U.jsx(ko.RangePicker,R(R(R({picker:u,showTime:m,format:l},fo(!1)),b),{},{placeholder:(j=b.placeholder)!==null&&j!==void 0?j:[p.getMessage("tableForm.selectPlaceholder","请选择"),p.getMessage("tableForm.selectPlaceholder","请选择")],value:L,onOpenChange:function(z){var V;L&&M(z),b==null||(V=b.onOpenChange)===null||V===void 0||V.call(b,z)},onChange:F})):null,allowClear:!1,bordered:h,ref:g,downIcon:L||P?!1:void 0})}else _=U.jsx(ko.RangePicker,R(R(R({ref:n,format:l,showTime:m,placeholder:[p.getMessage("tableForm.selectPlaceholder","请选择"),p.getMessage("tableForm.selectPlaceholder","请选择")]},fo(f===void 0?!0:!f)),b),{},{value:L}));return d?d(r,R({mode:a},b),_):_}return null};const tu=Q.forwardRef(n5e);var r5e=function(t,n){var r=t.text,a=t.mode,o=t.render,i=t.renderFormItem,l=t.fieldProps;if(a==="read"){var c=U.jsx(HI,R(R({allowHalf:!0,disabled:!0,ref:n},l),{},{value:r}));return o?o(r,R({mode:a},l),U.jsx(U.Fragment,{children:c})):c}if(a==="edit"||a==="update"){var u=U.jsx(HI,R({allowHalf:!0,ref:n},l));return i?i(r,R({mode:a},l),u):u}return null};const a5e=Q.forwardRef(r5e);function o5e(e){var t=e,n="",r=!1;t<0&&(t=-t,r=!0);var a=Math.floor(t/(3600*24)),o=Math.floor(t/3600%24),i=Math.floor(t/60%60),l=Math.floor(t%60);return n="".concat(l,"秒"),i>0&&(n="".concat(i,"分钟").concat(n)),o>0&&(n="".concat(o,"小时").concat(n)),a>0&&(n="".concat(a,"天").concat(n)),r&&(n+="前"),n}var i5e=function(t,n){var r=t.text,a=t.mode,o=t.render,i=t.renderFormItem,l=t.fieldProps,c=t.placeholder,u=Rn(),d=c||u.getMessage("tableForm.inputPlaceholder","请输入");if(a==="read"){var f=o5e(Number(r)),m=U.jsx("span",{ref:n,children:f});return o?o(r,R({mode:a},l),m):m}if(a==="edit"||a==="update"){var g=U.jsx(ul,R({ref:n,min:0,style:{width:"100%"},placeholder:d},l));return i?i(r,R({mode:a},l),g):g}return null};const l5e=Q.forwardRef(i5e);var s5e=["mode","render","renderFormItem","fieldProps","emptyText"],c5e=function(t,n){var r=t.mode,a=t.render,o=t.renderFormItem,i=t.fieldProps,l=t.emptyText,c=l===void 0?"-":l,u=Ue(t,s5e),d=s.useRef(),f=ud(t),m=fe(f,3),g=m[0],h=m[1],b=m[2];if(s.useImperativeHandle(n,function(){return R(R({},d.current||{}),{},{fetchData:function($){return b($)}})},[b]),g)return U.jsx(ki,{size:"small"});if(r==="read"){var p=h!=null&&h.length?h?.reduce(function(w,$){var E;return R(R({},w),{},q({},(E=$.value)!==null&&E!==void 0?E:"",$.label))},{}):void 0,S=U.jsx(U.Fragment,{children:ld(u.text,gl(u.valueEnum||p))});if(a){var C;return(C=a(u.text,R({mode:r},i),U.jsx(U.Fragment,{children:S})))!==null&&C!==void 0?C:c}return S}if(r==="edit"||r==="update"){var x=U.jsx(I9,R(R({ref:d},Qt(i||{},["allowClear"])),{},{options:h}));return o?o(u.text,R(R({mode:r},i),{},{options:h,loading:g}),x):x}return null};const u5e=Q.forwardRef(c5e);var d5e=function(t,n){var r=t.text,a=t.mode,o=t.render,i=t.renderFormItem,l=t.fieldProps;if(a==="read"){var c=r;return o?o(r,R({mode:a},l),U.jsx(U.Fragment,{children:c})):U.jsx(U.Fragment,{children:c})}if(a==="edit"||a==="update"){var u=U.jsx(q9,R(R({ref:n},l),{},{style:R({minWidth:120},l?.style)}));return i?i(r,R({mode:a},l),u):u}return null};const f5e=Q.forwardRef(d5e);var v5e=function(t,n){var r=t.text,a=t.mode,o=t.render,i=t.light,l=t.label,c=t.renderFormItem,u=t.fieldProps,d=Rn(),f=s.useMemo(function(){var p,S;return r==null||"".concat(r).length<1?"-":r?(p=u?.checkedChildren)!==null&&p!==void 0?p:d.getMessage("switch.open","打开"):(S=u?.unCheckedChildren)!==null&&S!==void 0?S:d.getMessage("switch.close","关闭")},[u?.checkedChildren,u?.unCheckedChildren,r]);if(a==="read")return o?o(r,R({mode:a},u),U.jsx(U.Fragment,{children:f})):f??"-";if(a==="edit"||a==="update"){var m,g=U.jsx(tA,R(R({ref:n,size:i?"small":void 0},Qt(u,["value"])),{},{checked:(m=u?.checked)!==null&&m!==void 0?m:u?.value}));if(i){var h=u.disabled,b=u.bordered;return U.jsx(Li,{label:l,disabled:h,bordered:b,downIcon:!1,value:U.jsx("div",{style:{paddingLeft:8},children:g}),allowClear:!1})}return c?c(r,R({mode:a},u),g):g}return null};const m5e=Q.forwardRef(v5e);var g5e=function(t,n){var r=t.text,a=t.mode,o=t.render,i=t.renderFormItem,l=t.fieldProps,c=t.emptyText,u=c===void 0?"-":c,d=l||{},f=d.autoFocus,m=d.prefix,g=m===void 0?"":m,h=d.suffix,b=h===void 0?"":h,p=Rn(),S=s.useRef();if(s.useImperativeHandle(n,function(){return S.current},[]),s.useEffect(function(){if(f){var E;(E=S.current)===null||E===void 0||E.focus()}},[f]),a==="read"){var C=U.jsxs(U.Fragment,{children:[g,r??u,b]});if(o){var x;return(x=o(r,R({mode:a},l),C))!==null&&x!==void 0?x:u}return C}if(a==="edit"||a==="update"){var w=p.getMessage("tableForm.inputPlaceholder","请输入"),$=U.jsx($a,R({ref:S,placeholder:w,allowClear:!0},l));return i?i(r,R({mode:a},l),$):$}return null};const p5e=Q.forwardRef(g5e);var h5e=function(t,n){var r=t.text,a=t.fieldProps,o=s.useContext(At.ConfigContext),i=o.getPrefixCls,l=i("pro-field-readonly"),c="".concat(l,"-textarea"),u=Yn("TextArea",function(){return q({},".".concat(c),{display:"inline-block",lineHeight:"1.5715",maxWidth:"100%",whiteSpace:"pre-wrap"})}),d=u.wrapSSR,f=u.hashId;return d(U.jsx("span",R(R({ref:n,className:le(f,l,c)},Qt(a,["autoSize","classNames","styles"])),{},{children:r??"-"})))};const b5e=Q.forwardRef(h5e);var y5e=function(t,n){var r=t.text,a=t.mode,o=t.render,i=t.renderFormItem,l=t.fieldProps,c=Rn();if(a==="read"){var u=U.jsx(b5e,R(R({},t),{},{ref:n}));return o?o(r,R({mode:a},Qt(l,["showCount"])),u):u}if(a==="edit"||a==="update"){var d=U.jsx($a.TextArea,R({ref:n,rows:3,onKeyPress:function(m){m.key==="Enter"&&m.stopPropagation()},placeholder:c.getMessage("tableForm.inputPlaceholder","请输入")},l));return i?i(r,R({mode:a},l),d):d}return null};const C5e=Q.forwardRef(y5e);var S5e=function(t,n){var r=t.text,a=t.mode,o=t.light,i=t.label,l=t.format,c=t.render,u=t.renderFormItem,d=t.plain,f=t.fieldProps,m=t.lightLabel,g=s.useState(!1),h=fe(g,2),b=h[0],p=h[1],S=Rn(),C=f?.format||l||"HH:mm:ss",x=xn.isDayjs(r)||typeof r=="number";if(a==="read"){var w=U.jsx("span",{ref:n,children:r?xn(r,x?void 0:C).format(C):"-"});return c?c(r,R({mode:a},f),U.jsx("span",{children:w})):w}if(a==="edit"||a==="update"){var $,E=f.disabled,P=f.value,M=Lv(P,C);if(o){var O;$=U.jsx(Li,{onClick:function(){var N;f==null||(N=f.onOpenChange)===null||N===void 0||N.call(f,!0),p(!0)},style:M?{paddingInlineEnd:0}:void 0,label:i,disabled:E,value:M||b?U.jsx(Us,R(R(R({},fo(!1)),{},{format:l,ref:n},f),{},{placeholder:(O=f.placeholder)!==null&&O!==void 0?O:S.getMessage("tableForm.selectPlaceholder","请选择"),value:M,onOpenChange:function(N){var D;p(N),f==null||(D=f.onOpenChange)===null||D===void 0||D.call(f,N)},open:b})):null,downIcon:M||b?!1:void 0,allowClear:!1,ref:m})}else $=U.jsx(ko.TimePicker,R(R(R({ref:n,format:l},fo(d===void 0?!0:!d)),f),{},{value:M}));return u?u(r,R({mode:a},f),$):$}return null},x5e=function(t,n){var r=t.text,a=t.light,o=t.label,i=t.mode,l=t.lightLabel,c=t.format,u=t.render,d=t.renderFormItem,f=t.plain,m=t.fieldProps,g=Rn(),h=s.useState(!1),b=fe(h,2),p=b[0],S=b[1],C=m?.format||c||"HH:mm:ss",x=Array.isArray(r)?r:[],w=fe(x,2),$=w[0],E=w[1],P=xn.isDayjs($)||typeof $=="number",M=xn.isDayjs(E)||typeof E=="number",O=$?xn($,P?void 0:C).format(C):"",T=E?xn(E,M?void 0:C).format(C):"";if(i==="read"){var N=U.jsxs("div",{ref:n,children:[U.jsx("div",{children:O||"-"}),U.jsx("div",{children:T||"-"})]});return u?u(r,R({mode:i},m),U.jsx("span",{children:N})):N}if(i==="edit"||i==="update"){var D=Lv(m.value,C),L;if(a){var _=m.disabled,F=m.placeholder,j=F===void 0?[g.getMessage("tableForm.selectPlaceholder","请选择"),g.getMessage("tableForm.selectPlaceholder","请选择")]:F;L=U.jsx(Li,{onClick:function(){var z;m==null||(z=m.onOpenChange)===null||z===void 0||z.call(m,!0),S(!0)},style:D?{paddingInlineEnd:0}:void 0,label:o,disabled:_,placeholder:j,value:D||p?U.jsx(Us.RangePicker,R(R(R({},fo(!1)),{},{format:c,ref:n},m),{},{placeholder:j,value:D,onOpenChange:function(z){var V;S(z),m==null||(V=m.onOpenChange)===null||V===void 0||V.call(m,z)},open:p})):null,downIcon:D||p?!1:void 0,allowClear:!1,ref:l})}else L=U.jsx(Us.RangePicker,R(R(R({ref:n,format:c},fo(f===void 0?!0:!f)),m),{},{value:D}));return d?d(r,R({mode:i},m),L):L}return null},w5e=Q.forwardRef(x5e);const $5e=Q.forwardRef(S5e);var E5e=["radioType","renderFormItem","mode","light","label","render"],P5e=["onSearch","onClear","onChange","onBlur","showSearch","autoClearSearchValue","treeData","fetchDataOnSearch","searchValue"],O5e=function(t,n){t.radioType;var r=t.renderFormItem,a=t.mode,o=t.light,i=t.label,l=t.render,c=Ue(t,E5e),u=s.useContext(At.ConfigContext),d=u.getPrefixCls,f=d("pro-field-tree-select"),m=s.useRef(null),g=s.useState(!1),h=fe(g,2),b=h[0],p=h[1],S=c.fieldProps,C=S.onSearch,x=S.onClear,w=S.onChange,$=S.onBlur,E=S.showSearch,P=S.autoClearSearchValue;S.treeData;var M=S.fetchDataOnSearch,O=S.searchValue,T=Ue(S,P5e),N=Rn(),D=ud(R(R({},c),{},{defaultKeyWords:O})),L=fe(D,3),_=L[0],F=L[1],j=L[2],k=Tt(void 0,{onChange:C,value:O}),z=fe(k,2),V=z[0],H=z[1];s.useImperativeHandle(n,function(){return R(R({},m.current||{}),{},{fetchData:function(ue){return j(ue)}})});var B=s.useMemo(function(){if(a==="read"){var me=T?.fieldNames||{},ue=me.value,de=ue===void 0?"value":ue,ae=me.label,ie=ae===void 0?"label":ae,ge=me.children,pe=ge===void 0?"children":ge,be=new Map,ve=function Ce(he){if(!(he!=null&&he.length))return be;for(var Se=he.length,Ee=0;Ee4&&(g+=7),m.add(g,n));return h.diff(b,"week")+1},l.isoWeekday=function(u){return this.$utils().u(u)?this.day()||7:this.day(this.day()%7?u:u-7)};var c=l.startOf;l.startOf=function(u,d){var f=this.$utils(),m=!!f.u(d)||d;return f.p(u)==="isoweek"?m?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):c.bind(this)(u,d)}}}))})(vp)),vp.exports}var T5e=M5e();const N5e=Lr(T5e);var mp={exports:{}},_5e=mp.exports,x7;function j5e(){return x7||(x7=1,(function(e,t){(function(n,r){e.exports=r()})(_5e,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,a,o){var i=a.prototype,l=i.format;o.en.formats=n,i.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,d=(function(f,m){return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(g,h,b){var p=b&&b.toUpperCase();return h||m[b]||n[b]||m[p].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(S,C,x){return C||x.slice(1)}))}))})(c,u===void 0?{}:u);return l.call(this,d)}}}))})(mp)),mp.exports}var D5e=j5e();const F5e=Lr(D5e);var k5e=["fieldProps"],L5e=["fieldProps"],z5e=["fieldProps"],A5e=["fieldProps"],B5e=["text","valueType","mode","onChange","renderFormItem","value","readonly","fieldProps"],H5e=["placeholder"];xn.extend(nL);xn.extend(rL);xn.extend(N5e);xn.extend(GE);xn.extend(tL);xn.extend(F5e);var V5e=function(t,n,r){var a=wB(r.fieldProps);return n.type==="progress"?U.jsx(DH,R(R({},r),{},{text:t,fieldProps:R({status:n.status?n.status:void 0},a)})):n.type==="money"?U.jsx(_H,R(R({locale:n.locale},r),{},{fieldProps:a,text:t,moneySymbol:n.moneySymbol})):n.type==="percent"?U.jsx(jH,R(R({},r),{},{text:t,showSymbol:n.showSymbol,precision:n.precision,fieldProps:a,showColor:n.showColor})):n.type==="image"?U.jsx(TH,R(R({},r),{},{text:t,width:n.width})):t},W5e=function(t,n,r,a){var o=r.mode,i=o===void 0?"read":o,l=r.emptyText,c=l===void 0?"-":l;if(c!==!1&&i==="read"&&n!=="option"&&n!=="switch"&&typeof t!="boolean"&&typeof t!="number"&&!t){var u=r.fieldProps,d=r.render;return d?d(t,R({mode:i},u),U.jsx(U.Fragment,{children:c})):U.jsx(U.Fragment,{children:c})}if(delete r.emptyText,st(n)==="object")return V5e(t,n,r);var f=a&&a[n];if(f){if(delete r.ref,i==="read"){var m;return(m=f.render)===null||m===void 0?void 0:m.call(f,t,R(R({text:t},r),{},{mode:i||"read"}),U.jsx(U.Fragment,{children:t}))}if(i==="update"||i==="edit"){var g;return(g=f.renderFormItem)===null||g===void 0?void 0:g.call(f,t,R({text:t},r),U.jsx(U.Fragment,{children:t}))}}if(n==="money")return U.jsx(_H,R(R({},r),{},{text:t}));if(n==="date")return U.jsx(Ha,{isLight:r.light,children:U.jsx(eu,R({text:t,format:"YYYY-MM-DD"},r))});if(n==="dateWeek")return U.jsx(Ha,{isLight:r.light,children:U.jsx(eu,R({text:t,format:"YYYY-wo",picker:"week"},r))});if(n==="dateWeekRange"){var h=r.fieldProps,b=Ue(r,k5e);return U.jsx(Ha,{isLight:r.light,children:U.jsx(tu,R({text:t,format:"YYYY-W",showTime:!0,fieldProps:R({picker:"week"},h)},b))})}if(n==="dateMonthRange"){var p=r.fieldProps,S=Ue(r,L5e);return U.jsx(Ha,{isLight:r.light,children:U.jsx(tu,R({text:t,format:"YYYY-MM",showTime:!0,fieldProps:R({picker:"month"},p)},S))})}if(n==="dateQuarterRange"){var C=r.fieldProps,x=Ue(r,z5e);return U.jsx(Ha,{isLight:r.light,children:U.jsx(tu,R({text:t,format:"YYYY-Q",showTime:!0,fieldProps:R({picker:"quarter"},C)},x))})}if(n==="dateYearRange"){var w=r.fieldProps,$=Ue(r,A5e);return U.jsx(Ha,{isLight:r.light,children:U.jsx(tu,R({text:t,format:"YYYY",showTime:!0,fieldProps:R({picker:"year"},w)},$))})}return n==="dateMonth"?U.jsx(Ha,{isLight:r.light,children:U.jsx(eu,R({text:t,format:"YYYY-MM",picker:"month"},r))}):n==="dateQuarter"?U.jsx(Ha,{isLight:r.light,children:U.jsx(eu,R({text:t,format:"YYYY-[Q]Q",picker:"quarter"},r))}):n==="dateYear"?U.jsx(Ha,{isLight:r.light,children:U.jsx(eu,R({text:t,format:"YYYY",picker:"year"},r))}):n==="dateRange"?U.jsx(tu,R({text:t,format:"YYYY-MM-DD"},r)):n==="dateTime"?U.jsx(Ha,{isLight:r.light,children:U.jsx(eu,R({text:t,format:"YYYY-MM-DD HH:mm:ss",showTime:!0},r))}):n==="dateTimeRange"?U.jsx(Ha,{isLight:r.light,children:U.jsx(tu,R({text:t,format:"YYYY-MM-DD HH:mm:ss",showTime:!0},r))}):n==="time"?U.jsx(Ha,{isLight:r.light,children:U.jsx($5e,R({text:t,format:"HH:mm:ss"},r))}):n==="timeRange"?U.jsx(Ha,{isLight:r.light,children:U.jsx(w5e,R({text:t,format:"HH:mm:ss"},r))}):n==="fromNow"?U.jsx(TMe,R({text:t},r)):n==="index"?U.jsx(h7,{children:t+1}):n==="indexBorder"?U.jsx(h7,{border:!0,children:t+1}):n==="progress"?U.jsx(DH,R(R({},r),{},{text:t})):n==="percent"?U.jsx(jH,R({text:t},r)):n==="avatar"&&typeof t=="string"&&r.mode==="read"?U.jsx(AE,{src:t,size:22,shape:"circle"}):n==="code"?U.jsx(O5,R({text:t},r)):n==="jsonCode"?U.jsx(O5,R({text:t,language:"json"},r)):n==="textarea"?U.jsx(C5e,R({text:t},r)):n==="digit"?U.jsx(wMe,R({text:t},r)):n==="digitRange"?U.jsx(EMe,R({text:t},r)):n==="second"?U.jsx(l5e,R({text:t},r)):n==="select"||n==="text"&&(r.valueEnum||r.request)?U.jsx(Ha,{isLight:r.light,children:U.jsx(P6e,R({text:t},r))}):n==="checkbox"?U.jsx(_6e,R({text:t},r)):n==="radio"?U.jsx(C7,R({text:t},r)):n==="radioButton"?U.jsx(C7,R({radioType:"button",text:t},r)):n==="rate"?U.jsx(a5e,R({text:t},r)):n==="slider"?U.jsx(f5e,R({text:t},r)):n==="switch"?U.jsx(m5e,R({text:t},r)):n==="option"?U.jsx(WMe,R({text:t},r)):n==="password"?U.jsx(UMe,R({text:t},r)):n==="image"?U.jsx(TH,R({text:t},r)):n==="cascader"?U.jsx(I6e,R({text:t},r)):n==="treeSelect"?U.jsx(R5e,R({text:t},r)):n==="color"?U.jsx(yMe,R({text:t},r)):n==="segmented"?U.jsx(u5e,R({text:t},r)):U.jsx(p5e,R({text:t},r))},K5e=function(t,n){var r,a,o,i,l,c,u=t.text,d=t.valueType,f=d===void 0?"text":d,m=t.mode,g=m===void 0?"read":m,h=t.onChange,b=t.renderFormItem,p=t.value,S=t.readonly,C=t.fieldProps,x=Ue(t,B5e),w=s.useContext(es),$=Mn(function(){for(var M,O=arguments.length,T=new Array(O),N=0;N=T)return null;var Se=c,Ee=Se.Icon,Oe=Ee===void 0?GA:Ee,We=Se.tooltipText;return U.jsx(tr,{title:We,children:U.jsx(Oe,{className:le("".concat(m,"-action-icon action-down"),L),onClick:en(ut().mark(function je(){return ut().wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return ke.next=2,g.move(x,he);case 2:case"end":return ke.stop()}},je)}))})},"down")},[l,m,L,g,i]),de=s.useMemo(function(){return[se,oe,me,ue].filter(function(he){return he!=null})},[se,oe,me,ue]),ae=b?.(C,g,de,T)||de,ie=ae.length>0&&V!=="read"?U.jsx("div",{className:le("".concat(m,"-action"),q({},"".concat(m,"-action-small"),F==="small"),L),children:ae}):null,ge={name:N.name,field:C,index:x,record:w==null||(r=w.getFieldValue)===null||r===void 0?void 0:r.call(w,[j.listName,$,C.name].filter(function(he){return he!==void 0}).flat(1)),fields:p,operation:g,meta:S},pe=cd(),be=pe.grid,ve=u?.(ne,ge)||ne,Ce=d?.({listDom:U.jsx("div",{className:le("".concat(m,"-container"),E,L),style:R({width:be?"100%":void 0},P),children:ve}),action:ie},ge)||U.jsxs("div",{className:le("".concat(m,"-item"),L,q(q({},"".concat(m,"-item-default"),f===void 0),"".concat(m,"-item-show-label"),f)),style:{display:"flex",alignItems:"flex-end"},children:[U.jsx("div",{className:le("".concat(m,"-container"),E,L),style:R({width:be?"100%":void 0},P),children:ve}),ie]});return U.jsx(Lu.Provider,{value:R(R({},C),{},{listName:[j.listName,$,C.name].filter(function(he){return he!==void 0}).flat(1)}),children:Ce})},mTe=function(t){var n=Rn(),r=t.creatorButtonProps,a=t.prefixCls,o=t.children,i=t.creatorRecord,l=t.action,c=t.fields,u=t.actionGuard,d=t.max,f=t.fieldExtraRender,m=t.meta,g=t.containerClassName,h=t.containerStyle,b=t.onAfterAdd,p=t.onAfterRemove,S=s.useContext(No),C=S.hashId,x=s.useRef(new Map),w=s.useState(!1),$=fe(w,2),E=$[0],P=$[1],M=s.useMemo(function(){return c.map(function(_){var F,j;if(!((F=x.current)!==null&&F!==void 0&&F.has(_.key.toString()))){var k;(k=x.current)===null||k===void 0||k.set(_.key.toString(),Qf())}var z=(j=x.current)===null||j===void 0?void 0:j.get(_.key.toString());return R(R({},_),{},{uuid:z})})},[c]),O=s.useMemo(function(){var _=R({},l),F=M.length;return u!=null&&u.beforeAddRow?_.add=en(ut().mark(function j(){var k,z,V,H,B,K=arguments;return ut().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:for(k=K.length,z=new Array(k),V=0;V div".concat(t.antCls,"-space-item"),{maxWidth:"100%"}),"&-twoLine":q(q(q(q({display:"block",width:"100%"},"".concat(t.componentCls,"-title"),{width:"100%",margin:"8px 0"}),"".concat(t.componentCls,"-container"),{paddingInlineStart:16}),"".concat(t.antCls,"-space-item,").concat(t.antCls,"-form-item"),{width:"100%"}),"".concat(t.antCls,"-form-item"),{"&-control":{display:"flex",alignItems:"center",justifyContent:"flex-end","&-input":{alignItems:"center",justifyContent:"flex-end","&-content":{flex:"none"}}}})})};function DTe(e){return Yn("ProFormGroup",function(t){var n=R(R({},t),{},{componentCls:".".concat(e)});return[jTe(n)]})}var kH=Q.forwardRef(function(e,t){var n=Q.useContext(Ga),r=n.groupProps,a=R(R({},r),e),o=a.children,i=a.collapsible,l=a.defaultCollapsed,c=a.style,u=a.labelLayout,d=a.title,f=d===void 0?e.label:d,m=a.tooltip,g=a.align,h=g===void 0?"start":g,b=a.direction,p=a.size,S=p===void 0?32:p,C=a.titleStyle,x=a.titleRender,w=a.spaceProps,$=a.extra,E=a.autoFocus,P=Tt(function(){return l||!1},{value:e.collapsed,onChange:e.onCollapse}),M=fe(P,2),O=M[0],T=M[1],N=s.useContext(At.ConfigContext),D=N.getPrefixCls,L=cd(e),_=L.ColWrapper,F=L.RowWrapper,j=D("pro-form-group"),k=DTe(j),z=k.wrapSSR,V=k.hashId,H=i&&U.jsx(Na,{style:{marginInlineEnd:8},rotate:O?void 0:90}),B=U.jsx(Ii,{label:H?U.jsxs("div",{children:[H,f]}):f,tooltip:m}),K=s.useCallback(function(ee){var re=ee.children;return U.jsx(Qr,R(R({},w),{},{className:le("".concat(j,"-container ").concat(V),w?.className),size:S,align:h,direction:b,style:R({rowGap:0},w?.style),children:re}))},[h,j,b,V,S,w]),W=x?x(B,e):B,G=s.useMemo(function(){var ee=[],re=Q.Children.toArray(o).map(function(ne,se){var oe;return Q.isValidElement(ne)&&ne!==null&&ne!==void 0&&(oe=ne.props)!==null&&oe!==void 0&&oe.hidden?(ee.push(ne),null):se===0&&Q.isValidElement(ne)&&E?Q.cloneElement(ne,R(R({},ne.props),{},{autoFocus:E})):ne});return[U.jsx(F,{Wrapper:K,children:re},"children"),ee.length>0?U.jsx("div",{style:{display:"none"},children:ee}):null]},[o,F,K,E]),X=fe(G,2),Y=X[0],Z=X[1];return z(U.jsx(_,{children:U.jsxs("div",{className:le(j,V,q({},"".concat(j,"-twoLine"),u==="twoLine")),style:c,ref:t,children:[Z,(f||m||$)&&U.jsx("div",{className:"".concat(j,"-title ").concat(V).trim(),style:C,onClick:function(){T(!O)},children:$?U.jsxs("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"},children:[W,U.jsx("span",{onClick:function(re){return re.stopPropagation()},children:$})]}):W}),U.jsx("div",{style:{display:i&&O?"none":void 0},children:Y})]})}))});kH.displayName="ProForm-Group";var FTe=["fieldProps","options","radioType","layout","proFieldProps","valueEnum"],kTe=Q.forwardRef(function(e,t){var n=e.fieldProps,r=e.options,a=e.radioType,o=e.layout,i=e.proFieldProps,l=e.valueEnum,c=Ue(e,FTe);return U.jsx(rr,R(R({valueType:a==="button"?"radioButton":"radio",ref:t,valueEnum:Gr(l,void 0)},c),{},{fieldProps:R({options:r,layout:o},n),proFieldProps:i,filedConfig:{customLightMode:!0}}))}),LTe=Q.forwardRef(function(e,t){var n=e.fieldProps,r=e.children;return U.jsx(ss,R(R({},n),{},{ref:t,children:r}))}),zTe=P0(LTe,{valuePropName:"checked",ignoreWidth:!0}),h3=zTe;h3.Group=kTe;h3.Button=ss.Button;h3.displayName="ProFormComponent";var ATe=function(t){return q({},t.componentCls,{"&-sidebar-dragger":{width:"5px",cursor:"ew-resize",padding:"4px 0 0",borderTop:"1px solid transparent",position:"absolute",top:0,left:0,bottom:0,zIndex:100,backgroundColor:"transparent","&-min-disabled":{cursor:"w-resize"},"&-max-disabled":{cursor:"e-resize"}}})};function BTe(e){return Yn("DrawerForm",function(t){var n=R(R({},t),{},{componentCls:".".concat(e)});return[ATe(n)]})}var HTe=["children","trigger","onVisibleChange","drawerProps","onFinish","submitTimeout","title","width","resize","onOpenChange","visible","open"];function VTe(e){var t,n,r=e.children,a=e.trigger,o=e.onVisibleChange,i=e.drawerProps,l=e.onFinish,c=e.submitTimeout,u=e.title,d=e.width,f=e.resize,m=e.onOpenChange,g=e.visible,h=e.open,b=Ue(e,HTe);Ia(!b.footer||!(i!=null&&i.footer),"DrawerForm 是一个 ProForm 的特殊布局,如果想自定义按钮,请使用 submit.render 自定义。");var p=Q.useMemo(function(){var ie,ge,pe,be={onResize:function(){},maxWidth:Q4()?window.innerWidth*.8:void 0,minWidth:300};return typeof f=="boolean"?f?be:{}:Tr({onResize:(ie=f?.onResize)!==null&&ie!==void 0?ie:be.onResize,maxWidth:(ge=f?.maxWidth)!==null&&ge!==void 0?ge:be.maxWidth,minWidth:(pe=f?.minWidth)!==null&&pe!==void 0?pe:be.minWidth})},[f]),S=s.useContext(At.ConfigContext),C=S.getPrefixCls("pro-form-drawer"),x=BTe(C),w=x.wrapSSR,$=x.hashId,E=function(ge){return"".concat(C,"-").concat(ge," ").concat($)},P=s.useState([]),M=fe(P,2),O=M[1],T=s.useState(!1),N=fe(T,2),D=N[0],L=N[1],_=s.useState(!1),F=fe(_,2),j=F[0],k=F[1],z=s.useState(d||(f?p?.minWidth:800)),V=fe(z,2),H=V[0],B=V[1],K=Tt(!!g,{value:h||g,onChange:m||o}),W=fe(K,2),G=W[0],X=W[1],Y=s.useRef(null),Z=s.useCallback(function(ie){Y.current===null&&ie&&O([]),Y.current=ie},[]),ee=s.useRef(),re=s.useCallback(function(){var ie,ge,pe,be=(ie=(ge=(pe=b.formRef)===null||pe===void 0?void 0:pe.current)!==null&&ge!==void 0?ge:b.form)!==null&&ie!==void 0?ie:ee.current;be&&i!==null&&i!==void 0&&i.destroyOnClose&&be.resetFields()},[i?.destroyOnClose,b.form,b.formRef]);s.useEffect(function(){G&&(h||g)&&(m?.(!0),o?.(!0)),j&&B(p?.minWidth)},[g,G,j]),s.useImperativeHandle(b.formRef,function(){return ee.current},[ee.current]);var ne=s.useMemo(function(){return a?Q.cloneElement(a,R(R({key:"trigger"},a.props),{},{onClick:(function(){var ie=en(ut().mark(function pe(be){var ve,Ce;return ut().wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:X(!G),k(!Object.keys(p)),(ve=a.props)===null||ve===void 0||(Ce=ve.onClick)===null||Ce===void 0||Ce.call(ve,be);case 3:case"end":return Se.stop()}},pe)}));function ge(pe){return ie.apply(this,arguments)}return ge})()})):null},[X,a,G,k,j]),se=s.useMemo(function(){var ie,ge,pe,be,ve;return b.submitter===!1?!1:Wl({searchConfig:{submitText:(ie=(ge=S.locale)===null||ge===void 0||(ge=ge.Modal)===null||ge===void 0?void 0:ge.okText)!==null&&ie!==void 0?ie:"确认",resetText:(pe=(be=S.locale)===null||be===void 0||(be=be.Modal)===null||be===void 0?void 0:be.cancelText)!==null&&pe!==void 0?pe:"取消"},resetButtonProps:{preventDefault:!0,disabled:c?D:void 0,onClick:function(he){var Se;X(!1),i==null||(Se=i.onClose)===null||Se===void 0||Se.call(i,he)}}},(ve=b.submitter)!==null&&ve!==void 0?ve:{})},[b.submitter,(t=S.locale)===null||t===void 0||(t=t.Modal)===null||t===void 0?void 0:t.okText,(n=S.locale)===null||n===void 0||(n=n.Modal)===null||n===void 0?void 0:n.cancelText,c,D,X,i]),oe=s.useCallback(function(ie,ge){return U.jsxs(U.Fragment,{children:[ie,Y.current&&ge?U.jsx(Q.Fragment,{children:kr.createPortal(ge,Y.current)},"submitter"):ge]})},[]),me=Mn((function(){var ie=en(ut().mark(function ge(pe){var be,ve,Ce;return ut().wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return be=l?.(pe),c&&be instanceof Promise&&(L(!0),ve=setTimeout(function(){return L(!1)},c),be.finally(function(){clearTimeout(ve),L(!1)})),Se.next=4,be;case 4:return Ce=Se.sent,Ce&&X(!1),Se.abrupt("return",Ce);case 7:case"end":return Se.stop()}},ge)}));return function(ge){return ie.apply(this,arguments)}})()),ue=Fv(G,o),de=s.useCallback(function(ie){var ge,pe,be=(document.body.offsetWidth||1e3)-(ie.clientX-document.body.offsetLeft),ve=(ge=p?.minWidth)!==null&&ge!==void 0?ge:d||800,Ce=(pe=p?.maxWidth)!==null&&pe!==void 0?pe:window.innerWidth*.8;if(beCe){B(Ce);return}B(be)},[p?.maxWidth,p?.minWidth,d]),ae=s.useCallback(function(){document.removeEventListener("mousemove",de),document.removeEventListener("mouseup",ae)},[de]);return w(U.jsxs(U.Fragment,{children:[U.jsxs(iz,R(R(R({title:u,width:H},i),ue),{},{afterOpenChange:function(ge){var pe;ge||re(),i==null||(pe=i.afterOpenChange)===null||pe===void 0||pe.call(i,ge)},onClose:function(ge){var pe;c&&D||(X(!1),i==null||(pe=i.onClose)===null||pe===void 0||pe.call(i,ge))},footer:b.submitter!==!1&&U.jsx("div",{ref:Z,style:{display:"flex",justifyContent:"flex-end"}}),children:[f?U.jsx("div",{className:le(E("sidebar-dragger"),$,q(q({},E("sidebar-dragger-min-disabled"),H===p?.minWidth),E("sidebar-dragger-max-disabled"),H===p?.maxWidth)),onMouseDown:function(ge){var pe;p==null||(pe=p.onResize)===null||pe===void 0||pe.call(p),ge.stopPropagation(),ge.preventDefault(),document.addEventListener("mousemove",de),document.addEventListener("mouseup",ae),k(!0)}}):null,U.jsx(U.Fragment,{children:U.jsx(fd,R(R({formComponentType:"DrawerForm",layout:"vertical"},b),{},{formRef:ee,onInit:function(ge,pe){var be;b.formRef&&(b.formRef.current=pe),b==null||(be=b.onInit)===null||be===void 0||be.call(b,ge,pe),ee.current=pe},submitter:se,onFinish:(function(){var ie=en(ut().mark(function ge(pe){var be;return ut().wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return Ce.next=2,me(pe);case 2:return be=Ce.sent,Ce.abrupt("return",be);case 4:case"end":return Ce.stop()}},ge)}));return function(ge){return ie.apply(this,arguments)}})(),contentRender:oe,children:r}))})]})),ne]}))}var WTe=function(t){return q({},t.componentCls,{lineHeight:"30px","&::before":{display:"block",height:0,visibility:"hidden",content:"'.'"},"&-small":{lineHeight:t.lineHeight},"&-container":{display:"flex",flexWrap:"wrap",gap:t.marginXS},"&-item":q({whiteSpace:"nowrap"},"".concat(t.antCls,"-form-item"),{marginBlock:0}),"&-line":{minWidth:"198px"},"&-line:not(:first-child)":{marginBlockStart:"16px",marginBlockEnd:8},"&-collapse-icon":{width:t.controlHeight,height:t.controlHeight,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center"},"&-effective":q({},"".concat(t.componentCls,"-collapse-icon"),{backgroundColor:t.colorBgTextHover})})};function KTe(e){return Yn("LightFilter",function(t){var n=R(R({},t),{},{componentCls:".".concat(e)});return[WTe(n)]})}var qTe=["size","collapse","collapseLabel","initialValues","onValuesChange","form","placement","formRef","bordered","ignoreRules","footerRender"],UTe=function(t){var n=t.items,r=t.prefixCls,a=t.size,o=a===void 0?"middle":a,i=t.collapse,l=t.collapseLabel,c=t.onValuesChange,u=t.bordered,d=t.values,f=t.footerRender,m=t.placement,g=Rn(),h="".concat(r,"-light-filter"),b=KTe(h),p=b.wrapSSR,S=b.hashId,C=s.useState(!1),x=fe(C,2),w=x[0],$=x[1],E=s.useState(function(){return R({},d)}),P=fe(E,2),M=P[0],O=P[1];s.useEffect(function(){O(R({},d))},[d]);var T=s.useMemo(function(){var _=[],F=[];return n.forEach(function(j){var k=j.props||{},z=k.secondary;z||i?_.push(j):F.push(j)}),{collapseItems:_,outsideItems:F}},[t.items]),N=T.collapseItems,D=T.outsideItems,L=function(){return l||(i?U.jsx(fxe,{className:"".concat(h,"-collapse-icon ").concat(S).trim()}):U.jsx(Li,{size:o,label:g.getMessage("form.lightFilter.more","更多筛选")}))};return p(U.jsx("div",{className:le(h,S,"".concat(h,"-").concat(o),q({},"".concat(h,"-effective"),Object.keys(d).some(function(_){return Array.isArray(d[_])?d[_].length>0:d[_]}))),children:U.jsxs("div",{className:"".concat(h,"-container ").concat(S).trim(),children:[D.map(function(_,F){if(!(_!=null&&_.props))return _;var j=_.key,k=_?.props||{},z=k.fieldProps,V=z!=null&&z.placement?z?.placement:m;return U.jsx("div",{className:"".concat(h,"-item ").concat(S).trim(),children:Q.cloneElement(_,{fieldProps:R(R({},_.props.fieldProps),{},{placement:V}),proFieldProps:R(R({},_.props.proFieldProps),{},{light:!0,label:_.props.label,bordered:u}),bordered:u})},j||F)}),N.length?U.jsx("div",{className:"".concat(h,"-item ").concat(S).trim(),children:U.jsx(pB,{padding:24,open:w,onOpenChange:function(F){$(F)},placement:m,label:L(),footerRender:f,footer:{onConfirm:function(){c(R({},M)),$(!1)},onClear:function(){var F={};N.forEach(function(j){var k=j.props.name;F[k]=void 0}),c(F)}},children:N.map(function(_){var F=_.key,j=_.props,k=j.name,z=j.fieldProps,V=R(R({},z),{},{onChange:function(K){return O(R(R({},M),{},q({},k,K!=null&&K.target?K.target.value:K))),!1}});M.hasOwnProperty(k)&&(V[_.props.valuePropName||"value"]=M[k]);var H=z!=null&&z.placement?z?.placement:m;return U.jsx("div",{className:"".concat(h,"-line ").concat(S).trim(),children:Q.cloneElement(_,{fieldProps:R(R({},V),{},{placement:H})})},F)})})},"more"):null]})}))};function GTe(e){var t=e.size,n=e.collapse,r=e.collapseLabel,a=e.initialValues,o=e.onValuesChange,i=e.form,l=e.placement,c=e.formRef,u=e.bordered;e.ignoreRules;var d=e.footerRender,f=Ue(e,qTe),m=s.useContext(At.ConfigContext),g=m.getPrefixCls,h=g("pro-form"),b=s.useState(function(){return R({},a)}),p=fe(b,2),S=p[0],C=p[1],x=s.useRef();return s.useImperativeHandle(c,function(){return x.current},[x.current]),U.jsx(fd,R(R({size:t,initialValues:a,form:i,contentRender:function($){return U.jsx(UTe,{prefixCls:h,items:$?.flatMap(function(E){var P;return!E||!(E!=null&&E.type)?E:(E==null||(P=E.type)===null||P===void 0?void 0:P.displayName)==="ProForm-Group"?E.props.children:E}),size:t,bordered:u,collapse:n,collapseLabel:r,placement:l,values:S||{},footerRender:d,onValuesChange:function(P){var M,O,T=R(R({},S),P);C(T),(M=x.current)===null||M===void 0||M.setFieldsValue(T),(O=x.current)===null||O===void 0||O.submit(),o&&o(P,T)}})},formRef:x,formItemProps:{colon:!1,labelAlign:"left"},fieldProps:{style:{width:void 0}}},Qt(f,["labelWidth"])),{},{onValuesChange:function($,E){var P;C(E),o?.($,E),(P=x.current)===null||P===void 0||P.submit()}}))}var XTe=["children","trigger","onVisibleChange","onOpenChange","modalProps","onFinish","submitTimeout","title","width","visible","open"];function YTe(e){var t,n,r=e.children,a=e.trigger,o=e.onVisibleChange,i=e.onOpenChange,l=e.modalProps,c=e.onFinish,u=e.submitTimeout,d=e.title,f=e.width,m=e.visible,g=e.open,h=Ue(e,XTe);Ia(!h.footer||!(l!=null&&l.footer),"ModalForm 是一个 ProForm 的特殊布局,如果想自定义按钮,请使用 submit.render 自定义。");var b=s.useContext(At.ConfigContext),p=s.useState([]),S=fe(p,2),C=S[1],x=s.useState(!1),w=fe(x,2),$=w[0],E=w[1],P=Tt(!!m,{value:g||m,onChange:i||o}),M=fe(P,2),O=M[0],T=M[1],N=s.useRef(null),D=s.useCallback(function(H){N.current===null&&H&&C([]),N.current=H},[]),L=s.useRef(),_=s.useCallback(function(){var H,B,K,W=(H=(B=h.form)!==null&&B!==void 0?B:(K=h.formRef)===null||K===void 0?void 0:K.current)!==null&&H!==void 0?H:L.current;W&&l!==null&&l!==void 0&&l.destroyOnClose&&W.resetFields()},[l?.destroyOnClose,h.form,h.formRef]);s.useImperativeHandle(h.formRef,function(){return L.current},[L.current]),s.useEffect(function(){(g||m)&&(i?.(!0),o?.(!0))},[m,g]);var F=s.useMemo(function(){return a?Q.cloneElement(a,R(R({key:"trigger"},a.props),{},{onClick:(function(){var H=en(ut().mark(function K(W){var G,X;return ut().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:T(!O),(G=a.props)===null||G===void 0||(X=G.onClick)===null||X===void 0||X.call(G,W);case 2:case"end":return Z.stop()}},K)}));function B(K){return H.apply(this,arguments)}return B})()})):null},[T,a,O]),j=s.useMemo(function(){var H,B,K,W,G,X,Y;return h.submitter===!1?!1:Wl({searchConfig:{submitText:(H=(B=l?.okText)!==null&&B!==void 0?B:(K=b.locale)===null||K===void 0||(K=K.Modal)===null||K===void 0?void 0:K.okText)!==null&&H!==void 0?H:"确认",resetText:(W=(G=l?.cancelText)!==null&&G!==void 0?G:(X=b.locale)===null||X===void 0||(X=X.Modal)===null||X===void 0?void 0:X.cancelText)!==null&&W!==void 0?W:"取消"},resetButtonProps:{preventDefault:!0,disabled:u?$:void 0,onClick:function(ee){var re;T(!1),l==null||(re=l.onCancel)===null||re===void 0||re.call(l,ee)}}},(Y=h.submitter)!==null&&Y!==void 0?Y:{})},[(t=b.locale)===null||t===void 0||(t=t.Modal)===null||t===void 0?void 0:t.cancelText,(n=b.locale)===null||n===void 0||(n=n.Modal)===null||n===void 0?void 0:n.okText,l,h.submitter,T,$,u]),k=s.useCallback(function(H,B){return U.jsxs(U.Fragment,{children:[H,N.current&&B?U.jsx(Q.Fragment,{children:kr.createPortal(B,N.current)},"submitter"):B]})},[]),z=s.useCallback((function(){var H=en(ut().mark(function B(K){var W,G,X;return ut().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return W=c?.(K),u&&W instanceof Promise&&(E(!0),G=setTimeout(function(){return E(!1)},u),W.finally(function(){clearTimeout(G),E(!1)})),Z.next=4,W;case 4:return X=Z.sent,X&&T(!1),Z.abrupt("return",X);case 7:case"end":return Z.stop()}},B)}));return function(B){return H.apply(this,arguments)}})(),[c,T,u]),V=Fv(O);return U.jsxs(U.Fragment,{children:[U.jsx(fi,R(R(R({title:d,width:f||800},l),V),{},{onCancel:function(B){var K;u&&$||(T(!1),l==null||(K=l.onCancel)===null||K===void 0||K.call(l,B))},afterClose:function(){var B;_(),O&&T(!1),l==null||(B=l.afterClose)===null||B===void 0||B.call(l)},footer:h.submitter!==!1?U.jsx("div",{ref:D,style:{display:"flex",justifyContent:"flex-end"}}):null,children:U.jsx(fd,R(R({formComponentType:"ModalForm",layout:"vertical"},h),{},{onInit:function(B,K){var W;h.formRef&&(h.formRef.current=K),h==null||(W=h.onInit)===null||W===void 0||W.call(h,B,K),L.current=K},formRef:L,submitter:j,onFinish:(function(){var H=en(ut().mark(function B(K){var W;return ut().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:return X.next=2,z(K);case 2:return W=X.sent,X.abrupt("return",W);case 4:case"end":return X.stop()}},B)}));return function(B){return H.apply(this,arguments)}})(),contentRender:k,children:r}))})),F]})}var QTe=function(t,n,r,a){return t?U.jsxs(U.Fragment,{children:[r.getMessage("tableForm.collapsed","展开"),a&&"(".concat(a,")"),U.jsx(Ri,{style:{marginInlineStart:"0.5em",transition:"0.3s all",transform:"rotate(".concat(t?0:.5,"turn)")}})]}):U.jsxs(U.Fragment,{children:[r.getMessage("tableForm.expand","收起"),U.jsx(Ri,{style:{marginInlineStart:"0.5em",transition:"0.3s all",transform:"rotate(".concat(t?0:.5,"turn)")}})]})},ZTe=function(t){var n=t.setCollapsed,r=t.collapsed,a=r===void 0?!1:r,o=t.submitter,i=t.style,l=t.hiddenNum,c=s.useContext(At.ConfigContext),u=c.getPrefixCls,d=Rn(),f=s.useContext(No),m=f.hashId,g=xB(t.collapseRender)||QTe;return U.jsxs(Qr,{style:i,size:16,children:[o,t.collapseRender!==!1&&U.jsx("a",{className:"".concat(u("pro-query-filter-collapse-button")," ").concat(m).trim(),onClick:function(){return n(!a)},children:g?.(a,t,d,l)})]})},JTe=function(t){return q({},t.componentCls,q(q(q(q({"&&":{padding:24}},"".concat(t.antCls,"-form-item"),{marginBlock:0}),"".concat(t.proComponentsCls,"-form-group-title"),{marginBlock:0}),"&-row",{rowGap:24,"&-split":q(q({},"".concat(t.proComponentsCls,"-form-group"),{display:"flex",alignItems:"center",gap:t.marginXS}),"&:last-child",{marginBlockEnd:12}),"&-split-line":{"&:after":{position:"absolute",width:"100%",content:'""',height:1,insetBlockEnd:-12,borderBlockEnd:"1px dashed ".concat(t.colorSplit)}}}),"&-collapse-button",{display:"flex",alignItems:"center",color:t.colorPrimary}))};function eNe(e){return Yn("QueryFilter",function(t){var n=R(R({},t),{},{componentCls:".".concat(e)});return[JTe(n)]})}var tNe=["collapsed","layout","defaultCollapsed","defaultColsNumber","defaultFormItemsNumber","span","searchGutter","searchText","resetText","optionRender","collapseRender","onReset","onCollapse","labelWidth","style","split","preserve","ignoreRules","showHiddenNum","submitterColSpanProps"],nu,nNe={xs:513,sm:513,md:785,lg:992,xl:1057,xxl:1/0},M7={vertical:[[513,1,"vertical"],[785,2,"vertical"],[1057,3,"vertical"],[1/0,4,"vertical"]],default:[[513,1,"vertical"],[701,2,"vertical"],[1062,3,"horizontal"],[1352,3,"horizontal"],[1/0,4,"horizontal"]]},rNe=function(t,n,r){if(r&&typeof r=="number")return{span:r,layout:t};var a=r?["xs","sm","md","lg","xl","xxl"].map(function(i){return[nNe[i],24/r[i],"horizontal"]}):M7[t||"default"],o=(a||M7.default).find(function(i){return nw)&&!!B;O+=1;var ne=Q.isValidElement(H)&&(H.key||"".concat((X=H.props)===null||X===void 0?void 0:X.name))||B;return Q.isValidElement(H)&&re?t.preserve?{itemDom:Q.cloneElement(H,{hidden:!0,key:ne||B}),hidden:!0,colSpan:Z}:{itemDom:null,colSpan:0,hidden:!0}:{itemDom:H,colSpan:Z,hidden:!1}}),_=L.map(function(H,B){var K,W,G=H.itemDom,X=H.colSpan,Y=G==null||(K=G.props)===null||K===void 0?void 0:K.hidden;if(Y)return G;var Z=Q.isValidElement(G)&&(G.key||"".concat((W=G.props)===null||W===void 0?void 0:W.name))||B;return 24-D%2424){var W,G;return 24-((W=(G=t.submitterColSpanProps)===null||G===void 0?void 0:G.span)!==null&&W!==void 0?W:x.span)}return 24-K},[D,D%24+((n=(r=t.submitterColSpanProps)===null||r===void 0?void 0:r.span)!==null&&n!==void 0?n:x.span),(a=t.submitterColSpanProps)===null||a===void 0?void 0:a.span]),z=s.useContext(At.ConfigContext),V=z.getPrefixCls("pro-query-filter");return U.jsxs(Io,{gutter:$,justify:"start",className:le("".concat(V,"-row"),c),children:[_,P&&U.jsx(Fr,R(R({span:x.span,offset:k,className:le((o=t.submitterColSpanProps)===null||o===void 0?void 0:o.className)},t.submitterColSpanProps),{},{style:{textAlign:"end"},children:U.jsx(Fn.Item,{label:" ",colon:!1,shouldUpdate:!1,className:"".concat(V,"-actions ").concat(c).trim(),children:U.jsx(ZTe,{hiddenNum:F,collapsed:g,collapseRender:j?p:!1,submitter:P,setCollapsed:h},"pro-form-query-filter-actions")})}),"submitter")]},"resize-observer-row")},iNe=Q4()?(nu=document)===null||nu===void 0||(nu=nu.body)===null||nu===void 0?void 0:nu.clientWidth:1024;function lNe(e){var t=e.collapsed,n=e.layout,r=e.defaultCollapsed,a=r===void 0?!0:r,o=e.defaultColsNumber,i=e.defaultFormItemsNumber,l=e.span,c=e.searchGutter,u=c===void 0?24:c;e.searchText,e.resetText;var d=e.optionRender,f=e.collapseRender,m=e.onReset,g=e.onCollapse,h=e.labelWidth,b=h===void 0?"80":h,p=e.style,S=e.split,C=e.preserve,x=C===void 0?!0:C,w=e.ignoreRules,$=e.showHiddenNum,E=$===void 0?!1:$,P=e.submitterColSpanProps,M=Ue(e,tNe),O=s.useContext(At.ConfigContext),T=O.getPrefixCls("pro-query-filter"),N=eNe(T),D=N.wrapSSR,L=N.hashId,_=Tt(function(){return typeof p?.width=="number"?p?.width:iNe}),F=fe(_,2),j=F[0],k=F[1],z=s.useMemo(function(){return rNe(n,j+16,l)},[n,j,l]),V=s.useMemo(function(){if(i!==void 0)return i;if(o!==void 0){var B=24/z.span-1;return o>B?B:o}return Math.max(1,24/z.span-1)},[o,i,z.span]),H=s.useMemo(function(){if(b&&z.layout!=="vertical"&&b!=="auto")return{labelCol:{flex:"0 0 ".concat(b,"px")},wrapperCol:{style:{maxWidth:"calc(100% - ".concat(b,"px)")}},style:{flexWrap:"nowrap"}}},[z.layout,b]);return D(U.jsx(Vr,{onResize:function(K){j!==K.width&&K.width>17&&k(K.width)},children:U.jsx("div",{className:"".concat(T,"-container ").concat(L),style:e.containerStyle,children:U.jsx(fd,R(R({isKeyPressSubmit:!0,preserve:x},M),{},{className:le(T,L,M.className),onReset:m,style:p,layout:z.layout,fieldProps:{style:{width:"100%"}},formItemProps:H,groupProps:{titleStyle:{display:"inline-block",marginInlineEnd:16}},contentRender:function(K,W,G){return U.jsx(oNe,{spanSize:z,collapsed:t,form:G,submitterColSpanProps:P,collapseRender:f,defaultCollapsed:a,onCollapse:g,optionRender:d,submitter:W,items:K,split:S,baseClassName:T,resetText:e.resetText,searchText:e.searchText,searchGutter:u,preserve:x,ignoreRules:w,showLength:V,showHiddenNum:E})}}))})},"resize-observer"))}var sNe=["onFinish","step","formRef","title","stepProps"];function cNe(e){var t=s.useRef(),n=s.useContext(LH),r=s.useContext(zH),a=R(R({},e),r),o=a.onFinish,i=a.step,l=a.formRef;a.title,a.stepProps;var c=Ue(a,sNe);return Ia(!c.submitter,"StepForm 不包含提交按钮,请在 StepsForm 上"),s.useImperativeHandle(l,function(){return t.current},[l?.current]),s.useEffect(function(){if(a.name||a.step){var u=(a.name||a.step).toString();return n?.regForm(u,a),function(){n?.unRegForm(u)}}},[]),n&&n!==null&&n!==void 0&&n.formArrayRef&&(n.formArrayRef.current[i||0]=t),U.jsx(fd,R({formRef:t,onFinish:(function(){var u=en(ut().mark(function d(f){var m;return ut().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(c.name&&n?.onFormFinish(c.name,f),!o){h.next=9;break}return n?.setLoading(!0),h.next=5,o?.(f);case 5:return m=h.sent,m&&n?.next(),n?.setLoading(!1),h.abrupt("return");case 9:n!=null&&n.lastStep||n?.next();case 10:case"end":return h.stop()}},d)}));return function(d){return u.apply(this,arguments)}})(),onInit:function(d,f){var m;t.current=f,n&&n!==null&&n!==void 0&&n.formArrayRef&&(n.formArrayRef.current[i||0]=t),c==null||(m=c.onInit)===null||m===void 0||m.call(c,d,f)},layout:"vertical"},Qt(c,["layoutType","columns"])))}var uNe=function(t){return q({},t.componentCls,{"&-container":{width:"max-content",minWidth:"420px",maxWidth:"100%",margin:"auto"},"&-steps-container":q({maxWidth:"1160px",margin:"auto"},"".concat(t.antCls,"-steps-vertical"),{height:"100%"}),"&-step":{display:"none",marginBlockStart:"32px","&-active":{display:"block"},"> form":{maxWidth:"100%"}}})};function dNe(e){return Yn("StepsForm",function(t){var n=R(R({},t),{},{componentCls:".".concat(e)});return[uNe(n)]})}var fNe=["current","onCurrentChange","submitter","stepsFormRender","stepsRender","stepFormRender","stepsProps","onFinish","formProps","containerStyle","formRef","formMapRef","layoutRender"],LH=Q.createContext(void 0),vNe={horizontal:function(t){var n=t.stepsDom,r=t.formDom;return U.jsxs(U.Fragment,{children:[U.jsx(Io,{gutter:{xs:8,sm:16,md:24},children:U.jsx(Fr,{span:24,children:n})}),U.jsx(Io,{gutter:{xs:8,sm:16,md:24},children:U.jsx(Fr,{span:24,children:r})})]})},vertical:function(t){var n=t.stepsDom,r=t.formDom;return U.jsxs(Io,{align:"stretch",wrap:!0,gutter:{xs:8,sm:16,md:24},children:[U.jsx(Fr,{xxl:4,xl:6,lg:7,md:8,sm:10,xs:12,children:Q.cloneElement(n,{style:{height:"100%"}})}),U.jsx(Fr,{children:U.jsx("div",{style:{display:"flex",alignItems:"center",width:"100%",height:"100%"},children:r})})]})}},zH=Q.createContext(null);function mNe(e){var t=s.useContext(At.ConfigContext),n=t.getPrefixCls,r=n("pro-steps-form"),a=dNe(r),o=a.wrapSSR,i=a.hashId;e.current,e.onCurrentChange;var l=e.submitter,c=e.stepsFormRender,u=e.stepsRender,d=e.stepFormRender,f=e.stepsProps,m=e.onFinish,g=e.formProps,h=e.containerStyle,b=e.formRef,p=e.formMapRef,S=e.layoutRender,C=Ue(e,fNe),x=s.useRef(new Map),w=s.useRef(new Map),$=s.useRef([]),E=s.useState([]),P=fe(E,2),M=P[0],O=P[1],T=s.useState(!1),N=fe(T,2),D=N[0],L=N[1],_=Rn(),F=Tt(0,{value:e.current,onChange:e.onCurrentChange}),j=fe(F,2),k=j[0],z=j[1],V=s.useMemo(function(){return vNe[f?.direction||"horizontal"]},[f?.direction]),H=s.useMemo(function(){return k===M.length-1},[M.length,k]),B=s.useCallback(function(ae,ie){w.current.has(ae)||O(function(ge){return[].concat(Te(ge),[ae])}),w.current.set(ae,ie)},[]),K=s.useCallback(function(ae){O(function(ie){return ie.filter(function(ge){return ge!==ae})}),w.current.delete(ae),x.current.delete(ae)},[]);s.useImperativeHandle(p,function(){return $.current},[$.current]),s.useImperativeHandle(b,function(){var ae;return(ae=$.current[k||0])===null||ae===void 0?void 0:ae.current},[k,$.current]);var W=s.useCallback((function(){var ae=en(ut().mark(function ie(ge,pe){var be,ve;return ut().wrap(function(he){for(;;)switch(he.prev=he.next){case 0:if(x.current.set(ge,pe),!(!H||!m)){he.next=3;break}return he.abrupt("return");case 3:return L(!0),be=S0.apply(void 0,[{}].concat(Te(Array.from(x.current.values())))),he.prev=5,he.next=8,m(be);case 8:ve=he.sent,ve&&(z(0),$.current.forEach(function(Se){var Ee;return(Ee=Se.current)===null||Ee===void 0?void 0:Ee.resetFields()})),he.next=15;break;case 12:he.prev=12,he.t0=he.catch(5),console.log(he.t0);case 15:return he.prev=15,L(!1),he.finish(15);case 18:case"end":return he.stop()}},ie,null,[[5,12,15,18]])}));return function(ie,ge){return ae.apply(this,arguments)}})(),[H,m,L,z]),G=s.useMemo(function(){var ae=ml(ri,"4.24.0")>-1,ie=ae?{items:M.map(function(ge){var pe=w.current.get(ge);return R({key:ge,title:pe?.title},pe?.stepProps)})}:{};return U.jsx("div",{className:"".concat(r,"-steps-container ").concat(i).trim(),style:{maxWidth:Math.min(M.length*320,1160)},children:U.jsx(Gw,R(R(R({},f),ie),{},{current:k,onChange:void 0,children:!ae&&M.map(function(ge){var pe=w.current.get(ge);return U.jsx(Gw.Step,R({title:pe?.title},pe?.stepProps),ge)})}))})},[M,i,r,k,f]),X=Mn(function(){var ae,ie=$.current[k];(ae=ie.current)===null||ae===void 0||ae.submit()}),Y=Mn(function(){k<1||z(k-1)}),Z=s.useMemo(function(){return l!==!1&&U.jsx(cr,R(R({type:"primary",loading:D},l?.submitButtonProps),{},{onClick:function(){var ie;l==null||(ie=l.onSubmit)===null||ie===void 0||ie.call(l),X()},children:_.getMessage("stepsForm.next","下一步")}),"next")},[_,D,X,l]),ee=s.useMemo(function(){return l!==!1&&U.jsx(cr,R(R({},l?.resetButtonProps),{},{onClick:function(){var ie;Y(),l==null||(ie=l.onReset)===null||ie===void 0||ie.call(l)},children:_.getMessage("stepsForm.prev","上一步")}),"pre")},[_,Y,l]),re=s.useMemo(function(){return l!==!1&&U.jsx(cr,R(R({type:"primary",loading:D},l?.submitButtonProps),{},{onClick:function(){var ie;l==null||(ie=l.onSubmit)===null||ie===void 0||ie.call(l),X()},children:_.getMessage("stepsForm.submit","提交")}),"submit")},[_,D,X,l]),ne=Mn(function(){k>M.length-2||z(k+1)}),se=s.useMemo(function(){var ae=[],ie=k||0;if(ie<1?M.length===1?ae.push(re):ae.push(Z):ie+1===M.length?ae.push(ee,re):ae.push(ee,Z),ae=ae.filter(Q.isValidElement),l&&l.render){var ge,pe={form:(ge=$.current[k])===null||ge===void 0?void 0:ge.current,onSubmit:X,step:k,onPre:Y};return l.render(pe,ae)}return l&&l?.render===!1?null:ae},[M.length,Z,X,ee,Y,k,re,l]),oe=s.useMemo(function(){return Xn(e.children).map(function(ae,ie){var ge=ae.props,pe=ge.name||"".concat(ie),be=k===ie,ve=be?{contentRender:d,submitter:!1}:{};return U.jsx("div",{className:le("".concat(r,"-step"),i,q({},"".concat(r,"-step-active"),be)),children:U.jsx(zH.Provider,{value:R(R(R(R({},ve),g),ge),{},{name:pe,step:ie}),children:ae})},pe)})},[g,i,r,e.children,k,d]),me=s.useMemo(function(){return u?u(M.map(function(ae){var ie;return{key:ae,title:(ie=w.current.get(ae))===null||ie===void 0?void 0:ie.title}}),G):G},[M,G,u]),ue=s.useMemo(function(){return U.jsxs("div",{className:"".concat(r,"-container ").concat(i).trim(),style:h,children:[oe,c?null:U.jsx(Qr,{children:se})]})},[h,oe,i,r,c,se]),de=s.useMemo(function(){var ae={stepsDom:me,formDom:ue};return c?c(S?S(ae):V(ae),se):S?S(ae):V(ae)},[me,ue,V,c,se,S]);return o(U.jsx("div",{className:le(r,i),children:U.jsx(Fn.Provider,R(R({},C),{},{children:U.jsx(LH.Provider,{value:{loading:D,setLoading:L,regForm:B,keyArray:M,next:ne,formArrayRef:$,formMapRef:w,lastStep:H,unRegForm:K,onFormFinish:W},children:de})}))}))}function A0(e){return U.jsx(y0,{needDeps:!0,children:U.jsx(mNe,R({},e))})}A0.StepForm=cNe;A0.useForm=Fn.useForm;var gNe=function(t){var n=t.children;return U.jsx(U.Fragment,{children:n})},pNe=["steps","columns","forceUpdate","grid"],hNe=function(t){var n=t.steps,r=t.columns,a=t.forceUpdate,o=t.grid,i=Ue(t,pNe),l=X4(i),c=s.useCallback(function(d){var f,m;(f=(m=l.current).onCurrentChange)===null||f===void 0||f.call(m,d),a([])},[a,l]),u=s.useMemo(function(){return n?.map(function(d,f){return s.createElement(AH,R(R({grid:o},d),{},{key:f,layoutType:"StepForm",columns:r[f]}))})},[r,o,n]);return U.jsx(A0,R(R({},i),{},{onCurrentChange:c,children:u}))},bNe=function(t,n){if(t.valueType==="dependency"){var r,a,o,i=(r=t.getFieldProps)===null||r===void 0?void 0:r.call(t);return Ia(Array.isArray((a=t.name)!==null&&a!==void 0?a:i?.name),'SchemaForm: fieldProps.name should be NamePath[] when valueType is "dependency"'),Ia(typeof t.columns=="function",'SchemaForm: columns should be a function when valueType is "dependency"'),Array.isArray((o=t.name)!==null&&o!==void 0?o:i?.name)?s.createElement(z0,R(R({name:t.name},i),{},{key:t.key}),function(l){return!t.columns||typeof t.columns!="function"?null:n.genItems(t.columns(l))}):null}return!0},yNe=function(t){if(t.valueType==="divider"){var n;return s.createElement(u4,R(R({},(n=t.getFieldProps)===null||n===void 0?void 0:n.call(t)),{},{key:t.key}))}return!0},CNe=["key"],SNe=function(t,n){var r=n.action,a=n.formRef,o=n.type,i=n.originItem,l=R(R({},Qt(t,["dataIndex","width","render","renderFormItem","renderText","title"])),{},{name:t.name||t.key||t.dataIndex,width:t.width,render:t!=null&&t.render?function(f,m,g){var h,b,p,S;return t==null||(h=t.render)===null||h===void 0?void 0:h.call(t,f,m,g,r?.current,R(R({type:o},t),{},{key:(b=t.key)===null||b===void 0?void 0:b.toString(),formItemProps:(p=t.getFormItemProps)===null||p===void 0?void 0:p.call(t),fieldProps:(S=t.getFieldProps)===null||S===void 0?void 0:S.call(t)}))}:void 0}),c=function(){var m=l.key,g=Ue(l,CNe);return U.jsx(rr,R(R({},g),{},{ignoreFormItem:!0}),m)},u=t!=null&&t.renderFormItem?function(f,m){var g,h,b,p,S=Tr(R(R({},m),{},{onChange:void 0}));return t==null||(g=t.renderFormItem)===null||g===void 0?void 0:g.call(t,R(R({type:o},t),{},{key:(h=t.key)===null||h===void 0?void 0:h.toString(),formItemProps:(b=t.getFormItemProps)===null||b===void 0?void 0:b.call(t),fieldProps:(p=t.getFieldProps)===null||p===void 0?void 0:p.call(t),originProps:i}),R(R({},S),{},{defaultRender:c,type:o}),a.current)}:void 0,d=function(){if(t!=null&&t.renderFormItem){var m=u?.(null,{});if(!m||t.ignoreFormItem)return m}return s.createElement(rr,R(R({},l),{},{key:[t.key,t.index||0].join("-"),renderFormItem:u}))};return t.dependencies?U.jsx(z0,{name:t.dependencies||[],children:d},t.key):d()},xNe=function(t,n){var r=n.genItems;if(t.valueType==="formList"&&t.dataIndex){var a,o;return!t.columns||!Array.isArray(t.columns)?null:s.createElement(bTe,R(R({},(a=t.getFormItemProps)===null||a===void 0?void 0:a.call(t)),{},{key:t.key,name:t.dataIndex,label:t.label,initialValue:t.initialValue,colProps:t.colProps,rowProps:t.rowProps},(o=t.getFieldProps)===null||o===void 0?void 0:o.call(t)),r(t.columns))}return!0},wNe=function(t,n){var r=n.genItems;if(t.valueType==="formSet"&&t.dataIndex){var a,o;return!t.columns||!Array.isArray(t.columns)?null:s.createElement(RTe,R(R({},(a=t.getFormItemProps)===null||a===void 0?void 0:a.call(t)),{},{key:t.key,initialValue:t.initialValue,name:t.dataIndex,label:t.label,colProps:t.colProps,rowProps:t.rowProps},(o=t.getFieldProps)===null||o===void 0?void 0:o.call(t)),r(t.columns))}return!0},$Ne=function(t,n){var r=n.genItems;if(t.valueType==="group"){var a;return!t.columns||!Array.isArray(t.columns)?null:U.jsx(n_e,R(R({label:t.label,colProps:t.colProps,rowProps:t.rowProps},(a=t.getFieldProps)===null||a===void 0?void 0:a.call(t)),{},{children:r(t.columns)}),t.key)}return!0},ENe=function(t){return t.valueType&&typeof t.valueType=="string"&&["index","indexBorder","option"].includes(t?.valueType)?null:!0},T7=[ENe,$Ne,xNe,wNe,yNe,bNe],PNe=function(t,n){for(var r=0;r0&&arguments[0]!==void 0?arguments[0]:[],W=N7(K);if(!W)throw new Error("nameList is require");var G=(B=L())===null||B===void 0?void 0:B.getFieldValue(W),X=W?sr({},W,G):G,Y=Te(W);return Y.shift(),Dn(o(X,p,Y),W)},getFieldFormatValueObject:function(B){var K,W=N7(B),G=(K=L())===null||K===void 0?void 0:K.getFieldValue(W),X=W?sr({},W,G):G;return o(X,p,W)},validateFieldsReturnFormatValue:(function(){var H=en(ut().mark(function K(W){var G,X,Y;return ut().wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:if(!(!Array.isArray(W)&&W)){ee.next=2;break}throw new Error("nameList must be array");case 2:return ee.next=4,(G=L())===null||G===void 0?void 0:G.validateFields(W);case 4:return X=ee.sent,Y=o(X,p),ee.abrupt("return",Y||{});case 7:case"end":return ee.stop()}},K)}));function B(K){return H.apply(this,arguments)}return B})()}},[p,o]),F=s.useMemo(function(){return Q.Children.toArray(n).map(function(H,B){return B===0&&Q.isValidElement(H)&&C?Q.cloneElement(H,R(R({},H.props),{},{autoFocus:C})):H})},[C,n]),j=s.useMemo(function(){return typeof a=="boolean"||!a?{}:a},[a]),k=s.useMemo(function(){if(a!==!1)return U.jsx(LNe,R(R({},j),{},{onReset:function(){var B,K,W=o((B=T.current)===null||B===void 0?void 0:B.getFieldsValue(),p);if(j==null||(K=j.onReset)===null||K===void 0||K.call(j,W),h?.(W),m){var G,X=Object.keys(o((G=T.current)===null||G===void 0?void 0:G.getFieldsValue(),!1)).reduce(function(Y,Z){return R(R({},Y),{},q({},Z,W[Z]||void 0))},f);g(gp(m,X||{},"set"))}},submitButtonProps:R({loading:u},j.submitButtonProps)}),"submitter")},[a,j,u,o,p,h,m,f,g]),z=s.useMemo(function(){var H=x?U.jsx(D,{children:F}):F;return r?r(H,k,T.current):H},[x,D,F,r,k]),V=Pf(e.initialValues);return s.useEffect(function(){if(!(m||!e.initialValues||!V||E.request)){var H=il(e.initialValues,V);Ia(H,"initialValues 只在 form 初始化时生效,如果你需要异步加载推荐使用 request,或者 initialValues ?
    : null "),Ia(H,"The initialValues only take effect when the form is initialized, if you need to load asynchronously recommended request, or the initialValues ? : null ")}},[e.initialValues]),s.useImperativeHandle(i,function(){return R(R({},T.current),_)},[_,T.current]),s.useEffect(function(){var H,B,K=o((H=T.current)===null||H===void 0||(B=H.getFieldsValue)===null||B===void 0?void 0:B.call(H,!0),p);l?.(K,R(R({},T.current),_))},[]),U.jsx(kv.Provider,{value:R(R({},_),{},{formRef:T}),children:U.jsx(At,{componentSize:E.size||O,children:U.jsxs(e3.Provider,{value:{grid:x,colProps:$},children:[E.component!==!1&&U.jsx("input",{type:"text",style:{display:"none"}}),z]})})})}var _7=0;function fd(e){var t=e.extraUrlParams,n=t===void 0?{}:t,r=e.syncToUrl,a=e.isKeyPressSubmit,o=e.syncToUrlAsImportant,i=o===void 0?!1:o,l=e.syncToInitialValues,c=l===void 0?!0:l;e.children,e.contentRender,e.submitter;var u=e.fieldProps,d=e.proFieldProps,f=e.formItemProps,m=e.groupProps,g=e.dateFormatter,h=g===void 0?"string":g,b=e.formRef;e.onInit;var p=e.form,S=e.formComponentType;e.onReset,e.grid,e.rowProps,e.colProps;var C=e.omitNil,x=C===void 0?!0:C,w=e.request,$=e.params,E=e.initialValues,P=e.formKey,M=P===void 0?_7:P;e.readonly;var O=e.onLoadingChange,T=e.loading,N=Ue(e,YNe),D=s.useRef({}),L=Tt(!1,{onChange:O,value:T}),_=fe(L,2),F=_[0],j=_[1],k=i6e({},{disabled:!r}),z=fe(k,2),V=z[0],H=z[1],B=s.useRef(Qf());s.useEffect(function(){_7+=0},[]);var K=NEe({request:w,params:$,proFieldKey:M}),W=fe(K,1),G=W[0],X=s.useContext(At.ConfigContext),Y=X.getPrefixCls,Z=Y("pro-form"),ee=Yn("ProForm",function(ve){return q({},".".concat(Z),q({},"> div:not(".concat(ve.proComponentsCls,"-form-light-filter)"),{".pro-field":{maxWidth:"100%","@media screen and (max-width: 575px)":{maxWidth:"calc(93vw - 48px)"},"&-xs":{width:104},"&-s":{width:216},"&-sm":{width:216},"&-m":{width:328},"&-md":{width:328},"&-l":{width:440},"&-lg":{width:440},"&-xl":{width:552}}}))}),re=ee.wrapSSR,ne=ee.hashId,se=s.useState(function(){return r?gp(r,V,"get"):{}}),oe=fe(se,2),me=oe[0],ue=oe[1],de=s.useRef({}),ae=s.useRef({}),ie=Mn(function(ve,Ce,he){return SPe(EEe(ve,h,ae.current,Ce,he),de.current,Ce)});s.useEffect(function(){c||ue({})},[c]);var ge=Mn(function(){return R(R({},V),n)});s.useEffect(function(){r&&H(gp(r,ge(),"set"))},[n,ge,r]);var pe=s.useMemo(function(){if(!(typeof window>"u")&&S&&["DrawerForm"].includes(S))return function(ve){return ve.parentNode||document.body}},[S]),be=Mn(en(ut().mark(function ve(){var Ce,he,Se,Ee,Oe,We,je;return ut().wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:if(N.onFinish){ke.next=2;break}return ke.abrupt("return");case 2:if(!F){ke.next=4;break}return ke.abrupt("return");case 4:return ke.prev=4,Se=D==null||(Ce=D.current)===null||Ce===void 0||(he=Ce.getFieldsFormatValue)===null||he===void 0?void 0:he.call(Ce),Ee=N.onFinish(Se),Ee instanceof Promise&&j(!0),ke.next=10,Ee;case 10:r&&(je=Object.keys(D==null||(Oe=D.current)===null||Oe===void 0||(We=Oe.getFieldsFormatValue)===null||We===void 0?void 0:We.call(Oe,void 0,!1)).reduce(function(_e,Re){var Le;return R(R({},_e),{},q({},Re,(Le=Se[Re])!==null&&Le!==void 0?Le:void 0))},n),Object.keys(V).forEach(function(_e){je[_e]!==!1&&je[_e]!==0&&!je[_e]&&(je[_e]=void 0)}),H(gp(r,je,"set"))),j(!1),ke.next=18;break;case 14:ke.prev=14,ke.t0=ke.catch(4),console.log(ke.t0),j(!1);case 18:case"end":return ke.stop()}},ve,null,[[4,14]])})));return s.useImperativeHandle(b,function(){return D.current},[!G]),!G&&e.request?U.jsx("div",{style:{paddingTop:50,paddingBottom:50,textAlign:"center"},children:U.jsx(ki,{})}):re(U.jsx(Uv.Provider,{value:{mode:e.readonly?"read":"edit"},children:U.jsx(y0,{needDeps:!0,children:U.jsx(Ga.Provider,{value:{formRef:D,fieldProps:u,proFieldProps:d,formItemProps:f,groupProps:m,formComponentType:S,getPopupContainer:pe,formKey:B.current,setFieldValueType:function(Ce,he){var Se=he.valueType,Ee=Se===void 0?"text":Se,Oe=he.dateFormat,We=he.transform;Array.isArray(Ce)&&(de.current=sr(de.current,Ce,We),ae.current=sr(ae.current,Ce,{valueType:Ee,dateFormat:Oe}))}},children:U.jsx(Lu.Provider,{value:{},children:U.jsx(Fn,R(R({onKeyPress:function(Ce){if(a&&Ce.key==="Enter"){var he;(he=D.current)===null||he===void 0||he.submit()}},autoComplete:"off",form:p},Qt(N,["ref","labelWidth","autoFocusFirstInput"])),{},{ref:function(Ce){D.current&&(D.current.nativeElement=Ce?.nativeElement)},initialValues:i?R(R(R({},E),G),me):R(R(R({},me),E),G),onValuesChange:function(Ce,he){var Se;N==null||(Se=N.onValuesChange)===null||Se===void 0||Se.call(N,ie(Ce,!!x),ie(he,!!x))},className:le(e.className,Z,ne),onFinish:be,children:U.jsx(QNe,R(R({transformKey:ie,autoComplete:"off",loading:F,onUrlSearchChange:H},e),{},{formRef:D,initialValues:R(R({},E),G)}))}))})})})}))}var ZNe=function(t){return q(q({},"".concat(t.componentCls,"-collapse-label"),{paddingInline:1,paddingBlock:1}),"".concat(t.componentCls,"-container"),q({},"".concat(t.antCls,"-form-item"),{marginBlockEnd:0}))};function JNe(e){return Yn("LightWrapper",function(t){var n=R(R({},t),{},{componentCls:".".concat(e)});return[ZNe(n)]})}var e_e=["label","size","disabled","onChange","className","style","children","valuePropName","placeholder","labelFormatter","bordered","footerRender","allowClear","otherFieldProps","valueType","placement"],t_e=function(t){var n=t.label,r=t.size,a=t.disabled,o=t.onChange,i=t.className,l=t.style,c=t.children,u=t.valuePropName,d=t.placeholder,f=t.labelFormatter,m=t.bordered,g=t.footerRender,h=t.allowClear,b=t.otherFieldProps,p=t.valueType,S=t.placement,C=Ue(t,e_e),x=s.useContext(At.ConfigContext),w=x.getPrefixCls,$=w("pro-field-light-wrapper"),E=JNe($),P=E.wrapSSR,M=E.hashId,O=s.useState(t[u]),T=fe(O,2),N=T[0],D=T[1],L=Tt(!1),_=fe(L,2),F=_[0],j=_[1],k=function(){for(var B,K=arguments.length,W=new Array(K),G=0;G2?42:16};return U.jsx(li,{bordered:!1,style:{marginBlockEnd:16},children:U.jsx("div",{style:{width:"100%",justifyContent:"space-between",display:"flex"},children:new Array(l).fill(null).map(function(u,d){return U.jsxs("div",{style:{borderInlineStart:l>2&&d===1?"1px solid rgba(0,0,0,0.06)":void 0,paddingInlineStart:c(d),flex:1,marginInlineEnd:d===0?16:0},children:[U.jsx(Tn,{active:r,paragraph:!1,title:{width:100,style:{marginBlockStart:0}}}),U.jsx(Tn.Button,{active:r,style:{height:48}})]},d)})})})},o_e=function(t){var n=t.active;return U.jsxs(U.Fragment,{children:[U.jsx(li,{bordered:!1,style:{borderRadius:0},styles:{body:{padding:24}},children:U.jsxs("div",{style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[U.jsx("div",{style:{maxWidth:"100%",flex:1},children:U.jsx(Tn,{active:n,title:{width:100,style:{marginBlockStart:0}},paragraph:{rows:1,style:{margin:0}}})}),U.jsx(Tn.Button,{active:n,size:"small",style:{width:165,marginBlockStart:12}})]})}),U.jsx(b3,{})]})},i_e=function(t){var n=t.size,r=t.active,a=r===void 0?!0:r,o=t.actionButton;return U.jsxs(li,{bordered:!1,styles:{body:{padding:0}},children:[new Array(n).fill(null).map(function(i,l){return U.jsx(o_e,{active:!!a},l)}),o!==!1&&U.jsx(li,{bordered:!1,style:{borderStartEndRadius:0,borderTopLeftRadius:0},styles:{body:{display:"flex",alignItems:"center",justifyContent:"center"}},children:U.jsx(Tn.Button,{style:{width:102},active:a,size:"small"})})]})},y3=function(t){var n=t.active;return U.jsxs("div",{style:{marginBlockEnd:16},children:[U.jsx(Tn,{paragraph:!1,title:{width:185}}),U.jsx(Tn.Button,{active:n,size:"small"})]})},l_e=function(t){var n=t.active;return U.jsx(li,{bordered:!1,style:{borderBottomRightRadius:0,borderBottomLeftRadius:0},styles:{body:{paddingBlockEnd:8}},children:U.jsxs(Qr,{style:{width:"100%",justifyContent:"space-between"},children:[U.jsx(Tn.Button,{active:n,style:{width:200},size:"small"}),U.jsxs(Qr,{children:[U.jsx(Tn.Button,{active:n,size:"small",style:{width:120}}),U.jsx(Tn.Button,{active:n,size:"small",style:{width:80}})]})]})})},s_e=function(t){var n=t.active,r=n===void 0?!0:n,a=t.statistic,o=t.actionButton,i=t.toolbar,l=t.pageHeader,c=t.list,u=c===void 0?5:c;return U.jsxs("div",{style:{width:"100%"},children:[l!==!1&&U.jsx(y3,{active:r}),a!==!1&&U.jsx(a_e,{size:a,active:r}),(i!==!1||u!==!1)&&U.jsxs(li,{bordered:!1,styles:{body:{padding:0}},children:[i!==!1&&U.jsx(l_e,{active:r}),u!==!1&&U.jsx(i_e,{size:u,active:r,actionButton:o})]})]})},VH={xs:1,sm:2,md:3,lg:3,xl:3,xxl:4},c_e=function(t){var n=t.active;return U.jsxs("div",{style:{marginBlockStart:32},children:[U.jsx(Tn.Button,{active:n,size:"small",style:{width:100,marginBlockEnd:16}}),U.jsxs("div",{style:{width:"100%",justifyContent:"space-between",display:"flex"},children:[U.jsxs("div",{style:{flex:1,marginInlineEnd:24,maxWidth:300},children:[U.jsx(Tn,{active:n,paragraph:!1,title:{style:{marginBlockStart:0}}}),U.jsx(Tn,{active:n,paragraph:!1,title:{style:{marginBlockStart:8}}}),U.jsx(Tn,{active:n,paragraph:!1,title:{style:{marginBlockStart:8}}})]}),U.jsx("div",{style:{flex:1,alignItems:"center",justifyContent:"center"},children:U.jsxs("div",{style:{maxWidth:300,margin:"auto"},children:[U.jsx(Tn,{active:n,paragraph:!1,title:{style:{marginBlockStart:0}}}),U.jsx(Tn,{active:n,paragraph:!1,title:{style:{marginBlockStart:8}}})]})})]})]})},u_e=function(t){var n=t.size,r=t.active,a=s.useMemo(function(){return{lg:!0,md:!0,sm:!1,xl:!1,xs:!1,xxl:!1}},[]),o=ui()||a,i=Object.keys(o).filter(function(c){return o[c]===!0})[0]||"md",l=n===void 0?VH[i]||3:n;return U.jsx("div",{style:{width:"100%",justifyContent:"space-between",display:"flex"},children:new Array(l).fill(null).map(function(c,u){return U.jsxs("div",{style:{flex:1,paddingInlineStart:u===0?0:24,paddingInlineEnd:u===l-1?0:24},children:[U.jsx(Tn,{active:r,paragraph:!1,title:{style:{marginBlockStart:0}}}),U.jsx(Tn,{active:r,paragraph:!1,title:{style:{marginBlockStart:8}}}),U.jsx(Tn,{active:r,paragraph:!1,title:{style:{marginBlockStart:8}}})]},u)})})},j7=function(t){var n=t.active,r=t.header,a=r===void 0?!1:r,o=s.useMemo(function(){return{lg:!0,md:!0,sm:!1,xl:!1,xs:!1,xxl:!1}},[]),i=ui()||o,l=Object.keys(i).filter(function(u){return i[u]===!0})[0]||"md",c=VH[l]||3;return U.jsxs(U.Fragment,{children:[U.jsxs("div",{style:{display:"flex",background:a?"rgba(0,0,0,0.02)":"none",padding:"24px 8px"},children:[new Array(c).fill(null).map(function(u,d){return U.jsx("div",{style:{flex:1,paddingInlineStart:a&&d===0?0:20,paddingInlineEnd:32},children:U.jsx(Tn,{active:n,paragraph:!1,title:{style:{margin:0,height:24,width:a?"75px":"100%"}}})},d)}),U.jsx("div",{style:{flex:3,paddingInlineStart:32},children:U.jsx(Tn,{active:n,paragraph:!1,title:{style:{margin:0,height:24,width:a?"75px":"100%"}}})})]}),U.jsx(b3,{padding:"0px 0px"})]})},d_e=function(t){var n=t.active,r=t.size,a=r===void 0?4:r;return U.jsxs(li,{bordered:!1,children:[U.jsx(Tn.Button,{active:n,size:"small",style:{width:100,marginBlockEnd:16}}),U.jsx(j7,{header:!0,active:n}),new Array(a).fill(null).map(function(o,i){return U.jsx(j7,{active:n},i)}),U.jsx("div",{style:{display:"flex",justifyContent:"flex-end",paddingBlockStart:16},children:U.jsx(Tn,{active:n,paragraph:!1,title:{style:{margin:0,height:32,float:"right",maxWidth:"630px"}}})})]})},f_e=function(t){var n=t.active;return U.jsxs(li,{bordered:!1,style:{borderStartEndRadius:0,borderTopLeftRadius:0},children:[U.jsx(Tn.Button,{active:n,size:"small",style:{width:100,marginBlockEnd:16}}),U.jsx(u_e,{active:n}),U.jsx(c_e,{active:n})]})},v_e=function(t){var n=t.active,r=n===void 0?!0:n,a=t.pageHeader,o=t.list;return U.jsxs("div",{style:{width:"100%"},children:[a!==!1&&U.jsx(y3,{active:r}),U.jsx(f_e,{active:r}),o!==!1&&U.jsx(b3,{}),o!==!1&&U.jsx(d_e,{active:r,size:o})]})},m_e=function(t){var n=t.active,r=n===void 0?!0:n,a=t.pageHeader;return U.jsxs("div",{style:{width:"100%"},children:[a!==!1&&U.jsx(y3,{active:r}),U.jsx(li,{children:U.jsxs("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",padding:128},children:[U.jsx(Tn.Avatar,{size:64,style:{marginBlockEnd:32}}),U.jsx(Tn.Button,{active:r,style:{width:214,marginBlockEnd:8}}),U.jsx(Tn.Button,{active:r,style:{width:328},size:"small"}),U.jsxs(Qr,{style:{marginBlockStart:24},children:[U.jsx(Tn.Button,{active:r,style:{width:116}}),U.jsx(Tn.Button,{active:r,style:{width:116}})]})]})})]})},g_e=["type"],p_e=function(t){var n=t.type,r=n===void 0?"list":n,a=Ue(t,g_e);return r==="result"?U.jsx(m_e,R({},a)):r==="descriptions"?U.jsx(v_e,R({},a)):U.jsx(s_e,R({},a))},h_e=function(t,n){var r=n||{},a=r.onRequestError,o=r.effects,i=r.manual,l=r.dataSource,c=r.defaultDataSource,u=r.onDataSourceChange,d=Tt(c,{value:l,onChange:u}),f=fe(d,2),m=f[0],g=f[1],h=Tt(n?.loading,{value:n?.loading,onChange:n?.onLoadingChange}),b=fe(h,2),p=b[0],S=b[1],C=function($){g($),S(!1)},x=(function(){var w=en(ut().mark(function $(){var E,P,M;return ut().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(!p){T.next=2;break}return T.abrupt("return");case 2:return S(!0),T.prev=3,T.next=6,t();case 6:if(T.t0=T.sent,T.t0){T.next=9;break}T.t0={};case 9:E=T.t0,P=E.data,M=E.success,M!==!1&&C(P),T.next=23;break;case 15:if(T.prev=15,T.t1=T.catch(3),a!==void 0){T.next=21;break}throw new Error(T.t1);case 21:a(T.t1);case 22:S(!1);case 23:return T.prev=23,S(!1),T.finish(23);case 26:case"end":return T.stop()}},$,null,[[3,15,23,26]])}));return function(){return w.apply(this,arguments)}})();return s.useEffect(function(){i||x()},[].concat(Te(o||[]),[i])),{dataSource:m,setDataSource:g,loading:p,reload:function(){return x()}}},b_e=["valueEnum","render","renderText","mode","plain","dataIndex","request","params","editable"],y_e=["request","columns","params","dataSource","onDataSourceChange","formProps","editable","loading","onLoadingChange","actionRef","onRequestError","emptyText","contentStyle"],C_e=function(t,n){var r=t.dataIndex;if(r){var a=Array.isArray(r)?Dn(n,r):n[r];if(a!==void 0||a!==null)return a}return t.children},D7=function(t){var n,r=t.valueEnum,a=t.action,o=t.index,i=t.text,l=t.entity,c=t.mode,u=t.render,d=t.editableUtils,f=t.valueType,m=t.plain,g=t.dataIndex,h=t.request,b=t.renderFormItem,p=t.params,S=t.emptyText,C=_a.useFormInstance(),x=(n=fa.useToken)===null||n===void 0?void 0:n.call(fa),w=x.token,$={text:i,valueEnum:r,mode:c||"read",proFieldProps:{emptyText:S,render:u?function(M){return u?.(M,l,o,a,R(R({},t),{},{type:"descriptions"}))}:void 0},ignoreFormItem:!0,valueType:f,request:h,params:p,plain:m};if(c==="read"||!c||f==="option"){var E=pu(t.fieldProps,void 0,R(R({},t),{},{rowKey:g,isEditable:!1}));return U.jsx(rr,R(R({name:g},$),{},{fieldProps:E}))}var P=function(){var O,T=pu(t.formItemProps,C,R(R({},t),{},{rowKey:g,isEditable:!0})),N=pu(t.fieldProps,C,R(R({},t),{},{rowKey:g,isEditable:!0}));return U.jsxs("div",{style:{display:"flex",gap:w.marginXS,alignItems:"baseline"},children:[U.jsx(bB,R(R({name:g},T),{},{style:R({margin:0},T?.style||{}),initialValue:i||T?.initialValue,children:U.jsx(rr,R(R({},$),{},{proFieldProps:R({},$.proFieldProps),renderFormItem:b?function(){return b?.(R(R({},t),{},{type:"descriptions"}),{isEditable:!0,recordKey:g,record:C.getFieldValue([g].flat(1)),defaultRender:function(){return U.jsx(rr,R(R({},$),{},{fieldProps:N}))},type:"descriptions"},C)}:void 0,fieldProps:N}))})),U.jsx("div",{style:{display:"flex",maxHeight:w.controlHeight,alignItems:"center",gap:w.marginXS},children:d==null||(O=d.actionRender)===null||O===void 0?void 0:O.call(d,g||o,{cancelText:U.jsx(vo,{}),saveText:U.jsx(Cv,{}),deleteText:!1})})]})};return U.jsx("div",{style:{marginTop:-5,marginBottom:-5,marginLeft:0,marginRight:0},children:P()})},S_e=function(t,n,r,a,o){var i,l=[],c=ml(ri,"5.8.0")>=0,u=t==null||(i=t.map)===null||i===void 0?void 0:i.call(t,function(d,f){var m,g,h;if(Q.isValidElement(d))return c?{children:d}:d;var b=d;b.valueEnum,b.render;var p=b.renderText,S=b.mode;b.plain;var C=b.dataIndex;b.request,b.params;var x=b.editable,w=Ue(b,b_e),$=(m=C_e(d,n))!==null&&m!==void 0?m:w.children,E=p?p($,n,f,r):$,P=typeof w.title=="function"?w.title(d,"descriptions",null):w.title,M=typeof w.valueType=="function"?w.valueType(n||{},"descriptions"):w.valueType,O=a?.isEditable(C||f),T=S||O?"edit":"read",N=a&&T==="read"&&x!==!1&&x?.(E,n,f)!==!1,D=N?Qr:Q.Fragment,L=T==="edit"?E:CB(E,d,E),_=c&&M!=="option"?R(R({},w),{},{key:w.key||((g=w.label)===null||g===void 0?void 0:g.toString())||f,label:(P||w.label||w.tooltip)&&U.jsx(Ii,{label:P||w.label,tooltip:w.tooltip,ellipsis:d.ellipsis}),children:U.jsxs(D,{children:[s.createElement(D7,R(R({},d),{},{key:d?.key,dataIndex:d.dataIndex||f,mode:T,text:L,valueType:M,entity:n,index:f,emptyText:o,action:r,editableUtils:a})),N&&U.jsx(c$,{onClick:function(){a?.startEditable(C||f)}})]})}):s.createElement(a0.Item,R(R({},w),{},{key:w.key||((h=w.label)===null||h===void 0?void 0:h.toString())||f,label:(P||w.label||w.tooltip)&&U.jsx(Ii,{label:P||w.label,tooltip:w.tooltip,ellipsis:d.ellipsis})}),U.jsxs(D,{children:[U.jsx(D7,R(R({},d),{},{dataIndex:d.dataIndex||f,mode:T,text:L,valueType:M,entity:n,index:f,action:r,editableUtils:a})),N&&M!=="option"&&U.jsx(c$,{onClick:function(){a?.startEditable(C||f)}})]}));return M==="option"?(l.push(_),null):_}).filter(function(d){return d});return{options:l!=null&&l.length?l:null,children:u}},WH=function(t){return U.jsx(a0.Item,R(R({},t),{},{children:t.children}))};WH.displayName="ProDescriptionsItem";var x_e=function(t){return t.children},w_e=function(t){var n,r=t.request,a=t.columns,o=t.params,i=t.dataSource,l=t.onDataSourceChange,c=t.formProps,u=t.editable,d=t.loading,f=t.onLoadingChange,m=t.actionRef,g=t.onRequestError;t.emptyText;var h=t.contentStyle,b=Ue(t,y_e),p=s.useContext(At.ConfigContext),S=h_e(en(ut().mark(function N(){var D;return ut().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(!r){_.next=6;break}return _.next=3,r(o||{});case 3:_.t0=_.sent,_.next=7;break;case 6:_.t0={data:{}};case 7:return D=_.t0,_.abrupt("return",D);case 9:case"end":return _.stop()}},N)})),{onRequestError:g,effects:[al(o)],manual:!r,dataSource:i,loading:d,onLoadingChange:f,onDataSourceChange:l}),C=TPe(R(R({},t.editable),{},{childrenColumnName:void 0,dataSource:S.dataSource,setDataSource:S.setDataSource}));if(s.useEffect(function(){m&&(m.current=R({reload:S.reload},C))},[S,m,C]),S.loading||S.loading===void 0&&r)return U.jsx(p_e,{type:"descriptions",list:!1,pageHeader:!1});var x=function(){var D=Xn(t.children).filter(Boolean).map(function(L){if(!Q.isValidElement(L))return L;var _=L?.props,F=_.valueEnum,j=_.valueType,k=_.dataIndex,z=_.ellipsis,V=_.copyable,H=_.request;return!j&&!F&&!k&&!H&&!z&&!V&&L.type.displayName!=="ProDescriptionsItem"?L:R(R({},L?.props),{},{entity:i})});return[].concat(Te(a||[]),Te(D)).filter(function(L){return!L||L!=null&&L.valueType&&["index","indexBorder"].includes(L?.valueType)?!1:!(L!=null&&L.hideInDescriptions)}).sort(function(L,_){return _.order||L.order?(_.order||0)-(L.order||0):(_.index||0)-(L.index||0)})},w=S_e(x(),S.dataSource||{},m?.current||S,u?C:void 0,t.emptyText),$=w.options,E=w.children,P=u?_a:x_e,M=null;(b.title||b.tooltip||b.tip)&&(M=U.jsx(Ii,{label:b.title,tooltip:b.tooltip||b.tip}));var O=p.getPrefixCls("pro-descriptions"),T=ml(ri,"5.8.0")>=0;return U.jsx(mB,{children:U.jsx(P,R(R({form:(n=t.editable)===null||n===void 0?void 0:n.form,component:!1,submitter:!1},c),{},{onFinish:void 0,children:U.jsx(a0,R(R({className:O},b),{},{contentStyle:R({minWidth:0},h||{}),extra:b.extra?U.jsxs(Qr,{children:[$,b.extra]}):$,title:M,items:T?E:void 0,children:T?null:E}))}),"form")})};w_e.Item=WH;var $_e=OB(Object.keys,Object),E_e=Object.prototype,P_e=E_e.hasOwnProperty;function KH(e){if(!$0(e))return $_e(e);var t=[];for(var n in Object(e))P_e.call(e,n)&&n!="constructor"&&t.push(n);return t}var k$=uc(zi,"DataView"),L$=uc(zi,"Promise"),z$=uc(zi,"Set"),A$=uc(zi,"WeakMap"),F7="[object Map]",O_e="[object Object]",k7="[object Promise]",L7="[object Set]",z7="[object WeakMap]",A7="[object DataView]",R_e=cc(k$),I_e=cc(Zf),M_e=cc(L$),T_e=cc(z$),N_e=cc(A$),el=sd;(k$&&el(new k$(new ArrayBuffer(1)))!=A7||Zf&&el(new Zf)!=F7||L$&&el(L$.resolve())!=k7||z$&&el(new z$)!=L7||A$&&el(new A$)!=z7)&&(el=function(e){var t=sd(e),n=t==O_e?e.constructor:void 0,r=n?cc(n):"";if(r)switch(r){case R_e:return A7;case I_e:return F7;case M_e:return k7;case T_e:return L7;case N_e:return z7}return t});var __e="[object Map]",j_e="[object Set]",D_e=Object.prototype,F_e=D_e.hasOwnProperty;function k_e(e){if(e==null)return!0;if(Av(e)&&(Qs(e)||typeof e=="string"||typeof e.splice=="function"||ev(e)||E0(e)||qp(e)))return!e.length;var t=el(e);if(t==__e||t==j_e)return!e.size;if($0(e))return!KH(e).length;for(var n in e)if(F_e.call(e,n))return!1;return!0}var L_e="__lodash_hash_undefined__";function z_e(e){return this.__data__.set(e,L_e),this}function A_e(e){return this.__data__.has(e)}function nh(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new dc;++tl))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var f=-1,m=!0,g=n&W_e?new nh:void 0;for(o.set(e,t),o.set(t,e);++f0&&arguments[0]!==void 0?arguments[0]:{},l=s.useRef(),c=s.useRef(null),u=s.useRef(),d=s.useRef(),f=s.useState(""),m=fe(f,2),g=m[0],h=m[1],b=s.useRef([]),p=Tt(function(){return i.size||i.defaultSize||"middle"},{value:i.size,onChange:i.onSizeChange}),S=fe(p,2),C=S[0],x=S[1],w=s.useMemo(function(){var N,D;if(i!=null&&(N=i.columnsState)!==null&&N!==void 0&&N.defaultValue)return i.columnsState.defaultValue;var L={};return(D=i.columns)===null||D===void 0||D.forEach(function(_,F){var j=_.key,k=_.dataIndex,z=_.fixed,V=_.disable,H=vd(j??k,F);H&&(L[H]={show:!0,fixed:z,disable:V})}),L},[i.columns]),$=Tt(function(){var N,D,L=i.columnsState||{},_=L.persistenceType,F=L.persistenceKey;if(F&&_&&typeof window<"u"){var j=window[_];try{var k=j?.getItem(F);if(k){var z;if(i!=null&&(z=i.columnsState)!==null&&z!==void 0&&z.defaultValue){var V;return $$({},i==null||(V=i.columnsState)===null||V===void 0?void 0:V.defaultValue,JSON.parse(k))}return JSON.parse(k)}}catch(H){console.warn(H)}}return i.columnsStateMap||((N=i.columnsState)===null||N===void 0?void 0:N.value)||((D=i.columnsState)===null||D===void 0?void 0:D.defaultValue)||w},{value:((e=i.columnsState)===null||e===void 0?void 0:e.value)||i.columnsStateMap,onChange:((t=i.columnsState)===null||t===void 0?void 0:t.onChange)||i.onColumnsStateChange}),E=fe($,2),P=E[0],M=E[1];s.useEffect(function(){var N=i.columnsState||{},D=N.persistenceType,L=N.persistenceKey;if(L&&D&&typeof window<"u"){var _=window[D];try{var F=_?.getItem(L);if(F){var j;if(i!=null&&(j=i.columnsState)!==null&&j!==void 0&&j.defaultValue){var k;M($$({},i==null||(k=i.columnsState)===null||k===void 0?void 0:k.defaultValue,JSON.parse(F)))}else M(JSON.parse(F))}else M(w)}catch(z){console.warn(z)}}},[(n=i.columnsState)===null||n===void 0?void 0:n.persistenceKey,(r=i.columnsState)===null||r===void 0?void 0:r.persistenceType,w]),Ia(!i.columnsStateMap,"columnsStateMap已经废弃,请使用 columnsState.value 替换"),Ia(!i.columnsStateMap,"columnsStateMap has been discarded, please use columnsState.value replacement");var O=s.useCallback(function(){var N=i.columnsState||{},D=N.persistenceType,L=N.persistenceKey;if(!(!L||!D||typeof window>"u")){var _=window[D];try{_?.removeItem(L)}catch(F){console.warn(F)}}},[i.columnsState]);s.useEffect(function(){var N,D;if(!(!((N=i.columnsState)!==null&&N!==void 0&&N.persistenceKey)||!((D=i.columnsState)!==null&&D!==void 0&&D.persistenceType))&&!(typeof window>"u")){var L=i.columnsState,_=L.persistenceType,F=L.persistenceKey,j=window[_];try{j?.setItem(F,JSON.stringify(P))}catch(k){console.warn(k),O()}}},[(a=i.columnsState)===null||a===void 0?void 0:a.persistenceKey,P,(o=i.columnsState)===null||o===void 0?void 0:o.persistenceType]);var T={action:l.current,setAction:function(D){l.current=D},sortKeyColumns:b.current,setSortKeyColumns:function(D){b.current=D},propsRef:d,columnsMap:P,keyWords:g,setKeyWords:function(D){return h(D)},setTableSize:x,tableSize:C,prefixName:u.current,setPrefixName:function(D){u.current=D},setColumnsMap:M,columns:i.columns,rootDomRef:c,clearPersistenceStorage:O,defaultColumnKeyMap:w};return Object.defineProperty(T,"prefixName",{get:function(){return u.current}}),Object.defineProperty(T,"sortKeyColumns",{get:function(){return b.current}}),Object.defineProperty(T,"action",{get:function(){return l.current}}),T}var ds=s.createContext({}),I7e=function(t){var n=R7e(t.initValue);return U.jsx(ds.Provider,{value:n,children:t.children})},M7e=function(t){return q({},t.componentCls,{marginBlockEnd:16,backgroundColor:io(t.colorTextBase,.02),borderRadius:t.borderRadius,border:"none","&-container":{paddingBlock:t.paddingSM,paddingInline:t.paddingLG},"&-info":{display:"flex",alignItems:"center",transition:"all 0.3s",color:t.colorTextTertiary,"&-content":{flex:1},"&-option":{minWidth:48,paddingInlineStart:16}}})};function T7e(e){return Yn("ProTableAlert",function(t){var n=R(R({},t),{},{componentCls:".".concat(e)});return[M7e(n)]})}var N7e=function(t){var n=t.intl,r=t.onCleanSelected;return[U.jsx("a",{onClick:r,children:n.getMessage("alert.clear","清空")},"0")]};function _7e(e){var t=e.selectedRowKeys,n=t===void 0?[]:t,r=e.onCleanSelected,a=e.alwaysShowAlert,o=e.selectedRows,i=e.alertInfoRender,l=i===void 0?function(x){var w=x.intl;return U.jsxs(Qr,{children:[w.getMessage("alert.selected","已选择"),n.length,w.getMessage("alert.item","项"),"  "]})}:i,c=e.alertOptionRender,u=c===void 0?N7e:c,d=Rn(),f=u&&u({onCleanSelected:r,selectedRowKeys:n,selectedRows:o,intl:d}),m=s.useContext(At.ConfigContext),g=m.getPrefixCls,h=g("pro-table-alert"),b=T7e(h),p=b.wrapSSR,S=b.hashId;if(l===!1)return null;var C=l({intl:d,selectedRowKeys:n,selectedRows:o,onCleanSelected:r});return C===!1||n.length<1&&!a?null:p(U.jsx("div",{className:"".concat(h," ").concat(S).trim(),children:U.jsx("div",{className:"".concat(h,"-container ").concat(S).trim(),children:U.jsxs("div",{className:"".concat(h,"-info ").concat(S).trim(),children:[U.jsx("div",{className:"".concat(h,"-info-content ").concat(S).trim(),children:C}),f?U.jsx("div",{className:"".concat(h,"-info-option ").concat(S).trim(),children:f}):null]})})}))}function j7e(e){var t=e.replace(/[A-Z]/g,function(n){return"-".concat(n.toLowerCase())});return t.startsWith("-")&&(t=t.slice(1)),t}var D7e=function(t,n){return!t&&n!==!1?n?.filterType==="light"?"LightFilter":"QueryFilter":"Form"},F7e=function(t,n,r){return!t&&r==="LightFilter"?Qt(R({},n),["labelWidth","defaultCollapsed","filterType"]):t?{}:Qt(R({labelWidth:n?n?.labelWidth:void 0,defaultCollapsed:!0},n),["filterType"])},k7e=function(t,n){return t?Qt(n,["ignoreRules"]):R({ignoreRules:!0},n)},L7e=function(t){var n=t.onSubmit,r=t.formRef,a=t.dateFormatter,o=a===void 0?"string":a,i=t.type,l=t.columns,c=t.action,u=t.ghost,d=t.manualRequest,f=t.onReset,m=t.submitButtonLoading,g=t.search,h=t.form,b=t.bordered,p=s.useContext(No),S=p.hashId,C=i==="form",x=(function(){var N=en(ut().mark(function D(L,_){return ut().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:n&&n(L,_);case 1:case"end":return j.stop()}},D)}));return function(L,_){return N.apply(this,arguments)}})(),w=s.useContext(At.ConfigContext),$=w.getPrefixCls,E=s.useMemo(function(){return l.filter(function(N){return!(N===qa.EXPAND_COLUMN||N===qa.SELECTION_COLUMN||(N.hideInSearch||N.search===!1)&&i!=="form"||i==="form"&&N.hideInForm)}).map(function(N){var D,L=!N.valueType||["textarea","jsonCode","code"].includes(N?.valueType)&&i==="table"?"text":N?.valueType,_=N?.key||(N==null||(D=N.dataIndex)===null||D===void 0?void 0:D.toString());return R(R(R({},N),{},{width:void 0},N.search&&st(N.search)==="object"?N.search:{}),{},{valueType:L,proFieldProps:R(R({},N.proFieldProps),{},{proFieldKey:_?"table-field-".concat(_):void 0})})})},[l,i]),P=$("pro-table-search"),M=$("pro-table-form"),O=s.useMemo(function(){return D7e(C,g)},[g,C]),T=s.useMemo(function(){return{submitter:{submitButtonProps:{loading:m}}}},[m]);return U.jsx("div",{className:le(S,q(q(q(q(q(q(q(q(q({},$("pro-card"),!0),"".concat($("pro-card"),"-border"),!!b),"".concat($("pro-card"),"-bordered"),!!b),"".concat($("pro-card"),"-ghost"),!!u),P,!0),M,C),$("pro-table-search-".concat(j7e(O))),!0),"".concat(P,"-ghost"),u),g?.className,g!==!1&&g?.className)),children:U.jsx(AH,R(R(R(R({layoutType:O,columns:E,type:i},T),F7e(C,g,O)),k7e(C,h||{})),{},{formRef:r,action:c,dateFormatter:o,onInit:function(D,L){if(r.current=L,i!=="form"){var _,F,j,k=(_=c.current)===null||_===void 0?void 0:_.pageInfo,z=D,V=z.current,H=V===void 0?k?.current:V,B=z.pageSize,K=B===void 0?k?.pageSize:B;if((F=c.current)===null||F===void 0||(j=F.setPageInfo)===null||j===void 0||j.call(F,R(R({},k),{},{current:parseInt(H,10),pageSize:parseInt(K,10)})),d)return;x(D,!0)}},onReset:function(D){f?.(D)},onFinish:function(D){x(D,!1)},initialValues:h?.initialValues}))})},z7e=(function(e){ma(n,e);var t=Ea(n);function n(){var r;kn(this,n);for(var a=arguments.length,o=new Array(a),i=0;i span":{"> span.anticon":{color:t.colorPrimary}},"> span + span":{marginInlineStart:4}}}))};function B7e(e){return Yn("ColumnSetting",function(t){var n=R(R({},t),{},{componentCls:".".concat(e)});return[A7e(n)]})}var H7e=["key","dataIndex","children"],V7e=["disabled"],P2=function(t){var n=t.title,r=t.show,a=t.children,o=t.columnKey,i=t.fixed,l=s.useContext(ds),c=l.columnsMap,u=l.setColumnsMap;return r?U.jsx(tr,{title:n,children:U.jsx("span",{onClick:function(f){f.stopPropagation(),f.preventDefault();var m=c[o]||{},g=R(R({},c),{},q({},o,R(R({},m),{},{fixed:i})));u(g)},children:a})}):null},W7e=function(t){var n=t.columnKey,r=t.isLeaf,a=t.title,o=t.className,i=t.fixed,l=t.showListItemOption,c=Rn(),u=s.useContext(No),d=u.hashId,f=U.jsxs("span",{className:"".concat(o,"-list-item-option ").concat(d).trim(),children:[U.jsx(P2,{columnKey:n,fixed:"left",title:c.getMessage("tableToolBar.leftPin","固定在列首"),show:i!=="left",children:U.jsx(Pk,{})}),U.jsx(P2,{columnKey:n,fixed:void 0,title:c.getMessage("tableToolBar.noPin","不固定"),show:!!i,children:U.jsx(j2e,{})}),U.jsx(P2,{columnKey:n,fixed:"right",title:c.getMessage("tableToolBar.rightPin","固定在列尾"),show:i!=="right",children:U.jsx(T2e,{})})]});return U.jsxs("span",{className:"".concat(o,"-list-item ").concat(d).trim(),children:[U.jsx("div",{className:"".concat(o,"-list-item-title ").concat(d).trim(),children:a}),l&&!r?f:null]},n)},O2=function(t){var n,r,a,o=t.list,i=t.draggable,l=t.checkable,c=t.showListItemOption,u=t.className,d=t.showTitle,f=d===void 0?!0:d,m=t.title,g=t.listHeight,h=g===void 0?280:g,b=s.useContext(No),p=b.hashId,S=s.useContext(ds),C=S.columnsMap,x=S.setColumnsMap,w=S.sortKeyColumns,$=S.setSortKeyColumns,E=o&&o.length>0,P=s.useMemo(function(){if(!E)return{};var N=[],D=new Map,L=function _(F,j){return F.map(function(k){var z,V=k.key;k.dataIndex;var H=k.children,B=Ue(k,H7e),K=vd(V,[j?.columnKey,B.index].filter(Boolean).join("-")),W=C[K||"null"]||{show:!0};W.show!==!1&&!H&&N.push(K);var G=R(R({key:K},Qt(B,["className"])),{},{selectable:!1,disabled:W.disable===!0,disableCheckbox:typeof W.disable=="boolean"?W.disable:(z=W.disable)===null||z===void 0?void 0:z.checkbox,isLeaf:j?!0:void 0});if(H){var X;G.children=_(H,R(R({},W),{},{columnKey:K})),(X=G.children)!==null&&X!==void 0&&X.every(function(Y){return N?.includes(Y.key)})&&N.push(K)}return D.set(V,G),G})};return{list:L(o),keys:N,map:D}},[C,o,E]),M=Mn(function(N,D,L){var _=R({},C),F=Te(w),j=F.findIndex(function(H){return H===N}),k=F.findIndex(function(H){return H===D}),z=L>=j;if(!(j<0)){var V=F[j];F.splice(j,1),L===0?F.unshift(V):F.splice(z?k:k+1,0,V),F.forEach(function(H,B){_[H]=R(R({},_[H]||{}),{},{order:B})}),x(_),$(F)}}),O=Mn(function(N){var D=R({},C),L=function _(F){var j,k=R({},D[F]);if(k.show=N.checked,(j=P.map)!==null&&j!==void 0&&(j=j.get(F))!==null&&j!==void 0&&j.children){var z;(z=P.map.get(F))===null||z===void 0||(z=z.children)===null||z===void 0||z.forEach(function(V){return _(V.key)})}D[F]=k};L(N.node.key),x(R({},D))});if(!E)return null;var T=U.jsx(g0,{itemHeight:24,draggable:i&&!!((n=P.list)!==null&&n!==void 0&&n.length)&&((r=P.list)===null||r===void 0?void 0:r.length)>1,checkable:l,onDrop:function(D){var L=D.node.key,_=D.dragNode.key,F=D.dropPosition,j=D.dropToGap,k=F===-1||!j?F+1:F;M(_,L,k)},blockNode:!0,onCheck:function(D,L){return O(L)},checkedKeys:P.keys,showLine:!1,titleRender:function(D){var L=R(R({},D),{},{children:void 0});if(!L.title)return null;var _=Gr(L.title,L),F=U.jsx(id.Text,{style:{width:80},ellipsis:{tooltip:_},children:_});return U.jsx(W7e,R(R({className:u},Qt(L,["key"])),{},{showListItemOption:c,title:F,columnKey:L.key}))},height:h,treeData:(a=P.list)===null||a===void 0?void 0:a.map(function(N){N.disabled;var D=Ue(N,V7e);return D})});return U.jsxs(U.Fragment,{children:[f&&U.jsx("span",{className:"".concat(u,"-list-title ").concat(p).trim(),children:m}),T]})},K7e=function(t){var n=t.localColumns,r=t.className,a=t.draggable,o=t.checkable,i=t.showListItemOption,l=t.listsHeight,c=s.useContext(No),u=c.hashId,d=[],f=[],m=[],g=Rn();n.forEach(function(p){if(!p.hideInSetting){var S=p.fixed;if(S==="left"){f.push(p);return}if(S==="right"){d.push(p);return}m.push(p)}});var h=d&&d.length>0,b=f&&f.length>0;return U.jsxs("div",{className:le("".concat(r,"-list"),u,q({},"".concat(r,"-list-group"),h||b)),children:[U.jsx(O2,{title:g.getMessage("tableToolBar.leftFixedTitle","固定在左侧"),list:f,draggable:a,checkable:o,showListItemOption:i,className:r,listHeight:l}),U.jsx(O2,{list:m,draggable:a,checkable:o,showListItemOption:i,title:g.getMessage("tableToolBar.noFixedTitle","不固定"),showTitle:b||h,className:r,listHeight:l}),U.jsx(O2,{title:g.getMessage("tableToolBar.rightFixedTitle","固定在右侧"),list:d,draggable:a,checkable:o,showListItemOption:i,className:r,listHeight:l})]})};function q7e(e){var t,n,r,a,o=s.useRef(null),i=s.useContext(ds),l=e.columns,c=e.checkedReset,u=c===void 0?!0:c,d=i.columnsMap,f=i.setColumnsMap,m=i.clearPersistenceStorage;s.useEffect(function(){var O;if((O=i.propsRef.current)!==null&&O!==void 0&&(O=O.columnsState)!==null&&O!==void 0&&O.value){var T;o.current=JSON.parse(JSON.stringify(((T=i.propsRef.current)===null||T===void 0||(T=T.columnsState)===null||T===void 0?void 0:T.value)||{}))}},[]);var g=Mn(function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,T={},N=function D(L){L.forEach(function(_){var F=_.key,j=_.fixed,k=_.index,z=_.children,V=_.disable,H=vd(F,k);if(H){var B,K;T[H]={show:V?(B=d[H])===null||B===void 0?void 0:B.show:O,fixed:j,disable:V,order:(K=d[H])===null||K===void 0?void 0:K.order}}z&&D(z)})};N(l),f(T)}),h=Mn(function(O){O.target.checked?g():g(!1)}),b=Mn(function(){var O;m?.(),f(((O=i.propsRef.current)===null||O===void 0||(O=O.columnsState)===null||O===void 0?void 0:O.defaultValue)||o.current||i.defaultColumnKeyMap)}),p=Object.values(d).filter(function(O){return!O||O.show===!1}),S=p.length>0&&p.length!==l.length,C=Rn(),x=s.useContext(At.ConfigContext),w=x.getPrefixCls,$=w("pro-table-column-setting"),E=B7e($),P=E.wrapSSR,M=E.hashId;return P(U.jsx(Fi,{arrow:!1,title:U.jsxs("div",{className:"".concat($,"-title ").concat(M).trim(),children:[e.checkable===!1?U.jsx("div",{}):U.jsx(si,{indeterminate:S,checked:p.length===0&&p.length!==l.length,onChange:function(T){h(T)},children:C.getMessage("tableToolBar.columnDisplay","列展示")}),u?U.jsx("a",{onClick:b,className:"".concat($,"-action-rest-button ").concat(M).trim(),children:C.getMessage("tableToolBar.reset","重置")}):null,e!=null&&e.extra?U.jsx(Qr,{size:12,align:"center",children:e.extra}):null]}),overlayClassName:"".concat($,"-overlay ").concat(M).trim(),trigger:"click",placement:"bottomRight",content:U.jsx(K7e,{checkable:(t=e.checkable)!==null&&t!==void 0?t:!0,draggable:(n=e.draggable)!==null&&n!==void 0?n:!0,showListItemOption:(r=e.showListItemOption)!==null&&r!==void 0?r:!0,className:$,localColumns:l,listsHeight:e.listsHeight}),children:e.children||U.jsx(tr,{title:C.getMessage("tableToolBar.columnSetting","列设置"),children:(a=e.settingIcon)!==null&&a!==void 0?a:U.jsx(u2e,{})})}))}var U7e=function(t){var n=s.useContext(No),r=n.hashId,a=t.items,o=a===void 0?[]:a,i=t.type,l=i===void 0?"inline":i,c=t.prefixCls,u=t.activeKey,d=t.defaultActiveKey,f=Tt(u||d,{value:u,onChange:t.onChange}),m=fe(f,2),g=m[0],h=m[1];if(o.length<1)return null;var b=o.find(function(S){return S.key===g})||o[0];if(l==="inline")return U.jsx("div",{className:le("".concat(c,"-menu"),"".concat(c,"-inline-menu"),r),children:o.map(function(S,C){return U.jsx("div",{onClick:function(){h(S.key)},className:le("".concat(c,"-inline-menu-item"),b.key===S.key?"".concat(c,"-inline-menu-item-active"):void 0,r),children:S.label},S.key||C)})});if(l==="tab")return U.jsx(Zl,{items:o.map(function(S){var C;return R(R({},S),{},{key:(C=S.key)===null||C===void 0?void 0:C.toString()})}),activeKey:b.key,onTabClick:function(C){return h(C)},children:ml(ri,"4.23.0")<0?o?.map(function(S,C){return s.createElement(Zl.TabPane,R(R({},S),{},{key:S.key||C,tab:S.label}))}):null});var p=C0({selectedKeys:[b.key],onClick:function(C){h(C.key)},items:o.map(function(S,C){return{key:S.key||C,disabled:S.disabled,label:S.label}})});return U.jsx("div",{className:le("".concat(c,"-menu"),"".concat(c,"-dropdownmenu")),children:U.jsx(cs,R(R({trigger:["click"]},p),{},{children:U.jsxs(Qr,{className:"".concat(c,"-dropdownmenu-label"),children:[b.label,U.jsx(Ri,{})]})}))})},G7e=function(t){return q({},t.componentCls,q(q(q({lineHeight:"1","&-container":{display:"flex",justifyContent:"space-between",paddingBlock:t.padding,paddingInline:0,"&-mobile":{flexDirection:"column"}},"&-title":{display:"flex",alignItems:"center",justifyContent:"flex-start",color:t.colorTextHeading,fontWeight:"500",fontSize:t.fontSizeLG},"&-search:not(:last-child)":{display:"flex",alignItems:"center",justifyContent:"flex-start"},"&-setting-item":{marginBlock:0,marginInline:4,color:t.colorIconHover,fontSize:t.fontSizeLG,cursor:"pointer","> span":{display:"block",width:"100%",height:"100%"},"&:hover":{color:t.colorPrimary}},"&-left":q(q({display:"flex",flexWrap:"wrap",alignItems:"center",gap:t.marginXS,justifyContent:"flex-start",maxWidth:"calc(100% - 200px)"},"".concat(t.antCls,"-tabs"),{width:"100%"}),"&-has-tabs",{overflow:"hidden"}),"&-right":{flex:1,display:"flex",flexWrap:"wrap",justifyContent:"flex-end",gap:t.marginXS},"&-extra-line":{marginBlockEnd:t.margin},"&-setting-items":{display:"flex",gap:t.marginXS,lineHeight:"32px",alignItems:"center"},"&-filter":q({"&:not(:last-child)":{marginInlineEnd:t.margin},display:"flex",alignItems:"center"},"div$".concat(t.antCls,"-pro-table-search"),{marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0}),"&-inline-menu-item":{display:"inline-block",marginInlineEnd:t.marginLG,cursor:"pointer",opacity:"0.75","&-active":{fontWeight:"bold",opacity:"1"}}},"".concat(t.antCls,"-tabs-top > ").concat(t.antCls,"-tabs-nav"),q({marginBlockEnd:0,"&::before":{borderBlockEnd:0}},"".concat(t.antCls,"-tabs-nav-list"),{marginBlockStart:0,"${token.antCls}-tabs-tab":{paddingBlockStart:0}})),"&-dropdownmenu-label",{fontWeight:"bold",fontSize:t.fontSizeIcon,textAlign:"center",cursor:"pointer"}),"@media (max-width: 768px)",q({},t.componentCls,{"&-container":{display:"flex",flexWrap:"wrap",flexDirection:"column"},"&-left":{marginBlockEnd:"16px",maxWidth:"100%"}})))};function X7e(e){return Yn("ProTableListToolBar",function(t){var n=R(R({},t),{},{componentCls:".".concat(e)});return[G7e(n)]})}function Y7e(e){if(Q.isValidElement(e))return e;if(e){var t=e,n=t.icon,r=t.tooltip,a=t.onClick,o=t.key;return n&&r?U.jsx(tr,{title:r,children:U.jsx("span",{onClick:function(){a&&a(o)},children:n},o)}):U.jsx("span",{onClick:function(){a&&a(o)},children:n},o)}return null}var Q7e=function(t){var n,r=t.prefixCls,a=t.tabs,o=t.multipleLine,i=t.filtersNode;return o?U.jsx("div",{className:"".concat(r,"-extra-line"),children:a!=null&&a.items&&a!==null&&a!==void 0&&a.items.length?U.jsx(Zl,{style:{width:"100%"},defaultActiveKey:a.defaultActiveKey,activeKey:a.activeKey,items:a.items.map(function(l,c){var u;return R(R({label:l.tab},l),{},{key:((u=l.key)===null||u===void 0?void 0:u.toString())||c?.toString()})}),onChange:a.onChange,tabBarExtraContent:i,children:(n=a.items)===null||n===void 0?void 0:n.map(function(l,c){return ml(ri,"4.23.0")<0?s.createElement(Zl.TabPane,R(R({},l),{},{key:l.key||c,tab:l.tab})):null})}):i}):null},Z7e=function(t){var n=t.prefixCls,r=t.title,a=t.subTitle,o=t.tooltip,i=t.className,l=t.style,c=t.search,u=t.onSearch,d=t.multipleLine,f=d===void 0?!1:d,m=t.filter,g=t.actions,h=g===void 0?[]:g,b=t.settings,p=b===void 0?[]:b,S=t.tabs,C=t.menu,x=s.useContext(At.ConfigContext),w=x.getPrefixCls,$=fa.useToken(),E=$.token,P=w("pro-table-list-toolbar",n),M=X7e(P),O=M.wrapSSR,T=M.hashId,N=Rn(),D=s.useState(!1),L=fe(D,2),_=L[0],F=L[1],j=N.getMessage("tableForm.inputPlaceholder","请输入"),k=s.useMemo(function(){return c?Q.isValidElement(c)?c:U.jsx($a.Search,R(R({style:{width:200},placeholder:j},c),{},{onSearch:en(ut().mark(function Y(){var Z,ee,re,ne,se,oe,me=arguments;return ut().wrap(function(de){for(;;)switch(de.prev=de.next){case 0:for(re=me.length,ne=new Array(re),se=0;sea":{fontSize:t.fontSize}}),"".concat(t.antCls,"-table").concat(t.antCls,"-table-tbody").concat(t.antCls,"-table-wrapper:only-child").concat(t.antCls,"-table"),{marginBlock:0,marginInline:0}),"".concat(t.antCls,"-table").concat(t.antCls,"-table-middle ").concat(t.componentCls),q({marginBlock:0,marginInline:-8},"".concat(t.proComponentsCls,"-card"),{backgroundColor:"initial"})),"& &-search",q(q(q(q({marginBlockEnd:"16px",background:t.colorBgContainer,"&-ghost":{background:"transparent"}},"&".concat(t.componentCls,"-form"),{marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:16,overflow:"unset"}),"&-light-filter",{marginBlockEnd:0,paddingBlock:0,paddingInline:0}),"&-form-option",q(q(q({},"".concat(t.antCls,"-form-item"),{}),"".concat(t.antCls,"-form-item-label"),{}),"".concat(t.antCls,"-form-item-control-input"),{})),"@media (max-width: 575px)",q({},t.componentCls,q({height:"auto !important",paddingBlockEnd:"24px"},"".concat(t.antCls,"-form-item-label"),{minWidth:"80px",textAlign:"start"})))),"&-toolbar",{display:"flex",alignItems:"center",justifyContent:"space-between",height:"64px",paddingInline:24,paddingBlock:0,"&-option":{display:"flex",alignItems:"center",justifyContent:"flex-end"},"&-title":{flex:"1",color:t.colorTextLabel,fontWeight:"500",fontSize:"16px",lineHeight:"24px",opacity:"0.85"}})),"@media (max-width: ".concat(t.screenXS,")px"),q({},t.componentCls,q({},"".concat(t.antCls,"-table"),{width:"100%",overflowX:"auto","&-thead > tr,&-tbody > tr":{"> th,> td":{whiteSpace:"pre",">span":{display:"block"}}}}))),"@media (max-width: 575px)",q({},"".concat(t.componentCls,"-toolbar"),{flexDirection:"column",alignItems:"flex-start",justifyContent:"flex-start",height:"auto",marginBlockEnd:"16px",marginInlineStart:"16px",paddingBlock:8,paddingInline:8,paddingBlockStart:"16px",lineHeight:"normal","&-title":{marginBlockEnd:16},"&-option":{display:"flex",justifyContent:"space-between",width:"100%"},"&-default-option":{display:"flex",flex:"1",alignItems:"center",justifyContent:"flex-end"}}))};function cje(e){return Yn("ProTable",function(t){var n=R(R({},t),{},{componentCls:".".concat(e)});return[sje(n)]})}var uje=["data","success","total"],dje=function(t){var n=t.pageInfo;if(n){var r=n.current,a=n.defaultCurrent,o=n.pageSize,i=n.defaultPageSize;return{current:r||a||1,total:0,pageSize:o||i||20}}return{current:1,total:0,pageSize:20}},fje=function(t,n,r){var a,o=s.useRef(!1),i=s.useRef(null),l=r||{},c=l.onLoad,u=l.manual,d=l.polling,f=l.onRequestError,m=l.debounceTime,g=m===void 0?20:m,h=l.effects,b=h===void 0?[]:h,p=s.useRef(u),S=s.useRef(),C=Tt(n,{value:r?.dataSource,onChange:r?.onDataSourceChange}),x=fe(C,2),w=x[0],$=x[1],E=Tt(!1,{value:st(r?.loading)==="object"?r==null||(a=r.loading)===null||a===void 0?void 0:a.spinning:r?.loading,onChange:r?.onLoadingChange}),P=fe(E,2),M=P[0],O=P[1],T=Tt(function(){return dje(r)},{onChange:r?.onPageInfoChange}),N=fe(T,2),D=N[0],L=N[1],_=Mn(function(Z){(Z.current!==D.current||Z.pageSize!==D.pageSize||Z.total!==D.total)&&L(Z)}),F=Tt(!1),j=fe(F,2),k=j[0],z=j[1],V=function(ee,re){kr.unstable_batchedUpdates(function(){$(ee),D?.total!==re&&_(R(R({},D),{},{total:re||ee.length}))})},H=Pf(D?.current),B=Pf(D?.pageSize),K=Pf(d),W=Mn(function(){kr.unstable_batchedUpdates(function(){O(!1),z(!1)})}),G=(function(){var Z=en(ut().mark(function ee(re){var ne,se,oe,me,ue,de,ae,ie,ge,pe,be,ve;return ut().wrap(function(he){for(;;)switch(he.prev=he.next){case 0:if(!p.current){he.next=3;break}return p.current=!1,he.abrupt("return");case 3:return re?z(!0):O(!0),ne=D||{},se=ne.pageSize,oe=ne.current,he.prev=5,me=r?.pageInfo!==!1?{current:oe,pageSize:se}:void 0,he.next=9,t?.(me);case 9:if(he.t0=he.sent,he.t0){he.next=12;break}he.t0={};case 12:if(ue=he.t0,de=ue.data,ae=de===void 0?[]:de,ie=ue.success,ge=ue.total,pe=ge===void 0?0:ge,be=Ue(ue,uje),ie!==!1){he.next=21;break}return he.abrupt("return",[]);case 21:return ve=E7e(ae,[r.postData].filter(function(Se){return Se})),V(ve,pe),c?.(ve,be),he.abrupt("return",ve);case 27:if(he.prev=27,he.t1=he.catch(5),f!==void 0){he.next=31;break}throw new Error(he.t1);case 31:w===void 0&&$([]),f(he.t1);case 33:return he.prev=33,W(),he.finish(33);case 36:return he.abrupt("return",[]);case 37:case"end":return he.stop()}},ee,null,[[5,27,33,36]])}));return function(re){return Z.apply(this,arguments)}})(),X=G4((function(){var Z=en(ut().mark(function ee(re){var ne,se,oe;return ut().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:if(S.current&&clearTimeout(S.current),t){ue.next=3;break}return ue.abrupt("return");case 3:return ne=new AbortController,i.current=ne,ue.prev=5,ue.next=8,Promise.race([G(re),new Promise(function(de,ae){var ie,ge;(ie=i.current)===null||ie===void 0||(ie=ie.signal)===null||ie===void 0||(ge=ie.addEventListener)===null||ge===void 0||ge.call(ie,"abort",function(){ae("aborted"),X.cancel(),W()})})]);case 8:if(se=ue.sent,!ne.signal.aborted){ue.next=11;break}return ue.abrupt("return");case 11:return oe=Gr(d,se),oe&&!o.current&&(S.current=setTimeout(function(){X.run(oe)},Math.max(oe,2e3))),ue.abrupt("return",se);case 16:if(ue.prev=16,ue.t0=ue.catch(5),ue.t0!=="aborted"){ue.next=20;break}return ue.abrupt("return");case 20:throw ue.t0;case 21:case"end":return ue.stop()}},ee,null,[[5,16]])}));return function(ee){return Z.apply(this,arguments)}})(),g||30),Y=function(){var ee;(ee=i.current)===null||ee===void 0||ee.abort(),X.cancel(),W()};return s.useEffect(function(){return d||clearTimeout(S.current),!K&&d&&X.run(!0),function(){clearTimeout(S.current)}},[d]),s.useEffect(function(){return o.current=!1,function(){o.current=!0}},[]),s.useEffect(function(){var Z=D||{},ee=Z.current,re=Z.pageSize;(!H||H===ee)&&(!B||B===re)||r.pageInfo&&w&&w?.length>re||ee!==void 0&&w&&w.length<=re&&(Y(),X.run(!1))},[D?.current]),s.useEffect(function(){B&&(Y(),X.run(!1))},[D?.pageSize]),Vp(function(){return Y(),X.run(!1),u||(p.current=!1),function(){Y()}},[].concat(Te(b),[u])),{dataSource:w,setDataSource:$,loading:st(r?.loading)==="object"?R(R({},r?.loading),{},{spinning:M}):M,reload:(function(){var Z=en(ut().mark(function re(){return ut().wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return Y(),se.abrupt("return",X.run(!1));case 2:case"end":return se.stop()}},re)}));function ee(){return Z.apply(this,arguments)}return ee})(),pageInfo:D,pollingLoading:k,reset:(function(){var Z=en(ut().mark(function re(){var ne,se,oe,me,ue,de,ae,ie;return ut().wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:ne=r||{},se=ne.pageInfo,oe=se||{},me=oe.defaultCurrent,ue=me===void 0?1:me,de=oe.defaultPageSize,ae=de===void 0?20:de,ie={current:ue,total:0,pageSize:ae},_(ie);case 4:case"end":return pe.stop()}},re)}));function ee(){return Z.apply(this,arguments)}return ee})(),setPageInfo:(function(){var Z=en(ut().mark(function re(ne){return ut().wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:_(R(R({},D),ne));case 1:case"end":return oe.stop()}},re)}));function ee(re){return Z.apply(this,arguments)}return ee})()}},vje=function(t){return function(n,r){var a,o,i=n.fixed,l=n.index,c=r.fixed,u=r.index;if(i==="left"&&c!=="left"||c==="right"&&i!=="right")return-2;if(c==="left"&&i!=="left"||i==="right"&&c!=="right")return 2;var d=n.key||"".concat(l),f=r.key||"".concat(u);if((a=t[d])!==null&&a!==void 0&&a.order||(o=t[f])!==null&&o!==void 0&&o.order){var m,g;return(((m=t[d])===null||m===void 0?void 0:m.order)||0)-(((g=t[f])===null||g===void 0?void 0:g.order)||0)}return(n.index||0)-(r.index||0)}},mje=["children"],gje=["",null,void 0],G7=function(){for(var t=arguments.length,n=new Array(t),r=0;rse.length?(se.push(Y),se):(se.splice(l?.current*l?.pageSize-1,0,Y),se)}return[].concat(Te(a.dataSource),[Y])},L=function(){return R(R({},O),{},{size:u,rowSelection:c===!1?void 0:c,className:n,style:d,columns:N,loading:a.loading,dataSource:P.newLineRecord?D(a.dataSource):a.dataSource,pagination:l,onChange:function(G,X,Y,Z){var ee;if((ee=O.onChange)===null||ee===void 0||ee.call(O,G,X,Y,Z),C(Tr(X)),Array.isArray(Y)){var re,ne=Y.reduce(function(de,ae){return R(R({},de),{},q({},"".concat(ae.field),ae.order))},{});S((re=Tr(ne))!==null&&re!==void 0?re:{})}else{var se,oe,me=(se=Y.column)===null||se===void 0?void 0:se.sorter,ue=me?.toString()===me;S((oe=Tr(q({},"".concat(ue?me:Y.field),Y.order)))!==null&&oe!==void 0?oe:{})}}})},_=s.useMemo(function(){return e.search===!1&&!e.headerTitle&&e.toolBarRender===!1},[]),F=U.jsx(e3.Provider,{value:{grid:!1,colProps:void 0,rowProps:void 0},children:U.jsx(qa,R(R({},L()),{},{rowKey:t}))}),j=e.tableViewRender?e.tableViewRender(R(R({},L()),{},{rowSelection:c!==!1?c:void 0}),F):F,k=s.useMemo(function(){if(e.editable&&!e.name){var K,W,G;return U.jsxs(U.Fragment,{children:[f,p,s.createElement(_a,R(R({},(K=e.editable)===null||K===void 0?void 0:K.formProps),{},{formRef:(W=e.editable)===null||W===void 0||(W=W.formProps)===null||W===void 0?void 0:W.formRef,component:!1,form:(G=e.editable)===null||G===void 0?void 0:G.form,onValuesChange:P.onValuesChange,key:"table",submitter:!1,omitNil:!1,dateFormatter:e.dateFormatter}),j)]})}return U.jsxs(U.Fragment,{children:[f,p,j]})},[p,e.loading,!!e.editable,j,f]),z=s.useMemo(function(){return b===!1||_===!0||e.name?{}:m?{padding:0}:f?{paddingBlockStart:0}:f&&l===!1?{paddingBlockStart:0}:{padding:0}},[_,l,e.name,b,f,m]),V=b===!1||_===!0||e.name?k:U.jsx(Bv,R(R({ghost:e.ghost,bordered:GH("table",E),bodyStyle:z},b),{},{children:k})),H=function(){return e.tableRender?e.tableRender(e,V,{toolbar:f||void 0,alert:p||void 0,table:j||void 0}):V},B=U.jsxs("div",{className:le($,q({},"".concat(r,"-polling"),a.pollingLoading)),style:h,ref:T.rootDomRef,children:[w?null:g,i!=="form"&&e.tableExtraRender&&U.jsx("div",{className:le($,"".concat(r,"-extra")),children:e.tableExtraRender(e,a.dataSource||[])}),i!=="form"&&H()]});return!x||!(x!=null&&x.fullScreen)?B:U.jsx(At,{getPopupContainer:function(){return T.rootDomRef.current||document.body},children:B})}var $je={},Eje=function(t){var n;t.cardBordered;var r=t.request,a=t.className,o=t.params,i=o===void 0?$je:o,l=t.defaultData,c=t.headerTitle,u=t.postData,d=t.ghost,f=t.pagination,m=t.actionRef,g=t.columns,h=g===void 0?[]:g,b=t.toolBarRender,p=t.optionsRender,S=t.onLoad,C=t.onRequestError;t.style,t.cardProps,t.tableStyle,t.tableClassName,t.columnsStateMap,t.onColumnsStateChange;var x=t.options,w=t.search,$=t.name,E=t.onLoadingChange,P=t.rowSelection,M=P===void 0?!1:P,O=t.beforeSearchSubmit,T=t.tableAlertRender,N=t.defaultClassName,D=t.formRef,L=t.type,_=L===void 0?"table":L,F=t.columnEmptyText,j=F===void 0?"-":F,k=t.toolbar,z=t.rowKey,V=t.manualRequest,H=t.polling,B=t.tooltip,K=t.revalidateOnFocus,W=K===void 0?!1:K,G=t.searchFormRender,X=Ue(t,xje),Y=cje(t.defaultClassName),Z=Y.wrapSSR,ee=Y.hashId,re=le(N,a,ee),ne=s.useRef(),se=s.useRef(),oe=D||se;s.useImperativeHandle(m,function(){return ne.current});var me=Tt(M?M?.defaultSelectedRowKeys||[]:void 0,{value:M?M.selectedRowKeys:void 0}),ue=fe(me,2),de=ue[0],ae=ue[1],ie=Tt(function(){if(!(V||w!==!1))return{}}),ge=fe(ie,2),pe=ge[0],be=ge[1],ve=Tt({}),Ce=fe(ve,2),he=Ce[0],Se=Ce[1],Ee=Tt({}),Oe=fe(Ee,2),We=Oe[0],je=Oe[1],De=s.useCallback(function(Pe){for(var He=[],Ze=0;Ze0){var Pe=tt.map(function(He){return vd(He.key,He.index)});Me.setSortKeyColumns(Pe)}},[tt],["render","renderFormItem"],100),Vp(function(){var Pe=$e.pageInfo,He=f||{},Ze=He.current,at=Ze===void 0?Pe?.current:Ze,Nt=He.pageSize,pt=Nt===void 0?Pe?.pageSize:Nt;f&&(at||pt)&&(pt!==Pe?.pageSize||at!==Pe?.current)&&$e.setPageInfo({pageSize:pt||Pe.pageSize,current:at||Pe.current})},[f&&f.pageSize,f&&f.current]);var rt=R(R({selectedRowKeys:de},M),{},{onChange:function(He,Ze,at){M&&M.onChange&&M.onChange(He,Ze,at),ae(He)}}),ct=w!==!1&&w?.filterType==="light",Ct=s.useCallback(function(Pe){if(x&&x.search){var He,Ze,at=x.search===!0?{}:x.search,Nt=at.name,pt=Nt===void 0?"keyword":Nt,mt=(He=x.search)===null||He===void 0||(Ze=He.onSearch)===null||Ze===void 0?void 0:Ze.call(He,Me.keyWords);if(mt!==!1){be(R(R({},Pe),{},q({},pt,Me.keyWords)));return}}be(Pe)},[Me.keyWords,x,be]),yt=s.useMemo(function(){if(st($e.loading)==="object"){var Pe;return((Pe=$e.loading)===null||Pe===void 0?void 0:Pe.spinning)||!1}return $e.loading},[$e.loading]),dt=s.useMemo(function(){var Pe=w===!1&&_!=="form"?null:U.jsx(z7e,{pagination:Fe,beforeSearchSubmit:O,action:ne,columns:h,onFormSearchSubmit:function(Ze){Ct(Ze)},ghost:d,onReset:t.onReset,onSubmit:t.onSubmit,loading:!!yt,manualRequest:V,search:w,form:t.form,formRef:oe,type:t.type||"table",cardBordered:t.cardBordered,dateFormatter:t.dateFormatter});return G&&Pe?U.jsx(U.Fragment,{children:G(t,Pe)}):Pe},[O,oe,d,yt,V,Ct,Fe,t,h,w,G,_]),vt=s.useMemo(function(){return de?.map(function(Pe){var He;return(He=we.current)===null||He===void 0?void 0:He.get(Pe)})},[$e.dataSource,de]),bt=s.useMemo(function(){return x===!1&&!c&&!b&&!k&&!ct},[x,c,b,k,ct]),ze=b===!1?null:U.jsx(ije,{headerTitle:c,hideToolbar:bt,selectedRows:vt,selectedRowKeys:de,tableColumn:tt,tooltip:B,toolbar:k,onFormSearchSubmit:function(He){be(R(R({},pe),He))},searchNode:ct?dt:null,options:x,optionsRender:p,actionRef:ne,toolBarRender:b}),Ve=M!==!1?U.jsx(_7e,{selectedRowKeys:de,selectedRows:vt,onCleanSelected:Ge,alertOptionRender:X.tableAlertOptionRender,alertInfoRender:T,alwaysShowAlert:M?.alwaysShowAlert}):null;return Z(U.jsx(wje,R(R({},t),{},{name:$,defaultClassName:N,size:Me.tableSize,onSizeChange:Me.setTableSize,pagination:Fe,searchNode:dt,rowSelection:M!==!1?rt:void 0,className:re,tableColumn:tt,isLightFilter:ct,action:$e,alertDom:Ve,toolbarDom:ze,hideToolbar:bt,onSortChange:function(He){_e||He===We||je(He)},onFilterChange:function(He){ke||He===he||Se(He)},editableUtils:et,getRowKey:Ie})))},ZH=function(t){var n=s.useContext(At.ConfigContext),r=n.getPrefixCls,a=t.ErrorBoundary===!1?Q.Fragment:t.ErrorBoundary||mB;return U.jsx(I7e,{initValue:t,children:U.jsx(y0,{needDeps:!0,children:U.jsx(a,{children:U.jsx(Eje,R({defaultClassName:"".concat(r("pro-table"))},t))})})})};ZH.Summary=qa.Summary;function Pje(){for(var e=arguments.length,t=new Array(e),n=0;nr=>{t.forEach(a=>a(r))},t)}const B0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function md(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function C3(e){return"nodeType"in e}function Xa(e){var t,n;return e?md(e)?e:C3(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function S3(e){const{Document:t}=Xa(e);return e instanceof t}function Xv(e){return md(e)?!1:e instanceof Xa(e).HTMLElement}function JH(e){return e instanceof Xa(e).SVGElement}function gd(e){return e?md(e)?e.document:C3(e)?S3(e)?e:Xv(e)||JH(e)?e.ownerDocument:document:document:document}const Mi=B0?s.useLayoutEffect:s.useEffect;function x3(e){const t=s.useRef(e);return Mi(()=>{t.current=e}),s.useCallback(function(){for(var n=arguments.length,r=new Array(n),a=0;a{e.current=setInterval(r,a)},[]),n=s.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function iv(e,t){t===void 0&&(t=[e]);const n=s.useRef(e);return Mi(()=>{n.current!==e&&(n.current=e)},t),n}function Yv(e,t){const n=s.useRef();return s.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function rh(e){const t=x3(e),n=s.useRef(null),r=s.useCallback(a=>{a!==n.current&&t?.(a,n.current),n.current=a},[]);return[n,r]}function B$(e){const t=s.useRef();return s.useEffect(()=>{t.current=e},[e]),t.current}let R2={};function Qv(e,t){return s.useMemo(()=>{if(t)return t;const n=R2[e]==null?0:R2[e]+1;return R2[e]=n,e+"-"+n},[e,t])}function eV(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a{const l=Object.entries(i);for(const[c,u]of l){const d=o[c];d!=null&&(o[c]=d+e*u)}return o},{...t})}}const hu=eV(1),ah=eV(-1);function Rje(e){return"clientX"in e&&"clientY"in e}function w3(e){if(!e)return!1;const{KeyboardEvent:t}=Xa(e.target);return t&&e instanceof t}function Ije(e){if(!e)return!1;const{TouchEvent:t}=Xa(e.target);return t&&e instanceof t}function H$(e){if(Ije(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return Rje(e)?{x:e.clientX,y:e.clientY}:null}const lv=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[lv.Translate.toString(e),lv.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),X7="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Mje(e){return e.matches(X7)?e:e.querySelector(X7)}const Tje={display:"none"};function Nje(e){let{id:t,value:n}=e;return Q.createElement("div",{id:t,style:Tje},n)}function _je(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const a={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return Q.createElement("div",{id:t,style:a,role:"status","aria-live":r,"aria-atomic":!0},n)}function jje(){const[e,t]=s.useState("");return{announce:s.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const tV=s.createContext(null);function Dje(e){const t=s.useContext(tV);s.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of ");return t(e)},[e,t])}function Fje(){const[e]=s.useState(()=>new Set),t=s.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[s.useCallback(r=>{let{type:a,event:o}=r;e.forEach(i=>{var l;return(l=i[a])==null?void 0:l.call(i,o)})},[e]),t]}const kje={draggable:` - To pick up a draggable item, press the space bar. - While dragging, use the arrow keys to move the item. - Press space again to drop the item in its new position, or press escape to cancel. - `},Lje={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function zje(e){let{announcements:t=Lje,container:n,hiddenTextDescribedById:r,screenReaderInstructions:a=kje}=e;const{announce:o,announcement:i}=jje(),l=Qv("DndLiveRegion"),[c,u]=s.useState(!1);if(s.useEffect(()=>{u(!0)},[]),Dje(s.useMemo(()=>({onDragStart(f){let{active:m}=f;o(t.onDragStart({active:m}))},onDragMove(f){let{active:m,over:g}=f;t.onDragMove&&o(t.onDragMove({active:m,over:g}))},onDragOver(f){let{active:m,over:g}=f;o(t.onDragOver({active:m,over:g}))},onDragEnd(f){let{active:m,over:g}=f;o(t.onDragEnd({active:m,over:g}))},onDragCancel(f){let{active:m,over:g}=f;o(t.onDragCancel({active:m,over:g}))}}),[o,t])),!c)return null;const d=Q.createElement(Q.Fragment,null,Q.createElement(Nje,{id:r,value:a.draggable}),Q.createElement(_je,{id:l,announcement:i}));return n?kr.createPortal(d,n):d}var qr;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(qr||(qr={}));function oh(){}function Y7(e,t){return s.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function Aje(){for(var e=arguments.length,t=new Array(e),n=0;n[...t].filter(r=>r!=null),[...t])}const ci=Object.freeze({x:0,y:0});function Bje(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Hje(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function Vje(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function Wje(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function Q7(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const kke=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const a=Q7(t,t.left,t.top),o=[];for(const i of r){const{id:l}=i,c=n.get(l);if(c){const u=Bje(Q7(c),a);o.push({id:l,data:{droppableContainer:i,value:u}})}}return o.sort(Hje)};function Kje(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),a=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),i=a-r,l=o-n;if(r{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const a=[];for(const o of r){const{id:i}=o,l=n.get(i);if(l){const c=Kje(l,t);c>0&&a.push({id:i,data:{droppableContainer:o,value:c}})}}return a.sort(Vje)};function qje(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function rV(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:ci}function Uje(e){return function(n){for(var r=arguments.length,a=new Array(r>1?r-1:0),o=1;o({...i,top:i.top+e*l.y,bottom:i.bottom+e*l.y,left:i.left+e*l.x,right:i.right+e*l.x}),{...n})}}const Gje=Uje(1);function Xje(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function Yje(e,t,n){const r=Xje(t);if(!r)return e;const{scaleX:a,scaleY:o,x:i,y:l}=r,c=e.left-i-(1-a)*parseFloat(n),u=e.top-l-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),d=a?e.width/a:e.width,f=o?e.height/o:e.height;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c}}const Qje={ignoreTransform:!1};function pd(e,t){t===void 0&&(t=Qje);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:u,transformOrigin:d}=Xa(e).getComputedStyle(e);u&&(n=Yje(n,u,d))}const{top:r,left:a,width:o,height:i,bottom:l,right:c}=n;return{top:r,left:a,width:o,height:i,bottom:l,right:c}}function Z7(e){return pd(e,{ignoreTransform:!0})}function Zje(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function Jje(e,t){return t===void 0&&(t=Xa(e).getComputedStyle(e)),t.position==="fixed"}function eDe(e,t){t===void 0&&(t=Xa(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(a=>{const o=t[a];return typeof o=="string"?n.test(o):!1})}function $3(e,t){const n=[];function r(a){if(t!=null&&n.length>=t||!a)return n;if(S3(a)&&a.scrollingElement!=null&&!n.includes(a.scrollingElement))return n.push(a.scrollingElement),n;if(!Xv(a)||JH(a)||n.includes(a))return n;const o=Xa(e).getComputedStyle(a);return a!==e&&eDe(a,o)&&n.push(a),Jje(a,o)?n:r(a.parentNode)}return e?r(e):n}function aV(e){const[t]=$3(e,1);return t??null}function I2(e){return!B0||!e?null:md(e)?e:C3(e)?S3(e)||e===gd(e).scrollingElement?window:Xv(e)?e:null:null}function oV(e){return md(e)?e.scrollX:e.scrollLeft}function iV(e){return md(e)?e.scrollY:e.scrollTop}function V$(e){return{x:oV(e),y:iV(e)}}var na;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(na||(na={}));function lV(e){return!B0||!e?!1:e===document.scrollingElement}function sV(e){const t={x:0,y:0},n=lV(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},a=e.scrollTop<=t.y,o=e.scrollLeft<=t.x,i=e.scrollTop>=r.y,l=e.scrollLeft>=r.x;return{isTop:a,isLeft:o,isBottom:i,isRight:l,maxScroll:r,minScroll:t}}const tDe={x:.2,y:.2};function nDe(e,t,n,r,a){let{top:o,left:i,right:l,bottom:c}=n;r===void 0&&(r=10),a===void 0&&(a=tDe);const{isTop:u,isBottom:d,isLeft:f,isRight:m}=sV(e),g={x:0,y:0},h={x:0,y:0},b={height:t.height*a.y,width:t.width*a.x};return!u&&o<=t.top+b.height?(g.y=na.Backward,h.y=r*Math.abs((t.top+b.height-o)/b.height)):!d&&c>=t.bottom-b.height&&(g.y=na.Forward,h.y=r*Math.abs((t.bottom-b.height-c)/b.height)),!m&&l>=t.right-b.width?(g.x=na.Forward,h.x=r*Math.abs((t.right-b.width-l)/b.width)):!f&&i<=t.left+b.width&&(g.x=na.Backward,h.x=r*Math.abs((t.left+b.width-i)/b.width)),{direction:g,speed:h}}function rDe(e){if(e===document.scrollingElement){const{innerWidth:o,innerHeight:i}=window;return{top:0,left:0,right:o,bottom:i,width:o,height:i}}const{top:t,left:n,right:r,bottom:a}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:a,width:e.clientWidth,height:e.clientHeight}}function cV(e){return e.reduce((t,n)=>hu(t,V$(n)),ci)}function aDe(e){return e.reduce((t,n)=>t+oV(n),0)}function oDe(e){return e.reduce((t,n)=>t+iV(n),0)}function iDe(e,t){if(t===void 0&&(t=pd),!e)return;const{top:n,left:r,bottom:a,right:o}=t(e);aV(e)&&(a<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const lDe=[["x",["left","right"],aDe],["y",["top","bottom"],oDe]];class E3{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=$3(n),a=cV(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[o,i,l]of lDe)for(const c of i)Object.defineProperty(this,c,{get:()=>{const u=l(r),d=a[o]-u;return this.rect[c]+d},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class If{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var a;(a=this.target)==null||a.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function sDe(e){const{EventTarget:t}=Xa(e);return e instanceof t?e:gd(e)}function M2(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var Ro;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Ro||(Ro={}));function J7(e){e.preventDefault()}function cDe(e){e.stopPropagation()}var qn;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(qn||(qn={}));const uV={start:[qn.Space,qn.Enter],cancel:[qn.Esc],end:[qn.Space,qn.Enter,qn.Tab]},uDe=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case qn.Right:return{...n,x:n.x+25};case qn.Left:return{...n,x:n.x-25};case qn.Down:return{...n,y:n.y+25};case qn.Up:return{...n,y:n.y-25}}};class dV{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new If(gd(n)),this.windowListeners=new If(Xa(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Ro.Resize,this.handleCancel),this.windowListeners.add(Ro.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Ro.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&iDe(r),n(ci)}handleKeyDown(t){if(w3(t)){const{active:n,context:r,options:a}=this.props,{keyboardCodes:o=uV,coordinateGetter:i=uDe,scrollBehavior:l="smooth"}=a,{code:c}=t;if(o.end.includes(c)){this.handleEnd(t);return}if(o.cancel.includes(c)){this.handleCancel(t);return}const{collisionRect:u}=r.current,d=u?{x:u.left,y:u.top}:ci;this.referenceCoordinates||(this.referenceCoordinates=d);const f=i(t,{active:n,context:r.current,currentCoordinates:d});if(f){const m=ah(f,d),g={x:0,y:0},{scrollableAncestors:h}=r.current;for(const b of h){const p=t.code,{isTop:S,isRight:C,isLeft:x,isBottom:w,maxScroll:$,minScroll:E}=sV(b),P=rDe(b),M={x:Math.min(p===qn.Right?P.right-P.width/2:P.right,Math.max(p===qn.Right?P.left:P.left+P.width/2,f.x)),y:Math.min(p===qn.Down?P.bottom-P.height/2:P.bottom,Math.max(p===qn.Down?P.top:P.top+P.height/2,f.y))},O=p===qn.Right&&!C||p===qn.Left&&!x,T=p===qn.Down&&!w||p===qn.Up&&!S;if(O&&M.x!==f.x){const N=b.scrollLeft+m.x,D=p===qn.Right&&N<=$.x||p===qn.Left&&N>=E.x;if(D&&!m.y){b.scrollTo({left:N,behavior:l});return}D?g.x=b.scrollLeft-N:g.x=p===qn.Right?b.scrollLeft-$.x:b.scrollLeft-E.x,g.x&&b.scrollBy({left:-g.x,behavior:l});break}else if(T&&M.y!==f.y){const N=b.scrollTop+m.y,D=p===qn.Down&&N<=$.y||p===qn.Up&&N>=E.y;if(D&&!m.x){b.scrollTo({top:N,behavior:l});return}D?g.y=b.scrollTop-N:g.y=p===qn.Down?b.scrollTop-$.y:b.scrollTop-E.y,g.y&&b.scrollBy({top:-g.y,behavior:l});break}}this.handleMove(t,hu(ah(f,this.referenceCoordinates),g))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}dV.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=uV,onActivation:a}=t,{active:o}=n;const{code:i}=e.nativeEvent;if(r.start.includes(i)){const l=o.activatorNode.current;return l&&e.target!==l?!1:(e.preventDefault(),a?.({event:e.nativeEvent}),!0)}return!1}}];function ej(e){return!!(e&&"distance"in e)}function tj(e){return!!(e&&"delay"in e)}class P3{constructor(t,n,r){var a;r===void 0&&(r=sDe(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:o}=t,{target:i}=o;this.props=t,this.events=n,this.document=gd(i),this.documentListeners=new If(this.document),this.listeners=new If(r),this.windowListeners=new If(Xa(i)),this.initialCoordinates=(a=H$(o))!=null?a:ci,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(Ro.Resize,this.handleCancel),this.windowListeners.add(Ro.DragStart,J7),this.windowListeners.add(Ro.VisibilityChange,this.handleCancel),this.windowListeners.add(Ro.ContextMenu,J7),this.documentListeners.add(Ro.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(tj(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(ej(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:r,onPending:a}=this.props;a(r,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(Ro.Click,cDe,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Ro.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:a,props:o}=this,{onMove:i,options:{activationConstraint:l}}=o;if(!a)return;const c=(n=H$(t))!=null?n:ci,u=ah(a,c);if(!r&&l){if(ej(l)){if(l.tolerance!=null&&M2(u,l.tolerance))return this.handleCancel();if(M2(u,l.distance))return this.handleStart()}if(tj(l)&&M2(u,l.tolerance))return this.handleCancel();this.handlePending(l,u);return}t.cancelable&&t.preventDefault(),i(c)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===qn.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const dDe={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class O3 extends P3{constructor(t){const{event:n}=t,r=gd(n.target);super(t,dDe,r)}}O3.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r?.({event:n}),!0)}}];const fDe={move:{name:"mousemove"},end:{name:"mouseup"}};var W$;(function(e){e[e.RightClick=2]="RightClick"})(W$||(W$={}));class fV extends P3{constructor(t){super(t,fDe,gd(t.event.target))}}fV.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===W$.RightClick?!1:(r?.({event:n}),!0)}}];const T2={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class vDe extends P3{constructor(t){super(t,T2)}static setup(){return window.addEventListener(T2.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(T2.move.name,t)};function t(){}}}vDe.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:a}=n;return a.length>1?!1:(r?.({event:n}),!0)}}];var Mf;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Mf||(Mf={}));var ih;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(ih||(ih={}));function mDe(e){let{acceleration:t,activator:n=Mf.Pointer,canScroll:r,draggingRect:a,enabled:o,interval:i=5,order:l=ih.TreeOrder,pointerCoordinates:c,scrollableAncestors:u,scrollableAncestorRects:d,delta:f,threshold:m}=e;const g=pDe({delta:f,disabled:!o}),[h,b]=Oje(),p=s.useRef({x:0,y:0}),S=s.useRef({x:0,y:0}),C=s.useMemo(()=>{switch(n){case Mf.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case Mf.DraggableRect:return a}},[n,a,c]),x=s.useRef(null),w=s.useCallback(()=>{const E=x.current;if(!E)return;const P=p.current.x*S.current.x,M=p.current.y*S.current.y;E.scrollBy(P,M)},[]),$=s.useMemo(()=>l===ih.TreeOrder?[...u].reverse():u,[l,u]);s.useEffect(()=>{if(!o||!u.length||!C){b();return}for(const E of $){if(r?.(E)===!1)continue;const P=u.indexOf(E),M=d[P];if(!M)continue;const{direction:O,speed:T}=nDe(E,M,C,t,m);for(const N of["x","y"])g[N][O[N]]||(T[N]=0,O[N]=0);if(T.x>0||T.y>0){b(),x.current=E,h(w,i),p.current=T,S.current=O;return}}p.current={x:0,y:0},S.current={x:0,y:0},b()},[t,w,r,b,o,i,JSON.stringify(C),JSON.stringify(g),h,u,$,d,JSON.stringify(m)])}const gDe={x:{[na.Backward]:!1,[na.Forward]:!1},y:{[na.Backward]:!1,[na.Forward]:!1}};function pDe(e){let{delta:t,disabled:n}=e;const r=B$(t);return Yv(a=>{if(n||!r||!a)return gDe;const o={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[na.Backward]:a.x[na.Backward]||o.x===-1,[na.Forward]:a.x[na.Forward]||o.x===1},y:{[na.Backward]:a.y[na.Backward]||o.y===-1,[na.Forward]:a.y[na.Forward]||o.y===1}}},[n,t,r])}function hDe(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return Yv(a=>{var o;return t==null?null:(o=r??a)!=null?o:null},[r,t])}function bDe(e,t){return s.useMemo(()=>e.reduce((n,r)=>{const{sensor:a}=r,o=a.activators.map(i=>({eventName:i.eventName,handler:t(i.handler,r)}));return[...n,...o]},[]),[e,t])}var sv;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(sv||(sv={}));var K$;(function(e){e.Optimized="optimized"})(K$||(K$={}));const nj=new Map;function yDe(e,t){let{dragging:n,dependencies:r,config:a}=t;const[o,i]=s.useState(null),{frequency:l,measure:c,strategy:u}=a,d=s.useRef(e),f=p(),m=iv(f),g=s.useCallback(function(S){S===void 0&&(S=[]),!m.current&&i(C=>C===null?S:C.concat(S.filter(x=>!C.includes(x))))},[m]),h=s.useRef(null),b=Yv(S=>{if(f&&!n)return nj;if(!S||S===nj||d.current!==e||o!=null){const C=new Map;for(let x of e){if(!x)continue;if(o&&o.length>0&&!o.includes(x.id)&&x.rect.current){C.set(x.id,x.rect.current);continue}const w=x.node.current,$=w?new E3(c(w),w):null;x.rect.current=$,$&&C.set(x.id,$)}return C}return S},[e,o,n,f,c]);return s.useEffect(()=>{d.current=e},[e]),s.useEffect(()=>{f||g()},[n,f]),s.useEffect(()=>{o&&o.length>0&&i(null)},[JSON.stringify(o)]),s.useEffect(()=>{f||typeof l!="number"||h.current!==null||(h.current=setTimeout(()=>{g(),h.current=null},l))},[l,f,g,...r]),{droppableRects:b,measureDroppableContainers:g,measuringScheduled:o!=null};function p(){switch(u){case sv.Always:return!1;case sv.BeforeDragging:return n;default:return!n}}}function vV(e,t){return Yv(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function CDe(e,t){return vV(e,t)}function SDe(e){let{callback:t,disabled:n}=e;const r=x3(t),a=s.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:o}=window;return new o(r)},[r,n]);return s.useEffect(()=>()=>a?.disconnect(),[a]),a}function H0(e){let{callback:t,disabled:n}=e;const r=x3(t),a=s.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:o}=window;return new o(r)},[n]);return s.useEffect(()=>()=>a?.disconnect(),[a]),a}function xDe(e){return new E3(pd(e),e)}function rj(e,t,n){t===void 0&&(t=xDe);const[r,a]=s.useState(null);function o(){a(c=>{if(!e)return null;if(e.isConnected===!1){var u;return(u=c??n)!=null?u:null}const d=t(e);return JSON.stringify(c)===JSON.stringify(d)?c:d})}const i=SDe({callback(c){if(e)for(const u of c){const{type:d,target:f}=u;if(d==="childList"&&f instanceof HTMLElement&&f.contains(e)){o();break}}}}),l=H0({callback:o});return Mi(()=>{o(),e?(l?.observe(e),i?.observe(document.body,{childList:!0,subtree:!0})):(l?.disconnect(),i?.disconnect())},[e]),r}function wDe(e){const t=vV(e);return rV(e,t)}const aj=[];function $De(e){const t=s.useRef(e),n=Yv(r=>e?r&&r!==aj&&e&&t.current&&e.parentNode===t.current.parentNode?r:$3(e):aj,[e]);return s.useEffect(()=>{t.current=e},[e]),n}function EDe(e){const[t,n]=s.useState(null),r=s.useRef(e),a=s.useCallback(o=>{const i=I2(o.target);i&&n(l=>l?(l.set(i,V$(i)),new Map(l)):null)},[]);return s.useEffect(()=>{const o=r.current;if(e!==o){i(o);const l=e.map(c=>{const u=I2(c);return u?(u.addEventListener("scroll",a,{passive:!0}),[u,V$(u)]):null}).filter(c=>c!=null);n(l.length?new Map(l):null),r.current=e}return()=>{i(e),i(o)};function i(l){l.forEach(c=>{const u=I2(c);u?.removeEventListener("scroll",a)})}},[a,e]),s.useMemo(()=>e.length?t?Array.from(t.values()).reduce((o,i)=>hu(o,i),ci):cV(e):ci,[e,t])}function oj(e,t){t===void 0&&(t=[]);const n=s.useRef(null);return s.useEffect(()=>{n.current=null},t),s.useEffect(()=>{const r=e!==ci;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?ah(e,n.current):ci}function PDe(e){s.useEffect(()=>{if(!B0)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n?.()}},e.map(t=>{let{sensor:n}=t;return n}))}function ODe(e,t){return s.useMemo(()=>e.reduce((n,r)=>{let{eventName:a,handler:o}=r;return n[a]=i=>{o(i,t)},n},{}),[e,t])}function mV(e){return s.useMemo(()=>e?Zje(e):null,[e])}const ij=[];function RDe(e,t){t===void 0&&(t=pd);const[n]=e,r=mV(n?Xa(n):null),[a,o]=s.useState(ij);function i(){o(()=>e.length?e.map(c=>lV(c)?r:new E3(t(c),c)):ij)}const l=H0({callback:i});return Mi(()=>{l?.disconnect(),i(),e.forEach(c=>l?.observe(c))},[e]),a}function IDe(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Xv(t)?t:e}function MDe(e){let{measure:t}=e;const[n,r]=s.useState(null),a=s.useCallback(u=>{for(const{target:d}of u)if(Xv(d)){r(f=>{const m=t(d);return f?{...f,width:m.width,height:m.height}:m});break}},[t]),o=H0({callback:a}),i=s.useCallback(u=>{const d=IDe(u);o?.disconnect(),d&&o?.observe(d),r(d?t(d):null)},[t,o]),[l,c]=rh(i);return s.useMemo(()=>({nodeRef:l,rect:n,setRef:c}),[n,l,c])}const TDe=[{sensor:O3,options:{}},{sensor:dV,options:{}}],NDe={current:{}},pp={draggable:{measure:Z7},droppable:{measure:Z7,strategy:sv.WhileDragging,frequency:K$.Optimized},dragOverlay:{measure:pd}};class Tf extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const _De={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Tf,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:oh},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:pp,measureDroppableContainers:oh,windowRect:null,measuringScheduled:!1},jDe={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:oh,draggableNodes:new Map,over:null,measureDroppableContainers:oh},V0=s.createContext(jDe),gV=s.createContext(_De);function DDe(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Tf}}}function FDe(e,t){switch(t.type){case qr.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case qr.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case qr.DragEnd:case qr.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case qr.RegisterDroppable:{const{element:n}=t,{id:r}=n,a=new Tf(e.droppable.containers);return a.set(r,n),{...e,droppable:{...e.droppable,containers:a}}}case qr.SetDroppableDisabled:{const{id:n,key:r,disabled:a}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const i=new Tf(e.droppable.containers);return i.set(n,{...o,disabled:a}),{...e,droppable:{...e.droppable,containers:i}}}case qr.UnregisterDroppable:{const{id:n,key:r}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;const o=new Tf(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function kDe(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:a}=s.useContext(V0),o=B$(r),i=B$(n?.id);return s.useEffect(()=>{if(!t&&!r&&o&&i!=null){if(!w3(o)||document.activeElement===o.target)return;const l=a.get(i);if(!l)return;const{activatorNode:c,node:u}=l;if(!c.current&&!u.current)return;requestAnimationFrame(()=>{for(const d of[c.current,u.current]){if(!d)continue;const f=Mje(d);if(f){f.focus();break}}})}},[r,t,a,i,o]),null}function LDe(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((a,o)=>o({transform:a,...r}),n):n}function zDe(e){return s.useMemo(()=>({draggable:{...pp.draggable,...e?.draggable},droppable:{...pp.droppable,...e?.droppable},dragOverlay:{...pp.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function ADe(e){let{activeNode:t,measure:n,initialRect:r,config:a=!0}=e;const o=s.useRef(!1),{x:i,y:l}=typeof a=="boolean"?{x:a,y:a}:a;Mi(()=>{if(!i&&!l||!t){o.current=!1;return}if(o.current||!r)return;const u=t?.node.current;if(!u||u.isConnected===!1)return;const d=n(u),f=rV(d,r);if(i||(f.x=0),l||(f.y=0),o.current=!0,Math.abs(f.x)>0||Math.abs(f.y)>0){const m=aV(u);m&&m.scrollBy({top:f.y,left:f.x})}},[t,i,l,r,n])}const pV=s.createContext({...ci,scaleX:1,scaleY:1});var Al;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Al||(Al={}));const BDe=s.memo(function(t){var n,r,a,o;let{id:i,accessibility:l,autoScroll:c=!0,children:u,sensors:d=TDe,collisionDetection:f=nV,measuring:m,modifiers:g,...h}=t;const b=s.useReducer(FDe,void 0,DDe),[p,S]=b,[C,x]=Fje(),[w,$]=s.useState(Al.Uninitialized),E=w===Al.Initialized,{draggable:{active:P,nodes:M,translate:O},droppable:{containers:T}}=p,N=P!=null?M.get(P):null,D=s.useRef({initial:null,translated:null}),L=s.useMemo(()=>{var Ke;return P!=null?{id:P,data:(Ke=N?.data)!=null?Ke:NDe,rect:D}:null},[P,N]),_=s.useRef(null),[F,j]=s.useState(null),[k,z]=s.useState(null),V=iv(h,Object.values(h)),H=Qv("DndDescribedBy",i),B=s.useMemo(()=>T.getEnabled(),[T]),K=zDe(m),{droppableRects:W,measureDroppableContainers:G,measuringScheduled:X}=yDe(B,{dragging:E,dependencies:[O.x,O.y],config:K.droppable}),Y=hDe(M,P),Z=s.useMemo(()=>k?H$(k):null,[k]),ee=et(),re=CDe(Y,K.draggable.measure);ADe({activeNode:P!=null?M.get(P):null,config:ee.layoutShiftCompensation,initialRect:re,measure:K.draggable.measure});const ne=rj(Y,K.draggable.measure,re),se=rj(Y?Y.parentElement:null),oe=s.useRef({activatorEvent:null,active:null,activeNode:Y,collisionRect:null,collisions:null,droppableRects:W,draggableNodes:M,draggingNode:null,draggingNodeRect:null,droppableContainers:T,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),me=T.getNodeFor((n=oe.current.over)==null?void 0:n.id),ue=MDe({measure:K.dragOverlay.measure}),de=(r=ue.nodeRef.current)!=null?r:Y,ae=E?(a=ue.rect)!=null?a:ne:null,ie=!!(ue.nodeRef.current&&ue.rect),ge=wDe(ie?null:ne),pe=mV(de?Xa(de):null),be=$De(E?me??Y:null),ve=RDe(be),Ce=LDe(g,{transform:{x:O.x-ge.x,y:O.y-ge.y,scaleX:1,scaleY:1},activatorEvent:k,active:L,activeNodeRect:ne,containerNodeRect:se,draggingNodeRect:ae,over:oe.current.over,overlayNodeRect:ue.rect,scrollableAncestors:be,scrollableAncestorRects:ve,windowRect:pe}),he=Z?hu(Z,O):null,Se=EDe(be),Ee=oj(Se),Oe=oj(Se,[ne]),We=hu(Ce,Ee),je=ae?Gje(ae,Ce):null,De=L&&je?f({active:L,collisionRect:je,droppableRects:W,droppableContainers:B,pointerCoordinates:he}):null,ke=Wje(De,"id"),[_e,Re]=s.useState(null),Le=ie?Ce:hu(Ce,Oe),Me=qje(Le,(o=_e?.rect)!=null?o:null,ne),Be=s.useRef(null),$e=s.useCallback((Ke,Ye)=>{let{sensor:tt,options:rt}=Ye;if(_.current==null)return;const ct=M.get(_.current);if(!ct)return;const Ct=Ke.nativeEvent,yt=new tt({active:_.current,activeNode:ct,event:Ct,options:rt,context:oe,onAbort(vt){if(!M.get(vt))return;const{onDragAbort:ze}=V.current,Ve={id:vt};ze?.(Ve),C({type:"onDragAbort",event:Ve})},onPending(vt,bt,ze,Ve){if(!M.get(vt))return;const{onDragPending:He}=V.current,Ze={id:vt,constraint:bt,initialCoordinates:ze,offset:Ve};He?.(Ze),C({type:"onDragPending",event:Ze})},onStart(vt){const bt=_.current;if(bt==null)return;const ze=M.get(bt);if(!ze)return;const{onDragStart:Ve}=V.current,Pe={activatorEvent:Ct,active:{id:bt,data:ze.data,rect:D}};kr.unstable_batchedUpdates(()=>{Ve?.(Pe),$(Al.Initializing),S({type:qr.DragStart,initialCoordinates:vt,active:bt}),C({type:"onDragStart",event:Pe}),j(Be.current),z(Ct)})},onMove(vt){S({type:qr.DragMove,coordinates:vt})},onEnd:dt(qr.DragEnd),onCancel:dt(qr.DragCancel)});Be.current=yt;function dt(vt){return async function(){const{active:ze,collisions:Ve,over:Pe,scrollAdjustedTranslate:He}=oe.current;let Ze=null;if(ze&&He){const{cancelDrop:at}=V.current;Ze={activatorEvent:Ct,active:ze,collisions:Ve,delta:He,over:Pe},vt===qr.DragEnd&&typeof at=="function"&&await Promise.resolve(at(Ze))&&(vt=qr.DragCancel)}_.current=null,kr.unstable_batchedUpdates(()=>{S({type:vt}),$(Al.Uninitialized),Re(null),j(null),z(null),Be.current=null;const at=vt===qr.DragEnd?"onDragEnd":"onDragCancel";if(Ze){const Nt=V.current[at];Nt?.(Ze),C({type:at,event:Ze})}})}}},[M]),we=s.useCallback((Ke,Ye)=>(tt,rt)=>{const ct=tt.nativeEvent,Ct=M.get(rt);if(_.current!==null||!Ct||ct.dndKit||ct.defaultPrevented)return;const yt={active:Ct};Ke(tt,Ye.options,yt)===!0&&(ct.dndKit={capturedBy:Ye.sensor},_.current=rt,$e(tt,Ye))},[M,$e]),Ie=bDe(d,we);PDe(d),Mi(()=>{ne&&w===Al.Initializing&&$(Al.Initialized)},[ne,w]),s.useEffect(()=>{const{onDragMove:Ke}=V.current,{active:Ye,activatorEvent:tt,collisions:rt,over:ct}=oe.current;if(!Ye||!tt)return;const Ct={active:Ye,activatorEvent:tt,collisions:rt,delta:{x:We.x,y:We.y},over:ct};kr.unstable_batchedUpdates(()=>{Ke?.(Ct),C({type:"onDragMove",event:Ct})})},[We.x,We.y]),s.useEffect(()=>{const{active:Ke,activatorEvent:Ye,collisions:tt,droppableContainers:rt,scrollAdjustedTranslate:ct}=oe.current;if(!Ke||_.current==null||!Ye||!ct)return;const{onDragOver:Ct}=V.current,yt=rt.get(ke),dt=yt&&yt.rect.current?{id:yt.id,rect:yt.rect.current,data:yt.data,disabled:yt.disabled}:null,vt={active:Ke,activatorEvent:Ye,collisions:tt,delta:{x:ct.x,y:ct.y},over:dt};kr.unstable_batchedUpdates(()=>{Re(dt),Ct?.(vt),C({type:"onDragOver",event:vt})})},[ke]),Mi(()=>{oe.current={activatorEvent:k,active:L,activeNode:Y,collisionRect:je,collisions:De,droppableRects:W,draggableNodes:M,draggingNode:de,draggingNodeRect:ae,droppableContainers:T,over:_e,scrollableAncestors:be,scrollAdjustedTranslate:We},D.current={initial:ae,translated:je}},[L,Y,De,je,M,de,ae,W,T,_e,be,We]),mDe({...ee,delta:O,draggingRect:je,pointerCoordinates:he,scrollableAncestors:be,scrollableAncestorRects:ve});const Fe=s.useMemo(()=>({active:L,activeNode:Y,activeNodeRect:ne,activatorEvent:k,collisions:De,containerNodeRect:se,dragOverlay:ue,draggableNodes:M,droppableContainers:T,droppableRects:W,over:_e,measureDroppableContainers:G,scrollableAncestors:be,scrollableAncestorRects:ve,measuringConfiguration:K,measuringScheduled:X,windowRect:pe}),[L,Y,ne,k,De,se,ue,M,T,W,_e,G,be,ve,K,X,pe]),Ge=s.useMemo(()=>({activatorEvent:k,activators:Ie,active:L,activeNodeRect:ne,ariaDescribedById:{draggable:H},dispatch:S,draggableNodes:M,over:_e,measureDroppableContainers:G}),[k,Ie,L,ne,S,H,M,_e,G]);return Q.createElement(tV.Provider,{value:x},Q.createElement(V0.Provider,{value:Ge},Q.createElement(gV.Provider,{value:Fe},Q.createElement(pV.Provider,{value:Me},u)),Q.createElement(kDe,{disabled:l?.restoreFocus===!1})),Q.createElement(zje,{...l,hiddenTextDescribedById:H}));function et(){const Ke=F?.autoScrollEnabled===!1,Ye=typeof c=="object"?c.enabled===!1:c===!1,tt=E&&!Ke&&!Ye;return typeof c=="object"?{...c,enabled:tt}:{enabled:tt}}}),HDe=s.createContext(null),lj="button",VDe="Draggable";function WDe(e){let{id:t,data:n,disabled:r=!1,attributes:a}=e;const o=Qv(VDe),{activators:i,activatorEvent:l,active:c,activeNodeRect:u,ariaDescribedById:d,draggableNodes:f,over:m}=s.useContext(V0),{role:g=lj,roleDescription:h="draggable",tabIndex:b=0}=a??{},p=c?.id===t,S=s.useContext(p?pV:HDe),[C,x]=rh(),[w,$]=rh(),E=ODe(i,t),P=iv(n);Mi(()=>(f.set(t,{id:t,key:o,node:C,activatorNode:w,data:P}),()=>{const O=f.get(t);O&&O.key===o&&f.delete(t)}),[f,t]);const M=s.useMemo(()=>({role:g,tabIndex:b,"aria-disabled":r,"aria-pressed":p&&g===lj?!0:void 0,"aria-roledescription":h,"aria-describedby":d.draggable}),[r,g,b,p,h,d.draggable]);return{active:c,activatorEvent:l,activeNodeRect:u,attributes:M,isDragging:p,listeners:r?void 0:E,node:C,over:m,setNodeRef:x,setActivatorNodeRef:$,transform:S}}function KDe(){return s.useContext(gV)}const qDe="Droppable",UDe={timeout:25};function GDe(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:a}=e;const o=Qv(qDe),{active:i,dispatch:l,over:c,measureDroppableContainers:u}=s.useContext(V0),d=s.useRef({disabled:n}),f=s.useRef(!1),m=s.useRef(null),g=s.useRef(null),{disabled:h,updateMeasurementsFor:b,timeout:p}={...UDe,...a},S=iv(b??r),C=s.useCallback(()=>{if(!f.current){f.current=!0;return}g.current!=null&&clearTimeout(g.current),g.current=setTimeout(()=>{u(Array.isArray(S.current)?S.current:[S.current]),g.current=null},p)},[p]),x=H0({callback:C,disabled:h||!i}),w=s.useCallback((M,O)=>{x&&(O&&(x.unobserve(O),f.current=!1),M&&x.observe(M))},[x]),[$,E]=rh(w),P=iv(t);return s.useEffect(()=>{!x||!$.current||(x.disconnect(),f.current=!1,x.observe($.current))},[$,x]),s.useEffect(()=>(l({type:qr.RegisterDroppable,element:{id:r,key:o,disabled:n,node:$,rect:m,data:P}}),()=>l({type:qr.UnregisterDroppable,key:o,id:r})),[r]),s.useEffect(()=>{n!==d.current.disabled&&(l({type:qr.SetDroppableDisabled,id:r,key:o,disabled:n}),d.current.disabled=n)},[r,o,n,l]),{active:i,rect:m,isOver:c?.id===r,node:$,over:c,setNodeRef:E}}const XDe=e=>{let{transform:t}=e;return{...t,x:0}};function R3(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function YDe(e,t){return e.reduce((n,r,a)=>{const o=t.get(r);return o&&(n[a]=o),n},Array(e.length))}function Fg(e){return e!==null&&e>=0}function QDe(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n{var t;let{rects:n,activeNodeRect:r,activeIndex:a,overIndex:o,index:i}=e;const l=(t=n[a])!=null?t:r;if(!l)return null;const c=JDe(n,i,a);if(i===a){const u=n[o];return u?{x:aa&&i<=o?{x:-l.width-c,y:0,...kg}:i=o?{x:l.width+c,y:0,...kg}:{x:0,y:0,...kg}};function JDe(e,t,n){const r=e[t],a=e[t-1],o=e[t+1];return!r||!a&&!o?0:n{let{rects:t,activeIndex:n,overIndex:r,index:a}=e;const o=R3(t,r,n),i=t[a],l=o[a];return!l||!i?null:{x:l.left-i.left,y:l.top-i.top,scaleX:l.width/i.width,scaleY:l.height/i.height}},Lg={scaleX:1,scaleY:1},eFe=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:a,rects:o,overIndex:i}=e;const l=(t=o[n])!=null?t:r;if(!l)return null;if(a===n){const u=o[i];return u?{x:0,y:nn&&a<=i?{x:0,y:-l.height-c,...Lg}:a=i?{x:0,y:l.height+c,...Lg}:{x:0,y:0,...Lg}};function tFe(e,t,n){const r=e[t],a=e[t-1],o=e[t+1];return r?nr.map(E=>typeof E=="object"&&"id"in E?E.id:E),[r]),h=i!=null,b=i?g.indexOf(i.id):-1,p=u?g.indexOf(u.id):-1,S=s.useRef(g),C=!QDe(g,S.current),x=p!==-1&&b===-1||C,w=ZDe(o);Mi(()=>{C&&h&&d(g)},[C,g,h,d]),s.useEffect(()=>{S.current=g},[g]);const $=s.useMemo(()=>({activeIndex:b,containerId:f,disabled:w,disableTransforms:x,items:g,overIndex:p,useDragOverlay:m,sortedRects:YDe(g,c),strategy:a}),[b,f,w.draggable,w.droppable,x,g,p,c,m,a]);return Q.createElement(yV.Provider,{value:$},t)}const rFe=e=>{let{id:t,items:n,activeIndex:r,overIndex:a}=e;return R3(n,r,a).indexOf(t)},aFe=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:a,items:o,newIndex:i,previousItems:l,previousContainerId:c,transition:u}=e;return!u||!r||l!==o&&a===i?!1:n?!0:i!==a&&t===c},oFe={duration:200,easing:"ease"},CV="transform",iFe=lv.Transition.toString({property:CV,duration:0,easing:"linear"}),lFe={roleDescription:"sortable"};function sFe(e){let{disabled:t,index:n,node:r,rect:a}=e;const[o,i]=s.useState(null),l=s.useRef(n);return Mi(()=>{if(!t&&n!==l.current&&r.current){const c=a.current;if(c){const u=pd(r.current,{ignoreTransform:!0}),d={x:c.left-u.left,y:c.top-u.top,scaleX:c.width/u.width,scaleY:c.height/u.height};(d.x||d.y)&&i(d)}}n!==l.current&&(l.current=n)},[t,n,r,a]),s.useEffect(()=>{o&&i(null)},[o]),o}function cFe(e){let{animateLayoutChanges:t=aFe,attributes:n,disabled:r,data:a,getNewIndex:o=rFe,id:i,strategy:l,resizeObserverConfig:c,transition:u=oFe}=e;const{items:d,containerId:f,activeIndex:m,disabled:g,disableTransforms:h,sortedRects:b,overIndex:p,useDragOverlay:S,strategy:C}=s.useContext(yV),x=uFe(r,g),w=d.indexOf(i),$=s.useMemo(()=>({sortable:{containerId:f,index:w,items:d},...a}),[f,a,w,d]),E=s.useMemo(()=>d.slice(d.indexOf(i)),[d,i]),{rect:P,node:M,isOver:O,setNodeRef:T}=GDe({id:i,data:$,disabled:x.droppable,resizeObserverConfig:{updateMeasurementsFor:E,...c}}),{active:N,activatorEvent:D,activeNodeRect:L,attributes:_,setNodeRef:F,listeners:j,isDragging:k,over:z,setActivatorNodeRef:V,transform:H}=WDe({id:i,data:$,attributes:{...lFe,...n},disabled:x.draggable}),B=Pje(T,F),K=!!N,W=K&&!h&&Fg(m)&&Fg(p),G=!S&&k,X=G&&W?H:null,Z=W?X??(l??C)({rects:b,activeNodeRect:L,activeIndex:m,overIndex:p,index:w}):null,ee=Fg(m)&&Fg(p)?o({id:i,items:d,activeIndex:m,overIndex:p}):w,re=N?.id,ne=s.useRef({activeId:re,items:d,newIndex:ee,containerId:f}),se=d!==ne.current.items,oe=t({active:N,containerId:f,isDragging:k,isSorting:K,id:i,index:w,items:d,newIndex:ne.current.newIndex,previousItems:ne.current.items,previousContainerId:ne.current.containerId,transition:u,wasDragging:ne.current.activeId!=null}),me=sFe({disabled:!oe,index:w,node:M,rect:P});return s.useEffect(()=>{K&&ne.current.newIndex!==ee&&(ne.current.newIndex=ee),f!==ne.current.containerId&&(ne.current.containerId=f),d!==ne.current.items&&(ne.current.items=d)},[K,ee,f,d]),s.useEffect(()=>{if(re===ne.current.activeId)return;if(re&&!ne.current.activeId){ne.current.activeId=re;return}const de=setTimeout(()=>{ne.current.activeId=re},50);return()=>clearTimeout(de)},[re]),{active:N,activeIndex:m,attributes:_,data:$,rect:P,index:w,newIndex:ee,items:d,isOver:O,isSorting:K,isDragging:k,listeners:j,node:M,overIndex:p,over:z,setNodeRef:B,setActivatorNodeRef:V,setDroppableNodeRef:T,setDraggableNodeRef:F,transform:me??Z,transition:ue()};function ue(){if(me||se&&ne.current.newIndex===w)return iFe;if(!(G&&!w3(D)||!u)&&(K||oe))return lv.Transition.toString({...u,property:CV})}}function uFe(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e?.draggable)!=null?n:t.draggable,droppable:(r=e?.droppable)!=null?r:t.droppable}}qn.Down,qn.Right,qn.Up,qn.Left;var dFe=["DragHandle","dragSortKey"],fFe=["dragSortKey"],SV=s.createContext({handle:null}),vFe=function(t){var n=cFe({id:t.id}),r=n.attributes,a=n.listeners,o=n.setNodeRef,i=n.transform,l=n.transition,c=R({transform:lv.Transform.toString(i),transition:l},t?.style),u=t.DragHandle,d=t.dragSortKey,f=Ue(t,dFe);if(d){var m=[];return Q.Children.forEach(f.children,function(g,h){if(g.key===d){var b,p;m.push(U.jsx(SV.Provider,{value:{handle:U.jsx(u,R(R({rowData:g==null||(b=g.props)===null||b===void 0?void 0:b.record,index:g==null||(p=g.props)===null||p===void 0?void 0:p.index},a),r))},children:g},g.key||h));return}m.push(g)}),U.jsx("tr",R(R({},f),{},{ref:o,style:c,children:m}))}return U.jsx("tr",R(R(R({},f),{},{ref:o,style:c},r),a))},mFe=Q.memo(function(e){e.dragSortKey;var t=Ue(e,fFe),n=s.useContext(SV),r=n.handle;return r?U.jsx("td",R(R({},t),{},{children:U.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[r," ",t.children]})})):U.jsx("td",R({},t))}),gFe=function(t){return U.jsx("tbody",R({},t))};function pFe(e){var t=e.dataSource,n=t===void 0?[]:t,r=e.onDragSortEnd,a=e.DragHandle,o=e.dragSortKey,i=Aje(Y7(O3),Y7(fV)),l=s.useCallback(function(g){var h,b=g.active,p=g.over;if(p!=null&&(h=p.id)!==null&&h!==void 0&&h.toString()&&b.id!==p?.id){var S=R3(n||[],parseInt(b.id),parseInt(p.id));r?.(parseInt(b.id),parseInt(p.id),S||[])}},[n,r]),c=Mn(function(g){return U.jsx(nFe,{items:n.map(function(h,b){return b?.toString()}),strategy:eFe,children:U.jsx(gFe,R({},g))})}),u=Mn(function(g){var h,b=Object.assign({},(j4(g),g)),p=(h=n.findIndex(function(S){var C;return S[(C=e.rowKey)!==null&&C!==void 0?C:"index"]===b["data-row-key"]}))===null||h===void 0?void 0:h.toString();return U.jsx(vFe,R({id:p,dragSortKey:o,DragHandle:a},b),p)}),d=e.components||{};if(o){var f;d.body=R({wrapper:c,row:u,cell:mFe},((f=e.components)===null||f===void 0?void 0:f.body)||{})}var m=s.useMemo(function(){return function(g){return U.jsx(BDe,{modifiers:[XDe],sensors:i,collisionDetection:nV,onDragEnd:l,children:g.children})}},[l,i]);return{DndContext:m,components:d}}var hFe=function(t){return q({},t.componentCls,{"&-icon":{marginInlineEnd:8,color:t.colorTextSecondary,cursor:"grab !important",padding:4,fontSize:12,borderRadius:t.borderRadius,"&:hover":{color:t.colorText,backgroundColor:t.colorInfoBg}}})};function bFe(e){return Yn("DragSortTable",function(t){var n=R(R({},t),{},{componentCls:".".concat(e)});return[hFe(n)]})}var yFe=["rowKey","dragSortKey","dragSortHandlerRender","onDragSortEnd","onDataSourceChange","defaultData","dataSource","onLoad"],CFe=["rowData","index","className"];function zke(e){var t,n=e.rowKey,r=e.dragSortKey,a=e.dragSortHandlerRender,o=e.onDragSortEnd,i=e.onDataSourceChange,l=e.defaultData,c=e.dataSource,u=e.onLoad,d=Ue(e,yFe),f=s.useContext(At.ConfigContext),m=f.getPrefixCls,g=Tt(function(){return l||[]},{value:c,onChange:i}),h=fe(g,2),b=h[0],p=h[1],S=bFe(m("pro-table-drag")),C=S.wrapSSR,x=S.hashId,w=s.useMemo(function(){return function(O){O.rowData,O.index;var T=O.className,N=Ue(O,CFe),D=U.jsx(xA,R(R({},N),{},{className:"".concat(m("pro-table-drag-icon")," ").concat(T||""," ").concat(x||"").trim()})),L=a?a(O?.rowData,O?.index):D;return U.jsx("div",R(R({},N),{},{children:L}))}},[m]),$=pFe({dataSource:b?.slice(),dragSortKey:r,onDragSortEnd:o,components:e.components,rowKey:n,DragHandle:w}),E=$.components,P=$.DndContext,M=(function(){var O=en(ut().mark(function T(N){return ut().wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return p(N),L.abrupt("return",u?.(N));case 2:case"end":return L.stop()}},T)}));return function(N){return O.apply(this,arguments)}})();return C(U.jsx(ZH,R(R({},d),{},{columns:(t=d.columns)===null||t===void 0?void 0:t.map(function(O){return(O.dataIndex==r||O.key===r)&&(O.render||(O.render=function(){return null})),O}),onLoad:M,rowKey:n,tableViewRender:function(T,N){return U.jsx(P,{children:N})},dataSource:b,components:E,onDataSourceChange:i})))}var SFe=["key","name"],xFe=function(t){var n=t.children,r=t.menus,a=t.onSelect,o=t.className,i=t.style,l=s.useContext(At.ConfigContext),c=l.getPrefixCls,u=c("pro-table-dropdown"),d=C0({onClick:function(m){return a&&a(m.key)},items:r?.map(function(f){return{label:f.name,key:f.key}})});return U.jsx(cs,R(R({},d),{},{className:le(u,o),children:U.jsxs(cr,{style:i,children:[n," ",U.jsx(Ri,{})]})}))},wFe=function(t){var n=t.className,r=t.style,a=t.onSelect,o=t.menus,i=o===void 0?[]:o,l=t.children,c=s.useContext(At.ConfigContext),u=c.getPrefixCls,d=u("pro-table-dropdown"),f=C0({onClick:function(g){a?.(g.key)},items:i.map(function(m){var g=m.key,h=m.name,b=Ue(m,SFe);return R(R({key:g},b),{},{title:b.title,label:h})})});return U.jsx(cs,R(R({},f),{},{className:le(d,n),children:U.jsx("a",{style:r,children:l||U.jsx(qh,{})})}))};wFe.Button=xFe;export{JFe as $,kRe as A,$8e as B,ZOe as C,iH as D,QB as E,S8e as F,dH as G,SOe as H,g3 as I,XB as J,dd as K,Vv as L,FOe as M,rK as N,lh as O,kr as P,J6 as Q,Q as R,U as S,Si as T,fi as U,VFe as V,KFe as W,WFe as X,tke as Y,AFe as Z,eke as _,L6e as a,id as a$,gke as a0,ZFe as a1,LFe as a2,MFe as a3,zFe as a4,xke as a5,ake as a6,qFe as a7,uz as a8,NFe as a9,Cke as aA,dke as aB,cs as aC,Ri as aD,Rke as aE,Ike as aF,EFe as aG,At as aH,xee as aI,E$ as aJ,_a as aK,BH as aL,Tke as aM,J5e as aN,$a as aO,g0 as aP,$Fe as aQ,Ym as aR,Bz as aS,HH as aT,Dke as aU,h3 as aV,pke as aW,rke as aX,li as aY,u0 as aZ,Qr as a_,ike as aa,BFe as ab,YFe as ac,TFe as ad,_Fe as ae,wke as af,uke as ag,HFe as ah,$ke as ai,bke as aj,IFe as ak,QFe as al,Pke as am,Eke as an,nke as ao,u2e as ap,jFe as aq,ki as ar,Mv as as,ec as at,iz as au,cr as av,lke as aw,Jk as ax,fl as ay,tA as az,s3 as b,bTe as b$,tX as b0,R3 as b1,tr as b2,Y7 as b3,Zl as b4,BDe as b5,kke as b6,nFe as b7,Lke as b8,O3 as b9,Fke as bA,ko as bB,oke as bC,u4 as bD,AE as bE,kFe as bF,FFe as bG,z0 as bH,wFe as bI,Fi as bJ,qA as bK,w_e as bL,L4 as bM,a0 as bN,jke as bO,Hs as bP,Pz as bQ,g4 as bR,_ke as bS,Ny as bT,U2 as bU,H2 as bV,wa as bW,lc as bX,ul as bY,yke as bZ,Gv as b_,cFe as ba,lv as bb,tl as bc,K1e as bd,si as be,E4 as bf,Gf as bg,xn as bh,wye as bi,Io as bj,Fr as bk,Oz as bl,i0 as bm,Zz as bn,Ske as bo,qa as bp,ed as bq,RFe as br,Fn as bs,obe as bt,hke as bu,H4 as bv,Oke as bw,GFe as bx,IMe as by,ZH as bz,Lo as c,XFe as c0,Nke as c1,SQ as c2,DFe as c3,so as c4,vke as c5,fke as c6,UCe as c7,Gw as c8,mke as c9,OFe as ca,cke as cb,UFe as cc,Txe as cd,Que as ce,Xme as cf,q9 as cg,zke as ch,ZL as ci,Ofe as cj,ske as ck,n_e as cl,Mke as cm,zu as cn,fc as d,Ai as e,s as f,Lr as g,Oy as h,AOe as i,MOe as j,$Oe as k,COe as l,xOe as m,XOe as n,Hv as o,t3 as p,go as q,BOe as r,nH as s,D0 as t,uH as u,QOe as v,ZB as w,R0 as x,a3 as y,FRe as z}; diff --git a/server/resource/build/assets/asset-api-1abjsV5s.js b/server/resource/build/assets/asset-api-1abjsV5s.js deleted file mode 100644 index 9057b08c9..000000000 --- a/server/resource/build/assets/asset-api-1abjsV5s.js +++ /dev/null @@ -1 +0,0 @@ -var o=Object.defineProperty;var i=(e,a,t)=>a in e?o(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t;var r=(e,a,t)=>i(e,typeof a!="symbol"?a+"":a,t);import{A as p,r as s}from"./index-DQXwuKC5.js";class u extends p{constructor(){super("admin/assets");r(this,"checking",async t=>await s.post(`/${this.group}/checking`,t));r(this,"importAsset",async t=>{const n=new FormData;return n.append("file",t),await s.postForm(`/${this.group}/import`,n)});r(this,"changeOwner",async t=>await s.post(`/${this.group}/change-owner`,t));r(this,"changeGroup",async t=>await s.post(`/${this.group}/change-group`,t));r(this,"changeGateway",async t=>await s.post(`/${this.group}/change-gateway`,t));r(this,"getTags",async()=>await s.get(`/${this.group}/tags`));r(this,"getGroups",async()=>await s.get(`/${this.group}/groups`));r(this,"setGroups",async t=>await s.put(`/${this.group}/groups`,t));r(this,"deleteGroup",async t=>await s.delete(`/${this.group}/groups/${t}`));r(this,"getLogos",async()=>await s.get(`/${this.group}/logos`));r(this,"decrypt",async(t,n)=>await s.get(`/${this.group}/${t}/decrypted?securityToken=${n}`));r(this,"tree",async t=>(t||(t=""),await s.get(`/${this.group}/tree?protocol=${t}`)));r(this,"updateSortPosition",async t=>await s.post(`/${this.group}/sort`,t))}}const h=new u;export{h as a}; diff --git a/server/resource/build/assets/authorised-asset-api-DxGTPNvM.js b/server/resource/build/assets/authorised-asset-api-DxGTPNvM.js deleted file mode 100644 index 20e2eb206..000000000 --- a/server/resource/build/assets/authorised-asset-api-DxGTPNvM.js +++ /dev/null @@ -1 +0,0 @@ -var n=Object.defineProperty;var g=(r,t,a)=>t in r?n(r,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[t]=a;var s=(r,t,a)=>g(r,typeof t!="symbol"?t+"":t,a);import{q as i,r as e}from"./index-DQXwuKC5.js";class d{constructor(){s(this,"group","admin/authorised-asset");s(this,"paging",async t=>{let a=i.stringify(t);return await e.get(`/${this.group}/paging?${a}`)});s(this,"authorisedAssets",async t=>await e.post(`/${this.group}/assets`,t));s(this,"authorisedUsers",async t=>await e.post(`/${this.group}/users`,t));s(this,"authorisedDepartments",async t=>await e.post(`/${this.group}/departments`,t));s(this,"selected",async(t,a,p,u)=>{let o=i.stringify({expect:t,userId:a,userGroupId:p,assetId:u});return await e.get(`/${this.group}/selected?${o}`)});s(this,"deleteById",async t=>{await e.delete(`/${this.group}/${t}`)});s(this,"getById",async t=>await e.get(`/${this.group}/${t}`));s(this,"update",async(t,a)=>{await e.put(`/${this.group}/${t}`,a)});s(this,"post",async t=>{await e.post(`/${this.group}`,t)})}}const c=new d;export{c as a}; diff --git a/server/resource/build/assets/authorised-database-asset-api-u0MMVZQN.js b/server/resource/build/assets/authorised-database-asset-api-u0MMVZQN.js deleted file mode 100644 index 52dbd8bb1..000000000 --- a/server/resource/build/assets/authorised-database-asset-api-u0MMVZQN.js +++ /dev/null @@ -1 +0,0 @@ -var g=Object.defineProperty;var u=(e,t,s)=>t in e?g(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var a=(e,t,s)=>u(e,typeof t!="symbol"?t+"":t,s);import{q as i,r}from"./index-DQXwuKC5.js";class c{constructor(){a(this,"group","admin/authorised-database-assets");a(this,"paging",async t=>{const s=i.stringify(t);return await r.get(`/${this.group}/paging?${s}`)});a(this,"selected",async(t,s,p,n)=>{const o=i.stringify({expect:t,userId:s,departmentId:p,assetId:n});return await r.get(`/${this.group}/selected?${o}`)});a(this,"deleteById",async t=>{await r.delete(`/${this.group}/${t}`)});a(this,"getById",async t=>await r.get(`/${this.group}/${t}`));a(this,"update",async(t,s)=>{await r.put(`/${this.group}/${t}`,s)});a(this,"post",async t=>{await r.post(`/${this.group}`,t)})}}const y=new c;export{y as a}; diff --git a/server/resource/build/assets/authorised-website-api-DLMeAD6d.js b/server/resource/build/assets/authorised-website-api-DLMeAD6d.js deleted file mode 100644 index 73fabe6c5..000000000 --- a/server/resource/build/assets/authorised-website-api-DLMeAD6d.js +++ /dev/null @@ -1 +0,0 @@ -var r=Object.defineProperty;var o=(e,t,i)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var s=(e,t,i)=>o(e,typeof t!="symbol"?t+"":t,i);import{r as a,q as n}from"./index-DQXwuKC5.js";class u{constructor(){s(this,"group","admin/authorised-website");s(this,"paging",async t=>await a.get(`/${this.group}/paging?${n.stringify(t)}`));s(this,"deleteById",async t=>await a.delete(`/${this.group}/${t}`));s(this,"authorise",async t=>await a.post(`/${this.group}`,t))}}const d=new u;export{d as a}; diff --git a/server/resource/build/assets/certificate-api-CCI2Z4Qf.js b/server/resource/build/assets/certificate-api-CCI2Z4Qf.js deleted file mode 100644 index f2fa31f40..000000000 --- a/server/resource/build/assets/certificate-api-CCI2Z4Qf.js +++ /dev/null @@ -1 +0,0 @@ -var i=Object.defineProperty;var n=(t,a,e)=>a in t?i(t,a,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[a]=e;var s=(t,a,e)=>n(t,typeof a!="symbol"?a+"":a,e);import{A as c,r,H as p,I as u,G as d}from"./index-DQXwuKC5.js";class l extends c{constructor(){super("admin/certificates");s(this,"updateAsDefault",async e=>{await r.patch(`/${this.group}/${e}/default`)});s(this,"download",async(e,w)=>{let o=`${p()}/${this.group}/${e}/download?X-Auth-Token=${u()}`;d(o)});s(this,"renew",async e=>await r.post(`/${this.group}/${e}/renew`))}}let m=new l;export{m as c}; diff --git a/server/resource/build/assets/charts-DWBuA5Za.js b/server/resource/build/assets/charts-DWBuA5Za.js deleted file mode 100644 index 13fff1fe9..000000000 --- a/server/resource/build/assets/charts-DWBuA5Za.js +++ /dev/null @@ -1,64 +0,0 @@ -import{g as oe,r as rm,a as nm,b as im,c as am,d as Jh,e as Qh,f as B,h as om,R as S,i as um,j as cm,k as ed,l as lm,m as sm,n as xt,o as fm,p as pm,q as ya,s as hm,t as td,u as dm,v as vm,w as ym,x as Wc,y as mm,z as gm,A as ma,B as rd,C as bm,D as xm,E as wm,F as Om,G as nd,H as Am,I as Sm,J as Pm,K as _m,L as Em,M as Tm}from"./antd-Afm2kNt7.js";function id(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t0?1:-1},Wt=function(t){return Xt(t)&&t.indexOf("%")===t.length-1},R=function(t){return Bm(t)&&!Vr(t)},Lm=function(t){return Y(t)},Ae=function(t){return R(t)||Xt(t)},qm=0,Gr=function(t){var r=++qm;return"".concat(t||"").concat(r)},ke=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!R(t)&&!Xt(t))return n;var a;if(Wt(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return Vr(a)&&(a=n),i&&a>r&&(a=r),a},Pt=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},Fm=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Gm(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Au(e){"@babel/helpers - typeof";return Au=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Au(e)}var Wl={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},dt=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},zl=null,eo=null,Uc=function e(t){if(t===zl&&Array.isArray(eo))return eo;var r=[];return B.Children.forEach(t,function(n){Y(n)||(om.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),eo=r,zl=t,r};function Ge(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return dt(i)}):n=[dt(t)],Uc(e).forEach(function(i){var a=We(i,"type.displayName")||We(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function qe(e,t){var r=Ge(e,t);return r&&r[0]}var Ul=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!R(n)||n<=0||!R(i)||i<=0)},Xm=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],Ym=function(t){return t&&t.type&&Xt(t.type)&&Xm.indexOf(t.type)>=0},Zm=function(t){return t&&Au(t)==="object"&&"clipDot"in t},Jm=function(t,r,n,i){var a,o=(a=Qa?.[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!G(t)&&(i&&o.includes(r)||Um.includes(r))||n&&zc.includes(r)},H=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(B.isValidElement(t)&&(i=t.props),!Kr(i))return null;var a={};return Object.keys(i).forEach(function(o){var u;Jm((u=i)===null||u===void 0?void 0:u[o],o,r,n)&&(a[o]=i[o])}),a},Su=function e(t,r){if(t===r)return!0;var n=B.Children.count(t);if(n!==B.Children.count(r))return!1;if(n===0)return!0;if(n===1)return Hl(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ng(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function _u(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,u=e.title,c=e.desc,l=rg(e,tg),f=i||{width:r,height:n,x:0,y:0},s=J("recharts-surface",a);return S.createElement("svg",Pu({},H(l,!0,"svg"),{className:s,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),S.createElement("title",null,u),S.createElement("desc",null,c),t)}var ig=["children","className"];function Eu(){return Eu=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function og(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var ee=S.forwardRef(function(e,t){var r=e.children,n=e.className,i=ag(e,ig),a=J("recharts-layer",n);return S.createElement("g",Eu({className:a},H(i,!0),{ref:t}),r)}),et=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;aa?0:a+r),n=n>a?a:n,n<0&&(n+=a),a=r>n?0:n-r>>>0,r>>>=0;for(var o=Array(a);++i=a?r:e(r,n,i)}return ro=t,ro}var no,Xl;function od(){if(Xl)return no;Xl=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="\\u200d",u=RegExp("["+o+e+i+a+"]");function c(l){return u.test(l)}return no=c,no}var io,Yl;function lg(){if(Yl)return io;Yl=1;function e(t){return t.split("")}return io=e,io}var ao,Zl;function sg(){if(Zl)return ao;Zl=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="["+e+"]",u="["+i+"]",c="\\ud83c[\\udffb-\\udfff]",l="(?:"+u+"|"+c+")",f="[^"+e+"]",s="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",h="\\u200d",y=l+"?",v="["+a+"]?",d="(?:"+h+"(?:"+[f,s,p].join("|")+")"+v+y+")*",b=v+y+d,x="(?:"+[f+u+"?",u,s,p,o].join("|")+")",w=RegExp(c+"(?="+c+")|"+x+b,"g");function O(m){return m.match(w)||[]}return ao=O,ao}var oo,Jl;function fg(){if(Jl)return oo;Jl=1;var e=lg(),t=od(),r=sg();function n(i){return t(i)?r(i):e(i)}return oo=n,oo}var uo,Ql;function pg(){if(Ql)return uo;Ql=1;var e=cg(),t=od(),r=fg(),n=um();function i(a){return function(o){o=n(o);var u=t(o)?r(o):void 0,c=u?u[0]:o.charAt(0),l=u?e(u,1).join(""):o.slice(1);return c[a]()+l}}return uo=i,uo}var co,es;function hg(){if(es)return co;es=1;var e=pg(),t=e("toUpperCase");return co=t,co}var dg=hg();const ga=oe(dg);function ce(e){return function(){return e}}const ud=Math.cos,bi=Math.sin,tt=Math.sqrt,xi=Math.PI,ba=2*xi,Tu=Math.PI,ju=2*Tu,Lt=1e-6,vg=ju-Lt;function cd(e){this._+=e[0];for(let t=1,r=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return cd;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;iLt)if(!(Math.abs(s*c-l*f)>Lt)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let h=n-o,y=i-u,v=c*c+l*l,d=h*h+y*y,b=Math.sqrt(v),x=Math.sqrt(p),w=a*Math.tan((Tu-Math.acos((v+p-d)/(2*b*x)))/2),O=w/x,m=w/b;Math.abs(O-1)>Lt&&this._append`L${t+O*f},${r+O*s}`,this._append`A${a},${a},0,0,${+(s*h>f*y)},${this._x1=t+m*c},${this._y1=r+m*l}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let u=n*Math.cos(i),c=n*Math.sin(i),l=t+u,f=r+c,s=1^o,p=o?i-a:a-i;this._x1===null?this._append`M${l},${f}`:(Math.abs(this._x1-l)>Lt||Math.abs(this._y1-f)>Lt)&&this._append`L${l},${f}`,n&&(p<0&&(p=p%ju+ju),p>vg?this._append`A${n},${n},0,1,${s},${t-u},${r-c}A${n},${n},0,1,${s},${this._x1=l},${this._y1=f}`:p>Lt&&this._append`A${n},${n},0,${+(p>=Tu)},${s},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function Hc(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new mg(t)}function Kc(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function ld(e){this._context=e}ld.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function xa(e){return new ld(e)}function sd(e){return e[0]}function fd(e){return e[1]}function pd(e,t){var r=ce(!0),n=null,i=xa,a=null,o=Hc(u);e=typeof e=="function"?e:e===void 0?sd:ce(e),t=typeof t=="function"?t:t===void 0?fd:ce(t);function u(c){var l,f=(c=Kc(c)).length,s,p=!1,h;for(n==null&&(a=i(h=o())),l=0;l<=f;++l)!(l=h;--y)u.point(w[y],O[y]);u.lineEnd(),u.areaEnd()}b&&(w[p]=+e(d,p,s),O[p]=+t(d,p,s),u.point(n?+n(d,p,s):w[p],r?+r(d,p,s):O[p]))}if(x)return u=null,x+""||null}function f(){return pd().defined(i).curve(o).context(a)}return l.x=function(s){return arguments.length?(e=typeof s=="function"?s:ce(+s),n=null,l):e},l.x0=function(s){return arguments.length?(e=typeof s=="function"?s:ce(+s),l):e},l.x1=function(s){return arguments.length?(n=s==null?null:typeof s=="function"?s:ce(+s),l):n},l.y=function(s){return arguments.length?(t=typeof s=="function"?s:ce(+s),r=null,l):t},l.y0=function(s){return arguments.length?(t=typeof s=="function"?s:ce(+s),l):t},l.y1=function(s){return arguments.length?(r=s==null?null:typeof s=="function"?s:ce(+s),l):r},l.lineX0=l.lineY0=function(){return f().x(e).y(t)},l.lineY1=function(){return f().x(e).y(r)},l.lineX1=function(){return f().x(n).y(t)},l.defined=function(s){return arguments.length?(i=typeof s=="function"?s:ce(!!s),l):i},l.curve=function(s){return arguments.length?(o=s,a!=null&&(u=o(a)),l):o},l.context=function(s){return arguments.length?(s==null?a=u=null:u=o(a=s),l):a},l}class hd{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function gg(e){return new hd(e,!0)}function bg(e){return new hd(e,!1)}const Vc={draw(e,t){const r=tt(t/xi);e.moveTo(r,0),e.arc(0,0,r,0,ba)}},xg={draw(e,t){const r=tt(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},dd=tt(1/3),wg=dd*2,Og={draw(e,t){const r=tt(t/wg),n=r*dd;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},Ag={draw(e,t){const r=tt(t),n=-r/2;e.rect(n,n,r,r)}},Sg=.8908130915292852,vd=bi(xi/10)/bi(7*xi/10),Pg=bi(ba/10)*vd,_g=-ud(ba/10)*vd,Eg={draw(e,t){const r=tt(t*Sg),n=Pg*r,i=_g*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=ba*a/5,u=ud(o),c=bi(o);e.lineTo(c*r,-u*r),e.lineTo(u*n-c*i,c*n+u*i)}e.closePath()}},lo=tt(3),Tg={draw(e,t){const r=-tt(t/(lo*3));e.moveTo(0,r*2),e.lineTo(-lo*r,-r),e.lineTo(lo*r,-r),e.closePath()}},ze=-.5,Ue=tt(3)/2,$u=1/tt(12),jg=($u/2+1)*3,$g={draw(e,t){const r=tt(t/jg),n=r/2,i=r*$u,a=n,o=r*$u+r,u=-a,c=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,c),e.lineTo(ze*n-Ue*i,Ue*n+ze*i),e.lineTo(ze*a-Ue*o,Ue*a+ze*o),e.lineTo(ze*u-Ue*c,Ue*u+ze*c),e.lineTo(ze*n+Ue*i,ze*i-Ue*n),e.lineTo(ze*a+Ue*o,ze*o-Ue*a),e.lineTo(ze*u+Ue*c,ze*c-Ue*u),e.closePath()}};function Mg(e,t){let r=null,n=Hc(i);e=typeof e=="function"?e:ce(e||Vc),t=typeof t=="function"?t:ce(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:ce(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:ce(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function wi(){}function Oi(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function yd(e){this._context=e}yd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Oi(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Oi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function kg(e){return new yd(e)}function md(e){this._context=e}md.prototype={areaStart:wi,areaEnd:wi,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Oi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ig(e){return new md(e)}function gd(e){this._context=e}gd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Oi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Cg(e){return new gd(e)}function bd(e){this._context=e}bd.prototype={areaStart:wi,areaEnd:wi,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Ng(e){return new bd(e)}function ts(e){return e<0?-1:1}function rs(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),u=(a*i+o*n)/(n+i);return(ts(a)+ts(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function ns(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function so(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,u=(a-n)/3;e._context.bezierCurveTo(n+u,i+u*t,a-u,o-u*r,a,o)}function Ai(e){this._context=e}Ai.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:so(this,this._t0,ns(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,so(this,ns(this,r=rs(this,e,t)),r);break;default:so(this,this._t0,r=rs(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function xd(e){this._context=new wd(e)}(xd.prototype=Object.create(Ai.prototype)).point=function(e,t){Ai.prototype.point.call(this,t,e)};function wd(e){this._context=e}wd.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function Dg(e){return new Ai(e)}function Rg(e){return new xd(e)}function Od(e){this._context=e}Od.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=is(e),i=is(t),a=0,o=1;o=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function Lg(e){return new wa(e,.5)}function qg(e){return new wa(e,0)}function Fg(e){return new wa(e,1)}function xr(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,u=a.length;r=0;)r[t]=t;return r}function Wg(e,t){return e[t]}function zg(e){const t=[];return t.key=e,t}function Ug(){var e=ce([]),t=Mu,r=xr,n=Wg;function i(a){var o=Array.from(e.apply(this,arguments),zg),u,c=o.length,l=-1,f;for(const s of a)for(u=0,++l;u0){for(var r,n,i=0,a=e[0].length,o;i0){for(var r=0,n=e[t[0]],i,a=n.length;r0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Qg(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Ad={symbolCircle:Vc,symbolCross:xg,symbolDiamond:Og,symbolSquare:Ag,symbolStar:Eg,symbolTriangle:Tg,symbolWye:$g},eb=Math.PI/180,tb=function(t){var r="symbol".concat(ga(t));return Ad[r]||Vc},rb=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*eb;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},nb=function(t,r){Ad["symbol".concat(ga(t))]=r},Gc=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,u=o===void 0?"area":o,c=Jg(t,Gg),l=os(os({},c),{},{type:n,size:a,sizeType:u}),f=function(){var d=tb(n),b=Mg().type(d).size(rb(a,u,n));return b()},s=l.className,p=l.cx,h=l.cy,y=H(l,!0);return p===+p&&h===+h&&a===+a?S.createElement("path",ku({},y,{className:J("recharts-symbols",s),transform:"translate(".concat(p,", ").concat(h,")"),d:f()})):null};Gc.registerSymbol=nb;function wr(e){"@babel/helpers - typeof";return wr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wr(e)}function Iu(){return Iu=Object.assign?Object.assign.bind():function(e){for(var t=1;t`);var x=h.inactive?l:h.color;return S.createElement("li",Iu({className:d,style:s,key:"legend-item-".concat(y)},Yt(n.props,h,y)),S.createElement(_u,{width:o,height:o,viewBox:f,style:p},n.renderIcon(h)),S.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},v?v(b,h,y):b))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var u={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return S.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}])})(B.PureComponent);gn(Xc,"displayName","Legend");gn(Xc,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var fo,cs;function _d(){if(cs)return fo;cs=1;function e(t,r,n,i){for(var a=t.length,o=n+(i?1:-1);i?o--:++o-1}return yo=t,yo}var mo,hs;function mb(){if(hs)return mo;hs=1;function e(t,r,n){for(var i=-1,a=t==null?0:t.length;++i=o){var b=l?null:i(c);if(b)return a(b);y=!1,p=n,d=new e}else d=l?[]:v;e:for(;++s=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function kb(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Ib(e){return e.value}function Cb(e,t){if(S.isValidElement(e))return S.cloneElement(e,t);if(typeof e=="function")return S.createElement(e,t);t.ref;var r=Mb(t,Ab);return S.createElement(Xc,r)}var ws=1,yr=(function(e){function t(){var r;Sb(this,t);for(var n=arguments.length,i=new Array(n),a=0;aws||Math.abs(i.height-this.lastBoundingBox.height)>ws)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?ct({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,u=i.verticalAlign,c=i.margin,l=i.chartWidth,f=i.chartHeight,s,p;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var h=this.getBBoxSnapshot();s={left:((l||0)-h.width)/2}}else s=o==="right"?{right:c&&c.right||0}:{left:c&&c.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(u==="middle"){var y=this.getBBoxSnapshot();p={top:((f||0)-y.height)/2}}else p=u==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return ct(ct({},s),p)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,u=i.height,c=i.wrapperStyle,l=i.payloadUniqBy,f=i.payload,s=ct(ct({position:"absolute",width:o||"auto",height:u||"auto"},this.getDefaultPosition(c)),c);return S.createElement("div",{className:"recharts-legend-wrapper",style:s,ref:function(h){n.wrapperNode=h}},Cb(a,ct(ct({},this.props),{},{payload:Ed(f,l,Ib)})))}}],[{key:"getWithHeight",value:function(n,i){var a=ct(ct({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&R(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])})(B.PureComponent);Oa(yr,"displayName","Legend");Oa(yr,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Oo,Os;function Nb(){if(Os)return Oo;Os=1;var e=fm(),t=pm(),r=ya(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return Oo=i,Oo}var Ao,As;function $d(){if(As)return Ao;As=1;var e=hm(),t=Nb();function r(n,i,a,o,u){var c=-1,l=n.length;for(a||(a=t),u||(u=[]);++c0&&a(f)?i>1?r(f,i-1,a,o,u):e(u,f):o||(u[u.length]=f)}return u}return Ao=r,Ao}var So,Ss;function Db(){if(Ss)return So;Ss=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return So=e,So}var Po,Ps;function Rb(){if(Ps)return Po;Ps=1;var e=td();function t(r,n){if(r!==n){var i=r!==void 0,a=r===null,o=r===r,u=e(r),c=n!==void 0,l=n===null,f=n===n,s=e(n);if(!l&&!s&&!u&&r>n||u&&c&&f&&!l&&!s||a&&c&&f||!i&&f||!o)return 1;if(!a&&!u&&!s&&r=l)return f;var s=i[a];return f*(s=="desc"?-1:1)}}return r.index-n.index}return _o=t,_o}var Eo,Es;function Lb(){if(Es)return Eo;Es=1;var e=ym(),t=dm(),r=xt(),n=vm(),i=Db(),a=mm(),o=Bb(),u=Wc(),c=ya();function l(f,s,p){s.length?s=e(s,function(v){return c(v)?function(d){return t(d,v.length===1?v[0]:v)}:v}):s=[u];var h=-1;s=e(s,a(r));var y=n(f,function(v,d,b){var x=e(s,function(w){return w(v)});return{criteria:x,index:++h,value:v}});return i(y,function(v,d){return o(v,d,p)})}return Eo=l,Eo}var To,Ts;function qb(){if(Ts)return To;Ts=1;var e=$d(),t=Lb(),r=gm(),n=ma(),i=r(function(a,o){if(a==null)return[];var u=o.length;return u>1&&n(a,o[0],o[1])?o=[]:u>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),t(a,e(o,1),[])});return To=i,To}var Fb=qb();const Yc=oe(Fb);function bn(e){"@babel/helpers - typeof";return bn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bn(e)}function Du(){return Du=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=t.x),"".concat(en,"-left"),R(r)&&t&&R(t.x)&&r=t.y),"".concat(en,"-top"),R(n)&&t&&R(t.y)&&nv?Math.max(f,c[n]):Math.max(s,c[n])}function r0(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function n0(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,u=e.useTranslate3d,c=e.viewBox,l,f,s;return o.height>0&&o.width>0&&r?(f=Ms({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:c,viewBoxDimension:c.width}),s=Ms({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:c,viewBoxDimension:c.height}),l=r0({translateX:f,translateY:s,useTranslate3d:u})):l=e0,{cssProperties:l,cssClasses:t0({translateX:f,translateY:s,coordinate:r})}}function Ar(e){"@babel/helpers - typeof";return Ar=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ar(e)}function ks(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Is(e){for(var t=1;tCs||Math.abs(n.height-this.state.lastBoundingBox.height)>Cs)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,c=i.animationEasing,l=i.children,f=i.coordinate,s=i.hasPayload,p=i.isAnimationActive,h=i.offset,y=i.position,v=i.reverseDirection,d=i.useTranslate3d,b=i.viewBox,x=i.wrapperStyle,w=n0({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:h,position:y,reverseDirection:v,tooltipBox:this.state.lastBoundingBox,useTranslate3d:d,viewBox:b}),O=w.cssClasses,m=w.cssProperties,g=Is(Is({transition:p&&a?"transform ".concat(u,"ms ").concat(c):void 0},m),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&s?"visible":"hidden",position:"absolute",top:0,left:0},x);return S.createElement("div",{tabIndex:-1,className:O,style:g,ref:function(P){n.wrapperNode=P}},l)}}])})(B.PureComponent),h0=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},tr={isSsr:h0()};function Sr(e){"@babel/helpers - typeof";return Sr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sr(e)}function Ns(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ds(e){for(var t=1;t0;return S.createElement(p0,{allowEscapeViewBox:o,animationDuration:u,animationEasing:c,isAnimationActive:p,active:a,coordinate:f,hasPayload:g,offset:h,position:d,reverseDirection:b,useTranslate3d:x,viewBox:w,wrapperStyle:O},A0(l,Ds(Ds({},this.props),{},{payload:m})))}}])})(B.PureComponent);Zc(lt,"displayName","Tooltip");Zc(lt,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!tr.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});function wn(e){"@babel/helpers - typeof";return wn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wn(e)}function Rs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ai(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&(I=rd(I,v,{trailing:!0,leading:!1}));var k=new ResizeObserver(I),M=m.current.getBoundingClientRect(),C=M.width,N=M.height;return T(C,N),k.observe(m.current),function(){k.disconnect()}},[T,v]);var E=B.useMemo(function(){var I=_.containerWidth,k=_.containerHeight;if(I<0||k<0)return null;et(Wt(o)||Wt(c),`The width(%s) and height(%s) are both fixed numbers, - maybe you don't need to use a ResponsiveContainer.`,o,c),et(!r||r>0,"The aspect(%s) must be greater than zero.",r);var M=Wt(o)?I:o,C=Wt(c)?k:c;r&&r>0&&(M?C=M/r:C&&(M=C*r),p&&C>p&&(C=p)),et(M>0||C>0,`The width(%s) and height(%s) of chart should be greater than 0, - please check the style of container, or the props width(%s) and height(%s), - or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the - height and width.`,M,C,o,c,f,s,r);var N=!Array.isArray(h)&&dt(h.type).endsWith("Chart");return S.Children.map(h,function(L){return S.isValidElement(L)?B.cloneElement(L,ai({width:M,height:C},N?{style:ai({height:"100%",width:"100%",maxHeight:C,maxWidth:M},L.props.style)}:{})):L})},[r,h,c,p,s,f,_,o]);return S.createElement("div",{id:d?"".concat(d):void 0,className:J("recharts-responsive-container",b),style:ai(ai({},O),{},{width:o,height:c,minWidth:f,minHeight:s,maxHeight:p}),ref:m},E)}),Jc=function(t){return null};Jc.displayName="Cell";function On(e){"@babel/helpers - typeof";return On=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},On(e)}function Ls(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qu(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||tr.isSsr)return{width:0,height:0};var n=R0(r),i=JSON.stringify({text:t,copyStyle:n});if(ur.widthCache[i])return ur.widthCache[i];try{var a=document.getElementById(qs);a||(a=document.createElement("span"),a.setAttribute("id",qs),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=qu(qu({},D0),n);Object.assign(a.style,o),a.textContent="".concat(t);var u=a.getBoundingClientRect(),c={width:u.width,height:u.height};return ur.widthCache[i]=c,++ur.cacheCount>N0&&(ur.cacheCount=0,ur.widthCache={}),c}catch{return{width:0,height:0}}},B0=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function An(e){"@babel/helpers - typeof";return An=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},An(e)}function Ti(e,t){return W0(e)||F0(e,t)||q0(e,t)||L0()}function L0(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function q0(e,t){if(e){if(typeof e=="string")return Fs(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Fs(e,t)}}function Fs(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function rx(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Vs(e,t){return ox(e)||ax(e,t)||ix(e,t)||nx()}function nx(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ix(e,t){if(e){if(typeof e=="string")return Gs(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Gs(e,t)}}function Gs(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&arguments[0]!==void 0?arguments[0]:[];return M.reduce(function(C,N){var L=N.word,q=N.width,U=C[C.length-1];if(U&&(i==null||a||U.width+q+nN.width?C:N})};if(!f)return h;for(var v="…",d=function(M){var C=s.slice(0,M),N=Bd({breakAll:l,style:c,children:C+v}).wordsWithComputedWidth,L=p(N),q=L.length>o||y(L).width>Number(i);return[q,L]},b=0,x=s.length-1,w=0,O;b<=x&&w<=s.length-1;){var m=Math.floor((b+x)/2),g=m-1,A=d(g),P=Vs(A,2),_=P[0],j=P[1],T=d(m),E=Vs(T,1),I=E[0];if(!_&&!I&&(b=m+1),_&&I&&(x=m-1),!_&&I){O=j;break}w++}return O||h},Xs=function(t){var r=Y(t)?[]:t.toString().split(Rd);return[{words:r}]},cx=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,u=t.maxLines;if((r||n)&&!tr.isSsr){var c,l,f=Bd({breakAll:o,children:i,style:a});if(f){var s=f.wordsWithComputedWidth,p=f.spaceWidth;c=s,l=p}else return Xs(i);return ux({breakAll:o,children:i,maxLines:u,style:a},c,l,r,n)}return Xs(i)},Ys="#808080",Zt=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,u=o===void 0?"1em":o,c=t.capHeight,l=c===void 0?"0.71em":c,f=t.scaleToFit,s=f===void 0?!1:f,p=t.textAnchor,h=p===void 0?"start":p,y=t.verticalAnchor,v=y===void 0?"end":y,d=t.fill,b=d===void 0?Ys:d,x=Ks(t,ex),w=B.useMemo(function(){return cx({breakAll:x.breakAll,children:x.children,maxLines:x.maxLines,scaleToFit:s,style:x.style,width:x.width})},[x.breakAll,x.children,x.maxLines,s,x.style,x.width]),O=x.dx,m=x.dy,g=x.angle,A=x.className,P=x.breakAll,_=Ks(x,tx);if(!Ae(n)||!Ae(a))return null;var j=n+(R(O)?O:0),T=a+(R(m)?m:0),E;switch(v){case"start":E=$o("calc(".concat(l,")"));break;case"middle":E=$o("calc(".concat((w.length-1)/2," * -").concat(u," + (").concat(l," / 2))"));break;default:E=$o("calc(".concat(w.length-1," * -").concat(u,")"));break}var I=[];if(s){var k=w[0].width,M=x.width;I.push("scale(".concat((R(M)?M/k:1)/k,")"))}return g&&I.push("rotate(".concat(g,", ").concat(j,", ").concat(T,")")),I.length&&(_.transform=I.join(" ")),S.createElement("text",Fu({},H(_,!0),{x:j,y:T,className:J("recharts-text",A),textAnchor:h,fill:b.includes("url")?Ys:b}),w.map(function(C,N){var L=C.words.join(P?"":" ");return S.createElement("tspan",{x:j,dy:N===0?E:u,key:"".concat(L,"-").concat(N)},L)}))};function Tt(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function lx(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function Qc(e){let t,r,n;e.length!==2?(t=Tt,r=(u,c)=>Tt(e(u),c),n=(u,c)=>e(u)-c):(t=e===Tt||e===lx?e:sx,r=e,n=e);function i(u,c,l=0,f=u.length){if(l>>1;r(u[s],c)<0?l=s+1:f=s}while(l>>1;r(u[s],c)<=0?l=s+1:f=s}while(ll&&n(u[s-1],c)>-n(u[s],c)?s-1:s}return{left:i,center:o,right:a}}function sx(){return 0}function Ld(e){return e===null?NaN:+e}function*fx(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const px=Qc(Tt),Jn=px.right;Qc(Ld).center;class Zs extends Map{constructor(t,r=vx){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(Js(this,t))}has(t){return super.has(Js(this,t))}set(t,r){return super.set(hx(this,t),r)}delete(t){return super.delete(dx(this,t))}}function Js({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function hx({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function dx({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function vx(e){return e!==null&&typeof e=="object"?e.valueOf():e}function yx(e=Tt){if(e===Tt)return qd;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function qd(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const mx=Math.sqrt(50),gx=Math.sqrt(10),bx=Math.sqrt(2);function ji(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=mx?10:a>=gx?5:a>=bx?2:1;let u,c,l;return i<0?(l=Math.pow(10,-i)/o,u=Math.round(e*l),c=Math.round(t*l),u/lt&&--c,l=-l):(l=Math.pow(10,i)*o,u=Math.round(e/l),c=Math.round(t/l),u*lt&&--c),c0))return[];if(e===t)return[e];const n=t=i))return[];const u=a-i+1,c=new Array(u);if(n)if(o<0)for(let l=0;l=n)&&(r=n);return r}function ef(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function Fd(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?qd:yx(i);n>r;){if(n-r>600){const c=n-r+1,l=t-r+1,f=Math.log(c),s=.5*Math.exp(2*f/3),p=.5*Math.sqrt(f*s*(c-s)/c)*(l-c/2<0?-1:1),h=Math.max(r,Math.floor(t-l*s/c+p)),y=Math.min(n,Math.floor(t+(c-l)*s/c+p));Fd(e,t,h,y,i)}const a=e[t];let o=r,u=n;for(tn(e,r,t),i(e[n],a)>0&&tn(e,r,n);o0;)--u}i(e[r],a)===0?tn(e,r,u):(++u,tn(e,u,n)),u<=t&&(r=u+1),t<=u&&(n=u-1)}return e}function tn(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function xx(e,t,r){if(e=Float64Array.from(fx(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return ef(e);if(t>=1)return Qs(e);var n,i=(n-1)*t,a=Math.floor(i),o=Qs(Fd(e,a).subarray(0,a+1)),u=ef(e.subarray(a+1));return o+(u-o)*(i-a)}}function wx(e,t,r=Ld){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),u=+r(e[a+1],a+1,e);return o+(u-o)*(i-a)}}function Ox(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?ui(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?ui(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Sx.exec(e))?new Re(t[1],t[2],t[3],1):(t=Px.exec(e))?new Re(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=_x.exec(e))?ui(t[1],t[2],t[3],t[4]):(t=Ex.exec(e))?ui(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Tx.exec(e))?cf(t[1],t[2]/100,t[3]/100,1):(t=jx.exec(e))?cf(t[1],t[2]/100,t[3]/100,t[4]):tf.hasOwnProperty(e)?af(tf[e]):e==="transparent"?new Re(NaN,NaN,NaN,0):null}function af(e){return new Re(e>>16&255,e>>8&255,e&255,1)}function ui(e,t,r,n){return n<=0&&(e=t=r=NaN),new Re(e,t,r,n)}function kx(e){return e instanceof Qn||(e=En(e)),e?(e=e.rgb(),new Re(e.r,e.g,e.b,e.opacity)):new Re}function Ku(e,t,r,n){return arguments.length===1?kx(e):new Re(e,t,r,n??1)}function Re(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}tl(Re,Ku,zd(Qn,{brighter(e){return e=e==null?$i:Math.pow($i,e),new Re(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Pn:Math.pow(Pn,e),new Re(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Re(Vt(this.r),Vt(this.g),Vt(this.b),Mi(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:of,formatHex:of,formatHex8:Ix,formatRgb:uf,toString:uf}));function of(){return`#${zt(this.r)}${zt(this.g)}${zt(this.b)}`}function Ix(){return`#${zt(this.r)}${zt(this.g)}${zt(this.b)}${zt((isNaN(this.opacity)?1:this.opacity)*255)}`}function uf(){const e=Mi(this.opacity);return`${e===1?"rgb(":"rgba("}${Vt(this.r)}, ${Vt(this.g)}, ${Vt(this.b)}${e===1?")":`, ${e})`}`}function Mi(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Vt(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function zt(e){return e=Vt(e),(e<16?"0":"")+e.toString(16)}function cf(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Qe(e,t,r,n)}function Ud(e){if(e instanceof Qe)return new Qe(e.h,e.s,e.l,e.opacity);if(e instanceof Qn||(e=En(e)),!e)return new Qe;if(e instanceof Qe)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,u=a-i,c=(a+i)/2;return u?(t===a?o=(r-n)/u+(r0&&c<1?0:o,new Qe(o,u,c,e.opacity)}function Cx(e,t,r,n){return arguments.length===1?Ud(e):new Qe(e,t,r,n??1)}function Qe(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}tl(Qe,Cx,zd(Qn,{brighter(e){return e=e==null?$i:Math.pow($i,e),new Qe(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Pn:Math.pow(Pn,e),new Qe(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Re(Mo(e>=240?e-240:e+120,i,n),Mo(e,i,n),Mo(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Qe(lf(this.h),ci(this.s),ci(this.l),Mi(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Mi(this.opacity);return`${e===1?"hsl(":"hsla("}${lf(this.h)}, ${ci(this.s)*100}%, ${ci(this.l)*100}%${e===1?")":`, ${e})`}`}}));function lf(e){return e=(e||0)%360,e<0?e+360:e}function ci(e){return Math.max(0,Math.min(1,e||0))}function Mo(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const rl=e=>()=>e;function Nx(e,t){return function(r){return e+r*t}}function Dx(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function Rx(e){return(e=+e)==1?Hd:function(t,r){return r-t?Dx(t,r,e):rl(isNaN(t)?r:t)}}function Hd(e,t){var r=t-e;return r?Nx(e,r):rl(isNaN(e)?t:e)}const sf=(function e(t){var r=Rx(t);function n(i,a){var o=r((i=Ku(i)).r,(a=Ku(a)).r),u=r(i.g,a.g),c=r(i.b,a.b),l=Hd(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=u(f),i.b=c(f),i.opacity=l(f),i+""}}return n.gamma=e,n})(1);function Bx(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;ir&&(a=t.slice(r,a),u[o]?u[o]+=a:u[++o]=a),(n=n[0])===(i=i[0])?u[o]?u[o]+=i:u[++o]=i:(u[++o]=null,c.push({i:o,x:ki(n,i)})),r=ko.lastIndex;return rt&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function Xx(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i2?Yx:Xx,c=l=null,s}function s(p){return p==null||isNaN(p=+p)?a:(c||(c=u(e.map(n),t,r)))(n(o(p)))}return s.invert=function(p){return o(i((l||(l=u(t,e.map(n),ki)))(p)))},s.domain=function(p){return arguments.length?(e=Array.from(p,Ii),f()):e.slice()},s.range=function(p){return arguments.length?(t=Array.from(p),f()):t.slice()},s.rangeRound=function(p){return t=Array.from(p),r=nl,f()},s.clamp=function(p){return arguments.length?(o=p?!0:Ie,f()):o!==Ie},s.interpolate=function(p){return arguments.length?(r=p,f()):r},s.unknown=function(p){return arguments.length?(a=p,s):a},function(p,h){return n=p,i=h,f()}}function il(){return Aa()(Ie,Ie)}function Zx(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Ci(e,t){if(!isFinite(e)||e===0)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Pr(e){return e=Ci(Math.abs(e)),e?e[1]:NaN}function Jx(e,t){return function(r,n){for(var i=r.length,a=[],o=0,u=e[0],c=0;i>0&&u>0&&(c+u+1>n&&(u=Math.max(1,n-c)),a.push(r.substring(i-=u,i+u)),!((c+=u+1)>n));)u=e[o=(o+1)%e.length];return a.reverse().join(t)}}function Qx(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var ew=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Tn(e){if(!(t=ew.exec(e)))throw new Error("invalid format: "+e);var t;return new al({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Tn.prototype=al.prototype;function al(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}al.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function tw(e){e:for(var t=e.length,r=1,n=-1,i;r0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var Ni;function rw(e,t){var r=Ci(e,t);if(!r)return Ni=void 0,e.toPrecision(t);var n=r[0],i=r[1],a=i-(Ni=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+Ci(e,Math.max(0,t+a-1))[0]}function pf(e,t){var r=Ci(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const hf={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Zx,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>pf(e*100,t),r:pf,s:rw,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function df(e){return e}var vf=Array.prototype.map,yf=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function nw(e){var t=e.grouping===void 0||e.thousands===void 0?df:Jx(vf.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?df:Qx(vf.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"−":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function l(s,p){s=Tn(s);var h=s.fill,y=s.align,v=s.sign,d=s.symbol,b=s.zero,x=s.width,w=s.comma,O=s.precision,m=s.trim,g=s.type;g==="n"?(w=!0,g="g"):hf[g]||(O===void 0&&(O=12),m=!0,g="g"),(b||h==="0"&&y==="=")&&(b=!0,h="0",y="=");var A=(p&&p.prefix!==void 0?p.prefix:"")+(d==="$"?r:d==="#"&&/[boxX]/.test(g)?"0"+g.toLowerCase():""),P=(d==="$"?n:/[%p]/.test(g)?o:"")+(p&&p.suffix!==void 0?p.suffix:""),_=hf[g],j=/[defgprs%]/.test(g);O=O===void 0?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,O)):Math.max(0,Math.min(20,O));function T(E){var I=A,k=P,M,C,N;if(g==="c")k=_(E)+k,E="";else{E=+E;var L=E<0||1/E<0;if(E=isNaN(E)?c:_(Math.abs(E),O),m&&(E=tw(E)),L&&+E==0&&v!=="+"&&(L=!1),I=(L?v==="("?v:u:v==="-"||v==="("?"":v)+I,k=(g==="s"&&!isNaN(E)&&Ni!==void 0?yf[8+Ni/3]:"")+k+(L&&v==="("?")":""),j){for(M=-1,C=E.length;++MN||N>57){k=(N===46?i+E.slice(M+1):E.slice(M))+k,E=E.slice(0,M);break}}}w&&!b&&(E=t(E,1/0));var q=I.length+E.length+k.length,U=q>1)+I+E+k+U.slice(q);break;default:E=U+I+E+k;break}return a(E)}return T.toString=function(){return s+""},T}function f(s,p){var h=Math.max(-8,Math.min(8,Math.floor(Pr(p)/3)))*3,y=Math.pow(10,-h),v=l((s=Tn(s),s.type="f",s),{suffix:yf[8+h/3]});return function(d){return v(y*d)}}return{format:l,formatPrefix:f}}var li,ol,Kd;iw({thousands:",",grouping:[3],currency:["$",""]});function iw(e){return li=nw(e),ol=li.format,Kd=li.formatPrefix,li}function aw(e){return Math.max(0,-Pr(Math.abs(e)))}function ow(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Pr(t)/3)))*3-Pr(Math.abs(e)))}function uw(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Pr(t)-Pr(e))+1}function Vd(e,t,r,n){var i=Uu(e,t,r),a;switch(n=Tn(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=ow(i,o))&&(n.precision=a),Kd(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=uw(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=aw(i))&&(n.precision=a-(n.type==="%")*2);break}}return ol(n)}function jt(e){var t=e.domain;return e.ticks=function(r){var n=t();return Wu(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return Vd(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],u=n[a],c,l,f=10;for(u0;){if(l=zu(o,u,r),l===c)return n[i]=o,n[a]=u,t(n);if(l>0)o=Math.floor(o/l)*l,u=Math.ceil(u/l)*l;else if(l<0)o=Math.ceil(o*l)/l,u=Math.floor(u*l)/l;else break;c=l}return e},e}function Di(){var e=il();return e.copy=function(){return ei(e,Di())},Ye.apply(e,arguments),jt(e)}function Gd(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,Ii),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return Gd(e).unknown(t)},e=arguments.length?Array.from(e,Ii):[0,1],jt(r)}function Xd(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return aMath.pow(e,t)}function pw(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function bf(e){return(t,r)=>-e(-t,r)}function ul(e){const t=e(mf,gf),r=t.domain;let n=10,i,a;function o(){return i=pw(n),a=fw(n),r()[0]<0?(i=bf(i),a=bf(a),e(cw,lw)):e(mf,gf),t}return t.base=function(u){return arguments.length?(n=+u,o()):n},t.domain=function(u){return arguments.length?(r(u),o()):r()},t.ticks=u=>{const c=r();let l=c[0],f=c[c.length-1];const s=f0){for(;p<=h;++p)for(y=1;yf)break;b.push(v)}}else for(;p<=h;++p)for(y=n-1;y>=1;--y)if(v=p>0?y/a(-p):y*a(p),!(vf)break;b.push(v)}b.length*2{if(u==null&&(u=10),c==null&&(c=n===10?"s":","),typeof c!="function"&&(!(n%1)&&(c=Tn(c)).precision==null&&(c.trim=!0),c=ol(c)),u===1/0)return c;const l=Math.max(1,n*u/t.ticks().length);return f=>{let s=f/a(Math.round(i(f)));return s*nr(Xd(r(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}function Yd(){const e=ul(Aa()).domain([1,10]);return e.copy=()=>ei(e,Yd()).base(e.base()),Ye.apply(e,arguments),e}function xf(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function wf(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function cl(e){var t=1,r=e(xf(t),wf(t));return r.constant=function(n){return arguments.length?e(xf(t=+n),wf(t)):t},jt(r)}function Zd(){var e=cl(Aa());return e.copy=function(){return ei(e,Zd()).constant(e.constant())},Ye.apply(e,arguments)}function Of(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function hw(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function dw(e){return e<0?-e*e:e*e}function ll(e){var t=e(Ie,Ie),r=1;function n(){return r===1?e(Ie,Ie):r===.5?e(hw,dw):e(Of(r),Of(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},jt(t)}function sl(){var e=ll(Aa());return e.copy=function(){return ei(e,sl()).exponent(e.exponent())},Ye.apply(e,arguments),e}function vw(){return sl.apply(null,arguments).exponent(.5)}function Af(e){return Math.sign(e)*e*e}function yw(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Jd(){var e=il(),t=[0,1],r=!1,n;function i(a){var o=yw(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(Af(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,Ii)).map(Af)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return Jd(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Ye.apply(i,arguments),jt(i)}function Qd(){var e=[],t=[],r=[],n;function i(){var o=0,u=Math.max(1,t.length);for(r=new Array(u-1);++o0?r[u-1]:e[0],u=r?[n[r-1],t]:[n[l-1],n[l]]},o.unknown=function(c){return arguments.length&&(a=c),o},o.thresholds=function(){return n.slice()},o.copy=function(){return ev().domain([e,t]).range(i).unknown(a)},Ye.apply(jt(o),arguments)}function tv(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[Jn(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return tv().domain(e).range(t).unknown(r)},Ye.apply(i,arguments)}const Io=new Date,Co=new Date;function Se(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),u=i.ceil(a);return a-o(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,u)=>{const c=[];if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a0))return c;let l;do c.push(l=new Date(+a)),t(a,u),e(a);while(lSe(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,u)=>{if(o>=o)if(u<0)for(;++u<=0;)for(;t(o,-1),!a(o););else for(;--u>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(Io.setTime(+a),Co.setTime(+o),e(Io),e(Co),Math.floor(r(Io,Co))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const Ri=Se(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ri.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Se(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Ri);Ri.range;const ft=1e3,Ve=ft*60,pt=Ve*60,mt=pt*24,fl=mt*7,Sf=mt*30,No=mt*365,Ut=Se(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*ft)},(e,t)=>(t-e)/ft,e=>e.getUTCSeconds());Ut.range;const pl=Se(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ft)},(e,t)=>{e.setTime(+e+t*Ve)},(e,t)=>(t-e)/Ve,e=>e.getMinutes());pl.range;const hl=Se(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Ve)},(e,t)=>(t-e)/Ve,e=>e.getUTCMinutes());hl.range;const dl=Se(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ft-e.getMinutes()*Ve)},(e,t)=>{e.setTime(+e+t*pt)},(e,t)=>(t-e)/pt,e=>e.getHours());dl.range;const vl=Se(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*pt)},(e,t)=>(t-e)/pt,e=>e.getUTCHours());vl.range;const ti=Se(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ve)/mt,e=>e.getDate()-1);ti.range;const Sa=Se(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/mt,e=>e.getUTCDate()-1);Sa.range;const rv=Se(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/mt,e=>Math.floor(e/mt));rv.range;function rr(e){return Se(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Ve)/fl)}const Pa=rr(0),Bi=rr(1),mw=rr(2),gw=rr(3),_r=rr(4),bw=rr(5),xw=rr(6);Pa.range;Bi.range;mw.range;gw.range;_r.range;bw.range;xw.range;function nr(e){return Se(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/fl)}const _a=nr(0),Li=nr(1),ww=nr(2),Ow=nr(3),Er=nr(4),Aw=nr(5),Sw=nr(6);_a.range;Li.range;ww.range;Ow.range;Er.range;Aw.range;Sw.range;const yl=Se(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());yl.range;const ml=Se(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());ml.range;const gt=Se(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());gt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Se(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});gt.range;const bt=Se(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());bt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Se(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});bt.range;function nv(e,t,r,n,i,a){const o=[[Ut,1,ft],[Ut,5,5*ft],[Ut,15,15*ft],[Ut,30,30*ft],[a,1,Ve],[a,5,5*Ve],[a,15,15*Ve],[a,30,30*Ve],[i,1,pt],[i,3,3*pt],[i,6,6*pt],[i,12,12*pt],[n,1,mt],[n,2,2*mt],[r,1,fl],[t,1,Sf],[t,3,3*Sf],[e,1,No]];function u(l,f,s){const p=fd).right(o,p);if(h===o.length)return e.every(Uu(l/No,f/No,s));if(h===0)return Ri.every(Math.max(Uu(l,f,s),1));const[y,v]=o[p/o[h-1][2]53)return null;"w"in D||(D.w=1),"Z"in D?(te=Ro(rn(D.y,0,1)),ge=te.getUTCDay(),te=ge>4||ge===0?Li.ceil(te):Li(te),te=Sa.offset(te,(D.V-1)*7),D.y=te.getUTCFullYear(),D.m=te.getUTCMonth(),D.d=te.getUTCDate()+(D.w+6)%7):(te=Do(rn(D.y,0,1)),ge=te.getDay(),te=ge>4||ge===0?Bi.ceil(te):Bi(te),te=ti.offset(te,(D.V-1)*7),D.y=te.getFullYear(),D.m=te.getMonth(),D.d=te.getDate()+(D.w+6)%7)}else("W"in D||"U"in D)&&("w"in D||(D.w="u"in D?D.u%7:"W"in D?1:0),ge="Z"in D?Ro(rn(D.y,0,1)).getUTCDay():Do(rn(D.y,0,1)).getDay(),D.m=0,D.d="W"in D?(D.w+6)%7+D.W*7-(ge+5)%7:D.w+D.U*7-(ge+6)%7);return"Z"in D?(D.H+=D.Z/100|0,D.M+=D.Z%100,Ro(D)):Do(D)}}function P(F,Z,Q,D){for(var he=0,te=Z.length,ge=Q.length,be,Ne;he=ge)return-1;if(be=Z.charCodeAt(he++),be===37){if(be=Z.charAt(he++),Ne=m[be in Pf?Z.charAt(he++):be],!Ne||(D=Ne(F,Q,D))<0)return-1}else if(be!=Q.charCodeAt(D++))return-1}return D}function _(F,Z,Q){var D=l.exec(Z.slice(Q));return D?(F.p=f.get(D[0].toLowerCase()),Q+D[0].length):-1}function j(F,Z,Q){var D=h.exec(Z.slice(Q));return D?(F.w=y.get(D[0].toLowerCase()),Q+D[0].length):-1}function T(F,Z,Q){var D=s.exec(Z.slice(Q));return D?(F.w=p.get(D[0].toLowerCase()),Q+D[0].length):-1}function E(F,Z,Q){var D=b.exec(Z.slice(Q));return D?(F.m=x.get(D[0].toLowerCase()),Q+D[0].length):-1}function I(F,Z,Q){var D=v.exec(Z.slice(Q));return D?(F.m=d.get(D[0].toLowerCase()),Q+D[0].length):-1}function k(F,Z,Q){return P(F,t,Z,Q)}function M(F,Z,Q){return P(F,r,Z,Q)}function C(F,Z,Q){return P(F,n,Z,Q)}function N(F){return o[F.getDay()]}function L(F){return a[F.getDay()]}function q(F){return c[F.getMonth()]}function U(F){return u[F.getMonth()]}function V(F){return i[+(F.getHours()>=12)]}function W(F){return 1+~~(F.getMonth()/3)}function X(F){return o[F.getUTCDay()]}function se(F){return a[F.getUTCDay()]}function ve(F){return c[F.getUTCMonth()]}function Be(F){return u[F.getUTCMonth()]}function It(F){return i[+(F.getUTCHours()>=12)]}function Ce(F){return 1+~~(F.getUTCMonth()/3)}return{format:function(F){var Z=g(F+="",w);return Z.toString=function(){return F},Z},parse:function(F){var Z=A(F+="",!1);return Z.toString=function(){return F},Z},utcFormat:function(F){var Z=g(F+="",O);return Z.toString=function(){return F},Z},utcParse:function(F){var Z=A(F+="",!0);return Z.toString=function(){return F},Z}}}var Pf={"-":"",_:" ",0:"0"},Ee=/^\s*\d+/,$w=/^%/,Mw=/[\\^$*+?|[\]().{}]/g;function re(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a[t.toLowerCase(),r]))}function Iw(e,t,r){var n=Ee.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function Cw(e,t,r){var n=Ee.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function Nw(e,t,r){var n=Ee.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function Dw(e,t,r){var n=Ee.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function Rw(e,t,r){var n=Ee.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function _f(e,t,r){var n=Ee.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function Ef(e,t,r){var n=Ee.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function Bw(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function Lw(e,t,r){var n=Ee.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function qw(e,t,r){var n=Ee.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function Tf(e,t,r){var n=Ee.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function Fw(e,t,r){var n=Ee.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function jf(e,t,r){var n=Ee.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function Ww(e,t,r){var n=Ee.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function zw(e,t,r){var n=Ee.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function Uw(e,t,r){var n=Ee.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function Hw(e,t,r){var n=Ee.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Kw(e,t,r){var n=$w.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function Vw(e,t,r){var n=Ee.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function Gw(e,t,r){var n=Ee.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function $f(e,t){return re(e.getDate(),t,2)}function Xw(e,t){return re(e.getHours(),t,2)}function Yw(e,t){return re(e.getHours()%12||12,t,2)}function Zw(e,t){return re(1+ti.count(gt(e),e),t,3)}function iv(e,t){return re(e.getMilliseconds(),t,3)}function Jw(e,t){return iv(e,t)+"000"}function Qw(e,t){return re(e.getMonth()+1,t,2)}function eO(e,t){return re(e.getMinutes(),t,2)}function tO(e,t){return re(e.getSeconds(),t,2)}function rO(e){var t=e.getDay();return t===0?7:t}function nO(e,t){return re(Pa.count(gt(e)-1,e),t,2)}function av(e){var t=e.getDay();return t>=4||t===0?_r(e):_r.ceil(e)}function iO(e,t){return e=av(e),re(_r.count(gt(e),e)+(gt(e).getDay()===4),t,2)}function aO(e){return e.getDay()}function oO(e,t){return re(Bi.count(gt(e)-1,e),t,2)}function uO(e,t){return re(e.getFullYear()%100,t,2)}function cO(e,t){return e=av(e),re(e.getFullYear()%100,t,2)}function lO(e,t){return re(e.getFullYear()%1e4,t,4)}function sO(e,t){var r=e.getDay();return e=r>=4||r===0?_r(e):_r.ceil(e),re(e.getFullYear()%1e4,t,4)}function fO(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+re(t/60|0,"0",2)+re(t%60,"0",2)}function Mf(e,t){return re(e.getUTCDate(),t,2)}function pO(e,t){return re(e.getUTCHours(),t,2)}function hO(e,t){return re(e.getUTCHours()%12||12,t,2)}function dO(e,t){return re(1+Sa.count(bt(e),e),t,3)}function ov(e,t){return re(e.getUTCMilliseconds(),t,3)}function vO(e,t){return ov(e,t)+"000"}function yO(e,t){return re(e.getUTCMonth()+1,t,2)}function mO(e,t){return re(e.getUTCMinutes(),t,2)}function gO(e,t){return re(e.getUTCSeconds(),t,2)}function bO(e){var t=e.getUTCDay();return t===0?7:t}function xO(e,t){return re(_a.count(bt(e)-1,e),t,2)}function uv(e){var t=e.getUTCDay();return t>=4||t===0?Er(e):Er.ceil(e)}function wO(e,t){return e=uv(e),re(Er.count(bt(e),e)+(bt(e).getUTCDay()===4),t,2)}function OO(e){return e.getUTCDay()}function AO(e,t){return re(Li.count(bt(e)-1,e),t,2)}function SO(e,t){return re(e.getUTCFullYear()%100,t,2)}function PO(e,t){return e=uv(e),re(e.getUTCFullYear()%100,t,2)}function _O(e,t){return re(e.getUTCFullYear()%1e4,t,4)}function EO(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Er(e):Er.ceil(e),re(e.getUTCFullYear()%1e4,t,4)}function TO(){return"+0000"}function kf(){return"%"}function If(e){return+e}function Cf(e){return Math.floor(+e/1e3)}var cr,cv,lv;jO({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function jO(e){return cr=jw(e),cv=cr.format,cr.parse,lv=cr.utcFormat,cr.utcParse,cr}function $O(e){return new Date(e)}function MO(e){return e instanceof Date?+e:+new Date(+e)}function gl(e,t,r,n,i,a,o,u,c,l){var f=il(),s=f.invert,p=f.domain,h=l(".%L"),y=l(":%S"),v=l("%I:%M"),d=l("%I %p"),b=l("%a %d"),x=l("%b %d"),w=l("%B"),O=l("%Y");function m(g){return(c(g)t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>xx(e,a/n))},r.copy=function(){return hv(t).domain(e)},wt.apply(r,arguments)}function Ta(){var e=0,t=.5,r=1,n=1,i,a,o,u,c,l=Ie,f,s=!1,p;function h(v){return isNaN(v=+v)?p:(v=.5+((v=+f(v))-a)*(n*vr}return Lo=e,Lo}var qo,Bf;function DO(){if(Bf)return qo;Bf=1;var e=ja(),t=mv(),r=Wc();function n(i){return i&&i.length?e(i,r,t):void 0}return qo=n,qo}var RO=DO();const _t=oe(RO);var Fo,Lf;function gv(){if(Lf)return Fo;Lf=1;function e(t,r){return te.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=ne.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};z.decimalPlaces=z.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*fe;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};z.dividedBy=z.div=function(e){return vt(this,new this.constructor(e))};z.dividedToIntegerBy=z.idiv=function(e){var t=this,r=t.constructor;return ae(vt(t,new r(e),0,1),r.precision)};z.equals=z.eq=function(e){return!this.cmp(e)};z.exponent=function(){return me(this)};z.greaterThan=z.gt=function(e){return this.cmp(e)>0};z.greaterThanOrEqualTo=z.gte=function(e){return this.cmp(e)>=0};z.isInteger=z.isint=function(){return this.e>this.d.length-2};z.isNegative=z.isneg=function(){return this.s<0};z.isPositive=z.ispos=function(){return this.s>0};z.isZero=function(){return this.s===0};z.lessThan=z.lt=function(e){return this.cmp(e)<0};z.lessThanOrEqualTo=z.lte=function(e){return this.cmp(e)<1};z.logarithm=z.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(Fe))throw Error(Xe+"NaN");if(r.s<1)throw Error(Xe+(r.s?"NaN":"-Infinity"));return r.eq(Fe)?new n(0):(pe=!1,t=vt(jn(r,a),jn(e,a),a),pe=!0,ae(t,i))};z.minus=z.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Ov(t,e):xv(t,(e.s=-e.s,e))};z.modulo=z.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(Xe+"NaN");return r.s?(pe=!1,t=vt(r,e,0,1).times(e),pe=!0,r.minus(t)):ae(new n(r),i)};z.naturalExponential=z.exp=function(){return wv(this)};z.naturalLogarithm=z.ln=function(){return jn(this)};z.negated=z.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};z.plus=z.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?xv(t,e):Ov(t,(e.s=-e.s,e))};z.precision=z.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Gt+e);if(t=me(i)+1,n=i.d.length-1,r=n*fe+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};z.squareRoot=z.sqrt=function(){var e,t,r,n,i,a,o,u=this,c=u.constructor;if(u.s<1){if(!u.s)return new c(0);throw Error(Xe+"NaN")}for(e=me(u),pe=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=rt(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Zr((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new c(t)):n=new c(i.toString()),r=c.precision,i=o=r+3;;)if(a=n,n=a.plus(vt(u,a,o+2)).times(.5),rt(a.d).slice(0,o)===(t=rt(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(ae(a,r+1,0),a.times(a).eq(u)){n=a;break}}else if(t!="9999")break;o+=4}return pe=!0,ae(n,r)};z.times=z.mul=function(e){var t,r,n,i,a,o,u,c,l,f=this,s=f.constructor,p=f.d,h=(e=new s(e)).d;if(!f.s||!e.s)return new s(0);for(e.s*=f.s,r=f.e+e.e,c=p.length,l=h.length,c=0;){for(t=0,i=c+n;i>n;)u=a[i]+h[n]*p[i-n-1]+t,a[i--]=u%Pe|0,t=u/Pe|0;a[i]=(a[i]+t)%Pe|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,pe?ae(e,s.precision):e};z.toDecimalPlaces=z.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(ot(e,0,Yr),t===void 0?t=n.rounding:ot(t,0,8),ae(r,e+me(r)+1,t))};z.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Jt(n,!0):(ot(e,0,Yr),t===void 0?t=i.rounding:ot(t,0,8),n=ae(new i(n),e+1,t),r=Jt(n,!0,e+1)),r};z.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?Jt(i):(ot(e,0,Yr),t===void 0?t=a.rounding:ot(t,0,8),n=ae(new a(i),e+me(i)+1,t),r=Jt(n.abs(),!1,e+me(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};z.toInteger=z.toint=function(){var e=this,t=e.constructor;return ae(new t(e),me(e)+1,t.rounding)};z.toNumber=function(){return+this};z.toPower=z.pow=function(e){var t,r,n,i,a,o,u=this,c=u.constructor,l=12,f=+(e=new c(e));if(!e.s)return new c(Fe);if(u=new c(u),!u.s){if(e.s<1)throw Error(Xe+"Infinity");return u}if(u.eq(Fe))return u;if(n=c.precision,e.eq(Fe))return ae(u,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=u.s,o){if((r=f<0?-f:f)<=bv){for(i=new c(Fe),t=Math.ceil(n/fe+4),pe=!1;r%2&&(i=i.times(u),Uf(i.d,t)),r=Zr(r/2),r!==0;)u=u.times(u),Uf(u.d,t);return pe=!0,e.s<0?new c(Fe).div(i):ae(i,n)}}else if(a<0)throw Error(Xe+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,u.s=1,pe=!1,i=e.times(jn(u,n+l)),pe=!0,i=wv(i),i.s=a,i};z.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=me(i),n=Jt(i,r<=a.toExpNeg||r>=a.toExpPos)):(ot(e,1,Yr),t===void 0?t=a.rounding:ot(t,0,8),i=ae(new a(i),e,t),r=me(i),n=Jt(i,e<=r||r<=a.toExpNeg,e)),n};z.toSignificantDigits=z.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(ot(e,1,Yr),t===void 0?t=n.rounding:ot(t,0,8)),ae(new n(r),e,t)};z.toString=z.valueOf=z.val=z.toJSON=z[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=me(e),r=e.constructor;return Jt(e,t<=r.toExpNeg||t>=r.toExpPos)};function xv(e,t){var r,n,i,a,o,u,c,l,f=e.constructor,s=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),pe?ae(t,s):t;if(c=e.d,l=t.d,o=e.e,i=t.e,c=c.slice(),a=o-i,a){for(a<0?(n=c,a=-a,u=l.length):(n=l,i=o,u=c.length),o=Math.ceil(s/fe),u=o>u?o+1:u+1,a>u&&(a=u,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(u=c.length,a=l.length,u-a<0&&(a=u,n=l,l=c,c=n),r=0;a;)r=(c[--a]=c[a]+l[a]+r)/Pe|0,c[a]%=Pe;for(r&&(c.unshift(r),++i),u=c.length;c[--u]==0;)c.pop();return t.d=c,t.e=i,pe?ae(t,s):t}function ot(e,t,r){if(e!==~~e||er)throw Error(Gt+e)}function rt(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;to?1:-1;else for(u=c=0;ui[u]?1:-1;break}return c}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]1;)n.shift()}return function(n,i,a,o){var u,c,l,f,s,p,h,y,v,d,b,x,w,O,m,g,A,P,_=n.constructor,j=n.s==i.s?1:-1,T=n.d,E=i.d;if(!n.s)return new _(n);if(!i.s)throw Error(Xe+"Division by zero");for(c=n.e-i.e,A=E.length,m=T.length,h=new _(j),y=h.d=[],l=0;E[l]==(T[l]||0);)++l;if(E[l]>(T[l]||0)&&--c,a==null?x=a=_.precision:o?x=a+(me(n)-me(i))+1:x=a,x<0)return new _(0);if(x=x/fe+2|0,l=0,A==1)for(f=0,E=E[0],x++;(l1&&(E=e(E,f),T=e(T,f),A=E.length,m=T.length),O=A,v=T.slice(0,A),d=v.length;d=Pe/2&&++g;do f=0,u=t(E,v,A,d),u<0?(b=v[0],A!=d&&(b=b*Pe+(v[1]||0)),f=b/g|0,f>1?(f>=Pe&&(f=Pe-1),s=e(E,f),p=s.length,d=v.length,u=t(s,v,p,d),u==1&&(f--,r(s,A16)throw Error(wl+me(e));if(!e.s)return new f(Fe);for(pe=!1,u=s,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),l+=5;for(n=Math.log(qt(2,l))/Math.LN10*2+5|0,u+=n,r=i=a=new f(Fe),f.precision=u;;){if(i=ae(i.times(e),u),r=r.times(++c),o=a.plus(vt(i,r,u)),rt(o.d).slice(0,u)===rt(a.d).slice(0,u)){for(;l--;)a=ae(a.times(a),u);return f.precision=s,t==null?(pe=!0,ae(a,s)):a}a=o}}function me(e){for(var t=e.e*fe,r=e.d[0];r>=10;r/=10)t++;return t}function Ho(e,t,r){if(t>e.LN10.sd())throw pe=!0,r&&(e.precision=r),Error(Xe+"LN10 precision limit exceeded");return ae(new e(e.LN10),t)}function St(e){for(var t="";e--;)t+="0";return t}function jn(e,t){var r,n,i,a,o,u,c,l,f,s=1,p=10,h=e,y=h.d,v=h.constructor,d=v.precision;if(h.s<1)throw Error(Xe+(h.s?"NaN":"-Infinity"));if(h.eq(Fe))return new v(0);if(t==null?(pe=!1,l=d):l=t,h.eq(10))return t==null&&(pe=!0),Ho(v,l);if(l+=p,v.precision=l,r=rt(y),n=r.charAt(0),a=me(h),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)h=h.times(e),r=rt(h.d),n=r.charAt(0),s++;a=me(h),n>1?(h=new v("0."+r),a++):h=new v(n+"."+r.slice(1))}else return c=Ho(v,l+2,d).times(a+""),h=jn(new v(n+"."+r.slice(1)),l-p).plus(c),v.precision=d,t==null?(pe=!0,ae(h,d)):h;for(u=o=h=vt(h.minus(Fe),h.plus(Fe),l),f=ae(h.times(h),l),i=3;;){if(o=ae(o.times(f),l),c=u.plus(vt(o,new v(i),l)),rt(c.d).slice(0,l)===rt(u.d).slice(0,l))return u=u.times(2),a!==0&&(u=u.plus(Ho(v,l+2,d).times(a+""))),u=vt(u,new v(s),l),v.precision=d,t==null?(pe=!0,ae(u,d)):u;u=c,i+=2}}function zf(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=Zr(r/fe),e.d=[],n=(r+1)%fe,r<0&&(n+=fe),nqi||e.e<-qi))throw Error(wl+r)}else e.s=0,e.e=0,e.d=[0];return e}function ae(e,t,r){var n,i,a,o,u,c,l,f,s=e.d;for(o=1,a=s[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=fe,i=t,l=s[f=0];else{if(f=Math.ceil((n+1)/fe),a=s.length,f>=a)return e;for(l=a=s[f],o=1;a>=10;a/=10)o++;n%=fe,i=n-fe+o}if(r!==void 0&&(a=qt(10,o-i-1),u=l/a%10|0,c=t<0||s[f+1]!==void 0||l%a,c=r<4?(u||c)&&(r==0||r==(e.s<0?3:2)):u>5||u==5&&(r==4||c||r==6&&(n>0?i>0?l/qt(10,o-i):0:s[f-1])%10&1||r==(e.s<0?8:7))),t<1||!s[0])return c?(a=me(e),s.length=1,t=t-a-1,s[0]=qt(10,(fe-t%fe)%fe),e.e=Zr(-t/fe)||0):(s.length=1,s[0]=e.e=e.s=0),e;if(n==0?(s.length=f,a=1,f--):(s.length=f+1,a=qt(10,fe-n),s[f]=i>0?(l/qt(10,o-i)%qt(10,i)|0)*a:0),c)for(;;)if(f==0){(s[0]+=a)==Pe&&(s[0]=1,++e.e);break}else{if(s[f]+=a,s[f]!=Pe)break;s[f--]=0,a=1}for(n=s.length;s[--n]===0;)s.pop();if(pe&&(e.e>qi||e.e<-qi))throw Error(wl+me(e));return e}function Ov(e,t){var r,n,i,a,o,u,c,l,f,s,p=e.constructor,h=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),pe?ae(t,h):t;if(c=e.d,s=t.d,n=t.e,l=e.e,c=c.slice(),o=l-n,o){for(f=o<0,f?(r=c,o=-o,u=s.length):(r=s,n=l,u=c.length),i=Math.max(Math.ceil(h/fe),u)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=c.length,u=s.length,f=i0;--i)c[u++]=0;for(i=s.length;i>o;){if(c[--i]0?a=a.charAt(0)+"."+a.slice(1)+St(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+St(-i-1)+a,r&&(n=r-o)>0&&(a+=St(n))):i>=o?(a+=St(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+St(n))):((n=i+1)0&&(i+1===o&&(a+="."),a+=St(n))),e.s<0?"-"+a:a}function Uf(e,t){if(e.length>t)return e.length=t,!0}function Av(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Gt+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return zf(o,a.toString())}else if(typeof a!="string")throw Error(Gt+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,KO.test(a))zf(o,a);else throw Error(Gt+a)}if(i.prototype=z,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=Av,i.config=i.set=VO,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Gt+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Gt+r+": "+n);return this}var Ol=Av(HO);Fe=new Ol(1);const ie=Ol;function GO(e){return JO(e)||ZO(e)||YO(e)||XO()}function XO(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YO(e,t){if(e){if(typeof e=="string")return Xu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Xu(e,t)}}function ZO(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function JO(e){if(Array.isArray(e))return Xu(e)}function Xu(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=t?r.apply(void 0,i):e(t-o,Hf(function(){for(var u=arguments.length,c=new Array(u),l=0;le.length)&&(t=e.length);for(var r=0,n=new Array(t);r"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),u;!(n=(u=o.next()).done)&&(r.push(u.value),!(t&&r.length===t));n=!0);}catch(c){i=!0,a=c}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function hA(e){if(Array.isArray(e))return e}function Tv(e){var t=$n(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function jv(e,t,r){if(e.lte(0))return new ie(0);var n=ka.getDigitCount(e.toNumber()),i=new ie(10).pow(n),a=e.div(i),o=n!==1?.05:.1,u=new ie(Math.ceil(a.div(o).toNumber())).add(r).mul(o),c=u.mul(i);return t?c:new ie(Math.ceil(c))}function dA(e,t,r){var n=1,i=new ie(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new ie(10).pow(ka.getDigitCount(e)-1),i=new ie(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new ie(Math.floor(e)))}else e===0?i=new ie(Math.floor((t-1)/2)):r||(i=new ie(Math.floor(e)));var o=Math.floor((t-1)/2),u=rA(tA(function(c){return i.add(new ie(c-o).mul(n)).toNumber()}),Yu);return u(0,t)}function $v(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new ie(0),tickMin:new ie(0),tickMax:new ie(0)};var a=jv(new ie(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new ie(0):(o=new ie(e).add(t).div(2),o=o.sub(new ie(o).mod(a)));var u=Math.ceil(o.sub(e).div(a).toNumber()),c=Math.ceil(new ie(t).sub(o).div(a).toNumber()),l=u+c+1;return l>r?$v(e,t,r,n,i+1):(l0?c+(r-l):c,u=t>0?u:u+(r-l)),{step:a,tickMin:o.sub(new ie(u).mul(a)),tickMax:o.add(new ie(c).mul(a))})}function vA(e){var t=$n(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),u=Tv([r,n]),c=$n(u,2),l=c[0],f=c[1];if(l===-1/0||f===1/0){var s=f===1/0?[l].concat(Ju(Yu(0,i-1).map(function(){return 1/0}))):[].concat(Ju(Yu(0,i-1).map(function(){return-1/0})),[f]);return r>n?Zu(s):s}if(l===f)return dA(l,i,a);var p=$v(l,f,o,a),h=p.step,y=p.tickMin,v=p.tickMax,d=ka.rangeStep(y,v.add(new ie(.1).mul(h)),h);return r>n?Zu(d):d}function yA(e,t){var r=$n(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Tv([n,i]),u=$n(o,2),c=u[0],l=u[1];if(c===-1/0||l===1/0)return[n,i];if(c===l)return[c];var f=Math.max(t,2),s=jv(new ie(l).sub(c).div(f-1),a,0),p=[].concat(Ju(ka.rangeStep(new ie(c),new ie(l).sub(new ie(.99).mul(s)),s)),[l]);return n>i?Zu(p):p}var mA=_v(vA),gA=_v(yA),bA="Invariant failed";function Qt(e,t){throw new Error(bA)}var xA=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function jr(e){"@babel/helpers - typeof";return jr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jr(e)}function Fi(){return Fi=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function EA(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function TA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jA(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,u=(r=n?.length)!==null&&r!==void 0?r:0;if(u<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var c=a.range,l=0;l0?i[l-1].coordinate:i[u-1].coordinate,s=i[l].coordinate,p=l>=u-1?i[0].coordinate:i[l+1].coordinate,h=void 0;if(Me(s-f)!==Me(p-s)){var y=[];if(Me(p-s)===Me(c[1]-c[0])){h=p;var v=s+c[1]-c[0];y[0]=Math.min(v,(v+f)/2),y[1]=Math.max(v,(v+f)/2)}else{h=f;var d=p+c[1]-c[0];y[0]=Math.min(s,(d+s)/2),y[1]=Math.max(s,(d+s)/2)}var b=[Math.min(s,(h+s)/2),Math.max(s,(h+s)/2)];if(t>b[0]&&t<=b[1]||t>=y[0]&&t<=y[1]){o=i[l].index;break}}else{var x=Math.min(f,p),w=Math.max(f,p);if(t>(x+s)/2&&t<=(w+s)/2){o=i[l].index;break}}}else for(var O=0;O0&&O(n[O].coordinate+n[O-1].coordinate)/2&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O===u-1&&t>(n[O].coordinate+n[O-1].coordinate)/2){o=n[O].index;break}return o},Al=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?de(de({},t.type.defaultProps),t.props):t.props,o=a.stroke,u=a.fill,c;switch(i){case"Line":c=o;break;case"Area":case"Radar":c=o&&o!=="none"?o:u;break;default:c=u;break}return c},KA=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},u=Object.keys(a),c=0,l=u.length;c=0});if(b&&b.length){var x=b[0].type.defaultProps,w=x!==void 0?de(de({},x),b[0].props):b[0].props,O=w.barSize,m=w[d];o[m]||(o[m]=[]);var g=Y(O)?r:O;o[m].push({item:b[0],stackList:b.slice(1),barSize:Y(g)?void 0:ke(g,n,0)})}}return o},VA=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,u=t.maxBarSize,c=o.length;if(c<1)return null;var l=ke(r,i,0,!0),f,s=[];if(o[0].barSize===+o[0].barSize){var p=!1,h=i/c,y=o.reduce(function(O,m){return O+m.barSize||0},0);y+=(c-1)*l,y>=i&&(y-=(c-1)*l,l=0),y>=i&&h>0&&(p=!0,h*=.9,y=c*h);var v=(i-y)/2>>0,d={offset:v-l,size:0};f=o.reduce(function(O,m){var g={item:m.item,position:{offset:d.offset+d.size+l,size:p?h:m.barSize}},A=[].concat(Gf(O),[g]);return d=A[A.length-1].position,m.stackList&&m.stackList.length&&m.stackList.forEach(function(P){A.push({item:P,position:d})}),A},s)}else{var b=ke(n,i,0,!0);i-2*b-(c-1)*l<=0&&(l=0);var x=(i-2*b-(c-1)*l)/c;x>1&&(x>>=0);var w=u===+u?Math.min(x,u):x;f=o.reduce(function(O,m,g){var A=[].concat(Gf(O),[{item:m.item,position:{offset:b+(x+l)*g+(x-w)/2,size:w}}]);return m.stackList&&m.stackList.length&&m.stackList.forEach(function(P){A.push({item:P,position:A[A.length-1].position})}),A},s)}return f},GA=function(t,r,n,i){var a=n.children,o=n.width,u=n.margin,c=o-(u.left||0)-(u.right||0),l=Cv({children:a,legendWidth:c});if(l){var f=i||{},s=f.width,p=f.height,h=l.align,y=l.verticalAlign,v=l.layout;if((v==="vertical"||v==="horizontal"&&y==="middle")&&h!=="center"&&R(t[h]))return de(de({},t),{},gr({},h,t[h]+(s||0)));if((v==="horizontal"||v==="vertical"&&h==="center")&&y!=="middle"&&R(t[y]))return de(de({},t),{},gr({},y,t[y]+(p||0)))}return t},XA=function(t,r,n){return Y(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},Nv=function(t,r,n,i,a){var o=r.props.children,u=Ge(o,Ia).filter(function(l){return XA(i,a,l.props.direction)});if(u&&u.length){var c=u.map(function(l){return l.props.dataKey});return t.reduce(function(l,f){var s=Oe(f,n);if(Y(s))return l;var p=Array.isArray(s)?[$a(s),_t(s)]:[s,s],h=c.reduce(function(y,v){var d=Oe(f,v,0),b=p[0]-Math.abs(Array.isArray(d)?d[0]:d),x=p[1]+Math.abs(Array.isArray(d)?d[1]:d);return[Math.min(b,y[0]),Math.max(x,y[1])]},[1/0,-1/0]);return[Math.min(h[0],l[0]),Math.max(h[1],l[1])]},[1/0,-1/0])}return null},YA=function(t,r,n,i,a){var o=r.map(function(u){return Nv(t,u,n,a,i)}).filter(function(u){return!Y(u)});return o&&o.length?o.reduce(function(u,c){return[Math.min(u[0],c[0]),Math.max(u[1],c[1])]},[1/0,-1/0]):null},Dv=function(t,r,n,i,a){var o=r.map(function(c){var l=c.props.dataKey;return n==="number"&&l&&Nv(t,c,l,i)||hn(t,l,n,a)});if(n==="number")return o.reduce(function(c,l){return[Math.min(c[0],l[0]),Math.max(c[1],l[1])]},[1/0,-1/0]);var u={};return o.reduce(function(c,l){for(var f=0,s=l.length;f=2?Me(u[0]-u[1])*2*l:l,r&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(s){var p=a?a.indexOf(s):s;return{coordinate:i(p)+l,value:s,offset:l}});return f.filter(function(s){return!Vr(s.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(s,p){return{coordinate:i(s)+l,value:s,index:p,offset:l}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(s){return{coordinate:i(s)+l,value:s,offset:l}}):i.domain().map(function(s,p){return{coordinate:i(s)+l,value:a?a[s]:s,index:p,offset:l}})},Ko=new WeakMap,si=function(t,r){if(typeof r!="function")return t;Ko.has(t)||Ko.set(t,new WeakMap);var n=Ko.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},Lv=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,u=t.axisType;if(i==="auto")return o==="radial"&&u==="radiusAxis"?{scale:Sn(),realScaleType:"band"}:o==="radial"&&u==="angleAxis"?{scale:Di(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:pn(),realScaleType:"point"}:a==="category"?{scale:Sn(),realScaleType:"band"}:{scale:Di(),realScaleType:"linear"};if(Xt(i)){var c="scale".concat(ga(i));return{scale:(Nf[c]||pn)(),realScaleType:Nf[c]?c:"point"}}return G(i)?{scale:i}:{scale:pn(),realScaleType:"point"}},Yf=1e-4,qv=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),a=Math.min(i[0],i[1])-Yf,o=Math.max(i[0],i[1])+Yf,u=t(r[0]),c=t(r[n-1]);(uo||co)&&t.domain([r[0],r[n-1]])}},ZA=function(t,r){if(!t)return null;for(var n=0,i=t.length;ni)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]=0?(t[u][n][0]=a,t[u][n][1]=a+c,a=t[u][n][1]):(t[u][n][0]=o,t[u][n][1]=o+c,o=t[u][n][1])}},e1=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n=0?(t[o][n][0]=a,t[o][n][1]=a+u,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},t1={sign:QA,expand:Hg,none:xr,silhouette:Kg,wiggle:Vg,positive:e1},r1=function(t,r,n){var i=r.map(function(u){return u.props.dataKey}),a=t1[n],o=Ug().keys(i).value(function(u,c){return+Oe(u,c,0)}).order(Mu).offset(a);return o(t)},n1=function(t,r,n,i,a,o){if(!t)return null;var u=o?r.reverse():r,c={},l=u.reduce(function(s,p){var h,y=(h=p.type)!==null&&h!==void 0&&h.defaultProps?de(de({},p.type.defaultProps),p.props):p.props,v=y.stackId,d=y.hide;if(d)return s;var b=y[n],x=s[b]||{hasStack:!1,stackGroups:{}};if(Ae(v)){var w=x.stackGroups[v]||{numericAxisId:n,cateAxisId:i,items:[]};w.items.push(p),x.hasStack=!0,x.stackGroups[v]=w}else x.stackGroups[Gr("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[p]};return de(de({},s),{},gr({},b,x))},c),f={};return Object.keys(l).reduce(function(s,p){var h=l[p];if(h.hasStack){var y={};h.stackGroups=Object.keys(h.stackGroups).reduce(function(v,d){var b=h.stackGroups[d];return de(de({},v),{},gr({},d,{numericAxisId:n,cateAxisId:i,items:b.items,stackedData:r1(t,b.items,a)}))},y)}return de(de({},s),{},gr({},p,h))},f)},Fv=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,u=r.allowDecimals,c=n||r.scale;if(c!=="auto"&&c!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var l=t.domain();if(!l.length)return null;var f=mA(l,a,u);return t.domain([$a(f),_t(f)]),{niceTicks:f}}if(a&&i==="number"){var s=t.domain(),p=gA(s,a,u);return{niceTicks:p}}return null};function Zf(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Y(i[t.dataKey])){var u=mi(r,"value",i[t.dataKey]);if(u)return u.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var c=Oe(i,Y(o)?t.dataKey:o);return Y(c)?null:t.scale(c)}var Jf=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,u=t.index;if(r.type==="category")return n[u]?n[u].coordinate+i:null;var c=Oe(o,r.dataKey,r.domain[u]);return Y(c)?null:r.scale(c)-a/2+i},i1=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return i<=0&&a>=0?0:a<0?a:i}return n[0]},a1=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?de(de({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(Ae(a)){var o=r[a];if(o){var u=o.items.indexOf(t);return u>=0?o.stackedData[u]:null}}return null},o1=function(t){return t.reduce(function(r,n){return[$a(n.concat([r[0]]).filter(R)),_t(n.concat([r[1]]).filter(R))]},[1/0,-1/0])},Wv=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],u=o.stackedData,c=u.reduce(function(l,f){var s=o1(f.slice(r,n+1));return[Math.min(l[0],s[0]),Math.max(l[1],s[1])]},[1/0,-1/0]);return[Math.min(c[0],i[0]),Math.max(c[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},Qf=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ep=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,rc=function(t,r,n){if(G(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(R(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(Qf.test(t[0])){var a=+Qf.exec(t[0])[1];i[0]=r[0]-a}else G(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(R(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(ep.test(t[1])){var o=+ep.exec(t[1])[1];i[1]=r[1]+o}else G(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},zi=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var a=Yc(r,function(s){return s.coordinate}),o=1/0,u=1,c=a.length;ue.length)&&(t=e.length);for(var r=0,n=new Array(t);r2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},v1=function(t,r,n,i,a){var o=t.width,u=t.height,c=t.startAngle,l=t.endAngle,f=ke(t.cx,o,o/2),s=ke(t.cy,u,u/2),p=Hv(o,u,n),h=ke(t.innerRadius,p,0),y=ke(t.outerRadius,p,p*.8),v=Object.keys(r);return v.reduce(function(d,b){var x=r[b],w=x.domain,O=x.reversed,m;if(Y(x.range))i==="angleAxis"?m=[c,l]:i==="radiusAxis"&&(m=[h,y]),O&&(m=[m[1],m[0]]);else{m=x.range;var g=m,A=l1(g,2);c=A[0],l=A[1]}var P=Lv(x,a),_=P.realScaleType,j=P.scale;j.domain(w).range(m),qv(j);var T=Fv(j,st(st({},x),{},{realScaleType:_})),E=st(st(st({},x),T),{},{range:m,radius:y,realScaleType:_,scale:j,cx:f,cy:s,innerRadius:h,outerRadius:y,startAngle:c,endAngle:l});return st(st({},d),{},Uv({},b,E))},{})},y1=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return Math.sqrt(Math.pow(n-a,2)+Math.pow(i-o,2))},m1=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,u=y1({x:n,y:i},{x:a,y:o});if(u<=0)return{radius:u};var c=(n-a)/u,l=Math.acos(c);return i>o&&(l=2*Math.PI-l),{radius:u,angle:d1(l),angleInRadian:l}},g1=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return{startAngle:r-o*360,endAngle:n-o*360}},b1=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),u=Math.min(a,o);return t+u*360},ip=function(t,r){var n=t.x,i=t.y,a=m1({x:n,y:i},r),o=a.radius,u=a.angle,c=r.innerRadius,l=r.outerRadius;if(ol)return!1;if(o===0)return!0;var f=g1(r),s=f.startAngle,p=f.endAngle,h=u,y;if(s<=p){for(;h>p;)h-=360;for(;h=s&&h<=p}else{for(;h>s;)h-=360;for(;h=p&&h<=s}return y?st(st({},r),{},{radius:o,angle:b1(h,r)}):null},Kv=function(t){return!B.isValidElement(t)&&!G(t)&&typeof t!="boolean"?t.className:""};function Cn(e){"@babel/helpers - typeof";return Cn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cn(e)}var x1=["offset"];function w1(e){return P1(e)||S1(e)||A1(e)||O1()}function O1(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function A1(e,t){if(e){if(typeof e=="string")return nc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nc(e,t)}}function S1(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function P1(e){if(Array.isArray(e))return nc(e)}function nc(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function E1(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function ap(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function we(e){for(var t=1;t=0?1:-1,w,O;i==="insideStart"?(w=h+x*o,O=v):i==="insideEnd"?(w=y-x*o,O=!v):i==="end"&&(w=y+x*o,O=v),O=b<=0?O:!O;var m=le(l,f,d,w),g=le(l,f,d,w+(O?1:-1)*359),A="M".concat(m.x,",").concat(m.y,` - A`).concat(d,",").concat(d,",0,1,").concat(O?0:1,`, - `).concat(g.x,",").concat(g.y),P=Y(t.id)?Gr("recharts-radial-line-"):t.id;return S.createElement("text",Nn({},n,{dominantBaseline:"central",className:J("recharts-radial-bar-label",u)}),S.createElement("defs",null,S.createElement("path",{id:P,d:A})),S.createElement("textPath",{xlinkHref:"#".concat(P)},r))},C1=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,u=a.cy,c=a.innerRadius,l=a.outerRadius,f=a.startAngle,s=a.endAngle,p=(f+s)/2;if(i==="outside"){var h=le(o,u,l+n,p),y=h.x,v=h.y;return{x:y,y:v,textAnchor:y>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"end"};var d=(c+l)/2,b=le(o,u,d,p),x=b.x,w=b.y;return{x,y:w,textAnchor:"middle",verticalAnchor:"middle"}},N1=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,u=o.x,c=o.y,l=o.width,f=o.height,s=f>=0?1:-1,p=s*i,h=s>0?"end":"start",y=s>0?"start":"end",v=l>=0?1:-1,d=v*i,b=v>0?"end":"start",x=v>0?"start":"end";if(a==="top"){var w={x:u+l/2,y:c-s*i,textAnchor:"middle",verticalAnchor:h};return we(we({},w),n?{height:Math.max(c-n.y,0),width:l}:{})}if(a==="bottom"){var O={x:u+l/2,y:c+f+p,textAnchor:"middle",verticalAnchor:y};return we(we({},O),n?{height:Math.max(n.y+n.height-(c+f),0),width:l}:{})}if(a==="left"){var m={x:u-d,y:c+f/2,textAnchor:b,verticalAnchor:"middle"};return we(we({},m),n?{width:Math.max(m.x-n.x,0),height:f}:{})}if(a==="right"){var g={x:u+l+d,y:c+f/2,textAnchor:x,verticalAnchor:"middle"};return we(we({},g),n?{width:Math.max(n.x+n.width-g.x,0),height:f}:{})}var A=n?{width:l,height:f}:{};return a==="insideLeft"?we({x:u+d,y:c+f/2,textAnchor:x,verticalAnchor:"middle"},A):a==="insideRight"?we({x:u+l-d,y:c+f/2,textAnchor:b,verticalAnchor:"middle"},A):a==="insideTop"?we({x:u+l/2,y:c+p,textAnchor:"middle",verticalAnchor:y},A):a==="insideBottom"?we({x:u+l/2,y:c+f-p,textAnchor:"middle",verticalAnchor:h},A):a==="insideTopLeft"?we({x:u+d,y:c+p,textAnchor:x,verticalAnchor:y},A):a==="insideTopRight"?we({x:u+l-d,y:c+p,textAnchor:b,verticalAnchor:y},A):a==="insideBottomLeft"?we({x:u+d,y:c+f-p,textAnchor:x,verticalAnchor:h},A):a==="insideBottomRight"?we({x:u+l-d,y:c+f-p,textAnchor:b,verticalAnchor:h},A):Kr(a)&&(R(a.x)||Wt(a.x))&&(R(a.y)||Wt(a.y))?we({x:u+ke(a.x,l),y:c+ke(a.y,f),textAnchor:"end",verticalAnchor:"end"},A):we({x:u+l/2,y:c+f/2,textAnchor:"middle",verticalAnchor:"middle"},A)},D1=function(t){return"cx"in t&&R(t.cx)};function _e(e){var t=e.offset,r=t===void 0?5:t,n=_1(e,x1),i=we({offset:r},n),a=i.viewBox,o=i.position,u=i.value,c=i.children,l=i.content,f=i.className,s=f===void 0?"":f,p=i.textBreakAll;if(!a||Y(u)&&Y(c)&&!B.isValidElement(l)&&!G(l))return null;if(B.isValidElement(l))return B.cloneElement(l,i);var h;if(G(l)){if(h=B.createElement(l,i),B.isValidElement(h))return h}else h=M1(i);var y=D1(a),v=H(i,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return I1(i,h,v);var d=y?C1(i):N1(i);return S.createElement(Zt,Nn({className:J("recharts-label",s)},v,d,{breakAll:p}),h)}_e.displayName="Label";var Vv=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,u=t.r,c=t.radius,l=t.innerRadius,f=t.outerRadius,s=t.x,p=t.y,h=t.top,y=t.left,v=t.width,d=t.height,b=t.clockWise,x=t.labelViewBox;if(x)return x;if(R(v)&&R(d)){if(R(s)&&R(p))return{x:s,y:p,width:v,height:d};if(R(h)&&R(y))return{x:h,y,width:v,height:d}}return R(s)&&R(p)?{x:s,y:p,width:0,height:0}:R(r)&&R(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:l||0,outerRadius:f||c||u||0,clockWise:b}:t.viewBox?t.viewBox:{}},R1=function(t,r){return t?t===!0?S.createElement(_e,{key:"label-implicit",viewBox:r}):Ae(t)?S.createElement(_e,{key:"label-implicit",viewBox:r,value:t}):B.isValidElement(t)?t.type===_e?B.cloneElement(t,{key:"label-implicit",viewBox:r}):S.createElement(_e,{key:"label-implicit",content:t,viewBox:r}):G(t)?S.createElement(_e,{key:"label-implicit",content:t,viewBox:r}):Kr(t)?S.createElement(_e,Nn({viewBox:r},t,{key:"label-implicit"})):null:null},B1=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,a=Vv(t),o=Ge(i,_e).map(function(c,l){return B.cloneElement(c,{viewBox:r||a,key:"label-".concat(l)})});if(!n)return o;var u=R1(t.label,r||a);return[u].concat(w1(o))};_e.parseViewBox=Vv;_e.renderCallByParent=B1;var Vo,op;function L1(){if(op)return Vo;op=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return Vo=e,Vo}var q1=L1();const F1=oe(q1);function Dn(e){"@babel/helpers - typeof";return Dn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dn(e)}var W1=["valueAccessor"],z1=["data","dataKey","clockWise","id","textBreakAll"];function U1(e){return G1(e)||V1(e)||K1(e)||H1()}function H1(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function K1(e,t){if(e){if(typeof e=="string")return ic(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ic(e,t)}}function V1(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function G1(e){if(Array.isArray(e))return ic(e)}function ic(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function J1(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Q1=function(t){return Array.isArray(t.value)?F1(t.value):t.value};function yt(e){var t=e.valueAccessor,r=t===void 0?Q1:t,n=lp(e,W1),i=n.data,a=n.dataKey,o=n.clockWise,u=n.id,c=n.textBreakAll,l=lp(n,z1);return!i||!i.length?null:S.createElement(ee,{className:"recharts-label-list"},i.map(function(f,s){var p=Y(a)?r(f,s):Oe(f&&f.payload,a),h=Y(u)?{}:{id:"".concat(u,"-").concat(s)};return S.createElement(_e,Hi({},H(f,!0),l,h,{parentViewBox:f.parentViewBox,value:p,textBreakAll:c,viewBox:_e.parseViewBox(Y(o)?f:cp(cp({},f),{},{clockWise:o})),key:"label-".concat(s),index:s}))}))}yt.displayName="LabelList";function eS(e,t){return e?e===!0?S.createElement(yt,{key:"labelList-implicit",data:t}):S.isValidElement(e)||G(e)?S.createElement(yt,{key:"labelList-implicit",data:t,content:e}):Kr(e)?S.createElement(yt,Hi({data:t},e,{key:"labelList-implicit"})):null:null}function tS(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=Ge(n,yt).map(function(o,u){return B.cloneElement(o,{data:t,key:"labelList-".concat(u)})});if(!r)return i;var a=eS(e.label,t);return[a].concat(U1(i))}yt.renderCallByParent=tS;function Rn(e){"@babel/helpers - typeof";return Rn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rn(e)}function ac(){return ac=Object.assign?Object.assign.bind():function(e){for(var t=1;t180),",").concat(+(o>l),`, - `).concat(s.x,",").concat(s.y,` - `);if(i>0){var h=le(r,n,i,o),y=le(r,n,i,l);p+="L ".concat(y.x,",").concat(y.y,` - A `).concat(i,",").concat(i,`,0, - `).concat(+(Math.abs(c)>180),",").concat(+(o<=l),`, - `).concat(h.x,",").concat(h.y," Z")}else p+="L ".concat(r,",").concat(n," Z");return p},oS=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,u=t.forceCornerRadius,c=t.cornerIsExternal,l=t.startAngle,f=t.endAngle,s=Me(f-l),p=fi({cx:r,cy:n,radius:a,angle:l,sign:s,cornerRadius:o,cornerIsExternal:c}),h=p.circleTangency,y=p.lineTangency,v=p.theta,d=fi({cx:r,cy:n,radius:a,angle:f,sign:-s,cornerRadius:o,cornerIsExternal:c}),b=d.circleTangency,x=d.lineTangency,w=d.theta,O=c?Math.abs(l-f):Math.abs(l-f)-v-w;if(O<0)return u?"M ".concat(y.x,",").concat(y.y,` - a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0 - a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0 - `):Gv({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:l,endAngle:f});var m="M ".concat(y.x,",").concat(y.y,` - A`).concat(o,",").concat(o,",0,0,").concat(+(s<0),",").concat(h.x,",").concat(h.y,` - A`).concat(a,",").concat(a,",0,").concat(+(O>180),",").concat(+(s<0),",").concat(b.x,",").concat(b.y,` - A`).concat(o,",").concat(o,",0,0,").concat(+(s<0),",").concat(x.x,",").concat(x.y,` - `);if(i>0){var g=fi({cx:r,cy:n,radius:i,angle:l,sign:s,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),A=g.circleTangency,P=g.lineTangency,_=g.theta,j=fi({cx:r,cy:n,radius:i,angle:f,sign:-s,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),T=j.circleTangency,E=j.lineTangency,I=j.theta,k=c?Math.abs(l-f):Math.abs(l-f)-_-I;if(k<0&&o===0)return"".concat(m,"L").concat(r,",").concat(n,"Z");m+="L".concat(E.x,",").concat(E.y,` - A`).concat(o,",").concat(o,",0,0,").concat(+(s<0),",").concat(T.x,",").concat(T.y,` - A`).concat(i,",").concat(i,",0,").concat(+(k>180),",").concat(+(s>0),",").concat(A.x,",").concat(A.y,` - A`).concat(o,",").concat(o,",0,0,").concat(+(s<0),",").concat(P.x,",").concat(P.y,"Z")}else m+="L".concat(r,",").concat(n,"Z");return m},uS={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Xv=function(t){var r=fp(fp({},uS),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,u=r.cornerRadius,c=r.forceCornerRadius,l=r.cornerIsExternal,f=r.startAngle,s=r.endAngle,p=r.className;if(o0&&Math.abs(f-s)<360?d=oS({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(v,y/2),forceCornerRadius:c,cornerIsExternal:l,startAngle:f,endAngle:s}):d=Gv({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:s}),S.createElement("path",ac({},H(r,!0),{className:h,d,role:"img"}))};function Bn(e){"@babel/helpers - typeof";return Bn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bn(e)}function oc(){return oc=Object.assign?Object.assign.bind():function(e){for(var t=1;tbS.call(e,t));function ir(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const OS="__v",AS="__o",SS="_owner",{getOwnPropertyDescriptor:bp,keys:xp}=Object;function PS(e,t){return e.byteLength===t.byteLength&&Ki(new Uint8Array(e),new Uint8Array(t))}function _S(e,t,r){let n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function ES(e,t){return e.byteLength===t.byteLength&&Ki(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function TS(e,t){return ir(e.getTime(),t.getTime())}function jS(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function $S(e,t){return e===t}function wp(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.entries();let o,u,c=0;for(;(o=a.next())&&!o.done;){const l=t.entries();let f=!1,s=0;for(;(u=l.next())&&!u.done;){if(i[s]){s++;continue}const p=o.value,h=u.value;if(r.equals(p[0],h[0],c,s,e,t,r)&&r.equals(p[1],h[1],p[0],h[0],e,t,r)){f=i[s]=!0;break}s++}if(!f)return!1;c++}return!0}const MS=ir;function kS(e,t,r){const n=xp(e);let i=n.length;if(xp(t).length!==i)return!1;for(;i-- >0;)if(!Yv(e,t,r,n[i]))return!1;return!0}function cn(e,t,r){const n=gp(e);let i=n.length;if(gp(t).length!==i)return!1;let a,o,u;for(;i-- >0;)if(a=n[i],!Yv(e,t,r,a)||(o=bp(e,a),u=bp(t,a),(o||u)&&(!o||!u||o.configurable!==u.configurable||o.enumerable!==u.enumerable||o.writable!==u.writable)))return!1;return!0}function IS(e,t){return ir(e.valueOf(),t.valueOf())}function CS(e,t){return e.source===t.source&&e.flags===t.flags}function Op(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.values();let o,u;for(;(o=a.next())&&!o.done;){const c=t.values();let l=!1,f=0;for(;(u=c.next())&&!u.done;){if(!i[f]&&r.equals(o.value,u.value,o.value,u.value,e,t,r)){l=i[f]=!0;break}f++}if(!l)return!1}return!0}function Ki(e,t){let r=e.byteLength;if(t.byteLength!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function NS(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function Yv(e,t,r,n){return(n===SS||n===AS||n===OS)&&(e.$$typeof||t.$$typeof)?!0:wS(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}const DS="[object ArrayBuffer]",RS="[object Arguments]",BS="[object Boolean]",LS="[object DataView]",qS="[object Date]",FS="[object Error]",WS="[object Map]",zS="[object Number]",US="[object Object]",HS="[object RegExp]",KS="[object Set]",VS="[object String]",GS={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},XS="[object URL]",YS=Object.prototype.toString;function ZS({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:u,areObjectsEqual:c,arePrimitiveWrappersEqual:l,areRegExpsEqual:f,areSetsEqual:s,areTypedArraysEqual:p,areUrlsEqual:h,unknownTagComparators:y}){return function(d,b,x){if(d===b)return!0;if(d==null||b==null)return!1;const w=typeof d;if(w!==typeof b)return!1;if(w!=="object")return w==="number"?u(d,b,x):w==="function"?a(d,b,x):!1;const O=d.constructor;if(O!==b.constructor)return!1;if(O===Object)return c(d,b,x);if(Array.isArray(d))return t(d,b,x);if(O===Date)return n(d,b,x);if(O===RegExp)return f(d,b,x);if(O===Map)return o(d,b,x);if(O===Set)return s(d,b,x);const m=YS.call(d);if(m===qS)return n(d,b,x);if(m===HS)return f(d,b,x);if(m===WS)return o(d,b,x);if(m===KS)return s(d,b,x);if(m===US)return typeof d.then!="function"&&typeof b.then!="function"&&c(d,b,x);if(m===XS)return h(d,b,x);if(m===FS)return i(d,b,x);if(m===RS)return c(d,b,x);if(GS[m])return p(d,b,x);if(m===DS)return e(d,b,x);if(m===LS)return r(d,b,x);if(m===BS||m===zS||m===VS)return l(d,b,x);if(y){let g=y[m];if(!g){const A=xS(d);A&&(g=y[A])}if(g)return g(d,b,x)}return!1}}function JS({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:PS,areArraysEqual:r?cn:_S,areDataViewsEqual:ES,areDatesEqual:TS,areErrorsEqual:jS,areFunctionsEqual:$S,areMapsEqual:r?Zo(wp,cn):wp,areNumbersEqual:MS,areObjectsEqual:r?cn:kS,arePrimitiveWrappersEqual:IS,areRegExpsEqual:CS,areSetsEqual:r?Zo(Op,cn):Op,areTypedArraysEqual:r?Zo(Ki,cn):Ki,areUrlsEqual:NS,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){const i=hi(n.areArraysEqual),a=hi(n.areMapsEqual),o=hi(n.areObjectsEqual),u=hi(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:o,areSetsEqual:u})}return n}function QS(e){return function(t,r,n,i,a,o,u){return e(t,r,u)}}function eP({circular:e,comparator:t,createState:r,equals:n,strict:i}){if(r)return function(u,c){const{cache:l=e?new WeakMap:void 0,meta:f}=r();return t(u,c,{cache:l,equals:n,meta:f,strict:i})};if(e)return function(u,c){return t(u,c,{cache:new WeakMap,equals:n,meta:void 0,strict:i})};const a={cache:void 0,equals:n,meta:void 0,strict:i};return function(u,c){return t(u,c,a)}}const tP=Mt();Mt({strict:!0});Mt({circular:!0});Mt({circular:!0,strict:!0});Mt({createInternalComparator:()=>ir});Mt({strict:!0,createInternalComparator:()=>ir});Mt({circular:!0,createInternalComparator:()=>ir});Mt({circular:!0,createInternalComparator:()=>ir,strict:!0});function Mt(e={}){const{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,a=JS(e),o=ZS(a),u=r?r(o):QS(o);return eP({circular:t,comparator:o,createState:n,equals:u,strict:i})}function rP(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function Ap(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>t?(e(a),r=-1):rP(i)};requestAnimationFrame(n)}function uc(e){"@babel/helpers - typeof";return uc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uc(e)}function nP(e){return uP(e)||oP(e)||aP(e)||iP()}function iP(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aP(e,t){if(e){if(typeof e=="string")return Sp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Sp(e,t)}}function Sp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r1?1:b<0?0:b},v=function(b){for(var x=b>1?1:b,w=x,O=0;O<8;++O){var m=s(w)-x,g=h(w);if(Math.abs(m-x)0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,u=o===void 0?17:o,c=function(f,s,p){var h=-(f-s)*n,y=p*a,v=p+(h-y)*u/1e3,d=p*u/1e3+f;return Math.abs(d-s)e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function BP(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function Jo(e){return WP(e)||FP(e)||qP(e)||LP()}function LP(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qP(e,t){if(e){if(typeof e=="string")return pc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pc(e,t)}}function FP(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function WP(e){if(Array.isArray(e))return pc(e)}function pc(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Xi(e){return Xi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Xi(e)}var ut=(function(e){VP(r,e);var t=GP(r);function r(n,i){var a;zP(this,r),a=t.call(this,n,i);var o=a.props,u=o.isActive,c=o.attributeName,l=o.from,f=o.to,s=o.steps,p=o.children,h=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(vc(a)),a.changeStyle=a.changeStyle.bind(vc(a)),!u||h<=0)return a.state={style:{}},typeof p=="function"&&(a.state={style:f}),dc(a);if(s&&s.length)a.state={style:s[0].style};else if(l){if(typeof p=="function")return a.state={style:l},dc(a);a.state={style:c?sn({},c,l):l}}else a.state={style:{}};return a}return HP(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,u=a.canBegin,c=a.attributeName,l=a.shouldReAnimate,f=a.to,s=a.from,p=this.state.style;if(u){if(!o){var h={style:c?sn({},c,f):f};this.state&&p&&(c&&p[c]!==f||!c&&p!==f)&&this.setState(h);return}if(!(tP(i.to,f)&&i.canBegin&&i.isActive)){var y=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var v=y||l?s:i.to;if(this.state&&p){var d={style:c?sn({},c,v):v};(c&&p[c]!==v||!c&&p!==v)&&this.setState(d)}this.runAnimation(Ze(Ze({},this.props),{},{from:v,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,u=i.to,c=i.duration,l=i.easing,f=i.begin,s=i.onAnimationEnd,p=i.onAnimationStart,h=NP(o,u,SP(l),c,this.changeStyle),y=function(){a.stopJSAnimation=h()};this.manager.start([p,f,y,c,s])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,u=i.begin,c=i.onAnimationStart,l=o[0],f=l.style,s=l.duration,p=s===void 0?0:s,h=function(v,d,b){if(b===0)return v;var x=d.duration,w=d.easing,O=w===void 0?"ease":w,m=d.style,g=d.properties,A=d.onAnimationEnd,P=b>0?o[b-1]:d,_=g||Object.keys(m);if(typeof O=="function"||O==="spring")return[].concat(Jo(v),[a.runJSAnimation.bind(a,{from:P.style,to:m,duration:x,easing:O}),x]);var j=Ep(_,x,O),T=Ze(Ze(Ze({},P.style),m),{},{transition:j});return[].concat(Jo(v),[T,x,A]).filter(pP)};return this.manager.start([c].concat(Jo(o.reduce(h,[f,Math.max(p,u)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=cP());var a=i.begin,o=i.duration,u=i.attributeName,c=i.to,l=i.easing,f=i.onAnimationStart,s=i.onAnimationEnd,p=i.steps,h=i.children,y=this.manager;if(this.unSubscribe=y.subscribe(this.handleStyleChange),typeof l=="function"||typeof h=="function"||l==="spring"){this.runJSAnimation(i);return}if(p.length>1){this.runStepAnimation(i);return}var v=u?sn({},u,c):c,d=Ep(Object.keys(v),o,l);y.start([f,a,Ze(Ze({},v),{},{transition:d}),o,s])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var u=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var c=RP(i,DP),l=B.Children.count(a),f=this.state.style;if(typeof a=="function")return a(f);if(!u||l===0||o<=0)return a;var s=function(h){var y=h.props,v=y.style,d=v===void 0?{}:v,b=y.className,x=B.cloneElement(h,Ze(Ze({},c),{},{style:Ze(Ze({},d),f),className:b}));return x};return l===1?s(B.Children.only(a)):S.createElement("div",null,B.Children.map(a,function(p){return s(p)}))}}]),r})(B.PureComponent);ut.displayName="Animate";ut.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};ut.propTypes={from:ne.oneOfType([ne.object,ne.string]),to:ne.oneOfType([ne.object,ne.string]),attributeName:ne.string,duration:ne.number,begin:ne.number,easing:ne.oneOfType([ne.string,ne.func]),steps:ne.arrayOf(ne.shape({duration:ne.number.isRequired,style:ne.object.isRequired,easing:ne.oneOfType([ne.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ne.func]),properties:ne.arrayOf("string"),onAnimationEnd:ne.func})),children:ne.oneOfType([ne.node,ne.func]),isActive:ne.bool,canBegin:ne.bool,onAnimationEnd:ne.func,shouldReAnimate:ne.bool,onAnimationStart:ne.func,onAnimationReStart:ne.func};function Fn(e){"@babel/helpers - typeof";return Fn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fn(e)}function Yi(){return Yi=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0?1:-1,c=n>=0?1:-1,l=i>=0&&n>=0||i<0&&n<0?1:0,f;if(o>0&&a instanceof Array){for(var s=[0,0,0,0],p=0,h=4;po?o:a[p];f="M".concat(t,",").concat(r+u*s[0]),s[0]>0&&(f+="A ".concat(s[0],",").concat(s[0],",0,0,").concat(l,",").concat(t+c*s[0],",").concat(r)),f+="L ".concat(t+n-c*s[1],",").concat(r),s[1]>0&&(f+="A ".concat(s[1],",").concat(s[1],",0,0,").concat(l,`, - `).concat(t+n,",").concat(r+u*s[1])),f+="L ".concat(t+n,",").concat(r+i-u*s[2]),s[2]>0&&(f+="A ".concat(s[2],",").concat(s[2],",0,0,").concat(l,`, - `).concat(t+n-c*s[2],",").concat(r+i)),f+="L ".concat(t+c*s[3],",").concat(r+i),s[3]>0&&(f+="A ".concat(s[3],",").concat(s[3],",0,0,").concat(l,`, - `).concat(t,",").concat(r+i-u*s[3])),f+="Z"}else if(o>0&&a===+a&&a>0){var y=Math.min(o,a);f="M ".concat(t,",").concat(r+u*y,` - A `).concat(y,",").concat(y,",0,0,").concat(l,",").concat(t+c*y,",").concat(r,` - L `).concat(t+n-c*y,",").concat(r,` - A `).concat(y,",").concat(y,",0,0,").concat(l,",").concat(t+n,",").concat(r+u*y,` - L `).concat(t+n,",").concat(r+i-u*y,` - A `).concat(y,",").concat(y,",0,0,").concat(l,",").concat(t+n-c*y,",").concat(r+i,` - L `).concat(t+c*y,",").concat(r+i,` - A `).concat(y,",").concat(y,",0,0,").concat(l,",").concat(t,",").concat(r+i-u*y," Z")}else f="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return f},i_=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,u=r.width,c=r.height;if(Math.abs(u)>0&&Math.abs(c)>0){var l=Math.min(a,a+u),f=Math.max(a,a+u),s=Math.min(o,o+c),p=Math.max(o,o+c);return n>=l&&n<=f&&i>=s&&i<=p}return!1},a_={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Sl=function(t){var r=Np(Np({},a_),t),n=B.useRef(),i=B.useState(-1),a=YP(i,2),o=a[0],u=a[1];B.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var O=n.current.getTotalLength();O&&u(O)}catch{}},[]);var c=r.x,l=r.y,f=r.width,s=r.height,p=r.radius,h=r.className,y=r.animationEasing,v=r.animationDuration,d=r.animationBegin,b=r.isAnimationActive,x=r.isUpdateAnimationActive;if(c!==+c||l!==+l||f!==+f||s!==+s||f===0||s===0)return null;var w=J("recharts-rectangle",h);return x?S.createElement(ut,{canBegin:o>0,from:{width:f,height:s,x:c,y:l},to:{width:f,height:s,x:c,y:l},duration:v,animationEasing:y,isActive:x},function(O){var m=O.width,g=O.height,A=O.x,P=O.y;return S.createElement(ut,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:v,isActive:b,easing:y},S.createElement("path",Yi({},H(r,!0),{className:w,d:Dp(A,P,m,g,p),ref:n})))}):S.createElement("path",Yi({},H(r,!0),{className:w,d:Dp(c,l,f,s,p)}))},o_=["points","className","baseLinePoints","connectNulls"];function fr(){return fr=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function c_(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Rp(e){return p_(e)||f_(e)||s_(e)||l_()}function l_(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s_(e,t){if(e){if(typeof e=="string")return yc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return yc(e,t)}}function f_(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function p_(e){if(Array.isArray(e))return yc(e)}function yc(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){Bp(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),Bp(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},vn=function(t,r){var n=h_(t);r&&(n=[n.reduce(function(a,o){return[].concat(Rp(a),Rp(o))},[])]);var i=n.map(function(a){return a.reduce(function(o,u,c){return"".concat(o).concat(c===0?"M":"L").concat(u.x,",").concat(u.y)},"")}).join("");return n.length===1?"".concat(i,"Z"):i},d_=function(t,r,n){var i=vn(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(vn(r.reverse(),n).slice(1))},v_=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,a=t.connectNulls,o=u_(t,o_);if(!r||!r.length)return null;var u=J("recharts-polygon",n);if(i&&i.length){var c=o.stroke&&o.stroke!=="none",l=d_(r,i,a);return S.createElement("g",{className:u},S.createElement("path",fr({},H(o,!0),{fill:l.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:l})),c?S.createElement("path",fr({},H(o,!0),{fill:"none",d:vn(r,a)})):null,c?S.createElement("path",fr({},H(o,!0),{fill:"none",d:vn(i,a)})):null)}var f=vn(r,a);return S.createElement("path",fr({},H(o,!0),{fill:f.slice(-1)==="Z"?o.fill:"none",className:u,d:f}))};function mc(){return mc=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function O_(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var A_=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},S_=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,u=o===void 0?0:o,c=t.left,l=c===void 0?0:c,f=t.width,s=f===void 0?0:f,p=t.height,h=p===void 0?0:p,y=t.className,v=w_(t,y_),d=m_({x:n,y:a,top:u,left:l,width:s,height:h},v);return!R(n)||!R(a)||!R(s)||!R(h)||!R(u)||!R(l)?null:S.createElement("path",gc({},H(d,!0),{className:J("recharts-cross",y),d:A_(n,a,s,h,u,l)}))},Qo,qp;function P_(){if(qp)return Qo;qp=1;var e=ja(),t=mv(),r=xt();function n(i,a){return i&&i.length?e(i,r(a,2),t):void 0}return Qo=n,Qo}var __=P_();const E_=oe(__);var eu,Fp;function T_(){if(Fp)return eu;Fp=1;var e=ja(),t=xt(),r=gv();function n(i,a){return i&&i.length?e(i,t(a,2),r):void 0}return eu=n,eu}var j_=T_();const $_=oe(j_);var M_=["cx","cy","angle","ticks","axisLine"],k_=["ticks","tick","angle","tickFormatter","stroke"];function Mr(e){"@babel/helpers - typeof";return Mr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mr(e)}function yn(){return yn=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function I_(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function C_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Up(e,t){for(var r=0;rVp?o=i==="outer"?"start":"end":a<-Vp?o=i==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.radius,u=n.axisLine,c=n.axisLineType,l=Bt(Bt({},H(this.props,!1)),{},{fill:"none"},H(u,!1));if(c==="circle")return S.createElement(Ca,Ft({className:"recharts-polar-angle-axis-line"},l,{cx:i,cy:a,r:o}));var f=this.props.ticks,s=f.map(function(p){return le(i,a,o,p.coordinate)});return S.createElement(v_,Ft({className:"recharts-polar-angle-axis-line"},l,{points:s}))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,u=i.tickLine,c=i.tickFormatter,l=i.stroke,f=H(this.props,!1),s=H(o,!1),p=Bt(Bt({},f),{},{fill:"none"},H(u,!1)),h=a.map(function(y,v){var d=n.getTickLineCoord(y),b=n.getTickTextAnchor(y),x=Bt(Bt(Bt({textAnchor:b},f),{},{stroke:"none",fill:l},s),{},{index:v,payload:y,x:d.x2,y:d.y2});return S.createElement(ee,Ft({className:J("recharts-polar-angle-axis-tick",Kv(o)),key:"tick-".concat(y.coordinate)},Yt(n.props,y,v)),u&&S.createElement("line",Ft({className:"recharts-polar-angle-axis-tick-line"},p,d)),o&&t.renderTickItem(o,x,c?c(y.value,v):y.value))});return S.createElement(ee,{className:"recharts-polar-angle-axis-ticks"},h)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.radius,o=n.axisLine;return a<=0||!i||!i.length?null:S.createElement(ee,{className:J("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,a){var o;return S.isValidElement(n)?o=S.cloneElement(n,i):G(n)?o=n(i):o=S.createElement(Zt,Ft({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])})(B.PureComponent);Ra(Ba,"displayName","PolarAngleAxis");Ra(Ba,"axisType","angleAxis");Ra(Ba,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var X_=wm();const Y_=oe(X_);var tu,Gp;function Z_(){if(Gp)return tu;Gp=1;var e=Jh(),t=Qh(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return tu=n,tu}var J_=Z_();const Q_=oe(J_);function zn(e){"@babel/helpers - typeof";return zn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zn(e)}function Qi(){return Qi=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0,from:{upperWidth:0,lowerWidth:0,height:p,x:c,y:l},to:{upperWidth:f,lowerWidth:s,height:p,x:c,y:l},duration:v,animationEasing:y,isActive:b},function(w){var O=w.upperWidth,m=w.lowerWidth,g=w.height,A=w.x,P=w.y;return S.createElement(ut,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:v,easing:y},S.createElement("path",Qi({},H(r,!0),{className:x,d:Jp(A,P,O,m,g),ref:n})))}):S.createElement("g",null,S.createElement("path",Qi({},H(r,!0),{className:x,d:Jp(c,l,f,s,p)})))},sE=["option","shapeType","propTransformer","activeClassName","isActive"];function Un(e){"@babel/helpers - typeof";return Un=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Un(e)}function fE(e,t){if(e==null)return{};var r=pE(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function pE(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Qp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ea(e){for(var t=1;t0?We(w,"paddingAngle",0):0;if(m){var A=De(m.endAngle-m.startAngle,w.endAngle-w.startAngle),P=ue(ue({},w),{},{startAngle:x+g,endAngle:x+A(v)+g});d.push(P),x=P.endAngle}else{var _=w.endAngle,j=w.startAngle,T=De(0,_-j),E=T(v),I=ue(ue({},w),{},{startAngle:x+g,endAngle:x+E+g});d.push(I),x=I.endAngle}}),S.createElement(ee,null,n.renderSectorsStatically(d))})}},{key:"attachKeyboardHandlers",value:function(n){var i=this;n.onkeydown=function(a){if(!a.altKey)switch(a.key){case"ArrowLeft":{var o=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[o].focus(),i.setState({sectorToFocus:o});break}case"ArrowRight":{var u=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[u].focus(),i.setState({sectorToFocus:u});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var n=this.props,i=n.sectors,a=n.isAnimationActive,o=this.state.prevSectors;return a&&i&&i.length&&(!o||!Tr(o,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var n=this,i=this.props,a=i.hide,o=i.sectors,u=i.className,c=i.label,l=i.cx,f=i.cy,s=i.innerRadius,p=i.outerRadius,h=i.isAnimationActive,y=this.state.isAnimationFinished;if(a||!o||!o.length||!R(l)||!R(f)||!R(s)||!R(p))return null;var v=J("recharts-pie",u);return S.createElement(ee,{tabIndex:this.props.rootTabIndex,className:v,ref:function(b){n.pieRef=b}},this.renderSectors(),c&&this.renderLabels(o),_e.renderCallByParent(this.props,null,!1),(!h||y)&&yt.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return i.prevIsAnimationActive!==n.isAnimationActive?{prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:[],isAnimationFinished:!0}:n.isAnimationActive&&n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:n.sectors!==i.curSectors?{curSectors:n.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(n,i){return n>i?"start":n=360?x:x-1)*c,O=d-x*h-w,m=i.reduce(function(P,_){var j=Oe(_,b,0);return P+(R(j)?j:0)},0),g;if(m>0){var A;g=i.map(function(P,_){var j=Oe(P,b,0),T=Oe(P,f,_),E=(R(j)?j:0)/m,I;_?I=A.endAngle+Me(v)*c*(j!==0?1:0):I=o;var k=I+Me(v)*((j!==0?h:0)+E*O),M=(I+k)/2,C=(y.innerRadius+y.outerRadius)/2,N=[{name:T,value:j,payload:P,dataKey:b,type:p}],L=le(y.cx,y.cy,C,M);return A=ue(ue(ue({percent:E,cornerRadius:a,name:T,tooltipPayload:N,midAngle:M,middleRadius:C,tooltipPosition:L},P),y),{},{value:Oe(P,b),startAngle:I,endAngle:k,payload:P,paddingAngle:Me(v)*c}),A})}return ue(ue({},y),{},{sectors:g,data:i})});var ru,nh;function IE(){if(nh)return ru;nh=1;var e=Math.ceil,t=Math.max;function r(n,i,a,o){for(var u=-1,c=t(e((i-n)/(a||1)),0),l=Array(c);c--;)l[o?c:++u]=n,n+=a;return l}return ru=r,ru}var nu,ih;function sy(){if(ih)return nu;ih=1;var e=Om(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var a=i<0?-1:1;return a*r}return i===i?i:0}return nu=n,nu}var iu,ah;function CE(){if(ah)return iu;ah=1;var e=IE(),t=ma(),r=sy();function n(i){return function(a,o,u){return u&&typeof u!="number"&&t(a,o,u)&&(o=u=void 0),a=r(a),o===void 0?(o=a,a=0):o=r(o),u=u===void 0?a0&&n.handleDrag(i.changedTouches[0])}),Le(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,u=i.startIndex;o?.({endIndex:a,startIndex:u})}),n.detachDragEndListener()}),Le(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Le(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),Le(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),Le(n,"handleSlideDragStart",function(i){var a=fh(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return KE(t,e),WE(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,u=this.props,c=u.gap,l=u.data,f=l.length-1,s=Math.min(i,a),p=Math.max(i,a),h=t.getIndexInRange(o,s),y=t.getIndexInRange(o,p);return{startIndex:h-h%c,endIndex:y===f?f:y-y%c}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,u=i.dataKey,c=Oe(a[n],u,n);return G(o)?o(c,n):c}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,u=i.endX,c=this.props,l=c.x,f=c.width,s=c.travellerWidth,p=c.startIndex,h=c.endIndex,y=c.onChange,v=n.pageX-a;v>0?v=Math.min(v,l+f-s-u,l+f-s-o):v<0&&(v=Math.max(v,l-o,l-u));var d=this.getIndex({startX:o+v,endX:u+v});(d.startIndex!==p||d.endIndex!==h)&&y&&y(d),this.setState({startX:o+v,endX:u+v,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=fh(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,u=i.endX,c=i.startX,l=this.state[o],f=this.props,s=f.x,p=f.width,h=f.travellerWidth,y=f.onChange,v=f.gap,d=f.data,b={startX:this.state.startX,endX:this.state.endX},x=n.pageX-a;x>0?x=Math.min(x,s+p-h-l):x<0&&(x=Math.max(x,s-l)),b[o]=l+x;var w=this.getIndex(b),O=w.startIndex,m=w.endIndex,g=function(){var P=d.length-1;return o==="startX"&&(u>c?O%v===0:m%v===0)||uc?m%v===0:O%v===0)||u>c&&m===P};this.setState(Le(Le({},o,l+x),"brushMoveStartX",n.pageX),function(){y&&g()&&y(w)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,u=o.scaleValues,c=o.startX,l=o.endX,f=this.state[i],s=u.indexOf(f);if(s!==-1){var p=s+n;if(!(p===-1||p>=u.length)){var h=u[p];i==="startX"&&h>=l||i==="endX"&&h<=c||this.setState(Le({},i,h),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,c=n.fill,l=n.stroke;return S.createElement("rect",{stroke:l,fill:c,x:i,y:a,width:o,height:u})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,c=n.data,l=n.children,f=n.padding,s=B.Children.only(l);return s?S.cloneElement(s,{x:i,y:a,width:o,height:u,margin:f,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,u=this,c=this.props,l=c.y,f=c.travellerWidth,s=c.height,p=c.traveller,h=c.ariaLabel,y=c.data,v=c.startIndex,d=c.endIndex,b=Math.max(n,this.props.x),x=ou(ou({},H(this.props,!1)),{},{x:b,y:l,width:f,height:s}),w=h||"Min value: ".concat((a=y[v])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=y[d])===null||o===void 0?void 0:o.name);return S.createElement(ee,{tabIndex:0,role:"slider","aria-label":w,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(m){["ArrowLeft","ArrowRight"].includes(m.key)&&(m.preventDefault(),m.stopPropagation(),u.handleTravellerMoveKeyboard(m.key==="ArrowRight"?1:-1,i))},onFocus:function(){u.setState({isTravellerFocused:!0})},onBlur:function(){u.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(p,x))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,u=a.height,c=a.stroke,l=a.travellerWidth,f=Math.min(n,i)+l,s=Math.max(Math.abs(i-n)-l,0);return S.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:c,fillOpacity:.2,x:f,y:o,width:s,height:u})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,u=n.height,c=n.travellerWidth,l=n.stroke,f=this.state,s=f.startX,p=f.endX,h=5,y={pointerEvents:"none",fill:l};return S.createElement(ee,{className:"recharts-brush-texts"},S.createElement(Zt,na({textAnchor:"end",verticalAnchor:"middle",x:Math.min(s,p)-h,y:o+u/2},y),this.getTextOfTick(i)),S.createElement(Zt,na({textAnchor:"start",verticalAnchor:"middle",x:Math.max(s,p)+c+h,y:o+u/2},y),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,u=n.x,c=n.y,l=n.width,f=n.height,s=n.alwaysShowText,p=this.state,h=p.startX,y=p.endX,v=p.isTextActive,d=p.isSlideMoving,b=p.isTravellerMoving,x=p.isTravellerFocused;if(!i||!i.length||!R(u)||!R(c)||!R(l)||!R(f)||l<=0||f<=0)return null;var w=J("recharts-brush",a),O=S.Children.count(o)===1,m=qE("userSelect","none");return S.createElement(ee,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:m},this.renderBackground(),O&&this.renderPanorama(),this.renderSlide(h,y),this.renderTravellerLayer(h,"startX"),this.renderTravellerLayer(y,"endX"),(v||d||b||x||s)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,u=n.height,c=n.stroke,l=Math.floor(a+u/2)-1;return S.createElement(S.Fragment,null,S.createElement("rect",{x:i,y:a,width:o,height:u,fill:c,stroke:"none"}),S.createElement("line",{x1:i+1,y1:l,x2:i+o-1,y2:l,fill:"none",stroke:"#fff"}),S.createElement("line",{x1:i+1,y1:l+2,x2:i+o-1,y2:l+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return S.isValidElement(n)?a=S.cloneElement(n,i):G(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,u=n.x,c=n.travellerWidth,l=n.updateId,f=n.startIndex,s=n.endIndex;if(a!==i.prevData||l!==i.prevUpdateId)return ou({prevData:a,prevTravellerWidth:c,prevUpdateId:l,prevX:u,prevWidth:o},a&&a.length?GE({data:a,width:o,x:u,travellerWidth:c,startIndex:f,endIndex:s}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||u!==i.prevX||c!==i.prevTravellerWidth)){i.scale.range([u,u+o-c]);var p=i.scale.domain().map(function(h){return i.scale(h)});return{prevData:a,prevTravellerWidth:c,prevUpdateId:l,prevX:u,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:p}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,u=a-1;u-o>1;){var c=Math.floor((o+u)/2);n[c]>i?u=c:o=c}return i>=n[u]?u:o}}])})(B.PureComponent);Le(Nr,"displayName","Brush");Le(Nr,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var uu,ph;function XE(){if(ph)return uu;ph=1;var e=nd();function t(r,n){var i;return e(r,function(a,o,u){return i=n(a,o,u),!i}),!!i}return uu=t,uu}var cu,hh;function YE(){if(hh)return cu;hh=1;var e=Am(),t=xt(),r=XE(),n=ya(),i=ma();function a(o,u,c){var l=n(o)?e:r;return c&&i(o,u,c)&&(u=void 0),l(o,t(u,3))}return cu=a,cu}var ZE=YE();const JE=oe(ZE);var at=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},lu,dh;function QE(){if(dh)return lu;dh=1;var e=Sm(),t=Pm(),r=xt();function n(i,a){var o={};return a=r(a,3),t(i,function(u,c,l){e(o,c,a(u,c,l))}),o}return lu=n,lu}var eT=QE();const tT=oe(eT);var su,vh;function rT(){if(vh)return su;vh=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function fT(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function pT(e,t){var r=e.x,n=e.y,i=sT(e,oT),a="".concat(r),o=parseInt(a,10),u="".concat(n),c=parseInt(u,10),l="".concat(t.height||i.height),f=parseInt(l,10),s="".concat(t.width||i.width),p=parseInt(s,10);return ln(ln(ln(ln(ln({},t),i),o?{x:o}:{}),c?{y:c}:{}),{},{height:f,width:p,name:t.name,radius:t.radius})}function bh(e){return S.createElement(uy,Ac({shapeType:"rectangle",propTransformer:pT,activeClassName:"recharts-active-bar"},e))}var hT=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=R(n)||Lm(n);return a?t(n,i):(a||Qt(),r)}},dT=["value","background"],vy;function Dr(e){"@babel/helpers - typeof";return Dr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dr(e)}function vT(e,t){if(e==null)return{};var r=yT(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function yT(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function aa(){return aa=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&Math.abs(M)0&&Math.abs(k)0&&(I=Math.min((se||0)-(k[ve-1]||0),I))}),Number.isFinite(I)){var M=I/E,C=v.layout==="vertical"?n.height:n.width;if(v.padding==="gap"&&(A=M*C/2),v.padding==="no-gap"){var N=ke(t.barCategoryGap,M*C),L=M*C/2;A=L-N-(L-N)/C*N}}}i==="xAxis"?P=[n.left+(w.left||0)+(A||0),n.left+n.width-(w.right||0)-(A||0)]:i==="yAxis"?P=c==="horizontal"?[n.top+n.height-(w.bottom||0),n.top+(w.top||0)]:[n.top+(w.top||0)+(A||0),n.top+n.height-(w.bottom||0)-(A||0)]:P=v.range,m&&(P=[P[1],P[0]]);var q=Lv(v,a,p),U=q.scale,V=q.realScaleType;U.domain(b).range(P),qv(U);var W=Fv(U,Je(Je({},v),{},{realScaleType:V}));i==="xAxis"?(T=d==="top"&&!O||d==="bottom"&&O,_=n.left,j=s[g]-T*v.height):i==="yAxis"&&(T=d==="left"&&!O||d==="right"&&O,_=s[g]-T*v.width,j=n.top);var X=Je(Je(Je({},v),W),{},{realScaleType:V,x:_,y:j,scale:U,width:i==="xAxis"?n.width:v.width,height:i==="yAxis"?n.height:v.height});return X.bandSize=zi(X,W),!v.hide&&i==="xAxis"?s[g]+=(T?-1:1)*X.height:v.hide||(s[g]+=(T?-1:1)*X.width),Je(Je({},h),{},Fa({},y,X))},{})},xy=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return{x:Math.min(n,a),y:Math.min(i,o),width:Math.abs(a-n),height:Math.abs(o-i)}},ET=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return xy({x:r,y:n},{x:i,y:a})},wy=(function(){function e(t){ST(this,e),this.scale=t}return PT(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var u=this.bandwidth?this.bandwidth():0;return this.scale(r)+u}default:return this.scale(r)}if(i){var c=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+c}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])})();Fa(wy,"EPS",1e-4);var Pl=function(t){var r=Object.keys(t).reduce(function(n,i){return Je(Je({},n),{},Fa({},i,wy.create(t[i])))},{});return Je(Je({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,u=a.position;return tT(i,function(c,l){return r[l].apply(c,{bandAware:o,position:u})})},isInRange:function(i){return dy(i,function(a,o){return r[o].isInRange(a)})}})};function TT(e){return(e%180+180)%180}var jT=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=TT(i),o=a*Math.PI/180,u=Math.atan(n/r),c=o>u&&o-1?c[l?a[f]:f]:void 0}}return hu=n,hu}var du,Ph;function MT(){if(Ph)return du;Ph=1;var e=sy();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return du=t,du}var vu,_h;function kT(){if(_h)return vu;_h=1;var e=_d(),t=xt(),r=MT(),n=Math.max;function i(a,o,u){var c=a==null?0:a.length;if(!c)return-1;var l=u==null?0:r(u);return l<0&&(l=n(c+l,0)),e(a,t(o,3),l)}return vu=i,vu}var yu,Eh;function IT(){if(Eh)return yu;Eh=1;var e=$T(),t=kT(),r=e(t);return yu=r,yu}var CT=IT();const NT=oe(CT);var DT=Tm();const RT=oe(DT);var BT=RT(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),_l=B.createContext(void 0),El=B.createContext(void 0),Oy=B.createContext(void 0),Ay=B.createContext({}),Sy=B.createContext(void 0),Py=B.createContext(0),_y=B.createContext(0),Th=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,u=t.children,c=t.width,l=t.height,f=BT(a);return S.createElement(_l.Provider,{value:n},S.createElement(El.Provider,{value:i},S.createElement(Ay.Provider,{value:a},S.createElement(Oy.Provider,{value:f},S.createElement(Sy.Provider,{value:o},S.createElement(Py.Provider,{value:l},S.createElement(_y.Provider,{value:c},u)))))))},LT=function(){return B.useContext(Sy)},Ey=function(t){var r=B.useContext(_l);r==null&&Qt();var n=r[t];return n==null&&Qt(),n},qT=function(){var t=B.useContext(_l);return Pt(t)},FT=function(){var t=B.useContext(El),r=NT(t,function(n){return dy(n.domain,Number.isFinite)});return r||Pt(t)},Ty=function(t){var r=B.useContext(El);r==null&&Qt();var n=r[t];return n==null&&Qt(),n},WT=function(){var t=B.useContext(Oy);return t},zT=function(){return B.useContext(Ay)},Tl=function(){return B.useContext(_y)},jl=function(){return B.useContext(Py)};function Rr(e){"@babel/helpers - typeof";return Rr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rr(e)}function UT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HT(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);re*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function _j(e,t){return Ny(e,t+1)}function Ej(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,u=t.end,c=0,l=1,f=o,s=function(){var y=n?.[c];if(y===void 0)return{v:Ny(n,l)};var v=c,d,b=function(){return d===void 0&&(d=r(y,v)),d},x=y.coordinate,w=c===0||sa(e,x,b,f,u);w||(c=0,f=o,l+=1),w&&(f=x+e*(b()/2+i),c+=l)},p;l<=a.length;)if(p=s(),p)return p.v;return[]}function Xn(e){"@babel/helpers - typeof";return Xn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xn(e)}function Dh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function je(e){for(var t=1;t0?h.coordinate-d*e:h.coordinate})}else a[p]=h=je(je({},h),{},{tickCoord:h.coordinate});var b=sa(e,h.tickCoord,v,u,c);b&&(c=h.tickCoord-e*(v()/2+i),a[p]=je(je({},h),{},{isShow:!0}))},f=o-1;f>=0;f--)l(f);return a}function kj(e,t,r,n,i,a){var o=(n||[]).slice(),u=o.length,c=t.start,l=t.end;if(a){var f=n[u-1],s=r(f,u-1),p=e*(f.coordinate+e*s/2-l);o[u-1]=f=je(je({},f),{},{tickCoord:p>0?f.coordinate-p*e:f.coordinate});var h=sa(e,f.tickCoord,function(){return s},c,l);h&&(l=f.tickCoord-e*(s/2+i),o[u-1]=je(je({},f),{},{isShow:!0}))}for(var y=a?u-1:u,v=function(x){var w=o[x],O,m=function(){return O===void 0&&(O=r(w,x)),O};if(x===0){var g=e*(w.coordinate-e*m()/2-c);o[x]=w=je(je({},w),{},{tickCoord:g<0?w.coordinate-g*e:w.coordinate})}else o[x]=w=je(je({},w),{},{tickCoord:w.coordinate});var A=sa(e,w.tickCoord,m,c,l);A&&(c=w.tickCoord+e*(m()/2+i),o[x]=je(je({},w),{},{isShow:!0}))},d=0;d=2?Me(i[1].coordinate-i[0].coordinate):1,b=Pj(a,d,h);return c==="equidistantPreserveStart"?Ej(d,b,v,i,o):(c==="preserveStart"||c==="preserveStartEnd"?p=kj(d,b,v,i,o,c==="preserveStartEnd"):p=Mj(d,b,v,i,o),p.filter(function(x){return x.isShow}))}var Ij=["viewBox"],Cj=["viewBox"],Nj=["ticks"];function qr(e){"@babel/helpers - typeof";return qr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qr(e)}function hr(){return hr=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Dj(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Rj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bh(e,t){for(var r=0;r0?c(this.props):c(h)),o<=0||u<=0||!y||!y.length?null:S.createElement(ee,{className:J("recharts-cartesian-axis",l),ref:function(d){n.layerReference=d}},a&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),_e.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,u=J(i.className,"recharts-cartesian-axis-tick-value");return S.isValidElement(n)?o=S.cloneElement(n,xe(xe({},i),{},{className:u})):G(n)?o=n(xe(xe({},i),{},{className:u})):o=S.createElement(Zt,hr({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(B.Component);Il(Qr,"displayName","CartesianAxis");Il(Qr,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var Uj=["x1","y1","x2","y2","key"],Hj=["offset"];function er(e){"@babel/helpers - typeof";return er=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},er(e)}function Lh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $e(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Xj(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Yj=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,a=t.y,o=t.width,u=t.height,c=t.ry;return S.createElement("rect",{x:i,y:a,ry:c,width:o,height:u,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function By(e,t){var r;if(S.isValidElement(e))r=S.cloneElement(e,t);else if(G(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,u=t.key,c=qh(t,Uj),l=H(c,!1);l.offset;var f=qh(l,Hj);r=S.createElement("line",Ht({},f,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:u}))}return r}function Zj(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(u,c){var l=$e($e({},e),{},{x1:t,y1:u,x2:t+r,y2:u,key:"line-".concat(c),index:c});return By(i,l)});return S.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function Jj(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(u,c){var l=$e($e({},e),{},{x1:u,y1:t,x2:u,y2:t+r,key:"line-".concat(c),index:c});return By(i,l)});return S.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function Qj(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,u=e.horizontalPoints,c=e.horizontal,l=c===void 0?!0:c;if(!l||!t||!t.length)return null;var f=u.map(function(p){return Math.round(p+i-i)}).sort(function(p,h){return p-h});i!==f[0]&&f.unshift(0);var s=f.map(function(p,h){var y=!f[h+1],v=y?i+o-p:f[h+1]-p;if(v<=0)return null;var d=h%t.length;return S.createElement("rect",{key:"react-".concat(h),y:p,x:n,height:v,width:a,stroke:"none",fill:t[d],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return S.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},s)}function e$(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,u=e.width,c=e.height,l=e.verticalPoints;if(!r||!n||!n.length)return null;var f=l.map(function(p){return Math.round(p+a-a)}).sort(function(p,h){return p-h});a!==f[0]&&f.unshift(0);var s=f.map(function(p,h){var y=!f[h+1],v=y?a+u-p:f[h+1]-p;if(v<=0)return null;var d=h%n.length;return S.createElement("rect",{key:"react-".concat(h),x:p,y:o,width:v,height:c,stroke:"none",fill:n[d],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return S.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},s)}var t$=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return Bv(kl($e($e($e({},Qr.defaultProps),n),{},{ticks:ht(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},r$=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return Bv(kl($e($e($e({},Qr.defaultProps),n),{},{ticks:ht(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},lr={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function n$(e){var t,r,n,i,a,o,u=Tl(),c=jl(),l=zT(),f=$e($e({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:lr.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:lr.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:lr.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:lr.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:lr.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:lr.verticalFill,x:R(e.x)?e.x:l.left,y:R(e.y)?e.y:l.top,width:R(e.width)?e.width:l.width,height:R(e.height)?e.height:l.height}),s=f.x,p=f.y,h=f.width,y=f.height,v=f.syncWithTicks,d=f.horizontalValues,b=f.verticalValues,x=qT(),w=FT();if(!R(h)||h<=0||!R(y)||y<=0||!R(s)||s!==+s||!R(p)||p!==+p)return null;var O=f.verticalCoordinatesGenerator||t$,m=f.horizontalCoordinatesGenerator||r$,g=f.horizontalPoints,A=f.verticalPoints;if((!g||!g.length)&&G(m)){var P=d&&d.length,_=m({yAxis:w?$e($e({},w),{},{ticks:P?d:w.ticks}):void 0,width:u,height:c,offset:l},P?!0:v);et(Array.isArray(_),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(er(_),"]")),Array.isArray(_)&&(g=_)}if((!A||!A.length)&&G(O)){var j=b&&b.length,T=O({xAxis:x?$e($e({},x),{},{ticks:j?b:x.ticks}):void 0,width:u,height:c,offset:l},j?!0:v);et(Array.isArray(T),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(er(T),"]")),Array.isArray(T)&&(A=T)}return S.createElement("g",{className:"recharts-cartesian-grid"},S.createElement(Yj,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),S.createElement(Zj,Ht({},f,{offset:l,horizontalPoints:g,xAxis:x,yAxis:w})),S.createElement(Jj,Ht({},f,{offset:l,verticalPoints:A,xAxis:x,yAxis:w})),S.createElement(Qj,Ht({},f,{horizontalPoints:g})),S.createElement(e$,Ht({},f,{verticalPoints:A})))}n$.displayName="CartesianGrid";var i$=["layout","type","stroke","connectNulls","isRange","ref"],a$=["key"],Ly;function Fr(e){"@babel/helpers - typeof";return Fr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fr(e)}function qy(e,t){if(e==null)return{};var r=o$(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function o$(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Kt(){return Kt=Object.assign?Object.assign.bind():function(e){for(var t=1;t0||!Tr(f,o)||!Tr(s,u))?this.renderAreaWithAnimation(n,i):this.renderAreaStatically(o,u,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,u=i.points,c=i.className,l=i.top,f=i.left,s=i.xAxis,p=i.yAxis,h=i.width,y=i.height,v=i.isAnimationActive,d=i.id;if(a||!u||!u.length)return null;var b=this.state.isAnimationFinished,x=u.length===1,w=J("recharts-area",c),O=s&&s.allowDataOverflow,m=p&&p.allowDataOverflow,g=O||m,A=Y(d)?this.id:d,P=(n=H(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},_=P.r,j=_===void 0?3:_,T=P.strokeWidth,E=T===void 0?2:T,I=Zm(o)?o:{},k=I.clipDot,M=k===void 0?!0:k,C=j*2+E;return S.createElement(ee,{className:w},O||m?S.createElement("defs",null,S.createElement("clipPath",{id:"clipPath-".concat(A)},S.createElement("rect",{x:O?f:f-h/2,y:m?l:l-y/2,width:O?h:h*2,height:m?y:y*2})),!M&&S.createElement("clipPath",{id:"clipPath-dots-".concat(A)},S.createElement("rect",{x:f-C/2,y:l-C/2,width:h+C,height:y+C}))):null,x?null:this.renderArea(g,A),(o||x)&&this.renderDots(g,M,A),(!v||b)&&yt.renderCallByParent(this.props,u))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:n.points!==i.curPoints||n.baseLine!==i.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])})(B.PureComponent);Ly=ar;nt(ar,"displayName","Area");nt(ar,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!tr.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});nt(ar,"getBaseValue",function(e,t,r,n){var i=e.layout,a=e.baseValue,o=t.props.baseValue,u=o??a;if(R(u)&&typeof u=="number")return u;var c=i==="horizontal"?n:r,l=c.scale.domain();if(c.type==="number"){var f=Math.max(l[0],l[1]),s=Math.min(l[0],l[1]);return u==="dataMin"?s:u==="dataMax"||f<0?f:Math.max(Math.min(l[0],l[1]),0)}return u==="dataMin"?l[0]:u==="dataMax"?l[1]:l[0]});nt(ar,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,u=e.bandSize,c=e.dataKey,l=e.stackedData,f=e.dataStartIndex,s=e.displayedData,p=e.offset,h=t.layout,y=l&&l.length,v=Ly.getBaseValue(t,r,n,i),d=h==="horizontal",b=!1,x=s.map(function(O,m){var g;y?g=l[f+m]:(g=Oe(O,c),Array.isArray(g)?b=!0:g=[v,g]);var A=g[1]==null||y&&Oe(O,c)==null;return d?{x:Zf({axis:n,ticks:a,bandSize:u,entry:O,index:m}),y:A?null:i.scale(g[1]),value:g,payload:O}:{x:A?null:n.scale(g[1]),y:Zf({axis:i,ticks:o,bandSize:u,entry:O,index:m}),value:g,payload:O}}),w;return y||b?w=x.map(function(O){var m=Array.isArray(O.value)?O.value[0]:null;return d?{x:O.x,y:m!=null&&O.y!=null?i.scale(m):null}:{x:m!=null?n.scale(m):null,y:O.y}}):w=d?i.scale(v):n.scale(v),At({points:x,baseLine:w,layout:h,isRange:b},p)});nt(ar,"renderDotItem",function(e,t){var r;if(S.isValidElement(e))r=S.cloneElement(e,t);else if(G(e))r=e(t);else{var n=J("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=qy(t,a$);r=S.createElement(Ca,Kt({},a,{key:i,className:n}))}return r});function Wr(e){"@babel/helpers - typeof";return Wr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wr(e)}function d$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v$(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function rM(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function nM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iM(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r0?o:t&&t.length&&R(i)&&R(a)?t.slice(i,a+1):[]};function tm(e){return e==="number"?[0,"auto"]:void 0}var Fc=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,u=Ga(r,t);return n<0||!a||!a.length||n>=u.length?null:a.reduce(function(c,l){var f,s=(f=l.props.data)!==null&&f!==void 0?f:r;s&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(s=s.slice(t.dataStartIndex,t.dataEndIndex+1));var p;if(o.dataKey&&!o.allowDuplicatedCategory){var h=s===void 0?u:s;p=mi(h,o.dataKey,i)}else p=s&&s[n]||u[n];return p?[].concat(Hr(c),[zv(l,p)]):c},[])},Xh=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=yM(a,n),u=t.orderedTooltipTicks,c=t.tooltipAxis,l=t.tooltipTicks,f=HA(o,u,l,c);if(f>=0&&l){var s=l[f]&&l[f].value,p=Fc(t,r,f,s),h=mM(n,u,f,a);return{activeTooltipIndex:f,activeLabel:s,activePayload:p,activeCoordinate:h}}return null},gM=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,c=r.dataStartIndex,l=r.dataEndIndex,f=t.layout,s=t.children,p=t.stackOffset,h=Rv(f,a);return n.reduce(function(y,v){var d,b=v.type.defaultProps!==void 0?$($({},v.type.defaultProps),v.props):v.props,x=b.type,w=b.dataKey,O=b.allowDataOverflow,m=b.allowDuplicatedCategory,g=b.scale,A=b.ticks,P=b.includeHidden,_=b[o];if(y[_])return y;var j=Ga(t.data,{graphicalItems:i.filter(function(W){var X,se=o in W.props?W.props[o]:(X=W.type.defaultProps)===null||X===void 0?void 0:X[o];return se===_}),dataStartIndex:c,dataEndIndex:l}),T=j.length,E,I,k;U$(b.domain,O,x)&&(E=rc(b.domain,null,O),h&&(x==="number"||g!=="auto")&&(k=hn(j,w,"category")));var M=tm(x);if(!E||E.length===0){var C,N=(C=b.domain)!==null&&C!==void 0?C:M;if(w){if(E=hn(j,w,x),x==="category"&&h){var L=Fm(E);m&&L?(I=E,E=ra(0,T)):m||(E=tp(N,E,v).reduce(function(W,X){return W.indexOf(X)>=0?W:[].concat(Hr(W),[X])},[]))}else if(x==="category")m?E=E.filter(function(W){return W!==""&&!Y(W)}):E=tp(N,E,v).reduce(function(W,X){return W.indexOf(X)>=0||X===""||Y(X)?W:[].concat(Hr(W),[X])},[]);else if(x==="number"){var q=YA(j,i.filter(function(W){var X,se,ve=o in W.props?W.props[o]:(X=W.type.defaultProps)===null||X===void 0?void 0:X[o],Be="hide"in W.props?W.props.hide:(se=W.type.defaultProps)===null||se===void 0?void 0:se.hide;return ve===_&&(P||!Be)}),w,a,f);q&&(E=q)}h&&(x==="number"||g!=="auto")&&(k=hn(j,w,"category"))}else h?E=ra(0,T):u&&u[_]&&u[_].hasStack&&x==="number"?E=p==="expand"?[0,1]:Wv(u[_].stackGroups,c,l):E=Dv(j,i.filter(function(W){var X=o in W.props?W.props[o]:W.type.defaultProps[o],se="hide"in W.props?W.props.hide:W.type.defaultProps.hide;return X===_&&(P||!se)}),x,f,!0);if(x==="number")E=Bc(s,E,_,a,A),N&&(E=rc(N,E,O));else if(x==="category"&&N){var U=N,V=E.every(function(W){return U.indexOf(W)>=0});V&&(E=U)}}return $($({},y),{},K({},_,$($({},b),{},{axisType:a,domain:E,categoricalDomain:k,duplicateDomain:I,originalDomain:(d=b.domain)!==null&&d!==void 0?d:M,isCategorical:h,layout:f})))},{})},bM=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,c=r.dataStartIndex,l=r.dataEndIndex,f=t.layout,s=t.children,p=Ga(t.data,{graphicalItems:n,dataStartIndex:c,dataEndIndex:l}),h=p.length,y=Rv(f,a),v=-1;return n.reduce(function(d,b){var x=b.type.defaultProps!==void 0?$($({},b.type.defaultProps),b.props):b.props,w=x[o],O=tm("number");if(!d[w]){v++;var m;return y?m=ra(0,h):u&&u[w]&&u[w].hasStack?(m=Wv(u[w].stackGroups,c,l),m=Bc(s,m,w,a)):(m=rc(O,Dv(p,n.filter(function(g){var A,P,_=o in g.props?g.props[o]:(A=g.type.defaultProps)===null||A===void 0?void 0:A[o],j="hide"in g.props?g.props.hide:(P=g.type.defaultProps)===null||P===void 0?void 0:P.hide;return _===w&&!j}),"number",f),i.defaultProps.allowDataOverflow),m=Bc(s,m,w,a)),$($({},d),{},K({},w,$($({axisType:a},i.defaultProps),{},{hide:!0,orientation:We(dM,"".concat(a,".").concat(v%2),null),domain:m,originalDomain:O,isCategorical:y,layout:f})))}return d},{})},xM=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,u=r.stackGroups,c=r.dataStartIndex,l=r.dataEndIndex,f=t.children,s="".concat(i,"Id"),p=Ge(f,a),h={};return p&&p.length?h=gM(t,{axes:p,graphicalItems:o,axisType:i,axisIdKey:s,stackGroups:u,dataStartIndex:c,dataEndIndex:l}):o&&o.length&&(h=bM(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:s,stackGroups:u,dataStartIndex:c,dataEndIndex:l})),h},wM=function(t){var r=Pt(t),n=ht(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Yc(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:zi(r,n)}},Yh=function(t){var r=t.children,n=t.defaultShowTooltip,i=qe(r,Nr),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},OM=function(t){return!t||!t.length?!1:t.some(function(r){var n=dt(r&&r.type);return n&&n.indexOf("Bar")>=0})},Zh=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},AM=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,u=t.yAxisMap,c=u===void 0?{}:u,l=n.width,f=n.height,s=n.children,p=n.margin||{},h=qe(s,Nr),y=qe(s,yr),v=Object.keys(c).reduce(function(m,g){var A=c[g],P=A.orientation;return!A.mirror&&!A.hide?$($({},m),{},K({},P,m[P]+A.width)):m},{left:p.left||0,right:p.right||0}),d=Object.keys(o).reduce(function(m,g){var A=o[g],P=A.orientation;return!A.mirror&&!A.hide?$($({},m),{},K({},P,We(m,"".concat(P))+A.height)):m},{top:p.top||0,bottom:p.bottom||0}),b=$($({},d),v),x=b.bottom;h&&(b.bottom+=h.props.height||Nr.defaultProps.height),y&&r&&(b=GA(b,i,n,r));var w=l-b.left-b.right,O=f-b.top-b.bottom;return $($({brushBottom:x},b),{},{width:Math.max(w,0),height:Math.max(O,0)})},SM=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},Cl=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,u=o===void 0?["axis"]:o,c=t.axisComponents,l=t.legendContent,f=t.formatAxisMap,s=t.defaultProps,p=function(b,x){var w=x.graphicalItems,O=x.stackGroups,m=x.offset,g=x.updateId,A=x.dataStartIndex,P=x.dataEndIndex,_=b.barSize,j=b.layout,T=b.barGap,E=b.barCategoryGap,I=b.maxBarSize,k=Zh(j),M=k.numericAxisName,C=k.cateAxisName,N=OM(w),L=[];return w.forEach(function(q,U){var V=Ga(b.data,{graphicalItems:[q],dataStartIndex:A,dataEndIndex:P}),W=q.type.defaultProps!==void 0?$($({},q.type.defaultProps),q.props):q.props,X=W.dataKey,se=W.maxBarSize,ve=W["".concat(M,"Id")],Be=W["".concat(C,"Id")],It={},Ce=c.reduce(function(Ct,Nt){var Xa=x["".concat(Nt.axisType,"Map")],Nl=W["".concat(Nt.axisType,"Id")];Xa&&Xa[Nl]||Nt.axisType==="zAxis"||Qt();var Dl=Xa[Nl];return $($({},Ct),{},K(K({},Nt.axisType,Dl),"".concat(Nt.axisType,"Ticks"),ht(Dl)))},It),F=Ce[C],Z=Ce["".concat(C,"Ticks")],Q=O&&O[ve]&&O[ve].hasStack&&a1(q,O[ve].stackGroups),D=dt(q.type).indexOf("Bar")>=0,he=zi(F,Z),te=[],ge=N&&KA({barSize:_,stackGroups:O,totalSize:SM(Ce,C)});if(D){var be,Ne,Ot=Y(se)?I:se,or=(be=(Ne=zi(F,Z,!0))!==null&&Ne!==void 0?Ne:Ot)!==null&&be!==void 0?be:0;te=VA({barGap:T,barCategoryGap:E,bandSize:or!==he?or:he,sizeList:ge[Be],maxBarSize:Ot}),or!==he&&(te=te.map(function(Ct){return $($({},Ct),{},{position:$($({},Ct.position),{},{offset:Ct.position.offset-or/2})})}))}var ri=q&&q.type&&q.type.getComposedData;ri&&L.push({props:$($({},ri($($({},Ce),{},{displayedData:V,props:b,dataKey:X,item:q,bandSize:he,barPosition:te,offset:m,stackedData:Q,layout:j,dataStartIndex:A,dataEndIndex:P}))),{},K(K(K({key:q.key||"item-".concat(U)},M,Ce[M]),C,Ce[C]),"animationId",g)),childIndex:eg(q,b.children),item:q})}),L},h=function(b,x){var w=b.props,O=b.dataStartIndex,m=b.dataEndIndex,g=b.updateId;if(!Ul({props:w}))return null;var A=w.children,P=w.layout,_=w.stackOffset,j=w.data,T=w.reverseStackOrder,E=Zh(P),I=E.numericAxisName,k=E.cateAxisName,M=Ge(A,n),C=n1(j,M,"".concat(I,"Id"),"".concat(k,"Id"),_,T),N=c.reduce(function(W,X){var se="".concat(X.axisType,"Map");return $($({},W),{},K({},se,xM(w,$($({},X),{},{graphicalItems:M,stackGroups:X.axisType===I&&C,dataStartIndex:O,dataEndIndex:m}))))},{}),L=AM($($({},N),{},{props:w,graphicalItems:M}),x?.legendBBox);Object.keys(N).forEach(function(W){N[W]=f(w,N[W],L,W.replace("Map",""),r)});var q=N["".concat(k,"Map")],U=wM(q),V=p(w,$($({},N),{},{dataStartIndex:O,dataEndIndex:m,updateId:g,graphicalItems:M,stackGroups:C,offset:L}));return $($({formattedGraphicalItems:V,graphicalItems:M,offset:L,stackGroups:C},U),N)},y=(function(d){function b(x){var w,O,m;return nM(this,b),m=oM(this,b,[x]),K(m,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),K(m,"accessibilityManager",new z$),K(m,"handleLegendBBoxUpdate",function(g){if(g){var A=m.state,P=A.dataStartIndex,_=A.dataEndIndex,j=A.updateId;m.setState($({legendBBox:g},h({props:m.props,dataStartIndex:P,dataEndIndex:_,updateId:j},$($({},m.state),{},{legendBBox:g}))))}}),K(m,"handleReceiveSyncEvent",function(g,A,P){if(m.props.syncId===g){if(P===m.eventEmitterSymbol&&typeof m.props.syncMethod!="function")return;m.applySyncEvent(A)}}),K(m,"handleBrushChange",function(g){var A=g.startIndex,P=g.endIndex;if(A!==m.state.dataStartIndex||P!==m.state.dataEndIndex){var _=m.state.updateId;m.setState(function(){return $({dataStartIndex:A,dataEndIndex:P},h({props:m.props,dataStartIndex:A,dataEndIndex:P,updateId:_},m.state))}),m.triggerSyncEvent({dataStartIndex:A,dataEndIndex:P})}}),K(m,"handleMouseEnter",function(g){var A=m.getMouseInfo(g);if(A){var P=$($({},A),{},{isTooltipActive:!0});m.setState(P),m.triggerSyncEvent(P);var _=m.props.onMouseEnter;G(_)&&_(P,g)}}),K(m,"triggeredAfterMouseMove",function(g){var A=m.getMouseInfo(g),P=A?$($({},A),{},{isTooltipActive:!0}):{isTooltipActive:!1};m.setState(P),m.triggerSyncEvent(P);var _=m.props.onMouseMove;G(_)&&_(P,g)}),K(m,"handleItemMouseEnter",function(g){m.setState(function(){return{isTooltipActive:!0,activeItem:g,activePayload:g.tooltipPayload,activeCoordinate:g.tooltipPosition||{x:g.cx,y:g.cy}}})}),K(m,"handleItemMouseLeave",function(){m.setState(function(){return{isTooltipActive:!1}})}),K(m,"handleMouseMove",function(g){g.persist(),m.throttleTriggeredAfterMouseMove(g)}),K(m,"handleMouseLeave",function(g){m.throttleTriggeredAfterMouseMove.cancel();var A={isTooltipActive:!1};m.setState(A),m.triggerSyncEvent(A);var P=m.props.onMouseLeave;G(P)&&P(A,g)}),K(m,"handleOuterEvent",function(g){var A=Qm(g),P=We(m.props,"".concat(A));if(A&&G(P)){var _,j;/.*touch.*/i.test(A)?j=m.getMouseInfo(g.changedTouches[0]):j=m.getMouseInfo(g),P((_=j)!==null&&_!==void 0?_:{},g)}}),K(m,"handleClick",function(g){var A=m.getMouseInfo(g);if(A){var P=$($({},A),{},{isTooltipActive:!0});m.setState(P),m.triggerSyncEvent(P);var _=m.props.onClick;G(_)&&_(P,g)}}),K(m,"handleMouseDown",function(g){var A=m.props.onMouseDown;if(G(A)){var P=m.getMouseInfo(g);A(P,g)}}),K(m,"handleMouseUp",function(g){var A=m.props.onMouseUp;if(G(A)){var P=m.getMouseInfo(g);A(P,g)}}),K(m,"handleTouchMove",function(g){g.changedTouches!=null&&g.changedTouches.length>0&&m.throttleTriggeredAfterMouseMove(g.changedTouches[0])}),K(m,"handleTouchStart",function(g){g.changedTouches!=null&&g.changedTouches.length>0&&m.handleMouseDown(g.changedTouches[0])}),K(m,"handleTouchEnd",function(g){g.changedTouches!=null&&g.changedTouches.length>0&&m.handleMouseUp(g.changedTouches[0])}),K(m,"handleDoubleClick",function(g){var A=m.props.onDoubleClick;if(G(A)){var P=m.getMouseInfo(g);A(P,g)}}),K(m,"handleContextMenu",function(g){var A=m.props.onContextMenu;if(G(A)){var P=m.getMouseInfo(g);A(P,g)}}),K(m,"triggerSyncEvent",function(g){m.props.syncId!==void 0&&bu.emit(xu,m.props.syncId,g,m.eventEmitterSymbol)}),K(m,"applySyncEvent",function(g){var A=m.props,P=A.layout,_=A.syncMethod,j=m.state.updateId,T=g.dataStartIndex,E=g.dataEndIndex;if(g.dataStartIndex!==void 0||g.dataEndIndex!==void 0)m.setState($({dataStartIndex:T,dataEndIndex:E},h({props:m.props,dataStartIndex:T,dataEndIndex:E,updateId:j},m.state)));else if(g.activeTooltipIndex!==void 0){var I=g.chartX,k=g.chartY,M=g.activeTooltipIndex,C=m.state,N=C.offset,L=C.tooltipTicks;if(!N)return;if(typeof _=="function")M=_(L,g);else if(_==="value"){M=-1;for(var q=0;q=0){var Q,D;if(I.dataKey&&!I.allowDuplicatedCategory){var he=typeof I.dataKey=="function"?Z:"payload.".concat(I.dataKey.toString());Q=mi(q,he,M),D=U&&V&&mi(V,he,M)}else Q=q?.[k],D=U&&V&&V[k];if(Be||ve){var te=g.props.activeIndex!==void 0?g.props.activeIndex:k;return[B.cloneElement(g,$($($({},_.props),Ce),{},{activeIndex:te})),null,null]}if(!Y(Q))return[F].concat(Hr(m.renderActivePoints({item:_,activePoint:Q,basePoint:D,childIndex:k,isRange:U})))}else{var ge,be=(ge=m.getItemByXY(m.state.activeCoordinate))!==null&&ge!==void 0?ge:{graphicalItem:F},Ne=be.graphicalItem,Ot=Ne.item,or=Ot===void 0?g:Ot,ri=Ne.childIndex,Ct=$($($({},_.props),Ce),{},{activeIndex:ri});return[B.cloneElement(or,Ct),null,null]}return U?[F,null,null]:[F,null]}),K(m,"renderCustomized",function(g,A,P){return B.cloneElement(g,$($({key:"recharts-customized-".concat(P)},m.props),m.state))}),K(m,"renderMap",{CartesianGrid:{handler:vi,once:!0},ReferenceArea:{handler:m.renderReferenceElement},ReferenceLine:{handler:vi},ReferenceDot:{handler:m.renderReferenceElement},XAxis:{handler:vi},YAxis:{handler:vi},Brush:{handler:m.renderBrush,once:!0},Bar:{handler:m.renderGraphicChild},Line:{handler:m.renderGraphicChild},Area:{handler:m.renderGraphicChild},Radar:{handler:m.renderGraphicChild},RadialBar:{handler:m.renderGraphicChild},Scatter:{handler:m.renderGraphicChild},Pie:{handler:m.renderGraphicChild},Funnel:{handler:m.renderGraphicChild},Tooltip:{handler:m.renderCursor,once:!0},PolarGrid:{handler:m.renderPolarGrid,once:!0},PolarAngleAxis:{handler:m.renderPolarAxis},PolarRadiusAxis:{handler:m.renderPolarAxis},Customized:{handler:m.renderCustomized}}),m.clipPathId="".concat((w=x.id)!==null&&w!==void 0?w:Gr("recharts"),"-clip"),m.throttleTriggeredAfterMouseMove=rd(m.triggeredAfterMouseMove,(O=x.throttleDelay)!==null&&O!==void 0?O:1e3/60),m.state={},m}return lM(b,d),aM(b,[{key:"componentDidMount",value:function(){var w,O;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var w=this.props,O=w.children,m=w.data,g=w.height,A=w.layout,P=qe(O,lt);if(P){var _=P.props.defaultIndex;if(!(typeof _!="number"||_<0||_>this.state.tooltipTicks.length-1)){var j=this.state.tooltipTicks[_]&&this.state.tooltipTicks[_].value,T=Fc(this.state,m,_,j),E=this.state.tooltipTicks[_].coordinate,I=(this.state.offset.top+g)/2,k=A==="horizontal",M=k?{x:E,y:I}:{y:E,x:I},C=this.state.formattedGraphicalItems.find(function(L){var q=L.item;return q.type.name==="Scatter"});C&&(M=$($({},M),C.props.points[_].tooltipPosition),T=C.props.points[_].tooltipPayload);var N={activeTooltipIndex:_,isTooltipActive:!0,activeLabel:j,activePayload:T,activeCoordinate:M};this.setState(N),this.renderCursor(P),this.accessibilityManager.setIndex(_)}}}},{key:"getSnapshotBeforeUpdate",value:function(w,O){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==O.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==w.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==w.margin){var m,g;this.accessibilityManager.setDetails({offset:{left:(m=this.props.margin.left)!==null&&m!==void 0?m:0,top:(g=this.props.margin.top)!==null&&g!==void 0?g:0}})}return null}},{key:"componentDidUpdate",value:function(w){Su([qe(w.children,lt)],[qe(this.props.children,lt)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var w=qe(this.props.children,lt);if(w&&typeof w.props.shared=="boolean"){var O=w.props.shared?"axis":"item";return u.indexOf(O)>=0?O:a}return a}},{key:"getMouseInfo",value:function(w){if(!this.container)return null;var O=this.container,m=O.getBoundingClientRect(),g=B0(m),A={chartX:Math.round(w.pageX-g.left),chartY:Math.round(w.pageY-g.top)},P=m.width/O.offsetWidth||1,_=this.inRange(A.chartX,A.chartY,P);if(!_)return null;var j=this.state,T=j.xAxisMap,E=j.yAxisMap,I=this.getTooltipEventType(),k=Xh(this.state,this.props.data,this.props.layout,_);if(I!=="axis"&&T&&E){var M=Pt(T).scale,C=Pt(E).scale,N=M&&M.invert?M.invert(A.chartX):null,L=C&&C.invert?C.invert(A.chartY):null;return $($({},A),{},{xValue:N,yValue:L},k)}return k?$($({},A),k):null}},{key:"inRange",value:function(w,O){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,g=this.props.layout,A=w/m,P=O/m;if(g==="horizontal"||g==="vertical"){var _=this.state.offset,j=A>=_.left&&A<=_.left+_.width&&P>=_.top&&P<=_.top+_.height;return j?{x:A,y:P}:null}var T=this.state,E=T.angleAxisMap,I=T.radiusAxisMap;if(E&&I){var k=Pt(E);return ip({x:A,y:P},k)}return null}},{key:"parseEventsOfWrapper",value:function(){var w=this.props.children,O=this.getTooltipEventType(),m=qe(w,lt),g={};m&&O==="axis"&&(m.props.trigger==="click"?g={onClick:this.handleClick}:g={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var A=gi(this.props,this.handleOuterEvent);return $($({},A),g)}},{key:"addListener",value:function(){bu.on(xu,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){bu.removeListener(xu,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(w,O,m){for(var g=this.state.formattedGraphicalItems,A=0,P=g.length;A_E#Nq2g!&b|=B(lKEPAp~d=5(qm90zz0NfQW#A z*diiCMGOeYFvubi5do25g2N~>jtgNNWvbc*iH;(||9Q`QtGYS~$js<}zTfZrl78w` z-Fxfav%Kfs&nY2=5T3YH=wjvphaa)H^6{`7U5 z&Te1*8zBO33DJDW#?#I}@lz`v|C12YR||Q=+LKOLw_){-+YZCEuK+_Q;efVE$M?k! zV9H6SpMBoZgYWzt_Zt_&iJo@m`gM`H_cRF6xl9PdJ$>DIoAf4m70%b;`qnenoqob6 z{`BYyA;10zj{RZNnIAlR#ThRog#5<+LS&y3sJonwEAjfyoA10WyXi>nKh01_aCE_s zzxUX2k-5JU9)IJ)j{7gAE2+eH-;&*O20l7MqoeqT?`Vd+P(;)xI_l!T5bvnZ>O4Nr z6!V3)Wa+Y%B7EAqv(FF>!l*f4`(B=Q^2T+zKYvr=Iyx(HL<-A4YRE2my)g0Vaq%Kv zr}^deA}l_D`Uq3U(S7_o z;zJ@Qric!a7oDOD`dzQ+6a8X942q%{7PG``u?RZfVzHlCBK8*thy%qkv0NM?R*I9v zDdJRdnz%q*BrXw`i7Ulb;-lhf@iB3YxK4arTrX}AH;PY)Pl_>dv-q^QO>7f)i0$Go zagVrH+$X*w?iYV29uNJW$ZO?w^5gOo^3(Db`5F0H`8oLod8ho6+%E5y zUzUF-ACP}9ACwP^ugXW{*W}mbH{>_vx8y&_=jBWCW%)z-Bl%WjLl5dF)`L?EMx_Csk$Trz7&KBp0%f$k5g*Xo*y;Xcfd{~?* zriy8DKzvbrS^S554Rl;Dw#YiUOkOFUk*mdz`J()1`91lM zpz9OmVd7!=2XV3ZoiwD5OV)^^#A=ZizZc&X|13@y7s`){Z-6>7;@`#3 z$zRI-WJa3Ol0g}eo(#)~jLVcvOGn!BIq|yOC_XQ2SPB8*%A^d*m}n9u*#n(op=gB7 zu}XYTd>@v>5pqm^QS6q(@?Ye?iVw)oiznsp#E@Jm=gXozN1PxV<;C(2@hNeWyieXL z{zd#iye$7y{$3m`uaZ}YjpE134tiA{Dw43_J|jlN2Dw&@iuGUyM~macqq0FhCXScq ziML@1y(oLdm!vDBG9iu?$B1>JTiz&c6>H@u#o=NGxW@{)Q2sy^#9`uO@j3DLVy9d$ zH_5BT`SMy+P@L^F}$B%F`I~k0?)P$eU1}!H~D3Jd*)_E=rpi;OwHbnIYz&gnS`@+l$f% z8Q}Y(bT&i0f$|&%WPvE1%MeRZQab_22T?kY0ZAcB=Q9K(O$mMt0;Gp1UBG}G5hdy` zKu|p|Vn}-a#SA%u@)Cwzgz{2`T#WL=49Fl+x{Lv7BuZNukV~R;IYZDjS1{!FQC`V_ z)DoqSFvJ&7!v8^#Poun=0huOBA7g;Si_$d=xdY|L84^B`()A4aILaFs@+p)zGUO8| zKfwUM6eSubK(mH?!$DBZ>&?@EdK9e_j@rELtzW>NYa15#R)KF@%>7A5K<0Fqmj?qEQMi_#Yv zq7~(x49Im+`Vs>YUX->oAnQem=oo<17bT)a0P-!q_Dh|+@$=oq3z{SH9e5GA4s0D6Zg zJe^9*QBqV$gp=ue`wlL1XilwM#!YKqc#8PKjo>7N+Tvqb4d1~e{F`ez1oFH!m) z16r6UeV+k+Oq5rB@ix{zPdP1A3q+y~=<_C`$jvfNm&CKVyh(DF2-SeNmKt z&Vc49O21%0hZLpP7|lCG5GN6Bo(ytiML`CV> z4Cthy^cx1WQ&D=I0XIn7|@xaDl?!xi?U=u zj}~Q(0gYOebp~{6Q8pORvPIcs&`rt~1Ddxe+YIR7qU!wl%}q8wompD#xl(CI}v#t>+0InI#Ojs!#2qf9bn6Ur1rHls{4WGl)H zL*`J{G2|4K^nE~fplo2sJjzCfoQ5*XkX*~yRxqnyf+A3#ZU1>|y+R965N zjwnxO5PvAoV8}HnyBYFmlsyc23`%MnAV*R5GURb6shxmahmzU}$m3BCFysc5gA92B z${~h41!a*TPenP*kf))fJ_6+FC}%U|87Qg00C^@#>MuZUMoIkz$g@z+XUMZrQr`jc zT$BqL@_dww7;+2B#SGYSqP!miR)Hu}Ujyx8V`WtM&%KPycXp$hP)0XjT0b0j*`X+ke@(#2t$4v<)I9D3(CV7@-rw8XUNZ@ zT*;81LwN*4egP$oHz4msc_c%A3FT^r+>Y`nhP)dk(E%X8jFRX8kbj4g=m3xppgfi# z{~jgL1Rx(oNi+e#z7^%Q4AL#jL?3{B1SQc2AisukJwtvSCD95Xzk!ly1(4rFc_Kr8 z3*|Dqn8Rdr<@>eL&W2pH~bP32` zquj!fucN$xA>TlGAw#~2@*;-(6UvJj@Cu0XB@EKX%0#b#d>iG58JdRjG6uW{qP&$s z@~eC~L$;v2f+5>bUde!$L6kqjfWJYMuVTRSAj%(Qzy~49S2N&^5ao|C;Fl2PYZ!vs zeJz7@@A7pFcr8Tv;|%yOMEQCKJQ<>V0|Pz{QNED@?}jLUf`JI3DBr|@$3v7q$$;-e zl*btGf`~HBZ9vc%-OPYzM3g_xAYWhk76!Z}qWl?#pfS0XK{46#XBl!C%G(%{`ssFt zdklIA}k zk3>oHAAp}olpkckV4EZd|M;H_XFB2UA^5-bO#*kFE#~AQC ziSiDH_$QQKXGo&A#~G4n<{J$7r$qS)hPV{vHyQFBlut4=8tZQ{G*q?x6hrPr`7}em zfbtoJr00H{AzwsEZ2;syqx=p-eh=ky40yvt`5zeYi;42{4ETLTna%<5m5DMv4-nKh z^gICmGg1C71D-Tdre_1qPlq8SvYQGSMyo51uIhm?17i`4a}bdZPSO2K;-X{0f6? zmhvtJe14+*Dg)j>QT{iEpmF~h10F$9rgH#%gQ8650MU-}7Yz6dMfo*`NTK`>hWsVU z5<~8Xvdob5T%t2TnkeZyfIMsEUom75<*yksfRg4CAU%|?Gh`U$Zy7Rz@(qTJqukAq zRG;55B=s%zDIgt`|H+UxN*ZGTo=s8yBSX-0-ekbrDawCh!0#!_Z!zEj73DuO;0qPy zw;Aw?iZanRK(PumRY4|Eg4PK#gc9^YfcI34gKh}$ql$6R6G5Q=#?eOv*@F^&M4-s+ zIG#-q3sK_P1bAM>IG#;_4_1uRvjKQx#W?zo0KcplNBk#_Jhk2qm=vkSkGA+W#qVGeew!vV|e(d#wz4F-p)e0X}Cj z-p(LBb3DfoH=&%ukoTeNV8Aym#`6q#sl|AK0e`g^?_`LVQBGyZ|3o>B0dKY#?_!99 zQPTJUlvgx9g8^T+81H7l>n+Ae+pFvqp<4YNoi8Ouy z1O9$7ejr193FScyNwiOW4M?J2YA1lWfEZuKK!iYy6I}v`6^QZW3`7mY_zH%gK0kzk zNP-xr{sjYfG6X$mHA5~$c@zUN z3NgNhfoO#or~U;Hw-Do0R{#+VF-~m&5X%tbG)@4b8e*Kr01!J-u4PCXJ8BysH=(3{ z2N3-b<8%%X=c6P#0OY+WX)XbXjfn9R8HkdI@r?|`OT_p|3~>uesuLhDKzRy7ZbNx0 z1925Gei{Q27BPN01F;q{eg*?k7cqV&gM9wuR98UWfO0bfF&TuR7~&sMY7B|Gy{
    YQNW;^`-i0`i=S{`cI6!vD~=MxW{$oi6oj)u8 zQlYM}xUi=1tIod8SErsa_04Gur(HPhzG*K_+uarJ8tPivb@g;@`hC-XGNXIOhJ8orvJHt?7%StHxJegt{&Vz z6dyWk=kSxA-UfrT05*zl--9U(&v0^^)tBytV&j`@gbu%F>$-IQxKC z4qSHNQwLpoaQ5IQMy8Lf9eH)xv}N~vAp3#s%a<&FX~lsnet5{zL!LZz?xEWb(+=Bk zxOVuthd;D()ynT3vHFO|SLIh7w(6-P#gV5SIlg-S>Yp8zJZkMxJJ!V4T)F1wM=w75 z?4ut%`mJM5IcCSPw~acZ3r9~Ged4(8cgfqA zF1+;34Wn(d0+B zUEO;1O&>EpcJar4bj|QJH(m3}wZqr$xbE_g8z0~F@gH8Fz5bNzU%g@e4Y%B|`^IB# zeC-p*f8v#!mfZBfC!0Tc*(Z05ojvyAr`%7S@~N?#v!8z8mQ|k_`pm7j*4=vPtpNv1b`pH+m zHRW3;e(UY0mOb_OQ@?+D+cV;sN4_2Z_I1xX&z|_~{on)ORNx^EkU~LNlm&`>B-+C= z*)03!%Yklb56qW+%`zF5?cFldH#9hq?~?6SDw*yd>>C=$w_C~dSWAC%bN~GQmX`j{ z=jI+bH>X~sv=tP03_a3e^GE zs@5qdM3EoP6)B=}cK>|Yk4mMImYtffp_V%`h3-N+jh9Ry)sfMY`jq;3bG)rC)t*cj zHfH>DnZjq1?WwvpoT{IKi!vS43u!z`Jeh&~k}Wcgex~F7eQA71($&w;pvTNG16onjhK+#fXbbg(7l@ig(;PD6 z?q4{cK)p<3)NqZpwzSRfdZB=GTp$@3bzIXit$mz1HsDgXROrJ-%rJ+T*F3bS-D;*f zqf2rH)wFbzq@hS#1+;1&auWt|jh*7F=1E*5%E@ zot?U4(kXpduY80wrO3Wdrx`>Wd-2Rnx{pRV-yV^eC`3mEnjsm?o$5R)ROc2*d2NsG z=son17K}p+o-;f#HE!}J6=uzqJ-UudO}%9ewR%kpDspbkT$`AI`>Yo_pxPNsYuo{~ zRmoW0T4k=kkH<-x&6x4;-Ga(hXu>}F%byYGp_a;ovoY=ZCe3)884)w3JO5%oph}9% zym!4OdUjv^MSVr&Vzu`WlOdY6iExPdRJ+X1`@N-g|Ak?!>4f)Ne|*KKXXFXlui!C7n$C~r zF%LVaZ7Fbu6k2{|Ueof_$kZBQl50{p$-DrZ;01NBccK3ecIdd(a?X~02-2KH{_qx-0-FDGqSavAb`CWzHco=8;Lg1zSu z`_k0uetEt~k0)k4e?r?hpIH$9b8ReGq>D@#t* z9*kqPo%^7r9;(6~6f*gKQ$eq)mzbe56R$LjdT%~xq?>pMy0Z&SSrslchSysW&)h&$ zV!fAc@iqip2>wuAV3j_mTeu`!2yHOEh_xOap>6P5(%yQvE);K$1>9A{+b8r8n=)WJ zQg$I#$P8u*sfbKv24(%C6K8LiqpKP^UfVX<(J>ObUe4-hXd8*alw{e^u5^k#<%e_> zpiFTEn>AJkG9(h`Yc}Y-znIBF%=hPp@E)2?CLPvf>xkyst1VYsrfFsXlHS#V!=|+w z;$J&e(@vX}oTeG8_Sdv!`)kHBDK%~SE)&U!<}Nef=(g3?r5kp@k%tUiBz0X{_AXqq zOX?J6VYxm->3u2W=p0BKp`zzOR@v!(@ZCW$1n|66GE>YKSa75)doY(GscP9d+d>o4 znH=OBNNpY|H3LKaFK6S1{-zRmeEXWwrMZ* zB8EA`Nzlo=pvd`O{%8o_OvfAW)l~eL&{puEWl~$QIvr2DfiA;!olqjMG8|it6P5lB zpgm2{Vj+tYesxKo3L~j@auqYG1qCqn3^!uFEbLOXb7q)E#M@p|rw%uGUeIm5hN`>W zGBsI`C$5f#R|XQHi7LdYV)$Eq7wRSh)V~w@!8BwJ%|QS0wR6>~D9#m7xbhGMP)7rs)K|`mTn!W|@o9t!cT~ zw6yrB04{?5v49h%nOu4yAsd1b)S>bvR>o?!$c>2xGu%vk0+j<+L2m$uPd zg9p{uWg6hgo(4N$E@`hmPk|y+t>0k3Kd1c~7F1)3nPMta80_m&dTYkAq2^|&-cQ}Y~TLM>wLTw2*XjyKgVJ^2pqQ@P5S}b0vcRO(>oob$^ zhPmFA%L~mdxnn}Xux@$MYnW(HMQ?3DUfN9fP3NQc3v4ztNmP`%g`FWGlcPEgf_4{x z;EPpd(JthYX=LOU(0b7O@l-){dawmU5NYtf3VECBO0}jJQRh2dRM$6j{q(#S^}4Rq zW$3r47Ik`a%Rv}|VBp7^mZRQx%ozvAW7DWl-k^Ipo^%_p^t^*HUOvq@pyLd(<-pZD zR9*KbkqUuu_bXKd)ohW{iZ^uiO{R^rDqWq-b>@(ny#I`Y8oKJymVuH#vzsehX1 z+Mi*wrK9<M>Hj&x_M3^7B)@0x2>lQf9T7~ zoTVK4DadVv=M#1$*HGCjV2dpJ{W+=>!iaxT2u6r>OL9noK<&l=#pnF5{-Z+fvx|7crf5-6I$H1)|bHDQorj#MX5uD$ll zL`ay-M7+(ie>55#4o36D!FJHgtP!^34|bg$ju(n9QpWhA=%HNFw83%Apj}y-blG&| za{3xxve_&tmRlD)5aNpiE|HiU=OX4c*`DWQJ@5gDb;zVeK)TAEQ@PCN@n5kP1eXNE^nI9foE?)Qv0QPEi*%LkaS)$`|YkZJm@%(jW)%594$a z4SV&-%`|59@pwIrU@8(x-CKE6IdQDxf#Z8mC5968&0tG=3uc1j(JgC^wbHQHFIiGg z1D~EfI}NRx-&9THM{#Nx^DZ4tY{k)3bSt`cLO)pu{SWb$j@;k?g<8fDuX#4>B5u27UhDmrms{8#C;(BcdZtoRZP3nW7F!1zgB>HvqfM)KVrq zKBkdPwUQOl*08vt4O*+-no@_iL{kT+q9aOVc@9|RSRUV_&PtioPS}3vK-@47%cQNL zjn1^CQf+h;AHiWZr=!u-R!D37%>q@~XfuKQozu~?{YuAKj+R4VCsS!pzYW>hnTl{B zWd@=KQb>&gKBa8pokT^d_4H=%BmK(IrgNX|pk}5qebdxT7@n6jCbuUWae(Cv-t1&z zI-Cod3K7pcoC`b8M<0iUicUCy`tAVL33>heWMgA;6V0kkG}+XOUOH;DG+cXnodWzlJbOR zlB}k3A$Jiz($^{l+Q_tSBXgn-+4pNf1IjZFP|n;^U3T_JTBYeNGz<$uLF=V?0}Tz7ni6Jwr3& z5?ZXDwZmp4;9Ak?F=(2Oo=(oub;k|qS|A|xq@jD73t1Y`?0lQo>{*5p(aknP$DJL0 z4sPlDQQPLgK6Jf|6SdN&8@F{+8fMgObj^qnZfb4sPv-3F48wL)Ay31X>kTVo8u(6K zXy%+oSBIny8c`UCP-gb(Ctv3SA%rEm$rr#7qlLfRPrdJ_pLTF79CHrw1oW7B%3taw z>wR>R@?)XrrDdRhzz^eVo zVgT*#rCHGp(rR0{ZM)Sqg;FD}?cZuXbY&rY0at{waN$)Zzt~=p>_!E|N0oF!5}cQ zP|N6M6uK%vIEH02D8LVfkSafTW3+3pA)J3fbqps?3m zBJ!MVg@&Ll)&gEYTYQjd!-ZqO(4yFqZH>0%_c5Hs%O=KCBkED~rRZw%$jZ9+JG4JG zTySj1HMW|TWo|_k&{9yQv5u%%1;nayY6kR^US#521v$kA3iw1svvR$}Uog!yatcBE zs6RG)!GF|WA>~iQ>Ubw{f+ysj!#y#l5!L|1!tfN@A?1`>2|phT#yN1q(|Axn!yAbP zgSIhkY(oc0Yg*Vc)Fk5Rq^6cJSeb#sA1-xVraB5>MCgP7aipwVT#hc97bH z8C`vp6m;?Jc+Mi?Msr>#MR!ccCy33tAf2iY&xXC!1mDpdZ<lb%^rCq*v{lne}qKANz59YwDdhbRpWXT zb!q_>4h&`B-?IJu3d*ghHOq4OMx;+{dvVPAa zd=mFk{$F*k8MMPe0y?lgONKSOmr@0czM*38e62W(;;_AW`pa>V3F};adc5^uq&X6< zPuaHPgj4lRE!j{o6{fb^wkzFWD15jxxki5FB(z4;2&aOfY-_eY6?SaLPSuC$ZlR#- z*|u?CWFPIBQi(G(!@EXQmPMa-qt?*o;Vhl6PrZ)EgVCu&!|5Au=Qq>fDdRJE_2n5GjTr&b;FKDHr{@1U8Ig3bx?S&(* z7fpxM{r&sx0?h() zu0h5(@^$z0kbna+&&zkPcL3u&)`V#U1zm*Bg-r?7HW$WE|OvZsqfnVK6YgMKGX3Y8!>@lH9r@`gou zT8QkJ5=4o$bT zJalP9ui<~RQivPF@|1L3?|^-Szzt>7q!Gc9AObfK4X%RWq-`LQa08a{7~UYh5qvC2 zQX7AFKo7@#CBCkkP{_43C*P!TX!?7c^ZOIDLUXARS^sktrP#ijwI>CD0E)^QX(o}w zfj>+pe;%<6qNpQ>D#*4?rXTI>tPbS_As~IAt?mY-N^U}Y(_J)1!3cQB(|3-MydOg> z;-9L6Um*nkcH<3otpOK-(M@jr0k|&xZ$c5lSK$i4tIzAoup5v=TJa_C%Z2fU{i$wC zkg{cJ``5f5+v^CQMTfCX(ttQ@E8?LCV_s1LF8M7%DwX^TFdT?w_%QPz6W^gSUu%XS zQhpe+6!-FPQ@{XT#duv^JS_EiEE{dB)29tjHC@+g+N{!PCB3GPhA#tua9|^3fzeNs zVzav~V_5aMI#5eCR+rPV`Su1)#!}Z-(rxkG{m2;uPq(F~2Z=xj(=pxQj{~Mr3Z+q3}DV6AC0^|Rb7DM<?Ue`O}xH7ZWvbEI(^#gX?k57diNR{no8B`a`hGt_hj?=td^_8 zDb@db`tozi0z3fgZLs2HFG;236V&`X1fjAGpsy=o#Z*P!KKA^hx;5{MHSa6O$#XOz zoL+`i4LP(c7CavkXbbtim2+cV_1#qE>!6Qq)nm#>uCA+CrTmLw6FFzI2gRV`4Pf$nJ;6zy&E9Hjic@4(5eXU-3XYrXgV7lC8Ad!q-yHTMj zQ$YPvpQbt5G<+L>{##U-&Q<&n)8WHvz-~w@u%dVqt)NQ4CM40OQb#BtL{bnDl|iKx z?s=*(NT*=>knDpXRWeacc*H27HG#=N_!9Akp;xK&2W7}mWE;YhBt^z2=^UI%wj*7` z0lDxSY0f1ThK>i$e^RRRzJFsdZ}WP4NAL45FV>SB+Ag*LJ>73 z-R@$6NRsW>HNwxIZd+Jz(xn|00q9}eC+gX(@^-2*#2SSN@`{ADFR|ewm?!fXH*z>2 zFN-S888jJKyeWJxkdp!oifmxe&!1sAuB5)tV$QI_`$N@$mEbvB$(}@~;$@a);EEn) zV9I*v$IAXys&bF=0PZx6%MBCO=0*752;hcf#jlKl#`Z8SDCQyLS&QB+8B0d zcWd@wU$d4BYh#^@n?e z0uT!3Kv0+Ud>1Egd&BvBN6^L_i3BJ9JmT5NP4t{m+uPJJE1w_ruf~0cJ32n9>shds zEP3IAn1aZ`n8e4^*hyoEb~;m@3eKzQ!kqI%9TQ7Us85CpgF}=b0g|Z*ut^^V6TaPZ zz-%+(VtOMvOoDS~=Pw5bm$4wUT+oGj>8Sc2%$F05aIb)K_o-MxV{%K(1Nr%!n|#%f zN&{3tB_Laob{q!(>&3X90x$l9sQtS-?1_s}$Z)cMKjY6~%Ce&z#fr)c69H4G=(oxr zYLz0-Gpn~yy%af4J~b$>9b%03U=cj`{RRl`hMzuy5CsLuYJK~WN+iI-1u7DNtjw4^ z1@=L}g6^MdCnMw#1SzrB$O`%0m^YBPVIa$QXPk)PEKNI$_>CL3X3Tm+MO!Ak_7u$9 zXT0D|IEnXm{&PHSQjp+G+d;NclLd1mrxKTRJ76l83Z}T0ju=?hMtXiv%Jm@OjR{Chmm)s+@X<_hB-ZpzFy6h zu@R5RqJMZBIqBZN3HlTpFOB-Jb!wUqzCvG$wYP6rS*n1i%4#A6*?67a%b z#haK)H|P8s@D=~7G4dskOh}5I=(9#T28X28lOUa*GSM&V!(7$}W*An~zs(fKJJEkQ zZZ-=SL0-_M^WbQu$Km_dRD1?2n2;Mbve8LPvr@f##?*Py&YR zy0J2P>G{a>@EZYDe9{tOS|Zo1fz@H`&i4mriW5Mpg*kz2Oh{FF^LGr%A}E~h5xzs0zxPFME_w^(4r4y z^$%j@1+x8B77iSZIGIWo&_ZHi_^f=-aGzKOpP3P_!k*s2kc`ZXAo}gOsc&?`reBf)#*yVFm)` zqtZ5z#hpOdD&!beFkxBRA+T4lz{R%AND$faIkz5>03(=ajwN+70g5yAWUM*d4|BLP zoJ^))M6O#~W zQ?J3|vUAF2faFp(8}}Zq??^*g0hh`!wencMyZbI8S9nkcgUL1obo5{t$sOoHEgUpz zyUEmLIHJQW^(;FWYG`uJXef%V)3wC3;I<5{B~lB6JhF@T&dN#6H?2c7GXXvh6Ao(% z%w!S?b5=0Y9818%rR#91Bx217725TY46;807E;?S%QM0;!+O9oqnSi9T$n$x{^%6) zadFDcq~|GL_oRM3PvuPg&3YD{U0sGc5v;?ofKJIh%0>X4A%CNCppqw0>4bd<8~!!B zKkB41u0|N297o&*1zMxvUY3EvMK7*IT& zekFb3khX{!2QYrf2g5~}3%tH5j~%kQVQ-Bfesd=6{MDft0&xr?{&t`8(TO(P?&Ni# z|1??fA7ZfphCzw0P~PC2K#&Yvqc@4^fCB@>ZYX(X5LwZb(T81Kkd6w-WWN6Rj;xaej!ltt9MzEIpdcz4dqK-i z+DM>o;%y~HM*MgIa`jhZm*}g|!!rlpCrgHhdT*AD^z$lD?gP!MK32(-aDt=9(l`c& z4d+LJlm%j6P%Eoh7k=^tr4;VLyhCB1dB+gHs4{OPolWB2`gIld{ei|rC=duCqhA$` zv6djXZd9fF^BdPPVll%Dn9-;i@M_-g$>Ng;x4b)xhf1kfJh7{=H^0K;S0;n)?ZG6! z#^Dp4-W8)23y>=Ckap4ICOy=z07&1D&2_^bO~ZS1DR#^L3_K0YO0bTTy=b)h4ODDn zZDLjBwrNeGQoeG9Tq@_&w=X~jX%OCel*OU`LDl{5COyHSi!r6=O<6jHMGW#` z5e$#abRdMGH)1VZbJ&-|2v>zB1kBXKriOyHg$OyMQRpa(B&Ks97c!??SfB;I;u$Nf zbEg^*Nl@%P95BtbkjW7xYxHI_Tu35U5t-DQm5scsh>68eWqdh+N@pVVcAH}%3uTWN z8Yk#8ljO?De@l5iS)FeFs|x89^4k2YuwHT&|Mexn0_4xB+^7$i#r`TIkp?SODqq**C|HU(Z&1*JX`UzyNqNIX!? zmb6D?UTUN}`m4~OE0IE#p{z-I7Tp~xr;;2C1GPqoW`+tC5vv3)De;57RY^Qa4aJHSc7DU@kYP(YX%%Po7SfsXAgUl7 zH>MMm|67r|p0$V6Z8uG=u_+0`8g5mBH4skEWtkg?^lc*6!UDM$E7Rl6Q|P4*0vP`+ z9WabMGR`lkk&ta(&_s5)=`@CI62o@5Mht6GiQxd&fmCEHl+gi}y$KS-Q(cnCESxJ3 z#8aC!!_a2ZODlLKSmQY{GwA23Oot2(A`01t9O8{M63WPCO?{tT1f}Ku83iy^umO{A zPhlYNAHvtS2wtAh)7zklgO(6iu>-b!M@9Yj!o+a*q5eya{IAh?eM_5X#$qAFY5dtx zvn2pITH))lEWMW%octl01)bkOv?hjZ!9)r&*b0Ux+ewKaj3=|s?QlZTV8n>T4BIm9 zL?@?{$#5s}4n@N=RG-x&i)$Tnd&tXGp(L8|zPp`yNdb&Ot$&6U-;6L5EwN?Y4-5j~ ztVzZtHcViKfUi_^NyUMv^Kgz0&SKtDn#@4{oJqo{P8pHd7fGUj>f)LD=DAJv=|mm* zs;ic!Va40X5)H*-SU(VhM$Y}+=*)C%Wqck`$E+o?HDG1Q?97q@T6y;oHYmBH>fM}` z35FafeIc*T>Tv5O8J~wb=y9ko7R*+QdQuI+L9`}S*`i^M`!!L`8-yPyip&M_g2D5Q z&g5V#g_r@wPsz;*UBH5ROzuARMIk+E7<{KaHSEUB)pc!S$HHG68N~~hCDW=)df8dc z=y2L!oQO+3MyDyKL)pP_lm!s$w5jbX*2!ogo0&Eix-g7H+fMC zOoA$<|hke+GA(S)8zWqVFoOk8_Tl=x^J+)g`d@+uP9 zo?-v1!zo;jFEwX$>>JQkhg*GnF)`*jF^Y`TVbcyjzJ@$Z4_PK1v^xND58Si+?#r34d2r$VADYZ_k)T2uieVEsG`@K$&raaxe}SR352J!i6c0_ETLA; zFZTV34t5KUsZ2}^Cd~m0Po!)nYz0tAfg$vdz)?MBV-fwq0jnE6)Vs#I&1hh^?MY*^ z84Wsf>D@chfp>3Q?WSD^D@m*3ppbcI5dKpnBzb=Xyy?}s)9NS8%e4Ih4!q> zHiUZjTacHC1E#Zebt$iNc%U`X(EgmE&7#Ffj$(@Pp}bDfpONhAPM}>TEk^KWhw0@n81>}~e`r#c;f(b*L!*nj- z0DCk?mU-_w#~O6(fVR@M$87vN+;or9bX^0!05KHou0Ry#G_4(rXf?%MyLuY{K@r1u1jJ}6v< zJOX3C$k^Wr*{2ajWSj^RLfCEysI{#tvFGr5^etKmmIXI$wdHD>!m06J?dh6PLPw*! zGuXoheLwgIYPe~RL7cduWMB+(K5!2A89EbftaK)(&E(FsuxpB`ntn9xmNIJupD*f0 z8+8{8F-!|Br2ThRT8V_!P)BOSzPisbRrhI8M7W|cVzL@SVNP6iC9(Yf*DvqVFVs2M zW$jh)+Z6T}=mx#i3PEIL_zO2wh>l$Vu>U!tPE)ETX*$V)CPPIWC%^1cIn?UK-<4=o zX@w@G;QIMmAm3_T>gjhuCe?)W1EnoM!sLhx(1#&>sHuQMIUAH?M)A0s_cc%7q@2S4lLUzq$I@za9Q$r)PEC_!AHUVoWL;0*hG?vlF z76sLl^{l9jLc=M*mx&xgwF=OJ+2d!P!dOxnwFRa0U_d#=##YzmeIinuG$M@+jF@t7 zc;v~FNN&bT0W%>(1(G?1SSnoa!aWeu!kyVLmJVxJ(0>M0#X_Plj^lHxSI?t$#dG0r zilpM%d*M(>W>c{OdD{yigeL8Toy4k*#!lP>za4C7_v?BgY~UUVxP+@$Z}HD+kp?n< zYT~u6*r)6a{9?|m=z6u&Yj23 z1qWS>X%6+MN%kQxbC z&J8wd@?)&Og|AeagPS9DWK-3J>)P5f^H=IHLc8@|@ZTdKx%Ug&!9z)1xs_~7usohe zIhjKQIgd;z!ahh$eHOx_|ttRCb*>1b3#LE?CqN^d=QWwh3?3;2rGK65) z;S56HSa026K(n>xBPG@`Ck!zjU()MoonjCDqSiilDq`E7ZPE$jp1gv*lTpq2rJ+P3 zlno~m;c4U`Cm)67+(@6Zp=2_o4zlYUR$6EqUA--ogtN)9w$aNs_jQnXoL03#vh=Gf z9lm|Qt8y_%3a}2qno07*aJ1~+YDN>QKV6_V#Gf=M?TGO~6C!U7?LDqxqYnFcsUHhX zSQ!A=_X?J;^K__=G<^80sDl$mxDZC#uVbM^ZkZOSZ>WpAZoF>H2^mG#9nd_Tl>1du zt_sEssQpd?VLJLQ9A028W+-IG5-~dzBI1P|5m$GhwqYD#UrmRcraj!J_`Adr)8^1{ ziaB`A2VR&2J1;${b+DTDY99K6*9k+%snAO8yDhW}$C&Sy^P6c?D@iH^>Kf|N%0yj5 zU4Rt65+p4o@d4F>8aRzSdg!TrH;_AlbqB@k$d3e%3{*8NSfC8F0t+eHA)aZJ9l{w^cK3I@D zL^G*i`jQmw$t1lMZiBnR-Ko|#;UX7T5sfL`6TFJ{7RX@)s+z&O*Wu3hcy9i^p2p82 zd)A|0Y=Uc)9D>|5Uuu$u1!i~@xiTTD9@ zAWOSYXq}f(8!k~R=PL9qDs|}EXB|kT^_UPiK7a^0YkLL>QQHw9@ zIv$U%xuj+ve!VisCdLYy3#PQ+US?;++K3q-C_(lW2}sHtB}FSk41hv%`RY)a`x>bc zHBPOmIPWy}9wT)GJPjBt)h^fd=R`&RRpJFC=TyXCa1U8W%#U^uwUEE6ysfd|ZvOy| zCMLYFG~ZaZlFyp=<~s+J3O-y>i~g#+^S$fxTXY|G7ym14-PZ}9J=Xmpn+g=D-fL;K z1>paDPrrsq$ysWPrpi7^;3F!YPCFVS169d<@+*=_KR~23F?XP4HERW|p{N)uIUZO%J)>-tY;D{*pBgLPV)U!c!0$)-(N>b@Sos9G0~#bLgf`?dMNawcfpeVH0*Y8Eb!;&iSjQ$C^A2)JVots> z+0zU6w${5n8ax(J;uyW|_9Fp$qp5`gCj~;9*{CP72ezRBCjo8y6Fnp8I12augih$d zJ3n3RD_+TIw!77$3>ZHUSTIy*ey|-vx?mTrZ_ZKlg>-qUCPjoQvk9MzJ2~+=E>mDG zt*HgjoUrdG?Pf^~CmQmgG|knl0Sh*;mEZ^vgdM_FwCNzSp)N+Qvx2`#pgRSgz|4Z(c9Zyu?xE9vEU z$684mDqcoFBpAw_iSSc&1}{)xWx#sM3P3@u$|zs2#%eEQZPR)v``vZ`v8k_=GNkr$ zB^m}H(^!L7zRUI?iw(}D>49KSNi{uK<>K!mvd4}g_^p+itJLKc-i$g@Y>#3Kcs{m+ zs}5Md&B`SYExC<}8U~B?vHKC4$=HYp!u6;jwv7b)w$Jfbb zi$l{M#Om607$4dv9|X)~LF=@@B-CR;$rUPAQ57O*SZ!*G7Kpli`8hFM{!pfnflL?s zmEY|Yo!}~>a`1s2p0mo(hY$q?gV==t>9N=h;NncX>l}+@M-Z3tYSB(NctgLaqtp|; zj9eGQebUj#pqpUU?7)(cqHbJ=nX>t0Y=hwj+A<%Z)&6D^#n{!}JS48N9EDSBo7B8e zdbp?7BC>9>uX!<)xA!vdXsZccqqjNHNZZyZDySI*`e6|Koumey_qCbW(T3#W#Pf;n zhTqS)SEx?qw^4ucI^K67gHDZ>!Pe}r3ToRoO<*r3ee#yB6}gT5z#EjFyoi3u5N;SE zjhf#>0x8ni`lJaOA>w>5THxz_S{PTPphghHz+%Fuh>m@XzptHQ_r6P?1(uRCK^QKjr%%`#kN&Fi8ctLouqeI#uogl)C<)Uv4mx;T&Yg< zfVKIyBR0}e@deTfp)Jz}H)KU%ijieOz9yf8B6VmOb7xMZkZ*F`@Nr6Oj-$ejQLUGN~6)9w%BZZ%{G)h{YYA72$V(K>b!?oN@ z$|2EVhNHF)=PzIKkm8PP!i~_cq*ZxmgFUPmteRR_DX@x}CZ?SGee}^jQ_z=Tg#(@u zAd*4aDhLCW0Exb!JRH`B>dkq+Ils6RrZWg`;ZoYC72l_~6U3w(t)%9^|6L;sr^7F*HhJ_H zh1Tq!8pS>VYPVJB!)muxtQ7rhq%$()8b-S7JlmZa)a^Dy(>pvPiuCb?5%;EWI27rM z1nT2wzuzq*Y5T~1?w-2$R-A!wcu3dOv-RLi7tc1_yc=1F=MiHVm->W^TUs>0|ZW7${Md^j7Mm|x~=%r|IAkr18bP6sA-&9kvsS=g) zFVI4$Ii9P6a{j(KQ{Zo%g;h`Fi6QR=Q3Nv*%$SN|O57G(Q4RG&=?t z2^1tdM=2j`^vB(@UODEZ91L*H_a%Re@^X!D_in`8LSAQ&G!M9oEly;TsslC>!J> zTnw`}0V`eUv%j@>BcGcXlj#_bZseHwJ0y^hg}GC)GIB+VGj$;|1RY|MZ@uCzERyS| z!fZ&%r#%P2v=k%qHy_8Qp^E9^rNFw%MyT zEyrFtY1e6Mt=Z<+m|!`+6t4CYexH{ptey1h4pK2GYD*DQ`Xv;qVsU7&mjnx~GQn>* z*bpCNJSAn+ndM}hYaOQ};HmZO3pY7W<~6NzY27sat|Rw9QiZsnNX~L_RUP&KpujkG zKD-p-LB~}W(KQqatI#{5&ac7}>ZIRR0%O_t8Vl4f#aX6s$RN)MDLy=^SCeLspH~3? zRX?&&c|WoFnx9ATmAx*Z-(=8(tM|$!m>6^Z?b0D|NPeoH=gL`4Ji^6FUXkyp@)L>B zUEqCV6AKKdO#F~yhD9lF$x`zkyB$odUwmWYhXikC`H5FFvi7~w2i{Wp0PVE*A@MPc zCi|@Xy^)dVMEamFItzW7R1Skno5&+Yl$K0j=xGHK*nA(yzff`B5rq^7yv?K|l?-e1A+i=N@o^mh~Pp8$>39O9wHb~fL@shwnQ5!R@65WyADS5im_mQ zDPSY<6WI=imcSy1I_y#1fL-$1#1y2%UJh)ZGrkn4k?rk=hjZlbFmi)t35`w$KY7)jHUdaBVx z?oh}~8%ASFmyqpk*oy$mFI!AooyNBISj!g)Ia)NB(X@=^1~n&y6`9anB2gSJ23)Tx zjg42Zp8%E~(%h=ZR^s3O{$ua9pUMOe@Rbqbm40GyMTLJq`>T-ahLdB^xuYW!n2i z(wDy2tHULEJH5RfiPY*G&clC9%i*z>!?y)mWe0X2>QpjF?cY}6PLm`Ndq;>%Rpbxy z_8@*p(N!{twmvKjW{Q}UAlYgbg=}^DAUQju-l1MJ>ODg*TEThaP{Ukrn(MLA92N+z zL9xE+h+Z(VULAi_{EO%GI!-~Wehc64bo%+?7uKvdk5ISBG&c|S>3Sb_HtN%~KE>nM z#-V+;|2yrY0eN|{PO5VbM;EY+-TLcv=pn~!MDM@*zk{`z@B3oB+ zOYlj>9jVIxPFPfBwYJlqh@@141H;nBFJAc-n_r)ZxU?I;Y7N#4qy|*w*YHNeJ-i$6 z)u@YFu|t&!xpCAAdx}u?J^Y-9s%{D!IyDxu^wVS5Ko}LS*w76ksd6>uK}R`~B$m?J zVBEmIQ+}a|ptx`G@b-`RU9U=wX~!F~ijcmG`J?uS!GaiNb<x;0Btbt<6Y)l{3^E>##<3(4HhH?fJ`JneZ*$cbG8Op&%hZ146-`y~ z2TXi+6QSy)fhkEi$nizq1BaLyj7MJdiM1xa_m#OzP3G4;Noxb>=hc+6%yWjZ1C&SG zIp5f2m{>AMn}0!~X@+Mb4zZlahJH>9yiL|uT_gB5@_aFLmy>ZeW*J?Zb@M>#0PHG- zjbUtwUwwdq6Ak9oW}DPIV3^FX|3BW|1jw%Qy7TM1-?#7Y^}eFt1JEEEK%>zOfCNQw zgV-cRiGU=MB4o;vNLv&GYOyTZl1hf;k!;b6?6fU=6nY=Rj%rzrdXWjgr5Wr9V^d&tlEGRDh&8#ucUsw=3m%{>FMzaV#<;Q;b z!)(Ndk<~9Fvt8!*=7rZy~3yMNVuk{z^<;UsUPpd(umk9fH(d->U z8*r432jzr`)!EF-WiOMtCfyl{m_KI^=_1D>K9WEnv0G%EKo7?hs+c@&W-d3Kh!s=y zZh_9<%&cCSY42b}M2wwGw=str^ubf5+D^43Porja8^vM0+@NE{LbqlXP!yT9&&#^J zQ!OI^pDb7Ja!EIjrzz28nnP1oGF@xQ(9G^9ZvDNWIbD{{HD>U=#=O^-*cP+0b5Jsw2M(JN67s> z6-p=gQ2}n!%;Ga<{Xi2jPv+a5G~kX2&*sXUS&3^qh9qOygb#1B=50;1o)N8Ilzq6E zRjnw%;#OMq~rRv^HE^!xGVkcQBgjwKC<|SCS*7PciMp_&Z5P zLe?e%LZYDaT(4bWRUqa#3pug{_IA=!PEw8n1H`?+ozsK%8BOrz_RL4xX_@6g)d#9T zrp4}{cd^utFO$6YN~2WNB{N=g1}L!hZBk<|wo@U%sbXYfHffh;iTEIqFx}$;YW_&*zl|jI#`bCla6;a;C9*Kdb-j}MO-+nH^?NJYnBYTDn)JUd|N%@t14G1*+3^r_V-T}bD4fpU$! zRjN7}-`QPVrLV@2$L27Xnlg4UEDt({&K)7?qQT*X&PPdsduMB*Sx7%rN^eiwwU1XjovQHL zKAseBF4Y>O5uAN%cRnpN7g|4FtcQc-jtWE_^FX0`suZ9tuKozL-Q#nPuqcCBp0N>Uv4M!HBJn&%P;+29?gSZRAku-Z zy|qbbx*$HNW@}meJi_)(B;TE%TlM|bpSyyLy2kp6Ua*^8etN@C{Eenp3U9d?I0v^i zX7~LLa?6}*U86Ucp2G`rS!R1-r=c`B)|cd{a(tx;S&dOc^wM#J759UI?jH8O1i)+( zH@$jN?7z9wBqa=Gp@*0ToXTl3#LG$An||jsrQ4DQ1&x$WUTURNNddqp(gllt>ARs{ ztyic0=}M=*e4y1>n4FBGQc{{K%{OajlC&^Cx7wMUsVwiG=B%kov!eXwa&KxCxikpc zk&M)C%#>?Uw`>U~O1xUiN&6MWCqrF2TjEdGYy?9T~?8=Gv?v($U~qlm)qroqj zT!SUV!i!9@F?pw*OE-;&lVI78;|4HA0l>1v9kWYlPt8BIlJ~V*tF6}ImB#W_L(yjQ zaDt8^SPExN+9}PR36cl7iH~hNKC_jUsD-F~S#Omzc$RsAo>zBeYmCzS?LR1Lt8tYs0YHZzR+8k6{5h3pNAp^>Y2) zC}oQ-_B3<*n(R}lg11!gWByyT^H7=cMUmTO8HMcAMkz6@0d9uTUjtl_1 z6F*;eB4lYKT+XyET*%NS=h93bxe0zV$4<0Pj=iK~O+OT+4MHrH6~VI55JFEIz1%sl zB}GTam6e~#^{D%h5mC5%wo_!V$FKL7gpWI)&`jnUGN(e@rGLq-AP4tS4~^(r=ghV< zU!1hku~eYt!flE}c>F)fXG(5vljt(J-CN3dL6^NkF}aUT`~tmmYU)@}a1UaU=58jk z+!Al5C!>_*m36X^*)CW(q8V)_8^$0wpnZjF6?eRWnO{b%0V**v8o0nvp@f* zoNreBr6@Q0clC2-^uO+BAXY%`EXF<0>y_(f?psgyA>4!w zBEQeD=L?}6K4n(4jPs#qLam}ck*jD`wlxc8GiN{#kZq|zNd&VYLvdk{NJY6rB z$ZlQ}!?I{CrGy=%Vg^bi;kK?iDKme^4?8mx^>`f?XIYQx1wMZ?X=DHx%s zG9ZX`algZ>tE(-Ppo?huJBHcYDzW~Z9-w|LO(<9KZt|?0e2h&=t#=~7`qaMO_@bQN zy)l@sk6fvxOI)E_m>6JiqvVQPyf!kxJX16TcxzAr&0j&(AhO61Bl-HK$Q$J57sg{` ze)%AJ;5~FJxi=}baE-1w4u8;DaB^K+{d&VTG-eAM+ScYj(1wNy1)0XrduKK@ENI^G z|CA;)>8Z-$p$_jd(Wb|-puKbAGw>L!@+VMb63iktHB6^02E0LQTm4P8-rO!c!aEYh zLeseWgtml)il;A5dgImmeKX^GkV3+xa^^=`jRO=;|%_0G&- zrbAKnnO1F*($$3lNSpOu1EE46?h7$_dw?1Se51hi8m5yBPqT{E6%)B~YnmWg!BAQ) z4kd7nG-~qBfp?`vzgQ?-2&Nm_E7>ML#79CjD^uWj|1xF|OzD5k4S9zNeUd?OcT7tp|K-t

    BB@{>SXANgpJ8Cbt|Egl#P}VlQd!yyC&@lW~lCe*0enpf=+*L++H`f3# zLs9{O!%-}|0UoL{kf0Q5p`=D*zg~Kcua4yJ8-z~2FivDL35v)r&P`PsW7Ij@f>1Bu z_V$ao#GiE@BHS-hyHl%ygF*;akBvTdU3Jdk_{qO1Kj4Lli_jpq#=~Iy z`FNc@7cfI35WO%TxSb6LwCK<*G-`=-8dGWTMw<$kQ|n4jmcJ#RXLp(II@$tj$JKxe zf={~<+=cGS%a-x78W1AP_5y0otexL<9P?{(sC4S(3;5T>?CR6uh1RU4#Ne^%9IP3e;4Le{mWmh>`9@@uL^T;7}k7>n2Rt`C^#@HkcY@az8|B|6E(5O2Y zeoB#%Wv)PM>0WyK(MJOd%n$Be#G(=|-ix+;r#yn9Wc-47RED23-mv8LGvDl+(41wR zbgMp*N7>{GK`1iz0-#3xr=j8vL#f*AtL7fbwKd!FJ86j=;hB~XzG|t$ zkxGfQc5;aEdfevT?sIR?56<3yc3>~foyvuq-P;NGcGDoc6YtB}ot95!>pF!l_p!2Xwmca49Qbf&5H3||lU;mXKujzQ zrKz6r`3;3fP*o6~D!66&o?9?M!BR0wFSA}}4#v%PIJ+_vbehdhIK6Ks>^7Fx{MPhz z0~D&S6l)YdNUBtNI9aTN9h6kla^vv=(1Ybht=M?cYd2K?Vs780H@R;vyjP#};mC|v zZO3V6W~z30c=nfvpY|2&9T;916$xRYE9pfWkO_&+*UYCez?E^+max%mx&?P z5c=+Tz#wM@Lre`8vv4?*N$joLatlnQF!}L^ZUEq|RTf-w zIWNQIcbAhZ{y1BV_YQwxfTn-m-7H()$*X6a<>Mm!|5>ECTZp)LaN=q0ix%A?-eP>o zxFI3ZS_fc-?p*@I?Qux>IqwlwyumH;N2zQsGn+V%>Ny%e@*kr(az0$M-6_{EhEap{ z(ra#p*au-{j{j5utt{8O%47HUj#S3X-sA501;?O%{PnlNjGi=ZJ-o;VY~0=_p7BPB z<~2unujo6*9i7ea>EW1&lCB}4lQ$g5LnGPt8nj#gTW^4d7`q#dW@jY94iRp#1;!-& z@kgqeq&VKEq@lAZk6bK@oRH+hPG+__sX%5*LRex4 zch%2qhq-~#X#@@@rlT!ho&!ERRbLSnzg$jFP;Cd7q)V+K(JHL?VR}eX@J=QQJ6R5K zI}_?QL&6~}+(M~C*f!x(GwtJ@fWQ*md!?V0dvAAF?wg+s$hje+Fa0V4JO8L!=2Eqk zk>KvQqiU1{8M*ADM#)vBY0Y#=Ov=Z|ViT6&FsAYE$uY`|&(i+g&?(gu=59+YuP*rCaEH{Mxx9La7w-gYUI*CgNh63qPWxH$Kk`$^sL#Vb8<^dF&-{X_v=Gq)!BZ%1# z4?3S4D8kH6^aHc4UCJiO6GxYg=$qTDTU3bMQp0To>Ne#uYFZDq4i!nbjsOr{&Z0P} z>^_s*i&D;=Gg$h>y1t5yIh(ueJG1CLZ_fIQ_4BBMMZ2cYW|YfUsmyg<*+WF&>YpMg z2E+b6hRjWZ2uN8@UZz2G@z-w9sgvRK(sV#@NZu_nuU*7co{AluA9Y1~k=24KDwIF# z$*3PQWO|*WAFMSqo@K%d(%eyt$mZy^6ZM+icuEzSC94puMYvf=xK@<@ryq^ce^u8=X8+ZkklPskc`tV2$wCkJWw*>Lmi7`Bf1v#iTfjgb_!tfO3 z5$YGc0?}ILzHfO}FplJGL1eXH9<8WSiXKjC1jU9s0VO=wvK+sPHv{fF8la*g6WcUI zG$+W5&|gJuofsU&q}7*cJ(kJb75P}e8lNq(Sk`-XmKB-8WTIyY_PSe}eO1drWucQN zI81c4kmI}mU!&VtAW%N?OL4nG?Wnq+#PwFZe~?U-A_5K5V%n&5s4Gf48)d+O2ts5& z0sdgCh=JBBx4mQmrb6eis<-#=ZwZpL@VD*hwQeIS)^5@oyQx;JGXK>E&{Jun9#j|~ z3Ubs6X}dVnsInHTrOIKQITheY4rLkR>4g1}zDIa!7*)!ky&s%zPomfO0l-uh5M{$j z)}s8ys!4g%#9L)M)|e2Nq#agcarCfDKiHsOVm8^lN)?E^!lq2QIlASs13gWIjMHMJ)@!sYMMi-Tkb1Ya zP>iDa!_x=u^bYO6^T6V%gCvnnMPV`8;_UAM4Xk;|m*46DDhU`!o81GoEfyUXLO6zx)5N&ZHMts6JyOo#P9) z))-`DkpAF|FFNI&FY6dfYJNYF_h$gDqC6SF&ii_2y{)4(;>2TG*qUQeu7GMC z9GedSG5)DT=aw61-u}SR?*7dJWdS|Npi7R25RWL_8>V5JEG$5fc!GQ)LIL#-YTYs? z)Ji}d2NYKHz0~)?H7inK#}62nH0dlKICNmS8>b+_daFm?`t~!8cbIwJEUX%s8vVm;NWU?BiBhW}gk*+P-jblQ^4 ztR7k$sJ8WB?a=CsWZ$CEsdP@^md@kvScm7HLG!%Fc|9!W2!RHwLm(Jzi1$+AYHNce zpA~BNYyjJ}LMZ~0;$-Ev!^*K;>Ep`B6v0t~N_rHM;hL&9o)=VTg3Q@0tgxc)^8LH+ zi;w&M@%U19_{8xf;lSGAxZGL#!E$`KxHSHGZ^qE{^uoQ3{mth7X1~>J_M6SmEO5xX zr^Uy9v$Y83?IN$!Umkv<-?^Re5c$`)A{W0GE|+bJux2P$CY78)3$qAfQmnM}ryI(A zD4$TiiPA`bV&eLo!CSI1nSkA2c}0>iNJe$=BB;e81`g-|tm-2FueE5-nt05M7vH@n zwonPVFFYd|_{Ewkt}D*1k@^t$m!RR{DqD{2p^Ka3*cklO_!r^?f8Y)7VusC-erb{@c|SOw7pbe z*au!ql6Sc~vi+_~a%jm4kmsr4kCEkZYomwF#Oy?33b2MZpuy};Ei}(5MCaV(94Pfs zEr_g6#blF&o>%XOmmZp#o4i{R$GIk9vejx-E;Z*HjrnG0DIxBA{k1wH{$}elnRpTY zrZ}xk36m{)ixgCie!{FsM_Yf1;H==!akGWNpTCrS0ip2EFH4Xl1LLGHauoB(=9KHb zE8q;ap#K5h+tU_bu!nbJYl2IQk|m@#e*Wsm6yI_K&0;Vrqf%_O-U3-d=Db|{*24;8s@wp@=Iy_oX+Rv`Q2t3KcmRHXX5no(|pOnUmo3&6ho3)Ovz))9?PW5xVb%8 zylr43XKhmvlst|Ji3A16qMNXix<1YtAm6vP7uZ(sCng_Jktm@1_4TO5iz>MC0e<%H zcTxWVKcb8o)EC$C+dRF0N?>{D+k+BNe3Znc`O|40P`+0B}*$2dr654WT44wunX&) zNA~aS?z}91V|WwPYi?p)a{eieXO2zz7U7RVlQJ9(MOj)Y)+w(9fjlJHK%dTUZfaCK zaAngmD%fQf)8R}7+3%P%0UXPJU-{cvWdzL@Sv!G0tAfUQy@dmwJKPr-Cx-(6;_y_C zdF-2Zv{fm-tXuH%Z*} zSG>xMWq*Nohd84Jc&s~|F^g~3oULr+lX!zemz{;@q?@M9T$A2=!>?D}9N9$GOFJ$@ z+r94jGDdq^(`)Ga50Vr0X%>U6VIe_`b~H`E1~q}l*EPBA$|lqX_lC~J)NH!~oD>iu z+asMX!tsnavG5~2>s>FQtE+D5YyJ009u>InkF#5!Jo#F`{azH-k@lmg7Ke>ytqgVo0x(jn}$}o`D9w$ZuL(R)j^s@#%#cbW(-MaDe==b>4Dw)>Lir{DSla~ zt!oG6PDdKl=B`c?UZHiI^N+;P%oVjp7Zpr|WJph44xdHqt?UND_Z6bJzSyl!tN!0~ zb*foaiGnABa9{95pDq&xw?kkHnu&P?$`#@iJyIA>92ulWQ*;&8C#HXEJ#nh(9D zJ70h7J=M8GH3}~T&06QxTJh)e2W#(ntafmr#!l7*0)4pW(604~H$mSn-J89WNCwts zUWzv94>2AQqFK!%Ez~ci>74~!^qAm9drFL(J3M0<;mEK}@InnR!9w?&ZS$h*1{S}c@BNC~q1`R>JSG5q z$%;9~q4MvyBAShDYZ=!XZgYdr$JO`|5*ZuH)}s`*>Q?h9ed3Y89CY=vs$Mn$Sa6!1-?!-D($FHp|Fu(WVXtk zLPcl3rP``OOIk-0_~NBs)XCG7PiunU#I2*m+nJ4t#4qWF2w@5lPdXb!gY_^#@h=%{ zuGqh=jZOZU+c+T|f%v}7l@AprE9mEisoAMwr`6hNkxT_H6Um|^rJY)@uM_t|2muDS z((UVov8x;!S5FO#b)7T;dpXW`9z^v+@Hukl$L(qKhO^@ zWi~ap=N%+o`IzMa5|w}D!6xOMBC`NQkqyd2(Zsoi%kOvv}BLDvzVmW zrV2+2>{fVvZ?ovot0$R;seMx@hyE!;VDhF$rG+kg5du=&WRkEzoEM!v9;8XNR;#jF z0?V_?d6)7Emb8Lpwt>yd7Jt1v9^sK`Zj`=gUXimwa8_oNqhD+RQb+1K!3f7BTAf7% zvbsx0XIl_JPQ&6~1!Twt)BM>xI{c^hnY~ktW|K$&Hc0L8;HT%zL1aCyB1hNC*2(p1xK(f)J8xj%{cg9`ufmg-K+@B4)5@^1TzOHf#o8GEDq!c|O=Uc}v~r zkK|_e&I5!xs@<#ZH7z}W+a!IF^Ru&?Cr>`_zHzABI(hPECFVNgE_*0zUYw$ow6q!+ zYiERsK*JZW+<%Xq7Ttx zm&n!D9g^>UCd3vT`%?$8LY-TijDoACCSNKyiJ3^zZBZagdTDj*)D(=#A;x~PR1WKB z)*yyFzjW5*Q`IDUkh(oTF!5s(KcjWK($5l}iPNJ*l_YOAG}Xe@Dplopi%%mwPtjBH zip(7*((ofjjxN!Dkdxl88j`ZFNvx5cT|}yTPG0dbrZnama+A*YY!kh zShW>hBs#_kjK4#yZ4V0#8R64_X+-2vU_?qV+_F!C!0{rkuCcE%IwukjRvp#B;tdm~ z{KcF}+;O5)&sQqkC=PqXMseH9I_4%2LJ}dW1I%q`ffEH0RIe7nVaofyesbVCmE z2CBe1ARxi$LegQzz7@hp!>}@~M}joB^zDUb?=y`rsmdYm-L zb!sE`374IGJEAkigdZfg9o}WSPrI8dm$rNnS{1P+d4%K-v&SHVAaaWK*jCsoOjePa ze*&Y9MYU05$35mlwtp?uj^9F9II_da&3E5S7-bawyU`Ex(yWF*Ty}$`H8IVKUyzgn zyI7uE$+*J~x0#k$Gxm$(c*H34wWB_%Hqc08NSql${eYm5Er+7k75Bj15wB^DU~zK1 zrV+yeW5+R~dH9gYtrOp2tzt0{qM!x^EzDV_Oe%2F!7ERzwd?0_Ge)6(UOOjyH^3Qb z^de#co#IXF-^o_fUYSe;qVwH82kFZoq`-WWLa0Dud*K!;AB%~t+w8qz zv=l^~69)G~0by&h6+%b%vlUj^+m@p6nM-lFQaqDPFHR?CiVQLNZO??k1~ff`g|%Fz z(0$;|K<66)KSWLbuXZW~({%R5VQw>_|NEWwT~Zz!wCW3JZ`hC>*g9Y~VeL#NEYUjs z>{h8R!ChfL=?pSgBtml8@e{aEoK-y6Mq-$ew2|mZ{elP;UiS;}nDu_O7*R_oDpvb= za2VK9I%rhUI2zJ8QdE-HJHycuNMB9|on|H+E1`eG54pV{Clg2X8LZb!d$h(30BrBN zJEBq3?g>HycHOpS6IYa`bo|Zsbnx#KVFleLj*8{`0sq8JyqkUYFnI0e)l$9a@$_x% zU{i1`zb<&^Nkq?p$o}YEfk&jqpzF%9!VTZO8ijLI2Ox=Wj$HAVTsLq+U~Ts%g$K=x z5|8H6_>pqOYDf00ek`TDsVY5(tpmqa-B+S{PQM9q!aA$sbtR&nNI~kX@e$pp{6*>_ zr$F~01tAU{`=b20{|c2xGszYqL5Uo*NZ>yiz|Tw@QMh@9=xliPZ>pHB0{S34{r$S>1`G>V-`&DJO7xy$})Q++;PgjW~HXLh}oE#{uc!TYY#cftz z`6Bg=1%NoO9#iAtD(m&1Y=D3vKf@io-;U(y`Nw}9w9zXlN%WcXD8j*;pnYyj*lDre>L?bPV z#i3(^t=@|S*eulqvG5HsyV{bzA2)~d)AFCMA76T6a=iyK=Vnm*OvVjii3N9Lu{Zgv zp&alR99Mj+`?Ble7Ixoy+v&dG^Ds|Ki#?;y{nMwJYu7);V72g%9l*-^Cc`cy{3GoRg$@&?WiB1(KwBCf2L=S!sNd=}Ac(R7m^kkOuGSxoiqWGAE_EM3 z+ZyR?*RiSQY&VLYe#&=W5x(x3TwGjVT1u9X{aPaK@{CCPYbpm7q@?+s z^!Y~t#=A~#Z?B#`%WxsT@wQ0T*22*VC$Qe2rw_kUVq)?zJ4Z~nWBnP z*v|*gx_QyJg8X|q?~~n@9YYd<7|PJwAnOdrs-+Rt-NuL|nJpUe;N~(F8 zcrkv@DaL@6ncq)JfO&e6j5j(2{^mCYF@|W5=SB~C+06=)}BJ35=+c_szj0c?mrHv7wXo7ZXZ)yAJYy_)AZdxX;&dxpC#dqn2w%WN<1 zp)TMe=O!)$Zqyv*P%6e$Zo$E(w089|1DEKpgN zo>%Ox<0-?})zOeOHR2jIx-q8jYK-P4@M>H?m(m!ee97QoywIHNd&ZoA>-zSklR~cH z-eabPzvNk0>!){j8A|4w;ToHlDY%#Fp@~-DI4)0nfG^m15IeoIG8p&Ogt-xN^&WP~ zrDtdKM(&w%^v>}C`KFCTc(2( znPA91u`wEfLZ5D5xpb+uS}%|He*NRSjnD4xe!Se+)9)JDIE&X)_?F%FG!-u-DXw{A zbiRAJUVg?5fQQGPsvFz-85`4_)~{KS*&c>fU{h^pVRbuWce1-&z3OOaeENue11Zj) zvv=;YK3qFWR^wo0Qw|!<*lBO{kaoH8nI>ewx*8uN=<(yb?#b8jmCSzW?nH|je63Qf z#GUb5|gt|rO= zU?rui>4l@_B*5rFv6~wl&E?@)bn`uZ9`&W|pvJxN#e}fQ#Uk;~c2;wqq9(z%6Wt39!w#Hlt1aPxS7-Bfr2nz8WN_jXJ7lMV5(niG@zc^d3 zOtmPk*sE}ah{Q@|ab;7miLVu=3st{XNjz_Z>!ujd;K=tA zpi8(Rfsa@KFh!TSt(TP?;0R{Dxa52P?)n-6vfBfnqXtzmpwJ4=4j#e@7Ez+tU(Bfn zbWMDUG%e0arsS2=Q>B_8fM&#Xl@AmA2!QDD(OGLksy>y}n!JH~=u8zoMQ7Kn6^*wD zX?(m#b42{7---Vvt6_Oz@1Rucw+@G7dCwqHq_b7@{$dZ!)Bf^uvq3VM+JEnOcWsf3 z`QW9e>?0q=c^w_KOTOC6;UynxuN(&6$iIN!Oqk36Ph^15)R&D`pw&<+CONjl;dFuNcJ<>Hl$0b#$zI7Qo_Z? zmO%9f_IYb#1a(VL%byFu2N<(|sAIJa4u?!zy$3xtZ*9W1%s#>Tl8xCZKf0yhG93%fYbIjtmaRm7OcAYhXYxFr0V)6V7Hq5avLXeOt7;r7i)6VDc(vk>IC zeQw8c;L_Q6;mXMA1ZGDNh0FxJ+VVo2io+bVZlj&e>M!w zOKZWF@$f_L)Z9Zfqekup_w3__Caf@ZZ__RkPO&DoKEfBWcNUAKw%E#f*`0O4IWTU+ z9l#xa%MDJJS%0@$KIX4pBrjkEoASe^0odG(%azygQEWWWzJn?-cx8Nu;YXS)Q%7z-Wq&V?Y_0v>C}FzCg|(M?oV|W7rXx`2p-nIB$}S05-Euq#b~~_ zui0e6DH49`d?TvVTJ6cnFuLOoPuX5}gHCNm_nXlzeyX?7^xuk>`c~+909s75if1DZ z&K+1N$2jXxgwahi`|D*O(y1+X3mb(Q=d6|-Styvl%||ME3BIwJiB(na+hH`lc5H2$ zXS&d;=vk6n)~2V|ru1xcCgRB)@kV%2(=f>J{I_86mXV@}mqC9Mo}pY|m-J>PBL3 zjysa*iB3c&yWDrVyHcDiu5_1(m>>jfYQD2fJ>=!iJf9m=Q_E9RBr#Olm5Mhte|&!5 zp@oGsU067@k1tJHH$Rx055xJn!Ti+P)W+1xl~Q=U3a4{a$}=jxE%$Ev`*wt!i|AuUCJ> zn)vYC@x?#u_jjvlx4gRA-Zw)TjhRD}OC)aoY`;I^$J6AhHQ`e7W>G~B(Rf^oObGqP z!IG8IGY?FsO8C|L()4{rz`_)k@>lPFf9hYlfy(1+N$?XTK9V;6<&&NYP&T6tsenhlkBY-KZo-8gMp8pDu zbvXHdMgqsvmx_NpdNi3LqQESDA_Sr~E$xm!Hh(Vjm0AYR1iP5}e5>Ev#GACaWlHnK zyWu#uw03rW?e1HEq4N&~(R1Vq^!@%n?SJLaf8A%VdoIfERbZ`W_d@&79#ivsD}&zF zN@9`12XA=sOZJ53&d#sv2{|3-#I8UwQxMS3dtQqVS=+*%NlM_lI_Nh-A97J=Dnxqvy3wC|*|PS=27+ z(K2$PsBI4LPc!seoA0^iZV&J5w6?K~qcOf-Lqv0#jcMZlByUO)QCXaudFHauEN*Ls zf`uf5W$cKQ1831>B#sZRuw@+$3jR^v5kA7x%GL~@g6(Ii#7b8!k$LNX%S4Ay$kFo& zG3s4}8$Z1Lb~4JMCw;%`3VwHxwMZ)=)g1?%YbQB!i=OK8Ji^LYCR`DFDq{MIb0Vr0 zD5|v2sSH+=#J)NIFRf2xP~mMrdykIJ%)iO>B6{{3-UnevNKYOKlieiwASsoF>Ea_8 z1_EMf`8!kiLB4pw$LnkLLh4sANz}aBBA)z0@K9lBL}_uq1r<~?|naa>v9N= zk+hQ!poo&F`4Bot@Ni*DpMQYQ;Sbbmg9K4+)DgL-epcesy~r1NSu%7YBo zs+U5U2PEyUVmio~#e!@LNXhUDRKbC>IZ53XvXVkpZSi_jrAFZ;6((6->b2&h(}2P* zMAR>Qi71vJ_@SU(sdc|qtj57zV3y9~M6PstOWh{ujJ3iGejHsv?z;;*Lpb(6Sgv*I zXnl^JRQr6}_^$19^3vHP}}i>K0>5RFV!-TV1k9P1phDa|1Q?mrM+vUx*ftjz&&mNh5Xm1ScLl}Wf4z}kY zS1DI;!bO%NEC@qDsG&$Y#9xorKVgH^UCx6*CXZ{a-b3wQm3zXZaUcLLnGeSvUT-&8 z^!*Du;olz1@|KJa44b`dc>$vk@OBp_gDog~(qW?cGGhR7ZZ7xYST`%o{n1{368Vn3 zl_yxGH=ciSskftOT3&7|OdgmD=Je#bVCul6D^}rfUiCS*%c<^e8DF<*W{quQ+VjEP_bB5fAP4wq}kiZi(H2 zqA6s!p+4nKFq8lT z@BVNOt|q_>LB2_&-)WZ^bJnU!(a;OUQ>`ON!rEv~1Dk#jh={soQId^H^aV zkb+<@#EbPcMx-!Ewc&moo3y(j8Q5^lIeo=u{X2Ukr z-!0FU-xor{O`l}-g>wr<%+{11r6N~4bMs6}tuoGdD!nhMCl5cAG?RzElcr~b=spqn z>GGY}BGb4H7#9(TcXoqfu(9bUQKJzh{^nAe_TpcSqEokoAq{o(B->k$^> z1(~nb`KMAce~&RfFC#+&mlc}fjMgkws1>R3OY+ZAPYWY_u|NXt<+z=-30|pq2;scQ z%h|zpWm}+@ky~3j!WtnBV~gdKVen!*%XQSNLIq~MSCStjnXHH^Bt8Y2xst}}q*ecr zy_f#QyJKy5^*;a?bInVm&qT_atbPB@`}ZCAb*C4$2y-mfg-wvzh>*>jME!z+-jXni zC~6{v=6&k~B3C|mh}sfZ-HS*hBPhsUCO!f!el;$KTZ;-KSlkMegMPSAMfv>5s9#Q`-bqVPncgg@>?xO9N1S)6pifsY_B8Xs`$c=S1&XT@wOH|cwXt1!v| zgK47B8&{PLFyl;SRy2-l$}CW9C;G`spYtqBZm^tWUv*8_DL}(fkX>b{>hc9k%ge6@ zZ$^J-qa~8CN?2I2`mBRg!OBj2UnZci6D9m;T>E^ZbV-M1Vc=s9E2IsV7q6dSCj^P^ z*2@niFbag4I9yL7A{c>GumqNyCtW1tG)J+PxYOPzJyZRjRbI7NdQV69Tt4cX>fjv4Qi0GsUUVr@ zGtp{nsoP8o^Ip-x`P^QGYV*mLZa4g*kS1GrpX3q z)Yok4gRMQ80qx!v9E{-B<$-W`Fd7t!48tG3IZCM3$>wl2D>=F_n%h?8UCj>8kh9(9 zyDE)^ZyobJ!)JWFSlFA+<&Ora*Wuje{DWKy0?#N8N;*jsdk{5~t$LMaS^|g3DX!F@ z@qNb_pm1BoHSfGaX76lQZmm)}W7gKudV7W{U?93549LHROZ>bEgvs7hz&%}qR826JCUz+&UiLcNi+h(-?z$i6QvRNdO zG2|naF(iu^%)S`kQH>e>#JLb6PAjoy6S72>+CEk&g_D2o8DWg>-T}E*kxe(z#MwUuuhL;wjOyHsah{I3;eJTD-jD0$Jr{Rdm1l)L`)sAPs3XtX z%hyYS;Her8Pl-Q#d1Wjiz12FXYyMa-|8pV!V+uQ@yr!$TMuJ|zz8R3N(CmkNVNqxD z(8T{eF)+05^KcOCJp(10@s}ctn8ycfe5y(zym%+>3X3RlrgJ$KKzl+41|rA7JjH`t zeIH^6;9E9erZ^>!ym=NMK!McH5Kny2Y19^`ADmgJH7+mJC(D&aS}S%NVAvLGAY_#% z>-VIDM3u|g+aIMx+z%LwB7r(V7rxhQ7SrD1fyqu0K#tDjfyEyT!cv)w>2gk!+*K0LNfA-G(&MtTOKTnd}5tbYP4u@OFEt(C;3`)LbNxfZiswG!6lpg->90nq;Ik2v0`1wf-N_K5 zQ2jQJZ9$Wn2(~d)I@bUjQ=&4~3=typlx5CQQ59P?Yw~FXWByS=L*nicht9426ejRr zBA){gERa3EPDTXS%95E<2(py^p1mb&QNN+1Po^a-Ocboxk*H0gr|!GrL};shK*$2l zG~+BhMDXd^Q`QPa1RHSYL$D9i(g)pJcJO`V!cH!F6qq4P6qihwaWo(1#JBMUme9KQ zfr;_h#N&*g7Mf$(`4;B*jybHdA8ZhY7KD7y8`&0e8w2kamuIIAhc$uDHolj^2_M$W z_h#>WF}LPE9mIzRz+JucWays@>ZJmde3SkE0?xfs-LC#G4n*Ofagcuyl|CGB-~Jh{ z#CqxFQaw25hrd#yehhcS@t(czi^4C}OE*Q~%VG3S4=louGk-2?qK3w_fpm8pXs3*Y zOq^#dh6qwWnjC{bP7rX^S9UB&sJV#(on1i(#)1{!G}!EcpoEUzLt)w6dfNBb2`Wkg zUcnpd`abUcAe;>VK@0!+qwV&iss)(6|A_BD8hcMX`cS3v(EFcG9(&@)yf(pTf!`)a zC?@rbP$V-qeso`&?!%7y!`M+rAOFzX=O-UKbTgU2%ZDCG{MC;mo;X>nMgJ!8S00`? zWvgDhJN9d*cPniM*+o1c*-SQ&yky2>9m%>P4c{#FQWpvBm(NJ3;mXBD!ls%YRNO_LC(q7@+Y2ofd zx9})sKf>s?)&(K=y{XEs{Z`MrI|$y~3&Y9Ee78GasgT`IaC)hp`xxkt>ZKuljjIl3 z7!g-8y^-YNF?6*Viiw+H#$UKo%xD}h?Y%qB)Z;JQA&Y}VET^lApVy%a#TSTQ$RVKN zvL|4U9*XsQRG2^2{YQ^$?MX`|Cl)*L!p0xzNyF#<;wY~b^Ya-2f^Zh?aPud5)5ROC zIAj!Ky@Xe5$%>uz95c?2i1#H!37YLxa_0z8`3H>$Q$pRi(=U>kmioLT!4+6D%yuW^ zFE8mD_mv|juBcn~Lc7>Y@S$igkxqP`%5MJvop^xi&`xjx#mQmCFv3?I>`tZ$yFJqC zd>HRhe_mSyeoJF2Ej9c?!7s+*bSQBuM<>0wSxKjwgtg)nzmeK2eF>6AD)V6MjI2~pzjOlx_5{+oH0ukNVJs;r$qen7WO3ig5bZPa;7MPth5hFAX3nBLWrCMXH z?Ns^d0*kGkM_m)YK;vCW3nXC9Fqiu<*GI9&iqYB3B>=VAwHLZs*;KMb6eS{urJ=(01?2DdP54x|UI2$u!7^T>X^ z0&!5A4ch>=T=*@+7R3*4hUs0k+FePs`CuGr6oD%Z-@zV1Y0=>AQQ;MTrAZS3Z&^n? zZLSdWLVo76d|s`+17y;Dn6JdIGT$q>S4t1`3VtY?vvW&`tRzYed5$-~iUl zPNmJO=S?Ac@NYj6nAQ0ty{$N#^fx0v+<(lkA3XrB=DCA`zn|bWIZHV8KD@JOkoGt; zET3!m#c==8x_@kcFzcPGdch7pzhRqF+SFy{uy^li0F~wBSJfVCf$0n!(*GaqdG!9U z=r``JgvEgIr8wSXtrOCn1R55zaLz+05PI3 zAnx^QabtEZIHJ!-g0>JsYobym$i;B5`5rG`sg5jEn#%D&aix8n=K;n+D#2qf?ZUtW=vzJ!=%vET}O3 zIoUD(wZh<^my(7D^(aBtNqFX-!R(-t%r<&UF+ar@cQ79BY~yvEfQtEJH7Dy>qK;rA zx&uA=y!jq-h01BUz#?6%CSUsz*UXGL*i9RyXT*;c3YD~)0=rWYK3-O{cvl&v5NPxD zGx1ISDmO&(`8cD#uG^1m?#=4^427-5OL%!HJH&A;w%Kv+J(6!~(8KZ`uIlU$ZV<^@ z%gA7`X#{0;F2CAA-Rxeyn#Ea7W#upV%~XsQaIT&DWt&2KsS_^=vxKgY%%pjlwbTZi zKosdw_9i2T9t&M=JPBQ`EfI5yIz*a!xEcqQ6#`f}+Qa&Qi!BZo7Wnk-F!;x$a0kIL zmPx$$VdW}(`ON`9chO^kb<^!3Gpxf+r28MhRyMJ9$^%}g*Jaa?Z9=i49Rs7`n@qL- zK#V|n16qfQZNy800mFb&*)F#eh(2N zsy##YLISdgAJqQFey$%Y<4L1|%tCzR)$T<3Pp$xrl8c%1(Y~$y=(MnB#Z_!q;)BIY z9%bZB(XfD00MKAC;3erKgpF%lEMs#1F19Ohr{d-$f)Ozrutk0FLxdk@eX@B&f%~FE zwYogn1mLYe4^1n~KDS6g6Hu)sL z<77#JJ{45o4u|jwqT8C*pn;6E6fQlX41s#HS(l%>${#|B2-gAzol-C|*wv#yYSzge zK=_>JR~>2IBVDZ%=^7u%{onP-6Cg*x`vfKiFIrqAV#rUzPYCgs=X`+pJtCAE2iMmc zx?^SE{(V(EqhAnJ)z?%LGn_oRZ}MP+#hnE62ip58x^rU<>WqW-$w{oLVH3_hW+$1+ zJT~_*zR=lWK{X+Gn?KLQDawdpUFZ=KE_)iOY6dhUa&jUm-UpkH?w(3hujLhcWntr% zX|R@zM*A zB4OPQV%NLKh|_vJjicYKD8h!^0H8&=A?dIJuQ_!6k>R)vu9a^j804t6> z_0*nkZTIZ~IS-!E%jZC=<~qG(@&{Q`-$c?A&ORJ{$Q?HtWsJw4lXv9*6XM5 z(oDW9Ounu6b2n4ZVy-`^UDR^ESYKaioZ>QeTxT0se#atu=r(lsPVoCLP5ki07bbp+ z7MS*KY>MZb9n0myNu<=yAj5y|-NXAg`fLW=V+vd!`jv9Wg^W+*pU3Yp{+WOmgrqUY z2X|`LOUDTQO#OX9u#a@bpe@j~H2N*fzh(m-d%5sr!a98N;fKkNdFSx=XNI3-G9EkK zzCK<`xXNCdPd@oa`%3kWpaJ(`1l%W9+Kz}5;i?&9l+ii&cA}U*9KHLK%~JBowD_<) zmc8wB-?FzSKdGB@QZfBx?lZ?mcSLiI@T%$$8XcwkNt)IIWnuPniZg;h_Jq#22_@|f zD#E3-Dx_&#J2Yh)=gmhK$O(n}PaimXXiBKTZPhkbB!>Au=bCK`I-Q?63=A;9V8DoB zg2-$E6IW@E#mx?#>1+XC`F0cK}j^t6d7h zdyES9DO>4RY8^O!@++F!bIpI&T|KngwU@VgJ~&X&s8Q?;@^k(n`{6Wr+tiru)IO>E zoC>@XMj0a8=1e!cOLuiYdBHP`q~B?4c);%K8&%Gz5}P-pQ5wzPD_$Mj^AZ#_TCdpx z9-4L?FB$wy5bS6Q?!bJV`tP$>Ov`rcV}!WvXrk`CLsJ*q>rQ?!r(F>A%A#FqJ4oqT ztw8Eu)kIwlBWbrVf3?jTX!%q#M3&xedZRXfjDir7Q>M*x2;`@HWX3-9gRF)M86UZ) zU4owY&of3QNWVPJNLwEvoX6MkXO+_Rb;Y0khTgh$JA@?XkQf>D7a_oYtCUc;9vDyehCQDfI(45Iz3xzR%FP%yL-3UAoD#sc_MU2ey53F7CtKBG%7`L{7c88j z(QY@2D234yX`jtv@$R@mesy%Yls?ZWCs)$aPgmL!eUd`6-EJlrvA7bVVJ6adfG=N7 z_>5pw@3!YkMA9Wm_5FlC5RokEAe^4Xqd(n{+}fNO$i%8_ae7T6+rx0twJDY5KspT_yyAUp>r;rPI{>P zkbGf!-xMLNipzK}rn#xu()O@A$aYso_8l;VZ1{@7?r>V`NDA|<+W$Jx|}$B zqJ2L`0g#8t9-zJKO5-^Me~0>Ul#~N4b>ghXBCniJ={pwNw2k!gKD_$MV6Z?sW&b(O zzu}~4X|^bAmc*2A3~{oe{cU4Y8=75cQ>YuT>~3*kre_3^(e0QYn_Jq#1)bAYH%^M@ zN~uKvxwr~2g9ETLOPZeZu}>|EUBX1rcQd0a{S#!EVY_fe6x{}}8SdsdJ|9wFfdXlW z7))y#6_rCR7|yt8$!%#7_~zZV=RL@Yx{U^e61v1q-~))mBLt^KkLs6k`Ya<&-a<82 z@^_J!bIAft)x452r87>V)0{CNh8a5-4HJ`PJLwtvk9NT(fx zy26gOtu1Lkjo7dKYTG}US2U)iVPk7)d*pFUMj)2wS&G8)Mipo7Z@ByS2f?Q6BRiw(^``ZmzHs~lZ=~N}!XMielp&6qla;B4kXBMZA;UWTte>2E zofX{F0{#`kFVY1p5PqQ=H>N6+O(gbq8q~rnK4kiA@{;W>J>(@KIJaaEk=#amO&ra3 z`d1}Y3)3I1)kkb4qQ*EXg+8}$NSt@F5J$`M_wjRT&1oS*mY>q<`qV>vsBw9?_Ot|P z`VHDHp@(*lR-9w3|8d*?KZ;!pSCnh|AHG)8jm~V$*OB#dPMK>9xmy-XJZ^5M=?=v= zZ4>a$EPf;p_t*juBFj83Mdh+=dTxKPts*Tgz%;r_WrKAjLfXUa{Ywf8CC0qSuD~Tg zaVSFBZ3vX;VTbHkq%s}D_M6N7-~CS3ZlUow4*y2mjmujmCRCxPSbh(IV3 z&-F6ZI*@JakWsNbQTYx;X=e@Nay&2@T5DQ(EZK%je)ryvpbKn0i`d4WtkT3o2BY@y z$+%Wjs>1&!ZfR&S>u3H~k5P&!{2Wql!t8NBV#zVbkdo4U_VIbc3$gTsEll%yeA{>6 zqpgVntyPWZ#~4qiiwvVqwSAI5%La(xX8s-%F*@|Zw$`yY4OvOLnRXCS#U z{BRZAIO>7UJUr7%!#bw%dgq=_9mEwuoLn}S9KPJBPakv93>h^uqHQ~S8CaQxq)-z)A1vznD~vu?kB#+zQr;f+9XE9y`F}F~FIn(@gTv!33Cd zaOMCM;NMo_n42>$j1<@tRB<(~XKK@z3scSJRC5p(V>~i<0FO3#6s+=@V$HzNW7wz{ z4uqORns8EQe^rb)RfbjzV3}1nIj|W7$7=)6BLetcg>pC9ANA6@7{-)zUgZCx^pB#S zuIZqp=HO4sg66S=(@}4O9!QxXo2T`$OLcp8SER{ z10^~uBw8^eSs1Rkt7O#PN}_n&ynaB8#-U9PN1}8@P1!~UHSa7Rdr~C+KA3KtnM=#< z_DouAl!?q;^ux0VY9C9cI**iUVKh&L8(3MpKAp^`VduBAps@3!%#zl~g#Oif7hpVZ zwsky-_LmyLVo*#G^(yVc@dBWAwaP|yq5DNok-CG~u}mBg<8rHc-hanOR0r^0`oG5r zJ2d-RG=^!|RFN|wVbd0+aD|f0am)`sT1Z-?$C6X#)Hl=dhVPHYTKP@1Cc3Q z)dyPh!z3H8In1&d3l7^Ib^JCeiqolkE+XDEN-W`~KRp#RO4J!A=y`62l)JGQJ^AVP zgQT`Y&%}r%BF)`gu$h4M!dj_$4o3JJ01xFMv@^XIJO#6jKY1ecW3X%UdvJY2QxsXk1#vB@4 z#|0>DT%G&VX5jg%Qq=>)L-~ZOviGp)Gx-G*8_^eA0;}i^Hu#WiQQ{(5+1fZOoj-hr zg+QGO(m0>*%?_$Zj?5SDSUz#&{s%X!gF|;!53)_{L=m;(!2aHey?eH|TaP{V!4E$6 zk?n2pBeIyLn}{EpRQ$}U$@osy4$|& z1^TZ#UJ0JD1~!9R*kwTUP*b*gM~lp{S7b3$yWCaI%yB?^3=- zE51-EH^WL2y*UZbQ+TG5P@w?r%~KhI$Xh6sR>DdxeqgkE%Bb&@<)BWUFw@PoY66P& zS9wolly4C-FShS6>uu0YaB>}#9~3h0Y4JiYSW)B%lzzz(B-*VvL4oluHYV4tF8)#L z)vg~!{->}@yt~#&3ym^>n}u>`s&qIFE(Dc&B|IM_mGt@YSA(qi=Vd#6KK!K$^Awx_ zVU$gz@_lJ7xLoN}V$(Uki%p?GUIwiuE>3EL;!WgY!dE|1nbDj8G#r>o;f4goZTwX; z)%MAVBq|OV4wg>`2sON{JD*e4#c|5|)H?RwRRSyARVc@PPGuZq3g2-bIBYkfvb)FZ zth0EtK}WKdt2(bsYRBOxTH7#^>bwpi5uBCW;`v*wHJ@TEq-xmMKlQ=6Ibzs_<9bVb0eOEb~LmE_e^SJC*RU`E|GFT zY31CGl?jn@Z)jN{6t`oucIi8Ebmt=qmA{6fYQcYN@t0sN_qDiQ(0O_Dc@Kxw@7s=5e*KwX&I|Ib%-T^Q~x3kuxAl|!Ioh1CP5rx zdye-hHh#+RB{pP_BIBv*ulX6mtFk4eUlCz7?4aZt3C|Qk0%HQLJLl9lf(F1?$uGQm52?s^33Jr~{ER5eu?z5p{h7 z%Az|vN$K|=sm*puw&XAghu9}Rk(7R#;I&$p%ehJS#n#h11R$rMCL$@eu$)#|pkg=` zTD&_C+kW1i)1Z&qC&CSzr1V7e1B7^NI&A&6nz5))3qqt+nv@V{d;kj2CxjV`lbzDS0s|DV3-+$1T#EJnyDDcQGxsb=3i%{6t&|A1F~~jnX{5 zYViSVnZ>bKE>-zmm2|V}1Td*ZIc=MmrWq7p(#&Cn6p;^g>sJ||j#tgQg1StlD|$kG zI~1dnpoLh(;&uK1w^_5hwJ+C~UCYUYgF?9s26=e&UbvjWTp z8wGM1rd7S0SG3ZK{--c*a~cgN*dikJ(tWn`u?X95uwVW7Irm0hsqTwQW{K;wyI#|` z0sDod5!YM;m1SCF7@RXsBV`?9u&pzolgwEqF_YGtSWS?W<3y+!ZgyoS?z~hYkRQe{ zi+VDBt-u zQJzKpJG}umxJA&G~#YWG;6 z&bfP8wXZ66z91vdiMv(p9^`D*I~Cc{c>F#k7zgkVn2id|vPVa(Q-rdwmv%Nprb+pG3PaTU{?}{mOmS!H-hPVm8=NggIKZNWKXURoSA!Q>=6S4~bwSNkJlSHTgXrIVy>k!2C zsM;cxA*ME$9;5aWe}#An<;Y(t?`FcYB(NjgQ*(Avh zR;Zc?vwF0e6!E$sTZK79cYb7u+5Ovz{J%bF3rt*lnGjIKv2!wU1~x&=tT$*EE6^f$ zjzSSnkWte(e^KpM+3=mt(sv}wies2^(9t$<_U&Xat^p(t)S%PeLN!3VKBHLq z)W0Pt)_CUhs$VSF>^9E@!6PHt?eh+t;Bw_%mOQ&Z2ySULnyUP^0xCJVF(UN&9&HT{ zjfA%|0yb!NIt~pXqfdviyaMm2vY+Lo2xnJgHJir|`;_MLY1)gTy(2R-MH#Il!)uK9u%i~u;oS7xr4#vl23_=$tG@aBF1oR zDSK*TqcK}wnhXwJ@phV!6Yk7!l31k$TrbSwg%27zCwYqSM;ywuY$5Y_l|BJ(&)&4UnI6*qkWdxUj?0c~+b87eZoDK&|ILrMGpfE7~0nZx~OW#WHFmYwt#wX@~6q0DgE@74SmCRX#A1Ar)?91KNN zM9_Crs5`v#Z)M$={X&YiG{BXbul-@&msex+s8lP+PeRyf7^Pe^_?93|MRJ*B%Ms4G z)n~eoZSZAlgP~WMogR6!kO2R7xbQ1kgBij7)Hw*i zH%0LTMU)*FwNpk>4p7IT!kfzB27Xm+4~ACO8R(@|juDQ{?-gJF;FtJ!$4`SeDxkpv zwyA^y$`weg)^h+IKy83*`~uI>89^$rhBx~%gK`c(bBJ)|0ystd@u_i)GhAUEcDNYm z@Ja6MgV@HSVbM6~)Epi&I+kFZiNgP()yl9D{=U<3=_qFr*#Q~8Po$JaQ(VC&ygYRRD8mED7ak;`|6Pd%Hse*ddbn|e$~ z#6eVsJ>C$Uz5XkgigYplSZbB`(kNQ_g*6BOb(Bovp%4 zsYFA`Sm>yg`r-8WX<`mzrx8+>pSIkKqf(PqQK++ZqYOvAV%#i|0@{p=J^Uv8hN=yr zUh~_F4gmF}V?>oUg#<#PC1-%(D<#o_)iXzgiJ2S+1>E|%K@y}t{rvzs)?jZ_; zaFJGO^}=i^tk){;Faq7!;aa_t&tF2m*_0u%+$GsUZWN|X0R%1#h7i0BW}uhP?8*(! z(dI~4-td&C%bnl}Vtj({4?0sFfI<;2gN2||_8h}W@8tvq;_4tLJR!}Sb1T`;B;~QP zJrSvtA$Hjei9G+F|DGMsV=Zs8oR$rtjsYn&XS)f+g{%$f@E7h6DYA7PRjhFj0Tbr} z#7F*x{t^q4Yv}_(=@ zq9UfD%8%eA!WA*gaw3oge*&Gcl8(qTQM@YV*PcFL?0=?&?UShF9b92BFcPj$OfzJl zpER14dK!A`=FYH+zywX{PBdUfuR9IwMPEuZ1 zOlOfD-RUQ$?r>jAa zaqU2_usFNCJiGX7)UWA?i*$StpsLk(7Euhqk6gX21*BxJb=xYDi6{z0RtDd*<^}a4 ze7zocYm3_oxE%R0acIU%qk0yQiC(&?1|&&@r|j{46~cH%s&3^4O=B-GsOcM=owA9L8F}gSawC_YYZ4E zryjGf;1WxQ`UpGP)*hGgjgz&Ro{JhEUQiWBc^YH++P}e!KPnafqK`m7^68|OMRv?0 z9i)q><9NvdoSVmzyM+%{=>7(S;P!+b4IDOhk5~4i&KYlUv_WBdcDkU**&u1Qn>)_q ze|7};@r?|P8f58TbU#|MLa|&nA2P8=38pESt`dnh|h#zE% z1CU#oW1ZR*o54q>X*4KUgz!LR?9pyNZq9NBAd@bgk!xrNGc_cq;1x^nl9&NTKa09G zn|3BesX%d1$fI1HZPvRA2()&y*J-6_dOa(tJS%Zd}((jtya7Cde>gt#P-IH9XpPl z#A`;BrKQ9`TS#wkISM8H z{onh(nbFz~PTAv|_r33W*Z=?i_n(y}bKG-{=o@EQn-Rje4tT#Hx-QMayBm$Pn2-d_ zh=gkss0BqqGKezty^Y%;9fiE%KOTNUj&S2SH-RZeB;gmqtX|P4 zqY+l%aph}Mr92k{8zI~ErdSNX9Jpz8j^Y#Pk~Lk(K_@(`SD&A#J5*;UjdnoX*B#x|4oM24&G0zeA4Wzsz<+ETR%V8jsCDit+fqDWIOu!HdE%g98 zKHu}klNkiE@l<|nB$rH4NGF8t#?k;8L2P(D`wein(BL@$ZNVo(5;6HOzXM%Q41

    S+UXQT=35Vvv&?;=R2yqr8 z{{q?4bnY3;x1UzoL<9$u1dh+C1Q7&%0vn^3f{#x`@dL^3FI$CPp45o3NIZ+u63(93 zjk7TcpU5U_coPzysbn&m^woGN9@8Ui_6Zp2NRD25BxS?QBbM>waTtK(_#I{kSd?tVmA|^4=!WM3UBhk?o))v0xI=A2MCF44|%3$0x z9Z97k)AuC&=xS0Y9-4jVMEah4(kC7&=$V;_PDbxO5-q93X%D%;>4YjpkK7$iJ$EK~ z{FMvy58ezK4}7$28;0hPA|X?Mp=PKt`2hY4FZlHj$$QNw6R~SP$v3P#Q@$|)b{v{R zCWfK14HzVD^FbgZuo&zr!T>l{!WfYmU?Or&593Mi_S>29gmmAzHly9d|M5iF z$+(tI#t^N{%;;q7o|S0)M8tjh0rm5Du^jf|gmGyN+iA$d7&70-#}a6;vh%$rWEX^P zK;?^5Q=j6)GdGOjGl>=pw=i?hvA%cjd-^n(>dC@IHZ75f#mqva&=@@;G871ekXj)H ztEJI_WPoT^Y$u7Q!+j725L`erP``3^YAio4Y7RX4=OI-RsmxR=W8%f!luaduC(8#A zFF_g*`*(CYmwkim`@fMLNh1iu`96bpNpv_>$hyUwfQ(ErRf^_R4pT)SG?5z3Bnl$g z3w84NpW8TbhfNg2Wua7|_j&?TOmQtW>(jb`#y8vuh=Si0(`M^z8HyLth(co+pQMK@ zQy;{-{4Qvc@2POO357bMD4Jqj%OP2`gsPi(;DL$NXN0njre|_>nBCKx;9K3!em$(qpJA{mc&OM1GyvRa?IVQh{SoZe2K~-Q^gtUq-$rYHyKxjenQ^o3i07rH;*pH&j&gp|r7Gi%-{?BC{aZdWdUE9I zNMAA?`oe3%bdDAvgOZMyjiXB&FXm&h*%Jqd=uLVdOqwxSNu>9$ zoI=jW_p-y|76M3!AOI0S#~GqpavE28TdhW?jvvU6A&(~~cRDtLA#1TPxqphU{l&h* zNPYxrHi8}W#L_;KGH_%(Ta+kLl9b`Fg|y%Y9zb3humx-+R<8QbxQmUid!4)0+dqt`P{B!&X>;HaB6- zgZst3ND>GbNrn+5xi^9X1n!ty%Y%!oWIr}!N1)RmU^fE8iXlngGGB0kwf!}|Y*zWf z%o~}sk@p=1!vzR|c;=|CqHhIL+;B^oCceit5_B1a^fRLC$N5C|GhOh;Wp?)dOEOX`~3bXy=jzwqZ_)ide*}m~*_3H!@cyB}2Yh8#sXANEZo~RSbO^_Q)6ySToloIf0HWWLO zMP95$S5U@5cm!6h!a~a)3U(KE*cVQDURY!?U;~Q^2feWRC9xH~pWa{3FVb&E-}s<} zD?1*KUX8~emOugaH_yd~BhD3La1a!JUhbSAP_gSwW#nPHlbhs?kvp-XIOI6f;D~`D z8mcJ`<>p5294Ior0sk}fMI>u8CKelz56xnL1c+W+5lk5f+Cnvlm2DNhFOJSdZZRp` zhB5i4I5%qS>wl8QgJIsszD3~JFHVo7vPl0ksS)flFpCK?(~jd_$iEP_eWJb;8Rc7v z+b#B#Ga|9JYZR&17lwgSk!hm(@ z8S3w&3kKRmScihlK%5{r;B5t>#tVURt$Y#~TsvxX=(2j)`XS$m7B~khtBoD^phb4X zy=0k^v#^%R6mbG$Hi_Z*xk*zK@e`vO;-)XFkVq(G z6Ih#vu{Vhr#Yhk0M&t%-0je>Ui`G zbk(;VW;_1PYnlUZKK8^5g&U6)dc6t@%%$^{udt5Au1Dx)iP|aLn-5e2rot$dtl`@r z{~_f2fSSq>BB&hb0@7(T)1(Pnd3NkN1g-n?<>^v(WU4rO*m%>);Yk@dvs7Cc)Z9)i ziGyl#Y2Wa3QzO~ZbUDA@D|*+D5fTV?dw8R70V9yk~jZqfZ4;Fj?HOR6I8np6#Ja&W$ z>^YnCjP1d^gnkVeM9Dy985(-hlW`-Pw}zec#TMLk>7Uuh-#;lTC^4Rt(42_7BNLON zfO)lz3KBK8>E_Nr#fc~-48Gk9&L+WbdHFldlaswSx|%mK9+6vYa13y{+;+(BKs}g& zPn&~xyqi_m=U)Z%;nD^%B*BjbB_P58QueTEp|Y!|<-$?+O>{Bp9WpeZ=|ubx--e^V z{(9;0Aq`s={T1QndNugqn)ENIPeVr6gm^#$7r9O%4ag&rgOR0!!t3>F2G-vsv@g97 zz(J;9?SPEb5L~zb`yw=vq`HtiDj`L5)R+sHe4m!>oPCOgpH89JKQM9te?+%9Q;NsW z#`llt#1oo;u9%#xV+WIV*AW25N2ZuOT%;nC-ZQ0{B9@WnIdu4G-V=Eut_#!2_1Nvx zBhi@aoP+OC?gnw9r^_z3u4p+T6Cn%@ea`S1!pC1jg!Z;1nU@f{uKi_8d&UMT5Eoao z)QAjZO}%Z<6I=G2FWd0EsC+&a*o;U-K5>2{!6=K=vwV+{D~Ml;#DE1S8BQ=Dj?Ly^ zjpzgyvDy~`$ie+EU?arm67fin0s69ouHn2BO&I3Tl#RVKWQo{o8LPK|6AJZI!mAaqWLRKT;{`OZsx5yeim5(vMBvvkVgwQaULlw#8gNc1TPR zyTbC(-#O@cr$y;>5VPFV;DW^IgZv#eyPbqpBDN)=Xt(n{K(r-R%liVz3@TvKDE%U8 z{ZW{SX^eog64oo`P5bfXec9>J^mH+9cEy+{lZR}X&`9bHGF_ph$XGQ=wvnI$LA8k) zZP?jxKc9uOIBmRsjhI3bDvMVfJ6zcdak3S^h;#{>Jg^BjawctLib4p04T=ls5qcO3 zP-k62``ngF4deQUjZL;tdeg{cQdEwFBN!L5BUzZu+#rbOIXQeGoh^sAepfnQ+I#E% zKg`S*#|{$Dg%_meho{HhRM5t=kl?k%E0EfB@9NWF?TeSwaSROkO8;&Z z;st2jStx^h*ssK>sjtUR6BSMRmKHKitfW~@MO51#(}Qc2ct!bMIRai}gB5 z;@$$*7qp4wl1mfG$bBGO?B1m~I2gfwiagtK)ue zSc!126#5~Cq;(Ov_24aJdz|%UR{`3@npkK^q?e&U5SxDkkNz`(G&uUbq&#~xk-arj zR*6RwlZnGte)lMeUZS@Wn9WMI68CZG(S#~zPG#edCKBh6^xf)tuXdxSq6vfMLYa@) z`ARI%8$~kJlfmtY65ERhdQG&y0qcvWtsL!GKSpN|DfCQVAuy0*B?v4UWq%8v2;zs9 z``Q6A0EE^SGJbvBoCEhA0x#b;^cd^eu4UPHWo08NKwxH(8$)X{<63F(3tV0Js?P@b zXY)cTBoX!gEa4LUFpm!M9@4QSlY zu`kfax&N8?LSk(H&HGF93kx4V%X8yoPEs>4Zix{N^JpK@?wy1qSIz_K2^q!8L%h{@ zUX5`A;-YBec&S)Q+_L{>bzk8==Gw|k^Wdy9xceT-lQm~}6KnVi0_$ya{(ide-KroS z5TAqGkI3wkVRsoHK*pnF;(rbcoUI)$k>Kx?XmZ)lSSBIYDvAQ(eaqN8siDV66Yy9x z7UN(G_ldQpG2#n-l z*psm=zhUu%7-!=cgIzLOT=DWuC6IDRh(sYFzz{q*aP5Tknw-RY{6_MgNj zp2!=k5e#m$+1~mxdC{*QV64sr*&3jk!aZ9^5mX~0cY^XWsc%HOj7=jPieV24tZmpU zSth+Ih#ncVnfX#!SQAYfV=p#X3w?Dw{^DqG{s=}7ZT%;SUd1A@M3v~sIETsVizD`n z>9-o!_)Eg_labCKP7b7^Q;2)tQIObf?BlVkAvmR?IKVqmaSr;iMjBnS(FZmRHf!&>R55-aY#MBA@o@{t)btT7x%7M5lVDa2!JUMPDOGMWyMtR4Xo>MHDD7Y>(}4zDaNv!SgX^$E@Z z#r0;f*}NMg1hf*_)GTo>C4&i`L%7b${0dNHQg}zOHZW3v1fUuh7HY&lAd#7_#Fgv~*r_vp zyq}TrO4!)5X@oR_FwL?EK z^o%Mg;Zjk5IL1ChfL@G9AcRC*OQ!`7XgN^_BlsTEpQEQDSj=j~nw*M8mY7FGOaUdZ z6GAZ{FF^Lm*2+I*9kM;b0G^5*5fhb#nOo7!7~&P140tB69XpO+hJ(k#NzcG)`LatN zU1gU=lrv^N&ppRLrY!)woq1ilBa=wepByanLoMX~TabmWeD9RvJL(k#AOX1K8TLeD`}k zwpQpD$SoU-iQgu0g=Z3K2=ECuHBme@$Yn>C1M1jiLdXOv@a(t91sD?O#brT&PN(7mpLl5jzkDGZjktFZj}s9#R2EeR z>@eB_LDB-Z=#qK`Y-lpa&=Hg%0>$!iO$dqGBE%et;a7kv3N!<9!*mna;x+On%*tM? zeI9f10>euHj7mlpMCtHo(kiGtdM7ZKnPL1!37D)6zDP|0=mfiZiEaTt~}(Ym{~gOM+>pEr1JqK zL8H+iN0-2d;v&Z%`b7u9V0?uxySb=ns4#&F=*}D9C$m_dEkREWv6n#}0r*grvg$mm zkGGcSjeypjl6{Y@r^e@#VeF|GRjC(&)hDu5ji|EO}MZhju+Cd z?w3YlsUJ>cG`_RJ@0;i3K@kzkTdtw;*AO{Xg;(PhGh1RN~mPMog9PFFe&GRI%_}Mz1i=c!+(|1oE&W z5@DvtCH5rLkQ58v0z}L33g!!fOoeDfTtd<&m@vR`c;WEU>`9VO3Ucy6MYDfdo-Xt6 zheqUQWO;Zdj*rUHR63oga87NufX7qD%jO8|mj1lT-#O1NG;)19N(8yT$PJU>bhv7N zI?foe|0b^Ubvm!`&EtwL?;l+r&c!BYvgyR@r)DEK{lV3ybamqi8wW7Y8-?BmVh8p7Ayol9<- z=%UNLn3e&h8_EtOF4!D;`WtDjSeO}I0_`$t`4vlfiuV+J5GTUvm1h^qv(JEmTy@7> zBpEqm64|DfQ>=aP5ui2t%2AUjI&t^w;VGLW>^e9ewqgjnn ziC;+S>?mGyqv=#EHdfH1*bd?R8NV~0AtGTin<2t3Gn2>^3n_Gk5$pgHxr|)SB{hK& zF@jAMOPPe+6i;Td;&@|cs|Jmc#9MJF@HhZC6WWJ@t( zf)N=WVhS}h0E|b5lPca*Gh+aHgqP z?m^ef4o^c1?sMJy$qj!tGyLKEvq{HU#7qG$>2ahu2M|ErDGJ6~+D_KejOx@y75m=c1}?Mw(b1;AoL8_5OX_08DK z+dYf1Ve*77mZ@V%hfBl$bJq+}rZ;w5>G|_!Ex*9G4>gYl*fl^Ll{mPKTFv<1dJi{U_%*0fplY>VuUuqRrqzmBf(`6 zRkJM<$4T&v^qxLJyfPXx4DtrHrxnCu#(WL5Xuq=ZB=i}MdronrXo7DSN5;hM9l|1= z!_dB*BZ%kQW6(w@+}L_awV-tjeI#}_%3U47Ore1N5ukcZvAer7Vp}x>x#!O;Oh+$> z9omKH^uo*rbk=3T9G4-=TrnO7EntZ!Kbg^qdvcPRoIm4EBzF&>D3WAM;+lC_wKHc3 zg!(ag75cMa+_KR9`;qoYUh$Wq_eX$%LJ}>FtT-^g0Ejp~gBAT1==jnsS~fw%Vk)%~ z8dnMV&H&pH6*-XdN=$*79s8MQC}AgGJbuQXg?cQT*2PvsI1ByuYAku4GNz^_}Y z6HE<(r>w|)KAs;P&3|03N=UQB?r|eGYyN?Vt!S&1QxH z_3Y!gHMvV}KFi=#1rqFNuU4S zkT#WA1EP~WWvrr!`)N}hg&@DOB!a7Or<8RM>f!bMy0ukgT^LCat%P`Rt1HiySH+du zrd2&s7J3lFRy33GBeB)EJp~=cKY-@r*s-UM9lL<-Y@oJ`Chp}%NysYCoH;Xif_~&9 z;)dI^e;q@=a02bR*rs4mD0G6XNvmmGSz16P3E+dI#Gpd1z@A@I$Dox~P~sT+)iyl% zWb{Q^E**Jq*z!;9Y2aWl2D%hiFQ?&8A0KG<(ZJqW>~=vp#>GdPhz!p992necn{80i z0#q+ZmmNsVZsz?^fZ8h{kPyH-sqpG9<*rL)Yz_d3g2;LV3P2DHn(9pAI?@Cjl7s*w z+0!<@KX&I7R8}ZRvI7({iOGI8fJq_W2G0|CmyczO`wk&W#Xs|V<>74hI-4UP+;e43 z-2kuiT6THS1j^32VABX4H1Sam8t#Vm!i=zS7=1D>Hv#(X=}W=7U|Zu0FPIl;OHYf1 z<%QqRLe`mT8!l9=TTU=dTIGvN)pt@AwVUn8}uk}P415l+jJ1aqH_%D3|LwlK;Z?- z0bFgNRc{QvO?D)aC(x%;V&E?Oi0SKs#P0#dATeb1icyPDqW#sovO0g%7n48!v)f;D zZ@A{|N*}z}M?lNU;G4#OL6j0KEl@N0EUf+)iG*u(ysx*0130Z>b%A%X9OhNxRr&nm z=p~I&!3$q|?_L$Lyinn@z2B&%jtH_pVsy4BAPit*bQvSb=(q&MBz|w=cwz1so~|Yf zvpB&7pLdWB94pKpyVXRn9Y+UbbXR!kOY}-h+buH2Q8b_8-D3fOJ=~6t-SlPEFkF5R zQb`=}7(%2+Aw3h=%Lm%SbLDB)1>QXcYuG_-4kWVK3sc`A2u*In83q^KOya%MWn%{v zlaw-ZhL9W1oaL$c@^sTU_7WxoYDMrBYBpmN8Us_$KwDLem6w@Af&_)rympjX3b8IT ziL_AcDv+EbA19^=fU|ZyB0dnv-iZ={Tj9JhCk*ZY%*4IRUSIH+e$Y!gYg3}|m|AoE z8?=KVwZ}ok`2!Om205pey#d`)B z&(T~0Q=X&F^!3=pVn`af{w;`95E|tU=0x-ZV}LLz;-qKNoayKdgpG&-PO-6*`w&2j zRvvjuZ1Ud8SQMpoh|i0v2tL0sbam+cMmHx^xRKn+7VJ?H8ceuA#)OiU*O?wuA#8)u zKQd5q&#YLmNDLl%XCl4GJ>1US;q%D!s1RErD`9}nmlwz>>qPDc-wKwN3ZZb2 zk}D*R(fB?`CEY@7A68cJTm)yzNo=Y1T#N1lclNL46+utp3?r!__aW>~I0>{?DI~WH z*M2S`f*!y2l2Wg;5d;WhhI|VW$&+6Z0W*+9j=B8O8(QQ49aDhqTlaB||Y-OU(2Q_A;@+Lb;jz3X{eZ2EZO7Kp{ni^#HFfFlV^# z&%O>}KQeV>c2L`3cArFg@+&GKdu2)xRhcEr4>TS6jU;LPSfph_ z<>6~yeczqzoxT|TkjOCf-LU;_5546d)nfz1^q=6EA*9oH^tTL*85@R4Vm$LB7=j_B zuy_ckf1Bj0={lJ3aM!RCmd+0Y@f?Vc-f{E|p+@vR9QP2jRn^6WK6mZb($ zummv^ZgAFb-cYgO?kfzn0POt27yA({?-0;f7NSDTRU*gUmN+iPi=QIBdej6t9?r}g z3(c=1nAJRyD$5H8=gUuGu0Ig%{?55roXy(s9e29^1L7X?RCZXrm!f^Sy!7Rz)9^6kL4iM9 zfP_VJ7xf@Ho|5-G;JbI4PSVwQZ0=xx7*T@q0PnCd)W^xdVv;9NU|W{V;xeE8IhAn` zPD)bV8W|{3xB&_j{^K7Qg#p{Gm)O^V#3V1ZR}v02KS46^+~hTF$8zcazwN?V$u=MI zxi7H;hX{+nWEf-Nm)wKE^j>U>&G>)i?@T=M8=!v9yyQN3M2-;KISC0UdR7eTKv_T{ zJ%EW6y5+0&0SVjq;pGGI!i{6u$&u82M3W9fED2l+k$G{k>MgMceXqB~V)40yqc;}f z2bK@*PmN3>XF|{c8F>zJ%;3*#n|paq#@XU-Tb00R!xsL>uk_uBf*+#CUkxDGHNKZQ*Qd|1R6>j9Gu z)UsGsD6ke_A88S+C&afo2wfs!p)66+0|LX6n}aYIh6m$dZJWb&gKOc07W!lLDu61q z(0s((60a(A_A=b+_m?J8Wnxljznq#V?Ki#%RNh4FG{?QkRLm7pKak4jQxnllG)1nE zOmreu_#kg%r5Twzwi�gf}G|C&6n*j5(86nlR!0V-qFUOQZ^g)FY`v6pd>tT0n)@ zlRu2Yk>r>kB>x3$7*>yzj2VMa)=0dCFR@8akU06`uUc~YYlibcND^`4EzpFssq)WQ!tQT0uw@sha|$mp<( z6Woi1(L`kEVG&lANKFGCe<9?-g=~fVWpj)O9hSk34H2-c6G^>m z*Mj>AvEKuy2n+_-KH5JQuRgi?*7!sz@s`B?Qv3}~FOhbeDYW!y40cF}HSjX?in;J* z;lsTD>Hgcptfg;HlqTYDjhFT(Hkue9c=F10+%>XM3rhmmvU08)BL1D&i5kJUp}B=m z5}N)9%ofwf2rh&y6_P6kfMo^Uu7+z)GM#j4kxb(AiOksNBhHi99z3bsvzE;%i&0+G zefg(7d;&Pcvq+3FQ*`yG9p}>^scFl895^k*CI`E&O}@SB!8o@{9I&-nba_2e!*1P( zrUTwUn0|!W2LBk`BesjPf%cV4@PNLs;&f0%Fl%5Z@!ctXnItyGnMG181_d)!R|I;! zGiMAxdrD*4h?wm9pNi+)X_2{4ySX^79}-*fW74Pbd30Qu zBgFAFu?6-C!wU>Oi@tV3;@1?AcG_iVavLBpvcEGX*0=Ev70T)yoA|d2v^Eh10#mSn9>q!8J#O~Kb)Wf;fxIR3R(qGsuTmI1L6*> z716b*Srnbg=aOOy>N?M1;qsZhB<#VOi!i#S*?c^imz>x@KAQDRf=GL*eB=&zJ_2+~ z%B^e)z!6JW=Kzr&_({4EFJaY~3GXxzBGY35PcBn>qbla^<_(yGB(R$_W@{MViSb1A z7Hm_;5uafQVUv_6(>y@Hqs^!6j6pG6~i2kVp}VCw9& z5t(ogtG0xsN5&Xo#sXqLS-tQw?4yP(Tftw*aJYL&=OA;GrJVI#dD@4Kc(#;X!er-| z@UVt&9mtWk9EmJr>=NdP`tWr57(DOR{+c<$F>xrSa(g)xS z#j2>+mYLHRO|otD_^h`kOmcuA#o@<3FN-zzujNNo-mH7U~#|e9X;wenA;`~@n>IgtW+8+ z?%T3fB5bcPp?>5!FG@y-BKl0{&ZGC{^YhK99dPOd&*DOneP3}`* zueZjf%~9HXm%+tmA3(E(firW<3=5hl(FwCXf?o;rBD&@oPpB}z=i_byzObIe8FE+* zd@%gsL3+(*^C7!k9HNR6C>FCTLS})_A}%@p-o0jeh$Y>4so!rO9~|3R>G(PlXpG`x zcOmhQVR;7pf(;30DT@fJvS>72C>-o}zBeGru=^+MaL{kdM@hdApxcqGEoCFVH6EXG z5Rn2fBEkl!9INXqe+~Wprjq1V6SKSWu$aLCo#hf?%lFj0?Ira3=in?~?0H^o-+1Vy z^t#_?i9LIoJ`1*bG3rTBolI}wr7O0iX0sy3oy|l6tk06>$U0v#1IFcYKl@=XF~!Yc zu8MJt+gVRG_sg?ApW~hv^09$*6}JQ#Eb@p6B!z}#R2iJF1boVpX}fHw!uqbfq^6qC zUnb7X{6EyfPeHHIp~wHhR%M5NDbOY>6CKHH8|?i)e{DHJDIJs@%B7&}vZss(Wsmyn zf^wYocqk|*@MwF8m5PxyHR+*qL0MDo1my_jZw|^1<#z>T7Y^zJLD{4J<3TwNZSa|( zoEVx{$&JQlZKF|tWp%5&Q)vZf!OtVrR=d`yPc0o>S`Dfm-mXr`{Zr=}^$v&D)FZWa zx3V+!P^Y_DYfRnI*sN}MI?bC89g;h$J3Ebo8;xBwC=Fso)y!|52#r-ddb-2{tqirU zxwiMtN4T>!)aJ>?PZQVyxu;4s}v$@%so@+kCUaSEm@) z4rOUkgR?t0Zt{k0YCA;ly_q>U)O$yjCw92wp!w=H+njdZl^@kC<2C6Z2~IsCrDj2H%+1smIk>^@RF*RZ;6|Lv5<6 zI)}f^wyNPXb6)MJT~${N)l?T$OSSQ$>8gwBlDe#}sH^IqsMo7+z&H0B)f?3}sc%+K zsW+)NtGB4Ps<)|cQQxZGj(5X5)wii{SMO5aq28_jsrpX!9`#=JUFv-p^?#3gzxrqD zd({Wj2i5nf?^i#deo%c#eOUdF`eF4E^|bmC^`q*e>c`YSS3jeK39s(+>awfcUY)esehxssQ#_`ef96uzgK^t{)75M^(FPJ`Xlwn>QB^vRR2l+ zXZ5G*&(xRIe^LKc{WtaB)&EfcQ~fXX=jt!ibLxMqzf^yv{#yNw`akM#)!(WAtNvbn zMGt|k(GTINfr|p@nH2TpydWwgnLE-tLtf*Y&g+6MVvvlDsvg1pc?`ejaWt?KdQwke z`8%U$^#MJn=k=sWdY`s?(|$j@|-zE_{oFW2|!`}HgI1NuSzO8t<2Sied?qF=2a)sN}d z=-2Ak>Bse1{e=E{UD4}$LvQM;KBu?zwyxl@E#1}~-PITMC4E_6 z(O309(XZFvpx>asQNK}tlm2G?lzx+bvwn+ytA3mQ7X7XI?fM=1o%-AKx9fN5@6hko z|5Sgceh;Zfze~SQf4BY~{eJz=^!Mry=nv}e)8DUuK>wirkp8g#A^pSpBl>CmBl<`6 zNA-{Cf3AOA|AhWY{W1Mh`lt2J=#T49=%3X;r+;35Qh!SS3;hfF7xkz0ztsOq|7-mj z{aO7>`j_>u=wH>prhi@khW<_cjQ*VdE&bd2^ZIx67xeGy-_!p_e^LKi{rmdg>3^^P zK>r8*hx$wUS^Y=)kM*DE|ET|y{?GbP^`Gf4>;IzvtNw5Lzw7^@|EK<6`p@-W=;!qR z)_R~8~uOu-|D~9|5yLL{z_yBbXvS z&poZ$)^;ber>ffw-YCxpMR_n`?=nwhZMnT$+1WAQ*;65R2OqX~m}k<1&-6ahzEo*O z?UioRt8_Y*jqPORYPUuEs}~#1wrfrj>x@9Pwb<@7nw~93*V!ldcqeTN?VU<{TTbKs zQ%8#K`c9>O-dS(#Y;tIvkIG@U(mJ15Z&fzVS3B}hDlAtS%vNl@RjZ!csI;q;8kJ2- z9iP&rcC{5*?{2y4-P+D(bfdCUt#4LZDGED_wK`i?t-fW?8r{wo6SkF>w=A}+^>&TP ztmZeiE1ku5lg~3l=3~V@RhKHQI*%m>D`Okm)s6Fue8e>+d%ja^cet&3vDK)XIq03p z_@}}vX6)nPS-0u1Xqw#GYV1}QH+CBBY9=_@tz53{)~@!?Yjty;4z9PVjDD+{3YOQo z+RjdOvk;s?25eOqZC!G(E<7>w6W(o?#ooJ3oo634-{{sltm;Z@GsbGJw50#u#!ju- zyg~)-wgV!iH0Rw-GYC6OSJIw#n{wislPHu(b+OTICrqJLy;!SWa-{5SG|ru?Rv~G2 zb}CK#*0`KhfxbpvijCIdE_eFO?|Q9X9pQHu09@RxwKuwLA$ArobQ_)O*b7_;raJ%p zOQ~K}s{&YtXWcsE+}OET-IVXichdYeEA958!3R}(U{6`La*JHbY&4p+od)Bz(_l$& z@@{)>R#+iCtJN2qt;QA~X!q_g6ITlFsPhg8wK|=zZt`LKmUg|-kaZEBb~iS7MenuU zdgWrJwo_T(srFtJtm8%V`rea4EzLGBW&)a5n3{{#7AP&T(W-7T=NnA9x6y628!cxO zppMDGEQIK0rBhiKu-vQyhOz)MVF{?(<-B*LvtY0Eai?^Q_cL9UoyBgQkJirBs+;3q z?Y^n!U6dvaJY9Oh8xB0L_FT7a*3-bFqc3{XnceVlb_^)Bd2Mlv1VVrM67Pi4*9^^vy~J3z$Z`jtibP1vetrP~h6 zt!k@VFW7oPAeB~U@m#C2TMb$e)D4Gs@G)R8Y)RQx^Vr6D^Hcx>L1X&$!I#bZgTA&q z)#l%T1hurmBov-&1!@0 z4Ag~ZyN&hQPBp$+J9lo8jk~&;G{xFh9YngBGAE!Gvkrr^?oOxH+^O0dTh(2f6g<_c z*7@LO!aUVxlh~;`Qubv|1Wj7#X>3-Lrql*TS?s}y-Ethcl9B^RZKraD{zus(Yt448 zoviLQJ69Gj)#~j09zA2XOBe)V7ldode)aOkPIt2!uU>9e>YDh0cH)U=T>;WvFTD{V`5;JAN$#GMnueD0l6q}pp(x%Yvt}|ZU zo$9bXy|T-?I}avqfw3B`E4e+@a$?`wp(*xNS8Gj2>RmasQye?c75uQ7dG^dXw^P}2 zIqdQ@WP_P_-;~%tn$A&DmlfbGB*_Q(Nrb zkOiQ;4i)WAeoJ<{R;9kNy~y5Q->SBYgH?_Cxt-cZr#(7Q$!g!KZictV`&Ud+c8{8T zNH99PM5`K;^0{hfV>>D(h?lmhVij*y%Tm?sLddkL7rH>IB@Q-UpdM?_c zI{f@v+1)0dSH0C(>@>ork3a8ny?QCUn7#I5Mk?q#bJY= zW|G**!?T@^yg)A0WDk&iE;wgze3E74*;99Gr?E~qO+y7@fH-E%z*OAU$`VT2Vw;)W z*!H(tmGyOS2*1s3M)+JOEP@_WwiaORu;yHI#uHF9)mCn+)#!q+t}y)P7CTp()#Ns> zWWLPGbj^vs%}QaFJKGR%ne9fab`_M(Zq@=KT)NcgxV8FvgO6%1JfO!pC%nm)Y@&Z{ie)N+Ll|@VAYz_wpZirwGHn{!OB;hC)Y2|b!XAul-pCc3Gr0iQ}blE-Km|s zviCM=M0U?@kdXO36{bDO!K$#;ZFY;WCm@!M^ICk*S_9f z;Wc4@_B;}{9ysZA+cZapoV~ygP*`q9_`>z>4%6A~G|ts7XZkf}n;5twAaP^8J5mNG z3-WJ4YB_SoMKB5|wUacZMho;QGi1?VKy2H)I<0EeUg)w-n)~8A@J@^EZIGBRL_MGw zh0?7U3SCHEyF)or^mZ#-^=c=!3rPwvRW=`Q8?hp z?nX1VTipVl!Ee400T!!^bDZfzrYVT59ASGJfAk9oT_;VYB7Y?G{F z11yeg?b+R6zYn(Ew!7PH*EXEpZl{_yNU+C=MCDX4PTUmCuHsV^!Yf{HECxjf626*~ zgYdbF9cGJBuSUa~XoHRNTxFx05lE-;!V+wDH#$jk-n6VyveDYA)N5DG2z#uICX1uV zhRu!>ZC2>=Mx~xGT!}?cj+EmdGJz{@k|Nkbs2D+?n)-!7Y2yXrNs zbeOQH*~*wO*KlZ_IkpommXP4}OVw74C1NOZYO5Qpw?*(&I~kNMQ)*8f7HlI9dS>O; zVSs#!v~1gLRkx~_GeWB&tAQ4RVXU@1dv1O%R{0U)jZe@!NJpq99yetkXA|SSP4>eb z7K<&KeVUh2i@=;mn%(xcJa5k7@od?S8J(bBcJHv%-cFgic2!`jx=G`k4O$_Dn%ioy zQ+O?arP|528t{Ap1!IwaVxTJ0YPX$Mcl}BXI^N>;tSLb#gp8XXRG3>Vu9uqda$HUf z?buF9@e;f5;%2qkjo|Pv>}REndj(DDky^oU`dj8ljX|Qt5?Dk!(gU^ zD*-A>gr_1cvgINom`x!$f@xxj);o?==FQq_EmrFnYlu<=zdvO$hPDT&qUIO4aoXo=v_UYz6}MeSh?Rk_h0* z+MQO7IY;=@-P%sIyC9`5!y+@1Y+u<$Mz)A7u5u+EoPa_Qz0|{N8_3w&y%Q0PWP%%o zk?d6JoqTW(cHCXut?oh#B?hX(XR8+(0iph1@*w2=r#JKOBxEd4l3rwYGTX|;2Z(7Wqx*&>52kBebV z#ug!H?V{!da;e*NJFKX-+kv^p8Zqx6uTxnxoh~!0} z4xVdc`^qA$VexrYOksL&rPqZJ-q|d4>(8UOxnu~4Ze6zDcwa=64(D^xJd*(i4a*+( zEs in n?r(n,s,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[s]=i;var a=(n,s,i)=>e(n,typeof s!="symbol"?s+"":s,i);import{A as p,r as o}from"./index-DQXwuKC5.js";class c extends p{constructor(){super("admin/command-filters");a(this,"Bind",async(i,t)=>{await o.post(`/${this.group}/${i}/bind`,t)});a(this,"Unbind",async(i,t)=>{await o.post(`/${this.group}/${i}/unbind`,t)})}}const u=new c;export{u as c}; diff --git a/server/resource/build/assets/credential-api-DP_sN2cX.js b/server/resource/build/assets/credential-api-DP_sN2cX.js deleted file mode 100644 index 938f36721..000000000 --- a/server/resource/build/assets/credential-api-DP_sN2cX.js +++ /dev/null @@ -1 +0,0 @@ -var n=Object.defineProperty;var c=(r,e,t)=>e in r?n(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var a=(r,e,t)=>c(r,typeof e!="symbol"?e+"":e,t);import{A as p,r as i}from"./index-DQXwuKC5.js";class u extends p{constructor(){super("admin/credentials");a(this,"genPrivateKey",async()=>await i.post(`/${this.group}/gen-private-key`));a(this,"getPublicKey",async t=>await i.get(`/${this.group}/${t}/public-key`));a(this,"decrypt",async(t,s)=>await i.get(`/${this.group}/${t}/decrypted?securityToken=${s}`))}}let d=new u;export{d as c}; diff --git a/server/resource/build/assets/css.worker-CgwaIV8M.js b/server/resource/build/assets/css.worker-CgwaIV8M.js deleted file mode 100644 index ade213bdd..000000000 --- a/server/resource/build/assets/css.worker-CgwaIV8M.js +++ /dev/null @@ -1,93 +0,0 @@ -var If=Object.defineProperty;var Df=(xt,Xe,Ye)=>Xe in xt?If(xt,Xe,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):xt[Xe]=Ye;var yt=(xt,Xe,Ye)=>Df(xt,typeof Xe!="symbol"?Xe+"":Xe,Ye);(function(){"use strict";var ht,Ce,ne;class xt{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?Mt.isErrorNoTelemetry(e)?new Mt(e.message+` - -`+e.stack):new Error(e.message+` - -`+e.stack):e},0)}}emit(e){this.listeners.forEach(n=>{n(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}const Xe=new xt;function Ye(t){oh(t)||Xe.onUnexpectedError(t)}function Vr(t){if(t instanceof Error){const{name:e,message:n,cause:r}=t,i=t.stacktrace||t.stack;return{$isError:!0,name:e,message:n,stack:i,noTelemetry:Mt.isErrorNoTelemetry(t),cause:r?Vr(r):void 0,code:t.code}}return t}const $r="Canceled";function oh(t){return t instanceof Os?!0:t instanceof Error&&t.name===$r&&t.message===$r}class Os extends Error{constructor(){super($r),this.name=this.message}}class Mt extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof Mt)return e;const n=new Mt;return n.message=e.message,n.stack=e.stack,n}static isErrorNoTelemetry(e){return e.name==="CodeExpectedError"}}class be extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,be.prototype)}}function lh(t,e="Unreachable"){throw new Error(e)}function ch(t,e="unexpected state"){if(!t)throw typeof e=="string"?new be(`Assertion Failed: ${e}`):e}function jn(t){if(!t()){debugger;t(),Ye(new be("Assertion Failed"))}}function Ws(t,e){let n=0;for(;n=0;R--)yield I[R]}t.reverse=o;function l(I){return!I||I[Symbol.iterator]().next().done===!0}t.isEmpty=l;function c(I){return I[Symbol.iterator]().next().value}t.first=c;function d(I,R){let z=0;for(const $ of I)if(R($,z++))return!0;return!1}t.some=d;function u(I,R){let z=0;for(const $ of I)if(!R($,z++))return!1;return!0}t.every=u;function m(I,R){for(const z of I)if(R(z))return z}t.find=m;function*f(I,R){for(const z of I)R(z)&&(yield z)}t.filter=f;function*g(I,R){let z=0;for(const $ of I)yield R($,z++)}t.map=g;function*b(I,R){let z=0;for(const $ of I)yield*R($,z++)}t.flatMap=b;function*_(...I){for(const R of I)dh(R)?yield*R:yield R}t.concat=_;function F(I,R,z){let $=z;for(const L of I)$=R($,L);return $}t.reduce=F;function N(I){let R=0;for(const z of I)R++;return R}t.length=N;function*E(I,R,z=I.length){for(R<-I.length&&(R=0),R<0&&(R+=I.length),z<0?z+=I.length:z>I.length&&(z=I.length);R1)throw new AggregateError(e,"Encountered errors while disposing of store");return Array.isArray(t)?[]:t}else if(t)return t.dispose(),t}function uh(...t){return Gn(()=>Vs(t))}class ph{constructor(e){this._isDisposed=!1,this._fn=e}dispose(){if(!this._isDisposed){if(!this._fn)throw new Error("Unbound disposable context: Need to use an arrow function to preserve the value of this");this._isDisposed=!0,this._fn()}}}function Gn(t){return new ph(t)}const Mr=class Mr{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{Vs(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e||e===St.None)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?Mr.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}delete(e){if(e){if(e===this)throw new Error("Cannot dispose a disposable on itself!");this._toDispose.delete(e),e.dispose()}}};Mr.DISABLE_DISPOSED_WARNING=!1;let pn=Mr;const Ms=class Ms{constructor(){this._store=new pn,this._store}dispose(){this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}};Ms.None=Object.freeze({dispose(){}});let St=Ms,le=(ht=class{constructor(e){this.element=e,this.next=ht.Undefined,this.prev=ht.Undefined}},ht.Undefined=new ht(void 0),ht);class mh{constructor(){this._first=le.Undefined,this._last=le.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===le.Undefined}clear(){let e=this._first;for(;e!==le.Undefined;){const n=e.next;e.prev=le.Undefined,e.next=le.Undefined,e=n}this._first=le.Undefined,this._last=le.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,n){const r=new le(e);if(this._first===le.Undefined)this._first=r,this._last=r;else if(n){const s=this._last;this._last=r,r.prev=s,s.next=r}else{const s=this._first;this._first=r,r.next=s,s.prev=r}this._size+=1;let i=!1;return()=>{i||(i=!0,this._remove(r))}}shift(){if(this._first!==le.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==le.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==le.Undefined&&e.next!==le.Undefined){const n=e.prev;n.next=e.next,e.next.prev=n}else e.prev===le.Undefined&&e.next===le.Undefined?(this._first=le.Undefined,this._last=le.Undefined):e.next===le.Undefined?(this._last=this._last.prev,this._last.next=le.Undefined):e.prev===le.Undefined&&(this._first=this._first.next,this._first.prev=le.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==le.Undefined;)yield e.element,e=e.next}}const fh=globalThis.performance.now.bind(globalThis.performance);class Jn{static create(e){return new Jn(e)}constructor(e){this._now=e===!1?Date.now:fh,this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}}var Ur;(function(t){t.None=()=>St.None;function e(y,k){return m(y,()=>{},0,void 0,!0,void 0,k)}t.defer=e;function n(y){return(k,D=null,A)=>{let M=!1,P;return P=y(H=>{if(!M)return P?P.dispose():M=!0,k.call(D,H)},null,A),M&&P.dispose(),P}}t.once=n;function r(y,k){return t.once(t.filter(y,k))}t.onceIf=r;function i(y,k,D){return d((A,M=null,P)=>y(H=>A.call(M,k(H)),null,P),D)}t.map=i;function s(y,k,D){return d((A,M=null,P)=>y(H=>{k(H),A.call(M,H)},null,P),D)}t.forEach=s;function a(y,k,D){return d((A,M=null,P)=>y(H=>k(H)&&A.call(M,H),null,P),D)}t.filter=a;function o(y){return y}t.signal=o;function l(...y){return(k,D=null,A)=>{const M=uh(...y.map(P=>P(H=>k.call(D,H))));return u(M,A)}}t.any=l;function c(y,k,D,A){let M=D;return i(y,P=>(M=k(M,P),M),A)}t.reduce=c;function d(y,k){let D;const A={onWillAddFirstListener(){D=y(M.fire,M)},onDidRemoveLastListener(){D?.dispose()}},M=new Ue(A);return k?.add(M),M.event}function u(y,k){return k instanceof Array?k.push(y):k&&k.add(y),y}function m(y,k,D=100,A=!1,M=!1,P,H){let ee,G,xe,dn=0,vt;const Ps={leakWarningThreshold:P,onWillAddFirstListener(){ee=y(Rf=>{dn++,G=k(G,Rf),A&&!xe&&(un.fire(G),G=void 0),vt=()=>{const Nf=G;G=void 0,xe=void 0,(!A||dn>1)&&un.fire(Nf),dn=0},typeof D=="number"?(xe&&clearTimeout(xe),xe=setTimeout(vt,D)):xe===void 0&&(xe=null,queueMicrotask(vt))})},onWillRemoveListener(){M&&dn>0&&vt?.()},onDidRemoveLastListener(){vt=void 0,ee.dispose()}},un=new Ue(Ps);return H?.add(un),un.event}t.debounce=m;function f(y,k=0,D){return t.debounce(y,(A,M)=>A?(A.push(M),A):[M],k,void 0,!0,void 0,D)}t.accumulate=f;function g(y,k=(A,M)=>A===M,D){let A=!0,M;return a(y,P=>{const H=A||!k(P,M);return A=!1,M=P,H},D)}t.latch=g;function b(y,k,D){return[t.filter(y,k,D),t.filter(y,A=>!k(A),D)]}t.split=b;function _(y,k=!1,D=[],A){let M=D.slice(),P=y(G=>{M?M.push(G):ee.fire(G)});A&&A.add(P);const H=()=>{M?.forEach(G=>ee.fire(G)),M=null},ee=new Ue({onWillAddFirstListener(){P||(P=y(G=>ee.fire(G)),A&&A.add(P))},onDidAddFirstListener(){M&&(k?setTimeout(H):H())},onDidRemoveLastListener(){P&&P.dispose(),P=null}});return A&&A.add(ee),ee.event}t.buffer=_;function F(y,k){return(A,M,P)=>{const H=k(new E);return y(function(ee){const G=H.evaluate(ee);G!==N&&A.call(M,G)},void 0,P)}}t.chain=F;const N=Symbol("HaltChainable");class E{constructor(){this.steps=[]}map(k){return this.steps.push(k),this}forEach(k){return this.steps.push(D=>(k(D),D)),this}filter(k){return this.steps.push(D=>k(D)?D:N),this}reduce(k,D){let A=D;return this.steps.push(M=>(A=k(A,M),A)),this}latch(k=(D,A)=>D===A){let D=!0,A;return this.steps.push(M=>{const P=D||!k(M,A);return D=!1,A=M,P?M:N}),this}evaluate(k){for(const D of this.steps)if(k=D(k),k===N)break;return k}}function T(y,k,D=A=>A){const A=(...ee)=>H.fire(D(...ee)),M=()=>y.on(k,A),P=()=>y.removeListener(k,A),H=new Ue({onWillAddFirstListener:M,onDidRemoveLastListener:P});return H.event}t.fromNodeEventEmitter=T;function O(y,k,D=A=>A){const A=(...ee)=>H.fire(D(...ee)),M=()=>y.addEventListener(k,A),P=()=>y.removeEventListener(k,A),H=new Ue({onWillAddFirstListener:M,onDidRemoveLastListener:P});return H.event}t.fromDOMEventEmitter=O;function V(y,k){let D;const A=new Promise((M,P)=>{const H=n(y)(M,null,k);D=()=>H.dispose()});return A.cancel=D,A}t.toPromise=V;function I(y,k){return y(D=>k.fire(D))}t.forward=I;function R(y,k,D){return k(D),y(A=>k(A))}t.runAndSubscribe=R;class z{constructor(k,D){this._observable=k,this._counter=0,this._hasChanged=!1;const A={onWillAddFirstListener:()=>{k.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{k.removeObserver(this)}};this.emitter=new Ue(A),D&&D.add(this.emitter)}beginUpdate(k){this._counter++}handlePossibleChange(k){}handleChange(k,D){this._hasChanged=!0}endUpdate(k){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function $(y,k){return new z(y,k).emitter.event}t.fromObservable=$;function L(y){return(k,D,A)=>{let M=0,P=!1;const H={beginUpdate(){M++},endUpdate(){M--,M===0&&(y.reportChanges(),P&&(P=!1,k.call(D)))},handlePossibleChange(){},handleChange(){P=!0}};y.addObserver(H),y.reportChanges();const ee={dispose(){y.removeObserver(H)}};return A instanceof pn?A.add(ee):Array.isArray(A)&&A.push(ee),ee}}t.fromObservableLight=L})(Ur||(Ur={}));const on=class on{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${on._idPool++}`,on.all.add(this)}start(e){this._stopWatch=new Jn,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}};on.all=new Set,on._idPool=0;let Br=on,gh=-1;const zr=class zr{constructor(e,n,r=(zr._idPool++).toString(16).padStart(3,"0")){this._errorHandler=e,this.threshold=n,this.name=r,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(e,n){const r=this.threshold;if(r<=0||n{const s=this._stacks.get(e.value)||0;this._stacks.set(e.value,s-1)}}getMostFrequentStack(){if(!this._stacks)return;let e,n=0;for(const[r,i]of this._stacks)(!e||n{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const o=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(o);const l=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],c=new wh(`${o}. HINT: Stack shows most frequent listener (${l[1]}-times)`,l[0]);return(this._options?.onListenerError||Ye)(c),St.None}if(this._disposed)return St.None;n&&(e=e.bind(n));const i=new Hr(e);let s;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(i.stack=jr.create(),s=this._leakageMon.check(i.stack,this._size+1)),this._listeners?this._listeners instanceof Hr?(this._deliveryQueue??(this._deliveryQueue=new yh),this._listeners=[this._listeners,i]):this._listeners.push(i):(this._options?.onWillAddFirstListener?.(this),this._listeners=i,this._options?.onDidAddFirstListener?.(this)),this._options?.onDidAddListener?.(this),this._size++;const a=Gn(()=>{s?.(),this._removeListener(i)});return r instanceof pn?r.add(a):Array.isArray(r)&&r.push(a),a}),this._event}_removeListener(e){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(this._size===1){this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),this._size=0;return}const n=this._listeners,r=n.indexOf(e);if(r===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,n[r]=void 0;const i=this._deliveryQueue.current===this;if(this._size*vh<=n.length){let s=0;for(let a=0;a0}}class yh{constructor(){this.i=-1,this.end=0}enqueue(e,n,r){this.i=0,this.end=r,this.current=e,this.value=n}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}function xh(){return globalThis._VSCODE_NLS_MESSAGES}function $s(){return globalThis._VSCODE_NLS_LANGUAGE}const Sh=$s()==="pseudo"||typeof document<"u"&&document.location&&typeof document.location.hash=="string"&&document.location.hash.indexOf("pseudo=true")>=0;function Us(t,e){let n;return e.length===0?n=t:n=t.replace(/\{(\d+)\}/g,(r,i)=>{const s=i[0],a=e[s];let o=r;return typeof a=="string"?o=a:(typeof a=="number"||typeof a=="boolean"||a===void 0||a===null)&&(o=String(a)),o}),Sh&&(n="["+n.replace(/[aouei]/g,"$&$&")+"]"),n}function B(t,e,...n){return Us(typeof t=="number"?Ch(t,e):e,n)}function Ch(t,e){const n=xh()?.[t];if(typeof n!="string"){if(typeof e=="string")return e;throw new Error(`!!! NLS MISSING: ${t} !!!`)}return n}const zt="en";let Gr=!1,Jr=!1,Xr=!1,Xn,Yr=zt,Bs=zt,kh,Qe;const Ct=globalThis;let ke;typeof Ct.vscode<"u"&&typeof Ct.vscode.process<"u"?ke=Ct.vscode.process:typeof process<"u"&&typeof process?.versions?.node=="string"&&(ke=process);const _h=typeof ke?.versions?.electron=="string"&&ke?.type==="renderer";if(typeof ke=="object"){Gr=ke.platform==="win32",Jr=ke.platform==="darwin",Xr=ke.platform==="linux",Xr&&ke.env.SNAP&&ke.env.SNAP_REVISION,ke.env.CI||ke.env.BUILD_ARTIFACTSTAGINGDIRECTORY||ke.env.GITHUB_WORKSPACE,Xn=zt,Yr=zt;const t=ke.env.VSCODE_NLS_CONFIG;if(t)try{const e=JSON.parse(t);Xn=e.userLocale,Bs=e.osLocale,Yr=e.resolvedLanguage||zt,kh=e.languagePack?.translationsConfigFile}catch{}}else typeof navigator=="object"&&!_h?(Qe=navigator.userAgent,Gr=Qe.indexOf("Windows")>=0,Jr=Qe.indexOf("Macintosh")>=0,(Qe.indexOf("Macintosh")>=0||Qe.indexOf("iPad")>=0||Qe.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Xr=Qe.indexOf("Linux")>=0,Qe?.indexOf("Mobi")>=0,Yr=$s()||zt,Xn=navigator.language.toLowerCase(),Bs=Xn):console.error("Unable to resolve platform.");const mn=Gr,Eh=Jr,Be=Qe,Fh=typeof Ct.postMessage=="function"&&!Ct.importScripts;(()=>{if(Fh){const t=[];Ct.addEventListener("message",n=>{if(n.data&&n.data.vscodeScheduleAsyncWork)for(let r=0,i=t.length;r{const r=++e;t.push({id:r,callback:n}),Ct.postMessage({vscodeScheduleAsyncWork:r},"*")}}return t=>setTimeout(t)})();const Rh=!!(Be&&Be.indexOf("Chrome")>=0);Be&&Be.indexOf("Firefox")>=0,!Rh&&Be&&Be.indexOf("Safari")>=0,Be&&Be.indexOf("Edg/")>=0,Be&&Be.indexOf("Android")>=0;function Nh(t){return t}class Ih{constructor(e,n){this.lastCache=void 0,this.lastArgKey=void 0,typeof e=="function"?(this._fn=e,this._computeKey=Nh):(this._fn=n,this._computeKey=e.getCacheKey)}get(e){const n=this._computeKey(e);return this.lastArgKey!==n&&(this.lastArgKey=n,this.lastCache=this._fn(e)),this.lastCache}}var kt;(function(t){t[t.Uninitialized=0]="Uninitialized",t[t.Running=1]="Running",t[t.Completed=2]="Completed"})(kt||(kt={}));class Qr{constructor(e){this.executor=e,this._state=kt.Uninitialized}get value(){if(this._state===kt.Uninitialized){this._state=kt.Running;try{this._value=this.executor()}catch(e){this._error=e}finally{this._state=kt.Completed}}else if(this._state===kt.Running)throw new Error("Cannot read the value of a lazy that is being initialized");if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}function Dh(t){return t.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function Lh(t){return t.source==="^"||t.source==="^$"||t.source==="$"||t.source==="^\\s*$"?!1:!!(t.exec("")&&t.lastIndex===0)}function Ah(t){return t.split(/\r\n|\r|\n/)}function Mh(t){for(let e=0,n=t.length;e=0;n--){const r=t.charCodeAt(n);if(r!==32&&r!==9)return n}return-1}function qs(t){return t>=65&&t<=90}function Ph(t,e){const n=Math.min(t.length,e.length);let r;for(r=0;rJSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,1523,96,8242,96,1370,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,118002,50,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,118003,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,118004,52,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,118005,53,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,118006,54,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,118007,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,118008,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,118009,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,117974,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,117975,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71913,67,71922,67,65315,67,8557,67,8450,67,8493,67,117976,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,117977,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,117978,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,117979,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,117980,71,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,117981,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,117983,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,117984,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,118001,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,117982,108,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,117985,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,117986,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,117987,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,118000,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,117988,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,117989,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,117990,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,117991,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,117992,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,117993,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,117994,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,117995,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71910,87,71919,87,117996,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,117997,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,117998,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,71909,90,66293,90,65338,90,8484,90,8488,90,117999,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65283,35,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"cs":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"es":[8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"fr":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"it":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"ja":[8211,45,8218,44,65281,33,8216,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65292,44,65297,49,65307,59],"ko":[8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"pt-BR":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"ru":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"zh-hans":[160,32,65374,126,8218,44,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65297,49],"zh-hant":[8211,45,65374,126,8218,44,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89]}')),Je.cache=new Ih({getCacheKey:JSON.stringify},e=>{function n(d){const u=new Map;for(let m=0;m!d.startsWith("_")&&Object.hasOwn(s,d));a.length===0&&(a=["_default"]);let o;for(const d of a){const u=n(s[d]);o=i(o,u)}const l=n(s._common),c=r(l,o);return new Je(c)}),Je._locales=new Qr(()=>Object.keys(Je.ambiguousCharacterData.value).filter(e=>!e.startsWith("_")));let fn=Je;const ln=class ln{static getRawData(){return JSON.parse('{"_common":[11,12,13,127,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999],"cs":[173,8203,12288],"de":[173,8203,12288],"es":[8203,12288],"fr":[173,8203,12288],"it":[160,173,12288],"ja":[173],"ko":[173,12288],"pl":[173,8203,12288],"pt-BR":[173,8203,12288],"qps-ploc":[160,173,8203,12288],"ru":[173,12288],"tr":[160,173,8203,12288],"zh-hans":[160,173,8203,12288],"zh-hant":[173,12288]}')}static getData(){return this._data||(this._data=new Set([...Object.values(ln.getRawData())].flat())),this._data}static isInvisibleCharacter(e){return ln.getData().has(e)}static get codePoints(){return ln.getData()}};ln._data=void 0;let gn=ln;const Zr="default",Bh="$initialize";class qh{constructor(e,n,r,i,s){this.vsWorker=e,this.req=n,this.channel=r,this.method=i,this.args=s,this.type=0}}class js{constructor(e,n,r,i){this.vsWorker=e,this.seq=n,this.res=r,this.err=i,this.type=1}}class jh{constructor(e,n,r,i,s){this.vsWorker=e,this.req=n,this.channel=r,this.eventName=i,this.arg=s,this.type=2}}class Hh{constructor(e,n,r){this.vsWorker=e,this.req=n,this.event=r,this.type=3}}class Gh{constructor(e,n){this.vsWorker=e,this.req=n,this.type=4}}class Jh{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}async sendMessage(e,n,r){const i=String(++this._lastSentReq);return new Promise((s,a)=>{this._pendingReplies[i]={resolve:s,reject:a},this._send(new qh(this._workerId,i,e,n,r))})}listen(e,n,r){let i=null;const s=new Ue({onWillAddFirstListener:()=>{i=String(++this._lastSentReq),this._pendingEmitters.set(i,s),this._send(new jh(this._workerId,i,e,n,r))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(i),this._send(new Gh(this._workerId,i)),i=null}});return s.event}handleMessage(e){!e||!e.vsWorker||this._workerId!==-1&&e.vsWorker!==this._workerId||this._handleMessage(e)}createProxyToRemoteChannel(e,n){const r={get:(i,s)=>(typeof s=="string"&&!i[s]&&(Gs(s)?i[s]=a=>this.listen(e,s,a):Hs(s)?i[s]=this.listen(e,s,void 0):s.charCodeAt(0)===36&&(i[s]=async(...a)=>(await n?.(),this.sendMessage(e,s,a)))),i[s])};return new Proxy(Object.create(null),r)}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq]){console.warn("Got reply to unknown seq");return}const n=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let r=e.err;if(e.err.$isError){const i=new Error;i.name=e.err.name,i.message=e.err.message,i.stack=e.err.stack,r=i}n.reject(r);return}n.resolve(e.res)}_handleRequestMessage(e){const n=e.req;this._handler.handleMessage(e.channel,e.method,e.args).then(i=>{this._send(new js(this._workerId,n,i,void 0))},i=>{i.detail instanceof Error&&(i.detail=Vr(i.detail)),this._send(new js(this._workerId,n,void 0,Vr(i)))})}_handleSubscribeEventMessage(e){const n=e.req,r=this._handler.handleEvent(e.channel,e.eventName,e.arg)(i=>{this._send(new Hh(this._workerId,n,i))});this._pendingEvents.set(n,r)}_handleEventMessage(e){if(!this._pendingEmitters.has(e.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(e.req).fire(e.event)}_handleUnsubscribeEventMessage(e){if(!this._pendingEvents.has(e.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)}_send(e){const n=[];if(e.type===0)for(let r=0;r{e(r,i)},handleMessage:(r,i,s)=>this._handleMessage(r,i,s),handleEvent:(r,i,s)=>this._handleEvent(r,i,s)}),this.requestHandler=n(this)}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,n,r){if(e===Zr&&n===Bh)return this.initialize(r[0]);const i=e===Zr?this.requestHandler:this._localChannels.get(e);if(!i)return Promise.reject(new Error(`Missing channel ${e} on worker thread`));const s=i[n];if(typeof s!="function")return Promise.reject(new Error(`Missing method ${n} on worker thread channel ${e}`));try{return Promise.resolve(s.apply(i,r))}catch(a){return Promise.reject(a)}}_handleEvent(e,n,r){const i=e===Zr?this.requestHandler:this._localChannels.get(e);if(!i)throw new Error(`Missing channel ${e} on worker thread`);if(Gs(n)){const s=i[n];if(typeof s!="function")throw new Error(`Missing dynamic event ${n} on request handler.`);const a=s.call(i,r);if(typeof a!="function")throw new Error(`Missing dynamic event ${n} on request handler.`);return a}if(Hs(n)){const s=i[n];if(typeof s!="function")throw new Error(`Missing event ${n} on request handler.`);return s}throw new Error(`Malformed event name ${n}`)}getChannel(e){if(!this._remoteChannels.has(e)){const n=this._protocol.createProxyToRemoteChannel(e);this._remoteChannels.set(e,n)}return this._remoteChannels.get(e)}async initialize(e){this._protocol.setWorkerId(e)}}let Js=!1;function Yh(t){if(Js)throw new Error("WebWorker already initialized!");Js=!0;const e=new Xh(n=>globalThis.postMessage(n),n=>t(n));return globalThis.onmessage=n=>{e.onmessage(n.data)},e}class dt{constructor(e,n,r,i){this.originalStart=e,this.originalLength=n,this.modifiedStart=r,this.modifiedLength=i}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}new Qr(()=>new Uint8Array(256));function Xs(t,e){return(e<<5)-e+t|0}function Qh(t,e){e=Xs(149417,e);for(let n=0,r=t.length;n0||this.m_modifiedCount>0)&&this.m_changes.push(new dt(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,n){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_originalCount++}AddModifiedElement(e,n){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class ut{constructor(e,n,r=null){this.ContinueProcessingPredicate=r,this._originalSequence=e,this._modifiedSequence=n;const[i,s,a]=ut._getElements(e),[o,l,c]=ut._getElements(n);this._hasStrings=a&&c,this._originalStringElements=i,this._originalElementsOrHash=s,this._modifiedStringElements=o,this._modifiedElementsOrHash=l,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&typeof e[0]=="string"}static _getElements(e){const n=e.getElements();if(ut._isStringArray(n)){const r=new Int32Array(n.length);for(let i=0,s=n.length;i=e&&i>=r&&this.ElementsAreEqual(n,i);)n--,i--;if(e>n||r>i){let u;return r<=i?(Pt.Assert(e===n+1,"originalStart should only be one more than originalEnd"),u=[new dt(e,0,r,i-r+1)]):e<=n?(Pt.Assert(r===i+1,"modifiedStart should only be one more than modifiedEnd"),u=[new dt(e,n-e+1,r,0)]):(Pt.Assert(e===n+1,"originalStart should only be one more than originalEnd"),Pt.Assert(r===i+1,"modifiedStart should only be one more than modifiedEnd"),u=[]),u}const a=[0],o=[0],l=this.ComputeRecursionPoint(e,n,r,i,a,o,s),c=a[0],d=o[0];if(l!==null)return l;if(!s[0]){const u=this.ComputeDiffRecursive(e,c,r,d,s);let m=[];return s[0]?m=[new dt(c+1,n-(c+1)+1,d+1,i-(d+1)+1)]:m=this.ComputeDiffRecursive(c+1,n,d+1,i,s),this.ConcatenateChanges(u,m)}return[new dt(e,n-e+1,r,i-r+1)]}WALKTRACE(e,n,r,i,s,a,o,l,c,d,u,m,f,g,b,_,F,N){let E=null,T=null,O=new Qs,V=n,I=r,R=f[0]-_[0]-i,z=-1073741824,$=this.m_forwardHistory.length-1;do{const L=R+e;L===V||L=0&&(c=this.m_forwardHistory[$],e=c[0],V=1,I=c.length-1)}while(--$>=-1);if(E=O.getReverseChanges(),N[0]){let L=f[0]+1,y=_[0]+1;if(E!==null&&E.length>0){const k=E[E.length-1];L=Math.max(L,k.getOriginalEnd()),y=Math.max(y,k.getModifiedEnd())}T=[new dt(L,m-L+1,y,b-y+1)]}else{O=new Qs,V=a,I=o,R=f[0]-_[0]-l,z=1073741824,$=F?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const L=R+s;L===V||L=d[L+1]?(u=d[L+1]-1,g=u-R-l,u>z&&O.MarkNextChange(),z=u+1,O.AddOriginalElement(u+1,g+1),R=L+1-s):(u=d[L-1],g=u-R-l,u>z&&O.MarkNextChange(),z=u,O.AddModifiedElement(u+1,g+1),R=L-1-s),$>=0&&(d=this.m_reverseHistory[$],s=d[0],V=1,I=d.length-1)}while(--$>=-1);T=O.getChanges()}return this.ConcatenateChanges(E,T)}ComputeRecursionPoint(e,n,r,i,s,a,o){let l=0,c=0,d=0,u=0,m=0,f=0;e--,r--,s[0]=0,a[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const g=n-e+(i-r),b=g+1,_=new Int32Array(b),F=new Int32Array(b),N=i-r,E=n-e,T=e-r,O=n-i,I=(E-N)%2===0;_[N]=e,F[E]=n,o[0]=!1;for(let R=1;R<=g/2+1;R++){let z=0,$=0;d=this.ClipDiagonalBound(N-R,R,N,b),u=this.ClipDiagonalBound(N+R,R,N,b);for(let y=d;y<=u;y+=2){y===d||yz+$&&(z=l,$=c),!I&&Math.abs(y-E)<=R-1&&l>=F[y])return s[0]=l,a[0]=c,k<=F[y]&&R<=1448?this.WALKTRACE(N,d,u,T,E,m,f,O,_,F,l,n,s,c,i,a,I,o):null}const L=(z-e+($-r)-R)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(z,L))return o[0]=!0,s[0]=z,a[0]=$,L>0&&R<=1448?this.WALKTRACE(N,d,u,T,E,m,f,O,_,F,l,n,s,c,i,a,I,o):(e++,r++,[new dt(e,n-e+1,r,i-r+1)]);m=this.ClipDiagonalBound(E-R,R,E,b),f=this.ClipDiagonalBound(E+R,R,E,b);for(let y=m;y<=f;y+=2){y===m||y=F[y+1]?l=F[y+1]-1:l=F[y-1],c=l-(y-E)-O;const k=l;for(;l>e&&c>r&&this.ElementsAreEqual(l,c);)l--,c--;if(F[y]=l,I&&Math.abs(y-N)<=R&&l<=_[y])return s[0]=l,a[0]=c,k>=_[y]&&R<=1448?this.WALKTRACE(N,d,u,T,E,m,f,O,_,F,l,n,s,c,i,a,I,o):null}if(R<=1447){let y=new Int32Array(u-d+2);y[0]=N-d+1,Tt.Copy2(_,d,y,1,u-d+1),this.m_forwardHistory.push(y),y=new Int32Array(f-m+2),y[0]=E-m+1,Tt.Copy2(F,m,y,1,f-m+1),this.m_reverseHistory.push(y)}}return this.WALKTRACE(N,d,u,T,E,m,f,O,_,F,l,n,s,c,i,a,I,o)}PrettifyChanges(e){for(let n=0;n0,o=r.modifiedLength>0;for(;r.originalStart+r.originalLength=0;n--){const r=e[n];let i=0,s=0;if(n>0){const u=e[n-1];i=u.originalStart+u.originalLength,s=u.modifiedStart+u.modifiedLength}const a=r.originalLength>0,o=r.modifiedLength>0;let l=0,c=this._boundaryScore(r.originalStart,r.originalLength,r.modifiedStart,r.modifiedLength);for(let u=1;;u++){const m=r.originalStart-u,f=r.modifiedStart-u;if(mc&&(c=b,l=u)}r.originalStart-=l,r.modifiedStart-=l;const d=[null];if(n>0&&this.ChangesOverlap(e[n-1],e[n],d)){e[n-1]=d[0],e.splice(n,1),n++;continue}}if(this._hasStrings)for(let n=1,r=e.length;n0&&f>l&&(l=f,c=u,d=m)}return l>0?[c,d]:null}_contiguousSequenceScore(e,n,r){let i=0;for(let s=0;s=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,n){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(n>0){const r=e+n;if(this._OriginalIsBoundary(r-1)||this._OriginalIsBoundary(r))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,n){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(n>0){const r=e+n;if(this._ModifiedIsBoundary(r-1)||this._ModifiedIsBoundary(r))return!0}return!1}_boundaryScore(e,n,r,i){const s=this._OriginalRegionIsBoundary(e,n)?1:0,a=this._ModifiedRegionIsBoundary(r,i)?1:0;return s+a}ConcatenateChanges(e,n){const r=[];if(e.length===0||n.length===0)return n.length>0?n:e;if(this.ChangesOverlap(e[e.length-1],n[0],r)){const i=new Array(e.length+n.length-1);return Tt.Copy(e,0,i,0,e.length-1),i[e.length-1]=r[0],Tt.Copy(n,1,i,e.length,n.length-1),i}else{const i=new Array(e.length+n.length);return Tt.Copy(e,0,i,0,e.length),Tt.Copy(n,0,i,e.length,n.length),i}}ChangesOverlap(e,n,r){if(Pt.Assert(e.originalStart<=n.originalStart,"Left change is not less than or equal to right change"),Pt.Assert(e.modifiedStart<=n.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=n.originalStart||e.modifiedStart+e.modifiedLength>=n.modifiedStart){const i=e.originalStart;let s=e.originalLength;const a=e.modifiedStart;let o=e.modifiedLength;return e.originalStart+e.originalLength>=n.originalStart&&(s=n.originalStart+n.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=n.modifiedStart&&(o=n.modifiedStart+n.modifiedLength-e.modifiedStart),r[0]=new dt(i,s,a,o),!0}else return r[0]=null,!1}ClipDiagonalBound(e,n,r,i){if(e>=0&&er||e===r&&n>i?(this.startLineNumber=r,this.startColumn=i,this.endLineNumber=e,this.endColumn=n):(this.startLineNumber=e,this.startColumn=n,this.endLineNumber=r,this.endColumn=i)}isEmpty(){return ue.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return ue.containsPosition(this,e)}static containsPosition(e,n){return!(n.lineNumbere.endLineNumber||n.lineNumber===e.startLineNumber&&n.columne.endColumn)}static strictContainsPosition(e,n){return!(n.lineNumbere.endLineNumber||n.lineNumber===e.startLineNumber&&n.column<=e.startColumn||n.lineNumber===e.endLineNumber&&n.column>=e.endColumn)}containsRange(e){return ue.containsRange(this,e)}static containsRange(e,n){return!(n.startLineNumbere.endLineNumber||n.endLineNumber>e.endLineNumber||n.startLineNumber===e.startLineNumber&&n.startColumne.endColumn)}strictContainsRange(e){return ue.strictContainsRange(this,e)}static strictContainsRange(e,n){return!(n.startLineNumbere.endLineNumber||n.endLineNumber>e.endLineNumber||n.startLineNumber===e.startLineNumber&&n.startColumn<=e.startColumn||n.endLineNumber===e.endLineNumber&&n.endColumn>=e.endColumn)}plusRange(e){return ue.plusRange(this,e)}static plusRange(e,n){let r,i,s,a;return n.startLineNumbere.endLineNumber?(s=n.endLineNumber,a=n.endColumn):n.endLineNumber===e.endLineNumber?(s=n.endLineNumber,a=Math.max(n.endColumn,e.endColumn)):(s=e.endLineNumber,a=e.endColumn),new ue(r,i,s,a)}intersectRanges(e){return ue.intersectRanges(this,e)}static intersectRanges(e,n){let r=e.startLineNumber,i=e.startColumn,s=e.endLineNumber,a=e.endColumn;const o=n.startLineNumber,l=n.startColumn,c=n.endLineNumber,d=n.endColumn;return rc?(s=c,a=d):s===c&&(a=Math.min(a,d)),r>s||r===s&&i>a?null:new ue(r,i,s,a)}equalsRange(e){return ue.equalsRange(this,e)}static equalsRange(e,n){return!e&&!n?!0:!!e&&!!n&&e.startLineNumber===n.startLineNumber&&e.startColumn===n.startColumn&&e.endLineNumber===n.endLineNumber&&e.endColumn===n.endColumn}getEndPosition(){return ue.getEndPosition(this)}static getEndPosition(e){return new re(e.endLineNumber,e.endColumn)}getStartPosition(){return ue.getStartPosition(this)}static getStartPosition(e){return new re(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,n){return new ue(this.startLineNumber,this.startColumn,e,n)}setStartPosition(e,n){return new ue(e,n,this.endLineNumber,this.endColumn)}collapseToStart(){return ue.collapseToStart(this)}static collapseToStart(e){return new ue(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return ue.collapseToEnd(this)}static collapseToEnd(e){return new ue(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new ue(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}isSingleLine(){return this.startLineNumber===this.endLineNumber}static fromPositions(e,n=e){return new ue(e.lineNumber,e.column,n.lineNumber,n.column)}static lift(e){return e?new ue(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return!!e&&typeof e.startLineNumber=="number"&&typeof e.startColumn=="number"&&typeof e.endLineNumber=="number"&&typeof e.endColumn=="number"}static areIntersectingOrTouching(e,n){return!(e.endLineNumbere.startLineNumber}toJSON(){return this}};function Ks(t){return t<0?0:t>255?255:t|0}function Ot(t){return t<0?0:t>4294967295?4294967295:t|0}class ei{constructor(e){const n=Ks(e);this._defaultValue=n,this._asciiMap=ei._createAsciiMap(n),this._map=new Map}static _createAsciiMap(e){const n=new Uint8Array(256);return n.fill(e),n}set(e,n){const r=Ks(n);e>=0&&e<256?this._asciiMap[e]=r:this._map.set(e,r)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class Zh{constructor(e,n,r){const i=new Uint8Array(e*n);for(let s=0,a=e*n;sn&&(n=l),o>r&&(r=o),c>r&&(r=c)}n++,r++;const i=new Zh(r,n,0);for(let s=0,a=e.length;s=this._maxCharCode?0:this._states.get(e,n)}}let ti=null;function td(){return ti===null&&(ti=new ed([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),ti}let bn=null;function nd(){if(bn===null){bn=new ei(0);const t=` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…|`;for(let n=0;ni);if(i>0){const o=n.charCodeAt(i-1),l=n.charCodeAt(a);(o===40&&l===41||o===91&&l===93||o===123&&l===125)&&a--}return{range:{startLineNumber:r,startColumn:i+1,endLineNumber:r,endColumn:a+2},url:n.substring(i,a+1)}}static computeLinks(e,n=td()){const r=nd(),i=[];for(let s=1,a=e.getLineCount();s<=a;s++){const o=e.getLineContent(s),l=o.length;let c=0,d=0,u=0,m=1,f=!1,g=!1,b=!1,_=!1;for(;c=0?(i+=r?1:-1,i<0?i=e.length-1:i%=e.length,e[i]):null}};Pr.INSTANCE=new Pr;let ni=Pr;const Zs=Object.freeze(function(t,e){const n=setTimeout(t.bind(e),0);return{dispose(){clearTimeout(n)}}});var Qn;(function(t){function e(n){return n===t.None||n===t.Cancelled||n instanceof Kn?!0:!n||typeof n!="object"?!1:typeof n.isCancellationRequested=="boolean"&&typeof n.onCancellationRequested=="function"}t.isCancellationToken=e,t.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Ur.None}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Zs})})(Qn||(Qn={}));class Kn{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?Zs:(this._emitter||(this._emitter=new Ue),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class id{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new Kn),this._token}cancel(){this._token?this._token instanceof Kn&&this._token.cancel():this._token=Qn.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof Kn&&this._token.dispose():this._token=Qn.None}}class ri{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,n){this._keyCodeToStr[e]=n,this._strToKeyCode[n.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const Zn=new ri,ii=new ri,si=new ri,sd=new Array(230),ad=Object.create(null),od=Object.create(null);(function(){const e=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN","",""],[1,1,"Hyper",0,"",0,"","",""],[1,2,"Super",0,"",0,"","",""],[1,3,"Fn",0,"",0,"","",""],[1,4,"FnLock",0,"",0,"","",""],[1,5,"Suspend",0,"",0,"","",""],[1,6,"Resume",0,"",0,"","",""],[1,7,"Turbo",0,"",0,"","",""],[1,8,"Sleep",0,"",0,"VK_SLEEP","",""],[1,9,"WakeUp",0,"",0,"","",""],[0,10,"KeyA",31,"A",65,"VK_A","",""],[0,11,"KeyB",32,"B",66,"VK_B","",""],[0,12,"KeyC",33,"C",67,"VK_C","",""],[0,13,"KeyD",34,"D",68,"VK_D","",""],[0,14,"KeyE",35,"E",69,"VK_E","",""],[0,15,"KeyF",36,"F",70,"VK_F","",""],[0,16,"KeyG",37,"G",71,"VK_G","",""],[0,17,"KeyH",38,"H",72,"VK_H","",""],[0,18,"KeyI",39,"I",73,"VK_I","",""],[0,19,"KeyJ",40,"J",74,"VK_J","",""],[0,20,"KeyK",41,"K",75,"VK_K","",""],[0,21,"KeyL",42,"L",76,"VK_L","",""],[0,22,"KeyM",43,"M",77,"VK_M","",""],[0,23,"KeyN",44,"N",78,"VK_N","",""],[0,24,"KeyO",45,"O",79,"VK_O","",""],[0,25,"KeyP",46,"P",80,"VK_P","",""],[0,26,"KeyQ",47,"Q",81,"VK_Q","",""],[0,27,"KeyR",48,"R",82,"VK_R","",""],[0,28,"KeyS",49,"S",83,"VK_S","",""],[0,29,"KeyT",50,"T",84,"VK_T","",""],[0,30,"KeyU",51,"U",85,"VK_U","",""],[0,31,"KeyV",52,"V",86,"VK_V","",""],[0,32,"KeyW",53,"W",87,"VK_W","",""],[0,33,"KeyX",54,"X",88,"VK_X","",""],[0,34,"KeyY",55,"Y",89,"VK_Y","",""],[0,35,"KeyZ",56,"Z",90,"VK_Z","",""],[0,36,"Digit1",22,"1",49,"VK_1","",""],[0,37,"Digit2",23,"2",50,"VK_2","",""],[0,38,"Digit3",24,"3",51,"VK_3","",""],[0,39,"Digit4",25,"4",52,"VK_4","",""],[0,40,"Digit5",26,"5",53,"VK_5","",""],[0,41,"Digit6",27,"6",54,"VK_6","",""],[0,42,"Digit7",28,"7",55,"VK_7","",""],[0,43,"Digit8",29,"8",56,"VK_8","",""],[0,44,"Digit9",30,"9",57,"VK_9","",""],[0,45,"Digit0",21,"0",48,"VK_0","",""],[1,46,"Enter",3,"Enter",13,"VK_RETURN","",""],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE","",""],[1,48,"Backspace",1,"Backspace",8,"VK_BACK","",""],[1,49,"Tab",2,"Tab",9,"VK_TAB","",""],[1,50,"Space",10,"Space",32,"VK_SPACE","",""],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,"",0,"","",""],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL","",""],[1,64,"F1",59,"F1",112,"VK_F1","",""],[1,65,"F2",60,"F2",113,"VK_F2","",""],[1,66,"F3",61,"F3",114,"VK_F3","",""],[1,67,"F4",62,"F4",115,"VK_F4","",""],[1,68,"F5",63,"F5",116,"VK_F5","",""],[1,69,"F6",64,"F6",117,"VK_F6","",""],[1,70,"F7",65,"F7",118,"VK_F7","",""],[1,71,"F8",66,"F8",119,"VK_F8","",""],[1,72,"F9",67,"F9",120,"VK_F9","",""],[1,73,"F10",68,"F10",121,"VK_F10","",""],[1,74,"F11",69,"F11",122,"VK_F11","",""],[1,75,"F12",70,"F12",123,"VK_F12","",""],[1,76,"PrintScreen",0,"",0,"","",""],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL","",""],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE","",""],[1,79,"Insert",19,"Insert",45,"VK_INSERT","",""],[1,80,"Home",14,"Home",36,"VK_HOME","",""],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR","",""],[1,82,"Delete",20,"Delete",46,"VK_DELETE","",""],[1,83,"End",13,"End",35,"VK_END","",""],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT","",""],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",""],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",""],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",""],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",""],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK","",""],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE","",""],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY","",""],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT","",""],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD","",""],[1,94,"NumpadEnter",3,"",0,"","",""],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1","",""],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2","",""],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3","",""],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4","",""],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5","",""],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6","",""],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7","",""],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8","",""],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9","",""],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0","",""],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL","",""],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102","",""],[1,107,"ContextMenu",58,"ContextMenu",93,"","",""],[1,108,"Power",0,"",0,"","",""],[1,109,"NumpadEqual",0,"",0,"","",""],[1,110,"F13",71,"F13",124,"VK_F13","",""],[1,111,"F14",72,"F14",125,"VK_F14","",""],[1,112,"F15",73,"F15",126,"VK_F15","",""],[1,113,"F16",74,"F16",127,"VK_F16","",""],[1,114,"F17",75,"F17",128,"VK_F17","",""],[1,115,"F18",76,"F18",129,"VK_F18","",""],[1,116,"F19",77,"F19",130,"VK_F19","",""],[1,117,"F20",78,"F20",131,"VK_F20","",""],[1,118,"F21",79,"F21",132,"VK_F21","",""],[1,119,"F22",80,"F22",133,"VK_F22","",""],[1,120,"F23",81,"F23",134,"VK_F23","",""],[1,121,"F24",82,"F24",135,"VK_F24","",""],[1,122,"Open",0,"",0,"","",""],[1,123,"Help",0,"",0,"","",""],[1,124,"Select",0,"",0,"","",""],[1,125,"Again",0,"",0,"","",""],[1,126,"Undo",0,"",0,"","",""],[1,127,"Cut",0,"",0,"","",""],[1,128,"Copy",0,"",0,"","",""],[1,129,"Paste",0,"",0,"","",""],[1,130,"Find",0,"",0,"","",""],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE","",""],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP","",""],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN","",""],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR","",""],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1","",""],[1,136,"KanaMode",0,"",0,"","",""],[0,137,"IntlYen",0,"",0,"","",""],[1,138,"Convert",0,"",0,"","",""],[1,139,"NonConvert",0,"",0,"","",""],[1,140,"Lang1",0,"",0,"","",""],[1,141,"Lang2",0,"",0,"","",""],[1,142,"Lang3",0,"",0,"","",""],[1,143,"Lang4",0,"",0,"","",""],[1,144,"Lang5",0,"",0,"","",""],[1,145,"Abort",0,"",0,"","",""],[1,146,"Props",0,"",0,"","",""],[1,147,"NumpadParenLeft",0,"",0,"","",""],[1,148,"NumpadParenRight",0,"",0,"","",""],[1,149,"NumpadBackspace",0,"",0,"","",""],[1,150,"NumpadMemoryStore",0,"",0,"","",""],[1,151,"NumpadMemoryRecall",0,"",0,"","",""],[1,152,"NumpadMemoryClear",0,"",0,"","",""],[1,153,"NumpadMemoryAdd",0,"",0,"","",""],[1,154,"NumpadMemorySubtract",0,"",0,"","",""],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR","",""],[1,156,"NumpadClearEntry",0,"",0,"","",""],[1,0,"",5,"Ctrl",17,"VK_CONTROL","",""],[1,0,"",4,"Shift",16,"VK_SHIFT","",""],[1,0,"",6,"Alt",18,"VK_MENU","",""],[1,0,"",57,"Meta",91,"VK_COMMAND","",""],[1,157,"ControlLeft",5,"",0,"VK_LCONTROL","",""],[1,158,"ShiftLeft",4,"",0,"VK_LSHIFT","",""],[1,159,"AltLeft",6,"",0,"VK_LMENU","",""],[1,160,"MetaLeft",57,"",0,"VK_LWIN","",""],[1,161,"ControlRight",5,"",0,"VK_RCONTROL","",""],[1,162,"ShiftRight",4,"",0,"VK_RSHIFT","",""],[1,163,"AltRight",6,"",0,"VK_RMENU","",""],[1,164,"MetaRight",57,"",0,"VK_RWIN","",""],[1,165,"BrightnessUp",0,"",0,"","",""],[1,166,"BrightnessDown",0,"",0,"","",""],[1,167,"MediaPlay",0,"",0,"","",""],[1,168,"MediaRecord",0,"",0,"","",""],[1,169,"MediaFastForward",0,"",0,"","",""],[1,170,"MediaRewind",0,"",0,"","",""],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK","",""],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK","",""],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP","",""],[1,174,"Eject",0,"",0,"","",""],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE","",""],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT","",""],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL","",""],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2","",""],[1,179,"LaunchApp1",0,"",0,"VK_MEDIA_LAUNCH_APP1","",""],[1,180,"SelectTask",0,"",0,"","",""],[1,181,"LaunchScreenSaver",0,"",0,"","",""],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH","",""],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME","",""],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK","",""],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD","",""],[1,186,"BrowserStop",0,"",0,"VK_BROWSER_STOP","",""],[1,187,"BrowserRefresh",0,"",0,"VK_BROWSER_REFRESH","",""],[1,188,"BrowserFavorites",0,"",0,"VK_BROWSER_FAVORITES","",""],[1,189,"ZoomToggle",0,"",0,"","",""],[1,190,"MailReply",0,"",0,"","",""],[1,191,"MailForward",0,"",0,"","",""],[1,192,"MailSend",0,"",0,"","",""],[1,0,"",114,"KeyInComposition",229,"","",""],[1,0,"",116,"ABNT_C2",194,"VK_ABNT_C2","",""],[1,0,"",96,"OEM_8",223,"VK_OEM_8","",""],[1,0,"",0,"",0,"VK_KANA","",""],[1,0,"",0,"",0,"VK_HANGUL","",""],[1,0,"",0,"",0,"VK_JUNJA","",""],[1,0,"",0,"",0,"VK_FINAL","",""],[1,0,"",0,"",0,"VK_HANJA","",""],[1,0,"",0,"",0,"VK_KANJI","",""],[1,0,"",0,"",0,"VK_CONVERT","",""],[1,0,"",0,"",0,"VK_NONCONVERT","",""],[1,0,"",0,"",0,"VK_ACCEPT","",""],[1,0,"",0,"",0,"VK_MODECHANGE","",""],[1,0,"",0,"",0,"VK_SELECT","",""],[1,0,"",0,"",0,"VK_PRINT","",""],[1,0,"",0,"",0,"VK_EXECUTE","",""],[1,0,"",0,"",0,"VK_SNAPSHOT","",""],[1,0,"",0,"",0,"VK_HELP","",""],[1,0,"",0,"",0,"VK_APPS","",""],[1,0,"",0,"",0,"VK_PROCESSKEY","",""],[1,0,"",0,"",0,"VK_PACKET","",""],[1,0,"",0,"",0,"VK_DBE_SBCSCHAR","",""],[1,0,"",0,"",0,"VK_DBE_DBCSCHAR","",""],[1,0,"",0,"",0,"VK_ATTN","",""],[1,0,"",0,"",0,"VK_CRSEL","",""],[1,0,"",0,"",0,"VK_EXSEL","",""],[1,0,"",0,"",0,"VK_EREOF","",""],[1,0,"",0,"",0,"VK_PLAY","",""],[1,0,"",0,"",0,"VK_ZOOM","",""],[1,0,"",0,"",0,"VK_NONAME","",""],[1,0,"",0,"",0,"VK_PA1","",""],[1,0,"",0,"",0,"VK_OEM_CLEAR","",""]],n=[],r=[];for(const i of e){const[s,a,o,l,c,d,u,m,f]=i;if(r[a]||(r[a]=!0,ad[o]=a,od[o.toLowerCase()]=a),!n[l]){if(n[l]=!0,!c)throw new Error(`String representation missing for key code ${l} around scan code ${o}`);Zn.define(l,c),ii.define(l,m||c),si.define(l,f||m||c)}d&&(sd[d]=l)}})();var ea;(function(t){function e(o){return Zn.keyCodeToStr(o)}t.toString=e;function n(o){return Zn.strToKeyCode(o)}t.fromString=n;function r(o){return ii.keyCodeToStr(o)}t.toUserSettingsUS=r;function i(o){return si.keyCodeToStr(o)}t.toUserSettingsGeneral=i;function s(o){return ii.strToKeyCode(o)||si.strToKeyCode(o)}t.fromUserSettings=s;function a(o){if(o>=98&&o<=113)return null;switch(o){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return Zn.keyCodeToStr(o)}t.toElectronAccelerator=a})(ea||(ea={}));function ld(t,e){const n=(e&65535)<<16>>>0;return(t|n)>>>0}var ta={};let Wt;const ai=globalThis.vscode;if(typeof ai<"u"&&typeof ai.process<"u"){const t=ai.process;Wt={get platform(){return t.platform},get arch(){return t.arch},get env(){return t.env},cwd(){return t.cwd()}}}else typeof process<"u"&&typeof process?.versions?.node=="string"?Wt={get platform(){return process.platform},get arch(){return process.arch},get env(){return ta},cwd(){return ta.VSCODE_CWD||process.cwd()}}:Wt={get platform(){return mn?"win32":Eh?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const er=Wt.cwd,cd=Wt.env,hd=Wt.platform,dd=65,ud=97,pd=90,md=122,_t=46,fe=47,_e=92,Ke=58,fd=63;class na extends Error{constructor(e,n,r){let i;typeof n=="string"&&n.indexOf("not ")===0?(i="must not be",n=n.replace(/^not /,"")):i="must be";const s=e.indexOf(".")!==-1?"property":"argument";let a=`The "${e}" ${s} ${i} of type ${n}`;a+=`. Received type ${typeof r}`,super(a),this.code="ERR_INVALID_ARG_TYPE"}}function gd(t,e){if(t===null||typeof t!="object")throw new na(e,"Object",t)}function he(t,e){if(typeof t!="string")throw new na(e,"string",t)}const pt=hd==="win32";function X(t){return t===fe||t===_e}function oi(t){return t===fe}function Ze(t){return t>=dd&&t<=pd||t>=ud&&t<=md}function tr(t,e,n,r){let i="",s=0,a=-1,o=0,l=0;for(let c=0;c<=t.length;++c){if(c2){const d=i.lastIndexOf(n);d===-1?(i="",s=0):(i=i.slice(0,d),s=i.length-1-i.lastIndexOf(n)),a=c,o=0;continue}else if(i.length!==0){i="",s=0,a=c,o=0;continue}}e&&(i+=i.length>0?`${n}..`:"..",s=2)}else i.length>0?i+=`${n}${t.slice(a+1,c)}`:i=t.slice(a+1,c),s=c-a-1;a=c,o=0}else l===_t&&o!==-1?++o:o=-1}return i}function bd(t){return t?`${t[0]==="."?"":"."}${t}`:""}function ra(t,e){gd(e,"pathObject");const n=e.dir||e.root,r=e.base||`${e.name||""}${bd(e.ext)}`;return n?n===e.root?`${n}${r}`:`${n}${t}${r}`:r}const Se={resolve(...t){let e="",n="",r=!1;for(let i=t.length-1;i>=-1;i--){let s;if(i>=0){if(s=t[i],he(s,`paths[${i}]`),s.length===0)continue}else e.length===0?s=er():(s=cd[`=${e}`]||er(),(s===void 0||s.slice(0,2).toLowerCase()!==e.toLowerCase()&&s.charCodeAt(2)===_e)&&(s=`${e}\\`));const a=s.length;let o=0,l="",c=!1;const d=s.charCodeAt(0);if(a===1)X(d)&&(o=1,c=!0);else if(X(d))if(c=!0,X(s.charCodeAt(1))){let u=2,m=u;for(;u2&&X(s.charCodeAt(2))&&(c=!0,o=3));if(l.length>0)if(e.length>0){if(l.toLowerCase()!==e.toLowerCase())continue}else e=l;if(r){if(e.length>0)break}else if(n=`${s.slice(o)}\\${n}`,r=c,c&&e.length>0)break}return n=tr(n,!r,"\\",X),r?`${e}\\${n}`:`${e}${n}`||"."},normalize(t){he(t,"path");const e=t.length;if(e===0)return".";let n=0,r,i=!1;const s=t.charCodeAt(0);if(e===1)return oi(s)?"\\":t;if(X(s))if(i=!0,X(t.charCodeAt(1))){let o=2,l=o;for(;o2&&X(t.charCodeAt(2))&&(i=!0,n=3));let a=n0&&X(t.charCodeAt(e-1))&&(a+="\\"),!i&&r===void 0&&t.includes(":")){if(a.length>=2&&Ze(a.charCodeAt(0))&&a.charCodeAt(1)===Ke)return`.\\${a}`;let o=t.indexOf(":");do if(o===e-1||X(t.charCodeAt(o+1)))return`.\\${a}`;while((o=t.indexOf(":",o+1))!==-1)}return r===void 0?i?`\\${a}`:a:i?`${r}\\${a}`:`${r}${a}`},isAbsolute(t){he(t,"path");const e=t.length;if(e===0)return!1;const n=t.charCodeAt(0);return X(n)||e>2&&Ze(n)&&t.charCodeAt(1)===Ke&&X(t.charCodeAt(2))},join(...t){if(t.length===0)return".";let e,n;for(let s=0;s0&&(e===void 0?e=n=a:e+=`\\${a}`)}if(e===void 0)return".";let r=!0,i=0;if(typeof n=="string"&&X(n.charCodeAt(0))){++i;const s=n.length;s>1&&X(n.charCodeAt(1))&&(++i,s>2&&(X(n.charCodeAt(2))?++i:r=!1))}if(r){for(;i=2&&(e=`\\${e.slice(i)}`)}return Se.normalize(e)},relative(t,e){if(he(t,"from"),he(e,"to"),t===e)return"";const n=Se.resolve(t),r=Se.resolve(e);if(n===r||(t=n.toLowerCase(),e=r.toLowerCase(),t===e))return"";if(n.length!==t.length||r.length!==e.length){const g=n.split("\\"),b=r.split("\\");g[g.length-1]===""&&g.pop(),b[b.length-1]===""&&b.pop();const _=g.length,F=b.length,N=_N?b.slice(E).join("\\"):_>N?"..\\".repeat(_-1-E)+"..":"":"..\\".repeat(_-E)+b.slice(E).join("\\")}let i=0;for(;ii&&t.charCodeAt(s-1)===_e;)s--;const a=s-i;let o=0;for(;oo&&e.charCodeAt(l-1)===_e;)l--;const c=l-o,d=ad){if(e.charCodeAt(o+m)===_e)return r.slice(o+m+1);if(m===2)return r.slice(o+m)}a>d&&(t.charCodeAt(i+m)===_e?u=m:m===2&&(u=3)),u===-1&&(u=0)}let f="";for(m=i+u+1;m<=s;++m)(m===s||t.charCodeAt(m)===_e)&&(f+=f.length===0?"..":"\\..");return o+=u,f.length>0?`${f}${r.slice(o,l)}`:(r.charCodeAt(o)===_e&&++o,r.slice(o,l))},toNamespacedPath(t){if(typeof t!="string"||t.length===0)return t;const e=Se.resolve(t);if(e.length<=2)return t;if(e.charCodeAt(0)===_e){if(e.charCodeAt(1)===_e){const n=e.charCodeAt(2);if(n!==fd&&n!==_t)return`\\\\?\\UNC\\${e.slice(2)}`}}else if(Ze(e.charCodeAt(0))&&e.charCodeAt(1)===Ke&&e.charCodeAt(2)===_e)return`\\\\?\\${e}`;return e},dirname(t){he(t,"path");const e=t.length;if(e===0)return".";let n=-1,r=0;const i=t.charCodeAt(0);if(e===1)return X(i)?t:".";if(X(i)){if(n=r=1,X(t.charCodeAt(1))){let o=2,l=o;for(;o2&&X(t.charCodeAt(2))?3:2,r=n);let s=-1,a=!0;for(let o=e-1;o>=r;--o)if(X(t.charCodeAt(o))){if(!a){s=o;break}}else a=!1;if(s===-1){if(n===-1)return".";s=n}return t.slice(0,s)},basename(t,e){e!==void 0&&he(e,"suffix"),he(t,"path");let n=0,r=-1,i=!0,s;if(t.length>=2&&Ze(t.charCodeAt(0))&&t.charCodeAt(1)===Ke&&(n=2),e!==void 0&&e.length>0&&e.length<=t.length){if(e===t)return"";let a=e.length-1,o=-1;for(s=t.length-1;s>=n;--s){const l=t.charCodeAt(s);if(X(l)){if(!i){n=s+1;break}}else o===-1&&(i=!1,o=s+1),a>=0&&(l===e.charCodeAt(a)?--a===-1&&(r=s):(a=-1,r=o))}return n===r?r=o:r===-1&&(r=t.length),t.slice(n,r)}for(s=t.length-1;s>=n;--s)if(X(t.charCodeAt(s))){if(!i){n=s+1;break}}else r===-1&&(i=!1,r=s+1);return r===-1?"":t.slice(n,r)},extname(t){he(t,"path");let e=0,n=-1,r=0,i=-1,s=!0,a=0;t.length>=2&&t.charCodeAt(1)===Ke&&Ze(t.charCodeAt(0))&&(e=r=2);for(let o=t.length-1;o>=e;--o){const l=t.charCodeAt(o);if(X(l)){if(!s){r=o+1;break}continue}i===-1&&(s=!1,i=o+1),l===_t?n===-1?n=o:a!==1&&(a=1):n!==-1&&(a=-1)}return n===-1||i===-1||a===0||a===1&&n===i-1&&n===r+1?"":t.slice(n,i)},format:ra.bind(null,"\\"),parse(t){he(t,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return e;const n=t.length;let r=0,i=t.charCodeAt(0);if(n===1)return X(i)?(e.root=e.dir=t,e):(e.base=e.name=t,e);if(X(i)){if(r=1,X(t.charCodeAt(1))){let u=2,m=u;for(;u0&&(e.root=t.slice(0,r));let s=-1,a=r,o=-1,l=!0,c=t.length-1,d=0;for(;c>=r;--c){if(i=t.charCodeAt(c),X(i)){if(!l){a=c+1;break}continue}o===-1&&(l=!1,o=c+1),i===_t?s===-1?s=c:d!==1&&(d=1):s!==-1&&(d=-1)}return o!==-1&&(s===-1||d===0||d===1&&s===o-1&&s===a+1?e.base=e.name=t.slice(a,o):(e.name=t.slice(a,s),e.base=t.slice(a,o),e.ext=t.slice(s,o))),a>0&&a!==r?e.dir=t.slice(0,a-1):e.dir=e.root,e},sep:"\\",delimiter:";",win32:null,posix:null},wd=(()=>{if(pt){const t=/\\/g;return()=>{const e=er().replace(t,"/");return e.slice(e.indexOf("/"))}}return()=>er()})(),Ee={resolve(...t){let e="",n=!1;for(let r=t.length-1;r>=0&&!n;r--){const i=t[r];he(i,`paths[${r}]`),i.length!==0&&(e=`${i}/${e}`,n=i.charCodeAt(0)===fe)}if(!n){const r=wd();e=`${r}/${e}`,n=r.charCodeAt(0)===fe}return e=tr(e,!n,"/",oi),n?`/${e}`:e.length>0?e:"."},normalize(t){if(he(t,"path"),t.length===0)return".";const e=t.charCodeAt(0)===fe,n=t.charCodeAt(t.length-1)===fe;return t=tr(t,!e,"/",oi),t.length===0?e?"/":n?"./":".":(n&&(t+="/"),e?`/${t}`:t)},isAbsolute(t){return he(t,"path"),t.length>0&&t.charCodeAt(0)===fe},join(...t){if(t.length===0)return".";const e=[];for(let n=0;n0&&e.push(r)}return e.length===0?".":Ee.normalize(e.join("/"))},relative(t,e){if(he(t,"from"),he(e,"to"),t===e||(t=Ee.resolve(t),e=Ee.resolve(e),t===e))return"";const n=1,r=t.length,i=r-n,s=1,a=e.length-s,o=io){if(e.charCodeAt(s+c)===fe)return e.slice(s+c+1);if(c===0)return e.slice(s+c)}else i>o&&(t.charCodeAt(n+c)===fe?l=c:c===0&&(l=0));let d="";for(c=n+l+1;c<=r;++c)(c===r||t.charCodeAt(c)===fe)&&(d+=d.length===0?"..":"/..");return`${d}${e.slice(s+l)}`},toNamespacedPath(t){return t},dirname(t){if(he(t,"path"),t.length===0)return".";const e=t.charCodeAt(0)===fe;let n=-1,r=!0;for(let i=t.length-1;i>=1;--i)if(t.charCodeAt(i)===fe){if(!r){n=i;break}}else r=!1;return n===-1?e?"/":".":e&&n===1?"//":t.slice(0,n)},basename(t,e){e!==void 0&&he(e,"suffix"),he(t,"path");let n=0,r=-1,i=!0,s;if(e!==void 0&&e.length>0&&e.length<=t.length){if(e===t)return"";let a=e.length-1,o=-1;for(s=t.length-1;s>=0;--s){const l=t.charCodeAt(s);if(l===fe){if(!i){n=s+1;break}}else o===-1&&(i=!1,o=s+1),a>=0&&(l===e.charCodeAt(a)?--a===-1&&(r=s):(a=-1,r=o))}return n===r?r=o:r===-1&&(r=t.length),t.slice(n,r)}for(s=t.length-1;s>=0;--s)if(t.charCodeAt(s)===fe){if(!i){n=s+1;break}}else r===-1&&(i=!1,r=s+1);return r===-1?"":t.slice(n,r)},extname(t){he(t,"path");let e=-1,n=0,r=-1,i=!0,s=0;for(let a=t.length-1;a>=0;--a){const o=t[a];if(o==="/"){if(!i){n=a+1;break}continue}r===-1&&(i=!1,r=a+1),o==="."?e===-1?e=a:s!==1&&(s=1):e!==-1&&(s=-1)}return e===-1||r===-1||s===0||s===1&&e===r-1&&e===n+1?"":t.slice(e,r)},format:ra.bind(null,"/"),parse(t){he(t,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return e;const n=t.charCodeAt(0)===fe;let r;n?(e.root="/",r=1):r=0;let i=-1,s=0,a=-1,o=!0,l=t.length-1,c=0;for(;l>=r;--l){const d=t.charCodeAt(l);if(d===fe){if(!o){s=l+1;break}continue}a===-1&&(o=!1,a=l+1),d===_t?i===-1?i=l:c!==1&&(c=1):i!==-1&&(c=-1)}if(a!==-1){const d=s===0&&n?1:s;i===-1||c===0||c===1&&i===a-1&&i===s+1?e.base=e.name=t.slice(d,a):(e.name=t.slice(d,i),e.base=t.slice(d,a),e.ext=t.slice(i,a))}return s>0?e.dir=t.slice(0,s-1):n&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};Ee.win32=Se.win32=Se,Ee.posix=Se.posix=Ee,pt?Se.normalize:Ee.normalize,pt?Se.resolve:Ee.resolve,pt?Se.relative:Ee.relative,pt?Se.dirname:Ee.dirname,pt?Se.basename:Ee.basename,pt?Se.extname:Ee.extname,pt?Se.sep:Ee.sep;const vd=/^\w[\w\d+.-]*$/,yd=/^\//,xd=/^\/\//;function Sd(t,e){if(!t.scheme&&e)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${t.authority}", path: "${t.path}", query: "${t.query}", fragment: "${t.fragment}"}`);if(t.scheme&&!vd.test(t.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(t.path){if(t.authority){if(!yd.test(t.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(xd.test(t.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function Cd(t,e){return!t&&!e?"file":t}function kd(t,e){switch(t){case"https":case"http":case"file":e?e[0]!==We&&(e=We+e):e=We;break}return e}const se="",We="/",_d=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;let li=class Wr{static isUri(e){return e instanceof Wr?!0:!e||typeof e!="object"?!1:typeof e.authority=="string"&&typeof e.fragment=="string"&&typeof e.path=="string"&&typeof e.query=="string"&&typeof e.scheme=="string"&&typeof e.fsPath=="string"&&typeof e.with=="function"&&typeof e.toString=="function"}constructor(e,n,r,i,s,a=!1){typeof e=="object"?(this.scheme=e.scheme||se,this.authority=e.authority||se,this.path=e.path||se,this.query=e.query||se,this.fragment=e.fragment||se):(this.scheme=Cd(e,a),this.authority=n||se,this.path=kd(this.scheme,r||se),this.query=i||se,this.fragment=s||se,Sd(this,a))}get fsPath(){return ci(this,!1)}with(e){if(!e)return this;let{scheme:n,authority:r,path:i,query:s,fragment:a}=e;return n===void 0?n=this.scheme:n===null&&(n=se),r===void 0?r=this.authority:r===null&&(r=se),i===void 0?i=this.path:i===null&&(i=se),s===void 0?s=this.query:s===null&&(s=se),a===void 0?a=this.fragment:a===null&&(a=se),n===this.scheme&&r===this.authority&&i===this.path&&s===this.query&&a===this.fragment?this:new Vt(n,r,i,s,a)}static parse(e,n=!1){const r=_d.exec(e);return r?new Vt(r[2]||se,nr(r[4]||se),nr(r[5]||se),nr(r[7]||se),nr(r[9]||se),n):new Vt(se,se,se,se,se)}static file(e){let n=se;if(mn&&(e=e.replace(/\\/g,We)),e[0]===We&&e[1]===We){const r=e.indexOf(We,2);r===-1?(n=e.substring(2),e=We):(n=e.substring(2,r),e=e.substring(r)||We)}return new Vt("file",n,e,se,se)}static from(e,n){return new Vt(e.scheme,e.authority,e.path,e.query,e.fragment,n)}static joinPath(e,...n){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let r;return mn&&e.scheme==="file"?r=Wr.file(Se.join(ci(e,!0),...n)).path:r=Ee.join(e.path,...n),e.with({path:r})}toString(e=!1){return hi(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof Wr)return e;{const n=new Vt(e);return n._formatted=e.external??null,n._fsPath=e._sep===ia?e.fsPath??null:null,n}}else return e}};const ia=mn?1:void 0;class Vt extends li{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=ci(this,!1)),this._fsPath}toString(e=!1){return e?hi(this,!0):(this._formatted||(this._formatted=hi(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=ia),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const sa={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function aa(t,e,n){let r,i=-1;for(let s=0;s=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||a===45||a===46||a===95||a===126||e&&a===47||n&&a===91||n&&a===93||n&&a===58)i!==-1&&(r+=encodeURIComponent(t.substring(i,s)),i=-1),r!==void 0&&(r+=t.charAt(s));else{r===void 0&&(r=t.substr(0,s));const o=sa[a];o!==void 0?(i!==-1&&(r+=encodeURIComponent(t.substring(i,s)),i=-1),r+=o):i===-1&&(i=s)}}return i!==-1&&(r+=encodeURIComponent(t.substring(i))),r!==void 0?r:t}function Ed(t){let e;for(let n=0;n1&&t.scheme==="file"?n=`//${t.authority}${t.path}`:t.path.charCodeAt(0)===47&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&t.path.charCodeAt(2)===58?e?n=t.path.substr(1):n=t.path[1].toLowerCase()+t.path.substr(2):n=t.path,mn&&(n=n.replace(/\//g,"\\")),n}function hi(t,e){const n=e?Ed:aa;let r="",{scheme:i,authority:s,path:a,query:o,fragment:l}=t;if(i&&(r+=i,r+=":"),(s||i==="file")&&(r+=We,r+=We),s){let c=s.indexOf("@");if(c!==-1){const d=s.substr(0,c);s=s.substr(c+1),c=d.lastIndexOf(":"),c===-1?r+=n(d,!1,!1):(r+=n(d.substr(0,c),!1,!1),r+=":",r+=n(d.substr(c+1),!1,!0)),r+="@"}s=s.toLowerCase(),c=s.lastIndexOf(":"),c===-1?r+=n(s,!1,!0):(r+=n(s.substr(0,c),!1,!0),r+=s.substr(c))}if(a){if(a.length>=3&&a.charCodeAt(0)===47&&a.charCodeAt(2)===58){const c=a.charCodeAt(1);c>=65&&c<=90&&(a=`/${String.fromCharCode(c+32)}:${a.substr(3)}`)}else if(a.length>=2&&a.charCodeAt(1)===58){const c=a.charCodeAt(0);c>=65&&c<=90&&(a=`${String.fromCharCode(c+32)}:${a.substr(2)}`)}r+=n(a,!0,!1)}return o&&(r+="?",r+=n(o,!1,!1)),l&&(r+="#",r+=e?l:aa(l,!1,!1)),r}function oa(t){try{return decodeURIComponent(t)}catch{return t.length>3?t.substr(0,3)+oa(t.substr(3)):t}}const la=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function nr(t){return t.match(la)?t.replace(la,e=>oa(e)):t}class Re extends J{constructor(e,n,r,i){super(e,n,r,i),this.selectionStartLineNumber=e,this.selectionStartColumn=n,this.positionLineNumber=r,this.positionColumn=i}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return Re.selectionsEqual(this,e)}static selectionsEqual(e,n){return e.selectionStartLineNumber===n.selectionStartLineNumber&&e.selectionStartColumn===n.selectionStartColumn&&e.positionLineNumber===n.positionLineNumber&&e.positionColumn===n.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,n){return this.getDirection()===0?new Re(this.startLineNumber,this.startColumn,e,n):new Re(e,n,this.startLineNumber,this.startColumn)}getPosition(){return new re(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new re(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,n){return this.getDirection()===0?new Re(e,n,this.endLineNumber,this.endColumn):new Re(this.endLineNumber,this.endColumn,e,n)}static fromPositions(e,n=e){return new Re(e.lineNumber,e.column,n.lineNumber,n.column)}static fromRange(e,n){return n===0?new Re(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new Re(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new Re(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,n){if(e&&!n||!e&&n)return!1;if(!e&&!n)return!0;if(e.length!==n.length)return!1;for(let r=0,i=e.length;r{this._tokenizationSupports.get(e)===n&&(this._tokenizationSupports.delete(e),this.handleChange([e]))})}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,n){this._factories.get(e)?.dispose();const r=new Id(this,e,n);return this._factories.set(e,r),Gn(()=>{const i=this._factories.get(e);!i||i!==r||(this._factories.delete(e),i.dispose())})}async getOrCreate(e){const n=this.get(e);if(n)return n;const r=this._factories.get(e);return!r||r.isResolved?null:(await r.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;const r=this._factories.get(e);return!!(!r||r.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}class Id extends St{get isResolved(){return this._isResolved}constructor(e,n,r){super(),this._registry=e,this._languageId=n,this._factory=r,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const e=await this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}}class Dd{constructor(e,n,r){this.offset=e,this.type=n,this.language=r,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}var ha;(function(t){t[t.Increase=0]="Increase",t[t.Decrease=1]="Decrease"})(ha||(ha={}));var da;(function(t){const e=new Map;e.set(0,U.symbolMethod),e.set(1,U.symbolFunction),e.set(2,U.symbolConstructor),e.set(3,U.symbolField),e.set(4,U.symbolVariable),e.set(5,U.symbolClass),e.set(6,U.symbolStruct),e.set(7,U.symbolInterface),e.set(8,U.symbolModule),e.set(9,U.symbolProperty),e.set(10,U.symbolEvent),e.set(11,U.symbolOperator),e.set(12,U.symbolUnit),e.set(13,U.symbolValue),e.set(15,U.symbolEnum),e.set(14,U.symbolConstant),e.set(15,U.symbolEnum),e.set(16,U.symbolEnumMember),e.set(17,U.symbolKeyword),e.set(28,U.symbolSnippet),e.set(18,U.symbolText),e.set(19,U.symbolColor),e.set(20,U.symbolFile),e.set(21,U.symbolReference),e.set(22,U.symbolCustomColor),e.set(23,U.symbolFolder),e.set(24,U.symbolTypeParameter),e.set(25,U.account),e.set(26,U.issues),e.set(27,U.tools);function n(a){let o=e.get(a);return o||(console.info("No codicon found for CompletionItemKind "+a),o=U.symbolProperty),o}t.toIcon=n;function r(a){switch(a){case 0:return B(728,"Method");case 1:return B(729,"Function");case 2:return B(730,"Constructor");case 3:return B(731,"Field");case 4:return B(732,"Variable");case 5:return B(733,"Class");case 6:return B(734,"Struct");case 7:return B(735,"Interface");case 8:return B(736,"Module");case 9:return B(737,"Property");case 10:return B(738,"Event");case 11:return B(739,"Operator");case 12:return B(740,"Unit");case 13:return B(741,"Value");case 14:return B(742,"Constant");case 15:return B(743,"Enum");case 16:return B(744,"Enum Member");case 17:return B(745,"Keyword");case 18:return B(746,"Text");case 19:return B(747,"Color");case 20:return B(748,"File");case 21:return B(749,"Reference");case 22:return B(750,"Custom Color");case 23:return B(751,"Folder");case 24:return B(752,"Type Parameter");case 25:return B(753,"User");case 26:return B(754,"Issue");case 27:return B(755,"Tool");case 28:return B(756,"Snippet");default:return""}}t.toLabel=r;const i=new Map;i.set("method",0),i.set("function",1),i.set("constructor",2),i.set("field",3),i.set("variable",4),i.set("class",5),i.set("struct",6),i.set("interface",7),i.set("module",8),i.set("property",9),i.set("event",10),i.set("operator",11),i.set("unit",12),i.set("value",13),i.set("constant",14),i.set("enum",15),i.set("enum-member",16),i.set("enumMember",16),i.set("keyword",17),i.set("snippet",28),i.set("text",18),i.set("color",19),i.set("file",20),i.set("reference",21),i.set("customcolor",22),i.set("folder",23),i.set("type-parameter",24),i.set("typeParameter",24),i.set("account",25),i.set("issue",26),i.set("tool",27);function s(a,o){let l=i.get(a);return typeof l>"u"&&!o&&(l=9),l}t.fromString=s})(da||(da={}));var ua;(function(t){t[t.Automatic=0]="Automatic",t[t.Explicit=1]="Explicit"})(ua||(ua={}));var pa;(function(t){t[t.Code=1]="Code",t[t.Label=2]="Label"})(pa||(pa={}));var ma;(function(t){t[t.Accepted=0]="Accepted",t[t.Rejected=1]="Rejected",t[t.Ignored=2]="Ignored"})(ma||(ma={}));var fa;(function(t){t[t.Automatic=0]="Automatic",t[t.PasteAs=1]="PasteAs"})(fa||(fa={}));var ga;(function(t){t[t.Invoke=1]="Invoke",t[t.TriggerCharacter=2]="TriggerCharacter",t[t.ContentChange=3]="ContentChange"})(ga||(ga={}));var ba;(function(t){t[t.Text=0]="Text",t[t.Read=1]="Read",t[t.Write=2]="Write"})(ba||(ba={})),B(757,"array"),B(758,"boolean"),B(759,"class"),B(760,"constant"),B(761,"constructor"),B(762,"enumeration"),B(763,"enumeration member"),B(764,"event"),B(765,"field"),B(766,"file"),B(767,"function"),B(768,"interface"),B(769,"key"),B(770,"method"),B(771,"module"),B(772,"namespace"),B(773,"null"),B(774,"number"),B(775,"object"),B(776,"operator"),B(777,"package"),B(778,"property"),B(779,"string"),B(780,"struct"),B(781,"type parameter"),B(782,"variable");var wa;(function(t){const e=new Map;e.set(0,U.symbolFile),e.set(1,U.symbolModule),e.set(2,U.symbolNamespace),e.set(3,U.symbolPackage),e.set(4,U.symbolClass),e.set(5,U.symbolMethod),e.set(6,U.symbolProperty),e.set(7,U.symbolField),e.set(8,U.symbolConstructor),e.set(9,U.symbolEnum),e.set(10,U.symbolInterface),e.set(11,U.symbolFunction),e.set(12,U.symbolVariable),e.set(13,U.symbolConstant),e.set(14,U.symbolString),e.set(15,U.symbolNumber),e.set(16,U.symbolBoolean),e.set(17,U.symbolArray),e.set(18,U.symbolObject),e.set(19,U.symbolKey),e.set(20,U.symbolNull),e.set(21,U.symbolEnumMember),e.set(22,U.symbolStruct),e.set(23,U.symbolEvent),e.set(24,U.symbolOperator),e.set(25,U.symbolTypeParameter);function n(s){let a=e.get(s);return a||(console.info("No codicon found for SymbolKind "+s),a=U.symbolProperty),a}t.toIcon=n;const r=new Map;r.set(0,20),r.set(1,8),r.set(2,8),r.set(3,8),r.set(4,5),r.set(5,0),r.set(6,9),r.set(7,3),r.set(8,2),r.set(9,15),r.set(10,7),r.set(11,1),r.set(12,4),r.set(13,14),r.set(14,18),r.set(15,13),r.set(16,13),r.set(17,13),r.set(18,13),r.set(19,17),r.set(20,13),r.set(21,16),r.set(22,6),r.set(23,10),r.set(24,11),r.set(25,24);function i(s){let a=r.get(s);return a===void 0&&(console.info("No completion kind found for SymbolKind "+s),a=20),a}t.toCompletionKind=i})(wa||(wa={}));let Mf=(Ce=class{static fromValue(e){switch(e){case"comment":return Ce.Comment;case"imports":return Ce.Imports;case"region":return Ce.Region}return new Ce(e)}constructor(e){this.value=e}},Ce.Comment=new Ce("comment"),Ce.Imports=new Ce("imports"),Ce.Region=new Ce("region"),Ce);var va;(function(t){t[t.AIGenerated=1]="AIGenerated"})(va||(va={}));var ya;(function(t){t[t.Invoke=0]="Invoke",t[t.Automatic=1]="Automatic"})(ya||(ya={}));var xa;(function(t){function e(n){return!n||typeof n!="object"?!1:typeof n.id=="string"&&typeof n.title=="string"}t.is=e})(xa||(xa={}));var Sa;(function(t){t[t.Type=1]="Type",t[t.Parameter=2]="Parameter"})(Sa||(Sa={})),new Nd;var Ca;(function(t){t[t.Unknown=0]="Unknown",t[t.Disabled=1]="Disabled",t[t.Enabled=2]="Enabled"})(Ca||(Ca={}));var ka;(function(t){t[t.Invoke=1]="Invoke",t[t.Auto=2]="Auto"})(ka||(ka={}));var _a;(function(t){t[t.None=0]="None",t[t.KeepWhitespace=1]="KeepWhitespace",t[t.InsertAsSnippet=4]="InsertAsSnippet"})(_a||(_a={}));var Ea;(function(t){t[t.Method=0]="Method",t[t.Function=1]="Function",t[t.Constructor=2]="Constructor",t[t.Field=3]="Field",t[t.Variable=4]="Variable",t[t.Class=5]="Class",t[t.Struct=6]="Struct",t[t.Interface=7]="Interface",t[t.Module=8]="Module",t[t.Property=9]="Property",t[t.Event=10]="Event",t[t.Operator=11]="Operator",t[t.Unit=12]="Unit",t[t.Value=13]="Value",t[t.Constant=14]="Constant",t[t.Enum=15]="Enum",t[t.EnumMember=16]="EnumMember",t[t.Keyword=17]="Keyword",t[t.Text=18]="Text",t[t.Color=19]="Color",t[t.File=20]="File",t[t.Reference=21]="Reference",t[t.Customcolor=22]="Customcolor",t[t.Folder=23]="Folder",t[t.TypeParameter=24]="TypeParameter",t[t.User=25]="User",t[t.Issue=26]="Issue",t[t.Tool=27]="Tool",t[t.Snippet=28]="Snippet"})(Ea||(Ea={}));var Fa;(function(t){t[t.Deprecated=1]="Deprecated"})(Fa||(Fa={}));var Ra;(function(t){t[t.Invoke=0]="Invoke",t[t.TriggerCharacter=1]="TriggerCharacter",t[t.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(Ra||(Ra={}));var Na;(function(t){t[t.EXACT=0]="EXACT",t[t.ABOVE=1]="ABOVE",t[t.BELOW=2]="BELOW"})(Na||(Na={}));var Ia;(function(t){t[t.NotSet=0]="NotSet",t[t.ContentFlush=1]="ContentFlush",t[t.RecoverFromMarkers=2]="RecoverFromMarkers",t[t.Explicit=3]="Explicit",t[t.Paste=4]="Paste",t[t.Undo=5]="Undo",t[t.Redo=6]="Redo"})(Ia||(Ia={}));var Da;(function(t){t[t.LF=1]="LF",t[t.CRLF=2]="CRLF"})(Da||(Da={}));var La;(function(t){t[t.Text=0]="Text",t[t.Read=1]="Read",t[t.Write=2]="Write"})(La||(La={}));var Aa;(function(t){t[t.None=0]="None",t[t.Keep=1]="Keep",t[t.Brackets=2]="Brackets",t[t.Advanced=3]="Advanced",t[t.Full=4]="Full"})(Aa||(Aa={}));var Ma;(function(t){t[t.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",t[t.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",t[t.accessibilitySupport=2]="accessibilitySupport",t[t.accessibilityPageSize=3]="accessibilityPageSize",t[t.allowOverflow=4]="allowOverflow",t[t.allowVariableLineHeights=5]="allowVariableLineHeights",t[t.allowVariableFonts=6]="allowVariableFonts",t[t.allowVariableFontsInAccessibilityMode=7]="allowVariableFontsInAccessibilityMode",t[t.ariaLabel=8]="ariaLabel",t[t.ariaRequired=9]="ariaRequired",t[t.autoClosingBrackets=10]="autoClosingBrackets",t[t.autoClosingComments=11]="autoClosingComments",t[t.screenReaderAnnounceInlineSuggestion=12]="screenReaderAnnounceInlineSuggestion",t[t.autoClosingDelete=13]="autoClosingDelete",t[t.autoClosingOvertype=14]="autoClosingOvertype",t[t.autoClosingQuotes=15]="autoClosingQuotes",t[t.autoIndent=16]="autoIndent",t[t.autoIndentOnPaste=17]="autoIndentOnPaste",t[t.autoIndentOnPasteWithinString=18]="autoIndentOnPasteWithinString",t[t.automaticLayout=19]="automaticLayout",t[t.autoSurround=20]="autoSurround",t[t.bracketPairColorization=21]="bracketPairColorization",t[t.guides=22]="guides",t[t.codeLens=23]="codeLens",t[t.codeLensFontFamily=24]="codeLensFontFamily",t[t.codeLensFontSize=25]="codeLensFontSize",t[t.colorDecorators=26]="colorDecorators",t[t.colorDecoratorsLimit=27]="colorDecoratorsLimit",t[t.columnSelection=28]="columnSelection",t[t.comments=29]="comments",t[t.contextmenu=30]="contextmenu",t[t.copyWithSyntaxHighlighting=31]="copyWithSyntaxHighlighting",t[t.cursorBlinking=32]="cursorBlinking",t[t.cursorSmoothCaretAnimation=33]="cursorSmoothCaretAnimation",t[t.cursorStyle=34]="cursorStyle",t[t.cursorSurroundingLines=35]="cursorSurroundingLines",t[t.cursorSurroundingLinesStyle=36]="cursorSurroundingLinesStyle",t[t.cursorWidth=37]="cursorWidth",t[t.cursorHeight=38]="cursorHeight",t[t.disableLayerHinting=39]="disableLayerHinting",t[t.disableMonospaceOptimizations=40]="disableMonospaceOptimizations",t[t.domReadOnly=41]="domReadOnly",t[t.dragAndDrop=42]="dragAndDrop",t[t.dropIntoEditor=43]="dropIntoEditor",t[t.editContext=44]="editContext",t[t.emptySelectionClipboard=45]="emptySelectionClipboard",t[t.experimentalGpuAcceleration=46]="experimentalGpuAcceleration",t[t.experimentalWhitespaceRendering=47]="experimentalWhitespaceRendering",t[t.extraEditorClassName=48]="extraEditorClassName",t[t.fastScrollSensitivity=49]="fastScrollSensitivity",t[t.find=50]="find",t[t.fixedOverflowWidgets=51]="fixedOverflowWidgets",t[t.folding=52]="folding",t[t.foldingStrategy=53]="foldingStrategy",t[t.foldingHighlight=54]="foldingHighlight",t[t.foldingImportsByDefault=55]="foldingImportsByDefault",t[t.foldingMaximumRegions=56]="foldingMaximumRegions",t[t.unfoldOnClickAfterEndOfLine=57]="unfoldOnClickAfterEndOfLine",t[t.fontFamily=58]="fontFamily",t[t.fontInfo=59]="fontInfo",t[t.fontLigatures=60]="fontLigatures",t[t.fontSize=61]="fontSize",t[t.fontWeight=62]="fontWeight",t[t.fontVariations=63]="fontVariations",t[t.formatOnPaste=64]="formatOnPaste",t[t.formatOnType=65]="formatOnType",t[t.glyphMargin=66]="glyphMargin",t[t.gotoLocation=67]="gotoLocation",t[t.hideCursorInOverviewRuler=68]="hideCursorInOverviewRuler",t[t.hover=69]="hover",t[t.inDiffEditor=70]="inDiffEditor",t[t.inlineSuggest=71]="inlineSuggest",t[t.letterSpacing=72]="letterSpacing",t[t.lightbulb=73]="lightbulb",t[t.lineDecorationsWidth=74]="lineDecorationsWidth",t[t.lineHeight=75]="lineHeight",t[t.lineNumbers=76]="lineNumbers",t[t.lineNumbersMinChars=77]="lineNumbersMinChars",t[t.linkedEditing=78]="linkedEditing",t[t.links=79]="links",t[t.matchBrackets=80]="matchBrackets",t[t.minimap=81]="minimap",t[t.mouseStyle=82]="mouseStyle",t[t.mouseWheelScrollSensitivity=83]="mouseWheelScrollSensitivity",t[t.mouseWheelZoom=84]="mouseWheelZoom",t[t.multiCursorMergeOverlapping=85]="multiCursorMergeOverlapping",t[t.multiCursorModifier=86]="multiCursorModifier",t[t.mouseMiddleClickAction=87]="mouseMiddleClickAction",t[t.multiCursorPaste=88]="multiCursorPaste",t[t.multiCursorLimit=89]="multiCursorLimit",t[t.occurrencesHighlight=90]="occurrencesHighlight",t[t.occurrencesHighlightDelay=91]="occurrencesHighlightDelay",t[t.overtypeCursorStyle=92]="overtypeCursorStyle",t[t.overtypeOnPaste=93]="overtypeOnPaste",t[t.overviewRulerBorder=94]="overviewRulerBorder",t[t.overviewRulerLanes=95]="overviewRulerLanes",t[t.padding=96]="padding",t[t.pasteAs=97]="pasteAs",t[t.parameterHints=98]="parameterHints",t[t.peekWidgetDefaultFocus=99]="peekWidgetDefaultFocus",t[t.placeholder=100]="placeholder",t[t.definitionLinkOpensInPeek=101]="definitionLinkOpensInPeek",t[t.quickSuggestions=102]="quickSuggestions",t[t.quickSuggestionsDelay=103]="quickSuggestionsDelay",t[t.readOnly=104]="readOnly",t[t.readOnlyMessage=105]="readOnlyMessage",t[t.renameOnType=106]="renameOnType",t[t.renderRichScreenReaderContent=107]="renderRichScreenReaderContent",t[t.renderControlCharacters=108]="renderControlCharacters",t[t.renderFinalNewline=109]="renderFinalNewline",t[t.renderLineHighlight=110]="renderLineHighlight",t[t.renderLineHighlightOnlyWhenFocus=111]="renderLineHighlightOnlyWhenFocus",t[t.renderValidationDecorations=112]="renderValidationDecorations",t[t.renderWhitespace=113]="renderWhitespace",t[t.revealHorizontalRightPadding=114]="revealHorizontalRightPadding",t[t.roundedSelection=115]="roundedSelection",t[t.rulers=116]="rulers",t[t.scrollbar=117]="scrollbar",t[t.scrollBeyondLastColumn=118]="scrollBeyondLastColumn",t[t.scrollBeyondLastLine=119]="scrollBeyondLastLine",t[t.scrollPredominantAxis=120]="scrollPredominantAxis",t[t.selectionClipboard=121]="selectionClipboard",t[t.selectionHighlight=122]="selectionHighlight",t[t.selectionHighlightMaxLength=123]="selectionHighlightMaxLength",t[t.selectionHighlightMultiline=124]="selectionHighlightMultiline",t[t.selectOnLineNumbers=125]="selectOnLineNumbers",t[t.showFoldingControls=126]="showFoldingControls",t[t.showUnused=127]="showUnused",t[t.snippetSuggestions=128]="snippetSuggestions",t[t.smartSelect=129]="smartSelect",t[t.smoothScrolling=130]="smoothScrolling",t[t.stickyScroll=131]="stickyScroll",t[t.stickyTabStops=132]="stickyTabStops",t[t.stopRenderingLineAfter=133]="stopRenderingLineAfter",t[t.suggest=134]="suggest",t[t.suggestFontSize=135]="suggestFontSize",t[t.suggestLineHeight=136]="suggestLineHeight",t[t.suggestOnTriggerCharacters=137]="suggestOnTriggerCharacters",t[t.suggestSelection=138]="suggestSelection",t[t.tabCompletion=139]="tabCompletion",t[t.tabIndex=140]="tabIndex",t[t.trimWhitespaceOnDelete=141]="trimWhitespaceOnDelete",t[t.unicodeHighlighting=142]="unicodeHighlighting",t[t.unusualLineTerminators=143]="unusualLineTerminators",t[t.useShadowDOM=144]="useShadowDOM",t[t.useTabStops=145]="useTabStops",t[t.wordBreak=146]="wordBreak",t[t.wordSegmenterLocales=147]="wordSegmenterLocales",t[t.wordSeparators=148]="wordSeparators",t[t.wordWrap=149]="wordWrap",t[t.wordWrapBreakAfterCharacters=150]="wordWrapBreakAfterCharacters",t[t.wordWrapBreakBeforeCharacters=151]="wordWrapBreakBeforeCharacters",t[t.wordWrapColumn=152]="wordWrapColumn",t[t.wordWrapOverride1=153]="wordWrapOverride1",t[t.wordWrapOverride2=154]="wordWrapOverride2",t[t.wrappingIndent=155]="wrappingIndent",t[t.wrappingStrategy=156]="wrappingStrategy",t[t.showDeprecated=157]="showDeprecated",t[t.inertialScroll=158]="inertialScroll",t[t.inlayHints=159]="inlayHints",t[t.wrapOnEscapedLineFeeds=160]="wrapOnEscapedLineFeeds",t[t.effectiveCursorStyle=161]="effectiveCursorStyle",t[t.editorClassName=162]="editorClassName",t[t.pixelRatio=163]="pixelRatio",t[t.tabFocusMode=164]="tabFocusMode",t[t.layoutInfo=165]="layoutInfo",t[t.wrappingInfo=166]="wrappingInfo",t[t.defaultColorDecorators=167]="defaultColorDecorators",t[t.colorDecoratorsActivatedOn=168]="colorDecoratorsActivatedOn",t[t.inlineCompletionsAccessibilityVerbose=169]="inlineCompletionsAccessibilityVerbose",t[t.effectiveEditContext=170]="effectiveEditContext",t[t.scrollOnMiddleClick=171]="scrollOnMiddleClick",t[t.effectiveAllowVariableFonts=172]="effectiveAllowVariableFonts"})(Ma||(Ma={}));var za;(function(t){t[t.TextDefined=0]="TextDefined",t[t.LF=1]="LF",t[t.CRLF=2]="CRLF"})(za||(za={}));var Pa;(function(t){t[t.LF=0]="LF",t[t.CRLF=1]="CRLF"})(Pa||(Pa={}));var Ta;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=3]="Right"})(Ta||(Ta={}));var Oa;(function(t){t[t.Increase=0]="Increase",t[t.Decrease=1]="Decrease"})(Oa||(Oa={}));var Wa;(function(t){t[t.None=0]="None",t[t.Indent=1]="Indent",t[t.IndentOutdent=2]="IndentOutdent",t[t.Outdent=3]="Outdent"})(Wa||(Wa={}));var Va;(function(t){t[t.Both=0]="Both",t[t.Right=1]="Right",t[t.Left=2]="Left",t[t.None=3]="None"})(Va||(Va={}));var $a;(function(t){t[t.Type=1]="Type",t[t.Parameter=2]="Parameter"})($a||($a={}));var Ua;(function(t){t[t.Accepted=0]="Accepted",t[t.Rejected=1]="Rejected",t[t.Ignored=2]="Ignored"})(Ua||(Ua={}));var Ba;(function(t){t[t.Code=1]="Code",t[t.Label=2]="Label"})(Ba||(Ba={}));var qa;(function(t){t[t.Automatic=0]="Automatic",t[t.Explicit=1]="Explicit"})(qa||(qa={}));var di;(function(t){t[t.DependsOnKbLayout=-1]="DependsOnKbLayout",t[t.Unknown=0]="Unknown",t[t.Backspace=1]="Backspace",t[t.Tab=2]="Tab",t[t.Enter=3]="Enter",t[t.Shift=4]="Shift",t[t.Ctrl=5]="Ctrl",t[t.Alt=6]="Alt",t[t.PauseBreak=7]="PauseBreak",t[t.CapsLock=8]="CapsLock",t[t.Escape=9]="Escape",t[t.Space=10]="Space",t[t.PageUp=11]="PageUp",t[t.PageDown=12]="PageDown",t[t.End=13]="End",t[t.Home=14]="Home",t[t.LeftArrow=15]="LeftArrow",t[t.UpArrow=16]="UpArrow",t[t.RightArrow=17]="RightArrow",t[t.DownArrow=18]="DownArrow",t[t.Insert=19]="Insert",t[t.Delete=20]="Delete",t[t.Digit0=21]="Digit0",t[t.Digit1=22]="Digit1",t[t.Digit2=23]="Digit2",t[t.Digit3=24]="Digit3",t[t.Digit4=25]="Digit4",t[t.Digit5=26]="Digit5",t[t.Digit6=27]="Digit6",t[t.Digit7=28]="Digit7",t[t.Digit8=29]="Digit8",t[t.Digit9=30]="Digit9",t[t.KeyA=31]="KeyA",t[t.KeyB=32]="KeyB",t[t.KeyC=33]="KeyC",t[t.KeyD=34]="KeyD",t[t.KeyE=35]="KeyE",t[t.KeyF=36]="KeyF",t[t.KeyG=37]="KeyG",t[t.KeyH=38]="KeyH",t[t.KeyI=39]="KeyI",t[t.KeyJ=40]="KeyJ",t[t.KeyK=41]="KeyK",t[t.KeyL=42]="KeyL",t[t.KeyM=43]="KeyM",t[t.KeyN=44]="KeyN",t[t.KeyO=45]="KeyO",t[t.KeyP=46]="KeyP",t[t.KeyQ=47]="KeyQ",t[t.KeyR=48]="KeyR",t[t.KeyS=49]="KeyS",t[t.KeyT=50]="KeyT",t[t.KeyU=51]="KeyU",t[t.KeyV=52]="KeyV",t[t.KeyW=53]="KeyW",t[t.KeyX=54]="KeyX",t[t.KeyY=55]="KeyY",t[t.KeyZ=56]="KeyZ",t[t.Meta=57]="Meta",t[t.ContextMenu=58]="ContextMenu",t[t.F1=59]="F1",t[t.F2=60]="F2",t[t.F3=61]="F3",t[t.F4=62]="F4",t[t.F5=63]="F5",t[t.F6=64]="F6",t[t.F7=65]="F7",t[t.F8=66]="F8",t[t.F9=67]="F9",t[t.F10=68]="F10",t[t.F11=69]="F11",t[t.F12=70]="F12",t[t.F13=71]="F13",t[t.F14=72]="F14",t[t.F15=73]="F15",t[t.F16=74]="F16",t[t.F17=75]="F17",t[t.F18=76]="F18",t[t.F19=77]="F19",t[t.F20=78]="F20",t[t.F21=79]="F21",t[t.F22=80]="F22",t[t.F23=81]="F23",t[t.F24=82]="F24",t[t.NumLock=83]="NumLock",t[t.ScrollLock=84]="ScrollLock",t[t.Semicolon=85]="Semicolon",t[t.Equal=86]="Equal",t[t.Comma=87]="Comma",t[t.Minus=88]="Minus",t[t.Period=89]="Period",t[t.Slash=90]="Slash",t[t.Backquote=91]="Backquote",t[t.BracketLeft=92]="BracketLeft",t[t.Backslash=93]="Backslash",t[t.BracketRight=94]="BracketRight",t[t.Quote=95]="Quote",t[t.OEM_8=96]="OEM_8",t[t.IntlBackslash=97]="IntlBackslash",t[t.Numpad0=98]="Numpad0",t[t.Numpad1=99]="Numpad1",t[t.Numpad2=100]="Numpad2",t[t.Numpad3=101]="Numpad3",t[t.Numpad4=102]="Numpad4",t[t.Numpad5=103]="Numpad5",t[t.Numpad6=104]="Numpad6",t[t.Numpad7=105]="Numpad7",t[t.Numpad8=106]="Numpad8",t[t.Numpad9=107]="Numpad9",t[t.NumpadMultiply=108]="NumpadMultiply",t[t.NumpadAdd=109]="NumpadAdd",t[t.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",t[t.NumpadSubtract=111]="NumpadSubtract",t[t.NumpadDecimal=112]="NumpadDecimal",t[t.NumpadDivide=113]="NumpadDivide",t[t.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",t[t.ABNT_C1=115]="ABNT_C1",t[t.ABNT_C2=116]="ABNT_C2",t[t.AudioVolumeMute=117]="AudioVolumeMute",t[t.AudioVolumeUp=118]="AudioVolumeUp",t[t.AudioVolumeDown=119]="AudioVolumeDown",t[t.BrowserSearch=120]="BrowserSearch",t[t.BrowserHome=121]="BrowserHome",t[t.BrowserBack=122]="BrowserBack",t[t.BrowserForward=123]="BrowserForward",t[t.MediaTrackNext=124]="MediaTrackNext",t[t.MediaTrackPrevious=125]="MediaTrackPrevious",t[t.MediaStop=126]="MediaStop",t[t.MediaPlayPause=127]="MediaPlayPause",t[t.LaunchMediaPlayer=128]="LaunchMediaPlayer",t[t.LaunchMail=129]="LaunchMail",t[t.LaunchApp2=130]="LaunchApp2",t[t.Clear=131]="Clear",t[t.MAX_VALUE=132]="MAX_VALUE"})(di||(di={}));var ui;(function(t){t[t.Hint=1]="Hint",t[t.Info=2]="Info",t[t.Warning=4]="Warning",t[t.Error=8]="Error"})(ui||(ui={}));var pi;(function(t){t[t.Unnecessary=1]="Unnecessary",t[t.Deprecated=2]="Deprecated"})(pi||(pi={}));var ja;(function(t){t[t.Inline=1]="Inline",t[t.Gutter=2]="Gutter"})(ja||(ja={}));var Ha;(function(t){t[t.Normal=1]="Normal",t[t.Underlined=2]="Underlined"})(Ha||(Ha={}));var Ga;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.TEXTAREA=1]="TEXTAREA",t[t.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",t[t.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",t[t.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",t[t.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",t[t.CONTENT_TEXT=6]="CONTENT_TEXT",t[t.CONTENT_EMPTY=7]="CONTENT_EMPTY",t[t.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",t[t.CONTENT_WIDGET=9]="CONTENT_WIDGET",t[t.OVERVIEW_RULER=10]="OVERVIEW_RULER",t[t.SCROLLBAR=11]="SCROLLBAR",t[t.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",t[t.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(Ga||(Ga={}));var Ja;(function(t){t[t.AIGenerated=1]="AIGenerated"})(Ja||(Ja={}));var Xa;(function(t){t[t.Invoke=0]="Invoke",t[t.Automatic=1]="Automatic"})(Xa||(Xa={}));var Ya;(function(t){t[t.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",t[t.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",t[t.TOP_CENTER=2]="TOP_CENTER"})(Ya||(Ya={}));var Qa;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=4]="Right",t[t.Full=7]="Full"})(Qa||(Qa={}));var Ka;(function(t){t[t.Word=0]="Word",t[t.Line=1]="Line",t[t.Suggest=2]="Suggest"})(Ka||(Ka={}));var Za;(function(t){t[t.Left=0]="Left",t[t.Right=1]="Right",t[t.None=2]="None",t[t.LeftOfInjectedText=3]="LeftOfInjectedText",t[t.RightOfInjectedText=4]="RightOfInjectedText"})(Za||(Za={}));var eo;(function(t){t[t.Off=0]="Off",t[t.On=1]="On",t[t.Relative=2]="Relative",t[t.Interval=3]="Interval",t[t.Custom=4]="Custom"})(eo||(eo={}));var to;(function(t){t[t.None=0]="None",t[t.Text=1]="Text",t[t.Blocks=2]="Blocks"})(to||(to={}));var no;(function(t){t[t.Smooth=0]="Smooth",t[t.Immediate=1]="Immediate"})(no||(no={}));var ro;(function(t){t[t.Auto=1]="Auto",t[t.Hidden=2]="Hidden",t[t.Visible=3]="Visible"})(ro||(ro={}));var mi;(function(t){t[t.LTR=0]="LTR",t[t.RTL=1]="RTL"})(mi||(mi={}));var io;(function(t){t.Off="off",t.OnCode="onCode",t.On="on"})(io||(io={}));var so;(function(t){t[t.Invoke=1]="Invoke",t[t.TriggerCharacter=2]="TriggerCharacter",t[t.ContentChange=3]="ContentChange"})(so||(so={}));var ao;(function(t){t[t.File=0]="File",t[t.Module=1]="Module",t[t.Namespace=2]="Namespace",t[t.Package=3]="Package",t[t.Class=4]="Class",t[t.Method=5]="Method",t[t.Property=6]="Property",t[t.Field=7]="Field",t[t.Constructor=8]="Constructor",t[t.Enum=9]="Enum",t[t.Interface=10]="Interface",t[t.Function=11]="Function",t[t.Variable=12]="Variable",t[t.Constant=13]="Constant",t[t.String=14]="String",t[t.Number=15]="Number",t[t.Boolean=16]="Boolean",t[t.Array=17]="Array",t[t.Object=18]="Object",t[t.Key=19]="Key",t[t.Null=20]="Null",t[t.EnumMember=21]="EnumMember",t[t.Struct=22]="Struct",t[t.Event=23]="Event",t[t.Operator=24]="Operator",t[t.TypeParameter=25]="TypeParameter"})(ao||(ao={}));var oo;(function(t){t[t.Deprecated=1]="Deprecated"})(oo||(oo={}));var lo;(function(t){t[t.LTR=0]="LTR",t[t.RTL=1]="RTL"})(lo||(lo={}));var co;(function(t){t[t.Hidden=0]="Hidden",t[t.Blink=1]="Blink",t[t.Smooth=2]="Smooth",t[t.Phase=3]="Phase",t[t.Expand=4]="Expand",t[t.Solid=5]="Solid"})(co||(co={}));var ho;(function(t){t[t.Line=1]="Line",t[t.Block=2]="Block",t[t.Underline=3]="Underline",t[t.LineThin=4]="LineThin",t[t.BlockOutline=5]="BlockOutline",t[t.UnderlineThin=6]="UnderlineThin"})(ho||(ho={}));var uo;(function(t){t[t.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",t[t.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",t[t.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",t[t.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(uo||(uo={}));var po;(function(t){t[t.None=0]="None",t[t.Same=1]="Same",t[t.Indent=2]="Indent",t[t.DeepIndent=3]="DeepIndent"})(po||(po={}));const cn=class cn{static chord(e,n){return ld(e,n)}};cn.CtrlCmd=2048,cn.Shift=1024,cn.Alt=512,cn.WinCtrl=256;let fi=cn;function Ld(){return{editor:void 0,languages:void 0,CancellationTokenSource:id,Emitter:Ue,KeyCode:di,KeyMod:fi,Position:re,Range:J,Selection:Re,SelectionDirection:mi,MarkerSeverity:ui,MarkerTag:pi,Uri:li,Token:Dd}}var mo;class Ad{constructor(){this[mo]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,n=0){const r=this._map.get(e);if(r)return n!==0&&this.touch(r,n),r.value}set(e,n,r=0){let i=this._map.get(e);if(i)i.value=n,r!==0&&this.touch(i,r);else{switch(i={key:e,value:n,next:void 0,previous:void 0},r){case 0:this.addItemLast(i);break;case 1:this.addItemFirst(i);break;case 2:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const n=this._map.get(e);if(n)return this._map.delete(e),this.removeItem(n),this._size--,n.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,n){const r=this._state;let i=this._head;for(;i;){if(n?e.bind(n)(i.value,i.key,this):e(i.value,i.key,this),this._state!==r)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){const e=this,n=this._state;let r=this._head;const i={[Symbol.iterator](){return i},next(){if(e._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){const s={value:r.key,done:!1};return r=r.next,s}else return{value:void 0,done:!0}}};return i}values(){const e=this,n=this._state;let r=this._head;const i={[Symbol.iterator](){return i},next(){if(e._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){const s={value:r.value,done:!1};return r=r.next,s}else return{value:void 0,done:!0}}};return i}entries(){const e=this,n=this._state;let r=this._head;const i={[Symbol.iterator](){return i},next(){if(e._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){const s={value:[r.key,r.value],done:!1};return r=r.next,s}else return{value:void 0,done:!0}}};return i}[(mo=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let n=this._head,r=this.size;for(;n&&r>e;)this._map.delete(n.key),n=n.next,r--;this._head=n,this._size=r,n&&(n.previous=void 0),this._state++}trimNew(e){if(e>=this.size)return;if(e===0){this.clear();return}let n=this._tail,r=this.size;for(;n&&r>e;)this._map.delete(n.key),n=n.previous,r--;this._tail=n,this._size=r,n&&(n.next=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw new Error("Invalid list");this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw new Error("Invalid list");this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const n=e.next,r=e.previous;if(!n||!r)throw new Error("Invalid list");n.previous=r,r.next=n}e.next=void 0,e.previous=void 0,this._state++}touch(e,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(n!==1&&n!==2)){if(n===1){if(e===this._head)return;const r=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(r.previous=i,i.next=r),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(n===2){if(e===this._tail)return;const r=e.next,i=e.previous;e===this._head?(r.previous=void 0,this._head=r):(r.previous=i,i.next=r),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){const e=[];return this.forEach((n,r)=>{e.push([r,n])}),e}fromJSON(e){this.clear();for(const[n,r]of e)this.set(n,r)}}class Md extends Ad{constructor(e,n=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,n),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,n=2){return super.get(e,n)}peek(e){return super.get(e,0)}set(e,n){return super.set(e,n,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}}class zd extends Md{constructor(e,n=1){super(e,n)}trim(e){this.trimOld(e)}set(e,n){return super.set(e,n),this.checkTrim(),this}}class Pd{constructor(){this.map=new Map}add(e,n){let r=this.map.get(e);r||(r=new Set,this.map.set(e,r)),r.add(n)}delete(e,n){const r=this.map.get(e);r&&(r.delete(n),r.size===0&&this.map.delete(e))}forEach(e,n){const r=this.map.get(e);r&&r.forEach(n)}}new zd(10);var fo;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=4]="Right",t[t.Full=7]="Full"})(fo||(fo={}));var go;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=3]="Right"})(go||(go={}));var bo;(function(t){t[t.LTR=0]="LTR",t[t.RTL=1]="RTL"})(bo||(bo={}));var wo;(function(t){t[t.Both=0]="Both",t[t.Right=1]="Right",t[t.Left=2]="Left",t[t.None=3]="None"})(wo||(wo={}));function Td(t){if(!t||t.length===0)return!1;for(let e=0,n=t.length;e=n)break;const i=t.charCodeAt(e);if(i===110||i===114||i===87)return!0}}return!1}function Od(t,e,n,r,i){if(r===0)return!0;const s=e.charCodeAt(r-1);if(t.get(s)!==0||s===13||s===10)return!0;if(i>0){const a=e.charCodeAt(r);if(t.get(a)!==0)return!0}return!1}function Wd(t,e,n,r,i){if(r+i===n)return!0;const s=e.charCodeAt(r+i);if(t.get(s)!==0||s===13||s===10)return!0;if(i>0){const a=e.charCodeAt(r+i-1);if(t.get(a)!==0)return!0}return!1}function Vd(t,e,n,r,i){return Od(t,e,n,r,i)&&Wd(t,e,n,r,i)}class $d{constructor(e,n){this._wordSeparators=e,this._searchRegex=n,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const n=e.length;let r;do{if(this._prevMatchStartIndex+this._prevMatchLength===n||(r=this._searchRegex.exec(e),!r))return null;const i=r.index,s=r[0].length;if(i===this._prevMatchStartIndex&&s===this._prevMatchLength){if(s===0){Vh(e,n,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=i,this._prevMatchLength=s,!this._wordSeparators||Vd(this._wordSeparators,e,n,i,s))return r}while(r);return null}}const Ud="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function Bd(t=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const n of Ud)t.indexOf(n)>=0||(e+="\\"+n);return e+="\\s]+)",new RegExp(e,"g")}const vo=Bd();function yo(t){let e=vo;if(t&&t instanceof RegExp)if(t.global)e=t;else{let n="g";t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),e=new RegExp(t.source,n)}return e.lastIndex=0,e}const xo=new mh;xo.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function gi(t,e,n,r,i){if(e=yo(e),i||(i=Hn.first(xo)),n.length>i.maxLen){let c=t-i.maxLen/2;return c<0?c=0:r+=c,n=n.substring(c,t+i.maxLen/2),gi(t,e,n,r,i)}const s=Date.now(),a=t-1-r;let o=-1,l=null;for(let c=1;!(Date.now()-s>=i.timeBudget);c++){const d=a-i.windowSize*c;e.lastIndex=Math.max(0,d);const u=qd(e,n,a,o);if(!u&&l||(l=u,d<=0))break;o=d}if(l){const c={word:l[0],startColumn:r+1+l.index,endColumn:r+1+l.index+l[0].length};return e.lastIndex=0,c}return null}function qd(t,e,n,r){let i;for(;i=t.exec(e);){const s=i.index||0;if(s<=n&&t.lastIndex>=n)return i;if(r>0&&s>r)return null}return null}class jd{static computeUnicodeHighlights(e,n,r){const i=r?r.startLineNumber:1,s=r?r.endLineNumber:e.getLineCount(),a=new So(n),o=a.getCandidateCodePoints();let l;o==="allNonBasicAscii"?l=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):l=new RegExp(`${Hd(Array.from(o))}`,"g");const c=new $d(null,l),d=[];let u=!1,m,f=0,g=0,b=0;e:for(let _=i,F=s;_<=F;_++){const N=e.getLineContent(_),E=N.length;c.reset(0);do if(m=c.next(N),m){let T=m.index,O=m.index+m[0].length;if(T>0){const z=N.charCodeAt(T-1);Kr(z)&&T--}if(O+1=1e3){u=!0;break e}d.push(new J(_,T+1,_,O+1))}}while(m)}return{ranges:d,hasMore:u,ambiguousCharacterCount:f,invisibleCharacterCount:g,nonBasicAsciiCharacterCount:b}}static computeUnicodeHighlightReason(e,n){const r=new So(n);switch(r.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const s=e.codePointAt(0),a=r.ambiguousCharacters.getPrimaryConfusable(s),o=fn.getLocales().filter(l=>!fn.getInstance(new Set([...n.allowedLocales,l])).isAmbiguous(s));return{kind:0,confusableWith:String.fromCodePoint(a),notAmbiguousInLocales:o}}case 1:return{kind:2}}}}function Hd(t,e){return`[${Dh(t.map(r=>String.fromCodePoint(r)).join(""))}]`}class So{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=fn.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const n of gn.codePoints)Co(String.fromCodePoint(n))||e.add(n);if(this.options.ambiguousCharacters)for(const n of this.ambiguousCharacters.getConfusableCodePoints())e.add(n);for(const n of this.allowedCodePoints)e.delete(n);return e}shouldHighlightNonBasicASCII(e,n){const r=e.codePointAt(0);if(this.allowedCodePoints.has(r))return 0;if(this.options.nonBasicASCII)return 1;let i=!1,s=!1;if(n)for(const a of n){const o=a.codePointAt(0),l=Uh(a);i=i||l,!l&&!this.ambiguousCharacters.isAmbiguous(o)&&!gn.isInvisibleCharacter(o)&&(s=!0)}return!i&&s?0:this.options.invisibleCharacters&&!Co(e)&&gn.isInvisibleCharacter(r)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(r)?3:0}}function Co(t){return t===" "||t===` -`||t===" "}class rr{constructor(e,n,r){this.changes=e,this.moves=n,this.hitTimeout=r}}class Gd{constructor(e,n){this.lineRangeMapping=e,this.changes=n}}function Jd(t,e,n=(r,i)=>r===i){if(t===e)return!0;if(!t||!e||t.length!==e.length)return!1;for(let r=0,i=t.length;r0}t.isGreaterThan=r;function i(s){return s===0}t.isNeitherLessOrGreaterThan=i,t.greaterThan=1,t.lessThan=-1,t.neitherLessOrGreaterThan=0})(bi||(bi={}));function wn(t,e){return(n,r)=>e(t(n),t(r))}const vn=(t,e)=>t-e;function Zd(t){return(e,n)=>-t(e,n)}const hn=class hn{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate(n=>(e.push(n),!0)),e}filter(e){return new hn(n=>this.iterate(r=>e(r)?n(r):!0))}map(e){return new hn(n=>this.iterate(r=>n(e(r))))}findLast(e){let n;return this.iterate(r=>(e(r)&&(n=r),!0)),n}findLastMaxBy(e){let n,r=!0;return this.iterate(i=>((r||bi.isGreaterThan(e(i,n)))&&(r=!1,n=i),!0)),n}};hn.empty=new hn(e=>{});let ko=hn;class Y{static fromTo(e,n){return new Y(e,n)}static addRange(e,n){let r=0;for(;rn))return new Y(e,n)}static ofLength(e){return new Y(0,e)}static ofStartAndLength(e,n){return new Y(e,e+n)}static emptyAt(e){return new Y(e,e)}constructor(e,n){if(this.start=e,this.endExclusive=n,e>n)throw new be(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new Y(this.start+e,this.endExclusive+e)}deltaStart(e){return new Y(this.start+e,this.endExclusive)}deltaEnd(e){return new Y(this.start,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}equals(e){return this.start===e.start&&this.endExclusive===e.endExclusive}contains(e){return this.start<=e&&e=e.endExclusive}slice(e){return e.slice(this.start,this.endExclusive)}substring(e){return e.substring(this.start,this.endExclusive)}clip(e){if(this.isEmpty)throw new be(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,e))}clipCyclic(e){if(this.isEmpty)throw new be(`Invalid clipping range: ${this.toString()}`);return e=this.endExclusive?this.start+(e-this.start)%this.length:e}forEach(e){for(let n=this.start;nn)throw new be(`startLineNumber ${e} cannot be after endLineNumberExclusive ${n}`);this.startLineNumber=e,this.endLineNumberExclusive=n}contains(e){return this.startLineNumber<=e&&ee.startLineNumber,vn);let Z=De;class qe{constructor(e=[]){this._normalizedRanges=e}get ranges(){return this._normalizedRanges}addRange(e){if(e.length===0)return;const n=wi(this._normalizedRanges,i=>i.endLineNumberExclusive>=e.startLineNumber),r=Ut(this._normalizedRanges,i=>i.startLineNumber<=e.endLineNumberExclusive)+1;if(n===r)this._normalizedRanges.splice(n,0,e);else if(n===r-1){const i=this._normalizedRanges[n];this._normalizedRanges[n]=i.join(e)}else{const i=this._normalizedRanges[n].join(this._normalizedRanges[r-1]).join(e);this._normalizedRanges.splice(n,r-n,i)}}contains(e){const n=$t(this._normalizedRanges,r=>r.startLineNumber<=e);return!!n&&n.endLineNumberExclusive>e}intersects(e){const n=$t(this._normalizedRanges,r=>r.startLineNumbere.startLineNumber}getUnion(e){if(this._normalizedRanges.length===0)return e;if(e._normalizedRanges.length===0)return this;const n=[];let r=0,i=0,s=null;for(;r=a.startLineNumber?s=new Z(s.startLineNumber,Math.max(s.endLineNumberExclusive,a.endLineNumberExclusive)):(n.push(s),s=a)}return s!==null&&n.push(s),new qe(n)}subtractFrom(e){const n=wi(this._normalizedRanges,a=>a.endLineNumberExclusive>=e.startLineNumber),r=Ut(this._normalizedRanges,a=>a.startLineNumber<=e.endLineNumberExclusive)+1;if(n===r)return new qe([e]);const i=[];let s=e.startLineNumber;for(let a=n;as&&i.push(new Z(s,o.startLineNumber)),s=o.endLineNumberExclusive}return se.toString()).join(", ")}getIntersection(e){const n=[];let r=0,i=0;for(;rn.delta(e)))}}const $e=class $e{static betweenPositions(e,n){return e.lineNumber===n.lineNumber?new $e(0,n.column-e.column):new $e(n.lineNumber-e.lineNumber,n.column-1)}static fromPosition(e){return new $e(e.lineNumber-1,e.column-1)}static ofRange(e){return $e.betweenPositions(e.getStartPosition(),e.getEndPosition())}static ofText(e){let n=0,r=0;for(const i of e)i===` -`?(n++,r=0):r++;return new $e(n,r)}constructor(e,n){this.lineCount=e,this.columnCount=n}isGreaterThanOrEqualTo(e){return this.lineCount!==e.lineCount?this.lineCount>e.lineCount:this.columnCount>=e.columnCount}add(e){return e.lineCount===0?new $e(this.lineCount,this.columnCount+e.columnCount):new $e(this.lineCount+e.lineCount,e.columnCount)}createRange(e){return this.lineCount===0?new J(e.lineNumber,e.column,e.lineNumber,e.column+this.columnCount):new J(e.lineNumber,e.column,e.lineNumber+this.lineCount,this.columnCount+1)}toRange(){return new J(1,1,this.lineCount+1,this.columnCount+1)}toLineRange(){return Z.ofLength(1,this.lineCount+1)}addToPosition(e){return this.lineCount===0?new re(e.lineNumber,e.column+this.columnCount):new re(e.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}};$e.zero=new $e(0,0);let yn=$e;class tu{getOffsetRange(e){return new Y(this.getOffset(e.getStartPosition()),this.getOffset(e.getEndPosition()))}getRange(e){return J.fromPositions(this.getPosition(e.start),this.getPosition(e.endExclusive))}getStringReplacement(e){return new Bt.deps.StringReplacement(this.getOffsetRange(e.range),e.text)}getTextReplacement(e){return new Bt.deps.TextReplacement(this.getRange(e.replaceRange),e.newText)}getTextEdit(e){const n=e.replacements.map(r=>this.getTextReplacement(r));return new Bt.deps.TextEdit(n)}}const zs=class zs{static get deps(){if(!this._deps)throw new Error("Dependencies not set. Call _setDependencies first.");return this._deps}};zs._deps=void 0;let Bt=zs;class nu extends tu{constructor(e){super(),this.text=e,this.lineStartOffsetByLineIdx=[],this.lineEndOffsetByLineIdx=[],this.lineStartOffsetByLineIdx.push(0);for(let n=0;n0&&e.charAt(n-1)==="\r"?this.lineEndOffsetByLineIdx.push(n-1):this.lineEndOffsetByLineIdx.push(n));this.lineEndOffsetByLineIdx.push(e.length)}getOffset(e){const n=this._validatePosition(e);return this.lineStartOffsetByLineIdx[n.lineNumber-1]+n.column-1}_validatePosition(e){if(e.lineNumber<1)return new re(1,1);const n=this.textLength.lineCount+1;if(e.lineNumber>n){const i=this.getLineLength(n);return new re(n,i+1)}if(e.column<1)return new re(e.lineNumber,1);const r=this.getLineLength(e.lineNumber);return e.column-1>r?new re(e.lineNumber,r+1):e}getPosition(e){const n=Ut(this.lineStartOffsetByLineIdx,s=>s<=e),r=n+1,i=e-this.lineStartOffsetByLineIdx[n]+1;return new re(r,i)}get textLength(){const e=this.lineStartOffsetByLineIdx.length-1;return new Bt.deps.TextLength(e,this.text.length-this.lineStartOffsetByLineIdx[e])}getLineLength(e){return this.lineEndOffsetByLineIdx[e-1]-this.lineStartOffsetByLineIdx[e-1]}}class ru{constructor(){this._transformer=void 0}get endPositionExclusive(){return this.length.addToPosition(new re(1,1))}get lineRange(){return this.length.toLineRange()}getValue(){return this.getValueOfRange(this.length.toRange())}getValueOfOffsetRange(e){return this.getValueOfRange(this.getTransformer().getRange(e))}getLineLength(e){return this.getValueOfRange(new J(e,1,e,Number.MAX_SAFE_INTEGER)).length}getTransformer(){return this._transformer||(this._transformer=new nu(this.getValue())),this._transformer}getLineAt(e){return this.getValueOfRange(new J(e,1,e,Number.MAX_SAFE_INTEGER))}}class iu extends ru{constructor(e,n){ch(n>=1),super(),this._getLineContent=e,this._lineCount=n}getValueOfRange(e){if(e.startLineNumber===e.endLineNumber)return this._getLineContent(e.startLineNumber).substring(e.startColumn-1,e.endColumn-1);let n=this._getLineContent(e.startLineNumber).substring(e.startColumn-1);for(let r=e.startLineNumber+1;re[n-1],e.length)}}class mt{static joinReplacements(e,n){if(e.length===0)throw new be;if(e.length===1)return e[0];const r=e[0].range.getStartPosition(),i=e[e.length-1].range.getEndPosition();let s="";for(let a=0;a ${n.lineNumber},${n.column}): "${this.text}"`}}class Le{static inverse(e,n,r){const i=[];let s=1,a=1;for(const l of e){const c=new Le(new Z(s,l.original.startLineNumber),new Z(a,l.modified.startLineNumber));c.modified.isEmpty||i.push(c),s=l.original.endLineNumberExclusive,a=l.modified.endLineNumberExclusive}const o=new Le(new Z(s,n+1),new Z(a,r+1));return o.modified.isEmpty||i.push(o),i}static clip(e,n,r){const i=[];for(const s of e){const a=s.original.intersect(n),o=s.modified.intersect(r);a&&!a.isEmpty&&o&&!o.isEmpty&&i.push(new Le(a,o))}return i}constructor(e,n){this.original=e,this.modified=n}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new Le(this.modified,this.original)}join(e){return new Le(this.original.join(e.original),this.modified.join(e.modified))}toRangeMapping(){const e=this.original.toInclusiveRange(),n=this.modified.toInclusiveRange();if(e&&n)return new Ae(e,n);if(this.original.startLineNumber===1||this.modified.startLineNumber===1){if(!(this.modified.startLineNumber===1&&this.original.startLineNumber===1))throw new be("not a valid diff");return new Ae(new J(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new J(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}else return new Ae(new J(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new J(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}toRangeMapping2(e,n){if(_o(this.original.endLineNumberExclusive,e)&&_o(this.modified.endLineNumberExclusive,n))return new Ae(new J(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new J(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1));if(!this.original.isEmpty&&!this.modified.isEmpty)return new Ae(J.fromPositions(new re(this.original.startLineNumber,1),qt(new re(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),J.fromPositions(new re(this.modified.startLineNumber,1),qt(new re(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),n)));if(this.original.startLineNumber>1&&this.modified.startLineNumber>1)return new Ae(J.fromPositions(qt(new re(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER),e),qt(new re(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),J.fromPositions(qt(new re(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER),n),qt(new re(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),n)));throw new be}}function qt(t,e){if(t.lineNumber<1)return new re(1,1);if(t.lineNumber>e.length)return new re(e.length,e[e.length-1].length+1);const n=e[t.lineNumber-1];return t.column>n.length+1?new re(t.lineNumber,n.length+1):t}function _o(t,e){return t>=1&&t<=e.length}class et extends Le{static fromRangeMappings(e){const n=Z.join(e.map(i=>Z.fromRangeInclusive(i.originalRange))),r=Z.join(e.map(i=>Z.fromRangeInclusive(i.modifiedRange)));return new et(n,r,e)}constructor(e,n,r){super(e,n),this.innerChanges=r}flip(){return new et(this.modified,this.original,this.innerChanges?.map(e=>e.flip()))}withInnerChangesFromLineRanges(){return new et(this.original,this.modified,[this.toRangeMapping()])}}class Ae{static fromEdit(e){const n=e.getNewRanges();return e.replacements.map((i,s)=>new Ae(i.range,n[s]))}static assertSorted(e){for(let n=1;n${this.modifiedRange.toString()}}`}flip(){return new Ae(this.modifiedRange,this.originalRange)}toTextEdit(e){const n=e.getValueOfRange(this.modifiedRange);return new mt(this.originalRange,n)}}function Eo(t,e,n,r=!1){const i=[];for(const s of Xd(t.map(a=>su(a,e,n)),(a,o)=>a.original.intersectsOrTouches(o.original)||a.modified.intersectsOrTouches(o.modified))){const a=s[0],o=s[s.length-1];i.push(new et(a.original.join(o.original),a.modified.join(o.modified),s.map(l=>l.innerChanges[0])))}return jn(()=>!r&&i.length>0&&(i[0].modified.startLineNumber!==i[0].original.startLineNumber||n.length.lineCount-i[i.length-1].modified.endLineNumberExclusive!==e.length.lineCount-i[i.length-1].original.endLineNumberExclusive)?!1:Ws(i,(s,a)=>a.original.startLineNumber-s.original.endLineNumberExclusive===a.modified.startLineNumber-s.modified.endLineNumberExclusive&&s.original.endLineNumberExclusive=n.getLineLength(t.modifiedRange.startLineNumber)&&t.originalRange.startColumn-1>=e.getLineLength(t.originalRange.startLineNumber)&&t.originalRange.startLineNumber<=t.originalRange.endLineNumber+i&&t.modifiedRange.startLineNumber<=t.modifiedRange.endLineNumber+i&&(r=1);const s=new Z(t.originalRange.startLineNumber+r,t.originalRange.endLineNumber+1+i),a=new Z(t.modifiedRange.startLineNumber+r,t.modifiedRange.endLineNumber+1+i);return new et(s,a,[t])}const au=3;class ou{computeDiff(e,n,r){const s=new hu(e,n,{maxComputationTime:r.maxComputationTimeMs,shouldIgnoreTrimWhitespace:r.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),a=[];let o=null;for(const l of s.changes){let c;l.originalEndLineNumber===0?c=new Z(l.originalStartLineNumber+1,l.originalStartLineNumber+1):c=new Z(l.originalStartLineNumber,l.originalEndLineNumber+1);let d;l.modifiedEndLineNumber===0?d=new Z(l.modifiedStartLineNumber+1,l.modifiedStartLineNumber+1):d=new Z(l.modifiedStartLineNumber,l.modifiedEndLineNumber+1);let u=new et(c,d,l.charChanges?.map(m=>new Ae(new J(m.originalStartLineNumber,m.originalStartColumn,m.originalEndLineNumber,m.originalEndColumn),new J(m.modifiedStartLineNumber,m.modifiedStartColumn,m.modifiedEndLineNumber,m.modifiedEndColumn))));o&&(o.modified.endLineNumberExclusive===u.modified.startLineNumber||o.original.endLineNumberExclusive===u.original.startLineNumber)&&(u=new et(o.original.join(u.original),o.modified.join(u.modified),o.innerChanges&&u.innerChanges?o.innerChanges.concat(u.innerChanges):void 0),a.pop()),a.push(u),o=u}return jn(()=>Ws(a,(l,c)=>c.original.startLineNumber-l.original.endLineNumberExclusive===c.modified.startLineNumber-l.modified.endLineNumberExclusive&&l.original.endLineNumberExclusive(e===10?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[n]},${this._columns[n]})`).join(", ")+"]"}_assertIndex(e,n){if(e<0||e>=n.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}getEndLineNumber(e){return e===-1?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),this._charCodes[e]===10?this._lineNumbers[e]+1:this._lineNumbers[e])}getStartColumn(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}getEndColumn(e){return e===-1?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),this._charCodes[e]===10?1:this._columns[e]+1)}}class jt{constructor(e,n,r,i,s,a,o,l){this.originalStartLineNumber=e,this.originalStartColumn=n,this.originalEndLineNumber=r,this.originalEndColumn=i,this.modifiedStartLineNumber=s,this.modifiedStartColumn=a,this.modifiedEndLineNumber=o,this.modifiedEndColumn=l}static createFromDiffChange(e,n,r){const i=n.getStartLineNumber(e.originalStart),s=n.getStartColumn(e.originalStart),a=n.getEndLineNumber(e.originalStart+e.originalLength-1),o=n.getEndColumn(e.originalStart+e.originalLength-1),l=r.getStartLineNumber(e.modifiedStart),c=r.getStartColumn(e.modifiedStart),d=r.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),u=r.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new jt(i,s,a,o,l,c,d,u)}}function cu(t){if(t.length<=1)return t;const e=[t[0]];let n=e[0];for(let r=1,i=t.length;r0&&n.originalLength<20&&n.modifiedLength>0&&n.modifiedLength<20&&s()){const f=r.createCharSequence(e,n.originalStart,n.originalStart+n.originalLength-1),g=i.createCharSequence(e,n.modifiedStart,n.modifiedStart+n.modifiedLength-1);if(f.getElements().length>0&&g.getElements().length>0){let b=Fo(f,g,s,!0).changes;o&&(b=cu(b)),m=[];for(let _=0,F=b.length;_1&&b>1;){const _=m.charCodeAt(g-2),F=f.charCodeAt(b-2);if(_!==F)break;g--,b--}(g>1||b>1)&&this._pushTrimWhitespaceCharChange(i,s+1,1,g,a+1,1,b)}{let g=yi(m,1),b=yi(f,1);const _=m.length+1,F=f.length+1;for(;g<_&&b!0;const e=Date.now();return()=>Date.now()-e{r.push(ce.fromOffsetPairs(i?i.getEndExclusives():nt.zero,s?s.getStarts():new nt(n,(i?i.seq2Range.endExclusive-i.seq1Range.endExclusive:0)+n)))}),r}static fromOffsetPairs(e,n){return new ce(new Y(e.offset1,n.offset1),new Y(e.offset2,n.offset2))}static assertSorted(e){let n;for(const r of e){if(n&&!(n.seq1Range.endExclusive<=r.seq1Range.start&&n.seq2Range.endExclusive<=r.seq2Range.start))throw new be("Sequence diffs must be sorted");n=r}}constructor(e,n){this.seq1Range=e,this.seq2Range=n}swap(){return new ce(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(e){return new ce(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return e===0?this:new ce(this.seq1Range.delta(e),this.seq2Range.delta(e))}deltaStart(e){return e===0?this:new ce(this.seq1Range.deltaStart(e),this.seq2Range.deltaStart(e))}deltaEnd(e){return e===0?this:new ce(this.seq1Range.deltaEnd(e),this.seq2Range.deltaEnd(e))}intersect(e){const n=this.seq1Range.intersect(e.seq1Range),r=this.seq2Range.intersect(e.seq2Range);if(!(!n||!r))return new ce(n,r)}getStarts(){return new nt(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new nt(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}const Dt=class Dt{constructor(e,n){this.offset1=e,this.offset2=n}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(e){return e===0?this:new Dt(this.offset1+e,this.offset2+e)}equals(e){return this.offset1===e.offset1&&this.offset2===e.offset2}};Dt.zero=new Dt(0,0),Dt.max=new Dt(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);let nt=Dt;const Or=class Or{isValid(){return!0}};Or.instance=new Or;let Sn=Or;class du{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new be("timeout must be positive")}isValid(){return!(Date.now()-this.startTime0&&b>0&&a.get(g-1,b-1)===3&&(N+=o.get(g-1,b-1)),N+=i?i(g,b):1):N=-1;const E=Math.max(_,F,N);if(E===N){const T=g>0&&b>0?o.get(g-1,b-1):0;o.set(g,b,T+1),a.set(g,b,3)}else E===_?(o.set(g,b,0),a.set(g,b,1)):E===F&&(o.set(g,b,0),a.set(g,b,2));s.set(g,b,E)}const l=[];let c=e.length,d=n.length;function u(g,b){(g+1!==c||b+1!==d)&&l.push(new ce(new Y(g+1,c),new Y(b+1,d))),c=g,d=b}let m=e.length-1,f=n.length-1;for(;m>=0&&f>=0;)a.get(m,f)===3?(u(m,f),m--,f--):a.get(m,f)===1?m--:f--;return u(-1,-1),l.reverse(),new tt(l,!1)}}class Io{compute(e,n,r=Sn.instance){if(e.length===0||n.length===0)return tt.trivial(e,n);const i=e,s=n;function a(b,_){for(;bi.length||T>s.length)continue;const O=a(E,T);l.set(d,O);const V=E===F?c.get(d+1):c.get(d-1);if(c.set(d,O!==E?new Do(V,E,T,O-E):V),l.get(d)===i.length&&l.get(d)-d===s.length)break e}}let u=c.get(d);const m=[];let f=i.length,g=s.length;for(;;){const b=u?u.x+u.length:0,_=u?u.y+u.length:0;if((b!==f||_!==g)&&m.push(new ce(new Y(b,f),new Y(_,g))),!u)break;f=u.x,g=u.y,u=u.prev}return m.reverse(),new tt(m,!1)}}class Do{constructor(e,n,r,i){this.prev=e,this.x=n,this.y=r,this.length=i}}class pu{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,n){if(e<0){if(e=-e-1,e>=this.negativeArr.length){const r=this.negativeArr;this.negativeArr=new Int32Array(r.length*2),this.negativeArr.set(r)}this.negativeArr[e]=n}else{if(e>=this.positiveArr.length){const r=this.positiveArr;this.positiveArr=new Int32Array(r.length*2),this.positiveArr.set(r)}this.positiveArr[e]=n}}}class mu{constructor(){this.positiveArr=[],this.negativeArr=[]}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,n){e<0?(e=-e-1,this.negativeArr[e]=n):this.positiveArr[e]=n}}class or{constructor(e,n,r){this.lines=e,this.range=n,this.considerWhitespaceChanges=r,this.elements=[],this.firstElementOffsetByLineIdx=[],this.lineStartOffsets=[],this.trimmedWsLengthsByLineIdx=[],this.firstElementOffsetByLineIdx.push(0);for(let i=this.range.startLineNumber;i<=this.range.endLineNumber;i++){let s=e[i-1],a=0;i===this.range.startLineNumber&&this.range.startColumn>1&&(a=this.range.startColumn-1,s=s.substring(a)),this.lineStartOffsets.push(a);let o=0;if(!r){const c=s.trimStart();o=s.length-c.length,s=c.trimEnd()}this.trimmedWsLengthsByLineIdx.push(o);const l=i===this.range.endLineNumber?Math.min(this.range.endColumn-1-a-o,s.length):s.length;for(let c=0;cString.fromCharCode(n)).join("")}getElement(e){return this.elements[e]}get length(){return this.elements.length}getBoundaryScore(e){const n=Mo(e>0?this.elements[e-1]:-1),r=Mo(es<=e),i=e-this.firstElementOffsetByLineIdx[r];return new re(this.range.startLineNumber+r,1+this.lineStartOffsets[r]+i+(i===0&&n==="left"?0:this.trimmedWsLengthsByLineIdx[r]))}translateRange(e){const n=this.translateOffset(e.start,"right"),r=this.translateOffset(e.endExclusive,"left");return r.isBefore(n)?J.fromPositions(r,r):J.fromPositions(n,r)}findWordContaining(e){if(e<0||e>=this.elements.length||!Ht(this.elements[e]))return;let n=e;for(;n>0&&Ht(this.elements[n-1]);)n--;let r=e;for(;r=this.elements.length||!Ht(this.elements[e]))return;let n=e;for(;n>0&&Ht(this.elements[n-1])&&!Lo(this.elements[n]);)n--;let r=e;for(;ri<=e.start)??0,r=eu(this.firstElementOffsetByLineIdx,i=>e.endExclusive<=i)??this.elements.length;return new Y(n,r)}}function Ht(t){return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57}function Lo(t){return t>=65&&t<=90}const fu={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function Ao(t){return fu[t]}function Mo(t){return t===10?8:t===13?7:Si(t)?6:t>=97&&t<=122?0:t>=65&&t<=90?1:t>=48&&t<=57?2:t===-1?3:t===44||t===59?5:4}function gu(t,e,n,r,i,s){let{moves:a,excludedChanges:o}=wu(t,e,n,s);if(!s.isValid())return[];const l=t.filter(d=>!o.has(d)),c=vu(l,r,i,e,n,s);return Kd(a,c),a=yu(a),a=a.filter(d=>{const u=d.original.toOffsetRange().slice(e).map(f=>f.trim());return u.join(` -`).length>=15&&bu(u,f=>f.length>=2)>=2}),a=xu(t,a),a}function bu(t,e){let n=0;for(const r of t)e(r)&&n++;return n}function wu(t,e,n,r){const i=[],s=t.filter(l=>l.modified.isEmpty&&l.original.length>=3).map(l=>new ar(l.original,e,l)),a=new Set(t.filter(l=>l.original.isEmpty&&l.modified.length>=3).map(l=>new ar(l.modified,n,l))),o=new Set;for(const l of s){let c=-1,d;for(const u of a){const m=l.computeSimilarity(u);m>c&&(c=m,d=u)}if(c>.9&&d&&(a.delete(d),i.push(new Le(l.range,d.range)),o.add(l.source),o.add(d.source)),!r.isValid())return{moves:i,excludedChanges:o}}return{moves:i,excludedChanges:o}}function vu(t,e,n,r,i,s){const a=[],o=new Pd;for(const m of t)for(let f=m.original.startLineNumber;fm.modified.startLineNumber,vn));for(const m of t){let f=[];for(let g=m.modified.startLineNumber;g{for(const T of f)if(T.originalLineRange.endLineNumberExclusive+1===N.endLineNumberExclusive&&T.modifiedLineRange.endLineNumberExclusive+1===_.endLineNumberExclusive){T.originalLineRange=new Z(T.originalLineRange.startLineNumber,N.endLineNumberExclusive),T.modifiedLineRange=new Z(T.modifiedLineRange.startLineNumber,_.endLineNumberExclusive),F.push(T);return}const E={modifiedLineRange:_,originalLineRange:N};l.push(E),F.push(E)}),f=F}if(!s.isValid())return[]}l.sort(Zd(wn(m=>m.modifiedLineRange.length,vn)));const c=new qe,d=new qe;for(const m of l){const f=m.modifiedLineRange.startLineNumber-m.originalLineRange.startLineNumber,g=c.subtractFrom(m.modifiedLineRange),b=d.subtractFrom(m.originalLineRange).getWithDelta(f),_=g.getIntersection(b);for(const F of _.ranges){if(F.length<3)continue;const N=F,E=F.delta(-f);a.push(new Le(E,N)),c.addRange(N),d.addRange(E)}}a.sort(wn(m=>m.original.startLineNumber,vn));const u=new ir(t);for(let m=0;mV.original.startLineNumber<=f.original.startLineNumber),b=$t(t,V=>V.modified.startLineNumber<=f.modified.startLineNumber),_=Math.max(f.original.startLineNumber-g.original.startLineNumber,f.modified.startLineNumber-b.modified.startLineNumber),F=u.findLastMonotonous(V=>V.original.startLineNumberV.modified.startLineNumberr.length||I>i.length||c.contains(I)||d.contains(V)||!zo(r[V-1],i[I-1],s))break}T>0&&(d.addRange(new Z(f.original.startLineNumber-T,f.original.startLineNumber)),c.addRange(new Z(f.modified.startLineNumber-T,f.modified.startLineNumber)));let O;for(O=0;Or.length||I>i.length||c.contains(I)||d.contains(V)||!zo(r[V-1],i[I-1],s))break}O>0&&(d.addRange(new Z(f.original.endLineNumberExclusive,f.original.endLineNumberExclusive+O)),c.addRange(new Z(f.modified.endLineNumberExclusive,f.modified.endLineNumberExclusive+O))),(T>0||O>0)&&(a[m]=new Le(new Z(f.original.startLineNumber-T,f.original.endLineNumberExclusive+O),new Z(f.modified.startLineNumber-T,f.modified.endLineNumberExclusive+O)))}return a}function zo(t,e,n){if(t.trim()===e.trim())return!0;if(t.length>300&&e.length>300)return!1;const i=new Io().compute(new or([t],new J(1,1,1,t.length),!1),new or([e],new J(1,1,1,e.length),!1),n);let s=0;const a=ce.invert(i.diffs,t.length);for(const d of a)d.seq1Range.forEach(u=>{Si(t.charCodeAt(u))||s++});function o(d){let u=0;for(let m=0;me.length?t:e);return s/l>.6&&l>10}function yu(t){if(t.length===0)return t;t.sort(wn(n=>n.original.startLineNumber,vn));const e=[t[0]];for(let n=1;n=0&&a>=0&&s+a<=2){e[e.length-1]=r.join(i);continue}e.push(i)}return e}function xu(t,e){const n=new ir(t);return e=e.filter(r=>{const i=n.findLastMonotonous(o=>o.original.startLineNumbero.modified.startLineNumber0&&(o=o.delta(c))}i.push(o)}return r.length>0&&i.push(r[r.length-1]),i}function Su(t,e,n){if(!t.getBoundaryScore||!e.getBoundaryScore)return n;for(let r=0;r0?n[r-1]:void 0,s=n[r],a=r+1=r.start&&t.seq2Range.start-a>=i.start&&n.isStronglyEqual(t.seq2Range.start-a,t.seq2Range.endExclusive-a)&&a<100;)a++;a--;let o=0;for(;t.seq1Range.start+oc&&(c=g,l=d)}return t.delta(l)}function Cu(t,e,n){const r=[];for(const i of n){const s=r[r.length-1];if(!s){r.push(i);continue}i.seq1Range.start-s.seq1Range.endExclusive<=2||i.seq2Range.start-s.seq2Range.endExclusive<=2?r[r.length-1]=new ce(s.seq1Range.join(i.seq1Range),s.seq2Range.join(i.seq2Range)):r.push(i)}return r}function Wo(t,e,n,r,i=!1){const s=ce.invert(n,t.length),a=[];let o=new nt(0,0);function l(d,u){if(d.offset10;){const N=s[0];if(!(N.seq1Range.intersects(g.seq1Range)||N.seq2Range.intersects(g.seq2Range)))break;const T=r(t,N.seq1Range.start),O=r(e,N.seq2Range.start),V=new ce(T,O),I=V.intersect(N);if(_+=I.seq1Range.length,F+=I.seq2Range.length,g=g.join(V),g.seq1Range.endExclusive>=N.seq1Range.endExclusive)s.shift();else break}(i&&_+F0;){const d=s.shift();d.seq1Range.isEmpty||(l(d.getStarts(),d),l(d.getEndExclusives().delta(-1),d))}return ku(n,a)}function ku(t,e){const n=[];for(;t.length>0||e.length>0;){const r=t[0],i=e[0];let s;r&&(!i||r.seq1Range.start0&&n[n.length-1].seq1Range.endExclusive>=s.seq1Range.start?n[n.length-1]=n[n.length-1].join(s):n.push(s)}return n}function _u(t,e,n){let r=n;if(r.length===0)return r;let i=0,s;do{s=!1;const a=[r[0]];for(let o=1;o5||f.seq1Range.length+f.seq2Range.length>5)};const l=r[o],c=a[a.length-1];d(c,l)?(s=!0,a[a.length-1]=a[a.length-1].join(l)):a.push(l)}r=a}while(i++<10&&s);return r}function Eu(t,e,n){let r=n;if(r.length===0)return r;let i=0,s;do{s=!1;const o=[r[0]];for(let l=1;l5||b.length>500)return!1;const F=t.getText(b).trim();if(F.length>20||F.split(/\r\n|\r|\n/).length>1)return!1;const N=t.countLinesIn(f.seq1Range),E=f.seq1Range.length,T=e.countLinesIn(f.seq2Range),O=f.seq2Range.length,V=t.countLinesIn(g.seq1Range),I=g.seq1Range.length,R=e.countLinesIn(g.seq2Range),z=g.seq2Range.length,$=130;function L(y){return Math.min(y,$)}return Math.pow(Math.pow(L(N*40+E),1.5)+Math.pow(L(T*40+O),1.5),1.5)+Math.pow(Math.pow(L(V*40+I),1.5)+Math.pow(L(R*40+z),1.5),1.5)>($**1.5)**1.5*1.3};const c=r[l],d=o[o.length-1];u(d,c)?(s=!0,o[o.length-1]=o[o.length-1].join(c)):o.push(c)}r=o}while(i++<10&&s);const a=[];return Qd(r,(o,l,c)=>{let d=l;function u(F){return F.length>0&&F.trim().length<=3&&l.seq1Range.length+l.seq2Range.length>100}const m=t.extendToFullLines(l.seq1Range),f=t.getText(new Y(m.start,l.seq1Range.start));u(f)&&(d=d.deltaStart(-f.length));const g=t.getText(new Y(l.seq1Range.endExclusive,m.endExclusive));u(g)&&(d=d.deltaEnd(g.length));const b=ce.fromOffsetPairs(o?o.getEndExclusives():nt.zero,c?c.getStarts():nt.max),_=d.intersect(b);a.length>0&&_.getStarts().equals(a[a.length-1].getEndExclusives())?a[a.length-1]=a[a.length-1].join(_):a.push(_)}),a}class Vo{constructor(e,n){this.trimmedHash=e,this.lines=n}getElement(e){return this.trimmedHash[e]}get length(){return this.trimmedHash.length}getBoundaryScore(e){const n=e===0?0:$o(this.lines[e-1]),r=e===this.lines.length?0:$o(this.lines[e]);return 1e3-(n+r)}getText(e){return this.lines.slice(e.start,e.endExclusive).join(` -`)}isStronglyEqual(e,n){return this.lines[e]===this.lines[n]}}function $o(t){let e=0;for(;eI===R))return new rr([],[],!1);if(e.length===1&&e[0].length===0||n.length===1&&n[0].length===0)return new rr([new et(new Z(1,e.length+1),new Z(1,n.length+1),[new Ae(new J(1,1,e.length,e[e.length-1].length+1),new J(1,1,n.length,n[n.length-1].length+1))])],[],!1);const i=r.maxComputationTimeMs===0?Sn.instance:new du(r.maxComputationTimeMs),s=!r.ignoreTrimWhitespace,a=new Map;function o(I){let R=a.get(I);return R===void 0&&(R=a.size,a.set(I,R)),R}const l=e.map(I=>o(I.trim())),c=n.map(I=>o(I.trim())),d=new Vo(l,e),u=new Vo(c,n),m=d.length+u.length<1700?this.dynamicProgrammingDiffing.compute(d,u,i,(I,R)=>e[I]===n[R]?n[R].length===0?.1:1+Math.log(1+n[R].length):.99):this.myersDiffingAlgorithm.compute(d,u,i);let f=m.diffs,g=m.hitTimeout;f=Po(d,u,f),f=_u(d,u,f);const b=[],_=I=>{if(s)for(let R=0;RI.seq1Range.start-F===I.seq2Range.start-N);const R=I.seq1Range.start-F;_(R),F=I.seq1Range.endExclusive,N=I.seq2Range.endExclusive;const z=this.refineDiff(e,n,I,i,s,r);z.hitTimeout&&(g=!0);for(const $ of z.mappings)b.push($)}_(e.length-F);const E=new sr(e),T=new sr(n),O=Eo(b,E,T);let V=[];return r.computeMoves&&(V=this.computeMoves(O,e,n,l,c,i,s,r)),jn(()=>{function I(z,$){if(z.lineNumber<1||z.lineNumber>$.length)return!1;const L=$[z.lineNumber-1];return!(z.column<1||z.column>L.length+1)}function R(z,$){return!(z.startLineNumber<1||z.startLineNumber>$.length+1||z.endLineNumberExclusive<1||z.endLineNumberExclusive>$.length+1)}for(const z of O){if(!z.innerChanges)return!1;for(const $ of z.innerChanges)if(!(I($.modifiedRange.getStartPosition(),n)&&I($.modifiedRange.getEndPosition(),n)&&I($.originalRange.getStartPosition(),e)&&I($.originalRange.getEndPosition(),e)))return!1;if(!R(z.modified,n)||!R(z.original,e))return!1}return!0}),new rr(O,V,g)}computeMoves(e,n,r,i,s,a,o,l){return gu(e,n,r,i,s,a).map(u=>{const m=this.refineDiff(n,r,new ce(u.original.toOffsetRange(),u.modified.toOffsetRange()),a,o,l),f=Eo(m.mappings,new sr(n),new sr(r),!0);return new Gd(u,f)})}refineDiff(e,n,r,i,s,a){const l=Ru(r).toRangeMapping2(e,n),c=new or(e,l.originalRange,s),d=new or(n,l.modifiedRange,s),u=c.length+d.length<500?this.dynamicProgrammingDiffing.compute(c,d,i):this.myersDiffingAlgorithm.compute(c,d,i);let m=u.diffs;return m=Po(c,d,m),m=Wo(c,d,m,(g,b)=>g.findWordContaining(b)),a.extendToSubwords&&(m=Wo(c,d,m,(g,b)=>g.findSubWordContaining(b),!0)),m=Cu(c,d,m),m=Eu(c,d,m),{mappings:m.map(g=>new Ae(c.translateRange(g.seq1Range),d.translateRange(g.seq2Range))),hitTimeout:u.hitTimeout}}}function Ru(t){return new Le(new Z(t.seq1Range.start+1,t.seq1Range.endExclusive+1),new Z(t.seq2Range.start+1,t.seq2Range.endExclusive+1))}const Uo={getLegacy:()=>new ou,getDefault:()=>new Fu};function ft(t,e){const n=Math.pow(10,e);return Math.round(t*n)/n}class x{constructor(e,n,r,i=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,e))|0,this.g=Math.min(255,Math.max(0,n))|0,this.b=Math.min(255,Math.max(0,r))|0,this.a=ft(Math.max(Math.min(1,i),0),3)}static equals(e,n){return e.r===n.r&&e.g===n.g&&e.b===n.b&&e.a===n.a}}class Me{constructor(e,n,r,i){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,e),0)|0,this.s=ft(Math.max(Math.min(1,n),0),3),this.l=ft(Math.max(Math.min(1,r),0),3),this.a=ft(Math.max(Math.min(1,i),0),3)}static equals(e,n){return e.h===n.h&&e.s===n.s&&e.l===n.l&&e.a===n.a}static fromRGBA(e){const n=e.r/255,r=e.g/255,i=e.b/255,s=e.a,a=Math.max(n,r,i),o=Math.min(n,r,i);let l=0,c=0;const d=(o+a)/2,u=a-o;if(u>0){switch(c=Math.min(d<=.5?u/(2*d):u/(2-2*d),1),a){case n:l=(r-i)/u+(r1&&(r-=1),r<1/6?e+(n-e)*6*r:r<1/2?n:r<2/3?e+(n-e)*(2/3-r)*6:e}static toRGBA(e){const n=e.h/360,{s:r,l:i,a:s}=e;let a,o,l;if(r===0)a=o=l=i;else{const c=i<.5?i*(1+r):i+r-i*r,d=2*i-c;a=Me._hue2rgb(d,c,n+1/3),o=Me._hue2rgb(d,c,n),l=Me._hue2rgb(d,c,n-1/3)}return new x(Math.round(a*255),Math.round(o*255),Math.round(l*255),s)}}class Gt{constructor(e,n,r,i){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,e),0)|0,this.s=ft(Math.max(Math.min(1,n),0),3),this.v=ft(Math.max(Math.min(1,r),0),3),this.a=ft(Math.max(Math.min(1,i),0),3)}static equals(e,n){return e.h===n.h&&e.s===n.s&&e.v===n.v&&e.a===n.a}static fromRGBA(e){const n=e.r/255,r=e.g/255,i=e.b/255,s=Math.max(n,r,i),a=Math.min(n,r,i),o=s-a,l=s===0?0:o/s;let c;return o===0?c=0:s===n?c=((r-i)/o%6+6)%6:s===r?c=(i-n)/o+2:c=(n-r)/o+4,new Gt(Math.round(c*60),l,s,e.a)}static toRGBA(e){const{h:n,s:r,v:i,a:s}=e,a=i*r,o=a*(1-Math.abs(n/60%2-1)),l=i-a;let[c,d,u]=[0,0,0];return n<60?(c=a,d=o):n<120?(c=o,d=a):n<180?(d=a,u=o):n<240?(d=o,u=a):n<300?(c=o,u=a):n<=360&&(c=a,u=o),c=Math.round((c+l)*255),d=Math.round((d+l)*255),u=Math.round((u+l)*255),new x(c,d,u,s)}}let lr=(ne=class{static fromHex(e){return ne.Format.CSS.parseHex(e)||ne.red}static equals(e,n){return!e&&!n?!0:!e||!n?!1:e.equals(n)}get hsla(){return this._hsla?this._hsla:Me.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:Gt.fromRGBA(this.rgba)}constructor(e){if(e)if(e instanceof x)this.rgba=e;else if(e instanceof Me)this._hsla=e,this.rgba=Me.toRGBA(e);else if(e instanceof Gt)this._hsva=e,this.rgba=Gt.toRGBA(e);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(e){return!!e&&x.equals(this.rgba,e.rgba)&&Me.equals(this.hsla,e.hsla)&&Gt.equals(this.hsva,e.hsva)}getRelativeLuminance(){const e=ne._relativeLuminanceForComponent(this.rgba.r),n=ne._relativeLuminanceForComponent(this.rgba.g),r=ne._relativeLuminanceForComponent(this.rgba.b),i=.2126*e+.7152*n+.0722*r;return ft(i,4)}static _relativeLuminanceForComponent(e){const n=e/255;return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(e){const n=this.getRelativeLuminance(),r=e.getRelativeLuminance();return n>r}isDarkerThan(e){const n=this.getRelativeLuminance(),r=e.getRelativeLuminance();return n>>0),this._toNumber32Bit}static getLighterColor(e,n,r){if(e.isLighterThan(n))return e;r=r||.5;const i=e.getRelativeLuminance(),s=n.getRelativeLuminance();return r=r*(s-i)/s,e.lighten(r)}static getDarkerColor(e,n,r){if(e.isDarkerThan(n))return e;r=r||.5;const i=e.getRelativeLuminance(),s=n.getRelativeLuminance();return r=r*(i-s)/i,e.darken(r)}},ne.white=new ne(new x(255,255,255,1)),ne.black=new ne(new x(0,0,0,1)),ne.red=new ne(new x(255,0,0,1)),ne.blue=new ne(new x(0,0,255,1)),ne.green=new ne(new x(0,255,0,1)),ne.cyan=new ne(new x(0,255,255,1)),ne.lightgrey=new ne(new x(211,211,211,1)),ne.transparent=new ne(new x(0,0,0,0)),ne);(function(t){(function(e){(function(n){function r(b){return b.rgba.a===1?`rgb(${b.rgba.r}, ${b.rgba.g}, ${b.rgba.b})`:t.Format.CSS.formatRGBA(b)}n.formatRGB=r;function i(b){return`rgba(${b.rgba.r}, ${b.rgba.g}, ${b.rgba.b}, ${+b.rgba.a.toFixed(2)})`}n.formatRGBA=i;function s(b){return b.hsla.a===1?`hsl(${b.hsla.h}, ${Math.round(b.hsla.s*100)}%, ${Math.round(b.hsla.l*100)}%)`:t.Format.CSS.formatHSLA(b)}n.formatHSL=s;function a(b){return`hsla(${b.hsla.h}, ${Math.round(b.hsla.s*100)}%, ${Math.round(b.hsla.l*100)}%, ${b.hsla.a.toFixed(2)})`}n.formatHSLA=a;function o(b){const _=b.toString(16);return _.length!==2?"0"+_:_}function l(b){return`#${o(b.rgba.r)}${o(b.rgba.g)}${o(b.rgba.b)}`}n.formatHex=l;function c(b,_=!1){return _&&b.rgba.a===1?t.Format.CSS.formatHex(b):`#${o(b.rgba.r)}${o(b.rgba.g)}${o(b.rgba.b)}${o(Math.round(b.rgba.a*255))}`}n.formatHexA=c;function d(b){return b.isOpaque()?t.Format.CSS.formatHex(b):t.Format.CSS.formatRGBA(b)}n.format=d;function u(b){if(b==="transparent")return t.transparent;if(b.startsWith("#"))return f(b);if(b.startsWith("rgba(")){const _=b.match(/rgba\((?(?:\+|-)?\d+), *(?(?:\+|-)?\d+), *(?(?:\+|-)?\d+), *(?(?:\+|-)?\d+(\.\d+)?)\)/);if(!_)throw new Error("Invalid color format "+b);const F=parseInt(_.groups?.r??"0"),N=parseInt(_.groups?.g??"0"),E=parseInt(_.groups?.b??"0"),T=parseFloat(_.groups?.a??"0");return new t(new x(F,N,E,T))}if(b.startsWith("rgb(")){const _=b.match(/rgb\((?(?:\+|-)?\d+), *(?(?:\+|-)?\d+), *(?(?:\+|-)?\d+)\)/);if(!_)throw new Error("Invalid color format "+b);const F=parseInt(_.groups?.r??"0"),N=parseInt(_.groups?.g??"0"),E=parseInt(_.groups?.b??"0");return new t(new x(F,N,E))}return m(b)}n.parse=u;function m(b){switch(b){case"aliceblue":return new t(new x(240,248,255,1));case"antiquewhite":return new t(new x(250,235,215,1));case"aqua":return new t(new x(0,255,255,1));case"aquamarine":return new t(new x(127,255,212,1));case"azure":return new t(new x(240,255,255,1));case"beige":return new t(new x(245,245,220,1));case"bisque":return new t(new x(255,228,196,1));case"black":return new t(new x(0,0,0,1));case"blanchedalmond":return new t(new x(255,235,205,1));case"blue":return new t(new x(0,0,255,1));case"blueviolet":return new t(new x(138,43,226,1));case"brown":return new t(new x(165,42,42,1));case"burlywood":return new t(new x(222,184,135,1));case"cadetblue":return new t(new x(95,158,160,1));case"chartreuse":return new t(new x(127,255,0,1));case"chocolate":return new t(new x(210,105,30,1));case"coral":return new t(new x(255,127,80,1));case"cornflowerblue":return new t(new x(100,149,237,1));case"cornsilk":return new t(new x(255,248,220,1));case"crimson":return new t(new x(220,20,60,1));case"cyan":return new t(new x(0,255,255,1));case"darkblue":return new t(new x(0,0,139,1));case"darkcyan":return new t(new x(0,139,139,1));case"darkgoldenrod":return new t(new x(184,134,11,1));case"darkgray":return new t(new x(169,169,169,1));case"darkgreen":return new t(new x(0,100,0,1));case"darkgrey":return new t(new x(169,169,169,1));case"darkkhaki":return new t(new x(189,183,107,1));case"darkmagenta":return new t(new x(139,0,139,1));case"darkolivegreen":return new t(new x(85,107,47,1));case"darkorange":return new t(new x(255,140,0,1));case"darkorchid":return new t(new x(153,50,204,1));case"darkred":return new t(new x(139,0,0,1));case"darksalmon":return new t(new x(233,150,122,1));case"darkseagreen":return new t(new x(143,188,143,1));case"darkslateblue":return new t(new x(72,61,139,1));case"darkslategray":return new t(new x(47,79,79,1));case"darkslategrey":return new t(new x(47,79,79,1));case"darkturquoise":return new t(new x(0,206,209,1));case"darkviolet":return new t(new x(148,0,211,1));case"deeppink":return new t(new x(255,20,147,1));case"deepskyblue":return new t(new x(0,191,255,1));case"dimgray":return new t(new x(105,105,105,1));case"dimgrey":return new t(new x(105,105,105,1));case"dodgerblue":return new t(new x(30,144,255,1));case"firebrick":return new t(new x(178,34,34,1));case"floralwhite":return new t(new x(255,250,240,1));case"forestgreen":return new t(new x(34,139,34,1));case"fuchsia":return new t(new x(255,0,255,1));case"gainsboro":return new t(new x(220,220,220,1));case"ghostwhite":return new t(new x(248,248,255,1));case"gold":return new t(new x(255,215,0,1));case"goldenrod":return new t(new x(218,165,32,1));case"gray":return new t(new x(128,128,128,1));case"green":return new t(new x(0,128,0,1));case"greenyellow":return new t(new x(173,255,47,1));case"grey":return new t(new x(128,128,128,1));case"honeydew":return new t(new x(240,255,240,1));case"hotpink":return new t(new x(255,105,180,1));case"indianred":return new t(new x(205,92,92,1));case"indigo":return new t(new x(75,0,130,1));case"ivory":return new t(new x(255,255,240,1));case"khaki":return new t(new x(240,230,140,1));case"lavender":return new t(new x(230,230,250,1));case"lavenderblush":return new t(new x(255,240,245,1));case"lawngreen":return new t(new x(124,252,0,1));case"lemonchiffon":return new t(new x(255,250,205,1));case"lightblue":return new t(new x(173,216,230,1));case"lightcoral":return new t(new x(240,128,128,1));case"lightcyan":return new t(new x(224,255,255,1));case"lightgoldenrodyellow":return new t(new x(250,250,210,1));case"lightgray":return new t(new x(211,211,211,1));case"lightgreen":return new t(new x(144,238,144,1));case"lightgrey":return new t(new x(211,211,211,1));case"lightpink":return new t(new x(255,182,193,1));case"lightsalmon":return new t(new x(255,160,122,1));case"lightseagreen":return new t(new x(32,178,170,1));case"lightskyblue":return new t(new x(135,206,250,1));case"lightslategray":return new t(new x(119,136,153,1));case"lightslategrey":return new t(new x(119,136,153,1));case"lightsteelblue":return new t(new x(176,196,222,1));case"lightyellow":return new t(new x(255,255,224,1));case"lime":return new t(new x(0,255,0,1));case"limegreen":return new t(new x(50,205,50,1));case"linen":return new t(new x(250,240,230,1));case"magenta":return new t(new x(255,0,255,1));case"maroon":return new t(new x(128,0,0,1));case"mediumaquamarine":return new t(new x(102,205,170,1));case"mediumblue":return new t(new x(0,0,205,1));case"mediumorchid":return new t(new x(186,85,211,1));case"mediumpurple":return new t(new x(147,112,219,1));case"mediumseagreen":return new t(new x(60,179,113,1));case"mediumslateblue":return new t(new x(123,104,238,1));case"mediumspringgreen":return new t(new x(0,250,154,1));case"mediumturquoise":return new t(new x(72,209,204,1));case"mediumvioletred":return new t(new x(199,21,133,1));case"midnightblue":return new t(new x(25,25,112,1));case"mintcream":return new t(new x(245,255,250,1));case"mistyrose":return new t(new x(255,228,225,1));case"moccasin":return new t(new x(255,228,181,1));case"navajowhite":return new t(new x(255,222,173,1));case"navy":return new t(new x(0,0,128,1));case"oldlace":return new t(new x(253,245,230,1));case"olive":return new t(new x(128,128,0,1));case"olivedrab":return new t(new x(107,142,35,1));case"orange":return new t(new x(255,165,0,1));case"orangered":return new t(new x(255,69,0,1));case"orchid":return new t(new x(218,112,214,1));case"palegoldenrod":return new t(new x(238,232,170,1));case"palegreen":return new t(new x(152,251,152,1));case"paleturquoise":return new t(new x(175,238,238,1));case"palevioletred":return new t(new x(219,112,147,1));case"papayawhip":return new t(new x(255,239,213,1));case"peachpuff":return new t(new x(255,218,185,1));case"peru":return new t(new x(205,133,63,1));case"pink":return new t(new x(255,192,203,1));case"plum":return new t(new x(221,160,221,1));case"powderblue":return new t(new x(176,224,230,1));case"purple":return new t(new x(128,0,128,1));case"rebeccapurple":return new t(new x(102,51,153,1));case"red":return new t(new x(255,0,0,1));case"rosybrown":return new t(new x(188,143,143,1));case"royalblue":return new t(new x(65,105,225,1));case"saddlebrown":return new t(new x(139,69,19,1));case"salmon":return new t(new x(250,128,114,1));case"sandybrown":return new t(new x(244,164,96,1));case"seagreen":return new t(new x(46,139,87,1));case"seashell":return new t(new x(255,245,238,1));case"sienna":return new t(new x(160,82,45,1));case"silver":return new t(new x(192,192,192,1));case"skyblue":return new t(new x(135,206,235,1));case"slateblue":return new t(new x(106,90,205,1));case"slategray":return new t(new x(112,128,144,1));case"slategrey":return new t(new x(112,128,144,1));case"snow":return new t(new x(255,250,250,1));case"springgreen":return new t(new x(0,255,127,1));case"steelblue":return new t(new x(70,130,180,1));case"tan":return new t(new x(210,180,140,1));case"teal":return new t(new x(0,128,128,1));case"thistle":return new t(new x(216,191,216,1));case"tomato":return new t(new x(255,99,71,1));case"turquoise":return new t(new x(64,224,208,1));case"violet":return new t(new x(238,130,238,1));case"wheat":return new t(new x(245,222,179,1));case"white":return new t(new x(255,255,255,1));case"whitesmoke":return new t(new x(245,245,245,1));case"yellow":return new t(new x(255,255,0,1));case"yellowgreen":return new t(new x(154,205,50,1));default:return null}}function f(b){const _=b.length;if(_===0||b.charCodeAt(0)!==35)return null;if(_===7){const F=16*g(b.charCodeAt(1))+g(b.charCodeAt(2)),N=16*g(b.charCodeAt(3))+g(b.charCodeAt(4)),E=16*g(b.charCodeAt(5))+g(b.charCodeAt(6));return new t(new x(F,N,E,1))}if(_===9){const F=16*g(b.charCodeAt(1))+g(b.charCodeAt(2)),N=16*g(b.charCodeAt(3))+g(b.charCodeAt(4)),E=16*g(b.charCodeAt(5))+g(b.charCodeAt(6)),T=16*g(b.charCodeAt(7))+g(b.charCodeAt(8));return new t(new x(F,N,E,T/255))}if(_===4){const F=g(b.charCodeAt(1)),N=g(b.charCodeAt(2)),E=g(b.charCodeAt(3));return new t(new x(16*F+F,16*N+N,16*E+E))}if(_===5){const F=g(b.charCodeAt(1)),N=g(b.charCodeAt(2)),E=g(b.charCodeAt(3)),T=g(b.charCodeAt(4));return new t(new x(16*F+F,16*N+N,16*E+E,(16*T+T)/255))}return null}n.parseHex=f;function g(b){switch(b){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:return 10;case 65:return 10;case 98:return 11;case 66:return 11;case 99:return 12;case 67:return 12;case 100:return 13;case 68:return 13;case 101:return 14;case 69:return 14;case 102:return 15;case 70:return 15}return 0}})(e.CSS||(e.CSS={}))})(t.Format||(t.Format={}))})(lr||(lr={}));function Bo(t){const e=[];for(const n of t){const r=Number(n);(r||r===0&&n.replace(/\s/g,"")!=="")&&e.push(r)}return e}function Ci(t,e,n,r){return{red:t/255,blue:n/255,green:e/255,alpha:r}}function Cn(t,e){const n=e.index,r=e[0].length;if(n===void 0)return;const i=t.positionAt(n);return{startLineNumber:i.lineNumber,startColumn:i.column,endLineNumber:i.lineNumber,endColumn:i.column+r}}function Nu(t,e){if(!t)return;const n=lr.Format.CSS.parseHex(e);if(n)return{range:t,color:Ci(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}}function qo(t,e,n){if(!t||e.length!==1)return;const i=e[0].values(),s=Bo(i);return{range:t,color:Ci(s[0],s[1],s[2],n?s[3]:1)}}function jo(t,e,n){if(!t||e.length!==1)return;const i=e[0].values(),s=Bo(i),a=new lr(new Me(s[0],s[1]/100,s[2]/100,n?s[3]:1));return{range:t,color:Ci(a.rgba.r,a.rgba.g,a.rgba.b,a.rgba.a)}}function kn(t,e){return typeof t=="string"?[...t.matchAll(e)]:t.findMatches(e)}function Iu(t){const e=[],r=kn(t,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|^(#)([A-Fa-f0-9]{3})\b|^(#)([A-Fa-f0-9]{4})\b|^(#)([A-Fa-f0-9]{6})\b|^(#)([A-Fa-f0-9]{8})\b|(?<=['"\s])(#)([A-Fa-f0-9]{3})\b|(?<=['"\s])(#)([A-Fa-f0-9]{4})\b|(?<=['"\s])(#)([A-Fa-f0-9]{6})\b|(?<=['"\s])(#)([A-Fa-f0-9]{8})\b/gm);if(r.length>0)for(const i of r){const s=i.filter(c=>c!==void 0),a=s[1],o=s[2];if(!o)continue;let l;if(a==="rgb"){const c=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;l=qo(Cn(t,i),kn(o,c),!1)}else if(a==="rgba"){const c=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;l=qo(Cn(t,i),kn(o,c),!0)}else if(a==="hsl"){const c=/^\(\s*((?:360(?:\.0+)?|(?:36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])(?:\.\d+)?))\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;l=jo(Cn(t,i),kn(o,c),!1)}else if(a==="hsla"){const c=/^\(\s*((?:360(?:\.0+)?|(?:36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])(?:\.\d+)?))\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(0[.][0-9]+|[.][0-9]+|[01][.]0*|[01])\s*\)$/gm;l=jo(Cn(t,i),kn(o,c),!0)}else a==="#"&&(l=Nu(Cn(t,i),a+o));l&&e.push(l)}return e}function Du(t){return!t||typeof t.getValue!="function"||typeof t.positionAt!="function"?[]:Iu(t)}const Lu=/^-+|-+$/g,Ho=100,Au=5;function Mu(t,e){let n=[];if(e.findRegionSectionHeaders&&e.foldingRules?.markers){const r=zu(t,e);n=n.concat(r)}if(e.findMarkSectionHeaders){const r=Pu(t,e);n=n.concat(r)}return n}function zu(t,e){const n=[],r=t.getLineCount();for(let i=1;i<=r;i++){const s=t.getLineContent(i),a=s.match(e.foldingRules.markers.start);if(a){const o={startLineNumber:i,startColumn:a[0].length+1,endLineNumber:i,endColumn:s.length+1};if(o.endColumn>o.startColumn){const l={range:o,...Tu(s.substring(a[0].length)),shouldBeInComments:!1};(l.text||l.hasSeparatorLine)&&n.push(l)}}}return n}function Pu(t,e){const n=[],r=t.getLineCount();if(!e.markSectionHeaderRegex||e.markSectionHeaderRegex.trim()==="")return n;const i=Td(e.markSectionHeaderRegex),s=new RegExp(e.markSectionHeaderRegex,`gdm${i?"s":""}`);if(Lh(s))return n;for(let a=1;a<=r;a+=Ho-Au){const o=Math.min(a+Ho-1,r),l=[];for(let u=a;u<=o;u++)l.push(t.getLineContent(u));const c=l.join(` -`);s.lastIndex=0;let d;for(;(d=s.exec(c))!==null;){const u=c.substring(0,d.index),m=(u.match(/\n/g)||[]).length,f=a+m,g=d[0].split(` -`),b=g.length,_=f+b-1,F=u.lastIndexOf(` -`)+1,N=d.index-F+1,E=g[g.length-1],T=b===1?N+d[0].length:E.length+1,O={startLineNumber:f,startColumn:N,endLineNumber:_,endColumn:T},V=(d.groups??{}).label??"",I=((d.groups??{}).separator??"")!=="",R={range:O,text:V,hasSeparatorLine:I,shouldBeInComments:!0};(R.text||R.hasSeparatorLine)&&(n.length===0||n[n.length-1].range.endLineNumber{this.completeCallback=e,this.errorCallback=n})}complete(e){return this.isSettled?Promise.resolve():new Promise(n=>{this.completeCallback(e),this.outcome={outcome:0,value:e},n()})}error(e){return this.isSettled?Promise.resolve():new Promise(n=>{this.errorCallback(e),this.outcome={outcome:1,value:e},n()})}cancel(){return this.error(new Os)}}var Go;(function(t){async function e(r){let i;const s=await Promise.all(r.map(a=>a.then(o=>o,o=>{i||(i=o)})));if(typeof i<"u")throw i;return s}t.settled=e;function n(r){return new Promise(async(i,s)=>{try{await r(i,s)}catch(a){s(a)}})}t.withAsyncBody=n})(Go||(Go={}));class Wu{constructor(){this._unsatisfiedConsumers=[],this._unconsumedValues=[]}get hasFinalValue(){return!!this._finalValue}produce(e){if(this._ensureNoFinalValue(),this._unsatisfiedConsumers.length>0){const n=this._unsatisfiedConsumers.shift();this._resolveOrRejectDeferred(n,e)}else this._unconsumedValues.push(e)}produceFinal(e){this._ensureNoFinalValue(),this._finalValue=e;for(const n of this._unsatisfiedConsumers)this._resolveOrRejectDeferred(n,e);this._unsatisfiedConsumers.length=0}_ensureNoFinalValue(){if(this._finalValue)throw new be("ProducerConsumer: cannot produce after final value has been set")}_resolveOrRejectDeferred(e,n){n.ok?e.complete(n.value):e.error(n.error)}consume(){if(this._unconsumedValues.length>0||this._finalValue){const e=this._unconsumedValues.length>0?this._unconsumedValues.shift():this._finalValue;return e.ok?Promise.resolve(e.value):Promise.reject(e.error)}else{const e=new Ou;return this._unsatisfiedConsumers.push(e),e.p}}}const Fe=class Fe{constructor(e,n){this._onReturn=n,this._producerConsumer=new Wu,this._iterator={next:()=>this._producerConsumer.consume(),return:()=>(this._onReturn?.(),Promise.resolve({done:!0,value:void 0})),throw:async r=>(this._finishError(r),{done:!0,value:void 0})},queueMicrotask(async()=>{const r=e({emitOne:i=>this._producerConsumer.produce({ok:!0,value:{done:!1,value:i}}),emitMany:i=>{for(const s of i)this._producerConsumer.produce({ok:!0,value:{done:!1,value:s}})},reject:i=>this._finishError(i)});if(!this._producerConsumer.hasFinalValue)try{await r,this._finishOk()}catch(i){this._finishError(i)}})}static fromArray(e){return new Fe(n=>{n.emitMany(e)})}static fromPromise(e){return new Fe(async n=>{n.emitMany(await e)})}static fromPromisesResolveOrder(e){return new Fe(async n=>{await Promise.all(e.map(async r=>n.emitOne(await r)))})}static merge(e){return new Fe(async n=>{await Promise.all(e.map(async r=>{for await(const i of r)n.emitOne(i)}))})}static map(e,n){return new Fe(async r=>{for await(const i of e)r.emitOne(n(i))})}map(e){return Fe.map(this,e)}static coalesce(e){return Fe.filter(e,n=>!!n)}coalesce(){return Fe.coalesce(this)}static filter(e,n){return new Fe(async r=>{for await(const i of e)n(i)&&r.emitOne(i)})}filter(e){return Fe.filter(this,e)}_finishOk(){this._producerConsumer.hasFinalValue||this._producerConsumer.produceFinal({ok:!0,value:{done:!0,value:void 0}})}_finishError(e){this._producerConsumer.hasFinalValue||this._producerConsumer.produceFinal({ok:!1,error:e})}[Symbol.asyncIterator](){return this._iterator}};Fe.EMPTY=Fe.fromArray([]);let Jo=Fe;class Vu{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,n){e=Ot(e);const r=this.values,i=this.prefixSum,s=n.length;return s===0?!1:(this.values=new Uint32Array(r.length+s),this.values.set(r.subarray(0,e),0),this.values.set(r.subarray(e),e+s),this.values.set(n,e),e-1=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,n){return e=Ot(e),n=Ot(n),this.values[e]===n?!1:(this.values[e]=n,e-1=r.length)return!1;const s=r.length-e;return n>=s&&(n=s),n===0?!1:(this.values=new Uint32Array(r.length-n),this.values.set(r.subarray(0,e),0),this.values.set(r.subarray(e+n),e),this.prefixSum=new Uint32Array(this.values.length),e-1=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=Ot(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let n=this.prefixSumValidIndex[0]+1;n===0&&(this.prefixSum[0]=this.values[0],n++),e>=this.values.length&&(e=this.values.length-1);for(let r=n;r<=e;r++)this.prefixSum[r]=this.prefixSum[r-1]+this.values[r];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let n=0,r=this.values.length-1,i=0,s=0,a=0;for(;n<=r;)if(i=n+(r-n)/2|0,s=this.prefixSum[i],a=s-this.values[i],e=s)n=i+1;else break;return new $u(i,e-a)}}class $u{constructor(e,n){this.index=e,this.remainder=n,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=n}}class Uu{constructor(e,n,r,i){this._uri=e,this._lines=n,this._eol=r,this._versionId=i,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const n=e.changes;for(const r of n)this._acceptDeleteRange(r.range),this._acceptInsertText(new re(r.range.startLineNumber,r.range.startColumn),r.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,n=this._lines.length,r=new Uint32Array(n);for(let i=0;ie.push(this._models[n])),e}$acceptNewModel(e){this._models[e.url]=new qu(li.parse(e.url),e.lines,e.EOL,e.versionId)}$acceptModelChanged(e,n){if(!this._models[e])return;this._models[e].onEvents(n)}$acceptRemovedModel(e){this._models[e]&&delete this._models[e]}}class qu extends Uu{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){const n=[];for(let r=0;rthis._lines.length)n=this._lines.length,r=this._lines[n-1].length+1,i=!0;else{const s=this._lines[n-1].length+1;r<1?(r=1,i=!0):r>s&&(r=s,i=!0)}return i?{lineNumber:n,column:r}:e}}const Lt=class Lt{constructor(e=null){this._foreignModule=e,this._requestHandlerBrand=void 0,this._workerTextModelSyncServer=new Bu}dispose(){}async $ping(){return"pong"}_getModel(e){return this._workerTextModelSyncServer.getModel(e)}getModels(){return this._workerTextModelSyncServer.getModels()}$acceptNewModel(e){this._workerTextModelSyncServer.$acceptNewModel(e)}$acceptModelChanged(e,n){this._workerTextModelSyncServer.$acceptModelChanged(e,n)}$acceptRemovedModel(e){this._workerTextModelSyncServer.$acceptRemovedModel(e)}async $computeUnicodeHighlights(e,n,r){const i=this._getModel(e);return i?jd.computeUnicodeHighlights(i,n,r):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async $findSectionHeaders(e,n){const r=this._getModel(e);return r?Mu(r,n):[]}async $computeDiff(e,n,r,i){const s=this._getModel(e),a=this._getModel(n);return!s||!a?null:Lt.computeDiff(s,a,r,i)}static computeDiff(e,n,r,i){const s=i==="advanced"?Uo.getDefault():Uo.getLegacy(),a=e.getLinesContent(),o=n.getLinesContent(),l=s.computeDiff(a,o,r),c=l.changes.length>0?!1:this._modelsAreIdentical(e,n);function d(u){return u.map(m=>[m.original.startLineNumber,m.original.endLineNumberExclusive,m.modified.startLineNumber,m.modified.endLineNumberExclusive,m.innerChanges?.map(f=>[f.originalRange.startLineNumber,f.originalRange.startColumn,f.originalRange.endLineNumber,f.originalRange.endColumn,f.modifiedRange.startLineNumber,f.modifiedRange.startColumn,f.modifiedRange.endLineNumber,f.modifiedRange.endColumn])])}return{identical:c,quitEarly:l.hitTimeout,changes:d(l.changes),moves:l.moves.map(u=>[u.lineRangeMapping.original.startLineNumber,u.lineRangeMapping.original.endLineNumberExclusive,u.lineRangeMapping.modified.startLineNumber,u.lineRangeMapping.modified.endLineNumberExclusive,d(u.changes)])}}static _modelsAreIdentical(e,n){const r=e.getLineCount(),i=n.getLineCount();if(r!==i)return!1;for(let s=1;s<=r;s++){const a=e.getLineContent(s),o=n.getLineContent(s);if(a!==o)return!1}return!0}async $computeMoreMinimalEdits(e,n,r){const i=this._getModel(e);if(!i)return n;const s=[];let a;n=n.slice(0).sort((l,c)=>{if(l.range&&c.range)return J.compareRangesUsingStarts(l.range,c.range);const d=l.range?0:1,u=c.range?0:1;return d-u});let o=0;for(let l=1;lLt._diffLimit){s.push({range:l,text:c});continue}const m=Kh(u,c,r),f=i.offsetAt(J.lift(l).getStartPosition());for(const g of m){const b=i.positionAt(f+g.originalStart),_=i.positionAt(f+g.originalStart+g.originalLength),F={text:c.substr(g.modifiedStart,g.modifiedLength),range:{startLineNumber:b.lineNumber,startColumn:b.column,endLineNumber:_.lineNumber,endColumn:_.column}};i.getValueInRange(F.range)!==F.text&&s.push(F)}}return typeof a=="number"&&s.push({eol:a,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),s}async $computeLinks(e){const n=this._getModel(e);return n?rd(n):null}async $computeDefaultDocumentColors(e){const n=this._getModel(e);return n?Du(n):null}async $textualSuggest(e,n,r,i){const s=new Jn,a=new RegExp(r,i),o=new Set;e:for(const l of e){const c=this._getModel(l);if(c){for(const d of c.words(a))if(!(d===n||!isNaN(Number(d)))&&(o.add(d),o.size>Lt._suggestionsLimit))break e}}return{words:Array.from(o),duration:s.elapsed()}}async $computeWordRanges(e,n,r,i){const s=this._getModel(e);if(!s)return Object.create(null);const a=new RegExp(r,i),o=Object.create(null);for(let l=n.startLineNumber;l{const i=_i.getChannel(r),a={host:new Proxy({},{get(o,l,c){if(l!=="then"){if(typeof l!="string")throw new Error("Not supported");return(...d)=>i.$fhr(l,d)}}}),getMirrorModels:()=>n.requestHandler.getModels()};return e=t(a),new ki(e)});return e}function Hu(t){self.onmessage=e=>{ju(n=>t(n,e.data))}}var p;(function(t){t[t.Ident=0]="Ident",t[t.AtKeyword=1]="AtKeyword",t[t.String=2]="String",t[t.BadString=3]="BadString",t[t.UnquotedString=4]="UnquotedString",t[t.Hash=5]="Hash",t[t.Num=6]="Num",t[t.Percentage=7]="Percentage",t[t.Dimension=8]="Dimension",t[t.UnicodeRange=9]="UnicodeRange",t[t.CDO=10]="CDO",t[t.CDC=11]="CDC",t[t.Colon=12]="Colon",t[t.SemiColon=13]="SemiColon",t[t.CurlyL=14]="CurlyL",t[t.CurlyR=15]="CurlyR",t[t.ParenthesisL=16]="ParenthesisL",t[t.ParenthesisR=17]="ParenthesisR",t[t.BracketL=18]="BracketL",t[t.BracketR=19]="BracketR",t[t.Whitespace=20]="Whitespace",t[t.Includes=21]="Includes",t[t.Dashmatch=22]="Dashmatch",t[t.SubstringOperator=23]="SubstringOperator",t[t.PrefixOperator=24]="PrefixOperator",t[t.SuffixOperator=25]="SuffixOperator",t[t.Delim=26]="Delim",t[t.EMS=27]="EMS",t[t.EXS=28]="EXS",t[t.Length=29]="Length",t[t.Angle=30]="Angle",t[t.Time=31]="Time",t[t.Freq=32]="Freq",t[t.Exclamation=33]="Exclamation",t[t.Resolution=34]="Resolution",t[t.Comma=35]="Comma",t[t.Charset=36]="Charset",t[t.EscapedJavaScript=37]="EscapedJavaScript",t[t.BadEscapedJavaScript=38]="BadEscapedJavaScript",t[t.Comment=39]="Comment",t[t.SingleLineComment=40]="SingleLineComment",t[t.EOF=41]="EOF",t[t.ContainerQueryLength=42]="ContainerQueryLength",t[t.CustomToken=43]="CustomToken"})(p||(p={}));class Xo{constructor(e){this.source=e,this.len=e.length,this.position=0}substring(e,n=this.position){return this.source.substring(e,n)}eos(){return this.len<=this.position}pos(){return this.position}goBackTo(e){this.position=e}goBack(e){this.position-=e}advance(e){this.position+=e}nextChar(){return this.source.charCodeAt(this.position++)||0}peekChar(e=0){return this.source.charCodeAt(this.position+e)||0}lookbackChar(e=0){return this.source.charCodeAt(this.position-e)||0}advanceIfChar(e){return e===this.source.charCodeAt(this.position)?(this.position++,!0):!1}advanceIfChars(e){if(this.position+e.length>this.source.length)return!1;let n=0;for(;nn&&r===rl?(e=!0,!1):(n=r===Ei,!0)),e&&this.stream.advance(1),!0}return!1}_number(){let e=0,n;return this.stream.peekChar()===al&&(e=1),n=this.stream.peekChar(e),n>=_n&&n<=En?(this.stream.advance(e+1),this.stream.advanceWhileChar(r=>r>=_n&&r<=En||e===0&&r===al),!0):!1}_newline(e){const n=this.stream.peekChar();switch(n){case Xt:case Rn:case Jt:return this.stream.advance(1),e.push(String.fromCharCode(n)),n===Xt&&this.stream.advanceIfChar(Jt)&&e.push(` -`),!0}return!1}_escape(e,n){let r=this.stream.peekChar();if(r===Fi){this.stream.advance(1),r=this.stream.peekChar();let i=0;for(;i<6&&(r>=_n&&r<=En||r>=cr&&r<=Yo||r>=hr&&r<=Ko);)this.stream.advance(1),r=this.stream.peekChar(),i++;if(i>0){try{const s=parseInt(this.stream.substring(this.stream.pos()-i),16);s&&e.push(String.fromCharCode(s))}catch{}return r===Ri||r===Ni?this.stream.advance(1):this._newline([]),!0}if(r!==Xt&&r!==Rn&&r!==Jt)return this.stream.advance(1),e.push(String.fromCharCode(r)),!0;if(n)return this._newline(e)}return!1}_stringChar(e,n){const r=this.stream.peekChar();return r!==0&&r!==e&&r!==Fi&&r!==Xt&&r!==Rn&&r!==Jt?(this.stream.advance(1),n.push(String.fromCharCode(r)),!0):!1}_string(e){if(this.stream.peekChar()===sl||this.stream.peekChar()===il){const n=this.stream.nextChar();for(e.push(String.fromCharCode(n));this._stringChar(n,e)||this._escape(e,!0););return this.stream.peekChar()===n?(this.stream.nextChar(),e.push(String.fromCharCode(n)),p.String):p.BadString}return null}_unquotedChar(e){const n=this.stream.peekChar();return n!==0&&n!==Fi&&n!==sl&&n!==il&&n!==tl&&n!==nl&&n!==Ri&&n!==Ni&&n!==Jt&&n!==Rn&&n!==Xt?(this.stream.advance(1),e.push(String.fromCharCode(n)),!0):!1}_unquotedString(e){let n=!1;for(;this._unquotedChar(e)||this._escape(e);)n=!0;return n}_whitespace(){return this.stream.advanceWhileChar(n=>n===Ri||n===Ni||n===Jt||n===Rn||n===Xt)>0}_name(e){let n=!1;for(;this._identChar(e)||this._escape(e);)n=!0;return n}ident(e){const n=this.stream.pos();if(this._minus(e)){if(this._minus(e)||this._identFirstChar(e)||this._escape(e)){for(;this._identChar(e)||this._escape(e););return!0}}else if(this._identFirstChar(e)||this._escape(e)){for(;this._identChar(e)||this._escape(e););return!0}return this.stream.goBackTo(n),!1}_identFirstChar(e){const n=this.stream.peekChar();return n===el||n>=cr&&n<=Qo||n>=hr&&n<=Zo||n>=128&&n<=65535?(this.stream.advance(1),e.push(String.fromCharCode(n)),!0):!1}_minus(e){const n=this.stream.peekChar();return n===Et?(this.stream.advance(1),e.push(String.fromCharCode(n)),!0):!1}_identChar(e){const n=this.stream.peekChar();return n===el||n===Et||n>=cr&&n<=Qo||n>=hr&&n<=Zo||n>=_n&&n<=En||n>=128&&n<=65535?(this.stream.advance(1),e.push(String.fromCharCode(n)),!0):!1}_unicodeRange(){if(this.stream.advanceIfChar(hp)){const e=r=>r>=_n&&r<=En||r>=cr&&r<=Yo||r>=hr&&r<=Ko,n=this.stream.advanceWhileChar(e)+this.stream.advanceWhileChar(r=>r===cp);if(n>=1&&n<=6)if(this.stream.advanceIfChar(Et)){const r=this.stream.advanceWhileChar(e);if(r>=1&&r<=6)return!0}else return!0}return!1}}function pe(t,e){if(t.length0?t.lastIndexOf(e)===n:n===0?t===e:!1}function dp(t,e,n=4){let r=Math.abs(t.length-e.length);if(r>n)return 0;let i=[],s=[],a,o;for(a=0;a0;)(e&1)===1&&(n+=t),t+=t,e=e>>>1;return n}var v;(function(t){t[t.Undefined=0]="Undefined",t[t.Identifier=1]="Identifier",t[t.Stylesheet=2]="Stylesheet",t[t.Ruleset=3]="Ruleset",t[t.Selector=4]="Selector",t[t.SimpleSelector=5]="SimpleSelector",t[t.SelectorInterpolation=6]="SelectorInterpolation",t[t.SelectorCombinator=7]="SelectorCombinator",t[t.SelectorCombinatorParent=8]="SelectorCombinatorParent",t[t.SelectorCombinatorSibling=9]="SelectorCombinatorSibling",t[t.SelectorCombinatorAllSiblings=10]="SelectorCombinatorAllSiblings",t[t.SelectorCombinatorShadowPiercingDescendant=11]="SelectorCombinatorShadowPiercingDescendant",t[t.Page=12]="Page",t[t.PageBoxMarginBox=13]="PageBoxMarginBox",t[t.ClassSelector=14]="ClassSelector",t[t.IdentifierSelector=15]="IdentifierSelector",t[t.ElementNameSelector=16]="ElementNameSelector",t[t.PseudoSelector=17]="PseudoSelector",t[t.AttributeSelector=18]="AttributeSelector",t[t.Declaration=19]="Declaration",t[t.Declarations=20]="Declarations",t[t.Property=21]="Property",t[t.Expression=22]="Expression",t[t.BinaryExpression=23]="BinaryExpression",t[t.Term=24]="Term",t[t.Operator=25]="Operator",t[t.Value=26]="Value",t[t.StringLiteral=27]="StringLiteral",t[t.URILiteral=28]="URILiteral",t[t.EscapedValue=29]="EscapedValue",t[t.Function=30]="Function",t[t.NumericValue=31]="NumericValue",t[t.HexColorValue=32]="HexColorValue",t[t.RatioValue=33]="RatioValue",t[t.MixinDeclaration=34]="MixinDeclaration",t[t.MixinReference=35]="MixinReference",t[t.VariableName=36]="VariableName",t[t.VariableDeclaration=37]="VariableDeclaration",t[t.Prio=38]="Prio",t[t.Interpolation=39]="Interpolation",t[t.NestedProperties=40]="NestedProperties",t[t.ExtendsReference=41]="ExtendsReference",t[t.SelectorPlaceholder=42]="SelectorPlaceholder",t[t.Debug=43]="Debug",t[t.If=44]="If",t[t.Else=45]="Else",t[t.For=46]="For",t[t.Each=47]="Each",t[t.While=48]="While",t[t.MixinContentReference=49]="MixinContentReference",t[t.MixinContentDeclaration=50]="MixinContentDeclaration",t[t.Media=51]="Media",t[t.Keyframe=52]="Keyframe",t[t.FontFace=53]="FontFace",t[t.Import=54]="Import",t[t.Namespace=55]="Namespace",t[t.Invocation=56]="Invocation",t[t.FunctionDeclaration=57]="FunctionDeclaration",t[t.ReturnStatement=58]="ReturnStatement",t[t.MediaQuery=59]="MediaQuery",t[t.MediaCondition=60]="MediaCondition",t[t.MediaFeature=61]="MediaFeature",t[t.FunctionParameter=62]="FunctionParameter",t[t.FunctionArgument=63]="FunctionArgument",t[t.KeyframeSelector=64]="KeyframeSelector",t[t.ViewPort=65]="ViewPort",t[t.Document=66]="Document",t[t.AtApplyRule=67]="AtApplyRule",t[t.CustomPropertyDeclaration=68]="CustomPropertyDeclaration",t[t.CustomPropertySet=69]="CustomPropertySet",t[t.ListEntry=70]="ListEntry",t[t.Supports=71]="Supports",t[t.SupportsCondition=72]="SupportsCondition",t[t.NamespacePrefix=73]="NamespacePrefix",t[t.GridLine=74]="GridLine",t[t.Plugin=75]="Plugin",t[t.UnknownAtRule=76]="UnknownAtRule",t[t.Use=77]="Use",t[t.ModuleConfiguration=78]="ModuleConfiguration",t[t.Forward=79]="Forward",t[t.ForwardVisibility=80]="ForwardVisibility",t[t.Module=81]="Module",t[t.UnicodeRange=82]="UnicodeRange",t[t.Layer=83]="Layer",t[t.LayerNameList=84]="LayerNameList",t[t.LayerName=85]="LayerName",t[t.PropertyAtRule=86]="PropertyAtRule",t[t.Container=87]="Container"})(v||(v={}));var Q;(function(t){t[t.Mixin=0]="Mixin",t[t.Rule=1]="Rule",t[t.Variable=2]="Variable",t[t.Function=3]="Function",t[t.Keyframe=4]="Keyframe",t[t.Unknown=5]="Unknown",t[t.Module=6]="Module",t[t.Forward=7]="Forward",t[t.ForwardVisibility=8]="ForwardVisibility",t[t.Property=9]="Property"})(Q||(Q={}));function Ii(t,e){let n=null;return!t||et.end?null:(t.accept(r=>r.offset===-1&&r.length===-1?!0:r.offset<=e&&r.end>=e?(n?r.length<=n.length&&(n=r):n=r,!0):!1),n)}function Di(t,e){let n=Ii(t,e);const r=[];for(;n;)r.unshift(n),n=n.parent;return r}function pp(t){const e=t.findParent(v.Declaration),n=e&&e.getValue();return n&&n.encloses(t)?e:null}class W{get end(){return this.offset+this.length}constructor(e=-1,n=-1,r){this.parent=null,this.offset=e,this.length=n,r&&(this.nodeType=r)}set type(e){this.nodeType=e}get type(){return this.nodeType||v.Undefined}getTextProvider(){let e=this;for(;e&&!e.textProvider;)e=e.parent;return e?e.textProvider:()=>"unknown"}getText(){return this.getTextProvider()(this.offset,this.length)}matches(e){return this.length===e.length&&this.getTextProvider()(this.offset,this.length)===e}startsWith(e){return this.length>=e.length&&this.getTextProvider()(this.offset,e.length)===e}endsWith(e){return this.length>=e.length&&this.getTextProvider()(this.end-e.length,e.length)===e}accept(e){if(e(this)&&this.children)for(const n of this.children)n.accept(e)}acceptVisitor(e){this.accept(e.visitNode.bind(e))}adoptChild(e,n=-1){if(e.parent&&e.parent.children){const i=e.parent.children.indexOf(e);i>=0&&e.parent.children.splice(i,1)}e.parent=this;let r=this.children;return r||(r=this.children=[]),n!==-1?r.splice(n,0,e):r.push(e),e}attachTo(e,n=-1){return e&&e.adoptChild(this,n),this}collectIssues(e){this.issues&&e.push.apply(e,this.issues)}addIssue(e){this.issues||(this.issues=[]),this.issues.push(e)}hasIssue(e){return Array.isArray(this.issues)&&this.issues.some(n=>n.getRule()===e)}isErroneous(e=!1){return this.issues&&this.issues.length>0?!0:e&&Array.isArray(this.children)&&this.children.some(n=>n.isErroneous(!0))}setNode(e,n,r=-1){return n?(n.attachTo(this,r),this[e]=n,!0):!1}addChild(e){return e?(this.children||(this.children=[]),e.attachTo(this),this.updateOffsetAndLength(e),!0):!1}updateOffsetAndLength(e){(e.offsetthis.end||this.length===-1)&&(this.length=n-this.offset)}hasChildren(){return!!this.children&&this.children.length>0}getChildren(){return this.children?this.children.slice(0):[]}getChild(e){return this.children&&e=0;r--)if(n=this.children[r],n.offset<=e)return n}return null}findChildAtOffset(e,n){const r=this.findFirstChildBeforeOffset(e);return r&&r.end>=e?n&&r.findChildAtOffset(e,!0)||r:null}encloses(e){return this.offset<=e.offset&&this.offset+this.length>=e.offset+e.length}getParent(){let e=this.parent;for(;e instanceof ve;)e=e.parent;return e}findParent(e){let n=this;for(;n&&n.type!==e;)n=n.parent;return n}findAParent(...e){let n=this;for(;n&&!e.some(r=>n.type===r);)n=n.parent;return n}setData(e,n){this.options||(this.options={}),this.options[e]=n}getData(e){return!this.options||!this.options.hasOwnProperty(e)?null:this.options[e]}}class ve extends W{constructor(e,n=-1){super(-1,-1),this.attachTo(e,n),this.offset=-1,this.length=-1}}class mp extends W{constructor(e,n){super(e,n)}get type(){return v.UnicodeRange}setRangeStart(e){return this.setNode("rangeStart",e)}getRangeStart(){return this.rangeStart}setRangeEnd(e){return this.setNode("rangeEnd",e)}getRangeEnd(){return this.rangeEnd}}class ze extends W{constructor(e,n){super(e,n),this.isCustomProperty=!1}get type(){return v.Identifier}containsInterpolation(){return this.hasChildren()}}class fp extends W{constructor(e,n){super(e,n)}get type(){return v.Stylesheet}}class Li extends W{constructor(e,n){super(e,n)}get type(){return v.Declarations}}class oe extends W{constructor(e,n){super(e,n)}getDeclarations(){return this.declarations}setDeclarations(e){return this.setNode("declarations",e)}}class Ft extends oe{constructor(e,n){super(e,n)}get type(){return v.Ruleset}getSelectors(){return this.selectors||(this.selectors=new ve(this)),this.selectors}isNested(){return!!this.parent&&this.parent.findParent(v.Declarations)!==null}}class In extends W{constructor(e,n){super(e,n)}get type(){return v.Selector}}class Yt extends W{constructor(e,n){super(e,n)}get type(){return v.SimpleSelector}}class Ai extends W{constructor(e,n){super(e,n)}}class gp extends oe{constructor(e,n){super(e,n)}get type(){return v.CustomPropertySet}}class Pe extends Ai{constructor(e,n){super(e,n),this.property=null}get type(){return v.Declaration}setProperty(e){return this.setNode("property",e)}getProperty(){return this.property}getFullPropertyName(){const e=this.property?this.property.getName():"unknown";if(this.parent instanceof Li&&this.parent.getParent()instanceof ul){const n=this.parent.getParent().getParent();if(n instanceof Pe)return n.getFullPropertyName()+e}return e}getNonPrefixedPropertyName(){const e=this.getFullPropertyName();if(e&&e.charAt(0)==="-"){const n=e.indexOf("-",1);if(n!==-1)return e.substring(n+1)}return e}setValue(e){return this.setNode("value",e)}getValue(){return this.value}setNestedProperties(e){return this.setNode("nestedProperties",e)}getNestedProperties(){return this.nestedProperties}}class bp extends Pe{constructor(e,n){super(e,n)}get type(){return v.CustomPropertyDeclaration}setPropertySet(e){return this.setNode("propertySet",e)}getPropertySet(){return this.propertySet}}class Mi extends W{constructor(e,n){super(e,n)}get type(){return v.Property}setIdentifier(e){return this.setNode("identifier",e)}getIdentifier(){return this.identifier}getName(){return up(this.getText(),/[_\+]+$/)}isCustomProperty(){return!!this.identifier&&this.identifier.isCustomProperty}}class wp extends W{constructor(e,n){super(e,n)}get type(){return v.Invocation}getArguments(){return this.arguments||(this.arguments=new ve(this)),this.arguments}}class Dn extends wp{constructor(e,n){super(e,n)}get type(){return v.Function}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}}class dr extends W{constructor(e,n){super(e,n)}get type(){return v.FunctionParameter}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}setDefaultValue(e){return this.setNode("defaultValue",e,0)}getDefaultValue(){return this.defaultValue}}class Qt extends W{constructor(e,n){super(e,n)}get type(){return v.FunctionArgument}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}setValue(e){return this.setNode("value",e,0)}getValue(){return this.value}}class vp extends oe{constructor(e,n){super(e,n)}get type(){return v.If}setExpression(e){return this.setNode("expression",e,0)}setElseClause(e){return this.setNode("elseClause",e)}}class yp extends oe{constructor(e,n){super(e,n)}get type(){return v.For}setVariable(e){return this.setNode("variable",e,0)}}class xp extends oe{constructor(e,n){super(e,n)}get type(){return v.Each}getVariables(){return this.variables||(this.variables=new ve(this)),this.variables}}class Sp extends oe{constructor(e,n){super(e,n)}get type(){return v.While}}class Cp extends oe{constructor(e,n){super(e,n)}get type(){return v.Else}}class ur extends oe{constructor(e,n){super(e,n)}get type(){return v.FunctionDeclaration}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}getParameters(){return this.parameters||(this.parameters=new ve(this)),this.parameters}}class kp extends oe{constructor(e,n){super(e,n)}get type(){return v.ViewPort}}class dl extends oe{constructor(e,n){super(e,n)}get type(){return v.FontFace}}class ul extends oe{constructor(e,n){super(e,n)}get type(){return v.NestedProperties}}class pl extends oe{constructor(e,n){super(e,n)}get type(){return v.Keyframe}setKeyword(e){return this.setNode("keyword",e,0)}getKeyword(){return this.keyword}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}}class ml extends oe{constructor(e,n){super(e,n)}get type(){return v.KeyframeSelector}}class zi extends W{constructor(e,n){super(e,n)}get type(){return v.Import}setMedialist(e){return e?(e.attachTo(this),!0):!1}}class _p extends W{get type(){return v.Use}getParameters(){return this.parameters||(this.parameters=new ve(this)),this.parameters}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}}class Ep extends W{get type(){return v.ModuleConfiguration}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}setValue(e){return this.setNode("value",e,0)}getValue(){return this.value}}class Fp extends W{get type(){return v.Forward}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getMembers(){return this.members||(this.members=new ve(this)),this.members}getParameters(){return this.parameters||(this.parameters=new ve(this)),this.parameters}}class Rp extends W{get type(){return v.ForwardVisibility}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}}class Np extends W{constructor(e,n){super(e,n)}get type(){return v.Namespace}}class Pi extends oe{constructor(e,n){super(e,n)}get type(){return v.Media}}class Ti extends oe{constructor(e,n){super(e,n)}get type(){return v.Supports}}class Ip extends oe{constructor(e,n){super(e,n)}get type(){return v.Layer}setNames(e){return this.setNode("names",e)}getNames(){return this.names}}class Dp extends oe{constructor(e,n){super(e,n)}get type(){return v.PropertyAtRule}setName(e){return e?(e.attachTo(this),this.name=e,!0):!1}getName(){return this.name}}class Lp extends oe{constructor(e,n){super(e,n)}get type(){return v.Document}}class Ap extends oe{constructor(e,n){super(e,n)}get type(){return v.Container}}class fl extends W{constructor(e,n){super(e,n)}}class gl extends W{constructor(e,n){super(e,n)}get type(){return v.MediaQuery}}class Mp extends W{constructor(e,n){super(e,n)}get type(){return v.MediaCondition}}class zp extends W{constructor(e,n){super(e,n)}get type(){return v.MediaFeature}}class Ln extends W{constructor(e,n){super(e,n)}get type(){return v.SupportsCondition}}class Pp extends oe{constructor(e,n){super(e,n)}get type(){return v.Page}}class Tp extends oe{constructor(e,n){super(e,n)}get type(){return v.PageBoxMarginBox}}class bl extends W{constructor(e,n){super(e,n)}get type(){return v.Expression}}class Oi extends W{constructor(e,n){super(e,n)}get type(){return v.BinaryExpression}setLeft(e){return this.setNode("left",e)}getLeft(){return this.left}setRight(e){return this.setNode("right",e)}getRight(){return this.right}setOperator(e){return this.setNode("operator",e)}getOperator(){return this.operator}}class Op extends W{constructor(e,n){super(e,n)}get type(){return v.Term}setOperator(e){return this.setNode("operator",e)}getOperator(){return this.operator}setExpression(e){return this.setNode("expression",e)}getExpression(){return this.expression}}class Wp extends W{constructor(e,n){super(e,n)}get type(){return v.AttributeSelector}setNamespacePrefix(e){return this.setNode("namespacePrefix",e)}getNamespacePrefix(){return this.namespacePrefix}setIdentifier(e){return this.setNode("identifier",e)}getIdentifier(){return this.identifier}setOperator(e){return this.setNode("operator",e)}getOperator(){return this.operator}setValue(e){return this.setNode("value",e)}getValue(){return this.value}}class Wi extends W{constructor(e,n){super(e,n)}get type(){return v.HexColorValue}}class Vp extends W{constructor(e,n){super(e,n)}get type(){return v.RatioValue}}const $p=46,Up=48,Bp=57;class Vi extends W{constructor(e,n){super(e,n)}get type(){return v.NumericValue}getValue(){const e=this.getText();let n=0,r;for(let i=0,s=e.length;i0&&(n+=`/${Array.isArray(e.comment)?e.comment.join(""):e.comment}`),i=e.args??{};return Yp(r,i)}var Xp=/{([^}]+)}/g;function Yp(t,e){return Object.keys(e).length===0?t:t.replace(Xp,(n,r)=>e[r]??n)}class te{constructor(e,n){this.id=e,this.message=n}}const S={NumberExpected:new te("css-numberexpected",w("number expected")),ConditionExpected:new te("css-conditionexpected",w("condition expected")),RuleOrSelectorExpected:new te("css-ruleorselectorexpected",w("at-rule or selector expected")),DotExpected:new te("css-dotexpected",w("dot expected")),ColonExpected:new te("css-colonexpected",w("colon expected")),SemiColonExpected:new te("css-semicolonexpected",w("semi-colon expected")),TermExpected:new te("css-termexpected",w("term expected")),ExpressionExpected:new te("css-expressionexpected",w("expression expected")),OperatorExpected:new te("css-operatorexpected",w("operator expected")),IdentifierExpected:new te("css-identifierexpected",w("identifier expected")),PercentageExpected:new te("css-percentageexpected",w("percentage expected")),URIOrStringExpected:new te("css-uriorstringexpected",w("uri or string expected")),URIExpected:new te("css-uriexpected",w("URI expected")),VariableNameExpected:new te("css-varnameexpected",w("variable name expected")),VariableValueExpected:new te("css-varvalueexpected",w("variable value expected")),PropertyValueExpected:new te("css-propertyvalueexpected",w("property value expected")),LeftCurlyExpected:new te("css-lcurlyexpected",w("{ expected")),RightCurlyExpected:new te("css-rcurlyexpected",w("} expected")),LeftSquareBracketExpected:new te("css-rbracketexpected",w("[ expected")),RightSquareBracketExpected:new te("css-lbracketexpected",w("] expected")),LeftParenthesisExpected:new te("css-lparentexpected",w("( expected")),RightParenthesisExpected:new te("css-rparentexpected",w(") expected")),CommaExpected:new te("css-commaexpected",w("comma expected")),PageDirectiveOrDeclarationExpected:new te("css-pagedirordeclexpected",w("page directive or declaraton expected")),UnknownAtRule:new te("css-unknownatrule",w("at-rule unknown")),UnknownKeyword:new te("css-unknownkeyword",w("unknown keyword")),SelectorExpected:new te("css-selectorexpected",w("selector expected")),StringLiteralExpected:new te("css-stringliteralexpected",w("string literal expected")),WhitespaceExpected:new te("css-whitespaceexpected",w("whitespace expected")),MediaQueryExpected:new te("css-mediaqueryexpected",w("media query expected")),IdentifierOrWildcardExpected:new te("css-idorwildcardexpected",w("identifier or wildcard expected")),WildcardExpected:new te("css-wildcardexpected",w("wildcard expected")),IdentifierOrVariableExpected:new te("css-idorvarexpected",w("identifier or variable expected"))};var xl;(function(t){function e(n){return typeof n=="string"}t.is=e})(xl||(xl={}));var qi;(function(t){function e(n){return typeof n=="string"}t.is=e})(qi||(qi={}));var Sl;(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647;function e(n){return typeof n=="number"&&t.MIN_VALUE<=n&&n<=t.MAX_VALUE}t.is=e})(Sl||(Sl={}));var fr;(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647;function e(n){return typeof n=="number"&&t.MIN_VALUE<=n&&n<=t.MAX_VALUE}t.is=e})(fr||(fr={}));var ye;(function(t){function e(r,i){return r===Number.MAX_VALUE&&(r=fr.MAX_VALUE),i===Number.MAX_VALUE&&(i=fr.MAX_VALUE),{line:r,character:i}}t.create=e;function n(r){let i=r;return C.objectLiteral(i)&&C.uinteger(i.line)&&C.uinteger(i.character)}t.is=n})(ye||(ye={}));var K;(function(t){function e(r,i,s,a){if(C.uinteger(r)&&C.uinteger(i)&&C.uinteger(s)&&C.uinteger(a))return{start:ye.create(r,i),end:ye.create(s,a)};if(ye.is(r)&&ye.is(i))return{start:r,end:i};throw new Error(`Range#create called with invalid arguments[${r}, ${i}, ${s}, ${a}]`)}t.create=e;function n(r){let i=r;return C.objectLiteral(i)&&ye.is(i.start)&&ye.is(i.end)}t.is=n})(K||(K={}));var zn;(function(t){function e(r,i){return{uri:r,range:i}}t.create=e;function n(r){let i=r;return C.objectLiteral(i)&&K.is(i.range)&&(C.string(i.uri)||C.undefined(i.uri))}t.is=n})(zn||(zn={}));var Cl;(function(t){function e(r,i,s,a){return{targetUri:r,targetRange:i,targetSelectionRange:s,originSelectionRange:a}}t.create=e;function n(r){let i=r;return C.objectLiteral(i)&&K.is(i.targetRange)&&C.string(i.targetUri)&&K.is(i.targetSelectionRange)&&(K.is(i.originSelectionRange)||C.undefined(i.originSelectionRange))}t.is=n})(Cl||(Cl={}));var ji;(function(t){function e(r,i,s,a){return{red:r,green:i,blue:s,alpha:a}}t.create=e;function n(r){const i=r;return C.objectLiteral(i)&&C.numberRange(i.red,0,1)&&C.numberRange(i.green,0,1)&&C.numberRange(i.blue,0,1)&&C.numberRange(i.alpha,0,1)}t.is=n})(ji||(ji={}));var kl;(function(t){function e(r,i){return{range:r,color:i}}t.create=e;function n(r){const i=r;return C.objectLiteral(i)&&K.is(i.range)&&ji.is(i.color)}t.is=n})(kl||(kl={}));var _l;(function(t){function e(r,i,s){return{label:r,textEdit:i,additionalTextEdits:s}}t.create=e;function n(r){const i=r;return C.objectLiteral(i)&&C.string(i.label)&&(C.undefined(i.textEdit)||j.is(i))&&(C.undefined(i.additionalTextEdits)||C.typedArray(i.additionalTextEdits,j.is))}t.is=n})(_l||(_l={}));var El;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(El||(El={}));var Fl;(function(t){function e(r,i,s,a,o,l){const c={startLine:r,endLine:i};return C.defined(s)&&(c.startCharacter=s),C.defined(a)&&(c.endCharacter=a),C.defined(o)&&(c.kind=o),C.defined(l)&&(c.collapsedText=l),c}t.create=e;function n(r){const i=r;return C.objectLiteral(i)&&C.uinteger(i.startLine)&&C.uinteger(i.startLine)&&(C.undefined(i.startCharacter)||C.uinteger(i.startCharacter))&&(C.undefined(i.endCharacter)||C.uinteger(i.endCharacter))&&(C.undefined(i.kind)||C.string(i.kind))}t.is=n})(Fl||(Fl={}));var Hi;(function(t){function e(r,i){return{location:r,message:i}}t.create=e;function n(r){let i=r;return C.defined(i)&&zn.is(i.location)&&C.string(i.message)}t.is=n})(Hi||(Hi={}));var gr;(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})(gr||(gr={}));var Rl;(function(t){t.Unnecessary=1,t.Deprecated=2})(Rl||(Rl={}));var Nl;(function(t){function e(n){const r=n;return C.objectLiteral(r)&&C.string(r.href)}t.is=e})(Nl||(Nl={}));var br;(function(t){function e(r,i,s,a,o,l){let c={range:r,message:i};return C.defined(s)&&(c.severity=s),C.defined(a)&&(c.code=a),C.defined(o)&&(c.source=o),C.defined(l)&&(c.relatedInformation=l),c}t.create=e;function n(r){var i;let s=r;return C.defined(s)&&K.is(s.range)&&C.string(s.message)&&(C.number(s.severity)||C.undefined(s.severity))&&(C.integer(s.code)||C.string(s.code)||C.undefined(s.code))&&(C.undefined(s.codeDescription)||C.string((i=s.codeDescription)===null||i===void 0?void 0:i.href))&&(C.string(s.source)||C.undefined(s.source))&&(C.undefined(s.relatedInformation)||C.typedArray(s.relatedInformation,Hi.is))}t.is=n})(br||(br={}));var Rt;(function(t){function e(r,i,...s){let a={title:r,command:i};return C.defined(s)&&s.length>0&&(a.arguments=s),a}t.create=e;function n(r){let i=r;return C.defined(i)&&C.string(i.title)&&C.string(i.command)}t.is=n})(Rt||(Rt={}));var j;(function(t){function e(s,a){return{range:s,newText:a}}t.replace=e;function n(s,a){return{range:{start:s,end:s},newText:a}}t.insert=n;function r(s){return{range:s,newText:""}}t.del=r;function i(s){const a=s;return C.objectLiteral(a)&&C.string(a.newText)&&K.is(a.range)}t.is=i})(j||(j={}));var Gi;(function(t){function e(r,i,s){const a={label:r};return i!==void 0&&(a.needsConfirmation=i),s!==void 0&&(a.description=s),a}t.create=e;function n(r){const i=r;return C.objectLiteral(i)&&C.string(i.label)&&(C.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(C.string(i.description)||i.description===void 0)}t.is=n})(Gi||(Gi={}));var Kt;(function(t){function e(n){const r=n;return C.string(r)}t.is=e})(Kt||(Kt={}));var Il;(function(t){function e(s,a,o){return{range:s,newText:a,annotationId:o}}t.replace=e;function n(s,a,o){return{range:{start:s,end:s},newText:a,annotationId:o}}t.insert=n;function r(s,a){return{range:s,newText:"",annotationId:a}}t.del=r;function i(s){const a=s;return j.is(a)&&(Gi.is(a.annotationId)||Kt.is(a.annotationId))}t.is=i})(Il||(Il={}));var wr;(function(t){function e(r,i){return{textDocument:r,edits:i}}t.create=e;function n(r){let i=r;return C.defined(i)&&Zi.is(i.textDocument)&&Array.isArray(i.edits)}t.is=n})(wr||(wr={}));var Ji;(function(t){function e(r,i,s){let a={kind:"create",uri:r};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(a.options=i),s!==void 0&&(a.annotationId=s),a}t.create=e;function n(r){let i=r;return i&&i.kind==="create"&&C.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||C.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||C.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Kt.is(i.annotationId))}t.is=n})(Ji||(Ji={}));var Xi;(function(t){function e(r,i,s,a){let o={kind:"rename",oldUri:r,newUri:i};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(o.options=s),a!==void 0&&(o.annotationId=a),o}t.create=e;function n(r){let i=r;return i&&i.kind==="rename"&&C.string(i.oldUri)&&C.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||C.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||C.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Kt.is(i.annotationId))}t.is=n})(Xi||(Xi={}));var Yi;(function(t){function e(r,i,s){let a={kind:"delete",uri:r};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(a.options=i),s!==void 0&&(a.annotationId=s),a}t.create=e;function n(r){let i=r;return i&&i.kind==="delete"&&C.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||C.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||C.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||Kt.is(i.annotationId))}t.is=n})(Yi||(Yi={}));var Qi;(function(t){function e(n){let r=n;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(i=>C.string(i.kind)?Ji.is(i)||Xi.is(i)||Yi.is(i):wr.is(i)))}t.is=e})(Qi||(Qi={}));var Dl;(function(t){function e(r){return{uri:r}}t.create=e;function n(r){let i=r;return C.defined(i)&&C.string(i.uri)}t.is=n})(Dl||(Dl={}));var Ki;(function(t){function e(r,i){return{uri:r,version:i}}t.create=e;function n(r){let i=r;return C.defined(i)&&C.string(i.uri)&&C.integer(i.version)}t.is=n})(Ki||(Ki={}));var Zi;(function(t){function e(r,i){return{uri:r,version:i}}t.create=e;function n(r){let i=r;return C.defined(i)&&C.string(i.uri)&&(i.version===null||C.integer(i.version))}t.is=n})(Zi||(Zi={}));var Ll;(function(t){function e(r,i,s,a){return{uri:r,languageId:i,version:s,text:a}}t.create=e;function n(r){let i=r;return C.defined(i)&&C.string(i.uri)&&C.string(i.languageId)&&C.integer(i.version)&&C.string(i.text)}t.is=n})(Ll||(Ll={}));var He;(function(t){t.PlainText="plaintext",t.Markdown="markdown";function e(n){const r=n;return r===t.PlainText||r===t.Markdown}t.is=e})(He||(He={}));var Pn;(function(t){function e(n){const r=n;return C.objectLiteral(n)&&He.is(r.kind)&&C.string(r.value)}t.is=e})(Pn||(Pn={}));var q;(function(t){t.Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25})(q||(q={}));var Ie;(function(t){t.PlainText=1,t.Snippet=2})(Ie||(Ie={}));var Nt;(function(t){t.Deprecated=1})(Nt||(Nt={}));var Al;(function(t){function e(r,i,s){return{newText:r,insert:i,replace:s}}t.create=e;function n(r){const i=r;return i&&C.string(i.newText)&&K.is(i.insert)&&K.is(i.replace)}t.is=n})(Al||(Al={}));var Ml;(function(t){t.asIs=1,t.adjustIndentation=2})(Ml||(Ml={}));var zl;(function(t){function e(n){const r=n;return r&&(C.string(r.detail)||r.detail===void 0)&&(C.string(r.description)||r.description===void 0)}t.is=e})(zl||(zl={}));var Pl;(function(t){function e(n){return{label:n}}t.create=e})(Pl||(Pl={}));var Tl;(function(t){function e(n,r){return{items:n||[],isIncomplete:!!r}}t.create=e})(Tl||(Tl={}));var vr;(function(t){function e(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=e;function n(r){const i=r;return C.string(i)||C.objectLiteral(i)&&C.string(i.language)&&C.string(i.value)}t.is=n})(vr||(vr={}));var Ol;(function(t){function e(n){let r=n;return!!r&&C.objectLiteral(r)&&(Pn.is(r.contents)||vr.is(r.contents)||C.typedArray(r.contents,vr.is))&&(n.range===void 0||K.is(n.range))}t.is=e})(Ol||(Ol={}));var Wl;(function(t){function e(n,r){return r?{label:n,documentation:r}:{label:n}}t.create=e})(Wl||(Wl={}));var Vl;(function(t){function e(n,r,...i){let s={label:n};return C.defined(r)&&(s.documentation=r),C.defined(i)?s.parameters=i:s.parameters=[],s}t.create=e})(Vl||(Vl={}));var Zt;(function(t){t.Text=1,t.Read=2,t.Write=3})(Zt||(Zt={}));var $l;(function(t){function e(n,r){let i={range:n};return C.number(r)&&(i.kind=r),i}t.create=e})($l||($l={}));var rt;(function(t){t.File=1,t.Module=2,t.Namespace=3,t.Package=4,t.Class=5,t.Method=6,t.Property=7,t.Field=8,t.Constructor=9,t.Enum=10,t.Interface=11,t.Function=12,t.Variable=13,t.Constant=14,t.String=15,t.Number=16,t.Boolean=17,t.Array=18,t.Object=19,t.Key=20,t.Null=21,t.EnumMember=22,t.Struct=23,t.Event=24,t.Operator=25,t.TypeParameter=26})(rt||(rt={}));var Ul;(function(t){t.Deprecated=1})(Ul||(Ul={}));var Bl;(function(t){function e(n,r,i,s,a){let o={name:n,kind:r,location:{uri:s,range:i}};return a&&(o.containerName=a),o}t.create=e})(Bl||(Bl={}));var ql;(function(t){function e(n,r,i,s){return s!==void 0?{name:n,kind:r,location:{uri:i,range:s}}:{name:n,kind:r,location:{uri:i}}}t.create=e})(ql||(ql={}));var jl;(function(t){function e(r,i,s,a,o,l){let c={name:r,detail:i,kind:s,range:a,selectionRange:o};return l!==void 0&&(c.children=l),c}t.create=e;function n(r){let i=r;return i&&C.string(i.name)&&C.number(i.kind)&&K.is(i.range)&&K.is(i.selectionRange)&&(i.detail===void 0||C.string(i.detail))&&(i.deprecated===void 0||C.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}t.is=n})(jl||(jl={}));var es;(function(t){t.Empty="",t.QuickFix="quickfix",t.Refactor="refactor",t.RefactorExtract="refactor.extract",t.RefactorInline="refactor.inline",t.RefactorRewrite="refactor.rewrite",t.Source="source",t.SourceOrganizeImports="source.organizeImports",t.SourceFixAll="source.fixAll"})(es||(es={}));var yr;(function(t){t.Invoked=1,t.Automatic=2})(yr||(yr={}));var Hl;(function(t){function e(r,i,s){let a={diagnostics:r};return i!=null&&(a.only=i),s!=null&&(a.triggerKind=s),a}t.create=e;function n(r){let i=r;return C.defined(i)&&C.typedArray(i.diagnostics,br.is)&&(i.only===void 0||C.typedArray(i.only,C.string))&&(i.triggerKind===void 0||i.triggerKind===yr.Invoked||i.triggerKind===yr.Automatic)}t.is=n})(Hl||(Hl={}));var ts;(function(t){function e(r,i,s){let a={title:r},o=!0;return typeof i=="string"?(o=!1,a.kind=i):Rt.is(i)?a.command=i:a.edit=i,o&&s!==void 0&&(a.kind=s),a}t.create=e;function n(r){let i=r;return i&&C.string(i.title)&&(i.diagnostics===void 0||C.typedArray(i.diagnostics,br.is))&&(i.kind===void 0||C.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||Rt.is(i.command))&&(i.isPreferred===void 0||C.boolean(i.isPreferred))&&(i.edit===void 0||Qi.is(i.edit))}t.is=n})(ts||(ts={}));var Gl;(function(t){function e(r,i){let s={range:r};return C.defined(i)&&(s.data=i),s}t.create=e;function n(r){let i=r;return C.defined(i)&&K.is(i.range)&&(C.undefined(i.command)||Rt.is(i.command))}t.is=n})(Gl||(Gl={}));var Jl;(function(t){function e(r,i){return{tabSize:r,insertSpaces:i}}t.create=e;function n(r){let i=r;return C.defined(i)&&C.uinteger(i.tabSize)&&C.boolean(i.insertSpaces)}t.is=n})(Jl||(Jl={}));var Xl;(function(t){function e(r,i,s){return{range:r,target:i,data:s}}t.create=e;function n(r){let i=r;return C.defined(i)&&K.is(i.range)&&(C.undefined(i.target)||C.string(i.target))}t.is=n})(Xl||(Xl={}));var xr;(function(t){function e(r,i){return{range:r,parent:i}}t.create=e;function n(r){let i=r;return C.objectLiteral(i)&&K.is(i.range)&&(i.parent===void 0||t.is(i.parent))}t.is=n})(xr||(xr={}));var Yl;(function(t){t.namespace="namespace",t.type="type",t.class="class",t.enum="enum",t.interface="interface",t.struct="struct",t.typeParameter="typeParameter",t.parameter="parameter",t.variable="variable",t.property="property",t.enumMember="enumMember",t.event="event",t.function="function",t.method="method",t.macro="macro",t.keyword="keyword",t.modifier="modifier",t.comment="comment",t.string="string",t.number="number",t.regexp="regexp",t.operator="operator",t.decorator="decorator"})(Yl||(Yl={}));var Ql;(function(t){t.declaration="declaration",t.definition="definition",t.readonly="readonly",t.static="static",t.deprecated="deprecated",t.abstract="abstract",t.async="async",t.modification="modification",t.documentation="documentation",t.defaultLibrary="defaultLibrary"})(Ql||(Ql={}));var Kl;(function(t){function e(n){const r=n;return C.objectLiteral(r)&&(r.resultId===void 0||typeof r.resultId=="string")&&Array.isArray(r.data)&&(r.data.length===0||typeof r.data[0]=="number")}t.is=e})(Kl||(Kl={}));var Zl;(function(t){function e(r,i){return{range:r,text:i}}t.create=e;function n(r){const i=r;return i!=null&&K.is(i.range)&&C.string(i.text)}t.is=n})(Zl||(Zl={}));var ec;(function(t){function e(r,i,s){return{range:r,variableName:i,caseSensitiveLookup:s}}t.create=e;function n(r){const i=r;return i!=null&&K.is(i.range)&&C.boolean(i.caseSensitiveLookup)&&(C.string(i.variableName)||i.variableName===void 0)}t.is=n})(ec||(ec={}));var tc;(function(t){function e(r,i){return{range:r,expression:i}}t.create=e;function n(r){const i=r;return i!=null&&K.is(i.range)&&(C.string(i.expression)||i.expression===void 0)}t.is=n})(tc||(tc={}));var nc;(function(t){function e(r,i){return{frameId:r,stoppedLocation:i}}t.create=e;function n(r){const i=r;return C.defined(i)&&K.is(r.stoppedLocation)}t.is=n})(nc||(nc={}));var ns;(function(t){t.Type=1,t.Parameter=2;function e(n){return n===1||n===2}t.is=e})(ns||(ns={}));var rs;(function(t){function e(r){return{value:r}}t.create=e;function n(r){const i=r;return C.objectLiteral(i)&&(i.tooltip===void 0||C.string(i.tooltip)||Pn.is(i.tooltip))&&(i.location===void 0||zn.is(i.location))&&(i.command===void 0||Rt.is(i.command))}t.is=n})(rs||(rs={}));var rc;(function(t){function e(r,i,s){const a={position:r,label:i};return s!==void 0&&(a.kind=s),a}t.create=e;function n(r){const i=r;return C.objectLiteral(i)&&ye.is(i.position)&&(C.string(i.label)||C.typedArray(i.label,rs.is))&&(i.kind===void 0||ns.is(i.kind))&&i.textEdits===void 0||C.typedArray(i.textEdits,j.is)&&(i.tooltip===void 0||C.string(i.tooltip)||Pn.is(i.tooltip))&&(i.paddingLeft===void 0||C.boolean(i.paddingLeft))&&(i.paddingRight===void 0||C.boolean(i.paddingRight))}t.is=n})(rc||(rc={}));var ic;(function(t){function e(n){return{kind:"snippet",value:n}}t.createSnippet=e})(ic||(ic={}));var sc;(function(t){function e(n,r,i,s){return{insertText:n,filterText:r,range:i,command:s}}t.create=e})(sc||(sc={}));var ac;(function(t){function e(n){return{items:n}}t.create=e})(ac||(ac={}));var oc;(function(t){t.Invoked=0,t.Automatic=1})(oc||(oc={}));var lc;(function(t){function e(n,r){return{range:n,text:r}}t.create=e})(lc||(lc={}));var cc;(function(t){function e(n,r){return{triggerKind:n,selectedCompletionInfo:r}}t.create=e})(cc||(cc={}));var hc;(function(t){function e(n){const r=n;return C.objectLiteral(r)&&qi.is(r.uri)&&C.string(r.name)}t.is=e})(hc||(hc={}));var dc;(function(t){function e(s,a,o,l){return new Qp(s,a,o,l)}t.create=e;function n(s){let a=s;return!!(C.defined(a)&&C.string(a.uri)&&(C.undefined(a.languageId)||C.string(a.languageId))&&C.uinteger(a.lineCount)&&C.func(a.getText)&&C.func(a.positionAt)&&C.func(a.offsetAt))}t.is=n;function r(s,a){let o=s.getText(),l=i(a,(d,u)=>{let m=d.range.start.line-u.range.start.line;return m===0?d.range.start.character-u.range.start.character:m}),c=o.length;for(let d=l.length-1;d>=0;d--){let u=l[d],m=s.offsetAt(u.range.start),f=s.offsetAt(u.range.end);if(f<=c)o=o.substring(0,m)+u.newText+o.substring(f,o.length);else throw new Error("Overlapping edit");c=m}return o}t.applyEdits=r;function i(s,a){if(s.length<=1)return s;const o=s.length/2|0,l=s.slice(0,o),c=s.slice(o);i(l,a),i(c,a);let d=0,u=0,m=0;for(;d0&&e.push(n.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return ye.create(0,e);for(;re?i=a:r=a+1}let s=r-1;return ye.create(s,e-n[s])}offsetAt(e){let n=this.getLineOffsets();if(e.line>=n.length)return this._content.length;if(e.line<0)return 0;let r=n[e.line],i=e.line+1"u"}t.undefined=r;function i(f){return f===!0||f===!1}t.boolean=i;function s(f){return e.call(f)==="[object String]"}t.string=s;function a(f){return e.call(f)==="[object Number]"}t.number=a;function o(f,g,b){return e.call(f)==="[object Number]"&&g<=f&&f<=b}t.numberRange=o;function l(f){return e.call(f)==="[object Number]"&&-2147483648<=f&&f<=2147483647}t.integer=l;function c(f){return e.call(f)==="[object Number]"&&0<=f&&f<=2147483647}t.uinteger=c;function d(f){return e.call(f)==="[object Function]"}t.func=d;function u(f){return f!==null&&typeof f=="object"}t.objectLiteral=u;function m(f,g){return Array.isArray(f)&&f.every(g)}t.typedArray=m})(C||(C={}));class Tn{constructor(e,n,r,i){this._uri=e,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){const n=this.offsetAt(e.start),r=this.offsetAt(e.end);return this._content.substring(n,r)}return this._content}update(e,n){for(let r of e)if(Tn.isIncremental(r)){const i=pc(r.range),s=this.offsetAt(i.start),a=this.offsetAt(i.end);this._content=this._content.substring(0,s)+r.text+this._content.substring(a,this._content.length);const o=Math.max(i.start.line,0),l=Math.max(i.end.line,0);let c=this._lineOffsets;const d=uc(r.text,!1,s);if(l-o===d.length)for(let m=0,f=d.length;me?i=a:r=a+1}let s=r-1;return{line:s,character:e-n[s]}}offsetAt(e){let n=this.getLineOffsets();if(e.line>=n.length)return this._content.length;if(e.line<0)return 0;let r=n[e.line],i=e.line+1{let m=d.range.start.line-u.range.start.line;return m===0?d.range.start.character-u.range.start.character:m}),l=0;const c=[];for(const d of o){let u=i.offsetAt(d.range.start);if(ul&&c.push(a.substring(l,u)),d.newText.length&&c.push(d.newText),l=i.offsetAt(d.range.end)}return c.push(a.substr(l)),c.join("")}t.applyEdits=r})(is||(is={}));function ss(t,e){if(t.length<=1)return t;const n=t.length/2|0,r=t.slice(0,n),i=t.slice(n);ss(r,e),ss(i,e);let s=0,a=0,o=0;for(;sn.line||e.line===n.line&&e.character>n.character?{start:n,end:e}:t}function Kp(t){const e=pc(t.range);return e!==t.range?{newText:t.newText,range:e}:t}var mc;(function(t){t.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[He.Markdown,He.PlainText]}},hover:{contentFormat:[He.Markdown,He.PlainText]}}}})(mc||(mc={}));var On;(function(t){t[t.Unknown=0]="Unknown",t[t.File=1]="File",t[t.Directory=2]="Directory",t[t.SymbolicLink=64]="SymbolicLink"})(On||(On={}));const Zp=/(^#([0-9A-F]{3}){1,2}$)|(^#([0-9A-F]{4}){1,2}$)/i,em=[{label:"rgb",func:"rgb($red, $green, $blue)",insertText:"rgb(${1:red}, ${2:green}, ${3:blue})",desc:w("Creates a Color from red, green, and blue values.")},{label:"rgba",func:"rgba($red, $green, $blue, $alpha)",insertText:"rgba(${1:red}, ${2:green}, ${3:blue}, ${4:alpha})",desc:w("Creates a Color from red, green, blue, and alpha values.")},{label:"rgb relative",func:"rgb(from $color $red $green $blue)",insertText:"rgb(from ${1:color} ${2:r} ${3:g} ${4:b})",desc:w("Creates a Color from the red, green, and blue values of another Color.")},{label:"hsl",func:"hsl($hue, $saturation, $lightness)",insertText:"hsl(${1:hue}, ${2:saturation}, ${3:lightness})",desc:w("Creates a Color from hue, saturation, and lightness values.")},{label:"hsla",func:"hsla($hue, $saturation, $lightness, $alpha)",insertText:"hsla(${1:hue}, ${2:saturation}, ${3:lightness}, ${4:alpha})",desc:w("Creates a Color from hue, saturation, lightness, and alpha values.")},{label:"hsl relative",func:"hsl(from $color $hue $saturation $lightness)",insertText:"hsl(from ${1:color} ${2:h} ${3:s} ${4:l})",desc:w("Creates a Color from the hue, saturation, and lightness values of another Color.")},{label:"hwb",func:"hwb($hue $white $black)",insertText:"hwb(${1:hue} ${2:white} ${3:black})",desc:w("Creates a Color from hue, white, and black values.")},{label:"hwb relative",func:"hwb(from $color $hue $white $black)",insertText:"hwb(from ${1:color} ${2:h} ${3:w} ${4:b})",desc:w("Creates a Color from the hue, white, and black values of another Color.")},{label:"lab",func:"lab($lightness $a $b)",insertText:"lab(${1:lightness} ${2:a} ${3:b})",desc:w("Creates a Color from lightness, a, and b values.")},{label:"lab relative",func:"lab(from $color $lightness $a $b)",insertText:"lab(from ${1:color} ${2:l} ${3:a} ${4:b})",desc:w("Creates a Color from the lightness, a, and b values of another Color.")},{label:"oklab",func:"oklab($lightness $a $b)",insertText:"oklab(${1:lightness} ${2:a} ${3:b})",desc:w("Creates a Color from lightness, a, and b values.")},{label:"oklab relative",func:"oklab(from $color $lightness $a $b)",insertText:"oklab(from ${1:color} ${2:l} ${3:a} ${4:b})",desc:w("Creates a Color from the lightness, a, and b values of another Color.")},{label:"lch",func:"lch($lightness $chroma $hue)",insertText:"lch(${1:lightness} ${2:chroma} ${3:hue})",desc:w("Creates a Color from lightness, chroma, and hue values.")},{label:"lch relative",func:"lch(from $color $lightness $chroma $hue)",insertText:"lch(from ${1:color} ${2:l} ${3:c} ${4:h})",desc:w("Creates a Color from the lightness, chroma, and hue values of another Color.")},{label:"oklch",func:"oklch($lightness $chroma $hue)",insertText:"oklch(${1:lightness} ${2:chroma} ${3:hue})",desc:w("Creates a Color from lightness, chroma, and hue values.")},{label:"oklch relative",func:"oklch(from $color $lightness $chroma $hue)",insertText:"oklch(from ${1:color} ${2:l} ${3:c} ${4:h})",desc:w("Creates a Color from the lightness, chroma, and hue values of another Color.")},{label:"color",func:"color($color-space $red $green $blue)",insertText:"color(${1|srgb,srgb-linear,display-p3,a98-rgb,prophoto-rgb,rec2020,xyx,xyz-d50,xyz-d65|} ${2:red} ${3:green} ${4:blue})",desc:w("Creates a Color in a specific color space from red, green, and blue values.")},{label:"color relative",func:"color(from $color $color-space $red $green $blue)",insertText:"color(from ${1:color} ${2|srgb,srgb-linear,display-p3,a98-rgb,prophoto-rgb,rec2020,xyx,xyz-d50,xyz-d65|} ${3:r} ${4:g} ${5:b})",desc:w("Creates a Color in a specific color space from the red, green, and blue values of another Color.")},{label:"color-mix",func:"color-mix(in $color-space, $color $percentage, $color $percentage)",insertText:"color-mix(in ${1|srgb,srgb-linear,lab,oklab,xyz,xyz-d50,xyz-d65|}, ${3:color} ${4:percentage}, ${5:color} ${6:percentage})",desc:w("Mix two colors together in a rectangular color space.")},{label:"color-mix hue",func:"color-mix(in $color-space $interpolation-method hue, $color $percentage, $color $percentage)",insertText:"color-mix(in ${1|hsl,hwb,lch,oklch|} ${2|shorter hue,longer hue,increasing hue,decreasing hue|}, ${3:color} ${4:percentage}, ${5:color} ${6:percentage})",desc:w("Mix two colors together in a polar color space.")}],tm=/^(rgb|rgba|hsl|hsla|hwb)$/i,Sr={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rebeccapurple:"#663399",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},nm=new RegExp(`^(${Object.keys(Sr).join("|")})$`,"i"),as={currentColor:"The value of the 'color' property. The computed value of the 'currentColor' keyword is the computed value of the 'color' property. If the 'currentColor' keyword is set on the 'color' property itself, it is treated as 'color:inherit' at parse time.",transparent:"Fully transparent. This keyword can be considered a shorthand for rgba(0,0,0,0) which is its computed value."},rm=new RegExp(`^(${Object.keys(as).join("|")})$`,"i");function gt(t,e){const r=t.getText().match(/^([-+]?[0-9]*\.?[0-9]+)(%?)$/);if(r){r[2]&&(e=100);const i=parseFloat(r[1])/e;if(i>=0&&i<=1)return i}throw new Error}function fc(t){const e=t.getText(),n=e.match(/^([-+]?[0-9]*\.?[0-9]+)(deg|rad|grad|turn)?$/);if(n)switch(n[2]){case"deg":return parseFloat(e)%360;case"rad":return parseFloat(e)*180/Math.PI%360;case"grad":return parseFloat(e)*.9%360;case"turn":return parseFloat(e)*360%360;default:if(typeof n[2]>"u")return parseFloat(e)%360}throw new Error}function im(t){const e=t.getName();return e?tm.test(e):!1}function gc(t){return Zp.test(t)||nm.test(t)||rm.test(t)}const bc=48,sm=57,am=65,Cr=97,om=102;function de(t){return t=Cr&&t<=om?t-Cr+10:0)}function wc(t){if(t[0]!=="#")return null;switch(t.length){case 4:return{red:de(t.charCodeAt(1))*17/255,green:de(t.charCodeAt(2))*17/255,blue:de(t.charCodeAt(3))*17/255,alpha:1};case 5:return{red:de(t.charCodeAt(1))*17/255,green:de(t.charCodeAt(2))*17/255,blue:de(t.charCodeAt(3))*17/255,alpha:de(t.charCodeAt(4))*17/255};case 7:return{red:(de(t.charCodeAt(1))*16+de(t.charCodeAt(2)))/255,green:(de(t.charCodeAt(3))*16+de(t.charCodeAt(4)))/255,blue:(de(t.charCodeAt(5))*16+de(t.charCodeAt(6)))/255,alpha:1};case 9:return{red:(de(t.charCodeAt(1))*16+de(t.charCodeAt(2)))/255,green:(de(t.charCodeAt(3))*16+de(t.charCodeAt(4)))/255,blue:(de(t.charCodeAt(5))*16+de(t.charCodeAt(6)))/255,alpha:(de(t.charCodeAt(7))*16+de(t.charCodeAt(8)))/255}}return null}function vc(t,e,n,r=1){if(t=t/60,e===0)return{red:n,green:n,blue:n,alpha:r};{const i=(o,l,c)=>{for(;c<0;)c+=6;for(;c>=6;)c-=6;return c<1?(l-o)*c+o:c<3?l:c<4?(l-o)*(4-c)+o:o},s=n<=.5?n*(e+1):n+e-n*e,a=n*2-s;return{red:i(a,s,t+2),green:i(a,s,t),blue:i(a,s,t-2),alpha:r}}}function yc(t){const e=t.red,n=t.green,r=t.blue,i=t.alpha,s=Math.max(e,n,r),a=Math.min(e,n,r);let o=0,l=0;const c=(a+s)/2,d=s-a;if(d>0){switch(l=Math.min(c<=.5?d/(2*c):d/(2-2*c),1),s){case e:o=(n-r)/d+(n=1){const l=e/(e+n);return{red:l,green:l,blue:l,alpha:r}}const i=vc(t,1,.5,r);let s=i.red;s*=1-e-n,s+=e;let a=i.green;a*=1-e-n,a+=e;let o=i.blue;return o*=1-e-n,o+=e,{red:s,green:a,blue:o,alpha:r}}function cm(t){const e=yc(t),n=Math.min(t.red,t.green,t.blue),r=1-Math.max(t.red,t.green,t.blue);return{h:e.h,w:n,b:r,a:e.a}}function hm(t){if(t.type===v.HexColorValue){const e=t.getText();return wc(e)}else if(t.type===v.Function){const e=t,n=e.getName();let r=e.getArguments().getChildren();if(r.length===1){const i=r[0].getChildren();if(i.length===1&&i[0].type===v.Expression&&(r=i[0].getChildren(),r.length===3)){const s=r[2];if(s instanceof Oi){const a=s.getLeft(),o=s.getRight(),l=s.getOperator();a&&o&&l&&l.matches("/")&&(r=[r[0],r[1],a,o])}}}if(!n||r.length<3||r.length>4)return null;try{const i=r.length===4?gt(r[3],1):1;if(n==="rgb"||n==="rgba")return{red:gt(r[0],255),green:gt(r[1],255),blue:gt(r[2],255),alpha:i};if(n==="hsl"||n==="hsla"){const s=fc(r[0]),a=gt(r[1],100),o=gt(r[2],100);return vc(s,a,o,i)}else if(n==="hwb"){const s=fc(r[0]),a=gt(r[1],100),o=gt(r[2],100);return lm(s,a,o,i)}}catch{return null}}else if(t.type===v.Identifier){if(t.parent&&t.parent.type!==v.Term)return null;const e=t.parent;if(e&&e.parent&&e.parent.type===v.BinaryExpression){const i=e.parent;if(i.parent&&i.parent.type===v.ListEntry&&i.parent.key===i)return null}const n=t.getText().toLowerCase();if(n==="none")return null;const r=Sr[n];if(r)return wc(r)}return null}const xc={bottom:"Computes to ‘100%’ for the vertical position if one or two values are given, otherwise specifies the bottom edge as the origin for the next offset.",center:"Computes to ‘50%’ (‘left 50%’) for the horizontal position if the horizontal position is not otherwise specified, or ‘50%’ (‘top 50%’) for the vertical position if it is.",left:"Computes to ‘0%’ for the horizontal position if one or two values are given, otherwise specifies the left edge as the origin for the next offset.",right:"Computes to ‘100%’ for the horizontal position if one or two values are given, otherwise specifies the right edge as the origin for the next offset.",top:"Computes to ‘0%’ for the vertical position if one or two values are given, otherwise specifies the top edge as the origin for the next offset."},Sc={"no-repeat":"Placed once and not repeated in this direction.",repeat:"Repeated in this direction as often as needed to cover the background painting area.","repeat-x":"Computes to ‘repeat no-repeat’.","repeat-y":"Computes to ‘no-repeat repeat’.",round:"Repeated as often as will fit within the background positioning area. If it doesn’t fit a whole number of times, it is rescaled so that it does.",space:"Repeated as often as will fit within the background positioning area without being clipped and then the images are spaced out to fill the area."},Cc={dashed:"A series of square-ended dashes.",dotted:"A series of round dots.",double:"Two parallel solid lines with some space between them.",groove:"Looks as if it were carved in the canvas.",hidden:"Same as ‘none’, but has different behavior in the border conflict resolution rules for border-collapsed tables.",inset:"Looks as if the content on the inside of the border is sunken into the canvas.",none:"No border. Color and width are ignored.",outset:"Looks as if the content on the inside of the border is coming out of the canvas.",ridge:"Looks as if it were coming out of the canvas.",solid:"A single line segment."},dm=["medium","thick","thin"],kc={"border-box":"The background is painted within (clipped to) the border box.","content-box":"The background is painted within (clipped to) the content box.","padding-box":"The background is painted within (clipped to) the padding box."},_c={"margin-box":"Uses the margin box as reference box.","fill-box":"Uses the object bounding box as reference box.","stroke-box":"Uses the stroke bounding box as reference box.","view-box":"Uses the nearest SVG viewport as reference box."},Ec={initial:"Represents the value specified as the property’s initial value.",inherit:"Represents the computed value of the property on the element’s parent.",unset:"Acts as either `inherit` or `initial`, depending on whether the property is inherited or not."},Fc={"var()":"Evaluates the value of a custom variable.","calc()":"Evaluates an mathematical expression. The following operators can be used: + - * /."},Rc={"url()":"Reference an image file by URL","image()":"Provide image fallbacks and annotations.","-webkit-image-set()":"Provide multiple resolutions. Remember to use unprefixed image-set() in addition.","image-set()":"Provide multiple resolutions of an image and const the UA decide which is most appropriate in a given situation.","-moz-element()":"Use an element in the document as an image. Remember to use unprefixed element() in addition.","element()":"Use an element in the document as an image.","cross-fade()":"Indicates the two images to be combined and how far along in the transition the combination is.","-webkit-gradient()":"Deprecated. Use modern linear-gradient() or radial-gradient() instead.","-webkit-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","-moz-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","-o-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","linear-gradient()":"A linear gradient is created by specifying a straight gradient line, and then several colors placed along that line.","-webkit-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","-moz-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","-o-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","repeating-linear-gradient()":"Same as linear-gradient, except the color-stops are repeated infinitely in both directions, with their positions shifted by multiples of the difference between the last specified color-stop’s position and the first specified color-stop’s position.","-webkit-radial-gradient()":"Radial gradient. Remember to use unprefixed version in addition.","-moz-radial-gradient()":"Radial gradient. Remember to use unprefixed version in addition.","radial-gradient()":"Colors emerge from a single point and smoothly spread outward in a circular or elliptical shape.","-webkit-repeating-radial-gradient()":"Repeating radial gradient. Remember to use unprefixed version in addition.","-moz-repeating-radial-gradient()":"Repeating radial gradient. Remember to use unprefixed version in addition.","repeating-radial-gradient()":"Same as radial-gradient, except the color-stops are repeated infinitely in both directions, with their positions shifted by multiples of the difference between the last specified color-stop’s position and the first specified color-stop’s position."},Nc={ease:"Equivalent to cubic-bezier(0.25, 0.1, 0.25, 1.0).","ease-in":"Equivalent to cubic-bezier(0.42, 0, 1.0, 1.0).","ease-in-out":"Equivalent to cubic-bezier(0.42, 0, 0.58, 1.0).","ease-out":"Equivalent to cubic-bezier(0, 0, 0.58, 1.0).",linear:"Equivalent to cubic-bezier(0.0, 0.0, 1.0, 1.0).","step-end":"Equivalent to steps(1, end).","step-start":"Equivalent to steps(1, start).","steps()":"The first parameter specifies the number of intervals in the function. The second parameter, which is optional, is either the value “start” or “end”.","cubic-bezier()":"Specifies a cubic-bezier curve. The four values specify points P1 and P2 of the curve as (x1, y1, x2, y2).","cubic-bezier(0.6, -0.28, 0.735, 0.045)":"Ease-in Back. Overshoots.","cubic-bezier(0.68, -0.55, 0.265, 1.55)":"Ease-in-out Back. Overshoots.","cubic-bezier(0.175, 0.885, 0.32, 1.275)":"Ease-out Back. Overshoots.","cubic-bezier(0.6, 0.04, 0.98, 0.335)":"Ease-in Circular. Based on half circle.","cubic-bezier(0.785, 0.135, 0.15, 0.86)":"Ease-in-out Circular. Based on half circle.","cubic-bezier(0.075, 0.82, 0.165, 1)":"Ease-out Circular. Based on half circle.","cubic-bezier(0.55, 0.055, 0.675, 0.19)":"Ease-in Cubic. Based on power of three.","cubic-bezier(0.645, 0.045, 0.355, 1)":"Ease-in-out Cubic. Based on power of three.","cubic-bezier(0.215, 0.610, 0.355, 1)":"Ease-out Cubic. Based on power of three.","cubic-bezier(0.95, 0.05, 0.795, 0.035)":"Ease-in Exponential. Based on two to the power ten.","cubic-bezier(1, 0, 0, 1)":"Ease-in-out Exponential. Based on two to the power ten.","cubic-bezier(0.19, 1, 0.22, 1)":"Ease-out Exponential. Based on two to the power ten.","cubic-bezier(0.47, 0, 0.745, 0.715)":"Ease-in Sine.","cubic-bezier(0.445, 0.05, 0.55, 0.95)":"Ease-in-out Sine.","cubic-bezier(0.39, 0.575, 0.565, 1)":"Ease-out Sine.","cubic-bezier(0.55, 0.085, 0.68, 0.53)":"Ease-in Quadratic. Based on power of two.","cubic-bezier(0.455, 0.03, 0.515, 0.955)":"Ease-in-out Quadratic. Based on power of two.","cubic-bezier(0.25, 0.46, 0.45, 0.94)":"Ease-out Quadratic. Based on power of two.","cubic-bezier(0.895, 0.03, 0.685, 0.22)":"Ease-in Quartic. Based on power of four.","cubic-bezier(0.77, 0, 0.175, 1)":"Ease-in-out Quartic. Based on power of four.","cubic-bezier(0.165, 0.84, 0.44, 1)":"Ease-out Quartic. Based on power of four.","cubic-bezier(0.755, 0.05, 0.855, 0.06)":"Ease-in Quintic. Based on power of five.","cubic-bezier(0.86, 0, 0.07, 1)":"Ease-in-out Quintic. Based on power of five.","cubic-bezier(0.23, 1, 0.320, 1)":"Ease-out Quintic. Based on power of five."},Ic={"circle()":"Defines a circle.","ellipse()":"Defines an ellipse.","inset()":"Defines an inset rectangle.","polygon()":"Defines a polygon."},Dc={length:["cap","ch","cm","cqb","cqh","cqi","cqmax","cqmin","cqw","dvb","dvh","dvi","dvw","em","ex","ic","in","lh","lvb","lvh","lvi","lvw","mm","pc","pt","px","q","rcap","rch","rem","rex","ric","rlh","svb","svh","svi","svw","vb","vh","vi","vmax","vmin","vw"],angle:["deg","rad","grad","turn"],time:["ms","s"],frequency:["Hz","kHz"],resolution:["dpi","dpcm","dppx"],percentage:["%","fr"]},um=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","const","video","wbr"],pm=["circle","clipPath","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","hatch","hatchpath","image","line","linearGradient","marker","mask","mesh","meshpatch","meshrow","metadata","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","solidcolor","stop","svg","switch","symbol","text","textPath","tspan","use","view"],mm=["@bottom-center","@bottom-left","@bottom-left-corner","@bottom-right","@bottom-right-corner","@left-bottom","@left-middle","@left-top","@right-bottom","@right-middle","@right-top","@top-center","@top-left","@top-left-corner","@top-right","@top-right-corner"];function kr(t){return Object.keys(t).map(e=>t[e])}function Te(t){return typeof t<"u"}class _r{constructor(e=new Nn){this.keyframeRegex=/^@(\-(webkit|ms|moz|o)\-)?keyframes$/i,this.scanner=e,this.token={type:p.EOF,offset:-1,len:0,text:""},this.prevToken=void 0}peekIdent(e){return p.Ident===this.token.type&&e.length===this.token.text.length&&e===this.token.text.toLowerCase()}peekKeyword(e){return p.AtKeyword===this.token.type&&e.length===this.token.text.length&&e===this.token.text.toLowerCase()}peekDelim(e){return p.Delim===this.token.type&&e===this.token.text}peek(e){return e===this.token.type}peekOne(...e){return e.indexOf(this.token.type)!==-1}peekRegExp(e,n){return e!==this.token.type?!1:n.test(this.token.text)}hasWhitespace(){return!!this.prevToken&&this.prevToken.offset+this.prevToken.len!==this.token.offset}consumeToken(){this.prevToken=this.token,this.token=this.scanner.scan()}acceptUnicodeRange(){const e=this.scanner.tryScanUnicode();return e?(this.prevToken=e,this.token=this.scanner.scan(),!0):!1}mark(){return{prev:this.prevToken,curr:this.token,pos:this.scanner.pos()}}restoreAtMark(e){this.prevToken=e.prev,this.token=e.curr,this.scanner.goBackTo(e.pos)}try(e){const n=this.mark(),r=e();return r||(this.restoreAtMark(n),null)}acceptOneKeyword(e){if(p.AtKeyword===this.token.type){for(const n of e)if(n.length===this.token.text.length&&n===this.token.text.toLowerCase())return this.consumeToken(),!0}return!1}accept(e){return e===this.token.type?(this.consumeToken(),!0):!1}acceptIdent(e){return this.peekIdent(e)?(this.consumeToken(),!0):!1}acceptKeyword(e){return this.peekKeyword(e)?(this.consumeToken(),!0):!1}acceptDelim(e){return this.peekDelim(e)?(this.consumeToken(),!0):!1}acceptRegexp(e){return e.test(this.token.text)?(this.consumeToken(),!0):!1}_parseRegexp(e){let n=this.createNode(v.Identifier);do;while(this.acceptRegexp(e));return this.finish(n)}acceptUnquotedString(){const e=this.scanner.pos();this.scanner.goBackTo(this.token.offset);const n=this.scanner.scanUnquotedString();return n?(this.token=n,this.consumeToken(),!0):(this.scanner.goBackTo(e),!1)}resync(e,n){for(;;){if(e&&e.indexOf(this.token.type)!==-1)return this.consumeToken(),!0;if(n&&n.indexOf(this.token.type)!==-1)return!0;if(this.token.type===p.EOF)return!1;this.token=this.scanner.scan()}}createNode(e){return new W(this.token.offset,this.token.len,e)}create(e){return new e(this.token.offset,this.token.len)}finish(e,n,r,i){if(!(e instanceof ve)&&(n&&this.markError(e,n,r,i),this.prevToken)){const s=this.prevToken.offset+this.prevToken.len;e.length=s>e.offset?s-e.offset:0}return e}markError(e,n,r,i){this.token!==this.lastErrorToken&&(e.addIssue(new yl(e,n,Ne.Error,void 0,this.token.offset,this.token.len)),this.lastErrorToken=this.token),(r||i)&&this.resync(r,i)}parseStylesheet(e){const n=e.version,r=e.getText(),i=(s,a)=>{if(e.version!==n)throw new Error("Underlying model has changed, AST is no longer valid");return r.substr(s,a)};return this.internalParse(r,this._parseStylesheet,i)}internalParse(e,n,r){this.scanner.setSource(e),this.token=this.scanner.scan();const i=n.bind(this)();return i&&(r?i.textProvider=r:i.textProvider=(s,a)=>e.substr(s,a)),i}_parseStylesheet(){const e=this.create(fp);for(;e.addChild(this._parseStylesheetStart()););let n=!1;do{let r=!1;do{r=!1;const i=this._parseStylesheetStatement();for(i&&(e.addChild(i),r=!0,n=!1,!this.peek(p.EOF)&&this._needsSemicolonAfter(i)&&!this.accept(p.SemiColon)&&this.markError(e,S.SemiColonExpected));this.accept(p.SemiColon)||this.accept(p.CDO)||this.accept(p.CDC);)r=!0,n=!1}while(r);if(this.peek(p.EOF))break;n||(this.peek(p.AtKeyword)?this.markError(e,S.UnknownAtRule):this.markError(e,S.RuleOrSelectorExpected),n=!0),this.consumeToken()}while(!this.peek(p.EOF));return this.finish(e)}_parseStylesheetStart(){return this._parseCharset()}_parseStylesheetStatement(e=!1){return this.peek(p.AtKeyword)?this._parseStylesheetAtStatement(e):this._parseRuleset(e)}_parseStylesheetAtStatement(e=!1){return this._parseImport()||this._parseMedia(e)||this._parsePage()||this._parseFontFace()||this._parseKeyframe()||this._parseSupports(e)||this._parseLayer(e)||this._parsePropertyAtRule()||this._parseViewPort()||this._parseNamespace()||this._parseDocument()||this._parseContainer(e)||this._parseUnknownAtRule()}_tryParseRuleset(e){const n=this.mark();if(this._parseSelector(e)){for(;this.accept(p.Comma)&&this._parseSelector(e););if(this.accept(p.CurlyL))return this.restoreAtMark(n),this._parseRuleset(e)}return this.restoreAtMark(n),null}_parseRuleset(e=!1){const n=this.create(Ft),r=n.getSelectors();if(!r.addChild(this._parseSelector(e)))return null;for(;this.accept(p.Comma);)if(!r.addChild(this._parseSelector(e)))return this.finish(n,S.SelectorExpected);return this._parseBody(n,this._parseRuleSetDeclaration.bind(this))}_parseRuleSetDeclarationAtStatement(){return this._parseMedia(!0)||this._parseSupports(!0)||this._parseLayer(!0)||this._parseContainer(!0)||this._parseUnknownAtRule()}_parseRuleSetDeclaration(){return this.peek(p.AtKeyword)?this._parseRuleSetDeclarationAtStatement():this.peek(p.Ident)?this._tryParseRuleset(!0)||this._parseDeclaration():this._parseRuleset(!0)}_needsSemicolonAfter(e){switch(e.type){case v.Keyframe:case v.ViewPort:case v.Media:case v.Ruleset:case v.Namespace:case v.If:case v.For:case v.Each:case v.While:case v.MixinDeclaration:case v.FunctionDeclaration:case v.MixinContentDeclaration:return!1;case v.ExtendsReference:case v.MixinContentReference:case v.ReturnStatement:case v.MediaQuery:case v.Debug:case v.Import:case v.AtApplyRule:case v.CustomPropertyDeclaration:return!0;case v.VariableDeclaration:return e.needsSemicolon;case v.MixinReference:return!e.getContent();case v.Declaration:return!e.getNestedProperties()}return!1}_parseDeclarations(e){const n=this.create(Li);if(!this.accept(p.CurlyL))return null;let r=e();for(;n.addChild(r)&&!this.peek(p.CurlyR);){if(this._needsSemicolonAfter(r)&&!this.accept(p.SemiColon))return this.finish(n,S.SemiColonExpected,[p.SemiColon,p.CurlyR]);for(r&&this.prevToken&&this.prevToken.type===p.SemiColon&&(r.semicolonPosition=this.prevToken.offset);this.accept(p.SemiColon););r=e()}return this.accept(p.CurlyR)?this.finish(n):this.finish(n,S.RightCurlyExpected,[p.CurlyR,p.SemiColon])}_parseBody(e,n){return e.setDeclarations(this._parseDeclarations(n))?this.finish(e):this.finish(e,S.LeftCurlyExpected,[p.CurlyR,p.SemiColon])}_parseSelector(e){const n=this.create(In);let r=!1;for(e&&(r=n.addChild(this._parseCombinator()));n.addChild(this._parseSimpleSelector());)r=!0,n.addChild(this._parseCombinator());return r?this.finish(n):null}_parseDeclaration(e){const n=this._tryParseCustomPropertyDeclaration(e);if(n)return n;const r=this.create(Pe);return r.setProperty(this._parseProperty())?this.accept(p.Colon)?(this.prevToken&&(r.colonPosition=this.prevToken.offset),r.setValue(this._parseExpr())?(r.addChild(this._parsePrio()),this.peek(p.SemiColon)&&(r.semicolonPosition=this.token.offset),this.finish(r)):this.finish(r,S.PropertyValueExpected)):this.finish(r,S.ColonExpected,[p.Colon],e||[p.SemiColon]):null}_tryParseCustomPropertyDeclaration(e){if(!this.peekRegExp(p.Ident,/^--/))return null;const n=this.create(bp);if(!n.setProperty(this._parseProperty()))return null;if(!this.accept(p.Colon))return this.finish(n,S.ColonExpected,[p.Colon]);this.prevToken&&(n.colonPosition=this.prevToken.offset);const r=this.mark();if(this.peek(p.CurlyL)){const s=this.create(gp),a=this._parseDeclarations(this._parseRuleSetDeclaration.bind(this));if(s.setDeclarations(a)&&!a.isErroneous(!0)&&(s.addChild(this._parsePrio()),this.peek(p.SemiColon)))return this.finish(s),n.setPropertySet(s),n.semicolonPosition=this.token.offset,this.finish(n);this.restoreAtMark(r)}const i=this._parseExpr();return i&&!i.isErroneous(!0)&&(this._parsePrio(),this.peekOne(...e||[],p.SemiColon,p.EOF))?(n.setValue(i),this.peek(p.SemiColon)&&(n.semicolonPosition=this.token.offset),this.finish(n)):(this.restoreAtMark(r),n.addChild(this._parseCustomPropertyValue(e)),n.addChild(this._parsePrio()),Te(n.colonPosition)&&this.token.offset===n.colonPosition+1?this.finish(n,S.PropertyValueExpected):this.finish(n))}_parseCustomPropertyValue(e=[p.CurlyR]){const n=this.create(W),r=()=>s===0&&a===0&&o===0,i=()=>e.indexOf(this.token.type)!==-1;let s=0,a=0,o=0;e:for(;;){switch(this.token.type){case p.SemiColon:if(r())break e;break;case p.Exclamation:if(r())break e;break;case p.CurlyL:s++;break;case p.CurlyR:if(s--,s<0){if(i()&&a===0&&o===0)break e;return this.finish(n,S.LeftCurlyExpected)}break;case p.ParenthesisL:a++;break;case p.ParenthesisR:if(a--,a<0){if(i()&&o===0&&s===0)break e;return this.finish(n,S.LeftParenthesisExpected)}break;case p.BracketL:o++;break;case p.BracketR:if(o--,o<0)return this.finish(n,S.LeftSquareBracketExpected);break;case p.BadString:break e;case p.EOF:let l=S.RightCurlyExpected;return o>0?l=S.RightSquareBracketExpected:a>0&&(l=S.RightParenthesisExpected),this.finish(n,l)}this.consumeToken()}return this.finish(n)}_tryToParseDeclaration(e){const n=this.mark();return this._parseProperty()&&this.accept(p.Colon)?(this.restoreAtMark(n),this._parseDeclaration(e)):(this.restoreAtMark(n),null)}_parseProperty(){const e=this.create(Mi),n=this.mark();return(this.acceptDelim("*")||this.acceptDelim("_"))&&this.hasWhitespace()?(this.restoreAtMark(n),null):e.setIdentifier(this._parsePropertyIdentifier())?this.finish(e):null}_parsePropertyIdentifier(){return this._parseIdent()}_parseCharset(){if(!this.peek(p.Charset))return null;const e=this.create(W);return this.consumeToken(),this.accept(p.String)?this.accept(p.SemiColon)?this.finish(e):this.finish(e,S.SemiColonExpected):this.finish(e,S.IdentifierExpected)}_parseImport(){if(!this.peekKeyword("@import"))return null;const e=this.create(zi);return this.consumeToken(),!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral())?this.finish(e,S.URIOrStringExpected):this._completeParseImport(e)}_completeParseImport(e){if(this.acceptIdent("layer")&&this.accept(p.ParenthesisL)){if(!e.addChild(this._parseLayerName()))return this.finish(e,S.IdentifierExpected,[p.SemiColon]);if(!this.accept(p.ParenthesisR))return this.finish(e,S.RightParenthesisExpected,[p.ParenthesisR],[])}return this.acceptIdent("supports")&&this.accept(p.ParenthesisL)&&(e.addChild(this._tryToParseDeclaration()||this._parseSupportsCondition()),!this.accept(p.ParenthesisR))?this.finish(e,S.RightParenthesisExpected,[p.ParenthesisR],[]):(!this.peek(p.SemiColon)&&!this.peek(p.EOF)&&e.setMedialist(this._parseMediaQueryList()),this.finish(e))}_parseNamespace(){if(!this.peekKeyword("@namespace"))return null;const e=this.create(Np);return this.consumeToken(),!e.addChild(this._parseURILiteral())&&(e.addChild(this._parseIdent()),!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral()))?this.finish(e,S.URIExpected,[p.SemiColon]):this.accept(p.SemiColon)?this.finish(e):this.finish(e,S.SemiColonExpected)}_parseFontFace(){if(!this.peekKeyword("@font-face"))return null;const e=this.create(dl);return this.consumeToken(),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_parseViewPort(){if(!this.peekKeyword("@-ms-viewport")&&!this.peekKeyword("@-o-viewport")&&!this.peekKeyword("@viewport"))return null;const e=this.create(kp);return this.consumeToken(),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_parseKeyframe(){if(!this.peekRegExp(p.AtKeyword,this.keyframeRegex))return null;const e=this.create(pl),n=this.create(W);return this.consumeToken(),e.setKeyword(this.finish(n)),n.matches("@-ms-keyframes")&&this.markError(n,S.UnknownKeyword),e.setIdentifier(this._parseKeyframeIdent())?this._parseBody(e,this._parseKeyframeSelector.bind(this)):this.finish(e,S.IdentifierExpected,[p.CurlyR])}_parseKeyframeIdent(){return this._parseIdent([Q.Keyframe])}_parseKeyframeSelector(){const e=this.create(ml);let n=!1;if(e.addChild(this._parseIdent())&&(n=!0),this.accept(p.Percentage)&&(n=!0),!n)return null;for(;this.accept(p.Comma);)if(n=!1,e.addChild(this._parseIdent())&&(n=!0),this.accept(p.Percentage)&&(n=!0),!n)return this.finish(e,S.PercentageExpected);return this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_tryParseKeyframeSelector(){const e=this.create(ml),n=this.mark();let r=!1;if(e.addChild(this._parseIdent())&&(r=!0),this.accept(p.Percentage)&&(r=!0),!r)return null;for(;this.accept(p.Comma);)if(r=!1,e.addChild(this._parseIdent())&&(r=!0),this.accept(p.Percentage)&&(r=!0),!r)return this.restoreAtMark(n),null;return this.peek(p.CurlyL)?this._parseBody(e,this._parseRuleSetDeclaration.bind(this)):(this.restoreAtMark(n),null)}_parsePropertyAtRule(){if(!this.peekKeyword("@property"))return null;const e=this.create(Dp);return this.consumeToken(),!this.peekRegExp(p.Ident,/^--/)||!e.setName(this._parseIdent([Q.Property]))?this.finish(e,S.IdentifierExpected):this._parseBody(e,this._parseDeclaration.bind(this))}_parseLayer(e=!1){if(!this.peekKeyword("@layer"))return null;const n=this.create(Ip);this.consumeToken();const r=this._parseLayerNameList();return r&&n.setNames(r),(!r||r.getChildren().length===1)&&this.peek(p.CurlyL)?this._parseBody(n,this._parseLayerDeclaration.bind(this,e)):this.accept(p.SemiColon)?this.finish(n):this.finish(n,S.SemiColonExpected)}_parseLayerDeclaration(e=!1){return e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)}_parseLayerNameList(){const e=this.createNode(v.LayerNameList);if(!e.addChild(this._parseLayerName()))return null;for(;this.accept(p.Comma);)if(!e.addChild(this._parseLayerName()))return this.finish(e,S.IdentifierExpected);return this.finish(e)}_parseLayerName(){const e=this.createNode(v.LayerName);if(!e.addChild(this._parseIdent()))return null;for(;!this.hasWhitespace()&&this.acceptDelim(".");)if(this.hasWhitespace()||!e.addChild(this._parseIdent()))return this.finish(e,S.IdentifierExpected);return this.finish(e)}_parseSupports(e=!1){if(!this.peekKeyword("@supports"))return null;const n=this.create(Ti);return this.consumeToken(),n.addChild(this._parseSupportsCondition()),this._parseBody(n,this._parseSupportsDeclaration.bind(this,e))}_parseSupportsDeclaration(e=!1){return e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)}_parseSupportsCondition(){const e=this.create(Ln);if(this.acceptIdent("not"))e.addChild(this._parseSupportsConditionInParens());else if(e.addChild(this._parseSupportsConditionInParens()),this.peekRegExp(p.Ident,/^(and|or)$/i)){const n=this.token.text.toLowerCase();for(;this.acceptIdent(n);)e.addChild(this._parseSupportsConditionInParens())}return this.finish(e)}_parseSupportsConditionInParens(){const e=this.create(Ln);if(this.accept(p.ParenthesisL))return this.prevToken&&(e.lParent=this.prevToken.offset),!e.addChild(this._tryToParseDeclaration([p.ParenthesisR]))&&!this._parseSupportsCondition()?this.finish(e,S.ConditionExpected):this.accept(p.ParenthesisR)?(this.prevToken&&(e.rParent=this.prevToken.offset),this.finish(e)):this.finish(e,S.RightParenthesisExpected,[p.ParenthesisR],[]);if(this.peek(p.Ident)){const n=this.mark();if(this.consumeToken(),!this.hasWhitespace()&&this.accept(p.ParenthesisL)){let r=1;for(;this.token.type!==p.EOF&&r!==0;)this.token.type===p.ParenthesisL?r++:this.token.type===p.ParenthesisR&&r--,this.consumeToken();return this.finish(e)}else this.restoreAtMark(n)}return this.finish(e,S.LeftParenthesisExpected,[],[p.ParenthesisL])}_parseMediaDeclaration(e=!1){return e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)}_parseMedia(e=!1){if(!this.peekKeyword("@media"))return null;const n=this.create(Pi);return this.consumeToken(),n.addChild(this._parseMediaQueryList())?this._parseBody(n,this._parseMediaDeclaration.bind(this,e)):this.finish(n,S.MediaQueryExpected)}_parseMediaQueryList(){const e=this.create(fl);if(!e.addChild(this._parseMediaQuery()))return this.finish(e,S.MediaQueryExpected);for(;this.accept(p.Comma);)if(!e.addChild(this._parseMediaQuery()))return this.finish(e,S.MediaQueryExpected);return this.finish(e)}_parseMediaQuery(){const e=this.create(gl),n=this.mark();if(this.acceptIdent("not"),this.peek(p.ParenthesisL))this.restoreAtMark(n),e.addChild(this._parseMediaCondition());else{if(this.acceptIdent("only"),!e.addChild(this._parseIdent()))return null;this.acceptIdent("and")&&e.addChild(this._parseMediaCondition())}return this.finish(e)}_parseRatio(){const e=this.mark(),n=this.create(Vp);return this._parseNumeric()?this.acceptDelim("/")?this._parseNumeric()?this.finish(n):this.finish(n,S.NumberExpected):(this.restoreAtMark(e),null):null}_parseMediaCondition(){const e=this.create(Mp);this.acceptIdent("not");let n=!0;for(;n;){if(!this.accept(p.ParenthesisL))return this.finish(e,S.LeftParenthesisExpected,[],[p.CurlyL]);if(this.peek(p.ParenthesisL)||this.peekIdent("not")?e.addChild(this._parseMediaCondition()):e.addChild(this._parseMediaFeature()),!this.accept(p.ParenthesisR))return this.finish(e,S.RightParenthesisExpected,[],[p.CurlyL]);n=this.acceptIdent("and")||this.acceptIdent("or")}return this.finish(e)}_parseMediaFeature(){const e=[p.ParenthesisR],n=this.create(zp);if(n.addChild(this._parseMediaFeatureName())){if(this.accept(p.Colon)){if(!n.addChild(this._parseMediaFeatureValue()))return this.finish(n,S.TermExpected,[],e)}else if(this._parseMediaFeatureRangeOperator()){if(!n.addChild(this._parseMediaFeatureValue()))return this.finish(n,S.TermExpected,[],e);if(this._parseMediaFeatureRangeOperator()&&!n.addChild(this._parseMediaFeatureValue()))return this.finish(n,S.TermExpected,[],e)}}else if(n.addChild(this._parseMediaFeatureValue())){if(!this._parseMediaFeatureRangeOperator())return this.finish(n,S.OperatorExpected,[],e);if(!n.addChild(this._parseMediaFeatureName()))return this.finish(n,S.IdentifierExpected,[],e);if(this._parseMediaFeatureRangeOperator()&&!n.addChild(this._parseMediaFeatureValue()))return this.finish(n,S.TermExpected,[],e)}else return this.finish(n,S.IdentifierExpected,[],e);return this.finish(n)}_parseMediaFeatureRangeOperator(){return this.acceptDelim("<")||this.acceptDelim(">")?(this.hasWhitespace()||this.acceptDelim("="),!0):!!this.acceptDelim("=")}_parseMediaFeatureName(){return this._parseIdent()}_parseMediaFeatureValue(){return this._parseRatio()||this._parseTermExpression()}_parseMedium(){const e=this.create(W);return e.addChild(this._parseIdent())?this.finish(e):null}_parsePageDeclaration(){return this._parsePageMarginBox()||this._parseRuleSetDeclaration()}_parsePage(){if(!this.peekKeyword("@page"))return null;const e=this.create(Pp);if(this.consumeToken(),e.addChild(this._parsePageSelector())){for(;this.accept(p.Comma);)if(!e.addChild(this._parsePageSelector()))return this.finish(e,S.IdentifierExpected)}return this._parseBody(e,this._parsePageDeclaration.bind(this))}_parsePageMarginBox(){if(!this.peek(p.AtKeyword))return null;const e=this.create(Tp);return this.acceptOneKeyword(mm)||this.markError(e,S.UnknownAtRule,[],[p.CurlyL]),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_parsePageSelector(){if(!this.peek(p.Ident)&&!this.peek(p.Colon))return null;const e=this.create(W);return e.addChild(this._parseIdent()),this.accept(p.Colon)&&!e.addChild(this._parseIdent())?this.finish(e,S.IdentifierExpected):this.finish(e)}_parseDocument(){if(!this.peekKeyword("@-moz-document"))return null;const e=this.create(Lp);return this.consumeToken(),this.resync([],[p.CurlyL]),this._parseBody(e,this._parseStylesheetStatement.bind(this))}_parseContainerDeclaration(e=!1){return e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)}_parseContainer(e=!1){if(!this.peekKeyword("@container"))return null;const n=this.create(Ap);return this.consumeToken(),n.addChild(this._parseIdent()),n.addChild(this._parseContainerQuery()),this._parseBody(n,this._parseContainerDeclaration.bind(this,e))}_parseContainerQuery(){const e=this.create(W);if(this.acceptIdent("not"))e.addChild(this._parseContainerQueryInParens());else if(e.addChild(this._parseContainerQueryInParens()),this.peekIdent("and"))for(;this.acceptIdent("and");)e.addChild(this._parseContainerQueryInParens());else if(this.peekIdent("or"))for(;this.acceptIdent("or");)e.addChild(this._parseContainerQueryInParens());return this.finish(e)}_parseContainerQueryInParens(){const e=this.create(W);if(this.accept(p.ParenthesisL)){if(this.peekIdent("not")||this.peek(p.ParenthesisL)?e.addChild(this._parseContainerQuery()):e.addChild(this._parseMediaFeature()),!this.accept(p.ParenthesisR))return this.finish(e,S.RightParenthesisExpected,[],[p.CurlyL])}else if(this.acceptIdent("style")){if(this.hasWhitespace()||!this.accept(p.ParenthesisL))return this.finish(e,S.LeftParenthesisExpected,[],[p.CurlyL]);if(e.addChild(this._parseStyleQuery()),!this.accept(p.ParenthesisR))return this.finish(e,S.RightParenthesisExpected,[],[p.CurlyL])}else return this.finish(e,S.LeftParenthesisExpected,[],[p.CurlyL]);return this.finish(e)}_parseStyleQuery(){const e=this.create(W);if(this.acceptIdent("not"))e.addChild(this._parseStyleInParens());else if(this.peek(p.ParenthesisL)){if(e.addChild(this._parseStyleInParens()),this.peekIdent("and"))for(;this.acceptIdent("and");)e.addChild(this._parseStyleInParens());else if(this.peekIdent("or"))for(;this.acceptIdent("or");)e.addChild(this._parseStyleInParens())}else e.addChild(this._parseDeclaration([p.ParenthesisR]));return this.finish(e)}_parseStyleInParens(){const e=this.create(W);if(this.accept(p.ParenthesisL)){if(e.addChild(this._parseStyleQuery()),!this.accept(p.ParenthesisR))return this.finish(e,S.RightParenthesisExpected,[],[p.CurlyL])}else return this.finish(e,S.LeftParenthesisExpected,[],[p.CurlyL]);return this.finish(e)}_parseUnknownAtRule(){if(!this.peek(p.AtKeyword))return null;const e=this.create(wl);e.addChild(this._parseUnknownAtRuleName());const n=()=>i===0&&s===0&&a===0;let r=0,i=0,s=0,a=0;e:for(;;){switch(this.token.type){case p.SemiColon:if(n())break e;break;case p.EOF:return i>0?this.finish(e,S.RightCurlyExpected):a>0?this.finish(e,S.RightSquareBracketExpected):s>0?this.finish(e,S.RightParenthesisExpected):this.finish(e);case p.CurlyL:r++,i++;break;case p.CurlyR:if(i--,r>0&&i===0){if(this.consumeToken(),a>0)return this.finish(e,S.RightSquareBracketExpected);if(s>0)return this.finish(e,S.RightParenthesisExpected);break e}if(i<0){if(s===0&&a===0)break e;return this.finish(e,S.LeftCurlyExpected)}break;case p.ParenthesisL:s++;break;case p.ParenthesisR:if(s--,s<0)return this.finish(e,S.LeftParenthesisExpected);break;case p.BracketL:a++;break;case p.BracketR:if(a--,a<0)return this.finish(e,S.LeftSquareBracketExpected);break}this.consumeToken()}return e}_parseUnknownAtRuleName(){const e=this.create(W);return this.accept(p.AtKeyword)?this.finish(e):e}_parseOperator(){if(this.peekDelim("/")||this.peekDelim("*")||this.peekDelim("+")||this.peekDelim("-")||this.peek(p.Dashmatch)||this.peek(p.Includes)||this.peek(p.SubstringOperator)||this.peek(p.PrefixOperator)||this.peek(p.SuffixOperator)||this.peekDelim("=")){const e=this.createNode(v.Operator);return this.consumeToken(),this.finish(e)}else return null}_parseUnaryOperator(){if(!this.peekDelim("+")&&!this.peekDelim("-"))return null;const e=this.create(W);return this.consumeToken(),this.finish(e)}_parseCombinator(){if(this.peekDelim(">")){const e=this.create(W);this.consumeToken();const n=this.mark();if(!this.hasWhitespace()&&this.acceptDelim(">")){if(!this.hasWhitespace()&&this.acceptDelim(">"))return e.type=v.SelectorCombinatorShadowPiercingDescendant,this.finish(e);this.restoreAtMark(n)}return e.type=v.SelectorCombinatorParent,this.finish(e)}else if(this.peekDelim("+")){const e=this.create(W);return this.consumeToken(),e.type=v.SelectorCombinatorSibling,this.finish(e)}else if(this.peekDelim("~")){const e=this.create(W);return this.consumeToken(),e.type=v.SelectorCombinatorAllSiblings,this.finish(e)}else if(this.peekDelim("/")){const e=this.create(W);this.consumeToken();const n=this.mark();if(!this.hasWhitespace()&&this.acceptIdent("deep")&&!this.hasWhitespace()&&this.acceptDelim("/"))return e.type=v.SelectorCombinatorShadowPiercingDescendant,this.finish(e);this.restoreAtMark(n)}return null}_parseSimpleSelector(){const e=this.create(Yt);let n=0;for(e.addChild(this._parseElementName()||this._parseNestingSelector())&&n++;(n===0||!this.hasWhitespace())&&e.addChild(this._parseSimpleSelectorBody());)n++;return n>0?this.finish(e):null}_parseNestingSelector(){if(this.peekDelim("&")){const e=this.createNode(v.SelectorCombinator);return this.consumeToken(),this.finish(e)}return null}_parseSimpleSelectorBody(){return this._parsePseudo()||this._parseHash()||this._parseClass()||this._parseAttrib()}_parseSelectorIdent(){return this._parseIdent()}_parseHash(){if(!this.peek(p.Hash)&&!this.peekDelim("#"))return null;const e=this.createNode(v.IdentifierSelector);if(this.acceptDelim("#")){if(this.hasWhitespace()||!e.addChild(this._parseSelectorIdent()))return this.finish(e,S.IdentifierExpected)}else this.consumeToken();return this.finish(e)}_parseClass(){if(!this.peekDelim("."))return null;const e=this.createNode(v.ClassSelector);return this.consumeToken(),this.hasWhitespace()||!e.addChild(this._parseSelectorIdent())?this.finish(e,S.IdentifierExpected):this.finish(e)}_parseElementName(){const e=this.mark(),n=this.createNode(v.ElementNameSelector);return n.addChild(this._parseNamespacePrefix()),!n.addChild(this._parseSelectorIdent())&&!this.acceptDelim("*")?(this.restoreAtMark(e),null):this.finish(n)}_parseNamespacePrefix(){const e=this.mark(),n=this.createNode(v.NamespacePrefix);return!n.addChild(this._parseIdent())&&this.acceptDelim("*"),this.acceptDelim("|")?this.finish(n):(this.restoreAtMark(e),null)}_parseAttrib(){if(!this.peek(p.BracketL))return null;const e=this.create(Wp);return this.consumeToken(),e.setNamespacePrefix(this._parseNamespacePrefix()),e.setIdentifier(this._parseIdent())?(e.setOperator(this._parseOperator())&&(e.setValue(this._parseBinaryExpr()),this.acceptIdent("i"),this.acceptIdent("s")),this.accept(p.BracketR)?this.finish(e):this.finish(e,S.RightSquareBracketExpected)):this.finish(e,S.IdentifierExpected)}_parsePseudo(){const e=this._tryParsePseudoIdentifier();if(e){if(!this.hasWhitespace()&&this.accept(p.ParenthesisL)){const n=()=>{const i=this.create(W);if(!i.addChild(this._parseSelector(!0)))return null;for(;this.accept(p.Comma)&&i.addChild(this._parseSelector(!0)););return this.peek(p.ParenthesisR)?this.finish(i):null};if(!e.addChild(this.try(n))&&e.addChild(this._parseBinaryExpr())&&this.acceptIdent("of")&&!e.addChild(this.try(n)))return this.finish(e,S.SelectorExpected);if(!this.accept(p.ParenthesisR))return this.finish(e,S.RightParenthesisExpected)}return this.finish(e)}return null}_tryParsePseudoIdentifier(){if(!this.peek(p.Colon))return null;const e=this.mark(),n=this.createNode(v.PseudoSelector);return this.consumeToken(),this.hasWhitespace()?(this.restoreAtMark(e),null):(this.accept(p.Colon),this.hasWhitespace()||!n.addChild(this._parseIdent())?this.finish(n,S.IdentifierExpected):this.finish(n))}_tryParsePrio(){const e=this.mark(),n=this._parsePrio();return n||(this.restoreAtMark(e),null)}_parsePrio(){if(!this.peek(p.Exclamation))return null;const e=this.createNode(v.Prio);return this.accept(p.Exclamation)&&this.acceptIdent("important")?this.finish(e):null}_parseExpr(e=!1){const n=this.create(bl);if(!n.addChild(this._parseBinaryExpr()))return null;for(;;){if(this.peek(p.Comma)){if(e)return this.finish(n);this.consumeToken()}if(!n.addChild(this._parseBinaryExpr()))break}return this.finish(n)}_parseUnicodeRange(){if(!this.peekIdent("u"))return null;const e=this.create(mp);return this.acceptUnicodeRange()?this.finish(e):null}_parseNamedLine(){if(!this.peek(p.BracketL))return null;const e=this.createNode(v.GridLine);for(this.consumeToken();e.addChild(this._parseIdent()););return this.accept(p.BracketR)?this.finish(e):this.finish(e,S.RightSquareBracketExpected)}_parseBinaryExpr(e,n){let r=this.create(Oi);if(!r.setLeft(e||this._parseTerm()))return null;if(!r.setOperator(n||this._parseOperator()))return this.finish(r);if(!r.setRight(this._parseTerm()))return this.finish(r,S.TermExpected);r=this.finish(r);const i=this._parseOperator();return i&&(r=this._parseBinaryExpr(r,i)),this.finish(r)}_parseTerm(){let e=this.create(Op);return e.setOperator(this._parseUnaryOperator()),e.setExpression(this._parseTermExpression())?this.finish(e):null}_parseTermExpression(){return this._parseURILiteral()||this._parseUnicodeRange()||this._parseFunction()||this._parseIdent()||this._parseStringLiteral()||this._parseNumeric()||this._parseHexColor()||this._parseOperation()||this._parseNamedLine()}_parseOperation(){if(!this.peek(p.ParenthesisL))return null;const e=this.create(W);return this.consumeToken(),e.addChild(this._parseExpr()),this.accept(p.ParenthesisR)?this.finish(e):this.finish(e,S.RightParenthesisExpected)}_parseNumeric(){if(this.peek(p.Num)||this.peek(p.Percentage)||this.peek(p.Resolution)||this.peek(p.Length)||this.peek(p.EMS)||this.peek(p.EXS)||this.peek(p.Angle)||this.peek(p.Time)||this.peek(p.Dimension)||this.peek(p.ContainerQueryLength)||this.peek(p.Freq)){const e=this.create(Vi);return this.consumeToken(),this.finish(e)}return null}_parseStringLiteral(){if(!this.peek(p.String)&&!this.peek(p.BadString))return null;const e=this.createNode(v.StringLiteral);return this.consumeToken(),this.finish(e)}_parseURILiteral(){if(!this.peekRegExp(p.Ident,/^url(-prefix)?$/i))return null;const e=this.mark(),n=this.createNode(v.URILiteral);return this.accept(p.Ident),this.hasWhitespace()||!this.peek(p.ParenthesisL)?(this.restoreAtMark(e),null):(this.scanner.inURL=!0,this.consumeToken(),n.addChild(this._parseURLArgument()),this.scanner.inURL=!1,this.accept(p.ParenthesisR)?this.finish(n):this.finish(n,S.RightParenthesisExpected))}_parseURLArgument(){const e=this.create(W);return!this.accept(p.String)&&!this.accept(p.BadString)&&!this.acceptUnquotedString()?null:this.finish(e)}_parseIdent(e){if(!this.peek(p.Ident))return null;const n=this.create(ze);return e&&(n.referenceTypes=e),n.isCustomProperty=this.peekRegExp(p.Ident,/^--/),this.consumeToken(),this.finish(n)}_parseFunction(){const e=this.mark(),n=this.create(Dn);if(!n.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(p.ParenthesisL))return this.restoreAtMark(e),null;if(n.getArguments().addChild(this._parseFunctionArgument()))for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)n.getArguments().addChild(this._parseFunctionArgument())||this.markError(n,S.ExpressionExpected);return this.accept(p.ParenthesisR)?this.finish(n):this.finish(n,S.RightParenthesisExpected)}_parseFunctionIdentifier(){if(!this.peek(p.Ident))return null;const e=this.create(ze);if(e.referenceTypes=[Q.Function],this.acceptIdent("progid")){if(this.accept(p.Colon))for(;this.accept(p.Ident)&&this.acceptDelim("."););return this.finish(e)}return this.consumeToken(),this.finish(e)}_parseFunctionArgument(){const e=this.create(Qt);return e.setValue(this._parseExpr(!0))?this.finish(e):null}_parseHexColor(){if(this.peekRegExp(p.Hash,/^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/g)){const e=this.create(Wi);return this.consumeToken(),this.finish(e)}else return null}}function fm(t,e){let n=0,r=t.length;if(r===0)return 0;for(;ne+n||this.offset===e&&this.length===n?this.findInScope(e,n):null}findInScope(e,n=0){const r=e+n,i=fm(this.children,a=>a.offset>r);if(i===0)return this;const s=this.children[i-1];return s.offset<=e&&s.offset+s.length>=e+n?s.findInScope(e,n):this}addSymbol(e){this.symbols.push(e)}getSymbol(e,n){for(let r=0;r/g,">")}function wm(t,e){if(!t.description||t.description==="")return"";if(typeof t.description!="string")return t.description.value;let n="";if(e?.documentation!==!1){t.status&&(n+=zc(t.status)),n+=t.description;const r=Pc(t.browsers);r&&(n+=` -(`+r+")"),"syntax"in t&&(n+=` - -Syntax: ${t.syntax}`)}return t.references&&t.references.length>0&&e?.references!==!1&&(n.length>0&&(n+=` - -`),n+=t.references.map(r=>`${r.name}: ${r.url}`).join(" | ")),n}function vm(t,e){if(!t.description||t.description==="")return"";let n="";if(e?.documentation!==!1){t.status&&(n+=zc(t.status)),typeof t.description=="string"?n+=Rr(t.description):n+=t.description.kind===He.Markdown?t.description.value:Rr(t.description.value);const r=Pc(t.browsers);r&&(n+=` - -(`+Rr(r)+")"),"syntax"in t&&t.syntax&&(n+=` - -Syntax: ${Rr(t.syntax)}`)}return t.references&&t.references.length>0&&e?.references!==!1&&(n.length>0&&(n+=` - -`),n+=t.references.map(r=>`[${r.name}](${r.url})`).join(" | ")),n}function Pc(t=[]){return t.length===0?null:t.map(e=>{let n="";const r=e.match(/([A-Z]+)(\d+)?/),i=r[1],s=r[2];return i in Mc&&(n+=Mc[i]),s&&(n+=" "+s),n}).join(", ")}var Tc;(()=>{var t={470:i=>{function s(l){if(typeof l!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(l))}function a(l,c){for(var d,u="",m=0,f=-1,g=0,b=0;b<=l.length;++b){if(b2){var _=u.lastIndexOf("/");if(_!==u.length-1){_===-1?(u="",m=0):m=(u=u.slice(0,_)).length-1-u.lastIndexOf("/"),f=b,g=0;continue}}else if(u.length===2||u.length===1){u="",m=0,f=b,g=0;continue}}c&&(u.length>0?u+="/..":u="..",m=2)}else u.length>0?u+="/"+l.slice(f+1,b):u=l.slice(f+1,b),m=b-f-1;f=b,g=0}else d===46&&g!==-1?++g:g=-1}return u}var o={resolve:function(){for(var l,c="",d=!1,u=arguments.length-1;u>=-1&&!d;u--){var m;u>=0?m=arguments[u]:(l===void 0&&(l=process.cwd()),m=l),s(m),m.length!==0&&(c=m+"/"+c,d=m.charCodeAt(0)===47)}return c=a(c,!d),d?c.length>0?"/"+c:"/":c.length>0?c:"."},normalize:function(l){if(s(l),l.length===0)return".";var c=l.charCodeAt(0)===47,d=l.charCodeAt(l.length-1)===47;return(l=a(l,!c)).length!==0||c||(l="."),l.length>0&&d&&(l+="/"),c?"/"+l:l},isAbsolute:function(l){return s(l),l.length>0&&l.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var l,c=0;c0&&(l===void 0?l=d:l+="/"+d)}return l===void 0?".":o.normalize(l)},relative:function(l,c){if(s(l),s(c),l===c||(l=o.resolve(l))===(c=o.resolve(c)))return"";for(var d=1;db){if(c.charCodeAt(f+F)===47)return c.slice(f+F+1);if(F===0)return c.slice(f+F)}else m>b&&(l.charCodeAt(d+F)===47?_=F:F===0&&(_=0));break}var N=l.charCodeAt(d+F);if(N!==c.charCodeAt(f+F))break;N===47&&(_=F)}var E="";for(F=d+_+1;F<=u;++F)F!==u&&l.charCodeAt(F)!==47||(E.length===0?E+="..":E+="/..");return E.length>0?E+c.slice(f+_):(f+=_,c.charCodeAt(f)===47&&++f,c.slice(f))},_makeLong:function(l){return l},dirname:function(l){if(s(l),l.length===0)return".";for(var c=l.charCodeAt(0),d=c===47,u=-1,m=!0,f=l.length-1;f>=1;--f)if((c=l.charCodeAt(f))===47){if(!m){u=f;break}}else m=!1;return u===-1?d?"/":".":d&&u===1?"//":l.slice(0,u)},basename:function(l,c){if(c!==void 0&&typeof c!="string")throw new TypeError('"ext" argument must be a string');s(l);var d,u=0,m=-1,f=!0;if(c!==void 0&&c.length>0&&c.length<=l.length){if(c.length===l.length&&c===l)return"";var g=c.length-1,b=-1;for(d=l.length-1;d>=0;--d){var _=l.charCodeAt(d);if(_===47){if(!f){u=d+1;break}}else b===-1&&(f=!1,b=d+1),g>=0&&(_===c.charCodeAt(g)?--g==-1&&(m=d):(g=-1,m=b))}return u===m?m=b:m===-1&&(m=l.length),l.slice(u,m)}for(d=l.length-1;d>=0;--d)if(l.charCodeAt(d)===47){if(!f){u=d+1;break}}else m===-1&&(f=!1,m=d+1);return m===-1?"":l.slice(u,m)},extname:function(l){s(l);for(var c=-1,d=0,u=-1,m=!0,f=0,g=l.length-1;g>=0;--g){var b=l.charCodeAt(g);if(b!==47)u===-1&&(m=!1,u=g+1),b===46?c===-1?c=g:f!==1&&(f=1):c!==-1&&(f=-1);else if(!m){d=g+1;break}}return c===-1||u===-1||f===0||f===1&&c===u-1&&c===d+1?"":l.slice(c,u)},format:function(l){if(l===null||typeof l!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof l);return(function(c,d){var u=d.dir||d.root,m=d.base||(d.name||"")+(d.ext||"");return u?u===d.root?u+m:u+"/"+m:m})(0,l)},parse:function(l){s(l);var c={root:"",dir:"",base:"",ext:"",name:""};if(l.length===0)return c;var d,u=l.charCodeAt(0),m=u===47;m?(c.root="/",d=1):d=0;for(var f=-1,g=0,b=-1,_=!0,F=l.length-1,N=0;F>=d;--F)if((u=l.charCodeAt(F))!==47)b===-1&&(_=!1,b=F+1),u===46?f===-1?f=F:N!==1&&(N=1):f!==-1&&(N=-1);else if(!_){g=F+1;break}return f===-1||b===-1||N===0||N===1&&f===b-1&&f===g+1?b!==-1&&(c.base=c.name=g===0&&m?l.slice(1,b):l.slice(g,b)):(g===0&&m?(c.name=l.slice(1,f),c.base=l.slice(1,b)):(c.name=l.slice(g,f),c.base=l.slice(g,b)),c.ext=l.slice(f,b)),g>0?c.dir=l.slice(0,g-1):m&&(c.dir="/"),c},sep:"/",delimiter:":",win32:null,posix:null};o.posix=o,i.exports=o}},e={};function n(i){var s=e[i];if(s!==void 0)return s.exports;var a=e[i]={exports:{}};return t[i](a,a.exports,n),a.exports}n.d=(i,s)=>{for(var a in s)n.o(s,a)&&!n.o(i,a)&&Object.defineProperty(i,a,{enumerable:!0,get:s[a]})},n.o=(i,s)=>Object.prototype.hasOwnProperty.call(i,s),n.r=i=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var r={};(()=>{let i;n.r(r),n.d(r,{URI:()=>m,Utils:()=>$}),typeof process=="object"?i=process.platform==="win32":typeof navigator=="object"&&(i=navigator.userAgent.indexOf("Windows")>=0);const s=/^\w[\w\d+.-]*$/,a=/^\//,o=/^\/\//;function l(L,y){if(!L.scheme&&y)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${L.authority}", path: "${L.path}", query: "${L.query}", fragment: "${L.fragment}"}`);if(L.scheme&&!s.test(L.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(L.path){if(L.authority){if(!a.test(L.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(o.test(L.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}const c="",d="/",u=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class m{constructor(y,k,D,A,M,P=!1){yt(this,"scheme");yt(this,"authority");yt(this,"path");yt(this,"query");yt(this,"fragment");typeof y=="object"?(this.scheme=y.scheme||c,this.authority=y.authority||c,this.path=y.path||c,this.query=y.query||c,this.fragment=y.fragment||c):(this.scheme=(function(H,ee){return H||ee?H:"file"})(y,P),this.authority=k||c,this.path=(function(H,ee){switch(H){case"https":case"http":case"file":ee?ee[0]!==d&&(ee=d+ee):ee=d}return ee})(this.scheme,D||c),this.query=A||c,this.fragment=M||c,l(this,P))}static isUri(y){return y instanceof m||!!y&&typeof y.authority=="string"&&typeof y.fragment=="string"&&typeof y.path=="string"&&typeof y.query=="string"&&typeof y.scheme=="string"&&typeof y.fsPath=="string"&&typeof y.with=="function"&&typeof y.toString=="function"}get fsPath(){return N(this)}with(y){if(!y)return this;let{scheme:k,authority:D,path:A,query:M,fragment:P}=y;return k===void 0?k=this.scheme:k===null&&(k=c),D===void 0?D=this.authority:D===null&&(D=c),A===void 0?A=this.path:A===null&&(A=c),M===void 0?M=this.query:M===null&&(M=c),P===void 0?P=this.fragment:P===null&&(P=c),k===this.scheme&&D===this.authority&&A===this.path&&M===this.query&&P===this.fragment?this:new g(k,D,A,M,P)}static parse(y,k=!1){const D=u.exec(y);return D?new g(D[2]||c,V(D[4]||c),V(D[5]||c),V(D[7]||c),V(D[9]||c),k):new g(c,c,c,c,c)}static file(y){let k=c;if(i&&(y=y.replace(/\\/g,d)),y[0]===d&&y[1]===d){const D=y.indexOf(d,2);D===-1?(k=y.substring(2),y=d):(k=y.substring(2,D),y=y.substring(D)||d)}return new g("file",k,y,c,c)}static from(y){const k=new g(y.scheme,y.authority,y.path,y.query,y.fragment);return l(k,!0),k}toString(y=!1){return E(this,y)}toJSON(){return this}static revive(y){if(y){if(y instanceof m)return y;{const k=new g(y);return k._formatted=y.external,k._fsPath=y._sep===f?y.fsPath:null,k}}return y}}const f=i?1:void 0;class g extends m{constructor(){super(...arguments);yt(this,"_formatted",null);yt(this,"_fsPath",null)}get fsPath(){return this._fsPath||(this._fsPath=N(this)),this._fsPath}toString(k=!1){return k?E(this,!0):(this._formatted||(this._formatted=E(this,!1)),this._formatted)}toJSON(){const k={$mid:1};return this._fsPath&&(k.fsPath=this._fsPath,k._sep=f),this._formatted&&(k.external=this._formatted),this.path&&(k.path=this.path),this.scheme&&(k.scheme=this.scheme),this.authority&&(k.authority=this.authority),this.query&&(k.query=this.query),this.fragment&&(k.fragment=this.fragment),k}}const b={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function _(L,y,k){let D,A=-1;for(let M=0;M=97&&P<=122||P>=65&&P<=90||P>=48&&P<=57||P===45||P===46||P===95||P===126||y&&P===47||k&&P===91||k&&P===93||k&&P===58)A!==-1&&(D+=encodeURIComponent(L.substring(A,M)),A=-1),D!==void 0&&(D+=L.charAt(M));else{D===void 0&&(D=L.substr(0,M));const H=b[P];H!==void 0?(A!==-1&&(D+=encodeURIComponent(L.substring(A,M)),A=-1),D+=H):A===-1&&(A=M)}}return A!==-1&&(D+=encodeURIComponent(L.substring(A))),D!==void 0?D:L}function F(L){let y;for(let k=0;k1&&L.scheme==="file"?`//${L.authority}${L.path}`:L.path.charCodeAt(0)===47&&(L.path.charCodeAt(1)>=65&&L.path.charCodeAt(1)<=90||L.path.charCodeAt(1)>=97&&L.path.charCodeAt(1)<=122)&&L.path.charCodeAt(2)===58?L.path[1].toLowerCase()+L.path.substr(2):L.path,i&&(k=k.replace(/\//g,"\\")),k}function E(L,y){const k=y?F:_;let D="",{scheme:A,authority:M,path:P,query:H,fragment:ee}=L;if(A&&(D+=A,D+=":"),(M||A==="file")&&(D+=d,D+=d),M){let G=M.indexOf("@");if(G!==-1){const xe=M.substr(0,G);M=M.substr(G+1),G=xe.lastIndexOf(":"),G===-1?D+=k(xe,!1,!1):(D+=k(xe.substr(0,G),!1,!1),D+=":",D+=k(xe.substr(G+1),!1,!0)),D+="@"}M=M.toLowerCase(),G=M.lastIndexOf(":"),G===-1?D+=k(M,!1,!0):(D+=k(M.substr(0,G),!1,!0),D+=M.substr(G))}if(P){if(P.length>=3&&P.charCodeAt(0)===47&&P.charCodeAt(2)===58){const G=P.charCodeAt(1);G>=65&&G<=90&&(P=`/${String.fromCharCode(G+32)}:${P.substr(3)}`)}else if(P.length>=2&&P.charCodeAt(1)===58){const G=P.charCodeAt(0);G>=65&&G<=90&&(P=`${String.fromCharCode(G+32)}:${P.substr(2)}`)}D+=k(P,!0,!1)}return H&&(D+="?",D+=k(H,!1,!1)),ee&&(D+="#",D+=y?ee:_(ee,!1,!1)),D}function T(L){try{return decodeURIComponent(L)}catch{return L.length>3?L.substr(0,3)+T(L.substr(3)):L}}const O=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function V(L){return L.match(O)?L.replace(O,(y=>T(y))):L}var I=n(470);const R=I.posix||I,z="/";var $;(function(L){L.joinPath=function(y,...k){return y.with({path:R.join(y.path,...k)})},L.resolvePath=function(y,...k){let D=y.path,A=!1;D[0]!==z&&(D=z+D,A=!0);let M=R.resolve(D,...k);return A&&M[0]===z&&!y.authority&&(M=M.substring(1)),y.with({path:M})},L.dirname=function(y){if(y.path.length===0||y.path===z)return y;let k=R.dirname(y.path);return k.length===1&&k.charCodeAt(0)===46&&(k=""),y.with({path:k})},L.basename=function(y){return R.basename(y.path)},L.extname=function(y){return R.extname(y.path)}})($||($={}))})(),Tc=r})();const{URI:ls,Utils:wt}=Tc;function cs(t){return wt.dirname(ls.parse(t)).toString(!0)}function en(t,...e){return wt.joinPath(ls.parse(t),...e).toString(!0)}class ym{constructor(e){this.readDirectory=e,this.literalCompletions=[],this.importCompletions=[]}onCssURILiteralValue(e){this.literalCompletions.push(e)}onCssImportPath(e){this.importCompletions.push(e)}async computeCompletions(e,n){const r={items:[],isIncomplete:!1};for(const i of this.literalCompletions){const s=i.uriValue,a=hs(s);if(a==="."||a==="..")r.isIncomplete=!0;else{const o=await this.providePathSuggestions(s,i.position,i.range,e,n);for(let l of o)r.items.push(l)}}for(const i of this.importCompletions){const s=i.pathValue,a=hs(s);if(a==="."||a==="..")r.isIncomplete=!0;else{let o=await this.providePathSuggestions(s,i.position,i.range,e,n);e.languageId==="scss"&&o.forEach(l=>{pe(l.label,"_")&&ll(l.label,".scss")&&(l.textEdit?l.textEdit.newText=l.label.slice(1,-5):l.label=l.label.slice(1,-5))});for(let l of o)r.items.push(l)}}return r}async providePathSuggestions(e,n,r,i,s){const a=hs(e),o=pe(e,"'")||pe(e,'"'),l=o?a.slice(0,n.character-(r.start.character+1)):a.slice(0,n.character-r.start.character),c=i.uri,d=o?km(r,1,-1):r,u=Sm(l,a,d),m=l.substring(0,l.lastIndexOf("/")+1);let f=s.resolveReference(m||".",c);if(f)try{const g=[],b=await this.readDirectory(f);for(const[_,F]of b)_.charCodeAt(0)!==xm&&(F===On.Directory||en(f,_)!==c)&&g.push(Cm(_,F===On.Directory,u));return g}catch{}return[]}}const xm=46;function hs(t){return pe(t,"'")||pe(t,'"')?t.slice(1,-1):t}function Sm(t,e,n){let r;const i=t.lastIndexOf("/");if(i===-1)r=n;else{const s=e.slice(i+1),a=Ir(n.end,-s.length),o=s.indexOf(" ");let l;o!==-1?l=Ir(a,o):l=n.end,r=K.create(a,l)}return r}function Cm(t,e,n){return e?(t=t+"/",{label:Nr(t),kind:q.Folder,textEdit:j.replace(n,Nr(t)),command:{title:"Suggest",command:"editor.action.triggerSuggest"}}):{label:Nr(t),kind:q.File,textEdit:j.replace(n,Nr(t))}}function Nr(t){return t.replace(/(\s|\(|\)|,|"|')/g,"\\$1")}function Ir(t,e){return ye.create(t.line,t.character+e)}function km(t,e,n){const r=Ir(t.start,e),i=Ir(t.end,n);return K.create(r,i)}const it=Ie.Snippet,Oc={title:"Suggest",command:"editor.action.triggerSuggest"};var Ge;(function(t){t.Enums=" ",t.Normal="d",t.VendorPrefixed="x",t.Term="y",t.Variable="z"})(Ge||(Ge={}));class ds{constructor(e=null,n,r){this.variablePrefix=e,this.lsOptions=n,this.cssDataManager=r,this.completionParticipants=[]}configure(e){this.defaultSettings=e}getSymbolContext(){return this.symbolContext||(this.symbolContext=new os(this.styleSheet)),this.symbolContext}setCompletionParticipants(e){this.completionParticipants=e||[]}async doComplete2(e,n,r,i,s=this.defaultSettings){if(!this.lsOptions.fileSystemProvider||!this.lsOptions.fileSystemProvider.readDirectory)return this.doComplete(e,n,r,s);const a=new ym(this.lsOptions.fileSystemProvider.readDirectory),o=this.completionParticipants;this.completionParticipants=[a].concat(o);const l=this.doComplete(e,n,r,s);try{const c=await a.computeCompletions(e,i);return{isIncomplete:l.isIncomplete||c.isIncomplete,itemDefaults:l.itemDefaults,items:c.items.concat(l.items)}}finally{this.completionParticipants=o}}doComplete(e,n,r,i){this.offset=e.offsetAt(n),this.position=n,this.currentWord=Rm(e,this.offset),this.defaultReplaceRange=K.create(ye.create(this.position.line,this.position.character-this.currentWord.length),this.position),this.textDocument=e,this.styleSheet=r,this.documentSettings=i;try{const s={isIncomplete:!1,itemDefaults:{editRange:{start:{line:n.line,character:n.character-this.currentWord.length},end:n}},items:[]};this.nodePath=Di(this.styleSheet,this.offset);for(let a=this.nodePath.length-1;a>=0;a--){const o=this.nodePath[a];if(o instanceof Mi)this.getCompletionsForDeclarationProperty(o.getParent(),s);else if(o instanceof bl)o.parent instanceof $i?this.getVariableProposals(null,s):this.getCompletionsForExpression(o,s);else if(o instanceof Yt){const l=o.findAParent(v.ExtendsReference,v.Ruleset);if(l)if(l.type===v.ExtendsReference)this.getCompletionsForExtendsReference(l,o,s);else{const c=l;this.getCompletionsForSelector(c,c&&c.isNested(),s)}}else if(o instanceof Qt)this.getCompletionsForFunctionArgument(o,o.getParent(),s);else if(o instanceof Li)this.getCompletionsForDeclarations(o,s);else if(o instanceof pr)this.getCompletionsForVariableDeclaration(o,s);else if(o instanceof Ft)this.getCompletionsForRuleSet(o,s);else if(o instanceof $i)this.getCompletionsForInterpolation(o,s);else if(o instanceof ur)this.getCompletionsForFunctionDeclaration(o,s);else if(o instanceof mr)this.getCompletionsForMixinReference(o,s);else if(o instanceof Dn)this.getCompletionsForFunctionArgument(null,o,s);else if(o instanceof Ti)this.getCompletionsForSupports(o,s);else if(o instanceof Ln)this.getCompletionsForSupportsCondition(o,s);else if(o instanceof An)this.getCompletionsForExtendsReference(o,null,s);else if(o.type===v.URILiteral)this.getCompletionForUriLiteralValue(o,s);else if(o.parent===null)this.getCompletionForTopLevel(s);else if(o.type===v.StringLiteral&&this.isImportPathParent(o.parent.type))this.getCompletionForImportPath(o,s);else continue;if(s.items.length>0||this.offset>o.offset)return this.finalize(s)}return this.getCompletionsForStylesheet(s),s.items.length===0&&this.variablePrefix&&this.currentWord.indexOf(this.variablePrefix)===0&&this.getVariableProposals(null,s),this.finalize(s)}finally{this.position=null,this.currentWord=null,this.textDocument=null,this.styleSheet=null,this.symbolContext=null,this.defaultReplaceRange=null,this.nodePath=null}}isImportPathParent(e){return e===v.Import}finalize(e){return e}findInNodePath(...e){for(let n=this.nodePath.length-1;n>=0;n--){const r=this.nodePath[n];if(e.indexOf(r.type)!==-1)return r}return null}getCompletionsForDeclarationProperty(e,n){return this.getPropertyProposals(e,n)}getPropertyProposals(e,n){const r=this.isTriggerPropertyValueCompletionEnabled,i=this.isCompletePropertyWithSemicolonEnabled;return this.cssDataManager.getProperties().forEach(a=>{let o,l,c=!1;e?(o=this.getCompletionRange(e.getProperty()),l=a.name,Te(e.colonPosition)||(l+=": ",c=!0)):(o=this.getCompletionRange(null),l=a.name+": ",c=!0),!e&&i&&(l+="$0;"),e&&!e.semicolonPosition&&i&&this.offset>=this.textDocument.offsetAt(o.end)&&(l+="$0;");const d={label:a.name,documentation:bt(a,this.doesSupportMarkdown()),tags:Wn(a)?[Nt.Deprecated]:[],textEdit:j.replace(o,l),insertTextFormat:Ie.Snippet,kind:q.Property};a.restrictions||(c=!1),r&&c&&(d.command=Oc);const m=(255-(typeof a.relevance=="number"?Math.min(Math.max(a.relevance,0),99):50)).toString(16),f=pe(a.name,"-")?Ge.VendorPrefixed:Ge.Normal;d.sortText=f+"_"+m,n.items.push(d)}),this.completionParticipants.forEach(a=>{a.onCssProperty&&a.onCssProperty({propertyName:this.currentWord,range:this.defaultReplaceRange})}),n}get isTriggerPropertyValueCompletionEnabled(){return this.documentSettings?.triggerPropertyValueCompletion??!0}get isCompletePropertyWithSemicolonEnabled(){return this.documentSettings?.completePropertyWithSemicolon??!0}getCompletionsForDeclarationValue(e,n){const r=e.getFullPropertyName(),i=this.cssDataManager.getProperty(r);let s=e.getValue()||null;for(;s&&s.hasChildren();)s=s.findChildAtOffset(this.offset,!1);if(this.completionParticipants.forEach(a=>{a.onCssPropertyValue&&a.onCssPropertyValue({propertyName:r,propertyValue:this.currentWord,range:this.getCompletionRange(s)})}),i){if(i.restrictions)for(const a of i.restrictions)switch(a){case"color":this.getColorProposals(i,s,n);break;case"position":this.getPositionProposals(i,s,n);break;case"repeat":this.getRepeatStyleProposals(i,s,n);break;case"line-style":this.getLineStyleProposals(i,s,n);break;case"line-width":this.getLineWidthProposals(i,s,n);break;case"geometry-box":this.getGeometryBoxProposals(i,s,n);break;case"box":this.getBoxProposals(i,s,n);break;case"image":this.getImageProposals(i,s,n);break;case"timing-function":this.getTimingFunctionProposals(i,s,n);break;case"shape":this.getBasicShapeProposals(i,s,n);break}this.getValueEnumProposals(i,s,n),this.getCSSWideKeywordProposals(i,s,n),this.getUnitProposals(i,s,n)}else{const a=_m(this.styleSheet,e);for(const o of a.getEntries())n.items.push({label:o,textEdit:j.replace(this.getCompletionRange(s),o),kind:q.Value})}return this.getVariableProposals(s,n),this.getTermProposals(i,s,n),n}getValueEnumProposals(e,n,r){if(e.values)for(const i of e.values){let s=i.name,a;if(ll(s,")")){const c=s.lastIndexOf("(");c!==-1&&(s=s.substring(0,c+1)+"$1"+s.substring(c+1),a=it)}let o=Ge.Enums;pe(i.name,"-")&&(o+=Ge.VendorPrefixed);const l={label:i.name,documentation:bt(i,this.doesSupportMarkdown()),tags:Wn(e)?[Nt.Deprecated]:[],textEdit:j.replace(this.getCompletionRange(n),s),sortText:o,kind:q.Value,insertTextFormat:a};r.items.push(l)}return r}getCSSWideKeywordProposals(e,n,r){for(const i in Ec)r.items.push({label:i,documentation:Ec[i],textEdit:j.replace(this.getCompletionRange(n),i),kind:q.Value});for(const i in Fc){const s=tn(i);r.items.push({label:i,documentation:Fc[i],textEdit:j.replace(this.getCompletionRange(n),s),kind:q.Function,insertTextFormat:it,command:pe(i,"var")?Oc:void 0})}return r}getCompletionsForInterpolation(e,n){return this.offset>=e.offset+2&&this.getVariableProposals(null,n),n}getVariableProposals(e,n){const r=this.getSymbolContext().findSymbolsAtOffset(this.offset,Q.Variable);for(const i of r){const s=pe(i.name,"--")?`var(${i.name})`:i.name,a={label:i.name,documentation:i.value?cl(i.value):i.value,textEdit:j.replace(this.getCompletionRange(e),s),kind:q.Variable,sortText:Ge.Variable};if(typeof a.documentation=="string"&&gc(a.documentation)&&(a.kind=q.Color),i.node.type===v.FunctionParameter){const o=i.node.getParent();o.type===v.MixinDeclaration&&(a.detail=w("argument from '{0}'",o.getName()))}n.items.push(a)}return n}getVariableProposalsForCSSVarFunction(e){const n=new us;this.styleSheet.acceptVisitor(new Fm(n,this.offset));let r=this.getSymbolContext().findSymbolsAtOffset(this.offset,Q.Variable);for(const i of r){if(pe(i.name,"--")){const s={label:i.name,documentation:i.value?cl(i.value):i.value,textEdit:j.replace(this.getCompletionRange(null),i.name),kind:q.Variable};typeof s.documentation=="string"&&gc(s.documentation)&&(s.kind=q.Color),e.items.push(s)}n.remove(i.name)}for(const i of n.getEntries())if(pe(i,"--")){const s={label:i,textEdit:j.replace(this.getCompletionRange(null),i),kind:q.Variable};e.items.push(s)}return e}getUnitProposals(e,n,r){let i="0";if(this.currentWord.length>0){const s=this.currentWord.match(/^-?\d[\.\d+]*/);s&&(i=s[0],r.isIncomplete=i.length===this.currentWord.length)}else this.currentWord.length===0&&(r.isIncomplete=!0);if(n&&n.parent&&n.parent.type===v.Term&&(n=n.getParent()),e.restrictions)for(const s of e.restrictions){const a=Dc[s];if(a)for(const o of a){const l=i+o;r.items.push({label:l,textEdit:j.replace(this.getCompletionRange(n),l),kind:q.Unit})}}return r}getCompletionRange(e){if(e&&e.offset<=this.offset&&this.offset<=e.end){const n=e.end!==-1?this.textDocument.positionAt(e.end):this.position,r=this.textDocument.positionAt(e.offset);if(r.line===n.line)return K.create(r,n)}return this.defaultReplaceRange}getColorProposals(e,n,r){for(const s in Sr)r.items.push({label:s,documentation:Sr[s],textEdit:j.replace(this.getCompletionRange(n),s),kind:q.Color});for(const s in as)r.items.push({label:s,documentation:as[s],textEdit:j.replace(this.getCompletionRange(n),s),kind:q.Value});const i=new us;this.styleSheet.acceptVisitor(new Em(i,this.offset));for(const s of i.getEntries())r.items.push({label:s,textEdit:j.replace(this.getCompletionRange(n),s),kind:q.Color});for(const s of em)r.items.push({label:s.label,detail:s.func,documentation:s.desc,textEdit:j.replace(this.getCompletionRange(n),s.insertText),insertTextFormat:it,kind:q.Function});return r}getPositionProposals(e,n,r){for(const i in xc)r.items.push({label:i,documentation:xc[i],textEdit:j.replace(this.getCompletionRange(n),i),kind:q.Value});return r}getRepeatStyleProposals(e,n,r){for(const i in Sc)r.items.push({label:i,documentation:Sc[i],textEdit:j.replace(this.getCompletionRange(n),i),kind:q.Value});return r}getLineStyleProposals(e,n,r){for(const i in Cc)r.items.push({label:i,documentation:Cc[i],textEdit:j.replace(this.getCompletionRange(n),i),kind:q.Value});return r}getLineWidthProposals(e,n,r){for(const i of dm)r.items.push({label:i,textEdit:j.replace(this.getCompletionRange(n),i),kind:q.Value});return r}getGeometryBoxProposals(e,n,r){for(const i in _c)r.items.push({label:i,documentation:_c[i],textEdit:j.replace(this.getCompletionRange(n),i),kind:q.Value});return r}getBoxProposals(e,n,r){for(const i in kc)r.items.push({label:i,documentation:kc[i],textEdit:j.replace(this.getCompletionRange(n),i),kind:q.Value});return r}getImageProposals(e,n,r){for(const i in Rc){const s=tn(i);r.items.push({label:i,documentation:Rc[i],textEdit:j.replace(this.getCompletionRange(n),s),kind:q.Function,insertTextFormat:i!==s?it:void 0})}return r}getTimingFunctionProposals(e,n,r){for(const i in Nc){const s=tn(i);r.items.push({label:i,documentation:Nc[i],textEdit:j.replace(this.getCompletionRange(n),s),kind:q.Function,insertTextFormat:i!==s?it:void 0})}return r}getBasicShapeProposals(e,n,r){for(const i in Ic){const s=tn(i);r.items.push({label:i,documentation:Ic[i],textEdit:j.replace(this.getCompletionRange(n),s),kind:q.Function,insertTextFormat:i!==s?it:void 0})}return r}getCompletionsForStylesheet(e){const n=this.styleSheet.findFirstChildBeforeOffset(this.offset);return n?n instanceof Ft?this.getCompletionsForRuleSet(n,e):n instanceof Ti?this.getCompletionsForSupports(n,e):e:this.getCompletionForTopLevel(e)}getCompletionForTopLevel(e){return this.cssDataManager.getAtDirectives().forEach(n=>{e.items.push({label:n.name,textEdit:j.replace(this.getCompletionRange(null),n.name),documentation:bt(n,this.doesSupportMarkdown()),tags:Wn(n)?[Nt.Deprecated]:[],kind:q.Keyword})}),this.getCompletionsForSelector(null,!1,e),e}getCompletionsForRuleSet(e,n){const r=e.getDeclarations();return r&&r.endsWith("}")&&this.offset>=r.end?this.getCompletionForTopLevel(n):!r||this.offset<=r.offset?this.getCompletionsForSelector(e,e.isNested(),n):this.getCompletionsForDeclarations(e.getDeclarations(),n)}getCompletionsForSelector(e,n,r){const i=this.findInNodePath(v.PseudoSelector,v.IdentifierSelector,v.ClassSelector,v.ElementNameSelector);if(!i&&this.hasCharacterAtPosition(this.offset-this.currentWord.length-1,":")&&(this.currentWord=":"+this.currentWord,this.hasCharacterAtPosition(this.offset-this.currentWord.length-1,":")&&(this.currentWord=":"+this.currentWord),this.defaultReplaceRange=K.create(ye.create(this.position.line,this.position.character-this.currentWord.length),this.position)),this.cssDataManager.getPseudoClasses().forEach(c=>{const d=tn(c.name),u={label:c.name,textEdit:j.replace(this.getCompletionRange(i),d),documentation:bt(c,this.doesSupportMarkdown()),tags:Wn(c)?[Nt.Deprecated]:[],kind:q.Function,insertTextFormat:c.name!==d?it:void 0};pe(c.name,":-")&&(u.sortText=Ge.VendorPrefixed),r.items.push(u)}),this.cssDataManager.getPseudoElements().forEach(c=>{const d=tn(c.name),u={label:c.name,textEdit:j.replace(this.getCompletionRange(i),d),documentation:bt(c,this.doesSupportMarkdown()),tags:Wn(c)?[Nt.Deprecated]:[],kind:q.Function,insertTextFormat:c.name!==d?it:void 0};pe(c.name,"::-")&&(u.sortText=Ge.VendorPrefixed),r.items.push(u)}),!n){for(const c of um)r.items.push({label:c,textEdit:j.replace(this.getCompletionRange(i),c),kind:q.Keyword});for(const c of pm)r.items.push({label:c,textEdit:j.replace(this.getCompletionRange(i),c),kind:q.Keyword})}const o={};o[this.currentWord]=!0;const l=this.textDocument.getText();if(this.styleSheet.accept(c=>{if(c.type===v.SimpleSelector&&c.length>0){const d=l.substr(c.offset,c.length);return d.charAt(0)==="."&&!o[d]&&(o[d]=!0,r.items.push({label:d,textEdit:j.replace(this.getCompletionRange(i),d),kind:q.Keyword})),!1}return!0}),e&&e.isNested()){const c=e.getSelectors().findFirstChildBeforeOffset(this.offset);c&&e.getSelectors().getChildren().indexOf(c)===0&&this.getPropertyProposals(null,r)}return r}getCompletionsForDeclarations(e,n){if(!e||this.offset===e.offset)return n;const r=e.findFirstChildBeforeOffset(this.offset);if(!r)return this.getCompletionsForDeclarationProperty(null,n);if(r instanceof Ai){const i=r;if(!Te(i.colonPosition)||this.offset<=i.colonPosition)return this.getCompletionsForDeclarationProperty(i,n);if(Te(i.semicolonPosition)&&i.semicolonPositione.colonPosition&&this.getVariableProposals(e.getValue()||null,n),n}getCompletionsForExpression(e,n){const r=e.getParent();if(r instanceof Qt)return this.getCompletionsForFunctionArgument(r,r.getParent(),n),n;const i=e.findParent(v.Declaration);if(!i)return this.getTermProposals(void 0,null,n),n;const s=e.findChildAtOffset(this.offset,!0);return s?s instanceof Vi||s instanceof ze?this.getCompletionsForDeclarationValue(i,n):n:this.getCompletionsForDeclarationValue(i,n)}getCompletionsForFunctionArgument(e,n,r){const i=n.getIdentifier();return i&&i.matches("var")&&(!n.getArguments().hasChildren()||n.getArguments().getChild(0)===e)&&this.getVariableProposalsForCSSVarFunction(r),r}getCompletionsForFunctionDeclaration(e,n){const r=e.getDeclarations();return r&&this.offset>r.offset&&this.offset{s.onCssMixinReference&&s.onCssMixinReference({mixinName:this.currentWord,range:this.getCompletionRange(i)})}),n}getTermProposals(e,n,r){const i=this.getSymbolContext().findSymbolsAtOffset(this.offset,Q.Function);for(const s of i)s.node instanceof ur&&r.items.push(this.makeTermProposal(s,s.node.getParameters(),n));return r}makeTermProposal(e,n,r){e.node;const i=n.getChildren().map(a=>a instanceof dr?a.getName():a.getText()),s=e.name+"("+i.map((a,o)=>"${"+(o+1)+":"+a+"}").join(", ")+")";return{label:e.name,detail:e.name+"("+i.join(", ")+")",textEdit:j.replace(this.getCompletionRange(r),s),insertTextFormat:it,kind:q.Function,sortText:Ge.Term}}getCompletionsForSupportsCondition(e,n){const r=e.findFirstChildBeforeOffset(this.offset);if(r){if(r instanceof Pe)return!Te(r.colonPosition)||this.offset<=r.colonPosition?this.getCompletionsForDeclarationProperty(r,n):this.getCompletionsForDeclarationValue(r,n);if(r instanceof Ln)return this.getCompletionsForSupportsCondition(r,n)}return Te(e.lParent)&&this.offset>e.lParent&&(!Te(e.rParent)||this.offset<=e.rParent)?this.getCompletionsForDeclarationProperty(null,n):n}getCompletionsForSupports(e,n){const r=e.getDeclarations();if(!r||this.offset<=r.offset){const s=e.findFirstChildBeforeOffset(this.offset);return s instanceof Ln?this.getCompletionsForSupportsCondition(s,n):n}return this.getCompletionForTopLevel(n)}getCompletionsForExtendsReference(e,n,r){return r}getCompletionForUriLiteralValue(e,n){let r,i,s;if(e.hasChildren()){const a=e.getChild(0);r=a.getText(),i=this.position,s=this.getCompletionRange(a)}else{r="",i=this.position;const a=this.textDocument.positionAt(e.offset+4);s=K.create(a,a)}return this.completionParticipants.forEach(a=>{a.onCssURILiteralValue&&a.onCssURILiteralValue({uriValue:r,position:i,range:s})}),n}getCompletionForImportPath(e,n){return this.completionParticipants.forEach(r=>{r.onCssImportPath&&r.onCssImportPath({pathValue:e.getText(),position:this.position,range:this.getCompletionRange(e)})}),n}hasCharacterAtPosition(e,n){const r=this.textDocument.getText();return e>=0&&e=0&&` -\r":{[()]},*>+`.indexOf(r.charAt(n))===-1;)n--;return r.substring(n+1,e)}let ps=class Ts{constructor(){this.parent=null,this.children=null,this.attributes=null}findAttribute(e){if(this.attributes){for(const n of this.attributes)if(n.name===e)return n.value}return null}addChild(e){e instanceof Ts&&(e.parent=this),this.children||(this.children=[]),this.children.push(e)}append(e){if(this.attributes){const n=this.attributes[this.attributes.length-1];n.value=n.value+e}}prepend(e){if(this.attributes){const n=this.attributes[0];n.value=e+n.value}}findRoot(){let e=this;for(;e.parent&&!(e.parent instanceof nn);)e=e.parent;return e}removeChild(e){if(this.children){const n=this.children.indexOf(e);if(n!==-1)return this.children.splice(n,1),!0}return!1}addAttr(e,n){this.attributes||(this.attributes=[]);for(const r of this.attributes)if(r.name===e){r.value+=" "+n;return}this.attributes.push({name:e,value:n})}clone(e=!0){const n=new Ts;if(this.attributes){n.attributes=[];for(const r of this.attributes)n.addAttr(r.name,r.value)}if(e&&this.children){n.children=[];for(let r=0;r"),this.writeLine(n,i.join(""))}}var st;(function(t){function e(r,i){return i+n(r)+i}t.ensure=e;function n(r){const i=r.match(/^['"](.*)["']$/);return i?i[1]:r}t.remove=n})(st||(st={}));class fs{constructor(){this.id=0,this.attr=0,this.tag=0}}function Vc(t,e){let n=new ps;for(const r of t.getChildren())switch(r.type){case v.SelectorCombinator:if(e){const o=r.getText().split("&");if(o.length===1){n.addAttr("name",o[0]);break}n=e.cloneWithParent(),o[0]&&n.findRoot().prepend(o[0]);for(let l=1;l1){const c=e.cloneWithParent();n.addChild(c.findRoot()),n=c}n.append(o[l])}}break;case v.SelectorPlaceholder:if(r.matches("@at-root"))return n;case v.ElementNameSelector:const i=r.getText();n.addAttr("name",i==="*"?"element":Oe(i));break;case v.ClassSelector:n.addAttr("class",Oe(r.getText().substring(1)));break;case v.IdentifierSelector:n.addAttr("id",Oe(r.getText().substring(1)));break;case v.MixinDeclaration:n.addAttr("class",r.getName());break;case v.PseudoSelector:n.addAttr(Oe(r.getText()),"");break;case v.AttributeSelector:const s=r,a=s.getIdentifier();if(a){const o=s.getValue(),l=s.getOperator();let c;if(o&&l)switch(Oe(l.getText())){case"|=":c=`${st.remove(Oe(o.getText()))}-…`;break;case"^=":c=`${st.remove(Oe(o.getText()))}…`;break;case"$=":c=`…${st.remove(Oe(o.getText()))}`;break;case"~=":c=` … ${st.remove(Oe(o.getText()))} … `;break;case"*=":c=`…${st.remove(Oe(o.getText()))}…`;break;default:c=st.remove(Oe(o.getText()));break}n.addAttr(Oe(a.getText()),c)}break}return n}function Oe(t){const e=new Nn;e.setSource(t);const n=e.scanUnquotedString();return n?n.text:t}class Nm{constructor(e){this.cssDataManager=e}selectorToMarkedString(e,n){const r=Lm(e);if(r){const i=new Wc('"').print(r,n);return i.push(this.selectorToSpecificityMarkedString(e)),i}else return[]}simpleSelectorToMarkedString(e){const n=Vc(e),r=new Wc('"').print(n);return r.push(this.selectorToSpecificityMarkedString(e)),r}isPseudoElementIdentifier(e){const n=e.match(/^::?([\w-]+)/);return n?!!this.cssDataManager.getPseudoElement("::"+n[1]):!1}selectorToSpecificityMarkedString(e){const n=s=>{const a=new fs;let o=new fs;for(const l of s)for(const c of l.getChildren()){const d=r(c);if(d.id>o.id){o=d;continue}else if(d.ido.attr){o=d;continue}else if(d.attro.tag){o=d;continue}}return a.id+=o.id,a.attr+=o.attr,a.tag+=o.tag,a},r=s=>{const a=new fs;e:for(const o of s.getChildren()){switch(o.type){case v.IdentifierSelector:a.id++;break;case v.ClassSelector:case v.AttributeSelector:a.attr++;break;case v.ElementNameSelector:if(o.matches("*"))break;a.tag++;break;case v.PseudoSelector:const l=o.getText(),c=o.getChildren();if(this.isPseudoElementIdentifier(l)){if(l.match(/^::slotted/i)&&c.length>0){a.tag++;let d=n(c);a.id+=d.id,a.attr+=d.attr,a.tag+=d.tag;continue e}a.tag++;continue e}if(l.match(/^:where/i))continue e;if(l.match(/^:(?:not|has|is)/i)&&c.length>0){let d=n(c);a.id+=d.id,a.attr+=d.attr,a.tag+=d.tag;continue e}if(l.match(/^:(?:host|host-context)/i)&&c.length>0){a.attr++;let d=n(c);a.id+=d.id,a.attr+=d.attr,a.tag+=d.tag;continue e}if(l.match(/^:(?:nth-child|nth-last-child)/i)&&c.length>0){if(a.attr++,c.length===3&&c[1].type===23){let g=n(c[2].getChildren());a.id+=g.id,a.attr+=g.attr,a.tag+=g.tag;continue e}const d=new _r,u=c[1].getText();d.scanner.setSource(u);const m=d.scanner.scan(),f=d.scanner.scan();if(m.text==="n"||m.text==="-n"&&f.text==="of"){const g=[],_=u.slice(f.offset+2).split(",");for(const N of _){const E=d.internalParse(N,d._parseSelector);E&&g.push(E)}let F=n(g);a.id+=F.id,a.attr+=F.attr,a.tag+=F.tag;continue e}continue e}a.attr++;continue e}if(o.getChildren().length>0){const l=r(o);a.id+=l.id,a.attr+=l.attr,a.tag+=l.tag}}return a},i=r(e);return`[${w("Selector Specificity")}](https://developer.mozilla.org/docs/Web/CSS/Specificity): (${i.id}, ${i.attr}, ${i.tag})`}}class Im{constructor(e){this.prev=null,this.element=e}processSelector(e){let n=null;if(!(this.element instanceof nn)&&e.getChildren().some(r=>r.hasChildren()&&r.getChild(0).type===v.SelectorCombinator)){const r=this.element.findRoot();r.parent instanceof nn&&(n=this.element,this.element=r.parent,this.element.removeChild(r),this.prev=null)}for(const r of e.getChildren()){if(r instanceof Yt){if(this.prev instanceof Yt){const a=new ms("…");this.element.addChild(a),this.element=a}else this.prev&&(this.prev.matches("+")||this.prev.matches("~"))&&this.element.parent&&(this.element=this.element.parent);this.prev&&this.prev.matches("~")&&this.element.addChild(new ms("⋮"));const i=Vc(r,n),s=i.findRoot();this.element.addChild(s),this.element=i}(r instanceof Yt||r.type===v.SelectorCombinatorParent||r.type===v.SelectorCombinatorShadowPiercingDescendant||r.type===v.SelectorCombinatorSibling||r.type===v.SelectorCombinatorAllSiblings)&&(this.prev=r)}}}function Dm(t){switch(t.type){case v.MixinDeclaration:case v.Stylesheet:return!0}return!1}function Lm(t){if(t.matches("@at-root"))return null;const e=new nn,n=[],r=t.getParent();if(r instanceof Ft){let s=r.getParent();for(;s&&!Dm(s);){if(s instanceof Ft){if(s.getSelectors().matches("@at-root"))break;n.push(s)}s=s.getParent()}}const i=new Im(e);for(let s=n.length-1;s>=0;s--){const a=n[s].getSelectors().getChild(0);a&&i.processSelector(a)}return i.processSelector(t),e}class gs{constructor(e,n){this.clientCapabilities=e,this.cssDataManager=n,this.selectorPrinting=new Nm(n)}configure(e){this.defaultSettings=e}doHover(e,n,r,i=this.defaultSettings){function s(d){return K.create(e.positionAt(d.offset),e.positionAt(d.end))}const a=e.offsetAt(n),o=Di(r,a);let l=null,c;for(let d=0;dtypeof n=="string"?n:n.value):e.value}doesSupportMarkdown(){if(!Te(this.supportsMarkdown)){if(!Te(this.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;const e=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.hover;this.supportsMarkdown=e&&e.contentFormat&&Array.isArray(e.contentFormat)&&e.contentFormat.indexOf(He.Markdown)!==-1}return this.supportsMarkdown}}const $c=/^\w+:\/\//,Uc=/^data:/;class bs{constructor(e,n){this.fileSystemProvider=e,this.resolveModuleReferences=n}configure(e){this.defaultSettings=e}findDefinition(e,n,r){const i=new os(r),s=e.offsetAt(n),a=Ii(r,s);if(!a)return null;const o=i.findSymbolFromNode(a);return o?{uri:e.uri,range:at(o.node,e)}:null}findReferences(e,n,r){return this.findDocumentHighlights(e,n,r).map(s=>({uri:e.uri,range:s.range}))}getHighlightNode(e,n,r){const i=e.offsetAt(n);let s=Ii(r,i);if(!(!s||s.type===v.Stylesheet||s.type===v.Declarations))return s.type===v.Identifier&&s.parent&&s.parent.type===v.ClassSelector&&(s=s.parent),s}findDocumentHighlights(e,n,r){const i=[],s=this.getHighlightNode(e,n,r);if(!s)return i;const a=new os(r),o=a.findSymbolFromNode(s),l=s.getText();return r.accept(c=>{if(o){if(a.matchesSymbol(c,o))return i.push({kind:qc(c),range:at(c,e)}),!1}else s&&s.type===c.type&&c.matches(l)&&i.push({kind:qc(c),range:at(c,e)});return!0}),i}isRawStringDocumentLinkNode(e){return e.type===v.Import}findDocumentLinks(e,n,r){const i=this.findUnresolvedLinks(e,n),s=[];for(let a of i){const o=a.link,l=o.target;if(!(!l||Uc.test(l)))if($c.test(l))s.push(o);else{const c=r.resolveReference(l,e.uri);c&&(o.target=c),s.push(o)}}return s}async findDocumentLinks2(e,n,r){const i=this.findUnresolvedLinks(e,n),s=[];for(let a of i){const o=a.link,l=o.target;if(!(!l||Uc.test(l)))if($c.test(l))s.push(o);else{const c=await this.resolveReference(l,e.uri,r,a.isRawLink);c!==void 0&&(o.target=c,s.push(o))}}return s}findUnresolvedLinks(e,n){const r=[],i=s=>{let a=s.getText();const o=at(s,e);if(o.start.line===o.end.line&&o.start.character===o.end.character)return;(pe(a,"'")||pe(a,'"'))&&(a=a.slice(1,-1));const l=s.parent?this.isRawStringDocumentLinkNode(s.parent):!1;r.push({link:{target:a,range:o},isRawLink:l})};return n.accept(s=>{if(s.type===v.URILiteral){const a=s.getChild(0);return a&&i(a),!1}if(s.parent&&this.isRawStringDocumentLinkNode(s.parent)){const a=s.getText();return(pe(a,"'")||pe(a,'"'))&&i(s),!1}return!0}),r}findSymbolInformations(e,n){const r=[],i=(s,a,o)=>{const l=o instanceof W?at(o,e):o,c={name:s||w(""),kind:a,location:zn.create(e.uri,l)};r.push(c)};return this.collectDocumentSymbols(e,n,i),r}findDocumentSymbols(e,n){const r=[],i=[],s=(a,o,l,c,d)=>{const u=l instanceof W?at(l,e):l;let m=c instanceof W?at(c,e):c;(!m||!Bc(u,m))&&(m=K.create(u.start,u.start));const f={name:a||w(""),kind:o,range:u,selectionRange:m};let g=i.pop();for(;g&&!Bc(g[1],u);)g=i.pop();if(g){const b=g[0];b.children||(b.children=[]),b.children.push(f),i.push(g)}else r.push(f);d&&i.push([f,at(d,e)])};return this.collectDocumentSymbols(e,n,s),r}collectDocumentSymbols(e,n,r){n.accept(i=>{if(i instanceof Ft){for(const s of i.getSelectors().getChildren())if(s instanceof In){const a=K.create(e.positionAt(s.offset),e.positionAt(i.end));r(s.getText(),rt.Class,a,s,i.getDeclarations())}}else if(i instanceof pr)r(i.getName(),rt.Variable,i,i.getVariable(),void 0);else if(i instanceof Mn)r(i.getName(),rt.Method,i,i.getIdentifier(),i.getDeclarations());else if(i instanceof ur)r(i.getName(),rt.Function,i,i.getIdentifier(),i.getDeclarations());else if(i instanceof pl){const s=w("@keyframes {0}",i.getName());r(s,rt.Class,i,i.getIdentifier(),i.getDeclarations())}else if(i instanceof dl){const s=w("@font-face");r(s,rt.Class,i,void 0,i.getDeclarations())}else if(i instanceof Pi){const s=i.getChild(0);if(s instanceof fl){const a="@media "+s.getText();r(a,rt.Module,i,s,i.getDeclarations())}}return!0})}findDocumentColors(e,n){const r=[];return n.accept(i=>{const s=Am(i,e);return s&&r.push(s),!0}),r}getColorPresentations(e,n,r,i){const s=[],a=Math.round(r.red*255),o=Math.round(r.green*255),l=Math.round(r.blue*255);let c;r.alpha===1?c=`rgb(${a}, ${o}, ${l})`:c=`rgba(${a}, ${o}, ${l}, ${r.alpha})`,s.push({label:c,textEdit:j.replace(i,c)}),r.alpha===1?c=`#${It(a)}${It(o)}${It(l)}`:c=`#${It(a)}${It(o)}${It(l)}${It(Math.round(r.alpha*255))}`,s.push({label:c,textEdit:j.replace(i,c)});const d=yc(r);d.a===1?c=`hsl(${d.h}, ${Math.round(d.s*100)}%, ${Math.round(d.l*100)}%)`:c=`hsla(${d.h}, ${Math.round(d.s*100)}%, ${Math.round(d.l*100)}%, ${d.a})`,s.push({label:c,textEdit:j.replace(i,c)});const u=cm(r);return u.a===1?c=`hwb(${u.h} ${Math.round(u.w*100)}% ${Math.round(u.b*100)}%)`:c=`hwb(${u.h} ${Math.round(u.w*100)}% ${Math.round(u.b*100)}% / ${u.a})`,s.push({label:c,textEdit:j.replace(i,c)}),s}prepareRename(e,n,r){const i=this.getHighlightNode(e,n,r);if(i)return K.create(e.positionAt(i.offset),e.positionAt(i.end))}doRename(e,n,r,i){const a=this.findDocumentHighlights(e,n,i).map(o=>j.replace(o.range,r));return{changes:{[e.uri]:a}}}async resolveModuleReference(e,n,r){if(pe(n,"file://")){const i=Mm(e);if(i&&i!=="."&&i!==".."){const s=r.resolveReference("/",n),a=cs(n),o=await this.resolvePathToModule(i,a,s);if(o){const l=e.substring(i.length+1);return en(o,l)}}}}async mapReference(e,n){return e}async resolveReference(e,n,r,i=!1,s=this.defaultSettings){if(e[0]==="~"&&e[1]!=="/"&&this.fileSystemProvider)return e=e.substring(1),this.mapReference(await this.resolveModuleReference(e,n,r),i);const a=await this.mapReference(r.resolveReference(e,n),i);if(this.resolveModuleReferences){if(a&&await this.fileExists(a))return a;const o=await this.mapReference(await this.resolveModuleReference(e,n,r),i);if(o)return o}if(a&&!await this.fileExists(a)){const o=r.resolveReference("/",n);if(s&&o){if(e in s)return this.mapReference(en(o,s[e]),i);const l=e.indexOf("/"),c=`${e.substring(0,l)}/`;if(c in s){const d=s[c].slice(0,-1);let u=en(o,d);return this.mapReference(u=en(u,e.substring(c.length-1)),i)}}}return a}async resolvePathToModule(e,n,r){const i=en(n,"node_modules",e,"package.json");if(await this.fileExists(i))return cs(i);if(r&&n.startsWith(r)&&n.length!==r.length)return this.resolvePathToModule(e,cs(n),r)}async fileExists(e){if(!this.fileSystemProvider)return!1;try{const n=await this.fileSystemProvider.stat(e);return!(n.type===On.Unknown&&n.size===-1)}catch{return!1}}}function Am(t,e){const n=hm(t);if(n){const r=at(t,e);return{color:n,range:r}}return null}function at(t,e){return K.create(e.positionAt(t.offset),e.positionAt(t.end))}function Bc(t,e){const n=e.start.line,r=e.end.line,i=t.start.line,s=t.end.line;return!(ns||r>s||n===i&&e.start.charactert.end.character)}function qc(t){if(t.type===v.Selector||t instanceof ze&&t.parent&&t.parent instanceof Mi&&t.isCustomProperty)return Zt.Write;if(t.parent)switch(t.parent.type){case v.FunctionDeclaration:case v.MixinDeclaration:case v.Keyframe:case v.VariableDeclaration:case v.FunctionParameter:return Zt.Write}return Zt.Read}function It(t){const e=t.toString(16);return e.length!==2?"0"+e:e}function Mm(t){const e=t.indexOf("/");if(e===-1)return"";if(t[0]==="@"){const n=t.indexOf("/",e+1);return n===-1?t:t.substring(0,n)}return t.substring(0,e)}const rn=Ne.Warning,jc=Ne.Error,Ve=Ne.Ignore;class me{constructor(e,n,r){this.id=e,this.message=n,this.defaultValue=r}}class zm{constructor(e,n,r){this.id=e,this.message=n,this.defaultValue=r}}const ie={AllVendorPrefixes:new me("compatibleVendorPrefixes",w("When using a vendor-specific prefix make sure to also include all other vendor-specific properties"),Ve),IncludeStandardPropertyWhenUsingVendorPrefix:new me("vendorPrefix",w("When using a vendor-specific prefix also include the standard property"),rn),DuplicateDeclarations:new me("duplicateProperties",w("Do not use duplicate style definitions"),Ve),EmptyRuleSet:new me("emptyRules",w("Do not use empty rulesets"),rn),ImportStatemement:new me("importStatement",w("Import statements do not load in parallel"),Ve),BewareOfBoxModelSize:new me("boxModel",w("Do not use width or height when using padding or border"),Ve),UniversalSelector:new me("universalSelector",w("The universal selector (*) is known to be slow"),Ve),ZeroWithUnit:new me("zeroUnits",w("No unit for zero needed"),Ve),RequiredPropertiesForFontFace:new me("fontFaceProperties",w("@font-face rule must define 'src' and 'font-family' properties"),rn),HexColorLength:new me("hexColorLength",w("Hex colors must consist of three, four, six or eight hex numbers"),jc),ArgsInColorFunction:new me("argumentsInColorFunction",w("Invalid number of parameters"),jc),UnknownProperty:new me("unknownProperties",w("Unknown property."),rn),UnknownAtRules:new me("unknownAtRules",w("Unknown at-rule."),rn),IEStarHack:new me("ieHack",w("IE hacks are only necessary when supporting IE7 and older"),Ve),UnknownVendorSpecificProperty:new me("unknownVendorSpecificProperties",w("Unknown vendor specific property."),Ve),PropertyIgnoredDueToDisplay:new me("propertyIgnoredDueToDisplay",w("Property is ignored due to the display."),rn),AvoidImportant:new me("important",w("Avoid using !important. It is an indication that the specificity of the entire CSS has gotten out of control and needs to be refactored."),Ve),AvoidFloat:new me("float",w("Avoid using 'float'. Floats lead to fragile CSS that is easy to break if one aspect of the layout changes."),Ve),AvoidIdSelector:new me("idSelector",w("Selectors should not contain IDs because these rules are too tightly coupled with the HTML."),Ve)},Pm={ValidProperties:new zm("validProperties",w("A list of properties that are not validated against the `unknownProperties` rule."),[])};class Tm{constructor(e={}){this.conf=e}getRule(e){if(this.conf.hasOwnProperty(e.id)){const n=Om(this.conf[e.id]);if(n)return n}return e.defaultValue}getSetting(e){return this.conf[e.id]}}function Om(t){switch(t){case"ignore":return Ne.Ignore;case"warning":return Ne.Warning;case"error":return Ne.Error}return null}class ws{constructor(e){this.cssDataManager=e}doCodeActions(e,n,r,i){return this.doCodeActions2(e,n,r,i).map(s=>{const a=s.edit&&s.edit.documentChanges&&s.edit.documentChanges[0];return Rt.create(s.title,"_css.applyCodeAction",e.uri,e.version,a&&a.edits)})}doCodeActions2(e,n,r,i){const s=[];if(r.diagnostics)for(const a of r.diagnostics)this.appendFixesForMarker(e,i,a,s);return s}getFixesForUnknownProperty(e,n,r,i){const s=n.getName(),a=[];this.cssDataManager.getProperties().forEach(l=>{const c=dp(s,l.name);c>=s.length/2&&a.push({property:l.name,score:c})}),a.sort((l,c)=>c.score-l.score||l.property.localeCompare(c.property));let o=3;for(const l of a){const c=l.property,d=w("Rename to '{0}'",c),u=j.replace(r.range,c),m=Ki.create(e.uri,e.version),f={documentChanges:[wr.create(m,[u])]},g=ts.create(d,f,es.QuickFix);if(g.diagnostics=[r],i.push(g),--o<=0)return}}appendFixesForMarker(e,n,r,i){if(r.code!==ie.UnknownProperty.id)return;const s=e.offsetAt(r.range.start),a=e.offsetAt(r.range.end),o=Di(n,s);for(let l=o.length-1;l>=0;l--){const c=o[l];if(c instanceof Pe){const d=c.getProperty();if(d&&d.offset===s&&d.end===a){this.getFixesForUnknownProperty(e,d,r,i);return}}}}}class Wm{constructor(e){this.fullPropertyName=e.getFullPropertyName().toLowerCase(),this.node=e}}function Vn(t,e,n,r){const i=t[e];i.value=n,n&&(Lc(i.properties,r)||i.properties.push(r))}function Vm(t,e,n){Vn(t,"top",e,n),Vn(t,"right",e,n),Vn(t,"bottom",e,n),Vn(t,"left",e,n)}function we(t,e,n,r){e==="top"||e==="right"||e==="bottom"||e==="left"?Vn(t,e,n,r):Vm(t,n,r)}function vs(t,e,n){switch(e.length){case 1:we(t,void 0,e[0],n);break;case 2:we(t,"top",e[0],n),we(t,"bottom",e[0],n),we(t,"right",e[1],n),we(t,"left",e[1],n);break;case 3:we(t,"top",e[0],n),we(t,"right",e[1],n),we(t,"left",e[1],n),we(t,"bottom",e[2],n);break;case 4:we(t,"top",e[0],n),we(t,"right",e[1],n),we(t,"bottom",e[2],n),we(t,"left",e[3],n);break}}function ys(t,e){for(let n of e)if(t.matches(n))return!0;return!1}function $n(t,e=!0){return e&&ys(t,["initial","unset"])?!1:parseFloat(t.getText())!==0}function Hc(t,e=!0){return t.map(n=>$n(n,e))}function Dr(t,e=!0){return!(ys(t,["none","hidden"])||e&&ys(t,["initial","unset"]))}function $m(t,e=!0){return t.map(n=>Dr(n,e))}function Um(t){const e=t.getChildren();if(e.length===1){const n=e[0];return $n(n)&&Dr(n)}for(const n of e){const r=n;if(!$n(r,!1)||!Dr(r,!1))return!1}return!0}function Bm(t){const e={top:{value:!1,properties:[]},right:{value:!1,properties:[]},bottom:{value:!1,properties:[]},left:{value:!1,properties:[]}};for(const n of t){const r=n.node.value;if(!(typeof r>"u"))switch(n.fullPropertyName){case"box-sizing":return{top:{value:!1,properties:[]},right:{value:!1,properties:[]},bottom:{value:!1,properties:[]},left:{value:!1,properties:[]}};case"width":e.width=n;break;case"height":e.height=n;break;default:const i=n.fullPropertyName.split("-");switch(i[0]){case"border":switch(i[1]){case void 0:case"top":case"right":case"bottom":case"left":switch(i[2]){case void 0:we(e,i[1],Um(r),n);break;case"width":we(e,i[1],$n(r,!1),n);break;case"style":we(e,i[1],Dr(r,!0),n);break}break;case"width":vs(e,Hc(r.getChildren(),!1),n);break;case"style":vs(e,$m(r.getChildren(),!0),n);break}break;case"padding":i.length===1?vs(e,Hc(r.getChildren(),!0),n):we(e,i[1],$n(r,!0),n);break}break}}return e}class Gc{constructor(){this.data={}}add(e,n,r){let i=this.data[e];i||(i={nodes:[],names:[]},this.data[e]=i),i.names.push(n),r&&i.nodes.push(r)}}class sn{static entries(e,n,r,i,s){const a=new sn(n,r,i);return e.acceptVisitor(a),a.completeValidations(),a.getEntries(s)}constructor(e,n,r){this.cssDataManager=r,this.warnings=[],this.settings=n,this.documentText=e.getText(),this.keyframes=new Gc,this.validProperties={};const i=n.getSetting(Pm.ValidProperties);Array.isArray(i)&&i.forEach(s=>{if(typeof s=="string"){const a=s.trim().toLowerCase();a.length&&(this.validProperties[a]=!0)}})}isValidPropertyDeclaration(e){const n=e.fullPropertyName;return this.validProperties[n]}fetch(e,n){const r=[];for(const i of e)i.fullPropertyName===n&&r.push(i);return r}fetchWithValue(e,n,r){const i=[];for(const s of e)if(s.fullPropertyName===n){const a=s.node.getValue();a&&this.findValueInExpression(a,r)&&i.push(s)}return i}findValueInExpression(e,n){let r=!1;return e.accept(i=>(i.type===v.Identifier&&i.matches(n)&&(r=!0),!r)),r}getEntries(e=Ne.Warning|Ne.Error){return this.warnings.filter(n=>(n.getLevel()&e)!==0)}addEntry(e,n,r){const i=new yl(e,n,this.settings.getRule(n),r);this.warnings.push(i)}getMissingNames(e,n){const r=e.slice(0);for(let s=0;s0){const l=this.fetch(r,"float");for(let c=0;c0){const l=this.fetch(r,"vertical-align");for(let c=0;c1)for(let m=0;mO.startsWith(T))&&g.delete(N)}}const b=[];for(let F=0,N=sn.prefixes.length;Fs instanceof Oi?(i+=1,!1):!0),i!==r&&this.addEntry(e,ie.ArgsInColorFunction)),!0}}sn.prefixes=["-ms-","-moz-","-o-","-webkit-"];class xs{constructor(e){this.cssDataManager=e}configure(e){this.settings=e}doValidation(e,n,r=this.settings){if(r&&r.validate===!1)return[];const i=[];i.push.apply(i,Bi.entries(n)),i.push.apply(i,sn.entries(n,e,new Tm(r&&r.lint),this.cssDataManager));const s=[];for(const o in ie)s.push(ie[o].id);function a(o){const l=K.create(e.positionAt(o.getOffset()),e.positionAt(o.getOffset()+o.getLength())),c=e.languageId;return{code:o.getRule().id,source:c,message:o.getMessage(),severity:o.getLevel()===Ne.Warning?gr.Warning:gr.Error,range:l}}return i.filter(o=>o.getLevel()!==Ne.Ignore).map(a)}}const Jc=47,qm=10,jm=13,Hm=12,Gm=36,Jm=35,Xm=123,Un=61,Ym=33,Qm=60,Km=62,Ss=46;let ot=p.CustomToken;const Cs=ot++,Lr=ot++;ot++;const Xc=ot++,Yc=ot++,ks=ot++,_s=ot++,Ar=ot++;ot++;class Qc extends Nn{scanNext(e){if(this.stream.advanceIfChar(Gm)){const n=["$"];if(this.ident(n))return this.finishToken(e,Cs,n.join(""));this.stream.goBackTo(e)}return this.stream.advanceIfChars([Jm,Xm])?this.finishToken(e,Lr):this.stream.advanceIfChars([Un,Un])?this.finishToken(e,Xc):this.stream.advanceIfChars([Ym,Un])?this.finishToken(e,Yc):this.stream.advanceIfChar(Qm)?this.stream.advanceIfChar(Un)?this.finishToken(e,_s):this.finishToken(e,p.Delim):this.stream.advanceIfChar(Km)?this.stream.advanceIfChar(Un)?this.finishToken(e,ks):this.finishToken(e,p.Delim):this.stream.advanceIfChars([Ss,Ss,Ss])?this.finishToken(e,Ar):super.scanNext(e)}comment(){return super.comment()?!0:!this.inURL&&this.stream.advanceIfChars([Jc,Jc])?(this.stream.advanceWhileChar(e=>{switch(e){case qm:case jm:case Hm:return!1;default:return!0}}),!0):!1}}class Es{constructor(e,n){this.id=e,this.message=n}}const Fs={FromExpected:new Es("scss-fromexpected",w("'from' expected")),ThroughOrToExpected:new Es("scss-throughexpected",w("'through' or 'to' expected")),InExpected:new Es("scss-fromexpected",w("'in' expected"))};class Zm extends _r{constructor(){super(new Qc)}_parseStylesheetStatement(e=!1){return this.peek(p.AtKeyword)?this._parseWarnAndDebug()||this._parseControlStatement()||this._parseMixinDeclaration()||this._parseMixinContent()||this._parseMixinReference()||this._parseFunctionDeclaration()||this._parseForward()||this._parseUse()||this._parseRuleset(e)||super._parseStylesheetAtStatement(e):this._parseRuleset(!0)||this._parseVariableDeclaration()}_parseImport(){if(!this.peekKeyword("@import"))return null;const e=this.create(zi);if(this.consumeToken(),!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral()))return this.finish(e,S.URIOrStringExpected);for(;this.accept(p.Comma);)if(!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral()))return this.finish(e,S.URIOrStringExpected);return this._completeParseImport(e)}_parseVariableDeclaration(e=[]){if(!this.peek(Cs))return null;const n=this.create(pr);if(!n.setVariable(this._parseVariable()))return null;if(!this.accept(p.Colon))return this.finish(n,S.ColonExpected);if(this.prevToken&&(n.colonPosition=this.prevToken.offset),!n.setValue(this._parseExpr()))return this.finish(n,S.VariableValueExpected,[],e);for(;this.peek(p.Exclamation);)if(!n.addChild(this._tryParsePrio())){if(this.consumeToken(),!this.peekRegExp(p.Ident,/^(default|global)$/))return this.finish(n,S.UnknownKeyword);this.consumeToken()}return this.peek(p.SemiColon)&&(n.semicolonPosition=this.token.offset),this.finish(n)}_parseMediaCondition(){return this._parseInterpolation()||super._parseMediaCondition()}_parseMediaFeatureRangeOperator(){return this.accept(_s)||this.accept(ks)||super._parseMediaFeatureRangeOperator()}_parseMediaFeatureName(){return this._parseModuleMember()||this._parseFunction()||this._parseIdent()||this._parseVariable()}_parseKeyframeSelector(){return this._tryParseKeyframeSelector()||this._parseControlStatement(this._parseKeyframeSelector.bind(this))||this._parseWarnAndDebug()||this._parseMixinReference()||this._parseFunctionDeclaration()||this._parseVariableDeclaration()||this._parseMixinContent()}_parseVariable(){if(!this.peek(Cs))return null;const e=this.create(Ui);return this.consumeToken(),e}_parseModuleMember(){const e=this.mark(),n=this.create(vl);return n.setIdentifier(this._parseIdent([Q.Module]))?this.hasWhitespace()||!this.acceptDelim(".")||this.hasWhitespace()?(this.restoreAtMark(e),null):n.addChild(this._parseVariable()||this._parseFunction())?n:this.finish(n,S.IdentifierOrVariableExpected):null}_parseIdent(e){if(!this.peek(p.Ident)&&!this.peek(Lr)&&!this.peekDelim("-"))return null;const n=this.create(ze);n.referenceTypes=e,n.isCustomProperty=this.peekRegExp(p.Ident,/^--/);let r=!1;const i=()=>{const s=this.mark();return this.acceptDelim("-")&&(this.hasWhitespace()||this.acceptDelim("-"),this.hasWhitespace())?(this.restoreAtMark(s),null):this._parseInterpolation()};for(;(this.accept(p.Ident)||n.addChild(i())||r&&this.acceptRegexp(/^[\w-]/))&&(r=!0,!this.hasWhitespace()););return r?this.finish(n):null}_parseTermExpression(){return this._parseModuleMember()||this._parseVariable()||this._parseNestingSelector()||super._parseTermExpression()}_parseInterpolation(){if(this.peek(Lr)){const e=this.create($i);return this.consumeToken(),!e.addChild(this._parseExpr())&&!this._parseNestingSelector()?this.accept(p.CurlyR)?this.finish(e):this.finish(e,S.ExpressionExpected):this.accept(p.CurlyR)?this.finish(e):this.finish(e,S.RightCurlyExpected)}return null}_parseOperator(){if(this.peek(Xc)||this.peek(Yc)||this.peek(ks)||this.peek(_s)||this.peekDelim(">")||this.peekDelim("<")||this.peekIdent("and")||this.peekIdent("or")||this.peekDelim("%")){const e=this.createNode(v.Operator);return this.consumeToken(),this.finish(e)}return super._parseOperator()}_parseUnaryOperator(){if(this.peekIdent("not")){const e=this.create(W);return this.consumeToken(),this.finish(e)}return super._parseUnaryOperator()}_parseRuleSetDeclaration(){return this.peek(p.AtKeyword)?this._parseKeyframe()||this._parseImport()||this._parseMedia(!0)||this._parseFontFace()||this._parseWarnAndDebug()||this._parseControlStatement()||this._parseFunctionDeclaration()||this._parseExtends()||this._parseMixinReference()||this._parseMixinContent()||this._parseMixinDeclaration()||this._parseRuleset(!0)||this._parseSupports(!0)||this._parseLayer()||this._parsePropertyAtRule()||this._parseContainer(!0)||this._parseRuleSetDeclarationAtStatement():this._parseVariableDeclaration()||this._tryParseRuleset(!0)||this._parseDeclaration()}_parseDeclaration(e){const n=this._tryParseCustomPropertyDeclaration(e);if(n)return n;const r=this.create(Pe);if(!r.setProperty(this._parseProperty()))return null;if(!this.accept(p.Colon))return this.finish(r,S.ColonExpected,[p.Colon],e||[p.SemiColon]);this.prevToken&&(r.colonPosition=this.prevToken.offset);let i=!1;if(r.setValue(this._parseExpr())&&(i=!0,r.addChild(this._parsePrio())),this.peek(p.CurlyL))r.setNestedProperties(this._parseNestedProperties());else if(!i)return this.finish(r,S.PropertyValueExpected);return this.peek(p.SemiColon)&&(r.semicolonPosition=this.token.offset),this.finish(r)}_parseNestedProperties(){const e=this.create(ul);return this._parseBody(e,this._parseDeclaration.bind(this))}_parseExtends(){if(this.peekKeyword("@extend")){const e=this.create(An);if(this.consumeToken(),!e.getSelectors().addChild(this._parseSimpleSelector()))return this.finish(e,S.SelectorExpected);for(;this.accept(p.Comma);)e.getSelectors().addChild(this._parseSimpleSelector());return this.accept(p.Exclamation)&&!this.acceptIdent("optional")?this.finish(e,S.UnknownKeyword):this.finish(e)}return null}_parseSimpleSelectorBody(){return this._parseSelectorPlaceholder()||super._parseSimpleSelectorBody()}_parseNestingSelector(){if(this.peekDelim("&")){const e=this.createNode(v.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(p.Num)||this.accept(p.Dimension)||e.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(e)}return null}_parseSelectorPlaceholder(){if(this.peekDelim("%")){const e=this.createNode(v.SelectorPlaceholder);return this.consumeToken(),this._parseIdent(),this.finish(e)}else if(this.peekKeyword("@at-root")){const e=this.createNode(v.SelectorPlaceholder);if(this.consumeToken(),this.accept(p.ParenthesisL)){if(!this.acceptIdent("with")&&!this.acceptIdent("without"))return this.finish(e,S.IdentifierExpected);if(!this.accept(p.Colon))return this.finish(e,S.ColonExpected);if(!e.addChild(this._parseIdent()))return this.finish(e,S.IdentifierExpected);if(!this.accept(p.ParenthesisR))return this.finish(e,S.RightParenthesisExpected,[p.CurlyR])}return this.finish(e)}return null}_parseElementName(){const e=this.mark(),n=super._parseElementName();return n&&!this.hasWhitespace()&&this.peek(p.ParenthesisL)?(this.restoreAtMark(e),null):n}_tryParsePseudoIdentifier(){return this._parseInterpolation()||super._tryParsePseudoIdentifier()}_parseWarnAndDebug(){if(!this.peekKeyword("@debug")&&!this.peekKeyword("@warn")&&!this.peekKeyword("@error"))return null;const e=this.createNode(v.Debug);return this.consumeToken(),e.addChild(this._parseExpr()),this.finish(e)}_parseControlStatement(e=this._parseRuleSetDeclaration.bind(this)){return this.peek(p.AtKeyword)?this._parseIfStatement(e)||this._parseForStatement(e)||this._parseEachStatement(e)||this._parseWhileStatement(e):null}_parseIfStatement(e){return this.peekKeyword("@if")?this._internalParseIfStatement(e):null}_internalParseIfStatement(e){const n=this.create(vp);if(this.consumeToken(),!n.setExpression(this._parseExpr(!0)))return this.finish(n,S.ExpressionExpected);if(this._parseBody(n,e),this.acceptKeyword("@else")){if(this.peekIdent("if"))n.setElseClause(this._internalParseIfStatement(e));else if(this.peek(p.CurlyL)){const r=this.create(Cp);this._parseBody(r,e),n.setElseClause(r)}}return this.finish(n)}_parseForStatement(e){if(!this.peekKeyword("@for"))return null;const n=this.create(yp);return this.consumeToken(),n.setVariable(this._parseVariable())?this.acceptIdent("from")?n.addChild(this._parseBinaryExpr())?!this.acceptIdent("to")&&!this.acceptIdent("through")?this.finish(n,Fs.ThroughOrToExpected,[p.CurlyR]):n.addChild(this._parseBinaryExpr())?this._parseBody(n,e):this.finish(n,S.ExpressionExpected,[p.CurlyR]):this.finish(n,S.ExpressionExpected,[p.CurlyR]):this.finish(n,Fs.FromExpected,[p.CurlyR]):this.finish(n,S.VariableNameExpected,[p.CurlyR])}_parseEachStatement(e){if(!this.peekKeyword("@each"))return null;const n=this.create(xp);this.consumeToken();const r=n.getVariables();if(!r.addChild(this._parseVariable()))return this.finish(n,S.VariableNameExpected,[p.CurlyR]);for(;this.accept(p.Comma);)if(!r.addChild(this._parseVariable()))return this.finish(n,S.VariableNameExpected,[p.CurlyR]);return this.finish(r),this.acceptIdent("in")?n.addChild(this._parseExpr())?this._parseBody(n,e):this.finish(n,S.ExpressionExpected,[p.CurlyR]):this.finish(n,Fs.InExpected,[p.CurlyR])}_parseWhileStatement(e){if(!this.peekKeyword("@while"))return null;const n=this.create(Sp);return this.consumeToken(),n.addChild(this._parseBinaryExpr())?this._parseBody(n,e):this.finish(n,S.ExpressionExpected,[p.CurlyR])}_parseFunctionBodyDeclaration(){return this._parseVariableDeclaration()||this._parseReturnStatement()||this._parseWarnAndDebug()||this._parseControlStatement(this._parseFunctionBodyDeclaration.bind(this))}_parseFunctionDeclaration(){if(!this.peekKeyword("@function"))return null;const e=this.create(ur);if(this.consumeToken(),!e.setIdentifier(this._parseIdent([Q.Function])))return this.finish(e,S.IdentifierExpected,[p.CurlyR]);if(!this.accept(p.ParenthesisL))return this.finish(e,S.LeftParenthesisExpected,[p.CurlyR]);if(e.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!e.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(e,S.VariableNameExpected)}return this.accept(p.ParenthesisR)?this._parseBody(e,this._parseFunctionBodyDeclaration.bind(this)):this.finish(e,S.RightParenthesisExpected,[p.CurlyR])}_parseReturnStatement(){if(!this.peekKeyword("@return"))return null;const e=this.createNode(v.ReturnStatement);return this.consumeToken(),e.addChild(this._parseExpr())?this.finish(e):this.finish(e,S.ExpressionExpected)}_parseMixinDeclaration(){if(!this.peekKeyword("@mixin"))return null;const e=this.create(Mn);if(this.consumeToken(),!e.setIdentifier(this._parseIdent([Q.Mixin])))return this.finish(e,S.IdentifierExpected,[p.CurlyR]);if(this.accept(p.ParenthesisL)){if(e.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!e.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(e,S.VariableNameExpected)}if(!this.accept(p.ParenthesisR))return this.finish(e,S.RightParenthesisExpected,[p.CurlyR])}return this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_parseParameterDeclaration(){const e=this.create(dr);return e.setIdentifier(this._parseVariable())?(this.accept(Ar),this.accept(p.Colon)&&!e.setDefaultValue(this._parseExpr(!0))?this.finish(e,S.VariableValueExpected,[],[p.Comma,p.ParenthesisR]):this.finish(e)):null}_parseMixinContent(){if(!this.peekKeyword("@content"))return null;const e=this.create(qp);if(this.consumeToken(),this.accept(p.ParenthesisL)){if(e.getArguments().addChild(this._parseFunctionArgument())){for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!e.getArguments().addChild(this._parseFunctionArgument()))return this.finish(e,S.ExpressionExpected)}if(!this.accept(p.ParenthesisR))return this.finish(e,S.RightParenthesisExpected)}return this.finish(e)}_parseMixinReference(){if(!this.peekKeyword("@include"))return null;const e=this.create(mr);this.consumeToken();const n=this._parseIdent([Q.Mixin]);if(!e.setIdentifier(n))return this.finish(e,S.IdentifierExpected,[p.CurlyR]);if(!this.hasWhitespace()&&this.acceptDelim(".")&&!this.hasWhitespace()){const r=this._parseIdent([Q.Mixin]);if(!r)return this.finish(e,S.IdentifierExpected,[p.CurlyR]);const i=this.create(vl);n.referenceTypes=[Q.Module],i.setIdentifier(n),e.setIdentifier(r),e.addChild(i)}if(this.accept(p.ParenthesisL)){if(e.getArguments().addChild(this._parseFunctionArgument())){for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!e.getArguments().addChild(this._parseFunctionArgument()))return this.finish(e,S.ExpressionExpected)}if(!this.accept(p.ParenthesisR))return this.finish(e,S.RightParenthesisExpected)}return(this.peekIdent("using")||this.peek(p.CurlyL))&&e.setContent(this._parseMixinContentDeclaration()),this.finish(e)}_parseMixinContentDeclaration(){const e=this.create(jp);if(this.acceptIdent("using")){if(!this.accept(p.ParenthesisL))return this.finish(e,S.LeftParenthesisExpected,[p.CurlyL]);if(e.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!e.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(e,S.VariableNameExpected)}if(!this.accept(p.ParenthesisR))return this.finish(e,S.RightParenthesisExpected,[p.CurlyL])}return this.peek(p.CurlyL)&&this._parseBody(e,this._parseMixinReferenceBodyStatement.bind(this)),this.finish(e)}_parseMixinReferenceBodyStatement(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()}_parseFunctionArgument(){const e=this.create(Qt),n=this.mark(),r=this._parseVariable();if(r)if(this.accept(p.Colon))e.setIdentifier(r);else{if(this.accept(Ar))return e.setValue(r),this.finish(e);this.restoreAtMark(n)}return e.setValue(this._parseExpr(!0))?(this.accept(Ar),e.addChild(this._parsePrio()),this.finish(e)):e.setValue(this._tryParsePrio())?this.finish(e):null}_parseURLArgument(){const e=this.mark(),n=super._parseURLArgument();if(!n||!this.peek(p.ParenthesisR)){this.restoreAtMark(e);const r=this.create(W);return r.addChild(this._parseBinaryExpr()),this.finish(r)}return n}_parseOperation(){if(!this.peek(p.ParenthesisL))return null;const e=this.create(W);for(this.consumeToken();e.addChild(this._parseListElement());)this.accept(p.Comma);return this.accept(p.ParenthesisR)?this.finish(e):this.finish(e,S.RightParenthesisExpected)}_parseListElement(){const e=this.create(Hp),n=this._parseBinaryExpr();if(!n)return null;if(this.accept(p.Colon)){if(e.setKey(n),!e.setValue(this._parseBinaryExpr()))return this.finish(e,S.ExpressionExpected)}else e.setValue(n);return this.finish(e)}_parseUse(){if(!this.peekKeyword("@use"))return null;const e=this.create(_p);if(this.consumeToken(),!e.addChild(this._parseStringLiteral()))return this.finish(e,S.StringLiteralExpected);if(!this.peek(p.SemiColon)&&!this.peek(p.EOF)){if(!this.peekRegExp(p.Ident,/as|with/))return this.finish(e,S.UnknownKeyword);if(this.acceptIdent("as")&&!e.setIdentifier(this._parseIdent([Q.Module]))&&!this.acceptDelim("*"))return this.finish(e,S.IdentifierOrWildcardExpected);if(this.acceptIdent("with")){if(!this.accept(p.ParenthesisL))return this.finish(e,S.LeftParenthesisExpected,[p.ParenthesisR]);if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,S.VariableNameExpected);for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,S.VariableNameExpected);if(!this.accept(p.ParenthesisR))return this.finish(e,S.RightParenthesisExpected)}}return!this.accept(p.SemiColon)&&!this.accept(p.EOF)?this.finish(e,S.SemiColonExpected):this.finish(e)}_parseModuleConfigDeclaration(){const e=this.create(Ep);return e.setIdentifier(this._parseVariable())?!this.accept(p.Colon)||!e.setValue(this._parseExpr(!0))?this.finish(e,S.VariableValueExpected,[],[p.Comma,p.ParenthesisR]):this.accept(p.Exclamation)&&(this.hasWhitespace()||!this.acceptIdent("default"))?this.finish(e,S.UnknownKeyword):this.finish(e):null}_parseForward(){if(!this.peekKeyword("@forward"))return null;const e=this.create(Fp);if(this.consumeToken(),!e.addChild(this._parseStringLiteral()))return this.finish(e,S.StringLiteralExpected);if(this.acceptIdent("as")){const n=this._parseIdent([Q.Forward]);if(!e.setIdentifier(n))return this.finish(e,S.IdentifierExpected);if(this.hasWhitespace()||!this.acceptDelim("*"))return this.finish(e,S.WildcardExpected)}if(this.acceptIdent("with")){if(!this.accept(p.ParenthesisL))return this.finish(e,S.LeftParenthesisExpected,[p.ParenthesisR]);if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,S.VariableNameExpected);for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,S.VariableNameExpected);if(!this.accept(p.ParenthesisR))return this.finish(e,S.RightParenthesisExpected)}else if((this.peekIdent("hide")||this.peekIdent("show"))&&!e.addChild(this._parseForwardVisibility()))return this.finish(e,S.IdentifierOrVariableExpected);return!this.accept(p.SemiColon)&&!this.accept(p.EOF)?this.finish(e,S.SemiColonExpected):this.finish(e)}_parseForwardVisibility(){const e=this.create(Rp);for(e.setIdentifier(this._parseIdent());e.addChild(this._parseVariable()||this._parseIdent());)this.accept(p.Comma);return e.getChildren().length>1?e:null}_parseSupportsCondition(){return this._parseInterpolation()||super._parseSupportsCondition()}}const lt=w("Sass documentation");class ge extends ds{constructor(e,n){super("$",e,n),Kc(ge.scssModuleLoaders),Kc(ge.scssModuleBuiltIns)}isImportPathParent(e){return e===v.Forward||e===v.Use||super.isImportPathParent(e)}getCompletionForImportPath(e,n){const r=e.getParent().type;if(r===v.Forward||r===v.Use)for(let i of ge.scssModuleBuiltIns){const s={label:i.label,documentation:i.documentation,textEdit:j.replace(this.getCompletionRange(e),`'${i.label}'`),kind:q.Module};n.items.push(s)}return super.getCompletionForImportPath(e,n)}createReplaceFunction(){let e=1;return(n,r)=>"\\"+r+": ${"+e+++":"+(ge.variableDefaults[r]||"")+"}"}createFunctionProposals(e,n,r,i){for(const s of e){const a=s.func.replace(/\[?(\$\w+)\]?/g,this.createReplaceFunction()),l={label:s.func.substr(0,s.func.indexOf("(")),detail:s.func,documentation:s.desc,textEdit:j.replace(this.getCompletionRange(n),a),insertTextFormat:Ie.Snippet,kind:q.Function};r&&(l.sortText="z"),i.items.push(l)}return i}getCompletionsForSelector(e,n,r){return this.createFunctionProposals(ge.selectorFuncs,null,!0,r),super.getCompletionsForSelector(e,n,r)}getTermProposals(e,n,r){let i=ge.builtInFuncs;return e&&(i=i.filter(s=>!s.type||!e.restrictions||e.restrictions.indexOf(s.type)!==-1)),this.createFunctionProposals(i,n,!0,r),super.getTermProposals(e,n,r)}getColorProposals(e,n,r){return this.createFunctionProposals(ge.colorProposals,n,!1,r),super.getColorProposals(e,n,r)}getCompletionsForDeclarationProperty(e,n){return this.getCompletionForAtDirectives(n),this.getCompletionsForSelector(null,!0,n),super.getCompletionsForDeclarationProperty(e,n)}getCompletionsForExtendsReference(e,n,r){const i=this.getSymbolContext().findSymbolsAtOffset(this.offset,Q.Rule);for(const s of i){const a={label:s.name,textEdit:j.replace(this.getCompletionRange(n),s.name),kind:q.Function};r.items.push(a)}return r}getCompletionForAtDirectives(e){return e.items.push(...ge.scssAtDirectives),e}getCompletionForTopLevel(e){return this.getCompletionForAtDirectives(e),this.getCompletionForModuleLoaders(e),super.getCompletionForTopLevel(e),e}getCompletionForModuleLoaders(e){return e.items.push(...ge.scssModuleLoaders),e}}ge.variableDefaults={$red:"1",$green:"2",$blue:"3",$alpha:"1.0",$color:"#000000",$weight:"0.5",$hue:"0",$saturation:"0%",$lightness:"0%",$degrees:"0",$amount:"0",$string:'""',$substring:'"s"',$number:"0",$limit:"1"},ge.colorProposals=[{func:"red($color)",desc:w("Gets the red component of a color.")},{func:"green($color)",desc:w("Gets the green component of a color.")},{func:"blue($color)",desc:w("Gets the blue component of a color.")},{func:"mix($color, $color, [$weight])",desc:w("Mixes two colors together.")},{func:"hue($color)",desc:w("Gets the hue component of a color.")},{func:"saturation($color)",desc:w("Gets the saturation component of a color.")},{func:"lightness($color)",desc:w("Gets the lightness component of a color.")},{func:"adjust-hue($color, $degrees)",desc:w("Changes the hue of a color.")},{func:"lighten($color, $amount)",desc:w("Makes a color lighter.")},{func:"darken($color, $amount)",desc:w("Makes a color darker.")},{func:"saturate($color, $amount)",desc:w("Makes a color more saturated.")},{func:"desaturate($color, $amount)",desc:w("Makes a color less saturated.")},{func:"grayscale($color)",desc:w("Converts a color to grayscale.")},{func:"complement($color)",desc:w("Returns the complement of a color.")},{func:"invert($color)",desc:w("Returns the inverse of a color.")},{func:"alpha($color)",desc:w("Gets the opacity component of a color.")},{func:"opacity($color)",desc:"Gets the alpha component (opacity) of a color."},{func:"rgba($color, $alpha)",desc:w("Changes the alpha component for a color.")},{func:"opacify($color, $amount)",desc:w("Makes a color more opaque.")},{func:"fade-in($color, $amount)",desc:w("Makes a color more opaque.")},{func:"transparentize($color, $amount)",desc:w("Makes a color more transparent.")},{func:"fade-out($color, $amount)",desc:w("Makes a color more transparent.")},{func:"adjust-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])",desc:w("Increases or decreases one or more components of a color.")},{func:"scale-color($color, [$red], [$green], [$blue], [$saturation], [$lightness], [$alpha])",desc:w("Fluidly scales one or more properties of a color.")},{func:"change-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])",desc:w("Changes one or more properties of a color.")},{func:"ie-hex-str($color)",desc:w("Converts a color into the format understood by IE filters.")}],ge.selectorFuncs=[{func:"selector-nest($selectors…)",desc:w("Nests selector beneath one another like they would be nested in the stylesheet.")},{func:"selector-append($selectors…)",desc:w("Appends selectors to one another without spaces in between.")},{func:"selector-extend($selector, $extendee, $extender)",desc:w("Extends $extendee with $extender within $selector.")},{func:"selector-replace($selector, $original, $replacement)",desc:w("Replaces $original with $replacement within $selector.")},{func:"selector-unify($selector1, $selector2)",desc:w("Unifies two selectors to produce a selector that matches elements matched by both.")},{func:"is-superselector($super, $sub)",desc:w("Returns whether $super matches all the elements $sub does, and possibly more.")},{func:"simple-selectors($selector)",desc:w("Returns the simple selectors that comprise a compound selector.")},{func:"selector-parse($selector)",desc:w("Parses a selector into the format returned by &.")}],ge.builtInFuncs=[{func:"unquote($string)",desc:w("Removes quotes from a string.")},{func:"quote($string)",desc:w("Adds quotes to a string.")},{func:"str-length($string)",desc:w("Returns the number of characters in a string.")},{func:"str-insert($string, $insert, $index)",desc:w("Inserts $insert into $string at $index.")},{func:"str-index($string, $substring)",desc:w("Returns the index of the first occurance of $substring in $string.")},{func:"str-slice($string, $start-at, [$end-at])",desc:w("Extracts a substring from $string.")},{func:"to-upper-case($string)",desc:w("Converts a string to upper case.")},{func:"to-lower-case($string)",desc:w("Converts a string to lower case.")},{func:"percentage($number)",desc:w("Converts a unitless number to a percentage."),type:"percentage"},{func:"round($number)",desc:w("Rounds a number to the nearest whole number.")},{func:"ceil($number)",desc:w("Rounds a number up to the next whole number.")},{func:"floor($number)",desc:w("Rounds a number down to the previous whole number.")},{func:"abs($number)",desc:w("Returns the absolute value of a number.")},{func:"min($numbers)",desc:w("Finds the minimum of several numbers.")},{func:"max($numbers)",desc:w("Finds the maximum of several numbers.")},{func:"random([$limit])",desc:w("Returns a random number.")},{func:"length($list)",desc:w("Returns the length of a list.")},{func:"nth($list, $n)",desc:w("Returns a specific item in a list.")},{func:"set-nth($list, $n, $value)",desc:w("Replaces the nth item in a list.")},{func:"join($list1, $list2, [$separator])",desc:w("Joins together two lists into one.")},{func:"append($list1, $val, [$separator])",desc:w("Appends a single value onto the end of a list.")},{func:"zip($lists)",desc:w("Combines several lists into a single multidimensional list.")},{func:"index($list, $value)",desc:w("Returns the position of a value within a list.")},{func:"list-separator(#list)",desc:w("Returns the separator of a list.")},{func:"map-get($map, $key)",desc:w("Returns the value in a map associated with a given key.")},{func:"map-merge($map1, $map2)",desc:w("Merges two maps together into a new map.")},{func:"map-remove($map, $keys)",desc:w("Returns a new map with keys removed.")},{func:"map-keys($map)",desc:w("Returns a list of all keys in a map.")},{func:"map-values($map)",desc:w("Returns a list of all values in a map.")},{func:"map-has-key($map, $key)",desc:w("Returns whether a map has a value associated with a given key.")},{func:"keywords($args)",desc:w("Returns the keywords passed to a function that takes variable arguments.")},{func:"feature-exists($feature)",desc:w("Returns whether a feature exists in the current Sass runtime.")},{func:"variable-exists($name)",desc:w("Returns whether a variable with the given name exists in the current scope.")},{func:"global-variable-exists($name)",desc:w("Returns whether a variable with the given name exists in the global scope.")},{func:"function-exists($name)",desc:w("Returns whether a function with the given name exists.")},{func:"mixin-exists($name)",desc:w("Returns whether a mixin with the given name exists.")},{func:"inspect($value)",desc:w("Returns the string representation of a value as it would be represented in Sass.")},{func:"type-of($value)",desc:w("Returns the type of a value.")},{func:"unit($number)",desc:w("Returns the unit(s) associated with a number.")},{func:"unitless($number)",desc:w("Returns whether a number has units.")},{func:"comparable($number1, $number2)",desc:w("Returns whether two numbers can be added, subtracted, or compared.")},{func:"call($name, $args…)",desc:w("Dynamically calls a Sass function.")}],ge.scssAtDirectives=[{label:"@extend",documentation:w("Inherits the styles of another selector."),kind:q.Keyword},{label:"@at-root",documentation:w("Causes one or more rules to be emitted at the root of the document."),kind:q.Keyword},{label:"@debug",documentation:w("Prints the value of an expression to the standard error output stream. Useful for debugging complicated Sass files."),kind:q.Keyword},{label:"@warn",documentation:w("Prints the value of an expression to the standard error output stream. Useful for libraries that need to warn users of deprecations or recovering from minor mixin usage mistakes. Warnings can be turned off with the `--quiet` command-line option or the `:quiet` Sass option."),kind:q.Keyword},{label:"@error",documentation:w("Throws the value of an expression as a fatal error with stack trace. Useful for validating arguments to mixins and functions."),kind:q.Keyword},{label:"@if",documentation:w("Includes the body if the expression does not evaluate to `false` or `null`."),insertText:`@if \${1:expr} { - $0 -}`,insertTextFormat:Ie.Snippet,kind:q.Keyword},{label:"@for",documentation:w("For loop that repeatedly outputs a set of styles for each `$var` in the `from/through` or `from/to` clause."),insertText:"@for \\$${1:var} from ${2:start} ${3|to,through|} ${4:end} {\n $0\n}",insertTextFormat:Ie.Snippet,kind:q.Keyword},{label:"@each",documentation:w("Each loop that sets `$var` to each item in the list or map, then outputs the styles it contains using that value of `$var`."),insertText:"@each \\$${1:var} in ${2:list} {\n $0\n}",insertTextFormat:Ie.Snippet,kind:q.Keyword},{label:"@while",documentation:w("While loop that takes an expression and repeatedly outputs the nested styles until the statement evaluates to `false`."),insertText:`@while \${1:condition} { - $0 -}`,insertTextFormat:Ie.Snippet,kind:q.Keyword},{label:"@mixin",documentation:w("Defines styles that can be re-used throughout the stylesheet with `@include`."),insertText:`@mixin \${1:name} { - $0 -}`,insertTextFormat:Ie.Snippet,kind:q.Keyword},{label:"@include",documentation:w("Includes the styles defined by another mixin into the current rule."),kind:q.Keyword},{label:"@function",documentation:w("Defines complex operations that can be re-used throughout stylesheets."),kind:q.Keyword}],ge.scssModuleLoaders=[{label:"@use",documentation:w("Loads mixins, functions, and variables from other Sass stylesheets as 'modules', and combines CSS from multiple stylesheets together."),references:[{name:lt,url:"https://sass-lang.com/documentation/at-rules/use"}],insertText:"@use $0;",insertTextFormat:Ie.Snippet,kind:q.Keyword},{label:"@forward",documentation:w("Loads a Sass stylesheet and makes its mixins, functions, and variables available when this stylesheet is loaded with the @use rule."),references:[{name:lt,url:"https://sass-lang.com/documentation/at-rules/forward"}],insertText:"@forward $0;",insertTextFormat:Ie.Snippet,kind:q.Keyword}],ge.scssModuleBuiltIns=[{label:"sass:math",documentation:w("Provides functions that operate on numbers."),references:[{name:lt,url:"https://sass-lang.com/documentation/modules/math"}]},{label:"sass:string",documentation:w("Makes it easy to combine, search, or split apart strings."),references:[{name:lt,url:"https://sass-lang.com/documentation/modules/string"}]},{label:"sass:color",documentation:w("Generates new colors based on existing ones, making it easy to build color themes."),references:[{name:lt,url:"https://sass-lang.com/documentation/modules/color"}]},{label:"sass:list",documentation:w("Lets you access and modify values in lists."),references:[{name:lt,url:"https://sass-lang.com/documentation/modules/list"}]},{label:"sass:map",documentation:w("Makes it possible to look up the value associated with a key in a map, and much more."),references:[{name:lt,url:"https://sass-lang.com/documentation/modules/map"}]},{label:"sass:selector",documentation:w("Provides access to Sass’s powerful selector engine."),references:[{name:lt,url:"https://sass-lang.com/documentation/modules/selector"}]},{label:"sass:meta",documentation:w("Exposes the details of Sass’s inner workings."),references:[{name:lt,url:"https://sass-lang.com/documentation/modules/meta"}]}];function Kc(t){t.forEach(e=>{if(e.documentation&&e.references&&e.references.length>0){const n=typeof e.documentation=="string"?{kind:"markdown",value:e.documentation}:{kind:"markdown",value:e.documentation.value};n.value+=` - -`,n.value+=e.references.map(r=>`[${r.name}](${r.url})`).join(" | "),e.documentation=n}})}const Zc=47,ef=10,tf=13,nf=12,Rs=96,Ns=46;let rf=p.CustomToken;const Is=rf++;class eh extends Nn{scanNext(e){const n=this.escapedJavaScript();return n!==null?this.finishToken(e,n):this.stream.advanceIfChars([Ns,Ns,Ns])?this.finishToken(e,Is):super.scanNext(e)}comment(){return super.comment()?!0:!this.inURL&&this.stream.advanceIfChars([Zc,Zc])?(this.stream.advanceWhileChar(e=>{switch(e){case ef:case tf:case nf:return!1;default:return!0}}),!0):!1}escapedJavaScript(){return this.stream.peekChar()===Rs?(this.stream.advance(1),this.stream.advanceWhileChar(n=>n!==Rs),this.stream.advanceIfChar(Rs)?p.EscapedJavaScript:p.BadEscapedJavaScript):null}}class sf extends _r{constructor(){super(new eh)}_parseStylesheetStatement(e=!1){return this.peek(p.AtKeyword)?this._parseVariableDeclaration()||this._parsePlugin()||super._parseStylesheetAtStatement(e):this._tryParseMixinDeclaration()||this._tryParseMixinReference()||this._parseFunction()||this._parseRuleset(!0)}_parseImport(){if(!this.peekKeyword("@import")&&!this.peekKeyword("@import-once"))return null;const e=this.create(zi);if(this.consumeToken(),this.accept(p.ParenthesisL)){if(!this.accept(p.Ident))return this.finish(e,S.IdentifierExpected,[p.SemiColon]);do if(!this.accept(p.Comma))break;while(this.accept(p.Ident));if(!this.accept(p.ParenthesisR))return this.finish(e,S.RightParenthesisExpected,[p.SemiColon])}return!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral())?this.finish(e,S.URIOrStringExpected,[p.SemiColon]):(!this.peek(p.SemiColon)&&!this.peek(p.EOF)&&e.setMedialist(this._parseMediaQueryList()),this._completeParseImport(e))}_parsePlugin(){if(!this.peekKeyword("@plugin"))return null;const e=this.createNode(v.Plugin);return this.consumeToken(),e.addChild(this._parseStringLiteral())?this.accept(p.SemiColon)?this.finish(e):this.finish(e,S.SemiColonExpected):this.finish(e,S.StringLiteralExpected)}_parseMediaQuery(){const e=super._parseMediaQuery();if(!e){const n=this.create(gl);return n.addChild(this._parseVariable())?this.finish(n):null}return e}_parseMediaDeclaration(e=!1){return this._tryParseRuleset(e)||this._tryToParseDeclaration()||this._tryParseMixinDeclaration()||this._tryParseMixinReference()||this._parseDetachedRuleSetMixin()||this._parseStylesheetStatement(e)}_parseMediaFeatureName(){return this._parseIdent()||this._parseVariable()}_parseVariableDeclaration(e=[]){const n=this.create(pr),r=this.mark();if(!n.setVariable(this._parseVariable(!0)))return null;if(this.accept(p.Colon)){if(this.prevToken&&(n.colonPosition=this.prevToken.offset),n.setValue(this._parseDetachedRuleSet()))n.needsSemicolon=!1;else if(!n.setValue(this._parseExpr()))return this.finish(n,S.VariableValueExpected,[],e);n.addChild(this._parsePrio())}else return this.restoreAtMark(r),null;return this.peek(p.SemiColon)&&(n.semicolonPosition=this.token.offset),this.finish(n)}_parseDetachedRuleSet(){let e=this.mark();if(this.peekDelim("#")||this.peekDelim("."))if(this.consumeToken(),!this.hasWhitespace()&&this.accept(p.ParenthesisL)){let r=this.create(Mn);if(r.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(p.Comma)||this.accept(p.SemiColon))&&!this.peek(p.ParenthesisR);)r.getParameters().addChild(this._parseMixinParameter())||this.markError(r,S.IdentifierExpected,[],[p.ParenthesisR]);if(!this.accept(p.ParenthesisR))return this.restoreAtMark(e),null}else return this.restoreAtMark(e),null;if(!this.peek(p.CurlyL))return null;const n=this.create(oe);return this._parseBody(n,this._parseDetachedRuleSetBody.bind(this)),this.finish(n)}_parseDetachedRuleSetBody(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()}_addLookupChildren(e){if(!e.addChild(this._parseLookupValue()))return!1;let n=!1;for(;this.peek(p.BracketL)&&(n=!0),!!e.addChild(this._parseLookupValue());)n=!1;return!n}_parseLookupValue(){const e=this.create(W),n=this.mark();return this.accept(p.BracketL)?(e.addChild(this._parseVariable(!1,!0))||e.addChild(this._parsePropertyIdentifier()))&&this.accept(p.BracketR)||this.accept(p.BracketR)?e:(this.restoreAtMark(n),null):(this.restoreAtMark(n),null)}_parseVariable(e=!1,n=!1){const r=!e&&this.peekDelim("$");if(!this.peekDelim("@")&&!r&&!this.peek(p.AtKeyword))return null;const i=this.create(Ui),s=this.mark();for(;this.acceptDelim("@")||!e&&this.acceptDelim("$");)if(this.hasWhitespace())return this.restoreAtMark(s),null;return!this.accept(p.AtKeyword)&&!this.accept(p.Ident)?(this.restoreAtMark(s),null):!n&&this.peek(p.BracketL)&&!this._addLookupChildren(i)?(this.restoreAtMark(s),null):i}_parseTermExpression(){return this._parseVariable()||this._parseEscaped()||super._parseTermExpression()||this._tryParseMixinReference(!1)}_parseEscaped(){if(this.peek(p.EscapedJavaScript)||this.peek(p.BadEscapedJavaScript)){const e=this.createNode(v.EscapedValue);return this.consumeToken(),this.finish(e)}if(this.peekDelim("~")){const e=this.createNode(v.EscapedValue);return this.consumeToken(),this.accept(p.String)||this.accept(p.EscapedJavaScript)?this.finish(e):this.finish(e,S.TermExpected)}return null}_parseOperator(){const e=this._parseGuardOperator();return e||super._parseOperator()}_parseGuardOperator(){if(this.peekDelim(">")){const e=this.createNode(v.Operator);return this.consumeToken(),this.acceptDelim("="),e}else if(this.peekDelim("=")){const e=this.createNode(v.Operator);return this.consumeToken(),this.acceptDelim("<"),e}else if(this.peekDelim("<")){const e=this.createNode(v.Operator);return this.consumeToken(),this.acceptDelim("="),e}return null}_parseRuleSetDeclaration(){return this.peek(p.AtKeyword)?this._parseKeyframe()||this._parseMedia(!0)||this._parseImport()||this._parseSupports(!0)||this._parseLayer()||this._parsePropertyAtRule()||this._parseContainer(!0)||this._parseDetachedRuleSetMixin()||this._parseVariableDeclaration()||this._parseRuleSetDeclarationAtStatement():this._tryParseMixinDeclaration()||this._tryParseRuleset(!0)||this._tryParseMixinReference()||this._parseFunction()||this._parseExtend()||this._parseDeclaration()}_parseKeyframeIdent(){return this._parseIdent([Q.Keyframe])||this._parseVariable()}_parseKeyframeSelector(){return this._parseDetachedRuleSetMixin()||super._parseKeyframeSelector()}_parseSelector(e){const n=this.create(In);let r=!1;for(e&&(r=n.addChild(this._parseCombinator()));n.addChild(this._parseSimpleSelector());){r=!0;const i=this.mark();if(n.addChild(this._parseGuard())&&this.peek(p.CurlyL))break;this.restoreAtMark(i),n.addChild(this._parseCombinator())}return r?this.finish(n):null}_parseNestingSelector(){if(this.peekDelim("&")){const e=this.createNode(v.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(p.Num)||this.accept(p.Dimension)||e.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(e)}return null}_parseSelectorIdent(){if(!this.peekInterpolatedIdent())return null;const e=this.createNode(v.SelectorInterpolation);return this._acceptInterpolatedIdent(e)?this.finish(e):null}_parsePropertyIdentifier(e=!1){const n=/^[\w-]+/;if(!this.peekInterpolatedIdent()&&!this.peekRegExp(this.token.type,n))return null;const r=this.mark(),i=this.create(ze);i.isCustomProperty=this.acceptDelim("-")&&this.acceptDelim("-");let s=!1;return e?i.isCustomProperty?s=i.addChild(this._parseIdent()):s=i.addChild(this._parseRegexp(n)):i.isCustomProperty?s=this._acceptInterpolatedIdent(i):s=this._acceptInterpolatedIdent(i,n),s?(!e&&!this.hasWhitespace()&&(this.acceptDelim("+"),this.hasWhitespace()||this.acceptIdent("_")),this.finish(i)):(this.restoreAtMark(r),null)}peekInterpolatedIdent(){return this.peek(p.Ident)||this.peekDelim("@")||this.peekDelim("$")||this.peekDelim("-")}_acceptInterpolatedIdent(e,n){let r=!1;const i=()=>{const a=this.mark();return this.acceptDelim("-")&&(this.hasWhitespace()||this.acceptDelim("-"),this.hasWhitespace())?(this.restoreAtMark(a),null):this._parseInterpolation()},s=n?()=>this.acceptRegexp(n):()=>this.accept(p.Ident);for(;(s()||e.addChild(this._parseInterpolation()||this.try(i)))&&(r=!0,!this.hasWhitespace()););return r}_parseInterpolation(){const e=this.mark();if(this.peekDelim("@")||this.peekDelim("$")){const n=this.createNode(v.Interpolation);return this.consumeToken(),this.hasWhitespace()||!this.accept(p.CurlyL)?(this.restoreAtMark(e),null):n.addChild(this._parseIdent())?this.accept(p.CurlyR)?this.finish(n):this.finish(n,S.RightCurlyExpected):this.finish(n,S.IdentifierExpected)}return null}_tryParseMixinDeclaration(){const e=this.mark(),n=this.create(Mn);if(!n.setIdentifier(this._parseMixinDeclarationIdentifier())||!this.accept(p.ParenthesisL))return this.restoreAtMark(e),null;if(n.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(p.Comma)||this.accept(p.SemiColon))&&!this.peek(p.ParenthesisR);)n.getParameters().addChild(this._parseMixinParameter())||this.markError(n,S.IdentifierExpected,[],[p.ParenthesisR]);return this.accept(p.ParenthesisR)?(n.setGuard(this._parseGuard()),this.peek(p.CurlyL)?this._parseBody(n,this._parseMixInBodyDeclaration.bind(this)):(this.restoreAtMark(e),null)):(this.restoreAtMark(e),null)}_parseMixInBodyDeclaration(){return this._parseFontFace()||this._parseRuleSetDeclaration()}_parseMixinDeclarationIdentifier(){let e;if(this.peekDelim("#")||this.peekDelim(".")){if(e=this.create(ze),this.consumeToken(),this.hasWhitespace()||!e.addChild(this._parseIdent()))return null}else if(this.peek(p.Hash))e=this.create(ze),this.consumeToken();else return null;return e.referenceTypes=[Q.Mixin],this.finish(e)}_parsePseudo(){if(!this.peek(p.Colon))return null;const e=this.mark(),n=this.create(An);return this.consumeToken(),this.acceptIdent("extend")?this._completeExtends(n):(this.restoreAtMark(e),super._parsePseudo())}_parseExtend(){if(!this.peekDelim("&"))return null;const e=this.mark(),n=this.create(An);return this.consumeToken(),this.hasWhitespace()||!this.accept(p.Colon)||!this.acceptIdent("extend")?(this.restoreAtMark(e),null):this._completeExtends(n)}_completeExtends(e){if(!this.accept(p.ParenthesisL))return this.finish(e,S.LeftParenthesisExpected);const n=e.getSelectors();if(!n.addChild(this._parseSelector(!0)))return this.finish(e,S.SelectorExpected);for(;this.accept(p.Comma);)if(!n.addChild(this._parseSelector(!0)))return this.finish(e,S.SelectorExpected);return this.accept(p.ParenthesisR)?this.finish(e):this.finish(e,S.RightParenthesisExpected)}_parseDetachedRuleSetMixin(){if(!this.peek(p.AtKeyword))return null;const e=this.mark(),n=this.create(mr);return n.addChild(this._parseVariable(!0))&&(this.hasWhitespace()||!this.accept(p.ParenthesisL))?(this.restoreAtMark(e),null):this.accept(p.ParenthesisR)?this.finish(n):this.finish(n,S.RightParenthesisExpected)}_tryParseMixinReference(e=!0){const n=this.mark(),r=this.create(mr);let i=this._parseMixinDeclarationIdentifier();for(;i;){this.acceptDelim(">");const a=this._parseMixinDeclarationIdentifier();if(a)r.getNamespaces().addChild(i),i=a;else break}if(!r.setIdentifier(i))return this.restoreAtMark(n),null;let s=!1;if(this.accept(p.ParenthesisL)){if(s=!0,r.getArguments().addChild(this._parseMixinArgument())){for(;(this.accept(p.Comma)||this.accept(p.SemiColon))&&!this.peek(p.ParenthesisR);)if(!r.getArguments().addChild(this._parseMixinArgument()))return this.finish(r,S.ExpressionExpected)}if(!this.accept(p.ParenthesisR))return this.finish(r,S.RightParenthesisExpected);i.referenceTypes=[Q.Mixin]}else i.referenceTypes=[Q.Mixin,Q.Rule];return this.peek(p.BracketL)?e||this._addLookupChildren(r):r.addChild(this._parsePrio()),!s&&!this.peek(p.SemiColon)&&!this.peek(p.CurlyR)&&!this.peek(p.EOF)?(this.restoreAtMark(n),null):this.finish(r)}_parseMixinArgument(){const e=this.create(Qt),n=this.mark(),r=this._parseVariable();return r&&(this.accept(p.Colon)?e.setIdentifier(r):this.restoreAtMark(n)),e.setValue(this._parseDetachedRuleSet()||this._parseExpr(!0))?this.finish(e):(this.restoreAtMark(n),null)}_parseMixinParameter(){const e=this.create(dr);if(this.peekKeyword("@rest")){const r=this.create(W);return this.consumeToken(),this.accept(Is)?(e.setIdentifier(this.finish(r)),this.finish(e)):this.finish(e,S.DotExpected,[],[p.Comma,p.ParenthesisR])}if(this.peek(Is)){const r=this.create(W);return this.consumeToken(),e.setIdentifier(this.finish(r)),this.finish(e)}let n=!1;return e.setIdentifier(this._parseVariable())&&(this.accept(p.Colon),n=!0),!e.setDefaultValue(this._parseDetachedRuleSet()||this._parseExpr(!0))&&!n?null:this.finish(e)}_parseGuard(){if(!this.peekIdent("when"))return null;const e=this.create(Gp);if(this.consumeToken(),!e.getConditions().addChild(this._parseGuardCondition()))return this.finish(e,S.ConditionExpected);for(;this.acceptIdent("and")||this.accept(p.Comma);)if(!e.getConditions().addChild(this._parseGuardCondition()))return this.finish(e,S.ConditionExpected);return this.finish(e)}_parseGuardCondition(){const e=this.create(Jp);return e.isNegated=this.acceptIdent("not"),this.accept(p.ParenthesisL)?(e.addChild(this._parseExpr()),this.accept(p.ParenthesisR)?this.finish(e):this.finish(e,S.RightParenthesisExpected)):e.isNegated?this.finish(e,S.LeftParenthesisExpected):null}_parseFunction(){const e=this.mark(),n=this.create(Dn);if(!n.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(p.ParenthesisL))return this.restoreAtMark(e),null;if(n.getArguments().addChild(this._parseMixinArgument())){for(;(this.accept(p.Comma)||this.accept(p.SemiColon))&&!this.peek(p.ParenthesisR);)if(!n.getArguments().addChild(this._parseMixinArgument()))return this.finish(n,S.ExpressionExpected)}return this.accept(p.ParenthesisR)?this.finish(n):this.finish(n,S.RightParenthesisExpected)}_parseFunctionIdentifier(){if(this.peekDelim("%")){const e=this.create(ze);return e.referenceTypes=[Q.Function],this.consumeToken(),this.finish(e)}return super._parseFunctionIdentifier()}_parseURLArgument(){const e=this.mark(),n=super._parseURLArgument();if(!n||!this.peek(p.ParenthesisR)){this.restoreAtMark(e);const r=this.create(W);return r.addChild(this._parseBinaryExpr()),this.finish(r)}return n}}class an extends ds{constructor(e,n){super("@",e,n)}createFunctionProposals(e,n,r,i){for(const s of e){const a={label:s.name,detail:s.example,documentation:s.description,textEdit:j.replace(this.getCompletionRange(n),s.name+"($0)"),insertTextFormat:Ie.Snippet,kind:q.Function};r&&(a.sortText="z"),i.items.push(a)}return i}getTermProposals(e,n,r){let i=an.builtInProposals;return e&&(i=i.filter(s=>!s.type||!e.restrictions||e.restrictions.indexOf(s.type)!==-1)),this.createFunctionProposals(i,n,!0,r),super.getTermProposals(e,n,r)}getColorProposals(e,n,r){return this.createFunctionProposals(an.colorProposals,n,!1,r),super.getColorProposals(e,n,r)}getCompletionsForDeclarationProperty(e,n){return this.getCompletionsForSelector(null,!0,n),super.getCompletionsForDeclarationProperty(e,n)}}an.builtInProposals=[{name:"if",example:"if(condition, trueValue [, falseValue]);",description:w("returns one of two values depending on a condition.")},{name:"boolean",example:"boolean(condition);",description:w('"store" a boolean test for later evaluation in a guard or if().')},{name:"length",example:"length(@list);",description:w("returns the number of elements in a value list")},{name:"extract",example:"extract(@list, index);",description:w("returns a value at the specified position in the list")},{name:"range",example:"range([start, ] end [, step]);",description:w("generate a list spanning a range of values")},{name:"each",example:"each(@list, ruleset);",description:w("bind the evaluation of a ruleset to each member of a list.")},{name:"escape",example:"escape(@string);",description:w("URL encodes a string")},{name:"e",example:"e(@string);",description:w("escape string content")},{name:"replace",example:"replace(@string, @pattern, @replacement[, @flags]);",description:w("string replace")},{name:"unit",example:"unit(@dimension, [@unit: '']);",description:w("remove or change the unit of a dimension")},{name:"color",example:"color(@string);",description:w("parses a string to a color"),type:"color"},{name:"convert",example:"convert(@value, unit);",description:w("converts numbers from one type into another")},{name:"data-uri",example:"data-uri([mimetype,] url);",description:w("inlines a resource and falls back to `url()`"),type:"url"},{name:"abs",description:w("absolute value of a number"),example:"abs(number);"},{name:"acos",description:w("arccosine - inverse of cosine function"),example:"acos(number);"},{name:"asin",description:w("arcsine - inverse of sine function"),example:"asin(number);"},{name:"ceil",example:"ceil(@number);",description:w("rounds up to an integer")},{name:"cos",description:w("cosine function"),example:"cos(number);"},{name:"floor",description:w("rounds down to an integer"),example:"floor(@number);"},{name:"percentage",description:w("converts to a %, e.g. 0.5 > 50%"),example:"percentage(@number);",type:"percentage"},{name:"round",description:w("rounds a number to a number of places"),example:"round(number, [places: 0]);"},{name:"sqrt",description:w("calculates square root of a number"),example:"sqrt(number);"},{name:"sin",description:w("sine function"),example:"sin(number);"},{name:"tan",description:w("tangent function"),example:"tan(number);"},{name:"atan",description:w("arctangent - inverse of tangent function"),example:"atan(number);"},{name:"pi",description:w("returns pi"),example:"pi();"},{name:"pow",description:w("first argument raised to the power of the second argument"),example:"pow(@base, @exponent);"},{name:"mod",description:w("first argument modulus second argument"),example:"mod(number, number);"},{name:"min",description:w("returns the lowest of one or more values"),example:"min(@x, @y);"},{name:"max",description:w("returns the lowest of one or more values"),example:"max(@x, @y);"}],an.colorProposals=[{name:"argb",example:"argb(@color);",description:w("creates a #AARRGGBB")},{name:"hsl",example:"hsl(@hue, @saturation, @lightness);",description:w("creates a color")},{name:"hsla",example:"hsla(@hue, @saturation, @lightness, @alpha);",description:w("creates a color")},{name:"hsv",example:"hsv(@hue, @saturation, @value);",description:w("creates a color")},{name:"hsva",example:"hsva(@hue, @saturation, @value, @alpha);",description:w("creates a color")},{name:"hue",example:"hue(@color);",description:w("returns the `hue` channel of `@color` in the HSL space")},{name:"saturation",example:"saturation(@color);",description:w("returns the `saturation` channel of `@color` in the HSL space")},{name:"lightness",example:"lightness(@color);",description:w("returns the `lightness` channel of `@color` in the HSL space")},{name:"hsvhue",example:"hsvhue(@color);",description:w("returns the `hue` channel of `@color` in the HSV space")},{name:"hsvsaturation",example:"hsvsaturation(@color);",description:w("returns the `saturation` channel of `@color` in the HSV space")},{name:"hsvvalue",example:"hsvvalue(@color);",description:w("returns the `value` channel of `@color` in the HSV space")},{name:"red",example:"red(@color);",description:w("returns the `red` channel of `@color`")},{name:"green",example:"green(@color);",description:w("returns the `green` channel of `@color`")},{name:"blue",example:"blue(@color);",description:w("returns the `blue` channel of `@color`")},{name:"alpha",example:"alpha(@color);",description:w("returns the `alpha` channel of `@color`")},{name:"luma",example:"luma(@color);",description:w("returns the `luma` value (perceptual brightness) of `@color`")},{name:"saturate",example:"saturate(@color, 10%);",description:w("return `@color` 10% points more saturated")},{name:"desaturate",example:"desaturate(@color, 10%);",description:w("return `@color` 10% points less saturated")},{name:"lighten",example:"lighten(@color, 10%);",description:w("return `@color` 10% points lighter")},{name:"darken",example:"darken(@color, 10%);",description:w("return `@color` 10% points darker")},{name:"fadein",example:"fadein(@color, 10%);",description:w("return `@color` 10% points less transparent")},{name:"fadeout",example:"fadeout(@color, 10%);",description:w("return `@color` 10% points more transparent")},{name:"fade",example:"fade(@color, 50%);",description:w("return `@color` with 50% transparency")},{name:"spin",example:"spin(@color, 10);",description:w("return `@color` with a 10 degree larger in hue")},{name:"mix",example:"mix(@color1, @color2, [@weight: 50%]);",description:w("return a mix of `@color1` and `@color2`")},{name:"greyscale",example:"greyscale(@color);",description:w("returns a grey, 100% desaturated color")},{name:"contrast",example:"contrast(@color1, [@darkcolor: black], [@lightcolor: white], [@threshold: 43%]);",description:w("return `@darkcolor` if `@color1 is> 43% luma` otherwise return `@lightcolor`, see notes")},{name:"multiply",example:"multiply(@color1, @color2);"},{name:"screen",example:"screen(@color1, @color2);"},{name:"overlay",example:"overlay(@color1, @color2);"},{name:"softlight",example:"softlight(@color1, @color2);"},{name:"hardlight",example:"hardlight(@color1, @color2);"},{name:"difference",example:"difference(@color1, @color2);"},{name:"exclusion",example:"exclusion(@color1, @color2);"},{name:"average",example:"average(@color1, @color2);"},{name:"negation",example:"negation(@color1, @color2);"}];function af(t,e){const n=of(t);return lf(n,e)}function of(t){function e(d){return t.positionAt(d.offset).line}function n(d){return t.positionAt(d.offset+d.len).line}function r(){switch(t.languageId){case"scss":return new Qc;case"less":return new eh;default:return new Nn}}function i(d,u){const m=e(d),f=n(d);return m!==f?{startLine:m,endLine:f,kind:u}:null}const s=[],a=[],o=r();o.ignoreComment=!1,o.setSource(t.getText());let l=o.scan(),c=null;for(;l.type!==p.EOF;){switch(l.type){case p.CurlyL:case Lr:{a.push({line:e(l),type:"brace",isStart:!0});break}case p.CurlyR:{if(a.length!==0){const d=th(a,"brace");if(!d)break;let u=n(l);d.type==="brace"&&(c&&n(c)!==u&&u--,d.line!==u&&s.push({startLine:d.line,endLine:u,kind:void 0}))}break}case p.Comment:{const d=f=>f==="#region"?{line:e(l),type:"comment",isStart:!0}:{line:n(l),type:"comment",isStart:!1},m=(f=>{const g=f.text.match(/^\s*\/\*\s*(#region|#endregion)\b\s*(.*?)\s*\*\//);if(g)return d(g[1]);if(t.languageId==="scss"||t.languageId==="less"){const b=f.text.match(/^\s*\/\/\s*(#region|#endregion)\b\s*(.*?)\s*/);if(b)return d(b[1])}return null})(l);if(m)if(m.isStart)a.push(m);else{const f=th(a,"comment");if(!f)break;f.type==="comment"&&f.line!==m.line&&s.push({startLine:f.line,endLine:m.line,kind:"region"})}else{const f=i(l,"comment");f&&s.push(f)}break}}c=l,l=o.scan()}return s}function th(t,e){if(t.length===0)return null;for(let n=t.length-1;n>=0;n--)if(t[n].type===e&&t[n].isStart)return t.splice(n,1)[0];return null}function lf(t,e){const n=e&&e.rangeLimit||Number.MAX_VALUE,r=t.sort((a,o)=>{let l=a.startLine-o.startLine;return l===0&&(l=a.endLine-o.endLine),l}),i=[];let s=-1;return r.forEach(a=>{a.startLine=0;c--)if(this.__items[c].match(l))return!0;return!1},s.prototype.set_indent=function(l,c){this.is_empty()&&(this.__indent_count=l||0,this.__alignment_count=c||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},s.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},s.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},s.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var l=this.__parent.current_line;return l.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),l.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),l.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,l.__items[0]===" "&&(l.__items.splice(0,1),l.__character_count-=1),!0}return!1},s.prototype.is_empty=function(){return this.__items.length===0},s.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},s.prototype.push=function(l){this.__items.push(l);var c=l.lastIndexOf(` -`);c!==-1?this.__character_count=l.length-c:this.__character_count+=l.length},s.prototype.pop=function(){var l=null;return this.is_empty()||(l=this.__items.pop(),this.__character_count-=l.length),l},s.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},s.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},s.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},s.prototype.toString=function(){var l="";return this.is_empty()?this.__parent.indent_empty_lines&&(l=this.__parent.get_indent_string(this.__indent_count)):(l=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),l+=this.__items.join("")),l};function a(l,c){this.__cache=[""],this.__indent_size=l.indent_size,this.__indent_string=l.indent_char,l.indent_with_tabs||(this.__indent_string=new Array(l.indent_size+1).join(l.indent_char)),c=c||"",l.indent_level>0&&(c=new Array(l.indent_level+1).join(this.__indent_string)),this.__base_string=c,this.__base_string_length=c.length}a.prototype.get_indent_size=function(l,c){var d=this.__base_string_length;return c=c||0,l<0&&(d=0),d+=l*this.__indent_size,d+=c,d},a.prototype.get_indent_string=function(l,c){var d=this.__base_string;return c=c||0,l<0&&(l=0,d=""),c+=l*this.__indent_size,this.__ensure_cache(c),d+=this.__cache[c],d},a.prototype.__ensure_cache=function(l){for(;l>=this.__cache.length;)this.__add_column()},a.prototype.__add_column=function(){var l=this.__cache.length,c=0,d="";this.__indent_size&&l>=this.__indent_size&&(c=Math.floor(l/this.__indent_size),l-=c*this.__indent_size,d=new Array(c+1).join(this.__indent_string)),l&&(d+=new Array(l+1).join(" ")),this.__cache.push(d)};function o(l,c){this.__indent_cache=new a(l,c),this.raw=!1,this._end_with_newline=l.end_with_newline,this.indent_size=l.indent_size,this.wrap_line_length=l.wrap_line_length,this.indent_empty_lines=l.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new s(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}o.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},o.prototype.get_line_number=function(){return this.__lines.length},o.prototype.get_indent_string=function(l,c){return this.__indent_cache.get_indent_string(l,c)},o.prototype.get_indent_size=function(l,c){return this.__indent_cache.get_indent_size(l,c)},o.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},o.prototype.add_new_line=function(l){return this.is_empty()||!l&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},o.prototype.get_code=function(l){this.trim(!0);var c=this.current_line.pop();c&&(c[c.length-1]===` -`&&(c=c.replace(/\n+$/g,"")),this.current_line.push(c)),this._end_with_newline&&this.__add_outputline();var d=this.__lines.join(` -`);return l!==` -`&&(d=d.replace(/[\n]/g,l)),d},o.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},o.prototype.set_indent=function(l,c){return l=l||0,c=c||0,this.next_line.set_indent(l,c),this.__lines.length>1?(this.current_line.set_indent(l,c),!0):(this.current_line.set_indent(),!1)},o.prototype.add_raw_token=function(l){for(var c=0;c1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},o.prototype.just_added_newline=function(){return this.current_line.is_empty()},o.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},o.prototype.ensure_empty_line_above=function(l,c){for(var d=this.__lines.length-2;d>=0;){var u=this.__lines[d];if(u.is_empty())break;if(u.item(0).indexOf(l)!==0&&u.item(-1)!==c){this.__lines.splice(d+1,0,new s(this)),this.previous_line=this.__lines[this.__lines.length-2];break}d--}},i.exports.Output=o}),,,,(function(i){function s(l,c){this.raw_options=a(l,c),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}s.prototype._get_array=function(l,c){var d=this.raw_options[l],u=c||[];return typeof d=="object"?d!==null&&typeof d.concat=="function"&&(u=d.concat()):typeof d=="string"&&(u=d.split(/[^a-zA-Z0-9_\/\-]+/)),u},s.prototype._get_boolean=function(l,c){var d=this.raw_options[l],u=d===void 0?!!c:!!d;return u},s.prototype._get_characters=function(l,c){var d=this.raw_options[l],u=c||"";return typeof d=="string"&&(u=d.replace(/\\r/,"\r").replace(/\\n/,` -`).replace(/\\t/," ")),u},s.prototype._get_number=function(l,c){var d=this.raw_options[l];c=parseInt(c,10),isNaN(c)&&(c=0);var u=parseInt(d,10);return isNaN(u)&&(u=c),u},s.prototype._get_selection=function(l,c,d){var u=this._get_selection_list(l,c,d);if(u.length!==1)throw new Error("Invalid Option Value: The option '"+l+`' can only be one of the following values: -`+c+` -You passed in: '`+this.raw_options[l]+"'");return u[0]},s.prototype._get_selection_list=function(l,c,d){if(!c||c.length===0)throw new Error("Selection list cannot be empty.");if(d=d||[c[0]],!this._is_valid_selection(d,c))throw new Error("Invalid Default Value!");var u=this._get_array(l,d);if(!this._is_valid_selection(u,c))throw new Error("Invalid Option Value: The option '"+l+`' can contain only the following values: -`+c+` -You passed in: '`+this.raw_options[l]+"'");return u},s.prototype._is_valid_selection=function(l,c){return l.length&&c.length&&!l.some(function(d){return c.indexOf(d)===-1})};function a(l,c){var d={};l=o(l);var u;for(u in l)u!==c&&(d[u]=l[u]);if(c&&l[c])for(u in l[c])d[u]=l[c][u];return d}function o(l){var c={},d;for(d in l){var u=d.replace(/-/g,"_");c[u]=l[d]}return c}i.exports.Options=s,i.exports.normalizeOpts=o,i.exports.mergeOpts=a}),,(function(i){var s=RegExp.prototype.hasOwnProperty("sticky");function a(o){this.__input=o||"",this.__input_length=this.__input.length,this.__position=0}a.prototype.restart=function(){this.__position=0},a.prototype.back=function(){this.__position>0&&(this.__position-=1)},a.prototype.hasNext=function(){return this.__position=0&&o=0&&l=o.length&&this.__input.substring(l-o.length,l).toLowerCase()===o},i.exports.InputScanner=a}),,,,,(function(i){function s(a,o){a=typeof a=="string"?a:a.source,o=typeof o=="string"?o:o.source,this.__directives_block_pattern=new RegExp(a+/ beautify( \w+[:]\w+)+ /.source+o,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(a+/\sbeautify\signore:end\s/.source+o,"g")}s.prototype.get_directives=function(a){if(!a.match(this.__directives_block_pattern))return null;var o={};this.__directive_pattern.lastIndex=0;for(var l=this.__directive_pattern.exec(a);l;)o[l[1]]=l[2],l=this.__directive_pattern.exec(a);return o},s.prototype.readIgnored=function(a){return a.readUntilAfter(this.__directives_end_ignore_pattern)},i.exports.Directives=s}),,(function(i,s,a){var o=a(16).Beautifier,l=a(17).Options;function c(d,u){var m=new o(d,u);return m.beautify()}i.exports=c,i.exports.defaultOptions=function(){return new l}}),(function(i,s,a){var o=a(17).Options,l=a(2).Output,c=a(8).InputScanner,d=a(13).Directives,u=new d(/\/\*/,/\*\//),m=/\r\n|[\r\n]/,f=/\r\n|[\r\n]/g,g=/\s/,b=/(?:\s|\n)+/g,_=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,F=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function N(E,T){this._source_text=E||"",this._options=new o(T),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}N.prototype.eatString=function(E){var T="";for(this._ch=this._input.next();this._ch;){if(T+=this._ch,this._ch==="\\")T+=this._input.next();else if(E.indexOf(this._ch)!==-1||this._ch===` -`)break;this._ch=this._input.next()}return T},N.prototype.eatWhitespace=function(E){for(var T=g.test(this._input.peek()),O=0;g.test(this._input.peek());)this._ch=this._input.next(),E&&this._ch===` -`&&(O===0||O0&&this._indentLevel--},N.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var E=this._source_text,T=this._options.eol;T==="auto"&&(T=` -`,E&&m.test(E||"")&&(T=E.match(m)[0])),E=E.replace(f,` -`);var O=E.match(/^[\t ]*/)[0];this._output=new l(this._options,O),this._input=new c(E),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var V=0,I=!1,R=!1,z=!1,$=!1,L=!1,y=this._ch,k=!1,D,A,M;D=this._input.read(b),A=D!=="",M=y,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),y=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var P=this._input.read(_),H=u.get_directives(P);H&&H.ignore==="start"&&(P+=u.readIgnored(this._input)),this.print_string(P),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(F)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(A),this.print_string(this._ch);var ee=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);ee.match(/[ :]$/)&&(ee=this.eatString(": ").replace(/\s+$/,""),this.print_string(ee),this._output.space_before_token=!0),V===0&&ee.indexOf(":")!==-1&&(R=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace(A),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var G=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);G.match(/[ :]$/)&&(G=this.eatString(": ").replace(/\s+$/,""),this.print_string(G),this._output.space_before_token=!0),V===0&&G.indexOf(":")!==-1?(R=!0,this.indent()):G in this.NESTED_AT_RULE?(this._nestedLevel+=1,G in this.CONDITIONAL_GROUP_RULE&&(z=!0)):V===0&&!R&&($=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(A),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")R&&(R=!1,this.outdent()),$=!1,z?(z=!1,I=this._indentLevel>=this._nestedLevel):I=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&I&&this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(M==="("?this._output.space_before_token=!1:M!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),M==="{"&&this._output.trim(!0),R&&(this.outdent(),R=!1),this.print_string(this._ch),I=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&this._input.peek()!=="}"&&this._output.add_new_line(!0),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var xe=0;xe"||this._ch==="+"||this._ch==="~")&&!R&&V===0)this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&g.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(A),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),g.test(this._ch)&&(this._ch="");else if(this._ch==="!"&&!this._input.lookBack("\\"))this._output.space_before_token=!0,this.print_string(this._ch);else{var Ps=M==='"'||M==="'";this.preserveSingleSpace(Ps||A),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===` -`&&k&&this._output.add_new_line()}var un=this._output.get_code(T);return un},i.exports.Beautifier=N}),(function(i,s,a){var o=a(6).Options;function l(c){o.call(this,c,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var d=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||d;var u=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var m=0;m0&&sh(r,u-1);)u--;u===0||ih(r,u-1)?d=u:u0){const d=n.insertSpaces?hl(" ",o*s):hl(" ",s);c=c.split(` -`).join(` -`+d),e.start.character===0&&(c=d+c)}return[{range:e,newText:c}]}function rh(t){return t.replace(/^\s+/,"")}const df=123,uf=125;function pf(t,e){for(;e>=0;){const n=t.charCodeAt(e);if(n===df)return!0;if(n===uf)return!1;e--}return!1}function ct(t,e,n){if(t&&t.hasOwnProperty(e)){const r=t[e];if(r!==null)return r}return n}function mf(t,e,n){let r=e,i=0;const s=n.tabSize||4;for(;r && ]#",relevance:50,description:"@counter-style descriptor. Specifies the symbols used by the marker-construction algorithm specified by the system descriptor. Needs to be specified if the counter system is 'additive'.",restrictions:["integer","string","image","identifier"]},{name:"align-content",browsers:["E12","FF28","S9","C29","IE11","O16"],values:[{name:"center",description:"Lines are packed toward the center of the flex container."},{name:"flex-end",description:"Lines are packed toward the end of the flex container."},{name:"flex-start",description:"Lines are packed toward the start of the flex container."},{name:"space-around",description:"Lines are evenly distributed in the flex container, with half-size spaces on either end."},{name:"space-between",description:"Lines are evenly distributed in the flex container."},{name:"stretch",description:"Lines stretch to take up the remaining space."},{name:"start"},{name:"end"},{name:"normal"},{name:"baseline"},{name:"first baseline"},{name:"last baseline"},{name:"space-around"},{name:"space-between"},{name:"space-evenly"},{name:"stretch"},{name:"safe"},{name:"unsafe"}],syntax:"normal | | | ? ",relevance:66,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/align-content"}],description:"Aligns a flex container's lines within the flex container when there is extra space in the cross-axis, similar to how 'justify-content' aligns individual items within the main-axis.",restrictions:["enum"]},{name:"align-items",browsers:["E12","FF20","S9","C29","IE11","O16"],values:[{name:"baseline",description:"If the flex item's inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment."},{name:"center",description:"The flex item's margin box is centered in the cross axis within the line."},{name:"flex-end",description:"The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line."},{name:"flex-start",description:"The cross-start margin edge of the flex item is placed flush with the cross-start edge of the line."},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."},{name:"normal"},{name:"start"},{name:"end"},{name:"self-start"},{name:"self-end"},{name:"first baseline"},{name:"last baseline"},{name:"stretch"},{name:"safe"},{name:"unsafe"}],syntax:"normal | stretch | | [ ? ]",relevance:87,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/align-items"}],description:"Aligns flex items along the cross axis of the current line of the flex container.",restrictions:["enum"]},{name:"justify-items",browsers:["E12","FF20","S9","C52","IE11","O12.1"],values:[{name:"auto"},{name:"normal"},{name:"end"},{name:"start"},{name:"flex-end",description:'"Flex items are packed toward the end of the line."'},{name:"flex-start",description:'"Flex items are packed toward the start of the line."'},{name:"self-end",description:"The item is packed flush to the edge of the alignment container of the end side of the item, in the appropriate axis."},{name:"self-start",description:"The item is packed flush to the edge of the alignment container of the start side of the item, in the appropriate axis.."},{name:"center",description:"The items are packed flush to each other toward the center of the of the alignment container."},{name:"left"},{name:"right"},{name:"baseline"},{name:"first baseline"},{name:"last baseline"},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."},{name:"safe"},{name:"unsafe"},{name:"legacy"}],syntax:"normal | stretch | | ? [ | left | right ] | legacy | legacy && [ left | right | center ]",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/justify-items"}],description:"Defines the default justify-self for all items of the box, giving them the default way of justifying each box along the appropriate axis",restrictions:["enum"]},{name:"justify-self",browsers:["E16","FF45","S10.1","C57","IE10","O44"],values:[{name:"auto"},{name:"normal"},{name:"end"},{name:"start"},{name:"flex-end",description:'"Flex items are packed toward the end of the line."'},{name:"flex-start",description:'"Flex items are packed toward the start of the line."'},{name:"self-end",description:"The item is packed flush to the edge of the alignment container of the end side of the item, in the appropriate axis."},{name:"self-start",description:"The item is packed flush to the edge of the alignment container of the start side of the item, in the appropriate axis.."},{name:"center",description:"The items are packed flush to each other toward the center of the of the alignment container."},{name:"left"},{name:"right"},{name:"baseline"},{name:"first baseline"},{name:"last baseline"},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."},{name:"save"},{name:"unsave"}],syntax:"auto | normal | stretch | | ? [ | left | right ]",relevance:55,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/justify-self"}],description:"Defines the way of justifying a box inside its container along the appropriate axis.",restrictions:["enum"]},{name:"align-self",browsers:["E12","FF20","S9","C29","IE10","O12.1"],values:[{name:"auto",description:"Computes to the value of 'align-items' on the element's parent, or 'stretch' if the element has no parent. On absolutely positioned elements, it computes to itself."},{name:"normal"},{name:"self-end"},{name:"self-start"},{name:"baseline",description:"If the flex item's inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment."},{name:"center",description:"The flex item's margin box is centered in the cross axis within the line."},{name:"flex-end",description:"The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line."},{name:"flex-start",description:"The cross-start margin edge of the flex item is placed flush with the cross-start edge of the line."},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."},{name:"baseline"},{name:"first baseline"},{name:"last baseline"},{name:"safe"},{name:"unsafe"}],syntax:"auto | normal | stretch | | ? ",relevance:73,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/align-self"}],description:"Allows the default alignment along the cross axis to be overridden for individual flex items.",restrictions:["enum"]},{name:"all",browsers:["E79","FF27","S9.1","C37","O24"],values:[],syntax:"initial | inherit | unset | revert | revert-layer",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/all"}],description:"Shorthand that resets all properties except 'direction' and 'unicode-bidi'.",restrictions:["enum"]},{name:"alt",browsers:["S9"],values:[],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/alt"}],description:"Provides alternative text for assistive technology to replace the generated content of a ::before or ::after element.",restrictions:["string","enum"]},{name:"animation",browsers:["E12","FF16","S9","C43","IE10","O30"],values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"backwards",description:"The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."},{name:"both",description:"Both forwards and backwards fill modes are applied."},{name:"forwards",description:"The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."},{name:"infinite",description:"Causes the animation to repeat forever."},{name:"none",description:"No animation is performed"},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],syntax:"#",relevance:82,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation"}],description:"Shorthand property combines six of the animation properties into a single property.",restrictions:["time","timing-function","enum","identifier","number"]},{name:"animation-delay",browsers:["E12","FF16","S9","C43","IE10","O30"],syntax:"